@photon-ai/pho-ui 4.23.0 → 4.25.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 (54) hide show
  1. package/dist/chunks/{basic-page-DnB4YSRj.js → basic-page-DYBjCadG.js} +5 -5
  2. package/dist/chunks/{basic-page-DnB4YSRj.js.map → basic-page-DYBjCadG.js.map} +1 -1
  3. package/dist/chunks/{button-CLfWdqm-.js → button-KM0lAQ4x.js} +2 -2
  4. package/dist/chunks/button-KM0lAQ4x.js.map +1 -0
  5. package/dist/chunks/{chat-C5W6L_Jg.js → chat-D98GCjbe.js} +2 -2
  6. package/dist/chunks/{chat-C5W6L_Jg.js.map → chat-D98GCjbe.js.map} +1 -1
  7. package/dist/chunks/{code-block-B7MibV6r.js → code-block-CthLWfxd.js} +3 -3
  8. package/dist/chunks/{code-block-B7MibV6r.js.map → code-block-CthLWfxd.js.map} +1 -1
  9. package/dist/chunks/{collapsible-C2tn_b1Q.js → collapsible-CR4QWjFh.js} +8 -8
  10. package/dist/chunks/collapsible-CR4QWjFh.js.map +1 -0
  11. package/dist/chunks/{dialog-e4_mOYGp.js → dialog-H72fZGtf.js} +2 -2
  12. package/dist/chunks/{dialog-e4_mOYGp.js.map → dialog-H72fZGtf.js.map} +1 -1
  13. package/dist/chunks/{error-BjSn7wLu.js → error-BT71wcUd.js} +2 -2
  14. package/dist/chunks/{error-BjSn7wLu.js.map → error-BT71wcUd.js.map} +1 -1
  15. package/dist/chunks/{filter-bar-CLLonntH.js → filter-bar-D_sBAT5Y.js} +2 -2
  16. package/dist/chunks/{filter-bar-CLLonntH.js.map → filter-bar-D_sBAT5Y.js.map} +1 -1
  17. package/dist/chunks/{log-list-BqaJv2oA.js → log-list-BA6CcfxR.js} +2 -2
  18. package/dist/chunks/{log-list-BqaJv2oA.js.map → log-list-BA6CcfxR.js.map} +1 -1
  19. package/dist/chunks/{sidebar-BsBlAVM9.js → sidebar-ttBkgGRh.js} +3 -3
  20. package/dist/chunks/{sidebar-BsBlAVM9.js.map → sidebar-ttBkgGRh.js.map} +1 -1
  21. package/dist/chunks/{toast-K549iZEX.js → toast-Cbnn8lcA.js} +2 -2
  22. package/dist/chunks/{toast-K549iZEX.js.map → toast-Cbnn8lcA.js.map} +1 -1
  23. package/dist/chunks/toggle-DeFSPgIj.js +33 -0
  24. package/dist/chunks/{toggle-Ca4SS3YD.js.map → toggle-DeFSPgIj.js.map} +1 -1
  25. package/dist/chunks/{trace-5Rh1ade9.js → trace-ClMpG82z.js} +2 -2
  26. package/dist/chunks/{trace-5Rh1ade9.js.map → trace-ClMpG82z.js.map} +1 -1
  27. package/dist/components/accordion.js +1 -1
  28. package/dist/components/accordion.js.map +1 -1
  29. package/dist/components/button.js +1 -1
  30. package/dist/components/chat.js +1 -1
  31. package/dist/components/code-block.js +1 -1
  32. package/dist/components/collapsible.js +1 -1
  33. package/dist/components/command.js +1 -1
  34. package/dist/components/dialog.js +1 -1
  35. package/dist/components/error.js +1 -1
  36. package/dist/components/filter-bar.js +1 -1
  37. package/dist/components/log-list.js +1 -1
  38. package/dist/components/notification.js +1 -1
  39. package/dist/components/notification.js.map +1 -1
  40. package/dist/components/scope.js +1 -1
  41. package/dist/components/toast.js +1 -1
  42. package/dist/components/toggle.js +1 -1
  43. package/dist/components/toolbar.js +1 -1
  44. package/dist/components/toolbar.js.map +1 -1
  45. package/dist/components/trace.js +1 -1
  46. package/dist/index.js +10 -10
  47. package/dist/sections/basic-page.js +1 -1
  48. package/dist/sections/sidebar.js +1 -1
  49. package/package.json +1 -1
  50. package/src/styles/fonts.css +8 -6
  51. package/src/styles/theme.css +19 -18
  52. package/dist/chunks/button-CLfWdqm-.js.map +0 -1
  53. package/dist/chunks/collapsible-C2tn_b1Q.js.map +0 -1
  54. package/dist/chunks/toggle-Ca4SS3YD.js +0 -33
