@konstructio/ui 0.0.2 → 0.0.3
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/{AlertDialogTrigger-BIbxXexQ.js → AlertDialogTrigger-lenvKoGF.js} +4 -4
- package/dist/Modal-Bg9UG35z.js +909 -0
- package/dist/{chevron-up-Cmu1oXfj.js → chevron-up-CvquEaNg.js} +1 -1
- package/dist/clsx-OuTLNxxd.js +16 -0
- package/dist/components/AlertDialog/AlertDialog.js +1 -1
- package/dist/components/AlertDialog/AlertDialog.variants.d.ts +1 -1
- package/dist/components/AlertDialog/AlertDialog.variants.js +4 -5
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/Autocomplete/Autocomplete.variants.d.ts +2 -2
- package/dist/components/Autocomplete/Autocomplete.variants.js +8 -8
- package/dist/components/Autocomplete/components/List.types.d.ts +3 -3
- package/dist/components/Autocomplete/components/List.variants.d.ts +4 -4
- package/dist/components/Autocomplete/components/List.variants.js +13 -13
- package/dist/components/Autocomplete/hooks/useAutocomplete.d.ts +4 -4
- package/dist/components/Autocomplete/hooks/useNavigationList.d.ts +4 -4
- package/dist/components/Breadcrumb/Breadcrumb.js +57 -412
- package/dist/components/Breadcrumb/Breadcrumb.variants.d.ts +3 -3
- package/dist/components/Breadcrumb/Breadcrumb.variants.js +12 -12
- package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +1 -1
- package/dist/components/Button/Button.js +23 -21
- package/dist/components/Button/Button.variants.d.ts +2 -1
- package/dist/components/Button/Button.variants.js +122 -23
- package/dist/components/Checkbox/Checkbox.js +4 -4
- package/dist/components/Checkbox/Checkbox.variants.d.ts +2 -2
- package/dist/components/Checkbox/Checkbox.variants.js +7 -16
- package/dist/components/Dropdown/Dropdown.js +5 -5
- package/dist/components/Dropdown/Dropdown.types.d.ts +1 -0
- package/dist/components/Dropdown/Dropdown.variants.d.ts +1 -1
- package/dist/components/Dropdown/Dropdown.variants.js +5 -9
- package/dist/components/Dropdown/components/List/List.d.ts +2 -2
- package/dist/components/Dropdown/components/List/List.types.d.ts +3 -3
- package/dist/components/Dropdown/components/List/List.variants.d.ts +1 -1
- package/dist/components/Dropdown/components/List/List.variants.js +3 -3
- package/dist/components/Dropdown/components/ListItem/ListItem.variants.d.ts +1 -1
- package/dist/components/Dropdown/components/ListItem/ListItem.variants.js +3 -3
- package/dist/components/Dropdown/components/Wrapper.d.ts +2 -2
- package/dist/components/Dropdown/components/Wrapper.js +1 -1
- package/dist/components/Dropdown/contexts/dropdown.provider.d.ts +4 -1
- package/dist/components/Dropdown/contexts/dropdown.provider.js +19 -8
- package/dist/components/Dropdown/hooks/useDropdown.d.ts +4 -4
- package/dist/components/Dropdown/hooks/useNavigationList.d.ts +4 -4
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Input/Input.variants.d.ts +1 -1
- package/dist/components/Input/Input.variants.js +3 -3
- 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 -3
- package/dist/components/Modal/components/Wrapper/Wrapper.variants.d.ts +2 -2
- package/dist/components/Modal/components/Wrapper/Wrapper.variants.js +10 -10
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/Modal/hooks/useModal.d.ts +1 -1
- package/dist/components/NumberInput/NumberInput.js +96 -87
- package/dist/components/NumberInput/NumberInput.variants.d.ts +3 -3
- package/dist/components/NumberInput/NumberInput.variants.js +14 -21
- package/dist/components/ProgressBar/ProgressBar.variants.d.ts +2 -2
- package/dist/components/ProgressBar/ProgressBar.variants.js +7 -12
- package/dist/components/Radio/Radio.variants.d.ts +1 -1
- package/dist/components/Radio/Radio.variants.js +4 -7
- package/dist/components/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/Range/Range.js +1 -1
- package/dist/components/Range/Range.variants.d.ts +4 -4
- package/dist/components/Range/Range.variants.js +18 -18
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/Slider/Slider.variants.d.ts +3 -3
- package/dist/components/Slider/Slider.variants.js +12 -12
- package/dist/components/Switch/Switch.js +2 -2
- package/dist/components/Switch/Switch.variants.d.ts +2 -2
- package/dist/components/Switch/Switch.variants.js +6 -6
- package/dist/components/Tag/Tag.variants.js +1 -1
- package/dist/components/TagSelect/TagSelect.js +1 -1
- package/dist/components/TagSelect/TagSelect.variants.d.ts +3 -3
- package/dist/components/TagSelect/TagSelect.variants.js +11 -14
- package/dist/components/TagSelect/hooks/useTagSelect.d.ts +1 -1
- package/dist/components/TextArea/TextArea.variants.d.ts +1 -1
- package/dist/components/TextArea/TextArea.variants.js +5 -5
- package/dist/components/Toast/Toast.js +104 -101
- package/dist/components/Toast/Toast.variants.d.ts +3 -3
- package/dist/components/Toast/Toast.variants.js +12 -12
- package/dist/components/Tooltip/Tooltip.js +1 -1
- package/dist/components/Tooltip/Tooltip.variants.d.ts +2 -2
- package/dist/components/Tooltip/Tooltip.variants.js +9 -9
- package/dist/components/Tooltip/hooks/useTooltip.d.ts +1 -1
- package/dist/components/index.js +1 -1
- package/dist/contexts/theme.context.d.ts +1 -1
- package/dist/contexts/theme.hook.js +3 -6
- package/dist/contexts/theme.provider.d.ts +2 -3
- package/dist/contexts/theme.provider.js +4 -1
- package/dist/index-BBjak_0p.js +47 -0
- package/dist/index-BNmRGtA6.js +34 -0
- package/dist/{index-DFbnnPzA.js → index-Ci9Yg4G1.js} +5 -5
- package/dist/{index-B_GWswUP.js → index-D4Q2rMby.js} +1 -1
- package/dist/{index-DQMInta3.js → index-D68N8v8R.js} +214 -209
- package/dist/index-DoOsnuB6.js +72 -0
- package/dist/{index-2K8qjK4R.js → index-O3j1K921.js} +36 -37
- package/dist/index-OOfdXoxx.js +423 -0
- package/dist/index-ffjBR8Av.js +32 -0
- package/dist/index.js +1 -1
- package/dist/package.json +38 -38
- package/dist/plugins/konstruct.js +61 -50
- package/dist/plugins/utils/colors.d.ts +127 -10
- package/dist/plugins/utils/colors.js +210 -510
- package/dist/styles.css +1 -1
- package/dist/useBreadcrumb-tyxjV-a1.js +1398 -0
- package/dist/utils/index.js +150 -162
- package/dist/x-CRBgmX1Q.js +62 -0
- package/package.json +38 -38
- package/dist/Modal-CO0_SnXD.js +0 -909
- package/dist/index-2hJuj4UN.js +0 -19069
- package/dist/index-4qm4jAkj.js +0 -92
- package/dist/index-BJ7FQg17.js +0 -35
- package/dist/index-BqM_XclQ.js +0 -94
- package/dist/index-BwYCDOHZ.js +0 -44
- package/dist/index-CCavb-1K.js +0 -57
- package/dist/useBreadcrumb-BSMnc4Fu.js +0 -341
|
@@ -1,42 +1,47 @@
|
|
|
1
|
-
import { c as e } from "../../index-
|
|
1
|
+
import { c as e } from "../../index-BNmRGtA6.js";
|
|
2
2
|
const t = e(
|
|
3
3
|
[
|
|
4
|
-
"border
|
|
4
|
+
"border",
|
|
5
|
+
"cursor-pointer",
|
|
5
6
|
"disabled:pointer-events-none",
|
|
7
|
+
"flex",
|
|
6
8
|
"focus-visible:outline-none",
|
|
7
9
|
"focus-visible:ring-1",
|
|
8
10
|
"focus-visible:ring-ring",
|
|
9
|
-
"
|
|
11
|
+
"font-semibold",
|
|
12
|
+
"gap-2",
|
|
10
13
|
"inline-flex",
|
|
11
14
|
"items-center",
|
|
12
15
|
"justify-center",
|
|
13
|
-
"rounded
|
|
14
|
-
"text-base",
|
|
16
|
+
"rounded",
|
|
15
17
|
"transition-colors",
|
|
16
|
-
"whitespace-nowrap"
|
|
17
|
-
"cursor-pointer",
|
|
18
|
-
"font-semibold"
|
|
18
|
+
"whitespace-nowrap"
|
|
19
19
|
],
|
|
20
20
|
{
|
|
21
21
|
variants: {
|
|
22
22
|
variant: {
|
|
23
|
-
primary: ["text-white"
|
|
23
|
+
primary: ["text-white"],
|
|
24
24
|
secondary: ["bg-white"],
|
|
25
25
|
danger: [
|
|
26
|
-
"border-
|
|
26
|
+
"border-red-600",
|
|
27
27
|
"bg-red-600",
|
|
28
28
|
"text-white",
|
|
29
|
-
"hover:bg-red-700"
|
|
29
|
+
"hover:bg-red-700",
|
|
30
|
+
"hover:border-red-700"
|
|
30
31
|
],
|
|
31
32
|
text: ["bg-transparent", "border-transparent", "text-slate-500"]
|
|
32
33
|
},
|
|
34
|
+
version: {
|
|
35
|
+
default: "",
|
|
36
|
+
alternate: ""
|
|
37
|
+
},
|
|
33
38
|
theme: {
|
|
39
|
+
civo: "",
|
|
34
40
|
colony: "",
|
|
35
|
-
konstruct: "",
|
|
36
41
|
kubefirst: ""
|
|
37
42
|
},
|
|
38
43
|
size: {
|
|
39
|
-
default: "
|
|
44
|
+
default: "h-10 p-4 text-sm"
|
|
40
45
|
},
|
|
41
46
|
disabled: {
|
|
42
47
|
true: ["text-zinc-500", "border-zinc-200", "bg-zinc-200"],
|
|
@@ -48,40 +53,133 @@ const t = e(
|
|
|
48
53
|
variant: "primary",
|
|
49
54
|
theme: "kubefirst",
|
|
50
55
|
disabled: !1,
|
|
51
|
-
class: [
|
|
56
|
+
class: [
|
|
57
|
+
"border-kubefirst-primary",
|
|
58
|
+
"bg-kubefirst-primary",
|
|
59
|
+
"hover:bg-kubefirst-secondary",
|
|
60
|
+
"hover:border-kubefirst-secondary"
|
|
61
|
+
]
|
|
52
62
|
},
|
|
53
63
|
{
|
|
54
64
|
variant: "primary",
|
|
55
65
|
theme: "colony",
|
|
56
66
|
disabled: !1,
|
|
57
|
-
class: [
|
|
67
|
+
class: [
|
|
68
|
+
"bg-colony-primary",
|
|
69
|
+
"border-colony-primary",
|
|
70
|
+
"hover:bg-colony-secondary",
|
|
71
|
+
"hover:border-colony-secondary"
|
|
72
|
+
]
|
|
58
73
|
},
|
|
59
74
|
{
|
|
60
75
|
variant: "primary",
|
|
61
|
-
theme: "
|
|
76
|
+
theme: "civo",
|
|
62
77
|
disabled: !1,
|
|
63
|
-
class: [
|
|
78
|
+
class: [
|
|
79
|
+
"bg-civo-primary",
|
|
80
|
+
"border-civo-primary",
|
|
81
|
+
"hover:bg-civo-secondary",
|
|
82
|
+
"hover:border-civo-secondary"
|
|
83
|
+
]
|
|
64
84
|
},
|
|
65
85
|
{
|
|
66
86
|
variant: "secondary",
|
|
87
|
+
theme: "kubefirst",
|
|
67
88
|
disabled: !1,
|
|
68
89
|
class: [
|
|
69
|
-
"text-kubefirst-
|
|
70
|
-
"border-kubefirst-
|
|
71
|
-
"hover:text-kubefirst-
|
|
72
|
-
"hover:border-kubefirst-
|
|
90
|
+
"text-kubefirst-primary",
|
|
91
|
+
"border-kubefirst-primary",
|
|
92
|
+
"hover:text-kubefirst-secondary",
|
|
93
|
+
"hover:border-kubefirst-secondary",
|
|
73
94
|
"hover:bg-purple-50"
|
|
74
95
|
]
|
|
75
96
|
},
|
|
76
97
|
{
|
|
77
98
|
variant: "secondary",
|
|
99
|
+
theme: "colony",
|
|
100
|
+
disabled: !1,
|
|
101
|
+
class: [
|
|
102
|
+
"text-colony-primary",
|
|
103
|
+
"border-colony-primary",
|
|
104
|
+
"hover:text-colony-secondary",
|
|
105
|
+
"hover:border-colony-secondary",
|
|
106
|
+
"hover:bg-pink-50"
|
|
107
|
+
]
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
variant: "secondary",
|
|
111
|
+
theme: "civo",
|
|
112
|
+
disabled: !1,
|
|
113
|
+
class: [
|
|
114
|
+
"text-[#324154]",
|
|
115
|
+
"border-[#cbd5e0]",
|
|
116
|
+
"hover:text-[#5d6776]",
|
|
117
|
+
"hover:border-[#d6dde6]"
|
|
118
|
+
]
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
variant: "primary",
|
|
78
122
|
disabled: !0,
|
|
79
|
-
class: ["border-zinc-500"]
|
|
123
|
+
class: ["bg-zinc-200", "border-zinc-200", "text-zinc-500"]
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
variant: "secondary",
|
|
127
|
+
disabled: !0,
|
|
128
|
+
class: ["bg-white", "border-zinc-500", "text-zinc-500"]
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
variant: "text",
|
|
132
|
+
theme: "kubefirst",
|
|
133
|
+
disabled: !1,
|
|
134
|
+
version: "default",
|
|
135
|
+
class: ["hover:text-kubefirst-primary", "hover:bg-purple-50"]
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
variant: "text",
|
|
139
|
+
theme: "colony",
|
|
140
|
+
disabled: !1,
|
|
141
|
+
version: "default",
|
|
142
|
+
class: ["hover:text-colony-primary", "hover:bg-pink-50"]
|
|
80
143
|
},
|
|
81
144
|
{
|
|
82
145
|
variant: "text",
|
|
146
|
+
theme: "civo",
|
|
83
147
|
disabled: !1,
|
|
84
|
-
|
|
148
|
+
version: "default",
|
|
149
|
+
class: ["hover:text-civo-primary", "hover:bg-blue-50"]
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
variant: "text",
|
|
153
|
+
theme: "kubefirst",
|
|
154
|
+
disabled: !1,
|
|
155
|
+
version: "alternate",
|
|
156
|
+
class: [
|
|
157
|
+
"text-kubefirst-primary",
|
|
158
|
+
"hover:text-kubefirst-primary",
|
|
159
|
+
"hover:bg-purple-50"
|
|
160
|
+
]
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
variant: "text",
|
|
164
|
+
theme: "colony",
|
|
165
|
+
disabled: !1,
|
|
166
|
+
version: "alternate",
|
|
167
|
+
class: [
|
|
168
|
+
"text-colony-primary",
|
|
169
|
+
"hover:text-colony-primary",
|
|
170
|
+
"hover:bg-pink-50"
|
|
171
|
+
]
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
variant: "text",
|
|
175
|
+
theme: "civo",
|
|
176
|
+
disabled: !1,
|
|
177
|
+
version: "alternate",
|
|
178
|
+
class: [
|
|
179
|
+
"text-civo-primary",
|
|
180
|
+
"hover:text-civo-primary",
|
|
181
|
+
"hover:bg-blue-50"
|
|
182
|
+
]
|
|
85
183
|
},
|
|
86
184
|
{
|
|
87
185
|
variant: "text",
|
|
@@ -92,6 +190,7 @@ const t = e(
|
|
|
92
190
|
defaultVariants: {
|
|
93
191
|
variant: "primary",
|
|
94
192
|
theme: "kubefirst",
|
|
193
|
+
version: "default",
|
|
95
194
|
size: "default",
|
|
96
195
|
disabled: !1
|
|
97
196
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsxs as N, jsx as p } from "react/jsx-runtime";
|
|
2
2
|
import * as f from "react";
|
|
3
3
|
import j, { forwardRef as S, useId as M, useCallback as A } from "react";
|
|
4
|
-
import { u as H } from "../../index-
|
|
4
|
+
import { u as H } from "../../index-DoOsnuB6.js";
|
|
5
5
|
import { c as K, a as W, d as I } from "../../index-8vgf-x5i.js";
|
|
6
6
|
import { u as $, a as q } from "../../index-BxeV34ij.js";
|
|
7
|
-
import { P as F } from "../../index-
|
|
8
|
-
import { P as _ } from "../../index-
|
|
7
|
+
import { P as F } from "../../index-D4Q2rMby.js";
|
|
8
|
+
import { P as _ } from "../../index-OOfdXoxx.js";
|
|
9
9
|
import { useToggle as V } from "../../hooks/useToggle.js";
|
|
10
10
|
import { checkboxVariants as X, labelVariants as G } from "./Checkbox.variants.js";
|
|
11
11
|
import "../../contexts/theme.context.js";
|
|
12
12
|
import { useTheme as J } from "../../contexts/theme.hook.js";
|
|
13
13
|
import "../../js.cookie-OLEfuq_g.js";
|
|
14
|
-
import { P as y } from "../../index-
|
|
14
|
+
import { P as y } from "../../index-D68N8v8R.js";
|
|
15
15
|
function w() {
|
|
16
16
|
return w = Object.assign || function(e) {
|
|
17
17
|
for (var s = 1; s < arguments.length; s++) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export declare const checkboxVariants: (props?: ({
|
|
2
2
|
variant?: "default" | null | undefined;
|
|
3
|
-
theme?: "kubefirst" | "
|
|
3
|
+
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
4
4
|
checked?: boolean | null | undefined;
|
|
5
5
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
6
|
export declare const labelVariants: (props?: ({
|
|
7
7
|
variant?: "default" | null | undefined;
|
|
8
|
-
theme?: "kubefirst" | "
|
|
8
|
+
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
9
9
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as e } from "../../index-
|
|
1
|
+
import { c as e } from "../../index-BNmRGtA6.js";
|
|
2
2
|
const r = e(
|
|
3
3
|
[
|
|
4
4
|
"cursor-pointer",
|
|
@@ -18,8 +18,8 @@ const r = e(
|
|
|
18
18
|
},
|
|
19
19
|
theme: {
|
|
20
20
|
colony: "",
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
kubefirst: "",
|
|
22
|
+
civo: ""
|
|
23
23
|
},
|
|
24
24
|
checked: {
|
|
25
25
|
true: "",
|
|
@@ -29,21 +29,12 @@ const r = e(
|
|
|
29
29
|
compoundVariants: [
|
|
30
30
|
{
|
|
31
31
|
theme: "kubefirst",
|
|
32
|
-
class: ["border-kubefirst-
|
|
32
|
+
class: ["border-kubefirst-primary"]
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
35
|
theme: "kubefirst",
|
|
36
36
|
checked: !0,
|
|
37
|
-
class: ["bg-kubefirst-
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
theme: "konstruct",
|
|
41
|
-
class: ["border-orange-600"]
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
theme: "konstruct",
|
|
45
|
-
checked: !0,
|
|
46
|
-
class: ["bg-orange-600"]
|
|
37
|
+
class: ["bg-kubefirst-primary"]
|
|
47
38
|
},
|
|
48
39
|
{
|
|
49
40
|
theme: "colony",
|
|
@@ -67,8 +58,8 @@ const r = e(
|
|
|
67
58
|
},
|
|
68
59
|
theme: {
|
|
69
60
|
colony: "",
|
|
70
|
-
|
|
71
|
-
|
|
61
|
+
kubefirst: "",
|
|
62
|
+
civo: ""
|
|
72
63
|
}
|
|
73
64
|
},
|
|
74
65
|
defaultVariants: {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
2
|
+
import { forwardRef as i } from "react";
|
|
3
3
|
import "./components/List/List.js";
|
|
4
|
-
import { Wrapper as
|
|
4
|
+
import { Wrapper as t } from "./components/Wrapper.js";
|
|
5
5
|
import "./contexts/dropdown.context.js";
|
|
6
|
-
import { DropdownProvider as
|
|
7
|
-
const
|
|
6
|
+
import { DropdownProvider as f } from "./contexts/dropdown.provider.js";
|
|
7
|
+
const s = i(({ onChange: o, ...p }, m) => /* @__PURE__ */ r(f, { onChange: o, children: /* @__PURE__ */ r(t, { ref: m, ...p }) }));
|
|
8
8
|
export {
|
|
9
|
-
|
|
9
|
+
s as Dropdown
|
|
10
10
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as e } from "../../index-
|
|
1
|
+
import { c as e } from "../../index-BNmRGtA6.js";
|
|
2
2
|
const a = e(
|
|
3
3
|
[
|
|
4
4
|
"border",
|
|
@@ -18,21 +18,17 @@ const a = e(
|
|
|
18
18
|
{
|
|
19
19
|
variants: {
|
|
20
20
|
theme: {
|
|
21
|
-
konstruct: [
|
|
22
|
-
"aria-expanded:border-orange-400",
|
|
23
|
-
"aria-expanded:text-orange-400",
|
|
24
|
-
"focus-visible:bg-orange-100"
|
|
25
|
-
],
|
|
26
21
|
kubefirst: [
|
|
27
|
-
"aria-expanded:border-kubefirst-
|
|
28
|
-
"aria-expanded:text-kubefirst-
|
|
22
|
+
"aria-expanded:border-kubefirst-primary",
|
|
23
|
+
"aria-expanded:text-kubefirst-secondary",
|
|
29
24
|
"focus-visible:bg-purple-100"
|
|
30
25
|
],
|
|
31
26
|
colony: [
|
|
32
27
|
"aria-expanded:border-red-400",
|
|
33
28
|
"aria-expanded:text-red-400",
|
|
34
29
|
"focus-visible:bg-red-100"
|
|
35
|
-
]
|
|
30
|
+
],
|
|
31
|
+
civo: ""
|
|
36
32
|
}
|
|
37
33
|
},
|
|
38
34
|
defaultVariants: {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentRef, ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
2
2
|
import { ListProps } from './List.types';
|
|
3
|
-
export declare const List: ForwardRefExoticComponent<ListProps & RefAttributes<
|
|
3
|
+
export declare const List: ForwardRefExoticComponent<ListProps & RefAttributes<ComponentRef<'ul'>>>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { RefObject } from 'react';
|
|
1
|
+
import { ComponentRef, RefObject } from 'react';
|
|
2
2
|
import { DropdownProps } from '../../Dropdown.types';
|
|
3
3
|
export type ListProps = {
|
|
4
4
|
options: DropdownProps['options'];
|
|
5
5
|
theme: DropdownProps['theme'];
|
|
6
|
-
wrapperRef: RefObject<
|
|
7
|
-
wrapperInputRef: RefObject<
|
|
6
|
+
wrapperRef: RefObject<ComponentRef<'div'> | null>;
|
|
7
|
+
wrapperInputRef: RefObject<ComponentRef<'div'> | null>;
|
|
8
8
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as r } from "../../../../index-
|
|
1
|
+
import { c as r } from "../../../../index-BNmRGtA6.js";
|
|
2
2
|
const t = r(
|
|
3
3
|
[
|
|
4
4
|
"absolute",
|
|
@@ -20,8 +20,8 @@ const t = r(
|
|
|
20
20
|
variants: {
|
|
21
21
|
theme: {
|
|
22
22
|
colony: ["border-red-400"],
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
kubefirst: ["border-kubefirst-primary"],
|
|
24
|
+
civo: ""
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
defaultVariants: {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { c as e } from "../../../../index-
|
|
1
|
+
import { c as e } from "../../../../index-BNmRGtA6.js";
|
|
2
2
|
const o = e(
|
|
3
3
|
["cursor-pointer", "py-1", "px-2", "h-full", "focus-visible:outline-none"],
|
|
4
4
|
{
|
|
5
5
|
variants: {
|
|
6
6
|
theme: {
|
|
7
7
|
kubefirst: ["focus:bg-purple-100", "hover:bg-purple-100"],
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
colony: ["focus:bg-red-100", "hover:bg-red-100"],
|
|
9
|
+
civo: ""
|
|
10
10
|
}
|
|
11
11
|
},
|
|
12
12
|
defaultVariants: {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentRef, ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
2
2
|
import { DropdownProps } from '../Dropdown.types';
|
|
3
|
-
export declare const Wrapper: ForwardRefExoticComponent<DropdownProps & RefAttributes<
|
|
3
|
+
export declare const Wrapper: ForwardRefExoticComponent<DropdownProps & RefAttributes<ComponentRef<'input'>>>;
|
|
@@ -9,7 +9,7 @@ import { useDropdown as U } from "../hooks/useDropdown.js";
|
|
|
9
9
|
import { useDropdownContext as W } from "../contexts/dropdown.hook.js";
|
|
10
10
|
import "../contexts/dropdown.context.js";
|
|
11
11
|
import { List as q } from "./List/List.js";
|
|
12
|
-
import { C as z } from "../../../chevron-up-
|
|
12
|
+
import { C as z } from "../../../chevron-up-CvquEaNg.js";
|
|
13
13
|
const _ = D(
|
|
14
14
|
({ theme: R, label: f, placeholder: g, name: i, options: l, defaultValue: c }, O) => {
|
|
15
15
|
const p = F(), r = b(null), u = b(null), { wrapperRef: n, wrapperInputRef: d, handleOpen: j, handleOpenIfClosed: E } = U({ ulRef: u }), { isOpen: h, value: e, setValue: x, toggleOpen: w } = W(), { theme: T } = A(), v = R ?? T, C = i ? `${p}-${i}` : p;
|
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
import { FC, PropsWithChildren } from 'react';
|
|
2
|
-
|
|
2
|
+
import { DropdownProps } from '../Dropdown.types';
|
|
3
|
+
export declare const DropdownProvider: FC<PropsWithChildren & {
|
|
4
|
+
onChange?: DropdownProps['onChange'];
|
|
5
|
+
}>;
|
|
@@ -1,11 +1,22 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { useToggle as
|
|
4
|
-
import { DropdownContext as
|
|
5
|
-
const
|
|
6
|
-
const [e,
|
|
7
|
-
|
|
1
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
2
|
+
import { useState as i, useCallback as c } from "react";
|
|
3
|
+
import { useToggle as d } from "../../../hooks/useToggle.js";
|
|
4
|
+
import { DropdownContext as f } from "./dropdown.context.js";
|
|
5
|
+
const w = ({ children: t, onChange: o }) => {
|
|
6
|
+
const [e, s] = d(!1), [l, p] = i(null), m = c(
|
|
7
|
+
(r) => {
|
|
8
|
+
o == null || o(r), p(r);
|
|
9
|
+
},
|
|
10
|
+
[o]
|
|
11
|
+
);
|
|
12
|
+
return /* @__PURE__ */ u(
|
|
13
|
+
f.Provider,
|
|
14
|
+
{
|
|
15
|
+
value: { value: l, isOpen: e, setValue: m, toggleOpen: s },
|
|
16
|
+
children: t
|
|
17
|
+
}
|
|
18
|
+
);
|
|
8
19
|
};
|
|
9
20
|
export {
|
|
10
|
-
|
|
21
|
+
w as DropdownProvider
|
|
11
22
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentRef, RefObject } from 'react';
|
|
2
2
|
type UseDropDownParams = {
|
|
3
|
-
ulRef: RefObject<
|
|
3
|
+
ulRef: RefObject<ComponentRef<'ul'> | null>;
|
|
4
4
|
};
|
|
5
5
|
export declare const useDropdown: ({ ulRef }: UseDropDownParams) => {
|
|
6
|
-
wrapperRef: RefObject<HTMLDivElement>;
|
|
7
|
-
wrapperInputRef: RefObject<HTMLDivElement>;
|
|
6
|
+
wrapperRef: RefObject<HTMLDivElement | null>;
|
|
7
|
+
wrapperInputRef: RefObject<HTMLDivElement | null>;
|
|
8
8
|
handleOpen: () => void;
|
|
9
9
|
handleOpenIfClosed: () => void;
|
|
10
10
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { RefObject } from 'react';
|
|
1
|
+
import { ComponentRef, RefObject } from 'react';
|
|
2
2
|
type UseNavigationListProps = {
|
|
3
|
-
ulRef: RefObject<
|
|
4
|
-
wrapperRef: RefObject<
|
|
5
|
-
wrapperInputRef: RefObject<
|
|
3
|
+
ulRef: RefObject<ComponentRef<'ul'> | null>;
|
|
4
|
+
wrapperRef: RefObject<ComponentRef<'div'> | null>;
|
|
5
|
+
wrapperInputRef: RefObject<ComponentRef<'div'> | null>;
|
|
6
6
|
};
|
|
7
7
|
export declare const useNavigationUlList: ({ ulRef, wrapperRef, wrapperInputRef, }: UseNavigationListProps) => void;
|
|
8
8
|
export {};
|
|
@@ -5,7 +5,7 @@ import { inputVariants as j } from "./Input.variants.js";
|
|
|
5
5
|
import "../../contexts/theme.context.js";
|
|
6
6
|
import { useTheme as N } from "../../contexts/theme.hook.js";
|
|
7
7
|
import "../../js.cookie-OLEfuq_g.js";
|
|
8
|
-
import { P as l } from "../../index-
|
|
8
|
+
import { P as l } from "../../index-D68N8v8R.js";
|
|
9
9
|
function p() {
|
|
10
10
|
return p = Object.assign || function(e) {
|
|
11
11
|
for (var o = 1; o < arguments.length; o++) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const inputVariants: (props?: ({
|
|
2
2
|
variant?: "default" | "error" | null | undefined;
|
|
3
|
-
theme?: "kubefirst" | "
|
|
3
|
+
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
4
4
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as r } from "../../index-
|
|
1
|
+
import { c as r } from "../../index-BNmRGtA6.js";
|
|
2
2
|
const t = r(
|
|
3
3
|
[
|
|
4
4
|
"bg-transparent",
|
|
@@ -27,9 +27,9 @@ const t = r(
|
|
|
27
27
|
error: ["border-red-600", "pr-8", "focus-visible:ring-transparent"]
|
|
28
28
|
},
|
|
29
29
|
theme: {
|
|
30
|
-
kubefirst: "focus:ring-kubefirst-
|
|
30
|
+
kubefirst: "focus:ring-kubefirst-primary",
|
|
31
31
|
colony: "",
|
|
32
|
-
|
|
32
|
+
civo: ""
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
defaultVariants: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import "../../index-
|
|
2
|
+
import "../../index-OOfdXoxx.js";
|
|
3
3
|
import "./components/Body/Body.js";
|
|
4
4
|
import "./components/Footer/Footer.js";
|
|
5
5
|
import "./components/Header/Header.js";
|
|
6
|
-
import { M as d } from "../../Modal-
|
|
6
|
+
import { M as d } from "../../Modal-Bg9UG35z.js";
|
|
7
7
|
import "./hooks/useModal.js";
|
|
8
8
|
export {
|
|
9
9
|
d as Modal
|
|
@@ -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-DoOsnuB6.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 n } from "react/jsx-runtime";
|
|
2
|
-
import { S as m } from "../../../../index-
|
|
2
|
+
import { S as m } from "../../../../index-DoOsnuB6.js";
|
|
3
3
|
const i = ({ children: o, asChild: t, className: r }) => /* @__PURE__ */ n(t ? m : "div", { className: r, children: o });
|
|
4
4
|
export {
|
|
5
5
|
i as Footer
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { S as e } from "../../../../index-
|
|
2
|
+
import { S as e } from "../../../../index-DoOsnuB6.js";
|
|
3
3
|
const i = ({ children: o, asChild: t, className: r }) => /* @__PURE__ */ n(t ? e : "div", { className: r, children: o });
|
|
4
4
|
export {
|
|
5
5
|
i as Header
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { W as
|
|
3
|
+
import { W as b } from "../../../../Modal-Bg9UG35z.js";
|
|
4
4
|
import "../../../../Combination-Cmu9JRkv.js";
|
|
5
|
-
import "../../../../index-
|
|
5
|
+
import "../../../../index-ffjBR8Av.js";
|
|
6
6
|
import "../../../../contexts/theme.context.js";
|
|
7
7
|
import "../../../../contexts/theme.hook.js";
|
|
8
8
|
import "../../../../js.cookie-OLEfuq_g.js";
|
|
9
9
|
import "../../hooks/useModal.js";
|
|
10
10
|
import "./Wrapper.variants.js";
|
|
11
|
+
import "../../../../x-CRBgmX1Q.js";
|
|
11
12
|
export {
|
|
12
|
-
|
|
13
|
+
b as Wrapper
|
|
13
14
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const modalVariants: (props?: ({
|
|
2
|
-
theme?: "kubefirst" | "
|
|
2
|
+
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
3
3
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
4
4
|
export declare const buttonCloseVariants: (props?: ({
|
|
5
|
-
theme?: "kubefirst" | "
|
|
5
|
+
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|