@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.
Files changed (92) hide show
  1. package/dist/{Combination-BQYb0Gw7.js → Combination-b348x__d.js} +24 -24
  2. package/dist/{Modal-W2GbkC_F.js → Modal-ByNiP7eb.js} +316 -308
  3. package/dist/components/Alert/Alert.js +58 -0
  4. package/dist/components/Alert/Alert.variants.js +77 -0
  5. package/dist/components/AlertDialog/AlertDialog.js +1 -1
  6. package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
  7. package/dist/components/AlertDialog/components/index.js +1 -1
  8. package/dist/components/Autocomplete/components/List/List.js +3 -3
  9. package/dist/components/Breadcrumb/Breadcrumb.js +3 -3
  10. package/dist/components/Breadcrumb/components/Item/Item.js +4 -4
  11. package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +1 -1
  12. package/dist/components/Button/Button.js +1 -1
  13. package/dist/components/Card/Card.js +3 -3
  14. package/dist/components/Checkbox/Checkbox.js +5 -5
  15. package/dist/components/Command/Command.js +32 -0
  16. package/dist/components/Command/Command.variants.js +97 -0
  17. package/dist/components/Command/components/Command.js +8 -0
  18. package/dist/components/Command/components/CommandEmpty.js +15 -0
  19. package/dist/components/Command/components/CommandGroup.js +19 -0
  20. package/dist/components/Command/components/CommandInput.js +84 -0
  21. package/dist/components/Command/components/CommandItem.js +29 -0
  22. package/dist/components/Command/components/CommandList.js +16 -0
  23. package/dist/components/Command/components/CommandSeparator.js +16 -0
  24. package/dist/components/Command/components/CommandShortcut.js +19 -0
  25. package/dist/components/Command/components/DialogContent.js +31 -0
  26. package/dist/components/Command/components/DialogOverlay.js +19 -0
  27. package/dist/components/Command/components/index.js +20 -0
  28. package/dist/components/Command/contexts/Command.context.js +13 -0
  29. package/dist/components/Command/contexts/Command.provider.js +24 -0
  30. package/dist/components/Command/contexts/index.js +6 -0
  31. package/dist/components/Divider/Divider.js +10 -0
  32. package/dist/components/Divider/Divider.variants.js +14 -0
  33. package/dist/components/Loading/Loading.js +109 -0
  34. package/dist/components/Loading/Loading.variants.js +19 -0
  35. package/dist/components/Modal/Modal.js +2 -2
  36. package/dist/components/Modal/components/Body/Body.js +1 -1
  37. package/dist/components/Modal/components/Footer/Footer.js +1 -1
  38. package/dist/components/Modal/components/Header/Header.js +1 -1
  39. package/dist/components/Modal/components/Wrapper/Wrapper.js +3 -3
  40. package/dist/components/Modal/components/index.js +1 -1
  41. package/dist/components/NumberInput/NumberInput.js +1 -1
  42. package/dist/components/ProgressBar/ProgressBar.js +3 -3
  43. package/dist/components/Radio/Radio.js +4 -4
  44. package/dist/components/RadioGroup/RadioGroup.js +1 -1
  45. package/dist/components/Range/Range.js +4 -4
  46. package/dist/components/Sidebar/components/Wrapper/Wrapper.js +3 -3
  47. package/dist/components/Slider/Slider.js +14 -14
  48. package/dist/components/Switch/Switch.js +17 -17
  49. package/dist/components/Tag/Tag.js +17 -5
  50. package/dist/components/Tag/Tag.variants.js +11 -1
  51. package/dist/components/TagSelect/TagSelect.js +6 -71
  52. package/dist/components/TagSelect/TagSelect.variants.js +29 -50
  53. package/dist/components/TagSelect/components/Item/Item.js +23 -0
  54. package/dist/components/TagSelect/components/Item/Item.variants.js +31 -0
  55. package/dist/components/TagSelect/components/List/List.js +13 -0
  56. package/dist/components/TagSelect/components/List/List.variants.js +37 -0
  57. package/dist/components/TagSelect/components/Wrapper/Wrapper.js +88 -0
  58. package/dist/components/TagSelect/components/index.js +8 -0
  59. package/dist/components/TagSelect/contexts/TagSelect.context.js +19 -0
  60. package/dist/components/TagSelect/contexts/TagSelect.hook.js +11 -0
  61. package/dist/components/TagSelect/contexts/TagSelect.provider.js +69 -0
  62. package/dist/components/TagSelect/contexts/index.js +6 -0
  63. package/dist/components/TagSelect/hooks/useTagSelect.js +22 -27
  64. package/dist/components/Toast/Toast.js +11 -11
  65. package/dist/components/Tooltip/Tooltip.js +4 -4
  66. package/dist/components/Typography/Typography.js +31 -0
  67. package/dist/components/Typography/Typography.variants.js +63 -0
  68. package/dist/components/index.js +61 -53
  69. package/dist/{index-BxeV34ij.js → index-4ecjw_Aj.js} +1 -1
  70. package/dist/index-B_6_jmOO.js +68 -0
  71. package/dist/{index-BBjak_0p.js → index-BbsJ0VIJ.js} +2 -2
  72. package/dist/{index-CJsYodgi.js → index-BzaHYXkt.js} +9 -9
  73. package/dist/{index-KEdwcThH.js → index-CbTU3cnP.js} +1 -1
  74. package/dist/{index-8vgf-x5i.js → index-Cva-e5M4.js} +2 -2
  75. package/dist/index-CzSBQN5S.js +432 -0
  76. package/dist/index-D7QNmo_D.js +422 -0
  77. package/dist/index-DUA6Y_AE.js +126 -0
  78. package/dist/{index-CoqDsznq.js → index-D_76wh4w.js} +3 -3
  79. package/dist/{index-D4Q2rMby.js → index-Dj1pom3_.js} +2 -2
  80. package/dist/index-DyKo5ZJT.js +446 -0
  81. package/dist/index.d.ts +52 -3
  82. package/dist/index.js +76 -68
  83. package/dist/package.json +32 -29
  84. package/dist/plugins/konstruct.js +34 -31
  85. package/dist/plugins/utils/animation.styles.js +162 -0
  86. package/dist/plugins/utils/index.js +7 -0
  87. package/dist/styles.css +1 -1
  88. package/dist/{useBreadcrumb-CojbXFVD.js → useBreadcrumb-BsIeMoR1.js} +47 -47
  89. package/package.json +31 -29
  90. package/dist/index-1GLoikpT.js +0 -19134
  91. package/dist/index-BVppSRDQ.js +0 -551
  92. package/dist/index-DoOsnuB6.js +0 -72
