@ngrok/mantle 0.80.0 → 0.81.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 (175) hide show
  1. package/dist/accordion.d.ts +19 -37
  2. package/dist/accordion.js +1 -1
  3. package/dist/agent.json +5 -1
  4. package/dist/alert-dialog.d.ts +15 -48
  5. package/dist/alert-dialog.js +1 -1
  6. package/dist/alert.d.ts +167 -83
  7. package/dist/alert.js +1 -1
  8. package/dist/{anchor-_2meGDfj.js → anchor-DfeXTpKW.js} +1 -1
  9. package/dist/anchor.js +1 -1
  10. package/dist/area-chart.d.ts +505 -0
  11. package/dist/area-chart.js +1 -0
  12. package/dist/badge.js +1 -1
  13. package/dist/bar-chart.d.ts +492 -0
  14. package/dist/bar-chart.js +1 -0
  15. package/dist/breadcrumb.d.ts +6 -24
  16. package/dist/breadcrumb.js +1 -1
  17. package/dist/button-BAno7KIU.js +1 -0
  18. package/dist/{index-C2jj8U4a.d.ts → button-C-gMbPso.d.ts} +2 -2
  19. package/dist/{icon-button-C1AfGnQx.d.ts → button-C7vAl6lS.d.ts} +16 -3
  20. package/dist/{button-BPMwa2jN.d.ts → button-DARFK2KJ.d.ts} +1 -1
  21. package/dist/{button-5WsvzIQ6.js → button-DjpEKt2X.js} +1 -1
  22. package/dist/button-DvHMWAPl.js +1 -0
  23. package/dist/button.d.ts +5 -5
  24. package/dist/button.js +1 -1
  25. package/dist/calendar.js +1 -1
  26. package/dist/card.d.ts +5 -20
  27. package/dist/card.js +1 -1
  28. package/dist/centered-layout.d.ts +5 -20
  29. package/dist/centered-layout.js +1 -1
  30. package/dist/chart-1cVjAcj8.d.ts +334 -0
  31. package/dist/chart-Do2qkrxl.js +2 -0
  32. package/dist/checkbox-0EoxOyMA.js +1 -0
  33. package/dist/checkbox.d.ts +13 -1
  34. package/dist/checkbox.js +1 -1
  35. package/dist/choice-BHwFSSyv.js +1 -0
  36. package/dist/{choice-Ct0KK8jw.d.ts → choice-BNRQXszu.d.ts} +5 -20
  37. package/dist/choice.d.ts +1 -1
  38. package/dist/choice.js +1 -1
  39. package/dist/code-block.d.ts +60 -44
  40. package/dist/code-block.js +6 -6
  41. package/dist/code-block_highlight-utils.d.ts +1 -1
  42. package/dist/code-block_highlight-utils.js +1 -1
  43. package/dist/combobox.d.ts +9 -33
  44. package/dist/combobox.js +1 -1
  45. package/dist/command.d.ts +70 -18
  46. package/dist/command.js +1 -1
  47. package/dist/data-table.d.ts +6 -12
  48. package/dist/data-table.js +1 -1
  49. package/dist/description-list.d.ts +40 -32
  50. package/dist/description-list.js +1 -1
  51. package/dist/{primitive-CJRIlrLz.d.ts → dialog-BM4wPCft.d.ts} +9 -16
  52. package/dist/dialog-DWZWd5Jt.js +1 -0
  53. package/dist/dialog.d.ts +13 -43
  54. package/dist/dialog.js +1 -1
  55. package/dist/dropdown-menu-BbbQuae2.d.ts +1 -0
  56. package/dist/{dropdown-menu-CoyozLzy.d.ts → dropdown-menu-D6pMAY7I.d.ts} +156 -54
  57. package/dist/dropdown-menu-RyDWoKHx.js +1 -0
  58. package/dist/dropdown-menu.d.ts +2 -2
  59. package/dist/dropdown-menu.js +1 -1
  60. package/dist/empty.d.ts +6 -21
  61. package/dist/empty.js +1 -1
  62. package/dist/field-B1wqeZr4.js +1 -0
  63. package/dist/field.d.ts +26 -53
  64. package/dist/field.js +1 -1
  65. package/dist/flag.d.ts +1 -1
  66. package/dist/hooks.js +1 -1
  67. package/dist/hover-card.d.ts +3 -12
  68. package/dist/hover-card.js +1 -1
  69. package/dist/{svg-only-CdI_v82i.d.ts → icon-CX_gj6sW.d.ts} +1 -1
  70. package/dist/{icon-BDqpcZ-n.d.ts → icon-k4E9yNWD.d.ts} +1 -1
  71. package/dist/icon-lZ48P8Nn.js +1 -0
  72. package/dist/icon.d.ts +3 -3
  73. package/dist/icon.js +1 -1
  74. package/dist/icons-DLCs1hLP.js +1 -0
  75. package/dist/icons.d.ts +53 -2
  76. package/dist/icons.js +1 -1
  77. package/dist/input-BnlpQF0c.js +1 -0
  78. package/dist/{input-DV9M6K4v.d.ts → input-BuYDU6CF.d.ts} +1 -1
  79. package/dist/input.d.ts +2 -2
  80. package/dist/input.js +1 -1
  81. package/dist/line-chart.d.ts +491 -0
  82. package/dist/line-chart.js +1 -0
  83. package/dist/{virtual-UrzmaSQm.js → list-51KQvENW.js} +1 -1
  84. package/dist/list.d.ts +5 -20
  85. package/dist/list.js +1 -1
  86. package/dist/llms.txt +5 -1
  87. package/dist/mantle-dark-high-contrast.css +17 -0
  88. package/dist/mantle-dark.css +13 -0
  89. package/dist/mantle-light-high-contrast.css +15 -0
  90. package/dist/mantle.css +29 -0
  91. package/dist/media-object.d.ts +45 -12
  92. package/dist/media-object.js +1 -1
  93. package/dist/multi-select.d.ts +14 -53
  94. package/dist/multi-select.js +1 -1
  95. package/dist/otp-input.d.ts +5 -17
  96. package/dist/otp-input.js +1 -1
  97. package/dist/pagination.d.ts +11 -21
  98. package/dist/pagination.js +1 -1
  99. package/dist/{index-B8mIWKIU.d.ts → popover-CE4OlWkd.d.ts} +1 -4
  100. package/dist/popover-CQ9s7jG5.js +1 -0
  101. package/dist/popover.d.ts +1 -1
  102. package/dist/popover.js +1 -1
  103. package/dist/primitive-trJDqIXJ.js +1 -0
  104. package/dist/progress.d.ts +2 -8
  105. package/dist/progress.js +1 -1
  106. package/dist/qr-code.d.ts +4 -16
  107. package/dist/qr-code.js +1 -1
  108. package/dist/radio-group.d.ts +129 -40
  109. package/dist/radio-group.js +1 -1
  110. package/dist/sandboxed-on-click.d.ts +2 -2
  111. package/dist/scatter-plot.d.ts +495 -0
  112. package/dist/scatter-plot.js +1 -0
  113. package/dist/{select-idm1jy7y.d.ts → select-0z7HVS6r.d.ts} +8 -29
  114. package/dist/select-BCHWvmyC.js +1 -0
  115. package/dist/select.d.ts +1 -1
  116. package/dist/select.js +1 -1
  117. package/dist/selectable-list.d.ts +11 -38
  118. package/dist/selectable-list.js +1 -1
  119. package/dist/sheet.d.ts +22 -49
  120. package/dist/sheet.js +1 -1
  121. package/dist/skip-to-main-link.js +1 -1
  122. package/dist/slider.js +1 -1
  123. package/dist/slot.d.ts +1 -1
  124. package/dist/split-button.d.ts +155 -31
  125. package/dist/split-button.js +1 -1
  126. package/dist/switch.d.ts +1 -1
  127. package/dist/switch.js +1 -1
  128. package/dist/table-CGxJwtbL.js +1 -0
  129. package/dist/{table-DUSvU_Jw.d.ts → table-CZBYEmyK.d.ts} +11 -38
  130. package/dist/table.d.ts +1 -1
  131. package/dist/table.js +1 -1
  132. package/dist/tabs.d.ts +21 -36
  133. package/dist/tabs.js +1 -1
  134. package/dist/text-area.d.ts +2 -2
  135. package/dist/text-area.js +1 -1
  136. package/dist/theme-C26-Xolp.js +1 -0
  137. package/dist/{themes-CYNpplwN.d.ts → theme-FbfjYiD3.d.ts} +16 -0
  138. package/dist/theme-switcher.d.ts +6 -15
  139. package/dist/theme-switcher.js +1 -1
  140. package/dist/theme.d.ts +42 -2
  141. package/dist/theme.js +1 -1
  142. package/dist/toast.d.ts +9 -17
  143. package/dist/toast.js +1 -1
  144. package/dist/tooltip.d.ts +26 -8
  145. package/dist/tooltip.js +1 -1
  146. package/dist/types.js +1 -1
  147. package/package.json +20 -14
  148. package/dist/checkbox-Cq17y0-R.js +0 -1
  149. package/dist/choice-Cc8dA5r8.js +0 -1
  150. package/dist/dialog-CQ2C6vkE.js +0 -1
  151. package/dist/dropdown-menu-CSCDdA3K.js +0 -1
  152. package/dist/field-context-BR01g789.js +0 -1
  153. package/dist/icon-CGgMKpJg.js +0 -1
  154. package/dist/icon-button-DiOhreJD.js +0 -1
  155. package/dist/index-CdPXa9h1.d.ts +0 -1
  156. package/dist/input-CVyAVbim.js +0 -1
  157. package/dist/popover-CBMADtjV.js +0 -1
  158. package/dist/primitive-DCPHJsRs.js +0 -1
  159. package/dist/select-SR_9-bxA.js +0 -1
  160. package/dist/table-GDkapNFi.js +0 -1
  161. package/dist/theme-provider-BftkIiZn.js +0 -1
  162. package/dist/theme-wVnzzx2F.js +0 -1
  163. package/dist/toast-DKgMRv4F.js +0 -1
  164. /package/dist/{sizes-BCoI4bhP.d.ts → button-BCoI4bhP.d.ts} +0 -0
  165. /package/dist/{intents-DdSKSj1c.d.ts → button-DdSKSj1c.d.ts} +0 -0
  166. /package/dist/{resolve-pre-rendered-props-B6OlZrSI.d.ts → code-block-B6OlZrSI.d.ts} +0 -0
  167. /package/dist/{resolve-pre-rendered-props-C9uaM9-V.js → code-block-C9uaM9-V.js} +0 -0
  168. /package/dist/{validation-7QeiTFwl.d.ts → field-7QeiTFwl.d.ts} +0 -0
  169. /package/dist/{validation-Bpptk_9t.js → field-Bpptk_9t.js} +0 -0
  170. /package/dist/{types-D1RY5Tcj.d.ts → icon-D1RY5Tcj.d.ts} +0 -0
  171. /package/dist/{svg-only-d-nMCfAI.js → icon-d-nMCfAI.js} +0 -0
  172. /package/dist/{sort-B_DDQcVD.js → icons-B_DDQcVD.js} +0 -0
  173. /package/dist/{traffic-policy-file-CF1lbWtp.js → icons-CF1lbWtp.js} +0 -0
  174. /package/dist/{is-input-CXmS0OFN.js → input-CXmS0OFN.js} +0 -0
  175. /package/dist/{index-BtwKJTLq.d.ts → slot-BtwKJTLq.d.ts} +0 -0
