@konstructio/ui 0.0.12-alpha.2 → 0.0.12-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/{Modal-DZUwNzSW.js → Modal-B-E9uaA6.js} +354 -346
- 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/Autocomplete/Autocomplete.variants.js +0 -1
- package/dist/components/Breadcrumb/Breadcrumb.variants.js +18 -15
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/Command/Command.js +32 -0
- package/dist/components/Command/Command.variants.js +97 -0
- package/dist/components/Command/components/Command.js +8 -0
- package/dist/components/Command/components/CommandEmpty.js +15 -0
- package/dist/components/Command/components/CommandGroup.js +19 -0
- package/dist/components/Command/components/CommandInput.js +84 -0
- package/dist/components/Command/components/CommandItem.js +29 -0
- package/dist/components/Command/components/CommandList.js +16 -0
- package/dist/components/Command/components/CommandSeparator.js +16 -0
- package/dist/components/Command/components/CommandShortcut.js +19 -0
- package/dist/components/Command/components/DialogContent.js +31 -0
- package/dist/components/Command/components/DialogOverlay.js +19 -0
- package/dist/components/Command/components/index.js +20 -0
- package/dist/components/Command/contexts/Command.context.js +13 -0
- package/dist/components/Command/contexts/Command.provider.js +24 -0
- package/dist/components/Command/contexts/index.js +6 -0
- package/dist/components/Dropdown/Dropdown.js +6 -6
- package/dist/components/Dropdown/Dropdown.variants.js +22 -3
- package/dist/components/Dropdown/components/List/List.js +42 -16
- package/dist/components/Dropdown/components/List/List.variants.js +7 -5
- package/dist/components/Dropdown/components/ListItem/ListItem.js +26 -21
- package/dist/components/Dropdown/components/ListItem/ListItem.variants.js +6 -4
- package/dist/components/Dropdown/components/Wrapper.js +97 -63
- package/dist/components/Dropdown/contexts/dropdown.context.js +1 -1
- package/dist/components/Dropdown/contexts/dropdown.provider.js +9 -9
- package/dist/components/Input/Input.js +112 -67
- package/dist/components/Input/Input.variants.js +5 -6
- package/dist/components/Loading/Loading.js +102 -21
- package/dist/components/Loading/Loading.variants.js +13 -14
- package/dist/components/Modal/Modal.js +3 -3
- package/dist/components/Modal/components/Wrapper/Wrapper.js +3 -4
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/NumberInput/NumberInput.js +88 -88
- package/dist/components/NumberInput/NumberInput.variants.js +23 -19
- package/dist/components/Range/Range.js +1 -1
- package/dist/components/Sidebar/Sidebar.variants.js +2 -1
- package/dist/components/Sidebar/components/Logo/Logo.variants.js +9 -17
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.variants.js +2 -2
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.js +6 -5
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/Switch/Switch.js +1 -1
- package/dist/components/Switch/Switch.variants.js +4 -4
- package/dist/components/Table/Table.js +31 -0
- package/dist/components/Table/Table.variants.js +78 -0
- package/dist/components/Table/components/Body.js +28 -0
- package/dist/components/Table/components/Filter.js +9 -0
- package/dist/components/Table/components/Head.js +28 -0
- package/dist/components/Table/components/Row.js +34 -0
- package/dist/components/Tag/Tag.js +17 -5
- package/dist/components/Tag/Tag.variants.js +11 -1
- package/dist/components/TagSelect/TagSelect.js +6 -71
- package/dist/components/TagSelect/TagSelect.variants.js +29 -50
- package/dist/components/TagSelect/components/Item/Item.js +23 -0
- package/dist/components/TagSelect/components/Item/Item.variants.js +31 -0
- package/dist/components/TagSelect/components/List/List.js +13 -0
- package/dist/components/TagSelect/components/List/List.variants.js +37 -0
- package/dist/components/TagSelect/components/Wrapper/Wrapper.js +88 -0
- package/dist/components/TagSelect/components/index.js +8 -0
- package/dist/components/TagSelect/contexts/TagSelect.context.js +19 -0
- package/dist/components/TagSelect/contexts/TagSelect.hook.js +11 -0
- package/dist/components/TagSelect/contexts/TagSelect.provider.js +69 -0
- package/dist/components/TagSelect/contexts/index.js +6 -0
- package/dist/components/TagSelect/hooks/useTagSelect.js +22 -27
- package/dist/components/TextArea/TextArea.js +28 -22
- package/dist/components/TextArea/TextArea.variants.js +0 -1
- package/dist/components/Toast/Toast.js +141 -128
- package/dist/components/Toast/Toast.variants.js +2 -3
- package/dist/components/Typography/Typography.js +23 -22
- package/dist/components/Typography/Typography.variants.js +49 -22
- package/dist/components/index.js +22 -20
- package/dist/{index-C6WtlN_F.js → index-BzaHYXkt.js} +1 -1
- package/dist/{index-Z1voPZOH.js → index-CbTU3cnP.js} +1 -1
- package/dist/index-CzSBQN5S.js +432 -0
- package/dist/index-D7QNmo_D.js +422 -0
- package/dist/index-DUA6Y_AE.js +126 -0
- package/dist/{index-B33at13_.js → index-D_76wh4w.js} +1 -1
- package/dist/index-DyKo5ZJT.js +446 -0
- package/dist/index.d.ts +82 -16
- package/dist/index.js +18 -16
- package/dist/package.json +26 -24
- package/dist/styles.css +1 -1
- package/dist/utils/index.js +320 -322
- package/package.json +26 -24
- package/dist/index-3jTPaVvh.js +0 -551
- package/dist/index-BTeAm7mx.js +0 -19133
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
import { jsxs as y, jsx as u } from "react/jsx-runtime";
|
|
2
|
-
import { R as
|
|
3
|
-
import p, { forwardRef as d, useId as
|
|
4
|
-
import { cn as
|
|
5
|
-
import { labelVariants as
|
|
6
|
-
import { P as
|
|
7
|
-
import { useTheme as
|
|
8
|
-
function
|
|
9
|
-
return
|
|
10
|
-
for (var
|
|
11
|
-
var r = arguments[
|
|
2
|
+
import { R as w } from "../../index-CbTU3cnP.js";
|
|
3
|
+
import p, { forwardRef as d, useId as _, useCallback as j } from "react";
|
|
4
|
+
import { cn as v } from "../../utils/index.js";
|
|
5
|
+
import { labelVariants as E, buttonVariants as x, numberInputVariants as T } from "./NumberInput.variants.js";
|
|
6
|
+
import { P as s } from "../../index-C5psggHV.js";
|
|
7
|
+
import { useTheme as $ } from "../../contexts/theme.hook.js";
|
|
8
|
+
function h() {
|
|
9
|
+
return h = Object.assign || function(e) {
|
|
10
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
11
|
+
var r = arguments[i];
|
|
12
12
|
for (var t in r)
|
|
13
13
|
Object.prototype.hasOwnProperty.call(r, t) && (e[t] = r[t]);
|
|
14
14
|
}
|
|
15
15
|
return e;
|
|
16
|
-
},
|
|
16
|
+
}, h.apply(this, arguments);
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function L(e, i) {
|
|
19
19
|
if (e == null) return {};
|
|
20
|
-
var r =
|
|
20
|
+
var r = W(e, i), t, n;
|
|
21
21
|
if (Object.getOwnPropertySymbols) {
|
|
22
|
-
var
|
|
23
|
-
for (n = 0; n <
|
|
24
|
-
t =
|
|
22
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
23
|
+
for (n = 0; n < o.length; n++)
|
|
24
|
+
t = o[n], !(i.indexOf(t) >= 0) && Object.prototype.propertyIsEnumerable.call(e, t) && (r[t] = e[t]);
|
|
25
25
|
}
|
|
26
26
|
return r;
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function W(e, i) {
|
|
29
29
|
if (e == null) return {};
|
|
30
|
-
var r = {}, t = Object.keys(e), n,
|
|
31
|
-
for (
|
|
32
|
-
n = t[
|
|
30
|
+
var r = {}, t = Object.keys(e), n, o;
|
|
31
|
+
for (o = 0; o < t.length; o++)
|
|
32
|
+
n = t[o], !(i.indexOf(n) >= 0) && (r[n] = e[n]);
|
|
33
33
|
return r;
|
|
34
34
|
}
|
|
35
|
-
var
|
|
36
|
-
var r = e.color, t = r === void 0 ? "currentColor" : r, n = e.size,
|
|
37
|
-
return /* @__PURE__ */ p.createElement("svg",
|
|
38
|
-
ref:
|
|
35
|
+
var g = d(function(e, i) {
|
|
36
|
+
var r = e.color, t = r === void 0 ? "currentColor" : r, n = e.size, o = n === void 0 ? 24 : n, f = L(e, ["color", "size"]);
|
|
37
|
+
return /* @__PURE__ */ p.createElement("svg", h({
|
|
38
|
+
ref: i,
|
|
39
39
|
xmlns: "http://www.w3.org/2000/svg",
|
|
40
|
-
width:
|
|
41
|
-
height:
|
|
40
|
+
width: o,
|
|
41
|
+
height: o,
|
|
42
42
|
viewBox: "0 0 24 24",
|
|
43
43
|
fill: "none",
|
|
44
44
|
stroke: t,
|
|
@@ -52,45 +52,45 @@ var O = d(function(e, o) {
|
|
|
52
52
|
y2: "12"
|
|
53
53
|
}));
|
|
54
54
|
});
|
|
55
|
-
|
|
56
|
-
color:
|
|
57
|
-
size:
|
|
55
|
+
g.propTypes = {
|
|
56
|
+
color: s.string,
|
|
57
|
+
size: s.oneOfType([s.string, s.number])
|
|
58
58
|
};
|
|
59
|
-
|
|
59
|
+
g.displayName = "Minus";
|
|
60
60
|
function b() {
|
|
61
61
|
return b = Object.assign || function(e) {
|
|
62
|
-
for (var
|
|
63
|
-
var r = arguments[
|
|
62
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
63
|
+
var r = arguments[i];
|
|
64
64
|
for (var t in r)
|
|
65
65
|
Object.prototype.hasOwnProperty.call(r, t) && (e[t] = r[t]);
|
|
66
66
|
}
|
|
67
67
|
return e;
|
|
68
68
|
}, b.apply(this, arguments);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function V(e, i) {
|
|
71
71
|
if (e == null) return {};
|
|
72
|
-
var r =
|
|
72
|
+
var r = M(e, i), t, n;
|
|
73
73
|
if (Object.getOwnPropertySymbols) {
|
|
74
|
-
var
|
|
75
|
-
for (n = 0; n <
|
|
76
|
-
t =
|
|
74
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
75
|
+
for (n = 0; n < o.length; n++)
|
|
76
|
+
t = o[n], !(i.indexOf(t) >= 0) && Object.prototype.propertyIsEnumerable.call(e, t) && (r[t] = e[t]);
|
|
77
77
|
}
|
|
78
78
|
return r;
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function M(e, i) {
|
|
81
81
|
if (e == null) return {};
|
|
82
|
-
var r = {}, t = Object.keys(e), n,
|
|
83
|
-
for (
|
|
84
|
-
n = t[
|
|
82
|
+
var r = {}, t = Object.keys(e), n, o;
|
|
83
|
+
for (o = 0; o < t.length; o++)
|
|
84
|
+
n = t[o], !(i.indexOf(n) >= 0) && (r[n] = e[n]);
|
|
85
85
|
return r;
|
|
86
86
|
}
|
|
87
|
-
var
|
|
88
|
-
var r = e.color, t = r === void 0 ? "currentColor" : r, n = e.size,
|
|
87
|
+
var O = d(function(e, i) {
|
|
88
|
+
var r = e.color, t = r === void 0 ? "currentColor" : r, n = e.size, o = n === void 0 ? 24 : n, f = V(e, ["color", "size"]);
|
|
89
89
|
return /* @__PURE__ */ p.createElement("svg", b({
|
|
90
|
-
ref:
|
|
90
|
+
ref: i,
|
|
91
91
|
xmlns: "http://www.w3.org/2000/svg",
|
|
92
|
-
width:
|
|
93
|
-
height:
|
|
92
|
+
width: o,
|
|
93
|
+
height: o,
|
|
94
94
|
viewBox: "0 0 24 24",
|
|
95
95
|
fill: "none",
|
|
96
96
|
stroke: t,
|
|
@@ -109,40 +109,40 @@ var g = d(function(e, o) {
|
|
|
109
109
|
y2: "12"
|
|
110
110
|
}));
|
|
111
111
|
});
|
|
112
|
-
|
|
113
|
-
color:
|
|
114
|
-
size:
|
|
112
|
+
O.propTypes = {
|
|
113
|
+
color: s.string,
|
|
114
|
+
size: s.oneOfType([s.string, s.number])
|
|
115
115
|
};
|
|
116
|
-
|
|
117
|
-
const
|
|
116
|
+
O.displayName = "Plus";
|
|
117
|
+
const G = d(
|
|
118
118
|
({
|
|
119
119
|
className: e,
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
onChange:
|
|
127
|
-
},
|
|
128
|
-
const { theme:
|
|
129
|
-
let
|
|
130
|
-
|
|
131
|
-
}, [
|
|
132
|
-
let
|
|
133
|
-
|
|
134
|
-
}, [
|
|
120
|
+
label: i,
|
|
121
|
+
max: r = -1 / 0,
|
|
122
|
+
min: t = 1 / 0,
|
|
123
|
+
name: n,
|
|
124
|
+
theme: o,
|
|
125
|
+
value: f,
|
|
126
|
+
onChange: l
|
|
127
|
+
}, P) => {
|
|
128
|
+
const { theme: k } = $(), m = o ?? k, I = _(), a = f ?? 0, N = j(() => {
|
|
129
|
+
let c = 0;
|
|
130
|
+
t === 1 / 0 ? c = a - 1 : c = Math.max(t, a - 1), l == null || l({ target: { value: c } });
|
|
131
|
+
}, [a, t, l]), z = j(() => {
|
|
132
|
+
let c = 0;
|
|
133
|
+
r === -1 / 0 ? c = a + 1 : c = Math.min(r, a + 1), l == null || l({ target: { value: c } });
|
|
134
|
+
}, [a, r, l]);
|
|
135
135
|
return /* @__PURE__ */ y("div", { className: "flex flex-col gap-1", children: [
|
|
136
|
-
|
|
136
|
+
i ? /* @__PURE__ */ u(
|
|
137
137
|
"label",
|
|
138
138
|
{
|
|
139
|
-
htmlFor:
|
|
140
|
-
className:
|
|
141
|
-
|
|
139
|
+
htmlFor: n ?? I,
|
|
140
|
+
className: v(
|
|
141
|
+
E({
|
|
142
142
|
theme: m
|
|
143
143
|
})
|
|
144
144
|
),
|
|
145
|
-
children:
|
|
145
|
+
children: i
|
|
146
146
|
}
|
|
147
147
|
) : null,
|
|
148
148
|
/* @__PURE__ */ y("div", { className: "flex items-center", role: "presentation", children: [
|
|
@@ -150,41 +150,41 @@ const J = d(
|
|
|
150
150
|
"button",
|
|
151
151
|
{
|
|
152
152
|
type: "button",
|
|
153
|
-
onClick:
|
|
154
|
-
className:
|
|
155
|
-
|
|
153
|
+
onClick: N,
|
|
154
|
+
className: v(
|
|
155
|
+
x({ theme: m, button: "rigth" })
|
|
156
156
|
),
|
|
157
157
|
children: [
|
|
158
|
-
/* @__PURE__ */ u(
|
|
159
|
-
/* @__PURE__ */ u(
|
|
158
|
+
/* @__PURE__ */ u(g, { className: "w-4 h-4" }),
|
|
159
|
+
/* @__PURE__ */ u(w, { children: "Decrement" })
|
|
160
160
|
]
|
|
161
161
|
}
|
|
162
162
|
),
|
|
163
163
|
/* @__PURE__ */ u(
|
|
164
164
|
"input",
|
|
165
165
|
{
|
|
166
|
-
ref:
|
|
166
|
+
ref: P,
|
|
167
167
|
type: "number",
|
|
168
|
-
value:
|
|
169
|
-
name:
|
|
170
|
-
className:
|
|
171
|
-
|
|
168
|
+
value: a,
|
|
169
|
+
name: n,
|
|
170
|
+
className: v(
|
|
171
|
+
T({ className: e, theme: m })
|
|
172
172
|
),
|
|
173
173
|
readOnly: !0,
|
|
174
|
-
"aria-label":
|
|
174
|
+
"aria-label": typeof i == "string" ? i : "number input"
|
|
175
175
|
}
|
|
176
176
|
),
|
|
177
177
|
/* @__PURE__ */ y(
|
|
178
178
|
"button",
|
|
179
179
|
{
|
|
180
180
|
type: "button",
|
|
181
|
-
onClick:
|
|
182
|
-
className:
|
|
183
|
-
|
|
181
|
+
onClick: z,
|
|
182
|
+
className: v(
|
|
183
|
+
x({ theme: m, button: "left" })
|
|
184
184
|
),
|
|
185
185
|
children: [
|
|
186
|
-
/* @__PURE__ */ u(
|
|
187
|
-
/* @__PURE__ */ u(
|
|
186
|
+
/* @__PURE__ */ u(O, { className: "w-4 h-4" }),
|
|
187
|
+
/* @__PURE__ */ u(w, { children: "Increment" })
|
|
188
188
|
]
|
|
189
189
|
}
|
|
190
190
|
)
|
|
@@ -193,5 +193,5 @@ const J = d(
|
|
|
193
193
|
}
|
|
194
194
|
);
|
|
195
195
|
export {
|
|
196
|
-
|
|
196
|
+
G as NumberInput
|
|
197
197
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as e } from "../../index-BNmRGtA6.js";
|
|
2
|
-
const
|
|
2
|
+
const n = e(
|
|
3
3
|
[
|
|
4
4
|
"[&::-webkit-inner-spin-button]:appearance-none",
|
|
5
5
|
"[&::-webkit-outer-spin-button]:appearance-none",
|
|
@@ -9,14 +9,16 @@ const t = e(
|
|
|
9
9
|
"border-x-0",
|
|
10
10
|
"focus-visible:outline-none",
|
|
11
11
|
"focus-visible:ring-transparent",
|
|
12
|
-
"
|
|
13
|
-
"
|
|
12
|
+
"h-9",
|
|
13
|
+
"max-w-16",
|
|
14
|
+
"text-right",
|
|
15
|
+
"px-3"
|
|
14
16
|
],
|
|
15
17
|
{
|
|
16
18
|
variants: {
|
|
17
19
|
theme: {
|
|
18
|
-
colony: [
|
|
19
|
-
kubefirst: [
|
|
20
|
+
colony: [],
|
|
21
|
+
kubefirst: [],
|
|
20
22
|
civo: ""
|
|
21
23
|
}
|
|
22
24
|
},
|
|
@@ -25,30 +27,32 @@ const t = e(
|
|
|
25
27
|
}
|
|
26
28
|
}
|
|
27
29
|
), a = e(
|
|
28
|
-
[
|
|
30
|
+
[
|
|
31
|
+
"h-9",
|
|
32
|
+
"w-9",
|
|
33
|
+
"flex",
|
|
34
|
+
"items-center",
|
|
35
|
+
"justify-center",
|
|
36
|
+
"border",
|
|
37
|
+
"text-slate-400"
|
|
38
|
+
],
|
|
29
39
|
{
|
|
30
40
|
variants: {
|
|
31
41
|
theme: {
|
|
32
|
-
colony: [
|
|
33
|
-
kubefirst: [
|
|
34
|
-
"border-kubefirst-primary",
|
|
35
|
-
"text-kubefirst-primary",
|
|
36
|
-
"hover:text-kubefirst-secondary",
|
|
37
|
-
"hover:border-kubefirst-secondary",
|
|
38
|
-
"hover:bg-purple-100"
|
|
39
|
-
],
|
|
42
|
+
colony: [],
|
|
43
|
+
kubefirst: [],
|
|
40
44
|
civo: ""
|
|
41
45
|
},
|
|
42
46
|
button: {
|
|
43
|
-
left: ["rounded-e
|
|
44
|
-
rigth: ["rounded-s
|
|
47
|
+
left: ["rounded-e"],
|
|
48
|
+
rigth: ["rounded-s"]
|
|
45
49
|
}
|
|
46
50
|
},
|
|
47
51
|
defaultVariants: {
|
|
48
52
|
theme: "kubefirst"
|
|
49
53
|
}
|
|
50
54
|
}
|
|
51
|
-
),
|
|
55
|
+
), r = e(["cursor-pointer"], {
|
|
52
56
|
variants: {
|
|
53
57
|
variant: {
|
|
54
58
|
default: ""
|
|
@@ -66,6 +70,6 @@ const t = e(
|
|
|
66
70
|
});
|
|
67
71
|
export {
|
|
68
72
|
a as buttonVariants,
|
|
69
|
-
|
|
70
|
-
|
|
73
|
+
r as labelVariants,
|
|
74
|
+
n as numberInputVariants
|
|
71
75
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { R as V, T as v, a as T, b as c } from "../../index-
|
|
2
|
+
import { R as V, T as v, a as T, b as c } from "../../index-BzaHYXkt.js";
|
|
3
3
|
import { forwardRef as b, useRef as j, useState as k, useImperativeHandle as w, useEffect as y, useCallback as C } from "react";
|
|
4
4
|
import { cn as t } from "../../utils/index.js";
|
|
5
5
|
import { rangeOutsideVariants as S, trackVariants as $, thumbVariants as i, rangeVariants as E } from "./Range.variants.js";
|
|
@@ -1,29 +1,21 @@
|
|
|
1
1
|
import { c as t } from "../../../../index-BNmRGtA6.js";
|
|
2
|
-
const
|
|
2
|
+
const o = t(
|
|
3
3
|
[
|
|
4
|
-
"px-4",
|
|
5
|
-
"py-5",
|
|
4
|
+
"md:px-4",
|
|
5
|
+
"md:py-5",
|
|
6
6
|
"flex",
|
|
7
7
|
"flex-col",
|
|
8
|
-
"items-center",
|
|
9
|
-
"items-center",
|
|
10
8
|
"justify-center",
|
|
11
9
|
"gap-1",
|
|
12
10
|
"group",
|
|
13
11
|
"relative",
|
|
14
12
|
"mb-8",
|
|
15
|
-
"[&>
|
|
16
|
-
"[&>
|
|
17
|
-
"[&>span]:font-semibold",
|
|
18
|
-
"[&>span]:pl-14",
|
|
19
|
-
"[&>span]:-mt-2",
|
|
13
|
+
"[&>p]:pl-14",
|
|
14
|
+
"[&>p]:-mt-2",
|
|
20
15
|
"[&>img]:pt-3",
|
|
21
|
-
"[&>*>
|
|
22
|
-
"[&>*>
|
|
23
|
-
"[&>*>
|
|
24
|
-
"[&>*>span]:absolute",
|
|
25
|
-
"[&>*>span]:bottom-0",
|
|
26
|
-
"[&>*>span]:-mt-2",
|
|
16
|
+
"[&>*>p]:absolute",
|
|
17
|
+
"[&>*>p]:bottom-0",
|
|
18
|
+
"[&>*>p]:-mt-2",
|
|
27
19
|
"[&>*>img]:pt-3",
|
|
28
20
|
"cursor-pointer"
|
|
29
21
|
],
|
|
@@ -41,5 +33,5 @@ const s = t(
|
|
|
41
33
|
}
|
|
42
34
|
);
|
|
43
35
|
export {
|
|
44
|
-
|
|
36
|
+
o as logoVariants
|
|
45
37
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
const a =
|
|
1
|
+
import { c as t } from "../../../../index-BNmRGtA6.js";
|
|
2
|
+
const a = t(
|
|
3
3
|
[
|
|
4
4
|
"[&>a]:flex",
|
|
5
5
|
"[&>a]:gap-2",
|
|
@@ -11,9 +11,10 @@ const a = e(
|
|
|
11
11
|
"font-normal",
|
|
12
12
|
"font-normal",
|
|
13
13
|
"gap-2",
|
|
14
|
-
"
|
|
15
|
-
"px-4",
|
|
16
|
-
"py-2.5",
|
|
14
|
+
"rounded-xl",
|
|
15
|
+
"md:px-4",
|
|
16
|
+
"md:py-2.5",
|
|
17
|
+
"p-2",
|
|
17
18
|
"text-black",
|
|
18
19
|
"w-full"
|
|
19
20
|
],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as l, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { R as v, T, b as V } from "../../index-
|
|
2
|
+
import { R as v, T, b as V } from "../../index-BzaHYXkt.js";
|
|
3
3
|
import { forwardRef as b, useRef as R, useState as g, useImperativeHandle as j, useEffect as k, useCallback as w } from "react";
|
|
4
4
|
import { cn as a } from "../../utils/index.js";
|
|
5
5
|
import { trackVariants as y, thumbVariants as C, sliderVariants as S } from "./Slider.variants.js";
|
|
@@ -4,7 +4,7 @@ import { forwardRef as _, useState as H, useRef as A, useId as M, useImperativeH
|
|
|
4
4
|
import { a as B, c as q, b as F } from "../../index-Cva-e5M4.js";
|
|
5
5
|
import { u as O } from "../../index-B_6_jmOO.js";
|
|
6
6
|
import { u as V, a as D } from "../../index-4ecjw_Aj.js";
|
|
7
|
-
import { P as g } from "../../index-
|
|
7
|
+
import { P as g } from "../../index-D7QNmo_D.js";
|
|
8
8
|
import { cn as x } from "../../utils/index.js";
|
|
9
9
|
import { thumbVariants as L, switchVariants as U } from "./Switch.variants.js";
|
|
10
10
|
import { useTheme as W } from "../../contexts/theme.hook.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { c as t } from "../../index-BNmRGtA6.js";
|
|
2
2
|
const e = t(
|
|
3
3
|
[
|
|
4
|
-
"w-
|
|
5
|
-
"h-
|
|
4
|
+
"w-[44px]",
|
|
5
|
+
"h-[22px]",
|
|
6
6
|
"flex",
|
|
7
7
|
"items-center",
|
|
8
8
|
"rounded-full",
|
|
@@ -28,8 +28,8 @@ const e = t(
|
|
|
28
28
|
), r = t(
|
|
29
29
|
[
|
|
30
30
|
"block",
|
|
31
|
-
"w-
|
|
32
|
-
"h-
|
|
31
|
+
"w-[18px]",
|
|
32
|
+
"h-[18px]",
|
|
33
33
|
"bg-white",
|
|
34
34
|
"rounded-full",
|
|
35
35
|
"shadow-md",
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { cn as p } from "../../utils/index.js";
|
|
3
|
+
import { tableVariants as f } from "./Table.variants.js";
|
|
4
|
+
import { Head as s } from "./components/Head.js";
|
|
5
|
+
import { Row as l } from "./components/Row.js";
|
|
6
|
+
import { Filter as n } from "./components/Filter.js";
|
|
7
|
+
import { Body as c } from "./components/Body.js";
|
|
8
|
+
import { useTheme as d } from "../../contexts/theme.hook.js";
|
|
9
|
+
const o = ({ children: r, className: t, theme: m, ...e }) => {
|
|
10
|
+
const { theme: i } = d();
|
|
11
|
+
return /* @__PURE__ */ a(
|
|
12
|
+
"table",
|
|
13
|
+
{
|
|
14
|
+
className: p(
|
|
15
|
+
f({
|
|
16
|
+
className: t,
|
|
17
|
+
theme: m ?? i
|
|
18
|
+
})
|
|
19
|
+
),
|
|
20
|
+
...e,
|
|
21
|
+
children: r
|
|
22
|
+
}
|
|
23
|
+
);
|
|
24
|
+
};
|
|
25
|
+
o.Head = s;
|
|
26
|
+
o.Row = l;
|
|
27
|
+
o.Filter = n;
|
|
28
|
+
o.Body = c;
|
|
29
|
+
export {
|
|
30
|
+
o as Table
|
|
31
|
+
};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { c as t } from "../../index-BNmRGtA6.js";
|
|
2
|
+
const r = t(
|
|
3
|
+
[
|
|
4
|
+
"table-auto",
|
|
5
|
+
"w-full",
|
|
6
|
+
"border-collapse",
|
|
7
|
+
"border-spacing-0",
|
|
8
|
+
"rounded",
|
|
9
|
+
"shadow-sm"
|
|
10
|
+
],
|
|
11
|
+
{
|
|
12
|
+
variants: {
|
|
13
|
+
theme: {
|
|
14
|
+
kubefirst: "",
|
|
15
|
+
colony: "",
|
|
16
|
+
civo: ""
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
defaultVariants: {
|
|
20
|
+
theme: "kubefirst"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
), a = t(
|
|
24
|
+
[
|
|
25
|
+
"h-8",
|
|
26
|
+
"text-inherit",
|
|
27
|
+
"[&>td]:py-3",
|
|
28
|
+
"[&>td]:px-4",
|
|
29
|
+
"text-slate-700",
|
|
30
|
+
"hover:bg-zinc-100",
|
|
31
|
+
"hover:cursor-pointer"
|
|
32
|
+
],
|
|
33
|
+
{
|
|
34
|
+
variants: {
|
|
35
|
+
theme: {
|
|
36
|
+
kubefirst: "",
|
|
37
|
+
colony: "",
|
|
38
|
+
civo: ""
|
|
39
|
+
},
|
|
40
|
+
isSelected: {
|
|
41
|
+
true: "bg-purple-50",
|
|
42
|
+
false: ""
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
), o = t(
|
|
47
|
+
[
|
|
48
|
+
"h-[18px]",
|
|
49
|
+
"bg-slate-100",
|
|
50
|
+
"[&>tr>th]:py-3",
|
|
51
|
+
"[&>tr>th]:px-4",
|
|
52
|
+
"[&>tr>th]:uppercase",
|
|
53
|
+
"text-left"
|
|
54
|
+
],
|
|
55
|
+
{
|
|
56
|
+
variants: {
|
|
57
|
+
theme: {
|
|
58
|
+
kubefirst: "",
|
|
59
|
+
colony: "",
|
|
60
|
+
civo: ""
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
), s = t([], {
|
|
65
|
+
variants: {
|
|
66
|
+
theme: {
|
|
67
|
+
kubefirst: "",
|
|
68
|
+
colony: "",
|
|
69
|
+
civo: ""
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
export {
|
|
74
|
+
s as bodyVariants,
|
|
75
|
+
o as headVariants,
|
|
76
|
+
a as rowVariants,
|
|
77
|
+
r as tableVariants
|
|
78
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { bodyVariants as n } from "../Table.variants.js";
|
|
3
|
+
import { cn as i } from "../../../utils/index.js";
|
|
4
|
+
import { useTheme as p } from "../../../contexts/theme.hook.js";
|
|
5
|
+
const d = ({
|
|
6
|
+
children: o,
|
|
7
|
+
className: t,
|
|
8
|
+
theme: e,
|
|
9
|
+
...m
|
|
10
|
+
}) => {
|
|
11
|
+
const { theme: r } = p();
|
|
12
|
+
return /* @__PURE__ */ s(
|
|
13
|
+
"tbody",
|
|
14
|
+
{
|
|
15
|
+
className: i(
|
|
16
|
+
n({
|
|
17
|
+
className: t,
|
|
18
|
+
theme: e ?? r
|
|
19
|
+
})
|
|
20
|
+
),
|
|
21
|
+
...m,
|
|
22
|
+
children: o
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
};
|
|
26
|
+
export {
|
|
27
|
+
d as Body
|
|
28
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Input as i } from "../../Input/Input.js";
|
|
3
|
+
const o = ({ children: s, ...r }) => /* @__PURE__ */ t("div", { className: "flex px-4 py-6 rounded-t", children: [
|
|
4
|
+
/* @__PURE__ */ e(i, { className: "!w-1/3", ...r }),
|
|
5
|
+
/* @__PURE__ */ e("div", { className: "w-1/4 flex justify-end", children: s })
|
|
6
|
+
] });
|
|
7
|
+
export {
|
|
8
|
+
o as Filter
|
|
9
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { headVariants as s } from "../Table.variants.js";
|
|
3
|
+
import { cn as h } from "../../../utils/index.js";
|
|
4
|
+
import { useTheme as n } from "../../../contexts/theme.hook.js";
|
|
5
|
+
const d = ({
|
|
6
|
+
children: e,
|
|
7
|
+
className: t,
|
|
8
|
+
theme: m,
|
|
9
|
+
...o
|
|
10
|
+
}) => {
|
|
11
|
+
const { theme: r } = n();
|
|
12
|
+
return /* @__PURE__ */ a(
|
|
13
|
+
"thead",
|
|
14
|
+
{
|
|
15
|
+
className: h(
|
|
16
|
+
s({
|
|
17
|
+
className: t,
|
|
18
|
+
theme: m ?? r
|
|
19
|
+
})
|
|
20
|
+
),
|
|
21
|
+
...o,
|
|
22
|
+
children: e
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
};
|
|
26
|
+
export {
|
|
27
|
+
d as Head
|
|
28
|
+
};
|