@ngrok/mantle 0.93.6 → 0.94.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.
- package/dist/accordion.d.ts +13 -1
- package/dist/accordion.js +1 -1
- package/dist/agent.json +1181 -36
- package/dist/alert-CH99Rw-R.js +1 -0
- package/dist/{alert-BcSBNR3S.d.ts → alert-HffaioZM.d.ts} +31 -21
- package/dist/alert-center.d.ts +15 -3
- package/dist/alert-center.js +1 -1
- package/dist/alert-dialog.d.ts +15 -2
- package/dist/alert-dialog.js +1 -1
- package/dist/alert.d.ts +6 -1
- package/dist/alert.js +1 -1
- package/dist/anchor.d.ts +12 -0
- package/dist/app-layout.d.ts +16 -1
- package/dist/app-layout.js +1 -1
- package/dist/area-chart.d.ts +144 -88
- package/dist/area-chart.js +1 -1
- package/dist/avatar.d.ts +12 -0
- package/dist/badge.d.ts +13 -1
- package/dist/bar-chart.d.ts +144 -89
- package/dist/bar-chart.js +1 -1
- package/dist/breadcrumb.d.ts +11 -0
- package/dist/breadcrumb.js +1 -1
- package/dist/browser-only.d.ts +8 -0
- package/dist/{button-Yxyu1XMd.d.ts → button-BGwOPjGV.d.ts} +7 -1
- package/dist/{button-B8k98Pby.js → button-BWGUuWnu.js} +1 -1
- package/dist/{button-CPsKGDK0.d.ts → button-Cgf2IcEC.d.ts} +8 -1
- package/dist/button-Cu9e3SM7.js +1 -0
- package/dist/{button-BX-4lYUn.d.ts → button-K0pKc3GN.d.ts} +3 -3
- package/dist/button.d.ts +9 -3
- package/dist/button.js +1 -1
- package/dist/calendar.d.ts +7 -0
- package/dist/calendar.js +1 -1
- package/dist/card.d.ts +6 -1
- package/dist/centered-layout.d.ts +11 -0
- package/dist/chart-BO9EwQ60.js +1 -0
- package/dist/chart-CE5Uaqz9.js +1 -0
- package/dist/chart-DCTGGlWL.js +1 -0
- package/dist/chart-DudCw24t.js +2 -0
- package/dist/{chart-BpfbtOUN.d.ts → chart-jitNqimS.d.ts} +99 -103
- package/dist/{checkbox-DmSQXs26.js → checkbox-CS504fKk.js} +1 -1
- package/dist/checkbox.d.ts +14 -1
- package/dist/checkbox.js +1 -1
- package/dist/{choice-BLR0_MeB.d.ts → choice-BwfmbepO.d.ts} +7 -1
- package/dist/choice-uyYccm0A.js +1 -0
- package/dist/choice.d.ts +6 -1
- package/dist/choice.js +1 -1
- package/dist/code-block.d.ts +13 -2
- package/dist/code-block.js +1 -1
- package/dist/code-block_highlight-utils.d.ts +5 -0
- package/dist/code.d.ts +13 -0
- package/dist/color-CHZbU1Ww.js +1 -0
- package/dist/color.js +1 -1
- package/dist/combobox.d.ts +28 -14
- package/dist/combobox.js +1 -1
- package/dist/command.d.ts +14 -2
- package/dist/command.js +1 -1
- package/dist/cx.js +1 -1
- package/dist/data-table.d.ts +50 -19
- package/dist/data-table.js +1 -1
- package/dist/description-list.d.ts +12 -1
- package/dist/dialog-B9JAGy_x.d.ts +28 -0
- package/dist/{dialog-7TUgiSzX.js → dialog-CsugEt2A.js} +1 -1
- package/dist/{dialog-2fRO4ca4.d.ts → dialog-DD5H3EH1.d.ts} +10 -2
- package/dist/dialog.d.ts +7 -2
- package/dist/dialog.js +1 -1
- package/dist/dropdown-menu-DHdgaw4P.js +1 -0
- package/dist/{dropdown-menu-CpjRwMWe.d.ts → dropdown-menu-DmDxYPde.d.ts} +34 -26
- package/dist/dropdown-menu.d.ts +6 -1
- package/dist/dropdown-menu.js +1 -1
- package/dist/empty.d.ts +5 -0
- package/dist/empty.js +1 -1
- package/dist/{field-V_gnkcmN.d.ts → field-BshcNVe_.d.ts} +1 -1
- package/dist/field.d.ts +17 -6
- package/dist/field.js +1 -1
- package/dist/flag.d.ts +8 -0
- package/dist/hooks.d.ts +5 -0
- package/dist/hooks.js +1 -1
- package/dist/hover-card.d.ts +23 -12
- package/dist/{icon-ByLVhdYq.d.ts → icon-NYvyyRMG.d.ts} +6 -0
- package/dist/icon.d.ts +7 -2
- package/dist/icon.js +1 -1
- package/dist/{icons-DP3lQw5O.js → icons-4JA-SGfv.js} +1 -1
- package/dist/icons.d.ts +13 -1
- package/dist/icons.js +1 -1
- package/dist/{index-BhfgyurF.d.ts → index-KJ06KK6t.d.ts} +3 -3
- package/dist/input-BjCDSOPA.js +1 -0
- package/dist/input-DHovzBjS.js +1 -0
- package/dist/{input-Dx5owTCc.d.ts → input-q8o5uMhW.d.ts} +11 -1
- package/dist/input.d.ts +34 -2
- package/dist/input.js +1 -1
- package/dist/kbd.d.ts +12 -0
- package/dist/{label-nHqqYS7e.js → label-DmDwzPD8.js} +1 -1
- package/dist/{label-Dn5CPJUj.d.ts → label-r2sJcSQ4.d.ts} +6 -0
- package/dist/label.d.ts +6 -1
- package/dist/label.js +1 -1
- package/dist/line-chart.d.ts +139 -82
- package/dist/line-chart.js +1 -1
- package/dist/{list-RFRIQxU2.js → list-CO_yLdln.js} +1 -1
- package/dist/list.d.ts +19 -1
- package/dist/list.js +1 -1
- package/dist/live-region.d.ts +14 -1
- package/dist/llms.txt +78 -76
- package/dist/main.d.ts +12 -0
- package/dist/mantle.css +110 -65
- package/dist/media-object.d.ts +12 -0
- package/dist/migrations/0014-chart-named-colors.yml +1389 -0
- package/dist/migrations/0015-segmented-control.yml +788 -0
- package/dist/multi-select.d.ts +15 -2
- package/dist/multi-select.js +1 -1
- package/dist/otp-input.d.ts +17 -5
- package/dist/otp-input.js +1 -1
- package/dist/pagination.d.ts +92 -3
- package/dist/pagination.js +1 -1
- package/dist/popover-BhTFutCz.d.ts +1 -0
- package/dist/{popover-BfB2I9G0.d.ts → popover-lwkwWcRW.d.ts} +16 -7
- package/dist/popover.d.ts +7 -2
- package/dist/progress.d.ts +27 -10
- package/dist/progress.js +1 -1
- package/dist/qr-code.d.ts +9 -1
- package/dist/query.d.ts +2 -2
- package/dist/query.js +1 -1
- package/dist/radio-group-jj2abc0t.js +1 -0
- package/dist/radio-group-sLz5AA9I.d.ts +27 -0
- package/dist/radio-group.d.ts +20 -99
- package/dist/radio-group.js +1 -1
- package/dist/sandbar.d.ts +14 -1
- package/dist/sandbar.js +1 -1
- package/dist/sandboxed-on-click.d.ts +8 -0
- package/dist/scatter-plot.d.ts +126 -64
- package/dist/scatter-plot.js +1 -1
- package/dist/segmented-control.d.ts +136 -0
- package/dist/segmented-control.js +1 -0
- package/dist/{select-BkhBxtOT.d.ts → select-BqmpVJJT.d.ts} +29 -21
- package/dist/select-C6Su0dU0.js +1 -0
- package/dist/select.d.ts +6 -1
- package/dist/select.js +1 -1
- package/dist/selectable-list.d.ts +13 -2
- package/dist/selectable-list.js +1 -1
- package/dist/{separator-D9AWEkcJ.d.ts → separator-QfH0ot5K.d.ts} +3 -1
- package/dist/separator.d.ts +6 -1
- package/dist/{sheet-CSJc_sB4.js → sheet-Bd2LIhzF.js} +1 -1
- package/dist/sheet.d.ts +15 -2
- package/dist/sheet.js +1 -1
- package/dist/sidebar.d.ts +19 -3
- package/dist/sidebar.js +1 -1
- package/dist/skeleton.d.ts +11 -0
- package/dist/skip-to-main-link.d.ts +11 -0
- package/dist/skip-to-main-link.js +1 -1
- package/dist/slider.d.ts +10 -0
- package/dist/{slot-C0OCJjdJ.d.ts → slot-D12N_fZJ.d.ts} +3 -1
- package/dist/slot.d.ts +6 -1
- package/dist/split-button.d.ts +14 -3
- package/dist/split-button.js +1 -1
- package/dist/strata.d.ts +13 -0
- package/dist/switch.d.ts +13 -1
- package/dist/switch.js +1 -1
- package/dist/{table-vT6Okwfa.d.ts → table-rWiVWEgB.d.ts} +79 -0
- package/dist/table.d.ts +6 -1
- package/dist/tabs.d.ts +23 -11
- package/dist/tabs.js +1 -1
- package/dist/text-area.d.ts +11 -1
- package/dist/theme-DdZgLvKH.js +1 -0
- package/dist/theme-switcher.d.ts +16 -2
- package/dist/theme-switcher.js +1 -1
- package/dist/theme.d.ts +12 -0
- package/dist/theme.js +1 -1
- package/dist/toast.d.ts +14 -1
- package/dist/toast.js +1 -1
- package/dist/{tooltip-NcLIeBy5.d.ts → tooltip-CpK3XTor.d.ts} +15 -8
- package/dist/tooltip.d.ts +6 -1
- package/dist/truncated-text.d.ts +27 -13
- package/dist/truncated-text.js +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.js +1 -1
- package/dist/use-inert-siblings-CNmNuS2h.js +1 -0
- package/dist/use-swipe-to-dismiss-i__cTF2v.js +1 -0
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +1 -1
- package/dist/visually-hidden.d.ts +13 -0
- package/dist/well.d.ts +6 -1
- package/package.json +7 -7
- package/src/components/chart/d3-license.md +25 -0
- package/dist/alert-P9lwn25X.js +0 -1
- package/dist/button-Dge0D5bl.js +0 -1
- package/dist/chart-BpWfQAwf.js +0 -2
- package/dist/choice-2Lrv8_nl.js +0 -1
- package/dist/dialog-Dp0QGWwo.d.ts +0 -28
- package/dist/dropdown-menu-BHBzCDSZ.js +0 -1
- package/dist/input-CpQ6jlpI.js +0 -1
- package/dist/popover-C96V8SXi.d.ts +0 -1
- package/dist/select-CAAYk4Yj.js +0 -1
- package/dist/theme-C-glc5Q-.js +0 -1
- package/dist/use-swipe-to-dismiss-DceYk1Id.js +0 -1
package/dist/area-chart.d.ts
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Re-exports for the Area Chart component.
|
|
3
|
+
*
|
|
4
|
+
* @see https://mantle.ngrok.com/components/charts/area-chart
|
|
5
|
+
*/
|
|
6
|
+
import { _ as CurveKind, a as XAxisPrimitiveProps, c as LegendPrimitiveProps, d as ChartMode, g as ContinuousXScale, h as ChartDatumEvent, i as ReferenceLinePrimitiveProps, l as CopyButtonPrimitiveProps, m as ChartDatum, n as ChartRootBaseProps, o as YAxisPrimitiveProps, r as GridPrimitiveProps, s as ChartListPrimitiveProps, t as TooltipPrimitiveProps, u as ChartAccessibilityProps, v as PointShape, y as SeriesColor } from "./chart-jitNqimS.js";
|
|
7
|
+
/**
|
|
8
|
+
* Props for {@link AreaChart.List}.
|
|
9
|
+
*/
|
|
10
|
+
type AreaChartListProps = ChartListPrimitiveProps;
|
|
2
11
|
/**
|
|
3
12
|
* Props for {@link AreaChart.Root}. Areas fill from a shared zero baseline, so
|
|
4
13
|
* the y domain minimum is fixed at `0` — a truncated-area axis is
|
|
@@ -33,28 +42,20 @@ type AreaChartAreaProps = {
|
|
|
33
42
|
/** Display name for the legend, tooltip, and data table. Defaults to `dataKey`. */
|
|
34
43
|
label?: string;
|
|
35
44
|
/**
|
|
36
|
-
*
|
|
37
|
-
*
|
|
45
|
+
* The color the series paints: a mantle color name, the same `Color` that
|
|
46
|
+
* `Badge` takes, or any CSS color. Required: name every series' color on
|
|
47
|
+
* purpose. Give an "Other" series `"neutral"`, and a series that means good
|
|
48
|
+
* or bad a functional color such as `"danger"`.
|
|
38
49
|
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
50
|
+
* A static CSS color (raw hex) cannot follow the two themes, so prefer a
|
|
51
|
+
* `var(--your-token)` declared per theme.
|
|
41
52
|
*
|
|
42
53
|
* @example
|
|
43
54
|
* ```tsx
|
|
44
|
-
* <AreaChart.Area dataKey="
|
|
55
|
+
* <AreaChart.Area dataKey="egress" label="Egress" color="blue" />
|
|
45
56
|
* ```
|
|
46
57
|
*/
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Override the color channel with a chart token or any CSS color. This does
|
|
50
|
-
* not change the series slot or its paired point shape. When omitted, the
|
|
51
|
-
* series paints the color from its slot.
|
|
52
|
-
*
|
|
53
|
-
* A static color (raw hex) cannot follow the two themes, so prefer a
|
|
54
|
-
* `var(--your-token)` declared per theme. A series that carries good/bad
|
|
55
|
-
* meaning should wear the semantic status colors, never a categorical slot.
|
|
56
|
-
*/
|
|
57
|
-
color?: SeriesColor;
|
|
58
|
+
color: SeriesColor;
|
|
58
59
|
/**
|
|
59
60
|
* Interpolation between points: `"linear"` (default), `"monotone"`
|
|
60
61
|
* (smoothed), or `"step"`.
|
|
@@ -69,8 +70,7 @@ type AreaChartAreaProps = {
|
|
|
69
70
|
* The glyph the hover dot and the legend key wear: `"circle"`, `"square"`,
|
|
70
71
|
* `"triangle"`, `"diamond"`, `"triangle-down"`, `"plus"`, `"cross"`, or
|
|
71
72
|
* `"star"`. Shape is a redundant encoding alongside color that keeps series
|
|
72
|
-
* distinguishable without color vision.
|
|
73
|
-
* glyph paired to its series slot, so both channels name one slot.
|
|
73
|
+
* distinguishable without color vision. Defaults to `"circle"`.
|
|
74
74
|
*/
|
|
75
75
|
shape?: PointShape;
|
|
76
76
|
};
|
|
@@ -105,17 +105,17 @@ type AreaChartLegendProps = LegendPrimitiveProps;
|
|
|
105
105
|
*/
|
|
106
106
|
type AreaChartCopyButtonProps = CopyButtonPrimitiveProps;
|
|
107
107
|
/**
|
|
108
|
-
* The root of an area chart: owns the data, the scales, the
|
|
108
|
+
* The root of an area chart: owns the data, the scales, the renderer,
|
|
109
109
|
* and the entire interaction contract (a crosshair with an every-series
|
|
110
110
|
* tooltip, keyboard stepping with polite announcements, an sr-only
|
|
111
111
|
* description, an sr-only data table, Enter/Space + click activation). Areas
|
|
112
112
|
* fill with a 10% wash of the series color plus a 2px band-edge stroke;
|
|
113
113
|
* `stacked` on the Root stacks the series in registration order, the
|
|
114
114
|
* first-registered series at the baseline. Large datasets decimate before
|
|
115
|
-
* painting
|
|
115
|
+
* painting. Compose the chrome and series parts as children.
|
|
116
116
|
*
|
|
117
117
|
* A Root mounts dormant: a shell of the plot, the named overlay, and its
|
|
118
|
-
* sr-only description. It builds its
|
|
118
|
+
* sr-only description. It builds its paint surface and its engine
|
|
119
119
|
* once it comes within one viewport of the visible area, takes focus, or
|
|
120
120
|
* prints (on-screen charts first, a few milliseconds at a time), and it mounts
|
|
121
121
|
* the sr-only data table once focus lands inside it. A list of charts pays
|
|
@@ -123,14 +123,16 @@ type AreaChartCopyButtonProps = CopyButtonPrimitiveProps;
|
|
|
123
123
|
* tables until a reader asks for one.
|
|
124
124
|
*
|
|
125
125
|
* The Root's own subtree is addressable by slot: `area-chart` on the wrapper,
|
|
126
|
-
* then `area-chart-plot`, `area-chart-
|
|
126
|
+
* then `area-chart-plot`, `area-chart-svg`,
|
|
127
|
+
* `area-chart-crosshair`,
|
|
127
128
|
* `area-chart-hover-band`, `area-chart-markers`, `area-chart-tooltip`,
|
|
128
129
|
* `area-chart-description`, and, once focus lands inside the chart,
|
|
129
130
|
* `area-chart-data-table`. An area chart shows the crosshair and one marker
|
|
130
|
-
* dot per series, and never the band. The
|
|
131
|
-
* engine-owned: absent from server HTML and from a dormant chart
|
|
132
|
-
*
|
|
133
|
-
*
|
|
131
|
+
* dot per series, and never the band. The surface and the three layers are
|
|
132
|
+
* engine-owned: absent from server HTML and from a dormant chart. The surface arrives at activation (near the viewport, on
|
|
133
|
+
* focus, or before print), and the layers arrive on the first hover or
|
|
134
|
+
* keyboard step. A static or
|
|
135
|
+
* decorative chart inserts the surface alone. The tooltip
|
|
134
136
|
* surface mounts on the first hover or keyboard step and stays.
|
|
135
137
|
* Each hover dot carries `chart-active-point` plus a `data-shape` of
|
|
136
138
|
* `"circle"`, `"square"`, `"triangle"`, `"diamond"`, `"triangle-down"`,
|
|
@@ -158,8 +160,8 @@ type AreaChartCopyButtonProps = CopyButtonPrimitiveProps;
|
|
|
158
160
|
* <AreaChart.Grid />
|
|
159
161
|
* <AreaChart.XAxis />
|
|
160
162
|
* <AreaChart.YAxis />
|
|
161
|
-
* <AreaChart.Area dataKey="http" label="HTTP" />
|
|
162
|
-
* <AreaChart.Area dataKey="tcp" label="TCP" />
|
|
163
|
+
* <AreaChart.Area dataKey="http" label="HTTP" color="blue" />
|
|
164
|
+
* <AreaChart.Area dataKey="tcp" label="TCP" color="emerald" />
|
|
163
165
|
* <AreaChart.Tooltip />
|
|
164
166
|
* <AreaChart.Legend />
|
|
165
167
|
* </AreaChart.Root>
|
|
@@ -168,7 +170,7 @@ type AreaChartCopyButtonProps = CopyButtonPrimitiveProps;
|
|
|
168
170
|
declare const Root: <TDatum extends ChartDatum = ChartDatum, TMode extends ChartMode = "interactive">(props: AreaChartRootProps<TDatum, TMode>) => import("react").JSX.Element;
|
|
169
171
|
/**
|
|
170
172
|
* One area series. Renders nothing itself — it registers the series with the
|
|
171
|
-
* chart, which paints it
|
|
173
|
+
* chart, which paints it. Compose one `Area` per series; with
|
|
172
174
|
* `stacked` on the Root, areas stack in registration order with the
|
|
173
175
|
* first-registered series at the baseline, so an `Area` that mounts later
|
|
174
176
|
* stacks on top whatever its position in the JSX.
|
|
@@ -181,8 +183,8 @@ declare const Root: <TDatum extends ChartDatum = ChartDatum, TMode extends Chart
|
|
|
181
183
|
* <AreaChart.Grid />
|
|
182
184
|
* <AreaChart.XAxis />
|
|
183
185
|
* <AreaChart.YAxis />
|
|
184
|
-
* <AreaChart.Area dataKey="http" label="HTTP" />
|
|
185
|
-
* <AreaChart.Area dataKey="tcp" label="TCP" />
|
|
186
|
+
* <AreaChart.Area dataKey="http" label="HTTP" color="blue" />
|
|
187
|
+
* <AreaChart.Area dataKey="tcp" label="TCP" color="emerald" />
|
|
186
188
|
* <AreaChart.Tooltip />
|
|
187
189
|
* <AreaChart.Legend />
|
|
188
190
|
* </AreaChart.Root>
|
|
@@ -190,8 +192,8 @@ declare const Root: <TDatum extends ChartDatum = ChartDatum, TMode extends Chart
|
|
|
190
192
|
*/
|
|
191
193
|
declare const Area: (props: AreaChartAreaProps) => null;
|
|
192
194
|
/**
|
|
193
|
-
* Horizontal hairline gridlines behind the areas (renderless;
|
|
194
|
-
*
|
|
195
|
+
* Horizontal hairline gridlines behind the areas (renderless; the chart
|
|
196
|
+
* paints it). Omit the part to omit the grid.
|
|
195
197
|
*
|
|
196
198
|
* @see https://mantle.ngrok.com/components/charts/area-chart#areachartgrid
|
|
197
199
|
*
|
|
@@ -201,8 +203,8 @@ declare const Area: (props: AreaChartAreaProps) => null;
|
|
|
201
203
|
* <AreaChart.Grid />
|
|
202
204
|
* <AreaChart.XAxis />
|
|
203
205
|
* <AreaChart.YAxis />
|
|
204
|
-
* <AreaChart.Area dataKey="http" label="HTTP" />
|
|
205
|
-
* <AreaChart.Area dataKey="tcp" label="TCP" />
|
|
206
|
+
* <AreaChart.Area dataKey="http" label="HTTP" color="blue" />
|
|
207
|
+
* <AreaChart.Area dataKey="tcp" label="TCP" color="emerald" />
|
|
206
208
|
* <AreaChart.Tooltip />
|
|
207
209
|
* <AreaChart.Legend />
|
|
208
210
|
* </AreaChart.Root>
|
|
@@ -210,7 +212,7 @@ declare const Area: (props: AreaChartAreaProps) => null;
|
|
|
210
212
|
*/
|
|
211
213
|
declare const Grid: (props: AreaChartGridProps) => null;
|
|
212
214
|
/**
|
|
213
|
-
* Tick labels along the bottom of the plot (renderless;
|
|
215
|
+
* Tick labels along the bottom of the plot (renderless; the chart paints it).
|
|
214
216
|
* Labels that would collide are skipped, never rotated.
|
|
215
217
|
*
|
|
216
218
|
* @see https://mantle.ngrok.com/components/charts/area-chart#areachartxaxis
|
|
@@ -221,8 +223,8 @@ declare const Grid: (props: AreaChartGridProps) => null;
|
|
|
221
223
|
* <AreaChart.Grid />
|
|
222
224
|
* <AreaChart.XAxis tickFormat={(date) => new Date(date).toLocaleDateString()} />
|
|
223
225
|
* <AreaChart.YAxis />
|
|
224
|
-
* <AreaChart.Area dataKey="http" label="HTTP" />
|
|
225
|
-
* <AreaChart.Area dataKey="tcp" label="TCP" />
|
|
226
|
+
* <AreaChart.Area dataKey="http" label="HTTP" color="blue" />
|
|
227
|
+
* <AreaChart.Area dataKey="tcp" label="TCP" color="emerald" />
|
|
226
228
|
* <AreaChart.Tooltip />
|
|
227
229
|
* <AreaChart.Legend />
|
|
228
230
|
* </AreaChart.Root>
|
|
@@ -230,8 +232,8 @@ declare const Grid: (props: AreaChartGridProps) => null;
|
|
|
230
232
|
*/
|
|
231
233
|
declare const XAxis: (props: AreaChartXAxisProps) => null;
|
|
232
234
|
/**
|
|
233
|
-
* Value tick labels along the left of the plot (renderless;
|
|
234
|
-
*
|
|
235
|
+
* Value tick labels along the left of the plot (renderless; the chart
|
|
236
|
+
* paints it). Ticks land on clean thousands-separated numbers.
|
|
235
237
|
*
|
|
236
238
|
* @see https://mantle.ngrok.com/components/charts/area-chart#areachartyaxis
|
|
237
239
|
*
|
|
@@ -241,8 +243,8 @@ declare const XAxis: (props: AreaChartXAxisProps) => null;
|
|
|
241
243
|
* <AreaChart.Grid />
|
|
242
244
|
* <AreaChart.XAxis />
|
|
243
245
|
* <AreaChart.YAxis tickFormat={(value) => `${value / 1000}k`} />
|
|
244
|
-
* <AreaChart.Area dataKey="http" label="HTTP" />
|
|
245
|
-
* <AreaChart.Area dataKey="tcp" label="TCP" />
|
|
246
|
+
* <AreaChart.Area dataKey="http" label="HTTP" color="blue" />
|
|
247
|
+
* <AreaChart.Area dataKey="tcp" label="TCP" color="emerald" />
|
|
246
248
|
* <AreaChart.Tooltip />
|
|
247
249
|
* <AreaChart.Legend />
|
|
248
250
|
* </AreaChart.Root>
|
|
@@ -251,7 +253,7 @@ declare const XAxis: (props: AreaChartXAxisProps) => null;
|
|
|
251
253
|
declare const YAxis: (props: AreaChartYAxisProps) => null;
|
|
252
254
|
/**
|
|
253
255
|
* A dashed horizontal marker at a y value — an SLO threshold, a budget, a
|
|
254
|
-
* limit (renderless;
|
|
256
|
+
* limit (renderless; the chart paints it).
|
|
255
257
|
*
|
|
256
258
|
* @see https://mantle.ngrok.com/components/charts/area-chart#areachartreferenceline
|
|
257
259
|
*
|
|
@@ -261,8 +263,8 @@ declare const YAxis: (props: AreaChartYAxisProps) => null;
|
|
|
261
263
|
* <AreaChart.Grid />
|
|
262
264
|
* <AreaChart.XAxis />
|
|
263
265
|
* <AreaChart.YAxis />
|
|
264
|
-
* <AreaChart.Area dataKey="http" label="HTTP" />
|
|
265
|
-
* <AreaChart.Area dataKey="tcp" label="TCP" />
|
|
266
|
+
* <AreaChart.Area dataKey="http" label="HTTP" color="blue" />
|
|
267
|
+
* <AreaChart.Area dataKey="tcp" label="TCP" color="emerald" />
|
|
266
268
|
* <AreaChart.ReferenceLine y={6000} label="Capacity" />
|
|
267
269
|
* <AreaChart.Tooltip />
|
|
268
270
|
* <AreaChart.Legend />
|
|
@@ -297,8 +299,8 @@ declare const ReferenceLine: (props: AreaChartReferenceLineProps) => null;
|
|
|
297
299
|
* <AreaChart.Grid />
|
|
298
300
|
* <AreaChart.XAxis />
|
|
299
301
|
* <AreaChart.YAxis />
|
|
300
|
-
* <AreaChart.Area dataKey="http" label="HTTP" />
|
|
301
|
-
* <AreaChart.Area dataKey="tcp" label="TCP" />
|
|
302
|
+
* <AreaChart.Area dataKey="http" label="HTTP" color="blue" />
|
|
303
|
+
* <AreaChart.Area dataKey="tcp" label="TCP" color="emerald" />
|
|
302
304
|
* <AreaChart.Tooltip valueFormat={(value) => `${value} requests`} footer="Click to view logs" />
|
|
303
305
|
* <AreaChart.Legend />
|
|
304
306
|
* </AreaChart.Root>
|
|
@@ -324,7 +326,7 @@ declare const Tooltip: (props: AreaChartTooltipProps) => null;
|
|
|
324
326
|
* | --- | --- | --- |
|
|
325
327
|
* | `data-slot` | `"area-chart-legend"` | The legend list. `AreaChart.Legend` renders it in flow below the plot. |
|
|
326
328
|
* | `data-slot` | `"area-chart-legend-label"` | On the `<div>` wrapping a `children` render prop. The default legend has none. |
|
|
327
|
-
* | `data-shape` | `"circle"` \| `"square"` \| `"triangle"` \| `"diamond"` \| `"triangle-down"` \| `"plus"` \| `"cross"` \| `"star"` | On each series' swatch, naming the glyph its `AreaChart.Area` wears — the `shape` it set, else the
|
|
329
|
+
* | `data-shape` | `"circle"` \| `"square"` \| `"triangle"` \| `"diamond"` \| `"triangle-down"` \| `"plus"` \| `"cross"` \| `"star"` | On each series' swatch, naming the glyph its `AreaChart.Area` wears — the `shape` it set, else the circle. The swatch clips itself to that glyph, so target this only to restyle a key. |
|
|
328
330
|
*
|
|
329
331
|
* @see https://mantle.ngrok.com/components/charts/area-chart#areachartlegend
|
|
330
332
|
*
|
|
@@ -334,8 +336,8 @@ declare const Tooltip: (props: AreaChartTooltipProps) => null;
|
|
|
334
336
|
* <AreaChart.Grid />
|
|
335
337
|
* <AreaChart.XAxis />
|
|
336
338
|
* <AreaChart.YAxis />
|
|
337
|
-
* <AreaChart.Area dataKey="http" label="HTTP" />
|
|
338
|
-
* <AreaChart.Area dataKey="tcp" label="TCP" />
|
|
339
|
+
* <AreaChart.Area dataKey="http" label="HTTP" color="blue" />
|
|
340
|
+
* <AreaChart.Area dataKey="tcp" label="TCP" color="emerald" />
|
|
339
341
|
* <AreaChart.Tooltip />
|
|
340
342
|
* <AreaChart.Legend />
|
|
341
343
|
* </AreaChart.Root>
|
|
@@ -355,8 +357,8 @@ declare const Legend: (props: AreaChartLegendProps) => import("react").JSX.Eleme
|
|
|
355
357
|
* @example
|
|
356
358
|
* ```tsx
|
|
357
359
|
* <AreaChart.Root data={data} xKey="date" stacked aria-label="Traffic by protocol">
|
|
358
|
-
* <AreaChart.Area dataKey="http" label="HTTP" />
|
|
359
|
-
* <AreaChart.Area dataKey="tcp" label="TCP" />
|
|
360
|
+
* <AreaChart.Area dataKey="http" label="HTTP" color="blue" />
|
|
361
|
+
* <AreaChart.Area dataKey="tcp" label="TCP" color="emerald" />
|
|
360
362
|
* <AreaChart.Legend />
|
|
361
363
|
* <AreaChart.CopyButton />
|
|
362
364
|
* </AreaChart.Root>
|
|
@@ -364,33 +366,63 @@ declare const Legend: (props: AreaChartLegendProps) => import("react").JSX.Eleme
|
|
|
364
366
|
*/
|
|
365
367
|
declare const CopyButton: (props: AreaChartCopyButtonProps) => import("react").JSX.Element;
|
|
366
368
|
/**
|
|
367
|
-
*
|
|
369
|
+
* Groups a list of charts, such as one chart per card, so they share one
|
|
370
|
+
* `role="status"` live region. A page of 100 charts mounts one region instead
|
|
371
|
+
* of one per chart, plus one for each `AreaChart.CopyButton`. Each chart keeps
|
|
372
|
+
* its own tooltip, description, and data table.
|
|
373
|
+
*
|
|
374
|
+
* Renders a `div` (`area-chart-list`) that holds the charts in a `display: contents`
|
|
375
|
+
* wrapper (`area-chart-list-items`), so a grid or flex layout on the List reaches
|
|
376
|
+
* the cards, and the live region as its last child. No `asChild`: a list
|
|
377
|
+
* element such as `ul` cannot hold the live region as a child.
|
|
378
|
+
*
|
|
379
|
+
* @see https://mantle.ngrok.com/components/charts/area-chart#areachartlist
|
|
380
|
+
*
|
|
381
|
+
* @example
|
|
382
|
+
* ```tsx
|
|
383
|
+
* <AreaChart.List>
|
|
384
|
+
* {agents.map((agent) => (
|
|
385
|
+
* <AreaChart.Root key={agent.id} data={agent.rows} xKey="date" aria-label={agent.name}>
|
|
386
|
+
* <AreaChart.Area dataKey="http" label="HTTP" color="blue" />
|
|
387
|
+
* <AreaChart.Tooltip />
|
|
388
|
+
* </AreaChart.Root>
|
|
389
|
+
* ))}
|
|
390
|
+
* </AreaChart.List>
|
|
391
|
+
* ```
|
|
392
|
+
*/
|
|
393
|
+
declare const List: (props: AreaChartListProps) => import("react").JSX.Element;
|
|
394
|
+
/**
|
|
395
|
+
* An area chart for showing how values — and, when stacked, a
|
|
368
396
|
* total and its parts — change over a continuous x axis. Each area fills with
|
|
369
397
|
* a 10% wash of the series color plus a 2px band-edge stroke; the Root-level
|
|
370
398
|
* `stacked` prop stacks the series in registration order from the baseline.
|
|
371
|
-
*
|
|
372
|
-
* tokens; areas keep a fixed slot color for the chart's lifetime even as
|
|
373
|
-
* other series are filtered in and out. Interaction ships with `Root`
|
|
399
|
+
* Each series names its own `color`. Interaction ships with `Root`
|
|
374
400
|
* unconditionally: a crosshair with an every-series tooltip, keyboard
|
|
375
401
|
* stepping, aria-live announcements, and an sr-only description. A Root builds
|
|
376
|
-
* and paints its
|
|
402
|
+
* and paints its surface once it comes within one viewport of the visible
|
|
377
403
|
* area, takes focus, or prints, and it mounts its sr-only data table once
|
|
378
|
-
* focus lands inside it. Large datasets decimate before painting
|
|
404
|
+
* focus lands inside it. Large datasets decimate before painting.
|
|
379
405
|
*
|
|
380
406
|
* **CSS variables (public API):**
|
|
381
407
|
*
|
|
382
408
|
* | CSS Variable | Default | Description |
|
|
383
409
|
* | --- | --- | --- |
|
|
384
|
-
* | `--color-chart
|
|
385
|
-
* | `--color-chart-other` | `--color-neutral-500` | The neutral overflow slot a series wears once every slot is held. |
|
|
410
|
+
* | `--color-chart-<name>` | per theme | The color a series with `color="<name>"` paints. Every mantle color name has one: the 600 step of its hue in light mode, and the 500 step in dark mode. Most names reach 3:1 contrast on the card surface, and the docs page lists the names that do not. |
|
|
386
411
|
*
|
|
387
412
|
* Two ways to change a series color, both public API. The `color` prop on
|
|
388
|
-
* `AreaChart.Area`
|
|
389
|
-
* redeclare its token on `Root
|
|
390
|
-
* `className="[--color-chart-
|
|
391
|
-
*
|
|
413
|
+
* `AreaChart.Area` takes a color name or any CSS color. To restyle a color name for one chart,
|
|
414
|
+
* redeclare its token on `Root`:
|
|
415
|
+
* `className="[--color-chart-blue:var(--color-brand)]"`. Every token resolves in
|
|
416
|
+
* `Root`'s own cascade, so a declaration scoped there wins for
|
|
392
417
|
* that chart and leaves every other chart on the page alone.
|
|
393
418
|
*
|
|
419
|
+
* @useWhen Show how a volume, or a total and its parts, changes across an ordered x axis, such as
|
|
420
|
+
* time.
|
|
421
|
+
*
|
|
422
|
+
* @siblings
|
|
423
|
+
* - `LineChart`: the series are trends to compare, and filled areas would hide where they cross.
|
|
424
|
+
* - `BarChart`: the reader compares values across categories by bar length from zero.
|
|
425
|
+
*
|
|
394
426
|
* @see https://mantle.ngrok.com/components/charts/area-chart
|
|
395
427
|
*
|
|
396
428
|
* @example
|
|
@@ -407,6 +439,12 @@ declare const CopyButton: (props: AreaChartCopyButtonProps) => import("react").J
|
|
|
407
439
|
* └── AreaChart.CopyButton
|
|
408
440
|
* ```
|
|
409
441
|
*
|
|
442
|
+
* A List groups Roots:
|
|
443
|
+
* ```
|
|
444
|
+
* AreaChart.List
|
|
445
|
+
* └── AreaChart.Root (one per chart)
|
|
446
|
+
* ```
|
|
447
|
+
*
|
|
410
448
|
* @example
|
|
411
449
|
* ```tsx
|
|
412
450
|
* const data = [
|
|
@@ -419,8 +457,8 @@ declare const CopyButton: (props: AreaChartCopyButtonProps) => import("react").J
|
|
|
419
457
|
* <AreaChart.Grid />
|
|
420
458
|
* <AreaChart.XAxis />
|
|
421
459
|
* <AreaChart.YAxis />
|
|
422
|
-
* <AreaChart.Area dataKey="http" label="HTTP" />
|
|
423
|
-
* <AreaChart.Area dataKey="tcp" label="TCP" />
|
|
460
|
+
* <AreaChart.Area dataKey="http" label="HTTP" color="blue" />
|
|
461
|
+
* <AreaChart.Area dataKey="tcp" label="TCP" color="emerald" />
|
|
424
462
|
* <AreaChart.Tooltip />
|
|
425
463
|
* <AreaChart.Legend />
|
|
426
464
|
* </AreaChart.Root>
|
|
@@ -428,7 +466,7 @@ declare const CopyButton: (props: AreaChartCopyButtonProps) => import("react").J
|
|
|
428
466
|
*/
|
|
429
467
|
declare const AreaChart: {
|
|
430
468
|
/**
|
|
431
|
-
* The root of an area chart: owns the data, the scales, the
|
|
469
|
+
* The root of an area chart: owns the data, the scales, the renderer,
|
|
432
470
|
* and the entire interaction contract.
|
|
433
471
|
*
|
|
434
472
|
* @see https://mantle.ngrok.com/components/charts/area-chart#areachartroot
|
|
@@ -439,8 +477,8 @@ declare const AreaChart: {
|
|
|
439
477
|
* <AreaChart.Grid />
|
|
440
478
|
* <AreaChart.XAxis />
|
|
441
479
|
* <AreaChart.YAxis />
|
|
442
|
-
* <AreaChart.Area dataKey="http" label="HTTP" />
|
|
443
|
-
* <AreaChart.Area dataKey="tcp" label="TCP" />
|
|
480
|
+
* <AreaChart.Area dataKey="http" label="HTTP" color="blue" />
|
|
481
|
+
* <AreaChart.Area dataKey="tcp" label="TCP" color="emerald" />
|
|
444
482
|
* <AreaChart.Tooltip />
|
|
445
483
|
* <AreaChart.Legend />
|
|
446
484
|
* </AreaChart.Root>
|
|
@@ -448,7 +486,7 @@ declare const AreaChart: {
|
|
|
448
486
|
*/
|
|
449
487
|
readonly Root: typeof Root;
|
|
450
488
|
/**
|
|
451
|
-
* One area series; registers with the chart
|
|
489
|
+
* One area series; registers with the chart, which paints it.
|
|
452
490
|
*
|
|
453
491
|
* @see https://mantle.ngrok.com/components/charts/area-chart#areachartarea
|
|
454
492
|
*
|
|
@@ -458,8 +496,8 @@ declare const AreaChart: {
|
|
|
458
496
|
* <AreaChart.Grid />
|
|
459
497
|
* <AreaChart.XAxis />
|
|
460
498
|
* <AreaChart.YAxis />
|
|
461
|
-
* <AreaChart.Area dataKey="http" label="HTTP" />
|
|
462
|
-
* <AreaChart.Area dataKey="tcp" label="TCP" />
|
|
499
|
+
* <AreaChart.Area dataKey="http" label="HTTP" color="blue" />
|
|
500
|
+
* <AreaChart.Area dataKey="tcp" label="TCP" color="emerald" />
|
|
463
501
|
* <AreaChart.Tooltip />
|
|
464
502
|
* <AreaChart.Legend />
|
|
465
503
|
* </AreaChart.Root>
|
|
@@ -477,8 +515,8 @@ declare const AreaChart: {
|
|
|
477
515
|
* <AreaChart.Grid />
|
|
478
516
|
* <AreaChart.XAxis />
|
|
479
517
|
* <AreaChart.YAxis />
|
|
480
|
-
* <AreaChart.Area dataKey="http" label="HTTP" />
|
|
481
|
-
* <AreaChart.Area dataKey="tcp" label="TCP" />
|
|
518
|
+
* <AreaChart.Area dataKey="http" label="HTTP" color="blue" />
|
|
519
|
+
* <AreaChart.Area dataKey="tcp" label="TCP" color="emerald" />
|
|
482
520
|
* <AreaChart.Tooltip />
|
|
483
521
|
* <AreaChart.Legend />
|
|
484
522
|
* </AreaChart.Root>
|
|
@@ -496,8 +534,8 @@ declare const AreaChart: {
|
|
|
496
534
|
* <AreaChart.Grid />
|
|
497
535
|
* <AreaChart.XAxis tickFormat={(date) => new Date(date).toLocaleDateString()} />
|
|
498
536
|
* <AreaChart.YAxis />
|
|
499
|
-
* <AreaChart.Area dataKey="http" label="HTTP" />
|
|
500
|
-
* <AreaChart.Area dataKey="tcp" label="TCP" />
|
|
537
|
+
* <AreaChart.Area dataKey="http" label="HTTP" color="blue" />
|
|
538
|
+
* <AreaChart.Area dataKey="tcp" label="TCP" color="emerald" />
|
|
501
539
|
* <AreaChart.Tooltip />
|
|
502
540
|
* <AreaChart.Legend />
|
|
503
541
|
* </AreaChart.Root>
|
|
@@ -515,8 +553,8 @@ declare const AreaChart: {
|
|
|
515
553
|
* <AreaChart.Grid />
|
|
516
554
|
* <AreaChart.XAxis />
|
|
517
555
|
* <AreaChart.YAxis tickFormat={(value) => `${value / 1000}k`} />
|
|
518
|
-
* <AreaChart.Area dataKey="http" label="HTTP" />
|
|
519
|
-
* <AreaChart.Area dataKey="tcp" label="TCP" />
|
|
556
|
+
* <AreaChart.Area dataKey="http" label="HTTP" color="blue" />
|
|
557
|
+
* <AreaChart.Area dataKey="tcp" label="TCP" color="emerald" />
|
|
520
558
|
* <AreaChart.Tooltip />
|
|
521
559
|
* <AreaChart.Legend />
|
|
522
560
|
* </AreaChart.Root>
|
|
@@ -534,8 +572,8 @@ declare const AreaChart: {
|
|
|
534
572
|
* <AreaChart.Grid />
|
|
535
573
|
* <AreaChart.XAxis />
|
|
536
574
|
* <AreaChart.YAxis />
|
|
537
|
-
* <AreaChart.Area dataKey="http" label="HTTP" />
|
|
538
|
-
* <AreaChart.Area dataKey="tcp" label="TCP" />
|
|
575
|
+
* <AreaChart.Area dataKey="http" label="HTTP" color="blue" />
|
|
576
|
+
* <AreaChart.Area dataKey="tcp" label="TCP" color="emerald" />
|
|
539
577
|
* <AreaChart.ReferenceLine y={6000} label="Capacity" />
|
|
540
578
|
* <AreaChart.Tooltip />
|
|
541
579
|
* <AreaChart.Legend />
|
|
@@ -554,8 +592,8 @@ declare const AreaChart: {
|
|
|
554
592
|
* <AreaChart.Grid />
|
|
555
593
|
* <AreaChart.XAxis />
|
|
556
594
|
* <AreaChart.YAxis />
|
|
557
|
-
* <AreaChart.Area dataKey="http" label="HTTP" />
|
|
558
|
-
* <AreaChart.Area dataKey="tcp" label="TCP" />
|
|
595
|
+
* <AreaChart.Area dataKey="http" label="HTTP" color="blue" />
|
|
596
|
+
* <AreaChart.Area dataKey="tcp" label="TCP" color="emerald" />
|
|
559
597
|
* <AreaChart.Tooltip valueFormat={(value) => `${value} requests`} />
|
|
560
598
|
* <AreaChart.Legend />
|
|
561
599
|
* </AreaChart.Root>
|
|
@@ -574,8 +612,8 @@ declare const AreaChart: {
|
|
|
574
612
|
* <AreaChart.Grid />
|
|
575
613
|
* <AreaChart.XAxis />
|
|
576
614
|
* <AreaChart.YAxis />
|
|
577
|
-
* <AreaChart.Area dataKey="http" label="HTTP" />
|
|
578
|
-
* <AreaChart.Area dataKey="tcp" label="TCP" />
|
|
615
|
+
* <AreaChart.Area dataKey="http" label="HTTP" color="blue" />
|
|
616
|
+
* <AreaChart.Area dataKey="tcp" label="TCP" color="emerald" />
|
|
579
617
|
* <AreaChart.Tooltip />
|
|
580
618
|
* <AreaChart.Legend />
|
|
581
619
|
* </AreaChart.Root>
|
|
@@ -590,13 +628,31 @@ declare const AreaChart: {
|
|
|
590
628
|
* @example
|
|
591
629
|
* ```tsx
|
|
592
630
|
* <AreaChart.Root data={data} xKey="date" stacked aria-label="Traffic by protocol">
|
|
593
|
-
* <AreaChart.Area dataKey="http" label="HTTP" />
|
|
594
|
-
* <AreaChart.Area dataKey="tcp" label="TCP" />
|
|
631
|
+
* <AreaChart.Area dataKey="http" label="HTTP" color="blue" />
|
|
632
|
+
* <AreaChart.Area dataKey="tcp" label="TCP" color="emerald" />
|
|
595
633
|
* <AreaChart.Legend />
|
|
596
634
|
* <AreaChart.CopyButton />
|
|
597
635
|
* </AreaChart.Root>
|
|
598
636
|
* ```
|
|
599
637
|
*/
|
|
600
638
|
readonly CopyButton: typeof CopyButton;
|
|
639
|
+
/**
|
|
640
|
+
* Groups a list of charts so they share one live region.
|
|
641
|
+
*
|
|
642
|
+
* @see https://mantle.ngrok.com/components/charts/area-chart#areachartlist
|
|
643
|
+
*
|
|
644
|
+
* @example
|
|
645
|
+
* ```tsx
|
|
646
|
+
* <AreaChart.List>
|
|
647
|
+
* {agents.map((agent) => (
|
|
648
|
+
* <AreaChart.Root key={agent.id} data={agent.rows} xKey="date" aria-label={agent.name}>
|
|
649
|
+
* <AreaChart.Area dataKey="http" label="HTTP" color="blue" />
|
|
650
|
+
* <AreaChart.Tooltip />
|
|
651
|
+
* </AreaChart.Root>
|
|
652
|
+
* ))}
|
|
653
|
+
* </AreaChart.List>
|
|
654
|
+
* ```
|
|
655
|
+
*/
|
|
656
|
+
readonly List: typeof List;
|
|
601
657
|
};
|
|
602
|
-
export { AreaChart, type AreaChartAreaProps, type AreaChartCopyButtonProps, type AreaChartGridProps, type AreaChartLegendProps, type AreaChartReferenceLineProps, type AreaChartRootProps, type AreaChartTooltipProps, type AreaChartXAxisProps, type AreaChartYAxisProps, type ChartDatumEvent, type ChartMode };
|
|
658
|
+
export { AreaChart, type AreaChartAreaProps, type AreaChartCopyButtonProps, type AreaChartGridProps, type AreaChartLegendProps, type AreaChartListProps, type AreaChartReferenceLineProps, type AreaChartRootProps, type AreaChartTooltipProps, type AreaChartXAxisProps, type AreaChartYAxisProps, type ChartDatumEvent, type ChartMode };
|
package/dist/area-chart.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{_ as e,a as t,c as n,d as r,l as i,n as a,o,s,t as c,u as l}from"./chart-DudCw24t.js";import{t as u}from"./chart-DCTGGlWL.js";import{c as d}from"react/compiler-runtime";import{jsx as f}from"react/jsx-runtime";const p={Root:e=>{let t=d(2),n;return t[0]===e?n=t[1]:(n=/* @__PURE__ */ f(c,{kind:`area`,componentName:`AreaChart`,slotName:`area-chart`,paintBackend:u,...e}),t[0]=e,t[1]=n),n},Area:e=>s(`AreaChart.Area`,`area`,e),Grid:e=>t(`AreaChart.Grid`,e),XAxis:e=>n(`AreaChart.XAxis`,e),YAxis:e=>i(`AreaChart.YAxis`,e),ReferenceLine:e=>o(`AreaChart.ReferenceLine`,e),Tooltip:e=>a(`AreaChart.Tooltip`,e),Legend:e=>{let t=d(2),n;return t[0]===e?n=t[1]:(n=/* @__PURE__ */ f(r,{partName:`AreaChart.Legend`,slotName:`area-chart`,...e}),t[0]=e,t[1]=n),n},CopyButton:t=>{let n=d(2),r;return n[0]===t?r=n[1]:(r=/* @__PURE__ */ f(e,{partName:`AreaChart.CopyButton`,slotName:`area-chart`,...t}),n[0]=t,n[1]=r),r},List:e=>{let t=d(2),n;return t[0]===e?n=t[1]:(n=/* @__PURE__ */ f(l,{slotName:`area-chart-list`,...e}),t[0]=e,t[1]=n),n}};export{p as AreaChart};
|
package/dist/avatar.d.ts
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Re-exports for the Avatar component.
|
|
3
|
+
*
|
|
4
|
+
* @see https://mantle.ngrok.com/components/data-display/avatar
|
|
5
|
+
*/
|
|
1
6
|
import { n as WithAsChild } from "./as-child-DFxX3U2i.js";
|
|
2
7
|
import { t as WithDataSlot } from "./data-slot-B-LqAcBB.js";
|
|
3
8
|
import { ComponentProps, ReactEventHandler, ReactNode } from "react";
|
|
@@ -221,6 +226,13 @@ declare const Fallback: ({ asChild, children, className, "data-slot": dataSlot,
|
|
|
221
226
|
* For the leading visual of a sidebar switcher row, put it inside
|
|
222
227
|
* [Sidebar.SwitcherTrigger](https://mantle.ngrok.com/components/navigation/sidebar#sidebarswitchertrigger).
|
|
223
228
|
*
|
|
229
|
+
* @useWhen Show a small picture of a person or an account, with initials or an icon when there is
|
|
230
|
+
* no picture.
|
|
231
|
+
*
|
|
232
|
+
* @siblings
|
|
233
|
+
* - `MediaObject`: the picture sits beside a title and a description.
|
|
234
|
+
* - `Icon`: the image is a generic symbol, not a person or an account.
|
|
235
|
+
*
|
|
224
236
|
* @see https://mantle.ngrok.com/components/data-display/avatar
|
|
225
237
|
*
|
|
226
238
|
* @example
|
package/dist/badge.d.ts
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Re-exports for the Badge component.
|
|
3
|
+
*
|
|
4
|
+
* @see https://mantle.ngrok.com/components/data-display/badge
|
|
5
|
+
*/
|
|
1
6
|
import { n as WithAsChild } from "./as-child-DFxX3U2i.js";
|
|
2
|
-
import { t as WithDataSlot } from "./data-slot-B-LqAcBB.js";
|
|
3
7
|
import { t as Color } from "./index-BZhHLrBi.js";
|
|
8
|
+
import { t as WithDataSlot } from "./data-slot-B-LqAcBB.js";
|
|
4
9
|
import { ComponentProps, ReactNode } from "react";
|
|
5
10
|
declare const appearances: readonly ["muted"];
|
|
6
11
|
type Appearance = (typeof appearances)[number];
|
|
@@ -57,6 +62,13 @@ type BadgeProps = ComponentProps<"span"> & WithAsChild & {
|
|
|
57
62
|
* | -------------- | --------------- | -------------------------------------------------------------------------------------------- |
|
|
58
63
|
* | `data-slot` | `"badge-label"` | On the `<span>` wrapping `children`. `display: contents`, so it changes no layout by itself. |
|
|
59
64
|
*
|
|
65
|
+
* @useWhen Label an item with a short status, a category tag, or a count.
|
|
66
|
+
*
|
|
67
|
+
* @siblings
|
|
68
|
+
* - `Button`: the label must respond to a click.
|
|
69
|
+
* - `Kbd`: the label is a keyboard key or a shortcut.
|
|
70
|
+
* - `MultiSelect`: the tags are values that the user picks and removes.
|
|
71
|
+
*
|
|
60
72
|
* @see https://mantle.ngrok.com/components/data-display/badge
|
|
61
73
|
*
|
|
62
74
|
* @example
|