@seed-design/figma 1.1.16 → 1.1.18
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 +291 -58
- package/lib/codegen/index.d.ts +34 -65
- package/lib/codegen/index.d.ts.map +1 -1
- package/lib/codegen/index.js +291 -58
- package/lib/codegen/targets/react/index.cjs +389 -126
- package/lib/codegen/targets/react/index.d.ts.map +1 -1
- package/lib/codegen/targets/react/index.js +389 -126
- package/lib/index.cjs +317 -59
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +317 -59
- package/package.json +3 -3
- package/src/codegen/component-properties.ts +35 -8
- package/src/codegen/targets/react/component/handlers/{select-box.ts → legacy-select-box.ts} +23 -12
- package/src/codegen/targets/react/component/handlers/legacy-text-field.ts +4 -2
- package/src/codegen/targets/react/component/index.ts +8 -3
- package/src/entities/data/__generated__/component-sets/index.d.ts +170 -53
- package/src/entities/data/__generated__/component-sets/index.mjs +170 -53
- package/src/entities/data/__generated__/components/index.d.ts +0 -13
- package/src/entities/data/__generated__/components/index.mjs +0 -13
- package/src/entities/data/__generated__/icons/index.mjs +24 -0
- package/src/entities/data/__generated__/variable-collections/index.mjs +9 -4
- package/src/entities/data/__generated__/variables/index.mjs +111 -0
- package/src/normalizer/from-rest.ts +2 -1
|
@@ -1082,6 +1082,54 @@ export const FIGMA_VARIABLES = {
|
|
|
1082
1082
|
],
|
|
1083
1083
|
"codeSyntax": {}
|
|
1084
1084
|
},
|
|
1085
|
+
"VariableID:59176:2": {
|
|
1086
|
+
"name": "bg/neutral-weak-alpha",
|
|
1087
|
+
"id": "VariableID:59176:2",
|
|
1088
|
+
"remote": false,
|
|
1089
|
+
"key": "082218bada1fc4e2688ad59f30a980c191caf7b7",
|
|
1090
|
+
"variableCollectionId": "VariableCollectionId:1:3",
|
|
1091
|
+
"resolvedType": "COLOR",
|
|
1092
|
+
"description": "",
|
|
1093
|
+
"hiddenFromPublishing": false,
|
|
1094
|
+
"valuesByMode": {
|
|
1095
|
+
"1928:7": {
|
|
1096
|
+
"type": "VARIABLE_ALIAS",
|
|
1097
|
+
"id": "VariableID:30894:36296"
|
|
1098
|
+
},
|
|
1099
|
+
"1928:8": {
|
|
1100
|
+
"type": "VARIABLE_ALIAS",
|
|
1101
|
+
"id": "VariableID:30894:36307"
|
|
1102
|
+
}
|
|
1103
|
+
},
|
|
1104
|
+
"scopes": [
|
|
1105
|
+
"ALL_SCOPES"
|
|
1106
|
+
],
|
|
1107
|
+
"codeSyntax": {}
|
|
1108
|
+
},
|
|
1109
|
+
"VariableID:59176:3": {
|
|
1110
|
+
"name": "bg/neutral-weak-alpha-pressed",
|
|
1111
|
+
"id": "VariableID:59176:3",
|
|
1112
|
+
"remote": false,
|
|
1113
|
+
"key": "b67dd2511e5e4f41e0e392925fcccc752c67631f",
|
|
1114
|
+
"variableCollectionId": "VariableCollectionId:1:3",
|
|
1115
|
+
"resolvedType": "COLOR",
|
|
1116
|
+
"description": "",
|
|
1117
|
+
"hiddenFromPublishing": false,
|
|
1118
|
+
"valuesByMode": {
|
|
1119
|
+
"1928:7": {
|
|
1120
|
+
"type": "VARIABLE_ALIAS",
|
|
1121
|
+
"id": "VariableID:30894:36297"
|
|
1122
|
+
},
|
|
1123
|
+
"1928:8": {
|
|
1124
|
+
"type": "VARIABLE_ALIAS",
|
|
1125
|
+
"id": "VariableID:30894:36308"
|
|
1126
|
+
}
|
|
1127
|
+
},
|
|
1128
|
+
"scopes": [
|
|
1129
|
+
"ALL_SCOPES"
|
|
1130
|
+
],
|
|
1131
|
+
"codeSyntax": {}
|
|
1132
|
+
},
|
|
1085
1133
|
"VariableID:1:161": {
|
|
1086
1134
|
"name": "bg/neutral-weak-pressed",
|
|
1087
1135
|
"id": "VariableID:1:161",
|
|
@@ -1406,6 +1454,69 @@ export const FIGMA_VARIABLES = {
|
|
|
1406
1454
|
],
|
|
1407
1455
|
"codeSyntax": {}
|
|
1408
1456
|
},
|
|
1457
|
+
"VariableID:58766:15459": {
|
|
1458
|
+
"name": "Component utility (Figma Only)/Select Box/1-column",
|
|
1459
|
+
"id": "VariableID:58766:15459",
|
|
1460
|
+
"remote": false,
|
|
1461
|
+
"key": "676178acd6e038ee5fe034a25818c16a4670a5b1",
|
|
1462
|
+
"variableCollectionId": "VariableCollectionId:1:197",
|
|
1463
|
+
"resolvedType": "FLOAT",
|
|
1464
|
+
"description": "(preview-width - x3 ) / 1 값입니다.",
|
|
1465
|
+
"hiddenFromPublishing": false,
|
|
1466
|
+
"valuesByMode": {
|
|
1467
|
+
"1:5": 358,
|
|
1468
|
+
"1:6": 358,
|
|
1469
|
+
"1:7": 358,
|
|
1470
|
+
"1:8": 358,
|
|
1471
|
+
"51907:0": 358
|
|
1472
|
+
},
|
|
1473
|
+
"scopes": [
|
|
1474
|
+
"ALL_SCOPES"
|
|
1475
|
+
],
|
|
1476
|
+
"codeSyntax": {}
|
|
1477
|
+
},
|
|
1478
|
+
"VariableID:58766:15458": {
|
|
1479
|
+
"name": "Component utility (Figma Only)/Select Box/2-column",
|
|
1480
|
+
"id": "VariableID:58766:15458",
|
|
1481
|
+
"remote": false,
|
|
1482
|
+
"key": "932afae9533322f9192fc8274b77a547d42a8804",
|
|
1483
|
+
"variableCollectionId": "VariableCollectionId:1:197",
|
|
1484
|
+
"resolvedType": "FLOAT",
|
|
1485
|
+
"description": "(preview-width - x3 ) / 2 값입니다.",
|
|
1486
|
+
"hiddenFromPublishing": false,
|
|
1487
|
+
"valuesByMode": {
|
|
1488
|
+
"1:5": 173,
|
|
1489
|
+
"1:6": 173,
|
|
1490
|
+
"1:7": 173,
|
|
1491
|
+
"1:8": 173,
|
|
1492
|
+
"51907:0": 173
|
|
1493
|
+
},
|
|
1494
|
+
"scopes": [
|
|
1495
|
+
"ALL_SCOPES"
|
|
1496
|
+
],
|
|
1497
|
+
"codeSyntax": {}
|
|
1498
|
+
},
|
|
1499
|
+
"VariableID:58766:15457": {
|
|
1500
|
+
"name": "Component utility (Figma Only)/Select Box/3-column",
|
|
1501
|
+
"id": "VariableID:58766:15457",
|
|
1502
|
+
"remote": false,
|
|
1503
|
+
"key": "f2cf2dfa2088f54ceafd7206b47bc2d3dbb057b0",
|
|
1504
|
+
"variableCollectionId": "VariableCollectionId:1:197",
|
|
1505
|
+
"resolvedType": "FLOAT",
|
|
1506
|
+
"description": "(preview-width - x3 ) / 3 값입니다.",
|
|
1507
|
+
"hiddenFromPublishing": false,
|
|
1508
|
+
"valuesByMode": {
|
|
1509
|
+
"1:5": 111.33000183105469,
|
|
1510
|
+
"1:6": 111.33000183105469,
|
|
1511
|
+
"1:7": 111.33000183105469,
|
|
1512
|
+
"1:8": 111.33000183105469,
|
|
1513
|
+
"51907:0": 111.33000183105469
|
|
1514
|
+
},
|
|
1515
|
+
"scopes": [
|
|
1516
|
+
"ALL_SCOPES"
|
|
1517
|
+
],
|
|
1518
|
+
"codeSyntax": {}
|
|
1519
|
+
},
|
|
1409
1520
|
"VariableID:6421:24605": {
|
|
1410
1521
|
"name": "dimension/spacing-x/between-chips",
|
|
1411
1522
|
"id": "VariableID:6421:24605",
|
|
@@ -151,7 +151,8 @@ export function createRestNormalizer(
|
|
|
151
151
|
const { type, color, offset, radius, spread, boundVariables } = effect;
|
|
152
152
|
|
|
153
153
|
return {
|
|
154
|
-
|
|
154
|
+
// remove fallback when resolved: https://github.com/figma/rest-api-spec/issues/84
|
|
155
|
+
type: type ?? "INNER_SHADOW",
|
|
155
156
|
color,
|
|
156
157
|
offset,
|
|
157
158
|
radius,
|