@konstructio/ui 0.1.0-alpha.4 → 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 +36 -31
  21. package/dist/components/Dropdown/components/List/List.variants.js +5 -3
  22. package/dist/components/Dropdown/components/ListItem/ListItem.js +18 -16
  23. package/dist/components/Dropdown/components/Wrapper.js +110 -91
  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 +3 -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,134 +1,153 @@
1
- import { jsxs as f, jsx as r } from "react/jsx-runtime";
2
- import { forwardRef as M, useId as U, useRef as R, useImperativeHandle as W, useMemo as B, useEffect as d } from "react";
3
- import { Loading as G } from "../../Loading/Loading.js";
4
- import { Typography as O } from "../../Typography/Typography.js";
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
+ import { Loading as K } from "../../Loading/Loading.js";
5
4
  import { cn as p } from "../../../utils/index.js";
6
- import { labelVariants as J, dropdownVariants as K } from "../Dropdown.variants.js";
7
- import { useDropdown as P } from "../hooks/useDropdown.js";
8
- import { List as Q } from "./List/List.js";
9
- import { C as S } from "../../../chevron-up-DgLBQCKD.js";
10
- import { useDropdownContext as X } from "../contexts/dropdown.hook.js";
11
- const oe = M(
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
- isLoading: u,
13
+ className: k,
14
+ defaultValue: u,
15
+ iconClassName: E,
16
+ isLoading: C,
16
17
  label: x,
17
- labelClassName: j,
18
- listClassName: E,
19
- listItemClassName: L,
20
- name: l,
21
- options: n,
22
- placeholder: k,
23
- required: h,
24
- theme: D
25
- }, F) => {
26
- const v = U(), o = R(null), b = R(null), { wrapperRef: s, wrapperInputRef: N, handleOpen: T, handleOpenIfClosed: $ } = P({ ulRef: b }), { isOpen: w, toggleOpen: g, value: t, setValue: C } = X(), c = l ? `${v}-${l}` : v;
27
- W(F, () => o.current, [o]);
28
- const e = B(() => n.find(({ value: a }) => a === t), [n, t]);
29
- d(() => {
30
- o.current && (o.current.value = t ? e == null ? void 0 : e.value : "");
31
- }, [e, t]), d(() => {
32
- if (m && !t) {
33
- const a = n && n.find((i) => i.value === m);
34
- a && C(a.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);
35
38
  }
36
- }, [m, n, C, t]), d(() => {
37
- var i;
38
- const a = new AbortController();
39
- return (i = s.current) == null || i.addEventListener("focusout", (H) => {
40
- var y;
41
- const I = H.relatedTarget;
42
- (!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(""));
43
46
  }), () => {
44
- a.abort();
47
+ t.abort();
45
48
  };
46
- }, [g, s]);
47
- const A = () => e != null && e.leftIcon ? /* @__PURE__ */ r("span", { className: "w-4 h-4 flex justify-center items-center", children: e.leftIcon }) : null;
48
- return /* @__PURE__ */ f(
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(
49
59
  "div",
50
60
  {
51
- ref: s,
52
- className: "flex flex-col w-full relative",
53
- "data-theme": D,
61
+ ref: l,
62
+ className: p("flex flex-col w-full relative", A),
63
+ "data-theme": $,
54
64
  children: [
55
- x ? /* @__PURE__ */ f(
65
+ x ? /* @__PURE__ */ m(
56
66
  "label",
57
67
  {
58
68
  id: c,
59
- className: p(J({ className: j })),
69
+ className: p(Q({ className: D })),
60
70
  htmlFor: c,
61
- onClick: $,
71
+ onClick: P,
62
72
  children: [
63
73
  x,
64
- 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
65
75
  ]
66
76
  }
67
77
  ) : null,
68
- /* @__PURE__ */ f(
78
+ /* @__PURE__ */ m(
69
79
  "div",
70
80
  {
71
- ref: N,
81
+ ref: L,
72
82
  id: c,
73
- className: p(K({ className: z })),
83
+ className: p(X({ className: k })),
74
84
  role: "combobox",
75
- onClick: T,
76
- "aria-expanded": w,
85
+ onClick: O,
86
+ "aria-expanded": v,
77
87
  tabIndex: 0,
78
88
  "aria-labelledby": c,
79
89
  children: [
80
- t ? /* @__PURE__ */ f(
81
- O,
82
- {
83
- variant: "body2",
84
- className: "flex gap-3 items-center text-zinc-700 text-base",
85
- children: [
86
- A(),
87
- e == null ? void 0 : e.label
88
- ]
89
- }
90
- ) : /* @__PURE__ */ r(
91
- O,
92
- {
93
- variant: "body2",
94
- className: "flex gap-3 items-center text-zinc-700 text-base",
95
- children: k
96
- }
97
- ),
98
- u ? /* @__PURE__ */ r(G, { className: "w-4 h-4 text-zinc-500" }) : /* @__PURE__ */ r(
99
- S,
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,
100
117
  {
118
+ "data-state": v ? "open" : "closed",
101
119
  className: p(
102
- "w-4 h-4 text-zinc-500 transition-all duration-50",
103
- w ? "rotate-0" : "rotate-180"
120
+ "w-4 h-4 text-zinc-500 transition-all duration-50 data-[state=open]:rotate-0 data-[state=closed]:rotate-180",
121
+ E
104
122
  )
105
123
  }
106
124
  )
107
125
  ]
108
126
  }
109
127
  ),
110
- /* @__PURE__ */ r(
128
+ /* @__PURE__ */ a(
111
129
  "input",
112
130
  {
113
- ref: o,
131
+ ref: s,
114
132
  type: "text",
115
- name: l,
133
+ name: i,
116
134
  className: "hidden",
117
135
  "aria-hidden": "true",
118
- required: h
136
+ required: g
119
137
  }
120
138
  ),
121
- /* @__PURE__ */ r(
122
- Q,
139
+ /* @__PURE__ */ a(
140
+ Z,
123
141
  {
124
- ref: b,
125
- className: E,
126
- itemClassName: L,
127
- name: l,
128
- wrapperRef: s,
129
- wrapperInputRef: N,
130
- options: n,
131
- 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
132
151
  }
133
152
  )
134
153
  ]
@@ -137,5 +156,5 @@ const oe = M(
137
156
  }
138
157
  );
139
158
  export {
140
- oe as Wrapper
159
+ de as Wrapper
141
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
@@ -172,14 +172,17 @@ export declare const Dropdown: FC<DropdownProps>;
172
172
 
173
173
  declare interface DropdownProps extends VariantProps<typeof dropdownVariants>, Omit<React.InputHTMLAttributes<HTMLInputElement>, 'value' | 'onChange'> {
174
174
  className?: string;
175
+ iconClassName?: string;
175
176
  isLoading?: boolean;
176
177
  label?: string;
177
178
  labelClassName?: string;
178
179
  listClassName?: string;
179
180
  listItemClassName?: string;
180
181
  options: Option_3[];
182
+ searchable?: boolean;
181
183
  theme?: Theme;
182
184
  value?: string;
185
+ wrapperClassName?: string;
183
186
  onChange?: OnChangeFn;
184
187
  }
185
188
 
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.3",
5
+ "version": "0.1.0-alpha.5",
6
6
  "type": "module",
7
7
  "license": "MIT",
8
8
  "main": "dist/index.js",