@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,48 +1,48 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
t.DiKeqR === void 0 && (t.ZWHHOt = function(e) {
|
|
2
|
+
function e(t, r) {
|
|
3
|
+
t -= 271;
|
|
4
|
+
let i = n(), a = i[t];
|
|
5
|
+
e.qGGPPI === void 0 && (e.JbeJkU = function(e) {
|
|
7
6
|
let t = "", n = "";
|
|
8
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);
|
|
9
8
|
for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
|
|
10
9
|
return decodeURIComponent(n);
|
|
11
|
-
},
|
|
10
|
+
}, e.azHtcX = {}, e.qGGPPI = !0);
|
|
12
11
|
let o = i[0];
|
|
13
|
-
|
|
14
|
-
let s =
|
|
15
|
-
return s === void 0 ? (a =
|
|
12
|
+
e.KeULEA !== o && (e.azHtcX = {}, e.KeULEA = o);
|
|
13
|
+
let s = e.azHtcX[t];
|
|
14
|
+
return s === void 0 ? (a = e.JbeJkU(a), e.azHtcX[t] = a) : a = s, a;
|
|
16
15
|
}
|
|
17
|
-
|
|
18
|
-
let r = t, i = e();
|
|
19
|
-
for (;;) try {
|
|
20
|
-
if (-parseInt(r(150)) / 1 * (-parseInt(r(135)) / 2) + parseInt(r(130)) / 3 + -parseInt(r(126)) / 4 * (-parseInt(r(118)) / 5) + parseInt(r(149)) / 6 + -parseInt(r(153)) / 7 * (-parseInt(r(127)) / 8) + -parseInt(r(144)) / 9 + parseInt(r(119)) / 10 * (-parseInt(r(140)) / 11) == n) break;
|
|
21
|
-
i.push(i.shift());
|
|
22
|
-
} catch {
|
|
23
|
-
i.push(i.shift());
|
|
24
|
-
}
|
|
25
|
-
})(n, 100953);
|
|
16
|
+
const t = e;
|
|
26
17
|
function n() {
|
|
27
|
-
let e = /* @__PURE__ */ "
|
|
18
|
+
let e = /* @__PURE__ */ "tNvTyMvYrM9YBwf0.BwLU.mJbNAKnrCgm.DMfYka.mtjKuvrNq3C.y29TCgfJDa.nJm5mty4m1LxzNDLzq.DMfYkc0TzgfUz2vYkq.C3fYDa.zNjVBq.C21VB3rO.zM9YBwf0.BwfW.DMfYkc0TD2fYBMLUzYK.mJvLAwLIEeO.Bg9Nmta.BgvUz3rO.mJGZmZa2ofbsr1H2qq.mtm5mZqWuwH4rNvO.CM91BMq.y2vPBa.ndq5mtu0Cu5srKzn.BNvTyMvY.ntuWotu2BwDbAwrQ.mJKWmJmXmxvlDuToDa.C2XPy2u.DMfYkc0Ty2HHCNqTyxHPCYK.zMXVB3i.DMfYkc0TD2fYBMLUzY1ZB2z0kq.AxngAw5PDgu.ls1JAgfYDc0.CMv2zxjZzq.A28Ts1i.AM9PBG.mJi0ndiWogHhB0zICa.Bwf4".split(".");
|
|
28
19
|
return n = function() {
|
|
29
20
|
return e;
|
|
30
21
|
}, n();
|
|
31
22
|
}
|
|
32
|
-
|
|
33
|
-
|
|
23
|
+
(function(t, n) {
|
|
24
|
+
let r = e, i = t();
|
|
25
|
+
for (;;) try {
|
|
26
|
+
if (-parseInt(r(301)) / 1 + parseInt(r(299)) / 2 + parseInt(r(302)) / 3 + -parseInt(r(296)) / 4 * (-parseInt(r(292)) / 5) + -parseInt(r(282)) / 6 * (-parseInt(r(295)) / 7) + parseInt(r(276)) / 8 + -parseInt(r(284)) / 9 * (parseInt(r(280)) / 10) == n) break;
|
|
27
|
+
i.push(i.shift());
|
|
28
|
+
} catch {
|
|
29
|
+
i.push(i.shift());
|
|
30
|
+
}
|
|
31
|
+
})(n, 484833);
|
|
32
|
+
var r = new Intl[t(278)](t(274)), i = new Intl[t(278)](t(274), {
|
|
33
|
+
notation: t(283),
|
|
34
34
|
maximumFractionDigits: 1
|
|
35
|
-
}), a = (
|
|
36
|
-
let r =
|
|
37
|
-
return i.startsWith("--") ? r(
|
|
38
|
-
}, l = (
|
|
39
|
-
let r =
|
|
40
|
-
return typeof i === r(
|
|
35
|
+
}), a = (e) => r[t(289)](e), o = (e) => i[t(289)](e), s = (e) => Math[t(297)](e * 1e3) / 10 + "%", c = (e, n) => {
|
|
36
|
+
let r = t, i = e ?? r(272) + (n % 6 + 1);
|
|
37
|
+
return i.startsWith("--") ? r(281) + i + ")" : i;
|
|
38
|
+
}, l = (e, n) => {
|
|
39
|
+
let r = t, i = e?.[n];
|
|
40
|
+
return typeof i === r(300) && Number[r(271)](i) ? i : null;
|
|
41
41
|
};
|
|
42
|
-
function u(
|
|
43
|
-
let r =
|
|
44
|
-
if (
|
|
45
|
-
let a =
|
|
42
|
+
function u(e, n) {
|
|
43
|
+
let r = t, i = Math[r(277)](1, n - 1);
|
|
44
|
+
if (e <= 0) return Array[r(287)]({ length: i + 1 }, (e, t) => t);
|
|
45
|
+
let a = e / i, o = 10 ** Math[r(305)](Math[r(293)](a)), s = ([
|
|
46
46
|
1,
|
|
47
47
|
1.5,
|
|
48
48
|
2,
|
|
@@ -50,47 +50,47 @@ function u(t, n) {
|
|
|
50
50
|
3,
|
|
51
51
|
5,
|
|
52
52
|
10
|
|
53
|
-
]
|
|
54
|
-
return Array
|
|
53
|
+
].find((e) => e * o >= a) ?? 10) * o;
|
|
54
|
+
return Array.from({ length: i + 1 }, (e, t) => t * s);
|
|
55
55
|
}
|
|
56
|
-
var d = (
|
|
57
|
-
function m(
|
|
58
|
-
let n =
|
|
56
|
+
var d = (e) => Math.max(...e[t(290)]((e) => e[t(294)])) * 7 + 14, f = (e, n, r = 110) => Math.max(1, Math[t(298)](e / Math[t(277)](1, Math[t(305)](n / r)))), p = (e, n) => n === t(288) && e[t(294)] > 2 ? m(e) : e[t(290)](([e, t], n) => (n ? "L" : "M") + e + "," + t)[t(275)]("");
|
|
57
|
+
function m(e) {
|
|
58
|
+
let n = t, r = e[n(294)], i = e[n(303)](0, -1)[n(290)](([t, n], r) => (e[r + 1][1] - n) / (e[r + 1][0] - t)), a = e[n(290)]((e, t) => t === 0 ? i[0] : t === r - 1 ? i[r - 2] : i[t - 1] * i[t] <= 0 ? 0 : (i[t - 1] + i[t]) / 2);
|
|
59
59
|
for (let e = 0; e < r - 1; e++) {
|
|
60
60
|
if (i[e] === 0) {
|
|
61
61
|
a[e] = a[e + 1] = 0;
|
|
62
62
|
continue;
|
|
63
63
|
}
|
|
64
|
-
let t = a[e] / i[e],
|
|
65
|
-
if (
|
|
66
|
-
let
|
|
67
|
-
a[e] =
|
|
64
|
+
let t = a[e] / i[e], r = a[e + 1] / i[e], o = t * t + r * r;
|
|
65
|
+
if (o > 9) {
|
|
66
|
+
let s = 3 / Math[n(286)](o);
|
|
67
|
+
a[e] = s * t * i[e], a[e + 1] = s * r * i[e];
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
let o = "M" +
|
|
71
|
-
for (let
|
|
72
|
-
let n = (t
|
|
73
|
-
o += "C" + (t
|
|
70
|
+
let o = "M" + e[0][0] + "," + e[0][1];
|
|
71
|
+
for (let t = 0; t < r - 1; t++) {
|
|
72
|
+
let n = (e[t + 1][0] - e[t][0]) / 3;
|
|
73
|
+
o += "C" + (e[t][0] + n) + "," + (e[t][1] + a[t] * n) + " " + (e[t + 1][0] - n) + "," + (e[t + 1][1] - a[t + 1] * n) + " " + e[t + 1][0] + "," + e[t + 1][1];
|
|
74
74
|
}
|
|
75
75
|
return o;
|
|
76
76
|
}
|
|
77
|
-
function h(
|
|
78
|
-
let o =
|
|
79
|
-
return "M" +
|
|
77
|
+
function h(e, n, r, i, a) {
|
|
78
|
+
let o = t, s = Math[o(277)](0, Math[o(279)](a, r / 2, i));
|
|
79
|
+
return "M" + e + "," + (n + i) + "V" + (n + s) + "Q" + e + "," + n + " " + (e + s) + "," + n + "H" + (e + r - s) + "Q" + (e + r) + "," + n + " " + (e + r) + "," + (n + s) + "V" + (n + i) + "Z";
|
|
80
80
|
}
|
|
81
81
|
var g = {
|
|
82
|
-
neutral:
|
|
82
|
+
neutral: "var(--surface-active)",
|
|
83
83
|
accent: "var(--accent-soft)",
|
|
84
|
-
warning:
|
|
85
|
-
danger:
|
|
84
|
+
warning: t(306),
|
|
85
|
+
danger: "var(--danger-soft)"
|
|
86
86
|
}, _ = {
|
|
87
|
-
neutral:
|
|
87
|
+
neutral: t(304),
|
|
88
88
|
accent: "var(--accent)",
|
|
89
|
-
warning:
|
|
90
|
-
danger:
|
|
91
|
-
}, v = (
|
|
92
|
-
function y(
|
|
93
|
-
let i =
|
|
94
|
-
return
|
|
89
|
+
warning: t(291),
|
|
90
|
+
danger: t(285)
|
|
91
|
+
}, v = (e, t) => e.length ? p(e, t) : "";
|
|
92
|
+
function y(e, n, r) {
|
|
93
|
+
let i = t;
|
|
94
|
+
return e[i(294)] ? "" + p(e, r) + p([...n][i(273)](), r).replace(/^M/, "L") + "Z" : "";
|
|
95
95
|
}
|
|
96
96
|
export { g as CHART_TONE_SOFT, _ as CHART_TONE_STRONG, d as axisGutter, y as bandPath, h as barPath, c as chartColor, o as formatCompact, a as formatNumber, s as formatPercent, f as labelStep, v as linePath, u as niceTicks, l as numberAt };
|
|
@@ -1,58 +1,52 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
t.uxmFPO === void 0 && (t.cBczNr = function(e) {
|
|
2
|
+
function e(t, n) {
|
|
3
|
+
t -= 471;
|
|
4
|
+
let r = l(), i = r[t];
|
|
5
|
+
e.ekisQP === void 0 && (e.PFkmjs = function(e) {
|
|
7
6
|
let t = "", n = "";
|
|
8
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);
|
|
9
8
|
for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
|
|
10
9
|
return decodeURIComponent(n);
|
|
11
|
-
},
|
|
12
|
-
let
|
|
13
|
-
|
|
14
|
-
let
|
|
15
|
-
return
|
|
10
|
+
}, e.sLeVHZ = {}, e.ekisQP = !0);
|
|
11
|
+
let a = r[0];
|
|
12
|
+
e.VnhnCj !== a && (e.sLeVHZ = {}, e.VnhnCj = a);
|
|
13
|
+
let o = e.sLeVHZ[t];
|
|
14
|
+
return o === void 0 ? (i = e.PFkmjs(i), e.sLeVHZ[t] = i) : i = o, i;
|
|
16
15
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
return e;
|
|
21
|
-
}, n();
|
|
22
|
-
}
|
|
23
|
-
(function(e, n) {
|
|
24
|
-
let r = t, i = e();
|
|
16
|
+
const t = e;
|
|
17
|
+
(function(t, n) {
|
|
18
|
+
let r = e, i = t();
|
|
25
19
|
for (;;) try {
|
|
26
|
-
if (parseInt(r(
|
|
20
|
+
if (-parseInt(r(498)) / 1 * (parseInt(r(496)) / 2) + -parseInt(r(473)) / 3 * (-parseInt(r(479)) / 4) + -parseInt(r(478)) / 5 + -parseInt(r(477)) / 6 * (parseInt(r(490)) / 7) + parseInt(r(494)) / 8 + parseInt(r(472)) / 9 + parseInt(r(483)) / 10 * (parseInt(r(491)) / 11) == n) break;
|
|
27
21
|
i.push(i.shift());
|
|
28
22
|
} catch {
|
|
29
23
|
i.push(i.shift());
|
|
30
24
|
}
|
|
31
|
-
})(
|
|
32
|
-
import { TIMING as
|
|
33
|
-
import { useControllableState as
|
|
34
|
-
import { useEffect as
|
|
35
|
-
function
|
|
36
|
-
let p =
|
|
25
|
+
})(l, 957337);
|
|
26
|
+
import { TIMING as n } from "../../hooks/timing.js";
|
|
27
|
+
import { useControllableState as r } from "../../hooks/useControllableState.js";
|
|
28
|
+
import { useEffect as i, useLayoutEffect as a, useRef as o, useState as s } from "react";
|
|
29
|
+
function c({ count: c, activeIndex: l, defaultActiveIndex: u = null, onActiveIndexChange: d, initialKeyboardIndex: f = t(487) }) {
|
|
30
|
+
let p = t, [m, h] = r(l, u, d), g = o(null), _ = o(null), [v, y] = s(0), [b, x] = s({
|
|
37
31
|
w: 0,
|
|
38
32
|
h: 0
|
|
39
|
-
}), S =
|
|
40
|
-
|
|
41
|
-
let
|
|
33
|
+
}), S = o(void 0);
|
|
34
|
+
a(() => {
|
|
35
|
+
let t = e, n = g.current, r = _.current;
|
|
42
36
|
if (!n) return;
|
|
43
37
|
let i = new ResizeObserver(() => {
|
|
44
38
|
let t = e;
|
|
45
|
-
y(n
|
|
46
|
-
w: r
|
|
47
|
-
h: r
|
|
39
|
+
y(n[t(471)]), r && x((e) => e.w === r[t(488)] && e.h === r[t(485)] ? e : {
|
|
40
|
+
w: r[t(488)],
|
|
41
|
+
h: r.offsetHeight
|
|
48
42
|
});
|
|
49
43
|
});
|
|
50
|
-
return i
|
|
51
|
-
}, []),
|
|
52
|
-
let C = m !== null && m <
|
|
44
|
+
return i[t(484)](n), r && i[t(484)](r), y(n[t(471)]), () => i[t(474)]();
|
|
45
|
+
}, []), i(() => () => window.clearTimeout(S.current), []);
|
|
46
|
+
let C = m !== null && m < c, [w, T] = s(m);
|
|
53
47
|
C && m !== w && T(m);
|
|
54
|
-
let E = w !== null && w <
|
|
55
|
-
return !C && D && O(!1),
|
|
48
|
+
let E = w !== null && w < c ? w : null, [D, O] = s(!1);
|
|
49
|
+
return !C && D && O(!1), i(() => {
|
|
56
50
|
if (!C) return;
|
|
57
51
|
let e = requestAnimationFrame(() => e = requestAnimationFrame(() => O(!0)));
|
|
58
52
|
return () => cancelAnimationFrame(e);
|
|
@@ -65,30 +59,36 @@ function l({ count: n, activeIndex: l, defaultActiveIndex: u = null, onActiveInd
|
|
|
65
59
|
width: v,
|
|
66
60
|
tipRef: _,
|
|
67
61
|
tipSize: b,
|
|
68
|
-
hover: (
|
|
69
|
-
let
|
|
70
|
-
window
|
|
62
|
+
hover: (t) => {
|
|
63
|
+
let n = e;
|
|
64
|
+
window.clearTimeout(S[n(480)]), t !== m && h(t);
|
|
71
65
|
},
|
|
72
66
|
leave: () => {
|
|
73
|
-
let
|
|
74
|
-
window[
|
|
67
|
+
let t = e;
|
|
68
|
+
window[t(481)](S[t(480)]), S[t(480)] = window.setTimeout(() => h(null), n.hoverGrace);
|
|
75
69
|
},
|
|
76
70
|
plotProps: {
|
|
77
71
|
ref: g,
|
|
78
72
|
tabIndex: 0,
|
|
79
|
-
role:
|
|
80
|
-
onKeyDown: (
|
|
81
|
-
let
|
|
82
|
-
if (!
|
|
83
|
-
let r = m ?? (f ===
|
|
84
|
-
i === void 0 ?
|
|
73
|
+
role: p(497),
|
|
74
|
+
onKeyDown: (t) => {
|
|
75
|
+
let n = e;
|
|
76
|
+
if (!c) return;
|
|
77
|
+
let r = m ?? (f === n(482) ? 0 : c - 1), i = t[n(495)] === "ArrowRight" || t.key === "ArrowDown" ? Math[n(499)](c - 1, r + 1) : t[n(495)] === "ArrowLeft" || t[n(495)] === "ArrowUp" ? Math.max(0, r - 1) : t[n(495)] === "Home" ? 0 : t[n(495)] === n(475) ? c - 1 : void 0;
|
|
78
|
+
i === void 0 ? t[n(495)] === n(489) && m !== null && (t[n(493)](), h(null)) : (t[n(493)](), h(i));
|
|
85
79
|
},
|
|
86
80
|
onFocus: (e) => {
|
|
87
81
|
let t = p;
|
|
88
|
-
e
|
|
82
|
+
e[t(476)][t(486)](t(492)) && m === null && c && h(f === t(482) ? 0 : c - 1);
|
|
89
83
|
},
|
|
90
84
|
onBlur: () => h(null)
|
|
91
85
|
}
|
|
92
86
|
};
|
|
93
87
|
}
|
|
94
|
-
|
|
88
|
+
function l() {
|
|
89
|
+
let e = /* @__PURE__ */ "y3vYCMvUDa.y2XLyxjuAw1LB3v0.zMLYC3q.mZuXmteWD3b1zNv6.B2jZzxj2zq.B2zMC2v0sgvPz2H0.Bwf0y2HLCW.BgfZDa.B2zMC2v0v2LKDgG.rxnJyxbL.nZG4nti5v3zWru9M.mJK3EKLlCuvg.oMzVy3vZlxzPC2LIBgu.ChjLDMvUDerLzMf1Bhq.ndmYndK1mMfPtvvYBG.A2v5.nJCXmZjTA2rnAMy.z3jVDxa.ndrSrw9KwwS.BwLU.y2XPzw50v2LKDgG.odC3ndK1nvHvy09PuW.ndK4mtG5CgnZCMzv.zgLZy29UBMvJDa.rw5K.y3vYCMvUDfrHCMDLDa.nJznr0nOCKG.mJi1ndqXnunpBKPeta.ndbssejbuw8".split(".");
|
|
90
|
+
return l = function() {
|
|
91
|
+
return e;
|
|
92
|
+
}, l();
|
|
93
|
+
}
|
|
94
|
+
export { c as useChartInteraction };
|
|
@@ -3,12 +3,12 @@ const e = D;
|
|
|
3
3
|
(function(e, t) {
|
|
4
4
|
let n = D, r = e();
|
|
5
5
|
for (;;) try {
|
|
6
|
-
if (parseInt(n(
|
|
6
|
+
if (parseInt(n(358)) / 1 * (-parseInt(n(354)) / 2) + -parseInt(n(341)) / 3 + -parseInt(n(377)) / 4 + -parseInt(n(342)) / 5 * (parseInt(n(368)) / 6) + -parseInt(n(366)) / 7 * (parseInt(n(371)) / 8) + -parseInt(n(379)) / 9 + parseInt(n(362)) / 10 * (parseInt(n(369)) / 11) == t) break;
|
|
7
7
|
r.push(r.shift());
|
|
8
8
|
} catch {
|
|
9
9
|
r.push(r.shift());
|
|
10
10
|
}
|
|
11
|
-
})(
|
|
11
|
+
})(T, 905697);
|
|
12
12
|
import { Spinner as t } from "../../primitives/Spinner2.js";
|
|
13
13
|
import { Text as n } from "../../primitives/Typography2.js";
|
|
14
14
|
import { Inline as r, Stack as i } from "../../primitives/Layout2.js";
|
|
@@ -18,94 +18,88 @@ import { formatChatTime as l } from "./formatChatTime.js";
|
|
|
18
18
|
/* empty css */
|
|
19
19
|
import { Children as u, createContext as d, isValidElement as f, useContext as p } from "react";
|
|
20
20
|
import { AlertCircle as m, Check as h, CheckCheck as g, RotateCw as _ } from "lucide-react";
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}, v();
|
|
26
|
-
}
|
|
27
|
-
import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
28
|
-
var S = d(null), C = {
|
|
29
|
-
sending: "보내는 중",
|
|
30
|
-
sent: e(422),
|
|
21
|
+
import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
22
|
+
var x = d(null), S = {
|
|
23
|
+
sending: e(338),
|
|
24
|
+
sent: e(360),
|
|
31
25
|
read: "읽음",
|
|
32
|
-
failed: e(
|
|
26
|
+
failed: e(356)
|
|
33
27
|
};
|
|
34
|
-
function
|
|
28
|
+
function C({ status: n }) {
|
|
35
29
|
let r = e;
|
|
36
|
-
if (n === r(
|
|
30
|
+
if (n === r(346)) return y(t, {
|
|
37
31
|
size: 12,
|
|
38
|
-
tone: r(
|
|
39
|
-
label:
|
|
32
|
+
tone: r(345),
|
|
33
|
+
label: S[r(346)]
|
|
40
34
|
});
|
|
41
|
-
if (n ===
|
|
42
|
-
let i = n ===
|
|
43
|
-
return
|
|
44
|
-
className:
|
|
35
|
+
if (n === r(336)) return null;
|
|
36
|
+
let i = n === r(359) ? g : h;
|
|
37
|
+
return y(r(332), {
|
|
38
|
+
className: r(348),
|
|
45
39
|
"data-status": n,
|
|
46
40
|
role: "img",
|
|
47
|
-
"aria-label":
|
|
48
|
-
children:
|
|
41
|
+
"aria-label": S[n],
|
|
42
|
+
children: y(i, { "aria-hidden": !0 })
|
|
49
43
|
});
|
|
50
44
|
}
|
|
51
|
-
function
|
|
52
|
-
let A = e, j = p(
|
|
45
|
+
function w({ side: t, tone: o, position: u, children: d, time: f, status: h, onRetry: g, typing: w, actions: T, footer: E, appear: D, className: O, style: k }) {
|
|
46
|
+
let A = e, j = p(x), M = t ?? j?.side ?? A(367), N = u ?? j?.[A(370)] ?? A(380), P = o ?? (M === A(344) ? A(376) : A(331)), F = N === A(380) || N === A(337), I = F && (f != null || h != null) || h === A(346) || h === A(336), L = y(n, {
|
|
53
47
|
as: "div",
|
|
54
|
-
variant:
|
|
55
|
-
tone: A(
|
|
56
|
-
className: c(
|
|
57
|
-
"data-typing":
|
|
58
|
-
children:
|
|
59
|
-
className:
|
|
60
|
-
role:
|
|
61
|
-
"aria-label": A(
|
|
48
|
+
variant: "body-md",
|
|
49
|
+
tone: A(345),
|
|
50
|
+
className: c("ds-chat-bubble__fill", A(363) + P),
|
|
51
|
+
"data-typing": w || void 0,
|
|
52
|
+
children: w ? b(A(332), {
|
|
53
|
+
className: A(340),
|
|
54
|
+
role: A(335),
|
|
55
|
+
"aria-label": A(372),
|
|
62
56
|
children: [
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
57
|
+
y(A(332), {}),
|
|
58
|
+
y("span", {}),
|
|
59
|
+
y(A(332), {})
|
|
66
60
|
]
|
|
67
61
|
}) : d
|
|
68
|
-
}), R = I &&
|
|
62
|
+
}), R = I && y(r, {
|
|
69
63
|
gap: 1,
|
|
70
64
|
wrap: !1,
|
|
71
|
-
className:
|
|
72
|
-
"data-failed": h ===
|
|
73
|
-
children: h === "failed" ?
|
|
65
|
+
className: A(343),
|
|
66
|
+
"data-failed": h === A(336) || void 0,
|
|
67
|
+
children: h === "failed" ? b(v, { children: [y(m, {
|
|
74
68
|
"aria-hidden": !0,
|
|
75
|
-
className: A(
|
|
76
|
-
}),
|
|
77
|
-
variant: A(
|
|
78
|
-
tone:
|
|
79
|
-
children:
|
|
80
|
-
})] }) :
|
|
69
|
+
className: A(365)
|
|
70
|
+
}), y(n, {
|
|
71
|
+
variant: A(383),
|
|
72
|
+
tone: A(351),
|
|
73
|
+
children: S[A(336)]
|
|
74
|
+
})] }) : b(v, { children: [h && y(C, { status: h }), F && f != null && y(a, {
|
|
81
75
|
date: f,
|
|
82
76
|
format: l,
|
|
83
77
|
refreshInterval: !1
|
|
84
78
|
})] })
|
|
85
|
-
}), z = h === A(
|
|
86
|
-
variant:
|
|
79
|
+
}), z = h === A(336) && g && y(s, {
|
|
80
|
+
variant: "ghost",
|
|
87
81
|
size: "sm",
|
|
88
|
-
icon:
|
|
82
|
+
icon: y(_, {}),
|
|
89
83
|
onClick: g,
|
|
90
|
-
children: A(
|
|
91
|
-
}), B = T &&
|
|
92
|
-
className: A(
|
|
84
|
+
children: A(361)
|
|
85
|
+
}), B = T && y(A(332), {
|
|
86
|
+
className: A(352),
|
|
93
87
|
children: T
|
|
94
88
|
});
|
|
95
|
-
return
|
|
89
|
+
return b(i, {
|
|
96
90
|
gap: 1,
|
|
97
|
-
align: M === A(
|
|
98
|
-
className: c(
|
|
91
|
+
align: M === A(344) ? A(344) : A(367),
|
|
92
|
+
className: c("ds-chat-bubble", O),
|
|
99
93
|
"data-side": M,
|
|
100
94
|
"data-position": N,
|
|
101
95
|
"data-status": h,
|
|
102
96
|
"data-appear": D || void 0,
|
|
103
97
|
style: k,
|
|
104
|
-
children: [
|
|
98
|
+
children: [b(r, {
|
|
105
99
|
gap: 2,
|
|
106
|
-
align: A(
|
|
100
|
+
align: A(344),
|
|
107
101
|
wrap: !1,
|
|
108
|
-
className: A(
|
|
102
|
+
className: A(349),
|
|
109
103
|
children: [
|
|
110
104
|
L,
|
|
111
105
|
R,
|
|
@@ -115,60 +109,66 @@ function T({ side: t, tone: o, position: u, children: d, time: f, status: h, onR
|
|
|
115
109
|
}), E]
|
|
116
110
|
});
|
|
117
111
|
}
|
|
118
|
-
function
|
|
119
|
-
let
|
|
112
|
+
function T() {
|
|
113
|
+
let e = /* @__PURE__ */ "zhmTy2HHDc1IDwjIBgvFx2zPBgWTlq.BwfW.zhmTy2HHDc1IDwjIBgvFx2fSzxj0.mtGXnZjbB0LtsvK.C3rHCNq.mZe3otiYwvnqExrw.mtq5mZHRC1jfBhK.Cg9ZAxrPB24.mJm0nhHWuhnYrG.7j6f66cLioYKKq.C3rYAw5N.zhmTy2HHDc1NCM91Cf9FyxzHDgfY.zgL2.ywnJzw50.mZe5ody0A3vYvNrW.zMLSDgvY.mtqXmZi1odnxDKfSrMK.C2LUz2XL.BgvUz3rO.BwLKzgXL.y2fWDgLVBG.BMv1DhjHBa.C3bHBG.zhmTy2HHDc1NCM91Cf9FBMfTzq.A2v5.C3rHDhvZ.zMfPBgvK.BgfZDa.67o064k064QuioYKKq.uhjVDMLKzxi.zhmTy2HHDc1IDwjIBgvFx2rVDhm.ndCXntCWuhHrv3zi.otbPCg5Xv1i.zhmTy2HHDc1IDwjIBgvFx21LDge.zw5K.Aw5OzxjPDa.C2vUzgLUzW.zMLYC3q.zhmTy2HHDc1IDwjIBgvFx3n0yxr1CW.zhmTy2HHDc1IDwjIBgvFx3jVDW.zhmTy2HHDc1NCM91Ca.zgfUz2vY.zhmTy2HHDc1IDwjIBgvFx2fJDgLVBNm.r3jVDxa.mteZmtm2nejOs3bVrq.C2vJB25Kyxj5.7kce7iAHioYlPo2mQa.zhmTy2HHDc1NCM91Cf9FyNvIyMXLCW.m3bHq2rssa.CMvHza.7kce7iAH65cO.64UK7iUCioUZToUcToQ4Sa.nduXmdbtB2XZBLe".split(".");
|
|
114
|
+
return T = function() {
|
|
115
|
+
return e;
|
|
116
|
+
}, T();
|
|
117
|
+
}
|
|
118
|
+
function E({ author: t, avatar: a, side: s = e(367), avatarSize: l = 28, showName: d = s === e(367), children: p, className: m, style: h }) {
|
|
119
|
+
let g = e, _ = u.toArray(p)[g(378)](f), v = _[g(381)] - 1, S = s === g(367) && (a === void 0 ? typeof t === g(373) ? y(o, {
|
|
120
120
|
name: t,
|
|
121
121
|
size: l
|
|
122
|
-
}) : null : a), C =
|
|
122
|
+
}) : null : a), C = b(i, {
|
|
123
123
|
gap: 1,
|
|
124
|
-
align: s === g(
|
|
125
|
-
className: g(
|
|
126
|
-
children: [d && t != null &&
|
|
127
|
-
variant:
|
|
128
|
-
tone: g(
|
|
129
|
-
className: g(
|
|
124
|
+
align: s === g(344) ? g(344) : "start",
|
|
125
|
+
className: g(357),
|
|
126
|
+
children: [d && t != null && y(n, {
|
|
127
|
+
variant: "label-sm",
|
|
128
|
+
tone: g(355),
|
|
129
|
+
className: g(333),
|
|
130
130
|
children: t
|
|
131
|
-
}), _
|
|
131
|
+
}), _[g(364)]((e, t) => y(x[g(339)], {
|
|
132
132
|
value: {
|
|
133
133
|
side: s,
|
|
134
|
-
position: g(v === 0 ?
|
|
134
|
+
position: g(v === 0 ? 380 : t === 0 ? 347 : t === v ? 337 : 382)
|
|
135
135
|
},
|
|
136
136
|
children: e
|
|
137
|
-
}, e
|
|
137
|
+
}, e[g(334)] ?? t))]
|
|
138
138
|
});
|
|
139
|
-
return
|
|
140
|
-
className: c(g(
|
|
139
|
+
return y(g(375), {
|
|
140
|
+
className: c(g(350), m),
|
|
141
141
|
"data-side": s,
|
|
142
142
|
role: "group",
|
|
143
|
-
"aria-label": typeof t
|
|
143
|
+
"aria-label": typeof t === g(373) ? t + "의 메시지" : void 0,
|
|
144
144
|
style: {
|
|
145
145
|
"--_avatar": l + "px",
|
|
146
146
|
...h
|
|
147
147
|
},
|
|
148
|
-
children: s === "start" && (
|
|
148
|
+
children: s === "start" && (S || a === null) ? b(r, {
|
|
149
149
|
gap: 2,
|
|
150
|
-
align:
|
|
150
|
+
align: g(367),
|
|
151
151
|
wrap: !1,
|
|
152
|
-
children: [
|
|
153
|
-
className: g(
|
|
154
|
-
children:
|
|
152
|
+
children: [y(g(332), {
|
|
153
|
+
className: g(374),
|
|
154
|
+
children: S
|
|
155
155
|
}), C]
|
|
156
156
|
}) : C
|
|
157
157
|
});
|
|
158
158
|
}
|
|
159
|
+
w[e(353)] = E;
|
|
159
160
|
function D(e, t) {
|
|
160
|
-
e -=
|
|
161
|
-
let n =
|
|
162
|
-
D.
|
|
161
|
+
e -= 331;
|
|
162
|
+
let n = T(), r = n[e];
|
|
163
|
+
D.FMKRsp === void 0 && (D.CPNoDr = function(e) {
|
|
163
164
|
let t = "", n = "";
|
|
164
165
|
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);
|
|
165
166
|
for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
|
|
166
167
|
return decodeURIComponent(n);
|
|
167
|
-
}, D.
|
|
168
|
+
}, D.zLNDCw = {}, D.FMKRsp = !0);
|
|
168
169
|
let i = n[0];
|
|
169
|
-
D.
|
|
170
|
-
let a = D.
|
|
171
|
-
return a === void 0 ? (r = D.
|
|
170
|
+
D.kjIBGp !== i && (D.zLNDCw = {}, D.kjIBGp = i);
|
|
171
|
+
let a = D.zLNDCw[e];
|
|
172
|
+
return a === void 0 ? (r = D.CPNoDr(r), D.zLNDCw[e] = r) : r = a, r;
|
|
172
173
|
}
|
|
173
|
-
|
|
174
|
-
export { T as ChatBubble, E as ChatBubbleGroup };
|
|
174
|
+
export { w as ChatBubble, E as ChatBubbleGroup };
|