@konstructio/ui 0.1.0-alpha.5 → 0.1.0-alpha.6

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 (45) hide show
  1. package/dist/{Combination-Cvr3uETz.js → Combination-Dyw3lLGQ.js} +49 -55
  2. package/dist/Modal-CdsrVAoM.js +98 -0
  3. package/dist/{chevron-up-DgLBQCKD.js → chevron-up-RLP4nX7V.js} +1 -1
  4. package/dist/components/Alert/Alert.js +1 -1
  5. package/dist/components/AlertDialog/AlertDialog.js +1 -1
  6. package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
  7. package/dist/components/AlertDialog/components/index.js +1 -1
  8. package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
  9. package/dist/components/Checkbox/Checkbox.js +1 -1
  10. package/dist/components/Command/Command.js +1 -1
  11. package/dist/components/Command/components/Command.js +1 -1
  12. package/dist/components/Command/components/CommandEmpty.js +1 -1
  13. package/dist/components/Command/components/CommandGroup.js +1 -1
  14. package/dist/components/Command/components/CommandInput.js +2 -2
  15. package/dist/components/Command/components/CommandItem.js +1 -1
  16. package/dist/components/Command/components/CommandList.js +1 -1
  17. package/dist/components/Command/components/CommandSeparator.js +1 -1
  18. package/dist/components/Command/components/DialogContent.js +2 -2
  19. package/dist/components/Command/components/DialogOverlay.js +1 -1
  20. package/dist/components/Dropdown/components/List/List.js +40 -36
  21. package/dist/components/Dropdown/components/List/List.variants.js +3 -3
  22. package/dist/components/Dropdown/components/ListItem/ListItem.js +18 -16
  23. package/dist/components/Dropdown/components/Wrapper.js +110 -94
  24. package/dist/components/Dropdown/contexts/dropdown.context.js +6 -2
  25. package/dist/components/Dropdown/contexts/dropdown.provider.js +18 -11
  26. package/dist/components/Input/Input.js +1 -1
  27. package/dist/components/Modal/Modal.js +1 -1
  28. package/dist/components/Modal/components/Wrapper/Wrapper.js +3 -3
  29. package/dist/components/Modal/components/Wrapper/Wrapper.variants.js +4 -6
  30. package/dist/components/Modal/components/index.js +1 -1
  31. package/dist/components/NumberInput/NumberInput.js +1 -1
  32. package/dist/components/TagSelect/components/Wrapper/Wrapper.js +2 -2
  33. package/dist/components/Toast/Toast.js +1 -1
  34. package/dist/components/index.js +1 -1
  35. package/dist/{index-BuxebbOg.js → index-CI55pdPK.js} +1 -1
  36. package/dist/{index-Cz09twLl.js → index-Cj4IZ4ka.js} +1 -1
  37. package/dist/{index-1RDo-S_f.js → index-Cod3awtw.js} +1 -1
  38. package/dist/{index-C5psggHV.js → index-h-Ul0anl.js} +1 -2
  39. package/dist/index.d.ts +1 -0
  40. package/dist/index.js +1 -1
  41. package/dist/package.json +1 -1
  42. package/dist/styles.css +1 -1
  43. package/dist/{x-DU-Zw-L_.js → x-BPcqkRZd.js} +1 -1
  44. package/package.json +1 -1
  45. package/dist/Modal-DXYBiafI.js +0 -926
@@ -1,4 +1,4 @@
1
- import { jsxs as p, jsx as o } from "react/jsx-runtime";
1
+ import { jsxs as p, jsx as r } from "react/jsx-runtime";
2
2
  import { useRef as u, useCallback as s } from "react";
3
3
  import { Typography as d } from "../../../Typography/Typography.js";
4
4
  import { cn as h } from "../../../../utils/index.js";
@@ -6,32 +6,34 @@ import { listItemVariants as x } from "./ListItem.variants.js";
6
6
  import { useDropdownContext as y } from "../../contexts/dropdown.hook.js";
