@ngrok/mantle 0.79.3 → 0.81.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 (222) hide show
  1. package/dist/accordion.d.ts +158 -19
  2. package/dist/accordion.js +1 -1
  3. package/dist/agent.json +5 -1
  4. package/dist/alert-dialog.d.ts +465 -32
  5. package/dist/alert-dialog.js +1 -1
  6. package/dist/alert.d.ts +116 -14
  7. package/dist/alert.js +1 -1
  8. package/dist/anchor-DfeXTpKW.js +1 -0
  9. package/dist/anchor.d.ts +2 -2
  10. package/dist/anchor.js +1 -1
  11. package/dist/area-chart.d.ts +504 -0
  12. package/dist/area-chart.js +1 -0
  13. package/dist/as-child-D23mGo4f.d.ts +49 -0
  14. package/dist/badge.d.ts +44 -5
  15. package/dist/badge.js +1 -1
  16. package/dist/bar-chart.d.ts +491 -0
  17. package/dist/bar-chart.js +1 -0
  18. package/dist/breadcrumb.d.ts +196 -14
  19. package/dist/breadcrumb.js +1 -1
  20. package/dist/button-BAno7KIU.js +1 -0
  21. package/dist/{index-BSAizFod.d.ts → button-C-gMbPso.d.ts} +5 -5
  22. package/dist/{icon-button-BvQvT790.d.ts → button-C7vAl6lS.d.ts} +22 -63
  23. package/dist/button-D9n09xUg.js +1 -0
  24. package/dist/{button-DcXOWUYo.d.ts → button-DARFK2KJ.d.ts} +4 -4
  25. package/dist/button-DjpEKt2X.js +1 -0
  26. package/dist/button-DvHMWAPl.js +1 -0
  27. package/dist/button.d.ts +5 -5
  28. package/dist/button.js +1 -1
  29. package/dist/calendar.d.ts +0 -3
  30. package/dist/calendar.js +1 -1
  31. package/dist/card.d.ts +131 -9
  32. package/dist/card.js +1 -1
  33. package/dist/centered-layout.d.ts +209 -8
  34. package/dist/centered-layout.js +1 -1
  35. package/dist/chart-BROa2gqt.js +2 -0
  36. package/dist/chart-BcOC6Qj0.d.ts +275 -0
  37. package/dist/checkbox-0EoxOyMA.js +1 -0
  38. package/dist/checkbox.d.ts +13 -11
  39. package/dist/checkbox.js +1 -1
  40. package/dist/choice-BHwFSSyv.js +1 -0
  41. package/dist/choice-BNRQXszu.d.ts +254 -0
  42. package/dist/choice.d.ts +1 -252
  43. package/dist/choice.js +1 -1
  44. package/dist/code-block.d.ts +242 -52
  45. package/dist/code-block.js +6 -6
  46. package/dist/code-block_highlight-utils.d.ts +1 -1
  47. package/dist/code-block_highlight-utils.js +1 -1
  48. package/dist/code.d.ts +3 -2
  49. package/dist/code.js +1 -1
  50. package/dist/combobox.d.ts +171 -16
  51. package/dist/combobox.js +1 -1
  52. package/dist/command.d.ts +279 -81
  53. package/dist/command.js +1 -1
  54. package/dist/compose-refs-BdBMM9ga.js +1 -0
  55. package/dist/data-table.d.ts +28 -6
  56. package/dist/data-table.js +1 -1
  57. package/dist/description-list.d.ts +67 -6
  58. package/dist/description-list.js +1 -1
  59. package/dist/dialog-BM4wPCft.d.ts +24 -0
  60. package/dist/dialog-DWZWd5Jt.js +1 -0
  61. package/dist/dialog.d.ts +226 -35
  62. package/dist/dialog.js +1 -1
  63. package/dist/{dropdown-menu-DP_Ne9Mr.d.ts → dropdown-menu-DZg-Cd69.d.ts} +137 -32
  64. package/dist/dropdown-menu-Dw-OtXPm.d.ts +1 -0
  65. package/dist/dropdown-menu-RyDWoKHx.js +1 -0
  66. package/dist/dropdown-menu.d.ts +2 -2
  67. package/dist/dropdown-menu.js +1 -1
  68. package/dist/empty.d.ts +7 -22
  69. package/dist/empty.js +1 -1
  70. package/dist/field-B1wqeZr4.js +1 -0
  71. package/dist/field.d.ts +568 -47
  72. package/dist/field.js +1 -1
  73. package/dist/flag.d.ts +0 -3
  74. package/dist/flag.js +1 -1
  75. package/dist/hooks.d.ts +3 -4
  76. package/dist/hooks.js +1 -1
  77. package/dist/hover-card.d.ts +48 -7
  78. package/dist/hover-card.js +1 -1
  79. package/dist/{svg-only-BFeFS1aa.d.ts → icon-CX_gj6sW.d.ts} +2 -2
  80. package/dist/icon-d-nMCfAI.js +1 -0
  81. package/dist/{icon-Cevjo93X.d.ts → icon-k4E9yNWD.d.ts} +2 -2
  82. package/dist/icon-lZ48P8Nn.js +1 -0
  83. package/dist/icon.d.ts +3 -3
  84. package/dist/icon.js +1 -1
  85. package/dist/{sort-BPX2Fk9t.js → icons-B_DDQcVD.js} +1 -1
  86. package/dist/{traffic-policy-file-0g5RXFqu.js → icons-CF1lbWtp.js} +1 -1
  87. package/dist/icons-DLCs1hLP.js +1 -0
  88. package/dist/icons.d.ts +7 -15
  89. package/dist/icons.js +1 -1
  90. package/dist/{in-view-nkSOdED2.d.ts → in-view-DDEGUKDR.d.ts} +17 -9
  91. package/dist/{index-D47aqlpz.d.ts → index-DA4ig3gj.d.ts} +1 -1
  92. package/dist/input-BnlpQF0c.js +1 -0
  93. package/dist/{types-C19IR7jf.d.ts → input-BuYDU6CF.d.ts} +42 -2
  94. package/dist/input.d.ts +5 -56
  95. package/dist/input.js +1 -1
  96. package/dist/{label-v2-bv98k.d.ts → label-C6YH9skg.d.ts} +8 -6
  97. package/dist/label-D-D11mlp.js +1 -0
  98. package/dist/label.d.ts +1 -1
  99. package/dist/label.js +1 -1
  100. package/dist/line-chart.d.ts +490 -0
  101. package/dist/line-chart.js +1 -0
  102. package/dist/list-51KQvENW.js +1 -0
  103. package/dist/list.d.ts +135 -6
  104. package/dist/list.js +1 -1
  105. package/dist/llms.txt +5 -1
  106. package/dist/main.d.ts +20 -4
  107. package/dist/main.js +1 -1
  108. package/dist/mantle-dark-high-contrast.css +17 -0
  109. package/dist/mantle-dark.css +13 -0
  110. package/dist/mantle-light-high-contrast.css +15 -0
  111. package/dist/mantle.css +29 -0
  112. package/dist/media-object.d.ts +18 -4
  113. package/dist/media-object.js +1 -1
  114. package/dist/multi-select.d.ts +282 -24
  115. package/dist/multi-select.js +1 -1
  116. package/dist/otp-input.d.ts +118 -6
  117. package/dist/otp-input.js +1 -1
  118. package/dist/pagination.d.ts +61 -6
  119. package/dist/pagination.js +1 -1
  120. package/dist/popover-CE4OlWkd.d.ts +208 -0
  121. package/dist/popover-CQ9s7jG5.js +1 -0
  122. package/dist/popover.d.ts +1 -181
  123. package/dist/popover.js +1 -1
  124. package/dist/primitive-trJDqIXJ.js +1 -0
  125. package/dist/progress.d.ts +2 -8
  126. package/dist/progress.js +1 -1
  127. package/dist/qr-code.d.ts +101 -5
  128. package/dist/qr-code.js +1 -1
  129. package/dist/radio-group.d.ts +110 -35
  130. package/dist/radio-group.js +1 -1
  131. package/dist/sandboxed-on-click.d.ts +2 -2
  132. package/dist/sandboxed-on-click.js +1 -1
  133. package/dist/scatter-plot.d.ts +495 -0
  134. package/dist/scatter-plot.js +1 -0
  135. package/dist/select-0z7HVS6r.d.ts +579 -0
  136. package/dist/select-BCHWvmyC.js +1 -0
  137. package/dist/select.d.ts +1 -1
  138. package/dist/select.js +1 -1
  139. package/dist/selectable-list.d.ts +225 -298
  140. package/dist/selectable-list.js +1 -1
  141. package/dist/separator-B5UmkVRL.d.ts +75 -0
  142. package/dist/separator-bpE_kooz.js +1 -0
  143. package/dist/separator.d.ts +1 -52
  144. package/dist/separator.js +1 -1
  145. package/dist/sheet.d.ts +285 -38
  146. package/dist/sheet.js +1 -1
  147. package/dist/skeleton-CsbUHbBA.js +1 -0
  148. package/dist/skeleton.d.ts +4 -7
  149. package/dist/skeleton.js +1 -1
  150. package/dist/skip-to-main-link.d.ts +24 -4
  151. package/dist/skip-to-main-link.js +1 -1
  152. package/dist/slider.js +1 -1
  153. package/dist/{index-Rv8RL7xy.d.ts → slot-BtwKJTLq.d.ts} +1 -1
  154. package/dist/slot-CDk0Bb9z.js +1 -0
  155. package/dist/slot.d.ts +1 -1
  156. package/dist/slot.js +1 -1
  157. package/dist/split-button.d.ts +14 -14
  158. package/dist/split-button.js +1 -1
  159. package/dist/switch.d.ts +10 -7
  160. package/dist/switch.js +1 -1
  161. package/dist/table-Bo0vNxIJ.d.ts +848 -0
  162. package/dist/table-CGxJwtbL.js +1 -0
  163. package/dist/table.d.ts +1 -1
  164. package/dist/table.js +1 -1
  165. package/dist/tabs.d.ts +124 -25
  166. package/dist/tabs.js +1 -1
  167. package/dist/text-area.d.ts +2 -2
  168. package/dist/text-area.js +1 -1
  169. package/dist/theme-C26-Xolp.js +1 -0
  170. package/dist/theme-switcher.d.ts +105 -33
  171. package/dist/theme-switcher.js +1 -1
  172. package/dist/theme.d.ts +54 -15
  173. package/dist/theme.js +1 -1
  174. package/dist/toast.d.ts +86 -10
  175. package/dist/toast.js +1 -1
  176. package/dist/tooltip.d.ts +50 -5
  177. package/dist/tooltip.js +1 -1
  178. package/dist/types.d.ts +2 -2
  179. package/dist/utils.d.ts +1 -1
  180. package/dist/utils.js +1 -1
  181. package/dist/well.d.ts +3 -3
  182. package/dist/well.js +1 -1
  183. package/package.json +9 -3
  184. package/dist/anchor-C_tjSVy6.js +0 -1
  185. package/dist/as-child-CYEVu1WY.d.ts +0 -23
  186. package/dist/button-5t6-JS_I.js +0 -1
  187. package/dist/button-ClC60Nzg.js +0 -1
  188. package/dist/checkbox-DJ2xl7Rc.js +0 -1
  189. package/dist/choice-DOdyNzFC.js +0 -1
  190. package/dist/compose-refs-Cjf2gfB8.js +0 -1
  191. package/dist/dialog-vxLIvB8M.js +0 -1
  192. package/dist/dropdown-menu-Bt1aKF1g.js +0 -1
  193. package/dist/field-context-BR01g789.js +0 -1
  194. package/dist/icon-CDtYjF_H.js +0 -1
  195. package/dist/icon-button-DV2-GZHf.js +0 -1
  196. package/dist/index-g2rfwNCH.d.ts +0 -1
  197. package/dist/input-Ct1YOqSy.js +0 -1
  198. package/dist/label-BMlHW_2D.js +0 -1
  199. package/dist/popover-D5WxxnBY.js +0 -1
  200. package/dist/primitive-C64-m48O.d.ts +0 -13
  201. package/dist/primitive-IKruV2iB.js +0 -1
  202. package/dist/select-Bwt2YduR.d.ts +0 -345
  203. package/dist/select-D-5u0Blc.js +0 -1
  204. package/dist/separator-kBnnv3Cw.js +0 -1
  205. package/dist/skeleton-Bu3tgNcW.js +0 -1
  206. package/dist/slot-DmPrjM7N.js +0 -1
  207. package/dist/svg-only-DDx6FtJd.js +0 -1
  208. package/dist/table-CPH2md2-.js +0 -1
  209. package/dist/table-CwFHXC-G.d.ts +0 -414
  210. package/dist/theme-D3MDng6U.js +0 -1
  211. package/dist/theme-provider-C9zpDyJW.js +0 -1
  212. package/dist/toast-BsCjaMVS.js +0 -1
  213. package/dist/virtual-DZMBu7Ch.js +0 -1
  214. /package/dist/{sizes-BCoI4bhP.d.ts → button-BCoI4bhP.d.ts} +0 -0
  215. /package/dist/{intents-DdSKSj1c.d.ts → button-DdSKSj1c.d.ts} +0 -0
  216. /package/dist/{resolve-pre-rendered-props-B6OlZrSI.d.ts → code-block-B6OlZrSI.d.ts} +0 -0
  217. /package/dist/{resolve-pre-rendered-props-C9uaM9-V.js → code-block-C9uaM9-V.js} +0 -0
  218. /package/dist/{validation-7QeiTFwl.d.ts → field-7QeiTFwl.d.ts} +0 -0
  219. /package/dist/{validation-Bpptk_9t.js → field-Bpptk_9t.js} +0 -0
  220. /package/dist/{types-D1RY5Tcj.d.ts → icon-D1RY5Tcj.d.ts} +0 -0
  221. /package/dist/{is-input-CXmS0OFN.js → input-CXmS0OFN.js} +0 -0
  222. /package/dist/{themes-CYNpplwN.d.ts → theme-CYNpplwN.d.ts} +0 -0
