-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into TextArea_Invalid_icon_bug
- Loading branch information
Showing
244 changed files
with
2,762 additions
and
887 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
on: | ||
push: | ||
paths: | ||
- src/packages/react/code-connect/**/*.figma.tsx | ||
branches: | ||
- main | ||
|
||
jobs: | ||
code-connect: | ||
name: Code Connect | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: npx figma connect publish |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,3 +57,6 @@ package-lock.json | |
|
||
# Playwright | ||
.playwright | ||
|
||
# Local token | ||
.env |
Binary file removed
BIN
-9.17 KB
.yarn/cache/@babel-code-frame-npm-7.22.13-2782581d20-bf6ae6ba3a.zip
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-9.47 KB
.yarn/cache/@babel-compat-data-npm-7.22.9-f9e02d51b9-6797f59857.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-21.7 KB
.yarn/cache/@babel-helper-compilation-targets-npm-7.22.9-b4473889ca-779510e4c2.zip
Binary file not shown.
Binary file added
BIN
+21.8 KB
.yarn/cache/@babel-helper-compilation-targets-npm-7.24.7-b6fcad7a45-8f8bc89af7.zip
Binary file not shown.
Binary file removed
BIN
-4.34 KB
.yarn/cache/@babel-helper-environment-visitor-npm-7.22.5-7bc52eec61-248532077d.zip
Binary file not shown.
Binary file added
BIN
+4.37 KB
.yarn/cache/@babel-helper-environment-visitor-npm-7.24.7-9a965bf523-079d86e657.zip
Binary file not shown.
Binary file removed
BIN
-8.75 KB
.yarn/cache/@babel-helper-function-name-npm-7.22.5-8a1a69b63d-6d02e304a4.zip
Binary file not shown.
Binary file added
BIN
+8.85 KB
.yarn/cache/@babel-helper-function-name-npm-7.24.7-4f88fa6768-2ceb3d9b2b.zip
Binary file not shown.
Binary file removed
BIN
-4.5 KB
.yarn/cache/@babel-helper-hoist-variables-npm-7.22.5-6db3192347-394ca191b4.zip
Binary file not shown.
Binary file added
BIN
+4.5 KB
.yarn/cache/@babel-helper-hoist-variables-npm-7.24.7-3d1fb54723-6cfdcf2289.zip
Binary file not shown.
Binary file removed
BIN
-16 KB
.yarn/cache/@babel-helper-module-imports-npm-7.22.5-399b6063db-d8296447c0.zip
Binary file not shown.
Binary file added
BIN
+18.2 KB
.yarn/cache/@babel-helper-module-imports-npm-7.24.7-f60e66adbf-df8bfb2bb1.zip
Binary file not shown.
Binary file removed
BIN
-41.9 KB
.yarn/cache/@babel-helper-module-transforms-npm-7.22.9-dfa9ef05d1-80244f45e3.zip
Binary file not shown.
Binary file added
BIN
+45.4 KB
.yarn/cache/@babel-helper-module-transforms-npm-7.24.7-34219c1829-4f2b232bf6.zip
Binary file not shown.
Binary file removed
BIN
-5.9 KB
.yarn/cache/@babel-helper-simple-access-npm-7.22.5-0a3f578780-7d5430eecf.zip
Binary file not shown.
Binary file added
BIN
+5.91 KB
.yarn/cache/@babel-helper-simple-access-npm-7.24.7-beddd00b0e-5083e19018.zip
Binary file not shown.
Binary file removed
BIN
-5.25 KB
.yarn/cache/@babel-helper-split-export-declaration-npm-7.22.6-e723505aef-e141cace58.zip
Binary file not shown.
Binary file added
BIN
+5.31 KB
.yarn/cache/@babel-helper-split-export-declaration-npm-7.24.7-77b1fc1a1c-ff04a30716.zip
Binary file not shown.
Binary file removed
BIN
-9.82 KB
.yarn/cache/@babel-helper-string-parser-npm-7.22.5-448ff0e489-7f275a7f1a.zip
Binary file not shown.
Binary file added
BIN
+9.92 KB
.yarn/cache/@babel-helper-string-parser-npm-7.24.7-560b175e3f-603d8d962b.zip
Binary file not shown.
Binary file removed
BIN
-17.5 KB
.yarn/cache/@babel-helper-validator-identifier-npm-7.22.20-18305bb306-df882d2675.zip
Binary file not shown.
Binary file added
BIN
+17.7 KB
.yarn/cache/@babel-helper-validator-identifier-npm-7.24.7-748889c8d2-86875063f5.zip
Binary file not shown.
Binary file removed
BIN
-7.14 KB
.yarn/cache/@babel-helper-validator-option-npm-7.22.5-eaf22b24ab-bbeca8a85e.zip
Binary file not shown.
Binary file added
BIN
+7.22 KB
.yarn/cache/@babel-helper-validator-option-npm-7.24.7-6bf4b631c7-9689166bf3.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-22.4 KB
.yarn/cache/@jridgewell-gen-mapping-npm-0.3.3-1815eba94c-072ace159c.zip
Binary file not shown.
Binary file added
BIN
+23 KB
.yarn/cache/@jridgewell-gen-mapping-npm-0.3.5-d8b85ebeaf-81587b3c4d.zip
Binary file not shown.
Binary file removed
BIN
-17.9 KB
.yarn/cache/@jridgewell-resolve-uri-npm-3.1.0-6ff2351e61-320ceb37af.zip
Binary file not shown.
Binary file added
BIN
+17.5 KB
.yarn/cache/@jridgewell-resolve-uri-npm-3.1.2-5bc4245992-97106439d7.zip
Binary file not shown.
Binary file removed
BIN
-8.65 KB
.yarn/cache/@jridgewell-set-array-npm-1.1.2-45b82d7fb6-69a84d5980.zip
Binary file not shown.
Binary file added
BIN
+8.72 KB
.yarn/cache/@jridgewell-set-array-npm-1.2.1-2312928209-832e513a85.zip
Binary file not shown.
Binary file removed
BIN
-13.4 KB
.yarn/cache/@jridgewell-sourcemap-codec-npm-1.4.14-f5f0630788-26e768fae6.zip
Binary file not shown.
Binary file added
BIN
+14.7 KB
.yarn/cache/@jridgewell-sourcemap-codec-npm-1.4.15-a055fb62cf-89960ac087.zip
Binary file not shown.
Binary file removed
BIN
-44.4 KB
.yarn/cache/@jridgewell-trace-mapping-npm-0.3.18-cd96571385-f4fabdddf8.zip
Binary file not shown.
Binary file added
BIN
+45.6 KB
.yarn/cache/@jridgewell-trace-mapping-npm-0.3.25-c076fd2279-dced32160a.zip
Binary file not shown.
Binary file removed
BIN
-47.8 KB
.yarn/cache/@rollup-plugin-commonjs-npm-25.0.0-b166ce9151-cd6eedc656.zip
Binary file not shown.
Binary file added
BIN
+48.4 KB
.yarn/cache/@rollup-plugin-commonjs-npm-26.0.1-7d48d11c44-d9846fbf9c.zip
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+4.29 KB
.yarn/cache/@storybook-client-logger-npm-7.6.19-6ae88c3561-140ea57ea5.zip
Binary file not shown.
Binary file added
BIN
+25.4 KB
.yarn/cache/@storybook-core-events-npm-7.6.19-3894c301ac-bbf856ee35.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+13.2 KB
.yarn/cache/@storybook-csf-tools-npm-7.6.19-b014c5f562-ef616c8df2.zip
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+757 KB
...eact-npm-15.0.2-095a436fff-6327e46573.zip → ...eact-npm-15.0.7-fc23780217-a9342ad09b.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-19.6 KB
.yarn/cache/css-declaration-sorter-npm-6.4.0-003ccc93b4-65bd7e3044.zip
Binary file not shown.
Binary file added
BIN
+23.1 KB
.yarn/cache/css-declaration-sorter-npm-7.2.0-b5087e1063-2acb9c13f5.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-6.89 KB
.yarn/cache/cssnano-preset-default-npm-6.0.0-d4ca4f7fd8-b82108f034.zip
Binary file not shown.
Binary file added
BIN
+8.18 KB
.yarn/cache/cssnano-preset-default-npm-7.0.1-183349fe9f-025677b6e8.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-34.4 KB
.yarn/cache/electron-to-chromium-npm-1.4.523-5bcdc6898d-6eef01dd2a.zip
Binary file not shown.
Binary file added
BIN
+39.1 KB
.yarn/cache/electron-to-chromium-npm-1.4.796-f75cc49719-af3c22d0cb.zip
Binary file not shown.
Binary file renamed
BIN
+33.3 KB
...uild-npm-0.21.2-b889562da3-0f66638006.zip → ...uild-npm-0.21.3-21b4d64a1e-51d02f3430.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+3.65 KB
...olors-npm-1.0.0-d81e0b1927-a2e8092dd8.zip → ...olors-npm-1.0.1-39442f3da8-fa68166d1f.zip
Binary file not shown.
Binary file renamed
BIN
+49.8 KB
...-calc-npm-8.2.4-9d59948567-f34d0cbc5d.zip → ...calc-npm-10.0.0-34f482f811-a9edb9c8fa.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-6.62 KB
.yarn/cache/postcss-convert-values-npm-6.0.0-70092d4179-651493c94e.zip
Binary file not shown.
Binary file added
BIN
+7.87 KB
.yarn/cache/postcss-convert-values-npm-7.0.0-4679f46137-1196bdcdc8.zip
Binary file not shown.
Binary file removed
BIN
-6.66 KB
.yarn/cache/postcss-discard-comments-npm-6.0.0-ac728161e4-9be073707b.zip
Binary file not shown.
Binary file added
BIN
+7.87 KB
.yarn/cache/postcss-discard-comments-npm-7.0.0-ac48feda08-2db53331e3.zip
Binary file not shown.
Binary file removed
BIN
-4.15 KB
.yarn/cache/postcss-discard-duplicates-npm-6.0.0-ea71761f90-999dfc652a.zip
Binary file not shown.
Binary file added
BIN
+4.5 KB
.yarn/cache/postcss-discard-duplicates-npm-7.0.0-195cace147-0cae784e1e.zip
Binary file not shown.
Binary file removed
BIN
-3.45 KB
.yarn/cache/postcss-discard-empty-npm-6.0.0-5142133c52-0d6cc60471.zip
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+3.46 KB
...idden-npm-6.0.0-460871271c-f2d244bb57.zip → ...idden-npm-7.0.0-dc7733ab45-e41c448305.zip
Binary file not shown.
Binary file removed
BIN
-27.5 KB
.yarn/cache/postcss-merge-longhand-npm-6.0.0-b810e8f284-807760c96b.zip
Binary file not shown.
Binary file added
BIN
+36.7 KB
.yarn/cache/postcss-merge-longhand-npm-7.0.0-907c8a8ab1-031bb5f089.zip
Binary file not shown.
Binary file removed
BIN
-9.15 KB
.yarn/cache/postcss-merge-rules-npm-6.0.0-0dd22d8786-7a2bae3d5e.zip
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-9.6 KB
.yarn/cache/postcss-minify-font-values-npm-6.0.0-aa5bb21f6f-d5c06e185e.zip
Binary file not shown.
Binary file added
BIN
+11.9 KB
.yarn/cache/postcss-minify-font-values-npm-7.0.0-f4e2caa8b1-8578c1d1d4.zip
Binary file not shown.
Binary file renamed
BIN
+5.32 KB
...ients-npm-6.0.0-5652777e60-7d6daaa378.zip → ...ients-npm-7.0.0-f7b51ae77b-9649e255ad.zip
Binary file not shown.
Binary file removed
BIN
-4.19 KB
.yarn/cache/postcss-minify-params-npm-6.0.0-ee0bb9bac1-1cd9e372cf.zip
Binary file not shown.
Binary file added
BIN
+4.92 KB
.yarn/cache/postcss-minify-params-npm-7.0.0-9829f70c56-4093d6033f.zip
Binary file not shown.
Binary file removed
BIN
-5.72 KB
.yarn/cache/postcss-minify-selectors-npm-6.0.0-b477eb9e76-2ac7040383.zip
Binary file not shown.
Binary file added
BIN
+6.52 KB
.yarn/cache/postcss-minify-selectors-npm-7.0.0-25f2e97118-6b00ff0363.zip
Binary file not shown.
Binary file removed
BIN
-3.59 KB
.yarn/cache/postcss-normalize-charset-npm-6.0.0-c7634cef31-186a94083f.zip
Binary file not shown.
Binary file added
BIN
+3.97 KB
.yarn/cache/postcss-normalize-charset-npm-7.0.0-bdacb840f9-a41043fb81.zip
Binary file not shown.
Binary file removed
BIN
-4.81 KB
.yarn/cache/postcss-normalize-display-values-npm-6.0.0-05f480e36e-4f8da7cf81.zip
Binary file not shown.
Binary file added
BIN
+5.49 KB
.yarn/cache/postcss-normalize-display-values-npm-7.0.0-6a9992d76e-55bbfb4dac.zip
Binary file not shown.
Binary file renamed
BIN
+4.37 KB
...tions-npm-6.0.0-41d8e545a7-34dedb07f9.zip → ...tions-npm-7.0.0-75155a14d6-a6b982e567.zip
Binary file not shown.
Binary file removed
BIN
-5.08 KB
.yarn/cache/postcss-normalize-repeat-style-npm-6.0.0-a33f89383d-a53b994bb6.zip
Binary file not shown.
Binary file added
BIN
+5.76 KB
.yarn/cache/postcss-normalize-repeat-style-npm-7.0.0-2af427828c-f8ef8cf5ac.zip
Binary file not shown.
Binary file renamed
BIN
+5.23 KB
...tring-npm-6.0.0-da6d702bab-b47949a0a8.zip → ...tring-npm-7.0.0-0e5f6f1917-23ea7dd7b2.zip
Binary file not shown.
Binary file removed
BIN
-4.11 KB
.yarn/cache/postcss-normalize-timing-functions-npm-6.0.0-4e94cabf50-67021374f8.zip
Binary file not shown.
Binary file added
BIN
+4.47 KB
.yarn/cache/postcss-normalize-timing-functions-npm-7.0.0-7f393fd35d-f85870b3c8.zip
Binary file not shown.
Binary file removed
BIN
-4.06 KB
.yarn/cache/postcss-normalize-unicode-npm-6.0.0-9a17b83395-0f246bf551.zip
Binary file not shown.
Binary file added
BIN
+4.8 KB
.yarn/cache/postcss-normalize-unicode-npm-7.0.0-db049069eb-4efb35c394.zip
Binary file not shown.
Binary file removed
BIN
-6.09 KB
.yarn/cache/postcss-normalize-url-npm-6.0.0-63fff2c212-93160c02e5.zip
Binary file not shown.
Binary file added
BIN
+6.77 KB
.yarn/cache/postcss-normalize-url-npm-7.0.0-055009149a-c5edca0646.zip
Binary file not shown.
Binary file renamed
BIN
+3.92 KB
...space-npm-6.0.0-dcc48a280d-77940955fb.zip → ...space-npm-7.0.0-8bed345e63-c409362e32.zip
Binary file not shown.
Binary file removed
BIN
-17.7 KB
.yarn/cache/postcss-ordered-values-npm-6.0.0-d93fb7fe2a-6c6d75129b.zip
Binary file not shown.
Binary file added
BIN
+22.8 KB
.yarn/cache/postcss-ordered-values-npm-7.0.0-e89ace471c-c4c1136672.zip
Binary file not shown.
Binary file removed
BIN
-7.15 KB
.yarn/cache/postcss-reduce-initial-npm-6.0.0-1e827757ee-621672ac7d.zip
Binary file not shown.
Binary file added
BIN
+9.02 KB
.yarn/cache/postcss-reduce-initial-npm-7.0.0-5ea632b56d-4710e10324.zip
Binary file not shown.
Binary file renamed
BIN
+4.38 KB
...forms-npm-6.0.0-50b61ca0b4-52a5847ae3.zip → ...forms-npm-7.0.0-653cd9844a-1c369a1be8.zip
Binary file not shown.
Binary file renamed
BIN
+58.9 KB
...rser-npm-6.0.13-f732d92326-e779aa1f8c.zip → ...rser-npm-6.0.16-a6448fd7e1-9324f63992.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-3.46 KB
.yarn/cache/postcss-unique-selectors-npm-6.0.0-cb2a8020fd-5fbfeaf796.zip
Binary file not shown.
Binary file added
BIN
+3.81 KB
.yarn/cache/postcss-unique-selectors-npm-7.0.0-f65fa7a26b-7f7c817c6b.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+8.92 KB
...t-is-npm-18.2.0-0cc5edb910-200cd65bf2.zip → ...t-is-npm-18.3.1-370a81e1e9-d5f60c87d2.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+29.1 KB
...uler-npm-0.23.0-a379a6bc3b-0c4557aa37.zip → ...uler-npm-0.23.2-6d1dd9c2b7-e8d68b89d1.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-6.56 KB
.yarn/cache/update-browserslist-db-npm-1.0.11-2c8e64258f-cc1c7a38d1.zip
Binary file not shown.
Binary file added
BIN
+7.45 KB
.yarn/cache/update-browserslist-db-npm-1.0.16-ca365328e3-071bf0b2fb.zip
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"codeConnect": { | ||
"include": ["packages/react/code-connect/**"], | ||
"react": { | ||
"importPaths": { | ||
"packages/react/src/*": "@carbon/react" | ||
}, | ||
"paths": {} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/** | ||
* Copyright IBM Corp. 2016, 2024 | ||
* | ||
* This source code is licensed under the Apache-2.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
// @ts-nocheck | ||
import React from 'react'; | ||
import { Accordion } from '@carbon/react'; | ||
import figma from '@figma/code-connect'; | ||
|
||
figma.connect( | ||
Accordion, | ||
'https://www.figma.com/file/YAnB1jKx0yCUL29j6uSLpg/(v11)-All-themes---Carbon-Design-System?type=design&node-id=2490-17019&mode=design&t=0hF8pirV0i9mofd1-4', | ||
{ | ||
props: { | ||
// missing props, set on Accordion item within Figma | ||
// size | ||
// isFlush | ||
// align | ||
children: figma.children(['Accordion item']), | ||
}, | ||
example: ({ children }) => ( | ||
// Disclaimer: Code Connect is currently in beta and integration with Carbon | ||
// React is in an exploratory phase. Code sample below may be incomplete. | ||
<Accordion>{children}</Accordion> | ||
), | ||
} | ||
); |
70 changes: 70 additions & 0 deletions
70
packages/react/code-connect/Accordion/AccordionItem.figma.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
/** | ||
* Copyright IBM Corp. 2016, 2024 | ||
* | ||
* This source code is licensed under the Apache-2.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
// @ts-nocheck | ||
import React from 'react'; | ||
import { AccordionItem } from '@carbon/react'; | ||
import figma from '@figma/code-connect'; | ||
|
||
figma.connect( | ||
AccordionItem, | ||
'https://www.figma.com/file/YAnB1jKx0yCUL29j6uSLpg/(v11)-All-themes---Carbon-Design-System?type=design&node-id=2154-8478&mode=design&t=0hF8pirV0i9mofd1-4', | ||
{ | ||
props: { | ||
title: figma.string('Title text'), | ||
disabled: figma.enum('State', { | ||
Disabled: true, | ||
}), | ||
open: figma.boolean('Expanded'), | ||
content: figma.string('Content text'), | ||
children: figma.instance('Swap slot'), | ||
// Props below are on accordion item in Figma and accordion in React | ||
// size: figma.enum('Size', { | ||
// Large: 'lg', | ||
// Medium: 'md', | ||
// Small: 'sm', | ||
// }), | ||
// isFlush: figma.boolean('Flush'), | ||
// align: figma.enum('Alignment', { | ||
// Left: 'start', | ||
// }), | ||
}, | ||
example: ({ | ||
title, | ||
disabled, | ||
open, | ||
content, | ||
children, | ||
// size, needs to be set on Accordion | ||
// isFlush, needs to be set on Accordion | ||
// align, needs to be set on Accordion | ||
}) => ( | ||
<AccordionItem title={title} disabled={disabled} open={open}> | ||
<p>{content}</p> | ||
{children} | ||
</AccordionItem> | ||
), | ||
} | ||
); | ||
|
||
// figma.connect( | ||
// AccordionSkeleton, | ||
// 'https://www.figma.com/file/YAnB1jKx0yCUL29j6uSLpg/(v11)-All-themes---Carbon-Design-System?type=design&node-id=14032-290635&mode=dev', | ||
// { | ||
// variant: { State: 'Skeleton' }, | ||
// props: { | ||
// open: figma.boolean('Expanded'), | ||
// isFlush: figma.boolean('Flush'), | ||
// align: figma.enum('Alignment', { | ||
// Left: 'start', | ||
// }), | ||
// }, | ||
// example: ({ size, hideLabel }) => { | ||
// return <AccordionSkeleton align={align} />; | ||
// }, | ||
// } | ||
// ); |
29 changes: 29 additions & 0 deletions
29
packages/react/code-connect/Breadcrumb/Breadcrumb.figma.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/** | ||
* Copyright IBM Corp. 2016, 2024 | ||
* | ||
* This source code is licensed under the Apache-2.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
// @ts-nocheck | ||
import React from 'react'; | ||
import { Breadcrumb } from '@carbon/react'; | ||
import figma from '@figma/code-connect'; | ||
|
||
figma.connect( | ||
Breadcrumb, | ||
'https://www.figma.com/design/YAnB1jKx0yCUL29j6uSLpg/(v11)-All-themes---Carbon-Design-System?node-id=3155-31030&t=U57NnoohldL54XAl-4', | ||
{ | ||
props: { | ||
//noTrailingSlash: needs to come from child item component in figma | ||
children: figma.children(['_Breadcrumb item']), | ||
}, | ||
example: ({ children }) => ( | ||
// Disclaimer: Code Connect is currently in beta and integration with Carbon | ||
// React is in an exploratory phase. Code sample below may be incomplete. | ||
<Breadcrumb>{children}</Breadcrumb> | ||
), | ||
} | ||
); | ||
|
||
// BreadcrumbSkeleton missing from Figma, can only be set on individual items |
64 changes: 64 additions & 0 deletions
64
packages/react/code-connect/Breadcrumb/BreadcrumbItem.figma.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
/** | ||
* Copyright IBM Corp. 2016, 2024 | ||
* | ||
* This source code is licensed under the Apache-2.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
// @ts-nocheck | ||
import React from 'react'; | ||
import { BreadcrumbItem, OverflowMenu, OverflowMenuItem } from '@carbon/react'; | ||
import figma from '@figma/code-connect'; | ||
|
||
figma.connect( | ||
BreadcrumbItem, | ||
'https://www.figma.com/design/YAnB1jKx0yCUL29j6uSLpg/(v11)-All-themes---Carbon-Design-System?node-id=3136-29234&t=U57NnoohldL54XAl-4', | ||
{ | ||
variant: { Type: 'Link' }, | ||
props: { | ||
// state: figma.enum('State', { // in react skeleton state replaces the entire Breadcrumb component , not BreadcrumbItem | ||
// Skeleton: 'skeleton', | ||
// }), | ||
children: figma.string('Link text'), | ||
}, | ||
example: ({ children }) => ( | ||
<BreadcrumbItem href="#">{children}</BreadcrumbItem> | ||
), | ||
} | ||
); | ||
|
||
figma.connect( | ||
BreadcrumbItem, | ||
'https://www.figma.com/design/YAnB1jKx0yCUL29j6uSLpg/(v11)-All-themes---Carbon-Design-System?node-id=3136-29234&t=U57NnoohldL54XAl-4', | ||
{ | ||
variant: { Type: 'Current page' }, | ||
props: { | ||
children: figma.string('Link text'), | ||
isCurrentPage: figma.boolean('Current'), | ||
}, | ||
example: ({ children, isCurrentPage }) => ( | ||
<BreadcrumbItem isCurrentPage={isCurrentPage}>{children}</BreadcrumbItem> | ||
), | ||
} | ||
); | ||
|
||
figma.connect( | ||
BreadcrumbItem, | ||
'https://www.figma.com/design/YAnB1jKx0yCUL29j6uSLpg/(v11)-All-themes---Carbon-Design-System?node-id=3136-29234&t=U57NnoohldL54XAl-4', | ||
{ | ||
variant: { Type: 'Overflow' }, | ||
props: { | ||
isCurrentPage: figma.boolean('Current'), | ||
}, | ||
example: ({ isCurrentPage }) => ( | ||
<BreadcrumbItem | ||
isCurrentPage={isCurrentPage} | ||
data-floating-menu-container> | ||
<OverflowMenu aria-label="Overflow menu in a breadcrumb"> | ||
<OverflowMenuItem itemText="Breadcrumb 3" /> | ||
<OverflowMenuItem itemText="Breadcrumb 4" /> | ||
</OverflowMenu> | ||
</BreadcrumbItem> | ||
), | ||
} | ||
); |
Oops, something went wrong.