1- import React from 'react' ;
2- import { Banner } from 'src/components/Banner' ;
1+ import { Banner } from '@patternfly/react-core/dist/js/components/Banner' ;
32import figma from '@figma/code-connect' ;
43
54// Design updates
@@ -66,28 +65,28 @@ import figma from '@figma/code-connect';
6665 * code example you'd like to see in Figma
6766 */
6867
69- figma . connect (
70- Banner ,
71- 'https://www.figma.com/design/VMEX8Xg2nzhBX8rfBx53jp/branch/H3LonYnwH26v9zNEa2SXFk/PatternFly-6%3A-Components?node-id=221-937&t=7hKW0DzmfHGhNQnn-11' ,
72- {
73- props : {
74- // use `Content` ubiquitiously
75- figmaText : figma . textContent ( 'Content' ) ,
76- customStatusIcon : figma . instance ( 'Custom status icon' ) ,
77- leftText : figma . boolean ( 'Left text' ) ,
78- rightText : figma . boolean ( 'Right text' ) ,
79- centerText : figma . string ( '✏️ Center text' ) ,
80- status : figma . enum ( 'Status' , {
81- Success : 'success' ,
82- Warning : 'warning' ,
83- Danger : 'danger' ,
84- Info : 'info' ,
85- Custom : 'custom'
86- } )
87- } ,
88- example : ( props ) => < Banner > { props . figmaText } </ Banner >
89- }
90- ) ;
68+ // figma.connect(
69+ // Banner,
70+ // 'https://www.figma.com/design/VMEX8Xg2nzhBX8rfBx53jp/branch/H3LonYnwH26v9zNEa2SXFk/PatternFly-6%3A-Components?node-id=221-937&t=7hKW0DzmfHGhNQnn-11',
71+ // {
72+ // props: {
73+ // // use `Content` ubiquitiously
74+ // figmaText: figma.textContent('Content'),
75+ // customStatusIcon: figma.instance('Custom status icon'),
76+ // leftText: figma.boolean('Left text'),
77+ // rightText: figma.boolean('Right text'),
78+ // centerText: figma.string('✏️ Center text'),
79+ // status: figma.enum('Status', {
80+ // Success: 'success',
81+ // Warning: 'warning',
82+ // Danger: 'danger',
83+ // Info: 'info',
84+ // Custom: 'custom'
85+ // })
86+ // },
87+ // example: (props) => <Banner>{props.figmaText}</Banner>
88+ // }
89+ // );
9190
9291/**
9392 * -- This file was auto-generated by Code Connect --
@@ -97,28 +96,28 @@ figma.connect(
9796 * code example you'd like to see in Figma
9897 */
9998
100- figma . connect (
101- Banner ,
102- 'https://www.figma.com/design/VMEX8Xg2nzhBX8rfBx53jp/branch/H3LonYnwH26v9zNEa2SXFk/PatternFly-6%3A-Components?node-id=221-1443&t=7hKW0DzmfHGhNQnn-11' ,
103- {
104- props : {
105- icon : figma . boolean ( 'Icon' ) ,
106- iconSwap : figma . instance ( 'Icon Swap' ) ,
107- leftText : figma . boolean ( 'Left text' ) ,
108- rightText : figma . boolean ( 'Right text' ) ,
109- centerText : figma . string ( '✏️ Center text' ) ,
110- color : figma . enum ( 'Color' , {
111- Red : 'red' ,
112- Orangered : 'orangered' ,
113- Orange : 'orange' ,
114- Gold : 'gold' ,
115- Green : 'green' ,
116- Cyan : 'cyan' ,
117- Blue : 'blue' ,
118- Purple : 'purple' ,
119- Gray : 'gray'
120- } )
121- } ,
122- example : ( props ) => < Banner > { props . figmaText } </ Banner >
123- }
124- ) ;
99+ // figma.connect(
100+ // Banner,
101+ // 'https://www.figma.com/design/VMEX8Xg2nzhBX8rfBx53jp/branch/H3LonYnwH26v9zNEa2SXFk/PatternFly-6%3A-Components?node-id=221-1443&t=7hKW0DzmfHGhNQnn-11',
102+ // {
103+ // props: {
104+ // icon: figma.boolean('Icon'),
105+ // iconSwap: figma.instance('Icon Swap'),
106+ // leftText: figma.boolean('Left text'),
107+ // rightText: figma.boolean('Right text'),
108+ // centerText: figma.string('✏️ Center text'),
109+ // color: figma.enum('Color', {
110+ // Red: 'red',
111+ // Orangered: 'orangered',
112+ // Orange: 'orange',
113+ // Gold: 'gold',
114+ // Green: 'green',
115+ // Cyan: 'cyan',
116+ // Blue: 'blue',
117+ // Purple: 'purple',
118+ // Gray: 'gray'
119+ // })
120+ // },
121+ // example: (props) => <Banner>{props.figmaText}</Banner>
122+ // }
123+ // );
0 commit comments