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