jenosize-ui 0.1.0 → 0.2.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/README.md +10 -7
- package/dist/Cartesian-ZIKPEYWP.d.ts +26 -0
- package/dist/area-chart.d.ts +53 -0
- package/dist/area-chart.js +8 -0
- package/dist/avatar.d.ts +19 -0
- package/dist/avatar.js +12 -7
- package/dist/badge.js +5 -5
- package/dist/bar-chart.d.ts +31 -0
- package/dist/bar-chart.js +8 -0
- package/dist/breadcrumb.js +3 -3
- package/dist/button.d.ts +11 -1
- package/dist/button.js +9 -8
- package/dist/calendar.js +14 -12
- package/dist/callout.js +10 -9
- package/dist/card.d.ts +52 -2
- package/dist/card.js +6 -2
- package/dist/checkbox.js +6 -5
- package/dist/chunk-34J5AANZ.js +605 -0
- package/dist/{chunk-D6TPWNRK.js → chunk-3GT43XPK.js} +5 -5
- package/dist/{chunk-3Y5X7B5C.js → chunk-3Z3SDKIA.js} +6 -11
- package/dist/{chunk-MQGD2OUF.js → chunk-42FCPC77.js} +3 -3
- package/dist/{chunk-Z3ETJN5G.js → chunk-4BRMM3I5.js} +6 -11
- package/dist/{chunk-WZQFC7ZN.js → chunk-4HKDD3PR.js} +55 -16
- package/dist/chunk-4K6V6NNK.js +169 -0
- package/dist/{chunk-ZZA2LUTL.js → chunk-4R7WDDCW.js} +41 -16
- package/dist/{chunk-BJUZVYQC.js → chunk-4W6AYGLR.js} +12 -12
- package/dist/{chunk-4OLULPQG.js → chunk-54S5CUY6.js} +8 -5
- package/dist/{chunk-GRLSUQQE.js → chunk-5JRM3OES.js} +4 -4
- package/dist/chunk-5ZPUAGOP.js +19 -0
- package/dist/{chunk-W5GGOUUI.js → chunk-6HJA7NPL.js} +3 -3
- package/dist/{chunk-CME4DIML.js → chunk-6IUTVDNI.js} +22 -3
- package/dist/chunk-6UBYHSBX.js +147 -0
- package/dist/{chunk-HMUZE6EK.js → chunk-74HPBSVY.js} +3 -3
- package/dist/chunk-75M43ELV.js +366 -0
- package/dist/chunk-763VS2FY.js +10 -0
- package/dist/chunk-7HV6EIGZ.js +26 -0
- package/dist/chunk-7VLYQR4D.js +44 -0
- package/dist/{chunk-D5BTFSL7.js → chunk-A46ED5JQ.js} +3 -3
- package/dist/{chunk-W46K56XU.js → chunk-A5WQLN4B.js} +8 -24
- package/dist/chunk-AC6ZWKRN.js +23 -0
- package/dist/{chunk-E7ZSWBAK.js → chunk-BD5YKFRA.js} +4 -4
- package/dist/chunk-BLIZ3CL3.js +49 -0
- package/dist/{chunk-DRZCJCBO.js → chunk-BNIWT6CW.js} +4 -4
- package/dist/{chunk-JVJRHBTD.js → chunk-C6OTOTKI.js} +21 -8
- package/dist/chunk-CTENRS34.js +60 -0
- package/dist/{chunk-7IU5TMFL.js → chunk-CWMFEF6R.js} +75 -27
- package/dist/{chunk-JTNFJLIY.js → chunk-DCGTB7P7.js} +13 -13
- package/dist/{chunk-GFOAJVW5.js → chunk-DJYWPJZ3.js} +3 -3
- package/dist/{chunk-MUFHLP4S.js → chunk-DTMYD63D.js} +11 -22
- package/dist/{chunk-KDLPXXD2.js → chunk-EDOUI2BG.js} +4 -4
- package/dist/{chunk-R6RGJF4L.js → chunk-EDT5J5WK.js} +4 -4
- package/dist/{chunk-PWKWNDBS.js → chunk-EX374YWB.js} +6 -6
- package/dist/{chunk-F2K7VJUV.js → chunk-FFTRB2UU.js} +4 -4
- package/dist/chunk-FIGBJGH2.js +1474 -0
- package/dist/chunk-FKVPAEJ6.js +57 -0
- package/dist/{chunk-J7ZQQFPT.js → chunk-FZBZGA3P.js} +17 -17
- package/dist/{chunk-T7FCG7XV.js → chunk-GAFGIT4Q.js} +10 -10
- package/dist/chunk-HSVBTIP2.js +482 -0
- package/dist/{chunk-FHHAPGCR.js → chunk-ILICYNK7.js} +3 -3
- package/dist/{chunk-WFY7DKQD.js → chunk-JAVNGTOE.js} +9 -14
- package/dist/{chunk-7HOIZ3UO.js → chunk-JMWYCT63.js} +6 -6
- package/dist/{chunk-QA74ITR4.js → chunk-JUWDRRD6.js} +45 -17
- package/dist/{chunk-BVJWBYIG.js → chunk-JXHZHUB3.js} +4 -4
- package/dist/{chunk-VWC72TR3.js → chunk-JYBGO6GY.js} +7 -7
- package/dist/{chunk-J36M3KRX.js → chunk-L53Y7KUV.js} +13 -11
- package/dist/chunk-LBYCCLVI.js +33 -0
- package/dist/chunk-LCG34A5T.js +98 -0
- package/dist/chunk-M5TVCASC.js +75 -0
- package/dist/chunk-MCUASLZH.js +10 -0
- package/dist/{chunk-5RAPA22E.js → chunk-MD4AR43X.js} +4 -4
- package/dist/{chunk-JP26LPCY.js → chunk-MYQ3FD4Y.js} +25 -11
- package/dist/chunk-NA35YZRD.js +252 -0
- package/dist/chunk-NKDW6C7K.js +10 -0
- package/dist/{chunk-5NOBSXJN.js → chunk-NMERLWT7.js} +6 -6
- package/dist/{chunk-KMSYEE23.js → chunk-P6CON2R2.js} +25 -11
- package/dist/{chunk-LME57Z6J.js → chunk-P7DH62UY.js} +6 -6
- package/dist/chunk-PO2TYK3C.js +17 -0
- package/dist/{chunk-5FATN5YD.js → chunk-PXEJ5RKO.js} +4 -4
- package/dist/{chunk-JYGR44ZC.js → chunk-QBHQOX23.js} +6 -6
- package/dist/{chunk-GCVA3OIV.js → chunk-QDYE5LVT.js} +13 -3
- package/dist/{chunk-J2BCKBHC.js → chunk-QKDEQFOQ.js} +4 -4
- package/dist/{chunk-ZOOX3TUB.js → chunk-RIXEUAPY.js} +5 -5
- package/dist/{chunk-THC2ISYP.js → chunk-RNXRZGXN.js} +4 -4
- package/dist/{chunk-7EWQKTNQ.js → chunk-T2WAD4QP.js} +15 -13
- package/dist/{chunk-KNYKWUYX.js → chunk-TBN644IN.js} +3 -3
- package/dist/{chunk-MKC5HNA7.js → chunk-USL3TDZM.js} +101 -90
- package/dist/{chunk-CYPPEUX5.js → chunk-VEOYCAJP.js} +4 -9
- package/dist/{chunk-WEUJYDCV.js → chunk-VH35QHD4.js} +6 -6
- package/dist/chunk-VWGAMOSE.js +188 -0
- package/dist/{chunk-SV56BSUQ.js → chunk-WKWAUU64.js} +4 -4
- package/dist/chunk-X2X7Q7NW.js +17 -0
- package/dist/{chunk-I7WU4GTY.js → chunk-YLEHYDXC.js} +5 -5
- package/dist/combobox.js +12 -10
- package/dist/control-size-CaxQhkKh.d.ts +3 -0
- package/dist/date-input.js +9 -8
- package/dist/date-picker.js +20 -17
- package/dist/dialog.d.ts +16 -4
- package/dist/dialog.js +8 -6
- package/dist/drawer.d.ts +9 -2
- package/dist/drawer.js +7 -5
- package/dist/dropdown-menu.d.ts +14 -2
- package/dist/dropdown-menu.js +7 -3
- package/dist/dropzone.d.ts +34 -0
- package/dist/dropzone.js +22 -0
- package/dist/form.d.ts +78 -0
- package/dist/form.js +176 -32
- package/dist/header-navigation.d.ts +15 -4
- package/dist/header-navigation.js +19 -14
- package/dist/index.d.ts +26 -4
- package/dist/index.js +76 -56
- package/dist/indicator.js +4 -4
- package/dist/input.js +8 -7
- package/dist/kanban-board.d.ts +549 -0
- package/dist/kanban-board.js +23 -0
- package/dist/line-chart.d.ts +35 -0
- package/dist/line-chart.js +8 -0
- package/dist/{nav-Bla0o_-1.d.ts → nav-DcCyt00p.d.ts} +8 -11
- package/dist/number-input.js +8 -7
- package/dist/pagination.js +12 -9
- package/dist/panel-El4oI68p.d.ts +9 -0
- package/dist/payment-input.js +8 -7
- package/dist/pie-chart.d.ts +60 -0
- package/dist/pie-chart.js +8 -0
- package/dist/popover.d.ts +9 -3
- package/dist/popover.js +7 -5
- package/dist/progress-steps.d.ts +275 -0
- package/dist/progress-steps.js +8 -0
- package/dist/progress.js +2 -2
- package/dist/radar-chart.d.ts +73 -0
- package/dist/radar-chart.js +8 -0
- package/dist/radial-chart.d.ts +69 -0
- package/dist/radial-chart.js +8 -0
- package/dist/radio.js +6 -5
- package/dist/rule-BqzaIwJy.d.ts +80 -0
- package/dist/scroll-area.d.ts +62 -0
- package/dist/scroll-area.js +7 -0
- package/dist/select.d.ts +1 -2
- package/dist/select.js +15 -13
- package/dist/separator.d.ts +114 -0
- package/dist/separator.js +5 -0
- package/dist/sidebar-navigation.d.ts +54 -7
- package/dist/sidebar-navigation.js +15 -8
- package/dist/skeleton.d.ts +61 -0
- package/dist/skeleton.js +5 -0
- package/dist/styles.css +1 -1
- package/dist/surface-DFyDnrTJ.d.ts +34 -0
- package/dist/switch.js +2 -2
- package/dist/table.d.ts +94 -38
- package/dist/table.js +32 -28
- package/dist/tabs.js +2 -2
- package/dist/tag-input.js +11 -10
- package/dist/tag.js +3 -3
- package/dist/textarea.js +6 -5
- package/dist/theme.css +82 -0
- package/dist/theme.js +10 -9
- package/dist/toast.js +10 -9
- package/dist/tooltip-surface-Dmvb8v5K.d.ts +35 -0
- package/dist/tooltip.d.ts +15 -1
- package/dist/tooltip.js +3 -2
- package/dist/tree.js +6 -5
- package/dist/types-6kvYwtRH.d.ts +156 -0
- package/dist/use-uploads-ButS4dGe.d.ts +473 -0
- package/dist/verification-code-input.d.ts +84 -0
- package/dist/verification-code-input.js +13 -0
- package/package.json +59 -9
- package/dist/card-nWicloNi.d.ts +0 -80
- package/dist/chunk-24TO7E32.js +0 -42
- package/dist/chunk-FXIBGTS5.js +0 -14
- package/dist/chunk-ZZT2E5VT.js +0 -24
package/dist/tooltip.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Tooltip as Tooltip$1 } from '@base-ui/react/tooltip';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
+
import { T as TooltipTone } from './tooltip-surface-Dmvb8v5K.js';
|
|
3
4
|
|
|
4
5
|
interface TooltipProviderProps {
|
|
5
6
|
/** Grouped open delay (ms) shared by tooltips in this region. @default 300 */
|
|
@@ -15,6 +16,7 @@ declare function TooltipProvider(props: TooltipProviderProps): React.JSX.Element
|
|
|
15
16
|
declare namespace TooltipProvider {
|
|
16
17
|
var displayName: string;
|
|
17
18
|
}
|
|
19
|
+
|
|
18
20
|
type TooltipSide = "top" | "right" | "bottom" | "left";
|
|
19
21
|
type TooltipAlign = "start" | "center" | "end";
|
|
20
22
|
/** Two steps, no `sm` — see `SIZE` below for why the ladder stops here. */
|
|
@@ -33,6 +35,18 @@ interface TooltipProps {
|
|
|
33
35
|
* @default "md"
|
|
34
36
|
*/
|
|
35
37
|
size?: TooltipSize;
|
|
38
|
+
/**
|
|
39
|
+
* How the tooltip relates to the page. **Both members are correct in both themes** — the light/dark
|
|
40
|
+
* split lives in the tokens, so this is not a theme switch.
|
|
41
|
+
*
|
|
42
|
+
* - `surface` — a raised panel, the same recipe as the library's other floating readouts
|
|
43
|
+
* (`Progress`'s value bubble, the drag ghost, an elevated `Card`).
|
|
44
|
+
* - `inverse` — the always-dark chip. Reach for it over an image, a video frame, or a
|
|
45
|
+
* `bg-primary-solid` stage, where a raised light panel competes with the content.
|
|
46
|
+
*
|
|
47
|
+
* @default "surface"
|
|
48
|
+
*/
|
|
49
|
+
tone?: TooltipTone;
|
|
36
50
|
/** Preferred placement; auto-flips on collision. @default "top" */
|
|
37
51
|
side?: TooltipSide;
|
|
38
52
|
/** Cross-axis alignment against the trigger (with `side` → UUI's 8 placements). @default "center" */
|
|
@@ -67,4 +81,4 @@ declare const TooltipExport: typeof Tooltip & {
|
|
|
67
81
|
Provider: typeof TooltipProvider;
|
|
68
82
|
};
|
|
69
83
|
|
|
70
|
-
export { TooltipExport as Tooltip, type TooltipAlign, type TooltipProps, type TooltipProviderProps, type TooltipSide, type TooltipSize };
|
|
84
|
+
export { TooltipExport as Tooltip, type TooltipAlign, type TooltipProps, type TooltipProviderProps, type TooltipSide, type TooltipSize, TooltipTone };
|
package/dist/tooltip.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
"use client";export { TooltipExport as Tooltip } from './chunk-
|
|
1
|
+
"use client";export { TooltipExport as Tooltip } from './chunk-4R7WDDCW.js';
|
|
2
|
+
import './chunk-AC6ZWKRN.js';
|
|
2
3
|
import './chunk-O4GRKO3I.js';
|
|
3
|
-
import './chunk-
|
|
4
|
+
import './chunk-QDYE5LVT.js';
|
|
4
5
|
import './chunk-ZSNJ6UA3.js';
|
|
5
6
|
//# sourceMappingURL=tooltip.js.map
|
|
6
7
|
//# sourceMappingURL=tooltip.js.map
|
package/dist/tree.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
"use client";export { Tree, ancestorIds, applyTreeMove, attachChildren, isBranch, isDescendant, useTree, walkTree } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
"use client";export { Tree, ancestorIds, applyTreeMove, attachChildren, isBranch, isDescendant, useTree, walkTree } from './chunk-T2WAD4QP.js';
|
|
2
|
+
import './chunk-5ZPUAGOP.js';
|
|
3
|
+
import './chunk-P6CON2R2.js';
|
|
4
|
+
import './chunk-7HV6EIGZ.js';
|
|
4
5
|
import './chunk-F6NLE6XJ.js';
|
|
5
6
|
import './chunk-52IFGFTL.js';
|
|
6
7
|
import './chunk-EDSK6FEH.js';
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-
|
|
8
|
+
import './chunk-BLIZ3CL3.js';
|
|
9
|
+
import './chunk-QDYE5LVT.js';
|
|
9
10
|
import './chunk-ZSNJ6UA3.js';
|
|
10
11
|
//# sourceMappingURL=tree.js.map
|
|
11
12
|
//# sourceMappingURL=tree.js.map
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import { T as TooltipTone } from './tooltip-surface-Dmvb8v5K.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* The public type surface for the chart family. No JSX, no recharts — `primitives.ts` alone names
|
|
5
|
+
* the engine, and nothing in here leaks its vocabulary.
|
|
6
|
+
*
|
|
7
|
+
* **This surface is frozen at phase 1.** The six components consume it; they do not extend it. If a
|
|
8
|
+
* component needs a field that is not here, it comes back to this file and the change is deliberate.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* A series' colour — a closed set over the six hues `theme.css` actually declares
|
|
13
|
+
* (neutral · brand · red · amber · green · blue). Never a hex, never a class string, never a ramp
|
|
14
|
+
* stop: an UNDECLARED token emits no class at all — no warning, no error, no gate — so an open
|
|
15
|
+
* string here would paint nothing and look like a rendering bug.
|
|
16
|
+
*/
|
|
17
|
+
type ChartColor = "brand" | "blue" | "green" | "amber" | "red" | "neutral";
|
|
18
|
+
/**
|
|
19
|
+
* How series with no explicit `color` are coloured.
|
|
20
|
+
*
|
|
21
|
+
* - `brand` — the monochrome brand ramp. Correct for ORDINAL series (this year / last year /
|
|
22
|
+
* forecast), where a hue would imply a category that isn't there.
|
|
23
|
+
* - `categorical` — six distinct hues, for series that genuinely are separate categories.
|
|
24
|
+
*
|
|
25
|
+
* @default "brand"
|
|
26
|
+
*/
|
|
27
|
+
type ChartPalette = "brand" | "categorical";
|
|
28
|
+
/**
|
|
29
|
+
* One plotted series.
|
|
30
|
+
*
|
|
31
|
+
* `key` must name a column of `data` — the generic is threaded from the sibling `data` prop with
|
|
32
|
+
* `NoInfer`, the same guarantee `value`↔`options` gives every list control. A widened annotation on
|
|
33
|
+
* `data` degrades `key` to `string`; that is what `Chart.test-d.tsx` pins.
|
|
34
|
+
*/
|
|
35
|
+
interface ChartSeries<T> {
|
|
36
|
+
/** The column of `data` this series plots. */
|
|
37
|
+
key: keyof T & string;
|
|
38
|
+
/** The name shown in the legend, the tooltip and the screen-reader table. */
|
|
39
|
+
label: string;
|
|
40
|
+
/** Overrides `palette` for this series only. */
|
|
41
|
+
color?: ChartColor;
|
|
42
|
+
}
|
|
43
|
+
/** A single-value datum — the POLAR channel (Pie / Radial), which has no x-axis to key against. */
|
|
44
|
+
interface ChartDatum {
|
|
45
|
+
label: string;
|
|
46
|
+
value: number;
|
|
47
|
+
color?: ChartColor;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Legend placement. ONE union, never a `showLegend` + `legendPosition` pair.
|
|
51
|
+
*
|
|
52
|
+
* **Every member names where the legend actually goes**, which was not true of the first cut: it
|
|
53
|
+
* shipped `"top"` for the reference's desktop layout, a VERTICAL stack pinned to the RIGHT. A member
|
|
54
|
+
* that lies about its own side is the §4 failure exactly — the name is the vocabulary we own, so it
|
|
55
|
+
* has to describe the thing. `"right"` is that layout under its real name, and it is the cartesian
|
|
56
|
+
* default, so the pixels did not move; `"top"` now means a horizontal row ABOVE the plot.
|
|
57
|
+
*
|
|
58
|
+
* `top`/`bottom` are horizontal rows, centred. `left`/`right` are vertical stacks. `none` is the off
|
|
59
|
+
* switch and stays inside the union — a `legend={false}` + `legendPosition` pair could express the
|
|
60
|
+
* contradiction `{ legend: false, legendPosition: "top" }`, and policing that with a dev-warn is a
|
|
61
|
+
* warning for a state the type invented.
|
|
62
|
+
*/
|
|
63
|
+
type ChartLegendPlacement = "top" | "right" | "bottom" | "left" | "none";
|
|
64
|
+
/** Interpolation between points. @default "monotone" (the reference's choice on all four demos) */
|
|
65
|
+
type ChartCurve = "monotone" | "linear" | "step";
|
|
66
|
+
/** The POLAR radius ladder. Cartesian charts size by `height`, not by this. */
|
|
67
|
+
type ChartSize = "xs" | "sm" | "md" | "lg";
|
|
68
|
+
/**
|
|
69
|
+
* A pie's centre: how fat the ring is, or `false` for a solid disc.
|
|
70
|
+
*
|
|
71
|
+
* ONE union rather than a `donut: boolean` + `thickness` pair — the pair can spell
|
|
72
|
+
* `{ donut: false, thickness: "thick" }`, a state whose only possible fix is a dev-warn policing
|
|
73
|
+
* something the type invented (§4). The off switch stays inside the union for the same reason
|
|
74
|
+
* `ChartLegendPlacement` keeps `"none"`, and it keeps the existing `donut={false}` call sites
|
|
75
|
+
* compiling unchanged.
|
|
76
|
+
*
|
|
77
|
+
* The members are spelled `thin`/`regular`/`thick` and NOT the `sm`/`md`/`lg` ladder on purpose:
|
|
78
|
+
* `size` already owns that vocabulary here, and `<PieChart size="sm" donut="md">` would read as two
|
|
79
|
+
* size scales fighting. This is a weight axis, so it takes weight words.
|
|
80
|
+
*
|
|
81
|
+
* @default "regular"
|
|
82
|
+
*/
|
|
83
|
+
type PieDonut = false | "thin" | "regular" | "thick";
|
|
84
|
+
/**
|
|
85
|
+
* Everything the three cartesian charts share.
|
|
86
|
+
*
|
|
87
|
+
* @internal — Area/Bar/Line each re-declare their own public interface extending this, so a caller
|
|
88
|
+
* reading `AreaChartProps` sees one list rather than chasing a base.
|
|
89
|
+
*/
|
|
90
|
+
interface CartesianChartBaseProps<T extends object> {
|
|
91
|
+
/** One row per x-value, with a column per series. */
|
|
92
|
+
data: readonly T[];
|
|
93
|
+
/** The category-axis column. */
|
|
94
|
+
x: keyof T & string;
|
|
95
|
+
/**
|
|
96
|
+
* A SECOND column that groups adjacent categories into bands — a two-tier category axis.
|
|
97
|
+
*
|
|
98
|
+
* Bands are **runs in data order**, never a re-sort: two non-adjacent runs sharing a label render
|
|
99
|
+
* as two bands, because that is what the data says. Nests ONE level, matching Table's banded
|
|
100
|
+
* headers.
|
|
101
|
+
*
|
|
102
|
+
* It is a key rather than a nested `{ label, categories }` shape because the grouping already
|
|
103
|
+
* lives in a column of these wide rows — a nested prop would be a second copy of the same fact,
|
|
104
|
+
* able to disagree with the data. And it is **not** `groupBy`: nothing is aggregated here, the
|
|
105
|
+
* chart plots the rows it is given.
|
|
106
|
+
*/
|
|
107
|
+
xGroup?: keyof T & string;
|
|
108
|
+
/** ORDER drives colour order — deterministic, unlike a keyed record. */
|
|
109
|
+
series: readonly ChartSeries<NoInfer<T>>[];
|
|
110
|
+
/** @default "brand" */
|
|
111
|
+
palette?: ChartPalette;
|
|
112
|
+
/** Plot height in px. @default 240 — the reference's `h-60`. */
|
|
113
|
+
height?: number;
|
|
114
|
+
/** @default "right" */
|
|
115
|
+
legend?: ChartLegendPlacement;
|
|
116
|
+
/** Horizontal rules only, matching the reference. @default true */
|
|
117
|
+
grid?: boolean;
|
|
118
|
+
/** Axis title under the category axis. */
|
|
119
|
+
xLabel?: string;
|
|
120
|
+
/** Axis title beside the value axis. */
|
|
121
|
+
yLabel?: string;
|
|
122
|
+
/** Formats the category tick, the tooltip title and the screen-reader table's row headers. */
|
|
123
|
+
formatX?: (value: T[keyof T]) => string;
|
|
124
|
+
/**
|
|
125
|
+
* Formats the value ticks, the tooltip rows AND the screen-reader table, from ONE prop — a
|
|
126
|
+
* tooltip showing `1204` beside an axis showing `1.2k` is the drift this prevents.
|
|
127
|
+
*
|
|
128
|
+
* @default (v) => v.toLocaleString()
|
|
129
|
+
*/
|
|
130
|
+
formatValue?: (value: number) => string;
|
|
131
|
+
/** @default true */
|
|
132
|
+
tooltip?: boolean;
|
|
133
|
+
/**
|
|
134
|
+
* The hover tooltip's surface — the same union `<Tooltip>` takes, so a chart tooltip and a real
|
|
135
|
+
* tooltip on the same page are one object. **Both members are correct in both themes**; this is
|
|
136
|
+
* not a theme switch, the light/dark split already lives in the tokens.
|
|
137
|
+
*
|
|
138
|
+
* - `surface` — a raised panel (default), like every other floating readout in the library.
|
|
139
|
+
* - `inverse` — the always-dark chip. For a chart on a dark stage or over imagery.
|
|
140
|
+
*
|
|
141
|
+
* Dead when `tooltip` is `false`, which is the one seam here worth naming: §11 would fold a switch
|
|
142
|
+
* and its settings into one prop (`tooltip?: false | { tone }`). Kept flat deliberately — see
|
|
143
|
+
* `docs/components/chart.md`.
|
|
144
|
+
*
|
|
145
|
+
* @default "surface"
|
|
146
|
+
*/
|
|
147
|
+
tooltipTone?: TooltipTone;
|
|
148
|
+
/** Shown instead of the plot when `data` is empty. @default "No data to display" */
|
|
149
|
+
emptyMessage?: string;
|
|
150
|
+
/** Names the figure and captions the screen-reader data table. */
|
|
151
|
+
"aria-label"?: string;
|
|
152
|
+
/** **Layout/spacing only**, merged via `cn()`. Never restyles an axis, a mark or the tooltip. */
|
|
153
|
+
className?: string;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export type { CartesianChartBaseProps as C, PieDonut as P, ChartColor as a, ChartCurve as b, ChartDatum as c, ChartLegendPlacement as d, ChartPalette as e, ChartSeries as f, ChartSize as g };
|