@@ -0,0 +1,58 @@
1
+ import { jsx as o, jsxs as m } from "react/jsx-runtime";
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-CbTU3cnP.js";
4
+ import { cn as c } from "../../utils/index.js";
5
+ import { closeButtonVariants as E, alertVariants as T } from "./Alert.variants.js";
6
+ import { useTheme as g } from "../../contexts/theme.hook.js";
7
+ import { X as j } from "../../x-DU-Zw-L_.js";
8
+ const I = ({
9
+ theme: u,
10
+ type: s,
11
+ content: t,
12
+ isVisible: n = !0,
13
+ showCloseButton: d = !1
14
+ }) => {
15
+ const r = V(null), [p, f] = v(n), { theme: h } = g(), l = u ?? h, b = x(
16
+ () => k(t) ? t : /* @__PURE__ */ o("p", { children: t }),
17
+ [t]
18
+ ), C = w(() => {
19
+ const e = r.current;
20
+ e && e.setAttribute("data-state", "hidden");
21
+ }, []);
22
+ return y(() => {
23
+ var i;
24
+ const e = new AbortController();
25
+ return (i = r.current) == null || i.addEventListener(
26
+ "animationend",
27
+ () => {
28
+ var a;
29
+ (a = r.current) == null || a.style.setProperty("display", "none"), f(!1);
30
+ },
31
+ { signal: e.signal }
32
+ ), () => e.abort();
33
+ }, []), p ? /* @__PURE__ */ m(
34
+ "div",
35
+ {
36
+ ref: r,
37
+ className: c(T({ theme: l, type: s, isVisible: n })),
38
+ "data-state": n ? "visible" : "hidden",
39
+ role: "alert",
40
+ "aria-live": "polite",
41
+ children: [
42
+ b,
43
+ d ? /* @__PURE__ */ m("button", { role: "button", onClick: C, children: [
44
+ /* @__PURE__ */ o(
45
+ j,
46
+ {
47
+ className: c(E({ theme: l, type: s }))
48
+ }
49
+ ),
50
+ /* @__PURE__ */ o(A, { children: "Dismiss alert" })
51
+ ] }) : null
52
+ ]
53
+ }
54
+ ) : null;
55
+ };
56
+ export {
57
+ I as Alert
58
+ };
@@ -0,0 +1,77 @@
1
+ import { c as t } from "../../index-BNmRGtA6.js";
2
+ const a = t(
3
+ [
4
+ "relative",
5
+ "border",
6
+ "py-4",
7
+ "px-5",
8
+ "rounded",
9
+ "flex",
10
+ "gap-2",
11
+ "items-center",
12
+ "justify-start",
13
+ "[&>*]:flex",
14
+ "[&>*]:gap-2",
15
+ "[&>*]:items-center",
16
+ "[&>*]:justify-start",
17
+ "text-sm",
18
+ "shadow-sm",
19
+ "duration-300",
20
+ "data-[state=hidden]:animate-out",
21
+ "data-[state=hidden]:fade-out-0",
22
+ "data-[state=hidden]:zoom-out-95"
23
+ ],
24
+ {
25
+ variants: {
26
+ theme: {
27
+ kubefirst: "",
28
+ colony: "",
29
+ civo: ""
30
+ },
31
+ type: {
32
+ sucess: "",
33
+ info: [
34
+ "border-blue-100",
35
+ "bg-blue-50",
36
+ "text-zinc-700",
37
+ "[&>*>svg]:text-blue-600",
38
+ "shadow-blue-50/40"
39
+ ],
40
+ warning: "",
41
+ danger: ""
42
+ },
43
+ isVisible: {
44
+ true: "",
45
+ false: "hidden"
46
+ }
47
+ },
48
+ defaultVariants: {
49
+ theme: "kubefirst",
50
+ isVisible: !0
51
+ }
52
+ }
53
+ ), s = t(
54
+ ["w-4", "h-4", "absolute", "right-2", "top-2", "text-inherit"],
55
+ {
56
+ variants: {
57
+ theme: {
58
+ kubefirst: "",
59
+ colony: "",
60
+ civo: ""
61
+ },
62
+ type: {
63
+ sucess: "",
64
+ info: ["text-blue-600"],
65
+ warning: "",
66
+ danger: ""
67
+ }
68
+ },
69
+ defaultVariants: {
70
+ theme: "kubefirst"
71
+ }
72
+ }
73
+ );
74
+ export {
75
+ a as alertVariants,
76
+ s as closeButtonVariants
77
+ };
@@ -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-BVppSRDQ.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-BVppSRDQ.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-BVppSRDQ.js";
1
+ import { A as g } from "../../../index-DUA6Y_AE.js";
2
2
  export {
3
3
  g as AlertDialogTrigger
4
4
  };