@@ -0,0 +1,492 @@
1
+ import { _ as SeriesColor, a as LegendPrimitiveProps, c as XAxisPrimitiveProps, d as BarTexture, f as ChartDatum, i as GridPrimitiveProps, l as YAxisPrimitiveProps, n as ChartRootBaseProps, o as ReferenceLinePrimitiveProps, p as ChartDatumEvent, r as CopyButtonPrimitiveProps, s as TooltipPrimitiveProps, t as ChartAccessibilityProps, u as BarOrientation } from "./chart-1cVjAcj8.js";
2
+ //#region src/components/bar-chart/bar-chart.d.ts
3
+ /**
4
+ * Props for {@link BarChart.Root}. Bars encode value by length from a shared
5
+ * zero baseline, so the y domain minimum is fixed at `0` — a truncated-bar
6
+ * axis is unrepresentable.
7
+ */
8
+ type BarChartRootProps<TDatum extends ChartDatum = ChartDatum> = Omit<ChartRootBaseProps, "yDomain"> & ChartAccessibilityProps & {
9
+ /** Rows of data; each `BarChart.Bar` reads one numeric key per row. */
10
+ data: readonly TDatum[];
11
+ /** The key of each row's category (x) value. */
12
+ xKey: Extract<keyof TDatum, string>;
13
+ /** Override the automatic y maximum. The minimum is always the zero baseline. */
14
+ yDomain?: [0, number | "auto"];
15
+ /**
16
+ * The direction the bars point — this names the bars, not an axis.
17
+ * `"vertical"` (default) bars stand up from a bottom baseline with
18
+ * categories along the x axis; `"horizontal"` bars run rightward from a
19
+ * left baseline with categories down the y axis — better for long category
20
+ * labels or many categories. The value axis, baseline, reference lines, and
21
+ * `"perpendicular"` texture all flip to match.
22
+ */
23
+ orientation?: BarOrientation;
24
+ };
25
+ /**
26
+ * Props for {@link BarChart.Bar}.
27
+ */
28
+ type BarChartBarProps = {
29
+ /** The row key this series reads its numeric values from. */
30
+ dataKey: string;
31
+ /** Display name for the legend, tooltip, and data table. Defaults to `dataKey`. */
32
+ label?: string;
33
+ /**
34
+ * One of the validated chart tokens (`"chart-1"`…`"chart-8"`, `"chart-other"`)
35
+ * or any CSS color as an escape hatch. Defaults to the next sticky slot in
36
+ * mount order. Static colors (raw hex) do not adapt across themes; custom
37
+ * palettes must be validated for colorblind-safe adjacency and surface
38
+ * contrast, and a series that carries good/bad meaning should wear the
39
+ * semantic status colors, never a categorical slot.
40
+ */
41
+ color?: SeriesColor;
42
+ /**
43
+ * The fill texture the series wears, on canvas and on its legend key:
44
+ * `"solid"` (default), diagonal hatch lines at 45° (`"hatch"`), the 135°
45
+ * mirror (`"hatch-reverse"`), both (`"crosshatch"`), rungs perpendicular
46
+ * to the bar's length (`"perpendicular"`), or an offset dot grid
47
+ * (`"dots"`). Texture is a redundant identity encoding alongside color —
48
+ * tone-on-tone ink from the series' own fill — so grouped and stacked
49
+ * series stay distinguishable without color vision, in grayscale print,
50
+ * and under forced colors. Keep it opt-in and purposeful, never
51
+ * decorative: on a multi-series chart, leave the first series solid and
52
+ * texture the rest.
53
+ */
54
+ texture?: BarTexture;
55
+ };
56
+ /**
57
+ * Props for {@link BarChart.Grid}.
58
+ */
59
+ type BarChartGridProps = GridPrimitiveProps;
60
+ /**
61
+ * Props for {@link BarChart.XAxis}. The tick formatter receives the row's
62
+ * category value.
63
+ */
64
+ type BarChartXAxisProps = XAxisPrimitiveProps;
65
+ /**
66
+ * Props for {@link BarChart.YAxis}.
67
+ */
68
+ type BarChartYAxisProps = YAxisPrimitiveProps;
69
+ /**
70
+ * Props for {@link BarChart.ReferenceLine}.
71
+ */
72
+ type BarChartReferenceLineProps = ReferenceLinePrimitiveProps;
73
+ /**
74
+ * Props for {@link BarChart.Tooltip}.
75
+ */
76
+ type BarChartTooltipProps = TooltipPrimitiveProps;
77
+ /**
78
+ * Props for {@link BarChart.Legend}.
79
+ */
80
+ type BarChartLegendProps = LegendPrimitiveProps;
81
+ /**
82
+ * Props for {@link BarChart.CopyButton}.
83
+ */
84
+ type BarChartCopyButtonProps = CopyButtonPrimitiveProps;
85
+ /**
86
+ * The root of a bar chart: owns the data, the scales, the canvas renderer,
87
+ * and the entire interaction contract (per-category hover with a lifted band
88
+ * and tooltip, keyboard stepping with polite announcements, an sr-only data
89
+ * table, Enter/Space + click activation). Compose the chrome and series parts
90
+ * as children.
91
+ *
92
+ * @see https://mantle.ngrok.com/components/charts/bar-chart#barchartroot
93
+ *
94
+ * @example
95
+ * ```tsx
96
+ * const data = [
97
+ * { month: "January", desktop: 186, mobile: 80 },
98
+ * { month: "February", desktop: 305, mobile: 200 },
99
+ * { month: "March", desktop: 237, mobile: 120 },
100
+ * ];
101
+ *
102
+ * <BarChart.Root data={data} xKey="month" aria-label="Visitors by month">
103
+ * <BarChart.Grid />
104
+ * <BarChart.XAxis />
105
+ * <BarChart.YAxis />
106
+ * <BarChart.Bar dataKey="desktop" label="Desktop" />
107
+ * <BarChart.Bar dataKey="mobile" label="Mobile" />
108
+ * <BarChart.Legend />
109
+ * </BarChart.Root>
110
+ * ```
111
+ */
112
+ declare const Root: <TDatum extends ChartDatum = ChartDatum>(props: BarChartRootProps<TDatum>) => import("react").JSX.Element;
113
+ /**
114
+ * One bar series. Renders nothing itself — it registers the series with the
115
+ * chart, which paints it on canvas. Compose one `Bar` per series; with
116
+ * `stacked` on the Root, bars stack in composition order from the baseline up.
117
+ * `texture` adds a diagonal-hatch fill as a redundant identity encoding
118
+ * alongside color, worn by the bars and the series' legend key alike.
119
+ *
120
+ * @see https://mantle.ngrok.com/components/charts/bar-chart#barchartbar
121
+ *
122
+ * @example
123
+ * ```tsx
124
+ * <BarChart.Root data={data} xKey="month" aria-label="Visitors by month">
125
+ * <BarChart.Grid />
126
+ * <BarChart.XAxis />
127
+ * <BarChart.YAxis />
128
+ * <BarChart.Bar dataKey="desktop" label="Desktop" />
129
+ * <BarChart.Bar dataKey="mobile" label="Mobile" />
130
+ * <BarChart.Legend />
131
+ * </BarChart.Root>
132
+ * ```
133
+ */
134
+ declare const Bar: (props: BarChartBarProps) => null;
135
+ /**
136
+ * Hairline value gridlines behind the bars (renderless; painted on canvas).
137
+ * The default runs perpendicular to the bars — horizontal lines for vertical
138
+ * bars, vertical lines for horizontal bars; pass `lines` to force a direction.
139
+ * Omit the part to omit the grid.
140
+ *
141
+ * @see https://mantle.ngrok.com/components/charts/bar-chart#barchartgrid
142
+ *
143
+ * @example
144
+ * ```tsx
145
+ * <BarChart.Root data={data} xKey="month" aria-label="Visitors by month">
146
+ * <BarChart.Grid />
147
+ * <BarChart.XAxis />
148
+ * <BarChart.YAxis />
149
+ * <BarChart.Bar dataKey="desktop" label="Desktop" />
150
+ * <BarChart.Legend />
151
+ * </BarChart.Root>
152
+ * ```
153
+ */
154
+ declare const Grid: (props: BarChartGridProps) => null;
155
+ /**
156
+ * Category labels for the bars (renderless; painted on canvas): along the
157
+ * bottom for vertical bars, down the left gutter for horizontal bars. Labels
158
+ * that would collide are skipped, never rotated.
159
+ *
160
+ * @see https://mantle.ngrok.com/components/charts/bar-chart#barchartxaxis
161
+ *
162
+ * @example
163
+ * ```tsx
164
+ * <BarChart.Root data={data} xKey="month" aria-label="Visitors by month">
165
+ * <BarChart.Grid />
166
+ * <BarChart.XAxis tickFormat={(month) => String(month).slice(0, 3)} />
167
+ * <BarChart.YAxis />
168
+ * <BarChart.Bar dataKey="desktop" label="Desktop" />
169
+ * <BarChart.Legend />
170
+ * </BarChart.Root>
171
+ * ```
172
+ */
173
+ declare const XAxis: (props: BarChartXAxisProps) => null;
174
+ /**
175
+ * Value tick labels (renderless; painted on canvas): along the left for
176
+ * vertical bars, across the bottom for horizontal bars. Ticks land on clean
177
+ * thousands-separated numbers.
178
+ *
179
+ * @see https://mantle.ngrok.com/components/charts/bar-chart#barchartyaxis
180
+ *
181
+ * @example
182
+ * ```tsx
183
+ * <BarChart.Root data={data} xKey="month" aria-label="Visitors by month">
184
+ * <BarChart.Grid />
185
+ * <BarChart.XAxis />
186
+ * <BarChart.YAxis tickFormat={(value) => `${value / 1000}k`} />
187
+ * <BarChart.Bar dataKey="desktop" label="Desktop" />
188
+ * <BarChart.Legend />
189
+ * </BarChart.Root>
190
+ * ```
191
+ */
192
+ declare const YAxis: (props: BarChartYAxisProps) => null;
193
+ /**
194
+ * A dashed marker at the value `y` — an SLO threshold, a budget, a limit
195
+ * (renderless; painted on canvas). It crosses the value axis: a horizontal
196
+ * line for vertical bars, a vertical line for horizontal bars.
197
+ *
198
+ * @see https://mantle.ngrok.com/components/charts/bar-chart#barchartreferenceline
199
+ *
200
+ * @example
201
+ * ```tsx
202
+ * <BarChart.Root data={data} xKey="month" aria-label="Visitors by month">
203
+ * <BarChart.Grid />
204
+ * <BarChart.XAxis />
205
+ * <BarChart.YAxis />
206
+ * <BarChart.Bar dataKey="desktop" label="Desktop" />
207
+ * <BarChart.ReferenceLine y={250} label="Capacity" />
208
+ * <BarChart.Legend />
209
+ * </BarChart.Root>
210
+ * ```
211
+ */
212
+ declare const ReferenceLine: (props: BarChartReferenceLineProps) => null;
213
+ /**
214
+ * Customizes the hover/keyboard tooltip readout. The tooltip itself is part
215
+ * of `BarChart.Root`'s interaction contract and renders whether or not this
216
+ * part is composed — compose it to format the label or values, append a
217
+ * footer, or replace the content entirely via the render-prop `children`.
218
+ *
219
+ * @see https://mantle.ngrok.com/components/charts/bar-chart#barcharttooltip
220
+ *
221
+ * @example
222
+ * ```tsx
223
+ * <BarChart.Root data={data} xKey="month" aria-label="Visitors by month">
224
+ * <BarChart.Grid />
225
+ * <BarChart.XAxis />
226
+ * <BarChart.YAxis />
227
+ * <BarChart.Bar dataKey="desktop" label="Desktop" />
228
+ * <BarChart.Tooltip valueFormat={(value) => `${value} visits`} footer="Click to view logs" />
229
+ * <BarChart.Legend />
230
+ * </BarChart.Root>
231
+ * ```
232
+ */
233
+ declare const Tooltip: (props: BarChartTooltipProps) => null;
234
+ /**
235
+ * The legend: series names keyed by color swatches, rendered as real DOM in
236
+ * flow below the plot. Always compose it on multi-series charts — identity
237
+ * must never rely on color-matching alone. It renders nothing for a single
238
+ * series (the chart's title already names it).
239
+ *
240
+ * @see https://mantle.ngrok.com/components/charts/bar-chart#barchartlegend
241
+ *
242
+ * @example
243
+ * ```tsx
244
+ * <BarChart.Root data={data} xKey="month" aria-label="Visitors by month">
245
+ * <BarChart.Grid />
246
+ * <BarChart.XAxis />
247
+ * <BarChart.YAxis />
248
+ * <BarChart.Bar dataKey="desktop" label="Desktop" />
249
+ * <BarChart.Bar dataKey="mobile" label="Mobile" />
250
+ * <BarChart.Legend />
251
+ * </BarChart.Root>
252
+ * ```
253
+ */
254
+ declare const Legend: (props: BarChartLegendProps) => import("react").JSX.Element;
255
+ /**
256
+ * A button that copies the chart's current data to the clipboard as a
257
+ * markdown table (ISO dates, plain numbers, one column per series) —
258
+ * pasteable into Slack, issues, docs, spreadsheets, and LLM chats. Renders
259
+ * in flow where composed (alongside `Legend`, below the plot); `Root` is
260
+ * relatively positioned, so `className` can dock it over a corner instead
261
+ * (e.g. `absolute right-0 top-0`).
262
+ *
263
+ * @see https://mantle.ngrok.com/components/charts/bar-chart#barchartcopybutton
264
+ *
265
+ * @example
266
+ * ```tsx
267
+ * <BarChart.Root data={data} xKey="month" aria-label="Visitors by month">
268
+ * <BarChart.Bar dataKey="desktop" label="Desktop" />
269
+ * <BarChart.Bar dataKey="mobile" label="Mobile" />
270
+ * <BarChart.Legend />
271
+ * <BarChart.CopyButton />
272
+ * </BarChart.Root>
273
+ * ```
274
+ */
275
+ declare const CopyButton: (props: BarChartCopyButtonProps) => import("react").JSX.Element;
276
+ /**
277
+ * A canvas-rendered bar chart for comparing values across categories, with
278
+ * grouped and stacked variants. Series colors come from the theme's validated
279
+ * `--color-chart-*` tokens; bars keep a fixed slot color for the chart's
280
+ * lifetime even as other series are filtered in and out. Interaction —
281
+ * per-category tooltip, keyboard stepping, aria-live announcements, and an
282
+ * sr-only data table — ships with `Root` unconditionally.
283
+ *
284
+ * @see https://mantle.ngrok.com/components/charts/bar-chart
285
+ *
286
+ * @example
287
+ * Composition:
288
+ * ```
289
+ * BarChart.Root
290
+ * ├── BarChart.Grid
291
+ * ├── BarChart.XAxis
292
+ * ├── BarChart.YAxis
293
+ * ├── BarChart.Bar (one per series)
294
+ * ├── BarChart.ReferenceLine
295
+ * ├── BarChart.Tooltip
296
+ * ├── BarChart.Legend
297
+ * └── BarChart.CopyButton
298
+ * ```
299
+ *
300
+ * @example
301
+ * ```tsx
302
+ * const data = [
303
+ * { month: "January", desktop: 186, mobile: 80 },
304
+ * { month: "February", desktop: 305, mobile: 200 },
305
+ * { month: "March", desktop: 237, mobile: 120 },
306
+ * ];
307
+ *
308
+ * <BarChart.Root data={data} xKey="month" aria-label="Visitors by month">
309
+ * <BarChart.Grid />
310
+ * <BarChart.XAxis />
311
+ * <BarChart.YAxis />
312
+ * <BarChart.Bar dataKey="desktop" label="Desktop" />
313
+ * <BarChart.Bar dataKey="mobile" label="Mobile" />
314
+ * <BarChart.Tooltip />
315
+ * <BarChart.Legend />
316
+ * </BarChart.Root>
317
+ * ```
318
+ */
319
+ declare const BarChart: {
320
+ /**
321
+ * The root of a bar chart: owns the data, the scales, the canvas renderer,
322
+ * and the entire interaction contract.
323
+ *
324
+ * @see https://mantle.ngrok.com/components/charts/bar-chart#barchartroot
325
+ *
326
+ * @example
327
+ * ```tsx
328
+ * <BarChart.Root data={data} xKey="month" aria-label="Visitors by month">
329
+ * <BarChart.Grid />
330
+ * <BarChart.XAxis />
331
+ * <BarChart.YAxis />
332
+ * <BarChart.Bar dataKey="desktop" label="Desktop" />
333
+ * <BarChart.Bar dataKey="mobile" label="Mobile" />
334
+ * <BarChart.Tooltip />
335
+ * <BarChart.Legend />
336
+ * </BarChart.Root>
337
+ * ```
338
+ */
339
+ readonly Root: typeof Root;
340
+ /**
341
+ * One bar series; registers with the chart and paints on canvas.
342
+ *
343
+ * @see https://mantle.ngrok.com/components/charts/bar-chart#barchartbar
344
+ *
345
+ * @example
346
+ * ```tsx
347
+ * <BarChart.Root data={data} xKey="month" aria-label="Visitors by month">
348
+ * <BarChart.Grid />
349
+ * <BarChart.XAxis />
350
+ * <BarChart.YAxis />
351
+ * <BarChart.Bar dataKey="desktop" label="Desktop" />
352
+ * <BarChart.Bar dataKey="mobile" label="Mobile" />
353
+ * <BarChart.Tooltip />
354
+ * <BarChart.Legend />
355
+ * </BarChart.Root>
356
+ * ```
357
+ */
358
+ readonly Bar: typeof Bar;
359
+ /**
360
+ * Hairline gridlines behind the bars.
361
+ *
362
+ * @see https://mantle.ngrok.com/components/charts/bar-chart#barchartgrid
363
+ *
364
+ * @example
365
+ * ```tsx
366
+ * <BarChart.Root data={data} xKey="month" aria-label="Visitors by month">
367
+ * <BarChart.Grid />
368
+ * <BarChart.XAxis />
369
+ * <BarChart.YAxis />
370
+ * <BarChart.Bar dataKey="desktop" label="Desktop" />
371
+ * <BarChart.Bar dataKey="mobile" label="Mobile" />
372
+ * <BarChart.Tooltip />
373
+ * <BarChart.Legend />
374
+ * </BarChart.Root>
375
+ * ```
376
+ */
377
+ readonly Grid: typeof Grid;
378
+ /**
379
+ * Category labels along the bottom of the plot.
380
+ *
381
+ * @see https://mantle.ngrok.com/components/charts/bar-chart#barchartxaxis
382
+ *
383
+ * @example
384
+ * ```tsx
385
+ * <BarChart.Root data={data} xKey="month" aria-label="Visitors by month">
386
+ * <BarChart.Grid />
387
+ * <BarChart.XAxis tickFormat={(month) => String(month).slice(0, 3)} />
388
+ * <BarChart.YAxis />
389
+ * <BarChart.Bar dataKey="desktop" label="Desktop" />
390
+ * <BarChart.Bar dataKey="mobile" label="Mobile" />
391
+ * <BarChart.Tooltip />
392
+ * <BarChart.Legend />
393
+ * </BarChart.Root>
394
+ * ```
395
+ */
396
+ readonly XAxis: typeof XAxis;
397
+ /**
398
+ * Value tick labels along the left of the plot.
399
+ *
400
+ * @see https://mantle.ngrok.com/components/charts/bar-chart#barchartyaxis
401
+ *
402
+ * @example
403
+ * ```tsx
404
+ * <BarChart.Root data={data} xKey="month" aria-label="Visitors by month">
405
+ * <BarChart.Grid />
406
+ * <BarChart.XAxis />
407
+ * <BarChart.YAxis tickFormat={(value) => `${value / 1000}k`} />
408
+ * <BarChart.Bar dataKey="desktop" label="Desktop" />
409
+ * <BarChart.Bar dataKey="mobile" label="Mobile" />
410
+ * <BarChart.Tooltip />
411
+ * <BarChart.Legend />
412
+ * </BarChart.Root>
413
+ * ```
414
+ */
415
+ readonly YAxis: typeof YAxis;
416
+ /**
417
+ * A dashed horizontal marker at a y value (threshold, budget, limit).
418
+ *
419
+ * @see https://mantle.ngrok.com/components/charts/bar-chart#barchartreferenceline
420
+ *
421
+ * @example
422
+ * ```tsx
423
+ * <BarChart.Root data={data} xKey="month" aria-label="Visitors by month">
424
+ * <BarChart.Grid />
425
+ * <BarChart.XAxis />
426
+ * <BarChart.YAxis />
427
+ * <BarChart.Bar dataKey="desktop" label="Desktop" />
428
+ * <BarChart.ReferenceLine y={250} label="Capacity" />
429
+ * <BarChart.Tooltip />
430
+ * <BarChart.Legend />
431
+ * </BarChart.Root>
432
+ * ```
433
+ */
434
+ readonly ReferenceLine: typeof ReferenceLine;
435
+ /**
436
+ * Customizes the always-on hover/keyboard tooltip readout.
437
+ *
438
+ * @see https://mantle.ngrok.com/components/charts/bar-chart#barcharttooltip
439
+ *
440
+ * @example
441
+ * ```tsx
442
+ * <BarChart.Root data={data} xKey="month" aria-label="Visitors by month">
443
+ * <BarChart.Grid />
444
+ * <BarChart.XAxis />
445
+ * <BarChart.YAxis />
446
+ * <BarChart.Bar dataKey="desktop" label="Desktop" />
447
+ * <BarChart.Bar dataKey="mobile" label="Mobile" />
448
+ * <BarChart.Tooltip valueFormat={(value) => `${value} visits`} />
449
+ * <BarChart.Legend />
450
+ * </BarChart.Root>
451
+ * ```
452
+ */
453
+ readonly Tooltip: typeof Tooltip;
454
+ /**
455
+ * The legend; always compose it on multi-series charts. Renders nothing for
456
+ * a single series.
457
+ *
458
+ * @see https://mantle.ngrok.com/components/charts/bar-chart#barchartlegend
459
+ *
460
+ * @example
461
+ * ```tsx
462
+ * <BarChart.Root data={data} xKey="month" aria-label="Visitors by month">
463
+ * <BarChart.Grid />
464
+ * <BarChart.XAxis />
465
+ * <BarChart.YAxis />
466
+ * <BarChart.Bar dataKey="desktop" label="Desktop" />
467
+ * <BarChart.Bar dataKey="mobile" label="Mobile" />
468
+ * <BarChart.Tooltip />
469
+ * <BarChart.Legend />
470
+ * </BarChart.Root>
471
+ * ```
472
+ */
473
+ readonly Legend: typeof Legend;
474
+ /**
475
+ * Copies the chart's current data to the clipboard as a markdown table.
476
+ *
477
+ * @see https://mantle.ngrok.com/components/charts/bar-chart#barchartcopybutton
478
+ *
479
+ * @example
480
+ * ```tsx
481
+ * <BarChart.Root data={data} xKey="month" aria-label="Visitors by month">
482
+ * <BarChart.Bar dataKey="desktop" label="Desktop" />
483
+ * <BarChart.Bar dataKey="mobile" label="Mobile" />
484
+ * <BarChart.Legend />
485
+ * <BarChart.CopyButton />
486
+ * </BarChart.Root>
487
+ * ```
488
+ */
489
+ readonly CopyButton: typeof CopyButton;
490
+ };
491
+ //#endregion
492
+ export { BarChart, type BarChartBarProps, type BarChartCopyButtonProps, type BarChartGridProps, type BarChartLegendProps, type BarChartReferenceLineProps, type BarChartRootProps, type BarChartTooltipProps, type BarChartXAxisProps, type BarChartYAxisProps, type ChartDatumEvent };
@@ -0,0 +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-Do2qkrxl.js";import{jsx as l}from"react/jsx-runtime";const u={Root:e=>l(o,{kind:`bar`,componentName:`BarChart`,slotName:`bar-chart`,...e}),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=>l(i,{partName:`BarChart.Legend`,slotName:`bar-chart`,...e}),CopyButton:e=>l(c,{partName:`BarChart.CopyButton`,slotName:`bar-chart`,...e})};export{u as BarChart};
@@ -29,10 +29,7 @@ import { ComponentProps, ReactNode } from "react";
29
29
  * </Breadcrumb.Root>