@@ -1,7 +1,195 @@
1
- import { t as WithAsChild } from "./as-child-CYEVu1WY.js";
1
+ import { n as WithAsChild } from "./as-child-D23mGo4f.js";
2
2
  import { t as WithDataSlot } from "./data-slot-CChfb_cv.js";
3
- import { ReactNode } from "react";
3
+ import { ComponentProps, ReactNode } from "react";
4
4
  //#region src/components/breadcrumb/breadcrumb.d.ts
5
+ /**
6
+ * The breadcrumb landmark. Renders a `<nav>` with a default
7
+ * `aria-label="Breadcrumb"` per the WAI-ARIA breadcrumb pattern — pass your
8
+ * own `aria-label` to override it (e.g. for localization or when a page has
9
+ * multiple breadcrumb trails). Carries no visual styling of its own.
10
+ *
11
+ * @see https://mantle.ngrok.com/components/navigation/breadcrumb
12
+ *
13
+ * @example
14
+ * ```tsx
15
+ * <Breadcrumb.Root>
16
+ * <Breadcrumb.List>
17
+ * <Breadcrumb.Item>
18
+ * <Breadcrumb.Link href="/">Home</Breadcrumb.Link>
19
+ * </Breadcrumb.Item>
20
+ * <Breadcrumb.Separator />
21
+ * <Breadcrumb.Item>
22
+ * <Breadcrumb.Link href="/endpoints">Endpoints</Breadcrumb.Link>
23
+ * </Breadcrumb.Item>
24
+ * <Breadcrumb.Separator />
25
+ * <Breadcrumb.Item>
26
+ * <Breadcrumb.Page>ep_2h8…</Breadcrumb.Page>
27
+ * </Breadcrumb.Item>
28
+ * </Breadcrumb.List>
29
+ * </Breadcrumb.Root>
30
+ * ```
31
+ */
32
+ declare const Root: ({ asChild, children, "data-slot": dataSlot, ref, ...props }: ComponentProps<"nav"> & WithAsChild & WithDataSlot) => import("react").JSX.Element;
33
+ /**
34
+ * The ordered list of crumbs. Renders an `<ol>` — an **ordered** list, because
35
+ * the order of the items is the hierarchy, from the root to the current page.
36
+ * Lays crumbs out inline with wrapping and muted, small text.
37
+ *
38
+ * @see https://mantle.ngrok.com/components/navigation/breadcrumb
39
+ *
40
+ * @example
41
+ * ```tsx
42
+ * <Breadcrumb.Root>
43
+ * <Breadcrumb.List>
44
+ * <Breadcrumb.Item>
45
+ * <Breadcrumb.Link href="/">Home</Breadcrumb.Link>
46
+ * </Breadcrumb.Item>
47
+ * <Breadcrumb.Separator />
48
+ * <Breadcrumb.Item>
49
+ * <Breadcrumb.Link href="/endpoints">Endpoints</Breadcrumb.Link>
50
+ * </Breadcrumb.Item>
51
+ * <Breadcrumb.Separator />
52
+ * <Breadcrumb.Item>
53
+ * <Breadcrumb.Page>ep_2h8…</Breadcrumb.Page>
54
+ * </Breadcrumb.Item>
55
+ * </Breadcrumb.List>
56
+ * </Breadcrumb.Root>
57
+ * ```
58
+ */
59
+ declare const List: ({ asChild, children, className, "data-slot": dataSlot, ref, ...props }: ComponentProps<"ol"> & WithAsChild & WithDataSlot) => import("react").JSX.Element;
60
+ /**
61
+ * A single crumb. Renders an `<li>` (`role="listitem"`) that lays out its
62
+ * content — a `Breadcrumb.Link` or `Breadcrumb.Page` — inline.
63
+ *
64
+ * @see https://mantle.ngrok.com/components/navigation/breadcrumb
65
+ *
66
+ * @example
67
+ * ```tsx
68
+ * <Breadcrumb.Root>
69
+ * <Breadcrumb.List>
70
+ * <Breadcrumb.Item>
71
+ * <Breadcrumb.Link href="/">Home</Breadcrumb.Link>
72
+ * </Breadcrumb.Item>
73
+ * <Breadcrumb.Separator />
74
+ * <Breadcrumb.Item>
75
+ * <Breadcrumb.Link href="/endpoints">Endpoints</Breadcrumb.Link>
76
+ * </Breadcrumb.Item>
77
+ * <Breadcrumb.Separator />
78
+ * <Breadcrumb.Item>
79
+ * <Breadcrumb.Page>ep_2h8…</Breadcrumb.Page>
80
+ * </Breadcrumb.Item>
81
+ * </Breadcrumb.List>
82
+ * </Breadcrumb.Root>
83
+ * ```
84
+ */
85
+ declare const Item: ({ asChild, children, className, "data-slot": dataSlot, ref, ...props }: ComponentProps<"li"> & WithAsChild & WithDataSlot) => import("react").JSX.Element;
86
+ /**
87
+ * A link to an ancestor page in the hierarchy. Renders an `<a>` by default;
88
+ * the component is router-agnostic — use `asChild` to compose the styling
89
+ * onto your app router's link (e.g. react-router's `<Link>`) so client-side
90
+ * navigation kicks in.
91
+ *
92
+ * @see https://mantle.ngrok.com/components/navigation/breadcrumb
93
+ *
94
+ * @example
95
+ * ```tsx
96
+ * <Breadcrumb.Root>
97
+ * <Breadcrumb.List>
98
+ * <Breadcrumb.Item>
99
+ * <Breadcrumb.Link href="/">Home</Breadcrumb.Link>
100
+ * </Breadcrumb.Item>
101
+ * <Breadcrumb.Separator />
102
+ * <Breadcrumb.Item>
103
+ * <Breadcrumb.Link href="/endpoints">Endpoints</Breadcrumb.Link>
104
+ * </Breadcrumb.Item>
105
+ * <Breadcrumb.Separator />
106
+ * <Breadcrumb.Item>
107
+ * <Breadcrumb.Page>ep_2h8…</Breadcrumb.Page>
108
+ * </Breadcrumb.Item>
109
+ * </Breadcrumb.List>
110
+ * </Breadcrumb.Root>
111
+ * ```
112
+ *
113
+ * @example
114
+ * ```tsx
115
+ * <Breadcrumb.Link asChild>
116
+ * <Link to={href("/endpoints")}>Endpoints</Link>
117
+ * </Breadcrumb.Link>
118
+ * ```
119
+ */
120
+ declare const Link: ({ asChild, children, className, "data-slot": dataSlot, ref, ...props }: ComponentProps<"a"> & WithAsChild & WithDataSlot) => import("react").JSX.Element;
121
+ /**
122
+ * The current page — the last crumb in the trail. Renders a `<span>` (not a
123
+ * link; the user is already here) with `aria-current="page"`. The ARIA is the
124
+ * part's whole contract, so `aria-current` is always emitted and is not
125
+ * overridable via props.
126
+ *
127
+ * @see https://mantle.ngrok.com/components/navigation/breadcrumb
128
+ *
129
+ * @example
130
+ * ```tsx
131
+ * <Breadcrumb.Root>
132
+ * <Breadcrumb.List>
133
+ * <Breadcrumb.Item>
134
+ * <Breadcrumb.Link href="/">Home</Breadcrumb.Link>
135
+ * </Breadcrumb.Item>
136
+ * <Breadcrumb.Separator />
137
+ * <Breadcrumb.Item>
138
+ * <Breadcrumb.Link href="/endpoints">Endpoints</Breadcrumb.Link>
139
+ * </Breadcrumb.Item>
140
+ * <Breadcrumb.Separator />
141
+ * <Breadcrumb.Item>
142
+ * <Breadcrumb.Page>ep_2h8…</Breadcrumb.Page>
143
+ * </Breadcrumb.Item>
144
+ * </Breadcrumb.List>
145
+ * </Breadcrumb.Root>
146
+ * ```
147
+ */
148
+ declare const Page: ({ asChild, children, className, "data-slot": dataSlot, ref, ...props }: ComponentProps<"span"> & WithAsChild & WithDataSlot) => import("react").JSX.Element;
149
+ /**
150
+ * The props for `Breadcrumb.Separator`. When `asChild` is set, `children` is
151
+ * required: the child element is what gets rendered, so an `asChild` separator
152
+ * without children would clone the default caret icon into the list — invalid
153
+ * `<ol>` content. The union makes that misuse a compile error.
154
+ */
155
+ type BreadcrumbSeparatorProps = Omit<ComponentProps<"li">, "children"> & ({
156
+ asChild: true;
157
+ children: ReactNode;
158
+ } | {
159
+ asChild?: false | undefined;
160
+ children?: ReactNode;
161
+ });
162
+ /**
163
+ * A purely visual divider between crumbs, hidden from assistive technology.
164
+ * Renders an `<li>` with `role="presentation"` and `aria-hidden="true"` — a
165
+ * listitem sibling of `Breadcrumb.Item` elements per the APG breadcrumb
166
+ * pattern, so it never counts as a crumb. Children default to a size-3.5
167
+ * caret icon (`<Icon svg={<CaretRightIcon />} className="size-3.5" />`); pass
168
+ * your own children (e.g. a slash) to replace it. With `asChild`, children
169
+ * are required — the child element is what renders.
170
+ *
171
+ * @see https://mantle.ngrok.com/components/navigation/breadcrumb
172
+ *
173
+ * @example
174
+ * ```tsx
175
+ * <Breadcrumb.Root>
176
+ * <Breadcrumb.List>
177
+ * <Breadcrumb.Item>
178
+ * <Breadcrumb.Link href="/">Home</Breadcrumb.Link>
179
+ * </Breadcrumb.Item>
180
+ * <Breadcrumb.Separator />
181
+ * <Breadcrumb.Item>
182
+ * <Breadcrumb.Link href="/endpoints">Endpoints</Breadcrumb.Link>
183
+ * </Breadcrumb.Item>
184
+ * <Breadcrumb.Separator />
185
+ * <Breadcrumb.Item>
186
+ * <Breadcrumb.Page>ep_2h8…</Breadcrumb.Page>
187
+ * </Breadcrumb.Item>
188
+ * </Breadcrumb.List>
189
+ * </Breadcrumb.Root>
190
+ * ```
191
+ */
192
+ declare const Separator: ({ asChild, children, className, "data-slot": dataSlot, ref, ...props }: BreadcrumbSeparatorProps & WithDataSlot) => import("react").JSX.Element;
5
193
  /**
6
194
  * Compound component for WAI-ARIA breadcrumb navigation — the path from a
7
195
  * root to the current page as an ordered list of links inside a labeled
@@ -68,7 +256,7 @@ declare const Breadcrumb: {
68
256
  * </Breadcrumb.Root>
69
257
  * ```
70
258
  */
