@konstructio/ui 0.1.0-alpha.2 → 0.1.0-alpha.20
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-b348x__d.js → Combination-VYaRRJBZ.js} +155 -157
- package/dist/DatePicker.css +1 -0
- package/dist/Modal-CrG0m703.js +98 -0
- package/dist/assets/icons/components/Search.js +26 -0
- package/dist/assets/icons/components/Warning.js +22 -0
- package/dist/assets/icons/components/index.js +6 -0
- package/dist/chevron-down-3QGcvbP_.js +11 -0
- package/dist/{chevron-up-DgLBQCKD.js → chevron-up-RLP4nX7V.js} +1 -1
- package/dist/components/Alert/Alert.js +2 -2
- package/dist/components/AlertDialog/AlertDialog.js +55 -41
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/Badge/Badge.js +14 -14
- package/dist/components/Badge/Badge.variants.js +18 -17
- package/dist/components/Breadcrumb/Breadcrumb.js +44 -53
- package/dist/components/Breadcrumb/Breadcrumb.variants.js +10 -41
- package/dist/components/Breadcrumb/components/Item/Item.js +27 -27
- package/dist/components/Breadcrumb/components/Item/Item.variants.js +43 -56
- package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +1 -1
- package/dist/components/Button/Button.js +30 -26
- package/dist/components/Button/Button.variants.js +116 -29
- package/dist/components/Checkbox/Checkbox.js +300 -185
- package/dist/components/Checkbox/Checkbox.variants.js +12 -15
- package/dist/components/Command/Command.js +2 -2
- 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/Datepicker/DatePicker.js +2728 -0
- package/dist/components/Datepicker/DatePicker.variants.js +5 -0
- package/dist/components/Dropdown/components/List/List.js +55 -18
- package/dist/components/Dropdown/components/List/List.variants.js +5 -3
- package/dist/components/Dropdown/components/ListItem/ListItem.js +28 -22
- package/dist/components/Dropdown/components/Wrapper.js +110 -86
- package/dist/components/Dropdown/contexts/dropdown.context.js +6 -2
- package/dist/components/Dropdown/contexts/dropdown.hook.js +5 -3
- package/dist/components/Dropdown/contexts/dropdown.provider.js +18 -11
- package/dist/components/DropdownButton/DropdownButton.js +136 -0
- package/dist/components/Filter/Filter.js +20 -0
- package/dist/components/Filter/Filter.variants.js +22 -0
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.js +86 -0
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +95 -0
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.js +87 -0
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +90 -0
- package/dist/components/Filter/components/ResetButton/ResetButton.js +24 -0
- package/dist/components/Filter/components/index.js +8 -0
- package/dist/components/Filter/events/index.js +12 -0
- package/dist/components/Input/Input.js +134 -163
- package/dist/components/Input/Input.variants.js +15 -13
- package/dist/components/Loading/Loading.js +2 -2
- package/dist/components/Modal/Modal.js +2 -2
- package/dist/components/Modal/components/Body/Body.js +1 -1
- package/dist/components/Modal/components/Footer/Footer.js +1 -1
- package/dist/components/Modal/components/Header/Header.js +1 -1
- package/dist/components/Modal/components/Wrapper/Wrapper.js +4 -4
- 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 +2 -2
- package/dist/components/PieChart/PieChart.js +5130 -0
- package/dist/components/Radio/Radio.js +64 -49
- package/dist/components/Radio/Radio.variants.js +14 -12
- package/dist/components/RadioCard/RadioCard.js +23 -21
- package/dist/components/RadioCardGroup/RadioCardGroup.js +18 -18
- package/dist/components/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/Range/Range.js +1 -1
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/Switch/Switch.js +141 -126
- package/dist/components/Tabs/Tabs.js +27 -0
- package/dist/components/Tabs/Tabs.variants.js +58 -0
- package/dist/components/Tabs/components/Content.js +19 -0
- package/dist/components/Tabs/components/List.js +20 -0
- package/dist/components/Tabs/components/Trigger.js +26 -0
- package/dist/components/Tabs/components/index.js +8 -0
- package/dist/components/Tag/Tag.js +1 -1
- package/dist/components/TagSelect/components/Wrapper/Wrapper.js +2 -2
- package/dist/components/TimePicker/TimePicker.js +8 -0
- package/dist/components/TimePicker/TimePicker.variants.js +62 -0
- package/dist/components/TimePicker/components/HoursList/HoursList.js +93 -0
- package/dist/components/TimePicker/components/MeridianList/MeridianList.js +68 -0
- package/dist/components/TimePicker/components/MinutesList/MinutesList.js +60 -0
- package/dist/components/TimePicker/components/Wrapper/Wrapper.js +96 -0
- package/dist/components/TimePicker/components/WrapperList/WrapperList.js +51 -0
- package/dist/components/TimePicker/components/WrapperList/WrapperList.variants.js +16 -0
- package/dist/components/TimePicker/components/index.js +4 -0
- package/dist/components/TimePicker/contexts/index.js +8 -0
- package/dist/components/TimePicker/contexts/time-picker.context.js +22 -0
- package/dist/components/TimePicker/contexts/time-picker.hook.js +13 -0
- package/dist/components/TimePicker/contexts/time-picker.provider.js +46 -0
- package/dist/components/TimePicker/utils/index.js +6 -0
- package/dist/components/Toast/Toast.js +38 -36
- package/dist/components/Tooltip/Tooltip.js +1 -1
- package/dist/components/Typography/Typography.js +14 -16
- package/dist/components/index.js +90 -66
- package/dist/createLucideIcon-B7yPYScZ.js +94 -0
- package/dist/index--EmNlyHx.js +31 -0
- package/dist/{index-Bk324h27.js → index-B5MIi2tR.js} +6 -5
- package/dist/{index-g-TFwd6Y.js → index-BCGvACM9.js} +2 -1
- package/dist/{index-AM3avohj.js → index-BNU3RH-3.js} +3 -3
- package/dist/{index-Bry5AFQ2.js → index-Bc1LNrRD.js} +1 -1
- package/dist/index-BdMNhZnh.js +9 -0
- package/dist/index-BvCZBMfr.js +432 -0
- package/dist/index-Cq1I1cG9.js +129 -0
- package/dist/index-Cs8Lv8Wj.js +13 -0
- package/dist/index-CvfCCTEO.js +323 -0
- package/dist/{index-DvFiic6N.js → index-DLYwlPRZ.js} +96 -102
- package/dist/{index-YaQrdkGE.js → index-DNRcvRTB.js} +31 -30
- package/dist/{index-dRxIWVBr.js → index-Dkt8F6CZ.js} +6 -5
- package/dist/{index-G_6jG4Qc.js → index-Dm-ooN_M.js} +18 -18
- package/dist/index-DwYXX2sM.js +13 -0
- package/dist/{index-C5psggHV.js → index-h-Ul0anl.js} +1 -2
- package/dist/{index-D9BbbgUq.js → index-rUBNhTeF.js} +2 -2
- package/dist/index.d.ts +263 -18
- package/dist/index.js +96 -72
- package/dist/package.json +42 -40
- package/dist/styles.css +1 -1
- package/dist/ui/civo-theme.css +263 -0
- package/dist/ui/kubefirst-theme.css +1 -1
- package/dist/ui/theme.css +11 -0
- package/dist/useBreadcrumb-DMERrNkJ.js +1280 -0
- package/dist/utils/index.js +4 -4
- package/dist/{x-DU-Zw-L_.js → x-BPcqkRZd.js} +1 -1
- package/package.json +42 -40
- package/dist/Modal-i7eolhYH.js +0 -926
- package/dist/createLucideIcon-CoF3ywd5.js +0 -89
- package/dist/index-BOx5P4tS.js +0 -423
- package/dist/index-CWKdynYu.js +0 -32
- package/dist/index-bYyfdsls.js +0 -118
- package/dist/useBreadcrumb-BsIeMoR1.js +0 -1279
|
@@ -1,110 +1,51 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import l, { forwardRef as
|
|
3
|
-
import { cn as
|
|
4
|
-
import { inputVariants as
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { jsxs as m, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import l, { forwardRef as v, useId as k, useState as z } from "react";
|
|
3
|
+
import { cn as d } from "../../utils/index.js";
|
|
4
|
+
import { inputVariants as _ } from "./Input.variants.js";
|
|
5
|
+
import { SearchIcon as I } from "../../assets/icons/components/Search.js";
|
|
6
|
+
import { Warning as W } from "../../assets/icons/components/Warning.js";
|
|
7
|
+
import { P as i } from "../../index-h-Ul0anl.js";
|
|
8
|
+
function h() {
|
|
9
|
+
return h = Object.assign || function(t) {
|
|
10
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
11
|
+
var o = arguments[r];
|
|
12
|
+
for (var e in o)
|
|
13
|
+
Object.prototype.hasOwnProperty.call(o, e) && (t[e] = o[e]);
|
|
12
14
|
}
|
|
13
|
-
return
|
|
14
|
-
},
|
|
15
|
+
return t;
|
|
16
|
+
}, h.apply(this, arguments);
|
|
15
17
|
}
|
|
16
|
-
function
|
|
17
|
-
if (
|
|
18
|
-
var
|
|
18
|
+
function $(t, r) {
|
|
19
|
+
if (t == null) return {};
|
|
20
|
+
var o = L(t, r), e, n;
|
|
19
21
|
if (Object.getOwnPropertySymbols) {
|
|
20
|
-
var
|
|
21
|
-
for (n = 0; n <
|
|
22
|
-
|
|
22
|
+
var a = Object.getOwnPropertySymbols(t);
|
|
23
|
+
for (n = 0; n < a.length; n++)
|
|
24
|
+
e = a[n], !(r.indexOf(e) >= 0) && Object.prototype.propertyIsEnumerable.call(t, e) && (o[e] = t[e]);
|
|
23
25
|
}
|
|
24
|
-
return
|
|
26
|
+
return o;
|
|
25
27
|
}
|
|
26
|
-
function
|
|
27
|
-
if (
|
|
28
|
-
var
|
|
29
|
-
for (
|
|
30
|
-
n =
|
|
31
|
-
return
|
|
28
|
+
function L(t, r) {
|
|
29
|
+
if (t == null) return {};
|
|
30
|
+
var o = {}, e = Object.keys(t), n, a;
|
|
31
|
+
for (a = 0; a < e.length; a++)
|
|
32
|
+
n = e[a], !(r.indexOf(n) >= 0) && (o[n] = t[n]);
|
|
33
|
+
return o;
|
|
32
34
|
}
|
|
33
|
-
var
|
|
34
|
-
var
|
|
35
|
-
return /* @__PURE__ */ l.createElement("svg",
|
|
36
|
-
ref:
|
|
35
|
+
var y = v(function(t, r) {
|
|
36
|
+
var o = t.color, e = o === void 0 ? "currentColor" : o, n = t.size, a = n === void 0 ? 24 : n, c = $(t, ["color", "size"]);
|
|
37
|
+
return /* @__PURE__ */ l.createElement("svg", h({
|
|
38
|
+
ref: r,
|
|
37
39
|
xmlns: "http://www.w3.org/2000/svg",
|
|
38
|
-
width:
|
|
39
|
-
height:
|
|
40
|
+
width: a,
|
|
41
|
+
height: a,
|
|
40
42
|
viewBox: "0 0 24 24",
|
|
41
43
|
fill: "none",
|
|
42
|
-
stroke:
|
|
44
|
+
stroke: e,
|
|
43
45
|
strokeWidth: "2",
|
|
44
46
|
strokeLinecap: "round",
|
|
45
47
|
strokeLinejoin: "round"
|
|
46
|
-
},
|
|
47
|
-
cx: "12",
|
|
48
|
-
cy: "12",
|
|
49
|
-
r: "10"
|
|
50
|
-
}), /* @__PURE__ */ l.createElement("line", {
|
|
51
|
-
x1: "12",
|
|
52
|
-
y1: "8",
|
|
53
|
-
x2: "12",
|
|
54
|
-
y2: "12"
|
|
55
|
-
}), /* @__PURE__ */ l.createElement("line", {
|
|
56
|
-
x1: "12",
|
|
57
|
-
y1: "16",
|
|
58
|
-
x2: "12.01",
|
|
59
|
-
y2: "16"
|
|
60
|
-
}));
|
|
61
|
-
});
|
|
62
|
-
h.propTypes = {
|
|
63
|
-
color: a.string,
|
|
64
|
-
size: a.oneOfType([a.string, a.number])
|
|
65
|
-
};
|
|
66
|
-
h.displayName = "AlertCircle";
|
|
67
|
-
function m() {
|
|
68
|
-
return m = Object.assign || function(e) {
|
|
69
|
-
for (var o = 1; o < arguments.length; o++) {
|
|
70
|
-
var r = arguments[o];
|
|
71
|
-
for (var t in r)
|
|
72
|
-
Object.prototype.hasOwnProperty.call(r, t) && (e[t] = r[t]);
|
|
73
|
-
}
|
|
74
|
-
return e;
|
|
75
|
-
}, m.apply(this, arguments);
|
|
76
|
-
}
|
|
77
|
-
function _(e, o) {
|
|
78
|
-
if (e == null) return {};
|
|
79
|
-
var r = L(e, o), t, n;
|
|
80
|
-
if (Object.getOwnPropertySymbols) {
|
|
81
|
-
var i = Object.getOwnPropertySymbols(e);
|
|
82
|
-
for (n = 0; n < i.length; n++)
|
|
83
|
-
t = i[n], !(o.indexOf(t) >= 0) && Object.prototype.propertyIsEnumerable.call(e, t) && (r[t] = e[t]);
|
|
84
|
-
}
|
|
85
|
-
return r;
|
|
86
|
-
}
|
|
87
|
-
function L(e, o) {
|
|
88
|
-
if (e == null) return {};
|
|
89
|
-
var r = {}, t = Object.keys(e), n, i;
|
|
90
|
-
for (i = 0; i < t.length; i++)
|
|
91
|
-
n = t[i], !(o.indexOf(n) >= 0) && (r[n] = e[n]);
|
|
92
|
-
return r;
|
|
93
|
-
}
|
|
94
|
-
var v = p(function(e, o) {
|
|
95
|
-
var r = e.color, t = r === void 0 ? "currentColor" : r, n = e.size, i = n === void 0 ? 24 : n, s = _(e, ["color", "size"]);
|
|
96
|
-
return /* @__PURE__ */ l.createElement("svg", m({
|
|
97
|
-
ref: o,
|
|
98
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
99
|
-
width: i,
|
|
100
|
-
height: i,
|
|
101
|
-
viewBox: "0 0 24 24",
|
|
102
|
-
fill: "none",
|
|
103
|
-
stroke: t,
|
|
104
|
-
strokeWidth: "2",
|
|
105
|
-
strokeLinecap: "round",
|
|
106
|
-
strokeLinejoin: "round"
|
|
107
|
-
}, s), /* @__PURE__ */ l.createElement("path", {
|
|
48
|
+
}, c), /* @__PURE__ */ l.createElement("path", {
|
|
108
49
|
d: "M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"
|
|
109
50
|
}), /* @__PURE__ */ l.createElement("line", {
|
|
110
51
|
x1: "1",
|
|
@@ -113,52 +54,52 @@ var v = p(function(e, o) {
|
|
|
113
54
|
y2: "23"
|
|
114
55
|
}));
|
|
115
56
|
});
|
|
116
|
-
|
|
117
|
-
color:
|
|
118
|
-
size:
|
|
57
|
+
y.propTypes = {
|
|
58
|
+
color: i.string,
|
|
59
|
+
size: i.oneOfType([i.string, i.number])
|
|
119
60
|
};
|
|
120
|
-
|
|
121
|
-
function
|
|
122
|
-
return
|
|
123
|
-
for (var
|
|
124
|
-
var
|
|
125
|
-
for (var
|
|
126
|
-
Object.prototype.hasOwnProperty.call(
|
|
61
|
+
y.displayName = "EyeOff";
|
|
62
|
+
function g() {
|
|
63
|
+
return g = Object.assign || function(t) {
|
|
64
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
65
|
+
var o = arguments[r];
|
|
66
|
+
for (var e in o)
|
|
67
|
+
Object.prototype.hasOwnProperty.call(o, e) && (t[e] = o[e]);
|
|
127
68
|
}
|
|
128
|
-
return
|
|
129
|
-
},
|
|
69
|
+
return t;
|
|
70
|
+
}, g.apply(this, arguments);
|
|
130
71
|
}
|
|
131
|
-
function
|
|
132
|
-
if (
|
|
133
|
-
var
|
|
72
|
+
function S(t, r) {
|
|
73
|
+
if (t == null) return {};
|
|
74
|
+
var o = T(t, r), e, n;
|
|
134
75
|
if (Object.getOwnPropertySymbols) {
|
|
135
|
-
var
|
|
136
|
-
for (n = 0; n <
|
|
137
|
-
|
|
76
|
+
var a = Object.getOwnPropertySymbols(t);
|
|
77
|
+
for (n = 0; n < a.length; n++)
|
|
78
|
+
e = a[n], !(r.indexOf(e) >= 0) && Object.prototype.propertyIsEnumerable.call(t, e) && (o[e] = t[e]);
|
|
138
79
|
}
|
|
139
|
-
return
|
|
80
|
+
return o;
|
|
140
81
|
}
|
|
141
|
-
function
|
|
142
|
-
if (
|
|
143
|
-
var
|
|
144
|
-
for (
|
|
145
|
-
n =
|
|
146
|
-
return
|
|
82
|
+
function T(t, r) {
|
|
83
|
+
if (t == null) return {};
|
|
84
|
+
var o = {}, e = Object.keys(t), n, a;
|
|
85
|
+
for (a = 0; a < e.length; a++)
|
|
86
|
+
n = e[a], !(r.indexOf(n) >= 0) && (o[n] = t[n]);
|
|
87
|
+
return o;
|
|
147
88
|
}
|
|
148
|
-
var
|
|
149
|
-
var
|
|
150
|
-
return /* @__PURE__ */ l.createElement("svg",
|
|
151
|
-
ref:
|
|
89
|
+
var x = v(function(t, r) {
|
|
90
|
+
var o = t.color, e = o === void 0 ? "currentColor" : o, n = t.size, a = n === void 0 ? 24 : n, c = S(t, ["color", "size"]);
|
|
91
|
+
return /* @__PURE__ */ l.createElement("svg", g({
|
|
92
|
+
ref: r,
|
|
152
93
|
xmlns: "http://www.w3.org/2000/svg",
|
|
153
|
-
width:
|
|
154
|
-
height:
|
|
94
|
+
width: a,
|
|
95
|
+
height: a,
|
|
155
96
|
viewBox: "0 0 24 24",
|
|
156
97
|
fill: "none",
|
|
157
|
-
stroke:
|
|
98
|
+
stroke: e,
|
|
158
99
|
strokeWidth: "2",
|
|
159
100
|
strokeLinecap: "round",
|
|
160
101
|
strokeLinejoin: "round"
|
|
161
|
-
},
|
|
102
|
+
}, c), /* @__PURE__ */ l.createElement("path", {
|
|
162
103
|
d: "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"
|
|
163
104
|
}), /* @__PURE__ */ l.createElement("circle", {
|
|
164
105
|
cx: "12",
|
|
@@ -166,56 +107,86 @@ var g = p(function(e, o) {
|
|
|
166
107
|
r: "3"
|
|
167
108
|
}));
|
|
168
109
|
});
|
|
169
|
-
|
|
170
|
-
color:
|
|
171
|
-
size:
|
|
110
|
+
x.propTypes = {
|
|
111
|
+
color: i.string,
|
|
112
|
+
size: i.oneOfType([i.string, i.number])
|
|
172
113
|
};
|
|
173
|
-
|
|
174
|
-
const
|
|
114
|
+
x.displayName = "Eye";
|
|
115
|
+
const C = v(
|
|
175
116
|
({
|
|
176
|
-
className:
|
|
177
|
-
error:
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
117
|
+
className: t,
|
|
118
|
+
error: r,
|
|
119
|
+
isRequired: o = !1,
|
|
120
|
+
isSearch: e = !1,
|
|
121
|
+
label: n,
|
|
122
|
+
labelClassName: a,
|
|
123
|
+
name: c,
|
|
124
|
+
theme: b,
|
|
125
|
+
type: p = "text",
|
|
126
|
+
helperText: w,
|
|
127
|
+
...j
|
|
128
|
+
}, N) => {
|
|
129
|
+
const O = k(), [u, E] = z(() => p !== "password"), f = typeof r == "string" && r.length >= 0, P = u ? x : y;
|
|
130
|
+
return /* @__PURE__ */ m("div", { className: "flex flex-col gap-2 w-full relative", "data-theme": b, children: [
|
|
131
|
+
n ? /* @__PURE__ */ m(
|
|
132
|
+
"label",
|
|
133
|
+
{
|
|
134
|
+
htmlFor: O,
|
|
135
|
+
className: d(
|
|
136
|
+
"cursor-pointer text-slate-500 flex gap-1 text-sm font-medium",
|
|
137
|
+
a
|
|
138
|
+
),
|
|
139
|
+
children: [
|
|
140
|
+
n,
|
|
141
|
+
" ",
|
|
142
|
+
o ? /* @__PURE__ */ s("span", { className: "text-red-600 text-xs mt-0.5", children: "*" }) : null
|
|
143
|
+
]
|
|
144
|
+
}
|
|
145
|
+
) : null,
|
|
146
|
+
/* @__PURE__ */ m("div", { className: "relative", children: [
|
|
147
|
+
e ? /* @__PURE__ */ s(
|
|
148
|
+
"i",
|
|
149
|
+
{
|
|
150
|
+
className: d(
|
|
151
|
+
"absolute left-2.5 top-1/2 -translate-y-[50%] text-slate-400",
|
|
152
|
+
f && "text-red-600"
|
|
153
|
+
),
|
|
154
|
+
children: /* @__PURE__ */ s(I, { className: "w-5 h-5" })
|
|
155
|
+
}
|
|
156
|
+
) : null,
|
|
157
|
+
/* @__PURE__ */ s(
|
|
190
158
|
"input",
|
|
191
159
|
{
|
|
192
|
-
id:
|
|
193
|
-
ref:
|
|
194
|
-
name:
|
|
195
|
-
type:
|
|
196
|
-
className:
|
|
197
|
-
|
|
198
|
-
className:
|
|
199
|
-
variant:
|
|
200
|
-
})
|
|
160
|
+
id: O,
|
|
161
|
+
ref: N,
|
|
162
|
+
name: c,
|
|
163
|
+
type: u ? p : "password",
|
|
164
|
+
className: d(
|
|
165
|
+
_({
|
|
166
|
+
className: t,
|
|
167
|
+
variant: f ? "error" : "default"
|
|
168
|
+
}),
|
|
169
|
+
(p === "password" || f) && "pr-10",
|
|
170
|
+
e && "pl-8"
|
|
201
171
|
),
|
|
202
|
-
...
|
|
172
|
+
...j
|
|
203
173
|
}
|
|
204
174
|
),
|
|
205
|
-
|
|
206
|
-
|
|
175
|
+
f ? /* @__PURE__ */ s("i", { className: "absolute right-3 text-red-600 top-1/2 -translate-y-[50%]", children: /* @__PURE__ */ s(W, { className: "w-5 h-5" }) }) : null,
|
|
176
|
+
p === "password" && !r ? /* @__PURE__ */ s("i", { className: "absolute right-3 text-slate-400 top-1/2 -translate-y-[50%]", children: /* @__PURE__ */ s(
|
|
207
177
|
P,
|
|
208
178
|
{
|
|
209
179
|
className: "w-5 h-5 cursor-pointer",
|
|
210
|
-
onClick: () =>
|
|
180
|
+
onClick: () => E(!u)
|
|
211
181
|
}
|
|
212
182
|
) }) : null
|
|
213
183
|
] }),
|
|
214
|
-
|
|
184
|
+
r ? /* @__PURE__ */ s("span", { className: "text-xs text-red-600", children: r }) : null,
|
|
185
|
+
!r && w ? /* @__PURE__ */ s("span", { className: "text-xs text-slate-600", children: w }) : null
|
|
215
186
|
] });
|
|
216
187
|
}
|
|
217
188
|
);
|
|
218
|
-
|
|
189
|
+
C.displayName = "Input";
|
|
219
190
|
export {
|
|
220
|
-
|
|
191
|
+
C as Input
|
|
221
192
|
};
|
|
@@ -1,24 +1,26 @@
|
|
|
1
1
|
import { c as r } from "../../index-BNmRGtA6.js";
|
|
2
|
-
const
|
|
2
|
+
const a = r(
|
|
3
3
|
[
|
|
4
4
|
"bg-white",
|
|
5
|
+
"border-gray-300",
|
|
5
6
|
"border",
|
|
6
|
-
"
|
|
7
|
+
"civo:focus:ring-civo-primary",
|
|
8
|
+
"disabled:bg-gray-50",
|
|
7
9
|
"disabled:cursor-not-allowed",
|
|
8
|
-
"disabled:
|
|
10
|
+
"disabled:text-slate-500",
|
|
9
11
|
"flex",
|
|
10
12
|
"focus-visible:outline-none",
|
|
11
13
|
"focus-visible:ring-1",
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"py-
|
|
17
|
-
"rounded
|
|
18
|
-
"
|
|
19
|
-
"
|
|
14
|
+
"focus:ring-kubefirst-primary",
|
|
15
|
+
"h-10",
|
|
16
|
+
"placeholder:text-slate-400",
|
|
17
|
+
"px-2.5",
|
|
18
|
+
"py-2",
|
|
19
|
+
"rounded",
|
|
20
|
+
"text-slate-800",
|
|
21
|
+
"text-sm",
|
|
20
22
|
"w-full",
|
|
21
|
-
"
|
|
23
|
+
"transition-all"
|
|
22
24
|
],
|
|
23
25
|
{
|
|
24
26
|
variants: {
|
|
@@ -33,5 +35,5 @@ const i = r(
|
|
|
33
35
|
}
|
|
34
36
|
);
|
|
35
37
|
export {
|
|
36
|
-
|
|
38
|
+
a as inputVariants
|
|
37
39
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { cn as c } from "../../utils/index.js";
|
|
3
3
|
import { loadingVariants as i } from "./Loading.variants.js";
|
|
4
|
-
import { c as t } from "../../createLucideIcon-
|
|
4
|
+
import { c as t } from "../../createLucideIcon-B7yPYScZ.js";
|
|
5
5
|
/**
|
|
6
|
-
* @license lucide-react v0.
|
|
6
|
+
* @license lucide-react v0.539.0 - ISC
|
|
7
7
|
*
|
|
8
8
|
* This source code is licensed under the ISC license.
|
|
9
9
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import "../../index-
|
|
4
|
-
import { M as d } from "../../Modal-
|
|
3
|
+
import "../../index-BCGvACM9.js";
|
|
4
|
+
import { M as d } from "../../Modal-CrG0m703.js";
|
|
5
5
|
import "./components/Header/Header.js";
|
|
6
6
|
import "./components/Body/Body.js";
|
|
7
7
|
import "./components/Footer/Footer.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { S as n } from "../../../../index-
|
|
2
|
+
import { S as n } from "../../../../index-B5MIi2tR.js";
|
|
3
3
|
import { cn as e } from "../../../../utils/index.js";
|
|
4
4
|
const i = ({ children: o, asChild: t, className: m }) => /* @__PURE__ */ r(t ? n : "div", { className: e("flex-1", m), children: o });
|
|
5
5
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
-
import { S as n } from "../../../../index-
|
|
2
|
+
import { S as n } from "../../../../index-B5MIi2tR.js";
|
|
3
3
|
import { cn as e } from "../../../../utils/index.js";
|
|
4
4
|
const a = ({ children: o, asChild: r, className: t }) => /* @__PURE__ */ m(r ? n : "div", { className: e("border-zinc-200", t), children: o });
|
|
5
5
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
-
import { S as n } from "../../../../index-
|
|
2
|
+
import { S as n } from "../../../../index-B5MIi2tR.js";
|
|
3
3
|
import { cn as e } from "../../../../utils/index.js";
|
|
4
4
|
const a = ({ children: o, asChild: r, className: t }) => /* @__PURE__ */ m(r ? n : "div", { className: e("border-zinc-200", t), children: o });
|
|
5
5
|
export {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import "../../../../index
|
|
2
|
+
import "../../../../index--EmNlyHx.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import
|
|
5
|
-
import "../../../../
|
|
4
|
+
import "../../../../Combination-VYaRRJBZ.js";
|
|
5
|
+
import { W as f } from "../../../../Modal-CrG0m703.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-CrG0m703.js";
|
|
5
5
|
export {
|
|
6
6
|
e as Body,
|
|
7
7
|
t as Footer,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as m, jsx as u } from "react/jsx-runtime";
|
|
2
|
-
import { R as O } from "../../index
|
|
2
|
+
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++) {
|