Skip to content

Commit ea73a44

Browse files
committed
feat(CC-batch-2): updated directory location
1 parent f311d2e commit ea73a44

11 files changed

Lines changed: 62 additions & 30 deletions

packages/react-core/codeConnect/components/Alert/InlineAlert.figma.tsx renamed to packages/code-connect/components/Alert/InlineAlert.figma.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ figma.connect(
1010
'https://www.figma.com/design/aEBBvq0J3EPXxHvv6WgDx9/PatternFly-6--Components-Test?node-id=1110-2698&m=dev',
1111
{
1212
props: {
13-
// boolean
13+
// booleans
1414
description: figma.boolean('Description', {
1515
true: figma.string('✏️ Description'),
1616
false: undefined
@@ -19,10 +19,10 @@ figma.connect(
1919
isDismissable: figma.boolean('Dismissable'),
2020
isExpandable: figma.boolean('Expandable'),
2121

22-
// string
22+
// strings
2323
title: figma.string('✏️ Title'),
2424

25-
// enum
25+
// enums
2626
variant: figma.enum('Type', {
2727
Info: 'info',
2828
Success: 'success',

packages/react-core/codeConnect/components/Alert/InlineAlertGroup.figma.tsx renamed to packages/code-connect/components/Alert/InlineAlertGroup.figma.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ figma.connect(
99
AlertGroup,
1010
'https://www.figma.com/design/aEBBvq0J3EPXxHvv6WgDx9/PatternFly-6--Components-Test?node-id=1110-2780&m=dev',
1111
{
12-
props: { children: figma.children('*') },
12+
props: {
13+
// children
14+
children: figma.children('*')
15+
},
1316
example: (props) => <AlertGroup>{props.children}</AlertGroup>
1417
}
1518
);

packages/react-core/codeConnect/components/Alert/InlinePlainAlert.figma.tsx renamed to packages/code-connect/components/Alert/InlinePlainAlert.figma.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ figma.connect(
1010
'https://www.figma.com/design/aEBBvq0J3EPXxHvv6WgDx9/PatternFly-6--Components-Test?node-id=1110-2754&m=dev',
1111
{
1212
props: {
13-
// string
13+
// strings
1414
title: figma.string('✏️ Title'),
1515

16-
// enum
16+
// variants
1717
variant: figma.enum('Type', {
1818
Info: 'info',
1919
Success: 'success',

packages/react-core/codeConnect/components/Alert/OverflowFooter.figma.tsx renamed to packages/code-connect/components/Alert/OverflowFooter.figma.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
import figma from '@figma/code-connect';
2-
import { Alert } from '@patternfly/react-core';
2+
import { AlertGroup } from '@patternfly/react-core';
33

44
/**
55
* PatternFly Alert component integration for Figma Code Connect
66
*/
77

88
figma.connect(
9-
Alert,
9+
AlertGroup,
1010
'https://www.figma.com/design/aEBBvq0J3EPXxHvv6WgDx9/PatternFly-6--Components-Test?node-id=1110-2784&m=dev',
1111
{
1212
props: {
13-
// string
14-
title: figma.string('✏️ Title'),
13+
// strings
14+
overflowMessage: figma.string('✏️ Title'),
1515

1616
children: figma.children('*')
1717
},
18-
example: (props) => <Alert title={props.title}>{props.children}</Alert>
18+
example: (props) => <AlertGroup overflowMessage={props.overflowMessage}>{props.children}</AlertGroup>
1919
}
2020
);

packages/react-core/codeConnect/components/Alert/ToastAlert.figma.tsx renamed to packages/code-connect/components/Alert/ToastAlert.figma.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@ figma.connect(
1010
'https://www.figma.com/design/aEBBvq0J3EPXxHvv6WgDx9/PatternFly-6--Components-Test?node-id=1110-2587&m=dev',
1111
{
1212
props: {
13-
// string
14-
title: figma.string('✏️ Title'),
15-
16-
// boolean
13+
// booleans
1714
actionLinks: figma.boolean('Actions'),
1815
alertDescription: figma.boolean('Description', {
1916
true: figma.string('✏️ Description'),
2017
false: undefined
2118
}),
2219
isExpandable: figma.boolean('Expandable'),
2320

24-
// enum
21+
// strings
22+
title: figma.string('✏️ Title'),
23+
24+
// variants
2525
variant: figma.enum('Type', {
2626
Custom: 'custom',
2727
Danger: 'danger',

packages/react-core/codeConnect/components/Alert/ToastAlertGroup.figma.tsx renamed to packages/code-connect/components/Alert/ToastAlertGroup.figma.tsx

File renamed without changes.

packages/react-core/codeConnect/components/Avatar/Avatar.figma.tsx renamed to packages/code-connect/components/Avatar/Avatar.figma.tsx

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ figma.connect(
1010
'https://www.figma.com/design/aEBBvq0J3EPXxHvv6WgDx9/PatternFly-6%3A-Components-Test?node-id=1561-4342&m=dev',
1111
{
1212
props: {
13-
// boolean
13+
// booleans
1414
isBordered: figma.boolean('Bordered'),
1515

16-
// enum
16+
// enums
1717
size: figma.enum('Size', {
1818
small: 'sm',
1919
med: 'md',
@@ -22,12 +22,7 @@ figma.connect(
2222
})
2323
},
2424
example: (props) => (
25-
<Avatar
26-
alt="Avatar"
27-
src="/assets/images/avatar.svg"
28-
isBordered={props.isBordered}
29-
size={props.size}
30-
/>
25+
<Avatar alt="Avatar" src="/assets/images/avatar.svg" isBordered={props.isBordered} size={props.size} />
3126
)
3227
}
3328
);

packages/react-core/codeConnect/components/BackToTop/BackToTop.figma.tsx renamed to packages/code-connect/components/BackToTop/BackToTop.figma.tsx

File renamed without changes.

packages/react-core/codeConnect/components/Backdrop/Backdrop.figma.tsx renamed to packages/code-connect/components/Backdrop/Backdrop.figma.tsx

File renamed without changes.

packages/react-core/codeConnect/components/Badge/Badge.figma.tsx renamed to packages/code-connect/components/Badge/Badge.figma.tsx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,16 @@ figma.connect(
1111
{
1212
props: {
1313
// strings
14-
title: figma.string('Text', '00'),
14+
title: figma.string('Text'),
1515

1616
// enums
17-
type: figma.enum('Type', {
18-
Unread: undefined,
19-
Read: false,
20-
disable: false
17+
isRead: figma.enum('Type', {
18+
Read: true
19+
}),
20+
isDisabled: figma.enum('Type', {
21+
disabled: true
2122
})
2223
},
23-
example: (props) => <Badge title={props.title} type={props.type} />
24+
example: (props) => <Badge title={props.title} isRead={props.isRead} isDisabled={props.isDisabled} />
2425
}
2526
);

0 commit comments

Comments
 (0)