@@ -1,7 +1,7 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
2
  import { useRef as u } from "react";
3
3
  import { cn as l } from "../../../../utils/index.js";
4
- import { emptyListVariants as b, listVariants as N, listItemVariants as d, buttonVariants as x } from "./List.variants.js";
4
+ import { emptyListVariants as b, buttonVariants as N, listItemVariants as d, listVariants as x } from "./List.variants.js";
5
5
  import { useNavigationUlList as V } from "../../hooks/useNavigationList.js";
6
6
  const R = ({
7
7
  className: e,
@@ -32,7 +32,7 @@ const R = ({
32
32
  {
33
33
  ref: n,
34
34
  role: "listbox",
35
- className: l(N({ variant: t, theme: r, className: e })),
35
+ className: l(x({ variant: t, theme: r, className: e })),
36
36
  children: o.map(({ value: i }) => /* @__PURE__ */ s(
37
37
  "li",
38
38
  {
@@ -44,7 +44,7 @@ const R = ({
44
44
  {
45
45
  type: "button",
46
46
  role: "button",
47
- className: l(x({ theme: r, variant: t })),
47
+ className: l(N({ theme: r, variant: t })),
48
48
  onClick: () => p(i),
49
49
  children: i
50
50
  }
@@ -1,7 +1,7 @@
1
1
  import { jsx as a, jsxs as y } from "react/jsx-runtime";
2
2
  import d, { forwardRef as O, useId as j, Fragment as w } from "react";
3
3
  import { cn as c } from "../../utils/index.js";
4
- import { breadcrumbWrapperVariants as x, breadcrumbVariants as P, chevronVariants as T } from "./Breadcrumb.variants.js";
4
+ import { chevronVariants as x, breadcrumbVariants as P, breadcrumbWrapperVariants as T } from "./Breadcrumb.variants.js";
5
5
  import { Item as k } from "./components/Item/Item.js";
6
6
  import { P as s } from "../../index-C5psggHV.js";
7
7
  import { useTheme as N } from "../../contexts/theme.hook.js";
@@ -69,7 +69,7 @@ const V = ({
69
69
  {
70
70
  "aria-label": o,
71
71
  className: c(
72
- x({
72
+ T({
73
73
  className: i,
74
74
  theme: m
75
75
  })
@@ -95,7 +95,7 @@ const V = ({
95
95
  u !== r.length - 1 && /* @__PURE__ */ a("li", { "aria-hidden": "true", children: /* @__PURE__ */ a(
96
96
  p,
97
97
  {
98
- className: c(T({ size: n, theme: m }))
98
+ className: c(x({ size: n, theme: m }))
99
99
  }
100
100
  ) })
101
101
  ] }, `${g}-${f}`))
@@ -1,7 +1,7 @@
1
1
  import { jsx as r, Fragment as p } from "react/jsx-runtime";
2
2
  import { cn as n } from "../../../../utils/index.js";
3
- import { u as b, L as k } from "../../../../useBreadcrumb-CojbXFVD.js";
4
- import { breadcrumbItemVariants as L, breadcrumbLinkVariants as c, breadcrumbLabelVariants as N } from "./Item.variants.js";
3
+ import { u as b, L as k } from "../../../../useBreadcrumb-BsIeMoR1.js";
4
+ import { breadcrumbLinkVariants as c, breadcrumbLabelVariants as L, breadcrumbItemVariants as N } from "./Item.variants.js";
5
5
  import { useTheme as x } from "../../../../contexts/theme.hook.js";
6
6
  const j = ({
7
7
  isActive: e,
@@ -19,7 +19,7 @@ const j = ({
19
19
  "li",
20
20
  {
21
21
  "aria-current": o ? "page" : void 0,
22
- className: n(L({ theme: m, size: d })),
22
+ className: n(N({ theme: m, size: d })),
23
23
  children: a ? /* @__PURE__ */ r(p, { children: u ? /* @__PURE__ */ r(
24
24
  k,
25
25
  {
@@ -48,7 +48,7 @@ const j = ({
48
48
  "span",
49
49
  {
50
50
  className: n(
51
- N({ theme: m, isActive: e })
51
+ L({ theme: m, isActive: e })
52
52
  ),
53
53
  children: s
54
54
  }
@@ -1,4 +1,4 @@
1
- import { u } from "../../../useBreadcrumb-CojbXFVD.js";
1
+ import { u } from "../../../useBreadcrumb-BsIeMoR1.js";
2
2
  export {
3
3
  u as useBreadcrumb
4
4
  };
@@ -1,6 +1,6 @@
1
1
  import { jsx as h } from "react/jsx-runtime";
2
2
  import { forwardRef as c } from "react";
3
- import { S as u } from "../../index-DoOsnuB6.js";
3
+ import { S as u } from "../../index-B_6_jmOO.js";
4
4
  import { cn as l } from "../../utils/index.js";
5
5
  import { buttonVariants as x } from "./Button.variants.js";
6
6
  import { useTheme as T } from "../../contexts/theme.hook.js";
@@ -1,7 +1,7 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
2
  import { forwardRef as f } from "react";
3
3
  import { cn as t } from "../../utils/index.js";
4
- import { cardBaseVariants as n, cardVariants as p } from "./Card.variants.js";
4
+ import { cardVariants as n, cardBaseVariants as p } from "./Card.variants.js";
5
5
  import { useTheme as h } from "../../contexts/theme.hook.js";
6
6
  const l = f(
7
7
  ({ className: s, theme: r, isActive: m, canHover: a, wrapperClassName: d, ...i }, c) => {
@@ -10,7 +10,7 @@ const l = f(
10
10
  "div",
11
11
  {
12
12
  className: t(
13
- n({
13
+ p({
14
14
  canHover: a,
15
15
  className: d,
16
16
  isActive: m,
@@ -22,7 +22,7 @@ const l = f(
22
22
  {
23
23
  ref: c,
24
24
  className: t(
25
- p({
25
+ n({
26
26
  className: s,
27
27
  theme: r ?? e,
28
28
  isActive: m,
@@ -1,11 +1,11 @@
1
1
  import { jsxs as S, jsx as f } from "react/jsx-runtime";
2
2
  import * as u from "react";
3
3
  import j, { forwardRef as _, useId as A, useCallback as H } from "react";
4
- import { u as K } from "../../index-DoOsnuB6.js";
5
- import { a as W, d as I, c as $ } from "../../index-8vgf-x5i.js";
6
- import { u as q, a as F } from "../../index-BxeV34ij.js";
7
- import { P as V } from "../../index-D4Q2rMby.js";
8
- import { P as T } from "../../index-1GLoikpT.js";
4
+ import { u as K } from "../../index-B_6_jmOO.js";
5
+ import { a as W, c as $, b as I } from "../../index-Cva-e5M4.js";
6
+ import { u as q, a as F } from "../../index-4ecjw_Aj.js";
7
+ import { P as V } from "../../index-Dj1pom3_.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
+ };