base-themes 0.1.0 → 0.1.1

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.
@@ -1,63 +1,63 @@
1
1
  import { Accordion as e } from "@base-ui/react/accordion";
2
2
  import { forwardRef as t, useCallback as n, useEffect as r, useMemo as i, useState as a } from "react";
3
3
  import o from "clsx";
4
- import { Bold as s, Check as c, ChevronDown as l, Italic as ee, Link as te, Minus as ne, Plus as re, Search as ie, X as u } from "lucide-react";
5
- import { jsx as d, jsxs as f } from "react/jsx-runtime";
6
- import { AlertDialog as p } from "@base-ui/react/alert-dialog";
7
- import { Autocomplete as m } from "@base-ui/react/autocomplete";
8
- import { Avatar as h } from "@base-ui/react/avatar";
9
- import { Button as ae } from "@base-ui/react/button";
10
- import { Checkbox as g } from "@base-ui/react/checkbox";
11
- import { CheckboxGroup as oe } from "@base-ui/react/checkbox-group";
12
- import { Collapsible as _ } from "@base-ui/react/collapsible";
13
- import { Combobox as v } from "@base-ui/react/combobox";
14
- import { ContextMenu as y } from "@base-ui/react/context-menu";
15
- import { CSPProvider as se } from "@base-ui/react/csp-provider";
16
- import { Dialog as b } from "@base-ui/react/dialog";
17
- import { DirectionProvider as ce, useDirection as le } from "@base-ui/react/direction-provider";
18
- import { Drawer as x } from "@base-ui/react/drawer";
19
- import { Field as S } from "@base-ui/react/field";
20
- import { Fieldset as C } from "@base-ui/react/fieldset";
21
- import { Form as ue } from "@base-ui/react/form";
22
- import { Input as de } from "@base-ui/react/input";
23
- import { Menu as w, Menu as T } from "@base-ui/react/menu";
24
- import { Menubar as fe } from "@base-ui/react/menubar";
25
- import { Meter as E } from "@base-ui/react/meter";
26
- import { NavigationMenu as D } from "@base-ui/react/navigation-menu";
27
- import { NumberField as O } from "@base-ui/react/number-field";
28
- import { OTPFieldPreview as k } from "@base-ui/react/otp-field";
29
- import { Popover as A } from "@base-ui/react/popover";
30
- import { PreviewCard as j } from "@base-ui/react/preview-card";
31
- import { Progress as M } from "@base-ui/react/progress";
32
- import { Radio as N, Radio as P } from "@base-ui/react/radio";
33
- import { RadioGroup as pe } from "@base-ui/react/radio-group";
34
- import { ScrollArea as F } from "@base-ui/react/scroll-area";
35
- import { Select as I } from "@base-ui/react/select";
36
- import { Separator as me } from "@base-ui/react/separator";
37
- import { Slider as L } from "@base-ui/react/slider";
38
- import { Switch as he } from "@base-ui/react/switch";
39
- import { Tabs as R } from "@base-ui/react/tabs";
40
- import { Toggle as z } from "@base-ui/react/toggle";
41
- import { Toast as B } from "@base-ui/react/toast";
42
- import { ToggleGroup as ge } from "@base-ui/react/toggle-group";
43
- import { Toolbar as V } from "@base-ui/react/toolbar";
44
- import { Tooltip as H } from "@base-ui/react/tooltip";
4
+ import { Bold as s, Check as c, ChevronDown as l, Italic as u, Link as ee, Minus as te, Plus as ne, Search as d, X as f } from "lucide-react";
5
+ import { jsx as p, jsxs as m } from "react/jsx-runtime";
6
+ import { AlertDialog as h } from "@base-ui/react/alert-dialog";
7
+ import { Autocomplete as g } from "@base-ui/react/autocomplete";
8
+ import { Avatar as _ } from "@base-ui/react/avatar";
9
+ import { Button as re } from "@base-ui/react/button";
10
+ import { Checkbox as v } from "@base-ui/react/checkbox";
11
+ import { CheckboxGroup as ie } from "@base-ui/react/checkbox-group";
12
+ import { Collapsible as y } from "@base-ui/react/collapsible";
13
+ import { Combobox as b } from "@base-ui/react/combobox";
14
+ import { ContextMenu as x } from "@base-ui/react/context-menu";
15
+ import { CSPProvider as ae } from "@base-ui/react/csp-provider";
16
+ import { Dialog as S } from "@base-ui/react/dialog";
17
+ import { DirectionProvider as oe, useDirection as se } from "@base-ui/react/direction-provider";
18
+ import { Drawer as C } from "@base-ui/react/drawer";
19
+ import { Field as w } from "@base-ui/react/field";
20
+ import { Fieldset as T } from "@base-ui/react/fieldset";
21
+ import { Form as ce } from "@base-ui/react/form";
22
+ import { Input as le } from "@base-ui/react/input";
23
+ import { Menu as E, Menu as D } from "@base-ui/react/menu";
24
+ import { Menubar as ue } from "@base-ui/react/menubar";
25
+ import { Meter as O } from "@base-ui/react/meter";
26
+ import { NavigationMenu as k } from "@base-ui/react/navigation-menu";
27
+ import { NumberField as A } from "@base-ui/react/number-field";
28
+ import { OTPFieldPreview as j } from "@base-ui/react/otp-field";
29
+ import { Popover as M } from "@base-ui/react/popover";
30
+ import { PreviewCard as N } from "@base-ui/react/preview-card";
31
+ import { Progress as P } from "@base-ui/react/progress";
32
+ import { Radio as F, Radio as I } from "@base-ui/react/radio";
33
+ import { RadioGroup as de } from "@base-ui/react/radio-group";
34
+ import { ScrollArea as L } from "@base-ui/react/scroll-area";
35
+ import { Select as R } from "@base-ui/react/select";
36
+ import { Separator as fe } from "@base-ui/react/separator";
37
+ import { Slider as z } from "@base-ui/react/slider";
38
+ import { Switch as B } from "@base-ui/react/switch";
39
+ import { Tabs as V } from "@base-ui/react/tabs";
40
+ import { Toggle as H } from "@base-ui/react/toggle";
41
+ import { Toast as U } from "@base-ui/react/toast";
42
+ import { ToggleGroup as pe } from "@base-ui/react/toggle-group";
43
+ import { Toolbar as W } from "@base-ui/react/toolbar";
44
+ import { Tooltip as G } from "@base-ui/react/tooltip";
45
45
  //#region src/components/ui/Accordion.tsx
