@seed-design/figma 1.1.0 → 1.1.3
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 +366 -286
- package/lib/codegen/index.d.ts +663 -256
- package/lib/codegen/index.d.ts.map +1 -1
- package/lib/codegen/index.js +366 -286
- package/lib/codegen/targets/react/index.cjs +1155 -542
- package/lib/codegen/targets/react/index.d.ts.map +1 -1
- package/lib/codegen/targets/react/index.js +1155 -542
- package/lib/index.cjs +394 -286
- package/lib/index.js +394 -286
- package/package.json +2 -2
- package/src/codegen/component-properties.ts +496 -103
- package/src/codegen/targets/react/component/handlers/bottom-sheet.ts +2 -3
- package/src/codegen/targets/react/component/handlers/error-state.ts +18 -6
- package/src/codegen/targets/react/component/handlers/field-button.ts +197 -0
- package/src/codegen/targets/react/component/handlers/field.ts +167 -0
- package/src/codegen/targets/react/component/handlers/legacy-text-field.ts +196 -0
- package/src/codegen/targets/react/component/handlers/slider.ts +114 -0
- package/src/codegen/targets/react/component/handlers/text-field.ts +245 -92
- package/src/codegen/targets/react/component/index.ts +48 -23
- package/src/codegen/targets/react/element-factories.ts +1 -1
- package/src/codegen/targets/react/instance.ts +23 -2
- package/src/entities/data/__generated__/component-sets/index.d.ts +225 -222
- package/src/entities/data/__generated__/component-sets/index.mjs +225 -222
- package/src/entities/data/__generated__/components/index.d.ts +121 -0
- package/src/entities/data/__generated__/components/index.mjs +121 -0
- package/src/entities/data/__generated__/icons/index.mjs +28 -0
- package/src/entities/data/__generated__/styles/index.mjs +0 -56
- package/src/entities/data/__generated__/variable-collections/index.mjs +11 -8
- package/src/entities/data/__generated__/variables/index.mjs +130 -0
- package/src/codegen/targets/react/component/handlers/multiline-text-field.ts +0 -84
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
export const templateAddressPickerField = {
|
|
2
|
+
"name": "templateAddressPickerField",
|
|
3
|
+
"key": "a6cb0e888094d95ca0e9862f4775b34407b3611d"
|
|
4
|
+
};
|
|
5
|
+
|
|
6
|
+
export const templateDatePickerField = {
|
|
7
|
+
"name": "templateDatePickerField",
|
|
8
|
+
"key": "9fac6c04140c81cdb2e446979952381f1afc0e1a"
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export const templateFilterBar = {
|
|
12
|
+
"name": "templateFilterBar",
|
|
13
|
+
"key": "52ffefa44ac247120a69d1787278d1d90b7f370d",
|
|
14
|
+
"componentPropertyDefinitions": {
|
|
15
|
+
"Show Clear Button#32562:362": {
|
|
16
|
+
"type": "BOOLEAN"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export const templateInformationList = {
|
|
22
|
+
"name": "templateInformationList",
|
|
23
|
+
"key": "a111395555825f77d152f84e047e5e798fb53023"
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export const templateSelectField = {
|
|
27
|
+
"name": "templateSelectField",
|
|
28
|
+
"key": "a43d16a5c3cbb5fe22ca230d6a28338da21c7562"
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export const templateTimePickerField = {
|
|
32
|
+
"name": "templateTimePickerField",
|
|
33
|
+
"key": "0ee0729eb92d55acfa557e8fe3f0a21a0e43f117"
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export const bottomSheetContentsAgreement = {
|
|
37
|
+
"name": "bottomSheetContentsAgreement",
|
|
38
|
+
"key": "8670afb7520ac44dfed003e3e9c7cce359897d0c"
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export const bottomSheetContentsFilter = {
|
|
42
|
+
"name": "bottomSheetContentsFilter",
|
|
43
|
+
"key": "e3d337e6eddbe9ec025fe69520c1cff0bd697b60"
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export const bottomSheetContentsImage = {
|
|
47
|
+
"name": "bottomSheetContentsImage",
|
|
48
|
+
"key": "5c5369d9c22115fd240d7b75ac2a334e9163ea57"
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export const bottomSheetContentsRange = {
|
|
52
|
+
"name": "bottomSheetContentsRange",
|
|
53
|
+
"key": "088624580ee501efed377bb4f42561a387db5699"
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
export const bottomSheetContentsSorting = {
|
|
57
|
+
"name": "bottomSheetContentsSorting",
|
|
58
|
+
"key": "0c6c58d5b7a159e7db1a0c1ccf32916ca8a51164"
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
export const skeletonPreSetArticle = {
|
|
62
|
+
"name": "skeletonPreSetArticle",
|
|
63
|
+
"key": "b2eb24c235dbb3ceea3a13cc018a083e0707fe6b"
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
export const skeletonPreSetItemCard = {
|
|
67
|
+
"name": "skeletonPreSetItemCard",
|
|
68
|
+
"key": "72da2ecdc0f5f17fc0c59eac16ccf82960c70db9"
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
export const skeletonPreSetItemCarousel = {
|
|
72
|
+
"name": "skeletonPreSetItemCarousel",
|
|
73
|
+
"key": "d92b2942bc9e079cb31fa055a1628e497a8cda8c"
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
export const skeletonPreSetList = {
|
|
77
|
+
"name": "skeletonPreSetList",
|
|
78
|
+
"key": "e03cc22ade0cf5db55d0ecea0a51c8424f05410c"
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
export const skeletonPreSetProfileLarge = {
|
|
82
|
+
"name": "skeletonPreSetProfileLarge",
|
|
83
|
+
"key": "36103a3dedc41b788a381dc362e90cb19fa907ce"
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
export const skeletonPreSetProfileSmall = {
|
|
87
|
+
"name": "skeletonPreSetProfileSmall",
|
|
88
|
+
"key": "090506ac39352cfb1bee415a404fd3d306744c27"
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
export const skeletonPreSetReview = {
|
|
92
|
+
"name": "skeletonPreSetReview",
|
|
93
|
+
"key": "faf975727deaeab9e16ddd915e6a1bc48ddb5bca"
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
export const field = {
|
|
97
|
+
"name": "field",
|
|
98
|
+
"key": "115bf75562fd6e434a8e22026f86bbc450902f18",
|
|
99
|
+
"componentPropertyDefinitions": {
|
|
100
|
+
"Input#40606:0": {
|
|
101
|
+
"type": "INSTANCE_SWAP",
|
|
102
|
+
"preferredValues": []
|
|
103
|
+
},
|
|
104
|
+
"Show Header#40606:1": {
|
|
105
|
+
"type": "BOOLEAN"
|
|
106
|
+
},
|
|
107
|
+
"Show Footer#40606:2": {
|
|
108
|
+
"type": "BOOLEAN"
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
export const icon = {
|
|
114
|
+
"name": "icon",
|
|
115
|
+
"key": "598895dbeb853cbfff37bd50ddc65874375fc1b1"
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
export const iOsSelection = {
|
|
119
|
+
"name": "iOsSelection",
|
|
120
|
+
"key": "c348849476b058d7d24fe7588c81b1af1b46befe"
|
|
121
|
+
};
|
|
@@ -1389,6 +1389,16 @@ export const FIGMA_ICONS = {
|
|
|
1389
1389
|
"type": "monochrome",
|
|
1390
1390
|
"weight": "Line"
|
|
1391
1391
|
},
|
|
1392
|
+
"8c85104333ba7cc69fc866b41770316a6bd226d9": {
|
|
1393
|
+
"name": "icon_grid_dot5",
|
|
1394
|
+
"type": "monochrome",
|
|
1395
|
+
"weight": "Fill"
|
|
1396
|
+
},
|
|
1397
|
+
"29482f6a02c7c0fe2d714271ca540c197e2c5e9a": {
|
|
1398
|
+
"name": "icon_grid_dot5",
|
|
1399
|
+
"type": "monochrome",
|
|
1400
|
+
"weight": "Line"
|
|
1401
|
+
},
|
|
1392
1402
|
"94396773c3208ff19b7650bb7f48de6600492c83": {
|
|
1393
1403
|
"name": "icon_grid_heart",
|
|
1394
1404
|
"type": "monochrome",
|
|
@@ -1779,6 +1789,16 @@ export const FIGMA_ICONS = {
|
|
|
1779
1789
|
"type": "monochrome",
|
|
1780
1790
|
"weight": "Line"
|
|
1781
1791
|
},
|
|
1792
|
+
"af40e22f4795e41a24778fae19232b7ffe8d0b95": {
|
|
1793
|
+
"name": "icon_midcut_square",
|
|
1794
|
+
"type": "monochrome",
|
|
1795
|
+
"weight": "Fill"
|
|
1796
|
+
},
|
|
1797
|
+
"7c104076f1c7d9bbe9e14f5957012f2c7a5710d7": {
|
|
1798
|
+
"name": "icon_midcut_square",
|
|
1799
|
+
"type": "monochrome",
|
|
1800
|
+
"weight": "Line"
|
|
1801
|
+
},
|
|
1782
1802
|
"5fa174f09a36f25f6af68e8a7b268e1d9a7f4752": {
|
|
1783
1803
|
"name": "icon_minus_circle",
|
|
1784
1804
|
"type": "monochrome",
|
|
@@ -3181,6 +3201,10 @@ export const FIGMA_ICONS = {
|
|
|
3181
3201
|
"name": "icon_gift",
|
|
3182
3202
|
"type": "multicolor"
|
|
3183
3203
|
},
|
|
3204
|
+
"e44bf2ccec8dd6a9b720e15f1660854234aeb9ca": {
|
|
3205
|
+
"name": "icon_grid_dot5",
|
|
3206
|
+
"type": "multicolor"
|
|
3207
|
+
},
|
|
3184
3208
|
"9d3511905b35064003bf689e7f536f120e1fa5ad": {
|
|
3185
3209
|
"name": "icon_horizline_viewfinder",
|
|
3186
3210
|
"type": "multicolor"
|
|
@@ -3273,6 +3297,10 @@ export const FIGMA_ICONS = {
|
|
|
3273
3297
|
"name": "icon_sneaker_lifted_leftside",
|
|
3274
3298
|
"type": "multicolor"
|
|
3275
3299
|
},
|
|
3300
|
+
"e8eb13395b0696f63d148a8c31401b21382f03ef": {
|
|
3301
|
+
"name": "icon_sofa",
|
|
3302
|
+
"type": "multicolor"
|
|
3303
|
+
},
|
|
3276
3304
|
"7fa76e36cb5397446a8ac3105d882ea685290c1b": {
|
|
3277
3305
|
"name": "icon_sparkle2",
|
|
3278
3306
|
"type": "multicolor"
|
|
@@ -1,60 +1,4 @@
|
|
|
1
1
|
export const FIGMA_STYLES = [
|
|
2
|
-
{
|
|
3
|
-
"styleType": "FILL",
|
|
4
|
-
"key": "c1cee6b89c357c6a12d020654d73a4490cafdf51",
|
|
5
|
-
"name": "gradient/fade/layer-default/←(to-left)",
|
|
6
|
-
"description": "스크롤이 가능하도록 그라디언트로 특정 영역을 덮는 요소로 사용해요.",
|
|
7
|
-
"remote": false
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
"styleType": "FILL",
|
|
11
|
-
"key": "ff436e73cf9477a1006e6f8a1f9d2c9dbe0e5edd",
|
|
12
|
-
"name": "gradient/fade/layer-default/→(to-right)",
|
|
13
|
-
"description": "스크롤이 가능하도록 그라디언트로 특정 영역을 덮는 요소로 사용해요.",
|
|
14
|
-
"remote": false
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
"styleType": "FILL",
|
|
18
|
-
"key": "826457503b7ee3d472eab91581b1fcd499c47c00",
|
|
19
|
-
"name": "gradient/fade/layer-default/↑(to-top)",
|
|
20
|
-
"description": "스크롤이 가능하도록 그라디언트로 특정 영역을 덮는 요소로 사용해요.",
|
|
21
|
-
"remote": false
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"styleType": "FILL",
|
|
25
|
-
"key": "408cb970f1de672217f452152b0398a4bb4f4e12",
|
|
26
|
-
"name": "gradient/fade/layer-default/↓(to-bottom)",
|
|
27
|
-
"description": "스크롤이 가능하도록 그라디언트로 특정 영역을 덮는 요소로 사용해요.",
|
|
28
|
-
"remote": false
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"styleType": "FILL",
|
|
32
|
-
"key": "df22450a8f8e9c323baf40d8981920d1b6376cbf",
|
|
33
|
-
"name": "gradient/fade/layer-floating/←(to-left)",
|
|
34
|
-
"description": "스크롤이 가능하도록 그라디언트로 특정 영역을 덮는 요소로 사용해요.",
|
|
35
|
-
"remote": false
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"styleType": "FILL",
|
|
39
|
-
"key": "063c0dc05b438ac36499492e783520a722782d74",
|
|
40
|
-
"name": "gradient/fade/layer-floating/→(to-right)",
|
|
41
|
-
"description": "스크롤이 가능하도록 그라디언트로 특정 영역을 덮는 요소로 사용해요.",
|
|
42
|
-
"remote": false
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"styleType": "FILL",
|
|
46
|
-
"key": "46186d7dd037e8e54983ee6677cf7915790d84cc",
|
|
47
|
-
"name": "gradient/fade/layer-floating/↑(to-top)",
|
|
48
|
-
"description": "스크롤이 가능하도록 그라디언트로 특정 영역을 덮는 요소로 사용해요.",
|
|
49
|
-
"remote": false
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
"styleType": "FILL",
|
|
53
|
-
"key": "b28d9c9adc816fdd4ecec3a0b3e25d8aec802b6a",
|
|
54
|
-
"name": "gradient/fade/layer-floating/↓(to-bottom)",
|
|
55
|
-
"description": "스크롤이 가능하도록 그라디언트로 특정 영역을 덮는 요소로 사용해요.",
|
|
56
|
-
"remote": false
|
|
57
|
-
},
|
|
58
2
|
{
|
|
59
3
|
"styleType": "FILL",
|
|
60
4
|
"key": "353baa82e0440385eb121cd0ae98d2fcb1a70b18",
|
|
@@ -48,10 +48,10 @@ export const FIGMA_VARIABLE_COLLECTIONS = {
|
|
|
48
48
|
"VariableID:238:17662",
|
|
49
49
|
"VariableID:17544:4057",
|
|
50
50
|
"VariableID:1:171",
|
|
51
|
-
"VariableID:41186:6437",
|
|
52
51
|
"VariableID:670:2700",
|
|
53
|
-
"VariableID:
|
|
52
|
+
"VariableID:41186:6437",
|
|
54
53
|
"VariableID:1:172",
|
|
54
|
+
"VariableID:1:158",
|
|
55
55
|
"VariableID:1:161",
|
|
56
56
|
"VariableID:1:159",
|
|
57
57
|
"VariableID:576:22878",
|
|
@@ -99,8 +99,8 @@ export const FIGMA_VARIABLE_COLLECTIONS = {
|
|
|
99
99
|
"VariableID:12479:23364",
|
|
100
100
|
"VariableID:12479:23365",
|
|
101
101
|
"VariableID:12479:23366",
|
|
102
|
-
"VariableID:1:7",
|
|
103
102
|
"VariableID:12548:1437",
|
|
103
|
+
"VariableID:1:7",
|
|
104
104
|
"VariableID:12479:23367",
|
|
105
105
|
"VariableID:12479:23368",
|
|
106
106
|
"VariableID:12479:23371",
|
|
@@ -235,14 +235,12 @@ export const FIGMA_VARIABLE_COLLECTIONS = {
|
|
|
235
235
|
"VariableID:10181:34417",
|
|
236
236
|
"VariableID:1:168",
|
|
237
237
|
"VariableID:29913:8440",
|
|
238
|
-
"VariableID:29917:289",
|
|
239
238
|
"VariableID:29917:362",
|
|
240
|
-
"VariableID:30009:40284",
|
|
241
239
|
"VariableID:29917:5084",
|
|
240
|
+
"VariableID:30009:40284",
|
|
242
241
|
"VariableID:30009:40393",
|
|
243
242
|
"VariableID:30021:1313",
|
|
244
243
|
"VariableID:30023:1876",
|
|
245
|
-
"VariableID:30023:1877",
|
|
246
244
|
"VariableID:30023:3032",
|
|
247
245
|
"VariableID:30023:1878",
|
|
248
246
|
"VariableID:30023:3347",
|
|
@@ -263,7 +261,12 @@ export const FIGMA_VARIABLE_COLLECTIONS = {
|
|
|
263
261
|
"VariableID:43290:12820",
|
|
264
262
|
"VariableID:43290:12822",
|
|
265
263
|
"VariableID:43290:12823",
|
|
266
|
-
"VariableID:43290:12824"
|
|
264
|
+
"VariableID:43290:12824",
|
|
265
|
+
"VariableID:49497:1643",
|
|
266
|
+
"VariableID:49497:1644",
|
|
267
|
+
"VariableID:49495:1861",
|
|
268
|
+
"VariableID:49497:1645",
|
|
269
|
+
"VariableID:49497:1646"
|
|
267
270
|
]
|
|
268
271
|
},
|
|
269
272
|
"VariableCollectionId:1:174": {
|
|
@@ -389,9 +392,9 @@ export const FIGMA_VARIABLE_COLLECTIONS = {
|
|
|
389
392
|
"VariableID:289:13772",
|
|
390
393
|
"VariableID:1886:93038",
|
|
391
394
|
"VariableID:289:13773",
|
|
395
|
+
"VariableID:796:4448",
|
|
392
396
|
"VariableID:15518:15916",
|
|
393
397
|
"VariableID:19225:68732",
|
|
394
|
-
"VariableID:796:4448",
|
|
395
398
|
"VariableID:17955:50606",
|
|
396
399
|
"VariableID:514:13178",
|
|
397
400
|
"VariableID:535:1747",
|
|
@@ -49,6 +49,136 @@ export const FIGMA_VARIABLES = {
|
|
|
49
49
|
],
|
|
50
50
|
"codeSyntax": {}
|
|
51
51
|
},
|
|
52
|
+
"VariableID:49495:1861": {
|
|
53
|
+
"name": "_scroll-fog",
|
|
54
|
+
"id": "VariableID:49495:1861",
|
|
55
|
+
"remote": false,
|
|
56
|
+
"key": "12f1d88d590090e396c9b283bb51d4e89d9016d2",
|
|
57
|
+
"variableCollectionId": "VariableCollectionId:1:3",
|
|
58
|
+
"resolvedType": "COLOR",
|
|
59
|
+
"description": "",
|
|
60
|
+
"hiddenFromPublishing": false,
|
|
61
|
+
"valuesByMode": {
|
|
62
|
+
"1928:7": {
|
|
63
|
+
"type": "VARIABLE_ALIAS",
|
|
64
|
+
"id": "VariableID:29453:35711"
|
|
65
|
+
},
|
|
66
|
+
"1928:8": {
|
|
67
|
+
"r": 1,
|
|
68
|
+
"g": 1,
|
|
69
|
+
"b": 1,
|
|
70
|
+
"a": 1
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"scopes": [
|
|
74
|
+
"ALL_SCOPES"
|
|
75
|
+
],
|
|
76
|
+
"codeSyntax": {}
|
|
77
|
+
},
|
|
78
|
+
"VariableID:49497:1643": {
|
|
79
|
+
"name": "_scroll-fog/layer-default/0",
|
|
80
|
+
"id": "VariableID:49497:1643",
|
|
81
|
+
"remote": false,
|
|
82
|
+
"key": "fae00f7e2fc2ee7cd4bef58de19f468255ca4c5c",
|
|
83
|
+
"variableCollectionId": "VariableCollectionId:1:3",
|
|
84
|
+
"resolvedType": "COLOR",
|
|
85
|
+
"description": "",
|
|
86
|
+
"hiddenFromPublishing": false,
|
|
87
|
+
"valuesByMode": {
|
|
88
|
+
"1928:7": {
|
|
89
|
+
"type": "VARIABLE_ALIAS",
|
|
90
|
+
"id": "VariableID:1:155"
|
|
91
|
+
},
|
|
92
|
+
"1928:8": {
|
|
93
|
+
"type": "VARIABLE_ALIAS",
|
|
94
|
+
"id": "VariableID:1:155"
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"scopes": [
|
|
98
|
+
"ALL_SCOPES"
|
|
99
|
+
],
|
|
100
|
+
"codeSyntax": {}
|
|
101
|
+
},
|
|
102
|
+
"VariableID:49497:1644": {
|
|
103
|
+
"name": "_scroll-fog/layer-default/1",
|
|
104
|
+
"id": "VariableID:49497:1644",
|
|
105
|
+
"remote": false,
|
|
106
|
+
"key": "fac0ada2e11c8d54997dce0fc72a723fce514a9f",
|
|
107
|
+
"variableCollectionId": "VariableCollectionId:1:3",
|
|
108
|
+
"resolvedType": "COLOR",
|
|
109
|
+
"description": "",
|
|
110
|
+
"hiddenFromPublishing": false,
|
|
111
|
+
"valuesByMode": {
|
|
112
|
+
"1928:7": {
|
|
113
|
+
"r": 1,
|
|
114
|
+
"g": 1,
|
|
115
|
+
"b": 1,
|
|
116
|
+
"a": 0
|
|
117
|
+
},
|
|
118
|
+
"1928:8": {
|
|
119
|
+
"r": 0.08627451211214066,
|
|
120
|
+
"g": 0.09019608050584793,
|
|
121
|
+
"b": 0.10588235408067703,
|
|
122
|
+
"a": 0
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
"scopes": [
|
|
126
|
+
"ALL_SCOPES"
|
|
127
|
+
],
|
|
128
|
+
"codeSyntax": {}
|
|
129
|
+
},
|
|
130
|
+
"VariableID:49497:1645": {
|
|
131
|
+
"name": "_scroll-fog/layer-floating/0",
|
|
132
|
+
"id": "VariableID:49497:1645",
|
|
133
|
+
"remote": false,
|
|
134
|
+
"key": "334d485b6f54e6ed8dce767cd150b578f4323ad3",
|
|
135
|
+
"variableCollectionId": "VariableCollectionId:1:3",
|
|
136
|
+
"resolvedType": "COLOR",
|
|
137
|
+
"description": "",
|
|
138
|
+
"hiddenFromPublishing": false,
|
|
139
|
+
"valuesByMode": {
|
|
140
|
+
"1928:7": {
|
|
141
|
+
"type": "VARIABLE_ALIAS",
|
|
142
|
+
"id": "VariableID:238:17662"
|
|
143
|
+
},
|
|
144
|
+
"1928:8": {
|
|
145
|
+
"type": "VARIABLE_ALIAS",
|
|
146
|
+
"id": "VariableID:238:17662"
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
"scopes": [
|
|
150
|
+
"ALL_SCOPES"
|
|
151
|
+
],
|
|
152
|
+
"codeSyntax": {}
|
|
153
|
+
},
|
|
154
|
+
"VariableID:49497:1646": {
|
|
155
|
+
"name": "_scroll-fog/layer-floating/1",
|
|
156
|
+
"id": "VariableID:49497:1646",
|
|
157
|
+
"remote": false,
|
|
158
|
+
"key": "3259bea6c3999bc3ad72999fd3123648544bd002",
|
|
159
|
+
"variableCollectionId": "VariableCollectionId:1:3",
|
|
160
|
+
"resolvedType": "COLOR",
|
|
161
|
+
"description": "",
|
|
162
|
+
"hiddenFromPublishing": false,
|
|
163
|
+
"valuesByMode": {
|
|
164
|
+
"1928:7": {
|
|
165
|
+
"r": 1,
|
|
166
|
+
"g": 1,
|
|
167
|
+
"b": 1,
|
|
168
|
+
"a": 0
|
|
169
|
+
},
|
|
170
|
+
"1928:8": {
|
|
171
|
+
"r": 0.11555555462837219,
|
|
172
|
+
"g": 0.12638889253139496,
|
|
173
|
+
"b": 0.14444443583488464,
|
|
174
|
+
"a": 0
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
"scopes": [
|
|
178
|
+
"ALL_SCOPES"
|
|
179
|
+
],
|
|
180
|
+
"codeSyntax": {}
|
|
181
|
+
},
|
|
52
182
|
"VariableID:1:151": {
|
|
53
183
|
"name": "bg/brand-solid",
|
|
54
184
|
"id": "VariableID:1:151",
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import type { MultilineTextFieldProperties } from "@/codegen/component-properties";
|
|
2
|
-
import { defineComponentHandler } from "@/codegen/core";
|
|
3
|
-
import * as metadata from "@/entities/data/__generated__/component-sets";
|
|
4
|
-
import { createLocalSnippetHelper } from "../../element-factories";
|
|
5
|
-
import type { ComponentHandlerDeps } from "../deps.interface";
|
|
6
|
-
import { handleSizeProp } from "../size";
|
|
7
|
-
|
|
8
|
-
const { createLocalSnippetElement } = createLocalSnippetHelper("text-field");
|
|
9
|
-
|
|
10
|
-
export const createMultilineTextFieldHandler = (_ctx: ComponentHandlerDeps) =>
|
|
11
|
-
defineComponentHandler<MultilineTextFieldProperties>(
|
|
12
|
-
metadata.multilineTextField.key,
|
|
13
|
-
({ componentProperties: props }) => {
|
|
14
|
-
const {
|
|
15
|
-
Size: { value: size },
|
|
16
|
-
State: { value: state },
|
|
17
|
-
Filled: { value: filled },
|
|
18
|
-
"Show Header#870:0": { value: showHeader },
|
|
19
|
-
"Label#15327:323": { value: label },
|
|
20
|
-
"Show Indicator#1259:0": { value: showIndicator },
|
|
21
|
-
"Indicator#15327:286": { value: indicator },
|
|
22
|
-
"Placeholder#958:0": { value: placeholder },
|
|
23
|
-
"Filled Text#1304:0": { value: defaultValue },
|
|
24
|
-
"Show Footer#958:25": { value: showFooter },
|
|
25
|
-
"Show Description#958:50": { value: showDescription },
|
|
26
|
-
"Description#15327:212": { value: description },
|
|
27
|
-
"Show Character count#958:75": { value: showCharacterCount },
|
|
28
|
-
"Character Count#15327:360": { value: _characterCount },
|
|
29
|
-
"Max Character Count#15327:175": { value: maxCharacterCount },
|
|
30
|
-
} = props;
|
|
31
|
-
|
|
32
|
-
const states = state.split("-");
|
|
33
|
-
|
|
34
|
-
const commonProps = {
|
|
35
|
-
size: handleSizeProp(size),
|
|
36
|
-
// header
|
|
37
|
-
...(showHeader && {
|
|
38
|
-
label,
|
|
39
|
-
}),
|
|
40
|
-
...(showHeader &&
|
|
41
|
-
showIndicator && {
|
|
42
|
-
indicator,
|
|
43
|
-
}),
|
|
44
|
-
// input
|
|
45
|
-
...(filled === "True" && {
|
|
46
|
-
defaultValue,
|
|
47
|
-
}),
|
|
48
|
-
...(states.includes("Invalid") && {
|
|
49
|
-
invalid: true,
|
|
50
|
-
}),
|
|
51
|
-
...(states.includes("Disabled") && {
|
|
52
|
-
disabled: true,
|
|
53
|
-
}),
|
|
54
|
-
...(states.includes("Read Only") && {
|
|
55
|
-
readOnly: true,
|
|
56
|
-
}),
|
|
57
|
-
// footer
|
|
58
|
-
...(showFooter &&
|
|
59
|
-
showDescription &&
|
|
60
|
-
states.includes("Invalid") && {
|
|
61
|
-
// invalid인 경우 description을 error로 사용
|
|
62
|
-
errorMessage: description,
|
|
63
|
-
}),
|
|
64
|
-
...(showFooter &&
|
|
65
|
-
showDescription &&
|
|
66
|
-
!states.includes("Invalid") && {
|
|
67
|
-
// invalid가 아닌 경우 description을 description으로 사용
|
|
68
|
-
description,
|
|
69
|
-
}),
|
|
70
|
-
...(showFooter &&
|
|
71
|
-
showCharacterCount && {
|
|
72
|
-
maxGraphemeCount: Number(maxCharacterCount),
|
|
73
|
-
}),
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
const inputProps = {
|
|
77
|
-
placeholder,
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
const TextFieldChildren = createLocalSnippetElement("TextFieldTextarea", inputProps);
|
|
81
|
-
|
|
82
|
-
return createLocalSnippetElement("TextField", commonProps, TextFieldChildren);
|
|
83
|
-
},
|
|
84
|
-
);
|