@seed-design/figma 0.1.9 → 0.1.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/lib/codegen/index.cjs +174 -136
  2. package/lib/codegen/index.d.ts +49 -30
  3. package/lib/codegen/index.d.ts.map +1 -1
  4. package/lib/codegen/index.js +174 -136
  5. package/lib/codegen/targets/react/index.cjs +247 -198
  6. package/lib/codegen/targets/react/index.d.ts +1 -0
  7. package/lib/codegen/targets/react/index.d.ts.map +1 -1
  8. package/lib/codegen/targets/react/index.js +247 -198
  9. package/lib/index.cjs +175 -136
  10. package/lib/index.d.ts +1 -0
  11. package/lib/index.d.ts.map +1 -1
  12. package/lib/index.js +175 -136
  13. package/package.json +2 -2
  14. package/src/codegen/targets/figma/props.ts +1 -1
  15. package/src/codegen/targets/react/component/handlers/avatar-stack.ts +17 -12
  16. package/src/codegen/targets/react/component/handlers/checkbox.ts +3 -5
  17. package/src/codegen/targets/react/component/handlers/chip.ts +1 -2
  18. package/src/codegen/targets/react/component/handlers/reaction-button.ts +3 -5
  19. package/src/codegen/targets/react/component/handlers/select-box.ts +2 -4
  20. package/src/codegen/targets/react/component/handlers/switch.ts +2 -4
  21. package/src/codegen/targets/react/component/handlers/toggle-button.ts +3 -5
  22. package/src/codegen/targets/react/frame.ts +28 -17
  23. package/src/codegen/targets/react/instance.ts +15 -1
  24. package/src/codegen/targets/react/props.ts +1 -0
  25. package/src/entities/data/__generated__/component-sets/checkbox.d.ts +9 -7
  26. package/src/entities/data/__generated__/component-sets/checkbox.mjs +9 -7
  27. package/src/entities/data/__generated__/component-sets/checkmark.d.ts +9 -7
  28. package/src/entities/data/__generated__/component-sets/checkmark.mjs +9 -7
  29. package/src/entities/data/__generated__/component-sets/chip.d.ts +7 -7
  30. package/src/entities/data/__generated__/component-sets/chip.mjs +7 -7
  31. package/src/entities/data/__generated__/component-sets/index.d.ts +1 -0
  32. package/src/entities/data/__generated__/component-sets/index.mjs +1 -0
  33. package/src/entities/data/__generated__/component-sets/radio-mark.d.ts +4 -10
  34. package/src/entities/data/__generated__/component-sets/radio-mark.mjs +4 -10
  35. package/src/entities/data/__generated__/component-sets/radio.d.ts +8 -4
  36. package/src/entities/data/__generated__/component-sets/radio.mjs +8 -4
  37. package/src/entities/data/__generated__/component-sets/reaction-button.d.ts +8 -5
  38. package/src/entities/data/__generated__/component-sets/reaction-button.mjs +8 -5
  39. package/src/entities/data/__generated__/component-sets/select-box.d.ts +8 -3
  40. package/src/entities/data/__generated__/component-sets/select-box.mjs +8 -3
  41. package/src/entities/data/__generated__/component-sets/superscript-child.d.ts +18 -0
  42. package/src/entities/data/__generated__/component-sets/superscript-child.mjs +18 -0
  43. package/src/entities/data/__generated__/component-sets/switch.d.ts +8 -3
  44. package/src/entities/data/__generated__/component-sets/switch.mjs +8 -3
  45. package/src/entities/data/__generated__/component-sets/toggle-button.d.ts +8 -5
  46. package/src/entities/data/__generated__/component-sets/toggle-button.mjs +8 -5
  47. package/src/normalizer/from-plugin.ts +1 -0
  48. package/src/normalizer/types.ts +2 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seed-design/figma",
3
- "version": "0.1.9",
3
+ "version": "0.1.11",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/daangn/seed-design.git",
@@ -38,7 +38,7 @@
38
38
  "lint:publish": "bun publint"
39
39
  },
40
40
  "dependencies": {
41
- "@seed-design/css": "0.1.9",
41
+ "@seed-design/css": "0.1.10",
42
42
  "change-case": "^5.4.4",
43
43
  "ts-pattern": "^5.7.0"
44
44
  },
@@ -59,7 +59,7 @@ export function createContainerLayoutPropsConverter(
59
59
  props: {} as ContainerLayoutProps,
60
60
  },