71
- readonly Root: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLElement> & import("react").HTMLAttributes<HTMLElement> & WithAsChild & WithDataSlot, "ref"> & import("react").RefAttributes<HTMLElement>>;
259
+ readonly Root: typeof Root;
72
260
  /**
73
261
  * The ordered list of crumbs. Renders an `<ol>` — the order of the items
74
262
  * is the hierarchy, from the root to the current page.
@@ -94,7 +282,7 @@ declare const Breadcrumb: {
94
282
  * </Breadcrumb.Root>
95
283
  * ```
96
284
  */
97
- readonly List: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLOListElement> & import("react").OlHTMLAttributes<HTMLOListElement> & WithAsChild & WithDataSlot, "ref"> & import("react").RefAttributes<HTMLOListElement>>;
285
+ readonly List: typeof List;
98
286
  /**
99
287
  * A single crumb. Renders an `<li>` containing a `Breadcrumb.Link` or
100
288
  * `Breadcrumb.Page`.
@@ -120,7 +308,7 @@ declare const Breadcrumb: {
120
308
  * </Breadcrumb.Root>
121
309
  * ```
122
310
  */
123
- readonly Item: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLLIElement> & import("react").LiHTMLAttributes<HTMLLIElement> & WithAsChild & WithDataSlot, "ref"> & import("react").RefAttributes<HTMLLIElement>>;
311
+ readonly Item: typeof Item;
124
312
  /**
125
313
  * A link to an ancestor page. Renders an `<a>` by default; use `asChild`
126
314
  * to compose onto your app router's link (e.g. react-router's `<Link>`).
@@ -146,7 +334,7 @@ declare const Breadcrumb: {
146
334
  * </Breadcrumb.Root>
147
335
  * ```
148
336
  */
