@photon-ai/pho-ui 4.21.0 → 4.23.0

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 (100) hide show
  1. package/dist/chunks/{basic-page-B78a6jpw.js → basic-page-DnB4YSRj.js} +15 -15
  2. package/dist/chunks/basic-page-DnB4YSRj.js.map +1 -0
  3. package/dist/chunks/{chat-Dfbkf7g8.js → chat-C5W6L_Jg.js} +51 -51
  4. package/dist/chunks/chat-C5W6L_Jg.js.map +1 -0
  5. package/dist/chunks/{checkbox-DpWLbKVS.js → checkbox-D8smFViR.js} +2 -2
  6. package/dist/chunks/{checkbox-DpWLbKVS.js.map → checkbox-D8smFViR.js.map} +1 -1
  7. package/dist/chunks/chrome-Dyvv0FVf.js +14 -0
  8. package/dist/chunks/{chrome-Ds7WykBJ.js.map → chrome-Dyvv0FVf.js.map} +1 -1
  9. package/dist/chunks/{combobox-OQOi5hlB.js → combobox-C_yfFCFL.js} +2 -2
  10. package/dist/chunks/{combobox-OQOi5hlB.js.map → combobox-C_yfFCFL.js.map} +1 -1
  11. package/dist/chunks/{data-table-CAz_8HQw.js → data-table-C1tLUdw0.js} +4 -4
  12. package/dist/chunks/{data-table-CAz_8HQw.js.map → data-table-C1tLUdw0.js.map} +1 -1
  13. package/dist/chunks/{date-picker-vJQrTol9.js → date-picker-D-sWo3i8.js} +2 -2
  14. package/dist/chunks/{date-picker-vJQrTol9.js.map → date-picker-D-sWo3i8.js.map} +1 -1
  15. package/dist/chunks/{description-list-Duhhralt.js → description-list-DcTvBHzI.js} +6 -6
  16. package/dist/chunks/{description-list-Duhhralt.js.map → description-list-DcTvBHzI.js.map} +1 -1
  17. package/dist/chunks/{dialog-CDL6qY2a.js → dialog-e4_mOYGp.js} +5 -5
  18. package/dist/chunks/dialog-e4_mOYGp.js.map +1 -0
  19. package/dist/chunks/{error-BObcQClz.js → error-BjSn7wLu.js} +3 -3
  20. package/dist/chunks/{error-BObcQClz.js.map → error-BjSn7wLu.js.map} +1 -1
  21. package/dist/chunks/{filter-bar-qqCZf1x4.js → filter-bar-CLLonntH.js} +2 -2
  22. package/dist/chunks/{filter-bar-qqCZf1x4.js.map → filter-bar-CLLonntH.js.map} +1 -1
  23. package/dist/chunks/{log-list-QbSYHZu3.js → log-list-BqaJv2oA.js} +2 -2
  24. package/dist/chunks/{log-list-QbSYHZu3.js.map → log-list-BqaJv2oA.js.map} +1 -1
  25. package/dist/chunks/{menu-CC3fhf83.js → menu-CZSn8JAX.js} +2 -2
  26. package/dist/chunks/{menu-CC3fhf83.js.map → menu-CZSn8JAX.js.map} +1 -1
  27. package/dist/chunks/{popover-B0NBrYV5.js → popover-Dtp9C6Qg.js} +4 -4
  28. package/dist/chunks/{popover-B0NBrYV5.js.map → popover-Dtp9C6Qg.js.map} +1 -1
  29. package/dist/chunks/{select-xhSvDNbw.js → select-Dux2SBVc.js} +2 -2
  30. package/dist/chunks/{select-xhSvDNbw.js.map → select-Dux2SBVc.js.map} +1 -1
  31. package/dist/chunks/{sidebar-DHYyBBUj.js → sidebar-BsBlAVM9.js} +2 -2
  32. package/dist/chunks/sidebar-BsBlAVM9.js.map +1 -0
  33. package/dist/chunks/{stat-VxA1SvS_.js → stat-DUq4roVt.js} +16 -16
  34. package/dist/chunks/{stat-VxA1SvS_.js.map → stat-DUq4roVt.js.map} +1 -1
  35. package/dist/chunks/{status-view-I_Y6eEyX.js → status-view-Buhh1UBJ.js} +2 -2
  36. package/dist/chunks/status-view-Buhh1UBJ.js.map +1 -0
  37. package/dist/chunks/{toast-B1GAdxXP.js → toast-K549iZEX.js} +2 -2
  38. package/dist/chunks/{toast-B1GAdxXP.js.map → toast-K549iZEX.js.map} +1 -1
  39. package/dist/chunks/{trace-D9F0sne7.js → trace-5Rh1ade9.js} +2 -2
  40. package/dist/chunks/{trace-D9F0sne7.js.map → trace-5Rh1ade9.js.map} +1 -1
  41. package/dist/components/accordion.js +1 -1
  42. package/dist/components/accordion.js.map +1 -1
  43. package/dist/components/autocomplete.js +5 -5
  44. package/dist/components/autocomplete.js.map +1 -1
  45. package/dist/components/chat.js +1 -1
  46. package/dist/components/checkbox.js +1 -1
  47. package/dist/components/combobox.js +1 -1
  48. package/dist/components/command.js +1 -1
  49. package/dist/components/context-menu.js +5 -5
  50. package/dist/components/context-menu.js.map +1 -1
  51. package/dist/components/data-table.js +2 -2
  52. package/dist/components/date-picker.js +1 -1
  53. package/dist/components/description-list.js +1 -1
  54. package/dist/components/dialog.js +1 -1
  55. package/dist/components/drawer.js +5 -5
  56. package/dist/components/drawer.js.map +1 -1
  57. package/dist/components/error.js +1 -1
  58. package/dist/components/field.js +26 -24
  59. package/dist/components/field.js.map +1 -1
  60. package/dist/components/fieldset.js +5 -5
  61. package/dist/components/fieldset.js.map +1 -1
  62. package/dist/components/filter-bar.js +1 -1
  63. package/dist/components/log-list.js +1 -1
  64. package/dist/components/menu.js +1 -1
  65. package/dist/components/meter.js +12 -12
  66. package/dist/components/meter.js.map +1 -1
  67. package/dist/components/notification.js +2 -2
  68. package/dist/components/notification.js.map +1 -1
  69. package/dist/components/phone-input.js +1 -1
  70. package/dist/components/popover.js +1 -1
  71. package/dist/components/progress.js +16 -16
  72. package/dist/components/progress.js.map +1 -1
  73. package/dist/components/radio-group.js +1 -1
  74. package/dist/components/radio-group.js.map +1 -1
  75. package/dist/components/scope.js +3 -3
  76. package/dist/components/scope.js.map +1 -1
  77. package/dist/components/select.js +1 -1
  78. package/dist/components/slider.js +16 -16
  79. package/dist/components/slider.js.map +1 -1
  80. package/dist/components/stat.js +1 -1
  81. package/dist/components/status-view.js +1 -1
  82. package/dist/components/toast.js +1 -1
  83. package/dist/components/trace.js +1 -1
  84. package/dist/index.js +13 -13
  85. package/dist/sections/basic-page.js +2 -2
  86. package/dist/sections/sidebar.js +1 -1
  87. package/dist/src/components/data-table/chrome.d.ts +1 -1
  88. package/dist/src/components/drawer/drawer.d.ts +1 -0
  89. package/dist/src/components/field/field.d.ts +10 -2
  90. package/dist/src/components/status-view/status-view.d.ts +4 -3
  91. package/dist/src/sections/sidebar/sidebar.d.ts +7 -2
  92. package/package.json +1 -1
  93. package/src/styles/fonts.css +6 -4
  94. package/src/styles/theme.css +5 -3
  95. package/dist/chunks/basic-page-B78a6jpw.js.map +0 -1
  96. package/dist/chunks/chat-Dfbkf7g8.js.map +0 -1
  97. package/dist/chunks/chrome-Ds7WykBJ.js +0 -14
  98. package/dist/chunks/dialog-CDL6qY2a.js.map +0 -1
  99. package/dist/chunks/sidebar-DHYyBBUj.js.map +0 -1
  100. package/dist/chunks/status-view-I_Y6eEyX.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"meter.js","names":["BaseMeter","cn","jsx","Meter$1","Root","className","props","Label","Value","Track","Indicator","Meter"],"sources":["../../src/components/meter/meter.tsx"],"sourcesContent":["import { type ComponentProps, type ElementType } from \"react\";\nimport { Meter as BaseMeter } from \"@base-ui/react/meter\";\nimport { cn } from \"../../utils/cn\";\n\n/** Override Base UI's `string | (state) => string` className with plain string. */\ntype StyledProps<T extends ElementType> = Omit<\n ComponentProps<T>,\n \"className\"\n> & {\n className?: string;\n};\n\nfunction Root({ className, ...props }: StyledProps<typeof BaseMeter.Root>) {\n return (\n <BaseMeter.Root\n className={cn(\"flex w-full flex-col gap-2\", className)}\n {...props}\n />\n );\n}\n\nfunction Label({ className, ...props }: StyledProps<typeof BaseMeter.Label>) {\n return (\n <BaseMeter.Label\n className={cn(\"text-pho-secondary text-base font-medium\", className)}\n {...props}\n />\n );\n}\n\nfunction Value({ className, ...props }: StyledProps<typeof BaseMeter.Value>) {\n return (\n <BaseMeter.Value\n className={cn(\"text-pho-secondary text-base tabular-nums\", className)}\n {...props}\n />\n );\n}\n\nfunction Track({ className, ...props }: StyledProps<typeof BaseMeter.Track>) {\n return (\n <BaseMeter.Track\n className={cn(\n \"bg-pho-secondary relative h-2 w-full overflow-hidden rounded-full\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction Indicator({\n className,\n ...props\n}: StyledProps<typeof BaseMeter.Indicator>) {\n return (\n <BaseMeter.Indicator\n className={cn(\n \"bg-pho-brand-solid h-full rounded-full transition-all duration-200 ease-out\",\n className,\n )}\n {...props}\n />\n );\n}\n\n/**\n * Meter built on Base UI `Meter`. Unlike `Progress`, a meter shows a static\n * measurement within a known range (disk usage, score, capacity) rather than\n * task completion. Set `value` on `Meter.Root`.\n */\nexport const Meter = { Root, Label, Value, Track, Indicator };\n"],"mappings":";;;;;AAYA,SAASI,EAAK,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAA6C;AACzE,SACE,gBAAAJ,EAACF,EAAU,MAAX;AAAA,IACE,WAAWC,EAAG,8BAA8BI,CAAS;AAAA,IACrD,GAAIC;AAAA,EACL,CAAA;AAEL;AAEA,SAASC,EAAM,EAAE,WAAAF,GAAW,GAAGC,EAAA,GAA8C;AAC3E,SACE,gBAAAJ,EAACF,EAAU,OAAX;AAAA,IACE,WAAWC,EAAG,4CAA4CI,CAAS;AAAA,IACnE,GAAIC;AAAA,EACL,CAAA;AAEL;AAEA,SAASE,EAAM,EAAE,WAAAH,GAAW,GAAGC,EAAA,GAA8C;AAC3E,SACE,gBAAAJ,EAACF,EAAU,OAAX;AAAA,IACE,WAAWC,EAAG,6CAA6CI,CAAS;AAAA,IACpE,GAAIC;AAAA,EACL,CAAA;AAEL;AAEA,SAASG,EAAM,EAAE,WAAAJ,GAAW,GAAGC,EAAA,GAA8C;AAC3E,SACE,gBAAAJ,EAACF,EAAU,OAAX;AAAA,IACE,WAAWC,EACT,qEACAI,CACF;AAAA,IACA,GAAIC;AAAA,EACL,CAAA;AAEL;AAEA,SAASI,EAAU,EACjB,WAAAL,GACA,GAAGC,EAAA,GACuC;AAC1C,SACE,gBAAAJ,EAACF,EAAU,WAAX;AAAA,IACE,WAAWC,EACT,+EACAI,CACF;AAAA,IACA,GAAIC;AAAA,EACL,CAAA;AAEL;AAOA,IAAaK,IAAQ;AAAA,EAAE,MAAAP;AAAA,EAAM,OAAAG;AAAA,EAAO,OAAAC;AAAA,EAAO,OAAAC;AAAA,EAAO,WAAAC;AAAU"}
