@konstructio/ui 0.1.2-alpha.44 → 0.1.2-alpha.47
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/components/AlertDialog/AlertDialog.js +39 -37
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/Badge/Badge.js +23 -26
- package/dist/components/Badge/Badge.variants.js +1 -1
- package/dist/components/Button/Button.variants.js +108 -98
- package/dist/components/Checkbox/Checkbox.js +104 -100
- package/dist/components/Checkbox/Checkbox.variants.js +30 -7
- package/dist/components/Counter/Counter.js +210 -0
- package/dist/components/Counter/Counter.variants.js +70 -0
- package/dist/components/Filter/Filter.js +1 -1
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +9 -10
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +76 -43
- package/dist/components/Filter/components/ResetButton/ResetButton.js +21 -32
- package/dist/components/Filter/events/index.js +3 -3
- package/dist/components/ImageUpload/ImageUpload.js +221 -0
- package/dist/components/ImageUpload/ImageUpload.variants.js +109 -0
- package/dist/components/Input/Input.variants.js +10 -2
- package/dist/components/PhoneNumberInput/PhoneNumberInput.variants.js +4 -4
- package/dist/components/PhoneNumberInput/components/FlagContent/FlagContent.js +16 -7
- package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +92 -74
- package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +53 -29
- package/dist/components/PhoneNumberInput/components/Wrapper.js +139 -120
- package/dist/components/Radio/Radio.js +47 -44
- package/dist/components/Radio/Radio.variants.js +12 -8
- package/dist/components/Select/Select.js +48 -0
- package/dist/components/{Dropdown/Dropdown.variants.js → Select/Select.variants.js} +3 -3
- package/dist/components/{Dropdown → Select}/components/List/List.js +48 -43
- package/dist/components/{Dropdown → Select}/components/List/List.variants.js +8 -5
- package/dist/components/{Dropdown → Select}/components/ListItem/ListItem.js +20 -20
- package/dist/components/{Dropdown → Select}/components/ListItem/ListItem.variants.js +3 -2
- package/dist/components/{Dropdown → Select}/components/Wrapper.js +70 -70
- package/dist/components/Select/contexts/index.js +6 -0
- package/dist/components/{Dropdown/contexts/dropdown.context.js → Select/contexts/select.context.js} +2 -2
- package/dist/components/Select/contexts/select.hook.js +11 -0
- package/dist/components/Select/contexts/select.provider.js +58 -0
- package/dist/components/{Dropdown → Select}/hooks/useNavigationList.js +3 -3
- package/dist/components/{Dropdown/hooks/useDropdown.js → Select/hooks/useSelect.js} +33 -33
- package/dist/components/Switch/Switch.js +153 -125
- package/dist/components/Switch/Switch.variants.js +15 -6
- package/dist/components/TimePicker/TimePicker.variants.js +11 -6
- package/dist/components/TimePicker/components/MeridianList/MeridianList.js +30 -20
- package/dist/components/TimePicker/components/Wrapper/Wrapper.js +50 -35
- package/dist/components/Typography/Typography.js +24 -28
- package/dist/components/Typography/Typography.variants.js +49 -46
- package/dist/components/VirtualizedTable/components/Actions/Actions.js +14 -14
- package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +10 -10
- package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +1 -1
- package/dist/components/index.js +84 -80
- package/dist/{index-CPU02rhe.js → index-D6KzX_ef.js} +13 -12
- package/dist/index.d.ts +134 -81
- package/dist/index.js +114 -110
- package/dist/package.json +4 -4
- package/dist/styles.css +1 -1
- package/dist/ui/civo-theme.css +6 -5
- package/dist/ui/theme.css +27 -0
- package/dist/x-BXShoIAM.js +8 -0
- package/package.json +4 -4
- package/dist/components/Dropdown/Dropdown.js +0 -48
- package/dist/components/Dropdown/contexts/dropdown.hook.js +0 -13
- package/dist/components/Dropdown/contexts/dropdown.provider.js +0 -58
- package/dist/components/Dropdown/contexts/index.js +0 -6
- package/dist/components/NumberInput/NumberInput.js +0 -179
- package/dist/components/NumberInput/NumberInput.variants.js +0 -50
- /package/dist/components/{Dropdown → Select}/components/EmptyList.js +0 -0
- /package/dist/components/{Dropdown → Select}/components/index.js +0 -0
- /package/dist/components/{Dropdown → Select}/constants/index.js +0 -0
- /package/dist/components/{Dropdown → Select}/constants/pagination.js +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { R, A as
|
|
3
|
-
import { useRef as
|
|
2
|
+
import { R as j, A as T, P as w, O as K, C as P, T as z, D as B, a as E, b as S } from "../../index-D6KzX_ef.js";
|
|
3
|
+
import { useRef as q, useState as F, useEffect as G } from "react";
|
|
4
4
|
import { Button as s } from "../Button/Button.js";
|
|
5
5
|
import { cn as n } from "../../utils/index.js";
|
|
6
|
-
import { useAlertDialog as
|
|
7
|
-
const
|
|
6
|
+
import { useAlertDialog as H } from "./hooks/useAlertDialog.js";
|
|
7
|
+
const I = ({
|
|
8
8
|
buttonCancel: {
|
|
9
|
-
className:
|
|
10
|
-
text:
|
|
9
|
+
className: i,
|
|
10
|
+
text: o = "Cancel",
|
|
11
11
|
...c
|
|
12
12
|
} = {},
|
|
13
13
|
buttonConfirm: {
|
|
@@ -16,38 +16,40 @@ const H = ({
|
|
|
16
16
|
...f
|
|
17
17
|
} = {},
|
|
18
18
|
buttonTriggerClassName: p,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
buttonTriggerVariant: u,
|
|
20
|
+
buttonTriggerText: h,
|
|
21
|
+
description: x,
|
|
22
|
+
showCancelButton: b = !0,
|
|
22
23
|
theme: a,
|
|
23
|
-
title:
|
|
24
|
-
wrapperClassName:
|
|
25
|
-
onConfirm:
|
|
26
|
-
...
|
|
24
|
+
title: g,
|
|
25
|
+
wrapperClassName: C,
|
|
26
|
+
onConfirm: N,
|
|
27
|
+
...y
|
|
27
28
|
}) => {
|
|
28
|
-
const r =
|
|
29
|
-
onConfirm:
|
|
29
|
+
const r = q(null), [k, A] = F(null), { isOpen: D, handleCancel: O, handleConfirm: v, handleOpen: R } = H({
|
|
30
|
+
onConfirm: N
|
|
30
31
|
});
|
|
31
|
-
return
|
|
32
|
+
return G(() => {
|
|
32
33
|
if (!r.current || a)
|
|
33
34
|
return;
|
|
34
35
|
const l = r.current.closest("[data-theme]");
|
|
35
|
-
l &&
|
|
36
|
-
}, []), /* @__PURE__ */ t(
|
|
36
|
+
l && A(l);
|
|
37
|
+
}, []), /* @__PURE__ */ t(j, { open: D, ...y, children: [
|
|
37
38
|
/* @__PURE__ */ e(
|
|
38
|
-
|
|
39
|
+
T,
|
|
39
40
|
{
|
|
40
41
|
ref: r,
|
|
41
42
|
className: p,
|
|
42
|
-
|
|
43
|
+
variant: u,
|
|
44
|
+
text: h,
|
|
43
45
|
"data-theme": a,
|
|
44
|
-
onOpen:
|
|
46
|
+
onOpen: R
|
|
45
47
|
}
|
|
46
48
|
),
|
|
47
|
-
/* @__PURE__ */ t(
|
|
48
|
-
/* @__PURE__ */ e(
|
|
49
|
+
/* @__PURE__ */ t(w, { container: k, children: [
|
|
50
|
+
/* @__PURE__ */ e(K, { className: "bg-black opacity-70 dark:opacity-85 inset-0 fixed animate-in fade-in-0" }),
|
|
49
51
|
/* @__PURE__ */ t(
|
|
50
|
-
|
|
52
|
+
P,
|
|
51
53
|
{
|
|
52
54
|
"data-theme": a,
|
|
53
55
|
className: n(
|
|
@@ -60,7 +62,7 @@ const H = ({
|
|
|
60
62
|
"-translate-x-2/4",
|
|
61
63
|
"flex",
|
|
62
64
|
"flex-col",
|
|
63
|
-
"gap-
|
|
65
|
+
"gap-6",
|
|
64
66
|
"p-8",
|
|
65
67
|
"animate-in",
|
|
66
68
|
"fade-in-0",
|
|
@@ -70,30 +72,30 @@ const H = ({
|
|
|
70
72
|
"dark:bg-metal-800",
|
|
71
73
|
"dark:border-metal-700",
|
|
72
74
|
"dark:border-slate-700",
|
|
73
|
-
|
|
75
|
+
C
|
|
74
76
|
),
|
|
75
77
|
children: [
|
|
76
|
-
/* @__PURE__ */ e(
|
|
77
|
-
/* @__PURE__ */ e(
|
|
78
|
-
/* @__PURE__ */ t("div", { className: "flex flex-row gap-
|
|
79
|
-
|
|
78
|
+
/* @__PURE__ */ e(z, { className: "text-base text-slate-700 font-semibold", children: g }),
|
|
79
|
+
/* @__PURE__ */ e(B, { className: "text-sm text-slate-800", children: x }),
|
|
80
|
+
/* @__PURE__ */ t("div", { className: "flex flex-row gap-2 justify-end", children: [
|
|
81
|
+
b && /* @__PURE__ */ e(E, { asChild: !0, children: /* @__PURE__ */ e(
|
|
80
82
|
s,
|
|
81
83
|
{
|
|
82
84
|
type: "button",
|
|
83
85
|
variant: "secondary",
|
|
84
|
-
className: n(
|
|
85
|
-
onClick:
|
|
86
|
+
className: n(i),
|
|
87
|
+
onClick: O,
|
|
86
88
|
...c,
|
|
87
|
-
children:
|
|
89
|
+
children: o
|
|
88
90
|
}
|
|
89
91
|
) }),
|
|
90
|
-
/* @__PURE__ */ e(
|
|
92
|
+
/* @__PURE__ */ e(S, { asChild: !0, children: /* @__PURE__ */ e(
|
|
91
93
|
s,
|
|
92
94
|
{
|
|
93
95
|
type: "button",
|
|
94
96
|
variant: "primary",
|
|
95
97
|
className: n(d),
|
|
96
|
-
onClick:
|
|
98
|
+
onClick: v,
|
|
97
99
|
...f,
|
|
98
100
|
children: m
|
|
99
101
|
}
|
|
@@ -105,7 +107,7 @@ const H = ({
|
|
|
105
107
|
] })
|
|
106
108
|
] });
|
|
107
109
|
};
|
|
108
|
-
|
|
110
|
+
I.displayName = "KonstructAlertDialog";
|
|
109
111
|
export {
|
|
110
|
-
|
|
112
|
+
I as AlertDialog
|
|
111
113
|
};
|
|
@@ -1,32 +1,29 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { S } from "../../loader-juvMSJ9L.js";
|
|
4
|
-
import { cn as
|
|
5
|
-
import { buttonDismissVariants as
|
|
1
|
+
import { jsxs as d, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as v, useState as y, useCallback as N, useEffect as S } from "react";
|
|
3
|
+
import { S as w } from "../../loader-juvMSJ9L.js";
|
|
4
|
+
import { cn as u } from "../../utils/index.js";
|
|
5
|
+
import { buttonDismissVariants as x, badgeVariants as V } from "./Badge.variants.js";
|
|
6
6
|
import { S as D } from "../../index-BvoZGpli.js";
|
|
7
|
-
import {
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
11
|
-
], E = L("x", j), M = ({
|
|
12
|
-
className: u,
|
|
7
|
+
import { X as j } from "../../x-BXShoIAM.js";
|
|
8
|
+
const X = ({
|
|
9
|
+
className: c,
|
|
13
10
|
dismissible: p = !1,
|
|
14
11
|
isSelectable: b = !0,
|
|
15
12
|
label: r,
|
|
16
|
-
leftIcon:
|
|
17
|
-
loading:
|
|
18
|
-
size:
|
|
13
|
+
leftIcon: i,
|
|
14
|
+
loading: o = !1,
|
|
15
|
+
size: n,
|
|
19
16
|
variant: l,
|
|
20
17
|
onClick: e,
|
|
21
18
|
onDismiss: m
|
|
22
19
|
}) => {
|
|
23
|
-
const s =
|
|
20
|
+
const s = v(null), [f, h] = y("visible"), g = N(
|
|
24
21
|
(t) => {
|
|
25
22
|
t.stopPropagation(), m?.(), h("hidden");
|
|
26
23
|
},
|
|
27
24
|
[m]
|
|
28
25
|
);
|
|
29
|
-
return
|
|
26
|
+
return S(() => {
|
|
30
27
|
const t = new AbortController();
|
|
31
28
|
return s.current?.addEventListener(
|
|
32
29
|
"animationend",
|
|
@@ -35,11 +32,11 @@ const j = [
|
|
|
35
32
|
},
|
|
36
33
|
{ signal: t.signal }
|
|
37
34
|
), () => t.abort();
|
|
38
|
-
}, []), /* @__PURE__ */
|
|
35
|
+
}, []), /* @__PURE__ */ d(
|
|
39
36
|
"span",
|
|
40
37
|
{
|
|
41
38
|
ref: s,
|
|
42
|
-
className:
|
|
39
|
+
className: u(V({ variant: l, size: n, className: c }), {
|
|
43
40
|
"select-none": !b,
|
|
44
41
|
"cursor-pointer": e
|
|
45
42
|
}),
|
|
@@ -47,22 +44,22 @@ const j = [
|
|
|
47
44
|
onClick: e,
|
|
48
45
|
tabIndex: e ? 0 : void 0,
|
|
49
46
|
"aria-label": e ? `${r} badge` : void 0,
|
|
50
|
-
"aria-busy":
|
|
47
|
+
"aria-busy": o,
|
|
51
48
|
"aria-live": "polite",
|
|
52
49
|
"data-state": f,
|
|
53
50
|
children: [
|
|
54
|
-
|
|
55
|
-
|
|
51
|
+
o && /* @__PURE__ */ a(w, { className: "h-3 w-3 animate-spin animate-duration-time-2" }),
|
|
52
|
+
i ? /* @__PURE__ */ a(D, { className: "h-3 w-3", children: i }) : null,
|
|
56
53
|
r,
|
|
57
|
-
p && /* @__PURE__ */
|
|
54
|
+
p && /* @__PURE__ */ d(
|
|
58
55
|
"button",
|
|
59
56
|
{
|
|
60
57
|
type: "button",
|
|
61
|
-
className:
|
|
62
|
-
onClick:
|
|
58
|
+
className: u(x({ size: n, variant: l })),
|
|
59
|
+
onClick: g,
|
|
63
60
|
"aria-label": "Dismiss",
|
|
64
61
|
children: [
|
|
65
|
-
/* @__PURE__ */ a(
|
|
62
|
+
/* @__PURE__ */ a(j, { className: "h-full w-full" }),
|
|
66
63
|
/* @__PURE__ */ a("span", { className: "sr-only", children: "Dismiss" })
|
|
67
64
|
]
|
|
68
65
|
}
|
|
@@ -72,5 +69,5 @@ const j = [
|
|
|
72
69
|
);
|
|
73
70
|
};
|
|
74
71
|
export {
|
|
75
|
-
|
|
72
|
+
X as Badge
|
|
76
73
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { c as r } from "../../index-D29mdTf5.js";
|
|
2
|
-
const
|
|
2
|
+
const a = r(
|
|
3
3
|
[
|
|
4
|
+
"select-none",
|
|
4
5
|
"border",
|
|
5
6
|
"cursor-pointer",
|
|
6
7
|
"disabled:pointer-events-none",
|
|
@@ -9,7 +10,7 @@ const t = r(
|
|
|
9
10
|
"focus-visible:ring-1",
|
|
10
11
|
"focus-visible:ring-ring",
|
|
11
12
|
"font-semibold",
|
|
12
|
-
"gap-
|
|
13
|
+
"gap-2",
|
|
13
14
|
"inline-flex",
|
|
14
15
|
"items-center",
|
|
15
16
|
"justify-center",
|
|
@@ -20,22 +21,24 @@ const t = r(
|
|
|
20
21
|
"px-4",
|
|
21
22
|
"py-2",
|
|
22
23
|
"text-sm",
|
|
24
|
+
"bg-aurora-500",
|
|
25
|
+
"border-aurora-500",
|
|
26
|
+
"text-metal-900",
|
|
27
|
+
"focus-visible:bg-aurora-400",
|
|
28
|
+
"hover:bg-aurora-400",
|
|
29
|
+
"hover:border-aurora-400",
|
|
23
30
|
"kubefirst:border-kubefirst-primary",
|
|
24
31
|
"kubefirst:bg-kubefirst-primary",
|
|
25
32
|
"kubefirst:hover:bg-kubefirst-secondary",
|
|
26
33
|
"kubefirst:hover:border-kubefirst-secondary",
|
|
27
|
-
"kubefirst:text-white"
|
|
28
|
-
"bg-aurora-500",
|
|
29
|
-
"border-aurora-500",
|
|
30
|
-
"text-slate-700",
|
|
31
|
-
"hover:bg-aurora-400",
|
|
32
|
-
"hover:border-aurora-400"
|
|
34
|
+
"kubefirst:text-white"
|
|
33
35
|
],
|
|
34
36
|
{
|
|
35
37
|
variants: {
|
|
36
38
|
variant: {
|
|
37
39
|
primary: "",
|
|
38
40
|
secondary: ["bg-white"],
|
|
41
|
+
tertiary: [],
|
|
39
42
|
danger: [
|
|
40
43
|
"border-red-700",
|
|
41
44
|
"bg-red-700",
|
|
@@ -43,7 +46,18 @@ const t = r(
|
|
|
43
46
|
"hover:bg-red-800",
|
|
44
47
|
"hover:border-red-800"
|
|
45
48
|
],
|
|
46
|
-
|
|
49
|
+
link: [
|
|
50
|
+
"bg-transparent",
|
|
51
|
+
"border-transparent",
|
|
52
|
+
"text-blue-600",
|
|
53
|
+
"hover:underline",
|
|
54
|
+
"hover:text-blue-700",
|
|
55
|
+
"hover:bg-transparent",
|
|
56
|
+
"hover:border-transparent",
|
|
57
|
+
"dark:text-aurora-500",
|
|
58
|
+
"dark:hover:text-aurora-500",
|
|
59
|
+
"focus-visible:bg-transparent"
|
|
60
|
+
]
|
|
47
61
|
},
|
|
48
62
|
shape: {
|
|
49
63
|
circle: ["rounded-full", "p-1"]
|
|
@@ -61,21 +75,29 @@ const t = r(
|
|
|
61
75
|
large: ""
|
|
62
76
|
},
|
|
63
77
|
appearance: {
|
|
64
|
-
compact: [
|
|
65
|
-
"px-2",
|
|
66
|
-
"py-1",
|
|
67
|
-
"h-auto",
|
|
68
|
-
"text-[0.8125rem]",
|
|
69
|
-
"leading-5.5",
|
|
70
|
-
"h-[30px]"
|
|
71
|
-
]
|
|
78
|
+
compact: ["px-2", "py-1", "text-[13px]", "leading-5.5", "h-7.5"]
|
|
72
79
|
}
|
|
73
80
|
},
|
|
74
81
|
compoundVariants: [
|
|
82
|
+
{
|
|
83
|
+
variant: "primary",
|
|
84
|
+
disabled: !0,
|
|
85
|
+
class: [
|
|
86
|
+
"text-metal-900",
|
|
87
|
+
"bg-aurora-500",
|
|
88
|
+
"border-transparent",
|
|
89
|
+
"kubefirst:bg-zinc-200",
|
|
90
|
+
"kubefirst:border-zinc-200",
|
|
91
|
+
"kubefirst:text-zinc-500",
|
|
92
|
+
"text-gray-700",
|
|
93
|
+
"opacity-45"
|
|
94
|
+
]
|
|
95
|
+
},
|
|
75
96
|
{
|
|
76
97
|
variant: "secondary",
|
|
77
98
|
disabled: !1,
|
|
78
99
|
class: [
|
|
100
|
+
"transition-colors",
|
|
79
101
|
"bg-white",
|
|
80
102
|
"hover:bg-white",
|
|
81
103
|
"text-slate-700",
|
|
@@ -83,9 +105,11 @@ const t = r(
|
|
|
83
105
|
"hover:text-slate-700",
|
|
84
106
|
"hover:border-slate-300",
|
|
85
107
|
"hover:bg-slate-50",
|
|
108
|
+
"focus-visible:bg-slate-50",
|
|
86
109
|
"dark:bg-transparent",
|
|
87
110
|
"dark:text-aurora-500",
|
|
88
111
|
"dark:border-aurora-500",
|
|
112
|
+
"dark:focus-visible:bg-aurora-900",
|
|
89
113
|
"dark:hover:bg-aurora-900",
|
|
90
114
|
"dark:hover:border-aurora-500",
|
|
91
115
|
"dark:hover:text-aurora-500",
|
|
@@ -98,38 +122,62 @@ const t = r(
|
|
|
98
122
|
]
|
|
99
123
|
},
|
|
100
124
|
{
|
|
101
|
-
variant: "
|
|
125
|
+
variant: "secondary",
|
|
102
126
|
disabled: !0,
|
|
103
127
|
class: [
|
|
104
|
-
"kubefirst:bg-
|
|
105
|
-
"kubefirst:border-zinc-
|
|
128
|
+
"kubefirst:bg-white",
|
|
129
|
+
"kubefirst:border-zinc-500",
|
|
106
130
|
"kubefirst:text-zinc-500",
|
|
107
|
-
"
|
|
131
|
+
"border-slate-300",
|
|
132
|
+
"bg-white",
|
|
133
|
+
"text-slate-700",
|
|
134
|
+
"dark:bg-aurora-900",
|
|
135
|
+
"dark:border-aurora-500",
|
|
136
|
+
"dark:text-aurora-500",
|
|
108
137
|
"opacity-45"
|
|
109
138
|
]
|
|
110
139
|
},
|
|
111
140
|
{
|
|
112
|
-
variant: "
|
|
141
|
+
variant: "tertiary",
|
|
142
|
+
disabled: !1,
|
|
143
|
+
class: [
|
|
144
|
+
"transition-colors",
|
|
145
|
+
"bg-transparent",
|
|
146
|
+
"border-transparent",
|
|
147
|
+
"text-slate-700",
|
|
148
|
+
"hover:bg-aurora-100",
|
|
149
|
+
"focus-visible:bg-aurora-100",
|
|
150
|
+
"hover:text-slate-700",
|
|
151
|
+
"hover:border-transparent",
|
|
152
|
+
"dark:bg-transparent",
|
|
153
|
+
"dark:text-metal-100",
|
|
154
|
+
"dark:border-transparent",
|
|
155
|
+
"dark:focus-visible:bg-green-400/15",
|
|
156
|
+
"dark:hover:bg-green-400/15",
|
|
157
|
+
"dark:hover:border-transparent",
|
|
158
|
+
"dark:hover:text-metal-100",
|
|
159
|
+
"dark:focus-visible:hover:bg-green-400/15"
|
|
160
|
+
]
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
variant: "tertiary",
|
|
113
164
|
disabled: !0,
|
|
114
165
|
class: [
|
|
115
|
-
"
|
|
116
|
-
"kubefirst:border-zinc-500",
|
|
117
|
-
"kubefirst:text-zinc-500",
|
|
118
|
-
"border-slate-300/45",
|
|
166
|
+
"border-transparent",
|
|
119
167
|
"bg-white",
|
|
120
|
-
"text-slate-700
|
|
168
|
+
"text-slate-700",
|
|
169
|
+
"opacity-45",
|
|
170
|
+
"dark:bg-transparent",
|
|
171
|
+
"dark:border-transparent",
|
|
172
|
+
"dark:text-metal-100"
|
|
121
173
|
]
|
|
122
174
|
},
|
|
123
175
|
{
|
|
124
176
|
variant: "danger",
|
|
125
177
|
version: "alternate",
|
|
126
178
|
class: [
|
|
127
|
-
"kubefirst:border-red-700",
|
|
128
|
-
"kubefirst:text-red-700",
|
|
129
|
-
"kubefirst:bg-white",
|
|
130
|
-
"kubefirst:hover:bg-red-50",
|
|
131
|
-
"border-red-700",
|
|
132
179
|
"text-red-700",
|
|
180
|
+
"border-red-700",
|
|
133
181
|
"bg-white",
|
|
134
182
|
"hover:bg-red-50"
|
|
135
183
|
]
|
|
@@ -137,57 +185,22 @@ const t = r(
|
|
|
137
185
|
{
|
|
138
186
|
variant: "danger",
|
|
139
187
|
disabled: !0,
|
|
140
|
-
class: ["text-white", "bg-red-700/45", "border-transparent"]
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
variant: "text",
|
|
144
|
-
disabled: !1,
|
|
145
|
-
version: "default",
|
|
146
|
-
class: [
|
|
147
|
-
"kubefirst:hover:border-transparent",
|
|
148
|
-
"kubefirst:hover:text-kubefirst-primary",
|
|
149
|
-
"kubefirst:text-kubefirst-primary",
|
|
150
|
-
"kubefirst:hover:bg-purple-50",
|
|
151
|
-
"kubefirst:bg-white",
|
|
152
|
-
"kubefirst:border-transparent",
|
|
153
|
-
"bg-white",
|
|
154
|
-
"border-transparent",
|
|
155
|
-
"text-slate-700",
|
|
156
|
-
"hover:border-transparent",
|
|
157
|
-
"hover:text-aurora-500",
|
|
158
|
-
"hover:bg-transparent"
|
|
159
|
-
]
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
variant: "text",
|
|
163
|
-
disabled: !1,
|
|
164
|
-
version: "alternate",
|
|
165
188
|
class: [
|
|
189
|
+
"text-red-700",
|
|
190
|
+
"border-red-700",
|
|
166
191
|
"bg-white",
|
|
167
|
-
"
|
|
168
|
-
"
|
|
169
|
-
"hover:border-transparent",
|
|
170
|
-
"hover:text-aurora-500",
|
|
171
|
-
"hover:bg-aurora-50",
|
|
172
|
-
"kubefirst:hover:border-transparent",
|
|
173
|
-
"kubefirst:text-kubefirst-primary",
|
|
174
|
-
"kubefirst:border-transparent",
|
|
175
|
-
"kubefirst:bg-white",
|
|
176
|
-
"kubefirst:hover:text-kubefirst-primary",
|
|
177
|
-
"kubefirst:hover:bg-purple-50"
|
|
192
|
+
"hover:bg-red-50",
|
|
193
|
+
"opacity-45"
|
|
178
194
|
]
|
|
179
195
|
},
|
|
180
196
|
{
|
|
181
|
-
variant: "
|
|
197
|
+
variant: "link",
|
|
182
198
|
disabled: !0,
|
|
183
|
-
version: ["default", "alternate"],
|
|
184
199
|
class: [
|
|
185
|
-
"
|
|
186
|
-
"
|
|
187
|
-
"
|
|
188
|
-
"
|
|
189
|
-
"border-white",
|
|
190
|
-
"text-slate-700/45"
|
|
200
|
+
"bg-transparent",
|
|
201
|
+
"border-transparent",
|
|
202
|
+
"text-blue-600",
|
|
203
|
+
"opacity-45"
|
|
191
204
|
]
|
|
192
205
|
},
|
|
193
206
|
{
|
|
@@ -197,30 +210,21 @@ const t = r(
|
|
|
197
210
|
class: [
|
|
198
211
|
"w-8",
|
|
199
212
|
"h-8",
|
|
200
|
-
"text-slate-
|
|
213
|
+
"text-slate-500",
|
|
201
214
|
"bg-transparent",
|
|
202
215
|
"border-transparent",
|
|
203
216
|
"hover:border-transparent",
|
|
204
|
-
"hover:bg-aurora-
|
|
217
|
+
"hover:bg-aurora-50",
|
|
218
|
+
"focus-visible:bg-aurora-50",
|
|
205
219
|
"hover:text-slate-800",
|
|
220
|
+
"focus-visible:text-slate-800",
|
|
206
221
|
"[&>svg]:w-5",
|
|
207
222
|
"[&>svg]:h-5",
|
|
208
|
-
"dark:text-
|
|
223
|
+
"dark:text-metal-400",
|
|
224
|
+
"dark:focus-visible:text-aurora-500",
|
|
209
225
|
"dark:hover:text-aurora-500",
|
|
210
|
-
"dark:hover:bg-
|
|
211
|
-
"
|
|
212
|
-
"kubefirst:bg-transparent",
|
|
213
|
-
"kubefirst:border-transparent",
|
|
214
|
-
"kubefirst:hover:border-transparent",
|
|
215
|
-
"kubefirst:hover:bg-kubefirst-primary/5",
|
|
216
|
-
"kubefirst:hover:text-kubefirst-primary",
|
|
217
|
-
"kubefirst-dark:text-slate-400",
|
|
218
|
-
"kubefirst-dark:bg-transparent",
|
|
219
|
-
"kubefirst-dark:border-transparent",
|
|
220
|
-
"kubefirst-dark:hover:border-transparent",
|
|
221
|
-
"kubefirst-dark:hover:bg-kubefirst-primary/5",
|
|
222
|
-
"kubefirst-dark:hover:text-kubefirst-primary",
|
|
223
|
-
"kubefirst-dark:hover:bg-kubefirst-primary/25"
|
|
226
|
+
"dark:hover:bg-green-400/15",
|
|
227
|
+
"dark:focus-visible:bg-green-400/15"
|
|
224
228
|
]
|
|
225
229
|
},
|
|
226
230
|
{
|
|
@@ -236,11 +240,15 @@ const t = r(
|
|
|
236
240
|
disabled: !1,
|
|
237
241
|
class: [
|
|
238
242
|
"text-red-700",
|
|
243
|
+
"focus-visible:text-red-700",
|
|
239
244
|
"hover:text-red-700",
|
|
245
|
+
"focus-visible:bg-red-50",
|
|
240
246
|
"hover:bg-red-50",
|
|
241
|
-
"dark:text-red-
|
|
247
|
+
"dark:text-red-500",
|
|
242
248
|
"dark:hover:text-red-500",
|
|
243
|
-
"dark:
|
|
249
|
+
"dark:focus-visible:text-red-500",
|
|
250
|
+
"dark:hover:bg-red-950/55",
|
|
251
|
+
"dark:focus-visible:bg-red-950/55"
|
|
244
252
|
]
|
|
245
253
|
},
|
|
246
254
|
{
|
|
@@ -248,13 +256,15 @@ const t = r(
|
|
|
248
256
|
size: ["medium", "large"],
|
|
249
257
|
disabled: !0,
|
|
250
258
|
class: [
|
|
251
|
-
"
|
|
259
|
+
"opacity-45",
|
|
260
|
+
"text-slate-500",
|
|
252
261
|
"bg-transparent",
|
|
253
262
|
"border-transparent",
|
|
254
263
|
"w-8",
|
|
255
264
|
"h-8",
|
|
256
265
|
"[&>svg]:w-5",
|
|
257
|
-
"[&>svg]:h-5"
|
|
266
|
+
"[&>svg]:h-5",
|
|
267
|
+
"dark:text-metal-400"
|
|
258
268
|
]
|
|
259
269
|
},
|
|
260
270
|
{
|
|
@@ -273,5 +283,5 @@ const t = r(
|
|
|
273
283
|
}
|
|
274
284
|
);
|
|
275
285
|
export {
|
|
276
|
-
|
|
286
|
+
a as buttonVariants
|
|
277
287
|
};
|