@frontile/theme 0.18.9 → 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 -321
- 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-color.d.ts +2 -1
- package/declarations/components/nav-color.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 +89 -51
- 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',
|
|
@@ -3145,6 +3156,13 @@ const navSolid = ['bg-(--app-layout-color) dark:bg-(--app-layout-color) text-(--
|
|
|
3145
3156
|
// The frame's gradient stops, from the layout color.
|
|
3146
3157
|
const frameGradientStops = ['[--app-frame-gradient-from:color-mix(in_oklab,var(--app-layout-color)_16%,transparent)]', '[--app-frame-gradient-to:color-mix(in_oklab,var(--color-neutral-subtle)_16%,transparent)]'];
|
|
3147
3158
|
|
|
3159
|
+
// Neutral's stops. Not a fraction of the layout color: neutral's is its
|
|
3160
|
+
// `bolder` level, near-white in dark mode, which tints the frame a cool grey.
|
|
3161
|
+
// The palette's warmth lives in its dark greys, so the gradient fades one of
|
|
3162
|
+
// them to nothing: `muted` on the light frame, `subtle` on the dark one. Like
|
|
3163
|
+
// a tint, it holds full strength behind the sidebar.
|
|
3164
|
+
const neutralFrameGradientStops = ['[--app-frame-gradient-from:var(--color-neutral-muted)] dark:[--app-frame-gradient-from:var(--color-neutral-subtle)]', '[--app-frame-gradient-to:transparent]'];
|
|
3165
|
+
|
|
3148
3166
|
// The shell is one CSS grid. The parts (sidebar, navbar, main, aside) are
|
|
3149
3167
|
// siblings in whatever order the consumer writes them, so each places itself
|
|
3150
3168
|
// in the grid rather than relying on a wrapper:
|
|
@@ -3302,6 +3320,12 @@ const edgeToEdgeVariants = ['sm', 'md', 'lg'].flatMap(breakpoint => {
|
|
|
3302
3320
|
// well as on the content surface. It reads the rows' color properties, so a
|
|
3303
3321
|
// toggle in a colored sidebar or navbar takes its colors (see `nav-color.ts`).
|
|
3304
3322
|
const iconButton = [...focusVisibleRing, 'inline-flex size-9 shrink-0 items-center justify-center rounded-lg', 'text-(--nav-item-fg,var(--color-neutral-firm))', 'hover:bg-(--nav-item-hover-bg,var(--color-neutral-muted))', 'hover:text-(--nav-item-hover-fg,var(--color-neutral-strong))'];
|
|
3323
|
+
|
|
3324
|
+
// The frame's ground in dark mode: a warm near-black, `neutral-subtle` at 30%
|
|
3325
|
+
// over `surface-app` (black), rather than black itself. Near enough to black
|
|
3326
|
+
// that the `canvas` content stays the lit surface, warm enough that the shell
|
|
3327
|
+
// keeps the palette's tone. Written out: Tailwind only finds whole strings.
|
|
3328
|
+
const darkFrame = 'dark:bg-[color-mix(in_oklab,var(--color-neutral-subtle)_30%,var(--color-surface-app))]';
|
|
3305
3329
|
// One variant entry per layout color, from the literal classes in
|
|
3306
3330
|
// `nav-color.ts` (which is where Tailwind finds them).
|
|
3307
3331
|
function perColor(entry) {
|
|
@@ -3330,9 +3354,9 @@ const appLayout = tv({
|
|
|
3330
3354
|
// The navbar and sidebar header read `--app-navbar-height` (always set)
|
|
3331
3355
|
// with a literal fallback for parts rendered outside an `AppLayout`.
|
|
3332
3356
|
base: ['relative grid w-full text-on-surface-app', 'grid-cols-[auto_minmax(0,1fr)_auto]', '[--app-navbar-height:3rem]',
|
|
3333
|
-
// The frame's gradient, painted over the variant's
|
|
3334
|
-
// color. Its two stop colors are properties (set per
|
|
3335
|
-
// below), so an app can swap a stop without rewriting the gradient:
|
|
3357
|
+
// The frame's gradient, painted over the variant's own background
|
|
3358
|
+
// color. Its two stop colors are properties (set per color when
|
|
3359
|
+
// `frameGradient` is on, below), so an app can swap a stop without rewriting the gradient:
|
|
3336
3360
|
// `@classes={{hash base='[--app-frame-gradient-from:...]'}}`.
|
|
3337
3361
|
// `--app-frame-gradient` itself takes any `<image>`, or `none`. The tint
|
|
3338
3362
|
// holds at full strength across the sidebar and fades across the content,
|
|
@@ -3440,15 +3464,16 @@ const appLayout = tv({
|
|
|
3440
3464
|
variant: {
|
|
3441
3465
|
// The tinted frame shows through a gutter around the card. The content
|
|
3442
3466
|
// is the lit surface in both schemes: on a `canvas` frame in light, and
|
|
3443
|
-
// in dark,
|
|
3444
|
-
//
|
|
3467
|
+
// in dark, `canvas` content on a near-black frame (`darkFrame`).
|
|
3468
|
+
// `canvas`, not the `card` veil: the veil is white at 7%, a cool grey
|
|
3469
|
+
// that drops the palette's warmth from the whole content area.
|
|
3445
3470
|
inset: {
|
|
3446
|
-
base: 'bg-surface-canvas p-3
|
|
3471
|
+
base: ['bg-surface-canvas p-3', darkFrame],
|
|
3447
3472
|
// 0.375rem of clip room clears the 5px focus ring, which the
|
|
3448
3473
|
// scrolling body would otherwise clip at its edge. The ground and
|
|
3449
3474
|
// gutter depend on the sidebar's surface (see the compound variants).
|
|
3450
3475
|
sidebar: '[--sidebar-clip:0.375rem]',
|
|
3451
|
-
mainCard: 'rounded-xl bg-surface-app shadow-sm ring-1 ring-neutral-muted dark:bg-surface-
|
|
3476
|
+
mainCard: 'rounded-xl bg-surface-app shadow-sm ring-1 ring-neutral-muted dark:bg-surface-canvas',
|
|
3452
3477
|
aside: 'border-s border-neutral-muted',
|
|
3453
3478
|
// The bottom bar runs edge to edge: it pulls out over the frame's
|
|
3454
3479
|
// side and bottom gutter (`p-3`).
|
|
@@ -3565,26 +3590,25 @@ const appLayout = tv({
|
|
|
3565
3590
|
plain: {},
|
|
3566
3591
|
solid: {}
|
|
3567
3592
|
},
|
|
3568
|
-
// The frame's gradient
|
|
3569
|
-
//
|
|
3570
|
-
//
|
|
3593
|
+
// The frame's gradient, painted over the variant's own surface. Off, the
|
|
3594
|
+
// frame is flat. The stops depend on the color (compound variants below):
|
|
3595
|
+
// a low-alpha tint of the layout color fading to a neutral grey, or, for
|
|
3596
|
+
// neutral, a warm grey fading to nothing. Both are theme colors, so none
|
|
3597
|
+
// of it is hard-coded.
|
|
3571
3598
|
frameGradient: {
|
|
3572
|
-
true: {
|
|
3573
|
-
base: frameGradientStops
|
|
3574
|
-
},
|
|
3599
|
+
true: {},
|
|
3575
3600
|
false: {
|
|
3576
3601
|
base: '[--app-frame-gradient:none]'
|
|
3577
3602
|
}
|
|
3578
3603
|
},
|
|
3579
3604
|
// `translucent` lets the frame (and its gradient) show through the inset
|
|
3580
|
-
// card:
|
|
3581
|
-
//
|
|
3582
|
-
//
|
|
3583
|
-
// background would otherwise win.
|
|
3605
|
+
// card: white at 50% in light, and the warm `canvas` at 70% in dark, so
|
|
3606
|
+
// the card keeps the solid card's tone over the gradient. `solid` keeps
|
|
3607
|
+
// the opaque surface.
|
|
3584
3608
|
cardSurface: {
|
|
3585
3609
|
solid: {},
|
|
3586
3610
|
translucent: {
|
|
3587
|
-
mainCard: 'bg-surface-app/50 dark:bg-surface-
|
|
3611
|
+
mainCard: 'bg-surface-app/50 dark:bg-surface-canvas/70'
|
|
3588
3612
|
}
|
|
3589
3613
|
},
|
|
3590
3614
|
// `end` moves the sidebar to the last column and the aside to the first,
|
|
@@ -3696,7 +3720,7 @@ const appLayout = tv({
|
|
|
3696
3720
|
variant: 'attached',
|
|
3697
3721
|
standalone: false,
|
|
3698
3722
|
class: {
|
|
3699
|
-
sidebar: 'border-e border-neutral-muted bg-surface-canvas
|
|
3723
|
+
sidebar: ['border-e border-neutral-muted bg-surface-canvas', darkFrame]
|
|
3700
3724
|
}
|
|
3701
3725
|
}, {
|
|
3702
3726
|
variant: 'attached',
|
|
@@ -3803,6 +3827,20 @@ const appLayout = tv({
|
|
|
3803
3827
|
sidebar: 'bg-transparent [--sidebar-gutter:0px]'
|
|
3804
3828
|
}
|
|
3805
3829
|
},
|
|
3830
|
+
// The frame gradient's stops (see `nav-color.ts`).
|
|
3831
|
+
{
|
|
3832
|
+
color: tintedColors,
|
|
3833
|
+
frameGradient: true,
|
|
3834
|
+
class: {
|
|
3835
|
+
base: frameGradientStops
|
|
3836
|
+
}
|
|
3837
|
+
}, {
|
|
3838
|
+
color: 'neutral',
|
|
3839
|
+
frameGradient: true,
|
|
3840
|
+
class: {
|
|
3841
|
+
base: neutralFrameGradientStops
|
|
3842
|
+
}
|
|
3843
|
+
},
|
|
3806
3844
|
// Color. Last, so the solid fill wins over the attached variant's
|
|
3807
3845
|
// backgrounds and border.
|
|
3808
3846
|
{
|
|
@@ -4970,8 +5008,8 @@ const input = tv({
|
|
|
4970
5008
|
slots: {
|
|
4971
5009
|
base: '',
|
|
4972
5010
|
innerContainer: 'relative flex',
|
|
4973
|
-
startContent: 'absolute inset-y-0 left-0 flex items-center',
|
|
4974
|
-
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',
|
|
4975
5013
|
input: ['appearance-none', 'flex-1', 'w-full', ...fieldShell, 'text-neutral-strong', 'placeholder-neutral',
|
|
4976
5014
|
// body role family; single-line controls keep tight leading (not the body relaxed leading)
|
|
4977
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',
|
|
@@ -5407,7 +5445,7 @@ const datePicker = tv({
|
|
|
5407
5445
|
// names from the variant type, and `isSegmented` below has to target
|
|
5408
5446
|
// both of these.
|
|
5409
5447
|
innerContainer: 'relative flex',
|
|
5410
|
-
endContent: 'absolute inset-y-0 right-0 flex items-center',
|
|
5448
|
+
endContent: 'absolute inset-y-0 right-0 flex items-center text-neutral-soft',
|
|
5411
5449
|
// The calendar sits in the popover, which supplies its own surface and
|
|
5412
5450
|
// padding, so this only reserves room around the grid.
|
|
5413
5451
|
calendar: 'p-2',
|
|
@@ -5567,7 +5605,7 @@ const dateInput = tv({
|
|
|
5567
5605
|
base: [],
|
|
5568
5606
|
innerContainer: segmentedFieldShell,
|
|
5569
5607
|
...segmentRowSlots,
|
|
5570
|
-
endContent: 'flex items-center gap-1 shrink-0',
|
|
5608
|
+
endContent: 'flex items-center gap-1 shrink-0 text-neutral-soft',
|
|
5571
5609
|
icon: 'w-5 h-5',
|
|
5572
5610
|
clearButton: 'pointer-events-auto',
|
|
5573
5611
|
calendarButton: 'pointer-events-auto'
|