@neuravision/construct 1.1.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.
Files changed (57) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +227 -0
  3. package/components/README.md +566 -0
  4. package/components/_keyframes.css +23 -0
  5. package/components/_shared.css +120 -0
  6. package/components/accordion.css +124 -0
  7. package/components/alert.css +67 -0
  8. package/components/avatar.css +127 -0
  9. package/components/badge.css +67 -0
  10. package/components/banner.css +247 -0
  11. package/components/breadcrumbs.css +152 -0
  12. package/components/button.css +145 -0
  13. package/components/card.css +76 -0
  14. package/components/checkbox.css +120 -0
  15. package/components/chip.css +361 -0
  16. package/components/combobox.css +385 -0
  17. package/components/components.css +2 -0
  18. package/components/data-table.css +93 -0
  19. package/components/datepicker.css +268 -0
  20. package/components/divider.css +73 -0
  21. package/components/drawer.css +167 -0
  22. package/components/dropdown.css +401 -0
  23. package/components/empty-state.css +97 -0
  24. package/components/field.css +42 -0
  25. package/components/file-upload.css +111 -0
  26. package/components/icon.css +31 -0
  27. package/components/index.css +49 -0
  28. package/components/input.css +64 -0
  29. package/components/list.css +474 -0
  30. package/components/modal.css +164 -0
  31. package/components/navbar.css +587 -0
  32. package/components/pagination.css +131 -0
  33. package/components/popover.css +231 -0
  34. package/components/progress-bar.css +56 -0
  35. package/components/select-menu.css +267 -0
  36. package/components/select.css +30 -0
  37. package/components/sidebar.css +183 -0
  38. package/components/skeleton.css +38 -0
  39. package/components/skip-link.css +38 -0
  40. package/components/slider.css +305 -0
  41. package/components/spinner.css +72 -0
  42. package/components/switch.css +82 -0
  43. package/components/table.css +139 -0
  44. package/components/tabs.css +147 -0
  45. package/components/textarea.css +16 -0
  46. package/components/toast.css +71 -0
  47. package/components/toggle-group.css +196 -0
  48. package/components/toolbar.css +222 -0
  49. package/components/tooltip.css +124 -0
  50. package/docs/guidelines.md +141 -0
  51. package/foundations.css +299 -0
  52. package/package.json +66 -0
  53. package/tokens/README.md +179 -0
  54. package/tokens/tokens.css +434 -0
  55. package/tokens/tokens.js +1188 -0
  56. package/tokens/tokens.json +810 -0
  57. package/tokens/tokens.ts +1188 -0
