@chaibuilder/sdk 2.2.3 → 2.2.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.
Files changed (35) hide show
  1. package/dist/CodeEditor-B7r9YjDC.cjs +1 -0
  2. package/dist/CodeEditor-HKrlrH8b.js +71 -0
  3. package/dist/core.cjs +5 -5
  4. package/dist/core.d.ts +3 -4
  5. package/dist/core.js +4355 -4390
  6. package/dist/get-chai-builder-theme-ByeXCyGx.js +12 -0
  7. package/dist/get-chai-builder-theme-CeaKvOZ8.cjs +1 -0
  8. package/dist/mockServiceWorker.js +1 -1
  9. package/dist/plugin-C01tjI6V.cjs +22 -0
  10. package/dist/{chai-theme-helpers-CfZwxV6S.js → plugin-fnBB3TCm.js} +111 -99
  11. package/dist/render-chai-blocks-6SVNwoLW.js +201 -0
  12. package/dist/render-chai-blocks-Bvl2_fRE.cjs +1 -0
  13. package/dist/render.cjs +2 -2
  14. package/dist/render.js +38 -188
  15. package/dist/sooner-AJ7QkeLS.cjs +1 -0
  16. package/dist/sooner-DGhT8-JI.js +831 -0
  17. package/dist/tailwind.cjs +1 -1
  18. package/dist/tailwind.js +3 -2
  19. package/dist/ui.cjs +1 -1
  20. package/dist/ui.d.ts +37 -29
  21. package/dist/ui.js +232 -196
  22. package/dist/web-blocks.cjs +2 -2
  23. package/dist/web-blocks.js +1210 -1069
  24. package/package.json +3 -2
  25. package/dist/CodeEditor-CPR3N3wa.cjs +0 -1
  26. package/dist/CodeEditor-CuhsobXe.js +0 -65
  27. package/dist/chai-theme-helpers-utzv3TbX.cjs +0 -22
  28. package/dist/getSplitClasses-DodqA_KW.cjs +0 -1
  29. package/dist/getSplitClasses-DphwgQiE.js +0 -48
  30. package/dist/plugin-DW1HhfzA.js +0 -24
  31. package/dist/plugin-kqWzHDpF.cjs +0 -1
  32. package/dist/tooltip-BF2E5xPf.cjs +0 -1
  33. package/dist/tooltip-DGVZAvLU.js +0 -755
  34. /package/dist/{Functions-BGzDsf1z.js → common-functions-BGzDsf1z.js} +0 -0
  35. /package/dist/{Functions-BZmyleS1.cjs → common-functions-BZmyleS1.cjs} +0 -0
package/dist/ui.js CHANGED
@@ -1,59 +1,59 @@
1
- import { c as d } from "./tooltip-DGVZAvLU.js";
2
- import { A as Y, d as Z, a as _, b as $, e as ee, g as ae, h as te, o as oe, p as re, j as se, n as ne, l as de, k as ie, m as le, i as ce, f as me, q as pe, r as ue, s as fe, t as ge, B as be, C as he, D as xe, z as Ce, x as we, w as ye, y as Ne, E as ve, F as Se, I as Te, J as De, G as Ie, K as Me, H as Re, M as Ae, L as ke, N as Pe, P as ze, T as Le, R as Ge, Q as je, S as He, O as Ve, U as Fe, Y as Be, W as qe, a1 as Ee, X as Je, _ as Ke, a2 as Oe, a6 as Qe, Z as Ue, $ as We, a0 as Xe, a3 as Ye, a4 as Ze, a5 as _e, V as $e, a7 as ea, a9 as aa, a8 as ta, aa as oa, ab as ra, ac as sa, ae as na, ad as da, af as ia, ag as la, ah as ca, ai as ma, ak as pa, al as ua, ap as fa, an as ga, am as ba, ao as ha, aj as xa, aq as Ca, as as wa, at as ya, aw as Na, au as va, av as Sa, ax as Ta, ar as Da, ay as Ia, aA as Ma, aC as Ra, aB as Aa, az as ka, u as Pa, v as za } from "./tooltip-DGVZAvLU.js";
1
+ import { c as n } from "./sooner-DGhT8-JI.js";
2
+ import { A as $, d as ee, a as ae, b as te, e as oe, f as re, h as se, i as ne, j as ie, k as le, l as de, m as ce, n as me, o as pe, p as ue, q as fe, r as ge, g as he, s as be, u as xe, t as we, v as ye, B as ve, C as Ce, y as Ne, z as Se, D as De, E as Te, F as Re, G as Me, H as Ie, K as Ae, L as Pe, I as ke, M as ze, J as je, O as Be, N as Ge, P as Le, Q as He, R as Ve, S as Fe, T as Ue, U as Oe, V as _e, W as Ee, X as qe, Y as Je, Z as Ke, _ as Qe, $ as We, a0 as Xe, a1 as Ye, a2 as Ze, a3 as $e, a4 as ea, a5 as aa, a6 as ta, a7 as oa, a8 as ra, a9 as sa, aa as na, ab as ia, ac as la, ad as da, ae as ca, af as ma, ag as pa, ah as ua, ai as fa, aj as ga, ak as ha, al as ba, am as xa, an as wa, ao as ya, ap as va, aq as Ca, ar as Na, as as Sa, at as Da, au as Ta, av as Ra, aw as Ma, ax as Ia, ay as Aa, aA as Pa, aB as ka, aC as za, aD as ja, aE as Ba, aF as Ga, az as La, aG as Ha, aH as Va, aI as Fa, aJ as Ua, w as Oa, x as _a } from "./sooner-DGhT8-JI.js";
3
3
  import { jsxs as c, jsx as o } from "react/jsx-runtime";