30
30
  * ```
31
31
  */
32
- declare const Root: {
33
- ({ asChild, children, "data-slot": dataSlot, ref, ...props }: ComponentProps<"nav"> & WithAsChild & WithDataSlot): import("react").JSX.Element;
34
- displayName: string;
35
- };
32
+ declare const Root: ({ asChild, children, "data-slot": dataSlot, ref, ...props }: ComponentProps<"nav"> & WithAsChild & WithDataSlot) => import("react").JSX.Element;
36
33
  /**
37
34
  * The ordered list of crumbs. Renders an `<ol>` — an **ordered** list, because
38
35
  * the order of the items is the hierarchy, from the root to the current page.
@@ -59,10 +56,7 @@ declare const Root: {
59
56
  * </Breadcrumb.Root>
60
57
  * ```
61
58
  */
62
- declare const List: {
63
- ({ asChild, children, className, "data-slot": dataSlot, ref, ...props }: ComponentProps<"ol"> & WithAsChild & WithDataSlot): import("react").JSX.Element;
64
- displayName: string;
65
- };
59
+ declare const List: ({ asChild, children, className, "data-slot": dataSlot, ref, ...props }: ComponentProps<"ol"> & WithAsChild & WithDataSlot) => import("react").JSX.Element;
66
60
  /**
67
61
  * A single crumb. Renders an `<li>` (`role="listitem"`) that lays out its
68
62
  * content — a `Breadcrumb.Link` or `Breadcrumb.Page` — inline.
@@ -88,10 +82,7 @@ declare const List: {
88
82
  * </Breadcrumb.Root>
89
83
  * ```
90
84
  */
