@rinzai/zen 0.6.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -4
- package/dist/chart/donut.d.ts.map +1 -1
- package/dist/chart/donut.js +51 -40
- package/dist/chart/index.d.ts.map +1 -1
- package/dist/chart/index.js +83 -81
- package/dist/combobox/index.d.ts.map +1 -1
- package/dist/combobox/index.js +93 -91
- package/dist/meter/index.d.ts +4 -3
- package/dist/meter/index.d.ts.map +1 -1
- package/dist/meter/index.js +9 -8
- package/dist/money-input/index.d.ts +7 -8
- package/dist/money-input/index.d.ts.map +1 -1
- package/dist/money-input/index.js +37 -19
- package/dist/popover/index.d.ts.map +1 -1
- package/dist/popover/index.js +3 -2
- package/dist/theme.css +19 -18
- package/dist/tooltip/index.d.ts.map +1 -1
- package/dist/tooltip/index.js +45 -43
- package/dist/utils/useAnchoredPopup.d.ts +23 -7
- package/dist/utils/useAnchoredPopup.d.ts.map +1 -1
- package/dist/utils/useAnchoredPopup.js +86 -30
- package/dist/zen.css +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -56,12 +56,12 @@ export default function App() {
|
|
|
56
56
|
|
|
57
57
|
## What's inside
|
|
58
58
|
|
|
59
|
-
- **Surfaces:** Card, Stat, Dialog, ConfirmDialog, Popover, Toast, Backdrop (aurora, contours or dots, and a pointer light)
|
|
60
|
-
- **Inputs:** Button, Input, TextArea, InputGroup, MoneyInput, Select, Combobox, MonthPicker, Segmented, Slider, Toggle, Field
|
|
61
|
-
- **Data:** composable Table with sticky edges and sorting, tree rows, editable cells, virtual rows, Meter, ProgressRing, AnimatedNumber
|
|
59
|
+
- **Surfaces:** Card, Inset, Stat, Dialog (and sheets from an edge), ConfirmDialog, Popover, Tooltip, Toast (a stacked deck), Disclosure, Backdrop (aurora, contours or dots, and a pointer light)
|
|
60
|
+
- **Inputs:** Button, Input, TextArea, InputGroup, MoneyInput (with currency conversion), Select, Combobox, Calendar, DatePicker, DateRangePicker, MonthPicker, Checkbox, RadioGroup, RadioCards, Segmented, Slider, Toggle, Chip, Field
|
|
61
|
+
- **Data:** Chart (areas, lines, bars) and DonutChart in plain SVG, composable Table with sticky edges and sorting, tree rows, editable cells, virtual rows, Meter, ProgressRing, AnimatedNumber, Skeleton, Spinner
|
|
62
62
|
- **Navigation:** Header, Pills, Tabs, TabBar, SideNav, TableOfContents, Menu
|
|
63
63
|
- **Theming:** dark and light, OKLCH tokens, and a theme generator (presets or any hue) that keeps contrast readable
|
|
64
|
-
- **Hooks and utilities:** `useAnchoredPopup`, `useVirtualList`, `useTree`, `useSort`, money
|
|
64
|
+
- **Hooks and utilities:** `useAnchoredPopup`, `useVirtualList`, `useTree`, `useSort`, money, currency, month and date helpers, `cx` (Tailwind-aware class merging), `cva`
|
|
65
65
|
|
|
66
66
|
Every component takes `className`, and a class you pass always overrides the component's default.
|
|
67
67
|
|
|
@@ -84,6 +84,14 @@ import { applyPreset, applyTheme, DEFAULT_THEME } from '@rinzai/zen';
|
|
|
84
84
|
applyTheme(applyPreset(DEFAULT_THEME, 'ocean'));
|
|
85
85
|
```
|
|
86
86
|
|
|
87
|
+
## Browser support
|
|
88
|
+
|
|
89
|
+
Chrome and Edge 114+, Safari 17+ and Firefox 128+: the versions with the native Popover API that popups, menus and toasts are built on, and with what Tailwind v4 needs.
|
|
90
|
+
|
|
91
|
+
- **Popups** are placed with CSS anchor positioning where the browser has it (Chrome 129+, Safari 26+, recent Firefox). Elsewhere Zen places them itself, the same way.
|
|
92
|
+
- **Glass** is blurred live where there's a GPU and a mouse. On touch screens, without hardware acceleration, and with the OS's "reduce transparency", surfaces are solid instead.
|
|
93
|
+
- **Motion** such as entry animations is left out where a browser lacks it, and for anyone who prefers reduced motion.
|
|
94
|
+
|
|
87
95
|
## Development
|
|
88
96
|
|
|
89
97
|
```sh
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"donut.d.ts","sourceRoot":"","sources":["../../packages/chart/donut.tsx"],"names":[],"mappings":"AACA,OAAO,EAAiB,SAAS,EAAY,MAAM,OAAO,CAAC;AAI3D;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EAC/B,KAAK,EACL,KAAK,EACL,IAAU,EACV,SAAgB,EAChB,WAAoB,EACpB,QAAQ,EACR,SAAS,GACZ,EAAE,eAAe,+
|
|
1
|
+
{"version":3,"file":"donut.d.ts","sourceRoot":"","sources":["../../packages/chart/donut.tsx"],"names":[],"mappings":"AACA,OAAO,EAAiB,SAAS,EAAY,MAAM,OAAO,CAAC;AAI3D;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EAC/B,KAAK,EACL,KAAK,EACL,IAAU,EACV,SAAgB,EAChB,WAAoB,EACpB,QAAQ,EACR,SAAS,GACZ,EAAE,eAAe,+BA+FjB;AAmDD,MAAM,WAAW,eAAe;IAC5B,0DAA0D;IAC1D,KAAK,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACvE,0CAA0C;IAC1C,KAAK,EAAE,MAAM,CAAC;IACd,sBAAsB;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,+CAA+C;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oDAAoD;IACpD,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACxC,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB"}
|
package/dist/chart/donut.js
CHANGED
|
@@ -4,69 +4,70 @@ import { ChartTooltipCard as t } from "./tooltip.js";
|
|
|
4
4
|
import { useState as n } from "react";
|
|
5
5
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
6
6
|
//#region packages/chart/donut.tsx
|
|
7
|
-
function a({ items: a, label:
|
|
8
|
-
let [
|
|
9
|
-
let n =
|
|
10
|
-
start:
|
|
11
|
-
end:
|
|
7
|
+
function a({ items: a, label: s, size: u = 200, thickness: d = .32, formatValue: f = String, children: p, className: m }) {
|
|
8
|
+
let [h, g] = n(null), _ = a.reduce((e, t) => e + Math.max(0, t.value), 0), v = u / 2, y = v * (1 - d), b = Math.min(4, (v - y) / 4), x = a.filter((e) => e.value > 0).length > 1 ? 1.5 : 0, S = -Math.PI / 2, C = a.map((e, t) => {
|
|
9
|
+
let n = _ ? Math.max(0, e.value) / _ * Math.PI * 2 : 0, r = {
|
|
10
|
+
start: S,
|
|
11
|
+
end: S + n,
|
|
12
12
|
color: e.color ?? `var(--chart-${Math.min(t + 1, 8)})`
|
|
13
13
|
};
|
|
14
|
-
return
|
|
15
|
-
}),
|
|
14
|
+
return S += n, r;
|
|
15
|
+
}), w = h === null ? null : a[h];
|
|
16
16
|
return /* @__PURE__ */ i("div", {
|
|
17
|
-
className: e("zen__donut relative shrink-0",
|
|
17
|
+
className: e("zen__donut relative shrink-0", m),
|
|
18
18
|
style: {
|
|
19
|
-
width:
|
|
20
|
-
height:
|
|
19
|
+
width: u,
|
|
20
|
+
height: u
|
|
21
21
|
},
|
|
22
22
|
children: [
|
|
23
23
|
/* @__PURE__ */ r("svg", {
|
|
24
|
-
width:
|
|
25
|
-
height:
|
|
26
|
-
viewBox: `${-
|
|
24
|
+
width: u,
|
|
25
|
+
height: u,
|
|
26
|
+
viewBox: `${-v} ${-v} ${u} ${u}`,
|
|
27
27
|
role: "list",
|
|
28
|
-
"aria-label":
|
|
28
|
+
"aria-label": s,
|
|
29
29
|
className: "overflow-visible",
|
|
30
|
-
children:
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
children: C.map((e, t) => {
|
|
31
|
+
let n = e.end - e.start >= Math.PI * 2 - 1e-6, i = n ? l(y, v, e.start, e.end) : c(y + b, v - b, e.start, e.end, x + b);
|
|
32
|
+
if (!i) return null;
|
|
33
|
+
let o = (e.start + e.end) / 2, s = h === t && !n ? 4 : 0, u = _ ? Math.round(a[t].value / _ * 100) : 0;
|
|
33
34
|
return /* @__PURE__ */ r("path", {
|
|
34
35
|
role: "listitem",
|
|
35
36
|
tabIndex: 0,
|
|
36
|
-
"aria-label": `${a[t].label}: ${
|
|
37
|
-
d:
|
|
38
|
-
strokeWidth:
|
|
37
|
+
"aria-label": `${a[t].label}: ${f(a[t].value)} (${u}%)`,
|
|
38
|
+
d: i,
|
|
39
|
+
strokeWidth: n ? 0 : b * 2,
|
|
39
40
|
strokeLinejoin: "round",
|
|
40
|
-
onPointerEnter: () =>
|
|
41
|
-
onPointerLeave: () =>
|
|
42
|
-
onFocus: () =>
|
|
43
|
-
onBlur: () =>
|
|
41
|
+
onPointerEnter: () => g(t),
|
|
42
|
+
onPointerLeave: () => g(null),
|
|
43
|
+
onFocus: () => g(t),
|
|
44
|
+
onBlur: () => g(null),
|
|
44
45
|
className: "zen__chart-fade focus-visible:outline-hidden",
|
|
45
46
|
style: {
|
|
46
47
|
fill: e.color,
|
|
47
48
|
stroke: e.color,
|
|
48
|
-
opacity:
|
|
49
|
-
transform: `translate(${Math.cos(
|
|
49
|
+
opacity: h !== null && h !== t ? .55 : 1,
|
|
50
|
+
transform: `translate(${Math.cos(o) * s}px, ${Math.sin(o) * s}px)`,
|
|
50
51
|
transition: "transform 200ms ease-out, opacity 200ms",
|
|
51
52
|
animationDelay: `${t * 60}ms`,
|
|
52
|
-
filter:
|
|
53
|
+
filter: h === t ? `drop-shadow(0 0 10px ${e.color})` : void 0
|
|
53
54
|
}
|
|
54
55
|
}, a[t].key);
|
|
55
56
|
})
|
|
56
57
|
}),
|
|
57
|
-
|
|
58
|
-
className: "pointer-events-none absolute inset-0
|
|
59
|
-
children:
|
|
58
|
+
p && /* @__PURE__ */ r("div", {
|
|
59
|
+
className: "pointer-events-none absolute inset-0 flex flex-col items-center justify-center text-center",
|
|
60
|
+
children: p
|
|
60
61
|
}),
|
|
61
|
-
|
|
62
|
+
w && h !== null && /* @__PURE__ */ r("div", {
|
|
62
63
|
className: "pointer-events-none absolute z-10 -translate-y-1/2",
|
|
63
|
-
style: o((
|
|
64
|
+
style: o((C[h].start + C[h].end) / 2, v),
|
|
64
65
|
children: /* @__PURE__ */ r(t, {
|
|
65
|
-
title:
|
|
66
|
+
title: w.label,
|
|
66
67
|
rows: [{
|
|
67
|
-
label: `${
|
|
68
|
-
value:
|
|
69
|
-
color:
|
|
68
|
+
label: `${_ ? Math.round(w.value / _ * 100) : 0}%`,
|
|
69
|
+
value: f(w.value),
|
|
70
|
+
color: C[h].color
|
|
70
71
|
}]
|
|
71
72
|
})
|
|
72
73
|
})
|
|
@@ -83,14 +84,24 @@ function o(e, t) {
|
|
|
83
84
|
top: r
|
|
84
85
|
};
|
|
85
86
|
}
|
|
86
|
-
function s(e, t
|
|
87
|
+
function s(e, t) {
|
|
88
|
+
let n = (e) => Math.round(e * 1e3) / 1e3;
|
|
89
|
+
return `${n(e * Math.cos(t))},${n(e * Math.sin(t))}`;
|
|
90
|
+
}
|
|
91
|
+
function c(e, t, n, r, i) {
|
|
92
|
+
let a = (e) => Math.asin(Math.min(1, i / e)), [o, c] = [n + a(t), r - a(t)];
|
|
93
|
+
if (c <= o) return "";
|
|
94
|
+
let [l, u] = [n + a(e), r - a(e)];
|
|
95
|
+
return u < l && (l = u = (n + r) / 2), `${`M${s(t, o)}A${t},${t} 0 ${+(c - o > Math.PI)} 1 ${s(t, c)}`}${u > l ? `L${s(e, u)}A${e},${e} 0 ${+(u - l > Math.PI)} 0 ${s(e, l)}` : `L${s(e, l)}`}Z`;
|
|
96
|
+
}
|
|
97
|
+
function l(e, t, n, r) {
|
|
87
98
|
if (r <= n) return "";
|
|
88
|
-
let i = +(r - n > Math.PI)
|
|
99
|
+
let i = +(r - n > Math.PI);
|
|
89
100
|
if (r - n >= Math.PI * 2 - 1e-6) {
|
|
90
101
|
let r = n + Math.PI;
|
|
91
|
-
return `M${
|
|
102
|
+
return `M${s(t, n)}A${t},${t} 0 1 1 ${s(t, r)}A${t},${t} 0 1 1 ${s(t, n)}M${s(e, n)}A${e},${e} 0 1 0 ${s(e, r)}A${e},${e} 0 1 0 ${s(e, n)}Z`;
|
|
92
103
|
}
|
|
93
|
-
return `M${
|
|
104
|
+
return `M${s(t, n)}A${t},${t} 0 ${i} 1 ${s(t, r)}L${s(e, r)}A${e},${e} 0 ${i} 0 ${s(e, n)}Z`;
|
|
94
105
|
}
|
|
95
106
|
//#endregion
|
|
96
107
|
export { a as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../packages/chart/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAQH,SAAS,EAMZ,MAAM,OAAO,CAAC;AAEf,KAAK,GAAG,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAQnC,oDAAoD;AACpD,eAAO,MAAM,SAAS,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAiB,CAAC;AAErE,uGAAuG;AACvG,eAAO,MAAM,SAAS,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAiB,CAAC;AAErE,0EAA0E;AAC1E,eAAO,MAAM,QAAQ,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAiB,CAAC;AAEnE,gIAAgI;AAChI,eAAO,MAAM,cAAc,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAiB,CAAC;AAkB/E;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,CAAC,SAAS,GAAG,EAAE,CAAC,SAAS,MAAM,CAAC,GAAG,MAAM,GAAG,MAAM,CAAC,GAAG,MAAM,EAAE,EACxF,IAAI,EACJ,CAAC,EACD,KAAK,EACL,OAAO,EACP,MAAY,EACZ,OAAgB,EAChB,OAAiB,EACjB,cAAc,EACd,aAAa,EACb,MAAM,EACN,SAAS,EAC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AK,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,MAAM,CAAC;IACzC,yEAAyE;IACzE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACpC,mEAAmE;IACnE,aAAa,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,SAAS,CAAC;IACrD,8DAA8D;IAC9D,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,+DAA+D;IAC/D,QAAQ,EAAE,SAAS,CAAC;CACvB;AAED,OAAO,EAAE,gBAAgB,EAAE,KAAK,qBAAqB,EAAE,MAAM,WAAW,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,SAAS,CAAC"}
|
package/dist/chart/index.js
CHANGED
|
@@ -14,9 +14,9 @@ var m = () => null, h = () => null, g = () => null, _ = () => null, ee = /* @__P
|
|
|
14
14
|
right: 8,
|
|
15
15
|
bottom: 26
|
|
16
16
|
}, y = 11;
|
|
17
|
-
function b({ data: n, x: r, label: o, summary: m, height: h = 240, formatX: g = String, formatY: b = D, formatTooltipX: E, renderTooltip:
|
|
18
|
-
let
|
|
19
|
-
let e = i.toArray(
|
|
17
|
+
function b({ data: n, x: r, label: o, summary: m, height: h = 240, formatX: g = String, formatY: b = D, formatTooltipX: E, renderTooltip: k, legend: A, className: j, children: M }) {
|
|
18
|
+
let N = s().replace(/[^\w-]/g, ""), P = l(null), F = w(P), [I, L] = u(null), [R, z] = u(null), B = c(() => {
|
|
19
|
+
let e = i.toArray(M).filter(a), t = 0, o = [], s = [];
|
|
20
20
|
for (let n of e) {
|
|
21
21
|
n.type === _ && s.push(n.props);
|
|
22
22
|
let e = ee.get(n.type);
|
|
@@ -31,24 +31,24 @@ function b({ data: n, x: r, label: o, summary: m, height: h = 240, formatX: g =
|
|
|
31
31
|
let c = n, l = o.flatMap((e) => c.map((t) => x(t, e.dataKey))).filter((e) => e !== null);
|
|
32
32
|
for (let e of s) e.y !== void 0 && l.push(e.y);
|
|
33
33
|
o.some((e) => e.kind !== "line") && l.push(0);
|
|
34
|
-
let u = T(l.length ? Math.min(...l) : 0, l.length ? Math.max(...l) : 1), [m, S] = [u[0], u[u.length - 1]], C = u.map((e) => b(e)), w = Math.ceil(Math.max(...C.map((e) => e.length)) * y * .62) + 10, E = Math.max(0,
|
|
34
|
+
let u = T(l.length ? Math.min(...l) : 0, l.length ? Math.max(...l) : 1), [m, S] = [u[0], u[u.length - 1]], C = u.map((e) => b(e)), w = Math.ceil(Math.max(...C.map((e) => e.length)) * y * .62) + 10, E = Math.max(0, F - w - v.right), D = Math.max(0, h - v.top - v.bottom), O = c.length, k = o.filter((e) => e.kind === "bar"), A = k.length > 0 || O === 1, j = O ? A ? E / O : E / (O - 1) : 0, P = (e) => w + (A ? (e + .5) * j : e * j), I = (e) => v.top + (S === m ? D / 2 : (S - e) / (S - m) * D), L = I(Math.min(Math.max(0, m), S)), R = k.length ? Math.max(2, Math.min(24, j * .72 / k.length - 2)) : 0, z = (e, t) => P(e) - (k.length * (R + 2) - 2) / 2 + t * (R + 2), B = c.map((e) => g(e[r])), V = Math.max(1, ...B.map((e) => e.length)) * y * .6 + 12, H = j ? Math.max(1, Math.ceil(V / j)) : 1;
|
|
35
35
|
return {
|
|
36
36
|
series: o,
|
|
37
37
|
rows: c,
|
|
38
|
-
n:
|
|
39
|
-
bars:
|
|
40
|
-
banded:
|
|
41
|
-
step:
|
|
38
|
+
n: O,
|
|
39
|
+
bars: k,
|
|
40
|
+
banded: A,
|
|
41
|
+
step: j,
|
|
42
42
|
left: w,
|
|
43
43
|
plotH: D,
|
|
44
|
-
cx0:
|
|
45
|
-
cy:
|
|
46
|
-
base:
|
|
47
|
-
barW:
|
|
48
|
-
barX:
|
|
44
|
+
cx0: P,
|
|
45
|
+
cy: I,
|
|
46
|
+
base: L,
|
|
47
|
+
barW: R,
|
|
48
|
+
barX: z,
|
|
49
49
|
back: /* @__PURE__ */ p(d, { children: [
|
|
50
50
|
/* @__PURE__ */ f("defs", { children: o.map((e, t) => e.kind === "area" ? /* @__PURE__ */ p("linearGradient", {
|
|
51
|
-
id: `${
|
|
51
|
+
id: `${N}-fill-${t}`,
|
|
52
52
|
x1: "0",
|
|
53
53
|
y1: "0",
|
|
54
54
|
x2: "0",
|
|
@@ -66,23 +66,23 @@ function b({ data: n, x: r, label: o, summary: m, height: h = 240, formatX: g =
|
|
|
66
66
|
u.map((e, t) => /* @__PURE__ */ p("g", { children: [/* @__PURE__ */ f("line", {
|
|
67
67
|
x1: w,
|
|
68
68
|
x2: w + E,
|
|
69
|
-
y1:
|
|
70
|
-
y2:
|
|
69
|
+
y1: I(e),
|
|
70
|
+
y2: I(e),
|
|
71
71
|
className: "stroke-tint/[0.07]",
|
|
72
72
|
shapeRendering: "crispEdges"
|
|
73
73
|
}), /* @__PURE__ */ f("text", {
|
|
74
74
|
x: w - 8,
|
|
75
|
-
y:
|
|
75
|
+
y: I(e),
|
|
76
76
|
dy: "0.32em",
|
|
77
77
|
textAnchor: "end",
|
|
78
78
|
className: "fill-muted-foreground tabular-nums",
|
|
79
79
|
style: { fontSize: y },
|
|
80
80
|
children: C[t]
|
|
81
81
|
})] }, e)),
|
|
82
|
-
|
|
83
|
-
x:
|
|
82
|
+
B.map((e, t) => t % H === 0 ? /* @__PURE__ */ f("text", {
|
|
83
|
+
x: P(t),
|
|
84
84
|
y: h - 8,
|
|
85
|
-
textAnchor: !
|
|
85
|
+
textAnchor: !k.length && O > 1 && t === 0 ? "start" : !k.length && t === O - 1 ? "end" : "middle",
|
|
86
86
|
className: "fill-muted-foreground",
|
|
87
87
|
style: { fontSize: y },
|
|
88
88
|
children: e
|
|
@@ -90,12 +90,12 @@ function b({ data: n, x: r, label: o, summary: m, height: h = 240, formatX: g =
|
|
|
90
90
|
] }),
|
|
91
91
|
front: /* @__PURE__ */ p(d, { children: [o.map((e, t) => e.kind === "bar" ? null : te(c.map((t, n) => {
|
|
92
92
|
let r = x(t, e.dataKey);
|
|
93
|
-
return r === null ? null : [
|
|
93
|
+
return r === null ? null : [P(n), I(r)];
|
|
94
94
|
})).map((n, r) => {
|
|
95
|
-
let i = (e.curve === "linear" ?
|
|
95
|
+
let i = (e.curve === "linear" ? ne : re)(n);
|
|
96
96
|
return /* @__PURE__ */ p("g", { children: [e.kind === "area" && /* @__PURE__ */ f("path", {
|
|
97
|
-
d: `${i}L${n[n.length - 1][0]},${
|
|
98
|
-
fill: `url(#${
|
|
97
|
+
d: `${i}L${n[n.length - 1][0]},${L}L${n[0][0]},${L}Z`,
|
|
98
|
+
fill: `url(#${N}-fill-${t})`,
|
|
99
99
|
className: "zen__chart-fade"
|
|
100
100
|
}), /* @__PURE__ */ f("path", {
|
|
101
101
|
d: i,
|
|
@@ -113,25 +113,27 @@ function b({ data: n, x: r, label: o, summary: m, height: h = 240, formatX: g =
|
|
|
113
113
|
if (e.y !== void 0) return /* @__PURE__ */ f("line", {
|
|
114
114
|
x1: w,
|
|
115
115
|
x2: w + E,
|
|
116
|
-
y1:
|
|
117
|
-
y2:
|
|
116
|
+
y1: I(e.y),
|
|
117
|
+
y2: I(e.y),
|
|
118
118
|
className: n,
|
|
119
119
|
strokeDasharray: e.dashed ? "3 4" : void 0,
|
|
120
120
|
shapeRendering: "crispEdges"
|
|
121
121
|
}, t);
|
|
122
122
|
let i = c.findIndex((t) => t[r] === e.x);
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
123
|
+
if (i < 0) return null;
|
|
124
|
+
let a = !!e.label && P(i) - 6 - e.label.length * y * .6 < w;
|
|
125
|
+
return /* @__PURE__ */ p("g", { children: [/* @__PURE__ */ f("line", {
|
|
126
|
+
x1: P(i),
|
|
127
|
+
x2: P(i),
|
|
126
128
|
y1: v.top,
|
|
127
129
|
y2: v.top + D,
|
|
128
130
|
className: n,
|
|
129
131
|
strokeDasharray: e.dashed === !1 ? void 0 : "3 4"
|
|
130
132
|
}), e.label && /* @__PURE__ */ f("text", {
|
|
131
|
-
x:
|
|
133
|
+
x: P(i) + (a ? 6 : -6),
|
|
132
134
|
y: v.top + 4,
|
|
133
135
|
dy: "0.7em",
|
|
134
|
-
textAnchor: "end",
|
|
136
|
+
textAnchor: a ? "start" : "end",
|
|
135
137
|
className: "fill-muted-foreground",
|
|
136
138
|
style: { fontSize: y },
|
|
137
139
|
children: e.label
|
|
@@ -139,36 +141,36 @@ function b({ data: n, x: r, label: o, summary: m, height: h = 240, formatX: g =
|
|
|
139
141
|
})] })
|
|
140
142
|
};
|
|
141
143
|
}, [
|
|
142
|
-
|
|
144
|
+
M,
|
|
143
145
|
n,
|
|
144
146
|
r,
|
|
145
|
-
|
|
147
|
+
F,
|
|
146
148
|
h,
|
|
147
149
|
g,
|
|
148
150
|
b,
|
|
149
|
-
|
|
150
|
-
]), { series:
|
|
151
|
+
N
|
|
152
|
+
]), { series: V, rows: H, n: U, bars: W, banded: ie, step: G, left: K, plotH: q, cx0: J, cy: Y, base: X, barW: Z, barX: ae } = B, oe = c(() => W.map((e, t) => H.map((n, r) => {
|
|
151
153
|
let i = x(n, e.dataKey);
|
|
152
154
|
if (i === null) return null;
|
|
153
|
-
let a =
|
|
155
|
+
let a = Y(i), o = Math.abs(X - a), s = i < 0;
|
|
154
156
|
return /* @__PURE__ */ f("path", {
|
|
155
|
-
d:
|
|
157
|
+
d: O(ae(r, t), s ? X : a, Z, o, s),
|
|
156
158
|
"data-negative": s || void 0,
|
|
157
159
|
className: "zen__chart-grow transition-opacity duration-200",
|
|
158
160
|
style: {
|
|
159
161
|
fill: e.color,
|
|
160
|
-
opacity: (e.dim?.(n, r) ? .35 : .9) * (
|
|
162
|
+
opacity: (e.dim?.(n, r) ? .35 : .9) * (I !== null && I !== r ? .7 : 1),
|
|
161
163
|
animationDelay: `${Math.min(r * 25, 400)}ms`
|
|
162
164
|
}
|
|
163
165
|
}, `${t}-${r}`);
|
|
164
166
|
})), [
|
|
165
|
-
|
|
166
|
-
|
|
167
|
+
W,
|
|
168
|
+
H,
|
|
169
|
+
Y,
|
|
167
170
|
X,
|
|
168
|
-
Z,
|
|
169
171
|
ae,
|
|
170
|
-
|
|
171
|
-
|
|
172
|
+
Z,
|
|
173
|
+
I
|
|
172
174
|
]), se = c(() => /* @__PURE__ */ p("table", {
|
|
173
175
|
className: "sr-only",
|
|
174
176
|
children: [
|
|
@@ -176,14 +178,14 @@ function b({ data: n, x: r, label: o, summary: m, height: h = 240, formatX: g =
|
|
|
176
178
|
/* @__PURE__ */ f("thead", { children: /* @__PURE__ */ p("tr", { children: [/* @__PURE__ */ f("th", {
|
|
177
179
|
scope: "col",
|
|
178
180
|
children: String(r)
|
|
179
|
-
}),
|
|
181
|
+
}), V.map((e) => /* @__PURE__ */ f("th", {
|
|
180
182
|
scope: "col",
|
|
181
183
|
children: e.label
|
|
182
184
|
}, e.dataKey))] }) }),
|
|
183
|
-
/* @__PURE__ */ f("tbody", { children:
|
|
185
|
+
/* @__PURE__ */ f("tbody", { children: H.map((e, t) => /* @__PURE__ */ p("tr", { children: [/* @__PURE__ */ f("th", {
|
|
184
186
|
scope: "row",
|
|
185
187
|
children: (E ?? g)(e[r])
|
|
186
|
-
}),
|
|
188
|
+
}), V.map((t) => {
|
|
187
189
|
let n = x(e, t.dataKey);
|
|
188
190
|
return /* @__PURE__ */ f("td", { children: n === null ? "" : b(n) }, t.dataKey);
|
|
189
191
|
})] }, t)) })
|
|
@@ -191,73 +193,73 @@ function b({ data: n, x: r, label: o, summary: m, height: h = 240, formatX: g =
|
|
|
191
193
|
}), [
|
|
192
194
|
o,
|
|
193
195
|
r,
|
|
196
|
+
V,
|
|
194
197
|
H,
|
|
195
|
-
U,
|
|
196
198
|
E,
|
|
197
199
|
g,
|
|
198
200
|
b
|
|
199
201
|
]), ce = (e) => {
|
|
200
|
-
if (!
|
|
201
|
-
let t =
|
|
202
|
-
return Math.min(
|
|
202
|
+
if (!U || !G) return null;
|
|
203
|
+
let t = ie ? Math.floor((e - K) / G) : Math.round((e - K) / G);
|
|
204
|
+
return Math.min(U - 1, Math.max(0, t));
|
|
203
205
|
}, le = (e) => {
|
|
204
206
|
let t = e.currentTarget.getBoundingClientRect(), n = e.clientX - t.left, r = Math.round(e.clientY - t.top);
|
|
205
|
-
|
|
207
|
+
L(ce(n)), z((e) => e?.y === r ? e : { y: r });
|
|
206
208
|
}, ue = (e) => {
|
|
207
|
-
if (!
|
|
209
|
+
if (!U) return;
|
|
208
210
|
let t = {
|
|
209
211
|
ArrowRight: 1,
|
|
210
212
|
ArrowLeft: -1
|
|
211
213
|
}[e.key];
|
|
212
|
-
if (e.key === "Escape") return
|
|
213
|
-
if (e.key === "Home" || e.key === "End") return e.preventDefault(),
|
|
214
|
-
t && (e.preventDefault(),
|
|
215
|
-
}, de =
|
|
214
|
+
if (e.key === "Escape") return L(null);
|
|
215
|
+
if (e.key === "Home" || e.key === "End") return e.preventDefault(), z(null), L(e.key === "Home" ? 0 : U - 1);
|
|
216
|
+
t && (e.preventDefault(), z(null), L((e) => e === null ? t > 0 ? 0 : U - 1 : Math.min(U - 1, Math.max(0, e + t))));
|
|
217
|
+
}, de = A ?? V.length > 1, Q = I === null ? null : H[I], $ = I === null ? 0 : J(I), fe = R?.y ?? v.top;
|
|
216
218
|
return /* @__PURE__ */ p("figure", {
|
|
217
219
|
"aria-label": o,
|
|
218
|
-
className: e("zen__chart m-0 flex flex-col gap-3",
|
|
220
|
+
className: e("zen__chart m-0 flex flex-col gap-3", j),
|
|
219
221
|
children: [
|
|
220
|
-
de && /* @__PURE__ */ f(S, { series:
|
|
222
|
+
de && /* @__PURE__ */ f(S, { series: V }),
|
|
221
223
|
/* @__PURE__ */ p("div", {
|
|
222
|
-
ref:
|
|
224
|
+
ref: P,
|
|
223
225
|
tabIndex: 0,
|
|
224
226
|
"aria-label": `${o}: use the arrow keys to read values`,
|
|
225
227
|
onPointerMove: le,
|
|
226
228
|
onPointerLeave: () => {
|
|
227
|
-
|
|
229
|
+
L(null), z(null);
|
|
228
230
|
},
|
|
229
231
|
onKeyDown: ue,
|
|
230
|
-
onBlur: () =>
|
|
232
|
+
onBlur: () => L(null),
|
|
231
233
|
className: "focus-visible:ring-ring/50 relative rounded-lg outline-hidden focus-visible:ring-2",
|
|
232
234
|
style: { height: h },
|
|
233
|
-
children: [
|
|
234
|
-
width:
|
|
235
|
+
children: [F > 0 && /* @__PURE__ */ p("svg", {
|
|
236
|
+
width: F,
|
|
235
237
|
height: h,
|
|
236
238
|
"aria-hidden": !0,
|
|
237
239
|
className: "block overflow-visible",
|
|
238
240
|
children: [
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
x:
|
|
241
|
+
B.back,
|
|
242
|
+
I !== null && (W.length ? /* @__PURE__ */ f("rect", {
|
|
243
|
+
x: J(I) - G / 2,
|
|
242
244
|
y: v.top,
|
|
243
|
-
width:
|
|
244
|
-
height:
|
|
245
|
+
width: G,
|
|
246
|
+
height: q,
|
|
245
247
|
className: "fill-tint/[0.04]"
|
|
246
248
|
}) : /* @__PURE__ */ f("line", {
|
|
247
249
|
x1: $,
|
|
248
250
|
x2: $,
|
|
249
251
|
y1: v.top,
|
|
250
|
-
y2: v.top +
|
|
252
|
+
y2: v.top + q,
|
|
251
253
|
className: "stroke-glow/40"
|
|
252
254
|
})),
|
|
253
255
|
oe,
|
|
254
|
-
|
|
255
|
-
|
|
256
|
+
B.front,
|
|
257
|
+
I !== null && V.map((e, t) => {
|
|
256
258
|
if (e.kind === "bar") return null;
|
|
257
|
-
let n = x(
|
|
259
|
+
let n = x(H[I], e.dataKey);
|
|
258
260
|
return n === null ? null : /* @__PURE__ */ f("circle", {
|
|
259
261
|
cx: $,
|
|
260
|
-
cy:
|
|
262
|
+
cy: Y(n),
|
|
261
263
|
r: 4,
|
|
262
264
|
strokeWidth: 2,
|
|
263
265
|
className: "stroke-card",
|
|
@@ -265,12 +267,12 @@ function b({ data: n, x: r, label: o, summary: m, height: h = 240, formatX: g =
|
|
|
265
267
|
}, t);
|
|
266
268
|
})
|
|
267
269
|
]
|
|
268
|
-
}), Q &&
|
|
270
|
+
}), Q && I !== null && /* @__PURE__ */ f("div", {
|
|
269
271
|
className: "pointer-events-none absolute top-0 z-10 transition-[translate] duration-75",
|
|
270
|
-
style: C($, fe,
|
|
271
|
-
children:
|
|
272
|
+
style: C($, fe, F, h),
|
|
273
|
+
children: k ? k(Q, I) : /* @__PURE__ */ f(t, {
|
|
272
274
|
title: (E ?? g)(Q[r]),
|
|
273
|
-
rows:
|
|
275
|
+
rows: V.map((e) => ({
|
|
274
276
|
s: e,
|
|
275
277
|
v: x(Q, e.dataKey)
|
|
276
278
|
})).filter(({ v: e }) => e !== null).map(({ s: e, v: t }) => ({
|
|
@@ -341,12 +343,12 @@ function te(e) {
|
|
|
341
343
|
for (let r of e) r ? n.push(r) : n.length && (t.push(n), n = []);
|
|
342
344
|
return n.length && t.push(n), t;
|
|
343
345
|
}
|
|
344
|
-
function
|
|
346
|
+
function ne(e) {
|
|
345
347
|
return e.map(([e, t], n) => `${n ? "L" : "M"}${e},${t}`).join("");
|
|
346
348
|
}
|
|
347
|
-
function
|
|
349
|
+
function re(e) {
|
|
348
350
|
let t = e.length;
|
|
349
|
-
if (t < 3) return
|
|
351
|
+
if (t < 3) return ne(e);
|
|
350
352
|
let n = e.slice(1).map((t, n) => t[0] - e[n][0]), r = e.slice(1).map((t, r) => (t[1] - e[r][1]) / n[r]), i = e.map((e, i) => i === 0 ? r[0] : i === t - 1 ? r[t - 2] : r[i - 1] * r[i] <= 0 ? 0 : 3 * (n[i - 1] + n[i]) / ((2 * n[i] + n[i - 1]) / r[i - 1] + (n[i] + 2 * n[i - 1]) / r[i])), a = `M${e[0][0]},${e[0][1]}`;
|
|
351
353
|
for (let r = 0; r < t - 1; r++) {
|
|
352
354
|
let t = n[r] / 3;
|
|
@@ -354,7 +356,7 @@ function ne(e) {
|
|
|
354
356
|
}
|
|
355
357
|
return a;
|
|
356
358
|
}
|
|
357
|
-
function
|
|
359
|
+
function O(e, t, n, r, i) {
|
|
358
360
|
let a = Math.min(4, n / 2, r);
|
|
359
361
|
return i ? `M${e},${t}V${t + r - a}Q${e},${t + r} ${e + a},${t + r}H${e + n - a}Q${e + n},${t + r} ${e + n},${t + r - a}V${t}Z` : `M${e},${t + r}V${t + a}Q${e},${t} ${e + a},${t}H${e + n - a}Q${e + n},${t} ${e + n},${t + a}V${t + r}Z`;
|
|
360
362
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../packages/combobox/index.tsx"],"names":[],"mappings":"AAaA,OAAO,EAEH,cAAc,EAGd,SAAS,EAOZ,MAAM,OAAO,CAAC;AAkCf;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,CAAC,EAAE,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,+
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../packages/combobox/index.tsx"],"names":[],"mappings":"AAaA,OAAO,EAEH,cAAc,EAGd,SAAS,EAOZ,MAAM,OAAO,CAAC;AAkCf;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,CAAC,EAAE,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,+BAiE1D;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,EAC5B,WAA8B,EAC9B,QAAQ,EACR,SAAS,EACT,KAAK,EACL,QAAQ,EACR,GAAG,IAAI,EACV,EAAE,oBAAoB,+BAmEtB;AA6CD,4EAA4E;AAC5E,wBAAgB,aAAa,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,SAAS,CAAA;CAAE,+BAWjG;AAED,mGAAmG;AACnG,wBAAgB,cAAc,CAAC,EAC3B,WAAsB,EACtB,YAAY,EAAE,SAA4B,GAC7C,EAAE,mBAAmB,+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