149
- readonly Link: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLAnchorElement> & import("react").AnchorHTMLAttributes<HTMLAnchorElement> & WithAsChild & WithDataSlot, "ref"> & import("react").RefAttributes<HTMLAnchorElement>>;
337
+ readonly Link: typeof Link;
150
338
  /**
151
339
  * The current page — the last crumb. Renders a `<span>` (not a link) with
152
340
  * `aria-current="page"`; the ARIA is the part's whole contract and is not
@@ -173,7 +361,7 @@ declare const Breadcrumb: {
173
361
  * </Breadcrumb.Root>
174
362
  * ```
175
363
  */
176
- readonly Page: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & WithAsChild & WithDataSlot, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
364
+ readonly Page: typeof Page;
177
365
  /**
178
366
  * A purely visual divider between crumbs, hidden from assistive
179
367
  * technology (`role="presentation"` + `aria-hidden`). Children default to
@@ -200,13 +388,7 @@ declare const Breadcrumb: {
200
388
  * </Breadcrumb.Root>
201
389
  * ```
202
390
  */
203
- readonly Separator: import("react").ForwardRefExoticComponent<(Omit<Omit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "children"> & {
204
- asChild: true;
205
- children: ReactNode;
206
- } & WithDataSlot, "ref"> | Omit<Omit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "children"> & {
207
- asChild?: false | undefined;
208
- children?: ReactNode;
209
- } & WithDataSlot, "ref">) & import("react").RefAttributes<HTMLLIElement>>;
391
+ readonly Separator: typeof Separator;
210
392
  };
