@usememos/ui 26.10.0

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 (66) hide show
  1. package/README.md +117 -0
  2. package/dist/button.cjs +74 -0
  3. package/dist/button.d.cts +15 -0
  4. package/dist/button.d.ts +15 -0
  5. package/dist/button.js +7 -0
  6. package/dist/checkbox.cjs +98 -0
  7. package/dist/checkbox.d.cts +16 -0
  8. package/dist/checkbox.d.ts +16 -0
  9. package/dist/checkbox.js +7 -0
  10. package/dist/chunk-3DNMGJFC.js +216 -0
  11. package/dist/chunk-3VYNJ6UM.js +27 -0
  12. package/dist/chunk-3YY2G3JK.js +125 -0
  13. package/dist/chunk-5GQEJQKE.js +60 -0
  14. package/dist/chunk-6TNEFWVX.js +9 -0
  15. package/dist/chunk-BH4MPO4N.js +25 -0
  16. package/dist/chunk-F6GH4X7N.js +34 -0
  17. package/dist/chunk-HYN2P4OY.js +84 -0
  18. package/dist/chunk-OIUVLPTE.js +54 -0
  19. package/dist/chunk-S6LVYCE6.js +157 -0
  20. package/dist/chunk-SNSDJKJP.js +44 -0
  21. package/dist/chunk-WPO54YPG.js +328 -0
  22. package/dist/chunk-Z3ME5VRQ.js +98 -0
  23. package/dist/control-size-Bz2gyuyO.d.cts +3 -0
  24. package/dist/control-size-Bz2gyuyO.d.ts +3 -0
  25. package/dist/dialog.cjs +203 -0
  26. package/dist/dialog.d.cts +34 -0
  27. package/dist/dialog.d.ts +34 -0
  28. package/dist/dialog.js +8 -0
  29. package/dist/dropdown-menu.cjs +378 -0
  30. package/dist/dropdown-menu.d.cts +60 -0
  31. package/dist/dropdown-menu.d.ts +60 -0
  32. package/dist/dropdown-menu.js +8 -0
  33. package/dist/index.cjs +1223 -0
  34. package/dist/index.d.cts +21 -0
  35. package/dist/index.d.ts +21 -0
  36. package/dist/index.js +48 -0
  37. package/dist/input.cjs +67 -0
  38. package/dist/input.d.cts +11 -0
  39. package/dist/input.d.ts +11 -0
  40. package/dist/input.js +7 -0
  41. package/dist/popover.cjs +175 -0
  42. package/dist/popover.d.cts +53 -0
  43. package/dist/popover.d.ts +53 -0
  44. package/dist/popover.js +8 -0
  45. package/dist/radio-group.cjs +122 -0
  46. package/dist/radio-group.d.cts +25 -0
  47. package/dist/radio-group.d.ts +25 -0
  48. package/dist/radio-group.js +7 -0
  49. package/dist/select.cjs +266 -0
  50. package/dist/select.d.cts +45 -0
  51. package/dist/select.d.ts +45 -0
  52. package/dist/select.js +8 -0
  53. package/dist/separator.cjs +82 -0
  54. package/dist/separator.d.cts +12 -0
  55. package/dist/separator.d.ts +12 -0
  56. package/dist/separator.js +7 -0
  57. package/dist/switch.cjs +92 -0
  58. package/dist/switch.d.cts +16 -0
  59. package/dist/switch.d.ts +16 -0
  60. package/dist/switch.js +7 -0
  61. package/dist/theme.css +1097 -0
  62. package/dist/tooltip.cjs +148 -0
  63. package/dist/tooltip.d.cts +24 -0
  64. package/dist/tooltip.d.ts +24 -0
  65. package/dist/tooltip.js +8 -0
  66. package/package.json +172 -0
