@seed-design/figma 1.1.13 → 1.1.15
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 +636 -114
- package/lib/codegen/index.d.ts +136 -96
- package/lib/codegen/index.d.ts.map +1 -1
- package/lib/codegen/index.js +636 -114
- package/lib/codegen/targets/react/index.cjs +682 -134
- package/lib/codegen/targets/react/index.d.ts +31 -11
- package/lib/codegen/targets/react/index.d.ts.map +1 -1
- package/lib/codegen/targets/react/index.js +682 -135
- package/lib/index.cjs +1254 -433
- package/lib/index.d.ts +46 -10
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1254 -433
- package/package.json +2 -2
- package/src/codegen/component-properties.ts +5 -5
- package/src/codegen/core/value-resolver.ts +49 -12
- package/src/codegen/targets/figma/frame.ts +1 -0
- package/src/codegen/targets/figma/pipeline.ts +5 -0
- package/src/codegen/targets/figma/props.ts +30 -1
- package/src/codegen/targets/figma/shape.ts +1 -0
- package/src/codegen/targets/figma/value-resolver.ts +20 -0
- package/src/codegen/targets/react/component/handlers/menu-sheet.ts +1 -1
- package/src/codegen/targets/react/component/handlers/page-banner.ts +2 -2
- package/src/codegen/targets/react/component/handlers/{radio-mark.ts → radiomark.ts} +4 -4
- package/src/codegen/targets/react/component/handlers/result-section.ts +1 -1
- package/src/codegen/targets/react/component/handlers/{switch-mark.ts → switchmark.ts} +4 -4
- package/src/codegen/targets/react/component/index.ts +4 -4
- package/src/codegen/targets/react/frame.ts +16 -2
- package/src/codegen/targets/react/pipeline.ts +6 -1
- package/src/codegen/targets/react/props.ts +26 -0
- package/src/codegen/targets/react/shape.ts +5 -1
- package/src/codegen/targets/react/value-resolver.ts +26 -0
- package/src/entities/data/__generated__/component-sets/index.d.ts +84 -89
- package/src/entities/data/__generated__/component-sets/index.mjs +84 -89
- package/src/entities/data/__generated__/components/index.d.ts +2 -2
- package/src/entities/data/__generated__/components/index.mjs +2 -2
- package/src/entities/data/__generated__/icons/index.mjs +14 -0
- package/src/entities/data/__generated__/styles/index.mjs +190 -1
- package/src/entities/data/__generated__/variable-collections/index.mjs +11 -1
- package/src/entities/data/__generated__/variables/index.mjs +280 -0
- package/src/normalizer/from-plugin.ts +427 -258
- package/src/normalizer/from-rest.ts +428 -58
- package/src/normalizer/types.ts +63 -10
- package/src/utils/figma-node.ts +15 -10
package/lib/codegen/index.d.ts
CHANGED
|
@@ -3,15 +3,26 @@ import { ComponentPropertyType, InstanceSwapPreferredValue, LocalVariable, Varia
|
|
|
3
3
|
import * as index_d_ts from './targets/react/index.js';
|
|
4
4
|
export { index_d_ts as react };
|
|
5
5
|
|
|
6
|
-
type NormalizedIsLayerTrait = Pick<FigmaRestSpec.IsLayerTrait, "type" | "id" | "name"
|
|
6
|
+
type NormalizedIsLayerTrait = Pick<FigmaRestSpec.IsLayerTrait, "type" | "id" | "name"> & {
|
|
7
|
+
boundVariables?: Pick<NonNullable<FigmaRestSpec.IsLayerTrait["boundVariables"]>, "fills" | "strokes" | "itemSpacing" | "counterAxisSpacing" | "bottomLeftRadius" | "bottomRightRadius" | "topLeftRadius" | "topRightRadius" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "maxHeight" | "minHeight" | "maxWidth" | "minWidth" | "fontSize" | "fontWeight" | "lineHeight" | "size">;
|
|
8
|
+
};
|
|
7
9
|
type NormalizedCornerTrait = Pick<FigmaRestSpec.CornerTrait, "cornerRadius" | "rectangleCornerRadii">;
|
|
8
10
|
type NormalizedHasChildrenTrait = {
|
|
9
11
|
children: NormalizedSceneNode[];
|
|
10
12
|
};
|
|
11
13
|
type NormalizedHasLayoutTrait = Pick<FigmaRestSpec.HasLayoutTrait, "layoutAlign" | "layoutGrow" | "absoluteBoundingBox" | "relativeTransform" | "layoutPositioning" | "layoutSizingHorizontal" | "layoutSizingVertical" | "minHeight" | "minWidth" | "maxHeight" | "maxWidth">;
|
|
12
|
-
type
|
|
14
|
+
type NormalizedSolidPaint = FigmaRestSpec.SolidPaint;
|
|
15
|
+
type NormalizedPaint = NormalizedSolidPaint | FigmaRestSpec.GradientPaint | FigmaRestSpec.ImagePaint;
|
|
16
|
+
type NormalizedHasGeometryTrait = Omit<Pick<FigmaRestSpec.HasGeometryTrait, "fills" | "strokes" | "strokeWeight">, "fills" | "strokes"> & {
|
|
17
|
+
fills: NormalizedPaint[];
|
|
18
|
+
strokes: NormalizedPaint[];
|
|
13
19
|
fillStyleKey?: string;
|
|
14
20
|
};
|
|
21
|
+
type NormalizedShadow = (Pick<FigmaRestSpec.DropShadowEffect, "color" | "offset" | "radius" | "spread" | "boundVariables"> & Required<Pick<FigmaRestSpec.DropShadowEffect, "type">>) | (Pick<FigmaRestSpec.InnerShadowEffect, "color" | "offset" | "radius" | "spread" | "boundVariables"> & Required<Pick<FigmaRestSpec.InnerShadowEffect, "type">>);
|
|
22
|
+
type NormalizedHasEffectsTrait = Omit<FigmaRestSpec.HasEffectsTrait, "effects"> & {
|
|
23
|
+
effects: NormalizedShadow[];
|
|
24
|
+
effectStyleKey?: string;
|
|
25
|
+
};
|
|
15
26
|
type NormalizedHasFramePropertiesTrait = Pick<FigmaRestSpec.HasFramePropertiesTrait, "layoutMode" | "layoutWrap" | "paddingLeft" | "paddingRight" | "paddingTop" | "paddingBottom" | "primaryAxisAlignItems" | "primaryAxisSizingMode" | "counterAxisAlignItems" | "counterAxisSizingMode" | "itemSpacing" | "counterAxisSpacing">;
|
|
16
27
|
interface NormalizedTextSegment {
|
|
17
28
|
characters: string;
|
|
@@ -24,18 +35,18 @@ interface NormalizedTextSegment {
|
|
|
24
35
|
italic?: boolean;
|
|
25
36
|
textDecoration?: string;
|
|
26
37
|
letterSpacing?: number;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
38
|
+
/**
|
|
39
|
+
* in pixels
|
|
40
|
+
*/
|
|
41
|
+
lineHeight?: number;
|
|
31
42
|
};
|
|
32
43
|
}
|
|
33
44
|
type NormalizedTypePropertiesTrait = Pick<FigmaRestSpec.TypePropertiesTrait, "style" | "characters"> & {
|
|
34
45
|
segments: NormalizedTextSegment[];
|
|
35
46
|
textStyleKey?: string;
|
|
36
47
|
};
|
|
37
|
-
type NormalizedDefaultShapeTrait = NormalizedIsLayerTrait & NormalizedHasLayoutTrait & NormalizedHasGeometryTrait;
|
|
38
|
-
type NormalizedFrameTrait = NormalizedIsLayerTrait & NormalizedHasLayoutTrait & NormalizedHasGeometryTrait & NormalizedHasChildrenTrait & NormalizedCornerTrait & NormalizedHasFramePropertiesTrait;
|
|
48
|
+
type NormalizedDefaultShapeTrait = NormalizedIsLayerTrait & NormalizedHasLayoutTrait & NormalizedHasGeometryTrait & NormalizedHasEffectsTrait;
|
|
49
|
+
type NormalizedFrameTrait = NormalizedIsLayerTrait & NormalizedHasLayoutTrait & NormalizedHasGeometryTrait & NormalizedHasEffectsTrait & NormalizedHasChildrenTrait & NormalizedCornerTrait & NormalizedHasFramePropertiesTrait;
|
|
39
50
|
interface NormalizedFrameNode extends NormalizedFrameTrait {
|
|
40
51
|
type: FigmaRestSpec.FrameNode["type"];
|
|
41
52
|
}
|
|
@@ -64,7 +75,7 @@ interface NormalizedInstanceNode extends NormalizedFrameTrait {
|
|
|
64
75
|
interface NormalizedVectorNode extends NormalizedDefaultShapeTrait, NormalizedCornerTrait {
|
|
65
76
|
type: FigmaRestSpec.VectorNode["type"];
|
|
66
77
|
}
|
|
67
|
-
interface NormalizedBooleanOperationNode extends NormalizedIsLayerTrait, NormalizedHasChildrenTrait, NormalizedHasLayoutTrait, NormalizedHasGeometryTrait {
|
|
78
|
+
interface NormalizedBooleanOperationNode extends NormalizedIsLayerTrait, NormalizedHasChildrenTrait, NormalizedHasLayoutTrait, NormalizedHasGeometryTrait, NormalizedHasEffectsTrait {
|
|
68
79
|
type: FigmaRestSpec.BooleanOperationNode["type"];
|
|
69
80
|
}
|
|
70
81
|
interface NormalizedUnhandledNode {
|
|
@@ -210,6 +221,7 @@ interface ValueResolver<TColor, TGradient, TDimension, TFontDimension, TFontWeig
|
|
|
210
221
|
paddingTop: (node: NormalizedHasFramePropertiesTrait & NormalizedIsLayerTrait) => string | TDimension | undefined;
|
|
211
222
|
paddingBottom: (node: NormalizedHasFramePropertiesTrait & NormalizedIsLayerTrait) => string | TDimension | undefined;
|
|
212
223
|
itemSpacing: (node: NormalizedHasFramePropertiesTrait & NormalizedIsLayerTrait) => string | TDimension | undefined;
|
|
224
|
+
counterAxisSpacing: (node: NormalizedHasFramePropertiesTrait & NormalizedIsLayerTrait) => string | TDimension | undefined;
|
|
213
225
|
topLeftRadius: (node: NormalizedCornerTrait & NormalizedIsLayerTrait) => string | TDimension | undefined;
|
|
214
226
|
topRightRadius: (node: NormalizedCornerTrait & NormalizedIsLayerTrait) => string | TDimension | undefined;
|
|
215
227
|
bottomLeftRadius: (node: NormalizedCornerTrait & NormalizedIsLayerTrait) => string | TDimension | undefined;
|
|
@@ -217,8 +229,10 @@ interface ValueResolver<TColor, TGradient, TDimension, TFontDimension, TFontWeig
|
|
|
217
229
|
fontSize: (node: NormalizedTypePropertiesTrait & NormalizedIsLayerTrait) => string | TFontDimension | undefined;
|
|
218
230
|
fontWeight: (node: NormalizedTypePropertiesTrait & NormalizedIsLayerTrait) => string | TFontWeight | undefined;
|
|
219
231
|
lineHeight: (node: NormalizedTypePropertiesTrait & NormalizedIsLayerTrait) => string | TFontDimension | undefined;
|
|
232
|
+
boxShadow: (node: NormalizedHasEffectsTrait & NormalizedIsLayerTrait) => string | undefined;
|
|
220
233
|
};
|
|
221
234
|
getTextStyleValue: (node: NormalizedTypePropertiesTrait & NormalizedIsLayerTrait) => string | undefined;
|
|
235
|
+
getEffectStyleValue: (node: NormalizedHasEffectsTrait & NormalizedIsLayerTrait) => string | undefined;
|
|
222
236
|
}
|
|
223
237
|
interface ValueResolverDeps<TColor, TGradient, TDimension, TFontDimension, TFontWeight> {
|
|
224
238
|
variableService: VariableService;
|
|
@@ -229,6 +243,9 @@ interface ValueResolverDeps<TColor, TGradient, TDimension, TFontDimension, TFont
|
|
|
229
243
|
textStyleNameFormatter: (props: {
|
|
230
244
|
slug: string[];
|
|
231
245
|
}) => string;
|
|
246
|
+
effectStyleNameFormatter: (props: {
|
|
247
|
+
slug: string[];
|
|
248
|
+
}) => string;
|
|
232
249
|
fillStyleResolver: (props: {
|
|
233
250
|
slug: string[];
|
|
234
251
|
}) => TGradient | undefined;
|
|
@@ -237,10 +254,20 @@ interface ValueResolverDeps<TColor, TGradient, TDimension, TFontDimension, TFont
|
|
|
237
254
|
dimension: (value: number) => string | TDimension;
|
|
238
255
|
fontDimension: (value: number) => string | TFontDimension;
|
|
239
256
|
fontWeight: (value: number) => string | TFontWeight;
|
|
257
|
+
boxShadow: (value: {
|
|
258
|
+
type: "DROP_SHADOW" | "INNER_SHADOW";
|
|
259
|
+
color: RGBA;
|
|
260
|
+
offset: {
|
|
261
|
+
x: number;
|
|
262
|
+
y: number;
|
|
263
|
+
};
|
|
264
|
+
radius: number;
|
|
265
|
+
spread?: number;
|
|
266
|
+
}) => string;
|
|
240
267
|
};
|
|
241
268
|
shouldInferVariableName: boolean;
|
|
242
269
|
}
|
|
243
|
-
declare function createValueResolver<TColor, TGradient, TDimension, TFontDimension, TFontWeight>({ variableService, variableNameFormatter, styleService, textStyleNameFormatter, fillStyleResolver, rawValueFormatters, shouldInferVariableName, }: ValueResolverDeps<TColor, TGradient, TDimension, TFontDimension, TFontWeight>): ValueResolver<TColor, TGradient, TDimension, TFontDimension, TFontWeight>;
|
|
270
|
+
declare function createValueResolver<TColor, TGradient, TDimension, TFontDimension, TFontWeight>({ variableService, variableNameFormatter, styleService, textStyleNameFormatter, effectStyleNameFormatter, fillStyleResolver, rawValueFormatters, shouldInferVariableName, }: ValueResolverDeps<TColor, TGradient, TDimension, TFontDimension, TFontWeight>): ValueResolver<TColor, TGradient, TDimension, TFontDimension, TFontWeight>;
|
|
244
271
|
|
|
245
272
|
interface LayoutProperties {
|
|
246
273
|
layoutMode?: "NONE" | "HORIZONTAL" | "VERTICAL";
|
|
@@ -294,75 +321,6 @@ declare const templateCustomPickerField: {
|
|
|
294
321
|
}
|
|
295
322
|
};
|
|
296
323
|
|
|
297
|
-
declare const templateResultSection: {
|
|
298
|
-
"name": "templateResultSection",
|
|
299
|
-
"key": "fabd52c41c63d921e37e0a1de373e4df2b496f30",
|
|
300
|
-
"componentPropertyDefinitions": {
|
|
301
|
-
"Title#16237:0": {
|
|
302
|
-
"type": "TEXT"
|
|
303
|
-
},
|
|
304
|
-
"Description#16237:5": {
|
|
305
|
-
"type": "TEXT"
|
|
306
|
-
},
|
|
307
|
-
"Asset Type#45154:9": {
|
|
308
|
-
"type": "INSTANCE_SWAP",
|
|
309
|
-
"preferredValues": [
|
|
310
|
-
{
|
|
311
|
-
"type": "COMPONENT",
|
|
312
|
-
"key": "3f2ed06bd34fbaf24d371cefa973e09e2c2572bf"
|
|
313
|
-
},
|
|
314
|
-
{
|
|
315
|
-
"type": "COMPONENT",
|
|
316
|
-
"key": "bf1ad3ad5c45a2e94fd800f7f6ecbe52ba0667ab"
|
|
317
|
-
},
|
|
318
|
-
{
|
|
319
|
-
"type": "COMPONENT",
|
|
320
|
-
"key": "d357dcf0fbff80f3bfa70fe4fd5d48a9bddd1b49"
|
|
321
|
-
},
|
|
322
|
-
{
|
|
323
|
-
"type": "COMPONENT",
|
|
324
|
-
"key": "a53df434b562c1eeb04dab9abd88431989c5fc33"
|
|
325
|
-
},
|
|
326
|
-
{
|
|
327
|
-
"type": "COMPONENT",
|
|
328
|
-
"key": "5e53811a1e1444deccb5147b6a57196a3be467c9"
|
|
329
|
-
},
|
|
330
|
-
{
|
|
331
|
-
"type": "COMPONENT",
|
|
332
|
-
"key": "3ff3999d2d2bbed2c7656210793d4f083901f73b"
|
|
333
|
-
},
|
|
334
|
-
{
|
|
335
|
-
"type": "COMPONENT",
|
|
336
|
-
"key": "56fcf964b7784ca83eaf6c9b1531de6150d23a0d"
|
|
337
|
-
},
|
|
338
|
-
{
|
|
339
|
-
"type": "COMPONENT",
|
|
340
|
-
"key": "5652618ddd66c844ab977d083d0dc41cb98f98ae"
|
|
341
|
-
}
|
|
342
|
-
]
|
|
343
|
-
},
|
|
344
|
-
"Show Asset#45154:14": {
|
|
345
|
-
"type": "BOOLEAN"
|
|
346
|
-
},
|
|
347
|
-
"Show Buttons#53435:0": {
|
|
348
|
-
"type": "BOOLEAN"
|
|
349
|
-
},
|
|
350
|
-
"ㄴShow First Button#53766:0": {
|
|
351
|
-
"type": "BOOLEAN"
|
|
352
|
-
},
|
|
353
|
-
"ㄴShow Second Button#53766:3": {
|
|
354
|
-
"type": "BOOLEAN"
|
|
355
|
-
},
|
|
356
|
-
"Size": {
|
|
357
|
-
"type": "VARIANT",
|
|
358
|
-
"variantOptions": [
|
|
359
|
-
"Large",
|
|
360
|
-
"Medium"
|
|
361
|
-
]
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
};
|
|
365
|
-
|
|
366
324
|
declare const templateSelectBoxGroup: {
|
|
367
325
|
"name": "templateSelectBoxGroup",
|
|
368
326
|
"key": "a3d58bb8540600878742cdcf2608a4b3851667ec",
|
|
@@ -1315,17 +1273,16 @@ declare const menuSheet: {
|
|
|
1315
1273
|
"Menu Group Count": {
|
|
1316
1274
|
"type": "VARIANT",
|
|
1317
1275
|
"variantOptions": [
|
|
1276
|
+
"1",
|
|
1318
1277
|
"2",
|
|
1319
|
-
"3"
|
|
1320
|
-
"1"
|
|
1278
|
+
"3"
|
|
1321
1279
|
]
|
|
1322
1280
|
},
|
|
1323
1281
|
"Layout": {
|
|
1324
1282
|
"type": "VARIANT",
|
|
1325
1283
|
"variantOptions": [
|
|
1326
1284
|
"Text Only",
|
|
1327
|
-
"Text with Icon"
|
|
1328
|
-
"Text with Subtext"
|
|
1285
|
+
"Text with Icon"
|
|
1329
1286
|
]
|
|
1330
1287
|
}
|
|
1331
1288
|
}
|
|
@@ -1349,10 +1306,10 @@ declare const pageBanner: {
|
|
|
1349
1306
|
"type": "VARIANT",
|
|
1350
1307
|
"variantOptions": [
|
|
1351
1308
|
"Display",
|
|
1309
|
+
"Display (With Action)",
|
|
1352
1310
|
"Actionable",
|
|
1353
1311
|
"Dismissible",
|
|
1354
|
-
"
|
|
1355
|
-
"Custom"
|
|
1312
|
+
"Actionable (Custom)"
|
|
1356
1313
|
]
|
|
1357
1314
|
},
|
|
1358
1315
|
"Tone": {
|
|
@@ -1462,8 +1419,8 @@ declare const radio: {
|
|
|
1462
1419
|
}
|
|
1463
1420
|
};
|
|
1464
1421
|
|
|
1465
|
-
declare const
|
|
1466
|
-
"name": "
|
|
1422
|
+
declare const radiomark: {
|
|
1423
|
+
"name": "radiomark",
|
|
1467
1424
|
"key": "832d696d6e9566610968cd70f128f500ec009d6a",
|
|
1468
1425
|
"componentPropertyDefinitions": {
|
|
1469
1426
|
"Size": {
|
|
@@ -1541,6 +1498,75 @@ declare const reactionButton: {
|
|
|
1541
1498
|
}
|
|
1542
1499
|
};
|
|
1543
1500
|
|
|
1501
|
+
declare const resultSection: {
|
|
1502
|
+
"name": "resultSection",
|
|
1503
|
+
"key": "fabd52c41c63d921e37e0a1de373e4df2b496f30",
|
|
1504
|
+
"componentPropertyDefinitions": {
|
|
1505
|
+
"Title#16237:0": {
|
|
1506
|
+
"type": "TEXT"
|
|
1507
|
+
},
|
|
1508
|
+
"Description#16237:5": {
|
|
1509
|
+
"type": "TEXT"
|
|
1510
|
+
},
|
|
1511
|
+
"Asset Type#45154:9": {
|
|
1512
|
+
"type": "INSTANCE_SWAP",
|
|
1513
|
+
"preferredValues": [
|
|
1514
|
+
{
|
|
1515
|
+
"type": "COMPONENT",
|
|
1516
|
+
"key": "3f2ed06bd34fbaf24d371cefa973e09e2c2572bf"
|
|
1517
|
+
},
|
|
1518
|
+
{
|
|
1519
|
+
"type": "COMPONENT",
|
|
1520
|
+
"key": "bf1ad3ad5c45a2e94fd800f7f6ecbe52ba0667ab"
|
|
1521
|
+
},
|
|
1522
|
+
{
|
|
1523
|
+
"type": "COMPONENT",
|
|
1524
|
+
"key": "d357dcf0fbff80f3bfa70fe4fd5d48a9bddd1b49"
|
|
1525
|
+
},
|
|
1526
|
+
{
|
|
1527
|
+
"type": "COMPONENT",
|
|
1528
|
+
"key": "a53df434b562c1eeb04dab9abd88431989c5fc33"
|
|
1529
|
+
},
|
|
1530
|
+
{
|
|
1531
|
+
"type": "COMPONENT",
|
|
1532
|
+
"key": "5e53811a1e1444deccb5147b6a57196a3be467c9"
|
|
1533
|
+
},
|
|
1534
|
+
{
|
|
1535
|
+
"type": "COMPONENT",
|
|
1536
|
+
"key": "3ff3999d2d2bbed2c7656210793d4f083901f73b"
|
|
1537
|
+
},
|
|
1538
|
+
{
|
|
1539
|
+
"type": "COMPONENT",
|
|
1540
|
+
"key": "56fcf964b7784ca83eaf6c9b1531de6150d23a0d"
|
|
1541
|
+
},
|
|
1542
|
+
{
|
|
1543
|
+
"type": "COMPONENT",
|
|
1544
|
+
"key": "5652618ddd66c844ab977d083d0dc41cb98f98ae"
|
|
1545
|
+
}
|
|
1546
|
+
]
|
|
1547
|
+
},
|
|
1548
|
+
"Show Asset#45154:14": {
|
|
1549
|
+
"type": "BOOLEAN"
|
|
1550
|
+
},
|
|
1551
|
+
"Show Buttons#53435:0": {
|
|
1552
|
+
"type": "BOOLEAN"
|
|
1553
|
+
},
|
|
1554
|
+
"ㄴShow First Button#53766:0": {
|
|
1555
|
+
"type": "BOOLEAN"
|
|
1556
|
+
},
|
|
1557
|
+
"ㄴShow Second Button#53766:3": {
|
|
1558
|
+
"type": "BOOLEAN"
|
|
1559
|
+
},
|
|
1560
|
+
"Size": {
|
|
1561
|
+
"type": "VARIANT",
|
|
1562
|
+
"variantOptions": [
|
|
1563
|
+
"Large",
|
|
1564
|
+
"Medium"
|
|
1565
|
+
]
|
|
1566
|
+
}
|
|
1567
|
+
}
|
|
1568
|
+
};
|
|
1569
|
+
|
|
1544
1570
|
declare const segmentedControl: {
|
|
1545
1571
|
"name": "segmentedControl",
|
|
1546
1572
|
"key": "3ad7133ba52755867f42f9232375f75639e00d58",
|
|
@@ -1718,8 +1744,8 @@ declare const _switch: {
|
|
|
1718
1744
|
}
|
|
1719
1745
|
};
|
|
1720
1746
|
|
|
1721
|
-
declare const
|
|
1722
|
-
"name": "
|
|
1747
|
+
declare const switchmark: {
|
|
1748
|
+
"name": "switchmark",
|
|
1723
1749
|
"key": "bc53f269089e02a1d241e2a21ac7631bfa49834e",
|
|
1724
1750
|
"componentPropertyDefinitions": {
|
|
1725
1751
|
"Size": {
|
|
@@ -2189,9 +2215,9 @@ type MannerTempProperties = InferComponentDefinition<typeof mannerTemp.component
|
|
|
2189
2215
|
type MannerTempBadgeProperties = InferComponentDefinition<typeof mannerTempBadge.componentPropertyDefinitions>;
|
|
2190
2216
|
type ProgressCircleProperties = InferComponentDefinition<typeof progressCircle.componentPropertyDefinitions>;
|
|
2191
2217
|
type RadioProperties = InferComponentDefinition<typeof radio.componentPropertyDefinitions>;
|
|
2192
|
-
type
|
|
2218
|
+
type RadiomarkProperties = InferComponentDefinition<typeof radiomark.componentPropertyDefinitions>;
|
|
2193
2219
|
type ReactionButtonProperties = InferComponentDefinition<typeof reactionButton.componentPropertyDefinitions>;
|
|
2194
|
-
type ResultSectionProperties = InferComponentDefinition<typeof
|
|
2220
|
+
type ResultSectionProperties = InferComponentDefinition<typeof resultSection.componentPropertyDefinitions>;
|
|
2195
2221
|
type SegmentedControlProperties = InferComponentDefinition<typeof segmentedControl.componentPropertyDefinitions>;
|
|
2196
2222
|
type SegmentedControlItemProperties = InferComponentDefinition<{
|
|
2197
2223
|
"Label#11366:15": {
|
|
@@ -2221,7 +2247,7 @@ type SliderTicksProperties = InferComponentDefinition<{
|
|
|
2221
2247
|
type SliderFieldProperties = InferComponentDefinition<typeof templateSliderField.componentPropertyDefinitions>;
|
|
2222
2248
|
type SnackbarProperties = InferComponentDefinition<typeof snackbar.componentPropertyDefinitions>;
|
|
2223
2249
|
type SwitchProperties = InferComponentDefinition<typeof _switch.componentPropertyDefinitions>;
|
|
2224
|
-
type
|
|
2250
|
+
type SwitchmarkProperties = InferComponentDefinition<typeof switchmark.componentPropertyDefinitions>;
|
|
2225
2251
|
type ToggleButtonProperties = InferComponentDefinition<typeof toggleButton.componentPropertyDefinitions>;
|
|
2226
2252
|
type SelectBoxGroupProperties = InferComponentDefinition<typeof templateSelectBoxGroup.componentPropertyDefinitions>;
|
|
2227
2253
|
type SelectBoxProperties = InferComponentDefinition<typeof selectBox.componentPropertyDefinitions>;
|
|
@@ -2802,6 +2828,7 @@ interface PropsConverters {
|
|
|
2802
2828
|
shapeFill: PropsConverter<FillTrait, FillProps>;
|
|
2803
2829
|
textFill: PropsConverter<FillTrait, FillProps>;
|
|
2804
2830
|
stroke: PropsConverter<StrokeTrait, StrokeProps>;
|
|
2831
|
+
shadow: PropsConverter<ShadowTrait, ShadowProps>;
|
|
2805
2832
|
typeStyle: PropsConverter<TypeStyleTrait, TypeStyleProps>;
|
|
2806
2833
|
}
|
|
2807
2834
|
type ContainerLayoutTrait = NormalizedHasFramePropertiesTrait & NormalizedHasChildrenTrait & NormalizedHasLayoutTrait & NormalizedIsLayerTrait;
|
|
@@ -2809,6 +2836,7 @@ type SelfLayoutTrait = NormalizedIsLayerTrait & NormalizedHasLayoutTrait;
|
|
|
2809
2836
|
type RadiusTrait = NormalizedCornerTrait & NormalizedIsLayerTrait;
|
|
2810
2837
|
type FillTrait = NormalizedIsLayerTrait & NormalizedHasGeometryTrait;
|
|
2811
2838
|
type StrokeTrait = NormalizedIsLayerTrait & NormalizedHasGeometryTrait;
|
|
2839
|
+
type ShadowTrait = NormalizedIsLayerTrait & NormalizedHasEffectsTrait;
|
|
2812
2840
|
type TypeStyleTrait = NormalizedTypePropertiesTrait & NormalizedIsLayerTrait;
|
|
2813
2841
|
interface ContainerLayoutProps {
|
|
2814
2842
|
layoutMode?: "HORIZONTAL" | "VERTICAL" | "NONE";
|
|
@@ -2816,6 +2844,7 @@ interface ContainerLayoutProps {
|
|
|
2816
2844
|
counterAxisAlignItems?: "MIN" | "CENTER" | "MAX" | "BASELINE";
|
|
2817
2845
|
layoutWrap?: "WRAP" | "NO_WRAP";
|
|
2818
2846
|
itemSpacing?: number | string;
|
|
2847
|
+
counterAxisSpacing?: number | string;
|
|
2819
2848
|
paddingTop?: number | string;
|
|
2820
2849
|
paddingBottom?: number | string;
|
|
2821
2850
|
paddingLeft?: number | string;
|
|
@@ -2846,7 +2875,10 @@ interface RadiusProps {
|
|
|
2846
2875
|
}
|
|
2847
2876
|
declare function createRadiusPropsConverter(valueResolver: FigmaValueResolver): PropsConverter<RadiusTrait, RadiusProps>;
|
|
2848
2877
|
interface FillProps {
|
|
2849
|
-
fill?: string
|
|
2878
|
+
fill?: string | {
|
|
2879
|
+
value: string;
|
|
2880
|
+
direction?: string;
|
|
2881
|
+
};
|
|
2850
2882
|
}
|
|
2851
2883
|
declare function createFrameFillPropsConverter(valueResolver: FigmaValueResolver): PropsConverter<FillTrait, FillProps>;
|
|
2852
2884
|
declare function createShapeFillPropsConverter(valueResolver: FigmaValueResolver): PropsConverter<FillTrait, FillProps>;
|
|
@@ -2864,6 +2896,11 @@ interface TypeStyleProps {
|
|
|
2864
2896
|
maxLines?: number;
|
|
2865
2897
|
}
|
|
2866
2898
|
declare function createTypeStylePropsConverter(valueResolver: FigmaValueResolver): PropsConverter<TypeStyleTrait, TypeStyleProps>;
|
|
2899
|
+
interface ShadowProps {
|
|
2900
|
+
boxShadowStyle?: string;
|
|
2901
|
+
boxShadow?: string;
|
|
2902
|
+
}
|
|
2903
|
+
declare function createShadowPropsConverter(valueResolver: FigmaValueResolver): PropsConverter<ShadowTrait, ShadowProps>;
|
|
2867
2904
|
|
|
2868
2905
|
interface FrameTransformerDeps {
|
|
2869
2906
|
propsConverters: PropsConverters;
|
|
@@ -2908,6 +2945,8 @@ type index_RadiusTrait = RadiusTrait;
|
|
|
2908
2945
|
type index_RectangleTransformerDeps = RectangleTransformerDeps;
|
|
2909
2946
|
type index_SelfLayoutProps = SelfLayoutProps;
|
|
2910
2947
|
type index_SelfLayoutTrait = SelfLayoutTrait;
|
|
2948
|
+
type index_ShadowProps = ShadowProps;
|
|
2949
|
+
type index_ShadowTrait = ShadowTrait;
|
|
2911
2950
|
type index_StrokeProps = StrokeProps;
|
|
2912
2951
|
type index_StrokeTrait = StrokeTrait;
|
|
2913
2952
|
type index_TextTransformerDeps = TextTransformerDeps;
|
|
@@ -2923,6 +2962,7 @@ declare const index_createPipeline: typeof createPipeline;
|
|
|
2923
2962
|
declare const index_createRadiusPropsConverter: typeof createRadiusPropsConverter;
|
|
2924
2963
|
declare const index_createRectangleTransformer: typeof createRectangleTransformer;
|
|
2925
2964
|
declare const index_createSelfLayoutPropsConverter: typeof createSelfLayoutPropsConverter;
|
|
2965
|
+
declare const index_createShadowPropsConverter: typeof createShadowPropsConverter;
|
|
2926
2966
|
declare const index_createShapeFillPropsConverter: typeof createShapeFillPropsConverter;
|
|
2927
2967
|
declare const index_createStrokePropsConverter: typeof createStrokePropsConverter;
|
|
2928
2968
|
declare const index_createTextFillPropsConverter: typeof createTextFillPropsConverter;
|
|
@@ -2930,10 +2970,10 @@ declare const index_createTextTransformer: typeof createTextTransformer;
|
|
|
2930
2970
|
declare const index_createTypeStylePropsConverter: typeof createTypeStylePropsConverter;
|
|
2931
2971
|
declare const index_createVectorTransformer: typeof createVectorTransformer;
|
|
2932
2972
|
declare namespace index {
|
|
2933
|
-
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 };
|
|
2934
|
-
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 };
|
|
2973
|
+
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_createShadowPropsConverter as createShadowPropsConverter, index_createShapeFillPropsConverter as createShapeFillPropsConverter, index_createStrokePropsConverter as createStrokePropsConverter, index_createTextFillPropsConverter as createTextFillPropsConverter, index_createTextTransformer as createTextTransformer, index_createTypeStylePropsConverter as createTypeStylePropsConverter, index_createVectorTransformer as createVectorTransformer };
|
|
2974
|
+
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_ShadowProps as ShadowProps, index_ShadowTrait as ShadowTrait, index_StrokeProps as StrokeProps, index_StrokeTrait as StrokeTrait, index_TextTransformerDeps as TextTransformerDeps, index_TypeStyleProps as TypeStyleProps, index_TypeStyleTrait as TypeStyleTrait, index_VectorTransformerDeps as VectorTransformerDeps };
|
|
2935
2975
|
}
|
|
2936
2976
|
|
|
2937
2977
|
export { cloneElement, createCodeGenerator, createElement, createPropsConverter, createValueResolver, defineComponentHandler, defineElementTransformer, definePropsConverter, index as figma, inferLayout };
|
|
2938
|
-
export type { ActionButtonGhostProperties, ActionButtonProperties, AlertDialogFooterProperties, AlertDialogProperties, AppBarLeftIconButtonProperties, AppBarMainProperties, AppBarProperties, AppBarRightIconButtonProperties, AvatarProperties, AvatarStackProperties, BadgeProperties, BottomSheetProperties, CalloutProperties, CheckboxProperties, CheckmarkProperties, ChipIconSuffixProperties, ChipProperties, ChipTabsTriggerProperties, CodeGeneratorDeps, ComponentHandler, ComponentPropertyDefinition, ContextualFloatingButtonProperties, DividerProperties, ElementNode, ElementTransformer, FieldButtonProperties, FieldCharacterCountProperties, FieldFooterProperties, FieldHeaderProperties, FieldIndicatorProperties, FloatingActionButtonButtonItemProperties, FloatingActionButtonMenuItemProperties, FloatingActionButtonProperties, GenericFieldButtonProps, HelpBubbleProperties, IdentityPlaceholderProperties, InferComponentDefinition, InferComponentPropertyType, InputButtonPrefixProperties, InputButtonProperties, InputButtonSuffixProperties, LegacyMultilineTextFieldProperties, LegacyTextFieldProperties, ListHeaderProperties, ListItemPrefixIconProperties, ListItemProperties, ListItemSuffixIconProperties, MannerTempBadgeProperties, MannerTempProperties, MenuSheetGroupProperties, MenuSheetItemProperties, MenuSheetProperties, PageBannerButtonProperties, PageBannerProperties, ProgressCircleProperties, PropsConverter,
|
|
2978
|
+
export type { ActionButtonGhostProperties, ActionButtonProperties, AlertDialogFooterProperties, AlertDialogProperties, AppBarLeftIconButtonProperties, AppBarMainProperties, AppBarProperties, AppBarRightIconButtonProperties, AvatarProperties, AvatarStackProperties, BadgeProperties, BottomSheetProperties, CalloutProperties, CheckboxProperties, CheckmarkProperties, ChipIconSuffixProperties, ChipProperties, ChipTabsTriggerProperties, CodeGeneratorDeps, ComponentHandler, ComponentPropertyDefinition, ContextualFloatingButtonProperties, DividerProperties, ElementNode, ElementTransformer, FieldButtonProperties, FieldCharacterCountProperties, FieldFooterProperties, FieldHeaderProperties, FieldIndicatorProperties, FloatingActionButtonButtonItemProperties, FloatingActionButtonMenuItemProperties, FloatingActionButtonProperties, GenericFieldButtonProps, HelpBubbleProperties, IdentityPlaceholderProperties, InferComponentDefinition, InferComponentPropertyType, InputButtonPrefixProperties, InputButtonProperties, InputButtonSuffixProperties, LegacyMultilineTextFieldProperties, LegacyTextFieldProperties, ListHeaderProperties, ListItemPrefixIconProperties, ListItemProperties, ListItemSuffixIconProperties, MannerTempBadgeProperties, MannerTempProperties, MenuSheetGroupProperties, MenuSheetItemProperties, MenuSheetProperties, PageBannerButtonProperties, PageBannerProperties, ProgressCircleProperties, PropsConverter, RadioProperties, RadiomarkProperties, ReactionButtonProperties, ResultSectionProperties, SegmentedControlItemProperties, SegmentedControlProperties, SelectBoxGroupProperties, SelectBoxProperties, SkeletonProperties, SliderFieldProperties, SliderProperties, SliderTicksProperties, SnackbarProperties, SwitchProperties, SwitchmarkProperties, TabsChipWrapperProperties, TabsLineTriggerFillProperties, TabsLineTriggerHugProperties, TabsLineWrapperProperties, TabsProperties, TagGroupItemProperties, TagGroupProperties, TextInputFieldProperties, TextInputOutlinePrefixProperties, TextInputOutlineProperties, TextInputOutlineSuffixProperties, TextInputUnderlinePrefixProperties, TextInputUnderlineProperties, TextInputUnderlineSuffixProperties, TextareaFieldProperties, TextareaProperties, ToggleButtonProperties, ValueResolver };
|
|
2939
2979
|
//# sourceMappingURL=index.d.ts.map
|