@frontile/theme 0.18.0-alpha.19 → 0.18.0-alpha.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.
|
@@ -351,7 +351,7 @@ declare const drawer: import("tailwind-variants").TVReturnType<{
|
|
|
351
351
|
closeButton: string;
|
|
352
352
|
headerCloseButton: string;
|
|
353
353
|
header: string;
|
|
354
|
-
headerContent: string;
|
|
354
|
+
headerContent: string[];
|
|
355
355
|
headerActions: string;
|
|
356
356
|
body: string;
|
|
357
357
|
footer: string;
|
|
@@ -456,7 +456,7 @@ declare const drawer: import("tailwind-variants").TVReturnType<{
|
|
|
456
456
|
closeButton: string;
|
|
457
457
|
headerCloseButton: string;
|
|
458
458
|
header: string;
|
|
459
|
-
headerContent: string;
|
|
459
|
+
headerContent: string[];
|
|
460
460
|
headerActions: string;
|
|
461
461
|
body: string;
|
|
462
462
|
footer: string;
|
|
@@ -513,7 +513,7 @@ declare const drawer: import("tailwind-variants").TVReturnType<{
|
|
|
513
513
|
closeButton: string;
|
|
514
514
|
headerCloseButton: string;
|
|
515
515
|
header: string;
|
|
516
|
-
headerContent: string;
|
|
516
|
+
headerContent: string[];
|
|
517
517
|
headerActions: string;
|
|
518
518
|
body: string;
|
|
519
519
|
footer: string;
|
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-DIZlPzFH.js';
|
|
2
|
+
export { e as twMerge } from './overlays-DIZlPzFH.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
|
|
|
@@ -171,7 +171,18 @@ const drawer = tv({
|
|
|
171
171
|
// `min-w-0` lets a long title shrink (and truncate, if the consumer asks
|
|
172
172
|
// for it) instead of shoving the actions past the edge -- a flex item's
|
|
173
173
|
// default `min-width: auto` refuses to shrink below its content.
|
|
174
|
-
headerContent: 'grid grid-cols-[auto_1fr] items-center grow min-w-0',
|
|
174
|
+
headerContent: ['grid grid-cols-[auto_1fr] items-center grow min-w-0',
|
|
175
|
+
// The icon only spans two rows when there are two rows of text to span.
|
|
176
|
+
// A spanning grid item's height is distributed across every track it
|
|
177
|
+
// covers, so a 40px icon spanning rows in a header with only a title
|
|
178
|
+
// pushed half its height into a phantom second row: the title (and the
|
|
179
|
+
// close button, centred against the band) ended up ~10px above the
|
|
180
|
+
// band's centre with dead space underneath. Keyed off the description
|
|
181
|
+
// element's own presence with `:has()` -- the same trick `pagination.ts`
|
|
182
|
+
// and `table.ts` use -- so it follows the rendered structure rather than
|
|
183
|
+
// a variant the header has to compute and thread through, and it holds
|
|
184
|
+
// for `@description` and a yielded `<h.Description />` alike.
|
|
185
|
+
'[&:has([data-drawer-header-description])_[data-drawer-header-icon]]:row-span-2', '[&:has([data-drawer-header-description])_[data-drawer-header-icon]]:self-start'],
|
|
175
186
|
// Actions are in flow, deliberately, unlike the close button. The close
|
|
176
187
|
// button is chrome this component owns and should not dictate the band's
|
|
177
188
|
// height; whatever a consumer puts here is content, so a taller control
|
|
@@ -189,15 +200,18 @@ const drawer = tv({
|
|
|
189
200
|
body: 'grow overflow-y-auto touch-pan-y',
|
|
190
201
|
footer: 'flex justify-end items-center relative gap-4',
|
|
191
202
|
// Sized from the design: a 40px icon box with a 16px gap to the text.
|
|
192
|
-
//
|
|
193
|
-
// tops out with the title rather
|
|
203
|
+
//
|
|
204
|
+
// With a title and a description the icon tops out with the title rather
|
|
205
|
+
// than centring across both text rows, matching the design's
|
|
206
|
+
// `align-items: flex-start`; that pairing lives on `headerContent`, which
|
|
207
|
+
// can see whether a description exists. Title-only, it centres.
|
|
194
208
|
//
|
|
195
209
|
// The gap between the icon column and the text column lives here rather
|
|
196
210
|
// than as `gap-x-*` on the header grid. A column gap applies between the
|
|
197
211
|
// two tracks whether or not the icon track has anything in it, so a
|
|
198
212
|
// header with no icon still had its title indented past the body text
|
|
199
213
|
// below it. As a margin it only exists when an icon does.
|
|
200
|
-
icon: '
|
|
214
|
+
icon: 'col-start-1 self-center mr-4 size-10 shrink-0 flex items-center justify-center',
|
|
201
215
|
title: 'col-start-2 font-header',
|
|
202
216
|
description: 'col-start-2',
|
|
203
217
|
dragHandle: 'absolute z-10 flex items-center justify-center touch-none cursor-grab active:cursor-grabbing focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary',
|
|
@@ -637,4 +651,4 @@ const overlayTransitions = {
|
|
|
637
651
|
};
|
|
638
652
|
|
|
639
653
|
export { overlayArrow as a, backdrop as b, overlayTransitions as c, drawer as d, twMerge as e, modal as m, overlay as o, tv as t };
|
|
640
|
-
//# sourceMappingURL=overlays-
|
|
654
|
+
//# sourceMappingURL=overlays-DIZlPzFH.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"overlays-DIZlPzFH.js","sources":["../src/tw.ts","../src/components/overlays.ts"],"sourcesContent":["import { extendTailwindMerge } from 'tailwind-merge';\nimport { createTV } from 'tailwind-variants';\nimport type { ClassValue } from 'tailwind-variants';\nexport type { VariantProps } from 'tailwind-variants';\n\nfunction flat(arr: ClassValue[], target: ClassValue[]): void {\n arr.forEach((el) => {\n if (Array.isArray(el)) {\n flat(el, target);\n } else {\n target.push(el);\n }\n });\n}\nfunction flatArray(arr: ClassValue[]): ClassValue[] {\n const flattened: ClassValue[] = [];\n flat(arr, flattened);\n return flattened;\n}\nconst voidEmpty = <T>(value: T): T | undefined => (value ? value : undefined);\n\nconst clsx = (...classes: ClassValue[]): string | undefined => {\n return voidEmpty(flatArray(classes).filter(Boolean).join(' '));\n};\n\n// Common size units used across all design tokens (icons, typography, etc.)\nconst COMMON_UNITS = [\n 'pico',\n 'nano',\n 'micro',\n '5xs',\n '4xs',\n '3xs',\n '2xs',\n 'xs',\n 'sm',\n 'md',\n 'lg',\n 'xl',\n '2xl',\n '3xl',\n 'kilo',\n 'mega'\n] as const;\n\nconst ELEVATION_LEVELS = ['0', '1', '2', '3', '4', '5'];\n\nconst twMergeConfig = {\n extend: {\n classGroups: {\n // Icon sizes\n 'icon-size': [{ 'size-icon': COMMON_UNITS }],\n\n // Border widths (directional variants handled automatically)\n 'border-w': [{ border: ['thin', 'heavy', 'aggressive'] }],\n\n // Border radius (extend existing rounded utilities)\n rounded: [{ rounded: ['default', 'pill'] }],\n\n // Elevation shadows\n shadow: [{ 'shadow-elevation': ELEVATION_LEVELS }],\n\n // Opacity\n opacity: [{ opacity: ['hover', 'disabled'] }],\n\n // Typography composite text styles (extend font-size class group)\n // These set font-size + other properties, so they should conflict with text-* utilities\n 'font-size': [\n { 'text-marquee': [...COMMON_UNITS] },\n { 'text-header': [...COMMON_UNITS] },\n { 'text-body': [...COMMON_UNITS] },\n // `strong` was missing here, so `text-strong-*` fell through to the\n // text-color group and tailwind-merge dropped it whenever a component\n // also set a text color (e.g. Button's `text-on-primary`) — silently\n // losing the label's size, weight and tracking.\n { 'text-strong': [...COMMON_UNITS] },\n { 'text-code': [...COMMON_UNITS] },\n { 'text-caption': [...COMMON_UNITS] },\n { 'text-label': [...COMMON_UNITS] }\n ]\n },\n conflictingClassGroups: {\n 'icon-size': ['w', 'h', 'size']\n }\n }\n} as const;\n\nconst twMergeBase = extendTailwindMerge<'icon-size'>(twMergeConfig);\n\nexport function twMerge(defaultClass: ClassValue, overwrites: ClassValue) {\n if (overwrites) {\n return twMergeBase(clsx(defaultClass, overwrites));\n }\n return clsx(defaultClass);\n}\n\nexport const tv = createTV({\n twMerge: true,\n twMergeConfig\n});\n","import { tv, type VariantProps } from '../tw';\n\nconst obscurer = `before:bg-linear-to-b before:to-surface-modal before:from-surface-modal/75 before:absolute before:left-0 before:w-full before:h-4 before:-top-4 before:content-['_']`;\n\nconst overlay = tv({\n base: 'will-change-transform overflow-auto',\n variants: {\n enableFlexContent: {\n true: 'flex items-center fixed inset-0 flex-col'\n },\n inPlace: {\n true: 'absolute'\n }\n }\n});\n\nconst backdrop = tv({\n base: 'fixed inset-0 select-none',\n variants: {\n type: {\n none: '',\n transparent: '',\n // The scrim is `overlay-strong` in light and `lift-strong` in dark: the\n // two families are mirrored, so the black 75% step swaps sides. Pairing\n // them keeps the backdrop a dark scrim in both schemes.\n blur: 'bg-surface-overlay-strong dark:bg-surface-lift-strong backdrop-blur-sm',\n faded: 'bg-surface-overlay-strong dark:bg-surface-lift-strong'\n },\n inPlace: {\n true: 'absolute'\n }\n }\n});\n\nconst modal = tv({\n slots: {\n base: 'flex flex-col shrink-0 relative text-on-surface-modal bg-surface-modal border border-surface-overlay-mild rounded-2xl my-24 w-full outline-hidden overflow-clip',\n closeButton: 'absolute top-3 right-3',\n header: 'font-header text-header-lg px-6 pt-8 pb-2',\n body: 'px-6 py-2 grow overflow-y-auto',\n footer: 'flex justify-end items-center px-6 pt-6 pb-8 gap-4'\n },\n variants: {\n size: {\n xs: 'modal--xs',\n sm: 'modal--sm',\n md: 'modal--md',\n lg: 'modal--lg',\n xl: 'modal--xl',\n full: 'modal--full'\n },\n isCentered: {\n true: 'my-auto'\n }\n }\n});\n\nconst drawer = tv({\n slots: {\n base: 'flex flex-col absolute rounded-2xl outline-hidden overflow-clip border border-neutral-muted shadow-elevation-5',\n closeButton: 'absolute top-3 right-3',\n // The close button rendered *inside* the header (see `drawer.gts`) is\n // absolutely positioned rather than placed as a grid item. Making it a\n // grid item was tried and reverted: as a spanning item it forces the\n // header's row track count up, so a header with only a title grew a\n // phantom second row and the band became far taller than its content.\n // Out of flow, it centres against whatever height the header's own\n // content produces -- title-only or title + description alike -- and\n // contributes nothing to that height. The header reserves space for it\n // with right padding instead, since an out-of-flow element cannot push\n // the text out of its own way.\n //\n // `right-5` rather than `right-8` is optical alignment, not a mistake.\n // The button's hit area is its icon plus 12px of padding on each side --\n // padding that exists for the hover and focus rings, and that is\n // invisible at rest. Pinning the button's *box* to the header's 32px\n // padding would leave the visible glyph sitting 12px further in than the\n // body text below it. Offsetting by that padding (32 - 12 = 20px) lines\n // the glyph's edge up with the content instead of the box's.\n headerCloseButton: 'absolute top-1/2 right-5 -translate-y-1/2 shrink-0',\n // The header is a flex row of two regions, not a grid: the grid lives one\n // level down in `headerContent`. Consumer actions have to be able to sit\n // beside the close button and be centred against a header that may be one\n // or two text rows tall, and a grid item that spans both rows forces the\n // row track count up -- which is what previously made a title-only header\n // grow a phantom second row. As a flex sibling there are no row tracks to\n // inflate.\n header: 'relative flex items-center gap-4',\n // `min-w-0` lets a long title shrink (and truncate, if the consumer asks\n // for it) instead of shoving the actions past the edge -- a flex item's\n // default `min-width: auto` refuses to shrink below its content.\n headerContent: [\n 'grid grid-cols-[auto_1fr] items-center grow min-w-0',\n // The icon only spans two rows when there are two rows of text to span.\n // A spanning grid item's height is distributed across every track it\n // covers, so a 40px icon spanning rows in a header with only a title\n // pushed half its height into a phantom second row: the title (and the\n // close button, centred against the band) ended up ~10px above the\n // band's centre with dead space underneath. Keyed off the description\n // element's own presence with `:has()` -- the same trick `pagination.ts`\n // and `table.ts` use -- so it follows the rendered structure rather than\n // a variant the header has to compute and thread through, and it holds\n // for `@description` and a yielded `<h.Description />` alike.\n '[&:has([data-drawer-header-description])_[data-drawer-header-icon]]:row-span-2',\n '[&:has([data-drawer-header-description])_[data-drawer-header-icon]]:self-start'\n ],\n // Actions are in flow, deliberately, unlike the close button. The close\n // button is chrome this component owns and should not dictate the band's\n // height; whatever a consumer puts here is content, so a taller control\n // legitimately makes the band taller.\n headerActions: 'flex items-center gap-2 shrink-0',\n // `touch-pan-y` (not `touch-none`) tells the browser it may still handle\n // vertical panning natively -- matching `overflow-y-auto` above -- while\n // continuing to deliver pointer events to `dragToDismiss` for the first\n // few pixels of a touch drag. That's what lets the modifier decide\n // (before the browser commits to a native scroll) whether a body press\n // is a scroll or a dismiss drag; `touch-none` would suppress the native\n // scroll it's supposed to fall back to, and the default `touch-auto`\n // would let the browser claim the gesture for panning *and* pinch-zoom,\n // which fires `pointercancel` more eagerly than plain vertical panning.\n body: 'grow overflow-y-auto touch-pan-y',\n footer: 'flex justify-end items-center relative gap-4',\n // Sized from the design: a 40px icon box with a 16px gap to the text.\n //\n // With a title and a description the icon tops out with the title rather\n // than centring across both text rows, matching the design's\n // `align-items: flex-start`; that pairing lives on `headerContent`, which\n // can see whether a description exists. Title-only, it centres.\n //\n // The gap between the icon column and the text column lives here rather\n // than as `gap-x-*` on the header grid. A column gap applies between the\n // two tracks whether or not the icon track has anything in it, so a\n // header with no icon still had its title indented past the body text\n // below it. As a margin it only exists when an icon does.\n icon: 'col-start-1 self-center mr-4 size-10 shrink-0 flex items-center justify-center',\n title: 'col-start-2 font-header',\n description: 'col-start-2',\n dragHandle:\n 'absolute z-10 flex items-center justify-center touch-none cursor-grab active:cursor-grabbing focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary',\n dragHandleBar: 'rounded-pill'\n },\n variants: {\n appearance: {\n default: {\n base: 'bg-surface-drawer text-on-surface-drawer',\n body: 'bg-surface-drawer px-8 py-6',\n header: 'bg-black text-white px-8 py-6',\n footer:\n 'bg-surface-app text-on-surface-app border-t border-neutral-muted px-8 py-6',\n // The close button's own `transparent` variant hovers to\n // `surface-overlay-subtle` (black at 3% opacity), which is invisible\n // against this band's `bg-black` (itself black in both schemes, by\n // design). A fixed white tint reads against black in both light and\n // dark, matching the `text-white` / `text-white/70` treatment already\n // used here -- unlike `surface-lift-*`, which is white in light mode\n // but black in dark mode and would vanish on this band in dark.\n closeButton: 'text-white hover:bg-white/10',\n headerCloseButton: 'text-white hover:bg-white/10',\n icon: 'text-white',\n title: 'text-header-md text-white',\n description: 'text-body-sm text-white/80',\n // The handle can sit over the black header band (bottom placement)\n // or the surface-app footer (top placement) -- white in light mode,\n // black in dark mode. `bg-neutral` (gray-500 light / gray-400 dark)\n // is the one level that reads against both, plus the surface-drawer\n // body a side-placement handle runs down. See the \"compound variant\n // vs. single semantic level\" note on the `ghost` bar below -- same\n // reasoning applies here.\n dragHandleBar: 'bg-neutral'\n },\n ghost: {\n base: 'bg-surface-modal text-on-surface-modal',\n body: 'px-8 py-6',\n // Same grid layout as `default` (left-aligned, icon column) but\n // ghost's own colours -- no `bg-black`/`text-white` here, this stays\n // on `surface-modal`.\n header: 'font-header px-8 py-6',\n footer: `${obscurer} border-t border-surface-overlay-mild bg-surface-modal px-8 py-6`,\n title: 'text-header-lg',\n description: 'text-sm text-neutral',\n // `bg-neutral-soft` (gray-200 light / gray-700 dark) reads too faint\n // against `surface-modal` (white light / gray-950 dark) -- verified\n // in the browser. `bg-neutral` (gray-500 / gray-400) gives clear\n // contrast against surface-modal in both placements/schemes, and\n // matches the level used for the `default` appearance above, which\n // a matrix of appearance x placement compound variants would not\n // buy us anything over -- every surface the handle can land on\n // (black header, surface-app, surface-drawer, surface-modal)\n // contrasts against this one level.\n dragHandleBar: 'bg-neutral'\n }\n },\n // The close button is absolutely positioned, so it cannot reserve its own\n // space -- the header pads a lane for it instead. That lane is only worth\n // paying for when the button is actually rendered; with\n // `@allowCloseButton={{false}}` it would be dead whitespace.\n hasCloseButton: {\n true: { header: 'pr-24' }\n },\n size: {\n xs: '',\n sm: '',\n md: '',\n lg: '',\n xl: '',\n full: ''\n },\n placement: {\n top: 'top-2 right-2 left-2 h-full',\n bottom: 'bottom-2 right-2 left-2 h-full',\n left: 'top-2 bottom-2 left-2 w-full',\n right: 'top-2 bottom-2 right-2 w-full'\n }\n },\n compoundVariants: [\n // vertical\n {\n placement: ['top', 'bottom'],\n size: 'xs',\n class: 'drawer--vertical-xs'\n },\n {\n placement: ['top', 'bottom'],\n size: 'sm',\n class: 'drawer--vertical-sm'\n },\n {\n placement: ['top', 'bottom'],\n size: 'md',\n class: 'drawer--vertical-md'\n },\n {\n placement: ['top', 'bottom'],\n size: 'lg',\n class: 'drawer--vertical-lg'\n },\n {\n placement: ['top', 'bottom'],\n size: 'xl',\n class: 'drawer--vertical-xl'\n },\n {\n placement: ['top', 'bottom'],\n size: 'full',\n class: 'drawer--vertical-full'\n },\n\n // horizontal\n {\n placement: ['right', 'left'],\n size: 'xs',\n class: 'drawer--horizontal-xs'\n },\n {\n placement: ['right', 'left'],\n size: 'sm',\n class: 'drawer--horizontal-sm'\n },\n {\n placement: ['right', 'left'],\n size: 'md',\n class: 'drawer--horizontal-md'\n },\n {\n placement: ['right', 'left'],\n size: 'lg',\n class: 'drawer--horizontal-lg'\n },\n {\n placement: ['right', 'left'],\n size: 'xl',\n class: 'drawer--horizontal-xl'\n },\n {\n placement: ['right', 'left'],\n size: 'full',\n class: 'drawer--horizontal-full'\n },\n\n // Drag handle placement: the bar sits on the edge facing the viewport\n // centre, so the user grabs the side they would pull from.\n {\n placement: 'bottom',\n class: {\n dragHandle: 'top-0 left-0 right-0 h-6',\n dragHandleBar: 'h-1 w-12'\n }\n },\n {\n placement: 'top',\n class: {\n dragHandle: 'bottom-0 left-0 right-0 h-6',\n dragHandleBar: 'h-1 w-12'\n }\n },\n {\n placement: 'right',\n class: {\n dragHandle: 'left-0 top-0 bottom-0 w-6',\n dragHandleBar: 'w-1 h-12'\n }\n },\n {\n placement: 'left',\n class: {\n dragHandle: 'right-0 top-0 bottom-0 w-6',\n dragHandleBar: 'w-1 h-12'\n }\n }\n ]\n});\n\n// One policy, spelled once: reduced motion drops the travel and keeps the\n// fade. `addTransitions` derives `-leave-to` from `enter` and `-enter-to` from\n// `leave`, so a state block covers two of the four generated classes.\n//\n// A slide is *only* travel, so it has no fade to keep -- `slideHidden` and\n// `slideShown` supply one rather than leaving the drawer to appear with no\n// transition at all. The `-active` blocks stay written per transition, because\n// each has to override its own timing in its own spelling.\nconst reducedMotion = {\n dropTransform: {\n '@media (prefers-reduced-motion: reduce)': {\n transform: 'none'\n }\n },\n slideHidden: {\n '@media (prefers-reduced-motion: reduce)': {\n transform: 'none',\n opacity: '0'\n }\n },\n slideShown: {\n '@media (prefers-reduced-motion: reduce)': {\n opacity: '1'\n }\n }\n};\n\nconst slideTransition = {\n enterActive: {\n transition: 'transform 0.2s cubic-bezier(0.37, 0, 0.63, 1)',\n '@media (prefers-reduced-motion: reduce)': {\n transition: 'opacity 0.2s linear'\n }\n },\n\n leaveActive: {\n transition: 'transform 0.2s cubic-bezier(0.37, 0, 0.63, 1)',\n '@media (prefers-reduced-motion: reduce)': {\n transition: 'opacity 0.2s linear'\n }\n }\n};\n\n/**\n * The arrow shared by `Popover.Content` and `Tooltip`.\n *\n * A rotated square rather than a border triangle, so it can carry the\n * content's own border. `bg-inherit` is the point: the arrow takes whatever\n * background the content has, so intents and custom classes never have to be\n * restated here. Its offset along the content's edge comes from the\n * floating-ui `arrow` middleware and is written as inline `left`/`top`; the\n * static side is pinned by the component from the resolved placement.\n */\nconst overlayArrow = tv({\n base: 'absolute w-2 h-2 rotate-45 bg-inherit border border-neutral-subtle pointer-events-none'\n});\n\nconst overlayTransitions = {\n /**\n * Deliberately has no `prefers-reduced-motion` branch: a cross-fade is not\n * motion. Reduced motion asks for movement to be removed, not for state\n * changes to become instant, so the other transitions below drop their\n * travel and keep exactly this fade.\n */\n fade: {\n enter: {\n opacity: '0'\n },\n enterActive: {\n transition: 'opacity 0.2s linear'\n },\n leave: {\n opacity: '1'\n },\n leaveActive: {\n transition: 'opacity 0.2s linear'\n }\n },\n zoom: {\n enter: {\n opacity: '0',\n transform: 'scale(0.8)',\n ...reducedMotion.dropTransform\n },\n enterActive: {\n transition: 'all 0.2s ease-in-out',\n '@media (prefers-reduced-motion: reduce)': {\n transition: 'opacity 0.2s ease-in-out'\n }\n },\n leave: {\n opacity: '1',\n transform: 'scale(1)'\n },\n leaveActive: {\n transition: 'all 0.2s ease-in-out',\n '@media (prefers-reduced-motion: reduce)': {\n transition: 'opacity 0.2s ease-in-out'\n }\n }\n },\n slideFromLeft: {\n enter: {\n transform: 'translateX(-100%)',\n ...reducedMotion.slideHidden\n },\n leave: {\n transform: 'translateX(0%)',\n ...reducedMotion.slideShown\n },\n ...slideTransition\n },\n slideFromRight: {\n enter: {\n transform: 'translateX(100%)',\n ...reducedMotion.slideHidden\n },\n leave: {\n transform: 'translateX(0%)',\n ...reducedMotion.slideShown\n },\n ...slideTransition\n },\n\n slideFromTop: {\n enter: {\n transform: 'translateY(-100%)',\n ...reducedMotion.slideHidden\n },\n leave: {\n transform: 'translateY(0%)',\n ...reducedMotion.slideShown\n },\n ...slideTransition\n },\n slideFromBottom: {\n enter: {\n transform: 'translateY(100%)',\n ...reducedMotion.slideHidden\n },\n leave: {\n transform: 'translateY(0%)',\n ...reducedMotion.slideShown\n },\n ...slideTransition\n },\n /**\n * Command palette: a short scale-and-rise. Deliberately faster than `scale`\n * -- a palette is opened mid-task and re-opened constantly, so the animation\n * has to read as instant rather than as a reveal.\n */\n command: {\n enter: {\n opacity: '0',\n transform: 'scale(0.96) translateY(4px)',\n // Reduced motion keeps the fade but drops the movement, rather than\n // removing the transition altogether -- the palette should still read as\n // appearing, just without travel.\n '@media (prefers-reduced-motion: reduce)': {\n transform: 'none'\n }\n },\n enterActive: {\n transitionProperty: 'transform, opacity',\n transitionDuration: '150ms',\n transitionTimingFunction: 'cubic-bezier(0.16, 1, 0.3, 1)',\n '@media (prefers-reduced-motion: reduce)': {\n transitionProperty: 'opacity'\n }\n },\n enterTo: {\n opacity: '1',\n transform: 'scale(1) translateY(0)'\n },\n leave: {\n opacity: '1',\n transform: 'scale(1) translateY(0)'\n },\n leaveActive: {\n transitionProperty: 'transform, opacity',\n transitionDuration: '100ms',\n transitionTimingFunction: 'cubic-bezier(0.4, 0, 1, 1)',\n '@media (prefers-reduced-motion: reduce)': {\n transitionProperty: 'opacity'\n }\n },\n leaveTo: {\n opacity: '0',\n transform: 'scale(0.96) translateY(4px)',\n '@media (prefers-reduced-motion: reduce)': {\n transform: 'none'\n }\n }\n },\n /**\n * Tooltip: a short scale-and-approach. Deliberately faster than `scale` --\n * a tooltip fires on every mouse pass, so a 200ms reveal reads as lag. The\n * translate is toward the anchor and the origin is set from the resolved\n * placement (see the `tooltip` component's `data-placement` classes), so it\n * grows out of the trigger rather than appearing in space.\n */\n tooltip: {\n enter: {\n opacity: '0',\n transform: 'scale(0.95) translateY(3px)',\n // Reduced motion keeps the fade and drops the travel, rather than\n // removing the transition -- the tooltip should still read as appearing.\n '@media (prefers-reduced-motion: reduce)': {\n transform: 'none'\n }\n },\n enterActive: {\n transitionProperty: 'transform, opacity',\n transitionDuration: '120ms',\n transitionTimingFunction: 'cubic-bezier(0.16, 1, 0.3, 1)',\n '@media (prefers-reduced-motion: reduce)': {\n transitionProperty: 'opacity'\n }\n },\n enterTo: {\n opacity: '1',\n transform: 'scale(1) translateY(0)'\n },\n leave: {\n opacity: '1',\n transform: 'scale(1) translateY(0)'\n },\n leaveActive: {\n transitionProperty: 'transform, opacity',\n transitionDuration: '80ms',\n transitionTimingFunction: 'cubic-bezier(0.4, 0, 1, 1)',\n '@media (prefers-reduced-motion: reduce)': {\n transitionProperty: 'opacity'\n }\n },\n leaveTo: {\n opacity: '0',\n transform: 'scale(0.95) translateY(3px)',\n '@media (prefers-reduced-motion: reduce)': {\n transform: 'none'\n }\n }\n },\n scale: {\n enter: {\n opacity: '0',\n transform: 'scale(0.95)',\n ...reducedMotion.dropTransform\n },\n enterActive: {\n transitionProperty: 'transform, opacity',\n transitionDuration: '200ms',\n transitionTimingFunction: 'cubic-bezier(0, 0, 0.2, 1)',\n '@media (prefers-reduced-motion: reduce)': {\n transitionProperty: 'opacity'\n }\n },\n enterTo: {\n opacity: '1',\n transform: 'scale(1)'\n },\n leave: {\n opacity: '1',\n transform: 'scale(1)'\n },\n leaveActive: {\n transitionProperty: 'transform, opacity',\n transitionDuration: '100ms',\n transitionTimingFunction: 'cubic-bezier(0.4, 0, 1, 1)',\n '@media (prefers-reduced-motion: reduce)': {\n transitionProperty: 'opacity'\n }\n },\n leaveTo: {\n opacity: '0',\n transform: 'scale(0.95)',\n ...reducedMotion.dropTransform\n }\n }\n};\n\nexport type OverlayVariants = VariantProps<typeof overlay>;\nexport type OverlaySlots = keyof ReturnType<typeof overlay>;\nexport type DrawerVariants = VariantProps<typeof drawer>;\nexport type DrawerSlots = keyof ReturnType<typeof drawer>;\nexport type ModalVariants = VariantProps<typeof modal>;\nexport type ModalSlots = keyof ReturnType<typeof modal>;\nexport type BackdropVariants = VariantProps<typeof backdrop>;\nexport type BackdropSlots = keyof ReturnType<typeof backdrop>;\nexport type OverlayArrowVariants = VariantProps<typeof overlayArrow>;\n\nexport { overlay, drawer, modal, overlayTransitions, backdrop, overlayArrow };\n"],"names":["flat","arr","target","forEach","el","Array","isArray","push","flatArray","flattened","voidEmpty","value","undefined","clsx","classes","filter","Boolean","join","COMMON_UNITS","ELEVATION_LEVELS","twMergeConfig","extend","classGroups","border","rounded","shadow","opacity","conflictingClassGroups","twMergeBase","extendTailwindMerge","twMerge","defaultClass","overwrites","tv","createTV","obscurer","overlay","base","variants","enableFlexContent","true","inPlace","backdrop","type","none","transparent","blur","faded","modal","slots","closeButton","header","body","footer","size","xs","sm","md","lg","xl","full","isCentered","drawer","headerCloseButton","headerContent","headerActions","icon","title","description","dragHandle","dragHandleBar","appearance","default","ghost","hasCloseButton","placement","top","bottom","left","right","compoundVariants","class","reducedMotion","dropTransform","transform","slideHidden","slideShown","slideTransition","enterActive","transition","leaveActive","overlayArrow","overlayTransitions","fade","enter","leave","zoom","slideFromLeft","slideFromRight","slideFromTop","slideFromBottom","command","transitionProperty","transitionDuration","transitionTimingFunction","enterTo","leaveTo","tooltip","scale"],"mappings":";;;AAKA,SAASA,IAAIA,CAACC,GAAiB,EAAEC,MAAoB,EAAQ;AAC3DD,EAAAA,GAAG,CAACE,OAAO,CAAEC,EAAE,IAAK;AAClB,IAAA,IAAIC,KAAK,CAACC,OAAO,CAACF,EAAE,CAAC,EAAE;AACrBJ,MAAAA,IAAI,CA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OAAO,EAAE,GAAG;AACZ0D,MAAAA,SAAS,EAAE,6BAA6B;AACxC,MAAA,yCAAyC,EAAE;AACzCA,QAAAA,SAAS,EAAE;AACb;AACF;GACD;AACDwB,EAAAA,KAAK,EAAE;AACLd,IAAAA,KAAK,EAAE;AACLpE,MAAAA,OAAO,EAAE,GAAG;AACZ0D,MAAAA,SAAS,EAAE,aAAa;AACxB,MAAA,GAAGF,aAAa,CAACC;KAClB;AACDK,IAAAA,WAAW,EAAE;AACXc,MAAAA,kBAAkB,EAAE,oBAAoB;AACxCC,MAAAA,kBAAkB,EAAE,OAAO;AAC3BC,MAAAA,wBAAwB,EAAE,4BAA4B;AACtD,MAAA,yCAAyC,EAAE;AACzCF,QAAAA,kBAAkB,EAAE;AACtB;KACD;AACDG,IAAAA,OAAO,EAAE;AACP/E,MAAAA,OAAO,EAAE,GAAG;AACZ0D,MAAAA,SAAS,EAAE;KACZ;AACDW,IAAAA,KAAK,EAAE;AACLrE,MAAAA,OAAO,EAAE,GAAG;AACZ0D,MAAAA,SAAS,EAAE;KACZ;AACDM,IAAAA,WAAW,EAAE;AACXY,MAAAA,kBAAkB,EAAE,oBAAoB;AACxCC,MAAAA,kBAAkB,EAAE,OAAO;AAC3BC,MAAAA,wBAAwB,EAAE,4BAA4B;AACtD,MAAA,yCAAyC,EAAE;AACzCF,QAAAA,kBAAkB,EAAE;AACtB;KACD;AACDI,IAAAA,OAAO,EAAE;AACPhF,MAAAA,OAAO,EAAE,GAAG;AACZ0D,MAAAA,SAAS,EAAE,aAAa;AACxB,MAAA,GAAGF,aAAa,CAACC;AACnB;AACF;AACF;;;;"}
|
package/dist/plugin.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import plugin from 'tailwindcss/plugin';
|
|
2
|
-
import { c as overlayTransitions } from './overlays-
|
|
2
|
+
import { c as overlayTransitions } from './overlays-DIZlPzFH.js';
|
|
3
3
|
import svgToDataUri from 'mini-svg-data-uri';
|
|
4
4
|
import { flatten } from 'flat';
|
|
5
5
|
import kebabCase from 'lodash.kebabcase';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontile/theme",
|
|
3
|
-
"version": "0.18.0-alpha.
|
|
3
|
+
"version": "0.18.0-alpha.20",
|
|
4
4
|
"description": "Component Library for Ember Octane apps: Theme",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon",
|
|
@@ -122,5 +122,5 @@
|
|
|
122
122
|
"./public/fonts/source-code-pro-variable.woff2": "/@frontile/theme/fonts/source-code-pro-variable.woff2"
|
|
123
123
|
}
|
|
124
124
|
},
|
|
125
|
-
"gitHead": "
|
|
125
|
+
"gitHead": "4ad0d3245ae37878e92ab6452d8c4ebe07a5a403"
|
|
126
126
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"overlays-BjN319OW.js","sources":["../src/tw.ts","../src/components/overlays.ts"],"sourcesContent":["import { extendTailwindMerge } from 'tailwind-merge';\nimport { createTV } from 'tailwind-variants';\nimport type { ClassValue } from 'tailwind-variants';\nexport type { VariantProps } from 'tailwind-variants';\n\nfunction flat(arr: ClassValue[], target: ClassValue[]): void {\n arr.forEach((el) => {\n if (Array.isArray(el)) {\n flat(el, target);\n } else {\n target.push(el);\n }\n });\n}\nfunction flatArray(arr: ClassValue[]): ClassValue[] {\n const flattened: ClassValue[] = [];\n flat(arr, flattened);\n return flattened;\n}\nconst voidEmpty = <T>(value: T): T | undefined => (value ? value : undefined);\n\nconst clsx = (...classes: ClassValue[]): string | undefined => {\n return voidEmpty(flatArray(classes).filter(Boolean).join(' '));\n};\n\n// Common size units used across all design tokens (icons, typography, etc.)\nconst COMMON_UNITS = [\n 'pico',\n 'nano',\n 'micro',\n '5xs',\n '4xs',\n '3xs',\n '2xs',\n 'xs',\n 'sm',\n 'md',\n 'lg',\n 'xl',\n '2xl',\n '3xl',\n 'kilo',\n 'mega'\n] as const;\n\nconst ELEVATION_LEVELS = ['0', '1', '2', '3', '4', '5'];\n\nconst twMergeConfig = {\n extend: {\n classGroups: {\n // Icon sizes\n 'icon-size': [{ 'size-icon': COMMON_UNITS }],\n\n // Border widths (directional variants handled automatically)\n 'border-w': [{ border: ['thin', 'heavy', 'aggressive'] }],\n\n // Border radius (extend existing rounded utilities)\n rounded: [{ rounded: ['default', 'pill'] }],\n\n // Elevation shadows\n shadow: [{ 'shadow-elevation': ELEVATION_LEVELS }],\n\n // Opacity\n opacity: [{ opacity: ['hover', 'disabled'] }],\n\n // Typography composite text styles (extend font-size class group)\n // These set font-size + other properties, so they should conflict with text-* utilities\n 'font-size': [\n { 'text-marquee': [...COMMON_UNITS] },\n { 'text-header': [...COMMON_UNITS] },\n { 'text-body': [...COMMON_UNITS] },\n // `strong` was missing here, so `text-strong-*` fell through to the\n // text-color group and tailwind-merge dropped it whenever a component\n // also set a text color (e.g. Button's `text-on-primary`) — silently\n // losing the label's size, weight and tracking.\n { 'text-strong': [...COMMON_UNITS] },\n { 'text-code': [...COMMON_UNITS] },\n { 'text-caption': [...COMMON_UNITS] },\n { 'text-label': [...COMMON_UNITS] }\n ]\n },\n conflictingClassGroups: {\n 'icon-size': ['w', 'h', 'size']\n }\n }\n} as const;\n\nconst twMergeBase = extendTailwindMerge<'icon-size'>(twMergeConfig);\n\nexport function twMerge(defaultClass: ClassValue, overwrites: ClassValue) {\n if (overwrites) {\n return twMergeBase(clsx(defaultClass, overwrites));\n }\n return clsx(defaultClass);\n}\n\nexport const tv = createTV({\n twMerge: true,\n twMergeConfig\n});\n","import { tv, type VariantProps } from '../tw';\n\nconst obscurer = `before:bg-linear-to-b before:to-surface-modal before:from-surface-modal/75 before:absolute before:left-0 before:w-full before:h-4 before:-top-4 before:content-['_']`;\n\nconst overlay = tv({\n base: 'will-change-transform overflow-auto',\n variants: {\n enableFlexContent: {\n true: 'flex items-center fixed inset-0 flex-col'\n },\n inPlace: {\n true: 'absolute'\n }\n }\n});\n\nconst backdrop = tv({\n base: 'fixed inset-0 select-none',\n variants: {\n type: {\n none: '',\n transparent: '',\n // The scrim is `overlay-strong` in light and `lift-strong` in dark: the\n // two families are mirrored, so the black 75% step swaps sides. Pairing\n // them keeps the backdrop a dark scrim in both schemes.\n blur: 'bg-surface-overlay-strong dark:bg-surface-lift-strong backdrop-blur-sm',\n faded: 'bg-surface-overlay-strong dark:bg-surface-lift-strong'\n },\n inPlace: {\n true: 'absolute'\n }\n }\n});\n\nconst modal = tv({\n slots: {\n base: 'flex flex-col shrink-0 relative text-on-surface-modal bg-surface-modal border border-surface-overlay-mild rounded-2xl my-24 w-full outline-hidden overflow-clip',\n closeButton: 'absolute top-3 right-3',\n header: 'font-header text-header-lg px-6 pt-8 pb-2',\n body: 'px-6 py-2 grow overflow-y-auto',\n footer: 'flex justify-end items-center px-6 pt-6 pb-8 gap-4'\n },\n variants: {\n size: {\n xs: 'modal--xs',\n sm: 'modal--sm',\n md: 'modal--md',\n lg: 'modal--lg',\n xl: 'modal--xl',\n full: 'modal--full'\n },\n isCentered: {\n true: 'my-auto'\n }\n }\n});\n\nconst drawer = tv({\n slots: {\n base: 'flex flex-col absolute rounded-2xl outline-hidden overflow-clip border border-neutral-muted shadow-elevation-5',\n closeButton: 'absolute top-3 right-3',\n // The close button rendered *inside* the header (see `drawer.gts`) is\n // absolutely positioned rather than placed as a grid item. Making it a\n // grid item was tried and reverted: as a spanning item it forces the\n // header's row track count up, so a header with only a title grew a\n // phantom second row and the band became far taller than its content.\n // Out of flow, it centres against whatever height the header's own\n // content produces -- title-only or title + description alike -- and\n // contributes nothing to that height. The header reserves space for it\n // with right padding instead, since an out-of-flow element cannot push\n // the text out of its own way.\n //\n // `right-5` rather than `right-8` is optical alignment, not a mistake.\n // The button's hit area is its icon plus 12px of padding on each side --\n // padding that exists for the hover and focus rings, and that is\n // invisible at rest. Pinning the button's *box* to the header's 32px\n // padding would leave the visible glyph sitting 12px further in than the\n // body text below it. Offsetting by that padding (32 - 12 = 20px) lines\n // the glyph's edge up with the content instead of the box's.\n headerCloseButton: 'absolute top-1/2 right-5 -translate-y-1/2 shrink-0',\n // The header is a flex row of two regions, not a grid: the grid lives one\n // level down in `headerContent`. Consumer actions have to be able to sit\n // beside the close button and be centred against a header that may be one\n // or two text rows tall, and a grid item that spans both rows forces the\n // row track count up -- which is what previously made a title-only header\n // grow a phantom second row. As a flex sibling there are no row tracks to\n // inflate.\n header: 'relative flex items-center gap-4',\n // `min-w-0` lets a long title shrink (and truncate, if the consumer asks\n // for it) instead of shoving the actions past the edge -- a flex item's\n // default `min-width: auto` refuses to shrink below its content.\n headerContent: 'grid grid-cols-[auto_1fr] items-center grow min-w-0',\n // Actions are in flow, deliberately, unlike the close button. The close\n // button is chrome this component owns and should not dictate the band's\n // height; whatever a consumer puts here is content, so a taller control\n // legitimately makes the band taller.\n headerActions: 'flex items-center gap-2 shrink-0',\n // `touch-pan-y` (not `touch-none`) tells the browser it may still handle\n // vertical panning natively -- matching `overflow-y-auto` above -- while\n // continuing to deliver pointer events to `dragToDismiss` for the first\n // few pixels of a touch drag. That's what lets the modifier decide\n // (before the browser commits to a native scroll) whether a body press\n // is a scroll or a dismiss drag; `touch-none` would suppress the native\n // scroll it's supposed to fall back to, and the default `touch-auto`\n // would let the browser claim the gesture for panning *and* pinch-zoom,\n // which fires `pointercancel` more eagerly than plain vertical panning.\n body: 'grow overflow-y-auto touch-pan-y',\n footer: 'flex justify-end items-center relative gap-4',\n // Sized from the design: a 40px icon box with a 16px gap to the text.\n // `self-start` matches the design's `align-items: flex-start` -- the icon\n // tops out with the title rather than centring across both text rows.\n //\n // The gap between the icon column and the text column lives here rather\n // than as `gap-x-*` on the header grid. A column gap applies between the\n // two tracks whether or not the icon track has anything in it, so a\n // header with no icon still had its title indented past the body text\n // below it. As a margin it only exists when an icon does.\n icon: 'row-span-2 col-start-1 self-start mr-4 size-10 shrink-0 flex items-center justify-center',\n title: 'col-start-2 font-header',\n description: 'col-start-2',\n dragHandle:\n 'absolute z-10 flex items-center justify-center touch-none cursor-grab active:cursor-grabbing focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary',\n dragHandleBar: 'rounded-pill'\n },\n variants: {\n appearance: {\n default: {\n base: 'bg-surface-drawer text-on-surface-drawer',\n body: 'bg-surface-drawer px-8 py-6',\n header: 'bg-black text-white px-8 py-6',\n footer:\n 'bg-surface-app text-on-surface-app border-t border-neutral-muted px-8 py-6',\n // The close button's own `transparent` variant hovers to\n // `surface-overlay-subtle` (black at 3% opacity), which is invisible\n // against this band's `bg-black` (itself black in both schemes, by\n // design). A fixed white tint reads against black in both light and\n // dark, matching the `text-white` / `text-white/70` treatment already\n // used here -- unlike `surface-lift-*`, which is white in light mode\n // but black in dark mode and would vanish on this band in dark.\n closeButton: 'text-white hover:bg-white/10',\n headerCloseButton: 'text-white hover:bg-white/10',\n icon: 'text-white',\n title: 'text-header-md text-white',\n description: 'text-body-sm text-white/80',\n // The handle can sit over the black header band (bottom placement)\n // or the surface-app footer (top placement) -- white in light mode,\n // black in dark mode. `bg-neutral` (gray-500 light / gray-400 dark)\n // is the one level that reads against both, plus the surface-drawer\n // body a side-placement handle runs down. See the \"compound variant\n // vs. single semantic level\" note on the `ghost` bar below -- same\n // reasoning applies here.\n dragHandleBar: 'bg-neutral'\n },\n ghost: {\n base: 'bg-surface-modal text-on-surface-modal',\n body: 'px-8 py-6',\n // Same grid layout as `default` (left-aligned, icon column) but\n // ghost's own colours -- no `bg-black`/`text-white` here, this stays\n // on `surface-modal`.\n header: 'font-header px-8 py-6',\n footer: `${obscurer} border-t border-surface-overlay-mild bg-surface-modal px-8 py-6`,\n title: 'text-header-lg',\n description: 'text-sm text-neutral',\n // `bg-neutral-soft` (gray-200 light / gray-700 dark) reads too faint\n // against `surface-modal` (white light / gray-950 dark) -- verified\n // in the browser. `bg-neutral` (gray-500 / gray-400) gives clear\n // contrast against surface-modal in both placements/schemes, and\n // matches the level used for the `default` appearance above, which\n // a matrix of appearance x placement compound variants would not\n // buy us anything over -- every surface the handle can land on\n // (black header, surface-app, surface-drawer, surface-modal)\n // contrasts against this one level.\n dragHandleBar: 'bg-neutral'\n }\n },\n // The close button is absolutely positioned, so it cannot reserve its own\n // space -- the header pads a lane for it instead. That lane is only worth\n // paying for when the button is actually rendered; with\n // `@allowCloseButton={{false}}` it would be dead whitespace.\n hasCloseButton: {\n true: { header: 'pr-24' }\n },\n size: {\n xs: '',\n sm: '',\n md: '',\n lg: '',\n xl: '',\n full: ''\n },\n placement: {\n top: 'top-2 right-2 left-2 h-full',\n bottom: 'bottom-2 right-2 left-2 h-full',\n left: 'top-2 bottom-2 left-2 w-full',\n right: 'top-2 bottom-2 right-2 w-full'\n }\n },\n compoundVariants: [\n // vertical\n {\n placement: ['top', 'bottom'],\n size: 'xs',\n class: 'drawer--vertical-xs'\n },\n {\n placement: ['top', 'bottom'],\n size: 'sm',\n class: 'drawer--vertical-sm'\n },\n {\n placement: ['top', 'bottom'],\n size: 'md',\n class: 'drawer--vertical-md'\n },\n {\n placement: ['top', 'bottom'],\n size: 'lg',\n class: 'drawer--vertical-lg'\n },\n {\n placement: ['top', 'bottom'],\n size: 'xl',\n class: 'drawer--vertical-xl'\n },\n {\n placement: ['top', 'bottom'],\n size: 'full',\n class: 'drawer--vertical-full'\n },\n\n // horizontal\n {\n placement: ['right', 'left'],\n size: 'xs',\n class: 'drawer--horizontal-xs'\n },\n {\n placement: ['right', 'left'],\n size: 'sm',\n class: 'drawer--horizontal-sm'\n },\n {\n placement: ['right', 'left'],\n size: 'md',\n class: 'drawer--horizontal-md'\n },\n {\n placement: ['right', 'left'],\n size: 'lg',\n class: 'drawer--horizontal-lg'\n },\n {\n placement: ['right', 'left'],\n size: 'xl',\n class: 'drawer--horizontal-xl'\n },\n {\n placement: ['right', 'left'],\n size: 'full',\n class: 'drawer--horizontal-full'\n },\n\n // Drag handle placement: the bar sits on the edge facing the viewport\n // centre, so the user grabs the side they would pull from.\n {\n placement: 'bottom',\n class: {\n dragHandle: 'top-0 left-0 right-0 h-6',\n dragHandleBar: 'h-1 w-12'\n }\n },\n {\n placement: 'top',\n class: {\n dragHandle: 'bottom-0 left-0 right-0 h-6',\n dragHandleBar: 'h-1 w-12'\n }\n },\n {\n placement: 'right',\n class: {\n dragHandle: 'left-0 top-0 bottom-0 w-6',\n dragHandleBar: 'w-1 h-12'\n }\n },\n {\n placement: 'left',\n class: {\n dragHandle: 'right-0 top-0 bottom-0 w-6',\n dragHandleBar: 'w-1 h-12'\n }\n }\n ]\n});\n\n// One policy, spelled once: reduced motion drops the travel and keeps the\n// fade. `addTransitions` derives `-leave-to` from `enter` and `-enter-to` from\n// `leave`, so a state block covers two of the four generated classes.\n//\n// A slide is *only* travel, so it has no fade to keep -- `slideHidden` and\n// `slideShown` supply one rather than leaving the drawer to appear with no\n// transition at all. The `-active` blocks stay written per transition, because\n// each has to override its own timing in its own spelling.\nconst reducedMotion = {\n dropTransform: {\n '@media (prefers-reduced-motion: reduce)': {\n transform: 'none'\n }\n },\n slideHidden: {\n '@media (prefers-reduced-motion: reduce)': {\n transform: 'none',\n opacity: '0'\n }\n },\n slideShown: {\n '@media (prefers-reduced-motion: reduce)': {\n opacity: '1'\n }\n }\n};\n\nconst slideTransition = {\n enterActive: {\n transition: 'transform 0.2s cubic-bezier(0.37, 0, 0.63, 1)',\n '@media (prefers-reduced-motion: reduce)': {\n transition: 'opacity 0.2s linear'\n }\n },\n\n leaveActive: {\n transition: 'transform 0.2s cubic-bezier(0.37, 0, 0.63, 1)',\n '@media (prefers-reduced-motion: reduce)': {\n transition: 'opacity 0.2s linear'\n }\n }\n};\n\n/**\n * The arrow shared by `Popover.Content` and `Tooltip`.\n *\n * A rotated square rather than a border triangle, so it can carry the\n * content's own border. `bg-inherit` is the point: the arrow takes whatever\n * background the content has, so intents and custom classes never have to be\n * restated here. Its offset along the content's edge comes from the\n * floating-ui `arrow` middleware and is written as inline `left`/`top`; the\n * static side is pinned by the component from the resolved placement.\n */\nconst overlayArrow = tv({\n base: 'absolute w-2 h-2 rotate-45 bg-inherit border border-neutral-subtle pointer-events-none'\n});\n\nconst overlayTransitions = {\n /**\n * Deliberately has no `prefers-reduced-motion` branch: a cross-fade is not\n * motion. Reduced motion asks for movement to be removed, not for state\n * changes to become instant, so the other transitions below drop their\n * travel and keep exactly this fade.\n */\n fade: {\n enter: {\n opacity: '0'\n },\n enterActive: {\n transition: 'opacity 0.2s linear'\n },\n leave: {\n opacity: '1'\n },\n leaveActive: {\n transition: 'opacity 0.2s linear'\n }\n },\n zoom: {\n enter: {\n opacity: '0',\n transform: 'scale(0.8)',\n ...reducedMotion.dropTransform\n },\n enterActive: {\n transition: 'all 0.2s ease-in-out',\n '@media (prefers-reduced-motion: reduce)': {\n transition: 'opacity 0.2s ease-in-out'\n }\n },\n leave: {\n opacity: '1',\n transform: 'scale(1)'\n },\n leaveActive: {\n transition: 'all 0.2s ease-in-out',\n '@media (prefers-reduced-motion: reduce)': {\n transition: 'opacity 0.2s ease-in-out'\n }\n }\n },\n slideFromLeft: {\n enter: {\n transform: 'translateX(-100%)',\n ...reducedMotion.slideHidden\n },\n leave: {\n transform: 'translateX(0%)',\n ...reducedMotion.slideShown\n },\n ...slideTransition\n },\n slideFromRight: {\n enter: {\n transform: 'translateX(100%)',\n ...reducedMotion.slideHidden\n },\n leave: {\n transform: 'translateX(0%)',\n ...reducedMotion.slideShown\n },\n ...slideTransition\n },\n\n slideFromTop: {\n enter: {\n transform: 'translateY(-100%)',\n ...reducedMotion.slideHidden\n },\n leave: {\n transform: 'translateY(0%)',\n ...reducedMotion.slideShown\n },\n ...slideTransition\n },\n slideFromBottom: {\n enter: {\n transform: 'translateY(100%)',\n ...reducedMotion.slideHidden\n },\n leave: {\n transform: 'translateY(0%)',\n ...reducedMotion.slideShown\n },\n ...slideTransition\n },\n /**\n * Command palette: a short scale-and-rise. Deliberately faster than `scale`\n * -- a palette is opened mid-task and re-opened constantly, so the animation\n * has to read as instant rather than as a reveal.\n */\n command: {\n enter: {\n opacity: '0',\n transform: 'scale(0.96) translateY(4px)',\n // Reduced motion keeps the fade but drops the movement, rather than\n // removing the transition altogether -- the palette should still read as\n // appearing, just without travel.\n '@media (prefers-reduced-motion: reduce)': {\n transform: 'none'\n }\n },\n enterActive: {\n transitionProperty: 'transform, opacity',\n transitionDuration: '150ms',\n transitionTimingFunction: 'cubic-bezier(0.16, 1, 0.3, 1)',\n '@media (prefers-reduced-motion: reduce)': {\n transitionProperty: 'opacity'\n }\n },\n enterTo: {\n opacity: '1',\n transform: 'scale(1) translateY(0)'\n },\n leave: {\n opacity: '1',\n transform: 'scale(1) translateY(0)'\n },\n leaveActive: {\n transitionProperty: 'transform, opacity',\n transitionDuration: '100ms',\n transitionTimingFunction: 'cubic-bezier(0.4, 0, 1, 1)',\n '@media (prefers-reduced-motion: reduce)': {\n transitionProperty: 'opacity'\n }\n },\n leaveTo: {\n opacity: '0',\n transform: 'scale(0.96) translateY(4px)',\n '@media (prefers-reduced-motion: reduce)': {\n transform: 'none'\n }\n }\n },\n /**\n * Tooltip: a short scale-and-approach. Deliberately faster than `scale` --\n * a tooltip fires on every mouse pass, so a 200ms reveal reads as lag. The\n * translate is toward the anchor and the origin is set from the resolved\n * placement (see the `tooltip` component's `data-placement` classes), so it\n * grows out of the trigger rather than appearing in space.\n */\n tooltip: {\n enter: {\n opacity: '0',\n transform: 'scale(0.95) translateY(3px)',\n // Reduced motion keeps the fade and drops the travel, rather than\n // removing the transition -- the tooltip should still read as appearing.\n '@media (prefers-reduced-motion: reduce)': {\n transform: 'none'\n }\n },\n enterActive: {\n transitionProperty: 'transform, opacity',\n transitionDuration: '120ms',\n transitionTimingFunction: 'cubic-bezier(0.16, 1, 0.3, 1)',\n '@media (prefers-reduced-motion: reduce)': {\n transitionProperty: 'opacity'\n }\n },\n enterTo: {\n opacity: '1',\n transform: 'scale(1) translateY(0)'\n },\n leave: {\n opacity: '1',\n transform: 'scale(1) translateY(0)'\n },\n leaveActive: {\n transitionProperty: 'transform, opacity',\n transitionDuration: '80ms',\n transitionTimingFunction: 'cubic-bezier(0.4, 0, 1, 1)',\n '@media (prefers-reduced-motion: reduce)': {\n transitionProperty: 'opacity'\n }\n },\n leaveTo: {\n opacity: '0',\n transform: 'scale(0.95) translateY(3px)',\n '@media (prefers-reduced-motion: reduce)': {\n transform: 'none'\n }\n }\n },\n scale: {\n enter: {\n opacity: '0',\n transform: 'scale(0.95)',\n ...reducedMotion.dropTransform\n },\n enterActive: {\n transitionProperty: 'transform, opacity',\n transitionDuration: '200ms',\n transitionTimingFunction: 'cubic-bezier(0, 0, 0.2, 1)',\n '@media (prefers-reduced-motion: reduce)': {\n transitionProperty: 'opacity'\n }\n },\n enterTo: {\n opacity: '1',\n transform: 'scale(1)'\n },\n leave: {\n opacity: '1',\n transform: 'scale(1)'\n },\n leaveActive: {\n transitionProperty: 'transform, opacity',\n transitionDuration: '100ms',\n transitionTimingFunction: 'cubic-bezier(0.4, 0, 1, 1)',\n '@media (prefers-reduced-motion: reduce)': {\n transitionProperty: 'opacity'\n }\n },\n leaveTo: {\n opacity: '0',\n transform: 'scale(0.95)',\n ...reducedMotion.dropTransform\n }\n }\n};\n\nexport type OverlayVariants = VariantProps<typeof overlay>;\nexport type OverlaySlots = keyof ReturnType<typeof overlay>;\nexport type DrawerVariants = VariantProps<typeof drawer>;\nexport type DrawerSlots = keyof ReturnType<typeof drawer>;\nexport type ModalVariants = VariantProps<typeof modal>;\nexport type ModalSlots = keyof ReturnType<typeof modal>;\nexport type BackdropVariants = VariantProps<typeof backdrop>;\nexport type BackdropSlots = keyof ReturnType<typeof backdrop>;\nexport type OverlayArrowVariants = VariantProps<typeof overlayArrow>;\n\nexport { overlay, drawer, modal, overlayTransitions, backdrop, overlayArrow };\n"],"names":["flat","arr","target","forEach","el","Array","isArray","push","flatArray","flattened","voidEmpty","value","undefined","clsx","classes","filter","Boolean","join","COMMON_UNITS","ELEVATION_LEVELS","twMergeConfig","extend","classGroups","border","rounded","shadow","opacity","conflictingClassGroups","twMergeBase","extendTailwindMerge","twMerge","defaultClass","overwrites","tv","createTV","obscurer","overlay","base","variants","enableFlexContent","true","inPlace","backdrop","type","none","transparent","blur","faded","modal","slots","closeButton","header","body","footer","size","xs","sm","md","lg","xl","full","isCentered","drawer","headerCloseButton","headerContent","headerActions","icon","title","description","dragHandle","dragHandleBar","appearance","default","ghost","hasCloseButton","placement","top","bottom","left","right","compoundVariants","class","reducedMotion","dropTransform","transform","slideHidden","slideShown","slideTransition","enterActive","transition","leaveActive","overlayArrow","overlayTransitions","fade","enter","leave","zoom","slideFromLeft","slideFromRight","slideFromTop","slideFromBottom","command","transitionProperty","transitionDuration","transitionTimingFunction","enterTo","leaveTo","tooltip","scale"],"mappings":";;;AAKA,SAASA,IAAIA,CAACC,GAAiB,EAAEC,MAAoB,EAAQ;AAC3DD,EAAAA,GAAG,CAACE,OAAO,CAAEC,EAAE,IAAK;AAClB,IAAA,IAAIC,KAAK,CAACC,OAAO,CAACF,EAAE,CAAC,EAAE;AACrBJ,MAAAA,IAAI,CAACI,EAAE,EAAEF,MAAM,CAAC;AAClB,IAAA,CAAC,MAAM;AACLA,MAAAA,MAAM,CAACK,IAAI,CAACH,EAAE,CAAC;AACjB,IAAA;AACF,EAAA,CAAC,CAAC;AACJ;AACA,SAASI,SAASA,CAACP,GAAiB,EAAgB;EAClD,MAAMQ,SAAuB,GAAG,EAAE;AAClCT,EAAAA,IAAI,CAACC,GAAG,EAAEQ,SAAS,CAAC;AACpB,EAAA,OAAOA,SAAS;AAClB;AACA,MAAMC,SAAS,GAAOC,KAAQ,IAAqBA,KAAK,GAAGA,KAAK,GAAGC,SAAU;AAE7E,MAAMC,IAAI,GAAGA,CAAC,GAAGC,OAAqB,KAAyB;AAC7D,EAAA,OAAOJ,SAAS,CAACF,SAAS,CAACM,OAAO,CAAC,CAACC,MAAM,CAACC,OAAO,CAAC,CAACC,IAAI,CAAC,GAAG,CAAC,CAAC;AAChE,CAAC;;AAED;AACA,MAAMC,YAAY,GAAG,CACnB,MAAM,EACN,MAAM,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