File tree Expand file tree Collapse file tree 3 files changed +32
-1
lines changed
Expand file tree Collapse file tree 3 files changed +32
-1
lines changed Original file line number Diff line number Diff line change 1+ import figma from '@figma/code-connect' ;
2+ import { Icon } from '@patternfly/react-core' ;
3+
4+ figma . connect (
5+ Icon ,
6+ 'https://www.figma.com/design/VMEX8Xg2nzhBX8rfBx53jp/branch/9QzcMKMR7FX7HXlc0sRUSp/PatternFly-6--Components?node-id=198-1573&t=dP3Et2mI3FtI6IEP-11' ,
7+ {
8+ props : {
9+ // Comprehensive icon size mapping
10+ size : figma . enum ( 'Icon Size' , {
11+ 'Body - Small' : 'bodySm' ,
12+ 'Body - Default' : 'bodyDefault' ,
13+ 'Body - Large' : 'bodyLg' ,
14+
15+ // Heading Sizes
16+ 'Heading - H1' : 'heading_3xl' ,
17+ 'Heading - H2' : 'heading_2xl' ,
18+ 'Heading - H3' : 'headingXl' ,
19+ 'Heading - H4' : 'headingLg' ,
20+ 'Heading - H5' : 'headingMd' ,
21+ 'Heading - H6' : 'headingSm'
22+ } ) ,
23+ children : figma . instance ( '*' )
24+ } ,
25+
26+ example : ( props ) => < Icon size = { props . size } > { props . children } </ Icon >
27+ }
28+ ) ;
Original file line number Diff line number Diff line change 55 "fs-extra" : " ^11.3.0" ,
66 "fse" : " ^4.0.1"
77 },
8+ "peerDependencies" : {
9+ "react" : " ^17 || ^18 || ^19" ,
10+ "react-dom" : " ^17 || ^18 || ^19"
11+ },
812 "scripts" : {
913 "figma:icons:fetch" : " node scripts/fetchIcons.mjs --token" ,
1014 "figma:icons:sync" : " node scripts/iconConnector.mjs"
Original file line number Diff line number Diff line change 77 */
88import fs from 'fs/promises' ;
99import path from 'path' ;
10- import { existsSync } from 'fs' ;
1110
1211// Simple logger implementation
1312const logger = {
You can’t perform that action at this time.
0 commit comments