diff --git a/.yarn/cache/@eslint-community-regexpp-npm-4.10.0-6bfb984c81-8c36169c81.zip b/.yarn/cache/@eslint-community-regexpp-npm-4.10.0-6bfb984c81-8c36169c81.zip deleted file mode 100644 index 14fb460b5dfb..000000000000 Binary files a/.yarn/cache/@eslint-community-regexpp-npm-4.10.0-6bfb984c81-8c36169c81.zip and /dev/null differ diff --git a/.yarn/cache/@eslint-community-regexpp-npm-4.10.1-785b16afd9-54f13817ca.zip b/.yarn/cache/@eslint-community-regexpp-npm-4.10.1-785b16afd9-54f13817ca.zip new file mode 100644 index 000000000000..10a4f8e626b8 Binary files /dev/null and b/.yarn/cache/@eslint-community-regexpp-npm-4.10.1-785b16afd9-54f13817ca.zip differ diff --git a/.yarn/cache/@eslint-config-array-npm-0.16.0-3d9e707ee8-6c1716f896.zip b/.yarn/cache/@eslint-config-array-npm-0.16.0-3d9e707ee8-6c1716f896.zip new file mode 100644 index 000000000000..fa97e48e5116 Binary files /dev/null and b/.yarn/cache/@eslint-config-array-npm-0.16.0-3d9e707ee8-6c1716f896.zip differ diff --git a/.yarn/cache/@eslint-js-npm-9.3.0-de76de965f-3fb4b30561.zip b/.yarn/cache/@eslint-js-npm-9.5.0-23a7c544a7-206364e3a0.zip similarity index 90% rename from .yarn/cache/@eslint-js-npm-9.3.0-de76de965f-3fb4b30561.zip rename to .yarn/cache/@eslint-js-npm-9.5.0-23a7c544a7-206364e3a0.zip index de0c3ce12d26..5b3a703ded5b 100644 Binary files a/.yarn/cache/@eslint-js-npm-9.3.0-de76de965f-3fb4b30561.zip and b/.yarn/cache/@eslint-js-npm-9.5.0-23a7c544a7-206364e3a0.zip differ diff --git a/.yarn/cache/@eslint-object-schema-npm-2.1.4-0546250476-221e8d9f28.zip b/.yarn/cache/@eslint-object-schema-npm-2.1.4-0546250476-221e8d9f28.zip new file mode 100644 index 000000000000..2000881f6f4e Binary files /dev/null and b/.yarn/cache/@eslint-object-schema-npm-2.1.4-0546250476-221e8d9f28.zip differ diff --git a/.yarn/cache/@figma-code-connect-npm-0.1.2-8819a2148f-730fd7b326.zip b/.yarn/cache/@figma-code-connect-npm-0.1.2-8819a2148f-730fd7b326.zip deleted file mode 100644 index 18d8702a81e4..000000000000 Binary files a/.yarn/cache/@figma-code-connect-npm-0.1.2-8819a2148f-730fd7b326.zip and /dev/null differ diff --git a/.yarn/cache/@figma-code-connect-npm-1.0.1-64a8b81268-1fceaee828.zip b/.yarn/cache/@figma-code-connect-npm-1.0.1-64a8b81268-1fceaee828.zip new file mode 100644 index 000000000000..a5c943c3a337 Binary files /dev/null and b/.yarn/cache/@figma-code-connect-npm-1.0.1-64a8b81268-1fceaee828.zip differ diff --git a/.yarn/cache/@humanwhocodes-config-array-npm-0.13.0-843095a032-524df31e61.zip b/.yarn/cache/@humanwhocodes-config-array-npm-0.13.0-843095a032-524df31e61.zip deleted file mode 100644 index 2e048a87a87c..000000000000 Binary files a/.yarn/cache/@humanwhocodes-config-array-npm-0.13.0-843095a032-524df31e61.zip and /dev/null differ diff --git a/.yarn/cache/@humanwhocodes-object-schema-npm-2.0.3-4f0e508cd9-05bb99ed06.zip b/.yarn/cache/@humanwhocodes-object-schema-npm-2.0.3-4f0e508cd9-05bb99ed06.zip deleted file mode 100644 index 52ae4fad0cc8..000000000000 Binary files a/.yarn/cache/@humanwhocodes-object-schema-npm-2.0.3-4f0e508cd9-05bb99ed06.zip and /dev/null differ diff --git a/.yarn/cache/acorn-npm-8.11.3-0d7ab48b38-b688e7e3c6.zip b/.yarn/cache/acorn-npm-8.11.3-0d7ab48b38-b688e7e3c6.zip deleted file mode 100644 index 7cca3a275b71..000000000000 Binary files a/.yarn/cache/acorn-npm-8.11.3-0d7ab48b38-b688e7e3c6.zip and /dev/null differ diff --git a/.yarn/cache/acorn-npm-8.12.0-10680c055b-550cc50331.zip b/.yarn/cache/acorn-npm-8.12.0-10680c055b-550cc50331.zip new file mode 100644 index 000000000000..e466b5ec2eb5 Binary files /dev/null and b/.yarn/cache/acorn-npm-8.12.0-10680c055b-550cc50331.zip differ diff --git a/.yarn/cache/boxen-npm-5.1.1-b7203e17b4-0f354617ee.zip b/.yarn/cache/boxen-npm-5.1.1-b7203e17b4-0f354617ee.zip new file mode 100644 index 000000000000..1b86aede41aa Binary files /dev/null and b/.yarn/cache/boxen-npm-5.1.1-b7203e17b4-0f354617ee.zip differ diff --git a/.yarn/cache/compare-versions-npm-6.1.0-43f6eabab2-20f349e7f8.zip b/.yarn/cache/compare-versions-npm-6.1.0-43f6eabab2-20f349e7f8.zip new file mode 100644 index 000000000000..6326f605f5a6 Binary files /dev/null and b/.yarn/cache/compare-versions-npm-6.1.0-43f6eabab2-20f349e7f8.zip differ diff --git a/.yarn/cache/eslint-npm-9.3.0-90fe77a320-c56d63bc36.zip b/.yarn/cache/eslint-npm-9.5.0-c1652fa321-47578c2426.zip similarity index 82% rename from .yarn/cache/eslint-npm-9.3.0-90fe77a320-c56d63bc36.zip rename to .yarn/cache/eslint-npm-9.5.0-c1652fa321-47578c2426.zip index 137d7e72602a..79a088bd5939 100644 Binary files a/.yarn/cache/eslint-npm-9.3.0-90fe77a320-c56d63bc36.zip and b/.yarn/cache/eslint-npm-9.5.0-c1652fa321-47578c2426.zip differ diff --git a/.yarn/cache/espree-npm-10.0.1-1d04a36678-557d6cfb48.zip b/.yarn/cache/espree-npm-10.0.1-1d04a36678-557d6cfb48.zip deleted file mode 100644 index be94427b9b74..000000000000 Binary files a/.yarn/cache/espree-npm-10.0.1-1d04a36678-557d6cfb48.zip and /dev/null differ diff --git a/.yarn/cache/espree-npm-10.1.0-6847541ce4-a673aa39a1.zip b/.yarn/cache/espree-npm-10.1.0-6847541ce4-a673aa39a1.zip new file mode 100644 index 000000000000..185efea66c0b Binary files /dev/null and b/.yarn/cache/espree-npm-10.1.0-6847541ce4-a673aa39a1.zip differ diff --git a/.yarn/cache/fast-fuzzy-npm-1.12.0-a65a056a7c-fed3af2863.zip b/.yarn/cache/fast-fuzzy-npm-1.12.0-a65a056a7c-fed3af2863.zip new file mode 100644 index 000000000000..eaea3e6d2383 Binary files /dev/null and b/.yarn/cache/fast-fuzzy-npm-1.12.0-a65a056a7c-fed3af2863.zip differ diff --git a/.yarn/cache/graphemesplit-npm-2.4.4-63ef746db9-7084ea17ef.zip b/.yarn/cache/graphemesplit-npm-2.4.4-63ef746db9-7084ea17ef.zip new file mode 100644 index 000000000000..ca9d75648ca2 Binary files /dev/null and b/.yarn/cache/graphemesplit-npm-2.4.4-63ef746db9-7084ea17ef.zip differ diff --git a/.yarn/cache/js-base64-npm-3.7.7-641cff09f0-185e34c536.zip b/.yarn/cache/js-base64-npm-3.7.7-641cff09f0-185e34c536.zip new file mode 100644 index 000000000000..5cf464129c6c Binary files /dev/null and b/.yarn/cache/js-base64-npm-3.7.7-641cff09f0-185e34c536.zip differ diff --git a/.yarn/cache/prettier-npm-3.3.1-91c1be8598-31ca48d07a.zip b/.yarn/cache/prettier-npm-3.3.1-91c1be8598-31ca48d07a.zip deleted file mode 100644 index 722cb14783fd..000000000000 Binary files a/.yarn/cache/prettier-npm-3.3.1-91c1be8598-31ca48d07a.zip and /dev/null differ diff --git a/.yarn/cache/tiny-inflate-npm-1.0.3-a7419a5c65-f620114fb5.zip b/.yarn/cache/tiny-inflate-npm-1.0.3-a7419a5c65-f620114fb5.zip new file mode 100644 index 000000000000..433a41f9b3cc Binary files /dev/null and b/.yarn/cache/tiny-inflate-npm-1.0.3-a7419a5c65-f620114fb5.zip differ diff --git a/.yarn/cache/unicode-trie-npm-2.0.0-54e0a4dd52-60404411db.zip b/.yarn/cache/unicode-trie-npm-2.0.0-54e0a4dd52-60404411db.zip new file mode 100644 index 000000000000..cd5046dc0775 Binary files /dev/null and b/.yarn/cache/unicode-trie-npm-2.0.0-54e0a4dd52-60404411db.zip differ diff --git a/.yarn/cache/zod-npm-3.23.8-11c49c85b5-846fd73e1a.zip b/.yarn/cache/zod-npm-3.23.8-11c49c85b5-846fd73e1a.zip new file mode 100644 index 000000000000..a56c32125ead Binary files /dev/null and b/.yarn/cache/zod-npm-3.23.8-11c49c85b5-846fd73e1a.zip differ diff --git a/.yarn/cache/zod-validation-error-npm-3.3.0-382c47dd2b-19574cbc45.zip b/.yarn/cache/zod-validation-error-npm-3.3.0-382c47dd2b-19574cbc45.zip new file mode 100644 index 000000000000..b9ed809f2d15 Binary files /dev/null and b/.yarn/cache/zod-validation-error-npm-3.3.0-382c47dd2b-19574cbc45.zip differ diff --git a/figma.config.json b/figma.config.json index cbedf4779939..a9c9b45b5459 100644 --- a/figma.config.json +++ b/figma.config.json @@ -1,11 +1,10 @@ { "codeConnect": { - "include": ["packages/react/code-connect/**"], - "react": { - "importPaths": { - "packages/react/src/*": "@carbon/react" - }, - "paths": {} - } + "parser": "react", + "importPaths": { + "packages/react/src/*": "@carbon/react" + }, + "paths": {}, + "include": ["packages/react/code-connect/**"] } } diff --git a/packages/react/code-connect/Accordion/Accordion.figma.tsx b/packages/react/code-connect/Accordion/Accordion.figma.tsx index c932e2053bcb..27ebe49a3a10 100644 --- a/packages/react/code-connect/Accordion/Accordion.figma.tsx +++ b/packages/react/code-connect/Accordion/Accordion.figma.tsx @@ -15,16 +15,28 @@ figma.connect( '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']), + accordionItem: figma.nestedProps('Accordion item', { + align: figma.enum('Alignment', { + Left: 'start', + }), + isFlush: figma.boolean('Flush'), + size: figma.enum('Size', { + Large: 'lg', + Medium: 'md', + Small: 'sm', + }), + }), }, - example: ({ children }) => ( + example: ({ children, accordionItem }) => ( // Disclaimer: Code Connect is currently in beta and integration with Carbon // React is in an exploratory phase. Code sample below may be incomplete. - {children} + + {children} + ), } ); diff --git a/packages/react/code-connect/Accordion/AccordionItem.figma.tsx b/packages/react/code-connect/Accordion/AccordionItem.figma.tsx index 7074962f1f8f..50212b6a4e4d 100644 --- a/packages/react/code-connect/Accordion/AccordionItem.figma.tsx +++ b/packages/react/code-connect/Accordion/AccordionItem.figma.tsx @@ -22,27 +22,8 @@ figma.connect( 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 - }) => ( + example: ({ title, disabled, open, content, children }) => (

{content}

{children} diff --git a/packages/react/code-connect/CodeSnippet/CodeSnippet.figma.tsx b/packages/react/code-connect/CodeSnippet/CodeSnippet.figma.tsx index 803661584380..dbed7b34a4da 100644 --- a/packages/react/code-connect/CodeSnippet/CodeSnippet.figma.tsx +++ b/packages/react/code-connect/CodeSnippet/CodeSnippet.figma.tsx @@ -30,7 +30,7 @@ figma.connect( 'https://www.figma.com/design/YAnB1jKx0yCUL29j6uSLpg/(v11)-All-themes---Carbon-Design-System?node-id=4266-104960&t=cMvnFTYLPEhzhIpj-4', { props: { - children: figma.string('Code text'), + children: figma.textContent('node -v'), }, example: ({ children }) => { return ( @@ -49,14 +49,18 @@ figma.connect( CodeSnippet, 'https://www.figma.com/design/YAnB1jKx0yCUL29j6uSLpg/(v11)-All-themes---Carbon-Design-System?node-id=4266-103999&t=cMvnFTYLPEhzhIpj-4', { - example: () => ( - // Disclaimer: Code Connect is currently in beta and integration with Carbon - // React is in an exploratory phase. Code sample below may be incomplete. - - yarn add carbon-components@latest carbon-components-react@latest - @carbon/icons-react@latest carbon-icons@latest - - ), + props: { + children: figma.textContent('$ npm install --save carbon-components'), + }, + example: ({ children }) => { + return ( + // Disclaimer: Code Connect is currently in beta and integration with Carbon + // React is in an exploratory phase. Code sample below may be incomplete. + + {children} + + ); + }, } ); @@ -99,19 +103,3 @@ figma.connect( ), } ); - -// // Skeleton state (multiline only) -// figma.connect( -// CodeSnippetSkeleton, -// 'https://www.figma.com/design/YAnB1jKx0yCUL29j6uSLpg/(v11)-All-themes---Carbon-Design-System?node-id=4257-168802&t=cMvnFTYLPEhzhIpj-4', -// { -// variant: { State: 'Skeleton' }, -// example: () => { -// return ( -// // Disclaimer: Code Connect is currently in beta and integration with Carbon -// // React is in an exploratory phase. Code sample below may be incomplete. -// -// ); -// }, -// } -// ); diff --git a/packages/react/code-connect/ContentSwitcher/ContentSwitcher.figma.tsx b/packages/react/code-connect/ContentSwitcher/ContentSwitcher.figma.tsx index 20d14b3f891d..455b631b98c5 100644 --- a/packages/react/code-connect/ContentSwitcher/ContentSwitcher.figma.tsx +++ b/packages/react/code-connect/ContentSwitcher/ContentSwitcher.figma.tsx @@ -1,32 +1,56 @@ +/** + * 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 { ContentSwitcher } from './ContentSwitcher'; +import { ContentSwitcher } from '@carbon/react'; import figma from '@figma/code-connect'; -/** - * -- This file was auto-generated by `figma connect create` -- - * `props` includes a mapping from Figma properties and variants to - * suggested values. You should update this to match the props of your - * code component, and update the `example` function to return the - * code example you'd like to see in Figma - */ - figma.connect( ContentSwitcher, 'https://www.figma.com/design/YAnB1jKx0yCUL29j6uSLpg/(v11)-All-themes---Carbon-Design-System?node-id=10151-402486&t=LoXqbMLZkoMgbrAS-4', { props: { - type: figma.enum('Type', { - Default: 'default', - 'Icon only': 'icon-only', + children: figma.children(['_Content switcher text item']), + size: figma.enum('Size', { + Large: 'lg', + Medium: 'md', + Small: 'sm', }), + }, + example: ({ size, children }) => ( + // Disclaimer: Code Connect is currently in beta and integration with Carbon + // React is in an exploratory phase. Code sample below may be incomplete. + + {children} + + ), + } +); + +figma.connect( + ContentSwitcher, + 'https://www.figma.com/design/YAnB1jKx0yCUL29j6uSLpg/(v11)-All-themes---Carbon-Design-System?node-id=10151-402486&t=LoXqbMLZkoMgbrAS-4', + { + variant: { Type: 'Icon only' }, + props: { + children: figma.children(['_Content switcher icon item']), size: figma.enum('Size', { - Large: 'large', - Medium: 'medium', - Small: 'small', + Large: 'lg', + Medium: 'md', + Small: 'sm', }), - disabled: figma.boolean('Disabled'), }, - example: () => , + example: ({ size, children }) => ( + // Disclaimer: Code Connect is currently in beta and integration with Carbon + // React is in an exploratory phase. Code sample below may be incomplete. + + {children} + + ), } ); diff --git a/packages/react/code-connect/ContentSwitcher/IconSwitch.figma.tsx b/packages/react/code-connect/ContentSwitcher/IconSwitch.figma.tsx new file mode 100644 index 000000000000..6ffad3feee48 --- /dev/null +++ b/packages/react/code-connect/ContentSwitcher/IconSwitch.figma.tsx @@ -0,0 +1,27 @@ +/** + * 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 { IconSwitch } from '@carbon/react'; +import figma from '@figma/code-connect'; + +figma.connect( + IconSwitch, + 'https://www.figma.com/design/YAnB1jKx0yCUL29j6uSLpg/(v11)-All-themes---Carbon-Design-System?node-id=21988-280553&t=Y6lD1uj5Q0yszbgL-4', + { + props: { + children: figma.children('*'), + disabled: figma.enum('State', { + Disabled: true, + }), + }, + example: ({ disabled, children }) => ( + {children} + ), + } +); diff --git a/packages/react/code-connect/ContentSwitcher/Switch.figma.tsx b/packages/react/code-connect/ContentSwitcher/Switch.figma.tsx new file mode 100644 index 000000000000..9b7e950413a9 --- /dev/null +++ b/packages/react/code-connect/ContentSwitcher/Switch.figma.tsx @@ -0,0 +1,25 @@ +/** + * 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 { Switch } from '@carbon/react'; +import figma from '@figma/code-connect'; + +figma.connect( + Switch, + 'https://www.figma.com/design/YAnB1jKx0yCUL29j6uSLpg/(v11)-All-themes---Carbon-Design-System?node-id=10151-402337&t=Y6lD1uj5Q0yszbgL-4', + { + props: { + text: figma.string('Label text'), + disabled: figma.enum('State', { + Disabled: true, + }), + }, + example: ({ text, disabled }) => , + } +); diff --git a/packages/react/code-connect/Grid/Grid.figma.tsx b/packages/react/code-connect/Grid/Grid.figma.tsx index 5b56a35acd16..dda74721f7d1 100644 --- a/packages/react/code-connect/Grid/Grid.figma.tsx +++ b/packages/react/code-connect/Grid/Grid.figma.tsx @@ -18,11 +18,12 @@ figma.connect( Breakpoint7: 'breakpoint7', Breakpoint8: 'breakpoint8', }), + children: figma.children('*'), }, - example: () => ( + example: ({ children }) => ( // Disclaimer: Code Connect is currently in beta and integration with Carbon // React is in an exploratory phase. Code sample below is incomplete. - + {children} ), } ); diff --git a/packages/react/code-connect/List/List.figma.tsx b/packages/react/code-connect/List/List.figma.tsx new file mode 100644 index 000000000000..522240fb57cf --- /dev/null +++ b/packages/react/code-connect/List/List.figma.tsx @@ -0,0 +1,39 @@ +/** + * 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 { UnorderedList, OrderedList } from '@carbon/react'; +import figma from '@figma/code-connect'; + +figma.connect( + UnorderedList, + 'https://www.figma.com/design/YAnB1jKx0yCUL29j6uSLpg/(v11)-All-themes---Carbon-Design-System?node-id=3284-27553&t=Y6lD1uj5Q0yszbgL-4', + { + variant: { Type: 'Unordered' }, + props: { children: figma.children(['_List 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. + {children} + ), + } +); + +figma.connect( + OrderedList, + 'https://www.figma.com/design/YAnB1jKx0yCUL29j6uSLpg/(v11)-All-themes---Carbon-Design-System?node-id=3284-27553&t=Y6lD1uj5Q0yszbgL-4', + { + variant: { Type: 'Ordered' }, + props: { children: figma.children(['_List 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. + {children} + ), + } +); diff --git a/packages/react/code-connect/List/ListItem.figma.tsx b/packages/react/code-connect/List/ListItem.figma.tsx new file mode 100644 index 000000000000..9b7c0ca38926 --- /dev/null +++ b/packages/react/code-connect/List/ListItem.figma.tsx @@ -0,0 +1,22 @@ +/** + * 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 { ListItem } from '@carbon/react'; +import figma from '@figma/code-connect'; + +figma.connect( + ListItem, + 'https://www.figma.com/design/YAnB1jKx0yCUL29j6uSLpg/(v11)-All-themes---Carbon-Design-System?node-id=3284-27542&t=Y6lD1uj5Q0yszbgL-4', + { + props: { + children: figma.string('List text'), + }, + example: ({ children }) => {children}, + } +); diff --git a/packages/react/code-connect/Loading/Loading.figma.tsx b/packages/react/code-connect/Loading/Loading.figma.tsx new file mode 100644 index 000000000000..349791e6dc9b --- /dev/null +++ b/packages/react/code-connect/Loading/Loading.figma.tsx @@ -0,0 +1,54 @@ +/** + * 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 { Loading, InlineLoading } from '@carbon/react'; +import figma from '@figma/code-connect'; + +figma.connect( + Loading, + 'https://www.figma.com/design/YAnB1jKx0yCUL29j6uSLpg/(v11)-All-themes---Carbon-Design-System?node-id=3238-28455&t=Y6lD1uj5Q0yszbgL-4', + { + props: { + small: figma.enum('Size', { + Small: true, + }), + }, + example: ({ small }) => ( + // Disclaimer: Code Connect is currently in beta and integration with Carbon + // React is in an exploratory phase. Code sample below may be incomplete. + + ), + } +); + +figma.connect( + InlineLoading, + 'https://www.figma.com/design/YAnB1jKx0yCUL29j6uSLpg/(v11)-All-themes---Carbon-Design-System?node-id=3238-28455&t=Y6lD1uj5Q0yszbgL-4', + { + variant: { Size: 'Inline' }, + props: { + description: figma.textContent('Loading message'), + status: figma.enum('State', { + Active: 'active', + Error: 'error', + Finished: 'finished', + Inactive: 'inactive', + }), + }, + example: ({ status, description }) => ( + // Disclaimer: Code Connect is currently in beta and integration with Carbon + // React is in an exploratory phase. Code sample below may be incomplete. + + ), + } +); diff --git a/packages/react/code-connect/Notification/Notification.figma.tsx b/packages/react/code-connect/Notification/Notification.figma.tsx index 914adb07be0e..965f4cdedb89 100644 --- a/packages/react/code-connect/Notification/Notification.figma.tsx +++ b/packages/react/code-connect/Notification/Notification.figma.tsx @@ -23,7 +23,8 @@ const sharedNotificationProps = { Success: 'success', Warning: 'warning', Error: 'error', - // Figma missing info-square and warning-alt + // 'Info square': 'info-square', missing from Figma + // 'Warning alt': 'warning-alt' missing from Figma }), hideCloseButton: figma.boolean('Close', { true: false, @@ -33,14 +34,51 @@ const sharedNotificationProps = { true: false, false: true, }), - actionable: figma.boolean('Actionable'), - // type: figma.enum("Type", { - // "Inline short": "inline-short", - // "Inline long": "inline-long", - // Toast: "toast", + inline: figma.enum('Type', { + 'Inline short': true, + 'Inline long': true, + }), + // this doesn't work + // button: figma.nestedProps('Notification action button item', { + // actionButtonItem: figma.nestedProps('Button', { + // actionButtonLabel: figma.string('Button text'), + // }), // }), }; +// this isn't working, perhaps a bug? https://github.com/figma/code-connect/issues/45 +figma.connect( + ActionableNotification, + 'https://www.figma.com/file/YAnB1jKx0yCUL29j6uSLpg/(v11)-All-themes---Carbon-Design-System?type=design&node-id=4179-105911&mode=design&t=WhsTspVnawA9vgXk-4', + { + variant: { Actionable: 'True' }, // <--doesn't work + props: sharedNotificationProps, + example: ({ + title, + kind, + subtitle, + hideCloseButton, + lowContrast, + inline, + }) => ( + // Disclaimer: Code Connect is currently in beta and integration with Carbon + // React is in an exploratory phase. Code sample below may be incomplete. + myFunction()} + onClose={() => myFunction()} + onCloseButtonClick={() => myFunction()} + /> + ), + } +); + figma.connect( InlineNotification, 'https://www.figma.com/file/YAnB1jKx0yCUL29j6uSLpg/(v11)-All-themes---Carbon-Design-System?type=design&node-id=4179-105911&mode=design&t=lJU3KHSU1pTpZ32z-4', @@ -100,40 +138,3 @@ figma.connect( ), } ); - -// this isn't working, perhaps a bug? https://github.com/figma/code-connect/issues/45 -figma.connect( - ActionableNotification, - 'https://www.figma.com/file/YAnB1jKx0yCUL29j6uSLpg/(v11)-All-themes---Carbon-Design-System?type=design&node-id=4179-105911&mode=design&t=WhsTspVnawA9vgXk-4', - { - variant: { Actionable: 'True' }, // <--doesn't work - // variant: { Type: 'Inline short', Actionable: 'True'} <--doesn't work - props: sharedNotificationProps, - example: ({ - title, - kind, - subtitle, - hideCloseButton, - actionable, - lowContrast, - }) => ( - // Disclaimer: Code Connect is currently in beta and integration with Carbon - // React is in an exploratory phase. Code sample below may be incomplete. - <> - actionable: {actionable} - myFunction()} - // onClose={() => myFunction()} - // onCloseButtonClick={() => myFunction()} - // statusIconDescription="notification" - /> - - ), - } -); diff --git a/packages/react/code-connect/NumberInput/NumberInputDefault.figma.tsx b/packages/react/code-connect/NumberInput/NumberInput.figma.tsx similarity index 93% rename from packages/react/code-connect/NumberInput/NumberInputDefault.figma.tsx rename to packages/react/code-connect/NumberInput/NumberInput.figma.tsx index 1f0651138fd5..169cb31d7bbf 100644 --- a/packages/react/code-connect/NumberInput/NumberInputDefault.figma.tsx +++ b/packages/react/code-connect/NumberInput/NumberInput.figma.tsx @@ -42,7 +42,9 @@ figma.connect( Warning: true, }), warnText: figma.string('Warning text'), - // value, text field in Figma + numberInputbase: figma.nestedProps('_Number input base', { + value: figma.textContent('Text'), + }), }, example: ({ disabled, @@ -55,6 +57,7 @@ figma.connect( size, warn, warnText, + numberInputbase, }) => ( // Disclaimer: Code Connect is currently in beta and integration with Carbon // React is in an exploratory phase. Code sample below may be incomplete. @@ -69,7 +72,7 @@ figma.connect( size={size} warn={warn} warnText={warnText} - value="1000" + value={numberInputbase.value} /> ), } diff --git a/packages/react/code-connect/ProgressBar/ProgressBar.figma.tsx b/packages/react/code-connect/ProgressBar/ProgressBar.figma.tsx new file mode 100644 index 000000000000..b3167ca1eff4 --- /dev/null +++ b/packages/react/code-connect/ProgressBar/ProgressBar.figma.tsx @@ -0,0 +1,99 @@ +/** + * 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 { ProgressBar } from '@carbon/react'; +import figma from '@figma/code-connect'; + +const sharedProgressBarProps = { + label: figma.string('Label text'), + value: figma.enum('Progress', { + '0%': 0, + '25%': 25, + '50%': 50, + '75%': 75, + }), + type: figma.enum('Alignment', { + Inline: 'inline', + Indent: 'indent', + }), + status: figma.enum('State', { + Active: 'active', + Success: 'finished', + Error: 'error', + }), + size: figma.enum('Size', { + Big: 'big', + Small: 'small', + }), + helperText: figma.string('Helper text'), + helperTextError: figma.string('Error text'), + helperTextSuccess: figma.string('Success text'), +}; + +figma.connect( + ProgressBar, + 'https://www.figma.com/design/YAnB1jKx0yCUL29j6uSLpg/(v11)-All-themes---Carbon-Design-System?node-id=9506-402924&t=j280IIQF1o3iLkV2-4', + { + props: sharedProgressBarProps, + example: ({ label, value, helperText, status, type, size }) => ( + // Disclaimer: Code Connect is currently in beta and integration with Carbon + // React is in an exploratory phase. Code sample below may be incomplete. + + ), + } +); + +figma.connect( + ProgressBar, + 'https://www.figma.com/design/YAnB1jKx0yCUL29j6uSLpg/(v11)-All-themes---Carbon-Design-System?node-id=9506-402924&t=j280IIQF1o3iLkV2-4', + { + variant: { State: 'Error' }, + props: sharedProgressBarProps, + example: ({ label, value, status, type, size, helperTextError }) => ( + // Disclaimer: Code Connect is currently in beta and integration with Carbon + // React is in an exploratory phase. Code sample below may be incomplete. + + ), + } +); + +figma.connect( + ProgressBar, + 'https://www.figma.com/design/YAnB1jKx0yCUL29j6uSLpg/(v11)-All-themes---Carbon-Design-System?node-id=9506-402924&t=j280IIQF1o3iLkV2-4', + { + variant: { State: 'Success' }, + props: sharedProgressBarProps, + example: ({ label, value, status, type, size, helperTextSuccess }) => ( + // Disclaimer: Code Connect is currently in beta and integration with Carbon + // React is in an exploratory phase. Code sample below may be incomplete. + + ), + } +); diff --git a/packages/react/code-connect/Tabs/TabsItems.figma.tsx b/packages/react/code-connect/Tabs/Tab.figma.tsx similarity index 54% rename from packages/react/code-connect/Tabs/TabsItems.figma.tsx rename to packages/react/code-connect/Tabs/Tab.figma.tsx index e5675452999d..734343bd33d3 100644 --- a/packages/react/code-connect/Tabs/TabsItems.figma.tsx +++ b/packages/react/code-connect/Tabs/Tab.figma.tsx @@ -10,27 +10,47 @@ import React from 'react'; import { Tab, IconTab } from '@carbon/react'; import figma from '@figma/code-connect'; +const sharedTabProps = { + label: figma.string('Label text'), + disabled: figma.enum('State', { + Disabled: true, + }), + renderIcon: figma.instance('Swap icon'), + secondaryLabel: figma.boolean('Show 2nd label', { + true: figma.textContent('2nd label'), + }), + icon: figma.instance('Swap icon'), +}; + figma.connect( Tab, 'https://www.figma.com/file/YAnB1jKx0yCUL29j6uSLpg/(v11)-All-themes---Carbon-Design-System?type=design&node-id=5658-278361&mode=design&t=ERtuwFdbSumlRYtB-4', { variant: { Type: 'Text + Icon' }, - props: { - label: figma.string('Label text'), - disabled: figma.enum('State', { - Disabled: true, - }), - renderIcon: figma.instance('Swap icon'), - secondaryLabel: figma.boolean('Show 2nd label', { - true: 'Manually add secondary label', // exists as a text node - on Figma roadmap https://github.com/figma/code-connect/issues/30 - false: undefined, - }), + props: sharedTabProps, + example: ({ label, disabled, renderIcon }) => ( + + {label} + + ), + } +); + +figma.connect( + Tab, + 'https://www.figma.com/file/YAnB1jKx0yCUL29j6uSLpg/(v11)-All-themes---Carbon-Design-System?type=design&node-id=5658-278361&mode=design&t=ERtuwFdbSumlRYtB-4', + { + variant: { + Type: 'Text + Icon', + Style: 'Contained', + 'Show 2nd label': 'True', }, + props: sharedTabProps, example: ({ label, disabled, renderIcon, secondaryLabel }) => ( + secondaryLabel={secondaryLabel} + renderIcon={renderIcon}> {label} ), @@ -42,17 +62,7 @@ figma.connect( 'https://www.figma.com/file/YAnB1jKx0yCUL29j6uSLpg/(v11)-All-themes---Carbon-Design-System?type=design&node-id=5658-278361&mode=design&t=ERtuwFdbSumlRYtB-4', { variant: { Type: 'Icon only' }, - props: { - label: figma.string('Label text'), - // iconSize: figma.enum('Size', { // needs to be set on parent TabList component - // Large: 'lg', - // Medium: undefined, - // }), - disabled: figma.enum('State', { - Disabled: true, - }), - icon: figma.instance('Swap icon'), - }, + props: sharedTabProps, example: ({ disabled, icon, label }) => ( {icon} diff --git a/packages/react/code-connect/Tabs/Tabs.figma.tsx b/packages/react/code-connect/Tabs/Tabs.figma.tsx index 30d7bcfb9fa9..367db9c28fe0 100644 --- a/packages/react/code-connect/Tabs/Tabs.figma.tsx +++ b/packages/react/code-connect/Tabs/Tabs.figma.tsx @@ -5,6 +5,7 @@ * LICENSE file in the root directory of this source tree. */ +/* eslint-disable react/jsx-no-duplicate-props */ // @ts-nocheck import React from 'react'; import { Tabs, TabList, TabPanels, TabPanel } from '@carbon/react'; @@ -22,19 +23,23 @@ figma.connect( fullWidth: figma.enum('Alignment', { 'Grid aware': true, }), - - //missing props (available on Tabs items in figma) - // dismissable - // iconSize + tab: figma.nestedProps('_Tabs items', { + size: figma.enum('Size', { + Large: 'lg', + }), + dismissable: figma.boolean('Dismissible'), + dismissablePlusIcon: figma.boolean('Dismissible + Icon'), + }), }, - example: ({ children, contained, fullWidth }) => ( + example: ({ children, contained, fullWidth, tab }) => ( // Disclaimer: Code Connect is currently in beta and integration with Carbon // React is in an exploratory phase. Code sample below may be incomplete. - + + fullWidth={fullWidth} + size={tab.size}> {children} {/* Example code below, not mapped in Figma. diff --git a/packages/react/package.json b/packages/react/package.json index a85d1bea23c3..c0fe7f1a012c 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -52,7 +52,6 @@ "@carbon/icons-react": "^11.44.0", "@carbon/layout": "^11.23.0", "@carbon/styles": "^1.60.0", - "@figma/code-connect": "^0.1.2", "@floating-ui/react": "^0.26.0", "@ibm/telemetry-js": "^1.5.0", "classnames": "2.5.1", @@ -83,6 +82,7 @@ "@babel/preset-typescript": "^7.21.5", "@carbon/test-utils": "^10.30.0", "@carbon/themes": "^11.37.0", + "@figma/code-connect": "^1.0.1", "@rollup/plugin-babel": "^6.0.0", "@rollup/plugin-commonjs": "^26.0.0", "@rollup/plugin-node-resolve": "^15.0.0", diff --git a/yarn.lock b/yarn.lock index e4e5400cd784..833c02f9022f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -82,7 +82,7 @@ __metadata: languageName: node linkType: hard -"@babel/core@npm:^7.11.6, @babel/core@npm:^7.12.3, @babel/core@npm:^7.13.16, @babel/core@npm:^7.18.2, @babel/core@npm:^7.21.4, @babel/core@npm:^7.22.0, @babel/core@npm:^7.23.6, @babel/core@npm:^7.7.5": +"@babel/core@npm:^7.11.6, @babel/core@npm:^7.12.3, @babel/core@npm:^7.13.16, @babel/core@npm:^7.18.2, @babel/core@npm:^7.21.4, @babel/core@npm:^7.22.0, @babel/core@npm:^7.24.7, @babel/core@npm:^7.7.5": version: 7.24.7 resolution: "@babel/core@npm:7.24.7" dependencies: @@ -119,7 +119,7 @@ __metadata: languageName: node linkType: hard -"@babel/generator@npm:^7.12.11, @babel/generator@npm:^7.18.2, @babel/generator@npm:^7.22.0, @babel/generator@npm:^7.23.0, @babel/generator@npm:^7.23.6, @babel/generator@npm:^7.24.7, @babel/generator@npm:^7.7.2": +"@babel/generator@npm:^7.12.11, @babel/generator@npm:^7.18.2, @babel/generator@npm:^7.22.0, @babel/generator@npm:^7.23.0, @babel/generator@npm:^7.24.7, @babel/generator@npm:^7.7.2": version: 7.24.7 resolution: "@babel/generator@npm:7.24.7" dependencies: @@ -429,7 +429,7 @@ __metadata: languageName: node linkType: hard -"@babel/parser@npm:^7.1.0, @babel/parser@npm:^7.13.16, @babel/parser@npm:^7.14.7, @babel/parser@npm:^7.22.0, @babel/parser@npm:^7.23.0, @babel/parser@npm:^7.23.6, @babel/parser@npm:^7.24.7": +"@babel/parser@npm:^7.1.0, @babel/parser@npm:^7.13.16, @babel/parser@npm:^7.14.7, @babel/parser@npm:^7.22.0, @babel/parser@npm:^7.23.0, @babel/parser@npm:^7.24.7": version: 7.24.7 resolution: "@babel/parser@npm:7.24.7" bin: @@ -1711,7 +1711,7 @@ __metadata: languageName: node linkType: hard -"@babel/types@npm:^7.0.0, @babel/types@npm:^7.18.4, @babel/types@npm:^7.2.0, @babel/types@npm:^7.22.0, @babel/types@npm:^7.22.5, @babel/types@npm:^7.23.0, @babel/types@npm:^7.23.6, @babel/types@npm:^7.24.7, @babel/types@npm:^7.3.0, @babel/types@npm:^7.3.3, @babel/types@npm:^7.4.4, @babel/types@npm:^7.8.3": +"@babel/types@npm:^7.0.0, @babel/types@npm:^7.18.4, @babel/types@npm:^7.2.0, @babel/types@npm:^7.22.0, @babel/types@npm:^7.22.5, @babel/types@npm:^7.23.0, @babel/types@npm:^7.24.7, @babel/types@npm:^7.3.0, @babel/types@npm:^7.3.3, @babel/types@npm:^7.4.4, @babel/types@npm:^7.8.3": version: 7.24.7 resolution: "@babel/types@npm:7.24.7" dependencies: @@ -2035,7 +2035,7 @@ __metadata: "@carbon/styles": "npm:^1.60.0" "@carbon/test-utils": "npm:^10.30.0" "@carbon/themes": "npm:^11.37.0" - "@figma/code-connect": "npm:^0.1.2" + "@figma/code-connect": "npm:^1.0.1" "@floating-ui/react": "npm:^0.26.0" "@ibm/telemetry-js": "npm:^1.5.0" "@rollup/plugin-babel": "npm:^6.0.0" @@ -2971,9 +2971,20 @@ __metadata: linkType: hard "@eslint-community/regexpp@npm:^4.4.0, @eslint-community/regexpp@npm:^4.6.1": - version: 4.10.0 - resolution: "@eslint-community/regexpp@npm:4.10.0" - checksum: 10/8c36169c815fc5d726078e8c71a5b592957ee60d08c6470f9ce0187c8046af1a00afbda0a065cc40ff18d5d83f82aed9793c6818f7304a74a7488dc9f3ecbd42 + version: 4.10.1 + resolution: "@eslint-community/regexpp@npm:4.10.1" + checksum: 10/54f13817caf90545502d7a19e1b61df79087aee9584342ffc558b6d067530764a47f1c484f493f43e2c70cfdff59ccfd5f26df2af298c4ad528469e599bd1d53 + languageName: node + linkType: hard + +"@eslint/config-array@npm:^0.16.0": + version: 0.16.0 + resolution: "@eslint/config-array@npm:0.16.0" + dependencies: + "@eslint/object-schema": "npm:^2.1.4" + debug: "npm:^4.3.1" + minimatch: "npm:^3.0.5" + checksum: 10/6c1716f896a5bd290a2987ac28ec4fe18f052d2338ccf7822107eb0a6b974c44e6297cb7c9d6e0c5718c510e6c8e53043bea04cf4836dcb26a57e0255bfe99bc languageName: node linkType: hard @@ -3018,10 +3029,17 @@ __metadata: languageName: node linkType: hard -"@eslint/js@npm:9.3.0": - version: 9.3.0 - resolution: "@eslint/js@npm:9.3.0" - checksum: 10/3fb4b30561c34b52e7c6c6b55ea61df1cead73a525e1ccd77b1454d893dcf06f99fe9c46bf410a044ef7d3339c455bc4f75769b40c4734343f5b46d2d76b89ef +"@eslint/js@npm:9.5.0": + version: 9.5.0 + resolution: "@eslint/js@npm:9.5.0" + checksum: 10/206364e3a074eaaeccc2b9e1e3f129539106a81ec634f32c51bc1699e0c4a47ab3e6480a6484a198bca6406888ba8f2917c35a87296680905d146075b5ed2738 + languageName: node + linkType: hard + +"@eslint/object-schema@npm:^2.1.4": + version: 2.1.4 + resolution: "@eslint/object-schema@npm:2.1.4" + checksum: 10/221e8d9f281c605948cd6e030874aacce83fe097f8f9c1964787037bccf08e82b7aa9eff1850a30fffac43f1d76555727ec22a2af479d91e268e89d1e035131e languageName: node linkType: hard @@ -3068,27 +3086,36 @@ __metadata: languageName: node linkType: hard -"@figma/code-connect@npm:^0.1.2": - version: 0.1.2 - resolution: "@figma/code-connect@npm:0.1.2" +"@figma/code-connect@npm:^1.0.1": + version: 1.0.1 + resolution: "@figma/code-connect@npm:1.0.1" dependencies: - "@babel/core": "npm:^7.23.6" - "@babel/generator": "npm:^7.23.6" - "@babel/parser": "npm:^7.23.6" - "@babel/types": "npm:^7.23.6" + "@babel/core": "npm:^7.24.7" + "@babel/generator": "npm:^7.24.7" + "@babel/parser": "npm:^7.24.7" + "@babel/types": "npm:^7.24.7" "@storybook/csf-tools": "npm:^7.6.7" axios: "npm:^1.6.0" + boxen: "npm:5.1.1" chalk: "npm:^4.1.2" commander: "npm:^11.1.0" + compare-versions: "npm:^6.1.0" + cross-spawn: "npm:^7.0.3" dotenv: "npm:^16.3.1" + fast-fuzzy: "npm:^1.12.0" + find-up: "npm:^5.0.0" glob: "npm:^10.3.10" lodash: "npm:^4.17.21" minimatch: "npm:^9.0.3" - prettier: "npm:^3.2.4" + prettier: "npm:^2.8.8" + prompts: "npm:^2.4.2" + strip-ansi: "npm:^6.0.0" typescript: "npm:5.4.2" + zod: "npm:^3.23.6" + zod-validation-error: "npm:^3.2.0" bin: figma: bin/figma - checksum: 10/730fd7b326629bdfb4fa1376690fc6cef43471e372b40ba9873dba560246986646601f9f7f854df09d639652177ce926ff335fd57e71ec9cbb1d241bfeb65f37 + checksum: 10/1fceaee82890955d91806bed145d62a9ffeee4603e266ba908c9bc6ad1fde317fd83fdbaad5ea69e2d8cfe8cc2f6d5f432a376e3299dc21ac255c5b163077331 languageName: node linkType: hard @@ -3221,17 +3248,6 @@ __metadata: languageName: node linkType: hard -"@humanwhocodes/config-array@npm:^0.13.0": - version: 0.13.0 - resolution: "@humanwhocodes/config-array@npm:0.13.0" - dependencies: - "@humanwhocodes/object-schema": "npm:^2.0.3" - debug: "npm:^4.3.1" - minimatch: "npm:^3.0.5" - checksum: 10/524df31e61a85392a2433bf5d03164e03da26c03d009f27852e7dcfdafbc4a23f17f021dacf88e0a7a9fe04ca032017945d19b57a16e2676d9114c22a53a9d11 - languageName: node - linkType: hard - "@humanwhocodes/module-importer@npm:^1.0.1": version: 1.0.1 resolution: "@humanwhocodes/module-importer@npm:1.0.1" @@ -3246,13 +3262,6 @@ __metadata: languageName: node linkType: hard -"@humanwhocodes/object-schema@npm:^2.0.3": - version: 2.0.3 - resolution: "@humanwhocodes/object-schema@npm:2.0.3" - checksum: 10/05bb99ed06c16408a45a833f03a732f59bf6184795d4efadd33238ff8699190a8c871ad1121241bb6501589a9598dc83bf25b99dcbcf41e155cdf36e35e937a3 - languageName: node - linkType: hard - "@humanwhocodes/retry@npm:^0.3.0": version: 0.3.0 resolution: "@humanwhocodes/retry@npm:0.3.0" @@ -8191,12 +8200,12 @@ __metadata: languageName: node linkType: hard -"acorn@npm:^8.11.3, acorn@npm:^8.5.0, acorn@npm:^8.7.1, acorn@npm:^8.8.0, acorn@npm:^8.9.0": - version: 8.11.3 - resolution: "acorn@npm:8.11.3" +"acorn@npm:^8.12.0, acorn@npm:^8.5.0, acorn@npm:^8.7.1, acorn@npm:^8.8.0, acorn@npm:^8.9.0": + version: 8.12.0 + resolution: "acorn@npm:8.12.0" bin: acorn: bin/acorn - checksum: 10/b688e7e3c64d9bfb17b596e1b35e4da9d50553713b3b3630cf5690f2b023a84eac90c56851e6912b483fe60e8b4ea28b254c07e92f17ef83d72d78745a8352dd + checksum: 10/550cc5033184eb98f7fbe2e9ddadd0f47f065734cc682f25db7a244f52314eb816801b64dec7174effd978045bd1754892731a90b1102b0ede9d17a15cfde138 languageName: node linkType: hard @@ -9399,6 +9408,22 @@ __metadata: languageName: node linkType: hard +"boxen@npm:5.1.1": + version: 5.1.1 + resolution: "boxen@npm:5.1.1" + dependencies: + ansi-align: "npm:^3.0.0" + camelcase: "npm:^6.2.0" + chalk: "npm:^4.1.0" + cli-boxes: "npm:^2.2.1" + string-width: "npm:^4.2.2" + type-fest: "npm:^0.20.2" + widest-line: "npm:^3.1.0" + wrap-ansi: "npm:^7.0.0" + checksum: 10/0f354617ee7514640e6b0a752a04010121facb101a514a996f595f3dabb4821981d01c779c6da3f08387d390267c9a8e6b14acaf009c715735befd98837378eb + languageName: node + linkType: hard + "boxen@npm:^4.2.0": version: 4.2.0 resolution: "boxen@npm:4.2.0" @@ -10307,7 +10332,7 @@ __metadata: languageName: node linkType: hard -"cli-boxes@npm:^2.2.0": +"cli-boxes@npm:^2.2.0, cli-boxes@npm:^2.2.1": version: 2.2.1 resolution: "cli-boxes@npm:2.2.1" checksum: 10/be79f8ec23a558b49e01311b39a1ea01243ecee30539c880cf14bf518a12e223ef40c57ead0cb44f509bffdffc5c129c746cd50d863ab879385370112af4f585 @@ -10793,6 +10818,13 @@ __metadata: languageName: node linkType: hard +"compare-versions@npm:^6.1.0": + version: 6.1.0 + resolution: "compare-versions@npm:6.1.0" + checksum: 10/20f349e7f8ad784704c68265f4e660e2abbe2c3d5c75793184fccb85f0c5c0263260e01fdd4488376f6b74b0f069e16c9684463f7316b075716fb1581eb36b77 + languageName: node + linkType: hard + "component-emitter@npm:^1.2.1": version: 1.3.0 resolution: "component-emitter@npm:1.3.0" @@ -13616,14 +13648,14 @@ __metadata: linkType: hard "eslint@npm:^9.0.0": - version: 9.3.0 - resolution: "eslint@npm:9.3.0" + version: 9.5.0 + resolution: "eslint@npm:9.5.0" dependencies: "@eslint-community/eslint-utils": "npm:^4.2.0" "@eslint-community/regexpp": "npm:^4.6.1" + "@eslint/config-array": "npm:^0.16.0" "@eslint/eslintrc": "npm:^3.1.0" - "@eslint/js": "npm:9.3.0" - "@humanwhocodes/config-array": "npm:^0.13.0" + "@eslint/js": "npm:9.5.0" "@humanwhocodes/module-importer": "npm:^1.0.1" "@humanwhocodes/retry": "npm:^0.3.0" "@nodelib/fs.walk": "npm:^1.2.8" @@ -13635,7 +13667,7 @@ __metadata: eslint-scope: "npm:^8.0.1" eslint-visitor-keys: "npm:^4.0.0" espree: "npm:^10.0.1" - esquery: "npm:^1.4.2" + esquery: "npm:^1.5.0" esutils: "npm:^2.0.2" fast-deep-equal: "npm:^3.1.3" file-entry-cache: "npm:^8.0.0" @@ -13655,18 +13687,18 @@ __metadata: text-table: "npm:^0.2.0" bin: eslint: bin/eslint.js - checksum: 10/c56d63bc3655ce26456cb1b6869eb16579d9b243f143374ce28e4e168ab8fd9d054700014af903b6a5445a9134108327d974ba3e75019220f62df6ce72b6f5b6 + checksum: 10/47578c242659a398638918c6f61a12c3e1e0ca71733769a54fdfd7be6d7c4ca0824694861846959829784b23cbfca5aad9599714dc0f4ae48ffdcdafbfe67bea languageName: node linkType: hard "espree@npm:^10.0.1": - version: 10.0.1 - resolution: "espree@npm:10.0.1" + version: 10.1.0 + resolution: "espree@npm:10.1.0" dependencies: - acorn: "npm:^8.11.3" + acorn: "npm:^8.12.0" acorn-jsx: "npm:^5.3.2" eslint-visitor-keys: "npm:^4.0.0" - checksum: 10/557d6cfb4894b1489effcaed8702682086033f8a2449568933bc59493734733d750f2a87907ba575844d3933340aea2d84288f5e67020c6152f6fd18a86497b2 + checksum: 10/a673aa39a19a51763d92272f8f3772ae3d4b10624740bb72d5f273b631b43f1a5a32b385c1da6ae6bc10be05a5913bc4679ebd22a09c7b336a745204834806ea languageName: node linkType: hard @@ -14146,6 +14178,15 @@ __metadata: languageName: node linkType: hard +"fast-fuzzy@npm:^1.12.0": + version: 1.12.0 + resolution: "fast-fuzzy@npm:1.12.0" + dependencies: + graphemesplit: "npm:^2.4.1" + checksum: 10/fed3af28636f930372270b188ed84f77b24a03f817e0253c5399d5dd74265f0fb79565abcedd283e10bba7cc46a2564c6f359a62335fb06c5d306a3099590e03 + languageName: node + linkType: hard + "fast-glob@npm:^3.2.11, fast-glob@npm:^3.2.12, fast-glob@npm:^3.2.7, fast-glob@npm:^3.2.9, fast-glob@npm:^3.3.0": version: 3.3.0 resolution: "fast-glob@npm:3.3.0" @@ -15347,6 +15388,16 @@ __metadata: languageName: node linkType: hard +"graphemesplit@npm:^2.4.1": + version: 2.4.4 + resolution: "graphemesplit@npm:2.4.4" + dependencies: + js-base64: "npm:^3.6.0" + unicode-trie: "npm:^2.0.0" + checksum: 10/7084ea17efe86957d2a2a07a651f07b7e698cadca582d5dd304974657a2f010ee02f5ca4775696eb7b07502f79f55661ed04c4c9b71cb73c19537ce9639f306d + languageName: node + linkType: hard + "gray-matter@npm:^2.1.0": version: 2.1.1 resolution: "gray-matter@npm:2.1.1" @@ -17849,6 +17900,13 @@ __metadata: languageName: node linkType: hard +"js-base64@npm:^3.6.0": + version: 3.7.7 + resolution: "js-base64@npm:3.7.7" + checksum: 10/185e34c536a6b1c4e1ad8bd96d25b49a9ea4e6803e259eaaaca95f1b392a0d590b2933c5ca8580c776f7279507944b81ff1faf889d84baa5e31f026e96d676a5 + languageName: node + linkType: hard + "js-sdsl@npm:^4.1.4": version: 4.3.0 resolution: "js-sdsl@npm:4.3.0" @@ -21770,7 +21828,7 @@ __metadata: languageName: node linkType: hard -"pako@npm:~0.2.0": +"pako@npm:^0.2.5, pako@npm:~0.2.0": version: 0.2.9 resolution: "pako@npm:0.2.9" checksum: 10/627c6842e90af0b3a9ee47345bd66485a589aff9514266f4fa9318557ad819c46fedf97510f2cef9b6224c57913777966a05cb46caf6a9b31177a5401a06fe15 @@ -22698,15 +22756,6 @@ __metadata: languageName: node linkType: hard -"prettier@npm:^3.2.4": - version: 3.3.1 - resolution: "prettier@npm:3.3.1" - bin: - prettier: bin/prettier.cjs - checksum: 10/31ca48d07a163fe6bff5483feb9bdf3bd7e4305e8d976373375cddc2949180a007be3ef08c36f4d7b31e449acef1ebbf46d3b94dc32f5a276837bf48c393be69 - languageName: node - linkType: hard - "pretty-error@npm:^4.0.0": version: 4.0.0 resolution: "pretty-error@npm:4.0.0" @@ -22848,7 +22897,7 @@ __metadata: languageName: unknown linkType: soft -"prompts@npm:^2.0.1, prompts@npm:^2.4.0": +"prompts@npm:^2.0.1, prompts@npm:^2.4.0, prompts@npm:^2.4.2": version: 2.4.2 resolution: "prompts@npm:2.4.2" dependencies: @@ -25456,7 +25505,7 @@ __metadata: languageName: node linkType: hard -"string-width-cjs@npm:string-width@^4.2.0, string-width@npm:^1.0.2 || 2 || 3 || 4, string-width@npm:^4.0.0, string-width@npm:^4.1.0, string-width@npm:^4.2.0, string-width@npm:^4.2.3": +"string-width-cjs@npm:string-width@^4.2.0, string-width@npm:^1.0.2 || 2 || 3 || 4, string-width@npm:^4.0.0, string-width@npm:^4.1.0, string-width@npm:^4.2.0, string-width@npm:^4.2.2, string-width@npm:^4.2.3": version: 4.2.3 resolution: "string-width@npm:4.2.3" dependencies: @@ -26485,6 +26534,13 @@ __metadata: languageName: node linkType: hard +"tiny-inflate@npm:^1.0.0": + version: 1.0.3 + resolution: "tiny-inflate@npm:1.0.3" + checksum: 10/f620114fb51ea4a16ea7b4c62d6dd753f8faf41808a133c53d431ed4bf2ca377b21443653a0096894f2be22ca11bb327f148e7e5431f9246068917724ec01ffc + languageName: node + linkType: hard + "tiny-invariant@npm:^1.3.1": version: 1.3.1 resolution: "tiny-invariant@npm:1.3.1" @@ -27105,6 +27161,16 @@ __metadata: languageName: node linkType: hard +"unicode-trie@npm:^2.0.0": + version: 2.0.0 + resolution: "unicode-trie@npm:2.0.0" + dependencies: + pako: "npm:^0.2.5" + tiny-inflate: "npm:^1.0.0" + checksum: 10/60404411dbd363bdcca9e81c9327fa80469f2e685737bac88ec693225ff20b9b545ac37ca2da13ec02f1552167dd010dfefd7c58b72a73d44a89fab1ca9c2479 + languageName: node + linkType: hard + "unified@npm:^10.0.0": version: 10.1.2 resolution: "unified@npm:10.1.2" @@ -28764,6 +28830,22 @@ __metadata: languageName: node linkType: hard +"zod-validation-error@npm:^3.2.0": + version: 3.3.0 + resolution: "zod-validation-error@npm:3.3.0" + peerDependencies: + zod: ^3.18.0 + checksum: 10/19574cbc453c7a41105de572546e95191958f459dd93440f541a42c0ff209b56f1cd54e8f8ab1899430dd7c183e11cd16e8cace0bd4fc5d356ef772645210792 + languageName: node + linkType: hard + +"zod@npm:^3.23.6": + version: 3.23.8 + resolution: "zod@npm:3.23.8" + checksum: 10/846fd73e1af0def79c19d510ea9e4a795544a67d5b34b7e1c4d0425bf6bfd1c719446d94cdfa1721c1987d891321d61f779e8236fde517dc0e524aa851a6eff1 + languageName: node + linkType: hard + "zwitch@npm:^2.0.0": version: 2.0.4 resolution: "zwitch@npm:2.0.4"