shadcn-svelte 1.6.0 → 1.6.1

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 (2) hide show
  1. package/dist/tailwind.css +535 -0
  2. package/package.json +1 -1
package/dist/tailwind.css CHANGED
@@ -87,3 +87,538 @@
87
87
  display: none;
88
88
  }
89
89
  }
90
+
91
+ /* scroll-fade */
92
+ @property --scroll-fade-t {
93
+ syntax: "<length-percentage>";
94
+ inherits: false;
95
+ initial-value: 0px;
96
+ }
97
+ @property --scroll-fade-b {
98
+ syntax: "<length-percentage>";
99
+ inherits: false;
100
+ initial-value: 0px;
101
+ }
102
+ @property --scroll-fade-s {
103
+ syntax: "<length-percentage>";
104
+ inherits: false;
105
+ initial-value: 0px;
106
+ }
107
+ @property --scroll-fade-e {
108
+ syntax: "<length-percentage>";
109
+ inherits: false;
110
+ initial-value: 0px;
111
+ }
112
+ @property --scroll-fade-mask {
113
+ syntax: "*";
114
+ inherits: false;
115
+ }
116
+
117
+ @theme inline {
118
+ @keyframes scroll-fade-reveal-t {
119
+ from {
120
+ --scroll-fade-t: 0px;
121
+ }
122
+ to {
123
+ --scroll-fade-t: var(--_scroll-fade-size-t, var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10))));
124
+ }
125
+ }
126
+ @keyframes scroll-fade-reveal-b {
127
+ from {
128
+ --scroll-fade-b: var(--_scroll-fade-size-b, var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10))));
129
+ }
130
+ to {
131
+ --scroll-fade-b: 0px;
132
+ }
133
+ }
134
+ @keyframes scroll-fade-reveal-s {
135
+ from {
136
+ --scroll-fade-s: 0px;
137
+ }
138
+ to {
139
+ --scroll-fade-s: var(--_scroll-fade-size-s, var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10))));
140
+ }
141
+ }
142
+ @keyframes scroll-fade-reveal-e {
143
+ from {
144
+ --scroll-fade-e: var(--_scroll-fade-size-e, var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10))));
145
+ }
146
+ to {
147
+ --scroll-fade-e: 0px;
148
+ }
149
+ }
150
+ }
151
+
152
+ @utility scroll-fade {
153
+ --_scroll-fade-size-t: var(
154
+ --scroll-fade-t-size,
155
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
156
+ );
157
+ --_scroll-fade-size-b: var(
158
+ --scroll-fade-b-size,
159
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
160
+ );
161
+ --scroll-fade-block: linear-gradient(
162
+ to bottom,
163
+ transparent 0,
164
+ #000 var(--scroll-fade-t, 0px),
165
+ #000 calc(100% - var(--scroll-fade-b, 0px)),
166
+ transparent 100%
167
+ );
168
+ -webkit-mask-image: var(--scroll-fade-mask, var(--scroll-fade-block));
169
+ mask-image: var(--scroll-fade-mask, var(--scroll-fade-block));
170
+ -webkit-mask-composite: source-in;
171
+ mask-composite: intersect;
172
+ -webkit-mask-repeat: no-repeat;
173
+ mask-repeat: no-repeat;
174
+
175
+ @supports (animation-timeline: scroll()) {
176
+ animation:
177
+ scroll-fade-reveal-t 1ms ease-in-out,
178
+ scroll-fade-reveal-b 1ms ease-in-out;
179
+ animation-timeline: scroll(self y), scroll(self y);
180
+ animation-range:
181
+ 0 var(--scroll-fade-reveal, calc(var(--spacing) * 24)),
182
+ calc(100% - var(--scroll-fade-reveal, calc(var(--spacing) * 24))) 100%;
183
+ animation-fill-mode: both;
184
+ }
185
+
186
+ @supports not (animation-timeline: scroll()) {
187
+ --scroll-fade-t: var(--_scroll-fade-size-t);
188
+ --scroll-fade-b: var(--_scroll-fade-size-b);
189
+ }
190
+ }
191
+
192
+ @utility scroll-fade-y {
193
+ --_scroll-fade-size-t: var(
194
+ --scroll-fade-t-size,
195
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
196
+ );
197
+ --_scroll-fade-size-b: var(
198
+ --scroll-fade-b-size,
199
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
200
+ );
201
+ --scroll-fade-block: linear-gradient(
202
+ to bottom,
203
+ transparent 0,
204
+ #000 var(--scroll-fade-t, 0px),
205
+ #000 calc(100% - var(--scroll-fade-b, 0px)),
206
+ transparent 100%
207
+ );
208
+ -webkit-mask-image: var(--scroll-fade-mask, var(--scroll-fade-block));
209
+ mask-image: var(--scroll-fade-mask, var(--scroll-fade-block));
210
+ -webkit-mask-composite: source-in;
211
+ mask-composite: intersect;
212
+ -webkit-mask-repeat: no-repeat;
213
+ mask-repeat: no-repeat;
214
+
215
+ @supports (animation-timeline: scroll()) {
216
+ animation:
217
+ scroll-fade-reveal-t 1ms ease-in-out,
218
+ scroll-fade-reveal-b 1ms ease-in-out;
219
+ animation-timeline: scroll(self y), scroll(self y);
220
+ animation-range:
221
+ 0 var(--scroll-fade-reveal, calc(var(--spacing) * 24)),
222
+ calc(100% - var(--scroll-fade-reveal, calc(var(--spacing) * 24))) 100%;
223
+ animation-fill-mode: both;
224
+ }
225
+
226
+ @supports not (animation-timeline: scroll()) {
227
+ --scroll-fade-t: var(--_scroll-fade-size-t);
228
+ --scroll-fade-b: var(--_scroll-fade-size-b);
229
+ }
230
+ }
231
+
232
+ @utility scroll-fade-x {
233
+ --_scroll-fade-size-s: var(
234
+ --scroll-fade-s-size,
235
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
236
+ );
237
+ --_scroll-fade-size-e: var(
238
+ --scroll-fade-e-size,
239
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
240
+ );
241
+ --scroll-fade-inline: linear-gradient(
242
+ to right,
243
+ transparent 0,
244
+ #000 var(--scroll-fade-s, 0px),
245
+ #000 calc(100% - var(--scroll-fade-e, 0px)),
246
+ transparent 100%
247
+ );
248
+ &:where([dir="rtl"], [dir="rtl"] *) {
249
+ --scroll-fade-inline: linear-gradient(
250
+ to left,
251
+ transparent 0,
252
+ #000 var(--scroll-fade-s, 0px),
253
+ #000 calc(100% - var(--scroll-fade-e, 0px)),
254
+ transparent 100%
255
+ );
256
+ }
257
+ -webkit-mask-image: var(--scroll-fade-mask, var(--scroll-fade-inline));
258
+ mask-image: var(--scroll-fade-mask, var(--scroll-fade-inline));
259
+ -webkit-mask-composite: source-in;
260
+ mask-composite: intersect;
261
+ -webkit-mask-repeat: no-repeat;
262
+ mask-repeat: no-repeat;
263
+
264
+ @supports (animation-timeline: scroll()) {
265
+ animation:
266
+ scroll-fade-reveal-s 1ms ease-in-out,
267
+ scroll-fade-reveal-e 1ms ease-in-out;
268
+ animation-timeline: scroll(self inline), scroll(self inline);
269
+ animation-range:
270
+ 0 var(--scroll-fade-reveal, calc(var(--spacing) * 24)),
271
+ calc(100% - var(--scroll-fade-reveal, calc(var(--spacing) * 24))) 100%;
272
+ animation-fill-mode: both;
273
+ }
274
+
275
+ @supports not (animation-timeline: scroll()) {
276
+ --scroll-fade-s: var(--_scroll-fade-size-s);
277
+ --scroll-fade-e: var(--_scroll-fade-size-e);
278
+ }
279
+ }
280
+
281
+ @utility scroll-fade-t {
282
+ --_scroll-fade-size-t: var(
283
+ --scroll-fade-t-size,
284
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
285
+ );
286
+ --scroll-fade-mask: linear-gradient(
287
+ to bottom,
288
+ transparent 0,
289
+ #000 var(--scroll-fade-t, 0px),
290
+ #000 100%
291
+ );
292
+ -webkit-mask-image: var(--scroll-fade-mask);
293
+ mask-image: var(--scroll-fade-mask);
294
+ -webkit-mask-composite: source-in;
295
+ mask-composite: intersect;
296
+ -webkit-mask-repeat: no-repeat;
297
+ mask-repeat: no-repeat;
298
+
299
+ @supports (animation-timeline: scroll()) {
300
+ animation: scroll-fade-reveal-t 1ms ease-in-out;
301
+ animation-timeline: scroll(self y);
302
+ animation-range: 0 var(--scroll-fade-reveal, calc(var(--spacing) * 24));
303
+ animation-fill-mode: both;
304
+ }
305
+
306
+ @supports not (animation-timeline: scroll()) {
307
+ --scroll-fade-t: var(--_scroll-fade-size-t);
308
+ }
309
+ }
310
+
311
+ @utility scroll-fade-b {
312
+ --_scroll-fade-size-b: var(
313
+ --scroll-fade-b-size,
314
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
315
+ );
316
+ --scroll-fade-mask: linear-gradient(
317
+ to bottom,
318
+ #000 0,
319
+ #000 calc(100% - var(--scroll-fade-b, 0px)),
320
+ transparent 100%
321
+ );
322
+ -webkit-mask-image: var(--scroll-fade-mask);
323
+ mask-image: var(--scroll-fade-mask);
324
+ -webkit-mask-composite: source-in;
325
+ mask-composite: intersect;
326
+ -webkit-mask-repeat: no-repeat;
327
+ mask-repeat: no-repeat;
328
+
329
+ @supports (animation-timeline: scroll()) {
330
+ animation: scroll-fade-reveal-b 1ms ease-in-out;
331
+ animation-timeline: scroll(self y);
332
+ animation-range: calc(
333
+ 100% - var(--scroll-fade-reveal, calc(var(--spacing) * 24))
334
+ )
335
+ 100%;
336
+ animation-fill-mode: both;
337
+ }
338
+
339
+ @supports not (animation-timeline: scroll()) {
340
+ --scroll-fade-b: var(--_scroll-fade-size-b);
341
+ }
342
+ }
343
+
344
+ @utility scroll-fade-l {
345
+ --_scroll-fade-size-s: var(
346
+ --scroll-fade-s-size,
347
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
348
+ );
349
+ --scroll-fade-mask: linear-gradient(
350
+ to right,
351
+ transparent 0,
352
+ #000 var(--scroll-fade-s, 0px),
353
+ #000 100%
354
+ );
355
+ -webkit-mask-image: var(--scroll-fade-mask);
356
+ mask-image: var(--scroll-fade-mask);
357
+ -webkit-mask-composite: source-in;
358
+ mask-composite: intersect;
359
+ -webkit-mask-repeat: no-repeat;
360
+ mask-repeat: no-repeat;
361
+
362
+ @supports (animation-timeline: scroll()) {
363
+ animation: scroll-fade-reveal-s 1ms ease-in-out;
364
+ animation-timeline: scroll(self x);
365
+ animation-range: 0 var(--scroll-fade-reveal, calc(var(--spacing) * 24));
366
+ animation-fill-mode: both;
367
+ }
368
+
369
+ @supports not (animation-timeline: scroll()) {
370
+ --scroll-fade-s: var(--_scroll-fade-size-s);
371
+ }
372
+ }
373
+
374
+ @utility scroll-fade-r {
375
+ --_scroll-fade-size-e: var(
376
+ --scroll-fade-e-size,
377
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
378
+ );
379
+ --scroll-fade-mask: linear-gradient(
380
+ to right,
381
+ #000 0,
382
+ #000 calc(100% - var(--scroll-fade-e, 0px)),
383
+ transparent 100%
384
+ );
385
+ -webkit-mask-image: var(--scroll-fade-mask);
386
+ mask-image: var(--scroll-fade-mask);
387
+ -webkit-mask-composite: source-in;
388
+ mask-composite: intersect;
389
+ -webkit-mask-repeat: no-repeat;
390
+ mask-repeat: no-repeat;
391
+
392
+ @supports (animation-timeline: scroll()) {
393
+ animation: scroll-fade-reveal-e 1ms ease-in-out;
394
+ animation-timeline: scroll(self x);
395
+ animation-range: calc(
396
+ 100% - var(--scroll-fade-reveal, calc(var(--spacing) * 24))
397
+ )
398
+ 100%;
399
+ animation-fill-mode: both;
400
+ }
401
+
402
+ @supports not (animation-timeline: scroll()) {
403
+ --scroll-fade-e: var(--_scroll-fade-size-e);
404
+ }
405
+ }
406
+
407
+ @utility scroll-fade-s {
408
+ --_scroll-fade-size-s: var(
409
+ --scroll-fade-s-size,
410
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
411
+ );
412
+ --scroll-fade-mask: linear-gradient(
413
+ to right,
414
+ transparent 0,
415
+ #000 var(--scroll-fade-s, 0px),
416
+ #000 100%
417
+ );
418
+ &:where([dir="rtl"], [dir="rtl"] *) {
419
+ --scroll-fade-mask: linear-gradient(
420
+ to left,
421
+ transparent 0,
422
+ #000 var(--scroll-fade-s, 0px),
423
+ #000 100%
424
+ );
425
+ }
426
+ -webkit-mask-image: var(--scroll-fade-mask);
427
+ mask-image: var(--scroll-fade-mask);
428
+ -webkit-mask-composite: source-in;
429
+ mask-composite: intersect;
430
+ -webkit-mask-repeat: no-repeat;
431
+ mask-repeat: no-repeat;
432
+
433
+ @supports (animation-timeline: scroll()) {
434
+ animation: scroll-fade-reveal-s 1ms ease-in-out;
435
+ animation-timeline: scroll(self inline);
436
+ animation-range: 0 var(--scroll-fade-reveal, calc(var(--spacing) * 24));
437
+ animation-fill-mode: both;
438
+ }
439
+
440
+ @supports not (animation-timeline: scroll()) {
441
+ --scroll-fade-s: var(--_scroll-fade-size-s);
442
+ }
443
+ }
444
+
445
+ @utility scroll-fade-e {
446
+ --_scroll-fade-size-e: var(
447
+ --scroll-fade-e-size,
448
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
449
+ );
450
+ --scroll-fade-mask: linear-gradient(
451
+ to right,
452
+ #000 0,
453
+ #000 calc(100% - var(--scroll-fade-e, 0px)),
454
+ transparent 100%
455
+ );
456
+ &:where([dir="rtl"], [dir="rtl"] *) {
457
+ --scroll-fade-mask: linear-gradient(
458
+ to left,
459
+ #000 0,
460
+ #000 calc(100% - var(--scroll-fade-e, 0px)),
461
+ transparent 100%
462
+ );
463
+ }
464
+ -webkit-mask-image: var(--scroll-fade-mask);
465
+ mask-image: var(--scroll-fade-mask);
466
+ -webkit-mask-composite: source-in;
467
+ mask-composite: intersect;
468
+ -webkit-mask-repeat: no-repeat;
469
+ mask-repeat: no-repeat;
470
+
471
+ @supports (animation-timeline: scroll()) {
472
+ animation: scroll-fade-reveal-e 1ms ease-in-out;
473
+ animation-timeline: scroll(self inline);
474
+ animation-range: calc(
475
+ 100% - var(--scroll-fade-reveal, calc(var(--spacing) * 24))
476
+ )
477
+ 100%;
478
+ animation-fill-mode: both;
479
+ }
480
+
481
+ @supports not (animation-timeline: scroll()) {
482
+ --scroll-fade-e: var(--_scroll-fade-size-e);
483
+ }
484
+ }
485
+
486
+ @utility scroll-fade-* {
487
+ --scroll-fade-size: calc(var(--spacing) * --value(integer));
488
+ --scroll-fade-size: --value([length], [percentage]);
489
+ }
490
+
491
+ @utility scroll-fade-t-* {
492
+ --scroll-fade-t-size: calc(var(--spacing) * --value(integer));
493
+ --scroll-fade-t-size: --value([length], [percentage]);
494
+ }
495
+
496
+ @utility scroll-fade-b-* {
497
+ --scroll-fade-b-size: calc(var(--spacing) * --value(integer));
498
+ --scroll-fade-b-size: --value([length], [percentage]);
499
+ }
500
+
501
+ @utility scroll-fade-s-* {
502
+ --scroll-fade-s-size: calc(var(--spacing) * --value(integer));
503
+ --scroll-fade-s-size: --value([length], [percentage]);
504
+ }
505
+
506
+ @utility scroll-fade-e-* {
507
+ --scroll-fade-e-size: calc(var(--spacing) * --value(integer));
508
+ --scroll-fade-e-size: --value([length], [percentage]);
509
+ }
510
+
511
+ @utility scroll-fade-none {
512
+ --scroll-fade-mask: none;
513
+ }
514
+
515
+ /* shimmer */
516
+ @property --shimmer-angle {
517
+ syntax: "<angle>";
518
+ inherits: true;
519
+ initial-value: 20deg;
520
+ }
521
+ @property --shimmer-image {
522
+ syntax: "*";
523
+ inherits: false;
524
+ }
525
+ @property --shimmer-text-fill {
526
+ syntax: "*";
527
+ inherits: false;
528
+ }
529
+
530
+ @theme inline {
531
+ @keyframes tw-shimmer {
532
+ from {
533
+ background-position: 100% 0;
534
+ }
535
+ to {
536
+ background-position: 0 0;
537
+ }
538
+ }
539
+ }
540
+
541
+ @utility shimmer {
542
+ --_spread: var(--shimmer-spread, calc(3ch + 40px));
543
+ --_base: currentColor;
544
+ --_highlight: var(
545
+ --shimmer-color,
546
+ oklch(from currentColor l c h / calc(alpha* 0.2))
547
+ );
548
+
549
+ background-image: var(
550
+ --shimmer-image,
551
+ linear-gradient(
552
+ calc(90deg + var(--shimmer-angle)),
553
+ var(--_base) calc(50% - var(--_spread)),
554
+ color-mix(in oklch, var(--_highlight), var(--_base) 50%)
555
+ calc(50% - var(--_spread) * 0.5),
556
+ var(--_highlight) 50%,
557
+ color-mix(in oklch, var(--_highlight), var(--_base) 50%)
558
+ calc(50% + var(--_spread) * 0.5),
559
+ var(--_base) calc(50% + var(--_spread))
560
+ )
561
+ );
562
+ background-repeat: no-repeat;
563
+ background-size: calc(200% + var(--_spread) * 2) 100%;
564
+ background-position: 0 0;
565
+ background-clip: text;
566
+ -webkit-background-clip: text;
567
+ -webkit-text-fill-color: var(--shimmer-text-fill, transparent);
568
+ animation: tw-shimmer var(--shimmer-duration, 2s) linear infinite;
569
+
570
+ @variant dark {
571
+ --_highlight: var(
572
+ --shimmer-color,
573
+ oklch(from currentColor max(0.8, calc(l + 0.4)) c h / calc(alpha + 0.4))
574
+ );
575
+ }
576
+
577
+ &:where([dir="rtl"], [dir="rtl"] *) {
578
+ animation-direction: reverse;
579
+ }
580
+ }
581
+
582
+ @utility shimmer-once {
583
+ animation-iteration-count: 1;
584
+ }
585
+
586
+ @utility shimmer-reverse {
587
+ animation-direction: reverse;
588
+ }
589
+
590
+ @utility shimmer-none {
591
+ --shimmer-image: none;
592
+ --shimmer-text-fill: currentColor;
593
+ }
594
+
595
+ @utility shimmer-color-* {
596
+ --shimmer-color: --value(--color, [color]);
597
+ --shimmer-color: color-mix(
598
+ in oklch,
599
+ --value(--color, [color]) calc(--modifier(integer) * 1%),
600
+ transparent
601
+ );
602
+ }
603
+
604
+ @utility shimmer-duration-* {
605
+ --shimmer-duration: calc(--value(integer) * 1ms);
606
+ }
607
+
608
+ @utility shimmer-spread-* {
609
+ --shimmer-spread: calc(var(--spacing) * --value(integer));
610
+ --shimmer-spread: --value([length], [percentage]);
611
+ }
612
+
613
+ @utility shimmer-angle-* {
614
+ --shimmer-angle: calc(--value(integer) * 1deg);
615
+ }
616
+
617
+ @media (prefers-reduced-motion: reduce) {
618
+ .shimmer {
619
+ animation: none;
620
+ background-image: none;
621
+ -webkit-text-fill-color: currentColor;
622
+ }
623
+ }
624
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shadcn-svelte",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "description": "Add components to your apps.",
5
5
  "license": "MIT",
6
6
  "author": {