@frontile/theme 0.18.0-beta.2 → 0.18.0-beta.4

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 (111) hide show
  1. package/declarations/colors/config.d.ts +1 -0
  2. package/declarations/colors/config.d.ts.map +1 -0
  3. package/declarations/colors/palette-absolute.d.ts +1 -0
  4. package/declarations/colors/palette-absolute.d.ts.map +1 -0
  5. package/declarations/colors/palette.d.ts +1 -0
  6. package/declarations/colors/palette.d.ts.map +1 -0
  7. package/declarations/colors/semantic.d.ts +1 -0
  8. package/declarations/colors/semantic.d.ts.map +1 -0
  9. package/declarations/colors/types.d.ts +1 -0
  10. package/declarations/colors/types.d.ts.map +1 -0
  11. package/declarations/colors/util.d.ts +1 -0
  12. package/declarations/colors/util.d.ts.map +1 -0
  13. package/declarations/colors.d.ts +1 -0
  14. package/declarations/colors.d.ts.map +1 -0
  15. package/declarations/components/accordion.d.ts +3 -137
  16. package/declarations/components/accordion.d.ts.map +1 -0
  17. package/declarations/components/alert.d.ts +3 -137
  18. package/declarations/components/alert.d.ts.map +1 -0
  19. package/declarations/components/avatar.d.ts +9 -98
  20. package/declarations/components/avatar.d.ts.map +1 -0
  21. package/declarations/components/button.d.ts +128 -503
  22. package/declarations/components/button.d.ts.map +1 -0
  23. package/declarations/components/calendar.d.ts +3 -151
  24. package/declarations/components/calendar.d.ts.map +1 -0
  25. package/declarations/components/chip.d.ts +27 -205
  26. package/declarations/components/chip.d.ts.map +1 -0
  27. package/declarations/components/close-button.d.ts +3 -100
  28. package/declarations/components/close-button.d.ts.map +1 -0
  29. package/declarations/components/command.d.ts +5 -146
  30. package/declarations/components/command.d.ts.map +1 -0
  31. package/declarations/components/divider.d.ts +19 -61
  32. package/declarations/components/divider.d.ts.map +1 -0
  33. package/declarations/components/dropdown.d.ts +2 -44
  34. package/declarations/components/dropdown.d.ts.map +1 -0
  35. package/declarations/components/external-link.d.ts +3 -88
  36. package/declarations/components/external-link.d.ts.map +1 -0
  37. package/declarations/components/forms/forms-legacy.d.ts +61 -704
  38. package/declarations/components/forms/forms-legacy.d.ts.map +1 -0
  39. package/declarations/components/forms/forms.d.ts +164 -2201
  40. package/declarations/components/forms/forms.d.ts.map +1 -0
  41. package/declarations/components/forms/index.d.ts +1 -0
  42. package/declarations/components/forms/index.d.ts.map +1 -0
  43. package/declarations/components/index.d.ts +1 -0
  44. package/declarations/components/index.d.ts.map +1 -0
  45. package/declarations/components/kbd.d.ts +3 -150
  46. package/declarations/components/kbd.d.ts.map +1 -0
  47. package/declarations/components/listbox.d.ts +30 -278
  48. package/declarations/components/listbox.d.ts.map +1 -0
  49. package/declarations/components/notification-card.d.ts +3 -130
  50. package/declarations/components/notification-card.d.ts.map +1 -0
  51. package/declarations/components/notifications-container.d.ts +3 -89
  52. package/declarations/components/notifications-container.d.ts.map +1 -0
  53. package/declarations/components/overlays.d.ts +82 -454
  54. package/declarations/components/overlays.d.ts.map +1 -0
  55. package/declarations/components/pagination.d.ts +3 -161
  56. package/declarations/components/pagination.d.ts.map +1 -0
  57. package/declarations/components/popover.d.ts +21 -83
  58. package/declarations/components/popover.d.ts.map +1 -0
  59. package/declarations/components/progress-bar.d.ts +15 -180
  60. package/declarations/components/progress-bar.d.ts.map +1 -0
  61. package/declarations/components/segmented-control.d.ts +3 -211
  62. package/declarations/components/segmented-control.d.ts.map +1 -0
  63. package/declarations/components/shared.d.ts +1 -0
  64. package/declarations/components/shared.d.ts.map +1 -0
  65. package/declarations/components/skeleton.d.ts +33 -119
  66. package/declarations/components/skeleton.d.ts.map +1 -0
  67. package/declarations/components/spinner.d.ts +41 -120
  68. package/declarations/components/spinner.d.ts.map +1 -0
  69. package/declarations/components/table.d.ts +3 -191
  70. package/declarations/components/table.d.ts.map +1 -0
  71. package/declarations/components/tabs.d.ts +3 -208
  72. package/declarations/components/tabs.d.ts.map +1 -0
  73. package/declarations/components/tooltip.d.ts +3 -132
  74. package/declarations/components/tooltip.d.ts.map +1 -0
  75. package/declarations/index.d.ts +1 -0
  76. package/declarations/index.d.ts.map +1 -0
  77. package/declarations/plugin/default-config.d.ts +1 -0
  78. package/declarations/plugin/default-config.d.ts.map +1 -0
  79. package/declarations/plugin/default.d.ts +2 -4
  80. package/declarations/plugin/default.d.ts.map +1 -0
  81. package/declarations/plugin/overlays.d.ts +2 -1
  82. package/declarations/plugin/overlays.d.ts.map +1 -0
  83. package/declarations/plugin/power-select.d.ts +2 -1
  84. package/declarations/plugin/power-select.d.ts.map +1 -0
  85. package/declarations/plugin/resolve.d.ts +4 -3
  86. package/declarations/plugin/resolve.d.ts.map +1 -0
  87. package/declarations/plugin/safelist.d.ts +1 -0
  88. package/declarations/plugin/safelist.d.ts.map +1 -0
  89. package/declarations/plugin/transitions.d.ts +2 -1
  90. package/declarations/plugin/transitions.d.ts.map +1 -0
  91. package/declarations/plugin/types.d.ts +11 -0
  92. package/declarations/plugin/types.d.ts.map +1 -0
  93. package/declarations/plugin.d.ts +1 -0
  94. package/declarations/plugin.d.ts.map +1 -0
  95. package/declarations/tw.d.ts +2 -42
  96. package/declarations/tw.d.ts.map +1 -0
  97. package/declarations/types.d.ts +1 -0
  98. package/declarations/types.d.ts.map +1 -0
  99. package/dist/colors.js +1 -1
  100. package/dist/index.js +48 -8
  101. package/dist/index.js.map +1 -1
  102. package/dist/overlays-DD7muPLd.js.map +1 -1
  103. package/dist/plugin/default.js.map +1 -1
  104. package/dist/plugin.js +20 -6
  105. package/dist/plugin.js.map +1 -1
  106. package/dist/{util-Dp_dlOPq.js → util-PU966Q_x.js} +2 -2
  107. package/dist/util-PU966Q_x.js.map +1 -0
  108. package/package.json +17 -19
  109. package/dist/template-registry.js +0 -2
  110. package/dist/template-registry.js.map +0 -1
  111. package/dist/util-Dp_dlOPq.js.map +0 -1
@@ -1 +1 @@
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,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,EACN,OAAO,EACP,KAAK,EACL,KAAK,EACL,KAAK,EACL,KAAK,EACL,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,KAAK,EACL,MAAM,EACN,MAAM,CACE;AAEV,MAAMC,gBAAgB,GAAG,CAAC,GAAG,EAAE,GAA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AE;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;;;;"}
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,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,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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;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"default.js","sources":["../../src/plugin/default.ts"],"sourcesContent":["import { frontile } from '../plugin';\n\n/**\n * This export provides the Frontile plugin in a format compatible with\n * Tailwind CSS v4's @plugin directive using default Frontile config, no overwrites.\n */\nexport default frontile();\n"],"names":["frontile"],"mappings":";;AAEA;AACA;AACA;AACA;AACA,eAAeA,QAAQ,EAAE;;;;"}
1
+ {"version":3,"file":"default.js","sources":["../../src/plugin/default.ts"],"sourcesContent":["import { frontile } from '../plugin';\n\n/**\n * This export provides the Frontile plugin in a format compatible with\n * Tailwind CSS v4's @plugin directive using default Frontile config, no overwrites.\n */\nexport default frontile();\n"],"names":["frontile"],"mappings":";;AAEA;AACA;AACA;AACA;AACA,eAAeA,QAAQ,EAAE;;"}
package/dist/plugin.js CHANGED
@@ -6,8 +6,8 @@ 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-Dp_dlOPq.js';
10
- export { d as swapColorValues } from './util-Dp_dlOPq.js';
9
+ import { s as semanticColors, g as getContrastingColor } from './util-PU966Q_x.js';
10
+ export { d as swapColorValues } from './util-PU966Q_x.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
@@ -149,7 +149,6 @@ function resolveThemes(themes = {}, defaultTheme) {
149
149
  themeRules[cssVar] = formatted;
150
150
  resolved.colors[colorName] = `var(${cssVar})`;
151
151
  } catch (error) {
152
- // eslint-disable-next-line no-console
153
152
  console.warn(`Failed to parse color "${colorName}":`, error);
154
153
  }
155
154
  }
@@ -178,7 +177,6 @@ function resolveThemes(themes = {}, defaultTheme) {
178
177
  themeRules[cssVar] = formatted;
179
178
  resolved.colors[onColorName] = `var(${cssVar})`;
180
179
  } catch (error) {
181
- // eslint-disable-next-line no-console
182
180
  console.warn(`Failed to generate on-color for "${colorName}":`, error);
183
181
  }
184
182
  }
