@frontile/theme 0.18.12 → 0.18.13
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/app-layout.d.ts +1 -0
- package/declarations/components/app-layout.d.ts.map +1 -1
- package/declarations/components/badge.d.ts +1 -0
- package/declarations/components/badge.d.ts.map +1 -1
- package/declarations/components/tooltip.d.ts +1 -1
- package/declarations/components/tooltip.d.ts.map +1 -1
- package/dist/index.js +78 -22
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -155,6 +155,7 @@ declare const appLayout: import("tailwind-variants").TVReturnType<{
|
|
|
155
155
|
aside: string;
|
|
156
156
|
mobileAside: string;
|
|
157
157
|
asideToggle: string[];
|
|
158
|
+
region: string;
|
|
158
159
|
skipLink: string[];
|
|
159
160
|
}, undefined, undefined, undefined, undefined>;
|
|
160
161
|
export { appLayout };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-layout.d.ts","sourceRoot":"","sources":["../../src/components/app-layout.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AA2K1C,QAAA,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"app-layout.d.ts","sourceRoot":"","sources":["../../src/components/app-layout.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AA2K1C,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8CA6lBb,CAAC;AAEH,OAAO,EAAE,SAAS,EAAE,CAAC;AACrB,MAAM,MAAM,cAAc,GAAG,MAAM,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;AAChE,MAAM,MAAM,iBAAiB,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../src/components/badge.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,KAAK
|
|
1
|
+
{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../src/components/badge.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8CAuOT,CAAC;AAEH,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../src/components/tooltip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAE9C,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../src/components/tooltip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAE9C,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8CAkFX,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC,OAAO,OAAO,CAAC,CAAC;AAC3D,MAAM,MAAM,YAAY,GAAG,MAAM,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC;AAE5D,OAAO,EAAE,OAAO,EAAE,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -423,9 +423,9 @@ const avatar = tv({
|
|
|
423
423
|
|
|
424
424
|
const badge = tv({
|
|
425
425
|
slots: {
|
|
426
|
-
//
|
|
426
|
+
// Semibold; the `text-strong-*` size tokens would set bold, so the
|
|
427
427
|
// weight is pinned here and only `value` is heavier.
|
|
428
|
-
base: 'inline-flex items-center whitespace-nowrap font-label font-
|
|
428
|
+
base: 'inline-flex items-center whitespace-nowrap font-label font-semibold leading-none',
|
|
429
429
|
// emphasized value, e.g. a price
|
|
430
430
|
value: 'font-bold tabular-nums leading-none',
|
|
431
431
|
// unit following the value, e.g. "/mo"
|
|
@@ -436,6 +436,7 @@ const badge = tv({
|
|
|
436
436
|
},
|
|
437
437
|
variants: {
|
|
438
438
|
variant: {
|
|
439
|
+
solid: '',
|
|
439
440
|
soft: '',
|
|
440
441
|
outline: ''
|
|
441
442
|
},
|
|
@@ -506,6 +507,51 @@ const badge = tv({
|
|
|
506
507
|
}
|
|
507
508
|
},
|
|
508
509
|
compoundVariants: [
|
|
510
|
+
// VARIANT: solid (filled). The fill is the color's DEFAULT level, as on
|
|
511
|
+
// Chip; neutral steps up to `-bolder` because its DEFAULT is too light to
|
|
512
|
+
// read as a fill. The dot follows the text color so it stays visible.
|
|
513
|
+
{
|
|
514
|
+
variant: 'solid',
|
|
515
|
+
class: {
|
|
516
|
+
dot: 'bg-current'
|
|
517
|
+
}
|
|
518
|
+
}, {
|
|
519
|
+
variant: 'solid',
|
|
520
|
+
color: 'neutral',
|
|
521
|
+
class: {
|
|
522
|
+
base: 'bg-neutral-bolder text-on-neutral-bolder'
|
|
523
|
+
}
|
|
524
|
+
}, {
|
|
525
|
+
variant: 'solid',
|
|
526
|
+
color: 'primary',
|
|
527
|
+
class: {
|
|
528
|
+
base: 'bg-primary text-on-primary'
|
|
529
|
+
}
|
|
530
|
+
}, {
|
|
531
|
+
variant: 'solid',
|
|
532
|
+
color: 'secondary',
|
|
533
|
+
class: {
|
|
534
|
+
base: 'bg-secondary text-on-secondary'
|
|
535
|
+
}
|
|
536
|
+
}, {
|
|
537
|
+
variant: 'solid',
|
|
538
|
+
color: 'tertiary',
|
|
539
|
+
class: {
|
|
540
|
+
base: 'bg-tertiary text-on-tertiary'
|
|
541
|
+
}
|
|
542
|
+
}, {
|
|
543
|
+
variant: 'solid',
|
|
544
|
+
color: 'success',
|
|
545
|
+
class: {
|
|
546
|
+
base: 'bg-success text-on-success'
|
|
547
|
+
}
|
|
548
|
+
}, {
|
|
549
|
+
variant: 'solid',
|
|
550
|
+
color: 'danger',
|
|
551
|
+
class: {
|
|
552
|
+
base: 'bg-danger text-on-danger'
|
|
553
|
+
}
|
|
554
|
+
},
|
|
509
555
|
// VARIANT: soft (tonal). One level above Chip's `soft` (`-subtle`).
|
|
510
556
|
{
|
|
511
557
|
variant: 'soft',
|
|
@@ -585,7 +631,7 @@ const badge = tv({
|
|
|
585
631
|
defaultVariants: {
|
|
586
632
|
size: 'xs',
|
|
587
633
|
color: 'neutral',
|
|
588
|
-
variant: '
|
|
634
|
+
variant: 'solid'
|
|
589
635
|
}
|
|
590
636
|
});
|
|
591
637
|
|
|
@@ -3943,6 +3989,8 @@ const appLayout = tv({
|
|
|
3943
3989
|
// The aside's `aside` element inside the drawer: as tall as the drawer.
|
|
3944
3990
|
mobileAside: 'min-h-0 flex-1 overflow-y-auto p-4 font-body text-body-sm',
|
|
3945
3991
|
asideToggle: iconButton,
|
|
3992
|
+
// A `layout.Region`: its children lay out as children of its parent.
|
|
3993
|
+
region: 'contents',
|
|
3946
3994
|
skipLink: [...focusVisibleRing, 'sr-only focus:not-sr-only', 'focus:absolute focus:start-2 focus:top-2 focus:z-50', 'focus:rounded-md focus:bg-surface-app focus:px-3 focus:py-2', 'focus:text-on-surface-app focus:shadow-md']
|
|
3947
3995
|
},
|
|
3948
3996
|
variants: {
|
|
@@ -4974,39 +5022,47 @@ const tooltip = tv({
|
|
|
4974
5022
|
// one wraps instead of running off the viewport. `origin-*` is keyed off
|
|
4975
5023
|
// the resolved placement the content carries as `data-placement`, so the
|
|
4976
5024
|
// enter transition grows out of the anchor rather than out of nowhere.
|
|
4977
|
-
|
|
5025
|
+
//
|
|
5026
|
+
// Type is the `body` role, not `label`: a tooltip is a sentence read in
|
|
5027
|
+
// passing, so it wants regular weight and running-text leading. `label`
|
|
5028
|
+
// is semibold at a leading of 1, which renders a short tip heavy and
|
|
5029
|
+
// packs a wrapped one into touching lines. `antialiased` keeps light
|
|
5030
|
+
// text on the dark fill from blooming on macOS.
|
|
5031
|
+
base: ['relative w-max max-w-xs rounded-md shadow-md overflow-visible', 'font-body antialiased', 'data-[placement^=top]:origin-bottom', 'data-[placement^=bottom]:origin-top', 'data-[placement^=left]:origin-right', 'data-[placement^=right]:origin-left'],
|
|
4978
5032
|
arrow: ''
|
|
4979
5033
|
},
|
|
4980
5034
|
variants: {
|
|
4981
5035
|
size: {
|
|
4982
5036
|
sm: {
|
|
4983
|
-
base: 'px-
|
|
5037
|
+
base: 'px-1.5 py-0.5 text-body-2xs'
|
|
4984
5038
|
},
|
|
4985
5039
|
md: {
|
|
4986
|
-
base: 'px-2
|
|
5040
|
+
base: 'px-2 py-1 text-body-xs'
|
|
4987
5041
|
},
|
|
4988
5042
|
lg: {
|
|
4989
|
-
base: 'px-
|
|
5043
|
+
base: 'px-2.5 py-1.5 text-body-sm'
|
|
4990
5044
|
}
|
|
4991
5045
|
},
|
|
4992
5046
|
// `bg-inherit` on the arrow (see `overlayArrow`) means each color only
|
|
4993
|
-
// has to state the background once, on `base`. The border is
|
|
4994
|
-
// both `base` and `arrow` for every color
|
|
4995
|
-
//
|
|
4996
|
-
//
|
|
4997
|
-
// `
|
|
4998
|
-
//
|
|
4999
|
-
//
|
|
5000
|
-
//
|
|
5001
|
-
//
|
|
5002
|
-
//
|
|
5003
|
-
//
|
|
5004
|
-
//
|
|
5005
|
-
// `
|
|
5047
|
+
// has to state the background once, on `base`. The border is cleared to
|
|
5048
|
+
// `border-transparent` on both `base` and `arrow` for every color. The
|
|
5049
|
+
// body needs it explicitly: `Content`'s classNames (`popover.gts`) run
|
|
5050
|
+
// this `base` class through the *`popover`* tv, whose own base carries
|
|
5051
|
+
// `border border-neutral-subtle` (`popover.ts`), and twMerge only drops
|
|
5052
|
+
// that when a later class from the same border-color group replaces it.
|
|
5053
|
+
// Leaving it would show a hairline on the body that the arrow lacks, a
|
|
5054
|
+
// seam at the join.
|
|
5055
|
+
//
|
|
5056
|
+
// `neutral` is a raised warm gray in *both* schemes rather than a
|
|
5057
|
+
// scheme-following surface. `surface-input` is pure black in dark mode,
|
|
5058
|
+
// which sits *below* a warm-black page and leaves a border to do all the
|
|
5059
|
+
// separating. `neutral-strong` (light) and `neutral-muted` (dark) resolve
|
|
5060
|
+
// to the same step of the gray ramp, so the tooltip reads as a lifted
|
|
5061
|
+
// chip on either ground, and its edge comes from the fill, not a border.
|
|
5006
5062
|
color: {
|
|
5007
5063
|
neutral: {
|
|
5008
|
-
base: 'bg-
|
|
5009
|
-
arrow: 'border-
|
|
5064
|
+
base: ['bg-neutral-strong text-on-neutral-strong border-transparent', 'dark:bg-neutral-muted dark:text-on-neutral-muted'],
|
|
5065
|
+
arrow: 'border-transparent'
|
|
5010
5066
|
},
|
|
5011
5067
|
primary: {
|
|
5012
5068
|
base: 'bg-primary text-on-primary border-transparent',
|