@agentero/design-system 0.31.3 → 0.31.4

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.
@@ -594,7 +594,7 @@
594
594
  <main>
595
595
  <div class="wrap">
596
596
  <div class="note ok" style="margin-bottom: 16px;">
597
- Using <code>react-component-meta</code>. Generation took <strong>3.7s</strong>.
597
+ Using <code>react-component-meta</code>. Generation took <strong>2.7s</strong>.
598
598
  </div>
599
599
  <h2 class="section-title">Components</h2>
600
600
  <div class="grid" role="list">
@@ -9414,6 +9414,6 @@
9414
9414
  },
9415
9415
  "meta": {
9416
9416
  "docgen": "react-component-meta",
9417
- "durationMs": 3657
9417
+ "durationMs": 2741
9418
9418
  }
9419
9419
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentero/design-system",
3
- "version": "0.31.3",
3
+ "version": "0.31.4",
4
4
  "description": "A React component library built with Tailwind CSS v4 and Radix UI primitives",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -1,24 +1,15 @@
1
1
  "use client";
2
2
  import { cn as e } from "../../lib/utils.js";
3
3
  import { useMergeProps as t } from "../../lib/merge-props.js";
4
- import { ComboboxRoot as n } from "../../node_modules/@base-ui/react/combobox/root/ComboboxRoot.js";
5
- import { ComboboxInput as r } from "../../node_modules/@base-ui/react/combobox/input/ComboboxInput.js";
6
- import { ComboboxList as i } from "../../node_modules/@base-ui/react/combobox/list/ComboboxList.js";
7
- import { ComboboxStatus as a } from "../../node_modules/@base-ui/react/combobox/status/ComboboxStatus.js";
8
- import { ComboboxPortal as o } from "../../node_modules/@base-ui/react/combobox/portal/ComboboxPortal.js";
9
- import { ComboboxPositioner as s } from "../../node_modules/@base-ui/react/combobox/positioner/ComboboxPositioner.js";
10
- import { ComboboxPopup as c } from "../../node_modules/@base-ui/react/combobox/popup/ComboboxPopup.js";
11
- import { ComboboxItem as l } from "../../node_modules/@base-ui/react/combobox/item/ComboboxItem.js";
12
- import { ComboboxEmpty as u } from "../../node_modules/@base-ui/react/combobox/empty/ComboboxEmpty.js";
13
- import { ComboboxClear as d } from "../../node_modules/@base-ui/react/combobox/clear/ComboboxClear.js";
14
- import { InputContext as f } from "../input/context.js";
15
- import { inputRecipe as p } from "../input/input.js";
16
- import { IconCancel as m } from "./icons.js";
17
- import { tv as h } from "tailwind-variants";
18
- import { use as g } from "react";
19
- import { jsx as _, jsxs as v } from "react/jsx-runtime";
4
+ import { InputContext as n } from "../input/context.js";
5
+ import { inputRecipe as r } from "../input/input.js";
6
+ import { IconCancel as i } from "./icons.js";
7
+ import { tv as a } from "tailwind-variants";
8
+ import { use as o } from "react";
9
+ import { jsx as s, jsxs as c } from "react/jsx-runtime";
10
+ import { Combobox as l } from "@base-ui/react/combobox";
20
11
  //#region src/combobox/combobox.tsx
