@seed-design/figma 1.0.6-alpha-20251021104301 β 1.0.7
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 +43 -18
- package/lib/codegen/index.d.ts +71 -9
- package/lib/codegen/index.d.ts.map +1 -1
- package/lib/codegen/index.js +43 -18
- package/lib/codegen/targets/react/index.cjs +105 -18
- package/lib/codegen/targets/react/index.d.ts.map +1 -1
- package/lib/codegen/targets/react/index.js +105 -18
- package/lib/index.cjs +43 -18
- package/lib/index.js +43 -18
- package/package.json +2 -2
- package/src/codegen/component-properties.ts +42 -1
- package/src/codegen/targets/react/component/handlers/tag-group.ts +92 -0
- package/src/codegen/targets/react/component/index.ts +6 -0
- package/src/entities/data/__generated__/component-sets/index.d.ts +33 -8
- package/src/entities/data/__generated__/component-sets/index.mjs +32 -7
- package/src/entities/data/__generated__/variable-collections/index.mjs +5 -5
- package/src/entities/data/__generated__/variables/index.mjs +6 -6
package/lib/codegen/index.cjs
CHANGED
|
@@ -1017,11 +1017,11 @@ const FIGMA_VARIABLE_COLLECTIONS = {
|
|
|
1017
1017
|
"VariableID:1:155",
|
|
1018
1018
|
"VariableID:1:156",
|
|
1019
1019
|
"VariableID:1:164",
|
|
1020
|
-
"VariableID:1:165",
|
|
1021
1020
|
"VariableID:1:157",
|
|
1022
|
-
"VariableID:1:
|
|
1021
|
+
"VariableID:1:165",
|
|
1023
1022
|
"VariableID:238:17662",
|
|
1024
1023
|
"VariableID:17544:4057",
|
|
1024
|
+
"VariableID:1:171",
|
|
1025
1025
|
"VariableID:41186:6437",
|
|
1026
1026
|
"VariableID:670:2700",
|
|
1027
1027
|
"VariableID:1:158",
|
|
@@ -1098,14 +1098,14 @@ const FIGMA_VARIABLE_COLLECTIONS = {
|
|
|
1098
1098
|
"VariableID:14609:41561",
|
|
1099
1099
|
"VariableID:14609:41562",
|
|
1100
1100
|
"VariableID:14609:41563",
|
|
1101
|
-
"VariableID:29453:35711",
|
|
1102
1101
|
"VariableID:12548:1440",
|
|
1102
|
+
"VariableID:29453:35711",
|
|
1103
1103
|
"VariableID:29453:35712",
|
|
1104
1104
|
"VariableID:12548:1441",
|
|
1105
1105
|
"VariableID:12548:1442",
|
|
1106
1106
|
"VariableID:12548:1443",
|
|
1107
|
-
"VariableID:12548:1444",
|
|
1108
1107
|
"VariableID:1:21",
|
|
1108
|
+
"VariableID:12548:1444",
|
|
1109
1109
|
"VariableID:12548:1445",
|
|
1110
1110
|
"VariableID:1:30",
|
|
1111
1111
|
"VariableID:1883:92912",
|
|
@@ -1363,9 +1363,9 @@ const FIGMA_VARIABLE_COLLECTIONS = {
|
|
|
1363
1363
|
"VariableID:289:13772",
|
|
1364
1364
|
"VariableID:1886:93038",
|
|
1365
1365
|
"VariableID:289:13773",
|
|
1366
|
-
"VariableID:796:4448",
|
|
1367
1366
|
"VariableID:15518:15916",
|
|
1368
1367
|
"VariableID:19225:68732",
|
|
1368
|
+
"VariableID:796:4448",
|
|
1369
1369
|
"VariableID:17955:50606",
|
|
1370
1370
|
"VariableID:514:13178",
|
|
1371
1371
|
"VariableID:535:1747",
|
|
@@ -4677,9 +4677,9 @@ const FIGMA_VARIABLES = {
|
|
|
4677
4677
|
"hiddenFromPublishing": false,
|
|
4678
4678
|
"valuesByMode": {
|
|
4679
4679
|
"1928:7": {
|
|
4680
|
-
"r":
|
|
4681
|
-
"g": 0.
|
|
4682
|
-
"b": 0.
|
|
4680
|
+
"r": 0.9919999837875366,
|
|
4681
|
+
"g": 0.9279999732971191,
|
|
4682
|
+
"b": 0.9301332831382751,
|
|
4683
4683
|
"a": 1
|
|
4684
4684
|
},
|
|
4685
4685
|
"1928:8": {
|
|
@@ -4705,9 +4705,9 @@ const FIGMA_VARIABLES = {
|
|
|
4705
4705
|
"hiddenFromPublishing": false,
|
|
4706
4706
|
"valuesByMode": {
|
|
4707
4707
|
"1928:7": {
|
|
4708
|
-
"r": 0.
|
|
4709
|
-
"g": 0.
|
|
4710
|
-
"b": 0.
|
|
4708
|
+
"r": 0.9079999923706055,
|
|
4709
|
+
"g": 0.171999990940094,
|
|
4710
|
+
"b": 0.2701333165168762,
|
|
4711
4711
|
"a": 1
|
|
4712
4712
|
},
|
|
4713
4713
|
"1928:8": {
|
|
@@ -8331,11 +8331,11 @@ const actionButton = {
|
|
|
8331
8331
|
"type": "VARIANT",
|
|
8332
8332
|
"variantOptions": [
|
|
8333
8333
|
"Neutral Solid",
|
|
8334
|
-
"Neutral Weak",
|
|
8335
|
-
"Neutral Outline",
|
|
8336
8334
|
"Brand Solid",
|
|
8335
|
+
"Critical Solid",
|
|
8336
|
+
"Neutral Weak",
|
|
8337
8337
|
"Brand Outline",
|
|
8338
|
-
"
|
|
8338
|
+
"Neutral Outline"
|
|
8339
8339
|
]
|
|
8340
8340
|
},
|
|
8341
8341
|
"State": {
|
|
@@ -8591,9 +8591,10 @@ const callout = {
|
|
|
8591
8591
|
"variantOptions": [
|
|
8592
8592
|
"Neutral",
|
|
8593
8593
|
"Informative",
|
|
8594
|
-
"Warning",
|
|
8595
8594
|
"Critical",
|
|
8596
|
-
"
|
|
8595
|
+
"Warning",
|
|
8596
|
+
"Magic",
|
|
8597
|
+
"Positive"
|
|
8597
8598
|
]
|
|
8598
8599
|
},
|
|
8599
8600
|
"Show Title": {
|
|
@@ -9389,8 +9390,8 @@ const radio = {
|
|
|
9389
9390
|
"Tone": {
|
|
9390
9391
|
"type": "VARIANT",
|
|
9391
9392
|
"variantOptions": [
|
|
9392
|
-
"
|
|
9393
|
-
"
|
|
9393
|
+
"Neutral",
|
|
9394
|
+
"π«[Deprecated]Brand"
|
|
9394
9395
|
]
|
|
9395
9396
|
},
|
|
9396
9397
|
"Weight": {
|
|
@@ -9799,6 +9800,29 @@ const tabs = {
|
|
|
9799
9800
|
}
|
|
9800
9801
|
}
|
|
9801
9802
|
};
|
|
9803
|
+
const tagGroup = {
|
|
9804
|
+
"name": "tagGroup",
|
|
9805
|
+
"key": "30d4c37f3bc5f292633cf0aba9a0b640d31ec301",
|
|
9806
|
+
"componentPropertyDefinitions": {
|
|
9807
|
+
"Size": {
|
|
9808
|
+
"type": "VARIANT",
|
|
9809
|
+
"variantOptions": [
|
|
9810
|
+
"t2(12pt)",
|
|
9811
|
+
"t3(13pt)",
|
|
9812
|
+
"t4(14pt)"
|
|
9813
|
+
]
|
|
9814
|
+
},
|
|
9815
|
+
"Tag Count": {
|
|
9816
|
+
"type": "VARIANT",
|
|
9817
|
+
"variantOptions": [
|
|
9818
|
+
"1",
|
|
9819
|
+
"2",
|
|
9820
|
+
"3",
|
|
9821
|
+
"4"
|
|
9822
|
+
]
|
|
9823
|
+
}
|
|
9824
|
+
}
|
|
9825
|
+
};
|
|
9802
9826
|
const textField = {
|
|
9803
9827
|
"name": "textField",
|
|
9804
9828
|
"key": "c49873c37a639f0dffdea4efd0eb43760d66c141",
|
|
@@ -10038,6 +10062,7 @@ var FIGMA_COMPONENTS = {
|
|
|
10038
10062
|
superscriptChild: superscriptChild,
|
|
10039
10063
|
switchMark: switchMark,
|
|
10040
10064
|
tabs: tabs,
|
|
10065
|
+
tagGroup: tagGroup,
|
|
10041
10066
|
templateBannerDetach: templateBannerDetach,
|
|
10042
10067
|
templateButtonGroup: templateButtonGroup,
|
|
10043
10068
|
templateChipGroup: templateChipGroup,
|
package/lib/codegen/index.d.ts
CHANGED
|
@@ -364,11 +364,11 @@ declare const actionButton: {
|
|
|
364
364
|
"type": "VARIANT",
|
|
365
365
|
"variantOptions": [
|
|
366
366
|
"Neutral Solid",
|
|
367
|
-
"Neutral Weak",
|
|
368
|
-
"Neutral Outline",
|
|
369
367
|
"Brand Solid",
|
|
368
|
+
"Critical Solid",
|
|
369
|
+
"Neutral Weak",
|
|
370
370
|
"Brand Outline",
|
|
371
|
-
"
|
|
371
|
+
"Neutral Outline"
|
|
372
372
|
]
|
|
373
373
|
},
|
|
374
374
|
"State": {
|
|
@@ -591,9 +591,10 @@ declare const callout: {
|
|
|
591
591
|
"variantOptions": [
|
|
592
592
|
"Neutral",
|
|
593
593
|
"Informative",
|
|
594
|
-
"Warning",
|
|
595
594
|
"Critical",
|
|
596
|
-
"
|
|
595
|
+
"Warning",
|
|
596
|
+
"Magic",
|
|
597
|
+
"Positive"
|
|
597
598
|
]
|
|
598
599
|
},
|
|
599
600
|
"Show Title": {
|
|
@@ -1342,8 +1343,8 @@ declare const radio: {
|
|
|
1342
1343
|
"Tone": {
|
|
1343
1344
|
"type": "VARIANT",
|
|
1344
1345
|
"variantOptions": [
|
|
1345
|
-
"
|
|
1346
|
-
"
|
|
1346
|
+
"Neutral",
|
|
1347
|
+
"π«[Deprecated]Brand"
|
|
1347
1348
|
]
|
|
1348
1349
|
},
|
|
1349
1350
|
"Weight": {
|
|
@@ -1646,6 +1647,30 @@ declare const tabs: {
|
|
|
1646
1647
|
}
|
|
1647
1648
|
};
|
|
1648
1649
|
|
|
1650
|
+
declare const tagGroup: {
|
|
1651
|
+
"name": "tagGroup",
|
|
1652
|
+
"key": "30d4c37f3bc5f292633cf0aba9a0b640d31ec301",
|
|
1653
|
+
"componentPropertyDefinitions": {
|
|
1654
|
+
"Size": {
|
|
1655
|
+
"type": "VARIANT",
|
|
1656
|
+
"variantOptions": [
|
|
1657
|
+
"t2(12pt)",
|
|
1658
|
+
"t3(13pt)",
|
|
1659
|
+
"t4(14pt)"
|
|
1660
|
+
]
|
|
1661
|
+
},
|
|
1662
|
+
"Tag Count": {
|
|
1663
|
+
"type": "VARIANT",
|
|
1664
|
+
"variantOptions": [
|
|
1665
|
+
"1",
|
|
1666
|
+
"2",
|
|
1667
|
+
"3",
|
|
1668
|
+
"4"
|
|
1669
|
+
]
|
|
1670
|
+
}
|
|
1671
|
+
}
|
|
1672
|
+
};
|
|
1673
|
+
|
|
1649
1674
|
declare const textField: {
|
|
1650
1675
|
"name": "textField",
|
|
1651
1676
|
"key": "c49873c37a639f0dffdea4efd0eb43760d66c141",
|
|
@@ -2242,7 +2267,7 @@ type TabsChipWrapperProperties = InferComponentDefinition<{
|
|
|
2242
2267
|
};
|
|
2243
2268
|
}>;
|
|
2244
2269
|
type ChipTabsTriggerProperties = InferComponentDefinition<{
|
|
2245
|
-
|
|
2270
|
+
Size: {
|
|
2246
2271
|
type: "VARIANT";
|
|
2247
2272
|
defaultValue: "Medium";
|
|
2248
2273
|
variantOptions: ["Medium", "Large"];
|
|
@@ -2263,6 +2288,43 @@ type ChipTabsTriggerProperties = InferComponentDefinition<{
|
|
|
2263
2288
|
variantOptions: ["False", "True"];
|
|
2264
2289
|
};
|
|
2265
2290
|
}>;
|
|
2291
|
+
type TagGroupProperties = InferComponentDefinition<typeof tagGroup.componentPropertyDefinitions>;
|
|
2292
|
+
type TagGroupItemProperties = InferComponentDefinition<{
|
|
2293
|
+
"Label#5409:0": {
|
|
2294
|
+
type: "TEXT";
|
|
2295
|
+
defaultValue: "λΌλ²¨";
|
|
2296
|
+
};
|
|
2297
|
+
"Prefix Icon#47948:0": {
|
|
2298
|
+
type: "INSTANCE_SWAP";
|
|
2299
|
+
defaultValue: "26621:23540";
|
|
2300
|
+
preferredValues: [];
|
|
2301
|
+
};
|
|
2302
|
+
"Suffix Icon#47948:55": {
|
|
2303
|
+
type: "INSTANCE_SWAP";
|
|
2304
|
+
defaultValue: "27053:2268";
|
|
2305
|
+
preferredValues: [];
|
|
2306
|
+
};
|
|
2307
|
+
Size: {
|
|
2308
|
+
type: "VARIANT";
|
|
2309
|
+
defaultValue: "t2(12pt)";
|
|
2310
|
+
variantOptions: ["t2(12pt)", "t3(13pt)", "t4(14pt)"];
|
|
2311
|
+
};
|
|
2312
|
+
Layout: {
|
|
2313
|
+
type: "VARIANT";
|
|
2314
|
+
defaultValue: "Text Only";
|
|
2315
|
+
variantOptions: ["Text Only", "Icon First", "Icon Last"];
|
|
2316
|
+
};
|
|
2317
|
+
Tone: {
|
|
2318
|
+
type: "VARIANT";
|
|
2319
|
+
defaultValue: "Neutral Subtle";
|
|
2320
|
+
variantOptions: ["Neutral Subtle", "Brand", "Neutral"];
|
|
2321
|
+
};
|
|
2322
|
+
Weight: {
|
|
2323
|
+
type: "VARIANT";
|
|
2324
|
+
defaultValue: "Regular";
|
|
2325
|
+
variantOptions: ["Regular", "Bold"];
|
|
2326
|
+
};
|
|
2327
|
+
}>;
|
|
2266
2328
|
|
|
2267
2329
|
interface CreatePipelineConfig {
|
|
2268
2330
|
shouldInferAutoLayout?: boolean;
|
|
@@ -2416,5 +2478,5 @@ declare namespace index {
|
|
|
2416
2478
|
}
|
|
2417
2479
|
|
|
2418
2480
|
export { cloneElement, createCodeGenerator, createElement, createPropsConverter, createValueResolver, defineComponentHandler, defineElementTransformer, definePropsConverter, index as figma, inferLayout };
|
|
2419
|
-
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, ErrorStateProperties, FloatingActionButtonButtonItemProperties, FloatingActionButtonMenuItemProperties, FloatingActionButtonProperties, HelpBubbleProperties, IdentityPlaceholderProperties, InferComponentDefinition, InferComponentPropertyType, ListHeaderProperties, ListItemPrefixIconProperties, ListItemProperties, ListItemSuffixIconProperties, MannerTempBadgeProperties, MannerTempProperties, MenuSheetGroupProperties, MenuSheetItemProperties, MenuSheetProperties, MultilineTextFieldProperties, PageBannerButtonProperties, PageBannerProperties, ProgressCircleProperties, PropsConverter, RadioMarkProperties, RadioProperties, ReactionButtonProperties, SegmentedControlItemProperties, SegmentedControlProperties, SelectBoxGroupProperties, SelectBoxProperties, SkeletonProperties, SnackbarProperties, SwitchMarkProperties, SwitchProperties, TabsChipWrapperProperties, TabsLineTriggerFillProperties, TabsLineTriggerHugProperties, TabsLineWrapperProperties, TabsProperties, TextFieldProperties, ToggleButtonProperties, ValueResolver };
|
|
2481
|
+
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, ErrorStateProperties, FloatingActionButtonButtonItemProperties, FloatingActionButtonMenuItemProperties, FloatingActionButtonProperties, HelpBubbleProperties, IdentityPlaceholderProperties, InferComponentDefinition, InferComponentPropertyType, ListHeaderProperties, ListItemPrefixIconProperties, ListItemProperties, ListItemSuffixIconProperties, MannerTempBadgeProperties, MannerTempProperties, MenuSheetGroupProperties, MenuSheetItemProperties, MenuSheetProperties, MultilineTextFieldProperties, PageBannerButtonProperties, PageBannerProperties, ProgressCircleProperties, PropsConverter, RadioMarkProperties, RadioProperties, ReactionButtonProperties, SegmentedControlItemProperties, SegmentedControlProperties, SelectBoxGroupProperties, SelectBoxProperties, SkeletonProperties, SnackbarProperties, SwitchMarkProperties, SwitchProperties, TabsChipWrapperProperties, TabsLineTriggerFillProperties, TabsLineTriggerHugProperties, TabsLineWrapperProperties, TabsProperties, TagGroupItemProperties, TagGroupProperties, TextFieldProperties, ToggleButtonProperties, ValueResolver };
|
|
2420
2482
|
//# sourceMappingURL=index.d.ts.map
|