@konstructio/ui 0.1.0-alpha.2 → 0.1.0-alpha.4
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-Cvr3uETz.js} +102 -102
- package/dist/DatePicker.css +1 -0
- package/dist/{Modal-i7eolhYH.js → Modal-DXYBiafI.js} +3 -3
- package/dist/components/Alert/Alert.js +1 -1
- 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 +43 -52
- package/dist/components/Breadcrumb/Breadcrumb.variants.js +10 -41
- package/dist/components/Breadcrumb/components/Item/Item.js +22 -23
- 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 +115 -28
- package/dist/components/Checkbox/Checkbox.js +297 -187
- 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 +1 -1
- 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 +1 -1
- package/dist/components/Command/components/DialogOverlay.js +1 -1
- package/dist/components/Datepicker/DatePicker.js +2711 -0
- package/dist/components/Datepicker/DatePicker.variants.js +5 -0
- package/dist/components/Dropdown/components/List/List.js +49 -17
- package/dist/components/Dropdown/components/ListItem/ListItem.js +21 -17
- package/dist/components/Dropdown/components/Wrapper.js +64 -59
- package/dist/components/Dropdown/contexts/dropdown.hook.js +5 -3
- package/dist/components/Input/Input.js +106 -137
- 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 +3 -3
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/NumberInput/NumberInput.js +1 -1
- package/dist/components/Radio/Radio.variants.js +14 -12
- 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 +24 -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/Tag/Tag.js +1 -1
- 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 +102 -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 +37 -35
- package/dist/components/Tooltip/Tooltip.js +1 -1
- package/dist/components/Typography/Typography.js +14 -16
- package/dist/components/index.js +72 -66
- package/dist/createLucideIcon-vyksFS6P.js +94 -0
- package/dist/index--EmNlyHx.js +31 -0
- package/dist/{index-DvFiic6N.js → index-1RDo-S_f.js} +96 -102
- package/dist/{index-Bk324h27.js → index-B5MIi2tR.js} +6 -5
- package/dist/{index-g-TFwd6Y.js → index-BCGvACM9.js} +2 -1
- package/dist/{index-Bry5AFQ2.js → index-Bc1LNrRD.js} +1 -1
- package/dist/index-BdMNhZnh.js +9 -0
- package/dist/{index-AM3avohj.js → index-BuxebbOg.js} +3 -3
- 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-dRxIWVBr.js → index-Cz09twLl.js} +6 -5
- package/dist/{index-YaQrdkGE.js → index-DNRcvRTB.js} +31 -30
- package/dist/{index-G_6jG4Qc.js → index-Dm-ooN_M.js} +18 -18
- package/dist/index-DwYXX2sM.js +13 -0
- package/dist/{index-D9BbbgUq.js → index-rUBNhTeF.js} +2 -2
- package/dist/index.d.ts +75 -13
- package/dist/index.js +78 -72
- package/dist/package.json +37 -34
- 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 +3 -3
- package/package.json +37 -34
- 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,100 +1,39 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { cn as
|
|
4
|
-
import { inputVariants as
|
|
1
|
+
import { jsxs as h, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import s, { forwardRef as v, useId as E, useState as _ } from "react";
|
|
3
|
+
import { cn as d } from "../../utils/index.js";
|
|
4
|
+
import { inputVariants as k } from "./Input.variants.js";
|
|
5
5
|
import { P as a } from "../../index-C5psggHV.js";
|
|
6
|
-
function u() {
|
|
7
|
-
return u = Object.assign || function(e) {
|
|
8
|
-
for (var o = 1; o < arguments.length; o++) {
|
|
9
|
-
var r = arguments[o];
|
|
10
|
-
for (var t in r)
|
|
11
|
-
Object.prototype.hasOwnProperty.call(r, t) && (e[t] = r[t]);
|
|
12
|
-
}
|
|
13
|
-
return e;
|
|
14
|
-
}, u.apply(this, arguments);
|
|
15
|
-
}
|
|
16
|
-
function N(e, o) {
|
|
17
|
-
if (e == null) return {};
|
|
18
|
-
var r = $(e, o), t, n;
|
|
19
|
-
if (Object.getOwnPropertySymbols) {
|
|
20
|
-
var i = Object.getOwnPropertySymbols(e);
|
|
21
|
-
for (n = 0; n < i.length; n++)
|
|
22
|
-
t = i[n], !(o.indexOf(t) >= 0) && Object.prototype.propertyIsEnumerable.call(e, t) && (r[t] = e[t]);
|
|
23
|
-
}
|
|
24
|
-
return r;
|
|
25
|
-
}
|
|
26
|
-
function $(e, o) {
|
|
27
|
-
if (e == null) return {};
|
|
28
|
-
var r = {}, t = Object.keys(e), n, i;
|
|
29
|
-
for (i = 0; i < t.length; i++)
|
|
30
|
-
n = t[i], !(o.indexOf(n) >= 0) && (r[n] = e[n]);
|
|
31
|
-
return r;
|
|
32
|
-
}
|
|
33
|
-
var h = p(function(e, o) {
|
|
34
|
-
var r = e.color, t = r === void 0 ? "currentColor" : r, n = e.size, i = n === void 0 ? 24 : n, s = N(e, ["color", "size"]);
|
|
35
|
-
return /* @__PURE__ */ l.createElement("svg", u({
|
|
36
|
-
ref: o,
|
|
37
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
38
|
-
width: i,
|
|
39
|
-
height: i,
|
|
40
|
-
viewBox: "0 0 24 24",
|
|
41
|
-
fill: "none",
|
|
42
|
-
stroke: t,
|
|
43
|
-
strokeWidth: "2",
|
|
44
|
-
strokeLinecap: "round",
|
|
45
|
-
strokeLinejoin: "round"
|
|
46
|
-
}, s), /* @__PURE__ */ l.createElement("circle", {
|
|
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
6
|
function m() {
|
|
68
7
|
return m = Object.assign || function(e) {
|
|
69
|
-
for (var
|
|
70
|
-
var
|
|
71
|
-
for (var t in
|
|
72
|
-
Object.prototype.hasOwnProperty.call(
|
|
8
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
9
|
+
var o = arguments[r];
|
|
10
|
+
for (var t in o)
|
|
11
|
+
Object.prototype.hasOwnProperty.call(o, t) && (e[t] = o[t]);
|
|
73
12
|
}
|
|
74
13
|
return e;
|
|
75
14
|
}, m.apply(this, arguments);
|
|
76
15
|
}
|
|
77
|
-
function
|
|
16
|
+
function z(e, r) {
|
|
78
17
|
if (e == null) return {};
|
|
79
|
-
var
|
|
18
|
+
var o = L(e, r), t, n;
|
|
80
19
|
if (Object.getOwnPropertySymbols) {
|
|
81
20
|
var i = Object.getOwnPropertySymbols(e);
|
|
82
21
|
for (n = 0; n < i.length; n++)
|
|
83
|
-
t = i[n], !(
|
|
22
|
+
t = i[n], !(r.indexOf(t) >= 0) && Object.prototype.propertyIsEnumerable.call(e, t) && (o[t] = e[t]);
|
|
84
23
|
}
|
|
85
|
-
return
|
|
24
|
+
return o;
|
|
86
25
|
}
|
|
87
|
-
function L(e,
|
|
26
|
+
function L(e, r) {
|
|
88
27
|
if (e == null) return {};
|
|
89
|
-
var
|
|
28
|
+
var o = {}, t = Object.keys(e), n, i;
|
|
90
29
|
for (i = 0; i < t.length; i++)
|
|
91
|
-
n = t[i], !(
|
|
92
|
-
return
|
|
30
|
+
n = t[i], !(r.indexOf(n) >= 0) && (o[n] = e[n]);
|
|
31
|
+
return o;
|
|
93
32
|
}
|
|
94
|
-
var
|
|
95
|
-
var
|
|
96
|
-
return /* @__PURE__ */
|
|
97
|
-
ref:
|
|
33
|
+
var w = v(function(e, r) {
|
|
34
|
+
var o = e.color, t = o === void 0 ? "currentColor" : o, n = e.size, i = n === void 0 ? 24 : n, c = z(e, ["color", "size"]);
|
|
35
|
+
return /* @__PURE__ */ s.createElement("svg", m({
|
|
36
|
+
ref: r,
|
|
98
37
|
xmlns: "http://www.w3.org/2000/svg",
|
|
99
38
|
width: i,
|
|
100
39
|
height: i,
|
|
@@ -104,51 +43,51 @@ var v = p(function(e, o) {
|
|
|
104
43
|
strokeWidth: "2",
|
|
105
44
|
strokeLinecap: "round",
|
|
106
45
|
strokeLinejoin: "round"
|
|
107
|
-
},
|
|
46
|
+
}, c), /* @__PURE__ */ s.createElement("path", {
|
|
108
47
|
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
|
-
}), /* @__PURE__ */
|
|
48
|
+
}), /* @__PURE__ */ s.createElement("line", {
|
|
110
49
|
x1: "1",
|
|
111
50
|
y1: "1",
|
|
112
51
|
x2: "23",
|
|
113
52
|
y2: "23"
|
|
114
53
|
}));
|
|
115
54
|
});
|
|
116
|
-
|
|
55
|
+
w.propTypes = {
|
|
117
56
|
color: a.string,
|
|
118
57
|
size: a.oneOfType([a.string, a.number])
|
|
119
58
|
};
|
|
120
|
-
|
|
121
|
-
function
|
|
122
|
-
return
|
|
123
|
-
for (var
|
|
124
|
-
var
|
|
125
|
-
for (var t in
|
|
126
|
-
Object.prototype.hasOwnProperty.call(
|
|
59
|
+
w.displayName = "EyeOff";
|
|
60
|
+
function g() {
|
|
61
|
+
return g = Object.assign || function(e) {
|
|
62
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
63
|
+
var o = arguments[r];
|
|
64
|
+
for (var t in o)
|
|
65
|
+
Object.prototype.hasOwnProperty.call(o, t) && (e[t] = o[t]);
|
|
127
66
|
}
|
|
128
67
|
return e;
|
|
129
|
-
},
|
|
68
|
+
}, g.apply(this, arguments);
|
|
130
69
|
}
|
|
131
|
-
function
|
|
70
|
+
function I(e, r) {
|
|
132
71
|
if (e == null) return {};
|
|
133
|
-
var
|
|
72
|
+
var o = M(e, r), t, n;
|
|
134
73
|
if (Object.getOwnPropertySymbols) {
|
|
135
74
|
var i = Object.getOwnPropertySymbols(e);
|
|
136
75
|
for (n = 0; n < i.length; n++)
|
|
137
|
-
t = i[n], !(
|
|
76
|
+
t = i[n], !(r.indexOf(t) >= 0) && Object.prototype.propertyIsEnumerable.call(e, t) && (o[t] = e[t]);
|
|
138
77
|
}
|
|
139
|
-
return
|
|
78
|
+
return o;
|
|
140
79
|
}
|
|
141
|
-
function
|
|
80
|
+
function M(e, r) {
|
|
142
81
|
if (e == null) return {};
|
|
143
|
-
var
|
|
82
|
+
var o = {}, t = Object.keys(e), n, i;
|
|
144
83
|
for (i = 0; i < t.length; i++)
|
|
145
|
-
n = t[i], !(
|
|
146
|
-
return
|
|
84
|
+
n = t[i], !(r.indexOf(n) >= 0) && (o[n] = e[n]);
|
|
85
|
+
return o;
|
|
147
86
|
}
|
|
148
|
-
var
|
|
149
|
-
var
|
|
150
|
-
return /* @__PURE__ */
|
|
151
|
-
ref:
|
|
87
|
+
var x = v(function(e, r) {
|
|
88
|
+
var o = e.color, t = o === void 0 ? "currentColor" : o, n = e.size, i = n === void 0 ? 24 : n, c = I(e, ["color", "size"]);
|
|
89
|
+
return /* @__PURE__ */ s.createElement("svg", g({
|
|
90
|
+
ref: r,
|
|
152
91
|
xmlns: "http://www.w3.org/2000/svg",
|
|
153
92
|
width: i,
|
|
154
93
|
height: i,
|
|
@@ -158,64 +97,94 @@ var g = p(function(e, o) {
|
|
|
158
97
|
strokeWidth: "2",
|
|
159
98
|
strokeLinecap: "round",
|
|
160
99
|
strokeLinejoin: "round"
|
|
161
|
-
},
|
|
100
|
+
}, c), /* @__PURE__ */ s.createElement("path", {
|
|
162
101
|
d: "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"
|
|
163
|
-
}), /* @__PURE__ */
|
|
102
|
+
}), /* @__PURE__ */ s.createElement("circle", {
|
|
164
103
|
cx: "12",
|
|
165
104
|
cy: "12",
|
|
166
105
|
r: "3"
|
|
167
106
|
}));
|
|
168
107
|
});
|
|
169
|
-
|
|
108
|
+
x.propTypes = {
|
|
170
109
|
color: a.string,
|
|
171
110
|
size: a.oneOfType([a.string, a.number])
|
|
172
111
|
};
|
|
173
|
-
|
|
174
|
-
const
|
|
112
|
+
x.displayName = "Eye";
|
|
113
|
+
const V = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='currentColor'%20xmlns='http://www.w3.org/2000/svg'%20%3e%3cg%20id='Icon'%20clip-path='url(%23clip0_252_122)'%3e%3cpath%20id='Vector'%20d='M12.9167%2011.6667H12.2583L12.025%2011.4417C12.8417%2010.4917%2013.3333%209.25833%2013.3333%207.91667C13.3333%204.925%2010.9083%202.5%207.91667%202.5C4.925%202.5%202.5%204.925%202.5%207.91667C2.5%2010.9083%204.925%2013.3333%207.91667%2013.3333C9.25833%2013.3333%2010.4917%2012.8417%2011.4417%2012.025L11.6667%2012.2583V12.9167L15.8333%2017.075L17.075%2015.8333L12.9167%2011.6667ZM7.91667%2011.6667C5.84167%2011.6667%204.16667%209.99167%204.16667%207.91667C4.16667%205.84167%205.84167%204.16667%207.91667%204.16667C9.99167%204.16667%2011.6667%205.84167%2011.6667%207.91667C11.6667%209.99167%209.99167%2011.6667%207.91667%2011.6667Z'%20fill='currentColor'%20/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_252_122'%3e%3crect%20width='20'%20height='20'%20fill='currentColor'%20/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", W = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='currentColor'%20xmlns='http://www.w3.org/2000/svg'%20%3e%3cg%3e%3cpath%20d='M9.16663%2012.5H10.8333V14.1667H9.16663V12.5ZM9.16663%205.83335H10.8333V10.8334H9.16663V5.83335ZM9.99163%201.66669C5.39163%201.66669%201.66663%205.40002%201.66663%2010C1.66663%2014.6%205.39163%2018.3334%209.99163%2018.3334C14.6%2018.3334%2018.3333%2014.6%2018.3333%2010C18.3333%205.40002%2014.6%201.66669%209.99163%201.66669ZM9.99996%2016.6667C6.31663%2016.6667%203.33329%2013.6834%203.33329%2010C3.33329%206.31669%206.31663%203.33335%209.99996%203.33335C13.6833%203.33335%2016.6666%206.31669%2016.6666%2010C16.6666%2013.6834%2013.6833%2016.6667%209.99996%2016.6667Z'%20fill='currentColor'%20/%3e%3c/g%3e%3c/svg%3e", $ = v(
|
|
175
114
|
({
|
|
176
115
|
className: e,
|
|
177
|
-
error:
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
116
|
+
error: r,
|
|
117
|
+
isRequired: o = !1,
|
|
118
|
+
isSearch: t = !1,
|
|
119
|
+
label: n,
|
|
120
|
+
labelClassName: i,
|
|
121
|
+
name: c,
|
|
122
|
+
theme: b,
|
|
123
|
+
type: f = "text",
|
|
124
|
+
helperText: y,
|
|
125
|
+
...C
|
|
126
|
+
}, j) => {
|
|
127
|
+
const O = E(), [u, N] = _(() => f !== "password"), p = typeof r == "string" && r.length >= 0, P = u ? x : w;
|
|
128
|
+
return /* @__PURE__ */ h("div", { className: "flex flex-col gap-2 w-full relative", "data-theme": b, children: [
|
|
129
|
+
n ? /* @__PURE__ */ h(
|
|
130
|
+
"label",
|
|
131
|
+
{
|
|
132
|
+
htmlFor: O,
|
|
133
|
+
className: d(
|
|
134
|
+
"cursor-pointer text-slate-500 flex gap-1 text-sm font-medium",
|
|
135
|
+
i
|
|
136
|
+
),
|
|
137
|
+
children: [
|
|
138
|
+
n,
|
|
139
|
+
" ",
|
|
140
|
+
o ? /* @__PURE__ */ l("span", { className: "text-red-600 text-xs mt-0.5", children: "*" }) : null
|
|
141
|
+
]
|
|
142
|
+
}
|
|
143
|
+
) : null,
|
|
144
|
+
/* @__PURE__ */ h("div", { className: "relative", children: [
|
|
145
|
+
t ? /* @__PURE__ */ l(
|
|
146
|
+
"i",
|
|
147
|
+
{
|
|
148
|
+
className: d(
|
|
149
|
+
"absolute left-2.5 top-1/2 -translate-y-[50%] text-slate-400",
|
|
150
|
+
p && "text-red-600"
|
|
151
|
+
),
|
|
152
|
+
children: /* @__PURE__ */ l(V, { className: "w-5 h-5" })
|
|
153
|
+
}
|
|
154
|
+
) : null,
|
|
155
|
+
/* @__PURE__ */ l(
|
|
190
156
|
"input",
|
|
191
157
|
{
|
|
192
|
-
id:
|
|
193
|
-
ref:
|
|
194
|
-
name:
|
|
195
|
-
type:
|
|
196
|
-
className:
|
|
197
|
-
|
|
158
|
+
id: O,
|
|
159
|
+
ref: j,
|
|
160
|
+
name: c,
|
|
161
|
+
type: u ? "text" : "password",
|
|
162
|
+
className: d(
|
|
163
|
+
k({
|
|
198
164
|
className: e,
|
|
199
|
-
variant:
|
|
200
|
-
})
|
|
165
|
+
variant: p ? "error" : "default"
|
|
166
|
+
}),
|
|
167
|
+
(f === "password" || p) && "pr-10",
|
|
168
|
+
t && "pl-8"
|
|
201
169
|
),
|
|
202
|
-
...
|
|
170
|
+
...C
|
|
203
171
|
}
|
|
204
172
|
),
|
|
205
|
-
|
|
206
|
-
|
|
173
|
+
p ? /* @__PURE__ */ l("i", { className: "absolute right-3 text-red-600 top-1/2 -translate-y-[50%]", children: /* @__PURE__ */ l(W, { className: "w-5 h-5" }) }) : null,
|
|
174
|
+
f === "password" && !r ? /* @__PURE__ */ l("i", { className: "absolute right-3 text-slate-400 top-1/2 -translate-y-[50%]", children: /* @__PURE__ */ l(
|
|
207
175
|
P,
|
|
208
176
|
{
|
|
209
177
|
className: "w-5 h-5 cursor-pointer",
|
|
210
|
-
onClick: () =>
|
|
178
|
+
onClick: () => N(!u)
|
|
211
179
|
}
|
|
212
180
|
) }) : null
|
|
213
181
|
] }),
|
|
214
|
-
|
|
182
|
+
r ? /* @__PURE__ */ l("span", { className: "text-xs text-red-600", children: r }) : null,
|
|
183
|
+
!r && y ? /* @__PURE__ */ l("span", { className: "text-xs text-slate-600", children: y }) : null
|
|
215
184
|
] });
|
|
216
185
|
}
|
|
217
186
|
);
|
|
218
|
-
|
|
187
|
+
$.displayName = "Input";
|
|
219
188
|
export {
|
|
220
|
-
|
|
189
|
+
$ as Input
|
|
221
190
|
};
|
|
@@ -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-vyksFS6P.js";
|
|
5
5
|
/**
|
|
6
|
-
* @license lucide-react v0.
|
|
6
|
+
* @license lucide-react v0.511.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-DXYBiafI.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,8 +1,8 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import "../../../../index
|
|
2
|
+
import "../../../../index--EmNlyHx.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import { W as f } from "../../../../Modal-
|
|
5
|
-
import "../../../../Combination-
|
|
4
|
+
import { W as f } from "../../../../Modal-DXYBiafI.js";
|
|
5
|
+
import "../../../../Combination-Cvr3uETz.js";
|
|
6
6
|
import "../../../../utils/index.js";
|
|
7
7
|
import "./Wrapper.variants.js";
|
|
8
8
|
import "../../../../x-DU-Zw-L_.js";
|
|
@@ -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-DXYBiafI.js";
|
|
5
5
|
export {
|
|
6
6
|
e as Body,
|
|
7
7
|
t as Footer,
|
|
@@ -1,5 +1,5 @@
|
|
|
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";
|
|
@@ -12,10 +12,10 @@ const a = e(
|
|
|
12
12
|
disabled: !1
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
),
|
|
15
|
+
), o = e(
|
|
16
16
|
[
|
|
17
17
|
"border",
|
|
18
|
-
"border-
|
|
18
|
+
"border-gray-300",
|
|
19
19
|
"duration-300",
|
|
20
20
|
"inline-block",
|
|
21
21
|
"rounded-full",
|
|
@@ -52,15 +52,17 @@ const a = e(
|
|
|
52
52
|
checked: [!0, !1],
|
|
53
53
|
class: [
|
|
54
54
|
"peer-checked:border-kubefirst-primary",
|
|
55
|
-
"peer-checked:before:bg-kubefirst-primary"
|
|
55
|
+
"peer-checked:before:bg-kubefirst-primary",
|
|
56
|
+
"civo:peer-checked:border-civo-primary",
|
|
57
|
+
"civo:peer-checked:before:bg-civo-primary"
|
|
56
58
|
]
|
|
57
59
|
},
|
|
58
60
|
{
|
|
59
61
|
disabled: !0,
|
|
60
62
|
checked: !0,
|
|
61
63
|
class: [
|
|
62
|
-
"peer-checked:border-
|
|
63
|
-
"peer-checked:before:bg-
|
|
64
|
+
"peer-checked:border-gray-300",
|
|
65
|
+
"peer-checked:before:bg-gray-300",
|
|
64
66
|
"cursor-not-allowed",
|
|
65
67
|
"[&+span]:cursor-not-allowed"
|
|
66
68
|
]
|
|
@@ -69,12 +71,12 @@ const a = e(
|
|
|
69
71
|
disabled: !0,
|
|
70
72
|
checked: !1,
|
|
71
73
|
class: [
|
|
72
|
-
"peer-checked:border-
|
|
73
|
-
"peer-checked:border-
|
|
74
|
-
"peer-checked:before:bg-
|
|
74
|
+
"peer-checked:border-gray-200",
|
|
75
|
+
"peer-checked:border-gray-200",
|
|
76
|
+
"peer-checked:before:bg-gray-200",
|
|
75
77
|
"cursor-not-allowed",
|
|
76
78
|
"[&+span]:cursor-not-allowed",
|
|
77
|
-
"bg-
|
|
79
|
+
"bg-gray-50"
|
|
78
80
|
]
|
|
79
81
|
}
|
|
80
82
|
],
|
|
@@ -82,9 +84,9 @@ const a = e(
|
|
|
82
84
|
disabled: !1
|
|
83
85
|
}
|
|
84
86
|
}
|
|
85
|
-
),
|
|
87
|
+
), c = e(["text-sm", "text-zinc-700"]);
|
|
86
88
|
export {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
+
c as labelRadioVariants,
|
|
90
|
+
o as radioVariants,
|
|
89
91
|
a as wrapperRadioVariants
|
|
90
92
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { S as x } from "../../index-
|
|
2
|
+
import { S as x } from "../../index-B5MIi2tR.js";
|
|
3
3
|
import { useState as G, useCallback as R } from "react";
|
|
4
4
|
import { cn as m } from "../../utils/index.js";
|
|
5
5
|
import { Radio as b } from "../Radio/Radio.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { R as g, T as R, a as V, b as c } from "../../index-
|
|
2
|
+
import { R as g, T as R, a as V, b as c } from "../../index-BvCZBMfr.js";
|
|
3
3
|
import { forwardRef as v, useRef as b, useState as j, useImperativeHandle as k, useEffect as w, useCallback as y } from "react";
|
|
4
4
|
import { cn as a } from "../../utils/index.js";
|
|
5
5
|
import { rangeOutsideVariants as C, trackVariants as T, thumbVariants as i, rangeVariants as S } from "./Range.variants.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as l, jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { R as x, T as N, b as v } from "../../index-
|
|
2
|
+
import { R as x, T as N, b as v } from "../../index-BvCZBMfr.js";
|
|
3
3
|
import { forwardRef as V, useRef as b, useState as R, useImperativeHandle as g, useEffect as j, useCallback as k } from "react";
|
|
4
4
|
import { cn as r } from "../../utils/index.js";
|
|
5
5
|
import { trackVariants as w, thumbVariants as y, sliderVariants as C } from "./Slider.variants.js";
|