@seed-design/figma 0.0.21 → 0.0.23
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 +8012 -0
- package/lib/codegen/index.d.ts +1828 -0
- package/lib/codegen/index.js +7983 -0
- package/lib/codegen/targets/react/index.cjs +12198 -0
- package/lib/codegen/targets/react/index.d.ts +267 -0
- package/lib/codegen/targets/react/index.js +12180 -0
- package/lib/index.cjs +79 -2741
- package/lib/index.d.ts +17 -1937
- package/lib/index.js +61 -2715
- package/package.json +12 -2
- package/src/codegen/{targets/react/component/properties.type.ts → component-properties.ts} +43 -43
- package/src/codegen/core/codegen.ts +17 -6
- package/src/codegen/core/{component.ts → component-handler.ts} +3 -3
- package/src/codegen/core/component-type-helper.ts +35 -0
- package/src/codegen/core/index.ts +14 -14
- package/src/codegen/core/{props.ts → props-converter.ts} +10 -13
- package/src/codegen/core/{value.ts → value-resolver.ts} +87 -50
- package/src/codegen/default-services.ts +44 -0
- package/src/codegen/index.ts +1 -44
- package/src/codegen/targets/figma/frame.ts +8 -8
- package/src/codegen/targets/figma/index.ts +1 -1
- package/src/codegen/targets/figma/pipeline.ts +94 -0
- package/src/codegen/targets/figma/props.ts +59 -70
- package/src/codegen/targets/figma/shape.ts +18 -18
- package/src/codegen/targets/figma/text.ts +6 -6
- package/src/codegen/targets/figma/value-resolver.ts +19 -0
- package/src/codegen/targets/react/component/deps.interface.ts +5 -4
- package/src/codegen/targets/react/component/{transformers → handlers}/action-button.ts +8 -14
- package/src/codegen/targets/react/component/{transformers → handlers}/action-chip.ts +10 -20
- package/src/codegen/targets/react/component/{transformers → handlers}/action-sheet.ts +13 -10
- package/src/codegen/targets/react/component/{transformers → handlers}/app-bar.ts +28 -36
- package/src/codegen/targets/react/component/handlers/avatar-stack.ts +29 -0
- package/src/codegen/targets/react/component/{transformers → handlers}/avatar.ts +12 -9
- package/src/codegen/targets/react/component/handlers/badge.ts +18 -0
- package/src/codegen/targets/react/component/{transformers → handlers}/callout.ts +6 -8
- package/src/codegen/targets/react/component/{transformers → handlers}/checkbox.ts +5 -5
- package/src/codegen/targets/react/component/{transformers → handlers}/chip-tabs.ts +10 -10
- package/src/codegen/targets/react/component/{transformers → handlers}/control-chip.ts +10 -20
- package/src/codegen/targets/react/component/{transformers → handlers}/error-state.ts +9 -9
- package/src/codegen/targets/react/component/{transformers → handlers}/extended-action-sheet.ts +16 -18
- package/src/codegen/targets/react/component/{transformers → handlers}/extended-fab.ts +6 -6
- package/src/codegen/targets/react/component/handlers/fab.ts +18 -0
- package/src/codegen/targets/react/component/{transformers → handlers}/help-bubble.ts +5 -5
- package/src/codegen/targets/react/component/{transformers → handlers}/identity-placeholder.ts +5 -5
- package/src/codegen/targets/react/component/{transformers → handlers}/inline-banner.ts +7 -10
- package/src/codegen/targets/react/component/{transformers → handlers}/manner-temp-badge.ts +5 -5
- package/src/codegen/targets/react/component/{transformers → handlers}/multiline-text-field.ts +5 -5
- package/src/codegen/targets/react/component/{transformers → handlers}/progress-circle.ts +5 -5
- package/src/codegen/targets/react/component/{transformers → handlers}/reaction-button.ts +6 -6
- package/src/codegen/targets/react/component/{transformers → handlers}/segmented-control.ts +10 -10
- package/src/codegen/targets/react/component/{transformers → handlers}/select-box.ts +10 -10
- package/src/codegen/targets/react/component/handlers/skeleton.ts +25 -0
- package/src/codegen/targets/react/component/{transformers → handlers}/snackbar.ts +5 -5
- package/src/codegen/targets/react/component/{transformers → handlers}/switch.ts +5 -5
- package/src/codegen/targets/react/component/{transformers → handlers}/tabs.ts +15 -15
- package/src/codegen/targets/react/component/{transformers → handlers}/text-button.ts +7 -13
- package/src/codegen/targets/react/component/{transformers → handlers}/text-field.ts +9 -9
- package/src/codegen/targets/react/component/{transformers → handlers}/toggle-button.ts +7 -11
- package/src/codegen/targets/react/component/index.ts +79 -75
- package/src/codegen/targets/react/frame.ts +8 -8
- package/src/codegen/targets/react/icon.ts +50 -0
- package/src/codegen/targets/react/index.ts +1 -1
- package/src/codegen/targets/react/instance.ts +19 -50
- package/src/codegen/targets/react/pipeline.ts +124 -0
- package/src/codegen/targets/react/props.ts +95 -73
- package/src/codegen/targets/react/shape.ts +5 -5
- package/src/codegen/targets/react/text.ts +6 -6
- package/src/codegen/targets/react/value-resolver.ts +32 -0
- package/src/entities/icon.repository.ts +2 -2
- package/src/entities/icon.service.ts +9 -20
- package/src/entities/style.service.ts +5 -17
- package/src/entities/variable.service.ts +36 -68
- package/src/utils/figma-variable.ts +39 -3
- package/src/codegen/core/component.types.ts +0 -29
- package/src/codegen/targets/figma/context.ts +0 -139
- package/src/codegen/targets/react/component/transformers/avatar-stack.ts +0 -29
- package/src/codegen/targets/react/component/transformers/badge.ts +0 -21
- package/src/codegen/targets/react/component/transformers/fab.ts +0 -18
- package/src/codegen/targets/react/component/transformers/skeleton.ts +0 -51
- package/src/codegen/targets/react/context.ts +0 -176
- /package/src/codegen/core/{element.ts → element-transformer.ts} +0 -0
|
@@ -0,0 +1,1828 @@
|
|
|
1
|
+
import * as FigmaRestSpec from '@figma/rest-api-spec';
|
|
2
|
+
import { ComponentPropertyType, InstanceSwapPreferredValue, LocalVariable, VariableAlias as VariableAlias$1, VariableScope, RGBA } from '@figma/rest-api-spec';
|
|
3
|
+
import * as ________ from '../index.js';
|
|
4
|
+
import * as index_d_ts from './targets/react/index.js';
|
|
5
|
+
export { index_d_ts as react };
|
|
6
|
+
|
|
7
|
+
type NormalizedIsLayerTrait = Pick<FigmaRestSpec.IsLayerTrait, "type" | "id" | "name" | "boundVariables">;
|
|
8
|
+
type NormalizedCornerTrait = Pick<FigmaRestSpec.CornerTrait, "cornerRadius" | "rectangleCornerRadii">;
|
|
9
|
+
type NormalizedHasChildrenTrait = {
|
|
10
|
+
children: NormalizedSceneNode[];
|
|
11
|
+
};
|
|
12
|
+
type NormalizedHasLayoutTrait = Pick<FigmaRestSpec.HasLayoutTrait, "layoutAlign" | "layoutGrow" | "absoluteBoundingBox" | "relativeTransform" | "layoutPositioning" | "layoutSizingHorizontal" | "layoutSizingVertical" | "minHeight" | "minWidth" | "maxHeight" | "maxWidth">;
|
|
13
|
+
type NormalizedHasGeometryTrait = Pick<FigmaRestSpec.HasGeometryTrait, "fills" | "strokes" | "strokeWeight" | "styles">;
|
|
14
|
+
type NormalizedHasFramePropertiesTrait = Pick<FigmaRestSpec.HasFramePropertiesTrait, "layoutMode" | "layoutWrap" | "paddingLeft" | "paddingRight" | "paddingTop" | "paddingBottom" | "primaryAxisAlignItems" | "primaryAxisSizingMode" | "counterAxisAlignItems" | "counterAxisSizingMode" | "itemSpacing" | "counterAxisSpacing">;
|
|
15
|
+
interface NormalizedTextSegment {
|
|
16
|
+
characters: string;
|
|
17
|
+
start: number;
|
|
18
|
+
end: number;
|
|
19
|
+
style: {
|
|
20
|
+
fontFamily?: string;
|
|
21
|
+
fontWeight?: number;
|
|
22
|
+
fontSize?: number;
|
|
23
|
+
italic?: boolean;
|
|
24
|
+
textDecoration?: string;
|
|
25
|
+
letterSpacing?: number;
|
|
26
|
+
lineHeight?: number | {
|
|
27
|
+
unit: string;
|
|
28
|
+
value: number;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
type NormalizedTypePropertiesTrait = Pick<FigmaRestSpec.TypePropertiesTrait, "style" | "characters"> & {
|
|
33
|
+
segments: NormalizedTextSegment[];
|
|
34
|
+
textStyleKey?: string;
|
|
35
|
+
};
|
|
36
|
+
type NormalizedDefaultShapeTrait = NormalizedIsLayerTrait & NormalizedHasLayoutTrait & NormalizedHasGeometryTrait;
|
|
37
|
+
type NormalizedFrameTrait = NormalizedIsLayerTrait & NormalizedHasLayoutTrait & NormalizedHasGeometryTrait & NormalizedHasChildrenTrait & NormalizedCornerTrait & NormalizedHasFramePropertiesTrait;
|
|
38
|
+
interface NormalizedFrameNode extends NormalizedFrameTrait {
|
|
39
|
+
type: FigmaRestSpec.FrameNode["type"];
|
|
40
|
+
}
|
|
41
|
+
interface NormalizedRectangleNode extends NormalizedDefaultShapeTrait, NormalizedCornerTrait {
|
|
42
|
+
type: FigmaRestSpec.RectangleNode["type"];
|
|
43
|
+
}
|
|
44
|
+
interface NormalizedTextNode extends NormalizedDefaultShapeTrait, NormalizedTypePropertiesTrait {
|
|
45
|
+
type: FigmaRestSpec.TextNode["type"];
|
|
46
|
+
}
|
|
47
|
+
interface NormalizedComponentNode extends NormalizedFrameTrait {
|
|
48
|
+
type: FigmaRestSpec.ComponentNode["type"];
|
|
49
|
+
}
|
|
50
|
+
interface NormalizedInstanceNode extends NormalizedFrameTrait {
|
|
51
|
+
type: FigmaRestSpec.InstanceNode["type"];
|
|
52
|
+
componentProperties: {
|
|
53
|
+
[key: string]: FigmaRestSpec.ComponentProperty & {
|
|
54
|
+
componentKey?: string;
|
|
55
|
+
componentSetKey?: string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
componentKey: string;
|
|
59
|
+
componentSetKey?: string;
|
|
60
|
+
children: NormalizedSceneNode[];
|
|
61
|
+
}
|
|
62
|
+
interface NormalizedVectorNode extends NormalizedDefaultShapeTrait, NormalizedCornerTrait {
|
|
63
|
+
type: FigmaRestSpec.VectorNode["type"];
|
|
64
|
+
}
|
|
65
|
+
interface NormalizedBooleanOperationNode extends NormalizedIsLayerTrait, NormalizedHasChildrenTrait, NormalizedHasLayoutTrait, NormalizedHasGeometryTrait {
|
|
66
|
+
type: FigmaRestSpec.BooleanOperationNode["type"];
|
|
67
|
+
}
|
|
68
|
+
interface NormalizedUnhandledNode {
|
|
69
|
+
type: "UNHANDLED";
|
|
70
|
+
id: string;
|
|
71
|
+
original: FigmaRestSpec.Node | SceneNode;
|
|
72
|
+
}
|
|
73
|
+
type NormalizedSceneNode = NormalizedFrameNode | NormalizedRectangleNode | NormalizedTextNode | NormalizedComponentNode | NormalizedInstanceNode | NormalizedVectorNode | NormalizedBooleanOperationNode | NormalizedUnhandledNode;
|
|
74
|
+
|
|
75
|
+
interface ElementNode {
|
|
76
|
+
__IS_JSX_ELEMENT_NODE: true;
|
|
77
|
+
tag: string;
|
|
78
|
+
props: Record<string, string | number | boolean | ElementNode | object | undefined>;
|
|
79
|
+
children: (ElementNode | string)[];
|
|
80
|
+
comment?: string;
|
|
81
|
+
source?: string;
|
|
82
|
+
}
|
|
83
|
+
declare function createElement(tag: string, props?: Record<string, string | number | boolean | object | undefined>, children?: ElementNode | string | undefined | (ElementNode | string | undefined)[], comment?: string): ElementNode;
|
|
84
|
+
declare function cloneElement(element: ElementNode, props?: Record<string, string | number | boolean | object | undefined>, children?: ElementNode | string | undefined | (ElementNode | string | undefined)[]): {
|
|
85
|
+
props: {
|
|
86
|
+
[x: string]: string | number | boolean | object | ElementNode | undefined;
|
|
87
|
+
};
|
|
88
|
+
children: (string | ElementNode)[];
|
|
89
|
+
__IS_JSX_ELEMENT_NODE: true;
|
|
90
|
+
tag: string;
|
|
91
|
+
comment?: string;
|
|
92
|
+
source?: string;
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
type ElementTransformer<T extends NormalizedSceneNode> = (node: T, traverse: (node: NormalizedSceneNode) => ElementNode | undefined) => ElementNode | undefined;
|
|
96
|
+
declare function defineElementTransformer<T extends NormalizedSceneNode>(transformer: ElementTransformer<T>): ElementTransformer<T>;
|
|
97
|
+
|
|
98
|
+
interface CodeGeneratorDeps {
|
|
99
|
+
frameTransformer: ElementTransformer<NormalizedFrameNode | NormalizedComponentNode | NormalizedInstanceNode>;
|
|
100
|
+
textTransformer: ElementTransformer<NormalizedTextNode>;
|
|
101
|
+
rectangleTransformer: ElementTransformer<NormalizedRectangleNode>;
|
|
102
|
+
instanceTransformer: ElementTransformer<NormalizedInstanceNode>;
|
|
103
|
+
vectorTransformer: ElementTransformer<NormalizedVectorNode>;
|
|
104
|
+
booleanOperationTransformer: ElementTransformer<NormalizedBooleanOperationNode>;
|
|
105
|
+
shouldInferAutoLayout: boolean;
|
|
106
|
+
}
|
|
107
|
+
declare function createCodeGenerator({ frameTransformer, textTransformer, rectangleTransformer, instanceTransformer, vectorTransformer, booleanOperationTransformer, shouldInferAutoLayout, }: CodeGeneratorDeps): {
|
|
108
|
+
generateJsxTree: (node: NormalizedSceneNode) => ElementNode | undefined;
|
|
109
|
+
generateCode: (node: NormalizedSceneNode, options: {
|
|
110
|
+
shouldPrintSource: boolean;
|
|
111
|
+
}) => string | undefined;
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
interface ComponentHandler<T extends NormalizedInstanceNode["componentProperties"] = NormalizedInstanceNode["componentProperties"]> {
|
|
115
|
+
key: string;
|
|
116
|
+
transform: (node: NormalizedInstanceNode & {
|
|
117
|
+
componentProperties: T;
|
|
118
|
+
}) => ElementNode;
|
|
119
|
+
}
|
|
120
|
+
declare function defineComponentHandler<T extends NormalizedInstanceNode["componentProperties"]>(key: string, transform: (node: NormalizedInstanceNode & {
|
|
121
|
+
componentProperties: T;
|
|
122
|
+
}) => ElementNode): ComponentHandler<T>;
|
|
123
|
+
|
|
124
|
+
interface ComponentPropertyDefinition {
|
|
125
|
+
type: ComponentPropertyType;
|
|
126
|
+
preferredValues?: InstanceSwapPreferredValue[];
|
|
127
|
+
variantOptions?: string[];
|
|
128
|
+
}
|
|
129
|
+
type InferComponentPropertyType<T extends ComponentPropertyDefinition> = T["type"] extends "TEXT" ? string : T["type"] extends "BOOLEAN" ? boolean : T["type"] extends "INSTANCE_SWAP" ? string : T["type"] extends "VARIANT" ? T["variantOptions"] extends string[] ? T["variantOptions"][number] : never : never;
|
|
130
|
+
type InferComponentDefinition<T extends Record<string, ComponentPropertyDefinition>> = {
|
|
131
|
+
[K in keyof T]: {
|
|
132
|
+
type: T[K]["type"];
|
|
133
|
+
value: InferComponentPropertyType<T[K]>;
|
|
134
|
+
readonly boundVariables?: {
|
|
135
|
+
[field in VariableBindableComponentPropertyField]?: VariableAlias;
|
|
136
|
+
};
|
|
137
|
+
} & (T[K]["type"] extends "INSTANCE_SWAP" ? {
|
|
138
|
+
componentKey: string;
|
|
139
|
+
preferredValues: InstanceSwapPreferredValue[];
|
|
140
|
+
} : {});
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
type Variable = LocalVariable;
|
|
144
|
+
type VariableValue = Variable["valuesByMode"][string];
|
|
145
|
+
type VariableValueResolved = Exclude<VariableValue, VariableAlias$1>;
|
|
146
|
+
|
|
147
|
+
interface StyleService {
|
|
148
|
+
getSlug: (id: string) => string[] | undefined;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
interface VariableService {
|
|
152
|
+
getSlug: (id: string) => string[] | undefined;
|
|
153
|
+
resolveValue: (variable: Variable, mode: string) => VariableValueResolved;
|
|
154
|
+
infer: (value: VariableValueResolved, scope: VariableScope) => Variable | undefined;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
type PropsConverter<T extends Record<string, any> = Record<string, any>, R extends Record<string, any> = Record<string, any>> = (node: T) => R;
|
|
158
|
+
declare function definePropsConverter<T extends Record<string, any>, R extends Record<string, any>>(converter: PropsConverter<T, R>): PropsConverter<T, R>;
|
|
159
|
+
type Handlers<TTrait extends Record<string, VariableValueResolved>, TProps extends Record<string, any>, HandlerKeys extends keyof TProps = keyof TProps> = {
|
|
160
|
+
[K in HandlerKeys]: (node: TTrait) => TProps[K];
|
|
161
|
+
};
|
|
162
|
+
type Shorthands<TProps extends Record<string, any>, HandlerKeys extends keyof TProps> = Record<Exclude<keyof TProps, HandlerKeys>, HandlerKeys[]>;
|
|
163
|
+
interface CreatePropsConverterConfig<TTrait extends Record<string, any>, TProps extends Record<string, any>, HandlerKeys extends keyof TProps> {
|
|
164
|
+
_types: {
|
|
165
|
+
trait: TTrait;
|
|
166
|
+
props: TProps;
|
|
167
|
+
};
|
|
168
|
+
handlers: Handlers<TTrait, TProps, HandlerKeys>;
|
|
169
|
+
shorthands?: Shorthands<TProps, HandlerKeys>;
|
|
170
|
+
defaults?: Partial<TProps>;
|
|
171
|
+
}
|
|
172
|
+
declare function createPropsConverter<TTrait extends Record<string, any>, TProps extends Record<string, any>, HandlerKeys extends keyof TProps>({ handlers, shorthands, defaults, }: CreatePropsConverterConfig<TTrait, TProps, HandlerKeys>): PropsConverter<TTrait, TProps>;
|
|
173
|
+
|
|
174
|
+
interface ValueResolver<TColor, TDimension, TFontDimension, TFontWeight> {
|
|
175
|
+
getFormattedValue: {
|
|
176
|
+
frameFill: (node: NormalizedHasGeometryTrait & NormalizedIsLayerTrait) => string | TColor | undefined;
|
|
177
|
+
shapeFill: (node: NormalizedHasGeometryTrait & NormalizedIsLayerTrait) => string | TColor | undefined;
|
|
178
|
+
textFill: (node: NormalizedHasGeometryTrait & NormalizedIsLayerTrait) => string | TColor | undefined;
|
|
179
|
+
stroke: (node: NormalizedHasGeometryTrait & NormalizedIsLayerTrait) => string | TColor | undefined;
|
|
180
|
+
width: (node: NormalizedHasLayoutTrait & NormalizedIsLayerTrait) => string | TDimension | undefined;
|
|
181
|
+
height: (node: NormalizedHasLayoutTrait & NormalizedIsLayerTrait) => string | TDimension | undefined;
|
|
182
|
+
minWidth: (node: NormalizedHasLayoutTrait & NormalizedIsLayerTrait) => string | TDimension | undefined;
|
|
183
|
+
minHeight: (node: NormalizedHasLayoutTrait & NormalizedIsLayerTrait) => string | TDimension | undefined;
|
|
184
|
+
maxWidth: (node: NormalizedHasLayoutTrait & NormalizedIsLayerTrait) => string | TDimension | undefined;
|
|
185
|
+
maxHeight: (node: NormalizedHasLayoutTrait & NormalizedIsLayerTrait) => string | TDimension | undefined;
|
|
186
|
+
paddingLeft: (node: NormalizedHasFramePropertiesTrait & NormalizedIsLayerTrait) => string | TDimension | undefined;
|
|
187
|
+
paddingRight: (node: NormalizedHasFramePropertiesTrait & NormalizedIsLayerTrait) => string | TDimension | undefined;
|
|
188
|
+
paddingTop: (node: NormalizedHasFramePropertiesTrait & NormalizedIsLayerTrait) => string | TDimension | undefined;
|
|
189
|
+
paddingBottom: (node: NormalizedHasFramePropertiesTrait & NormalizedIsLayerTrait) => string | TDimension | undefined;
|
|
190
|
+
itemSpacing: (node: NormalizedHasFramePropertiesTrait & NormalizedIsLayerTrait) => string | TDimension | undefined;
|
|
191
|
+
topLeftRadius: (node: NormalizedCornerTrait & NormalizedIsLayerTrait) => string | TDimension | undefined;
|
|
192
|
+
topRightRadius: (node: NormalizedCornerTrait & NormalizedIsLayerTrait) => string | TDimension | undefined;
|
|
193
|
+
bottomLeftRadius: (node: NormalizedCornerTrait & NormalizedIsLayerTrait) => string | TDimension | undefined;
|
|
194
|
+
bottomRightRadius: (node: NormalizedCornerTrait & NormalizedIsLayerTrait) => string | TDimension | undefined;
|
|
195
|
+
fontSize: (node: NormalizedTypePropertiesTrait & NormalizedIsLayerTrait) => string | TFontDimension | undefined;
|
|
196
|
+
fontWeight: (node: NormalizedTypePropertiesTrait & NormalizedIsLayerTrait) => string | TFontWeight | undefined;
|
|
197
|
+
lineHeight: (node: NormalizedTypePropertiesTrait & NormalizedIsLayerTrait) => string | TFontDimension | undefined;
|
|
198
|
+
};
|
|
199
|
+
getTextStyleValue: (node: NormalizedTypePropertiesTrait & NormalizedIsLayerTrait) => string | undefined;
|
|
200
|
+
}
|
|
201
|
+
interface ValueResolverDeps<TColor, TDimension, TFontDimension, TFontWeight> {
|
|
202
|
+
variableService: VariableService;
|
|
203
|
+
variableNameFormatter: (props: {
|
|
204
|
+
slug: string[];
|
|
205
|
+
}) => string;
|
|
206
|
+
styleService: StyleService;
|
|
207
|
+
styleNameFormatter: (props: {
|
|
208
|
+
slug: string[];
|
|
209
|
+
}) => string;
|
|
210
|
+
rawValueFormatters: {
|
|
211
|
+
color: (value: RGBA) => string | TColor;
|
|
212
|
+
dimension: (value: number) => string | TDimension;
|
|
213
|
+
fontDimension: (value: number) => string | TFontDimension;
|
|
214
|
+
fontWeight: (value: number) => string | TFontWeight;
|
|
215
|
+
};
|
|
216
|
+
shouldInferVariableName: boolean;
|
|
217
|
+
}
|
|
218
|
+
declare function createValueResolver<TColor, TDimension, TFontDimension, TFontWeight>({ variableService, variableNameFormatter, styleService, styleNameFormatter, rawValueFormatters, shouldInferVariableName, }: ValueResolverDeps<TColor, TDimension, TFontDimension, TFontWeight>): ValueResolver<TColor, TDimension, TFontDimension, TFontWeight>;
|
|
219
|
+
|
|
220
|
+
interface LayoutProperties {
|
|
221
|
+
layoutMode?: "NONE" | "HORIZONTAL" | "VERTICAL";
|
|
222
|
+
primaryAxisSizingMode?: "FIXED" | "AUTO";
|
|
223
|
+
counterAxisSizingMode?: "FIXED" | "AUTO";
|
|
224
|
+
primaryAxisAlignItems?: "MIN" | "CENTER" | "MAX" | "SPACE_BETWEEN";
|
|
225
|
+
counterAxisAlignItems?: "MIN" | "CENTER" | "MAX";
|
|
226
|
+
paddingLeft?: number;
|
|
227
|
+
paddingRight?: number;
|
|
228
|
+
paddingTop?: number;
|
|
229
|
+
paddingBottom?: number;
|
|
230
|
+
itemSpacing?: number;
|
|
231
|
+
}
|
|
232
|
+
interface InferResult {
|
|
233
|
+
properties: LayoutProperties;
|
|
234
|
+
childProperties: {
|
|
235
|
+
[childId: string]: {
|
|
236
|
+
layoutAlign?: "MIN" | "STRETCH";
|
|
237
|
+
};
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
type LayoutNode = NormalizedIsLayerTrait & NormalizedHasFramePropertiesTrait & NormalizedHasChildrenTrait & NormalizedHasLayoutTrait;
|
|
241
|
+
declare function inferLayout(parentNode: LayoutNode): InferResult;
|
|
242
|
+
|
|
243
|
+
declare const metadata$v: {
|
|
244
|
+
"name": "🔵 [Template] Select Box Group",
|
|
245
|
+
"key": "a3d58bb8540600878742cdcf2608a4b3851667ec",
|
|
246
|
+
"componentPropertyDefinitions": {
|
|
247
|
+
"Control": {
|
|
248
|
+
"type": "VARIANT",
|
|
249
|
+
"variantOptions": [
|
|
250
|
+
"Checkbox",
|
|
251
|
+
"Radio"
|
|
252
|
+
]
|
|
253
|
+
},
|
|
254
|
+
"Item Count": {
|
|
255
|
+
"type": "VARIANT",
|
|
256
|
+
"variantOptions": [
|
|
257
|
+
"1",
|
|
258
|
+
"2",
|
|
259
|
+
"3",
|
|
260
|
+
"4",
|
|
261
|
+
"5",
|
|
262
|
+
"6"
|
|
263
|
+
]
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
};
|
|
267
|
+
|
|
268
|
+
declare const metadata$u: {
|
|
269
|
+
"name": "🟢 Action Button",
|
|
270
|
+
"key": "450ede9d0bf42fc6ef14345c77e6e407d6d5ee89",
|
|
271
|
+
"componentPropertyDefinitions": {
|
|
272
|
+
"Suffix Icon#5987:244": {
|
|
273
|
+
"type": "INSTANCE_SWAP",
|
|
274
|
+
"preferredValues": []
|
|
275
|
+
},
|
|
276
|
+
"Icon#7574:0": {
|
|
277
|
+
"type": "INSTANCE_SWAP",
|
|
278
|
+
"preferredValues": []
|
|
279
|
+
},
|
|
280
|
+
"Prefix Icon#5987:305": {
|
|
281
|
+
"type": "INSTANCE_SWAP",
|
|
282
|
+
"preferredValues": []
|
|
283
|
+
},
|
|
284
|
+
"Label#5987:61": {
|
|
285
|
+
"type": "TEXT"
|
|
286
|
+
},
|
|
287
|
+
"Size": {
|
|
288
|
+
"type": "VARIANT",
|
|
289
|
+
"variantOptions": [
|
|
290
|
+
"XSmall",
|
|
291
|
+
"Small",
|
|
292
|
+
"Medium",
|
|
293
|
+
"Large"
|
|
294
|
+
]
|
|
295
|
+
},
|
|
296
|
+
"Layout": {
|
|
297
|
+
"type": "VARIANT",
|
|
298
|
+
"variantOptions": [
|
|
299
|
+
"Text Only",
|
|
300
|
+
"Icon First",
|
|
301
|
+
"Icon Last",
|
|
302
|
+
"Icon Only"
|
|
303
|
+
]
|
|
304
|
+
},
|
|
305
|
+
"Variant": {
|
|
306
|
+
"type": "VARIANT",
|
|
307
|
+
"variantOptions": [
|
|
308
|
+
"Neutral Solid",
|
|
309
|
+
"Neutral Weak",
|
|
310
|
+
"Neutral Outline",
|
|
311
|
+
"Brand Solid",
|
|
312
|
+
"Brand Outline",
|
|
313
|
+
"Critical Solid"
|
|
314
|
+
]
|
|
315
|
+
},
|
|
316
|
+
"State": {
|
|
317
|
+
"type": "VARIANT",
|
|
318
|
+
"variantOptions": [
|
|
319
|
+
"Enabled",
|
|
320
|
+
"Pressed",
|
|
321
|
+
"Loading",
|
|
322
|
+
"Disabled"
|
|
323
|
+
]
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
};
|
|
327
|
+
|
|
328
|
+
declare const metadata$t: {
|
|
329
|
+
"name": "🟢 Action Chip",
|
|
330
|
+
"key": "3d21594ef116e94a9465d507447b858aea062575",
|
|
331
|
+
"componentPropertyDefinitions": {
|
|
332
|
+
"Icon#8714:0": {
|
|
333
|
+
"type": "INSTANCE_SWAP",
|
|
334
|
+
"preferredValues": []
|
|
335
|
+
},
|
|
336
|
+
"Prefix Icon#8711:0": {
|
|
337
|
+
"type": "INSTANCE_SWAP",
|
|
338
|
+
"preferredValues": [
|
|
339
|
+
{
|
|
340
|
+
"type": "COMPONENT_SET",
|
|
341
|
+
"key": "8ed05ef62a40f2dc034ee7eb6945bd0e63ad49aa"
|
|
342
|
+
}
|
|
343
|
+
]
|
|
344
|
+
},
|
|
345
|
+
"Suffix Icon#8711:3": {
|
|
346
|
+
"type": "INSTANCE_SWAP",
|
|
347
|
+
"preferredValues": []
|
|
348
|
+
},
|
|
349
|
+
"Label#7185:0": {
|
|
350
|
+
"type": "TEXT"
|
|
351
|
+
},
|
|
352
|
+
"Show Count#7185:42": {
|
|
353
|
+
"type": "BOOLEAN"
|
|
354
|
+
},
|
|
355
|
+
"Count#7185:21": {
|
|
356
|
+
"type": "TEXT"
|
|
357
|
+
},
|
|
358
|
+
"Size": {
|
|
359
|
+
"type": "VARIANT",
|
|
360
|
+
"variantOptions": [
|
|
361
|
+
"Medium",
|
|
362
|
+
"Small"
|
|
363
|
+
]
|
|
364
|
+
},
|
|
365
|
+
"Layout": {
|
|
366
|
+
"type": "VARIANT",
|
|
367
|
+
"variantOptions": [
|
|
368
|
+
"Text Only",
|
|
369
|
+
"Icon First",
|
|
370
|
+
"Icon Last",
|
|
371
|
+
"Icon Both",
|
|
372
|
+
"Icon Only"
|
|
373
|
+
]
|
|
374
|
+
},
|
|
375
|
+
"State": {
|
|
376
|
+
"type": "VARIANT",
|
|
377
|
+
"variantOptions": [
|
|
378
|
+
"Enabled",
|
|
379
|
+
"Pressed",
|
|
380
|
+
"Disabled"
|
|
381
|
+
]
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
};
|
|
385
|
+
|
|
386
|
+
declare const metadata$s: {
|
|
387
|
+
"name": "🟢 Action Sheet",
|
|
388
|
+
"key": "7c29b70b7e71618e1894c26f61f336de2730d76e",
|
|
389
|
+
"componentPropertyDefinitions": {
|
|
390
|
+
"Description#15641:70": {
|
|
391
|
+
"type": "TEXT"
|
|
392
|
+
},
|
|
393
|
+
"Title#15641:37": {
|
|
394
|
+
"type": "TEXT"
|
|
395
|
+
},
|
|
396
|
+
"OS Indicator (Figma Only)#15641:20": {
|
|
397
|
+
"type": "BOOLEAN"
|
|
398
|
+
},
|
|
399
|
+
"Type": {
|
|
400
|
+
"type": "VARIANT",
|
|
401
|
+
"variantOptions": [
|
|
402
|
+
"Normal",
|
|
403
|
+
"Destructive"
|
|
404
|
+
]
|
|
405
|
+
},
|
|
406
|
+
"Header": {
|
|
407
|
+
"type": "VARIANT",
|
|
408
|
+
"variantOptions": [
|
|
409
|
+
"Title Only",
|
|
410
|
+
"Description Only",
|
|
411
|
+
"Title With Description",
|
|
412
|
+
"None"
|
|
413
|
+
]
|
|
414
|
+
},
|
|
415
|
+
"Action Count": {
|
|
416
|
+
"type": "VARIANT",
|
|
417
|
+
"variantOptions": [
|
|
418
|
+
"1",
|
|
419
|
+
"2",
|
|
420
|
+
"3",
|
|
421
|
+
"4"
|
|
422
|
+
]
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
};
|
|
426
|
+
|
|
427
|
+
declare const metadata$r: {
|
|
428
|
+
"name": "🟢 Avatar",
|
|
429
|
+
"key": "d71644aeba2e29deda366798fdfe35977166d120",
|
|
430
|
+
"componentPropertyDefinitions": {
|
|
431
|
+
"Show Image#71850:57": {
|
|
432
|
+
"type": "BOOLEAN"
|
|
433
|
+
},
|
|
434
|
+
"Show Badge#1398:26": {
|
|
435
|
+
"type": "BOOLEAN"
|
|
436
|
+
},
|
|
437
|
+
"Size": {
|
|
438
|
+
"type": "VARIANT",
|
|
439
|
+
"variantOptions": [
|
|
440
|
+
"20",
|
|
441
|
+
"24",
|
|
442
|
+
"36",
|
|
443
|
+
"42",
|
|
444
|
+
"48",
|
|
445
|
+
"64",
|
|
446
|
+
"80",
|
|
447
|
+
"96"
|
|
448
|
+
]
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
};
|
|
452
|
+
|
|
453
|
+
declare const metadata$q: {
|
|
454
|
+
"name": "🟢 Avatar Stack",
|
|
455
|
+
"key": "019467fdad2192abb48699dcfb79e344df04b799",
|
|
456
|
+
"componentPropertyDefinitions": {
|
|
457
|
+
"Size": {
|
|
458
|
+
"type": "VARIANT",
|
|
459
|
+
"variantOptions": [
|
|
460
|
+
"20",
|
|
461
|
+
"24",
|
|
462
|
+
"36",
|
|
463
|
+
"48",
|
|
464
|
+
"64"
|
|
465
|
+
]
|
|
466
|
+
},
|
|
467
|
+
"Item Count": {
|
|
468
|
+
"type": "VARIANT",
|
|
469
|
+
"variantOptions": [
|
|
470
|
+
"2",
|
|
471
|
+
"3",
|
|
472
|
+
"4",
|
|
473
|
+
"5"
|
|
474
|
+
]
|
|
475
|
+
},
|
|
476
|
+
"Top Item": {
|
|
477
|
+
"type": "VARIANT",
|
|
478
|
+
"variantOptions": [
|
|
479
|
+
"Last Item",
|
|
480
|
+
"First Item"
|
|
481
|
+
]
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
};
|
|
485
|
+
|
|
486
|
+
declare const metadata$p: {
|
|
487
|
+
"name": "🟢 Badge",
|
|
488
|
+
"key": "04609a35d47a1a0ef4904b3c25f79451892a85a1",
|
|
489
|
+
"componentPropertyDefinitions": {
|
|
490
|
+
"Label#1584:0": {
|
|
491
|
+
"type": "TEXT"
|
|
492
|
+
},
|
|
493
|
+
"Size": {
|
|
494
|
+
"type": "VARIANT",
|
|
495
|
+
"variantOptions": [
|
|
496
|
+
"Medium",
|
|
497
|
+
"Large"
|
|
498
|
+
]
|
|
499
|
+
},
|
|
500
|
+
"Tone": {
|
|
501
|
+
"type": "VARIANT",
|
|
502
|
+
"variantOptions": [
|
|
503
|
+
"Neutral",
|
|
504
|
+
"Brand",
|
|
505
|
+
"Informative",
|
|
506
|
+
"Positive",
|
|
507
|
+
"Critical"
|
|
508
|
+
]
|
|
509
|
+
},
|
|
510
|
+
"Variant": {
|
|
511
|
+
"type": "VARIANT",
|
|
512
|
+
"variantOptions": [
|
|
513
|
+
"Solid",
|
|
514
|
+
"Weak",
|
|
515
|
+
"Outline"
|
|
516
|
+
]
|
|
517
|
+
},
|
|
518
|
+
"Shape": {
|
|
519
|
+
"type": "VARIANT",
|
|
520
|
+
"variantOptions": [
|
|
521
|
+
"Rectangle",
|
|
522
|
+
"Pill"
|
|
523
|
+
]
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
};
|
|
527
|
+
|
|
528
|
+
declare const metadata$o: {
|
|
529
|
+
"name": "🟢 Callout",
|
|
530
|
+
"key": "ec46d38baac3c367c4a5ffa47a2110d51ba0a4fe",
|
|
531
|
+
"componentPropertyDefinitions": {
|
|
532
|
+
"Show Icon#12598:229": {
|
|
533
|
+
"type": "BOOLEAN"
|
|
534
|
+
},
|
|
535
|
+
"Icon#12598:210": {
|
|
536
|
+
"type": "INSTANCE_SWAP",
|
|
537
|
+
"preferredValues": [
|
|
538
|
+
{
|
|
539
|
+
"type": "COMPONENT_SET",
|
|
540
|
+
"key": "f2c04b68b0bec4ec9145d832de45947030d3b653"
|
|
541
|
+
}
|
|
542
|
+
]
|
|
543
|
+
},
|
|
544
|
+
"Interaction": {
|
|
545
|
+
"type": "VARIANT",
|
|
546
|
+
"variantOptions": [
|
|
547
|
+
"Default",
|
|
548
|
+
"Actionable",
|
|
549
|
+
"Dismissible"
|
|
550
|
+
]
|
|
551
|
+
},
|
|
552
|
+
"Tone": {
|
|
553
|
+
"type": "VARIANT",
|
|
554
|
+
"variantOptions": [
|
|
555
|
+
"Neutral",
|
|
556
|
+
"Informative",
|
|
557
|
+
"Warning",
|
|
558
|
+
"Critical",
|
|
559
|
+
"Magic"
|
|
560
|
+
]
|
|
561
|
+
},
|
|
562
|
+
"State": {
|
|
563
|
+
"type": "VARIANT",
|
|
564
|
+
"variantOptions": [
|
|
565
|
+
"Enabled",
|
|
566
|
+
"Pressed"
|
|
567
|
+
]
|
|
568
|
+
},
|
|
569
|
+
"Show Title": {
|
|
570
|
+
"type": "VARIANT",
|
|
571
|
+
"variantOptions": [
|
|
572
|
+
"True",
|
|
573
|
+
"False"
|
|
574
|
+
]
|
|
575
|
+
},
|
|
576
|
+
"Show Link Label": {
|
|
577
|
+
"type": "VARIANT",
|
|
578
|
+
"variantOptions": [
|
|
579
|
+
"True",
|
|
580
|
+
"False"
|
|
581
|
+
]
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
};
|
|
585
|
+
|
|
586
|
+
declare const metadata$n: {
|
|
587
|
+
"name": "🟢 Checkbox",
|
|
588
|
+
"key": "94a2f6957a86f8ae3b8c7ca200dfcd5e29f6075b",
|
|
589
|
+
"componentPropertyDefinitions": {
|
|
590
|
+
"Label#49990:0": {
|
|
591
|
+
"type": "TEXT"
|
|
592
|
+
},
|
|
593
|
+
"Size": {
|
|
594
|
+
"type": "VARIANT",
|
|
595
|
+
"variantOptions": [
|
|
596
|
+
"Medium",
|
|
597
|
+
"Large"
|
|
598
|
+
]
|
|
599
|
+
},
|
|
600
|
+
"Shape": {
|
|
601
|
+
"type": "VARIANT",
|
|
602
|
+
"variantOptions": [
|
|
603
|
+
"Square",
|
|
604
|
+
"Ghost"
|
|
605
|
+
]
|
|
606
|
+
},
|
|
607
|
+
"Weight": {
|
|
608
|
+
"type": "VARIANT",
|
|
609
|
+
"variantOptions": [
|
|
610
|
+
"Default",
|
|
611
|
+
"Stronger"
|
|
612
|
+
]
|
|
613
|
+
},
|
|
614
|
+
"State": {
|
|
615
|
+
"type": "VARIANT",
|
|
616
|
+
"variantOptions": [
|
|
617
|
+
"Enabled",
|
|
618
|
+
"Pressed",
|
|
619
|
+
"Selected",
|
|
620
|
+
"Selected-Pressed",
|
|
621
|
+
"Indeterminate",
|
|
622
|
+
"Indeterminate-Pressed",
|
|
623
|
+
"Disabled",
|
|
624
|
+
"Disabled-Selected",
|
|
625
|
+
"Disabled-Indeterminate"
|
|
626
|
+
]
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
};
|
|
630
|
+
|
|
631
|
+
declare const metadata$m: {
|
|
632
|
+
"name": "🟢 Chip Tablist",
|
|
633
|
+
"key": "d098159beacf7713e9116f0ef38d8a20f64ec84f",
|
|
634
|
+
"componentPropertyDefinitions": {
|
|
635
|
+
"Tab Count": {
|
|
636
|
+
"type": "VARIANT",
|
|
637
|
+
"variantOptions": [
|
|
638
|
+
"2",
|
|
639
|
+
"3",
|
|
640
|
+
"4",
|
|
641
|
+
"5",
|
|
642
|
+
"6",
|
|
643
|
+
"Max"
|
|
644
|
+
]
|
|
645
|
+
},
|
|
646
|
+
"Variant": {
|
|
647
|
+
"type": "VARIANT",
|
|
648
|
+
"variantOptions": [
|
|
649
|
+
"Neutral Solid",
|
|
650
|
+
"Brand Solid"
|
|
651
|
+
]
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
};
|
|
655
|
+
|
|
656
|
+
declare const metadata$l: {
|
|
657
|
+
"name": "🟢 Control Chip",
|
|
658
|
+
"key": "5780d56fc2f9bc4bbd6bc3db93949d8a8b7b7563",
|
|
659
|
+
"componentPropertyDefinitions": {
|
|
660
|
+
"Suffix Icon#8722:82": {
|
|
661
|
+
"type": "INSTANCE_SWAP",
|
|
662
|
+
"preferredValues": []
|
|
663
|
+
},
|
|
664
|
+
"Label#7185:0": {
|
|
665
|
+
"type": "TEXT"
|
|
666
|
+
},
|
|
667
|
+
"Show Count#7185:42": {
|
|
668
|
+
"type": "BOOLEAN"
|
|
669
|
+
},
|
|
670
|
+
"Icon#8722:41": {
|
|
671
|
+
"type": "INSTANCE_SWAP",
|
|
672
|
+
"preferredValues": []
|
|
673
|
+
},
|
|
674
|
+
"Prefix Icon#8722:0": {
|
|
675
|
+
"type": "INSTANCE_SWAP",
|
|
676
|
+
"preferredValues": [
|
|
677
|
+
{
|
|
678
|
+
"type": "COMPONENT_SET",
|
|
679
|
+
"key": "8ed05ef62a40f2dc034ee7eb6945bd0e63ad49aa"
|
|
680
|
+
}
|
|
681
|
+
]
|
|
682
|
+
},
|
|
683
|
+
"Count#7185:21": {
|
|
684
|
+
"type": "TEXT"
|
|
685
|
+
},
|
|
686
|
+
"Size": {
|
|
687
|
+
"type": "VARIANT",
|
|
688
|
+
"variantOptions": [
|
|
689
|
+
"Medium",
|
|
690
|
+
"Small"
|
|
691
|
+
]
|
|
692
|
+
},
|
|
693
|
+
"Layout": {
|
|
694
|
+
"type": "VARIANT",
|
|
695
|
+
"variantOptions": [
|
|
696
|
+
"Text Only",
|
|
697
|
+
"Icon First",
|
|
698
|
+
"Icon Last",
|
|
699
|
+
"Icon Both",
|
|
700
|
+
"Icon Only"
|
|
701
|
+
]
|
|
702
|
+
},
|
|
703
|
+
"State": {
|
|
704
|
+
"type": "VARIANT",
|
|
705
|
+
"variantOptions": [
|
|
706
|
+
"Enabled",
|
|
707
|
+
"Pressed",
|
|
708
|
+
"Selected",
|
|
709
|
+
"Selected-Pressed",
|
|
710
|
+
"Disabled",
|
|
711
|
+
"Disabled-Selected"
|
|
712
|
+
]
|
|
713
|
+
}
|
|
714
|
+
}
|
|
715
|
+
};
|
|
716
|
+
|
|
717
|
+
declare const metadata$k: {
|
|
718
|
+
"name": "🟢 Error State",
|
|
719
|
+
"key": "39b4ecd0b5b4d35f4dc5791765ca04aa062a5172",
|
|
720
|
+
"componentPropertyDefinitions": {
|
|
721
|
+
"Secondary Action Label#17042:0": {
|
|
722
|
+
"type": "TEXT"
|
|
723
|
+
},
|
|
724
|
+
"Title#16237:0": {
|
|
725
|
+
"type": "TEXT"
|
|
726
|
+
},
|
|
727
|
+
"Description#16237:5": {
|
|
728
|
+
"type": "TEXT"
|
|
729
|
+
},
|
|
730
|
+
"Show Buttons#9080:5": {
|
|
731
|
+
"type": "BOOLEAN"
|
|
732
|
+
},
|
|
733
|
+
"Variant": {
|
|
734
|
+
"type": "VARIANT",
|
|
735
|
+
"variantOptions": [
|
|
736
|
+
"Default",
|
|
737
|
+
"Basement"
|
|
738
|
+
]
|
|
739
|
+
},
|
|
740
|
+
"Layout": {
|
|
741
|
+
"type": "VARIANT",
|
|
742
|
+
"variantOptions": [
|
|
743
|
+
"With Title",
|
|
744
|
+
"Description Only"
|
|
745
|
+
]
|
|
746
|
+
}
|
|
747
|
+
}
|
|
748
|
+
};
|
|
749
|
+
|
|
750
|
+
declare const metadata$j: {
|
|
751
|
+
"name": "🟢 Extended Action Sheet",
|
|
752
|
+
"key": "cd4cf8a850bf3de87b79080b36b421a649bf3fcb",
|
|
753
|
+
"componentPropertyDefinitions": {
|
|
754
|
+
"Show Title#17043:12": {
|
|
755
|
+
"type": "BOOLEAN"
|
|
756
|
+
},
|
|
757
|
+
"OS Indicator (Figma Only)#81637:129": {
|
|
758
|
+
"type": "BOOLEAN"
|
|
759
|
+
},
|
|
760
|
+
"Description#14599:13": {
|
|
761
|
+
"type": "TEXT"
|
|
762
|
+
},
|
|
763
|
+
"Title#14599:0": {
|
|
764
|
+
"type": "TEXT"
|
|
765
|
+
},
|
|
766
|
+
"Type": {
|
|
767
|
+
"type": "VARIANT",
|
|
768
|
+
"variantOptions": [
|
|
769
|
+
"Normal",
|
|
770
|
+
"Destructive"
|
|
771
|
+
]
|
|
772
|
+
},
|
|
773
|
+
"Action Group Count": {
|
|
774
|
+
"type": "VARIANT",
|
|
775
|
+
"variantOptions": [
|
|
776
|
+
"1",
|
|
777
|
+
"2"
|
|
778
|
+
]
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
};
|
|
782
|
+
|
|
783
|
+
declare const metadata$i: {
|
|
784
|
+
"name": "🟢 Extended Floating Action Button",
|
|
785
|
+
"key": "032f3fddaad0aa3fa5a7f680768c1f5d02fb463f",
|
|
786
|
+
"componentPropertyDefinitions": {
|
|
787
|
+
"Label#28936:0": {
|
|
788
|
+
"type": "TEXT"
|
|
789
|
+
},
|
|
790
|
+
"Icon#28796:0": {
|
|
791
|
+
"type": "INSTANCE_SWAP",
|
|
792
|
+
"preferredValues": []
|
|
793
|
+
},
|
|
794
|
+
"Size": {
|
|
795
|
+
"type": "VARIANT",
|
|
796
|
+
"variantOptions": [
|
|
797
|
+
"Small",
|
|
798
|
+
"Medium"
|
|
799
|
+
]
|
|
800
|
+
},
|
|
801
|
+
"Variant": {
|
|
802
|
+
"type": "VARIANT",
|
|
803
|
+
"variantOptions": [
|
|
804
|
+
"Neutral Solid",
|
|
805
|
+
"Layer Floating"
|
|
806
|
+
]
|
|
807
|
+
},
|
|
808
|
+
"State": {
|
|
809
|
+
"type": "VARIANT",
|
|
810
|
+
"variantOptions": [
|
|
811
|
+
"Enabled",
|
|
812
|
+
"Pressed"
|
|
813
|
+
]
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
};
|
|
817
|
+
|
|
818
|
+
declare const metadata$h: {
|
|
819
|
+
"name": "🟢 Floating Action Button",
|
|
820
|
+
"key": "1974b94703032585bb9e20bd54743e01094b965c",
|
|
821
|
+
"componentPropertyDefinitions": {
|
|
822
|
+
"Icon#28796:0": {
|
|
823
|
+
"type": "INSTANCE_SWAP",
|
|
824
|
+
"preferredValues": []
|
|
825
|
+
},
|
|
826
|
+
"State": {
|
|
827
|
+
"type": "VARIANT",
|
|
828
|
+
"variantOptions": [
|
|
829
|
+
"Enabled",
|
|
830
|
+
"Pressed"
|
|
831
|
+
]
|
|
832
|
+
}
|
|
833
|
+
}
|
|
834
|
+
};
|
|
835
|
+
|
|
836
|
+
declare const metadata$g: {
|
|
837
|
+
"name": "🟢 Help Bubble",
|
|
838
|
+
"key": "804b327c091278a40d5891939eaed90bb2889659",
|
|
839
|
+
"componentPropertyDefinitions": {
|
|
840
|
+
"Title#62535:0": {
|
|
841
|
+
"type": "TEXT"
|
|
842
|
+
},
|
|
843
|
+
"Description#62535:98": {
|
|
844
|
+
"type": "TEXT"
|
|
845
|
+
},
|
|
846
|
+
"Show Description#62499:0": {
|
|
847
|
+
"type": "BOOLEAN"
|
|
848
|
+
},
|
|
849
|
+
"Placement": {
|
|
850
|
+
"type": "VARIANT",
|
|
851
|
+
"variantOptions": [
|
|
852
|
+
"Right-Top",
|
|
853
|
+
"Right-Center",
|
|
854
|
+
"Right-Bottom",
|
|
855
|
+
"Left-Top",
|
|
856
|
+
"Left-Center",
|
|
857
|
+
"Left-Bottom",
|
|
858
|
+
"Bottom-Left",
|
|
859
|
+
"Bottom-Center",
|
|
860
|
+
"Bottom-Right",
|
|
861
|
+
"Top-Left",
|
|
862
|
+
"Top-Center",
|
|
863
|
+
"Top-Right"
|
|
864
|
+
]
|
|
865
|
+
},
|
|
866
|
+
"Show Close Button": {
|
|
867
|
+
"type": "VARIANT",
|
|
868
|
+
"variantOptions": [
|
|
869
|
+
"True",
|
|
870
|
+
"False"
|
|
871
|
+
]
|
|
872
|
+
}
|
|
873
|
+
}
|
|
874
|
+
};
|
|
875
|
+
|
|
876
|
+
declare const metadata$f: {
|
|
877
|
+
"name": "🟢 Identity Placeholder",
|
|
878
|
+
"key": "808206c07408aa1056ec85a55925e9844e9265c2",
|
|
879
|
+
"componentPropertyDefinitions": {
|
|
880
|
+
"Identity": {
|
|
881
|
+
"type": "VARIANT",
|
|
882
|
+
"variantOptions": [
|
|
883
|
+
"Person",
|
|
884
|
+
"Business"
|
|
885
|
+
]
|
|
886
|
+
}
|
|
887
|
+
}
|
|
888
|
+
};
|
|
889
|
+
|
|
890
|
+
declare const metadata$e: {
|
|
891
|
+
"name": "🟢 Inline Banner",
|
|
892
|
+
"key": "ce587d0f21754af05240cb32a4880227cb0ea1e1",
|
|
893
|
+
"componentPropertyDefinitions": {
|
|
894
|
+
"Show Icon#11840:27": {
|
|
895
|
+
"type": "BOOLEAN"
|
|
896
|
+
},
|
|
897
|
+
"Link Label#1547:81": {
|
|
898
|
+
"type": "TEXT"
|
|
899
|
+
},
|
|
900
|
+
"Interaction": {
|
|
901
|
+
"type": "VARIANT",
|
|
902
|
+
"variantOptions": [
|
|
903
|
+
"Default",
|
|
904
|
+
"Link",
|
|
905
|
+
"Actionable",
|
|
906
|
+
"Dismissible"
|
|
907
|
+
]
|
|
908
|
+
},
|
|
909
|
+
"Variant": {
|
|
910
|
+
"type": "VARIANT",
|
|
911
|
+
"variantOptions": [
|
|
912
|
+
"Neutral Weak",
|
|
913
|
+
"Informative Weak",
|
|
914
|
+
"Positive Weak",
|
|
915
|
+
"Warning Solid",
|
|
916
|
+
"Warning Weak",
|
|
917
|
+
"Critical Solid",
|
|
918
|
+
"Critical Weak"
|
|
919
|
+
]
|
|
920
|
+
},
|
|
921
|
+
"Show Title": {
|
|
922
|
+
"type": "VARIANT",
|
|
923
|
+
"variantOptions": [
|
|
924
|
+
"True",
|
|
925
|
+
"False"
|
|
926
|
+
]
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
};
|
|
930
|
+
|
|
931
|
+
declare const metadata$d: {
|
|
932
|
+
"name": "🟢 Manner Temp Badge",
|
|
933
|
+
"key": "ac5331cec7a2c75b671df5b85ef247dfd820dd2f",
|
|
934
|
+
"componentPropertyDefinitions": {
|
|
935
|
+
"State": {
|
|
936
|
+
"type": "VARIANT",
|
|
937
|
+
"variantOptions": [
|
|
938
|
+
"L1 (~29.9)",
|
|
939
|
+
"L2 (30.0~36.2)",
|
|
940
|
+
"L3 (36.3~37.5)",
|
|
941
|
+
"L4 (37.6~41.9)",
|
|
942
|
+
"L5 (42~51.9)",
|
|
943
|
+
"L6 (52~)"
|
|
944
|
+
]
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
};
|
|
948
|
+
|
|
949
|
+
declare const metadata$c: {
|
|
950
|
+
"name": "🟢 Multiline Text Field",
|
|
951
|
+
"key": "88b2399c930c85f9ce2972163a078bc684b84bbe",
|
|
952
|
+
"componentPropertyDefinitions": {
|
|
953
|
+
"Indicator#15327:286": {
|
|
954
|
+
"type": "TEXT"
|
|
955
|
+
},
|
|
956
|
+
"Character Count#15327:360": {
|
|
957
|
+
"type": "TEXT"
|
|
958
|
+
},
|
|
959
|
+
"Max Character Count#15327:175": {
|
|
960
|
+
"type": "TEXT"
|
|
961
|
+
},
|
|
962
|
+
"Label#15327:323": {
|
|
963
|
+
"type": "TEXT"
|
|
964
|
+
},
|
|
965
|
+
"Filled Text#1304:0": {
|
|
966
|
+
"type": "TEXT"
|
|
967
|
+
},
|
|
968
|
+
"Show Character count#958:75": {
|
|
969
|
+
"type": "BOOLEAN"
|
|
970
|
+
},
|
|
971
|
+
"Show Footer#958:25": {
|
|
972
|
+
"type": "BOOLEAN"
|
|
973
|
+
},
|
|
974
|
+
"Show Description#958:50": {
|
|
975
|
+
"type": "BOOLEAN"
|
|
976
|
+
},
|
|
977
|
+
"Description#15327:212": {
|
|
978
|
+
"type": "TEXT"
|
|
979
|
+
},
|
|
980
|
+
"Show Indicator#1259:0": {
|
|
981
|
+
"type": "BOOLEAN"
|
|
982
|
+
},
|
|
983
|
+
"Placeholder#958:0": {
|
|
984
|
+
"type": "TEXT"
|
|
985
|
+
},
|
|
986
|
+
"Show Header#870:0": {
|
|
987
|
+
"type": "BOOLEAN"
|
|
988
|
+
},
|
|
989
|
+
"Size": {
|
|
990
|
+
"type": "VARIANT",
|
|
991
|
+
"variantOptions": [
|
|
992
|
+
"Medium",
|
|
993
|
+
"Large",
|
|
994
|
+
"XLarge"
|
|
995
|
+
]
|
|
996
|
+
},
|
|
997
|
+
"State": {
|
|
998
|
+
"type": "VARIANT",
|
|
999
|
+
"variantOptions": [
|
|
1000
|
+
"Enabled",
|
|
1001
|
+
"Focused",
|
|
1002
|
+
"Invalid",
|
|
1003
|
+
"Invalid-Focused",
|
|
1004
|
+
"Disabled",
|
|
1005
|
+
"Read Only"
|
|
1006
|
+
]
|
|
1007
|
+
},
|
|
1008
|
+
"Filled": {
|
|
1009
|
+
"type": "VARIANT",
|
|
1010
|
+
"variantOptions": [
|
|
1011
|
+
"True",
|
|
1012
|
+
"False"
|
|
1013
|
+
]
|
|
1014
|
+
}
|
|
1015
|
+
}
|
|
1016
|
+
};
|
|
1017
|
+
|
|
1018
|
+
declare const metadata$b: {
|
|
1019
|
+
"name": "🟢 Progress Circle",
|
|
1020
|
+
"key": "6e6779a372cab2485a0e25529bc4dbc9932a7346",
|
|
1021
|
+
"componentPropertyDefinitions": {
|
|
1022
|
+
"Size": {
|
|
1023
|
+
"type": "VARIANT",
|
|
1024
|
+
"variantOptions": [
|
|
1025
|
+
"24",
|
|
1026
|
+
"40"
|
|
1027
|
+
]
|
|
1028
|
+
},
|
|
1029
|
+
"Tone": {
|
|
1030
|
+
"type": "VARIANT",
|
|
1031
|
+
"variantOptions": [
|
|
1032
|
+
"Neutral",
|
|
1033
|
+
"Brand",
|
|
1034
|
+
"Static White"
|
|
1035
|
+
]
|
|
1036
|
+
},
|
|
1037
|
+
"Value": {
|
|
1038
|
+
"type": "VARIANT",
|
|
1039
|
+
"variantOptions": [
|
|
1040
|
+
"Indeterminate",
|
|
1041
|
+
"0%",
|
|
1042
|
+
"25%",
|
|
1043
|
+
"75%",
|
|
1044
|
+
"100%"
|
|
1045
|
+
]
|
|
1046
|
+
}
|
|
1047
|
+
}
|
|
1048
|
+
};
|
|
1049
|
+
|
|
1050
|
+
declare const metadata$a: {
|
|
1051
|
+
"name": "🟢 Reaction Button",
|
|
1052
|
+
"key": "ec43e4e881f7048e95601f8b58c01a0905a174e0",
|
|
1053
|
+
"componentPropertyDefinitions": {
|
|
1054
|
+
"Icon#12379:0": {
|
|
1055
|
+
"type": "INSTANCE_SWAP",
|
|
1056
|
+
"preferredValues": []
|
|
1057
|
+
},
|
|
1058
|
+
"Show Count#6397:33": {
|
|
1059
|
+
"type": "BOOLEAN"
|
|
1060
|
+
},
|
|
1061
|
+
"Count#15816:0": {
|
|
1062
|
+
"type": "TEXT"
|
|
1063
|
+
},
|
|
1064
|
+
"Label#6397:0": {
|
|
1065
|
+
"type": "TEXT"
|
|
1066
|
+
},
|
|
1067
|
+
"Size": {
|
|
1068
|
+
"type": "VARIANT",
|
|
1069
|
+
"variantOptions": [
|
|
1070
|
+
"XSmall",
|
|
1071
|
+
"Small"
|
|
1072
|
+
]
|
|
1073
|
+
},
|
|
1074
|
+
"State": {
|
|
1075
|
+
"type": "VARIANT",
|
|
1076
|
+
"variantOptions": [
|
|
1077
|
+
"Enabled",
|
|
1078
|
+
"Pressed",
|
|
1079
|
+
"Loading",
|
|
1080
|
+
"Selected",
|
|
1081
|
+
"Selected-Pressed",
|
|
1082
|
+
"Selected-Loading",
|
|
1083
|
+
"Disabled",
|
|
1084
|
+
"Disabled-Selected"
|
|
1085
|
+
]
|
|
1086
|
+
}
|
|
1087
|
+
}
|
|
1088
|
+
};
|
|
1089
|
+
|
|
1090
|
+
declare const metadata$9: {
|
|
1091
|
+
"name": "🟢 Segmented Control",
|
|
1092
|
+
"key": "3ad7133ba52755867f42f9232375f75639e00d58",
|
|
1093
|
+
"componentPropertyDefinitions": {
|
|
1094
|
+
"Item Count": {
|
|
1095
|
+
"type": "VARIANT",
|
|
1096
|
+
"variantOptions": [
|
|
1097
|
+
"2",
|
|
1098
|
+
"3",
|
|
1099
|
+
"4"
|
|
1100
|
+
]
|
|
1101
|
+
},
|
|
1102
|
+
"Selected Item": {
|
|
1103
|
+
"type": "VARIANT",
|
|
1104
|
+
"variantOptions": [
|
|
1105
|
+
"1",
|
|
1106
|
+
"2",
|
|
1107
|
+
"3",
|
|
1108
|
+
"4"
|
|
1109
|
+
]
|
|
1110
|
+
}
|
|
1111
|
+
}
|
|
1112
|
+
};
|
|
1113
|
+
|
|
1114
|
+
declare const metadata$8: {
|
|
1115
|
+
"name": "🟢 Select Box",
|
|
1116
|
+
"key": "38722ffeb4c966256a709155e8ddac50c93d7c60",
|
|
1117
|
+
"componentPropertyDefinitions": {
|
|
1118
|
+
"Label#3635:0": {
|
|
1119
|
+
"type": "TEXT"
|
|
1120
|
+
},
|
|
1121
|
+
"Description #3033:5": {
|
|
1122
|
+
"type": "TEXT"
|
|
1123
|
+
},
|
|
1124
|
+
"Show Description#3033:0": {
|
|
1125
|
+
"type": "BOOLEAN"
|
|
1126
|
+
},
|
|
1127
|
+
"Control": {
|
|
1128
|
+
"type": "VARIANT",
|
|
1129
|
+
"variantOptions": [
|
|
1130
|
+
"Checkbox",
|
|
1131
|
+
"Radio"
|
|
1132
|
+
]
|
|
1133
|
+
},
|
|
1134
|
+
"State": {
|
|
1135
|
+
"type": "VARIANT",
|
|
1136
|
+
"variantOptions": [
|
|
1137
|
+
"Enabled",
|
|
1138
|
+
"Pressed",
|
|
1139
|
+
"Selected",
|
|
1140
|
+
"Selected-Pressed"
|
|
1141
|
+
]
|
|
1142
|
+
}
|
|
1143
|
+
}
|
|
1144
|
+
};
|
|
1145
|
+
|
|
1146
|
+
declare const metadata$7: {
|
|
1147
|
+
"name": "🟢 Skeleton",
|
|
1148
|
+
"key": "ef22c3288722fbfa64a5ab73df397ade88f8e05a",
|
|
1149
|
+
"componentPropertyDefinitions": {
|
|
1150
|
+
"Radius": {
|
|
1151
|
+
"type": "VARIANT",
|
|
1152
|
+
"variantOptions": [
|
|
1153
|
+
"0",
|
|
1154
|
+
"8",
|
|
1155
|
+
"16",
|
|
1156
|
+
"Full"
|
|
1157
|
+
]
|
|
1158
|
+
}
|
|
1159
|
+
}
|
|
1160
|
+
};
|
|
1161
|
+
|
|
1162
|
+
declare const metadata$6: {
|
|
1163
|
+
"name": "🟢 Snackbar",
|
|
1164
|
+
"key": "81b17fb8c7d731a19cf8d36a8605559d41414eca",
|
|
1165
|
+
"componentPropertyDefinitions": {
|
|
1166
|
+
"Action Button Label#1528:8": {
|
|
1167
|
+
"type": "TEXT"
|
|
1168
|
+
},
|
|
1169
|
+
"Message#1528:4": {
|
|
1170
|
+
"type": "TEXT"
|
|
1171
|
+
},
|
|
1172
|
+
"Show Action Button#1528:0": {
|
|
1173
|
+
"type": "BOOLEAN"
|
|
1174
|
+
},
|
|
1175
|
+
"Variant": {
|
|
1176
|
+
"type": "VARIANT",
|
|
1177
|
+
"variantOptions": [
|
|
1178
|
+
"Default",
|
|
1179
|
+
"Positive",
|
|
1180
|
+
"Critical"
|
|
1181
|
+
]
|
|
1182
|
+
}
|
|
1183
|
+
}
|
|
1184
|
+
};
|
|
1185
|
+
|
|
1186
|
+
declare const metadata$5: {
|
|
1187
|
+
"name": "🟢 Standard Navigation",
|
|
1188
|
+
"key": "c07bfe331cf214375fce9ad47cb6fdb459d1fb1b",
|
|
1189
|
+
"componentPropertyDefinitions": {
|
|
1190
|
+
"Title#28176:5": {
|
|
1191
|
+
"type": "BOOLEAN"
|
|
1192
|
+
},
|
|
1193
|
+
"Variant": {
|
|
1194
|
+
"type": "VARIANT",
|
|
1195
|
+
"variantOptions": [
|
|
1196
|
+
"Layer Default",
|
|
1197
|
+
"Transparent"
|
|
1198
|
+
]
|
|
1199
|
+
},
|
|
1200
|
+
"OS": {
|
|
1201
|
+
"type": "VARIANT",
|
|
1202
|
+
"variantOptions": [
|
|
1203
|
+
"iOS",
|
|
1204
|
+
"Android"
|
|
1205
|
+
]
|
|
1206
|
+
}
|
|
1207
|
+
}
|
|
1208
|
+
};
|
|
1209
|
+
|
|
1210
|
+
declare const metadata$4: {
|
|
1211
|
+
"name": "🟢 Switch",
|
|
1212
|
+
"key": "80ce5a33b5ab713ab3bd2449472e2fb13d78c7f3",
|
|
1213
|
+
"componentPropertyDefinitions": {
|
|
1214
|
+
"Label#15191:2": {
|
|
1215
|
+
"type": "TEXT"
|
|
1216
|
+
},
|
|
1217
|
+
"Size": {
|
|
1218
|
+
"type": "VARIANT",
|
|
1219
|
+
"variantOptions": [
|
|
1220
|
+
"Small",
|
|
1221
|
+
"Medium"
|
|
1222
|
+
]
|
|
1223
|
+
},
|
|
1224
|
+
"State": {
|
|
1225
|
+
"type": "VARIANT",
|
|
1226
|
+
"variantOptions": [
|
|
1227
|
+
"Enabled",
|
|
1228
|
+
"Selected",
|
|
1229
|
+
"Disabled",
|
|
1230
|
+
"Disabled-Selected"
|
|
1231
|
+
]
|
|
1232
|
+
}
|
|
1233
|
+
}
|
|
1234
|
+
};
|
|
1235
|
+
|
|
1236
|
+
declare const metadata$3: {
|
|
1237
|
+
"name": "🟢 Tablist",
|
|
1238
|
+
"key": "ffe33411fb8796f7a95d3637b90150007f0dd954",
|
|
1239
|
+
"componentPropertyDefinitions": {
|
|
1240
|
+
"Size": {
|
|
1241
|
+
"type": "VARIANT",
|
|
1242
|
+
"variantOptions": [
|
|
1243
|
+
"Small",
|
|
1244
|
+
"Medium"
|
|
1245
|
+
]
|
|
1246
|
+
},
|
|
1247
|
+
"Layout": {
|
|
1248
|
+
"type": "VARIANT",
|
|
1249
|
+
"variantOptions": [
|
|
1250
|
+
"Hug",
|
|
1251
|
+
"Fill"
|
|
1252
|
+
]
|
|
1253
|
+
},
|
|
1254
|
+
"Tab Count": {
|
|
1255
|
+
"type": "VARIANT",
|
|
1256
|
+
"variantOptions": [
|
|
1257
|
+
"2",
|
|
1258
|
+
"3",
|
|
1259
|
+
"4",
|
|
1260
|
+
"5+"
|
|
1261
|
+
]
|
|
1262
|
+
}
|
|
1263
|
+
}
|
|
1264
|
+
};
|
|
1265
|
+
|
|
1266
|
+
declare const metadata$2: {
|
|
1267
|
+
"name": "🟢 Text Button",
|
|
1268
|
+
"key": "601f788792916250e33d04bd3165dee1404342df",
|
|
1269
|
+
"componentPropertyDefinitions": {
|
|
1270
|
+
"Prefix Icon#7561:0": {
|
|
1271
|
+
"type": "INSTANCE_SWAP",
|
|
1272
|
+
"preferredValues": []
|
|
1273
|
+
},
|
|
1274
|
+
"Label#6148:0": {
|
|
1275
|
+
"type": "TEXT"
|
|
1276
|
+
},
|
|
1277
|
+
"Size": {
|
|
1278
|
+
"type": "VARIANT",
|
|
1279
|
+
"variantOptions": [
|
|
1280
|
+
"Small",
|
|
1281
|
+
"Medium",
|
|
1282
|
+
"Large"
|
|
1283
|
+
]
|
|
1284
|
+
},
|
|
1285
|
+
"Layout": {
|
|
1286
|
+
"type": "VARIANT",
|
|
1287
|
+
"variantOptions": [
|
|
1288
|
+
"Icon First",
|
|
1289
|
+
"Icon Last"
|
|
1290
|
+
]
|
|
1291
|
+
},
|
|
1292
|
+
"Tone": {
|
|
1293
|
+
"type": "VARIANT",
|
|
1294
|
+
"variantOptions": [
|
|
1295
|
+
"Neutral",
|
|
1296
|
+
"Neutral Subtle",
|
|
1297
|
+
"Brand",
|
|
1298
|
+
"Critical"
|
|
1299
|
+
]
|
|
1300
|
+
},
|
|
1301
|
+
"State": {
|
|
1302
|
+
"type": "VARIANT",
|
|
1303
|
+
"variantOptions": [
|
|
1304
|
+
"Enabled",
|
|
1305
|
+
"Pressed",
|
|
1306
|
+
"Disabled"
|
|
1307
|
+
]
|
|
1308
|
+
}
|
|
1309
|
+
}
|
|
1310
|
+
};
|
|
1311
|
+
|
|
1312
|
+
declare const metadata$1: {
|
|
1313
|
+
"name": "🟢 Text Field",
|
|
1314
|
+
"key": "c49873c37a639f0dffdea4efd0eb43760d66c141",
|
|
1315
|
+
"componentPropertyDefinitions": {
|
|
1316
|
+
"Suffix Text#15327:138": {
|
|
1317
|
+
"type": "TEXT"
|
|
1318
|
+
},
|
|
1319
|
+
"Indicator#15327:249": {
|
|
1320
|
+
"type": "TEXT"
|
|
1321
|
+
},
|
|
1322
|
+
"Label#14964:0": {
|
|
1323
|
+
"type": "TEXT"
|
|
1324
|
+
},
|
|
1325
|
+
"Character Count#15327:64": {
|
|
1326
|
+
"type": "TEXT"
|
|
1327
|
+
},
|
|
1328
|
+
"Description#12626:5": {
|
|
1329
|
+
"type": "TEXT"
|
|
1330
|
+
},
|
|
1331
|
+
"Filled Text#1304:0": {
|
|
1332
|
+
"type": "TEXT"
|
|
1333
|
+
},
|
|
1334
|
+
"Show Suffix Icon#1267:75": {
|
|
1335
|
+
"type": "BOOLEAN"
|
|
1336
|
+
},
|
|
1337
|
+
"Show Prefix Icon#1267:50": {
|
|
1338
|
+
"type": "BOOLEAN"
|
|
1339
|
+
},
|
|
1340
|
+
"Prefix Icon#1267:25": {
|
|
1341
|
+
"type": "INSTANCE_SWAP",
|
|
1342
|
+
"preferredValues": []
|
|
1343
|
+
},
|
|
1344
|
+
"Show Prefix#958:125": {
|
|
1345
|
+
"type": "BOOLEAN"
|
|
1346
|
+
},
|
|
1347
|
+
"Show Suffix#958:100": {
|
|
1348
|
+
"type": "BOOLEAN"
|
|
1349
|
+
},
|
|
1350
|
+
"Show Character Count#958:75": {
|
|
1351
|
+
"type": "BOOLEAN"
|
|
1352
|
+
},
|
|
1353
|
+
"Show Footer#958:25": {
|
|
1354
|
+
"type": "BOOLEAN"
|
|
1355
|
+
},
|
|
1356
|
+
"Max Character Count#15327:27": {
|
|
1357
|
+
"type": "TEXT"
|
|
1358
|
+
},
|
|
1359
|
+
"Show Prefix Text#1267:0": {
|
|
1360
|
+
"type": "BOOLEAN"
|
|
1361
|
+
},
|
|
1362
|
+
"Show Suffix Text#1267:125": {
|
|
1363
|
+
"type": "BOOLEAN"
|
|
1364
|
+
},
|
|
1365
|
+
"Suffix Icon #1267:100": {
|
|
1366
|
+
"type": "INSTANCE_SWAP",
|
|
1367
|
+
"preferredValues": []
|
|
1368
|
+
},
|
|
1369
|
+
"Show Description#958:50": {
|
|
1370
|
+
"type": "BOOLEAN"
|
|
1371
|
+
},
|
|
1372
|
+
"Prefix Text#15327:101": {
|
|
1373
|
+
"type": "TEXT"
|
|
1374
|
+
},
|
|
1375
|
+
"Show Indicator#1259:0": {
|
|
1376
|
+
"type": "BOOLEAN"
|
|
1377
|
+
},
|
|
1378
|
+
"Placeholder#958:0": {
|
|
1379
|
+
"type": "TEXT"
|
|
1380
|
+
},
|
|
1381
|
+
"Show Header#870:0": {
|
|
1382
|
+
"type": "BOOLEAN"
|
|
1383
|
+
},
|
|
1384
|
+
"Size": {
|
|
1385
|
+
"type": "VARIANT",
|
|
1386
|
+
"variantOptions": [
|
|
1387
|
+
"Medium",
|
|
1388
|
+
"Large",
|
|
1389
|
+
"XLarge"
|
|
1390
|
+
]
|
|
1391
|
+
},
|
|
1392
|
+
"State": {
|
|
1393
|
+
"type": "VARIANT",
|
|
1394
|
+
"variantOptions": [
|
|
1395
|
+
"Enabled",
|
|
1396
|
+
"Focused",
|
|
1397
|
+
"Invalid",
|
|
1398
|
+
"Invalid-Focused",
|
|
1399
|
+
"Disabled",
|
|
1400
|
+
"Read Only"
|
|
1401
|
+
]
|
|
1402
|
+
},
|
|
1403
|
+
"Filled": {
|
|
1404
|
+
"type": "VARIANT",
|
|
1405
|
+
"variantOptions": [
|
|
1406
|
+
"True",
|
|
1407
|
+
"False"
|
|
1408
|
+
]
|
|
1409
|
+
}
|
|
1410
|
+
}
|
|
1411
|
+
};
|
|
1412
|
+
|
|
1413
|
+
declare const metadata: {
|
|
1414
|
+
"name": "🟢 Toggle Button",
|
|
1415
|
+
"key": "1d240ee5fd7a56879713e69cbea1b6f006f0ea22",
|
|
1416
|
+
"componentPropertyDefinitions": {
|
|
1417
|
+
"Suffix Icon#6122:343": {
|
|
1418
|
+
"type": "INSTANCE_SWAP",
|
|
1419
|
+
"preferredValues": []
|
|
1420
|
+
},
|
|
1421
|
+
"Show Prefix Icon#6122:392": {
|
|
1422
|
+
"type": "BOOLEAN"
|
|
1423
|
+
},
|
|
1424
|
+
"Show Suffix Icon#6122:147": {
|
|
1425
|
+
"type": "BOOLEAN"
|
|
1426
|
+
},
|
|
1427
|
+
"Prefix Icon#6122:98": {
|
|
1428
|
+
"type": "INSTANCE_SWAP",
|
|
1429
|
+
"preferredValues": []
|
|
1430
|
+
},
|
|
1431
|
+
"Label#6122:49": {
|
|
1432
|
+
"type": "TEXT"
|
|
1433
|
+
},
|
|
1434
|
+
"Size": {
|
|
1435
|
+
"type": "VARIANT",
|
|
1436
|
+
"variantOptions": [
|
|
1437
|
+
"Small",
|
|
1438
|
+
"XSmall"
|
|
1439
|
+
]
|
|
1440
|
+
},
|
|
1441
|
+
"Variant": {
|
|
1442
|
+
"type": "VARIANT",
|
|
1443
|
+
"variantOptions": [
|
|
1444
|
+
"Neutral Weak",
|
|
1445
|
+
"Brand Solid"
|
|
1446
|
+
]
|
|
1447
|
+
},
|
|
1448
|
+
"State": {
|
|
1449
|
+
"type": "VARIANT",
|
|
1450
|
+
"variantOptions": [
|
|
1451
|
+
"Enabled",
|
|
1452
|
+
"Pressed",
|
|
1453
|
+
"Loading",
|
|
1454
|
+
"Selected",
|
|
1455
|
+
"Selected-Pressed",
|
|
1456
|
+
"Selected-Loading",
|
|
1457
|
+
"Disabled",
|
|
1458
|
+
"Disabled-Selected"
|
|
1459
|
+
]
|
|
1460
|
+
}
|
|
1461
|
+
}
|
|
1462
|
+
};
|
|
1463
|
+
|
|
1464
|
+
type ActionButtonProperties = InferComponentDefinition<typeof metadata$u.componentPropertyDefinitions>;
|
|
1465
|
+
type ActionChipProperties = InferComponentDefinition<typeof metadata$t.componentPropertyDefinitions>;
|
|
1466
|
+
type ActionSheetProperties = InferComponentDefinition<typeof metadata$s.componentPropertyDefinitions>;
|
|
1467
|
+
type ActionSheetItemProperties = InferComponentDefinition<{
|
|
1468
|
+
"Label#15420:4": {
|
|
1469
|
+
type: "TEXT";
|
|
1470
|
+
defaultValue: "액션 버튼";
|
|
1471
|
+
};
|
|
1472
|
+
Tone: {
|
|
1473
|
+
type: "VARIANT";
|
|
1474
|
+
defaultValue: "Default";
|
|
1475
|
+
variantOptions: ["Default", "Critical"];
|
|
1476
|
+
};
|
|
1477
|
+
State: {
|
|
1478
|
+
type: "VARIANT";
|
|
1479
|
+
defaultValue: "Enabled";
|
|
1480
|
+
variantOptions: ["Enabled", "Enabled-Pressed", "Disabled"];
|
|
1481
|
+
};
|
|
1482
|
+
}>;
|
|
1483
|
+
type AvatarProperties = InferComponentDefinition<typeof metadata$r.componentPropertyDefinitions>;
|
|
1484
|
+
type AvatarStackProperties = InferComponentDefinition<typeof metadata$q.componentPropertyDefinitions>;
|
|
1485
|
+
type BadgeProperties = InferComponentDefinition<typeof metadata$p.componentPropertyDefinitions>;
|
|
1486
|
+
type CalloutProperties = InferComponentDefinition<typeof metadata$o.componentPropertyDefinitions>;
|
|
1487
|
+
type CheckboxProperties = InferComponentDefinition<typeof metadata$n.componentPropertyDefinitions>;
|
|
1488
|
+
type ChipTabsProperties = InferComponentDefinition<typeof metadata$m.componentPropertyDefinitions>;
|
|
1489
|
+
type ChipTabsItemProperties = InferComponentDefinition<{
|
|
1490
|
+
"Label#8876:0": {
|
|
1491
|
+
type: "TEXT";
|
|
1492
|
+
defaultValue: "라벨";
|
|
1493
|
+
};
|
|
1494
|
+
Variant: {
|
|
1495
|
+
type: "VARIANT";
|
|
1496
|
+
defaultValue: "Neutral Solid";
|
|
1497
|
+
variantOptions: ["Neutral Solid", "Brand Solid"];
|
|
1498
|
+
};
|
|
1499
|
+
State: {
|
|
1500
|
+
type: "VARIANT";
|
|
1501
|
+
defaultValue: "Enabled";
|
|
1502
|
+
variantOptions: [
|
|
1503
|
+
"Enabled",
|
|
1504
|
+
"Enabled-Pressed",
|
|
1505
|
+
"Enabled-Selected",
|
|
1506
|
+
"Enabled-Selected-Pressed",
|
|
1507
|
+
"Disabled",
|
|
1508
|
+
"Disabled-Selected"
|
|
1509
|
+
];
|
|
1510
|
+
};
|
|
1511
|
+
}>;
|
|
1512
|
+
type ControlChipProperties = InferComponentDefinition<typeof metadata$l.componentPropertyDefinitions>;
|
|
1513
|
+
type ErrorStateProperties = InferComponentDefinition<typeof metadata$k.componentPropertyDefinitions>;
|
|
1514
|
+
type ExtendedActionSheetProperties = InferComponentDefinition<typeof metadata$j.componentPropertyDefinitions>;
|
|
1515
|
+
type ExtendedActionSheetGroupProperties = InferComponentDefinition<{
|
|
1516
|
+
"Action Count": {
|
|
1517
|
+
type: "VARIANT";
|
|
1518
|
+
defaultValue: "8";
|
|
1519
|
+
variantOptions: ["1", "2", "3", "4", "5", "6", "7", "8"];
|
|
1520
|
+
};
|
|
1521
|
+
}>;
|
|
1522
|
+
type ExtendedActionSheetItemProperties = InferComponentDefinition<{
|
|
1523
|
+
"Show Prefix Icon#17043:5": {
|
|
1524
|
+
type: "BOOLEAN";
|
|
1525
|
+
defaultValue: true;
|
|
1526
|
+
};
|
|
1527
|
+
"Label#55905:8": {
|
|
1528
|
+
type: "TEXT";
|
|
1529
|
+
defaultValue: "액션 버튼";
|
|
1530
|
+
};
|
|
1531
|
+
"Prefix Icon#55948:0": {
|
|
1532
|
+
type: "INSTANCE_SWAP";
|
|
1533
|
+
defaultValue: "17024:100799";
|
|
1534
|
+
preferredValues: [];
|
|
1535
|
+
};
|
|
1536
|
+
Tone: {
|
|
1537
|
+
type: "VARIANT";
|
|
1538
|
+
defaultValue: "Neutral";
|
|
1539
|
+
variantOptions: ["Neutral", "Critical"];
|
|
1540
|
+
};
|
|
1541
|
+
State: {
|
|
1542
|
+
type: "VARIANT";
|
|
1543
|
+
defaultValue: "Enabled";
|
|
1544
|
+
variantOptions: ["Enabled", "Enabled-Pressed", "Disabled"];
|
|
1545
|
+
};
|
|
1546
|
+
}>;
|
|
1547
|
+
type ExtendedFabProperties = InferComponentDefinition<typeof metadata$i.componentPropertyDefinitions>;
|
|
1548
|
+
type FabProperties = InferComponentDefinition<typeof metadata$h.componentPropertyDefinitions>;
|
|
1549
|
+
type HelpBubbleProperties = InferComponentDefinition<typeof metadata$g.componentPropertyDefinitions>;
|
|
1550
|
+
type IdentityPlaceholderProperties = InferComponentDefinition<typeof metadata$f.componentPropertyDefinitions>;
|
|
1551
|
+
type InlineBannerProperties = InferComponentDefinition<typeof metadata$e.componentPropertyDefinitions>;
|
|
1552
|
+
type MannerTempBadgeProperties = InferComponentDefinition<typeof metadata$d.componentPropertyDefinitions>;
|
|
1553
|
+
type MultilineTextFieldProperties = InferComponentDefinition<typeof metadata$c.componentPropertyDefinitions>;
|
|
1554
|
+
type ProgressCircleProperties = InferComponentDefinition<typeof metadata$b.componentPropertyDefinitions>;
|
|
1555
|
+
type ReactionButtonProperties = InferComponentDefinition<typeof metadata$a.componentPropertyDefinitions>;
|
|
1556
|
+
type SegmentedControlProperties = InferComponentDefinition<typeof metadata$9.componentPropertyDefinitions>;
|
|
1557
|
+
type SegmentedControlItemProperties = InferComponentDefinition<{
|
|
1558
|
+
"Label#11366:15": {
|
|
1559
|
+
type: "TEXT";
|
|
1560
|
+
defaultValue: "라벨";
|
|
1561
|
+
};
|
|
1562
|
+
State: {
|
|
1563
|
+
type: "VARIANT";
|
|
1564
|
+
defaultValue: "Enabled-Selected";
|
|
1565
|
+
variantOptions: [
|
|
1566
|
+
"Enabled",
|
|
1567
|
+
"Enabled-Selected",
|
|
1568
|
+
"Enabled-Pressed",
|
|
1569
|
+
"Enabled-Selected-Pressed",
|
|
1570
|
+
"Disabled",
|
|
1571
|
+
"Disabled-Selected"
|
|
1572
|
+
];
|
|
1573
|
+
};
|
|
1574
|
+
}>;
|
|
1575
|
+
type SelectBoxGroupProperties = InferComponentDefinition<typeof metadata$v.componentPropertyDefinitions>;
|
|
1576
|
+
type SelectBoxProperties = InferComponentDefinition<typeof metadata$8.componentPropertyDefinitions>;
|
|
1577
|
+
type SkeletonProperties = InferComponentDefinition<typeof metadata$7.componentPropertyDefinitions>;
|
|
1578
|
+
type SnackbarProperties = InferComponentDefinition<typeof metadata$6.componentPropertyDefinitions>;
|
|
1579
|
+
type SwitchProperties = InferComponentDefinition<typeof metadata$4.componentPropertyDefinitions>;
|
|
1580
|
+
type TabsProperties = InferComponentDefinition<typeof metadata$3.componentPropertyDefinitions>;
|
|
1581
|
+
type TabsHugItemProperties = InferComponentDefinition<{
|
|
1582
|
+
"Label#4478:2": {
|
|
1583
|
+
type: "TEXT";
|
|
1584
|
+
defaultValue: "라벨";
|
|
1585
|
+
};
|
|
1586
|
+
Size: {
|
|
1587
|
+
type: "VARIANT";
|
|
1588
|
+
defaultValue: "Small";
|
|
1589
|
+
variantOptions: ["Small", "Medium"];
|
|
1590
|
+
};
|
|
1591
|
+
Notification: {
|
|
1592
|
+
type: "VARIANT";
|
|
1593
|
+
defaultValue: "False";
|
|
1594
|
+
variantOptions: ["True", "False"];
|
|
1595
|
+
};
|
|
1596
|
+
State: {
|
|
1597
|
+
type: "VARIANT";
|
|
1598
|
+
defaultValue: "Enabled-Selected";
|
|
1599
|
+
variantOptions: ["Enabled", "Enabled-Selected", "Disabled"];
|
|
1600
|
+
};
|
|
1601
|
+
}>;
|
|
1602
|
+
type TabsFillItemProperties = InferComponentDefinition<{
|
|
1603
|
+
"Label#4478:2": {
|
|
1604
|
+
type: "TEXT";
|
|
1605
|
+
defaultValue: "라벨";
|
|
1606
|
+
};
|
|
1607
|
+
Size: {
|
|
1608
|
+
type: "VARIANT";
|
|
1609
|
+
defaultValue: "Small";
|
|
1610
|
+
variantOptions: ["Small", "Medium"];
|
|
1611
|
+
};
|
|
1612
|
+
Notification: {
|
|
1613
|
+
type: "VARIANT";
|
|
1614
|
+
defaultValue: "False";
|
|
1615
|
+
variantOptions: ["True", "False"];
|
|
1616
|
+
};
|
|
1617
|
+
State: {
|
|
1618
|
+
type: "VARIANT";
|
|
1619
|
+
defaultValue: "Enabled-Selected";
|
|
1620
|
+
variantOptions: ["Enabled", "Enabled-Selected", "Disabled"];
|
|
1621
|
+
};
|
|
1622
|
+
}>;
|
|
1623
|
+
type TextButtonProperties = InferComponentDefinition<typeof metadata$2.componentPropertyDefinitions>;
|
|
1624
|
+
type TextFieldProperties = InferComponentDefinition<typeof metadata$1.componentPropertyDefinitions>;
|
|
1625
|
+
type ToggleButtonProperties = InferComponentDefinition<typeof metadata.componentPropertyDefinitions>;
|
|
1626
|
+
type AppBarProperties = InferComponentDefinition<typeof metadata$5.componentPropertyDefinitions>;
|
|
1627
|
+
type AppBarMainProperties = InferComponentDefinition<{
|
|
1628
|
+
"Show Right#16958:13": {
|
|
1629
|
+
type: "BOOLEAN";
|
|
1630
|
+
defaultValue: false;
|
|
1631
|
+
};
|
|
1632
|
+
"Subtitle#16958:9": {
|
|
1633
|
+
type: "TEXT";
|
|
1634
|
+
defaultValue: "서브타이틀";
|
|
1635
|
+
};
|
|
1636
|
+
"Logo#16958:5": {
|
|
1637
|
+
type: "INSTANCE_SWAP";
|
|
1638
|
+
defaultValue: "1574:3942";
|
|
1639
|
+
preferredValues: [
|
|
1640
|
+
{
|
|
1641
|
+
type: "COMPONENT_SET";
|
|
1642
|
+
key: "c7dab3f6d0df0a150564e696c0df00bd43ffef3f";
|
|
1643
|
+
}
|
|
1644
|
+
];
|
|
1645
|
+
};
|
|
1646
|
+
"Show Left#16958:17": {
|
|
1647
|
+
type: "BOOLEAN";
|
|
1648
|
+
defaultValue: false;
|
|
1649
|
+
};
|
|
1650
|
+
"Title#16944:0": {
|
|
1651
|
+
type: "TEXT";
|
|
1652
|
+
defaultValue: "타이틀";
|
|
1653
|
+
};
|
|
1654
|
+
Type: {
|
|
1655
|
+
type: "VARIANT";
|
|
1656
|
+
defaultValue: "Title";
|
|
1657
|
+
variantOptions: ["Title", "Title-Subtitle", "Logo"];
|
|
1658
|
+
};
|
|
1659
|
+
}>;
|
|
1660
|
+
type AppBarLeftProperties = InferComponentDefinition<{
|
|
1661
|
+
Action: {
|
|
1662
|
+
type: "VARIANT";
|
|
1663
|
+
defaultValue: "Back";
|
|
1664
|
+
variantOptions: ["Back", "Close", "Other"];
|
|
1665
|
+
};
|
|
1666
|
+
}>;
|
|
1667
|
+
type AppBarRightProperties = InferComponentDefinition<{
|
|
1668
|
+
Type: {
|
|
1669
|
+
type: "VARIANT";
|
|
1670
|
+
defaultValue: "1 Icon";
|
|
1671
|
+
variantOptions: ["1 Icon", "2 Icons", "3 Icons", "1 Text"];
|
|
1672
|
+
};
|
|
1673
|
+
}>;
|
|
1674
|
+
|
|
1675
|
+
interface CreatePipelineConfig {
|
|
1676
|
+
shouldInferAutoLayout?: boolean;
|
|
1677
|
+
shouldInferVariableName?: boolean;
|
|
1678
|
+
}
|
|
1679
|
+
declare function createPipeline(options?: CreatePipelineConfig): {
|
|
1680
|
+
generateJsxTree: (node: ________.NormalizedSceneNode) => ElementNode | undefined;
|
|
1681
|
+
generateCode: (node: ________.NormalizedSceneNode, options: {
|
|
1682
|
+
shouldPrintSource: boolean;
|
|
1683
|
+
}) => string | undefined;
|
|
1684
|
+
};
|
|
1685
|
+
|
|
1686
|
+
type FigmaValueResolver = ValueResolver<string, number, number, number>;
|
|
1687
|
+
|
|
1688
|
+
interface PropsConverters {
|
|
1689
|
+
containerLayout: PropsConverter<ContainerLayoutTrait, ContainerLayoutProps>;
|
|
1690
|
+
selfLayout: PropsConverter<SelfLayoutTrait, SelfLayoutProps>;
|
|
1691
|
+
radius: PropsConverter<RadiusTrait, RadiusProps>;
|
|
1692
|
+
frameFill: PropsConverter<FillTrait, FillProps>;
|
|
1693
|
+
shapeFill: PropsConverter<FillTrait, FillProps>;
|
|
1694
|
+
textFill: PropsConverter<FillTrait, FillProps>;
|
|
1695
|
+
stroke: PropsConverter<StrokeTrait, StrokeProps>;
|
|
1696
|
+
typeStyle: PropsConverter<TypeStyleTrait, TypeStyleProps>;
|
|
1697
|
+
}
|
|
1698
|
+
type ContainerLayoutTrait = NormalizedHasFramePropertiesTrait & NormalizedHasChildrenTrait & NormalizedHasLayoutTrait & NormalizedIsLayerTrait;
|
|
1699
|
+
type SelfLayoutTrait = NormalizedIsLayerTrait & NormalizedHasLayoutTrait;
|
|
1700
|
+
type RadiusTrait = NormalizedCornerTrait & NormalizedIsLayerTrait;
|
|
1701
|
+
type FillTrait = NormalizedIsLayerTrait & NormalizedHasGeometryTrait;
|
|
1702
|
+
type StrokeTrait = NormalizedIsLayerTrait & NormalizedHasGeometryTrait;
|
|
1703
|
+
type TypeStyleTrait = NormalizedTypePropertiesTrait & NormalizedIsLayerTrait;
|
|
1704
|
+
interface ContainerLayoutProps {
|
|
1705
|
+
layoutMode?: "HORIZONTAL" | "VERTICAL" | "NONE";
|
|
1706
|
+
primaryAxisAlignItems?: "MIN" | "CENTER" | "MAX" | "SPACE_BETWEEN";
|
|
1707
|
+
counterAxisAlignItems?: "MIN" | "CENTER" | "MAX" | "BASELINE";
|
|
1708
|
+
layoutWrap?: "WRAP" | "NO_WRAP";
|
|
1709
|
+
itemSpacing?: number | string;
|
|
1710
|
+
paddingTop?: number | string;
|
|
1711
|
+
paddingBottom?: number | string;
|
|
1712
|
+
paddingLeft?: number | string;
|
|
1713
|
+
paddingRight?: number | string;
|
|
1714
|
+
horizontalPadding?: number | string;
|
|
1715
|
+
verticalPadding?: number | string;
|
|
1716
|
+
}
|
|
1717
|
+
declare function createContainerLayoutPropsConverter(valueResolver: FigmaValueResolver): PropsConverter<ContainerLayoutTrait, ContainerLayoutProps>;
|
|
1718
|
+
interface SelfLayoutProps {
|
|
1719
|
+
layoutGrow?: number;
|
|
1720
|
+
layoutAlign?: "STRETCH" | "INHERIT" | "MIN" | "CENTER" | "MAX";
|
|
1721
|
+
layoutSizingVertical?: "FIXED" | "HUG" | "FILL";
|
|
1722
|
+
layoutSizingHorizontal?: "FIXED" | "HUG" | "FILL";
|
|
1723
|
+
width?: string | number;
|
|
1724
|
+
height?: string | number;
|
|
1725
|
+
minWidth?: string | number;
|
|
1726
|
+
minHeight?: string | number;
|
|
1727
|
+
maxWidth?: string | number;
|
|
1728
|
+
maxHeight?: string | number;
|
|
1729
|
+
}
|
|
1730
|
+
declare function createSelfLayoutPropsConverter(valueResolver: FigmaValueResolver): PropsConverter<SelfLayoutTrait, SelfLayoutProps>;
|
|
1731
|
+
interface RadiusProps {
|
|
1732
|
+
cornerRadius?: number | string;
|
|
1733
|
+
topLeftRadius?: number | string;
|
|
1734
|
+
topRightRadius?: number | string;
|
|
1735
|
+
bottomLeftRadius?: number | string;
|
|
1736
|
+
bottomRightRadius?: number | string;
|
|
1737
|
+
}
|
|
1738
|
+
declare function createRadiusPropsConverter(valueResolver: FigmaValueResolver): PropsConverter<RadiusTrait, RadiusProps>;
|
|
1739
|
+
interface FillProps {
|
|
1740
|
+
fill?: string;
|
|
1741
|
+
}
|
|
1742
|
+
declare function createFrameFillPropsConverter(valueResolver: FigmaValueResolver): PropsConverter<FillTrait, FillProps>;
|
|
1743
|
+
declare function createShapeFillPropsConverter(valueResolver: FigmaValueResolver): PropsConverter<FillTrait, FillProps>;
|
|
1744
|
+
declare function createTextFillPropsConverter(valueResolver: FigmaValueResolver): PropsConverter<FillTrait, FillProps>;
|
|
1745
|
+
interface StrokeProps {
|
|
1746
|
+
stroke?: string;
|
|
1747
|
+
strokeWeight?: number;
|
|
1748
|
+
}
|
|
1749
|
+
declare function createStrokePropsConverter(valueResolver: FigmaValueResolver): PropsConverter<StrokeTrait, StrokeProps>;
|
|
1750
|
+
interface TypeStyleProps {
|
|
1751
|
+
textStyle?: string;
|
|
1752
|
+
fontSize?: string | number;
|
|
1753
|
+
fontWeight?: string | number;
|
|
1754
|
+
lineHeight?: string | number;
|
|
1755
|
+
maxLines?: number;
|
|
1756
|
+
}
|
|
1757
|
+
declare function createTypeStylePropsConverter(valueResolver: FigmaValueResolver): PropsConverter<TypeStyleTrait, TypeStyleProps>;
|
|
1758
|
+
|
|
1759
|
+
interface FrameTransformerDeps {
|
|
1760
|
+
propsConverters: PropsConverters;
|
|
1761
|
+
}
|
|
1762
|
+
declare function createFrameTransformer({ propsConverters, }: FrameTransformerDeps): ElementTransformer<NormalizedFrameNode | NormalizedInstanceNode | NormalizedComponentNode>;
|
|
1763
|
+
|
|
1764
|
+
interface InstanceTransformerDeps {
|
|
1765
|
+
frameTransformer: ElementTransformer<NormalizedInstanceNode>;
|
|
1766
|
+
}
|
|
1767
|
+
declare function createInstanceTransformer({ frameTransformer, }: InstanceTransformerDeps): ElementTransformer<NormalizedInstanceNode>;
|
|
1768
|
+
|
|
1769
|
+
interface RectangleTransformerDeps {
|
|
1770
|
+
propsConverters: PropsConverters;
|
|
1771
|
+
}
|
|
1772
|
+
declare function createRectangleTransformer({ propsConverters, }: RectangleTransformerDeps): ElementTransformer<NormalizedRectangleNode>;
|
|
1773
|
+
interface VectorTransformerDeps {
|
|
1774
|
+
propsConverters: PropsConverters;
|
|
1775
|
+
}
|
|
1776
|
+
declare function createVectorTransformer({ propsConverters, }: VectorTransformerDeps): ElementTransformer<NormalizedVectorNode>;
|
|
1777
|
+
interface BooleanOperationTransformerDeps {
|
|
1778
|
+
propsConverters: PropsConverters;
|
|
1779
|
+
}
|
|
1780
|
+
declare function createBooleanOperationTransformer({ propsConverters, }: BooleanOperationTransformerDeps): ElementTransformer<NormalizedBooleanOperationNode>;
|
|
1781
|
+
|
|
1782
|
+
interface TextTransformerDeps {
|
|
1783
|
+
propsConverters: PropsConverters;
|
|
1784
|
+
}
|
|
1785
|
+
declare function createTextTransformer({ propsConverters, }: TextTransformerDeps): ElementTransformer<NormalizedTextNode>;
|
|
1786
|
+
|
|
1787
|
+
type index_BooleanOperationTransformerDeps = BooleanOperationTransformerDeps;
|
|
1788
|
+
type index_ContainerLayoutProps = ContainerLayoutProps;
|
|
1789
|
+
type index_ContainerLayoutTrait = ContainerLayoutTrait;
|
|
1790
|
+
type index_CreatePipelineConfig = CreatePipelineConfig;
|
|
1791
|
+
type index_FillProps = FillProps;
|
|
1792
|
+
type index_FillTrait = FillTrait;
|
|
1793
|
+
type index_FrameTransformerDeps = FrameTransformerDeps;
|
|
1794
|
+
type index_InstanceTransformerDeps = InstanceTransformerDeps;
|
|
1795
|
+
type index_PropsConverters = PropsConverters;
|
|
1796
|
+
type index_RadiusProps = RadiusProps;
|
|
1797
|
+
type index_RadiusTrait = RadiusTrait;
|
|
1798
|
+
type index_RectangleTransformerDeps = RectangleTransformerDeps;
|
|
1799
|
+
type index_SelfLayoutProps = SelfLayoutProps;
|
|
1800
|
+
type index_SelfLayoutTrait = SelfLayoutTrait;
|
|
1801
|
+
type index_StrokeProps = StrokeProps;
|
|
1802
|
+
type index_StrokeTrait = StrokeTrait;
|
|
1803
|
+
type index_TextTransformerDeps = TextTransformerDeps;
|
|
1804
|
+
type index_TypeStyleProps = TypeStyleProps;
|
|
1805
|
+
type index_TypeStyleTrait = TypeStyleTrait;
|
|
1806
|
+
type index_VectorTransformerDeps = VectorTransformerDeps;
|
|
1807
|
+
declare const index_createBooleanOperationTransformer: typeof createBooleanOperationTransformer;
|
|
1808
|
+
declare const index_createContainerLayoutPropsConverter: typeof createContainerLayoutPropsConverter;
|
|
1809
|
+
declare const index_createFrameFillPropsConverter: typeof createFrameFillPropsConverter;
|
|
1810
|
+
declare const index_createFrameTransformer: typeof createFrameTransformer;
|
|
1811
|
+
declare const index_createInstanceTransformer: typeof createInstanceTransformer;
|
|
1812
|
+
declare const index_createPipeline: typeof createPipeline;
|
|
1813
|
+
declare const index_createRadiusPropsConverter: typeof createRadiusPropsConverter;
|
|
1814
|
+
declare const index_createRectangleTransformer: typeof createRectangleTransformer;
|
|
1815
|
+
declare const index_createSelfLayoutPropsConverter: typeof createSelfLayoutPropsConverter;
|
|
1816
|
+
declare const index_createShapeFillPropsConverter: typeof createShapeFillPropsConverter;
|
|
1817
|
+
declare const index_createStrokePropsConverter: typeof createStrokePropsConverter;
|
|
1818
|
+
declare const index_createTextFillPropsConverter: typeof createTextFillPropsConverter;
|
|
1819
|
+
declare const index_createTextTransformer: typeof createTextTransformer;
|
|
1820
|
+
declare const index_createTypeStylePropsConverter: typeof createTypeStylePropsConverter;
|
|
1821
|
+
declare const index_createVectorTransformer: typeof createVectorTransformer;
|
|
1822
|
+
declare namespace index {
|
|
1823
|
+
export { index_createBooleanOperationTransformer as createBooleanOperationTransformer, index_createContainerLayoutPropsConverter as createContainerLayoutPropsConverter, index_createFrameFillPropsConverter as createFrameFillPropsConverter, index_createFrameTransformer as createFrameTransformer, index_createInstanceTransformer as createInstanceTransformer, index_createPipeline as createPipeline, index_createRadiusPropsConverter as createRadiusPropsConverter, index_createRectangleTransformer as createRectangleTransformer, index_createSelfLayoutPropsConverter as createSelfLayoutPropsConverter, index_createShapeFillPropsConverter as createShapeFillPropsConverter, index_createStrokePropsConverter as createStrokePropsConverter, index_createTextFillPropsConverter as createTextFillPropsConverter, index_createTextTransformer as createTextTransformer, index_createTypeStylePropsConverter as createTypeStylePropsConverter, index_createVectorTransformer as createVectorTransformer };
|
|
1824
|
+
export type { index_BooleanOperationTransformerDeps as BooleanOperationTransformerDeps, index_ContainerLayoutProps as ContainerLayoutProps, index_ContainerLayoutTrait as ContainerLayoutTrait, index_CreatePipelineConfig as CreatePipelineConfig, index_FillProps as FillProps, index_FillTrait as FillTrait, index_FrameTransformerDeps as FrameTransformerDeps, index_InstanceTransformerDeps as InstanceTransformerDeps, index_PropsConverters as PropsConverters, index_RadiusProps as RadiusProps, index_RadiusTrait as RadiusTrait, index_RectangleTransformerDeps as RectangleTransformerDeps, index_SelfLayoutProps as SelfLayoutProps, index_SelfLayoutTrait as SelfLayoutTrait, index_StrokeProps as StrokeProps, index_StrokeTrait as StrokeTrait, index_TextTransformerDeps as TextTransformerDeps, index_TypeStyleProps as TypeStyleProps, index_TypeStyleTrait as TypeStyleTrait, index_VectorTransformerDeps as VectorTransformerDeps };
|
|
1825
|
+
}
|
|
1826
|
+
|
|
1827
|
+
export { cloneElement, createCodeGenerator, createElement, createPropsConverter, createValueResolver, defineComponentHandler, defineElementTransformer, definePropsConverter, index as figma, inferLayout };
|
|
1828
|
+
export type { ActionButtonProperties, ActionChipProperties, ActionSheetItemProperties, ActionSheetProperties, AppBarLeftProperties, AppBarMainProperties, AppBarProperties, AppBarRightProperties, AvatarProperties, AvatarStackProperties, BadgeProperties, CalloutProperties, CheckboxProperties, ChipTabsItemProperties, ChipTabsProperties, CodeGeneratorDeps, ComponentHandler, ComponentPropertyDefinition, ControlChipProperties, ElementNode, ElementTransformer, ErrorStateProperties, ExtendedActionSheetGroupProperties, ExtendedActionSheetItemProperties, ExtendedActionSheetProperties, ExtendedFabProperties, FabProperties, HelpBubbleProperties, IdentityPlaceholderProperties, InferComponentDefinition, InferComponentPropertyType, InlineBannerProperties, MannerTempBadgeProperties, MultilineTextFieldProperties, ProgressCircleProperties, PropsConverter, ReactionButtonProperties, SegmentedControlItemProperties, SegmentedControlProperties, SelectBoxGroupProperties, SelectBoxProperties, SkeletonProperties, SnackbarProperties, SwitchProperties, TabsFillItemProperties, TabsHugItemProperties, TabsProperties, TextButtonProperties, TextFieldProperties, ToggleButtonProperties, ValueResolver };
|