@@ -286,7 +284,7 @@ function modalSizes(addComponents, margin) {
286
284
  const sizes = ['xs', 'sm', 'md', 'lg', 'xl', 'full'];
287
285
  sizes.forEach(key => {
288
286
  const sizeVar = `var(--modal-${key})`;
289
- let rules = {};
287
+ let rules;
290
288
  if (key === 'full') {
291
289
  rules = {
292
290
  width: sizeVar,
@@ -393,7 +391,10 @@ function frontile(config = {}) {
393
391
  addUtilities
394
392
  }) => {
395
393
  addBase({
396
- ...resolved?.base
394
+ ...resolved?.base,
395
+ ':root': {
396
+ '--divider-sketch': `url("${svgToDataUri(dividerSketchIcon)}")`
397
+ }
397
398
  });
398
399
  addUtilities({
399
400
  ...resolved?.utilities
@@ -418,6 +419,11 @@ function frontile(config = {}) {
418
419
  },
419
420
  '.dark .checked-bg-radio:checked': {
420
421
  backgroundImage: `url("${svgToDataUri(radioIconDark)}")`
422
+ },
423
+ '.divider-sketch': {
424
+ maskImage: 'var(--divider-sketch)',
425
+ maskSize: '100% 100%',
426
+ maskRepeat: 'no-repeat'
421
427
  }
422
428
  });
423
429
  registerPowerSelectComponents(addComponents);
@@ -436,5 +442,13 @@ const checkboxIndeterminateIcon = `<svg viewBox="0 0 16 16" fill="white" xmlns="
436
442
  const radioIconLight = `<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><circle cx="8" cy="8" r="4" fill="white"/></svg>`;
437
443
  const radioIconDark = `<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><circle cx="8" cy="8" r="4" fill="#0c0c15"/></svg>`;
438
444
 
445
+ // Hand-drawn divider rule. Exported from Figma at 432x4 and reduced to one
446
+ // decimal place — the original carried six, which is 0.000025px of precision on
447
+ // a 4px-tall line. `preserveAspectRatio="none"` is load-bearing: without it the
448
+ // default `xMidYMid meet` letterboxes the artwork inside the mask box instead of
449
+ // stretching it. There is deliberately no `fill` — this is used as a mask, so
450
+ // only its alpha matters and the colour comes from the element's background.
451
+ const dividerSketchIcon = `<svg viewBox="0 0 432 4" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><path d="M391.4 0C384.6 0.2 377.4 -0.2 370.4 0.3C368.6 0 366.6 0.5 365 0.3C361.5 -0.1 358.4 0.5 355 0.5C352 0.4 349.1 -0.2 346.2 0.1C343.5 0.4 341 -0 338.5 0.2C335.4 0.6 332.7 -0.1 329.7 0C327.1 0.2 324.4 0 321.8 0C313.5 -0 305.3 -0.1 297.1 0.2C295.9 0.3 294.9 0.2 293.8 0.2C287.8 0 281.8 -0.1 275.9 0.3C273.4 0.5 270.8 0.1 268.3 0.4C262.3 -0.1 256.5 -0 250.5 0.4C248 0.6 245.3 0.6 242.7 0.3C241.3 0.2 239.8 0.1 238.3 0.1C235.3 -0.1 232.4 0.4 229.5 0.2C226.8 0 224.3 0.1 221.7 0.3C219.2 0.5 216.6 -0.1 214.1 0.4C209.7 0.2 205.3 0.2 200.9 0.6C193.4 0.6 185.9 0.6 178.4 0.6C166.8 0.6 155.1 0.6 143.5 0.6C134.5 0.6 125.5 0.7 116.5 0.8C114.2 0.8 112 0.9 109.8 0.9C106.8 1 103.8 1.2 100.8 1.2C94.4 1.1 88.1 1.3 81.7 1.4C80.2 1.4 78.7 1.4 77.2 1.5C70.2 2 63.1 2 56.1 1.5C50.5 1.5 44.9 1.1 39.4 1.7C37.6 1.8 35.7 1.8 33.8 1.9C30.9 2 27.9 2 25 2.4C23 2.6 20.6 2.7 18.4 2.6C12.3 2.5 6.6 3.1 0.8 3.5C0.5 3.5 0.3 3.6 0 3.7C0.6 3.8 1.2 4 1.9 4C6 4 10.1 4 14.2 3.9C15.4 3.9 16.6 3.9 17.6 3.8C21.5 3.3 25.7 3.4 29.8 3.3C35.3 3.1 50.8 3.1 55.3 3.2C63.2 3.3 71.1 3.4 78.9 3.2C80.8 3.2 82.7 3.2 84.6 3.1C87.6 3.1 90.7 3.2 93.5 2.9C96.5 2.7 99.3 3.2 102.4 2.8C104.7 2.6 107.6 2.7 110.2 2.7C132.3 2.7 154.5 2.7 176.6 2.7C184.9 2.7 193.1 2.6 201.4 2.6C208.9 2.6 216.4 2.5 223.9 2.5C259.2 2.5 294.5 2.5 329.8 2.5C345.6 2.5 361.3 2.5 377.1 2.5C382.7 2.5 388.4 2.6 393.8 2C397.6 2 401.3 2 405.1 1.9C413.7 1.8 422.3 1.8 430.9 1.7C431.9 1.7 432.1 1.5 431.9 1.2C431.8 1 431.5 0.8 430.6 0.8C429.9 0.7 429.2 0.6 428.5 0.6C427.7 0.6 427 0.6 426.2 0.5C421.7 0.5 417.3 0.4 412.9 0.1C408.5 -0.1 403.9 0 399.4 0.1C396.8 0.1 394.3 0.3 391.5 0L391.4 0Z"/></svg>`;
452
+
439
453
  export { frontile, safelist };
440
454
  //# sourceMappingURL=plugin.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.js","sources":["../src/plugin/default-config.ts","../src/plugin/resolve.ts","../src/plugin/overlays.ts","../src/plugin/power-select.ts","../src/plugin/transitions.ts","../src/plugin/safelist.ts","../src/plugin.ts"],"sourcesContent":["import { semanticColors } from '../colors/config';\nimport type { LayoutTheme } from '../types';\n\n// Layout defaults otherwise live in index.css; only per-theme values need to\n// be declared here, since index.css can only carry one value for both schemes.\nconst baseLayout: LayoutTheme = {};\n\n// Facet spec: a disabled control keeps its colors and drops opacity. Dark mode\n// uses a lower value because the same veil reads heavier on a dark ground.\nconst lightLayout: LayoutTheme = {\n ...baseLayout,\n opacity: { disabled: 0.5 }\n};\n\nconst darkLayout: LayoutTheme = {\n ...baseLayout,\n opacity: { disabled: 0.4 }\n};\n\nconst defaultConfig = {\n defaultTheme: 'light',\n themes: {\n light: {\n colors: semanticColors.light,\n layout: lightLayout\n },\n dark: {\n colors: semanticColors.dark,\n layout: darkLayout\n }\n }\n};\n\nexport { defaultConfig };\n","import { flatten } from 'flat';\nimport kebabCase from 'lodash.kebabcase';\nimport mapKeys from 'lodash.mapkeys';\nimport { parse, oklch } from 'culori';\nimport deepMerge from 'deepmerge';\n\nimport type {\n ConfigThemes,\n DefaultThemeType,\n PluginConfig,\n ConfigTheme\n} from '../types';\nimport type { CSSRuleObject } from 'tailwindcss/types/config';\nimport { defaultConfig } from './default-config';\nimport { getContrastingColor } from '../colors/util';\n\ninterface ParsedColor {\n formatted: string;\n alpha: number;\n}\n\nconst parsedColorsCache: Record<string, ParsedColor> = {};\n\ninterface ResolvedConfig {\n variants: { name: string; definition: string[] }[];\n utilities: CSSRuleObject | CSSRuleObject[];\n base: CSSRuleObject | CSSRuleObject[];\n colors: Record<string, string>;\n}\n\n/**\n * Parse a color value and convert it to OKLCH format.\n */\nfunction parseAndFormatColor(colorValue: string): ParsedColor {\n const parsed = parse(colorValue);\n if (!parsed) {\n throw new Error(`Failed to parse color: ${colorValue}`);\n }\n\n const color = oklch(parsed);\n const l = ((color.l ?? 0) * 100).toFixed(2);\n const c = (color.c ?? 0).toFixed(4);\n const h = (color.h ?? 0).toFixed(2);\n const alpha = color.alpha ?? 1;\n\n const formatted =\n alpha < 1 ? `oklch(${l}% ${c} ${h} / ${alpha})` : `oklch(${l}% ${c} ${h})`;\n\n return { formatted, alpha };\n}\n\n/**\n * Get parsed color from cache or parse and cache it.\n */\nfunction getCachedColor(colorValue: string): ParsedColor {\n if (!parsedColorsCache[colorValue]) {\n parsedColorsCache[colorValue] = parseAndFormatColor(colorValue);\n }\n return parsedColorsCache[colorValue];\n}\n\nconst SEMANTIC_COLOR_PREFIXES = [\n 'neutral',\n 'primary',\n 'secondary',\n 'tertiary',\n 'success',\n 'danger',\n 'warning',\n 'surface-input',\n 'surface-modal',\n 'surface-drawer'\n];\n\nconst EXCLUDED_COLORS = ['background', 'focus', 'divider'];\n\n/**\n * Determine if a color should have an \"on-\" variant generated.\n *\n * Membership is the explicit `SEMANTIC_COLOR_PREFIXES` allowlist, not a\n * derived rule: every intent category needs a contrast foreground, but only\n * some surfaces do, and which ones is a judgement call recorded in that list.\n * Utility colors and translucent surfaces are rejected outright below.\n */\nfunction shouldGenerateOnColor(colorName: string): boolean {\n if (EXCLUDED_COLORS.includes(colorName)) {\n return false;\n }\n\n // Translucent veils: contrast depends on whatever shows through, so a\n // single on-color cannot be computed for them.\n if (\n colorName.startsWith('surface-overlay') ||\n colorName.startsWith('surface-lift')\n ) {\n return false;\n }\n\n return SEMANTIC_COLOR_PREFIXES.some((prefix) => colorName.startsWith(prefix));\n}\n\nfunction resolveThemes(\n themes: ConfigThemes = {},\n defaultTheme: DefaultThemeType\n): ResolvedConfig {\n const resolved: ResolvedConfig = {\n variants: [],\n utilities: {},\n base: {},\n colors: {}\n };\n\n for (const [themeName, { extend, layout, colors }] of Object.entries(\n themes\n )) {\n let cssSelector = `.${themeName}`;\n let baseSelector = '';\n\n const scheme =\n themeName === 'light' || themeName === 'dark' ? themeName : extend;\n\n // Add theme-inverse selectors\n if (themeName === 'light') {\n cssSelector = `${cssSelector}, .dark .theme-inverse`;\n } else if (themeName === 'dark') {\n cssSelector = `${cssSelector}, .light .theme-inverse`;\n }\n\n // if the theme is the default theme, add the selector to the root element\n if (themeName === defaultTheme) {\n baseSelector = `:root, ${cssSelector}`;\n }\n\n const themeRules: CSSRuleObject = scheme ? { 'color-scheme': scheme } : {};\n\n const flatColors = flattenThemeObject(colors) as Record<string, string>;\n\n const flatLayout = layout\n ? mapKeys(layout, (_, key) => kebabCase(key))\n : {};\n\n resolved.variants.push({\n name: themeName,\n definition: [`&.${themeName}`]\n });\n\n // Process colors and generate CSS variables\n for (const [colorName, colorValue] of Object.entries(flatColors)) {\n if (!colorValue) continue;\n\n const cssVar = `--color-${colorName}`;\n\n // Handle CSS variable references (e.g., var(--color-name))\n if (colorValue.startsWith('var(')) {\n themeRules[cssVar] = colorValue;\n resolved.colors[colorName] = `var(${cssVar})`;\n continue;\n }\n\n try {\n const { formatted } = getCachedColor(colorValue);\n themeRules[cssVar] = formatted;\n resolved.colors[colorName] = `var(${cssVar})`;\n } catch (error) {\n // eslint-disable-next-line no-console\n console.warn(`Failed to parse color \"${colorName}\":`, error);\n }\n }\n\n // Generate \"on-\" colors for optimal contrast on semantic backgrounds\n for (const [colorName, colorValue] of Object.entries(flatColors)) {\n if (!shouldGenerateOnColor(colorName)) continue;\n\n // Check if user has already defined this on-color\n const onColorName = `on-${colorName}`;\n if (flatColors[onColorName]) {\n // User provided custom on-color, skip auto-generation\n continue;\n }\n\n // Skip CSS variable references - can't calculate contrast for them\n if (colorValue.startsWith('var(')) {\n continue;\n }\n\n try {\n const contrastColor = getContrastingColor(colorValue);\n const { formatted } = getCachedColor(contrastColor);\n const cssVar = `--color-${onColorName}`;\n\n themeRules[cssVar] = formatted;\n resolved.colors[onColorName] = `var(${cssVar})`;\n } catch (error) {\n // eslint-disable-next-line no-console\n console.warn(`Failed to generate on-color for \"${colorName}\":`, error);\n }\n }\n\n // Process layout variables\n for (const [key, value] of Object.entries(flatLayout)) {\n if (!value) continue;\n\n const varPrefix = `--${key}`;\n\n if (typeof value === 'object') {\n for (const [nestedKey, nestedValue] of Object.entries(value)) {\n const cssVar =\n nestedKey === 'DEFAULT' ? varPrefix : `${varPrefix}-${nestedKey}`;\n themeRules[cssVar] = nestedValue as string;\n }\n } else {\n // Format opacity values (e.g., 0.5 -> .5)\n const formattedValue =\n varPrefix.includes('opacity') && typeof value === 'number'\n ? String(value).replace(/^0\\./, '.')\n : value;\n themeRules[varPrefix] = formattedValue as string;\n }\n }\n\n if (baseSelector) {\n resolved.base = {\n ...resolved.base,\n [baseSelector]: themeRules\n };\n } else {\n resolved.utilities = {\n ...resolved.utilities,\n [cssSelector]: themeRules\n };\n }\n }\n\n return resolved;\n}\n\nfunction removeDefaultKeys<T extends Record<string, unknown>>(\n obj: T\n): Record<string, unknown> {\n const newObj: Record<string, unknown> = {};\n\n for (const key in obj) {\n if (key.endsWith('-DEFAULT')) {\n newObj[key.replace('-DEFAULT', '')] = obj[key];\n continue;\n }\n newObj[key] = obj[key];\n }\n\n return newObj;\n}\n\nfunction flattenThemeObject<TTarget>(obj: TTarget): Record<string, unknown> {\n return removeDefaultKeys(\n flatten(obj, {\n safe: true,\n delimiter: '-'\n }) as Record<string, unknown>\n );\n}\n\nexport const isBaseTheme = (theme: string): boolean =>\n theme === 'light' || theme === 'dark';\n\nfunction resolveConfig(userConfig: PluginConfig = {}): {\n themes: ConfigThemes;\n defaultTheme: DefaultThemeType;\n} {\n const {\n themes: userThemes = {},\n defaultTheme = 'light',\n layout: userLayout\n } = userConfig;\n const themes: ConfigThemes & { dark: ConfigTheme; light: ConfigTheme } =\n defaultConfig.themes;\n\n if (typeof userLayout === 'object') {\n themes.dark.layout = deepMerge(themes.dark.layout || {}, userLayout);\n themes.light.layout = deepMerge(themes.light.layout || {}, userLayout);\n }\n\n if (typeof userThemes['dark'] === 'object') {\n themes.dark = deepMerge(themes.dark, userThemes['dark']);\n }\n\n if (typeof userThemes['light'] === 'object') {\n themes.light = deepMerge(themes.light, userThemes['light']);\n }\n\n Object.keys(userThemes).forEach((name) => {\n if (isBaseTheme(name)) {\n return;\n }\n const { extend } = userThemes[name] || {};\n const extendFrom = extend && isBaseTheme(extend) ? extend : 'light';\n\n themes[name] = deepMerge(themes[extendFrom], userThemes[name] || {});\n });\n\n return { themes, defaultTheme };\n}\n\nexport { resolveThemes, resolveConfig };\n","import type { CSSRuleObject, PluginAPI } from 'tailwindcss/types/config';\n\nfunction drawerSizes(\n addComponents: PluginAPI['addComponents'],\n margin: string\n): void {\n const sizes = ['xs', 'sm', 'md', 'lg', 'xl', 'full'];\n\n sizes.forEach((key) => {\n const sizeVar = `var(--drawer-${key})`;\n\n // `min()` keeps the size within the viewport. A media query cannot be used\n // here: `var()` is not allowed in a media query condition.\n addComponents({\n [`.drawer--vertical-${key}`]: {\n maxHeight:\n key === 'full'\n ? `calc(${sizeVar} - 1rem)`\n : `min(${sizeVar}, calc(100vh - ${margin}))`\n }\n });\n\n addComponents({\n [`.drawer--horizontal-${key}`]: {\n maxWidth:\n key === 'full'\n ? `calc(${sizeVar} - 1rem)`\n : `min(${sizeVar}, calc(100vw - ${margin}))`\n }\n });\n });\n}\n\nfunction modalSizes(\n addComponents: PluginAPI['addComponents'],\n margin: string\n): void {\n const sizes = ['xs', 'sm', 'md', 'lg', 'xl', 'full'];\n\n sizes.forEach((key) => {\n const sizeVar = `var(--modal-${key})`;\n let rules: CSSRuleObject = {};\n\n if (key === 'full') {\n rules = {\n width: sizeVar,\n height: sizeVar,\n marginTop: 'auto',\n marginBottom: 'auto',\n borderRadius: '0'\n };\n } else {\n // `min()` keeps the size within the viewport. A media query cannot be\n // used here: `var()` is not allowed in a media query condition.\n rules = {\n maxWidth: `min(${sizeVar}, calc(100vw - ${margin}))`\n };\n }\n\n addComponents({ [`.modal--${key}`]: rules });\n });\n}\n\nexport { modalSizes, drawerSizes };\n","import powerSelectPlugin from 'tailwindcss-ember-power-select';\nimport type { PluginAPI } from 'tailwindcss/types/config';\n\nfunction registerPowerSelectComponents(\n addComponents: PluginAPI['addComponents']\n): void {\n addComponents({\n '.ember-power-select-trigger, .ember-power-select-dropdown, .ember-power-select-search-input':\n {\n '--tw-bg-opacity': '1',\n '--tw-border-opacity': '1',\n '--tw-text-opacity': '1',\n '--tw-placeholder-opacity': '1'\n },\n // Dark-mode surfaces for the deprecated forms-legacy components. These\n // used to reference the numbered `--default-*` variables, which went away\n // with the color scale in v0.18 — leaving the dropdown transparent and its\n // options unreadable. Mapped onto the semantic tokens instead.\n '.dark .ember-power-select-search-input, .dark .ember-power-select-trigger, .dark .ember-power-select-dropdown':\n {\n backgroundColor: `var(--color-surface-input)`,\n color: `var(--color-neutral-bolder)`\n }\n });\n powerSelectPlugin.registerComponents(\n {\n addComponents\n },\n {},\n {\n textColor: `hsl(var(--default-900) / var(--default-900-opacity, var(--tw-bg-opacity)))`,\n disabledTextColor: `hsl(var(--default-500) / var(--default-500-opacity, var(--tw-text-opacity)))`,\n disabledBorderColor: `hsl(var(--default-200) / var(--default-200-opacity, var(--tw-border-opacity)))`,\n placeholderTextColor: `hsl(var(--default-400) / var(--default-400-opacity, var(--tw-placeholder-opacity)))`,\n backgroundColor: 'white',\n dropdownBackgroundColor: 'white',\n borderColor: `hsl(var(--default-400) / var(--default-400-opacity, var(--tw-border-opacity)))`,\n focusBorderColor: `hsl(var(--primary-400) / var(--primary-400-opacity, var(--tw-border-opacity)))`,\n invalidBorderColor: `hsl(var(--danger-400) / var(--danger-400-opacity, var(--tw-border-opacity)))`\n // triggerFocusBoxShadow: config.focusBoxShadow,\n // triggerFocusBoxShadowInvalid: config.focusBoxShadowInvalid,\n // searchInputFocusBoxShadow: config.focusBoxShadow\n }\n );\n}\n\nexport { registerPowerSelectComponents };\n","import kebabCase from 'lodash.kebabcase';\nimport type { CSSRuleObject, PluginAPI } from 'tailwindcss/types/config';\n\ntype Transition = {\n enter: CSSRuleObject;\n leave: CSSRuleObject;\n leaveTo?: CSSRuleObject;\n enterTo?: CSSRuleObject;\n leaveActive?: CSSRuleObject;\n enterActive?: CSSRuleObject;\n};\n\nfunction addTransitions(\n addComponents: PluginAPI['addComponents'],\n baseSelector: string,\n transitions?: { [key: string]: Transition }\n): void {\n if (!transitions) {\n return;\n }\n\n Object.keys(transitions).forEach((key) => {\n const transition = transitions[key];\n\n if (!transition) {\n return;\n }\n const name = `${baseSelector}--${kebabCase(key)}`;\n\n const { enter, enterTo, leave, leaveActive, enterActive, leaveTo } =\n transition;\n\n addComponents({\n [`${name}-enter`]: enter,\n [`${name}-enter-to`]: enterTo || leave,\n [`${name}-leave`]: leave,\n [`${name}-leave-to`]: leaveTo || enter\n });\n\n if (enterActive) {\n addComponents({\n [`${name}-enter-active`]: enterActive\n });\n }\n if (leaveActive) {\n addComponents({\n [`${name}-leave-active`]: leaveActive\n });\n }\n });\n}\n\nexport { addTransitions };\n","export const safelist = [\n 'js-focus-visible',\n 'sr-only',\n 'overlay-transition--fade-enter',\n 'overlay-transition--fade-enter-to',\n 'overlay-transition--fade-leave',\n 'overlay-transition--fade-leave-to',\n 'overlay-transition--fade-enter-active',\n 'overlay-transition--fade-leave-active',\n 'overlay-transition--zoom-enter',\n 'overlay-transition--zoom-enter-to',\n 'overlay-transition--zoom-leave',\n 'overlay-transition--zoom-leave-to',\n 'overlay-transition--zoom-enter-active',\n 'overlay-transition--zoom-leave-active',\n 'overlay-transition--slide-from-left-enter',\n 'overlay-transition--slide-from-left-enter-to',\n 'overlay-transition--slide-from-left-leave',\n 'overlay-transition--slide-from-left-leave-to',\n 'overlay-transition--slide-from-left-enter-active',\n 'overlay-transition--slide-from-left-leave-active',\n 'overlay-transition--slide-from-right-enter',\n 'overlay-transition--slide-from-right-enter-to',\n 'overlay-transition--slide-from-right-leave',\n 'overlay-transition--slide-from-right-leave-to',\n 'overlay-transition--slide-from-right-enter-active',\n 'overlay-transition--slide-from-right-leave-active',\n 'overlay-transition--slide-from-top-enter',\n 'overlay-transition--slide-from-top-enter-to',\n 'overlay-transition--slide-from-top-leave',\n 'overlay-transition--slide-from-top-leave-to',\n 'overlay-transition--slide-from-top-enter-active',\n 'overlay-transition--slide-from-top-leave-active',\n 'overlay-transition--slide-from-bottom-enter',\n 'overlay-transition--slide-from-bottom-enter-to',\n 'overlay-transition--slide-from-bottom-leave',\n 'overlay-transition--slide-from-bottom-leave-to',\n 'overlay-transition--slide-from-bottom-enter-active',\n 'overlay-transition--slide-from-bottom-leave-active',\n 'overlay-transition--scale-enter',\n 'overlay-transition--scale-enter-to',\n 'overlay-transition--scale-leave',\n 'overlay-transition--scale-leave-to',\n 'overlay-transition--scale-enter-active',\n 'overlay-transition--scale-leave-active',\n 'overlay-transition--tooltip-enter',\n 'overlay-transition--tooltip-enter-to',\n 'overlay-transition--tooltip-leave',\n 'overlay-transition--tooltip-leave-to',\n 'overlay-transition--tooltip-enter-active',\n 'overlay-transition--tooltip-leave-active',\n 'overlay-transition--command-enter',\n 'overlay-transition--command-enter-to',\n 'overlay-transition--command-leave',\n 'overlay-transition--command-leave-to',\n 'overlay-transition--command-enter-active',\n 'overlay-transition--command-leave-active',\n 'drawer--vertical-xs',\n 'drawer--horizontal-xs',\n 'drawer--vertical-sm',\n 'drawer--horizontal-sm',\n 'drawer--vertical-md',\n 'drawer--horizontal-md',\n 'drawer--vertical-lg',\n 'drawer--horizontal-lg',\n 'drawer--vertical-xl',\n 'drawer--horizontal-xl',\n 'drawer--vertical-full',\n 'drawer--horizontal-full',\n 'modal--xs',\n 'modal--sm',\n 'modal--md',\n 'modal--lg',\n 'modal--xl',\n 'modal--full',\n 'ember-power-select-trigger',\n 'ember-power-select-trigger--active',\n 'ember-power-select-placeholder',\n 'ember-power-select-status-icon',\n 'ember-power-select-dropdown',\n 'ember-power-select-options',\n 'ember-power-select-option',\n 'ember-power-select-clear-btn',\n 'ember-power-select-search',\n 'ember-power-select-search-input',\n 'ember-power-select-search-input--active',\n 'ember-power-select-group',\n 'ember-power-select-group-name',\n 'ember-power-select-trigger-multiple-input',\n 'ember-power-select-trigger-multiple-input--active',\n 'ember-power-select-multiple-options',\n 'ember-power-select-multiple-option',\n 'ember-power-select-multiple-remove-btn',\n 'ember-power-select-trigger-sm',\n 'ember-power-select-trigger-lg'\n];\n","import plugin from 'tailwindcss/plugin';\nimport { overlayTransitions } from './components/overlays';\nimport svgToDataUri from 'mini-svg-data-uri';\n\nimport { resolveThemes, resolveConfig } from './plugin/resolve';\nimport { modalSizes, drawerSizes } from './plugin/overlays';\nimport { registerPowerSelectComponents } from './plugin/power-select';\nimport { addTransitions } from './plugin/transitions';\nimport type { PluginConfig } from './types';\nexport { swapColorValues } from './colors/util';\nexport { safelist } from './plugin/safelist';\n\nfunction frontile(config: PluginConfig = {}): ReturnType<typeof plugin> {\n const c = resolveConfig(config);\n const resolved = resolveThemes(c.themes, c.defaultTheme);\n\n return plugin(\n ({ addComponents, theme, addVariant, addBase, addUtilities }) => {\n addBase({\n ...resolved?.base\n });\n\n addUtilities({\n ...resolved?.utilities\n });\n\n resolved?.variants.forEach((variant) => {\n addVariant(variant.name, variant.definition);\n });\n\n addTransitions(addComponents, '.overlay-transition', overlayTransitions);\n\n // drawer and modal sizes (using CSS variables)\n drawerSizes(addComponents, theme('spacing.8'));\n modalSizes(addComponents, theme('spacing.8'));\n\n addComponents({\n '.checked-bg-checkbox:checked': {\n backgroundImage: `url(\"${svgToDataUri(checkboxIcon)}\")`\n },\n '.indeterminate-bg-checkbox:indeterminate': {\n backgroundImage: `url(\"${svgToDataUri(checkboxIndeterminateIcon)}\")`\n },\n '.checked-bg-radio:checked': {\n backgroundImage: `url(\"${svgToDataUri(radioIconLight)}\")`\n },\n '.dark .checked-bg-radio:checked': {\n backgroundImage: `url(\"${svgToDataUri(radioIconDark)}\")`\n }\n });\n\n registerPowerSelectComponents(addComponents);\n },\n {\n theme: {\n extend: {\n colors: {\n ...(resolved?.colors as Record<string, never>)\n }\n }\n }\n }\n );\n}\n\nconst checkboxIcon = `<svg viewBox=\"0 0 16 16\" fill=\"white\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M5.125 7.666a1.304 1.304 0 00-.882-.328 1.3 1.3 0 00-.876.343c-.232.216-.364.51-.367.816-.003.307.124.602.352.822l2.508 2.339c.235.219.554.342.886.342.333 0 .651-.123.887-.342l5.015-4.677c.228-.22.355-.516.352-.822a1.132 1.132 0 00-.367-.817A1.301 1.301 0 0011.757 5a1.304 1.304 0 00-.882.328l-4.129 3.85-1.621-1.512z\"/></svg>`;\nconst checkboxIndeterminateIcon = `<svg viewBox=\"0 0 16 16\" fill=\"white\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M3 7.5C3 7.22386 3.22386 7 3.5 7H12.5C12.7761 7 13 7.22386 13 7.5V8.5C13 8.77614 12.7761 9 12.5 9H3.5C3.22386 9 3 8.77614 3 8.5V7.5Z\" fill=\"white\"/></svg>`;\nconst radioIconLight = `<svg viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\"><circle cx=\"8\" cy=\"8\" r=\"4\" fill=\"white\"/></svg>`;\nconst radioIconDark = `<svg viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\"><circle cx=\"8\" cy=\"8\" r=\"4\" fill=\"#0c0c15\"/></svg>`;\n\nexport { frontile };\n"],"names":["baseLayout","lightLayout","opacity","disabled","darkLayout","defaultConfig","defaultTheme","themes","light","colors","semanticColors","layout","dark","parsedColorsCache","parseAndFormatColor","colorValue","parsed","parse","Error","color","oklch","l","toFixed","c","h","alpha","formatted","getCachedColor","SEMANTIC_COLOR_PREFIXES","EXCLUDED_COLORS","shouldGenerateOnColor","colorName","includes","startsWith","some","prefix","resolveThemes","resolved","variants","utilities","base","themeName","extend","Object","entries","cssSelector","baseSelector","scheme","themeRules","flatColors","flattenThemeObject","flatLayout","mapKeys","_","key","kebabCase","push","name","definition","cssVar","error","console","warn","onColorName","contrastColor","getContrastingColor","value","varPrefix","nestedKey","nestedValue","formattedValue","String","replace","removeDefaultKeys","obj","newObj","endsWith","flatten","safe","delimiter","isBaseTheme","theme","resolveConfig","userConfig","userThemes","userLayout","deepMerge","keys","forEach","extendFrom","drawerSizes","addComponents","margin","sizes","sizeVar","maxHeight","maxWidth","modalSizes","rules","width","height","marginTop","marginBottom","borderRadius","registerPowerSelectComponents","backgroundColor","powerSelectPlugin","registerComponents","textColor","disabledTextColor","disabledBorderColor","placeholderTextColor","dropdownBackgroundColor","borderColor","focusBorderColor","invalidBorderColor","addTransitions","transitions","transition","enter","enterTo","leave","leaveActive","enterActive","leaveTo","safelist","frontile","config","plugin","addVariant","addBase","addUtilities","variant","overlayTransitions","backgroundImage","svgToDataUri","checkboxIcon","checkboxIndeterminateIcon","radioIconLight","radioIconDark"],"mappings":";;;;;;;;;;;;AAGA;AACA;AACA,MAAMA,UAAuB,GAAG,EAAE;;AAElC;AACA;AACA,MAAMC,WAAwB,GAAG;AAC/B,EAAA,GAAGD,UAAU;AACbE,EAAAA,OAAO,EAAE;AAAEC,IAAAA,QAAQ,EAAE;AAAI;AAC3B,CAAC;AAED,MAAMC,UAAuB,GAAG;AAC9B,EAAA,GAAGJ,UAAU;AACbE,EAAAA,OAAO,EAAE;AAAEC,IAAAA,QAAQ,EAAE;AAAI;AAC3B,CAAC;AAED,MAAME,aAAa,GAAG;AACpBC,EACAC,MAAM,EAAE;AACNC,IAAAA,KAAK,EAAE;MACLC,MAAM,EAAEC,cAAc,CAACF,KAAK;AAC5BG,MAAAA,MAAM,EAAEV;KACT;AACDW,IAAAA,IAAI,EAAE;MACJH,MAAM,EAAEC,cAAc,CAACE,IAAI;AAC3BD,MAAAA,MAAM,EAAEP;AACV;AACF;AACF,CAAC;;ACVD,MAAMS,iBAA8C,GAAG,EAAE;AASzD;AACA;AACA;AACA,SAASC,mBAAmBA,CAACC,UAAkB,EAAe;AAC5D,EAAA,MAAMC,MAAM,GAAGC,KAAK,CAACF,UAAU,CAAC;EAChC,IAAI,CAACC,MAAM,EAAE;AACX,IAAA,MAAM,IAAIE,KAAK,CAAC,CAAA,uBAAA,EAA0BH,UAAU,EAAE,CAAC;AACzD,EAAA;AAEA,EAAA,MAAMI,KAAK,GAAGC,KAAK,CAACJ,MAAM,CAAC;AAC3B,EAAA,MAAMK,CAAC,GAAG,CAAC,CAACF,KAAK,CAACE,CAAC,IAAI,CAAC,IAAI,GAAG,EAAEC,OAAO,CAAC,CAAC,CAAC;AAC3C,EAAA,MAAMC,CAAC,GAAG,CAACJ,K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UAAA,GAAI4B,QAAQ,EAAE5B;AAChB;AACF;AACF;AACF,GACF,CAAC;AACH;AAEA,MAAM+H,YAAY,GAAG,CAAA,wZAAA,CAA0Z;AAC/a,MAAMC,yBAAyB,GAAG,CAAA,4OAAA,CAA8O;AAChR,MAAMC,cAAc,GAAG,CAAA,4GAAA,CAA8G;AACrI,MAAMC,aAAa,GAAG,CAAA,8GAAA,CAAgH;;;;"}
1
+ {"version":3,"file":"plugin.js","sources":["../src/plugin/default-config.ts","../src/plugin/resolve.ts","../src/plugin/overlays.ts","../src/plugin/power-select.ts","../src/plugin/transitions.ts","../src/plugin/safelist.ts","../src/plugin.ts"],"sourcesContent":["import { semanticColors } from '../colors/config';\nimport type { LayoutTheme } from '../types';\n\n// Layout defaults otherwise live in index.css; only per-theme values need to\n// be declared here, since index.css can only carry one value for both schemes.\nconst baseLayout: LayoutTheme = {};\n\n// Facet spec: a disabled control keeps its colors and drops opacity. Dark mode\n// uses a lower value because the same veil reads heavier on a dark ground.\nconst lightLayout: LayoutTheme = {\n ...baseLayout,\n opacity: { disabled: 0.5 }\n};\n\nconst darkLayout: LayoutTheme = {\n ...baseLayout,\n opacity: { disabled: 0.4 }\n};\n\nconst defaultConfig = {\n defaultTheme: 'light',\n themes: {\n light: {\n colors: semanticColors.light,\n layout: lightLayout\n },\n dark: {\n colors: semanticColors.dark,\n layout: darkLayout\n }\n }\n};\n\nexport { defaultConfig };\n","import { flatten } from 'flat';\nimport kebabCase from 'lodash.kebabcase';\nimport mapKeys from 'lodash.mapkeys';\nimport { parse, oklch } from 'culori';\nimport deepMerge from 'deepmerge';\n\nimport type {\n ConfigThemes,\n DefaultThemeType,\n PluginConfig,\n ConfigTheme\n} from '../types';\nimport type { CSSRuleObject } from './types';\nimport { defaultConfig } from './default-config';\nimport { getContrastingColor } from '../colors/util';\n\ninterface ParsedColor {\n formatted: string;\n alpha: number;\n}\n\nconst parsedColorsCache: Record<string, ParsedColor> = {};\n\ninterface ResolvedConfig {\n variants: { name: string; definition: string[] }[];\n // Every entry is a selector mapped to its own nested rule object (see the\n // `resolved.utilities[cssSelector] = themeRules` assignment below) --\n // never a bare CSS declaration -- so this is narrower than `base`, which\n // `addBase` accepts as either shape.\n utilities: Record<string, CSSRuleObject>;\n base: CSSRuleObject;\n colors: Record<string, string>;\n}\n\n/**\n * Parse a color value and convert it to OKLCH format.\n */\nfunction parseAndFormatColor(colorValue: string): ParsedColor {\n const parsed = parse(colorValue);\n if (!parsed) {\n throw new Error(`Failed to parse color: ${colorValue}`);\n }\n\n const color = oklch(parsed);\n const l = ((color.l ?? 0) * 100).toFixed(2);\n const c = (color.c ?? 0).toFixed(4);\n const h = (color.h ?? 0).toFixed(2);\n const alpha = color.alpha ?? 1;\n\n const formatted =\n alpha < 1 ? `oklch(${l}% ${c} ${h} / ${alpha})` : `oklch(${l}% ${c} ${h})`;\n\n return { formatted, alpha };\n}\n\n/**\n * Get parsed color from cache or parse and cache it.\n */\nfunction getCachedColor(colorValue: string): ParsedColor {\n if (!parsedColorsCache[colorValue]) {\n parsedColorsCache[colorValue] = parseAndFormatColor(colorValue);\n }\n return parsedColorsCache[colorValue];\n}\n\nconst SEMANTIC_COLOR_PREFIXES = [\n 'neutral',\n 'primary',\n 'secondary',\n 'tertiary',\n 'success',\n 'danger',\n 'warning',\n 'surface-input',\n 'surface-modal',\n 'surface-drawer'\n];\n\nconst EXCLUDED_COLORS = ['background', 'focus', 'divider'];\n\n/**\n * Determine if a color should have an \"on-\" variant generated.\n *\n * Membership is the explicit `SEMANTIC_COLOR_PREFIXES` allowlist, not a\n * derived rule: every intent category needs a contrast foreground, but only\n * some surfaces do, and which ones is a judgement call recorded in that list.\n * Utility colors and translucent surfaces are rejected outright below.\n */\nfunction shouldGenerateOnColor(colorName: string): boolean {\n if (EXCLUDED_COLORS.includes(colorName)) {\n return false;\n }\n\n // Translucent veils: contrast depends on whatever shows through, so a\n // single on-color cannot be computed for them.\n if (\n colorName.startsWith('surface-overlay') ||\n colorName.startsWith('surface-lift')\n ) {\n return false;\n }\n\n return SEMANTIC_COLOR_PREFIXES.some((prefix) => colorName.startsWith(prefix));\n}\n\nfunction resolveThemes(\n themes: ConfigThemes = {},\n defaultTheme: DefaultThemeType\n): ResolvedConfig {\n const resolved: ResolvedConfig = {\n variants: [],\n utilities: {},\n base: {},\n colors: {}\n };\n\n for (const [themeName, { extend, layout, colors }] of Object.entries(\n themes\n )) {\n let cssSelector = `.${themeName}`;\n let baseSelector = '';\n\n const scheme =\n themeName === 'light' || themeName === 'dark' ? themeName : extend;\n\n // Add theme-inverse selectors\n if (themeName === 'light') {\n cssSelector = `${cssSelector}, .dark .theme-inverse`;\n } else if (themeName === 'dark') {\n cssSelector = `${cssSelector}, .light .theme-inverse`;\n }\n\n // if the theme is the default theme, add the selector to the root element\n if (themeName === defaultTheme) {\n baseSelector = `:root, ${cssSelector}`;\n }\n\n const themeRules: CSSRuleObject = scheme ? { 'color-scheme': scheme } : {};\n\n const flatColors = flattenThemeObject(colors) as Record<string, string>;\n\n const flatLayout = layout\n ? mapKeys(layout, (_, key) => kebabCase(key))\n : {};\n\n resolved.variants.push({\n name: themeName,\n definition: [`&.${themeName}`]\n });\n\n // Process colors and generate CSS variables\n for (const [colorName, colorValue] of Object.entries(flatColors)) {\n if (!colorValue) continue;\n\n const cssVar = `--color-${colorName}`;\n\n // Handle CSS variable references (e.g., var(--color-name))\n if (colorValue.startsWith('var(')) {\n themeRules[cssVar] = colorValue;\n resolved.colors[colorName] = `var(${cssVar})`;\n continue;\n }\n\n try {\n const { formatted } = getCachedColor(colorValue);\n themeRules[cssVar] = formatted;\n resolved.colors[colorName] = `var(${cssVar})`;\n } catch (error) {\n console.warn(`Failed to parse color \"${colorName}\":`, error);\n }\n }\n\n // Generate \"on-\" colors for optimal contrast on semantic backgrounds\n for (const [colorName, colorValue] of Object.entries(flatColors)) {\n if (!shouldGenerateOnColor(colorName)) continue;\n\n // Check if user has already defined this on-color\n const onColorName = `on-${colorName}`;\n if (flatColors[onColorName]) {\n // User provided custom on-color, skip auto-generation\n continue;\n }\n\n // Skip CSS variable references - can't calculate contrast for them\n if (colorValue.startsWith('var(')) {\n continue;\n }\n\n try {\n const contrastColor = getContrastingColor(colorValue);\n const { formatted } = getCachedColor(contrastColor);\n const cssVar = `--color-${onColorName}`;\n\n themeRules[cssVar] = formatted;\n resolved.colors[onColorName] = `var(${cssVar})`;\n } catch (error) {\n console.warn(`Failed to generate on-color for \"${colorName}\":`, error);\n }\n }\n\n // Process layout variables\n for (const [key, value] of Object.entries(flatLayout)) {\n if (!value) continue;\n\n const varPrefix = `--${key}`;\n\n if (typeof value === 'object') {\n for (const [nestedKey, nestedValue] of Object.entries(value)) {\n const cssVar =\n nestedKey === 'DEFAULT' ? varPrefix : `${varPrefix}-${nestedKey}`;\n themeRules[cssVar] = nestedValue as string;\n }\n } else {\n // Format opacity values (e.g., 0.5 -> .5)\n const formattedValue =\n varPrefix.includes('opacity') && typeof value === 'number'\n ? String(value).replace(/^0\\./, '.')\n : value;\n themeRules[varPrefix] = formattedValue as string;\n }\n }\n\n if (baseSelector) {\n resolved.base = {\n ...resolved.base,\n [baseSelector]: themeRules\n };\n } else {\n resolved.utilities = {\n ...resolved.utilities,\n [cssSelector]: themeRules\n };\n }\n }\n\n return resolved;\n}\n\nfunction removeDefaultKeys<T extends Record<string, unknown>>(\n obj: T\n): Record<string, unknown> {\n const newObj: Record<string, unknown> = {};\n\n for (const key in obj) {\n if (key.endsWith('-DEFAULT')) {\n newObj[key.replace('-DEFAULT', '')] = obj[key];\n continue;\n }\n newObj[key] = obj[key];\n }\n\n return newObj;\n}\n\nfunction flattenThemeObject<TTarget>(obj: TTarget): Record<string, unknown> {\n return removeDefaultKeys(\n flatten(obj, {\n safe: true,\n delimiter: '-'\n }) as Record<string, unknown>\n );\n}\n\nexport const isBaseTheme = (theme: string): boolean =>\n theme === 'light' || theme === 'dark';\n\nfunction resolveConfig(userConfig: PluginConfig = {}): {\n themes: ConfigThemes;\n defaultTheme: DefaultThemeType;\n} {\n const {\n themes: userThemes = {},\n defaultTheme = 'light',\n layout: userLayout\n } = userConfig;\n const themes: ConfigThemes & { dark: ConfigTheme; light: ConfigTheme } =\n defaultConfig.themes;\n\n if (typeof userLayout === 'object') {\n themes.dark.layout = deepMerge(themes.dark.layout || {}, userLayout);\n themes.light.layout = deepMerge(themes.light.layout || {}, userLayout);\n }\n\n if (typeof userThemes['dark'] === 'object') {\n themes.dark = deepMerge(themes.dark, userThemes['dark']);\n }\n\n if (typeof userThemes['light'] === 'object') {\n themes.light = deepMerge(themes.light, userThemes['light']);\n }\n\n Object.keys(userThemes).forEach((name) => {\n if (isBaseTheme(name)) {\n return;\n }\n const { extend } = userThemes[name] || {};\n const extendFrom = extend && isBaseTheme(extend) ? extend : 'light';\n\n themes[name] = deepMerge(themes[extendFrom], userThemes[name] || {});\n });\n\n return { themes, defaultTheme };\n}\n\nexport { resolveThemes, resolveConfig };\n","import type { CSSRuleObject, PluginAPI } from './types';\n\nfunction drawerSizes(\n addComponents: PluginAPI['addComponents'],\n margin: string\n): void {\n const sizes = ['xs', 'sm', 'md', 'lg', 'xl', 'full'];\n\n sizes.forEach((key) => {\n const sizeVar = `var(--drawer-${key})`;\n\n // `min()` keeps the size within the viewport. A media query cannot be used\n // here: `var()` is not allowed in a media query condition.\n addComponents({\n [`.drawer--vertical-${key}`]: {\n maxHeight:\n key === 'full'\n ? `calc(${sizeVar} - 1rem)`\n : `min(${sizeVar}, calc(100vh - ${margin}))`\n }\n });\n\n addComponents({\n [`.drawer--horizontal-${key}`]: {\n maxWidth:\n key === 'full'\n ? `calc(${sizeVar} - 1rem)`\n : `min(${sizeVar}, calc(100vw - ${margin}))`\n }\n });\n });\n}\n\nfunction modalSizes(\n addComponents: PluginAPI['addComponents'],\n margin: string\n): void {\n const sizes = ['xs', 'sm', 'md', 'lg', 'xl', 'full'];\n\n sizes.forEach((key) => {\n const sizeVar = `var(--modal-${key})`;\n let rules: CSSRuleObject;\n\n if (key === 'full') {\n rules = {\n width: sizeVar,\n height: sizeVar,\n marginTop: 'auto',\n marginBottom: 'auto',\n borderRadius: '0'\n };\n } else {\n // `min()` keeps the size within the viewport. A media query cannot be\n // used here: `var()` is not allowed in a media query condition.\n rules = {\n maxWidth: `min(${sizeVar}, calc(100vw - ${margin}))`\n };\n }\n\n addComponents({ [`.modal--${key}`]: rules });\n });\n}\n\nexport { modalSizes, drawerSizes };\n","import powerSelectPlugin from 'tailwindcss-ember-power-select';\nimport type { PluginAPI } from './types';\n\nfunction registerPowerSelectComponents(\n addComponents: PluginAPI['addComponents']\n): void {\n addComponents({\n '.ember-power-select-trigger, .ember-power-select-dropdown, .ember-power-select-search-input':\n {\n '--tw-bg-opacity': '1',\n '--tw-border-opacity': '1',\n '--tw-text-opacity': '1',\n '--tw-placeholder-opacity': '1'\n },\n // Dark-mode surfaces for the deprecated forms-legacy components. These\n // used to reference the numbered `--default-*` variables, which went away\n // with the color scale in v0.18 — leaving the dropdown transparent and its\n // options unreadable. Mapped onto the semantic tokens instead.\n '.dark .ember-power-select-search-input, .dark .ember-power-select-trigger, .dark .ember-power-select-dropdown':\n {\n backgroundColor: `var(--color-surface-input)`,\n color: `var(--color-neutral-bolder)`\n }\n });\n powerSelectPlugin.registerComponents(\n {\n addComponents\n },\n {},\n {\n textColor: `hsl(var(--default-900) / var(--default-900-opacity, var(--tw-bg-opacity)))`,\n disabledTextColor: `hsl(var(--default-500) / var(--default-500-opacity, var(--tw-text-opacity)))`,\n disabledBorderColor: `hsl(var(--default-200) / var(--default-200-opacity, var(--tw-border-opacity)))`,\n placeholderTextColor: `hsl(var(--default-400) / var(--default-400-opacity, var(--tw-placeholder-opacity)))`,\n backgroundColor: 'white',\n dropdownBackgroundColor: 'white',\n borderColor: `hsl(var(--default-400) / var(--default-400-opacity, var(--tw-border-opacity)))`,\n focusBorderColor: `hsl(var(--primary-400) / var(--primary-400-opacity, var(--tw-border-opacity)))`,\n invalidBorderColor: `hsl(var(--danger-400) / var(--danger-400-opacity, var(--tw-border-opacity)))`\n // triggerFocusBoxShadow: config.focusBoxShadow,\n // triggerFocusBoxShadowInvalid: config.focusBoxShadowInvalid,\n // searchInputFocusBoxShadow: config.focusBoxShadow\n }\n );\n}\n\nexport { registerPowerSelectComponents };\n","import kebabCase from 'lodash.kebabcase';\nimport type { CSSRuleObject, PluginAPI } from './types';\n\ntype Transition = {\n enter: CSSRuleObject;\n leave: CSSRuleObject;\n leaveTo?: CSSRuleObject;\n enterTo?: CSSRuleObject;\n leaveActive?: CSSRuleObject;\n enterActive?: CSSRuleObject;\n};\n\nfunction addTransitions(\n addComponents: PluginAPI['addComponents'],\n baseSelector: string,\n transitions?: { [key: string]: Transition }\n): void {\n if (!transitions) {\n return;\n }\n\n Object.keys(transitions).forEach((key) => {\n const transition = transitions[key];\n\n if (!transition) {\n return;\n }\n const name = `${baseSelector}--${kebabCase(key)}`;\n\n const { enter, enterTo, leave, leaveActive, enterActive, leaveTo } =\n transition;\n\n addComponents({\n [`${name}-enter`]: enter,\n [`${name}-enter-to`]: enterTo || leave,\n [`${name}-leave`]: leave,\n [`${name}-leave-to`]: leaveTo || enter\n });\n\n if (enterActive) {\n addComponents({\n [`${name}-enter-active`]: enterActive\n });\n }\n if (leaveActive) {\n addComponents({\n [`${name}-leave-active`]: leaveActive\n });\n }\n });\n}\n\nexport { addTransitions };\n","export const safelist = [\n 'js-focus-visible',\n 'sr-only',\n 'overlay-transition--fade-enter',\n 'overlay-transition--fade-enter-to',\n 'overlay-transition--fade-leave',\n 'overlay-transition--fade-leave-to',\n 'overlay-transition--fade-enter-active',\n 'overlay-transition--fade-leave-active',\n 'overlay-transition--zoom-enter',\n 'overlay-transition--zoom-enter-to',\n 'overlay-transition--zoom-leave',\n 'overlay-transition--zoom-leave-to',\n 'overlay-transition--zoom-enter-active',\n 'overlay-transition--zoom-leave-active',\n 'overlay-transition--slide-from-left-enter',\n 'overlay-transition--slide-from-left-enter-to',\n 'overlay-transition--slide-from-left-leave',\n 'overlay-transition--slide-from-left-leave-to',\n 'overlay-transition--slide-from-left-enter-active',\n 'overlay-transition--slide-from-left-leave-active',\n 'overlay-transition--slide-from-right-enter',\n 'overlay-transition--slide-from-right-enter-to',\n 'overlay-transition--slide-from-right-leave',\n 'overlay-transition--slide-from-right-leave-to',\n 'overlay-transition--slide-from-right-enter-active',\n 'overlay-transition--slide-from-right-leave-active',\n 'overlay-transition--slide-from-top-enter',\n 'overlay-transition--slide-from-top-enter-to',\n 'overlay-transition--slide-from-top-leave',\n 'overlay-transition--slide-from-top-leave-to',\n 'overlay-transition--slide-from-top-enter-active',\n 'overlay-transition--slide-from-top-leave-active',\n 'overlay-transition--slide-from-bottom-enter',\n 'overlay-transition--slide-from-bottom-enter-to',\n 'overlay-transition--slide-from-bottom-leave',\n 'overlay-transition--slide-from-bottom-leave-to',\n 'overlay-transition--slide-from-bottom-enter-active',\n 'overlay-transition--slide-from-bottom-leave-active',\n 'overlay-transition--scale-enter',\n 'overlay-transition--scale-enter-to',\n 'overlay-transition--scale-leave',\n 'overlay-transition--scale-leave-to',\n 'overlay-transition--scale-enter-active',\n 'overlay-transition--scale-leave-active',\n 'overlay-transition--tooltip-enter',\n 'overlay-transition--tooltip-enter-to',\n 'overlay-transition--tooltip-leave',\n 'overlay-transition--tooltip-leave-to',\n 'overlay-transition--tooltip-enter-active',\n 'overlay-transition--tooltip-leave-active',\n 'overlay-transition--command-enter',\n 'overlay-transition--command-enter-to',\n 'overlay-transition--command-leave',\n 'overlay-transition--command-leave-to',\n 'overlay-transition--command-enter-active',\n 'overlay-transition--command-leave-active',\n 'drawer--vertical-xs',\n 'drawer--horizontal-xs',\n 'drawer--vertical-sm',\n 'drawer--horizontal-sm',\n 'drawer--vertical-md',\n 'drawer--horizontal-md',\n 'drawer--vertical-lg',\n 'drawer--horizontal-lg',\n 'drawer--vertical-xl',\n 'drawer--horizontal-xl',\n 'drawer--vertical-full',\n 'drawer--horizontal-full',\n 'modal--xs',\n 'modal--sm',\n 'modal--md',\n 'modal--lg',\n 'modal--xl',\n 'modal--full',\n 'ember-power-select-trigger',\n 'ember-power-select-trigger--active',\n 'ember-power-select-placeholder',\n 'ember-power-select-status-icon',\n 'ember-power-select-dropdown',\n 'ember-power-select-options',\n 'ember-power-select-option',\n 'ember-power-select-clear-btn',\n 'ember-power-select-search',\n 'ember-power-select-search-input',\n 'ember-power-select-search-input--active',\n 'ember-power-select-group',\n 'ember-power-select-group-name',\n 'ember-power-select-trigger-multiple-input',\n 'ember-power-select-trigger-multiple-input--active',\n 'ember-power-select-multiple-options',\n 'ember-power-select-multiple-option',\n 'ember-power-select-multiple-remove-btn',\n 'ember-power-select-trigger-sm',\n 'ember-power-select-trigger-lg'\n];\n","import plugin from 'tailwindcss/plugin';\nimport { overlayTransitions } from './components/overlays';\nimport svgToDataUri from 'mini-svg-data-uri';\n\nimport { resolveThemes, resolveConfig } from './plugin/resolve';\nimport { modalSizes, drawerSizes } from './plugin/overlays';\nimport { registerPowerSelectComponents } from './plugin/power-select';\nimport { addTransitions } from './plugin/transitions';\nimport type { PluginConfig } from './types';\nexport { swapColorValues } from './colors/util';\nexport { safelist } from './plugin/safelist';\n\nfunction frontile(config: PluginConfig = {}): ReturnType<typeof plugin> {\n const c = resolveConfig(config);\n const resolved = resolveThemes(c.themes, c.defaultTheme);\n\n return plugin(\n ({ addComponents, theme, addVariant, addBase, addUtilities }) => {\n addBase({\n ...resolved?.base,\n ':root': {\n '--divider-sketch': `url(\"${svgToDataUri(dividerSketchIcon)}\")`\n }\n });\n\n addUtilities({\n ...resolved?.utilities\n });\n\n resolved?.variants.forEach((variant) => {\n addVariant(variant.name, variant.definition);\n });\n\n addTransitions(addComponents, '.overlay-transition', overlayTransitions);\n\n // drawer and modal sizes (using CSS variables)\n drawerSizes(addComponents, theme('spacing.8'));\n modalSizes(addComponents, theme('spacing.8'));\n\n addComponents({\n '.checked-bg-checkbox:checked': {\n backgroundImage: `url(\"${svgToDataUri(checkboxIcon)}\")`\n },\n '.indeterminate-bg-checkbox:indeterminate': {\n backgroundImage: `url(\"${svgToDataUri(checkboxIndeterminateIcon)}\")`\n },\n '.checked-bg-radio:checked': {\n backgroundImage: `url(\"${svgToDataUri(radioIconLight)}\")`\n },\n '.dark .checked-bg-radio:checked': {\n backgroundImage: `url(\"${svgToDataUri(radioIconDark)}\")`\n },\n '.divider-sketch': {\n maskImage: 'var(--divider-sketch)',\n maskSize: '100% 100%',\n maskRepeat: 'no-repeat'\n }\n });\n\n registerPowerSelectComponents(addComponents);\n },\n {\n theme: {\n extend: {\n colors: {\n ...(resolved?.colors as Record<string, never>)\n }\n }\n }\n }\n );\n}\n\nconst checkboxIcon = `<svg viewBox=\"0 0 16 16\" fill=\"white\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M5.125 7.666a1.304 1.304 0 00-.882-.328 1.3 1.3 0 00-.876.343c-.232.216-.364.51-.367.816-.003.307.124.602.352.822l2.508 2.339c.235.219.554.342.886.342.333 0 .651-.123.887-.342l5.015-4.677c.228-.22.355-.516.352-.822a1.132 1.132 0 00-.367-.817A1.301 1.301 0 0011.757 5a1.304 1.304 0 00-.882.328l-4.129 3.85-1.621-1.512z\"/></svg>`;\nconst checkboxIndeterminateIcon = `<svg viewBox=\"0 0 16 16\" fill=\"white\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M3 7.5C3 7.22386 3.22386 7 3.5 7H12.5C12.7761 7 13 7.22386 13 7.5V8.5C13 8.77614 12.7761 9 12.5 9H3.5C3.22386 9 3 8.77614 3 8.5V7.5Z\" fill=\"white\"/></svg>`;\nconst radioIconLight = `<svg viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\"><circle cx=\"8\" cy=\"8\" r=\"4\" fill=\"white\"/></svg>`;\nconst radioIconDark = `<svg viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\"><circle cx=\"8\" cy=\"8\" r=\"4\" fill=\"#0c0c15\"/></svg>`;\n\n// Hand-drawn divider rule. Exported from Figma at 432x4 and reduced to one\n// decimal place — the original carried six, which is 0.000025px of precision on\n// a 4px-tall line. `preserveAspectRatio=\"none\"` is load-bearing: without it the\n// default `xMidYMid meet` letterboxes the artwork inside the mask box instead of\n// stretching it. There is deliberately no `fill` — this is used as a mask, so\n// only its alpha matters and the colour comes from the element's background.\nconst dividerSketchIcon = `<svg viewBox=\"0 0 432 4\" preserveAspectRatio=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M391.4 0C384.6 0.2 377.4 -0.2 370.4 0.3C368.6 0 366.6 0.5 365 0.3C361.5 -0.1 358.4 0.5 355 0.5C352 0.4 349.1 -0.2 346.2 0.1C343.5 0.4 341 -0 338.5 0.2C335.4 0.6 332.7 -0.1 329.7 0C327.1 0.2 324.4 0 321.8 0C313.5 -0 305.3 -0.1 297.1 0.2C295.9 0.3 294.9 0.2 293.8 0.2C287.8 0 281.8 -0.1 275.9 0.3C273.4 0.5 270.8 0.1 268.3 0.4C262.3 -0.1 256.5 -0 250.5 0.4C248 0.6 245.3 0.6 242.7 0.3C241.3 0.2 239.8 0.1 238.3 0.1C235.3 -0.1 232.4 0.4 229.5 0.2C226.8 0 224.3 0.1 221.7 0.3C219.2 0.5 216.6 -0.1 214.1 0.4C209.7 0.2 205.3 0.2 200.9 0.6C193.4 0.6 185.9 0.6 178.4 0.6C166.8 0.6 155.1 0.6 143.5 0.6C134.5 0.6 125.5 0.7 116.5 0.8C114.2 0.8 112 0.9 109.8 0.9C106.8 1 103.8 1.2 100.8 1.2C94.4 1.1 88.1 1.3 81.7 1.4C80.2 1.4 78.7 1.4 77.2 1.5C70.2 2 63.1 2 56.1 1.5C50.5 1.5 44.9 1.1 39.4 1.7C37.6 1.8 35.7 1.8 33.8 1.9C30.9 2 27.9 2 25 2.4C23 2.6 20.6 2.7 18.4 2.6C12.3 2.5 6.6 3.1 0.8 3.5C0.5 3.5 0.3 3.6 0 3.7C0.6 3.8 1.2 4 1.9 4C6 4 10.1 4 14.2 3.9C15.4 3.9 16.6 3.9 17.6 3.8C21.5 3.3 25.7 3.4 29.8 3.3C35.3 3.1 50.8 3.1 55.3 3.2C63.2 3.3 71.1 3.4 78.9 3.2C80.8 3.2 82.7 3.2 84.6 3.1C87.6 3.1 90.7 3.2 93.5 2.9C96.5 2.7 99.3 3.2 102.4 2.8C104.7 2.6 107.6 2.7 110.2 2.7C132.3 2.7 154.5 2.7 176.6 2.7C184.9 2.7 193.1 2.6 201.4 2.6C208.9 2.6 216.4 2.5 223.9 2.5C259.2 2.5 294.5 2.5 329.8 2.5C345.6 2.5 361.3 2.5 377.1 2.5C382.7 2.5 388.4 2.6 393.8 2C397.6 2 401.3 2 405.1 1.9C413.7 1.8 422.3 1.8 430.9 1.7C431.9 1.7 432.1 1.5 431.9 1.2C431.8 1 431.5 0.8 430.6 0.8C429.9 0.7 429.2 0.6 428.5 0.6C427.7 0.6 427 0.6 426.2 0.5C421.7 0.5 417.3 0.4 412.9 0.1C408.5 -0.1 403.9 0 399.4 0.1C396.8 0.1 394.3 0.3 391.5 0L391.4 0Z\"/></svg>`;\n\nexport { frontile };\n"],"names":["baseLayout","lightLayout","opacity","disabled","darkLayout","defaultConfig","defaultTheme","themes","light","colors","semanticColors","layout","dark","parsedColorsCache","parseAndFormatColor","colorValue","parsed","parse","Error","color","oklch","l","toFixed","c","h","alpha","formatted","getCachedColor","SEMANTIC_COLOR_PREFIXES","EXCLUDED_COLORS","shouldGenerateOnColor","colorName","includes","startsWith","some","prefix","resolveThemes","resolved","variants","utilities","base","themeName","extend","Object","entries","cssSelector","baseSelector","scheme","themeRules","flatColors","flattenThemeObject","flatLayout","mapKeys","_","key","kebabCase","push","name","definition","cssVar","error","console","warn","onColorName","contrastColor","getContrastingColor","value","varPrefix","nestedKey","nestedValue","formattedValue","String","replace","removeDefaultKeys","obj","newObj","endsWith","flatten","safe","delimiter","isBaseTheme","theme","resolveConfig","userConfig","userThemes","userLayout","deepMerge","keys","forEach","extendFrom","drawerSizes","addComponents","margin","sizes","sizeVar","maxHeight","maxWidth","modalSizes","rules","width","height","marginTop","marginBottom","borderRadius","registerPowerSelectComponents","backgroundColor","powerSelectPlugin","registerComponents","textColor","disabledTextColor","disabledBorderColor","placeholderTextColor","dropdownBackgroundColor","borderColor","focusBorderColor","invalidBorderColor","addTransitions","transitions","transition","enter","enterTo","leave","leaveActive","enterActive","leaveTo","safelist","frontile","config","plugin","addVariant","addBase","addUtilities","svgToDataUri","dividerSketchIcon","variant","overlayTransitions","backgroundImage","checkboxIcon","checkboxIndeterminateIcon","radioIconLight","radioIconDark","maskImage","maskSize","maskRepeat"],"mappings":";;;;;;;;;;;;AAGA;AACA;AACA,MAAMA,UAAuB,GAAG,EAAE;;AAElC;AACA;AACA,MAAMC,WAAwB,GAAG;AAC/B,EAAA,GAAGD,UAAU;AACbE,EAAAA,OAAO,EAAE;AAAEC,IAAAA,QAAQ,EAAE;AAAI;AAC3B,CAAC;AAED,MAAMC,UAAuB,GAAG;AAC9B,EAAA,GAAGJ,UAAU;AACbE,EAAAA,OAAO,EAAE;AAAEC,IAAAA,QAAQ,EAAE;AAAI;AAC3B,CAAC;AAED,MAAME,aAAa,GAAG;AACpBC,EACAC,MAAM,EAAE;AACNC,IAAAA,KAAK,EAAE;MACLC,MAAM,EAAEC,cAAc,CAACF,KAAK;AAC5BG,MAAAA,MAAM,EAAEV;KACT;AACDW,IAAAA,IAAI,EAAE;MACJH,MAAM,EAAEC,cAAc,CAACE,IAAI;AAC3BD,MAAAA,MAAM,EAAEP;AACV;AACF;AACF,CAAC;;ACVD,MAAMS,iBAA8C,GAAG,EAAE;AAazD;AACA;AACA;AACA,SAASC,mBAAmBA,CAACC,UAAkB,EAAe;AAC5D,EAAA,MAAMC,MAAM,GAAGC,KAAK,CAACF,UAAU,CAAC;EAChC,IAAI,CAACC,MAAM,EAAE;AACX,IAAA,MAAM,IAAIE,KAAK,CAAC,CAAA,uBAAA,EAA0BH,UAAU,EAAE,CAAC;AACzD,EAAA;AAEA,EAAA,MAAMI,KAAK,GAAGC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A,EAAA;OACtD;AACD,MAAA,iCAAiC,EAAE;AACjCH,QAAAA,eAAe,EAAE,CAAA,KAAA,EAAQJ,YAAY,CAACQ,aAAa,CAAC,CAAA,EAAA;OACrD;AACD,MAAA,iBAAiB,EAAE;AACjBC,QAAAA,SAAS,EAAE,uBAAuB;AAClCC,QAAAA,QAAQ,EAAE,WAAW;AACrBC,QAAAA,UAAU,EAAE;AACd;AACF,KAAC,CAAC;IAEFvC,6BAA6B,CAACb,aAAa,CAAC;AAC9C,EAAA,CAAC,EACD;AACEV,IAAAA,KAAK,EAAE;AACLvC,MAAAA,MAAM,EAAE;AACNjC,QAAAA,MAAM,EAAE;AACN,UAAA,GAAI4B,QAAQ,EAAE5B;AAChB;AACF;AACF;AACF,GACF,CAAC;AACH;AAEA,MAAMgI,YAAY,GAAG,CAAA,wZAAA,CAA0Z;AAC/a,MAAMC,yBAAyB,GAAG,CAAA,4OAAA,CAA8O;AAChR,MAAMC,cAAc,GAAG,CAAA,4GAAA,CAA8G;AACrI,MAAMC,aAAa,GAAG,CAAA,8GAAA,CAAgH;;AAEtI;AACA;AACA;AACA;AACA;AACA;AACA,MAAMP,iBAAiB,GAAG,CAAA,irDAAA,CAAmrD;;"}
@@ -428,7 +428,7 @@ const base = {
428
428
  dark: {
429
429
  background: 'var(--color-surface-app)',
430
430
  focus: 'var(--color-primary-muted)',
431
- divider: 'rgba(255, 255, 255, 0.15)'
431
+ divider: 'rgba(255, 255, 255, 0.25)'
432
432
  }
433
433
  };
434
434
  const semanticColors = {
@@ -479,4 +479,4 @@ function getContrastingColor(backgroundColor) {
479
479
  }
480
480
 
481
481
  export { gray as a, blue as b, green as c, swapColorValues as d, getContrastingColor as g, orange as o, pink as p, red as r, semanticColors as s, teal as t, violet as v, yellow as y };
482
- //# sourceMappingURL=util-Dp_dlOPq.js.map
482
+ //# sourceMappingURL=util-PU966Q_x.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"util-PU966Q_x.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,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,KAAK,GAAG;AACZ,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,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