21
- var y = h({ slots: {
12
+ var u = a({ slots: {
22
13
  field: "relative",
23
14
  clear: [
24
15
  "absolute top-1/2 right-3 flex size-6 -translate-y-1/2 cursor-pointer items-center",
@@ -43,76 +34,76 @@ var y = h({ slots: {
43
34
  "data-disabled:cursor-default data-disabled:text-text-default-base-tertiary"
44
35
  ],
45
36
  message: ["mx-2 my-px px-3 py-2 text-sm text-text-default-base-tertiary", "empty:m-0 empty:p-0"]
46
- } }), b = y(), x = (e) => /* @__PURE__ */ _(n, { ...e });
47
- x.displayName = "Combobox.Root";
48
- var S = /* @__PURE__ */ new Set([
37
+ } }), d = u(), f = (e) => /* @__PURE__ */ s(l.Root, { ...e });
38
+ f.displayName = "Combobox.Root";
39
+ var p = /* @__PURE__ */ new Set([
49
40
  "value",
50
41
  "defaultValue",
51
42
  "onChange"
52
- ]), C = (e) => {
53
- let n = g(f), r = n ? Object.fromEntries(Object.entries(n).filter(([e]) => !S.has(e))) : null;
54
- return t(r, e);
55
- }, w = ({ clearLabel: t = "Clear", ...n }) => {
56
- let { className: i, size: a = "md", ...o } = C(n);
57
- return /* @__PURE__ */ v("div", {
43
+ ]), m = (e) => {
44
+ let r = o(n), i = r ? Object.fromEntries(Object.entries(r).filter(([e]) => !p.has(e))) : null;
45
+ return t(i, e);
46
+ }, h = ({ clearLabel: t = "Clear", ...n }) => {
47
+ let { className: a, size: o = "md", ...u } = m(n);
48
+ return /* @__PURE__ */ c("div", {
58
49
  "data-slot": "combobox-field",
59
- className: b.field(),
60
- children: [/* @__PURE__ */ _(r, {
50
+ className: d.field(),
51
+ children: [/* @__PURE__ */ s(l.Input, {
61
52
  "data-slot": "combobox-input",
62
- "data-size": a,
63
- className: e(p({ size: a }), "pr-11", i),
64
- ...o
65
- }), /* @__PURE__ */ _(d, {
53
+ "data-size": o,
54
+ className: e(r({ size: o }), "pr-11", a),
55
+ ...u
56
+ }), /* @__PURE__ */ s(l.Clear, {
66
57
  "data-slot": "combobox-clear",
67
58
  "aria-label": t,
68
- className: b.clear(),
69
- children: /* @__PURE__ */ _(m, {})
59
+ className: d.clear(),
60
+ children: /* @__PURE__ */ s(i, {})
70
61
  })]
71
62
  });
72
63
  };
73
- w.displayName = "Combobox.Input";
74
- var T = ({ className: t, side: n = "bottom", align: r = "start", sideOffset: i = 12, alignOffset: a, anchor: l, collisionPadding: u = 8, ...d }) => /* @__PURE__ */ _(o, { children: /* @__PURE__ */ _(s, {
64
+ h.displayName = "Combobox.Input";
65
+ var g = ({ className: t, side: n = "bottom", align: r = "start", sideOffset: i = 12, alignOffset: a, anchor: o, collisionPadding: c = 8, ...u }) => /* @__PURE__ */ s(l.Portal, { children: /* @__PURE__ */ s(l.Positioner, {
75
66
  side: n,
76
67
  align: r,
77
68
  sideOffset: i,
78
69
  alignOffset: a,
79
- anchor: l,
80
- collisionPadding: u,
70
+ anchor: o,
71
+ collisionPadding: c,
81
72
  className: "isolate z-(--z-index-top-layer) pointer-events-auto",
82
- children: /* @__PURE__ */ _(c, {
73
+ children: /* @__PURE__ */ s(l.Popup, {
83
74
  "data-slot": "combobox-content",
84
- className: e(b.content(), t),
85
- ...d
75
+ className: e(d.content(), t),
76
+ ...u
86
77
  })
87
78
  }) });
88
- T.displayName = "Combobox.Content";
89
- var E = ({ className: t, ...n }) => {
79
+ g.displayName = "Combobox.Content";
80
+ var _ = ({ className: t, ...n }) => {
90
81
  let r = "aria-label" in n || "aria-labelledby" in n;
91
- return /* @__PURE__ */ _(i, {
82
+ return /* @__PURE__ */ s(l.List, {
92
83
  "data-slot": "combobox-list",
93
84
  "aria-label": r ? void 0 : "Suggestions",
94
- className: e(b.list(), t),
85
+ className: e(d.list(), t),
95
86
  ...n
96
87
  });
97
88
  };
98
- E.displayName = "Combobox.List";
99
- var D = ({ className: t, ...n }) => /* @__PURE__ */ _(l, {
89
+ _.displayName = "Combobox.List";
90
+ var v = ({ className: t, ...n }) => /* @__PURE__ */ s(l.Item, {
100
91
  "data-slot": "combobox-item",
101
- className: e(b.item(), t),
92
+ className: e(d.item(), t),
102
93
  ...n
103
94
  });
104
- D.displayName = "Combobox.Item";
105
- var O = ({ className: t, ...n }) => /* @__PURE__ */ _(u, {
95
+ v.displayName = "Combobox.Item";
96
+ var y = ({ className: t, ...n }) => /* @__PURE__ */ s(l.Empty, {
106
97
  "data-slot": "combobox-empty",
107
- className: e(b.message(), t),
98
+ className: e(d.message(), t),
108
99
  ...n
109
100
  });
110
- O.displayName = "Combobox.Empty";
111
- var k = ({ className: t, ...n }) => /* @__PURE__ */ _(a, {
101
+ y.displayName = "Combobox.Empty";
102
+ var b = ({ className: t, ...n }) => /* @__PURE__ */ s(l.Status, {
112
103
  "data-slot": "combobox-status",
113
- className: e(b.message(), t),
104
+ className: e(d.message(), t),
114
105
  ...n
115
106
  });
116
- k.displayName = "Combobox.Status";
107
+ b.displayName = "Combobox.Status";
117
108
  //#endregion
118
- export { T as Content, O as Empty, w as Input, D as Item, E as List, x as Root, k as Status, y as comboboxRecipe };
109
+ export { g as Content, y as Empty, h as Input, v as Item, _ as List, f as Root, b as Status, u as comboboxRecipe };