File tree Expand file tree Collapse file tree
packages/code-connect/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import { DescriptionListDescription , DescriptionListGroup } from '@patternfly/react-core' ;
2+ import figma from '@figma/code-connect' ;
3+
4+ figma . connect (
5+ DescriptionListGroup ,
6+ 'https://www.figma.com/design/aEBBvq0J3EPXxHvv6WgDx9/PatternFly-6--Components-Test?node-id=1121-3571' ,
7+ {
8+ props : {
9+ // string
10+ description : figma . string ( '✏️ Content' ) ,
11+
12+ // children
13+ term : figma . children ( 'Term label' )
14+ } ,
15+ example : ( props ) => (
16+ // Documentation for DescriptionList can be found at https://www.patternfly.org/components/description-list
17+ < DescriptionListGroup >
18+ { props . term }
19+ < DescriptionListDescription > { props . description } </ DescriptionListDescription >
20+ </ DescriptionListGroup >
21+ )
22+ }
23+ ) ;
Original file line number Diff line number Diff line change 1+ import {
2+ DescriptionListTerm ,
3+ DescriptionListTermHelpText ,
4+ DescriptionListTermHelpTextButton ,
5+ Popover
6+ } from '@patternfly/react-core' ;
7+ import figma from '@figma/code-connect' ;
8+
9+ // TODO: FIGMA: Separate this into two components: DescriptionListTerm and DescriptionListTermHelpText
10+ figma . connect (
11+ DescriptionListTerm ,
12+ 'https://www.figma.com/design/aEBBvq0J3EPXxHvv6WgDx9/PatternFly-6--Components-Test?node-id=1121-3453' ,
13+ {
14+ props : {
15+ // enum
16+ descriptionListTerm : figma . boolean ( 'Term help underline' , {
17+ true : (
18+ < DescriptionListTermHelpText >
19+ < Popover headerContent = { < div > Name</ div > } bodyContent = { < div > Additional name info</ div > } >
20+ < DescriptionListTermHelpTextButton > Name </ DescriptionListTermHelpTextButton >
21+ </ Popover >
22+ </ DescriptionListTermHelpText >
23+ ) ,
24+ false : < DescriptionListTerm > { figma . children ( '*' ) } </ DescriptionListTerm >
25+ } )
26+ } ,
27+ example : ( props ) => (
28+ // Documentation for DescriptionListTerm can be found at https://www.patternfly.org/components/description-list
29+ < > { props . descriptionListTerm } </ >
30+ )
31+ }
32+ ) ;
Original file line number Diff line number Diff line change 11import figma from '@figma/code-connect' ;
22import { DrawerContent } from '@patternfly/react-core' ;
33
4- /**
5- * PatternFly DrawerTabs component integration for Figma Code Connect
6- */
7-
84figma . connect (
95 DrawerContent ,
106 'https://www.figma.com/design/aEBBvq0J3EPXxHvv6WgDx9/PatternFly-6--Components-Test?node-id=35627-47890&m=dev' ,
117 {
128 props : {
139 children : figma . children ( '*' )
1410 } ,
15- example : ( props ) => < DrawerContent > { props . children } </ DrawerContent >
11+ example : ( props ) => (
12+ // Documentation for DrawerContent can be found at https://www.patternfly.org/components/drawer
13+ < DrawerContent > { props . children } </ DrawerContent >
14+ )
1615 }
1716) ;
Original file line number Diff line number Diff line change 11import figma from '@figma/code-connect' ;
22import { Button , ButtonVariant , DualListSelectorPane } from '@patternfly/react-core' ;
3- import PficonSortCommonAscIcon from '@patternfly/react-icons/icons/pficon-sort-common-asc-icon/ dist/esm/icons/pficon-sort-common-asc-icon' ;
3+ import PficonSortCommonAscIcon from '@patternfly/react-icons/dist/esm/icons/pficon-sort-common-asc-icon' ;
44
55figma . connect (
66 DualListSelectorPane ,
Original file line number Diff line number Diff line change @@ -6,10 +6,10 @@ import {
66 DualListSelectorControlsWrapper
77} from '@patternfly/react-core' ;
88import figma from '@figma/code-connect' ;
9- import AngleRightIcon from '@patternfly/react-icons/icons/angle-right-icon/ dist/esm/icons/angle-right-icon' ;
10- import AngleDoubleRightIcon from '@patternfly/react-icons/icons/angle-double-right-icon/ dist/esm/icons/angle-double-right-icon' ;
11- import AngleDoubleLeftIcon from '@patternfly/react-icons/icons/angle-double-left-icon/ dist/esm/icons/angle-double-left-icon' ;
12- import AngleLeftIcon from '@patternfly/react-icons/icons/angle-left-icon/ dist/esm/icons/angle-left-icon' ;
9+ import AngleRightIcon from '@patternfly/react-icons/dist/esm/icons/angle-right-icon' ;
10+ import AngleDoubleRightIcon from '@patternfly/react-icons/dist/esm/icons/angle-double-right-icon' ;
11+ import AngleDoubleLeftIcon from '@patternfly/react-icons/dist/esm/icons/angle-double-left-icon' ;
12+ import AngleLeftIcon from '@patternfly/react-icons/dist/esm/icons/angle-left-icon' ;
1313
1414figma . connect (
1515 DualListSelector ,
You can’t perform that action at this time.
0 commit comments