Skip to content

Commit 6d6d202

Browse files
committed
feat(CC-batch-8): group review 9/23 updates
1 parent b1d9375 commit 6d6d202

File tree

11 files changed

+61
-196
lines changed

11 files changed

+61
-196
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,11 @@ import PlusIcon from '@patternfly/react-icons/dist/esm/icons/plus-icon';
88

99
figma.connect(
1010
Slider,
11-
'https://www.figma.com/design/aEBBvq0J3EPXxHvv6WgDx9/PatternFly-6--Components?node-id=3155-97956',
11+
'https://www.figma.com/design/VMEX8Xg2nzhBX8rfBx53jp/PatternFly-6--Components?node-id=3155-97956',
1212
{
1313
props: {
1414
// boolean
1515
isInputVisible: figma.boolean('Value input'),
16-
showBoundaries: figma.boolean('Min/max values'),
1716
startActions: figma.boolean('Left action', {
1817
true: <Button variant="plain" aria-label="Minus" onClick={() => {}} icon={<MinusIcon />} />,
1918
false: undefined
@@ -31,7 +30,7 @@ figma.connect(
3130
example: (props) => (
3231
<Slider
3332
isInputVisible={props.isInputVisible}
34-
showBoundaries={props.showBoundaries}
33+
showBoundaries={true}
3534
startActions={props.startActions}
3635
endActions={props.endActions}
3736
areCustomStepsContinuous={props.areCustomStepsContinuous}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Spinner } from '@patternfly/react-core';
33

44
// Documentation for Spinner can be found at https://www.patternfly.org/components/spinner
55

6-
figma.connect(Spinner, 'https://www.figma.com/design/aEBBvq0J3EPXxHvv6WgDx9/PatternFly-6--Components?node-id=790-332', {
6+
figma.connect(Spinner, 'https://www.figma.com/design/VMEX8Xg2nzhBX8rfBx53jp/PatternFly-6--Components?node-id=790-332', {
77
props: {
88
// enum
99
size: figma.enum('Size', {

packages/code-connect/components/Tabs/HorizontalSubTabs.figma.tsx

Lines changed: 0 additions & 19 deletions
This file was deleted.

packages/code-connect/components/Tabs/HorizontalTab.figma.tsx

Lines changed: 0 additions & 60 deletions
This file was deleted.

packages/code-connect/components/Tabs/HorizontalTabs.figma.tsx

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,31 @@ import { Tabs } from '@patternfly/react-core';
33

44
// Documentation for Tabs can be found at https://www.patternfly.org/components/tabs
55

6-
figma.connect(Tabs, 'https://www.figma.com/design/aEBBvq0J3EPXxHvv6WgDx9/PatternFly-6--Components?node-id=14327-6503', {
6+
figma.connect(Tabs, 'https://www.figma.com/design/VMEX8Xg2nzhBX8rfBx53jp/PatternFly-6--Components?node-id=14327-6503', {
77
props: {
8-
children: figma.children('*'),
8+
children: figma.children('Tab items - Horizontal'),
99
isBox: figma.enum('Type', {
1010
Boxed: true,
1111
'Boxed Light': true
12+
}),
13+
inset: figma.boolean('Inset', {
14+
true: {
15+
default: 'insetMd'
16+
},
17+
false: {
18+
default: 'insetNone'
19+
}
1220
})
1321
},
1422
example: (props) => (
15-
<Tabs activeKey="activeTabKey" aria-label="Tabs example" isBox={props.isBox} onSelect={() => {}} role="region">
23+
<Tabs
24+
activeKey="activeTabKey"
25+
aria-label="Tabs example"
26+
inset={props.inset}
27+
isBox={props.isBox}
28+
onSelect={() => {}}
29+
role="region"
30+
>
1631
{props.children}
1732
</Tabs>
1833
)

packages/code-connect/components/Tabs/TabVertical.figma.tsx

Lines changed: 0 additions & 58 deletions
This file was deleted.

packages/code-connect/components/Tabs/VerticalTabs.figma.tsx

Lines changed: 24 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,27 @@ import { Tabs } from '@patternfly/react-core';
33

44
// Documentation for Tabs can be found at https://www.patternfly.org/components/tabs
55

6-
figma.connect(
7-
Tabs,
8-
'https://www.figma.com/design/aEBBvq0J3EPXxHvv6WgDx9/PatternFly-6--Components-Test?node-id=14327-6656',
9-
{
10-
props: {
11-
children: figma.children('*'),
12-
isExpandable: figma.enum('Type', {
13-
Expandable: {
14-
default: 'expandable'
15-
},
16-
false: undefined
17-
}),
18-
isBox: figma.enum('Type', {
19-
Boxed: true,
20-
'Boxed Light': true
21-
}),
22-
inset: figma.enum('Type', {
23-
Inset: { default: 'insetMd' },
24-
'Inset Boxed': { default: 'insetMd' }
25-
})
26-
},
27-
example: (props) => (
28-
<Tabs isBox={props.isBox} isVertical={true} onSelect={() => {}} role="region">
29-
{props.children}
30-
</Tabs>
31-
)
32-
}
33-
);
6+
figma.connect(Tabs, 'https://www.figma.com/design/VMEX8Xg2nzhBX8rfBx53jp/PatternFly-6--Components?node-id=14327-6656', {
7+
props: {
8+
children: figma.children('Tab items - Vertical'),
9+
isExpandable: figma.enum('Type', {
10+
Expandable: {
11+
default: 'expandable'
12+
},
13+
false: undefined
14+
}),
15+
isBox: figma.enum('Type', {
16+
Boxed: true,
17+
'Boxed Light': true
18+
}),
19+
inset: figma.enum('Type', {
20+
Inset: { default: 'insetMd' },
21+
'Inset Boxed': { default: 'insetMd' }
22+
})
23+
},
24+
example: (props) => (
25+
<Tabs isBox={props.isBox} isVertical={true} onSelect={() => {}} role="region">
26+
{props.children}
27+
</Tabs>
28+
)
29+
});

packages/code-connect/components/ToggleGroup/BaseComponentsToggleGroupsParts.figma.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,15 @@ import BellIcon from '@patternfly/react-icons/dist/esm/icons/bell-icon';
55
// Documentation for Spinner can be found at https://www.patternfly.org/components/spinner
66

77
figma.connect(
8-
ToggleGroupsItem,
8+
ToggleGroupItem,
99
'https://www.figma.com/design/VMEX8Xg2nzhBX8rfBx53jp/PatternFly-6--Components?node-id=2089-5606&m=dev',
1010
{
1111
props: {
12-
text: figma.string('Text'),
1312
icon: figma.boolean('Has icon', {
1413
true: <BellIcon />,
1514
false: undefined
1615
}),
17-
hasText: figma.boolean('Has text', {
16+
text: figma.boolean('Has text', {
1817
true: figma.string('Text'),
1918
false: undefined
2019
}),

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

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,17 @@ figma.connect(
99
{
1010
props: {
1111
// enum
12-
size: figma.enum('Size', {
12+
isCompact: figma.enum('Size', {
1313
Default: undefined,
1414
Compact: 'compact'
1515
}),
1616

17-
// nested props
18-
leftItem: figma.nestedProps('Base components/Toggle groups parts', {
19-
text: figma.string('Text')
20-
}),
21-
middleItem1: figma.nestedProps('Base components/Toggle groups parts', {
22-
text: figma.string('Text')
23-
}),
24-
middleItem2: figma.nestedProps('Base components/Toggle groups parts', {
25-
text: figma.string('Text')
26-
}),
27-
rightItem: figma.nestedProps('Base components/Toggle groups parts', {
28-
text: figma.string('Text')
29-
}),
30-
3117
children: figma.children('*')
3218
},
33-
example: (props) => <ToggleGroup aria-label="Toggle group example">{props.children}</ToggleGroup>
19+
example: (props) => (
20+
<ToggleGroup aria-label="Toggle group example" isCompact={props.isCompact}>
21+
{props.children}
22+
</ToggleGroup>
23+
)
3424
}
3525
);

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

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

44
// Documentation for Tooltip can be found at https://www.patternfly.org/components/tooltip
55

66
figma.connect(
77
Tooltip,
8-
'https://www.figma.com/design/aEBBvq0J3EPXxHvv6WgDx9/PatternFly-6--Components?node-id=6598-70985',
8+
'https://www.figma.com/design/VMEX8Xg2nzhBX8rfBx53jp/PatternFly-6--Components?node-id=6598-70985',
99
{
1010
props: {
1111
// string
12-
text: figma.string('Text'),
12+
content: figma.string('Text'),
1313

1414
// enum
1515
position: figma.enum('Type', {
@@ -31,7 +31,7 @@ figma.connect(
3131
},
3232
example: (props) => (
3333
<Tooltip content={props.content} position={props.position}>
34-
<div>{props.text}</div>
34+
<Button>I have a tooltip!</Button>
3535
</Tooltip>
3636
)
3737
}

0 commit comments

Comments
 (0)