@adea-ai/ui 0.22.2 → 0.23.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 (92) hide show
  1. package/README.md +6 -3
  2. package/dist/components/account-drawer.d.ts +3 -3
  3. package/dist/components/account-drawer.js +119 -19
  4. package/dist/components/on-screen-controls.d.ts +2 -1
  5. package/dist/components/on-screen-controls.js +158 -46
  6. package/dist/components/scene-settings.d.ts +3 -3
  7. package/dist/components/scene-settings.js +247 -28
  8. package/dist/components/theme-provider.d.ts +27 -5
  9. package/dist/components/theme-provider.js +96 -7
  10. package/dist/components/theme-toggle.d.ts +4 -4
  11. package/dist/components/theme-toggle.js +62 -18
  12. package/dist/components/ui/badge.d.ts +4 -3
  13. package/dist/components/ui/badge.js +31 -30
  14. package/dist/components/ui/button.d.ts +4 -3
  15. package/dist/components/ui/button.js +49 -32
  16. package/dist/components/ui/card.d.ts +3 -3
  17. package/dist/components/ui/card.js +25 -6
  18. package/dist/components/ui/dialog.d.ts +13 -13
  19. package/dist/components/ui/dialog.js +94 -26
  20. package/dist/components/ui/drawer.d.ts +23 -15
  21. package/dist/components/ui/drawer.js +109 -64
  22. package/dist/components/ui/dropdown-menu.d.ts +28 -22
  23. package/dist/components/ui/dropdown-menu.js +165 -36
  24. package/dist/components/ui/empty.d.ts +7 -6
  25. package/dist/components/ui/empty.js +78 -26
  26. package/dist/components/ui/field.d.ts +15 -14
  27. package/dist/components/ui/field.js +177 -55
  28. package/dist/components/ui/input.d.ts +2 -2
  29. package/dist/components/ui/input.js +20 -5
  30. package/dist/components/ui/label.d.ts +2 -2
  31. package/dist/components/ui/label.js +15 -5
  32. package/dist/components/ui/radio-group.d.ts +4 -4
  33. package/dist/components/ui/radio-group.js +36 -9
  34. package/dist/components/ui/separator.d.ts +6 -2
  35. package/dist/components/ui/separator.js +18 -6
  36. package/dist/components/ui/skeleton.d.ts +2 -1
  37. package/dist/components/ui/skeleton.js +15 -4
  38. package/dist/components/ui/spinner.d.ts +4 -3
  39. package/dist/components/ui/spinner.js +15 -5
  40. package/dist/components/ui/switch.d.ts +6 -3
  41. package/dist/components/ui/switch.js +57 -6
  42. package/dist/components/ui/tabs.d.ts +6 -5
  43. package/dist/components/ui/tabs.js +52 -24
  44. package/dist/components/ui/toggle-group.d.ts +10 -8
  45. package/dist/components/ui/toggle-group.js +91 -20
  46. package/dist/components/ui/toggle.d.ts +4 -2
  47. package/dist/components/ui/toggle.js +38 -23
  48. package/dist/components/ui/tooltip.d.ts +13 -6
  49. package/dist/components/ui/tooltip.js +51 -14
  50. package/dist/components/version-dialog.d.ts +2 -2
  51. package/dist/components/version-dialog.js +322 -129
  52. package/dist/components/workspace-brand.d.ts +1 -1
  53. package/dist/components/workspace-brand.js +12 -3
  54. package/dist/components/workspace-logo.d.ts +2 -2
  55. package/dist/components/workspace-logo.js +15 -3
  56. package/dist/index.d.ts +1 -1
  57. package/dist/index.js +20 -19
  58. package/dist/lib/utils.js +7 -4
  59. package/dist/lib/version-notes.js +14 -29
  60. package/package.json +18 -16
  61. package/src/components/account-drawer.tsx +48 -67
  62. package/src/components/on-screen-controls.tsx +55 -62
  63. package/src/components/scene-settings.tsx +97 -100
  64. package/src/components/theme-provider.tsx +122 -22
  65. package/src/components/theme-toggle.tsx +29 -54
  66. package/src/components/ui/badge.tsx +14 -23
  67. package/src/components/ui/button.tsx +9 -11
  68. package/src/components/ui/card.tsx +9 -6
  69. package/src/components/ui/dialog.tsx +58 -55
  70. package/src/components/ui/drawer.tsx +84 -125
  71. package/src/components/ui/dropdown-menu.tsx +130 -153
  72. package/src/components/ui/empty.tsx +29 -26
  73. package/src/components/ui/field.tsx +83 -87
  74. package/src/components/ui/input.tsx +8 -8
  75. package/src/components/ui/label.tsx +6 -7
  76. package/src/components/ui/radio-group.tsx +22 -19
  77. package/src/components/ui/separator.tsx +16 -9
  78. package/src/components/ui/skeleton.tsx +6 -3
  79. package/src/components/ui/spinner.tsx +9 -5
  80. package/src/components/ui/switch.tsx +47 -20
  81. package/src/components/ui/tabs.tsx +31 -30
  82. package/src/components/ui/toggle-group.tsx +65 -54
  83. package/src/components/ui/toggle.tsx +9 -12
  84. package/src/components/ui/tooltip.tsx +41 -36
  85. package/src/components/version-dialog.tsx +144 -144
  86. package/src/components/workspace-brand.tsx +5 -5
  87. package/src/components/workspace-logo.tsx +9 -8
  88. package/src/index.tsx +7 -1
  89. package/src/styles/base.css +637 -0
  90. package/src/styles/globals.css +1 -1
  91. package/tsconfig.json +2 -1
  92. package/components.json +0 -19
