@konstructio/ui 0.1.2-alpha.44 → 0.1.2-alpha.47

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 (68) hide show
  1. package/dist/components/AlertDialog/AlertDialog.js +39 -37
  2. package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
  3. package/dist/components/AlertDialog/components/index.js +1 -1
  4. package/dist/components/Badge/Badge.js +23 -26
  5. package/dist/components/Badge/Badge.variants.js +1 -1
  6. package/dist/components/Button/Button.variants.js +108 -98
  7. package/dist/components/Checkbox/Checkbox.js +104 -100
  8. package/dist/components/Checkbox/Checkbox.variants.js +30 -7
  9. package/dist/components/Counter/Counter.js +210 -0
  10. package/dist/components/Counter/Counter.variants.js +70 -0
  11. package/dist/components/Filter/Filter.js +1 -1
  12. package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +9 -10
  13. package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +76 -43
  14. package/dist/components/Filter/components/ResetButton/ResetButton.js +21 -32
  15. package/dist/components/Filter/events/index.js +3 -3
  16. package/dist/components/ImageUpload/ImageUpload.js +221 -0
  17. package/dist/components/ImageUpload/ImageUpload.variants.js +109 -0
  18. package/dist/components/Input/Input.variants.js +10 -2
  19. package/dist/components/PhoneNumberInput/PhoneNumberInput.variants.js +4 -4
  20. package/dist/components/PhoneNumberInput/components/FlagContent/FlagContent.js +16 -7
  21. package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +92 -74
  22. package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +53 -29
  23. package/dist/components/PhoneNumberInput/components/Wrapper.js +139 -120
  24. package/dist/components/Radio/Radio.js +47 -44
  25. package/dist/components/Radio/Radio.variants.js +12 -8
  26. package/dist/components/Select/Select.js +48 -0
  27. package/dist/components/{Dropdown/Dropdown.variants.js → Select/Select.variants.js} +3 -3
  28. package/dist/components/{Dropdown → Select}/components/List/List.js +48 -43
  29. package/dist/components/{Dropdown → Select}/components/List/List.variants.js +8 -5
  30. package/dist/components/{Dropdown → Select}/components/ListItem/ListItem.js +20 -20
  31. package/dist/components/{Dropdown → Select}/components/ListItem/ListItem.variants.js +3 -2
  32. package/dist/components/{Dropdown → Select}/components/Wrapper.js +70 -70
  33. package/dist/components/Select/contexts/index.js +6 -0
  34. package/dist/components/{Dropdown/contexts/dropdown.context.js → Select/contexts/select.context.js} +2 -2
  35. package/dist/components/Select/contexts/select.hook.js +11 -0
  36. package/dist/components/Select/contexts/select.provider.js +58 -0
  37. package/dist/components/{Dropdown → Select}/hooks/useNavigationList.js +3 -3
  38. package/dist/components/{Dropdown/hooks/useDropdown.js → Select/hooks/useSelect.js} +33 -33
  39. package/dist/components/Switch/Switch.js +153 -125
  40. package/dist/components/Switch/Switch.variants.js +15 -6
  41. package/dist/components/TimePicker/TimePicker.variants.js +11 -6
  42. package/dist/components/TimePicker/components/MeridianList/MeridianList.js +30 -20
  43. package/dist/components/TimePicker/components/Wrapper/Wrapper.js +50 -35
  44. package/dist/components/Typography/Typography.js +24 -28
  45. package/dist/components/Typography/Typography.variants.js +49 -46
  46. package/dist/components/VirtualizedTable/components/Actions/Actions.js +14 -14
  47. package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +10 -10
  48. package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +1 -1
  49. package/dist/components/index.js +84 -80
  50. package/dist/{index-CPU02rhe.js → index-D6KzX_ef.js} +13 -12
  51. package/dist/index.d.ts +134 -81
  52. package/dist/index.js +114 -110
  53. package/dist/package.json +4 -4
  54. package/dist/styles.css +1 -1
  55. package/dist/ui/civo-theme.css +6 -5
  56. package/dist/ui/theme.css +27 -0
  57. package/dist/x-BXShoIAM.js +8 -0
  58. package/package.json +4 -4
  59. package/dist/components/Dropdown/Dropdown.js +0 -48
  60. package/dist/components/Dropdown/contexts/dropdown.hook.js +0 -13
  61. package/dist/components/Dropdown/contexts/dropdown.provider.js +0 -58
  62. package/dist/components/Dropdown/contexts/index.js +0 -6
  63. package/dist/components/NumberInput/NumberInput.js +0 -179
  64. package/dist/components/NumberInput/NumberInput.variants.js +0 -50
  65. /package/dist/components/{Dropdown → Select}/components/EmptyList.js +0 -0
  66. /package/dist/components/{Dropdown → Select}/components/index.js +0 -0
  67. /package/dist/components/{Dropdown → Select}/constants/index.js +0 -0
  68. /package/dist/components/{Dropdown → Select}/constants/pagination.js +0 -0
