@konstructio/ui 0.0.12-alpha.2 → 0.0.12-alpha.21

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.
Files changed (93) hide show
  1. package/dist/{Modal-DZUwNzSW.js → Modal-B-E9uaA6.js} +354 -346
  2. package/dist/components/Alert/Alert.js +1 -1
  3. package/dist/components/AlertDialog/AlertDialog.js +1 -1
  4. package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
  5. package/dist/components/AlertDialog/components/index.js +1 -1
  6. package/dist/components/Autocomplete/Autocomplete.variants.js +0 -1
  7. package/dist/components/Breadcrumb/Breadcrumb.variants.js +18 -15
  8. package/dist/components/Checkbox/Checkbox.js +1 -1
  9. package/dist/components/Command/Command.js +32 -0
  10. package/dist/components/Command/Command.variants.js +97 -0
  11. package/dist/components/Command/components/Command.js +8 -0
  12. package/dist/components/Command/components/CommandEmpty.js +15 -0
  13. package/dist/components/Command/components/CommandGroup.js +19 -0
  14. package/dist/components/Command/components/CommandInput.js +84 -0
  15. package/dist/components/Command/components/CommandItem.js +29 -0
  16. package/dist/components/Command/components/CommandList.js +16 -0
  17. package/dist/components/Command/components/CommandSeparator.js +16 -0
  18. package/dist/components/Command/components/CommandShortcut.js +19 -0
  19. package/dist/components/Command/components/DialogContent.js +31 -0
  20. package/dist/components/Command/components/DialogOverlay.js +19 -0
  21. package/dist/components/Command/components/index.js +20 -0
  22. package/dist/components/Command/contexts/Command.context.js +13 -0
  23. package/dist/components/Command/contexts/Command.provider.js +24 -0
  24. package/dist/components/Command/contexts/index.js +6 -0
  25. package/dist/components/Dropdown/Dropdown.js +6 -6
  26. package/dist/components/Dropdown/Dropdown.variants.js +22 -3
  27. package/dist/components/Dropdown/components/List/List.js +42 -16
  28. package/dist/components/Dropdown/components/List/List.variants.js +7 -5
  29. package/dist/components/Dropdown/components/ListItem/ListItem.js +26 -21
  30. package/dist/components/Dropdown/components/ListItem/ListItem.variants.js +6 -4
  31. package/dist/components/Dropdown/components/Wrapper.js +97 -63
  32. package/dist/components/Dropdown/contexts/dropdown.context.js +1 -1
  33. package/dist/components/Dropdown/contexts/dropdown.provider.js +9 -9
  34. package/dist/components/Input/Input.js +112 -67
  35. package/dist/components/Input/Input.variants.js +5 -6
  36. package/dist/components/Loading/Loading.js +102 -21
  37. package/dist/components/Loading/Loading.variants.js +13 -14
  38. package/dist/components/Modal/Modal.js +3 -3
  39. package/dist/components/Modal/components/Wrapper/Wrapper.js +3 -4
  40. package/dist/components/Modal/components/index.js +1 -1
  41. package/dist/components/NumberInput/NumberInput.js +88 -88
  42. package/dist/components/NumberInput/NumberInput.variants.js +23 -19
  43. package/dist/components/Range/Range.js +1 -1
  44. package/dist/components/Sidebar/Sidebar.variants.js +2 -1
  45. package/dist/components/Sidebar/components/Logo/Logo.variants.js +9 -17
  46. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.variants.js +2 -2
  47. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.js +6 -5
  48. package/dist/components/Slider/Slider.js +1 -1
  49. package/dist/components/Switch/Switch.js +99 -101
  50. package/dist/components/Switch/Switch.variants.js +4 -4
  51. package/dist/components/Table/Table.js +31 -0
  52. package/dist/components/Table/Table.variants.js +78 -0
  53. package/dist/components/Table/components/Body.js +28 -0
  54. package/dist/components/Table/components/Filter.js +9 -0
  55. package/dist/components/Table/components/Head.js +28 -0
  56. package/dist/components/Table/components/Row.js +34 -0
  57. package/dist/components/Tag/Tag.js +17 -5
  58. package/dist/components/Tag/Tag.variants.js +11 -1
  59. package/dist/components/TagSelect/TagSelect.js +6 -71
  60. package/dist/components/TagSelect/TagSelect.variants.js +29 -50
  61. package/dist/components/TagSelect/components/Item/Item.js +23 -0
  62. package/dist/components/TagSelect/components/Item/Item.variants.js +31 -0
  63. package/dist/components/TagSelect/components/List/List.js +13 -0
  64. package/dist/components/TagSelect/components/List/List.variants.js +37 -0
  65. package/dist/components/TagSelect/components/Wrapper/Wrapper.js +88 -0
  66. package/dist/components/TagSelect/components/index.js +8 -0
  67. package/dist/components/TagSelect/contexts/TagSelect.context.js +19 -0
  68. package/dist/components/TagSelect/contexts/TagSelect.hook.js +11 -0
  69. package/dist/components/TagSelect/contexts/TagSelect.provider.js +69 -0
  70. package/dist/components/TagSelect/contexts/index.js +6 -0
  71. package/dist/components/TagSelect/hooks/useTagSelect.js +22 -27
  72. package/dist/components/TextArea/TextArea.js +28 -22
  73. package/dist/components/TextArea/TextArea.variants.js +0 -1
  74. package/dist/components/Toast/Toast.js +141 -128
  75. package/dist/components/Toast/Toast.variants.js +2 -3
  76. package/dist/components/Typography/Typography.js +23 -22
  77. package/dist/components/Typography/Typography.variants.js +49 -22
  78. package/dist/components/index.js +22 -20
  79. package/dist/{index-C6WtlN_F.js → index-BzaHYXkt.js} +1 -1
  80. package/dist/{index-Z1voPZOH.js → index-CbTU3cnP.js} +1 -1
  81. package/dist/index-CzSBQN5S.js +432 -0
  82. package/dist/index-D7QNmo_D.js +422 -0
  83. package/dist/index-DUA6Y_AE.js +126 -0
  84. package/dist/{index-B33at13_.js → index-D_76wh4w.js} +1 -1
  85. package/dist/index-DyKo5ZJT.js +446 -0
  86. package/dist/index.d.ts +85 -17
  87. package/dist/index.js +18 -16
  88. package/dist/package.json +26 -24
  89. package/dist/styles.css +1 -1
  90. package/dist/utils/index.js +320 -322
  91. package/package.json +26 -24
  92. package/dist/index-3jTPaVvh.js +0 -551
  93. package/dist/index-BTeAm7mx.js +0 -19133