@@ -0,0 +1,637 @@
1
+ /* Neutral Tailwind base layer for the shared UI kit: the state variants and
2
+ utilities the components rely on. Framework-neutral CSS only — no component
3
+ runtime, no styling tokens (those live in theme.css and friends). */
4
+
5
+ @theme inline {
6
+ @keyframes accordion-down {
7
+ from {
8
+ height: 0;
9
+ }
10
+ to {
11
+ height: var(--accordion-panel-height, auto);
12
+ }
13
+ }
14
+
15
+ @keyframes accordion-up {
16
+ from {
17
+ height: var(--accordion-panel-height, auto);
18
+ }
19
+ to {
20
+ height: 0;
21
+ }
22
+ }
23
+ }
24
+
25
+ /* A tooltip is informational: neither its popper positioner nor its content may
26
+ intercept the pointer and block the control the tooltip describes. The layer
27
+ stack writes `pointer-events: auto` inline on the active layer, so the
28
+ content needs `!important` to stay out of the pointer path. */
29
+ [data-popper-positioner]:has(> [data-slot='tooltip-content']) {
30
+ pointer-events: none;
31
+ }
32
+
33
+ [data-slot='tooltip-content'] {
34
+ pointer-events: none !important;
35
+ }
36
+
37
+ /* Custom variants */
38
+ @custom-variant data-open {
39
+ &:where([data-state='open']),
40
+ &:where([data-open]:not([data-open='false'])) {
41
+ @slot;
42
+ }
43
+ }
44
+
45
+ @custom-variant data-closed {
46
+ &:where([data-state='closed']),
47
+ &:where([data-closed]:not([data-closed='false'])) {
48
+ @slot;
49
+ }
50
+ }
51
+
52
+ @custom-variant data-checked {
53
+ &:where([data-state='checked']),
54
+ &:where([data-checked]:not([data-checked='false'])) {
55
+ @slot;
56
+ }
57
+ }
58
+
59
+ @custom-variant data-unchecked {
60
+ &:where([data-state='unchecked']),
61
+ &:where([data-unchecked]:not([data-unchecked='false'])) {
62
+ @slot;
63
+ }
64
+ }
65
+
66
+ @custom-variant data-selected {
67
+ &:where([data-selected='true']) {
68
+ @slot;
69
+ }
70
+ }
71
+
72
+ @custom-variant data-disabled {
73
+ &:where([data-disabled='true']),
74
+ &:where([data-disabled]:not([data-disabled='false'])) {
75
+ @slot;
76
+ }
77
+ }
78
+
79
+ @custom-variant data-active {
80
+ &:where([data-state='active']),
81
+ &:where([data-active]:not([data-active='false'])) {
82
+ @slot;
83
+ }
84
+ }
85
+
86
+ @custom-variant data-horizontal {
87
+ &:where([data-orientation='horizontal']) {
88
+ @slot;
89
+ }
90
+ }
91
+
92
+ @custom-variant data-vertical {
93
+ &:where([data-orientation='vertical']) {
94
+ @slot;
95
+ }
96
+ }
97
+
98
+ @utility no-scrollbar {
99
+ -ms-overflow-style: none;
100
+ scrollbar-width: none;
101
+
102
+ &::-webkit-scrollbar {
103
+ display: none;
104
+ }
105
+ }
106
+
107
+ /* scroll-fade */
108
+ @property --scroll-fade-t {
109
+ syntax: '<length-percentage>';
110
+ inherits: false;
111
+ initial-value: 0px;
112
+ }
113
+ @property --scroll-fade-b {
114
+ syntax: '<length-percentage>';
115
+ inherits: false;
116
+ initial-value: 0px;
117
+ }
118
+ @property --scroll-fade-s {
119
+ syntax: '<length-percentage>';
120
+ inherits: false;
121
+ initial-value: 0px;
122
+ }
123
+ @property --scroll-fade-e {
124
+ syntax: '<length-percentage>';
125
+ inherits: false;
126
+ initial-value: 0px;
127
+ }
128
+ @property --scroll-fade-mask {
129
+ syntax: '*';
130
+ inherits: false;
131
+ }
132
+
133
+ @theme inline {
134
+ @keyframes scroll-fade-reveal-t {
135
+ from {
136
+ --scroll-fade-t: 0px;
137
+ }
138
+ to {
139
+ --scroll-fade-t: var(
140
+ --_scroll-fade-size-t,
141
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
142
+ );
143
+ }
144
+ }
145
+ @keyframes scroll-fade-reveal-b {
146
+ from {
147
+ --scroll-fade-b: var(
148
+ --_scroll-fade-size-b,
149
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
150
+ );
151
+ }
152
+ to {
153
+ --scroll-fade-b: 0px;
154
+ }
155
+ }
156
+ @keyframes scroll-fade-reveal-s {
157
+ from {
158
+ --scroll-fade-s: 0px;
159
+ }
160
+ to {
161
+ --scroll-fade-s: var(
162
+ --_scroll-fade-size-s,
163
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
164
+ );
165
+ }
166
+ }
167
+ @keyframes scroll-fade-reveal-e {
168
+ from {
169
+ --scroll-fade-e: var(
170
+ --_scroll-fade-size-e,
171
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
172
+ );
173
+ }
174
+ to {
175
+ --scroll-fade-e: 0px;
176
+ }
177
+ }
178
+ }
179
+
180
+ @utility scroll-fade {
181
+ --_scroll-fade-size-t: var(
182
+ --scroll-fade-t-size,
183
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
184
+ );
185
+ --_scroll-fade-size-b: var(
186
+ --scroll-fade-b-size,
187
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
188
+ );
189
+ --scroll-fade-block: linear-gradient(
190
+ to bottom,
191
+ transparent 0,
192
+ #000 var(--scroll-fade-t, 0px),
193
+ #000 calc(100% - var(--scroll-fade-b, 0px)),
194
+ transparent 100%
195
+ );
196
+ -webkit-mask-image: var(--scroll-fade-mask, var(--scroll-fade-block));
197
+ mask-image: var(--scroll-fade-mask, var(--scroll-fade-block));
198
+ -webkit-mask-composite: source-in;
199
+ mask-composite: intersect;
200
+ -webkit-mask-repeat: no-repeat;
201
+ mask-repeat: no-repeat;
202
+
203
+ @supports (animation-timeline: scroll()) {
204
+ animation:
205
+ scroll-fade-reveal-t 1ms ease-in-out,
206
+ scroll-fade-reveal-b 1ms ease-in-out;
207
+ animation-timeline: scroll(self y), scroll(self y);
208
+ animation-range:
209
+ 0 var(--scroll-fade-reveal, calc(var(--spacing) * 24)),
210
+ calc(100% - var(--scroll-fade-reveal, calc(var(--spacing) * 24))) 100%;
211
+ animation-fill-mode: both;
212
+ }
213
+
214
+ @supports not (animation-timeline: scroll()) {
215
+ --scroll-fade-t: var(--_scroll-fade-size-t);
216
+ --scroll-fade-b: var(--_scroll-fade-size-b);
217
+ }
218
+ }
219
+
220
+ @utility scroll-fade-y {
221
+ --_scroll-fade-size-t: var(
222
+ --scroll-fade-t-size,
223
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
224
+ );
225
+ --_scroll-fade-size-b: var(
226
+ --scroll-fade-b-size,
227
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
228
+ );
229
+ --scroll-fade-block: linear-gradient(
230
+ to bottom,
231
+ transparent 0,
232
+ #000 var(--scroll-fade-t, 0px),
233
+ #000 calc(100% - var(--scroll-fade-b, 0px)),
234
+ transparent 100%
235
+ );
236
+ -webkit-mask-image: var(--scroll-fade-mask, var(--scroll-fade-block));
237
+ mask-image: var(--scroll-fade-mask, var(--scroll-fade-block));
238
+ -webkit-mask-composite: source-in;
239
+ mask-composite: intersect;
240
+ -webkit-mask-repeat: no-repeat;
241
+ mask-repeat: no-repeat;
242
+
243
+ @supports (animation-timeline: scroll()) {
244
+ animation:
245
+ scroll-fade-reveal-t 1ms ease-in-out,
246
+ scroll-fade-reveal-b 1ms ease-in-out;
247
+ animation-timeline: scroll(self y), scroll(self y);
248
+ animation-range:
249
+ 0 var(--scroll-fade-reveal, calc(var(--spacing) * 24)),
250
+ calc(100% - var(--scroll-fade-reveal, calc(var(--spacing) * 24))) 100%;
251
+ animation-fill-mode: both;
252
+ }
253
+
254
+ @supports not (animation-timeline: scroll()) {
255
+ --scroll-fade-t: var(--_scroll-fade-size-t);
256
+ --scroll-fade-b: var(--_scroll-fade-size-b);
257
+ }
258
+ }
259
+
260
+ @utility scroll-fade-x {
261
+ --_scroll-fade-size-s: var(
262
+ --scroll-fade-s-size,
263
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
264
+ );
265
+ --_scroll-fade-size-e: var(
266
+ --scroll-fade-e-size,
267
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
268
+ );
269
+ --scroll-fade-inline: linear-gradient(
270
+ to right,
271
+ transparent 0,
272
+ #000 var(--scroll-fade-s, 0px),
273
+ #000 calc(100% - var(--scroll-fade-e, 0px)),
274
+ transparent 100%
275
+ );
276
+ &:where([dir='rtl'], [dir='rtl'] *) {
277
+ --scroll-fade-inline: linear-gradient(
278
+ to left,
279
+ transparent 0,
280
+ #000 var(--scroll-fade-s, 0px),
281
+ #000 calc(100% - var(--scroll-fade-e, 0px)),
282
+ transparent 100%
283
+ );
284
+ }
285
+ -webkit-mask-image: var(--scroll-fade-mask, var(--scroll-fade-inline));
286
+ mask-image: var(--scroll-fade-mask, var(--scroll-fade-inline));
287
+ -webkit-mask-composite: source-in;
288
+ mask-composite: intersect;
289
+ -webkit-mask-repeat: no-repeat;
290
+ mask-repeat: no-repeat;
291
+
292
+ @supports (animation-timeline: scroll()) {
293
+ animation:
294
+ scroll-fade-reveal-s 1ms ease-in-out,
295
+ scroll-fade-reveal-e 1ms ease-in-out;
296
+ animation-timeline: scroll(self inline), scroll(self inline);
297
+ animation-range:
298
+ 0 var(--scroll-fade-reveal, calc(var(--spacing) * 24)),
299
+ calc(100% - var(--scroll-fade-reveal, calc(var(--spacing) * 24))) 100%;
300
+ animation-fill-mode: both;
301
+ }
302
+
303
+ @supports not (animation-timeline: scroll()) {
304
+ --scroll-fade-s: var(--_scroll-fade-size-s);
305
+ --scroll-fade-e: var(--_scroll-fade-size-e);
306
+ }
307
+ }
308
+
309
+ @utility scroll-fade-t {
310
+ --_scroll-fade-size-t: var(
311
+ --scroll-fade-t-size,
312
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
313
+ );
314
+ --scroll-fade-mask: linear-gradient(
315
+ to bottom,
316
+ transparent 0,
317
+ #000 var(--scroll-fade-t, 0px),
318
+ #000 100%
319
+ );
320
+ -webkit-mask-image: var(--scroll-fade-mask);
321
+ mask-image: var(--scroll-fade-mask);
322
+ -webkit-mask-composite: source-in;
323
+ mask-composite: intersect;
324
+ -webkit-mask-repeat: no-repeat;
325
+ mask-repeat: no-repeat;
326
+
327
+ @supports (animation-timeline: scroll()) {
328
+ animation: scroll-fade-reveal-t 1ms ease-in-out;
329
+ animation-timeline: scroll(self y);
330
+ animation-range: 0 var(--scroll-fade-reveal, calc(var(--spacing) * 24));
331
+ animation-fill-mode: both;
332
+ }
333
+
334
+ @supports not (animation-timeline: scroll()) {
335
+ --scroll-fade-t: var(--_scroll-fade-size-t);
336
+ }
337
+ }
338
+
339
+ @utility scroll-fade-b {
340
+ --_scroll-fade-size-b: var(
341
+ --scroll-fade-b-size,
342
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
343
+ );
344
+ --scroll-fade-mask: linear-gradient(
345
+ to bottom,
346
+ #000 0,
347
+ #000 calc(100% - var(--scroll-fade-b, 0px)),
348
+ transparent 100%
349
+ );
350
+ -webkit-mask-image: var(--scroll-fade-mask);
351
+ mask-image: var(--scroll-fade-mask);
352
+ -webkit-mask-composite: source-in;
353
+ mask-composite: intersect;
354
+ -webkit-mask-repeat: no-repeat;
355
+ mask-repeat: no-repeat;
356
+
357
+ @supports (animation-timeline: scroll()) {
358
+ animation: scroll-fade-reveal-b 1ms ease-in-out;
359
+ animation-timeline: scroll(self y);
360
+ animation-range: calc(100% - var(--scroll-fade-reveal, calc(var(--spacing) * 24))) 100%;
361
+ animation-fill-mode: both;
362
+ }
363
+
364
+ @supports not (animation-timeline: scroll()) {
365
+ --scroll-fade-b: var(--_scroll-fade-size-b);
366
+ }
367
+ }
368
+
369
+ @utility scroll-fade-l {
370
+ --_scroll-fade-size-s: var(
371
+ --scroll-fade-s-size,
372
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
373
+ );
374
+ --scroll-fade-mask: linear-gradient(
375
+ to right,
376
+ transparent 0,
377
+ #000 var(--scroll-fade-s, 0px),
378
+ #000 100%
379
+ );
380
+ -webkit-mask-image: var(--scroll-fade-mask);
381
+ mask-image: var(--scroll-fade-mask);
382
+ -webkit-mask-composite: source-in;
383
+ mask-composite: intersect;
384
+ -webkit-mask-repeat: no-repeat;
385
+ mask-repeat: no-repeat;
386
+
387
+ @supports (animation-timeline: scroll()) {
388
+ animation: scroll-fade-reveal-s 1ms ease-in-out;
389
+ animation-timeline: scroll(self x);
390
+ animation-range: 0 var(--scroll-fade-reveal, calc(var(--spacing) * 24));
391
+ animation-fill-mode: both;
392
+ }
393
+
394
+ @supports not (animation-timeline: scroll()) {
395
+ --scroll-fade-s: var(--_scroll-fade-size-s);
396
+ }
397
+ }
398
+
399
+ @utility scroll-fade-r {
400
+ --_scroll-fade-size-e: var(
401
+ --scroll-fade-e-size,
402
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
403
+ );
404
+ --scroll-fade-mask: linear-gradient(
405
+ to right,
406
+ #000 0,
407
+ #000 calc(100% - var(--scroll-fade-e, 0px)),
408
+ transparent 100%
409
+ );
410
+ -webkit-mask-image: var(--scroll-fade-mask);
411
+ mask-image: var(--scroll-fade-mask);
412
+ -webkit-mask-composite: source-in;
413
+ mask-composite: intersect;
414
+ -webkit-mask-repeat: no-repeat;
415
+ mask-repeat: no-repeat;
416
+
417
+ @supports (animation-timeline: scroll()) {
418
+ animation: scroll-fade-reveal-e 1ms ease-in-out;
419
+ animation-timeline: scroll(self x);
420
+ animation-range: calc(100% - var(--scroll-fade-reveal, calc(var(--spacing) * 24))) 100%;
421
+ animation-fill-mode: both;
422
+ }
423
+
424
+ @supports not (animation-timeline: scroll()) {
425
+ --scroll-fade-e: var(--_scroll-fade-size-e);
426
+ }
427
+ }
428
+
429
+ @utility scroll-fade-s {
430
+ --_scroll-fade-size-s: var(
431
+ --scroll-fade-s-size,
432
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
433
+ );
434
+ --scroll-fade-mask: linear-gradient(
435
+ to right,
436
+ transparent 0,
437
+ #000 var(--scroll-fade-s, 0px),
438
+ #000 100%
439
+ );
440
+ &:where([dir='rtl'], [dir='rtl'] *) {
441
+ --scroll-fade-mask: linear-gradient(
442
+ to left,
443
+ transparent 0,
444
+ #000 var(--scroll-fade-s, 0px),
445
+ #000 100%
446
+ );
447
+ }
448
+ -webkit-mask-image: var(--scroll-fade-mask);
449
+ mask-image: var(--scroll-fade-mask);
450
+ -webkit-mask-composite: source-in;
451
+ mask-composite: intersect;
452
+ -webkit-mask-repeat: no-repeat;
453
+ mask-repeat: no-repeat;
454
+
455
+ @supports (animation-timeline: scroll()) {
456
+ animation: scroll-fade-reveal-s 1ms ease-in-out;
457
+ animation-timeline: scroll(self inline);
458
+ animation-range: 0 var(--scroll-fade-reveal, calc(var(--spacing) * 24));
459
+ animation-fill-mode: both;
460
+ }
461
+
462
+ @supports not (animation-timeline: scroll()) {
463
+ --scroll-fade-s: var(--_scroll-fade-size-s);
464
+ }
465
+ }
466
+
467
+ @utility scroll-fade-e {
468
+ --_scroll-fade-size-e: var(
469
+ --scroll-fade-e-size,
470
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
471
+ );
472
+ --scroll-fade-mask: linear-gradient(
473
+ to right,
474
+ #000 0,
475
+ #000 calc(100% - var(--scroll-fade-e, 0px)),
476
+ transparent 100%
477
+ );
478
+ &:where([dir='rtl'], [dir='rtl'] *) {
479
+ --scroll-fade-mask: linear-gradient(
480
+ to left,
481
+ #000 0,
482
+ #000 calc(100% - var(--scroll-fade-e, 0px)),
483
+ transparent 100%
484
+ );
485
+ }
486
+ -webkit-mask-image: var(--scroll-fade-mask);
487
+ mask-image: var(--scroll-fade-mask);
488
+ -webkit-mask-composite: source-in;
489
+ mask-composite: intersect;
490
+ -webkit-mask-repeat: no-repeat;
491
+ mask-repeat: no-repeat;
492
+
493
+ @supports (animation-timeline: scroll()) {
494
+ animation: scroll-fade-reveal-e 1ms ease-in-out;
495
+ animation-timeline: scroll(self inline);
496
+ animation-range: calc(100% - var(--scroll-fade-reveal, calc(var(--spacing) * 24))) 100%;
497
+ animation-fill-mode: both;
498
+ }
499
+
500
+ @supports not (animation-timeline: scroll()) {
501
+ --scroll-fade-e: var(--_scroll-fade-size-e);
502
+ }
503
+ }
504
+
505
+ @utility scroll-fade-* {
506
+ --scroll-fade-size: calc(var(--spacing) * --value(integer));
507
+ --scroll-fade-size: --value([length], [percentage]);
508
+ }
509
+
510
+ @utility scroll-fade-t-* {
511
+ --scroll-fade-t-size: calc(var(--spacing) * --value(integer));
512
+ --scroll-fade-t-size: --value([length], [percentage]);
513
+ }
514
+
515
+ @utility scroll-fade-b-* {
516
+ --scroll-fade-b-size: calc(var(--spacing) * --value(integer));
517
+ --scroll-fade-b-size: --value([length], [percentage]);
518
+ }
519
+
520
+ @utility scroll-fade-s-* {
521
+ --scroll-fade-s-size: calc(var(--spacing) * --value(integer));
522
+ --scroll-fade-s-size: --value([length], [percentage]);
523
+ }
524
+
525
+ @utility scroll-fade-e-* {
526
+ --scroll-fade-e-size: calc(var(--spacing) * --value(integer));
527
+ --scroll-fade-e-size: --value([length], [percentage]);
528
+ }
529
+
530
+ @utility scroll-fade-none {
531
+ --scroll-fade-mask: none;
532
+ }
533
+
534
+ /* shimmer */
535
+ @property --shimmer-angle {
536
+ syntax: '<angle>';
537
+ inherits: true;
538
+ initial-value: 20deg;
539
+ }
540
+ @property --shimmer-image {
541
+ syntax: '*';
542
+ inherits: false;
543
+ }
544
+ @property --shimmer-text-fill {
545
+ syntax: '*';
546
+ inherits: false;
547
+ }
548
+
549
+ @theme inline {
550
+ @keyframes tw-shimmer {
551
+ from {
552
+ background-position: 100% 0;
553
+ }
554
+ to {
555
+ background-position: 0 0;
556
+ }
557
+ }
558
+ }
559
+
560
+ @utility shimmer {
561
+ --_spread: var(--shimmer-spread, calc(3ch + 40px));
562
+ --_base: currentColor;
563
+ --_highlight: var(--shimmer-color, oklch(from currentColor l c h / calc(alpha* 0.2)));
564
+
565
+ background-image: var(
566
+ --shimmer-image,
567
+ linear-gradient(
568
+ calc(90deg + var(--shimmer-angle)),
569
+ var(--_base) calc(50% - var(--_spread)),
570
+ color-mix(in oklch, var(--_highlight), var(--_base) 50%) calc(50% - var(--_spread) * 0.5),
571
+ var(--_highlight) 50%,
572
+ color-mix(in oklch, var(--_highlight), var(--_base) 50%) calc(50% + var(--_spread) * 0.5),
573
+ var(--_base) calc(50% + var(--_spread))
574
+ )
575
+ );
576
+ background-repeat: no-repeat;
577
+ background-size: calc(200% + var(--_spread) * 2) 100%;
578
+ background-position: 0 0;
579
+ background-clip: text;
580
+ -webkit-background-clip: text;
581
+ -webkit-text-fill-color: var(--shimmer-text-fill, transparent);
582
+ animation: tw-shimmer var(--shimmer-duration, 2s) linear infinite;
583
+
584
+ @variant dark {
585
+ --_highlight: var(
586
+ --shimmer-color,
587
+ oklch(from currentColor max(0.8, calc(l + 0.4)) c h / calc(alpha + 0.4))
588
+ );
589
+ }
590
+
591
+ &:where([dir='rtl'], [dir='rtl'] *) {
592
+ animation-direction: reverse;
593
+ }
594
+ }
595
+
596
+ @utility shimmer-once {
597
+ animation-iteration-count: 1;
598
+ }
599
+
600
+ @utility shimmer-reverse {
601
+ animation-direction: reverse;
602
+ }
603
+
604
+ @utility shimmer-none {
605
+ --shimmer-image: none;
606
+ --shimmer-text-fill: currentColor;
607
+ }
608
+
609
+ @utility shimmer-color-* {
610
+ --shimmer-color: --value(--color, [color]);
611
+ --shimmer-color: color-mix(
612
+ in oklch,
613
+ --value(--color, [color]) calc(--modifier(integer) * 1%),
614
+ transparent
615
+ );
616
+ }
617
+
618
+ @utility shimmer-duration-* {
619
+ --shimmer-duration: calc(--value(integer) * 1ms);
620
+ }
621
+
622
+ @utility shimmer-spread-* {
623
+ --shimmer-spread: calc(var(--spacing) * --value(integer));
624
+ --shimmer-spread: --value([length], [percentage]);
625
+ }
626
+
627
+ @utility shimmer-angle-* {
628
+ --shimmer-angle: calc(--value(integer) * 1deg);
629
+ }
630
+
631
+ @media (prefers-reduced-motion: reduce) {
632
+ .shimmer {
633
+ animation: none;
634
+ background-image: none;
635
+ -webkit-text-fill-color: currentColor;
636
+ }
637
+ }
@@ -1,5 +1,5 @@
1
1
  @import 'tailwindcss';
2
- @import 'shadcn/tailwind.css';
2
+ @import './base.css';
3
3
 
4
4
  /* Include shared components when this stylesheet is consumed by an app. */
5
5
  @source "../";
package/tsconfig.json CHANGED
@@ -4,7 +4,8 @@
4
4
  "rootDir": "src",
5
5
  "outDir": "dist",
6
6
  "declaration": true,
7
- "jsx": "react-jsx"
7
+ "jsx": "preserve",
8
+ "jsxImportSource": "solid-js"
8
9
  },
9
10
  "include": ["src"]
10
11
  }
package/components.json DELETED
@@ -1,19 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema.json",
3
- "style": "base-nova",
4
- "rsc": true,
5
- "tsx": true,
6
- "tailwind": {
7
- "config": "",
8
- "css": "src/styles/globals.css",
9
- "baseColor": "neutral",
10
- "cssVariables": true
11
- },
12
- "iconLibrary": "lucide",
13
- "aliases": {
14
- "components": "#components",
15
- "utils": "#lib/utils",
16
- "lib": "#lib",
17
- "ui": "#components/ui"
18
- }
19
- }