@seed-design/rootage-artifacts 2.2.1 → 2.3.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,309 @@
1
+ {
2
+ "kind": "ComponentSpec",
3
+ "metadata": {
4
+ "id": "quantity-picker",
5
+ "name": "Quantity Picker"
6
+ },
7
+ "data": {
8
+ "id": "quantity-picker",
9
+ "name": "Quantity Picker",
10
+ "schema": {
11
+ "slots": {
12
+ "root": {
13
+ "properties": {
14
+ "height": {
15
+ "type": "dimension"
16
+ },
17
+ "cornerRadius": {
18
+ "type": "dimension"
19
+ },
20
+ "color": {
21
+ "type": "color"
22
+ },
23
+ "strokeWidth": {
24
+ "type": "dimension"
25
+ },
26
+ "strokeColor": {
27
+ "type": "color"
28
+ }
29
+ }
30
+ },
31
+ "valueDisplay": {
32
+ "properties": {
33
+ "paddingX": {
34
+ "type": "dimension"
35
+ },
36
+ "fontSize": {
37
+ "type": "dimension"
38
+ },
39
+ "lineHeight": {
40
+ "type": "dimension"
41
+ },
42
+ "fontWeight": {
43
+ "type": "number"
44
+ },
45
+ "color": {
46
+ "type": "color"
47
+ }
48
+ }
49
+ },
50
+ "divider": {
51
+ "properties": {
52
+ "width": {
53
+ "type": "dimension"
54
+ },
55
+ "height": {
56
+ "type": "dimension"
57
+ },
58
+ "color": {
59
+ "type": "color"
60
+ }
61
+ }
62
+ }
63
+ },
64
+ "variants": {
65
+ "size": {
66
+ "values": {
67
+ "small": {},
68
+ "medium": {},
69
+ "large": {}
70
+ },
71
+ "defaultValue": "small"
72
+ }
73
+ }
74
+ },
75
+ "definitions": [
76
+ {
77
+ "variants": {},
78
+ "definitions": [
79
+ {
80
+ "states": [
81
+ "enabled"
82
+ ],
83
+ "slots": {
84
+ "root": {
85
+ "color": {
86
+ "type": "color",
87
+ "value": "$color.bg.layer-default"
88
+ },
89
+ "strokeWidth": {
90
+ "type": "dimension",
91
+ "value": {
92
+ "value": 1,
93
+ "unit": "px"
94
+ }
95
+ },
96
+ "strokeColor": {
97
+ "type": "color",
98
+ "value": "$color.stroke.neutral-weak"
99
+ }
100
+ },
101
+ "valueDisplay": {
102
+ "fontWeight": {
103
+ "type": "number",
104
+ "value": "$font-weight.medium"
105
+ },
106
+ "color": {
107
+ "type": "color",
108
+ "value": "$color.fg.neutral"
109
+ }
110
+ },
111
+ "divider": {
112
+ "color": {
113
+ "type": "color",
114
+ "value": "$color.stroke.neutral-subtle"
115
+ }
116
+ }
117
+ }
118
+ },
119
+ {
120
+ "states": [
121
+ "invalid"
122
+ ],
123
+ "slots": {
124
+ "root": {
125
+ "strokeWidth": {
126
+ "type": "dimension",
127
+ "value": {
128
+ "value": 2,
129
+ "unit": "px"
130
+ }
131
+ },
132
+ "strokeColor": {
133
+ "type": "color",
134
+ "value": "$color.stroke.critical-solid"
135
+ }
136
+ }
137
+ }
138
+ },
139
+ {
140
+ "states": [
141
+ "disabled"
142
+ ],
143
+ "slots": {
144
+ "valueDisplay": {
145
+ "color": {
146
+ "type": "color",
147
+ "value": "$color.fg.disabled"
148
+ }
149
+ }
150
+ }
151
+ }
152
+ ]
153
+ },
154
+ {
155
+ "variants": {
156
+ "size": "small"
157
+ },
158
+ "definitions": [
159
+ {
160
+ "states": [
161
+ "enabled"
162
+ ],
163
+ "slots": {
164
+ "root": {
165
+ "height": {
166
+ "type": "dimension",
167
+ "value": "$dimension.x9"
168
+ },
169
+ "cornerRadius": {
170
+ "type": "dimension",
171
+ "value": "$radius.r2"
172
+ }
173
+ },
174
+ "valueDisplay": {
175
+ "paddingX": {
176
+ "type": "dimension",
177
+ "value": "$dimension.x2"
178
+ },
179
+ "fontSize": {
180
+ "type": "dimension",
181
+ "value": "$font-size.t5"
182
+ },
183
+ "lineHeight": {
184
+ "type": "dimension",
185
+ "value": "$line-height.t5"
186
+ }
187
+ },
188
+ "divider": {
189
+ "width": {
190
+ "type": "dimension",
191
+ "value": {
192
+ "value": 1,
193
+ "unit": "px"
194
+ }
195
+ },
196
+ "height": {
197
+ "type": "dimension",
198
+ "value": "$dimension.x4"
199
+ }
200
+ }
201
+ }
202
+ }
203
+ ]
204
+ },
205
+ {
206
+ "variants": {
207
+ "size": "medium"
208
+ },
209
+ "definitions": [
210
+ {
211
+ "states": [
212
+ "enabled"
213
+ ],
214
+ "slots": {
215
+ "root": {
216
+ "height": {
217
+ "type": "dimension",
218
+ "value": "$dimension.x10"
219
+ },
220
+ "cornerRadius": {
221
+ "type": "dimension",
222
+ "value": "$radius.r2"
223
+ }
224
+ },
225
+ "valueDisplay": {
226
+ "paddingX": {
227
+ "type": "dimension",
228
+ "value": "$dimension.x2"
229
+ },
230
+ "fontSize": {
231
+ "type": "dimension",
232
+ "value": "$font-size.t5"
233
+ },
234
+ "lineHeight": {
235
+ "type": "dimension",
236
+ "value": "$line-height.t5"
237
+ }
238
+ },
239
+ "divider": {
240
+ "width": {
241
+ "type": "dimension",
242
+ "value": {
243
+ "value": 1,
244
+ "unit": "px"
245
+ }
246
+ },
247
+ "height": {
248
+ "type": "dimension",
249
+ "value": "$dimension.x4"
250
+ }
251
+ }
252
+ }
253
+ }
254
+ ]
255
+ },
256
+ {
257
+ "variants": {
258
+ "size": "large"
259
+ },
260
+ "definitions": [
261
+ {
262
+ "states": [
263
+ "enabled"
264
+ ],
265
+ "slots": {
266
+ "root": {
267
+ "height": {
268
+ "type": "dimension",
269
+ "value": "$dimension.x13"
270
+ },
271
+ "cornerRadius": {
272
+ "type": "dimension",
273
+ "value": "$radius.r3"
274
+ }
275
+ },
276
+ "valueDisplay": {
277
+ "paddingX": {
278
+ "type": "dimension",
279
+ "value": "$dimension.x2"
280
+ },
281
+ "fontSize": {
282
+ "type": "dimension",
283
+ "value": "$font-size.t6"
284
+ },
285
+ "lineHeight": {
286
+ "type": "dimension",
287
+ "value": "$line-height.t6"
288
+ }
289
+ },
290
+ "divider": {
291
+ "width": {
292
+ "type": "dimension",
293
+ "value": {
294
+ "value": 1,
295
+ "unit": "px"
296
+ }
297
+ },
298
+ "height": {
299
+ "type": "dimension",
300
+ "value": "$dimension.x4"
301
+ }
302
+ }
303
+ }
304
+ }
305
+ ]
306
+ }
307
+ ]
308
+ }
309
+ }
@@ -0,0 +1,362 @@
1
+ {
2
+ "kind": "ComponentSpec",
3
+ "metadata": {
4
+ "id": "select-item",
5
+ "name": "Select Item"
6
+ },
7
+ "data": {
8
+ "id": "select-item",
9
+ "name": "Select Item",
10
+ "schema": {
11
+ "slots": {
12
+ "root": {
13
+ "properties": {
14
+ "color": {
15
+ "type": "color"
16
+ },
17
+ "marginX": {
18
+ "type": "dimension"
19
+ },
20
+ "cornerRadius": {
21
+ "type": "dimension"
22
+ },
23
+ "colorDuration": {
24
+ "type": "duration"
25
+ },
26
+ "colorTimingFunction": {
27
+ "type": "cubicBezier"
28
+ },
29
+ "marginDuration": {
30
+ "type": "duration"
31
+ },
32
+ "marginTimingFunction": {
33
+ "type": "cubicBezier"
34
+ },
35
+ "paddingX": {
36
+ "type": "dimension"
37
+ },
38
+ "paddingY": {
39
+ "type": "dimension"
40
+ },
41
+ "gap": {
42
+ "type": "dimension"
43
+ }
44
+ }
45
+ },
46
+ "prefixIcon": {
47
+ "properties": {
48
+ "size": {
49
+ "type": "dimension"
50
+ },
51
+ "color": {
52
+ "type": "color"
53
+ }
54
+ }
55
+ },
56
+ "body": {
57
+ "properties": {
58
+ "gap": {
59
+ "type": "dimension"
60
+ }
61
+ }
62
+ },
63
+ "label": {
64
+ "properties": {
65
+ "color": {
66
+ "type": "color"
67
+ },
68
+ "fontSize": {
69
+ "type": "dimension"
70
+ },
71
+ "lineHeight": {
72
+ "type": "dimension"
73
+ },
74
+ "fontWeight": {
75
+ "type": "number"
76
+ }
77
+ }
78
+ },
79
+ "description": {
80
+ "properties": {
81
+ "color": {
82
+ "type": "color"
83
+ },
84
+ "fontSize": {
85
+ "type": "dimension"
86
+ },
87
+ "lineHeight": {
88
+ "type": "dimension"
89
+ },
90
+ "fontWeight": {
91
+ "type": "number"
92
+ }
93
+ }
94
+ },
95
+ "indicator": {
96
+ "properties": {
97
+ "size": {
98
+ "type": "dimension"
99
+ },
100
+ "color": {
101
+ "type": "color"
102
+ }
103
+ }
104
+ }
105
+ },
106
+ "variants": {
107
+ "size": {
108
+ "values": {
109
+ "large": {
110
+ "description": "뷰포트 너비와 관계없이 사용할 수 있습니다."
111
+ },
112
+ "medium": {
113
+ "description": "Breakpoint `lg` 이상(데스크톱)에서만 사용하고, 모바일에서는 사용하지 않습니다. 정밀한 선택이 가능한 마우스 입력 환경에서 사이즈를 더 작게 만들고자 할 때 사용합니다."
114
+ }
115
+ },
116
+ "defaultValue": "large"
117
+ }
118
+ }
119
+ },
120
+ "definitions": [
121
+ {
122
+ "variants": {},
123
+ "definitions": [
124
+ {
125
+ "states": [
126
+ "enabled"
127
+ ],
128
+ "slots": {
129
+ "root": {
130
+ "paddingX": {
131
+ "type": "dimension",
132
+ "value": "$dimension.x4"
133
+ },
134
+ "cornerRadius": {
135
+ "type": "dimension",
136
+ "value": "$radius.r3"
137
+ },
138
+ "colorDuration": {
139
+ "type": "duration",
140
+ "value": "$duration.color-transition"
141
+ },
142
+ "colorTimingFunction": {
143
+ "type": "cubicBezier",
144
+ "value": "$timing-function.easing"
145
+ },
146
+ "marginDuration": {
147
+ "type": "duration",
148
+ "value": "$duration.d3"
149
+ },
150
+ "marginTimingFunction": {
151
+ "type": "cubicBezier",
152
+ "value": "$timing-function.easing"
153
+ }
154
+ },
155
+ "prefixIcon": {
156
+ "color": {
157
+ "type": "color",
158
+ "value": "$color.fg.neutral"
159
+ }
160
+ },
161
+ "body": {
162
+ "gap": {
163
+ "type": "dimension",
164
+ "value": "$dimension.x0_5"
165
+ }
166
+ },
167
+ "label": {
168
+ "fontWeight": {
169
+ "type": "number",
170
+ "value": "$font-weight.regular"
171
+ },
172
+ "color": {
173
+ "type": "color",
174
+ "value": "$color.fg.neutral"
175
+ }
176
+ },
177
+ "description": {
178
+ "fontWeight": {
179
+ "type": "number",
180
+ "value": "$font-weight.regular"
181
+ },
182
+ "color": {
183
+ "type": "color",
184
+ "value": "$color.fg.neutral-subtle"
185
+ }
186
+ },
187
+ "indicator": {
188
+ "color": {
189
+ "type": "color",
190
+ "value": "$color.fg.neutral"
191
+ }
192
+ }
193
+ }
194
+ },
195
+ {
196
+ "states": [
197
+ "pressed"
198
+ ],
199
+ "slots": {
200
+ "root": {
201
+ "color": {
202
+ "type": "color",
203
+ "value": "$color.bg.transparent-pressed"
204
+ },
205
+ "marginX": {
206
+ "type": "dimension",
207
+ "value": "$dimension.x2"
208
+ }
209
+ }
210
+ }
211
+ },
212
+ {
213
+ "states": [
214
+ "disabled"
215
+ ],
216
+ "slots": {
217
+ "prefixIcon": {
218
+ "color": {
219
+ "type": "color",
220
+ "value": "$color.fg.disabled"
221
+ }
222
+ },
223
+ "label": {
224
+ "color": {
225
+ "type": "color",
226
+ "value": "$color.fg.disabled"
227
+ }
228
+ },
229
+ "description": {
230
+ "color": {
231
+ "type": "color",
232
+ "value": "$color.fg.disabled"
233
+ }
234
+ },
235
+ "indicator": {
236
+ "color": {
237
+ "type": "color",
238
+ "value": "$color.fg.disabled"
239
+ }
240
+ }
241
+ }
242
+ }
243
+ ]
244
+ },
245
+ {
246
+ "variants": {
247
+ "size": "large"
248
+ },
249
+ "definitions": [
250
+ {
251
+ "states": [
252
+ "enabled"
253
+ ],
254
+ "slots": {
255
+ "root": {
256
+ "paddingY": {
257
+ "type": "dimension",
258
+ "value": "$dimension.x3"
259
+ },
260
+ "gap": {
261
+ "type": "dimension",
262
+ "value": "$dimension.x3"
263
+ }
264
+ },
265
+ "prefixIcon": {
266
+ "size": {
267
+ "type": "dimension",
268
+ "value": {
269
+ "value": 22,
270
+ "unit": "px"
271
+ }
272
+ }
273
+ },
274
+ "label": {
275
+ "fontSize": {
276
+ "type": "dimension",
277
+ "value": "$font-size.t5"
278
+ },
279
+ "lineHeight": {
280
+ "type": "dimension",
281
+ "value": "$line-height.t5"
282
+ }
283
+ },
284
+ "description": {
285
+ "fontSize": {
286
+ "type": "dimension",
287
+ "value": "$font-size.t3"
288
+ },
289
+ "lineHeight": {
290
+ "type": "dimension",
291
+ "value": "$line-height.t3"
292
+ }
293
+ },
294
+ "indicator": {
295
+ "size": {
296
+ "type": "dimension",
297
+ "value": "$dimension.x3_5"
298
+ }
299
+ }
300
+ }
301
+ }
302
+ ]
303
+ },
304
+ {
305
+ "variants": {
306
+ "size": "medium"
307
+ },
308
+ "definitions": [
309
+ {
310
+ "states": [
311
+ "enabled"
312
+ ],
313
+ "slots": {
314
+ "root": {
315
+ "paddingY": {
316
+ "type": "dimension",
317
+ "value": "$dimension.x2_5"
318
+ },
319
+ "gap": {
320
+ "type": "dimension",
321
+ "value": "$dimension.x2"
322
+ }
323
+ },
324
+ "prefixIcon": {
325
+ "size": {
326
+ "type": "dimension",
327
+ "value": "$dimension.x4_5"
328
+ }
329
+ },
330
+ "label": {
331
+ "fontSize": {
332
+ "type": "dimension",
333
+ "value": "$font-size.t4"
334
+ },
335
+ "lineHeight": {
336
+ "type": "dimension",
337
+ "value": "$line-height.t4"
338
+ }
339
+ },
340
+ "description": {
341
+ "fontSize": {
342
+ "type": "dimension",
343
+ "value": "$font-size.t2"
344
+ },
345
+ "lineHeight": {
346
+ "type": "dimension",
347
+ "value": "$line-height.t2"
348
+ }
349
+ },
350
+ "indicator": {
351
+ "size": {
352
+ "type": "dimension",
353
+ "value": "$dimension.x3"
354
+ }
355
+ }
356
+ }
357
+ }
358
+ ]
359
+ }
360
+ ]
361
+ }
362
+ }