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
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
import { useCartesianColors, BarChart, LineChart, AreaChart, MARGIN, ChartDataTable, formatNumber, ChartFrame, BAR_LAYOUT, CHART_ROOT, AREA_GRADIENT_STOPS, CartesianGrid, GRID, XAxis, X_AXIS_PADDING, AXIS_TICK, AXIS, Label, AXIS_LABEL, YAxis, ReferenceLine, ZERO_LINE, Tooltip, TOOLTIP_CURSOR, NO_ANIMATION, ChartTooltipContent, Area, AREA_FILL_OPACITY, AREA_SOLID_OPACITY, ACTIVE_DOT, AREA_BAND, Line, LINE_DASH, DOT, Bar, BAR_RADIUS_HORIZONTAL, BAR_RADIUS, MAX_BAR_SIZE, ChartLegendContent, BAND_SEPARATOR } from './chunk-75M43ELV.js';
|
|
2
|
+
import { cn } from './chunk-ZSNJ6UA3.js';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
function toBands(groupValues) {
|
|
7
|
+
const bands = [];
|
|
8
|
+
for (const [index, label] of groupValues.entries()) {
|
|
9
|
+
const last = bands.at(-1);
|
|
10
|
+
if (last && last.label === label && last.endIndex === index - 1) {
|
|
11
|
+
last.endIndex = index;
|
|
12
|
+
} else {
|
|
13
|
+
bands.push({ label, startIndex: index, endIndex: index });
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return bands;
|
|
17
|
+
}
|
|
18
|
+
function BandTick({ x = 0, y = 0, width = 0, height = 0, index = 0, visibleTicksCount = 1, bands = [], vertical = false }) {
|
|
19
|
+
const band = bands.find((b) => b.startIndex === index);
|
|
20
|
+
if (!band) return null;
|
|
21
|
+
const span = vertical ? height : width;
|
|
22
|
+
const bandSize = visibleTicksCount > 0 ? span / visibleTicksCount : 0;
|
|
23
|
+
const shift = (band.endIndex - band.startIndex) / 2 * bandSize;
|
|
24
|
+
const separator = band.startIndex > 0 ? bandSize / 2 : null;
|
|
25
|
+
if (vertical) {
|
|
26
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
27
|
+
separator === null ? null : /* @__PURE__ */ jsx("line", { x1: x - 6, x2: x + 6, y1: y - separator, y2: y - separator, stroke: "currentColor", className: BAND_SEPARATOR }),
|
|
28
|
+
/* @__PURE__ */ jsx("text", { x, y: y + shift, textAnchor: "end", dominantBaseline: "middle", fill: "currentColor", className: AXIS_TICK, children: band.label })
|
|
29
|
+
] });
|
|
30
|
+
}
|
|
31
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
32
|
+
separator === null ? null : /* @__PURE__ */ jsx("line", { x1: x - separator, x2: x - separator, y1: y - 4, y2: y + 12, stroke: "currentColor", className: BAND_SEPARATOR }),
|
|
33
|
+
/* @__PURE__ */ jsx("text", { x: x + shift, y: y + 12, textAnchor: "middle", fill: "currentColor", className: AXIS_TICK, children: band.label })
|
|
34
|
+
] });
|
|
35
|
+
}
|
|
36
|
+
var ROOT_BY_KIND = {
|
|
37
|
+
area: AreaChart,
|
|
38
|
+
line: LineChart,
|
|
39
|
+
bar: BarChart
|
|
40
|
+
};
|
|
41
|
+
function Cartesian({
|
|
42
|
+
data,
|
|
43
|
+
x,
|
|
44
|
+
xGroup,
|
|
45
|
+
series,
|
|
46
|
+
mark,
|
|
47
|
+
component,
|
|
48
|
+
palette = "brand",
|
|
49
|
+
height = 240,
|
|
50
|
+
legend = "right",
|
|
51
|
+
grid = true,
|
|
52
|
+
xLabel,
|
|
53
|
+
yLabel,
|
|
54
|
+
formatX,
|
|
55
|
+
formatValue = formatNumber,
|
|
56
|
+
tooltip = true,
|
|
57
|
+
tooltipTone = "surface",
|
|
58
|
+
emptyMessage = "No data to display",
|
|
59
|
+
className,
|
|
60
|
+
"aria-label": ariaLabel
|
|
61
|
+
}) {
|
|
62
|
+
const colors = useCartesianColors(component, series, palette);
|
|
63
|
+
const { colorMap, labelMap } = React.useMemo(() => {
|
|
64
|
+
const colorMap2 = {};
|
|
65
|
+
const labelMap2 = {};
|
|
66
|
+
for (const [i, s] of series.entries()) {
|
|
67
|
+
colorMap2[s.key] = colors[i] ?? "";
|
|
68
|
+
labelMap2[s.key] = s.label;
|
|
69
|
+
}
|
|
70
|
+
return { colorMap: colorMap2, labelMap: labelMap2 };
|
|
71
|
+
}, [series, colors]);
|
|
72
|
+
const legendItems = React.useMemo(() => series.map((s, i) => ({ label: s.label, colorClass: colors[i] ?? "" })), [series, colors]);
|
|
73
|
+
const formatCategory = React.useCallback((value) => formatX ? formatX(value) : String(value ?? ""), [formatX]);
|
|
74
|
+
const crossesZero = React.useMemo(() => {
|
|
75
|
+
let min = Infinity;
|
|
76
|
+
let max = -Infinity;
|
|
77
|
+
for (const row of data) {
|
|
78
|
+
for (const s of series) {
|
|
79
|
+
const v = row[s.key];
|
|
80
|
+
if (typeof v === "number" && Number.isFinite(v)) {
|
|
81
|
+
if (v < min) min = v;
|
|
82
|
+
if (v > max) max = v;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
return min < 0 && max > 0;
|
|
87
|
+
}, [data, series]);
|
|
88
|
+
const isHorizontal = mark.kind === "bar" && mark.layout === "bars";
|
|
89
|
+
const Root = ROOT_BY_KIND[mark.kind];
|
|
90
|
+
const margin = mark.kind === "bar" ? isHorizontal ? MARGIN.barsLayout : MARGIN.bar : MARGIN.line;
|
|
91
|
+
const xKey = x;
|
|
92
|
+
const bands = React.useMemo(() => xGroup ? toBands(data.map((row) => String(row[xGroup] ?? ""))) : null, [data, xGroup]);
|
|
93
|
+
const table = /* @__PURE__ */ jsx(
|
|
94
|
+
ChartDataTable,
|
|
95
|
+
{
|
|
96
|
+
caption: ariaLabel,
|
|
97
|
+
rowHeader: xLabel ?? x,
|
|
98
|
+
columns: [...xGroup ? [xGroup] : [], ...series.map((s) => s.label)],
|
|
99
|
+
rows: data.map((row) => [
|
|
100
|
+
formatCategory(row[x]),
|
|
101
|
+
...xGroup ? [String(row[xGroup] ?? "")] : [],
|
|
102
|
+
...series.map((s) => {
|
|
103
|
+
const v = row[s.key];
|
|
104
|
+
return typeof v === "number" ? formatValue(v) : String(v ?? "");
|
|
105
|
+
})
|
|
106
|
+
])
|
|
107
|
+
}
|
|
108
|
+
);
|
|
109
|
+
return /* @__PURE__ */ jsx(
|
|
110
|
+
ChartFrame,
|
|
111
|
+
{
|
|
112
|
+
component,
|
|
113
|
+
ariaLabel,
|
|
114
|
+
height,
|
|
115
|
+
isEmpty: data.length === 0,
|
|
116
|
+
emptyMessage,
|
|
117
|
+
className,
|
|
118
|
+
table,
|
|
119
|
+
legendAlign: "start",
|
|
120
|
+
legendPlacement: legend === "none" ? void 0 : legend,
|
|
121
|
+
legend: legend === "none" ? void 0 : /* @__PURE__ */ jsx(ChartLegendContent, { items: legendItems, placement: legend }),
|
|
122
|
+
children: (gid) => /* @__PURE__ */ jsxs(Root, { data, className: CHART_ROOT, margin, layout: mark.kind === "bar" ? BAR_LAYOUT[mark.layout] : void 0, children: [
|
|
123
|
+
mark.kind === "area" && mark.fill === "gradient" ? /* @__PURE__ */ jsx("defs", { children: series.map((s, i) => /* @__PURE__ */ jsxs("linearGradient", { id: `${gid}-${i}`, x1: "0", y1: "0", x2: "0", y2: "1", className: colors[i], children: [
|
|
124
|
+
/* @__PURE__ */ jsx("stop", { offset: AREA_GRADIENT_STOPS.fromOffset, stopColor: "currentColor", stopOpacity: AREA_GRADIENT_STOPS.from }),
|
|
125
|
+
/* @__PURE__ */ jsx("stop", { offset: AREA_GRADIENT_STOPS.toOffset, stopColor: "currentColor", stopOpacity: AREA_GRADIENT_STOPS.to })
|
|
126
|
+
] }, s.key)) }) : null,
|
|
127
|
+
grid ? /* @__PURE__ */ jsx(CartesianGrid, { vertical: isHorizontal, horizontal: !isHorizontal, stroke: "currentColor", className: GRID }) : null,
|
|
128
|
+
/* @__PURE__ */ jsx(
|
|
129
|
+
XAxis,
|
|
130
|
+
{
|
|
131
|
+
...AXIS,
|
|
132
|
+
type: isHorizontal ? "number" : "category",
|
|
133
|
+
dataKey: isHorizontal ? void 0 : xKey,
|
|
134
|
+
tick: { className: AXIS_TICK, fill: "currentColor" },
|
|
135
|
+
tickFormatter: isHorizontal ? (v) => formatValue(Number(v)) : formatCategory,
|
|
136
|
+
padding: mark.kind === "bar" ? void 0 : X_AXIS_PADDING,
|
|
137
|
+
tickMargin: mark.kind === "bar" ? 11 : void 0,
|
|
138
|
+
children: xLabel ? /* @__PURE__ */ jsx(Label, { value: xLabel, fill: "currentColor", className: AXIS_LABEL, position: "bottom" }) : null
|
|
139
|
+
}
|
|
140
|
+
),
|
|
141
|
+
/* @__PURE__ */ jsx(
|
|
142
|
+
YAxis,
|
|
143
|
+
{
|
|
144
|
+
...AXIS,
|
|
145
|
+
type: isHorizontal ? "category" : "number",
|
|
146
|
+
dataKey: isHorizontal ? xKey : void 0,
|
|
147
|
+
tick: { className: AXIS_TICK, fill: "currentColor" },
|
|
148
|
+
tickFormatter: isHorizontal ? formatCategory : (v) => formatValue(Number(v)),
|
|
149
|
+
children: yLabel ? /* @__PURE__ */ jsx(Label, { value: yLabel, fill: "currentColor", className: AXIS_LABEL, style: { textAnchor: "middle" }, angle: -90, position: "insideLeft" }) : null
|
|
150
|
+
}
|
|
151
|
+
),
|
|
152
|
+
bands ? isHorizontal ? /* @__PURE__ */ jsx(
|
|
153
|
+
YAxis,
|
|
154
|
+
{
|
|
155
|
+
yAxisId: "jz-band",
|
|
156
|
+
type: "category",
|
|
157
|
+
dataKey: xKey,
|
|
158
|
+
orientation: "left",
|
|
159
|
+
interval: 0,
|
|
160
|
+
axisLine: false,
|
|
161
|
+
tickLine: false,
|
|
162
|
+
width: 72,
|
|
163
|
+
tick: /* @__PURE__ */ jsx(BandTick, { bands, vertical: true })
|
|
164
|
+
}
|
|
165
|
+
) : /* @__PURE__ */ jsx(
|
|
166
|
+
XAxis,
|
|
167
|
+
{
|
|
168
|
+
xAxisId: "jz-band",
|
|
169
|
+
type: "category",
|
|
170
|
+
dataKey: xKey,
|
|
171
|
+
orientation: "bottom",
|
|
172
|
+
interval: 0,
|
|
173
|
+
axisLine: false,
|
|
174
|
+
tickLine: false,
|
|
175
|
+
height: 28,
|
|
176
|
+
tick: /* @__PURE__ */ jsx(BandTick, { bands })
|
|
177
|
+
}
|
|
178
|
+
) : null,
|
|
179
|
+
crossesZero ? /* @__PURE__ */ jsx(ReferenceLine, { ...isHorizontal ? { x: 0 } : { y: 0 }, stroke: "currentColor", className: ZERO_LINE, strokeWidth: 1 }) : null,
|
|
180
|
+
tooltip ? /* @__PURE__ */ jsx(
|
|
181
|
+
Tooltip,
|
|
182
|
+
{
|
|
183
|
+
...NO_ANIMATION,
|
|
184
|
+
cursor: mark.kind === "bar" ? TOOLTIP_CURSOR.bar : TOOLTIP_CURSOR.line,
|
|
185
|
+
content: /* @__PURE__ */ jsx(ChartTooltipContent, { colors: colorMap, labels: labelMap, formatValue, formatLabel: formatCategory, tone: tooltipTone })
|
|
186
|
+
}
|
|
187
|
+
) : null,
|
|
188
|
+
series.map((s, i) => {
|
|
189
|
+
const color = colors[i];
|
|
190
|
+
const last = i === series.length - 1;
|
|
191
|
+
const key = s.key;
|
|
192
|
+
if (mark.kind === "area") {
|
|
193
|
+
return /* @__PURE__ */ jsx(
|
|
194
|
+
Area,
|
|
195
|
+
{
|
|
196
|
+
...NO_ANIMATION,
|
|
197
|
+
className: cn(color, AREA_BAND[mark.band]),
|
|
198
|
+
dataKey: key,
|
|
199
|
+
name: s.label,
|
|
200
|
+
type: mark.curve,
|
|
201
|
+
stroke: "currentColor",
|
|
202
|
+
strokeWidth: 2,
|
|
203
|
+
fill: mark.fill === "none" ? "none" : mark.fill === "gradient" ? `url(#${gid}-${i})` : "currentColor",
|
|
204
|
+
fillOpacity: mark.fill === "gradient" ? AREA_FILL_OPACITY : mark.fill === "solid" ? AREA_SOLID_OPACITY : 0,
|
|
205
|
+
stackId: mark.stacked ? "a" : void 0,
|
|
206
|
+
activeDot: ACTIVE_DOT(color)
|
|
207
|
+
},
|
|
208
|
+
s.key
|
|
209
|
+
);
|
|
210
|
+
}
|
|
211
|
+
if (mark.kind === "line") {
|
|
212
|
+
return /* @__PURE__ */ jsx(
|
|
213
|
+
Line,
|
|
214
|
+
{
|
|
215
|
+
...NO_ANIMATION,
|
|
216
|
+
className: color,
|
|
217
|
+
dataKey: key,
|
|
218
|
+
name: s.label,
|
|
219
|
+
type: mark.curve,
|
|
220
|
+
stroke: "currentColor",
|
|
221
|
+
strokeWidth: 2,
|
|
222
|
+
...mark.dashed ? LINE_DASH : null,
|
|
223
|
+
dot: mark.dots ? DOT(color) : false,
|
|
224
|
+
activeDot: ACTIVE_DOT(color)
|
|
225
|
+
},
|
|
226
|
+
s.key
|
|
227
|
+
);
|
|
228
|
+
}
|
|
229
|
+
const radius = isHorizontal ? BAR_RADIUS_HORIZONTAL : BAR_RADIUS;
|
|
230
|
+
return /* @__PURE__ */ jsx(
|
|
231
|
+
Bar,
|
|
232
|
+
{
|
|
233
|
+
...NO_ANIMATION,
|
|
234
|
+
className: color,
|
|
235
|
+
dataKey: key,
|
|
236
|
+
name: s.label,
|
|
237
|
+
fill: "currentColor",
|
|
238
|
+
maxBarSize: MAX_BAR_SIZE,
|
|
239
|
+
stackId: mark.stacked ? "a" : void 0,
|
|
240
|
+
radius: mark.stacked && !last ? void 0 : [...radius]
|
|
241
|
+
},
|
|
242
|
+
s.key
|
|
243
|
+
);
|
|
244
|
+
})
|
|
245
|
+
] })
|
|
246
|
+
}
|
|
247
|
+
);
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
export { Cartesian };
|
|
251
|
+
//# sourceMappingURL=chunk-NA35YZRD.js.map
|
|
252
|
+
//# sourceMappingURL=chunk-NA35YZRD.js.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Cartesian } from './chunk-NA35YZRD.js';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
|
|
4
|
+
function BarChart({ stacked = false, layout = "columns", ...rest }) {
|
|
5
|
+
return /* @__PURE__ */ jsx(Cartesian, { ...rest, component: "BarChart", mark: { kind: "bar", stacked, layout } });
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export { BarChart };
|
|
9
|
+
//# sourceMappingURL=chunk-NKDW6C7K.js.map
|
|
10
|
+
//# sourceMappingURL=chunk-NKDW6C7K.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DEFAULT_FORMAT, parseFormat, fromISO, toISO, dispBounds, SEG_LABEL, segValueText, getDisp, parsePastedDate, applyPastedDate, clamp, pad, displaySeg, setDisp, wrap } from './chunk-
|
|
1
|
+
import { DEFAULT_FORMAT, parseFormat, fromISO, toISO, dispBounds, SEG_LABEL, segValueText, getDisp, parsePastedDate, applyPastedDate, clamp, pad, displaySeg, setDisp, wrap } from './chunk-DJYWPJZ3.js';
|
|
2
2
|
import { useControlScrollFade } from './chunk-7EUAMHMU.js';
|
|
3
|
-
import { FieldShell } from './chunk-
|
|
4
|
-
import { useFieldValidity, FieldFrame } from './chunk-
|
|
3
|
+
import { FieldShell } from './chunk-JUWDRRD6.js';
|
|
4
|
+
import { useFieldValidity, FieldFrame } from './chunk-QKDEQFOQ.js';
|
|
5
5
|
import { cn } from './chunk-ZSNJ6UA3.js';
|
|
6
6
|
import { Field } from '@base-ui/react/field';
|
|
7
7
|
import * as React from 'react';
|
|
@@ -257,7 +257,7 @@ function DateInput(props) {
|
|
|
257
257
|
"aria-label": label,
|
|
258
258
|
onPaste,
|
|
259
259
|
onCopy,
|
|
260
|
-
className: "flex min-w-0 flex-1
|
|
260
|
+
className: "scrollbar-none flex min-w-0 flex-1 items-center overflow-x-auto",
|
|
261
261
|
children: specs.map(({ seg, sep }, index) => {
|
|
262
262
|
const { lo, hi } = dispBounds(seg, parts, cfg);
|
|
263
263
|
return /* @__PURE__ */ jsxs(React.Fragment, { children: [
|
|
@@ -293,5 +293,5 @@ function DateInput(props) {
|
|
|
293
293
|
}
|
|
294
294
|
|
|
295
295
|
export { DateInput };
|
|
296
|
-
//# sourceMappingURL=chunk-
|
|
297
|
-
//# sourceMappingURL=chunk-
|
|
296
|
+
//# sourceMappingURL=chunk-NMERLWT7.js.map
|
|
297
|
+
//# sourceMappingURL=chunk-NMERLWT7.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { nearestScrollport, scrollportScrolls } from './chunk-
|
|
1
|
+
import { nearestScrollport, scrollportScrolls, nearestScrollableOn } from './chunk-QDYE5LVT.js';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
|
|
4
4
|
function snapToStep(value, step) {
|
|
@@ -191,9 +191,14 @@ function useAutoScroll(ref, opts) {
|
|
|
191
191
|
const arm = React.useCallback(() => {
|
|
192
192
|
const s = state.current;
|
|
193
193
|
if (s.frame !== null) return;
|
|
194
|
-
const
|
|
195
|
-
|
|
196
|
-
|
|
194
|
+
const axis = optsRef.current?.axis ?? "y";
|
|
195
|
+
let boxY = null;
|
|
196
|
+
if (axis === "y" || axis === "both") {
|
|
197
|
+
const port = nearestScrollport(ref.current);
|
|
198
|
+
if (port !== null && scrollportScrolls(port)) boxY = port.el;
|
|
199
|
+
}
|
|
200
|
+
const boxX = axis === "x" || axis === "both" ? nearestScrollableOn(ref.current, "x") : null;
|
|
201
|
+
if (boxY === null && boxX === null) return;
|
|
197
202
|
const onPointer = (ev) => {
|
|
198
203
|
const pt = pointOf(ev);
|
|
199
204
|
if (pt) s.pointer = pt;
|
|
@@ -205,13 +210,22 @@ function useAutoScroll(ref, opts) {
|
|
|
205
210
|
s.frame = requestAnimationFrame(tick);
|
|
206
211
|
const pt = s.pointer;
|
|
207
212
|
if (!pt) return;
|
|
208
|
-
const rect = box.getBoundingClientRect();
|
|
209
213
|
const edge = optsRef.current?.edge ?? 48;
|
|
210
214
|
const maxPx = optsRef.current?.maxPx ?? 14;
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
+
if (boxY !== null) {
|
|
216
|
+
const rect = boxY.getBoundingClientRect();
|
|
217
|
+
const overTop = rect.top + edge - pt.y;
|
|
218
|
+
const overBottom = pt.y - (rect.bottom - edge);
|
|
219
|
+
if (overTop > 0) boxY.scrollTop -= maxPx * Math.min(1, overTop / edge);
|
|
220
|
+
else if (overBottom > 0) boxY.scrollTop += maxPx * Math.min(1, overBottom / edge);
|
|
221
|
+
}
|
|
222
|
+
if (boxX !== null) {
|
|
223
|
+
const rect = boxX.getBoundingClientRect();
|
|
224
|
+
const overLeft = rect.left + edge - pt.x;
|
|
225
|
+
const overRight = pt.x - (rect.right - edge);
|
|
226
|
+
if (overLeft > 0) boxX.scrollLeft -= maxPx * Math.min(1, overLeft / edge);
|
|
227
|
+
else if (overRight > 0) boxX.scrollLeft += maxPx * Math.min(1, overRight / edge);
|
|
228
|
+
}
|
|
215
229
|
};
|
|
216
230
|
s.frame = requestAnimationFrame(tick);
|
|
217
231
|
}, [ref]);
|
|
@@ -220,5 +234,5 @@ function useAutoScroll(ref, opts) {
|
|
|
220
234
|
}
|
|
221
235
|
|
|
222
236
|
export { snapToStep, useAutoScroll, useDrag };
|
|
223
|
-
//# sourceMappingURL=chunk-
|
|
224
|
-
//# sourceMappingURL=chunk-
|
|
237
|
+
//# sourceMappingURL=chunk-P6CON2R2.js.map
|
|
238
|
+
//# sourceMappingURL=chunk-P6CON2R2.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { FieldShell } from './chunk-
|
|
2
|
-
import { useSeamlessSlot, warnSeamlessFieldChrome, SEAMLESS_BOX } from './chunk-
|
|
3
|
-
import { useFieldValidity, FieldFrame } from './chunk-
|
|
4
|
-
import { ChevronDownIcon } from './chunk-
|
|
1
|
+
import { FieldShell } from './chunk-JUWDRRD6.js';
|
|
2
|
+
import { useSeamlessSlot, warnSeamlessFieldChrome, SEAMLESS_BOX } from './chunk-TBN644IN.js';
|
|
3
|
+
import { useFieldValidity, FieldFrame } from './chunk-QKDEQFOQ.js';
|
|
4
|
+
import { ChevronDownIcon } from './chunk-BLIZ3CL3.js';
|
|
5
5
|
import { cn } from './chunk-ZSNJ6UA3.js';
|
|
6
6
|
import { Field } from '@base-ui/react/field';
|
|
7
7
|
import 'react';
|
|
@@ -134,5 +134,5 @@ function NativeSelect(props) {
|
|
|
134
134
|
}
|
|
135
135
|
|
|
136
136
|
export { NativeSelect };
|
|
137
|
-
//# sourceMappingURL=chunk-
|
|
138
|
-
//# sourceMappingURL=chunk-
|
|
137
|
+
//# sourceMappingURL=chunk-P7DH62UY.js.map
|
|
138
|
+
//# sourceMappingURL=chunk-P7DH62UY.js.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ScrollView } from './chunk-FKVPAEJ6.js';
|
|
2
|
+
import 'react';
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
function PopupScrollViewport({ axis = "vertical", max, className, children }) {
|
|
6
|
+
const capKey = axis === "vertical" ? "maxHeight" : "maxWidth";
|
|
7
|
+
return (
|
|
8
|
+
// `composite` unconditionally: every caller of this wraps a `role="menu"` or `role="listbox"`
|
|
9
|
+
// row list, and those roles both own their own keyboard model and constrain what their children
|
|
10
|
+
// may be. A focusable wrapper there is a second tab stop AND an axe violation.
|
|
11
|
+
/* @__PURE__ */ jsx(ScrollView, { composite: true, axis, viewportClassName: className, viewportStyle: { [capKey]: max }, children })
|
|
12
|
+
);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { PopupScrollViewport };
|
|
16
|
+
//# sourceMappingURL=chunk-PO2TYK3C.js.map
|
|
17
|
+
//# sourceMappingURL=chunk-PO2TYK3C.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SOLID } from './chunk-
|
|
2
|
-
import { SEAMLESS_DOT } from './chunk-
|
|
1
|
+
import { SOLID } from './chunk-6IUTVDNI.js';
|
|
2
|
+
import { SEAMLESS_DOT } from './chunk-TBN644IN.js';
|
|
3
3
|
import { cn } from './chunk-ZSNJ6UA3.js';
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
@@ -111,5 +111,5 @@ function Indicator(props) {
|
|
|
111
111
|
Indicator.displayName = "Indicator";
|
|
112
112
|
|
|
113
113
|
export { Indicator };
|
|
114
|
-
//# sourceMappingURL=chunk-
|
|
115
|
-
//# sourceMappingURL=chunk-
|
|
114
|
+
//# sourceMappingURL=chunk-PXEJ5RKO.js.map
|
|
115
|
+
//# sourceMappingURL=chunk-PXEJ5RKO.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useControlScrollFade } from './chunk-7EUAMHMU.js';
|
|
2
|
-
import { FieldShell } from './chunk-
|
|
3
|
-
import { useFieldValidity, FieldFrame } from './chunk-
|
|
4
|
-
import { PlusIcon, ChevronUpIcon, ChevronDownIcon, MinusIcon } from './chunk-
|
|
5
|
-
import { warnPositiveNumber } from './chunk-
|
|
2
|
+
import { FieldShell } from './chunk-JUWDRRD6.js';
|
|
3
|
+
import { useFieldValidity, FieldFrame } from './chunk-QKDEQFOQ.js';
|
|
4
|
+
import { PlusIcon, ChevronUpIcon, ChevronDownIcon, MinusIcon } from './chunk-BLIZ3CL3.js';
|
|
5
|
+
import { warnPositiveNumber } from './chunk-QDYE5LVT.js';
|
|
6
6
|
import { cn } from './chunk-ZSNJ6UA3.js';
|
|
7
7
|
import { NumberField } from '@base-ui/react/number-field';
|
|
8
8
|
import 'react';
|
|
@@ -129,5 +129,5 @@ function NumberInput(props) {
|
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
export { NumberInput };
|
|
132
|
-
//# sourceMappingURL=chunk-
|
|
133
|
-
//# sourceMappingURL=chunk-
|
|
132
|
+
//# sourceMappingURL=chunk-QBHQOX23.js.map
|
|
133
|
+
//# sourceMappingURL=chunk-QBHQOX23.js.map
|
|
@@ -11,6 +11,16 @@ function nearestScrollport(el) {
|
|
|
11
11
|
function scrollportScrolls(port) {
|
|
12
12
|
return port === null || SCROLLS.has(port.overflowY);
|
|
13
13
|
}
|
|
14
|
+
function nearestScrollableOn(el, axis) {
|
|
15
|
+
if (el == null || typeof getComputedStyle !== "function") return null;
|
|
16
|
+
for (let node = el.parentElement; node; node = node.parentElement) {
|
|
17
|
+
const style = getComputedStyle(node);
|
|
18
|
+
if (!SCROLLS.has(axis === "y" ? style.overflowY : style.overflowX)) continue;
|
|
19
|
+
const overflow = axis === "y" ? node.scrollHeight - node.clientHeight : node.scrollWidth - node.clientWidth;
|
|
20
|
+
if (overflow > 1) return node;
|
|
21
|
+
}
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
14
24
|
|
|
15
25
|
// src/lib/dev-warn.ts
|
|
16
26
|
var isDev = () => {
|
|
@@ -67,6 +77,6 @@ function warnStickyNoScrollport(component, prop, el) {
|
|
|
67
77
|
);
|
|
68
78
|
}
|
|
69
79
|
|
|
70
|
-
export { devWarn, nearestScrollport, scrollportScrolls, warnExclusive, warnNeedsName, warnNonNegativeInt, warnPositiveInt, warnPositiveNumber, warnRange, warnStickyNoScrollport };
|
|
71
|
-
//# sourceMappingURL=chunk-
|
|
72
|
-
//# sourceMappingURL=chunk-
|
|
80
|
+
export { devWarn, nearestScrollableOn, nearestScrollport, scrollportScrolls, warnExclusive, warnNeedsName, warnNonNegativeInt, warnPositiveInt, warnPositiveNumber, warnRange, warnStickyNoScrollport };
|
|
81
|
+
//# sourceMappingURL=chunk-QDYE5LVT.js.map
|
|
82
|
+
//# sourceMappingURL=chunk-QDYE5LVT.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { TooltipExport } from './chunk-4R7WDDCW.js';
|
|
2
|
+
import { CircleHelpIcon } from './chunk-BLIZ3CL3.js';
|
|
3
3
|
import { cn } from './chunk-ZSNJ6UA3.js';
|
|
4
4
|
import { Field } from '@base-ui/react/field';
|
|
5
5
|
import 'react';
|
|
@@ -147,5 +147,5 @@ function FieldGroupFrame(props) {
|
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
export { BAR_SIZE, CONTROL_ICON, CONTROL_RADIUS, CONTROL_TEXT, FIELD_LABEL_CLASS, FieldFrame, FieldGroupFrame, LISTBOX_PX_SM, SHELL_SIZE, SLOT_ICON, useFieldValidity };
|
|
150
|
-
//# sourceMappingURL=chunk-
|
|
151
|
-
//# sourceMappingURL=chunk-
|
|
150
|
+
//# sourceMappingURL=chunk-QKDEQFOQ.js.map
|
|
151
|
+
//# sourceMappingURL=chunk-QKDEQFOQ.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OptionRow } from './chunk-GTHJWR3Q.js';
|
|
2
|
-
import { useFieldValidity, FieldGroupFrame } from './chunk-
|
|
3
|
-
import { MinusIcon, CheckIcon } from './chunk-
|
|
4
|
-
import { devWarn, warnNeedsName } from './chunk-
|
|
2
|
+
import { useFieldValidity, FieldGroupFrame } from './chunk-QKDEQFOQ.js';
|
|
3
|
+
import { MinusIcon, CheckIcon } from './chunk-BLIZ3CL3.js';
|
|
4
|
+
import { devWarn, warnNeedsName } from './chunk-QDYE5LVT.js';
|
|
5
5
|
import { cn } from './chunk-ZSNJ6UA3.js';
|
|
6
6
|
import { CheckboxGroup as CheckboxGroup$1 } from '@base-ui/react/checkbox-group';
|
|
7
7
|
import * as React3 from 'react';
|
|
@@ -188,5 +188,5 @@ function CheckboxGroup(props) {
|
|
|
188
188
|
CheckboxGroup.displayName = "CheckboxGroup";
|
|
189
189
|
|
|
190
190
|
export { Checkbox, CheckboxGroup };
|
|
191
|
-
//# sourceMappingURL=chunk-
|
|
192
|
-
//# sourceMappingURL=chunk-
|
|
191
|
+
//# sourceMappingURL=chunk-RIXEUAPY.js.map
|
|
192
|
+
//# sourceMappingURL=chunk-RIXEUAPY.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useControllableOpen, DialogSurface } from './chunk-
|
|
1
|
+
import { useControllableOpen, DialogSurface } from './chunk-VEOYCAJP.js';
|
|
2
2
|
import { AlertDialog as AlertDialog$1 } from '@base-ui/react/alert-dialog';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
@@ -11,7 +11,7 @@ function AlertDialog(props) {
|
|
|
11
11
|
onOpenChange,
|
|
12
12
|
size = "md",
|
|
13
13
|
showClose = false,
|
|
14
|
-
dividers =
|
|
14
|
+
dividers = "line",
|
|
15
15
|
keepMounted = false,
|
|
16
16
|
title,
|
|
17
17
|
description,
|
|
@@ -53,5 +53,5 @@ function AlertDialog(props) {
|
|
|
53
53
|
AlertDialog.displayName = "AlertDialog";
|
|
54
54
|
|
|
55
55
|
export { AlertDialog };
|
|
56
|
-
//# sourceMappingURL=chunk-
|
|
57
|
-
//# sourceMappingURL=chunk-
|
|
56
|
+
//# sourceMappingURL=chunk-RNXRZGXN.js.map
|
|
57
|
+
//# sourceMappingURL=chunk-RNXRZGXN.js.map
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { DRAG_GHOST, DROP_LINE, DROP_LINE_Y, dragGhostProps, ghostPosition } from './chunk-5ZPUAGOP.js';
|
|
2
|
+
import { useAutoScroll, useDrag } from './chunk-P6CON2R2.js';
|
|
3
|
+
import { Skeleton } from './chunk-7HV6EIGZ.js';
|
|
3
4
|
import { useDebounced } from './chunk-F6NLE6XJ.js';
|
|
4
5
|
import { Slot } from './chunk-52IFGFTL.js';
|
|
5
6
|
import { useIsomorphicLayoutEffect } from './chunk-EDSK6FEH.js';
|
|
6
|
-
import { LoaderCircleIcon, CircleAlertIcon, ChevronRightIcon, GripVerticalIcon, CheckIcon, MinusIcon } from './chunk-
|
|
7
|
-
import { devWarn, warnNonNegativeInt, warnNeedsName } from './chunk-
|
|
7
|
+
import { LoaderCircleIcon, CircleAlertIcon, ChevronRightIcon, GripVerticalIcon, CheckIcon, MinusIcon } from './chunk-BLIZ3CL3.js';
|
|
8
|
+
import { devWarn, warnNonNegativeInt, warnNeedsName } from './chunk-QDYE5LVT.js';
|
|
8
9
|
import { cn } from './chunk-ZSNJ6UA3.js';
|
|
9
10
|
import * as React from 'react';
|
|
10
11
|
import { mergeProps } from '@base-ui/react/merge-props';
|
|
@@ -849,8 +850,9 @@ var EMPTY_ROW = {
|
|
|
849
850
|
lg: `relative px-2 py-1.5 text-sm text-fg-quaternary ${GAP_ROW}`
|
|
850
851
|
};
|
|
851
852
|
var DRAG_SOURCE = "opacity-50";
|
|
852
|
-
var DRAG_PREVIEW = "
|
|
853
|
-
var
|
|
853
|
+
var DRAG_PREVIEW = cn(DRAG_GHOST, "max-w-64 truncate px-2 py-1 text-sm text-primary");
|
|
854
|
+
var PREVIEW_MAX_PX = 256;
|
|
855
|
+
var DROP_RULE = cn(DROP_LINE, DROP_LINE_Y, "absolute right-0");
|
|
854
856
|
var DROP_INTO = "ring-2 ring-focus-ring ring-inset";
|
|
855
857
|
var GRIP = "shrink-0 cursor-grab text-quaternary active:cursor-grabbing";
|
|
856
858
|
var ROW_GRAB = "cursor-grab active:cursor-grabbing";
|
|
@@ -928,8 +930,8 @@ function TreeRow({
|
|
|
928
930
|
children: [
|
|
929
931
|
guide === "line" ? /* @__PURE__ */ jsx(GuideRules, { size, depth, lastChain }) : null,
|
|
930
932
|
guide === "line" && groupVisible ? /* @__PURE__ */ jsx("span", { "aria-hidden": "true", "data-tree-stub": "", className: GUIDE_STUB, style: { left: AXIS[size] + depth * TREE_INDENT, top: STUB_TOP[size] } }) : null,
|
|
931
|
-
dropPosition === "before" ? /* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: cn(
|
|
932
|
-
dropPosition === "after" ? /* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: cn(
|
|
933
|
+
dropPosition === "before" ? /* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: cn(DROP_RULE, GAP_LINE.before), style: { left: contentLeft(size, depth) } }) : null,
|
|
934
|
+
dropPosition === "after" ? /* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: cn(DROP_RULE, GAP_LINE.after), style: { left: contentLeft(size, depth) } }) : null,
|
|
933
935
|
branch ? /* @__PURE__ */ jsx(
|
|
934
936
|
"span",
|
|
935
937
|
{
|
|
@@ -1008,8 +1010,8 @@ function TreeItem({
|
|
|
1008
1010
|
`aria-hidden` — `aria-busy` on the treeitem is what announces the state. */
|
|
1009
1011
|
/* @__PURE__ */ jsxs("li", { role: "none", className: cn("flex flex-col gap-1.5", EMPTY_ROW[size]), style: groupRowStyle, children: [
|
|
1010
1012
|
groupRules,
|
|
1011
|
-
/* @__PURE__ */ jsx(
|
|
1012
|
-
/* @__PURE__ */ jsx(
|
|
1013
|
+
/* @__PURE__ */ jsx(Skeleton, { className: cn(SKELETON_ROW[size], "w-3/5") }),
|
|
1014
|
+
/* @__PURE__ */ jsx(Skeleton, { className: cn(SKELETON_ROW[size], "w-4/5") })
|
|
1013
1015
|
] })
|
|
1014
1016
|
) : (
|
|
1015
1017
|
/* The ONE genuinely focusable control inside a tree, and it needs the care: a `<button>`
|
|
@@ -1326,11 +1328,11 @@ function Tree(props) {
|
|
|
1326
1328
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1327
1329
|
element,
|
|
1328
1330
|
/* @__PURE__ */ jsx("div", { role: "status", className: "sr-only", children: announcement }),
|
|
1329
|
-
drag !== null ? /* @__PURE__ */ jsx("div", {
|
|
1331
|
+
drag !== null ? /* @__PURE__ */ jsx("div", { ...dragGhostProps, className: DRAG_PREVIEW, style: ghostPosition(drag.point, PREVIEW_MAX_PX), children: drag.label }) : null
|
|
1330
1332
|
] });
|
|
1331
1333
|
}
|
|
1332
1334
|
Tree.displayName = "Tree";
|
|
1333
1335
|
|
|
1334
1336
|
export { Tree, ancestorIds, applyTreeMove, attachChildren, isBranch, isDescendant, useTree, walkTree };
|
|
1335
|
-
//# sourceMappingURL=chunk-
|
|
1336
|
-
//# sourceMappingURL=chunk-
|
|
1337
|
+
//# sourceMappingURL=chunk-T2WAD4QP.js.map
|
|
1338
|
+
//# sourceMappingURL=chunk-T2WAD4QP.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { devWarn } from './chunk-
|
|
1
|
+
import { devWarn } from './chunk-QDYE5LVT.js';
|
|
2
2
|
import { cn } from './chunk-ZSNJ6UA3.js';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
|
|
@@ -48,5 +48,5 @@ function warnSeamlessFieldChrome(component, chrome) {
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
export { SEAMLESS_BOX, SEAMLESS_CHIP, SEAMLESS_CHIP_NUM, SEAMLESS_CHIP_PX, SEAMLESS_COLOR, SEAMLESS_CONTROL, SEAMLESS_DOT, SEAMLESS_FILL_COUPLED_FG, SEAMLESS_INHERIT_FG, SeamlessProvider, addonSlotClasses, useSeamlessSlot, warnSeamlessFieldChrome };
|
|
51
|
-
//# sourceMappingURL=chunk-
|
|
52
|
-
//# sourceMappingURL=chunk-
|
|
51
|
+
//# sourceMappingURL=chunk-TBN644IN.js.map
|
|
52
|
+
//# sourceMappingURL=chunk-TBN644IN.js.map
|