diff --git a/.gitignore b/.gitignore index 07168936c32..414d50220e1 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,7 @@ coverage .tmp .eslintcache package-lock.json +.env # package managers yarn-error.log diff --git a/packages/code-connect/components/Slider/Slider.figma.tsx b/packages/code-connect/components/Slider/Slider.figma.tsx new file mode 100644 index 00000000000..83a1f8be6cc --- /dev/null +++ b/packages/code-connect/components/Slider/Slider.figma.tsx @@ -0,0 +1,46 @@ +import figma from '@figma/code-connect'; +import { Button, Slider } from '@patternfly/react-core'; +import MinusIcon from '@patternfly/react-icons/dist/esm/icons/minus-icon'; +import PlusIcon from '@patternfly/react-icons/dist/esm/icons/plus-icon'; + +// TODO: DESIGN: Define left/right actions +// Documentation for Slider can be found at https://www.patternfly.org/components/slider + +figma.connect( + Slider, + 'https://www.figma.com/design/VMEX8Xg2nzhBX8rfBx53jp/PatternFly-6--Components?node-id=3155-97956', + { + props: { + // boolean + isInputVisible: figma.boolean('Value input'), + endActions: figma.boolean('Right action', { + true: + + ) + } +); diff --git a/packages/code-connect/components/auto-generate-figma.config.json b/packages/code-connect/components/auto-generate-figma.config.json new file mode 100644 index 00000000000..80b3c01654a --- /dev/null +++ b/packages/code-connect/components/auto-generate-figma.config.json @@ -0,0 +1,7 @@ +{ + "codeConnect": { + "include": ["../../**/*.{tsx,jsx}"], + "label": "React", + "interactiveSetupFigmaFileUrl": "https://www.figma.com/design/VMEX8Xg2nzhBX8rfBx53jp/PatternFly-6--Components" + } +} diff --git a/packages/code-connect/components/bafigma.config.json b/packages/code-connect/components/bafigma.config.json new file mode 100644 index 00000000000..a1b9a9916e8 --- /dev/null +++ b/packages/code-connect/components/bafigma.config.json @@ -0,0 +1,36 @@ +{ + "codeConnect": { + "label": "React", + "include": [ + "components/NotificationDrawer/*.tsx", + "components/Pagination/*.tsx", + "components/Popover/*.tsx", + "components/SimpleList/*.tsx", + "components/Skeleton/*.tsx" + ], + "paths": { + "components": "components" + }, + "documentUrlSubstitutions": { + "https://www.figma.com/design/VMEX8Xg2nzhBX8rfBx53jp/PatternFly-6--Components": "https://www.figma.com/design/VMEX8Xg2nzhBX8rfBx53jp/branch/Em2QWrHDxDS4LUxo58Hust/PatternFly-6--Components" + }, + "aliases": { + "@patternfly/react-core": "." + }, + "importPaths": { + "components": "components" + }, + "options": { + "instanceSwapper": { + "enabled": true + }, + "development": { + "enabled": true, + "verbose": true + }, + "production": { + "enabled": false + } + } + } +} diff --git a/packages/code-connect/figma.config.json b/packages/code-connect/figma.config.json index 2537e14be2b..46613939317 100644 --- a/packages/code-connect/figma.config.json +++ b/packages/code-connect/figma.config.json @@ -2,12 +2,16 @@ "codeConnect": { "parser": "react", "include": [ - "components/DatePicker/*.tsx", - "components/EmptyState/*.tsx", - "components/FileUpload/*.tsx", - "components/Hint/*.tsx", - "components/InlineEdit/*.tsx" + "components/Slider/*.tsx", + "components/Spinner/*.tsx", + "components/Tabs/*.tsx", + "components/Timestamp/*.tsx", + "components/ToggleGroup/*.tsx", + "components/Tooltip/*.tsx" ], + "documentUrlSubstitutions": { + "https://www.figma.com/design/VMEX8Xg2nzhBX8rfBx53jp/PatternFly-6--Components": "https://www.figma.com/design/VMEX8Xg2nzhBX8rfBx53jp/branch/e1OeQDrgPKW13FswRqSP3I/PatternFly-6--Components" + }, "paths": { "src/components": "src/components" }, @@ -30,4 +34,4 @@ } } } -} \ No newline at end of file +}