@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,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
const e =
|
|
2
|
+
const e = b;
|
|
3
3
|
(function(e, t) {
|
|
4
|
-
let n =
|
|
4
|
+
let n = b, r = e();
|
|
5
5
|
for (;;) try {
|
|
6
|
-
if (parseInt(n(
|
|
6
|
+
if (-parseInt(n(368)) / 1 * (-parseInt(n(348)) / 2) + -parseInt(n(398)) / 3 + parseInt(n(367)) / 4 * (parseInt(n(389)) / 5) + parseInt(n(363)) / 6 * (-parseInt(n(383)) / 7) + parseInt(n(381)) / 8 * (parseInt(n(353)) / 9) + parseInt(n(377)) / 10 * (-parseInt(n(397)) / 11) + -parseInt(n(356)) / 12 * (parseInt(n(399)) / 13) == t) break;
|
|
7
7
|
r.push(r.shift());
|
|
8
8
|
} catch {
|
|
9
9
|
r.push(r.shift());
|
|
10
10
|
}
|
|
11
|
-
})(
|
|
11
|
+
})(y, 766021);
|
|
12
12
|
import { usePresence as t } from "../../hooks/usePresence.js";
|
|
13
13
|
import { useControllableState as n } from "../../hooks/useControllableState.js";
|
|
14
14
|
import { cx as r } from "../../primitives/index.js";
|
|
@@ -16,163 +16,170 @@ import { useSelection as i } from "../../hooks/useSelection.js";
|
|
|
16
16
|
import { useDismiss as a } from "../../hooks/useDismiss.js";
|
|
17
17
|
import { Listbox as ee, ListboxPopover as te, firstEnabled as o, lastEnabled as ne, nextEnabled as s, optionId as re } from "../Listbox/Listbox2.js";
|
|
18
18
|
/* empty css */
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
import { useId as ie, useMemo as c, useRef as l, useState as u } from "react";
|
|
20
|
+
import { Check as d, ChevronDown as ae, Plus as oe, X as f } from "lucide-react";
|
|
21
|
+
import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
22
|
+
var g = (t) => t[e(370)]()[e(376)](/\s+/g, ""), _ = (t, n) => {
|
|
23
|
+
let r = e, i = g(n);
|
|
24
|
+
return [t[r(410)], ...t[r(401)] ?? []].some((e) => g(e)[r(405)](i));
|
|
25
|
+
};
|
|
26
|
+
function v({ text: t, query: n }) {
|
|
27
|
+
let r = e, i = n ? t[r(370)]()[r(362)](n[r(370)]()) : -1;
|
|
28
|
+
return i < 0 ? m(p, { children: t }) : h(p, { children: [
|
|
29
|
+
t.slice(0, i),
|
|
30
|
+
m(r(378), { children: t[r(380)](i, i + n[r(360)]) }),
|
|
31
|
+
t[r(380)](i + n[r(360)])
|
|
32
|
+
] });
|
|
33
|
+
}
|
|
34
|
+
function y() {
|
|
35
|
+
let e = /* @__PURE__ */ "y3vYCMvUDa.ouTTzw1Ora.zhmTB3b0Aw9Ux19SywjLBa.zhmTy29TyM9IB3G.mJrSELruEeO.BgLZDa.BxvSDgLWBgu.zhmTB3b0Aw9Ux19Py29U.BgvUz3rO.zhmTB3b0Aw9Ux19JAgvJAY1IB3G.Aw5KzxHpzG.nJyZmJeYnhzvyNPmtW.zhmTy29TyM9IB3HFx2LUChv0.zhmTB3b0Aw9Ux19KzxnJ.C2LUz2XL.otmYqvnSDK9W.mtGYnda5BwrlD3LA.AwnVBG.Dg9mB3DLCKnHC2u.4OczioY2LoQWGa.zM9JDxm.DgfYz2v0.AxntzwXLy3rLza.zgvMyxvSDfzHBhvL.CMvWBgfJzq.mJG4mevVBNnwDq.BwfYAW.zgvZy3jPChrPB24.C2XPy2u.mtiWmdK5otjVA3zxCue.ChjLDMvUDerLzMf1Bhq.n3DZwwrtCa.C3bHBG.rxnJyxbL.B2zM.zhmTB3b0Aw9Ux19JAgvJAW.C2vSzwn0zwq.oda1q0PRAKzV.zhmTy29TyM9IB3GTlq.qxjYB3DeB3DU.C29Tzq.B25wywX1zunOyw5Nzq.DMfSDwu.C3rYB25N.zhmTy29TyM9IB3HFx2nOzxzYB24.mJK5ntnWu3DoCNu.mZuZnZG3z2zIDvrt.mtq1oti4owzUv0rpra.zhmTy29UDhjVBa.A2v5D29Yzhm.zMLSDgvY.Aw5WDxq.BwfW.Aw5JBhvKzxm.zgL2.ioYGNoQXSa.zhmTy29TyM9IB3HFx2LJB24.Aw5WDxrwywX1zq.BgfIzwW.6Rka7ioj7zw07isCioYeOo2dNq.A2v5.yNv0Dg9U.C3rVCfbYB3bHz2f0Aw9U.DhjPBq.rw50zxi.y2XVC2LUzW.y29TyM9IB3G.z2v0.7isG7yoDio2vToYGNa.y2XLyxi.zgLZywjSzwq.mtz0D0ziv2i.zhmTy29TyM9IB3HFx2nSzwfY.zhmTB3b0Aw9Ux190zxH0.Dg9Nz2XL".split(".");
|
|
36
|
+
return y = function() {
|
|
37
|
+
return e;
|
|
38
|
+
}, y();
|
|
39
|
+
}
|
|
40
|
+
function b(e, t) {
|
|
41
|
+
e -= 342;
|
|
42
|
+
let n = y(), r = n[e];
|
|
43
|
+
b.sYVFQM === void 0 && (b.crcKNz = function(e) {
|
|
23
44
|
let t = "", n = "";
|
|
24
45
|
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);
|
|
25
46
|
for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
|
|
26
47
|
return decodeURIComponent(n);
|
|
27
|
-
},
|
|
48
|
+
}, b.ISkHoW = {}, b.sYVFQM = !0);
|
|
28
49
|
let i = n[0];
|
|
29
|
-
|
|
30
|
-
let a =
|
|
31
|
-
return a === void 0 ? (r =
|
|
32
|
-
}
|
|
33
|
-
import { useId as ie, useMemo as ae, useRef as l, useState as u } from "react";
|
|
34
|
-
import { Check as d, ChevronDown as oe, Plus as f, X as p } from "lucide-react";
|
|
35
|
-
import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
36
|
-
var _ = (t) => t[e(379)]()[e(380)](/\s+/g, ""), v = (t, n) => {
|
|
37
|
-
let r = e, i = _(n);
|
|
38
|
-
return [t[r(343)], ...t.keywords ?? []].some((e) => _(e).includes(i));
|
|
39
|
-
};
|
|
40
|
-
function y({ text: t, query: n }) {
|
|
41
|
-
let r = e, i = n ? t.toLowerCase()[r(348)](n[r(379)]()) : -1;
|
|
42
|
-
return i < 0 ? h(m, { children: t }) : g(m, { children: [
|
|
43
|
-
t.slice(0, i),
|
|
44
|
-
h(r(334), { children: t[r(340)](i, i + n[r(350)]) }),
|
|
45
|
-
t[r(340)](i + n.length)
|
|
46
|
-
] });
|
|
50
|
+
b.rkHJyB !== i && (b.ISkHoW = {}, b.rkHJyB = i);
|
|
51
|
+
let a = b.ISkHoW[e];
|
|
52
|
+
return a === void 0 ? (r = b.crcKNz(r), b.ISkHoW[e] = r) : r = a, r;
|
|
47
53
|
}
|
|
48
|
-
function
|
|
49
|
-
let
|
|
54
|
+
function x(d) {
|
|
55
|
+
let v = e, { options: y, placeholder: b = v(411), size: x = "md", disabled: S, invalid: C, leading: w, filter: ce = _, onCreate: T, createLabel: le = (e) => h(p, { children: [
|
|
50
56
|
"‘",
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
] }), emptyText: ue, highlight: de = !0, renderOption: E, maxHeight:
|
|
54
|
-
type:
|
|
55
|
-
value:
|
|
56
|
-
defaultValue:
|
|
57
|
-
onValueChange:
|
|
57
|
+
m(v(395), { children: e }),
|
|
58
|
+
v(371)
|
|
59
|
+
] }), emptyText: ue, highlight: de = !0, renderOption: E, maxHeight: fe, id: D, className: pe, "aria-label": O, "aria-labelledby": me } = d, k = ie() + "-list", A = i(d[v(358)] ? {
|
|
60
|
+
type: "multiple",
|
|
61
|
+
value: d.value,
|
|
62
|
+
defaultValue: d[v(375)],
|
|
63
|
+
onValueChange: d[v(393)]
|
|
58
64
|
} : {
|
|
59
|
-
type:
|
|
60
|
-
value:
|
|
61
|
-
defaultValue:
|
|
62
|
-
onValueChange:
|
|
63
|
-
}), j = A[
|
|
65
|
+
type: v(366),
|
|
66
|
+
value: d[v(394)],
|
|
67
|
+
defaultValue: d[v(375)],
|
|
68
|
+
onValueChange: d[v(393)]
|
|
69
|
+
}), j = A[v(358)], [M, N] = n(d[v(409)], "", d.onInputChange), [P, F] = u(!1), [I, L] = u(!1), R = t(I), [z, B] = u(-1), V = l(null), H = l(null), U = l(null), he = c(() => new Map(y[v(404)]((e) => [e[v(394)], e])), [y]), W = A[v(388)].map((e) => he[v(344)](e)).filter((e) => !!e), G = j || P, K = G ? M[v(415)]() : "", q = K ? y[v(402)]((e) => ce(e, K)) : y, J = !!T && !!K && !y[v(392)]((e) => g(e.label) === g(K)), Y = J ? [...q, { disabled: !1 }] : q, X = () => {
|
|
64
70
|
L(!1), F(!1), j || N("");
|
|
65
71
|
};
|
|
66
72
|
a(I, [V, U], X);
|
|
67
73
|
let Z = (e = o(Y)) => {
|
|
68
74
|
S || (B(e), L(!0));
|
|
69
75
|
}, Q = (e) => {
|
|
70
|
-
let t =
|
|
71
|
-
e
|
|
76
|
+
let t = v;
|
|
77
|
+
e[t(347)] || (j ? (A.toggle(e[t(394)]), N(""), H[t(352)]?.[t(372)]()) : (A.setSelected([e[t(394)]]), X()));
|
|
72
78
|
}, $ = () => {
|
|
73
79
|
T?.(K), N(""), j || X();
|
|
74
80
|
}, ge = J ? {
|
|
75
81
|
label: le(K),
|
|
76
|
-
icon:
|
|
82
|
+
icon: m(oe, {}),
|
|
77
83
|
onSelect: $
|
|
78
84
|
} : void 0, _e = () => {
|
|
79
|
-
z < 0 || (z < q
|
|
85
|
+
z < 0 || (z < q.length ? Q(q[z]) : J && $());
|
|
80
86
|
}, ve = (e) => {
|
|
81
|
-
let t =
|
|
82
|
-
if (!e
|
|
83
|
-
case t(
|
|
87
|
+
let t = v;
|
|
88
|
+
if (!e.nativeEvent.isComposing) switch (e[t(412)]) {
|
|
89
|
+
case t(391):
|
|
84
90
|
e.preventDefault(), I ? B(s(Y, z, 1)) : Z();
|
|
85
91
|
break;
|
|
86
|
-
case
|
|
92
|
+
case "ArrowUp":
|
|
87
93
|
e.preventDefault(), I ? B(s(Y, z, -1)) : Z(ne(Y));
|
|
88
94
|
break;
|
|
89
|
-
case t(
|
|
90
|
-
I && (e
|
|
95
|
+
case t(416):
|
|
96
|
+
I && (e[t(382)](), _e());
|
|
91
97
|
break;
|
|
92
|
-
case
|
|
93
|
-
(I || P) && (e[t(
|
|
98
|
+
case t(385):
|
|
99
|
+
(I || P) && (e[t(382)](), X());
|
|
94
100
|
break;
|
|
95
|
-
case
|
|
96
|
-
j && !M && W[t(
|
|
101
|
+
case "Backspace":
|
|
102
|
+
j && !M && W[t(360)] && A[t(351)](W[W.length - 1][t(394)]);
|
|
97
103
|
break;
|
|
98
104
|
case "Tab": I && X();
|
|
99
105
|
}
|
|
100
|
-
}, ye = G ? M : W[0]?.[
|
|
101
|
-
return
|
|
106
|
+
}, ye = G ? M : W[0]?.[v(410)] ?? "";
|
|
107
|
+
return h(p, { children: [h(v(406), {
|
|
102
108
|
ref: V,
|
|
103
|
-
className: r(
|
|
109
|
+
className: r(v(400), v(355), x !== "md" && v(390) + x, j && "ds-combobox--multiple", pe),
|
|
104
110
|
"data-open": I || void 0,
|
|
105
111
|
"data-invalid": C || void 0,
|
|
106
112
|
"data-disabled": S || void 0,
|
|
107
113
|
onPointerDown: (e) => {
|
|
108
|
-
let t =
|
|
109
|
-
S || e[t(
|
|
114
|
+
let t = v;
|
|
115
|
+
S || e[t(373)] === H[t(352)] || (e[t(382)](), H[t(352)]?.[t(372)](), I || Z());
|
|
110
116
|
},
|
|
111
117
|
children: [
|
|
112
|
-
w &&
|
|
113
|
-
className:
|
|
118
|
+
w && m("span", {
|
|
119
|
+
className: v(408),
|
|
114
120
|
children: w
|
|
115
121
|
}),
|
|
116
|
-
j && W.map((e) =>
|
|
122
|
+
j && W.map((e) => h(v(384), {
|
|
117
123
|
className: "ds-combobox__tag",
|
|
118
|
-
children: [e[
|
|
119
|
-
type:
|
|
124
|
+
children: [e[v(410)], m(v(413), {
|
|
125
|
+
type: v(413),
|
|
120
126
|
tabIndex: -1,
|
|
121
|
-
"aria-label": e[
|
|
127
|
+
"aria-label": e[v(410)] + v(407),
|
|
122
128
|
disabled: S,
|
|
123
|
-
onPointerDown: (e) => e
|
|
124
|
-
onClick: () => A
|
|
125
|
-
children:
|
|
129
|
+
onPointerDown: (e) => e[v(414)](),
|
|
130
|
+
onClick: () => A[v(351)](e.value),
|
|
131
|
+
children: m(f, {})
|
|
126
132
|
})]
|
|
127
|
-
}, e
|
|
128
|
-
|
|
133
|
+
}, e[v(394)])),
|
|
134
|
+
m(v(403), {
|
|
129
135
|
ref: H,
|
|
130
|
-
id:
|
|
131
|
-
role:
|
|
136
|
+
id: D,
|
|
137
|
+
role: v(343),
|
|
132
138
|
"aria-expanded": I,
|
|
133
139
|
"aria-controls": I ? k : void 0,
|
|
134
|
-
"aria-autocomplete":
|
|
140
|
+
"aria-autocomplete": v(357),
|
|
135
141
|
"aria-activedescendant": I && z >= 0 ? re(k, z) : void 0,
|
|
136
142
|
"aria-invalid": C || void 0,
|
|
137
143
|
"aria-label": O,
|
|
138
144
|
"aria-labelledby": me,
|
|
139
|
-
autoComplete:
|
|
145
|
+
autoComplete: v(386),
|
|
140
146
|
disabled: S,
|
|
141
|
-
className:
|
|
142
|
-
placeholder: j && W[
|
|
147
|
+
className: v(364),
|
|
148
|
+
placeholder: j && W[v(360)] ? "" : b,
|
|
143
149
|
value: ye,
|
|
144
150
|
onChange: (e) => {
|
|
145
|
-
let t =
|
|
146
|
-
N(e[t(
|
|
151
|
+
let t = v;
|
|
152
|
+
N(e.target[t(394)]), F(!0), L(!0), B(e.target[t(394)][t(415)]() ? 0 : -1);
|
|
147
153
|
},
|
|
148
154
|
onFocus: () => !I && Z(-1),
|
|
149
155
|
onClick: () => !I && Z(-1),
|
|
150
156
|
onBlur: () => X(),
|
|
151
157
|
onKeyDown: ve
|
|
152
158
|
}),
|
|
153
|
-
!j && W
|
|
154
|
-
type:
|
|
159
|
+
!j && W[v(360)] > 0 && !P && !S && m("button", {
|
|
160
|
+
type: v(413),
|
|
155
161
|
tabIndex: -1,
|
|
156
|
-
className:
|
|
157
|
-
"aria-label":
|
|
162
|
+
className: v(349),
|
|
163
|
+
"aria-label": v(345),
|
|
158
164
|
onPointerDown: (e) => {
|
|
159
|
-
|
|
165
|
+
let t = v;
|
|
166
|
+
e.preventDefault(), e[t(414)]();
|
|
160
167
|
},
|
|
161
|
-
onClick: () => A[
|
|
162
|
-
children:
|
|
168
|
+
onClick: () => A[v(346)](),
|
|
169
|
+
children: m(f, {})
|
|
163
170
|
}),
|
|
164
|
-
|
|
171
|
+
m(ae, { className: v(396) })
|
|
165
172
|
]
|
|
166
|
-
}), R
|
|
173
|
+
}), R.mounted && m(te, {
|
|
167
174
|
ref: U,
|
|
168
|
-
closing: R[
|
|
175
|
+
closing: R[v(342)],
|
|
169
176
|
anchorRef: V,
|
|
170
|
-
maxHeight:
|
|
171
|
-
children:
|
|
177
|
+
maxHeight: fe,
|
|
178
|
+
children: m(ee, {
|
|
172
179
|
id: k,
|
|
173
180
|
options: q,
|
|
174
181
|
activeIndex: z,
|
|
175
|
-
isSelected: A[
|
|
182
|
+
isSelected: A[v(374)],
|
|
176
183
|
onSelect: Q,
|
|
177
184
|
onActiveChange: B,
|
|
178
185
|
multiple: j,
|
|
@@ -182,7 +189,7 @@ function b(c) {
|
|
|
182
189
|
renderOption: E ? (e, t) => E(e, {
|
|
183
190
|
...t,
|
|
184
191
|
query: K
|
|
185
|
-
}) : de && K ? (e, t) =>
|
|
192
|
+
}) : de && K ? (e, t) => m(se, {
|
|
186
193
|
option: e,
|
|
187
194
|
state: t,
|
|
188
195
|
query: K,
|
|
@@ -191,38 +198,32 @@ function b(c) {
|
|
|
191
198
|
})
|
|
192
199
|
})] });
|
|
193
200
|
}
|
|
194
|
-
function x() {
|
|
195
|
-
let e = /* @__PURE__ */ "y3vYCMvUDa.mte5ntiYvNLpqMnA.nZGYntrHwgH1wu0.nJm2qKf2sLHV.BMf0AxzLrxzLBNq.y2XLyxi.mwfIq2jwrq.ntuYzgHKthHV.BwfYAW.zMLSDgvY.AwnVBG.ndqZmw1vrw9Qvq.y2XVC2LUzW.zhmTB3b0Aw9Ux190zxH0.C2XPy2u.Dg9Nz2XL.zhmTy29TyM9IB3GTlw11BhrPCgXL.BgfIzwW.mJbIBM93ruS.BxvSDgLWBgu.B25wywX1zunOyw5Nzq.C3rYB25N.Aw5KzxHpzG.6Rka7ioj7zw07isCioYeOo2dNq.BgvUz3rO.C2vSzwn0zwq.ndqWnJKWnfr5z3PXCa.zgL2.zhmTB3b0Aw9Ux19SywjLBa.qxjYB3DeB3DU.zM9JDxm.DhjPBq.zhmTy29TyM9IB3HFx2LUChv0.C2LUz2XL.zhmTB3b0Aw9Ux19KzxnJ.C3bHBG.yNv0Dg9U.zhmTy29TyM9IB3HFx2nSzwfY.BgLZDa.otmWDhzJt29A.AxntzwXLy3rLza.zhmTy29UDhjVBa.nJa4nJe0wLPlsxfg.zhmTy29TyM9IB3HFx2LJB24.4OczioY2LoQWGa.qxjYB3DvCa.C2v0u2vSzwn0zwq.DMfSDwu.Aw5WDxrwywX1zq.zgvMyxvSDfzHBhvL.nJa3ntmWs01qD25j.DgfYz2v0.nJeWvLLHzLfT.Dg9mB3DLCKnHC2u.CMvWBgfJzq.y29TyM9IB3G.zgvZy3jPChrPB24.ioYGNoQXSa.rw50zxi.Bw91BNrLza.zhmTB3b0Aw9Ux19JAgvJAW.ChjLDMvUDerLzMf1Bhq.BwfW.Aw5WDxq.zhmTy29TyM9IB3HFx2nOzxzYB24.qMfJA3nWywnL.oe9tzg5fzq".split(".");
|
|
196
|
-
return x = function() {
|
|
197
|
-
return e;
|
|
198
|
-
}, x();
|
|
199
|
-
}
|
|
200
201
|
function se({ option: t, state: n, query: r, multiple: i }) {
|
|
201
202
|
let a = e;
|
|
202
|
-
return
|
|
203
|
-
i &&
|
|
204
|
-
className:
|
|
205
|
-
"data-checked": n[a(
|
|
206
|
-
children:
|
|
203
|
+
return h(p, { children: [
|
|
204
|
+
i && m(a(384), {
|
|
205
|
+
className: a(361),
|
|
206
|
+
"data-checked": n[a(388)] || void 0,
|
|
207
|
+
children: m(d, {})
|
|
207
208
|
}),
|
|
208
|
-
t
|
|
209
|
-
className:
|
|
210
|
-
children: t
|
|
209
|
+
t[a(369)] && m("span", {
|
|
210
|
+
className: a(359),
|
|
211
|
+
children: t.icon
|
|
211
212
|
}),
|
|
212
|
-
|
|
213
|
-
className: a(
|
|
214
|
-
children: [
|
|
213
|
+
h("span", {
|
|
214
|
+
className: a(350),
|
|
215
|
+
children: [m(a(384), {
|
|
215
216
|
className: a(354),
|
|
216
|
-
children:
|
|
217
|
-
text: t[a(
|
|
217
|
+
children: m(v, {
|
|
218
|
+
text: t[a(410)],
|
|
218
219
|
query: r
|
|
219
220
|
})
|
|
220
|
-
}), t[a(
|
|
221
|
-
className: a(
|
|
222
|
-
children: t[a(
|
|
221
|
+
}), t[a(379)] && m(a(384), {
|
|
222
|
+
className: a(365),
|
|
223
|
+
children: t[a(379)]
|
|
223
224
|
})]
|
|
224
225
|
}),
|
|
225
|
-
!i && n
|
|
226
|
+
!i && n[a(388)] && m(d, { className: a(387) })
|
|
226
227
|
] });
|
|
227
228
|
}
|
|
228
|
-
export {
|
|
229
|
+
export { x as Combobox, _ as defaultComboboxFilter };
|