@konstructio/ui 0.0.12-alpha.1 → 0.0.12-alpha.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/{Combination-BQYb0Gw7.js → Combination-b348x__d.js} +24 -24
- package/dist/{Modal-W2GbkC_F.js → Modal-ByNiP7eb.js} +316 -308
- package/dist/components/Alert/Alert.js +58 -0
- package/dist/components/Alert/Alert.variants.js +77 -0
- package/dist/components/AlertDialog/AlertDialog.js +1 -1
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/Autocomplete/components/List/List.js +3 -3
- package/dist/components/Breadcrumb/Breadcrumb.js +3 -3
- package/dist/components/Breadcrumb/components/Item/Item.js +4 -4
- package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +1 -1
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Card/Card.js +3 -3
- package/dist/components/Checkbox/Checkbox.js +5 -5
- package/dist/components/Command/Command.js +32 -0
- package/dist/components/Command/Command.variants.js +97 -0
- package/dist/components/Command/components/Command.js +8 -0
- package/dist/components/Command/components/CommandEmpty.js +15 -0
- package/dist/components/Command/components/CommandGroup.js +19 -0
- package/dist/components/Command/components/CommandInput.js +84 -0
- package/dist/components/Command/components/CommandItem.js +29 -0
- package/dist/components/Command/components/CommandList.js +16 -0
- package/dist/components/Command/components/CommandSeparator.js +16 -0
- package/dist/components/Command/components/CommandShortcut.js +19 -0
- package/dist/components/Command/components/DialogContent.js +31 -0
- package/dist/components/Command/components/DialogOverlay.js +19 -0
- package/dist/components/Command/components/index.js +20 -0
- package/dist/components/Command/contexts/Command.context.js +13 -0
- package/dist/components/Command/contexts/Command.provider.js +24 -0
- package/dist/components/Command/contexts/index.js +6 -0
- package/dist/components/Divider/Divider.js +10 -0
- package/dist/components/Divider/Divider.variants.js +14 -0
- package/dist/components/Loading/Loading.js +109 -0
- package/dist/components/Loading/Loading.variants.js +19 -0
- 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 +3 -3
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/NumberInput/NumberInput.js +1 -1
- package/dist/components/ProgressBar/ProgressBar.js +3 -3
- package/dist/components/Radio/Radio.js +4 -4
- package/dist/components/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/Range/Range.js +4 -4
- package/dist/components/Sidebar/components/Wrapper/Wrapper.js +3 -3
- package/dist/components/Slider/Slider.js +14 -14
- package/dist/components/Switch/Switch.js +17 -17
- package/dist/components/Tag/Tag.js +17 -5
- package/dist/components/Tag/Tag.variants.js +11 -1
- package/dist/components/TagSelect/TagSelect.js +6 -71
- package/dist/components/TagSelect/TagSelect.variants.js +29 -50
- package/dist/components/TagSelect/components/Item/Item.js +23 -0
- package/dist/components/TagSelect/components/Item/Item.variants.js +31 -0
- package/dist/components/TagSelect/components/List/List.js +13 -0
- package/dist/components/TagSelect/components/List/List.variants.js +37 -0
- package/dist/components/TagSelect/components/Wrapper/Wrapper.js +88 -0
- package/dist/components/TagSelect/components/index.js +8 -0
- package/dist/components/TagSelect/contexts/TagSelect.context.js +19 -0
- package/dist/components/TagSelect/contexts/TagSelect.hook.js +11 -0
- package/dist/components/TagSelect/contexts/TagSelect.provider.js +69 -0
- package/dist/components/TagSelect/contexts/index.js +6 -0
- package/dist/components/TagSelect/hooks/useTagSelect.js +22 -27
- package/dist/components/Toast/Toast.js +11 -11
- package/dist/components/Tooltip/Tooltip.js +4 -4
- package/dist/components/Typography/Typography.js +31 -0
- package/dist/components/Typography/Typography.variants.js +63 -0
- package/dist/components/index.js +61 -53
- package/dist/{index-BxeV34ij.js → index-4ecjw_Aj.js} +1 -1
- package/dist/index-B_6_jmOO.js +68 -0
- package/dist/{index-BBjak_0p.js → index-BbsJ0VIJ.js} +2 -2
- package/dist/{index-CJsYodgi.js → index-BzaHYXkt.js} +9 -9
- package/dist/{index-KEdwcThH.js → index-CbTU3cnP.js} +1 -1
- package/dist/{index-8vgf-x5i.js → index-Cva-e5M4.js} +2 -2
- package/dist/index-CzSBQN5S.js +432 -0
- package/dist/index-D7QNmo_D.js +422 -0
- package/dist/index-DUA6Y_AE.js +126 -0
- package/dist/{index-CoqDsznq.js → index-D_76wh4w.js} +3 -3
- package/dist/{index-D4Q2rMby.js → index-Dj1pom3_.js} +2 -2
- package/dist/index-DyKo5ZJT.js +446 -0
- package/dist/index.d.ts +52 -3
- package/dist/index.js +76 -68
- package/dist/package.json +32 -29
- package/dist/plugins/konstruct.js +34 -31
- package/dist/plugins/utils/animation.styles.js +162 -0
- package/dist/plugins/utils/index.js +7 -0
- package/dist/styles.css +1 -1
- package/dist/{useBreadcrumb-CojbXFVD.js → useBreadcrumb-BsIeMoR1.js} +47 -47
- package/package.json +31 -29
- package/dist/index-1GLoikpT.js +0 -19134
- package/dist/index-BVppSRDQ.js +0 -551
- package/dist/index-DoOsnuB6.js +0 -72
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsxs as t, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as i } from "react";
|
|
3
|
+
import { a as r, C as o, b as l } from "../../../index-DyKo5ZJT.js";
|
|
4
|
+
import { cn as m } from "../../../utils/index.js";
|
|
5
|
+
import { DialogOverlay as p } from "./DialogOverlay.js";
|
|
6
|
+
import { X as c } from "../../../x-DU-Zw-L_.js";
|
|
7
|
+
const f = i(({ className: e, children: s, ...n }, d) => /* @__PURE__ */ t(r, { children: [
|
|
8
|
+
/* @__PURE__ */ a(p, {}),
|
|
9
|
+
/* @__PURE__ */ t(
|
|
10
|
+
o,
|
|
11
|
+
{
|
|
12
|
+
ref: d,
|
|
13
|
+
className: m(
|
|
14
|
+
"fixed text-white left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
|
|
15
|
+
e
|
|
16
|
+
),
|
|
17
|
+
...n,
|
|
18
|
+
children: [
|
|
19
|
+
s,
|
|
20
|
+
/* @__PURE__ */ t(l, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground text-white", children: [
|
|
21
|
+
/* @__PURE__ */ a(c, { className: "h-4 w-4" }),
|
|
22
|
+
/* @__PURE__ */ a("span", { className: "sr-only", children: "Close" })
|
|
23
|
+
] })
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
)
|
|
27
|
+
] }));
|
|
28
|
+
f.displayName = o.displayName;
|
|
29
|
+
export {
|
|
30
|
+
f as DialogContent
|
|
31
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as i } from "react";
|
|
3
|
+
import { O as a } from "../../../index-DyKo5ZJT.js";
|
|
4
|
+
import { cn as m } from "../../../utils/index.js";
|
|
5
|
+
const r = i(({ className: t, ...e }, o) => /* @__PURE__ */ s(
|
|
6
|
+
a,
|
|
7
|
+
{
|
|
8
|
+
ref: o,
|
|
9
|
+
className: m(
|
|
10
|
+
"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
11
|
+
t
|
|
12
|
+
),
|
|
13
|
+
...e
|
|
14
|
+
}
|
|
15
|
+
));
|
|
16
|
+
r.displayName = a.displayName;
|
|
17
|
+
export {
|
|
18
|
+
r as DialogOverlay
|
|
19
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { CommandEmpty as r } from "./CommandEmpty.js";
|
|
2
|
+
import { CommandGroup as p } from "./CommandGroup.js";
|
|
3
|
+
import { CommandInput as a } from "./CommandInput.js";
|
|
4
|
+
import { CommandItem as f } from "./CommandItem.js";
|
|
5
|
+
import { CommandList as C } from "./CommandList.js";
|
|
6
|
+
import { CommandSeparator as u } from "./CommandSeparator.js";
|
|
7
|
+
import { CommandShortcut as I } from "./CommandShortcut.js";
|
|
8
|
+
import { DialogContent as c } from "./DialogContent.js";
|
|
9
|
+
import { Command as h } from "./Command.js";
|
|
10
|
+
export {
|
|
11
|
+
h as Command,
|
|
12
|
+
r as CommandEmpty,
|
|
13
|
+
p as CommandGroup,
|
|
14
|
+
a as CommandInput,
|
|
15
|
+
f as CommandItem,
|
|
16
|
+
C as CommandList,
|
|
17
|
+
u as CommandSeparator,
|
|
18
|
+
I as CommandShortcut,
|
|
19
|
+
c as DialogContent
|
|
20
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { createContext as e } from "react";
|
|
2
|
+
const t = {
|
|
3
|
+
isOpen: !1,
|
|
4
|
+
setOpen: () => {
|
|
5
|
+
throw new Error("onOpen is not implemented");
|
|
6
|
+
},
|
|
7
|
+
toggleOpen: () => {
|
|
8
|
+
throw new Error("toggleOpen is not implemented");
|
|
9
|
+
}
|
|
10
|
+
}, o = e(t);
|
|
11
|
+
export {
|
|
12
|
+
o as CommandContext
|
|
13
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { CommandContext as s } from "./Command.context.js";
|
|
2
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
3
|
+
import { useCallback as e } from "react";
|
|
4
|
+
import { useToggle as p } from "../../../hooks/useToggle.js";
|
|
5
|
+
const f = ({ children: t }) => {
|
|
6
|
+
const [r, o] = p(!1), n = e(
|
|
7
|
+
(l) => o(l),
|
|
8
|
+
[o]
|
|
9
|
+
), m = e(() => o(), [o]);
|
|
10
|
+
return /* @__PURE__ */ a(
|
|
11
|
+
s.Provider,
|
|
12
|
+
{
|
|
13
|
+
value: {
|
|
14
|
+
isOpen: r,
|
|
15
|
+
setOpen: n,
|
|
16
|
+
toggleOpen: m
|
|
17
|
+
},
|
|
18
|
+
children: t
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
};
|
|
22
|
+
export {
|
|
23
|
+
f as CommandProvider
|
|
24
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { dividerVariants as a } from "./Divider.variants.js";
|
|
3
|
+
const d = ({
|
|
4
|
+
className: i,
|
|
5
|
+
...r
|
|
6
|
+
}) => /* @__PURE__ */ e("div", { className: a({ className: i }), ...r });
|
|
7
|
+
d.displayName = "Divider";
|
|
8
|
+
export {
|
|
9
|
+
d as Divider
|
|
10
|
+
};
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
2
|
+
import { cn as h } from "../../utils/index.js";
|
|
3
|
+
import { loadingVariants as g } from "./Loading.variants.js";
|
|
4
|
+
import { forwardRef as s, createElement as i } from "react";
|
|
5
|
+
import { useTheme as w } from "../../contexts/theme.hook.js";
|
|
6
|
+
/**
|
|
7
|
+
* @license lucide-react v0.475.0 - ISC
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the ISC license.
|
|
10
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/
|
|
12
|
+
const C = (r) => r.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), m = (...r) => r.filter((e, o, t) => !!e && e.trim() !== "" && t.indexOf(e) === o).join(" ").trim();
|
|
13
|
+
/**
|
|
14
|
+
* @license lucide-react v0.475.0 - ISC
|
|
15
|
+
*
|
|
16
|
+
* This source code is licensed under the ISC license.
|
|
17
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
18
|
+
*/
|
|
19
|
+
var L = {
|
|
20
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
21
|
+
width: 24,
|
|
22
|
+
height: 24,
|
|
23
|
+
viewBox: "0 0 24 24",
|
|
24
|
+
fill: "none",
|
|
25
|
+
stroke: "currentColor",
|
|
26
|
+
strokeWidth: 2,
|
|
27
|
+
strokeLinecap: "round",
|
|
28
|
+
strokeLinejoin: "round"
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* @license lucide-react v0.475.0 - ISC
|
|
32
|
+
*
|
|
33
|
+
* This source code is licensed under the ISC license.
|
|
34
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
35
|
+
*/
|
|
36
|
+
const k = s(
|
|
37
|
+
({
|
|
38
|
+
color: r = "currentColor",
|
|
39
|
+
size: e = 24,
|
|
40
|
+
strokeWidth: o = 2,
|
|
41
|
+
absoluteStrokeWidth: t,
|
|
42
|
+
className: a = "",
|
|
43
|
+
children: n,
|
|
44
|
+
iconNode: c,
|
|
45
|
+
...d
|
|
46
|
+
}, l) => i(
|
|
47
|
+
"svg",
|
|
48
|
+
{
|
|
49
|
+
ref: l,
|
|
50
|
+
...L,
|
|
51
|
+
width: e,
|
|
52
|
+
height: e,
|
|
53
|
+
stroke: r,
|
|
54
|
+
strokeWidth: t ? Number(o) * 24 / Number(e) : o,
|
|
55
|
+
className: m("lucide", a),
|
|
56
|
+
...d
|
|
57
|
+
},
|
|
58
|
+
[
|
|
59
|
+
...c.map(([u, p]) => i(u, p)),
|
|
60
|
+
...Array.isArray(n) ? n : [n]
|
|
61
|
+
]
|
|
62
|
+
)
|
|
63
|
+
);
|
|
64
|
+
/**
|
|
65
|
+
* @license lucide-react v0.475.0 - ISC
|
|
66
|
+
*
|
|
67
|
+
* This source code is licensed under the ISC license.
|
|
68
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
69
|
+
*/
|
|
70
|
+
const x = (r, e) => {
|
|
71
|
+
const o = s(
|
|
72
|
+
({ className: t, ...a }, n) => i(k, {
|
|
73
|
+
ref: n,
|
|
74
|
+
iconNode: e,
|
|
75
|
+
className: m(`lucide-${C(r)}`, t),
|
|
76
|
+
...a
|
|
77
|
+
})
|
|
78
|
+
);
|
|
79
|
+
return o.displayName = `${r}`, o;
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* @license lucide-react v0.475.0 - ISC
|
|
83
|
+
*
|
|
84
|
+
* This source code is licensed under the ISC license.
|
|
85
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
86
|
+
*/
|
|
87
|
+
const b = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], y = x("LoaderCircle", b), N = ({
|
|
88
|
+
className: r,
|
|
89
|
+
theme: e,
|
|
90
|
+
...o
|
|
91
|
+
}) => {
|
|
92
|
+
const { theme: t } = w();
|
|
93
|
+
return /* @__PURE__ */ f(
|
|
94
|
+
y,
|
|
95
|
+
{
|
|
96
|
+
className: h(
|
|
97
|
+
g({
|
|
98
|
+
className: r,
|
|
99
|
+
theme: e ?? t
|
|
100
|
+
})
|
|
101
|
+
),
|
|
102
|
+
...o
|
|
103
|
+
}
|
|
104
|
+
);
|
|
105
|
+
};
|
|
106
|
+
N.displayName = "Loading";
|
|
107
|
+
export {
|
|
108
|
+
N as Loading
|
|
109
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { c as t } from "../../index-BNmRGtA6.js";
|
|
2
|
+
const r = t(
|
|
3
|
+
["h-8", "w-8", "animate-spin", "text-inherit"],
|
|
4
|
+
{
|
|
5
|
+
variants: {
|
|
6
|
+
theme: {
|
|
7
|
+
kubefirst: "text-kubefirst-primary",
|
|
8
|
+
colony: "text-colony-primary",
|
|
9
|
+
civo: "text-civo-primary"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
defaultVariants: {
|
|
13
|
+
theme: "kubefirst"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
export {
|
|
18
|
+
r as loadingVariants
|
|
19
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import "../../index-
|
|
3
|
-
import { M as d } from "../../Modal-
|
|
2
|
+
import "../../index-D7QNmo_D.js";
|
|
3
|
+
import { M as d } from "../../Modal-ByNiP7eb.js";
|
|
4
4
|
import "./components/Header/Header.js";
|
|
5
5
|
import "./components/Body/Body.js";
|
|
6
6
|
import "./components/Footer/Footer.js";
|
|
@@ -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-B_6_jmOO.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 m } from "react/jsx-runtime";
|
|
2
|
-
import { S as n } from "../../../../index-
|
|
2
|
+
import { S as n } from "../../../../index-B_6_jmOO.js";
|
|
3
3
|
import { cn as e } from "../../../../utils/index.js";
|
|
4
4
|
const a = ({ children: o, asChild: t, className: r }) => /* @__PURE__ */ m(t ? n : "div", { className: e(r), children: o });
|
|
5
5
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
-
import { S as n } from "../../../../index-
|
|
2
|
+
import { S as n } from "../../../../index-B_6_jmOO.js";
|
|
3
3
|
import { cn as e } from "../../../../utils/index.js";
|
|
4
4
|
const i = ({ children: o, asChild: r, className: t }) => /* @__PURE__ */ m(r ? n : "div", { className: e(t), children: o });
|
|
5
5
|
export {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import "../../../../index-
|
|
2
|
+
import "../../../../index-CbTU3cnP.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import { W as x } from "../../../../Modal-
|
|
5
|
-
import "../../../../Combination-
|
|
4
|
+
import { W as x } from "../../../../Modal-ByNiP7eb.js";
|
|
5
|
+
import "../../../../Combination-b348x__d.js";
|
|
6
6
|
import "../../../../utils/index.js";
|
|
7
7
|
import "./Wrapper.variants.js";
|
|
8
8
|
import "../../hooks/useModal.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Body as e } from "./Body/Body.js";
|
|
2
2
|
import { Footer as t } from "./Footer/Footer.js";
|
|
3
3
|
import { Header as m } from "./Header/Header.js";
|
|
4
|
-
import { W as a } from "../../../Modal-
|
|
4
|
+
import { W as a } from "../../../Modal-ByNiP7eb.js";
|
|
5
5
|
export {
|
|
6
6
|
e as Body,
|
|
7
7
|
t as Footer,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as y, jsx as u } from "react/jsx-runtime";
|
|
2
|
-
import { R as j } from "../../index-
|
|
2
|
+
import { R as j } from "../../index-CbTU3cnP.js";
|
|
3
3
|
import p, { forwardRef as d, useId as E, useState as T, useCallback as x } from "react";
|
|
4
4
|
import { cn as h } from "../../utils/index.js";
|
|
5
5
|
import { labelVariants as $, buttonVariants as P, numberInputVariants as L } from "./NumberInput.variants.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as r, jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { cn as o } from "../../utils/index.js";
|
|
3
|
-
import {
|
|
3
|
+
import { progressBarProgress as l, progressBarVariants as d } from "./ProgressBar.variants.js";
|
|
4
4
|
import { useTheme as c } from "../../contexts/theme.hook.js";
|
|
5
5
|
const p = ({
|
|
6
6
|
label: e,
|
|
@@ -17,11 +17,11 @@ const p = ({
|
|
|
17
17
|
"%"
|
|
18
18
|
] })
|
|
19
19
|
] }),
|
|
20
|
-
/* @__PURE__ */ i("div", { className: o(
|
|
20
|
+
/* @__PURE__ */ i("div", { className: o(d({ theme: t })), children: /* @__PURE__ */ i(
|
|
21
21
|
"div",
|
|
22
22
|
{
|
|
23
23
|
className: o(
|
|
24
|
-
|
|
24
|
+
l({ theme: t, status: n }),
|
|
25
25
|
s > 0 && s < 99 ? "transition-width duration-500" : "transition-colors duration-0"
|
|
26
26
|
),
|
|
27
27
|
style: { width: `${s}%` }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as T, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as V, useId as j, useCallback as w } from "react";
|
|
3
3
|
import { cn as r } from "../../utils/index.js";
|
|
4
|
-
import {
|
|
4
|
+
import { radioVariants as F, labelRadioVariants as $, wrapperRadioVariants as y } from "./Radio.variants.js";
|
|
5
5
|
import { useTheme as I } from "../../contexts/theme.hook.js";
|
|
6
6
|
const D = V(
|
|
7
7
|
({
|
|
@@ -28,7 +28,7 @@ const D = V(
|
|
|
28
28
|
{
|
|
29
29
|
htmlFor: l,
|
|
30
30
|
className: r(
|
|
31
|
-
|
|
31
|
+
y({
|
|
32
32
|
className: f,
|
|
33
33
|
disabled: a || !1
|
|
34
34
|
})
|
|
@@ -53,7 +53,7 @@ const D = V(
|
|
|
53
53
|
"span",
|
|
54
54
|
{
|
|
55
55
|
className: r(
|
|
56
|
-
|
|
56
|
+
F({
|
|
57
57
|
className: c,
|
|
58
58
|
theme: x,
|
|
59
59
|
disabled: a || !1,
|
|
@@ -65,7 +65,7 @@ const D = V(
|
|
|
65
65
|
/* @__PURE__ */ e(
|
|
66
66
|
"span",
|
|
67
67
|
{
|
|
68
|
-
className: r(
|
|
68
|
+
className: r($({ className: p })),
|
|
69
69
|
children: d
|
|
70
70
|
}
|
|
71
71
|
)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as o, Fragment as k } from "react/jsx-runtime";
|
|
2
|
-
import { S as G } from "../../index-
|
|
2
|
+
import { S as G } from "../../index-B_6_jmOO.js";
|
|
3
3
|
import { useState as R, useCallback as T } from "react";
|
|
4
4
|
import { cn as r } from "../../utils/index.js";
|
|
5
5
|
import { Radio as b } from "../Radio/Radio.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { R as V, T as v,
|
|
2
|
+
import { R as V, T as v, a as T, b as c } from "../../index-BzaHYXkt.js";
|
|
3
3
|
import { forwardRef as b, useRef as j, useState as k, useImperativeHandle as w, useEffect as y, useCallback as C } from "react";
|
|
4
4
|
import { cn as t } from "../../utils/index.js";
|
|
5
|
-
import {
|
|
5
|
+
import { rangeOutsideVariants as S, trackVariants as $, thumbVariants as i, rangeVariants as E } from "./Range.variants.js";
|
|
6
6
|
import { useTheme as H } from "../../contexts/theme.hook.js";
|
|
7
7
|
const F = b(
|
|
8
8
|
({
|
|
@@ -45,14 +45,14 @@ const F = b(
|
|
|
45
45
|
V,
|
|
46
46
|
{
|
|
47
47
|
value: s,
|
|
48
|
-
className: t(
|
|
48
|
+
className: t(E({ theme: n })),
|
|
49
49
|
onValueChange: g,
|
|
50
50
|
...d,
|
|
51
51
|
children: [
|
|
52
52
|
/* @__PURE__ */ e(v, { className: t($({ theme: n, size: m })), children: /* @__PURE__ */ e(
|
|
53
53
|
T,
|
|
54
54
|
{
|
|
55
|
-
className: t(
|
|
55
|
+
className: t(S({ theme: n }))
|
|
56
56
|
}
|
|
57
57
|
) }),
|
|
58
58
|
/* @__PURE__ */ e(c, { className: t(i({ theme: n, size: m })) }),
|
|
@@ -8,7 +8,7 @@ import "../NavigationTitle/NavigationTitle.js";
|
|
|
8
8
|
import { jsxs as T, jsx as V } from "react/jsx-runtime";
|
|
9
9
|
import { useRef as d, useCallback as l, useMemo as s, Children as i, isValidElement as v, useEffect as b } from "react";
|
|
10
10
|
import { cn as E } from "../../../../utils/index.js";
|
|
11
|
-
import {
|
|
11
|
+
import { dragVariants as j, wrapperSiderbarVariants as z } from "../../Sidebar.variants.js";
|
|
12
12
|
import { useTheme as k } from "../../../../contexts/theme.hook.js";
|
|
13
13
|
const K = ({
|
|
14
14
|
canResize: M = !0,
|
|
@@ -61,7 +61,7 @@ const K = ({
|
|
|
61
61
|
{
|
|
62
62
|
ref: u,
|
|
63
63
|
className: E(
|
|
64
|
-
|
|
64
|
+
z({
|
|
65
65
|
className: w,
|
|
66
66
|
theme: g
|
|
67
67
|
})
|
|
@@ -74,7 +74,7 @@ const K = ({
|
|
|
74
74
|
"div",
|
|
75
75
|
{
|
|
76
76
|
ref: r,
|
|
77
|
-
className: E(
|
|
77
|
+
className: E(j({ theme: g })),
|
|
78
78
|
onMouseDown: R
|
|
79
79
|
}
|
|
80
80
|
)
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsxs as l, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { R as v, T,
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import { cn as
|
|
5
|
-
import {
|
|
2
|
+
import { R as v, T, b as V } from "../../index-BzaHYXkt.js";
|
|
3
|
+
import { forwardRef as b, useRef as R, useState as g, useImperativeHandle as j, useEffect as k, useCallback as w } from "react";
|
|
4
|
+
import { cn as a } from "../../utils/index.js";
|
|
5
|
+
import { trackVariants as y, thumbVariants as C, sliderVariants as S } from "./Slider.variants.js";
|
|
6
6
|
import { useTheme as E } from "../../contexts/theme.hook.js";
|
|
7
|
-
const F =
|
|
7
|
+
const F = b(
|
|
8
8
|
({ label: s, defaultValue: c = [0], name: i, theme: o, size: m, showValue: u, ...f }, h) => {
|
|
9
|
-
const e =
|
|
9
|
+
const e = R(null), [r, d] = g(c), { theme: p } = E(), n = o ?? p;
|
|
10
10
|
j(h, () => e.current, [e]), k(() => {
|
|
11
|
-
e.current && (e.current.value =
|
|
12
|
-
}, [
|
|
11
|
+
e.current && (e.current.value = r.toString());
|
|
12
|
+
}, [r]);
|
|
13
13
|
const x = w(
|
|
14
14
|
(N) => d(N),
|
|
15
15
|
[]
|
|
@@ -18,13 +18,13 @@ const F = R(
|
|
|
18
18
|
/* @__PURE__ */ l(
|
|
19
19
|
"div",
|
|
20
20
|
{
|
|
21
|
-
className:
|
|
21
|
+
className: a(
|
|
22
22
|
"flex items-center",
|
|
23
23
|
s ? "justify-between" : "justify-end"
|
|
24
24
|
),
|
|
25
25
|
children: [
|
|
26
26
|
s ? /* @__PURE__ */ t("label", { children: s }) : null,
|
|
27
|
-
u ? /* @__PURE__ */ t("span", { className: "text-xs", children:
|
|
27
|
+
u ? /* @__PURE__ */ t("span", { className: "text-xs", children: r }) : null
|
|
28
28
|
]
|
|
29
29
|
}
|
|
30
30
|
),
|
|
@@ -32,13 +32,13 @@ const F = R(
|
|
|
32
32
|
/* @__PURE__ */ l(
|
|
33
33
|
v,
|
|
34
34
|
{
|
|
35
|
-
value:
|
|
36
|
-
className:
|
|
35
|
+
value: r,
|
|
36
|
+
className: a(S({ theme: n })),
|
|
37
37
|
onValueChange: x,
|
|
38
38
|
...f,
|
|
39
39
|
children: [
|
|
40
|
-
/* @__PURE__ */ t(T, { className:
|
|
41
|
-
/* @__PURE__ */ t(V, { className:
|
|
40
|
+
/* @__PURE__ */ t(T, { className: a(y({ theme: n, size: m })) }),
|
|
41
|
+
/* @__PURE__ */ t(V, { className: a(C({ theme: n, size: m })) })
|
|
42
42
|
]
|
|
43
43
|
}
|
|
44
44
|
)
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsxs as P, jsx as u } from "react/jsx-runtime";
|
|
2
2
|
import * as p from "react";
|
|
3
3
|
import { forwardRef as _, useState as H, useRef as A, useId as M, useImperativeHandle as $, useEffect as j, useCallback as z } from "react";
|
|
4
|
-
import {
|
|
5
|
-
import { u as O } from "../../index-
|
|
6
|
-
import { u as V, a as D } from "../../index-
|
|
7
|
-
import { P as g } from "../../index-
|
|
4
|
+
import { a as B, c as q, b as F } from "../../index-Cva-e5M4.js";
|
|
5
|
+
import { u as O } from "../../index-B_6_jmOO.js";
|
|
6
|
+
import { u as V, a as D } from "../../index-4ecjw_Aj.js";
|
|
7
|
+
import { P as g } from "../../index-D7QNmo_D.js";
|
|
8
8
|
import { cn as x } from "../../utils/index.js";
|
|
9
|
-
import {
|
|
9
|
+
import { thumbVariants as L, switchVariants as U } from "./Switch.variants.js";
|
|
10
10
|
import { useTheme as W } from "../../contexts/theme.hook.js";
|
|
11
|
-
var k = "Switch", [X, ie] =
|
|
11
|
+
var k = "Switch", [X, ie] = q(k), [G, J] = X(k), R = p.forwardRef(
|
|
12
12
|
(e, s) => {
|
|
13
13
|
const {
|
|
14
14
|
__scopeSwitch: t,
|
|
@@ -20,8 +20,8 @@ var k = "Switch", [X, ie] = B(k), [G, J] = X(k), R = p.forwardRef(
|
|
|
20
20
|
value: i = "on",
|
|
21
21
|
onCheckedChange: m,
|
|
22
22
|
form: r,
|
|
23
|
-
...
|
|
24
|
-
} = e, [
|
|
23
|
+
...l
|
|
24
|
+
} = e, [d, b] = p.useState(null), v = O(s, (C) => b(C)), f = p.useRef(!1), w = d ? r || !!d.closest("form") : !0, [S = !1, T] = B({
|
|
25
25
|
prop: n,
|
|
26
26
|
defaultProp: h,
|
|
27
27
|
onChange: m
|
|
@@ -38,7 +38,7 @@ var k = "Switch", [X, ie] = B(k), [G, J] = X(k), R = p.forwardRef(
|
|
|
38
38
|
"data-disabled": a ? "" : void 0,
|
|
39
39
|
disabled: a,
|
|
40
40
|
value: i,
|
|
41
|
-
...
|
|
41
|
+
...l,
|
|
42
42
|
ref: v,
|
|
43
43
|
onClick: F(e.onClick, (C) => {
|
|
44
44
|
T((I) => !I), w && (f.current = C.isPropagationStopped(), f.current || C.stopPropagation());
|
|
@@ -48,7 +48,7 @@ var k = "Switch", [X, ie] = B(k), [G, J] = X(k), R = p.forwardRef(
|
|
|
48
48
|
w && /* @__PURE__ */ u(
|
|
49
49
|
K,
|
|
50
50
|
{
|
|
51
|
-
control:
|
|
51
|
+
control: d,
|
|
52
52
|
bubbles: !f.current,
|
|
53
53
|
name: c,
|
|
54
54
|
value: i,
|
|
@@ -81,10 +81,10 @@ N.displayName = y;
|
|
|
81
81
|
var K = (e) => {
|
|
82
82
|
const { control: s, checked: t, bubbles: c = !0, ...n } = e, h = p.useRef(null), o = V(t), a = D(s);
|
|
83
83
|
return p.useEffect(() => {
|
|
84
|
-
const i = h.current, m = window.HTMLInputElement.prototype,
|
|
85
|
-
if (o !== t &&
|
|
86
|
-
const
|
|
87
|
-
|
|
84
|
+
const i = h.current, m = window.HTMLInputElement.prototype, l = Object.getOwnPropertyDescriptor(m, "checked").set;
|
|
85
|
+
if (o !== t && l) {
|
|
86
|
+
const d = new Event("click", { bubbles: c });
|
|
87
|
+
l.call(i, t), i.dispatchEvent(d);
|
|
88
88
|
}
|
|
89
89
|
}, [o, t, c]), /* @__PURE__ */ u(
|
|
90
90
|
"input",
|
|
@@ -120,7 +120,7 @@ const ue = _(
|
|
|
120
120
|
className: h,
|
|
121
121
|
label: o
|
|
122
122
|
}, a) => {
|
|
123
|
-
const [i, m] = H(s ?? !1), r = A(null),
|
|
123
|
+
const [i, m] = H(s ?? !1), r = A(null), l = M(), { theme: d } = W(), b = c ?? d, v = e ? `${l}-${e}` : l;
|
|
124
124
|
$(a, () => r.current, [r]), j(() => {
|
|
125
125
|
r.current && (r.current.value = `${i}`);
|
|
126
126
|
}, [i]);
|
|
@@ -151,12 +151,12 @@ const ue = _(
|
|
|
151
151
|
id: v,
|
|
152
152
|
defaultChecked: s,
|
|
153
153
|
onCheckedChange: f,
|
|
154
|
-
className: x(
|
|
154
|
+
className: x(U({ theme: b, className: h })),
|
|
155
155
|
"aria-label": o,
|
|
156
156
|
children: /* @__PURE__ */ u(
|
|
157
157
|
Y,
|
|
158
158
|
{
|
|
159
|
-
className:
|
|
159
|
+
className: L({
|
|
160
160
|
theme: b,
|
|
161
161
|
className: n
|
|
162
162
|
})
|
|
@@ -1,7 +1,19 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { jsxs as n, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { S as r } from "../../index-B_6_jmOO.js";
|
|
3
|
+
import { cn as o } from "../../utils/index.js";
|
|
4
|
+
import { tagVariants as c } from "./Tag.variants.js";
|
|
5
|
+
const u = ({
|
|
6
|
+
label: i,
|
|
7
|
+
color: s,
|
|
8
|
+
rightIcon: t,
|
|
9
|
+
leftIcon: e,
|
|
10
|
+
className: l,
|
|
11
|
+
"data-value": m
|
|
12
|
+
}) => /* @__PURE__ */ n("div", { className: o(c({ color: s, className: l })), "data-value": m, children: [
|
|
13
|
+
e ? /* @__PURE__ */ a(r, { className: "text-inherit", children: e }) : null,
|
|
14
|
+
/* @__PURE__ */ a("span", { className: "text-inherit", children: i }),
|
|
15
|
+
t ? /* @__PURE__ */ a(r, { className: "text-inherit", children: t }) : null
|
|
16
|
+
] });
|
|
5
17
|
export {
|
|
6
|
-
|
|
18
|
+
u as Tag
|
|
7
19
|
};
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import { c as e } from "../../index-BNmRGtA6.js";
|
|
2
2
|
const f = e(
|
|
3
|
-
[
|
|
3
|
+
[
|
|
4
|
+
"px-2",
|
|
5
|
+
"py-1",
|
|
6
|
+
"rounded-md",
|
|
7
|
+
"w-max",
|
|
8
|
+
"text-xs",
|
|
9
|
+
"flex",
|
|
10
|
+
"items-center",
|
|
11
|
+
"justify-center",
|
|
12
|
+
"gap-1"
|
|
13
|
+
],
|
|
4
14
|
{
|
|
5
15
|
variants: {
|
|
6
16
|
color: {
|