@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.
- package/dist/{Combination-Cvr3uETz.js → Combination-Dyw3lLGQ.js} +49 -55
- package/dist/Modal-CdsrVAoM.js +98 -0
- package/dist/{chevron-up-DgLBQCKD.js → chevron-up-RLP4nX7V.js} +1 -1
- package/dist/components/Alert/Alert.js +1 -1
- 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/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/Command/Command.js +1 -1
- 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/Dropdown/components/List/List.js +36 -31
- package/dist/components/Dropdown/components/List/List.variants.js +5 -3
- package/dist/components/Dropdown/components/ListItem/ListItem.js +18 -16
- package/dist/components/Dropdown/components/Wrapper.js +110 -91
- package/dist/components/Dropdown/contexts/dropdown.context.js +6 -2
- package/dist/components/Dropdown/contexts/dropdown.provider.js +18 -11
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/Modal/components/Wrapper/Wrapper.js +3 -3
- package/dist/components/Modal/components/Wrapper/Wrapper.variants.js +4 -6
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/NumberInput/NumberInput.js +1 -1
- package/dist/components/TagSelect/components/Wrapper/Wrapper.js +2 -2
- package/dist/components/Toast/Toast.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/{index-BuxebbOg.js → index-CI55pdPK.js} +1 -1
- package/dist/{index-Cz09twLl.js → index-Cj4IZ4ka.js} +1 -1
- package/dist/{index-1RDo-S_f.js → index-Cod3awtw.js} +1 -1
- package/dist/{index-C5psggHV.js → index-h-Ul0anl.js} +1 -2
- package/dist/index.d.ts +3 -0
- package/dist/index.js +1 -1
- package/dist/package.json +1 -1
- package/dist/styles.css +1 -1
- package/dist/{x-DU-Zw-L_.js → x-BPcqkRZd.js} +1 -1
- package/package.json +1 -1
- package/dist/Modal-DXYBiafI.js +0 -926
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsxs as p, jsx as
|
|
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:
|
|
10
|
-
...
|
|
9
|
+
className: i,
|
|
10
|
+
...t
|
|
11
11
|
}) => {
|
|
12
|
-
const { setValue:
|
|
13
|
-
(
|
|
14
|
-
|
|
12
|
+
const { setValue: l, toggleOpen: n } = y(), c = u(null), o = s(
|
|
13
|
+
(e) => {
|
|
14
|
+
l(e.value), n(!1);
|
|
15
15
|
},
|
|
16
|
-
[
|
|
16
|
+
[l, n]
|
|
17
17
|
), m = s(
|
|
18
|
-
(
|
|
19
|
-
|
|
18
|
+
(e, f) => {
|
|
19
|
+
e.key === "Enter" && (e.stopPropagation(), o(f));
|
|
20
20
|
},
|
|
21
|
-
[
|
|
21
|
+
[o]
|
|
22
22
|
);
|
|
23
23
|
return /* @__PURE__ */ p(
|
|
24
24
|
"li",
|
|
25
25
|
{
|
|
26
|
-
ref:
|
|
26
|
+
ref: c,
|
|
27
27
|
role: "option",
|
|
28
|
-
className: h(x({ className:
|
|
28
|
+
className: h(x({ className: i })),
|
|
29
29
|
tabIndex: 0,
|
|
30
|
-
onClick: () =>
|
|
31
|
-
|
|
30
|
+
onClick: (e) => {
|
|
31
|
+
a && (o(t), e.stopPropagation());
|
|
32
|
+
},
|
|
33
|
+
onKeyDown: (e) => m(e, t),
|
|
32
34
|
children: [
|
|
33
|
-
|
|
34
|
-
/* @__PURE__ */
|
|
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
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { Loading as
|
|
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
|
|
7
|
-
import { useDropdown as
|
|
8
|
-
import { List as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
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:
|
|
14
|
-
defaultValue:
|
|
15
|
-
|
|
13
|
+
className: k,
|
|
14
|
+
defaultValue: u,
|
|
15
|
+
iconClassName: E,
|
|
16
|
+
isLoading: C,
|
|
16
17
|
label: x,
|
|
17
|
-
labelClassName:
|
|
18
|
-
listClassName:
|
|
19
|
-
listItemClassName:
|
|
20
|
-
name:
|
|
21
|
-
options:
|
|
22
|
-
placeholder:
|
|
23
|
-
required:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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
|
-
}, [
|
|
37
|
-
var
|
|
38
|
-
const
|
|
39
|
-
return (
|
|
40
|
-
var
|
|
41
|
-
const
|
|
42
|
-
(!
|
|
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
|
-
|
|
47
|
+
t.abort();
|
|
45
48
|
};
|
|
46
|
-
}, [
|
|
47
|
-
const
|
|
48
|
-
|
|
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:
|
|
52
|
-
className: "flex flex-col w-full relative",
|
|
53
|
-
"data-theme":
|
|
61
|
+
ref: l,
|
|
62
|
+
className: p("flex flex-col w-full relative", A),
|
|
63
|
+
"data-theme": $,
|
|
54
64
|
children: [
|
|
55
|
-
x ? /* @__PURE__ */
|
|
65
|
+
x ? /* @__PURE__ */ m(
|
|
56
66
|
"label",
|
|
57
67
|
{
|
|
58
68
|
id: c,
|
|
59
|
-
className: p(
|
|
69
|
+
className: p(Q({ className: D })),
|
|
60
70
|
htmlFor: c,
|
|
61
|
-
onClick:
|
|
71
|
+
onClick: P,
|
|
62
72
|
children: [
|
|
63
73
|
x,
|
|
64
|
-
|
|
74
|
+
g ? /* @__PURE__ */ a("span", { className: "text-red-500 ml-1", children: "*" }) : null
|
|
65
75
|
]
|
|
66
76
|
}
|
|
67
77
|
) : null,
|
|
68
|
-
/* @__PURE__ */
|
|
78
|
+
/* @__PURE__ */ m(
|
|
69
79
|
"div",
|
|
70
80
|
{
|
|
71
|
-
ref:
|
|
81
|
+
ref: L,
|
|
72
82
|
id: c,
|
|
73
|
-
className: p(
|
|
83
|
+
className: p(X({ className: k })),
|
|
74
84
|
role: "combobox",
|
|
75
|
-
onClick:
|
|
76
|
-
"aria-expanded":
|
|
85
|
+
onClick: O,
|
|
86
|
+
"aria-expanded": v,
|
|
77
87
|
tabIndex: 0,
|
|
78
88
|
"aria-labelledby": c,
|
|
79
89
|
children: [
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
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
|
-
|
|
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__ */
|
|
128
|
+
/* @__PURE__ */ a(
|
|
111
129
|
"input",
|
|
112
130
|
{
|
|
113
|
-
ref:
|
|
131
|
+
ref: s,
|
|
114
132
|
type: "text",
|
|
115
|
-
name:
|
|
133
|
+
name: i,
|
|
116
134
|
className: "hidden",
|
|
117
135
|
"aria-hidden": "true",
|
|
118
|
-
required:
|
|
136
|
+
required: g
|
|
119
137
|
}
|
|
120
138
|
),
|
|
121
|
-
/* @__PURE__ */
|
|
122
|
-
|
|
139
|
+
/* @__PURE__ */ a(
|
|
140
|
+
Z,
|
|
123
141
|
{
|
|
124
|
-
ref:
|
|
125
|
-
className:
|
|
126
|
-
itemClassName:
|
|
127
|
-
name:
|
|
128
|
-
wrapperRef:
|
|
129
|
-
wrapperInputRef:
|
|
130
|
-
options:
|
|
131
|
-
isLoading: !!
|
|
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
|
-
|
|
159
|
+
de as Wrapper
|
|
141
160
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createContext as e } from "react";
|
|
2
|
-
const
|
|
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
|
-
|
|
17
|
+
o as DropdownContext
|
|
14
18
|
};
|
|
@@ -1,22 +1,29 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import { DropdownContext as
|
|
4
|
-
import { useToggle as
|
|
5
|
-
const
|
|
6
|
-
const [
|
|
7
|
-
(
|
|
8
|
-
r == null || r({ target: { value:
|
|
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,
|
|
10
|
+
[r, e]
|
|
11
11
|
);
|
|
12
12
|
return /* @__PURE__ */ i(
|
|
13
|
-
|
|
13
|
+
f.Provider,
|
|
14
14
|
{
|
|
15
|
-
value: {
|
|
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
|
-
|
|
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-
|
|
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-
|
|
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
|
|
5
|
-
import "../../../../
|
|
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-
|
|
8
|
+
import "../../../../x-BPcqkRZd.js";
|
|
9
9
|
export {
|
|
10
10
|
f as Wrapper
|
|
11
11
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
const
|
|
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 =
|
|
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
|
-
|
|
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-
|
|
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-
|
|
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-
|
|
10
|
-
import { C as V } from "../../../../chevron-up-
|
|
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-
|
|
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,
|
package/dist/components/index.js
CHANGED
|
@@ -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-
|
|
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-
|
|
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-
|
|
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-
|
|
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,
|
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-
|
|
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.
|
|
5
|
+
"version": "0.1.0-alpha.5",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"main": "dist/index.js",
|