@@ -0,0 +1,401 @@
1
+ /* ─── Dropdown Menu ──────────────────────────────────────────────── */
2
+
3
+ .ct-dropdown {
4
+ --ct-dropdown-min-width: 200px;
5
+ --ct-dropdown-max-width: 320px;
6
+ --ct-dropdown-padding: var(--space-2);
7
+ --ct-dropdown-item-padding-x: var(--space-4);
8
+ --ct-dropdown-item-padding-y: var(--space-3);
9
+ --ct-dropdown-item-font-size: var(--font-size-sm);
10
+ --ct-dropdown-item-line-height: var(--line-height-sm);
11
+ --ct-dropdown-item-radius: var(--radius-sm);
12
+ --ct-dropdown-item-gap: var(--space-3);
13
+
14
+ position: relative;
15
+ display: inline-flex;
16
+ }
17
+
18
+ /* ── Menu panel ──────────────────────────────────────────────────── */
19
+
20
+ .ct-dropdown__menu {
21
+ position: absolute;
22
+ inset-block-start: calc(100% + var(--space-2));
23
+ inset-inline-start: 0;
24
+ min-width: var(--ct-dropdown-min-width);
25
+ max-width: var(--ct-dropdown-max-width);
26
+ padding: var(--ct-dropdown-padding);
27
+ border-radius: var(--radius-md);
28
+ border: var(--border-thin) solid var(--color-border-subtle);
29
+ background: var(--color-bg-elevated);
30
+ box-shadow: var(--shadow-dropdown);
31
+ display: grid;
32
+ opacity: 0;
33
+ visibility: hidden;
34
+ transform: translateY(4px);
35
+ z-index: var(--z-dropdown);
36
+ transition: opacity var(--duration-fast) var(--easing-standard),
37
+ transform var(--duration-fast) var(--easing-standard),
38
+ visibility 0s linear var(--duration-fast);
39
+ }
40
+
41
+ .ct-dropdown[data-state='open'] .ct-dropdown__menu {
42
+ opacity: 1;
43
+ visibility: visible;
44
+ transform: translateY(0);
45
+ transition: opacity var(--duration-fast) var(--easing-standard),
46
+ transform var(--duration-fast) var(--easing-standard),
47
+ visibility 0s linear 0s;
48
+ }
49
+
50
+ /* ── Positioning ─────────────────────────────────────────────────── */
51
+
52
+ .ct-dropdown[data-side='top'] .ct-dropdown__menu {
53
+ inset-block-start: auto;
54
+ inset-block-end: calc(100% + var(--space-2));
55
+ transform: translateY(-4px);
56
+ }
57
+
58
+ .ct-dropdown[data-side='top'][data-state='open'] .ct-dropdown__menu {
59
+ transform: translateY(0);
60
+ }
61
+
62
+ .ct-dropdown[data-align='end'] .ct-dropdown__menu {
63
+ inset-inline-start: auto;
64
+ inset-inline-end: 0;
65
+ }
66
+
67
+ /* ── Item (base) ─────────────────────────────────────────────────── */
68
+
69
+ .ct-dropdown__item {
70
+ appearance: none;
71
+ border: none;
72
+ background: transparent;
73
+ color: var(--color-text-primary);
74
+ cursor: pointer;
75
+ width: 100%;
76
+ display: flex;
77
+ align-items: center;
78
+ gap: var(--ct-dropdown-item-gap);
79
+ padding: var(--ct-dropdown-item-padding-y) var(--ct-dropdown-item-padding-x);
80
+ border-radius: var(--ct-dropdown-item-radius);
81
+ font-size: var(--ct-dropdown-item-font-size);
82
+ line-height: var(--ct-dropdown-item-line-height);
83
+ text-align: start;
84
+ text-decoration: none;
85
+ transition: background var(--duration-fast) var(--easing-standard),
86
+ color var(--duration-fast) var(--easing-standard);
87
+ }
88
+
89
+ @media (hover: hover) {
90
+ .ct-dropdown__item:hover {
91
+ background: var(--color-bg-muted);
92
+ }
93
+ }
94
+
95
+ .ct-dropdown__item:focus-visible {
96
+ background: var(--color-bg-muted);
97
+ outline: var(--border-medium) solid var(--color-brand-primary);
98
+ outline-offset: -2px;
99
+ }
100
+
101
+ .ct-dropdown__item[data-highlighted] {
102
+ background: var(--color-bg-muted);
103
+ outline: var(--border-medium) solid var(--color-brand-primary);
104
+ outline-offset: -2px;
105
+ }
106
+
107
+ .ct-dropdown__item[aria-disabled='true'] {
108
+ opacity: var(--opacity-disabled);
109
+ pointer-events: none;
110
+ cursor: not-allowed;
111
+ }
112
+
113
+ /* ── Item parts: Icon, Label, Shortcut, Description ──────────────── */
114
+
115
+ .ct-dropdown__item-icon {
116
+ width: var(--icon-sm);
117
+ height: var(--icon-sm);
118
+ flex-shrink: 0;
119
+ display: inline-flex;
120
+ align-items: center;
121
+ justify-content: center;
122
+ color: var(--color-text-secondary);
123
+ }
124
+
125
+ .ct-dropdown__item-label {
126
+ flex: 1;
127
+ min-width: 0;
128
+ }
129
+
130
+ .ct-dropdown__item-shortcut {
131
+ font-size: var(--font-size-xs);
132
+ color: var(--color-text-muted);
133
+ margin-inline-start: auto;
134
+ flex-shrink: 0;
135
+ pointer-events: none;
136
+ font-family: inherit;
137
+ }
138
+
139
+ .ct-dropdown__item-description {
140
+ display: block;
141
+ font-size: var(--font-size-xs);
142
+ color: var(--color-text-muted);
143
+ line-height: var(--line-height-xs);
144
+ }
145
+
146
+ /* ── Danger item ─────────────────────────────────────────────────── */
147
+
148
+ .ct-dropdown__item--danger {
149
+ color: var(--color-state-danger);
150
+ }
151
+
152
+ @media (hover: hover) {
153
+ .ct-dropdown__item--danger:hover {
154
+ background: var(--color-state-danger-surface);
155
+ }
156
+ }
157
+
158
+ .ct-dropdown__item--danger:focus-visible,
159
+ .ct-dropdown__item--danger[data-highlighted] {
160
+ background: var(--color-state-danger-surface);
161
+ outline-color: var(--color-state-danger);
162
+ }
163
+
164
+ .ct-dropdown__item--danger .ct-dropdown__item-icon {
165
+ color: var(--color-state-danger);
166
+ }
167
+
168
+ .ct-dropdown__item--danger .ct-dropdown__item-shortcut {
169
+ color: var(--color-text-muted);
170
+ }
171
+
172
+ /* ── Checkbox item ───────────────────────────────────────────────── */
173
+
174
+ .ct-dropdown__item-check {
175
+ width: var(--icon-sm);
176
+ height: var(--icon-sm);
177
+ flex-shrink: 0;
178
+ opacity: 0;
179
+ color: var(--color-brand-primary);
180
+ display: inline-flex;
181
+ align-items: center;
182
+ justify-content: center;
183
+ }
184
+
185
+ .ct-dropdown__item[aria-checked='true'] .ct-dropdown__item-check {
186
+ opacity: 1;
187
+ }
188
+
189
+ /* ── Radio item ──────────────────────────────────────────────────── */
190
+
191
+ .ct-dropdown__item-radio {
192
+ width: var(--icon-sm);
193
+ height: var(--icon-sm);
194
+ flex-shrink: 0;
195
+ display: inline-flex;
196
+ align-items: center;
197
+ justify-content: center;
198
+ }
199
+
200
+ .ct-dropdown__item-radio::before {
201
+ content: '';
202
+ width: 8px;
203
+ height: 8px;
204
+ border-radius: var(--radius-round);
205
+ background: transparent;
206
+ transition: background var(--duration-fast) var(--easing-standard);
207
+ }
208
+
209
+ .ct-dropdown__item[aria-checked='true'] .ct-dropdown__item-radio::before {
210
+ background: var(--color-brand-primary);
211
+ }
212
+
213
+ /* ── Label (group header, non-interactive) ───────────────────────── */
214
+
215
+ .ct-dropdown__label {
216
+ padding: var(--ct-dropdown-item-padding-y) var(--ct-dropdown-item-padding-x);
217
+ border-radius: var(--ct-dropdown-item-radius);
218
+ font-size: var(--font-size-xs);
219
+ font-weight: var(--font-weight-semibold);
220
+ color: var(--color-text-muted);
221
+ text-transform: uppercase;
222
+ letter-spacing: var(--letter-spacing-wide);
223
+ text-align: start;
224
+ }
225
+
226
+ /* ── Group ────────────────────────────────────────────────────────── */
227
+
228
+ .ct-dropdown__group {
229
+ padding: var(--space-1) 0;
230
+ }
231
+
232
+ .ct-dropdown__group + .ct-dropdown__group {
233
+ border-top: var(--border-thin) solid var(--color-border-subtle);
234
+ }
235
+
236
+ .ct-dropdown__group-label {
237
+ padding: var(--space-2) var(--ct-dropdown-item-padding-x);
238
+ font-size: var(--font-size-xs);
239
+ font-weight: var(--font-weight-semibold);
240
+ color: var(--color-text-muted);
241
+ text-transform: uppercase;
242
+ letter-spacing: var(--letter-spacing-wide);
243
+ }
244
+
245
+ /* ── Separator ───────────────────────────────────────────────────── */
246
+
247
+ .ct-dropdown__separator {
248
+ height: 1px;
249
+ background: var(--color-border-subtle);
250
+ margin: var(--space-2) 0;
251
+ }
252
+
253
+ /* ── Sub-menu ────────────────────────────────────────────────────── */
254
+
255
+ .ct-dropdown__sub {
256
+ position: relative;
257
+ }
258
+
259
+ .ct-dropdown__sub-trigger {
260
+ appearance: none;
261
+ border: none;
262
+ background: transparent;
263
+ color: var(--color-text-primary);
264
+ cursor: pointer;
265
+ width: 100%;
266
+ display: flex;
267
+ align-items: center;
268
+ gap: var(--ct-dropdown-item-gap);
269
+ padding: var(--ct-dropdown-item-padding-y) var(--ct-dropdown-item-padding-x);
270
+ border-radius: var(--ct-dropdown-item-radius);
271
+ font-size: var(--ct-dropdown-item-font-size);
272
+ line-height: var(--ct-dropdown-item-line-height);
273
+ text-align: start;
274
+ transition: background var(--duration-fast) var(--easing-standard);
275
+ }
276
+
277
+ @media (hover: hover) {
278
+ .ct-dropdown__sub-trigger:hover {
279
+ background: var(--color-bg-muted);
280
+ }
281
+ }
282
+
283
+ .ct-dropdown__sub-trigger:focus-visible,
284
+ .ct-dropdown__sub-trigger[data-highlighted] {
285
+ background: var(--color-bg-muted);
286
+ outline: var(--border-medium) solid var(--color-brand-primary);
287
+ outline-offset: -2px;
288
+ }
289
+
290
+ .ct-dropdown__sub-trigger[aria-disabled='true'] {
291
+ opacity: var(--opacity-disabled);
292
+ pointer-events: none;
293
+ }
294
+
295
+ .ct-dropdown__sub-chevron {
296
+ width: var(--icon-sm);
297
+ height: var(--icon-sm);
298
+ flex-shrink: 0;
299
+ margin-inline-start: auto;
300
+ color: var(--color-text-muted);
301
+ display: inline-flex;
302
+ align-items: center;
303
+ justify-content: center;
304
+ }
305
+
306
+ .ct-dropdown__sub-content {
307
+ position: absolute;
308
+ inset-inline-start: 100%;
309
+ inset-block-start: 0;
310
+ min-width: var(--ct-dropdown-min-width);
311
+ max-width: var(--ct-dropdown-max-width);
312
+ padding: var(--ct-dropdown-padding);
313
+ border-radius: var(--radius-md);
314
+ border: var(--border-thin) solid var(--color-border-subtle);
315
+ background: var(--color-bg-elevated);
316
+ box-shadow: var(--shadow-dropdown);
317
+ display: grid;
318
+ opacity: 0;
319
+ visibility: hidden;
320
+ transform: translateX(4px);
321
+ z-index: var(--z-dropdown);
322
+ transition: opacity var(--duration-fast) var(--easing-standard),
323
+ transform var(--duration-fast) var(--easing-standard),
324
+ visibility 0s linear var(--duration-fast);
325
+ }
326
+
327
+ .ct-dropdown__sub[data-state='open'] > .ct-dropdown__sub-content {
328
+ opacity: 1;
329
+ visibility: visible;
330
+ transform: translateX(0);
331
+ transition: opacity var(--duration-fast) var(--easing-standard),
332
+ transform var(--duration-fast) var(--easing-standard),
333
+ visibility 0s linear 0s;
334
+ }
335
+
336
+ /* ── Responsive: inline sub-menus on narrow viewports ────────────── */
337
+
338
+ @media (max-width: 599px) { /* < sm breakpoint (600px) */
339
+ .ct-dropdown__sub-content {
340
+ position: static;
341
+ inset: auto;
342
+ min-width: 100%;
343
+ max-width: none;
344
+ transform: none;
345
+ box-shadow: none;
346
+ border: none;
347
+ border-top: var(--border-thin) solid var(--color-border-subtle);
348
+ border-radius: 0;
349
+ padding-inline-start: var(--space-4);
350
+ z-index: auto;
351
+ }
352
+
353
+ .ct-dropdown__sub[data-state='open'] > .ct-dropdown__sub-content {
354
+ transform: none;
355
+ }
356
+
357
+ .ct-dropdown__sub-chevron {
358
+ transform: rotate(90deg);
359
+ }
360
+
361
+ .ct-dropdown__sub[data-state='open'] > .ct-dropdown__sub-trigger .ct-dropdown__sub-chevron {
362
+ transform: rotate(-90deg);
363
+ }
364
+ }
365
+
366
+ /* ── Responsive: clamp menu width to viewport ────────────────────── */
367
+
368
+ @media (max-width: 599px) { /* < sm breakpoint (600px) */
369
+ .ct-dropdown__menu {
370
+ max-width: calc(100vw - var(--space-8));
371
+ }
372
+ }
373
+
374
+ /* ── Sizes ────────────────────────────────────────────────────────── */
375
+
376
+ .ct-dropdown--sm {
377
+ --ct-dropdown-item-padding-x: var(--space-3);
378
+ --ct-dropdown-item-padding-y: var(--space-2);
379
+ --ct-dropdown-item-font-size: var(--font-size-xs);
380
+ --ct-dropdown-item-line-height: var(--line-height-xs);
381
+ --ct-dropdown-item-gap: var(--space-2);
382
+ }
383
+
384
+ .ct-dropdown--lg {
385
+ --ct-dropdown-item-padding-x: var(--space-5);
386
+ --ct-dropdown-item-padding-y: var(--space-4);
387
+ --ct-dropdown-item-font-size: var(--font-size-md);
388
+ --ct-dropdown-item-line-height: var(--line-height-md);
389
+ --ct-dropdown-item-gap: var(--space-4);
390
+ }
391
+
392
+ /* ── Reduced motion ──────────────────────────────────────────────── */
393
+
394
+ @media (prefers-reduced-motion: reduce) {
395
+ .ct-dropdown__menu,
396
+ .ct-dropdown__sub-content,
397
+ .ct-dropdown__item,
398
+ .ct-dropdown__item-radio::before {
399
+ transition: none;
400
+ }
401
+ }
@@ -0,0 +1,97 @@
1
+ /* ── Empty State ── */
2
+
3
+ .ct-empty-state {
4
+ --ct-empty-state-icon-size: 64px;
5
+ --ct-empty-state-icon-color: var(--color-text-muted);
6
+ --ct-empty-state-max-width: 400px;
7
+ --ct-empty-state-padding: var(--space-8);
8
+ --ct-empty-state-gap: var(--space-4);
9
+
10
+ display: flex;
11
+ flex-direction: column;
12
+ align-items: center;
13
+ justify-content: center;
14
+ text-align: center;
15
+ max-width: var(--ct-empty-state-max-width);
16
+ margin-inline: auto;
17
+ padding: var(--ct-empty-state-padding);
18
+ gap: var(--ct-empty-state-gap);
19
+ }
20
+
21
+ .ct-empty-state__icon {
22
+ display: flex;
23
+ align-items: center;
24
+ justify-content: center;
25
+ width: var(--ct-empty-state-icon-size);
26
+ height: var(--ct-empty-state-icon-size);
27
+ font-size: calc(var(--ct-empty-state-icon-size) * 0.5);
28
+ color: var(--ct-empty-state-icon-color);
29
+ flex-shrink: 0;
30
+ }
31
+
32
+ .ct-empty-state__title {
33
+ font-size: var(--font-size-lg);
34
+ font-weight: var(--font-weight-semibold);
35
+ color: var(--color-text-primary);
36
+ margin: 0;
37
+ }
38
+
39
+ .ct-empty-state__description {
40
+ font-size: var(--font-size-sm);
41
+ color: var(--color-text-secondary);
42
+ margin: 0;
43
+ }
44
+
45
+ .ct-empty-state__actions {
46
+ display: flex;
47
+ flex-wrap: wrap;
48
+ align-items: center;
49
+ justify-content: center;
50
+ gap: var(--space-3);
51
+ margin-block-start: var(--space-2);
52
+ }
53
+
54
+ /* Sizes */
55
+
56
+ .ct-empty-state--sm {
57
+ --ct-empty-state-icon-size: 40px;
58
+ --ct-empty-state-padding: var(--space-4);
59
+ --ct-empty-state-gap: var(--space-2);
60
+ }
61
+
62
+ .ct-empty-state--sm .ct-empty-state__title {
63
+ font-size: var(--font-size-md);
64
+ }
65
+
66
+ .ct-empty-state--sm .ct-empty-state__description {
67
+ font-size: var(--font-size-xs);
68
+ }
69
+
70
+ .ct-empty-state--lg {
71
+ --ct-empty-state-icon-size: 96px;
72
+ --ct-empty-state-padding: var(--space-12);
73
+ --ct-empty-state-gap: var(--space-6);
74
+ }
75
+
76
+ .ct-empty-state--lg .ct-empty-state__title {
77
+ font-size: var(--font-size-xl);
78
+ }
79
+
80
+ .ct-empty-state--lg .ct-empty-state__description {
81
+ font-size: var(--font-size-md);
82
+ }
83
+
84
+ /* Variants */
85
+
86
+ .ct-empty-state--error .ct-empty-state__icon {
87
+ color: var(--color-state-danger-text);
88
+ }
89
+
90
+ .ct-empty-state--error .ct-empty-state__title {
91
+ color: var(--color-state-danger-text);
92
+ }
93
+
94
+ .ct-empty-state--bordered {
95
+ border: 2px dashed var(--color-border-default);
96
+ border-radius: var(--radius-md);
97
+ }
@@ -0,0 +1,42 @@
1
+ .ct-field {
2
+ display: grid;
3
+ gap: var(--space-2);
4
+ }
5
+
6
+ .ct-field__label {
7
+ font-size: var(--font-size-sm);
8
+ font-weight: var(--font-weight-semibold);
9
+ color: var(--color-text-secondary);
10
+ }
11
+
12
+ .ct-field__hint {
13
+ font-size: var(--font-size-sm);
14
+ color: var(--color-text-muted);
15
+ }
16
+
17
+ .ct-field__error {
18
+ font-size: var(--font-size-sm);
19
+ color: var(--color-state-danger);
20
+ }
21
+
22
+ .ct-field__label--required::after {
23
+ content: ' *';
24
+ color: var(--color-state-danger);
25
+ }
26
+
27
+ .ct-field__counter {
28
+ font-size: var(--font-size-xs);
29
+ color: var(--color-text-muted);
30
+ text-align: end;
31
+ }
32
+
33
+ .ct-field__counter--limit {
34
+ color: var(--color-state-danger);
35
+ }
36
+
37
+ .ct-field__row {
38
+ display: flex;
39
+ flex-wrap: wrap;
40
+ align-items: center;
41
+ gap: var(--space-4);
42
+ }
@@ -0,0 +1,111 @@
1
+ .ct-file-upload {
2
+ display: grid;
3
+ gap: var(--space-4);
4
+ }
5
+
6
+ .ct-file-upload__dropzone {
7
+ position: relative;
8
+ display: grid;
9
+ justify-items: center;
10
+ text-align: center;
11
+ gap: var(--space-3);
12
+ padding: var(--space-7);
13
+ border-radius: var(--radius-lg);
14
+ border: var(--border-thin) dashed var(--color-border-default);
15
+ background: var(--color-bg-surface);
16
+ color: var(--color-text-secondary);
17
+ transition: border-color var(--duration-fast) var(--easing-standard),
18
+ background var(--duration-fast) var(--easing-standard),
19
+ box-shadow var(--duration-fast) var(--easing-standard);
20
+ cursor: pointer;
21
+ }
22
+
23
+ .ct-file-upload__dropzone:focus-within {
24
+ border-color: var(--color-focus-ring);
25
+ box-shadow: 0 0 0 3px var(--color-focus-ring);
26
+ }
27
+
28
+ .ct-file-upload__dropzone[data-state='dragover'] {
29
+ border-color: var(--color-brand-primary);
30
+ background: var(--color-bg-muted);
31
+ }
32
+
33
+ .ct-file-upload__dropzone[aria-invalid='true'] {
34
+ border-color: var(--color-state-danger);
35
+ background: var(--color-state-danger-surface);
36
+ color: var(--color-text-primary);
37
+ }
38
+
39
+ .ct-file-upload__input {
40
+ position: absolute;
41
+ width: 1px;
42
+ height: 1px;
43
+ padding: 0;
44
+ margin: -1px;
45
+ overflow: hidden;
46
+ clip: rect(0 0 0 0);
47
+ border: 0;
48
+ }
49
+
50
+ .ct-file-upload__title {
51
+ font-weight: var(--font-weight-semibold);
52
+ color: var(--color-text-primary);
53
+ }
54
+
55
+ .ct-file-upload__hint {
56
+ font-size: var(--font-size-sm);
57
+ }
58
+
59
+ .ct-file-upload__list {
60
+ list-style: none;
61
+ margin: 0;
62
+ padding: 0;
63
+ display: grid;
64
+ gap: var(--space-3);
65
+ }
66
+
67
+ .ct-file-upload__item {
68
+ display: flex;
69
+ align-items: center;
70
+ justify-content: space-between;
71
+ gap: var(--space-4);
72
+ padding: var(--space-4) var(--space-5);
73
+ border-radius: var(--radius-md);
74
+ border: var(--border-thin) solid var(--color-border-subtle);
75
+ background: var(--color-bg-elevated);
76
+ }
77
+
78
+ .ct-file-upload__item[data-status='success'] {
79
+ border-color: var(--color-state-success-border);
80
+ background: var(--color-state-success-surface);
81
+ }
82
+
83
+ .ct-file-upload__item[data-status='error'] {
84
+ border-color: var(--color-state-danger-border);
85
+ background: var(--color-state-danger-surface);
86
+ }
87
+
88
+ .ct-file-upload__file {
89
+ display: grid;
90
+ gap: var(--space-1);
91
+ }
92
+
93
+ .ct-file-upload__name {
94
+ font-weight: var(--font-weight-medium);
95
+ }
96
+
97
+ .ct-file-upload__meta {
98
+ font-size: var(--font-size-sm);
99
+ color: var(--color-text-muted);
100
+ }
101
+
102
+ .ct-file-upload__actions {
103
+ display: inline-flex;
104
+ align-items: center;
105
+ gap: var(--space-2);
106
+ }
107
+
108
+ .ct-file-upload__error {
109
+ color: var(--color-state-danger);
110
+ font-size: var(--font-size-sm);
111
+ }
@@ -0,0 +1,31 @@
1
+ /* ── Icon ── */
2
+
3
+ .ct-icon {
4
+ display: inline-flex;
5
+ align-items: center;
6
+ justify-content: center;
7
+ width: var(--icon-md);
8
+ height: var(--icon-md);
9
+ flex-shrink: 0;
10
+ color: inherit;
11
+ }
12
+
13
+ .ct-icon--sm {
14
+ width: var(--icon-sm);
15
+ height: var(--icon-sm);
16
+ }
17
+
18
+ .ct-icon--lg {
19
+ width: var(--icon-lg);
20
+ height: var(--icon-lg);
21
+ }
22
+
23
+ .ct-icon--xl {
24
+ width: var(--icon-xl);
25
+ height: var(--icon-xl);
26
+ }
27
+
28
+ .ct-icon svg {
29
+ width: 100%;
30
+ height: 100%;
31
+ }