@frontile/theme 0.18.10 → 0.18.11
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/declarations/components/accordion.d.ts +1 -113
- package/declarations/components/accordion.d.ts.map +1 -1
- package/declarations/components/alert.d.ts +1 -105
- package/declarations/components/alert.d.ts.map +1 -1
- package/declarations/components/app-layout.d.ts +1 -315
- package/declarations/components/app-layout.d.ts.map +1 -1
- package/declarations/components/avatar.d.ts +3 -99
- package/declarations/components/avatar.d.ts.map +1 -1
- package/declarations/components/badge.d.ts +3 -109
- package/declarations/components/badge.d.ts.map +1 -1
- package/declarations/components/bottom-nav.d.ts +2 -44
- package/declarations/components/bottom-nav.d.ts.map +1 -1
- package/declarations/components/breadcrumbs.d.ts +1 -101
- package/declarations/components/breadcrumbs.d.ts.map +1 -1
- package/declarations/components/button.d.ts +69 -165
- package/declarations/components/button.d.ts.map +1 -1
- package/declarations/components/calendar.d.ts +1 -153
- package/declarations/components/calendar.d.ts.map +1 -1
- package/declarations/components/chip.d.ts +5 -145
- package/declarations/components/chip.d.ts.map +1 -1
- package/declarations/components/close-button.d.ts +1 -59
- package/declarations/components/close-button.d.ts.map +1 -1
- package/declarations/components/command.d.ts +3 -98
- package/declarations/components/command.d.ts.map +1 -1
- package/declarations/components/divider.d.ts +5 -23
- package/declarations/components/divider.d.ts.map +1 -1
- package/declarations/components/dropdown.d.ts +1 -1
- package/declarations/components/dropdown.d.ts.map +1 -1
- package/declarations/components/external-link.d.ts +1 -47
- package/declarations/components/external-link.d.ts.map +1 -1
- package/declarations/components/forms/forms-legacy.d.ts +30 -256
- package/declarations/components/forms/forms-legacy.d.ts.map +1 -1
- package/declarations/components/forms/forms.d.ts +252 -1420
- package/declarations/components/forms/forms.d.ts.map +1 -1
- package/declarations/components/kbd.d.ts +1 -109
- package/declarations/components/kbd.d.ts.map +1 -1
- package/declarations/components/listbox.d.ts +12 -165
- package/declarations/components/listbox.d.ts.map +1 -1
- package/declarations/components/nav-item.d.ts +1 -117
- package/declarations/components/nav-item.d.ts.map +1 -1
- package/declarations/components/notification-card.d.ts +1 -103
- package/declarations/components/notification-card.d.ts.map +1 -1
- package/declarations/components/notifications-container.d.ts +1 -49
- package/declarations/components/notifications-container.d.ts.map +1 -1
- package/declarations/components/overlays.d.ts +29 -213
- package/declarations/components/overlays.d.ts.map +1 -1
- package/declarations/components/pagination.d.ts +1 -131
- package/declarations/components/pagination.d.ts.map +1 -1
- package/declarations/components/popover.d.ts +7 -25
- package/declarations/components/popover.d.ts.map +1 -1
- package/declarations/components/progress-bar.d.ts +5 -133
- package/declarations/components/progress-bar.d.ts.map +1 -1
- package/declarations/components/segmented-control.d.ts +1 -167
- package/declarations/components/segmented-control.d.ts.map +1 -1
- package/declarations/components/skeleton.d.ts +11 -51
- package/declarations/components/skeleton.d.ts.map +1 -1
- package/declarations/components/spinner.d.ts +13 -47
- package/declarations/components/spinner.d.ts.map +1 -1
- package/declarations/components/stepper.d.ts +1 -233
- package/declarations/components/stepper.d.ts.map +1 -1
- package/declarations/components/table.d.ts +1 -171
- package/declarations/components/table.d.ts.map +1 -1
- package/declarations/components/tabs.d.ts +1 -169
- package/declarations/components/tabs.d.ts.map +1 -1
- package/declarations/components/tooltip.d.ts +1 -91
- package/declarations/components/tooltip.d.ts.map +1 -1
- package/declarations/tw.d.ts +1 -1
- package/declarations/tw.d.ts.map +1 -1
- package/dist/colors.js +1 -1
- package/dist/index.js +43 -32
- package/dist/index.js.map +1 -1
- package/dist/{overlays-DD7muPLd.js → overlays-BbogRqG7.js} +2 -2
- package/dist/overlays-BbogRqG7.js.map +1 -0
- package/dist/plugin.js +3 -3
- package/dist/{util-DrX1hjH-.js → util-BfrVzSAL.js} +1 -1
- package/dist/{util-DrX1hjH-.js.map → util-BfrVzSAL.js.map} +1 -1
- package/package.json +12 -12
- package/dist/overlays-DD7muPLd.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as tv, b as backdrop, d as drawer, m as modal, o as overlay, a as overlayArrow, c as overlayTransitions } from './overlays-
|
|
2
|
-
export { e as twMerge } from './overlays-
|
|
1
|
+
import { t as tv, b as backdrop, d as drawer, m as modal, o as overlay, a as overlayArrow, c as overlayTransitions } from './overlays-BbogRqG7.js';
|
|
2
|
+
export { e as twMerge } from './overlays-BbogRqG7.js';
|
|
3
3
|
|
|
4
4
|
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'];
|
|
5
5
|
|
|
@@ -460,25 +460,27 @@ const badge = tv({
|
|
|
460
460
|
// Value and unit share the label's font size so their baselines line up;
|
|
461
461
|
// the value is set apart by weight only. Heights match Chip (20, 24, 28,
|
|
462
462
|
// 32px). Radius steps with size and is never a pill: that shape belongs
|
|
463
|
-
// to Chip.
|
|
463
|
+
// to Chip. Facet 2.0 sizes map to these by height (spec 21/24/30/34 -> 20/24/28/32
|
|
464
|
+
// nearest), so radii are unchanged; only the text steps down, via the
|
|
465
|
+
// body scale (10.84, 12.34, 14.05px).
|
|
464
466
|
size: {
|
|
465
467
|
xs: {
|
|
466
|
-
base: 'text-
|
|
468
|
+
base: 'text-body-4xs h-5 px-1.5 gap-1 rounded-sm',
|
|
467
469
|
dot: 'size-1.5',
|
|
468
470
|
icon: 'size-3'
|
|
469
471
|
},
|
|
470
472
|
sm: {
|
|
471
|
-
base: 'text-
|
|
473
|
+
base: 'text-body-4xs h-6 px-2 gap-1 rounded-sm',
|
|
472
474
|
dot: 'size-1.5',
|
|
473
475
|
icon: 'size-3'
|
|
474
476
|
},
|
|
475
477
|
md: {
|
|
476
|
-
base: 'text-
|
|
478
|
+
base: 'text-body-2xs h-7 px-2.5 gap-1.5 rounded-md',
|
|
477
479
|
dot: 'size-2',
|
|
478
480
|
icon: 'size-3.5'
|
|
479
481
|
},
|
|
480
482
|
lg: {
|
|
481
|
-
base: 'text-
|
|
483
|
+
base: 'text-body-sm h-8 px-3 gap-1.5 rounded-md',
|
|
482
484
|
dot: 'size-2.5',
|
|
483
485
|
icon: 'size-4'
|
|
484
486
|
}
|
|
@@ -681,12 +683,12 @@ const baseButton = tv({
|
|
|
681
683
|
danger: 'focus-visible:ring-danger-soft'
|
|
682
684
|
},
|
|
683
685
|
size: {
|
|
684
|
-
xs: 'text-strong-
|
|
685
|
-
sm: 'text-strong-
|
|
686
|
-
md: 'text-strong-
|
|
687
|
-
lg: 'text-strong-
|
|
688
|
-
xl: 'text-strong-
|
|
689
|
-
'2xl': 'text-strong-
|
|
686
|
+
xs: 'text-strong-xs px-3.5 py-0.5 gap-1 rounded-full',
|
|
687
|
+
sm: 'text-strong-sm px-4 py-1 gap-1 rounded-full',
|
|
688
|
+
md: 'text-strong-md px-5 py-1.5 gap-1.5 rounded-full',
|
|
689
|
+
lg: 'text-strong-lg px-6 py-2 gap-1.5 rounded-full',
|
|
690
|
+
xl: 'text-strong-xl px-8 py-2.5 gap-2 rounded-full',
|
|
691
|
+
'2xl': 'text-strong-2xl px-10 py-3 gap-2.5 rounded-full'
|
|
690
692
|
},
|
|
691
693
|
isInGroup: {
|
|
692
694
|
true: ['rounded-none first-of-type:rounded-s-full last-of-type:rounded-e-full', '[&:not(:first-of-type):not(:last-of-type)]:rounded-none', 'not-last-of-type:-me-px']
|
|
@@ -695,7 +697,7 @@ const baseButton = tv({
|
|
|
695
697
|
compoundVariants: [{
|
|
696
698
|
variant: 'outline',
|
|
697
699
|
color: 'neutral',
|
|
698
|
-
class: 'text-neutral-
|
|
700
|
+
class: 'text-on-neutral-subtle border-on-neutral-subtle hover:bg-neutral-subtle hover:text-neutral-strong hover:border-neutral-strong active:bg-neutral-muted active:text-neutral-firm active:border-neutral-firm'
|
|
699
701
|
}, {
|
|
700
702
|
variant: 'outline',
|
|
701
703
|
color: 'primary',
|
|
@@ -707,7 +709,7 @@ const baseButton = tv({
|
|
|
707
709
|
}, {
|
|
708
710
|
variant: 'outline',
|
|
709
711
|
color: 'tertiary',
|
|
710
|
-
class: 'text-tertiary-strong border-tertiary-strong hover:text-tertiary
|
|
712
|
+
class: 'text-tertiary-strong border-tertiary-strong hover:text-tertiary hover:border-tertiary-firm active:text-tertiary-bolder active:border-tertiary-bolder'
|
|
711
713
|
}, {
|
|
712
714
|
variant: 'outline',
|
|
713
715
|
color: 'success',
|
|
@@ -748,7 +750,7 @@ const button = tv({
|
|
|
748
750
|
{
|
|
749
751
|
variant: 'solid',
|
|
750
752
|
color: 'neutral',
|
|
751
|
-
class: 'bg-neutral-
|
|
753
|
+
class: 'bg-on-neutral-subtle border-on-neutral-subtle text-on-neutral-bolder hover:bg-neutral-strong hover:border-neutral-strong hover:text-on-neutral-strong active:bg-neutral-firm active:border-neutral-firm active:text-on-neutral-firm'
|
|
752
754
|
}, {
|
|
753
755
|
variant: 'solid',
|
|
754
756
|
color: 'primary',
|
|
@@ -778,7 +780,7 @@ const button = tv({
|
|
|
778
780
|
{
|
|
779
781
|
variant: 'subtle',
|
|
780
782
|
color: 'neutral',
|
|
781
|
-
class: 'bg-neutral-
|
|
783
|
+
class: 'bg-neutral-muted border-on-neutral-subtle text-on-neutral-subtle hover:bg-neutral-soft hover:border-neutral-strong hover:text-neutral-strong active:bg-neutral-mild active:border-neutral-firm active:text-on-neutral-mild'
|
|
782
784
|
}, {
|
|
783
785
|
variant: 'subtle',
|
|
784
786
|
color: 'primary',
|
|
@@ -786,11 +788,11 @@ const button = tv({
|
|
|
786
788
|
}, {
|
|
787
789
|
variant: 'subtle',
|
|
788
790
|
color: 'secondary',
|
|
789
|
-
class: 'bg-secondary-soft border-secondary-strong text-secondary-strong hover:bg-secondary-subtle hover:border-secondary-firm hover:text-secondary-firm active:bg-secondary-
|
|
791
|
+
class: 'bg-secondary-soft border-secondary-strong text-secondary-strong hover:bg-secondary-subtle hover:border-secondary-firm hover:text-secondary-firm active:bg-secondary-mild active:border-secondary-bolder active:text-secondary-bolder'
|
|
790
792
|
}, {
|
|
791
793
|
variant: 'subtle',
|
|
792
794
|
color: 'tertiary',
|
|
793
|
-
class: 'bg-tertiary-soft border-tertiary-strong text-tertiary-strong hover:bg-tertiary-subtle hover:border-tertiary-firm hover:text-tertiary
|
|
795
|
+
class: 'bg-tertiary-soft border-tertiary-strong text-tertiary-strong hover:bg-tertiary-subtle hover:border-tertiary-firm hover:text-tertiary active:bg-tertiary-muted active:border-tertiary-bolder active:text-tertiary-bolder'
|
|
794
796
|
}, {
|
|
795
797
|
variant: 'subtle',
|
|
796
798
|
color: 'success',
|
|
@@ -808,7 +810,7 @@ const button = tv({
|
|
|
808
810
|
{
|
|
809
811
|
variant: 'plain',
|
|
810
812
|
color: 'neutral',
|
|
811
|
-
class: 'text-neutral-
|
|
813
|
+
class: 'text-on-neutral-subtle hover:text-neutral-strong active:text-neutral-firm'
|
|
812
814
|
}, {
|
|
813
815
|
variant: 'plain',
|
|
814
816
|
color: 'primary',
|
|
@@ -816,11 +818,11 @@ const button = tv({
|
|
|
816
818
|
}, {
|
|
817
819
|
variant: 'plain',
|
|
818
820
|
color: 'secondary',
|
|
819
|
-
class: 'text-secondary-strong hover:text-secondary-firm active:text-secondary-bolder'
|
|
821
|
+
class: 'text-secondary-strong hover:text-secondary-firm active:bg-secondary-soft active:border-secondary-soft active:text-secondary-bolder'
|
|
820
822
|
}, {
|
|
821
823
|
variant: 'plain',
|
|
822
824
|
color: 'tertiary',
|
|
823
|
-
class: 'text-tertiary-strong hover:text-tertiary
|
|
825
|
+
class: 'text-tertiary-strong hover:text-tertiary active:text-tertiary-bolder'
|
|
824
826
|
}, {
|
|
825
827
|
variant: 'plain',
|
|
826
828
|
color: 'success',
|
|
@@ -869,7 +871,7 @@ const button = tv({
|
|
|
869
871
|
{
|
|
870
872
|
variant: 'soft',
|
|
871
873
|
color: 'neutral',
|
|
872
|
-
class: 'bg-neutral-
|
|
874
|
+
class: 'bg-neutral-muted text-on-neutral-subtle hover:bg-neutral-soft hover:text-neutral-strong active:bg-neutral-mild active:text-on-neutral-mild'
|
|
873
875
|
}, {
|
|
874
876
|
variant: 'soft',
|
|
875
877
|
color: 'primary',
|
|
@@ -877,15 +879,15 @@ const button = tv({
|
|
|
877
879
|
}, {
|
|
878
880
|
variant: 'soft',
|
|
879
881
|
color: 'secondary',
|
|
880
|
-
class: 'bg-secondary-soft text-on-secondary-soft hover:bg-secondary-
|
|
882
|
+
class: 'bg-secondary-soft text-on-secondary-soft hover:bg-secondary-subtle hover:text-on-secondary-subtle active:bg-secondary-mild active:text-on-secondary-mild'
|
|
881
883
|
}, {
|
|
882
884
|
variant: 'soft',
|
|
883
885
|
color: 'tertiary',
|
|
884
|
-
class: 'bg-tertiary-soft text-on-tertiary-soft hover:bg-tertiary-
|
|
886
|
+
class: 'bg-tertiary-soft text-on-tertiary-soft hover:bg-tertiary-subtle hover:text-on-tertiary-subtle active:bg-tertiary-mild active:text-on-tertiary-mild'
|
|
885
887
|
}, {
|
|
886
888
|
variant: 'soft',
|
|
887
889
|
color: 'success',
|
|
888
|
-
class: 'bg-success-soft text-on-success-soft hover:bg-success-
|
|
890
|
+
class: 'bg-success-soft text-on-success-soft hover:bg-success-subtle hover:text-on-success-subtle active:bg-success-mild active:text-on-success-mild'
|
|
889
891
|
}, {
|
|
890
892
|
variant: 'soft',
|
|
891
893
|
color: 'warning',
|
|
@@ -998,7 +1000,10 @@ const buttonSpinner = tv({
|
|
|
998
1000
|
|
|
999
1001
|
const chip = tv({
|
|
1000
1002
|
slots: {
|
|
1001
|
-
base: ['whitespace-nowrap', 'inline-flex items-center justify-between box-border rounded-full'
|
|
1003
|
+
base: ['whitespace-nowrap', 'inline-flex items-center justify-between box-border rounded-full',
|
|
1004
|
+
// Regular weight, matching Badge (the `text-label-*` sizes would set
|
|
1005
|
+
// semibold). Heights are set per size below and match Badge's.
|
|
1006
|
+
'font-normal'],
|
|
1002
1007
|
// label text role (size set per size variant)
|
|
1003
1008
|
content: ['flex-1 text-inherit font-label'],
|
|
1004
1009
|
dot: ['shrink-0', 'ml-1', 'rounded-full'],
|
|
@@ -1900,7 +1905,13 @@ const dropdownContent = tv({
|
|
|
1900
1905
|
});
|
|
1901
1906
|
|
|
1902
1907
|
const popover = tv({
|
|
1903
|
-
|
|
1908
|
+
// The `--popover-available-*` properties are set by `Popover` once it has
|
|
1909
|
+
// positioned the content: the room left in the viewport minus a gutter. They
|
|
1910
|
+
// keep a wide popover -- `lg`/`xl`, or `trigger` on a full-width trigger -- an
|
|
1911
|
+
// inset card on a phone, and make a tall one scroll instead of running off
|
|
1912
|
+
// the screen. Before they are set, or outside `Popover`, the width falls back
|
|
1913
|
+
// to the viewport minus a gutter and the height is uncapped.
|
|
1914
|
+
base: 'bg-surface-input rounded-xl border border-neutral-subtle max-w-[var(--popover-available-width,calc(100vw-2rem))] max-h-[var(--popover-available-height,none)]',
|
|
1904
1915
|
variants: {
|
|
1905
1916
|
size: {
|
|
1906
1917
|
sm: 'w-40',
|
|
@@ -4997,8 +5008,8 @@ const input = tv({
|
|
|
4997
5008
|
slots: {
|
|
4998
5009
|
base: '',
|
|
4999
5010
|
innerContainer: 'relative flex',
|
|
5000
|
-
startContent: 'absolute inset-y-0 left-0 flex items-center',
|
|
5001
|
-
endContent: 'absolute inset-y-0 right-0 flex items-center',
|
|
5011
|
+
startContent: 'absolute inset-y-0 left-0 flex items-center text-neutral-soft',
|
|
5012
|
+
endContent: 'absolute inset-y-0 right-0 flex items-center text-neutral-soft',
|
|
5002
5013
|
input: ['appearance-none', 'flex-1', 'w-full', ...fieldShell, 'text-neutral-strong', 'placeholder-neutral',
|
|
5003
5014
|
// body role family; single-line controls keep tight leading (not the body relaxed leading)
|
|
5004
5015
|
'font-body text-base text-left', 'leading-tight', 'focus:ring-3', 'focus:ring-focus', 'focus:outline-hidden', 'focus:border-primary', 'disabled:border-neutral-subtle disabled:text-neutral-soft', 'aria-invalid:border-danger',
|
|
@@ -5434,7 +5445,7 @@ const datePicker = tv({
|
|
|
5434
5445
|
// names from the variant type, and `isSegmented` below has to target
|
|
5435
5446
|
// both of these.
|
|
5436
5447
|
innerContainer: 'relative flex',
|
|
5437
|
-
endContent: 'absolute inset-y-0 right-0 flex items-center',
|
|
5448
|
+
endContent: 'absolute inset-y-0 right-0 flex items-center text-neutral-soft',
|
|
5438
5449
|
// The calendar sits in the popover, which supplies its own surface and
|
|
5439
5450
|
// padding, so this only reserves room around the grid.
|
|
5440
5451
|
calendar: 'p-2',
|
|
@@ -5594,7 +5605,7 @@ const dateInput = tv({
|
|
|
5594
5605
|
base: [],
|
|
5595
5606
|
innerContainer: segmentedFieldShell,
|
|
5596
5607
|
...segmentRowSlots,
|
|
5597
|
-
endContent: 'flex items-center gap-1 shrink-0',
|
|
5608
|
+
endContent: 'flex items-center gap-1 shrink-0 text-neutral-soft',
|
|
5598
5609
|
icon: 'w-5 h-5',
|
|
5599
5610
|
clearButton: 'pointer-events-auto',
|
|
5600
5611
|
calendarButton: 'pointer-events-auto'
|