7
7
  const j = ({
8
8
  isClickable: a,
9
- className: c,
10
- ...e
9
+ className: i,
10
+ ...t
11
11
  }) => {
12
- const { setValue: n, toggleOpen: r } = y(), i = u(null), l = s(
13
- (t) => {
14
- n(t.value), r(!1);
12
+ const { setValue: l, toggleOpen: n } = y(), c = u(null), o = s(
13
+ (e) => {
14
+ l(e.value), n(!1);
15
15
  },
16
- [n, r]
16
+ [l, n]
17
17
  ), m = s(
18
- (t, f) => {
19
- t.key === "Enter" && l(f);
18
+ (e, f) => {
19
+ e.key === "Enter" && (e.stopPropagation(), o(f));
20
20
  },
21
- [l]
21
+ [o]
22
22
  );
23
23
  return /* @__PURE__ */ p(
24
24
  "li",
25
25
  {
26
- ref: i,
26
+ ref: c,
27
27
  role: "option",
28
- className: h(x({ className: c })),
28
+ className: h(x({ className: i })),
29
29
  tabIndex: 0,
30
- onClick: () => a && l(e),
31
- onKeyDown: (t) => m(t, e),
30
+ onClick: (e) => {
31
+ a && (o(t), e.stopPropagation());
32
+ },
33
+ onKeyDown: (e) => m(e, t),
32
34
  children: [
33
- e.leftIcon ? /* @__PURE__ */ o("span", { className: "w-4 h-4 flex justify-center items-center", children: e.leftIcon }) : null,
34
- /* @__PURE__ */ o(d, { variant: "body2", className: "text-zinc-700", children: e.label })
35
+ t.leftIcon ? /* @__PURE__ */ r("span", { className: "w-4 h-4 flex justify-center items-center", children: t.leftIcon }) : null,
36
+ /* @__PURE__ */ r(d, { variant: "body2", className: "text-zinc-700", children: t.label })
35
37
  ]
36
38
  }
37
39
  );
@@ -1,137 +1,153 @@
1
- import { jsxs as d, jsx as r } from "react/jsx-runtime";
2
- import { forwardRef as W, useId as B, useRef as R, useImperativeHandle as G, useMemo as J, useEffect as p } from "react";
1
+ import { jsxs as m, jsx as a } from "react/jsx-runtime";
2
+ import { forwardRef as W, useId as B, useRef as j, useImperativeHandle as G, useMemo as J, useEffect as N } from "react";
3
3
  import { Loading as K } from "../../Loading/Loading.js";
4
- import { Typography as O } from "../../Typography/Typography.js";
5
- import { cn as f } from "../../../utils/index.js";
6
- import { labelVariants as P, dropdownVariants as Q } from "../Dropdown.variants.js";
7
- import { useDropdown as S } from "../hooks/useDropdown.js";
8
- import { List as X } from "./List/List.js";
9
- import { C as Y } from "../../../chevron-up-DgLBQCKD.js";
10
- import { useDropdownContext as Z } from "../contexts/dropdown.hook.js";
11
- const le = W(
4
+ import { cn as p } from "../../../utils/index.js";
5
+ import { labelVariants as Q, dropdownVariants as X } from "../Dropdown.variants.js";
6
+ import { useDropdown as Y } from "../hooks/useDropdown.js";
7
+ import { List as Z } from "./List/List.js";
8
+ import { Typography as _ } from "../../Typography/Typography.js";
9
+ import { C as q } from "../../../chevron-up-RLP4nX7V.js";
10
+ import { useDropdownContext as V } from "../contexts/dropdown.hook.js";
11
+ const de = W(
12
12
  ({
13
- className: z,
14
- defaultValue: m,
15
- iconClassName: j,
16
- isLoading: u,
13
+ className: k,
14
+ defaultValue: u,
15
+ iconClassName: E,
16
+ isLoading: C,
17
17
  label: x,
18
- labelClassName: E,
19
- listClassName: L,
20
- listItemClassName: k,
21
- name: l,
22
- options: a,
23
- placeholder: D,
24
- required: h,
25
- theme: F,
26
- wrapperClassName: T
27
- }, $) => {
28
- const v = B(), o = R(null), b = R(null), { wrapperRef: s, wrapperInputRef: N, handleOpen: A, handleOpenIfClosed: H } = S({ ulRef: b }), { isOpen: w, toggleOpen: g, value: t, setValue: C } = Z(), c = l ? `${v}-${l}` : v;
29
- G($, () => o.current, [o]);
30
- const e = J(() => a.find(({ value: n }) => n === t), [a, t]);
31
- p(() => {
32
- o.current && (o.current.value = t ? e == null ? void 0 : e.value : "");
33
- }, [e, t]), p(() => {
34
- if (m && !t) {
35
- const n = a && a.find((i) => i.value === m);
36
- n && C(n.value);
18
+ labelClassName: D,
19
+ listClassName: F,
20
+ listItemClassName: M,
21
+ name: i,
22
+ options: r,
23
+ placeholder: h,
24
+ required: g,
25
+ searchable: y = !1,
26
+ theme: $,
27
+ wrapperClassName: A
28
+ }, H) => {
29
+ const I = B(), s = j(null), R = j(null), { wrapperRef: l, wrapperInputRef: L, handleOpen: O, handleOpenIfClosed: P } = Y({ ulRef: R }), { isOpen: v, toggleOpen: z, value: o, setValue: b, setSearchTerm: w, searchTerm: S } = V(), c = i ? `${I}-${i}` : I;
30
+ G(H, () => s.current, [s]);
31
+ const e = J(() => r.find(({ value: t }) => t === o), [r, o]);
32
+ N(() => {
33
+ s.current && (s.current.value = o ? e == null ? void 0 : e.value : "");
34
+ }, [e, o]), N(() => {
35
+ if (u && !o) {
36
+ const t = r && r.find((n) => n.value === u);
37
+ t && b(t.value);
37
38
  }
38
- }, [m, a, C, t]), p(() => {
39
- var i;
40
- const n = new AbortController();
41
- return (i = s.current) == null || i.addEventListener("focusout", (U) => {
42
- var y;
43
- const I = U.relatedTarget;
44
- (!I || !((y = s.current) != null && y.contains(I))) && g(!1);
39
+ }, [u, r, b, o]), N(() => {
40
+ var n;
41
+ const t = new AbortController();
42
+ return (n = l.current) == null || n.addEventListener("focusout", (d) => {
43
+ var T;
44
+ const f = d.relatedTarget;
45
+ (!f || !((T = l.current) != null && T.contains(f))) && (z(!1), w(""));
45
46
  }), () => {
46
- n.abort();
47
+ t.abort();
47
48
  };
48
- }, [g, s]);
49
- const M = () => e != null && e.leftIcon ? /* @__PURE__ */ r("span", { className: "w-4 h-4 flex justify-center items-center", children: e.leftIcon }) : null;
50
- return /* @__PURE__ */ d(
49
+ }, [z, l, w]);
50
+ const U = (t) => {
51
+ const n = t.target.value;
52
+ w(n);
53
+ const d = r.find(
54
+ (f) => f.value.toLowerCase() === n.toLowerCase()
55
+ );
56
+ d && b(d.value);
57
+ };
58
+ return /* @__PURE__ */ m(
51
59
  "div",
52
60
  {
53
- ref: s,
54
- className: f("flex flex-col w-full relative", T),
55
- "data-theme": F,
61
+ ref: l,
62
+ className: p("flex flex-col w-full relative", A),
63
+ "data-theme": $,
56
64
  children: [
57
- x ? /* @__PURE__ */ d(
65
+ x ? /* @__PURE__ */ m(
58
66
  "label",
59
67
  {
60
68
  id: c,
61
- className: f(P({ className: E })),
69
+ className: p(Q({ className: D })),
62
70
  htmlFor: c,
63
- onClick: H,
71
+ onClick: P,
64
72
  children: [
65
73
  x,
66
- h ? /* @__PURE__ */ r("span", { className: "text-red-500 ml-1", children: "*" }) : null
74
+ g ? /* @__PURE__ */ a("span", { className: "text-red-500 ml-1", children: "*" }) : null
67
75
  ]
68
76
  }
69
77
  ) : null,
70
- /* @__PURE__ */ d(
78
+ /* @__PURE__ */ m(
71
79
  "div",
72
80
  {
73
- ref: N,
81
+ ref: L,
74
82
  id: c,
75
- className: f(Q({ className: z })),
83
+ className: p(X({ className: k })),
76
84
  role: "combobox",
77
- onClick: A,
78
- "aria-expanded": w,
85
+ onClick: O,
86
+ "aria-expanded": v,
79
87
  tabIndex: 0,
80
88
  "aria-labelledby": c,
81
89
  children: [
82
- t ? /* @__PURE__ */ d(
83
- O,
90
+ /* @__PURE__ */ m("div", { className: "flex gap-3 items-center flex-1", children: [
91
+ (e == null ? void 0 : e.leftIcon) && /* @__PURE__ */ a("span", { className: "w-4 h-4 flex justify-center items-center", children: e.leftIcon }),
92
+ y ? /* @__PURE__ */ a(
93
+ "input",
94
+ {
95
+ type: "text",
96
+ value: v ? S : (e == null ? void 0 : e.label) || "",
97
+ onChange: U,
98
+ placeholder: h,
99
+ className: "flex-1 bg-transparent border-none outline-none text-zinc-700 text-base",
100
+ onClick: (t) => {
101
+ t.stopPropagation(), O();
102
+ },
103
+ "aria-label": x || h,
104
+ "aria-labelledby": c
105
+ }
106
+ ) : /* @__PURE__ */ a(
107
+ _,
108
+ {
109
+ variant: "body2",
110
+ className: "flex-1 text-zinc-700 text-base",
111
+ children: (e == null ? void 0 : e.label) || h
112
+ }
113
+ )
114
+ ] }),
115
+ C ? /* @__PURE__ */ a(K, { className: "w-4 h-4 text-zinc-500" }) : /* @__PURE__ */ a(
116
+ q,
84
117
  {
85
- variant: "body2",
86
- className: "flex gap-3 items-center text-zinc-700 text-base",
87
- children: [
88
- M(),
89
- e == null ? void 0 : e.label
90
- ]
91
- }
92
- ) : /* @__PURE__ */ r(
93
- O,
94
- {
95
- variant: "body2",
96
- className: "flex gap-3 items-center text-zinc-700 text-base",
97
- children: D
98
- }
99
- ),
100
- u ? /* @__PURE__ */ r(K, { className: "w-4 h-4 text-zinc-500" }) : /* @__PURE__ */ r(
101
- Y,
102
- {
103
- "data-state": w ? "open" : "closed",
104
- className: f(
118
+ "data-state": v ? "open" : "closed",
119
+ className: p(
105
120
  "w-4 h-4 text-zinc-500 transition-all duration-50 data-[state=open]:rotate-0 data-[state=closed]:rotate-180",
106
- j
121
+ E
107
122
  )
108
123
  }
109
124
  )
110
125
  ]
111
126
  }
112
127
  ),
113
- /* @__PURE__ */ r(
128
+ /* @__PURE__ */ a(
114
129
  "input",
115
130
  {
116
- ref: o,
131
+ ref: s,
117
132
  type: "text",
118
- name: l,
133
+ name: i,
119
134
  className: "hidden",
120
135
  "aria-hidden": "true",
121
- required: h
136
+ required: g
122
137
  }
123
138
  ),
124
- /* @__PURE__ */ r(
125
- X,
139
+ /* @__PURE__ */ a(
140
+ Z,
126
141
  {
127
- ref: b,
128
- className: L,
129
- itemClassName: k,
130
- name: l,
131
- wrapperRef: s,
132
- wrapperInputRef: N,
133
- options: a,
134
- isLoading: !!u
142
+ ref: R,
143
+ className: F,
144
+ itemClassName: M,
145
+ name: i,
146
+ wrapperRef: l,
147
+ wrapperInputRef: L,
148
+ options: r,
149
+ isLoading: !!C,
150
+ searchable: y
135
151
  }
136
152
  )
137
153
  ]
@@ -140,5 +156,5 @@ const le = W(
140
156
  }
141
157
  );
142
158
  export {
143
- le as Wrapper
159
+ de as Wrapper
144
160
  };
@@ -1,5 +1,5 @@
1
1
  import { createContext as e } from "react";
2
- const t = e({
2
+ const o = e({
3
3
  isOpen: !1,
4
4
  toggleOpen() {
5
5
  throw new Error("toggleOpen function must be overridden");
@@ -7,8 +7,12 @@ const t = e({
7
7
  value: void 0,
8
8
  setValue() {
9
9
  throw new Error("setValue function must be overridden");
10
+ },
11
+ searchTerm: "",
12
+ setSearchTerm() {
13
+ throw new Error("setSearchTerm function must be overridden");
10
14
  }
11
15
  });
12
16
  export {
13
- t as DropdownContext
17
+ o as DropdownContext
14
18
  };
@@ -1,22 +1,29 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
- import { useCallback as u } from "react";
3
- import { DropdownContext as d } from "./dropdown.context.js";
4
- import { useToggle as f } from "../../../hooks/useToggle.js";
5
- const w = ({ children: t, onChange: r, value: e, name: o }) => {
6
- const [l, p] = f(!1), s = u(
7
- (m) => {
8
- r == null || r({ target: { value: m, name: o ?? "" } });
2
+ import { useState as u, useCallback as d } from "react";
3
+ import { DropdownContext as f } from "./dropdown.context.js";
4
+ import { useToggle as v } from "../../../hooks/useToggle.js";
5
+ const D = ({ children: t, onChange: r, value: o, name: e }) => {
6
+ const [s, m] = v(!1), [l, p] = u(""), a = d(
7
+ (c) => {
8
+ r == null || r({ target: { value: c, name: e ?? "" } });
9
9
  },
10
- [r, o]
10
+ [r, e]
11
11
  );
12
12
  return /* @__PURE__ */ i(
13
- d.Provider,
13
+ f.Provider,
14
14
  {
15
- value: { value: e, isOpen: l, setValue: s, toggleOpen: p },
15
+ value: {
16
+ value: o,
17
+ isOpen: s,
18
+ setValue: a,
19
+ toggleOpen: m,
20
+ searchTerm: l,
21
+ setSearchTerm: p
22
+ },
16
23
  children: t
17
24
  }
18
25
  );
19
26
  };
20
27
  export {
21
- w as DropdownProvider
28
+ D as DropdownProvider
22
29
  };
@@ -2,7 +2,7 @@ import { jsxs as h, jsx as l } from "react/jsx-runtime";
2
2
  import s, { forwardRef as v, useId as E, useState as _ } from "react";
3
3
  import { cn as d } from "../../utils/index.js";
4
4
  import { inputVariants as k } from "./Input.variants.js";
5
- import { P as a } from "../../index-C5psggHV.js";
5
+ import { P as a } from "../../index-h-Ul0anl.js";
6
6
  function m() {
7
7
  return m = Object.assign || function(e) {
8
8
  for (var r = 1; r < arguments.length; r++) {
@@ -1,7 +1,7 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
3
  import "../../index-BCGvACM9.js";
4
- import { M as d } from "../../Modal-DXYBiafI.js";
4
+ import { M as d } from "../../Modal-CdsrVAoM.js";
5
5
  import "./components/Header/Header.js";
6
6
  import "./components/Body/Body.js";
7
7
  import "./components/Footer/Footer.js";
@@ -1,11 +1,11 @@
1
1
  import "react/jsx-runtime";
2
2
  import "../../../../index--EmNlyHx.js";
3
3
  import "react";
4
- import { W as f } from "../../../../Modal-DXYBiafI.js";
5
- import "../../../../Combination-Cvr3uETz.js";
4
+ import "../../../../Combination-Dyw3lLGQ.js";
5
+ import { W as f } from "../../../../Modal-CdsrVAoM.js";
6
6
  import "../../../../utils/index.js";
7
7
  import "./Wrapper.variants.js";
8
- import "../../../../x-DU-Zw-L_.js";
8
+ import "../../../../x-BPcqkRZd.js";
9
9
  export {
10
10
  f as Wrapper
11
11
  };
@@ -1,5 +1,5 @@
1
- import { c as o } from "../../../../index-BNmRGtA6.js";
2
- const t = o([
1
+ import { c as t } from "../../../../index-BNmRGtA6.js";
2
+ const o = t([
3
3
  "bg-metal-1000",
4
4
  "bg-white",
5
5
  "border-none",
@@ -8,18 +8,16 @@ const t = o([
8
8
  "justify-between",
9
9
  "min-h-[450px]",
10
10
  "min-w-[500px]",
11
- "overflow-auto",
12
11
  "relative",
13
12
  "rounded-md",
14
13
  "shadow-xs",
15
- "lg:overflow-hidden",
16
14
  "animate-in",
17
15
  "fade-in-0",
18
16
  "zoom-in-95",
19
17
  "duration-150",
20
18
  "shadow-kubefirst-primary",
21
19
  "colony:shadow-red-400"
22
- ]), r = o([
20
+ ]), r = t([
23
21
  "absolute",
24
22
  "right-1.5",
25
23
  "top-1.5",
@@ -30,5 +28,5 @@ const t = o([
30
28
  ]);
31
29
  export {
32
30
  r as buttonCloseVariants,
33
- t as modalVariants
31
+ o as modalVariants
34
32
  };
@@ -1,7 +1,7 @@
1
1
  import { Body as e } from "./Body/Body.js";
2
2
  import { Footer as t } from "./Footer/Footer.js";
3
3
  import { Header as m } from "./Header/Header.js";
4
- import { W as a } from "../../../Modal-DXYBiafI.js";
4
+ import { W as a } from "../../../Modal-CdsrVAoM.js";
5
5
  export {
6
6
  e as Body,
7
7
  t as Footer,
@@ -3,7 +3,7 @@ import { R as O } from "../../index--EmNlyHx.js";
3
3
  import p, { forwardRef as d, useId as N, useCallback as w } from "react";
4
4
  import { cn as y } from "../../utils/index.js";
5
5
  import { labelVariants as z, buttonVariants as j, numberInputVariants as _ } from "./NumberInput.variants.js";
6
- import { P as s } from "../../index-C5psggHV.js";
6
+ import { P as s } from "../../index-h-Ul0anl.js";
7
7
  function v() {
8
8
  return v = Object.assign || function(t) {
9
9
  for (var i = 1; i < arguments.length; i++) {
@@ -6,8 +6,8 @@ import { Tag as C } from "../../../Tag/Tag.js";
6
6
  import { cn as r } from "../../../../utils/index.js";
7
7
  import { useTagSelect as S } from "../../hooks/useTagSelect.js";
8
8
  import { labelVariants as k, tagSelectVariants as R, wrapperVariants as I } from "../../TagSelect.variants.js";
9
- import { X as O } from "../../../../x-DU-Zw-L_.js";
10
- import { C as V } from "../../../../chevron-up-DgLBQCKD.js";
9
+ import { X as O } from "../../../../x-BPcqkRZd.js";
10
+ import { C as V } from "../../../../chevron-up-RLP4nX7V.js";
11
11
  import { useTagSelect as j } from "../../contexts/TagSelect.hook.js";
12
12
  const B = w(
13
13
  ({
@@ -11,7 +11,7 @@ import { u as $ } from "../../index-DwYXX2sM.js";
11
11
  import { V as ie, R as ke } from "../../index--EmNlyHx.js";
12
12
  import { cn as q } from "../../utils/index.js";
13
13
  import { closeToastVariants as Ve, toastVariants as Ke, viewportToastVariants as He } from "./Toast.variants.js";
14
- import { X as We } from "../../x-DU-Zw-L_.js";
14
+ import { X as We } from "../../x-BPcqkRZd.js";
15
15
  var Z = "ToastProvider", [ee, Xe, $e] = _e("Toast"), [ce, Rt] = Ne("Toast", [$e]), [Ue, U] = ce(Z), ue = (e) => {
16
16
  const {
17
17
  __scopeToast: r,
@@ -11,7 +11,7 @@ import { Divider as R } from "./Divider/Divider.js";
11
11
  import { Dropdown as s } from "./Dropdown/Dropdown.js";
12
12
  import { Input as B } from "./Input/Input.js";
13
13
  import { Loading as D } from "./Loading/Loading.js";
14
- import { M as k } from "../Modal-DXYBiafI.js";
14
+ import { M as k } from "../Modal-CdsrVAoM.js";
15
15
  import { NumberInput as P } from "./NumberInput/NumberInput.js";
16
16
  import { ProgressBar as y } from "./ProgressBar/ProgressBar.js";
17
17
  import { Radio as L } from "./Radio/Radio.js";
@@ -2,7 +2,7 @@ import { jsx as i, jsxs as w } from "react/jsx-runtime";
2
2
  import * as l from "react";
3
3
  import { c as M, b as x } from "./index-Cq1I1cG9.js";
4
4
  import { u as A, b as I } from "./index-B5MIi2tR.js";
5
- import { c as v, R as $, P as L, O as F, W as G, C as W, T as j, d as B, b as D, e as Y } from "./index-1RDo-S_f.js";
5
+ import { c as v, R as $, P as L, O as F, W as G, C as W, T as j, d as B, b as D, e as Y } from "./index-Cod3awtw.js";
6
6
  import { Button as k } from "./components/Button/Button.js";
7
7
  import { cn as q } from "./utils/index.js";
8
8
  var f = "AlertDialog", [H, se] = M(f, [
@@ -1,4 +1,4 @@
1
- import { R as Ee, P as ke, O as Se, C as Ie } from "./index-1RDo-S_f.js";
1
+ import { R as Ee, P as ke, O as Se, C as Ie } from "./index-Cod3awtw.js";
2
2
  import * as n from "react";
3
3
  import { P as C } from "./index-BCGvACM9.js";
4
4
  import { u as P } from "./index-Cs8Lv8Wj.js";
@@ -7,7 +7,7 @@ import { P as N } from "./index-BCGvACM9.js";
7
7
  import { u as j } from "./index-DwYXX2sM.js";
8
8
  import { jsx as f, jsxs as q, Fragment as B } from "react/jsx-runtime";
9
9
  import { P as U } from "./index-Dm-ooN_M.js";
10
- import { R as Ae } from "./Combination-Cvr3uETz.js";
10
+ import { R as Ae } from "./Combination-Dyw3lLGQ.js";
11
11
  var x = "focusScope.autoFocusOnMount", L = "focusScope.autoFocusOnUnmount", V = { bubbles: !1, cancelable: !0 }, Re = "FocusScope", Q = i.forwardRef((e, n) => {
12
12
  const {
13
13
  loop: t = !1,
@@ -663,6 +663,5 @@ function Ce() {
663
663
  var we = /* @__PURE__ */ Ce();
664
664
  const Ie = /* @__PURE__ */ ge(we);
665
665
  export {
666
- Ie as P,
667
- we as p
666
+ Ie as P
668
667
  };
package/dist/index.d.ts CHANGED
@@ -179,6 +179,7 @@ declare interface DropdownProps extends VariantProps<typeof dropdownVariants>, O
179
179
  listClassName?: string;
180
180
  listItemClassName?: string;
181
181
  options: Option_3[];
182
+ searchable?: boolean;
182
183
  theme?: Theme;
183
184
  value?: string;
184
185
  wrapperClassName?: string;
package/dist/index.js CHANGED
@@ -11,7 +11,7 @@ import { Divider as b } from "./components/Divider/Divider.js";
11
11
  import { Dropdown as N } from "./components/Dropdown/Dropdown.js";
12
12
  import { Input as S } from "./components/Input/Input.js";
13
13
  import { Loading as B } from "./components/Loading/Loading.js";
14
- import { M as P } from "./Modal-DXYBiafI.js";
14
+ import { M as P } from "./Modal-CdsrVAoM.js";
15
15
  import { NumberInput as G } from "./components/NumberInput/NumberInput.js";
16
16
  import { ProgressBar as y } from "./components/ProgressBar/ProgressBar.js";
17
17
  import { Radio as L } from "./components/Radio/Radio.js";
package/dist/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@konstructio/ui",
3
3
  "description": "A set of reusable and customizable React components built for konstruct.io",
4
4
  "private": false,
5
- "version": "0.1.0-alpha.4",
5
+ "version": "0.1.0-alpha.5",
6
6
  "type": "module",
7
7
  "license": "MIT",
8
8
  "main": "dist/index.js",