211
393
  //#endregion
212
394
  export { Breadcrumb };
@@ -1 +1 @@
1
- import{t as e}from"./cx-IiQEAKf5.js";import{t}from"./icon-CDtYjF_H.js";import{n,t as r}from"./slot-DmPrjM7N.js";import{cloneElement as i,forwardRef as a,isValidElement as o}from"react";import{jsx as s}from"react/jsx-runtime";import{CaretRightIcon as c}from"@phosphor-icons/react/CaretRight";const l=a(({asChild:e,children:t,"data-slot":i,...a},o)=>s(e?r:`nav`,{ref:o,"data-slot":n(i,`breadcrumb`),"aria-label":`Breadcrumb`,...a,children:t}));l.displayName=`Breadcrumb`;const u=a(({asChild:t,children:i,className:a,"data-slot":o,...c},l)=>s(t?r:`ol`,{ref:l,"data-slot":n(o,`breadcrumb-list`),className:e(`text-muted flex flex-wrap items-center gap-1.5 text-sm`,a),...c,children:i}));u.displayName=`BreadcrumbList`;const d=a(({asChild:t,children:i,className:a,"data-slot":o,...c},l)=>s(t?r:`li`,{ref:l,"data-slot":n(o,`breadcrumb-item`),className:e(`inline-flex items-center gap-1.5`,a),...c,children:i}));d.displayName=`BreadcrumbItem`;const f=a(({asChild:t,children:i,className:a,"data-slot":o,...c},l)=>s(t?r:`a`,{ref:l,"data-slot":n(o,`breadcrumb-link`),className:e(`hover:text-strong transition-colors`,a),...c,children:i}));f.displayName=`BreadcrumbLink`;const p=a(({asChild:t,children:a,className:c,"data-slot":l,...u},d)=>{let f=t?r:`span`,p=t&&o(a)?i(a,{"aria-current":`page`}):a;return s(f,{ref:d,"data-slot":n(l,`breadcrumb-page`),className:e(`text-strong`,c),...u,"aria-current":`page`,children:p})});p.displayName=`BreadcrumbPage`;const m=a(({asChild:e,children:a,className:l,"data-slot":u,...d},f)=>{let p=e?r:`li`,m=e&&o(a)?i(a,{role:`presentation`,"aria-hidden":`true`}):a??s(t,{svg:s(c,{}),className:`size-3.5`});return s(p,{ref:f,"data-slot":n(u,`breadcrumb-separator`),className:l,...d,role:`presentation`,"aria-hidden":`true`,children:m})});m.displayName=`BreadcrumbSeparator`;const h={Root:l,List:u,Item:d,Link:f,Page:p,Separator:m};export{h as Breadcrumb};
1
+ import{t as e}from"./cx-IiQEAKf5.js";import{t}from"./icon-lZ48P8Nn.js";import{n,t as r}from"./slot-CDk0Bb9z.js";import{cloneElement as i,isValidElement as a}from"react";import{jsx as o}from"react/jsx-runtime";import{CaretRightIcon as s}from"@phosphor-icons/react/CaretRight";const c={Root:({asChild:e,children:t,"data-slot":i,ref:a,...s})=>o(e?r:`nav`,{ref:a,"data-slot":n(i,`breadcrumb`),"aria-label":`Breadcrumb`,...s,children:t}),List:({asChild:t,children:i,className:a,"data-slot":s,ref:c,...l})=>o(t?r:`ol`,{ref:c,"data-slot":n(s,`breadcrumb-list`),className:e(`text-muted flex flex-wrap items-center gap-1.5 text-sm`,a),...l,children:i}),Item:({asChild:t,children:i,className:a,"data-slot":s,ref:c,...l})=>o(t?r:`li`,{ref:c,"data-slot":n(s,`breadcrumb-item`),className:e(`inline-flex items-center gap-1.5`,a),...l,children:i}),Link:({asChild:t,children:i,className:a,"data-slot":s,ref:c,...l})=>o(t?r:`a`,{ref:c,"data-slot":n(s,`breadcrumb-link`),className:e(`hover:text-strong transition-colors`,a),...l,children:i}),Page:({asChild:t,children:s,className:c,"data-slot":l,ref:u,...d})=>{let f=t?r:`span`,p=t&&a(s)?i(s,{"aria-current":`page`}):s;return o(f,{ref:u,"data-slot":n(l,`breadcrumb-page`),className:e(`text-strong`,c),...d,"aria-current":`page`,children:p})},Separator:({asChild:e,children:c,className:l,"data-slot":u,ref:d,...f})=>{let p=e?r:`li`,m=e&&a(c)?i(c,{role:`presentation`,"aria-hidden":`true`}):c??o(t,{svg:o(s,{}),className:`size-3.5`});return o(p,{ref:d,"data-slot":n(u,`breadcrumb-separator`),className:l,...f,role:`presentation`,"aria-hidden":`true`,children:m})}};export{c as Breadcrumb};
@@ -0,0 +1 @@
1
+ import{t as e}from"./cx-IiQEAKf5.js";import{t}from"./icon-lZ48P8Nn.js";import{t as n}from"./slot-CDk0Bb9z.js";import{t as r}from"./booleanish-BfvnW6vy.js";import{t as i}from"./button-DvHMWAPl.js";import{Children as a,cloneElement as o,isValidElement as s}from"react";import c from"tiny-invariant";import{Fragment as l,jsx as u,jsxs as d}from"react/jsx-runtime";import{CircleNotchIcon as f}from"@phosphor-icons/react/CircleNotch";const p=({"aria-disabled":p,appearance:m,asChild:h=!1,children:g,className:_,disabled:v,icon:y,intent:b,isLoading:x=!1,label:S,ref:C,size:w=`md`,type:T,...E})=>{let D=r(p??v??x),O=x?u(f,{className:`animate-spin`}):y,k={"aria-disabled":D,"data-slot":`icon-button`,className:e(i({appearance:m,intent:b,isLoading:x,size:w}),_),"data-appearance":m,"data-disabled":D,"data-icon-button":!0,"data-intent":b,"data-loading":x,"data-size":w,disabled:D,ref:C,...E},A=d(l,{children:[u(`span`,{className:`sr-only`,children:S}),u(t,{svg:O})]});return h?(c(s(g)&&a.only(g),"When using `asChild`, IconButton must be passed a single child as a JSX tag."),u(n,{...k,children:o(g,{},A)})):u(`button`,{...k,type:T??`button`,children:A})};export{p as t};
@@ -1,7 +1,7 @@
1
- import { t as WithAsChild } from "./as-child-CYEVu1WY.js";
2
- import { r as VariantProps } from "./index-D47aqlpz.js";
3
- import "./button-DcXOWUYo.js";
4
- import "./icon-button-BvQvT790.js";
1
+ import { n as WithAsChild } from "./as-child-D23mGo4f.js";
2
+ import { r as VariantProps } from "./index-DA4ig3gj.js";
3
+ import "./button-DARFK2KJ.js";
4
+ import "./button-C7vAl6lS.js";
5
5
  import { ComponentProps } from "react";
