@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.
Files changed (80) hide show
  1. package/declarations/components/accordion.d.ts +1 -113
  2. package/declarations/components/accordion.d.ts.map +1 -1
  3. package/declarations/components/alert.d.ts +1 -105
  4. package/declarations/components/alert.d.ts.map +1 -1
  5. package/declarations/components/app-layout.d.ts +1 -321
  6. package/declarations/components/app-layout.d.ts.map +1 -1
  7. package/declarations/components/avatar.d.ts +3 -99
  8. package/declarations/components/avatar.d.ts.map +1 -1
  9. package/declarations/components/badge.d.ts +3 -109
  10. package/declarations/components/badge.d.ts.map +1 -1
  11. package/declarations/components/bottom-nav.d.ts +2 -44
  12. package/declarations/components/bottom-nav.d.ts.map +1 -1
  13. package/declarations/components/breadcrumbs.d.ts +1 -101
  14. package/declarations/components/breadcrumbs.d.ts.map +1 -1
  15. package/declarations/components/button.d.ts +69 -165
  16. package/declarations/components/button.d.ts.map +1 -1
  17. package/declarations/components/calendar.d.ts +1 -153
  18. package/declarations/components/calendar.d.ts.map +1 -1
  19. package/declarations/components/chip.d.ts +5 -145
  20. package/declarations/components/chip.d.ts.map +1 -1
  21. package/declarations/components/close-button.d.ts +1 -59
  22. package/declarations/components/close-button.d.ts.map +1 -1
  23. package/declarations/components/command.d.ts +3 -98
  24. package/declarations/components/command.d.ts.map +1 -1
  25. package/declarations/components/divider.d.ts +5 -23
  26. package/declarations/components/divider.d.ts.map +1 -1
  27. package/declarations/components/dropdown.d.ts +1 -1
  28. package/declarations/components/dropdown.d.ts.map +1 -1
  29. package/declarations/components/external-link.d.ts +1 -47
  30. package/declarations/components/external-link.d.ts.map +1 -1
  31. package/declarations/components/forms/forms-legacy.d.ts +30 -256
  32. package/declarations/components/forms/forms-legacy.d.ts.map +1 -1
  33. package/declarations/components/forms/forms.d.ts +252 -1420
  34. package/declarations/components/forms/forms.d.ts.map +1 -1
  35. package/declarations/components/kbd.d.ts +1 -109
  36. package/declarations/components/kbd.d.ts.map +1 -1
  37. package/declarations/components/listbox.d.ts +12 -165
  38. package/declarations/components/listbox.d.ts.map +1 -1
  39. package/declarations/components/nav-color.d.ts +2 -1
  40. package/declarations/components/nav-color.d.ts.map +1 -1
  41. package/declarations/components/nav-item.d.ts +1 -117
  42. package/declarations/components/nav-item.d.ts.map +1 -1
  43. package/declarations/components/notification-card.d.ts +1 -103
  44. package/declarations/components/notification-card.d.ts.map +1 -1
  45. package/declarations/components/notifications-container.d.ts +1 -49
  46. package/declarations/components/notifications-container.d.ts.map +1 -1
  47. package/declarations/components/overlays.d.ts +29 -213
  48. package/declarations/components/overlays.d.ts.map +1 -1
  49. package/declarations/components/pagination.d.ts +1 -131
  50. package/declarations/components/pagination.d.ts.map +1 -1
  51. package/declarations/components/popover.d.ts +7 -25
  52. package/declarations/components/popover.d.ts.map +1 -1
  53. package/declarations/components/progress-bar.d.ts +5 -133
  54. package/declarations/components/progress-bar.d.ts.map +1 -1
  55. package/declarations/components/segmented-control.d.ts +1 -167
  56. package/declarations/components/segmented-control.d.ts.map +1 -1
  57. package/declarations/components/skeleton.d.ts +11 -51
  58. package/declarations/components/skeleton.d.ts.map +1 -1
  59. package/declarations/components/spinner.d.ts +13 -47
  60. package/declarations/components/spinner.d.ts.map +1 -1
  61. package/declarations/components/stepper.d.ts +1 -233
  62. package/declarations/components/stepper.d.ts.map +1 -1
  63. package/declarations/components/table.d.ts +1 -171
  64. package/declarations/components/table.d.ts.map +1 -1
  65. package/declarations/components/tabs.d.ts +1 -169
  66. package/declarations/components/tabs.d.ts.map +1 -1
  67. package/declarations/components/tooltip.d.ts +1 -91
  68. package/declarations/components/tooltip.d.ts.map +1 -1
  69. package/declarations/tw.d.ts +1 -1
  70. package/declarations/tw.d.ts.map +1 -1
  71. package/dist/colors.js +1 -1
  72. package/dist/index.js +89 -51
  73. package/dist/index.js.map +1 -1
  74. package/dist/{overlays-DD7muPLd.js → overlays-BbogRqG7.js} +2 -2
  75. package/dist/overlays-BbogRqG7.js.map +1 -0
  76. package/dist/plugin.js +3 -3
  77. package/dist/{util-DrX1hjH-.js → util-BfrVzSAL.js} +1 -1
  78. package/dist/{util-DrX1hjH-.js.map → util-BfrVzSAL.js.map} +1 -1
  79. package/package.json +12 -12
  80. package/dist/overlays-DD7muPLd.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import { extendTailwindMerge } from 'tailwind-merge';
2
- import { createTV } from 'tailwind-variants';
2
+ import { createTV } from 'tailwind-variants/config';
3
3
 
