@konstructio/ui 0.0.12-alpha.2 → 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/{Modal-DZUwNzSW.js → Modal-ByNiP7eb.js} +3 -3
- package/dist/components/Alert/Alert.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/Checkbox/Checkbox.js +1 -1
- 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/Loading/Loading.js +102 -21
- package/dist/components/Loading/Loading.variants.js +13 -14
- package/dist/components/Modal/Modal.js +2 -2
- package/dist/components/Modal/components/Wrapper/Wrapper.js +2 -2
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/NumberInput/NumberInput.js +1 -1
- package/dist/components/Range/Range.js +1 -1
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/Switch/Switch.js +1 -1
- 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 +3 -3
- package/dist/components/Typography/Typography.js +23 -22
- package/dist/components/Typography/Typography.variants.js +49 -22
- package/dist/components/index.js +1 -1
- package/dist/{index-C6WtlN_F.js → index-BzaHYXkt.js} +1 -1
- package/dist/{index-Z1voPZOH.js → index-CbTU3cnP.js} +1 -1
- 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-B33at13_.js → index-D_76wh4w.js} +1 -1
- package/dist/index-DyKo5ZJT.js +446 -0
- package/dist/index.d.ts +15 -5
- package/dist/index.js +1 -1
- package/dist/package.json +17 -13
- package/dist/styles.css +1 -1
- package/package.json +16 -13
- package/dist/index-3jTPaVvh.js +0 -551
- package/dist/index-BTeAm7mx.js +0 -19133
|
@@ -2,8 +2,8 @@ import { Body as Cr } from "./components/Modal/components/Body/Body.js";
|
|
|
2
2
|
import { Footer as Mr } from "./components/Modal/components/Footer/Footer.js";
|
|
3
3
|
import { Header as _r } from "./components/Modal/components/Header/Header.js";
|
|
4
4
|
import { jsx as _, jsxs as ee } from "react/jsx-runtime";
|
|
5
|
-
import { r as kr } from "./index-
|
|
6
|
-
import { R as Lr } from "./index-
|
|
5
|
+
import { r as kr } from "./index-D7QNmo_D.js";
|
|
6
|
+
import { R as Lr } from "./index-CbTU3cnP.js";
|
|
7
7
|
import S, { createContext as Rr, forwardRef as Ue, useState as re, useRef as ne, useCallback as W, useEffect as Wr, useMemo as Br, Fragment as Ur, PureComponent as Gr, Children as K, isValidElement as X } from "react";
|
|
8
8
|
import { p as l } from "./index-C5psggHV.js";
|
|
9
9
|
import { c as le, a as Hr, u as jr, R as Vr } from "./Combination-b348x__d.js";
|
|
@@ -16,7 +16,7 @@ function Yr(e, r) {
|
|
|
16
16
|
if (e == null) return {};
|
|
17
17
|
var n = {};
|
|
18
18
|
for (var t in e) if ({}.hasOwnProperty.call(e, t)) {
|
|
19
|
-
if (r.
|
|
19
|
+
if (r.indexOf(t) !== -1) continue;
|
|
20
20
|
n[t] = e[t];
|
|
21
21
|
}
|
|
22
22
|
return n;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as o, jsxs as m } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as V, useState as v, useMemo as x, isValidElement as k, useCallback as w, useEffect as y } from "react";
|
|
3
|
-
import { V as A } from "../../index-
|
|
3
|
+
import { V as A } from "../../index-CbTU3cnP.js";
|
|
4
4
|
import { cn as c } from "../../utils/index.js";
|
|
5
5
|
import { closeButtonVariants as E, alertVariants as T } from "./Alert.variants.js";
|
|
6
6
|
import { useTheme as g } from "../../contexts/theme.hook.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { R as C, A as b, P as y, O as N, C as O, T as A, D, a as T, b as v } from "../../index-
|
|
2
|
+
import { R as C, A as b, P as y, O as N, C as O, T as A, D, a as T, b as v } from "../../index-DUA6Y_AE.js";
|
|
3
3
|
import { cn as l } from "../../utils/index.js";
|
|
4
4
|
import { Button as r } from "../Button/Button.js";
|
|
5
5
|
import { useAlertDialog as j } from "./hooks/useAlertDialog.js";
|
|
@@ -5,7 +5,7 @@ import { u as K } from "../../index-B_6_jmOO.js";
|
|
|
5
5
|
import { a as W, c as $, b as I } from "../../index-Cva-e5M4.js";
|
|
6
6
|
import { u as q, a as F } from "../../index-4ecjw_Aj.js";
|
|
7
7
|
import { P as V } from "../../index-Dj1pom3_.js";
|
|
8
|
-
import { P as T } from "../../index-
|
|
8
|
+
import { P as T } from "../../index-D7QNmo_D.js";
|
|
9
9
|
import { cn as N } from "../../utils/index.js";
|
|
10
10
|
import { checkboxVariants as X, labelVariants as G } from "./Checkbox.variants.js";
|
|
11
11
|
import { useToggle as J } from "../../hooks/useToggle.js";
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsx as o, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import { R as t, D as s } from "../../index-DyKo5ZJT.js";
|
|
3
|
+
import { V as p } from "../../index-CbTU3cnP.js";
|
|
4
|
+
import { cn as r } from "../../utils/index.js";
|
|
5
|
+
import { wrapperVariants as l } from "./Command.variants.js";
|
|
6
|
+
import { DialogContent as f } from "./components/DialogContent.js";
|
|
7
|
+
import { Command as c } from "./components/Command.js";
|
|
8
|
+
import { CommandGroup as R } from "./components/CommandGroup.js";
|
|
9
|
+
import { CommandItem as v } from "./components/CommandItem.js";
|
|
10
|
+
import { CommandSeparator as G } from "./components/CommandSeparator.js";
|
|
11
|
+
const g = ({
|
|
12
|
+
children: m,
|
|
13
|
+
title: a,
|
|
14
|
+
titleClassName: e,
|
|
15
|
+
wrapperClassName: n,
|
|
16
|
+
...d
|
|
17
|
+
}) => /* @__PURE__ */ o(t, { ...d, children: /* @__PURE__ */ i(f, { className: "overflow-hidden p-0 border-0 !rounded-none", children: [
|
|
18
|
+
/* @__PURE__ */ o(s, { className: r("hidden", e), children: /* @__PURE__ */ o(p, { children: a }) }),
|
|
19
|
+
/* @__PURE__ */ o(
|
|
20
|
+
c,
|
|
21
|
+
{
|
|
22
|
+
className: r(l({ className: n })),
|
|
23
|
+
children: m
|
|
24
|
+
}
|
|
25
|
+
)
|
|
26
|
+
] }) });
|
|
27
|
+
export {
|
|
28
|
+
g as Command,
|
|
29
|
+
R as CommandGroup,
|
|
30
|
+
v as CommandItem,
|
|
31
|
+
G as CommandSeparator
|
|
32
|
+
};
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { c as e } from "../../index-BNmRGtA6.js";
|
|
2
|
+
const r = e([], {
|
|
3
|
+
variants: {
|
|
4
|
+
theme: {
|
|
5
|
+
colony: "",
|
|
6
|
+
kubefirst: "",
|
|
7
|
+
civo: ""
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
defaultVariants: {
|
|
11
|
+
theme: "kubefirst"
|
|
12
|
+
}
|
|
13
|
+
}), o = e(
|
|
14
|
+
[
|
|
15
|
+
"[&_[cmdk-group-heading]]:font-medium",
|
|
16
|
+
"[&_[cmdk-group-heading]]:px-2",
|
|
17
|
+
"[&_[cmdk-group-heading]]:text-muted-foreground",
|
|
18
|
+
"[&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0",
|
|
19
|
+
"[&_[cmdk-group]]:px-2",
|
|
20
|
+
"[&_[cmdk-input-wrapper]_svg]:h-5",
|
|
21
|
+
"[&_[cmdk-input-wrapper]_svg]:w-5",
|
|
22
|
+
"[&_[cmdk-input]]:h-12",
|
|
23
|
+
"[&_[cmdk-item]]:px-2",
|
|
24
|
+
"[&_[cmdk-item]]:py-3",
|
|
25
|
+
"[&_[cmdk-item]_svg]:h-5",
|
|
26
|
+
"[&_[cmdk-item]_svg]:w-5",
|
|
27
|
+
"bg-popover",
|
|
28
|
+
"flex",
|
|
29
|
+
"items-center",
|
|
30
|
+
"justify-center",
|
|
31
|
+
"overflow-hidden",
|
|
32
|
+
"text-popover-foreground",
|
|
33
|
+
"border",
|
|
34
|
+
"rounded-md",
|
|
35
|
+
"border-neutral-900/35",
|
|
36
|
+
"bg-neutral-900/30"
|
|
37
|
+
],
|
|
38
|
+
{
|
|
39
|
+
variants: {
|
|
40
|
+
theme: {
|
|
41
|
+
colony: "",
|
|
42
|
+
kubefirst: "",
|
|
43
|
+
civo: ""
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
defaultVariants: {
|
|
47
|
+
theme: "kubefirst"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
), n = e(
|
|
51
|
+
[
|
|
52
|
+
"bg-transparent",
|
|
53
|
+
"disabled:cursor-not-allowed",
|
|
54
|
+
"disabled:opacity-50",
|
|
55
|
+
"flex",
|
|
56
|
+
"h-10",
|
|
57
|
+
"outline-none",
|
|
58
|
+
"placeholder:text-muted-foreground",
|
|
59
|
+
"py-3",
|
|
60
|
+
"rounded-md",
|
|
61
|
+
"text-sm",
|
|
62
|
+
"w-full",
|
|
63
|
+
"text-white/80"
|
|
64
|
+
],
|
|
65
|
+
{
|
|
66
|
+
variants: {
|
|
67
|
+
theme: {
|
|
68
|
+
colony: "",
|
|
69
|
+
kubefirst: "",
|
|
70
|
+
civo: ""
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
defaultVariants: {
|
|
74
|
+
theme: "kubefirst"
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
), i = e(
|
|
78
|
+
["mr-2", "h-4", "w-4", "shrink-0", "opacity-80", "text-white"],
|
|
79
|
+
{
|
|
80
|
+
variants: {
|
|
81
|
+
theme: {
|
|
82
|
+
colony: "",
|
|
83
|
+
kubefirst: "",
|
|
84
|
+
civo: ""
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
defaultVariants: {
|
|
88
|
+
theme: "kubefirst"
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
);
|
|
92
|
+
export {
|
|
93
|
+
r as commandVariants,
|
|
94
|
+
n as inputVariants,
|
|
95
|
+
i as searchInconInputVariants,
|
|
96
|
+
o as wrapperVariants
|
|
97
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as p } from "react";
|
|
3
|
+
import { V as o } from "../../../index-CzSBQN5S.js";
|
|
4
|
+
const s = p(({ className: r, children: a, ...e }, i) => /* @__PURE__ */ m(o, { ref: i, className: r, ...e, children: /* @__PURE__ */ m("div", { className: "w-[500px]", children: a }) }));
|
|
5
|
+
s.displayName = o.displayName;
|
|
6
|
+
export {
|
|
7
|
+
s as Command
|
|
8
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as p } from "react";
|
|
3
|
+
import { V as m } from "../../../index-CzSBQN5S.js";
|
|
4
|
+
const r = p((t, e) => /* @__PURE__ */ o(
|
|
5
|
+
m.Empty,
|
|
6
|
+
{
|
|
7
|
+
ref: e,
|
|
8
|
+
className: "py-6 text-center text-sm",
|
|
9
|
+
...t
|
|
10
|
+
}
|
|
11
|
+
));
|
|
12
|
+
r.displayName = m.Empty.displayName;
|
|
13
|
+
export {
|
|
14
|
+
r as CommandEmpty
|
|
15
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as p } from "react";
|
|
3
|
+
import { V as o } from "../../../index-CzSBQN5S.js";
|
|
4
|
+
import { cn as a } from "../../../utils/index.js";
|
|
5
|
+
const t = p(({ className: r, ...m }, d) => /* @__PURE__ */ e(
|
|
6
|
+
o.Group,
|
|
7
|
+
{
|
|
8
|
+
ref: d,
|
|
9
|
+
className: a(
|
|
10
|
+
"overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",
|
|
11
|
+
r
|
|
12
|
+
),
|
|
13
|
+
...m
|
|
14
|
+
}
|
|
15
|
+
));
|
|
16
|
+
t.displayName = o.Group.displayName;
|
|
17
|
+
export {
|
|
18
|
+
t as CommandGroup
|
|
19
|
+
};
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { jsxs as y, jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { V as m } from "../../../index-CzSBQN5S.js";
|
|
3
|
+
import s, { forwardRef as u } from "react";
|
|
4
|
+
import { cn as f } from "../../../utils/index.js";
|
|
5
|
+
import { searchInconInputVariants as v, inputVariants as g } from "../Command.variants.js";
|
|
6
|
+
import { P as a } from "../../../index-C5psggHV.js";
|
|
7
|
+
function p() {
|
|
8
|
+
return p = Object.assign || function(r) {
|
|
9
|
+
for (var n = 1; n < arguments.length; n++) {
|
|
10
|
+
var e = arguments[n];
|
|
11
|
+
for (var t in e)
|
|
12
|
+
Object.prototype.hasOwnProperty.call(e, t) && (r[t] = e[t]);
|
|
13
|
+
}
|
|
14
|
+
return r;
|
|
15
|
+
}, p.apply(this, arguments);
|
|
16
|
+
}
|
|
17
|
+
function h(r, n) {
|
|
18
|
+
if (r == null) return {};
|
|
19
|
+
var e = b(r, n), t, o;
|
|
20
|
+
if (Object.getOwnPropertySymbols) {
|
|
21
|
+
var i = Object.getOwnPropertySymbols(r);
|
|
22
|
+
for (o = 0; o < i.length; o++)
|
|
23
|
+
t = i[o], !(n.indexOf(t) >= 0) && Object.prototype.propertyIsEnumerable.call(r, t) && (e[t] = r[t]);
|
|
24
|
+
}
|
|
25
|
+
return e;
|
|
26
|
+
}
|
|
27
|
+
function b(r, n) {
|
|
28
|
+
if (r == null) return {};
|
|
29
|
+
var e = {}, t = Object.keys(r), o, i;
|
|
30
|
+
for (i = 0; i < t.length; i++)
|
|
31
|
+
o = t[i], !(n.indexOf(o) >= 0) && (e[o] = r[o]);
|
|
32
|
+
return e;
|
|
33
|
+
}
|
|
34
|
+
var l = u(function(r, n) {
|
|
35
|
+
var e = r.color, t = e === void 0 ? "currentColor" : e, o = r.size, i = o === void 0 ? 24 : o, d = h(r, ["color", "size"]);
|
|
36
|
+
return /* @__PURE__ */ s.createElement("svg", p({
|
|
37
|
+
ref: n,
|
|
38
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
39
|
+
width: i,
|
|
40
|
+
height: i,
|
|
41
|
+
viewBox: "0 0 24 24",
|
|
42
|
+
fill: "none",
|
|
43
|
+
stroke: t,
|
|
44
|
+
strokeWidth: "2",
|
|
45
|
+
strokeLinecap: "round",
|
|
46
|
+
strokeLinejoin: "round"
|
|
47
|
+
}, d), /* @__PURE__ */ s.createElement("circle", {
|
|
48
|
+
cx: "11",
|
|
49
|
+
cy: "11",
|
|
50
|
+
r: "8"
|
|
51
|
+
}), /* @__PURE__ */ s.createElement("line", {
|
|
52
|
+
x1: "21",
|
|
53
|
+
y1: "21",
|
|
54
|
+
x2: "16.65",
|
|
55
|
+
y2: "16.65"
|
|
56
|
+
}));
|
|
57
|
+
});
|
|
58
|
+
l.propTypes = {
|
|
59
|
+
color: a.string,
|
|
60
|
+
size: a.oneOfType([a.string, a.number])
|
|
61
|
+
};
|
|
62
|
+
l.displayName = "Search";
|
|
63
|
+
const x = u(({ className: r, ...n }, e) => /* @__PURE__ */ y(
|
|
64
|
+
"div",
|
|
65
|
+
{
|
|
66
|
+
className: "flex items-center px-3 border-b border-neutral-900/35",
|
|
67
|
+
"cmdk-input-wrapper": "",
|
|
68
|
+
children: [
|
|
69
|
+
/* @__PURE__ */ c(l, { className: f(v({ className: r })) }),
|
|
70
|
+
/* @__PURE__ */ c(
|
|
71
|
+
m.Input,
|
|
72
|
+
{
|
|
73
|
+
ref: e,
|
|
74
|
+
className: f(g({ className: r })),
|
|
75
|
+
...n
|
|
76
|
+
}
|
|
77
|
+
)
|
|
78
|
+
]
|
|
79
|
+
}
|
|
80
|
+
));
|
|
81
|
+
x.displayName = m.Input.displayName;
|
|
82
|
+
export {
|
|
83
|
+
x as CommandInput
|
|
84
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as i, useContext as p, useCallback as c } from "react";
|
|
3
|
+
import { V as r } from "../../../index-CzSBQN5S.js";
|
|
4
|
+
import { cn as l } from "../../../utils/index.js";
|
|
5
|
+
import { CommandContext as u } from "../contexts/Command.context.js";
|
|
6
|
+
const f = i(({ className: a, onSelect: e, ...s }, o) => {
|
|
7
|
+
const { setOpen: t } = p(u), n = c(
|
|
8
|
+
(m) => {
|
|
9
|
+
e == null || e(m), t(!1);
|
|
10
|
+
},
|
|
11
|
+
[t, e]
|
|
12
|
+
);
|
|
13
|
+
return /* @__PURE__ */ d(
|
|
14
|
+
r.Item,
|
|
15
|
+
{
|
|
16
|
+
ref: o,
|
|
17
|
+
className: l(
|
|
18
|
+
"relative flex cursor-pointer gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
19
|
+
a
|
|
20
|
+
),
|
|
21
|
+
onSelect: n,
|
|
22
|
+
...s
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
});
|
|
26
|
+
f.displayName = r.Item.displayName;
|
|
27
|
+
export {
|
|
28
|
+
f as CommandItem
|
|
29
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as s } from "react";
|
|
3
|
+
import { V as o } from "../../../index-CzSBQN5S.js";
|
|
4
|
+
import { cn as t } from "../../../utils/index.js";
|
|
5
|
+
const e = s(({ className: m, ...r }, a) => /* @__PURE__ */ i(
|
|
6
|
+
o.List,
|
|
7
|
+
{
|
|
8
|
+
ref: a,
|
|
9
|
+
className: t("max-h-[300px] overflow-y-auto overflow-x-hidden", m),
|
|
10
|
+
...r
|
|
11
|
+
}
|
|
12
|
+
));
|
|
13
|
+
e.displayName = o.List.displayName;
|
|
14
|
+
export {
|
|
15
|
+
e as CommandList
|
|
16
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as p } from "react";
|
|
3
|
+
import { V as r } from "../../../index-CzSBQN5S.js";
|
|
4
|
+
import { cn as t } from "../../../utils/index.js";
|
|
5
|
+
const s = p(({ className: o, ...a }, m) => /* @__PURE__ */ e(
|
|
6
|
+
r.Separator,
|
|
7
|
+
{
|
|
8
|
+
ref: m,
|
|
9
|
+
className: t("-mx-1 h-px border-t border-neutral-900/45 mb-2", o),
|
|
10
|
+
...a
|
|
11
|
+
}
|
|
12
|
+
));
|
|
13
|
+
s.displayName = r.Separator.displayName;
|
|
14
|
+
export {
|
|
15
|
+
s as CommandSeparator
|
|
16
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { cn as r } from "../../../utils/index.js";
|
|
3
|
+
const a = ({
|
|
4
|
+
className: t,
|
|
5
|
+
...o
|
|
6
|
+
}) => /* @__PURE__ */ m(
|
|
7
|
+
"span",
|
|
8
|
+
{
|
|
9
|
+
className: r(
|
|
10
|
+
"ml-auto text-xs tracking-widest text-muted-foreground",
|
|
11
|
+
t
|
|
12
|
+
),
|
|
13
|
+
...o
|
|
14
|
+
}
|
|
15
|
+
);
|
|
16
|
+
a.displayName = "CommandShortcut";
|
|
17
|
+
export {
|
|
18
|
+
a as CommandShortcut
|
|
19
|
+
};
|
|
@@ -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
|
+
};
|
|
@@ -1,28 +1,109 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import { loadingVariants as
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
|
10
91
|
}) => {
|
|
11
|
-
const
|
|
12
|
-
return /* @__PURE__ */
|
|
13
|
-
|
|
92
|
+
const { theme: t } = w();
|
|
93
|
+
return /* @__PURE__ */ f(
|
|
94
|
+
y,
|
|
14
95
|
{
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
...
|
|
96
|
+
className: h(
|
|
97
|
+
g({
|
|
98
|
+
className: r,
|
|
99
|
+
theme: e ?? t
|
|
100
|
+
})
|
|
101
|
+
),
|
|
102
|
+
...o
|
|
22
103
|
}
|
|
23
104
|
);
|
|
24
105
|
};
|
|
25
|
-
|
|
106
|
+
N.displayName = "Loading";
|
|
26
107
|
export {
|
|
27
|
-
|
|
108
|
+
N as Loading
|
|
28
109
|
};
|