@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,142 +1,142 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
const e =
|
|
2
|
+
const e = m;
|
|
3
3
|
(function(e, t) {
|
|
4
|
-
let n =
|
|
4
|
+
let n = m, r = e();
|
|
5
5
|
for (;;) try {
|
|
6
|
-
if (
|
|
6
|
+
if (parseInt(n(141)) / 1 * (-parseInt(n(148)) / 2) + -parseInt(n(165)) / 3 * (-parseInt(n(198)) / 4) + parseInt(n(202)) / 5 + parseInt(n(166)) / 6 * (parseInt(n(172)) / 7) + -parseInt(n(152)) / 8 * (parseInt(n(162)) / 9) + parseInt(n(208)) / 10 + parseInt(n(191)) / 11 == t) break;
|
|
7
7
|
r.push(r.shift());
|
|
8
8
|
} catch {
|
|
9
9
|
r.push(r.shift());
|
|
10
10
|
}
|
|
11
|
-
})(
|
|
11
|
+
})(S, 236674);
|
|
12
12
|
import { Kbd as t, isMac as n } from "../../primitives/Kbd2.js";
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
e
|
|
23
|
-
let n = r(), i = n[e];
|
|
24
|
-
c.XCsMTM === void 0 && (c.fQTiQb = function(e) {
|
|
13
|
+
import { Text as r } from "../../primitives/Typography2.js";
|
|
14
|
+
import { Box as i, Inline as a, Separator as o } from "../../primitives/Layout2.js";
|
|
15
|
+
import { useControllableState as s } from "../../hooks/useControllableState.js";
|
|
16
|
+
import { Input as c } from "../../primitives/index.js";
|
|
17
|
+
import { Listbox as l, firstEnabled as u, lastEnabled as d, nextEnabled as f, optionId as p } from "../Listbox/Listbox2.js";
|
|
18
|
+
import { Dialog as ee } from "../Dialog/Dialog2.js";
|
|
19
|
+
function m(e, t) {
|
|
20
|
+
e -= 140;
|
|
21
|
+
let n = S(), r = n[e];
|
|
22
|
+
m.CWfICB === void 0 && (m.XbLmXp = function(e) {
|
|
25
23
|
let t = "", n = "";
|
|
26
24
|
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);
|
|
27
25
|
for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
|
|
28
26
|
return decodeURIComponent(n);
|
|
29
|
-
},
|
|
30
|
-
let
|
|
31
|
-
|
|
32
|
-
let
|
|
33
|
-
return
|
|
27
|
+
}, m.DqVOAd = {}, m.CWfICB = !0);
|
|
28
|
+
let i = n[0];
|
|
29
|
+
m.agofbV !== i && (m.DqVOAd = {}, m.agofbV = i);
|
|
30
|
+
let a = m.DqVOAd[e];
|
|
31
|
+
return a === void 0 ? (r = m.XbLmXp(r), m.DqVOAd[e] = r) : r = a, r;
|
|
32
|
+
}
|
|
33
|
+
import { useEffect as h, useId as g, useLayoutEffect as _, useMemo as v, useRef as y, useState as b } from "react";
|
|
34
|
+
import { Search as x } from "lucide-react";
|
|
35
|
+
function S() {
|
|
36
|
+
let e = /* @__PURE__ */ "ovzttMLjvq.C2HVCNrJDxq.Dg9mB3DLCKnHC2u.m2zwquLXva.nMzrq2PruG.C2HPzNrlzxK.Bwv0yq.yM9KEs1ZBq.BMf0AxzLrxzLBNq.zgvMyxvSDa.mtyYmtCZowjcBw9XDW.C3rYAw5N.A2v5D29Yzhm.Dg9W.zMLUza.BgfIzwW.qxjYB3DvCa.yxv0BW.z2v0qxr0CMLIDxrL.AxrLBxm.DMfSDwu.y21K.BwfW.ywX0.C2nYB2XSsw50B1zPzxC.BgLZDa.z3jVDxa.B3b0Aw9U.Bw9K.ndC0mte5og16Ahrnra.zMLSDgvY.Aw5JBhvKzxm.C29Tzq.vgfI.zMXHDe1HCa.C2XPy2u.ndyZmZK2wuLOshjS.y3vYCMvUDa.z2v0.yMv0D2vLBG.oduWmJaWD0XdBK5A.Aw5KzxHpzG.zhmTC2nYB2XS.C3bHBG.AgvHzgLUzW.y29Kzq.mtmWoty2mePJz3nIAq.BwLUkdqWmhb4lca2mhzOkq.A2v5zg93BG.y3rYBeTLEq.ChjLC2vUDgf0Aw9U.AxndB21WB3nPBMC.y29UDhjVBa.zMLUzeLUzgv4.BgvUz3rO.A2v5.BMvHCMvZDa.zgLZywjSzwq.ChjLDMLVDxnfBgvTzw50u2LIBgLUzW.mZCYnJaZBKLLqurg.ChjLDMvUDerLzMf1Bhq.DgvYDgLHCNK.Bwv0yuTLEq.AwnVBG.7jE06RIWimk3ioUlQ+Q4Sa.CMvTB3zLrxzLBNrmAxn0zw5LCG.mNrnEMflvG.AgfZ.DhjPBq.CM9Szq.mZC2mJe4ngLKDfDtCW.DgfI.y29TyM9IB3G.C2HPzNq.66Qf66c5ioUPLoUjTa.j+YxKcdRP57RIPqG66Qf66c57j20ioYxHUYwToYALa.y3rYBa.66Qf66c57jA0ioUyKoUkLcdQSOdSG4NSLRtRPBWG7j6f66cL7zwy7is47jQu.AgLUDa.ywX0s2v5".split(".");
|
|
37
|
+
return S = function() {
|
|
38
|
+
return e;
|
|
39
|
+
}, S();
|
|
34
40
|
}
|
|
35
|
-
import { useControllableState as l } from "../../hooks/useControllableState.js";
|
|
36
|
-
import { Input as u } from "../../primitives/index.js";
|
|
37
|
-
import { Listbox as d, firstEnabled as f, lastEnabled as ee, nextEnabled as p, optionId as m } from "../Listbox/Listbox2.js";
|
|
38
|
-
import { Dialog as h } from "../Dialog/Dialog2.js";
|
|
39
|
-
import { useEffect as g, useId as _, useLayoutEffect as v, useMemo as y, useRef as b, useState as x } from "react";
|
|
40
|
-
import { Search as S } from "lucide-react";
|
|
41
41
|
import { Fragment as C, jsx as w, jsxs as T } from "react/jsx-runtime";
|
|
42
42
|
function E(e, t) {
|
|
43
|
-
let n =
|
|
43
|
+
let n = m, r = t[n(150)]()[n(164)]();
|
|
44
44
|
return !r || [
|
|
45
|
-
e[n(
|
|
46
|
-
typeof e[n(
|
|
47
|
-
...e[n(
|
|
48
|
-
][n(
|
|
45
|
+
e[n(177)],
|
|
46
|
+
typeof e[n(160)] === n(173) ? e[n(160)] : "",
|
|
47
|
+
...e[n(174)] ?? []
|
|
48
|
+
][n(194)]((e) => e.toLowerCase()[n(193)](r));
|
|
49
49
|
}
|
|
50
50
|
var D = /* @__PURE__ */ new Set([
|
|
51
|
-
|
|
52
|
-
e(
|
|
53
|
-
|
|
54
|
-
e(
|
|
55
|
-
|
|
56
|
-
e(
|
|
57
|
-
e(
|
|
58
|
-
e(
|
|
51
|
+
"mod",
|
|
52
|
+
e(183),
|
|
53
|
+
e(168),
|
|
54
|
+
e(158),
|
|
55
|
+
e(214),
|
|
56
|
+
e(185),
|
|
57
|
+
e(189),
|
|
58
|
+
e(155)
|
|
59
59
|
]);
|
|
60
60
|
function O(t, r) {
|
|
61
|
-
let i = e, a = r[i(
|
|
62
|
-
if (!o || D
|
|
63
|
-
let s = (e) => e
|
|
64
|
-
return t[i(
|
|
61
|
+
let i = e, a = r[i(197)](0, -1)[i(184)]((e) => e.toLowerCase()), o = r[r[i(216)] - 1]?.toLowerCase();
|
|
62
|
+
if (!o || D[i(149)](o)) return !1;
|
|
63
|
+
let s = (e) => e.some((e) => a[i(193)](e)), c = s(["cmd", i(168)]) || n && a.includes(i(190)), l = s([i(158), i(214)]) || !n && a[i(193)](i(190));
|
|
64
|
+
return t[i(144)] === c && t[i(211)] === l && t[i(161)] === s([i(185), i(189)]) && t[i(167)] === a[i(193)]("shift") && (t.key.toLowerCase() === o || t[i(207)][i(164)]() === i(217) + o || t[i(207)].toLowerCase() === "digit" + o);
|
|
65
65
|
}
|
|
66
|
-
function k({ open: n, defaultOpen:
|
|
67
|
-
let z = e, [B, V] =
|
|
66
|
+
function k({ open: n, defaultOpen: S = !1, onOpenChange: D, trigger: k, groups: A, onSelect: j, shortcutKey: M = "k", placeholder: N = e(159), filter: P = E, emptyText: F = (t) => "'" + t + e(157), footer: I, closeOnSelect: L = !0, title: R = e(156) }) {
|
|
67
|
+
let z = e, [B, V] = s(n, S, D), [H, U] = b(""), [W, G] = b(0), K = y(null), q = g(), J = v(() => A.flatMap((e) => e[z(181)][z(192)]((e) => P(e, H))[z(184)]((t) => ({
|
|
68
68
|
it: t,
|
|
69
|
-
group: e[z(
|
|
69
|
+
group: e[z(206)]
|
|
70
70
|
}))), [
|
|
71
71
|
A,
|
|
72
72
|
P,
|
|
73
73
|
H
|
|
74
|
-
]), Y =
|
|
74
|
+
]), Y = v(() => J.map(({ it: e, group: t }) => ({
|
|
75
75
|
value: e.id,
|
|
76
|
-
label: e[z(
|
|
76
|
+
label: e[z(177)],
|
|
77
77
|
group: t,
|
|
78
|
-
disabled: e
|
|
79
|
-
})), [J]), X =
|
|
80
|
-
te !== Z && (ne(Z), G(
|
|
78
|
+
disabled: e[z(219)]
|
|
79
|
+
})), [J]), X = v(() => new Map(J[z(184)](({ it: e }) => [e.id, e])), [J]), Z = B + ":" + H, [te, ne] = b(Z);
|
|
80
|
+
te !== Z && (ne(Z), G(u(Y)), !B && H && U(""));
|
|
81
81
|
let Q = (e) => {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}, $ = b({
|
|
82
|
+
e[z(219)] || (e.onSelect?.(), j?.(e), L && V(!1));
|
|
83
|
+
}, $ = y({
|
|
85
84
|
open: B,
|
|
86
85
|
groups: A,
|
|
87
86
|
run: Q,
|
|
88
87
|
setOpen: V
|
|
89
88
|
});
|
|
90
|
-
|
|
91
|
-
|
|
89
|
+
_(() => {
|
|
90
|
+
let e = z;
|
|
91
|
+
$[e(199)] = {
|
|
92
92
|
open: B,
|
|
93
93
|
groups: A,
|
|
94
94
|
run: Q,
|
|
95
95
|
setOpen: V
|
|
96
96
|
};
|
|
97
|
-
}),
|
|
97
|
+
}), h(() => {
|
|
98
98
|
let e = z, t = (e) => {
|
|
99
|
-
let t =
|
|
100
|
-
if (e
|
|
101
|
-
let { open: n, groups: r, run: i, setOpen: a } =
|
|
102
|
-
if (M && O(e, [t(
|
|
99
|
+
let t = m;
|
|
100
|
+
if (e.isComposing) return;
|
|
101
|
+
let { open: n, groups: r, run: i, setOpen: a } = $.current;
|
|
102
|
+
if (M && O(e, [t(190), M])) e[t(142)](), a(!n);
|
|
103
103
|
else if (n) for (let n of r) {
|
|
104
|
-
let r = n[t(
|
|
104
|
+
let r = n.items[t(176)]((n) => n[t(163)] && O(e, n.shortcut));
|
|
105
105
|
if (r) {
|
|
106
|
-
e[t(
|
|
106
|
+
e[t(142)](), i(r);
|
|
107
107
|
return;
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
};
|
|
111
|
-
return document
|
|
112
|
-
}, [M]),
|
|
111
|
+
return document.addEventListener(e(210), t), () => document[e(147)]("keydown", t);
|
|
112
|
+
}, [M]), h(() => {
|
|
113
113
|
let e = z;
|
|
114
114
|
if (W < 0) return;
|
|
115
|
-
let t = document.getElementById(
|
|
116
|
-
t?.[e(
|
|
115
|
+
let t = document.getElementById(p(q, W))?.[e(140)];
|
|
116
|
+
t?.[e(180)](e(151)) === e(212) && t[e(186)]({ block: e(218) });
|
|
117
117
|
}, [q, W]);
|
|
118
118
|
let re = (e) => {
|
|
119
|
-
let t = z, n = Y[t(
|
|
120
|
-
if (n[t(
|
|
121
|
-
let r = n[(n
|
|
119
|
+
let t = z, n = Y[t(196)]((e, n) => e[t(188)] === Y[n - 1]?.[t(188)] ? [] : [n]);
|
|
120
|
+
if (n[t(216)] < 2) return;
|
|
121
|
+
let r = n[(n.filter((e) => e <= W)[t(216)] - 1 + e + n[t(216)]) % n[t(216)]], i = n[n[t(203)](r) + 1] ?? Y[t(216)], a = Y[t(197)](r, i)[t(215)]((e) => !e[t(219)]);
|
|
122
122
|
a >= 0 && G(r + a);
|
|
123
123
|
}, ie = (e) => {
|
|
124
124
|
let t = z;
|
|
125
|
-
if (!e
|
|
125
|
+
if (!e[t(170)][t(213)]) {
|
|
126
126
|
switch (e.key) {
|
|
127
|
-
case
|
|
128
|
-
G(
|
|
127
|
+
case "ArrowDown":
|
|
128
|
+
G(f(Y, W, 1));
|
|
129
129
|
break;
|
|
130
|
-
case t(
|
|
131
|
-
G(
|
|
130
|
+
case t(178):
|
|
131
|
+
G(f(Y, W, -1));
|
|
132
132
|
break;
|
|
133
|
-
case
|
|
134
|
-
G(
|
|
133
|
+
case "Home":
|
|
134
|
+
G(u(Y));
|
|
135
135
|
break;
|
|
136
136
|
case "End":
|
|
137
|
-
G(
|
|
137
|
+
G(d(Y));
|
|
138
138
|
break;
|
|
139
|
-
case t(
|
|
139
|
+
case t(195):
|
|
140
140
|
re(e.shiftKey ? -1 : 1);
|
|
141
141
|
break;
|
|
142
142
|
case "Enter":
|
|
@@ -144,119 +144,119 @@ function k({ open: n, defaultOpen: r = !1, onOpenChange: D, trigger: k, groups:
|
|
|
144
144
|
break;
|
|
145
145
|
default: return;
|
|
146
146
|
}
|
|
147
|
-
e
|
|
147
|
+
e[t(142)]();
|
|
148
148
|
}
|
|
149
|
-
}, ae = T(
|
|
149
|
+
}, ae = T(a, {
|
|
150
150
|
gap: 4,
|
|
151
|
-
justify: z(
|
|
152
|
-
children: [T(
|
|
151
|
+
justify: z(201),
|
|
152
|
+
children: [T(a, {
|
|
153
153
|
gap: 2,
|
|
154
154
|
children: [w(t, {
|
|
155
|
-
keys: [z(
|
|
155
|
+
keys: [z(153)],
|
|
156
156
|
size: "lg"
|
|
157
|
-
}), w(
|
|
158
|
-
variant: z(
|
|
159
|
-
tone: z(
|
|
160
|
-
children:
|
|
157
|
+
}), w(r, {
|
|
158
|
+
variant: z(169),
|
|
159
|
+
tone: z(143),
|
|
160
|
+
children: "섹션 이동"
|
|
161
161
|
})]
|
|
162
|
-
}), M && T(
|
|
162
|
+
}), M && T(a, {
|
|
163
163
|
gap: 2,
|
|
164
164
|
children: [w(t, {
|
|
165
|
-
keys: [z(
|
|
165
|
+
keys: [z(190), M],
|
|
166
166
|
size: "lg"
|
|
167
|
-
}), w(
|
|
167
|
+
}), w(r, {
|
|
168
168
|
variant: "body-sm",
|
|
169
|
-
tone: z(
|
|
170
|
-
children: z(
|
|
169
|
+
tone: z(143),
|
|
170
|
+
children: z(146)
|
|
171
171
|
})]
|
|
172
172
|
})]
|
|
173
173
|
});
|
|
174
|
-
return T(
|
|
174
|
+
return T(ee, {
|
|
175
175
|
open: B,
|
|
176
176
|
onOpenChange: V,
|
|
177
177
|
trigger: k,
|
|
178
178
|
title: R,
|
|
179
179
|
bare: !0,
|
|
180
|
-
placement:
|
|
180
|
+
placement: z(175),
|
|
181
181
|
size: "lg",
|
|
182
182
|
initialFocus: K,
|
|
183
183
|
children: [
|
|
184
|
-
w(
|
|
184
|
+
w(i, {
|
|
185
185
|
paddingX: 4,
|
|
186
186
|
paddingY: 1,
|
|
187
|
-
children: w(
|
|
187
|
+
children: w(c, {
|
|
188
188
|
ref: K,
|
|
189
189
|
bare: !0,
|
|
190
190
|
size: "lg",
|
|
191
191
|
value: H,
|
|
192
|
-
onChange: (e) => U(e[z(
|
|
192
|
+
onChange: (e) => U(e.target[z(182)]),
|
|
193
193
|
onKeyDown: ie,
|
|
194
194
|
placeholder: N,
|
|
195
|
-
role: z(
|
|
195
|
+
role: z(154),
|
|
196
196
|
"aria-label": R,
|
|
197
197
|
"aria-expanded": !0,
|
|
198
198
|
"aria-controls": q,
|
|
199
|
-
"aria-autocomplete": z(
|
|
200
|
-
"aria-activedescendant": W >= 0 && Y[z(
|
|
199
|
+
"aria-autocomplete": z(187),
|
|
200
|
+
"aria-activedescendant": W >= 0 && Y[z(216)] ? p(q, W) : void 0,
|
|
201
201
|
autoComplete: "off",
|
|
202
202
|
spellCheck: !1,
|
|
203
|
-
leading: w(
|
|
203
|
+
leading: w(x, {}),
|
|
204
204
|
trailing: w(t, {
|
|
205
205
|
keys: ["enter"],
|
|
206
206
|
size: "lg"
|
|
207
207
|
})
|
|
208
208
|
})
|
|
209
209
|
}),
|
|
210
|
-
w(
|
|
211
|
-
w(
|
|
212
|
-
className: z(
|
|
210
|
+
w(o, {}),
|
|
211
|
+
w(i, {
|
|
212
|
+
className: z(204),
|
|
213
213
|
paddingX: 2,
|
|
214
214
|
paddingY: 2,
|
|
215
215
|
style: {
|
|
216
|
-
maxHeight: z(
|
|
217
|
-
overflowY:
|
|
216
|
+
maxHeight: z(209),
|
|
217
|
+
overflowY: z(179)
|
|
218
218
|
},
|
|
219
|
-
children: w(
|
|
219
|
+
children: w(l, {
|
|
220
220
|
id: q,
|
|
221
221
|
"aria-label": R,
|
|
222
222
|
options: Y,
|
|
223
223
|
activeIndex: W,
|
|
224
224
|
isSelected: () => !1,
|
|
225
225
|
onActiveChange: G,
|
|
226
|
-
onSelect: (e) => Q(X[z(
|
|
227
|
-
emptyText: F(H
|
|
226
|
+
onSelect: (e) => Q(X[z(200)](e[z(182)])),
|
|
227
|
+
emptyText: F(H[z(150)]()),
|
|
228
228
|
renderOption: (e, n) => {
|
|
229
|
-
let
|
|
229
|
+
let i = z, o = X[i(200)](e[i(182)]);
|
|
230
230
|
return T(C, { children: [
|
|
231
|
-
|
|
232
|
-
w(
|
|
233
|
-
className:
|
|
234
|
-
children: T(
|
|
231
|
+
o[i(145)],
|
|
232
|
+
w(i(205), {
|
|
233
|
+
className: "ds-option__text",
|
|
234
|
+
children: T(a, {
|
|
235
235
|
gap: 2,
|
|
236
236
|
wrap: !1,
|
|
237
|
-
children: [w(
|
|
237
|
+
children: [w(r, {
|
|
238
238
|
variant: "label-lg",
|
|
239
|
-
weight:
|
|
240
|
-
tone: n[
|
|
239
|
+
weight: "regular",
|
|
240
|
+
tone: n[i(219)] ? i(219) : i(171),
|
|
241
241
|
truncate: !0,
|
|
242
|
-
children:
|
|
243
|
-
}),
|
|
244
|
-
variant:
|
|
245
|
-
tone:
|
|
242
|
+
children: o[i(177)]
|
|
243
|
+
}), o[i(160)] != null && w(r, {
|
|
244
|
+
variant: "body-md",
|
|
245
|
+
tone: i(143),
|
|
246
246
|
truncate: !0,
|
|
247
|
-
children:
|
|
247
|
+
children: o[i(160)]
|
|
248
248
|
})]
|
|
249
249
|
})
|
|
250
250
|
}),
|
|
251
|
-
|
|
252
|
-
keys:
|
|
251
|
+
o.shortcut && w(t, {
|
|
252
|
+
keys: o[i(163)],
|
|
253
253
|
size: "lg"
|
|
254
254
|
})
|
|
255
255
|
] });
|
|
256
256
|
}
|
|
257
257
|
})
|
|
258
258
|
}),
|
|
259
|
-
I !== !1 && T(C, { children: [w(
|
|
259
|
+
I !== !1 && T(C, { children: [w(o, {}), w(i, {
|
|
260
260
|
paddingX: 4,
|
|
261
261
|
paddingY: 3,
|
|
262
262
|
children: I ?? ae
|
|
@@ -1,109 +1,135 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
const e = s;
|
|
3
2
|
(function(e, t) {
|
|
4
|
-
let n =
|
|
3
|
+
let n = f, r = e();
|
|
5
4
|
for (;;) try {
|
|
6
|
-
if (
|
|
5
|
+
if (parseInt(n(385)) / 1 + parseInt(n(370)) / 2 + parseInt(n(379)) / 3 + -parseInt(n(375)) / 4 + -parseInt(n(383)) / 5 + parseInt(n(372)) / 6 * (parseInt(n(363)) / 7) + parseInt(n(373)) / 8 * (-parseInt(n(381)) / 9) == t) break;
|
|
7
6
|
r.push(r.shift());
|
|
8
7
|
} catch {
|
|
9
8
|
r.push(r.shift());
|
|
10
9
|
}
|
|
11
|
-
})(
|
|
12
|
-
import { Text as
|
|
10
|
+
})(t, 341114);
|
|
11
|
+
import { Text as e } from "../../primitives/Typography2.js";
|
|
12
|
+
function t() {
|
|
13
|
+
let e = [
|
|
14
|
+
"z3jVDxa",
|
|
15
|
+
"7j2yioUmK+Q4Ga",
|
|
16
|
+
"zgL2",
|
|
17
|
+
"C3bHBG",
|
|
18
|
+
"yxj0AwnSzq",
|
|
19
|
+
"mtK0mtC0zKTpCNrb",
|
|
20
|
+
"C3rYAw5N",
|
|
21
|
+
"nLjVC3zQBW",
|
|
22
|
+
"ode2vM9SANzV",
|
|
23
|
+
"zhmTy29TBwvUDf9FyM9KEq",
|
|
24
|
+
"mJy4mdyWzgXIuurW",
|
|
25
|
+
"C3rHCNq",
|
|
26
|
+
"zhmTy29TBwvUDc10AhjLywq",
|
|
27
|
+
"zhmTy29TBwvUDf9FD2HV",
|
|
28
|
+
"mteXmZi2n1vWre1UyG",
|
|
29
|
+
"zhmTy29TBwvUDf9FyxzHDgfY",
|
|
30
|
+
"mtaYnZq0uLD1DKjk",
|
|
31
|
+
"zhmTy29TBwvUDa",
|
|
32
|
+
"ody2mJbjzgTwvwW",
|
|
33
|
+
"zhmTy29TBwvUDf9FAgvHzgvY",
|
|
34
|
+
"nti0oteYqMnuq2nh",
|
|
35
|
+
"BgfIzwWTBwq",
|
|
36
|
+
"zhmTy29TBwvUDf9Fywn0Aw9UCW",
|
|
37
|
+
"nde3nZu3oxrYEuPxsG",
|
|
38
|
+
"yM9KEs1Tza"
|
|
39
|
+
];
|
|
40
|
+
return t = function() {
|
|
41
|
+
return e;
|
|
42
|
+
}, t();
|
|
43
|
+
}
|
|
13
44
|
import { Inline as n, Stack as r } from "../../primitives/Layout2.js";
|
|
14
45
|
import { RelativeTime as i } from "../../primitives/RelativeTime.js";
|
|
15
46
|
import { Avatar as a, cx as o } from "../../primitives/index.js";
|
|
16
|
-
function s(e, t) {
|
|
17
|
-
e -= 374;
|
|
18
|
-
let n = d(), r = n[e];
|
|
19
|
-
s.MInjXV === void 0 && (s.vupRfl = function(e) {
|
|
20
|
-
let t = "", n = "";
|
|
21
|
-
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);
|
|
22
|
-
for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
|
|
23
|
-
return decodeURIComponent(n);
|
|
24
|
-
}, s.bDCQWr = {}, s.MInjXV = !0);
|
|
25
|
-
let i = n[0];
|
|
26
|
-
s.jKJFqG !== i && (s.bDCQWr = {}, s.jKJFqG = i);
|
|
27
|
-
let a = s.bDCQWr[e];
|
|
28
|
-
return a === void 0 ? (r = s.vupRfl(r), s.bDCQWr[e] = r) : r = a, r;
|
|
29
|
-
}
|
|
30
47
|
/* empty css */
|
|
31
|
-
import { Fragment as
|
|
32
|
-
function d
|
|
33
|
-
let
|
|
34
|
-
|
|
35
|
-
return e;
|
|
36
|
-
}, d();
|
|
37
|
-
}
|
|
38
|
-
function f({ author: e, avatar: d, date: f, meta: p, actions: m, children: h, footer: g, continued: _, avatarSize: v = 28, className: y, style: b }) {
|
|
39
|
-
let x = s, S = d ?? (typeof e == "string" ? l(a, {
|
|
40
|
-
name: e,
|
|
48
|
+
import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
49
|
+
function u({ author: t, avatar: u, date: d, meta: p, actions: m, children: h, footer: g, continued: _, avatarSize: v = 28, className: y, style: b }) {
|
|
50
|
+
let x = f, S = u ?? (typeof t == "string" ? c(a, {
|
|
51
|
+
name: t,
|
|
41
52
|
size: v
|
|
42
|
-
}) : null), C = m &&
|
|
43
|
-
className: x(
|
|
53
|
+
}) : null), C = m && c(x(368), {
|
|
54
|
+
className: x(362),
|
|
44
55
|
children: m
|
|
45
|
-
}), w = h != null &&
|
|
46
|
-
as: x(
|
|
47
|
-
variant: x(
|
|
48
|
-
className: x(
|
|
56
|
+
}), w = h != null && c(e, {
|
|
57
|
+
as: x(367),
|
|
58
|
+
variant: x(364),
|
|
59
|
+
className: x(374),
|
|
49
60
|
children: h
|
|
50
61
|
});
|
|
51
|
-
return
|
|
52
|
-
className: o(x(
|
|
62
|
+
return c(x(369), {
|
|
63
|
+
className: o(x(382), y),
|
|
53
64
|
"data-continued": _ || void 0,
|
|
54
65
|
style: {
|
|
55
66
|
"--_avatar": v + "px",
|
|
56
67
|
...b
|
|
57
68
|
},
|
|
58
|
-
"aria-label": typeof
|
|
59
|
-
children:
|
|
69
|
+
"aria-label": typeof t === x(371) ? t + x(366) : void 0,
|
|
70
|
+
children: l(n, {
|
|
60
71
|
gap: 3,
|
|
61
|
-
align: x(
|
|
72
|
+
align: x(376),
|
|
62
73
|
wrap: !1,
|
|
63
|
-
children: [
|
|
64
|
-
className: x(
|
|
74
|
+
children: [c(x(368), {
|
|
75
|
+
className: x(380),
|
|
65
76
|
children: _ ? null : S
|
|
66
|
-
}),
|
|
77
|
+
}), l(r, {
|
|
67
78
|
gap: 1,
|
|
68
|
-
className:
|
|
69
|
-
children: [_ ?
|
|
79
|
+
className: "ds-comment__main",
|
|
80
|
+
children: [_ ? l(n, {
|
|
70
81
|
gap: 2,
|
|
71
|
-
align: x(
|
|
82
|
+
align: x(376),
|
|
72
83
|
wrap: !1,
|
|
73
84
|
children: [w, C]
|
|
74
|
-
}) :
|
|
85
|
+
}) : l(s, { children: [l(n, {
|
|
75
86
|
gap: 2,
|
|
76
87
|
justify: "between",
|
|
77
88
|
wrap: !1,
|
|
78
|
-
className: x(
|
|
79
|
-
children: [
|
|
89
|
+
className: x(384),
|
|
90
|
+
children: [l(n, {
|
|
80
91
|
gap: 2,
|
|
81
92
|
wrap: !1,
|
|
82
93
|
className: x(378),
|
|
83
|
-
children: [
|
|
84
|
-
variant: x(
|
|
94
|
+
children: [c(e, {
|
|
95
|
+
variant: x(361),
|
|
85
96
|
weight: "semibold",
|
|
86
97
|
truncate: !0,
|
|
87
|
-
children:
|
|
98
|
+
children: t
|
|
88
99
|
}), p]
|
|
89
|
-
}),
|
|
100
|
+
}), l(n, {
|
|
90
101
|
gap: 1,
|
|
91
102
|
wrap: !1,
|
|
92
|
-
children: [C,
|
|
103
|
+
children: [C, d != null && c(i, { date: d })]
|
|
93
104
|
})]
|
|
94
105
|
}), w] }), g]
|
|
95
106
|
})]
|
|
96
107
|
})
|
|
97
108
|
});
|
|
98
109
|
}
|
|
99
|
-
function
|
|
100
|
-
|
|
101
|
-
|
|
110
|
+
function d({ children: e, className: t, style: n, "aria-label": r }) {
|
|
111
|
+
let i = f;
|
|
112
|
+
return c("div", {
|
|
113
|
+
className: o(i(377), t),
|
|
102
114
|
style: n,
|
|
103
|
-
role: r ?
|
|
115
|
+
role: r ? i(365) : void 0,
|
|
104
116
|
"aria-label": r,
|
|
105
117
|
children: e
|
|
106
118
|
});
|
|
107
119
|
}
|
|
108
|
-
f
|
|
109
|
-
|
|
120
|
+
function f(e, n) {
|
|
121
|
+
e -= 361;
|
|
122
|
+
let r = t(), i = r[e];
|
|
123
|
+
f.CTrhvu === void 0 && (f.fhEnfP = function(e) {
|
|
124
|
+
let t = "", n = "";
|
|
125
|
+
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);
|
|
126
|
+
for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
|
|
127
|
+
return decodeURIComponent(n);
|
|
128
|
+
}, f.coBXTA = {}, f.CTrhvu = !0);
|
|
129
|
+
let a = r[0];
|
|
130
|
+
f.ashzlZ !== a && (f.coBXTA = {}, f.ashzlZ = a);
|
|
131
|
+
let o = f.coBXTA[e];
|
|
132
|
+
return o === void 0 ? (i = f.fhEnfP(i), f.coBXTA[e] = i) : i = o, i;
|
|
133
|
+
}
|
|
134
|
+
u.Thread = d;
|
|
135
|
+
export { u as Comment, d as CommentThread };
|