91
- declare const Item: {
92
- ({ asChild, children, className, "data-slot": dataSlot, ref, ...props }: ComponentProps<"li"> & WithAsChild & WithDataSlot): import("react").JSX.Element;
93
- displayName: string;
94
- };
85
+ declare const Item: ({ asChild, children, className, "data-slot": dataSlot, ref, ...props }: ComponentProps<"li"> & WithAsChild & WithDataSlot) => import("react").JSX.Element;
95
86
  /**
96
87
  * A link to an ancestor page in the hierarchy. Renders an `<a>` by default;
97
88
  * the component is router-agnostic — use `asChild` to compose the styling
@@ -126,10 +117,7 @@ declare const Item: {
126
117
  * </Breadcrumb.Link>
127
118
  * ```
128
119
  */
129
- declare const Link: {
130
- ({ asChild, children, className, "data-slot": dataSlot, ref, ...props }: ComponentProps<"a"> & WithAsChild & WithDataSlot): import("react").JSX.Element;
131
- displayName: string;
132
- };
120
+ declare const Link: ({ asChild, children, className, "data-slot": dataSlot, ref, ...props }: ComponentProps<"a"> & WithAsChild & WithDataSlot) => import("react").JSX.Element;
133
121
  /**
134
122
  * The current page — the last crumb in the trail. Renders a `<span>` (not a
135
123
  * link; the user is already here) with `aria-current="page"`. The ARIA is the
@@ -157,10 +145,7 @@ declare const Link: {
157
145
  * </Breadcrumb.Root>
158
146
  * ```
159
147
  */
