@seed-design/figma 0.1.6 → 0.1.8
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.
- package/lib/codegen/index.cjs +746 -646
- package/lib/codegen/index.d.ts +707 -627
- package/lib/codegen/index.d.ts.map +1 -1
- package/lib/codegen/index.js +746 -646
- package/lib/codegen/targets/react/index.cjs +1170 -1180
- package/lib/codegen/targets/react/index.d.ts +20 -9
- package/lib/codegen/targets/react/index.d.ts.map +1 -1
- package/lib/codegen/targets/react/index.js +1170 -1180
- package/lib/index.cjs +883 -668
- package/lib/index.d.ts +3 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +883 -668
- package/package.json +3 -3
- package/src/codegen/component-properties.ts +283 -146
- package/src/codegen/core/component-handler.ts +9 -3
- package/src/codegen/core/jsx.ts +7 -2
- package/src/codegen/core/value-resolver.ts +35 -21
- package/src/codegen/targets/figma/pipeline.ts +4 -2
- package/src/codegen/targets/figma/value-resolver.ts +38 -2
- package/src/codegen/targets/react/component/handlers/action-button.ts +69 -5
- package/src/codegen/targets/react/component/handlers/alert-dialog.ts +81 -0
- package/src/codegen/targets/react/component/handlers/app-bar.ts +93 -128
- package/src/codegen/targets/react/component/handlers/avatar.ts +17 -8
- package/src/codegen/targets/react/component/handlers/badge.ts +0 -1
- package/src/codegen/targets/react/component/handlers/bottom-sheet.ts +71 -0
- package/src/codegen/targets/react/component/handlers/callout.ts +13 -17
- package/src/codegen/targets/react/component/handlers/chip.ts +66 -0
- package/src/codegen/targets/react/component/handlers/contextual-floating-button.ts +52 -0
- package/src/codegen/targets/react/component/handlers/divider.ts +19 -0
- package/src/codegen/targets/react/component/handlers/error-state.ts +26 -23
- package/src/codegen/targets/react/component/handlers/floating-action-button.ts +48 -0
- package/src/codegen/targets/react/component/handlers/help-bubble.ts +4 -5
- package/src/codegen/targets/react/component/handlers/identity-placeholder.ts +3 -2
- package/src/codegen/targets/react/component/handlers/inline-banner.ts +7 -14
- package/src/codegen/targets/react/component/handlers/manner-temp.ts +18 -0
- package/src/codegen/targets/react/component/handlers/menu-sheet.ts +106 -0
- package/src/codegen/targets/react/component/handlers/multiline-text-field.ts +1 -1
- package/src/codegen/targets/react/component/handlers/progress-circle.ts +3 -1
- package/src/codegen/targets/react/component/handlers/segmented-control.ts +4 -2
- package/src/codegen/targets/react/component/handlers/select-box.ts +7 -4
- package/src/codegen/targets/react/component/handlers/snackbar.ts +2 -2
- package/src/codegen/targets/react/component/handlers/tabs.ts +8 -125
- package/src/codegen/targets/react/component/index.ts +22 -19
- package/src/codegen/targets/react/instance.ts +1 -1
- package/src/codegen/targets/react/pipeline.ts +4 -2
- package/src/codegen/targets/react/props.ts +11 -4
- package/src/codegen/targets/react/value-resolver.ts +38 -3
- package/src/entities/data/__generated__/component-sets/action-button.d.ts +5 -5
- package/src/entities/data/__generated__/component-sets/action-button.mjs +5 -5
- package/src/entities/data/__generated__/component-sets/alert-dialog.d.ts +26 -0
- package/src/entities/data/__generated__/component-sets/alert-dialog.mjs +26 -0
- package/src/entities/data/__generated__/component-sets/avatar-stack.d.ts +5 -18
- package/src/entities/data/__generated__/component-sets/avatar-stack.mjs +5 -18
- package/src/entities/data/__generated__/component-sets/avatar.d.ts +11 -5
- package/src/entities/data/__generated__/component-sets/avatar.mjs +11 -5
- package/src/entities/data/__generated__/component-sets/badge.d.ts +0 -7
- package/src/entities/data/__generated__/component-sets/badge.mjs +0 -7
- package/src/entities/data/__generated__/component-sets/bottom-navigation-global.d.ts +3 -0
- package/src/entities/data/__generated__/component-sets/bottom-navigation-global.mjs +3 -0
- package/src/entities/data/__generated__/component-sets/bottom-navigation-kr.d.ts +3 -0
- package/src/entities/data/__generated__/component-sets/bottom-navigation-kr.mjs +3 -0
- package/src/entities/data/__generated__/component-sets/bottom-sheet.d.ts +53 -4
- package/src/entities/data/__generated__/component-sets/bottom-sheet.mjs +53 -4
- package/src/entities/data/__generated__/component-sets/callout.d.ts +13 -22
- package/src/entities/data/__generated__/component-sets/callout.mjs +13 -22
- package/src/entities/data/__generated__/component-sets/checkbox.d.ts +3 -3
- package/src/entities/data/__generated__/component-sets/checkbox.mjs +3 -3
- package/src/entities/data/__generated__/component-sets/checkmark.d.ts +34 -0
- package/src/entities/data/__generated__/component-sets/checkmark.mjs +34 -0
- package/src/entities/data/__generated__/component-sets/chip.d.ts +86 -0
- package/src/entities/data/__generated__/component-sets/chip.mjs +86 -0
- package/src/entities/data/__generated__/component-sets/chlid.d.ts +14 -0
- package/src/entities/data/__generated__/component-sets/chlid.mjs +14 -0
- package/src/entities/data/__generated__/component-sets/{extended-floating-action-button.d.ts → contextual-floating-button.d.ts} +12 -10
- package/src/entities/data/__generated__/component-sets/{extended-floating-action-button.mjs → contextual-floating-button.mjs} +12 -10
- package/src/entities/data/__generated__/component-sets/floating-action-button.d.ts +4 -8
- package/src/entities/data/__generated__/component-sets/floating-action-button.mjs +4 -8
- package/src/entities/data/__generated__/component-sets/help-bubble.d.ts +3 -10
- package/src/entities/data/__generated__/component-sets/help-bubble.mjs +3 -10
- package/src/entities/data/__generated__/component-sets/index.d.ts +13 -13
- package/src/entities/data/__generated__/component-sets/index.mjs +13 -13
- package/src/entities/data/__generated__/component-sets/inline-banner.d.ts +3 -3
- package/src/entities/data/__generated__/component-sets/inline-banner.mjs +3 -3
- package/src/entities/data/__generated__/component-sets/main-tab-navigation-global.d.ts +2 -2
- package/src/entities/data/__generated__/component-sets/main-tab-navigation-global.mjs +2 -2
- package/src/entities/data/__generated__/component-sets/manner-temp-badge.d.ts +2 -2
- package/src/entities/data/__generated__/component-sets/manner-temp-badge.mjs +2 -2
- package/src/entities/data/__generated__/component-sets/manner-temp.d.ts +2 -2
- package/src/entities/data/__generated__/component-sets/manner-temp.mjs +2 -2
- package/src/entities/data/__generated__/component-sets/{extended-action-sheet.d.ts → menu-sheet.d.ts} +17 -13
- package/src/entities/data/__generated__/component-sets/{extended-action-sheet.mjs → menu-sheet.mjs} +17 -13
- package/src/entities/data/__generated__/component-sets/multiline-text-field.d.ts +18 -18
- package/src/entities/data/__generated__/component-sets/multiline-text-field.mjs +18 -18
- package/src/entities/data/__generated__/component-sets/progress-circle.d.ts +2 -1
- package/src/entities/data/__generated__/component-sets/progress-circle.mjs +2 -1
- package/src/entities/data/__generated__/component-sets/radio-mark.d.ts +34 -0
- package/src/entities/data/__generated__/component-sets/radio-mark.mjs +34 -0
- package/src/entities/data/__generated__/component-sets/radio.d.ts +2 -2
- package/src/entities/data/__generated__/component-sets/radio.mjs +2 -2
- package/src/entities/data/__generated__/component-sets/reaction-button.d.ts +6 -6
- package/src/entities/data/__generated__/component-sets/reaction-button.mjs +6 -6
- package/src/entities/data/__generated__/component-sets/resizable-child.d.ts +18 -0
- package/src/entities/data/__generated__/component-sets/resizable-child.mjs +18 -0
- package/src/entities/data/__generated__/component-sets/resizable-icon.d.ts +18 -0
- package/src/entities/data/__generated__/component-sets/resizable-icon.mjs +18 -0
- package/src/entities/data/__generated__/component-sets/select-box.d.ts +4 -4
- package/src/entities/data/__generated__/component-sets/select-box.mjs +4 -4
- package/src/entities/data/__generated__/component-sets/skeleton.d.ts +7 -0
- package/src/entities/data/__generated__/component-sets/skeleton.mjs +7 -0
- package/src/entities/data/__generated__/component-sets/snackbar.d.ts +4 -4
- package/src/entities/data/__generated__/component-sets/snackbar.mjs +4 -4
- package/src/entities/data/__generated__/component-sets/switch.d.ts +1 -1
- package/src/entities/data/__generated__/component-sets/switch.mjs +1 -1
- package/src/entities/data/__generated__/component-sets/tabs.d.ts +13 -0
- package/src/entities/data/__generated__/component-sets/tabs.mjs +13 -0
- package/src/entities/data/__generated__/component-sets/template-button-group.d.ts +9 -33
- package/src/entities/data/__generated__/component-sets/template-button-group.mjs +9 -33
- package/src/entities/data/__generated__/component-sets/template-chip-group.d.ts +15 -12
- package/src/entities/data/__generated__/component-sets/template-chip-group.mjs +15 -12
- package/src/entities/data/__generated__/component-sets/template-completion.d.ts +28 -0
- package/src/entities/data/__generated__/component-sets/template-completion.mjs +28 -0
- package/src/entities/data/__generated__/component-sets/{error-state.d.ts → template-error-state.d.ts} +5 -5
- package/src/entities/data/__generated__/component-sets/{error-state.mjs → template-error-state.mjs} +5 -5
- package/src/entities/data/__generated__/component-sets/template-top-navigation.d.ts +9 -7
- package/src/entities/data/__generated__/component-sets/template-top-navigation.mjs +9 -7
- package/src/entities/data/__generated__/component-sets/text-field.d.ts +35 -36
- package/src/entities/data/__generated__/component-sets/text-field.mjs +35 -36
- package/src/entities/data/__generated__/component-sets/toggle-button.d.ts +7 -7
- package/src/entities/data/__generated__/component-sets/toggle-button.mjs +7 -7
- package/src/entities/data/__generated__/component-sets/top-navigation.d.ts +42 -0
- package/src/entities/data/__generated__/component-sets/top-navigation.mjs +42 -0
- package/src/entities/data/styles.ts +94 -0
- package/src/entities/index.ts +5 -2
- package/src/normalizer/from-plugin.ts +104 -44
- package/src/normalizer/types.ts +3 -1
- package/src/utils/figma-gradient.ts +72 -0
- package/src/utils/figma-node.ts +4 -3
- package/src/codegen/targets/react/component/handlers/action-chip.ts +0 -72
- package/src/codegen/targets/react/component/handlers/action-sheet.ts +0 -82
- package/src/codegen/targets/react/component/handlers/chip-tabs.ts +0 -57
- package/src/codegen/targets/react/component/handlers/control-chip.ts +0 -81
- package/src/codegen/targets/react/component/handlers/extended-action-sheet.ts +0 -98
- package/src/codegen/targets/react/component/handlers/extended-fab.ts +0 -25
- package/src/codegen/targets/react/component/handlers/fab.ts +0 -22
- package/src/codegen/targets/react/component/handlers/text-button.ts +0 -49
- package/src/entities/data/__generated__/component-sets/action-chip.d.ts +0 -57
- package/src/entities/data/__generated__/component-sets/action-chip.mjs +0 -57
- package/src/entities/data/__generated__/component-sets/action-sheet.d.ts +0 -40
- package/src/entities/data/__generated__/component-sets/action-sheet.mjs +0 -40
- package/src/entities/data/__generated__/component-sets/chip-tablist.d.ts +0 -24
- package/src/entities/data/__generated__/component-sets/chip-tablist.mjs +0 -24
- package/src/entities/data/__generated__/component-sets/control-chip.d.ts +0 -60
- package/src/entities/data/__generated__/component-sets/control-chip.mjs +0 -60
- package/src/entities/data/__generated__/component-sets/identity-placeholder.d.ts +0 -13
- package/src/entities/data/__generated__/component-sets/identity-placeholder.mjs +0 -13
- package/src/entities/data/__generated__/component-sets/manner-temp-bar.d.ts +0 -23
- package/src/entities/data/__generated__/component-sets/manner-temp-bar.mjs +0 -23
- package/src/entities/data/__generated__/component-sets/standard-navigation.d.ts +0 -23
- package/src/entities/data/__generated__/component-sets/standard-navigation.mjs +0 -23
- package/src/entities/data/__generated__/component-sets/tablist.d.ts +0 -29
- package/src/entities/data/__generated__/component-sets/tablist.mjs +0 -29
- package/src/entities/data/__generated__/component-sets/template-bottom-fixed-bar.d.ts +0 -42
- package/src/entities/data/__generated__/component-sets/template-bottom-fixed-bar.mjs +0 -42
- package/src/entities/data/__generated__/component-sets/text-button.d.ts +0 -45
- package/src/entities/data/__generated__/component-sets/text-button.mjs +0 -45
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
ExtendedActionSheetGroupProperties,
|
|
3
|
-
ExtendedActionSheetItemProperties,
|
|
4
|
-
ExtendedActionSheetProperties,
|
|
5
|
-
} from "@/codegen/component-properties";
|
|
6
|
-
import { createElement, defineComponentHandler } from "@/codegen/core";
|
|
7
|
-
import * as metadata from "@/entities/data/__generated__/component-sets";
|
|
8
|
-
import { findAllInstances } from "@/utils/figma-node";
|
|
9
|
-
import { camelCase } from "change-case";
|
|
10
|
-
import { createLocalSnippetHelper, createSeedReactElement } from "../../element-factories";
|
|
11
|
-
import type { ComponentHandlerDeps } from "../deps.interface";
|
|
12
|
-
|
|
13
|
-
const { createLocalSnippetElement } = createLocalSnippetHelper("extended-action-sheet");
|
|
14
|
-
|
|
15
|
-
const EXTENDED_ACTION_SHEET_ITEM_KEY = "057083e95466da59051119eec0b41d4ad5a07f8f";
|
|
16
|
-
const createExtendedActionSheetItemHandler = (ctx: ComponentHandlerDeps) =>
|
|
17
|
-
defineComponentHandler<ExtendedActionSheetItemProperties>(
|
|
18
|
-
EXTENDED_ACTION_SHEET_ITEM_KEY,
|
|
19
|
-
({ componentProperties: props }) => {
|
|
20
|
-
const states = props.State.value.split("-");
|
|
21
|
-
|
|
22
|
-
const commonProps = {
|
|
23
|
-
tone: camelCase(props.Tone.value),
|
|
24
|
-
...(states.includes("Disabled") && {
|
|
25
|
-
disabled: true,
|
|
26
|
-
}),
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
return createLocalSnippetElement("ExtendedActionSheetItem", commonProps, [
|
|
30
|
-
props["Show Prefix Icon#17043:5"].value
|
|
31
|
-
? createSeedReactElement("PrefixIcon", {
|
|
32
|
-
svg: ctx.iconHandler.transform(props["Prefix Icon#55948:0"]),
|
|
33
|
-
})
|
|
34
|
-
: undefined,
|
|
35
|
-
props["Label#55905:8"].value,
|
|
36
|
-
]);
|
|
37
|
-
},
|
|
38
|
-
);
|
|
39
|
-
|
|
40
|
-
const EXTENDED_ACTION_SHEET_GROUP_KEY = "2a504a1c6b7810d5e652862dcba2cb7048f9eb16";
|
|
41
|
-
const createExtendedActionSheetGroupHandler = (ctx: ComponentHandlerDeps) => {
|
|
42
|
-
const extendedActionSheetItemHandler = createExtendedActionSheetItemHandler(ctx);
|
|
43
|
-
|
|
44
|
-
return defineComponentHandler<ExtendedActionSheetGroupProperties>(
|
|
45
|
-
EXTENDED_ACTION_SHEET_GROUP_KEY,
|
|
46
|
-
(node) => {
|
|
47
|
-
const items = findAllInstances<ExtendedActionSheetItemProperties>({
|
|
48
|
-
node,
|
|
49
|
-
key: extendedActionSheetItemHandler.key,
|
|
50
|
-
});
|
|
51
|
-
|
|
52
|
-
const contentChildren = items.map(extendedActionSheetItemHandler.transform);
|
|
53
|
-
|
|
54
|
-
return createLocalSnippetElement("ExtendedActionSheetGroup", undefined, contentChildren);
|
|
55
|
-
},
|
|
56
|
-
);
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
export const createExtendedActionSheetHandler = (ctx: ComponentHandlerDeps) => {
|
|
60
|
-
const extendedActionSheetGroupHandler = createExtendedActionSheetGroupHandler(ctx);
|
|
61
|
-
|
|
62
|
-
return defineComponentHandler<ExtendedActionSheetProperties>(
|
|
63
|
-
metadata.extendedActionSheet.key,
|
|
64
|
-
(node) => {
|
|
65
|
-
const { componentProperties: props } = node;
|
|
66
|
-
|
|
67
|
-
const groups = findAllInstances<ExtendedActionSheetGroupProperties>({
|
|
68
|
-
node,
|
|
69
|
-
key: extendedActionSheetGroupHandler.key,
|
|
70
|
-
});
|
|
71
|
-
|
|
72
|
-
const contentChildren = groups.map(extendedActionSheetGroupHandler.transform);
|
|
73
|
-
|
|
74
|
-
const title = props["Show Title#17043:12"].value ? props["Title#14599:0"].value : undefined;
|
|
75
|
-
|
|
76
|
-
const content = createLocalSnippetElement(
|
|
77
|
-
"ExtendedActionSheetContent",
|
|
78
|
-
{ title },
|
|
79
|
-
contentChildren,
|
|
80
|
-
{
|
|
81
|
-
comment: title
|
|
82
|
-
? undefined
|
|
83
|
-
: "title을 제공하지 않는 경우 aria-label이나 aria-labelledby 중 하나를 제공해야 합니다.",
|
|
84
|
-
},
|
|
85
|
-
);
|
|
86
|
-
|
|
87
|
-
const trigger = createLocalSnippetElement(
|
|
88
|
-
"ExtendedActionSheetTrigger",
|
|
89
|
-
{ asChild: true },
|
|
90
|
-
createElement("button", undefined, "열기", {
|
|
91
|
-
comment: "ExtendedActionSheet을 여는 요소를 제공해주세요.",
|
|
92
|
-
}),
|
|
93
|
-
);
|
|
94
|
-
|
|
95
|
-
return createLocalSnippetElement("ExtendedActionSheet", undefined, [trigger, content]);
|
|
96
|
-
},
|
|
97
|
-
);
|
|
98
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { ExtendedFabProperties } from "@/codegen/component-properties";
|
|
2
|
-
import { defineComponentHandler } from "@/codegen/core";
|
|
3
|
-
import * as metadata from "@/entities/data/__generated__/component-sets";
|
|
4
|
-
import { camelCase } from "change-case";
|
|
5
|
-
import { createSeedReactElement } from "../../element-factories";
|
|
6
|
-
import type { ComponentHandlerDeps } from "../deps.interface";
|
|
7
|
-
import { handleSizeProp } from "../size";
|
|
8
|
-
|
|
9
|
-
export const createExtendedFabHandler = (ctx: ComponentHandlerDeps) =>
|
|
10
|
-
defineComponentHandler<ExtendedFabProperties>(
|
|
11
|
-
metadata.extendedFloatingActionButton.key,
|
|
12
|
-
({ componentProperties: props }) => {
|
|
13
|
-
const commonProps = {
|
|
14
|
-
size: handleSizeProp(props.Size.value),
|
|
15
|
-
variant: camelCase(props.Variant.value),
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
return createSeedReactElement("ExtendedFab", commonProps, [
|
|
19
|
-
createSeedReactElement("PrefixIcon", {
|
|
20
|
-
svg: ctx.iconHandler.transform(props["Icon#28796:0"]),
|
|
21
|
-
}),
|
|
22
|
-
props["Label#28936:0"].value,
|
|
23
|
-
]);
|
|
24
|
-
},
|
|
25
|
-
);
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { FabProperties } from "@/codegen/component-properties";
|
|
2
|
-
import { defineComponentHandler } from "@/codegen/core";
|
|
3
|
-
import * as metadata from "@/entities/data/__generated__/component-sets";
|
|
4
|
-
import { createSeedReactElement } from "../../element-factories";
|
|
5
|
-
import type { ComponentHandlerDeps } from "../deps.interface";
|
|
6
|
-
|
|
7
|
-
export const createFabHandler = (ctx: ComponentHandlerDeps) =>
|
|
8
|
-
defineComponentHandler<FabProperties>(
|
|
9
|
-
metadata.floatingActionButton.key,
|
|
10
|
-
({ componentProperties: props }) => {
|
|
11
|
-
return createSeedReactElement(
|
|
12
|
-
"Fab",
|
|
13
|
-
undefined,
|
|
14
|
-
createSeedReactElement("Icon", {
|
|
15
|
-
svg: ctx.iconHandler.transform(props["Icon#28796:0"]),
|
|
16
|
-
}),
|
|
17
|
-
{
|
|
18
|
-
comment: "aria-label이나 aria-labelledby 중 하나를 제공해야 합니다.",
|
|
19
|
-
},
|
|
20
|
-
);
|
|
21
|
-
},
|
|
22
|
-
);
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import type { TextButtonProperties } from "@/codegen/component-properties";
|
|
2
|
-
import { defineComponentHandler } from "@/codegen/core";
|
|
3
|
-
import * as metadata from "@/entities/data/__generated__/component-sets";
|
|
4
|
-
import type { NormalizedInstanceNode } from "@/normalizer";
|
|
5
|
-
import { findOne } from "@/utils/figma-node";
|
|
6
|
-
import { camelCase } from "change-case";
|
|
7
|
-
import { match } from "ts-pattern";
|
|
8
|
-
import { createSeedReactElement } from "../../element-factories";
|
|
9
|
-
import type { ComponentHandlerDeps } from "../deps.interface";
|
|
10
|
-
import { handleSizeProp } from "../size";
|
|
11
|
-
|
|
12
|
-
export const createTextButtonHandler = (ctx: ComponentHandlerDeps) =>
|
|
13
|
-
defineComponentHandler<TextButtonProperties>(metadata.textButton.key, (node) => {
|
|
14
|
-
const { componentProperties: props } = node;
|
|
15
|
-
|
|
16
|
-
const states = props.State.value.split("-");
|
|
17
|
-
|
|
18
|
-
const { prefixIcon, suffixIcon, children } = match(props.Layout.value)
|
|
19
|
-
.with("Icon First", () => ({
|
|
20
|
-
prefixIcon: ctx.iconHandler.transform(props["Prefix Icon#7561:0"]),
|
|
21
|
-
suffixIcon: undefined,
|
|
22
|
-
children: props["Label#6148:0"].value,
|
|
23
|
-
}))
|
|
24
|
-
.with("Icon Last", () => {
|
|
25
|
-
const suffixIconNode = findOne(
|
|
26
|
-
node,
|
|
27
|
-
(node) => node.type === "INSTANCE" && node.name === "Suffix Icon",
|
|
28
|
-
) as NormalizedInstanceNode | null;
|
|
29
|
-
|
|
30
|
-
return {
|
|
31
|
-
prefixIcon: undefined,
|
|
32
|
-
suffixIcon: suffixIconNode ? ctx.iconHandler.transform(suffixIconNode) : undefined,
|
|
33
|
-
children: props["Label#6148:0"].value,
|
|
34
|
-
};
|
|
35
|
-
})
|
|
36
|
-
.exhaustive();
|
|
37
|
-
|
|
38
|
-
const commonProps = {
|
|
39
|
-
tone: camelCase(props.Tone.value),
|
|
40
|
-
size: handleSizeProp(props.Size.value),
|
|
41
|
-
prefixIcon,
|
|
42
|
-
suffixIcon,
|
|
43
|
-
...(states.includes("Disabled") && {
|
|
44
|
-
disabled: true,
|
|
45
|
-
}),
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
return createSeedReactElement("TextButton", commonProps, children);
|
|
49
|
-
});
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
export declare const metadata: {
|
|
2
|
-
"name": "🟢 Action Chip",
|
|
3
|
-
"key": "3d21594ef116e94a9465d507447b858aea062575",
|
|
4
|
-
"componentPropertyDefinitions": {
|
|
5
|
-
"Icon#8714:0": {
|
|
6
|
-
"type": "INSTANCE_SWAP",
|
|
7
|
-
"preferredValues": []
|
|
8
|
-
},
|
|
9
|
-
"Prefix Icon#8711:0": {
|
|
10
|
-
"type": "INSTANCE_SWAP",
|
|
11
|
-
"preferredValues": [
|
|
12
|
-
{
|
|
13
|
-
"type": "COMPONENT_SET",
|
|
14
|
-
"key": "8ed05ef62a40f2dc034ee7eb6945bd0e63ad49aa"
|
|
15
|
-
}
|
|
16
|
-
]
|
|
17
|
-
},
|
|
18
|
-
"Suffix Icon#8711:3": {
|
|
19
|
-
"type": "INSTANCE_SWAP",
|
|
20
|
-
"preferredValues": []
|
|
21
|
-
},
|
|
22
|
-
"Label#7185:0": {
|
|
23
|
-
"type": "TEXT"
|
|
24
|
-
},
|
|
25
|
-
"Show Count#7185:42": {
|
|
26
|
-
"type": "BOOLEAN"
|
|
27
|
-
},
|
|
28
|
-
"Count#7185:21": {
|
|
29
|
-
"type": "TEXT"
|
|
30
|
-
},
|
|
31
|
-
"Size": {
|
|
32
|
-
"type": "VARIANT",
|
|
33
|
-
"variantOptions": [
|
|
34
|
-
"Medium",
|
|
35
|
-
"Small"
|
|
36
|
-
]
|
|
37
|
-
},
|
|
38
|
-
"Layout": {
|
|
39
|
-
"type": "VARIANT",
|
|
40
|
-
"variantOptions": [
|
|
41
|
-
"Text Only",
|
|
42
|
-
"Icon First",
|
|
43
|
-
"Icon Last",
|
|
44
|
-
"Icon Both",
|
|
45
|
-
"Icon Only"
|
|
46
|
-
]
|
|
47
|
-
},
|
|
48
|
-
"State": {
|
|
49
|
-
"type": "VARIANT",
|
|
50
|
-
"variantOptions": [
|
|
51
|
-
"Enabled",
|
|
52
|
-
"Pressed",
|
|
53
|
-
"Disabled"
|
|
54
|
-
]
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
};
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
export const metadata = {
|
|
2
|
-
"name": "🟢 Action Chip",
|
|
3
|
-
"key": "3d21594ef116e94a9465d507447b858aea062575",
|
|
4
|
-
"componentPropertyDefinitions": {
|
|
5
|
-
"Icon#8714:0": {
|
|
6
|
-
"type": "INSTANCE_SWAP",
|
|
7
|
-
"preferredValues": []
|
|
8
|
-
},
|
|
9
|
-
"Prefix Icon#8711:0": {
|
|
10
|
-
"type": "INSTANCE_SWAP",
|
|
11
|
-
"preferredValues": [
|
|
12
|
-
{
|
|
13
|
-
"type": "COMPONENT_SET",
|
|
14
|
-
"key": "8ed05ef62a40f2dc034ee7eb6945bd0e63ad49aa"
|
|
15
|
-
}
|
|
16
|
-
]
|
|
17
|
-
},
|
|
18
|
-
"Suffix Icon#8711:3": {
|
|
19
|
-
"type": "INSTANCE_SWAP",
|
|
20
|
-
"preferredValues": []
|
|
21
|
-
},
|
|
22
|
-
"Label#7185:0": {
|
|
23
|
-
"type": "TEXT"
|
|
24
|
-
},
|
|
25
|
-
"Show Count#7185:42": {
|
|
26
|
-
"type": "BOOLEAN"
|
|
27
|
-
},
|
|
28
|
-
"Count#7185:21": {
|
|
29
|
-
"type": "TEXT"
|
|
30
|
-
},
|
|
31
|
-
"Size": {
|
|
32
|
-
"type": "VARIANT",
|
|
33
|
-
"variantOptions": [
|
|
34
|
-
"Medium",
|
|
35
|
-
"Small"
|
|
36
|
-
]
|
|
37
|
-
},
|
|
38
|
-
"Layout": {
|
|
39
|
-
"type": "VARIANT",
|
|
40
|
-
"variantOptions": [
|
|
41
|
-
"Text Only",
|
|
42
|
-
"Icon First",
|
|
43
|
-
"Icon Last",
|
|
44
|
-
"Icon Both",
|
|
45
|
-
"Icon Only"
|
|
46
|
-
]
|
|
47
|
-
},
|
|
48
|
-
"State": {
|
|
49
|
-
"type": "VARIANT",
|
|
50
|
-
"variantOptions": [
|
|
51
|
-
"Enabled",
|
|
52
|
-
"Pressed",
|
|
53
|
-
"Disabled"
|
|
54
|
-
]
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
export declare const metadata: {
|
|
2
|
-
"name": "🟢 Action Sheet",
|
|
3
|
-
"key": "7c29b70b7e71618e1894c26f61f336de2730d76e",
|
|
4
|
-
"componentPropertyDefinitions": {
|
|
5
|
-
"Description#15641:70": {
|
|
6
|
-
"type": "TEXT"
|
|
7
|
-
},
|
|
8
|
-
"Title#15641:37": {
|
|
9
|
-
"type": "TEXT"
|
|
10
|
-
},
|
|
11
|
-
"OS Indicator (Figma Only)#15641:20": {
|
|
12
|
-
"type": "BOOLEAN"
|
|
13
|
-
},
|
|
14
|
-
"Type": {
|
|
15
|
-
"type": "VARIANT",
|
|
16
|
-
"variantOptions": [
|
|
17
|
-
"Normal",
|
|
18
|
-
"Destructive"
|
|
19
|
-
]
|
|
20
|
-
},
|
|
21
|
-
"Header": {
|
|
22
|
-
"type": "VARIANT",
|
|
23
|
-
"variantOptions": [
|
|
24
|
-
"Title Only",
|
|
25
|
-
"Description Only",
|
|
26
|
-
"Title With Description",
|
|
27
|
-
"None"
|
|
28
|
-
]
|
|
29
|
-
},
|
|
30
|
-
"Action Count": {
|
|
31
|
-
"type": "VARIANT",
|
|
32
|
-
"variantOptions": [
|
|
33
|
-
"1",
|
|
34
|
-
"2",
|
|
35
|
-
"3",
|
|
36
|
-
"4"
|
|
37
|
-
]
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
export const metadata = {
|
|
2
|
-
"name": "🟢 Action Sheet",
|
|
3
|
-
"key": "7c29b70b7e71618e1894c26f61f336de2730d76e",
|
|
4
|
-
"componentPropertyDefinitions": {
|
|
5
|
-
"Description#15641:70": {
|
|
6
|
-
"type": "TEXT"
|
|
7
|
-
},
|
|
8
|
-
"Title#15641:37": {
|
|
9
|
-
"type": "TEXT"
|
|
10
|
-
},
|
|
11
|
-
"OS Indicator (Figma Only)#15641:20": {
|
|
12
|
-
"type": "BOOLEAN"
|
|
13
|
-
},
|
|
14
|
-
"Type": {
|
|
15
|
-
"type": "VARIANT",
|
|
16
|
-
"variantOptions": [
|
|
17
|
-
"Normal",
|
|
18
|
-
"Destructive"
|
|
19
|
-
]
|
|
20
|
-
},
|
|
21
|
-
"Header": {
|
|
22
|
-
"type": "VARIANT",
|
|
23
|
-
"variantOptions": [
|
|
24
|
-
"Title Only",
|
|
25
|
-
"Description Only",
|
|
26
|
-
"Title With Description",
|
|
27
|
-
"None"
|
|
28
|
-
]
|
|
29
|
-
},
|
|
30
|
-
"Action Count": {
|
|
31
|
-
"type": "VARIANT",
|
|
32
|
-
"variantOptions": [
|
|
33
|
-
"1",
|
|
34
|
-
"2",
|
|
35
|
-
"3",
|
|
36
|
-
"4"
|
|
37
|
-
]
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export declare const metadata: {
|
|
2
|
-
"name": "🟢 Chip Tablist",
|
|
3
|
-
"key": "d098159beacf7713e9116f0ef38d8a20f64ec84f",
|
|
4
|
-
"componentPropertyDefinitions": {
|
|
5
|
-
"Tab Count": {
|
|
6
|
-
"type": "VARIANT",
|
|
7
|
-
"variantOptions": [
|
|
8
|
-
"2",
|
|
9
|
-
"3",
|
|
10
|
-
"4",
|
|
11
|
-
"5",
|
|
12
|
-
"6",
|
|
13
|
-
"Max"
|
|
14
|
-
]
|
|
15
|
-
},
|
|
16
|
-
"Variant": {
|
|
17
|
-
"type": "VARIANT",
|
|
18
|
-
"variantOptions": [
|
|
19
|
-
"Neutral Solid",
|
|
20
|
-
"Brand Solid"
|
|
21
|
-
]
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export const metadata = {
|
|
2
|
-
"name": "🟢 Chip Tablist",
|
|
3
|
-
"key": "d098159beacf7713e9116f0ef38d8a20f64ec84f",
|
|
4
|
-
"componentPropertyDefinitions": {
|
|
5
|
-
"Tab Count": {
|
|
6
|
-
"type": "VARIANT",
|
|
7
|
-
"variantOptions": [
|
|
8
|
-
"2",
|
|
9
|
-
"3",
|
|
10
|
-
"4",
|
|
11
|
-
"5",
|
|
12
|
-
"6",
|
|
13
|
-
"Max"
|
|
14
|
-
]
|
|
15
|
-
},
|
|
16
|
-
"Variant": {
|
|
17
|
-
"type": "VARIANT",
|
|
18
|
-
"variantOptions": [
|
|
19
|
-
"Neutral Solid",
|
|
20
|
-
"Brand Solid"
|
|
21
|
-
]
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
};
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
export declare const metadata: {
|
|
2
|
-
"name": "🟢 Control Chip",
|
|
3
|
-
"key": "5780d56fc2f9bc4bbd6bc3db93949d8a8b7b7563",
|
|
4
|
-
"componentPropertyDefinitions": {
|
|
5
|
-
"Suffix Icon#8722:82": {
|
|
6
|
-
"type": "INSTANCE_SWAP",
|
|
7
|
-
"preferredValues": []
|
|
8
|
-
},
|
|
9
|
-
"Label#7185:0": {
|
|
10
|
-
"type": "TEXT"
|
|
11
|
-
},
|
|
12
|
-
"Show Count#7185:42": {
|
|
13
|
-
"type": "BOOLEAN"
|
|
14
|
-
},
|
|
15
|
-
"Icon#8722:41": {
|
|
16
|
-
"type": "INSTANCE_SWAP",
|
|
17
|
-
"preferredValues": []
|
|
18
|
-
},
|
|
19
|
-
"Prefix Icon#8722:0": {
|
|
20
|
-
"type": "INSTANCE_SWAP",
|
|
21
|
-
"preferredValues": [
|
|
22
|
-
{
|
|
23
|
-
"type": "COMPONENT_SET",
|
|
24
|
-
"key": "8ed05ef62a40f2dc034ee7eb6945bd0e63ad49aa"
|
|
25
|
-
}
|
|
26
|
-
]
|
|
27
|
-
},
|
|
28
|
-
"Count#7185:21": {
|
|
29
|
-
"type": "TEXT"
|
|
30
|
-
},
|
|
31
|
-
"Size": {
|
|
32
|
-
"type": "VARIANT",
|
|
33
|
-
"variantOptions": [
|
|
34
|
-
"Medium",
|
|
35
|
-
"Small"
|
|
36
|
-
]
|
|
37
|
-
},
|
|
38
|
-
"Layout": {
|
|
39
|
-
"type": "VARIANT",
|
|
40
|
-
"variantOptions": [
|
|
41
|
-
"Text Only",
|
|
42
|
-
"Icon First",
|
|
43
|
-
"Icon Last",
|
|
44
|
-
"Icon Both",
|
|
45
|
-
"Icon Only"
|
|
46
|
-
]
|
|
47
|
-
},
|
|
48
|
-
"State": {
|
|
49
|
-
"type": "VARIANT",
|
|
50
|
-
"variantOptions": [
|
|
51
|
-
"Enabled",
|
|
52
|
-
"Pressed",
|
|
53
|
-
"Selected",
|
|
54
|
-
"Selected-Pressed",
|
|
55
|
-
"Disabled",
|
|
56
|
-
"Disabled-Selected"
|
|
57
|
-
]
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
};
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
export const metadata = {
|
|
2
|
-
"name": "🟢 Control Chip",
|
|
3
|
-
"key": "5780d56fc2f9bc4bbd6bc3db93949d8a8b7b7563",
|
|
4
|
-
"componentPropertyDefinitions": {
|
|
5
|
-
"Suffix Icon#8722:82": {
|
|
6
|
-
"type": "INSTANCE_SWAP",
|
|
7
|
-
"preferredValues": []
|
|
8
|
-
},
|
|
9
|
-
"Label#7185:0": {
|
|
10
|
-
"type": "TEXT"
|
|
11
|
-
},
|
|
12
|
-
"Show Count#7185:42": {
|
|
13
|
-
"type": "BOOLEAN"
|
|
14
|
-
},
|
|
15
|
-
"Icon#8722:41": {
|
|
16
|
-
"type": "INSTANCE_SWAP",
|
|
17
|
-
"preferredValues": []
|
|
18
|
-
},
|
|
19
|
-
"Prefix Icon#8722:0": {
|
|
20
|
-
"type": "INSTANCE_SWAP",
|
|
21
|
-
"preferredValues": [
|
|
22
|
-
{
|
|
23
|
-
"type": "COMPONENT_SET",
|
|
24
|
-
"key": "8ed05ef62a40f2dc034ee7eb6945bd0e63ad49aa"
|
|
25
|
-
}
|
|
26
|
-
]
|
|
27
|
-
},
|
|
28
|
-
"Count#7185:21": {
|
|
29
|
-
"type": "TEXT"
|
|
30
|
-
},
|
|
31
|
-
"Size": {
|
|
32
|
-
"type": "VARIANT",
|
|
33
|
-
"variantOptions": [
|
|
34
|
-
"Medium",
|
|
35
|
-
"Small"
|
|
36
|
-
]
|
|
37
|
-
},
|
|
38
|
-
"Layout": {
|
|
39
|
-
"type": "VARIANT",
|
|
40
|
-
"variantOptions": [
|
|
41
|
-
"Text Only",
|
|
42
|
-
"Icon First",
|
|
43
|
-
"Icon Last",
|
|
44
|
-
"Icon Both",
|
|
45
|
-
"Icon Only"
|
|
46
|
-
]
|
|
47
|
-
},
|
|
48
|
-
"State": {
|
|
49
|
-
"type": "VARIANT",
|
|
50
|
-
"variantOptions": [
|
|
51
|
-
"Enabled",
|
|
52
|
-
"Pressed",
|
|
53
|
-
"Selected",
|
|
54
|
-
"Selected-Pressed",
|
|
55
|
-
"Disabled",
|
|
56
|
-
"Disabled-Selected"
|
|
57
|
-
]
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare const metadata: {
|
|
2
|
-
"name": "🟢 Identity Placeholder",
|
|
3
|
-
"key": "808206c07408aa1056ec85a55925e9844e9265c2",
|
|
4
|
-
"componentPropertyDefinitions": {
|
|
5
|
-
"Identity": {
|
|
6
|
-
"type": "VARIANT",
|
|
7
|
-
"variantOptions": [
|
|
8
|
-
"Person",
|
|
9
|
-
"Business"
|
|
10
|
-
]
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export const metadata = {
|
|
2
|
-
"name": "🟢 Identity Placeholder",
|
|
3
|
-
"key": "808206c07408aa1056ec85a55925e9844e9265c2",
|
|
4
|
-
"componentPropertyDefinitions": {
|
|
5
|
-
"Identity": {
|
|
6
|
-
"type": "VARIANT",
|
|
7
|
-
"variantOptions": [
|
|
8
|
-
"Person",
|
|
9
|
-
"Business"
|
|
10
|
-
]
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export declare const metadata: {
|
|
2
|
-
"name": "🟢 Manner Temp (Bar)",
|
|
3
|
-
"key": "49ca92c450fb5d450be00f69fae709dbb8edc494",
|
|
4
|
-
"componentPropertyDefinitions": {
|
|
5
|
-
"Size": {
|
|
6
|
-
"type": "VARIANT",
|
|
7
|
-
"variantOptions": [
|
|
8
|
-
"Medium"
|
|
9
|
-
]
|
|
10
|
-
},
|
|
11
|
-
"State": {
|
|
12
|
-
"type": "VARIANT",
|
|
13
|
-
"variantOptions": [
|
|
14
|
-
"L1 (29.9 이하)",
|
|
15
|
-
"L2 (29.9~36.2)",
|
|
16
|
-
"L3 (36.3~37.5)",
|
|
17
|
-
"L4 (37.6~41.9)",
|
|
18
|
-
"L5 (42~51.9)",
|
|
19
|
-
"L6 (52~)"
|
|
20
|
-
]
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export const metadata = {
|
|
2
|
-
"name": "🟢 Manner Temp (Bar)",
|
|
3
|
-
"key": "49ca92c450fb5d450be00f69fae709dbb8edc494",
|
|
4
|
-
"componentPropertyDefinitions": {
|
|
5
|
-
"Size": {
|
|
6
|
-
"type": "VARIANT",
|
|
7
|
-
"variantOptions": [
|
|
8
|
-
"Medium"
|
|
9
|
-
]
|
|
10
|
-
},
|
|
11
|
-
"State": {
|
|
12
|
-
"type": "VARIANT",
|
|
13
|
-
"variantOptions": [
|
|
14
|
-
"L1 (29.9 이하)",
|
|
15
|
-
"L2 (29.9~36.2)",
|
|
16
|
-
"L3 (36.3~37.5)",
|
|
17
|
-
"L4 (37.6~41.9)",
|
|
18
|
-
"L5 (42~51.9)",
|
|
19
|
-
"L6 (52~)"
|
|
20
|
-
]
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export declare const metadata: {
|
|
2
|
-
"name": "🟢 Standard Navigation",
|
|
3
|
-
"key": "c07bfe331cf214375fce9ad47cb6fdb459d1fb1b",
|
|
4
|
-
"componentPropertyDefinitions": {
|
|
5
|
-
"Title#28176:5": {
|
|
6
|
-
"type": "BOOLEAN"
|
|
7
|
-
},
|
|
8
|
-
"Variant": {
|
|
9
|
-
"type": "VARIANT",
|
|
10
|
-
"variantOptions": [
|
|
11
|
-
"Layer Default",
|
|
12
|
-
"Transparent"
|
|
13
|
-
]
|
|
14
|
-
},
|
|
15
|
-
"OS": {
|
|
16
|
-
"type": "VARIANT",
|
|
17
|
-
"variantOptions": [
|
|
18
|
-
"iOS",
|
|
19
|
-
"Android"
|
|
20
|
-
]
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
};
|