@konstructio/ui 0.1.1-alpha.6 → 0.1.2-alpha.10
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-CVce9Mvh.js → chevron-down-MZvQoT2F.js} +2 -2
- package/dist/chevron-right-VYBOBhRt.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/Autocomplete/Autocomplete.js +46 -54
- package/dist/components/Autocomplete/Autocomplete.variants.js +29 -48
- package/dist/components/Autocomplete/components/List/List.js +37 -47
- package/dist/components/Autocomplete/components/List/List.variants.js +34 -69
- package/dist/components/Badge/Badge.js +2 -2
- 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 +110 -134
- package/dist/components/Checkbox/Checkbox.js +5 -4
- package/dist/components/Checkbox/Checkbox.variants.js +9 -8
- 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 +949 -898
- package/dist/components/Dropdown/Dropdown.js +36 -24
- package/dist/components/Dropdown/Dropdown.variants.js +32 -14
- package/dist/components/Dropdown/components/List/List.js +59 -44
- package/dist/components/Dropdown/components/List/List.variants.js +9 -7
- package/dist/components/Dropdown/components/ListItem/ListItem.js +48 -24
- package/dist/components/Dropdown/components/ListItem/ListItem.variants.js +9 -7
- package/dist/components/Dropdown/components/Wrapper.js +141 -106
- 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 +26 -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/Filter/components/ResetButton/ResetButton.js +16 -11
- package/dist/components/Input/Input.js +48 -48
- package/dist/components/Input/Input.variants.js +10 -10
- package/dist/components/Loading/Loading.js +2 -2
- package/dist/components/Loading/Loading.variants.js +4 -4
- 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 +217 -215
- package/dist/components/Radio/Radio.variants.js +4 -4
- package/dist/components/Range/Range.js +1 -1
- package/dist/components/Sidebar/components/Wrapper/Wrapper.js +29 -28
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/Switch/Switch.js +94 -89
- package/dist/components/Switch/Switch.variants.js +16 -12
- 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 +117 -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 +46 -0
- package/dist/components/VirtualizedTable/components/Body/Body.js +25 -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 +86 -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 +82 -0
- package/dist/components/index.js +44 -40
- package/dist/{createLucideIcon-BpsAkT97.js → createLucideIcon-D2CN7Ma9.js} +4 -4
- package/dist/debounce-BFejQm9P.js +200 -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 +112 -10
- package/dist/index.js +41 -37
- package/dist/package.json +31 -23
- package/dist/styles.css +1 -1
- package/dist/ui/civo-theme.css +204 -189
- package/dist/ui/kubefirst-theme.css +3 -1
- package/dist/ui/theme.css +2 -2
- package/dist/{x-BPcqkRZd.js → x-4F_5p77m.js} +1 -1
- package/package.json +31 -23
- 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,15 +1,15 @@
|
|
|
1
1
|
import { Body as b } from "./components/Modal/components/Body/Body.js";
|
|
2
2
|
import { Footer as g } from "./components/Modal/components/Footer/Footer.js";
|
|
3
3
|
import { Header as v } from "./components/Modal/components/Header/Header.js";
|
|
4
|
-
import { jsx as n, jsxs as
|
|
4
|
+
import { jsx as n, jsxs as f } from "react/jsx-runtime";
|
|
5
5
|
import { Children as i, isValidElement as s, useEffect as w } from "react";
|
|
6
|
-
import {
|
|
7
|
-
import { R as
|
|
8
|
-
import { R
|
|
9
|
-
import { cn as
|
|
10
|
-
import { buttonCloseVariants as
|
|
11
|
-
import { X as
|
|
12
|
-
const
|
|
6
|
+
import { createPortal as A } from "react-dom";
|
|
7
|
+
import { R as N } from "./index-sp5ZfG6g.js";
|
|
8
|
+
import { R } from "./Combination-VYaRRJBZ.js";
|
|
9
|
+
import { cn as p } from "./utils/index.js";
|
|
10
|
+
import { buttonCloseVariants as k, modalVariants as x } from "./components/Modal/components/Wrapper/Wrapper.variants.js";
|
|
11
|
+
import { X as B } from "./x-4F_5p77m.js";
|
|
12
|
+
const E = ({
|
|
13
13
|
children: e,
|
|
14
14
|
theme: t,
|
|
15
15
|
className: m,
|
|
@@ -27,7 +27,7 @@ const B = ({
|
|
|
27
27
|
o.type
|
|
28
28
|
)
|
|
29
29
|
);
|
|
30
|
-
return /* @__PURE__ */ n(
|
|
30
|
+
return /* @__PURE__ */ n(R, { children: /* @__PURE__ */ f(
|
|
31
31
|
"div",
|
|
32
32
|
{
|
|
33
33
|
className: "fixed inset-0 grid place-content-center",
|
|
@@ -41,11 +41,11 @@ const B = ({
|
|
|
41
41
|
role: "presentation"
|
|
42
42
|
}
|
|
43
43
|
),
|
|
44
|
-
/* @__PURE__ */
|
|
44
|
+
/* @__PURE__ */ f(
|
|
45
45
|
"div",
|
|
46
46
|
{
|
|
47
|
-
className:
|
|
48
|
-
|
|
47
|
+
className: p(
|
|
48
|
+
x({
|
|
49
49
|
className: m
|
|
50
50
|
})
|
|
51
51
|
),
|
|
@@ -53,18 +53,18 @@ const B = ({
|
|
|
53
53
|
"aria-modal": "true",
|
|
54
54
|
children: [
|
|
55
55
|
l,
|
|
56
|
-
/* @__PURE__ */
|
|
56
|
+
/* @__PURE__ */ f(
|
|
57
57
|
"button",
|
|
58
58
|
{
|
|
59
|
-
className:
|
|
60
|
-
|
|
59
|
+
className: p(
|
|
60
|
+
k({
|
|
61
61
|
className: d
|
|
62
62
|
})
|
|
63
63
|
),
|
|
64
64
|
onClick: a,
|
|
65
65
|
children: [
|
|
66
|
-
/* @__PURE__ */ n(
|
|
67
|
-
/* @__PURE__ */ n(
|
|
66
|
+
/* @__PURE__ */ n(B, {}),
|
|
67
|
+
/* @__PURE__ */ n(N, { children: "Dismiss modal" })
|
|
68
68
|
]
|
|
69
69
|
}
|
|
70
70
|
),
|
|
@@ -85,8 +85,8 @@ const B = ({
|
|
|
85
85
|
}), () => {
|
|
86
86
|
a.abort();
|
|
87
87
|
};
|
|
88
|
-
}, [t]), e ?
|
|
89
|
-
/* @__PURE__ */ n(
|
|
88
|
+
}, [t]), e ? A(
|
|
89
|
+
/* @__PURE__ */ n(E, { ...d, onClose: t }),
|
|
90
90
|
m || document.body
|
|
91
91
|
) : null);
|
|
92
92
|
r.Header = v;
|
|
@@ -94,5 +94,5 @@ r.Body = b;
|
|
|
94
94
|
r.Footer = g;
|
|
95
95
|
export {
|
|
96
96
|
r as M,
|
|
97
|
-
|
|
97
|
+
E as W
|
|
98
98
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var o = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2
|
+
function l(e) {
|
|
3
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
4
|
+
}
|
|
5
|
+
export {
|
|
6
|
+
o as c,
|
|
7
|
+
l as g
|
|
8
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as o } from "./createLucideIcon-
|
|
1
|
+
import { c as o } from "./createLucideIcon-D2CN7Ma9.js";
|
|
2
2
|
/**
|
|
3
|
-
* @license lucide-react v0.
|
|
3
|
+
* @license lucide-react v0.545.0 - ISC
|
|
4
4
|
*
|
|
5
5
|
* This source code is licensed under the ISC license.
|
|
6
6
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { c as o } from "./createLucideIcon-D2CN7Ma9.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license lucide-react v0.545.0 - ISC
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the ISC license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
const e = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], n = o("chevron-left", e);
|
|
9
|
+
/**
|
|
10
|
+
* @license lucide-react v0.545.0 - ISC
|
|
11
|
+
*
|
|
12
|
+
* This source code is licensed under the ISC license.
|
|
13
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
14
|
+
*/
|
|
15
|
+
const t = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], h = o("chevron-right", t);
|
|
16
|
+
export {
|
|
17
|
+
n as C,
|
|
18
|
+
h as a
|
|
19
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as l, jsxs as s } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as f, useState as h, useMemo as b, isValidElement as C, useCallback as V, useEffect as v } from "react";
|
|
3
|
-
import { V as k } from "../../index-
|
|
3
|
+
import { V as k } from "../../index-sp5ZfG6g.js";
|
|
4
4
|
import { cn as a } from "../../utils/index.js";
|
|
5
5
|
import { closeButtonVariants as w, alertVariants as x } from "./Alert.variants.js";
|
|
6
|
-
import { X as y } from "../../x-
|
|
6
|
+
import { X as y } from "../../x-4F_5p77m.js";
|
|
7
7
|
const R = ({
|
|
8
8
|
theme: i,
|
|
9
9
|
type: o,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { R as A, A as D, P as v, O as j, C as k, T, D as w, a as P, b as R } from "../../index-
|
|
2
|
+
import { R as A, A as D, P as v, O as j, C as k, T, D as w, a as P, b as R } from "../../index-Bn4c-gww.js";
|
|
3
3
|
import { Button as l } from "../Button/Button.js";
|
|
4
4
|
import { cn as t } from "../../utils/index.js";
|
|
5
5
|
import { useAlertDialog as z } from "./hooks/useAlertDialog.js";
|
|
@@ -1,83 +1,75 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { cn as
|
|
4
|
-
import { labelVariants as
|
|
5
|
-
import { useAutocomplete as
|
|
6
|
-
import { List as
|
|
7
|
-
const
|
|
1
|
+
import { jsxs as N, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as b, useRef as i, useId as C, useImperativeHandle as R } from "react";
|
|
3
|
+
import { cn as m } from "../../utils/index.js";
|
|
4
|
+
import { labelVariants as A, autocompleteVariants as O } from "./Autocomplete.variants.js";
|
|
5
|
+
import { useAutocomplete as V } from "./hooks/useAutocomplete.js";
|
|
6
|
+
import { List as g } from "./components/List/List.js";
|
|
7
|
+
const j = b(
|
|
8
8
|
({
|
|
9
|
-
autoComplete:
|
|
10
|
-
className:
|
|
11
|
-
label:
|
|
12
|
-
labelClassName:
|
|
13
|
-
name:
|
|
14
|
-
options:
|
|
15
|
-
placeholder:
|
|
16
|
-
placeHolderEmptyValues:
|
|
17
|
-
placeHolderEmptyValuesClassName:
|
|
18
|
-
theme:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
options: u,
|
|
9
|
+
autoComplete: d = "off",
|
|
10
|
+
className: s,
|
|
11
|
+
label: t,
|
|
12
|
+
labelClassName: p,
|
|
13
|
+
name: r,
|
|
14
|
+
options: c,
|
|
15
|
+
placeholder: u,
|
|
16
|
+
placeHolderEmptyValues: f = "No values...",
|
|
17
|
+
placeHolderEmptyValuesClassName: h,
|
|
18
|
+
theme: v,
|
|
19
|
+
onChange: w
|
|
20
|
+
}, x) => {
|
|
21
|
+
const a = i(null), o = i(null), n = C();
|
|
22
|
+
R(x, () => o.current, [o]);
|
|
23
|
+
const e = V({
|
|
24
|
+
options: c,
|
|
26
25
|
inputRef: o,
|
|
27
|
-
wrapperRef:
|
|
28
|
-
onChange:
|
|
26
|
+
wrapperRef: a,
|
|
27
|
+
onChange: w
|
|
29
28
|
});
|
|
30
|
-
return /* @__PURE__ */
|
|
29
|
+
return /* @__PURE__ */ N(
|
|
31
30
|
"div",
|
|
32
31
|
{
|
|
33
|
-
ref:
|
|
32
|
+
ref: a,
|
|
34
33
|
className: "relative flex flex-col",
|
|
35
|
-
"data-theme":
|
|
34
|
+
"data-theme": v,
|
|
36
35
|
children: [
|
|
37
|
-
|
|
36
|
+
t ? /* @__PURE__ */ l(
|
|
38
37
|
"label",
|
|
39
38
|
{
|
|
40
|
-
htmlFor:
|
|
41
|
-
className:
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
className: d
|
|
39
|
+
htmlFor: r ?? n,
|
|
40
|
+
className: m(
|
|
41
|
+
A({
|
|
42
|
+
className: p
|
|
45
43
|
})
|
|
46
44
|
),
|
|
47
|
-
children:
|
|
45
|
+
children: t
|
|
48
46
|
}
|
|
49
47
|
) : null,
|
|
50
48
|
/* @__PURE__ */ l(
|
|
51
49
|
"input",
|
|
52
50
|
{
|
|
53
51
|
ref: o,
|
|
54
|
-
id: t ??
|
|
52
|
+
id: t ? r ?? n : void 0,
|
|
55
53
|
type: "text",
|
|
56
|
-
name:
|
|
54
|
+
name: r,
|
|
57
55
|
role: "combobox",
|
|
58
|
-
autoComplete:
|
|
59
|
-
className:
|
|
60
|
-
V({
|
|
61
|
-
variant: r,
|
|
62
|
-
className: a
|
|
63
|
-
})
|
|
64
|
-
),
|
|
56
|
+
autoComplete: d,
|
|
57
|
+
className: m(O({ className: s })),
|
|
65
58
|
onChange: e.handleChange,
|
|
66
59
|
value: e.value,
|
|
67
|
-
placeholder:
|
|
60
|
+
placeholder: u,
|
|
68
61
|
"aria-expanded": e.showOptions ? "true" : "false"
|
|
69
62
|
}
|
|
70
63
|
),
|
|
71
64
|
e.showOptions && /* @__PURE__ */ l("div", { className: "absolute z-10 top-full w-full rounded-md mt-1 border shadow-sm border-zinc-200 overflow-hidden", children: /* @__PURE__ */ l(
|
|
72
|
-
|
|
65
|
+
g,
|
|
73
66
|
{
|
|
74
|
-
className:
|
|
67
|
+
className: s,
|
|
75
68
|
inputRef: o,
|
|
76
|
-
wrapperRef:
|
|
69
|
+
wrapperRef: a,
|
|
77
70
|
options: e.newOptions,
|
|
78
|
-
placeholder:
|
|
79
|
-
placeholderClassName:
|
|
80
|
-
variant: r,
|
|
71
|
+
placeholder: f,
|
|
72
|
+
placeholderClassName: h,
|
|
81
73
|
onClick: e.handleSelectValue
|
|
82
74
|
}
|
|
83
75
|
) })
|
|
@@ -86,7 +78,7 @@ const y = C(
|
|
|
86
78
|
);
|
|
87
79
|
}
|
|
88
80
|
);
|
|
89
|
-
|
|
81
|
+
j.displayName = "Autocomplete";
|
|
90
82
|
export {
|
|
91
|
-
|
|
83
|
+
j as Autocomplete
|
|
92
84
|
};
|
|
@@ -1,50 +1,31 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
defaultVariants: {
|
|
31
|
-
variant: "default"
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
), e = a(
|
|
35
|
-
["pl-1", "mb-2", "text-base", "cursor-pointer"],
|
|
36
|
-
{
|
|
37
|
-
variants: {
|
|
38
|
-
variant: {
|
|
39
|
-
default: ""
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
defaultVariants: {
|
|
43
|
-
variant: "default"
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
);
|
|
1
|
+
import { c as r } from "../../index-D29mdTf5.js";
|
|
2
|
+
const e = r([
|
|
3
|
+
"flex",
|
|
4
|
+
"w-full",
|
|
5
|
+
"rounded-md",
|
|
6
|
+
"border",
|
|
7
|
+
"border-zinc-200",
|
|
8
|
+
"bg-transparent",
|
|
9
|
+
"text-zinc-700",
|
|
10
|
+
"transition-colors",
|
|
11
|
+
"placeholder:text-muted-foreground",
|
|
12
|
+
"focus-visible:outline-none",
|
|
13
|
+
"focus-visible:ring-1",
|
|
14
|
+
"focus-visible:ring-ring",
|
|
15
|
+
"disabled:cursor-not-allowed",
|
|
16
|
+
"disabled:opacity-50",
|
|
17
|
+
"shadow-2xs",
|
|
18
|
+
"py-1",
|
|
19
|
+
"px-2",
|
|
20
|
+
"focus:ring-aurora-500",
|
|
21
|
+
"kubefirst:focus:ring-kubefirst-primary"
|
|
22
|
+
]), i = r([
|
|
23
|
+
"pl-1",
|
|
24
|
+
"mb-2",
|
|
25
|
+
"text-base",
|
|
26
|
+
"cursor-pointer"
|
|
27
|
+
]);
|
|
47
28
|
export {
|
|
48
|
-
|
|
49
|
-
|
|
29
|
+
e as autocompleteVariants,
|
|
30
|
+
i as labelVariants
|
|
50
31
|
};
|
|
@@ -1,58 +1,48 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { cn as
|
|
4
|
-
import { emptyListVariants as
|
|
5
|
-
import { useNavigationUlList as
|
|
6
|
-
const
|
|
7
|
-
className:
|
|
8
|
-
inputRef:
|
|
9
|
-
options:
|
|
10
|
-
placeholder:
|
|
11
|
-
placeholderClassName:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
onClick: f
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as f } from "react";
|
|
3
|
+
import { cn as r } from "../../../../utils/index.js";
|
|
4
|
+
import { emptyListVariants as p, buttonVariants as u, listItemVariants as b, listVariants as N } from "./List.variants.js";
|
|
5
|
+
import { useNavigationUlList as d } from "../../hooks/useNavigationList.js";
|
|
6
|
+
const y = ({
|
|
7
|
+
className: n,
|
|
8
|
+
inputRef: a,
|
|
9
|
+
options: s,
|
|
10
|
+
placeholder: l,
|
|
11
|
+
placeholderClassName: o,
|
|
12
|
+
wrapperRef: m,
|
|
13
|
+
onClick: c
|
|
15
14
|
}) => {
|
|
16
|
-
const
|
|
17
|
-
return
|
|
15
|
+
const i = f(null);
|
|
16
|
+
return d({ ulRef: i, inputRef: a, wrapperRef: m, options: s }), s.length === 0 ? /* @__PURE__ */ t(
|
|
18
17
|
"span",
|
|
19
18
|
{
|
|
20
|
-
className:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
className: a
|
|
19
|
+
className: r(
|
|
20
|
+
p({
|
|
21
|
+
className: o
|
|
24
22
|
})
|
|
25
23
|
),
|
|
26
|
-
children:
|
|
24
|
+
children: l
|
|
27
25
|
}
|
|
28
|
-
) : /* @__PURE__ */ r(
|
|
29
|
-
"
|
|
26
|
+
) : /* @__PURE__ */ t("ul", { ref: i, role: "listbox", className: r(N({ className: n })), children: s.map(({ value: e }) => /* @__PURE__ */ t(
|
|
27
|
+
"li",
|
|
30
28
|
{
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
className:
|
|
34
|
-
children:
|
|
35
|
-
"
|
|
29
|
+
role: "option",
|
|
30
|
+
tabIndex: 0,
|
|
31
|
+
className: r(b()),
|
|
32
|
+
children: /* @__PURE__ */ t(
|
|
33
|
+
"button",
|
|
36
34
|
{
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
className:
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
children: l
|
|
48
|
-
}
|
|
49
|
-
)
|
|
50
|
-
},
|
|
51
|
-
l
|
|
52
|
-
))
|
|
53
|
-
}
|
|
54
|
-
);
|
|
35
|
+
type: "button",
|
|
36
|
+
role: "button",
|
|
37
|
+
className: r(u()),
|
|
38
|
+
onClick: () => c(e),
|
|
39
|
+
children: e
|
|
40
|
+
}
|
|
41
|
+
)
|
|
42
|
+
},
|
|
43
|
+
e
|
|
44
|
+
)) });
|
|
55
45
|
};
|
|
56
46
|
export {
|
|
57
|
-
|
|
47
|
+
y as List
|
|
58
48
|
};
|
|
@@ -1,71 +1,36 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
],
|
|
32
|
-
{
|
|
33
|
-
variants: {
|
|
34
|
-
variant: {
|
|
35
|
-
default: ""
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
defaultVariants: {
|
|
39
|
-
variant: "default"
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
), n = t(
|
|
43
|
-
[
|
|
44
|
-
"cursor-pointer",
|
|
45
|
-
"focus-visible:outline-none",
|
|
46
|
-
"px-3",
|
|
47
|
-
"py-1.5",
|
|
48
|
-
"w-full",
|
|
49
|
-
"text-left",
|
|
50
|
-
"focus:bg-purple-100",
|
|
51
|
-
"hover:bg-purple-100",
|
|
52
|
-
"civo:focus:bg-blue-100",
|
|
53
|
-
"civo:hover:bg-blue-100"
|
|
54
|
-
],
|
|
55
|
-
{
|
|
56
|
-
variants: {
|
|
57
|
-
variant: {
|
|
58
|
-
default: ""
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
defaultVariants: {
|
|
62
|
-
variant: "default"
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
);
|
|
1
|
+
import { c as r } from "../../../../index-D29mdTf5.js";
|
|
2
|
+
const o = r([
|
|
3
|
+
"max-h-[250px]",
|
|
4
|
+
"overflow-y-auto",
|
|
5
|
+
"bg-white"
|
|
6
|
+
]), e = r([
|
|
7
|
+
"p-1",
|
|
8
|
+
"text-center",
|
|
9
|
+
"w-full",
|
|
10
|
+
"block",
|
|
11
|
+
"bg-white"
|
|
12
|
+
]), s = r([
|
|
13
|
+
"focus-visible:outline-none",
|
|
14
|
+
"kubefirst:focus:bg-purple-100",
|
|
15
|
+
"kubefirst:hover:bg-purple-100",
|
|
16
|
+
"border-transparent",
|
|
17
|
+
"focus:bg-aurora-50",
|
|
18
|
+
"hover:bg-aurora-50"
|
|
19
|
+
]), u = r([
|
|
20
|
+
"cursor-pointer",
|
|
21
|
+
"focus-visible:outline-none",
|
|
22
|
+
"px-3",
|
|
23
|
+
"py-1.5",
|
|
24
|
+
"w-full",
|
|
25
|
+
"text-left",
|
|
26
|
+
"focus:bg-aurora-50",
|
|
27
|
+
"hover:bg-aurora-50",
|
|
28
|
+
"kubefirst:focus:bg-purple-100",
|
|
29
|
+
"kubefirst:hover:bg-purple-100"
|
|
30
|
+
]);
|
|
66
31
|
export {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
32
|
+
u as buttonVariants,
|
|
33
|
+
e as emptyListVariants,
|
|
34
|
+
s as listItemVariants,
|
|
35
|
+
o as listVariants
|
|
71
36
|
};
|
|
@@ -2,9 +2,9 @@ import { jsxs as l, jsx as s } from "react/jsx-runtime";
|
|
|
2
2
|
import { useRef as f, useState as h, useCallback as g, useEffect as v } from "react";
|
|
3
3
|
import { cn as c } from "../../utils/index.js";
|
|
4
4
|
import { buttonDismissVariants as w, badgeVariants as x } from "./Badge.variants.js";
|
|
5
|
-
import { c as y } from "../../createLucideIcon-
|
|
5
|
+
import { c as y } from "../../createLucideIcon-D2CN7Ma9.js";
|
|
6
6
|
/**
|
|
7
|
-
* @license lucide-react v0.
|
|
7
|
+
* @license lucide-react v0.545.0 - ISC
|
|
8
8
|
*
|
|
9
9
|
* This source code is licensed under the ISC license.
|
|
10
10
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -3,7 +3,7 @@ import u, { forwardRef as b, useId as v, Fragment as y } from "react";
|
|
|
3
3
|
import { cn as h } from "../../utils/index.js";
|
|
4
4
|
import { breadcrumbVariants as O, breadcrumbWrapperVariants as j } from "./Breadcrumb.variants.js";
|
|
5
5
|
import { Item as w } from "./components/Item/Item.js";
|
|
6
|
-
import { P as l } from "../../index-
|
|
6
|
+
import { P as l } from "../../index-N2OStZoU.js";
|
|
7
7
|
function m() {
|
|
8
8
|
return m = Object.assign || function(r) {
|
|
9
9
|
for (var o = 1; o < arguments.length; o++) {
|