@iamfiro/design 0.3.2 → 0.3.4
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/INDEX.md +1 -1
- package/agents/brand-icon/AGENTS.md +1 -1
- package/agents/social-login-button/AGENTS.md +4 -3
- package/lib/components/Accordion/Accordion2.js +87 -87
- package/lib/components/ActionBar/ActionBar2.js +42 -44
- package/lib/components/Alert/Alert2.js +61 -61
- package/lib/components/AppShell/AppShell2.js +70 -71
- package/lib/components/AreaChart/AreaChart.js +38 -40
- package/lib/components/BarChart/BarChart2.js +126 -126
- package/lib/components/BarList/BarList2.js +95 -95
- package/lib/components/Breadcrumb/Breadcrumb2.js +68 -66
- package/lib/components/Calendar/Calendar2.js +164 -164
- package/lib/components/Calendar/DatePicker2.js +103 -102
- package/lib/components/Calendar/date.js +64 -66
- package/lib/components/Card/Card2.js +67 -67
- package/lib/components/CardFrame/CardFrame2.js +43 -51
- package/lib/components/Chart/ChartParts.js +94 -94
- package/lib/components/Chart/chart2.js +52 -52
- package/lib/components/Chart/useChartInteraction.js +54 -54
- package/lib/components/ChatBubble/ChatBubble2.js +92 -92
- package/lib/components/ChatBubble/formatChatTime.js +35 -41
- package/lib/components/ChatComposer/ChatComposer2.js +63 -63
- package/lib/components/CodeBlock/CodeBlock2.js +61 -61
- package/lib/components/CodeBlock/highlight.js +84 -84
- package/lib/components/ColorPicker/ColorPicker2.js +387 -386
- package/lib/components/ColorPicker/color.js +71 -71
- package/lib/components/ColorPicker/presets.js +41 -46
- package/lib/components/Combobox/Combobox2.js +117 -118
- package/lib/components/CommandMenu/CommandMenu.js +127 -127
- package/lib/components/Comment/Comment2.js +86 -60
- package/lib/components/ContextMenu/ContextMenu2.js +77 -75
- package/lib/components/DataGrid/DataGrid2.js +1192 -1190
- package/lib/components/DataGrid/GridPopover.js +94 -94
- package/lib/components/DataGrid/anchor.js +34 -31
- package/lib/components/DataGrid/model.js +284 -283
- package/lib/components/DataGrid/panels.js +398 -399
- package/lib/components/DataGrid/typeMeta.js +51 -50
- package/lib/components/DataGrid/types.js +38 -39
- package/lib/components/DescriptionList/DescriptionList2.js +103 -103
- package/lib/components/Dialog/AlertDialog.js +79 -78
- package/lib/components/Dialog/Dialog2.js +59 -59
- package/lib/components/Dialog/modal.js +44 -46
- package/lib/components/Drawer/Drawer2.js +130 -129
- package/lib/components/DropdownMenu/DropdownMenu2.js +235 -233
- package/lib/components/DropdownMenu/menuCore.js +69 -42
- package/lib/components/Dropzone/Dropzone2.js +79 -78
- package/lib/components/EmptyState/EmptyState2.js +34 -35
- package/lib/components/FileChip/FileChip2.js +73 -73
- package/lib/components/FileUpload/FileUpload.js +159 -159
- package/lib/components/FilterChips/FilterChips2.js +61 -61
- package/lib/components/FunnelChart/FunnelChart2.js +161 -161
- package/lib/components/FunnelChart/funnel.js +48 -44
- package/lib/components/Highlight/Highlight2.js +43 -43
- package/lib/components/HoverCard/HoverCard.js +59 -84
- package/lib/components/InlineDiff/InlineDiff2.js +112 -112
- package/lib/components/InlineDiff/diff.js +90 -90
- package/lib/components/InlineDiff/useDiffReview.js +64 -63
- package/lib/components/Kanban/Kanban2.js +386 -387
- package/lib/components/Kanban/KanbanCard.js +70 -95
- package/lib/components/Kanban/move.js +50 -46
- package/lib/components/LineChart/LineChart2.js +211 -211
- package/lib/components/List/List2.js +53 -54
- package/lib/components/Listbox/Listbox2.js +115 -115
- package/lib/components/Marker/Marker2.js +56 -61
- package/lib/components/Menubar/Menubar2.js +144 -141
- package/lib/components/MultiSelect/MultiSelect2.js +108 -108
- package/lib/components/NavigationMenu/NavigationMenu2.js +298 -299
- package/lib/components/NoticeStack/NoticeStack2.js +84 -84
- package/lib/components/NumberStepper/NumberStepper2.js +65 -66
- package/lib/components/OtpInput/OtpInput2.js +70 -69
- package/lib/components/Pagination/Pagination2.js +106 -106
- package/lib/components/Pagination/paginationRange.js +37 -39
- package/lib/components/PhoneInput/PhoneInput.js +87 -88
- package/lib/components/PieChart/PieChart2.js +160 -160
- package/lib/components/PieChart/arc.js +65 -62
- package/lib/components/PieChart/useArcTween.js +53 -60
- package/lib/components/Popover/Popover2.js +62 -62
- package/lib/components/ProgressTracker/ProgressTracker2.js +121 -121
- package/lib/components/Rating/Rating2.js +82 -81
- package/lib/components/Resizable/Resizable2.js +126 -127
- package/lib/components/Resizable/layout.js +73 -73
- package/lib/components/ScaledPreview/ScaledPreview2.js +68 -67
- package/lib/components/ScatterChart/ScatterChart2.js +214 -213
- package/lib/components/ScatterChart/scatter.js +47 -49
- package/lib/components/ScrollArea/ScrollArea2.js +117 -118
- package/lib/components/Select/Select2.js +78 -79
- package/lib/components/Sidebar/Sidebar2.js +69 -69
- package/lib/components/Skeleton/Skeleton2.js +57 -57
- package/lib/components/Slider/Slider2.js +73 -74
- package/lib/components/SocialLoginButton/SocialLoginButton.js +76 -68
- package/lib/components/SparkChart/SparkChart2.js +145 -145
- package/lib/components/SparkChart/spark.js +64 -42
- package/lib/components/Sparkbar/Sparkbar2.js +60 -60
- package/lib/components/SplitView/SplitView2.js +51 -52
- package/lib/components/Stat/Stat2.js +90 -90
- package/lib/components/StepList/StepList2.js +70 -70
- package/lib/components/Table/Table2.js +70 -70
- package/lib/components/Tabs/Tabs2.js +81 -81
- package/lib/components/TagInput/TagInput2.js +220 -217
- package/lib/components/TimePicker/TimePicker2.js +187 -186
- package/lib/components/TimePicker/time.js +63 -62
- package/lib/components/Timeline/Timeline2.js +199 -199
- package/lib/components/Timeline/scale.js +67 -64
- package/lib/components/Toast/Toaster.js +100 -98
- package/lib/components/Toast/store.js +90 -94
- package/lib/components/ToggleGroup/ToggleGroup2.js +76 -76
- package/lib/components/Toolbar/Toolbar2.js +163 -161
- package/lib/components/Tracker/Tracker2.js +82 -82
- package/lib/components/TreeDiagram/TreeDiagram2.js +123 -124
- package/lib/components/TreeView/TreeView2.js +154 -152
- package/lib/hooks/timing.js +31 -30
- package/lib/hooks/useControllableState.js +37 -38
- package/lib/hooks/useCountdown.js +53 -56
- package/lib/hooks/useDigitInput.js +66 -41
- package/lib/hooks/useDismiss.js +55 -58
- package/lib/hooks/useElapsed.js +57 -55
- package/lib/hooks/useFloating.js +44 -44
- package/lib/hooks/useFocusTrap.js +70 -46
- package/lib/hooks/usePresence.js +23 -22
- package/lib/hooks/usePressToOpen.js +51 -51
- package/lib/hooks/useScrollLock.js +57 -58
- package/lib/hooks/useSelection.js +49 -52
- package/lib/index.js +65 -65
- package/lib/primitives/AspectRatio2.js +57 -57
- package/lib/primitives/BrandIcon.js +189 -158
- package/lib/primitives/ColorDot2.js +50 -45
- package/lib/primitives/CopyButton2.js +52 -50
- package/lib/primitives/CountBadge2.js +53 -55
- package/lib/primitives/Countdown2.js +28 -25
- package/lib/primitives/Delta2.js +41 -41
- package/lib/primitives/Elapsed.js +47 -47
- package/lib/primitives/FileIcon2.js +86 -86
- package/lib/primitives/Flag2.js +122 -122
- package/lib/primitives/IconStack2.js +55 -31
- package/lib/primitives/IconTile2.js +43 -43
- package/lib/primitives/Kbd2.js +55 -55
- package/lib/primitives/Layout2.js +78 -78
- package/lib/primitives/Link2.js +39 -36
- package/lib/primitives/MaskedText2.js +74 -52
- package/lib/primitives/Progress2.js +67 -66
- package/lib/primitives/RelativeTime.js +54 -61
- package/lib/primitives/SearchInput2.js +45 -45
- package/lib/primitives/SelectorButton2.js +72 -76
- package/lib/primitives/Spinner2.js +56 -56
- package/lib/primitives/StatusIcon2.js +63 -63
- package/lib/primitives/Swatch2.js +55 -61
- package/lib/primitives/Tooltip2.js +78 -78
- package/lib/primitives/Typography2.js +53 -53
- package/lib/primitives/formatCountdown.js +30 -29
- package/lib/primitives/formatElapsed.js +46 -49
- package/lib/primitives/formatRelativeTime.js +76 -50
- package/lib/primitives/hotkey.js +80 -80
- package/lib/primitives/index.js +169 -168
- package/lib/primitives/maskValue.js +55 -50
- package/lib/style.css +1 -1
- package/lib/types/components/SocialLoginButton/SocialLoginButton.d.ts +1 -1
- package/lib/types/primitives/BrandIcon.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,299 +1,300 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
const e =
|
|
3
|
-
function
|
|
4
|
-
|
|
5
|
-
let r = c(), i = r[e];
|
|
6
|
-
t.wndfKh === void 0 && (t.IPkEYz = function(e) {
|
|
7
|
-
let t = "", n = "";
|
|
8
|
-
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);
|
|
9
|
-
for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
|
|
10
|
-
return decodeURIComponent(n);
|
|
11
|
-
}, t.ykZajE = {}, t.wndfKh = !0);
|
|
12
|
-
let a = r[0];
|
|
13
|
-
t.DzlMYd !== a && (t.ykZajE = {}, t.DzlMYd = a);
|
|
14
|
-
let o = t.ykZajE[e];
|
|
15
|
-
return o === void 0 ? (i = t.IPkEYz(i), t.ykZajE[e] = i) : i = o, i;
|
|
16
|
-
}
|
|
17
|
-
(function(e, n) {
|
|
18
|
-
let r = t, i = e();
|
|
2
|
+
const e = d;
|
|
3
|
+
(function(e, t) {
|
|
4
|
+
let n = d, r = e();
|
|
19
5
|
for (;;) try {
|
|
20
|
-
if (parseInt(
|
|
21
|
-
|
|
6
|
+
if (parseInt(n(319)) / 1 * (parseInt(n(293)) / 2) + parseInt(n(351)) / 3 * (-parseInt(n(287)) / 4) + parseInt(n(295)) / 5 + parseInt(n(342)) / 6 + parseInt(n(365)) / 7 + -parseInt(n(330)) / 8 * (-parseInt(n(355)) / 9) + -parseInt(n(340)) / 10 == t) break;
|
|
7
|
+
r.push(r.shift());
|
|
22
8
|
} catch {
|
|
23
|
-
|
|
9
|
+
r.push(r.shift());
|
|
24
10
|
}
|
|
25
|
-
})(
|
|
26
|
-
import { Text as
|
|
27
|
-
import { ColorDot as
|
|
28
|
-
import { Inline as
|
|
29
|
-
import { useControllableState as
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
return c = function() {
|
|
11
|
+
})(o, 206237);
|
|
12
|
+
import { Text as t } from "../../primitives/Typography2.js";
|
|
13
|
+
import { ColorDot as n } from "../../primitives/ColorDot2.js";
|
|
14
|
+
import { Inline as r, Stack as i } from "../../primitives/Layout2.js";
|
|
15
|
+
import { useControllableState as a } from "../../hooks/useControllableState.js";
|
|
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() {
|
|
34
19
|
return e;
|
|
35
|
-
},
|
|
20
|
+
}, o();
|
|
36
21
|
}
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
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";
|
|
39
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) {
|
|
30
|
+
let t = "", n = "";
|
|
31
|
+
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
|
+
for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
|
|
33
|
+
return decodeURIComponent(n);
|
|
34
|
+
}, d.PcwPOH = {}, d.WnvoKO = !0);
|
|
35
|
+
let i = n[0];
|
|
36
|
+
d.nMyyQG !== i && (d.PcwPOH = {}, d.nMyyQG = i);
|
|
37
|
+
let a = d.PcwPOH[e];
|
|
38
|
+
return a === void 0 ? (r = d.aUESST(r), d.PcwPOH[e] = r) : r = a, r;
|
|
39
|
+
}
|
|
40
40
|
import { linearRegression as oe, niceRangeTicks as se } from "./scatter.js";
|
|
41
41
|
/* empty css */
|
|
42
42
|
import { useId as ce, useMemo as f, useRef as le, useState as ue } from "react";
|
|
43
43
|
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
44
44
|
var de = 12, h = 10, fe = 28, pe = 14, me = 560, he = [];
|
|
45
|
-
function g({ data:
|
|
46
|
-
let
|
|
47
|
-
let e =
|
|
45
|
+
function g({ data: o, 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(329), className: Fe, style: Ie }) {
|
|
46
|
+
let O = e, k = ce(), [A, Le] = a(Oe, ke, Ae), j = new Set(A), [M, N] = ue(null), P = f(() => {
|
|
47
|
+
let e = d;
|
|
48
48
|
if (b) return b;
|
|
49
49
|
if (!y) return [{
|
|
50
50
|
key: "",
|
|
51
51
|
label: w ?? _
|
|
52
52
|
}];
|
|
53
|
-
let
|
|
54
|
-
for (let
|
|
55
|
-
let r = String(
|
|
56
|
-
|
|
53
|
+
let t = [];
|
|
54
|
+
for (let n of o) {
|
|
55
|
+
let r = String(n[y] ?? "");
|
|
56
|
+
t[e(290)](r) || t.push(r);
|
|
57
57
|
}
|
|
58
|
-
return
|
|
58
|
+
return t[e(289)]((e) => ({
|
|
59
59
|
key: e,
|
|
60
60
|
label: e
|
|
61
61
|
}));
|
|
62
62
|
}, [
|
|
63
63
|
b,
|
|
64
64
|
y,
|
|
65
|
-
|
|
65
|
+
o,
|
|
66
66
|
w,
|
|
67
67
|
_
|
|
68
|
-
]),
|
|
69
|
-
let e =
|
|
70
|
-
return
|
|
71
|
-
let i = e, a =
|
|
68
|
+
]), F = f(() => {
|
|
69
|
+
let e = d, t = new Map(P.map((e, t) => [e.key, t]));
|
|
70
|
+
return o[e(303)]((n, r) => {
|
|
71
|
+
let i = e, a = u(n, g), o = u(n, _);
|
|
72
72
|
if (a === null || o === null) return [];
|
|
73
|
-
let s = y ? String(
|
|
73
|
+
let s = y ? String(n[y] ?? "") : "", c = t[i(368)](s);
|
|
74
74
|
return c === void 0 ? [] : [{
|
|
75
75
|
index: r,
|
|
76
|
-
row:
|
|
76
|
+
row: n,
|
|
77
77
|
x: a,
|
|
78
78
|
y: o,
|
|
79
|
-
s: v ?
|
|
79
|
+
s: v ? u(n, v) : null,
|
|
80
80
|
cat: s,
|
|
81
81
|
ci: c
|
|
82
82
|
}];
|
|
83
|
-
})
|
|
83
|
+
})[e(358)]((e, t) => e.x - t.x || e.y - t.y);
|
|
84
84
|
}, [
|
|
85
|
-
|
|
85
|
+
o,
|
|
86
86
|
g,
|
|
87
87
|
_,
|
|
88
88
|
v,
|
|
89
89
|
y,
|
|
90
|
-
|
|
91
|
-
]),
|
|
92
|
-
count:
|
|
93
|
-
activeIndex:
|
|
94
|
-
defaultActiveIndex:
|
|
95
|
-
onActiveIndexChange:
|
|
96
|
-
initialKeyboardIndex:
|
|
97
|
-
}),
|
|
98
|
-
let e =
|
|
99
|
-
return se(n, r, _e, !
|
|
90
|
+
P
|
|
91
|
+
]), Re = F[O(291)]((e) => !j.has(e[O(360)]))[O(350)], { open: ze, shown: Be, settled: Ve, width: I, tipRef: He, tipSize: L, hover: Ue, leave: We, plotProps: Ge } = ae({
|
|
92
|
+
count: Re,
|
|
93
|
+
activeIndex: je,
|
|
94
|
+
defaultActiveIndex: Me,
|
|
95
|
+
onActiveIndexChange: Ne,
|
|
96
|
+
initialKeyboardIndex: O(332)
|
|
97
|
+
}), R = f(() => {
|
|
98
|
+
let e = O, t = [...F.map((e) => e.x), ...D?.[e(291)]((t) => t[e(299)] === "x")[e(289)]((e) => e.value) ?? []], [n, r] = T ?? (t[e(350)] ? [Math.min(...t), Math[e(298)](...t)] : [0, 1]);
|
|
99
|
+
return se(n, r, _e, !T);
|
|
100
100
|
}, [
|
|
101
|
-
|
|
101
|
+
F,
|
|
102
|
+
D,
|
|
102
103
|
T,
|
|
103
|
-
ye,
|
|
104
104
|
_e
|
|
105
|
-
]),
|
|
106
|
-
let e =
|
|
107
|
-
return se(n, r, ve, !
|
|
105
|
+
]), z = f(() => {
|
|
106
|
+
let e = O, t = [...F[e(289)]((e) => e.y), ...D?.[e(291)]((t) => t[e(299)] === "y")[e(289)]((t) => t[e(282)]) ?? []], [n, r] = E ?? (t[e(350)] ? [Math[e(357)](...t), Math.max(...t)] : [0, 1]);
|
|
107
|
+
return se(n, r, ve, !E);
|
|
108
108
|
}, [
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
109
|
+
F,
|
|
110
|
+
D,
|
|
111
|
+
E,
|
|
112
112
|
ve
|
|
113
|
-
]),
|
|
113
|
+
]), Ke = Math[O(298)](0, ...F[O(289)]((e) => e.s ?? 0)), B = w ? 28 : 10, qe = 28 + (C ? 20 : 0), Je = te(z[O(289)](Ee)), V = Je, H = Math[O(298)](0, I - Je - de), U = Math[O(298)](0, S - B - qe), W = B + U, [G, Ye] = [R[0], R[R[O(350)] - 1]], [Xe, Ze] = [z[0], z[z[O(350)] - 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(298)](ye[0], ye[1] * Math[O(349)](Math[O(298)](0, e) / Ke)) : be, $e = ie(R.length, H, 64), et = F[O(289)]((e) => ({
|
|
114
114
|
...e,
|
|
115
|
-
cx:
|
|
116
|
-
cy:
|
|
117
|
-
r:
|
|
118
|
-
color:
|
|
119
|
-
})), tt =
|
|
120
|
-
let t =
|
|
121
|
-
return n ? "M" + G
|
|
122
|
-
}, rt =
|
|
123
|
-
key: e
|
|
124
|
-
d: nt(
|
|
125
|
-
color:
|
|
126
|
-
off:
|
|
127
|
-
})) :
|
|
128
|
-
key:
|
|
115
|
+
cx: K(e.x),
|
|
116
|
+
cy: q(e.y),
|
|
117
|
+
r: Qe(e.s),
|
|
118
|
+
color: ne(P[e.ci].color, e.ci)
|
|
119
|
+
})), tt = et[O(291)]((e) => !j.has(e.cat)), J = Be === null ? void 0 : tt[Be], Y = ze && J !== void 0, nt = (e) => {
|
|
120
|
+
let t = O, n = oe(e);
|
|
121
|
+
return n ? "M" + K(G) + "," + q(n[t(338)] + n[t(369)] * G) + "L" + K(Ye) + "," + q(n[t(338)] + n.slope * Ye) : null;
|
|
122
|
+
}, rt = xe === O(341) ? P[O(289)]((e, t) => ({
|
|
123
|
+
key: e[O(328)],
|
|
124
|
+
d: nt(et.filter((t) => t[O(360)] === e[O(328)])),
|
|
125
|
+
color: ne(e[O(345)], t),
|
|
126
|
+
off: j[O(315)](e[O(328)])
|
|
127
|
+
})) : xe ? [{
|
|
128
|
+
key: O(300),
|
|
129
129
|
d: nt(tt),
|
|
130
|
-
color:
|
|
130
|
+
color: O(367),
|
|
131
131
|
off: !1
|
|
132
132
|
}] : [], X = le(!1), it = (e) => {
|
|
133
|
-
let t =
|
|
134
|
-
tt
|
|
135
|
-
let s = Math[t(
|
|
133
|
+
let t = O, n = e[t(326)][t(317)](), r = e.clientX - n[t(283)], i = e[t(304)] - n[t(284)], a = -1, o = Infinity;
|
|
134
|
+
tt.forEach((e, n) => {
|
|
135
|
+
let s = Math[t(353)](e.cx - r, e.cy - i) - e.r;
|
|
136
136
|
s < o && (o = s, a = n);
|
|
137
|
-
}), a >= 0 && o <= fe ? (X
|
|
137
|
+
}), a >= 0 && o <= fe ? (X.current = !0, Ue(a)) : X[t(333)] && (X[t(333)] = !1, We());
|
|
138
138
|
}, at = () => {
|
|
139
|
-
|
|
139
|
+
let e = O;
|
|
140
|
+
X[e(333)] = !1, We();
|
|
140
141
|
}, ot = (e) => {
|
|
141
|
-
let t =
|
|
142
|
-
!n &&
|
|
143
|
-
}, Z = J ?
|
|
142
|
+
let t = O, n = j[t(315)](e);
|
|
143
|
+
!n && M === e && N(null), Le(n ? A[t(291)]((t) => t !== e) : [...A, e]);
|
|
144
|
+
}, Z = J ? P[J.ci] : void 0, st = C ?? g, ct = w ?? _, lt = ge ?? v ?? "", ut = J ? x ? String(J[O(343)][x] ?? "") : Z?.[O(364)] : null, dt = J ? [
|
|
144
145
|
{
|
|
145
146
|
key: "x",
|
|
146
147
|
label: st,
|
|
147
|
-
color: J
|
|
148
|
-
value:
|
|
148
|
+
color: J[O(345)],
|
|
149
|
+
value: Se(J.x, J[O(343)])
|
|
149
150
|
},
|
|
150
151
|
{
|
|
151
152
|
key: "y",
|
|
152
153
|
label: ct,
|
|
153
154
|
color: J.color,
|
|
154
|
-
value:
|
|
155
|
+
value: Ce(J.y, J[O(343)])
|
|
155
156
|
},
|
|
156
157
|
...v && J.s !== null ? [{
|
|
157
|
-
key:
|
|
158
|
+
key: O(322),
|
|
158
159
|
label: lt,
|
|
159
|
-
color: J[
|
|
160
|
-
value:
|
|
160
|
+
color: J[O(345)],
|
|
161
|
+
value: we(J.s, J.row)
|
|
161
162
|
}] : []
|
|
162
|
-
] : [], Q = J?.cx ?? 0, ft = J?.cy ?? 0, $ = J?.r ?? 0, pt = Q + $ + h +
|
|
163
|
-
return m(
|
|
163
|
+
] : [], Q = J?.cx ?? 0, ft = J?.cy ?? 0, $ = J?.r ?? 0, pt = Q + $ + h + L.w > I ? Math.max(0, Q - $ - h - L.w) : Q + $ + h, mt = Math[O(357)](Math[O(298)](0, ft - L.h / 2), Math.max(0, S - L.h)), ht = Y && J ? "" + (ut ?? "") + (x && y && Z ? " (" + Z[O(364)] + ")" : "") + ": " + dt.map((e) => e[O(364)] + " " + e[O(282)])[O(309)](", ") : "", gt = O(312) + k + O(344);
|
|
164
|
+
return m(i, {
|
|
164
165
|
gap: 3,
|
|
165
|
-
className: s(
|
|
166
|
-
style:
|
|
167
|
-
children: [m(
|
|
168
|
-
...
|
|
169
|
-
className:
|
|
166
|
+
className: s(O(335), O(320), Fe),
|
|
167
|
+
style: Ie,
|
|
168
|
+
children: [m(O(305), {
|
|
169
|
+
...Ge,
|
|
170
|
+
className: "ds-chart__plot",
|
|
170
171
|
style: { height: S },
|
|
171
|
-
"aria-roledescription":
|
|
172
|
-
"aria-label":
|
|
173
|
-
"aria-describedby":
|
|
172
|
+
"aria-roledescription": O(329),
|
|
173
|
+
"aria-label": Pe,
|
|
174
|
+
"aria-describedby": k + O(346),
|
|
174
175
|
children: [
|
|
175
|
-
|
|
176
|
-
className:
|
|
177
|
-
width:
|
|
176
|
+
I > 0 && m(O(325), {
|
|
177
|
+
className: O(281),
|
|
178
|
+
width: I,
|
|
178
179
|
height: S,
|
|
179
180
|
"aria-hidden": !0,
|
|
180
181
|
children: [
|
|
181
|
-
p(
|
|
182
|
-
id:
|
|
183
|
-
children: p(
|
|
184
|
-
x:
|
|
185
|
-
y:
|
|
186
|
-
width:
|
|
187
|
-
height:
|
|
182
|
+
p(O(324), { children: p("clipPath", {
|
|
183
|
+
id: k + O(314),
|
|
184
|
+
children: p(O(296), {
|
|
185
|
+
x: V,
|
|
186
|
+
y: B,
|
|
187
|
+
width: H,
|
|
188
|
+
height: U
|
|
188
189
|
})
|
|
189
190
|
}) }),
|
|
190
191
|
w && p("text", {
|
|
191
|
-
className:
|
|
192
|
+
className: O(302),
|
|
192
193
|
x: 0,
|
|
193
194
|
y: 12,
|
|
194
|
-
dominantBaseline:
|
|
195
|
+
dominantBaseline: "middle",
|
|
195
196
|
children: w
|
|
196
197
|
}),
|
|
197
|
-
C && p(
|
|
198
|
-
className:
|
|
199
|
-
x:
|
|
198
|
+
C && p(O(348), {
|
|
199
|
+
className: O(302),
|
|
200
|
+
x: V + H,
|
|
200
201
|
y: S - 4,
|
|
201
|
-
textAnchor:
|
|
202
|
+
textAnchor: O(362),
|
|
202
203
|
children: C
|
|
203
204
|
}),
|
|
204
|
-
|
|
205
|
-
className:
|
|
206
|
-
x1:
|
|
207
|
-
x2:
|
|
208
|
-
y1:
|
|
209
|
-
y2:
|
|
210
|
-
}), p(
|
|
211
|
-
className:
|
|
205
|
+
z.map((e) => m("g", { children: [p(O(311), {
|
|
206
|
+
className: O(297),
|
|
207
|
+
x1: V,
|
|
208
|
+
x2: V + H,
|
|
209
|
+
y1: q(e),
|
|
210
|
+
y2: q(e)
|
|
211
|
+
}), p(O(348), {
|
|
212
|
+
className: O(321),
|
|
212
213
|
x: 0,
|
|
213
|
-
y:
|
|
214
|
-
dominantBaseline:
|
|
215
|
-
children:
|
|
214
|
+
y: q(e),
|
|
215
|
+
dominantBaseline: O(301),
|
|
216
|
+
children: Ee(e)
|
|
216
217
|
})] }, e)),
|
|
217
|
-
|
|
218
|
+
R.map((e, t) => t % $e === 0 || t === R[O(350)] - 1 ? p(O(348), {
|
|
218
219
|
className: "ds-chart__axis",
|
|
219
|
-
x:
|
|
220
|
-
y:
|
|
221
|
-
textAnchor: t ===
|
|
222
|
-
children:
|
|
220
|
+
x: K(e),
|
|
221
|
+
y: W + 20,
|
|
222
|
+
textAnchor: t === R.length - 1 ? O(362) : O(301),
|
|
223
|
+
children: Te(e)
|
|
223
224
|
}, e) : null),
|
|
224
|
-
|
|
225
|
-
let n =
|
|
225
|
+
D?.[O(289)]((e, t) => {
|
|
226
|
+
let n = O, r = ee[e[n(356)] ?? n(339)], i = e[n(299)] === "y";
|
|
226
227
|
return m("g", {
|
|
227
|
-
className:
|
|
228
|
-
style: { transform: i ? n(
|
|
229
|
-
children: [i ? p(n(
|
|
230
|
-
x1:
|
|
231
|
-
x2:
|
|
228
|
+
className: "ds-scatter-chart__ref",
|
|
229
|
+
style: { transform: i ? n(337) + q(e[n(282)]) + "px)" : n(361) + K(e[n(282)]) + n(359) },
|
|
230
|
+
children: [i ? p(n(311), {
|
|
231
|
+
x1: V,
|
|
232
|
+
x2: V + H,
|
|
232
233
|
y1: 0,
|
|
233
234
|
y2: 0,
|
|
234
235
|
style: { stroke: r }
|
|
235
|
-
}) : p(n(
|
|
236
|
+
}) : p(n(311), {
|
|
236
237
|
x1: 0,
|
|
237
238
|
x2: 0,
|
|
238
|
-
y1:
|
|
239
|
-
y2:
|
|
239
|
+
y1: B,
|
|
240
|
+
y2: W,
|
|
240
241
|
style: { stroke: r }
|
|
241
|
-
}), e[n(
|
|
242
|
-
className: n(
|
|
243
|
-
x: i ?
|
|
244
|
-
y: i ? -5 :
|
|
245
|
-
textAnchor:
|
|
242
|
+
}), e[n(364)] && p("text", {
|
|
243
|
+
className: n(321),
|
|
244
|
+
x: i ? V + H : 5,
|
|
245
|
+
y: i ? -5 : B + 10,
|
|
246
|
+
textAnchor: i ? "end" : n(354),
|
|
246
247
|
style: { fill: r },
|
|
247
|
-
children: e[n(
|
|
248
|
+
children: e[n(364)]
|
|
248
249
|
})]
|
|
249
250
|
}, t);
|
|
250
251
|
}),
|
|
251
|
-
rt
|
|
252
|
+
rt.length > 0 && p("g", {
|
|
252
253
|
clipPath: gt,
|
|
253
|
-
children: rt[
|
|
254
|
-
className:
|
|
254
|
+
children: rt[O(289)]((e) => e.d ? p(O(306), {
|
|
255
|
+
className: O(336),
|
|
255
256
|
d: e.d,
|
|
256
|
-
style: { stroke: e
|
|
257
|
-
"data-hidden": e
|
|
258
|
-
}, e[
|
|
257
|
+
style: { stroke: e.color },
|
|
258
|
+
"data-hidden": e[O(279)] || void 0
|
|
259
|
+
}, e[O(328)]) : null)
|
|
259
260
|
}),
|
|
260
261
|
p("g", {
|
|
261
|
-
className:
|
|
262
|
-
children:
|
|
263
|
-
let n =
|
|
262
|
+
className: O(286),
|
|
263
|
+
children: et.map((e, t) => {
|
|
264
|
+
let n = O, r = j.has(e[n(360)]), i = !r && (Y && J?.[n(352)] !== e[n(352)] || M !== null && M !== e[n(360)]);
|
|
264
265
|
return p("g", {
|
|
265
|
-
className: n(
|
|
266
|
+
className: n(370),
|
|
266
267
|
"data-hidden": r || void 0,
|
|
267
268
|
"data-dimmed": i || void 0,
|
|
268
|
-
style: { transform: n(
|
|
269
|
+
style: { transform: n(285) + e.cx + "px, " + e.cy + "px)" },
|
|
269
270
|
children: p("g", {
|
|
270
|
-
className: n(
|
|
271
|
+
className: n(366),
|
|
271
272
|
style: { animationDelay: Math.min(t * pe, me) + "ms" },
|
|
272
|
-
children: p(
|
|
273
|
+
children: p(n(294), {
|
|
273
274
|
className: "ds-scatter-chart__dot",
|
|
274
275
|
r: e.r,
|
|
275
276
|
fill: e.color,
|
|
276
277
|
"data-bubble": v ? "" : void 0
|
|
277
278
|
})
|
|
278
279
|
})
|
|
279
|
-
}, e[n(
|
|
280
|
+
}, e[n(352)]);
|
|
280
281
|
})
|
|
281
282
|
}),
|
|
282
283
|
p("g", {
|
|
283
|
-
className:
|
|
284
|
-
"data-state": Y ?
|
|
285
|
-
"data-settled":
|
|
286
|
-
style: { transform:
|
|
287
|
-
children: p(
|
|
284
|
+
className: O(347),
|
|
285
|
+
"data-state": Y ? "open" : O(310),
|
|
286
|
+
"data-settled": Ve || void 0,
|
|
287
|
+
style: { transform: "translate(" + Q + O(323) + ft + O(359) },
|
|
288
|
+
children: p(O(294), {
|
|
288
289
|
r: $ * 1.2 + 2,
|
|
289
|
-
fill: J?.[
|
|
290
|
+
fill: J?.[O(345)] ?? O(292)
|
|
290
291
|
})
|
|
291
292
|
}),
|
|
292
|
-
p(
|
|
293
|
-
className:
|
|
293
|
+
p("rect", {
|
|
294
|
+
className: O(363),
|
|
294
295
|
x: 0,
|
|
295
296
|
y: 0,
|
|
296
|
-
width:
|
|
297
|
+
width: I,
|
|
297
298
|
height: S,
|
|
298
299
|
onPointerMove: it,
|
|
299
300
|
onPointerDown: it,
|
|
@@ -301,53 +302,53 @@ function g({ data: c, xKey: g, yKey: _, sizeKey: v, categoryKey: y, categories:
|
|
|
301
302
|
})
|
|
302
303
|
]
|
|
303
304
|
}),
|
|
304
|
-
p(
|
|
305
|
-
ref:
|
|
306
|
-
className:
|
|
307
|
-
"data-state":
|
|
308
|
-
"data-settled":
|
|
309
|
-
style: { transform:
|
|
305
|
+
p("div", {
|
|
306
|
+
ref: He,
|
|
307
|
+
className: O(316),
|
|
308
|
+
"data-state": Y ? "open" : O(310),
|
|
309
|
+
"data-settled": Ve || void 0,
|
|
310
|
+
style: { transform: O(285) + pt + O(323) + mt + O(359) },
|
|
310
311
|
"aria-hidden": !0,
|
|
311
|
-
children: p(
|
|
312
|
+
children: p(c, {
|
|
312
313
|
title: ut,
|
|
313
|
-
value: x && y && Z ? p(
|
|
314
|
-
as:
|
|
315
|
-
variant:
|
|
316
|
-
tone:
|
|
317
|
-
children: Z
|
|
314
|
+
value: x && y && Z ? p(t, {
|
|
315
|
+
as: O(280),
|
|
316
|
+
variant: O(327),
|
|
317
|
+
tone: O(308),
|
|
318
|
+
children: Z[O(364)]
|
|
318
319
|
}) : void 0,
|
|
319
320
|
rows: dt
|
|
320
321
|
})
|
|
321
322
|
}),
|
|
322
|
-
p(
|
|
323
|
-
id:
|
|
324
|
-
className:
|
|
325
|
-
"aria-live":
|
|
323
|
+
p(O(280), {
|
|
324
|
+
id: k + "-live",
|
|
325
|
+
className: O(334),
|
|
326
|
+
"aria-live": O(288),
|
|
326
327
|
children: ht
|
|
327
328
|
})
|
|
328
329
|
]
|
|
329
|
-
}),
|
|
330
|
+
}), De && y && p(r, {
|
|
330
331
|
gap: 4,
|
|
331
|
-
onPointerLeave: () =>
|
|
332
|
-
children:
|
|
333
|
-
let i =
|
|
334
|
-
return m(i(
|
|
335
|
-
type: i(
|
|
336
|
-
className:
|
|
332
|
+
onPointerLeave: () => N(null),
|
|
333
|
+
children: P.map((e, r) => {
|
|
334
|
+
let i = O, a = j[i(315)](e[i(328)]);
|
|
335
|
+
return m(i(307), {
|
|
336
|
+
type: i(307),
|
|
337
|
+
className: i(331),
|
|
337
338
|
"aria-pressed": !a,
|
|
338
339
|
"data-off": a || void 0,
|
|
339
|
-
onClick: () => ot(e
|
|
340
|
-
onPointerEnter: () =>
|
|
341
|
-
children: [p(
|
|
342
|
-
color:
|
|
343
|
-
variant: a ? "soft" : i(
|
|
344
|
-
}), p(
|
|
345
|
-
as:
|
|
346
|
-
variant:
|
|
347
|
-
tone: a ||
|
|
348
|
-
children: e[i(
|
|
340
|
+
onClick: () => ot(e.key),
|
|
341
|
+
onPointerEnter: () => N(a ? null : e.key),
|
|
342
|
+
children: [p(n, {
|
|
343
|
+
color: ne(e[i(345)], r),
|
|
344
|
+
variant: a ? "soft" : i(318)
|
|
345
|
+
}), p(t, {
|
|
346
|
+
as: "span",
|
|
347
|
+
variant: "body-sm",
|
|
348
|
+
tone: a || M !== null && M !== e[i(328)] ? i(313) : i(308),
|
|
349
|
+
children: e[i(364)]
|
|
349
350
|
})]
|
|
350
|
-
}, e
|
|
351
|
+
}, e.key);
|
|
351
352
|
})
|
|
352
353
|
})]
|
|
353
354
|
});
|