46
- function _e({ items: t, defaultValue: n, className: r, ...i }) {
47
- return /* @__PURE__ */ d(e.Root, {
46
+ function me({ items: t, defaultValue: n, className: r, ...i }) {
47
+ return /* @__PURE__ */ p(e.Root, {
48
48
  defaultValue: n ?? t.slice(0, 1).map((e) => e.value),
49
49
  className: o("bento-accordion", r),
50
50
  ...i,
51
- children: t.map((t) => /* @__PURE__ */ f(e.Item, {
51
+ children: t.map((t) => /* @__PURE__ */ m(e.Item, {
52
52
  className: "bento-accordion-item",
53
53
  value: t.value,
54
- children: [/* @__PURE__ */ d(e.Header, {
54
+ children: [/* @__PURE__ */ p(e.Header, {
55
55
  className: "bento-accordion-header",
56
- children: /* @__PURE__ */ f(e.Trigger, {
56
+ children: /* @__PURE__ */ m(e.Trigger, {
57
57
  className: "bento-accordion-trigger",
58
- children: [t.label, /* @__PURE__ */ d(l, { size: 15 })]
58
+ children: [t.label, /* @__PURE__ */ p(l, { size: 15 })]
59
59
  })
60
- }), /* @__PURE__ */ d(e.Panel, {
60
+ }), /* @__PURE__ */ p(e.Panel, {
61
61
  className: "bento-accordion-panel",
62
62
  children: t.content
63
63
  })]
@@ -66,24 +66,24 @@ function _e({ items: t, defaultValue: n, className: r, ...i }) {
66
66
  }
67
67
  //#endregion
68
68
  //#region src/components/ui/AlertDialog.tsx
69
- function ve({ trigger: e, title: t, description: n, confirmLabel: r = "Confirm", cancelLabel: i = "Cancel", onConfirm: a, className: s }) {
70
- return /* @__PURE__ */ f(p.Root, { children: [/* @__PURE__ */ d(p.Trigger, { render: e }), /* @__PURE__ */ f(p.Portal, { children: [/* @__PURE__ */ d(p.Backdrop, { className: "bento-alert-backdrop" }), /* @__PURE__ */ f(p.Popup, {
69
+ function he({ trigger: e, title: t, description: n, confirmLabel: r = "Confirm", cancelLabel: i = "Cancel", onConfirm: a, className: s }) {
70
+ return /* @__PURE__ */ m(h.Root, { children: [/* @__PURE__ */ p(h.Trigger, { render: e }), /* @__PURE__ */ m(h.Portal, { children: [/* @__PURE__ */ p(h.Backdrop, { className: "bento-alert-backdrop" }), /* @__PURE__ */ m(h.Popup, {
71
71
  className: o("bento-alert-popup", s),
72
72
  children: [
73
- /* @__PURE__ */ d(p.Title, {
73
+ /* @__PURE__ */ p(h.Title, {
74
74
  className: "bento-alert-title",
75
75
  children: t
76
76
  }),
77
- /* @__PURE__ */ d(p.Description, {
77
+ /* @__PURE__ */ p(h.Description, {
78
78
  className: "bento-alert-description",
79
79
  children: n
80
80
  }),
81
- /* @__PURE__ */ f("div", {
81
+ /* @__PURE__ */ m("div", {
82
82
  className: "bento-alert-actions",
83
- children: [/* @__PURE__ */ f(p.Close, {
83
+ children: [/* @__PURE__ */ m(h.Close, {
84
84
  className: "bento-button outline",
85
85
  children: [" ", i]
86
- }), /* @__PURE__ */ d(p.Close, {
86
+ }), /* @__PURE__ */ p(h.Close, {
87
87
  className: "bento-button accent",
88
88
  onClick: a,
89
89
  children: r
@@ -94,36 +94,36 @@ function ve({ trigger: e, title: t, description: n, confirmLabel: r = "Confirm",
94
94
  }
95
95
  //#endregion
96
96
  //#region src/components/ui/Autocomplete.tsx
97
- function ye({ options: e, label: t, placeholder: n = "Search...", className: r, ...i }) {
98
- return /* @__PURE__ */ d("div", {
97
+ function ge({ options: e, label: t, placeholder: n = "Search...", className: r, ...i }) {
98
+ return /* @__PURE__ */ p("div", {
99
99
  className: o("bento-combobox bento-autocomplete", r),
100
- children: /* @__PURE__ */ f(m.Root, {
100
+ children: /* @__PURE__ */ m(g.Root, {
101
101
  items: e,
102
102
  ...i,
103
103
  children: [
104
- t && /* @__PURE__ */ d("label", {
104
+ t && /* @__PURE__ */ p("label", {
105
105
  className: "field-label",
106
106
  children: t
107
107
  }),
108
- /* @__PURE__ */ f(m.InputGroup, {
108
+ /* @__PURE__ */ m(g.InputGroup, {
109
109
  className: "bento-combobox-input-wrap",
110
- children: [/* @__PURE__ */ d(ie, { size: 15 }), /* @__PURE__ */ d(m.Input, {
110
+ children: [/* @__PURE__ */ p(d, { size: 15 }), /* @__PURE__ */ p(g.Input, {
111
111
  className: "bento-combobox-input",
112
112
  placeholder: n
113
113
  })]
114
114
  }),
115
- /* @__PURE__ */ d(m.Portal, { children: /* @__PURE__ */ d(m.Positioner, {
115
+ /* @__PURE__ */ p(g.Portal, { children: /* @__PURE__ */ p(g.Positioner, {
116
116
  className: "bento-combobox-positioner",
117
117
  sideOffset: 8,
118
- children: /* @__PURE__ */ f(m.Popup, {
118
+ children: /* @__PURE__ */ m(g.Popup, {
119
119
  className: "bento-combobox-popup",
120
- children: [/* @__PURE__ */ d(m.Empty, {
120
+ children: [/* @__PURE__ */ p(g.Empty, {
121
121
  className: "bento-combobox-empty",
122
122
  children: "No results"
123
- }), /* @__PURE__ */ d(m.List, { children: (e) => /* @__PURE__ */ f(m.Item, {
123
+ }), /* @__PURE__ */ p(g.List, { children: (e) => /* @__PURE__ */ m(g.Item, {
124
124
  className: "bento-combobox-item",
125
125
  value: e.value,
126
- children: [/* @__PURE__ */ d(m.Value, { children: e.label }), /* @__PURE__ */ d(c, { size: 14 })]
126
+ children: [/* @__PURE__ */ p(g.Value, { children: e.label }), /* @__PURE__ */ p(c, { size: 14 })]
127
127
  }, e.value) })]
128
128
  })
129
129
  }) })
@@ -133,55 +133,55 @@ function ye({ options: e, label: t, placeholder: n = "Search...", className: r,
133
133
  }
134
134
  //#endregion
135
135
  //#region src/components/ui/Avatar.tsx
136
- var U = t(({ src: e, alt: t, fallback: n, size: r, className: i, ...a }, s) => /* @__PURE__ */ f(h.Root, {
136
+ var K = t(({ src: e, alt: t, fallback: n, size: r, className: i, ...a }, s) => /* @__PURE__ */ m(_.Root, {
137
137
  ref: s,
138
138
  className: o("bento-avatar", r && r !== "md" && r, i),
139
139
  ...a,
140
- children: [e && /* @__PURE__ */ d(h.Image, {
140
+ children: [e && /* @__PURE__ */ p(_.Image, {
141
141
  src: e,
142
142
  alt: t
143
- }), /* @__PURE__ */ d(h.Fallback, { children: n })]
143
+ }), /* @__PURE__ */ p(_.Fallback, { children: n })]
144
144
  }));
145
- U.displayName = "Avatar";
146
- var W = t(({ className: e, ...t }, n) => /* @__PURE__ */ d("div", {
145
+ K.displayName = "Avatar";
146
+ var q = t(({ className: e, ...t }, n) => /* @__PURE__ */ p("div", {
147
147
  ref: n,
148
148
  className: o("bento-avatar-group", e),
149
149
  ...t
150
150
  }));
151
- W.displayName = "AvatarGroup";
151
+ q.displayName = "AvatarGroup";
152
152
  //#endregion
153
153
  //#region src/components/ui/Button.tsx
154
- var G = t(({ variant: e = "primary", className: t, ...n }, r) => /* @__PURE__ */ d(ae, {
154
+ var J = t(({ variant: e = "primary", className: t, ...n }, r) => /* @__PURE__ */ p(re, {
155
155
  ref: r,
156
156
  className: o("bento-button", e !== "primary" && e, t),
157
157
  ...n
158
158
  }));
159
- G.displayName = "Button";
159
+ J.displayName = "Button";
160
160
  //#endregion
161
161
  //#region src/components/ui/Checkbox.tsx
162
- var K = t(({ label: e, className: t, id: n, ...r }, i) => {
163
- let a = /* @__PURE__ */ d(g.Root, {
162
+ var Y = t(({ label: e, className: t, id: n, ...r }, i) => {
163
+ let a = /* @__PURE__ */ p(v.Root, {
164
164
  ref: i,
165
165
  id: n,
166
166
  className: o("bento-checkbox", t),
167
167
  ...r,
168
- children: /* @__PURE__ */ d(g.Indicator, { children: /* @__PURE__ */ d(c, { size: 14 }) })
168
+ children: /* @__PURE__ */ p(v.Indicator, { children: /* @__PURE__ */ p(c, { size: 14 }) })
169
169
  });
170
- return e ? /* @__PURE__ */ f("label", {
170
+ return e ? /* @__PURE__ */ m("label", {
171
171
  className: "bento-checkbox-label",
172
172
  htmlFor: n,
173
173
  children: [a, e]
174
174
  }) : a;
175
175
  });
176
- K.displayName = "Checkbox";
176
+ Y.displayName = "Checkbox";
177
177
  //#endregion
178
178
  //#region src/components/ui/CheckboxGroup.tsx
179
- function be({ options: e, className: t, defaultValue: n, ...r }) {
180
- return /* @__PURE__ */ d(oe, {
179
+ function _e({ options: e, className: t, defaultValue: n, ...r }) {
180
+ return /* @__PURE__ */ p(ie, {
181
181
  className: o("bento-checkbox-group", t),
182
182
  defaultValue: n,
183
183
  ...r,
184
- children: e.map((e) => /* @__PURE__ */ d(K, {
184
+ children: e.map((e) => /* @__PURE__ */ p(Y, {
185
185
  name: e.value,
186
186
  value: e.value,
187
187
  label: e.label
@@ -190,14 +190,14 @@ function be({ options: e, className: t, defaultValue: n, ...r }) {
190
190
  }
191
191
  //#endregion
192
192
  //#region src/components/ui/Collapsible.tsx
193
- function xe({ label: e, children: t, defaultOpen: n, className: r }) {
194
- return /* @__PURE__ */ f(_.Root, {
193
+ function ve({ label: e, children: t, defaultOpen: n, className: r }) {
194
+ return /* @__PURE__ */ m(y.Root, {
195
195
  defaultOpen: n,
196
196
  className: o("bento-collapsible", r),
197
- children: [/* @__PURE__ */ f(_.Trigger, {
197
+ children: [/* @__PURE__ */ m(y.Trigger, {
198
198
  className: "bento-collapsible-trigger",
199
- children: [e, /* @__PURE__ */ d(l, { size: 15 })]
200
- }), /* @__PURE__ */ d(_.Panel, {
199
+ children: [e, /* @__PURE__ */ p(l, { size: 15 })]
200
+ }), /* @__PURE__ */ p(y.Panel, {
201
201
  className: "bento-collapsible-panel",
202
202
  children: t
203
203
  })]
@@ -205,27 +205,27 @@ function xe({ label: e, children: t, defaultOpen: n, className: r }) {
205
205
  }
206
206
  //#endregion
207
207
  //#region src/components/ui/Combobox.tsx
208
- function Se({ options: e, placeholder: t = "Search...", label: n, className: r }) {
208
+ function ye({ options: e, placeholder: t = "Search...", label: n, className: r }) {
209
209
  let [i, s] = a(""), c = e.filter((e) => e.label.toLowerCase().includes(i.toLowerCase()));
210
- return /* @__PURE__ */ f("div", {
210
+ return /* @__PURE__ */ m("div", {
211
211
  className: o("bento-combobox", r),
212
- children: [n && /* @__PURE__ */ d("label", {
212
+ children: [n && /* @__PURE__ */ p("label", {
213
213
  className: "field-label",
214
214
  children: n
215
- }), /* @__PURE__ */ f(v.Root, {
215
+ }), /* @__PURE__ */ m(b.Root, {
216
216
  inputValue: i,
217
217
  onInputValueChange: s,
218
- children: [/* @__PURE__ */ d(v.Input, {
218
+ children: [/* @__PURE__ */ p(b.Input, {
219
219
  className: "bento-combobox-input",
220
220
  placeholder: t
221
- }), /* @__PURE__ */ d(v.Portal, { children: /* @__PURE__ */ d(v.Positioner, {
221
+ }), /* @__PURE__ */ p(b.Portal, { children: /* @__PURE__ */ p(b.Positioner, {
222
222
  sideOffset: 8,
223
- children: /* @__PURE__ */ d(v.Popup, {
223
+ children: /* @__PURE__ */ p(b.Popup, {
224
224
  className: "bento-combobox-popup",
225
- children: c.length === 0 ? /* @__PURE__ */ d("div", {
225
+ children: c.length === 0 ? /* @__PURE__ */ p("div", {
226
226
  className: "bento-combobox-no-results",
227
227
  children: "No results"
228
- }) : c.map((e) => /* @__PURE__ */ d(v.Item, {
228
+ }) : c.map((e) => /* @__PURE__ */ p(b.Item, {
229
229
  className: "bento-combobox-item",
230
230
  value: e.value,
231
231
  children: e.label
@@ -237,16 +237,16 @@ function Se({ options: e, placeholder: t = "Search...", label: n, className: r }
237
237
  }
238
238
  //#endregion
239
239
  //#region src/components/ui/ContextMenu.tsx
240
- function Ce({ children: e, items: t, className: n }) {
241
- return /* @__PURE__ */ f(y.Root, { children: [/* @__PURE__ */ d(y.Trigger, {
240
+ function be({ children: e, items: t, className: n }) {
241
+ return /* @__PURE__ */ m(x.Root, { children: [/* @__PURE__ */ p(x.Trigger, {
242
242
  className: "bento-context-menu-trigger",
243
243
  children: e
244
- }), /* @__PURE__ */ d(y.Portal, { children: /* @__PURE__ */ d(y.Positioner, {
244
+ }), /* @__PURE__ */ p(x.Portal, { children: /* @__PURE__ */ p(x.Positioner, {
245
245
  className: "bento-menu-positioner",
246
246
  sideOffset: 8,
247
- children: /* @__PURE__ */ d(y.Popup, {
247
+ children: /* @__PURE__ */ p(x.Popup, {
248
248
  className: o("bento-menu-popup", n),
249
- children: t.map((e, t) => e === "separator" ? /* @__PURE__ */ d(y.Separator, { className: "bento-menu-separator" }, t) : /* @__PURE__ */ f(y.Item, {
249
+ children: t.map((e, t) => e === "separator" ? /* @__PURE__ */ p(x.Separator, { className: "bento-menu-separator" }, t) : /* @__PURE__ */ m(x.Item, {
250
250
  className: "bento-menu-item",
251
251
  disabled: e.disabled,
252
252
  onClick: e.onClick,
@@ -257,28 +257,28 @@ function Ce({ children: e, items: t, className: n }) {
257
257
  }
258
258
  //#endregion
259
259
  //#region src/components/ui/CspProvider.tsx
260
- function we(e) {
261
- return /* @__PURE__ */ d(se, { ...e });
260
+ function xe(e) {
261
+ return /* @__PURE__ */ p(ae, { ...e });
262
262
  }
263
263
  //#endregion
264
264
  //#region src/components/ui/Dialog.tsx
265
- function Te({ trigger: e, title: t, description: n, children: r, className: i }) {
266
- return /* @__PURE__ */ f(b.Root, { children: [/* @__PURE__ */ d(b.Trigger, { render: e }), /* @__PURE__ */ f(b.Portal, { children: [/* @__PURE__ */ d(b.Backdrop, { className: "bento-dialog-backdrop" }), /* @__PURE__ */ f(b.Popup, {
265
+ function Se({ trigger: e, title: t, description: n, children: r, className: i }) {
266
+ return /* @__PURE__ */ m(S.Root, { children: [/* @__PURE__ */ p(S.Trigger, { render: e }), /* @__PURE__ */ m(S.Portal, { children: [/* @__PURE__ */ p(S.Backdrop, { className: "bento-dialog-backdrop" }), /* @__PURE__ */ m(S.Popup, {
267
267
  className: o("bento-dialog-popup", i),
268
268
  children: [
269
- /* @__PURE__ */ f("div", {
269
+ /* @__PURE__ */ m("div", {
270
270
  className: "bento-dialog-topline",
271
- children: [/* @__PURE__ */ d(b.Title, {
271
+ children: [/* @__PURE__ */ p(S.Title, {
272
272
  className: "bento-dialog-title",
273
273
  children: t
274
- }), /* @__PURE__ */ d(b.Close, {
274
+ }), /* @__PURE__ */ p(S.Close, {
275
275
  className: "bento-button icon",
276
276
  "aria-label": "Close dialog",
277
- render: /* @__PURE__ */ d("button", { type: "button" }),
278
- children: /* @__PURE__ */ d(u, { size: 18 })
277
+ render: /* @__PURE__ */ p("button", { type: "button" }),
278
+ children: /* @__PURE__ */ p(f, { size: 18 })
279
279
  })]
280
280
  }),
281
- n && /* @__PURE__ */ d(b.Description, {
281
+ n && /* @__PURE__ */ p(S.Description, {
282
282
  className: "bento-dialog-description",
283
283
  children: n
284
284
  }),
@@ -288,10 +288,10 @@ function Te({ trigger: e, title: t, description: n, children: r, className: i })
288
288
  }
289
289
  //#endregion
290
290
  //#region src/components/ui/DirectionProvider.tsx
291
- function Ee({ children: e, direction: t = "ltr" }) {
292
- return /* @__PURE__ */ d(ce, {
291
+ function Ce({ children: e, direction: t = "ltr" }) {
292
+ return /* @__PURE__ */ p(oe, {
293
293
  direction: t,
294
- children: /* @__PURE__ */ d("span", {
294
+ children: /* @__PURE__ */ p("span", {
295
295
  dir: t,
296
296
  style: { display: "contents" },
297
297
  children: e
@@ -300,28 +300,28 @@ function Ee({ children: e, direction: t = "ltr" }) {
300
300
  }
301
301
  //#endregion
302
302
  //#region src/components/ui/Drawer.tsx
303
- function De({ trigger: e, title: t, description: n, children: r, side: i = "right", className: a }) {
304
- return /* @__PURE__ */ f(x.Root, { children: [/* @__PURE__ */ d(x.Trigger, { render: e }), /* @__PURE__ */ f(x.Portal, { children: [/* @__PURE__ */ d(x.Backdrop, { className: "bento-drawer-backdrop" }), /* @__PURE__ */ f(x.Popup, {
303
+ function we({ trigger: e, title: t, description: n, children: r, side: i = "right", className: a }) {
304
+ return /* @__PURE__ */ m(C.Root, { children: [/* @__PURE__ */ p(C.Trigger, { render: e }), /* @__PURE__ */ m(C.Portal, { children: [/* @__PURE__ */ p(C.Backdrop, { className: "bento-drawer-backdrop" }), /* @__PURE__ */ m(C.Popup, {
305
305
  className: o("bento-drawer-popup", a),
306
306
  "data-side": i,
307
307
  children: [
308
- /* @__PURE__ */ f("div", {
308
+ /* @__PURE__ */ m("div", {
309
309
  className: "bento-drawer-header",
310
- children: [/* @__PURE__ */ d(x.Title, {
310
+ children: [/* @__PURE__ */ p(C.Title, {
311
311
  className: "bento-drawer-title",
312
312
  children: t
313
- }), /* @__PURE__ */ d(x.Close, {
313
+ }), /* @__PURE__ */ p(C.Close, {
314
314
  className: "bento-button icon",
315
315
  "aria-label": "Close drawer",
316
- render: /* @__PURE__ */ d("button", { type: "button" }),
317
- children: /* @__PURE__ */ d(u, { size: 18 })
316
+ render: /* @__PURE__ */ p("button", { type: "button" }),
317
+ children: /* @__PURE__ */ p(f, { size: 18 })
318
318
  })]
319
319
  }),
320
- n && /* @__PURE__ */ d(x.Description, {
320
+ n && /* @__PURE__ */ p(C.Description, {
321
321
  className: "bento-drawer-description",
322
322
  children: n
323
323
  }),
324
- /* @__PURE__ */ d("div", {
324
+ /* @__PURE__ */ p("div", {
325
325
  className: "bento-drawer-body",
326
326
  children: r
327
327
  })
@@ -330,22 +330,22 @@ function De({ trigger: e, title: t, description: n, children: r, side: i = "righ
330
330
  }
331
331
  //#endregion
332
332
  //#region src/components/ui/Field.tsx
333
- function Oe({ label: e, description: t, error: n, children: r, className: i, ...a }) {
334
- return /* @__PURE__ */ f(S.Root, {
333
+ function Te({ label: e, description: t, error: n, children: r, className: i, ...a }) {
334
+ return /* @__PURE__ */ m(w.Root, {
335
335
  className: o("bento-field", i),
336
336
  invalid: !!n,
337
337
  ...a,
338
338
  children: [
339
- /* @__PURE__ */ d(S.Label, {
339
+ /* @__PURE__ */ p(w.Label, {
340
340
  className: "field-label",
341
341
  children: e
342
342
  }),
343
- /* @__PURE__ */ d(S.Control, { render: r }),
344
- t && /* @__PURE__ */ d(S.Description, {
343
+ /* @__PURE__ */ p(w.Control, { render: r }),
344
+ t && /* @__PURE__ */ p(w.Description, {
345
345
  className: "bento-field-description",
346
346
  children: t
347
347
  }),
348
- n && /* @__PURE__ */ d(S.Error, {
348
+ n && /* @__PURE__ */ p(w.Error, {
349
349
  className: "bento-field-error",
350
350
  children: n
351
351
  })
@@ -354,11 +354,11 @@ function Oe({ label: e, description: t, error: n, children: r, className: i, ...
354
354
  }
355
355
  //#endregion
356
356
  //#region src/components/ui/Fieldset.tsx
357
- function ke({ legend: e, children: t, className: n, ...r }) {
358
- return /* @__PURE__ */ f(C.Root, {
357
+ function Ee({ legend: e, children: t, className: n, ...r }) {
358
+ return /* @__PURE__ */ m(T.Root, {
359
359
  className: o("bento-fieldset", n),
360
360
  ...r,
361
- children: [/* @__PURE__ */ d(C.Legend, {
361
+ children: [/* @__PURE__ */ p(T.Legend, {
362
362
  className: "bento-fieldset-legend",
363
363
  children: e
364
364
  }), t]
@@ -366,57 +366,57 @@ function ke({ legend: e, children: t, className: n, ...r }) {
366
366
  }
367
367
  //#endregion
368
368
  //#region src/components/ui/Form.tsx
369
- var q = t(({ className: e, ...t }, n) => /* @__PURE__ */ d(ue, {
369
+ var X = t(({ className: e, ...t }, n) => /* @__PURE__ */ p(ce, {
370
370
  ref: n,
371
371
  className: o("bento-form", e),
372
372
  ...t
373
373
  }));
374
- q.displayName = "Form";
374
+ X.displayName = "Form";
375
375
  //#endregion
376
376
  //#region src/components/ui/Input.tsx
377
- var J = t(({ label: e, className: t, id: n, ...r }, i) => {
378
- let a = /* @__PURE__ */ d(de, {
377
+ var Z = t(({ label: e, className: t, id: n, ...r }, i) => {
378
+ let a = /* @__PURE__ */ p(le, {
379
379
  ref: i,
380
380
  id: n,
381
381
  className: o("bento-input", t),
382
382
  ...r
383
383
  });
384
- return e ? /* @__PURE__ */ f("div", {
384
+ return e ? /* @__PURE__ */ m("div", {
385
385
  className: "bento-field",
386
- children: [/* @__PURE__ */ d("label", {
386
+ children: [/* @__PURE__ */ p("label", {
387
387
  className: "bento-field-label",
388
388
  htmlFor: n,
389
389
  children: e
390
390
  }), a]
391
391
  }) : a;
392
392
  });
393
- J.displayName = "Input";
394
- var Y = t(({ label: e, className: t, id: n, ...r }, i) => {
395
- let a = /* @__PURE__ */ d("textarea", {
393
+ Z.displayName = "Input";
394
+ var De = t(({ label: e, className: t, id: n, ...r }, i) => {
395
+ let a = /* @__PURE__ */ p("textarea", {
396
396
  ref: i,
397
397
  id: n,
398
398
  className: o("bento-textarea", t),
399
399
  ...r
400
400
  });
401
- return e ? /* @__PURE__ */ f("div", {
401
+ return e ? /* @__PURE__ */ m("div", {
402
402
  className: "bento-field",
403
- children: [/* @__PURE__ */ d("label", {
403
+ children: [/* @__PURE__ */ p("label", {
404
404
  className: "bento-field-label",
405
405
  htmlFor: n,
406
406
  children: e
407
407
  }), a]
408
408
  }) : a;
409
409
  });
410
- Y.displayName = "Textarea";
410
+ De.displayName = "Textarea";
411
411
  //#endregion
412
412
  //#region src/components/ui/Menu.tsx
413
- function Ae({ trigger: e, items: t, className: n }) {
414
- return /* @__PURE__ */ f(w.Root, { children: [/* @__PURE__ */ d(w.Trigger, { render: e }), /* @__PURE__ */ d(w.Portal, { children: /* @__PURE__ */ d(w.Positioner, {
413
+ function Oe({ trigger: e, items: t, className: n }) {
414
+ return /* @__PURE__ */ m(E.Root, { children: [/* @__PURE__ */ p(E.Trigger, { render: e }), /* @__PURE__ */ p(E.Portal, { children: /* @__PURE__ */ p(E.Positioner, {
415
415
  className: "bento-menu-positioner",
416
416
  sideOffset: 8,
417
- children: /* @__PURE__ */ d(w.Popup, {
417
+ children: /* @__PURE__ */ p(E.Popup, {
418
418
  className: o("bento-menu-popup", n),
419
- children: t.map((e, t) => e === "separator" ? /* @__PURE__ */ d(w.Separator, { className: "bento-menu-separator" }, t) : /* @__PURE__ */ f(w.Item, {
419
+ children: t.map((e, t) => e === "separator" ? /* @__PURE__ */ p(E.Separator, { className: "bento-menu-separator" }, t) : /* @__PURE__ */ m(E.Item, {
420
420
  className: "bento-menu-item",
421
421
  disabled: e.disabled,
422
422
  onClick: e.onClick,
@@ -427,18 +427,18 @@ function Ae({ trigger: e, items: t, className: n }) {
427
427
  }
428
428
  //#endregion
429
429
  //#region src/components/ui/Menubar.tsx
430
- function je({ menus: e, className: t }) {
431
- return /* @__PURE__ */ d(fe, {
430
+ function ke({ menus: e, className: t }) {
431
+ return /* @__PURE__ */ p(ue, {
432
432
  className: o("bento-menubar", t),
433
- children: e.map((e) => /* @__PURE__ */ f(T.Root, { children: [/* @__PURE__ */ d(T.Trigger, {
433
+ children: e.map((e) => /* @__PURE__ */ m(D.Root, { children: [/* @__PURE__ */ p(D.Trigger, {
434
434
  className: "bento-menubar-trigger",
435
435
  children: e.label
436
- }), /* @__PURE__ */ d(T.Portal, { children: /* @__PURE__ */ d(T.Positioner, {
436
+ }), /* @__PURE__ */ p(D.Portal, { children: /* @__PURE__ */ p(D.Positioner, {
437
437
  className: "bento-menu-positioner",
438
438
  sideOffset: 8,
439
- children: /* @__PURE__ */ d(T.Popup, {
439
+ children: /* @__PURE__ */ p(D.Popup, {
440
440
  className: "bento-menu-popup",
441
- children: e.items.map((e) => /* @__PURE__ */ f(T.Item, {
441
+ children: e.items.map((e) => /* @__PURE__ */ m(D.Item, {
442
442
  className: "bento-menu-item",
443
443
  disabled: e.disabled,
444
444
  children: [e.icon, e.label]
@@ -449,54 +449,54 @@ function je({ menus: e, className: t }) {
449
449
  }
450
450
  //#endregion
451
451
  //#region src/components/ui/Meter.tsx
452
- var X = t(({ value: e = 0, min: t = 0, max: n = 100, showValue: r, className: a, ...s }, c) => {
453
- let l = (e - t) / (n - t) * 100, ee = i(() => l >= 80 ? "bento-meter-high" : l < 30 ? "bento-meter-low" : "bento-meter-mid", [l]);
454
- return /* @__PURE__ */ f("div", {
452
+ var Ae = t(({ value: e = 0, min: t = 0, max: n = 100, showValue: r, className: a, ...s }, c) => {
453
+ let l = (e - t) / (n - t) * 100, u = i(() => l >= 80 ? "bento-meter-high" : l < 30 ? "bento-meter-low" : "bento-meter-mid", [l]);
454
+ return /* @__PURE__ */ m("div", {
455
455
  className: o("bento-meter", a),
456
- children: [r && /* @__PURE__ */ f("div", {
456
+ children: [r && /* @__PURE__ */ m("div", {
457
457
  className: "bento-meter-label",
458
- children: [/* @__PURE__ */ d("span", { children: s["aria-label"] ?? "Meter" }), /* @__PURE__ */ f("span", {
458
+ children: [/* @__PURE__ */ p("span", { children: s["aria-label"] ?? "Meter" }), /* @__PURE__ */ m("span", {
459
459
  className: "bento-meter-value",
460
460
  children: [Math.round(l), "%"]
461
461
  })]
462
- }), /* @__PURE__ */ d(E.Root, {
462
+ }), /* @__PURE__ */ p(O.Root, {
463
463
  ref: c,
464
464
  value: e,
465
465
  min: t,
466
466
  max: n,
467
467
  ...s,
468
- children: /* @__PURE__ */ d(E.Track, {
468
+ children: /* @__PURE__ */ p(O.Track, {
469
469
  className: "bento-meter-track",
470
- children: /* @__PURE__ */ d(E.Indicator, { className: o("bento-meter-indicator", ee) })
470
+ children: /* @__PURE__ */ p(O.Indicator, { className: o("bento-meter-indicator", u) })
471
471
  })
472
472
  })]
473
473
  });
474
474
  });
475
- X.displayName = "Meter";
475
+ Ae.displayName = "Meter";
476
476
  //#endregion
477
477
  //#region src/components/ui/NavigationMenu.tsx
478
- function Me({ items: e, className: t }) {
479
- return /* @__PURE__ */ d(D.Root, {
478
+ function je({ items: e, className: t }) {
479
+ return /* @__PURE__ */ p(k.Root, {
480
480
  className: o("bento-nav-menu", t),
481
- children: /* @__PURE__ */ d(D.List, {
481
+ children: /* @__PURE__ */ p(k.List, {
482
482
  className: "bento-nav-menu-list",
483
- children: e.map((e, t) => e.children ? /* @__PURE__ */ f(D.Item, { children: [/* @__PURE__ */ f(D.Trigger, {
483
+ children: e.map((e, t) => e.children ? /* @__PURE__ */ m(k.Item, { children: [/* @__PURE__ */ m(k.Trigger, {
484
484
  className: "bento-nav-menu-trigger",
485
- children: [e.label, /* @__PURE__ */ d(l, { size: 14 })]
486
- }), /* @__PURE__ */ d(D.Portal, { children: /* @__PURE__ */ d(D.Positioner, {
485
+ children: [e.label, /* @__PURE__ */ p(l, { size: 14 })]
486
+ }), /* @__PURE__ */ p(k.Portal, { children: /* @__PURE__ */ p(k.Positioner, {
487
487
  sideOffset: 8,
488
- children: /* @__PURE__ */ d(D.Popup, {
488
+ children: /* @__PURE__ */ p(k.Popup, {
489
489
  className: "bento-nav-menu-popup",
490
- children: e.children.map((e, t) => /* @__PURE__ */ d(D.Item, {
490
+ children: e.children.map((e, t) => /* @__PURE__ */ p(k.Item, {
491
491
  className: "bento-nav-menu-item",
492
- render: /* @__PURE__ */ d("a", { href: e.href }),
492
+ render: /* @__PURE__ */ p("a", { href: e.href }),
493
493
  children: e.label
494
494
  }, t))
495
495
  })
496
- }) })] }, t) : /* @__PURE__ */ d(D.Item, { children: /* @__PURE__ */ d(D.Link, {
496
+ }) })] }, t) : /* @__PURE__ */ p(k.Item, { children: /* @__PURE__ */ p(k.Link, {
497
497
  className: "bento-nav-menu-trigger",
498
498
  href: e.href,
499
- render: /* @__PURE__ */ d("a", { href: e.href }),
499
+ render: /* @__PURE__ */ p("a", { href: e.href }),
500
500
  children: e.label
501
501
  }) }, t))
502
502
  })
@@ -504,26 +504,26 @@ function Me({ items: e, className: t }) {
504
504
  }
505
505
  //#endregion
506
506
  //#region src/components/ui/NumberField.tsx
507
- function Ne({ label: e, className: t, ...n }) {
508
- return /* @__PURE__ */ f(O.Root, {
507
+ function Me({ label: e, className: t, ...n }) {
508
+ return /* @__PURE__ */ m(A.Root, {
509
509
  className: o("bento-number-field", t),
510
510
  ...n,
511
- children: [e && /* @__PURE__ */ d("label", {
511
+ children: [e && /* @__PURE__ */ p("label", {
512
512
  className: "field-label",
513
513
  children: e
514
- }), /* @__PURE__ */ f(O.Group, {
514
+ }), /* @__PURE__ */ m(A.Group, {
515
515
  className: "bento-number-field-group",
516
516
  children: [
517
- /* @__PURE__ */ d(O.Decrement, {
517
+ /* @__PURE__ */ p(A.Decrement, {
518
518
  className: "bento-number-field-button",
519
519
  "aria-label": "Decrease",
520
- children: /* @__PURE__ */ d(ne, { size: 14 })
520
+ children: /* @__PURE__ */ p(te, { size: 14 })
521
521
  }),
522
- /* @__PURE__ */ d(O.Input, { className: "bento-number-field-input" }),
523
- /* @__PURE__ */ d(O.Increment, {
522
+ /* @__PURE__ */ p(A.Input, { className: "bento-number-field-input" }),
523
+ /* @__PURE__ */ p(A.Increment, {
524
524
  className: "bento-number-field-button",
525
525
  "aria-label": "Increase",
526
- children: /* @__PURE__ */ d(re, { size: 14 })
526
+ children: /* @__PURE__ */ p(ne, { size: 14 })
527
527
  })
528
528
  ]
529
529
  })]
@@ -531,34 +531,34 @@ function Ne({ label: e, className: t, ...n }) {
531
531
  }
532
532
  //#endregion
533
533
  //#region src/components/ui/OtpField.tsx
534
- function Pe({ length: e = 6, label: t, className: n, ...r }) {
535
- return /* @__PURE__ */ f(k.Root, {
534
+ function Ne({ length: e = 6, label: t, className: n, ...r }) {
535
+ return /* @__PURE__ */ m(j.Root, {
536
536
  className: o("bento-otp-field", n),
537
537
  length: e,
538
538
  ...r,
539
- children: [t && /* @__PURE__ */ d("label", {
539
+ children: [t && /* @__PURE__ */ p("label", {
540
540
  className: "field-label",
541
541
  children: t
542
- }), /* @__PURE__ */ d("div", {
542
+ }), /* @__PURE__ */ p("div", {
543
543
  className: "bento-otp-inputs",
544
- children: Array.from({ length: e }, (e, t) => /* @__PURE__ */ d(k.Input, { className: "bento-otp-input" }, t))
544
+ children: Array.from({ length: e }, (e, t) => /* @__PURE__ */ p(j.Input, { className: "bento-otp-input" }, t))
545
545
  })]
546
546
  });
547
547
  }
548
548
  //#endregion
549
549
  //#region src/components/ui/Popover.tsx
550
- function Fe({ trigger: e, title: t, description: n, children: r, className: i }) {
551
- return /* @__PURE__ */ f(A.Root, { children: [/* @__PURE__ */ d(A.Trigger, { render: e }), /* @__PURE__ */ d(A.Portal, { children: /* @__PURE__ */ d(A.Positioner, {
550
+ function Pe({ trigger: e, title: t, description: n, children: r, className: i }) {
551
+ return /* @__PURE__ */ m(M.Root, { children: [/* @__PURE__ */ p(M.Trigger, { render: e }), /* @__PURE__ */ p(M.Portal, { children: /* @__PURE__ */ p(M.Positioner, {
552
552
  sideOffset: 10,
553
- children: /* @__PURE__ */ f(A.Popup, {
553
+ children: /* @__PURE__ */ m(M.Popup, {
554
554
  className: o("bento-popover-popup", i),
555
555
  children: [
556
- /* @__PURE__ */ d(A.Arrow, { className: "bento-popover-arrow" }),
557
- t && /* @__PURE__ */ d(A.Title, {
556
+ /* @__PURE__ */ p(M.Arrow, { className: "bento-popover-arrow" }),
557
+ t && /* @__PURE__ */ p(M.Title, {
558
558
  className: "bento-popover-title",
559
559
  children: t
560
560
  }),
561
- n && /* @__PURE__ */ d(A.Description, {
561
+ n && /* @__PURE__ */ p(M.Description, {
562
562
  className: "bento-popover-description",
563
563
  children: n
564
564
  }),
@@ -569,22 +569,22 @@ function Fe({ trigger: e, title: t, description: n, children: r, className: i })
569
569
  }
570
570
  //#endregion
571
571
  //#region src/components/ui/PreviewCard.tsx
572
- function Ie({ trigger: e, title: t, description: n, imageUrl: r, imageAlt: i, className: a }) {
573
- return /* @__PURE__ */ f(j.Root, { children: [/* @__PURE__ */ d(j.Trigger, { render: e }), /* @__PURE__ */ d(j.Portal, { children: /* @__PURE__ */ d(j.Positioner, {
572
+ function Fe({ trigger: e, title: t, description: n, imageUrl: r, imageAlt: i, className: a }) {
573
+ return /* @__PURE__ */ m(N.Root, { children: [/* @__PURE__ */ p(N.Trigger, { render: e }), /* @__PURE__ */ p(N.Portal, { children: /* @__PURE__ */ p(N.Positioner, {
574
574
  sideOffset: 10,
575
- children: /* @__PURE__ */ f(j.Popup, {
575
+ children: /* @__PURE__ */ m(N.Popup, {
576
576
  className: o("bento-preview-card", a),
577
577
  children: [
578
- /* @__PURE__ */ d(j.Arrow, { className: "bento-preview-card-arrow" }),
579
- r && /* @__PURE__ */ d("img", {
578
+ /* @__PURE__ */ p(N.Arrow, { className: "bento-preview-card-arrow" }),
579
+ r && /* @__PURE__ */ p("img", {
580
580
  src: r,
581
581
  alt: i ?? ""
582
582
  }),
583
- /* @__PURE__ */ d("h3", {
583
+ /* @__PURE__ */ p("h3", {
584
584
  className: "bento-preview-card-title",
585
585
  children: t
586
586
  }),
587
- n && /* @__PURE__ */ d("p", {
587
+ n && /* @__PURE__ */ p("p", {
588
588
  className: "bento-preview-card-description",
589
589
  children: n
590
590
  })
@@ -594,101 +594,101 @@ function Ie({ trigger: e, title: t, description: n, imageUrl: r, imageAlt: i, cl
594
594
  }
595
595
  //#endregion
596
596
  //#region src/components/ui/Progress.tsx
597
- var Le = t(({ value: e, showValue: t, className: n, ...r }, i) => /* @__PURE__ */ f("div", {
597
+ var Ie = t(({ value: e, showValue: t, className: n, ...r }, i) => /* @__PURE__ */ m("div", {
598
598
  className: o("bento-progress", n),
599
- children: [t && /* @__PURE__ */ f("div", {
599
+ children: [t && /* @__PURE__ */ m("div", {
600
600
  className: "bento-progress-label",
601
- children: [/* @__PURE__ */ d("span", { children: r["aria-label"] ?? "Progress" }), /* @__PURE__ */ f("span", {
601
+ children: [/* @__PURE__ */ p("span", { children: r["aria-label"] ?? "Progress" }), /* @__PURE__ */ m("span", {
602
602
  className: "bento-progress-value",
603
603
  children: [e ?? 0, "%"]
604
604
  })]
605
- }), /* @__PURE__ */ d(M.Root, {
605
+ }), /* @__PURE__ */ p(P.Root, {
606
606
  ref: i,
607
607
  value: e,
608
608
  ...r,
609
- children: /* @__PURE__ */ d(M.Track, {
609
+ children: /* @__PURE__ */ p(P.Track, {
610
610
  className: "bento-progress-track",
611
- children: /* @__PURE__ */ d(M.Indicator, { className: "bento-progress-indicator" })
611
+ children: /* @__PURE__ */ p(P.Indicator, { className: "bento-progress-indicator" })
612
612
  })
613
613
  })]
614
614
  }));
615
- Le.displayName = "Progress";
615
+ Ie.displayName = "Progress";
616
616
  //#endregion
617
617
  //#region src/components/ui/Radio.tsx
618
- function Re({ label: e, className: t, ...n }) {
619
- let r = /* @__PURE__ */ d(N.Root, {
618
+ function Le({ label: e, className: t, ...n }) {
619
+ let r = /* @__PURE__ */ p(F.Root, {
620
620
  className: o("bento-radio", t),
621
621
  ...n,
622
- children: /* @__PURE__ */ d(N.Indicator, { className: "bento-radio-indicator" })
622
+ children: /* @__PURE__ */ p(F.Indicator, { className: "bento-radio-indicator" })
623
623
  });
624
- return e ? /* @__PURE__ */ f("label", {
624
+ return e ? /* @__PURE__ */ m("label", {
625
625
  className: "bento-radio-label",
626
626
  children: [r, e]
627
627
  }) : r;
628
628
  }
629
629
  //#endregion
630
630
  //#region src/components/ui/RadioGroup.tsx
631
- function ze({ options: e, defaultValue: t, className: n, ...r }) {
632
- return /* @__PURE__ */ d(pe, {
631
+ function Re({ options: e, defaultValue: t, className: n, ...r }) {
632
+ return /* @__PURE__ */ p(de, {
633
633
  defaultValue: t,
634
634
  className: o("bento-radio-group", n),
635
635
  ...r,
636
- children: e.map((e) => /* @__PURE__ */ f("label", {
636
+ children: e.map((e) => /* @__PURE__ */ m("label", {
637
637
  className: "bento-radio-label",
638
- children: [/* @__PURE__ */ d(P.Root, {
638
+ children: [/* @__PURE__ */ p(I.Root, {
639
639
  className: "bento-radio",
640
640
  value: e.value,
641
- children: /* @__PURE__ */ d(P.Indicator, { className: "bento-radio-indicator" })
641
+ children: /* @__PURE__ */ p(I.Indicator, { className: "bento-radio-indicator" })
642
642
  }), e.label]
643
643
  }, e.value))
644
644
  });
645
645
  }
646
646
  //#endregion
647
647
  //#region src/components/ui/ScrollArea.tsx
648
- var Be = t(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ f(F.Root, {
648
+ var ze = t(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ m(L.Root, {
649
649
  ref: r,
650
650
  className: o("bento-scroll-area", e),
651
651
  ...n,
652
652
  children: [
653
- /* @__PURE__ */ d(F.Viewport, {
653
+ /* @__PURE__ */ p(L.Viewport, {
654
654
  className: "bento-scroll-area-viewport",
655
655
  children: t
656
656
  }),
657
- /* @__PURE__ */ d(F.Scrollbar, {
657
+ /* @__PURE__ */ p(L.Scrollbar, {
658
658
  className: "bento-scroll-area-scrollbar",
659
- children: /* @__PURE__ */ d(F.Thumb, { className: "bento-scroll-area-thumb" })
659
+ children: /* @__PURE__ */ p(L.Thumb, { className: "bento-scroll-area-thumb" })
660
660
  }),
661
- /* @__PURE__ */ d(F.Corner, { className: "bento-scroll-area-corner" })
661
+ /* @__PURE__ */ p(L.Corner, { className: "bento-scroll-area-corner" })
662
662
  ]
663
663
  }));
664
- Be.displayName = "ScrollArea";
664
+ ze.displayName = "ScrollArea";
665
665
  //#endregion
666
666
  //#region src/components/ui/Select.tsx
667
- function Ve({ items: e, label: t, placeholder: n, defaultValue: r, ...i }) {
668
- return /* @__PURE__ */ f(I.Root, {
667
+ function Be({ items: e, label: t, placeholder: n, defaultValue: r, ...i }) {
668
+ return /* @__PURE__ */ m(R.Root, {
669
669
  defaultValue: r,
670
670
  items: e,
671
671
  ...i,
672
672
  children: [
673
- t && /* @__PURE__ */ d("label", {
673
+ t && /* @__PURE__ */ p("label", {
674
674
  className: "field-label",
675
675
  htmlFor: i.id,
676
676
  children: t
677
677
  }),
678
- /* @__PURE__ */ f(I.Trigger, {
678
+ /* @__PURE__ */ m(R.Trigger, {
679
679
  id: i.id,
680
680
  className: "bento-select-trigger",
681
- children: [/* @__PURE__ */ d(I.Value, { placeholder: n }), /* @__PURE__ */ d(I.Icon, { children: /* @__PURE__ */ d(l, { size: 16 }) })]
681
+ children: [/* @__PURE__ */ p(R.Value, { placeholder: n }), /* @__PURE__ */ p(R.Icon, { children: /* @__PURE__ */ p(l, { size: 16 }) })]
682
682
  }),
683
- /* @__PURE__ */ d(I.Portal, { children: /* @__PURE__ */ d(I.Positioner, {
683
+ /* @__PURE__ */ p(R.Portal, { children: /* @__PURE__ */ p(R.Positioner, {
684
684
  className: "bento-select-positioner",
685
685
  sideOffset: 8,
686
- children: /* @__PURE__ */ d(I.Popup, {
686
+ children: /* @__PURE__ */ p(R.Popup, {
687
687
  className: o("bento-select-popup"),
688
- children: Object.entries(e).map(([e, t]) => /* @__PURE__ */ f(I.Item, {
688
+ children: Object.entries(e).map(([e, t]) => /* @__PURE__ */ m(R.Item, {
689
689
  className: "bento-select-item",
690
690
  value: e,
691
- children: [/* @__PURE__ */ d(I.ItemIndicator, { children: /* @__PURE__ */ d(c, { size: 15 }) }), /* @__PURE__ */ d(I.ItemText, { children: t })]
691
+ children: [/* @__PURE__ */ p(R.ItemIndicator, { children: /* @__PURE__ */ p(c, { size: 15 }) }), /* @__PURE__ */ p(R.ItemText, { children: t })]
692
692
  }, e))
693
693
  })
694
694
  }) })
@@ -697,107 +697,107 @@ function Ve({ items: e, label: t, placeholder: n, defaultValue: r, ...i }) {
697
697
  }
698
698
  //#endregion
699
699
  //#region src/components/ui/Separator.tsx
700
- var He = t(({ className: e, ...t }, n) => /* @__PURE__ */ d(me, {
700
+ var Ve = t(({ className: e, ...t }, n) => /* @__PURE__ */ p(fe, {
701
701
  ref: n,
702
702
  className: o("bento-separator", e),
703
703
  ...t
704
704
  }));
705
- He.displayName = "Separator";
705
+ Ve.displayName = "Separator";
706
706
  //#endregion
707
707
  //#region src/components/ui/Slider.tsx
708
- var Ue = t(({ className: e, ...t }, n) => /* @__PURE__ */ d(L.Root, {
708
+ var He = t(({ className: e, ...t }, n) => /* @__PURE__ */ p(z.Root, {
709
709
  ref: n,
710
710
  className: o("bento-slider", e),
711
711
  ...t,
712
- children: /* @__PURE__ */ d(L.Control, {
712
+ children: /* @__PURE__ */ p(z.Control, {
713
713
  className: "bento-slider-control",
714
- children: /* @__PURE__ */ f(L.Track, {
714
+ children: /* @__PURE__ */ m(z.Track, {
715
715
  className: "bento-slider-track",
716
- children: [/* @__PURE__ */ d(L.Indicator, { className: "bento-slider-indicator" }), /* @__PURE__ */ d(L.Thumb, { className: "bento-slider-thumb" })]
716
+ children: [/* @__PURE__ */ p(z.Indicator, { className: "bento-slider-indicator" }), /* @__PURE__ */ p(z.Thumb, { className: "bento-slider-thumb" })]
717
717
  })
718
718
  })
719
719
  }));
720
- Ue.displayName = "Slider";
720
+ He.displayName = "Slider";
721
721
  //#endregion
722
722
  //#region src/components/ui/Switch.tsx
723
- var We = t(({ label: e, className: t, id: n, ...r }, i) => {
724
- let a = /* @__PURE__ */ d(he.Root, {
723
+ var Ue = t(({ label: e, className: t, id: n, ...r }, i) => {
724
+ let a = /* @__PURE__ */ p(B.Root, {
725
725
  ref: i,
726
726
  id: n,
727
727
  className: o("bento-switch", t),
728
728
  ...r,
729
- children: /* @__PURE__ */ d(he.Thumb, { className: "bento-switch-thumb" })
729
+ children: /* @__PURE__ */ p(B.Thumb, { className: "bento-switch-thumb" })
730
730
  });
731
- return e ? /* @__PURE__ */ f("label", {
731
+ return e ? /* @__PURE__ */ m("label", {
732
732
  className: "bento-switch-label",
733
733
  htmlFor: n,
734
734
  children: [a, e]
735
735
  }) : a;
736
736
  });
737
- We.displayName = "Switch";
737
+ Ue.displayName = "Switch";
738
738
  //#endregion
739
739
  //#region src/components/ui/Tabs.tsx
740
- function Ge({ panels: e, defaultValue: t, className: n, ...r }) {
741
- return /* @__PURE__ */ f(R.Root, {
740
+ function We({ panels: e, defaultValue: t, className: n, ...r }) {
741
+ return /* @__PURE__ */ m(V.Root, {
742
742
  defaultValue: t ?? e[0]?.value,
743
743
  className: o("bento-tabs", n),
744
744
  ...r,
745
- children: [/* @__PURE__ */ f(R.List, {
745
+ children: [/* @__PURE__ */ m(V.List, {
746
746
  className: o("bento-tabs-list", `cols-${e.length}`),
747
- children: [e.map((e) => /* @__PURE__ */ d(R.Tab, {
747
+ children: [e.map((e) => /* @__PURE__ */ p(V.Tab, {
748
748
  className: "bento-tabs-tab",
749
749
  value: e.value,
750
750
  children: e.label
751
- }, e.value)), /* @__PURE__ */ d(R.Indicator, { className: "bento-tabs-indicator" })]
752
- }), e.map((e) => /* @__PURE__ */ f(R.Panel, {
751
+ }, e.value)), /* @__PURE__ */ p(V.Indicator, { className: "bento-tabs-indicator" })]
752
+ }), e.map((e) => /* @__PURE__ */ m(V.Panel, {
753
753
  className: "bento-tabs-panel",
754
754
  value: e.value,
755
- children: [e.title && /* @__PURE__ */ d("strong", {
755
+ children: [e.title && /* @__PURE__ */ p("strong", {
756
756
  className: "bento-tabs-panel-title",
757
757
  children: e.title
758
- }), /* @__PURE__ */ d("p", { children: e.content })]
758
+ }), /* @__PURE__ */ p("p", { children: e.content })]
759
759
  }, e.value))]
760
760
  });
761
761
  }
762
762
  //#endregion
763
763
  //#region src/components/ui/Toggle.tsx
764
- var Ke = t(({ className: e, ...t }, n) => /* @__PURE__ */ d(z, {
764
+ var Ge = t(({ className: e, ...t }, n) => /* @__PURE__ */ p(H, {
765
765
  ref: n,
766
766
  className: o("bento-toggle", e),
767
767
  ...t
768
768
  }));
769
- Ke.displayName = "Toggle";
769
+ Ge.displayName = "Toggle";
770
770
  //#endregion
771
771
  //#region src/components/ui/Toast.tsx
772
- function qe() {
773
- let { toasts: e } = B.useToastManager();
774
- return e.length === 0 ? null : /* @__PURE__ */ d("div", {
772
+ function Ke() {
773
+ let { toasts: e } = U.useToastManager();
774
+ return e.length === 0 ? null : /* @__PURE__ */ p("div", {
775
775
  className: "bento-toast-provider",
776
- children: e.map((e) => /* @__PURE__ */ f(B.Root, {
776
+ children: e.map((e) => /* @__PURE__ */ m(U.Root, {
777
777
  className: "bento-toast",
778
778
  toast: e,
779
- children: [/* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d(B.Title, {
779
+ children: [/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p(U.Title, {
780
780
  className: "bento-toast-title",
781
781
  children: e.title
782
- }), e.description && /* @__PURE__ */ d(B.Description, {
782
+ }), e.description && /* @__PURE__ */ p(U.Description, {
783
783
  className: "bento-toast-description",
784
784
  children: e.description
785
- })] }), /* @__PURE__ */ d(B.Close, {
785
+ })] }), /* @__PURE__ */ p(U.Close, {
786
786
  className: "bento-toast-close",
787
787
  "aria-label": "Dismiss",
788
- render: /* @__PURE__ */ d("button", { type: "button" }),
789
- children: /* @__PURE__ */ d(u, { size: 15 })
788
+ render: /* @__PURE__ */ p("button", { type: "button" }),
789
+ children: /* @__PURE__ */ p(f, { size: 15 })
790
790
  })]
791
791
  }, e.id))
792
792
  });
793
793
  }
794
- function Je({ children: e }) {
795
- return /* @__PURE__ */ f(B.Provider, { children: [e, /* @__PURE__ */ d(qe, {})] });
794
+ function qe({ children: e }) {
795
+ return /* @__PURE__ */ m(U.Provider, { children: [e, /* @__PURE__ */ p(Ke, {})] });
796
796
  }
797
797
  //#endregion
798
798
  //#region src/components/ui/useToastManager.ts
799
- function Ye() {
800
- let e = B.useToastManager();
799
+ function Je() {
800
+ let e = U.useToastManager();
801
801
  return {
802
802
  add: (t, n) => e.add({
803
803
  title: t,
@@ -808,12 +808,12 @@ function Ye() {
808
808
  }
809
809
  //#endregion
810
810
  //#region src/components/ui/ToggleGroup.tsx
811
- function Xe({ options: e, defaultValue: t, className: n, ...r }) {
812
- return /* @__PURE__ */ d(ge, {
811
+ function Ye({ options: e, defaultValue: t, className: n, ...r }) {
812
+ return /* @__PURE__ */ p(pe, {
813
813
  defaultValue: t,
814
814
  className: o("bento-toggle-group", n),
815
815
  ...r,
816
- children: e.map((e) => /* @__PURE__ */ d(z, {
816
+ children: e.map((e) => /* @__PURE__ */ p(H, {
817
817
  className: "bento-toggle",
818
818
  value: e.value,
819
819
  children: e.label
@@ -822,42 +822,42 @@ function Xe({ options: e, defaultValue: t, className: n, ...r }) {
822
822
  }
823
823
  //#endregion
824
824
  //#region src/components/ui/Toolbar.tsx
825
- function Ze({ className: e, showSearch: t = !0, ...n }) {
826
- return /* @__PURE__ */ f(V.Root, {
825
+ function Xe({ className: e, showSearch: t = !0, ...n }) {
826
+ return /* @__PURE__ */ m(W.Root, {
827
827
  className: o("bento-toolbar", e),
828
828
  ...n,
829
- children: [/* @__PURE__ */ f(V.Group, {
829
+ children: [/* @__PURE__ */ m(W.Group, {
830
830
  className: "bento-toolbar-group",
831
831
  children: [
832
- /* @__PURE__ */ d(Qe, {
832
+ /* @__PURE__ */ p(Ze, {
833
833
  "aria-label": "Bold",
834
- children: /* @__PURE__ */ d(s, { size: 15 })
834
+ children: /* @__PURE__ */ p(s, { size: 15 })
835
835
  }),
836
- /* @__PURE__ */ d(Qe, {
836
+ /* @__PURE__ */ p(Ze, {
837
837
  "aria-label": "Italic",
838
- children: /* @__PURE__ */ d(ee, { size: 15 })
838
+ children: /* @__PURE__ */ p(u, { size: 15 })
839
839
  }),
840
- /* @__PURE__ */ d(V.Separator, { className: "bento-toolbar-separator" }),
841
- /* @__PURE__ */ d(V.Link, {
840
+ /* @__PURE__ */ p(W.Separator, { className: "bento-toolbar-separator" }),
841
+ /* @__PURE__ */ p(W.Link, {
842
842
  className: "bento-toolbar-button",
843
843
  href: "https://base-ui.com",
844
844
  target: "_blank",
845
845
  rel: "noreferrer",
846
846
  "aria-label": "Base UI docs",
847
- children: /* @__PURE__ */ d(te, { size: 15 })
847
+ children: /* @__PURE__ */ p(ee, { size: 15 })
848
848
  })
849
849
  ]
850
- }), t && /* @__PURE__ */ f("div", {
850
+ }), t && /* @__PURE__ */ m("div", {
851
851
  className: "bento-toolbar-search",
852
- children: [/* @__PURE__ */ d(ie, { size: 14 }), /* @__PURE__ */ d(V.Input, {
852
+ children: [/* @__PURE__ */ p(d, { size: 14 }), /* @__PURE__ */ p(W.Input, {
853
853
  className: "bento-toolbar-input",
854
854
  placeholder: "Search docs"
855
855
  })]
856
856
  })]
857
857
  });
858
858
  }
859
- function Qe({ children: e, ...t }) {
860
- return /* @__PURE__ */ d(V.Button, {
859
+ function Ze({ children: e, ...t }) {
860
+ return /* @__PURE__ */ p(W.Button, {
861
861
  className: "bento-toolbar-button",
862
862
  ...t,
863
863
  children: e
@@ -865,54 +865,80 @@ function Qe({ children: e, ...t }) {
865
865
  }
866
866
  //#endregion
867
867
  //#region src/components/ui/Tooltip.tsx
868
- function $e({ content: e, children: t, className: n }) {
869
- return /* @__PURE__ */ f(H.Root, { children: [/* @__PURE__ */ d(H.Trigger, { render: t }), /* @__PURE__ */ d(H.Portal, { children: /* @__PURE__ */ d(H.Positioner, {
868
+ function Qe({ content: e, children: t, className: n }) {
869
+ return /* @__PURE__ */ m(G.Root, { children: [/* @__PURE__ */ p(G.Trigger, { render: t }), /* @__PURE__ */ p(G.Portal, { children: /* @__PURE__ */ p(G.Positioner, {
870
870
  sideOffset: 8,
871
- children: /* @__PURE__ */ f(H.Popup, {
871
+ children: /* @__PURE__ */ m(G.Popup, {
872
872
  className: o("bento-tooltip-popup", n),
873
- children: [e, /* @__PURE__ */ d(H.Arrow, { className: "bento-tooltip-arrow" })]
873
+ children: [e, /* @__PURE__ */ p(G.Arrow, { className: "bento-tooltip-arrow" })]
874
874
  })
875
875
  }) })] });
876
876
  }
877
- $e.Provider = H.Provider;
877
+ Qe.Provider = G.Provider;
878
878
  //#endregion
879
879
  //#region src/hooks/useTheme.ts
880
+ var $e = new Set([
881
+ "bento",
882
+ "shadcn",
883
+ "neo-brutalism",
884
+ "minimal",
885
+ "enterprise",
886
+ "linear",
887
+ "glass",
888
+ "terminal",
889
+ "material",
890
+ "fluent",
891
+ "retro",
892
+ "cyberpunk",
893
+ "editorial",
894
+ "calm",
895
+ "data-dense",
896
+ "playful",
897
+ "luxury",
898
+ "soft-ui",
899
+ "bauhaus",
900
+ "mono"
901
+ ]);
880
902
  function et() {
881
903
  if (typeof window > "u") return "system";
882
- let e = localStorage.getItem("bento-theme");
883
- return e === "light" || e === "dark" || e === "system" ? e : "system";
904
+ let e = new URLSearchParams(window.location.search).get("theme");
905
+ if (e === "light" || e === "dark" || e === "system") return e;
906
+ let t = localStorage.getItem("bento-theme");
907
+ return t === "light" || t === "dark" || t === "system" ? t : "system";
884
908
  }
885
909
  function tt() {
886
910
  if (typeof window > "u") return "bento";
887
- let e = localStorage.getItem("bento-style");
888
- return e === "bento" || e === "shadcn" || e === "neo-brutalism" ? e : "bento";
911
+ let e = new URLSearchParams(window.location.search).get("style");
912
+ if (e && $e.has(e)) return e;
913
+ let t = localStorage.getItem("bento-style");
914
+ return t && $e.has(t) ? t : "bento";
889
915
  }
890
- function Z(e) {
916
+ function Q(e) {
891
917
  return e === "system" ? typeof window > "u" ? "light" : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : e;
892
918
  }
893
- function Q(e) {
919
+ function $(e) {
894
920
  document.documentElement.setAttribute("data-theme", e);
895
921
  }
896
- function $(e) {
922
+ function nt(e) {
897
923
  document.documentElement.setAttribute("data-style", e);
898
924
  }
899
- function nt() {
925
+ function rt() {
900
926
  let [e, t] = a(et), [i, o] = a(tt), s = n((e) => {
901
- t(e), localStorage.setItem("bento-theme", e), Q(Z(e));
927
+ t(e), localStorage.setItem("bento-theme", e), $(Q(e));
902
928
  }, []), c = n((e) => {
903
- o(e), localStorage.setItem("bento-style", e), $(e);
929
+ o(e), localStorage.setItem("bento-style", e), nt(e);
904
930
  }, []);
905
931
  return r(() => {
906
- if (Q(Z(e)), $(i), e !== "system") return;
907
- let t = window.matchMedia("(prefers-color-scheme: dark)"), n = () => Q(t.matches ? "dark" : "light");
932
+ if ($(Q(e)), nt(i), e !== "system") return;
933
+ let t = window.matchMedia("(prefers-color-scheme: dark)"), n = () => $(t.matches ? "dark" : "light");
908
934
  return t.addEventListener("change", n), () => t.removeEventListener("change", n);
909
935
  }, [e, i]), {
910
936
  theme: e,
911
937
  setTheme: s,
912
- resolved: Z(e),
938
+ resolved: Q(e),
913
939
  style: i,
914
940
  setStyle: c
915
941
  };
916
942
  }
917
943
  //#endregion
918
- export { _e as Accordion, ve as AlertDialog, ye as Autocomplete, U as Avatar, W as AvatarGroup, G as Button, K as Checkbox, be as CheckboxGroup, xe as Collapsible, Se as Combobox, Ce as ContextMenu, we as CspProvider, Te as Dialog, Ee as DirectionProvider, De as Drawer, Oe as Field, ke as Fieldset, q as Form, J as Input, Ae as Menu, je as Menubar, X as Meter, Me as NavigationMenu, Ne as NumberField, Pe as OtpField, Fe as Popover, Ie as PreviewCard, Le as Progress, Re as Radio, ze as RadioGroup, Be as ScrollArea, Ve as Select, He as Separator, Ue as Slider, We as Switch, Ge as Tabs, Y as Textarea, Je as ToastProvider, Ke as Toggle, Xe as ToggleGroup, Ze as Toolbar, $e as Tooltip, le as useDirection, nt as useTheme, Ye as useToastManager };
944
+ export { me as Accordion, he as AlertDialog, ge as Autocomplete, K as Avatar, q as AvatarGroup, J as Button, Y as Checkbox, _e as CheckboxGroup, ve as Collapsible, ye as Combobox, be as ContextMenu, xe as CspProvider, Se as Dialog, Ce as DirectionProvider, we as Drawer, Te as Field, Ee as Fieldset, X as Form, Z as Input, Oe as Menu, ke as Menubar, Ae as Meter, je as NavigationMenu, Me as NumberField, Ne as OtpField, Pe as Popover, Fe as PreviewCard, Ie as Progress, Le as Radio, Re as RadioGroup, ze as ScrollArea, Be as Select, Ve as Separator, He as Slider, Ue as Switch, We as Tabs, De as Textarea, qe as ToastProvider, Ge as Toggle, Ye as ToggleGroup, Xe as Toolbar, Qe as Tooltip, se as useDirection, rt as useTheme, Je as useToastManager };