160
- declare const Page: {
161
- ({ asChild, children, className, "data-slot": dataSlot, ref, ...props }: ComponentProps<"span"> & WithAsChild & WithDataSlot): import("react").JSX.Element;
162
- displayName: string;
163
- };
148
+ declare const Page: ({ asChild, children, className, "data-slot": dataSlot, ref, ...props }: ComponentProps<"span"> & WithAsChild & WithDataSlot) => import("react").JSX.Element;
164
149
  /**
165
150
  * The props for `Breadcrumb.Separator`. When `asChild` is set, `children` is
166
151
  * required: the child element is what gets rendered, so an `asChild` separator
@@ -204,10 +189,7 @@ type BreadcrumbSeparatorProps = Omit<ComponentProps<"li">, "children"> & ({
204
189
  * </Breadcrumb.Root>
205
190
  * ```
206
191
  */
207
- declare const Separator: {
208
- ({ asChild, children, className, "data-slot": dataSlot, ref, ...props }: BreadcrumbSeparatorProps & WithDataSlot): import("react").JSX.Element;
209
- displayName: string;
210
- };
192
+ declare const Separator: ({ asChild, children, className, "data-slot": dataSlot, ref, ...props }: BreadcrumbSeparatorProps & WithDataSlot) => import("react").JSX.Element;
211
193
  /**
212
194
  * Compound component for WAI-ARIA breadcrumb navigation — the path from a
213
195
  * root to the current page as an ordered list of links inside a labeled
@@ -1 +1 @@
1
- import{t as e}from"./cx-IiQEAKf5.js";import{t}from"./icon-CGgMKpJg.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=({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});c.displayName=`Breadcrumb`;const l=({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});l.displayName=`BreadcrumbList`;const u=({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});u.displayName=`BreadcrumbItem`;const d=({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});d.displayName=`BreadcrumbLink`;const f=({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})};f.displayName=`BreadcrumbPage`;const p=({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})};p.displayName=`BreadcrumbSeparator`;const m={Root:c,List:l,Item:u,Link:d,Page:f,Separator:p};export{m 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
1
  import { n as WithAsChild } from "./as-child-D23mGo4f.js";
2
2
  import { r as VariantProps } from "./index-DA4ig3gj.js";
3
- import "./button-BPMwa2jN.js";
4
- import "./icon-button-C1AfGnQx.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?: ({
@@ -1,8 +1,8 @@
1
1
  import { n as WithAsChild } from "./as-child-D23mGo4f.js";
2
2
  import { r as VariantProps } from "./index-DA4ig3gj.js";
3
- import { t as ButtonIntent } from "./intents-DdSKSj1c.js";
3
+ import { t as ButtonIntent } from "./button-DdSKSj1c.js";
4
4
  import { ComponentProps, ReactNode } from "react";
5
- //#region src/components/button/icon-button.d.ts
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 { ComponentProps, 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,6 +28,8 @@ 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
  */
@@ -114,4 +127,4 @@ type IconButtonProps = ComponentProps<"button"> & WithAsChild & Omit<IconButtonV
114
127
  */
115
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;
116
129
  //#endregion
117
- export { IconButtonAppearance as n, IconButtonProps as r, IconButton as t };
130
+ export { IconButtonProps as n, IconButtonAppearance as r, IconButton as t };
@@ -1,6 +1,6 @@
1
1
  import { n as WithAsChild } from "./as-child-D23mGo4f.js";
2
2
  import { r as VariantProps } from "./index-DA4ig3gj.js";
3
- import { t as ButtonIntent } from "./intents-DdSKSj1c.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
  /**
@@ -1 +1 @@
1
- import{t as e}from"./cx-IiQEAKf5.js";import{t}from"./icon-CGgMKpJg.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};
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};