@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,95 +1,88 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
(function(e, t) {
|
|
3
|
-
let n =
|
|
3
|
+
let n = a, r = e();
|
|
4
4
|
for (;;) try {
|
|
5
|
-
if (parseInt(n(
|
|
5
|
+
if (parseInt(n(461)) / 1 + -parseInt(n(451)) / 2 + parseInt(n(458)) / 3 + parseInt(n(462)) / 4 * (-parseInt(n(459)) / 5) + -parseInt(n(448)) / 6 + -parseInt(n(455)) / 7 * (parseInt(n(452)) / 8) + parseInt(n(450)) / 9 == t) break;
|
|
6
6
|
r.push(r.shift());
|
|
7
7
|
} catch {
|
|
8
8
|
r.push(r.shift());
|
|
9
9
|
}
|
|
10
|
-
})(
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"mtfotwfYv2m",
|
|
18
|
-
"mtu4ntGZmeTWtLbeza",
|
|
19
|
-
"A2v5",
|
|
20
|
-
"y3vYCMvUDa",
|
|
21
|
-
"nZm0vLbnCevI",
|
|
22
|
-
"Dg9gAxHLza",
|
|
23
|
-
"mtu1nJe1mKnUENnOsG",
|
|
24
|
-
"nZi4uhLhCNLK",
|
|
25
|
-
"BwLU",
|
|
26
|
-
"mty4rK1nDKLm",
|
|
27
|
-
"BwfW",
|
|
28
|
-
"AgfZ",
|
|
29
|
-
"y29SB3i",
|
|
30
|
-
"mJe5oda2n3DitLrcrW",
|
|
31
|
-
"oty5mdvcuuDmvKi",
|
|
32
|
-
"mZe0mNHoCKzsuG",
|
|
33
|
-
"nZK0ntC5mhzry050uq",
|
|
34
|
-
"mte2C0riswvd"
|
|
35
|
-
];
|
|
36
|
-
return e = function() {
|
|
37
|
-
return t;
|
|
38
|
-
}, e();
|
|
39
|
-
}
|
|
40
|
-
import { cubicBezier as t } from "./arc.js";
|
|
41
|
-
import { useEffect as n, useLayoutEffect as r, useRef as i, useState as a } from "react";
|
|
42
|
-
var o = t(.32, .72, 0, 1);
|
|
43
|
-
function s(t, n) {
|
|
44
|
-
t -= 372;
|
|
45
|
-
let r = e(), i = r[t];
|
|
46
|
-
s.cDwQPG === void 0 && (s.sJNwYK = function(e) {
|
|
10
|
+
})(o, 116397);
|
|
11
|
+
import { cubicBezier as e } from "./arc.js";
|
|
12
|
+
import { useEffect as t, useLayoutEffect as n, useRef as r, useState as i } from "react";
|
|
13
|
+
function a(e, t) {
|
|
14
|
+
e -= 448;
|
|
15
|
+
let n = o(), r = n[e];
|
|
16
|
+
a.JfZUHv === void 0 && (a.xmAaEz = function(e) {
|
|
47
17
|
let t = "", n = "";
|
|
48
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);
|
|
49
19
|
for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
|
|
50
20
|
return decodeURIComponent(n);
|
|
51
|
-
},
|
|
52
|
-
let
|
|
53
|
-
|
|
54
|
-
let
|
|
55
|
-
return
|
|
21
|
+
}, a.HqeWeI = {}, a.JfZUHv = !0);
|
|
22
|
+
let i = n[0];
|
|
23
|
+
a.lSoPGU !== i && (a.HqeWeI = {}, a.lSoPGU = i);
|
|
24
|
+
let s = a.HqeWeI[e];
|
|
25
|
+
return s === void 0 ? (r = a.xmAaEz(r), a.HqeWeI[e] = r) : r = s, r;
|
|
26
|
+
}
|
|
27
|
+
function o() {
|
|
28
|
+
let e = [
|
|
29
|
+
"z2v0",
|
|
30
|
+
"nJu1mdy4qNvkAKXk",
|
|
31
|
+
"nw1oqu9kEa",
|
|
32
|
+
"zMLSDgvY",
|
|
33
|
+
"mJiWnZrduffczM0",
|
|
34
|
+
"nJi2odC2tufHquTv",
|
|
35
|
+
"ode5nZKYC25etur2",
|
|
36
|
+
"BwfW",
|
|
37
|
+
"mJi3nJe5ow1zzxz3zG",
|
|
38
|
+
"mta0mtK2sKHAwhDz",
|
|
39
|
+
"ohbgELLIsa",
|
|
40
|
+
"Dg9gAxHLza",
|
|
41
|
+
"A2v5",
|
|
42
|
+
"mJiWndy1sML5Eerc",
|
|
43
|
+
"y3vYCMvUDa"
|
|
44
|
+
];
|
|
45
|
+
return o = function() {
|
|
46
|
+
return e;
|
|
47
|
+
}, o();
|
|
56
48
|
}
|
|
57
|
-
|
|
58
|
-
|
|
49
|
+
var s = e(.32, .72, 0, 1);
|
|
50
|
+
function c(e, { enter: o = 900, update: c = 600 } = {}) {
|
|
51
|
+
let l = a, [u, d] = i(() => e[l(449)]((e) => ({
|
|
59
52
|
...e,
|
|
60
53
|
a0: 0,
|
|
61
54
|
a1: 0
|
|
62
|
-
}))), f =
|
|
63
|
-
|
|
64
|
-
let t =
|
|
65
|
-
p[t(
|
|
55
|
+
}))), f = r(u), p = r(e);
|
|
56
|
+
n(() => {
|
|
57
|
+
let t = l;
|
|
58
|
+
p[t(456)] = e;
|
|
66
59
|
});
|
|
67
|
-
let m =
|
|
68
|
-
return
|
|
69
|
-
let e = l,
|
|
60
|
+
let m = r(!1), h = e[l(449)]((e) => e.key + ":" + e.a0[l(453)](5) + ":" + e.a1[l(453)](5) + ":" + e.color).join("|");
|
|
61
|
+
return t(() => {
|
|
62
|
+
let e = l, t = p[e(456)], n = !m[e(456)], r = new Map(f[e(456)].map((e) => [e.key, e])), i = new Set(t.map((t) => t[e(454)])), a = f.current[e(460)]((t) => !i.has(t[e(454)]) && t.a1 - t.a0 > 1e-4).map((e) => {
|
|
70
63
|
let t = (e.a0 + e.a1) / 2;
|
|
71
64
|
return {
|
|
72
65
|
...e,
|
|
73
66
|
a0: t,
|
|
74
67
|
a1: t
|
|
75
68
|
};
|
|
76
|
-
}), u = [...
|
|
69
|
+
}), u = [...t, ...a], h = u[e(449)]((t) => r[e(457)](t.key) ?? {
|
|
77
70
|
...t,
|
|
78
71
|
a1: t.a0
|
|
79
|
-
}), g =
|
|
72
|
+
}), g = n ? o : c, _ = 0, v = 0, y = (n) => {
|
|
80
73
|
let r = e;
|
|
81
|
-
v ||=
|
|
82
|
-
let i = Math
|
|
74
|
+
v ||= n;
|
|
75
|
+
let i = Math.min(1, (n - v) / g), a = s(i), o = i < 1 ? u.map((e, t) => ({
|
|
83
76
|
...e,
|
|
84
77
|
a0: h[t].a0 + (e.a0 - h[t].a0) * a,
|
|
85
78
|
a1: h[t].a1 + (e.a1 - h[t].a1) * a
|
|
86
|
-
})) :
|
|
87
|
-
f[r(
|
|
79
|
+
})) : t;
|
|
80
|
+
f[r(456)] = o, d(o), i < 1 ? _ = requestAnimationFrame(y) : m[r(456)] = !0;
|
|
88
81
|
};
|
|
89
82
|
return _ = requestAnimationFrame(() => _ = requestAnimationFrame(y)), () => cancelAnimationFrame(_);
|
|
90
83
|
}, [
|
|
91
84
|
h,
|
|
92
|
-
|
|
85
|
+
o,
|
|
93
86
|
c
|
|
94
87
|
]), u;
|
|
95
88
|
}
|
|
@@ -1,112 +1,112 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
let
|
|
5
|
-
e.vGebYd === void 0 && (e.qNjwPc = 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.kZBqQg = {}, e.vGebYd = !0);
|
|
11
|
-
let a = r[0];
|
|
12
|
-
e.WlRAzb !== a && (e.kZBqQg = {}, e.WlRAzb = a);
|
|
13
|
-
let o = e.kZBqQg[t];
|
|
14
|
-
return o === void 0 ? (i = e.qNjwPc(i), e.kZBqQg[t] = i) : i = o, i;
|
|
15
|
-
}
|
|
16
|
-
const t = e;
|
|
17
|
-
(function(t, n) {
|
|
18
|
-
let r = e, i = t();
|
|
2
|
+
const e = h;
|
|
3
|
+
(function(e, t) {
|
|
4
|
+
let n = h, r = e();
|
|
19
5
|
for (;;) try {
|
|
20
|
-
if (-parseInt(
|
|
21
|
-
|
|
6
|
+
if (-parseInt(n(155)) / 1 + -parseInt(n(146)) / 2 * (parseInt(n(130)) / 3) + -parseInt(n(129)) / 4 + -parseInt(n(136)) / 5 * (parseInt(n(152)) / 6) + -parseInt(n(120)) / 7 * (-parseInt(n(143)) / 8) + parseInt(n(119)) / 9 + parseInt(n(158)) / 10 * (parseInt(n(139)) / 11) == t) break;
|
|
7
|
+
r.push(r.shift());
|
|
22
8
|
} catch {
|
|
23
|
-
|
|
9
|
+
r.push(r.shift());
|
|
24
10
|
}
|
|
25
|
-
})(s,
|
|
26
|
-
import { TIMING as
|
|
27
|
-
import { usePresence as
|
|
28
|
-
import { useControllableState as
|
|
29
|
-
import { cx as
|
|
30
|
-
import { useFloating as
|
|
11
|
+
})(s, 823626);
|
|
12
|
+
import { TIMING as t } from "../../hooks/timing.js";
|
|
13
|
+
import { usePresence as n } from "../../hooks/usePresence.js";
|
|
14
|
+
import { useControllableState as r } from "../../hooks/useControllableState.js";
|
|
15
|
+
import { cx as i } from "../../primitives/index.js";
|
|
16
|
+
import { useFloating as a } from "../../hooks/useFloating.js";
|
|
17
|
+
import { useDismiss as o } from "../../hooks/useDismiss.js";
|
|
31
18
|
function s() {
|
|
32
|
-
let e = /* @__PURE__ */ "
|
|
19
|
+
let e = /* @__PURE__ */ "y2fSyYGXmdb2DYaTide2ChGP.y2XLyxjuAw1LB3v0.zhmTzMXVyxrPBMC.mJGYDvr4shLl.C2v0vgLTzw91Da.y2XVC2LUzW.mtqZnZKWnKTbwK1ptG.y2XPy2S.zNvUy3rPB24.nZqWndGWmeDKAfD0yG.Cg9PBNrLCLr5Cgu.A2v5.rxnJyxbL.B3bLBG.mtCXmtC3m2DNug5yrG.mteXmZCXmZnjyKHYrNi.zhmTzMXVyxrPBMCTlxbHzc0.oMzVy3vZlxzPC2LIBgu.ChjLDMvUDerLzMf1Bhq.y29UDgfPBNm.yM9KEq.C3bHBG.Ag92zxi.C3rHCNq.mtK5ody3mLrAELHgEq.mta1ndGZD2jKCM96.Bw91C2u.zgvMyxvSDfbYzxzLBNrLza.DgfYz2v0.ywn0AxzLrwXLBwvUDa.Ag92zxjjBNrLBNq.mtu4otbRvej5wMe.zM9JDxm.zhmTC2nYB2XS.mJjfzu1Hzue.CMvSyxrLzfrHCMDLDa.Bw91BNrLza.zhmTCg9WB3zLCI1HBMnOB3i.ohz4C0vdAq.y2XVC2vK.Bwf0y2HLCW.mJbUuwH4rxG.y3vYCMvUDa.Ag92zxjhCMfJzq".split(".");
|
|
33
20
|
return s = function() {
|
|
34
21
|
return e;
|
|
35
22
|
}, s();
|
|
36
23
|
}
|
|
37
|
-
import {
|
|
38
|
-
import { focusableIn as l } from "../../hooks/useFocusTrap.js";
|
|
24
|
+
import { focusableIn as c } from "../../hooks/useFocusTrap.js";
|
|
39
25
|
/* empty css */
|
|
40
|
-
import { useEffect as
|
|
41
|
-
import { Fragment as
|
|
42
|
-
import { createPortal as
|
|
26
|
+
import { useEffect as l, useRef as u } from "react";
|
|
27
|
+
import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
28
|
+
import { createPortal as m } from "react-dom";
|
|
29
|
+
function h(e, t) {
|
|
30
|
+
e -= 116;
|
|
31
|
+
let n = s(), r = n[e];
|
|
32
|
+
h.dVpeEv === void 0 && (h.bGFrik = function(e) {
|
|
33
|
+
let t = "", n = "";
|
|
34
|
+
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);
|
|
35
|
+
for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
|
|
36
|
+
return decodeURIComponent(n);
|
|
37
|
+
}, h.NYoOSP = {}, h.dVpeEv = !0);
|
|
38
|
+
let i = n[0];
|
|
39
|
+
h.muNqRa !== i && (h.NYoOSP = {}, h.muNqRa = i);
|
|
40
|
+
let a = h.NYoOSP[e];
|
|
41
|
+
return a === void 0 ? (r = h.bGFrik(r), h.NYoOSP[e] = r) : r = a, r;
|
|
42
|
+
}
|
|
43
43
|
var g = 160;
|
|
44
|
-
function _({ trigger:
|
|
45
|
-
let D =
|
|
44
|
+
function _({ trigger: s, children: h, open: _, defaultOpen: v = !1, onOpenChange: y, openOn: b = e(156), align: x = e(128), width: S, padding: C = "md", autoFocus: w = !0, className: T, "aria-label": E }) {
|
|
45
|
+
let D = e, [O, k] = r(_, v, y), A = n(O, g), j = u(null), M = u(null), N = u(0), { style: P, side: F } = a(j, A[D(141)], {
|
|
46
46
|
matchWidth: !1,
|
|
47
47
|
align: x,
|
|
48
48
|
panelRef: M,
|
|
49
49
|
maxHeight: 560
|
|
50
50
|
});
|
|
51
|
-
|
|
51
|
+
o(O, [j, M], () => k(!1)), l(() => () => window[D(150)](N[D(147)]), []), l(() => {
|
|
52
52
|
let e = D;
|
|
53
|
-
if (!O || b !== e(
|
|
53
|
+
if (!O || b !== e(156) || !w) return;
|
|
54
54
|
let t = requestAnimationFrame(() => {
|
|
55
|
-
let t = e, n = M[t(
|
|
56
|
-
n && (
|
|
55
|
+
let t = e, n = M[t(147)];
|
|
56
|
+
n && (c(n)[0] ?? n)[t(137)]({ preventScroll: !0 });
|
|
57
57
|
});
|
|
58
58
|
return () => cancelAnimationFrame(t);
|
|
59
59
|
}, [
|
|
60
60
|
O,
|
|
61
61
|
b,
|
|
62
62
|
w
|
|
63
|
-
]),
|
|
63
|
+
]), l(() => {
|
|
64
64
|
let e = D;
|
|
65
|
-
!O && M
|
|
65
|
+
!O && M[e(147)]?.[e(124)](document[e(134)]) && j[e(147)] && c(j[e(147)])[0]?.[e(137)]({ preventScroll: !0 });
|
|
66
66
|
}, [O]);
|
|
67
67
|
let I = () => k(!1), L = (e) => {
|
|
68
|
-
let t = D, n = e[t(
|
|
69
|
-
j[t(
|
|
68
|
+
let t = D, n = e[t(140)];
|
|
69
|
+
j[t(147)]?.contains(n) || M.current?.[t(124)](n) || k(!1);
|
|
70
70
|
}, R = (e) => {
|
|
71
71
|
let t = D;
|
|
72
|
-
e[t(
|
|
73
|
-
}, z = b === D(
|
|
72
|
+
e[t(116)] === t(117) && O && !e[t(132)] && (e[t(123)](), I());
|
|
73
|
+
}, z = b === D(127) ? {
|
|
74
74
|
onPointerEnter: (e) => {
|
|
75
|
-
let
|
|
76
|
-
e[
|
|
75
|
+
let n = D;
|
|
76
|
+
e[n(159)] === n(131) && (window[n(150)](N.current), N[n(147)] = window[n(153)](() => k(!0), O ? 0 : t[n(135)]));
|
|
77
77
|
},
|
|
78
78
|
onPointerLeave: (e) => {
|
|
79
|
-
let
|
|
80
|
-
e
|
|
79
|
+
let n = D;
|
|
80
|
+
e[n(159)] === n(131) && (window.clearTimeout(N[n(147)]), N[n(147)] = window.setTimeout(() => k(!1), t[n(148)]));
|
|
81
81
|
}
|
|
82
82
|
} : {};
|
|
83
|
-
return
|
|
83
|
+
return p(d, { children: [f(D(126), {
|
|
84
84
|
ref: j,
|
|
85
|
-
className:
|
|
86
|
-
onClick: b ===
|
|
87
|
-
onFocus: b === D(
|
|
88
|
-
onBlur: b ===
|
|
85
|
+
className: D(142),
|
|
86
|
+
onClick: b === D(156) ? () => k(!O) : void 0,
|
|
87
|
+
onFocus: b === D(127) ? (e) => e[D(133)][D(145)](D(122)) && k(!0) : void 0,
|
|
88
|
+
onBlur: b === D(127) ? L : void 0,
|
|
89
89
|
onKeyDown: R,
|
|
90
90
|
"aria-expanded": O,
|
|
91
91
|
...z,
|
|
92
|
-
children:
|
|
93
|
-
}), A[D(
|
|
92
|
+
children: s
|
|
93
|
+
}), A[D(141)] && m(f("div", {
|
|
94
94
|
ref: M,
|
|
95
|
-
role:
|
|
95
|
+
role: "dialog",
|
|
96
96
|
"aria-label": E,
|
|
97
97
|
tabIndex: -1,
|
|
98
|
-
className:
|
|
98
|
+
className: i(D(151), D(138), D(121) + C, T),
|
|
99
99
|
"data-side": F,
|
|
100
|
-
"data-state": A
|
|
100
|
+
"data-state": A[D(154)] ? D(144) : D(118),
|
|
101
101
|
style: {
|
|
102
102
|
...P,
|
|
103
103
|
width: S,
|
|
104
|
-
maxWidth: D(
|
|
104
|
+
maxWidth: D(149)
|
|
105
105
|
},
|
|
106
106
|
onKeyDown: R,
|
|
107
|
-
onBlur: b === D(
|
|
107
|
+
onBlur: b === D(127) ? L : void 0,
|
|
108
108
|
...z,
|
|
109
|
-
children: typeof
|
|
110
|
-
}), document
|
|
109
|
+
children: typeof h === D(157) ? h(() => I()) : h
|
|
110
|
+
}), document[D(125)])] });
|
|
111
111
|
}
|
|
112
112
|
export { _ as Popover };
|