@@ -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-Z1voPZOH.js";
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-3jTPaVvh.js";
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";
@@ -1,5 +1,5 @@
1
1
  import "react/jsx-runtime";
2
- import { A as p } from "../../../index-3jTPaVvh.js";
2
+ import { A as p } from "../../../index-DUA6Y_AE.js";
3
3
  import "../../Button/Button.js";
4
4
  import "../../../contexts/theme.hook.js";
5
5
  export {
@@ -1,4 +1,4 @@
1
- import { A as g } from "../../../index-3jTPaVvh.js";
1
+ import { A as g } from "../../../index-DUA6Y_AE.js";
2
2
  export {
3
3
  g as AlertDialogTrigger
4
4
  };
@@ -7,7 +7,6 @@ const r = e(
7
7
  "border",
8
8
  "border-zinc-200",
9
9
  "bg-transparent",
10
- "text-base",
11
10
  "text-zinc-700",
12
11
  "transition-colors",
13
12
  "placeholder:text-muted-foreground",
@@ -1,22 +1,25 @@
1
1
  import { c as e } from "../../index-BNmRGtA6.js";
2
- const a = e(["text-slate-500"], {
3
- variants: {
4
- theme: {
5
- kubefirst: "",
6
- colony: "",
7
- civo: ""
2
+ const a = e(
3
+ ["text-slate-500", "cursor-pointer"],
4
+ {
5
+ variants: {
6
+ theme: {
7
+ kubefirst: "",
8
+ colony: "",
9
+ civo: ""
10
+ },
11
+ size: {
12
+ sm: "",
13
+ base: "",
14
+ lg: "",
15
+ xl: ""
16
+ }
8
17
  },
9
- size: {
10
- sm: "",
11
- base: "",
12
- lg: "",
13
- xl: ""
18
+ defaultVariants: {
19
+ theme: "kubefirst"
14
20
  }
15
- },
16
- defaultVariants: {
17
- theme: "kubefirst"
18
21
  }
19
- }), s = e(["flex", "gap-1", "items-center"], {
22
+ ), s = e(["flex", "gap-1", "items-center"], {
20
23
  variants: {
21
24
  theme: {
22
25
  kubefirst: "",
@@ -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-BTeAm7mx.js";
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
+ };
@@ -0,0 +1,6 @@
1
+ import { CommandContext as r } from "./Command.context.js";
2
+ import { CommandProvider as t } from "./Command.provider.js";
3
+ export {
4
+ r as CommandContext,
5
+ t as CommandProvider
6
+ };
@@ -1,8 +1,8 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import { forwardRef as f } from "react";
3
- import { DropdownProvider as i } from "./contexts/dropdown.provider.js";
4
- import { Wrapper as t } from "./components/Wrapper.js";
5
- const a = f(({ onChange: o, ...p }, m) => /* @__PURE__ */ r(i, { onChange: o, children: /* @__PURE__ */ r(t, { ref: m, ...p }) }));
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { forwardRef as t } from "react";
3
+ import { DropdownProvider as d } from "./contexts/dropdown.provider.js";
4
+ import { Wrapper as e } from "./components/Wrapper.js";
5
+ const x = t(({ onChange: p, value: m, name: r, ...f }, i) => /* @__PURE__ */ o(d, { onChange: p, value: m, name: r, children: /* @__PURE__ */ o(e, { name: r, ref: i, ...f }) }));
6
6
  export {
7
- a as Dropdown
7
+ x as Dropdown
8
8
  };
@@ -1,5 +1,5 @@
1
1
  import { c as e } from "../../index-BNmRGtA6.js";
2
- const a = e(
2
+ const t = e(
3
3
  [
4
4
  "border",
5
5
  "cursor-pointer",
@@ -13,7 +13,8 @@ const a = e(
13
13
  "rounded-md",
14
14
  "transition-all",
15
15
  "w-full",
16
- "outline-none"
16
+ "outline-none",
17
+ "h-9"
17
18
  ],
18
19
  {
19
20
  variants: {
@@ -35,7 +36,25 @@ const a = e(
35
36
  theme: "kubefirst"
36
37
  }
37
38
  }
39
+ ), a = e(
40
+ [
41
+ "mb-1",
42
+ "cursor-pointer",
43
+ "text-[14px]",
44
+ "leading-[20px]",
45
+ "tracking-[0.1px]"
46
+ ],
47
+ {
48
+ variants: {
49
+ theme: {
50
+ kubefirst: "",
51
+ colony: "",
52
+ civo: ""
53
+ }
54
+ }
55
+ }
38
56
  );
39
57
  export {
40
- a as dropdownVariants
58
+ t as dropdownVariants,
59
+ a as labelVariants
41
60
  };