@seed-design/rootage-artifacts 3.1.0 → 3.2.0
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/__generated__/components/segmented-text-input.d.ts +472 -0
- package/__generated__/components/segmented-text-input.json +471 -0
- package/__generated__/components/segmented-text-input.mjs +2 -0
- package/__generated__/index.d.ts +4 -1
- package/__generated__/index.json +4 -1
- package/components/segmented-text-input.yaml +170 -0
- package/package.json +1 -1
|
@@ -0,0 +1,472 @@
|
|
|
1
|
+
declare const artifact: {
|
|
2
|
+
"kind": "ComponentSpec";
|
|
3
|
+
"metadata": {
|
|
4
|
+
"id": "segmented-text-input";
|
|
5
|
+
"name": "Segmented Text Input";
|
|
6
|
+
};
|
|
7
|
+
"data": {
|
|
8
|
+
"id": "segmented-text-input";
|
|
9
|
+
"name": "Segmented Text Input";
|
|
10
|
+
"schema": {
|
|
11
|
+
"slots": {
|
|
12
|
+
"root": {
|
|
13
|
+
"properties": {
|
|
14
|
+
"gap": {
|
|
15
|
+
"type": "dimension";
|
|
16
|
+
};
|
|
17
|
+
"minHeight": {
|
|
18
|
+
"type": "dimension";
|
|
19
|
+
};
|
|
20
|
+
"cornerRadius": {
|
|
21
|
+
"type": "dimension";
|
|
22
|
+
};
|
|
23
|
+
"paddingX": {
|
|
24
|
+
"type": "dimension";
|
|
25
|
+
};
|
|
26
|
+
"strokeWidth": {
|
|
27
|
+
"type": "dimension";
|
|
28
|
+
};
|
|
29
|
+
"strokeColor": {
|
|
30
|
+
"type": "color";
|
|
31
|
+
};
|
|
32
|
+
"color": {
|
|
33
|
+
"type": "color";
|
|
34
|
+
};
|
|
35
|
+
"strokeDuration": {
|
|
36
|
+
"type": "duration";
|
|
37
|
+
"description": "enabled 상태의 stroke 위에 focused/invalid 상태의 stroke가 fade in/out 되는 데에 걸리는 시간입니다. stroke 두께나 색상 자체를 transition하지 않습니다.";
|
|
38
|
+
};
|
|
39
|
+
"strokeTimingFunction": {
|
|
40
|
+
"type": "cubicBezier";
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
"value": {
|
|
45
|
+
"properties": {
|
|
46
|
+
"color": {
|
|
47
|
+
"type": "color";
|
|
48
|
+
};
|
|
49
|
+
"fontWeight": {
|
|
50
|
+
"type": "number";
|
|
51
|
+
};
|
|
52
|
+
"fontSize": {
|
|
53
|
+
"type": "dimension";
|
|
54
|
+
};
|
|
55
|
+
"lineHeight": {
|
|
56
|
+
"type": "dimension";
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
"placeholder": {
|
|
61
|
+
"properties": {
|
|
62
|
+
"color": {
|
|
63
|
+
"type": "color";
|
|
64
|
+
};
|
|
65
|
+
"fontWeight": {
|
|
66
|
+
"type": "number";
|
|
67
|
+
};
|
|
68
|
+
"fontSize": {
|
|
69
|
+
"type": "dimension";
|
|
70
|
+
};
|
|
71
|
+
"lineHeight": {
|
|
72
|
+
"type": "dimension";
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
"maskedPlaceholder": {
|
|
77
|
+
"properties": {
|
|
78
|
+
"color": {
|
|
79
|
+
"type": "color";
|
|
80
|
+
"description": "빈 masked Segment에 표시하는 placeholder 불릿의 색상입니다.";
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
"separator": {
|
|
85
|
+
"properties": {
|
|
86
|
+
"color": {
|
|
87
|
+
"type": "color";
|
|
88
|
+
};
|
|
89
|
+
"fontWeight": {
|
|
90
|
+
"type": "number";
|
|
91
|
+
};
|
|
92
|
+
"fontSize": {
|
|
93
|
+
"type": "dimension";
|
|
94
|
+
};
|
|
95
|
+
"lineHeight": {
|
|
96
|
+
"type": "dimension";
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
"staticText": {
|
|
101
|
+
"properties": {
|
|
102
|
+
"color": {
|
|
103
|
+
"type": "color";
|
|
104
|
+
"description": "Segment 앞뒤나 Segment 자리에 고정으로 표시하는 정적 텍스트(불릿 등)의 색상입니다.";
|
|
105
|
+
};
|
|
106
|
+
"fontWeight": {
|
|
107
|
+
"type": "number";
|
|
108
|
+
};
|
|
109
|
+
"fontSize": {
|
|
110
|
+
"type": "dimension";
|
|
111
|
+
};
|
|
112
|
+
"lineHeight": {
|
|
113
|
+
"type": "dimension";
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
"variants": {
|
|
119
|
+
"size": {
|
|
120
|
+
"values": {
|
|
121
|
+
"large": {
|
|
122
|
+
"description": "뷰포트 너비와 관계없이 사용할 수 있습니다.";
|
|
123
|
+
};
|
|
124
|
+
"medium": {
|
|
125
|
+
"description": "Breakpoint `lg` 이상(데스크톱)에서만 사용하고, 모바일에서는 사용하지 않습니다. 정밀한 선택이 가능한 마우스 입력 환경에서 사이즈를 더 작게 만들고자 할 때 사용합니다.";
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
"defaultValue": "large";
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
"definitions": readonly [
|
|
133
|
+
{
|
|
134
|
+
"variants": {};
|
|
135
|
+
"definitions": readonly [
|
|
136
|
+
{
|
|
137
|
+
"states": readonly [
|
|
138
|
+
"enabled",
|
|
139
|
+
];
|
|
140
|
+
"slots": {
|
|
141
|
+
"root": {
|
|
142
|
+
"strokeWidth": {
|
|
143
|
+
"type": "dimension";
|
|
144
|
+
"value": {
|
|
145
|
+
"value": 1;
|
|
146
|
+
"unit": "px";
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
"strokeColor": {
|
|
150
|
+
"type": "color";
|
|
151
|
+
"value": "$color.stroke.neutral-weak";
|
|
152
|
+
};
|
|
153
|
+
"strokeDuration": {
|
|
154
|
+
"type": "duration";
|
|
155
|
+
"value": {
|
|
156
|
+
"value": 0.1;
|
|
157
|
+
"unit": "s";
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
"strokeTimingFunction": {
|
|
161
|
+
"type": "cubicBezier";
|
|
162
|
+
"value": "$timing-function.easing";
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
"value": {
|
|
166
|
+
"color": {
|
|
167
|
+
"type": "color";
|
|
168
|
+
"value": "$color.fg.neutral";
|
|
169
|
+
};
|
|
170
|
+
"fontWeight": {
|
|
171
|
+
"type": "number";
|
|
172
|
+
"value": "$font-weight.regular";
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
"placeholder": {
|
|
176
|
+
"color": {
|
|
177
|
+
"type": "color";
|
|
178
|
+
"value": "$color.fg.placeholder";
|
|
179
|
+
};
|
|
180
|
+
"fontWeight": {
|
|
181
|
+
"type": "number";
|
|
182
|
+
"value": "$font-weight.regular";
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
"maskedPlaceholder": {
|
|
186
|
+
"color": {
|
|
187
|
+
"type": "color";
|
|
188
|
+
"value": "$color.fg.placeholder";
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
"separator": {
|
|
192
|
+
"color": {
|
|
193
|
+
"type": "color";
|
|
194
|
+
"value": "$color.fg.placeholder";
|
|
195
|
+
};
|
|
196
|
+
"fontWeight": {
|
|
197
|
+
"type": "number";
|
|
198
|
+
"value": "$font-weight.regular";
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
"staticText": {
|
|
202
|
+
"color": {
|
|
203
|
+
"type": "color";
|
|
204
|
+
"value": "$color.fg.neutral";
|
|
205
|
+
};
|
|
206
|
+
"fontWeight": {
|
|
207
|
+
"type": "number";
|
|
208
|
+
"value": "$font-weight.regular";
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"states": readonly [
|
|
215
|
+
"focused",
|
|
216
|
+
];
|
|
217
|
+
"slots": {
|
|
218
|
+
"root": {
|
|
219
|
+
"strokeWidth": {
|
|
220
|
+
"type": "dimension";
|
|
221
|
+
"value": {
|
|
222
|
+
"value": 2;
|
|
223
|
+
"unit": "px";
|
|
224
|
+
};
|
|
225
|
+
};
|
|
226
|
+
"strokeColor": {
|
|
227
|
+
"type": "color";
|
|
228
|
+
"value": "$color.stroke.neutral-contrast";
|
|
229
|
+
};
|
|
230
|
+
};
|
|
231
|
+
};
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"states": readonly [
|
|
235
|
+
"invalid",
|
|
236
|
+
];
|
|
237
|
+
"slots": {
|
|
238
|
+
"root": {
|
|
239
|
+
"strokeWidth": {
|
|
240
|
+
"type": "dimension";
|
|
241
|
+
"value": {
|
|
242
|
+
"value": 2;
|
|
243
|
+
"unit": "px";
|
|
244
|
+
};
|
|
245
|
+
};
|
|
246
|
+
"strokeColor": {
|
|
247
|
+
"type": "color";
|
|
248
|
+
"value": "$color.stroke.critical-solid";
|
|
249
|
+
};
|
|
250
|
+
};
|
|
251
|
+
};
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"states": readonly [
|
|
255
|
+
"invalid",
|
|
256
|
+
"focused",
|
|
257
|
+
];
|
|
258
|
+
"slots": {
|
|
259
|
+
"root": {
|
|
260
|
+
"strokeColor": {
|
|
261
|
+
"type": "color";
|
|
262
|
+
"value": "$color.stroke.critical-solid";
|
|
263
|
+
};
|
|
264
|
+
};
|
|
265
|
+
};
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"states": readonly [
|
|
269
|
+
"readonly",
|
|
270
|
+
];
|
|
271
|
+
"slots": {
|
|
272
|
+
"root": {
|
|
273
|
+
"color": {
|
|
274
|
+
"type": "color";
|
|
275
|
+
"value": "$color.bg.disabled";
|
|
276
|
+
};
|
|
277
|
+
};
|
|
278
|
+
};
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"states": readonly [
|
|
282
|
+
"disabled",
|
|
283
|
+
];
|
|
284
|
+
"slots": {
|
|
285
|
+
"root": {
|
|
286
|
+
"color": {
|
|
287
|
+
"type": "color";
|
|
288
|
+
"value": "$color.bg.disabled";
|
|
289
|
+
};
|
|
290
|
+
};
|
|
291
|
+
"value": {
|
|
292
|
+
"color": {
|
|
293
|
+
"type": "color";
|
|
294
|
+
"value": "$color.fg.disabled";
|
|
295
|
+
};
|
|
296
|
+
};
|
|
297
|
+
"placeholder": {
|
|
298
|
+
"color": {
|
|
299
|
+
"type": "color";
|
|
300
|
+
"value": "$color.fg.disabled";
|
|
301
|
+
};
|
|
302
|
+
};
|
|
303
|
+
"maskedPlaceholder": {
|
|
304
|
+
"color": {
|
|
305
|
+
"type": "color";
|
|
306
|
+
"value": "$color.fg.disabled";
|
|
307
|
+
};
|
|
308
|
+
};
|
|
309
|
+
"separator": {
|
|
310
|
+
"color": {
|
|
311
|
+
"type": "color";
|
|
312
|
+
"value": "$color.fg.disabled";
|
|
313
|
+
};
|
|
314
|
+
};
|
|
315
|
+
"staticText": {
|
|
316
|
+
"color": {
|
|
317
|
+
"type": "color";
|
|
318
|
+
"value": "$color.fg.disabled";
|
|
319
|
+
};
|
|
320
|
+
};
|
|
321
|
+
};
|
|
322
|
+
},
|
|
323
|
+
];
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"variants": {
|
|
327
|
+
"size": "large";
|
|
328
|
+
};
|
|
329
|
+
"definitions": readonly [
|
|
330
|
+
{
|
|
331
|
+
"states": readonly [
|
|
332
|
+
"enabled",
|
|
333
|
+
];
|
|
334
|
+
"slots": {
|
|
335
|
+
"root": {
|
|
336
|
+
"gap": {
|
|
337
|
+
"type": "dimension";
|
|
338
|
+
"value": "$dimension.x2_5";
|
|
339
|
+
};
|
|
340
|
+
"minHeight": {
|
|
341
|
+
"type": "dimension";
|
|
342
|
+
"value": "$dimension.x13";
|
|
343
|
+
};
|
|
344
|
+
"cornerRadius": {
|
|
345
|
+
"type": "dimension";
|
|
346
|
+
"value": "$radius.r3";
|
|
347
|
+
};
|
|
348
|
+
"paddingX": {
|
|
349
|
+
"type": "dimension";
|
|
350
|
+
"value": "$dimension.x4";
|
|
351
|
+
};
|
|
352
|
+
};
|
|
353
|
+
"value": {
|
|
354
|
+
"fontSize": {
|
|
355
|
+
"type": "dimension";
|
|
356
|
+
"value": "$font-size.t5";
|
|
357
|
+
};
|
|
358
|
+
"lineHeight": {
|
|
359
|
+
"type": "dimension";
|
|
360
|
+
"value": "$line-height.t5";
|
|
361
|
+
};
|
|
362
|
+
};
|
|
363
|
+
"placeholder": {
|
|
364
|
+
"fontSize": {
|
|
365
|
+
"type": "dimension";
|
|
366
|
+
"value": "$font-size.t5";
|
|
367
|
+
};
|
|
368
|
+
"lineHeight": {
|
|
369
|
+
"type": "dimension";
|
|
370
|
+
"value": "$line-height.t5";
|
|
371
|
+
};
|
|
372
|
+
};
|
|
373
|
+
"separator": {
|
|
374
|
+
"fontSize": {
|
|
375
|
+
"type": "dimension";
|
|
376
|
+
"value": "$font-size.t5";
|
|
377
|
+
};
|
|
378
|
+
"lineHeight": {
|
|
379
|
+
"type": "dimension";
|
|
380
|
+
"value": "$line-height.t5";
|
|
381
|
+
};
|
|
382
|
+
};
|
|
383
|
+
"staticText": {
|
|
384
|
+
"fontSize": {
|
|
385
|
+
"type": "dimension";
|
|
386
|
+
"value": "$font-size.t5";
|
|
387
|
+
};
|
|
388
|
+
"lineHeight": {
|
|
389
|
+
"type": "dimension";
|
|
390
|
+
"value": "$line-height.t5";
|
|
391
|
+
};
|
|
392
|
+
};
|
|
393
|
+
};
|
|
394
|
+
},
|
|
395
|
+
];
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
"variants": {
|
|
399
|
+
"size": "medium";
|
|
400
|
+
};
|
|
401
|
+
"definitions": readonly [
|
|
402
|
+
{
|
|
403
|
+
"states": readonly [
|
|
404
|
+
"enabled",
|
|
405
|
+
];
|
|
406
|
+
"slots": {
|
|
407
|
+
"root": {
|
|
408
|
+
"gap": {
|
|
409
|
+
"type": "dimension";
|
|
410
|
+
"value": "$dimension.x2";
|
|
411
|
+
};
|
|
412
|
+
"minHeight": {
|
|
413
|
+
"type": "dimension";
|
|
414
|
+
"value": "$dimension.x10";
|
|
415
|
+
};
|
|
416
|
+
"cornerRadius": {
|
|
417
|
+
"type": "dimension";
|
|
418
|
+
"value": "$radius.r2";
|
|
419
|
+
};
|
|
420
|
+
"paddingX": {
|
|
421
|
+
"type": "dimension";
|
|
422
|
+
"value": "$dimension.x3_5";
|
|
423
|
+
};
|
|
424
|
+
};
|
|
425
|
+
"value": {
|
|
426
|
+
"fontSize": {
|
|
427
|
+
"type": "dimension";
|
|
428
|
+
"value": "$font-size.t4";
|
|
429
|
+
};
|
|
430
|
+
"lineHeight": {
|
|
431
|
+
"type": "dimension";
|
|
432
|
+
"value": "$line-height.t4";
|
|
433
|
+
};
|
|
434
|
+
};
|
|
435
|
+
"placeholder": {
|
|
436
|
+
"fontSize": {
|
|
437
|
+
"type": "dimension";
|
|
438
|
+
"value": "$font-size.t4";
|
|
439
|
+
};
|
|
440
|
+
"lineHeight": {
|
|
441
|
+
"type": "dimension";
|
|
442
|
+
"value": "$line-height.t4";
|
|
443
|
+
};
|
|
444
|
+
};
|
|
445
|
+
"separator": {
|
|
446
|
+
"fontSize": {
|
|
447
|
+
"type": "dimension";
|
|
448
|
+
"value": "$font-size.t4";
|
|
449
|
+
};
|
|
450
|
+
"lineHeight": {
|
|
451
|
+
"type": "dimension";
|
|
452
|
+
"value": "$line-height.t4";
|
|
453
|
+
};
|
|
454
|
+
};
|
|
455
|
+
"staticText": {
|
|
456
|
+
"fontSize": {
|
|
457
|
+
"type": "dimension";
|
|
458
|
+
"value": "$font-size.t4";
|
|
459
|
+
};
|
|
460
|
+
"lineHeight": {
|
|
461
|
+
"type": "dimension";
|
|
462
|
+
"value": "$line-height.t4";
|
|
463
|
+
};
|
|
464
|
+
};
|
|
465
|
+
};
|
|
466
|
+
},
|
|
467
|
+
];
|
|
468
|
+
},
|
|
469
|
+
];
|
|
470
|
+
};
|
|
471
|
+
};
|
|
472
|
+
export default artifact;
|
|
@@ -0,0 +1,471 @@
|
|
|
1
|
+
{
|
|
2
|
+
"kind": "ComponentSpec",
|
|
3
|
+
"metadata": {
|
|
4
|
+
"id": "segmented-text-input",
|
|
5
|
+
"name": "Segmented Text Input"
|
|
6
|
+
},
|
|
7
|
+
"data": {
|
|
8
|
+
"id": "segmented-text-input",
|
|
9
|
+
"name": "Segmented Text Input",
|
|
10
|
+
"schema": {
|
|
11
|
+
"slots": {
|
|
12
|
+
"root": {
|
|
13
|
+
"properties": {
|
|
14
|
+
"gap": {
|
|
15
|
+
"type": "dimension"
|
|
16
|
+
},
|
|
17
|
+
"minHeight": {
|
|
18
|
+
"type": "dimension"
|
|
19
|
+
},
|
|
20
|
+
"cornerRadius": {
|
|
21
|
+
"type": "dimension"
|
|
22
|
+
},
|
|
23
|
+
"paddingX": {
|
|
24
|
+
"type": "dimension"
|
|
25
|
+
},
|
|
26
|
+
"strokeWidth": {
|
|
27
|
+
"type": "dimension"
|
|
28
|
+
},
|
|
29
|
+
"strokeColor": {
|
|
30
|
+
"type": "color"
|
|
31
|
+
},
|
|
32
|
+
"color": {
|
|
33
|
+
"type": "color"
|
|
34
|
+
},
|
|
35
|
+
"strokeDuration": {
|
|
36
|
+
"type": "duration",
|
|
37
|
+
"description": "enabled 상태의 stroke 위에 focused/invalid 상태의 stroke가 fade in/out 되는 데에 걸리는 시간입니다. stroke 두께나 색상 자체를 transition하지 않습니다."
|
|
38
|
+
},
|
|
39
|
+
"strokeTimingFunction": {
|
|
40
|
+
"type": "cubicBezier"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"value": {
|
|
45
|
+
"properties": {
|
|
46
|
+
"color": {
|
|
47
|
+
"type": "color"
|
|
48
|
+
},
|
|
49
|
+
"fontWeight": {
|
|
50
|
+
"type": "number"
|
|
51
|
+
},
|
|
52
|
+
"fontSize": {
|
|
53
|
+
"type": "dimension"
|
|
54
|
+
},
|
|
55
|
+
"lineHeight": {
|
|
56
|
+
"type": "dimension"
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"placeholder": {
|
|
61
|
+
"properties": {
|
|
62
|
+
"color": {
|
|
63
|
+
"type": "color"
|
|
64
|
+
},
|
|
65
|
+
"fontWeight": {
|
|
66
|
+
"type": "number"
|
|
67
|
+
},
|
|
68
|
+
"fontSize": {
|
|
69
|
+
"type": "dimension"
|
|
70
|
+
},
|
|
71
|
+
"lineHeight": {
|
|
72
|
+
"type": "dimension"
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"maskedPlaceholder": {
|
|
77
|
+
"properties": {
|
|
78
|
+
"color": {
|
|
79
|
+
"type": "color",
|
|
80
|
+
"description": "빈 masked Segment에 표시하는 placeholder 불릿의 색상입니다."
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"separator": {
|
|
85
|
+
"properties": {
|
|
86
|
+
"color": {
|
|
87
|
+
"type": "color"
|
|
88
|
+
},
|
|
89
|
+
"fontWeight": {
|
|
90
|
+
"type": "number"
|
|
91
|
+
},
|
|
92
|
+
"fontSize": {
|
|
93
|
+
"type": "dimension"
|
|
94
|
+
},
|
|
95
|
+
"lineHeight": {
|
|
96
|
+
"type": "dimension"
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"staticText": {
|
|
101
|
+
"properties": {
|
|
102
|
+
"color": {
|
|
103
|
+
"type": "color",
|
|
104
|
+
"description": "Segment 앞뒤나 Segment 자리에 고정으로 표시하는 정적 텍스트(불릿 등)의 색상입니다."
|
|
105
|
+
},
|
|
106
|
+
"fontWeight": {
|
|
107
|
+
"type": "number"
|
|
108
|
+
},
|
|
109
|
+
"fontSize": {
|
|
110
|
+
"type": "dimension"
|
|
111
|
+
},
|
|
112
|
+
"lineHeight": {
|
|
113
|
+
"type": "dimension"
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"variants": {
|
|
119
|
+
"size": {
|
|
120
|
+
"values": {
|
|
121
|
+
"large": {
|
|
122
|
+
"description": "뷰포트 너비와 관계없이 사용할 수 있습니다."
|
|
123
|
+
},
|
|
124
|
+
"medium": {
|
|
125
|
+
"description": "Breakpoint `lg` 이상(데스크톱)에서만 사용하고, 모바일에서는 사용하지 않습니다. 정밀한 선택이 가능한 마우스 입력 환경에서 사이즈를 더 작게 만들고자 할 때 사용합니다."
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"defaultValue": "large"
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"definitions": [
|
|
133
|
+
{
|
|
134
|
+
"variants": {},
|
|
135
|
+
"definitions": [
|
|
136
|
+
{
|
|
137
|
+
"states": [
|
|
138
|
+
"enabled"
|
|
139
|
+
],
|
|
140
|
+
"slots": {
|
|
141
|
+
"root": {
|
|
142
|
+
"strokeWidth": {
|
|
143
|
+
"type": "dimension",
|
|
144
|
+
"value": {
|
|
145
|
+
"value": 1,
|
|
146
|
+
"unit": "px"
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
"strokeColor": {
|
|
150
|
+
"type": "color",
|
|
151
|
+
"value": "$color.stroke.neutral-weak"
|
|
152
|
+
},
|
|
153
|
+
"strokeDuration": {
|
|
154
|
+
"type": "duration",
|
|
155
|
+
"value": {
|
|
156
|
+
"value": 0.1,
|
|
157
|
+
"unit": "s"
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"strokeTimingFunction": {
|
|
161
|
+
"type": "cubicBezier",
|
|
162
|
+
"value": "$timing-function.easing"
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
"value": {
|
|
166
|
+
"color": {
|
|
167
|
+
"type": "color",
|
|
168
|
+
"value": "$color.fg.neutral"
|
|
169
|
+
},
|
|
170
|
+
"fontWeight": {
|
|
171
|
+
"type": "number",
|
|
172
|
+
"value": "$font-weight.regular"
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
"placeholder": {
|
|
176
|
+
"color": {
|
|
177
|
+
"type": "color",
|
|
178
|
+
"value": "$color.fg.placeholder"
|
|
179
|
+
},
|
|
180
|
+
"fontWeight": {
|
|
181
|
+
"type": "number",
|
|
182
|
+
"value": "$font-weight.regular"
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
"maskedPlaceholder": {
|
|
186
|
+
"color": {
|
|
187
|
+
"type": "color",
|
|
188
|
+
"value": "$color.fg.placeholder"
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
"separator": {
|
|
192
|
+
"color": {
|
|
193
|
+
"type": "color",
|
|
194
|
+
"value": "$color.fg.placeholder"
|
|
195
|
+
},
|
|
196
|
+
"fontWeight": {
|
|
197
|
+
"type": "number",
|
|
198
|
+
"value": "$font-weight.regular"
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
"staticText": {
|
|
202
|
+
"color": {
|
|
203
|
+
"type": "color",
|
|
204
|
+
"value": "$color.fg.neutral"
|
|
205
|
+
},
|
|
206
|
+
"fontWeight": {
|
|
207
|
+
"type": "number",
|
|
208
|
+
"value": "$font-weight.regular"
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"states": [
|
|
215
|
+
"focused"
|
|
216
|
+
],
|
|
217
|
+
"slots": {
|
|
218
|
+
"root": {
|
|
219
|
+
"strokeWidth": {
|
|
220
|
+
"type": "dimension",
|
|
221
|
+
"value": {
|
|
222
|
+
"value": 2,
|
|
223
|
+
"unit": "px"
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
"strokeColor": {
|
|
227
|
+
"type": "color",
|
|
228
|
+
"value": "$color.stroke.neutral-contrast"
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"states": [
|
|
235
|
+
"invalid"
|
|
236
|
+
],
|
|
237
|
+
"slots": {
|
|
238
|
+
"root": {
|
|
239
|
+
"strokeWidth": {
|
|
240
|
+
"type": "dimension",
|
|
241
|
+
"value": {
|
|
242
|
+
"value": 2,
|
|
243
|
+
"unit": "px"
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
"strokeColor": {
|
|
247
|
+
"type": "color",
|
|
248
|
+
"value": "$color.stroke.critical-solid"
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"states": [
|
|
255
|
+
"invalid",
|
|
256
|
+
"focused"
|
|
257
|
+
],
|
|
258
|
+
"slots": {
|
|
259
|
+
"root": {
|
|
260
|
+
"strokeColor": {
|
|
261
|
+
"type": "color",
|
|
262
|
+
"value": "$color.stroke.critical-solid"
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"states": [
|
|
269
|
+
"readonly"
|
|
270
|
+
],
|
|
271
|
+
"slots": {
|
|
272
|
+
"root": {
|
|
273
|
+
"color": {
|
|
274
|
+
"type": "color",
|
|
275
|
+
"value": "$color.bg.disabled"
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"states": [
|
|
282
|
+
"disabled"
|
|
283
|
+
],
|
|
284
|
+
"slots": {
|
|
285
|
+
"root": {
|
|
286
|
+
"color": {
|
|
287
|
+
"type": "color",
|
|
288
|
+
"value": "$color.bg.disabled"
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
"value": {
|
|
292
|
+
"color": {
|
|
293
|
+
"type": "color",
|
|
294
|
+
"value": "$color.fg.disabled"
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
"placeholder": {
|
|
298
|
+
"color": {
|
|
299
|
+
"type": "color",
|
|
300
|
+
"value": "$color.fg.disabled"
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
"maskedPlaceholder": {
|
|
304
|
+
"color": {
|
|
305
|
+
"type": "color",
|
|
306
|
+
"value": "$color.fg.disabled"
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
"separator": {
|
|
310
|
+
"color": {
|
|
311
|
+
"type": "color",
|
|
312
|
+
"value": "$color.fg.disabled"
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
"staticText": {
|
|
316
|
+
"color": {
|
|
317
|
+
"type": "color",
|
|
318
|
+
"value": "$color.fg.disabled"
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
]
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"variants": {
|
|
327
|
+
"size": "large"
|
|
328
|
+
},
|
|
329
|
+
"definitions": [
|
|
330
|
+
{
|
|
331
|
+
"states": [
|
|
332
|
+
"enabled"
|
|
333
|
+
],
|
|
334
|
+
"slots": {
|
|
335
|
+
"root": {
|
|
336
|
+
"gap": {
|
|
337
|
+
"type": "dimension",
|
|
338
|
+
"value": "$dimension.x2_5"
|
|
339
|
+
},
|
|
340
|
+
"minHeight": {
|
|
341
|
+
"type": "dimension",
|
|
342
|
+
"value": "$dimension.x13"
|
|
343
|
+
},
|
|
344
|
+
"cornerRadius": {
|
|
345
|
+
"type": "dimension",
|
|
346
|
+
"value": "$radius.r3"
|
|
347
|
+
},
|
|
348
|
+
"paddingX": {
|
|
349
|
+
"type": "dimension",
|
|
350
|
+
"value": "$dimension.x4"
|
|
351
|
+
}
|
|
352
|
+
},
|
|
353
|
+
"value": {
|
|
354
|
+
"fontSize": {
|
|
355
|
+
"type": "dimension",
|
|
356
|
+
"value": "$font-size.t5"
|
|
357
|
+
},
|
|
358
|
+
"lineHeight": {
|
|
359
|
+
"type": "dimension",
|
|
360
|
+
"value": "$line-height.t5"
|
|
361
|
+
}
|
|
362
|
+
},
|
|
363
|
+
"placeholder": {
|
|
364
|
+
"fontSize": {
|
|
365
|
+
"type": "dimension",
|
|
366
|
+
"value": "$font-size.t5"
|
|
367
|
+
},
|
|
368
|
+
"lineHeight": {
|
|
369
|
+
"type": "dimension",
|
|
370
|
+
"value": "$line-height.t5"
|
|
371
|
+
}
|
|
372
|
+
},
|
|
373
|
+
"separator": {
|
|
374
|
+
"fontSize": {
|
|
375
|
+
"type": "dimension",
|
|
376
|
+
"value": "$font-size.t5"
|
|
377
|
+
},
|
|
378
|
+
"lineHeight": {
|
|
379
|
+
"type": "dimension",
|
|
380
|
+
"value": "$line-height.t5"
|
|
381
|
+
}
|
|
382
|
+
},
|
|
383
|
+
"staticText": {
|
|
384
|
+
"fontSize": {
|
|
385
|
+
"type": "dimension",
|
|
386
|
+
"value": "$font-size.t5"
|
|
387
|
+
},
|
|
388
|
+
"lineHeight": {
|
|
389
|
+
"type": "dimension",
|
|
390
|
+
"value": "$line-height.t5"
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
]
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
"variants": {
|
|
399
|
+
"size": "medium"
|
|
400
|
+
},
|
|
401
|
+
"definitions": [
|
|
402
|
+
{
|
|
403
|
+
"states": [
|
|
404
|
+
"enabled"
|
|
405
|
+
],
|
|
406
|
+
"slots": {
|
|
407
|
+
"root": {
|
|
408
|
+
"gap": {
|
|
409
|
+
"type": "dimension",
|
|
410
|
+
"value": "$dimension.x2"
|
|
411
|
+
},
|
|
412
|
+
"minHeight": {
|
|
413
|
+
"type": "dimension",
|
|
414
|
+
"value": "$dimension.x10"
|
|
415
|
+
},
|
|
416
|
+
"cornerRadius": {
|
|
417
|
+
"type": "dimension",
|
|
418
|
+
"value": "$radius.r2"
|
|
419
|
+
},
|
|
420
|
+
"paddingX": {
|
|
421
|
+
"type": "dimension",
|
|
422
|
+
"value": "$dimension.x3_5"
|
|
423
|
+
}
|
|
424
|
+
},
|
|
425
|
+
"value": {
|
|
426
|
+
"fontSize": {
|
|
427
|
+
"type": "dimension",
|
|
428
|
+
"value": "$font-size.t4"
|
|
429
|
+
},
|
|
430
|
+
"lineHeight": {
|
|
431
|
+
"type": "dimension",
|
|
432
|
+
"value": "$line-height.t4"
|
|
433
|
+
}
|
|
434
|
+
},
|
|
435
|
+
"placeholder": {
|
|
436
|
+
"fontSize": {
|
|
437
|
+
"type": "dimension",
|
|
438
|
+
"value": "$font-size.t4"
|
|
439
|
+
},
|
|
440
|
+
"lineHeight": {
|
|
441
|
+
"type": "dimension",
|
|
442
|
+
"value": "$line-height.t4"
|
|
443
|
+
}
|
|
444
|
+
},
|
|
445
|
+
"separator": {
|
|
446
|
+
"fontSize": {
|
|
447
|
+
"type": "dimension",
|
|
448
|
+
"value": "$font-size.t4"
|
|
449
|
+
},
|
|
450
|
+
"lineHeight": {
|
|
451
|
+
"type": "dimension",
|
|
452
|
+
"value": "$line-height.t4"
|
|
453
|
+
}
|
|
454
|
+
},
|
|
455
|
+
"staticText": {
|
|
456
|
+
"fontSize": {
|
|
457
|
+
"type": "dimension",
|
|
458
|
+
"value": "$font-size.t4"
|
|
459
|
+
},
|
|
460
|
+
"lineHeight": {
|
|
461
|
+
"type": "dimension",
|
|
462
|
+
"value": "$line-height.t4"
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
]
|
|
468
|
+
}
|
|
469
|
+
]
|
|
470
|
+
}
|
|
471
|
+
}
|
package/__generated__/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const artifact: {
|
|
2
2
|
"name": "Rootage";
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0";
|
|
4
4
|
"resources": readonly [
|
|
5
5
|
{
|
|
6
6
|
"path": "/collections.json";
|
|
@@ -239,6 +239,9 @@ declare const artifact: {
|
|
|
239
239
|
{
|
|
240
240
|
"path": "/components/segmented-control.json";
|
|
241
241
|
},
|
|
242
|
+
{
|
|
243
|
+
"path": "/components/segmented-text-input.json";
|
|
244
|
+
},
|
|
242
245
|
{
|
|
243
246
|
"path": "/components/select-box-checkmark.json";
|
|
244
247
|
},
|
package/__generated__/index.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "Rootage",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"resources": [
|
|
5
5
|
{
|
|
6
6
|
"path": "/collections.json"
|
|
@@ -239,6 +239,9 @@
|
|
|
239
239
|
{
|
|
240
240
|
"path": "/components/segmented-control.json"
|
|
241
241
|
},
|
|
242
|
+
{
|
|
243
|
+
"path": "/components/segmented-text-input.json"
|
|
244
|
+
},
|
|
242
245
|
{
|
|
243
246
|
"path": "/components/select-box-checkmark.json"
|
|
244
247
|
},
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
# yaml-language-server: $schema=./schema.json
|
|
2
|
+
kind: ComponentSpec
|
|
3
|
+
metadata:
|
|
4
|
+
id: segmented-text-input
|
|
5
|
+
name: Segmented Text Input
|
|
6
|
+
data:
|
|
7
|
+
schema:
|
|
8
|
+
slots:
|
|
9
|
+
root:
|
|
10
|
+
properties:
|
|
11
|
+
gap:
|
|
12
|
+
type: dimension
|
|
13
|
+
minHeight:
|
|
14
|
+
type: dimension
|
|
15
|
+
cornerRadius:
|
|
16
|
+
type: dimension
|
|
17
|
+
paddingX:
|
|
18
|
+
type: dimension
|
|
19
|
+
strokeWidth:
|
|
20
|
+
type: dimension
|
|
21
|
+
strokeColor:
|
|
22
|
+
type: color
|
|
23
|
+
color:
|
|
24
|
+
type: color
|
|
25
|
+
strokeDuration:
|
|
26
|
+
type: duration
|
|
27
|
+
description: enabled 상태의 stroke 위에 focused/invalid 상태의 stroke가 fade in/out 되는 데에
|
|
28
|
+
걸리는 시간입니다. stroke 두께나 색상 자체를 transition하지 않습니다.
|
|
29
|
+
strokeTimingFunction:
|
|
30
|
+
type: cubicBezier
|
|
31
|
+
value:
|
|
32
|
+
properties:
|
|
33
|
+
color:
|
|
34
|
+
type: color
|
|
35
|
+
fontWeight:
|
|
36
|
+
type: number
|
|
37
|
+
fontSize:
|
|
38
|
+
type: dimension
|
|
39
|
+
lineHeight:
|
|
40
|
+
type: dimension
|
|
41
|
+
placeholder:
|
|
42
|
+
properties:
|
|
43
|
+
color:
|
|
44
|
+
type: color
|
|
45
|
+
fontWeight:
|
|
46
|
+
type: number
|
|
47
|
+
fontSize:
|
|
48
|
+
type: dimension
|
|
49
|
+
lineHeight:
|
|
50
|
+
type: dimension
|
|
51
|
+
maskedPlaceholder:
|
|
52
|
+
properties:
|
|
53
|
+
color:
|
|
54
|
+
type: color
|
|
55
|
+
description: 빈 masked Segment에 표시하는 placeholder 불릿의 색상입니다.
|
|
56
|
+
separator:
|
|
57
|
+
properties:
|
|
58
|
+
color:
|
|
59
|
+
type: color
|
|
60
|
+
fontWeight:
|
|
61
|
+
type: number
|
|
62
|
+
fontSize:
|
|
63
|
+
type: dimension
|
|
64
|
+
lineHeight:
|
|
65
|
+
type: dimension
|
|
66
|
+
staticText:
|
|
67
|
+
properties:
|
|
68
|
+
color:
|
|
69
|
+
type: color
|
|
70
|
+
description: Segment 앞뒤나 Segment 자리에 고정으로 표시하는 정적 텍스트(불릿 등)의 색상입니다.
|
|
71
|
+
fontWeight:
|
|
72
|
+
type: number
|
|
73
|
+
fontSize:
|
|
74
|
+
type: dimension
|
|
75
|
+
lineHeight:
|
|
76
|
+
type: dimension
|
|
77
|
+
variants:
|
|
78
|
+
size:
|
|
79
|
+
values:
|
|
80
|
+
large:
|
|
81
|
+
description: 뷰포트 너비와 관계없이 사용할 수 있습니다.
|
|
82
|
+
medium:
|
|
83
|
+
description: Breakpoint `lg` 이상(데스크톱)에서만 사용하고, 모바일에서는 사용하지 않습니다. 정밀한 선택이 가능한 마우스 입력 환경에서 사이즈를 더 작게 만들고자 할 때 사용합니다.
|
|
84
|
+
definitions:
|
|
85
|
+
base:
|
|
86
|
+
enabled:
|
|
87
|
+
root:
|
|
88
|
+
strokeWidth: 1px
|
|
89
|
+
strokeColor: $color.stroke.neutral-weak
|
|
90
|
+
strokeDuration: 0.1s
|
|
91
|
+
strokeTimingFunction: $timing-function.easing
|
|
92
|
+
value:
|
|
93
|
+
color: $color.fg.neutral
|
|
94
|
+
fontWeight: $font-weight.regular
|
|
95
|
+
placeholder:
|
|
96
|
+
color: $color.fg.placeholder
|
|
97
|
+
fontWeight: $font-weight.regular
|
|
98
|
+
maskedPlaceholder:
|
|
99
|
+
color: $color.fg.placeholder
|
|
100
|
+
separator:
|
|
101
|
+
color: $color.fg.placeholder
|
|
102
|
+
fontWeight: $font-weight.regular
|
|
103
|
+
staticText:
|
|
104
|
+
color: $color.fg.neutral
|
|
105
|
+
fontWeight: $font-weight.regular
|
|
106
|
+
focused:
|
|
107
|
+
root:
|
|
108
|
+
strokeWidth: 2px
|
|
109
|
+
strokeColor: $color.stroke.neutral-contrast
|
|
110
|
+
invalid:
|
|
111
|
+
root:
|
|
112
|
+
strokeWidth: 2px
|
|
113
|
+
strokeColor: $color.stroke.critical-solid
|
|
114
|
+
invalid,focused:
|
|
115
|
+
root:
|
|
116
|
+
strokeColor: $color.stroke.critical-solid # being obvious
|
|
117
|
+
readonly:
|
|
118
|
+
root:
|
|
119
|
+
color: $color.bg.disabled
|
|
120
|
+
disabled:
|
|
121
|
+
root:
|
|
122
|
+
color: $color.bg.disabled
|
|
123
|
+
value:
|
|
124
|
+
color: $color.fg.disabled
|
|
125
|
+
placeholder:
|
|
126
|
+
color: $color.fg.disabled
|
|
127
|
+
maskedPlaceholder:
|
|
128
|
+
color: $color.fg.disabled
|
|
129
|
+
separator:
|
|
130
|
+
color: $color.fg.disabled
|
|
131
|
+
staticText:
|
|
132
|
+
color: $color.fg.disabled
|
|
133
|
+
size=large:
|
|
134
|
+
enabled:
|
|
135
|
+
root:
|
|
136
|
+
gap: $dimension.x2_5
|
|
137
|
+
minHeight: $dimension.x13
|
|
138
|
+
cornerRadius: $radius.r3
|
|
139
|
+
paddingX: $dimension.x4
|
|
140
|
+
value:
|
|
141
|
+
fontSize: $font-size.t5
|
|
142
|
+
lineHeight: $line-height.t5
|
|
143
|
+
placeholder:
|
|
144
|
+
fontSize: $font-size.t5
|
|
145
|
+
lineHeight: $line-height.t5
|
|
146
|
+
separator:
|
|
147
|
+
fontSize: $font-size.t5
|
|
148
|
+
lineHeight: $line-height.t5
|
|
149
|
+
staticText:
|
|
150
|
+
fontSize: $font-size.t5
|
|
151
|
+
lineHeight: $line-height.t5
|
|
152
|
+
size=medium:
|
|
153
|
+
enabled:
|
|
154
|
+
root:
|
|
155
|
+
gap: $dimension.x2
|
|
156
|
+
minHeight: $dimension.x10
|
|
157
|
+
cornerRadius: $radius.r2
|
|
158
|
+
paddingX: $dimension.x3_5
|
|
159
|
+
value:
|
|
160
|
+
fontSize: $font-size.t4
|
|
161
|
+
lineHeight: $line-height.t4
|
|
162
|
+
placeholder:
|
|
163
|
+
fontSize: $font-size.t4
|
|
164
|
+
lineHeight: $line-height.t4
|
|
165
|
+
separator:
|
|
166
|
+
fontSize: $font-size.t4
|
|
167
|
+
lineHeight: $line-height.t4
|
|
168
|
+
staticText:
|
|
169
|
+
fontSize: $font-size.t4
|
|
170
|
+
lineHeight: $line-height.t4
|