@squadbase/vantage 0.7.1-dev1.9737835 → 0.7.1-dev1.bb6bd72
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/{build-U7GO26HR.js → build-AON4MAQQ.js} +3 -3
- package/dist/{build-U7GO26HR.js.map → build-AON4MAQQ.js.map} +1 -1
- package/dist/{chunk-EG4PX726.js → chunk-GWXKENNH.js} +122 -5
- package/dist/chunk-GWXKENNH.js.map +1 -0
- package/dist/{chunk-SC7K2RD6.js → chunk-I2GWIPTD.js} +101 -27
- package/dist/chunk-I2GWIPTD.js.map +1 -0
- package/dist/{chunk-SDJTTMLK.js → chunk-SR43D6EF.js} +13 -8
- package/dist/chunk-SR43D6EF.js.map +1 -0
- package/dist/{chunk-P2KIHF65.js → chunk-U6MWBCM6.js} +28 -7
- package/dist/chunk-U6MWBCM6.js.map +1 -0
- package/dist/cli.js +2 -2
- package/dist/components/index.d.ts +206 -4
- package/dist/components/index.js +3 -3
- package/dist/{dev-O42JFQ64.js → dev-BZ7FXDB3.js} +3 -3
- package/dist/{dev-O42JFQ64.js.map → dev-BZ7FXDB3.js.map} +1 -1
- package/dist/doc/index.js +1 -1
- package/dist/slide/index.js +1 -1
- package/dist/table/index.js +3 -3
- package/dist/ui/index.d.ts +28 -1
- package/dist/ui/index.js +172 -9
- package/dist/ui/index.js.map +1 -1
- package/dist/vite/index.js +1 -1
- package/package.json +2 -2
- package/registry/parts.json +81 -2
- package/registry/ui/area-chart.tsx +43 -8
- package/registry/ui/bar-chart.tsx +43 -8
- package/registry/ui/bar-list.tsx +43 -8
- package/registry/ui/box-plot-chart.tsx +42 -7
- package/registry/ui/category-bar.tsx +25 -5
- package/registry/ui/chart-frame.tsx +47 -14
- package/registry/ui/checkbox.tsx +4 -3
- package/registry/ui/code-block.tsx +44 -0
- package/registry/ui/combo-chart.tsx +20 -3
- package/registry/ui/combobox.tsx +7 -0
- package/registry/ui/context-menu.tsx +71 -0
- package/registry/ui/dashboard-card.tsx +20 -9
- package/registry/ui/data-table.tsx +7 -1
- package/registry/ui/date-range-picker.tsx +51 -4
- package/registry/ui/delta.tsx +36 -11
- package/registry/ui/donut-chart.tsx +43 -8
- package/registry/ui/echart.tsx +167 -7
- package/registry/ui/file-dropzone.tsx +143 -0
- package/registry/ui/filter-bar.tsx +74 -1
- package/registry/ui/forecast-chart.tsx +42 -7
- package/registry/ui/funnel-steps.tsx +22 -4
- package/registry/ui/heatmap.tsx +20 -3
- package/registry/ui/histogram-chart.tsx +42 -7
- package/registry/ui/kpi-card.tsx +12 -8
- package/registry/ui/legend.tsx +73 -15
- package/registry/ui/line-chart.tsx +43 -8
- package/registry/ui/page-shell.tsx +2 -0
- package/registry/ui/paired-chart.tsx +43 -8
- package/registry/ui/progress.tsx +1 -1
- package/registry/ui/scatter-chart.tsx +50 -12
- package/registry/ui/sparkline.tsx +43 -8
- package/registry/ui/states.tsx +34 -1
- package/registry/ui/status-badge.tsx +7 -7
- package/registry/ui/tabs.tsx +1 -0
- package/registry/ui/treemap.tsx +20 -3
- package/registry/ui/waterfall-chart.tsx +64 -11
- package/dist/chunk-EG4PX726.js.map +0 -1
- package/dist/chunk-P2KIHF65.js.map +0 -1
- package/dist/chunk-SC7K2RD6.js.map +0 -1
- package/dist/chunk-SDJTTMLK.js.map +0 -1
|
@@ -4,6 +4,25 @@ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
|
4
4
|
|
|
5
5
|
// @squadbase/vantage — generated build. Do not edit.
|
|
6
6
|
var VB_WIDTH = 100;
|
|
7
|
+
var TOKEN_CLASS = {
|
|
8
|
+
"chart-1": "text-chart-1",
|
|
9
|
+
"chart-2": "text-chart-2",
|
|
10
|
+
"chart-3": "text-chart-3",
|
|
11
|
+
"chart-4": "text-chart-4",
|
|
12
|
+
"chart-5": "text-chart-5",
|
|
13
|
+
positive: "text-positive",
|
|
14
|
+
warning: "text-warning",
|
|
15
|
+
negative: "text-negative",
|
|
16
|
+
neutral: "text-neutral",
|
|
17
|
+
info: "text-info"
|
|
18
|
+
};
|
|
19
|
+
function resolveSparklineColor(color) {
|
|
20
|
+
const value = color.trim();
|
|
21
|
+
const tokenClass = TOKEN_CLASS[value];
|
|
22
|
+
if (tokenClass) return { className: tokenClass };
|
|
23
|
+
if (/^(?:[\w-]+:)*!?text-/.test(value) || /\s/.test(value) && !value.includes("(")) return { className: color };
|
|
24
|
+
return { css: value };
|
|
25
|
+
}
|
|
7
26
|
function normalizeData(values, height, vPad = 2) {
|
|
8
27
|
const min = Math.min(...values);
|
|
9
28
|
const max = Math.max(...values);
|
|
@@ -50,7 +69,7 @@ var Sparkline = forwardRef(function Sparkline2({
|
|
|
50
69
|
data = NO_ROWS,
|
|
51
70
|
variant = "line",
|
|
52
71
|
height = 40,
|
|
53
|
-
color = "
|
|
72
|
+
color = "chart-1",
|
|
54
73
|
area = false,
|
|
55
74
|
animate = false,
|
|
56
75
|
highlight = "auto",
|
|
@@ -63,6 +82,7 @@ var Sparkline = forwardRef(function Sparkline2({
|
|
|
63
82
|
if (animate) setMounted(true);
|
|
64
83
|
}, [animate]);
|
|
65
84
|
if (data.length === 0) return null;
|
|
85
|
+
const { className: colorClass, css: colorCss } = resolveSparklineColor(color);
|
|
66
86
|
const values = data.map((d) => d.value);
|
|
67
87
|
const ys = normalizeData(values, height);
|
|
68
88
|
const step = ys.length > 1 ? VB_WIDTH / (ys.length - 1) : 0;
|
|
@@ -81,6 +101,7 @@ var Sparkline = forwardRef(function Sparkline2({
|
|
|
81
101
|
"aria-hidden": ariaLabel ? void 0 : true,
|
|
82
102
|
className: cn("overflow-visible", className),
|
|
83
103
|
...props,
|
|
104
|
+
style: colorCss ? { color: colorCss, ...props.style } : props.style,
|
|
84
105
|
children: [
|
|
85
106
|
variant === "line" && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
86
107
|
area && /* @__PURE__ */ jsx(
|
|
@@ -88,7 +109,7 @@ var Sparkline = forwardRef(function Sparkline2({
|
|
|
88
109
|
{
|
|
89
110
|
d: buildAreaPath(ys, height),
|
|
90
111
|
strokeWidth: 0,
|
|
91
|
-
className: cn("fill-current opacity-15",
|
|
112
|
+
className: cn("fill-current opacity-15", colorClass)
|
|
92
113
|
}
|
|
93
114
|
),
|
|
94
115
|
/* @__PURE__ */ jsx(
|
|
@@ -103,7 +124,7 @@ var Sparkline = forwardRef(function Sparkline2({
|
|
|
103
124
|
pathLength: animate ? 1 : void 0,
|
|
104
125
|
strokeDasharray: animate ? 1 : void 0,
|
|
105
126
|
strokeDashoffset: animate ? mounted ? 0 : 1 : void 0,
|
|
106
|
-
className: cn("stroke-current", animate && "motion-reduce:transition-none!",
|
|
127
|
+
className: cn("stroke-current", animate && "motion-reduce:transition-none!", colorClass),
|
|
107
128
|
style: animate ? { transition: "stroke-dashoffset 0.6s ease-in-out" } : void 0
|
|
108
129
|
}
|
|
109
130
|
),
|
|
@@ -120,7 +141,7 @@ var Sparkline = forwardRef(function Sparkline2({
|
|
|
120
141
|
strokeWidth: p.kind === "latest" ? 5 : 4,
|
|
121
142
|
strokeLinecap: "round",
|
|
122
143
|
vectorEffect: "non-scaling-stroke",
|
|
123
|
-
className: cn("stroke-current", p.kind === "latest" ?
|
|
144
|
+
className: cn("stroke-current", p.kind === "latest" ? colorClass : "text-muted-foreground")
|
|
124
145
|
},
|
|
125
146
|
p.kind
|
|
126
147
|
);
|
|
@@ -134,7 +155,7 @@ var Sparkline = forwardRef(function Sparkline2({
|
|
|
134
155
|
width: rect.w,
|
|
135
156
|
height: animate ? mounted ? rect.h : 0 : rect.h,
|
|
136
157
|
rx: 0.5,
|
|
137
|
-
className: cn("fill-current", animate && "motion-reduce:transition-none!",
|
|
158
|
+
className: cn("fill-current", animate && "motion-reduce:transition-none!", colorClass),
|
|
138
159
|
style: animate ? {
|
|
139
160
|
transition: `height 0.4s ease-out ${i * 0.02}s, y 0.4s ease-out ${i * 0.02}s`
|
|
140
161
|
} : void 0
|
|
@@ -148,5 +169,5 @@ var Sparkline = forwardRef(function Sparkline2({
|
|
|
148
169
|
Sparkline.displayName = "Sparkline";
|
|
149
170
|
|
|
150
171
|
export { Sparkline };
|
|
151
|
-
//# sourceMappingURL=chunk-
|
|
152
|
-
//# sourceMappingURL=chunk-
|
|
172
|
+
//# sourceMappingURL=chunk-U6MWBCM6.js.map
|
|
173
|
+
//# sourceMappingURL=chunk-U6MWBCM6.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../squadkit/registry/charts/sparkline.tsx"],"names":["Sparkline"],"mappings":";;;;;AA6CA,IAAM,QAAA,GAAW,GAAA;AAGjB,IAAM,WAAA,GAAsC;AAAA,EAC1C,SAAA,EAAW,cAAA;AAAA,EACX,SAAA,EAAW,cAAA;AAAA,EACX,SAAA,EAAW,cAAA;AAAA,EACX,SAAA,EAAW,cAAA;AAAA,EACX,SAAA,EAAW,cAAA;AAAA,EACX,QAAA,EAAU,eAAA;AAAA,EACV,OAAA,EAAS,cAAA;AAAA,EACT,QAAA,EAAU,eAAA;AAAA,EACV,OAAA,EAAS,cAAA;AAAA,EACT,IAAA,EAAM;AACR,CAAA;AAMA,SAAS,sBAAsB,KAAA,EAAqD;AAClF,EAAA,MAAM,KAAA,GAAQ,MAAM,IAAA,EAAK;AACzB,EAAA,MAAM,UAAA,GAAa,YAAY,KAAK,CAAA;AACpC,EAAA,IAAI,UAAA,EAAY,OAAO,EAAE,SAAA,EAAW,UAAA,EAAW;AAC/C,EAAA,IAAI,uBAAuB,IAAA,CAAK,KAAK,CAAA,IAAM,IAAA,CAAK,KAAK,KAAK,CAAA,IAAK,CAAC,KAAA,CAAM,SAAS,GAAG,CAAA,EAAI,OAAO,EAAE,WAAW,KAAA,EAAM;AAChH,EAAA,OAAO,EAAE,KAAK,KAAA,EAAM;AACtB;AAGA,SAAS,aAAA,CAAc,MAAA,EAAkB,MAAA,EAAgB,IAAA,GAAO,CAAA,EAAa;AAC3E,EAAA,MAAM,GAAA,GAAM,IAAA,CA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AAAA,gBACb,WAAW,EAAA,CAAG,gBAAA,EAAkB,EAAE,IAAA,KAAS,QAAA,GAAW,aAAa,uBAAuB;AAAA,eAAA;AAAA,cARrF,CAAA,CAAE;AAAA,aAST;AAAA,UAEJ,CAAC;AAAA,SAAA,EACH,CAAA;AAAA,QAGD,OAAA,KAAY,SACX,aAAA,CAAc,EAAA,EAAI,MAAM,CAAA,CAAE,GAAA,CAAI,CAAC,IAAA,EAAM,CAAA,qBACnC,GAAA;AAAA,UAAC,MAAA;AAAA,UAAA;AAAA,YAEC,GAAG,IAAA,CAAK,CAAA;AAAA,YACR,GAAG,OAAA,GAAW,OAAA,GAAU,IAAA,CAAK,CAAA,GAAI,SAAU,IAAA,CAAK,CAAA;AAAA,YAChD,OAAO,IAAA,CAAK,CAAA;AAAA,YACZ,QAAQ,OAAA,GAAW,OAAA,GAAU,IAAA,CAAK,CAAA,GAAI,IAAK,IAAA,CAAK,CAAA;AAAA,YAChD,EAAA,EAAI,GAAA;AAAA,YACJ,SAAA,EAAW,EAAA,CAAG,cAAA,EAAgB,OAAA,IAAW,kCAAkC,UAAU,CAAA;AAAA,YACrF,OACE,OAAA,GACI;AAAA,cACE,YAAY,CAAA,qBAAA,EAAwB,CAAA,GAAI,IAAI,CAAA,mBAAA,EAAsB,IAAI,IAAI,CAAA,CAAA;AAAA,aAC5E,GACA;AAAA,WAAA;AAAA,UAZD;AAAA,SAeR;AAAA;AAAA;AAAA,GACL;AAEJ,CAAC;AACD,SAAA,CAAU,WAAA,GAAc,WAAA","file":"chunk-U6MWBCM6.js","sourcesContent":["\"use client\"\n\n/**\n * Sparkline — an inline trend micro-chart; put no parts inside it. Deliberately *not* an `EChart`: a\n * sparkline sits inside table cells and KPI tiles by the dozen, where one\n * ECharts instance per cell would be wasteful. This renders a single stateless\n * `<svg>` instead, so hundreds of them stay cheap.\n */\nimport { forwardRef, useEffect, useState, type SVGAttributes } from \"react\"\n\nimport { cn } from \"../lib/utils\"\nimport type { ChartColor, ChartHighlight } from \"../lib/types\"\n\nexport type SparklineVariant = \"line\" | \"bar\"\n\nexport interface SparklineDataPoint {\n value: number\n label?: string\n}\n\nexport interface SparklineProps extends SVGAttributes<SVGSVGElement> {\n data: SparklineDataPoint[]\n variant?: SparklineVariant\n height?: number\n /**\n * Line / bar colour: a theme series token (`\"chart-1\"`〜`\"chart-5\"`), a meaning colour\n * (`\"positive\"` / `\"negative\"` / `\"warning\"` / `\"neutral\"` / `\"info\"`), or any CSS colour\n * (`\"#16a34a\"`, `\"var(--destructive)\"`) — the same {@link ChartColor} the other charts take.\n * Drives both stroke and fill via `currentColor`. Defaults to `\"chart-1\"`.\n * Tailwind text-colour classes (`\"text-primary\"`) still work for compatibility; prefer the tokens above.\n */\n color?: ChartColor\n area?: boolean\n /** マウント時に線を引く / 棒を伸ばす。既定 `false`(`prefers-reduced-motion` では常に無効)。 */\n animate?: boolean\n /**\n * 点の強調(Tufte 流)。`\"auto\"` は最新・最大・最小の 3 点だけに小さな点を打つ\n * (最新は系列の色、最大・最小は muted)。`\"latest\"` は最新の 1 点だけ、`\"none\"` は線だけ。`variant=\"line\"` のときだけ効く。既定 `\"auto\"`。\n */\n highlight?: ChartHighlight | \"latest\"\n /** 指定すると `role=\"img\"` で読み上げ対象にする。省略時は装飾として `aria-hidden`。 */\n \"aria-label\"?: string\n className?: string\n}\n\nconst VB_WIDTH = 100\n\n/** Literal class names (not built from a template) so Tailwind's scanner keeps them. */\nconst TOKEN_CLASS: Record<string, string> = {\n \"chart-1\": \"text-chart-1\",\n \"chart-2\": \"text-chart-2\",\n \"chart-3\": \"text-chart-3\",\n \"chart-4\": \"text-chart-4\",\n \"chart-5\": \"text-chart-5\",\n positive: \"text-positive\",\n warning: \"text-warning\",\n negative: \"text-negative\",\n neutral: \"text-neutral\",\n info: \"text-info\",\n}\n\n/**\n * `color` を class か inline の CSS colour に振り分ける。トークン・意味色は `text-*` に、\n * `text-` で始まる旧来の class 指定はそのまま class に、それ以外(`#hex` / `var(--x)` / `rgb()` …)は CSS colour として扱う。\n */\nfunction resolveSparklineColor(color: string): { className?: string; css?: string } {\n const value = color.trim()\n const tokenClass = TOKEN_CLASS[value]\n if (tokenClass) return { className: tokenClass }\n if (/^(?:[\\w-]+:)*!?text-/.test(value) || (/\\s/.test(value) && !value.includes(\"(\"))) return { className: color }\n return { css: value }\n}\n\n/** Map raw values onto SVG y-coordinates (inverted, padded). */\nfunction normalizeData(values: number[], height: number, vPad = 2): number[] {\n const min = Math.min(...values)\n const max = Math.max(...values)\n const range = max - min\n const drawHeight = height - vPad * 2\n if (range === 0) return values.map(() => vPad + drawHeight / 2)\n return values.map((v) => height - vPad - ((v - min) / range) * drawHeight)\n}\n\nfunction buildLinePath(ys: number[]): string {\n if (ys.length === 0) return \"\"\n const step = ys.length > 1 ? VB_WIDTH / (ys.length - 1) : 0\n return ys\n .map((y, i) => `${i === 0 ? \"M\" : \"L\"}${(i * step).toFixed(2)},${y.toFixed(2)}`)\n .join(\" \")\n}\n\nfunction buildAreaPath(ys: number[], height: number): string {\n if (ys.length === 0) return \"\"\n const step = ys.length > 1 ? VB_WIDTH / (ys.length - 1) : 0\n const lastX = ((ys.length - 1) * step).toFixed(2)\n return `${buildLinePath(ys)} L${lastX},${height} L0,${height} Z`\n}\n\nexport type SparklinePointKind = \"latest\" | \"max\" | \"min\"\n\nexport interface SparklinePoint {\n kind: SparklinePointKind\n index: number\n}\n\n/**\n * The points a Tufte-style sparkline marks: the latest, the max and the min.\n * A point that is both latest and max/min is drawn once, as `latest`; a flat\n * series marks only the latest. Ties pick the most recent occurrence.\n */\nexport function sparklineHighlightPoints(values: number[]): SparklinePoint[] {\n if (values.length === 0) return []\n const last = values.length - 1\n const points: SparklinePoint[] = [{ kind: \"latest\", index: last }]\n let maxI = 0\n let minI = 0\n let max = values[0] as number\n let min = max\n values.forEach((v, i) => {\n if (v >= max) [max, maxI] = [v, i]\n if (v <= min) [min, minI] = [v, i]\n })\n const latest = values[last] as number\n if (max === min) return points\n if (max !== latest) points.push({ kind: \"max\", index: maxI })\n if (min !== latest) points.push({ kind: \"min\", index: minI })\n return points\n}\n\ninterface BarRect {\n x: number\n y: number\n w: number\n h: number\n}\n\nfunction buildBarRects(ys: number[], height: number, gap = 1): BarRect[] {\n const barW = Math.max(1, VB_WIDTH / ys.length - gap)\n return ys.map((y, i) => ({ x: i * (barW + gap), y, w: barW, h: height - y }))\n}\n\n/** Rows not given yet (a draft fills props in steps): draw the empty state, keep the same array between renders. */\nconst NO_ROWS: never[] = []\n\nexport const Sparkline = forwardRef<SVGSVGElement, SparklineProps>(function Sparkline(\n {\n data = NO_ROWS,\n variant = \"line\",\n height = 40,\n color = \"chart-1\",\n area = false,\n animate = false,\n highlight = \"auto\",\n \"aria-label\": ariaLabel,\n className,\n ...props\n },\n ref,\n) {\n const [mounted, setMounted] = useState(false)\n\n useEffect(() => {\n if (animate) setMounted(true)\n }, [animate])\n\n if (data.length === 0) return null\n\n const { className: colorClass, css: colorCss } = resolveSparklineColor(color)\n\n const values = data.map((d) => d.value)\n const ys = normalizeData(values, height)\n const step = ys.length > 1 ? VB_WIDTH / (ys.length - 1) : 0\n const points =\n variant !== \"line\"\n ? []\n : highlight === \"auto\"\n ? sparklineHighlightPoints(values)\n : highlight === \"latest\"\n ? [{ kind: \"latest\" as const, index: values.length - 1 }]\n : []\n\n return (\n <svg\n ref={ref}\n data-slot=\"sparkline\"\n viewBox={`0 0 ${VB_WIDTH} ${height}`}\n preserveAspectRatio=\"none\"\n width=\"100%\"\n height={height}\n role={ariaLabel ? \"img\" : undefined}\n aria-label={ariaLabel}\n aria-hidden={ariaLabel ? undefined : true}\n className={cn(\"overflow-visible\", className)}\n {...props}\n style={colorCss ? { color: colorCss, ...props.style } : props.style}\n >\n {variant === \"line\" && (\n <>\n {area && (\n <path\n d={buildAreaPath(ys, height)}\n strokeWidth={0}\n className={cn(\"fill-current opacity-15\", colorClass)}\n />\n )}\n <path\n d={buildLinePath(ys)}\n fill=\"none\"\n strokeWidth={1.5}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n vectorEffect=\"non-scaling-stroke\"\n pathLength={animate ? 1 : undefined}\n strokeDasharray={animate ? 1 : undefined}\n strokeDashoffset={animate ? (mounted ? 0 : 1) : undefined}\n className={cn(\"stroke-current\", animate && \"motion-reduce:transition-none!\", colorClass)}\n style={animate ? { transition: \"stroke-dashoffset 0.6s ease-in-out\" } : undefined}\n />\n {/* A zero-length round-capped stroke with a non-scaling width stays a\n circle even though the viewBox stretches (`preserveAspectRatio=\"none\"`). */}\n {points.map((p) => {\n const x = (p.index * step).toFixed(2)\n const y = (ys[p.index] ?? 0).toFixed(2)\n return (\n <path\n key={p.kind}\n data-slot=\"sparkline-point\"\n data-point={p.kind}\n d={`M${x},${y} L${x},${y}`}\n fill=\"none\"\n strokeWidth={p.kind === \"latest\" ? 5 : 4}\n strokeLinecap=\"round\"\n vectorEffect=\"non-scaling-stroke\"\n className={cn(\"stroke-current\", p.kind === \"latest\" ? colorClass : \"text-muted-foreground\")}\n />\n )\n })}\n </>\n )}\n\n {variant === \"bar\" &&\n buildBarRects(ys, height).map((rect, i) => (\n <rect\n key={i}\n x={rect.x}\n y={animate ? (mounted ? rect.y : height) : rect.y}\n width={rect.w}\n height={animate ? (mounted ? rect.h : 0) : rect.h}\n rx={0.5}\n className={cn(\"fill-current\", animate && \"motion-reduce:transition-none!\", colorClass)}\n style={\n animate\n ? {\n transition: `height 0.4s ease-out ${i * 0.02}s, y 0.4s ease-out ${i * 0.02}s`,\n }\n : undefined\n }\n />\n ))}\n </svg>\n )\n})\nSparkline.displayName = \"Sparkline\"\n"]}
|
package/dist/cli.js
CHANGED
|
@@ -50,8 +50,8 @@ ${pc.bold("Options")}
|
|
|
50
50
|
-h, --help Print this help
|
|
51
51
|
`;
|
|
52
52
|
var COMMANDS = {
|
|
53
|
-
dev: () => import('./dev-
|
|
54
|
-
build: () => import('./build-
|
|
53
|
+
dev: () => import('./dev-BZ7FXDB3.js').then((m) => m.dev),
|
|
54
|
+
build: () => import('./build-AON4MAQQ.js').then((m) => m.build),
|
|
55
55
|
preview: () => import('./preview-T6CLSQVX.js').then((m) => m.preview),
|
|
56
56
|
check: () => import('./check-MRVAIHG5.js').then((m) => m.check),
|
|
57
57
|
routes: () => import('./routes-PVKNT777.js').then((m) => m.routes),
|
|
@@ -50,6 +50,8 @@ interface PageShellHeaderProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
50
50
|
status?: ReactNode;
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
|
+
* PageShellHeader — the page header band (title and update time, source / period, overall status); inside `PageShell` without `title`, with the title in `PageShellHeading`.
|
|
54
|
+
*
|
|
53
55
|
* A wrapping flex row, not a two-column grid: when the heading cannot keep its
|
|
54
56
|
* 20rem basis next to `PageShellHeaderEnd`, the end block drops below it. A
|
|
55
57
|
* `1fr auto` grid would instead hand the heading whatever the end block leaves,
|
|
@@ -1227,6 +1229,43 @@ interface WaterfallChartProps<T extends Record<string, unknown> = Record<string,
|
|
|
1227
1229
|
/** 見出しが無いときのプロット領域の読み上げ名。省略時は「<金額の列>のウォーターフォールチャート」。 */
|
|
1228
1230
|
ariaLabel?: string;
|
|
1229
1231
|
}
|
|
1232
|
+
type WaterfallKind = "total" | "increase" | "decrease" | "flat" | "gap";
|
|
1233
|
+
interface WaterfallStep {
|
|
1234
|
+
name: string;
|
|
1235
|
+
kind: WaterfallKind;
|
|
1236
|
+
/** A step's signed change, a total's value. `null` for a gap. */
|
|
1237
|
+
value: number | null;
|
|
1238
|
+
/** The running total before this step (a total starts at 0). */
|
|
1239
|
+
start: number;
|
|
1240
|
+
/** The running total after this step. */
|
|
1241
|
+
end: number;
|
|
1242
|
+
row: Record<string, unknown>;
|
|
1243
|
+
}
|
|
1244
|
+
/** What `mode="delta"` leaves out of the bars: the opening / closing totals and the net change of the moves. */
|
|
1245
|
+
interface WaterfallDeltaEnds {
|
|
1246
|
+
/** The first total row when it comes before every move (its value, `null` when the row carries none). */
|
|
1247
|
+
opening: {
|
|
1248
|
+
name: string;
|
|
1249
|
+
value: number | null;
|
|
1250
|
+
} | null;
|
|
1251
|
+
/** The last total row when it comes after every move; a missing value is the opening plus the net change. */
|
|
1252
|
+
closing: {
|
|
1253
|
+
name: string;
|
|
1254
|
+
value: number | null;
|
|
1255
|
+
} | null;
|
|
1256
|
+
/** The sum of every move (the cumulative change at the last step). */
|
|
1257
|
+
net: number;
|
|
1258
|
+
}
|
|
1259
|
+
interface WaterfallStack {
|
|
1260
|
+
/** The transparent base under each bar (0 when the bar starts at the axis or crosses it). */
|
|
1261
|
+
base: number[];
|
|
1262
|
+
/** The part of each bar above 0. */
|
|
1263
|
+
pos: number[];
|
|
1264
|
+
/** The part of each bar below 0 (≤ 0). */
|
|
1265
|
+
neg: number[];
|
|
1266
|
+
/** Which series carries the step's value label. */
|
|
1267
|
+
labelOn: ("pos" | "neg")[];
|
|
1268
|
+
}
|
|
1230
1269
|
/** Generic over the row type, so `index` / `categories` keys are checked against `data`. */
|
|
1231
1270
|
declare const WaterfallChart: (<T extends Record<string, unknown>>(props: WaterfallChartProps<T> & {
|
|
1232
1271
|
ref?: Ref<HTMLDivElement>;
|
|
@@ -1332,6 +1371,25 @@ interface ScatterChartProps<T extends Record<string, unknown> = Record<string, u
|
|
|
1332
1371
|
/** 見出しが無いときのプロット領域の読み上げ名。省略時は「<y の列>×<x の列>の散布図」。 */
|
|
1333
1372
|
ariaLabel?: string;
|
|
1334
1373
|
}
|
|
1374
|
+
interface ScatterPoint {
|
|
1375
|
+
x: number;
|
|
1376
|
+
y: number;
|
|
1377
|
+
/** `null` when there is no size column or the cell is missing. */
|
|
1378
|
+
size: number | null;
|
|
1379
|
+
/** The point's name (`index` column), or `""`. */
|
|
1380
|
+
name: string;
|
|
1381
|
+
/** The series value from the `series` column, or `""`. */
|
|
1382
|
+
series: string;
|
|
1383
|
+
/** The `labelKey` text printed beside the dot (`""` / absent without a `labelKey` column). */
|
|
1384
|
+
label?: string;
|
|
1385
|
+
row: Record<string, unknown>;
|
|
1386
|
+
}
|
|
1387
|
+
interface ScatterSeries {
|
|
1388
|
+
/** The series name (the `series` value, or「その他」for the folded series). `""` without a `series` column. */
|
|
1389
|
+
name: string;
|
|
1390
|
+
isOther: boolean;
|
|
1391
|
+
points: ScatterPoint[];
|
|
1392
|
+
}
|
|
1335
1393
|
/** Generic over the row type, so `x` / `y` / `size` / `index` / `series` keys are checked against `data`. */
|
|
1336
1394
|
declare const ScatterChart: (<T extends Record<string, unknown>>(props: ScatterChartProps<T> & {
|
|
1337
1395
|
ref?: Ref<HTMLDivElement>;
|
|
@@ -1378,7 +1436,8 @@ interface ChartFrameProps extends Omit<HTMLAttributes<HTMLElement>, "title" | "c
|
|
|
1378
1436
|
/** 見出しが無いときのプロット領域のラベル。 */
|
|
1379
1437
|
ariaLabel?: string;
|
|
1380
1438
|
/**
|
|
1381
|
-
*
|
|
1439
|
+
* プロットの役割。既定 `"img"`(canvas のグラフ。`role="img"` と名前・要約は
|
|
1440
|
+
* `EChart` が canvas にだけ付け、操作ボタンは画像の外に置く)。行がボタンやリンクになる
|
|
1382
1441
|
* HTML のグラフ(BarList・FunnelSteps)は `"group"` にして、中身を読ませる。
|
|
1383
1442
|
*/
|
|
1384
1443
|
plotRole?: "img" | "group";
|
|
@@ -1538,6 +1597,16 @@ interface HeatmapProps<T extends Record<string, unknown> = Record<string, unknow
|
|
|
1538
1597
|
/** スクリーンリーダー向けのラベル。省略時は `<yの列>×<xの列>のヒートマップ`。 */
|
|
1539
1598
|
ariaLabel?: string;
|
|
1540
1599
|
}
|
|
1600
|
+
interface HeatmapCell {
|
|
1601
|
+
/** Index into `xs`. */
|
|
1602
|
+
xi: number;
|
|
1603
|
+
/** Index into `ys`. */
|
|
1604
|
+
yi: number;
|
|
1605
|
+
/** `null` for a gap. */
|
|
1606
|
+
value: number | null;
|
|
1607
|
+
flagged: boolean;
|
|
1608
|
+
row: Record<string, unknown> | null;
|
|
1609
|
+
}
|
|
1541
1610
|
/** Generic over the row type, so `x` / `y` / `value` keys are checked against `data`. */
|
|
1542
1611
|
declare const Heatmap: (<T extends Record<string, unknown>>(props: HeatmapProps<T> & {
|
|
1543
1612
|
ref?: Ref<HTMLDivElement>;
|
|
@@ -1595,6 +1664,22 @@ declare const PairedChart: (<T extends Record<string, unknown>>(props: PairedCha
|
|
|
1595
1664
|
displayName?: string;
|
|
1596
1665
|
};
|
|
1597
1666
|
|
|
1667
|
+
interface BoxStats {
|
|
1668
|
+
/** 数えた値の個数。 */
|
|
1669
|
+
count: number;
|
|
1670
|
+
/** 最小・最大(外れ値を含む)。 */
|
|
1671
|
+
min: number;
|
|
1672
|
+
max: number;
|
|
1673
|
+
q1: number;
|
|
1674
|
+
median: number;
|
|
1675
|
+
q3: number;
|
|
1676
|
+
/** ひげの下端・上端: 柵(Q1−k×IQR / Q3+k×IQR)の内側にある最小・最大の実測値。 */
|
|
1677
|
+
whiskerLow: number;
|
|
1678
|
+
whiskerHigh: number;
|
|
1679
|
+
/** 柵の外側の値(昇順)。 */
|
|
1680
|
+
outliers: number[];
|
|
1681
|
+
}
|
|
1682
|
+
|
|
1598
1683
|
interface HistogramThreshold {
|
|
1599
1684
|
/** 線を引く値(例 SLA の 3 日)。 */
|
|
1600
1685
|
value: number;
|
|
@@ -1641,6 +1726,10 @@ interface BoxPlotChartProps extends Omit<ChartCommonProps, "data" | "index" | "c
|
|
|
1641
1726
|
/** ホバー時のツールチップを出す。既定 `true`。 */
|
|
1642
1727
|
showTooltip?: boolean;
|
|
1643
1728
|
}
|
|
1729
|
+
interface BoxPlotEntry {
|
|
1730
|
+
name: string;
|
|
1731
|
+
stats: BoxStats | null;
|
|
1732
|
+
}
|
|
1644
1733
|
declare const BoxPlotChart: React.ForwardRefExoticComponent<BoxPlotChartProps & React.RefAttributes<HTMLDivElement>>;
|
|
1645
1734
|
|
|
1646
1735
|
type AttentionKind = "overdue" | "risk" | "dueSoon" | "stale";
|
|
@@ -1960,6 +2049,15 @@ interface FilledMapProps<T extends Record<string, unknown> = Record<string, unkn
|
|
|
1960
2049
|
/** スクリーンリーダー向けのラベル。省略時は `<valueの列>の地図`。 */
|
|
1961
2050
|
ariaLabel?: string;
|
|
1962
2051
|
}
|
|
2052
|
+
interface FilledMapRegion {
|
|
2053
|
+
code: string;
|
|
2054
|
+
/** The row's region value as written (what `onSelect` receives), or `null` without a row. */
|
|
2055
|
+
key: string | null;
|
|
2056
|
+
/** Display name: `labels[key]` when given, else the map's name in the page's language (「東京都」 for "13"). */
|
|
2057
|
+
name: string;
|
|
2058
|
+
value: number | null;
|
|
2059
|
+
row: Record<string, unknown> | null;
|
|
2060
|
+
}
|
|
1963
2061
|
/** Generic over the row type, so `region` / `value` keys are checked against `data`. */
|
|
1964
2062
|
declare const FilledMap: (<T extends Record<string, unknown>>(props: FilledMapProps<T> & {
|
|
1965
2063
|
ref?: Ref<HTMLDivElement>;
|
|
@@ -2032,6 +2130,17 @@ interface SymbolMapProps<T extends Record<string, unknown> = Record<string, unkn
|
|
|
2032
2130
|
/** スクリーンリーダー向けのラベル。 */
|
|
2033
2131
|
ariaLabel?: string;
|
|
2034
2132
|
}
|
|
2133
|
+
interface SymbolMapPoint {
|
|
2134
|
+
lon: number;
|
|
2135
|
+
lat: number;
|
|
2136
|
+
name: string | null;
|
|
2137
|
+
size: number | null;
|
|
2138
|
+
/** Numeric colour value (numeric `color`). */
|
|
2139
|
+
shade: number | null;
|
|
2140
|
+
/** Category (categorical `color`), as text. */
|
|
2141
|
+
category: string | null;
|
|
2142
|
+
row: Record<string, unknown>;
|
|
2143
|
+
}
|
|
2035
2144
|
/** Generic over the row type, so the column keys are checked against `data`. */
|
|
2036
2145
|
declare const SymbolMap: (<T extends Record<string, unknown>>(props: SymbolMapProps<T> & {
|
|
2037
2146
|
ref?: Ref<HTMLDivElement>;
|
|
@@ -2101,6 +2210,13 @@ interface TreemapProps<T extends Record<string, unknown> = Record<string, unknow
|
|
|
2101
2210
|
/** スクリーンリーダー向けのラベル。 */
|
|
2102
2211
|
ariaLabel?: string;
|
|
2103
2212
|
}
|
|
2213
|
+
interface TreemapLeaf {
|
|
2214
|
+
name: string;
|
|
2215
|
+
group: string | null;
|
|
2216
|
+
value: number | null;
|
|
2217
|
+
shade: number | null;
|
|
2218
|
+
row: Record<string, unknown>;
|
|
2219
|
+
}
|
|
2104
2220
|
/** Generic over the row type, so the column keys are checked against `data`. */
|
|
2105
2221
|
declare const Treemap: (<T extends Record<string, unknown>>(props: TreemapProps<T> & {
|
|
2106
2222
|
ref?: Ref<HTMLDivElement>;
|
|
@@ -2117,8 +2233,14 @@ interface SparklineProps extends SVGAttributes<SVGSVGElement> {
|
|
|
2117
2233
|
data: SparklineDataPoint[];
|
|
2118
2234
|
variant?: SparklineVariant;
|
|
2119
2235
|
height?: number;
|
|
2120
|
-
/**
|
|
2121
|
-
|
|
2236
|
+
/**
|
|
2237
|
+
* Line / bar colour: a theme series token (`"chart-1"`〜`"chart-5"`), a meaning colour
|
|
2238
|
+
* (`"positive"` / `"negative"` / `"warning"` / `"neutral"` / `"info"`), or any CSS colour
|
|
2239
|
+
* (`"#16a34a"`, `"var(--destructive)"`) — the same {@link ChartColor} the other charts take.
|
|
2240
|
+
* Drives both stroke and fill via `currentColor`. Defaults to `"chart-1"`.
|
|
2241
|
+
* Tailwind text-colour classes (`"text-primary"`) still work for compatibility; prefer the tokens above.
|
|
2242
|
+
*/
|
|
2243
|
+
color?: ChartColor;
|
|
2122
2244
|
area?: boolean;
|
|
2123
2245
|
/** マウント時に線を引く / 棒を伸ばす。既定 `false`(`prefers-reduced-motion` では常に無効)。 */
|
|
2124
2246
|
animate?: boolean;
|
|
@@ -2131,6 +2253,11 @@ interface SparklineProps extends SVGAttributes<SVGSVGElement> {
|
|
|
2131
2253
|
"aria-label"?: string;
|
|
2132
2254
|
className?: string;
|
|
2133
2255
|
}
|
|
2256
|
+
type SparklinePointKind = "latest" | "max" | "min";
|
|
2257
|
+
interface SparklinePoint {
|
|
2258
|
+
kind: SparklinePointKind;
|
|
2259
|
+
index: number;
|
|
2260
|
+
}
|
|
2134
2261
|
declare const Sparkline: React.ForwardRefExoticComponent<SparklineProps & React.RefAttributes<SVGSVGElement>>;
|
|
2135
2262
|
|
|
2136
2263
|
declare module "@tanstack/react-table" {
|
|
@@ -2385,6 +2512,19 @@ declare function DataTable<TData, TValue>({ columns, data, enableSorting, sortin
|
|
|
2385
2512
|
declare namespace DataTable {
|
|
2386
2513
|
var displayName: string;
|
|
2387
2514
|
}
|
|
2515
|
+
interface SparklineColumnOptions<TData> {
|
|
2516
|
+
/** 列 ID(CSV・列の表示切り替えで使う)。 */
|
|
2517
|
+
id: string;
|
|
2518
|
+
/** 見出し。 */
|
|
2519
|
+
header: string;
|
|
2520
|
+
/**
|
|
2521
|
+
* 行の数列を返す(古い順。例: 直近 8 週の売上)。null / undefined / 2 点未満の行は「—」。
|
|
2522
|
+
* NaN などの有限でない値は取り除いてから数える。
|
|
2523
|
+
*/
|
|
2524
|
+
values: (row: TData) => readonly (number | null | undefined)[] | null | undefined;
|
|
2525
|
+
/** スクリーンリーダー向けの数値の書式(`meta.format` と同じ語彙)。既定は `"number"`。 */
|
|
2526
|
+
format?: ValueFormat;
|
|
2527
|
+
}
|
|
2388
2528
|
declare const DataTableToolbar: React.ForwardRefExoticComponent<DataTableToolbarProps & React.RefAttributes<HTMLDivElement>>;
|
|
2389
2529
|
declare const DataTableContent: React.ForwardRefExoticComponent<DataTableContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
2390
2530
|
declare const DataTablePagination: React.ForwardRefExoticComponent<DataTablePaginationProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -2499,6 +2639,16 @@ declare function FilterBarMultiSelect({ filterKey, label, options, placeholder,
|
|
|
2499
2639
|
declare namespace FilterBarMultiSelect {
|
|
2500
2640
|
var displayName: string;
|
|
2501
2641
|
}
|
|
2642
|
+
interface FilterBarAddFilterProps {
|
|
2643
|
+
/** Conditions offered in the menu. Only `select` / `multi-select` entries with options are listed. */
|
|
2644
|
+
filters: FilterConfig[];
|
|
2645
|
+
className?: string;
|
|
2646
|
+
}
|
|
2647
|
+
/** A menu that lists the conditions; each opens a submenu of values to check. Checked values show as chips. */
|
|
2648
|
+
declare function FilterBarAddFilter({ filters, className }: FilterBarAddFilterProps): React.JSX.Element;
|
|
2649
|
+
declare namespace FilterBarAddFilter {
|
|
2650
|
+
var displayName: string;
|
|
2651
|
+
}
|
|
2502
2652
|
interface FilterBarActiveChipsProps {
|
|
2503
2653
|
/** Filter configs used to resolve option labels. Without them, raw values show. */
|
|
2504
2654
|
filters?: FilterConfig[];
|
|
@@ -2888,6 +3038,58 @@ interface TrendIndicatorProps {
|
|
|
2888
3038
|
*/
|
|
2889
3039
|
declare const TrendIndicator: React.ForwardRefExoticComponent<TrendIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
|
|
2890
3040
|
|
|
3041
|
+
/**
|
|
3042
|
+
* 状態の語彙の正本: status → ラベルと色調。StatusBadge の既定の表示と、Tracker の凡例など
|
|
3043
|
+
* 同じ状態を語る他の場所が、同じ語を使うためにここから参照する。`label` は英語(フォールバック)で、
|
|
3044
|
+
* ページの言語に合わせた語は `statusLabel(status, locale)` で引く。
|
|
3045
|
+
*/
|
|
3046
|
+
declare const STATUS_VOCABULARY: {
|
|
3047
|
+
readonly success: {
|
|
3048
|
+
readonly label: "Healthy";
|
|
3049
|
+
readonly tone: "positive";
|
|
3050
|
+
};
|
|
3051
|
+
readonly partial: {
|
|
3052
|
+
readonly label: "Partially failed";
|
|
3053
|
+
readonly tone: "warning";
|
|
3054
|
+
};
|
|
3055
|
+
readonly failed: {
|
|
3056
|
+
readonly label: "Failed";
|
|
3057
|
+
readonly tone: "negative";
|
|
3058
|
+
};
|
|
3059
|
+
readonly delayed: {
|
|
3060
|
+
readonly label: "Delayed";
|
|
3061
|
+
readonly tone: "warning";
|
|
3062
|
+
};
|
|
3063
|
+
readonly running: {
|
|
3064
|
+
readonly label: "Running";
|
|
3065
|
+
readonly tone: "info";
|
|
3066
|
+
};
|
|
3067
|
+
readonly stopped: {
|
|
3068
|
+
readonly label: "Stopped";
|
|
3069
|
+
readonly tone: "neutral";
|
|
3070
|
+
};
|
|
3071
|
+
readonly active: {
|
|
3072
|
+
readonly label: "Active";
|
|
3073
|
+
readonly tone: "positive";
|
|
3074
|
+
};
|
|
3075
|
+
readonly inactive: {
|
|
3076
|
+
readonly label: "Inactive";
|
|
3077
|
+
readonly tone: "neutral";
|
|
3078
|
+
};
|
|
3079
|
+
readonly warning: {
|
|
3080
|
+
readonly label: "Warning";
|
|
3081
|
+
readonly tone: "warning";
|
|
3082
|
+
};
|
|
3083
|
+
readonly error: {
|
|
3084
|
+
readonly label: "Error";
|
|
3085
|
+
readonly tone: "negative";
|
|
3086
|
+
};
|
|
3087
|
+
readonly pending: {
|
|
3088
|
+
readonly label: "Pending";
|
|
3089
|
+
readonly tone: "info";
|
|
3090
|
+
};
|
|
3091
|
+
};
|
|
3092
|
+
type StatusKey = keyof typeof STATUS_VOCABULARY;
|
|
2891
3093
|
interface StatusBadgeProps {
|
|
2892
3094
|
status: string;
|
|
2893
3095
|
label?: string;
|
|
@@ -2951,4 +3153,4 @@ interface DraftChartProps {
|
|
|
2951
3153
|
*/
|
|
2952
3154
|
declare function DraftChart({ children }: DraftChartProps): React.JSX.Element | null;
|
|
2953
3155
|
|
|
2954
|
-
export { AppShell, type AppShellHeaderProps, type AppShellProps, type AppShellSidebarProps, AreaChart, type AreaChartProps, type AttentionKind, AttentionList, type AttentionListProps, BarChart, type BarChartProps, BarList, type BarListItem, type BarListOptions, type BarListProps, type BarListSortOrder, BoxPlotChart, type BoxPlotChartProps, type BoxPlotGroup, COMPARISON_LABELS, CategoryBar, type CategoryBarMarker, type CategoryBarProps, type ChangeDisplay, type ChartActionsOptions, type ChartAnnotation, type ChartColor, type ChartColorToken, type ChartColors, type ChartCommonProps, type ChartComparison, type ChartEmptyState, type ChartEventPayload, type ChartForecast, type ChartForecastRow, ChartFrame, type ChartFrameProps, type ChartHighlight, type ChartRootAttributes, type ChartSeriesColor, type ChartSkeletonVariant, type ChartThreshold, type ChartTone, type ComboAxis, ComboChart, type ComboChartProps, type ComboReferenceLine, type ComboSeries, type ComboSeriesType, type Comparison, type ComparisonKind, type ComparisonOptions, type ComparisonResult, DEFAULT_SAMPLE_LABEL, DELTA_NOT_COMPARABLE, DashboardCard, DashboardCardAction, type DashboardCardActionProps, DashboardCardContent, type DashboardCardContentProps, DashboardCardDescription, type DashboardCardDescriptionProps, DashboardCardFooter, type DashboardCardFooterProps, DashboardCardHeader, type DashboardCardHeaderProps, DashboardCardPreset, type DashboardCardPresetProps, type DashboardCardProps, DashboardCardSkeleton, type DashboardCardSkeletonProps, DashboardCardTitle, type DashboardCardTitleProps, DataTable, DataTableColumnVisibility, type DataTableColumnVisibilityProps, DataTableContent, type DataTableContentProps, DataTableExport, type DataTableExportProps, DataTablePagination, type DataTablePaginationProps, DataTablePreset, type DataTablePresetProps, type DataTableProps, DataTableToolbar, type DataTableToolbarProps, type DateRange, DateRangePicker, type DateRangePickerProps, DateStyle, Delta, type DeltaDirection, type DeltaProps, type DeltaSentiment, DonutChart, type DonutChartOptions, type DonutChartProps, type DonutVariant, DraftChart, type DraftChartProps, EChart, type EChartProps, FilledMap, type FilledMapName, type FilledMapProps, FilterBar, FilterBarActiveChips, type FilterBarActiveChipsProps, FilterBarClearButton, type FilterBarClearButtonProps, FilterBarMultiSelect, type FilterBarMultiSelectProps, FilterBarPreset, type FilterBarPresetProps, type FilterBarProps, FilterBarSelect, type FilterBarSelectProps, type FilterConfig, type FilterOption, type FilterType, type FilterValues, ForecastChart, type ForecastChartProps, type ForecastComponent, type ForecastOptions, type ForecastPeriod, type FunnelStep, FunnelSteps, type FunnelStepsProps, Heatmap, type HeatmapProps, HistogramChart, type HistogramChartProps, type HistogramThreshold, type HistoryGrain, KpiCard, type KpiCardProps, type KpiCardSource, type KpiPeriod, Legend, type LegendProps, LineChart, type LineChartProps, type MetricItem, MetricUnit, type MetricUnitProps, MetricValue, type MetricValueProps, type MetricVariant, MultiSelect, type MultiSelectProps, type NavGroup, type NavItem, type NumericKeys, PageShell, PageShellActions, type PageShellActionsProps, PageShellContent, type PageShellContentProps, PageShellDescription, type PageShellDescriptionProps, PageShellHeader, PageShellHeaderEnd, type PageShellHeaderEndProps, type PageShellHeaderProps, PageShellHeading, type PageShellHeadingProps, PageShellMeta, type PageShellMetaProps, type PageShellProps, PageShellSummary, PageShellSummaryCard, type PageShellSummaryCardProps, type PageShellSummaryProps, PageShellTitle, type PageShellTitleProps, PairedChart, type PairedChartProps, type PairedPanel, type PeriodGrain, PivotTable, type PivotTableProps, Placeholder, type PlaceholderProps, type Polarity, type PresetItem, ProgressCircle, type ProgressCircleProps, RECORD_MIN_POINTS, type RecordInsight, SampleBadge, type SampleBadgeProps, SampleClaim, SampleData, type SampleDataProps, ScatterChart, type ScatterChartProps, type ScatterReferenceLine, SearchableSelect, type SearchableSelectProps, SectionHeader, type SectionHeaderProps, type SegmentOption, SegmentedControl, type SegmentedControlProps, type SelectOption, type SelectOptionGroup, type SelectOptions, Sparkline, type SparklineDataPoint, type SparklineProps, type SparklineVariant, StatusBadge, type StatusBadgeProps, SymbolMap, type SymbolMapBasemap, type SymbolMapProps, type TargetProgress, Tracker, type TrackerBlock, type TrackerProps, Treemap, type TreemapProps, type TrendDirection, TrendIndicator, type TrendIndicatorProps, UpdatedAt, type UpdatedAtProps, ValueFormat, type ValueFormatter, WaterfallChart, type WaterfallChartProps, type WaterfallMode, comparisonBaseline, comparisonLabel, computeComparison, computeTargetProgress, defaultChangeDisplay, defaultPresets, deltaVariants, detectRecord, fillKpiTemplate, flattenOptions, formatChange, formatChangeAmount, formatRelativeTime, funnelStepsVariants, inferPeriodGrain, isGroupedOptions, metricValueVariants, pageShellSummaryCardVariants, tableToCsv, toCsv, toneForValue, useDataTable, useResolvedChartColors, useSampleMark };
|
|
3156
|
+
export { AppShell, type AppShellHeaderProps, type AppShellProps, type AppShellSidebarProps, AreaChart, type AreaChartProps, type AttentionKind, AttentionList, type AttentionListProps, BarChart, type BarChartProps, BarList, type BarListItem, type BarListOptions, type BarListProps, type BarListSortOrder, BoxPlotChart, type BoxPlotChartProps, type BoxPlotEntry, type BoxPlotGroup, COMPARISON_LABELS, CategoryBar, type CategoryBarMarker, type CategoryBarProps, type ChangeDisplay, type ChartActionsOptions, type ChartAnnotation, type ChartColor, type ChartColorToken, type ChartColors, type ChartCommonProps, type ChartComparison, type ChartEmptyState, type ChartEventPayload, type ChartForecast, type ChartForecastRow, ChartFrame, type ChartFrameProps, type ChartHighlight, type ChartRootAttributes, type ChartSeriesColor, type ChartSkeletonVariant, type ChartThreshold, type ChartTone, type ComboAxis, ComboChart, type ComboChartProps, type ComboReferenceLine, type ComboSeries, type ComboSeriesType, type Comparison, type ComparisonKind, type ComparisonOptions, type ComparisonResult, DEFAULT_SAMPLE_LABEL, DELTA_NOT_COMPARABLE, DashboardCard, DashboardCardAction, type DashboardCardActionProps, DashboardCardContent, type DashboardCardContentProps, DashboardCardDescription, type DashboardCardDescriptionProps, DashboardCardFooter, type DashboardCardFooterProps, DashboardCardHeader, type DashboardCardHeaderProps, DashboardCardPreset, type DashboardCardPresetProps, type DashboardCardProps, DashboardCardSkeleton, type DashboardCardSkeletonProps, DashboardCardTitle, type DashboardCardTitleProps, DataTable, DataTableColumnVisibility, type DataTableColumnVisibilityProps, DataTableContent, type DataTableContentProps, DataTableExport, type DataTableExportProps, DataTablePagination, type DataTablePaginationProps, DataTablePreset, type DataTablePresetProps, type DataTableProps, DataTableToolbar, type DataTableToolbarProps, type DateRange, DateRangePicker, type DateRangePickerProps, DateStyle, Delta, type DeltaDirection, type DeltaProps, type DeltaSentiment, DonutChart, type DonutChartOptions, type DonutChartProps, type DonutVariant, DraftChart, type DraftChartProps, EChart, type EChartProps, FilledMap, type FilledMapName, type FilledMapProps, type FilledMapRegion, FilterBar, FilterBarActiveChips, type FilterBarActiveChipsProps, FilterBarAddFilter, type FilterBarAddFilterProps, FilterBarClearButton, type FilterBarClearButtonProps, FilterBarMultiSelect, type FilterBarMultiSelectProps, FilterBarPreset, type FilterBarPresetProps, type FilterBarProps, FilterBarSelect, type FilterBarSelectProps, type FilterConfig, type FilterOption, type FilterType, type FilterValues, ForecastChart, type ForecastChartProps, type ForecastComponent, type ForecastOptions, type ForecastPeriod, type FunnelStep, FunnelSteps, type FunnelStepsProps, Heatmap, type HeatmapCell, type HeatmapProps, HistogramChart, type HistogramChartProps, type HistogramThreshold, type HistoryGrain, KpiCard, type KpiCardProps, type KpiCardSource, type KpiPeriod, Legend, type LegendProps, LineChart, type LineChartProps, type MetricItem, MetricUnit, type MetricUnitProps, MetricValue, type MetricValueProps, type MetricVariant, MultiSelect, type MultiSelectProps, type NavGroup, type NavItem, type NumericKeys, PageShell, PageShellActions, type PageShellActionsProps, PageShellContent, type PageShellContentProps, PageShellDescription, type PageShellDescriptionProps, PageShellHeader, PageShellHeaderEnd, type PageShellHeaderEndProps, type PageShellHeaderProps, PageShellHeading, type PageShellHeadingProps, PageShellMeta, type PageShellMetaProps, type PageShellProps, PageShellSummary, PageShellSummaryCard, type PageShellSummaryCardProps, type PageShellSummaryProps, PageShellTitle, type PageShellTitleProps, PairedChart, type PairedChartProps, type PairedPanel, type PeriodGrain, PivotTable, type PivotTableProps, Placeholder, type PlaceholderProps, type Polarity, type PresetItem, ProgressCircle, type ProgressCircleProps, RECORD_MIN_POINTS, type RecordInsight, SampleBadge, type SampleBadgeProps, SampleClaim, SampleData, type SampleDataProps, ScatterChart, type ScatterChartProps, type ScatterPoint, type ScatterReferenceLine, type ScatterSeries, SearchableSelect, type SearchableSelectProps, SectionHeader, type SectionHeaderProps, type SegmentOption, SegmentedControl, type SegmentedControlProps, type SelectOption, type SelectOptionGroup, type SelectOptions, Sparkline, type SparklineColumnOptions, type SparklineDataPoint, type SparklinePoint, type SparklinePointKind, type SparklineProps, type SparklineVariant, StatusBadge, type StatusBadgeProps, type StatusKey, SymbolMap, type SymbolMapBasemap, type SymbolMapPoint, type SymbolMapProps, type TargetProgress, Tracker, type TrackerBlock, type TrackerProps, Treemap, type TreemapLeaf, type TreemapProps, type TrendDirection, TrendIndicator, type TrendIndicatorProps, UpdatedAt, type UpdatedAtProps, ValueFormat, type ValueFormatter, WaterfallChart, type WaterfallChartProps, type WaterfallDeltaEnds, type WaterfallKind, type WaterfallMode, type WaterfallStack, type WaterfallStep, comparisonBaseline, comparisonLabel, computeComparison, computeTargetProgress, defaultChangeDisplay, defaultPresets, deltaVariants, detectRecord, fillKpiTemplate, flattenOptions, formatChange, formatChangeAmount, formatRelativeTime, funnelStepsVariants, inferPeriodGrain, isGroupedOptions, metricValueVariants, pageShellSummaryCardVariants, tableToCsv, toCsv, toneForValue, useDataTable, useResolvedChartColors, useSampleMark };
|
package/dist/components/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { AppShell, AreaChart, AttentionList, BarChart, BarList, BoxPlotChart, COMPARISON_LABELS, CategoryBar, ChartFrame, ComboChart, DEFAULT_SAMPLE_LABEL, DELTA_NOT_COMPARABLE, DashboardCard, DashboardCardAction, DashboardCardContent, DashboardCardDescription, DashboardCardFooter, DashboardCardHeader, DashboardCardPreset, DashboardCardSkeleton, DashboardCardTitle, DataTable, DataTableColumnVisibility, DataTableContent, DataTableExport, DataTablePagination, DataTablePreset, DataTableToolbar, DateRangePicker, Delta, DonutChart, DraftChart, FilledMap, FilterBar, FilterBarActiveChips, FilterBarClearButton, FilterBarMultiSelect, FilterBarPreset, FilterBarSelect, ForecastChart, FunnelSteps, Heatmap, HistogramChart, KpiCard, Legend, LineChart, MetricUnit, MetricValue, MultiSelect, PageShell, PageShellActions, PageShellContent, PageShellDescription, PageShellHeader, PageShellHeaderEnd, PageShellHeading, PageShellMeta, PageShellSummary, PageShellSummaryCard, PageShellTitle, PairedChart, PivotTable, Placeholder, ProgressCircle, RECORD_MIN_POINTS, SampleBadge, SampleClaim, SampleData, ScatterChart, SearchableSelect, SectionHeader, SegmentedControl, StatusBadge, SymbolMap, Tracker, Treemap, TrendIndicator, UpdatedAt, WaterfallChart, comparisonBaseline, comparisonLabel, computeComparison, computeTargetProgress, defaultChangeDisplay, defaultPresets, deltaVariants, detectRecord, fillKpiTemplate, flattenOptions, formatChange, formatChangeAmount, formatRelativeTime, funnelStepsVariants, inferPeriodGrain, isGroupedOptions, metricValueVariants, pageShellSummaryCardVariants, tableToCsv, toCsv, toneForValue, useDataTable, useSampleMark } from '../chunk-
|
|
2
|
-
export { EChart, useResolvedChartColors } from '../chunk-
|
|
3
|
-
export { Sparkline } from '../chunk-
|
|
1
|
+
export { AppShell, AreaChart, AttentionList, BarChart, BarList, BoxPlotChart, COMPARISON_LABELS, CategoryBar, ChartFrame, ComboChart, DEFAULT_SAMPLE_LABEL, DELTA_NOT_COMPARABLE, DashboardCard, DashboardCardAction, DashboardCardContent, DashboardCardDescription, DashboardCardFooter, DashboardCardHeader, DashboardCardPreset, DashboardCardSkeleton, DashboardCardTitle, DataTable, DataTableColumnVisibility, DataTableContent, DataTableExport, DataTablePagination, DataTablePreset, DataTableToolbar, DateRangePicker, Delta, DonutChart, DraftChart, FilledMap, FilterBar, FilterBarActiveChips, FilterBarAddFilter, FilterBarClearButton, FilterBarMultiSelect, FilterBarPreset, FilterBarSelect, ForecastChart, FunnelSteps, Heatmap, HistogramChart, KpiCard, Legend, LineChart, MetricUnit, MetricValue, MultiSelect, PageShell, PageShellActions, PageShellContent, PageShellDescription, PageShellHeader, PageShellHeaderEnd, PageShellHeading, PageShellMeta, PageShellSummary, PageShellSummaryCard, PageShellTitle, PairedChart, PivotTable, Placeholder, ProgressCircle, RECORD_MIN_POINTS, SampleBadge, SampleClaim, SampleData, ScatterChart, SearchableSelect, SectionHeader, SegmentedControl, StatusBadge, SymbolMap, Tracker, Treemap, TrendIndicator, UpdatedAt, WaterfallChart, comparisonBaseline, comparisonLabel, computeComparison, computeTargetProgress, defaultChangeDisplay, defaultPresets, deltaVariants, detectRecord, fillKpiTemplate, flattenOptions, formatChange, formatChangeAmount, formatRelativeTime, funnelStepsVariants, inferPeriodGrain, isGroupedOptions, metricValueVariants, pageShellSummaryCardVariants, tableToCsv, toCsv, toneForValue, useDataTable, useSampleMark } from '../chunk-I2GWIPTD.js';
|
|
2
|
+
export { EChart, useResolvedChartColors } from '../chunk-GWXKENNH.js';
|
|
3
|
+
export { Sparkline } from '../chunk-U6MWBCM6.js';
|
|
4
4
|
export { DEFAULT_LOCALE, EMPTY_VALUE, MINUS_SIGN, formatDate, formatDateRange, formatDatesInText, formatDelta, formatKind, formatPoints, formatValue, toValueFormatter } from '../chunk-XRKSIC5Z.js';
|
|
5
5
|
import '../chunk-5HBUBVQ3.js';
|
|
6
6
|
import '../chunk-ROHNXP7J.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { runDiagnostics } from './chunk-PJ4SPXHS.js';
|
|
2
2
|
import './chunk-UWSQUHX6.js';
|
|
3
|
-
import { vantagePlugin } from './chunk-
|
|
3
|
+
import { vantagePlugin } from './chunk-SR43D6EF.js';
|
|
4
4
|
import './chunk-SHZM3EXB.js';
|
|
5
5
|
import './chunk-S5MDTHH7.js';
|
|
6
6
|
import { scanProject, timedAsync } from './chunk-RNTDBX6S.js';
|
|
@@ -77,5 +77,5 @@ async function dev(root, args) {
|
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
export { dev };
|
|
80
|
-
//# sourceMappingURL=dev-
|
|
81
|
-
//# sourceMappingURL=dev-
|
|
80
|
+
//# sourceMappingURL=dev-BZ7FXDB3.js.map
|
|
81
|
+
//# sourceMappingURL=dev-BZ7FXDB3.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/cli/dev.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAkBA,eAAsB,GAAA,CAAI,MAAc,IAAA,EAAmC;AACzE,EAAA,MAAM,KAAA,GAAQ,YAAY,IAAI,CAAA;AAC9B,EAAA,MAAM,MAAA,GAAS,cAAA,CAA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rC","file":"dev-BZ7FXDB3.js","sourcesContent":["import { createServer, loadEnv } from \"vite\"\nimport { runDiagnostics } from \"../core/diagnostics\"\nimport { timedAsync } from \"../core/profile\"\nimport { scanProject } from \"../core/scan\"\nimport { vantagePlugin } from \"../vite/index\"\nimport {\n applyApiBaseUrlFlag,\n log,\n printDiagnostics,\n reportPortInUse,\n resolveDraftPreview,\n resolveHmrOverlay,\n resolveHostOptions,\n resolvePortOptions,\n type ParsedArgs,\n} from \"./util\"\n\n/** `vantage dev` — start the dev server with HMR and the optional API server. */\nexport async function dev(root: string, args: ParsedArgs): Promise<number> {\n const model = scanProject(root)\n const errors = runDiagnostics(root, model).filter((d) => d.severity === \"error\")\n if (errors.length) {\n printDiagnostics(errors)\n log.error(\"Fix the errors above before starting the dev server.\")\n return 1\n }\n\n const mode = \"development\"\n applyApiBaseUrlFlag(args)\n const env = { ...process.env, ...loadEnv(mode, root, \"\") }\n const ports = resolvePortOptions(args.flags, 5173)\n if (!ports.ok) {\n log.error(ports.error)\n return 1\n }\n const { port, strictPort } = ports\n const hosts = resolveHostOptions(args.flags)\n if (!hosts.ok) {\n log.error(hosts.error)\n return 1\n }\n const overlay = resolveHmrOverlay(args.flags)\n\n const server = await timedAsync(\"vite:createServer\", () =>\n createServer({\n configFile: false,\n root,\n mode,\n // The model was just scanned for diagnostics; hand it over so the plugin\n // does not walk the project again.\n plugins: [vantagePlugin({ root, env, model, draftPreview: resolveDraftPreview(args.flags) })],\n // `host` / `allowedHosts` are only present when asked for, and `hmr` is\n // left alone unless the overlay is being turned off, so Vite's own\n // defaults (host, port, protocol) keep applying.\n server: {\n port,\n strictPort,\n ...hosts.options,\n ...(overlay ? {} : { hmr: { overlay: false } }),\n },\n clearScreen: false,\n }),\n )\n\n try {\n await timedAsync(\"vite:listen\", () => server.listen())\n } catch (err) {\n await server.close().catch(() => {})\n if (reportPortInUse(err, port, strictPort)) return 1\n throw err\n }\n log.brand(\"dev server ready\")\n server.printUrls()\n if (model.hasServer) log.info(\" \" + \"server/api enabled\")\n\n const shutdown = async () => {\n await server.close()\n process.exit(0)\n }\n process.on(\"SIGINT\", shutdown)\n process.on(\"SIGTERM\", shutdown)\n\n // Keep the process alive; the listening server owns the lifecycle.\n return new Promise<number>(() => {})\n}\n"]}
|
package/dist/doc/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DeltaText } from '../chunk-LYUGDHSF.js';
|
|
2
2
|
export { DeltaText } from '../chunk-LYUGDHSF.js';
|
|
3
|
-
import { Sparkline } from '../chunk-
|
|
3
|
+
import { Sparkline } from '../chunk-U6MWBCM6.js';
|
|
4
4
|
import { formatValue } from '../chunk-XRKSIC5Z.js';
|
|
5
5
|
import { Button, uiLanguage, useLocale } from '../chunk-ROHNXP7J.js';
|
|
6
6
|
import '../chunk-U736PVHY.js';
|
package/dist/slide/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { DeltaText } from '../chunk-LYUGDHSF.js';
|
|
|
2
2
|
export { DeltaText } from '../chunk-LYUGDHSF.js';
|
|
3
3
|
import { useSearchState } from '../chunk-ZO62C6T4.js';
|
|
4
4
|
import '../chunk-6S4BAIGV.js';
|
|
5
|
-
import { EChart } from '../chunk-
|
|
5
|
+
import { EChart } from '../chunk-GWXKENNH.js';
|
|
6
6
|
import { formatValue, EMPTY_VALUE } from '../chunk-XRKSIC5Z.js';
|
|
7
7
|
import { uiLanguage, useLocale } from '../chunk-ROHNXP7J.js';
|
|
8
8
|
import '../chunk-U736PVHY.js';
|
package/dist/table/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { FILE_PAGE_MAX_ROWS, FILE_PAGE_MAX_BYTES } from '../chunk-C2CX6GLX.js';
|
|
2
2
|
import { useQuery } from '../chunk-ANZLVSEP.js';
|
|
3
3
|
import '../chunk-CKWPK4RO.js';
|
|
4
|
-
import { PageShell, PageShellHeader, PageShellHeading, PageShellTitle, PageShellMeta, PageShellActions, PageShellContent } from '../chunk-
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
4
|
+
import { PageShell, PageShellHeader, PageShellHeading, PageShellTitle, PageShellMeta, PageShellActions, PageShellContent } from '../chunk-I2GWIPTD.js';
|
|
5
|
+
import '../chunk-GWXKENNH.js';
|
|
6
|
+
import '../chunk-U6MWBCM6.js';
|
|
7
7
|
import '../chunk-XRKSIC5Z.js';
|
|
8
8
|
import { Loading, ErrorState } from '../chunk-5HBUBVQ3.js';
|
|
9
9
|
import { Button } from '../chunk-ROHNXP7J.js';
|
package/dist/ui/index.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ import * as _base_ui_react from '@base-ui/react';
|
|
|
33
33
|
import { Toast as Toast$1 } from '@base-ui/react/toast';
|
|
34
34
|
import { Toggle as Toggle$1 } from '@base-ui/react/toggle';
|
|
35
35
|
import { ToggleGroup as ToggleGroup$1 } from '@base-ui/react/toggle-group';
|
|
36
|
+
import { ContextMenu as ContextMenu$1 } from '@base-ui/react/context-menu';
|
|
36
37
|
|
|
37
38
|
/**
|
|
38
39
|
* Class merger used by every component in the kit. `clsx` resolves conditional
|
|
@@ -470,4 +471,30 @@ declare function ErrorState({ title, message, details, action, variant, classNam
|
|
|
470
471
|
className?: string;
|
|
471
472
|
}): React$1.JSX.Element;
|
|
472
473
|
|
|
473
|
-
|
|
474
|
+
type CodeBlockProps = Omit<React$1.ComponentProps<"div">, "children"> & {
|
|
475
|
+
/** The text shown and copied. No syntax highlighting. */
|
|
476
|
+
code: string;
|
|
477
|
+
/** Plain-text label above the code (a file name or language). */
|
|
478
|
+
title?: string;
|
|
479
|
+
};
|
|
480
|
+
/** Monospace text with a copy button. */
|
|
481
|
+
declare function CodeBlock({ code, title, className, ...props }: CodeBlockProps): React$1.JSX.Element;
|
|
482
|
+
|
|
483
|
+
declare function ContextMenu({ ...props }: ContextMenu$1.Root.Props): React$1.JSX.Element;
|
|
484
|
+
/** The area that opens the menu on right-click (long-press on touch). */
|
|
485
|
+
declare function ContextMenuTrigger({ className, ...props }: ContextMenu$1.Trigger.Props): React$1.JSX.Element;
|
|
486
|
+
declare function ContextMenuContent({ className, ...props }: React$1.ComponentProps<typeof DropdownMenuContent>): React$1.JSX.Element;
|
|
487
|
+
|
|
488
|
+
type FileDropzoneProps = Omit<React$1.ComponentProps<"div">, "onChange"> & {
|
|
489
|
+
/** Comma-separated types, same syntax as `<input accept>` (e.g. ".csv,.xlsx" or "text/*"). */
|
|
490
|
+
accept?: string;
|
|
491
|
+
/** Largest allowed file size in bytes. */
|
|
492
|
+
maxSize?: number;
|
|
493
|
+
multiple?: boolean;
|
|
494
|
+
disabled?: boolean;
|
|
495
|
+
onFilesChange?: (files: File[]) => void;
|
|
496
|
+
};
|
|
497
|
+
/** Drag & drop or click to pick files. Wrong type / too large files are rejected with a message and never reach `onFilesChange`. */
|
|
498
|
+
declare function FileDropzone({ accept, maxSize, multiple, disabled, onFilesChange, className, ...props }: FileDropzoneProps): React$1.JSX.Element;
|
|
499
|
+
|
|
500
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertAction, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, CodeBlock, type CodeBlockProps, Collapsible, CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxTrigger, ComboboxValue, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, DropdownMenuCheckboxItem as ContextMenuCheckboxItem, ContextMenuContent, DropdownMenuGroup as ContextMenuGroup, DropdownMenuItem as ContextMenuItem, DropdownMenuLabel as ContextMenuLabel, DropdownMenuRadioGroup as ContextMenuRadioGroup, DropdownMenuRadioItem as ContextMenuRadioItem, DropdownMenuSeparator as ContextMenuSeparator, DropdownMenuShortcut as ContextMenuShortcut, DropdownMenuSub as ContextMenuSub, DropdownMenuSubContent as ContextMenuSubContent, DropdownMenuSubTrigger as ContextMenuSubTrigger, ContextMenuTrigger, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerSwipeHandle, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, ErrorState, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, FileDropzone, type FileDropzoneProps, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, Kbd, KbdGroup, Label, Loading, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, Progress, ProgressIndicator, ProgressLabel, ProgressTrack, ProgressValue, RadioGroup, RadioGroupItem, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, Spinner, type StateVariant, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toast, ToastAction, ToastClose, ToastContent, ToastDescription, ToastPortal, ToastProvider, ToastTitle, ToastViewport, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, buttonVariants, cn, createToastManager, tabsListVariants, toast, toggleVariants, useComboboxAnchor, useIsMobile, useSidebar, useToastManager };
|