1
+ {"version":3,"file":"meter.js","names":["BaseMeter","cn","jsx","Meter$1","Root","className","props","Label","Value","Track","Indicator","Meter"],"sources":["../../src/components/meter/meter.tsx"],"sourcesContent":["import { type ComponentProps, type ElementType } from \"react\";\nimport { Meter as BaseMeter } from \"@base-ui/react/meter\";\nimport { cn } from \"../../utils/cn\";\n\n/** Override Base UI's `string | (state) => string` className with plain string. */\ntype StyledProps<T extends ElementType> = Omit<\n ComponentProps<T>,\n \"className\"\n> & {\n className?: string;\n};\n\nfunction Root({ className, ...props }: StyledProps<typeof BaseMeter.Root>) {\n return (\n <BaseMeter.Root\n className={cn(\"flex w-full flex-col gap-2\", className)}\n {...props}\n />\n );\n}\n\nfunction Label({ className, ...props }: StyledProps<typeof BaseMeter.Label>) {\n return (\n <BaseMeter.Label\n className={cn(\n \"text-pho-secondary font-heading text-base font-medium\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction Value({ className, ...props }: StyledProps<typeof BaseMeter.Value>) {\n return (\n <BaseMeter.Value\n className={cn(\"text-pho-secondary text-base tabular-nums\", className)}\n {...props}\n />\n );\n}\n\nfunction Track({ className, ...props }: StyledProps<typeof BaseMeter.Track>) {\n return (\n <BaseMeter.Track\n className={cn(\n \"bg-pho-secondary relative h-2 w-full overflow-hidden rounded-full\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction Indicator({\n className,\n ...props\n}: StyledProps<typeof BaseMeter.Indicator>) {\n return (\n <BaseMeter.Indicator\n className={cn(\n \"bg-pho-brand-solid h-full rounded-full transition-all duration-200 ease-out\",\n className,\n )}\n {...props}\n />\n );\n}\n\n/**\n * Meter built on Base UI `Meter`. Unlike `Progress`, a meter shows a static\n * measurement within a known range (disk usage, score, capacity) rather than\n * task completion. Set `value` on `Meter.Root`.\n */\nexport const Meter = { Root, Label, Value, Track, Indicator };\n"],"mappings":";;;;;AAYA,SAASI,EAAK,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAA6C;AACzE,SACE,gBAAAJ,EAACF,EAAU,MAAX;AAAA,IACE,WAAWC,EAAG,8BAA8BI,CAAS;AAAA,IACrD,GAAIC;AAAA,EACL,CAAA;AAEL;AAEA,SAASC,EAAM,EAAE,WAAAF,GAAW,GAAGC,EAAA,GAA8C;AAC3E,SACE,gBAAAJ,EAACF,EAAU,OAAX;AAAA,IACE,WAAWC,EACT,yDACAI,CACF;AAAA,IACA,GAAIC;AAAA,EACL,CAAA;AAEL;AAEA,SAASE,EAAM,EAAE,WAAAH,GAAW,GAAGC,EAAA,GAA8C;AAC3E,SACE,gBAAAJ,EAACF,EAAU,OAAX;AAAA,IACE,WAAWC,EAAG,6CAA6CI,CAAS;AAAA,IACpE,GAAIC;AAAA,EACL,CAAA;AAEL;AAEA,SAASG,EAAM,EAAE,WAAAJ,GAAW,GAAGC,EAAA,GAA8C;AAC3E,SACE,gBAAAJ,EAACF,EAAU,OAAX;AAAA,IACE,WAAWC,EACT,qEACAI,CACF;AAAA,IACA,GAAIC;AAAA,EACL,CAAA;AAEL;AAEA,SAASI,EAAU,EACjB,WAAAL,GACA,GAAGC,EAAA,GACuC;AAC1C,SACE,gBAAAJ,EAACF,EAAU,WAAX;AAAA,IACE,WAAWC,EACT,+EACAI,CACF;AAAA,IACA,GAAIC;AAAA,EACL,CAAA;AAEL;AAOA,IAAaK,IAAQ;AAAA,EAAE,MAAAP;AAAA,EAAM,OAAAG;AAAA,EAAO,OAAAC;AAAA,EAAO,OAAAC;AAAA,EAAO,WAAAC;AAAU"}
@@ -67,9 +67,9 @@ function _({ color: a = "brand", title: p, description: r, confirmLabel: i, onCo
67
67
  /* @__PURE__ */ o("div", {
68
68
  className: "flex flex-1 flex-col gap-3 pr-6",
69
69
  children: [/* @__PURE__ */ o("div", {
70
- className: "flex flex-col gap-1",
70
+ className: "flex flex-col",
71
71
  children: [/* @__PURE__ */ e("p", {
72
- className: "text-pho-primary text-base font-medium",
72
+ className: "text-pho-primary font-heading text-base font-medium",
73
73
  children: p
74
74
  }), r != null && r !== !1 && /* @__PURE__ */ e("p", {
75
75
  className: "text-pho-description text-base",
@@ -1 +1 @@
1
- {"version":3,"file":"notification.js","names":["__iconNode","resolveVariant","createReactComponent","IconInfoCircle","IconX","jsx","jsxs","__iconNode$1","IconAlertCircle","__iconNode","IconCircleCheck","NOTIFICATION_COLORS","ICON_MAP","LINK_CLASS","Notification","color","title","description","confirmLabel","onConfirm","dismissLabel","onClose","icon","className","ref","props","Glyph","showActions","cn"],"sources":["../../../../node_modules/.pnpm/@tabler+icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconAlertCircle.mjs","../../../../node_modules/.pnpm/@tabler+icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconCircleCheck.mjs","../../src/components/notification/notification.tsx"],"sourcesContent":["/**\n * @license @tabler/icons-react v3.49.0 - MIT\n *\n * This source code is licensed under the MIT license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createReactComponent from '../createReactComponent.mjs';\n\nconst __iconNode = [[\"path\", { \"d\": \"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0\", \"key\": \"svg-0\" }], [\"path\", { \"d\": \"M12 8v4\", \"key\": \"svg-1\" }], [\"path\", { \"d\": \"M12 16h.01\", \"key\": \"svg-2\" }]];\nconst IconAlertCircle = createReactComponent(\"outline\", \"alert-circle\", \"AlertCircle\", __iconNode);\n\nexport { __iconNode, IconAlertCircle as default };\n","/**\n * @license @tabler/icons-react v3.49.0 - MIT\n *\n * This source code is licensed under the MIT license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createReactComponent from '../createReactComponent.mjs';\n\nconst __iconNode = [[\"path\", { \"d\": \"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0\", \"key\": \"svg-0\" }], [\"path\", { \"d\": \"M9 12l2 2l4 -4\", \"key\": \"svg-1\" }]];\nconst IconCircleCheck = createReactComponent(\"outline\", \"circle-check\", \"CircleCheck\", __iconNode);\n\nexport { __iconNode, IconCircleCheck as default };\n","import { type HTMLAttributes, type ReactNode, type Ref } from \"react\";\nimport {\n IconCircleCheck,\n IconInfoCircle,\n IconAlertCircle,\n IconX,\n type Icon,\n} from \"@tabler/icons-react\";\nimport { cn } from \"../../utils/cn\";\nimport { resolveVariant, type VariantMap } from \"../../utils/resolve-variant\";\n\n/**\n * Design notes (Geist-aligned):\n * - ONE closed, semantic axis: `color`. It selects a status glyph *and* its\n * tint together — you never pick an icon and a color separately. This is the\n * `IconNotification` flavor from the app; the unused avatar/image variants of\n * the source family are intentionally dropped.\n * - The action row is a single reduced pair: a brand `confirmLabel` link beside\n * a gray dismiss link. It appears only when there's something to confirm.\n * - `onClose` is the only thing that renders the top-right close button — no\n * separate boolean flag to keep in sync.\n */\n\n/** Status color → icon tint. A bare status-tinted glyph, no badge surface. */\nexport const NOTIFICATION_COLORS = {\n brand: {\n classes: \"text-pho-brand\",\n description: \"Informational / product update (default)\",\n },\n gray: {\n classes: \"text-pho-secondary\",\n description: \"Neutral, low-stakes note\",\n },\n success: {\n classes: \"text-pho-success\",\n description: \"An action completed\",\n },\n warning: {\n classes: \"text-pho-warning\",\n description: \"Needs attention, not yet failed\",\n },\n error: {\n classes: \"text-pho-error\",\n description: \"Something went wrong\",\n },\n} satisfies VariantMap;\n\nexport type NotificationColor = keyof typeof NOTIFICATION_COLORS;\n\n/** Status color → glyph. Mirrors the source's `iconMap` semantics. */\nconst ICON_MAP = {\n brand: IconInfoCircle,\n gray: IconInfoCircle,\n success: IconCircleCheck,\n warning: IconAlertCircle,\n error: IconAlertCircle,\n} satisfies Record<NotificationColor, Icon>;\n\nexport interface NotificationProps extends Omit<\n HTMLAttributes<HTMLDivElement>,\n \"title\" | \"color\"\n> {\n /** Status color — selects the glyph and its tint. @default \"brand\" */\n color?: NotificationColor;\n /** Bold heading line. */\n title: ReactNode;\n /** Supporting line under the title. */\n description?: ReactNode;\n /** Confirm action label — renders a brand link paired with a dismiss link. */\n confirmLabel?: string;\n /** Called when the confirm link is clicked. */\n onConfirm?: () => void;\n /** Dismiss link label, shown beside the confirm link. @default \"Dismiss\" */\n dismissLabel?: string;\n /** Called on dismiss. Its presence also renders the top-right close button. */\n onClose?: () => void;\n /** Override the status glyph while keeping the color's tint. */\n icon?: Icon;\n className?: string;\n ref?: Ref<HTMLDivElement>;\n}\n\nconst LINK_CLASS =\n \"cursor-pointer text-base font-medium outline-pho-brand transition duration-100 ease-linear focus-visible:outline-2 focus-visible:outline-offset-2\";\n\n/**\n * Notification — the standalone status card ported from the app's\n * `IconNotification`: a status glyph, a title/description, an optional\n * confirm+dismiss link pair, and an optional close button. It is a *card*, not a\n * lifecycle: it owns its surface but nothing about timing or stacking.\n *\n * For a transient, auto-stacking toast, drop it inside pho-ui's Base UI\n * {@link Toast} — render it as the child of a `Toast.Root` whose own surface you\n * neutralize (`className=\"bg-transparent p-0 shadow-none ring-0\"`) so the\n * manager owns motion and swipe while this card owns the look. For a choice the\n * user must make, use `Dialog` instead.\n */\nexport function Notification({\n color = \"brand\",\n title,\n description,\n confirmLabel,\n onConfirm,\n dismissLabel = \"Dismiss\",\n onClose,\n icon,\n className,\n ref,\n ...props\n}: NotificationProps) {\n const Glyph = icon ?? ICON_MAP[color];\n const showActions = Boolean(confirmLabel);\n\n return (\n <div\n ref={ref}\n {...props}\n className={cn(\n // Floating layer: keeps its shadow elevation, hairline card edge.\n \"ring-pho-secondary bg-pho-primary shadow-pho-lg rounded-base relative flex w-full max-w-sm gap-4 p-4 ring-1 ring-inset\",\n className,\n )}\n >\n <Glyph\n aria-hidden=\"true\"\n className={cn(\n \"mt-0.5 size-5 shrink-0\",\n resolveVariant(NOTIFICATION_COLORS, color),\n )}\n />\n\n <div className=\"flex flex-1 flex-col gap-3 pr-6\">\n <div className=\"flex flex-col gap-1\">\n <p className=\"text-pho-primary text-base font-medium\">{title}</p>\n {description != null && description !== false && (\n <p className=\"text-pho-description text-base\">{description}</p>\n )}\n </div>\n\n {showActions && (\n <div className=\"flex gap-4\">\n <button\n type=\"button\"\n onClick={onConfirm}\n className={cn(\n LINK_CLASS,\n // brand text is monochrome now — underline carries the hover.\n \"text-pho-brand hover:underline\",\n )}\n >\n {confirmLabel}\n </button>\n <button\n type=\"button\"\n onClick={onClose}\n className={cn(\n LINK_CLASS,\n \"text-pho-secondary hover:text-pho-secondary-hover\",\n )}\n >\n {dismissLabel}\n </button>\n </div>\n )}\n </div>\n\n {onClose && (\n <button\n type=\"button\"\n onClick={onClose}\n aria-label=\"Dismiss\"\n className=\"text-pho-secondary hover:text-pho-secondary-hover hover:bg-pho-ghost-hover outline-pho-brand absolute top-2.5 right-2.5 flex size-6 cursor-pointer items-center justify-center rounded-sm transition focus-visible:outline-2 [&>svg]:size-4\"\n >\n <IconX aria-hidden=\"true\" />\n </button>\n )}\n </div>\n );\n}\n\nNotification.displayName = \"Notification\";\n"],"ignoreList":[0,1],"mappings":";;;;;;;;AASA,IAAMA,IAAa;AAAA,EAAC,CAAC,QAAQ;AAAA,IAAE,GAAK;AAAA,IAAwC,KAAO;AAAA,EAAQ,CAAC;AAAA,EAAG,CAAC,QAAQ;AAAA,IAAE,GAAK;AAAA,IAAW,KAAO;AAAA,EAAQ,CAAC;AAAA,EAAG,CAAC,QAAQ;AAAA,IAAE,GAAK;AAAA,IAAc,KAAO;AAAA,EAAQ,CAAC;AAAC,GACtLQ,IAAkBN,EAAqB,WAAW,gBAAgB,eAAeF,CAAU,GCD3FS,IAAa,CAAC,CAAC,QAAQ;AAAA,EAAE,GAAK;AAAA,EAAwC,KAAO;AAAQ,CAAC,GAAG,CAAC,QAAQ;AAAA,EAAE,GAAK;AAAA,EAAkB,KAAO;AAAQ,CAAC,CAAC,GAC5IC,IAAkBR,EAAqB,WAAW,gBAAgB,eAAeO,CAAU,GCcpFE,IAAsB;AAAA,EACjC,OAAO;AAAA,IACL,SAAS;AAAA,IACT,aAAa;AAAA,EACf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BAAArB,EAAC,OAAD;AAAA,UAAK,WAAU;AAAA,UAAf,UAAA,CACE,gBAAAD,EAAC,UAAD;AAAA,YACE,MAAK;AAAA,YACL,SAASc;AAAA,YACT,WAAWS,EACTf,GAEA,gCACF;AAAA,YAEC,UAAAK;AAAA,UACK,CAAA,GACR,gBAAAb,EAAC,UAAD;AAAA,YACE,MAAK;AAAA,YACL,SAASgB;AAAA,YACT,WAAWO,EACTf,GACA,mDACF;AAAA,YAEC,UAAAO;AAAA,UACK,CAAA,CACL;AAAA,QAEJ,CAAA,CAAA;AAAA,M;A,MAEJC,KACC,gBAAAhB,EAAC,UAAD;AAAA,QACE,MAAK;AAAA,QACL,SAASgB;AAAA,QACT,cAAW;AAAA,QACX,WAAU;AAAA,QAEV,UAAA,gBAAAhB,EAACD,GAAD,EAAO,eAAY,OAAQ,CAAA;AAAA,MACrB,CAAA;AAAA,IAEP;AAAA,E;AAET;AAEAU,EAAa,cAAc"}
1
+ {"version":3,"file":"notification.js","names":["__iconNode","resolveVariant","createReactComponent","IconInfoCircle","IconX","jsx","jsxs","__iconNode$1","IconAlertCircle","__iconNode","IconCircleCheck","NOTIFICATION_COLORS","ICON_MAP","LINK_CLASS","Notification","color","title","description","confirmLabel","onConfirm","dismissLabel","onClose","icon","className","ref","props","Glyph","showActions","cn"],"sources":["../../../../node_modules/.pnpm/@tabler+icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconAlertCircle.mjs","../../../../node_modules/.pnpm/@tabler+icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconCircleCheck.mjs","../../src/components/notification/notification.tsx"],"sourcesContent":["/**\n * @license @tabler/icons-react v3.49.0 - MIT\n *\n * This source code is licensed under the MIT license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createReactComponent from '../createReactComponent.mjs';\n\nconst __iconNode = [[\"path\", { \"d\": \"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0\", \"key\": \"svg-0\" }], [\"path\", { \"d\": \"M12 8v4\", \"key\": \"svg-1\" }], [\"path\", { \"d\": \"M12 16h.01\", \"key\": \"svg-2\" }]];\nconst IconAlertCircle = createReactComponent(\"outline\", \"alert-circle\", \"AlertCircle\", __iconNode);\n\nexport { __iconNode, IconAlertCircle as default };\n","/**\n * @license @tabler/icons-react v3.49.0 - MIT\n *\n * This source code is licensed under the MIT license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createReactComponent from '../createReactComponent.mjs';\n\nconst __iconNode = [[\"path\", { \"d\": \"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0\", \"key\": \"svg-0\" }], [\"path\", { \"d\": \"M9 12l2 2l4 -4\", \"key\": \"svg-1\" }]];\nconst IconCircleCheck = createReactComponent(\"outline\", \"circle-check\", \"CircleCheck\", __iconNode);\n\nexport { __iconNode, IconCircleCheck as default };\n","import { type HTMLAttributes, type ReactNode, type Ref } from \"react\";\nimport {\n IconCircleCheck,\n IconInfoCircle,\n IconAlertCircle,\n IconX,\n type Icon,\n} from \"@tabler/icons-react\";\nimport { cn } from \"../../utils/cn\";\nimport { resolveVariant, type VariantMap } from \"../../utils/resolve-variant\";\n\n/**\n * Design notes (Geist-aligned):\n * - ONE closed, semantic axis: `color`. It selects a status glyph *and* its\n * tint together — you never pick an icon and a color separately. This is the\n * `IconNotification` flavor from the app; the unused avatar/image variants of\n * the source family are intentionally dropped.\n * - The action row is a single reduced pair: a brand `confirmLabel` link beside\n * a gray dismiss link. It appears only when there's something to confirm.\n * - `onClose` is the only thing that renders the top-right close button — no\n * separate boolean flag to keep in sync.\n */\n\n/** Status color → icon tint. A bare status-tinted glyph, no badge surface. */\nexport const NOTIFICATION_COLORS = {\n brand: {\n classes: \"text-pho-brand\",\n description: \"Informational / product update (default)\",\n },\n gray: {\n classes: \"text-pho-secondary\",\n description: \"Neutral, low-stakes note\",\n },\n success: {\n classes: \"text-pho-success\",\n description: \"An action completed\",\n },\n warning: {\n classes: \"text-pho-warning\",\n description: \"Needs attention, not yet failed\",\n },\n error: {\n classes: \"text-pho-error\",\n description: \"Something went wrong\",\n },\n} satisfies VariantMap;\n\nexport type NotificationColor = keyof typeof NOTIFICATION_COLORS;\n\n/** Status color → glyph. Mirrors the source's `iconMap` semantics. */\nconst ICON_MAP = {\n brand: IconInfoCircle,\n gray: IconInfoCircle,\n success: IconCircleCheck,\n warning: IconAlertCircle,\n error: IconAlertCircle,\n} satisfies Record<NotificationColor, Icon>;\n\nexport interface NotificationProps extends Omit<\n HTMLAttributes<HTMLDivElement>,\n \"title\" | \"color\"\n> {\n /** Status color — selects the glyph and its tint. @default \"brand\" */\n color?: NotificationColor;\n /** Bold heading line. */\n title: ReactNode;\n /** Supporting line under the title. */\n description?: ReactNode;\n /** Confirm action label — renders a brand link paired with a dismiss link. */\n confirmLabel?: string;\n /** Called when the confirm link is clicked. */\n onConfirm?: () => void;\n /** Dismiss link label, shown beside the confirm link. @default \"Dismiss\" */\n dismissLabel?: string;\n /** Called on dismiss. Its presence also renders the top-right close button. */\n onClose?: () => void;\n /** Override the status glyph while keeping the color's tint. */\n icon?: Icon;\n className?: string;\n ref?: Ref<HTMLDivElement>;\n}\n\nconst LINK_CLASS =\n \"cursor-pointer text-base font-medium outline-pho-brand transition duration-100 ease-linear focus-visible:outline-2 focus-visible:outline-offset-2\";\n\n/**\n * Notification — the standalone status card ported from the app's\n * `IconNotification`: a status glyph, a title/description, an optional\n * confirm+dismiss link pair, and an optional close button. It is a *card*, not a\n * lifecycle: it owns its surface but nothing about timing or stacking.\n *\n * For a transient, auto-stacking toast, drop it inside pho-ui's Base UI\n * {@link Toast} — render it as the child of a `Toast.Root` whose own surface you\n * neutralize (`className=\"bg-transparent p-0 shadow-none ring-0\"`) so the\n * manager owns motion and swipe while this card owns the look. For a choice the\n * user must make, use `Dialog` instead.\n */\nexport function Notification({\n color = \"brand\",\n title,\n description,\n confirmLabel,\n onConfirm,\n dismissLabel = \"Dismiss\",\n onClose,\n icon,\n className,\n ref,\n ...props\n}: NotificationProps) {\n const Glyph = icon ?? ICON_MAP[color];\n const showActions = Boolean(confirmLabel);\n\n return (\n <div\n ref={ref}\n {...props}\n className={cn(\n // Floating layer: keeps its shadow elevation, hairline card edge.\n \"ring-pho-secondary bg-pho-primary shadow-pho-lg rounded-base relative flex w-full max-w-sm gap-4 p-4 ring-1 ring-inset\",\n className,\n )}\n >\n <Glyph\n aria-hidden=\"true\"\n className={cn(\n \"mt-0.5 size-5 shrink-0\",\n resolveVariant(NOTIFICATION_COLORS, color),\n )}\n />\n\n <div className=\"flex flex-1 flex-col gap-3 pr-6\">\n {/* The description flush under the title. */}\n <div className=\"flex flex-col\">\n <p className=\"text-pho-primary font-heading text-base font-medium\">\n {title}\n </p>\n {description != null && description !== false && (\n <p className=\"text-pho-description text-base\">{description}</p>\n )}\n </div>\n\n {showActions && (\n <div className=\"flex gap-4\">\n <button\n type=\"button\"\n onClick={onConfirm}\n className={cn(\n LINK_CLASS,\n // brand text is monochrome now — underline carries the hover.\n \"text-pho-brand hover:underline\",\n )}\n >\n {confirmLabel}\n </button>\n <button\n type=\"button\"\n onClick={onClose}\n className={cn(\n LINK_CLASS,\n \"text-pho-secondary hover:text-pho-secondary-hover\",\n )}\n >\n {dismissLabel}\n </button>\n </div>\n )}\n </div>\n\n {onClose && (\n <button\n type=\"button\"\n onClick={onClose}\n aria-label=\"Dismiss\"\n className=\"text-pho-secondary hover:text-pho-secondary-hover hover:bg-pho-ghost-hover outline-pho-brand absolute top-2.5 right-2.5 flex size-6 cursor-pointer items-center justify-center rounded-sm transition focus-visible:outline-2 [&>svg]:size-4\"\n >\n <IconX aria-hidden=\"true\" />\n </button>\n )}\n </div>\n );\n}\n\nNotification.displayName = \"Notification\";\n"],"ignoreList":[0,1],"mappings":";;;;;;;;AASA,IAAMA,IAAa;AAAA,EAAC,CAAC,QAAQ;AAAA,IAAE,GAAK;AAAA,IAAwC,KAAO;AAAA,EAAQ,CAAC;AAAA,EAAG,CAAC,Q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A,MASE,gBAAAlB,EAACqB,GAAD;AAAA,QACE,eAAY;AAAA,QACZ,WAAWE,EACT,0BACA3B,EAAeU,GAAqBI,CAAK,CAC3C;AAAA,MACD,CAAA;AAAA,MAED,gBAAAT,EAAC,OAAD;AAAA,QAAK,WAAU;AAAA,QAAf,UAAA,CAEE,gBAAAA,EAAC,OAAD;AAAA,UAAK,WAAU;AAAA,UAAf,UAAA,CACE,gBAAAD,EAAC,KAAD;AAAA,YAAG,WAAU;AAAA,YACV,UAAAW;AAAA,UACA,CAAA,GACFC,KAAe,QAAQA,MAAgB,MACtC,gBAAAZ,EAAC,KAAD;AAAA,YAAG,WAAU;AAAA,YAAkC,UAAAY;AAAA,UAAe,CAAA,CAE7D;AAAA,QAEJ,CAAA,GAAAU,KACC,gBAAArB,EAAC,OAAD;AAAA,UAAK,WAAU;AAAA,UAAf,UAAA,CACE,gBAAAD,EAAC,UAAD;AAAA,YACE,MAAK;AAAA,YACL,SAASc;AAAA,YACT,WAAWS,EACTf,GAEA,gCACF;AAAA,YAEC,UAAAK;AAAA,UACK,CAAA,GACR,gBAAAb,EAAC,UAAD;AAAA,YACE,MAAK;AAAA,YACL,SAASgB;AAAA,YACT,WAAWO,EACTf,GACA,mDACF;AAAA,YAEC,UAAAO;AAAA,UACK,CAAA,CACL;AAAA,QAEJ,CAAA,CAAA;AAAA,M;A,MAEJC,KACC,gBAAAhB,EAAC,UAAD;AAAA,QACE,MAAK;AAAA,QACL,SAASgB;AAAA,QACT,cAAW;AAAA,QACX,WAAU;AAAA,QAEV,UAAA,gBAAAhB,EAACD,GAAD,EAAO,eAAY,OAAQ,CAAA;AAAA,MACrB,CAAA;AAAA,IAEP;AAAA,E;AAET;AAEAU,EAAa,cAAc"}
@@ -6,7 +6,7 @@ import { r as E4 } from "../chunks/use-press-pulse-IbNstUT0.js";
6
6
  import { t as p4 } from "../chunks/IconCheck-DwSMn1wK.js";
7
7
  import { t as g4 } from "../chunks/IconChevronDown-Cd68NnX2.js";
8
8
  import { t as U } from "../chunks/input-group-C3upo2OU.js";
9
- import { t as b } from "../chunks/combobox-OQOi5hlB.js";
9
+ import { t as b } from "../chunks/combobox-C_yfFCFL.js";
10
10
  import e, { useEffect as z4, useId as w4, useLayoutEffect as M4, useMemo as le, useRef as H1, useState as re } from "react";
11
11
  import { jsx as p, jsxs as M } from "react/jsx-runtime";
12
12
  import { motion as F4 } from "motion/react";
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { t as e } from "../chunks/popover-B0NBrYV5.js";
2
+ import { t as e } from "../chunks/popover-Dtp9C6Qg.js";
3
3
  export {
4
4
  e as Popover
5
5
  };
@@ -1,36 +1,36 @@
1
1
  "use client";
2
- import { t as o } from "../chunks/cn-CPbhpG1q.js";
2
+ import { t as r } from "../chunks/cn-CPbhpG1q.js";
3
3
  import "react";
4
4
  import { jsx as t } from "react/jsx-runtime";
5
5
  import { Progress as a } from "@base-ui/react/progress";
6
- function n({ className: e, ...r }) {
6
+ function n({ className: e, ...o }) {
7
7
  return /* @__PURE__ */ t(a.Root, {
8
- className: o("flex w-full flex-col gap-2", e),
9
- ...r
8
+ className: r("flex w-full flex-col gap-2", e),
9
+ ...o
10
10
  });
11
11
  }
12
- function l({ className: e, ...r }) {
12
+ function l({ className: e, ...o }) {
13
13
  return /* @__PURE__ */ t(a.Label, {
14
- className: o("text-pho-secondary text-base font-medium", e),
15
- ...r
14
+ className: r("text-pho-secondary font-heading text-base font-medium", e),
15
+ ...o
16
16
  });
17
17
  }
18
- function s({ className: e, ...r }) {
18
+ function s({ className: e, ...o }) {
19
19
  return /* @__PURE__ */ t(a.Value, {
20
- className: o("text-pho-secondary text-base tabular-nums", e),
21
- ...r
20
+ className: r("text-pho-secondary text-base tabular-nums", e),
21
+ ...o
22
22
  });
23
23
  }
24
- function u({ className: e, ...r }) {
24
+ function u({ className: e, ...o }) {
25
25
  return /* @__PURE__ */ t(a.Track, {
26
- className: o("bg-pho-secondary relative h-2 w-full overflow-hidden rounded-full", e),
27
- ...r
26
+ className: r("bg-pho-secondary relative h-2 w-full overflow-hidden rounded-full", e),
27
+ ...o
28
28
  });
29
29
  }
30
- function c({ className: e, ...r }) {
30
+ function c({ className: e, ...o }) {
31
31
  return /* @__PURE__ */ t(a.Indicator, {
32
- className: o("bg-pho-brand-solid h-full rounded-full transition-all duration-200 ease-out", e),
33
- ...r
32
+ className: r("bg-pho-brand-solid h-full rounded-full transition-all duration-200 ease-out", e),
33
+ ...o
34
34
  });
35
35
  }
36
36
  var p = {
@@ -1 +1 @@
1
- {"version":3,"file":"progress.js","names":["BaseProgress","cn","jsx","Progress$1","Root","className","props","Label","Value","Track","Indicator","Progress"],"sources":["../../src/components/progress/progress.tsx"],"sourcesContent":["import { type ComponentProps, type ElementType } from \"react\";\nimport { Progress as BaseProgress } from \"@base-ui/react/progress\";\nimport { cn } from \"../../utils/cn\";\n\n/** Override Base UI's `string | (state) => string` className with plain string. */\ntype StyledProps<T extends ElementType> = Omit<\n ComponentProps<T>,\n \"className\"\n> & {\n className?: string;\n};\n\nfunction Root({ className, ...props }: StyledProps<typeof BaseProgress.Root>) {\n return (\n <BaseProgress.Root\n className={cn(\"flex w-full flex-col gap-2\", className)}\n {...props}\n />\n );\n}\n\nfunction Label({\n className,\n ...props\n}: StyledProps<typeof BaseProgress.Label>) {\n return (\n <BaseProgress.Label\n className={cn(\"text-pho-secondary text-base font-medium\", className)}\n {...props}\n />\n );\n}\n\nfunction Value({\n className,\n ...props\n}: StyledProps<typeof BaseProgress.Value>) {\n return (\n <BaseProgress.Value\n className={cn(\"text-pho-secondary text-base tabular-nums\", className)}\n {...props}\n />\n );\n}\n\nfunction Track({\n className,\n ...props\n}: StyledProps<typeof BaseProgress.Track>) {\n return (\n <BaseProgress.Track\n className={cn(\n \"bg-pho-secondary relative h-2 w-full overflow-hidden rounded-full\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction Indicator({\n className,\n ...props\n}: StyledProps<typeof BaseProgress.Indicator>) {\n return (\n <BaseProgress.Indicator\n className={cn(\n \"bg-pho-brand-solid h-full rounded-full transition-all duration-200 ease-out\",\n className,\n )}\n {...props}\n />\n );\n}\n\n/**\n * Determinate progress bar built on Base UI `Progress`. Set `value` (0–100, or\n * `null` for indeterminate) on `Progress.Root`; Base UI sizes the indicator.\n * Compose a header row with `Progress.Label` + `Progress.Value`.\n */\nexport const Progress = { Root, Label, Value, Track, Indicator };\n"],"mappings":";;;;;AAYA,SAASI,EAAK,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAAgD;AAC5E,SACE,gBAAAJ,EAACF,EAAa,MAAd;AAAA,IACE,WAAWC,EAAG,8BAA8BI,CAAS;AAAA,IACrD,GAAIC;AAAA,EACL,CAAA;AAEL;AAEA,SAASC,EAAM,EACb,WAAAF,GACA,GAAGC,EAAA,GACsC;AACzC,SACE,gBAAAJ,EAACF,EAAa,OAAd;AAAA,IACE,WAAWC,EAAG,4CAA4CI,CAAS;AAAA,IACnE,GAAIC;AAAA,EACL,CAAA;AAEL;AAEA,SAASE,EAAM,EACb,WAAAH,GACA,GAAGC,EAAA,GACsC;AACzC,SACE,gBAAAJ,EAACF,EAAa,OAAd;AAAA,IACE,WAAWC,EAAG,6CAA6CI,CAAS;AAAA,IACpE,GAAIC;AAAA,EACL,CAAA;AAEL;AAEA,SAASG,EAAM,EACb,WAAAJ,GACA,GAAGC,EAAA,GACsC;AACzC,SACE,gBAAAJ,EAACF,EAAa,OAAd;AAAA,IACE,WAAWC,EACT,qEACAI,CACF;AAAA,IACA,GAAIC;AAAA,EACL,CAAA;AAEL;AAEA,SAASI,EAAU,EACjB,WAAAL,GACA,GAAGC,EAAA,GAC0C;AAC7C,SACE,gBAAAJ,EAACF,EAAa,WAAd;AAAA,IACE,WAAWC,EACT,+EACAI,CACF;AAAA,IACA,GAAIC;AAAA,EACL,CAAA;AAEL;AAOA,IAAaK,IAAW;AAAA,EAAE,MAAAP;AAAA,EAAM,OAAAG;AAAA,EAAO,OAAAC;AAAA,EAAO,OAAAC;AAAA,EAAO,WAAAC;AAAU"}
1
+ {"version":3,"file":"progress.js","names":["BaseProgress","cn","jsx","Progress$1","Root","className","props","Label","Value","Track","Indicator","Progress"],"sources":["../../src/components/progress/progress.tsx"],"sourcesContent":["import { type ComponentProps, type ElementType } from \"react\";\nimport { Progress as BaseProgress } from \"@base-ui/react/progress\";\nimport { cn } from \"../../utils/cn\";\n\n/** Override Base UI's `string | (state) => string` className with plain string. */\ntype StyledProps<T extends ElementType> = Omit<\n ComponentProps<T>,\n \"className\"\n> & {\n className?: string;\n};\n\nfunction Root({ className, ...props }: StyledProps<typeof BaseProgress.Root>) {\n return (\n <BaseProgress.Root\n className={cn(\"flex w-full flex-col gap-2\", className)}\n {...props}\n />\n );\n}\n\nfunction Label({\n className,\n ...props\n}: StyledProps<typeof BaseProgress.Label>) {\n return (\n <BaseProgress.Label\n className={cn(\n \"text-pho-secondary font-heading text-base font-medium\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction Value({\n className,\n ...props\n}: StyledProps<typeof BaseProgress.Value>) {\n return (\n <BaseProgress.Value\n className={cn(\"text-pho-secondary text-base tabular-nums\", className)}\n {...props}\n />\n );\n}\n\nfunction Track({\n className,\n ...props\n}: StyledProps<typeof BaseProgress.Track>) {\n return (\n <BaseProgress.Track\n className={cn(\n \"bg-pho-secondary relative h-2 w-full overflow-hidden rounded-full\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction Indicator({\n className,\n ...props\n}: StyledProps<typeof BaseProgress.Indicator>) {\n return (\n <BaseProgress.Indicator\n className={cn(\n \"bg-pho-brand-solid h-full rounded-full transition-all duration-200 ease-out\",\n className,\n )}\n {...props}\n />\n );\n}\n\n/**\n * Determinate progress bar built on Base UI `Progress`. Set `value` (0–100, or\n * `null` for indeterminate) on `Progress.Root`; Base UI sizes the indicator.\n * Compose a header row with `Progress.Label` + `Progress.Value`.\n */\nexport const Progress = { Root, Label, Value, Track, Indicator };\n"],"mappings":";;;;;AAYA,SAASI,EAAK,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAAgD;AAC5E,SACE,gBAAAJ,EAACF,EAAa,MAAd;AAAA,IACE,WAAWC,EAAG,8BAA8BI,CAAS;AAAA,IACrD,GAAIC;AAAA,EACL,CAAA;AAEL;AAEA,SAASC,EAAM,EACb,WAAAF,GACA,GAAGC,EAAA,GACsC;AACzC,SACE,gBAAAJ,EAACF,EAAa,OAAd;AAAA,IACE,WAAWC,EACT,yDACAI,CACF;AAAA,IACA,GAAIC;AAAA,EACL,CAAA;AAEL;AAEA,SAASE,EAAM,EACb,WAAAH,GACA,GAAGC,EAAA,GACsC;AACzC,SACE,gBAAAJ,EAACF,EAAa,OAAd;AAAA,IACE,WAAWC,EAAG,6CAA6CI,CAAS;AAAA,IACpE,GAAIC;AAAA,EACL,CAAA;AAEL;AAEA,SAASG,EAAM,EACb,WAAAJ,GACA,GAAGC,EAAA,GACsC;AACzC,SACE,gBAAAJ,EAACF,EAAa,OAAd;AAAA,IACE,WAAWC,EACT,qEACAI,CACF;AAAA,IACA,GAAIC;AAAA,EACL,CAAA;AAEL;AAEA,SAASI,EAAU,EACjB,WAAAL,GACA,GAAGC,EAAA,GAC0C;AAC7C,SACE,gBAAAJ,EAACF,EAAa,WAAd;AAAA,IACE,WAAWC,EACT,+EACAI,CACF;AAAA,IACA,GAAIC;AAAA,EACL,CAAA;AAEL;AAOA,IAAaK,IAAW;AAAA,EAAE,MAAAP;AAAA,EAAM,OAAAG;AAAA,EAAO,OAAAC;AAAA,EAAO,OAAAC;AAAA,EAAO,WAAAC;AAAU"}
@@ -57,7 +57,7 @@ function P({ title: r, description: e }) {
57
57
  return /* @__PURE__ */ m("span", {
58
58
  className: "flex min-w-0 flex-1 flex-col",
59
59
  children: [/* @__PURE__ */ o("span", {
60
- className: "text-pho-primary block font-medium",
60
+ className: "text-pho-primary font-heading block font-medium",
61
61
  children: r
62
62
  }), e ? /* @__PURE__ */ o("span", {
63
63
  className: "text-pho-description block",
@@ -1 +1 @@
1
- {"version":3,"file":"radio-group.js","names":["BaseRadioGroup","BaseRadio","BaseRadio","cn","usePressPulse","CHOICE_INDICATOR_POP_TRANSITION","CHOICE_CARD_PRESS_SCALE","CHOICE_CARD_PRESS_TRANSITION","CHOICE_CARD_BASE","createContext","useContext","jsx","jsxs","motion","Radio$1","RadioGroup$1","RadioGroupDisabledContext","useRadioGroupDisabled","RadioGroup","className","disabled","props","Radio","label","groupDisabled","motionProps","onPointerDown","dotMotionProps","dot","CardCopy","title","description","RadioCard","icon","trailing","hasIcon"],"sources":["../../src/components/radio-group/radio-group.tsx","../../src/components/radio-group/radio-card.tsx"],"sourcesContent":["import {\n createContext,\n useContext,\n type ComponentProps,\n type ReactNode,\n} from \"react\";\nimport { RadioGroup as BaseRadioGroup } from \"@base-ui/react/radio-group\";\nimport { Radio as BaseRadio } from \"@base-ui/react/radio\";\nimport { motion } from \"motion/react\";\nimport { cn } from \"../../utils/cn\";\nimport { usePressPulse } from \"../../utils/use-press-pulse\";\nimport { CHOICE_INDICATOR_POP_TRANSITION } from \"../../utils/choice-card\";\n\nexport interface RadioGroupProps extends Omit<\n ComponentProps<typeof BaseRadioGroup>,\n \"className\"\n> {\n className?: string;\n}\n\nconst RadioGroupDisabledContext = createContext(false);\n\n/** Group-level `disabled`, so press pulse skips when the group is locked. */\nexport function useRadioGroupDisabled() {\n return useContext(RadioGroupDisabledContext);\n}\n\n/**\n * Single-choice group built on Base UI `RadioGroup`. Holds `Radio` items;\n * exactly one may be selected. Control with `value` / `onValueChange` or leave\n * uncontrolled with `defaultValue`.\n */\nexport function RadioGroup({ className, disabled, ...props }: RadioGroupProps) {\n return (\n <RadioGroupDisabledContext.Provider value={Boolean(disabled)}>\n <BaseRadioGroup\n disabled={disabled}\n className={cn(\"flex flex-col gap-3\", className)}\n {...props}\n />\n </RadioGroupDisabledContext.Provider>\n );\n}\n\nRadioGroup.displayName = \"RadioGroup\";\n\nexport interface RadioProps extends Omit<\n ComponentProps<typeof BaseRadio.Root>,\n \"className\"\n> {\n className?: string;\n /** Text rendered beside the dot; the whole row selects this option. */\n label?: ReactNode;\n}\n\n/**\n * A single option within a `RadioGroup`. Requires a `value`; pass `label` for a\n * clickable text row or provide an `aria-label`.\n */\nexport function Radio({ className, label, disabled, ...props }: RadioProps) {\n const groupDisabled = useRadioGroupDisabled();\n const { motionProps } = usePressPulse({\n scale: 0.94,\n disabled: Boolean(disabled || groupDisabled),\n });\n // With a label, the whole row is the hit target — press-trigger from there\n // (pointerdown bubbles up from the label text too) so the dot still\n // animates when the text, not the dot itself, is what's clicked.\n const { onPointerDown, ...dotMotionProps } = motionProps;\n\n const dot = (\n <BaseRadio.Root\n disabled={disabled}\n render={\n <motion.span\n {...dotMotionProps}\n onPointerDown={label ? undefined : onPointerDown}\n />\n }\n className={cn(\n \"outline-pho-brand bg-pho-primary ring-pho-primary flex size-5 shrink-0 cursor-pointer items-center justify-center rounded-full ring-1 ring-inset focus-visible:outline-2 focus-visible:outline-offset-2\",\n // Transform stays out — Motion owns the press pulse.\n \"transition-[background-color,box-shadow,color,outline-color] duration-150 ease-out\",\n // group-hover covers hovering the label text, not just the dot itself.\n \"hover:bg-pho-primary-hover hover:ring-pho-ink group-hover:bg-pho-primary-hover group-hover:ring-pho-ink\",\n \"data-[checked]:bg-pho-brand-solid data-[checked]:ring-transparent\",\n \"data-[checked]:hover:bg-pho-brand-solid-hover data-[checked]:group-hover:bg-pho-brand-solid-hover\",\n \"data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50\",\n className,\n )}\n {...props}\n >\n {/* The indicator only renders when checked, i.e. always on brand-solid —\n on-brand (light-dark(#fff,#000)) keeps the dot visible in dark mode,\n where brand-solid is white. Pops in rather than appearing flat. */}\n <BaseRadio.Indicator\n render={\n <motion.span\n initial={{ scale: 0 }}\n animate={{ scale: 1 }}\n transition={CHOICE_INDICATOR_POP_TRANSITION}\n />\n }\n className=\"bg-pho-on-brand size-2 rounded-full\"\n />\n </BaseRadio.Root>\n );\n\n if (!label) return dot;\n return (\n <label\n className=\"group flex cursor-pointer items-center gap-2 select-none\"\n onPointerDown={onPointerDown}\n >\n {dot}\n <span className=\"text-pho-secondary text-base\">{label}</span>\n </label>\n );\n}\n\nRadio.displayName = \"Radio\";\n","import { type ComponentProps, type ReactNode } from \"react\";\nimport { Radio as BaseRadio } from \"@base-ui/react/radio\";\nimport { motion } from \"motion/react\";\nimport { cn } from \"../../utils/cn\";\nimport { usePressPulse } from \"../../utils/use-press-pulse\";\nimport {\n CHOICE_CARD_BASE,\n CHOICE_CARD_WITH_ICON,\n CHOICE_CARD_PRESS_SCALE,\n CHOICE_CARD_PRESS_TRANSITION,\n CHOICE_INDICATOR_POP_TRANSITION,\n} from \"../../utils/choice-card\";\nimport { useRadioGroupDisabled } from \"./radio-group\";\n\nexport interface RadioCardProps extends Omit<\n ComponentProps<typeof BaseRadio.Root>,\n \"className\" | \"title\"\n> {\n className?: string;\n /** Tile heading. */\n title: ReactNode;\n /** Supporting copy shown below the title. */\n description?: ReactNode;\n /** Glyph stacked above the title. When set, it replaces the radio dot. */\n icon?: ReactNode;\n /**\n * Glyph at the end of the title row in place of the radio dot, for a\n * choice that adds something rather than picks it — a plus on \"New\n * brand\". The tile's ring still shows it chosen. For tiles without an\n * `icon` (those have no dot to replace).\n */\n trailing?: ReactNode;\n}\n\nfunction CardCopy({\n title,\n description,\n}: {\n title: ReactNode;\n description?: ReactNode;\n}) {\n return (\n <span className=\"flex min-w-0 flex-1 flex-col\">\n <span className=\"text-pho-primary block font-medium\">{title}</span>\n {description ? (\n <span className=\"text-pho-description block\">{description}</span>\n ) : null}\n </span>\n );\n}\n\n/**\n * A `Radio` styled as a bordered, selectable tile — title, optional\n * description, and either a stacked icon above them or, at the end of the\n * title row, the radio dot (or a `trailing` glyph in its place). The tile\n * *is* the radio (see `usePressPulse`); an inner glyph is decorative.\n */\nexport function RadioCard({\n className,\n title,\n description,\n icon,\n trailing,\n disabled,\n ...props\n}: RadioCardProps) {\n const groupDisabled = useRadioGroupDisabled();\n const { motionProps } = usePressPulse({\n scale: CHOICE_CARD_PRESS_SCALE,\n disabled: Boolean(disabled || groupDisabled),\n transition: CHOICE_CARD_PRESS_TRANSITION,\n });\n const hasIcon = icon != null;\n\n return (\n <BaseRadio.Root\n disabled={disabled}\n render={<motion.span {...motionProps} />}\n className={cn(\n CHOICE_CARD_BASE,\n hasIcon && CHOICE_CARD_WITH_ICON,\n className,\n )}\n {...props}\n >\n {hasIcon ? (\n <span\n aria-hidden\n className=\"text-pho-secondary flex size-6 shrink-0 items-center justify-center [&>svg]:size-6\"\n >\n {icon}\n </span>\n ) : null}\n <CardCopy title={title} description={description} />\n {/* The dot sits at the end of the title row, centered on the title's\n line; the same half step from the right edge keeps it square in\n the corner. A trailing glyph takes the same seat at the same size. */}\n {hasIcon ? null : trailing != null && trailing !== false ? (\n <span\n aria-hidden\n data-radio-card-trailing=\"\"\n className=\"text-pho-secondary mt-0.5 mr-0.5 flex size-4 shrink-0 items-center justify-center [&>svg]:size-4\"\n >\n {trailing}\n </span>\n ) : (\n <span\n aria-hidden\n className={cn(\n \"bg-pho-primary ring-pho-primary mt-0.5 mr-0.5 flex size-4 shrink-0 items-center justify-center rounded-full ring-1 ring-inset\",\n \"group-hover:bg-pho-primary-hover group-hover:ring-pho-ink transition-[background-color,box-shadow] duration-150 ease-out\",\n \"group-data-[checked]:bg-pho-brand-solid group-data-[checked]:group-hover:bg-pho-brand-solid-hover group-data-[checked]:ring-transparent\",\n )}\n >\n <BaseRadio.Indicator\n render={\n <motion.span\n initial={{ scale: 0 }}\n animate={{ scale: 1 }}\n transition={CHOICE_INDICATOR_POP_TRANSITION}\n />\n }\n className=\"bg-pho-on-brand size-1.5 rounded-full\"\n />\n </span>\n )}\n </BaseRadio.Root>\n );\n}\n\nRadioCard.displayName = \"RadioCard\";\n"],"mappings":";;;;;;;;;AAoBA,IAAMgB,IAA4BP,EAAc,EAAK;AAGrD,SAAgBQ,IAAwB;AACtC,SAAOP,EAAWM,CAAyB;AAC7C;AA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A,QACE,eAAA;AAAA,QACA,4BAAyB;AAAA,QACzB,WAAU;AAAA,QAET,UAAAuB;AAAA,MACG,CAAA,IAEN,gBAAAvB,EAAC,QAAD;AAAA,QACE,eAAA;AAAA,QACA,WAAWR,EACT,iIACA,4HACA,yIACF;AAAA,QAEA,UAAA,gBAAAQ,EAACT,EAAU,WAAX;AAAA,UACE,QACE,gBAAAS,EAACE,EAAO,MAAR;AAAA,YACE,SAAS,EAAE,OAAO,EAAE;AAAA,YACpB,SAAS,EAAE,OAAO,EAAE;AAAA,YACpB,YAAYR;AAAA,UACb,CAAA;AAAA,UAEH,WAAU;AAAA,QACX,CAAA;AAAA,MACG,CAAA;AAAA,IAEM;AAAA,E;AAEpB;AAEA2B,EAAU,cAAc"}
1
+ {"version":3,"file":"radio-group.js","names":["BaseRadioGroup","BaseRadio","BaseRadio","cn","usePressPulse","CHOICE_INDICATOR_POP_TRANSITION","CHOICE_CARD_PRESS_SCALE","CHOICE_CARD_PRESS_TRANSITION","CHOICE_CARD_BASE","createContext","useContext","jsx","jsxs","motion","Radio$1","RadioGroup$1","RadioGroupDisabledContext","useRadioGroupDisabled","RadioGroup","className","disabled","props","Radio","label","groupDisabled","motionProps","onPointerDown","dotMotionProps","dot","CardCopy","title","description","RadioCard","icon","trailing","hasIcon"],"sources":["../../src/components/radio-group/radio-group.tsx","../../src/components/radio-group/radio-card.tsx"],"sourcesContent":["import {\n createContext,\n useContext,\n type ComponentProps,\n type ReactNode,\n} from \"react\";\nimport { RadioGroup as BaseRadioGroup } from \"@base-ui/react/radio-group\";\nimport { Radio as BaseRadio } from \"@base-ui/react/radio\";\nimport { motion } from \"motion/react\";\nimport { cn } from \"../../utils/cn\";\nimport { usePressPulse } from \"../../utils/use-press-pulse\";\nimport { CHOICE_INDICATOR_POP_TRANSITION } from \"../../utils/choice-card\";\n\nexport interface RadioGroupProps extends Omit<\n ComponentProps<typeof BaseRadioGroup>,\n \"className\"\n> {\n className?: string;\n}\n\nconst RadioGroupDisabledContext = createContext(false);\n\n/** Group-level `disabled`, so press pulse skips when the group is locked. */\nexport function useRadioGroupDisabled() {\n return useContext(RadioGroupDisabledContext);\n}\n\n/**\n * Single-choice group built on Base UI `RadioGroup`. Holds `Radio` items;\n * exactly one may be selected. Control with `value` / `onValueChange` or leave\n * uncontrolled with `defaultValue`.\n */\nexport function RadioGroup({ className, disabled, ...props }: RadioGroupProps) {\n return (\n <RadioGroupDisabledContext.Provider value={Boolean(disabled)}>\n <BaseRadioGroup\n disabled={disabled}\n className={cn(\"flex flex-col gap-3\", className)}\n {...props}\n />\n </RadioGroupDisabledContext.Provider>\n );\n}\n\nRadioGroup.displayName = \"RadioGroup\";\n\nexport interface RadioProps extends Omit<\n ComponentProps<typeof BaseRadio.Root>,\n \"className\"\n> {\n className?: string;\n /** Text rendered beside the dot; the whole row selects this option. */\n label?: ReactNode;\n}\n\n/**\n * A single option within a `RadioGroup`. Requires a `value`; pass `label` for a\n * clickable text row or provide an `aria-label`.\n */\nexport function Radio({ className, label, disabled, ...props }: RadioProps) {\n const groupDisabled = useRadioGroupDisabled();\n const { motionProps } = usePressPulse({\n scale: 0.94,\n disabled: Boolean(disabled || groupDisabled),\n });\n // With a label, the whole row is the hit target — press-trigger from there\n // (pointerdown bubbles up from the label text too) so the dot still\n // animates when the text, not the dot itself, is what's clicked.\n const { onPointerDown, ...dotMotionProps } = motionProps;\n\n const dot = (\n <BaseRadio.Root\n disabled={disabled}\n render={\n <motion.span\n {...dotMotionProps}\n onPointerDown={label ? undefined : onPointerDown}\n />\n }\n className={cn(\n \"outline-pho-brand bg-pho-primary ring-pho-primary flex size-5 shrink-0 cursor-pointer items-center justify-center rounded-full ring-1 ring-inset focus-visible:outline-2 focus-visible:outline-offset-2\",\n // Transform stays out — Motion owns the press pulse.\n \"transition-[background-color,box-shadow,color,outline-color] duration-150 ease-out\",\n // group-hover covers hovering the label text, not just the dot itself.\n \"hover:bg-pho-primary-hover hover:ring-pho-ink group-hover:bg-pho-primary-hover group-hover:ring-pho-ink\",\n \"data-[checked]:bg-pho-brand-solid data-[checked]:ring-transparent\",\n \"data-[checked]:hover:bg-pho-brand-solid-hover data-[checked]:group-hover:bg-pho-brand-solid-hover\",\n \"data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50\",\n className,\n )}\n {...props}\n >\n {/* The indicator only renders when checked, i.e. always on brand-solid —\n on-brand (light-dark(#fff,#000)) keeps the dot visible in dark mode,\n where brand-solid is white. Pops in rather than appearing flat. */}\n <BaseRadio.Indicator\n render={\n <motion.span\n initial={{ scale: 0 }}\n animate={{ scale: 1 }}\n transition={CHOICE_INDICATOR_POP_TRANSITION}\n />\n }\n className=\"bg-pho-on-brand size-2 rounded-full\"\n />\n </BaseRadio.Root>\n );\n\n if (!label) return dot;\n return (\n <label\n className=\"group flex cursor-pointer items-center gap-2 select-none\"\n onPointerDown={onPointerDown}\n >\n {dot}\n <span className=\"text-pho-secondary text-base\">{label}</span>\n </label>\n );\n}\n\nRadio.displayName = \"Radio\";\n","import { type ComponentProps, type ReactNode } from \"react\";\nimport { Radio as BaseRadio } from \"@base-ui/react/radio\";\nimport { motion } from \"motion/react\";\nimport { cn } from \"../../utils/cn\";\nimport { usePressPulse } from \"../../utils/use-press-pulse\";\nimport {\n CHOICE_CARD_BASE,\n CHOICE_CARD_WITH_ICON,\n CHOICE_CARD_PRESS_SCALE,\n CHOICE_CARD_PRESS_TRANSITION,\n CHOICE_INDICATOR_POP_TRANSITION,\n} from \"../../utils/choice-card\";\nimport { useRadioGroupDisabled } from \"./radio-group\";\n\nexport interface RadioCardProps extends Omit<\n ComponentProps<typeof BaseRadio.Root>,\n \"className\" | \"title\"\n> {\n className?: string;\n /** Tile heading. */\n title: ReactNode;\n /** Supporting copy shown below the title. */\n description?: ReactNode;\n /** Glyph stacked above the title. When set, it replaces the radio dot. */\n icon?: ReactNode;\n /**\n * Glyph at the end of the title row in place of the radio dot, for a\n * choice that adds something rather than picks it — a plus on \"New\n * brand\". The tile's ring still shows it chosen. For tiles without an\n * `icon` (those have no dot to replace).\n */\n trailing?: ReactNode;\n}\n\nfunction CardCopy({\n title,\n description,\n}: {\n title: ReactNode;\n description?: ReactNode;\n}) {\n return (\n <span className=\"flex min-w-0 flex-1 flex-col\">\n <span className=\"text-pho-primary font-heading block font-medium\">\n {title}\n </span>\n {description ? (\n <span className=\"text-pho-description block\">{description}</span>\n ) : null}\n </span>\n );\n}\n\n/**\n * A `Radio` styled as a bordered, selectable tile — title, optional\n * description, and either a stacked icon above them or, at the end of the\n * title row, the radio dot (or a `trailing` glyph in its place). The tile\n * *is* the radio (see `usePressPulse`); an inner glyph is decorative.\n */\nexport function RadioCard({\n className,\n title,\n description,\n icon,\n trailing,\n disabled,\n ...props\n}: RadioCardProps) {\n const groupDisabled = useRadioGroupDisabled();\n const { motionProps } = usePressPulse({\n scale: CHOICE_CARD_PRESS_SCALE,\n disabled: Boolean(disabled || groupDisabled),\n transition: CHOICE_CARD_PRESS_TRANSITION,\n });\n const hasIcon = icon != null;\n\n return (\n <BaseRadio.Root\n disabled={disabled}\n render={<motion.span {...motionProps} />}\n className={cn(\n CHOICE_CARD_BASE,\n hasIcon && CHOICE_CARD_WITH_ICON,\n className,\n )}\n {...props}\n >\n {hasIcon ? (\n <span\n aria-hidden\n className=\"text-pho-secondary flex size-6 shrink-0 items-center justify-center [&>svg]:size-6\"\n >\n {icon}\n </span>\n ) : null}\n <CardCopy title={title} description={description} />\n {/* The dot sits at the end of the title row, centered on the title's\n line; the same half step from the right edge keeps it square in\n the corner. A trailing glyph takes the same seat at the same size. */}\n {hasIcon ? null : trailing != null && trailing !== false ? (\n <span\n aria-hidden\n data-radio-card-trailing=\"\"\n className=\"text-pho-secondary mt-0.5 mr-0.5 flex size-4 shrink-0 items-center justify-center [&>svg]:size-4\"\n >\n {trailing}\n </span>\n ) : (\n <span\n aria-hidden\n className={cn(\n \"bg-pho-primary ring-pho-primary mt-0.5 mr-0.5 flex size-4 shrink-0 items-center justify-center rounded-full ring-1 ring-inset\",\n \"group-hover:bg-pho-primary-hover group-hover:ring-pho-ink transition-[background-color,box-shadow] duration-150 ease-out\",\n \"group-data-[checked]:bg-pho-brand-solid group-data-[checked]:group-hover:bg-pho-brand-solid-hover group-data-[checked]:ring-transparent\",\n )}\n >\n <BaseRadio.Indicator\n render={\n <motion.span\n initial={{ scale: 0 }}\n animate={{ scale: 1 }}\n transition={CHOICE_INDICATOR_POP_TRANSITION}\n />\n }\n className=\"bg-pho-on-brand size-1.5 rounded-full\"\n />\n </span>\n )}\n </BaseRadio.Root>\n );\n}\n\nRadioCard.displayName = \"RadioCard\";\n"],"mappings":";;;;;;;;;AAoBA,IAAMgB,IAA4BP,EAAc,EAAK;AAGrD,SAAgBQ,IAAwB;AACtC,SAAOP,EAAWM,CAAyB;AAC7C;AAOA,SAAgBE,EAAW,EAAE,WAAAC,GAAW,UAAAC,GAAU,GAAGC,EAAA,GAA0B;AAC7E,SACE,gBAAAV,EAACK,EAA0B,UAA3B;AAAA,IAAoC,OAAO,EAAQI;AAAA,IACjD,UAAA,gBAAAT,EAACX,GAAD;AAAA,MACY,UAAAoB;AAAA,MACV,WAAWjB,EAAG,uBAAuBgB,CAAS;AAAA,MAC9C,GAAIE;AAAA,IACL,CAAA;AAAA,EACiC,CAAA;AAExC;AAEAH,EAAW,cAAc;AAezB,SAAgBI,EAAM,EAAE,WAAAH,GAAW,OAAAI,GAAO,UAAAH,GAAU,GAAGC,EAAA,GAAqB;AAC1E,QAAMG,IAAgBP,EAAsB,GACtC,EAAE,aAAAQ,EAAA,IAAgBrB,EAAc;AAAA,IACpC,OAAO;AAAA,IACP,UAAU,GAAQgB,KAAYI;AAAA,EAChC,CAAC,GAIK,EAAE,eAAAE,GAAe,GAAGC,EAAA,IAAmBF,GAEvCG,IACJ,gBAAAjB,EAACV,EAAU,MAAX;AAAA,IACY,UAAAmB;AAAA,IACV,QACE,gBAAAT,EAACE,EAAO,MAAR;AAAA,MACE,GAAIc;AAAA,MACJ,eAAeJ,IAAQ,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B,EAACV,EAAU,MAAX;AAAA,IACY,UAAAkB;AAAA,IACV,QAAQ,gBAAAT,EAACE,EAAO,MAAR,EAAa,GAAIY,EAAc,CAAA;AAAA,IACvC,WAAWtB,EACTK,GACA2B,KAAA,oBACAhB,CACF;AAAA,IACA,GAAIE;AAAA,IARN,UAAA;AAAA,MAUGc,IACC,gBAAAxB,EAAC,QAAD;AAAA,QACE,eAAA;AAAA,QACA,WAAU;AAAA,QAET,UAAAsB;AAAA,MACG,CAAA,IACJ;AAAA,MACJ,gBAAAtB,EAACkB,GAAD;AAAA,QAAiB,OAAAC;AAAA,QAAoB,aAAAC;AAAA,MAAc,CAAA;AAAA,MAIlDI,IAAU,OAAOD,KAAY,QAAQA,MAAa,KACjD,gBAAAvB,EAAC,QAAD;AAAA,QACE,eAAA;AAAA,QACA,4BAAyB;AAAA,QACzB,WAAU;AAAA,QAET,UAAAuB;AAAA,MACG,CAAA,IAEN,gBAAAvB,EAAC,QAAD;AAAA,QACE,eAAA;AAAA,QACA,WAAWR,EACT,iIACA,4HACA,yIACF;AAAA,QAEA,UAAA,gBAAAQ,EAACT,EAAU,WAAX;AAAA,UACE,QACE,gBAAAS,EAACE,EAAO,MAAR;AAAA,YACE,SAAS,EAAE,OAAO,EAAE;AAAA,YACpB,SAAS,EAAE,OAAO,EAAE;AAAA,YACpB,YAAYR;AAAA,UACb,CAAA;AAAA,UAEH,WAAU;AAAA,QACX,CAAA;AAAA,MACG,CAAA;AAAA,IAEM;AAAA,E;AAEpB;AAEA2B,EAAU,cAAc"}
@@ -5,17 +5,17 @@ import { u as lt } from "../chunks/button-CLfWdqm-.js";
5
5
  import { t as ye } from "../chunks/IconCheck-DwSMn1wK.js";
6
6
  import { t as it } from "../chunks/IconChevronDown-Cd68NnX2.js";
7
7
  import { t as ct } from "../chunks/close-button-Ck4rY1Fp.js";
8
- import { r as ce } from "../chunks/checkbox-DpWLbKVS.js";
8
+ import { r as ce } from "../chunks/checkbox-D8smFViR.js";
9
9
  import { t as I } from "../chunks/skeleton-CqZlGphn.js";
10
10
  import { t as dt } from "../chunks/ghost-search-CMUI2UH0.js";
11
11
  import { t as A } from "../chunks/tooltip-4J1PUJmB.js";
12
- import { t as p } from "../chunks/select-xhSvDNbw.js";
12
+ import { t as p } from "../chunks/select-Dux2SBVc.js";
13
13
  import { useEffect as Ne, useId as ut, useLayoutEffect as pt, useMemo as G, useRef as S, useState as X } from "react";
14
14
  import { jsx as n, jsxs as a } from "react/jsx-runtime";
15
15
  import { AnimatePresence as H, motion as b, useReducedMotion as ht } from "motion/react";
16
16
  import { Field as mt } from "@base-ui/react/field";
17
17
  import { Tooltip as ft } from "@base-ui/react/tooltip";
18
- var vt = "group/scope relative w-full min-w-0 overflow-clip rounded-base border border-pho-secondary bg-pho-primary [--scope-inset:var(--choice-card-inset,0.75rem)]", Se = "px-[var(--scope-inset)]", gt = "flex min-h-11 items-center gap-3 border-b border-pho-secondary px-[var(--scope-inset)]", bt = "text-pho-secondary hover:bg-pho-ghost-hover hover:text-pho-secondary-hover data-[popup-open]:bg-pho-ghost-hover outline-pho-brand shrink-0 gap-1.5 rounded-full py-1.5 pr-2 pl-3 font-medium focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-solid", de = "custom", Ce = "grid auto-rows-max grid-cols-1 group-data-[wide]/scope:grid-cols-[fit-content(45%)_minmax(0,1fr)] group-data-[wide]/scope:gap-x-4", Oe = "col-span-full grid auto-rows-max grid-cols-subgrid border-t border-pho-secondary first:border-t-0", Ee = "group col-span-full flex min-w-0 cursor-pointer flex-col gap-y-0.5 px-[var(--scope-inset)] py-2 transition-colors select-none hover:bg-pho-primary-hover group-data-[wide]/scope:grid group-data-[wide]/scope:grid-cols-subgrid group-data-[wide]/scope:items-center data-[disabled]:cursor-not-allowed data-[disabled]:hover:bg-transparent", wt = "col-span-full flex min-w-0 flex-col gap-y-0.5 px-[var(--scope-inset)] py-2 group-data-[wide]/scope:grid group-data-[wide]/scope:grid-cols-subgrid group-data-[wide]/scope:items-center", ke = "group col-span-full flex h-8 min-w-0 cursor-pointer items-center gap-2 border-b border-pho-secondary bg-pho-page px-[var(--scope-inset)] text-xs font-medium text-pho-secondary select-none data-[disabled]:cursor-not-allowed", Ie = "line-clamp-2 min-w-0 pl-6 text-xs text-pho-description group-data-[wide]/scope:block group-data-[wide]/scope:truncate group-data-[wide]/scope:pl-0", Re = "flex w-full min-w-0 items-center gap-3 px-[var(--scope-inset)] py-2.5 text-left outline-pho-brand focus-visible:outline-2 focus-visible:-outline-offset-2", xt = 34, yt = 18;
18
+ var vt = "group/scope relative w-full min-w-0 overflow-clip rounded-base border border-pho-secondary bg-pho-primary [--scope-inset:var(--choice-card-inset,0.75rem)]", Se = "px-[var(--scope-inset)]", gt = "flex min-h-11 items-center gap-3 border-b border-pho-secondary px-[var(--scope-inset)]", bt = "text-pho-secondary hover:bg-pho-ghost-hover hover:text-pho-secondary-hover data-[popup-open]:bg-pho-ghost-hover outline-pho-brand shrink-0 gap-1.5 rounded-full py-1.5 pr-2 pl-3 font-medium focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-solid", de = "custom", Ce = "grid auto-rows-max grid-cols-1 group-data-[wide]/scope:grid-cols-[fit-content(45%)_minmax(0,1fr)] group-data-[wide]/scope:gap-x-4", Oe = "col-span-full grid auto-rows-max grid-cols-subgrid border-t border-pho-secondary first:border-t-0", Ee = "group col-span-full flex min-w-0 cursor-pointer flex-col px-[var(--scope-inset)] py-2 transition-colors select-none hover:bg-pho-primary-hover group-data-[wide]/scope:grid group-data-[wide]/scope:grid-cols-subgrid group-data-[wide]/scope:items-center data-[disabled]:cursor-not-allowed data-[disabled]:hover:bg-transparent", wt = "col-span-full flex min-w-0 flex-col px-[var(--scope-inset)] py-2 group-data-[wide]/scope:grid group-data-[wide]/scope:grid-cols-subgrid group-data-[wide]/scope:items-center", ke = "group col-span-full flex h-8 min-w-0 cursor-pointer items-center gap-2 border-b border-pho-secondary bg-pho-page px-[var(--scope-inset)] text-xs font-medium text-pho-secondary select-none data-[disabled]:cursor-not-allowed", Ie = "line-clamp-2 min-w-0 pl-6 text-xs text-pho-description group-data-[wide]/scope:block group-data-[wide]/scope:truncate group-data-[wide]/scope:pl-0", Re = "flex w-full min-w-0 items-center gap-3 px-[var(--scope-inset)] py-2.5 text-left outline-pho-brand focus-visible:outline-2 focus-visible:-outline-offset-2", xt = 34, yt = 18;
19
19
  function Nt(r) {
20
20
  const [s, m] = X({
21
21
  wide: !0,