@iamfiro/design 0.3.2 → 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/INDEX.md +1 -1
- package/agents/app-shell/AGENTS.md +99 -1
- package/agents/brand-icon/AGENTS.md +1 -1
- package/agents/social-login-button/AGENTS.md +4 -3
- package/lib/components/Accordion/Accordion2.js +74 -74
- package/lib/components/ActionBar/ActionBar2.js +44 -42
- package/lib/components/Alert/Alert2.js +67 -67
- package/lib/components/AppShell/AppShell2.js +72 -66
- package/lib/components/AreaChart/AreaChart.js +45 -45
- package/lib/components/BarChart/BarChart2.js +128 -128
- package/lib/components/BarList/BarList2.js +105 -105
- package/lib/components/Breadcrumb/Breadcrumb2.js +63 -64
- package/lib/components/Calendar/Calendar2.js +197 -197
- package/lib/components/Calendar/DatePicker2.js +100 -100
- package/lib/components/Calendar/date.js +47 -70
- package/lib/components/Card/Card2.js +101 -74
- package/lib/components/CardFrame/CardFrame2.js +52 -56
- package/lib/components/Chart/ChartParts.js +88 -88
- package/lib/components/Chart/chart2.js +63 -63
- package/lib/components/Chart/useChartInteraction.js +43 -43
- package/lib/components/ChatBubble/ChatBubble2.js +111 -111
- package/lib/components/ChatBubble/formatChatTime.js +38 -43
- package/lib/components/ChatComposer/ChatComposer2.js +96 -96
- package/lib/components/CodeBlock/CodeBlock2.js +65 -65
- package/lib/components/CodeBlock/highlight.js +84 -84
- package/lib/components/ColorPicker/ColorPicker2.js +263 -263
- package/lib/components/ColorPicker/color.js +92 -92
- package/lib/components/ColorPicker/presets.js +35 -39
- package/lib/components/Combobox/Combobox2.js +134 -134
- package/lib/components/CommandMenu/CommandMenu.js +130 -131
- package/lib/components/Comment/Comment2.js +64 -63
- package/lib/components/ContextMenu/ContextMenu2.js +84 -84
- package/lib/components/DataGrid/DataGrid2.js +1182 -1180
- package/lib/components/DataGrid/GridPopover.js +84 -84
- package/lib/components/DataGrid/anchor.js +29 -28
- package/lib/components/DataGrid/model.js +308 -307
- package/lib/components/DataGrid/panels.js +398 -399
- package/lib/components/DataGrid/typeMeta.js +41 -40
- package/lib/components/DataGrid/types.js +39 -40
- package/lib/components/DescriptionList/DescriptionList2.js +105 -105
- package/lib/components/Dialog/AlertDialog.js +90 -89
- package/lib/components/Dialog/Dialog2.js +71 -72
- package/lib/components/Dialog/modal.js +62 -60
- package/lib/components/Drawer/Drawer2.js +167 -166
- package/lib/components/DropdownMenu/DropdownMenu2.js +260 -258
- package/lib/components/DropdownMenu/menuCore.js +29 -28
- package/lib/components/Dropzone/Dropzone2.js +78 -77
- package/lib/components/EmptyState/EmptyState2.js +57 -57
- package/lib/components/FileChip/FileChip2.js +53 -77
- package/lib/components/FileUpload/FileUpload.js +168 -167
- package/lib/components/FilterChips/FilterChips2.js +60 -60
- package/lib/components/FunnelChart/FunnelChart2.js +174 -174
- package/lib/components/FunnelChart/funnel.js +44 -42
- package/lib/components/Highlight/Highlight2.js +55 -55
- package/lib/components/HoverCard/HoverCard.js +71 -96
- package/lib/components/InlineDiff/InlineDiff2.js +128 -129
- package/lib/components/InlineDiff/diff.js +79 -79
- package/lib/components/InlineDiff/useDiffReview.js +61 -62
- package/lib/components/Kanban/Kanban2.js +387 -389
- package/lib/components/Kanban/KanbanCard.js +84 -84
- package/lib/components/Kanban/move.js +32 -25
- package/lib/components/LineChart/LineChart2.js +228 -228
- package/lib/components/List/List2.js +62 -62
- package/lib/components/Listbox/Listbox2.js +92 -92
- package/lib/components/Marker/Marker2.js +50 -56
- package/lib/components/Menubar/Menubar2.js +117 -116
- package/lib/components/MultiSelect/MultiSelect2.js +111 -111
- package/lib/components/NavigationMenu/NavigationMenu2.js +231 -231
- package/lib/components/NoticeStack/NoticeStack2.js +99 -99
- package/lib/components/NumberStepper/NumberStepper2.js +60 -60
- package/lib/components/OtpInput/OtpInput2.js +90 -89
- package/lib/components/Pagination/Pagination2.js +105 -105
- package/lib/components/Pagination/paginationRange.js +37 -37
- package/lib/components/PhoneInput/PhoneInput.js +75 -76
- package/lib/components/PieChart/PieChart2.js +166 -166
- package/lib/components/PieChart/arc.js +71 -69
- package/lib/components/PieChart/useArcTween.js +60 -62
- package/lib/components/Popover/Popover2.js +85 -86
- package/lib/components/ProgressTracker/ProgressTracker2.js +134 -134
- package/lib/components/Rating/Rating2.js +90 -89
- package/lib/components/Resizable/Resizable2.js +128 -129
- package/lib/components/Resizable/layout.js +51 -51
- package/lib/components/ScaledPreview/ScaledPreview2.js +49 -48
- package/lib/components/ScatterChart/ScatterChart2.js +214 -213
- package/lib/components/ScatterChart/scatter.js +49 -52
- package/lib/components/ScrollArea/ScrollArea2.js +115 -117
- package/lib/components/Select/Select2.js +82 -82
- package/lib/components/Sidebar/Sidebar2.js +91 -85
- package/lib/components/Sidebar/rail.js +43 -0
- package/lib/components/Skeleton/Skeleton2.js +63 -64
- package/lib/components/Slider/Slider2.js +65 -66
- package/lib/components/SocialLoginButton/SocialLoginButton.js +76 -69
- package/lib/components/SparkChart/SparkChart2.js +126 -127
- package/lib/components/SparkChart/spark.js +66 -42
- package/lib/components/Sparkbar/Sparkbar2.js +60 -60
- package/lib/components/SplitView/SplitView2.js +51 -51
- package/lib/components/Stat/Stat2.js +79 -79
- package/lib/components/StepList/StepList2.js +75 -75
- package/lib/components/Table/Table2.js +71 -71
- package/lib/components/Tabs/Tabs2.js +74 -74
- package/lib/components/TagInput/TagInput2.js +223 -221
- package/lib/components/TimePicker/TimePicker2.js +197 -195
- package/lib/components/TimePicker/time.js +59 -56
- package/lib/components/Timeline/Timeline2.js +195 -195
- package/lib/components/Timeline/scale.js +64 -66
- package/lib/components/Toast/Toaster.js +139 -139
- package/lib/components/Toast/store.js +72 -76
- package/lib/components/ToggleGroup/ToggleGroup2.js +79 -79
- package/lib/components/Toolbar/Toolbar2.js +165 -164
- package/lib/components/Tracker/Tracker2.js +72 -72
- package/lib/components/TreeDiagram/TreeDiagram2.js +96 -97
- package/lib/components/TreeView/TreeView2.js +152 -151
- package/lib/hooks/timing.js +34 -36
- package/lib/hooks/useControllableState.js +29 -30
- package/lib/hooks/useCountdown.js +51 -53
- package/lib/hooks/useDigitInput.js +81 -55
- package/lib/hooks/useDismiss.js +53 -56
- package/lib/hooks/useElapsed.js +48 -49
- package/lib/hooks/useFloating.js +36 -36
- package/lib/hooks/useFocusTrap.js +32 -32
- package/lib/hooks/usePresence.js +49 -49
- package/lib/hooks/usePressToOpen.js +40 -40
- package/lib/hooks/useScrollLock.js +50 -49
- package/lib/hooks/useSelection.js +42 -47
- package/lib/index.js +138 -139
- package/lib/primitives/AspectRatio2.js +58 -57
- package/lib/primitives/BrandIcon.js +210 -179
- package/lib/primitives/ColorDot2.js +42 -41
- package/lib/primitives/CopyButton2.js +59 -58
- package/lib/primitives/CountBadge2.js +58 -63
- package/lib/primitives/Countdown2.js +38 -37
- package/lib/primitives/Delta2.js +37 -37
- package/lib/primitives/Elapsed.js +42 -40
- package/lib/primitives/FileIcon2.js +102 -102
- package/lib/primitives/Flag2.js +124 -124
- package/lib/primitives/IconStack2.js +45 -23
- package/lib/primitives/IconTile2.js +45 -41
- package/lib/primitives/Kbd2.js +48 -48
- package/lib/primitives/Layout2.js +71 -71
- package/lib/primitives/Link2.js +40 -42
- package/lib/primitives/MaskedText2.js +50 -50
- package/lib/primitives/Progress2.js +78 -77
- package/lib/primitives/RelativeTime.js +55 -58
- package/lib/primitives/SearchInput2.js +72 -68
- package/lib/primitives/SelectorButton2.js +60 -61
- package/lib/primitives/Spinner2.js +48 -49
- package/lib/primitives/StatusIcon2.js +69 -69
- package/lib/primitives/Swatch2.js +65 -69
- package/lib/primitives/Tooltip2.js +92 -92
- package/lib/primitives/Typography2.js +37 -37
- package/lib/primitives/formatCountdown.js +38 -38
- package/lib/primitives/formatElapsed.js +43 -45
- package/lib/primitives/formatRelativeTime.js +54 -54
- package/lib/primitives/hotkey.js +77 -77
- package/lib/primitives/index.js +162 -161
- package/lib/primitives/maskValue.js +54 -51
- 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/SocialLoginButton/SocialLoginButton.d.ts +1 -1
- package/lib/types/components/index.d.ts +1 -0
- package/lib/types/primitives/BrandIcon.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,195 +1,195 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
const e =
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
const e = t;
|
|
3
|
+
function t(e, n) {
|
|
4
|
+
e -= 306;
|
|
5
|
+
let r = d(), i = r[e];
|
|
6
|
+
t.oPmFvI === void 0 && (t.lKouTI = function(e) {
|
|
7
|
+
let t = "", n = "";
|
|
8
|
+
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);
|
|
9
|
+
for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
|
|
10
|
+
return decodeURIComponent(n);
|
|
11
|
+
}, t.bBiHmD = {}, t.oPmFvI = !0);
|
|
12
|
+
let a = r[0];
|
|
13
|
+
t.xqPagU !== a && (t.bBiHmD = {}, t.xqPagU = a);
|
|
14
|
+
let o = t.bBiHmD[e];
|
|
15
|
+
return o === void 0 ? (i = t.lKouTI(i), t.bBiHmD[e] = i) : i = o, i;
|
|
16
|
+
}
|
|
17
|
+
(function(e, n) {
|
|
18
|
+
let r = t, i = e();
|
|
5
19
|
for (;;) try {
|
|
6
|
-
if (
|
|
7
|
-
|
|
20
|
+
if (parseInt(r(306)) / 1 + -parseInt(r(321)) / 2 + parseInt(r(347)) / 3 * (-parseInt(r(336)) / 4) + -parseInt(r(362)) / 5 * (parseInt(r(361)) / 6) + parseInt(r(355)) / 7 * (parseInt(r(366)) / 8) + -parseInt(r(310)) / 9 + parseInt(r(357)) / 10 * (parseInt(r(365)) / 11) == n) break;
|
|
21
|
+
i.push(i.shift());
|
|
8
22
|
} catch {
|
|
9
|
-
|
|
23
|
+
i.push(i.shift());
|
|
10
24
|
}
|
|
11
|
-
})(
|
|
12
|
-
import { usePresence as
|
|
13
|
-
import { useControllableState as
|
|
14
|
-
import { cx as
|
|
15
|
-
import { useDismiss as
|
|
16
|
-
import { usePressToOpen as
|
|
17
|
-
import { Listbox as ee, ListboxPopover as
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
25
|
+
})(d, 515984);
|
|
26
|
+
import { usePresence as n } from "../../hooks/usePresence.js";
|
|
27
|
+
import { useControllableState as r } from "../../hooks/useControllableState.js";
|
|
28
|
+
import { cx as i } from "../../primitives/index.js";
|
|
29
|
+
import { useDismiss as a } from "../../hooks/useDismiss.js";
|
|
30
|
+
import { usePressToOpen as o } from "../../hooks/usePressToOpen.js";
|
|
31
|
+
import { Listbox as ee, ListboxPopover as s, firstEnabled as c, lastEnabled as l, nextEnabled as u, optionId as te } from "../Listbox/Listbox2.js";
|
|
32
|
+
/* empty css */
|
|
33
|
+
function d() {
|
|
34
|
+
let e = /* @__PURE__ */ "BgvUz3rO.mtK3nZmXmgDrrfnlyq.zxzLCNK.zgL2.Aw5JBhvKzxm.nduWnMv2ELLczW.nduZnxrPrvPjBa.Bw91BNrLza.zhmTB3b0Aw9Ux190zxH0.ntvvA2zHEgu.mJu4nJrIqKrruMy.nZa4ndC1r05nAfDQ.C3rVCfbYB3bHz2f0Aw9U.BgfIzwW.ChjLDMvUDerLzMf1Bhq.nJm3otaYowjhB0jyrq.zgLZywjSzwq.AgLKzgvU.DgfNCW.zhmTBxvSDgLZzwXLy3rFx2fSBc1JB3vUDa.Dg9mB3DLCKnHC2u.zhmTBxvSDgLZzwXLy3q.y3vYCMvUDa.zhmTC2vSzwn0lxrYAwDNzxiTlq.BgLZDgjVEa.Dgv4Da.mJuXmZKYuxnMB1n6.y29TyM9IB3G.y291BNq.Bwv0yuTLEq.zMLUza.zhmTBxvSDgLZzwXLy3rFx3rHzW.lwXPC3q.rxnJyxbL.A2v5.qMfJA3nWywnL.C29Tzq.zhmTBxvSDgLZzwXLy3rFx2fSBa.Aw5KzxHpzG.sg9Tzq.y2XVC2LUzW.ngjHsfvxuq.ioYGNoQXSa.zhmTC2vSzwn0lxrYAwDNzxjFx2nOzxzYB24.C3bHBG.vgfI.qxjYB3DeB3DU.B25qB2LUDgvYrg93BG.yNv0Dg9U.C3rHCNrZv2L0Aa.DMfSDwu.C2XPy2u.mJi4mZa5tgj6rMvj.BwfW.y3rYBeTLEq.zhmTBxvSDgLZzwXLy3rFx3jLBw92zq.zMLSDgvY.ywX0s2v5.zhmTC2vSzwn0lxrYAwDNzxjFx2LJB24.Aw5WDxq.odG5BuDxB0vu".split(".");
|
|
35
|
+
return d = function() {
|
|
21
36
|
return e;
|
|
22
|
-
},
|
|
37
|
+
}, d();
|
|
23
38
|
}
|
|
24
|
-
/* empty css */
|
|
25
39
|
/* empty css */
|
|
26
|
-
function d(e, t) {
|
|
27
|
-
e -= 114;
|
|
28
|
-
let n = u(), r = n[e];
|
|
29
|
-
d.CGFLml === void 0 && (d.qYRbKK = function(e) {
|
|
30
|
-
let t = "", n = "";
|
|
31
|
-
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);
|
|
32
|
-
for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
|
|
33
|
-
return decodeURIComponent(n);
|
|
34
|
-
}, d.UVLIaD = {}, d.CGFLml = !0);
|
|
35
|
-
let i = n[0];
|
|
36
|
-
d.sbIjJo !== i && (d.UVLIaD = {}, d.sbIjJo = i);
|
|
37
|
-
let a = d.UVLIaD[e];
|
|
38
|
-
return a === void 0 ? (r = d.qYRbKK(r), d.UVLIaD[e] = r) : r = a, r;
|
|
39
|
-
}
|
|
40
40
|
import { useId as ne, useRef as f, useState as p } from "react";
|
|
41
41
|
import { Check as m, ChevronDown as h, Minus as g, X as re } from "lucide-react";
|
|
42
42
|
import { Fragment as ie, jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
43
|
-
function y({ options:
|
|
44
|
-
let k = e, A = ne() +
|
|
43
|
+
function y({ options: t, value: d, defaultValue: y = [], onValueChange: ae, open: oe, onOpenChange: se, placeholder: ce = "선택하세요", size: b = "md", disabled: x, invalid: S, leading: C, display: w = e(313), maxTags: le = 2, selectAll: T, selectAllLabel: E = "전체 선택", formatCount: ue = (e) => e + "개 선택됨", name: D, id: de, className: fe, maxHeight: pe, renderOption: me, "aria-label": O, "aria-labelledby": he }) {
|
|
44
|
+
let k = e, A = ne() + k(327), [j, M] = r(d, y, ae), [N, P] = r(oe, !1, se), F = n(N), [I, L] = p(-1), R = f(null), z = f(null), B = f({
|
|
45
45
|
text: "",
|
|
46
46
|
at: 0
|
|
47
47
|
});
|
|
48
|
-
|
|
49
|
-
let V = (e) => j[k(
|
|
48
|
+
a(N, [R, z], () => P(!1));
|
|
49
|
+
let V = (e) => j[k(360)](e), H = (e) => M(t[k(351)]((t) => e[k(360)](t.value))[k(348)]((e) => e.value)), U = (e) => {
|
|
50
50
|
let t = k;
|
|
51
|
-
e
|
|
52
|
-
}, W =
|
|
53
|
-
let e = k,
|
|
54
|
-
H(G ?
|
|
51
|
+
e.disabled || H(V(e[t(345)]) ? j.filter((n) => n !== e[t(345)]) : [...j, e.value]);
|
|
52
|
+
}, W = t.filter((e) => !e[k(311)]), G = W.length > 0 && W[k(358)]((e) => V(e[k(345)])), K = !G && W[k(331)]((e) => V(e[k(345)])), q = () => {
|
|
53
|
+
let e = k, n = j.filter((n) => t[e(325)]((t) => t[e(345)] === n)?.[e(311)]);
|
|
54
|
+
H(G ? n : [...n, ...W.map((t) => t[e(345)])]);
|
|
55
55
|
}, J = () => {
|
|
56
|
-
L(
|
|
57
|
-
}, Y =
|
|
56
|
+
L(c(t)), P(!0);
|
|
57
|
+
}, Y = o({
|
|
58
58
|
open: N,
|
|
59
59
|
onOpen: J,
|
|
60
60
|
onClose: () => P(!1),
|
|
61
61
|
panelRef: z,
|
|
62
|
-
onRelease: (e) =>
|
|
62
|
+
onRelease: (e) => t[e] && U(t[e]),
|
|
63
63
|
disabled: x
|
|
64
64
|
}), X = (e) => {
|
|
65
|
-
let
|
|
66
|
-
|
|
67
|
-
let
|
|
68
|
-
|
|
65
|
+
let n = k, r = Date.now(), i = B[n(317)];
|
|
66
|
+
i.text = r - i.at > 600 ? e : i[n(320)] + e, i.at = r;
|
|
67
|
+
let a = i.text[n(315)](), o = [...t[n(346)](I + 1), ...t.slice(0, I + 1)][n(325)]((e) => !e.disabled && e.label.toLowerCase()[n(344)](a));
|
|
68
|
+
o && (N || P(!0), L(t[n(333)](o)));
|
|
69
69
|
}, ge = (e) => {
|
|
70
|
-
let
|
|
71
|
-
switch (e
|
|
72
|
-
case
|
|
73
|
-
e.preventDefault(), N ? L(
|
|
70
|
+
let n = k;
|
|
71
|
+
switch (e.key) {
|
|
72
|
+
case n(341):
|
|
73
|
+
e.preventDefault(), N ? L(u(t, I, 1)) : J();
|
|
74
74
|
break;
|
|
75
|
-
case
|
|
76
|
-
e
|
|
75
|
+
case "ArrowUp":
|
|
76
|
+
e[n(309)](), N ? L(u(t, I, -1)) : (L(l(t)), P(!0));
|
|
77
77
|
break;
|
|
78
|
-
case
|
|
79
|
-
case
|
|
78
|
+
case n(334):
|
|
79
|
+
case "End":
|
|
80
80
|
if (!N) break;
|
|
81
|
-
e[
|
|
81
|
+
e[n(309)](), L(e.key === n(334) ? c(t) : l(t));
|
|
82
82
|
break;
|
|
83
|
-
case
|
|
83
|
+
case "Enter":
|
|
84
84
|
case " ":
|
|
85
|
-
if (e[
|
|
86
|
-
e
|
|
85
|
+
if (e[n(329)] === " " && Date.now() - B[n(317)].at < 600) {
|
|
86
|
+
e[n(309)](), X(" ");
|
|
87
87
|
break;
|
|
88
88
|
}
|
|
89
|
-
e
|
|
89
|
+
e[n(309)](), N ? I >= 0 && U(t[I]) : J();
|
|
90
90
|
break;
|
|
91
|
-
case
|
|
92
|
-
N && (e[
|
|
91
|
+
case n(328):
|
|
92
|
+
N && (e[n(309)](), P(!1));
|
|
93
93
|
break;
|
|
94
|
-
case
|
|
94
|
+
case n(340):
|
|
95
95
|
N && P(!1);
|
|
96
96
|
break;
|
|
97
|
-
case
|
|
98
|
-
!N && j[
|
|
97
|
+
case n(330):
|
|
98
|
+
!N && j[n(356)] && H(j[n(346)](0, -1));
|
|
99
99
|
break;
|
|
100
|
-
default: (e[
|
|
100
|
+
default: (e[n(324)] || e[n(349)]) && e[n(329)][n(315)]() === "a" && N && T ? (e[n(309)](), q()) : e[n(329)][n(356)] !== 1 || e.ctrlKey || e[n(324)] || e[n(352)] || X(e[n(329)]);
|
|
101
101
|
}
|
|
102
|
-
}, Z =
|
|
102
|
+
}, Z = t[k(351)]((e) => V(e.value)), Q = w === k(313) ? Z[k(346)](0, le) : [], $ = Z.length - Q[k(356)];
|
|
103
103
|
return v(ie, { children: [
|
|
104
|
-
v(k(
|
|
104
|
+
v(k(343), {
|
|
105
105
|
ref: R,
|
|
106
106
|
id: de,
|
|
107
|
-
type:
|
|
108
|
-
role: k(
|
|
109
|
-
"aria-haspopup": k(
|
|
107
|
+
type: "button",
|
|
108
|
+
role: k(322),
|
|
109
|
+
"aria-haspopup": k(319),
|
|
110
110
|
"aria-expanded": N,
|
|
111
111
|
"aria-controls": N ? A : void 0,
|
|
112
|
-
"aria-activedescendant": N && I >= 0 ?
|
|
112
|
+
"aria-activedescendant": N && I >= 0 ? te(A, I) : void 0,
|
|
113
113
|
"aria-invalid": S || void 0,
|
|
114
114
|
"aria-label": O,
|
|
115
115
|
"aria-labelledby": he,
|
|
116
116
|
disabled: x,
|
|
117
|
-
className:
|
|
117
|
+
className: i("ds-control", "ds-select-trigger", k(316), b !== "md" && k(318) + b, fe),
|
|
118
118
|
"data-open": N || void 0,
|
|
119
119
|
"data-invalid": S || void 0,
|
|
120
120
|
"data-disabled": x || void 0,
|
|
121
|
-
"data-placeholder": !Z[k(
|
|
122
|
-
"data-tags": w === k(
|
|
123
|
-
onPointerDown: Y
|
|
124
|
-
onClick: Y
|
|
121
|
+
"data-placeholder": !Z[k(356)] || void 0,
|
|
122
|
+
"data-tags": w === k(313) && Z.length > 0 || void 0,
|
|
123
|
+
onPointerDown: Y[k(342)],
|
|
124
|
+
onClick: Y.onClick,
|
|
125
125
|
onKeyDown: ge,
|
|
126
126
|
children: [
|
|
127
|
-
C && _(
|
|
128
|
-
className: k(
|
|
127
|
+
C && _("span", {
|
|
128
|
+
className: k(353),
|
|
129
129
|
children: C
|
|
130
130
|
}),
|
|
131
|
-
v(k(
|
|
132
|
-
className:
|
|
131
|
+
v(k(339), {
|
|
132
|
+
className: "ds-select-trigger__value ds-multiselect__value",
|
|
133
133
|
children: [
|
|
134
|
-
!Z[k(
|
|
135
|
-
w === k(
|
|
136
|
-
Q
|
|
137
|
-
className:
|
|
138
|
-
children: [e
|
|
139
|
-
role: k(
|
|
140
|
-
"aria-label": e
|
|
141
|
-
className: k(
|
|
142
|
-
onPointerDown: (e) => e[k(
|
|
134
|
+
!Z[k(356)] && ce,
|
|
135
|
+
w === k(323) && Z[k(356)] > 0 && ue(Z[k(356)]),
|
|
136
|
+
Q.map((e) => v(k(339), {
|
|
137
|
+
className: k(326),
|
|
138
|
+
children: [e[k(308)], !x && _("span", {
|
|
139
|
+
role: k(343),
|
|
140
|
+
"aria-label": e.label + k(337),
|
|
141
|
+
className: k(350),
|
|
142
|
+
onPointerDown: (e) => e[k(307)](),
|
|
143
143
|
onClick: (t) => {
|
|
144
|
-
t[k(
|
|
144
|
+
t[k(307)](), U(e);
|
|
145
145
|
},
|
|
146
146
|
children: _(re, {})
|
|
147
147
|
})]
|
|
148
|
-
}, e
|
|
149
|
-
$ > 0 && w ===
|
|
150
|
-
className:
|
|
148
|
+
}, e.value)),
|
|
149
|
+
$ > 0 && w === "tags" && v(k(339), {
|
|
150
|
+
className: "ds-multiselect__more",
|
|
151
151
|
children: ["+", $]
|
|
152
152
|
})
|
|
153
153
|
]
|
|
154
154
|
}),
|
|
155
|
-
_(h, { className:
|
|
155
|
+
_(h, { className: k(338) })
|
|
156
156
|
]
|
|
157
157
|
}),
|
|
158
|
-
D && j[k(
|
|
159
|
-
type: k(
|
|
158
|
+
D && j[k(348)]((e) => _(k(354), {
|
|
159
|
+
type: k(312),
|
|
160
160
|
name: D,
|
|
161
161
|
value: e
|
|
162
162
|
}, e)),
|
|
163
|
-
F[k(
|
|
163
|
+
F[k(363)] && v(s, {
|
|
164
164
|
ref: z,
|
|
165
|
-
closing: F[k(
|
|
165
|
+
closing: F[k(335)],
|
|
166
166
|
anchorRef: R,
|
|
167
167
|
maxHeight: pe,
|
|
168
|
-
children: [T && W[k(
|
|
169
|
-
className: k(
|
|
168
|
+
children: [T && W[k(356)] > 0 && v(k(359), {
|
|
169
|
+
className: k(332),
|
|
170
170
|
onClick: q,
|
|
171
171
|
children: [
|
|
172
|
-
_(
|
|
173
|
-
className:
|
|
172
|
+
_("span", {
|
|
173
|
+
className: "ds-option__check-box",
|
|
174
174
|
"data-checked": G || K || void 0,
|
|
175
175
|
children: _(K ? g : m, {})
|
|
176
176
|
}),
|
|
177
|
-
_(k(
|
|
178
|
-
className:
|
|
179
|
-
children:
|
|
177
|
+
_(k(339), {
|
|
178
|
+
className: k(364),
|
|
179
|
+
children: E
|
|
180
180
|
}),
|
|
181
|
-
v(k(
|
|
182
|
-
className: k(
|
|
181
|
+
v(k(339), {
|
|
182
|
+
className: k(314),
|
|
183
183
|
children: [
|
|
184
|
-
Z
|
|
184
|
+
Z.length,
|
|
185
185
|
"/",
|
|
186
|
-
|
|
186
|
+
t.length
|
|
187
187
|
]
|
|
188
188
|
})
|
|
189
189
|
]
|
|
190
190
|
}), _(ee, {
|
|
191
191
|
id: A,
|
|
192
|
-
options:
|
|
192
|
+
options: t,
|
|
193
193
|
activeIndex: I,
|
|
194
194
|
isSelected: V,
|
|
195
195
|
onSelect: U,
|