Skip to content

Commit 648a8d5

Browse files
committed
feat(CC-batch-6): review-athon round 1 followup
1 parent 86d1da0 commit 648a8d5

11 files changed

Lines changed: 38 additions & 60 deletions

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/LabelInGroup.figma.tsx

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

4-
// TODO: FIGMA: Reconfigure how numlabels is set. Currently, the text string "more" is not customizable
5-
// TODO: FIGMA: Label group should contain label components
4+
// TODO: DESIGN: Reconfigure how numlabels is set. Currently, the text string "more" is not customizable
5+
// TODO: DESIGN: Label group should contain label components
66

77
// NOTE: "Label overflow" doesn't appear to be necessary
88
// Documentation for Label can be found at https://www.patternfly.org/components/label-group

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

Lines changed: 14 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -12,51 +12,38 @@ figma.connect(
1212
labelText: figma.string('Text'),
1313

1414
// boolean
15-
isEditable: figma.boolean('Is Editable'),
16-
onEditCancel: figma.boolean('Is Editable', {
17-
true: `{() => {}}`,
18-
false: undefined
19-
}),
20-
onEditComplete: figma.boolean('Is Editable', {
21-
true: `{() => {}}`,
22-
false: undefined
23-
}),
24-
editableProps: figma.boolean('Is Editable', {
15+
isEditable: figma.boolean('Is Editable', {
2516
true: {
26-
'aria-label': 'Editable label props',
27-
id: 'editable-label'
17+
isEditable: true,
18+
onEditCancel: () => {}, // Callback when an editable label cancels an edit.
19+
onEditComplete: () => {}, // Callback when an editable label completes an edit.
20+
editableProps: {
21+
'aria-label': `Editable label with text`,
22+
id: 'editable-label'
23+
}
2824
},
2925
false: undefined
3026
}),
3127

3228
// enum
33-
isCompact: figma.enum('Type', { Compact: true }),
29+
isCompact: figma.enum('Size', { Compact: true }),
3430
color: figma.enum('Color', {
3531
Red: 'red',
3632
Orange: 'orange',
3733
'Orange Red': 'orangered',
3834
Green: 'green',
3935
Blue: 'blue',
4036
Purple: 'purple',
41-
Grey: 'grey'
42-
}),
43-
variant: figma.enum('Type', {
44-
Filled: 'filled',
45-
Outlined: 'outline'
37+
Grey: 'grey',
38+
Teal: 'teal',
39+
Yellow: 'yellow'
4640
}),
41+
variant: figma.enum('Type', { Outlined: 'outline' }),
4742

4843
children: figma.children('*')
4944
},
5045
example: (props) => (
51-
<Label
52-
isCompact={props.isCompact}
53-
isEditable={props.isEditable}
54-
onEditCancel={props.onEditCancel}
55-
onEditComplete={props.onEditComplete}
56-
editableProps={props.editableProps}
57-
color={props.color}
58-
variant={props.variant}
59-
>
46+
<Label isCompact={props.isCompact} isEditable={props.isEditable} color={props.color} variant={props.variant}>
6047
{props.children}
6148
{props.labelText}
6249
</Label>

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
})

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import figma from '@figma/code-connect';
22
import { Button, Masthead, MastheadContent, MastheadMain, MastheadToggle } from '@patternfly/react-core';
33
import BarsIcon from '@patternfly/react-icons/dist/esm/icons/bars-icon';
44

5-
// TODO: FIGMA: Create masthead main section MastheadMain MastheadContent
6-
// TODO: FIGMA: Move Context Switcher, Horizontal Nav, etc to MastheadContent
7-
// TODO: FIGMA: Create necessary wrappers for MastheadToggle, MastheadBrand, MastheadContent
5+
// TODO: DESIGN: Create masthead main section MastheadMain MastheadContent
6+
// TODO: DESIGN: Move Context Switcher, Horizontal Nav, etc to MastheadContent
7+
// TODO: DESIGN: Create necessary wrappers for MastheadToggle, MastheadBrand, MastheadContent
88
// Documentation for Masthead can be found at https://www.patternfly.org/components/masthead
99

1010
figma.connect(

packages/code-connect/components/Modal/AlertModal.figma.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@ import figma from '@figma/code-connect';
22
import { Button, Modal, ModalBody, ModalFooter, ModalHeader, Popover } from '@patternfly/react-core';
33
import HelpIcon from '@patternfly/react-icons/dist/esm/icons/help-icon';
44

5-
// TODO: FIGMA: Add Modal Body component to Modal
6-
// TODO: FIGMA: Add Modal Footer component to Modal
7-
// TODO: FIGMA: Add Modal Header component to Modal
5+
// TODO: DESIGN: Add Modal Body component to Modal
6+
// TODO: DESIGN: Add Modal Footer component to Modal
7+
// TODO: DESIGN: Add Modal Header component to Modal
88
// Documentation for Modal can be found at https://www.patternfly.org/components/modal
99

1010
figma.connect(
1111
Modal,
1212
'https://www.figma.com/design/aEBBvq0J3EPXxHvv6WgDx9/PatternFly-6--Components-Test?node-id=2940-18403',
1313
{
1414
props: {
15-
// TODO: FIGMA: Create ModalHeader component
15+
// TODO: DESIGN: Create ModalHeader component
1616
// hasHelpIcon: figma.boolean('Help icon', {
1717
// true: (
1818
// <Popover

packages/code-connect/components/Modal/BasicModal.figma.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@ import figma from '@figma/code-connect';
22
import { Button, Modal, ModalBody, ModalFooter, ModalHeader, Popover } from '@patternfly/react-core';
33
import HelpIcon from '@patternfly/react-icons/dist/esm/icons/help-icon';
44

5-
// TODO: FIGMA: Add Modal Body component to Modal
6-
// TODO: FIGMA: Add Modal Footer component to Modal
7-
// TODO: FIGMA: Add Modal Header component to Modal
5+
// TODO: DESIGN: Add Modal Body component to Modal
6+
// TODO: DESIGN: Add Modal Footer component to Modal
7+
// TODO: DESIGN: Add Modal Header component to Modal
88
// Documentation for Modal can be found at https://www.patternfly.org/components/modal
99

1010
figma.connect(
1111
Modal,
1212
'https://www.figma.com/design/aEBBvq0J3EPXxHvv6WgDx9/PatternFly-6--Components-Test?node-id=2937-158',
1313
{
1414
props: {
15-
// TODO: FIGMA: Create ModalHeader component
15+
// TODO: DESIGN: Create ModalHeader component
1616
// hasHelpIcon: figma.boolean('Help icon', {
1717
// true: (
1818
// <Popover

0 commit comments

Comments
 (0)