6
6
  //#region src/components/button/button-group.d.ts
7
7
  declare const buttonGroupVariants: (props?: ({
@@ -26,6 +26,6 @@ type ButtonGroupProps = ComponentProps<"div"> & ButtonGroupVariants & WithAsChil
26
26
  * </ButtonGroup>
27
27
  * ```
28
28
  */
29
- declare const ButtonGroup: import("react").ForwardRefExoticComponent<Omit<ButtonGroupProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
29
+ declare const ButtonGroup: ({ appearance, asChild, className, children, ref, ...props }: ButtonGroupProps) => import("react").JSX.Element;
30
30
  //#endregion
31
31
  export { ButtonGroupProps as n, ButtonGroup as t };
@@ -1,8 +1,8 @@
1
- import { t as WithAsChild } from "./as-child-CYEVu1WY.js";
2
- import { i as DeepNonNullable, r as VariantProps } from "./index-D47aqlpz.js";
3
- import { t as ButtonIntent } from "./intents-DdSKSj1c.js";
4
- import { ButtonHTMLAttributes, ReactNode } from "react";
5
- //#region src/components/button/icon-button.d.ts
1
+ import { n as WithAsChild } from "./as-child-D23mGo4f.js";
2
+ import { r as VariantProps } from "./index-DA4ig3gj.js";
3
+ import { t as ButtonIntent } from "./button-DdSKSj1c.js";
4
+ import { ComponentProps, ReactNode } from "react";
5
+ //#region src/components/button/icon-button-variants.d.ts
6
6
  /**
7
7
  * The visual style of an `IconButton`: how much visual weight it carries,
8
8
  * independent of its tone (`intent`). IconButton has no `filled` or `link`
@@ -10,6 +10,17 @@ import { ButtonHTMLAttributes, ReactNode } from "react";
10
10
  * link has no text to read as a link.
11
11
  */
12
12
  type IconButtonAppearance = "ghost" | "outlined";
13
+ /**
14
+ * Composes the className for an `IconButton` from its variant props. Lives in
15
+ * its own module (rather than `icon-button.tsx`) so that components which only
16
+ * need the classes (e.g. `Calendar`'s nav buttons) can import them without
17
+ * pulling the `IconButton` implementation into their module graph.
18
+ *
19
+ * @example
20
+ * ```tsx
21
+ * const navButtonClasses = iconButtonVariants({ appearance: "ghost", intent: "neutral", size: "sm" });
22
+ * ```
23
+ */
13
24
  declare const iconButtonVariants: (props?: ({
14
25
  appearance?: "ghost" | "outlined" | null | undefined;
15
26
  intent?: "accent" | "danger" | "neutral" | null | undefined;
@@ -17,10 +28,12 @@ declare const iconButtonVariants: (props?: ({
17
28
  size?: "lg" | "md" | "sm" | "xl" | "xs" | null | undefined;
18
29
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
19
30
  type IconButtonVariants = VariantProps<typeof iconButtonVariants>;
31
+ //#endregion
32
+ //#region src/components/button/icon-button.d.ts
20
33
  /**
21
34
  * The props for the `IconButton` component.
22
35
  */
23
- type IconButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & WithAsChild & Omit<IconButtonVariants, "appearance" | "intent"> & {
36
+ type IconButtonProps = ComponentProps<"button"> & WithAsChild & Omit<IconButtonVariants, "appearance" | "intent"> & {
24
37
  /**
25
38
  * The visual style of the IconButton. Required — there is no default,
26
39
  * so every call site states the weight it means.
@@ -68,7 +81,7 @@ type IconButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & WithAsChild & O
68
81
  *
69
82
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#type
70
83
  */
71
- type?: ButtonHTMLAttributes<HTMLButtonElement>["type"];
84
+ type?: ComponentProps<"button">["type"];
72
85
  };
73
86
  /**
74
87
  * Renders a button or a component that looks like a button, an interactive
@@ -112,60 +125,6 @@ type IconButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & WithAsChild & O
112
125
  * />
113
126
  * ```
114
127
  */
115
- declare const IconButton: import("react").ForwardRefExoticComponent<ButtonHTMLAttributes<HTMLButtonElement> & WithAsChild & Omit<Partial<DeepNonNullable<import("class-variance-authority").VariantProps<(props?: ({
116
- appearance?: "ghost" | "outlined" | null | undefined;
117
- intent?: "accent" | "danger" | "neutral" | null | undefined;
118
- isLoading?: boolean | null | undefined;
119
- size?: "lg" | "md" | "sm" | "xl" | "xs" | null | undefined;
120
- } & import("class-variance-authority/types").ClassProp) | undefined) => string>>>, "appearance" | "intent"> & {
121
- /**
122
- * The visual style of the IconButton. Required — there is no default,
123
- * so every call site states the weight it means.
124
- *
125
- * @enum
126
- * - `"ghost"`: no border or fill until hovered
127
- * - `"outlined"`: bordered on the form background
128
- */
129
- appearance: IconButtonAppearance;
130
- /**
131
- * The tone of the IconButton — the purpose its color communicates to
132
- * the user. Required — there is no default, so every call site states
133
- * the tone it means. `"neutral"` is the workhorse tone (and matches
134
- * how IconButton rendered before it had an intent axis).
135
- *
136
- * @enum
137
- * - `"neutral"`: the workhorse tone — routine and secondary actions
138
- * - `"accent"`: deliberate brand emphasis; reach for it when an action should carry the brand color
139
- * - `"danger"`: a destructive or irreversible action
140
- */
141
- intent: ButtonIntent;
142
- /**
143
- * The accessible label for the icon. This label will be visually hidden but announced to screen reader users, similar to alt text for img tags.
144
- */
145
- label: string;
146
- /**
147
- * An icon to render inside the button. If the `state` is `"pending"`, then
148
- * the icon will automatically be replaced with a spinner.
149
- */
150
- icon: ReactNode;
151
- /**
152
- * The behavior of the button when activated. Defaults to `"button"`, so the
153
- * button does not accidentally submit a surrounding `<form>` — pass
154
- * `type="submit"` to submit a form, or `type="reset"` to reset it.
155
- *
156
- * When `asChild` is used, `type` has no effect and is not forwarded to the
157
- * child, so a wrapped anchor never inherits a `button` `type`. See:
158
- * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#type
159
- *
160
- * @default "button"
161
- * @enum
162
- * - `"button"`: The button has no default behavior, and does nothing when pressed by default. It can have client-side scripts listen to the element's events, which are triggered when the events occur.
163
- * - `"reset"`: The button resets all the controls to their initial values.
164
- * - `"submit"`: The button submits the form data to the server.
165
- *
166
- * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#type
167
- */
168
- type?: ButtonHTMLAttributes<HTMLButtonElement>["type"];
169
- } & import("react").RefAttributes<HTMLButtonElement>>;
128
+ declare const IconButton: ({ "aria-disabled": _ariaDisabled, appearance, asChild, children, className, disabled: _disabled, icon: propIcon, intent, isLoading, label, ref, size, type, ...props }: IconButtonProps) => import("react").JSX.Element;
170
129
  //#endregion
171
- export { IconButtonAppearance as n, IconButtonProps as r, IconButton as t };
130
+ export { IconButtonProps as n, IconButtonAppearance as r, IconButton as t };
@@ -0,0 +1 @@
1
+ import{t as e}from"./cx-IiQEAKf5.js";import{t}from"./slot-CDk0Bb9z.js";import{jsx as n}from"react/jsx-runtime";import{cva as r}from"class-variance-authority";const i=r(`border-form inline-flex items-center rounded-md`,{variants:{appearance:{panel:`bg-form gap-0.5 border p-0.75 [--icon-button-border-radius:0.125rem] [&>.separator]:mx-px`,ghost:`gap-0.5`,outlined:``}}}),a=({appearance:r,asChild:a,className:o,children:s,ref:c,...l})=>n(a?t:`div`,{"data-slot":`button-group`,className:e(i({appearance:r}),o),ref:c,...l,children:s});export{a as t};
@@ -1,6 +1,6 @@
1
- import { t as WithAsChild } from "./as-child-CYEVu1WY.js";
2
- import { r as VariantProps } from "./index-D47aqlpz.js";
3
- import { t as ButtonIntent } from "./intents-DdSKSj1c.js";
1
+ import { n as WithAsChild } from "./as-child-D23mGo4f.js";
2
+ import { r as VariantProps } from "./index-DA4ig3gj.js";
3
+ import { t as ButtonIntent } from "./button-DdSKSj1c.js";
4
4
  import { ComponentProps, ReactNode } from "react";
5
5
  //#region src/components/button/button.d.ts
6
6
  /**
@@ -126,6 +126,6 @@ type ButtonProps = ComponentProps<"button"> & Omit<ButtonVariants, "appearance"
126
126
  * <IconButton appearance="outlined" intent="neutral" icon={<CopyIcon />} label="Copy page" onClick={copyPage} />
127
127
  * ```
128
128
  */
129
- declare const Button: import("react").ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
129
+ declare const Button: ({ "aria-disabled": _ariaDisabled, appearance, asChild, children, className, disabled: _disabled, icon: propIcon, iconPlacement, intent, isLoading, ref, size, type, ...props }: ButtonProps) => import("react").JSX.Element;
130
130
  //#endregion
131
131
  export { ButtonAppearance as n, ButtonProps as r, Button as t };
@@ -0,0 +1 @@
1
+ import{t as e}from"./cx-IiQEAKf5.js";import{t}from"./icon-lZ48P8Nn.js";import{t as n}from"./slot-CDk0Bb9z.js";import{t as r}from"./booleanish-BfvnW6vy.js";import{t as i}from"./clsx-DUGZgXfJ.js";import{Children as a,cloneElement as o,isValidElement as s}from"react";import c from"tiny-invariant";import{Fragment as l,jsx as u,jsxs as d}from"react/jsx-runtime";import{cva as f}from"class-variance-authority";import{CircleNotchIcon as p}from"@phosphor-icons/react/CircleNotch";const m=f(``,{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`},{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`}]}),h={xs:`ps-1.5`,sm:`ps-2`,md:`ps-2.5`,lg:`ps-3`,xl:`ps-3.5`},g={xs:`pe-1.5`,sm:`pe-2`,md:`pe-2.5`,lg:`pe-3`,xl:`pe-3.5`},_=({"aria-disabled":f,appearance:_,asChild:v,children:y,className:b,disabled:x,icon:S,iconPlacement:C=`start`,intent:w,isLoading:T=!1,ref:E,size:D=`md`,type:O,...k})=>{let A=r(f??x??T),j=T?u(p,{className:`animate-spin`}):S,M=j&&_!==`link`,N={"aria-disabled":A,"data-slot":`button`,className: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`,`not-disabled:active:scale-97 ease-out transition-transform duration-150`,m({appearance:_,intent:w,isLoading:T,size:D}),_!==`link`&&`font-sans`,M&&C===`start`&&h[D],M&&C===`end`&&g[D],b),"data-appearance":_,"data-disabled":A,"data-intent":w,"data-loading":T,"data-size":_===`link`?void 0:D,disabled:A,ref:E,...k};return v?(c(s(y)&&a.only(y),"When using `asChild`, Button must be passed a single child as a JSX tag."),u(n,{...N,children:o(y,{},d(l,{children:[j&&u(t,{svg:j,className:i(C===`end`&&`order-last`)}),y.props.children]}))})):d(`button`,{...N,type:O??`button`,children:[j&&u(t,{svg:j,className:i(C===`end`&&`order-last`)}),y]})};export{_ as t};
@@ -0,0 +1 @@
1
+ import{t as e}from"./cx-IiQEAKf5.js";import{cva as t}from"class-variance-authority";const n=t(e(`icon-button`,`inline-flex shrink-0 items-center justify-center rounded-[var(--icon-button-border-radius,0.375rem)] border`,`focus:outline-hidden focus-visible:ring-4`,`disabled:cursor-default disabled:opacity-50`,`not-disabled:active:scale-97 ease-out transition-transform duration-150`),{variants:{appearance:{ghost:`text-accent-600 focus-visible:ring-focus-accent not-disabled:hover:bg-accent-500/10 not-disabled:hover:text-accent-700 border-transparent`,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`},intent:{accent:``,danger:``,neutral:``},isLoading:{false:``,true:`opacity-50`},size:{xs:`size-6`,sm:`size-7`,md:`size-9`,lg:`size-10`,xl:`size-12`}},defaultVariants:{intent:`neutral`,size:`md`},compoundVariants:[{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:`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`}]});export{n as t};
package/dist/button.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { t as ButtonIntent } from "./intents-DdSKSj1c.js";
2
- import { n as ButtonAppearance, r as ButtonProps, t as Button } from "./button-DcXOWUYo.js";
3
- import { n as IconButtonAppearance, r as IconButtonProps, t as IconButton } from "./icon-button-BvQvT790.js";
4
- import { n as ButtonGroupProps, t as ButtonGroup } from "./index-BSAizFod.js";
5
- import { t as ButtonSize } from "./sizes-BCoI4bhP.js";
1
+ import { t as ButtonIntent } from "./button-DdSKSj1c.js";
2
+ import { n as ButtonAppearance, r as ButtonProps, t as Button } from "./button-DARFK2KJ.js";
3
+ import { n as IconButtonProps, r as IconButtonAppearance, t as IconButton } from "./button-C7vAl6lS.js";
4
+ import { n as ButtonGroupProps, t as ButtonGroup } from "./button-C-gMbPso.js";
5
+ import { t as ButtonSize } from "./button-BCoI4bhP.js";
6
6
  export { Button, type ButtonAppearance, ButtonGroup, type ButtonGroupProps, type ButtonIntent, type ButtonProps, type ButtonSize, IconButton, type IconButtonAppearance, type IconButtonProps };
