@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.
Files changed (118) hide show
  1. package/dist/{Modal-V67Uz78z.js → Modal-B8jrP02v.js} +20 -20
  2. package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
  3. package/dist/{chevron-down-CVce9Mvh.js → chevron-down-MZvQoT2F.js} +2 -2
  4. package/dist/chevron-right-VYBOBhRt.js +19 -0
  5. package/dist/components/Alert/Alert.js +2 -2
  6. package/dist/components/AlertDialog/AlertDialog.js +1 -1
  7. package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
  8. package/dist/components/AlertDialog/components/index.js +1 -1
  9. package/dist/components/Autocomplete/Autocomplete.js +46 -54
  10. package/dist/components/Autocomplete/Autocomplete.variants.js +29 -48
  11. package/dist/components/Autocomplete/components/List/List.js +37 -47
  12. package/dist/components/Autocomplete/components/List/List.variants.js +34 -69
  13. package/dist/components/Badge/Badge.js +2 -2
  14. package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
  15. package/dist/components/Breadcrumb/components/Item/Item.js +24 -23
  16. package/dist/components/Button/Button.variants.js +110 -134
  17. package/dist/components/Checkbox/Checkbox.js +5 -4
  18. package/dist/components/Checkbox/Checkbox.variants.js +9 -8
  19. package/dist/components/Command/Command.js +2 -2
  20. package/dist/components/Command/components/Command.js +1 -1
  21. package/dist/components/Command/components/CommandEmpty.js +1 -1
  22. package/dist/components/Command/components/CommandGroup.js +1 -1
  23. package/dist/components/Command/components/CommandInput.js +2 -2
  24. package/dist/components/Command/components/CommandItem.js +1 -1
  25. package/dist/components/Command/components/CommandList.js +1 -1
  26. package/dist/components/Command/components/CommandSeparator.js +1 -1
  27. package/dist/components/Command/components/DialogContent.js +2 -2
  28. package/dist/components/Command/components/DialogOverlay.js +1 -1
  29. package/dist/components/Datepicker/DatePicker.js +949 -898
  30. package/dist/components/Dropdown/Dropdown.js +36 -24
  31. package/dist/components/Dropdown/Dropdown.variants.js +32 -14
  32. package/dist/components/Dropdown/components/List/List.js +59 -44
  33. package/dist/components/Dropdown/components/List/List.variants.js +9 -7
  34. package/dist/components/Dropdown/components/ListItem/ListItem.js +48 -24
  35. package/dist/components/Dropdown/components/ListItem/ListItem.variants.js +9 -7
  36. package/dist/components/Dropdown/components/Wrapper.js +141 -106
  37. package/dist/components/Dropdown/contexts/dropdown.context.js +9 -8
  38. package/dist/components/Dropdown/contexts/dropdown.provider.js +20 -19
  39. package/dist/components/Dropdown/hooks/useDropdown.js +26 -27
  40. package/dist/components/Dropdown/hooks/useNavigationList.js +32 -28
  41. package/dist/components/DropdownButton/DropdownButton.js +1 -1
  42. package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +1 -1
  43. package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +1 -1
  44. package/dist/components/Filter/components/ResetButton/ResetButton.js +16 -11
  45. package/dist/components/Input/Input.js +48 -48
  46. package/dist/components/Input/Input.variants.js +10 -10
  47. package/dist/components/Loading/Loading.js +2 -2
  48. package/dist/components/Loading/Loading.variants.js +4 -4
  49. package/dist/components/Modal/Modal.js +2 -2
  50. package/dist/components/Modal/components/Wrapper/Wrapper.js +3 -3
  51. package/dist/components/Modal/components/index.js +1 -1
  52. package/dist/components/NumberInput/NumberInput.js +2 -2
  53. package/dist/components/PieChart/PieChart.js +217 -215
  54. package/dist/components/Radio/Radio.variants.js +4 -4
  55. package/dist/components/Range/Range.js +1 -1
  56. package/dist/components/Sidebar/components/Wrapper/Wrapper.js +29 -28
  57. package/dist/components/Slider/Slider.js +1 -1
  58. package/dist/components/Switch/Switch.js +94 -89
  59. package/dist/components/Switch/Switch.variants.js +16 -12
  60. package/dist/components/Tabs/Tabs.js +1 -1
  61. package/dist/components/Tabs/Tabs.variants.js +45 -24
  62. package/dist/components/Tabs/components/Content.js +1 -1
  63. package/dist/components/Tabs/components/List.js +1 -1
  64. package/dist/components/Tabs/components/Trigger.js +9 -8
  65. package/dist/components/TagSelect/components/Wrapper/Wrapper.js +98 -49
  66. package/dist/components/TimePicker/components/Wrapper/Wrapper.js +1 -1
  67. package/dist/components/Toast/Toast.js +57 -55
  68. package/dist/components/VirtualizedTable/VirtualizedTable.js +117 -0
  69. package/dist/components/VirtualizedTable/VirtualizedTable.variants.js +5 -0
  70. package/dist/components/VirtualizedTable/assets/chevron-down.js +25 -0
  71. package/dist/components/VirtualizedTable/assets/chevron-up.js +25 -0
  72. package/dist/components/VirtualizedTable/assets/index.js +6 -0
  73. package/dist/components/VirtualizedTable/components/Actions/Actions.js +46 -0
  74. package/dist/components/VirtualizedTable/components/Body/Body.js +25 -0
  75. package/dist/components/VirtualizedTable/components/DotPaginate/DotPaginate.js +165 -0
  76. package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +34 -0
  77. package/dist/components/VirtualizedTable/components/Filter/Filter.js +86 -0
  78. package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +48 -0
  79. package/dist/components/VirtualizedTable/components/Header/Header.js +82 -0
  80. package/dist/components/VirtualizedTable/components/Pagination/Pagination.js +45 -0
  81. package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +1871 -0
  82. package/dist/components/VirtualizedTable/components/index.js +14 -0
  83. package/dist/components/VirtualizedTable/constants/index.js +5 -0
  84. package/dist/components/VirtualizedTable/constants/pagination.js +5 -0
  85. package/dist/components/VirtualizedTable/contexts/index.js +8 -0
  86. package/dist/components/VirtualizedTable/contexts/table.context.js +31 -0
  87. package/dist/components/VirtualizedTable/contexts/table.hook.js +11 -0
  88. package/dist/components/VirtualizedTable/contexts/table.provider.js +82 -0
  89. package/dist/components/index.js +44 -40
  90. package/dist/{createLucideIcon-BpsAkT97.js → createLucideIcon-D2CN7Ma9.js} +4 -4
  91. package/dist/debounce-BFejQm9P.js +200 -0
  92. package/dist/{index-D3xzCzcO.js → index-0XtjXVpJ.js} +2 -2
  93. package/dist/index-BAEWsOG1.js +27 -0
  94. package/dist/index-BVRIAMfe.js +36 -0
  95. package/dist/index-BZPx6jYI.js +8 -0
  96. package/dist/{index-Oq5GlCHP.js → index-Bn4c-gww.js} +1 -1
  97. package/dist/index-CffpTFMi.js +137 -0
  98. package/dist/{index-BAraV3ai.js → index-DQJhMz8c.js} +1 -1
  99. package/dist/index-DdXGVVBv.js +15 -0
  100. package/dist/index-Dx2grAuN.js +1742 -0
  101. package/dist/{index-h-Ul0anl.js → index-N2OStZoU.js} +1 -1
  102. package/dist/{index-BXuxPoz7.js → index-amYX3uxF.js} +18 -17
  103. package/dist/{index-DB2XhXHn.js → index-l3NwplN0.js} +11 -10
  104. package/dist/{index-iXyXtdgP.js → index-sp5ZfG6g.js} +1 -1
  105. package/dist/index.d.ts +112 -10
  106. package/dist/index.js +41 -37
  107. package/dist/package.json +31 -23
  108. package/dist/styles.css +1 -1
  109. package/dist/ui/civo-theme.css +204 -189
  110. package/dist/ui/kubefirst-theme.css +3 -1
  111. package/dist/ui/theme.css +2 -2
  112. package/dist/{x-BPcqkRZd.js → x-4F_5p77m.js} +1 -1
  113. package/package.json +31 -23
  114. package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
  115. package/dist/chevron-up-RLP4nX7V.js +0 -54
  116. package/dist/index-C9T9HQaa.js +0 -423
  117. package/dist/index-CZnD2QxM.js +0 -32
  118. 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 p } from "react/jsx-runtime";
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 { r as x } from "./index-C9T9HQaa.js";
7
- import { R as A } from "./index-iXyXtdgP.js";
8
- import { R as E } from "./Combination-VYaRRJBZ.js";
9
- import { cn as f } from "./utils/index.js";
10
- import { buttonCloseVariants as N, modalVariants as R } from "./components/Modal/components/Wrapper/Wrapper.variants.js";
11
- import { X as k } from "./x-BPcqkRZd.js";
12
- const B = ({
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(E, { children: /* @__PURE__ */ p(
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__ */ p(
44
+ /* @__PURE__ */ f(
45
45
  "div",
46
46
  {
47
- className: f(
48
- R({
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__ */ p(
56
+ /* @__PURE__ */ f(
57
57
  "button",
58
58
  {
59
- className: f(
60
- N({
59
+ className: p(
60
+ k({
61
61
  className: d
62
62
  })
63
63
  ),
64
64
  onClick: a,
65
65
  children: [
66
- /* @__PURE__ */ n(k, {}),
67
- /* @__PURE__ */ n(A, { children: "Dismiss modal" })
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 ? x.createPortal(
89
- /* @__PURE__ */ n(B, { ...d, onClose: t }),
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
- B as W
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-BpsAkT97.js";
1
+ import { c as o } from "./createLucideIcon-D2CN7Ma9.js";
2
2
  /**
3
- * @license lucide-react v0.542.0 - ISC
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-iXyXtdgP.js";
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-BPcqkRZd.js";
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-Oq5GlCHP.js";
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,5 +1,5 @@
1
1
  import "react/jsx-runtime";
2
- import { A as p } from "../../../index-Oq5GlCHP.js";
2
+ import { A as p } from "../../../index-Bn4c-gww.js";
3
3
  import "../../Button/Button.js";
4
4
  import "../../../utils/index.js";
5
5
  export {
@@ -1,4 +1,4 @@
1
- import { A as g } from "../../../index-Oq5GlCHP.js";
1
+ import { A as g } from "../../../index-Bn4c-gww.js";
2
2
  export {
3
3
  g as AlertDialogTrigger
4
4
  };
@@ -1,83 +1,75 @@
1
- import { jsxs as v, jsx as l } from "react/jsx-runtime";
2
- import { forwardRef as C, useRef as i, useId as R, useImperativeHandle as A } from "react";
3
- import { cn as p } from "../../utils/index.js";
4
- import { labelVariants as O, autocompleteVariants as V } from "./Autocomplete.variants.js";
5
- import { useAutocomplete as g } from "./hooks/useAutocomplete.js";
6
- import { List as j } from "./components/List/List.js";
7
- const y = C(
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: c = "off",
10
- className: a,
11
- label: n,
12
- labelClassName: d,
13
- name: t,
14
- options: u,
15
- placeholder: f,
16
- placeHolderEmptyValues: h = "No values...",
17
- placeHolderEmptyValuesClassName: w,
18
- theme: x,
19
- variant: r,
20
- onChange: N
21
- }, b) => {
22
- const s = i(null), o = i(null), m = R();
23
- A(b, () => o.current, [o]);
24
- const e = g({
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: s,
28
- onChange: N
26
+ wrapperRef: a,
27
+ onChange: w
29
28
  });
30
- return /* @__PURE__ */ v(
29
+ return /* @__PURE__ */ N(
31
30
  "div",
32
31
  {
33
- ref: s,
32
+ ref: a,
34
33
  className: "relative flex flex-col",
35
- "data-theme": x,
34
+ "data-theme": v,
36
35
  children: [
37
- n ? /* @__PURE__ */ l(
36
+ t ? /* @__PURE__ */ l(
38
37
  "label",
39
38
  {
40
- htmlFor: t ?? m,
41
- className: p(
42
- O({
43
- variant: r,
44
- className: d
39
+ htmlFor: r ?? n,
40
+ className: m(
41
+ A({
42
+ className: p
45
43
  })
46
44
  ),
47
- children: n
45
+ children: t
48
46
  }
49
47
  ) : null,
50
48
  /* @__PURE__ */ l(
51
49
  "input",
52
50
  {
53
51
  ref: o,
54
- id: t ?? m,
52
+ id: t ? r ?? n : void 0,
55
53
  type: "text",
56
- name: t,
54
+ name: r,
57
55
  role: "combobox",
58
- autoComplete: c,
59
- className: p(
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: f,
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
- j,
65
+ g,
73
66
  {
74
- className: a,
67
+ className: s,
75
68
  inputRef: o,
76
- wrapperRef: s,
69
+ wrapperRef: a,
77
70
  options: e.newOptions,
78
- placeholder: h,
79
- placeholderClassName: w,
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
- y.displayName = "Autocomplete";
81
+ j.displayName = "Autocomplete";
90
82
  export {
91
- y as Autocomplete
83
+ j as Autocomplete
92
84
  };
@@ -1,50 +1,31 @@
1
- import { c as a } from "../../index-D29mdTf5.js";
2
- const t = a(
3
- [
4
- "flex",
5
- "w-full",
6
- "rounded-md",
7
- "border",
8
- "border-zinc-200",
9
- "bg-transparent",
10
- "text-zinc-700",
11
- "transition-colors",
12
- "placeholder:text-muted-foreground",
13
- "focus-visible:outline-none",
14
- "focus-visible:ring-1",
15
- "focus-visible:ring-ring",
16
- "disabled:cursor-not-allowed",
17
- "disabled:opacity-50",
18
- "shadow-2xs",
19
- "py-1",
20
- "px-2",
21
- "focus:ring-kubefirst-primary",
22
- "civo:focus:focus:ring-blue-400"
23
- ],
24
- {
25
- variants: {
26
- variant: {
27
- default: ""
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
- t as autocompleteVariants,
49
- e as labelVariants
29
+ e as autocompleteVariants,
30
+ i as labelVariants
50
31
  };
@@ -1,58 +1,48 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import { useRef as p } from "react";
3
- import { cn as s } from "../../../../utils/index.js";
4
- import { emptyListVariants as u, buttonVariants as b, listItemVariants as N, listVariants as d } from "./List.variants.js";
5
- import { useNavigationUlList as h } from "../../hooks/useNavigationList.js";
6
- const I = ({
7
- className: i,
8
- inputRef: n,
9
- options: e,
10
- placeholder: m,
11
- placeholderClassName: a,
12
- variant: t,
13
- wrapperRef: c,
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 o = p(null);
17
- return h({ ulRef: o, inputRef: n, wrapperRef: c, options: e }), e.length === 0 ? /* @__PURE__ */ r(
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: s(
21
- u({
22
- variant: t,
23
- className: a
19
+ className: r(
20
+ p({
21
+ className: o
24
22
  })
25
23
  ),
26
- children: m
24
+ children: l
27
25
  }
28
- ) : /* @__PURE__ */ r(
29
- "ul",
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
- ref: o,
32
- role: "listbox",
33
- className: s(d({ variant: t, className: i })),
34
- children: e.map(({ value: l }) => /* @__PURE__ */ r(
35
- "li",
29
+ role: "option",
30
+ tabIndex: 0,
31
+ className: r(b()),
32
+ children: /* @__PURE__ */ t(
33
+ "button",
36
34
  {
37
- role: "option",
38
- tabIndex: 0,
39
- className: s(N({ variant: t })),
40
- children: /* @__PURE__ */ r(
41
- "button",
42
- {
43
- type: "button",
44
- role: "button",
45
- className: s(b({ variant: t })),
46
- onClick: () => f(l),
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
- I as List
47
+ y as List
58
48
  };
@@ -1,71 +1,36 @@
1
- import { c as t } from "../../../../index-D29mdTf5.js";
2
- const e = t(["max-h-[250px]", "overflow-y-auto"], {
3
- variants: {
4
- variant: {
5
- default: "bg-white"
6
- }
7
- },
8
- defaultVariants: {
9
- variant: "default"
10
- }
11
- }), r = t(
12
- ["p-1", "text-center", "w-full", "block", "bg-white"],
13
- {
14
- variants: {
15
- variant: {
16
- default: ""
17
- }
18
- },
19
- defaultVariants: {
20
- variant: "default"
21
- }
22
- }
23
- ), i = t(
24
- [
25
- "focus-visible:outline-none",
26
- "focus:bg-purple-100",
27
- "hover:bg-purple-100",
28
- "border-transparent",
29
- "civo:focus:bg-blue-100",
30
- "civo:hover:bg-blue-100"
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
- n as buttonVariants,
68
- r as emptyListVariants,
69
- i as listItemVariants,
70
- e as listVariants
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-BpsAkT97.js";
5
+ import { c as y } from "../../createLucideIcon-D2CN7Ma9.js";
6
6
  /**
7
- * @license lucide-react v0.542.0 - ISC
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-h-Ul0anl.js";
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++) {