@seed-design/rootage-artifacts 3.0.2 → 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.
@@ -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
+ }
@@ -0,0 +1,2 @@
1
+ import artifact from "./segmented-text-input.json" with { type: "json" };
2
+ export default artifact;
@@ -20,6 +20,9 @@ declare const artifact: {
20
20
  "paddingY": {
21
21
  "type": "dimension";
22
22
  };
23
+ "scrollMarginX": {
24
+ "type": "dimension";
25
+ };
23
26
  "scaleScope": {
24
27
  "type": "enum";
25
28
  "values": readonly [
@@ -65,6 +68,12 @@ declare const artifact: {
65
68
  "enabled",
66
69
  ];
67
70
  "slots": {
71
+ "root": {
72
+ "scrollMarginX": {
73
+ "type": "dimension";
74
+ "value": "$dimension.spacing-x.global-gutter";
75
+ };
76
+ };
68
77
  "label": {
69
78
  "color": {
70
79
  "type": "color";
@@ -20,6 +20,9 @@
20
20
  "paddingY": {
21
21
  "type": "dimension"
22
22
  },
23
+ "scrollMarginX": {
24
+ "type": "dimension"
25
+ },
23
26
  "scaleScope": {
24
27
  "type": "enum",
25
28
  "values": [
@@ -65,6 +68,12 @@
65
68
  "enabled"
66
69
  ],
67
70
  "slots": {
71
+ "root": {
72
+ "scrollMarginX": {
73
+ "type": "dimension",
74
+ "value": "$dimension.spacing-x.global-gutter"
75
+ }
76
+ },
68
77
  "label": {
69
78
  "color": {
70
79
  "type": "color",
@@ -1,6 +1,6 @@
1
1
  declare const artifact: {
2
2
  "name": "Rootage";
3
- "version": "3.0.2";
3
+ "version": "3.2.0";
4
4
  "resources": readonly [
5
5
  {
6
6
  "path": "/collections.json";
@@ -227,6 +227,9 @@ declare const artifact: {
227
227
  {
228
228
  "path": "/components/scroll-fog.json";
229
229
  },
230
+ {
231
+ "path": "/components/search-input.json";
232
+ },
230
233
  {
231
234
  "path": "/components/segmented-control-indicator.json";
232
235
  },
@@ -236,6 +239,9 @@ declare const artifact: {
236
239
  {
237
240
  "path": "/components/segmented-control.json";
238
241
  },
242
+ {
243
+ "path": "/components/segmented-text-input.json";
244
+ },
239
245
  {
240
246
  "path": "/components/select-box-checkmark.json";
241
247
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "Rootage",
3
- "version": "3.0.2",
3
+ "version": "3.2.0",
4
4
  "resources": [
5
5
  {
6
6
  "path": "/collections.json"
@@ -227,6 +227,9 @@
227
227
  {
228
228
  "path": "/components/scroll-fog.json"
229
229
  },
230
+ {
231
+ "path": "/components/search-input.json"
232
+ },
230
233
  {
231
234
  "path": "/components/segmented-control-indicator.json"
232
235
  },
@@ -236,6 +239,9 @@
236
239
  {
237
240
  "path": "/components/segmented-control.json"
238
241
  },
242
+ {
243
+ "path": "/components/segmented-text-input.json"
244
+ },
239
245
  {
240
246
  "path": "/components/select-box-checkmark.json"
241
247
  },
package/color.yaml CHANGED
@@ -50,6 +50,46 @@ data:
50
50
  values:
51
51
  theme-light: "#1a1c20"
52
52
  theme-dark: "#f3f4f5"
53
+ $color.palette.gray-alpha-100:
54
+ values:
55
+ theme-light: "#00204008"
56
+ theme-dark: "#d0d9ff1b"
57
+ $color.palette.gray-alpha-200:
58
+ values:
59
+ theme-light: "#14273b0d"
60
+ theme-dark: "#c8ddff25"
61
+ $color.palette.gray-alpha-300:
62
+ values:
63
+ theme-light: "#000f2d11"
64
+ theme-dark: "#cfddff35"
65
+ $color.palette.gray-alpha-400:
66
+ values:
67
+ theme-light: "#000f3323"
68
+ theme-dark: "#d0deff46"
69
+ $color.palette.gray-alpha-500:
70
+ values:
71
+ theme-light: "#05102b2f"
72
+ theme-dark: "#dbe7ff6a"
73
+ $color.palette.gray-alpha-600:
74
+ values:
75
+ theme-light: "#000a204f"
76
+ theme-dark: "#e7efff94"
77
+ $color.palette.gray-alpha-700:
78
+ values:
79
+ theme-light: "#000b1e79"
80
+ theme-dark: "#f1f5ffba"
81
+ $color.palette.gray-alpha-800:
82
+ values:
83
+ theme-light: "#010d25ab"
84
+ theme-dark: "#f7f9ffe3"
85
+ $color.palette.gray-alpha-900:
86
+ values:
87
+ theme-light: "#000711d5"
88
+ theme-dark: "#fcfdffec"
89
+ $color.palette.gray-alpha-1000:
90
+ values:
91
+ theme-light: "#000207e5"
92
+ theme-dark: "#fdfefff5"
53
93
  $color.palette.carrot-100:
54
94
  values:
55
95
  theme-light: "#fff2ec"
@@ -0,0 +1,77 @@
1
+ # yaml-language-server: $schema=./schema.json
2
+ kind: ComponentSpec
3
+ metadata:
4
+ id: search-input
5
+ name: Search Input
6
+ data:
7
+ schema:
8
+ slots:
9
+ root:
10
+ properties:
11
+ height:
12
+ type: dimension
13
+ cornerRadius:
14
+ type: dimension
15
+ paddingLeft:
16
+ type: dimension
17
+ paddingRight:
18
+ type: dimension
19
+ color:
20
+ type: color
21
+ value:
22
+ properties:
23
+ color:
24
+ type: color
25
+ fontWeight:
26
+ type: number
27
+ fontSize:
28
+ type: dimension
29
+ lineHeight:
30
+ type: dimension
31
+ placeholder:
32
+ properties:
33
+ color:
34
+ type: color
35
+ fontWeight:
36
+ type: number
37
+ fontSize:
38
+ type: dimension
39
+ lineHeight:
40
+ type: dimension
41
+ clearButton:
42
+ properties:
43
+ paddingX:
44
+ type: dimension
45
+ paddingY:
46
+ type: dimension
47
+ clearButtonIcon:
48
+ properties:
49
+ color:
50
+ type: color
51
+ size:
52
+ type: dimension
53
+ definitions:
54
+ base:
55
+ enabled:
56
+ root:
57
+ height: 44px
58
+ cornerRadius: $radius.r2_5
59
+ paddingLeft: $dimension.x4
60
+ paddingRight: $dimension.x1
61
+ color: $color.bg.neutral-weak
62
+ value:
63
+ color: $color.fg.neutral
64
+ fontWeight: $font-weight.regular
65
+ fontSize: $font-size.t6
66
+ lineHeight: $line-height.t6
67
+ placeholder:
68
+ color: $color.fg.placeholder
69
+ fontWeight: $font-weight.regular
70
+ fontSize: $font-size.t6
71
+ lineHeight: $line-height.t6
72
+ clearButton:
73
+ paddingX: $dimension.x3
74
+ paddingY: $dimension.x3
75
+ clearButtonIcon:
76
+ color: $color.fg.neutral-subtle
77
+ size: $dimension.x5