4
4
  function flat(arr, target) {
5
5
  arr.forEach(el => {
@@ -651,4 +651,4 @@ const overlayTransitions = {
651
651
  };
652
652
 
653
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 };
654
- //# sourceMappingURL=overlays-DD7muPLd.js.map
654
+ //# sourceMappingURL=overlays-BbogRqG7.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"overlays-BbogRqG7.js","sources":["../src/tw.ts","../src/components/overlays.ts"],"sourcesContent":["import { extendTailwindMerge } from 'tailwind-merge';\nimport { createTV } from 'tailwind-variants/config';\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 variant: {\n sectioned: {\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 `flat` bar below -- same\n // reasoning applies here.\n dragHandleBar: 'bg-neutral'\n },\n flat: {\n base: 'bg-surface-modal text-on-surface-modal',\n body: 'px-8 py-6',\n // Same grid layout as `sectioned` (left-aligned, icon column) but\n // flat'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 `sectioned` variant above, which\n // a matrix of variant 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","variant","sectioned","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,C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AACLd,IAAAA,KAAK,EAAE;AACLnE,MAAAA,OAAO,EAAE,GAAG;AACZyD,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;AACP9E,MAAAA,OAAO,EAAE,GAAG;AACZyD,MAAAA,SAAS,EAAE;KACZ;AACDW,IAAAA,KAAK,EAAE;AACLpE,MAAAA,OAAO,EAAE,GAAG;AACZyD,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;AACP/E,MAAAA,OAAO,EAAE,GAAG;AACZyD,MAAAA,SAAS,EAAE,aAAa;AACxB,MAAA,GAAGF,aAAa,CAACC;AACnB;AACF;AACF;;"}
package/dist/plugin.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import plugin from 'tailwindcss/plugin';
2
- import { c as overlayTransitions } from './overlays-DD7muPLd.js';
2
+ import { c as overlayTransitions } from './overlays-BbogRqG7.js';
3
3
  import svgToDataUri from 'mini-svg-data-uri';
4
4
  import { flatten } from 'flat';
5
5
  import kebabCase from 'lodash.kebabcase';
6
6
  import mapKeys from 'lodash.mapkeys';
7
7
  import { parse, oklch } from 'culori';
8
8
  import deepMerge from 'deepmerge';
9
- import { s as semanticColors, g as getContrastingColor } from './util-DrX1hjH-.js';
10
- export { e as swapColorValues } from './util-DrX1hjH-.js';
9
+ import { s as semanticColors, g as getContrastingColor } from './util-BfrVzSAL.js';
10
+ export { e as swapColorValues } from './util-BfrVzSAL.js';
11
11
  import powerSelectPlugin from 'tailwindcss-ember-power-select';
12
12
 
13
13
  // Layout defaults otherwise live in index.css; only per-theme values need to
@@ -479,4 +479,4 @@ function getContrastingColor(backgroundColor) {
479
479
  }
480
480
 
481
481
  export { blue as a, black as b, gray as c, green as d, swapColorValues as e, getContrastingColor as g, orange as o, pink as p, red as r, semanticColors as s, teal as t, violet as v, white as w, yellow as y };
482
- //# sourceMappingURL=util-DrX1hjH-.js.map
482
+ //# sourceMappingURL=util-BfrVzSAL.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"util-DrX1hjH-.js","sources":["../src/colors/palette.ts","../src/colors/palette-absolute.ts","../src/colors/semantic.ts","../src/colors/config.ts","../src/colors/util.ts"],"sourcesContent":["/**\n * Frontile Color Palette\n *\n * Theme-independent color scales.\n */\n\nconst gray = {\n '50': '#f8f8f8',\n '100': '#ececec',\n '200': '#dddcdc',\n '300': '#c9c8c7',\n '400': '#b1afad',\n '500': '#94918f',\n '600': '#74706d',\n '700': '#554f4b',\n '800': '#39332e',\n '900': '#241c17',\n '950': '#140b06'\n};\n\nconst blue = {\n '50': '#f9fcff',\n '100': '#f1f7ff',\n '200': '#d2e6ff',\n '300': '#95c4ff',\n '400': '#4a8ee7',\n '500': '#2259a6',\n '600': '#053273',\n '700': '#001b4e',\n '800': '#000e38',\n '900': '#00072d',\n '950': '#020825'\n};\n\nconst green = {\n '50': '#f7ffeb',\n '100': '#e6ffbc',\n '200': '#d1ff8c',\n '300': '#bbff60',\n '400': '#a3fa3a',\n '500': '#66e221',\n '600': '#2fc511',\n '700': '#07a20a',\n '800': '#027b1b',\n '900': '#005321',\n '950': '#002e1b'\n};\n\nconst orange = {\n '50': '#fff3e9',\n '100': '#ffd6b9',\n '200': '#ffb686',\n '300': '#ff914d',\n '400': '#ef7125',\n '500': '#d95503',\n '600': '#bc3e00',\n '700': '#9e2800',\n '800': '#7f1301',\n '900': '#600102',\n '950': '#3e0004'\n};\n\nconst pink = {\n '50': '#fefafc',\n '100': '#ffebf4',\n '200': '#ffcee4',\n '300': '#fca8cc',\n '400': '#f17bad',\n '500': '#e1458a',\n '600': '#c10566',\n '700': '#920147',\n '800': '#69002d',\n '900': '#4a011c',\n '950': '#390011'\n};\n\nconst red = {\n '50': '#ffedea',\n '100': '#ffcbc2',\n '200': '#ffa697',\n '300': '#fe7d69',\n '400': '#ff432e',\n '500': '#e51701',\n '600': '#bf1201',\n '700': '#9a0d01',\n '800': '#760700',\n '900': '#550400',\n '950': '#360100'\n};\n\nconst teal = {\n '50': '#f1fdfc',\n '100': '#c6f5f4',\n '200': '#7ce0e1',\n '300': '#47c1c7',\n '400': '#26a0aa',\n '500': '#12828e',\n '600': '#076873',\n '700': '#01525c',\n '800': '#003f48',\n '900': '#003138',\n '950': '#00262c'\n};\n\nconst violet = {\n '50': '#fcfbff',\n '100': '#f0e8ff',\n '200': '#dfd0ff',\n '300': '#c8b6f6',\n '400': '#ac98e7',\n '500': '#8d78d4',\n '600': '#6d55bf',\n '700': '#4f30aa',\n '800': '#370191',\n '900': '#23016a',\n '950': '#170054'\n};\n\nconst yellow = {\n '50': '#faffe9',\n '100': '#f9ffcc',\n '200': '#fffb12',\n '300': '#faea2b',\n '400': '#eed434',\n '500': '#d9ba34',\n '600': '#be9b2e',\n '700': '#9b7923',\n '800': '#745512',\n '900': '#493001',\n '950': '#1c0e00'\n};\n\nexport { gray, blue, green, orange, pink, red, teal, violet, yellow };\n","/**\n * Frontile Absolute Color Palette\n *\n * Absolute OKLCH colors that remain constant across light/dark themes.\n */\n\nconst black = '#000000';\n\nconst white = '#ffffff';\n\nexport { black, white };\n","/**\n * Frontile Semantic Colors\n *\n * Semantic color mappings for light and dark themes.\n *\n * Values are transcribed from the Beacon design tokens (Figma), where alpha is\n * expressed as a 0–1 float. Here it is folded into the color as a two-digit\n * hex suffix — e.g. 20% becomes `33` (round(0.2 * 255) = 51 = 0x33).\n */\n\nimport * as palette from './palette';\nimport * as absolute from './palette-absolute';\n\nimport type { ThemeColors } from './types';\n\nconst themeColorsLight: ThemeColors = {\n neutral: {\n subtle: palette.gray['50'],\n muted: palette.gray['100'],\n soft: palette.gray['200'],\n mild: palette.gray['300'],\n DEFAULT: palette.gray['500'],\n firm: palette.gray['700'],\n strong: palette.gray['800'],\n bolder: palette.gray['900']\n },\n primary: {\n subtle: palette.teal['50'],\n muted: palette.teal['100'],\n soft: `${palette.teal['600']}1a`, // palette.teal['600'] @ 10%\n mild: palette.teal['400'],\n DEFAULT: palette.teal['600'],\n firm: palette.teal['700'],\n strong: palette.teal['900'],\n bolder: palette.teal['950']\n },\n secondary: {\n subtle: palette.orange['50'],\n muted: palette.orange['100'],\n soft: `${palette.orange['300']}33`, // palette.orange['300'] @ 20%\n mild: palette.orange['200'],\n DEFAULT: palette.orange['300'],\n firm: palette.orange['400'],\n strong: palette.orange['500'],\n bolder: palette.orange['700']\n },\n tertiary: {\n subtle: palette.pink['100'],\n muted: palette.pink['200'],\n soft: `${palette.pink['400']}40`, // palette.pink['400'] @ 25%\n mild: palette.pink['300'],\n DEFAULT: palette.pink['400'],\n firm: palette.pink['500'],\n strong: palette.pink['600'],\n bolder: palette.pink['700']\n },\n success: {\n subtle: palette.green['50'],\n muted: palette.green['100'],\n soft: `${palette.green['400']}40`, // palette.green['400'] @ 25%\n mild: palette.green['200'],\n DEFAULT: palette.green['400'],\n firm: palette.green['600'],\n strong: palette.green['800'],\n bolder: palette.green['900']\n },\n warning: {\n subtle: palette.orange['50'],\n muted: palette.orange['100'],\n soft: `${palette.orange['300']}33`, // palette.orange['300'] @ 20%\n mild: palette.orange['200'],\n DEFAULT: palette.orange['300'],\n firm: palette.orange['400'],\n strong: palette.orange['500'],\n bolder: palette.orange['700']\n },\n danger: {\n subtle: palette.red['50'],\n muted: palette.red['100'],\n soft: `${palette.red['500']}26`, // palette.red['500'] @ 15%\n mild: palette.red['300'],\n DEFAULT: palette.red['500'],\n firm: palette.red['600'],\n strong: palette.red['800'],\n bolder: palette.red['900']\n },\n // Contrast colors for the translucent `soft` level. These are the one set\n // we cannot auto-generate: the generator measures the raw RGBA value, not\n // the composite over the page, and lands on the inverse of what is legible.\n // Facet specifies black for every role here.\n 'on-neutral': { soft: absolute.black },\n 'on-primary': { soft: absolute.black },\n 'on-secondary': { soft: absolute.black },\n 'on-tertiary': { soft: absolute.black },\n 'on-success': { soft: absolute.black },\n 'on-warning': { soft: absolute.black },\n 'on-danger': { soft: absolute.black },\n surface: {\n overlay: {\n subtle: `${absolute.black}08`, // absolute.black @ 3%\n soft: `${absolute.black}0d`, // absolute.black @ 5%\n mild: `${absolute.black}1a`, // absolute.black @ 10%\n firm: `${absolute.black}24`, // absolute.black @ 14%\n strong: `${absolute.black}bf` // absolute.black @ 75%\n },\n lift: {\n subtle: `${absolute.white}4c`, // absolute.white @ 30%\n soft: `${absolute.white}80`, // absolute.white @ 50%\n mild: `${absolute.white}b2`, // absolute.white @ 70%\n firm: `${absolute.white}e6`, // absolute.white @ 90%\n strong: `${absolute.white}f2` // absolute.white @ 95%\n },\n app: absolute.white,\n canvas: palette.gray['50'],\n card: absolute.white,\n table: absolute.white,\n drawer: palette.gray['50'],\n input: absolute.white,\n modal: absolute.white\n }\n};\n\nconst themeColorsDark: ThemeColors = {\n neutral: {\n subtle: palette.gray['900'],\n muted: palette.gray['800'],\n soft: palette.gray['700'],\n mild: palette.gray['500'],\n DEFAULT: palette.gray['400'],\n firm: palette.gray['300'],\n strong: palette.gray['200'],\n bolder: palette.gray['100']\n },\n primary: {\n subtle: palette.teal['900'],\n muted: palette.teal['700'],\n soft: `${palette.teal['300']}40`, // palette.teal['300'] @ 25%\n mild: palette.teal['500'],\n DEFAULT: palette.teal['300'],\n firm: palette.teal['200'],\n strong: palette.teal['100'],\n bolder: palette.teal['50']\n },\n secondary: {\n subtle: palette.orange['600'],\n muted: palette.orange['500'],\n soft: `${palette.orange['300']}33`, // palette.orange['300'] @ 20%\n mild: palette.orange['400'],\n DEFAULT: palette.orange['300'],\n firm: palette.orange['200'],\n strong: palette.orange['200'], // = firm in the Beacon dark tokens\n bolder: palette.orange['100']\n },\n tertiary: {\n subtle: palette.pink['900'],\n muted: palette.pink['700'],\n soft: `${palette.pink['500']}33`, // palette.pink['500'] @ 20%\n mild: palette.pink['600'],\n DEFAULT: palette.pink['500'],\n firm: palette.pink['400'],\n strong: palette.pink['300'],\n bolder: palette.pink['200']\n },\n success: {\n subtle: palette.green['950'],\n muted: palette.green['900'],\n soft: `${palette.green['400']}33`, // palette.green['400'] @ 20%\n mild: palette.green['600'],\n DEFAULT: palette.green['400'],\n firm: palette.green['300'],\n strong: palette.green['200'],\n bolder: palette.green['100']\n },\n warning: {\n subtle: palette.orange['600'],\n muted: palette.orange['500'],\n soft: `${palette.orange['300']}33`, // palette.orange['300'] @ 20%\n mild: palette.orange['400'],\n DEFAULT: palette.orange['300'],\n firm: palette.orange['200'],\n strong: palette.orange['200'], // = firm in the Beacon dark tokens\n bolder: palette.orange['100']\n },\n danger: {\n subtle: palette.red['900'],\n muted: palette.red['700'],\n soft: `${palette.red['400']}26`, // palette.red['400'] @ 15%\n mild: palette.red['600'],\n DEFAULT: palette.red['400'],\n firm: palette.red['300'],\n strong: palette.red['100'],\n bolder: palette.red['50']\n },\n // Contrast colors for the translucent `soft` level. These are the one set\n // we cannot auto-generate: the generator measures the raw RGBA value, not\n // the composite over the page, and lands on the inverse of what is legible.\n // Facet specifies white for every role here.\n 'on-neutral': { soft: absolute.white },\n 'on-primary': { soft: absolute.white },\n 'on-secondary': { soft: absolute.white },\n 'on-tertiary': { soft: absolute.white },\n 'on-success': { soft: absolute.white },\n 'on-warning': { soft: absolute.white },\n 'on-danger': { soft: absolute.white },\n surface: {\n overlay: {\n subtle: `${absolute.white}12`, // absolute.white @ 7%\n soft: `${absolute.white}1c`, // absolute.white @ 11%\n mild: `${absolute.white}2b`, // absolute.white @ 17%\n firm: `${absolute.white}40`, // absolute.white @ 25%\n strong: `${absolute.white}f2` // absolute.white @ 95%\n },\n lift: {\n subtle: `${absolute.black}1a`, // absolute.black @ 10%\n soft: `${absolute.black}33`, // absolute.black @ 20%\n mild: `${absolute.black}4c`, // absolute.black @ 30%\n firm: `${absolute.black}66`, // absolute.black @ 40%\n strong: `${absolute.black}bf` // absolute.black @ 75%\n },\n app: absolute.black,\n canvas: palette.gray['950'],\n card: `${absolute.white}12`, // absolute.white @ 7%\n table: palette.gray['900'],\n drawer: palette.gray['900'],\n input: absolute.black,\n modal: palette.gray['950']\n }\n};\n\nexport default {\n light: themeColorsLight,\n dark: themeColorsDark\n};\n","import type { SemanticBaseColors } from './types';\nimport tokens from './semantic';\n\nconst base: SemanticBaseColors = {\n light: {\n background: 'var(--color-surface-app)',\n focus: 'var(--color-primary-muted)',\n divider: 'rgba(17, 17, 17, 0.15)'\n },\n dark: {\n background: 'var(--color-surface-app)',\n focus: 'var(--color-primary-muted)',\n divider: 'rgba(255, 255, 255, 0.25)'\n }\n};\n\nexport const semanticColors = {\n light: {\n ...base.light,\n ...tokens.light\n },\n dark: {\n ...base.dark,\n ...tokens.dark\n }\n};\n","import { parse, wcagContrast } from 'culori';\nimport { black, white } from './palette-absolute';\n\nfunction swapColorValues<T extends Record<string, unknown>>(\n colors: T\n): Record<string, unknown> {\n const swappedColors: Record<string, unknown> = {};\n const keys = Object.keys(colors);\n const length = keys.length;\n\n for (let i = 0; i < length / 2; i++) {\n const key1 = keys[i] as string;\n const key2 = keys[length - 1 - i] as string;\n\n swappedColors[key1] = colors[key2];\n swappedColors[key2] = colors[key1];\n }\n if (length % 2 !== 0) {\n const middleKey = keys[Math.floor(length / 2)] as string;\n\n swappedColors[middleKey] = colors[middleKey];\n }\n\n return swappedColors;\n}\n\n// Pre-parse absolute colors once (these are known-valid hex colors)\nconst parsedBlack = parse(black);\nconst parsedWhite = parse(white);\n\n/**\n * Get optimal contrasting color (black or white) for text on a given background.\n * Uses WCAG contrast ratios to determine which provides better readability.\n */\nfunction getContrastingColor(backgroundColor: string): string {\n const bgColor = parse(backgroundColor);\n if (!bgColor || !parsedBlack || !parsedWhite) {\n console.warn(\n `Failed to parse color: ${backgroundColor}, defaulting to white`\n );\n return white;\n }\n\n const contrastWithBlack = wcagContrast(bgColor, parsedBlack);\n const contrastWithWhite = wcagContrast(bgColor, parsedWhite);\n\n return contrastWithBlack > contrastWithWhite ? black : white;\n}\n\nexport { swapColorValues, getContrastingColor, parse, wcagContrast };\n"],"names":["gray","blue","green","orange","pink","red","teal","violet","yellow","black","white","themeColorsLight","neutral","subtle","palette","muted","soft","mild","DEFAULT","firm","strong","bolder","primary","secondary","tertiary","success","warning","danger","absolute","surface","overlay","lift","app","canvas","card","table","drawer","input","modal","themeColorsDark","light","dark","base","background","focus","divider","semanticColors","tokens","swapColorValues","colors","swappedColors","keys","Object","length","i","key1","key2","middleKey","Math","floor","parsedBlack","parse","parsedWhite","getContrastingColor","backgroundColor","bgColor","console","warn","contrastWithBlack","wcagContrast","contrastWithWhite"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;;AAEA,MAAMA,IAAI,GAAG;AACX,EAAA,IAAI,EAAE,SAAS;AACf,EAAA,KAAK,EAAE,SAAS;AAChB,EAAA,KAAK,EAAE,SAAS;AAChB,EAAA,KAAK,EAAE,SAAS;AAChB,EAAA,KAAK,EAAE,SAAS;AAChB,EAAA,KAAK,EAAE,SAAS;AAChB,EAAA,KAAK,EAAE,SAAS;AAChB,EAAA,KAAK,EAAE,SAAS;AAChB,EAAA,KAAK,EAAE,SAAS;AAChB,EAAA,KAAK,EAAE,SAAS;AAChB,EAAA,KAAK,EAAE;AACT;AAEA,MAAMC,IAAI,GAAG;AACX,EAAA,IAAI,EAAE,SAAS;AACf,EAAA,KAAK,EAAE,SAAS;AAChB,EAAA,KAAK,EAAE,SAAS;AAChB,EAAA,KAAK,EAAE,SAAS;AAChB,EAAA,KAAK,EAAE,SAAS;AAChB,EAAA,K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CAACN,MAAM,GAAG,CAAC,CAAC,CAAW;AAExDH,IAAAA,aAAa,CAACO,SAAS,CAAC,GAAGR,MAAM,CAACQ,SAAS,CAAC;AAC9C,EAAA;AAEA,EAAA,OAAOP,aAAa;AACtB;;AAEA;AACA,MAAMU,WAAW,GAAGC,KAAK,CAACpD,KAAK,CAAC;AAChC,MAAMqD,WAAW,GAAGD,KAAK,CAACnD,KAAK,CAAC;;AAEhC;AACA;AACA;AACA;AACA,SAASqD,mBAAmBA,CAACC,eAAuB,EAAU;AAC5D,EAAA,MAAMC,OAAO,GAAGJ,KAAK,CAACG,eAAe,CAAC;EACtC,IAAI,CAACC,OAAO,IAAI,CAACL,WAAW,IAAI,CAACE,WAAW,EAAE;AAC5CI,IAAAA,OAAO,CAACC,IAAI,CACV,CAAA,uBAAA,EAA0BH,eAAe,uBAC3C,CAAC;AACD,IAAA,OAAOtD,KAAK;AACd,EAAA;AAEA,EAAA,MAAM0D,iBAAiB,GAAGC,YAAY,CAACJ,OAAO,EAAEL,WAAW,CAAC;AAC5D,EAAA,MAAMU,iBAAiB,GAAGD,YAAY,CAACJ,OAAO,EAAEH,WAAW,CAAC;AAE5D,EAAA,OAAOM,iBAAiB,GAAGE,iBAAiB,GAAG7D,KAAK,GAAGC,KAAK;AAC9D;;"}
1
+ {"version":3,"file":"util-BfrVzSAL.js","sources":["../src/colors/palette.ts","../src/colors/palette-absolute.ts","../src/colors/semantic.ts","../src/colors/config.ts","../src/colors/util.ts"],"sourcesContent":["/**\n * Frontile Color Palette\n *\n * Theme-independent color scales.\n */\n\nconst gray = {\n '50': '#f8f8f8',\n '100': '#ececec',\n '200': '#dddcdc',\n '300': '#c9c8c7',\n '400': '#b1afad',\n '500': '#94918f',\n '600': '#74706d',\n '700': '#554f4b',\n '800': '#39332e',\n '900': '#241c17',\n '950': '#140b06'\n};\n\nconst blue = {\n '50': '#f9fcff',\n '100': '#f1f7ff',\n '200': '#d2e6ff',\n '300': '#95c4ff',\n '400': '#4a8ee7',\n '500': '#2259a6',\n '600': '#053273',\n '700': '#001b4e',\n '800': '#000e38',\n '900': '#00072d',\n '950': '#020825'\n};\n\nconst green = {\n '50': '#f7ffeb',\n '100': '#e6ffbc',\n '200': '#d1ff8c',\n '300': '#bbff60',\n '400': '#a3fa3a',\n '500': '#66e221',\n '600': '#2fc511',\n '700': '#07a20a',\n '800': '#027b1b',\n '900': '#005321',\n '950': '#002e1b'\n};\n\nconst orange = {\n '50': '#fff3e9',\n '100': '#ffd6b9',\n '200': '#ffb686',\n '300': '#ff914d',\n '400': '#ef7125',\n '500': '#d95503',\n '600': '#bc3e00',\n '700': '#9e2800',\n '800': '#7f1301',\n '900': '#600102',\n '950': '#3e0004'\n};\n\nconst pink = {\n '50': '#fefafc',\n '100': '#ffebf4',\n '200': '#ffcee4',\n '300': '#fca8cc',\n '400': '#f17bad',\n '500': '#e1458a',\n '600': '#c10566',\n '700': '#920147',\n '800': '#69002d',\n '900': '#4a011c',\n '950': '#390011'\n};\n\nconst red = {\n '50': '#ffedea',\n '100': '#ffcbc2',\n '200': '#ffa697',\n '300': '#fe7d69',\n '400': '#ff432e',\n '500': '#e51701',\n '600': '#bf1201',\n '700': '#9a0d01',\n '800': '#760700',\n '900': '#550400',\n '950': '#360100'\n};\n\nconst teal = {\n '50': '#f1fdfc',\n '100': '#c6f5f4',\n '200': '#7ce0e1',\n '300': '#47c1c7',\n '400': '#26a0aa',\n '500': '#12828e',\n '600': '#076873',\n '700': '#01525c',\n '800': '#003f48',\n '900': '#003138',\n '950': '#00262c'\n};\n\nconst violet = {\n '50': '#fcfbff',\n '100': '#f0e8ff',\n '200': '#dfd0ff',\n '300': '#c8b6f6',\n '400': '#ac98e7',\n '500': '#8d78d4',\n '600': '#6d55bf',\n '700': '#4f30aa',\n '800': '#370191',\n '900': '#23016a',\n '950': '#170054'\n};\n\nconst yellow = {\n '50': '#faffe9',\n '100': '#f9ffcc',\n '200': '#fffb12',\n '300': '#faea2b',\n '400': '#eed434',\n '500': '#d9ba34',\n '600': '#be9b2e',\n '700': '#9b7923',\n '800': '#745512',\n '900': '#493001',\n '950': '#1c0e00'\n};\n\nexport { gray, blue, green, orange, pink, red, teal, violet, yellow };\n","/**\n * Frontile Absolute Color Palette\n *\n * Absolute OKLCH colors that remain constant across light/dark themes.\n */\n\nconst black = '#000000';\n\nconst white = '#ffffff';\n\nexport { black, white };\n","/**\n * Frontile Semantic Colors\n *\n * Semantic color mappings for light and dark themes.\n *\n * Values are transcribed from the Beacon design tokens (Figma), where alpha is\n * expressed as a 0–1 float. Here it is folded into the color as a two-digit\n * hex suffix — e.g. 20% becomes `33` (round(0.2 * 255) = 51 = 0x33).\n */\n\nimport * as palette from './palette';\nimport * as absolute from './palette-absolute';\n\nimport type { ThemeColors } from './types';\n\nconst themeColorsLight: ThemeColors = {\n neutral: {\n subtle: palette.gray['50'],\n muted: palette.gray['100'],\n soft: palette.gray['200'],\n mild: palette.gray['300'],\n DEFAULT: palette.gray['500'],\n firm: palette.gray['700'],\n strong: palette.gray['800'],\n bolder: palette.gray['900']\n },\n primary: {\n subtle: palette.teal['50'],\n muted: palette.teal['100'],\n soft: `${palette.teal['600']}1a`, // palette.teal['600'] @ 10%\n mild: palette.teal['400'],\n DEFAULT: palette.teal['600'],\n firm: palette.teal['700'],\n strong: palette.teal['900'],\n bolder: palette.teal['950']\n },\n secondary: {\n subtle: palette.orange['50'],\n muted: palette.orange['100'],\n soft: `${palette.orange['300']}33`, // palette.orange['300'] @ 20%\n mild: palette.orange['200'],\n DEFAULT: palette.orange['300'],\n firm: palette.orange['400'],\n strong: palette.orange['500'],\n bolder: palette.orange['700']\n },\n tertiary: {\n subtle: palette.pink['100'],\n muted: palette.pink['200'],\n soft: `${palette.pink['400']}40`, // palette.pink['400'] @ 25%\n mild: palette.pink['300'],\n DEFAULT: palette.pink['400'],\n firm: palette.pink['500'],\n strong: palette.pink['600'],\n bolder: palette.pink['700']\n },\n success: {\n subtle: palette.green['50'],\n muted: palette.green['100'],\n soft: `${palette.green['400']}40`, // palette.green['400'] @ 25%\n mild: palette.green['200'],\n DEFAULT: palette.green['400'],\n firm: palette.green['600'],\n strong: palette.green['800'],\n bolder: palette.green['900']\n },\n warning: {\n subtle: palette.orange['50'],\n muted: palette.orange['100'],\n soft: `${palette.orange['300']}33`, // palette.orange['300'] @ 20%\n mild: palette.orange['200'],\n DEFAULT: palette.orange['300'],\n firm: palette.orange['400'],\n strong: palette.orange['500'],\n bolder: palette.orange['700']\n },\n danger: {\n subtle: palette.red['50'],\n muted: palette.red['100'],\n soft: `${palette.red['500']}26`, // palette.red['500'] @ 15%\n mild: palette.red['300'],\n DEFAULT: palette.red['500'],\n firm: palette.red['600'],\n strong: palette.red['800'],\n bolder: palette.red['900']\n },\n // Contrast colors for the translucent `soft` level. These are the one set\n // we cannot auto-generate: the generator measures the raw RGBA value, not\n // the composite over the page, and lands on the inverse of what is legible.\n // Facet specifies black for every role here.\n 'on-neutral': { soft: absolute.black },\n 'on-primary': { soft: absolute.black },\n 'on-secondary': { soft: absolute.black },\n 'on-tertiary': { soft: absolute.black },\n 'on-success': { soft: absolute.black },\n 'on-warning': { soft: absolute.black },\n 'on-danger': { soft: absolute.black },\n surface: {\n overlay: {\n subtle: `${absolute.black}08`, // absolute.black @ 3%\n soft: `${absolute.black}0d`, // absolute.black @ 5%\n mild: `${absolute.black}1a`, // absolute.black @ 10%\n firm: `${absolute.black}24`, // absolute.black @ 14%\n strong: `${absolute.black}bf` // absolute.black @ 75%\n },\n lift: {\n subtle: `${absolute.white}4c`, // absolute.white @ 30%\n soft: `${absolute.white}80`, // absolute.white @ 50%\n mild: `${absolute.white}b2`, // absolute.white @ 70%\n firm: `${absolute.white}e6`, // absolute.white @ 90%\n strong: `${absolute.white}f2` // absolute.white @ 95%\n },\n app: absolute.white,\n canvas: palette.gray['50'],\n card: absolute.white,\n table: absolute.white,\n drawer: palette.gray['50'],\n input: absolute.white,\n modal: absolute.white\n }\n};\n\nconst themeColorsDark: ThemeColors = {\n neutral: {\n subtle: palette.gray['900'],\n muted: palette.gray['800'],\n soft: palette.gray['700'],\n mild: palette.gray['500'],\n DEFAULT: palette.gray['400'],\n firm: palette.gray['300'],\n strong: palette.gray['200'],\n bolder: palette.gray['100']\n },\n primary: {\n subtle: palette.teal['900'],\n muted: palette.teal['700'],\n soft: `${palette.teal['300']}40`, // palette.teal['300'] @ 25%\n mild: palette.teal['500'],\n DEFAULT: palette.teal['300'],\n firm: palette.teal['200'],\n strong: palette.teal['100'],\n bolder: palette.teal['50']\n },\n secondary: {\n subtle: palette.orange['600'],\n muted: palette.orange['500'],\n soft: `${palette.orange['300']}33`, // palette.orange['300'] @ 20%\n mild: palette.orange['400'],\n DEFAULT: palette.orange['300'],\n firm: palette.orange['200'],\n strong: palette.orange['200'], // = firm in the Beacon dark tokens\n bolder: palette.orange['100']\n },\n tertiary: {\n subtle: palette.pink['900'],\n muted: palette.pink['700'],\n soft: `${palette.pink['500']}33`, // palette.pink['500'] @ 20%\n mild: palette.pink['600'],\n DEFAULT: palette.pink['500'],\n firm: palette.pink['400'],\n strong: palette.pink['300'],\n bolder: palette.pink['200']\n },\n success: {\n subtle: palette.green['950'],\n muted: palette.green['900'],\n soft: `${palette.green['400']}33`, // palette.green['400'] @ 20%\n mild: palette.green['600'],\n DEFAULT: palette.green['400'],\n firm: palette.green['300'],\n strong: palette.green['200'],\n bolder: palette.green['100']\n },\n warning: {\n subtle: palette.orange['600'],\n muted: palette.orange['500'],\n soft: `${palette.orange['300']}33`, // palette.orange['300'] @ 20%\n mild: palette.orange['400'],\n DEFAULT: palette.orange['300'],\n firm: palette.orange['200'],\n strong: palette.orange['200'], // = firm in the Beacon dark tokens\n bolder: palette.orange['100']\n },\n danger: {\n subtle: palette.red['900'],\n muted: palette.red['700'],\n soft: `${palette.red['400']}26`, // palette.red['400'] @ 15%\n mild: palette.red['600'],\n DEFAULT: palette.red['400'],\n firm: palette.red['300'],\n strong: palette.red['100'],\n bolder: palette.red['50']\n },\n // Contrast colors for the translucent `soft` level. These are the one set\n // we cannot auto-generate: the generator measures the raw RGBA value, not\n // the composite over the page, and lands on the inverse of what is legible.\n // Facet specifies white for every role here.\n 'on-neutral': { soft: absolute.white },\n 'on-primary': { soft: absolute.white },\n 'on-secondary': { soft: absolute.white },\n 'on-tertiary': { soft: absolute.white },\n 'on-success': { soft: absolute.white },\n 'on-warning': { soft: absolute.white },\n 'on-danger': { soft: absolute.white },\n surface: {\n overlay: {\n subtle: `${absolute.white}12`, // absolute.white @ 7%\n soft: `${absolute.white}1c`, // absolute.white @ 11%\n mild: `${absolute.white}2b`, // absolute.white @ 17%\n firm: `${absolute.white}40`, // absolute.white @ 25%\n strong: `${absolute.white}f2` // absolute.white @ 95%\n },\n lift: {\n subtle: `${absolute.black}1a`, // absolute.black @ 10%\n soft: `${absolute.black}33`, // absolute.black @ 20%\n mild: `${absolute.black}4c`, // absolute.black @ 30%\n firm: `${absolute.black}66`, // absolute.black @ 40%\n strong: `${absolute.black}bf` // absolute.black @ 75%\n },\n app: absolute.black,\n canvas: palette.gray['950'],\n card: `${absolute.white}12`, // absolute.white @ 7%\n table: palette.gray['900'],\n drawer: palette.gray['900'],\n input: absolute.black,\n modal: palette.gray['950']\n }\n};\n\nexport default {\n light: themeColorsLight,\n dark: themeColorsDark\n};\n","import type { SemanticBaseColors } from './types';\nimport tokens from './semantic';\n\nconst base: SemanticBaseColors = {\n light: {\n background: 'var(--color-surface-app)',\n focus: 'var(--color-primary-muted)',\n divider: 'rgba(17, 17, 17, 0.15)'\n },\n dark: {\n background: 'var(--color-surface-app)',\n focus: 'var(--color-primary-muted)',\n divider: 'rgba(255, 255, 255, 0.25)'\n }\n};\n\nexport const semanticColors = {\n light: {\n ...base.light,\n ...tokens.light\n },\n dark: {\n ...base.dark,\n ...tokens.dark\n }\n};\n","import { parse, wcagContrast } from 'culori';\nimport { black, white } from './palette-absolute';\n\nfunction swapColorValues<T extends Record<string, unknown>>(\n colors: T\n): Record<string, unknown> {\n const swappedColors: Record<string, unknown> = {};\n const keys = Object.keys(colors);\n const length = keys.length;\n\n for (let i = 0; i < length / 2; i++) {\n const key1 = keys[i] as string;\n const key2 = keys[length - 1 - i] as string;\n\n swappedColors[key1] = colors[key2];\n swappedColors[key2] = colors[key1];\n }\n if (length % 2 !== 0) {\n const middleKey = keys[Math.floor(length / 2)] as string;\n\n swappedColors[middleKey] = colors[middleKey];\n }\n\n return swappedColors;\n}\n\n// Pre-parse absolute colors once (these are known-valid hex colors)\nconst parsedBlack = parse(black);\nconst parsedWhite = parse(white);\n\n/**\n * Get optimal contrasting color (black or white) for text on a given background.\n * Uses WCAG contrast ratios to determine which provides better readability.\n */\nfunction getContrastingColor(backgroundColor: string): string {\n const bgColor = parse(backgroundColor);\n if (!bgColor || !parsedBlack || !parsedWhite) {\n console.warn(\n `Failed to parse color: ${backgroundColor}, defaulting to white`\n );\n return white;\n }\n\n const contrastWithBlack = wcagContrast(bgColor, parsedBlack);\n const contrastWithWhite = wcagContrast(bgColor, parsedWhite);\n\n return contrastWithBlack > contrastWithWhite ? black : white;\n}\n\nexport { swapColorValues, getContrastingColor, parse, wcagContrast };\n"],"names":["gray","blue","green","orange","pink","red","teal","violet","yellow","black","white","themeColorsLight","neutral","subtle","palette","muted","soft","mild","DEFAULT","firm","strong","bolder","primary","secondary","tertiary","success","warning","danger","absolute","surface","overlay","lift","app","canvas","card","table","drawer","input","modal","themeColorsDark","light","dark","base","background","focus","divider","semanticColors","tokens","swapColorValues","colors","swappedColors","keys","Object","length","i","key1","key2","middleKey","Math","floor","parsedBlack","parse","parsedWhite","getContrastingColor","backgroundColor","bgColor","console","warn","contrastWithBlack","wcagContrast","contrastWithWhite"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;;AAEA,MAAMA,IAAI,GAAG;AACX,EAAA,IAAI,EAAE,SAAS;AACf,EAAA,KAAK,EAAE,SAAS;AAChB,EAAA,KAAK,EAAE,SAAS;AAChB,EAAA,KAAK,EAAE,SAAS;AAChB,EAAA,KAAK,EAAE,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me",
3
- "version": "0.18.9",
3
+ "version": "0.18.11",
4
4
  "description": "Component Library for Ember Octane apps: Theme",
5
5
  "keywords": [
6
6
  "ember-addon",
@@ -57,7 +57,7 @@
57
57
  "test": "echo 'A v2 addon does not have tests, run tests in test-app'"
58
58
  },
59
59
  "dependencies": {
60
- "@embroider/addon-shim": "^1.10.3",
60
+ "@embroider/addon-shim": "^1.11.0",
61
61
  "culori": "^4.0.2",
62
62
  "deepmerge": "4.3.1",
63
63
  "flat": "^6.0.1",
@@ -65,31 +65,31 @@
65
65
  "lodash.mapkeys": "^4.6.0",
66
66
  "mini-svg-data-uri": "^1.4.4",
67
67
  "tailwind-merge": "^3.7.0",
68
- "tailwind-variants": "^3.3.1",
68
+ "tailwind-variants": "^4.0.2",
69
69
  "tailwindcss-ember-power-select": "^0.4.3"
70
70
  },
71
71
  "devDependencies": {
72
72
  "@babel/core": "7.26.7",
73
73
  "@babel/plugin-transform-typescript": "^7.29.7",
74
74
  "@ember/library-tsconfig": "^3.0.0",
75
- "@embroider/addon-dev": "8.4.2",
75
+ "@embroider/addon-dev": "8.5.0",
76
76
  "@embroider/addon-shim": "^1.8.6",
77
- "@glimmer/component": "^2.1.1",
77
+ "@glimmer/component": "^2.2.1",
78
78
  "@glimmer/tracking": "^1.1.2",
79
- "@glint/ember-tsc": "^1.11.6",
80
- "@glint/template": "^1.9.0",
79
+ "@glint/ember-tsc": "^1.14.3",
80
+ "@glint/template": "^1.11.1",
81
81
  "@rollup/plugin-babel": "^7.1.0",
82
82
  "@rollup/plugin-node-resolve": "^16.0.3",
83
83
  "@types/culori": "^4.0.1",
84
84
  "@types/lodash.kebabcase": "^4.1.9",
85
85
  "@types/lodash.mapkeys": "^4.6.9",
86
86
  "babel-plugin-ember-template-compilation": "^4.0.1",
87
- "concurrently": "^10.0.6",
87
+ "concurrently": "^10.0.7",
88
88
  "decorator-transforms": "^2.4.0",
89
- "ember-source": "^7.3.0",
90
- "rollup": "^4.64.5",
89
+ "ember-source": "^7.4.0",
90
+ "rollup": "^4.68.3",
91
91
  "rollup-plugin-copy": "^3.5.0",
92
- "tailwindcss": "^4.3.3",
92
+ "tailwindcss": "^4.3.5",
93
93
  "typescript": "^6.0.3"
94
94
  },
95
95
  "peerDependencies": {
@@ -119,5 +119,5 @@
119
119
  "./public/fonts/source-code-pro-variable.woff2": "/@frontile/theme/fonts/source-code-pro-variable.woff2"
120
120
  }
121
121
  },
122
- "gitHead": "2ce08b2dc60b21fbc4b2df41ed7f8e019104741d"
122
+ "gitHead": "8917634ae5457b8fca832a471e439418008752d9"
123
123
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"overlays-DD7muPLd.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 variant: {\n sectioned: {\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 `flat` bar below -- same\n // reasoning applies here.\n dragHandleBar: 'bg-neutral'\n },\n flat: {\n base: 'bg-surface-modal text-on-surface-modal',\n body: 'px-8 py-6',\n // Same grid layout as `sectioned` (left-aligned, icon column) but\n // flat'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 `sectioned` variant above, which\n // a matrix of variant 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","variant","sectioned","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,K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