Skip to content

Commit 0498d1b

Browse files
committed
feat(CC-batch-7): updated notification group/list
1 parent 29cf735 commit 0498d1b

File tree

3 files changed

+33
-11
lines changed

3 files changed

+33
-11
lines changed

packages/code-connect/components/NotificationDrawer/NotificationDrawer.figma.tsx

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,32 @@
11
import figma from '@figma/code-connect';
2-
import { NotificationDrawer, NotificationDrawerBody, NotificationDrawerList } from '@patternfly/react-core';
2+
import {
3+
NotificationDrawer,
4+
NotificationDrawerBody,
5+
NotificationDrawerGroupList,
6+
NotificationDrawerList
7+
} from '@patternfly/react-core';
8+
9+
figma.connect(
10+
NotificationDrawer,
11+
'https://www.figma.com/design/aEBBvq0J3EPXxHvv6WgDx9/PatternFly-6--Components-Test?node-id=7172-99015',
12+
{
13+
variant: { Type: 'Grouped' },
14+
props: {
15+
// children
16+
notificationDrawerHeader: figma.children('Notification drawer header'),
17+
notificationDrawerGroup: figma.children('Notification drawer groups')
18+
},
19+
example: (props) => (
20+
// Documentation for NotificationDrawer can be found at https://www.patternfly.org/components/notification-drawer
21+
<NotificationDrawer>
22+
{props.notificationDrawerHeader}
23+
<NotificationDrawerBody>
24+
<NotificationDrawerGroupList>{props.notificationDrawerGroup}</NotificationDrawerGroupList>
25+
</NotificationDrawerBody>
26+
</NotificationDrawer>
27+
)
28+
}
29+
);
330

431
figma.connect(
532
NotificationDrawer,
@@ -8,16 +35,14 @@ figma.connect(
835
props: {
936
// children
1037
notificationDrawerHeader: figma.children('Notification drawer header'),
11-
notificationDrawerGroup: figma.children('Notification drawer group'),
12-
notificationDrawerNotifications: figma.children(['Notifications', 'Notification drawer item'])
38+
notificationDrawerItems: figma.children(['Notifications', 'Notification drawer item'])
1339
},
1440
example: (props) => (
1541
// Documentation for NotificationDrawer can be found at https://www.patternfly.org/components/notification-drawer
1642
<NotificationDrawer>
1743
{props.notificationDrawerHeader}
1844
<NotificationDrawerBody>
19-
{props.notificationDrawerGroup}
20-
<NotificationDrawerList>{props.notificationDrawerNotifications}</NotificationDrawerList>
45+
<NotificationDrawerList>{props.notificationDrawerItems}</NotificationDrawerList>
2146
</NotificationDrawerBody>
2247
</NotificationDrawer>
2348
)

packages/code-connect/components/NotificationDrawer/NotificationDrawerItem.figma.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,7 @@ figma.connect(
3737
alertTitle: 'Notification title'
3838
},
3939
example: (props) => (
40-
<NotificationDrawerListItem
41-
isHoverable={props.isHoverable}
42-
isRead={props.isRead}
43-
onClose={() => {}}
44-
variant={props.variant}
45-
>
40+
<NotificationDrawerListItem isHoverable={props.isHoverable} isRead={props.isRead} variant={props.variant}>
4641
<NotificationDrawerListItemHeader title={props.alertTitle} variant={props.variant}>
4742
<Dropdown
4843
onSelect={() => {}}

packages/code-connect/components/Skeleton/Skeleton.figma.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ figma.connect(
1010
props: {
1111
// enum
1212
type: figma.enum('Type', {
13+
Default: undefined,
14+
Rectangle: undefined,
1315
Square: 'square',
1416
Circle: 'circle'
1517
}),

0 commit comments

Comments
 (0)