@@ -1,53 +1,54 @@
1
- import { jsxs as n, jsx as s } from "react/jsx-runtime";
2
- import { forwardRef as g, useId as j, useCallback as w } from "react";
1
+ import { jsxs as c, jsx as s } from "react/jsx-runtime";
2
+ import { forwardRef as V, useId as j, useCallback as w } from "react";
3
+ import { Typography as d } from "../Typography/Typography.js";
3
4
  import { cn as a } from "../../utils/index.js";
4
- import { radioVariants as y, labelRadioVariants as t, wrapperRadioVariants as F } from "./Radio.variants.js";
5
- const $ = g(
5
+ import { radioVariants as F, labelRadioVariants as p, wrapperRadioVariants as $ } from "./Radio.variants.js";
6
+ const C = V(
6
7
  ({
7
8
  checked: r = !1,
8
- className: p,
9
- defaultChecked: o,
9
+ className: f,
10
+ defaultChecked: l,
10
11
  disabled: e,
11
- label: f,
12
- labelTextClassName: N,
13
- description: l,
14
- descriptionClassName: h,
15
- name: i,
16
- theme: x,
17
- value: m,
18
- wrapperClassName: R,
19
- onChange: c
20
- }, u) => {
21
- const d = `${j()}-${i}`, b = w(
22
- (V) => {
23
- c?.(V);
12
+ label: N,
13
+ labelTextClassName: h,
14
+ description: o,
15
+ descriptionClassName: x,
16
+ name: m,
17
+ theme: R,
18
+ value: n,
19
+ wrapperClassName: u,
20
+ onChange: i
21
+ }, y) => {
22
+ const t = `${j()}-${m}`, b = w(
23
+ (g) => {
24
+ i?.(g);
24
25
  },
25
- [c]
26
+ [i]
26
27
  );
27
- return /* @__PURE__ */ n(
28
+ return /* @__PURE__ */ c(
28
29
  "label",
29
30
  {
30
- htmlFor: d,
31
+ htmlFor: t,
31
32
  className: a(
32
- F({
33
- className: R,
33
+ $({
34
+ className: u,
34
35
  disabled: e || !1
35
36
  })
36
37
  ),
37
- "data-theme": x,
38
+ "data-theme": R,
38
39
  children: [
39
40
  /* @__PURE__ */ s(
40
41
  "input",
41
42
  {
42
- ref: u,
43
- id: d,
43
+ ref: y,
44
+ id: t,
44
45
  type: "radio",
45
- name: i,
46
- value: m,
46
+ name: m,
47
+ value: n,
47
48
  checked: r,
48
- defaultChecked: o,
49
+ defaultChecked: l,
49
50
  className: "hidden peer",
50
- onChange: () => b(m),
51
+ onChange: () => b(n),
51
52
  disabled: e
52
53
  }
53
54
  ),
@@ -55,31 +56,33 @@ const $ = g(
55
56
  "span",
56
57
  {
57
58
  className: a(
58
- y({
59
- className: p,
59
+ F({
60
+ className: f,
60
61
  disabled: e || !1,
61
- checked: r || o || !1
62
+ checked: r || l || !1
62
63
  })
63
64
  )
64
65
  }
65
66
  ),
66
- /* @__PURE__ */ n("div", { className: a(l && "flex flex-col gap-1"), children: [
67
+ /* @__PURE__ */ c("div", { className: a(o && "flex flex-col gap-1"), children: [
67
68
  /* @__PURE__ */ s(
68
- "span",
69
+ d,
69
70
  {
71
+ component: "span",
70
72
  className: a(
71
- t({ className: N })
73
+ p({ className: h })
72
74
  ),
73
- children: f
75
+ children: N
74
76
  }
75
77
  ),
76
- l && /* @__PURE__ */ s(
77
- "span",
78
+ o && /* @__PURE__ */ s(
79
+ d,
78
80
  {
81
+ component: "span",
79
82
  className: a(
80
- t({ className: h })
83
+ p({ className: x })
81
84
  ),
82
- children: l
85
+ children: o
83
86
  }
84
87
  )
85
88
  ] })
@@ -88,7 +91,7 @@ const $ = g(
88
91
  );
89
92
  }
90
93
  );
91
- $.displayName = "KonstructRadio";
94
+ C.displayName = "KonstructRadio";
92
95
  export {
93
- $ as Radio
96
+ C as Radio
94
97
  };
@@ -15,7 +15,8 @@ const a = e(
15
15
  ), o = e(
16
16
  [
17
17
  "border",
18
- "border-gray-300",
18
+ "border-zinc-400",
19
+ "dark:border-metal-600",
19
20
  "duration-300",
20
21
  "inline-block",
21
22
  "rounded-full",
@@ -61,22 +62,25 @@ const a = e(
61
62
  disabled: !0,
62
63
  checked: !0,
63
64
  class: [
64
- "peer-checked:border-gray-300",
65
- "peer-checked:before:bg-gray-300",
65
+ "peer-checked:border-zinc-300",
66
+ "peer-checked:before:bg-zinc-300",
66
67
  "cursor-not-allowed",
67
- "[&+span]:cursor-not-allowed"
68
+ "[&+span]:cursor-not-allowed",
69
+ "dark:peer-checked:before:bg-aurora-500/50",
70
+ "dark:peer-checked:border-aurora-500/50"
68
71
  ]
69
72
  },
70
73
  {
71
74
  disabled: !0,
72
75
  checked: !1,
73
76
  class: [
74
- "peer-checked:border-gray-200",
75
- "peer-checked:border-gray-200",
76
- "peer-checked:before:bg-gray-200",
77
+ "peer-checked:border-zinc-300",
78
+ "peer-checked:before:bg-zinc-50",
77
79
  "cursor-not-allowed",
78
80
  "[&+span]:cursor-not-allowed",
79
- "bg-gray-50"
81
+ "bg-gray-50",
82
+ "dark:bg-metal-800",
83
+ "dark:bg-metal-800"
80
84
  ]
81
85
  }
82
86
  ],
@@ -0,0 +1,48 @@
1
+ import { jsx as e, jsxs as h } from "react/jsx-runtime";
2
+ import { forwardRef as v } from "react";
3
+ import { cn as l } from "../../utils/index.js";
4
+ import { SelectProvider as N } from "./contexts/select.provider.js";
5
+ import { Wrapper as j } from "./components/Wrapper.js";
6
+ const W = v(
7
+ ({
8
+ error: t,
9
+ errorClassName: r,
10
+ helperText: s,
11
+ helperTextClassName: a,
12
+ highlightSearch: c,
13
+ mainWrapperClassName: o,
14
+ name: m,
15
+ value: p,
16
+ options: d,
17
+ onChange: f,
18
+ onBlur: i,
19
+ ...n
20
+ }, x) => /* @__PURE__ */ e(
21
+ N,
22
+ {
23
+ highlightSearch: c,
24
+ name: m,
25
+ value: p,
26
+ options: d,
27
+ onBlur: i,
28
+ onChange: f,
29
+ children: /* @__PURE__ */ h("div", { className: l("relative w-full", o), children: [
30
+ /* @__PURE__ */ e(
31
+ j,
32
+ {
33
+ error: t,
34
+ name: m,
35
+ ref: x,
36
+ onBlur: i,
37
+ ...n
38
+ }
39
+ ),
40
+ t ? /* @__PURE__ */ e("span", { className: l("text-xs text-red-700", r), children: t }) : null,
41
+ !t && s ? /* @__PURE__ */ e("span", { className: l("text-xs text-metal-600", a), children: s }) : null
42
+ ] })
43
+ }
44
+ )
45
+ );
46
+ export {
47
+ W as Select
48
+ };
@@ -52,7 +52,7 @@ const a = e(
52
52
  "bg-transparent",
53
53
  "border-none",
54
54
  "outline-none",
55
- "text-zinc-700",
55
+ "text-metal-700",
56
56
  "text-sm",
57
57
  "capitalize",
58
58
  "placeholder:text-sm",
@@ -69,7 +69,7 @@ const a = e(
69
69
  "dark:text-metal-50"
70
70
  ]);
71
71
  export {
72
- a as dropdownVariants,
73
72
  t as inputVariants,
74
- d as labelVariants
73
+ d as labelVariants,
74
+ a as selectVariants
75
75
  };
@@ -3,75 +3,75 @@ import { S as Z } from "../../../../index-BvoZGpli.js";
3
3
  import { d as B } from "../../../../debounce-BFejQm9P.js";
4
4
  import { forwardRef as G, useRef as C, useState as J, useImperativeHandle as K, useMemo as M, useEffect as Q } from "react";
5
5
  import { Loading as R } from "../../../Loading/Loading.js";
6
- import { cn as s } from "../../../../utils/index.js";
6
+ import { cn as o } from "../../../../utils/index.js";
7
7
  import { useNavigationUlList as W } from "../../hooks/useNavigationList.js";
8
8
  import { ListItem as b } from "../ListItem/ListItem.js";
9
9
  import { listVariants as X } from "./List.variants.js";
10
10
  import { DEFAULT_LIST_SIZE as Y } from "../../constants/pagination.js";
11
- import { useDropdownContext as $ } from "../../contexts/dropdown.hook.js";
11
+ import { useSelectContext as $ } from "../../contexts/select.hook.js";
12
12
  const fe = G(
13
13
  ({
14
14
  additionalOptions: F,
15
15
  className: N,
16
- inputRef: i,
16
+ inputRef: l,
17
17
  isLoading: E,
18
- itemClassName: l,
18
+ itemClassName: i,
19
19
  name: I,
20
- searchable: y = !1,
20
+ searchable: x = !1,
21
21
  listItemSecondRowClassName: c,
22
- wrapperInputRef: j,
22
+ wrapperInputRef: S,
23
23
  isInfiniteScrollEnabled: u,
24
24
  onFetchMoreOptions: f,
25
- noOptionsText: L
26
- }, O) => {
27
- const n = C(null), m = C(null), [p, w] = J(!1), {
28
- isOpen: P,
25
+ noOptionsText: y
26
+ }, j) => {
27
+ const n = C(null), m = C(null), [p, L] = J(!1), {
28
+ isOpen: O,
29
29
  searchTerm: g,
30
- canFilter: S,
30
+ canFilter: P,
31
31
  canContinueFetching: a,
32
32
  page: d,
33
- options: x,
33
+ options: w,
34
34
  isTyping: k,
35
35
  setOptions: T,
36
- setPage: D,
37
- setCanContinueFetching: U
36
+ setPage: U,
37
+ setCanContinueFetching: _
38
38
  } = $();
39
- K(O, () => n.current, [n]);
40
- const h = y && S ? x.filter((e) => {
39
+ K(j, () => n.current, [n]);
40
+ const h = x && P ? w.filter((e) => {
41
41
  const t = g.toLowerCase();
42
42
  return (typeof e.label == "string" ? e.label.toLowerCase() : "").includes(t);
43
- }) : x;
43
+ }) : w;
44
44
  W({
45
45
  ulRef: n,
46
- wrapperInputRef: j,
47
- searchable: y,
46
+ wrapperInputRef: S,
47
+ searchable: x,
48
48
  filteredOptions: h
49
49
  });
50
- const _ = h.filter(
51
- (e, t, o) => t === o.findIndex((v) => v.value === e.value)
52
- ), q = h.length === 0, z = M(
50
+ const q = h.filter(
51
+ (e, t, s) => t === s.findIndex((v) => v.value === e.value)
52
+ ), z = h.length === 0, A = M(
53
53
  () => B(async (e) => {
54
54
  const [t] = e;
55
55
  if (t.isIntersecting && !p && f && a)
56
56
  try {
57
- w(!0);
58
- const o = d + 1, { data: v, hasMore: A } = await f({
59
- page: o,
57
+ L(!0);
58
+ const s = d + 1, { data: v, hasMore: D } = await f({
59
+ page: s,
60
60
  pageSize: Y,
61
61
  termOfSearch: g
62
62
  });
63
- D(o), U(A), T((H) => [...H, ...v]);
63
+ U(s), _(D), T((H) => [...H, ...v]);
64
64
  } catch {
65
65
  console.error("Error fetching more options");
66
66
  } finally {
67
- w(!1);
67
+ L(!1);
68
68
  }
69
69
  }, 100),
70
70
  [p, f, g, d]
71
71
  );
72
72
  return Q(() => {
73
73
  if (u && a && m.current && !k) {
74
- const e = new IntersectionObserver(z, {
74
+ const e = new IntersectionObserver(A, {
75
75
  threshold: 0.1
76
76
  });
77
77
  return e.observe(m.current), () => e.disconnect();
@@ -88,36 +88,36 @@ const fe = G(
88
88
  ref: n,
89
89
  title: I,
90
90
  role: "listbox",
91
- className: s(X({ className: N })),
92
- "data-state": P ? "open" : "closed",
91
+ className: o(X({ className: N })),
92
+ "data-state": O ? "open" : "closed",
93
93
  children: [
94
94
  E ? /* @__PURE__ */ r(
95
95
  b,
96
96
  {
97
- className: s("select-none", l),
97
+ className: o("select-none", i),
98
98
  isClickable: !1,
99
- inputRef: i,
99
+ inputRef: l,
100
100
  value: "Loading...",
101
101
  label: "Loading...",
102
102
  listItemSecondRowClassName: c
103
103
  }
104
- ) : q ? /* @__PURE__ */ r(
104
+ ) : z ? /* @__PURE__ */ r(
105
105
  b,
106
106
  {
107
107
  isEmpty: !0,
108
- className: s("select-none", l),
108
+ className: o("select-none", i),
109
109
  isClickable: !1,
110
- inputRef: i,
111
- value: L ?? "",
112
- label: L ?? "No options",
110
+ inputRef: l,
111
+ value: y ?? "",
112
+ label: y ?? "No options",
113
113
  listItemSecondRowClassName: c
114
114
  }
115
- ) : _.map((e) => /* @__PURE__ */ r(
115
+ ) : q.map((e) => /* @__PURE__ */ r(
116
116
  b,
117
117
  {
118
- className: s("select-none", l),
118
+ className: o("select-none", i),
119
119
  isClickable: !0,
120
- inputRef: i,
120
+ inputRef: l,
121
121
  listItemSecondRowClassName: c,
122
122
  ...e
123
123
  },
@@ -137,14 +137,17 @@ const fe = G(
137
137
  F?.map((e, t) => /* @__PURE__ */ r("li", { role: "option", "data-action": "true", children: /* @__PURE__ */ r(
138
138
  Z,
139
139
  {
140
- className: s(
140
+ className: o(
141
141
  "flex",
142
- "p-2",
142
+ "min-h-10",
143
+ "py-2",
144
+ "px-6",
143
145
  "w-full",
144
146
  "h-full",
145
147
  "gap-1",
146
148
  "items-center",
147
149
  "text-sm",
150
+ "[&>svg]:-ml-1",
148
151
  "[&>svg]:w-3.5",
149
152
  "[&>svg]:h-3.5",
150
153
  "[&>svg]:shrink-0",
@@ -152,7 +155,9 @@ const fe = G(
152
155
  "select-none",
153
156
  "hover:bg-gray-50",
154
157
  "hover:dark:bg-metal-700",
155
- "focus:outline-0"
158
+ "focus:outline-0",
159
+ "text-blue-600",
160
+ "dark:text-aurora-500"
156
161
  ),
157
162
  children: e
158
163
  }
@@ -1,5 +1,6 @@
1
- import { c as o } from "../../../../index-D29mdTf5.js";
2
- const t = o([
1
+ import { c as t } from "../../../../index-D29mdTf5.js";
2
+ const o = t([
3
+ "scrollbar",
3
4
  "absolute",
4
5
  "bg-white",
5
6
  "border",
@@ -11,7 +12,7 @@ const t = o([
11
12
  "top-full",
12
13
  "w-full",
13
14
  "z-10",
14
- "max-h-46.25",
15
+ "max-h-44",
15
16
  "overflow-y-auto",
16
17
  "border-gray-200",
17
18
  "text-zinc-700",
@@ -21,8 +22,10 @@ const t = o([
21
22
  "duration-200",
22
23
  "dark:bg-metal-800",
23
24
  "dark:border-metal-700",
24
- "dark:text-metal-50"
25
+ "dark:text-metal-50",
26
+ "[&>li:first-child]:mt-2",
27
+ "[&>li:last-child]:mb-2"
25
28
  ]);
26
29
  export {
27
- t as listVariants
30
+ o as listVariants
28
31
  };
@@ -1,9 +1,9 @@
1
1
  import { jsx as n, jsxs as d } from "react/jsx-runtime";
2
2
  import { useRef as I, useCallback as u } from "react";
3
- import { cn as l } from "../../../../utils/index.js";
3
+ import { cn as s } from "../../../../utils/index.js";
4
4
  import { Typography as y } from "../../../Typography/Typography.js";
5
5
  import { listItemVariants as L } from "./ListItem.variants.js";
6
- import { useDropdownContext as V } from "../../contexts/dropdown.hook.js";
6
+ import { useSelectContext as V } from "../../contexts/select.hook.js";
7
7
  function j(c, r) {
8
8
  const i = r.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), o = new RegExp(`(${i})`, "gi");
9
9
  return c.split(o).map((a, t) => a.toLowerCase() === r.toLowerCase() ? /* @__PURE__ */ n(
@@ -23,18 +23,18 @@ const K = ({
23
23
  listItemSecondRowClassName: a,
24
24
  ...t
25
25
  }) => {
26
- const { searchTerm: m, highlightSearchEnabled: h, setValue: p, toggleOpen: x } = V(), b = I(null), f = u(
26
+ const { searchTerm: m, highlightSearchEnabled: h, setValue: x, toggleOpen: g } = V(), b = I(null), f = u(
27
27
  (e) => {
28
- p(e.value, o), x(!1);
28
+ x(e.value, o), g(!1);
29
29
  },
30
- [p, x]
31
- ), w = u(
32
- (e, s) => {
33
- e.key === "Enter" && (e.stopPropagation(), f(s));
30
+ [x, g]
31
+ ), N = u(
32
+ (e, l) => {
33
+ e.key === "Enter" && (e.stopPropagation(), f(l));
34
34
  },
35
35
  [f]
36
- ), N = u(
37
- ({ label: e, rightComponent: s, subLabel: g, rightComponentClassName: C }) => {
36
+ ), w = u(
37
+ ({ label: e, rightComponent: l, subLabel: p, rightComponentClassName: C }) => {
38
38
  if (c)
39
39
  return /* @__PURE__ */ n(
40
40
  y,
@@ -53,25 +53,25 @@ const K = ({
53
53
  variant: "body2",
54
54
  className: "text-zinc-700 dark:text-metal-50 font-medium",
55
55
  children: [
56
- s ? /* @__PURE__ */ d(
56
+ l ? /* @__PURE__ */ d(
57
57
  "span",
58
58
  {
59
- className: l("flex gap-2 items-center", C),
59
+ className: s("flex gap-2 items-center", C),
60
60
  children: [
61
61
  k,
62
62
  " ",
63
- s
63
+ l
64
64
  ]
65
65
  }
66
66
  ) : k,
67
- g ? /* @__PURE__ */ n(
67
+ p ? /* @__PURE__ */ n(
68
68
  "span",
69
69
  {
70
- className: l(
70
+ className: s(
71
71
  "block font-normal text-sm text-metal-800 dark:text-metal-50",
72
72
  a
73
73
  ),
74
- children: g
74
+ children: p
75
75
  }
76
76
  ) : null
77
77
  ]
@@ -86,17 +86,17 @@ const K = ({
86
86
  ref: b,
87
87
  role: "option",
88
88
  "data-action": "false",
89
- className: l(L({ className: i })),
89
+ className: s(L({ className: i })),
90
90
  tabIndex: 0,
91
91
  onClick: (e) => {
92
92
  r && (f(t), e.stopPropagation());
93
93
  },
94
- onKeyDown: (e) => w(e, t),
94
+ onKeyDown: (e) => N(e, t),
95
95
  children: [
96
96
  t.leftIcon ? /* @__PURE__ */ n(
97
97
  "span",
98
98
  {
99
- className: l(
99
+ className: s(
100
100
  "w-4 h-4 flex justify-center",
101
101
  {
102
102
  "items-center": !t.subLabel,
@@ -107,7 +107,7 @@ const K = ({
107
107
  children: t.leftIcon
108
108
  }
109
109
  ) : null,
110
- N(t)
110
+ w(t)
111
111
  ]
112
112
  }
113
113
  );
@@ -1,8 +1,8 @@
1
1
  import { c as r } from "../../../../index-D29mdTf5.js";
2
2
  const t = r([
3
3
  "cursor-pointer",
4
- "py-2",
5
- "px-2",
4
+ "py-1.5",
5
+ "px-6",
6
6
  "h-full",
7
7
  "focus-visible:outline-none",
8
8
  "m-0",
@@ -12,6 +12,7 @@ const t = r([
12
12
  "gap-3",
13
13
  "transition-bg",
14
14
  "duration-250",
15
+ "min-h-10",
15
16
  "hover:bg-gray-50",
16
17
  "focus:bg-gray-50",
17
18
  "dark:hover:bg-metal-700",