@frontile/theme 0.17.0-beta.2 → 0.17.0-beta.20
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.
- package/README.md +48 -5
- package/declarations/colors/defaults.d.ts +0 -1
- package/declarations/colors/semantic.d.ts +0 -1
- package/declarations/colors/types.d.ts +0 -1
- package/declarations/colors/util.d.ts +0 -1
- package/declarations/colors.d.ts +0 -1
- package/declarations/components/avatar.d.ts +171 -0
- package/declarations/components/button.d.ts +0 -1
- package/declarations/components/chip.d.ts +0 -1
- package/declarations/components/close-button.d.ts +3 -4
- package/declarations/components/divider.d.ts +0 -1
- package/declarations/components/dropdown.d.ts +1 -2
- package/declarations/components/forms/forms-legacy.d.ts +38 -39
- package/declarations/components/forms/forms.d.ts +367 -14
- package/declarations/components/forms/index.d.ts +0 -1
- package/declarations/components/index.d.ts +1 -1
- package/declarations/components/listbox.d.ts +8 -9
- package/declarations/components/notification-card.d.ts +6 -7
- package/declarations/components/notifications-container.d.ts +0 -1
- package/declarations/components/overlays.d.ts +0 -1
- package/declarations/components/popover.d.ts +9 -3
- package/declarations/components/progress-bar.d.ts +24 -1
- package/declarations/components/shared.d.ts +2 -0
- package/declarations/components/spinner.d.ts +0 -1
- package/declarations/index.d.ts +0 -1
- package/declarations/plugin/default-config.d.ts +0 -1
- package/declarations/plugin/default.d.ts +9 -0
- package/declarations/plugin/overlays.d.ts +0 -1
- package/declarations/plugin/power-select.d.ts +0 -1
- package/declarations/plugin/resolve.d.ts +2 -5
- package/declarations/plugin/safelist.d.ts +1 -4
- package/declarations/plugin/transitions.d.ts +0 -1
- package/declarations/plugin.d.ts +0 -1
- package/declarations/template-registry.d.ts +0 -1
- package/declarations/tw.d.ts +0 -1
- package/declarations/types.d.ts +0 -1
- package/dist/colors.js +1 -1
- package/dist/{forms-legacy-C8pB0Hf3.js → forms-legacy-18fWaWtr.js} +174 -65
- package/dist/forms-legacy-18fWaWtr.js.map +1 -0
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/plugin/default.js +10 -0
- package/dist/plugin/default.js.map +1 -0
- package/dist/plugin.js +27 -44
- package/dist/plugin.js.map +1 -1
- package/dist/{semantic-Us_bxqq7.js → semantic-DUv6Lpqq.js} +4 -7
- package/dist/semantic-DUv6Lpqq.js.map +1 -0
- package/package.json +47 -50
- package/declarations/colors/defaults.d.ts.map +0 -1
- package/declarations/colors/semantic.d.ts.map +0 -1
- package/declarations/colors/types.d.ts.map +0 -1
- package/declarations/colors/util.d.ts.map +0 -1
- package/declarations/colors.d.ts.map +0 -1
- package/declarations/components/button.d.ts.map +0 -1
- package/declarations/components/chip.d.ts.map +0 -1
- package/declarations/components/close-button.d.ts.map +0 -1
- package/declarations/components/divider.d.ts.map +0 -1
- package/declarations/components/dropdown.d.ts.map +0 -1
- package/declarations/components/forms/forms-legacy.d.ts.map +0 -1
- package/declarations/components/forms/forms.d.ts.map +0 -1
- package/declarations/components/forms/index.d.ts.map +0 -1
- package/declarations/components/index.d.ts.map +0 -1
- package/declarations/components/listbox.d.ts.map +0 -1
- package/declarations/components/notification-card.d.ts.map +0 -1
- package/declarations/components/notifications-container.d.ts.map +0 -1
- package/declarations/components/overlays.d.ts.map +0 -1
- package/declarations/components/popover.d.ts.map +0 -1
- package/declarations/components/progress-bar.d.ts.map +0 -1
- package/declarations/components/spinner.d.ts.map +0 -1
- package/declarations/defaults-6b749161.d.ts +0 -67
- package/declarations/defaults-6b749161.d.ts.map +0 -1
- package/declarations/forms-legacy-C8pB0Hf3.d.ts +0 -5701
- package/declarations/forms-legacy-C8pB0Hf3.d.ts.map +0 -1
- package/declarations/index-6ccbcd58.d.ts +0 -2
- package/declarations/index-6ccbcd58.d.ts.map +0 -1
- package/declarations/index.d.ts.map +0 -1
- package/declarations/plugin/default-config.d.ts.map +0 -1
- package/declarations/plugin/overlays.d.ts.map +0 -1
- package/declarations/plugin/power-select.d.ts.map +0 -1
- package/declarations/plugin/resolve.d.ts.map +0 -1
- package/declarations/plugin/safelist.d.ts.map +0 -1
- package/declarations/plugin/transitions.d.ts.map +0 -1
- package/declarations/plugin.d.ts.map +0 -1
- package/declarations/semantic-Us_bxqq7.d.ts +0 -7
- package/declarations/semantic-Us_bxqq7.d.ts.map +0 -1
- package/declarations/template-registry.d.ts.map +0 -1
- package/declarations/tw-0891d74d.d.ts +0 -6
- package/declarations/tw-0891d74d.d.ts.map +0 -1
- package/declarations/tw.d.ts.map +0 -1
- package/declarations/types-45f8510f.d.ts +0 -39
- package/declarations/types-45f8510f.d.ts.map +0 -1
- package/declarations/types.d.ts.map +0 -1
- package/declarations/util-e4b6947c.d.ts +0 -3
- package/declarations/util-e4b6947c.d.ts.map +0 -1
- package/dist/forms-legacy-C8pB0Hf3.js.map +0 -1
- package/dist/semantic-Us_bxqq7.js.map +0 -1
|
@@ -32,21 +32,59 @@ function twMerge(defaultClass, overwrites) {
|
|
|
32
32
|
return clsx(defaultClass);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
+
const avatar = tv({
|
|
36
|
+
slots: {
|
|
37
|
+
base: ['flex', 'relative', 'justify-center', 'items-center', 'box-border', 'overflow-hidden', 'align-middle', 'text-foreground', 'z-0', 'bg-default-200', 'ring-1 ring-default ring-offset-1 ring-offset-background'],
|
|
38
|
+
img: 'size-full',
|
|
39
|
+
name: ['w-full', 'font-normal', 'text-center', 'text-inherit', 'absolute', 'top-1/2', 'left-1/2', '-translate-x-1/2', '-translate-y-1/2', 'select-none']
|
|
40
|
+
},
|
|
41
|
+
variants: {
|
|
42
|
+
shape: {
|
|
43
|
+
square: 'rounded-[20%]',
|
|
44
|
+
circle: 'rounded-full'
|
|
45
|
+
},
|
|
46
|
+
size: {
|
|
47
|
+
xs: {
|
|
48
|
+
base: 'size-5 text-xs'
|
|
49
|
+
},
|
|
50
|
+
sm: {
|
|
51
|
+
base: 'size-6 text-sm'
|
|
52
|
+
},
|
|
53
|
+
md: {
|
|
54
|
+
base: 'size-8 text-base'
|
|
55
|
+
},
|
|
56
|
+
lg: {
|
|
57
|
+
base: 'size-10 text-lg'
|
|
58
|
+
},
|
|
59
|
+
xl: {
|
|
60
|
+
base: 'size-12 text-xl'
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
defaultVariants: {
|
|
65
|
+
size: 'md',
|
|
66
|
+
shape: 'circle'
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
const focusVisibleRing = ['outline-hidden', 'focus-visible:z-10', 'focus-visible:ring-3', 'focus-visible:ring-focus', 'focus-visible:ring-offset-2', 'focus-visible:ring-offset-background'];
|
|
71
|
+
const focusVisibleWithinRing = ['outline-hidden', 'has-focus-visible:z-10', 'has-focus-visible:ring-3', 'has-[:focus-visible]:ring-focus', 'has-focus-visible:ring-offset-2', 'has-[:focus-visible]:ring-offset-background'];
|
|
72
|
+
|
|
35
73
|
const baseButton = tv({
|
|
36
|
-
base: ['leading-tight', 'inline-block', 'font-semibold', 'border', 'border-transparent', 'rounded', 'disabled:cursor-not-allowed', 'disabled:opacity-40',
|
|
74
|
+
base: ['leading-tight', 'inline-block', 'font-semibold', 'border', 'border-transparent', 'rounded-sm', 'disabled:cursor-not-allowed', 'disabled:opacity-40', ...focusVisibleRing],
|
|
37
75
|
variants: {
|
|
38
76
|
appearance: {
|
|
39
77
|
outlined: ''
|
|
40
78
|
},
|
|
41
79
|
isInGroup: {
|
|
42
|
-
true: ['rounded-none first:rounded-l last:rounded-r', '[&:not(:first-child):not(:last-child)]:rounded-none', '
|
|
80
|
+
true: ['rounded-none first:rounded-l last:rounded-r', '[&:not(:first-child):not(:last-child)]:rounded-none', 'not-last-of-type:-me-px']
|
|
43
81
|
},
|
|
44
82
|
intent: {
|
|
45
83
|
default: '',
|
|
46
|
-
primary: '',
|
|
47
|
-
success: '',
|
|
48
|
-
warning: '',
|
|
49
|
-
danger: ''
|
|
84
|
+
primary: 'focus-visible:ring-primary-500',
|
|
85
|
+
success: 'focus-visible:ring-success-500',
|
|
86
|
+
warning: 'focus-visible:ring-warning',
|
|
87
|
+
danger: 'focus-visible:ring-danger'
|
|
50
88
|
},
|
|
51
89
|
size: {
|
|
52
90
|
xs: 'text-sm px-2 py-1',
|
|
@@ -229,19 +267,19 @@ const chip = tv({
|
|
|
229
267
|
},
|
|
230
268
|
primary: {
|
|
231
269
|
dot: 'bg-primary',
|
|
232
|
-
closeButton: ['bg-primary-700', 'text-background', 'hover:bg-primary-700/60']
|
|
270
|
+
closeButton: ['bg-primary-700', 'text-background', 'hover:bg-primary-700/60', 'focus-visible:ring-primary-700']
|
|
233
271
|
},
|
|
234
272
|
success: {
|
|
235
273
|
dot: 'bg-success',
|
|
236
|
-
closeButton: ['bg-success', 'text-background', 'hover:bg-success/60']
|
|
274
|
+
closeButton: ['bg-success', 'text-background', 'hover:bg-success/60', 'focus-visible:ring-success']
|
|
237
275
|
},
|
|
238
276
|
warning: {
|
|
239
277
|
dot: 'bg-warning',
|
|
240
|
-
closeButton: ['bg-warning', 'text-background', 'hover:bg-warning/60']
|
|
278
|
+
closeButton: ['bg-warning', 'text-background', 'hover:bg-warning/60', 'focus-visible:ring-warning']
|
|
241
279
|
},
|
|
242
280
|
danger: {
|
|
243
281
|
dot: 'bg-danger',
|
|
244
|
-
closeButton: ['bg-danger', 'text-background', 'hover:bg-danger/60']
|
|
282
|
+
closeButton: ['bg-danger', 'text-background', 'hover:bg-danger/60', 'focus-visible:ring-danger']
|
|
245
283
|
}
|
|
246
284
|
},
|
|
247
285
|
size: {
|
|
@@ -263,7 +301,7 @@ const chip = tv({
|
|
|
263
301
|
},
|
|
264
302
|
radius: {
|
|
265
303
|
none: 'rounded-none',
|
|
266
|
-
sm: 'rounded',
|
|
304
|
+
sm: 'rounded-sm',
|
|
267
305
|
lg: 'rounded-lg',
|
|
268
306
|
full: 'rounded-full'
|
|
269
307
|
}
|
|
@@ -377,7 +415,8 @@ const progressBar = tv({
|
|
|
377
415
|
slots: {
|
|
378
416
|
base: ['overflow-hidden w-full bg-content3 dark:bg-content2'],
|
|
379
417
|
label: ['flex justify-between pb-1 gap-2 leading-tight'],
|
|
380
|
-
progress: ['']
|
|
418
|
+
progress: [''],
|
|
419
|
+
description: ['text-default-400 text-xs pb-1']
|
|
381
420
|
},
|
|
382
421
|
variants: {
|
|
383
422
|
isIndeterminate: {
|
|
@@ -406,12 +445,14 @@ const progressBar = tv({
|
|
|
406
445
|
xs: {
|
|
407
446
|
base: 'h-1',
|
|
408
447
|
progress: 'h-1',
|
|
409
|
-
label: 'text-xs'
|
|
448
|
+
label: 'text-xs',
|
|
449
|
+
description: 'text-xs'
|
|
410
450
|
},
|
|
411
451
|
sm: {
|
|
412
452
|
base: 'h-2',
|
|
413
453
|
progress: 'h-2',
|
|
414
|
-
label: 'text-sm'
|
|
454
|
+
label: 'text-sm',
|
|
455
|
+
description: 'text-sm'
|
|
415
456
|
},
|
|
416
457
|
md: {
|
|
417
458
|
base: 'h-4',
|
|
@@ -420,12 +461,13 @@ const progressBar = tv({
|
|
|
420
461
|
lg: {
|
|
421
462
|
base: 'h-8',
|
|
422
463
|
progress: 'h-8',
|
|
423
|
-
label: 'text-lg'
|
|
464
|
+
label: 'text-lg',
|
|
465
|
+
description: 'text-lg'
|
|
424
466
|
}
|
|
425
467
|
},
|
|
426
468
|
radius: {
|
|
427
469
|
none: 'rounded-none',
|
|
428
|
-
sm: 'rounded',
|
|
470
|
+
sm: 'rounded-sm',
|
|
429
471
|
lg: 'rounded-lg',
|
|
430
472
|
full: 'rounded-full'
|
|
431
473
|
}
|
|
@@ -439,7 +481,7 @@ const progressBar = tv({
|
|
|
439
481
|
|
|
440
482
|
const closeButton = tv({
|
|
441
483
|
slots: {
|
|
442
|
-
base: 'rounded-full transition transition-200
|
|
484
|
+
base: ['rounded-full transition transition-200 text-inherit', ...focusVisibleRing],
|
|
443
485
|
icon: 'size-[1em]'
|
|
444
486
|
},
|
|
445
487
|
variants: {
|
|
@@ -476,19 +518,19 @@ const closeButton = tv({
|
|
|
476
518
|
});
|
|
477
519
|
|
|
478
520
|
const listbox = tv({
|
|
479
|
-
base: 'w-full flex flex-col gap-0.5 outline-
|
|
521
|
+
base: 'w-full flex flex-col gap-0.5 outline-hidden p-1'
|
|
480
522
|
});
|
|
481
523
|
const listboxItem = tv({
|
|
482
524
|
slots: {
|
|
483
|
-
base: ['flex', 'group', 'gap-2', 'items-center', 'justify-between', 'relative', 'px-2', 'py-1.5', 'w-full', 'h-full', 'box-border', 'rounded', 'subpixel-antialiased', 'outline-
|
|
525
|
+
base: ['flex', 'group', 'gap-2', 'items-center', 'justify-between', 'relative', 'px-2', 'py-1.5', 'w-full', 'h-full', 'box-border', 'rounded-sm', 'subpixel-antialiased', 'outline-hidden', 'cursor-pointer', 'tap-highlight-transparent'],
|
|
484
526
|
descriptionWrapper: 'w-full flex flex-col items-start justify-center',
|
|
485
527
|
label: 'flex-1 text-sm font-normal truncate',
|
|
486
528
|
description: ['w-full', 'text-xs', 'text-foreground-500', 'group-hover:text-current'],
|
|
487
|
-
selectedIcon: ['text-inherit', 'w-4', 'h-4', '
|
|
488
|
-
shortcut: ['px-1', 'py-0.5', 'rounded', 'font-sans', 'text-foreground-500', 'text-xs', 'border', 'border-default-300', 'group-data-is-active:border-current']
|
|
529
|
+
selectedIcon: ['text-inherit', 'w-4', 'h-4', 'shrink-0'],
|
|
530
|
+
shortcut: ['px-1', 'py-0.5', 'rounded-sm', 'font-sans', 'text-foreground-500', 'text-xs', 'border', 'border-default-300', 'group-data-is-active:border-current']
|
|
489
531
|
},
|
|
490
532
|
variants: {
|
|
491
|
-
|
|
533
|
+
appearance: {
|
|
492
534
|
default: {
|
|
493
535
|
base: ''
|
|
494
536
|
},
|
|
@@ -529,129 +571,129 @@ const listboxItem = tv({
|
|
|
529
571
|
}
|
|
530
572
|
},
|
|
531
573
|
defaultVariants: {
|
|
532
|
-
|
|
574
|
+
appearance: 'default',
|
|
533
575
|
intent: 'default'
|
|
534
576
|
},
|
|
535
577
|
compoundVariants: [
|
|
536
|
-
//
|
|
578
|
+
// appearance: default
|
|
537
579
|
{
|
|
538
|
-
|
|
580
|
+
appearance: 'default',
|
|
539
581
|
intent: 'default',
|
|
540
582
|
class: {
|
|
541
583
|
base: ['data-is-active:bg-default', 'data-is-active:text-default-foreground']
|
|
542
584
|
}
|
|
543
585
|
}, {
|
|
544
|
-
|
|
586
|
+
appearance: 'default',
|
|
545
587
|
intent: 'primary',
|
|
546
588
|
class: {
|
|
547
589
|
base: ['data-is-active:bg-primary-500', 'data-is-active:text-primary-foreground']
|
|
548
590
|
}
|
|
549
591
|
}, {
|
|
550
|
-
|
|
592
|
+
appearance: 'default',
|
|
551
593
|
intent: 'success',
|
|
552
594
|
class: {
|
|
553
595
|
base: ['data-is-active:bg-success-500', 'data-is-active:text-success-foreground']
|
|
554
596
|
}
|
|
555
597
|
}, {
|
|
556
|
-
|
|
598
|
+
appearance: 'default',
|
|
557
599
|
intent: 'warning',
|
|
558
600
|
class: {
|
|
559
601
|
base: ['data-is-active:bg-warning-500', 'data-is-active:text-warning-foreground']
|
|
560
602
|
}
|
|
561
603
|
}, {
|
|
562
|
-
|
|
604
|
+
appearance: 'default',
|
|
563
605
|
intent: 'danger',
|
|
564
606
|
class: {
|
|
565
607
|
base: ['data-is-active:bg-danger-500', 'data-is-active:text-danger-foreground']
|
|
566
608
|
}
|
|
567
609
|
}, {
|
|
568
|
-
|
|
610
|
+
appearance: 'default',
|
|
569
611
|
intent: 'primary',
|
|
570
612
|
isActive: true,
|
|
571
613
|
class: {
|
|
572
614
|
shortcut: ['text-primary-foreground']
|
|
573
615
|
}
|
|
574
616
|
}, {
|
|
575
|
-
|
|
617
|
+
appearance: 'default',
|
|
576
618
|
intent: 'success',
|
|
577
619
|
isActive: true,
|
|
578
620
|
class: {
|
|
579
621
|
shortcut: ['text-success-foreground']
|
|
580
622
|
}
|
|
581
623
|
}, {
|
|
582
|
-
|
|
624
|
+
appearance: 'default',
|
|
583
625
|
intent: 'warning',
|
|
584
626
|
isActive: true,
|
|
585
627
|
class: {
|
|
586
628
|
shortcut: ['text-warning-foreground']
|
|
587
629
|
}
|
|
588
630
|
}, {
|
|
589
|
-
|
|
631
|
+
appearance: 'default',
|
|
590
632
|
intent: 'danger',
|
|
591
633
|
isActive: true,
|
|
592
634
|
class: {
|
|
593
635
|
shortcut: ['text-danger-foreground']
|
|
594
636
|
}
|
|
595
637
|
},
|
|
596
|
-
//
|
|
638
|
+
// appearance: outlined
|
|
597
639
|
{
|
|
598
|
-
|
|
640
|
+
appearance: 'outlined',
|
|
599
641
|
intent: 'default',
|
|
600
642
|
class: {
|
|
601
643
|
base: ['data-is-active:border-default-700', 'data-is-active:text-default-700']
|
|
602
644
|
}
|
|
603
645
|
}, {
|
|
604
|
-
|
|
646
|
+
appearance: 'outlined',
|
|
605
647
|
intent: 'primary',
|
|
606
648
|
class: {
|
|
607
649
|
base: ['data-is-active:border-primary', 'data-is-active:text-primary']
|
|
608
650
|
}
|
|
609
651
|
}, {
|
|
610
|
-
|
|
652
|
+
appearance: 'outlined',
|
|
611
653
|
intent: 'success',
|
|
612
654
|
class: {
|
|
613
655
|
base: ['data-is-active:border-success', 'data-is-active:text-success']
|
|
614
656
|
}
|
|
615
657
|
}, {
|
|
616
|
-
|
|
658
|
+
appearance: 'outlined',
|
|
617
659
|
intent: 'warning',
|
|
618
660
|
class: {
|
|
619
661
|
base: ['data-is-active:border-warning', 'data-is-active:text-warning']
|
|
620
662
|
}
|
|
621
663
|
}, {
|
|
622
|
-
|
|
664
|
+
appearance: 'outlined',
|
|
623
665
|
intent: 'danger',
|
|
624
666
|
class: {
|
|
625
667
|
base: ['data-is-active:border-danger', 'data-is-active:text-danger']
|
|
626
668
|
}
|
|
627
669
|
},
|
|
628
|
-
//
|
|
670
|
+
// appearance: faded
|
|
629
671
|
{
|
|
630
|
-
|
|
672
|
+
appearance: 'faded',
|
|
631
673
|
intent: 'default',
|
|
632
674
|
class: {
|
|
633
675
|
base: ['data-is-active:bg-default-400/20', 'data-is-active:border-default-700', 'data-is-active:text-default-700']
|
|
634
676
|
}
|
|
635
677
|
}, {
|
|
636
|
-
|
|
678
|
+
appearance: 'faded',
|
|
637
679
|
intent: 'primary',
|
|
638
680
|
class: {
|
|
639
681
|
base: ['data-is-active:bg-primary-300/20', 'data-is-active:border-primary', 'data-is-active:text-primary']
|
|
640
682
|
}
|
|
641
683
|
}, {
|
|
642
|
-
|
|
684
|
+
appearance: 'faded',
|
|
643
685
|
intent: 'success',
|
|
644
686
|
class: {
|
|
645
687
|
base: ['data-is-active:bg-success-300/20', 'data-is-active:border-success', 'data-is-active:text-success']
|
|
646
688
|
}
|
|
647
689
|
}, {
|
|
648
|
-
|
|
690
|
+
appearance: 'faded',
|
|
649
691
|
intent: 'warning',
|
|
650
692
|
class: {
|
|
651
693
|
base: ['data-is-active:bg-warning-300/20', 'data-is-active:border-warning', 'data-is-active:text-warning']
|
|
652
694
|
}
|
|
653
695
|
}, {
|
|
654
|
-
|
|
696
|
+
appearance: 'faded',
|
|
655
697
|
intent: 'danger',
|
|
656
698
|
class: {
|
|
657
699
|
base: ['data-is-active:bg-danger-300/20', 'data-is-active:border-danger', 'data-is-active:text-danger']
|
|
@@ -660,17 +702,18 @@ const listboxItem = tv({
|
|
|
660
702
|
});
|
|
661
703
|
|
|
662
704
|
const dropdownContent = tv({
|
|
663
|
-
base: 'bg-content1 w-[260px] rounded border border-default-200'
|
|
705
|
+
base: 'bg-content1 w-[260px] rounded-sm border border-default-200'
|
|
664
706
|
});
|
|
665
707
|
|
|
666
708
|
const popover = tv({
|
|
667
|
-
base: 'bg-content1 rounded border border-default-200',
|
|
709
|
+
base: 'bg-content1 rounded-sm border border-default-200',
|
|
668
710
|
variants: {
|
|
669
711
|
size: {
|
|
670
712
|
sm: 'w-40',
|
|
671
713
|
md: 'w-64',
|
|
672
714
|
lg: 'w-96',
|
|
673
|
-
xl: 'w-
|
|
715
|
+
xl: 'w-136',
|
|
716
|
+
trigger: 'w-(--trigger-width)'
|
|
674
717
|
}
|
|
675
718
|
},
|
|
676
719
|
defaultVariants: {
|
|
@@ -682,8 +725,8 @@ const divider = tv({
|
|
|
682
725
|
base: 'shrink-0 bg-default-200 border-none',
|
|
683
726
|
variants: {
|
|
684
727
|
orientation: {
|
|
685
|
-
horizontal: 'w-full h-
|
|
686
|
-
vertical: 'h-full w-
|
|
728
|
+
horizontal: 'w-full h-px',
|
|
729
|
+
vertical: 'h-full w-px'
|
|
687
730
|
}
|
|
688
731
|
},
|
|
689
732
|
defaultVariants: {
|
|
@@ -716,7 +759,7 @@ const spinner = tv({
|
|
|
716
759
|
});
|
|
717
760
|
|
|
718
761
|
const notificationsContainer = tv({
|
|
719
|
-
base: ['w-full', 'max-h-full', 'overflow-hidden', 'px-4', 'fixed', 'max-w-lg', 'z-
|
|
762
|
+
base: ['w-full', 'max-h-full', 'overflow-hidden', 'px-4', 'fixed', 'max-w-lg', 'z-1000'],
|
|
720
763
|
variants: {
|
|
721
764
|
placement: {
|
|
722
765
|
'top-left': 'top-0 left-0',
|
|
@@ -732,14 +775,14 @@ const notificationsContainer = tv({
|
|
|
732
775
|
}
|
|
733
776
|
});
|
|
734
777
|
|
|
735
|
-
const btn = 'transition transition-200
|
|
778
|
+
const btn = ['transition transition-200', ...focusVisibleRing];
|
|
736
779
|
const notificationCard = tv({
|
|
737
780
|
slots: {
|
|
738
|
-
base: 'py-3 px-4 overflow-hidden flex items-center justify-between relative min-h-16 text-sm rounded shadow transition-all transition-200 ease-in-out',
|
|
781
|
+
base: 'py-3 px-4 overflow-hidden flex items-center justify-between relative min-h-16 text-sm rounded-sm shadow-sm transition-all transition-200 ease-in-out',
|
|
739
782
|
message: 'grow',
|
|
740
783
|
customActions: 'flex flex-nowrap',
|
|
741
|
-
customActionButton: btn
|
|
742
|
-
closeButton: btn
|
|
784
|
+
customActionButton: [...btn, 'first:ml-4 last:-mr-2 font-semibold py-1 px-2 rounded-sm'],
|
|
785
|
+
closeButton: [...btn, 'inline-block p-2 ml-2 -mr-2 rounded-full']
|
|
743
786
|
},
|
|
744
787
|
variants: {
|
|
745
788
|
appearance: {
|
|
@@ -821,7 +864,7 @@ const notificationTransitions = {
|
|
|
821
864
|
}
|
|
822
865
|
};
|
|
823
866
|
|
|
824
|
-
const obscurer = `before:bg-
|
|
867
|
+
const obscurer = `before:bg-linear-to-b before:to-content1 before:from-content1/75 before:absolute before:left-0 before:w-full before:h-4 before:-top-4 before:content-['_']`;
|
|
825
868
|
const overlay = tv({
|
|
826
869
|
base: 'will-change-transform overflow-auto',
|
|
827
870
|
variants: {
|
|
@@ -839,7 +882,7 @@ const backdrop = tv({
|
|
|
839
882
|
type: {
|
|
840
883
|
none: '',
|
|
841
884
|
transparent: '',
|
|
842
|
-
blur: 'bg-overlay/[.45] backdrop-blur',
|
|
885
|
+
blur: 'bg-overlay/[.45] backdrop-blur-sm',
|
|
843
886
|
faded: 'bg-overlay/[.45]'
|
|
844
887
|
},
|
|
845
888
|
inPlace: {
|
|
@@ -849,7 +892,7 @@ const backdrop = tv({
|
|
|
849
892
|
});
|
|
850
893
|
const modal = tv({
|
|
851
894
|
slots: {
|
|
852
|
-
base: 'flex flex-col shrink-0 relative text-content1-foreground bg-content1 rounded my-24 w-full outline-
|
|
895
|
+
base: 'flex flex-col shrink-0 relative text-content1-foreground bg-content1 rounded-sm my-24 w-full outline-hidden overflow-hidden',
|
|
853
896
|
closeButton: 'absolute top-2 right-2 dark:hover:bg-content2',
|
|
854
897
|
header: 'font-bold text-xl p-4 rounded-tl rounded-tr',
|
|
855
898
|
body: 'p-4 grow overflow-y-auto',
|
|
@@ -871,7 +914,7 @@ const modal = tv({
|
|
|
871
914
|
});
|
|
872
915
|
const drawer = tv({
|
|
873
916
|
slots: {
|
|
874
|
-
base: 'flex flex-col absolute text-content1-foreground bg-content1 w-full h-full shadow',
|
|
917
|
+
base: 'flex flex-col absolute text-content1-foreground bg-content1 w-full h-full shadow-sm outline-hidden',
|
|
875
918
|
closeButton: 'absolute top-2 right-2 dark:hover:bg-content2',
|
|
876
919
|
header: 'font-bold text-xl p-4 rounded-tl rounded-tr',
|
|
877
920
|
body: 'p-4 grow overflow-y-auto',
|
|
@@ -1110,7 +1153,7 @@ const input = tv({
|
|
|
1110
1153
|
innerContainer: 'relative flex',
|
|
1111
1154
|
startContent: 'absolute inset-y-0 left-0 flex items-center',
|
|
1112
1155
|
endContent: 'absolute inset-y-0 right-0 flex items-center',
|
|
1113
|
-
input: ['appearance-none', 'flex-1', 'w-full', 'bg-white dark:bg-default-100', 'text-default-900', 'placeholder-default-400', 'text-base text-left text-foreground', 'border', 'border-default-400', 'rounded', 'leading-tight', 'focus:ring', 'focus:outline-
|
|
1156
|
+
input: ['appearance-none', 'flex-1', 'w-full', 'bg-white dark:bg-default-100', 'text-default-900', 'placeholder-default-400', 'text-base text-left text-foreground', 'border', 'border-default-400', 'rounded-sm', 'leading-tight', 'focus:ring-3', 'focus:ring-focus', 'focus:outline-hidden', 'focus:border-primary-400', 'selection:bg-content3', 'disabled:border-default-200 disabled:text-default-500', 'aria-invalid:border-danger-400', 'aria-invalid:focus:ring-danger-400']
|
|
1114
1157
|
},
|
|
1115
1158
|
variants: {
|
|
1116
1159
|
size: {
|
|
@@ -1177,7 +1220,7 @@ const textarea = tv({
|
|
|
1177
1220
|
const checkboxRadioBase = tv({
|
|
1178
1221
|
slots: {
|
|
1179
1222
|
base: ['max-w-fit flex items-center justify-start'],
|
|
1180
|
-
input: ['appearance-none', 'inline-block', 'align-middle', 'select-none', 'shrink-0', 'h-[1em] w-[1em]', 'text-base', 'text-primary', 'border border-default-400', 'bg-white dark:bg-default-100', 'checked:bg-origin-border checked:border-transparent dark:checked:bg-current checked:bg-current checked:bg-center checked:bg-no-repeat checked:disabled:bg-default-300'],
|
|
1223
|
+
input: ['appearance-none', 'inline-block', 'align-middle', 'select-none', 'shrink-0', 'h-[1em] w-[1em]', 'text-base', 'text-primary', 'border border-default-400', 'bg-white dark:bg-default-100', 'checked:bg-origin-border checked:border-transparent dark:checked:bg-current checked:bg-current checked:bg-center checked:bg-no-repeat checked:disabled:bg-default-300', ...focusVisibleRing],
|
|
1181
1224
|
labelContainer: ['flex flex-col ml-2'],
|
|
1182
1225
|
label: 'font-normal pb-0'
|
|
1183
1226
|
},
|
|
@@ -1215,7 +1258,7 @@ const checkboxRadioGroupBase = tv({
|
|
|
1215
1258
|
const checkbox = tv({
|
|
1216
1259
|
extend: checkboxRadioBase,
|
|
1217
1260
|
slots: {
|
|
1218
|
-
input: ['checked-bg-checkbox', 'rounded-
|
|
1261
|
+
input: ['checked-bg-checkbox', 'rounded-xs']
|
|
1219
1262
|
},
|
|
1220
1263
|
variants: {
|
|
1221
1264
|
size: {
|
|
@@ -1269,7 +1312,9 @@ const select = tv({
|
|
|
1269
1312
|
placeholder: 'text-default-400',
|
|
1270
1313
|
listbox: 'scroll-py-6 max-h-64',
|
|
1271
1314
|
icon: 'w-5 h-5',
|
|
1272
|
-
clearButton: 'pointer-events-auto'
|
|
1315
|
+
clearButton: 'pointer-events-auto',
|
|
1316
|
+
input: '[button]:cursor-default',
|
|
1317
|
+
emptyContent: 'p-2'
|
|
1273
1318
|
},
|
|
1274
1319
|
variants: {
|
|
1275
1320
|
size: {
|
|
@@ -1296,6 +1341,70 @@ const nativeSelect = tv({
|
|
|
1296
1341
|
}
|
|
1297
1342
|
}
|
|
1298
1343
|
});
|
|
1344
|
+
const switchInput = tv({
|
|
1345
|
+
slots: {
|
|
1346
|
+
base: 'group relative max-w-fit inline-flex items-center justify-start',
|
|
1347
|
+
labelContainer: 'flex flex-col ml-2',
|
|
1348
|
+
label: 'font-normal pb-0',
|
|
1349
|
+
wrapper: ['px-1', 'relative', 'inline-flex', 'items-center', 'justify-start', 'shrink-0', 'overflow-hidden', 'bg-default-300', 'rounded-full', 'cursor-pointer touch-none tap-highlight-transparent select-none', 'transition-background', ...focusVisibleWithinRing],
|
|
1350
|
+
hiddenInput: ['font-inherit', 'text-[100%]', 'leading-[1.15]', 'm-0', 'p-0', 'overflow-visible', 'box-border', 'absolute', 'top-0', 'w-full', 'h-full', 'opacity-[0.0001]', 'z-1', 'cursor-pointer', 'disabled:cursor-default'],
|
|
1351
|
+
thumb: ['z-10', 'flex', 'items-center', 'justify-center', 'bg-white', 'shadow-small', 'rounded-full', 'origin-right', 'transition-all', 'pointer-events-none', 'text-black'],
|
|
1352
|
+
startContent: ['z-0 absolute start-1.5 text-current', 'opacity-0', 'scale-50', 'transition-transform-opacity', 'group-data-[selected=true]:scale-100', 'group-data-[selected=true]:opacity-100'],
|
|
1353
|
+
endContent: ['z-0 absolute end-1.5 text-default-600', 'opacity-100', 'transition-transform-opacity', 'group-data-[selected=true]:translate-x-3', 'group-data-[selected=true]:opacity-0']
|
|
1354
|
+
},
|
|
1355
|
+
variants: {
|
|
1356
|
+
isDisabled: {
|
|
1357
|
+
true: {
|
|
1358
|
+
wrapper: 'opacity-disabled pointer-events-none'
|
|
1359
|
+
}
|
|
1360
|
+
},
|
|
1361
|
+
size: {
|
|
1362
|
+
sm: {
|
|
1363
|
+
wrapper: 'w-6 h-3 px-[2px]',
|
|
1364
|
+
thumb: ['w-2 h-2 text-xs', 'group-data-[selected=true]:ms-3'],
|
|
1365
|
+
endContent: 'text-xs',
|
|
1366
|
+
startContent: 'text-xs',
|
|
1367
|
+
label: 'text-small'
|
|
1368
|
+
},
|
|
1369
|
+
md: {
|
|
1370
|
+
wrapper: 'w-11 h-6',
|
|
1371
|
+
thumb: ['w-4 h-4 text-sm', 'group-data-[selected=true]:ms-5'],
|
|
1372
|
+
endContent: 'text-sm',
|
|
1373
|
+
startContent: 'text-sm',
|
|
1374
|
+
label: 'text-md'
|
|
1375
|
+
},
|
|
1376
|
+
lg: {
|
|
1377
|
+
wrapper: 'w-12 h-7',
|
|
1378
|
+
thumb: ['w-5 h-5 text-medium', 'group-data-[selected=true]:ms-5'],
|
|
1379
|
+
endContent: 'text-md',
|
|
1380
|
+
startContent: 'text-md',
|
|
1381
|
+
label: 'text-lg'
|
|
1382
|
+
}
|
|
1383
|
+
},
|
|
1384
|
+
intent: {
|
|
1385
|
+
default: {
|
|
1386
|
+
wrapper: ['group-data-[selected=true]:bg-default-400', 'group-data-[selected=true]:text-default-foreground']
|
|
1387
|
+
},
|
|
1388
|
+
primary: {
|
|
1389
|
+
wrapper: ['group-data-[selected=true]:bg-primary', 'group-data-[selected=true]:text-primary-foreground']
|
|
1390
|
+
},
|
|
1391
|
+
success: {
|
|
1392
|
+
wrapper: ['group-data-[selected=true]:bg-success', 'group-data-[selected=true]:text-success-foreground']
|
|
1393
|
+
},
|
|
1394
|
+
warning: {
|
|
1395
|
+
wrapper: ['group-data-[selected=true]:bg-warning', 'group-data-[selected=true]:text-warning-foreground']
|
|
1396
|
+
},
|
|
1397
|
+
danger: {
|
|
1398
|
+
wrapper: ['group-data-[selected=true]:bg-danger', 'data-[selected=true]:text-danger-foreground']
|
|
1399
|
+
}
|
|
1400
|
+
}
|
|
1401
|
+
},
|
|
1402
|
+
defaultVariants: {
|
|
1403
|
+
size: 'md',
|
|
1404
|
+
intent: 'primary',
|
|
1405
|
+
isDisabled: false
|
|
1406
|
+
}
|
|
1407
|
+
});
|
|
1299
1408
|
|
|
1300
1409
|
const base = tv({
|
|
1301
1410
|
slots: {
|
|
@@ -1416,5 +1525,5 @@ const formSelect = tv({
|
|
|
1416
1525
|
}
|
|
1417
1526
|
});
|
|
1418
1527
|
|
|
1419
|
-
export {
|
|
1420
|
-
//# sourceMappingURL=forms-legacy-
|
|
1528
|
+
export { notificationCard as A, notificationTransitions as B, notificationsContainer as C, overlay as D, overlayTransitions as E, popover as F, progressBar as G, radio as H, radioGroup as I, select as J, spinner as K, switchInput as L, textarea as M, toggleButton as N, twMerge as O, avatar as a, backdrop as b, button as c, buttonGroup as d, checkbox as e, checkboxGroup as f, chip as g, closeButton as h, divider as i, drawer as j, dropdownContent as k, formCheckbox as l, formCheckboxGroup as m, formDescription as n, formFeedback as o, formInput as p, formRadio as q, formRadioGroup as r, formSelect as s, formTextarea as t, input as u, label as v, listbox as w, listboxItem as x, modal as y, nativeSelect as z };
|
|
1529
|
+
//# sourceMappingURL=forms-legacy-18fWaWtr.js.map
|