61
61
  handlers: {
62
- layoutMode: ({ layoutMode }) => layoutMode ?? "NONE",
62
+ layoutMode: ({ layoutMode }) => (!layoutMode || layoutMode === "GRID" ? "NONE" : layoutMode),
63
63
  primaryAxisAlignItems: ({ primaryAxisAlignItems }) => primaryAxisAlignItems,
64
64
  counterAxisAlignItems: ({ counterAxisAlignItems }) => counterAxisAlignItems,
65
65
  layoutWrap: ({ layoutWrap }) => layoutWrap,
@@ -11,20 +11,25 @@ const { createLocalSnippetElement } = createLocalSnippetHelper("avatar");
11
11
  export const createAvatarStackHandler = (ctx: ComponentHandlerDeps) => {
12
12
  const avatarHandler = createAvatarHandler(ctx);
13
13
 
14
- return defineComponentHandler<AvatarStackProperties>(metadata.avatarStack.key, (node) => {
15
- const avatarNodes = findAllInstances<AvatarProperties>({
16
- node,
17
- key: avatarHandler.key,
18
- });
14
+ return defineComponentHandler<AvatarStackProperties>(
15
+ metadata.avatarStack.key,
16
+ (node, traverse) => {
17
+ const avatarNodes = findAllInstances<AvatarProperties>({
18
+ node,
19
+ key: avatarHandler.key,
20
+ });
19
21
 
20
- const { componentProperties: props } = node;
22
+ const { componentProperties: props } = node;
21
23
 
22
- const commonProps = {
23
- size: props.Size.value,
24
- };
24
+ const commonProps = {
25
+ size: props.Size.value,
26
+ };
25
27
 
26
- const avatarStackChildren = avatarNodes.map(avatarHandler.transform);
28
+ const avatarStackChildren = avatarNodes.map((avatarNode) =>
29
+ avatarHandler.transform(avatarNode, traverse),
30
+ );
27
31
 
28
- return createLocalSnippetElement("AvatarStack", commonProps, avatarStackChildren);
29
- });
32
+ return createLocalSnippetElement("AvatarStack", commonProps, avatarStackChildren);
33
+ },
34
+ );
30
35
  };
@@ -12,21 +12,19 @@ export const createCheckboxHandler = (_ctx: ComponentHandlerDeps) =>
12
12
  defineComponentHandler<CheckboxProperties>(
13
13
  metadata.checkbox.key,
14
14
  ({ componentProperties: props }) => {
15
- const states = props.State.value.split("-");
16
-
17
15
  const commonProps = {
18
16
  label: props["Label#49990:0"].value,
19
17
  weight: camelCase(props.Weight.value),
20
18
  variant: camelCase(props.Shape.value),
21
19
  size: handleSizeProp(props.Size.value),
22
- ...(states.includes("Selected") && {
20
+ ...(props.Selected.value === "True" && {
23
21
  defaultChecked: true,
24
22
  }),
25
- ...(states.includes("Indeterminate") && {
23
+ ...(props.Selected.value === "Indeterminate" && {
26
24
  defaultChecked: true,
27
25
  indeterminate: true,
28
26
  }),
29
- ...(states.includes("Disabled") && {
27
+ ...(props.State.value === "Disabled" && {
30
28
  disabled: true,
31
29
  }),
32
30
  };
@@ -37,7 +37,6 @@ export const createChipHandler = (ctx: ComponentHandlerDeps) => {
37
37
 
38
38
  return defineComponentHandler<ChipProperties>(metadata.chip.key, (node, traverse) => {
39
39
  const props = node.componentProperties;
40
- const states = props.State.value.split("-");
41
40
 
42
41
  const prefix = match(props["Prefix Type"].value)
43
42
  .with("None", "Image", () => undefined)
@@ -73,7 +72,7 @@ export const createChipHandler = (ctx: ComponentHandlerDeps) => {
73
72
  variant: camelCase(props.Variant.value),
74
73
  size: handleSizeProp(props.Size.value),
75
74
  layout: props["Label#7185:0"].value ? "withText" : "iconOnly",
76
- ...(states.includes("Disabled") && {
75
+ ...(props.State.value === "Disabled" && {
77
76
  disabled: true,
78
77
  }),
79
78
  };
@@ -11,17 +11,15 @@ export const createReactionButtonHandler = (ctx: ComponentHandlerDeps) =>
11
11
  defineComponentHandler<ReactionButtonProperties>(
12
12
  metadata.reactionButton.key,
13
13
  ({ componentProperties: props }) => {
14
- const states = props.State.value.split("-");
15
-
16
14
  const commonProps = {
17
15
  size: handleSizeProp(props.Size.value),
18
- ...(states.includes("Loading") && {
16
+ ...(props.State.value === "Loading" && {
19
17
  loading: true,
20
18
  }),
21
- ...(states.includes("Disabled") && {
19
+ ...(props.State.value === "Disabled" && {
22
20
  disabled: true,
23
21
  }),
24
- ...(states.includes("Selected") && {
22
+ ...(props.Selected.value === "True" && {
25
23
  defaultPressed: true,
26
24
  }),
27
25
  };
@@ -17,8 +17,6 @@ export const createSelectBoxHandler = (_ctx: ComponentHandlerDeps) =>
17
17
  .with("Radio", () => "RadioSelectBoxItem")
18
18
  .exhaustive();
19
19
 
20
- const states = props.State.value.split("-");
21
-
22
20
  const commonProps = {
23
21
  label: props["Label#3635:0"].value,
24
22
  ...(props["Show Description#3033:0"].value && {
@@ -28,7 +26,7 @@ export const createSelectBoxHandler = (_ctx: ComponentHandlerDeps) =>
28
26
  value: props["Label#3635:0"].value,
29
27
  }),
30
28
  ...(tag === "CheckSelectBox" &&
31
- states.includes("Selected") && {
29
+ props.Selected.value === "True" && {
32
30
  defaultChecked: true,
33
31
  }),
34
32
  };
@@ -56,7 +54,7 @@ export const createSelectBoxGroupHandler = (ctx: ComponentHandlerDeps) => {
56
54
  });
57
55
 
58
56
  const selectedSelectBox = selectBoxes.find((selectBox) =>
59
- selectBox.componentProperties.State.value.split("-").includes("Selected"),
57
+ selectBox.componentProperties.Selected.value === "True",
60
58
  );
61
59
 
62
60
  // traverse the container like it's a frame
@@ -10,15 +10,13 @@ export const createSwitchHandler = (_ctx: ComponentHandlerDeps) =>
10
10
  defineComponentHandler<SwitchProperties>(
11
11
  metadata.switch.key,
12
12
  ({ componentProperties: props }) => {
13
- const states = props.State.value.split("-");
14
-
15
13
  const commonProps = {
16
14
  size: props.Size.value,
17
15
  label: props["Label#36578:0"].value,
18
- ...(states.includes("Selected") && {
16
+ ...(props.Selected.value === "True" && {
19
17
  defaultChecked: true,
20
18
  }),
21
- ...(states.includes("Disabled") && {
19
+ ...(props.State.value === "Disabled" && {
22
20
  disabled: true,
23
21
  }),
24
22
  };
@@ -12,18 +12,16 @@ export const createToggleButtonHandler = (ctx: ComponentHandlerDeps) =>
12
12
  defineComponentHandler<ToggleButtonProperties>(
13
13
  metadata.toggleButton.key,
14
14
  ({ componentProperties: props }) => {
15
- const states = props.State.value.split("-");
16
-
17
15
  const commonProps = {
18
16
  variant: camelCase(props.Variant.value),
19
17
  size: handleSizeProp(props.Size.value),
20
- ...(states.includes("Selected") && {
18
+ ...(props.Selected.value === "True" && {
21
19
  defaultPressed: true,
22
20
  }),
23
- ...(states.includes("Disabled") && {
21
+ ...(props.State.value === "Disabled" && {
24
22
  disabled: true,
25
23
  }),
26
- ...(states.includes("Loading") && {
24
+ ...(props.State.value === "Loading" && {
27
25
  loading: true,
28
26
  }),
29
27
  };
@@ -3,7 +3,12 @@ import type {
3
3
  NormalizedFrameNode,
4
4
  NormalizedInstanceNode,
5
5
  } from "@/normalizer";
6
- import { cloneElement, defineElementTransformer, type ElementTransformer } from "../../core";
6
+ import {
7
+ cloneElement,
8
+ createElement,
9
+ defineElementTransformer,
10
+ type ElementTransformer,
11
+ } from "../../core";
7
12
  import { createSeedReactElement } from "./element-factories";
8
13
  import type { ContainerLayoutProps, PropsConverters } from "./props";
9
14
 
@@ -43,28 +48,34 @@ export function createFrameTransformer({
43
48
  };
44
49
 
45
50
  const isStretch = props.align === undefined || props.align === "stretch";
46
- const processedChildren = isStretch
47
- ? transformedChildren.map((child) =>
48
- child ? cloneElement(child, { alignSelf: undefined }) : child,
49
- )
50
- : transformedChildren;
51
51
 
52
52
  const layoutComponent = inferLayoutComponent(props, isFlex);
53
53
 
54
- if (layoutComponent === "VStack") {
55
- const { direction, ...rest } = props;
54
+ const hasImageFill = node.fills.some(({ type }) => type === "IMAGE");
55
+ const imgElement = hasImageFill
56
+ ? createElement("img", {
57
+ src: `https://placehold.co/${node.absoluteBoundingBox?.width ?? 100}x${node.absoluteBoundingBox?.height ?? 100}`,
58
+ })
59
+ : undefined;
56
60
 
57
- return createSeedReactElement("VStack", rest, processedChildren);
58
- }
59
-
60
- if (layoutComponent === "HStack") {
61
- const { direction, ...rest } = props;
61
+ const processedChildren = [
62
+ imgElement,
63
+ ...(isStretch
64
+ ? transformedChildren.map((child) =>
65
+ child ? cloneElement(child, { alignSelf: undefined }) : child,
66
+ )
67
+ : transformedChildren),
68
+ ];
62
69
 
63
- return createSeedReactElement("HStack", rest, processedChildren);
64
- }
70
+ switch (layoutComponent) {
71
+ case "VStack":
72
+ case "HStack": {
73
+ const { direction: _direction, ...rest } = props;
65
74
 
66
- if (layoutComponent === "Box") {
67
- return createSeedReactElement("Box", props, processedChildren);
75
+ return createSeedReactElement(layoutComponent, rest, processedChildren);
76
+ }
77
+ case "Box":
78
+ return createSeedReactElement("Box", props, processedChildren);
68
79
  }
69
80
  },
70
81
  );
@@ -37,7 +37,21 @@ export function createInstanceTransformer({
37
37
  : componentHandlers[componentKey];
38
38
 
39
39
  if (componentHandler) {
40
- return componentHandler.transform(node, traverse);
40
+ const handled = componentHandler.transform(node, traverse);
41
+
42
+ if (node.overrides && node.overrides.length > 0) {
43
+ const overriddenFields = node.overrides.flatMap(({ overriddenFields }) => overriddenFields);
44
+
45
+ return {
46
+ ...handled,
47
+ meta: {
48
+ ...handled.meta,
49
+ comment: `${handled.meta.comment ? `${handled.meta.comment} ` : ""}오버라이드된 필드: ${overriddenFields.join(", ")}`,
50
+ },
51
+ };
52
+ }
53
+
54
+ return handled;
41
55
  }
42
56
 
43
57
  return frameTransformer(node, traverse);
@@ -67,6 +67,7 @@ export function createContainerLayoutPropsConverter(
67
67
  match(layoutMode)
68
68
  .with("HORIZONTAL", () => "row" as const)
69
69
  .with("VERTICAL", () => "column" as const)
70
+ .with("GRID", () => undefined)
70
71
  .with("NONE", () => undefined)
71
72
  .with(undefined, () => undefined)
72
73
  .exhaustive(),
@@ -26,18 +26,20 @@ export declare const metadata: {
26
26
  "Stronger"
27
27
  ]
28
28
  },
29
+ "Selected": {
30
+ "type": "VARIANT",
31
+ "variantOptions": [
32
+ "True",
33
+ "False",
34
+ "Indeterminate"
35
+ ]
36
+ },
29
37
  "State": {
30
38
  "type": "VARIANT",
31
39
  "variantOptions": [
32
40
  "Enabled",
33
41
  "Pressed",
34
- "Disabled",
35
- "Selected",
36
- "Selected-Pressed",
37
- "Selected-Disabled",
38
- "Indeterminate",
39
- "Indeterminate-Pressed",
40
- "Indeterminate-Disabled"
42
+ "Disabled"
41
43
  ]
42
44
  }
43
45
  }
@@ -26,18 +26,20 @@ export const metadata = {
26
26
  "Stronger"
27
27
  ]
28
28
  },
29
+ "Selected": {
30
+ "type": "VARIANT",
31
+ "variantOptions": [
32
+ "True",
33
+ "False",
34
+ "Indeterminate"
35
+ ]
36
+ },
29
37
  "State": {
30
38
  "type": "VARIANT",
31
39
  "variantOptions": [
32
40
  "Enabled",
33
41
  "Pressed",
34
- "Disabled",
35
- "Selected",
36
- "Selected-Pressed",
37
- "Selected-Disabled",
38
- "Indeterminate",
39
- "Indeterminate-Pressed",
40
- "Indeterminate-Disabled"
42
+ "Disabled"
41
43
  ]
42
44
  }
43
45
  }
@@ -16,18 +16,20 @@ export declare const metadata: {
16
16
  "Large"
17
17
  ]
18
18
  },
19
+ "Selected": {
20
+ "type": "VARIANT",
21
+ "variantOptions": [
22
+ "True",
23
+ "False",
24
+ "Indeterminate"
25
+ ]
26
+ },
19
27
  "State": {
20
28
  "type": "VARIANT",
21
29
  "variantOptions": [
22
30
  "Enabled",
23
31
  "Pressed",
24
- "Selected",
25
- "Selected-Pressed",
26
- "Indeterminate",
27
- "Indeterminate-Pressed",
28
- "Disabled",
29
- "Disabled-Selected",
30
- "Disabled-Indeterminate"
32
+ "Disabled"
31
33
  ]
32
34
  }
33
35
  }
@@ -16,18 +16,20 @@ export const metadata = {
16
16
  "Large"
17
17
  ]
18
18
  },
19
+ "Selected": {
20
+ "type": "VARIANT",
21
+ "variantOptions": [
22
+ "True",
23
+ "False",
24
+ "Indeterminate"
25
+ ]
26
+ },
19
27
  "State": {
20
28
  "type": "VARIANT",
21
29
  "variantOptions": [
22
30
  "Enabled",
23
31
  "Pressed",
24
- "Selected",
25
- "Selected-Pressed",
26
- "Indeterminate",
27
- "Indeterminate-Pressed",
28
- "Disabled",
29
- "Disabled-Selected",
30
- "Disabled-Indeterminate"
32
+ "Disabled"
31
33
  ]
32
34
  }
33
35
  }
@@ -62,19 +62,19 @@ export declare const metadata: {
62
62
  "Small"
63
63
  ]
64
64
  },
65
- "State": {
65
+ "Selected": {
66
66
  "type": "VARIANT",
67
67
  "variantOptions": [
68
- "Enabled",
69
- "Pressed",
70
- "Disabled"
68
+ "False",
69
+ "True"
71
70
  ]
72
71
  },
73
- "Selected": {
72
+ "State": {
74
73
  "type": "VARIANT",
75
74
  "variantOptions": [
76
- "False",
77
- "True"
75
+ "Enabled",
76
+ "Pressed",
77
+ "Disabled"
78
78
  ]
79
79
  },
80
80
  "Prefix Type": {
@@ -62,19 +62,19 @@ export const metadata = {
62
62
  "Small"
63
63
  ]
64
64
  },
65
- "State": {
65
+ "Selected": {
66
66
  "type": "VARIANT",
67
67
  "variantOptions": [
68
- "Enabled",
69
- "Pressed",
70
- "Disabled"
68
+ "False",
69
+ "True"
71
70
  ]
72
71
  },
73
- "Selected": {
72
+ "State": {
74
73
  "type": "VARIANT",
75
74
  "variantOptions": [
76
- "False",
77
- "True"
75
+ "Enabled",
76
+ "Pressed",
77
+ "Disabled"
78
78
  ]
79
79
  },
80
80
  "Prefix Type": {
@@ -40,6 +40,7 @@ export { metadata as selectBox } from "./select-box";
40
40
  export { metadata as skeleton } from "./skeleton";
41
41
  export { metadata as slider } from "./slider";
42
42
  export { metadata as snackbar } from "./snackbar";
43
+ export { metadata as superscriptChild } from "./superscript-child";
43
44
  export { metadata as switch } from "./switch";
44
45
  export { metadata as tabs } from "./tabs";
45
46
  export { metadata as textField } from "./text-field";
@@ -40,6 +40,7 @@ export { metadata as selectBox } from "./select-box.mjs";
40
40
  export { metadata as skeleton } from "./skeleton.mjs";
41
41
  export { metadata as slider } from "./slider.mjs";
42
42
  export { metadata as snackbar } from "./snackbar.mjs";
43
+ export { metadata as superscriptChild } from "./superscript-child.mjs";
43
44
  export { metadata as switch } from "./switch.mjs";
44
45
  export { metadata as tabs } from "./tabs.mjs";
45
46
  export { metadata as textField } from "./text-field.mjs";
@@ -16,18 +16,12 @@ export declare const metadata: {
16
16
  "False"
17
17
  ]
18
18
  },
19
- "Pressed": {
19
+ "State": {
20
20
  "type": "VARIANT",
21
21
  "variantOptions": [
22
- "True",
23
- "False"
24
- ]
25
- },
26
- "Disabled": {
27
- "type": "VARIANT",
28
- "variantOptions": [
29
- "True",
30
- "False"
22
+ "Enabled",
23
+ "Pressed",
24
+ "Disabled"
31
25
  ]
32
26
  }
33
27
  }
@@ -16,18 +16,12 @@ export const metadata = {
16
16
  "False"
17
17
  ]
18
18
  },
19
- "Pressed": {
19
+ "State": {
20
20
  "type": "VARIANT",
21
21
  "variantOptions": [
22
- "True",
23
- "False"
24
- ]
25
- },
26
- "Disabled": {
27
- "type": "VARIANT",
28
- "variantOptions": [
29
- "True",
30
- "False"
22
+ "Enabled",
23
+ "Pressed",
24
+ "Disabled"
31
25
  ]
32
26
  }
33
27
  }
@@ -12,15 +12,19 @@ export declare const metadata: {
12
12
  "Large"
13
13
  ]
14
14
  },
15
+ "Selected": {
16
+ "type": "VARIANT",
17
+ "variantOptions": [
18
+ "True",
19
+ "False"
20
+ ]
21
+ },
15
22
  "State": {
16
23
  "type": "VARIANT",
17
24
  "variantOptions": [
18
25
  "Enabled",
19
26
  "Pressed",
20
- "Disabled",
21
- "Selected",
22
- "Selected-Pressed",
23
- "Selected-Disabled"
27
+ "Disabled"
24
28
  ]
25
29
  }
26
30
  }
@@ -12,15 +12,19 @@ export const metadata = {
12
12
  "Large"
13
13
  ]
14
14
  },
15
+ "Selected": {
16
+ "type": "VARIANT",
17
+ "variantOptions": [
18
+ "True",
19
+ "False"
20
+ ]
21
+ },
15
22
  "State": {
16
23
  "type": "VARIANT",
17
24
  "variantOptions": [
18
25
  "Enabled",
19
26
  "Pressed",
20
- "Disabled",
21
- "Selected",
22
- "Selected-Pressed",
23
- "Selected-Disabled"
27
+ "Disabled"
24
28
  ]
25
29
  }
26
30
  }
@@ -22,17 +22,20 @@ export declare const metadata: {
22
22
  "Small"
23
23
  ]
24
24
  },
25
+ "Selected": {
26
+ "type": "VARIANT",
27
+ "variantOptions": [
28
+ "True",
29
+ "False"
30
+ ]
31
+ },
25
32
  "State": {
26
33
  "type": "VARIANT",
27
34
  "variantOptions": [
28
35
  "Enabled",
29
36
  "Pressed",
30
37
  "Loading",
31
- "Selected",
32
- "Selected-Pressed",
33
- "Selected-Loading",
34
- "Disabled",
35
- "Disabled-Selected"
38
+ "Disabled"
36
39
  ]
37
40
  }
38
41
  }
@@ -22,17 +22,20 @@ export const metadata = {
22
22
  "Small"
23
23
  ]
24
24
  },
25
+ "Selected": {
26
+ "type": "VARIANT",
27
+ "variantOptions": [
28
+ "True",
29
+ "False"
30
+ ]
31
+ },
25
32
  "State": {
26
33
  "type": "VARIANT",
27
34
  "variantOptions": [
28
35
  "Enabled",
29
36
  "Pressed",
30
37
  "Loading",
31
- "Selected",
32
- "Selected-Pressed",
33
- "Selected-Loading",
34
- "Disabled",
35
- "Disabled-Selected"
38
+ "Disabled"
36
39
  ]
37
40
  }
38
41
  }
@@ -18,13 +18,18 @@ export declare const metadata: {
18
18
  "Radio"
19
19
  ]
20
20
  },
21
+ "Selected": {
22
+ "type": "VARIANT",
23
+ "variantOptions": [
24
+ "True",
25
+ "False"
26
+ ]
27
+ },
21
28
  "State": {
22
29
  "type": "VARIANT",
23
30
  "variantOptions": [
24
31
  "Enabled",
25
- "Pressed",
26
- "Selected",
27
- "Selected-Pressed"
32
+ "Pressed"
28
33
  ]
29
34
  }
30
35
  }