Skip to content

Commit 92b1f2d

Browse files
committed
feat(CC-batch-4): preparing rebase
1 parent 4437e2a commit 92b1f2d

File tree

6 files changed

+42
-22
lines changed

6 files changed

+42
-22
lines changed

packages/code-connect/components/JumpLinks/JumplinkHorizontal.figma.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import figma from '@figma/code-connect';
22
import { JumpLinksItem } from '@patternfly/react-core';
33

4+
// TODO: DESIGN: FIGMA: Remove icons, help popup, and close button
45
// Documentation for JumpLinks can be found at https://www.patternfly.org/components/jump-links
56

67
figma.connect(
@@ -12,14 +13,11 @@ figma.connect(
1213
tabText: figma.string('Tab Text'),
1314

1415
// enum
15-
isActive: figma.enum('State', { Selected: true }),
16-
17-
children: figma.children('*')
16+
isActive: figma.enum('State', { Selected: true })
1817
},
1918
example: (props) => (
2019
<JumpLinksItem href="#" isActive={props.isActive}>
2120
{props.tabText}
22-
{props.children}
2321
</JumpLinksItem>
2422
)
2523
}

packages/code-connect/components/JumpLinks/JumplinksHorizontal.figma.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ figma.connect(
1010
props: {
1111
// boolean
1212
label: figma.boolean('Show label', {
13-
true: 'Horizontal jump links',
13+
true: 'Jump to section',
1414
false: undefined
1515
}),
1616

packages/code-connect/components/JumpLinks/JumplinksVertical.figma.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ figma.connect(
1010
props: {
1111
// boolean
1212
label: figma.boolean('Show Label', {
13-
true: 'Vertical jump links',
13+
true: 'Jump to section',
1414
false: undefined
1515
}),
1616

packages/code-connect/components/Label/LabelGroups.figma.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ figma.connect(
1212
labelGroupName: figma.string('Label group name'),
1313

1414
// boolean
15-
hasCollapsedLabels: figma.boolean('Has collapsed labels', {
15+
numLabels: figma.boolean('Has collapsed labels', {
1616
true: 4,
1717
false: undefined
1818
}),
@@ -42,7 +42,7 @@ figma.connect(
4242
categoryName="Group label"
4343
isClosable
4444
isEditable
45-
numLabels={props.hasCollapsedLabels}
45+
numLabels={props.numLabels}
4646
onClick={() => {}}
4747
>
4848
{props.children}

packages/code-connect/components/Label/LabelNonStatus.figma.tsx

Lines changed: 32 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,19 @@ figma.connect(
3030
}),
3131

3232
// enum
33-
isCompact: figma.enum('Type', { Compact: true }),
33+
isCompact: figma.enum('Size', { Compact: true }),
3434
color: figma.enum('Color', {
3535
Red: 'red',
3636
Orange: 'orange',
3737
'Orange Red': 'orangered',
3838
Green: 'green',
3939
Blue: 'blue',
4040
Purple: 'purple',
41-
Grey: 'grey'
42-
}),
43-
variant: figma.enum('Type', {
44-
Filled: 'filled',
45-
Outlined: 'outline'
41+
Grey: 'grey',
42+
Teal: 'teal',
43+
Yellow: 'yellow'
4644
}),
45+
variant: figma.enum('Type', { Outlined: 'outline' }),
4746

4847
children: figma.children('*')
4948
},
@@ -63,3 +62,30 @@ figma.connect(
6362
)
6463
}
6564
);
65+
66+
// figma.connect(
67+
// Label,
68+
// 'https://www.figma.com/design/aEBBvq0J3EPXxHvv6WgDx9/PatternFly-6--Components-Test?node-id=2800-609',
69+
// {
70+
// props: {
71+
// // string
72+
// text: figma.string('Text'),
73+
74+
// // enum
75+
// isCompact: figma.enum('Size', { Compact: true }),
76+
// variant: figma.enum('Type', { Outlined: 'outline' }),
77+
// status: figma.enum('Status', {
78+
// Success: 'success',
79+
// Warning: 'warning',
80+
// Danger: 'danger',
81+
// Info: 'info',
82+
// Custom: 'custom'
83+
// })
84+
// },
85+
// example: (props) => (
86+
// <Label isCompact={props.isCompact} status={props.status} variant={props.variant}>
87+
// {props.text}
88+
// </Label>
89+
// )
90+
// }
91+
// );

packages/code-connect/components/Label/LabelStatus.figma.tsx

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,14 @@ figma.connect(
1010
props: {
1111
// string
1212
text: figma.string('Text'),
13-
children: figma.children('*'),
13+
isCompact: figma.enum('Size', { Compact: true }),
1414

1515
// enum
16-
isCompact: figma.enum('Size', { Compact: true }),
17-
variant: figma.enum('Type', {
18-
Filled: 'filled',
19-
Outlined: 'outline'
20-
}),
16+
variant: figma.enum('Type', { Outlined: 'outline' }),
2117
status: figma.enum('Status', {
22-
Danger: 'danger',
23-
Warning: 'warning',
2418
Success: 'success',
19+
Warning: 'warning',
20+
Danger: 'danger',
2521
Info: 'info',
2622
Custom: 'custom'
2723
})

0 commit comments

Comments
 (0)