@konstructio/ui 0.0.2 → 0.0.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/README.md +53 -4
- 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 +42 -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 +42 -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,11 +1,11 @@
|
|
|
1
1
|
export declare const sliderVariants: (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 trackVariants: (props?: ({
|
|
5
|
-
theme?: "kubefirst" | "
|
|
5
|
+
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
6
6
|
size?: "sm" | "lg" | "md" | null | undefined;
|
|
7
7
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
8
|
export declare const thumbVariants: (props?: ({
|
|
9
|
-
theme?: "kubefirst" | "
|
|
9
|
+
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
10
10
|
size?: "sm" | "lg" | "md" | null | undefined;
|
|
11
11
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { c as e } from "../../index-
|
|
1
|
+
import { c as e } from "../../index-BNmRGtA6.js";
|
|
2
2
|
const r = e(
|
|
3
3
|
["relative", "flex", "items-center", "w-full"],
|
|
4
4
|
{
|
|
5
5
|
variants: {
|
|
6
6
|
theme: {
|
|
7
7
|
kubefirst: "",
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
colony: "",
|
|
9
|
+
civo: ""
|
|
10
10
|
}
|
|
11
11
|
},
|
|
12
12
|
defaultVariants: {
|
|
13
13
|
theme: "kubefirst"
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
-
),
|
|
16
|
+
), i = e(["relative", "flex-grow", "rounded-full"], {
|
|
17
17
|
variants: {
|
|
18
18
|
theme: {
|
|
19
|
-
kubefirst: ["bg-kubefirst-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
kubefirst: ["bg-kubefirst-secondary"],
|
|
20
|
+
colony: ["bg-red-500"],
|
|
21
|
+
civo: ""
|
|
22
22
|
},
|
|
23
23
|
size: {
|
|
24
24
|
sm: ["h-1"],
|
|
@@ -30,7 +30,7 @@ const r = e(
|
|
|
30
30
|
theme: "kubefirst",
|
|
31
31
|
size: "md"
|
|
32
32
|
}
|
|
33
|
-
}),
|
|
33
|
+
}), s = e(
|
|
34
34
|
[
|
|
35
35
|
"block",
|
|
36
36
|
"w-5",
|
|
@@ -47,8 +47,8 @@ const r = e(
|
|
|
47
47
|
variants: {
|
|
48
48
|
theme: {
|
|
49
49
|
kubefirst: "",
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
colony: "",
|
|
51
|
+
civo: ""
|
|
52
52
|
},
|
|
53
53
|
size: {
|
|
54
54
|
sm: ["w-5", "h-5"],
|
|
@@ -64,6 +64,6 @@ const r = e(
|
|
|
64
64
|
);
|
|
65
65
|
export {
|
|
66
66
|
r as sliderVariants,
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
s as thumbVariants,
|
|
68
|
+
i as trackVariants
|
|
69
69
|
};
|
|
@@ -2,9 +2,9 @@ import { jsxs as x, jsx as l } from "react/jsx-runtime";
|
|
|
2
2
|
import * as h from "react";
|
|
3
3
|
import { forwardRef as I, useState as _, useRef as H, useId as A, useImperativeHandle as M, useEffect as $, useCallback as j } from "react";
|
|
4
4
|
import { c as z, a as B, d as q } from "../../index-8vgf-x5i.js";
|
|
5
|
-
import { u as F } from "../../index-
|
|
5
|
+
import { u as F } from "../../index-DoOsnuB6.js";
|
|
6
6
|
import { u as O, a as V } from "../../index-BxeV34ij.js";
|
|
7
|
-
import { P } from "../../index-
|
|
7
|
+
import { P } from "../../index-OOfdXoxx.js";
|
|
8
8
|
import { cn as D } from "../../utils/index.js";
|
|
9
9
|
import "../../contexts/theme.context.js";
|
|
10
10
|
import { useTheme as L } from "../../contexts/theme.hook.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const switchVariants: (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 thumbVariants: (props?: ({
|
|
5
|
-
theme?: "kubefirst" | "
|
|
5
|
+
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as t } from "../../index-
|
|
1
|
+
import { c as t } from "../../index-BNmRGtA6.js";
|
|
2
2
|
const e = t(
|
|
3
3
|
[
|
|
4
4
|
"w-12",
|
|
@@ -16,9 +16,9 @@ const e = t(
|
|
|
16
16
|
{
|
|
17
17
|
variants: {
|
|
18
18
|
theme: {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
kubefirst: "bg-kubefirst-primary",
|
|
20
|
+
colony: "bg-red-600",
|
|
21
|
+
civo: ""
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
defaultVariants: {
|
|
@@ -42,9 +42,9 @@ const e = t(
|
|
|
42
42
|
{
|
|
43
43
|
variants: {
|
|
44
44
|
theme: {
|
|
45
|
-
konstruct: "",
|
|
46
45
|
kubefirst: "",
|
|
47
|
-
colony: ""
|
|
46
|
+
colony: "",
|
|
47
|
+
civo: ""
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
defaultVariants: {
|
|
@@ -7,7 +7,7 @@ import { cn as u } from "../../utils/index.js";
|
|
|
7
7
|
import { Tag as d } from "../Tag/Tag.js";
|
|
8
8
|
import { useTagSelect as k } from "./hooks/useTagSelect.js";
|
|
9
9
|
import { tagSelectVariants as I, tagListVariants as V, tagItemVariants as j } from "./TagSelect.variants.js";
|
|
10
|
-
import { C as y } from "../../chevron-up-
|
|
10
|
+
import { C as y } from "../../chevron-up-CvquEaNg.js";
|
|
11
11
|
const B = g(({ label: n, name: r, options: f, placeholder: h = "Select a value...", theme: l }, x) => {
|
|
12
12
|
const s = w(), { theme: o } = S(), t = C(null), {
|
|
13
13
|
isOpen: a,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export declare const tagSelectVariants: (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 tagListVariants: (props?: ({
|
|
5
|
-
theme?: "kubefirst" | "
|
|
5
|
+
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
7
|
export declare const tagItemVariants: (props?: ({
|
|
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 t = e(
|
|
3
3
|
[
|
|
4
4
|
"border",
|
|
@@ -18,14 +18,11 @@ const t = e(
|
|
|
18
18
|
variants: {
|
|
19
19
|
theme: {
|
|
20
20
|
colony: ["aria-expanded:border-red-400", "aria-expanded:text-red-400"],
|
|
21
|
-
konstruct: [
|
|
22
|
-
"aria-expanded:border-orange-400",
|
|
23
|
-
"aria-expanded:text-orange-400"
|
|
24
|
-
],
|
|
25
21
|
kubefirst: [
|
|
26
|
-
"aria-expanded:border-kubefirst-
|
|
27
|
-
"aria-expanded:text-kubefirst-
|
|
28
|
-
]
|
|
22
|
+
"aria-expanded:border-kubefirst-primary",
|
|
23
|
+
"aria-expanded:text-kubefirst-secondary"
|
|
24
|
+
],
|
|
25
|
+
civo: ""
|
|
29
26
|
}
|
|
30
27
|
},
|
|
31
28
|
defaultVariants: {
|
|
@@ -53,22 +50,22 @@ const t = e(
|
|
|
53
50
|
variants: {
|
|
54
51
|
theme: {
|
|
55
52
|
colony: ["border-red-400"],
|
|
56
|
-
|
|
57
|
-
|
|
53
|
+
kubefirst: ["border-kubefirst-primary"],
|
|
54
|
+
civo: ""
|
|
58
55
|
}
|
|
59
56
|
},
|
|
60
57
|
defaultVariants: {
|
|
61
58
|
theme: "kubefirst"
|
|
62
59
|
}
|
|
63
60
|
}
|
|
64
|
-
),
|
|
61
|
+
), i = e(
|
|
65
62
|
["cursor-pointer", "py-1", "px-2", "last:mb-2", "first:mt-2", "h-full"],
|
|
66
63
|
{
|
|
67
64
|
variants: {
|
|
68
65
|
theme: {
|
|
69
66
|
colony: "hover:bg-red-100",
|
|
70
|
-
|
|
71
|
-
|
|
67
|
+
kubefirst: "hover:bg-purple-100",
|
|
68
|
+
civo: ""
|
|
72
69
|
}
|
|
73
70
|
},
|
|
74
71
|
defaultVariants: {
|
|
@@ -77,7 +74,7 @@ const t = e(
|
|
|
77
74
|
}
|
|
78
75
|
);
|
|
79
76
|
export {
|
|
80
|
-
|
|
77
|
+
i as tagItemVariants,
|
|
81
78
|
a as tagListVariants,
|
|
82
79
|
t as tagSelectVariants
|
|
83
80
|
};
|
|
@@ -3,7 +3,7 @@ export declare const useTagSelect: () => {
|
|
|
3
3
|
isOpen: boolean;
|
|
4
4
|
selectedTag: TagProps | null;
|
|
5
5
|
value: string;
|
|
6
|
-
wrapperRef: import('react').RefObject<HTMLDivElement>;
|
|
6
|
+
wrapperRef: import('react').RefObject<HTMLDivElement | null>;
|
|
7
7
|
handleClickTag: (tag: TagProps) => void;
|
|
8
8
|
handleOpenDropdown: () => void;
|
|
9
9
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as e } from "../../index-
|
|
2
|
-
const
|
|
1
|
+
import { c as e } from "../../index-BNmRGtA6.js";
|
|
2
|
+
const i = e(
|
|
3
3
|
[
|
|
4
4
|
"border",
|
|
5
5
|
"border-gray-200",
|
|
@@ -20,8 +20,8 @@ const o = e(
|
|
|
20
20
|
variants: {
|
|
21
21
|
theme: {
|
|
22
22
|
colony: "focus:ring-red-700",
|
|
23
|
-
kubefirst: "focus:ring-kubefirst-
|
|
24
|
-
|
|
23
|
+
kubefirst: "focus:ring-kubefirst-primary",
|
|
24
|
+
civo: ""
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
defaultVariants: {
|
|
@@ -30,5 +30,5 @@ const o = e(
|
|
|
30
30
|
}
|
|
31
31
|
);
|
|
32
32
|
export {
|
|
33
|
-
|
|
33
|
+
i as textAreaVariants
|
|
34
34
|
};
|