package/dist/button.js CHANGED
@@ -1 +1 @@
1
- import{t as e}from"./icon-button-DV2-GZHf.js";import{t}from"./button-ClC60Nzg.js";import{t as n}from"./button-5t6-JS_I.js";export{t as Button,n as ButtonGroup,e as IconButton};
1
+ import{t as e}from"./button-BAno7KIU.js";import{t}from"./button-DjpEKt2X.js";import{t as n}from"./button-D9n09xUg.js";export{t as Button,n as ButtonGroup,e as IconButton};
@@ -28,8 +28,5 @@ type CalendarProps = ComponentProps<typeof DayPicker>;
28
28
  * https://github.com/ngrok/mantle/issues
29
29
  */
30
30
  declare function Calendar({ className, classNames, showOutsideDays, ...props }: CalendarProps): import("react").JSX.Element;
31
- declare namespace Calendar {
32
- var displayName: string;
33
- }
34
31
  //#endregion
35
32
  export { Calendar, type CalendarProps, type DateRange };
package/dist/calendar.js CHANGED
@@ -1 +1 @@
1
- import{t as e}from"./cx-IiQEAKf5.js";import{t}from"./icon-CDtYjF_H.js";import{n}from"./icon-button-DV2-GZHf.js";import{jsx as r}from"react/jsx-runtime";import{CaretRightIcon as i}from"@phosphor-icons/react/CaretRight";import{CaretLeftIcon as a}from"@phosphor-icons/react/CaretLeft";import{DayPicker as o}from"react-day-picker";const s=n({appearance:`ghost`,intent:`neutral`,size:`sm`});function c({className:n,classNames:c,showOutsideDays:l=!1,...u}){return r(o,{"data-slot":`calendar`,animate:!1,components:{Chevron:e=>r(t,{svg:e.orientation===`left`?r(a,{}):r(i,{}),className:`size-4`})},classNames:{root:e(`isolate`,n),button_next:e(s,`absolute right-0`),button_previous:e(s,`absolute left-0`),caption_label:`text-sm font-medium`,day:e(`overflow-hidden text-center text-sm p-0 relative focus-within:relative focus-within:z-20 size-7 rounded-md`,u.mode===`range`?`first:has-aria-selected:rounded-l-md last:has-aria-selected:rounded-r-md`:``),day_button:`day size-full rounded-md not-aria-selected:not-disabled:hover:bg-filled-accent/15`,disabled:`text-muted opacity-50`,hidden:`invisible`,month:`space-y-4`,month_caption:`flex justify-center pt-1 relative items-center`,month_grid:`w-full border-collapse space-y-1`,months:`flex flex-col sm:flex-row gap-y-4 sm:gap-x-4 sm:gap-y-0 relative max-w-min`,nav:`flex items-center absolute inset-x-0 top-1 h-5 justify-between z-10`,outside:`day-outside aria-selected:text-on-filled opacity-50 text-muted`,range_end:`day-range-end [&:not(.day-range-start)]:rounded-l-none`,range_middle:`day-range-middle not-disabled:aria-selected:bg-filled-accent/15 aria-selected:text-strong rounded-none not-disabled:aria-selected:hover:bg-filled-accent/25`,range_start:`day-range-start [&:not(.day-range-end)]:rounded-r-none`,selected:`not-disabled:bg-filled-accent text-on-filled not-disabled:hover:bg-filled-accent`,today:`not-aria-selected:not-disabled:text-accent-600 font-medium not-aria-selected:not-disabled:bg-filled-accent/10 rounded-md`,week:`flex w-full mt-1`,weekday:`text-body w-7 text-[0.8rem] text-center font-normal`,weekdays:`flex`,...c},showOutsideDays:l,...u})}c.displayName=`Calendar`;export{c as Calendar};
1
+ import{t as e}from"./cx-IiQEAKf5.js";import{t}from"./icon-lZ48P8Nn.js";import{t as n}from"./button-DvHMWAPl.js";import{jsx as r}from"react/jsx-runtime";import{CaretRightIcon as i}from"@phosphor-icons/react/CaretRight";import{CaretLeftIcon as a}from"@phosphor-icons/react/CaretLeft";import{DayPicker as o}from"react-day-picker";const s=n({appearance:`ghost`,intent:`neutral`,size:`sm`});function c({className:n,classNames:c,showOutsideDays:l=!1,...u}){return r(o,{"data-slot":`calendar`,animate:!1,components:{Chevron:e=>r(t,{svg:e.orientation===`left`?r(a,{}):r(i,{}),className:`size-4`})},classNames:{root:e(`isolate`,n),button_next:e(s,`absolute right-0`),button_previous:e(s,`absolute left-0`),caption_label:`text-sm font-medium`,day:e(`overflow-hidden text-center text-sm p-0 relative focus-within:relative focus-within:z-20 size-7 rounded-md`,u.mode===`range`?`first:has-aria-selected:rounded-l-md last:has-aria-selected:rounded-r-md`:``),day_button:`day size-full rounded-md not-aria-selected:not-disabled:hover:bg-filled-accent/15`,disabled:`text-muted opacity-50`,hidden:`invisible`,month:`space-y-4`,month_caption:`flex justify-center pt-1 relative items-center`,month_grid:`w-full border-collapse space-y-1`,months:`flex flex-col sm:flex-row gap-y-4 sm:gap-x-4 sm:gap-y-0 relative max-w-min`,nav:`flex items-center absolute inset-x-0 top-1 h-5 justify-between z-10`,outside:`day-outside aria-selected:text-on-filled opacity-50 text-muted`,range_end:`day-range-end [&:not(.day-range-start)]:rounded-l-none`,range_middle:`day-range-middle not-disabled:aria-selected:bg-filled-accent/15 aria-selected:text-strong rounded-none not-disabled:aria-selected:hover:bg-filled-accent/25`,range_start:`day-range-start [&:not(.day-range-end)]:rounded-r-none`,selected:`not-disabled:bg-filled-accent text-on-filled not-disabled:hover:bg-filled-accent`,today:`not-aria-selected:not-disabled:text-accent-600 font-medium not-aria-selected:not-disabled:bg-filled-accent/10 rounded-md`,week:`flex w-full mt-1`,weekday:`text-body w-7 text-[0.8rem] text-center font-normal`,weekdays:`flex`,...c},showOutsideDays:l,...u})}export{c as Calendar};