@konstructio/ui 0.1.2-alpha.2 → 0.1.2-alpha.21
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/dist/{Modal-V67Uz78z.js → Modal-B8jrP02v.js} +20 -20
- package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
- package/dist/{chevron-down-BLZPftpV.js → chevron-down-J5nS1Tu0.js} +2 -2
- package/dist/chevron-right-DeMVrnIg.js +19 -0
- package/dist/components/Alert/Alert.js +2 -2
- package/dist/components/AlertDialog/AlertDialog.js +1 -1
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/Badge/Badge.js +31 -28
- package/dist/components/Badge/Badge.variants.js +7 -5
- package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/components/Breadcrumb/components/Item/Item.js +24 -23
- package/dist/components/Button/Button.variants.js +1 -1
- package/dist/components/Checkbox/Checkbox.js +5 -4
- package/dist/components/Checkbox/Checkbox.variants.js +5 -4
- package/dist/components/Command/Command.js +2 -2
- package/dist/components/Command/components/Command.js +1 -1
- package/dist/components/Command/components/CommandEmpty.js +1 -1
- package/dist/components/Command/components/CommandGroup.js +1 -1
- package/dist/components/Command/components/CommandInput.js +2 -2
- package/dist/components/Command/components/CommandItem.js +1 -1
- package/dist/components/Command/components/CommandList.js +1 -1
- package/dist/components/Command/components/CommandSeparator.js +1 -1
- package/dist/components/Command/components/DialogContent.js +2 -2
- package/dist/components/Command/components/DialogOverlay.js +1 -1
- package/dist/components/Datepicker/DatePicker.js +545 -543
- package/dist/components/Dropdown/Dropdown.js +36 -24
- package/dist/components/Dropdown/Dropdown.variants.js +32 -9
- package/dist/components/Dropdown/components/List/List.js +64 -45
- package/dist/components/Dropdown/components/List/List.variants.js +9 -7
- package/dist/components/Dropdown/components/ListItem/ListItem.js +70 -24
- package/dist/components/Dropdown/components/ListItem/ListItem.variants.js +9 -7
- package/dist/components/Dropdown/components/Wrapper.js +157 -111
- package/dist/components/Dropdown/contexts/dropdown.context.js +9 -8
- package/dist/components/Dropdown/contexts/dropdown.provider.js +20 -19
- package/dist/components/Dropdown/hooks/useDropdown.js +30 -27
- package/dist/components/Dropdown/hooks/useNavigationList.js +32 -28
- package/dist/components/DropdownButton/DropdownButton.js +1 -1
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +1 -1
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +1 -1
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Loading/Loading.js +2 -2
- package/dist/components/Modal/Modal.js +2 -2
- package/dist/components/Modal/components/Wrapper/Wrapper.js +3 -3
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/NumberInput/NumberInput.js +2 -2
- package/dist/components/PieChart/PieChart.js +649 -648
- package/dist/components/Range/Range.js +1 -1
- package/dist/components/Sidebar/components/Wrapper/Wrapper.js +29 -28
- package/dist/components/Skeleton/Skeleton.js +42 -0
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/Switch/Switch.js +6 -5
- package/dist/components/Tabs/Tabs.js +1 -1
- package/dist/components/Tabs/Tabs.variants.js +45 -24
- package/dist/components/Tabs/components/Content.js +1 -1
- package/dist/components/Tabs/components/List.js +1 -1
- package/dist/components/Tabs/components/Trigger.js +9 -8
- package/dist/components/TagSelect/components/Wrapper/Wrapper.js +98 -49
- package/dist/components/TimePicker/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/Toast/Toast.js +57 -55
- package/dist/components/VirtualizedTable/VirtualizedTable.js +121 -0
- package/dist/components/VirtualizedTable/VirtualizedTable.variants.js +5 -0
- package/dist/components/VirtualizedTable/assets/chevron-down.js +25 -0
- package/dist/components/VirtualizedTable/assets/chevron-up.js +25 -0
- package/dist/components/VirtualizedTable/assets/index.js +6 -0
- package/dist/components/VirtualizedTable/components/Actions/Actions.js +40 -0
- package/dist/components/VirtualizedTable/components/Body/Body.js +26 -0
- package/dist/components/VirtualizedTable/components/DotPaginate/DotPaginate.js +165 -0
- package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +34 -0
- package/dist/components/VirtualizedTable/components/Filter/Filter.js +88 -0
- package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +48 -0
- package/dist/components/VirtualizedTable/components/Header/Header.js +82 -0
- package/dist/components/VirtualizedTable/components/Pagination/Pagination.js +45 -0
- package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +1871 -0
- package/dist/components/VirtualizedTable/components/index.js +14 -0
- package/dist/components/VirtualizedTable/constants/index.js +5 -0
- package/dist/components/VirtualizedTable/constants/pagination.js +5 -0
- package/dist/components/VirtualizedTable/contexts/index.js +8 -0
- package/dist/components/VirtualizedTable/contexts/table.context.js +31 -0
- package/dist/components/VirtualizedTable/contexts/table.hook.js +11 -0
- package/dist/components/VirtualizedTable/contexts/table.provider.js +84 -0
- package/dist/components/index.js +44 -40
- package/dist/{createLucideIcon-DbC6TvM5.js → createLucideIcon-DGhJ8Z4k.js} +4 -4
- package/dist/debounce-BFejQm9P.js +200 -0
- package/dist/ellipsis-vertical-DpnVYRxI.js +15 -0
- package/dist/{index-D3xzCzcO.js → index-0XtjXVpJ.js} +2 -2
- package/dist/index-BAEWsOG1.js +27 -0
- package/dist/index-BVRIAMfe.js +36 -0
- package/dist/index-BZPx6jYI.js +8 -0
- package/dist/{index-Oq5GlCHP.js → index-Bn4c-gww.js} +1 -1
- package/dist/index-CffpTFMi.js +137 -0
- package/dist/{index-BAraV3ai.js → index-DQJhMz8c.js} +1 -1
- package/dist/index-DdXGVVBv.js +15 -0
- package/dist/index-Dx2grAuN.js +1742 -0
- package/dist/{index-h-Ul0anl.js → index-N2OStZoU.js} +1 -1
- package/dist/{index-BXuxPoz7.js → index-amYX3uxF.js} +18 -17
- package/dist/{index-DB2XhXHn.js → index-l3NwplN0.js} +11 -10
- package/dist/{index-iXyXtdgP.js → index-sp5ZfG6g.js} +1 -1
- package/dist/index.d.ts +121 -10
- package/dist/index.js +41 -37
- package/dist/package.json +33 -25
- package/dist/styles.css +1 -1
- package/dist/ui/civo-theme.css +191 -167
- package/dist/{x-BPcqkRZd.js → x-4F_5p77m.js} +1 -1
- package/package.json +33 -25
- package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
- package/dist/chevron-up-RLP4nX7V.js +0 -54
- package/dist/index-C9T9HQaa.js +0 -423
- package/dist/index-CZnD2QxM.js +0 -32
- package/dist/index-CrBonFvu.js +0 -144
|
@@ -1,30 +1,42 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { DropdownProvider as
|
|
4
|
-
import { Wrapper as
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
{
|
|
1
|
+
import { jsx as t, jsxs as p } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as n } from "react";
|
|
3
|
+
import { DropdownProvider as c } from "./contexts/dropdown.provider.js";
|
|
4
|
+
import { Wrapper as x } from "./components/Wrapper.js";
|
|
5
|
+
const N = n(
|
|
6
|
+
({
|
|
8
7
|
onChange: r,
|
|
9
8
|
onBlur: l,
|
|
10
9
|
value: a,
|
|
10
|
+
error: s,
|
|
11
|
+
helperText: e,
|
|
11
12
|
name: o,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
13
|
+
highlightSearch: i,
|
|
14
|
+
...d
|
|
15
|
+
}, m) => /* @__PURE__ */ t(
|
|
16
|
+
c,
|
|
17
|
+
{
|
|
18
|
+
highlightSearch: i,
|
|
19
|
+
name: o,
|
|
20
|
+
value: a,
|
|
21
|
+
onBlur: l,
|
|
22
|
+
onChange: r,
|
|
23
|
+
children: /* @__PURE__ */ p("div", { className: "relative w-full", children: [
|
|
24
|
+
/* @__PURE__ */ t(
|
|
25
|
+
x,
|
|
26
|
+
{
|
|
27
|
+
name: o,
|
|
28
|
+
error: s,
|
|
29
|
+
ref: m,
|
|
30
|
+
onBlur: l,
|
|
31
|
+
...d
|
|
32
|
+
}
|
|
33
|
+
),
|
|
34
|
+
s ? /* @__PURE__ */ t("span", { className: "text-xs text-red-700", children: s }) : null,
|
|
35
|
+
!s && e ? /* @__PURE__ */ t("span", { className: "text-xs text-slate-600", children: e }) : null
|
|
36
|
+
] })
|
|
37
|
+
}
|
|
38
|
+
)
|
|
39
|
+
);
|
|
28
40
|
export {
|
|
29
|
-
|
|
41
|
+
N as Dropdown
|
|
30
42
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
const a =
|
|
1
|
+
import { c as e } from "../../index-D29mdTf5.js";
|
|
2
|
+
const a = e(
|
|
3
3
|
[
|
|
4
|
+
"group",
|
|
4
5
|
"border",
|
|
5
6
|
"cursor-pointer",
|
|
6
7
|
"ease-in-out",
|
|
@@ -20,7 +21,9 @@ const a = r(
|
|
|
20
21
|
"aria-expanded:border-aurora-500",
|
|
21
22
|
"aria-expanded:text-aurora-500",
|
|
22
23
|
"kubefirst:aria-expanded:border-kubefirst-primary",
|
|
23
|
-
"kubefirst:aria-expanded:text-kubefirst-secondary"
|
|
24
|
+
"kubefirst:aria-expanded:text-kubefirst-secondary",
|
|
25
|
+
"dark:border-slate-600",
|
|
26
|
+
"dark:focus-visible:bg-slate-800"
|
|
24
27
|
],
|
|
25
28
|
{
|
|
26
29
|
variants: {
|
|
@@ -32,20 +35,40 @@ const a = r(
|
|
|
32
35
|
"kubefirst:text-red-600"
|
|
33
36
|
],
|
|
34
37
|
false: ""
|
|
38
|
+
},
|
|
39
|
+
disabled: {
|
|
40
|
+
true: ["cursor-default", "bg-gray-100", "dark:bg-slate-700/80"],
|
|
41
|
+
false: []
|
|
35
42
|
}
|
|
36
43
|
},
|
|
37
44
|
defaultVariants: {
|
|
38
|
-
hasError: !1
|
|
45
|
+
hasError: !1,
|
|
46
|
+
disabled: !1
|
|
39
47
|
}
|
|
40
48
|
}
|
|
41
|
-
), t =
|
|
49
|
+
), t = e([
|
|
50
|
+
"flex-1",
|
|
51
|
+
"bg-transparent",
|
|
52
|
+
"border-none",
|
|
53
|
+
"outline-none",
|
|
54
|
+
"text-zinc-700",
|
|
55
|
+
"text-sm",
|
|
56
|
+
"capitalize",
|
|
57
|
+
"placeholder:text-sm",
|
|
58
|
+
"placeholder:normal-case",
|
|
59
|
+
"placeholder:select-none",
|
|
60
|
+
"dark:placeholder:text-slate-400",
|
|
61
|
+
"dark:text-slate-50"
|
|
62
|
+
]), d = e([
|
|
42
63
|
"mb-1",
|
|
43
64
|
"cursor-pointer",
|
|
44
|
-
"text-
|
|
45
|
-
"leading-
|
|
46
|
-
"tracking-[0.1px]"
|
|
65
|
+
"text-sm",
|
|
66
|
+
"leading-5",
|
|
67
|
+
"tracking-[0.1px]",
|
|
68
|
+
"dark:text-slate-50"
|
|
47
69
|
]);
|
|
48
70
|
export {
|
|
49
71
|
a as dropdownVariants,
|
|
50
|
-
t as
|
|
72
|
+
t as inputVariants,
|
|
73
|
+
d as labelVariants
|
|
51
74
|
};
|
|
@@ -1,64 +1,83 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { cn as
|
|
4
|
-
import { useNavigationUlList as
|
|
5
|
-
import { ListItem as
|
|
6
|
-
import { listVariants as
|
|
7
|
-
import {
|
|
8
|
-
|
|
1
|
+
import { jsx as l, jsxs as w, Fragment as N } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as y, useRef as j, useImperativeHandle as C } from "react";
|
|
3
|
+
import { cn as t } from "../../../../utils/index.js";
|
|
4
|
+
import { useNavigationUlList as O } from "../../hooks/useNavigationList.js";
|
|
5
|
+
import { ListItem as i } from "../ListItem/ListItem.js";
|
|
6
|
+
import { listVariants as D } from "./List.variants.js";
|
|
7
|
+
import { S as E } from "../../../../index-DQH6odE9.js";
|
|
8
|
+
import { useDropdownContext as F } from "../../contexts/dropdown.hook.js";
|
|
9
|
+
const I = y(
|
|
9
10
|
({
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
additionalOptions: p,
|
|
12
|
+
className: u,
|
|
13
|
+
inputRef: r,
|
|
14
|
+
isLoading: d,
|
|
15
|
+
itemClassName: s,
|
|
16
|
+
name: g,
|
|
17
|
+
options: c,
|
|
15
18
|
searchable: m = !1,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
19
|
+
listItemSecondRowClassName: a,
|
|
20
|
+
wrapperInputRef: b,
|
|
21
|
+
wrapperRef: h
|
|
22
|
+
}, v) => {
|
|
23
|
+
const o = j(null), { isOpen: L, searchTerm: x } = F();
|
|
24
|
+
C(v, () => o.current, [o]), O({
|
|
25
|
+
ulRef: o,
|
|
26
|
+
wrapperRef: h,
|
|
27
|
+
wrapperInputRef: b,
|
|
28
|
+
inputRef: r,
|
|
29
|
+
searchable: m
|
|
30
|
+
});
|
|
31
|
+
const f = m ? c.filter((e) => {
|
|
32
|
+
const n = x.toLowerCase();
|
|
33
|
+
return (typeof e.label == "string" ? e.label.toLowerCase() : "").includes(n);
|
|
34
|
+
}) : c, k = f.length === 0;
|
|
35
|
+
return /* @__PURE__ */ l(
|
|
26
36
|
"ul",
|
|
27
37
|
{
|
|
28
|
-
ref:
|
|
29
|
-
title:
|
|
38
|
+
ref: o,
|
|
39
|
+
title: g,
|
|
30
40
|
role: "listbox",
|
|
31
|
-
className:
|
|
32
|
-
"data-state":
|
|
33
|
-
children:
|
|
34
|
-
|
|
41
|
+
className: t(D({ className: u })),
|
|
42
|
+
"data-state": L ? "open" : "closed",
|
|
43
|
+
children: d ? /* @__PURE__ */ l(
|
|
44
|
+
i,
|
|
35
45
|
{
|
|
36
|
-
className:
|
|
46
|
+
className: t("select-none", s),
|
|
37
47
|
isClickable: !1,
|
|
48
|
+
inputRef: r,
|
|
38
49
|
value: "Loading...",
|
|
39
|
-
label: "Loading..."
|
|
50
|
+
label: "Loading...",
|
|
51
|
+
listItemSecondRowClassName: a
|
|
40
52
|
}
|
|
41
|
-
) :
|
|
42
|
-
|
|
53
|
+
) : k ? /* @__PURE__ */ l(
|
|
54
|
+
i,
|
|
43
55
|
{
|
|
44
|
-
className:
|
|
56
|
+
className: t("select-none", s),
|
|
45
57
|
isClickable: !1,
|
|
58
|
+
inputRef: r,
|
|
46
59
|
value: "No options",
|
|
47
|
-
label: "No options"
|
|
60
|
+
label: "No options",
|
|
61
|
+
listItemSecondRowClassName: a
|
|
48
62
|
}
|
|
49
|
-
) :
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
63
|
+
) : /* @__PURE__ */ w(N, { children: [
|
|
64
|
+
f.map((e) => /* @__PURE__ */ l(
|
|
65
|
+
i,
|
|
66
|
+
{
|
|
67
|
+
className: t("select-none", s),
|
|
68
|
+
isClickable: !0,
|
|
69
|
+
inputRef: r,
|
|
70
|
+
listItemSecondRowClassName: a,
|
|
71
|
+
...e
|
|
72
|
+
},
|
|
73
|
+
e.value
|
|
74
|
+
)),
|
|
75
|
+
p?.map((e, n) => /* @__PURE__ */ l("li", { role: "option", "data-action": "true", children: /* @__PURE__ */ l(E, { className: "flex p-2 w-full h-full gap-1 items-center text-sm [&>svg]:w-3.5 [&>svg]:h-3.5 [&>svg]:shrink-0 cursor-pointer select-none hover:bg-gray-50 hover:dark:bg-slate-700 focus:outline-0", children: e }) }, n))
|
|
76
|
+
] })
|
|
58
77
|
}
|
|
59
78
|
);
|
|
60
79
|
}
|
|
61
80
|
);
|
|
62
81
|
export {
|
|
63
|
-
|
|
82
|
+
I as List
|
|
64
83
|
};
|
|
@@ -1,26 +1,28 @@
|
|
|
1
1
|
import { c as o } from "../../../../index-D29mdTf5.js";
|
|
2
|
-
const
|
|
2
|
+
const t = o([
|
|
3
3
|
"absolute",
|
|
4
4
|
"bg-white",
|
|
5
5
|
"border",
|
|
6
|
-
"duration-100",
|
|
7
|
-
"ease-in-out",
|
|
8
6
|
"flex-col",
|
|
9
7
|
"mt-1",
|
|
10
8
|
"overflow-hidden",
|
|
11
9
|
"rounded-md",
|
|
12
10
|
"shadow-2xs",
|
|
13
11
|
"top-full",
|
|
14
|
-
"transition-all",
|
|
15
12
|
"w-full",
|
|
16
13
|
"z-10",
|
|
17
14
|
"max-h-[185px]",
|
|
18
15
|
"overflow-y-auto",
|
|
19
16
|
"border-gray-200",
|
|
20
17
|
"text-zinc-700",
|
|
21
|
-
"
|
|
22
|
-
"
|
|
18
|
+
"animate-in",
|
|
19
|
+
"fade-in-50",
|
|
20
|
+
"zoom-in-95",
|
|
21
|
+
"duration-[200ms]",
|
|
22
|
+
"dark:bg-slate-800",
|
|
23
|
+
"dark:border-slate-700",
|
|
24
|
+
"dark:text-slate-50"
|
|
23
25
|
]);
|
|
24
26
|
export {
|
|
25
|
-
|
|
27
|
+
t as listVariants
|
|
26
28
|
};
|
|
@@ -1,43 +1,89 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { Typography as
|
|
4
|
-
import { cn as
|
|
5
|
-
import { listItemVariants as
|
|
6
|
-
import { useDropdownContext as
|
|
7
|
-
const
|
|
8
|
-
isClickable:
|
|
9
|
-
className:
|
|
1
|
+
import { jsx as l, jsxs as d } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as w, useCallback as o } from "react";
|
|
3
|
+
import { Typography as C } from "../../../Typography/Typography.js";
|
|
4
|
+
import { cn as i } from "../../../../utils/index.js";
|
|
5
|
+
import { listItemVariants as L } from "./ListItem.variants.js";
|
|
6
|
+
import { useDropdownContext as I } from "../../contexts/dropdown.hook.js";
|
|
7
|
+
const K = ({
|
|
8
|
+
isClickable: p,
|
|
9
|
+
className: h,
|
|
10
|
+
inputRef: b,
|
|
11
|
+
listItemSecondRowClassName: x,
|
|
10
12
|
...t
|
|
11
13
|
}) => {
|
|
12
|
-
const { setValue:
|
|
14
|
+
const { searchTerm: a, highlightSearchEnabled: c, setValue: m, toggleOpen: f } = I(), g = w(null), n = o(
|
|
13
15
|
(e) => {
|
|
14
|
-
|
|
16
|
+
m(e.value, b), f(!1);
|
|
15
17
|
},
|
|
16
|
-
[
|
|
17
|
-
),
|
|
18
|
-
(e,
|
|
19
|
-
e.key === "Enter" && (e.stopPropagation(),
|
|
18
|
+
[m, f]
|
|
19
|
+
), u = o(
|
|
20
|
+
(e, r) => {
|
|
21
|
+
e.key === "Enter" && (e.stopPropagation(), n(r));
|
|
20
22
|
},
|
|
21
|
-
[
|
|
23
|
+
[n]
|
|
24
|
+
), k = o(
|
|
25
|
+
(e, r) => {
|
|
26
|
+
if (typeof e != "string")
|
|
27
|
+
return e;
|
|
28
|
+
const y = c && a.length > 0 ? e.split(new RegExp(`(${a})`, "gi")).map((s) => s.toLowerCase() === a.toLowerCase() ? /* @__PURE__ */ l(
|
|
29
|
+
"mark",
|
|
30
|
+
{
|
|
31
|
+
className: "bg-transparent font-semibold text-slate-800 dark:text-slate-50",
|
|
32
|
+
children: s
|
|
33
|
+
},
|
|
34
|
+
s
|
|
35
|
+
) : s) : [e];
|
|
36
|
+
return /* @__PURE__ */ d(
|
|
37
|
+
C,
|
|
38
|
+
{
|
|
39
|
+
variant: "body2",
|
|
40
|
+
className: "text-zinc-700 dark:text-slate-50 font-medium",
|
|
41
|
+
children: [
|
|
42
|
+
y,
|
|
43
|
+
r ? /* @__PURE__ */ l(
|
|
44
|
+
"span",
|
|
45
|
+
{
|
|
46
|
+
className: i(
|
|
47
|
+
"block font-normal text-sm text-slate-800 dark:text-slate-50",
|
|
48
|
+
x
|
|
49
|
+
),
|
|
50
|
+
children: r
|
|
51
|
+
}
|
|
52
|
+
) : null
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
);
|
|
56
|
+
},
|
|
57
|
+
[c, a]
|
|
22
58
|
);
|
|
23
|
-
return /* @__PURE__ */
|
|
59
|
+
return /* @__PURE__ */ d(
|
|
24
60
|
"li",
|
|
25
61
|
{
|
|
26
|
-
ref:
|
|
62
|
+
ref: g,
|
|
27
63
|
role: "option",
|
|
28
|
-
|
|
64
|
+
"data-action": "false",
|
|
65
|
+
className: i(L({ className: h })),
|
|
29
66
|
tabIndex: 0,
|
|
30
67
|
onClick: (e) => {
|
|
31
|
-
|
|
68
|
+
p && (n(t), e.stopPropagation());
|
|
32
69
|
},
|
|
33
|
-
onKeyDown: (e) =>
|
|
70
|
+
onKeyDown: (e) => u(e, t),
|
|
34
71
|
children: [
|
|
35
|
-
t.leftIcon ? /* @__PURE__ */
|
|
36
|
-
|
|
72
|
+
t.leftIcon ? /* @__PURE__ */ l(
|
|
73
|
+
"span",
|
|
74
|
+
{
|
|
75
|
+
className: i("w-4 h-4 flex justify-center", {
|
|
76
|
+
"items-center": !t.subLabel,
|
|
77
|
+
"items-baseline -translate-y-2": !!t.subLabel
|
|
78
|
+
}),
|
|
79
|
+
children: t.leftIcon
|
|
80
|
+
}
|
|
81
|
+
) : null,
|
|
82
|
+
k(t.label, t.subLabel)
|
|
37
83
|
]
|
|
38
84
|
}
|
|
39
85
|
);
|
|
40
86
|
};
|
|
41
87
|
export {
|
|
42
|
-
|
|
88
|
+
K as ListItem
|
|
43
89
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
const
|
|
1
|
+
import { c as r } from "../../../../index-D29mdTf5.js";
|
|
2
|
+
const t = r([
|
|
3
3
|
"cursor-pointer",
|
|
4
4
|
"py-2",
|
|
5
5
|
"px-2",
|
|
@@ -10,11 +10,13 @@ const i = o([
|
|
|
10
10
|
"flex",
|
|
11
11
|
"items-center",
|
|
12
12
|
"gap-3",
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
13
|
+
"transition-bg",
|
|
14
|
+
"duration-250",
|
|
15
|
+
"hover:bg-gray-50",
|
|
16
|
+
"focus:bg-gray-50",
|
|
17
|
+
"dark:hover:bg-slate-700",
|
|
18
|
+
"dark:focus:bg-slate-700"
|
|
17
19
|
]);
|
|
18
20
|
export {
|
|
19
|
-
|
|
21
|
+
t as listItemVariants
|
|
20
22
|
};
|