@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,137 +1,137 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
const e =
|
|
2
|
+
const e = f;
|
|
3
3
|
(function(e, t) {
|
|
4
|
-
let n =
|
|
4
|
+
let n = f, r = e();
|
|
5
5
|
for (;;) try {
|
|
6
|
-
if (
|
|
6
|
+
if (parseInt(n(327)) / 1 * (-parseInt(n(331)) / 2) + parseInt(n(337)) / 3 * (-parseInt(n(363)) / 4) + -parseInt(n(350)) / 5 + -parseInt(n(339)) / 6 + parseInt(n(364)) / 7 + parseInt(n(326)) / 8 + parseInt(n(315)) / 9 * (parseInt(n(325)) / 10) == t) break;
|
|
7
7
|
r.push(r.shift());
|
|
8
8
|
} catch {
|
|
9
9
|
r.push(r.shift());
|
|
10
10
|
}
|
|
11
|
-
})(
|
|
11
|
+
})(o, 919290);
|
|
12
12
|
import { Text as t } from "../../primitives/Typography2.js";
|
|
13
13
|
import { ColorDot as n } from "../../primitives/ColorDot2.js";
|
|
14
14
|
import { Inline as r, Stack as i } from "../../primitives/Layout2.js";
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
import { cx as a } from "../../primitives/index.js";
|
|
16
|
+
function o() {
|
|
17
|
+
let e = /* @__PURE__ */ "y2XPzw50wa.zhmTzNvUBMvSlwnOyxj0x19Iyw5K.z2v0qM91BMrPBMDdBgLLBNrszwn0.DxjSkcm.ngDtqwTcva.mtaYodi1mtbRyLz3B0y.DhjHBNnSyxrLwcG.zhmTzNvUBMvSlwnOyxj0x192ywX1zq.zMXVB3i.DMfYkc0Ty2HHCNqTC2vXlq.lcdSNBtTG4GG.BwfW.zMLYC3q.Ag9YAxPVBNrHBa.zhmTy2HHCNq.B3bLBG.DMfSDwu.BwLK.zNjVBvbYzxzPB3vZ.zhmTy2HHCNrFx3n2zYbKCY1MDw5UzwWTy2HHCNrFx3n2zW.A2v5.ChjLDMLVDxm.7y2864sqioYWQo2kUa.zhmTy2HHCNrFx3nY.ChGP.Dgv4Da.mZm2nZK4odfurePztKK.zhjVCfjHDgu.zhmTy2HHCNrFx3rPCa.y2vPBa.DhjHBNnSyxrLka.y3vYCMvUDfrHCMDLDa.ChGSia.BwLKzgXL.idmWjsWGDMfYkc0TC3vYzMfJzsKP.lwXPDMu.mtbjD2HLCwC.nJG1mtC2oeP0r2Ttra.mvDNuKP6CG.BgfIzwW.y29SB3i.Bwf4.mty4ndG0y0vpqMHW.zhjVCa.y2XPzw50wq.Cgf0DgvYBG.zhmTzNvUBMvSlwnOyxj0x19ZDgvW.zhmTzNvUBMvSlwnOyxj0x19SywjLBa.ntq5ndq0m3jLuKDbCq.yM9KEs1ZBq.otq3mtK0oeHVCfzezq.zhmTzNvUBMvSlwnOyxj0.y2XVC2vK.7lkRioUlQoQZHcdRJidRUyq.D2LKDgG.imk3ia.BgvUz3rO.zw5K.zhmTy2HHCNrFx3bSB3q.BwLU.BgLUzq.odi2oty5nuTvsNbfvW.C3bHBG.Cgf0Aa.zgL2.lwHHDgnOlq.DhjHBNnSyxrLwsG.y29UDMvYC2LVBG.CMvJDa.7j207kceioUlQoQZHcdRJidRUyq".split(".");
|
|
18
|
+
return o = function() {
|
|
18
19
|
return e;
|
|
19
|
-
},
|
|
20
|
+
}, o();
|
|
20
21
|
}
|
|
21
|
-
import { cx as o } from "../../primitives/index.js";
|
|
22
22
|
import { ChartTooltip as ee } from "../Chart/ChartParts.js";
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
import { barPath as s, chartColor as c, formatNumber as te, formatPercent as ne } from "../Chart/chart2.js";
|
|
24
|
+
import { useChartInteraction as l } from "../Chart/useChartInteraction.js";
|
|
25
|
+
import { estimateTextWidth as u, funnelStats as re, hBarPath as d } from "./funnel.js";
|
|
26
|
+
function f(e, t) {
|
|
27
|
+
e -= 300;
|
|
28
|
+
let n = o(), r = n[e];
|
|
29
|
+
f.TJqKhw === void 0 && (f.AcTBlD = function(e) {
|
|
27
30
|
let t = "", n = "";
|
|
28
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);
|
|
29
32
|
for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
|
|
30
33
|
return decodeURIComponent(n);
|
|
31
|
-
},
|
|
34
|
+
}, f.HhxFRk = {}, f.TJqKhw = !0);
|
|
32
35
|
let i = n[0];
|
|
33
|
-
|
|
34
|
-
let
|
|
35
|
-
return
|
|
36
|
+
f.prtjta !== i && (f.HhxFRk = {}, f.prtjta = i);
|
|
37
|
+
let a = f.HhxFRk[e];
|
|
38
|
+
return a === void 0 ? (r = f.AcTBlD(r), f.HhxFRk[e] = r) : r = a, r;
|
|
36
39
|
}
|
|
37
|
-
import { barPath as c, chartColor as l, formatNumber as te, formatPercent as u } from "../Chart/chart2.js";
|
|
38
|
-
import { useChartInteraction as ne } from "../Chart/useChartInteraction.js";
|
|
39
|
-
import { estimateTextWidth as d, funnelStats as f, hBarPath as p } from "./funnel.js";
|
|
40
40
|
/* empty css */
|
|
41
|
-
import { useId as
|
|
42
|
-
import { jsx as
|
|
43
|
-
var
|
|
44
|
-
function
|
|
45
|
-
let
|
|
46
|
-
count:
|
|
47
|
-
activeIndex:
|
|
48
|
-
defaultActiveIndex:
|
|
49
|
-
onActiveIndexChange:
|
|
41
|
+
import { useId as ie } from "react";
|
|
42
|
+
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
43
|
+
var h = 14, ae = 28, g = 8, _ = 4, v = 44;
|
|
44
|
+
function y({ data: o, orientation: f = e(302), calculateFrom: y = e(301), color: oe = "--chart-seq-1", gradient: se = !1, showDropOff: b = !0, height: x = 260, barSize: S = 32, formatValue: C = te, formatPercent: w = ne, legend: ce = !0, activeIndex: le, defaultActiveIndex: ue, onActiveIndexChange: de, "aria-label": fe = e(311), className: pe, style: me }) {
|
|
45
|
+
let T = e, E = ie(), D = re(o, y), O = D[T(345)], { open: k, shown: A, settled: he, width: j, tipRef: ge, tipSize: M, hover: N, leave: P, plotProps: F } = l({
|
|
46
|
+
count: O,
|
|
47
|
+
activeIndex: le,
|
|
48
|
+
defaultActiveIndex: ue,
|
|
49
|
+
onActiveIndexChange: de,
|
|
50
50
|
initialKeyboardIndex: "first"
|
|
51
|
-
}), I =
|
|
52
|
-
let t =
|
|
53
|
-
return n ?
|
|
54
|
-
}, ve = (e) =>
|
|
55
|
-
let n =
|
|
51
|
+
}), I = f === T(302), _e = Math[T(330)](0, ...D[T(300)]((e) => e[T(305)])) || 1, L = (e) => {
|
|
52
|
+
let t = T, n = D[e]?.[t(329)];
|
|
53
|
+
return n ? c(n, e) : se ? t(368) + (O > 1 ? 1 + Math.round(e * 3 / (O - 1)) : 1) + ")" : c(oe, 0);
|
|
54
|
+
}, ve = (e) => "color-mix(in srgb, " + e + T(323), R = I ? Math.ceil(Math[T(330)](0, ...D[T(300)]((e) => u(e[T(328)])))) + 16 : 0, ye = Math[T(318)](Math[T(330)](0, ...D[T(300)]((e) => u(C(e.value, e))))) + 4, be = I ? 16 + ye + 10 + v : 0, xe = Math[T(330)](0, j - R - be), z = S + h, B = I ? Math.max(0, O * S + (O - 1) * h) : x, V = x - ae, Se = Math[T(330)](0, V - 50), H = O ? j / O : 0, U = H * .78, W = (e) => e / _e * (I ? xe : Se), G = D[T(300)]((e, t) => {
|
|
55
|
+
let n = T, r = t ? D[t - 1][n(305)] : e.value, i = W(e[n(305)]), a = W(Math[n(330)](r, e[n(305)]));
|
|
56
56
|
if (I) {
|
|
57
57
|
let e = t * z;
|
|
58
58
|
return {
|
|
59
|
-
bar:
|
|
60
|
-
drop:
|
|
59
|
+
bar: d(R, e, i, S, _),
|
|
60
|
+
drop: d(R + i, e, a - i, S, _),
|
|
61
61
|
end: R + a,
|
|
62
|
-
mid: e +
|
|
62
|
+
mid: e + S / 2
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
65
|
let o = t * H + (H - U) / 2;
|
|
66
66
|
return {
|
|
67
|
-
bar:
|
|
68
|
-
drop:
|
|
67
|
+
bar: s(o, V - i, U, i, _),
|
|
68
|
+
drop: s(o, V - a, U, a - i, _),
|
|
69
69
|
end: (t + 1) * H,
|
|
70
70
|
mid: t * H + H / 2
|
|
71
71
|
};
|
|
72
|
-
}), K =
|
|
73
|
-
key:
|
|
74
|
-
label: q(
|
|
75
|
-
color: L(
|
|
76
|
-
value:
|
|
77
|
-
}, ...
|
|
78
|
-
key:
|
|
72
|
+
}), K = A === null ? void 0 : D[A], q = (e) => e === T(301) ? T(342) : T(358), J = y === "first" ? T(310) : "first", Ce = K && A !== null ? [{
|
|
73
|
+
key: T(356),
|
|
74
|
+
label: q(y),
|
|
75
|
+
color: L(A),
|
|
76
|
+
value: w(K[T(356)])
|
|
77
|
+
}, ...A > 0 ? [{
|
|
78
|
+
key: "other",
|
|
79
79
|
label: q(J),
|
|
80
|
-
color: L(
|
|
81
|
-
value:
|
|
80
|
+
color: L(A),
|
|
81
|
+
value: w(J === T(301) ? K.fromFirst : K[T(307)])
|
|
82
82
|
}, {
|
|
83
|
-
key:
|
|
83
|
+
key: T(332),
|
|
84
84
|
label: "이탈",
|
|
85
|
-
color: ve(L(
|
|
86
|
-
value:
|
|
87
|
-
}] : []] : [], Y =
|
|
88
|
-
if (Y &&
|
|
89
|
-
if (I) X = Math[
|
|
85
|
+
color: ve(L(A - 1)),
|
|
86
|
+
value: C(K[T(332)], K) + T(344) + w(K[T(316)])
|
|
87
|
+
}] : []] : [], Y = A === null ? void 0 : G[A], X = 0, Z = 0;
|
|
88
|
+
if (Y && A !== null) {
|
|
89
|
+
if (I) X = Math[T(330)](0, Math[T(348)](Y[T(346)] + g, j - M.w)), Z = Math[T(330)](0, Math[T(348)](Y[T(306)] - M.h / 2, B - M.h));
|
|
90
90
|
else {
|
|
91
|
-
let e =
|
|
92
|
-
X = Y[
|
|
91
|
+
let e = A * H;
|
|
92
|
+
X = Y[T(346)] + g + M.w > j ? Math[T(330)](0, e - g - M.w) : Y[T(346)] + g, Z = 50;
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
|
-
let Q =
|
|
96
|
-
let t =
|
|
97
|
-
if (!
|
|
98
|
-
let n = e
|
|
99
|
-
|
|
100
|
-
}, we =
|
|
101
|
-
return
|
|
95
|
+
let Q = A === null ? 0 : I ? A * z - h / 2 : A * H, $ = (e) => {
|
|
96
|
+
let t = T;
|
|
97
|
+
if (!O) return;
|
|
98
|
+
let n = e[t(320)][t(361)](), r = I ? Math[t(367)]((e[t(333)] - n.top + h / 2) / z) : Math[t(367)]((e[t(359)] - n.left) / n[t(343)] * O);
|
|
99
|
+
N(Math[t(348)](O - 1, Math[t(330)](0, r)));
|
|
100
|
+
}, we = k && K ? K[T(328)] + ": " + C(K[T(305)], K) + ", " + q(y) + " " + w(K[T(356)]) + (A ? T(369) + C(K.drop, K) : "") : "";
|
|
101
|
+
return m(i, {
|
|
102
102
|
gap: 3,
|
|
103
|
-
className:
|
|
104
|
-
style:
|
|
105
|
-
children: [
|
|
103
|
+
className: a(T(303), T(340), pe),
|
|
104
|
+
style: me,
|
|
105
|
+
children: [m(T(353), {
|
|
106
106
|
...F,
|
|
107
|
-
className:
|
|
107
|
+
className: T(347),
|
|
108
108
|
style: { height: B },
|
|
109
|
-
"data-orientation":
|
|
110
|
-
"aria-roledescription":
|
|
111
|
-
"aria-label":
|
|
112
|
-
"aria-describedby":
|
|
109
|
+
"data-orientation": f,
|
|
110
|
+
"aria-roledescription": T(311),
|
|
111
|
+
"aria-label": fe,
|
|
112
|
+
"aria-describedby": E + T(324),
|
|
113
113
|
children: [
|
|
114
|
-
|
|
115
|
-
className:
|
|
116
|
-
width:
|
|
114
|
+
j > 0 && m("svg", {
|
|
115
|
+
className: T(308),
|
|
116
|
+
width: j,
|
|
117
117
|
height: B,
|
|
118
118
|
"aria-hidden": !0,
|
|
119
|
-
"data-orientation":
|
|
119
|
+
"data-orientation": f,
|
|
120
120
|
children: [
|
|
121
|
-
|
|
122
|
-
id:
|
|
121
|
+
p("defs", { children: D[T(300)]((e, t) => t > 0 ? m(T(334), {
|
|
122
|
+
id: E + T(354) + t,
|
|
123
123
|
width: 6,
|
|
124
124
|
height: 6,
|
|
125
|
-
patternUnits:
|
|
125
|
+
patternUnits: "userSpaceOnUse",
|
|
126
126
|
patternTransform: "rotate(45)",
|
|
127
|
-
children: [
|
|
127
|
+
children: [p(T(357), {
|
|
128
128
|
width: 6,
|
|
129
129
|
height: 6,
|
|
130
130
|
style: {
|
|
131
131
|
fill: L(t - 1),
|
|
132
132
|
fillOpacity: .1
|
|
133
133
|
}
|
|
134
|
-
}),
|
|
134
|
+
}), p(T(349), {
|
|
135
135
|
x1: 1.5,
|
|
136
136
|
y1: 0,
|
|
137
137
|
x2: 1.5,
|
|
@@ -142,142 +142,142 @@ function b({ data: a, orientation: s = e(192), calculateFrom: b = e(246), color:
|
|
|
142
142
|
strokeOpacity: .28
|
|
143
143
|
}
|
|
144
144
|
})]
|
|
145
|
-
}, e
|
|
146
|
-
|
|
147
|
-
className:
|
|
148
|
-
"data-state":
|
|
145
|
+
}, e.key) : null) }),
|
|
146
|
+
p(T(357), {
|
|
147
|
+
className: T(360),
|
|
148
|
+
"data-state": k ? T(304) : "closed",
|
|
149
149
|
x: 0,
|
|
150
150
|
y: 0,
|
|
151
|
-
width: I ?
|
|
151
|
+
width: I ? j : H,
|
|
152
152
|
height: I ? z : B,
|
|
153
153
|
rx: 8,
|
|
154
|
-
style: { transform: I ?
|
|
154
|
+
style: { transform: I ? T(355) + Q + "px)" : T(365) + Q + T(313) }
|
|
155
155
|
}),
|
|
156
|
-
|
|
157
|
-
let n =
|
|
158
|
-
return
|
|
159
|
-
className:
|
|
156
|
+
D.map((e, t) => {
|
|
157
|
+
let n = T, r = G[t], i = k && A !== t || void 0, a = { "--_i": t };
|
|
158
|
+
return m("g", {
|
|
159
|
+
className: n(335),
|
|
160
160
|
"data-faded": i,
|
|
161
|
-
children: [
|
|
162
|
-
className:
|
|
163
|
-
d: r[n(
|
|
164
|
-
fill:
|
|
161
|
+
children: [b && t > 0 && p(n(352), {
|
|
162
|
+
className: "ds-funnel-chart__drop",
|
|
163
|
+
d: r[n(332)],
|
|
164
|
+
fill: n(362) + E + "-hatch-" + t + ")",
|
|
165
165
|
style: a
|
|
166
|
-
}),
|
|
167
|
-
className:
|
|
168
|
-
d: r
|
|
166
|
+
}), p(n(352), {
|
|
167
|
+
className: "ds-funnel-chart__bar",
|
|
168
|
+
d: r.bar,
|
|
169
169
|
fill: L(t),
|
|
170
170
|
style: a
|
|
171
171
|
})]
|
|
172
|
-
}, e[n(
|
|
172
|
+
}, e[n(309)]);
|
|
173
173
|
}),
|
|
174
|
-
|
|
175
|
-
let n =
|
|
176
|
-
return I ?
|
|
177
|
-
|
|
178
|
-
className:
|
|
174
|
+
D[T(300)]((e, t) => {
|
|
175
|
+
let n = T, r = G[t], i = C(e[n(305)], e), a = w(e[n(356)]);
|
|
176
|
+
return I ? m("g", { children: [
|
|
177
|
+
p(n(314), {
|
|
178
|
+
className: "ds-funnel-chart__label",
|
|
179
179
|
x: 0,
|
|
180
|
-
y: r[n(
|
|
181
|
-
dominantBaseline:
|
|
182
|
-
children: e[n(
|
|
180
|
+
y: r[n(306)],
|
|
181
|
+
dominantBaseline: n(322),
|
|
182
|
+
children: e[n(328)]
|
|
183
183
|
}),
|
|
184
|
-
|
|
185
|
-
className: n(
|
|
186
|
-
x:
|
|
187
|
-
y: r[n(
|
|
188
|
-
dominantBaseline: n(
|
|
189
|
-
textAnchor:
|
|
184
|
+
p(n(314), {
|
|
185
|
+
className: n(366),
|
|
186
|
+
x: j - v - 10,
|
|
187
|
+
y: r[n(306)],
|
|
188
|
+
dominantBaseline: n(322),
|
|
189
|
+
textAnchor: "end",
|
|
190
190
|
children: i
|
|
191
191
|
}),
|
|
192
|
-
|
|
193
|
-
className:
|
|
194
|
-
x:
|
|
192
|
+
p("text", {
|
|
193
|
+
className: "ds-funnel-chart__pct",
|
|
194
|
+
x: j,
|
|
195
195
|
y: r.mid,
|
|
196
|
-
dominantBaseline: n(
|
|
197
|
-
textAnchor:
|
|
196
|
+
dominantBaseline: n(322),
|
|
197
|
+
textAnchor: n(346),
|
|
198
198
|
children: a
|
|
199
199
|
})
|
|
200
|
-
] }, e
|
|
201
|
-
|
|
202
|
-
className: n(
|
|
203
|
-
x: r[n(
|
|
200
|
+
] }, e.key) : m("g", { children: [
|
|
201
|
+
p(n(314), {
|
|
202
|
+
className: n(366),
|
|
203
|
+
x: r[n(306)],
|
|
204
204
|
y: 16,
|
|
205
|
-
dominantBaseline:
|
|
206
|
-
textAnchor: n(
|
|
205
|
+
dominantBaseline: "middle",
|
|
206
|
+
textAnchor: n(322),
|
|
207
207
|
children: i
|
|
208
208
|
}),
|
|
209
|
-
|
|
209
|
+
p("text", {
|
|
210
210
|
className: "ds-funnel-chart__pct",
|
|
211
|
-
x: r[n(
|
|
211
|
+
x: r[n(306)],
|
|
212
212
|
y: 35,
|
|
213
|
-
dominantBaseline: n(
|
|
214
|
-
textAnchor: n(
|
|
213
|
+
dominantBaseline: n(322),
|
|
214
|
+
textAnchor: n(322),
|
|
215
215
|
children: a
|
|
216
216
|
}),
|
|
217
|
-
|
|
218
|
-
className: n(
|
|
219
|
-
x: r[n(
|
|
220
|
-
y:
|
|
221
|
-
textAnchor:
|
|
222
|
-
children: e[n(
|
|
217
|
+
p(n(314), {
|
|
218
|
+
className: n(336),
|
|
219
|
+
x: r[n(306)],
|
|
220
|
+
y: x - 6,
|
|
221
|
+
textAnchor: "middle",
|
|
222
|
+
children: e[n(328)]
|
|
223
223
|
})
|
|
224
|
-
] }, e[n(
|
|
224
|
+
] }, e[n(309)]);
|
|
225
225
|
}),
|
|
226
|
-
|
|
226
|
+
p(T(357), {
|
|
227
227
|
className: "ds-chart__hit",
|
|
228
228
|
x: 0,
|
|
229
229
|
y: 0,
|
|
230
|
-
width:
|
|
230
|
+
width: j,
|
|
231
231
|
height: B,
|
|
232
232
|
onPointerMove: $,
|
|
233
233
|
onPointerDown: $,
|
|
234
|
-
onPointerLeave:
|
|
234
|
+
onPointerLeave: P
|
|
235
235
|
})
|
|
236
236
|
]
|
|
237
237
|
}),
|
|
238
|
-
|
|
239
|
-
ref:
|
|
240
|
-
className:
|
|
241
|
-
"data-state":
|
|
242
|
-
"data-settled":
|
|
243
|
-
style: { transform:
|
|
238
|
+
p(T(353), {
|
|
239
|
+
ref: ge,
|
|
240
|
+
className: T(317),
|
|
241
|
+
"data-state": T(k ? 304 : 341),
|
|
242
|
+
"data-settled": he || void 0,
|
|
243
|
+
style: { transform: T(319) + X + T(321) + Z + T(313) },
|
|
244
244
|
"aria-hidden": !0,
|
|
245
|
-
children:
|
|
246
|
-
title: K?.
|
|
247
|
-
value: K ?
|
|
245
|
+
children: p(ee, {
|
|
246
|
+
title: K?.label,
|
|
247
|
+
value: K ? C(K[T(305)], K) : void 0,
|
|
248
248
|
rows: Ce
|
|
249
249
|
})
|
|
250
250
|
}),
|
|
251
|
-
|
|
252
|
-
id:
|
|
253
|
-
className:
|
|
254
|
-
"aria-live":
|
|
251
|
+
p(T(351), {
|
|
252
|
+
id: E + "-live",
|
|
253
|
+
className: T(312),
|
|
254
|
+
"aria-live": "polite",
|
|
255
255
|
children: we
|
|
256
256
|
})
|
|
257
257
|
]
|
|
258
|
-
}),
|
|
258
|
+
}), ce && b && m(r, {
|
|
259
259
|
gap: 4,
|
|
260
|
-
children: [
|
|
260
|
+
children: [m(r, {
|
|
261
261
|
gap: 2,
|
|
262
262
|
wrap: !1,
|
|
263
|
-
children: [
|
|
264
|
-
variant:
|
|
265
|
-
tone:
|
|
263
|
+
children: [p(n, { color: L(0) }), p(t, {
|
|
264
|
+
variant: T(338),
|
|
265
|
+
tone: "secondary",
|
|
266
266
|
children: "전환"
|
|
267
267
|
})]
|
|
268
|
-
}),
|
|
268
|
+
}), m(r, {
|
|
269
269
|
gap: 2,
|
|
270
270
|
wrap: !1,
|
|
271
|
-
children: [
|
|
271
|
+
children: [p(n, {
|
|
272
272
|
color: L(0),
|
|
273
|
-
variant:
|
|
274
|
-
}),
|
|
273
|
+
variant: "hatched"
|
|
274
|
+
}), p(t, {
|
|
275
275
|
variant: "body-sm",
|
|
276
|
-
tone:
|
|
276
|
+
tone: "secondary",
|
|
277
277
|
children: "이탈"
|
|
278
278
|
})]
|
|
279
279
|
})]
|
|
280
280
|
})]
|
|
281
281
|
});
|
|
282
282
|
}
|
|
283
|
-
export {
|
|
283
|
+
export { y as FunnelChart };
|
|
@@ -1,69 +1,73 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
2
|
+
function e(n, r) {
|
|
3
|
+
n -= 160;
|
|
4
|
+
let i = t(), a = i[n];
|
|
5
|
+
e.XwHzWS === void 0 && (e.YAAJUc = function(e) {
|
|
6
|
+
let t = "", n = "";
|
|
7
|
+
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);
|
|
8
|
+
for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
|
|
9
|
+
return decodeURIComponent(n);
|
|
10
|
+
}, e.IBdzIZ = {}, e.XwHzWS = !0);
|
|
11
|
+
let o = i[0];
|
|
12
|
+
e.iqSGoN !== o && (e.IBdzIZ = {}, e.iqSGoN = o);
|
|
13
|
+
let s = e.IBdzIZ[n];
|
|
14
|
+
return s === void 0 ? (a = e.YAAJUc(a), e.IBdzIZ[n] = a) : a = s, a;
|
|
15
|
+
}
|
|
3
16
|
function t() {
|
|
4
17
|
let e = [
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
18
|
+
"mJi2nJu2m0rdteDQyW",
|
|
19
|
+
"BwLU",
|
|
20
|
+
"ogD1EfjrBW",
|
|
21
|
+
"mtbPzuvoyw0",
|
|
22
|
+
"mJK0mdu1m3HquvrZAG",
|
|
23
|
+
"BwfW",
|
|
24
|
+
"DMfSDwu",
|
|
25
|
+
"CMvKDwnL",
|
|
26
|
+
"mJq0odm2Du1QtwTf",
|
|
27
|
+
"ohzry3PYqW",
|
|
28
|
+
"odK1mZy4nKfwvgrMAW",
|
|
15
29
|
"Bwf4",
|
|
16
|
-
"
|
|
30
|
+
"mJC4mJCWq0jivxn6",
|
|
31
|
+
"y29KzvbVAw50qxq",
|
|
32
|
+
"mtuWvLbfBw1k",
|
|
33
|
+
"mtj3zMvQAKe",
|
|
17
34
|
"zMLYC3q",
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
35
|
+
"odrluhDwB2G",
|
|
36
|
+
"mZu4nZaZCeTYD1n2",
|
|
37
|
+
"odqXntq3DvbWwuHw"
|
|
21
38
|
];
|
|
22
39
|
return t = function() {
|
|
23
40
|
return e;
|
|
24
41
|
}, t();
|
|
25
42
|
}
|
|
26
|
-
|
|
27
|
-
|
|
43
|
+
const n = e;
|
|
44
|
+
(function(t, n) {
|
|
45
|
+
let r = e, i = t();
|
|
28
46
|
for (;;) try {
|
|
29
|
-
if (parseInt(
|
|
47
|
+
if (parseInt(r(160)) / 1 * (parseInt(r(164)) / 2) + parseInt(r(170)) / 3 * (-parseInt(r(177)) / 4) + -parseInt(r(174)) / 5 * (-parseInt(r(176)) / 6) + parseInt(r(161)) / 7 * (parseInt(r(171)) / 8) + -parseInt(r(172)) / 9 + parseInt(r(165)) / 10 * (parseInt(r(166)) / 11) + -parseInt(r(179)) / 12 * (parseInt(r(162)) / 13) == n) break;
|
|
30
48
|
i.push(i.shift());
|
|
31
49
|
} catch {
|
|
32
50
|
i.push(i.shift());
|
|
33
51
|
}
|
|
34
|
-
})(t,
|
|
35
|
-
function
|
|
36
|
-
let
|
|
37
|
-
return
|
|
38
|
-
let o =
|
|
52
|
+
})(t, 753559);
|
|
53
|
+
function r(t, n) {
|
|
54
|
+
let r = e, i = t[0]?.[r(168)] ?? 0;
|
|
55
|
+
return t[r(167)]((e, a) => {
|
|
56
|
+
let o = r, s = Math[o(173)](0, e.value), c = a ? Math[o(173)](0, t[a - 1][o(168)]) : s, l = a === 0 ? 1 : i > 0 ? s / i : 0, u = a === 0 ? 1 : c > 0 ? s / c : 0, d = a ? Math[o(173)](0, c - s) : 0;
|
|
39
57
|
return {
|
|
40
|
-
...
|
|
58
|
+
...e,
|
|
41
59
|
value: s,
|
|
42
60
|
fromFirst: l,
|
|
43
61
|
fromPrevious: u,
|
|
44
|
-
conversion:
|
|
62
|
+
conversion: n === o(178) ? l : u,
|
|
45
63
|
drop: d,
|
|
46
64
|
dropRate: a && c > 0 ? d / c : 0
|
|
47
65
|
};
|
|
48
66
|
});
|
|
49
67
|
}
|
|
50
|
-
function
|
|
51
|
-
e
|
|
52
|
-
|
|
53
|
-
r.tPzIhD === void 0 && (r.XvSIYx = function(e) {
|
|
54
|
-
let t = "", n = "";
|
|
55
|
-
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);
|
|
56
|
-
for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
|
|
57
|
-
return decodeURIComponent(n);
|
|
58
|
-
}, r.FPHkna = {}, r.tPzIhD = !0);
|
|
59
|
-
let o = i[0];
|
|
60
|
-
r.KWvJZY !== o && (r.FPHkna = {}, r.KWvJZY = o);
|
|
61
|
-
let s = r.FPHkna[e];
|
|
62
|
-
return s === void 0 ? (a = r.XvSIYx(a), r.FPHkna[e] = a) : a = s, a;
|
|
63
|
-
}
|
|
64
|
-
function i(e, t, n, i, a) {
|
|
65
|
-
let o = Math[r(501)](0, Math.min(a, i / 2, n));
|
|
66
|
-
return "M" + e + "," + t + "H" + (e + n - o) + "Q" + (e + n) + "," + t + " " + (e + n) + "," + (t + o) + "V" + (t + i - o) + "Q" + (e + n) + "," + (t + i) + " " + (e + n - o) + "," + (t + i) + "H" + e + "Z";
|
|
68
|
+
function i(t, n, r, i, a) {
|
|
69
|
+
let o = e, s = Math[o(173)](0, Math[o(163)](a, i / 2, r));
|
|
70
|
+
return "M" + t + "," + n + "H" + (t + r - s) + "Q" + (t + r) + "," + n + " " + (t + r) + "," + (n + s) + "V" + (n + i - s) + "Q" + (t + r) + "," + (n + i) + " " + (t + r - s) + "," + (n + i) + "H" + t + "Z";
|
|
67
71
|
}
|
|
68
|
-
var a = (
|
|
69
|
-
export { a as estimateTextWidth,
|
|
72
|
+
var a = (e) => Array.from(e)[n(169)]((e, t) => e + ((t[n(175)](0) ?? 0) >= 11904 ? 13 : 7.5), 0);
|
|
73
|
+
export { a as estimateTextWidth, r as funnelStats, i as hBarPath };
|