@iamfiro/design 0.3.4 → 0.3.5
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/app-shell/AGENTS.md +99 -1
- package/lib/components/Accordion/Accordion2.js +93 -93
- package/lib/components/ActionBar/ActionBar2.js +44 -40
- package/lib/components/Alert/Alert2.js +64 -64
- package/lib/components/AppShell/AppShell2.js +73 -66
- package/lib/components/AreaChart/AreaChart.js +49 -47
- package/lib/components/BarChart/BarChart2.js +107 -107
- package/lib/components/BarList/BarList2.js +99 -99
- package/lib/components/Breadcrumb/Breadcrumb2.js +53 -56
- package/lib/components/Calendar/Calendar2.js +164 -164
- package/lib/components/Calendar/DatePicker2.js +76 -77
- package/lib/components/Calendar/date.js +49 -70
- package/lib/components/Card/Card2.js +104 -77
- package/lib/components/CardFrame/CardFrame2.js +46 -42
- package/lib/components/Chart/ChartParts.js +73 -73
- package/lib/components/Chart/chart2.js +53 -53
- package/lib/components/Chart/useChartInteraction.js +49 -49
- package/lib/components/ChatBubble/ChatBubble2.js +118 -118
- package/lib/components/ChatBubble/formatChatTime.js +42 -41
- package/lib/components/ChatComposer/ChatComposer2.js +102 -102
- package/lib/components/CodeBlock/CodeBlock2.js +51 -51
- package/lib/components/CodeBlock/highlight.js +85 -85
- package/lib/components/ColorPicker/ColorPicker2.js +373 -374
- package/lib/components/ColorPicker/color.js +94 -94
- package/lib/components/ColorPicker/presets.js +47 -46
- package/lib/components/Combobox/Combobox2.js +118 -117
- package/lib/components/CommandMenu/CommandMenu.js +121 -122
- package/lib/components/Comment/Comment2.js +56 -81
- package/lib/components/ContextMenu/ContextMenu2.js +91 -93
- package/lib/components/DataGrid/DataGrid2.js +845 -845
- package/lib/components/DataGrid/GridPopover.js +97 -97
- package/lib/components/DataGrid/anchor.js +34 -36
- package/lib/components/DataGrid/model.js +299 -299
- package/lib/components/DataGrid/panels.js +393 -393
- package/lib/components/DataGrid/typeMeta.js +53 -53
- package/lib/components/DataGrid/types.js +22 -22
- package/lib/components/DescriptionList/DescriptionList2.js +57 -57
- package/lib/components/Dialog/AlertDialog.js +56 -56
- package/lib/components/Dialog/Dialog2.js +68 -69
- package/lib/components/Dialog/modal.js +61 -57
- package/lib/components/Drawer/Drawer2.js +161 -161
- package/lib/components/DropdownMenu/DropdownMenu2.js +267 -267
- package/lib/components/DropdownMenu/menuCore.js +42 -68
- package/lib/components/Dropzone/Dropzone2.js +81 -81
- package/lib/components/EmptyState/EmptyState2.js +55 -54
- package/lib/components/FileChip/FileChip2.js +39 -63
- package/lib/components/FileUpload/FileUpload.js +157 -156
- package/lib/components/FilterChips/FilterChips2.js +51 -51
- package/lib/components/FunnelChart/FunnelChart2.js +171 -171
- package/lib/components/FunnelChart/funnel.js +55 -57
- package/lib/components/Highlight/Highlight2.js +48 -48
- package/lib/components/HoverCard/HoverCard.js +59 -59
- package/lib/components/InlineDiff/InlineDiff2.js +110 -111
- package/lib/components/InlineDiff/diff.js +89 -89
- package/lib/components/InlineDiff/useDiffReview.js +63 -65
- package/lib/components/Kanban/Kanban2.js +424 -425
- package/lib/components/Kanban/KanbanCard.js +98 -73
- package/lib/components/Kanban/move.js +52 -49
- package/lib/components/LineChart/LineChart2.js +222 -222
- package/lib/components/List/List2.js +60 -59
- package/lib/components/Listbox/Listbox2.js +117 -117
- package/lib/components/Marker/Marker2.js +58 -59
- package/lib/components/Menubar/Menubar2.js +121 -123
- package/lib/components/MultiSelect/MultiSelect2.js +115 -115
- package/lib/components/NavigationMenu/NavigationMenu2.js +277 -276
- package/lib/components/NoticeStack/NoticeStack2.js +98 -98
- package/lib/components/NumberStepper/NumberStepper2.js +67 -66
- package/lib/components/OtpInput/OtpInput2.js +93 -93
- package/lib/components/Pagination/Pagination2.js +87 -87
- package/lib/components/Pagination/paginationRange.js +39 -37
- package/lib/components/PhoneInput/PhoneInput.js +78 -78
- package/lib/components/PieChart/PieChart2.js +117 -117
- package/lib/components/PieChart/arc.js +57 -58
- package/lib/components/PieChart/useArcTween.js +45 -40
- package/lib/components/Popover/Popover2.js +73 -74
- package/lib/components/ProgressTracker/ProgressTracker2.js +128 -128
- package/lib/components/Rating/Rating2.js +95 -95
- package/lib/components/Resizable/Resizable2.js +86 -86
- package/lib/components/Resizable/layout.js +73 -73
- package/lib/components/ScaledPreview/ScaledPreview2.js +68 -68
- package/lib/components/ScatterChart/ScatterChart2.js +172 -172
- package/lib/components/ScatterChart/scatter.js +55 -56
- package/lib/components/ScrollArea/ScrollArea2.js +130 -131
- package/lib/components/Select/Select2.js +86 -85
- package/lib/components/Sidebar/Sidebar2.js +92 -86
- package/lib/components/Sidebar/rail.js +43 -0
- package/lib/components/Skeleton/Skeleton2.js +60 -61
- package/lib/components/Slider/Slider2.js +73 -73
- package/lib/components/SocialLoginButton/SocialLoginButton.js +54 -55
- package/lib/components/SparkChart/SparkChart2.js +140 -141
- package/lib/components/SparkChart/spark.js +50 -48
- package/lib/components/Sparkbar/Sparkbar2.js +56 -56
- package/lib/components/SplitView/SplitView2.js +47 -46
- package/lib/components/Stat/Stat2.js +61 -61
- package/lib/components/StepList/StepList2.js +76 -76
- package/lib/components/Table/Table2.js +70 -70
- package/lib/components/Tabs/Tabs2.js +85 -85
- package/lib/components/TagInput/TagInput2.js +217 -218
- package/lib/components/TimePicker/TimePicker2.js +217 -216
- package/lib/components/TimePicker/time.js +60 -58
- package/lib/components/Timeline/Timeline2.js +181 -181
- package/lib/components/Timeline/scale.js +60 -65
- package/lib/components/Toast/Toaster.js +146 -148
- package/lib/components/Toast/store.js +85 -85
- package/lib/components/ToggleGroup/ToggleGroup2.js +79 -79
- package/lib/components/Toolbar/Toolbar2.js +120 -121
- package/lib/components/Tracker/Tracker2.js +79 -79
- package/lib/components/TreeDiagram/TreeDiagram2.js +116 -116
- package/lib/components/TreeView/TreeView2.js +162 -163
- package/lib/hooks/timing.js +32 -35
- package/lib/hooks/useControllableState.js +35 -35
- package/lib/hooks/useCountdown.js +53 -52
- package/lib/hooks/useDigitInput.js +82 -81
- package/lib/hooks/useDismiss.js +48 -48
- package/lib/hooks/useElapsed.js +40 -43
- package/lib/hooks/useFloating.js +47 -47
- package/lib/hooks/useFocusTrap.js +45 -69
- package/lib/hooks/usePresence.js +49 -50
- package/lib/hooks/usePressToOpen.js +43 -43
- package/lib/hooks/useScrollLock.js +45 -43
- package/lib/hooks/useSelection.js +44 -46
- package/lib/index.js +105 -106
- package/lib/primitives/AspectRatio2.js +57 -56
- package/lib/primitives/BrandIcon.js +177 -177
- package/lib/primitives/ColorDot2.js +44 -48
- package/lib/primitives/CopyButton2.js +54 -55
- package/lib/primitives/CountBadge2.js +45 -48
- package/lib/primitives/Countdown2.js +35 -37
- package/lib/primitives/Delta2.js +41 -41
- package/lib/primitives/Elapsed.js +43 -41
- package/lib/primitives/FileIcon2.js +94 -94
- package/lib/primitives/Flag2.js +97 -97
- package/lib/primitives/IconStack2.js +53 -55
- package/lib/primitives/IconTile2.js +45 -41
- package/lib/primitives/Kbd2.js +57 -57
- package/lib/primitives/Layout2.js +66 -66
- package/lib/primitives/Link2.js +42 -47
- package/lib/primitives/MaskedText2.js +47 -69
- package/lib/primitives/Progress2.js +71 -71
- package/lib/primitives/RelativeTime.js +47 -43
- package/lib/primitives/SearchInput2.js +70 -66
- package/lib/primitives/SelectorButton2.js +70 -67
- package/lib/primitives/Spinner2.js +58 -59
- package/lib/primitives/StatusIcon2.js +70 -70
- package/lib/primitives/Swatch2.js +57 -55
- package/lib/primitives/Tooltip2.js +78 -78
- package/lib/primitives/Typography2.js +54 -54
- package/lib/primitives/formatCountdown.js +37 -38
- package/lib/primitives/formatElapsed.js +46 -45
- package/lib/primitives/formatRelativeTime.js +43 -69
- package/lib/primitives/hotkey.js +66 -66
- package/lib/primitives/index.js +152 -152
- package/lib/primitives/maskValue.js +30 -32
- package/lib/style.css +1 -1
- package/lib/types/components/AppShell/AppShell.d.ts +9 -2
- package/lib/types/components/Sidebar/rail.d.ts +4 -0
- package/lib/types/components/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,226 +1,226 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
(function(e,
|
|
3
|
-
let
|
|
2
|
+
(function(e, n) {
|
|
3
|
+
let r = t, i = e();
|
|
4
4
|
for (;;) try {
|
|
5
|
-
if (parseInt(
|
|
6
|
-
|
|
5
|
+
if (-parseInt(r(254)) / 1 + parseInt(r(252)) / 2 * (-parseInt(r(214)) / 3) + parseInt(r(186)) / 4 + -parseInt(r(245)) / 5 * (-parseInt(r(230)) / 6) + parseInt(r(181)) / 7 * (-parseInt(r(187)) / 8) + parseInt(r(215)) / 9 * (-parseInt(r(188)) / 10) + -parseInt(r(224)) / 11 * (-parseInt(r(216)) / 12) == n) break;
|
|
6
|
+
i.push(i.shift());
|
|
7
7
|
} catch {
|
|
8
|
-
|
|
8
|
+
i.push(i.shift());
|
|
9
9
|
}
|
|
10
|
-
})(
|
|
10
|
+
})(x, 840990);
|
|
11
11
|
import { Text as e } from "../../primitives/Typography2.js";
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
e
|
|
16
|
-
let n = g(), r = n[e];
|
|
17
|
-
i.WLSnJB === void 0 && (i.eXWnAz = function(e) {
|
|
12
|
+
function t(e, n) {
|
|
13
|
+
e -= 181;
|
|
14
|
+
let r = x(), i = r[e];
|
|
15
|
+
t.ppAXbs === void 0 && (t.emADbF = function(e) {
|
|
18
16
|
let t = "", n = "";
|
|
19
17
|
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);
|
|
20
18
|
for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
|
|
21
19
|
return decodeURIComponent(n);
|
|
22
|
-
},
|
|
23
|
-
let a =
|
|
24
|
-
|
|
25
|
-
let o =
|
|
26
|
-
return o === void 0 ? (
|
|
20
|
+
}, t.VIJbYb = {}, t.ppAXbs = !0);
|
|
21
|
+
let a = r[0];
|
|
22
|
+
t.vBonLy !== a && (t.VIJbYb = {}, t.vBonLy = a);
|
|
23
|
+
let o = t.VIJbYb[e];
|
|
24
|
+
return o === void 0 ? (i = t.emADbF(i), t.VIJbYb[e] = i) : i = o, i;
|
|
27
25
|
}
|
|
26
|
+
import { Inline as n } from "../../primitives/Layout2.js";
|
|
27
|
+
import { Button as r, cx as i } from "../../primitives/index.js";
|
|
28
28
|
import { addDays as a, addMonths as o, between as s, compareDay as c, formatFullDate as l, formatMonth as u, monthGrid as d, sameDay as f, sameMonth as p, startOfDay as m, startOfMonth as h, weekdayLabels as ee } from "./date.js";
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
/* empty css */
|
|
30
|
+
import { useEffect as g, useLayoutEffect as _, useRef as v, useState as y } from "react";
|
|
31
|
+
import { ChevronDown as te, ChevronLeft as ne, ChevronRight as b } from "lucide-react";
|
|
32
|
+
function x() {
|
|
33
|
+
let e = /* @__PURE__ */ "7j28ioYeOo2dNEUqQa.zhmTy2fSzw5KyxjFx3DLzwTKyxLZ.B2zMC2v0vg9W.C3bHBG.mtfJuhHIy24.rw5K.zgLZywjSzwq.zhmTy2fSzw5KyxjFx3LLyxi.ChjLDMvUDerLzMf1Bhq.w2fYAweTC2vSzwn0zwq9iNrYDwuIxq.mtjTzujIsgW.zgf5CW.yMv0D2vLBG.z2v0vgLTzq.Cg9SAxrL.C2HPzNrlzxK.C3rVCfbYB3bHz2f0Aw9U.zM9JDxm.zhmTy2fSzw5Kyxi.lcdSL7dRJ4tcT+YBLcdSHkdTG50G7jE06RIW.C2nYB2XSvg8.7kkf66om7j287j2eioQZOoULToYeUoYALa.zhmTy2fSzw5KyxjFx2zVB3q.C2vSzwn0zwq.z2v0rgf5.mJaWnZK1y05hCgnZ.B3b0Aw9U.z2v0tw9UDgG.BwLU.DMfSDwu.BgvUz3rO.z3jPza.nty1nJeWtKr6DeDu.zhmTy2fSzw5KyxjFx2rHEq.ody3nZm2rKDky0v4.BwfW.zgL2.nJy1CLfND09x.rxnJyxbL.64we7j2yioYBLa.yNv0Dg9U.7iUC7j6r7j287j2eioQZOoULToYeUoYALa.mZm4ntu1mMDkvKPNBa.nJmWndHgsu9UCK8.mtbeuLnXsvq.z2v0rNvSBfLLyxi.zhmTy2fSzw5KyxjFx3rPDgXL.sg9Tzq.zhmTy2fSzw5KyxjFx2HLywq.Bw9Kzq.zMLUzeLUzgv4.Bwf4.z2HVC3q.zgf5CY0.CMfUz2u.B25wywX1zunOyw5Nzq.zhmTy2fSzw5KyxjFx3LLyxjZ.yxv0BW.zgf0zq.z2v0rgf0zq.64kG7kEC66gCioUpJoYvHoQWGoQ4Sa.zhmTy2fSzw5KyxjFx3bPy2S.BgfIzwW.ywnJzw50.w3rHyMLUzgv4psiWiL0.A2v5.zNjVBq.CxvLCNLtzwXLy3rVCG.64UK7j2mioUlRa.CgLJAW.m2jny2rxrG.mtu4mJi5ow9NDvDkvW.mJm4nZe5nZjjCLbgrw4.y3vYCMvUDa.zhmTy2fSzw5KyxjFx3zPzxCGzhmTy2fSzw5KyxjFx3LT.B3v0".split(".");
|
|
34
|
+
return x = function() {
|
|
32
35
|
return e;
|
|
33
|
-
},
|
|
36
|
+
}, x();
|
|
34
37
|
}
|
|
35
|
-
/* empty css */
|
|
36
|
-
import { useEffect as _, useLayoutEffect as v, useRef as y, useState as b } from "react";
|
|
37
|
-
import { ChevronDown as te, ChevronLeft as x, ChevronRight as ne } from "lucide-react";
|
|
38
38
|
import { jsx as S, jsxs as C } from "react/jsx-runtime";
|
|
39
|
-
function w(
|
|
40
|
-
let
|
|
39
|
+
function w(_) {
|
|
40
|
+
let x = t, { min: w, max: T, isDateDisabled: ae, weekStartsOn: E = 0, defaultMonth: oe, autoFocus: D, showFooter: se = !0, className: O } = _, k = _.mode === x(198) ? _[x(249)] : void 0, A = _[x(193)] === x(198) ? void 0 : _[x(249)], j = A ?? k?.[x(210)] ?? null, [M, N] = y(() => h(oe ?? j ?? /* @__PURE__ */ new Date())), [P, F] = y(() => m(j ?? /* @__PURE__ */ new Date())), [ce, I] = y(0), [L, le] = y("days"), [R, ue] = y(null), [z, B] = y(null), V = v(null), [H] = y(() => m(/* @__PURE__ */ new Date())), U = (e) => w && c(e, w) < 0 || T && c(e, T) > 0 || !!ae?.(e), W = (e) => {
|
|
41
41
|
I(e > 0 ? 1 : -1), N((t) => o(t, e)), F((t) => o(t, e));
|
|
42
42
|
}, G = (e) => {
|
|
43
|
-
let t =
|
|
44
|
-
ue(e === t(
|
|
45
|
-
}, K =
|
|
46
|
-
|
|
47
|
-
let e =
|
|
48
|
-
K[e(
|
|
43
|
+
let t = x;
|
|
44
|
+
ue(e === t(213) ? t(219) : "in"), I(0), le(e);
|
|
45
|
+
}, K = v(!1);
|
|
46
|
+
g(() => {
|
|
47
|
+
let e = x;
|
|
48
|
+
K[e(217)] ? V[e(217)]?.[e(211)](e(208))?.[e(237)]({ preventScroll: !0 }) : K[e(217)] = !0;
|
|
49
49
|
}, [L]);
|
|
50
|
-
let de = (e, t) => !!T && c(new Date(e, t, 1), T) > 0 || !!w && c(new Date(e, t + 1, 0), w) < 0, q = M
|
|
51
|
-
let t =
|
|
50
|
+
let de = (e, t) => !!T && c(new Date(e, t, 1), T) > 0 || !!w && c(new Date(e, t + 1, 0), w) < 0, q = M.getFullYear(), fe = w?.[x(189)]() ?? H.getFullYear() - 100, pe = T?.getFullYear() ?? H[x(189)]() + 20, J = (e) => {
|
|
51
|
+
let t = x;
|
|
52
52
|
if (!U(e)) {
|
|
53
|
-
if (F(e), !p(e, M) && (I(c(e, M) > 0 ? 1 : -1), N(h(e))),
|
|
54
|
-
let n =
|
|
53
|
+
if (F(e), !p(e, M) && (I(c(e, M) > 0 ? 1 : -1), N(h(e))), _[t(193)] === "range") {
|
|
54
|
+
let n = _[t(249)] ?? {
|
|
55
55
|
from: null,
|
|
56
56
|
to: null
|
|
57
57
|
};
|
|
58
|
-
!n
|
|
58
|
+
!n[t(210)] || n.to ? _[t(199)]?.({
|
|
59
59
|
from: e,
|
|
60
60
|
to: null
|
|
61
|
-
}) : c(e, n.from) < 0 ?
|
|
61
|
+
}) : c(e, n.from) < 0 ? _.onValueChange?.({
|
|
62
62
|
from: e,
|
|
63
|
-
to: n[t(
|
|
64
|
-
}) :
|
|
65
|
-
from: n[t(
|
|
63
|
+
to: n[t(210)]
|
|
64
|
+
}) : _[t(199)]?.({
|
|
65
|
+
from: n[t(210)],
|
|
66
66
|
to: e
|
|
67
67
|
});
|
|
68
|
-
} else
|
|
68
|
+
} else _.onValueChange?.(e);
|
|
69
69
|
}
|
|
70
70
|
};
|
|
71
|
-
|
|
72
|
-
let e =
|
|
71
|
+
g(() => {
|
|
72
|
+
let e = x;
|
|
73
73
|
if (!D) return;
|
|
74
|
-
let t = requestAnimationFrame(() => V[e(
|
|
74
|
+
let t = requestAnimationFrame(() => V[e(217)]?.[e(211)](e(208))?.[e(237)]({ preventScroll: !0 }));
|
|
75
75
|
return () => cancelAnimationFrame(t);
|
|
76
76
|
}, [D]);
|
|
77
77
|
let me = (e) => {
|
|
78
|
-
let t =
|
|
78
|
+
let t = x, n = {
|
|
79
79
|
ArrowLeft: () => a(P, -1),
|
|
80
80
|
ArrowRight: () => a(P, 1),
|
|
81
81
|
ArrowUp: () => a(P, -7),
|
|
82
82
|
ArrowDown: () => a(P, 7),
|
|
83
|
-
PageUp: () => o(P, e
|
|
84
|
-
PageDown: () => o(P, e[t(
|
|
85
|
-
Home: () => a(P, -((P[t(
|
|
86
|
-
End: () => a(P, 6 - (P[t(
|
|
83
|
+
PageUp: () => o(P, e[t(235)] ? -12 : -1),
|
|
84
|
+
PageDown: () => o(P, e[t(235)] ? 12 : 1),
|
|
85
|
+
Home: () => a(P, -((P[t(244)]() - E + 7) % 7)),
|
|
86
|
+
End: () => a(P, 6 - (P[t(244)]() - E + 7) % 7)
|
|
87
87
|
};
|
|
88
|
-
if (n[e[t(
|
|
89
|
-
e
|
|
90
|
-
let r = n[e[t(
|
|
91
|
-
F(r), !p(r, M) && (I(c(r, M) > 0 ? 1 : -1), N(h(r))), requestAnimationFrame(() => V
|
|
88
|
+
if (n[e[t(209)]]) {
|
|
89
|
+
e[t(228)]();
|
|
90
|
+
let r = n[e[t(209)]]();
|
|
91
|
+
F(r), !p(r, M) && (I(c(r, M) > 0 ? 1 : -1), N(h(r))), requestAnimationFrame(() => V[t(217)]?.[t(211)]("[tabindex=\"0\"]")?.[t(237)]({ preventScroll: !0 }));
|
|
92
92
|
}
|
|
93
|
-
}, Y = d(M, E), X = k?.[
|
|
94
|
-
let t =
|
|
95
|
-
e[t(
|
|
93
|
+
}, Y = d(M, E), X = k?.[x(210)] && !k.to && z ? z : null, he = (e) => {
|
|
94
|
+
let t = x;
|
|
95
|
+
e[t(209)] === t(182) && L !== t(231) && (e.preventDefault(), e[t(236)](), G("days"));
|
|
96
96
|
}, ge = () => {
|
|
97
|
-
let e =
|
|
98
|
-
|
|
99
|
-
}, _e = k?.[
|
|
100
|
-
justify:
|
|
97
|
+
let e = x;
|
|
98
|
+
_[e(193)] === e(198) ? (!p(H, M) && (I(c(H, M) > 0 ? 1 : -1), N(h(H))), F(H)) : J(H), L !== e(231) && G(e(231));
|
|
99
|
+
}, _e = k?.[x(210)] && k.to ? Math.round((m(k.to).getTime() - m(k.from)[x(233)]()) / 864e5) + 1 : 0, Z = _.mode === "range" ? k?.[x(210)] ? k.to ? _e + x(220) : x(241) : x(185) : null, Q = se && C(n, {
|
|
100
|
+
justify: x(232),
|
|
101
101
|
wrap: !1,
|
|
102
|
-
className:
|
|
102
|
+
className: x(242),
|
|
103
103
|
children: [S(e, {
|
|
104
|
-
variant:
|
|
105
|
-
tone: Z && k?.[
|
|
106
|
-
"aria-live":
|
|
104
|
+
variant: "caption",
|
|
105
|
+
tone: Z && k?.[x(210)] && !k.to ? x(207) : "tertiary",
|
|
106
|
+
"aria-live": x(234),
|
|
107
107
|
children: Z
|
|
108
|
-
}), S(
|
|
109
|
-
variant:
|
|
108
|
+
}), S(r, {
|
|
109
|
+
variant: x(196),
|
|
110
110
|
size: "sm",
|
|
111
111
|
onClick: ge,
|
|
112
112
|
disabled: U(H),
|
|
113
113
|
children: "오늘"
|
|
114
114
|
})]
|
|
115
|
-
}), $ = C(
|
|
116
|
-
justify:
|
|
115
|
+
}), $ = C(n, {
|
|
116
|
+
justify: x(232),
|
|
117
117
|
wrap: !1,
|
|
118
|
-
className:
|
|
119
|
-
children: [S(
|
|
120
|
-
variant:
|
|
118
|
+
className: x(192),
|
|
119
|
+
children: [S(r, {
|
|
120
|
+
variant: x(196),
|
|
121
121
|
size: "sm",
|
|
122
122
|
iconRight: S(te, {}),
|
|
123
|
-
className:
|
|
124
|
-
"data-open": L ===
|
|
125
|
-
"aria-expanded": L ===
|
|
126
|
-
"aria-label": L ===
|
|
127
|
-
"aria-live":
|
|
128
|
-
onClick: () => G(L ===
|
|
123
|
+
className: x(190),
|
|
124
|
+
"data-open": L === x(213) || void 0,
|
|
125
|
+
"aria-expanded": L === x(213),
|
|
126
|
+
"aria-label": L === "days" ? u(M) + x(239) : x(204),
|
|
127
|
+
"aria-live": x(234),
|
|
128
|
+
onClick: () => G(L === "days" ? x(213) : "days"),
|
|
129
129
|
children: u(M)
|
|
130
|
-
}), L ===
|
|
130
|
+
}), L === x(231) && C(n, {
|
|
131
131
|
gap: 1,
|
|
132
132
|
wrap: !1,
|
|
133
|
-
children: [S(
|
|
133
|
+
children: [S(r, {
|
|
134
134
|
iconOnly: !0,
|
|
135
|
-
variant:
|
|
135
|
+
variant: x(196),
|
|
136
136
|
size: "sm",
|
|
137
|
-
icon: S(
|
|
137
|
+
icon: S(ne, {}),
|
|
138
138
|
"aria-label": "이전 달",
|
|
139
139
|
onClick: () => W(-1)
|
|
140
|
-
}), S(
|
|
140
|
+
}), S(r, {
|
|
141
141
|
iconOnly: !0,
|
|
142
|
-
variant:
|
|
142
|
+
variant: x(196),
|
|
143
143
|
size: "sm",
|
|
144
|
-
icon: S(
|
|
145
|
-
"aria-label":
|
|
144
|
+
icon: S(b, {}),
|
|
145
|
+
"aria-label": x(212),
|
|
146
146
|
onClick: () => W(1)
|
|
147
147
|
})]
|
|
148
148
|
})]
|
|
149
149
|
});
|
|
150
|
-
if (L ===
|
|
150
|
+
if (L === x(213)) {
|
|
151
151
|
let e = (e) => {
|
|
152
|
-
let t =
|
|
153
|
-
N(new Date(e, M[t(
|
|
154
|
-
}, t = Array[
|
|
152
|
+
let t = x;
|
|
153
|
+
N(new Date(e, M[t(247)](), 1)), F((n) => new Date(e, n[t(247)](), Math[t(248)](n[t(203)](), new Date(e, n.getMonth() + 1, 0)[t(203)]())));
|
|
154
|
+
}, t = Array[x(210)]({ length: 12 }, (e, t) => ({
|
|
155
155
|
key: t,
|
|
156
156
|
label: t + 1 + "월",
|
|
157
|
-
selected: t === M[
|
|
158
|
-
current: q === H[
|
|
157
|
+
selected: t === M[x(247)](),
|
|
158
|
+
current: q === H[x(189)]() && t === H.getMonth(),
|
|
159
159
|
disabled: de(q, t),
|
|
160
160
|
pick: () => {
|
|
161
|
-
let e =
|
|
162
|
-
N(new Date(q, t, 1)), F((n) => new Date(q, t, Math
|
|
161
|
+
let e = x;
|
|
162
|
+
N(new Date(q, t, 1)), F((n) => new Date(q, t, Math[e(248)](n.getDate(), new Date(q, t + 1, 0).getDate()))), G(e(231));
|
|
163
163
|
}
|
|
164
164
|
}));
|
|
165
165
|
return C("div", {
|
|
166
|
-
className:
|
|
166
|
+
className: i(x(238), O),
|
|
167
167
|
onKeyDown: he,
|
|
168
168
|
children: [
|
|
169
169
|
$,
|
|
170
|
-
C(
|
|
171
|
-
className:
|
|
170
|
+
C(x(256), {
|
|
171
|
+
className: x(218),
|
|
172
172
|
"data-zoom": R,
|
|
173
173
|
children: [S(re, {
|
|
174
174
|
first: fe,
|
|
175
175
|
last: pe,
|
|
176
176
|
selected: q,
|
|
177
|
-
current: H
|
|
177
|
+
current: H.getFullYear(),
|
|
178
178
|
onPick: e
|
|
179
179
|
}), S(ie, {
|
|
180
180
|
gridRef: V,
|
|
181
181
|
cells: t,
|
|
182
|
-
label: q +
|
|
182
|
+
label: q + x(183)
|
|
183
183
|
})]
|
|
184
|
-
},
|
|
184
|
+
}, x(213)),
|
|
185
185
|
Q
|
|
186
186
|
]
|
|
187
187
|
});
|
|
188
188
|
}
|
|
189
|
-
return C(
|
|
190
|
-
className:
|
|
189
|
+
return C(x(256), {
|
|
190
|
+
className: i("ds-calendar", O),
|
|
191
191
|
children: [
|
|
192
192
|
$,
|
|
193
|
-
C(
|
|
194
|
-
className:
|
|
193
|
+
C(x(256), {
|
|
194
|
+
className: "ds-calendar__view",
|
|
195
195
|
"data-zoom": R,
|
|
196
196
|
children: [S("div", {
|
|
197
|
-
className:
|
|
197
|
+
className: x(221),
|
|
198
198
|
"aria-hidden": !0,
|
|
199
|
-
children: ee(E)[
|
|
199
|
+
children: ee(E)[x(255)]((e, t) => S(x(223), {
|
|
200
200
|
"data-weekday": (t + E) % 7,
|
|
201
201
|
children: e
|
|
202
202
|
}, e))
|
|
203
|
-
}), S(
|
|
203
|
+
}), S(x(256), {
|
|
204
204
|
ref: V,
|
|
205
|
-
role:
|
|
205
|
+
role: x(251),
|
|
206
206
|
"aria-label": u(M),
|
|
207
207
|
className: "ds-calendar__grid",
|
|
208
208
|
"data-dir": ce,
|
|
209
209
|
onKeyDown: me,
|
|
210
210
|
onPointerLeave: () => B(null),
|
|
211
|
-
children: Y[
|
|
212
|
-
let t =
|
|
213
|
-
return S(t(
|
|
214
|
-
type: t(
|
|
215
|
-
role:
|
|
211
|
+
children: Y[x(255)]((e) => {
|
|
212
|
+
let t = x, n = !p(e, M), r = U(e), i = X ?? k?.to ?? null, a = k?.from && i ? c(k[t(210)], i) <= 0 ? k[t(210)] : i : null, o = k?.[t(210)] && i ? c(k.from, i) <= 0 ? i : k[t(210)] : null, u = !!(a && o && s(e, a, o)), d = !!(a && f(e, a)) || !!k?.[t(210)] && !i && f(e, k[t(210)]), m = !!(o && f(e, o)), h = f(e, A) || d || m;
|
|
213
|
+
return S(t(184), {
|
|
214
|
+
type: t(184),
|
|
215
|
+
role: "gridcell",
|
|
216
216
|
tabIndex: f(e, P) ? 0 : -1,
|
|
217
217
|
"aria-selected": h,
|
|
218
218
|
"aria-disabled": r || void 0,
|
|
219
219
|
"aria-label": l(e),
|
|
220
|
-
"aria-current": f(e, H) ? t(
|
|
221
|
-
className: t(
|
|
220
|
+
"aria-current": f(e, H) ? t(202) : void 0,
|
|
221
|
+
className: t(253),
|
|
222
222
|
"data-outside": n || void 0,
|
|
223
|
-
"data-weekday": e[t(
|
|
223
|
+
"data-weekday": e[t(244)](),
|
|
224
224
|
"data-today": f(e, H) || void 0,
|
|
225
225
|
"data-selected": h || void 0,
|
|
226
226
|
"data-in-range": u && !h || void 0,
|
|
@@ -228,83 +228,83 @@ function w(g) {
|
|
|
228
228
|
"data-range-end": m && !f(a, o) || void 0,
|
|
229
229
|
"data-preview": !!X || void 0,
|
|
230
230
|
onClick: () => J(e),
|
|
231
|
-
onPointerEnter: () =>
|
|
232
|
-
children: S("span", { children: e[t(
|
|
233
|
-
}, e[t(
|
|
231
|
+
onPointerEnter: () => _[t(193)] === t(198) && !r && B(e),
|
|
232
|
+
children: S("span", { children: e[t(203)]() })
|
|
233
|
+
}, e[t(233)]());
|
|
234
234
|
})
|
|
235
|
-
}, M
|
|
236
|
-
},
|
|
235
|
+
}, M.getTime())]
|
|
236
|
+
}, x(197) + R),
|
|
237
237
|
Q
|
|
238
238
|
]
|
|
239
239
|
});
|
|
240
240
|
}
|
|
241
|
-
function re({ first: e, last:
|
|
242
|
-
let o =
|
|
243
|
-
|
|
244
|
-
let e =
|
|
245
|
-
if (!
|
|
246
|
-
let
|
|
247
|
-
|
|
248
|
-
top:
|
|
249
|
-
behavior: c[e(
|
|
250
|
-
}), c[e(
|
|
251
|
-
}, [
|
|
252
|
-
let l = Array[o(
|
|
253
|
-
return S(o(
|
|
241
|
+
function re({ first: e, last: n, selected: r, current: i, onPick: a }) {
|
|
242
|
+
let o = t, s = v(null), c = v(!1);
|
|
243
|
+
_(() => {
|
|
244
|
+
let e = t, n = s[e(217)], r = n?.querySelector(e(229));
|
|
245
|
+
if (!n || !r) return;
|
|
246
|
+
let i = r[e(222)] - n.clientHeight / 2 + r.offsetHeight / 2;
|
|
247
|
+
n[e(240)]({
|
|
248
|
+
top: i,
|
|
249
|
+
behavior: c[e(217)] ? "smooth" : e(201)
|
|
250
|
+
}), c[e(217)] = !0;
|
|
251
|
+
}, [r]);
|
|
252
|
+
let l = Array[o(210)]({ length: Math[o(195)](0, n - e + 1) }, (t, n) => e + n);
|
|
253
|
+
return S(o(256), {
|
|
254
254
|
ref: s,
|
|
255
|
-
role:
|
|
255
|
+
role: "listbox",
|
|
256
256
|
"aria-label": "연도",
|
|
257
|
-
className: o(
|
|
258
|
-
onKeyDown: (
|
|
257
|
+
className: o(200),
|
|
258
|
+
onKeyDown: (t) => {
|
|
259
259
|
let i = o, c = {
|
|
260
260
|
ArrowUp: -1,
|
|
261
261
|
ArrowDown: 1,
|
|
262
262
|
PageUp: -10,
|
|
263
263
|
PageDown: 10
|
|
264
264
|
};
|
|
265
|
-
|
|
265
|
+
t.key in c && (t.preventDefault(), a(Math[i(248)](n, Math[i(195)](e, r + c[t[i(209)]]))), requestAnimationFrame(() => s.current?.querySelector(i(229))?.[i(237)]({ preventScroll: !0 })));
|
|
266
266
|
},
|
|
267
|
-
children: l
|
|
268
|
-
type:
|
|
269
|
-
role:
|
|
270
|
-
"aria-selected": e ===
|
|
271
|
-
tabIndex: e ===
|
|
272
|
-
className: o(
|
|
273
|
-
"data-today": e ===
|
|
267
|
+
children: l[o(255)]((e) => S(o(184), {
|
|
268
|
+
type: o(184),
|
|
269
|
+
role: o(246),
|
|
270
|
+
"aria-selected": e === r,
|
|
271
|
+
tabIndex: e === r ? 0 : -1,
|
|
272
|
+
className: o(227),
|
|
273
|
+
"data-today": e === i || void 0,
|
|
274
274
|
onClick: () => a(e),
|
|
275
275
|
children: e
|
|
276
276
|
}, e))
|
|
277
277
|
});
|
|
278
278
|
}
|
|
279
|
-
function ie({ cells: e, label:
|
|
280
|
-
let
|
|
279
|
+
function ie({ cells: e, label: n, gridRef: r }) {
|
|
280
|
+
let i = t, a = Math[i(195)](0, e[i(194)]((e) => e[i(243)])), [o, s] = y(a);
|
|
281
281
|
return S("div", {
|
|
282
|
-
ref:
|
|
283
|
-
role:
|
|
284
|
-
"aria-label":
|
|
282
|
+
ref: r,
|
|
283
|
+
role: "grid",
|
|
284
|
+
"aria-label": n,
|
|
285
285
|
className: "ds-calendar__picks",
|
|
286
286
|
onKeyDown: (t) => {
|
|
287
|
-
let
|
|
287
|
+
let n = i, a = {
|
|
288
288
|
ArrowLeft: -1,
|
|
289
289
|
ArrowRight: 1,
|
|
290
290
|
ArrowUp: -3,
|
|
291
291
|
ArrowDown: 3
|
|
292
292
|
}, c;
|
|
293
|
-
t[
|
|
293
|
+
t[n(209)] in a ? c = o + a[t.key] : t[n(209)] === n(191) ? c = 0 : t[n(209)] === n(225) && (c = e[n(250)] - 1), !(c === void 0 || c < 0 || c >= e[n(250)]) && (t[n(228)](), s(c), requestAnimationFrame(() => r[n(217)]?.[n(211)](n(208))?.[n(237)]({ preventScroll: !0 })));
|
|
294
294
|
},
|
|
295
|
-
children: e[
|
|
296
|
-
type:
|
|
297
|
-
role:
|
|
295
|
+
children: e[i(255)]((e, t) => S(i(184), {
|
|
296
|
+
type: i(184),
|
|
297
|
+
role: "gridcell",
|
|
298
298
|
tabIndex: t === o ? 0 : -1,
|
|
299
|
-
"aria-selected": e[
|
|
300
|
-
"aria-disabled": e[
|
|
301
|
-
"aria-current": e[
|
|
302
|
-
className:
|
|
303
|
-
"data-selected": e
|
|
304
|
-
"data-today": e
|
|
305
|
-
onClick: () => !e
|
|
306
|
-
children: S(
|
|
307
|
-
}, e
|
|
299
|
+
"aria-selected": e[i(243)],
|
|
300
|
+
"aria-disabled": e[i(226)] || void 0,
|
|
301
|
+
"aria-current": e[i(217)] ? i(202) : void 0,
|
|
302
|
+
className: i(205),
|
|
303
|
+
"data-selected": e.selected || void 0,
|
|
304
|
+
"data-today": e.current || void 0,
|
|
305
|
+
onClick: () => !e.disabled && e.pick(),
|
|
306
|
+
children: S("span", { children: e[i(206)] })
|
|
307
|
+
}, e.key))
|
|
308
308
|
});
|
|
309
309
|
}
|
|
310
310
|
export { w as Calendar };
|