package/dist/index.cjs ADDED
@@ -0,0 +1,1223 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // src/index.ts
31
+ var src_exports = {};
32
+ __export(src_exports, {
33
+ Button: () => Button,
34
+ Checkbox: () => Checkbox2,
35
+ Dialog: () => Dialog2,
36
+ DropdownMenu: () => DropdownMenu2,
37
+ Input: () => Input,
38
+ Popover: () => Popover2,
39
+ RadioGroup: () => RadioGroup,
40
+ Select: () => Select2,
41
+ Separator: () => Separator2,
42
+ Switch: () => Switch2,
43
+ Tooltip: () => Tooltip2
44
+ });
45
+ module.exports = __toCommonJS(src_exports);
46
+
47
+ // src/foundation/button.tsx
48
+ var React = __toESM(require("react"), 1);
49
+
50
+ // src/shared/cx.ts
51
+ var import_clsx = require("clsx");
52
+ function cx(...values) {
53
+ return (0, import_clsx.clsx)(values);
54
+ }
55
+
56
+ // src/foundation/button.tsx
57
+ var import_jsx_runtime = require("react/jsx-runtime");
58
+ var Button = React.forwardRef(
59
+ ({
60
+ className,
61
+ variant = "default",
62
+ size = "md",
63
+ disabled,
64
+ ...props
65
+ }, ref) => {
66
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
67
+ "button",
68
+ {
69
+ ref,
70
+ className: cx("mui-button", className),
71
+ "data-size": size,
72
+ "data-variant": variant,
73
+ "data-disabled": disabled ? "" : void 0,
74
+ disabled,
75
+ ...props
76
+ }
77
+ );
78
+ }
79
+ );
80
+ Button.displayName = "Button";
81
+
82
+ // src/foundation/checkbox.tsx
83
+ var import_lucide_react = require("lucide-react");
84
+
85
+ // ../primitives/src/foundation/checkbox.tsx
86
+ var import_checkbox = require("@base-ui/react/checkbox");
87
+ var React2 = __toESM(require("react"), 1);
88
+ var import_jsx_runtime2 = require("react/jsx-runtime");
89
+ var Root = React2.forwardRef((props, ref) => {
90
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
91
+ import_checkbox.Checkbox.Root,
92
+ {
93
+ ref,
94
+ "data-scope": "checkbox",
95
+ "data-part": "root",
96
+ ...props
97
+ }
98
+ );
99
+ });
100
+ var Indicator = React2.forwardRef((props, ref) => {
101
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
102
+ import_checkbox.Checkbox.Indicator,
103
+ {
104
+ ref,
105
+ "data-scope": "checkbox",
106
+ "data-part": "indicator",
107
+ ...props
108
+ }
109
+ );
110
+ });
111
+ Root.displayName = "Checkbox.Root";
112
+ Indicator.displayName = "Checkbox.Indicator";
113
+ var Checkbox = {
114
+ Root,
115
+ Indicator
116
+ };
117
+
118
+ // src/foundation/checkbox.tsx
119
+ var import_jsx_runtime3 = require("react/jsx-runtime");
120
+ function Checkbox2({ className, children, size = "md", ...props }) {
121
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
122
+ Checkbox.Root,
123
+ {
124
+ className: cx("mui-checkbox", className),
125
+ "data-size": size,
126
+ ...props,
127
+ children: [
128
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Checkbox.Indicator, { className: "mui-checkbox__indicator", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_lucide_react.CheckIcon, { size: 10, strokeWidth: 3 }) }),
129
+ children
130
+ ]
131
+ }
132
+ );
133
+ }
134
+
135
+ // src/foundation/input.tsx
136
+ var React3 = __toESM(require("react"), 1);
137
+ var import_jsx_runtime4 = require("react/jsx-runtime");
138
+ var Input = React3.forwardRef(
139
+ ({ className, disabled, size = "md", ...props }, ref) => {
140
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
141
+ "input",
142
+ {
143
+ ref,
144
+ className: cx("mui-input", className),
145
+ "data-disabled": disabled ? "" : void 0,
146
+ "data-size": size,
147
+ disabled,
148
+ ...props
149
+ }
150
+ );
151
+ }
152
+ );
153
+ Input.displayName = "Input";
154
+
155
+ // ../primitives/src/foundation/radio-group.tsx
156
+ var import_radio = require("@base-ui/react/radio");
157
+ var import_radio_group = require("@base-ui/react/radio-group");
158
+ var React4 = __toESM(require("react"), 1);
159
+ var import_jsx_runtime5 = require("react/jsx-runtime");
160
+ var Root2 = React4.forwardRef((props, ref) => {
161
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
162
+ import_radio_group.RadioGroup,
163
+ {
164
+ ref,
165
+ "data-scope": "radio-group",
166
+ "data-part": "root",
167
+ ...props
168
+ }
169
+ );
170
+ });
171
+ var Item = React4.forwardRef((props, ref) => {
172
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
173
+ import_radio.Radio.Root,
174
+ {
175
+ ref,
176
+ "data-scope": "radio-group",
177
+ "data-part": "item",
178
+ ...props
179
+ }
180
+ );
181
+ });
182
+ var Indicator2 = React4.forwardRef((props, ref) => {
183
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
184
+ import_radio.Radio.Indicator,
185
+ {
186
+ ref,
187
+ "data-scope": "radio-group",
188
+ "data-part": "indicator",
189
+ ...props
190
+ }
191
+ );
192
+ });
193
+ Root2.displayName = "RadioGroup.Root";
194
+ Item.displayName = "RadioGroup.Item";
195
+ Indicator2.displayName = "RadioGroup.Indicator";
196
+ var RadioGroupPrimitiveParts = {
197
+ Root: Root2,
198
+ Item,
199
+ Indicator: Indicator2
200
+ };
201
+
202
+ // src/foundation/radio-group.tsx
203
+ var import_jsx_runtime6 = require("react/jsx-runtime");
204
+ function Root3({ className, ...props }) {
205
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
206
+ RadioGroupPrimitiveParts.Root,
207
+ {
208
+ className: cx("mui-radio-group", className),
209
+ ...props
210
+ }
211
+ );
212
+ }
213
+ function Item2({ className, children, size = "md", ...props }) {
214
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
215
+ RadioGroupPrimitiveParts.Item,
216
+ {
217
+ className: cx("mui-radio-group__item", className),
218
+ "data-size": size,
219
+ ...props,
220
+ children: [
221
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(RadioGroupPrimitiveParts.Indicator, { className: "mui-radio-group__indicator" }),
222
+ children
223
+ ]
224
+ }
225
+ );
226
+ }
227
+ var RadioGroup = {
228
+ Root: Root3,
229
+ Item: Item2
230
+ };
231
+
232
+ // ../primitives/src/foundation/separator.tsx
233
+ var React5 = __toESM(require("react"), 1);
234
+ var import_separator = require("@base-ui/react/separator");
235
+ var import_jsx_runtime7 = require("react/jsx-runtime");
236
+ var Root4 = React5.forwardRef((props, ref) => {
237
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
238
+ import_separator.Separator,
239
+ {
240
+ ref,
241
+ "data-scope": "separator",
242
+ "data-part": "root",
243
+ ...props
244
+ }
245
+ );
246
+ });
247
+ Root4.displayName = "Separator.Root";
248
+ var Separator = {
249
+ Root: Root4
250
+ };
251
+
252
+ // src/foundation/separator.tsx
253
+ var import_jsx_runtime8 = require("react/jsx-runtime");
254
+ function Separator2({
255
+ className,
256
+ orientation = "horizontal",
257
+ ...props
258
+ }) {
259
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
260
+ Separator.Root,
261
+ {
262
+ className: cx("mui-separator", className),
263
+ orientation,
264
+ ...props
265
+ }
266
+ );
267
+ }
268
+
269
+ // ../primitives/src/foundation/switch.tsx
270
+ var React6 = __toESM(require("react"), 1);
271
+ var import_switch = require("@base-ui/react/switch");
272
+ var import_jsx_runtime9 = require("react/jsx-runtime");
273
+ var Root5 = React6.forwardRef((props, ref) => {
274
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
275
+ import_switch.Switch.Root,
276
+ {
277
+ ref,
278
+ "data-scope": "switch",
279
+ "data-part": "root",
280
+ ...props
281
+ }
282
+ );
283
+ });
284
+ var Thumb = React6.forwardRef((props, ref) => {
285
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
286
+ import_switch.Switch.Thumb,
287
+ {
288
+ ref,
289
+ "data-scope": "switch",
290
+ "data-part": "thumb",
291
+ ...props
292
+ }
293
+ );
294
+ });
295
+ Root5.displayName = "Switch.Root";
296
+ Thumb.displayName = "Switch.Thumb";
297
+ var Switch = {
298
+ Root: Root5,
299
+ Thumb
300
+ };
301
+
302
+ // src/foundation/switch.tsx
303
+ var import_jsx_runtime10 = require("react/jsx-runtime");
304
+ function Switch2({ className, size = "md", ...props }) {
305
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
306
+ Switch.Root,
307
+ {
308
+ className: cx("mui-switch", className),
309
+ "data-size": size,
310
+ ...props,
311
+ children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Switch.Thumb, { className: "mui-switch__thumb" })
312
+ }
313
+ );
314
+ }
315
+
316
+ // src/overlay/dialog.tsx
317
+ var import_lucide_react2 = require("lucide-react");
318
+ var React9 = __toESM(require("react"), 1);
319
+
320
+ // ../primitives/src/overlay/dialog.tsx
321
+ var import_dialog = require("@base-ui/react/dialog");
322
+ var React7 = __toESM(require("react"), 1);
323
+ var import_jsx_runtime11 = require("react/jsx-runtime");
324
+ var Root6 = (props) => {
325
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_dialog.Dialog.Root, { "data-scope": "dialog", "data-part": "root", ...props });
326
+ };
327
+ var Trigger = React7.forwardRef((props, ref) => {
328
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_dialog.Dialog.Trigger, { ref, "data-scope": "dialog", "data-part": "trigger", ...props });
329
+ });
330
+ var Portal = (props) => {
331
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_dialog.Dialog.Portal, { "data-scope": "dialog", "data-part": "portal", ...props });
332
+ };
333
+ var Overlay = React7.forwardRef((props, ref) => {
334
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_dialog.Dialog.Backdrop, { ref, "data-scope": "dialog", "data-part": "overlay", ...props });
335
+ });
336
+ var Content = React7.forwardRef((props, ref) => {
337
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_dialog.Dialog.Popup, { ref, "data-scope": "dialog", "data-part": "content", ...props });
338
+ });
339
+ var Close = React7.forwardRef((props, ref) => {
340
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_dialog.Dialog.Close, { ref, "data-scope": "dialog", "data-part": "close", ...props });
341
+ });
342
+ var Title = React7.forwardRef((props, ref) => {
343
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_dialog.Dialog.Title, { ref, "data-scope": "dialog", "data-part": "title", ...props });
344
+ });
345
+ var Description = React7.forwardRef((props, ref) => {
346
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_dialog.Dialog.Description, { ref, "data-scope": "dialog", "data-part": "description", ...props });
347
+ });
348
+ Root6.displayName = "Dialog.Root";
349
+ Trigger.displayName = "Dialog.Trigger";
350
+ Portal.displayName = "Dialog.Portal";
351
+ Overlay.displayName = "Dialog.Overlay";
352
+ Content.displayName = "Dialog.Content";
353
+ Close.displayName = "Dialog.Close";
354
+ Title.displayName = "Dialog.Title";
355
+ Description.displayName = "Dialog.Description";
356
+ var Dialog = {
357
+ Root: Root6,
358
+ Trigger,
359
+ Portal,
360
+ Overlay,
361
+ Content,
362
+ Close,
363
+ Title,
364
+ Description
365
+ };
366
+
367
+ // src/overlay/layer-context.tsx
368
+ var React8 = __toESM(require("react"), 1);
369
+ var import_jsx_runtime12 = require("react/jsx-runtime");
370
+ var OverlayLayerContext = React8.createContext("root");
371
+ function OverlayLayerProvider({
372
+ children,
373
+ value
374
+ }) {
375
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(OverlayLayerContext.Provider, { value, children });
376
+ }
377
+ function useOverlayLayerProps(props) {
378
+ const layer = React8.useContext(OverlayLayerContext);
379
+ if (layer === "root") {
380
+ return props;
381
+ }
382
+ return {
383
+ ...props,
384
+ "data-mui-layer": layer
385
+ };
386
+ }
387
+
388
+ // src/overlay/dialog.tsx
389
+ var import_jsx_runtime13 = require("react/jsx-runtime");
390
+ var Root7 = Dialog.Root;
391
+ var Trigger2 = Dialog.Trigger;
392
+ var Portal2 = Dialog.Portal;
393
+ var Overlay2 = React9.forwardRef(({ className, ...props }, ref) => {
394
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
395
+ Dialog.Overlay,
396
+ {
397
+ ref,
398
+ className: cx("mui-dialog__overlay", className),
399
+ ...props
400
+ }
401
+ );
402
+ });
403
+ var Close2 = React9.forwardRef(({ className, children, ...props }, ref) => {
404
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
405
+ Dialog.Close,
406
+ {
407
+ ref,
408
+ className: cx("mui-dialog__close", className),
409
+ ...props,
410
+ children: [
411
+ children ?? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_lucide_react2.XIcon, { size: 14, "aria-hidden": "true" }),
412
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "sr-only", children: "Close" })
413
+ ]
414
+ }
415
+ );
416
+ });
417
+ var Content2 = React9.forwardRef(({ className, children, showCloseButton = true, slotProps, ...props }, ref) => {
418
+ const closeProps = {
419
+ "aria-label": "Close dialog",
420
+ ...slotProps?.close
421
+ };
422
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(Portal2, { children: [
423
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Overlay2, {}),
424
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
425
+ Dialog.Content,
426
+ {
427
+ ref,
428
+ className: cx("mui-dialog__content", className),
429
+ ...props,
430
+ children: /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(OverlayLayerProvider, { value: "modal", children: [
431
+ children,
432
+ showCloseButton ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Close2, { ...closeProps }) : null
433
+ ] })
434
+ }
435
+ )
436
+ ] });
437
+ });
438
+ var Header = React9.forwardRef(
439
+ ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { ref, className: cx("mui-dialog__header", className), ...props })
440
+ );
441
+ var Footer = React9.forwardRef(
442
+ ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { ref, className: cx("mui-dialog__footer", className), ...props })
443
+ );
444
+ var Title2 = React9.forwardRef(({ className, ...props }, ref) => {
445
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
446
+ Dialog.Title,
447
+ {
448
+ ref,
449
+ className: cx("mui-dialog__title", className),
450
+ ...props
451
+ }
452
+ );
453
+ });
454
+ var Description2 = React9.forwardRef(({ className, ...props }, ref) => {
455
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
456
+ Dialog.Description,
457
+ {
458
+ ref,
459
+ className: cx("mui-dialog__description", className),
460
+ ...props
461
+ }
462
+ );
463
+ });
464
+ Header.displayName = "Dialog.Header";
465
+ Footer.displayName = "Dialog.Footer";
466
+ Title2.displayName = "Dialog.Title";
467
+ Description2.displayName = "Dialog.Description";
468
+ Close2.displayName = "Dialog.Close";
469
+ Content2.displayName = "Dialog.Content";
470
+ Overlay2.displayName = "Dialog.Overlay";
471
+ var Dialog2 = {
472
+ Root: Root7,
473
+ Trigger: Trigger2,
474
+ Portal: Portal2,
475
+ Overlay: Overlay2,
476
+ Content: Content2,
477
+ Close: Close2,
478
+ Header,
479
+ Footer,
480
+ Title: Title2,
481
+ Description: Description2
482
+ };
483
+
484
+ // src/overlay/dropdown-menu.tsx
485
+ var import_lucide_react3 = require("lucide-react");
486
+
487
+ // ../primitives/src/overlay/dropdown-menu.tsx
488
+ var import_menu = require("@base-ui/react/menu");
489
+ var React10 = __toESM(require("react"), 1);
490
+ var import_jsx_runtime14 = require("react/jsx-runtime");
491
+ var Root8 = (props) => {
492
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_menu.Menu.Root, { "data-scope": "dropdown-menu", "data-part": "root", ...props });
493
+ };
494
+ var Trigger3 = React10.forwardRef((props, ref) => {
495
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_menu.Menu.Trigger, { ref, "data-scope": "dropdown-menu", "data-part": "trigger", ...props });
496
+ });
497
+ var Portal3 = (props) => {
498
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_menu.Menu.Portal, { "data-scope": "dropdown-menu", "data-part": "portal", ...props });
499
+ };
500
+ var Content3 = React10.forwardRef(
501
+ ({
502
+ className,
503
+ children,
504
+ align = "start",
505
+ collisionPadding = 8,
506
+ sideOffset = 4,
507
+ ...props
508
+ }, ref) => {
509
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
510
+ import_menu.Menu.Positioner,
511
+ {
512
+ "data-scope": "dropdown-menu",
513
+ "data-part": "positioner",
514
+ align,
515
+ collisionPadding,
516
+ sideOffset,
517
+ ...props,
518
+ children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
519
+ import_menu.Menu.Popup,
520
+ {
521
+ ref,
522
+ "data-scope": "dropdown-menu",
523
+ "data-part": "content",
524
+ className,
525
+ children
526
+ }
527
+ )
528
+ }
529
+ );
530
+ }
531
+ );
532
+ var Item3 = React10.forwardRef((props, ref) => {
533
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_menu.Menu.Item, { ref, "data-scope": "dropdown-menu", "data-part": "item", ...props });
534
+ });
535
+ var CheckboxItem = React10.forwardRef((props, ref) => {
536
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_menu.Menu.CheckboxItem, { ref, "data-scope": "dropdown-menu", "data-part": "checkbox-item", ...props });
537
+ });
538
+ var CheckboxItemIndicator = React10.forwardRef((props, ref) => {
539
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
540
+ import_menu.Menu.CheckboxItemIndicator,
541
+ {
542
+ ref,
543
+ "data-scope": "dropdown-menu",
544
+ "data-part": "checkbox-item-indicator",
545
+ ...props
546
+ }
547
+ );
548
+ });
549
+ var RadioItem = React10.forwardRef((props, ref) => {
550
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_menu.Menu.RadioItem, { ref, "data-scope": "dropdown-menu", "data-part": "radio-item", ...props });
551
+ });
552
+ var RadioItemIndicator = React10.forwardRef((props, ref) => {
553
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
554
+ import_menu.Menu.RadioItemIndicator,
555
+ {
556
+ ref,
557
+ "data-scope": "dropdown-menu",
558
+ "data-part": "radio-item-indicator",
559
+ ...props
560
+ }
561
+ );
562
+ });
563
+ var Label = React10.forwardRef((props, ref) => {
564
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_menu.Menu.GroupLabel, { ref, "data-scope": "dropdown-menu", "data-part": "label", ...props });
565
+ });
566
+ var Separator3 = React10.forwardRef((props, ref) => {
567
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_menu.Menu.Separator, { ref, "data-scope": "dropdown-menu", "data-part": "separator", ...props });
568
+ });
569
+ var Group = (props) => {
570
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_menu.Menu.Group, { "data-scope": "dropdown-menu", "data-part": "group", ...props });
571
+ };
572
+ var Sub = (props) => {
573
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_menu.Menu.SubmenuRoot, { "data-scope": "dropdown-menu", "data-part": "sub", ...props });
574
+ };
575
+ var SubTrigger = React10.forwardRef((props, ref) => {
576
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_menu.Menu.SubmenuTrigger, { ref, "data-scope": "dropdown-menu", "data-part": "sub-trigger", ...props });
577
+ });
578
+ var SubContent = React10.forwardRef(
579
+ ({
580
+ className,
581
+ children,
582
+ align = "start",
583
+ collisionPadding = 8,
584
+ sideOffset = 4,
585
+ ...props
586
+ }, ref) => {
587
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
588
+ import_menu.Menu.Positioner,
589
+ {
590
+ "data-scope": "dropdown-menu",
591
+ "data-part": "sub-positioner",
592
+ align,
593
+ collisionPadding,
594
+ sideOffset,
595
+ ...props,
596
+ children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
597
+ import_menu.Menu.Popup,
598
+ {
599
+ ref,
600
+ "data-scope": "dropdown-menu",
601
+ "data-part": "sub-content",
602
+ className,
603
+ children
604
+ }
605
+ )
606
+ }
607
+ );
608
+ }
609
+ );
610
+ var RadioGroup2 = (props) => {
611
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_menu.Menu.RadioGroup, { "data-scope": "dropdown-menu", "data-part": "radio-group", ...props });
612
+ };
613
+ Root8.displayName = "DropdownMenu.Root";
614
+ Trigger3.displayName = "DropdownMenu.Trigger";
615
+ Portal3.displayName = "DropdownMenu.Portal";
616
+ Content3.displayName = "DropdownMenu.Content";
617
+ Item3.displayName = "DropdownMenu.Item";
618
+ CheckboxItem.displayName = "DropdownMenu.CheckboxItem";
619
+ CheckboxItemIndicator.displayName = "DropdownMenu.CheckboxItemIndicator";
620
+ RadioItem.displayName = "DropdownMenu.RadioItem";
621
+ RadioItemIndicator.displayName = "DropdownMenu.RadioItemIndicator";
622
+ Label.displayName = "DropdownMenu.Label";
623
+ Separator3.displayName = "DropdownMenu.Separator";
624
+ Group.displayName = "DropdownMenu.Group";
625
+ Sub.displayName = "DropdownMenu.Sub";
626
+ SubTrigger.displayName = "DropdownMenu.SubTrigger";
627
+ SubContent.displayName = "DropdownMenu.SubContent";
628
+ RadioGroup2.displayName = "DropdownMenu.RadioGroup";
629
+ var DropdownMenu = {
630
+ Root: Root8,
631
+ Trigger: Trigger3,
632
+ Portal: Portal3,
633
+ Content: Content3,
634
+ Item: Item3,
635
+ CheckboxItem,
636
+ CheckboxItemIndicator,
637
+ RadioItem,
638
+ RadioItemIndicator,
639
+ Label,
640
+ Separator: Separator3,
641
+ Group,
642
+ Sub,
643
+ SubTrigger,
644
+ SubContent,
645
+ RadioGroup: RadioGroup2
646
+ };
647
+
648
+ // src/overlay/dropdown-menu.tsx
649
+ var import_jsx_runtime15 = require("react/jsx-runtime");
650
+ var Root9 = DropdownMenu.Root;
651
+ var Trigger4 = DropdownMenu.Trigger;
652
+ var Portal4 = DropdownMenu.Portal;
653
+ var Group2 = DropdownMenu.Group;
654
+ var Sub2 = DropdownMenu.Sub;
655
+ var RadioGroup3 = DropdownMenu.RadioGroup;
656
+ function ItemText({ className, ...props }) {
657
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: cx("mui-dropdown-menu__item-text", className), ...props });
658
+ }
659
+ function Shortcut({ className, ...props }) {
660
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: cx("mui-dropdown-menu__shortcut", className), ...props });
661
+ }
662
+ function Content4({
663
+ className,
664
+ sideOffset = 4,
665
+ ...props
666
+ }) {
667
+ const layerProps = useOverlayLayerProps(props);
668
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(DropdownMenu.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
669
+ DropdownMenu.Content,
670
+ {
671
+ className: cx("mui-dropdown-menu__content", className),
672
+ sideOffset,
673
+ ...layerProps
674
+ }
675
+ ) });
676
+ }
677
+ function Item4({
678
+ className,
679
+ children,
680
+ ...props
681
+ }) {
682
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
683
+ DropdownMenu.Item,
684
+ {
685
+ className: cx("mui-dropdown-menu__item", className),
686
+ ...props,
687
+ children: [
688
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "mui-dropdown-menu__item-leading", "aria-hidden": "true" }),
689
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(ItemText, { children })
690
+ ]
691
+ }
692
+ );
693
+ }
694
+ function CheckboxItem2({
695
+ className,
696
+ children,
697
+ ...props
698
+ }) {
699
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
700
+ DropdownMenu.CheckboxItem,
701
+ {
702
+ className: cx("mui-dropdown-menu__item", className),
703
+ ...props,
704
+ children: [
705
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "mui-dropdown-menu__item-leading", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(DropdownMenu.CheckboxItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_lucide_react3.CheckIcon, { className: "mui-dropdown-menu__item-indicator", size: 10 }) }) }),
706
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(ItemText, { children })
707
+ ]
708
+ }
709
+ );
710
+ }
711
+ function RadioItem2({
712
+ className,
713
+ children,
714
+ ...props
715
+ }) {
716
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
717
+ DropdownMenu.RadioItem,
718
+ {
719
+ className: cx("mui-dropdown-menu__item", className),
720
+ ...props,
721
+ children: [
722
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "mui-dropdown-menu__item-leading", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(DropdownMenu.RadioItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_lucide_react3.CircleIcon, { className: "mui-dropdown-menu__item-indicator", size: 6, fill: "currentColor" }) }) }),
723
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(ItemText, { children })
724
+ ]
725
+ }
726
+ );
727
+ }
728
+ function Label2({
729
+ className,
730
+ ...props
731
+ }) {
732
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
733
+ DropdownMenu.Label,
734
+ {
735
+ className: cx("mui-dropdown-menu__label", className),
736
+ ...props
737
+ }
738
+ );
739
+ }
740
+ function Separator4({
741
+ className,
742
+ ...props
743
+ }) {
744
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
745
+ DropdownMenu.Separator,
746
+ {
747
+ className: cx("mui-dropdown-menu__separator", className),
748
+ ...props
749
+ }
750
+ );
751
+ }
752
+ function SubTrigger2({
753
+ className,
754
+ children,
755
+ ...props
756
+ }) {
757
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
758
+ DropdownMenu.SubTrigger,
759
+ {
760
+ className: cx("mui-dropdown-menu__sub-trigger", className),
761
+ ...props,
762
+ children: [
763
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "mui-dropdown-menu__item-leading", "aria-hidden": "true" }),
764
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(ItemText, { children }),
765
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "mui-dropdown-menu__item-trailing", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_lucide_react3.ChevronRightIcon, { size: 12 }) })
766
+ ]
767
+ }
768
+ );
769
+ }
770
+ function SubContent2({
771
+ className,
772
+ ...props
773
+ }) {
774
+ const layerProps = useOverlayLayerProps(props);
775
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
776
+ DropdownMenu.SubContent,
777
+ {
778
+ className: cx("mui-dropdown-menu__content", className),
779
+ ...layerProps
780
+ }
781
+ );
782
+ }
783
+ var DropdownMenu2 = {
784
+ Root: Root9,
785
+ Trigger: Trigger4,
786
+ Portal: Portal4,
787
+ Group: Group2,
788
+ Sub: Sub2,
789
+ RadioGroup: RadioGroup3,
790
+ Content: Content4,
791
+ Item: Item4,
792
+ CheckboxItem: CheckboxItem2,
793
+ RadioItem: RadioItem2,
794
+ Label: Label2,
795
+ Separator: Separator4,
796
+ ItemText,
797
+ Shortcut,
798
+ SubTrigger: SubTrigger2,
799
+ SubContent: SubContent2
800
+ };
801
+
802
+ // src/overlay/popover.tsx
803
+ var React12 = __toESM(require("react"), 1);
804
+
805
+ // ../primitives/src/overlay/popover.tsx
806
+ var import_popover = require("@base-ui/react/popover");
807
+ var React11 = __toESM(require("react"), 1);
808
+ var import_jsx_runtime16 = require("react/jsx-runtime");
809
+ var Root10 = (props) => {
810
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_popover.Popover.Root, { "data-scope": "popover", "data-part": "root", ...props });
811
+ };
812
+ var Trigger5 = React11.forwardRef((props, ref) => {
813
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_popover.Popover.Trigger, { ref, "data-scope": "popover", "data-part": "trigger", ...props });
814
+ });
815
+ var Portal5 = (props) => {
816
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_popover.Popover.Portal, { "data-scope": "popover", "data-part": "portal", ...props });
817
+ };
818
+ var Content5 = React11.forwardRef(
819
+ ({
820
+ className,
821
+ children,
822
+ finalFocus,
823
+ initialFocus,
824
+ align = "start",
825
+ collisionPadding = 8,
826
+ sideOffset = 4,
827
+ ...props
828
+ }, ref) => {
829
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
830
+ import_popover.Popover.Positioner,
831
+ {
832
+ "data-scope": "popover",
833
+ "data-part": "positioner",
834
+ align,
835
+ collisionPadding,
836
+ sideOffset,
837
+ ...props,
838
+ children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
839
+ import_popover.Popover.Popup,
840
+ {
841
+ ref,
842
+ "data-scope": "popover",
843
+ "data-part": "content",
844
+ className,
845
+ finalFocus,
846
+ initialFocus,
847
+ children
848
+ }
849
+ )
850
+ }
851
+ );
852
+ }
853
+ );
854
+ Root10.displayName = "Popover.Root";
855
+ Trigger5.displayName = "Popover.Trigger";
856
+ Portal5.displayName = "Popover.Portal";
857
+ Content5.displayName = "Popover.Content";
858
+ var Popover = {
859
+ Root: Root10,
860
+ Trigger: Trigger5,
861
+ Portal: Portal5,
862
+ Content: Content5
863
+ };
864
+
865
+ // src/overlay/popover.tsx
866
+ var import_jsx_runtime17 = require("react/jsx-runtime");
867
+ function Root11(props) {
868
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
869
+ Popover.Root,
870
+ {
871
+ ...props
872
+ }
873
+ );
874
+ }
875
+ var Trigger6 = React12.forwardRef(
876
+ (props, ref) => {
877
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
878
+ Popover.Trigger,
879
+ {
880
+ ref,
881
+ ...props
882
+ }
883
+ );
884
+ }
885
+ );
886
+ function Portal6(props) {
887
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
888
+ Popover.Portal,
889
+ {
890
+ ...props
891
+ }
892
+ );
893
+ }
894
+ function Content6({
895
+ className,
896
+ sideOffset = 4,
897
+ ...props
898
+ }) {
899
+ const layerProps = useOverlayLayerProps(props);
900
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Popover.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
901
+ Popover.Content,
902
+ {
903
+ className: cx("mui-popover__content", className),
904
+ sideOffset,
905
+ ...layerProps
906
+ }
907
+ ) });
908
+ }
909
+ Trigger6.displayName = "Popover.Trigger";
910
+ var Popover2 = {
911
+ Root: Root11,
912
+ Trigger: Trigger6,
913
+ Portal: Portal6,
914
+ Content: Content6
915
+ };
916
+
917
+ // ../primitives/src/overlay/tooltip.tsx
918
+ var React13 = __toESM(require("react"), 1);
919
+ var import_tooltip = require("@base-ui/react/tooltip");
920
+ var import_jsx_runtime18 = require("react/jsx-runtime");
921
+ var Provider = (props) => {
922
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_tooltip.Tooltip.Provider, { "data-scope": "tooltip", "data-part": "provider", ...props });
923
+ };
924
+ var Root12 = (props) => {
925
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_tooltip.Tooltip.Root, { "data-scope": "tooltip", "data-part": "root", ...props });
926
+ };
927
+ var Trigger7 = React13.forwardRef((props, ref) => {
928
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_tooltip.Tooltip.Trigger, { ref, "data-scope": "tooltip", "data-part": "trigger", ...props });
929
+ });
930
+ var Portal7 = (props) => {
931
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_tooltip.Tooltip.Portal, { "data-scope": "tooltip", "data-part": "portal", ...props });
932
+ };
933
+ var Content7 = React13.forwardRef(
934
+ ({
935
+ className,
936
+ children,
937
+ align = "center",
938
+ collisionPadding = 8,
939
+ sideOffset = 4,
940
+ ...props
941
+ }, ref) => {
942
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
943
+ import_tooltip.Tooltip.Positioner,
944
+ {
945
+ "data-scope": "tooltip",
946
+ "data-part": "positioner",
947
+ align,
948
+ collisionPadding,
949
+ sideOffset,
950
+ ...props,
951
+ children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
952
+ import_tooltip.Tooltip.Popup,
953
+ {
954
+ ref,
955
+ "data-scope": "tooltip",
956
+ "data-part": "content",
957
+ className,
958
+ children
959
+ }
960
+ )
961
+ }
962
+ );
963
+ }
964
+ );
965
+ Provider.displayName = "Tooltip.Provider";
966
+ Root12.displayName = "Tooltip.Root";
967
+ Trigger7.displayName = "Tooltip.Trigger";
968
+ Portal7.displayName = "Tooltip.Portal";
969
+ Content7.displayName = "Tooltip.Content";
970
+ var Tooltip = {
971
+ Provider,
972
+ Root: Root12,
973
+ Trigger: Trigger7,
974
+ Portal: Portal7,
975
+ Content: Content7
976
+ };
977
+
978
+ // src/overlay/tooltip.tsx
979
+ var import_jsx_runtime19 = require("react/jsx-runtime");
980
+ var Provider2 = Tooltip.Provider;
981
+ var Root13 = Tooltip.Root;
982
+ var Trigger8 = Tooltip.Trigger;
983
+ function Content8({
984
+ className,
985
+ sideOffset = 6,
986
+ ...props
987
+ }) {
988
+ const layerProps = useOverlayLayerProps(props);
989
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Tooltip.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
990
+ Tooltip.Content,
991
+ {
992
+ className: cx("mui-tooltip__content", className),
993
+ sideOffset,
994
+ ...layerProps
995
+ }
996
+ ) });
997
+ }
998
+ var Tooltip2 = {
999
+ Provider: Provider2,
1000
+ Root: Root13,
1001
+ Trigger: Trigger8,
1002
+ Content: Content8
1003
+ };
1004
+
1005
+ // src/selection/select.tsx
1006
+ var import_lucide_react4 = require("lucide-react");
1007
+
1008
+ // ../primitives/src/selection/select.tsx
1009
+ var React14 = __toESM(require("react"), 1);
1010
+ var import_select = require("@base-ui/react/select");
1011
+ var import_jsx_runtime20 = require("react/jsx-runtime");
1012
+ var Root14 = (props) => {
1013
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_select.Select.Root, { "data-scope": "select", "data-part": "root", ...props });
1014
+ };
1015
+ var Group3 = (props) => {
1016
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_select.Select.Group, { "data-scope": "select", "data-part": "group", ...props });
1017
+ };
1018
+ var Value = React14.forwardRef((props, ref) => {
1019
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_select.Select.Value, { ref, "data-scope": "select", "data-part": "value", ...props });
1020
+ });
1021
+ var Trigger9 = React14.forwardRef((props, ref) => {
1022
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_select.Select.Trigger, { ref, "data-scope": "select", "data-part": "trigger", ...props });
1023
+ });
1024
+ var Portal8 = (props) => {
1025
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_select.Select.Portal, { "data-scope": "select", "data-part": "portal", ...props });
1026
+ };
1027
+ var Content9 = React14.forwardRef(
1028
+ ({
1029
+ className,
1030
+ children,
1031
+ finalFocus,
1032
+ align = "start",
1033
+ collisionPadding = 8,
1034
+ sideOffset = 4,
1035
+ ...props
1036
+ }, ref) => {
1037
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1038
+ import_select.Select.Positioner,
1039
+ {
1040
+ "data-scope": "select",
1041
+ "data-part": "positioner",
1042
+ align,
1043
+ collisionPadding,
1044
+ sideOffset,
1045
+ ...props,
1046
+ children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1047
+ import_select.Select.Popup,
1048
+ {
1049
+ ref,
1050
+ "data-scope": "select",
1051
+ "data-part": "content",
1052
+ className,
1053
+ finalFocus,
1054
+ children
1055
+ }
1056
+ )
1057
+ }
1058
+ );
1059
+ }
1060
+ );
1061
+ var Viewport = React14.forwardRef((props, ref) => {
1062
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_select.Select.List, { ref, "data-scope": "select", "data-part": "viewport", ...props });
1063
+ });
1064
+ var Label3 = React14.forwardRef((props, ref) => {
1065
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_select.Select.GroupLabel, { ref, "data-scope": "select", "data-part": "label", ...props });
1066
+ });
1067
+ var Item5 = React14.forwardRef((props, ref) => {
1068
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_select.Select.Item, { ref, "data-scope": "select", "data-part": "item", ...props });
1069
+ });
1070
+ var ItemText2 = React14.forwardRef((props, ref) => {
1071
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_select.Select.ItemText, { ref, "data-scope": "select", "data-part": "item-text", ...props });
1072
+ });
1073
+ var ItemIndicator = React14.forwardRef((props, ref) => {
1074
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_select.Select.ItemIndicator, { ref, "data-scope": "select", "data-part": "item-indicator", ...props });
1075
+ });
1076
+ var Separator5 = React14.forwardRef((props, ref) => {
1077
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_select.Select.Separator, { ref, "data-scope": "select", "data-part": "separator", ...props });
1078
+ });
1079
+ var ScrollUpButton = React14.forwardRef((props, ref) => {
1080
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_select.Select.ScrollUpArrow, { ref, "data-scope": "select", "data-part": "scroll-up-button", ...props });
1081
+ });
1082
+ var ScrollDownButton = React14.forwardRef((props, ref) => {
1083
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_select.Select.ScrollDownArrow, { ref, "data-scope": "select", "data-part": "scroll-down-button", ...props });
1084
+ });
1085
+ Root14.displayName = "Select.Root";
1086
+ Group3.displayName = "Select.Group";
1087
+ Value.displayName = "Select.Value";
1088
+ Trigger9.displayName = "Select.Trigger";
1089
+ Portal8.displayName = "Select.Portal";
1090
+ Content9.displayName = "Select.Content";
1091
+ Viewport.displayName = "Select.Viewport";
1092
+ Label3.displayName = "Select.Label";
1093
+ Item5.displayName = "Select.Item";
1094
+ ItemText2.displayName = "Select.ItemText";
1095
+ ItemIndicator.displayName = "Select.ItemIndicator";
1096
+ Separator5.displayName = "Select.Separator";
1097
+ ScrollUpButton.displayName = "Select.ScrollUpButton";
1098
+ ScrollDownButton.displayName = "Select.ScrollDownButton";
1099
+ var Select = {
1100
+ Root: Root14,
1101
+ Group: Group3,
1102
+ Value,
1103
+ Trigger: Trigger9,
1104
+ Portal: Portal8,
1105
+ Content: Content9,
1106
+ Viewport,
1107
+ Label: Label3,
1108
+ Item: Item5,
1109
+ ItemText: ItemText2,
1110
+ ItemIndicator,
1111
+ Separator: Separator5,
1112
+ ScrollUpButton,
1113
+ ScrollDownButton
1114
+ };
1115
+
1116
+ // src/selection/select.tsx
1117
+ var import_jsx_runtime21 = require("react/jsx-runtime");
1118
+ var Root15 = Select.Root;
1119
+ var Group4 = Select.Group;
1120
+ var Value2 = Select.Value;
1121
+ function Trigger10({
1122
+ className,
1123
+ children,
1124
+ size = "md",
1125
+ ...props
1126
+ }) {
1127
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
1128
+ Select.Trigger,
1129
+ {
1130
+ className: cx("mui-select__trigger", className),
1131
+ "data-size": size,
1132
+ ...props,
1133
+ children: [
1134
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "mui-select__value-slot", children }),
1135
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "mui-select__icon-slot", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_lucide_react4.ChevronDownIcon, { className: "mui-select__icon", size: 12 }) })
1136
+ ]
1137
+ }
1138
+ );
1139
+ }
1140
+ function Content10({
1141
+ className,
1142
+ children,
1143
+ ...props
1144
+ }) {
1145
+ const layerProps = useOverlayLayerProps(props);
1146
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Select.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
1147
+ Select.Content,
1148
+ {
1149
+ className: cx("mui-select__content", className),
1150
+ ...layerProps,
1151
+ children: [
1152
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Select.ScrollUpButton, { className: "mui-select__scroll-button", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_lucide_react4.ChevronUpIcon, { size: 12 }) }),
1153
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Select.Viewport, { className: "mui-select__viewport", children }),
1154
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Select.ScrollDownButton, { className: "mui-select__scroll-button", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_lucide_react4.ChevronDownIcon, { size: 12 }) })
1155
+ ]
1156
+ }
1157
+ ) });
1158
+ }
1159
+ function Label4({
1160
+ className,
1161
+ ...props
1162
+ }) {
1163
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1164
+ Select.Label,
1165
+ {
1166
+ className: cx("mui-select__label", className),
1167
+ ...props
1168
+ }
1169
+ );
1170
+ }
1171
+ function Item6({
1172
+ className,
1173
+ children,
1174
+ ...props
1175
+ }) {
1176
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
1177
+ Select.Item,
1178
+ {
1179
+ className: cx("mui-select__item", className),
1180
+ ...props,
1181
+ children: [
1182
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "mui-select__item-leading", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Select.ItemIndicator, { className: "mui-select__item-indicator", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_lucide_react4.CheckIcon, { size: 10 }) }) }),
1183
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Select.ItemText, { className: "mui-select__item-text", children })
1184
+ ]
1185
+ }
1186
+ );
1187
+ }
1188
+ function Separator6({
1189
+ className,
1190
+ ...props
1191
+ }) {
1192
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1193
+ Select.Separator,
1194
+ {
1195
+ className: cx("mui-select__separator", className),
1196
+ ...props
1197
+ }
1198
+ );
1199
+ }
1200
+ var Select2 = {
1201
+ Root: Root15,
1202
+ Group: Group4,
1203
+ Value: Value2,
1204
+ Trigger: Trigger10,
1205
+ Content: Content10,
1206
+ Label: Label4,
1207
+ Item: Item6,
1208
+ Separator: Separator6
1209
+ };
1210
+ // Annotate the CommonJS export names for ESM import in node:
1211
+ 0 && (module.exports = {
1212
+ Button,
1213
+ Checkbox,
1214
+ Dialog,
1215
+ DropdownMenu,
1216
+ Input,
1217
+ Popover,
1218
+ RadioGroup,
1219
+ Select,
1220
+ Separator,
1221
+ Switch,
1222
+ Tooltip
1223
+ });