@iamfiro/design 0.3.4 → 0.3.5
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/agents/app-shell/AGENTS.md +99 -1
- package/lib/components/Accordion/Accordion2.js +93 -93
- package/lib/components/ActionBar/ActionBar2.js +44 -40
- package/lib/components/Alert/Alert2.js +64 -64
- package/lib/components/AppShell/AppShell2.js +73 -66
- package/lib/components/AreaChart/AreaChart.js +49 -47
- package/lib/components/BarChart/BarChart2.js +107 -107
- package/lib/components/BarList/BarList2.js +99 -99
- package/lib/components/Breadcrumb/Breadcrumb2.js +53 -56
- package/lib/components/Calendar/Calendar2.js +164 -164
- package/lib/components/Calendar/DatePicker2.js +76 -77
- package/lib/components/Calendar/date.js +49 -70
- package/lib/components/Card/Card2.js +104 -77
- package/lib/components/CardFrame/CardFrame2.js +46 -42
- package/lib/components/Chart/ChartParts.js +73 -73
- package/lib/components/Chart/chart2.js +53 -53
- package/lib/components/Chart/useChartInteraction.js +49 -49
- package/lib/components/ChatBubble/ChatBubble2.js +118 -118
- package/lib/components/ChatBubble/formatChatTime.js +42 -41
- package/lib/components/ChatComposer/ChatComposer2.js +102 -102
- package/lib/components/CodeBlock/CodeBlock2.js +51 -51
- package/lib/components/CodeBlock/highlight.js +85 -85
- package/lib/components/ColorPicker/ColorPicker2.js +373 -374
- package/lib/components/ColorPicker/color.js +94 -94
- package/lib/components/ColorPicker/presets.js +47 -46
- package/lib/components/Combobox/Combobox2.js +118 -117
- package/lib/components/CommandMenu/CommandMenu.js +121 -122
- package/lib/components/Comment/Comment2.js +56 -81
- package/lib/components/ContextMenu/ContextMenu2.js +91 -93
- package/lib/components/DataGrid/DataGrid2.js +845 -845
- package/lib/components/DataGrid/GridPopover.js +97 -97
- package/lib/components/DataGrid/anchor.js +34 -36
- package/lib/components/DataGrid/model.js +299 -299
- package/lib/components/DataGrid/panels.js +393 -393
- package/lib/components/DataGrid/typeMeta.js +53 -53
- package/lib/components/DataGrid/types.js +22 -22
- package/lib/components/DescriptionList/DescriptionList2.js +57 -57
- package/lib/components/Dialog/AlertDialog.js +56 -56
- package/lib/components/Dialog/Dialog2.js +68 -69
- package/lib/components/Dialog/modal.js +61 -57
- package/lib/components/Drawer/Drawer2.js +161 -161
- package/lib/components/DropdownMenu/DropdownMenu2.js +267 -267
- package/lib/components/DropdownMenu/menuCore.js +42 -68
- package/lib/components/Dropzone/Dropzone2.js +81 -81
- package/lib/components/EmptyState/EmptyState2.js +55 -54
- package/lib/components/FileChip/FileChip2.js +39 -63
- package/lib/components/FileUpload/FileUpload.js +157 -156
- package/lib/components/FilterChips/FilterChips2.js +51 -51
- package/lib/components/FunnelChart/FunnelChart2.js +171 -171
- package/lib/components/FunnelChart/funnel.js +55 -57
- package/lib/components/Highlight/Highlight2.js +48 -48
- package/lib/components/HoverCard/HoverCard.js +59 -59
- package/lib/components/InlineDiff/InlineDiff2.js +110 -111
- package/lib/components/InlineDiff/diff.js +89 -89
- package/lib/components/InlineDiff/useDiffReview.js +63 -65
- package/lib/components/Kanban/Kanban2.js +424 -425
- package/lib/components/Kanban/KanbanCard.js +98 -73
- package/lib/components/Kanban/move.js +52 -49
- package/lib/components/LineChart/LineChart2.js +222 -222
- package/lib/components/List/List2.js +60 -59
- package/lib/components/Listbox/Listbox2.js +117 -117
- package/lib/components/Marker/Marker2.js +58 -59
- package/lib/components/Menubar/Menubar2.js +121 -123
- package/lib/components/MultiSelect/MultiSelect2.js +115 -115
- package/lib/components/NavigationMenu/NavigationMenu2.js +277 -276
- package/lib/components/NoticeStack/NoticeStack2.js +98 -98
- package/lib/components/NumberStepper/NumberStepper2.js +67 -66
- package/lib/components/OtpInput/OtpInput2.js +93 -93
- package/lib/components/Pagination/Pagination2.js +87 -87
- package/lib/components/Pagination/paginationRange.js +39 -37
- package/lib/components/PhoneInput/PhoneInput.js +78 -78
- package/lib/components/PieChart/PieChart2.js +117 -117
- package/lib/components/PieChart/arc.js +57 -58
- package/lib/components/PieChart/useArcTween.js +45 -40
- package/lib/components/Popover/Popover2.js +73 -74
- package/lib/components/ProgressTracker/ProgressTracker2.js +128 -128
- package/lib/components/Rating/Rating2.js +95 -95
- package/lib/components/Resizable/Resizable2.js +86 -86
- package/lib/components/Resizable/layout.js +73 -73
- package/lib/components/ScaledPreview/ScaledPreview2.js +68 -68
- package/lib/components/ScatterChart/ScatterChart2.js +172 -172
- package/lib/components/ScatterChart/scatter.js +55 -56
- package/lib/components/ScrollArea/ScrollArea2.js +130 -131
- package/lib/components/Select/Select2.js +86 -85
- package/lib/components/Sidebar/Sidebar2.js +92 -86
- package/lib/components/Sidebar/rail.js +43 -0
- package/lib/components/Skeleton/Skeleton2.js +60 -61
- package/lib/components/Slider/Slider2.js +73 -73
- package/lib/components/SocialLoginButton/SocialLoginButton.js +54 -55
- package/lib/components/SparkChart/SparkChart2.js +140 -141
- package/lib/components/SparkChart/spark.js +50 -48
- package/lib/components/Sparkbar/Sparkbar2.js +56 -56
- package/lib/components/SplitView/SplitView2.js +47 -46
- package/lib/components/Stat/Stat2.js +61 -61
- package/lib/components/StepList/StepList2.js +76 -76
- package/lib/components/Table/Table2.js +70 -70
- package/lib/components/Tabs/Tabs2.js +85 -85
- package/lib/components/TagInput/TagInput2.js +217 -218
- package/lib/components/TimePicker/TimePicker2.js +217 -216
- package/lib/components/TimePicker/time.js +60 -58
- package/lib/components/Timeline/Timeline2.js +181 -181
- package/lib/components/Timeline/scale.js +60 -65
- package/lib/components/Toast/Toaster.js +146 -148
- package/lib/components/Toast/store.js +85 -85
- package/lib/components/ToggleGroup/ToggleGroup2.js +79 -79
- package/lib/components/Toolbar/Toolbar2.js +120 -121
- package/lib/components/Tracker/Tracker2.js +79 -79
- package/lib/components/TreeDiagram/TreeDiagram2.js +116 -116
- package/lib/components/TreeView/TreeView2.js +162 -163
- package/lib/hooks/timing.js +32 -35
- package/lib/hooks/useControllableState.js +35 -35
- package/lib/hooks/useCountdown.js +53 -52
- package/lib/hooks/useDigitInput.js +82 -81
- package/lib/hooks/useDismiss.js +48 -48
- package/lib/hooks/useElapsed.js +40 -43
- package/lib/hooks/useFloating.js +47 -47
- package/lib/hooks/useFocusTrap.js +45 -69
- package/lib/hooks/usePresence.js +49 -50
- package/lib/hooks/usePressToOpen.js +43 -43
- package/lib/hooks/useScrollLock.js +45 -43
- package/lib/hooks/useSelection.js +44 -46
- package/lib/index.js +105 -106
- package/lib/primitives/AspectRatio2.js +57 -56
- package/lib/primitives/BrandIcon.js +177 -177
- package/lib/primitives/ColorDot2.js +44 -48
- package/lib/primitives/CopyButton2.js +54 -55
- package/lib/primitives/CountBadge2.js +45 -48
- package/lib/primitives/Countdown2.js +35 -37
- package/lib/primitives/Delta2.js +41 -41
- package/lib/primitives/Elapsed.js +43 -41
- package/lib/primitives/FileIcon2.js +94 -94
- package/lib/primitives/Flag2.js +97 -97
- package/lib/primitives/IconStack2.js +53 -55
- package/lib/primitives/IconTile2.js +45 -41
- package/lib/primitives/Kbd2.js +57 -57
- package/lib/primitives/Layout2.js +66 -66
- package/lib/primitives/Link2.js +42 -47
- package/lib/primitives/MaskedText2.js +47 -69
- package/lib/primitives/Progress2.js +71 -71
- package/lib/primitives/RelativeTime.js +47 -43
- package/lib/primitives/SearchInput2.js +70 -66
- package/lib/primitives/SelectorButton2.js +70 -67
- package/lib/primitives/Spinner2.js +58 -59
- package/lib/primitives/StatusIcon2.js +70 -70
- package/lib/primitives/Swatch2.js +57 -55
- package/lib/primitives/Tooltip2.js +78 -78
- package/lib/primitives/Typography2.js +54 -54
- package/lib/primitives/formatCountdown.js +37 -38
- package/lib/primitives/formatElapsed.js +46 -45
- package/lib/primitives/formatRelativeTime.js +43 -69
- package/lib/primitives/hotkey.js +66 -66
- package/lib/primitives/index.js +152 -152
- package/lib/primitives/maskValue.js +30 -32
- package/lib/style.css +1 -1
- package/lib/types/components/AppShell/AppShell.d.ts +9 -2
- package/lib/types/components/Sidebar/rail.d.ts +4 -0
- package/lib/types/components/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,297 +1,291 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
const e =
|
|
3
|
-
(function(e,
|
|
4
|
-
let
|
|
2
|
+
const e = t;
|
|
3
|
+
(function(e, n) {
|
|
4
|
+
let r = t, i = e();
|
|
5
5
|
for (;;) try {
|
|
6
|
-
if (parseInt(
|
|
7
|
-
|
|
6
|
+
if (-parseInt(r(171)) / 1 * (-parseInt(r(168)) / 2) + -parseInt(r(182)) / 3 * (parseInt(r(180)) / 4) + -parseInt(r(165)) / 5 + parseInt(r(124)) / 6 * (parseInt(r(200)) / 7) + -parseInt(r(162)) / 8 + parseInt(r(113)) / 9 + parseInt(r(183)) / 10 * (parseInt(r(184)) / 11) == n) break;
|
|
7
|
+
i.push(i.shift());
|
|
8
8
|
} catch {
|
|
9
|
-
|
|
9
|
+
i.push(i.shift());
|
|
10
10
|
}
|
|
11
|
-
})(
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
function o() {
|
|
17
|
-
let e = /* @__PURE__ */ "zgL2.Cgf0Aa.yNv0Dg9U.C2vJB25Kyxj5.AM9PBG.y2XVC2vK.BgLUzq.DxjSkcm.DgvYDgLHCNK.lwnSAxa.AgfZ.zhmTy2HHCNrFx3rPCa.z2v0qM91BMrPBMDdBgLLBNrszwn0.C29SAwq.mtu0nJfhz3DTuwi.zhmTC2nHDhrLCI1JAgfYDa.zhmTy2HHCNrFx2f4Axm.C2L6zq.ChGSia.zgvMCW.C3zN.y3vYCMvUDfrHCMDLDa.yM9KEs1ZBq.A2v5.7ikW7kcq64+e.mtaWmJmYogvkv3L5uW.zhmTC2nHDhrLCI1JAgfYDf9FBgvNzw5KlwL0zw0.zMLYC3q.y3vYCMvUDa.zhmTy2HHCNrFx3nY.zhmTy2HHCNq.zhmTC2nHDhrLCI1JAgfYDf9FDhjLBMq.DhjHBNnSyxrLwsG.Aw50zxjJzxb0.BMv1DhjHBa.nJeYmti5mhPmBwPUta.y2f0zwDVCNK.nteZodm0BuzsC1rd.CM93.lwnSAxaP.y29SB3i.lwXPDMu.zhmTC2nHDhrLCI1JAgfYDf9Fywn0AxzL.Dgv4Da.C3fYDa.BgvUz3rO.nKfeCw9Mtq.Aw5KzxG.AhLWB3q.C3rHCNq.owPls29gDW.Dg9Uzq.BwLU.C29YDa.ChGP.y2f0.DhjHBNnSyxrLwcG.zw5K.zhmTy2HHCNrFx2HPDa.BgfIzwW.mJu0nti3meDuBwfvCG.zhmTC2nHDhrLCI1JAgfYDf9FCg9W.DMfYkc0Ty2HHCNqTyxHPCYK.z2v0.C2XVCgu.zhmTC2nHDhrLCI1JAgfYDf9FCg9PBNq.B2zM.C3bHBG.zhmTy2HHCNrFx3n2zW.DMfSDwu.BgvMDa.Dg9W.DhjHBNnSyxrLka.zhmTC2nHDhrLCI1JAgfYDf9FCg9PBNrZ.nda4otq0whrTDenw.Cg9SAxrL.BwfW.Aw5JBhvKzxm.zMLSDgvY.DhjHBNnWyxjLBNq.mtrWCvDqvhG.y2LYy2XL.mtCWmdm1nw9ws0PIzW.CMvJDa.zhmTy2HHCNrFx2DYAwq.Bwf4.yxHPCW.x19HBgW.BwLKzgXL.zhmTy2HHCNrFx2f4AxmGzhmTC2nHDhrLCI1JAgfYDf9FDgL0Bgu.zMXHDe1HCa.y2XPzw50wq".split(".");
|
|
18
|
-
return o = function() {
|
|
19
|
-
return e;
|
|
20
|
-
}, o();
|
|
21
|
-
}
|
|
22
|
-
import { cx as s } from "../../primitives/index.js";
|
|
23
|
-
import { ChartTooltip as c } from "../Chart/ChartParts.js";
|
|
24
|
-
import { CHART_TONE_STRONG as ee, axisGutter as te, chartColor as ne, formatCompact as re, formatNumber as l, labelStep as ie, numberAt as u } from "../Chart/chart2.js";
|
|
25
|
-
import { useChartInteraction as ae } from "../Chart/useChartInteraction.js";
|
|
26
|
-
function d(e, t) {
|
|
27
|
-
e -= 279;
|
|
28
|
-
let n = o(), r = n[e];
|
|
29
|
-
d.WnvoKO === void 0 && (d.aUESST = function(e) {
|
|
11
|
+
})(g, 812195);
|
|
12
|
+
function t(e, n) {
|
|
13
|
+
e -= 113;
|
|
14
|
+
let r = g(), i = r[e];
|
|
15
|
+
t.pxvRdG === void 0 && (t.goqMlC = function(e) {
|
|
30
16
|
let t = "", n = "";
|
|
31
17
|
for (let n = 0, r, i, a = 0; i = e.charAt(a++); ~i && (r = n % 4 ? r * 64 + i : i, n++ % 4) && (t += String.fromCharCode(255 & r >> (-2 * n & 6)))) i = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);
|
|
32
18
|
for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
|
|
33
19
|
return decodeURIComponent(n);
|
|
34
|
-
},
|
|
35
|
-
let
|
|
36
|
-
|
|
37
|
-
let
|
|
38
|
-
return
|
|
20
|
+
}, t.YIYaTi = {}, t.pxvRdG = !0);
|
|
21
|
+
let a = r[0];
|
|
22
|
+
t.mfNFRx !== a && (t.YIYaTi = {}, t.mfNFRx = a);
|
|
23
|
+
let o = t.YIYaTi[e];
|
|
24
|
+
return o === void 0 ? (i = t.goqMlC(i), t.YIYaTi[e] = i) : i = o, i;
|
|
39
25
|
}
|
|
26
|
+
import { Text as n } from "../../primitives/Typography2.js";
|
|
27
|
+
import { ColorDot as r } from "../../primitives/ColorDot2.js";
|
|
28
|
+
import { Inline as i, Stack as a } from "../../primitives/Layout2.js";
|
|
29
|
+
import { useControllableState as o } from "../../hooks/useControllableState.js";
|
|
30
|
+
import { cx as s } from "../../primitives/index.js";
|
|
31
|
+
import { ChartTooltip as c } from "../Chart/ChartParts.js";
|
|
32
|
+
import { CHART_TONE_STRONG as ee, axisGutter as te, chartColor as ne, formatCompact as re, formatNumber as l, labelStep as ie, numberAt as u } from "../Chart/chart2.js";
|
|
33
|
+
import { useChartInteraction as ae } from "../Chart/useChartInteraction.js";
|
|
40
34
|
import { linearRegression as oe, niceRangeTicks as se } from "./scatter.js";
|
|
41
35
|
/* empty css */
|
|
42
|
-
import { useId as ce, useMemo as
|
|
43
|
-
import { jsx as
|
|
44
|
-
var de = 12,
|
|
45
|
-
function
|
|
46
|
-
let O = e, k = ce(), [A, Le] =
|
|
47
|
-
let e =
|
|
36
|
+
import { useId as ce, useMemo as d, useRef as le, useState as ue } from "react";
|
|
37
|
+
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
38
|
+
var de = 12, m = 10, fe = 28, pe = 14, me = 560, he = [];
|
|
39
|
+
function h({ data: h, xKey: g, yKey: _, sizeKey: v, categoryKey: y, categories: b, labelKey: x, height: S = 280, xLabel: C, yLabel: w, sizeLabel: ge, xTickCount: _e = 5, yTickCount: ve = 4, xDomain: T, yDomain: E, sizeRange: ye = [4, 22], pointRadius: be = 5, trendLine: xe = !1, referenceLines: D, formatX: Se = l, formatY: Ce = l, formatSize: we = l, formatAxisX: Te = re, formatAxisY: Ee = re, legend: De = !0, hiddenCategories: Oe, defaultHiddenCategories: ke = he, onHiddenCategoriesChange: Ae, activeIndex: je, defaultActiveIndex: Me, onActiveIndexChange: Ne, "aria-label": Pe = e(122), className: Fe, style: Ie }) {
|
|
40
|
+
let O = e, k = ce(), [A, Le] = o(Oe, ke, Ae), j = new Set(A), [M, N] = ue(null), P = d(() => {
|
|
41
|
+
let e = t;
|
|
48
42
|
if (b) return b;
|
|
49
43
|
if (!y) return [{
|
|
50
44
|
key: "",
|
|
51
45
|
label: w ?? _
|
|
52
46
|
}];
|
|
53
|
-
let
|
|
54
|
-
for (let
|
|
55
|
-
let r = String(
|
|
56
|
-
|
|
47
|
+
let n = [];
|
|
48
|
+
for (let t of h) {
|
|
49
|
+
let r = String(t[y] ?? "");
|
|
50
|
+
n[e(167)](r) || n[e(138)](r);
|
|
57
51
|
}
|
|
58
|
-
return
|
|
52
|
+
return n[e(151)]((e) => ({
|
|
59
53
|
key: e,
|
|
60
54
|
label: e
|
|
61
55
|
}));
|
|
62
56
|
}, [
|
|
63
57
|
b,
|
|
64
58
|
y,
|
|
65
|
-
|
|
59
|
+
h,
|
|
66
60
|
w,
|
|
67
61
|
_
|
|
68
|
-
]), F =
|
|
69
|
-
let e =
|
|
70
|
-
return
|
|
71
|
-
let i = e, a = u(
|
|
62
|
+
]), F = d(() => {
|
|
63
|
+
let e = t, n = new Map(P[e(151)]((t, n) => [t[e(133)], n]));
|
|
64
|
+
return h[e(116)]((t, r) => {
|
|
65
|
+
let i = e, a = u(t, g), o = u(t, _);
|
|
72
66
|
if (a === null || o === null) return [];
|
|
73
|
-
let s = y ? String(
|
|
67
|
+
let s = y ? String(t[y] ?? "") : "", c = n[i(181)](s);
|
|
74
68
|
return c === void 0 ? [] : [{
|
|
75
69
|
index: r,
|
|
76
|
-
row:
|
|
70
|
+
row: t,
|
|
77
71
|
x: a,
|
|
78
72
|
y: o,
|
|
79
|
-
s: v ? u(
|
|
73
|
+
s: v ? u(t, v) : null,
|
|
80
74
|
cat: s,
|
|
81
75
|
ci: c
|
|
82
76
|
}];
|
|
83
|
-
})[e(
|
|
77
|
+
})[e(120)]((e, t) => e.x - t.x || e.y - t.y);
|
|
84
78
|
}, [
|
|
85
|
-
|
|
79
|
+
h,
|
|
86
80
|
g,
|
|
87
81
|
_,
|
|
88
82
|
v,
|
|
89
83
|
y,
|
|
90
84
|
P
|
|
91
|
-
]), Re = F[O(
|
|
85
|
+
]), Re = F[O(174)]((e) => !j[O(146)](e.cat))[O(198)], { open: ze, shown: Be, settled: Ve, width: I, tipRef: He, tipSize: L, hover: Ue, leave: We, plotProps: Ge } = ae({
|
|
92
86
|
count: Re,
|
|
93
87
|
activeIndex: je,
|
|
94
88
|
defaultActiveIndex: Me,
|
|
95
89
|
onActiveIndexChange: Ne,
|
|
96
|
-
initialKeyboardIndex: O(
|
|
97
|
-
}), R =
|
|
98
|
-
let e = O, t = [...F.map((e) => e.x), ...D?.[e(
|
|
90
|
+
initialKeyboardIndex: O(158)
|
|
91
|
+
}), R = d(() => {
|
|
92
|
+
let e = O, t = [...F.map((e) => e.x), ...D?.[e(174)]((e) => e.axis === "x").map((t) => t[e(179)]) ?? []], [n, r] = T ?? (t.length ? [Math[e(117)](...t), Math.max(...t)] : [0, 1]);
|
|
99
93
|
return se(n, r, _e, !T);
|
|
100
94
|
}, [
|
|
101
95
|
F,
|
|
102
96
|
D,
|
|
103
97
|
T,
|
|
104
98
|
_e
|
|
105
|
-
]), z =
|
|
106
|
-
let e = O, t = [...F[e(
|
|
99
|
+
]), z = d(() => {
|
|
100
|
+
let e = O, t = [...F[e(151)]((e) => e.y), ...D?.[e(174)]((e) => e.axis === "y").map((t) => t[e(179)]) ?? []], [n, r] = E ?? (t[e(198)] ? [Math.min(...t), Math[e(164)](...t)] : [0, 1]);
|
|
107
101
|
return se(n, r, ve, !E);
|
|
108
102
|
}, [
|
|
109
103
|
F,
|
|
110
104
|
D,
|
|
111
105
|
E,
|
|
112
106
|
ve
|
|
113
|
-
]), Ke = Math[O(
|
|
107
|
+
]), Ke = Math[O(164)](0, ...F[O(151)]((e) => e.s ?? 0)), B = w ? 28 : 10, qe = 28 + (C ? 20 : 0), Je = te(z.map(Ee)), V = Je, H = Math[O(164)](0, I - Je - de), U = Math[O(164)](0, S - B - qe), W = B + U, [G, Ye] = [R[0], R[R.length - 1]], [Xe, Ze] = [z[0], z[z[O(198)] - 1]], K = (e) => V + (e - G) / (Ye - G || 1) * H, q = (e) => W - (e - Xe) / (Ze - Xe || 1) * U, Qe = (e) => v && e !== null && Ke > 0 ? Math[O(164)](ye[0], ye[1] * Math.sqrt(Math.max(0, e) / Ke)) : be, $e = ie(R[O(198)], H, 64), et = F.map((e) => ({
|
|
114
108
|
...e,
|
|
115
109
|
cx: K(e.x),
|
|
116
110
|
cy: q(e.y),
|
|
117
111
|
r: Qe(e.s),
|
|
118
|
-
color: ne(P[e.ci]
|
|
119
|
-
})), tt = et
|
|
112
|
+
color: ne(P[e.ci][O(139)], e.ci)
|
|
113
|
+
})), tt = et.filter((e) => !j[O(146)](e[O(147)])), J = Be === null ? void 0 : tt[Be], Y = ze && J !== void 0, nt = (e) => {
|
|
120
114
|
let t = O, n = oe(e);
|
|
121
|
-
return n ? "M" + K(G) + "," + q(n[t(
|
|
122
|
-
}, rt = xe === O(
|
|
123
|
-
key: e[O(
|
|
124
|
-
d: nt(et.filter((t) => t
|
|
125
|
-
color: ne(e
|
|
126
|
-
off: j
|
|
115
|
+
return n ? "M" + K(G) + "," + q(n[t(155)] + n[t(160)] * G) + "L" + K(Ye) + "," + q(n[t(155)] + n[t(160)] * Ye) : null;
|
|
116
|
+
}, rt = xe === O(137) ? P[O(151)]((e, t) => ({
|
|
117
|
+
key: e[O(133)],
|
|
118
|
+
d: nt(et.filter((t) => t.cat === e[O(133)])),
|
|
119
|
+
color: ne(e.color, t),
|
|
120
|
+
off: j.has(e.key)
|
|
127
121
|
})) : xe ? [{
|
|
128
|
-
key: O(
|
|
122
|
+
key: O(143),
|
|
129
123
|
d: nt(tt),
|
|
130
|
-
color: O(
|
|
124
|
+
color: O(134),
|
|
131
125
|
off: !1
|
|
132
126
|
}] : [], X = le(!1), it = (e) => {
|
|
133
|
-
let t = O, n = e[t(
|
|
127
|
+
let t = O, n = e.currentTarget[t(191)](), r = e[t(125)] - n[t(141)], i = e[t(129)] - n[t(152)], a = -1, o = Infinity;
|
|
134
128
|
tt.forEach((e, n) => {
|
|
135
|
-
let s = Math[t(
|
|
129
|
+
let s = Math[t(177)](e.cx - r, e.cy - i) - e.r;
|
|
136
130
|
s < o && (o = s, a = n);
|
|
137
|
-
}), a >= 0 && o <= fe ? (X
|
|
131
|
+
}), a >= 0 && o <= fe ? (X[t(118)] = !0, Ue(a)) : X[t(118)] && (X[t(118)] = !1, We());
|
|
138
132
|
}, at = () => {
|
|
139
133
|
let e = O;
|
|
140
|
-
X[e(
|
|
134
|
+
X[e(118)] = !1, We();
|
|
141
135
|
}, ot = (e) => {
|
|
142
|
-
let t =
|
|
143
|
-
!
|
|
144
|
-
}, Z = J ? P[J.ci] : void 0, st = C ?? g, ct = w ?? _, lt = ge ?? v ?? "", ut = J ? x ? String(J[
|
|
136
|
+
let t = j.has(e);
|
|
137
|
+
!t && M === e && N(null), Le(t ? A.filter((t) => t !== e) : [...A, e]);
|
|
138
|
+
}, Z = J ? P[J.ci] : void 0, st = C ?? g, ct = w ?? _, lt = ge ?? v ?? "", ut = J ? x ? String(J.row[x] ?? "") : Z?.[O(128)] : null, dt = J ? [
|
|
145
139
|
{
|
|
146
140
|
key: "x",
|
|
147
141
|
label: st,
|
|
148
|
-
color: J[O(
|
|
149
|
-
value: Se(J.x, J[O(
|
|
142
|
+
color: J[O(139)],
|
|
143
|
+
value: Se(J.x, J[O(126)])
|
|
150
144
|
},
|
|
151
145
|
{
|
|
152
146
|
key: "y",
|
|
153
147
|
label: ct,
|
|
154
|
-
color: J
|
|
155
|
-
value: Ce(J.y, J[O(
|
|
148
|
+
color: J[O(139)],
|
|
149
|
+
value: Ce(J.y, J[O(126)])
|
|
156
150
|
},
|
|
157
151
|
...v && J.s !== null ? [{
|
|
158
|
-
key:
|
|
152
|
+
key: "size",
|
|
159
153
|
label: lt,
|
|
160
|
-
color: J[O(
|
|
154
|
+
color: J[O(139)],
|
|
161
155
|
value: we(J.s, J.row)
|
|
162
156
|
}] : []
|
|
163
|
-
] : [], Q = J?.cx ?? 0, ft = J?.cy ?? 0, $ = J?.r ?? 0, pt = Q + $ +
|
|
164
|
-
return
|
|
157
|
+
] : [], Q = J?.cx ?? 0, ft = J?.cy ?? 0, $ = J?.r ?? 0, pt = Q + $ + m + L.w > I ? Math[O(164)](0, Q - $ - m - L.w) : Q + $ + m, mt = Math[O(117)](Math[O(164)](0, ft - L.h / 2), Math[O(164)](0, S - L.h)), ht = Y && J ? "" + (ut ?? "") + (x && y && Z ? " (" + Z[O(128)] + ")" : "") + ": " + dt[O(151)]((e) => e[O(128)] + " " + e[O(179)])[O(178)](", ") : "", gt = O(121) + k + O(153);
|
|
158
|
+
return p(a, {
|
|
165
159
|
gap: 3,
|
|
166
|
-
className: s(
|
|
160
|
+
className: s("ds-chart", O(127), Fe),
|
|
167
161
|
style: Ie,
|
|
168
|
-
children: [
|
|
162
|
+
children: [p(O(154), {
|
|
169
163
|
...Ge,
|
|
170
|
-
className:
|
|
164
|
+
className: O(156),
|
|
171
165
|
style: { height: S },
|
|
172
|
-
"aria-roledescription": O(
|
|
166
|
+
"aria-roledescription": O(122),
|
|
173
167
|
"aria-label": Pe,
|
|
174
|
-
"aria-describedby": k + O(
|
|
168
|
+
"aria-describedby": k + O(188),
|
|
175
169
|
children: [
|
|
176
|
-
I > 0 &&
|
|
177
|
-
className: O(
|
|
170
|
+
I > 0 && p(O(130), {
|
|
171
|
+
className: O(195),
|
|
178
172
|
width: I,
|
|
179
173
|
height: S,
|
|
180
174
|
"aria-hidden": !0,
|
|
181
175
|
children: [
|
|
182
|
-
|
|
183
|
-
id: k +
|
|
184
|
-
children:
|
|
176
|
+
f("defs", { children: f(O(185), {
|
|
177
|
+
id: k + "-clip",
|
|
178
|
+
children: f(O(115), {
|
|
185
179
|
x: V,
|
|
186
180
|
y: B,
|
|
187
181
|
width: H,
|
|
188
182
|
height: U
|
|
189
183
|
})
|
|
190
184
|
}) }),
|
|
191
|
-
w &&
|
|
192
|
-
className: O(
|
|
185
|
+
w && f(O(123), {
|
|
186
|
+
className: O(169),
|
|
193
187
|
x: 0,
|
|
194
188
|
y: 12,
|
|
195
189
|
dominantBaseline: "middle",
|
|
196
190
|
children: w
|
|
197
191
|
}),
|
|
198
|
-
C &&
|
|
199
|
-
className: O(
|
|
192
|
+
C && f(O(123), {
|
|
193
|
+
className: O(169),
|
|
200
194
|
x: V + H,
|
|
201
195
|
y: S - 4,
|
|
202
|
-
textAnchor: O(
|
|
196
|
+
textAnchor: O(114),
|
|
203
197
|
children: C
|
|
204
198
|
}),
|
|
205
|
-
z
|
|
206
|
-
className:
|
|
199
|
+
z[O(151)]((e) => p("g", { children: [f("line", {
|
|
200
|
+
className: "ds-chart__grid",
|
|
207
201
|
x1: V,
|
|
208
202
|
x2: V + H,
|
|
209
203
|
y1: q(e),
|
|
210
204
|
y2: q(e)
|
|
211
|
-
}),
|
|
212
|
-
className: O(
|
|
205
|
+
}), f("text", {
|
|
206
|
+
className: O(170),
|
|
213
207
|
x: 0,
|
|
214
208
|
y: q(e),
|
|
215
|
-
dominantBaseline: O(
|
|
209
|
+
dominantBaseline: O(161),
|
|
216
210
|
children: Ee(e)
|
|
217
211
|
})] }, e)),
|
|
218
|
-
R
|
|
219
|
-
className:
|
|
212
|
+
R[O(151)]((e, t) => t % $e === 0 || t === R.length - 1 ? f("text", {
|
|
213
|
+
className: O(170),
|
|
220
214
|
x: K(e),
|
|
221
215
|
y: W + 20,
|
|
222
|
-
textAnchor: t === R
|
|
216
|
+
textAnchor: t === R[O(198)] - 1 ? O(114) : O(161),
|
|
223
217
|
children: Te(e)
|
|
224
218
|
}, e) : null),
|
|
225
|
-
D?.[O(
|
|
226
|
-
let n = O, r = ee[e[n(
|
|
227
|
-
return
|
|
228
|
-
className:
|
|
229
|
-
style: { transform: i ? n(
|
|
230
|
-
children: [i ?
|
|
219
|
+
D?.[O(151)]((e, t) => {
|
|
220
|
+
let n = O, r = ee[e[n(159)] ?? n(194)], i = e[n(163)] === "y";
|
|
221
|
+
return p("g", {
|
|
222
|
+
className: n(186),
|
|
223
|
+
style: { transform: i ? n(142) + q(e[n(179)]) + n(157) : n(149) + K(e.value) + n(157) },
|
|
224
|
+
children: [i ? f(n(193), {
|
|
231
225
|
x1: V,
|
|
232
226
|
x2: V + H,
|
|
233
227
|
y1: 0,
|
|
234
228
|
y2: 0,
|
|
235
229
|
style: { stroke: r }
|
|
236
|
-
}) :
|
|
230
|
+
}) : f(n(193), {
|
|
237
231
|
x1: 0,
|
|
238
232
|
x2: 0,
|
|
239
233
|
y1: B,
|
|
240
234
|
y2: W,
|
|
241
235
|
style: { stroke: r }
|
|
242
|
-
}), e[n(
|
|
243
|
-
className:
|
|
236
|
+
}), e[n(128)] && f(n(123), {
|
|
237
|
+
className: "ds-chart__axis",
|
|
244
238
|
x: i ? V + H : 5,
|
|
245
239
|
y: i ? -5 : B + 10,
|
|
246
|
-
textAnchor: i ?
|
|
240
|
+
textAnchor: i ? n(114) : "start",
|
|
247
241
|
style: { fill: r },
|
|
248
|
-
children: e[n(
|
|
242
|
+
children: e[n(128)]
|
|
249
243
|
})]
|
|
250
244
|
}, t);
|
|
251
245
|
}),
|
|
252
|
-
rt
|
|
246
|
+
rt[O(198)] > 0 && f("g", {
|
|
253
247
|
clipPath: gt,
|
|
254
|
-
children: rt[O(
|
|
255
|
-
className: O(
|
|
248
|
+
children: rt[O(151)]((e) => e.d ? f("path", {
|
|
249
|
+
className: O(197),
|
|
256
250
|
d: e.d,
|
|
257
251
|
style: { stroke: e.color },
|
|
258
|
-
"data-hidden": e[O(
|
|
259
|
-
}, e[O(
|
|
252
|
+
"data-hidden": e[O(119)] || void 0
|
|
253
|
+
}, e[O(133)]) : null)
|
|
260
254
|
}),
|
|
261
|
-
|
|
262
|
-
className: O(
|
|
263
|
-
children: et
|
|
264
|
-
let n = O, r = j
|
|
265
|
-
return
|
|
266
|
-
className: n(
|
|
255
|
+
f("g", {
|
|
256
|
+
className: O(145),
|
|
257
|
+
children: et[O(151)]((e, t) => {
|
|
258
|
+
let n = O, r = j[n(146)](e[n(147)]), i = !r && (Y && J?.[n(150)] !== e[n(150)] || M !== null && M !== e.cat);
|
|
259
|
+
return f("g", {
|
|
260
|
+
className: n(189),
|
|
267
261
|
"data-hidden": r || void 0,
|
|
268
262
|
"data-dimmed": i || void 0,
|
|
269
|
-
style: { transform: n(
|
|
270
|
-
children:
|
|
271
|
-
className:
|
|
272
|
-
style: { animationDelay: Math
|
|
273
|
-
children:
|
|
274
|
-
className:
|
|
263
|
+
style: { transform: n(199) + e.cx + n(131) + e.cy + n(157) },
|
|
264
|
+
children: f("g", {
|
|
265
|
+
className: "ds-scatter-chart__pop",
|
|
266
|
+
style: { animationDelay: Math[n(117)](t * pe, me) + "ms" },
|
|
267
|
+
children: f(n(148), {
|
|
268
|
+
className: n(190),
|
|
275
269
|
r: e.r,
|
|
276
|
-
fill: e
|
|
270
|
+
fill: e[n(139)],
|
|
277
271
|
"data-bubble": v ? "" : void 0
|
|
278
272
|
})
|
|
279
273
|
})
|
|
280
|
-
}, e[n(
|
|
274
|
+
}, e[n(150)]);
|
|
281
275
|
})
|
|
282
276
|
}),
|
|
283
|
-
|
|
284
|
-
className: O(
|
|
285
|
-
"data-state": Y ?
|
|
277
|
+
f("g", {
|
|
278
|
+
className: O(176),
|
|
279
|
+
"data-state": O(Y ? 196 : 136),
|
|
286
280
|
"data-settled": Ve || void 0,
|
|
287
|
-
style: { transform: "translate(" + Q + O(
|
|
288
|
-
children:
|
|
281
|
+
style: { transform: "translate(" + Q + O(131) + ft + "px)" },
|
|
282
|
+
children: f(O(148), {
|
|
289
283
|
r: $ * 1.2 + 2,
|
|
290
|
-
fill: J?.[O(
|
|
284
|
+
fill: J?.[O(139)] ?? O(173)
|
|
291
285
|
})
|
|
292
286
|
}),
|
|
293
|
-
|
|
294
|
-
className: O(
|
|
287
|
+
f(O(115), {
|
|
288
|
+
className: O(172),
|
|
295
289
|
x: 0,
|
|
296
290
|
y: 0,
|
|
297
291
|
width: I,
|
|
@@ -302,55 +296,61 @@ function g({ data: o, xKey: g, yKey: _, sizeKey: v, categoryKey: y, categories:
|
|
|
302
296
|
})
|
|
303
297
|
]
|
|
304
298
|
}),
|
|
305
|
-
|
|
299
|
+
f(O(154), {
|
|
306
300
|
ref: He,
|
|
307
|
-
className: O(
|
|
308
|
-
"data-state": Y ?
|
|
301
|
+
className: O(175),
|
|
302
|
+
"data-state": O(Y ? 196 : 136),
|
|
309
303
|
"data-settled": Ve || void 0,
|
|
310
|
-
style: { transform: O(
|
|
304
|
+
style: { transform: O(199) + pt + O(131) + mt + O(157) },
|
|
311
305
|
"aria-hidden": !0,
|
|
312
|
-
children:
|
|
306
|
+
children: f(c, {
|
|
313
307
|
title: ut,
|
|
314
|
-
value: x && y && Z ?
|
|
315
|
-
as: O(
|
|
316
|
-
variant:
|
|
317
|
-
tone: O(
|
|
318
|
-
children: Z
|
|
308
|
+
value: x && y && Z ? f(n, {
|
|
309
|
+
as: O(166),
|
|
310
|
+
variant: "body-sm",
|
|
311
|
+
tone: O(132),
|
|
312
|
+
children: Z.label
|
|
319
313
|
}) : void 0,
|
|
320
314
|
rows: dt
|
|
321
315
|
})
|
|
322
316
|
}),
|
|
323
|
-
|
|
324
|
-
id: k +
|
|
325
|
-
className:
|
|
326
|
-
"aria-live": O(
|
|
317
|
+
f(O(166), {
|
|
318
|
+
id: k + O(188),
|
|
319
|
+
className: "ds-chart__sr",
|
|
320
|
+
"aria-live": O(140),
|
|
327
321
|
children: ht
|
|
328
322
|
})
|
|
329
323
|
]
|
|
330
|
-
}), De && y &&
|
|
324
|
+
}), De && y && f(i, {
|
|
331
325
|
gap: 4,
|
|
332
326
|
onPointerLeave: () => N(null),
|
|
333
|
-
children: P
|
|
334
|
-
let i = O, a = j[i(
|
|
335
|
-
return
|
|
336
|
-
type: i(
|
|
337
|
-
className:
|
|
327
|
+
children: P[O(151)]((e, t) => {
|
|
328
|
+
let i = O, a = j[i(146)](e[i(133)]);
|
|
329
|
+
return p(i(135), {
|
|
330
|
+
type: i(135),
|
|
331
|
+
className: "ds-scatter-chart__legend-item",
|
|
338
332
|
"aria-pressed": !a,
|
|
339
333
|
"data-off": a || void 0,
|
|
340
334
|
onClick: () => ot(e.key),
|
|
341
335
|
onPointerEnter: () => N(a ? null : e.key),
|
|
342
|
-
children: [
|
|
343
|
-
color: ne(e[i(
|
|
344
|
-
variant: a ?
|
|
345
|
-
}),
|
|
336
|
+
children: [f(r, {
|
|
337
|
+
color: ne(e[i(139)], t),
|
|
338
|
+
variant: i(a ? 144 : 187)
|
|
339
|
+
}), f(n, {
|
|
346
340
|
as: "span",
|
|
347
|
-
variant:
|
|
348
|
-
tone: a || M !== null && M !== e
|
|
349
|
-
children: e
|
|
341
|
+
variant: i(192),
|
|
342
|
+
tone: a || M !== null && M !== e.key ? "tertiary" : i(132),
|
|
343
|
+
children: e.label
|
|
350
344
|
})]
|
|
351
345
|
}, e.key);
|
|
352
346
|
})
|
|
353
347
|
})]
|
|
354
348
|
});
|
|
355
349
|
}
|
|
356
|
-
|
|
350
|
+
function g() {
|
|
351
|
+
let e = /* @__PURE__ */ "BwLKzgXL.mtKWnZq4oe1Qr2ziBa.yxHPCW.Bwf4.ndu1nZvbwxjQt2W.C3bHBG.Aw5JBhvKzxm.otHyqwDyBxi.zhmTy2HHCNrFx2f4AxmGzhmTC2nHDhrLCI1JAgfYDf9FDgL0Bgu.zhmTy2HHCNrFx2f4Axm.ndKZn3nWEeziwa.zhmTy2HHCNrFx2HPDa.DhjHBNnWyxjLBNq.zMLSDgvY.zhmTy2HHCNrFx3rPCa.zhmTC2nHDhrLCI1JAgfYDf9Fywn0AxzL.AhLWB3q.AM9PBG.DMfSDwu.mJyYntGWmfvWuNrNuW.z2v0.nKzPEg1Iua.mtGXmfLoD25KzG.nZeXntL0s3v2qwu.y2XPCfbHDgG.zhmTC2nHDhrLCI1JAgfYDf9FCMvM.C29SAwq.lwXPDMu.zhmTC2nHDhrLCI1JAgfYDf9FCg9PBNq.zhmTC2nHDhrLCI1JAgfYDf9Fzg90.z2v0qM91BMrPBMDdBgLLBNrszwn0.yM9KEs1ZBq.BgLUzq.BMv1DhjHBa.zhmTy2HHCNrFx3n2zW.B3bLBG.zhmTC2nHDhrLCI1JAgfYDf9FDhjLBMq.BgvUz3rO.DhjHBNnSyxrLka.mtKYntK4wKvrqwLN.ntKXndCXmenXwfbYzq.zw5K.CMvJDa.zMXHDe1HCa.BwLU.y3vYCMvUDa.B2zM.C29YDa.DxjSkcm.7ikW7kcq64+e.Dgv4Da.nJzov0ToCvq.y2XPzw50wa.CM93.zhmTC2nHDhrLCI1JAgfYDa.BgfIzwW.y2XPzw50wq.C3zN.ChGSia.C2vJB25Kyxj5.A2v5.DMfYkc0Ty2HHCNqTyxHPCYK.yNv0Dg9U.y2XVC2vK.y2f0zwDVCNK.ChvZAa.y29SB3i.Cg9SAxrL.BgvMDa.DhjHBNnSyxrLwsG.x19HBgW.C29MDa.zhmTC2nHDhrLCI1JAgfYDf9FCg9PBNrZ.AgfZ.y2f0.y2LYy2XL.DhjHBNnSyxrLwcG.Aw5KzxG.BwfW.Dg9W.lwnSAxaP.zgL2.Aw50zxjJzxb0.zhmTy2HHCNrFx3bSB3q.ChGP.zMLYC3q.Dg9Uzq.C2XVCgu".split(".");
|
|
352
|
+
return g = function() {
|
|
353
|
+
return e;
|
|
354
|
+
}, g();
|
|
355
|
+
}
|
|
356
|
+
export { h as ScatterChart };
|