@iamfiro/design 0.3.0 → 0.3.2
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/avatar/AGENTS.md +29 -1
- package/agents/tooltip/AGENTS.md +1 -1
- package/lib/components/Accordion/Accordion2.js +76 -76
- package/lib/components/ActionBar/ActionBar2.js +43 -43
- package/lib/components/Alert/Alert2.js +46 -46
- package/lib/components/AppShell/AppShell2.js +58 -58
- package/lib/components/AreaChart/AreaChart.js +39 -40
- package/lib/components/BarChart/BarChart2.js +169 -169
- package/lib/components/BarList/BarList2.js +99 -99
- package/lib/components/Breadcrumb/Breadcrumb2.js +65 -66
- package/lib/components/Calendar/Calendar2.js +172 -171
- package/lib/components/Calendar/DatePicker2.js +101 -102
- package/lib/components/Calendar/date.js +71 -71
- package/lib/components/Card/Card2.js +55 -56
- package/lib/components/CardFrame/CardFrame2.js +52 -52
- package/lib/components/Chart/ChartParts.js +90 -90
- package/lib/components/Chart/chart2.js +52 -52
- package/lib/components/Chart/useChartInteraction.js +44 -44
- package/lib/components/ChatBubble/ChatBubble2.js +112 -112
- package/lib/components/ChatBubble/formatChatTime.js +44 -42
- package/lib/components/ChatComposer/ChatComposer2.js +94 -94
- package/lib/components/CodeBlock/CodeBlock2.js +66 -66
- package/lib/components/CodeBlock/highlight.js +67 -70
- package/lib/components/ColorPicker/ColorPicker2.js +404 -405
- package/lib/components/ColorPicker/color.js +81 -81
- package/lib/components/ColorPicker/presets.js +44 -43
- package/lib/components/Combobox/Combobox2.js +128 -128
- package/lib/components/CommandMenu/CommandMenu.js +137 -137
- package/lib/components/Comment/Comment2.js +55 -80
- package/lib/components/ContextMenu/ContextMenu2.js +93 -94
- package/lib/components/DataGrid/DataGrid2.js +1181 -1180
- package/lib/components/DataGrid/GridPopover.js +112 -112
- package/lib/components/DataGrid/anchor.js +23 -25
- package/lib/components/DataGrid/model.js +274 -275
- package/lib/components/DataGrid/panels.js +423 -423
- package/lib/components/DataGrid/typeMeta.js +21 -22
- package/lib/components/DataGrid/types.js +38 -37
- package/lib/components/DescriptionList/DescriptionList2.js +107 -107
- package/lib/components/Dialog/AlertDialog.js +53 -53
- package/lib/components/Dialog/Dialog2.js +71 -70
- package/lib/components/Dialog/modal.js +59 -58
- package/lib/components/Drawer/Drawer2.js +123 -124
- package/lib/components/DropdownMenu/DropdownMenu2.js +198 -200
- package/lib/components/DropdownMenu/menuCore.js +46 -47
- package/lib/components/Dropzone/Dropzone2.js +77 -77
- package/lib/components/EmptyState/EmptyState2.js +57 -56
- package/lib/components/FileChip/FileChip2.js +71 -71
- package/lib/components/FileUpload/FileUpload.js +119 -119
- package/lib/components/FilterChips/FilterChips2.js +61 -61
- package/lib/components/FunnelChart/FunnelChart2.js +141 -141
- package/lib/components/FunnelChart/funnel.js +51 -51
- package/lib/components/Highlight/Highlight2.js +54 -54
- package/lib/components/HoverCard/HoverCard.js +108 -83
- package/lib/components/InlineDiff/InlineDiff2.js +126 -126
- package/lib/components/InlineDiff/diff.js +82 -82
- package/lib/components/InlineDiff/useDiffReview.js +62 -60
- package/lib/components/Kanban/Kanban2.js +382 -382
- package/lib/components/Kanban/KanbanCard.js +92 -92
- package/lib/components/Kanban/move.js +45 -49
- package/lib/components/LineChart/LineChart2.js +207 -207
- package/lib/components/List/List2.js +71 -71
- package/lib/components/Listbox/Listbox2.js +115 -115
- package/lib/components/Marker/Marker2.js +67 -60
- package/lib/components/Menubar/Menubar2.js +130 -133
- package/lib/components/MultiSelect/MultiSelect2.js +104 -104
- package/lib/components/NavigationMenu/NavigationMenu2.js +261 -262
- package/lib/components/NoticeStack/NoticeStack2.js +105 -105
- package/lib/components/NumberStepper/NumberStepper2.js +67 -67
- package/lib/components/OtpInput/OtpInput2.js +66 -67
- package/lib/components/Pagination/Pagination2.js +90 -90
- package/lib/components/Pagination/paginationRange.js +24 -24
- package/lib/components/PhoneInput/PhoneInput.js +74 -74
- package/lib/components/PieChart/PieChart2.js +119 -119
- package/lib/components/PieChart/arc.js +63 -42
- package/lib/components/PieChart/useArcTween.js +56 -54
- package/lib/components/Popover/Popover2.js +61 -61
- package/lib/components/ProgressTracker/ProgressTracker2.js +127 -127
- package/lib/components/Rating/Rating2.js +81 -81
- package/lib/components/Resizable/Resizable2.js +112 -110
- package/lib/components/Resizable/layout.js +50 -50
- package/lib/components/ScaledPreview/ScaledPreview2.js +49 -50
- package/lib/components/ScatterChart/ScatterChart2.js +226 -227
- package/lib/components/ScatterChart/scatter.js +59 -57
- package/lib/components/ScrollArea/ScrollArea2.js +112 -112
- package/lib/components/Select/Select2.js +79 -79
- package/lib/components/Sidebar/Sidebar2.js +79 -79
- package/lib/components/Skeleton/Skeleton2.js +68 -68
- package/lib/components/Slider/Slider2.js +78 -77
- package/lib/components/SocialLoginButton/SocialLoginButton.js +65 -66
- package/lib/components/SparkChart/SparkChart2.js +146 -145
- package/lib/components/SparkChart/spark.js +41 -67
- package/lib/components/Sparkbar/Sparkbar2.js +61 -60
- package/lib/components/SplitView/SplitView2.js +53 -53
- package/lib/components/Stat/Stat2.js +94 -94
- package/lib/components/StepList/StepList2.js +70 -70
- package/lib/components/Table/Table2.js +63 -63
- package/lib/components/Tabs/Tabs2.js +70 -70
- package/lib/components/TagInput/TagInput2.js +236 -239
- package/lib/components/TimePicker/TimePicker2.js +231 -232
- package/lib/components/TimePicker/time.js +63 -65
- package/lib/components/Timeline/Timeline2.js +167 -167
- package/lib/components/Timeline/scale.js +55 -55
- package/lib/components/Toast/Toaster.js +151 -152
- package/lib/components/Toast/store.js +90 -87
- package/lib/components/ToggleGroup/ToggleGroup2.js +91 -91
- package/lib/components/Toolbar/Toolbar2.js +145 -145
- package/lib/components/Tracker/Tracker2.js +76 -76
- package/lib/components/TreeDiagram/TreeDiagram2.js +112 -111
- package/lib/components/TreeView/TreeView2.js +124 -124
- package/lib/hooks/timing.js +30 -29
- package/lib/hooks/useControllableState.js +37 -36
- package/lib/hooks/useCountdown.js +56 -59
- package/lib/hooks/useDigitInput.js +52 -78
- package/lib/hooks/useDismiss.js +58 -57
- package/lib/hooks/useElapsed.js +54 -54
- package/lib/hooks/useFloating.js +26 -26
- package/lib/hooks/useFocusTrap.js +42 -42
- package/lib/hooks/usePresence.js +49 -48
- package/lib/hooks/usePressToOpen.js +42 -41
- package/lib/hooks/useScrollLock.js +45 -44
- package/lib/hooks/useSelection.js +45 -39
- package/lib/index.js +71 -71
- package/lib/primitives/AspectRatio2.js +60 -60
- package/lib/primitives/BrandIcon.js +161 -161
- package/lib/primitives/ColorDot2.js +42 -45
- package/lib/primitives/CopyButton2.js +57 -56
- package/lib/primitives/CountBadge2.js +55 -51
- package/lib/primitives/Countdown2.js +41 -46
- package/lib/primitives/Delta2.js +36 -36
- package/lib/primitives/Elapsed.js +49 -49
- package/lib/primitives/FileIcon2.js +96 -96
- package/lib/primitives/Flag2.js +135 -135
- package/lib/primitives/IconStack2.js +38 -60
- package/lib/primitives/IconTile2.js +28 -29
- package/lib/primitives/Kbd2.js +50 -50
- package/lib/primitives/Layout2.js +71 -71
- package/lib/primitives/Link2.js +32 -31
- package/lib/primitives/MaskedText2.js +49 -74
- package/lib/primitives/Progress2.js +65 -66
- package/lib/primitives/RelativeTime.js +58 -57
- package/lib/primitives/SearchInput2.js +65 -65
- package/lib/primitives/SelectorButton2.js +74 -73
- package/lib/primitives/Spinner2.js +50 -50
- package/lib/primitives/StatusIcon2.js +68 -68
- package/lib/primitives/Swatch2.js +59 -55
- package/lib/primitives/Tooltip2.js +81 -81
- package/lib/primitives/Typography2.js +53 -53
- package/lib/primitives/formatCountdown.js +21 -22
- package/lib/primitives/formatElapsed.js +43 -42
- package/lib/primitives/formatRelativeTime.js +50 -50
- package/lib/primitives/hotkey.js +82 -82
- package/lib/primitives/index.js +193 -174
- package/lib/primitives/maskValue.js +28 -28
- package/lib/style.css +1 -1
- package/lib/types/primitives/index.d.ts +6 -2
- package/package.json +1 -1
|
@@ -1,195 +1,195 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
const e =
|
|
2
|
+
const e = u;
|
|
3
3
|
(function(e, t) {
|
|
4
|
-
let n =
|
|
4
|
+
let n = u, r = e();
|
|
5
5
|
for (;;) try {
|
|
6
|
-
if (
|
|
6
|
+
if (parseInt(n(222)) / 1 + parseInt(n(256)) / 2 + -parseInt(n(258)) / 3 + parseInt(n(210)) / 4 * (-parseInt(n(206)) / 5) + -parseInt(n(245)) / 6 * (-parseInt(n(236)) / 7) + parseInt(n(216)) / 8 * (parseInt(n(220)) / 9) + parseInt(n(214)) / 10 == t) break;
|
|
7
7
|
r.push(r.shift());
|
|
8
8
|
} catch {
|
|
9
9
|
r.push(r.shift());
|
|
10
10
|
}
|
|
11
|
-
})(
|
|
11
|
+
})(d, 599795);
|
|
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";
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
import { useSelection as i } from "../../hooks/useSelection.js";
|
|
16
|
+
import { useDismiss as a } from "../../hooks/useDismiss.js";
|
|
17
|
+
import { Listbox as ee, ListboxPopover as o, firstEnabled as te, lastEnabled as ne, nextEnabled as s, optionId as re } from "../Listbox/Listbox2.js";
|
|
18
|
+
/* empty css */
|
|
19
|
+
import { useId as ie, useMemo as ae, useRef as c, useState as l } from "react";
|
|
20
|
+
function u(e, t) {
|
|
21
|
+
e -= 196;
|
|
22
|
+
let n = d(), r = n[e];
|
|
23
|
+
u.faFrkY === void 0 && (u.cFjwIP = function(e) {
|
|
19
24
|
let t = "", n = "";
|
|
20
25
|
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);
|
|
21
26
|
for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
|
|
22
27
|
return decodeURIComponent(n);
|
|
23
|
-
},
|
|
24
|
-
let
|
|
25
|
-
|
|
26
|
-
let
|
|
27
|
-
return
|
|
28
|
+
}, u.JmHrcZ = {}, u.faFrkY = !0);
|
|
29
|
+
let i = n[0];
|
|
30
|
+
u.zVebhr !== i && (u.JmHrcZ = {}, u.zVebhr = i);
|
|
31
|
+
let a = u.JmHrcZ[e];
|
|
32
|
+
return a === void 0 ? (r = u.cFjwIP(r), u.JmHrcZ[e] = r) : r = a, r;
|
|
28
33
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
/* empty css */
|
|
33
|
-
import { useId as ae, useMemo as oe, useRef as c, useState as l } from "react";
|
|
34
|
-
import { Check as u, ChevronDown as se, Plus as ce, X as d } from "lucide-react";
|
|
35
|
-
import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
36
|
-
function h() {
|
|
37
|
-
let e = /* @__PURE__ */ "Dg9Nz2XL.zhmTB3b0Aw9Ux19SywjLBa.zhmTy29TyM9IB3GTlw11BhrPCgXL.C2vSzwn0zwq.Aw5JBhvKzxm.mtKWmdeZnufNA1vfAq.Dg9mB3DLCKnHC2u.AwnVBG.C3rYB25N.zgvZy3jPChrPB24.y3vYCMvUDa.mtGWz3rYzhDN.C3rVCfbYB3bHz2f0Aw9U.BgLZDa.yNv0Dg9U.mtC0nZy0mvDereX6tW.zhmTB3b0Aw9Ux19JAgvJAY1IB3G.ChjLDMvUDerLzMf1Bhq.zM9JDxm.mZi0nJu4neTNEwPfCa.A2v5.AxndB21WB3nPBMC.Aw5WDxq.mta0ndqXnePivxDnzW.zhmTB3b0Aw9Ux19JAgvJAW.zgvMyxvSDfzHBhvL.lwXPC3q.DgfYz2v0.Bw91BNrLza.B25wywX1zunOyw5Nzq.C2XPy2u.C29Tzq.zhmTy29TyM9IB3GTlq.C3bHBG.nJKYn3HZzgzJtW.B2zM.zhmTy29TyM9IB3HFx3rHzW.zgL2.qMfJA3nWywnL.DhjPBq.7isG7yoDio2vToYGNa.zgLZywjSzwq.6Rka7ioj7zw07isCioYeOo2dNq.AxntzwXLy3rLza.y29TyM9IB3G.zhmTy29TyM9IB3HFx2nOzxzYB24.BMf0AxzLrxzLBNq.qxjYB3DvCa.BgfIzwW.oti4ntC2BM1SDeno.zhmTy29UDhjVBa.nMzbCefAzq.DMfSDwu.zhmTy29TyM9IB3G.qxjYB3DeB3DU.BxvSDgLWBgu.zMLSDgvY.y2XVC2LUzW.vgfI.zhmTB3b0Aw9Ux19Py29U.B25jBNb1DenOyw5Nzq.z2v0.zhmTB3b0Aw9Ux19KzxnJ.rxnJyxbL.C2v0u2vSzwn0zwq.mtu0mtG4Cfr0uNvs.BwfW.C2LUz2XL.BgvUz3rO".split(".");
|
|
38
|
-
return h = function() {
|
|
34
|
+
function d() {
|
|
35
|
+
let e = /* @__PURE__ */ "zM9JDxm.BMf0AxzLrxzLBNq.C2LUz2XL.mJuYv1D5DhDI.C2vSzwn0zwq.otyYntfuD2XTtMm.zgL2.7isG7yoDio2vToYGNa.C3bHBG.zhmTy29TyM9IB3G.Dg9mB3DLCKnHC2u.qxjYB3DvCa.zhmTB3b0Aw9Ux19KzxnJ.BwfYAW.BgfIzwW.DgfYz2v0.A2v5.yNv0Dg9U.rw50zxi.nZDwrgvLrwi.zgvMyxvSDfzHBhvL.BxvSDgLWBgu.zhmTB3b0Aw9Ux19SywjLBa.ioYGNoQXSa.zhmTy29TyM9IB3HFx3rHzW.C2XPy2u.qxjYB3DeB3DU.Bw91BNrLza.mZC2ndK0EMP3vfzw.C29Tzq.zhmTy29TyM9IB3HFx2LUChv0.Aw5WDxrwywX1zq.zhmTy29TyM9IB3HFx2nSzwfY.z2v0.zgLZywjSzwq.BgvUz3rO.B25wywX1zunOyw5Nzq.B2zM.BgLZDa.mty5otqZne5nr0j4yG.ChjLDMvUDerLzMf1Bhq.mtG3mdu2m3nbCfLKEa.zMLSDgvY.DMfSDwu.zhmTB3b0Aw9Ux19JAgvJAY1IB3G.Aw5KzxHpzG.4OczioY2LoQWGa.y29TyM9IB3G.6Rka7ioj7zw07isCioYeOo2dNq.y2XLyxi.BwfW.A2v5D29Yzhm.zhmTB3b0Aw9Ux19Py29U.zhmTB3b0Aw9Ux19JAgvJAW.y3vYCMvUDa.AwnVBG.C2v0u2vSzwn0zwq.mJuWmZeWvezKsMr3.Dg9Nz2XL.C3rVCfbYB3bHz2f0Aw9U.vgfI.otjPtuf3qu8.rxnJyxbL.CMvWBgfJzq.zgvZy3jPChrPB24.mJG1nZq3mgjHr2zRBW.zhmTy29UDhjVBa.mti5mZy4C0DVt0vQ".split(".");
|
|
36
|
+
return d = function() {
|
|
39
37
|
return e;
|
|
40
|
-
},
|
|
38
|
+
}, d();
|
|
41
39
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
40
|
+
import { Check as f, ChevronDown as oe, Plus as se, X as p } from "lucide-react";
|
|
41
|
+
import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
42
|
+
var _ = (t) => t.toLowerCase()[e(212)](/\s+/g, ""), v = (t, n) => {
|
|
43
|
+
let r = e, i = _(n);
|
|
44
|
+
return [t[r(231)], ...t[r(200)] ?? []][r(246)]((e) => _(e).includes(i));
|
|
45
45
|
};
|
|
46
|
-
function
|
|
47
|
-
let r = e, i = n ? t[r(
|
|
48
|
-
return i < 0 ?
|
|
49
|
-
t[r(
|
|
50
|
-
|
|
51
|
-
t[r(
|
|
46
|
+
function y({ text: t, query: n }) {
|
|
47
|
+
let r = e, i = n ? t[r(227)]()[r(262)](n[r(227)]()) : -1;
|
|
48
|
+
return i < 0 ? h(m, { children: t }) : g(m, { children: [
|
|
49
|
+
t[r(242)](0, i),
|
|
50
|
+
h(r(230), { children: t[r(242)](i, i + n[r(252)]) }),
|
|
51
|
+
t[r(242)](i + n[r(252)])
|
|
52
52
|
] });
|
|
53
53
|
}
|
|
54
|
-
function
|
|
55
|
-
let
|
|
54
|
+
function b(u) {
|
|
55
|
+
let d = e, { options: f, placeholder: y = d(197), size: b = "md", disabled: x, invalid: S, leading: C, filter: le = v, onCreate: w, createLabel: ue = (e) => g(m, { children: [
|
|
56
56
|
"‘",
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
] }), emptyText: de, highlight:
|
|
60
|
-
type:
|
|
61
|
-
value:
|
|
62
|
-
defaultValue:
|
|
63
|
-
onValueChange:
|
|
57
|
+
h("strong", { children: e }),
|
|
58
|
+
d(263)
|
|
59
|
+
] }), emptyText: de, highlight: fe = !0, renderOption: T, maxHeight: E, id: D, className: pe, "aria-label": O, "aria-labelledby": me } = u, k = ie() + "-list", A = i(u.multiple ? {
|
|
60
|
+
type: d(238),
|
|
61
|
+
value: u[d(260)],
|
|
62
|
+
defaultValue: u[d(237)],
|
|
63
|
+
onValueChange: u[d(253)]
|
|
64
64
|
} : {
|
|
65
|
-
type:
|
|
66
|
-
value:
|
|
67
|
-
defaultValue:
|
|
68
|
-
onValueChange:
|
|
69
|
-
}), j = A
|
|
65
|
+
type: d(219),
|
|
66
|
+
value: u[d(260)],
|
|
67
|
+
defaultValue: u[d(237)],
|
|
68
|
+
onValueChange: u[d(253)]
|
|
69
|
+
}), j = A[d(238)], [M, N] = n(u[d(248)], "", u.onInputChange), [P, F] = l(!1), [I, L] = l(!1), R = t(I), [z, B] = l(-1), V = c(null), H = c(null), U = c(null), he = ae(() => new Map(f[d(199)]((e) => [e[d(260)], e])), [f]), W = A[d(221)][d(199)]((e) => he[d(250)](e)).filter((e) => !!e), G = j || P, K = G ? M.trim() : "", q = K ? f[d(259)]((e) => le(e, K)) : f, J = !!w && !!K && !f[d(246)]((e) => _(e[d(231)]) === _(K)), Y = J ? [...q, { disabled: !1 }] : q, X = () => {
|
|
70
70
|
L(!1), F(!1), j || N("");
|
|
71
71
|
};
|
|
72
|
-
|
|
73
|
-
let Z = (e =
|
|
72
|
+
a(I, [V, U], X);
|
|
73
|
+
let Z = (e = te(Y)) => {
|
|
74
74
|
x || (B(e), L(!0));
|
|
75
75
|
}, Q = (e) => {
|
|
76
|
-
let t =
|
|
77
|
-
e[t(
|
|
76
|
+
let t = d;
|
|
77
|
+
e[t(251)] || (j ? (A.toggle(e.value), N(""), H.current?.[t(217)]()) : (A[t(205)]([e[t(260)]]), X()));
|
|
78
78
|
}, $ = () => {
|
|
79
79
|
w?.(K), N(""), j || X();
|
|
80
80
|
}, ge = J ? {
|
|
81
81
|
label: ue(K),
|
|
82
|
-
icon:
|
|
82
|
+
icon: h(se, {}),
|
|
83
83
|
onSelect: $
|
|
84
84
|
} : void 0, _e = () => {
|
|
85
|
-
z < 0 || (z < q
|
|
85
|
+
z < 0 || (z < q.length ? Q(q[z]) : J && $());
|
|
86
86
|
}, ve = (e) => {
|
|
87
|
-
let t =
|
|
88
|
-
if (!e[t(
|
|
89
|
-
case t(
|
|
90
|
-
e
|
|
87
|
+
let t = d;
|
|
88
|
+
if (!e[t(218)].isComposing) switch (e[t(233)]) {
|
|
89
|
+
case t(243):
|
|
90
|
+
e[t(257)](), I ? B(s(Y, z, 1)) : Z();
|
|
91
91
|
break;
|
|
92
|
-
case t(
|
|
93
|
-
e
|
|
92
|
+
case t(228):
|
|
93
|
+
e[t(257)](), I ? B(s(Y, z, -1)) : Z(ne(Y));
|
|
94
94
|
break;
|
|
95
|
-
case
|
|
95
|
+
case t(235):
|
|
96
96
|
I && (e.preventDefault(), _e());
|
|
97
97
|
break;
|
|
98
|
-
case t(
|
|
99
|
-
(I || P) && (e[t(
|
|
98
|
+
case t(211):
|
|
99
|
+
(I || P) && (e[t(257)](), X());
|
|
100
100
|
break;
|
|
101
|
-
case
|
|
102
|
-
j && !M && W[t(
|
|
101
|
+
case "Backspace":
|
|
102
|
+
j && !M && W[t(252)] && A[t(207)](W[W[t(252)] - 1][t(260)]);
|
|
103
103
|
break;
|
|
104
|
-
case t(
|
|
104
|
+
case t(209): I && X();
|
|
105
105
|
}
|
|
106
|
-
}, ye = G ? M : W[0]?.[
|
|
107
|
-
return m
|
|
106
|
+
}, ye = G ? M : W[0]?.[d(231)] ?? "";
|
|
107
|
+
return g(m, { children: [g(d(223), {
|
|
108
108
|
ref: V,
|
|
109
|
-
className: r(
|
|
109
|
+
className: r(d(215), d(226), b !== "md" && "ds-combobox--" + b, j && "ds-combobox--multiple", pe),
|
|
110
110
|
"data-open": I || void 0,
|
|
111
111
|
"data-invalid": S || void 0,
|
|
112
112
|
"data-disabled": x || void 0,
|
|
113
113
|
onPointerDown: (e) => {
|
|
114
|
-
let t =
|
|
115
|
-
x || e[t(
|
|
114
|
+
let t = d;
|
|
115
|
+
x || e[t(232)] === H[t(203)] || (e.preventDefault(), H[t(203)]?.focus(), I || Z());
|
|
116
116
|
},
|
|
117
117
|
children: [
|
|
118
|
-
C &&
|
|
118
|
+
C && h(d(225), {
|
|
119
119
|
className: "ds-combobox__icon",
|
|
120
120
|
children: C
|
|
121
121
|
}),
|
|
122
|
-
j && W
|
|
123
|
-
className:
|
|
124
|
-
children: [e
|
|
125
|
-
type:
|
|
122
|
+
j && W.map((e) => g(d(225), {
|
|
123
|
+
className: d(241),
|
|
124
|
+
children: [e.label, h("button", {
|
|
125
|
+
type: d(234),
|
|
126
126
|
tabIndex: -1,
|
|
127
|
-
"aria-label": e[
|
|
127
|
+
"aria-label": e[d(231)] + d(240),
|
|
128
128
|
disabled: x,
|
|
129
|
-
onPointerDown: (e) => e[
|
|
130
|
-
onClick: () => A[
|
|
131
|
-
children: p
|
|
129
|
+
onPointerDown: (e) => e[d(208)](),
|
|
130
|
+
onClick: () => A.toggle(e[d(260)]),
|
|
131
|
+
children: h(p, {})
|
|
132
132
|
})]
|
|
133
|
-
}, e
|
|
134
|
-
|
|
133
|
+
}, e.value)),
|
|
134
|
+
h("input", {
|
|
135
135
|
ref: H,
|
|
136
|
-
id:
|
|
137
|
-
role:
|
|
136
|
+
id: D,
|
|
137
|
+
role: d(196),
|
|
138
138
|
"aria-expanded": I,
|
|
139
139
|
"aria-controls": I ? k : void 0,
|
|
140
|
-
"aria-autocomplete":
|
|
141
|
-
"aria-activedescendant": I && z >= 0 ?
|
|
140
|
+
"aria-autocomplete": d(255),
|
|
141
|
+
"aria-activedescendant": I && z >= 0 ? re(k, z) : void 0,
|
|
142
142
|
"aria-invalid": S || void 0,
|
|
143
|
-
"aria-label":
|
|
144
|
-
"aria-labelledby":
|
|
145
|
-
autoComplete:
|
|
143
|
+
"aria-label": O,
|
|
144
|
+
"aria-labelledby": me,
|
|
145
|
+
autoComplete: d(254),
|
|
146
146
|
disabled: x,
|
|
147
|
-
className:
|
|
148
|
-
placeholder: j && W[
|
|
147
|
+
className: d(247),
|
|
148
|
+
placeholder: j && W[d(252)] ? "" : y,
|
|
149
149
|
value: ye,
|
|
150
150
|
onChange: (e) => {
|
|
151
|
-
let t =
|
|
152
|
-
N(e[t(
|
|
151
|
+
let t = d;
|
|
152
|
+
N(e[t(232)][t(260)]), F(!0), L(!0), B(e[t(232)][t(260)].trim() ? 0 : -1);
|
|
153
153
|
},
|
|
154
154
|
onFocus: () => !I && Z(-1),
|
|
155
155
|
onClick: () => !I && Z(-1),
|
|
156
156
|
onBlur: () => X(),
|
|
157
157
|
onKeyDown: ve
|
|
158
158
|
}),
|
|
159
|
-
!j && W
|
|
160
|
-
type:
|
|
159
|
+
!j && W[d(252)] > 0 && !P && !x && h(d(234), {
|
|
160
|
+
type: d(234),
|
|
161
161
|
tabIndex: -1,
|
|
162
|
-
className:
|
|
163
|
-
"aria-label":
|
|
162
|
+
className: d(249),
|
|
163
|
+
"aria-label": d(224),
|
|
164
164
|
onPointerDown: (e) => {
|
|
165
|
-
let t =
|
|
166
|
-
e[t(
|
|
165
|
+
let t = d;
|
|
166
|
+
e[t(257)](), e[t(208)]();
|
|
167
167
|
},
|
|
168
|
-
onClick: () => A
|
|
169
|
-
children: p
|
|
168
|
+
onClick: () => A[d(198)](),
|
|
169
|
+
children: h(p, {})
|
|
170
170
|
}),
|
|
171
|
-
|
|
171
|
+
h(oe, { className: "ds-combobox__chevron" })
|
|
172
172
|
]
|
|
173
|
-
}), R[
|
|
173
|
+
}), R[d(244)] && h(o, {
|
|
174
174
|
ref: U,
|
|
175
|
-
closing: R
|
|
175
|
+
closing: R.closing,
|
|
176
176
|
anchorRef: V,
|
|
177
|
-
maxHeight:
|
|
178
|
-
children:
|
|
177
|
+
maxHeight: E,
|
|
178
|
+
children: h(ee, {
|
|
179
179
|
id: k,
|
|
180
180
|
options: q,
|
|
181
181
|
activeIndex: z,
|
|
182
|
-
isSelected: A
|
|
182
|
+
isSelected: A.isSelected,
|
|
183
183
|
onSelect: Q,
|
|
184
184
|
onActiveChange: B,
|
|
185
185
|
multiple: j,
|
|
186
186
|
action: ge,
|
|
187
187
|
emptyText: de,
|
|
188
|
-
"aria-label":
|
|
189
|
-
renderOption:
|
|
188
|
+
"aria-label": O,
|
|
189
|
+
renderOption: T ? (e, t) => T(e, {
|
|
190
190
|
...t,
|
|
191
191
|
query: K
|
|
192
|
-
}) :
|
|
192
|
+
}) : fe && K ? (e, t) => h(ce, {
|
|
193
193
|
option: e,
|
|
194
194
|
state: t,
|
|
195
195
|
query: K,
|
|
@@ -198,32 +198,32 @@ function y(i) {
|
|
|
198
198
|
})
|
|
199
199
|
})] });
|
|
200
200
|
}
|
|
201
|
-
function
|
|
201
|
+
function ce({ option: t, state: n, query: r, multiple: i }) {
|
|
202
202
|
let a = e;
|
|
203
|
-
return m
|
|
204
|
-
i &&
|
|
205
|
-
className: a(
|
|
206
|
-
"data-checked": n[a(
|
|
207
|
-
children:
|
|
203
|
+
return g(m, { children: [
|
|
204
|
+
i && h("span", {
|
|
205
|
+
className: a(261),
|
|
206
|
+
"data-checked": n[a(221)] || void 0,
|
|
207
|
+
children: h(f, {})
|
|
208
208
|
}),
|
|
209
|
-
t
|
|
210
|
-
className: a(
|
|
211
|
-
children: t[a(
|
|
209
|
+
t.icon && h(a(225), {
|
|
210
|
+
className: a(201),
|
|
211
|
+
children: t[a(204)]
|
|
212
212
|
}),
|
|
213
|
-
|
|
213
|
+
g("span", {
|
|
214
214
|
className: "ds-option__text",
|
|
215
|
-
children: [
|
|
216
|
-
className: a(
|
|
217
|
-
children:
|
|
218
|
-
text: t[a(
|
|
215
|
+
children: [h(a(225), {
|
|
216
|
+
className: a(239),
|
|
217
|
+
children: h(y, {
|
|
218
|
+
text: t[a(231)],
|
|
219
219
|
query: r
|
|
220
220
|
})
|
|
221
|
-
}), t[a(
|
|
222
|
-
className: a(
|
|
223
|
-
children: t
|
|
221
|
+
}), t[a(213)] && h(a(225), {
|
|
222
|
+
className: a(229),
|
|
223
|
+
children: t[a(213)]
|
|
224
224
|
})]
|
|
225
225
|
}),
|
|
226
|
-
!i && n[a(
|
|
226
|
+
!i && n[a(221)] && h(f, { className: a(202) })
|
|
227
227
|
] });
|
|
228
228
|
}
|
|
229
|
-
export {
|
|
229
|
+
export { b as Combobox, v as defaultComboboxFilter };
|