@@ -53,7 +53,7 @@ function g({ className: e, ...t }) {
53
53
  function f({ className: e, children: t, ...o }) {
54
54
  const a = l(p);
55
55
  return /* @__PURE__ */ c(s.Trigger, {
56
- className: n("group/trigger text-pho-primary outline-pho-brand font-heading relative flex flex-1 cursor-pointer items-center justify-between gap-3 text-left font-medium tracking-[-0.1px]", "ease-pho-spring-reveal data-[panel-open]:text-pho-description transition-colors duration-500", "focus-visible:outline-2 focus-visible:outline-offset-4", "before:absolute before:inset-x-0", i[a].question, i[a].hit, e),
56
+ className: n("group/trigger text-pho-primary outline-pho-brand font-heading relative flex flex-1 cursor-pointer items-center justify-between gap-3 text-left font-medium", "ease-pho-spring-reveal data-[panel-open]:text-pho-description transition-colors duration-500", "focus-visible:outline-2 focus-visible:outline-offset-4", "before:absolute before:inset-x-0", i[a].question, i[a].hit, e),
57
57
  ...o,
58
58
  children: [t, /* @__PURE__ */ r("svg", {
59
59
  "aria-hidden": "true",
@@ -1 +1 @@
1
- {"version":3,"file":"accordion.js","names":["BaseAccordion","cn","createContext","useContext","jsx","jsxs","Accordion$1","SIZE","SizeContext","Root","className","multiple","size","props","Item","Header","Trigger","children","Panel","Accordion"],"sources":["../../src/components/accordion/accordion.tsx"],"sourcesContent":["import {\n createContext,\n useContext,\n type ComponentProps,\n type ElementType,\n} from \"react\";\nimport { Accordion as BaseAccordion } from \"@base-ui/react/accordion\";\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\nexport type AccordionSize = \"sm\" | \"md\" | \"lg\";\n\n/**\n * Three sizes, one step of the type scale apart. `lg` is photon.codes's\n * FAQ to the pixel: the question at 20/28, the answer at 18/28, 20px\n * above and below, 8px between. `md` and `sm` step the type, the\n * padding, and the gap down together; the chevron is the same small\n * glyph in the same 24px box at every size, so a row is never shorter\n * than it.\n */\nconst SIZE: Record<\n AccordionSize,\n { item: string; hit: string; question: string; gap: string; answer: string }\n> = {\n sm: {\n item: \"py-3\",\n hit: \"before:-top-3 before:-bottom-3\",\n question: \"text-base\",\n gap: \"pt-1 pb-1\",\n answer: \"text-xs\",\n },\n md: {\n item: \"py-4\",\n hit: \"before:-top-4 before:-bottom-4\",\n question: \"text-md\",\n gap: \"pt-1.5 pb-1.5\",\n answer: \"text-base\",\n },\n lg: {\n item: \"py-5\",\n hit: \"before:-top-5 before:-bottom-5\",\n question: \"text-xl leading-7\",\n gap: \"pt-2 pb-2\",\n answer: \"text-lg\",\n },\n};\n\nconst SizeContext = createContext<AccordionSize>(\"md\");\n\nexport interface AccordionRootProps extends StyledProps<\n typeof BaseAccordion.Root\n> {\n /** @default \"md\" */\n size?: AccordionSize;\n}\n\n/**\n * The list — bare, so the page decides the surface: on photon.codes the\n * FAQ card is the section's, 32px around the list; in a settings page it\n * is a `Card`. Items divide with a hairline and the list has no outer\n * lines. Items are independent, as on the site, so `multiple` is on\n * unless said otherwise.\n */\nfunction Root({\n className,\n multiple = true,\n size = \"md\",\n ...props\n}: AccordionRootProps) {\n return (\n <SizeContext.Provider value={size}>\n <BaseAccordion.Root\n multiple={multiple}\n data-size={size}\n className={cn(\"w-full\", className)}\n {...props}\n />\n </SizeContext.Provider>\n );\n}\n\n/**\n * One question, padded above and below, whatever is open inside. The\n * hairline under it overlaps the next item by its own pixel, the way\n * Framer draws a border inside the box, so an item advances by exactly\n * its padding and its rows: 68px at `lg`, the site's figure. The last\n * item draws none.\n */\nfunction Item({ className, ...props }: StyledProps<typeof BaseAccordion.Item>) {\n const size = useContext(SizeContext);\n return (\n <BaseAccordion.Item\n className={cn(\n \"border-pho-secondary -mb-px border-b last:mb-0 last:border-b-0\",\n SIZE[size].item,\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction Header({\n className,\n ...props\n}: StyledProps<typeof BaseAccordion.Header>) {\n return <BaseAccordion.Header className={cn(\"flex\", className)} {...props} />;\n}\n\n/**\n * The question row: the question in medium with the chevron at the row's\n * end. The chevron is the site's small one (a 6.5×3.5 stroke in a 24px\n * box, weight 1.5) and the trigger wears it itself — pass only the\n * question. Open, the question settles to the description tone and the\n * chevron makes a half turn, both on the section spring; the chevron keeps\n * the primary ink. The whole item is the target, as on the site: the hit\n * area reaches through the item's padding above and below the row.\n */\nfunction Trigger({\n className,\n children,\n ...props\n}: StyledProps<typeof BaseAccordion.Trigger>) {\n const size = useContext(SizeContext);\n return (\n <BaseAccordion.Trigger\n className={cn(\n \"group/trigger text-pho-primary outline-pho-brand font-heading relative flex flex-1 cursor-pointer items-center justify-between gap-3 text-left font-medium tracking-[-0.1px]\",\n \"ease-pho-spring-reveal data-[panel-open]:text-pho-description transition-colors duration-500\",\n \"focus-visible:outline-2 focus-visible:outline-offset-4\",\n \"before:absolute before:inset-x-0\",\n SIZE[size].question,\n SIZE[size].hit,\n className,\n )}\n {...props}\n >\n {children}\n <svg\n aria-hidden=\"true\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth={1.5}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n data-accordion-chevron=\"\"\n className=\"text-pho-primary ease-pho-spring-reveal size-6 shrink-0 transition-[rotate] duration-500 group-data-[panel-open]/trigger:rotate-180\"\n >\n <path d=\"M 6.5 0 L 3.25 3.5 L 0 0\" transform=\"translate(8.75 10.75)\" />\n </svg>\n </BaseAccordion.Trigger>\n );\n}\n\n/**\n * The answer: medium in the primary ink, one type step under the\n * question, a short gap below it. Opening, the panel's height rides the\n * section spring while the answer arrives 100ms later on the appear\n * spring, fading in as it rises 20px. Closing, the answer is gone at once\n * and the height settles on the section spring — the site's way round.\n */\nfunction Panel({\n className,\n children,\n ...props\n}: StyledProps<typeof BaseAccordion.Panel>) {\n const size = useContext(SizeContext);\n return (\n <BaseAccordion.Panel\n className={cn(\n \"group/panel ease-pho-spring-reveal h-[var(--accordion-panel-height)] overflow-hidden transition-[height] duration-500\",\n \"data-[ending-style]:h-0 data-[starting-style]:h-0\",\n className,\n )}\n {...props}\n >\n {/* The gap is symmetric: the panel clips, so the answer's last line\n needs room below it for a link's focus ring, not just above.\n The gap and the clip live on one wrapper, the rise on another:\n the panel measures its height from layout, and a translated\n child would count its 20px of overflow into that measure. */}\n <div className={cn(\"overflow-clip\", SIZE[size].gap)}>\n <div\n data-accordion-answer=\"\"\n className={cn(\n \"text-pho-primary font-medium tracking-[-0.1px]\",\n \"ease-pho-spring-appear transition-[opacity,translate] delay-100 duration-700\",\n \"group-data-[starting-style]/panel:translate-y-5 group-data-[starting-style]/panel:opacity-0\",\n \"group-data-[ending-style]/panel:opacity-0 group-data-[ending-style]/panel:transition-none\",\n SIZE[size].answer,\n )}\n >\n {children}\n </div>\n </div>\n </BaseAccordion.Panel>\n );\n}\n\n/**\n * Questions that each reveal an answer — photon.codes's FAQ, as a\n * component, built on Base UI `Accordion`. Each `Accordion.Item` needs a\n * `value`; control the open set with `value` / `onValueChange` or\n * `defaultValue`. Items are independent by default; `multiple={false}`\n * opens one at a time. Three sizes; `lg` is the site's.\n */\nexport const Accordion = { Root, Item, Header, Trigger, Panel };\n"],"mappings":";;;;;AA2BA,IAAMO,IAGF;AAAA,EACF,IAAI;AAAA,IACF,MAAM;AAAA,IACN,KAAK;AAAA,IACL,UAAU;AAAA,IACV,KAAK;AAAA,IACL,QAAQ;AAAA,EACV;AAAA,EACA,IAAI;AAAA,IACF,MAAM;AAAA,IACN,KAAK;AAAA,IACL,UAAU;AAAA,IACV,KAAK;AAAA,IACL,QAAQ;AAAA,EACV;AAAA,EACA,IAAI;AAAA,IACF,MAAM;AAAA,IACN,KAAK;AAAA,IACL,UAAU;AAAA,IACV,KAAK;AAAA,IACL,QAAQ;AAAA,EACV;AACF,GAEMC,IAAcN,EAA6B,IAAI;AAgBrD,SAASO,EAAK,EACZ,WAAAC,GACA,UAAAC,IAAW,IACX,MAAAC,IAAO,MACP,GAAGC,EAAA,GACkB;AACrB,SACE,gBAAAT,EAACI,EAAY,UAAb;AAAA,IAAsB,OAAOI;AAAA,IAC3B,UAAA,gBAAAR,EAACJ,EAAc,MAAf;AAAA,MACY,UA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AWK,CAAW;AACnC,SACE,gBAAAJ,EAACJ,EAAc,OAAf;AAAA,IACE,WAAWC,EACT,yHACA,qDACAS,CACF;AAAA,IACA,GAAIG;AAAA,IAOJ,UAAA,gBAAAT,EAAC,OAAD;AAAA,MAAK,WAAWH,EAAG,iBAAiBM,EAAKK,CAAA,EAAM,GAAG;AAAA,MAChD,UAAA,gBAAAR,EAAC,OAAD;AAAA,QACE,yBAAsB;AAAA,QACtB,WAAWH,EACT,kDACA,gFACA,+FACA,6FACAM,EAAKK,CAAA,EAAM,MACb;AAAA,QAEC,UAAAK;AAAA,MACE,CAAA;AAAA,IACF,CAAA;AAAA,EACc,CAAA;AAEzB;AASA,IAAaE,IAAY;AAAA,EAAE,MAAAV;AAAA,EAAM,MAAAK;AAAA,EAAM,QAAAC;AAAA,EAAQ,SAAAC;AAAA,EAAS,OAAAE;AAAM"}
1
+ {"version":3,"file":"accordion.js","names":["BaseAccordion","cn","createContext","useContext","jsx","jsxs","Accordion$1","SIZE","SizeContext","Root","className","multiple","size","props","Item","Header","Trigger","children","Panel","Accordion"],"sources":["../../src/components/accordion/accordion.tsx"],"sourcesContent":["import {\n createContext,\n useContext,\n type ComponentProps,\n type ElementType,\n} from \"react\";\nimport { Accordion as BaseAccordion } from \"@base-ui/react/accordion\";\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\nexport type AccordionSize = \"sm\" | \"md\" | \"lg\";\n\n/**\n * Three sizes, one step of the type scale apart. `lg` is photon.codes's\n * FAQ to the pixel: the question at 20/28, the answer at 18/28, 20px\n * above and below, 8px between. `md` and `sm` step the type, the\n * padding, and the gap down together; the chevron is the same small\n * glyph in the same 24px box at every size, so a row is never shorter\n * than it.\n */\nconst SIZE: Record<\n AccordionSize,\n { item: string; hit: string; question: string; gap: string; answer: string }\n> = {\n sm: {\n item: \"py-3\",\n hit: \"before:-top-3 before:-bottom-3\",\n question: \"text-base\",\n gap: \"pt-1 pb-1\",\n answer: \"text-xs\",\n },\n md: {\n item: \"py-4\",\n hit: \"before:-top-4 before:-bottom-4\",\n question: \"text-md\",\n gap: \"pt-1.5 pb-1.5\",\n answer: \"text-base\",\n },\n lg: {\n item: \"py-5\",\n hit: \"before:-top-5 before:-bottom-5\",\n question: \"text-xl leading-7\",\n gap: \"pt-2 pb-2\",\n answer: \"text-lg\",\n },\n};\n\nconst SizeContext = createContext<AccordionSize>(\"md\");\n\nexport interface AccordionRootProps extends StyledProps<\n typeof BaseAccordion.Root\n> {\n /** @default \"md\" */\n size?: AccordionSize;\n}\n\n/**\n * The list — bare, so the page decides the surface: on photon.codes the\n * FAQ card is the section's, 32px around the list; in a settings page it\n * is a `Card`. Items divide with a hairline and the list has no outer\n * lines. Items are independent, as on the site, so `multiple` is on\n * unless said otherwise.\n */\nfunction Root({\n className,\n multiple = true,\n size = \"md\",\n ...props\n}: AccordionRootProps) {\n return (\n <SizeContext.Provider value={size}>\n <BaseAccordion.Root\n multiple={multiple}\n data-size={size}\n className={cn(\"w-full\", className)}\n {...props}\n />\n </SizeContext.Provider>\n );\n}\n\n/**\n * One question, padded above and below, whatever is open inside. The\n * hairline under it overlaps the next item by its own pixel, the way\n * Framer draws a border inside the box, so an item advances by exactly\n * its padding and its rows: 68px at `lg`, the site's figure. The last\n * item draws none.\n */\nfunction Item({ className, ...props }: StyledProps<typeof BaseAccordion.Item>) {\n const size = useContext(SizeContext);\n return (\n <BaseAccordion.Item\n className={cn(\n \"border-pho-secondary -mb-px border-b last:mb-0 last:border-b-0\",\n SIZE[size].item,\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction Header({\n className,\n ...props\n}: StyledProps<typeof BaseAccordion.Header>) {\n return <BaseAccordion.Header className={cn(\"flex\", className)} {...props} />;\n}\n\n/**\n * The question row: the question in medium with the chevron at the row's\n * end. The chevron is the site's small one (a 6.5×3.5 stroke in a 24px\n * box, weight 1.5) and the trigger wears it itself — pass only the\n * question. Open, the question settles to the description tone and the\n * chevron makes a half turn, both on the section spring; the chevron keeps\n * the primary ink. The whole item is the target, as on the site: the hit\n * area reaches through the item's padding above and below the row.\n */\nfunction Trigger({\n className,\n children,\n ...props\n}: StyledProps<typeof BaseAccordion.Trigger>) {\n const size = useContext(SizeContext);\n return (\n <BaseAccordion.Trigger\n className={cn(\n \"group/trigger text-pho-primary outline-pho-brand font-heading relative flex flex-1 cursor-pointer items-center justify-between gap-3 text-left font-medium\",\n \"ease-pho-spring-reveal data-[panel-open]:text-pho-description transition-colors duration-500\",\n \"focus-visible:outline-2 focus-visible:outline-offset-4\",\n \"before:absolute before:inset-x-0\",\n SIZE[size].question,\n SIZE[size].hit,\n className,\n )}\n {...props}\n >\n {children}\n <svg\n aria-hidden=\"true\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth={1.5}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n data-accordion-chevron=\"\"\n className=\"text-pho-primary ease-pho-spring-reveal size-6 shrink-0 transition-[rotate] duration-500 group-data-[panel-open]/trigger:rotate-180\"\n >\n <path d=\"M 6.5 0 L 3.25 3.5 L 0 0\" transform=\"translate(8.75 10.75)\" />\n </svg>\n </BaseAccordion.Trigger>\n );\n}\n\n/**\n * The answer: medium in the primary ink, one type step under the\n * question, a short gap below it. Opening, the panel's height rides the\n * section spring while the answer arrives 100ms later on the appear\n * spring, fading in as it rises 20px. Closing, the answer is gone at once\n * and the height settles on the section spring — the site's way round.\n */\nfunction Panel({\n className,\n children,\n ...props\n}: StyledProps<typeof BaseAccordion.Panel>) {\n const size = useContext(SizeContext);\n return (\n <BaseAccordion.Panel\n className={cn(\n \"group/panel ease-pho-spring-reveal h-[var(--accordion-panel-height)] overflow-hidden transition-[height] duration-500\",\n \"data-[ending-style]:h-0 data-[starting-style]:h-0\",\n className,\n )}\n {...props}\n >\n {/* The gap is symmetric: the panel clips, so the answer's last line\n needs room below it for a link's focus ring, not just above.\n The gap and the clip live on one wrapper, the rise on another:\n the panel measures its height from layout, and a translated\n child would count its 20px of overflow into that measure. */}\n <div className={cn(\"overflow-clip\", SIZE[size].gap)}>\n <div\n data-accordion-answer=\"\"\n className={cn(\n \"text-pho-primary font-medium tracking-[-0.1px]\",\n \"ease-pho-spring-appear transition-[opacity,translate] delay-100 duration-700\",\n \"group-data-[starting-style]/panel:translate-y-5 group-data-[starting-style]/panel:opacity-0\",\n \"group-data-[ending-style]/panel:opacity-0 group-data-[ending-style]/panel:transition-none\",\n SIZE[size].answer,\n )}\n >\n {children}\n </div>\n </div>\n </BaseAccordion.Panel>\n );\n}\n\n/**\n * Questions that each reveal an answer — photon.codes's FAQ, as a\n * component, built on Base UI `Accordion`. Each `Accordion.Item` needs a\n * `value`; control the open set with `value` / `onValueChange` or\n * `defaultValue`. Items are independent by default; `multiple={false}`\n * opens one at a time. Three sizes; `lg` is the site's.\n */\nexport const Accordion = { Root, Item, Header, Trigger, Panel };\n"],"mappings":";;;;;AA2BA,IAAMO,IAGF;AAAA,EACF,IAAI;AAAA,IACF,MAAM;AAAA,IACN,KAAK;AAAA,IACL,UAAU;AAAA,IACV,KAAK;AAAA,IACL,QAAQ;AAAA,EACV;AAAA,EACA,IAAI;AAAA,IACF,MAAM;AAAA,IACN,KAAK;AAAA,IACL,UAAU;AAAA,IACV,KAAK;AAAA,IACL,QAAQ;AAAA,EACV;AAAA,EACA,IAAI;AAAA,IACF,MAAM;AAAA,IACN,KAAK;AAAA,IACL,UAAU;AAAA,IACV,KAAK;AAAA,IACL,QAAQ;AAAA,EACV;AACF,GAEMC,IAAcN,EAA6B,IAAI;AAgBrD,SAASO,EAAK,EACZ,WAAAC,GACA,UAAAC,IAAW,IACX,MAAAC,IAAO,MACP,GAAGC,EAAA,GACkB;AACrB,SACE,gBAAAT,EAACI,EAAY,UAAb;AAAA,IAAsB,OAAOI;AAAA,IAC3B,UAAA,gBAAAR,EAACJ,EAAc,MAA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AAMD,IAAOT,EAAWK,CAAW;AACnC,SACE,gBAAAJ,EAACJ,EAAc,OAAf;AAAA,IACE,WAAWC,EACT,yHACA,qDACAS,CACF;AAAA,IACA,GAAIG;AAAA,IAOJ,UAAA,gBAAAT,EAAC,OAAD;AAAA,MAAK,WAAWH,EAAG,iBAAiBM,EAAKK,CAAA,EAAM,GAAG;AAAA,MAChD,UAAA,gBAAAR,EAAC,OAAD;AAAA,QACE,yBAAsB;AAAA,QACtB,WAAWH,EACT,kDACA,gFACA,+FACA,6FACAM,EAAKK,CAAA,EAAM,MACb;AAAA,QAEC,UAAAK;AAAA,MACE,CAAA;AAAA,IACF,CAAA;AAAA,EACc,CAAA;AAEzB;AASA,IAAaE,IAAY;AAAA,EAAE,MAAAV;AAAA,EAAM,MAAAK;AAAA,EAAM,QAAAC;AAAA,EAAQ,SAAAC;AAAA,EAAS,OAAAE;AAAM"}
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { a, c as s, d as o, i as n, l as T, n as B, o as u, r as e, s as f, t as i, u as r } from "../chunks/button-CLfWdqm-.js";
2
+ import { a, c as s, d as o, i as n, l as T, n as B, o as u, r as e, s as f, t as i, u as r } from "../chunks/button-KM0lAQ4x.js";
3
3
  import { t as E } from "../chunks/close-button-Ck4rY1Fp.js";
4
4
  export {
5
5
  i as BUTTON_COLORS,
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { t as e } from "../chunks/chat-C5W6L_Jg.js";
2
+ import { t as e } from "../chunks/chat-D98GCjbe.js";
3
3
  export {
4
4
  e as Chat
5
5
  };
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { a as s, c as e, d as i, i as g, l as o, n as h, o as l, r, s as t, t as n, u as A } from "../chunks/code-block-B7MibV6r.js";
2
+ import { a as s, c as e, d as i, i as g, l as o, n as h, o as l, r, s as t, t as n, u as A } from "../chunks/code-block-CthLWfxd.js";
3
3
  export {
4
4
  o as CODE_GRAMMARS,
5
5
  e as CODE_TOKEN_CLASS,
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { t as l } from "../chunks/collapsible-C2tn_b1Q.js";
2
+ import { t as l } from "../chunks/collapsible-CR4QWjFh.js";
3
3
  export {
4
4
  l as Collapsible
5
5
  };
@@ -5,7 +5,7 @@ import { SPRING_SETTLE as P } from "../motion.js";
5
5
  import { t as j } from "../chunks/IconArrowUpRight-OK8Fp0KQ.js";
6
6
  import { t as V } from "../chunks/IconChevronLeft-CptqhdxO.js";
7
7
  import { t as Z } from "../chunks/animated-height-zr7BmFY1.js";
8
- import { t as u } from "../chunks/dialog-e4_mOYGp.js";
8
+ import { t as u } from "../chunks/dialog-H72fZGtf.js";
9
9
  import { useEffect as $, useId as z, useLayoutEffect as A, useRef as F } from "react";
10
10
  import { Fragment as E, jsx as t, jsxs as d } from "react/jsx-runtime";
11
11
  import { LayoutGroup as H, motion as g, useReducedMotion as B } from "motion/react";
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { n as i, t as o } from "../chunks/dialog-e4_mOYGp.js";
2
+ import { n as i, t as o } from "../chunks/dialog-H72fZGtf.js";
3
3
  export {
4
4
  o as Dialog,
5
5
  i as useDialogPending
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { a as r, c as s, i as t, l as e, n as i, o, r as E, s as n, t as p, u as l } from "../chunks/error-BjSn7wLu.js";
2
+ import { a as r, c as s, i as t, l as e, n as i, o, r as E, s as n, t as p, u as l } from "../chunks/error-BT71wcUd.js";
3
3
  export {
4
4
  p as Error,
5
5
  i as ErrorView,
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { i as t, n as e, r as a, t as i } from "../chunks/filter-bar-CLLonntH.js";
2
+ import { i as t, n as e, r as a, t as i } from "../chunks/filter-bar-D_sBAT5Y.js";
3
3
  export {
4
4
  i as FILTER_DATE_PRESETS,
5
5
  e as FilterBar,
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { i as a, n as o, r as s, t as e } from "../chunks/log-list-BqaJv2oA.js";
2
+ import { i as a, n as o, r as s, t as e } from "../chunks/log-list-BA6CcfxR.js";
3
3
  export {
4
4
  e as LogList,
5
5
  o as logStatusColor,
@@ -52,7 +52,7 @@ var k = [
52
52
  success: I,
53
53
  warning: c,
54
54
  error: c
55
- }, l = "cursor-pointer text-base font-medium outline-pho-brand transition duration-100 ease-linear focus-visible:outline-2 focus-visible:outline-offset-2";
55
+ }, l = "cursor-pointer font-heading text-base font-medium outline-pho-brand transition duration-100 ease-linear focus-visible:outline-2 focus-visible:outline-offset-2";
56
56
  function _({ color: a = "brand", title: p, description: r, confirmLabel: i, onConfirm: h, dismissLabel: m = "Dismiss", onClose: s, icon: u, className: f, ref: v, ...x }) {
57
57
  const g = u ?? A[a], b = !!i;
58
58
  return /* @__PURE__ */ o("div", {
@@ -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 {/* 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,QAAQ;AAAA,IAAE,GAAK;AAAA,IAAW,KAAO;AAAA,EAAQ,CAAC;AAAA,EAAG,CAAC,QAAQ;AAAA,IAAE,GAAK;A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C;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"}
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 font-heading 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,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;AAAA,EACA,MAAM;AAAA,IACJ,SAAS;AAAA,IACT,aAAa;AAAA,EACf;AAAA,EACA,SAAS;AAAA,IACP,SAAS;AAAA,IACT,aAAa;AAAA,EACf;AAAA,EACA,SAAS;AAAA,IACP,SAAS;AAAA,IACT,aAAa;AAAA,EACf;AAAA,EACA,OAAO;AAAA,IACL,SAAS;AAAA,IACT,aAAa;AAAA,EACf;AACF,GAKMC,IAAW;AAAA,EACf,OAAOT;AAAA,EACP,MAAMA;AAAA,EACN,SAASO;AAAA,EACT,SAASF;AAAA,EACT,OAAOA;AACT,GA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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,7 +1,7 @@
1
1
  "use client";
2
2
  import { t as d } from "../chunks/cn-CPbhpG1q.js";
3
3
  import { revealIn as st } from "../motion.js";
4
- import { u as lt } from "../chunks/button-CLfWdqm-.js";
4
+ import { u as lt } from "../chunks/button-KM0lAQ4x.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";
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { n as o, t as s } from "../chunks/toast-K549iZEX.js";
2
+ import { n as o, t as s } from "../chunks/toast-Cbnn8lcA.js";
3
3
  export {
4
4
  s as Toast,
5
5
  o as Toasty
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { n as o, t } from "../chunks/toggle-Ca4SS3YD.js";
2
+ import { n as o, t } from "../chunks/toggle-DeFSPgIj.js";
3
3
  export {
4
4
  t as TOGGLE_SIZES,
5
5
  o as Toggle
@@ -9,7 +9,7 @@ function i({ className: e, ...r }) {
9
9
  ...r
10
10
  });
11
11
  }
12
- var a = "inline-flex items-center justify-center gap-1.5 rounded-sm px-2 py-1.5 text-base font-medium text-pho-secondary outline-pho-brand transition duration-100 ease-linear hover:bg-pho-ghost-hover hover:text-pho-primary focus-visible:outline-2 focus-visible:-outline-offset-1 data-[pressed]:bg-pho-secondary data-[pressed]:text-pho-primary data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4";
12
+ var a = "font-heading inline-flex items-center justify-center gap-1.5 rounded-sm px-2 py-1.5 text-base font-medium text-pho-secondary outline-pho-brand transition duration-100 ease-linear hover:bg-pho-ghost-hover hover:text-pho-primary focus-visible:outline-2 focus-visible:-outline-offset-1 data-[pressed]:bg-pho-secondary data-[pressed]:text-pho-primary data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4";
13
13
  function s({ className: e, ...r }) {
14
14
  return /* @__PURE__ */ t(n.Button, {
15
15
  className: o(a, e),
@@ -1 +1 @@
1
- {"version":3,"file":"toolbar.js","names":["BaseToolbar","cn","jsx","Toolbar$1","Root","className","props","TOOLBAR_BUTTON","Button","Link","Group","Input","Separator","Toolbar"],"sources":["../../src/components/toolbar/toolbar.tsx"],"sourcesContent":["import { type ComponentProps, type ElementType } from \"react\";\nimport { Toolbar as BaseToolbar } from \"@base-ui/react/toolbar\";\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 BaseToolbar.Root>) {\n return (\n <BaseToolbar.Root\n className={cn(\n // Flat card treatment — the hairline border carries the edge; shadows\n // are reserved for floating layers (menus/popovers/dialogs).\n \"border-pho-secondary bg-pho-primary rounded-base flex items-center gap-1 border p-1\",\n className,\n )}\n {...props}\n />\n );\n}\n\n// Ghost-button idiom: quiet Font/5% hover wash; pressed steps up to the\n// tertiary surface so it stays distinct from hover in both modes.\nconst TOOLBAR_BUTTON =\n \"inline-flex items-center justify-center gap-1.5 rounded-sm px-2 py-1.5 text-base font-medium text-pho-secondary outline-pho-brand transition duration-100 ease-linear hover:bg-pho-ghost-hover hover:text-pho-primary focus-visible:outline-2 focus-visible:-outline-offset-1 data-[pressed]:bg-pho-secondary data-[pressed]:text-pho-primary data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4\";\n\nfunction Button({\n className,\n ...props\n}: StyledProps<typeof BaseToolbar.Button>) {\n return (\n <BaseToolbar.Button className={cn(TOOLBAR_BUTTON, className)} {...props} />\n );\n}\n\nfunction Link({ className, ...props }: StyledProps<typeof BaseToolbar.Link>) {\n return (\n <BaseToolbar.Link className={cn(TOOLBAR_BUTTON, className)} {...props} />\n );\n}\n\nfunction Group({ className, ...props }: StyledProps<typeof BaseToolbar.Group>) {\n return (\n <BaseToolbar.Group\n className={cn(\"flex items-center gap-1\", className)}\n {...props}\n />\n );\n}\n\nfunction Input({ className, ...props }: StyledProps<typeof BaseToolbar.Input>) {\n return (\n <BaseToolbar.Input\n className={cn(\n // text-md on small viewports — iOS zooms into fields under 16px.\n \"bg-pho-primary ring-pho-primary text-pho-primary placeholder:text-pho-placeholder focus-visible:ring-pho-brand text-md rounded-sm px-2 py-1 ring-1 outline-none ring-inset focus-visible:ring-2 md:text-base\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction Separator({\n className,\n ...props\n}: StyledProps<typeof BaseToolbar.Separator>) {\n return (\n <BaseToolbar.Separator\n className={cn(\n \"mx-1 h-5 w-px bg-[var(--border-color-pho-secondary)]\",\n className,\n )}\n {...props}\n />\n );\n}\n\n/**\n * Toolbar built on Base UI `Toolbar` — a single tab stop grouping related\n * controls with arrow-key navigation between them (formatting bars, editor\n * controls). Holds `Toolbar.Button`, `Link`, `Input`, and `Separator`; for\n * pressable formatting buttons, wrap `Toggle` / `ToggleGroup` with\n * `Toolbar.Button render={…}`.\n */\nexport const Toolbar = { Root, Button, Link, Group, Input, Separator };\n"],"mappings":";;;;;AAYA,SAASI,EAAK,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAA+C;AAC3E,SACE,gBAAAJ,EAACF,EAAY,MAAb;AAAA,IACE,WAAWC,EAGT,uFACAI,CACF;AAAA,IACA,GAAIC;AAAA,EACL,CAAA;AAEL;AAIA,IAAMC,IACJ;AAEF,SAASC,EAAO,EACd,WAAAH,GACA,GAAGC,EAAA,GACsC;AACzC,SACE,gBAAAJ,EAACF,EAAY,QAAb;AAAA,IAAoB,WAAWC,EAAGM,GAAgBF,CAAS;AAAA,IAAG,GAAIC;AAAA,EAAQ,CAAA;AAE9E;AAEA,SAASG,EAAK,EAAE,WAAAJ,GAAW,GAAGC,EAAA,GAA+C;AAC3E,SACE,gBAAAJ,EAACF,EAAY,MAAb;AAAA,IAAkB,WAAWC,EAAGM,GAAgBF,CAAS;AAAA,IAAG,GAAIC;AAAA,EAAQ,CAAA;AAE5E;AAEA,SAASI,EAAM,EAAE,WAAAL,GAAW,GAAGC,EAAA,GAAgD;AAC7E,SACE,gBAAAJ,EAACF,EAAY,OAAb;AAAA,IACE,WAAWC,EAAG,2BAA2BI,CAAS;AAAA,IAClD,GAAIC;AAAA,EACL,CAAA;AAEL;AAEA,SAASK,EAAM,EAAE,WAAAN,GAAW,GAAGC,EAAA,GAAgD;AAC7E,SACE,gBAAAJ,EAACF,EAAY,OAAb;AAAA,IACE,WAAWC,EAET,gNACAI,CACF;AAAA,IACA,GAAIC;AAAA,EACL,CAAA;AAEL;AAEA,SAASM,EAAU,EACjB,WAAAP,GACA,GAAGC,EAAA,GACyC;AAC5C,SACE,gBAAAJ,EAACF,EAAY,WAAb;AAAA,IACE,WAAWC,EACT,wDACAI,CACF;AAAA,IACA,GAAIC;AAAA,EACL,CAAA;AAEL;AASA,IAAaO,IAAU;AAAA,EAAE,MAAAT;AAAA,EAAM,QAAAI;AAAA,EAAQ,MAAAC;AAAA,EAAM,OAAAC;AAAA,EAAO,OAAAC;AAAA,EAAO,WAAAC;AAAU"}
1
+ {"version":3,"file":"toolbar.js","names":["BaseToolbar","cn","jsx","Toolbar$1","Root","className","props","TOOLBAR_BUTTON","Button","Link","Group","Input","Separator","Toolbar"],"sources":["../../src/components/toolbar/toolbar.tsx"],"sourcesContent":["import { type ComponentProps, type ElementType } from \"react\";\nimport { Toolbar as BaseToolbar } from \"@base-ui/react/toolbar\";\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 BaseToolbar.Root>) {\n return (\n <BaseToolbar.Root\n className={cn(\n // Flat card treatment — the hairline border carries the edge; shadows\n // are reserved for floating layers (menus/popovers/dialogs).\n \"border-pho-secondary bg-pho-primary rounded-base flex items-center gap-1 border p-1\",\n className,\n )}\n {...props}\n />\n );\n}\n\n// Ghost-button idiom: quiet Font/5% hover wash; pressed steps up to the\n// tertiary surface so it stays distinct from hover in both modes.\nconst TOOLBAR_BUTTON =\n \"font-heading inline-flex items-center justify-center gap-1.5 rounded-sm px-2 py-1.5 text-base font-medium text-pho-secondary outline-pho-brand transition duration-100 ease-linear hover:bg-pho-ghost-hover hover:text-pho-primary focus-visible:outline-2 focus-visible:-outline-offset-1 data-[pressed]:bg-pho-secondary data-[pressed]:text-pho-primary data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4\";\n\nfunction Button({\n className,\n ...props\n}: StyledProps<typeof BaseToolbar.Button>) {\n return (\n <BaseToolbar.Button className={cn(TOOLBAR_BUTTON, className)} {...props} />\n );\n}\n\nfunction Link({ className, ...props }: StyledProps<typeof BaseToolbar.Link>) {\n return (\n <BaseToolbar.Link className={cn(TOOLBAR_BUTTON, className)} {...props} />\n );\n}\n\nfunction Group({ className, ...props }: StyledProps<typeof BaseToolbar.Group>) {\n return (\n <BaseToolbar.Group\n className={cn(\"flex items-center gap-1\", className)}\n {...props}\n />\n );\n}\n\nfunction Input({ className, ...props }: StyledProps<typeof BaseToolbar.Input>) {\n return (\n <BaseToolbar.Input\n className={cn(\n // text-md on small viewports — iOS zooms into fields under 16px.\n \"bg-pho-primary ring-pho-primary text-pho-primary placeholder:text-pho-placeholder focus-visible:ring-pho-brand text-md rounded-sm px-2 py-1 ring-1 outline-none ring-inset focus-visible:ring-2 md:text-base\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction Separator({\n className,\n ...props\n}: StyledProps<typeof BaseToolbar.Separator>) {\n return (\n <BaseToolbar.Separator\n className={cn(\n \"mx-1 h-5 w-px bg-[var(--border-color-pho-secondary)]\",\n className,\n )}\n {...props}\n />\n );\n}\n\n/**\n * Toolbar built on Base UI `Toolbar` — a single tab stop grouping related\n * controls with arrow-key navigation between them (formatting bars, editor\n * controls). Holds `Toolbar.Button`, `Link`, `Input`, and `Separator`; for\n * pressable formatting buttons, wrap `Toggle` / `ToggleGroup` with\n * `Toolbar.Button render={…}`.\n */\nexport const Toolbar = { Root, Button, Link, Group, Input, Separator };\n"],"mappings":";;;;;AAYA,SAASI,EAAK,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAA+C;AAC3E,SACE,gBAAAJ,EAACF,EAAY,MAAb;AAAA,IACE,WAAWC,EAGT,uFACAI,CACF;AAAA,IACA,GAAIC;AAAA,EACL,CAAA;AAEL;AAIA,IAAMC,IACJ;AAEF,SAASC,EAAO,EACd,WAAAH,GACA,GAAGC,EAAA,GACsC;AACzC,SACE,gBAAAJ,EAACF,EAAY,QAAb;AAAA,IAAoB,WAAWC,EAAGM,GAAgBF,CAAS;AAAA,IAAG,GAAIC;AAAA,EAAQ,CAAA;AAE9E;AAEA,SAASG,EAAK,EAAE,WAAAJ,GAAW,GAAGC,EAAA,GAA+C;AAC3E,SACE,gBAAAJ,EAACF,EAAY,MAAb;AAAA,IAAkB,WAAWC,EAAGM,GAAgBF,CAAS;AAAA,IAAG,GAAIC;AAAA,EAAQ,CAAA;AAE5E;AAEA,SAASI,EAAM,EAAE,WAAAL,GAAW,GAAGC,EAAA,GAAgD;AAC7E,SACE,gBAAAJ,EAACF,EAAY,OAAb;AAAA,IACE,WAAWC,EAAG,2BAA2BI,CAAS;AAAA,IAClD,GAAIC;AAAA,EACL,CAAA;AAEL;AAEA,SAASK,EAAM,EAAE,WAAAN,GAAW,GAAGC,EAAA,GAAgD;AAC7E,SACE,gBAAAJ,EAACF,EAAY,OAAb;AAAA,IACE,WAAWC,EAET,gNACAI,CACF;AAAA,IACA,GAAIC;AAAA,EACL,CAAA;AAEL;AAEA,SAASM,EAAU,EACjB,WAAAP,GACA,GAAGC,EAAA,GACyC;AAC5C,SACE,gBAAAJ,EAACF,EAAY,WAAb;AAAA,IACE,WAAWC,EACT,wDACAI,CACF;AAAA,IACA,GAAIC;AAAA,EACL,CAAA;AAEL;AASA,IAAaO,IAAU;AAAA,EAAE,MAAAT;AAAA,EAAM,QAAAI;AAAA,EAAQ,MAAAC;AAAA,EAAM,OAAAC;AAAA,EAAO,OAAAC;AAAA,EAAO,WAAAC;AAAU"}
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { A as s, B as e, C as i, D as n, E as l, F as r, I as t, L as o, M as p, N as c, O as T, P as u, R as I, S, T as m, V as d, _ as v, a as b, b as V, c as w, d as f, f as D, g as L, h as _, i as k, j as x, k as g, l as A, m as E, n as F, o as N, p as y, r as z, s as B, t as O, u as P, v as R, w as W, x as C, y as G, z as K } from "../chunks/trace-5Rh1ade9.js";
2
+ import { A as s, B as e, C as i, D as n, E as l, F as r, I as t, L as o, M as p, N as c, O as T, P as u, R as I, S, T as m, V as d, _ as v, a as b, b as V, c as w, d as f, f as D, g as L, h as _, i as k, j as x, k as g, l as A, m as E, n as F, o as N, p as y, r as z, s as B, t as O, u as P, v as R, w as W, x as C, y as G, z as K } from "../chunks/trace-ClMpG82z.js";
3
3
  export {
4
4
  i as FULL_VIEW,
5
5
  y as GEN_AI_KINDS,
package/dist/index.js CHANGED
@@ -7,31 +7,31 @@ import { BAR_RISE_PX as n, BLUR_PX as m, EASE_POP as A, EASE_STACK as I, FADE_EN
7
7
  import { n as V, r as h, t as G } from "./chunks/use-press-pulse-IbNstUT0.js";
8
8
  import { n as M, t as b } from "./chunks/use-copy-D6JwKUll.js";
9
9
  import "./utils.js";
10
- import { a as k, c as w, d as W, i as y, l as H, n as K, o as x, r as z, s as X, t as Y, u as Z } from "./chunks/button-CLfWdqm-.js";
11
- import { a as J, c as Q, i as q, l as $, n as aa, o as sa, r as ta, s as ra, t as oa, u as ea } from "./chunks/error-BjSn7wLu.js";
12
- import { t as Sa } from "./chunks/chat-C5W6L_Jg.js";
13
- import { A as _a, B as na, C as ma, D as Aa, E as Ia, F as Ta, I as pa, L as Ra, M as la, N as Ca, O as ua, P as Ba, R as fa, S as Na, T as La, V as Pa, _ as ca, a as Da, b as Oa, c as da, d as ga, f as Va, g as ha, h as Ga, i as Ua, j as Ma, k as ba, l as Fa, m as va, n as ka, o as wa, p as Wa, r as ya, s as Ha, t as Ka, u as xa, v as za, w as Xa, x as Ya, y as Za, z as ja } from "./chunks/trace-5Rh1ade9.js";
14
- import { a as Qa, c as qa, d as $a, i as as, l as ss, n as ts, o as rs, r as os, s as es, t as is, u as Ss } from "./chunks/code-block-B7MibV6r.js";
10
+ import { a as k, c as w, d as W, i as y, l as H, n as K, o as x, r as z, s as X, t as Y, u as Z } from "./chunks/button-KM0lAQ4x.js";
11
+ import { a as J, c as Q, i as q, l as $, n as aa, o as sa, r as ta, s as ra, t as oa, u as ea } from "./chunks/error-BT71wcUd.js";
12
+ import { t as Sa } from "./chunks/chat-D98GCjbe.js";
13
+ import { A as _a, B as na, C as ma, D as Aa, E as Ia, F as Ta, I as pa, L as Ra, M as la, N as Ca, O as ua, P as Ba, R as fa, S as Na, T as La, V as Pa, _ as ca, a as Da, b as Oa, c as da, d as ga, f as Va, g as ha, h as Ga, i as Ua, j as Ma, k as ba, l as Fa, m as va, n as ka, o as wa, p as Wa, r as ya, s as Ha, t as Ka, u as xa, v as za, w as Xa, x as Ya, y as Za, z as ja } from "./chunks/trace-ClMpG82z.js";
14
+ import { a as Qa, c as qa, d as $a, i as as, l as ss, n as ts, o as rs, r as os, s as es, t as is, u as Ss } from "./chunks/code-block-CthLWfxd.js";
15
15
  import { n as _s, t as ns } from "./chunks/date-picker-D-sWo3i8.js";
16
16
  import { n as As, t as Is } from "./chunks/copy-button-BLvirhXk.js";
17
- import { a as ps, c as Rs, d as ls, i as Cs, l as us, n as Bs, o as fs, r as Ns, s as Ls, t as Ps, u as cs } from "./chunks/sidebar-BsBlAVM9.js";
17
+ import { a as ps, c as Rs, d as ls, i as Cs, l as us, n as Bs, o as fs, r as Ns, s as Ls, t as Ps, u as cs } from "./chunks/sidebar-ttBkgGRh.js";
18
18
  import { t as Os } from "./chunks/input-DWnb33UF.js";
19
- import { i as gs, n as Vs, r as hs, t as Gs } from "./chunks/filter-bar-CLLonntH.js";
19
+ import { i as gs, n as Vs, r as hs, t as Gs } from "./chunks/filter-bar-D_sBAT5Y.js";
20
20
  import { i as Ms } from "./chunks/data-table-C1tLUdw0.js";
21
21
  import { n as Fs, t as vs } from "./chunks/stat-DUq4roVt.js";
22
22
  import { t as ws } from "./chunks/calendar-DDWITGo4.js";
23
23
  import { t as ys } from "./chunks/close-button-Ck4rY1Fp.js";
24
24
  import { t as Ks } from "./chunks/input-group-C3upo2OU.js";
25
25
  import { n as zs, t as Xs } from "./chunks/card-Bg2V2B0x.js";
26
- import { n as Zs, t as js } from "./chunks/dialog-e4_mOYGp.js";
26
+ import { n as Zs, t as js } from "./chunks/dialog-H72fZGtf.js";
27
27
  import { i as Qs, n as qs, r as $s, t as at } from "./chunks/status-view-Buhh1UBJ.js";
28
28
  import { t as tt } from "./chunks/description-list-DcTvBHzI.js";
29
- import { a as ot, c as et, d as it, f as St, i as Et, l as _t, m as nt, n as mt, o as At, p as It, r as Tt, s as pt, t as Rt, u as lt } from "./chunks/basic-page-DnB4YSRj.js";
29
+ import { a as ot, c as et, d as it, f as St, i as Et, l as _t, m as nt, n as mt, o as At, p as It, r as Tt, s as pt, t as Rt, u as lt } from "./chunks/basic-page-DYBjCadG.js";
30
30
  import { a as ut, i as Bt, n as ft, o as Nt, r as Lt, s as Pt, t as ct } from "./chunks/chart-Btnw7KXV.js";
31
31
  import "./components/chart.js";
32
32
  import { t as dt } from "./chunks/bar-chart-ZNuOoH7c.js";
33
33
  import { t as Vt } from "./chunks/line-chart-pOwE2_Oz.js";
34
- import { i as Gt, n as Ut, r as Mt, t as bt } from "./chunks/log-list-BqaJv2oA.js";
34
+ import { i as Gt, n as Ut, r as Mt, t as bt } from "./chunks/log-list-BA6CcfxR.js";
35
35
  import { n as vt, t as kt } from "./chunks/bubble-D88Edlgj.js";
36
36
  import { n as Wt, r as yt, t as Ht } from "./chunks/message-DRAWQlW-.js";
37
37
  export {
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { i as s } from "../chunks/data-table-C1tLUdw0.js";
3
- import { a as E, c as a, d as C, f as S, i as I, l as e, m as o, n as B, o as P, p as N, r, s as t, t as D, u as R } from "../chunks/basic-page-DnB4YSRj.js";
3
+ import { a as E, c as a, d as C, f as S, i as I, l as e, m as o, n as B, o as P, p as N, r, s as t, t as D, u as R } from "../chunks/basic-page-DYBjCadG.js";
4
4
  export {
5
5
  D as AUTO_SAVE_DELAY_MS,
6
6
  B as BASIC_PAGE_CALLOUT,
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { a as I, c as _, d as S, i as R, l as A, n as B, o as T, r as a, s, t as D, u as N } from "../chunks/sidebar-BsBlAVM9.js";
2
+ import { a as I, c as _, d as S, i as R, l as A, n as B, o as T, r as a, s, t as D, u as N } from "../chunks/sidebar-ttBkgGRh.js";
3
3
  export {
4
4
  D as SIDEBAR_HEADER_INSET,
5
5
  B as SIDEBAR_ITEM,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@photon-ai/pho-ui",
3
- "version": "4.23.0",
3
+ "version": "4.25.0",
4
4
  "description": "Photon Design System — Photon's React component library, built on Base UI",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {
@@ -13,12 +13,14 @@
13
13
  * this import and declare the same @font-face rules against your own /fonts/
14
14
  * paths — the theme only references the family names.
15
15
  *
16
- * Roles: PolySans names things (`font-heading`) — page, section, card, and
17
- * step titles at Median 600, the titles of fields and blocks (labels,
18
- * legends, row labels, column headers), and every row of the sidebar, each
19
- * at the weight its slot already uses; the `font-display` utility adds
20
- * `ss02` for dialog and hero titles. Geist carries the rest — body and
21
- * descriptions at 400, UI controls and links at 600 (`font-medium`). Azeret Mono for code and
16
+ * Roles: PolySans names things and labels actions (`font-heading`) — page,
17
+ * section, card, and step titles at 450, the titles of fields and
18
+ * blocks (labels, legends, row labels, column headers), every row of the
19
+ * sidebar, and every button (Button, ButtonLink, toggles, toolbar and
20
+ * notification actions), each at the weight its slot already uses; the
21
+ * `font-display` utility adds `ss02` for dialog and hero titles. Geist
22
+ * carries the rest — body and descriptions at 400; inputs, menus, tabs, and
23
+ * links. Azeret Mono for code and
22
24
  * small labels — always normal case: the system bans all-caps small text
23
25
  * for eyebrows, section titles, and descriptions. Instrument Serif (often
24
26
  * italic) is the editorial accent.
@@ -25,11 +25,11 @@
25
25
 
26
26
  @theme static {
27
27
  /* ============================== Fonts ============================== */
28
- /* Two voices. PolySans names things (`font-heading`): headings, the
29
- titles of fields and blocks (labels, legends, row labels, column
30
- headers), the whole sidebar, and display-size figures. Geist carries
31
- the rest (the default `font-sans`): body, descriptions, values in text,
32
- and controls. */
28
+ /* Two voices. PolySans names things and labels actions (`font-heading`):
29
+ headings, the titles of fields and blocks (labels, legends, row labels,
30
+ column headers), the whole sidebar, display-size figures, and every
31
+ button. Geist carries the rest (the default `font-sans`): body,
32
+ descriptions, values in text, inputs, menus, tabs, and links. */
33
33
  --font-sans:
34
34
  "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial,
35
35
  sans-serif;
@@ -163,40 +163,41 @@
163
163
  --text-xl: 1.25rem;
164
164
  --text-xl--line-height: 1.875rem;
165
165
 
166
- /* Display sizes — headings run tight (lh 1.05–1.3) with -0.02em tracking,
167
- -0.04em at hero sizes. Use for titles; body copy stays on text-*. */
166
+ /* Display sizes — headings run tight (lh 1.05–1.3) at 0 tracking: PolySans
167
+ at its own spacing, never pulled in. Use for titles; body copy stays on
168
+ text-*. */
168
169
  --text-display-xs: 1.125rem;
169
170
  --text-display-xs--line-height: 1.4625rem;
170
- --text-display-xs--letter-spacing: -0.02em;
171
+ --text-display-xs--letter-spacing: 0em;
171
172
  --text-display-sm: 1.25rem;
172
173
  --text-display-sm--line-height: 1.625rem;
173
- --text-display-sm--letter-spacing: -0.02em;
174
+ --text-display-sm--letter-spacing: 0em;
174
175
  --text-display-base: 1.5rem;
175
176
  --text-display-base--line-height: 1.95rem;
176
- --text-display-base--letter-spacing: -0.02em;
177
+ --text-display-base--letter-spacing: 0em;
177
178
  --text-display-md: 2rem;
178
179
  --text-display-md--line-height: 2.4rem;
179
- --text-display-md--letter-spacing: -0.02em;
180
+ --text-display-md--letter-spacing: 0em;
180
181
  --text-display-lg: 2.5rem;
181
182
  --text-display-lg--line-height: 2.75rem;
182
- --text-display-lg--letter-spacing: -0.02em;
183
+ --text-display-lg--letter-spacing: 0em;
183
184
  --text-display-xl: 3rem;
184
185
  --text-display-xl--line-height: 3.15rem;
185
- --text-display-xl--letter-spacing: -0.02em;
186
+ --text-display-xl--letter-spacing: 0em;
186
187
  --text-display-2xl: 3.75rem;
187
188
  --text-display-2xl--line-height: 3.9375rem;
188
- --text-display-2xl--letter-spacing: -0.04em;
189
+ --text-display-2xl--letter-spacing: 0em;
189
190
 
190
191
  /* ========================== Font weights ========================== */
191
192
  /* CLOSED set — three stops only; nothing else generates a utility:
192
193
  font-light (300) display/marketing lines · font-normal (400) body ·
193
- font-medium (600) UI controls, headings, and hero slogans: Geist
194
- SemiBold in text, PolySans Median in headings. font-semibold is gone —
195
- use font-medium. */
194
+ font-medium (450) UI controls, headings, and hero slogans, in Geist and
195
+ PolySans alike: a step above Regular, not a jump to Medium or SemiBold.
196
+ font-semibold is gone — use font-medium. */
196
197
  --font-weight-*: initial;
197
198
  --font-weight-light: 300;
198
199
  --font-weight-normal: 400;
199
- --font-weight-medium: 600;
200
+ --font-weight-medium: 450;
200
201
 
201
202
  /* ============================= Radius ============================= */
202
203
  /* CLOSED set — three stops + Tailwind's rounded-full for pills:
@@ -1 +0,0 @@
1
- {"version":3,"file":"button-CLfWdqm-.js","names":["Icon","_Fragment","cn","isReactComponent","resolveVariant","useLinkComponent","SPRING_PRESS","Spinner","isValidElement","useEffect","useMemo","useRef","useState","Fragment$1","jsx","jsxs","motion","useReducedMotion","COMMON_ROOT","BUTTON_SIZES","BUTTON_SHAPES","SQUARE_LG_RADIUS","EFFECT_OPTICAL_PAD","BUTTON_VARIANTS","BUTTON_COLORS","BUTTON_LOOKS","buttonVariants","opts","variant","color","size","shapeOpt","className","shape","look","SLOT_CLASS","Slot","position","children","renderSlot","icon","warnMissingLabel","svgOnly","label","BUTTON_SPRING","EFFECT_SHEEN_REST","EFFECT_SHEEN_HOVER","EFFECT_SHEEN_PRESS","BUTTON_PRESS_SCALE","EFFECT_SHEEN_WAKE","WAKE_TRANSITION","useWakeOnEnable","inert","sheen","waking","setWaking","prevInert","reduceMotion","definition","ICON_REVEAL_VARIANTS","ICON_REVEAL_PAD_RESTORE","RevealSlot","wrapRevealIcon","buttonInner","loading","prefix","suffix","iconReveal","reveal","buttonRootMotionProps","rest","hover","press","wake","buttonClassName","Button","ref","props","onWakeComplete","cls","inner","ButtonLink","disabled","href","Link","MotionLink","shared","event","EFFECT_BUTTON_SIZES","effectButtonVariants","fullWidth","EffectButton","animated","EffectButtonLink"],"sources":["../../src/components/button/button.tsx"],"sourcesContent":["import {\n isValidElement,\n useEffect,\n useMemo,\n useRef,\n useState,\n type AnchorHTMLAttributes,\n type ButtonHTMLAttributes,\n type ComponentType,\n type FC,\n type MouseEvent as ReactMouseEvent,\n type ReactNode,\n type Ref,\n} from \"react\";\nimport { motion, useReducedMotion } from \"motion/react\";\nimport { SPRING_PRESS } from \"../../motion\";\nimport { cn } from \"../../utils/cn\";\nimport { resolveVariant, type VariantMap } from \"../../utils/resolve-variant\";\nimport { isReactComponent } from \"../../utils/is-react-component\";\nimport { useLinkComponent } from \"../../utils/link-provider\";\nimport { Spinner } from \"../spinner/spinner\";\n\n/**\n * Design notes:\n * - TWO visual axes: `variant` is the surface (filled / outlined / ghost /\n * effect) and `color` is the semantic ink (default / destructive). Dialog\n * confirms use the default `effect`; danger-zone triggers are `ghost` +\n * `destructive`. `effect` is the marketing pill: same-hue 1.5px outer rim\n * plus inset sheen that springs on hover.\n * - `iconReveal` is a separate boolean: on hover, prefix/suffix icons spring\n * in from collapsed — works with any variant, independent of `effect`.\n * - Press scale (Motion `whileTap` → 0.97) is shared by every variant; only\n * `effect` also springs its inset sheen on hover/press, and replays a\n * one-shot sheen glint when it leaves `disabled`/`loading` (wake).\n * - THREE sizes (`sm` / `md` / `lg`, default `md`). No `xs` / `xl`.\n * - `prefix` / `suffix` are generic slots (icon, spinner, count…), not\n * icon-only props. `svgOnly` makes an icon button and *requires* an\n * `aria-label`. `loading` is declarative. Effect’s rim/sheen are\n * box-shadow layers (not layout `border`).\n * - Navigation belongs to `ButtonLink`; an inline text link is an anchor.\n */\n\nconst COMMON_ROOT = cn(\n // Transition colors/shadows in CSS; transform (press scale) is owned by Motion.\n // Inset focus so the ring stays inside a clipping ancestor (a card, a\n // scrollport) and inside the pill itself — never drop the ring.\n \"group relative inline-flex h-max cursor-pointer items-center justify-center whitespace-nowrap outline-pho-brand transition-[color,background-color,border-color,opacity,box-shadow,outline-color] duration-100 ease-linear focus-visible:outline-2 focus-visible:-outline-offset-2\",\n // Disabled (native `disabled` on <button>, `aria-disabled` on links).\n \"disabled:cursor-not-allowed disabled:opacity-50 aria-disabled:cursor-not-allowed aria-disabled:opacity-50 aria-disabled:pointer-events-none\",\n);\n\n/**\n * Size axis — padding, text size, and icon-only (svgOnly) padding.\n *\n * Icon-side tuck (optical correction): a side that carries an icon sits 4px\n * closer to its edge than the label does to the other — sm 12/16 · md 14/18 ·\n * lg 18/22. An icon's box brings its own whitespace, so equal padding reads\n * as a looser icon side; the tuck is small enough to look equal, not measured\n * to be. Selected structurally via `:has()` on the slot markers (`data-icon`\n * is `prefix`, `suffix`, or `loading` — the spinner is an icon too). The\n * label has no padding of its own: its inset from an icon is the `gap`.\n */\nexport const BUTTON_SIZES = {\n sm: {\n classes: cn(\n \"gap-1.5 px-4 py-1.5 text-base font-medium data-svg-only:p-2\",\n \"has-[[data-icon=prefix]]:pl-3 has-[[data-icon=loading]]:pl-3 has-[[data-icon=suffix]]:pr-3\",\n ),\n description: \"Small — compact rows, tables, and toolbars\",\n },\n md: {\n classes: cn(\n \"gap-1.5 px-4.5 py-2 text-base font-medium data-svg-only:p-2.5\",\n \"has-[[data-icon=prefix]]:pl-3.5 has-[[data-icon=loading]]:pl-3.5 has-[[data-icon=suffix]]:pr-3.5\",\n ),\n description: \"Medium — the default\",\n },\n lg: {\n classes: cn(\n \"gap-2 px-5.5 py-2.5 text-md font-medium data-svg-only:p-3\",\n \"has-[[data-icon=prefix]]:pl-4.5 has-[[data-icon=loading]]:pl-4.5 has-[[data-icon=suffix]]:pr-4.5\",\n ),\n description: \"Large — prominent and marketing actions\",\n },\n} satisfies VariantMap;\n\n/** Shape axis — corner treatment. Pills are the photon.codes default. */\nexport const BUTTON_SHAPES = {\n rounded: {\n classes: \"rounded-full\",\n description: \"Pill — the default; every button on photon.codes\",\n },\n square: {\n classes: \"rounded-base\",\n description: \"Gently rounded corners for dense app chrome\",\n },\n circle: {\n classes: \"rounded-full\",\n description: \"Circular — pair with svgOnly for round icon buttons\",\n },\n} satisfies VariantMap;\n\n/**\n * At `lg`, square buttons add squircle smoothing on top of `rounded-base`\n * (12px) — the same treatment as Input `lg`, so 44px buttons and fields share\n * a corner language. 12/44 ≈ 0.272 — LiftKit's half-step decimal (√φ − 1).\n */\nconst SQUARE_LG_RADIUS = \"squircle\";\n\n/**\n * Optical pad for `effect`: the 1.5px outer rim is a box-shadow (no layout\n * cost), so without this the painted height reads ~3px taller than filled /\n * outlined / ghost. Subtract 1.5px from each side so fill+rim matches siblings.\n */\nconst EFFECT_OPTICAL_PAD: Record<ButtonSize, string> = {\n sm: \"py-[4.5px] data-svg-only:p-[6.5px]\",\n md: \"py-[6.5px] data-svg-only:p-[8.5px]\",\n lg: \"py-[8.5px] data-svg-only:p-[10.5px]\",\n};\n\n/** Surface axis — how the control is drawn. `effect` is the default. */\nexport const BUTTON_VARIANTS = {\n effect: {\n classes: \"\",\n description:\n \"Default — marketing pill with same-hue outer rim and inset sheen\",\n },\n filled: {\n classes: \"\",\n description: \"Solid fill without sheen\",\n },\n outlined: {\n classes: \"\",\n description: \"Hairline ring — supporting action\",\n },\n ghost: {\n classes: \"\",\n description: \"Borderless — quiet / inline action\",\n },\n} satisfies VariantMap;\n\n/** Color axis — semantic ink. `default` is the default. */\nexport const BUTTON_COLORS = {\n default: {\n classes: \"\",\n description: \"Neutral / brand contrast\",\n },\n destructive: {\n classes: \"\",\n description: \"Destructive intent (delete, discard)\",\n },\n} satisfies VariantMap;\n\n/**\n * Surface × color looks. Kept as a matrix so each cell can own its tokens\n * (filled destructive is solid red; ghost destructive is red text only).\n */\nconst BUTTON_LOOKS: Record<\n keyof typeof BUTTON_VARIANTS,\n Record<keyof typeof BUTTON_COLORS, string>\n> = {\n // Icons inherit the label ink (currentColor) — no separate opacity/tint.\n // The rim replicates photon.codes' Framer CTA border: 1.5px in the fill hue\n // at 62% alpha, reading as a soft same-hue edge (the site has NO outer\n // glow — verified against live computed styles). Sheen geometry is CSS\n // vars that Motion springs on hover (see Button). All edges are shadows —\n // never a layout `border` — so height stays paired with other variants.\n effect: {\n default: cn(\n \"squircle overflow-visible bg-pho-brand-solid text-pho-on-brand transition-none\",\n \"hover:bg-pho-brand-solid data-loading:bg-pho-brand-solid\",\n \"[--pho-rim:color-mix(in_oklab,var(--background-color-pho-brand-solid)_62%,transparent)]\",\n \"[--pho-sheen:light-dark(rgba(255,255,255,0.5),rgba(0,0,0,0.12))]\",\n \"shadow-[0_0_0_1.5px_var(--pho-rim),inset_0_0_0_1px_var(--border-color-pho-on-brand),inset_0_var(--pho-sheen-y,0px)_var(--pho-sheen-blur,5px)_var(--pho-sheen-spread,2px)_var(--pho-sheen)]\",\n ),\n destructive: cn(\n \"squircle overflow-visible bg-pho-error-solid text-white outline-pho-error transition-none\",\n \"hover:bg-pho-error-solid data-loading:bg-pho-error-solid\",\n \"[--pho-rim:color-mix(in_oklab,var(--background-color-pho-error-solid)_62%,transparent)]\",\n \"[--pho-sheen:light-dark(rgba(255,255,255,0.45),rgba(0,0,0,0.18))]\",\n \"shadow-[0_0_0_1.5px_var(--pho-rim),inset_0_0_0_1px_oklch(1_0_0/0.2),inset_0_var(--pho-sheen-y,0px)_var(--pho-sheen-blur,5px)_var(--pho-sheen-spread,2px)_var(--pho-sheen)]\",\n ),\n },\n filled: {\n default:\n \"bg-pho-brand-solid text-pho-on-brand hover:bg-pho-brand-solid-hover data-loading:bg-pho-brand-solid-hover\",\n destructive:\n \"bg-pho-error-solid text-white outline-pho-error hover:bg-pho-error-solid-hover data-loading:bg-pho-error-solid-hover\",\n },\n outlined: {\n default:\n // Rest hairline is the card stroke; hover climbs to primary ink so the\n // edge reads as black (white in dark), matching the label's hover lift.\n // The ring spans the full ladder, so ease it in gently — 200ms ease-out\n // approximates the effect variant's soft spring instead of base's\n // 100ms linear snap. Prefer the named `ring-pho-ink` token over an\n // arbitrary value so consumers' Tailwind scanners pick it up reliably.\n \"bg-pho-primary text-pho-secondary ring-1 ring-pho-secondary ring-inset duration-200 ease-out hover:bg-pho-primary-hover hover:text-pho-secondary-hover hover:ring-pho-ink data-loading:bg-pho-primary-hover\",\n destructive:\n \"bg-pho-primary text-pho-error outline-pho-error ring-1 ring-pho-error ring-inset duration-200 ease-out hover:bg-pho-error-primary hover:text-pho-error-hover data-loading:bg-pho-error-primary\",\n },\n ghost: {\n default:\n \"text-pho-secondary hover:bg-pho-ghost-hover hover:text-pho-secondary-hover data-loading:bg-pho-ghost-hover\",\n destructive:\n \"text-pho-error outline-pho-error hover:bg-pho-error-primary hover:text-pho-error-hover data-loading:bg-pho-error-primary\",\n },\n};\n\nexport type ButtonSize = keyof typeof BUTTON_SIZES;\nexport type ButtonShape = keyof typeof BUTTON_SHAPES;\nexport type ButtonVariant = keyof typeof BUTTON_VARIANTS;\nexport type ButtonColor = keyof typeof BUTTON_COLORS;\n\n/** Compose the full class string for a button — exported for reuse/testing. */\nexport function buttonVariants(opts?: {\n variant?: ButtonVariant;\n color?: ButtonColor;\n size?: ButtonSize;\n shape?: ButtonShape;\n className?: string;\n}): string {\n const {\n variant = \"effect\",\n color = \"default\",\n size = \"md\",\n shape: shapeOpt = \"rounded\",\n className,\n } = opts ?? {};\n // Effect pills are always fully rounded — shape is ignored.\n const shape = variant === \"effect\" ? \"rounded\" : shapeOpt;\n const look =\n BUTTON_LOOKS[variant as keyof typeof BUTTON_LOOKS]?.[\n color as keyof (typeof BUTTON_LOOKS)[\"effect\"]\n ] ?? \"\";\n return cn(\n COMMON_ROOT,\n resolveVariant(BUTTON_SHAPES, shape),\n shape === \"square\" && size === \"lg\" && SQUARE_LG_RADIUS,\n resolveVariant(BUTTON_SIZES, size),\n // Outer rim is a 1.5px box-shadow (no layout cost). Shrink padding by the\n // same amount so fill+rim paints at the same visual size as filled /\n // outlined / ghost siblings of the same `size`.\n variant === \"effect\" && EFFECT_OPTICAL_PAD[size],\n look,\n className,\n );\n}\n\n/** An icon/element slot rendered before or after the label. */\ntype Slottable = ReactNode | FC<{ className?: string }>;\n\ninterface ButtonBaseProps {\n /** Surface variant. @default \"effect\" */\n variant?: ButtonVariant;\n /** Semantic color. @default \"default\" */\n color?: ButtonColor;\n /** Size variant. @default \"md\" */\n size?: ButtonSize;\n /** Corner shape. @default \"rounded\" */\n shape?: ButtonShape;\n /** Slot before the label — a component (`Plus`) or element (`<Plus />`). */\n prefix?: Slottable;\n /** Slot after the label. */\n suffix?: Slottable;\n /**\n * Reveal prefix/suffix icons on hover — collapsed and invisible at rest,\n * spring in on hover. Independent of `variant` (including `effect`).\n * Ignored when `svgOnly`. @default false\n */\n iconReveal?: boolean;\n /** Render as an icon-only button. Requires an `aria-label`. */\n svgOnly?: boolean;\n /** Show a spinner and block interaction while staying readable. */\n loading?: boolean;\n children?: ReactNode;\n className?: string;\n}\n\n/**\n * DOM event handlers whose React signatures clash with Motion's gesture\n * props of the same name (Motion re-types these on `motion.*` elements).\n * Excluded from the public API — Button renders through Motion when the\n * sheen or icon reveal is active, so these handlers would be intercepted.\n */\ntype MotionHandlerConflicts =\n | \"onAnimationStart\"\n | \"onAnimationEnd\"\n | \"onAnimationIteration\"\n | \"onDrag\"\n | \"onDragStart\"\n | \"onDragEnd\"\n | \"onDragEnter\"\n | \"onDragExit\"\n | \"onDragLeave\"\n | \"onDragOver\"\n | \"onDrop\";\n\nexport interface ButtonProps\n extends\n ButtonBaseProps,\n Omit<\n ButtonHTMLAttributes<HTMLButtonElement>,\n keyof ButtonBaseProps | MotionHandlerConflicts\n > {\n ref?: Ref<HTMLButtonElement>;\n}\n\nexport interface ButtonLinkProps\n extends\n ButtonBaseProps,\n Omit<\n AnchorHTMLAttributes<HTMLAnchorElement>,\n keyof ButtonBaseProps | MotionHandlerConflicts\n > {\n /** Navigate to this URL (rendered via the host's `LinkProvider`). */\n href: string;\n /** Visually and semantically disable the link. */\n disabled?: boolean;\n}\n\nconst SLOT_CLASS =\n // Icons scale with the label: 1.125em tracks the button's font size\n // (16px icon beside 14px text, 18px beside 16px) so small buttons never\n // carry an oversized glyph.\n \"transition-inherit-all pointer-events-none inline-flex shrink-0 items-center [&>svg]:size-[1.125em] [&>svg]:shrink-0\";\n\nfunction Slot({\n position,\n children,\n}: {\n position: \"prefix\" | \"suffix\" | \"loading\";\n children: ReactNode;\n}) {\n return (\n <span data-icon={position} className={SLOT_CLASS}>\n {children}\n </span>\n );\n}\n\nfunction renderSlot(icon: Slottable, position: \"prefix\" | \"suffix\") {\n if (icon == null || icon === false) return null;\n if (isReactComponent(icon)) {\n const Icon = icon;\n return (\n <Slot position={position}>\n <Icon />\n </Slot>\n );\n }\n if (isValidElement(icon)) return <Slot position={position}>{icon}</Slot>;\n return null;\n}\n\nfunction warnMissingLabel(svgOnly: boolean | undefined, label: unknown) {\n if (\n svgOnly &&\n !label &&\n typeof process !== \"undefined\" &&\n process.env?.NODE_ENV !== \"production\"\n ) {\n console.warn(\n \"Button: `svgOnly` buttons require an `aria-label` that names the action.\",\n );\n }\n}\n\n/* ======================== Motion: sheen + icon reveal ======================== */\n\n/** Framer source transition: `spring-physics 200 30 0.1`. */\nconst BUTTON_SPRING = SPRING_PRESS;\n\nconst EFFECT_SHEEN_REST = {\n \"--pho-sheen-y\": \"0px\",\n \"--pho-sheen-blur\": \"5px\",\n \"--pho-sheen-spread\": \"2px\",\n} as const;\n\n/** Per-size sheen hover targets. */\nconst EFFECT_SHEEN_HOVER = {\n sm: {\n \"--pho-sheen-y\": \"-3px\",\n \"--pho-sheen-blur\": \"8px\",\n \"--pho-sheen-spread\": \"2px\",\n },\n md: {\n \"--pho-sheen-y\": \"-3px\",\n \"--pho-sheen-blur\": \"8px\",\n \"--pho-sheen-spread\": \"2px\",\n },\n lg: {\n \"--pho-sheen-y\": \"-6px\",\n \"--pho-sheen-blur\": \"14px\",\n \"--pho-sheen-spread\": \"1px\",\n },\n} as const;\n\n/**\n * Per-size sheen press targets — the inverse gesture of hover: the light\n * drops back below the rest line and tightens while the pill compresses\n * slightly, so hover → press reads as \"lift, then push in\".\n */\nconst EFFECT_SHEEN_PRESS = {\n sm: {\n \"--pho-sheen-y\": \"1.5px\",\n \"--pho-sheen-blur\": \"4px\",\n \"--pho-sheen-spread\": \"1px\",\n },\n md: {\n \"--pho-sheen-y\": \"1.5px\",\n \"--pho-sheen-blur\": \"4px\",\n \"--pho-sheen-spread\": \"1px\",\n },\n lg: {\n \"--pho-sheen-y\": \"3px\",\n \"--pho-sheen-blur\": \"7px\",\n \"--pho-sheen-spread\": \"1px\",\n },\n} as const;\n\n/** Pill compression while pressed — subtle, transform-only; every variant. */\nconst BUTTON_PRESS_SCALE = 0.97;\n\n/**\n * One-shot \"wake\" glint when an effect pill re-enables (disabled / loading →\n * interactive). The keyframes replay the pill's own gesture in reverse: the\n * sheen starts from its pressed-in position (low, tight — the dormant read),\n * springs up past the hover line, and settles at rest. Shadow-only, so the\n * pill never moves or resizes next to its neighbours.\n */\nconst EFFECT_SHEEN_WAKE = {\n sm: {\n \"--pho-sheen-y\": [\"1.5px\", \"-4px\", \"0px\"],\n \"--pho-sheen-blur\": [\"4px\", \"9px\", \"5px\"],\n \"--pho-sheen-spread\": [\"1px\", \"2px\", \"2px\"],\n },\n md: {\n \"--pho-sheen-y\": [\"1.5px\", \"-4px\", \"0px\"],\n \"--pho-sheen-blur\": [\"4px\", \"9px\", \"5px\"],\n \"--pho-sheen-spread\": [\"1px\", \"2px\", \"2px\"],\n },\n lg: {\n \"--pho-sheen-y\": [\"3px\", \"-8px\", \"0px\"],\n \"--pho-sheen-blur\": [\"7px\", \"16px\", \"5px\"],\n \"--pho-sheen-spread\": [\"1px\", \"1px\", \"2px\"],\n },\n} as const;\n\n/**\n * Wake timing: a short delay lets the 100ms opacity fade land first, then a\n * quick rise (feedback) and a relaxed settle. Keyframes need a tween — the\n * shared spring only animates between two values.\n */\nconst WAKE_TRANSITION = {\n duration: 0.6,\n delay: 0.05,\n times: [0, 0.4, 1],\n ease: [\"easeOut\", \"easeInOut\"],\n} as const;\n\n/**\n * Fire the wake glint on the disabled/loading → enabled edge (never on\n * mount), skipped under reduced motion. `data-waking` mirrors the window so\n * tests and styling can observe it.\n */\nfunction useWakeOnEnable(inert: boolean, sheen: boolean) {\n const [waking, setWaking] = useState(false);\n const prevInert = useRef(inert);\n const reduceMotion = useReducedMotion();\n\n useEffect(() => {\n if (prevInert.current && !inert && sheen && !reduceMotion) {\n setWaking(true);\n } else if (inert) {\n setWaking(false);\n }\n prevInert.current = inert;\n }, [inert, sheen, reduceMotion]);\n\n return {\n waking,\n onWakeComplete: (definition: unknown) => {\n if (definition === \"wake\") setWaking(false);\n },\n };\n}\n\n/**\n * Icon reveal sizes — collapsed at rest, full on hover. `lg` matches the\n * Framer 20×21 source; `sm`/`md` scale with the 14px label.\n */\nconst ICON_REVEAL_VARIANTS = {\n sm: {\n rest: { opacity: 0, width: 1, height: 9 },\n hover: { opacity: 1, width: 17, height: 18 },\n },\n md: {\n rest: { opacity: 0, width: 1, height: 9 },\n hover: { opacity: 1, width: 17, height: 18 },\n },\n lg: {\n rest: { opacity: 0, width: 1, height: 10 },\n hover: { opacity: 1, width: 20, height: 21 },\n },\n} as const;\n\n/**\n * When icons are hidden at rest, undo Button's icon-side padding tuck so the\n * pill doesn't look lopsided. Same `:has()` keys as the tuck (later wins).\n */\nconst ICON_REVEAL_PAD_RESTORE: Record<ButtonSize, string> = {\n sm: \"has-[[data-icon=prefix]]:pl-4 has-[[data-icon=loading]]:pl-4 has-[[data-icon=suffix]]:pr-4\",\n md: \"has-[[data-icon=prefix]]:pl-4.5 has-[[data-icon=loading]]:pl-4.5 has-[[data-icon=suffix]]:pr-4.5\",\n lg: \"has-[[data-icon=prefix]]:pl-5.5 has-[[data-icon=loading]]:pl-5.5 has-[[data-icon=suffix]]:pr-5.5\",\n};\n\nfunction RevealSlot({\n position,\n size,\n children,\n}: {\n position: \"prefix\" | \"suffix\";\n size: ButtonSize;\n children: ReactNode;\n}) {\n return (\n <motion.span\n data-icon={position}\n variants={ICON_REVEAL_VARIANTS[size]}\n transition={BUTTON_SPRING}\n style={{\n display: \"inline-flex\",\n flex: \"none\",\n alignItems: \"center\",\n overflow: \"hidden\",\n }}\n className=\"pointer-events-none [&>svg]:block [&>svg]:size-full\"\n >\n {children}\n </motion.span>\n );\n}\n\nfunction wrapRevealIcon(\n icon: Slottable,\n position: \"prefix\" | \"suffix\",\n size: ButtonSize,\n): ReactNode | undefined {\n if (icon == null || icon === false) return undefined;\n if (isReactComponent(icon)) {\n const Icon = icon;\n return (\n <RevealSlot position={position} size={size}>\n <Icon />\n </RevealSlot>\n );\n }\n if (isValidElement(icon)) {\n return (\n <RevealSlot position={position} size={size}>\n {icon}\n </RevealSlot>\n );\n }\n return (\n <RevealSlot position={position} size={size}>\n {icon}\n </RevealSlot>\n );\n}\n\nfunction buttonInner({\n svgOnly,\n loading,\n prefix,\n suffix,\n children,\n iconReveal,\n size,\n}: Pick<\n ButtonBaseProps,\n | \"svgOnly\"\n | \"loading\"\n | \"prefix\"\n | \"suffix\"\n | \"children\"\n | \"iconReveal\"\n | \"size\"\n> & { size: ButtonSize }) {\n if (svgOnly) {\n return loading ? <Spinner /> : children;\n }\n const reveal = Boolean(iconReveal);\n return (\n <>\n {loading ? (\n <Slot position=\"loading\">\n <Spinner />\n </Slot>\n ) : reveal ? (\n wrapRevealIcon(prefix, \"prefix\", size)\n ) : (\n renderSlot(prefix, \"prefix\")\n )}\n {children != null && children !== false && (\n <span data-text className=\"transition-inherit-all\">\n {children}\n </span>\n )}\n {reveal\n ? wrapRevealIcon(suffix, \"suffix\", size)\n : renderSlot(suffix, \"suffix\")}\n </>\n );\n}\n\n/**\n * Root Motion props — press scale on every variant; sheen + icon-reveal gap\n * only when those features are on. Press composes over hover (`whileTap` >\n * `whileHover`): effect sheen inverts while the pill compresses; other\n * variants get the same scale with no sheen change. `waking` plays the\n * one-shot re-enable glint; a real hover mid-glint takes over seamlessly.\n */\nfunction buttonRootMotionProps(\n size: ButtonSize,\n inert: boolean | undefined,\n opts: { sheen: boolean; iconReveal: boolean; waking?: boolean },\n) {\n const rest: Record<string, string | number> = {\n scale: 1,\n ...(opts.sheen ? EFFECT_SHEEN_REST : {}),\n };\n const hover: Record<string, string | number> = opts.sheen\n ? { ...EFFECT_SHEEN_HOVER[size] }\n : {};\n const press: Record<string, string | number> = {\n scale: BUTTON_PRESS_SCALE,\n ...(opts.sheen ? EFFECT_SHEEN_PRESS[size] : {}),\n };\n const wake = opts.sheen\n ? { ...EFFECT_SHEEN_WAKE[size], transition: WAKE_TRANSITION }\n : {};\n if (opts.iconReveal) {\n // Collapse gap at rest so the hidden icon leaves no hole; hover opens it.\n rest.gap = 0;\n hover.gap = size === \"lg\" ? 6 : 2;\n }\n return {\n initial: false as const,\n animate: opts.waking && opts.sheen ? \"wake\" : \"rest\",\n whileHover: inert ? undefined : \"hover\",\n whileTap: inert ? undefined : \"press\",\n variants: { rest, hover, press, wake },\n transition: BUTTON_SPRING,\n };\n}\n\nfunction buttonClassName({\n variant,\n color,\n size,\n shape,\n loading,\n svgOnly,\n className,\n}: {\n variant?: ButtonVariant;\n color?: ButtonColor;\n size?: ButtonSize;\n shape?: ButtonShape;\n loading?: boolean;\n svgOnly?: boolean;\n className?: string;\n}) {\n return cn(\n buttonVariants({ variant, color, size, shape }),\n loading && \"pointer-events-none\",\n svgOnly && \"[&>svg]:size-[1.25em] [&>svg]:shrink-0\",\n className,\n );\n}\n\n/**\n * Button — triggers an action that mutates state (submit, save, delete).\n * For navigation that changes the URL, use {@link ButtonLink}.\n *\n * Default surface is `effect` (same-hue 1.5px outer rim + inset sheen). Use\n * `filled` for a solid fill without those layers. `iconReveal` springs\n * prefix/suffix icons in on hover — independent of variant.\n */\nexport function Button({\n variant = \"effect\",\n color,\n size = \"md\",\n shape,\n prefix,\n suffix,\n iconReveal = false,\n svgOnly,\n loading,\n children,\n className,\n ref,\n ...props\n}: ButtonProps) {\n warnMissingLabel(svgOnly, props[\"aria-label\"]);\n const sheen = variant === \"effect\";\n const reveal = iconReveal && !svgOnly;\n const inert = Boolean(props.disabled || loading);\n const { waking, onWakeComplete } = useWakeOnEnable(inert, sheen);\n const cls = buttonClassName({\n variant,\n color,\n size,\n shape,\n loading,\n svgOnly,\n className: cn(reveal && ICON_REVEAL_PAD_RESTORE[size], className),\n });\n const inner = buttonInner({\n svgOnly,\n loading,\n prefix,\n suffix,\n children,\n iconReveal: reveal,\n size,\n });\n\n return (\n <motion.button\n ref={ref}\n type=\"button\"\n {...buttonRootMotionProps(size, inert, {\n sheen,\n iconReveal: reveal,\n waking,\n })}\n onAnimationComplete={onWakeComplete}\n {...props}\n aria-busy={loading || undefined}\n data-loading={loading ? \"true\" : undefined}\n data-svg-only={svgOnly ? \"true\" : undefined}\n data-waking={waking || undefined}\n className={cls}\n >\n {inner}\n </motion.button>\n );\n}\n\nButton.displayName = \"Button\";\n\n/**\n * ButtonLink — a link styled as a button, for navigation that changes the URL.\n * Shares every visual prop with {@link Button}; renders the host router's link\n * via `LinkProvider`.\n */\nexport function ButtonLink({\n variant = \"effect\",\n color,\n size = \"md\",\n shape,\n prefix,\n suffix,\n iconReveal = false,\n svgOnly,\n loading,\n disabled,\n href,\n children,\n className,\n ...props\n}: ButtonLinkProps) {\n warnMissingLabel(svgOnly, props[\"aria-label\"]);\n const Link = useLinkComponent();\n const sheen = variant === \"effect\";\n const reveal = iconReveal && !svgOnly;\n const cls = buttonClassName({\n variant,\n color,\n size,\n shape,\n loading,\n svgOnly,\n className: cn(reveal && ICON_REVEAL_PAD_RESTORE[size], className),\n });\n const inner = buttonInner({\n svgOnly,\n loading,\n prefix,\n suffix,\n children,\n iconReveal: reveal,\n size,\n });\n // Hooks must run unconditionally — only used when Motion is needed.\n const MotionLink = useMemo(\n // LinkProvider requires `href`; motion.create needs an open prop record —\n // bridge the two through `unknown` (props are supplied at the call site).\n () =>\n motion.create(Link as unknown as ComponentType<Record<string, unknown>>),\n [Link],\n );\n\n const inert = Boolean(disabled || loading);\n const { waking, onWakeComplete } = useWakeOnEnable(inert, sheen);\n const shared = {\n ...props,\n ...(inert ? {} : { href }),\n \"aria-disabled\": inert || undefined,\n \"aria-busy\": loading || undefined,\n \"data-loading\": loading ? (\"true\" as const) : undefined,\n \"data-svg-only\": svgOnly ? (\"true\" as const) : undefined,\n className: cls,\n tabIndex: inert ? -1 : props.tabIndex,\n onClick: inert\n ? (event: ReactMouseEvent<HTMLAnchorElement>) => {\n event.preventDefault();\n }\n : props.onClick,\n };\n\n if (inert) {\n return <span {...shared}>{inner}</span>;\n }\n\n return (\n <MotionLink\n {...buttonRootMotionProps(size, inert, {\n sheen,\n iconReveal: reveal,\n waking,\n })}\n onAnimationComplete={onWakeComplete}\n data-waking={waking || undefined}\n {...shared}\n >\n {inner}\n </MotionLink>\n );\n}\n\nButtonLink.displayName = \"ButtonLink\";\n\n/* ======================= EffectButton (compat alias) ======================= */\n\nexport const EFFECT_BUTTON_SIZES = BUTTON_SIZES;\nexport type EffectButtonSize = ButtonSize;\n\n/** Compose classes for an effect pill — `Button` with `variant=\"effect\"`. */\nexport function effectButtonVariants(opts?: {\n size?: EffectButtonSize;\n fullWidth?: boolean;\n className?: string;\n}): string {\n const { size = \"md\", fullWidth, className } = opts ?? {};\n return buttonVariants({\n variant: \"effect\",\n size,\n className: cn(fullWidth && \"w-full\", className),\n });\n}\n\n/**\n * Legacy EffectButton also reserved `style` (sheen variables lived there) and\n * never exposed the HTML `color` attribute — Button's semantic `color` prop\n * now occupies that name.\n */\ntype MotionConflicts = MotionHandlerConflicts | \"style\" | \"color\";\n\ninterface EffectButtonBaseProps {\n /** Size variant — Button's scale (32 / 36 / 44px). @default \"md\" */\n size?: EffectButtonSize;\n /** Stretch to the container's full width (stacked login / OAuth pills). */\n fullWidth?: boolean;\n /**\n * @deprecated Use `iconReveal` on `Button` instead. Mapped to `iconReveal`\n * when set.\n */\n animated?: boolean;\n /** @see ButtonBaseProps.iconReveal */\n iconReveal?: boolean;\n prefix?: Slottable;\n suffix?: Slottable;\n svgOnly?: boolean;\n loading?: boolean;\n children?: ReactNode;\n className?: string;\n}\n\nexport interface EffectButtonProps\n extends\n EffectButtonBaseProps,\n Omit<\n ButtonHTMLAttributes<HTMLButtonElement>,\n keyof EffectButtonBaseProps | MotionConflicts\n > {\n ref?: Ref<HTMLButtonElement>;\n}\n\nexport interface EffectButtonLinkProps\n extends\n EffectButtonBaseProps,\n Omit<\n AnchorHTMLAttributes<HTMLAnchorElement>,\n keyof EffectButtonBaseProps | MotionConflicts\n > {\n href: string;\n disabled?: boolean;\n}\n\n/**\n * @deprecated Prefer `<Button variant=\"effect\">`. Thin alias that forwards to\n * Button with the sheen surface (no icon reveal).\n */\nexport function EffectButton({\n size = \"md\",\n fullWidth,\n animated,\n iconReveal,\n className,\n ...props\n}: EffectButtonProps) {\n return (\n <Button\n variant=\"effect\"\n size={size}\n iconReveal={iconReveal ?? animated ?? true}\n className={cn(fullWidth && \"w-full\", className)}\n {...props}\n />\n );\n}\n\nEffectButton.displayName = \"EffectButton\";\n\n/**\n * @deprecated Prefer `<ButtonLink variant=\"effect\">`.\n */\nexport function EffectButtonLink({\n size = \"md\",\n fullWidth,\n animated,\n iconReveal,\n className,\n ...props\n}: EffectButtonLinkProps) {\n return (\n <ButtonLink\n variant=\"effect\"\n size={size}\n iconReveal={iconReveal ?? animated ?? true}\n className={cn(fullWidth && \"w-full\", className)}\n {...props}\n />\n );\n}\n\nEffectButtonLink.displayName = \"EffectButtonLink\";\n"],"mappings":";;;;;;;;;;AA0CA,IAAMkB,KAAchB,EAIlB,sRAEA,6IACF,GAaaiB,IAAe;AAAA,EAC1B,IAAI;AAAA,IACF,SAASjB,EACP,+DACA,4FACF;AAAA,IACA,aAAa;AAAA,EACf;AAAA,EACA,IAAI;AAAA,IACF,SAASA,EACP,iEACA,kGACF;AAAA,IACA,aAAa;AAAA,EACf;AAAA,EACA,IAAI;AAAA,IACF,SAASA,EACP,6DACA,kGACF;AAAA,IACA,aAAa;AAAA,EACf;AACF,GAGakB,KAAgB;AAAA,EAC3B,SAAS;AAAA,IACP,SAAS;AAAA,IACT,aAAa;AAAA,EACf;AAAA,EACA,QAAQ;AAAA,IACN,SAAS;AAAA,IACT,aAAa;AAAA,EACf;AAAA,EACA,QAAQ;AAAA,IACN,SAAS;AAAA,IACT,aAAa;AAAA,EACf;AACF,GAOMC,KAAmB,YAOnBC,KAAiD;AAAA,EACrD,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN,GAGaC,KAAkB;AAAA,EAC7B,QAAQ;AAAA,IACN,SAAS;AAAA,IACT,aACE;AAAA,EACJ;AAAA,EACA,QAAQ;AAAA,IACN,SAAS;AAAA,IACT,aAAa;AAAA,EACf;AAAA,EACA,UAAU;AAAA,IACR,SAAS;AAAA,IACT,aAAa;AAAA,EACf;AAAA,EACA,OAAO;AAA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vB,GAAIgC;AAAA,IAEH,UAAAN;AAAA,EACS,CAAA;AAEhB;AAEAC,EAAW,cAAc;AAIzB,IAAaO,KAAsBrE;AAInC,SAAgBsE,GAAqB9D,GAI1B;AACT,QAAM,EAAE,MAAAG,IAAO,MAAM,WAAA4D,GAAW,WAAA1D,EAAA,IAAcL,KAAQ,CAAC;AACvD,SAAOD,EAAe;AAAA,IACpB,SAAS;AAAA,IACT,MAAAI;AAAA,IACA,WAAW5B,EAAGwF,KAAa,UAAU1D,CAAS;AAAA,EAChD,CAAC;AACH;AAsDA,SAAgB2D,GAAa,EAC3B,MAAA7D,IAAO,MACP,WAAA4D,GACA,UAAAE,GACA,YAAAzB,GACA,WAAAnC,GACA,GAAG6C,EAAA,GACiB;AACpB,SACE,gBAAA/D,EAAC6D,GAAD;AAAA,IACE,SAAQ;AAAA,IACF,MAAA7C;AAAA,IACN,YAAYqC,KAAcyB,KAAY;AAAA,IACtC,WAAW1F,EAAGwF,KAAa,UAAU1D,CAAS;AAAA,IAC9C,GAAI6C;AAAA,EACL,CAAA;AAEL;AAEAc,GAAa,cAAc;AAK3B,SAAgBE,GAAiB,EAC/B,MAAA/D,IAAO,MACP,WAAA4D,GACA,UAAAE,GACA,YAAAzB,GACA,WAAAnC,GACA,GAAG6C,EAAA,GACqB;AACxB,SACE,gBAAA/D,EAACmE,GAAD;AAAA,IACE,SAAQ;AAAA,IACF,MAAAnD;AAAA,IACN,YAAYqC,KAAcyB,KAAY;AAAA,IACtC,WAAW1F,EAAGwF,KAAa,UAAU1D,CAAS;AAAA,IAC9C,GAAI6C;AAAA,EACL,CAAA;AAEL;AAEAgB,GAAiB,cAAc"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"collapsible-C2tn_b1Q.js","names":["BaseCollapsible","Collapsible","cn","jsx","Collapsible","Root","Trigger","className","props","isPanelHeight","event","Panel","onTransitionRun","onTransitionEnd","onTransitionCancel","Collapsible$1"],"sources":["../../src/components/collapsible/collapsible.tsx"],"sourcesContent":["import {\n type ComponentProps,\n type ElementType,\n type TransitionEvent,\n} from \"react\";\nimport { Collapsible as BaseCollapsible } from \"@base-ui/react/collapsible\";\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\nconst Root = BaseCollapsible.Root;\n\nfunction Trigger({\n className,\n ...props\n}: StyledProps<typeof BaseCollapsible.Trigger>) {\n return (\n <BaseCollapsible.Trigger\n className={cn(\n \"outline-pho-brand text-pho-secondary hover:text-pho-secondary-hover flex w-full cursor-pointer items-center justify-between gap-2 rounded-sm text-base font-medium transition focus-visible:outline-2 focus-visible:outline-offset-2\",\n \"[&>svg]:size-4 [&>svg]:transition-transform [&>svg]:duration-150 data-[panel-open]:[&>svg]:rotate-180\",\n className,\n )}\n {...props}\n />\n );\n}\n\n/** The panel's own height transition, not a child's. */\nfunction isPanelHeight(event: TransitionEvent<HTMLDivElement>): boolean {\n return (\n event.target === event.currentTarget && event.propertyName === \"height\"\n );\n}\n\nfunction Panel({\n className,\n onTransitionRun,\n onTransitionEnd,\n onTransitionCancel,\n ...props\n}: StyledProps<typeof BaseCollapsible.Panel>) {\n // Clip only while the height transitions. Base UI hands an open panel\n // `height: auto`, so a permanent clip would end flush with the last child\n // and cut a button's rim or focus ring at rest; the starting/ending frames\n // still clip through the data attributes below.\n return (\n <BaseCollapsible.Panel\n className={cn(\n \"h-[var(--collapsible-panel-height)] transition-[height] duration-150 ease-out\",\n \"data-[ending-style]:h-0 data-[ending-style]:overflow-hidden data-[starting-style]:h-0 data-[starting-style]:overflow-hidden\",\n className,\n )}\n onTransitionRun={(event) => {\n if (isPanelHeight(event)) event.currentTarget.style.overflow = \"hidden\";\n onTransitionRun?.(event);\n }}\n onTransitionEnd={(event) => {\n if (isPanelHeight(event)) event.currentTarget.style.overflow = \"\";\n onTransitionEnd?.(event);\n }}\n onTransitionCancel={(event) => {\n if (isPanelHeight(event)) event.currentTarget.style.overflow = \"\";\n onTransitionCancel?.(event);\n }}\n {...props}\n />\n );\n}\n\n/**\n * Show/hide a region of content, built on Base UI `Collapsible` with a smooth\n * height animation. Control with `open` / `onOpenChange` or leave uncontrolled\n * via `defaultOpen`. For several sections where one expands at a time, use\n * `Accordion`.\n */\nexport const Collapsible = { Root, Trigger, Panel };\n"],"mappings":";;;;;AAgBA,IAAMK,IAAOL,EAAgB;AAE7B,SAASM,EAAQ,EACf,WAAAC,GACA,GAAGC,EAAA,GAC2C;AAC9C,SACE,gBAAAL,EAACH,EAAgB,SAAjB;AAAA,IACE,WAAWE,EACT,wOACA,yGACAK,CACF;AAAA,IACA,GAAIC;AAAA,EACL,CAAA;AAEL;AAGA,SAASC,EAAcC,GAAiD;AACtE,SACEA,EAAM,WAAWA,EAAM,iBAAiBA,EAAM,iBAAiB;AAEnE;AAEA,SAASC,EAAM,EACb,WAAAJ,GACA,iBAAAK,GACA,iBAAAC,GACA,oBAAAC,GACA,GAAGN,EAAA,GACyC;AAK5C,SACE,gBAAAL,EAACH,EAAgB,OAAjB;AAAA,IACE,WAAWE,EACT,iFACA,+HACAK,CACF;AAAA,IACA,iBAAA,CAAkBG,MAAU;AAC1B,MAAID,EAAcC,CAAK,MAAGA,EAAM,cAAc,MAAM,WAAW,WAC/DE,IAAkBF,CAAK;AAAA,IACzB;AAAA,IACA,iBAAA,CAAkBA,MAAU;AAC1B,MAAID,EAAcC,CAAK,MAAGA,EAAM,cAAc,MAAM,WAAW,KAC/DG,IAAkBH,CAAK;AAAA,IACzB;AAAA,IACA,oBAAA,CAAqBA,MAAU;AAC7B,MAAID,EAAcC,CAAK,MAAGA,EAAM,cAAc,MAAM,WAAW,KAC/DI,IAAqBJ,CAAK;AAAA,IAC5B;AAAA,IACA,GAAIF;AAAA,EACL,CAAA;AAEL;AAQA,IAAaP,IAAc;AAAA,EAAE,MAAAI;AAAA,EAAM,SAAAC;AAAA,EAAS,OAAAK;AAAM"}