@ngrok/mantle 0.90.4 → 0.91.1

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 (183) hide show
  1. package/dist/accordion.d.ts +3 -5
  2. package/dist/agent.json +7 -7
  3. package/dist/{alert-CTAmHdLa.d.ts → alert-BV0VWU2o.d.ts} +5 -7
  4. package/dist/{alert-xJELJxL4.js → alert-QXHRO9ji.js} +1 -1
  5. package/dist/alert-center.d.ts +2 -4
  6. package/dist/alert-center.js +1 -1
  7. package/dist/alert-dialog.d.ts +5 -7
  8. package/dist/alert-dialog.js +1 -1
  9. package/dist/alert.d.ts +1 -1
  10. package/dist/alert.js +1 -1
  11. package/dist/anchor.d.ts +2 -6
  12. package/dist/app-layout.d.ts +9 -27
  13. package/dist/app-layout.js +1 -1
  14. package/dist/area-chart.d.ts +2 -4
  15. package/dist/area-chart.js +1 -1
  16. package/dist/{as-child-D23mGo4f.d.ts → as-child-DFxX3U2i.d.ts} +0 -2
  17. package/dist/avatar.d.ts +2 -4
  18. package/dist/badge.d.ts +3 -5
  19. package/dist/bar-chart.d.ts +2 -4
  20. package/dist/bar-chart.js +1 -1
  21. package/dist/breadcrumb.d.ts +2 -6
  22. package/dist/breadcrumb.js +1 -1
  23. package/dist/browser-only.d.ts +0 -2
  24. package/dist/{button-BZT5f79d.d.ts → button-BFAvonp1.d.ts} +3 -7
  25. package/dist/{button-mzUR1U0Y.d.ts → button-BOCRKR5v.d.ts} +3 -7
  26. package/dist/button-CZ-q7fYv.js +1 -0
  27. package/dist/button-Cwrv2Mwv.js +1 -0
  28. package/dist/{button-BRjAW1ec.d.ts → button-Dt9LZMT5.d.ts} +5 -7
  29. package/dist/{button-BCoI4bhP.d.ts → button-L4exxu_L.d.ts} +0 -2
  30. package/dist/button.d.ts +4 -4
  31. package/dist/button.js +1 -1
  32. package/dist/calendar.d.ts +1 -3
  33. package/dist/card.d.ts +3 -5
  34. package/dist/centered-layout.d.ts +9 -32
  35. package/dist/chart-D2LtDZtV.js +2 -0
  36. package/dist/{chart-23KQ1ZNO.d.ts → chart-ynMysD16.d.ts} +40 -15
  37. package/dist/checkbox.d.ts +2 -4
  38. package/dist/{choice-BCiyqLgO.d.ts → choice-BLR0_MeB.d.ts} +3 -5
  39. package/dist/choice.d.ts +1 -1
  40. package/dist/{code-block-D5eDP379.d.ts → code-block-Bqw9VyK_.d.ts} +0 -22
  41. package/dist/code-block.d.ts +4 -12
  42. package/dist/code-block.js +6 -6
  43. package/dist/code-block_highlight-utils.d.ts +1 -1
  44. package/dist/code.d.ts +2 -4
  45. package/dist/color.d.ts +1 -1
  46. package/dist/combobox.d.ts +4 -6
  47. package/dist/combobox.js +1 -1
  48. package/dist/command.d.ts +3 -13
  49. package/dist/command.js +1 -1
  50. package/dist/cx.d.ts +0 -6
  51. package/dist/{data-slot-CChfb_cv.d.ts → data-slot-B-LqAcBB.d.ts} +0 -2
  52. package/dist/data-table.d.ts +5 -9
  53. package/dist/data-table.js +1 -1
  54. package/dist/description-list.d.ts +3 -5
  55. package/dist/{dialog-CgwSNHs1.d.ts → dialog-DedsCsnk.d.ts} +3 -5
  56. package/dist/{dialog-CZYD3xL-.d.ts → dialog-Dp0QGWwo.d.ts} +0 -2
  57. package/dist/dialog-eL61O8eg.js +1 -0
  58. package/dist/dialog.d.ts +2 -2
  59. package/dist/dialog.js +1 -1
  60. package/dist/{direction-BjU0bPST.d.ts → direction-CpRzTtZh.d.ts} +0 -2
  61. package/dist/{dropdown-menu-Cef0Cz2B.d.ts → dropdown-menu-ByQQIsQE.d.ts} +2 -4
  62. package/dist/dropdown-menu-C4C1x-7W.js +1 -0
  63. package/dist/dropdown-menu.d.ts +1 -2
  64. package/dist/dropdown-menu.js +1 -1
  65. package/dist/empty.d.ts +3 -5
  66. package/dist/{field-7QeiTFwl.d.ts → field-V_gnkcmN.d.ts} +0 -2
  67. package/dist/field.d.ts +7 -15
  68. package/dist/field.js +1 -1
  69. package/dist/flag.d.ts +1 -5
  70. package/dist/hooks.d.ts +1 -37
  71. package/dist/hover-card.d.ts +1 -3
  72. package/dist/hover-card.js +1 -1
  73. package/dist/{icon-ucVgZeXn.d.ts → icon-ByLVhdYq.d.ts} +2 -4
  74. package/dist/{icon-D1RY5Tcj.d.ts → icon-CgNqu-fl.d.ts} +0 -2
  75. package/dist/{icon-r2NvfTWW.d.ts → icon-DXDyhy2N.d.ts} +2 -4
  76. package/dist/icon.d.ts +3 -3
  77. package/dist/icons-exKDODyp.js +1 -0
  78. package/dist/icons.d.ts +3 -17
  79. package/dist/icons.js +1 -1
  80. package/dist/{in-view-Ch5vJtWo.d.ts → in-view-B3nMAzfE.d.ts} +0 -6
  81. package/dist/{index-DorCusfG.d.ts → index-BZhHLrBi.d.ts} +0 -2
  82. package/dist/{index-DA4ig3gj.d.ts → index-C6s5cGCr.d.ts} +2 -10
  83. package/dist/{input-eEKzP3cE.js → input-CpQ6jlpI.js} +1 -1
  84. package/dist/{input-bbB1tC0h.d.ts → input-Dx5owTCc.d.ts} +2 -6
  85. package/dist/input.d.ts +3 -7
  86. package/dist/input.js +1 -1
  87. package/dist/kbd.d.ts +1 -3
  88. package/dist/{label-C-KbNls8.d.ts → label-Dn5CPJUj.d.ts} +1 -3
  89. package/dist/label.d.ts +1 -1
  90. package/dist/layer-container.d.ts +0 -2
  91. package/dist/line-chart.d.ts +2 -4
  92. package/dist/line-chart.js +1 -1
  93. package/dist/list.d.ts +2 -8
  94. package/dist/live-region.d.ts +2 -4
  95. package/dist/llms.txt +4 -4
  96. package/dist/main.d.ts +1 -3
  97. package/dist/mantle-dark.css +2 -12
  98. package/dist/mantle.css +86 -13
  99. package/dist/media-object.d.ts +2 -4
  100. package/dist/migrations/0011-eliminate-high-contrast.yml +869 -0
  101. package/dist/multi-select.d.ts +4 -6
  102. package/dist/multi-select.js +1 -1
  103. package/dist/otp-input.d.ts +3 -5
  104. package/dist/pagination.d.ts +3 -7
  105. package/dist/pagination.js +1 -1
  106. package/dist/{popover-Dvls7-j4.d.ts → popover-BfB2I9G0.d.ts} +1 -3
  107. package/dist/{popover-oQDUvcZ2.js → popover-q2-rCY1q.js} +1 -1
  108. package/dist/popover.d.ts +1 -1
  109. package/dist/popover.js +1 -1
  110. package/dist/progress.d.ts +1 -7
  111. package/dist/progress.js +1 -1
  112. package/dist/qr-code.d.ts +2 -4
  113. package/dist/radio-group.d.ts +2 -4
  114. package/dist/radio-group.js +1 -1
  115. package/dist/sandbar.d.ts +5 -8
  116. package/dist/sandbar.js +1 -1
  117. package/dist/sandboxed-on-click.d.ts +1 -3
  118. package/dist/scatter-plot.d.ts +2 -4
  119. package/dist/scatter-plot.js +1 -1
  120. package/dist/select-BdF_CnfJ.js +1 -0
  121. package/dist/{select-DlohFa54.d.ts → select-CRp_ndSJ.d.ts} +3 -5
  122. package/dist/select.d.ts +1 -1
  123. package/dist/select.js +1 -1
  124. package/dist/selectable-list.d.ts +3 -5
  125. package/dist/selectable-list.js +1 -1
  126. package/dist/{separator-BWGjCIl7.d.ts → separator-DNovVsrx.d.ts} +3 -5
  127. package/dist/separator.d.ts +1 -1
  128. package/dist/shake-u3qyeThI.js +1 -0
  129. package/dist/sheet-BIyuxMmF.js +1 -0
  130. package/dist/sheet.d.ts +3 -5
  131. package/dist/sheet.js +1 -1
  132. package/dist/sidebar.d.ts +5 -9
  133. package/dist/sidebar.js +1 -1
  134. package/dist/{skeleton-zfqoDAxT.js → skeleton-DBpI-ko5.js} +1 -1
  135. package/dist/skeleton.d.ts +2 -4
  136. package/dist/skeleton.js +1 -1
  137. package/dist/skip-to-main-link.d.ts +1 -3
  138. package/dist/slider.d.ts +1 -3
  139. package/dist/{slot-Q996Hqk9.d.ts → slot-C0OCJjdJ.d.ts} +2 -4
  140. package/dist/slot.d.ts +1 -1
  141. package/dist/split-button.d.ts +5 -7
  142. package/dist/split-button.js +1 -1
  143. package/dist/strata.d.ts +2 -4
  144. package/dist/switch.d.ts +2 -4
  145. package/dist/switch.js +1 -1
  146. package/dist/{table-BhzITa19.d.ts → table-vT6Okwfa.d.ts} +1 -3
  147. package/dist/table.d.ts +1 -1
  148. package/dist/tabs.d.ts +3 -5
  149. package/dist/text-area.d.ts +2 -4
  150. package/dist/text-area.js +1 -1
  151. package/dist/theme-CBGxDNFc.js +1 -0
  152. package/dist/theme-switcher.d.ts +67 -213
  153. package/dist/theme-switcher.js +1 -1
  154. package/dist/{theme-6OxNhf6l.d.ts → theme-w1CrMM-x.d.ts} +3 -5
  155. package/dist/theme.d.ts +78 -177
  156. package/dist/theme.js +1 -1
  157. package/dist/toast.d.ts +4 -6
  158. package/dist/toast.js +1 -1
  159. package/dist/tooltip-BwMlCD6k.js +1 -0
  160. package/dist/{tooltip-CngH7Kl6.d.ts → tooltip-NcLIeBy5.d.ts} +1 -3
  161. package/dist/tooltip.d.ts +1 -1
  162. package/dist/tooltip.js +1 -1
  163. package/dist/truncated-text.d.ts +2 -4
  164. package/dist/truncated-text.js +1 -1
  165. package/dist/types.d.ts +3 -3
  166. package/dist/utils.d.ts +2 -4
  167. package/dist/visually-hidden.d.ts +2 -4
  168. package/dist/well.d.ts +3 -5
  169. package/dist/{with-style-props-Dq5Vntqy.d.ts → with-style-props-CuT30s0W.d.ts} +0 -2
  170. package/package.json +2 -10
  171. package/dist/button-Bkl_QYpp.js +0 -1
  172. package/dist/button-b2HKEIE2.js +0 -1
  173. package/dist/chart-BfJ835dr.js +0 -2
  174. package/dist/dialog-C9QGvVNG.js +0 -1
  175. package/dist/dropdown-menu-DMA8dGxZ.d.ts +0 -1
  176. package/dist/dropdown-menu-j4RbBbGa.js +0 -1
  177. package/dist/icons-CW9lV9E1.js +0 -1
  178. package/dist/mantle-dark-high-contrast.css +0 -354
  179. package/dist/mantle-light-high-contrast.css +0 -353
  180. package/dist/select-Os5GVejP.js +0 -1
  181. package/dist/sheet-CAFS09pT.js +0 -1
  182. package/dist/theme-Dzem-qRB.js +0 -1
  183. package/dist/tooltip-NhYXqStK.js +0 -1