4
- import * as i from "react";
5
4
  import * as r from "@radix-ui/react-context-menu";
6
- import { ChevronRightIcon as f, CheckIcon as p, DotFilledIcon as g, CaretSortIcon as b } from "@radix-ui/react-icons";
5
+ import { ChevronRight as b, Check as p, Circle as x, ChevronDown as u, ChevronUp as w } from "lucide-react";
6
+ import * as l from "react";
7
7
  import * as s from "@radix-ui/react-select";
8
8
  import * as m from "@radix-ui/react-slider";
9
- import * as u from "@radix-ui/react-toggle";
10
- import { cva as h } from "class-variance-authority";
11
- const F = r.Root, B = r.Trigger, q = r.Group, E = r.Portal, J = r.Sub, K = r.RadioGroup, x = i.forwardRef(({ className: e, inset: a, children: t, ...n }, l) => /* @__PURE__ */ c(
9
+ import * as f from "@radix-ui/react-toggle";
10
+ import { cva as y } from "class-variance-authority";
11
+ const O = r.Root, _ = r.Trigger, E = r.Group, q = r.Portal, J = r.Sub, K = r.RadioGroup, v = l.forwardRef(({ className: e, inset: a, children: t, ...i }, d) => /* @__PURE__ */ c(
12
12
  r.SubTrigger,
13
13
  {
14
- ref: l,
15
- className: d(
14
+ ref: d,
15
+ className: n(
16
16
  "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",
17
17
  a && "pl-8",
18
18
  e
19
19
  ),
20
- ...n,
20
+ ...i,
21
21
  children: [
22
22
  t,
23
- /* @__PURE__ */ o(f, { className: "ml-auto h-4 w-4" })
23
+ /* @__PURE__ */ o(b, { className: "ml-auto h-4 w-4" })
24
24
  ]
25
25
  }
26
26
  ));
27
- x.displayName = r.SubTrigger.displayName;
28
- const C = i.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
27
+ v.displayName = r.SubTrigger.displayName;
28
+ const C = l.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
29
29
  r.SubContent,
30
30
  {
31
31
  ref: t,
32
- className: d(
33
- "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
32
+ className: n(
33
+ "z-50 min-w-[8rem] origin-[--radix-context-menu-content-transform-origin] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
34
34
  e
35
35
  ),
36
36
  ...a
37
37
  }
38
38
  ));
39
39
  C.displayName = r.SubContent.displayName;
40
- const w = i.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(r.Portal, { children: /* @__PURE__ */ o(
40
+ const N = l.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(r.Portal, { children: /* @__PURE__ */ o(
41
41
  r.Content,
42
42
  {
43
43
  ref: t,
44
- className: d(
45
- "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
44
+ className: n(
45
+ "z-50 max-h-[--radix-context-menu-content-available-height] min-w-[8rem] origin-[--radix-context-menu-content-transform-origin] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
46
46
  e
47
47
  ),
48
48
  ...a
49
49
  }
50
50
  ) }));
51
- w.displayName = r.Content.displayName;
52
- const y = i.forwardRef(({ className: e, inset: a, ...t }, n) => /* @__PURE__ */ o(
51
+ N.displayName = r.Content.displayName;
52
+ const S = l.forwardRef(({ className: e, inset: a, ...t }, i) => /* @__PURE__ */ o(
53
53
  r.Item,
54
54
  {
55
- ref: n,
56
- className: d(
55
+ ref: i,
56
+ className: n(
57
57
  "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
58
58
  a && "pl-8",
59
59
  e
@@ -61,100 +61,124 @@ const y = i.forwardRef(({ className: e, inset: a, ...t }, n) => /* @__PURE__ */
61
61
  ...t
62
62
  }
63
63
  ));
64
- y.displayName = r.Item.displayName;
65
- const N = i.forwardRef(({ className: e, children: a, checked: t, ...n }, l) => /* @__PURE__ */ c(
64
+ S.displayName = r.Item.displayName;
65
+ const D = l.forwardRef(({ className: e, children: a, checked: t, ...i }, d) => /* @__PURE__ */ c(
66
66
  r.CheckboxItem,
67
67
  {
68
- ref: l,
69
- className: d(
68
+ ref: d,
69
+ className: n(
70
70
  "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
71
71
  e
72
72
  ),
73
73
  checked: t,
74
- ...n,
74
+ ...i,
75
75
  children: [
76
76
  /* @__PURE__ */ o("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o(r.ItemIndicator, { children: /* @__PURE__ */ o(p, { className: "h-4 w-4" }) }) }),
77
77
  a
78
78
  ]
79
79
  }
80
80
  ));
81
- N.displayName = r.CheckboxItem.displayName;
82
- const v = i.forwardRef(({ className: e, children: a, ...t }, n) => /* @__PURE__ */ c(
81
+ D.displayName = r.CheckboxItem.displayName;
82
+ const T = l.forwardRef(({ className: e, children: a, ...t }, i) => /* @__PURE__ */ c(
83
83
  r.RadioItem,
84
84
  {
85
- ref: n,
86
- className: d(
85
+ ref: i,
86
+ className: n(
87
87
  "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
88
88
  e
89
89
  ),
90
90
  ...t,
91
91
  children: [
92
- /* @__PURE__ */ o("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o(r.ItemIndicator, { children: /* @__PURE__ */ o(g, { className: "h-4 w-4 fill-current" }) }) }),
92
+ /* @__PURE__ */ o("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o(r.ItemIndicator, { children: /* @__PURE__ */ o(x, { className: "h-4 w-4 fill-current" }) }) }),
93
93
  a
94
94
  ]
95
95
  }
96
96
  ));
97
- v.displayName = r.RadioItem.displayName;
98
- const S = i.forwardRef(({ className: e, inset: a, ...t }, n) => /* @__PURE__ */ o(
97
+ T.displayName = r.RadioItem.displayName;
98
+ const R = l.forwardRef(({ className: e, inset: a, ...t }, i) => /* @__PURE__ */ o(
99
99
  r.Label,
100
100
  {
101
- ref: n,
102
- className: d("px-2 py-1.5 text-sm font-semibold text-foreground", a && "pl-8", e),
101
+ ref: i,
102
+ className: n("px-2 py-1.5 text-sm font-semibold text-foreground", a && "pl-8", e),
103
103
  ...t
104
104
  }
105
105
  ));
106
- S.displayName = r.Label.displayName;
107
- const T = i.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(r.Separator, { ref: t, className: d("-mx-1 my-1 h-px bg-border", e), ...a }));
108
- T.displayName = r.Separator.displayName;
109
- const D = ({ className: e, ...a }) => /* @__PURE__ */ o("span", { className: d("ml-auto text-xs tracking-widest text-muted-foreground", e), ...a });
110
- D.displayName = "ContextMenuShortcut";
111
- const O = s.Root, Q = s.Group, U = s.Value, I = i.forwardRef(({ className: e, children: a, ...t }, n) => /* @__PURE__ */ c(
106
+ R.displayName = r.Label.displayName;
107
+ const M = l.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(r.Separator, { ref: t, className: n("-mx-1 my-1 h-px bg-border", e), ...a }));
108
+ M.displayName = r.Separator.displayName;
109
+ const I = ({ className: e, ...a }) => /* @__PURE__ */ o("span", { className: n("ml-auto text-xs tracking-widest text-muted-foreground", e), ...a });
110
+ I.displayName = "ContextMenuShortcut";
111
+ const Q = s.Root, W = s.Group, X = s.Value, A = l.forwardRef(({ className: e, children: a, ...t }, i) => /* @__PURE__ */ c(
112
112
  s.Trigger,
113
113
  {
114
- ref: n,
115
- className: d(
116
- "flex h-9 w-full items-center justify-between rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
114
+ ref: i,
115
+ className: n(
116
+ "flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[placeholder]:text-muted-foreground [&>span]:line-clamp-1",
117
117
  e
118
118
  ),
119
119
  ...t,
120
120
  children: [
121
121
  a,
122
- /* @__PURE__ */ o(s.Icon, { asChild: !0, children: /* @__PURE__ */ o(b, { className: "h-4 w-4 opacity-50" }) })
122
+ /* @__PURE__ */ o(s.Icon, { asChild: !0, children: /* @__PURE__ */ o(u, { className: "h-4 w-4 opacity-50" }) })
123
123
  ]
124
124
  }
125
125
  ));
126
- I.displayName = s.Trigger.displayName;
127
- const M = i.forwardRef(({ className: e, children: a, position: t = "popper", ...n }, l) => /* @__PURE__ */ o(s.Portal, { children: /* @__PURE__ */ o(
126
+ A.displayName = s.Trigger.displayName;
127
+ const g = l.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
128
+ s.ScrollUpButton,
129
+ {
130
+ ref: t,
131
+ className: n("flex cursor-default items-center justify-center py-1", e),
132
+ ...a,
133
+ children: /* @__PURE__ */ o(w, { className: "h-4 w-4" })
134
+ }
135
+ ));
136
+ g.displayName = s.ScrollUpButton.displayName;
137
+ const h = l.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
138
+ s.ScrollDownButton,
139
+ {
140
+ ref: t,
141
+ className: n("flex cursor-default items-center justify-center py-1", e),
142
+ ...a,
143
+ children: /* @__PURE__ */ o(u, { className: "h-4 w-4" })
144
+ }
145
+ ));
146
+ h.displayName = s.ScrollDownButton.displayName;
147
+ const P = l.forwardRef(({ className: e, children: a, position: t = "popper", ...i }, d) => /* @__PURE__ */ o(s.Portal, { children: /* @__PURE__ */ c(
128
148
  s.Content,
129
149
  {
130
- ref: l,
131
- className: d(
132
- "relative z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
150
+ ref: d,
151
+ className: n(
152
+ "relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] origin-[--radix-select-content-transform-origin] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
133
153
  t === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
134
154
  e
135
155
  ),
136
156
  position: t,
137
- ...n,
138
- children: /* @__PURE__ */ o(
139
- s.Viewport,
140
- {
141
- className: d(
142
- "p-1",
143
- t === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
144
- ),
145
- children: a
146
- }
147
- )
157
+ ...i,
158
+ children: [
159
+ /* @__PURE__ */ o(g, {}),
160
+ /* @__PURE__ */ o(
161
+ s.Viewport,
162
+ {
163
+ className: n(
164
+ "p-1",
165
+ t === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
166
+ ),
167
+ children: a
168
+ }
169
+ ),
170
+ /* @__PURE__ */ o(h, {})
171
+ ]
148
172
  }
149
173
  ) }));
150
- M.displayName = s.Content.displayName;
151
- const R = i.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(s.Label, { ref: t, className: d("px-2 py-1.5 text-sm font-semibold", e), ...a }));
152
- R.displayName = s.Label.displayName;
153
- const A = i.forwardRef(({ className: e, children: a, ...t }, n) => /* @__PURE__ */ c(
174
+ P.displayName = s.Content.displayName;
175
+ const k = l.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(s.Label, { ref: t, className: n("px-2 py-1.5 text-sm font-semibold", e), ...a }));
176
+ k.displayName = s.Label.displayName;
177
+ const z = l.forwardRef(({ className: e, children: a, ...t }, i) => /* @__PURE__ */ c(
154
178
  s.Item,
155
179
  {
156
- ref: n,
157
- className: d(
180
+ ref: i,
181
+ className: n(
158
182
  "relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
159
183
  e
160
184
  ),
@@ -165,14 +189,17 @@ const A = i.forwardRef(({ className: e, children: a, ...t }, n) => /* @__PURE__
165
189
  ]
166
190
  }
167
191
  ));
168
- A.displayName = s.Item.displayName;
169
- const k = i.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(s.Separator, { ref: t, className: d("-mx-1 my-1 h-px bg-muted", e), ...a }));
170
- k.displayName = s.Separator.displayName;
171
- const P = i.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ c(
192
+ z.displayName = s.Item.displayName;
193
+ const j = l.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(s.Separator, { ref: t, className: n("-mx-1 my-1 h-px bg-muted", e), ...a }));
194
+ j.displayName = s.Separator.displayName;
195
+ const B = l.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ c(
172
196
  m.Root,
173
197
  {
174
198
  ref: t,
175
- className: d("relative flex w-full touch-none select-none items-center", e),
199
+ className: n(
200
+ "relative flex w-full touch-none select-none items-center",
201
+ e
202
+ ),
176
203
  ...a,
177
204
  children: [
178
205
  /* @__PURE__ */ o(m.Track, { className: "relative h-1.5 w-full grow overflow-hidden rounded-full bg-primary/20", children: /* @__PURE__ */ o(m.Range, { className: "absolute h-full bg-primary" }) }),
@@ -180,19 +207,19 @@ const P = i.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ c(
180
207
  ]
181
208
  }
182
209
  ));
183
- P.displayName = m.Root.displayName;
184
- const z = h(
185
- "inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",
210
+ B.displayName = m.Root.displayName;
211
+ const G = y(
212
+ "inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
186
213
  {
187
214
  variants: {
188
215
  variant: {
189
216
  default: "bg-transparent",
190
- outline: "border border-input bg-transparent hover:bg-accent hover:text-accent-foreground"
217
+ outline: "border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"
191
218
  },
192
219
  size: {
193
- default: "h-10 px-3",
194
- sm: "h-9 px-2.5",
195
- lg: "h-11 px-5"
220
+ default: "h-9 px-2 min-w-9",
221
+ sm: "h-8 px-1.5 min-w-8",
222
+ lg: "h-10 px-2.5 min-w-10"
196
223
  }
197
224
  },
198
225
  defaultVariants: {
@@ -200,125 +227,134 @@ const z = h(
200
227
  size: "default"
201
228
  }
202
229
  }
203
- ), L = i.forwardRef(({ className: e, variant: a, size: t, ...n }, l) => /* @__PURE__ */ o(u.Root, { ref: l, className: d(z({ variant: a, size: t, className: e })), ...n }));
204
- L.displayName = u.Root.displayName;
230
+ ), L = l.forwardRef(({ className: e, variant: a, size: t, ...i }, d) => /* @__PURE__ */ o(f.Root, { ref: d, className: n(G({ variant: a, size: t, className: e })), ...i }));
231
+ L.displayName = f.Root.displayName;
205
232
  export {
206
- Y as Accordion,
207
- Z as AccordionContent,
208
- _ as AccordionItem,
209
- $ as AccordionTrigger,
210
- ee as Alert,
211
- ae as AlertDescription,
212
- te as AlertDialog,
213
- oe as AlertDialogAction,
214
- re as AlertDialogCancel,
215
- se as AlertDialogContent,
216
- ne as AlertDialogDescription,
217
- de as AlertDialogFooter,
218
- ie as AlertDialogHeader,
219
- le as AlertDialogTitle,
220
- ce as AlertDialogTrigger,
221
- me as AlertTitle,
222
- pe as Avatar,
223
- ue as AvatarFallback,
224
- fe as AvatarImage,
225
- ge as Badge,
226
- be as Button,
227
- he as Card,
228
- xe as CardContent,
229
- Ce as CardDescription,
230
- we as CardFooter,
231
- ye as CardHeader,
232
- Ne as CardTitle,
233
- ve as Command,
234
- Se as CommandDialog,
235
- Te as CommandEmpty,
236
- De as CommandGroup,
237
- Ie as CommandInput,
238
- Me as CommandItem,
239
- Re as CommandList,
240
- Ae as CommandSeparator,
241
- ke as CommandShortcut,
242
- F as ContextMenu,
243
- N as ContextMenuCheckboxItem,
244
- w as ContextMenuContent,
245
- q as ContextMenuGroup,
246
- y as ContextMenuItem,
247
- S as ContextMenuLabel,
248
- E as ContextMenuPortal,
233
+ $ as Accordion,
234
+ ee as AccordionContent,
235
+ ae as AccordionItem,
236
+ te as AccordionTrigger,
237
+ oe as Alert,
238
+ re as AlertDescription,
239
+ se as AlertDialog,
240
+ ne as AlertDialogAction,
241
+ ie as AlertDialogCancel,
242
+ le as AlertDialogContent,
243
+ de as AlertDialogDescription,
244
+ ce as AlertDialogFooter,
245
+ me as AlertDialogHeader,
246
+ pe as AlertDialogOverlay,
247
+ ue as AlertDialogPortal,
248
+ fe as AlertDialogTitle,
249
+ ge as AlertDialogTrigger,
250
+ he as AlertTitle,
251
+ be as Avatar,
252
+ xe as AvatarFallback,
253
+ we as AvatarImage,
254
+ ye as Badge,
255
+ ve as Button,
256
+ Ce as Card,
257
+ Ne as CardContent,
258
+ Se as CardDescription,
259
+ De as CardFooter,
260
+ Te as CardHeader,
261
+ Re as CardTitle,
262
+ Me as Command,
263
+ Ie as CommandDialog,
264
+ Ae as CommandEmpty,
265
+ Pe as CommandGroup,
266
+ ke as CommandInput,
267
+ ze as CommandItem,
268
+ je as CommandList,
269
+ Be as CommandSeparator,
270
+ Ge as CommandShortcut,
271
+ O as ContextMenu,
272
+ D as ContextMenuCheckboxItem,
273
+ N as ContextMenuContent,
274
+ E as ContextMenuGroup,
275
+ S as ContextMenuItem,
276
+ R as ContextMenuLabel,
277
+ q as ContextMenuPortal,
249
278
  K as ContextMenuRadioGroup,
250
- v as ContextMenuRadioItem,
251
- T as ContextMenuSeparator,
252
- D as ContextMenuShortcut,
279
+ T as ContextMenuRadioItem,
280
+ M as ContextMenuSeparator,
281
+ I as ContextMenuShortcut,
253
282
  J as ContextMenuSub,
254
283
  C as ContextMenuSubContent,
255
- x as ContextMenuSubTrigger,
256
- B as ContextMenuTrigger,
257
- Pe as Dialog,
258
- ze as DialogContent,
259
- Le as DialogDescription,
260
- Ge as DialogFooter,
261
- je as DialogHeader,
262
- He as DialogTitle,
263
- Ve as DialogTrigger,
264
- Fe as DropdownMenu,
265
- Be as DropdownMenuCheckboxItem,
266
- qe as DropdownMenuContent,
267
- Ee as DropdownMenuGroup,
268
- Je as DropdownMenuItem,
269
- Ke as DropdownMenuLabel,
270
- Oe as DropdownMenuPortal,
271
- Qe as DropdownMenuRadioGroup,
272
- Ue as DropdownMenuRadioItem,
273
- We as DropdownMenuSeparator,
274
- Xe as DropdownMenuShortcut,
275
- Ye as DropdownMenuSub,
276
- Ze as DropdownMenuSubContent,
277
- _e as DropdownMenuSubTrigger,
278
- $e as DropdownMenuTrigger,
279
- ea as HoverCard,
280
- aa as HoverCardContent,
281
- ta as HoverCardTrigger,
282
- oa as Input,
283
- ra as Label,
284
- sa as Popover,
285
- na as PopoverContent,
286
- da as PopoverTrigger,
287
- ia as ScrollArea,
288
- la as ScrollBar,
289
- O as Select,
290
- M as SelectContent,
291
- Q as SelectGroup,
292
- A as SelectItem,
293
- R as SelectLabel,
294
- k as SelectSeparator,
295
- I as SelectTrigger,
296
- U as SelectValue,
297
- ca as Separator,
298
- ma as Sheet,
299
- pa as SheetClose,
300
- ua as SheetContent,
301
- fa as SheetDescription,
302
- ga as SheetFooter,
303
- ba as SheetHeader,
304
- ha as SheetTitle,
305
- xa as SheetTrigger,
306
- Ca as Skeleton,
307
- P as Slider,
308
- wa as Switch,
309
- ya as Tabs,
310
- Na as TabsContent,
311
- va as TabsList,
312
- Sa as TabsTrigger,
313
- Ta as Textarea,
314
- Da as Toaster,
284
+ v as ContextMenuSubTrigger,
285
+ _ as ContextMenuTrigger,
286
+ Le as Dialog,
287
+ He as DialogClose,
288
+ Ve as DialogContent,
289
+ Fe as DialogDescription,
290
+ Ue as DialogFooter,
291
+ Oe as DialogHeader,
292
+ _e as DialogOverlay,
293
+ Ee as DialogPortal,
294
+ qe as DialogTitle,
295
+ Je as DialogTrigger,
296
+ Ke as DropdownMenu,
297
+ Qe as DropdownMenuCheckboxItem,
298
+ We as DropdownMenuContent,
299
+ Xe as DropdownMenuGroup,
300
+ Ye as DropdownMenuItem,
301
+ Ze as DropdownMenuLabel,
302
+ $e as DropdownMenuPortal,
303
+ ea as DropdownMenuRadioGroup,
304
+ aa as DropdownMenuRadioItem,
305
+ ta as DropdownMenuSeparator,
306
+ oa as DropdownMenuShortcut,
307
+ ra as DropdownMenuSub,
308
+ sa as DropdownMenuSubContent,
309
+ na as DropdownMenuSubTrigger,
310
+ ia as DropdownMenuTrigger,
311
+ la as HoverCard,
312
+ da as HoverCardContent,
313
+ ca as HoverCardTrigger,
314
+ ma as Input,
315
+ pa as Label,
316
+ ua as Popover,
317
+ fa as PopoverAnchor,
318
+ ga as PopoverContent,
319
+ ha as PopoverTrigger,
320
+ ba as ScrollArea,
321
+ xa as ScrollBar,
322
+ Q as Select,
323
+ P as SelectContent,
324
+ W as SelectGroup,
325
+ z as SelectItem,
326
+ k as SelectLabel,
327
+ h as SelectScrollDownButton,
328
+ g as SelectScrollUpButton,
329
+ j as SelectSeparator,
330
+ A as SelectTrigger,
331
+ X as SelectValue,
332
+ wa as Separator,
333
+ ya as Sheet,
334
+ va as SheetClose,
335
+ Ca as SheetContent,
336
+ Na as SheetDescription,
337
+ Sa as SheetFooter,
338
+ Da as SheetHeader,
339
+ Ta as SheetOverlay,
340
+ Ra as SheetPortal,
341
+ Ma as SheetTitle,
342
+ Ia as SheetTrigger,
343
+ Aa as Skeleton,
344
+ B as Slider,
345
+ Pa as Switch,
346
+ ka as Tabs,
347
+ za as TabsContent,
348
+ ja as TabsList,
349
+ Ba as TabsTrigger,
350
+ Ga as Textarea,
351
+ La as Toaster,
315
352
  L as Toggle,
316
- Ia as Tooltip,
317
- Ma as TooltipContent,
318
- Ra as TooltipPortal,
319
- Aa as TooltipProvider,
320
- ka as TooltipTrigger,
321
- Pa as badgeVariants,
322
- za as buttonVariants,
323
- z as toggleVariants
353
+ Ha as Tooltip,
354
+ Va as TooltipContent,
355
+ Fa as TooltipProvider,
356
+ Ua as TooltipTrigger,
357
+ Oa as badgeVariants,
358
+ _a as buttonVariants,
359
+ G as toggleVariants
324
360
  };