@agentero/design-system 0.31.3 → 0.31.5

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.
@@ -2,9 +2,9 @@
2
2
  import { IconSearch as e } from "./icons.js";
3
3
  import { tv as t } from "tailwind-variants";
4
4
  import { jsx as n, jsxs as r } from "react/jsx-runtime";
5
- import { Command as i } from "cmdk";
5
+ import { Command as i, useCommandState as a } from "cmdk";
6
6
  //#region src/command/command.tsx
7
- var a = t({ slots: {
7
+ var o = t({ slots: {
8
8
  root: ["overflow-hidden rounded-md bg-bg-default-base-primary shadow-xl", "border border-border-default-base-primary"],
9
9
  search: ["flex items-center gap-2 px-4 py-3", "border-b border-border-default-base-primary"],
10
10
  searchIcon: "shrink-0 pointer-events-none [&>path]:fill-icon-default-base-tertiary",
@@ -18,48 +18,49 @@ var a = t({ slots: {
18
18
  "data-[disabled=true]:cursor-default data-[disabled=true]:text-text-default-disable-primary",
19
19
  "data-[disabled=true]:hover:bg-transparent data-[disabled=true]:data-[selected=true]:bg-transparent"
20
20
  ]
21
- } }), o = a(), s = ({ className: e, ...t }) => /* @__PURE__ */ n(i, {
21
+ } }), s = o(), c = ({ className: e, ...t }) => /* @__PURE__ */ n(i, {
22
22
  "data-slot": "command-root",
23
- className: o.root({ className: e }),
23
+ className: s.root({ className: e }),
24
24
  ...t
25
25
  });
26
- s.displayName = "Command.Root";
27
- var c = ({ className: t, ...a }) => /* @__PURE__ */ r("div", {
26
+ c.displayName = "Command.Root";
27
+ var l = ({ className: t, ...a }) => /* @__PURE__ */ r("div", {
28
28
  "data-slot": "command-search",
29
- className: o.search({ className: t }),
29
+ className: s.search({ className: t }),
30
30
  children: [/* @__PURE__ */ n(e, {
31
31
  "data-slot": "command-search-icon",
32
- className: o.searchIcon(),
32
+ className: s.searchIcon(),
33
33
  "aria-hidden": !0
34
34
  }), /* @__PURE__ */ n(i.Input, {
35
35
  "data-slot": "command-input",
36
- className: o.input(),
36
+ className: s.input(),
37
37
  ...a
38
38
  })]
39
39
  });
40
- c.displayName = "Command.Input";
41
- var l = ({ className: e, ...t }) => /* @__PURE__ */ n(i.List, {
40
+ l.displayName = "Command.Input";
41
+ var u = ({ className: e, ...t }) => /* @__PURE__ */ n(i.List, {
42
42
  "data-slot": "command-list",
43
- className: o.list({ className: e }),
43
+ className: s.list({ className: e }),
44
44
  ...t
45
45
  });
46
- l.displayName = "Command.List";
47
- var u = ({ className: e, ...t }) => /* @__PURE__ */ n(i.Empty, {
46
+ u.displayName = "Command.List";
47
+ var d = ({ className: e, ...t }) => /* @__PURE__ */ n(i.Empty, {
48
48
  "data-slot": "command-empty",
49
- className: o.empty({ className: e }),
49
+ className: s.empty({ className: e }),
50
50
  ...t
51
51
  });
52
- u.displayName = "Command.Empty";
53
- var d = (e) => /* @__PURE__ */ n(i.Group, {
52
+ d.displayName = "Command.Empty";
53
+ var f = (e) => /* @__PURE__ */ n(i.Group, {
54
54
  "data-slot": "command-group",
55
55
  ...e
56
56
  });
57
- d.displayName = "Command.Group";
58
- var f = ({ className: e, ...t }) => /* @__PURE__ */ n(i.Item, {
57
+ f.displayName = "Command.Group";
58
+ var p = ({ className: e, ...t }) => /* @__PURE__ */ n(i.Item, {
59
59
  "data-slot": "command-item",
60
- className: o.item({ className: e }),
60
+ className: s.item({ className: e }),
61
61
  ...t
62
62
  });
63
- f.displayName = "Command.Item";
63
+ p.displayName = "Command.Item";
64
+ var m = (e) => a(e);
64
65
  //#endregion
65
- export { u as Empty, d as Group, c as Input, f as Item, l as List, s as Root, a as commandRecipe };
66
+ export { d as Empty, f as Group, l as Input, p as Item, u as List, c as Root, o as commandRecipe, m as useCommandState };
@@ -1,4 +1,5 @@
1
- export { commandRecipe } from './command';
1
+ export { commandRecipe, useCommandState } from './command';
2
+ export type { CommandState } from './command';
2
3
  export declare const Command: {
3
4
  Root: {
4
5
  ({ className, ...props }: {
@@ -1,6 +1,6 @@
1
- import { Empty as e, Group as t, Input as n, Item as r, List as i, Root as a, commandRecipe as o } from "./command.js";
1
+ import { Empty as e, Group as t, Input as n, Item as r, List as i, Root as a, commandRecipe as o, useCommandState as s } from "./command.js";
2
2
  //#region src/command/index.ts
3
- var s = {
3
+ var c = {
4
4
  Root: a,
5
5
  Input: n,
6
6
  List: i,
@@ -9,4 +9,4 @@ var s = {
9
9
  Item: r
10
10
  };
11
11
  //#endregion
12
- export { s as Command, o as commandRecipe };
12
+ export { c as Command, o as commandRecipe, s as useCommandState };