@iamfiro/design 0.3.1 → 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/avatar/AGENTS.md +29 -1
- package/agents/brand-icon/AGENTS.md +1 -1
- package/agents/social-login-button/AGENTS.md +4 -3
- package/agents/tooltip/AGENTS.md +1 -1
- package/lib/components/Accordion/Accordion2.js +92 -92
- package/lib/components/ActionBar/ActionBar2.js +42 -45
- package/lib/components/Alert/Alert2.js +77 -77
- package/lib/components/AppShell/AppShell2.js +70 -71
- package/lib/components/AreaChart/AreaChart.js +32 -35
- package/lib/components/BarChart/BarChart2.js +155 -155
- package/lib/components/BarList/BarList2.js +93 -93
- package/lib/components/Breadcrumb/Breadcrumb2.js +62 -64
- package/lib/components/Calendar/Calendar2.js +183 -182
- package/lib/components/Calendar/DatePicker2.js +116 -115
- package/lib/components/Calendar/date.js +67 -66
- package/lib/components/Card/Card2.js +67 -67
- package/lib/components/CardFrame/CardFrame2.js +34 -37
- package/lib/components/Chart/ChartParts.js +90 -90
- package/lib/components/Chart/chart2.js +62 -62
- package/lib/components/Chart/useChartInteraction.js +51 -51
- package/lib/components/ChatBubble/ChatBubble2.js +117 -117
- package/lib/components/ChatBubble/formatChatTime.js +37 -36
- package/lib/components/ChatComposer/ChatComposer2.js +55 -55
- package/lib/components/CodeBlock/CodeBlock2.js +60 -60
- package/lib/components/CodeBlock/highlight.js +72 -72
- package/lib/components/ColorPicker/ColorPicker2.js +232 -231
- package/lib/components/ColorPicker/color.js +67 -67
- package/lib/components/ColorPicker/presets.js +25 -24
- package/lib/components/Combobox/Combobox2.js +140 -140
- package/lib/components/CommandMenu/CommandMenu.js +135 -135
- package/lib/components/Comment/Comment2.js +82 -57
- package/lib/components/ContextMenu/ContextMenu2.js +101 -100
- package/lib/components/DataGrid/DataGrid2.js +872 -871
- package/lib/components/DataGrid/GridPopover.js +98 -98
- package/lib/components/DataGrid/anchor.js +34 -33
- package/lib/components/DataGrid/model.js +291 -290
- package/lib/components/DataGrid/panels.js +337 -336
- package/lib/components/DataGrid/typeMeta.js +49 -48
- package/lib/components/DataGrid/types.js +34 -33
- package/lib/components/DescriptionList/DescriptionList2.js +109 -109
- package/lib/components/Dialog/AlertDialog.js +53 -53
- package/lib/components/Dialog/Dialog2.js +72 -72
- package/lib/components/Dialog/modal.js +67 -68
- package/lib/components/Drawer/Drawer2.js +117 -117
- package/lib/components/DropdownMenu/DropdownMenu2.js +267 -266
- package/lib/components/DropdownMenu/menuCore.js +68 -42
- package/lib/components/Dropzone/Dropzone2.js +78 -78
- package/lib/components/EmptyState/EmptyState2.js +58 -56
- package/lib/components/FileChip/FileChip2.js +72 -48
- package/lib/components/FileUpload/FileUpload.js +137 -138
- package/lib/components/FilterChips/FilterChips2.js +61 -61
- package/lib/components/FunnelChart/FunnelChart2.js +161 -161
- package/lib/components/FunnelChart/funnel.js +50 -49
- package/lib/components/Highlight/Highlight2.js +56 -56
- package/lib/components/HoverCard/HoverCard.js +73 -73
- package/lib/components/InlineDiff/InlineDiff2.js +129 -129
- package/lib/components/InlineDiff/diff.js +87 -87
- package/lib/components/InlineDiff/useDiffReview.js +54 -52
- package/lib/components/Kanban/Kanban2.js +383 -384
- package/lib/components/Kanban/KanbanCard.js +68 -93
- package/lib/components/Kanban/move.js +43 -43
- package/lib/components/LineChart/LineChart2.js +164 -164
- package/lib/components/List/List2.js +60 -60
- package/lib/components/Listbox/Listbox2.js +108 -108
- package/lib/components/Marker/Marker2.js +59 -57
- package/lib/components/Menubar/Menubar2.js +120 -119
- package/lib/components/MultiSelect/MultiSelect2.js +111 -111
- package/lib/components/NavigationMenu/NavigationMenu2.js +277 -279
- package/lib/components/NoticeStack/NoticeStack2.js +109 -109
- package/lib/components/NumberStepper/NumberStepper2.js +70 -70
- package/lib/components/OtpInput/OtpInput2.js +94 -94
- package/lib/components/Pagination/Pagination2.js +109 -109
- package/lib/components/Pagination/paginationRange.js +37 -38
- package/lib/components/PhoneInput/PhoneInput.js +83 -84
- package/lib/components/PieChart/PieChart2.js +157 -157
- package/lib/components/PieChart/arc.js +72 -72
- package/lib/components/PieChart/useArcTween.js +50 -53
- package/lib/components/Popover/Popover2.js +62 -61
- package/lib/components/ProgressTracker/ProgressTracker2.js +104 -104
- package/lib/components/Rating/Rating2.js +89 -88
- package/lib/components/Resizable/Resizable2.js +133 -134
- package/lib/components/Resizable/layout.js +56 -56
- package/lib/components/ScaledPreview/ScaledPreview2.js +64 -63
- package/lib/components/ScatterChart/ScatterChart2.js +252 -251
- package/lib/components/ScatterChart/scatter.js +50 -52
- package/lib/components/ScrollArea/ScrollArea2.js +122 -122
- package/lib/components/Select/Select2.js +84 -85
- package/lib/components/Sidebar/Sidebar2.js +79 -79
- package/lib/components/Skeleton/Skeleton2.js +56 -56
- package/lib/components/Slider/Slider2.js +63 -63
- package/lib/components/SocialLoginButton/SocialLoginButton.js +54 -46
- package/lib/components/SparkChart/SparkChart2.js +129 -128
- package/lib/components/SparkChart/spark.js +49 -48
- package/lib/components/Sparkbar/Sparkbar2.js +59 -58
- package/lib/components/SplitView/SplitView2.js +54 -55
- package/lib/components/Stat/Stat2.js +59 -59
- package/lib/components/StepList/StepList2.js +78 -78
- package/lib/components/Table/Table2.js +55 -55
- package/lib/components/Tabs/Tabs2.js +76 -76
- package/lib/components/TagInput/TagInput2.js +218 -215
- package/lib/components/TimePicker/TimePicker2.js +204 -204
- package/lib/components/TimePicker/time.js +59 -58
- package/lib/components/Timeline/Timeline2.js +179 -179
- package/lib/components/Timeline/scale.js +60 -55
- package/lib/components/Toast/Toaster.js +103 -103
- package/lib/components/Toast/store.js +47 -47
- package/lib/components/ToggleGroup/ToggleGroup2.js +77 -77
- package/lib/components/Toolbar/Toolbar2.js +138 -138
- package/lib/components/Tracker/Tracker2.js +99 -99
- package/lib/components/TreeDiagram/TreeDiagram2.js +117 -117
- package/lib/components/TreeView/TreeView2.js +145 -145
- package/lib/hooks/timing.js +33 -33
- package/lib/hooks/useControllableState.js +33 -33
- package/lib/hooks/useCountdown.js +54 -55
- package/lib/hooks/useDigitInput.js +85 -84
- package/lib/hooks/useDismiss.js +55 -55
- package/lib/hooks/useElapsed.js +55 -55
- package/lib/hooks/useFloating.js +21 -21
- package/lib/hooks/useFocusTrap.js +67 -67
- package/lib/hooks/usePresence.js +33 -29
- package/lib/hooks/usePressToOpen.js +33 -33
- package/lib/hooks/useScrollLock.js +54 -55
- package/lib/hooks/useSelection.js +54 -48
- package/lib/index.js +67 -68
- package/lib/primitives/AspectRatio2.js +58 -54
- package/lib/primitives/BrandIcon.js +189 -158
- package/lib/primitives/ColorDot2.js +52 -51
- package/lib/primitives/CopyButton2.js +66 -64
- package/lib/primitives/CountBadge2.js +56 -56
- package/lib/primitives/Countdown2.js +36 -34
- package/lib/primitives/Delta2.js +41 -66
- package/lib/primitives/Elapsed.js +32 -32
- package/lib/primitives/FileIcon2.js +90 -90
- package/lib/primitives/Flag2.js +157 -157
- package/lib/primitives/IconStack2.js +60 -58
- package/lib/primitives/IconTile2.js +46 -48
- package/lib/primitives/Kbd2.js +51 -51
- package/lib/primitives/Layout2.js +71 -71
- package/lib/primitives/Link2.js +37 -35
- package/lib/primitives/MaskedText2.js +71 -75
- package/lib/primitives/Progress2.js +72 -72
- package/lib/primitives/RelativeTime.js +60 -64
- package/lib/primitives/SearchInput2.js +55 -56
- package/lib/primitives/SelectorButton2.js +69 -71
- package/lib/primitives/Spinner2.js +63 -59
- package/lib/primitives/StatusIcon2.js +66 -66
- package/lib/primitives/Swatch2.js +54 -56
- package/lib/primitives/Tooltip2.js +77 -77
- package/lib/primitives/Typography2.js +67 -67
- package/lib/primitives/formatCountdown.js +38 -41
- package/lib/primitives/formatElapsed.js +41 -40
- package/lib/primitives/formatRelativeTime.js +74 -48
- package/lib/primitives/hotkey.js +81 -81
- package/lib/primitives/index.js +220 -199
- package/lib/primitives/maskValue.js +53 -52
- 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/lib/types/primitives/index.d.ts +6 -2
- package/package.json +1 -1
|
@@ -1,55 +1,34 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
let r = n, i = e();
|
|
2
|
+
(function(t, n) {
|
|
3
|
+
let r = e, i = t();
|
|
5
4
|
for (;;) try {
|
|
6
|
-
if (
|
|
5
|
+
if (parseInt(r(365)) / 1 + parseInt(r(368)) / 2 * (-parseInt(r(359)) / 3) + -parseInt(r(361)) / 4 * (-parseInt(r(373)) / 5) + parseInt(r(360)) / 6 * (parseInt(r(370)) / 7) + -parseInt(r(372)) / 8 + parseInt(r(371)) / 9 + -parseInt(r(363)) / 10 * (parseInt(r(364)) / 11) == n) break;
|
|
7
6
|
i.push(i.shift());
|
|
8
7
|
} catch {
|
|
9
8
|
i.push(i.shift());
|
|
10
9
|
}
|
|
11
|
-
})(
|
|
12
|
-
function t
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"CgfKu3rHCNq",
|
|
17
|
-
"mJmYndqWq3r2qMr0",
|
|
18
|
-
"Bwf4",
|
|
19
|
-
"y2XVy2S",
|
|
20
|
-
"mJG1otaZrunAALnp",
|
|
21
|
-
"Dgv4Da",
|
|
22
|
-
"ode1nJaYqML5rxvy",
|
|
23
|
-
"mZeZmtz0BgvlBui",
|
|
24
|
-
"zMXVB3i",
|
|
25
|
-
"ndmXmJu5mNjLq1LIEG",
|
|
26
|
-
"mJmYmtuYuuLsweTN"
|
|
27
|
-
];
|
|
28
|
-
return t = function() {
|
|
29
|
-
return e;
|
|
30
|
-
}, t();
|
|
31
|
-
}
|
|
32
|
-
function n(e, r) {
|
|
33
|
-
e -= 289;
|
|
34
|
-
let i = t(), a = i[e];
|
|
35
|
-
n.VLuwkG === void 0 && (n.RneeZp = function(e) {
|
|
10
|
+
})(n, 419217);
|
|
11
|
+
function e(t, r) {
|
|
12
|
+
t -= 359;
|
|
13
|
+
let i = n(), a = i[t];
|
|
14
|
+
e.LYIHNy === void 0 && (e.TyjwHA = function(e) {
|
|
36
15
|
let t = "", n = "";
|
|
37
16
|
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);
|
|
38
17
|
for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
|
|
39
18
|
return decodeURIComponent(n);
|
|
40
|
-
},
|
|
19
|
+
}, e.uIUhXu = {}, e.LYIHNy = !0);
|
|
41
20
|
let o = i[0];
|
|
42
|
-
|
|
43
|
-
let s =
|
|
44
|
-
return s === void 0 ? (a =
|
|
21
|
+
e.FqGucB !== o && (e.uIUhXu = {}, e.FqGucB = o);
|
|
22
|
+
let s = e.uIUhXu[t];
|
|
23
|
+
return s === void 0 ? (a = e.TyjwHA(a), e.uIUhXu[t] = a) : a = s, a;
|
|
45
24
|
}
|
|
46
|
-
function
|
|
47
|
-
let r = e, i = Math[r(
|
|
48
|
-
if (n === r(
|
|
49
|
-
let e = String(s)
|
|
50
|
-
return a > 0 ? a + ":" + String(o)[r(
|
|
25
|
+
function t(t, n = "clock") {
|
|
26
|
+
let r = e, i = Math[r(362)](0, Math[r(366)](t)), a = Math[r(366)](i / 3600), o = Math[r(366)](i % 3600 / 60), s = i % 60;
|
|
27
|
+
if (n === r(367)) {
|
|
28
|
+
let e = String(s).padStart(2, "0");
|
|
29
|
+
return a > 0 ? a + ":" + String(o)[r(369)](2, "0") + ":" + e : o + ":" + e;
|
|
51
30
|
}
|
|
52
|
-
let [c, l, u] = n ===
|
|
31
|
+
let [c, l, u] = n === "text" ? [
|
|
53
32
|
"시간",
|
|
54
33
|
"분",
|
|
55
34
|
"초"
|
|
@@ -60,4 +39,26 @@ function r(t, n = e(296)) {
|
|
|
60
39
|
];
|
|
61
40
|
return a > 0 ? o > 0 ? "" + a + c + " " + o + l : "" + a + c : o > 0 ? s > 0 ? "" + o + l + " " + s + u : "" + o + l : "" + s + u;
|
|
62
41
|
}
|
|
63
|
-
export {
|
|
42
|
+
export { t as formatElapsed };
|
|
43
|
+
function n() {
|
|
44
|
+
let e = [
|
|
45
|
+
"mtq1vNzrsxn3",
|
|
46
|
+
"odDSA05Ryw4",
|
|
47
|
+
"otqYvfPRy0Hl",
|
|
48
|
+
"mty4otjztgr4ALu",
|
|
49
|
+
"Bwf4",
|
|
50
|
+
"mtq4mdb1C1LyqxG",
|
|
51
|
+
"mtaWmwXfB2rkra",
|
|
52
|
+
"mZe0ntmXr3zbyLLk",
|
|
53
|
+
"zMXVB3i",
|
|
54
|
+
"y2XVy2S",
|
|
55
|
+
"nde1mZbMCg9vzhC",
|
|
56
|
+
"CgfKu3rHCNq",
|
|
57
|
+
"mZm4odbJvg56rKS",
|
|
58
|
+
"mty4mdC1ovvtrfLtBa",
|
|
59
|
+
"mtGYmdm3nMLjrhHpua"
|
|
60
|
+
];
|
|
61
|
+
return n = function() {
|
|
62
|
+
return e;
|
|
63
|
+
}, n();
|
|
64
|
+
}
|
|
@@ -1,64 +1,90 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
const e =
|
|
2
|
+
const e = p;
|
|
3
|
+
function t() {
|
|
4
|
+
let e = [
|
|
5
|
+
"nfH6uurjrG",
|
|
6
|
+
"z2v0tw9UDgG",
|
|
7
|
+
"z2v0vgLTzq",
|
|
8
|
+
"nJm5otmZweLVAgTb",
|
|
9
|
+
"ndKXmJK5meH6ugryEq",
|
|
10
|
+
"Bg9UzW",
|
|
11
|
+
"z2v0rNvSBfLLyxi",
|
|
12
|
+
"z2v0rgf0zq",
|
|
13
|
+
"zMXVB3i",
|
|
14
|
+
"nJuXmKL2DKThza",
|
|
15
|
+
"CM91BMq",
|
|
16
|
+
"C2HVCNq",
|
|
17
|
+
"mtuYyNjuBM5V",
|
|
18
|
+
"7j28ioYGHa",
|
|
19
|
+
"Bwf4",
|
|
20
|
+
"Axnoyu4",
|
|
21
|
+
"mtqYnJC4oevnA2LPyG",
|
|
22
|
+
"mJi3n0P5DKXKyG",
|
|
23
|
+
"A28Ts1i",
|
|
24
|
+
"67AeioYGHa",
|
|
25
|
+
"ote3mNrVBfLWvW",
|
|
26
|
+
"ndq5mdGZmKDeAe9SuG",
|
|
27
|
+
"rgf0zvrPBwvgB3jTyxq",
|
|
28
|
+
"mtq5mJC2ndbZzKPAA3i",
|
|
29
|
+
"ywjZ"
|
|
30
|
+
];
|
|
31
|
+
return t = function() {
|
|
32
|
+
return e;
|
|
33
|
+
}, t();
|
|
34
|
+
}
|
|
3
35
|
(function(e, t) {
|
|
4
|
-
let n =
|
|
36
|
+
let n = p, r = e();
|
|
5
37
|
for (;;) try {
|
|
6
|
-
if (
|
|
38
|
+
if (parseInt(n(113)) / 1 * (parseInt(n(105)) / 2) + parseInt(n(109)) / 3 + parseInt(n(118)) / 4 * (-parseInt(n(122)) / 5) + -parseInt(n(114)) / 6 + -parseInt(n(121)) / 7 + parseInt(n(102)) / 8 * (-parseInt(n(110)) / 9) + parseInt(n(116)) / 10 == t) break;
|
|
7
39
|
r.push(r.shift());
|
|
8
40
|
} catch {
|
|
9
41
|
r.push(r.shift());
|
|
10
42
|
}
|
|
11
|
-
})(
|
|
12
|
-
var
|
|
13
|
-
function
|
|
14
|
-
e
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
return
|
|
21
|
-
}, c.KtfCMf = {}, c.iVrAhN = !0);
|
|
22
|
-
let i = n[0];
|
|
23
|
-
c.objHQY !== i && (c.KtfCMf = {}, c.objHQY = i);
|
|
24
|
-
let a = c.KtfCMf[e];
|
|
25
|
-
return a === void 0 ? (r = c.CJazXg(r), c.KtfCMf[e] = r) : r = a, r;
|
|
26
|
-
}
|
|
27
|
-
function l(i, o = /* @__PURE__ */ new Date()) {
|
|
28
|
-
let c = e, l = a(i);
|
|
29
|
-
if (Number[c(137)](l.getTime())) return "";
|
|
30
|
-
let u = o[c(133)]() - l[c(133)](), d = Math[c(120)](u), f = u >= 0, p = s(l, o);
|
|
31
|
-
if (d < 45 * t) return f ? "방금" : "곧";
|
|
32
|
-
if (d < r) {
|
|
33
|
-
let e = Math[c(126)](1, Math[c(112)](d / n));
|
|
34
|
-
return f ? e + c(116) : e + c(124);
|
|
43
|
+
})(t, 637001);
|
|
44
|
+
var n = 1e3, r = 60 * n, i = 60 * r, a = 24 * i, o = (e) => e instanceof Date ? e : new Date(e), s = (t) => new Date(t[e(124)](), t[e(119)](), t[e(100)]())[e(120)](), c = (t, n) => Math[e(103)]((s(n) - s(t)) / a);
|
|
45
|
+
function l(t, a = /* @__PURE__ */ new Date()) {
|
|
46
|
+
let s = e, l = o(t);
|
|
47
|
+
if (Number[s(108)](l[s(120)]())) return "";
|
|
48
|
+
let u = a[s(120)]() - l[s(120)](), d = Math[s(117)](u), f = u >= 0, p = c(l, a);
|
|
49
|
+
if (d < 45 * n) return f ? "방금" : "곧";
|
|
50
|
+
if (d < i) {
|
|
51
|
+
let e = Math[s(107)](1, Math.floor(d / r));
|
|
52
|
+
return f ? e + s(112) : e + "분 후";
|
|
35
53
|
}
|
|
36
|
-
if (p === 0 || d < 6 *
|
|
37
|
-
let e = Math
|
|
38
|
-
return f ? e +
|
|
54
|
+
if (p === 0 || d < 6 * i) {
|
|
55
|
+
let e = Math[s(101)](d / i);
|
|
56
|
+
return f ? e + "시간 전" : e + "시간 후";
|
|
39
57
|
}
|
|
40
58
|
if (p === 1) return "어제";
|
|
41
59
|
if (p === -1) return "내일";
|
|
42
|
-
if (Math[
|
|
43
|
-
let m = l
|
|
44
|
-
return l
|
|
60
|
+
if (Math[s(117)](p) < 7) return f ? p + s(106) : -p + "일 후";
|
|
61
|
+
let m = l.getMonth() + 1 + "월 " + l[s(100)]() + "일";
|
|
62
|
+
return l.getFullYear() === a[s(124)]() ? m : l[s(124)]() + "년 " + m;
|
|
45
63
|
}
|
|
46
|
-
var u = new Intl[e(
|
|
47
|
-
dateStyle: e(
|
|
48
|
-
timeStyle: e(
|
|
64
|
+
var u = new Intl[e(115)](e(111), {
|
|
65
|
+
dateStyle: e(123),
|
|
66
|
+
timeStyle: e(104)
|
|
49
67
|
});
|
|
50
|
-
function d() {
|
|
51
|
-
let
|
|
52
|
-
return
|
|
53
|
-
return e;
|
|
54
|
-
}, d();
|
|
68
|
+
function d(t) {
|
|
69
|
+
let n = e, r = o(t);
|
|
70
|
+
return Number.isNaN(r[n(120)]()) ? "" : u.format(r);
|
|
55
71
|
}
|
|
56
|
-
function f(t) {
|
|
57
|
-
let
|
|
58
|
-
return
|
|
72
|
+
function f(t, s = /* @__PURE__ */ new Date()) {
|
|
73
|
+
let c = e, l = o(t), u = Math[c(117)](s[c(120)]() - l[c(120)]()), d;
|
|
74
|
+
return d = u < 45 * n ? 45 * n - u : u < i ? r - u % r : u < a ? i - u % i : i, Math.min(Math[c(107)](d + 50, n), i);
|
|
59
75
|
}
|
|
60
|
-
function p(
|
|
61
|
-
|
|
62
|
-
|
|
76
|
+
function p(e, n) {
|
|
77
|
+
e -= 100;
|
|
78
|
+
let r = t(), i = r[e];
|
|
79
|
+
p.ArCOXy === void 0 && (p.wwYpxy = function(e) {
|
|
80
|
+
let t = "", n = "";
|
|
81
|
+
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);
|
|
82
|
+
for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
|
|
83
|
+
return decodeURIComponent(n);
|
|
84
|
+
}, p.vDfMua = {}, p.ArCOXy = !0);
|
|
85
|
+
let a = r[0];
|
|
86
|
+
p.ngwHmy !== a && (p.vDfMua = {}, p.ngwHmy = a);
|
|
87
|
+
let o = p.vDfMua[e];
|
|
88
|
+
return o === void 0 ? (i = p.wwYpxy(i), p.vDfMua[e] = i) : i = o, i;
|
|
63
89
|
}
|
|
64
|
-
export {
|
|
90
|
+
export { d as formatFullDate, l as formatRelativeTime, f as nextRelativeTimeChange, o as toDate };
|
package/lib/primitives/hotkey.js
CHANGED
|
@@ -1,94 +1,94 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
let r =
|
|
5
|
-
e.iqolRt === void 0 && (e.GRfvFL = 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.HxrHZf = {}, e.iqolRt = !0);
|
|
11
|
-
let a = r[0];
|
|
12
|
-
e.DxwLIj !== a && (e.HxrHZf = {}, e.DxwLIj = a);
|
|
13
|
-
let o = e.HxrHZf[t];
|
|
14
|
-
return o === void 0 ? (i = e.GRfvFL(i), e.HxrHZf[t] = i) : i = o, i;
|
|
15
|
-
}
|
|
16
|
-
const t = e;
|
|
17
|
-
(function(t, n) {
|
|
18
|
-
let r = e, i = t();
|
|
2
|
+
const e = n;
|
|
3
|
+
(function(e, t) {
|
|
4
|
+
let r = n, i = e();
|
|
19
5
|
for (;;) try {
|
|
20
|
-
if (parseInt(r(
|
|
6
|
+
if (parseInt(r(435)) / 1 * (-parseInt(r(446)) / 2) + parseInt(r(450)) / 3 + parseInt(r(403)) / 4 * (parseInt(r(424)) / 5) + parseInt(r(408)) / 6 * (-parseInt(r(413)) / 7) + -parseInt(r(438)) / 8 + parseInt(r(410)) / 9 + parseInt(r(428)) / 10 == t) break;
|
|
21
7
|
i.push(i.shift());
|
|
22
8
|
} catch {
|
|
23
9
|
i.push(i.shift());
|
|
24
10
|
}
|
|
25
|
-
})(
|
|
26
|
-
import { isMac as
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
11
|
+
})(r, 639256);
|
|
12
|
+
import { isMac as t } from "./Kbd2.js";
|
|
13
|
+
function n(e, t) {
|
|
14
|
+
e -= 397;
|
|
15
|
+
let i = r(), a = i[e];
|
|
16
|
+
n.gDCNGd === void 0 && (n.xMVqSE = function(e) {
|
|
17
|
+
let t = "", n = "";
|
|
18
|
+
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);
|
|
19
|
+
for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
|
|
20
|
+
return decodeURIComponent(n);
|
|
21
|
+
}, n.jUIIcN = {}, n.gDCNGd = !0);
|
|
22
|
+
let o = i[0];
|
|
23
|
+
n.NBqqgR !== o && (n.jUIIcN = {}, n.NBqqgR = o);
|
|
24
|
+
let s = n.jUIIcN[e];
|
|
25
|
+
return s === void 0 ? (a = n.xMVqSE(a), n.jUIIcN[e] = a) : a = s, a;
|
|
26
|
+
}
|
|
27
|
+
function r() {
|
|
28
|
+
let e = /* @__PURE__ */ "qMfJA3nWywnL.ywX0.qwX0.DgvZDa.C3vIBwL0.Aw5JBhvKzxm.A2v5.CMfUz2u.mJboBvDcquq.y29UDhjVBa.y3rYBa.BwfW.mte0otuYmtbLwxDoz1y.rgLNAxq.qxjYB3DeB3DU.rw50zxi.y2HLy2TIB3G.Dg9vChbLCKnHC2u.q29UDhjVBa.mtCXnJjzrNzozem.rgvSzxrL.C2HPzNq.nJa4ode1mNnAwK55yW.AM9PBG.y29Kzq.Bw9K.DhLWzq.B3b0Aw9U.y29SB3i.qxjYB3DvCa.odb2B0rWtgK.Dg9mB3DLCKnHC2u.AgfZ.CMfKAw8.mtK4ntK3qMrKy254.CMvZzxq.AxndB250zw50rwrPDgfIBgu.C2HPzNrlzxK.qxjYB3Dmzwz0.C29Tzq.zMLUza.Bwv0yuTLEq.mta2mtG4ne5dBLbpCW.zMLSzq.ywX0s2v5.y21K.tNvTCgfK.mZCXmZy0uKDZBxjp.qxjYB3DsAwDODa.nJyZoda0ovfksLvLCa.Bwv0yq.twv0yq.mta1Du5XuvfL.y3rYBeTLEq.u3bHy2u".split(".");
|
|
29
|
+
return r = function() {
|
|
30
|
+
return e;
|
|
31
|
+
}, r();
|
|
32
|
+
}
|
|
33
|
+
var i = /* @__PURE__ */ new Set([
|
|
34
|
+
e(441),
|
|
35
|
+
e(406),
|
|
36
|
+
e(411),
|
|
37
|
+
e(426),
|
|
38
|
+
e(425),
|
|
39
|
+
e(417),
|
|
40
|
+
e(443),
|
|
41
|
+
e(437)
|
|
42
|
+
]), a = {
|
|
43
|
+
enter: "Enter",
|
|
44
|
+
return: e(431),
|
|
45
|
+
esc: "Escape",
|
|
46
|
+
escape: "Escape",
|
|
41
47
|
tab: "Tab",
|
|
42
48
|
space: " ",
|
|
43
|
-
backspace:
|
|
44
|
-
delete:
|
|
45
|
-
up:
|
|
46
|
-
down:
|
|
47
|
-
left:
|
|
48
|
-
right:
|
|
49
|
+
backspace: e(416),
|
|
50
|
+
delete: e(436),
|
|
51
|
+
up: e(445),
|
|
52
|
+
down: e(430),
|
|
53
|
+
left: e(399),
|
|
54
|
+
right: e(409)
|
|
49
55
|
};
|
|
50
|
-
function
|
|
51
|
-
let n =
|
|
52
|
-
return
|
|
53
|
-
n(
|
|
54
|
-
n(
|
|
55
|
-
|
|
56
|
-
n(
|
|
57
|
-
|
|
58
|
-
n(
|
|
59
|
-
n(
|
|
60
|
-
n(
|
|
61
|
-
][n(
|
|
56
|
+
function o(t) {
|
|
57
|
+
let n = e;
|
|
58
|
+
return t instanceof HTMLElement ? t[n(397)] || t instanceof HTMLTextAreaElement || t instanceof HTMLSelectElement ? !0 : t instanceof HTMLInputElement && ![
|
|
59
|
+
n(432),
|
|
60
|
+
n(449),
|
|
61
|
+
"button",
|
|
62
|
+
n(420),
|
|
63
|
+
n(451),
|
|
64
|
+
n(423),
|
|
65
|
+
n(444),
|
|
66
|
+
n(404)
|
|
67
|
+
][n(421)](t[n(442)]) : !1;
|
|
62
68
|
}
|
|
63
|
-
function
|
|
64
|
-
let o =
|
|
65
|
-
if (!p ||
|
|
66
|
-
let m = p
|
|
67
|
-
if (/^[a-z]$/[o(
|
|
68
|
-
if (/^[0-9]$/[o(
|
|
69
|
-
let h =
|
|
70
|
-
return h ?
|
|
69
|
+
function s(n, r) {
|
|
70
|
+
let o = e, s = r[o(427)]((e) => e[o(447)]()), c = (...e) => e[o(400)]((e) => s.includes(e)), l = c(o(411), "cmd") || c("mod") && t, u = c(o(426), o(425)) || c(o(441)) && !t, d = c(o(417), o(443)), f = c(o(437)), p = r[o(401)]((e) => !i[o(448)](e[o(447)]()));
|
|
71
|
+
if (!p || n[o(402)] !== l || n[o(414)] !== u || n[o(405)] !== d) return !1;
|
|
72
|
+
let m = p[o(447)]();
|
|
73
|
+
if (/^[a-z]$/[o(419)](m)) return n.shiftKey === f && (n[o(440)] === "Key" + m[o(433)]() || n[o(422)][o(447)]() === m);
|
|
74
|
+
if (/^[0-9]$/[o(419)](m)) return n[o(398)] === f && (n[o(440)] === o(429) + m || n[o(440)] === o(407) + m || n[o(422)] === m);
|
|
75
|
+
let h = a[m];
|
|
76
|
+
return h ? n[o(398)] === f && n[o(422)] === h : n[o(422)] === p;
|
|
71
77
|
}
|
|
72
|
-
var
|
|
73
|
-
ctrl:
|
|
74
|
-
control:
|
|
75
|
-
alt:
|
|
76
|
-
option:
|
|
77
|
-
shift:
|
|
78
|
-
meta:
|
|
79
|
-
cmd:
|
|
78
|
+
var c = {
|
|
79
|
+
ctrl: e(434),
|
|
80
|
+
control: e(434),
|
|
81
|
+
alt: e(418),
|
|
82
|
+
option: e(418),
|
|
83
|
+
shift: "Shift",
|
|
84
|
+
meta: e(412),
|
|
85
|
+
cmd: e(412)
|
|
80
86
|
};
|
|
81
|
-
function
|
|
82
|
-
let r =
|
|
83
|
-
return
|
|
84
|
-
let
|
|
85
|
-
return
|
|
86
|
-
})
|
|
87
|
-
}
|
|
88
|
-
function l() {
|
|
89
|
-
let e = /* @__PURE__ */ "y21K.u2HPzNq.yNv0Dg9U.nduYmJa2ngLpEKP6qq.ndy0nJa2DgjACfHI.mtjMExvdsge.u3bHy2u.qMfJA3nWywnL.rxnJyxbL.Aw5JBhvKzxm.BwfW.qwX0.y3rYBa.A2v5.C3vIBwL0.odC2mteWBw11CKPe.ywX0.CMfUz2u.nMzMrMjOva.B3b0Aw9U.DgvZDa.qxjYB3DvCa.AgfZ.y2HLy2TIB3G.y3rYBeTLEq.Bwv0yq.BgvUz3rO.y29SB3i.DhLWzq.s2v5.Dg9vChbLCKnHC2u.zMLSzq.qxjYB3DeB3DU.zMLUza.Bwv0yuTLEq.rw50zxi.q29UDhjVBa.qxjYB3DsAwDODa.Dg9mB3DLCKnHC2u.twv0yq.C2HPzNq.mZq5nZu3CfDJrLLf.nJu4mZC0BNv0DhjT.y29UDhjVBa.AxndB250zw50rwrPDgfIBgu.y29Kzq.CMfKAw8.nZC4mZG0oeDhq29ABG.tNvTCgfK.Bw9K.ntm1nty3ou1frvvbAa.qxjYB3Dmzwz0.C2HPzNrlzxK".split(".");
|
|
90
|
-
return l = function() {
|
|
91
|
-
return e;
|
|
92
|
-
}, l();
|
|
87
|
+
function l(n) {
|
|
88
|
+
let r = e;
|
|
89
|
+
return n[r(427)]((e) => {
|
|
90
|
+
let n = r, i = e[n(447)]();
|
|
91
|
+
return i === "mod" ? n(t ? 412 : 434) : c[i] ? c[i] : a[i] ? a[i] === " " ? n(415) : a[i] : e.length === 1 ? e[n(433)]() : e;
|
|
92
|
+
})[r(439)]("+");
|
|
93
93
|
}
|
|
94
|
-
export {
|
|
94
|
+
export { o as isTypingTarget, s as matchesHotkey, l as toAriaShortcut };
|