@konstructio/ui 0.1.0-alpha.9 → 0.1.1-alpha.1
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/DatePicker.css +1 -1
- package/dist/{Modal-CrG0m703.js → Modal-0oht63vU.js} +32 -32
- package/dist/assets/icons/components/Search.js +26 -0
- package/dist/assets/icons/components/Warning.js +22 -0
- package/dist/assets/icons/components/index.js +6 -0
- package/dist/{chevron-down-UW8ts6wI.js → chevron-down-CVce9Mvh.js} +2 -2
- package/dist/components/Alert/Alert.js +23 -25
- package/dist/components/Alert/Alert.variants.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/AlertDialog/hooks/useAlertDialog.js +7 -7
- package/dist/components/Autocomplete/Autocomplete.variants.js +3 -4
- package/dist/components/Autocomplete/components/List/List.variants.js +3 -7
- package/dist/components/Autocomplete/hooks/useAutocomplete.js +38 -43
- package/dist/components/Autocomplete/hooks/useNavigationList.js +29 -37
- package/dist/components/Badge/Badge.js +40 -42
- package/dist/components/Badge/Badge.variants.js +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.variants.js +1 -1
- package/dist/components/Breadcrumb/components/Item/Item.js +22 -21
- package/dist/components/Breadcrumb/components/Item/Item.variants.js +1 -1
- package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +1 -1
- package/dist/components/Button/Button.js +15 -15
- package/dist/components/Button/Button.variants.js +10 -77
- package/dist/components/Card/Card.variants.js +3 -5
- package/dist/components/Checkbox/Checkbox.js +48 -47
- package/dist/components/Checkbox/Checkbox.variants.js +3 -4
- package/dist/components/Command/Command.js +2 -2
- package/dist/components/Command/Command.variants.js +1 -1
- 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 +13 -13
- 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 +1496 -1577
- package/dist/components/Datepicker/DatePicker.variants.js +1 -1
- package/dist/components/Divider/Divider.variants.js +1 -1
- package/dist/components/Dropdown/Dropdown.js +28 -6
- package/dist/components/Dropdown/Dropdown.variants.js +43 -26
- package/dist/components/Dropdown/components/List/List.variants.js +1 -1
- package/dist/components/Dropdown/components/ListItem/ListItem.variants.js +5 -5
- package/dist/components/Dropdown/components/Wrapper.js +96 -86
- package/dist/components/Dropdown/contexts/dropdown.provider.js +12 -12
- package/dist/components/Dropdown/hooks/useDropdown.js +26 -30
- package/dist/components/Dropdown/hooks/useNavigationList.js +25 -31
- package/dist/components/DropdownButton/DropdownButton.js +135 -0
- package/dist/components/Filter/Filter.variants.js +1 -1
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.js +47 -49
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +1 -1
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.js +41 -42
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +30 -30
- package/dist/components/Filter/components/ResetButton/ResetButton.js +22 -16
- package/dist/components/Input/Input.js +116 -109
- package/dist/components/Input/Input.variants.js +18 -5
- package/dist/components/Loading/Loading.js +2 -2
- package/dist/components/Loading/Loading.variants.js +1 -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 +2 -2
- package/dist/components/Modal/components/Wrapper/Wrapper.variants.js +7 -9
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/Modal/hooks/useModal.js +16 -17
- package/dist/components/NumberInput/NumberInput.js +91 -91
- package/dist/components/NumberInput/NumberInput.variants.js +1 -1
- package/dist/components/PieChart/PieChart.js +5138 -0
- package/dist/components/ProgressBar/ProgressBar.js +58 -26
- package/dist/components/ProgressBar/ProgressBar.variants.js +1 -1
- package/dist/components/Radio/Radio.js +64 -48
- package/dist/components/Radio/Radio.variants.js +3 -3
- package/dist/components/RadioCard/RadioCard.js +26 -23
- package/dist/components/RadioCard/RadioCard.variants.js +1 -1
- package/dist/components/RadioCardGroup/RadioCardGroup.js +28 -28
- package/dist/components/RadioCardGroup/RadioCardGroup.variants.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.js +37 -37
- package/dist/components/RadioGroup/RadioGroup.variants.js +1 -1
- package/dist/components/Range/Range.js +1 -1
- package/dist/components/Range/Range.variants.js +2 -3
- package/dist/components/Sidebar/Sidebar.js +4 -3
- package/dist/components/Sidebar/Sidebar.variants.js +1 -1
- package/dist/components/Sidebar/components/Footer/Footer.js +5 -4
- package/dist/components/Sidebar/components/Footer/Footer.variants.js +1 -1
- package/dist/components/Sidebar/components/Logo/Logo.js +6 -5
- package/dist/components/Sidebar/components/Logo/Logo.variants.js +1 -1
- package/dist/components/Sidebar/components/Navigation/Navigation.js +5 -4
- package/dist/components/Sidebar/components/Navigation/Navigation.variants.js +1 -1
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.js +14 -13
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.variants.js +1 -1
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +13 -12
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.js +1 -1
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.js +5 -6
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.variants.js +1 -1
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.js +9 -8
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.variants.js +1 -1
- package/dist/components/Sidebar/components/Wrapper/Wrapper.js +15 -14
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/Slider/Slider.variants.js +2 -8
- package/dist/components/Switch/Switch.js +54 -54
- package/dist/components/Switch/Switch.variants.js +2 -3
- package/dist/components/Table/Table.variants.js +1 -1
- package/dist/components/Tabs/Tabs.js +20 -16
- package/dist/components/Tabs/Tabs.variants.js +3 -5
- package/dist/components/Tabs/components/Content.js +10 -13
- package/dist/components/Tabs/components/List.js +9 -8
- package/dist/components/Tabs/components/Trigger.js +12 -16
- package/dist/components/Tabs/components/index.js +8 -0
- package/dist/components/Tag/Tag.js +1 -1
- package/dist/components/Tag/Tag.variants.js +1 -1
- package/dist/components/TagSelect/TagSelect.variants.js +1 -1
- package/dist/components/TagSelect/components/Item/Item.variants.js +1 -1
- package/dist/components/TagSelect/components/List/List.variants.js +1 -1
- package/dist/components/TagSelect/hooks/useTagSelect.js +14 -16
- package/dist/components/TextArea/TextArea.variants.js +4 -5
- package/dist/components/TimePicker/TimePicker.variants.js +6 -7
- package/dist/components/TimePicker/components/HoursList/HoursList.js +21 -26
- package/dist/components/TimePicker/components/MeridianList/MeridianList.js +19 -20
- package/dist/components/TimePicker/components/MinutesList/MinutesList.js +24 -25
- package/dist/components/TimePicker/components/Wrapper/Wrapper.js +33 -34
- package/dist/components/TimePicker/components/WrapperList/WrapperList.variants.js +1 -1
- package/dist/components/Toast/Toast.js +223 -232
- package/dist/components/Toast/Toast.variants.js +8 -11
- package/dist/components/Tooltip/Tooltip.js +1 -1
- package/dist/components/Tooltip/Tooltip.variants.js +7 -14
- package/dist/components/Tooltip/hooks/useTooltip.js +8 -9
- package/dist/components/Typography/Typography.js +26 -31
- package/dist/components/Typography/Typography.variants.js +1 -1
- package/dist/components/index.js +78 -66
- package/dist/contexts/theme.provider.js +28 -29
- package/dist/{createLucideIcon-ByJ0JZvK.js → createLucideIcon-BpsAkT97.js} +4 -4
- package/dist/index-0ioNhtNM.js +10 -0
- package/dist/{index-CvfCCTEO.js → index-BAraV3ai.js} +7 -7
- package/dist/index-BXuxPoz7.js +435 -0
- package/dist/index-BfXxHr_2.js +125 -0
- package/dist/index-C1g_chDT.js +70 -0
- package/dist/{index-BCGvACM9.js → index-C9T9HQaa.js} +1 -1
- package/dist/{index-Bc1LNrRD.js → index-CZnD2QxM.js} +1 -1
- package/dist/index-CrBonFvu.js +144 -0
- package/dist/{index-rUBNhTeF.js → index-Cvx4lqTq.js} +2 -2
- package/dist/{index-BNmRGtA6.js → index-D29mdTf5.js} +3 -3
- package/dist/{index-Dkt8F6CZ.js → index-D3xzCzcO.js} +12 -12
- package/dist/index-DB2XhXHn.js +431 -0
- package/dist/{index-B5MIi2tR.js → index-DQH6odE9.js} +2 -3
- package/dist/index-Oq5GlCHP.js +131 -0
- package/dist/{index-Cs8Lv8Wj.js → index-bwWKd82e.js} +1 -1
- package/dist/{index--EmNlyHx.js → index-iXyXtdgP.js} +1 -1
- package/dist/index.d.ts +157 -9
- package/dist/index.js +88 -76
- package/dist/package.json +41 -37
- package/dist/styles.css +1 -1
- package/dist/ui/civo-theme.css +261 -241
- package/dist/ui/kubefirst-theme.css +4 -4
- package/dist/ui/theme.css +0 -2
- package/dist/{useBreadcrumb-DMERrNkJ.js → useBreadcrumb-B8DnuqkR.js} +254 -261
- package/dist/utils/index.js +25 -26
- package/package.json +41 -37
- package/dist/index-BNU3RH-3.js +0 -133
- package/dist/index-BvCZBMfr.js +0 -432
- package/dist/index-Cq1I1cG9.js +0 -129
- package/dist/index-DLYwlPRZ.js +0 -440
- package/dist/index-DNRcvRTB.js +0 -145
- package/dist/index-Dm-ooN_M.js +0 -71
- package/dist/index-DwYXX2sM.js +0 -13
|
@@ -1,25 +1,26 @@
|
|
|
1
|
-
import { jsxs as s, Fragment as e, jsx as
|
|
2
|
-
import { cn as
|
|
3
|
-
import { NavigationTitle as
|
|
1
|
+
import { jsxs as s, Fragment as e, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { cn as u } from "../../../../utils/index.js";
|
|
3
|
+
import { NavigationTitle as l } from "../NavigationTitle/NavigationTitle.js";
|
|
4
4
|
import { navigationGroupsVariants as p } from "./NavigationGroup.variants.js";
|
|
5
|
-
const
|
|
6
|
-
children:
|
|
5
|
+
const c = ({
|
|
6
|
+
children: o,
|
|
7
7
|
title: r,
|
|
8
8
|
className: i,
|
|
9
|
-
titleClassName:
|
|
10
|
-
isVisible:
|
|
9
|
+
titleClassName: t,
|
|
10
|
+
isVisible: n = !0,
|
|
11
11
|
...m
|
|
12
|
-
}) =>
|
|
13
|
-
r ? /* @__PURE__ */
|
|
14
|
-
|
|
12
|
+
}) => n ? /* @__PURE__ */ s(e, { children: [
|
|
13
|
+
r ? /* @__PURE__ */ a(
|
|
14
|
+
l,
|
|
15
15
|
{
|
|
16
16
|
title: r,
|
|
17
|
-
className:
|
|
17
|
+
className: t,
|
|
18
18
|
...m
|
|
19
19
|
}
|
|
20
20
|
) : null,
|
|
21
|
-
/* @__PURE__ */
|
|
21
|
+
/* @__PURE__ */ a("ul", { className: u(p({ className: i })), children: o })
|
|
22
22
|
] }) : null;
|
|
23
|
+
c.displayName = "KonstructSidebarNavigationGroup";
|
|
23
24
|
export {
|
|
24
|
-
|
|
25
|
+
c as NavigationGroup
|
|
25
26
|
};
|
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { cn as
|
|
3
|
-
import { navigationOptionVariants as
|
|
4
|
-
const
|
|
5
|
-
children:
|
|
6
|
-
className:
|
|
2
|
+
import { cn as p } from "../../../../utils/index.js";
|
|
3
|
+
import { navigationOptionVariants as e } from "./NavigationOption.variants.js";
|
|
4
|
+
const m = ({
|
|
5
|
+
children: i,
|
|
6
|
+
className: o,
|
|
7
7
|
isVisible: t = !0,
|
|
8
|
-
isActive:
|
|
8
|
+
isActive: r,
|
|
9
9
|
...n
|
|
10
10
|
}) => t ? /* @__PURE__ */ a(
|
|
11
11
|
"li",
|
|
12
12
|
{
|
|
13
13
|
...n,
|
|
14
14
|
role: "option",
|
|
15
|
-
className:
|
|
16
|
-
|
|
17
|
-
className:
|
|
18
|
-
isActive:
|
|
15
|
+
className: p(
|
|
16
|
+
e({
|
|
17
|
+
className: o,
|
|
18
|
+
isActive: r
|
|
19
19
|
})
|
|
20
20
|
),
|
|
21
|
-
children:
|
|
21
|
+
children: i
|
|
22
22
|
}
|
|
23
23
|
) : null;
|
|
24
|
+
m.displayName = "KonstructSidebarNavigationOption";
|
|
24
25
|
export {
|
|
25
|
-
|
|
26
|
+
m as NavigationOption
|
|
26
27
|
};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { cn as
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { cn as o } from "../../../../utils/index.js";
|
|
3
3
|
import { navigationSeparatorVariant as t } from "./NavigationSeparator.variants.js";
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
}) => /* @__PURE__ */ o("div", { className: r(t({ className: a })) });
|
|
4
|
+
const i = ({ className: a }) => /* @__PURE__ */ r("div", { className: o(t({ className: a })) });
|
|
5
|
+
i.displayName = "KonstructSidebarNavigationSeparator";
|
|
7
6
|
export {
|
|
8
|
-
|
|
7
|
+
i as NavigationSeparator
|
|
9
8
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { cn as
|
|
3
|
-
import { navigationTitleVariants as
|
|
4
|
-
const
|
|
5
|
-
title:
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { cn as n } from "../../../../utils/index.js";
|
|
3
|
+
import { navigationTitleVariants as o } from "./NavigationTitle.variants.js";
|
|
4
|
+
const e = ({
|
|
5
|
+
title: i,
|
|
6
6
|
className: t,
|
|
7
|
-
isVisible:
|
|
8
|
-
}) =>
|
|
7
|
+
isVisible: r = !0
|
|
8
|
+
}) => r ? /* @__PURE__ */ a("h2", { className: n(o({ className: t })), children: i }) : null;
|
|
9
|
+
e.displayName = "KonstructSidebarNavigationTitle";
|
|
9
10
|
export {
|
|
10
|
-
|
|
11
|
+
e as NavigationTitle
|
|
11
12
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { Footer as
|
|
2
|
-
import { Logo as
|
|
3
|
-
import { Navigation as
|
|
1
|
+
import { Footer as A } from "../Footer/Footer.js";
|
|
2
|
+
import { Logo as b } from "../Logo/Logo.js";
|
|
3
|
+
import { Navigation as C } from "../Navigation/Navigation.js";
|
|
4
4
|
import "../NavigationGroup/NavigationGroup.js";
|
|
5
5
|
import "../NavigationOption/NavigationOption.js";
|
|
6
6
|
import "../NavigationSeparator/NavigationSeparator.js";
|
|
7
7
|
import "../NavigationTitle/NavigationTitle.js";
|
|
8
|
-
import { jsxs as
|
|
8
|
+
import { jsxs as D, jsx as V } from "react/jsx-runtime";
|
|
9
9
|
import { useRef as d, useCallback as f, useMemo as s, Children as a, isValidElement as l } from "react";
|
|
10
10
|
import { cn as y } from "../../../../utils/index.js";
|
|
11
11
|
import { dragVariants as j, wrapperSiderbarVariants as x } from "../../Sidebar.variants.js";
|
|
12
|
-
const
|
|
12
|
+
const z = ({
|
|
13
13
|
canResize: g = !0,
|
|
14
14
|
children: v,
|
|
15
15
|
maxWith: i = 300,
|
|
@@ -39,21 +39,21 @@ const G = ({
|
|
|
39
39
|
[v]
|
|
40
40
|
), E = s(
|
|
41
41
|
() => a.toArray(t).find(
|
|
42
|
-
(e) => l(e) && e.type ===
|
|
42
|
+
(e) => l(e) && e.type === b
|
|
43
43
|
),
|
|
44
44
|
[t]
|
|
45
|
-
),
|
|
45
|
+
), N = s(
|
|
46
46
|
() => a.toArray(t).find(
|
|
47
|
-
(e) => l(e) && e.type ===
|
|
47
|
+
(e) => l(e) && e.type === C
|
|
48
48
|
),
|
|
49
49
|
[t]
|
|
50
|
-
),
|
|
50
|
+
), R = s(
|
|
51
51
|
() => a.toArray(t).find(
|
|
52
|
-
(e) => l(e) && e.type ===
|
|
52
|
+
(e) => l(e) && e.type === A
|
|
53
53
|
),
|
|
54
54
|
[t]
|
|
55
55
|
);
|
|
56
|
-
return /* @__PURE__ */
|
|
56
|
+
return /* @__PURE__ */ D(
|
|
57
57
|
"aside",
|
|
58
58
|
{
|
|
59
59
|
ref: u,
|
|
@@ -65,9 +65,9 @@ const G = ({
|
|
|
65
65
|
"data-theme": L,
|
|
66
66
|
children: [
|
|
67
67
|
E,
|
|
68
|
+
N,
|
|
68
69
|
R,
|
|
69
|
-
|
|
70
|
-
g && /* @__PURE__ */ b(
|
|
70
|
+
g && /* @__PURE__ */ V(
|
|
71
71
|
"div",
|
|
72
72
|
{
|
|
73
73
|
ref: r,
|
|
@@ -79,6 +79,7 @@ const G = ({
|
|
|
79
79
|
}
|
|
80
80
|
);
|
|
81
81
|
};
|
|
82
|
+
z.displayName = "Sidebar.Wrapper";
|
|
82
83
|
export {
|
|
83
|
-
|
|
84
|
+
z as Wrapper
|
|
84
85
|
};
|
|
@@ -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-DB2XhXHn.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";
|
|
@@ -1,17 +1,11 @@
|
|
|
1
|
-
import { c as e } from "../../index-
|
|
1
|
+
import { c as e } from "../../index-D29mdTf5.js";
|
|
2
2
|
const s = e([
|
|
3
3
|
"relative",
|
|
4
4
|
"flex",
|
|
5
5
|
"items-center",
|
|
6
6
|
"w-full"
|
|
7
7
|
]), a = e(
|
|
8
|
-
[
|
|
9
|
-
"relative",
|
|
10
|
-
"flex-grow",
|
|
11
|
-
"rounded-full",
|
|
12
|
-
"bg-kubefirst-secondary",
|
|
13
|
-
"colony:bg-red-500"
|
|
14
|
-
],
|
|
8
|
+
["relative", "flex-grow", "rounded-full", "bg-kubefirst-secondary"],
|
|
15
9
|
{
|
|
16
10
|
variants: {
|
|
17
11
|
size: {
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { jsxs as x, jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import * as p from "react";
|
|
3
3
|
import { forwardRef as H, useRef as M, useId as $, useImperativeHandle as j, useEffect as z } from "react";
|
|
4
|
-
import { a as A, c as U, b as q } from "../../index-
|
|
5
|
-
import { u as P } from "../../index-
|
|
6
|
-
import { u as F, a as L } from "../../index-
|
|
7
|
-
import { P as y } from "../../index-
|
|
4
|
+
import { a as A, c as U, b as q } from "../../index-BfXxHr_2.js";
|
|
5
|
+
import { u as P } from "../../index-DQH6odE9.js";
|
|
6
|
+
import { u as F, a as L } from "../../index-CZnD2QxM.js";
|
|
7
|
+
import { P as y } from "../../index-C9T9HQaa.js";
|
|
8
8
|
import { cn as R } from "../../utils/index.js";
|
|
9
9
|
import { thumbVariants as O, switchVariants as V } from "./Switch.variants.js";
|
|
10
|
-
var b = "Switch", [D,
|
|
10
|
+
var b = "Switch", [D, se] = U(b), [W, X] = D(b), N = p.forwardRef(
|
|
11
11
|
(t, i) => {
|
|
12
12
|
const {
|
|
13
13
|
__scopeSwitch: r,
|
|
14
|
-
name:
|
|
15
|
-
checked:
|
|
14
|
+
name: s,
|
|
15
|
+
checked: o,
|
|
16
16
|
defaultChecked: d,
|
|
17
17
|
required: u,
|
|
18
|
-
disabled:
|
|
19
|
-
value:
|
|
18
|
+
disabled: c,
|
|
19
|
+
value: a = "on",
|
|
20
20
|
onCheckedChange: m,
|
|
21
21
|
form: e,
|
|
22
22
|
...f
|
|
23
|
-
} = t, [l, h] = p.useState(null), v = P(i, (S) => h(S)),
|
|
24
|
-
prop:
|
|
23
|
+
} = t, [l, h] = p.useState(null), v = P(i, (S) => h(S)), C = p.useRef(!1), k = l ? e || !!l.closest("form") : !0, [w, B] = A({
|
|
24
|
+
prop: o,
|
|
25
25
|
defaultProp: d ?? !1,
|
|
26
26
|
onChange: m,
|
|
27
27
|
caller: b
|
|
28
28
|
});
|
|
29
|
-
return /* @__PURE__ */ x(W, { scope: r, checked: w, disabled:
|
|
29
|
+
return /* @__PURE__ */ x(W, { scope: r, checked: w, disabled: c, children: [
|
|
30
30
|
/* @__PURE__ */ n(
|
|
31
31
|
y.button,
|
|
32
32
|
{
|
|
@@ -34,27 +34,27 @@ var b = "Switch", [D, ce] = U(b), [W, X] = D(b), N = p.forwardRef(
|
|
|
34
34
|
role: "switch",
|
|
35
35
|
"aria-checked": w,
|
|
36
36
|
"aria-required": u,
|
|
37
|
-
"data-state":
|
|
38
|
-
"data-disabled":
|
|
39
|
-
disabled:
|
|
40
|
-
value:
|
|
37
|
+
"data-state": I(w),
|
|
38
|
+
"data-disabled": c ? "" : void 0,
|
|
39
|
+
disabled: c,
|
|
40
|
+
value: a,
|
|
41
41
|
...f,
|
|
42
42
|
ref: v,
|
|
43
43
|
onClick: q(t.onClick, (S) => {
|
|
44
|
-
B((T) => !T),
|
|
44
|
+
B((T) => !T), k && (C.current = S.isPropagationStopped(), C.current || S.stopPropagation());
|
|
45
45
|
})
|
|
46
46
|
}
|
|
47
47
|
),
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
k && /* @__PURE__ */ n(
|
|
49
|
+
_,
|
|
50
50
|
{
|
|
51
51
|
control: l,
|
|
52
|
-
bubbles: !
|
|
53
|
-
name:
|
|
54
|
-
value:
|
|
52
|
+
bubbles: !C.current,
|
|
53
|
+
name: s,
|
|
54
|
+
value: a,
|
|
55
55
|
checked: w,
|
|
56
56
|
required: u,
|
|
57
|
-
disabled:
|
|
57
|
+
disabled: c,
|
|
58
58
|
form: e,
|
|
59
59
|
style: { transform: "translateX(-100%)" }
|
|
60
60
|
}
|
|
@@ -63,30 +63,30 @@ var b = "Switch", [D, ce] = U(b), [W, X] = D(b), N = p.forwardRef(
|
|
|
63
63
|
}
|
|
64
64
|
);
|
|
65
65
|
N.displayName = b;
|
|
66
|
-
var
|
|
66
|
+
var g = "SwitchThumb", E = p.forwardRef(
|
|
67
67
|
(t, i) => {
|
|
68
|
-
const { __scopeSwitch: r, ...
|
|
68
|
+
const { __scopeSwitch: r, ...s } = t, o = X(g, r);
|
|
69
69
|
return /* @__PURE__ */ n(
|
|
70
70
|
y.span,
|
|
71
71
|
{
|
|
72
|
-
"data-state":
|
|
73
|
-
"data-disabled":
|
|
74
|
-
...
|
|
72
|
+
"data-state": I(o.checked),
|
|
73
|
+
"data-disabled": o.disabled ? "" : void 0,
|
|
74
|
+
...s,
|
|
75
75
|
ref: i
|
|
76
76
|
}
|
|
77
77
|
);
|
|
78
78
|
}
|
|
79
79
|
);
|
|
80
|
-
|
|
81
|
-
var G = "SwitchBubbleInput",
|
|
80
|
+
E.displayName = g;
|
|
81
|
+
var G = "SwitchBubbleInput", _ = p.forwardRef(
|
|
82
82
|
({
|
|
83
83
|
__scopeSwitch: t,
|
|
84
84
|
control: i,
|
|
85
85
|
checked: r,
|
|
86
|
-
bubbles:
|
|
87
|
-
...
|
|
86
|
+
bubbles: s = !0,
|
|
87
|
+
...o
|
|
88
88
|
}, d) => {
|
|
89
|
-
const u = p.useRef(null),
|
|
89
|
+
const u = p.useRef(null), c = P(u, d), a = F(r), m = L(i);
|
|
90
90
|
return p.useEffect(() => {
|
|
91
91
|
const e = u.current;
|
|
92
92
|
if (!e) return;
|
|
@@ -94,21 +94,21 @@ var G = "SwitchBubbleInput", I = p.forwardRef(
|
|
|
94
94
|
f,
|
|
95
95
|
"checked"
|
|
96
96
|
).set;
|
|
97
|
-
if (
|
|
98
|
-
const v = new Event("click", { bubbles:
|
|
97
|
+
if (a !== r && h) {
|
|
98
|
+
const v = new Event("click", { bubbles: s });
|
|
99
99
|
h.call(e, r), e.dispatchEvent(v);
|
|
100
100
|
}
|
|
101
|
-
}, [
|
|
101
|
+
}, [a, r, s]), /* @__PURE__ */ n(
|
|
102
102
|
"input",
|
|
103
103
|
{
|
|
104
104
|
type: "checkbox",
|
|
105
105
|
"aria-hidden": !0,
|
|
106
106
|
defaultChecked: r,
|
|
107
|
-
...
|
|
107
|
+
...o,
|
|
108
108
|
tabIndex: -1,
|
|
109
|
-
ref:
|
|
109
|
+
ref: c,
|
|
110
110
|
style: {
|
|
111
|
-
...
|
|
111
|
+
...o.style,
|
|
112
112
|
...m,
|
|
113
113
|
position: "absolute",
|
|
114
114
|
pointerEvents: "none",
|
|
@@ -119,27 +119,27 @@ var G = "SwitchBubbleInput", I = p.forwardRef(
|
|
|
119
119
|
);
|
|
120
120
|
}
|
|
121
121
|
);
|
|
122
|
-
|
|
123
|
-
function
|
|
122
|
+
_.displayName = G;
|
|
123
|
+
function I(t) {
|
|
124
124
|
return t ? "checked" : "unchecked";
|
|
125
125
|
}
|
|
126
|
-
var J = N, K =
|
|
127
|
-
const
|
|
126
|
+
var J = N, K = E;
|
|
127
|
+
const ce = H(
|
|
128
128
|
({
|
|
129
129
|
name: t,
|
|
130
130
|
alignment: i = "horizontal",
|
|
131
131
|
theme: r,
|
|
132
|
-
thumbClassName:
|
|
133
|
-
className:
|
|
132
|
+
thumbClassName: s,
|
|
133
|
+
className: o,
|
|
134
134
|
label: d,
|
|
135
135
|
defaultChecked: u,
|
|
136
|
-
onChange:
|
|
137
|
-
value:
|
|
136
|
+
onChange: c,
|
|
137
|
+
value: a
|
|
138
138
|
}, m) => {
|
|
139
139
|
const e = M(null), f = $(), l = t ? `${f}-${t}` : f;
|
|
140
140
|
return j(m, () => e.current, [e]), z(() => {
|
|
141
|
-
e.current && (e.current.value = `${
|
|
142
|
-
}, [
|
|
141
|
+
e.current && (e.current.value = `${a}`);
|
|
142
|
+
}, [a]), /* @__PURE__ */ x(
|
|
143
143
|
"div",
|
|
144
144
|
{
|
|
145
145
|
className: R(
|
|
@@ -162,15 +162,15 @@ const ae = H(
|
|
|
162
162
|
{
|
|
163
163
|
id: l,
|
|
164
164
|
defaultChecked: u,
|
|
165
|
-
checked:
|
|
166
|
-
onCheckedChange: (h) =>
|
|
167
|
-
className: R(V({ className:
|
|
165
|
+
checked: a,
|
|
166
|
+
onCheckedChange: (h) => c?.(h),
|
|
167
|
+
className: R(V({ className: o })),
|
|
168
168
|
"aria-label": d,
|
|
169
169
|
children: /* @__PURE__ */ n(
|
|
170
170
|
K,
|
|
171
171
|
{
|
|
172
172
|
className: O({
|
|
173
|
-
className:
|
|
173
|
+
className: s
|
|
174
174
|
})
|
|
175
175
|
}
|
|
176
176
|
)
|
|
@@ -192,5 +192,5 @@ const ae = H(
|
|
|
192
192
|
}
|
|
193
193
|
);
|
|
194
194
|
export {
|
|
195
|
-
|
|
195
|
+
ce as Switch
|
|
196
196
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as t } from "../../index-
|
|
1
|
+
import { c as t } from "../../index-D29mdTf5.js";
|
|
2
2
|
const e = t([
|
|
3
3
|
"w-[44px]",
|
|
4
4
|
"h-[22px]",
|
|
@@ -12,8 +12,7 @@ const e = t([
|
|
|
12
12
|
"delay-10",
|
|
13
13
|
"duration-250",
|
|
14
14
|
"cursor-pointer",
|
|
15
|
-
"bg-kubefirst-primary"
|
|
16
|
-
"colony:bg-red-600"
|
|
15
|
+
"bg-kubefirst-primary"
|
|
17
16
|
]), r = t([
|
|
18
17
|
"block",
|
|
19
18
|
"w-[18px]",
|
|
@@ -1,24 +1,28 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { R as
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import { Content as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
const
|
|
9
|
-
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { R as e } from "../../index-BAraV3ai.js";
|
|
3
|
+
import { cn as n } from "../../utils/index.js";
|
|
4
|
+
import { rootVariants as p } from "./Tabs.variants.js";
|
|
5
|
+
import { Content as f } from "./components/Content.js";
|
|
6
|
+
import { List as c } from "./components/List.js";
|
|
7
|
+
import { Trigger as g } from "./components/Trigger.js";
|
|
8
|
+
const r = ({ children: o, theme: a, className: m, orientation: t, ...i }) => /* @__PURE__ */ s(
|
|
9
|
+
e,
|
|
10
10
|
{
|
|
11
11
|
...i,
|
|
12
12
|
"data-theme": a,
|
|
13
|
-
"data-orientation":
|
|
14
|
-
"aria-orientation":
|
|
15
|
-
className:
|
|
13
|
+
"data-orientation": t,
|
|
14
|
+
"aria-orientation": t,
|
|
15
|
+
className: n(p({ variant: t, className: m })),
|
|
16
16
|
children: o
|
|
17
17
|
}
|
|
18
18
|
);
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
r.displayName = "KonstructTabs";
|
|
20
|
+
r.Content = f;
|
|
21
|
+
r.List = c;
|
|
22
|
+
r.Trigger = g;
|
|
22
23
|
export {
|
|
23
|
-
|
|
24
|
+
f as Content,
|
|
25
|
+
c as List,
|
|
26
|
+
r as Tabs,
|
|
27
|
+
g as Trigger
|
|
24
28
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as a } from "../../index-
|
|
1
|
+
import { c as a } from "../../index-D29mdTf5.js";
|
|
2
2
|
const r = a([""], {
|
|
3
3
|
variants: {
|
|
4
4
|
variant: {
|
|
@@ -37,11 +37,9 @@ const r = a([""], {
|
|
|
37
37
|
"text-zinc-700",
|
|
38
38
|
"font-[600]",
|
|
39
39
|
"civo:border-b-2",
|
|
40
|
-
"civo:border-
|
|
40
|
+
"civo:border-aurora-500",
|
|
41
41
|
"kubefirst:border-b-2",
|
|
42
|
-
"kubefirst:border-kubefirst-primary"
|
|
43
|
-
"colony:border-b-2",
|
|
44
|
-
"colony:border-colony-primary"
|
|
42
|
+
"kubefirst:border-kubefirst-primary"
|
|
45
43
|
],
|
|
46
44
|
inactive: "text-slate-500 font-[600]"
|
|
47
45
|
}
|
|
@@ -1,19 +1,16 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { C as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
className: o,
|
|
8
|
-
...r
|
|
9
|
-
}) => /* @__PURE__ */ n(
|
|
10
|
-
m,
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { C as a } from "../../../index-BAraV3ai.js";
|
|
3
|
+
import { cn as m } from "../../../utils/index.js";
|
|
4
|
+
import { contentVariants as s } from "../Tabs.variants.js";
|
|
5
|
+
const e = ({ children: t, className: o, ...n }) => /* @__PURE__ */ r(
|
|
6
|
+
a,
|
|
11
7
|
{
|
|
12
|
-
...
|
|
13
|
-
className:
|
|
8
|
+
...n,
|
|
9
|
+
className: m(s({ variant: "default", className: o })),
|
|
14
10
|
children: t
|
|
15
11
|
}
|
|
16
12
|
);
|
|
13
|
+
e.displayName = "KonstructTabsContent";
|
|
17
14
|
export {
|
|
18
|
-
|
|
15
|
+
e as Content
|
|
19
16
|
};
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { L as n } from "../../../index-
|
|
3
|
-
import { listVariants as t } from "../Tabs.variants.js";
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { L as n } from "../../../index-BAraV3ai.js";
|
|
4
3
|
import { cn as a } from "../../../utils/index.js";
|
|
5
|
-
|
|
4
|
+
import { listVariants as s } from "../Tabs.variants.js";
|
|
5
|
+
const c = ({
|
|
6
6
|
children: i,
|
|
7
|
-
className:
|
|
7
|
+
className: r,
|
|
8
8
|
orientation: m,
|
|
9
9
|
...o
|
|
10
|
-
}) => /* @__PURE__ */
|
|
10
|
+
}) => /* @__PURE__ */ t("div", { className: a(s({ variant: "default" })), children: /* @__PURE__ */ t(
|
|
11
11
|
n,
|
|
12
12
|
{
|
|
13
|
-
className: a(
|
|
13
|
+
className: a(s({ variant: m, className: r })),
|
|
14
14
|
...o,
|
|
15
15
|
children: i
|
|
16
16
|
}
|
|
17
17
|
) });
|
|
18
|
+
c.displayName = "KonstructTabsList";
|
|
18
19
|
export {
|
|
19
|
-
|
|
20
|
+
c as List
|
|
20
21
|
};
|
|
@@ -1,26 +1,22 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { cn as
|
|
5
|
-
import { triggerVariants as
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
label: a,
|
|
9
|
-
isActive: t,
|
|
10
|
-
className: o
|
|
11
|
-
}) => /* @__PURE__ */ r(m, { value: i, children: /* @__PURE__ */ r(
|
|
12
|
-
e,
|
|
2
|
+
import { T as e } from "../../../index-BAraV3ai.js";
|
|
3
|
+
import { Typography as m } from "../../Typography/Typography.js";
|
|
4
|
+
import { cn as g } from "../../../utils/index.js";
|
|
5
|
+
import { triggerVariants as n } from "../Tabs.variants.js";
|
|
6
|
+
const p = ({ tab: i, label: a, isActive: o, className: t }) => /* @__PURE__ */ r(e, { value: i, children: /* @__PURE__ */ r(
|
|
7
|
+
m,
|
|
13
8
|
{
|
|
14
9
|
variant: "body2",
|
|
15
|
-
className:
|
|
16
|
-
|
|
17
|
-
variant:
|
|
18
|
-
className:
|
|
10
|
+
className: g(
|
|
11
|
+
n({
|
|
12
|
+
variant: o ? "active" : "inactive",
|
|
13
|
+
className: t
|
|
19
14
|
})
|
|
20
15
|
),
|
|
21
16
|
children: a
|
|
22
17
|
}
|
|
23
18
|
) });
|
|
19
|
+
p.displayName = "KonstructTabsTrigger";
|
|
24
20
|
export {
|
|
25
|
-
|
|
21
|
+
p as Trigger
|
|
26
22
|
};
|