package/dist/badge.d.ts CHANGED
@@ -1,8 +1,7 @@
1
- import { n as WithAsChild } from "./as-child-D23mGo4f.js";
2
- import { t as WithDataSlot } from "./data-slot-CChfb_cv.js";
3
- import { t as Color } from "./index-DorCusfG.js";
1
+ import { n as WithAsChild } from "./as-child-DFxX3U2i.js";
2
+ import { t as WithDataSlot } from "./data-slot-B-LqAcBB.js";
3
+ import { t as Color } from "./index-BZhHLrBi.js";
4
4
  import { ComponentProps, ReactNode } from "react";
5
- //#region src/components/badge/badge.d.ts
6
5
  declare const appearances: readonly ["muted"];
7
6
  type Appearance = (typeof appearances)[number];
8
7
  type BadgeProps = ComponentProps<"span"> & WithAsChild & {
@@ -76,5 +75,4 @@ type BadgeProps = ComponentProps<"span"> & WithAsChild & {
76
75
  * ```
77
76
  */
78
77
  declare const Badge: ({ "data-slot": dataSlot, appearance, asChild, children, className, color, icon, ...props }: BadgeProps) => import("react").JSX.Element;
79
- //#endregion
80
78
  export { Badge, type BadgeProps };
@@ -1,5 +1,4 @@
1
- import { a as GridPrimitiveProps, c as TooltipPrimitiveProps, d as BarOrientation, f as BarTexture, h as ChartSeriesSlot, i as CopyButtonPrimitiveProps, l as XAxisPrimitiveProps, m as ChartDatumEvent, n as ChartMode, o as LegendPrimitiveProps, p as ChartDatum, r as ChartRootBaseProps, s as ReferenceLinePrimitiveProps, t as ChartAccessibilityProps, u as YAxisPrimitiveProps, y as SeriesColor } from "./chart-23KQ1ZNO.js";
2
- //#region src/components/bar-chart/bar-chart.d.ts
1
+ import { a as GridPrimitiveProps, c as TooltipPrimitiveProps, d as BarOrientation, f as BarTexture, h as ChartSeriesSlot, i as CopyButtonPrimitiveProps, l as XAxisPrimitiveProps, m as ChartDatumEvent, n as ChartMode, o as LegendPrimitiveProps, p as ChartDatum, r as ChartRootBaseProps, s as ReferenceLinePrimitiveProps, t as ChartAccessibilityProps, u as YAxisPrimitiveProps, y as SeriesColor } from "./chart-ynMysD16.js";
3
2
  /**
4
3
  * Props for {@link BarChart.Root}. Bars encode value by length from a shared
5
4
  * zero baseline, so the y domain minimum is fixed at `0` — a truncated-bar
@@ -50,7 +49,7 @@ type BarChartBarProps = {
50
49
  * not change the series slot. When omitted, the series paints the color from
51
50
  * its slot.
52
51
  *
53
- * A static color (raw hex) cannot follow the four themes, so prefer a
52
+ * A static color (raw hex) cannot follow the two themes, so prefer a
54
53
  * `var(--your-token)` declared per theme. A series that carries good/bad
55
54
  * meaning should wear the semantic status colors, never a categorical slot.
56
55
  */
@@ -595,5 +594,4 @@ declare const BarChart: {
595
594
  */
596
595
  readonly CopyButton: typeof CopyButton;
597
596
  };
598
- //#endregion
599
597
  export { BarChart, type BarChartBarProps, type BarChartCopyButtonProps, type BarChartGridProps, type BarChartLegendProps, type BarChartReferenceLineProps, type BarChartRootProps, type BarChartTooltipProps, type BarChartXAxisProps, type BarChartYAxisProps, type ChartDatumEvent, type ChartMode };
package/dist/bar-chart.js CHANGED
@@ -1 +1 @@
1
- import{a as e,c as t,i as n,l as r,n as i,o as a,r as o,s,t as c}from"./chart-BfJ835dr.js";import{c as l}from"react/compiler-runtime";import{jsx as u}from"react/jsx-runtime";const d={Root:e=>{let t=l(2),n;return t[0]===e?n=t[1]:(n=/* @__PURE__ */ u(o,{kind:`bar`,componentName:`BarChart`,slotName:`bar-chart`,...e}),t[0]=e,t[1]=n),n},Bar:e=>a(`BarChart.Bar`,`bar`,e),Grid:e=>n(`BarChart.Grid`,e),XAxis:e=>t(`BarChart.XAxis`,e),YAxis:e=>r(`BarChart.YAxis`,e),ReferenceLine:t=>e(`BarChart.ReferenceLine`,t),Tooltip:e=>s(`BarChart.Tooltip`,e),Legend:e=>{let t=l(2),n;return t[0]===e?n=t[1]:(n=/* @__PURE__ */ u(i,{partName:`BarChart.Legend`,slotName:`bar-chart`,...e}),t[0]=e,t[1]=n),n},CopyButton:e=>{let t=l(2),n;return t[0]===e?n=t[1]:(n=/* @__PURE__ */ u(c,{partName:`BarChart.CopyButton`,slotName:`bar-chart`,...e}),t[0]=e,t[1]=n),n}};export{d as BarChart};
1
+ import{a as e,c as t,i as n,l as r,n as i,o as a,r as o,s,t as c}from"./chart-D2LtDZtV.js";import{c as l}from"react/compiler-runtime";import{jsx as u}from"react/jsx-runtime";const d={Root:e=>{let t=l(2),n;return t[0]===e?n=t[1]:(n=/* @__PURE__ */ u(o,{kind:`bar`,componentName:`BarChart`,slotName:`bar-chart`,...e}),t[0]=e,t[1]=n),n},Bar:e=>a(`BarChart.Bar`,`bar`,e),Grid:e=>n(`BarChart.Grid`,e),XAxis:e=>t(`BarChart.XAxis`,e),YAxis:e=>r(`BarChart.YAxis`,e),ReferenceLine:t=>e(`BarChart.ReferenceLine`,t),Tooltip:e=>s(`BarChart.Tooltip`,e),Legend:e=>{let t=l(2),n;return t[0]===e?n=t[1]:(n=/* @__PURE__ */ u(i,{partName:`BarChart.Legend`,slotName:`bar-chart`,...e}),t[0]=e,t[1]=n),n},CopyButton:e=>{let t=l(2),n;return t[0]===e?n=t[1]:(n=/* @__PURE__ */ u(c,{partName:`BarChart.CopyButton`,slotName:`bar-chart`,...e}),t[0]=e,t[1]=n),n}};export{d as BarChart};
@@ -1,7 +1,6 @@
1
- import { n as WithAsChild } from "./as-child-D23mGo4f.js";
2
- import { t as WithDataSlot } from "./data-slot-CChfb_cv.js";
1
+ import { n as WithAsChild } from "./as-child-DFxX3U2i.js";
2
+ import { t as WithDataSlot } from "./data-slot-B-LqAcBB.js";
3
3
  import { ComponentProps, ReactNode } from "react";
4
- //#region src/components/breadcrumb/breadcrumb.d.ts
5
4
  /**
6
5
  * The breadcrumb landmark. Renders a `<nav>` with a default
7
6
  * `aria-label="Breadcrumb"` per the WAI-ARIA breadcrumb pattern — pass your
@@ -536,8 +535,6 @@ declare const Breadcrumb: {
536
535
  */
537
536
  readonly Skeleton: typeof BreadcrumbSkeleton;
538
537
  };
539
- //#endregion
540
- //#region src/components/breadcrumb/route-breadcrumb.d.ts
541
538
  /**
542
539
  * One crumb a route contributes — a discriminated union on `kind`. Create
543
540
  * these with {@link routeBreadcrumb}; the factory stamps the discriminant, so
@@ -760,5 +757,4 @@ declare function hasBreadcrumb<TMatch extends BreadcrumbMatch>(match: TMatch): m
760
757
  * ```
761
758
  */
762
759
  declare function buildCrumbs<TMatch extends BreadcrumbMatch>(matches: ReadonlyArray<TMatch>): ReadonlyArray<ResolvedCrumb>;
763
- //#endregion
764
760
  export { Breadcrumb, type BreadcrumbHandle, type BreadcrumbMatch, type Crumb, type ResolvedCrumb, type RouteBreadcrumb, buildCrumbs, hasBreadcrumb, routeBreadcrumb };
@@ -1 +1 @@
1
- import{t as e}from"./use-isomorphic-layout-effect-DdTRtMY-.js";import{n as t}from"./compose-refs-sFdxsL7k.js";import{t as n}from"./cx-CK7o_rVv.js";import{t as r}from"./data-slot-EM6s2WEU.js";import{t as i}from"./icon-kK0c-POG.js";import{t as a}from"./slot-DdYN1L1C.js";import{t as o}from"./skeleton-zfqoDAxT.js";import{c as s}from"react/compiler-runtime";import{cloneElement as c,isValidElement as l,useEffect as u,useRef as d}from"react";import{jsx as f}from"react/jsx-runtime";import{CaretRightIcon as p}from"@phosphor-icons/react/CaretRight";const m=e=>{let t=s(18),i,o,c,l,u,d;t[0]===e?(i=t[1],o=t[2],c=t[3],l=t[4],u=t[5],d=t[6]):({asChild:i,children:o,className:c,"data-slot":l,ref:d,...u}=e,t[0]=e,t[1]=i,t[2]=o,t[3]=c,t[4]=l,t[5]=u,t[6]=d);let p=i?a:`nav`,m;t[7]===l?m=t[8]:(m=r(l,`breadcrumb`),t[7]=l,t[8]=m);let h;t[9]===c?h=t[10]:(h=n(`min-w-0`,c),t[9]=c,t[10]=h);let g;return t[11]!==p||t[12]!==o||t[13]!==u||t[14]!==d||t[15]!==m||t[16]!==h?(g=/* @__PURE__ */ f(p,{ref:d,"data-slot":m,"aria-label":`Breadcrumb`,className:h,...u,children:o}),t[11]=p,t[12]=o,t[13]=u,t[14]=d,t[15]=m,t[16]=h,t[17]=g):g=t[17],g};function h(e,t){let n=e.scrollWidth-e.clientWidth;return n===t||e.contains(document.activeElement)?t:(e.scrollLeft=n,n)}const g={Root:m,List:i=>{let o=s(21),c,l,p,m,g,_;o[0]===i?(c=o[1],l=o[2],p=o[3],m=o[4],g=o[5],_=o[6]):({asChild:c,children:l,className:p,"data-slot":m,ref:_,...g}=i,o[0]=i,o[1]=c,o[2]=l,o[3]=p,o[4]=m,o[5]=g,o[6]=_);let v=c?a:`ol`,y=d(null),b=t(y,_),x=d(void 0),S;o[7]===Symbol.for(`react.memo_cache_sentinel`)?(S=()=>{let e=y.current;e!=null&&(x.current=h(e,x.current))},o[7]=S):S=o[7],e(S);let C,w;o[8]===Symbol.for(`react.memo_cache_sentinel`)?(C=()=>{let e=y.current;if(e==null)return;let t=new ResizeObserver(()=>{x.current=h(e,x.current)});return t.observe(e),()=>{t.disconnect()}},w=[],o[8]=C,o[9]=w):(C=o[8],w=o[9]),u(C,w);let T;o[10]===m?T=o[11]:(T=r(m,`breadcrumb-list`),o[10]=m,o[11]=T);let E;o[12]===p?E=o[13]:(E=n(`text-muted flex items-center gap-1.5 text-sm`,`scroll-fade-x min-w-0 overflow-x-auto overscroll-x-none`,`-m-1 p-1`,`scroll-px-10`,p),o[12]=p,o[13]=E);let D;return o[14]!==v||o[15]!==l||o[16]!==b||o[17]!==g||o[18]!==T||o[19]!==E?(D=/* @__PURE__ */ f(v,{ref:b,"data-slot":T,className:E,...g,children:l}),o[14]=v,o[15]=l,o[16]=b,o[17]=g,o[18]=T,o[19]=E,o[20]=D):D=o[20],D},Item:e=>{let t=s(18),i,o,c,l,u,d;t[0]===e?(i=t[1],o=t[2],c=t[3],l=t[4],u=t[5],d=t[6]):({asChild:i,children:o,className:c,"data-slot":l,ref:d,...u}=e,t[0]=e,t[1]=i,t[2]=o,t[3]=c,t[4]=l,t[5]=u,t[6]=d);let p=i?a:`li`,m;t[7]===l?m=t[8]:(m=r(l,`breadcrumb-item`),t[7]=l,t[8]=m);let h;t[9]===c?h=t[10]:(h=n(`inline-flex shrink-0 items-center gap-1.5`,c),t[9]=c,t[10]=h);let g;return t[11]!==p||t[12]!==o||t[13]!==u||t[14]!==d||t[15]!==m||t[16]!==h?(g=/* @__PURE__ */ f(p,{ref:d,"data-slot":m,className:h,...u,children:o}),t[11]=p,t[12]=o,t[13]=u,t[14]=d,t[15]=m,t[16]=h,t[17]=g):g=t[17],g},Link:e=>{let t=s(18),i,o,c,l,u,d;t[0]===e?(i=t[1],o=t[2],c=t[3],l=t[4],u=t[5],d=t[6]):({asChild:i,children:o,className:c,"data-slot":l,ref:d,...u}=e,t[0]=e,t[1]=i,t[2]=o,t[3]=c,t[4]=l,t[5]=u,t[6]=d);let p=i?a:`a`,m;t[7]===l?m=t[8]:(m=r(l,`breadcrumb-link`),t[7]=l,t[8]=m);let h;t[9]===c?h=t[10]:(h=n(`hover:text-strong transition-colors`,c),t[9]=c,t[10]=h);let g;return t[11]!==p||t[12]!==o||t[13]!==u||t[14]!==d||t[15]!==m||t[16]!==h?(g=/* @__PURE__ */ f(p,{ref:d,"data-slot":m,className:h,...u,children:o}),t[11]=p,t[12]=o,t[13]=u,t[14]=d,t[15]=m,t[16]=h,t[17]=g):g=t[17],g},Label:e=>{let t=s(18),i,o,c,l,u,d;t[0]===e?(i=t[1],o=t[2],c=t[3],l=t[4],u=t[5],d=t[6]):({asChild:i,children:o,className:c,"data-slot":l,ref:d,...u}=e,t[0]=e,t[1]=i,t[2]=o,t[3]=c,t[4]=l,t[5]=u,t[6]=d);let p=i?a:`span`,m;t[7]===l?m=t[8]:(m=r(l,`breadcrumb-label`),t[7]=l,t[8]=m);let h;t[9]===c?h=t[10]:(h=n(`text-muted`,c),t[9]=c,t[10]=h);let g;return t[11]!==p||t[12]!==o||t[13]!==u||t[14]!==d||t[15]!==m||t[16]!==h?(g=/* @__PURE__ */ f(p,{ref:d,"data-slot":m,className:h,...u,children:o}),t[11]=p,t[12]=o,t[13]=u,t[14]=d,t[15]=m,t[16]=h,t[17]=g):g=t[17],g},Page:e=>{let t=s(21),i,o,u,d,p,m;t[0]===e?(i=t[1],o=t[2],u=t[3],d=t[4],p=t[5],m=t[6]):({asChild:i,children:o,className:u,"data-slot":d,ref:m,...p}=e,t[0]=e,t[1]=i,t[2]=o,t[3]=u,t[4]=d,t[5]=p,t[6]=m);let h=i?a:`span`,g;t[7]!==i||t[8]!==o?(g=i&&l(o)?c(o,{"aria-current":`page`}):o,t[7]=i,t[8]=o,t[9]=g):g=t[9];let _=g,v;t[10]===d?v=t[11]:(v=r(d,`breadcrumb-page`),t[10]=d,t[11]=v);let y;t[12]===u?y=t[13]:(y=n(`text-muted`,u),t[12]=u,t[13]=y);let b;return t[14]!==h||t[15]!==_||t[16]!==p||t[17]!==m||t[18]!==v||t[19]!==y?(b=/* @__PURE__ */ f(h,{ref:m,"data-slot":v,className:y,...p,"aria-current":`page`,children:_}),t[14]=h,t[15]=_,t[16]=p,t[17]=m,t[18]=v,t[19]=y,t[20]=b):b=t[20],b},Separator:e=>{let t=s(21),o,u,d,m,h,g;t[0]===e?(o=t[1],u=t[2],d=t[3],m=t[4],h=t[5],g=t[6]):({asChild:o,children:u,className:d,"data-slot":m,ref:g,...h}=e,t[0]=e,t[1]=o,t[2]=u,t[3]=d,t[4]=m,t[5]=h,t[6]=g);let _=o?a:`li`,v;t[7]!==o||t[8]!==u?(v=o&&l(u)?c(u,{role:`presentation`,"aria-hidden":`true`}):u??/* @__PURE__ */ f(i,{svg:/* @__PURE__ */ f(p,{}),className:`size-3.5`}),t[7]=o,t[8]=u,t[9]=v):v=t[9];let y=v,b;t[10]===m?b=t[11]:(b=r(m,`breadcrumb-separator`),t[10]=m,t[11]=b);let x;t[12]===d?x=t[13]:(x=n(`shrink-0`,d),t[12]=d,t[13]=x);let S;return t[14]!==_||t[15]!==y||t[16]!==h||t[17]!==g||t[18]!==b||t[19]!==x?(S=/* @__PURE__ */ f(_,{ref:g,"data-slot":b,className:x,...h,role:`presentation`,"aria-hidden":`true`,children:y}),t[14]=_,t[15]=y,t[16]=h,t[17]=g,t[18]=b,t[19]=x,t[20]=S):S=t[20],S},Skeleton:e=>{let t=s(18),i,a,c,l,u;t[0]===e?(i=t[1],a=t[2],c=t[3],l=t[4],u=t[5]):({className:i,"data-slot":a,label:u,ref:l,...c}=e,t[0]=e,t[1]=i,t[2]=a,t[3]=c,t[4]=l,t[5]=u);let d=u===void 0?`Loading breadcrumbs…`:u,p;t[6]===a?p=t[7]:(p=r(a,`breadcrumb-skeleton`),t[6]=a,t[7]=p);let m;t[8]===i?m=t[9]:(m=n(`w-24 shrink-0`,i),t[8]=i,t[9]=m);let h;t[10]===d?h=t[11]:(h=/* @__PURE__ */ f(`span`,{role:`status`,className:`sr-only`,children:d}),t[10]=d,t[11]=h);let g;return t[12]!==c||t[13]!==l||t[14]!==p||t[15]!==m||t[16]!==h?(g=/* @__PURE__ */ f(o,{asChild:!0,"aria-hidden":!1,children:/* @__PURE__ */ f(`li`,{ref:l,"data-slot":p,className:m,...c,children:h})}),t[12]=c,t[13]=l,t[14]=p,t[15]=m,t[16]=h,t[17]=g):g=t[17],g}},_=Object.assign((e,t={})=>({kind:`link`,label:e,...t}),{label:e=>({kind:`label`,label:e}),content:e=>({kind:`content`,content:e})});function v(e){let{handle:t}=e;if(typeof t!=`object`||!t||!(`breadcrumb`in t))return!1;let{breadcrumb:n}=t;return typeof n==`string`||typeof n==`function`}function y(e){return e.filter(v).flatMap(e=>{let{breadcrumb:t}=e.handle;return(typeof t==`string`?[_(t)]:t(e)).map((t,n)=>{let r=`${e.id}:${n}`;return t.kind===`content`?{kind:`content`,key:r,content:t.content}:t.kind===`label`?{kind:`label`,key:r,label:t.label}:{kind:`link`,key:r,label:t.label,to:t.to??e.pathname}})})}export{g as Breadcrumb,y as buildCrumbs,v as hasBreadcrumb,_ as routeBreadcrumb};
1
+ import{t as e}from"./use-isomorphic-layout-effect-DdTRtMY-.js";import{n as t}from"./compose-refs-sFdxsL7k.js";import{t as n}from"./cx-CK7o_rVv.js";import{t as r}from"./data-slot-EM6s2WEU.js";import{t as i}from"./icon-kK0c-POG.js";import{t as a}from"./slot-DdYN1L1C.js";import{t as o}from"./skeleton-DBpI-ko5.js";import{c as s}from"react/compiler-runtime";import{cloneElement as c,isValidElement as l,useEffect as u,useRef as d}from"react";import{jsx as f}from"react/jsx-runtime";import{CaretRightIcon as p}from"@phosphor-icons/react/CaretRight";const m=e=>{let t=s(18),i,o,c,l,u,d;t[0]===e?(i=t[1],o=t[2],c=t[3],l=t[4],u=t[5],d=t[6]):({asChild:i,children:o,className:c,"data-slot":l,ref:d,...u}=e,t[0]=e,t[1]=i,t[2]=o,t[3]=c,t[4]=l,t[5]=u,t[6]=d);let p=i?a:`nav`,m;t[7]===l?m=t[8]:(m=r(l,`breadcrumb`),t[7]=l,t[8]=m);let h;t[9]===c?h=t[10]:(h=n(`min-w-0`,c),t[9]=c,t[10]=h);let g;return t[11]!==p||t[12]!==o||t[13]!==u||t[14]!==d||t[15]!==m||t[16]!==h?(g=/* @__PURE__ */ f(p,{ref:d,"data-slot":m,"aria-label":`Breadcrumb`,className:h,...u,children:o}),t[11]=p,t[12]=o,t[13]=u,t[14]=d,t[15]=m,t[16]=h,t[17]=g):g=t[17],g};function h(e,t){let n=e.scrollWidth-e.clientWidth;return n===t||e.contains(document.activeElement)?t:(e.scrollLeft=n,n)}const g={Root:m,List:i=>{let o=s(21),c,l,p,m,g,_;o[0]===i?(c=o[1],l=o[2],p=o[3],m=o[4],g=o[5],_=o[6]):({asChild:c,children:l,className:p,"data-slot":m,ref:_,...g}=i,o[0]=i,o[1]=c,o[2]=l,o[3]=p,o[4]=m,o[5]=g,o[6]=_);let v=c?a:`ol`,y=d(null),b=t(y,_),x=d(void 0),S;o[7]===Symbol.for(`react.memo_cache_sentinel`)?(S=()=>{let e=y.current;e!=null&&(x.current=h(e,x.current))},o[7]=S):S=o[7],e(S);let C,w;o[8]===Symbol.for(`react.memo_cache_sentinel`)?(C=()=>{let e=y.current;if(e==null)return;let t=new ResizeObserver(()=>{x.current=h(e,x.current)});return t.observe(e),()=>{t.disconnect()}},w=[],o[8]=C,o[9]=w):(C=o[8],w=o[9]),u(C,w);let T;o[10]===m?T=o[11]:(T=r(m,`breadcrumb-list`),o[10]=m,o[11]=T);let E;o[12]===p?E=o[13]:(E=n(`text-muted flex items-center gap-1.5 text-sm`,`scroll-fade-x min-w-0 overflow-x-auto overscroll-x-none`,`-m-1 p-1`,`scroll-px-10`,p),o[12]=p,o[13]=E);let D;return o[14]!==v||o[15]!==l||o[16]!==b||o[17]!==g||o[18]!==T||o[19]!==E?(D=/* @__PURE__ */ f(v,{ref:b,"data-slot":T,className:E,...g,children:l}),o[14]=v,o[15]=l,o[16]=b,o[17]=g,o[18]=T,o[19]=E,o[20]=D):D=o[20],D},Item:e=>{let t=s(18),i,o,c,l,u,d;t[0]===e?(i=t[1],o=t[2],c=t[3],l=t[4],u=t[5],d=t[6]):({asChild:i,children:o,className:c,"data-slot":l,ref:d,...u}=e,t[0]=e,t[1]=i,t[2]=o,t[3]=c,t[4]=l,t[5]=u,t[6]=d);let p=i?a:`li`,m;t[7]===l?m=t[8]:(m=r(l,`breadcrumb-item`),t[7]=l,t[8]=m);let h;t[9]===c?h=t[10]:(h=n(`inline-flex shrink-0 items-center gap-1.5`,c),t[9]=c,t[10]=h);let g;return t[11]!==p||t[12]!==o||t[13]!==u||t[14]!==d||t[15]!==m||t[16]!==h?(g=/* @__PURE__ */ f(p,{ref:d,"data-slot":m,className:h,...u,children:o}),t[11]=p,t[12]=o,t[13]=u,t[14]=d,t[15]=m,t[16]=h,t[17]=g):g=t[17],g},Link:e=>{let t=s(18),i,o,c,l,u,d;t[0]===e?(i=t[1],o=t[2],c=t[3],l=t[4],u=t[5],d=t[6]):({asChild:i,children:o,className:c,"data-slot":l,ref:d,...u}=e,t[0]=e,t[1]=i,t[2]=o,t[3]=c,t[4]=l,t[5]=u,t[6]=d);let p=i?a:`a`,m;t[7]===l?m=t[8]:(m=r(l,`breadcrumb-link`),t[7]=l,t[8]=m);let h;t[9]===c?h=t[10]:(h=n(`hover:text-strong transition-colors`,c),t[9]=c,t[10]=h);let g;return t[11]!==p||t[12]!==o||t[13]!==u||t[14]!==d||t[15]!==m||t[16]!==h?(g=/* @__PURE__ */ f(p,{ref:d,"data-slot":m,className:h,...u,children:o}),t[11]=p,t[12]=o,t[13]=u,t[14]=d,t[15]=m,t[16]=h,t[17]=g):g=t[17],g},Label:e=>{let t=s(18),i,o,c,l,u,d;t[0]===e?(i=t[1],o=t[2],c=t[3],l=t[4],u=t[5],d=t[6]):({asChild:i,children:o,className:c,"data-slot":l,ref:d,...u}=e,t[0]=e,t[1]=i,t[2]=o,t[3]=c,t[4]=l,t[5]=u,t[6]=d);let p=i?a:`span`,m;t[7]===l?m=t[8]:(m=r(l,`breadcrumb-label`),t[7]=l,t[8]=m);let h;t[9]===c?h=t[10]:(h=n(`text-muted`,c),t[9]=c,t[10]=h);let g;return t[11]!==p||t[12]!==o||t[13]!==u||t[14]!==d||t[15]!==m||t[16]!==h?(g=/* @__PURE__ */ f(p,{ref:d,"data-slot":m,className:h,...u,children:o}),t[11]=p,t[12]=o,t[13]=u,t[14]=d,t[15]=m,t[16]=h,t[17]=g):g=t[17],g},Page:e=>{let t=s(21),i,o,u,d,p,m;t[0]===e?(i=t[1],o=t[2],u=t[3],d=t[4],p=t[5],m=t[6]):({asChild:i,children:o,className:u,"data-slot":d,ref:m,...p}=e,t[0]=e,t[1]=i,t[2]=o,t[3]=u,t[4]=d,t[5]=p,t[6]=m);let h=i?a:`span`,g;t[7]!==i||t[8]!==o?(g=i&&l(o)?c(o,{"aria-current":`page`}):o,t[7]=i,t[8]=o,t[9]=g):g=t[9];let _=g,v;t[10]===d?v=t[11]:(v=r(d,`breadcrumb-page`),t[10]=d,t[11]=v);let y;t[12]===u?y=t[13]:(y=n(`text-muted`,u),t[12]=u,t[13]=y);let b;return t[14]!==h||t[15]!==_||t[16]!==p||t[17]!==m||t[18]!==v||t[19]!==y?(b=/* @__PURE__ */ f(h,{ref:m,"data-slot":v,className:y,...p,"aria-current":`page`,children:_}),t[14]=h,t[15]=_,t[16]=p,t[17]=m,t[18]=v,t[19]=y,t[20]=b):b=t[20],b},Separator:e=>{let t=s(21),o,u,d,m,h,g;t[0]===e?(o=t[1],u=t[2],d=t[3],m=t[4],h=t[5],g=t[6]):({asChild:o,children:u,className:d,"data-slot":m,ref:g,...h}=e,t[0]=e,t[1]=o,t[2]=u,t[3]=d,t[4]=m,t[5]=h,t[6]=g);let _=o?a:`li`,v;t[7]!==o||t[8]!==u?(v=o&&l(u)?c(u,{role:`presentation`,"aria-hidden":`true`}):u??/* @__PURE__ */ f(i,{svg:/* @__PURE__ */ f(p,{}),className:`size-3.5`}),t[7]=o,t[8]=u,t[9]=v):v=t[9];let y=v,b;t[10]===m?b=t[11]:(b=r(m,`breadcrumb-separator`),t[10]=m,t[11]=b);let x;t[12]===d?x=t[13]:(x=n(`shrink-0`,d),t[12]=d,t[13]=x);let S;return t[14]!==_||t[15]!==y||t[16]!==h||t[17]!==g||t[18]!==b||t[19]!==x?(S=/* @__PURE__ */ f(_,{ref:g,"data-slot":b,className:x,...h,role:`presentation`,"aria-hidden":`true`,children:y}),t[14]=_,t[15]=y,t[16]=h,t[17]=g,t[18]=b,t[19]=x,t[20]=S):S=t[20],S},Skeleton:e=>{let t=s(18),i,a,c,l,u;t[0]===e?(i=t[1],a=t[2],c=t[3],l=t[4],u=t[5]):({className:i,"data-slot":a,label:u,ref:l,...c}=e,t[0]=e,t[1]=i,t[2]=a,t[3]=c,t[4]=l,t[5]=u);let d=u===void 0?`Loading breadcrumbs…`:u,p;t[6]===a?p=t[7]:(p=r(a,`breadcrumb-skeleton`),t[6]=a,t[7]=p);let m;t[8]===i?m=t[9]:(m=n(`w-24 shrink-0`,i),t[8]=i,t[9]=m);let h;t[10]===d?h=t[11]:(h=/* @__PURE__ */ f(`span`,{role:`status`,className:`sr-only`,children:d}),t[10]=d,t[11]=h);let g;return t[12]!==c||t[13]!==l||t[14]!==p||t[15]!==m||t[16]!==h?(g=/* @__PURE__ */ f(o,{asChild:!0,"aria-hidden":!1,children:/* @__PURE__ */ f(`li`,{ref:l,"data-slot":p,className:m,...c,children:h})}),t[12]=c,t[13]=l,t[14]=p,t[15]=m,t[16]=h,t[17]=g):g=t[17],g}},_=Object.assign((e,t={})=>({kind:`link`,label:e,...t}),{label:e=>({kind:`label`,label:e}),content:e=>({kind:`content`,content:e})});function v(e){let{handle:t}=e;if(typeof t!=`object`||!t||!(`breadcrumb`in t))return!1;let{breadcrumb:n}=t;return typeof n==`string`||typeof n==`function`}function y(e){return e.filter(v).flatMap(e=>{let{breadcrumb:t}=e.handle;return(typeof t==`string`?[_(t)]:t(e)).map((t,n)=>{let r=`${e.id}:${n}`;return t.kind===`content`?{kind:`content`,key:r,content:t.content}:t.kind===`label`?{kind:`label`,key:r,label:t.label}:{kind:`link`,key:r,label:t.label,to:t.to??e.pathname}})})}export{g as Breadcrumb,y as buildCrumbs,v as hasBreadcrumb,_ as routeBreadcrumb};
@@ -1,5 +1,4 @@
1
1
  import { ReactNode } from "react";
2
- //#region src/components/browser-only/browser-only.d.ts
3
2
  type Props = {
4
3
  /**
5
4
  * Children must be a render function so that evaluation is deferred
@@ -55,5 +54,4 @@ declare function BrowserOnly({ children, fallback }: Props): ReactNode;
55
54
  * }
56
55
  */
57
56
  declare function canUseDOM(): boolean;
58
- //#endregion
59
57
  export { BrowserOnly, canUseDOM };
@@ -1,8 +1,7 @@
1
- import { n as WithAsChild } from "./as-child-D23mGo4f.js";
2
- import { t as WithDataSlot } from "./data-slot-CChfb_cv.js";
3
- import { r as VariantProps } from "./index-DA4ig3gj.js";
1
+ import { n as WithAsChild } from "./as-child-DFxX3U2i.js";
2
+ import { t as WithDataSlot } from "./data-slot-B-LqAcBB.js";
3
+ import { r as VariantProps } from "./index-C6s5cGCr.js";
4
4
  import { ComponentProps, ReactNode } from "react";
5
- //#region src/components/button/icon-button-variants.d.ts
6
5
  /**
7
6
  * The visual style of an `IconButton`: how much visual weight it carries.
8
7
  * The union matches `Button`'s without `link` — an icon-only link has no text
@@ -39,8 +38,6 @@ declare const iconButtonVariants: (props?: ({
39
38
  size?: "2xs" | "lg" | "md" | "sm" | "xl" | "xs" | null | undefined;
40
39
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
41
40
  type IconButtonVariants = VariantProps<typeof iconButtonVariants>;
42
- //#endregion
43
- //#region src/components/button/icon-button.d.ts
44
41
  /**
45
42
  * The props for the `IconButton` component.
46
43
  */
@@ -174,5 +171,4 @@ type IconButtonProps = Omit<ComponentProps<"button">, "aria-label"> & WithAsChil
174
171
  * ```
175
172
  */
176
173
  declare const IconButton: ({ "aria-disabled": _ariaDisabled, "data-slot": dataSlot, appearance, asChild, children, className, disabled: _disabled, icon: propIcon, intent, isLoading, label, ref, size, type, ...props }: IconButtonProps) => import("react").JSX.Element;
177
- //#endregion
178
174
  export { IconButtonIntent as i, IconButtonProps as n, IconButtonAppearance as r, IconButton as t };
@@ -1,8 +1,7 @@
1
- import { n as WithAsChild } from "./as-child-D23mGo4f.js";
2
- import { t as WithDataSlot } from "./data-slot-CChfb_cv.js";
3
- import { r as VariantProps } from "./index-DA4ig3gj.js";
1
+ import { n as WithAsChild } from "./as-child-DFxX3U2i.js";
2
+ import { t as WithDataSlot } from "./data-slot-B-LqAcBB.js";
3
+ import { r as VariantProps } from "./index-C6s5cGCr.js";
4
4
  import { ComponentProps, ReactNode } from "react";
5
- //#region src/components/button/intents.d.ts
6
5
  /**
7
6
  * The tone axis of the text-labelled button family (`Button` and
8
7
  * `SplitButton`) — the purpose a button's color communicates to the user:
@@ -30,8 +29,6 @@ import { ComponentProps, ReactNode } from "react";
30
29
  * ```
31
30
  */
32
31
  type ButtonIntent = "accent" | "danger" | "neutral";
33
- //#endregion
34
- //#region src/components/button/button.d.ts
35
32
  /**
36
33
  * The visual style of a `Button`: how much visual weight the button carries,
37
34
  * independent of its tone (`intent`).
@@ -181,5 +178,4 @@ type ButtonProps = ComponentProps<"button"> & Omit<ButtonVariants, "appearance"
181
178
  * ```
182
179
  */
183
180
  declare const Button: ({ "aria-disabled": _ariaDisabled, "data-slot": dataSlot, appearance, asChild, children, className, disabled: _disabled, icon: propIcon, iconPlacement, intent, isLoading, ref, size, type, ...props }: ButtonProps) => import("react").JSX.Element;
184
- //#endregion
185
181
  export { ButtonIntent as i, ButtonAppearance as n, ButtonProps as r, Button as t };
@@ -0,0 +1 @@
1
+ import{t as e}from"./cx-CK7o_rVv.js";import{t}from"./data-slot-EM6s2WEU.js";import{t as n}from"./icon-kK0c-POG.js";import{t as r}from"./slot-DdYN1L1C.js";import{t as i}from"./booleanish-BfvnW6vy.js";import{t as a}from"./clsx-DUGZgXfJ.js";import{c as o}from"react/compiler-runtime";import{Children as s,cloneElement as c,isValidElement as l}from"react";import u from"tiny-invariant";import{Fragment as d,jsx as f,jsxs as p}from"react/jsx-runtime";import{cva as m}from"class-variance-authority";import{CircleNotchIcon as h}from"@phosphor-icons/react/CircleNotch";const g=r=>{let i=o(20),a,s,c,l,u;i[0]===r?(a=i[1],s=i[2],c=i[3],l=i[4],u=i[5]):({"data-slot":c,active:a,className:s,icons:l,...u}=r,i[0]=r,i[1]=a,i[2]=s,i[3]=c,i[4]=l,i[5]=u);let d;i[6]===c?d=i[7]:(d=t(c,`icon-swap`),i[6]=c,i[7]=d);let p;i[8]===s?p=i[9]:(p=e(`inline-grid shrink-0 place-items-center`,s),i[8]=s,i[9]=p);let m;i[10]===l?m=i[11]:(m=Object.entries(l),i[10]=l,i[11]=m);let h;i[12]!==a||i[13]!==m?(h=m.map(t=>{let[r,i]=t,o=r===a;return/* @__PURE__ */ f(`span`,{"data-slot":`icon-swap-item`,"data-state":o?`active`:`inactive`,"aria-hidden":!o||void 0,className:e(`col-start-1 row-start-1 grid place-items-center`,`motion-safe:transition-[opacity,scale,filter] motion-safe:duration-200 motion-safe:ease-out-strong`,`data-state-inactive:opacity-0 motion-safe:data-state-inactive:scale-50 motion-safe:data-state-inactive:blur-[2px] motion-safe:data-state-inactive:duration-150`,`data-state-inactive:*:[animation-play-state:paused]`),children:/* @__PURE__ */ f(n,{svg:i})},r)}),i[12]=a,i[13]=m,i[14]=h):h=i[14];let g;return i[15]!==u||i[16]!==d||i[17]!==p||i[18]!==h?(g=/* @__PURE__ */ f(`span`,{"data-slot":d,className:p,...u,children:h}),i[15]=u,i[16]=d,i[17]=p,i[18]=h,i[19]=g):g=i[19],g},ee=m(``,{variants:{appearance:{filled:`bg-filled-accent text-white focus-visible:ring-focus-accent not-disabled:hover:bg-filled-accent-hover border border-transparent text-sm font-medium`,ghost:`text-accent-600 focus-visible:ring-focus-accent not-disabled:hover:bg-accent-500/10 not-disabled:hover:text-accent-700 border border-transparent text-sm font-medium`,outlined:`border-accent-600 bg-form text-accent-600 focus-visible:ring-focus-accent not-disabled:hover:border-accent-700 not-disabled:hover:bg-accent-500/10 not-disabled:hover:text-accent-700 border text-sm font-medium`,link:`text-accent-600 focus-visible:ring-focus-accent not-disabled:hover:underline group/button-link border-transparent`},isLoading:{false:``,true:`opacity-50`},intent:{accent:``,danger:``,neutral:``},size:{xs:``,sm:``,md:``,lg:``,xl:``}},defaultVariants:{isLoading:!1,size:`md`},compoundVariants:[{appearance:[`filled`,`ghost`,`outlined`],size:`xs`,class:`h-6 px-2`},{appearance:[`filled`,`ghost`,`outlined`],size:`sm`,class:`h-7 px-2.5`},{appearance:[`filled`,`ghost`,`outlined`],size:`md`,class:`h-9 px-3`},{appearance:[`filled`,`ghost`,`outlined`],size:`lg`,class:`h-10 px-3.5`},{appearance:[`filled`,`ghost`,`outlined`],size:`xl`,class:`h-12 px-4`},{appearance:`ghost`,intent:`danger`,class:`text-danger-600 focus-visible:ring-focus-danger not-disabled:hover:bg-danger-500/10 not-disabled:hover:text-danger-700 border-transparent`},{appearance:`outlined`,intent:`danger`,class:`border-danger-600 bg-form text-danger-600 focus-visible:ring-focus-danger not-disabled:hover:border-danger-700 not-disabled:hover:bg-danger-500/10 not-disabled:hover:text-danger-700`},{appearance:`filled`,intent:`danger`,class:`bg-filled-danger focus-visible:ring-focus-danger not-disabled:hover:bg-filled-danger-hover border-transparent`},{appearance:`link`,intent:`danger`,class:`text-danger-600 focus-visible:ring-focus-danger`},{appearance:`ghost`,intent:`neutral`,class:`text-strong focus-visible:ring-focus-accent not-disabled:hover:bg-neutral-500/10 not-disabled:hover:text-strong border-transparent`},{appearance:`outlined`,intent:`neutral`,class:`border-form bg-form text-strong focus-visible:border-accent-600 focus-visible:ring-focus-accent not-disabled:hover:border-neutral-400 not-disabled:hover:bg-form-hover not-disabled:hover:text-strong focus-visible:not-disabled:hover:border-accent-600 focus-visible:not-disabled:active:border-accent-600`},{appearance:`filled`,intent:`neutral`,class:`bg-filled-neutral not-disabled:hover:bg-filled-neutral-hover border-transparent focus-visible:border-transparent text-neutral-50`},{appearance:`link`,intent:`neutral`,class:`text-strong focus-visible:ring-focus-accent`}]}),te={xs:`ps-1.5`,sm:`ps-2`,md:`ps-2.5`,lg:`ps-3`,xl:`ps-3.5`},ne={xs:`pe-1.5`,sm:`pe-2`,md:`pe-2.5`,lg:`pe-3`,xl:`pe-3.5`},_=m=>{let _=o(68),v,y,b,x,S,C,w,T,E,D,O,k,A,j,M;_[0]===m?(v=_[1],y=_[2],b=_[3],x=_[4],S=_[5],C=_[6],w=_[7],T=_[8],E=_[9],D=_[10],O=_[11],k=_[12],A=_[13],j=_[14],M=_[15]):({"aria-disabled":v,"data-slot":w,appearance:b,asChild:x,children:S,className:C,disabled:y,icon:E,iconPlacement:k,intent:T,isLoading:A,ref:O,size:j,type:M,...D}=m,_[0]=m,_[1]=v,_[2]=y,_[3]=b,_[4]=x,_[5]=S,_[6]=C,_[7]=w,_[8]=T,_[9]=E,_[10]=D,_[11]=O,_[12]=k,_[13]=A,_[14]=j,_[15]=M);let N=k===void 0?`start`:k,P=A!==void 0&&A,F=j===void 0?`md`:j,I;_[16]!==v||_[17]!==y||_[18]!==P?(I=i(y??P)||i(v),_[16]=v,_[17]=y,_[18]=P,_[19]=I):I=_[19];let L=I,R;_[20]===Symbol.for(`react.memo_cache_sentinel`)?(R=/* @__PURE__ */ f(h,{className:`animate-spin`}),_[20]=R):R=_[20];let ie=R,z=N===`end`&&`order-last`,B;_[21]===z?B=_[22]:(B=a(z),_[21]=z,_[22]=B);let V=B,H;_[23]!==V||_[24]!==P||_[25]!==E?(H=E?/* @__PURE__ */ f(g,{active:P?`loading`:`idle`,icons:{idle:E,loading:ie},className:V}):P&&/* @__PURE__ */ f(n,{svg:ie,className:V}),_[23]=V,_[24]=P,_[25]=E,_[26]=H):H=_[26];let U=H,W=U&&b!==`link`,G;_[27]===w?G=_[28]:(G=t(w,`button`),_[27]=w,_[28]=G);let K;_[29]!==b||_[30]!==C||_[31]!==W||_[32]!==N||_[33]!==T||_[34]!==P||_[35]!==F?(K=e(`inline-flex items-center justify-center gap-1.5 whitespace-nowrap rounded-md`,`focus:outline-hidden focus-visible:ring-4`,`disabled:cursor-default disabled:opacity-50`,`aria-disabled:cursor-default aria-disabled:opacity-50`,`not-disabled:active:scale-97 ease-out transition-transform duration-150`,ee({appearance:b,intent:T,isLoading:P,size:F}),b!==`link`&&`font-sans`,W&&N===`start`&&te[F],W&&N===`end`&&ne[F],C),_[29]=b,_[30]=C,_[31]=W,_[32]=N,_[33]=T,_[34]=P,_[35]=F,_[36]=K):K=_[36];let q=L?``:void 0,J=P?``:void 0,Y=b===`link`?void 0:F,X;_[37]!==b||_[38]!==L||_[39]!==T||_[40]!==D||_[41]!==O||_[42]!==K||_[43]!==q||_[44]!==J||_[45]!==Y||_[46]!==G?(X={"aria-disabled":L,"data-slot":G,className:K,"data-appearance":b,"data-disabled":q,"data-intent":T,"data-loading":J,"data-size":Y,ref:O,...D},_[37]=b,_[38]=L,_[39]=T,_[40]=D,_[41]=O,_[42]=K,_[43]=q,_[44]=J,_[45]=Y,_[46]=G,_[47]=X):X=_[47];let Z=X;if(x){u(l(S)&&s.only(S),"When using `asChild`, Button must be passed a single child as a JSX tag.");let e;if(_[48]!==S||_[49]!==L||_[50]!==U){let t;_[52]===S.props.children?t=_[53]:(t=/* @__PURE__ */ f(`span`,{"data-slot":`button-label`,className:`contents`,children:S.props.children}),_[52]=S.props.children,_[53]=t);let n;_[54]!==U||_[55]!==t?(n=/* @__PURE__ */ p(d,{children:[U,t]}),_[54]=U,_[55]=t,_[56]=n):n=_[56],e=c(S,L?re:{},n),_[48]=S,_[49]=L,_[50]=U,_[51]=e}else e=_[51];let t;return _[57]!==Z||_[58]!==e?(t=/* @__PURE__ */ f(r,{...Z,children:e}),_[57]=Z,_[58]=e,_[59]=t):t=_[59],t}let ae=M??`button`,Q;_[60]===S?Q=_[61]:(Q=/* @__PURE__ */ f(`span`,{"data-slot":`button-label`,className:`contents`,children:S}),_[60]=S,_[61]=Q);let $;return _[62]!==Z||_[63]!==L||_[64]!==U||_[65]!==ae||_[66]!==Q?($=/* @__PURE__ */ p(`button`,{...Z,disabled:L,type:ae,children:[U,Q]}),_[62]=Z,_[63]=L,_[64]=U,_[65]=ae,_[66]=Q,_[67]=$):$=_[67],$},re={tabIndex:-1,onClickCapture:e=>{e.preventDefault(),e.stopPropagation()}};export{re as n,g as r,_ as t};
@@ -0,0 +1 @@
1
+ import{t as e}from"./cx-CK7o_rVv.js";import{t}from"./data-slot-EM6s2WEU.js";import{t as n}from"./slot-DdYN1L1C.js";import{t as r}from"./booleanish-BfvnW6vy.js";import{n as i,r as a}from"./button-CZ-q7fYv.js";import{t as o}from"./button-DTpsT864.js";import{c as s}from"react/compiler-runtime";import{Children as c,cloneElement as l,isValidElement as u}from"react";import d from"tiny-invariant";import{jsx as f}from"react/jsx-runtime";import{CircleNotchIcon as p}from"@phosphor-icons/react/CircleNotch";const m=m=>{let h=s(58),g,_,v,y,b,x,S,C,w,T,E,D,O,k,A;h[0]===m?(g=h[1],_=h[2],v=h[3],y=h[4],b=h[5],x=h[6],S=h[7],C=h[8],w=h[9],T=h[10],E=h[11],D=h[12],O=h[13],k=h[14],A=h[15]):({"aria-disabled":g,"data-slot":x,appearance:v,asChild:D,children:y,className:b,disabled:_,icon:w,intent:S,isLoading:O,label:C,ref:E,size:k,type:A,...T}=m,h[0]=m,h[1]=g,h[2]=_,h[3]=v,h[4]=y,h[5]=b,h[6]=x,h[7]=S,h[8]=C,h[9]=w,h[10]=T,h[11]=E,h[12]=D,h[13]=O,h[14]=k,h[15]=A);let j=D!==void 0&&D,M=O!==void 0&&O,N=k===void 0?`md`:k,P;h[16]!==g||h[17]!==_||h[18]!==M?(P=r(_??M)||r(g),h[16]=g,h[17]=_,h[18]=M,h[19]=P):P=h[19];let F=P,I;h[20]===x?I=h[21]:(I=t(x,`icon-button`),h[20]=x,h[21]=I);let L;h[22]!==v||h[23]!==b||h[24]!==S||h[25]!==M||h[26]!==N?(L=e(o({appearance:v,intent:S,isLoading:M,size:N}),b),h[22]=v,h[23]=b,h[24]=S,h[25]=M,h[26]=N,h[27]=L):L=h[27];let R=F?``:void 0,z=M?``:void 0,B;h[28]!==v||h[29]!==F||h[30]!==S||h[31]!==C||h[32]!==T||h[33]!==E||h[34]!==N||h[35]!==I||h[36]!==L||h[37]!==R||h[38]!==z?(B={"aria-disabled":F,"data-slot":I,className:L,"data-appearance":v,"data-disabled":R,"data-icon-button":!0,"data-intent":S,"data-loading":z,"data-size":N,ref:E,...T,"aria-label":C},h[28]=v,h[29]=F,h[30]=S,h[31]=C,h[32]=T,h[33]=E,h[34]=N,h[35]=I,h[36]=L,h[37]=R,h[38]=z,h[39]=B):B=h[39];let V=B,H=M?`loading`:`idle`,U;h[40]===Symbol.for(`react.memo_cache_sentinel`)?(U=/* @__PURE__ */ f(p,{className:`animate-spin`}),h[40]=U):U=h[40];let W;h[41]===w?W=h[42]:(W={idle:w,loading:U},h[41]=w,h[42]=W);let G;h[43]!==H||h[44]!==W?(G=/* @__PURE__ */ f(a,{active:H,icons:W}),h[43]=H,h[44]=W,h[45]=G):G=h[45];let K=G;if(j){d(u(y)&&c.only(y),"When using `asChild`, IconButton must be passed a single child as a JSX tag.");let e;h[46]!==y||h[47]!==F||h[48]!==K?(e=l(y,F?i:{},K),h[46]=y,h[47]=F,h[48]=K,h[49]=e):e=h[49];let t;return h[50]!==V||h[51]!==e?(t=/* @__PURE__ */ f(n,{...V,children:e}),h[50]=V,h[51]=e,h[52]=t):t=h[52],t}let q=A??`button`,J;return h[53]!==V||h[54]!==F||h[55]!==K||h[56]!==q?(J=/* @__PURE__ */ f(`button`,{...V,disabled:F,type:q,children:K}),h[53]=V,h[54]=F,h[55]=K,h[56]=q,h[57]=J):J=h[57],J};export{m as t};
@@ -1,10 +1,9 @@
1
- import { n as WithAsChild } from "./as-child-D23mGo4f.js";
2
- import { t as WithDataSlot } from "./data-slot-CChfb_cv.js";
3
- import { r as VariantProps } from "./index-DA4ig3gj.js";
4
- import "./button-mzUR1U0Y.js";
5
- import "./button-BZT5f79d.js";
1
+ import { n as WithAsChild } from "./as-child-DFxX3U2i.js";
2
+ import { t as WithDataSlot } from "./data-slot-B-LqAcBB.js";
3
+ import { r as VariantProps } from "./index-C6s5cGCr.js";
4
+ import "./button-BOCRKR5v.js";
5
+ import "./button-BFAvonp1.js";
6
6
  import { ComponentProps } from "react";
7
- //#region src/components/button/button-group.d.ts
8
7
  declare const buttonGroupVariants: (props?: ({
9
8
  appearance?: "ghost" | "outlined" | "panel" | null | undefined;
10
9
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
@@ -28,5 +27,4 @@ type ButtonGroupProps = ComponentProps<"div"> & ButtonGroupVariants & WithAsChil
28
27
  * ```
29
28
  */
30
29
  declare const ButtonGroup: ({ "data-slot": dataSlot, appearance, asChild, className, children, ref, ...props }: ButtonGroupProps) => import("react").JSX.Element;
31
- //#endregion
32
30
  export { ButtonGroupProps as n, ButtonGroup as t };
@@ -1,4 +1,3 @@
1
- //#region src/components/button/sizes.d.ts
2
1
  /**
3
2
  * The single size scale shared by the button family (`Button`, `IconButton`,
4
3
  * and `SplitButton.Root`). Sizes with the same name always render the same
@@ -25,5 +24,4 @@ declare const buttonSizes: readonly ["xs", "sm", "md", "lg", "xl"];
25
24
  * ```
26
25
  */
27
26
  type ButtonSize = (typeof buttonSizes)[number];
28
- //#endregion
29
27
  export { ButtonSize as t };
package/dist/button.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { i as ButtonIntent, n as ButtonAppearance, r as ButtonProps, t as Button } from "./button-mzUR1U0Y.js";
2
- import { i as IconButtonIntent, n as IconButtonProps, r as IconButtonAppearance, t as IconButton } from "./button-BZT5f79d.js";
3
- import { n as ButtonGroupProps, t as ButtonGroup } from "./button-BRjAW1ec.js";
4
- import { t as ButtonSize } from "./button-BCoI4bhP.js";
1
+ import { i as ButtonIntent, n as ButtonAppearance, r as ButtonProps, t as Button } from "./button-BOCRKR5v.js";
2
+ import { i as IconButtonIntent, n as IconButtonProps, r as IconButtonAppearance, t as IconButton } from "./button-BFAvonp1.js";
3
+ import { n as ButtonGroupProps, t as ButtonGroup } from "./button-Dt9LZMT5.js";
4
+ import { t as ButtonSize } from "./button-L4exxu_L.js";
5
5
  export { Button, type ButtonAppearance, ButtonGroup, type ButtonGroupProps, type ButtonIntent, type ButtonProps, type ButtonSize, IconButton, type IconButtonAppearance, type IconButtonIntent, type IconButtonProps };
package/dist/button.js CHANGED
@@ -1 +1 @@
1
- import{t as e}from"./button-b2HKEIE2.js";import{t}from"./button-Bkl_QYpp.js";import{t as n}from"./button-69InNC_m.js";export{e as Button,n as ButtonGroup,t as IconButton};
1
+ import{t as e}from"./button-CZ-q7fYv.js";import{t}from"./button-Cwrv2Mwv.js";import{t as n}from"./button-69InNC_m.js";export{e as Button,n as ButtonGroup,t as IconButton};
@@ -1,7 +1,6 @@
1
- import { t as WithDataSlot } from "./data-slot-CChfb_cv.js";
1
+ import { t as WithDataSlot } from "./data-slot-B-LqAcBB.js";
2
2
  import { ComponentProps } from "react";
3
3
  import { DateRange, DayPicker } from "react-day-picker";
4
- //#region src/components/calendar/calendar.d.ts
5
4
  /**
6
5
  * Props for `Calendar`: every `DayPicker` prop. `showOutsideDays` defaults to
7
6
  * `false` here, and `className` lands on the calendar root alongside any
@@ -45,5 +44,4 @@ type CalendarProps = ComponentProps<typeof DayPicker> & WithDataSlot;
45
44
  * ```
46
45
  */
47
46
  declare function Calendar({ "data-slot": dataSlot, className, classNames, showOutsideDays, ...props }: CalendarProps): import("react").JSX.Element;
48
- //#endregion
49
47
  export { Calendar, type CalendarProps, type DateRange };
package/dist/card.d.ts CHANGED
@@ -1,8 +1,7 @@
1
- import { n as WithAsChild } from "./as-child-D23mGo4f.js";
2
- import { t as WithDataSlot } from "./data-slot-CChfb_cv.js";
3
- import "./index-DA4ig3gj.js";
1
+ import { n as WithAsChild } from "./as-child-DFxX3U2i.js";
2
+ import { t as WithDataSlot } from "./data-slot-B-LqAcBB.js";
3
+ import "./index-C6s5cGCr.js";
4
4
  import { ComponentProps } from "react";
5
- //#region src/components/card/card.d.ts
6
5
  type CardProps = ComponentProps<"div"> & WithAsChild & WithDataSlot;
7
6
  /**
8
7
  * A container that displays content in a box resembling a physical card. The
@@ -270,5 +269,4 @@ declare const Card: {
270
269
  */
271
270
  readonly Title: typeof Title;
272
271
  };
273
- //#endregion
274
272
  export { Card, type CardProps, type CardTitleProps };
@@ -1,7 +1,6 @@
1
- import { n as WithAsChild } from "./as-child-D23mGo4f.js";
2
- import { t as WithDataSlot } from "./data-slot-CChfb_cv.js";
1
+ import { n as WithAsChild } from "./as-child-DFxX3U2i.js";
2
+ import { t as WithDataSlot } from "./data-slot-B-LqAcBB.js";
3
3
  import { ComponentProps } from "react";
4
- //#region src/components/centered-layout/centered-layout.d.ts
5
4
  /**
6
5
  * The outer frame of a centered page flow. Renders a `<div>` with
7
6
  * `flex min-h-full flex-col` so it fills its nearest sized ancestor and stacks
@@ -26,10 +25,7 @@ import { ComponentProps } from "react";
26
25
  * </Main>
27
26
  * </CenteredLayout.Body>
28
27
  * <CenteredLayout.Footer>
29
- * <ThemeSwitcher.Root>
30
- * <ThemeSwitcher.Trigger />
31
- * <ThemeSwitcher.Content />
32
- * </ThemeSwitcher.Root>
28
+ * <ThemeSwitcher />
33
29
  * </CenteredLayout.Footer>
34
30
  * </CenteredLayout.Root>
35
31
  * ```
@@ -131,10 +127,7 @@ declare const Header: ({ asChild, children, className, "data-slot": dataSlot, ..
131
127
  * </Main>
132
128
  * </CenteredLayout.Body>
133
129
  * <CenteredLayout.Footer>
134
- * <ThemeSwitcher.Root>
135
- * <ThemeSwitcher.Trigger />
136
- * <ThemeSwitcher.Content />
137
- * </ThemeSwitcher.Root>
130
+ * <ThemeSwitcher />
138
131
  * </CenteredLayout.Footer>
139
132
  * </CenteredLayout.Root>
140
133
  * ```
@@ -163,10 +156,7 @@ declare const Body: ({ asChild, children, className, "data-slot": dataSlot, ...p
163
156
  * </Main>
164
157
  * </CenteredLayout.Body>
165
158
  * <CenteredLayout.Footer>
166
- * <ThemeSwitcher.Root>
167
- * <ThemeSwitcher.Trigger />
168
- * <ThemeSwitcher.Content />
169
- * </ThemeSwitcher.Root>
159
+ * <ThemeSwitcher />
170
160
  * </CenteredLayout.Footer>
171
161
  * </CenteredLayout.Root>
172
162
  * ```
@@ -204,10 +194,7 @@ declare const Footer: ({ asChild, children, className, "data-slot": dataSlot, ..
204
194
  * </Main>
205
195
  * </CenteredLayout.Body>
206
196
  * <CenteredLayout.Footer>
207
- * <ThemeSwitcher.Root>
208
- * <ThemeSwitcher.Trigger />
209
- * <ThemeSwitcher.Content />
210
- * </ThemeSwitcher.Root>
197
+ * <ThemeSwitcher />
211
198
  * </CenteredLayout.Footer>
212
199
  * </CenteredLayout.Root>
213
200
  * ```
@@ -234,10 +221,7 @@ declare const CenteredLayout: {
234
221
  * </Main>
235
222
  * </CenteredLayout.Body>
236
223
  * <CenteredLayout.Footer>
237
- * <ThemeSwitcher.Root>
238
- * <ThemeSwitcher.Trigger />
239
- * <ThemeSwitcher.Content />
240
- * </ThemeSwitcher.Root>
224
+ * <ThemeSwitcher />
241
225
  * </CenteredLayout.Footer>
242
226
  * </CenteredLayout.Root>
243
227
  * ```
@@ -317,10 +301,7 @@ declare const CenteredLayout: {
317
301
  * </Main>
318
302
  * </CenteredLayout.Body>
319
303
  * <CenteredLayout.Footer>
320
- * <ThemeSwitcher.Root>
321
- * <ThemeSwitcher.Trigger />
322
- * <ThemeSwitcher.Content />
323
- * </ThemeSwitcher.Root>
304
+ * <ThemeSwitcher />
324
305
  * </CenteredLayout.Footer>
325
306
  * </CenteredLayout.Root>
326
307
  * ```
@@ -346,15 +327,11 @@ declare const CenteredLayout: {
346
327
  * </Main>
347
328
  * </CenteredLayout.Body>
348
329
  * <CenteredLayout.Footer>
349
- * <ThemeSwitcher.Root>
350
- * <ThemeSwitcher.Trigger />
351
- * <ThemeSwitcher.Content />
352
- * </ThemeSwitcher.Root>
330
+ * <ThemeSwitcher />
353
331
  * </CenteredLayout.Footer>
354
332
  * </CenteredLayout.Root>
355
333
  * ```
356
334
  */
357
335
  readonly Footer: typeof Footer;
358
336
  };
359
- //#endregion
360
337
  export { CenteredLayout };