@ai-matrx/design-system 0.7.1 → 0.9.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.
package/dist/index.cjs CHANGED
@@ -31,6 +31,10 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
31
31
  // src/index.ts
32
32
  var src_exports = {};
33
33
  __export(src_exports, {
34
+ Accordion: () => Accordion,
35
+ AccordionContent: () => AccordionContent,
36
+ AccordionItem: () => AccordionItem,
37
+ AccordionTrigger: () => AccordionTrigger,
34
38
  Alert: () => Alert,
35
39
  AlertDescription: () => AlertDescription,
36
40
  AlertDialog: () => AlertDialog,
@@ -214,6 +218,7 @@ __export(src_exports, {
214
218
  selectTriggerVariants: () => selectTriggerVariants,
215
219
  sheetVariants: () => sheetVariants,
216
220
  toggleVariants: () => toggleVariants,
221
+ useAccordionSize: () => useAccordionSize,
217
222
  useCardSize: () => useCardSize,
218
223
  useDialogContainer: () => useDialogContainer,
219
224
  useDrawerDirection: () => useDrawerDirection,
@@ -225,8 +230,9 @@ __export(src_exports, {
225
230
  });
226
231
  module.exports = __toCommonJS(src_exports);
227
232
 
228
- // src/badge.tsx
229
- var import_class_variance_authority = require("class-variance-authority");
233
+ // src/accordion.tsx
234
+ var AccordionPrimitive = __toESM(require("@radix-ui/react-accordion"), 1);
235
+ var React = __toESM(require("react"), 1);
230
236
 
231
237
  // src/cn.ts
232
238
  var import_clsx = require("clsx");
@@ -235,8 +241,264 @@ function cn(...inputs) {
235
241
  return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
236
242
  }
237
243
 
238
- // src/badge.tsx
244
+ // src/icons.tsx
239
245
  var import_jsx_runtime = require("react/jsx-runtime");
246
+ function lucideProps(props) {
247
+ return {
248
+ xmlns: "http://www.w3.org/2000/svg",
249
+ viewBox: "0 0 24 24",
250
+ fill: "none",
251
+ stroke: "currentColor",
252
+ strokeWidth: 2,
253
+ strokeLinecap: "round",
254
+ strokeLinejoin: "round",
255
+ "aria-hidden": true,
256
+ ...props
257
+ };
258
+ }
259
+ function Loader2Icon(props) {
260
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", { ...lucideProps(props), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" }) });
261
+ }
262
+ function ChevronLeftIcon(props) {
263
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", { ...lucideProps(props), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "m15 18-6-6 6-6" }) });
264
+ }
265
+ function ChevronRightIcon(props) {
266
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", { ...lucideProps(props), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "m9 18 6-6-6-6" }) });
267
+ }
268
+ function MoreHorizontalIcon(props) {
269
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("svg", { ...lucideProps(props), children: [
270
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "12", cy: "12", r: "1" }),
271
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "19", cy: "12", r: "1" }),
272
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "5", cy: "12", r: "1" })
273
+ ] });
274
+ }
275
+ function LucideCheckIcon(props) {
276
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", { ...lucideProps(props), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M20 6 9 17l-5-5" }) });
277
+ }
278
+ function ChevronsUpDownIcon(props) {
279
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("svg", { ...lucideProps(props), children: [
280
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "m7 15 5 5 5-5" }),
281
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "m7 9 5-5 5 5" })
282
+ ] });
283
+ }
284
+ function ExternalLinkIcon(props) {
285
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("svg", { ...lucideProps(props), children: [
286
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M15 3h6v6" }),
287
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M10 14 21 3" }),
288
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" })
289
+ ] });
290
+ }
291
+ function LockIcon(props) {
292
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("svg", { ...lucideProps(props), children: [
293
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("rect", { width: "18", height: "11", x: "3", y: "11", rx: "2", ry: "2" }),
294
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M7 11V7a5 5 0 0 1 10 0v4" })
295
+ ] });
296
+ }
297
+ function PlusIcon(props) {
298
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("svg", { ...lucideProps(props), children: [
299
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M5 12h14" }),
300
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M12 5v14" })
301
+ ] });
302
+ }
303
+ function XIcon(props) {
304
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("svg", { ...lucideProps(props), children: [
305
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M18 6 6 18" }),
306
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "m6 6 12 12" })
307
+ ] });
308
+ }
309
+ function radixProps(props) {
310
+ return {
311
+ xmlns: "http://www.w3.org/2000/svg",
312
+ viewBox: "0 0 15 15",
313
+ width: 15,
314
+ height: 15,
315
+ fill: "none",
316
+ "aria-hidden": true,
317
+ ...props
318
+ };
319
+ }
320
+ function MagnifyingGlassIcon(props) {
321
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", { ...radixProps(props), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
322
+ "path",
323
+ {
324
+ d: "M10 6.5C10 8.433 8.433 10 6.5 10C4.567 10 3 8.433 3 6.5C3 4.567 4.567 3 6.5 3C8.433 3 10 4.567 10 6.5ZM9.30884 10.0159C8.53901 10.6318 7.56251 11 6.5 11C4.01472 11 2 8.98528 2 6.5C2 4.01472 4.01472 2 6.5 2C8.98528 2 11 4.01472 11 6.5C11 7.56251 10.6318 8.53901 10.0159 9.30884L12.8536 12.1464C13.0488 12.3417 13.0488 12.6583 12.8536 12.8536C12.6583 13.0488 12.3417 13.0488 12.1464 12.8536L9.30884 10.0159Z",
325
+ fill: "currentColor",
326
+ fillRule: "evenodd",
327
+ clipRule: "evenodd"
328
+ }
329
+ ) });
330
+ }
331
+ function CheckIcon(props) {
332
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", { ...radixProps(props), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
333
+ "path",
334
+ {
335
+ d: "M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",
336
+ fill: "currentColor",
337
+ fillRule: "evenodd",
338
+ clipRule: "evenodd"
339
+ }
340
+ ) });
341
+ }
342
+ function DividerHorizontalIcon(props) {
343
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", { ...radixProps(props), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
344
+ "path",
345
+ {
346
+ d: "M2 7.5C2 7.22386 2.22386 7 2.5 7H12.5C12.7761 7 13 7.22386 13 7.5C13 7.77614 12.7761 8 12.5 8H2.5C2.22386 8 2 7.77614 2 7.5Z",
347
+ fill: "currentColor",
348
+ fillRule: "evenodd",
349
+ clipRule: "evenodd"
350
+ }
351
+ ) });
352
+ }
353
+ function DotFilledIcon(props) {
354
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", { ...radixProps(props), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
355
+ "path",
356
+ {
357
+ d: "M9.875 7.5C9.875 8.81168 8.81168 9.875 7.5 9.875C6.18832 9.875 5.125 8.81168 5.125 7.5C5.125 6.18832 6.18832 5.125 7.5 5.125C8.81168 5.125 9.875 6.18832 9.875 7.5Z",
358
+ fill: "currentColor"
359
+ }
360
+ ) });
361
+ }
362
+ function RadixChevronRightIcon(props) {
363
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", { ...radixProps(props), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
364
+ "path",
365
+ {
366
+ d: "M6.1584 3.13508C6.35985 2.94621 6.67627 2.95642 6.86514 3.15788L10.6151 7.15788C10.7954 7.3502 10.7954 7.64949 10.6151 7.84182L6.86514 11.8418C6.67627 12.0433 6.35985 12.0535 6.1584 11.8646C5.95694 11.6757 5.94673 11.3593 6.1356 11.1579L9.565 7.49985L6.1356 3.84182C5.94673 3.64036 5.95694 3.32394 6.1584 3.13508Z",
367
+ fill: "currentColor",
368
+ fillRule: "evenodd",
369
+ clipRule: "evenodd"
370
+ }
371
+ ) });
372
+ }
373
+ function RadixChevronDownIcon(props) {
374
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", { ...radixProps(props), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
375
+ "path",
376
+ {
377
+ d: "M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",
378
+ fill: "currentColor",
379
+ fillRule: "evenodd",
380
+ clipRule: "evenodd"
381
+ }
382
+ ) });
383
+ }
384
+ function RadixChevronUpIcon(props) {
385
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", { ...radixProps(props), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
386
+ "path",
387
+ {
388
+ d: "M3.13523 8.84197C3.3241 9.04343 3.64052 9.05363 3.84197 8.86477L7.5 5.43536L11.158 8.86477C11.3595 9.05363 11.6759 9.04343 11.8648 8.84197C12.0536 8.64051 12.0434 8.32409 11.842 8.13523L7.84197 4.38523C7.64964 4.20492 7.35036 4.20492 7.15803 4.38523L3.15803 8.13523C2.95657 8.32409 2.94637 8.64051 3.13523 8.84197Z",
389
+ fill: "currentColor",
390
+ fillRule: "evenodd",
391
+ clipRule: "evenodd"
392
+ }
393
+ ) });
394
+ }
395
+ function Cross2Icon(props) {
396
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
397
+ "svg",
398
+ {
399
+ xmlns: "http://www.w3.org/2000/svg",
400
+ viewBox: "0 0 15 15",
401
+ fill: "none",
402
+ "aria-hidden": true,
403
+ ...props,
404
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
405
+ "path",
406
+ {
407
+ d: "M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",
408
+ fill: "currentColor",
409
+ fillRule: "evenodd",
410
+ clipRule: "evenodd"
411
+ }
412
+ )
413
+ }
414
+ );
415
+ }
416
+ function DragHandleDots2Icon(props) {
417
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", { ...radixProps(props), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
418
+ "path",
419
+ {
420
+ d: "M4.5 2.5C5.05228 2.5 5.5 2.05228 5.5 1.5C5.5 0.947715 5.05228 0.5 4.5 0.5C3.94772 0.5 3.5 0.947715 3.5 1.5C3.5 2.05228 3.94772 2.5 4.5 2.5ZM4.5 6.5C5.05228 6.5 5.5 6.05229 5.5 5.5C5.5 4.94771 5.05228 4.5 4.5 4.5C3.94772 4.5 3.5 4.94771 3.5 5.5C3.5 6.05229 3.94772 6.5 4.5 6.5ZM5.5 9.5C5.5 10.0523 5.05228 10.5 4.5 10.5C3.94772 10.5 3.5 10.0523 3.5 9.5C3.5 8.94771 3.94772 8.5 4.5 8.5C5.05228 8.5 5.5 8.94771 5.5 9.5ZM4.5 14.5C5.05228 14.5 5.5 14.0523 5.5 13.5C5.5 12.9477 5.05228 12.5 4.5 12.5C3.94772 12.5 3.5 12.9477 3.5 13.5C3.5 14.0523 3.94772 14.5 4.5 14.5ZM11.5 1.5C11.5 2.05228 11.0523 2.5 10.5 2.5C9.94771 2.5 9.5 2.05228 9.5 1.5C9.5 0.947715 9.94771 0.5 10.5 0.5C11.0523 0.5 11.5 0.947715 11.5 1.5ZM10.5 6.5C11.0523 6.5 11.5 6.05229 11.5 5.5C11.5 4.94771 11.0523 4.5 10.5 4.5C9.94771 4.5 9.5 4.94771 9.5 5.5C9.5 6.05229 9.94771 6.5 10.5 6.5ZM11.5 9.5C11.5 10.0523 11.0523 10.5 10.5 10.5C9.94771 10.5 9.5 10.0523 9.5 9.5C9.5 8.94771 9.94771 8.5 10.5 8.5C11.0523 8.5 11.5 8.94771 11.5 9.5ZM10.5 14.5C11.0523 14.5 11.5 14.0523 11.5 13.5C11.5 12.9477 11.0523 12.5 10.5 12.5C9.94771 12.5 9.5 12.9477 9.5 13.5C9.5 14.0523 9.94771 14.5 10.5 14.5Z",
421
+ fill: "currentColor",
422
+ fillRule: "evenodd",
423
+ clipRule: "evenodd"
424
+ }
425
+ ) });
426
+ }
427
+
428
+ // src/accordion.tsx
429
+ var import_jsx_runtime2 = require("react/jsx-runtime");
430
+ var ACCORDION_SIZES = {
431
+ sm: { trigger: "py-2 text-sm", content: "pb-2" },
432
+ md: { trigger: "p-4 text-sm", content: "px-4 pb-4" }
433
+ };
434
+ var AccordionSizeContext = React.createContext("md");
435
+ function useAccordionSize() {
436
+ return React.useContext(AccordionSizeContext);
437
+ }
438
+ var Accordion = React.forwardRef(({ size = "md", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(AccordionSizeContext.Provider, { value: size, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(AccordionPrimitive.Root, { ref, "data-slot": "accordion", "data-size": size, ...props }) }));
439
+ Accordion.displayName = "Accordion";
440
+ var AccordionItem = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
441
+ AccordionPrimitive.Item,
442
+ {
443
+ ref,
444
+ "data-slot": "accordion-item",
445
+ className: cn("[&:not(:only-child)]:border-b", className),
446
+ ...props
447
+ }
448
+ ));
449
+ AccordionItem.displayName = "AccordionItem";
450
+ var AccordionTrigger = React.forwardRef(({ className, children, rightElements, ...props }, ref) => {
451
+ const size = useAccordionSize();
452
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(AccordionPrimitive.Header, { className: "flex w-full", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
453
+ AccordionPrimitive.Trigger,
454
+ {
455
+ ref,
456
+ "data-slot": "accordion-trigger",
457
+ className: cn(
458
+ "flex w-full items-center justify-between gap-2 rounded-md text-left font-medium transition-all",
459
+ "hover:bg-accent/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
460
+ "disabled:pointer-events-none disabled:opacity-50",
461
+ "[&[data-state=open]>[data-slot=accordion-trigger-end]>svg]:rotate-180",
462
+ ACCORDION_SIZES[size].trigger,
463
+ className
464
+ ),
465
+ ...props,
466
+ children: [
467
+ children,
468
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
469
+ "span",
470
+ {
471
+ "data-slot": "accordion-trigger-end",
472
+ className: "flex shrink-0 items-center gap-2",
473
+ children: [
474
+ rightElements,
475
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(RadixChevronDownIcon, { className: "size-4 shrink-0 text-muted-foreground transition-transform duration-200" })
476
+ ]
477
+ }
478
+ )
479
+ ]
480
+ }
481
+ ) });
482
+ });
483
+ AccordionTrigger.displayName = "AccordionTrigger";
484
+ var AccordionContent = React.forwardRef(({ className, children, ...props }, ref) => {
485
+ const size = useAccordionSize();
486
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
487
+ AccordionPrimitive.Content,
488
+ {
489
+ ref,
490
+ "data-slot": "accordion-content",
491
+ className: "matrx-accordion-content overflow-hidden text-sm",
492
+ ...props,
493
+ children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: cn(ACCORDION_SIZES[size].content, className), children })
494
+ }
495
+ );
496
+ });
497
+ AccordionContent.displayName = "AccordionContent";
498
+
499
+ // src/badge.tsx
500
+ var import_class_variance_authority = require("class-variance-authority");
501
+ var import_jsx_runtime3 = require("react/jsx-runtime");
240
502
  var badgeVariants = (0, import_class_variance_authority.cva)(
241
503
  "inline-flex items-center rounded-md border px-2 py-0.5 text-[11px] font-medium transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-0",
242
504
  {
@@ -259,7 +521,7 @@ var badgeVariants = (0, import_class_variance_authority.cva)(
259
521
  }
260
522
  );
261
523
  function Badge({ className, variant, ...props }) {
262
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: cn(badgeVariants({ variant }), className), ...props });
524
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: cn(badgeVariants({ variant }), className), ...props });
263
525
  }
264
526
 
265
527
  // src/bottom-sheet.tsx
@@ -268,34 +530,34 @@ var import_vaul2 = require("vaul");
268
530
 
269
531
  // src/drawer.tsx
270
532
  var import_react_tree = require("@ai-matrx/kit/react-tree");
271
- var React2 = __toESM(require("react"), 1);
533
+ var React3 = __toESM(require("react"), 1);
272
534
  var import_vaul = require("vaul");
273
535
 
274
536
  // src/radix-dialog-modal-context.tsx
275
- var React = __toESM(require("react"), 1);
276
- var import_jsx_runtime2 = require("react/jsx-runtime");
277
- var RadixDialogModalContext = React.createContext(true);
537
+ var React2 = __toESM(require("react"), 1);
538
+ var import_jsx_runtime4 = require("react/jsx-runtime");
539
+ var RadixDialogModalContext = React2.createContext(true);
278
540
  function RadixDialogModalProvider({
279
541
  children,
280
542
  modal
281
543
  }) {
282
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(RadixDialogModalContext.Provider, { value: modal, children });
544
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(RadixDialogModalContext.Provider, { value: modal, children });
283
545
  }
284
546
  function useRadixDialogModal() {
285
- return React.useContext(RadixDialogModalContext);
547
+ return React2.useContext(RadixDialogModalContext);
286
548
  }
287
549
 
288
550
  // src/drawer.tsx
289
- var import_jsx_runtime3 = require("react/jsx-runtime");
290
- var DrawerDirectionContext = React2.createContext("bottom");
291
- var useDrawerDirection = () => React2.useContext(DrawerDirectionContext);
551
+ var import_jsx_runtime5 = require("react/jsx-runtime");
552
+ var DrawerDirectionContext = React3.createContext("bottom");
553
+ var useDrawerDirection = () => React3.useContext(DrawerDirectionContext);
292
554
  var Drawer = ({
293
555
  children,
294
556
  shouldScaleBackground = true,
295
557
  ...props
296
558
  }) => {
297
559
  const direction = props.direction ?? "bottom";
298
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(RadixDialogModalProvider, { modal: true, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(DrawerDirectionContext.Provider, { value: direction, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
560
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(RadixDialogModalProvider, { modal: true, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(DrawerDirectionContext.Provider, { value: direction, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
299
561
  import_vaul.Drawer.Root,
300
562
  {
301
563
  modal: true,
@@ -310,7 +572,7 @@ Drawer.displayName = "Drawer";
310
572
  var DrawerTrigger = import_vaul.Drawer.Trigger;
311
573
  var DrawerPortal = import_vaul.Drawer.Portal;
312
574
  var DrawerClose = import_vaul.Drawer.Close;
313
- var DrawerOverlay = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
575
+ var DrawerOverlay = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
314
576
  import_vaul.Drawer.Overlay,
315
577
  {
316
578
  ref,
@@ -323,7 +585,7 @@ var DrawerOverlay = React2.forwardRef(({ className, ...props }, ref) => /* @__PU
323
585
  }
324
586
  ));
325
587
  DrawerOverlay.displayName = import_vaul.Drawer.Overlay.displayName;
326
- var DrawerDescription = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
588
+ var DrawerDescription = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
327
589
  import_vaul.Drawer.Description,
328
590
  {
329
591
  ref,
@@ -333,7 +595,7 @@ var DrawerDescription = React2.forwardRef(({ className, ...props }, ref) => /* @
333
595
  }
334
596
  ));
335
597
  DrawerDescription.displayName = import_vaul.Drawer.Description.displayName;
336
- var DrawerContentPrimitive = React2.forwardRef((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_vaul.Drawer.Content, { ...props, ref, "aria-modal": "true" }));
598
+ var DrawerContentPrimitive = React3.forwardRef((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_vaul.Drawer.Content, { ...props, ref, "aria-modal": "true" }));
337
599
  DrawerContentPrimitive.displayName = "DrawerContentPrimitive";
338
600
  var DIRECTION_CLASSES = {
339
601
  bottom: "inset-x-0 bottom-0 mt-24 flex-col rounded-t-[10px] border-t pb-safe",
@@ -347,13 +609,13 @@ var SIZE_CLASSES = {
347
609
  left: { adaptive: "w-auto max-w-[92vw]", full: "h-dvh w-[92vw] max-w-sm" },
348
610
  right: { adaptive: "w-auto max-w-[92vw]", full: "h-dvh w-[92vw] max-w-sm" }
349
611
  };
350
- var DrawerContent = React2.forwardRef(({ className, children, size = "adaptive", showHandle, ...props }, ref) => {
612
+ var DrawerContent = React3.forwardRef(({ className, children, size = "adaptive", showHandle, ...props }, ref) => {
351
613
  const direction = useDrawerDirection();
352
614
  const hasDescription = (0, import_react_tree.treeContainsComponent)(children, DrawerDescription) || (0, import_react_tree.treeContainsComponent)(children, import_vaul.Drawer.Description);
353
615
  const withHandle = showHandle ?? (direction === "bottom" || direction === "top");
354
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(DrawerPortal, { children: [
355
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(DrawerOverlay, {}),
356
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
616
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(DrawerPortal, { children: [
617
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(DrawerOverlay, {}),
618
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
357
619
  DrawerContentPrimitive,
358
620
  {
359
621
  ref,
@@ -370,7 +632,7 @@ var DrawerContent = React2.forwardRef(({ className, children, size = "adaptive",
370
632
  children: [
371
633
  withHandle ? (
372
634
  // Rule 3: the pill is 4px; the TARGET is 44px.
373
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
635
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
374
636
  "div",
375
637
  {
376
638
  "aria-hidden": true,
@@ -379,7 +641,7 @@ var DrawerContent = React2.forwardRef(({ className, children, size = "adaptive",
379
641
  "flex min-h-11 w-full shrink-0 cursor-grab items-center justify-center active:cursor-grabbing",
380
642
  direction === "top" && "order-last"
381
643
  ),
382
- children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "h-1 w-[100px] rounded-full bg-muted" })
644
+ children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "h-1 w-[100px] rounded-full bg-muted" })
383
645
  }
384
646
  )
385
647
  ) : null,
@@ -393,7 +655,7 @@ DrawerContent.displayName = "DrawerContent";
393
655
  var DrawerHeader = ({
394
656
  className,
395
657
  ...props
396
- }) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
658
+ }) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
397
659
  "div",
398
660
  {
399
661
  "data-slot": "drawer-header",
@@ -408,7 +670,7 @@ DrawerHeader.displayName = "DrawerHeader";
408
670
  var DrawerBody = ({
409
671
  className,
410
672
  ...props
411
- }) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
673
+ }) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
412
674
  "div",
413
675
  {
414
676
  "data-slot": "drawer-body",
@@ -420,7 +682,7 @@ DrawerBody.displayName = "DrawerBody";
420
682
  var DrawerFooter = ({
421
683
  className,
422
684
  ...props
423
- }) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
685
+ }) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
424
686
  "div",
425
687
  {
426
688
  "data-slot": "drawer-footer",
@@ -429,7 +691,7 @@ var DrawerFooter = ({
429
691
  }
430
692
  );
431
693
  DrawerFooter.displayName = "DrawerFooter";
432
- var DrawerTitle = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
694
+ var DrawerTitle = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
433
695
  import_vaul.Drawer.Title,
434
696
  {
435
697
  ref,
@@ -443,192 +705,8 @@ var DrawerTitle = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE
443
705
  ));
444
706
  DrawerTitle.displayName = import_vaul.Drawer.Title.displayName;
445
707
 
446
- // src/icons.tsx
447
- var import_jsx_runtime4 = require("react/jsx-runtime");
448
- function lucideProps(props) {
449
- return {
450
- xmlns: "http://www.w3.org/2000/svg",
451
- viewBox: "0 0 24 24",
452
- fill: "none",
453
- stroke: "currentColor",
454
- strokeWidth: 2,
455
- strokeLinecap: "round",
456
- strokeLinejoin: "round",
457
- "aria-hidden": true,
458
- ...props
459
- };
460
- }
461
- function Loader2Icon(props) {
462
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("svg", { ...lucideProps(props), children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" }) });
463
- }
464
- function ChevronLeftIcon(props) {
465
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("svg", { ...lucideProps(props), children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m15 18-6-6 6-6" }) });
466
- }
467
- function ChevronRightIcon(props) {
468
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("svg", { ...lucideProps(props), children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m9 18 6-6-6-6" }) });
469
- }
470
- function MoreHorizontalIcon(props) {
471
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("svg", { ...lucideProps(props), children: [
472
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "12", cy: "12", r: "1" }),
473
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "19", cy: "12", r: "1" }),
474
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "5", cy: "12", r: "1" })
475
- ] });
476
- }
477
- function LucideCheckIcon(props) {
478
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("svg", { ...lucideProps(props), children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M20 6 9 17l-5-5" }) });
479
- }
480
- function ChevronsUpDownIcon(props) {
481
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("svg", { ...lucideProps(props), children: [
482
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m7 15 5 5 5-5" }),
483
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m7 9 5-5 5 5" })
484
- ] });
485
- }
486
- function ExternalLinkIcon(props) {
487
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("svg", { ...lucideProps(props), children: [
488
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M15 3h6v6" }),
489
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M10 14 21 3" }),
490
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" })
491
- ] });
492
- }
493
- function LockIcon(props) {
494
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("svg", { ...lucideProps(props), children: [
495
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { width: "18", height: "11", x: "3", y: "11", rx: "2", ry: "2" }),
496
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M7 11V7a5 5 0 0 1 10 0v4" })
497
- ] });
498
- }
499
- function PlusIcon(props) {
500
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("svg", { ...lucideProps(props), children: [
501
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M5 12h14" }),
502
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M12 5v14" })
503
- ] });
504
- }
505
- function XIcon(props) {
506
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("svg", { ...lucideProps(props), children: [
507
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M18 6 6 18" }),
508
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m6 6 12 12" })
509
- ] });
510
- }
511
- function radixProps(props) {
512
- return {
513
- xmlns: "http://www.w3.org/2000/svg",
514
- viewBox: "0 0 15 15",
515
- width: 15,
516
- height: 15,
517
- fill: "none",
518
- "aria-hidden": true,
519
- ...props
520
- };
521
- }
522
- function MagnifyingGlassIcon(props) {
523
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("svg", { ...radixProps(props), children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
524
- "path",
525
- {
526
- d: "M10 6.5C10 8.433 8.433 10 6.5 10C4.567 10 3 8.433 3 6.5C3 4.567 4.567 3 6.5 3C8.433 3 10 4.567 10 6.5ZM9.30884 10.0159C8.53901 10.6318 7.56251 11 6.5 11C4.01472 11 2 8.98528 2 6.5C2 4.01472 4.01472 2 6.5 2C8.98528 2 11 4.01472 11 6.5C11 7.56251 10.6318 8.53901 10.0159 9.30884L12.8536 12.1464C13.0488 12.3417 13.0488 12.6583 12.8536 12.8536C12.6583 13.0488 12.3417 13.0488 12.1464 12.8536L9.30884 10.0159Z",
527
- fill: "currentColor",
528
- fillRule: "evenodd",
529
- clipRule: "evenodd"
530
- }
531
- ) });
532
- }
533
- function CheckIcon(props) {
534
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("svg", { ...radixProps(props), children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
535
- "path",
536
- {
537
- d: "M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",
538
- fill: "currentColor",
539
- fillRule: "evenodd",
540
- clipRule: "evenodd"
541
- }
542
- ) });
543
- }
544
- function DividerHorizontalIcon(props) {
545
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("svg", { ...radixProps(props), children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
546
- "path",
547
- {
548
- d: "M2 7.5C2 7.22386 2.22386 7 2.5 7H12.5C12.7761 7 13 7.22386 13 7.5C13 7.77614 12.7761 8 12.5 8H2.5C2.22386 8 2 7.77614 2 7.5Z",
549
- fill: "currentColor",
550
- fillRule: "evenodd",
551
- clipRule: "evenodd"
552
- }
553
- ) });
554
- }
555
- function DotFilledIcon(props) {
556
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("svg", { ...radixProps(props), children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
557
- "path",
558
- {
559
- d: "M9.875 7.5C9.875 8.81168 8.81168 9.875 7.5 9.875C6.18832 9.875 5.125 8.81168 5.125 7.5C5.125 6.18832 6.18832 5.125 7.5 5.125C8.81168 5.125 9.875 6.18832 9.875 7.5Z",
560
- fill: "currentColor"
561
- }
562
- ) });
563
- }
564
- function RadixChevronRightIcon(props) {
565
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("svg", { ...radixProps(props), children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
566
- "path",
567
- {
568
- d: "M6.1584 3.13508C6.35985 2.94621 6.67627 2.95642 6.86514 3.15788L10.6151 7.15788C10.7954 7.3502 10.7954 7.64949 10.6151 7.84182L6.86514 11.8418C6.67627 12.0433 6.35985 12.0535 6.1584 11.8646C5.95694 11.6757 5.94673 11.3593 6.1356 11.1579L9.565 7.49985L6.1356 3.84182C5.94673 3.64036 5.95694 3.32394 6.1584 3.13508Z",
569
- fill: "currentColor",
570
- fillRule: "evenodd",
571
- clipRule: "evenodd"
572
- }
573
- ) });
574
- }
575
- function RadixChevronDownIcon(props) {
576
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("svg", { ...radixProps(props), children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
577
- "path",
578
- {
579
- d: "M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",
580
- fill: "currentColor",
581
- fillRule: "evenodd",
582
- clipRule: "evenodd"
583
- }
584
- ) });
585
- }
586
- function RadixChevronUpIcon(props) {
587
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("svg", { ...radixProps(props), children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
588
- "path",
589
- {
590
- d: "M3.13523 8.84197C3.3241 9.04343 3.64052 9.05363 3.84197 8.86477L7.5 5.43536L11.158 8.86477C11.3595 9.05363 11.6759 9.04343 11.8648 8.84197C12.0536 8.64051 12.0434 8.32409 11.842 8.13523L7.84197 4.38523C7.64964 4.20492 7.35036 4.20492 7.15803 4.38523L3.15803 8.13523C2.95657 8.32409 2.94637 8.64051 3.13523 8.84197Z",
591
- fill: "currentColor",
592
- fillRule: "evenodd",
593
- clipRule: "evenodd"
594
- }
595
- ) });
596
- }
597
- function Cross2Icon(props) {
598
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
599
- "svg",
600
- {
601
- xmlns: "http://www.w3.org/2000/svg",
602
- viewBox: "0 0 15 15",
603
- fill: "none",
604
- "aria-hidden": true,
605
- ...props,
606
- children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
607
- "path",
608
- {
609
- d: "M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",
610
- fill: "currentColor",
611
- fillRule: "evenodd",
612
- clipRule: "evenodd"
613
- }
614
- )
615
- }
616
- );
617
- }
618
- function DragHandleDots2Icon(props) {
619
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("svg", { ...radixProps(props), children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
620
- "path",
621
- {
622
- d: "M4.5 2.5C5.05228 2.5 5.5 2.05228 5.5 1.5C5.5 0.947715 5.05228 0.5 4.5 0.5C3.94772 0.5 3.5 0.947715 3.5 1.5C3.5 2.05228 3.94772 2.5 4.5 2.5ZM4.5 6.5C5.05228 6.5 5.5 6.05229 5.5 5.5C5.5 4.94771 5.05228 4.5 4.5 4.5C3.94772 4.5 3.5 4.94771 3.5 5.5C3.5 6.05229 3.94772 6.5 4.5 6.5ZM5.5 9.5C5.5 10.0523 5.05228 10.5 4.5 10.5C3.94772 10.5 3.5 10.0523 3.5 9.5C3.5 8.94771 3.94772 8.5 4.5 8.5C5.05228 8.5 5.5 8.94771 5.5 9.5ZM4.5 14.5C5.05228 14.5 5.5 14.0523 5.5 13.5C5.5 12.9477 5.05228 12.5 4.5 12.5C3.94772 12.5 3.5 12.9477 3.5 13.5C3.5 14.0523 3.94772 14.5 4.5 14.5ZM11.5 1.5C11.5 2.05228 11.0523 2.5 10.5 2.5C9.94771 2.5 9.5 2.05228 9.5 1.5C9.5 0.947715 9.94771 0.5 10.5 0.5C11.0523 0.5 11.5 0.947715 11.5 1.5ZM10.5 6.5C11.0523 6.5 11.5 6.05229 11.5 5.5C11.5 4.94771 11.0523 4.5 10.5 4.5C9.94771 4.5 9.5 4.94771 9.5 5.5C9.5 6.05229 9.94771 6.5 10.5 6.5ZM11.5 9.5C11.5 10.0523 11.0523 10.5 10.5 10.5C9.94771 10.5 9.5 10.0523 9.5 9.5C9.5 8.94771 9.94771 8.5 10.5 8.5C11.0523 8.5 11.5 8.94771 11.5 9.5ZM10.5 14.5C11.0523 14.5 11.5 14.0523 11.5 13.5C11.5 12.9477 11.0523 12.5 10.5 12.5C9.94771 12.5 9.5 12.9477 9.5 13.5C9.5 14.0523 9.94771 14.5 10.5 14.5Z",
623
- fill: "currentColor",
624
- fillRule: "evenodd",
625
- clipRule: "evenodd"
626
- }
627
- ) });
628
- }
629
-
630
708
  // src/bottom-sheet.tsx
631
- var import_jsx_runtime5 = require("react/jsx-runtime");
709
+ var import_jsx_runtime6 = require("react/jsx-runtime");
632
710
  function BottomSheet({
633
711
  open,
634
712
  onOpenChange,
@@ -638,15 +716,15 @@ function BottomSheet({
638
716
  contentClassName,
639
717
  children
640
718
  }) {
641
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Drawer, { open, onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_vaul2.Drawer.Portal, { children: [
642
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
719
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Drawer, { open, onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_vaul2.Drawer.Portal, { children: [
720
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
643
721
  import_vaul2.Drawer.Overlay,
644
722
  {
645
723
  className: cn("fixed inset-0 z-50 bg-[var(--matrx-overlay-scrim)]", "fixed inset-0 z-50"),
646
724
  style: { background: "var(--matrx-overlay-scrim-drawer)" }
647
725
  }
648
726
  ),
649
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
727
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
650
728
  DrawerContentPrimitive,
651
729
  {
652
730
  className: cn(
@@ -663,11 +741,11 @@ function BottomSheet({
663
741
  borderBottom: "none"
664
742
  } : void 0,
665
743
  children: [
666
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_react_visually_hidden.VisuallyHidden, { children: [
667
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_vaul2.Drawer.Title, { children: title }),
668
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_vaul2.Drawer.Description, { children: "Bottom sheet panel." })
744
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_react_visually_hidden.VisuallyHidden, { children: [
745
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_vaul2.Drawer.Title, { children: title }),
746
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_vaul2.Drawer.Description, { children: "Bottom sheet panel." })
669
747
  ] }),
670
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "mx-auto mt-3 mb-1 h-1.5 w-10 rounded-full bg-muted-foreground/30 flex-shrink-0" }),
748
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "mx-auto mt-3 mb-1 h-1.5 w-10 rounded-full bg-muted-foreground/30 flex-shrink-0" }),
671
749
  children
672
750
  ]
673
751
  }
@@ -680,8 +758,8 @@ function BottomSheetHeader({
680
758
  onBack,
681
759
  trailing
682
760
  }) {
683
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex items-center px-2 pt-1 pb-2 flex-shrink-0 min-h-[44px]", children: [
684
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "min-w-[44px] flex items-center justify-start", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
761
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex items-center px-2 pt-1 pb-2 flex-shrink-0 min-h-[44px]", children: [
762
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "min-w-[44px] flex items-center justify-start", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
685
763
  "button",
686
764
  {
687
765
  onClick: onBack,
@@ -691,15 +769,15 @@ function BottomSheetHeader({
691
769
  ),
692
770
  "aria-hidden": !showBack,
693
771
  tabIndex: showBack ? 0 : -1,
694
- children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(ChevronLeftIcon, { className: "h-4 w-4 text-foreground" })
772
+ children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ChevronLeftIcon, { className: "h-4 w-4 text-foreground" })
695
773
  }
696
774
  ) }),
697
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "text-[17px] font-semibold flex-1 text-center truncate", children: title }),
698
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "min-w-[44px] flex items-center justify-end", children: trailing })
775
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "text-[17px] font-semibold flex-1 text-center truncate", children: title }),
776
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "min-w-[44px] flex items-center justify-end", children: trailing })
699
777
  ] });
700
778
  }
701
779
  function BottomSheetBody({ children, className }) {
702
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
780
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
703
781
  "div",
704
782
  {
705
783
  className: cn(
@@ -716,7 +794,7 @@ function BottomSheetFooter({
716
794
  children,
717
795
  className
718
796
  }) {
719
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
797
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
720
798
  "div",
721
799
  {
722
800
  className: cn(
@@ -730,8 +808,8 @@ function BottomSheetFooter({
730
808
 
731
809
  // src/alert.tsx
732
810
  var import_class_variance_authority2 = require("class-variance-authority");
733
- var React3 = __toESM(require("react"), 1);
734
- var import_jsx_runtime6 = require("react/jsx-runtime");
811
+ var React4 = __toESM(require("react"), 1);
812
+ var import_jsx_runtime7 = require("react/jsx-runtime");
735
813
  var alertVariants = (0, import_class_variance_authority2.cva)(
736
814
  "relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg~*]:pl-7",
737
815
  {
@@ -749,8 +827,8 @@ var alertVariants = (0, import_class_variance_authority2.cva)(
749
827
  }
750
828
  }
751
829
  );
752
- var Alert = React3.forwardRef(
753
- ({ className, variant, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
830
+ var Alert = React4.forwardRef(
831
+ ({ className, variant, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
754
832
  "div",
755
833
  {
756
834
  ref,
@@ -763,7 +841,7 @@ var Alert = React3.forwardRef(
763
841
  )
764
842
  );
765
843
  Alert.displayName = "Alert";
766
- var AlertTitle = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
844
+ var AlertTitle = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
767
845
  "h5",
768
846
  {
769
847
  ref,
@@ -773,7 +851,7 @@ var AlertTitle = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE_
773
851
  }
774
852
  ));
775
853
  AlertTitle.displayName = "AlertTitle";
776
- var AlertDescription = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
854
+ var AlertDescription = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
777
855
  "div",
778
856
  {
779
857
  ref,
@@ -787,13 +865,13 @@ AlertDescription.displayName = "AlertDescription";
787
865
  // src/alert-dialog.tsx
788
866
  var AlertDialogPrimitive = __toESM(require("@radix-ui/react-alert-dialog"), 1);
789
867
  var import_react_tree2 = require("@ai-matrx/kit/react-tree");
790
- var React6 = __toESM(require("react"), 1);
868
+ var React7 = __toESM(require("react"), 1);
791
869
 
792
870
  // src/button.tsx
793
871
  var import_react_slot = require("@radix-ui/react-slot");
794
872
  var import_class_variance_authority3 = require("class-variance-authority");
795
- var React4 = __toESM(require("react"), 1);
796
- var import_jsx_runtime7 = require("react/jsx-runtime");
873
+ var React5 = __toESM(require("react"), 1);
874
+ var import_jsx_runtime8 = require("react/jsx-runtime");
797
875
  var buttonVariants = (0, import_class_variance_authority3.cva)(
798
876
  "inline-flex cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-0 disabled:pointer-events-none disabled:opacity-50 active:scale-[0.98] [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
799
877
  {
@@ -845,10 +923,10 @@ var buttonVariants = (0, import_class_variance_authority3.cva)(
845
923
  }
846
924
  }
847
925
  );
848
- var Button = React4.forwardRef(
926
+ var Button = React5.forwardRef(
849
927
  ({ className, variant, size, asChild = false, ...props }, ref) => {
850
928
  const Component = asChild ? import_react_slot.Slot : "button";
851
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
929
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
852
930
  Component,
853
931
  {
854
932
  className: cn(buttonVariants({ variant, size, className })),
@@ -861,19 +939,19 @@ var Button = React4.forwardRef(
861
939
  Button.displayName = "Button";
862
940
 
863
941
  // src/portal-container.tsx
864
- var React5 = __toESM(require("react"), 1);
865
- var import_jsx_runtime8 = require("react/jsx-runtime");
866
- var PortalContainerContext = React5.createContext(
942
+ var React6 = __toESM(require("react"), 1);
943
+ var import_jsx_runtime9 = require("react/jsx-runtime");
944
+ var PortalContainerContext = React6.createContext(
867
945
  void 0
868
946
  );
869
947
  function PortalContainerProvider({
870
948
  container,
871
949
  children
872
950
  }) {
873
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(PortalContainerContext.Provider, { value: container ?? void 0, children });
951
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(PortalContainerContext.Provider, { value: container ?? void 0, children });
874
952
  }
875
953
  function usePortalContainer(explicit) {
876
- const injected = React5.useContext(PortalContainerContext);
954
+ const injected = React6.useContext(PortalContainerContext);
877
955
  if (explicit !== void 0) {
878
956
  return explicit ?? void 0;
879
957
  }
@@ -881,7 +959,7 @@ function usePortalContainer(explicit) {
881
959
  }
882
960
 
883
961
  // src/alert-dialog.tsx
884
- var import_jsx_runtime9 = require("react/jsx-runtime");
962
+ var import_jsx_runtime10 = require("react/jsx-runtime");
885
963
  var AlertDialog = AlertDialogPrimitive.Root;
886
964
  var AlertDialogTrigger = AlertDialogPrimitive.Trigger;
887
965
  var AlertDialogPortal = ({
@@ -889,10 +967,10 @@ var AlertDialogPortal = ({
889
967
  ...props
890
968
  }) => {
891
969
  const resolved = usePortalContainer(container);
892
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(AlertDialogPrimitive.Portal, { container: resolved ?? null, ...props });
970
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(AlertDialogPrimitive.Portal, { container: resolved ?? null, ...props });
893
971
  };
894
972
  AlertDialogPortal.displayName = "AlertDialogPortal";
895
- var AlertDialogOverlay = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
973
+ var AlertDialogOverlay = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
896
974
  AlertDialogPrimitive.Overlay,
897
975
  {
898
976
  ref,
@@ -905,9 +983,9 @@ var AlertDialogOverlay = React6.forwardRef(({ className, ...props }, ref) => /*
905
983
  }
906
984
  ));
907
985
  AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
908
- var AlertDialogContentPrimitive = React6.forwardRef((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(AlertDialogPrimitive.Content, { ...props, ref, "aria-modal": "true" }));
986
+ var AlertDialogContentPrimitive = React7.forwardRef((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(AlertDialogPrimitive.Content, { ...props, ref, "aria-modal": "true" }));
909
987
  AlertDialogContentPrimitive.displayName = "AlertDialogContentPrimitive";
910
- var AlertDialogDescription = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
988
+ var AlertDialogDescription = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
911
989
  AlertDialogPrimitive.Description,
912
990
  {
913
991
  ref,
@@ -917,11 +995,11 @@ var AlertDialogDescription = React6.forwardRef(({ className, ...props }, ref) =>
917
995
  }
918
996
  ));
919
997
  AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
920
- var AlertDialogContent = React6.forwardRef(({ className, children, container, ...props }, ref) => {
998
+ var AlertDialogContent = React7.forwardRef(({ className, children, container, ...props }, ref) => {
921
999
  const hasDescription = (0, import_react_tree2.treeContainsComponent)(children, AlertDialogDescription) || (0, import_react_tree2.treeContainsComponent)(children, AlertDialogPrimitive.Description);
922
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(AlertDialogPortal, { container, children: [
923
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(AlertDialogOverlay, {}),
924
- /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
1000
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(AlertDialogPortal, { container, children: [
1001
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(AlertDialogOverlay, {}),
1002
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
925
1003
  AlertDialogContentPrimitive,
926
1004
  {
927
1005
  ref,
@@ -936,7 +1014,7 @@ var AlertDialogContent = React6.forwardRef(({ className, children, container, ..
936
1014
  ),
937
1015
  ...props,
938
1016
  children: [
939
- hasDescription ? null : /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(AlertDialogPrimitive.Description, { className: "sr-only", children: "Please confirm the action described in this dialog." }),
1017
+ hasDescription ? null : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(AlertDialogPrimitive.Description, { className: "sr-only", children: "Please confirm the action described in this dialog." }),
940
1018
  children
941
1019
  ]
942
1020
  }
@@ -947,7 +1025,7 @@ AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
947
1025
  var AlertDialogHeader = ({
948
1026
  className,
949
1027
  ...props
950
- }) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1028
+ }) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
951
1029
  "div",
952
1030
  {
953
1031
  "data-slot": "alert-dialog-header",
@@ -959,7 +1037,7 @@ AlertDialogHeader.displayName = "AlertDialogHeader";
959
1037
  var AlertDialogFooter = ({
960
1038
  className,
961
1039
  ...props
962
- }) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1040
+ }) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
963
1041
  "div",
964
1042
  {
965
1043
  "data-slot": "alert-dialog-footer",
@@ -975,7 +1053,7 @@ var AlertDialogFooter = ({
975
1053
  }
976
1054
  );
977
1055
  AlertDialogFooter.displayName = "AlertDialogFooter";
978
- var AlertDialogTitle = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1056
+ var AlertDialogTitle = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
979
1057
  AlertDialogPrimitive.Title,
980
1058
  {
981
1059
  ref,
@@ -985,7 +1063,7 @@ var AlertDialogTitle = React6.forwardRef(({ className, ...props }, ref) => /* @_
985
1063
  }
986
1064
  ));
987
1065
  AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
988
- var AlertDialogAction = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1066
+ var AlertDialogAction = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
989
1067
  AlertDialogPrimitive.Action,
990
1068
  {
991
1069
  ref,
@@ -995,7 +1073,7 @@ var AlertDialogAction = React6.forwardRef(({ className, ...props }, ref) => /* @
995
1073
  }
996
1074
  ));
997
1075
  AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
998
- var AlertDialogCancel = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1076
+ var AlertDialogCancel = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
999
1077
  AlertDialogPrimitive.Cancel,
1000
1078
  {
1001
1079
  ref,
@@ -1012,14 +1090,14 @@ AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
1012
1090
 
1013
1091
  // src/avatar.tsx
1014
1092
  var AvatarPrimitive = __toESM(require("@radix-ui/react-avatar"), 1);
1015
- var React7 = __toESM(require("react"), 1);
1016
- var import_jsx_runtime10 = require("react/jsx-runtime");
1093
+ var React8 = __toESM(require("react"), 1);
1094
+ var import_jsx_runtime11 = require("react/jsx-runtime");
1017
1095
  var AVATAR_SIZES = {
1018
1096
  sm: "h-8 w-8 text-[11px]",
1019
1097
  md: "h-9 w-9 text-xs",
1020
1098
  lg: "h-10 w-10 text-sm"
1021
1099
  };
1022
- var Avatar = React7.forwardRef(({ className, size = "lg", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1100
+ var Avatar = React8.forwardRef(({ className, size = "lg", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1023
1101
  AvatarPrimitive.Root,
1024
1102
  {
1025
1103
  ref,
@@ -1033,7 +1111,7 @@ var Avatar = React7.forwardRef(({ className, size = "lg", ...props }, ref) => /*
1033
1111
  }
1034
1112
  ));
1035
1113
  Avatar.displayName = AvatarPrimitive.Root.displayName;
1036
- var AvatarImage = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1114
+ var AvatarImage = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1037
1115
  AvatarPrimitive.Image,
1038
1116
  {
1039
1117
  ref,
@@ -1043,7 +1121,7 @@ var AvatarImage = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE
1043
1121
  }
1044
1122
  ));
1045
1123
  AvatarImage.displayName = AvatarPrimitive.Image.displayName;
1046
- var AvatarFallback = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1124
+ var AvatarFallback = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1047
1125
  AvatarPrimitive.Fallback,
1048
1126
  {
1049
1127
  ref,
@@ -1058,8 +1136,8 @@ var AvatarFallback = React7.forwardRef(({ className, ...props }, ref) => /* @__P
1058
1136
  AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
1059
1137
 
1060
1138
  // src/card.tsx
1061
- var React8 = __toESM(require("react"), 1);
1062
- var import_jsx_runtime11 = require("react/jsx-runtime");
1139
+ var React9 = __toESM(require("react"), 1);
1140
+ var import_jsx_runtime12 = require("react/jsx-runtime");
1063
1141
  var CARD_SIZES = {
1064
1142
  sm: {
1065
1143
  root: "rounded-xl border bg-card text-card-foreground shadow",
@@ -1077,12 +1155,12 @@ var CARD_SIZES = {
1077
1155
  padTopless: "p-6 pt-0"
1078
1156
  }
1079
1157
  };
1080
- var CardSizeContext = React8.createContext("md");
1158
+ var CardSizeContext = React9.createContext("md");
1081
1159
  function useCardSize() {
1082
- return React8.useContext(CardSizeContext);
1160
+ return React9.useContext(CardSizeContext);
1083
1161
  }
1084
- var Card = React8.forwardRef(
1085
- ({ className, size = "md", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(CardSizeContext.Provider, { value: size, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1162
+ var Card = React9.forwardRef(
1163
+ ({ className, size = "md", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(CardSizeContext.Provider, { value: size, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1086
1164
  "div",
1087
1165
  {
1088
1166
  ref,
@@ -1094,9 +1172,9 @@ var Card = React8.forwardRef(
1094
1172
  ) })
1095
1173
  );
1096
1174
  Card.displayName = "Card";
1097
- var CardHeader = React8.forwardRef(({ className, ...props }, ref) => {
1175
+ var CardHeader = React9.forwardRef(({ className, ...props }, ref) => {
1098
1176
  const size = useCardSize();
1099
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1177
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1100
1178
  "div",
1101
1179
  {
1102
1180
  ref,
@@ -1111,7 +1189,7 @@ var CardHeader = React8.forwardRef(({ className, ...props }, ref) => {
1111
1189
  );
1112
1190
  });
1113
1191
  CardHeader.displayName = "CardHeader";
1114
- var CardTitle = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1192
+ var CardTitle = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1115
1193
  "h3",
1116
1194
  {
1117
1195
  ref,
@@ -1121,7 +1199,7 @@ var CardTitle = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__
1121
1199
  }
1122
1200
  ));
1123
1201
  CardTitle.displayName = "CardTitle";
1124
- var CardDescription = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1202
+ var CardDescription = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1125
1203
  "p",
1126
1204
  {
1127
1205
  ref,
@@ -1131,7 +1209,7 @@ var CardDescription = React8.forwardRef(({ className, ...props }, ref) => /* @__
1131
1209
  }
1132
1210
  ));
1133
1211
  CardDescription.displayName = "CardDescription";
1134
- var CardAction = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1212
+ var CardAction = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1135
1213
  "div",
1136
1214
  {
1137
1215
  ref,
@@ -1141,9 +1219,9 @@ var CardAction = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE_
1141
1219
  }
1142
1220
  ));
1143
1221
  CardAction.displayName = "CardAction";
1144
- var CardContent = React8.forwardRef(({ className, ...props }, ref) => {
1222
+ var CardContent = React9.forwardRef(({ className, ...props }, ref) => {
1145
1223
  const size = useCardSize();
1146
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1224
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1147
1225
  "div",
1148
1226
  {
1149
1227
  ref,
@@ -1154,9 +1232,9 @@ var CardContent = React8.forwardRef(({ className, ...props }, ref) => {
1154
1232
  );
1155
1233
  });
1156
1234
  CardContent.displayName = "CardContent";
1157
- var CardFooter = React8.forwardRef(({ className, ...props }, ref) => {
1235
+ var CardFooter = React9.forwardRef(({ className, ...props }, ref) => {
1158
1236
  const size = useCardSize();
1159
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1237
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1160
1238
  "div",
1161
1239
  {
1162
1240
  ref,
@@ -1174,13 +1252,13 @@ CardFooter.displayName = "CardFooter";
1174
1252
 
1175
1253
  // src/checkbox.tsx
1176
1254
  var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"), 1);
1177
- var React9 = __toESM(require("react"), 1);
1178
- var import_jsx_runtime12 = require("react/jsx-runtime");
1255
+ var React10 = __toESM(require("react"), 1);
1256
+ var import_jsx_runtime13 = require("react/jsx-runtime");
1179
1257
  var CHECKBOX_SIZES = {
1180
1258
  sm: { root: "h-3.5 w-3.5 rounded-xs", glyph: "h-3 w-3" },
1181
1259
  md: { root: "h-4 w-4 rounded-sm", glyph: "h-3.5 w-3.5" }
1182
1260
  };
1183
- var Checkbox = React9.forwardRef(({ className, size = "md", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1261
+ var Checkbox = React10.forwardRef(({ className, size = "md", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1184
1262
  CheckboxPrimitive.Root,
1185
1263
  {
1186
1264
  ref,
@@ -1191,12 +1269,12 @@ var Checkbox = React9.forwardRef(({ className, size = "md", ...props }, ref) =>
1191
1269
  className
1192
1270
  ),
1193
1271
  ...props,
1194
- children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1272
+ children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1195
1273
  CheckboxPrimitive.Indicator,
1196
1274
  {
1197
1275
  "data-slot": "checkbox-indicator",
1198
1276
  className: "flex items-center justify-center text-current",
1199
- children: props.checked === "indeterminate" ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(DividerHorizontalIcon, { className: CHECKBOX_SIZES[size].glyph }) : /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(CheckIcon, { className: CHECKBOX_SIZES[size].glyph })
1277
+ children: props.checked === "indeterminate" ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(DividerHorizontalIcon, { className: CHECKBOX_SIZES[size].glyph }) : /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(CheckIcon, { className: CHECKBOX_SIZES[size].glyph })
1200
1278
  }
1201
1279
  )
1202
1280
  }
@@ -1205,22 +1283,36 @@ Checkbox.displayName = CheckboxPrimitive.Root.displayName;
1205
1283
 
1206
1284
  // src/collapsible.tsx
1207
1285
  var CollapsiblePrimitive = __toESM(require("@radix-ui/react-collapsible"), 1);
1286
+ var React11 = __toESM(require("react"), 1);
1287
+ var import_jsx_runtime14 = require("react/jsx-runtime");
1208
1288
  var Collapsible = CollapsiblePrimitive.Root;
1209
1289
  var CollapsibleTrigger2 = CollapsiblePrimitive.CollapsibleTrigger;
1210
- var CollapsibleContent2 = CollapsiblePrimitive.CollapsibleContent;
1290
+ var CollapsibleContent2 = React11.forwardRef(({ className, animated = true, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1291
+ CollapsiblePrimitive.CollapsibleContent,
1292
+ {
1293
+ ref,
1294
+ "data-slot": "collapsible-content",
1295
+ className: cn(
1296
+ animated && "matrx-collapsible-content overflow-hidden",
1297
+ className
1298
+ ),
1299
+ ...props
1300
+ }
1301
+ ));
1302
+ CollapsibleContent2.displayName = "CollapsibleContent";
1211
1303
 
1212
1304
  // src/command.tsx
1213
1305
  var DialogPrimitive = __toESM(require("@radix-ui/react-dialog"), 1);
1214
1306
  var import_cmdk = require("cmdk");
1215
- var React11 = __toESM(require("react"), 1);
1307
+ var React13 = __toESM(require("react"), 1);
1216
1308
 
1217
1309
  // src/use-is-mobile.ts
1218
- var React10 = __toESM(require("react"), 1);
1310
+ var React12 = __toESM(require("react"), 1);
1219
1311
  var MOBILE_BREAKPOINT = 768;
1220
1312
  function useIsMobile() {
1221
- const [isMobile, setIsMobile] = React10.useState(false);
1222
- const [hasMounted, setHasMounted] = React10.useState(false);
1223
- React10.useEffect(() => {
1313
+ const [isMobile, setIsMobile] = React12.useState(false);
1314
+ const [hasMounted, setHasMounted] = React12.useState(false);
1315
+ React12.useEffect(() => {
1224
1316
  setHasMounted(true);
1225
1317
  const onChange = () => {
1226
1318
  setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
@@ -1240,8 +1332,8 @@ function useIsMobile() {
1240
1332
  }
1241
1333
 
1242
1334
  // src/command.tsx
1243
- var import_jsx_runtime13 = require("react/jsx-runtime");
1244
- var Command = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1335
+ var import_jsx_runtime15 = require("react/jsx-runtime");
1336
+ var Command = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1245
1337
  import_cmdk.Command,
1246
1338
  {
1247
1339
  ref,
@@ -1256,18 +1348,18 @@ Command.displayName = import_cmdk.Command.displayName;
1256
1348
  var DIALOG_DESKTOP_CLASSES = "fixed left-[50%] top-[50%] z-[10000] grid min-w-0 w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 overflow-x-clip border bg-background p-6 shadow-lg [overflow-wrap:anywhere] [&>*]:min-w-0 [&>*]:max-w-full duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg";
1257
1349
  var DIALOG_MOBILE_SHEET_CLASSES = "fixed inset-x-0 bottom-0 left-0 right-0 top-auto z-[10000] flex min-w-0 flex-col w-full max-w-full max-h-[90dvh] translate-x-0 translate-y-0 gap-4 overflow-x-clip border-t bg-background p-4 pb-safe shadow-lg [overflow-wrap:anywhere] [&>*]:min-w-0 [&>*]:max-w-full duration-200 rounded-t-2xl rounded-b-none overflow-y-auto overscroll-contain data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom";
1258
1350
  var DIALOG_MOBILE_SHEET_OVERRIDE = "inset-x-0 bottom-0 left-0 right-0 top-auto translate-x-0 translate-y-0 w-full max-w-full max-h-[90dvh] rounded-b-none rounded-t-2xl overflow-y-auto";
1259
- var CommandDialogContent = React11.forwardRef(({ className, children, container, ...props }, ref) => {
1351
+ var CommandDialogContent = React13.forwardRef(({ className, children, container, ...props }, ref) => {
1260
1352
  const isMobile = useIsMobile();
1261
1353
  const isModal = useRadixDialogModal();
1262
1354
  const portalContainer = usePortalContainer(container);
1263
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(DialogPrimitive.Portal, { container: portalContainer, children: [
1264
- isModal ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1355
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(DialogPrimitive.Portal, { container: portalContainer, children: [
1356
+ isModal ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1265
1357
  DialogPrimitive.Overlay,
1266
1358
  {
1267
1359
  className: "fixed inset-0 z-[10000] bg-[var(--matrx-overlay-scrim-soft)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"
1268
1360
  }
1269
1361
  ) : null,
1270
- /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
1362
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
1271
1363
  DialogPrimitive.Content,
1272
1364
  {
1273
1365
  ref,
@@ -1282,9 +1374,9 @@ var CommandDialogContent = React11.forwardRef(({ className, children, container,
1282
1374
  ...props,
1283
1375
  children: [
1284
1376
  children,
1285
- /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(DialogPrimitive.Close, { className: "absolute right-2 top-4 flex h-10 w-10 items-center justify-center rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground sm:right-4", children: [
1286
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(XIcon, { className: "h-4 w-4" }),
1287
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "sr-only", children: "Close" })
1377
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(DialogPrimitive.Close, { className: "absolute right-2 top-4 flex h-10 w-10 items-center justify-center rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground sm:right-4", children: [
1378
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(XIcon, { className: "h-4 w-4" }),
1379
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "sr-only", children: "Close" })
1288
1380
  ] })
1289
1381
  ]
1290
1382
  }
@@ -1298,21 +1390,21 @@ var CommandDialog = ({
1298
1390
  ...props
1299
1391
  }) => {
1300
1392
  const modal = props.modal ?? true;
1301
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(RadixDialogModalProvider, { modal, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(DialogPrimitive.Root, { ...props, modal, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
1393
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(RadixDialogModalProvider, { modal, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(DialogPrimitive.Root, { ...props, modal, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
1302
1394
  CommandDialogContent,
1303
1395
  {
1304
1396
  className: "overflow-hidden p-0",
1305
1397
  ...container !== void 0 ? { container } : {},
1306
1398
  children: [
1307
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(DialogPrimitive.Title, { className: "sr-only" }),
1308
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Command, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children })
1399
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(DialogPrimitive.Title, { className: "sr-only" }),
1400
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Command, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children })
1309
1401
  ]
1310
1402
  }
1311
1403
  ) }) });
1312
1404
  };
1313
- var CommandInput = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
1314
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(MagnifyingGlassIcon, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
1315
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1405
+ var CommandInput = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
1406
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(MagnifyingGlassIcon, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
1407
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1316
1408
  import_cmdk.Command.Input,
1317
1409
  {
1318
1410
  ref,
@@ -1325,7 +1417,7 @@ var CommandInput = React11.forwardRef(({ className, ...props }, ref) => /* @__PU
1325
1417
  )
1326
1418
  ] }));
1327
1419
  CommandInput.displayName = import_cmdk.Command.Input.displayName;
1328
- var CommandList = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1420
+ var CommandList = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1329
1421
  import_cmdk.Command.List,
1330
1422
  {
1331
1423
  ref,
@@ -1334,7 +1426,7 @@ var CommandList = React11.forwardRef(({ className, ...props }, ref) => /* @__PUR
1334
1426
  }
1335
1427
  ));
1336
1428
  CommandList.displayName = import_cmdk.Command.List.displayName;
1337
- var CommandEmpty = React11.forwardRef((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1429
+ var CommandEmpty = React13.forwardRef((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1338
1430
  import_cmdk.Command.Empty,
1339
1431
  {
1340
1432
  ref,
@@ -1343,7 +1435,7 @@ var CommandEmpty = React11.forwardRef((props, ref) => /* @__PURE__ */ (0, import
1343
1435
  }
1344
1436
  ));
1345
1437
  CommandEmpty.displayName = import_cmdk.Command.Empty.displayName;
1346
- var CommandGroup = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1438
+ var CommandGroup = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1347
1439
  import_cmdk.Command.Group,
1348
1440
  {
1349
1441
  ref,
@@ -1355,7 +1447,7 @@ var CommandGroup = React11.forwardRef(({ className, ...props }, ref) => /* @__PU
1355
1447
  }
1356
1448
  ));
1357
1449
  CommandGroup.displayName = import_cmdk.Command.Group.displayName;
1358
- var CommandSeparator = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1450
+ var CommandSeparator = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1359
1451
  import_cmdk.Command.Separator,
1360
1452
  {
1361
1453
  ref,
@@ -1364,7 +1456,7 @@ var CommandSeparator = React11.forwardRef(({ className, ...props }, ref) => /* @
1364
1456
  }
1365
1457
  ));
1366
1458
  CommandSeparator.displayName = import_cmdk.Command.Separator.displayName;
1367
- var CommandItem = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1459
+ var CommandItem = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1368
1460
  import_cmdk.Command.Item,
1369
1461
  {
1370
1462
  ref,
@@ -1380,7 +1472,7 @@ var CommandShortcut = ({
1380
1472
  className,
1381
1473
  ...props
1382
1474
  }) => {
1383
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1475
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1384
1476
  "span",
1385
1477
  {
1386
1478
  className: cn(
@@ -1395,8 +1487,8 @@ CommandShortcut.displayName = "CommandShortcut";
1395
1487
 
1396
1488
  // src/context-menu.tsx
1397
1489
  var ContextMenuPrimitive = __toESM(require("@radix-ui/react-context-menu"), 1);
1398
- var React12 = __toESM(require("react"), 1);
1399
- var import_jsx_runtime14 = require("react/jsx-runtime");
1490
+ var React14 = __toESM(require("react"), 1);
1491
+ var import_jsx_runtime16 = require("react/jsx-runtime");
1400
1492
  var ContextMenu = ContextMenuPrimitive.Root;
1401
1493
  var ContextMenuTrigger = ContextMenuPrimitive.Trigger;
1402
1494
  var ContextMenuGroup = ContextMenuPrimitive.Group;
@@ -1407,7 +1499,7 @@ var SURFACE_CLASS = "z-50 min-w-[8rem] max-h-[var(--radix-context-menu-content-a
1407
1499
  var MOTION_CLASS = "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2";
1408
1500
  var ITEM_CLASS = "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50";
1409
1501
  var INDICATOR_ITEM_CLASS = "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50";
1410
- var ContextMenuSubTrigger = React12.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
1502
+ var ContextMenuSubTrigger = React14.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
1411
1503
  ContextMenuPrimitive.SubTrigger,
1412
1504
  {
1413
1505
  ref,
@@ -1420,12 +1512,12 @@ var ContextMenuSubTrigger = React12.forwardRef(({ className, inset, children, ..
1420
1512
  ...props,
1421
1513
  children: [
1422
1514
  children,
1423
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(RadixChevronRightIcon, { className: "ml-auto h-4 w-4" })
1515
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(RadixChevronRightIcon, { className: "ml-auto h-4 w-4" })
1424
1516
  ]
1425
1517
  }
1426
1518
  ));
1427
1519
  ContextMenuSubTrigger.displayName = ContextMenuPrimitive.SubTrigger.displayName;
1428
- var ContextMenuSubContent = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1520
+ var ContextMenuSubContent = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1429
1521
  ContextMenuPrimitive.SubContent,
1430
1522
  {
1431
1523
  ref,
@@ -1435,9 +1527,9 @@ var ContextMenuSubContent = React12.forwardRef(({ className, ...props }, ref) =>
1435
1527
  }
1436
1528
  ));
1437
1529
  ContextMenuSubContent.displayName = ContextMenuPrimitive.SubContent.displayName;
1438
- var ContextMenuContent = React12.forwardRef(({ className, container, ...props }, ref) => {
1530
+ var ContextMenuContent = React14.forwardRef(({ className, container, ...props }, ref) => {
1439
1531
  const portalContainer = usePortalContainer(container);
1440
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ContextMenuPrimitive.Portal, { container: portalContainer, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1532
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(ContextMenuPrimitive.Portal, { container: portalContainer, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1441
1533
  ContextMenuPrimitive.Content,
1442
1534
  {
1443
1535
  ref,
@@ -1448,7 +1540,7 @@ var ContextMenuContent = React12.forwardRef(({ className, container, ...props },
1448
1540
  ) });
1449
1541
  });
1450
1542
  ContextMenuContent.displayName = ContextMenuPrimitive.Content.displayName;
1451
- var ContextMenuItem = React12.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1543
+ var ContextMenuItem = React14.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1452
1544
  ContextMenuPrimitive.Item,
1453
1545
  {
1454
1546
  ref,
@@ -1463,7 +1555,7 @@ var ContextMenuItem = React12.forwardRef(({ className, inset, ...props }, ref) =
1463
1555
  }
1464
1556
  ));
1465
1557
  ContextMenuItem.displayName = ContextMenuPrimitive.Item.displayName;
1466
- var ContextMenuCheckboxItem = React12.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
1558
+ var ContextMenuCheckboxItem = React14.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
1467
1559
  ContextMenuPrimitive.CheckboxItem,
1468
1560
  {
1469
1561
  ref,
@@ -1471,13 +1563,13 @@ var ContextMenuCheckboxItem = React12.forwardRef(({ className, children, ...prop
1471
1563
  className: cn(INDICATOR_ITEM_CLASS, className),
1472
1564
  ...props,
1473
1565
  children: [
1474
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(CheckIcon, { className: "h-4 w-4" }) }) }),
1566
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(CheckIcon, { className: "h-4 w-4" }) }) }),
1475
1567
  children
1476
1568
  ]
1477
1569
  }
1478
1570
  ));
1479
1571
  ContextMenuCheckboxItem.displayName = ContextMenuPrimitive.CheckboxItem.displayName;
1480
- var ContextMenuRadioItem = React12.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
1572
+ var ContextMenuRadioItem = React14.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
1481
1573
  ContextMenuPrimitive.RadioItem,
1482
1574
  {
1483
1575
  ref,
@@ -1485,13 +1577,13 @@ var ContextMenuRadioItem = React12.forwardRef(({ className, children, ...props }
1485
1577
  className: cn(INDICATOR_ITEM_CLASS, className),
1486
1578
  ...props,
1487
1579
  children: [
1488
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(DotFilledIcon, { className: "h-4 w-4 fill-current" }) }) }),
1580
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(DotFilledIcon, { className: "h-4 w-4 fill-current" }) }) }),
1489
1581
  children
1490
1582
  ]
1491
1583
  }
1492
1584
  ));
1493
1585
  ContextMenuRadioItem.displayName = ContextMenuPrimitive.RadioItem.displayName;
1494
- var ContextMenuLabel = React12.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1586
+ var ContextMenuLabel = React14.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1495
1587
  ContextMenuPrimitive.Label,
1496
1588
  {
1497
1589
  ref,
@@ -1505,7 +1597,7 @@ var ContextMenuLabel = React12.forwardRef(({ className, inset, ...props }, ref)
1505
1597
  }
1506
1598
  ));
1507
1599
  ContextMenuLabel.displayName = ContextMenuPrimitive.Label.displayName;
1508
- var ContextMenuSeparator = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1600
+ var ContextMenuSeparator = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1509
1601
  ContextMenuPrimitive.Separator,
1510
1602
  {
1511
1603
  ref,
@@ -1518,7 +1610,7 @@ ContextMenuSeparator.displayName = ContextMenuPrimitive.Separator.displayName;
1518
1610
  var ContextMenuShortcut = ({
1519
1611
  className,
1520
1612
  ...props
1521
- }) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1613
+ }) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1522
1614
  "span",
1523
1615
  {
1524
1616
  "data-slot": "context-menu-shortcut",
@@ -1533,15 +1625,15 @@ var import_react = require("react");
1533
1625
 
1534
1626
  // src/popover.tsx
1535
1627
  var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"), 1);
1536
- var React13 = __toESM(require("react"), 1);
1537
- var import_jsx_runtime15 = require("react/jsx-runtime");
1628
+ var React15 = __toESM(require("react"), 1);
1629
+ var import_jsx_runtime17 = require("react/jsx-runtime");
1538
1630
  var Popover = PopoverPrimitive.Root;
1539
1631
  var PopoverTrigger = PopoverPrimitive.Trigger;
1540
1632
  var PopoverAnchor = PopoverPrimitive.Anchor;
1541
- var PopoverContent = React13.forwardRef(
1633
+ var PopoverContent = React15.forwardRef(
1542
1634
  ({ className, align = "center", sideOffset = 4, container, ...props }, ref) => {
1543
1635
  const portalContainer = usePortalContainer(container);
1544
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(PopoverPrimitive.Portal, { container: portalContainer, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1636
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(PopoverPrimitive.Portal, { container: portalContainer, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1545
1637
  PopoverPrimitive.Content,
1546
1638
  {
1547
1639
  ref,
@@ -1565,7 +1657,7 @@ var PopoverContent = React13.forwardRef(
1565
1657
  PopoverContent.displayName = PopoverPrimitive.Content.displayName;
1566
1658
 
1567
1659
  // src/creatable-picker.tsx
1568
- var import_jsx_runtime16 = require("react/jsx-runtime");
1660
+ var import_jsx_runtime18 = require("react/jsx-runtime");
1569
1661
  function article(noun) {
1570
1662
  return /^[aeiou]/i.test(noun.trim()) ? `an ${noun}` : `a ${noun}`;
1571
1663
  }
@@ -1640,8 +1732,8 @@ function CreatablePicker({
1640
1732
  setBusy(false);
1641
1733
  }
1642
1734
  };
1643
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(Popover, { open, onOpenChange: (next) => next ? setOpen(true) : close(), children: [
1644
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(PopoverTrigger, { asChild: true, disabled, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
1735
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(Popover, { open, onOpenChange: (next) => next ? setOpen(true) : close(), children: [
1736
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(PopoverTrigger, { asChild: true, disabled, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
1645
1737
  "button",
1646
1738
  {
1647
1739
  type: "button",
@@ -1655,12 +1747,12 @@ function CreatablePicker({
1655
1747
  triggerClassName
1656
1748
  ),
1657
1749
  children: [
1658
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "min-w-0 flex-1 truncate", children: selected ? renderSelected ?? selected.render ?? selected.label : /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "text-muted-foreground", children: loading ? "Loading\u2026" : placeholder }) }),
1659
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(ChevronsUpDownIcon, { className: "size-3.5 shrink-0 opacity-50" })
1750
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "min-w-0 flex-1 truncate", children: selected ? renderSelected ?? selected.render ?? selected.label : /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "text-muted-foreground", children: loading ? "Loading\u2026" : placeholder }) }),
1751
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(ChevronsUpDownIcon, { className: "size-3.5 shrink-0 opacity-50" })
1660
1752
  ]
1661
1753
  }
1662
1754
  ) }),
1663
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(PopoverContent, { align: "start", className: "w-[--radix-popover-trigger-width] min-w-56 p-0", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
1755
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(PopoverContent, { align: "start", className: "w-[--radix-popover-trigger-width] min-w-56 p-0", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
1664
1756
  Command,
1665
1757
  {
1666
1758
  filter: (itemValue, search, keywords) => {
@@ -1668,7 +1760,7 @@ function CreatablePicker({
1668
1760
  return haystack.includes(search.toLowerCase()) ? 1 : 0;
1669
1761
  },
1670
1762
  children: [
1671
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1763
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1672
1764
  CommandInput,
1673
1765
  {
1674
1766
  ref: inputRef,
@@ -1680,13 +1772,13 @@ function CreatablePicker({
1680
1772
  placeholder: searchPlaceholder ?? `Search or add ${article(noun)}\u2026`
1681
1773
  }
1682
1774
  ),
1683
- /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(CommandList, { children: [
1684
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(CommandEmpty, { children: emptyLabel }),
1685
- groups.map((group) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1775
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(CommandList, { children: [
1776
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(CommandEmpty, { children: emptyLabel }),
1777
+ groups.map((group) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1686
1778
  CommandGroup,
1687
1779
  {
1688
1780
  ...group.heading === void 0 ? {} : { heading: group.heading },
1689
- children: group.options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
1781
+ children: group.options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
1690
1782
  CommandItem,
1691
1783
  {
1692
1784
  value: option.label,
@@ -1697,7 +1789,7 @@ function CreatablePicker({
1697
1789
  },
1698
1790
  className: "gap-2 text-xs",
1699
1791
  children: [
1700
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1792
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1701
1793
  LucideCheckIcon,
1702
1794
  {
1703
1795
  className: cn(
@@ -1706,8 +1798,8 @@ function CreatablePicker({
1706
1798
  )
1707
1799
  }
1708
1800
  ),
1709
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "min-w-0 flex-1 truncate", children: option.render ?? option.label }),
1710
- option.hint ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "shrink-0 text-[10px] text-muted-foreground", children: option.hint }) : null
1801
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "min-w-0 flex-1 truncate", children: option.render ?? option.label }),
1802
+ option.hint ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "shrink-0 text-[10px] text-muted-foreground", children: option.hint }) : null
1711
1803
  ]
1712
1804
  },
1713
1805
  option.value
@@ -1716,9 +1808,9 @@ function CreatablePicker({
1716
1808
  group.heading ?? "__ungrouped__"
1717
1809
  ))
1718
1810
  ] }),
1719
- canCreate ? /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "space-y-1 border-t border-border p-1", children: [
1720
- createExtra && typed && !exactMatch ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "px-1 pt-0.5", children: typeof createExtra === "function" ? createExtra(typed) : createExtra }) : null,
1721
- /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
1811
+ canCreate ? /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "space-y-1 border-t border-border p-1", children: [
1812
+ createExtra && typed && !exactMatch ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "px-1 pt-0.5", children: typeof createExtra === "function" ? createExtra(typed) : createExtra }) : null,
1813
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
1722
1814
  "button",
1723
1815
  {
1724
1816
  type: "button",
@@ -1726,22 +1818,22 @@ function CreatablePicker({
1726
1818
  onClick: () => void create(typed),
1727
1819
  className: "flex w-full items-center gap-2 rounded-sm px-2 py-1.5 text-left text-xs text-muted-foreground transition-colors hover:bg-accent hover:text-foreground disabled:opacity-50",
1728
1820
  children: [
1729
- busy ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Loader2Icon, { className: "size-3.5 shrink-0 animate-spin" }) : /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(PlusIcon, { className: "size-3.5 shrink-0" }),
1730
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "min-w-0 truncate", children: typed && !exactMatch ? `Create \u201C${typed}\u201D` : `Add ${article(noun)}\u2026` })
1821
+ busy ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Loader2Icon, { className: "size-3.5 shrink-0 animate-spin" }) : /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(PlusIcon, { className: "size-3.5 shrink-0" }),
1822
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "min-w-0 truncate", children: typed && !exactMatch ? `Create \u201C${typed}\u201D` : `Add ${article(noun)}\u2026` })
1731
1823
  ]
1732
1824
  }
1733
1825
  ),
1734
- needsName ? /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("p", { className: "px-2 pb-0.5 text-[11px] leading-snug text-muted-foreground", children: [
1826
+ needsName ? /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("p", { className: "px-2 pb-0.5 text-[11px] leading-snug text-muted-foreground", children: [
1735
1827
  "Type the name of the ",
1736
1828
  noun,
1737
1829
  " you want to add \u2014 then this creates it."
1738
1830
  ] }) : null
1739
1831
  ] }) : null,
1740
- footerActions?.length || manageAction ? /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "space-y-0.5 border-t border-border p-1", children: [
1832
+ footerActions?.length || manageAction ? /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "space-y-0.5 border-t border-border p-1", children: [
1741
1833
  footerActions?.map((action) => {
1742
1834
  const Icon2 = action.icon;
1743
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { children: [
1744
- /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
1835
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { children: [
1836
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
1745
1837
  "button",
1746
1838
  {
1747
1839
  type: "button",
@@ -1751,15 +1843,15 @@ function CreatablePicker({
1751
1843
  },
1752
1844
  className: "flex w-full items-center gap-2 rounded-sm px-2 py-1.5 text-left text-xs text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",
1753
1845
  children: [
1754
- Icon2 ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Icon2, { className: "size-3.5 shrink-0" }) : null,
1755
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "min-w-0 truncate", children: action.label })
1846
+ Icon2 ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Icon2, { className: "size-3.5 shrink-0" }) : null,
1847
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "min-w-0 truncate", children: action.label })
1756
1848
  ]
1757
1849
  }
1758
1850
  ),
1759
- action.note ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("p", { className: "px-2 pb-1 text-[10px] leading-snug text-muted-foreground", children: action.note }) : null
1851
+ action.note ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "px-2 pb-1 text-[10px] leading-snug text-muted-foreground", children: action.note }) : null
1760
1852
  ] }, action.label);
1761
1853
  }),
1762
- manageAction ? /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
1854
+ manageAction ? /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
1763
1855
  "a",
1764
1856
  {
1765
1857
  href: manageAction.href,
@@ -1768,18 +1860,18 @@ function CreatablePicker({
1768
1860
  onClick: close,
1769
1861
  className: "flex w-full items-center gap-2 rounded-sm px-2 py-1.5 text-left text-xs text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",
1770
1862
  children: [
1771
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(ExternalLinkIcon, { className: "size-3.5 shrink-0" }),
1772
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "min-w-0 truncate", children: manageAction.label })
1863
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(ExternalLinkIcon, { className: "size-3.5 shrink-0" }),
1864
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "min-w-0 truncate", children: manageAction.label })
1773
1865
  ]
1774
1866
  }
1775
1867
  ) : null
1776
1868
  ] }) : null,
1777
- lockedNote ? /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "space-y-1 border-t border-border p-2", children: [
1778
- /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("p", { className: "flex gap-1.5 text-[11px] leading-snug text-muted-foreground", children: [
1779
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(LockIcon, { className: "mt-px size-3 shrink-0" }),
1780
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { children: lockedNote })
1869
+ lockedNote ? /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "space-y-1 border-t border-border p-2", children: [
1870
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("p", { className: "flex gap-1.5 text-[11px] leading-snug text-muted-foreground", children: [
1871
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(LockIcon, { className: "mt-px size-3 shrink-0" }),
1872
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { children: lockedNote })
1781
1873
  ] }),
1782
- lockedAction ? /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
1874
+ lockedAction ? /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
1783
1875
  "button",
1784
1876
  {
1785
1877
  type: "button",
@@ -1789,8 +1881,8 @@ function CreatablePicker({
1789
1881
  },
1790
1882
  className: "flex w-full items-center gap-2 rounded-sm px-1 py-1 text-left text-xs font-medium text-primary transition-colors hover:bg-accent",
1791
1883
  children: [
1792
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(PlusIcon, { className: "size-3.5 shrink-0" }),
1793
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "min-w-0 truncate", children: lockedAction.label })
1884
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(PlusIcon, { className: "size-3.5 shrink-0" }),
1885
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "min-w-0 truncate", children: lockedAction.label })
1794
1886
  ]
1795
1887
  }
1796
1888
  ) : null
@@ -1805,14 +1897,14 @@ function CreatablePicker({
1805
1897
  var DialogPrimitive2 = __toESM(require("@radix-ui/react-dialog"), 1);
1806
1898
  var VisuallyHidden2 = __toESM(require("@radix-ui/react-visually-hidden"), 1);
1807
1899
  var import_react_tree3 = require("@ai-matrx/kit/react-tree");
1808
- var React14 = __toESM(require("react"), 1);
1809
- var import_jsx_runtime17 = require("react/jsx-runtime");
1900
+ var React16 = __toESM(require("react"), 1);
1901
+ var import_jsx_runtime19 = require("react/jsx-runtime");
1810
1902
  var Dialog = ({
1811
1903
  children,
1812
1904
  ...props
1813
1905
  }) => {
1814
1906
  const modal = props.modal ?? true;
1815
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(RadixDialogModalProvider, { modal, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(DialogPrimitive2.Root, { ...props, modal, children }) });
1907
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(RadixDialogModalProvider, { modal, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(DialogPrimitive2.Root, { ...props, modal, children }) });
1816
1908
  };
1817
1909
  Dialog.displayName = "Dialog";
1818
1910
  var DialogTrigger = DialogPrimitive2.Trigger;
@@ -1822,12 +1914,12 @@ var DialogPortal = ({
1822
1914
  ...props
1823
1915
  }) => {
1824
1916
  const resolved = usePortalContainer(container);
1825
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(DialogPrimitive2.Portal, { container: resolved ?? null, ...props });
1917
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(DialogPrimitive2.Portal, { container: resolved ?? null, ...props });
1826
1918
  };
1827
1919
  DialogPortal.displayName = "DialogPortal";
1828
- var DialogContainerContext = React14.createContext(null);
1829
- var useDialogContainer = () => React14.useContext(DialogContainerContext);
1830
- var DialogOverlay = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1920
+ var DialogContainerContext = React16.createContext(null);
1921
+ var useDialogContainer = () => React16.useContext(DialogContainerContext);
1922
+ var DialogOverlay = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1831
1923
  DialogPrimitive2.Overlay,
1832
1924
  {
1833
1925
  ref,
@@ -1842,9 +1934,9 @@ var DialogOverlay = React14.forwardRef(({ className, ...props }, ref) => /* @__P
1842
1934
  }
1843
1935
  ));
1844
1936
  DialogOverlay.displayName = DialogPrimitive2.Overlay.displayName;
1845
- var DialogContentPrimitive = React14.forwardRef((props, ref) => {
1937
+ var DialogContentPrimitive = React16.forwardRef((props, ref) => {
1846
1938
  const isModal = useRadixDialogModal();
1847
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1939
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1848
1940
  DialogPrimitive2.Content,
1849
1941
  {
1850
1942
  ...props,
@@ -1857,7 +1949,7 @@ DialogContentPrimitive.displayName = "DialogContentPrimitive";
1857
1949
  var DIALOG_DESKTOP_CLASSES2 = "fixed left-[50%] top-[50%] z-[10000] grid min-w-0 w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 max-h-[85dvh] overflow-y-auto overscroll-contain [--dialog-pad:1.5rem] overflow-x-clip border bg-background p-6 shadow-lg [overflow-wrap:anywhere] [&>*]:min-w-0 [&>*]:max-w-full duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg";
1858
1950
  var DIALOG_MOBILE_SHEET_CLASSES2 = "matrx-mobile-sheet fixed inset-x-0 bottom-0 left-0 right-0 top-auto z-[10000] flex min-w-0 flex-col w-full max-w-full max-h-[90dvh] translate-x-0 translate-y-0 gap-4 [--dialog-pad:1rem] overflow-x-clip border-t bg-background p-4 pb-safe shadow-lg [overflow-wrap:anywhere] [&>*]:min-w-0 [&>*]:max-w-full duration-200 rounded-t-2xl rounded-b-none overflow-y-auto overscroll-contain data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom";
1859
1951
  var DIALOG_MOBILE_SHEET_OVERRIDE2 = "inset-x-0 bottom-0 left-0 right-0 top-auto translate-x-0 translate-y-0 w-full max-w-full max-h-[90dvh] rounded-b-none rounded-t-2xl overflow-y-auto";
1860
- var DialogContent = React14.forwardRef(
1952
+ var DialogContent = React16.forwardRef(
1861
1953
  ({
1862
1954
  className,
1863
1955
  children,
@@ -1870,10 +1962,10 @@ var DialogContent = React14.forwardRef(
1870
1962
  const isModal = useRadixDialogModal();
1871
1963
  const injectedContainer = usePortalContainer(container);
1872
1964
  const asSheet = mobileSheet && isMobile;
1873
- const [containerEl, setContainerEl] = React14.useState(
1965
+ const [containerEl, setContainerEl] = React16.useState(
1874
1966
  null
1875
1967
  );
1876
- const mergedRef = React14.useCallback(
1968
+ const mergedRef = React16.useCallback(
1877
1969
  (node) => {
1878
1970
  setContainerEl(node);
1879
1971
  if (typeof ref === "function") ref(node);
@@ -1884,9 +1976,9 @@ var DialogContent = React14.forwardRef(
1884
1976
  );
1885
1977
  const hasTitle = (0, import_react_tree3.treeContainsComponent)(children, DialogTitle) || (0, import_react_tree3.treeContainsComponent)(children, DialogPrimitive2.Title);
1886
1978
  const hasDescription = (0, import_react_tree3.treeContainsComponent)(children, DialogDescription) || (0, import_react_tree3.treeContainsComponent)(children, DialogPrimitive2.Description);
1887
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(DialogPortal, { container, children: [
1888
- isModal ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(DialogOverlay, {}) : null,
1889
- /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
1979
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(DialogPortal, { container, children: [
1980
+ isModal ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(DialogOverlay, {}) : null,
1981
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
1890
1982
  DialogContentPrimitive,
1891
1983
  {
1892
1984
  ref: mergedRef,
@@ -1904,23 +1996,23 @@ var DialogContent = React14.forwardRef(
1904
1996
  ...hasDescription ? {} : { "aria-describedby": void 0 },
1905
1997
  ...props,
1906
1998
  children: [
1907
- hasTitle ? null : /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(VisuallyHidden2.Root, { children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(DialogPrimitive2.Title, { children: "Dialog" }) }),
1908
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(DialogContainerContext.Provider, { value: containerEl, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1999
+ hasTitle ? null : /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(VisuallyHidden2.Root, { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(DialogPrimitive2.Title, { children: "Dialog" }) }),
2000
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(DialogContainerContext.Provider, { value: containerEl, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1909
2001
  PortalContainerProvider,
1910
2002
  {
1911
2003
  container: containerEl ?? injectedContainer ?? null,
1912
2004
  children
1913
2005
  }
1914
2006
  ) }),
1915
- showCloseButton ? /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
2007
+ showCloseButton ? /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
1916
2008
  DialogPrimitive2.Close,
1917
2009
  {
1918
2010
  "data-slot": "dialog-close",
1919
2011
  "aria-label": "Close",
1920
2012
  className: "absolute right-2 top-4 flex h-11 w-11 items-center justify-center rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground sm:right-4 lg:h-10 lg:w-10",
1921
2013
  children: [
1922
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(XIcon, { className: "h-4 w-4" }),
1923
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "sr-only", children: "Close" })
2014
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(XIcon, { className: "h-4 w-4" }),
2015
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "sr-only", children: "Close" })
1924
2016
  ]
1925
2017
  }
1926
2018
  ) : null
@@ -1934,7 +2026,7 @@ DialogContent.displayName = DialogPrimitive2.Content.displayName;
1934
2026
  var DialogHeader = ({
1935
2027
  className,
1936
2028
  ...props
1937
- }) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2029
+ }) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1938
2030
  "div",
1939
2031
  {
1940
2032
  "data-slot": "dialog-header",
@@ -1951,7 +2043,7 @@ DialogHeader.displayName = "DialogHeader";
1951
2043
  var DialogFooter = ({
1952
2044
  className,
1953
2045
  ...props
1954
- }) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2046
+ }) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1955
2047
  "div",
1956
2048
  {
1957
2049
  "data-slot": "dialog-footer",
@@ -1965,7 +2057,7 @@ var DialogFooter = ({
1965
2057
  }
1966
2058
  );
1967
2059
  DialogFooter.displayName = "DialogFooter";
1968
- var DialogTitle = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2060
+ var DialogTitle = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1969
2061
  DialogPrimitive2.Title,
1970
2062
  {
1971
2063
  ref,
@@ -1975,7 +2067,7 @@ var DialogTitle = React14.forwardRef(({ className, ...props }, ref) => /* @__PUR
1975
2067
  }
1976
2068
  ));
1977
2069
  DialogTitle.displayName = DialogPrimitive2.Title.displayName;
1978
- var DialogDescription = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2070
+ var DialogDescription = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1979
2071
  DialogPrimitive2.Description,
1980
2072
  {
1981
2073
  ref,
@@ -1988,8 +2080,8 @@ DialogDescription.displayName = DialogPrimitive2.Description.displayName;
1988
2080
 
1989
2081
  // src/dropdown-menu.tsx
1990
2082
  var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"), 1);
1991
- var React15 = __toESM(require("react"), 1);
1992
- var import_jsx_runtime18 = require("react/jsx-runtime");
2083
+ var React17 = __toESM(require("react"), 1);
2084
+ var import_jsx_runtime20 = require("react/jsx-runtime");
1993
2085
  var DropdownMenu = DropdownMenuPrimitive.Root;
1994
2086
  var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
1995
2087
  var DropdownMenuGroup = DropdownMenuPrimitive.Group;
@@ -2000,7 +2092,7 @@ var MENU_SURFACE_CLASS = "z-[10001] min-w-[8rem] max-h-[var(--radix-dropdown-men
2000
2092
  var MENU_MOTION_CLASS = "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2";
2001
2093
  var MENU_ITEM_CLASS = "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50";
2002
2094
  var MENU_INDICATOR_ITEM_CLASS = "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50";
2003
- var DropdownMenuSubTrigger = React15.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
2095
+ var DropdownMenuSubTrigger = React17.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
2004
2096
  DropdownMenuPrimitive.SubTrigger,
2005
2097
  {
2006
2098
  ref,
@@ -2013,12 +2105,12 @@ var DropdownMenuSubTrigger = React15.forwardRef(({ className, inset, children, .
2013
2105
  ...props,
2014
2106
  children: [
2015
2107
  children,
2016
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(RadixChevronRightIcon, { className: "ml-auto h-4 w-4" })
2108
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(RadixChevronRightIcon, { className: "ml-auto h-4 w-4" })
2017
2109
  ]
2018
2110
  }
2019
2111
  ));
2020
2112
  DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
2021
- var DropdownMenuSubContent = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
2113
+ var DropdownMenuSubContent = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2022
2114
  DropdownMenuPrimitive.SubContent,
2023
2115
  {
2024
2116
  ref,
@@ -2028,9 +2120,9 @@ var DropdownMenuSubContent = React15.forwardRef(({ className, ...props }, ref) =
2028
2120
  }
2029
2121
  ));
2030
2122
  DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
2031
- var DropdownMenuContent = React15.forwardRef(({ className, sideOffset = 4, container, ...props }, ref) => {
2123
+ var DropdownMenuContent = React17.forwardRef(({ className, sideOffset = 4, container, ...props }, ref) => {
2032
2124
  const portalContainer = usePortalContainer(container);
2033
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(DropdownMenuPrimitive.Portal, { container: portalContainer, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
2125
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(DropdownMenuPrimitive.Portal, { container: portalContainer, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2034
2126
  DropdownMenuPrimitive.Content,
2035
2127
  {
2036
2128
  ref,
@@ -2047,7 +2139,7 @@ var DropdownMenuContent = React15.forwardRef(({ className, sideOffset = 4, conta
2047
2139
  ) });
2048
2140
  });
2049
2141
  DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
2050
- var DropdownMenuItem = React15.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
2142
+ var DropdownMenuItem = React17.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2051
2143
  DropdownMenuPrimitive.Item,
2052
2144
  {
2053
2145
  ref,
@@ -2057,7 +2149,7 @@ var DropdownMenuItem = React15.forwardRef(({ className, inset, ...props }, ref)
2057
2149
  }
2058
2150
  ));
2059
2151
  DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
2060
- var DropdownMenuCheckboxItem = React15.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
2152
+ var DropdownMenuCheckboxItem = React17.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
2061
2153
  DropdownMenuPrimitive.CheckboxItem,
2062
2154
  {
2063
2155
  ref,
@@ -2065,13 +2157,13 @@ var DropdownMenuCheckboxItem = React15.forwardRef(({ className, children, ...pro
2065
2157
  className: cn(MENU_INDICATOR_ITEM_CLASS, className),
2066
2158
  ...props,
2067
2159
  children: [
2068
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(CheckIcon, { className: "h-4 w-4" }) }) }),
2160
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(CheckIcon, { className: "h-4 w-4" }) }) }),
2069
2161
  children
2070
2162
  ]
2071
2163
  }
2072
2164
  ));
2073
2165
  DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
2074
- var DropdownMenuRadioItem = React15.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
2166
+ var DropdownMenuRadioItem = React17.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
2075
2167
  DropdownMenuPrimitive.RadioItem,
2076
2168
  {
2077
2169
  ref,
@@ -2079,13 +2171,13 @@ var DropdownMenuRadioItem = React15.forwardRef(({ className, children, ...props
2079
2171
  className: cn(MENU_INDICATOR_ITEM_CLASS, className),
2080
2172
  ...props,
2081
2173
  children: [
2082
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(DotFilledIcon, { className: "h-4 w-4 fill-current" }) }) }),
2174
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(DotFilledIcon, { className: "h-4 w-4 fill-current" }) }) }),
2083
2175
  children
2084
2176
  ]
2085
2177
  }
2086
2178
  ));
2087
2179
  DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
2088
- var DropdownMenuLabel = React15.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
2180
+ var DropdownMenuLabel = React17.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2089
2181
  DropdownMenuPrimitive.Label,
2090
2182
  {
2091
2183
  ref,
@@ -2095,7 +2187,7 @@ var DropdownMenuLabel = React15.forwardRef(({ className, inset, ...props }, ref)
2095
2187
  }
2096
2188
  ));
2097
2189
  DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
2098
- var DropdownMenuSeparator = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
2190
+ var DropdownMenuSeparator = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2099
2191
  DropdownMenuPrimitive.Separator,
2100
2192
  {
2101
2193
  ref,
@@ -2108,7 +2200,7 @@ DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
2108
2200
  var DropdownMenuShortcut = ({
2109
2201
  className,
2110
2202
  ...props
2111
- }) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
2203
+ }) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2112
2204
  "span",
2113
2205
  {
2114
2206
  "data-slot": "dropdown-menu-shortcut",
@@ -2120,7 +2212,7 @@ DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
2120
2212
 
2121
2213
  // src/editable-label.tsx
2122
2214
  var import_react2 = require("react");
2123
- var import_jsx_runtime19 = require("react/jsx-runtime");
2215
+ var import_jsx_runtime21 = require("react/jsx-runtime");
2124
2216
  function EditableLabel({
2125
2217
  value,
2126
2218
  onCommit,
@@ -2227,8 +2319,8 @@ function EditableLabel({
2227
2319
  setEditing
2228
2320
  ]);
2229
2321
  if (editing) {
2230
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("span", { className: cn("relative flex min-w-0 flex-1 items-center", className), children: [
2231
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2322
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("span", { className: cn("relative flex min-w-0 flex-1 items-center", className), children: [
2323
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2232
2324
  "input",
2233
2325
  {
2234
2326
  ref: inputRef,
@@ -2268,12 +2360,12 @@ function EditableLabel({
2268
2360
  )
2269
2361
  }
2270
2362
  ),
2271
- busy && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Loader2Icon, { className: "absolute right-1 h-3.5 w-3.5 animate-spin text-muted-foreground" }),
2272
- error && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "absolute left-0 top-full mt-0.5 whitespace-nowrap text-xs text-destructive", children: error })
2363
+ busy && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Loader2Icon, { className: "absolute right-1 h-3.5 w-3.5 animate-spin text-muted-foreground" }),
2364
+ error && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "absolute left-0 top-full mt-0.5 whitespace-nowrap text-xs text-destructive", children: error })
2273
2365
  ] });
2274
2366
  }
2275
2367
  if (controlled) return null;
2276
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2368
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2277
2369
  "button",
2278
2370
  {
2279
2371
  type: "button",
@@ -2307,8 +2399,8 @@ function EditableLabel({
2307
2399
  }
2308
2400
 
2309
2401
  // src/input.tsx
2310
- var React16 = __toESM(require("react"), 1);
2311
- var import_jsx_runtime20 = require("react/jsx-runtime");
2402
+ var React18 = __toESM(require("react"), 1);
2403
+ var import_jsx_runtime22 = require("react/jsx-runtime");
2312
2404
  var getVariantStyles = (variant = "default") => {
2313
2405
  const baseStyles = `flex h-10 w-full border border-border bg-background text-foreground shadow-input rounded-md px-3 py-2 text-sm file:border-0 file:bg-transparent
2314
2406
  file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground
@@ -2336,9 +2428,9 @@ var getVariantStyles = (variant = "default") => {
2336
2428
  return baseStyles;
2337
2429
  }
2338
2430
  };
2339
- var Input = React16.forwardRef(
2431
+ var Input = React18.forwardRef(
2340
2432
  ({ className, type, variant = "default", ...props }, ref) => {
2341
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2433
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2342
2434
  "input",
2343
2435
  {
2344
2436
  type,
@@ -2350,7 +2442,7 @@ var Input = React16.forwardRef(
2350
2442
  }
2351
2443
  );
2352
2444
  Input.displayName = "Input";
2353
- var EnterInput = React16.forwardRef(
2445
+ var EnterInput = React18.forwardRef(
2354
2446
  ({ onEnter, ...props }, ref) => {
2355
2447
  const handleKeyDown = (e) => {
2356
2448
  if (e.key === "Enter" && onEnter) {
@@ -2358,7 +2450,7 @@ var EnterInput = React16.forwardRef(
2358
2450
  onEnter();
2359
2451
  }
2360
2452
  };
2361
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2453
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2362
2454
  Input,
2363
2455
  {
2364
2456
  ...props,
@@ -2374,11 +2466,11 @@ var EnterInput = React16.forwardRef(
2374
2466
  }
2375
2467
  );
2376
2468
  EnterInput.displayName = "EnterInput";
2377
- var BasicInput = React16.forwardRef(
2469
+ var BasicInput = React18.forwardRef(
2378
2470
  // `variant` is accepted (prop-compatible with Input) but intentionally
2379
2471
  // unused — and destructured so it never leaks onto the DOM element.
2380
2472
  ({ className, type, variant: _variant = "default", ...props }, ref) => {
2381
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2473
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2382
2474
  "input",
2383
2475
  {
2384
2476
  type,
@@ -2393,10 +2485,10 @@ var BasicInput = React16.forwardRef(
2393
2485
  }
2394
2486
  );
2395
2487
  BasicInput.displayName = "BasicInput";
2396
- var InputWithPrefix = React16.forwardRef(({ prefix, className, wrapperClassName, ...props }, ref) => {
2397
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: cn("relative", wrapperClassName), children: [
2398
- prefix && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground", children: prefix }),
2399
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2488
+ var InputWithPrefix = React18.forwardRef(({ prefix, className, wrapperClassName, ...props }, ref) => {
2489
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: cn("relative", wrapperClassName), children: [
2490
+ prefix && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground", children: prefix }),
2491
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2400
2492
  Input,
2401
2493
  {
2402
2494
  ref,
@@ -2410,9 +2502,9 @@ InputWithPrefix.displayName = "InputWithPrefix";
2410
2502
 
2411
2503
  // src/label.tsx
2412
2504
  var LabelPrimitive = __toESM(require("@radix-ui/react-label"), 1);
2413
- var React17 = __toESM(require("react"), 1);
2414
- var import_jsx_runtime21 = require("react/jsx-runtime");
2415
- var Label3 = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2505
+ var React19 = __toESM(require("react"), 1);
2506
+ var import_jsx_runtime23 = require("react/jsx-runtime");
2507
+ var Label3 = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2416
2508
  LabelPrimitive.Root,
2417
2509
  {
2418
2510
  ref,
@@ -2427,7 +2519,7 @@ Label3.displayName = LabelPrimitive.Root.displayName;
2427
2519
 
2428
2520
  // src/overflow-toolbar.tsx
2429
2521
  var import_react3 = require("react");
2430
- var import_jsx_runtime22 = require("react/jsx-runtime");
2522
+ var import_jsx_runtime24 = require("react/jsx-runtime");
2431
2523
  var GAP_PX = 6;
2432
2524
  var TONE = {
2433
2525
  default: "border border-border bg-background hover:bg-accent text-foreground",
@@ -2449,16 +2541,16 @@ function ToolbarButton({
2449
2541
  action.hideLabel && !action.running ? "w-7 justify-center px-0" : "px-2",
2450
2542
  TONE[tone]
2451
2543
  );
2452
- const inner = /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_jsx_runtime22.Fragment, { children: [
2453
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2544
+ const inner = /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_jsx_runtime24.Fragment, { children: [
2545
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2454
2546
  Icon2,
2455
2547
  {
2456
2548
  className: cn("w-3.5 h-3.5 shrink-0", action.running && "animate-spin")
2457
2549
  }
2458
2550
  ),
2459
- showLabel && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { children: text })
2551
+ showLabel && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { children: text })
2460
2552
  ] });
2461
- const control = action.href && !action.disabled ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2553
+ const control = action.href && !action.disabled ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2462
2554
  "a",
2463
2555
  {
2464
2556
  href: action.href,
@@ -2468,7 +2560,7 @@ function ToolbarButton({
2468
2560
  "aria-label": action.label,
2469
2561
  children: inner
2470
2562
  }
2471
- ) : /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2563
+ ) : /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2472
2564
  "button",
2473
2565
  {
2474
2566
  type: "button",
@@ -2480,12 +2572,12 @@ function ToolbarButton({
2480
2572
  }
2481
2573
  );
2482
2574
  if (enableTooltip && action.hideLabel && renderTooltip) {
2483
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_jsx_runtime22.Fragment, { children: renderTooltip(control, action.label) });
2575
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_jsx_runtime24.Fragment, { children: renderTooltip(control, action.label) });
2484
2576
  }
2485
2577
  return control;
2486
2578
  }
2487
2579
  function OverflowTrigger({ ariaLabel }) {
2488
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2580
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2489
2581
  "button",
2490
2582
  {
2491
2583
  type: "button",
@@ -2496,7 +2588,7 @@ function OverflowTrigger({ ariaLabel }) {
2496
2588
  "inline-flex items-center justify-center h-7 w-7 rounded-md transition-colors",
2497
2589
  "border border-border bg-background hover:bg-accent text-foreground"
2498
2590
  ),
2499
- children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(MoreHorizontalIcon, { className: "w-3.5 h-3.5" })
2591
+ children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(MoreHorizontalIcon, { className: "w-3.5 h-3.5" })
2500
2592
  }
2501
2593
  );
2502
2594
  }
@@ -2556,22 +2648,22 @@ function OverflowToolbar({
2556
2648
  }, [signature, leading != null]);
2557
2649
  const shown = visibleActions.slice(0, visibleCount);
2558
2650
  const hidden = visibleActions.slice(visibleCount);
2559
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { ref: containerRef, className: cn("relative min-w-0", className), children: [
2560
- /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
2651
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { ref: containerRef, className: cn("relative min-w-0", className), children: [
2652
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
2561
2653
  "div",
2562
2654
  {
2563
2655
  ref: ghostRef,
2564
2656
  "aria-hidden": true,
2565
2657
  className: "pointer-events-none absolute left-0 top-0 flex items-center gap-1.5 opacity-0",
2566
2658
  children: [
2567
- visibleActions.map((a) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(ToolbarButton, { action: a }, a.id)),
2568
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(OverflowTrigger, { ariaLabel: overflowAriaLabel })
2659
+ visibleActions.map((a) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(ToolbarButton, { action: a }, a.id)),
2660
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(OverflowTrigger, { ariaLabel: overflowAriaLabel })
2569
2661
  ]
2570
2662
  }
2571
2663
  ),
2572
- /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex items-center justify-end gap-1.5", children: [
2573
- leading != null && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { ref: leadingRef, className: "shrink-0", children: leading }),
2574
- shown.map((a) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2664
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "flex items-center justify-end gap-1.5", children: [
2665
+ leading != null && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { ref: leadingRef, className: "shrink-0", children: leading }),
2666
+ shown.map((a) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2575
2667
  ToolbarButton,
2576
2668
  {
2577
2669
  action: a,
@@ -2582,7 +2674,7 @@ function OverflowToolbar({
2582
2674
  )),
2583
2675
  hidden.length > 0 && renderOverflowMenu({
2584
2676
  actions: hidden,
2585
- trigger: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(OverflowTrigger, { ariaLabel: overflowAriaLabel })
2677
+ trigger: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(OverflowTrigger, { ariaLabel: overflowAriaLabel })
2586
2678
  })
2587
2679
  ] })
2588
2680
  ] });
@@ -2590,20 +2682,20 @@ function OverflowToolbar({
2590
2682
 
2591
2683
  // src/progress.tsx
2592
2684
  var ProgressPrimitive = __toESM(require("@radix-ui/react-progress"), 1);
2593
- var React19 = __toESM(require("react"), 1);
2594
- var import_jsx_runtime23 = require("react/jsx-runtime");
2685
+ var React21 = __toESM(require("react"), 1);
2686
+ var import_jsx_runtime25 = require("react/jsx-runtime");
2595
2687
  var PROGRESS_TONES = {
2596
2688
  default: "bg-primary",
2597
2689
  success: "bg-success",
2598
2690
  warning: "bg-warning",
2599
2691
  destructive: "bg-destructive"
2600
2692
  };
2601
- var Progress = React19.forwardRef(({ className, tone = "default", indicatorClassName, ...props }, ref) => {
2693
+ var Progress = React21.forwardRef(({ className, tone = "default", indicatorClassName, ...props }, ref) => {
2602
2694
  const { value, max } = props;
2603
2695
  const ceiling = max ?? 100;
2604
2696
  const isIndeterminate = value === null || value === void 0;
2605
2697
  const pct = isIndeterminate ? 0 : Math.min(100, Math.max(0, value / ceiling * 100));
2606
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2698
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2607
2699
  ProgressPrimitive.Root,
2608
2700
  {
2609
2701
  ref,
@@ -2613,7 +2705,7 @@ var Progress = React19.forwardRef(({ className, tone = "default", indicatorClass
2613
2705
  className
2614
2706
  ),
2615
2707
  ...props,
2616
- children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2708
+ children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2617
2709
  ProgressPrimitive.Indicator,
2618
2710
  {
2619
2711
  "data-slot": "progress-indicator",
@@ -2633,9 +2725,9 @@ Progress.displayName = ProgressPrimitive.Root.displayName;
2633
2725
 
2634
2726
  // src/scroll-area.tsx
2635
2727
  var ScrollAreaPrimitive = __toESM(require("@radix-ui/react-scroll-area"), 1);
2636
- var React20 = __toESM(require("react"), 1);
2637
- var import_jsx_runtime24 = require("react/jsx-runtime");
2638
- var ScrollArea = React20.forwardRef(
2728
+ var React22 = __toESM(require("react"), 1);
2729
+ var import_jsx_runtime26 = require("react/jsx-runtime");
2730
+ var ScrollArea = React22.forwardRef(
2639
2731
  ({
2640
2732
  className,
2641
2733
  children,
@@ -2644,7 +2736,7 @@ var ScrollArea = React20.forwardRef(
2644
2736
  scrollBarClassName,
2645
2737
  orientation = "vertical",
2646
2738
  ...props
2647
- }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
2739
+ }, ref) => /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
2648
2740
  ScrollAreaPrimitive.Root,
2649
2741
  {
2650
2742
  ref,
@@ -2652,7 +2744,7 @@ var ScrollArea = React20.forwardRef(
2652
2744
  className: cn("relative overflow-hidden", className),
2653
2745
  ...props,
2654
2746
  children: [
2655
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2747
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2656
2748
  ScrollAreaPrimitive.Viewport,
2657
2749
  {
2658
2750
  ref: viewportRef,
@@ -2661,14 +2753,14 @@ var ScrollArea = React20.forwardRef(
2661
2753
  children
2662
2754
  }
2663
2755
  ),
2664
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(ScrollBar, { orientation, className: scrollBarClassName }),
2665
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(ScrollAreaPrimitive.Corner, {})
2756
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(ScrollBar, { orientation, className: scrollBarClassName }),
2757
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(ScrollAreaPrimitive.Corner, {})
2666
2758
  ]
2667
2759
  }
2668
2760
  )
2669
2761
  );
2670
2762
  ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
2671
- var ScrollBar = React20.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2763
+ var ScrollBar = React22.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2672
2764
  ScrollAreaPrimitive.ScrollAreaScrollbar,
2673
2765
  {
2674
2766
  ref,
@@ -2681,7 +2773,7 @@ var ScrollBar = React20.forwardRef(({ className, orientation = "vertical", ...pr
2681
2773
  className
2682
2774
  ),
2683
2775
  ...props,
2684
- children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2776
+ children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2685
2777
  ScrollAreaPrimitive.ScrollAreaThumb,
2686
2778
  {
2687
2779
  "data-slot": "scroll-area-thumb",
@@ -2693,7 +2785,7 @@ var ScrollBar = React20.forwardRef(({ className, orientation = "vertical", ...pr
2693
2785
  ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
2694
2786
 
2695
2787
  // src/score-ring.tsx
2696
- var import_jsx_runtime25 = require("react/jsx-runtime");
2788
+ var import_jsx_runtime27 = require("react/jsx-runtime");
2697
2789
  var DEFAULT_SCORE_THRESHOLDS = {
2698
2790
  good: 75,
2699
2791
  warning: 50
@@ -2724,7 +2816,7 @@ function ScoreRing({
2724
2816
  const circumference = 2 * Math.PI * radius;
2725
2817
  const boundedPct = pct === null ? 0 : Math.max(0, Math.min(100, pct));
2726
2818
  const dashOffset = circumference * (1 - boundedPct / 100);
2727
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
2819
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
2728
2820
  "div",
2729
2821
  {
2730
2822
  className: cn(
@@ -2735,8 +2827,8 @@ function ScoreRing({
2735
2827
  role: "img",
2736
2828
  "aria-label": `${label ?? "Score"}: ${pct === null ? "not available" : `${pct} out of 100`}`,
2737
2829
  children: [
2738
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("svg", { viewBox: "0 0 100 100", className: "h-full w-full -rotate-90", children: [
2739
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2830
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("svg", { viewBox: "0 0 100 100", className: "h-full w-full -rotate-90", children: [
2831
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2740
2832
  "circle",
2741
2833
  {
2742
2834
  cx: "50",
@@ -2747,7 +2839,7 @@ function ScoreRing({
2747
2839
  fill: "none"
2748
2840
  }
2749
2841
  ),
2750
- pct !== null ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2842
+ pct !== null ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2751
2843
  "circle",
2752
2844
  {
2753
2845
  cx: "50",
@@ -2766,8 +2858,8 @@ function ScoreRing({
2766
2858
  }
2767
2859
  ) : null
2768
2860
  ] }),
2769
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "absolute flex flex-col items-center justify-center", children: [
2770
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2861
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "absolute flex flex-col items-center justify-center", children: [
2862
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2771
2863
  "span",
2772
2864
  {
2773
2865
  className: cn(
@@ -2777,7 +2869,7 @@ function ScoreRing({
2777
2869
  children: pct === null ? "\u2014" : `${pct}${suffix}`
2778
2870
  }
2779
2871
  ),
2780
- label ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "max-w-[74px] truncate text-[9px] font-semibold uppercase tracking-wide text-muted-foreground", children: label }) : null
2872
+ label ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "max-w-[74px] truncate text-[9px] font-semibold uppercase tracking-wide text-muted-foreground", children: label }) : null
2781
2873
  ] })
2782
2874
  ]
2783
2875
  }
@@ -2785,7 +2877,7 @@ function ScoreRing({
2785
2877
  }
2786
2878
 
2787
2879
  // src/segmented-control.tsx
2788
- var import_jsx_runtime26 = require("react/jsx-runtime");
2880
+ var import_jsx_runtime28 = require("react/jsx-runtime");
2789
2881
  function SegmentedControl({
2790
2882
  value,
2791
2883
  onValueChange,
@@ -2800,7 +2892,7 @@ function SegmentedControl({
2800
2892
  md: "h-9 text-sm",
2801
2893
  lg: "h-10 text-base"
2802
2894
  };
2803
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2895
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
2804
2896
  "div",
2805
2897
  {
2806
2898
  className: cn(
@@ -2811,7 +2903,7 @@ function SegmentedControl({
2811
2903
  role: "tablist",
2812
2904
  children: data.map((option) => {
2813
2905
  const isActive = value === option.value;
2814
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2906
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
2815
2907
  "button",
2816
2908
  {
2817
2909
  type: "button",
@@ -2838,8 +2930,8 @@ function SegmentedControl({
2838
2930
  // src/select.tsx
2839
2931
  var SelectPrimitive = __toESM(require("@radix-ui/react-select"), 1);
2840
2932
  var import_class_variance_authority4 = require("class-variance-authority");
2841
- var React21 = __toESM(require("react"), 1);
2842
- var import_jsx_runtime27 = require("react/jsx-runtime");
2933
+ var React23 = __toESM(require("react"), 1);
2934
+ var import_jsx_runtime29 = require("react/jsx-runtime");
2843
2935
  var Select = SelectPrimitive.Root;
2844
2936
  var SelectGroup = SelectPrimitive.Group;
2845
2937
  var SelectValue = SelectPrimitive.Value;
@@ -2858,7 +2950,7 @@ var selectTriggerVariants = (0, import_class_variance_authority4.cva)(
2858
2950
  }
2859
2951
  }
2860
2952
  );
2861
- var SelectTrigger = React21.forwardRef(({ className, children, hideArrow = false, size, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
2953
+ var SelectTrigger = React23.forwardRef(({ className, children, hideArrow = false, size, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
2862
2954
  SelectPrimitive.Trigger,
2863
2955
  {
2864
2956
  ref,
@@ -2866,12 +2958,12 @@ var SelectTrigger = React21.forwardRef(({ className, children, hideArrow = false
2866
2958
  ...props,
2867
2959
  children: [
2868
2960
  children,
2869
- !hideArrow && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(RadixChevronDownIcon, { className: "h-4 w-4 opacity-50" }) })
2961
+ !hideArrow && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(RadixChevronDownIcon, { className: "h-4 w-4 opacity-50" }) })
2870
2962
  ]
2871
2963
  }
2872
2964
  ));
2873
2965
  SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
2874
- var SelectScrollUpButton = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2966
+ var SelectScrollUpButton = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
2875
2967
  SelectPrimitive.ScrollUpButton,
2876
2968
  {
2877
2969
  ref,
@@ -2880,11 +2972,11 @@ var SelectScrollUpButton = React21.forwardRef(({ className, ...props }, ref) =>
2880
2972
  className
2881
2973
  ),
2882
2974
  ...props,
2883
- children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(RadixChevronUpIcon, {})
2975
+ children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(RadixChevronUpIcon, {})
2884
2976
  }
2885
2977
  ));
2886
2978
  SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
2887
- var SelectScrollDownButton = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2979
+ var SelectScrollDownButton = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
2888
2980
  SelectPrimitive.ScrollDownButton,
2889
2981
  {
2890
2982
  ref,
@@ -2893,13 +2985,13 @@ var SelectScrollDownButton = React21.forwardRef(({ className, ...props }, ref) =
2893
2985
  className
2894
2986
  ),
2895
2987
  ...props,
2896
- children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(RadixChevronDownIcon, {})
2988
+ children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(RadixChevronDownIcon, {})
2897
2989
  }
2898
2990
  ));
2899
2991
  SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
2900
- var SelectContent = React21.forwardRef(({ className, children, position = "popper", container, ...props }, ref) => {
2992
+ var SelectContent = React23.forwardRef(({ className, children, position = "popper", container, ...props }, ref) => {
2901
2993
  const portalContainer = usePortalContainer(container);
2902
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(SelectPrimitive.Portal, { container: portalContainer, children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
2994
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(SelectPrimitive.Portal, { container: portalContainer, children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
2903
2995
  SelectPrimitive.Content,
2904
2996
  {
2905
2997
  ref,
@@ -2911,8 +3003,8 @@ var SelectContent = React21.forwardRef(({ className, children, position = "poppe
2911
3003
  position,
2912
3004
  ...props,
2913
3005
  children: [
2914
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(SelectScrollUpButton, {}),
2915
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
3006
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(SelectScrollUpButton, {}),
3007
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
2916
3008
  SelectPrimitive.Viewport,
2917
3009
  {
2918
3010
  className: cn(
@@ -2922,13 +3014,13 @@ var SelectContent = React21.forwardRef(({ className, children, position = "poppe
2922
3014
  children
2923
3015
  }
2924
3016
  ),
2925
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(SelectScrollDownButton, {})
3017
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(SelectScrollDownButton, {})
2926
3018
  ]
2927
3019
  }
2928
3020
  ) });
2929
3021
  });
2930
3022
  SelectContent.displayName = SelectPrimitive.Content.displayName;
2931
- var SelectLabel = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
3023
+ var SelectLabel = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
2932
3024
  SelectPrimitive.Label,
2933
3025
  {
2934
3026
  ref,
@@ -2937,7 +3029,7 @@ var SelectLabel = React21.forwardRef(({ className, ...props }, ref) => /* @__PUR
2937
3029
  }
2938
3030
  ));
2939
3031
  SelectLabel.displayName = SelectPrimitive.Label.displayName;
2940
- var SelectItem = React21.forwardRef(({ className, children, description, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
3032
+ var SelectItem = React23.forwardRef(({ className, children, description, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
2941
3033
  SelectPrimitive.Item,
2942
3034
  {
2943
3035
  ref,
@@ -2948,14 +3040,14 @@ var SelectItem = React21.forwardRef(({ className, children, description, ...prop
2948
3040
  ),
2949
3041
  ...props,
2950
3042
  children: [
2951
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(CheckIcon, { className: "h-4 w-4" }) }) }),
2952
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(SelectPrimitive.ItemText, { children }),
2953
- description ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "block text-xs leading-snug text-muted-foreground", children: description }) : null
3043
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(CheckIcon, { className: "h-4 w-4" }) }) }),
3044
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(SelectPrimitive.ItemText, { children }),
3045
+ description ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "block text-xs leading-snug text-muted-foreground", children: description }) : null
2954
3046
  ]
2955
3047
  }
2956
3048
  ));
2957
3049
  SelectItem.displayName = SelectPrimitive.Item.displayName;
2958
- var SelectSeparator = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
3050
+ var SelectSeparator = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
2959
3051
  SelectPrimitive.Separator,
2960
3052
  {
2961
3053
  ref,
@@ -2967,9 +3059,9 @@ SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
2967
3059
 
2968
3060
  // src/separator.tsx
2969
3061
  var SeparatorPrimitive = __toESM(require("@radix-ui/react-separator"), 1);
2970
- var React22 = __toESM(require("react"), 1);
2971
- var import_jsx_runtime28 = require("react/jsx-runtime");
2972
- var Separator4 = React22.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
3062
+ var React24 = __toESM(require("react"), 1);
3063
+ var import_jsx_runtime30 = require("react/jsx-runtime");
3064
+ var Separator4 = React24.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2973
3065
  SeparatorPrimitive.Root,
2974
3066
  {
2975
3067
  ref,
@@ -2989,11 +3081,11 @@ Separator4.displayName = SeparatorPrimitive.Root.displayName;
2989
3081
  var SheetPrimitive = __toESM(require("@radix-ui/react-dialog"), 1);
2990
3082
  var import_react_tree4 = require("@ai-matrx/kit/react-tree");
2991
3083
  var import_class_variance_authority5 = require("class-variance-authority");
2992
- var React23 = __toESM(require("react"), 1);
2993
- var import_jsx_runtime29 = require("react/jsx-runtime");
2994
- var SheetContentBase = React23.forwardRef(({ ...props }, ref) => {
3084
+ var React25 = __toESM(require("react"), 1);
3085
+ var import_jsx_runtime31 = require("react/jsx-runtime");
3086
+ var SheetContentBase = React25.forwardRef(({ ...props }, ref) => {
2995
3087
  const isModal = useRadixDialogModal();
2996
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
3088
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2997
3089
  SheetPrimitive.Content,
2998
3090
  {
2999
3091
  ...props,
@@ -3003,15 +3095,15 @@ var SheetContentBase = React23.forwardRef(({ ...props }, ref) => {
3003
3095
  );
3004
3096
  });
3005
3097
  SheetContentBase.displayName = "SheetContentBase";
3006
- var Sheet = React23.forwardRef(({ children, ...props }, _ref) => {
3098
+ var Sheet = React25.forwardRef(({ children, ...props }, _ref) => {
3007
3099
  const modal = props.modal ?? true;
3008
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(RadixDialogModalProvider, { modal, children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(SheetPrimitive.Root, { ...props, modal, children }) });
3100
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(RadixDialogModalProvider, { modal, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(SheetPrimitive.Root, { ...props, modal, children }) });
3009
3101
  });
3010
3102
  Sheet.displayName = "Sheet";
3011
3103
  var SheetTrigger = SheetPrimitive.Trigger;
3012
3104
  var SheetClose = SheetPrimitive.Close;
3013
3105
  var SheetPortal = SheetPrimitive.Portal;
3014
- var SheetOverlay = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
3106
+ var SheetOverlay = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
3015
3107
  SheetPrimitive.Overlay,
3016
3108
  {
3017
3109
  className: cn(
@@ -3040,7 +3132,7 @@ var sheetVariants = (0, import_class_variance_authority5.cva)(
3040
3132
  }
3041
3133
  }
3042
3134
  );
3043
- var SheetDescription = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
3135
+ var SheetDescription = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
3044
3136
  SheetPrimitive.Description,
3045
3137
  {
3046
3138
  ref,
@@ -3049,7 +3141,7 @@ var SheetDescription = React23.forwardRef(({ className, ...props }, ref) => /* @
3049
3141
  }
3050
3142
  ));
3051
3143
  SheetDescription.displayName = SheetPrimitive.Description.displayName;
3052
- var SheetContent = React23.forwardRef(
3144
+ var SheetContent = React25.forwardRef(
3053
3145
  ({
3054
3146
  side = "right",
3055
3147
  className,
@@ -3060,9 +3152,9 @@ var SheetContent = React23.forwardRef(
3060
3152
  ...props
3061
3153
  }, ref) => {
3062
3154
  const hasDescription = (0, import_react_tree4.treeContainsComponent)(children, SheetDescription) || (0, import_react_tree4.treeContainsComponent)(children, SheetPrimitive.Description);
3063
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(SheetPortal, { children: [
3064
- !hideOverlay && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(SheetOverlay, { className: overlayClassName }),
3065
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
3155
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(SheetPortal, { children: [
3156
+ !hideOverlay && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(SheetOverlay, { className: overlayClassName }),
3157
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
3066
3158
  SheetContentBase,
3067
3159
  {
3068
3160
  ref,
@@ -3070,9 +3162,9 @@ var SheetContent = React23.forwardRef(
3070
3162
  ...hasDescription ? {} : { "aria-describedby": void 0 },
3071
3163
  ...props,
3072
3164
  children: [
3073
- !hideCloseButton && /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(SheetPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
3074
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Cross2Icon, { className: "h-4 w-4" }),
3075
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "sr-only", children: "Close" })
3165
+ !hideCloseButton && /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(SheetPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
3166
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Cross2Icon, { className: "h-4 w-4" }),
3167
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "sr-only", children: "Close" })
3076
3168
  ] }),
3077
3169
  children
3078
3170
  ]
@@ -3085,7 +3177,7 @@ SheetContent.displayName = SheetPrimitive.Content.displayName;
3085
3177
  var SheetHeader = ({
3086
3178
  className,
3087
3179
  ...props
3088
- }) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
3180
+ }) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
3089
3181
  "div",
3090
3182
  {
3091
3183
  className: cn(
@@ -3099,7 +3191,7 @@ SheetHeader.displayName = "SheetHeader";
3099
3191
  var SheetFooter = ({
3100
3192
  className,
3101
3193
  ...props
3102
- }) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
3194
+ }) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
3103
3195
  "div",
3104
3196
  {
3105
3197
  className: cn(
@@ -3110,7 +3202,7 @@ var SheetFooter = ({
3110
3202
  }
3111
3203
  );
3112
3204
  SheetFooter.displayName = "SheetFooter";
3113
- var SheetTitle = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
3205
+ var SheetTitle = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
3114
3206
  SheetPrimitive.Title,
3115
3207
  {
3116
3208
  ref,
@@ -3121,12 +3213,12 @@ var SheetTitle = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE
3121
3213
  SheetTitle.displayName = SheetPrimitive.Title.displayName;
3122
3214
 
3123
3215
  // src/skeleton.tsx
3124
- var import_jsx_runtime30 = require("react/jsx-runtime");
3216
+ var import_jsx_runtime32 = require("react/jsx-runtime");
3125
3217
  function Skeleton({
3126
3218
  className,
3127
3219
  ...props
3128
3220
  }) {
3129
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
3221
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
3130
3222
  "div",
3131
3223
  {
3132
3224
  className: cn("animate-pulse rounded-md bg-primary/10", className),
@@ -3137,8 +3229,8 @@ function Skeleton({
3137
3229
 
3138
3230
  // src/switch.tsx
3139
3231
  var SwitchPrimitives = __toESM(require("@radix-ui/react-switch"), 1);
3140
- var React24 = __toESM(require("react"), 1);
3141
- var import_jsx_runtime31 = require("react/jsx-runtime");
3232
+ var React26 = __toESM(require("react"), 1);
3233
+ var import_jsx_runtime33 = require("react/jsx-runtime");
3142
3234
  var SWITCH_SIZES = {
3143
3235
  sm: {
3144
3236
  root: "h-4 w-9 border-border data-[state=unchecked]:bg-input",
@@ -3149,7 +3241,7 @@ var SWITCH_SIZES = {
3149
3241
  thumb: "h-4 w-4 data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0"
3150
3242
  }
3151
3243
  };
3152
- var Switch = React24.forwardRef(({ className, size = "md", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
3244
+ var Switch = React26.forwardRef(({ className, size = "md", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
3153
3245
  SwitchPrimitives.Root,
3154
3246
  {
3155
3247
  ref,
@@ -3160,7 +3252,7 @@ var Switch = React24.forwardRef(({ className, size = "md", ...props }, ref) => /
3160
3252
  className
3161
3253
  ),
3162
3254
  ...props,
3163
- children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
3255
+ children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
3164
3256
  SwitchPrimitives.Thumb,
3165
3257
  {
3166
3258
  "data-slot": "switch-thumb",
@@ -3176,7 +3268,7 @@ Switch.displayName = SwitchPrimitives.Root.displayName;
3176
3268
 
3177
3269
  // src/tabbed-bottom-sheet.tsx
3178
3270
  var import_react4 = require("react");
3179
- var import_jsx_runtime32 = require("react/jsx-runtime");
3271
+ var import_jsx_runtime34 = require("react/jsx-runtime");
3180
3272
  function TabbedBottomSheet({
3181
3273
  open,
3182
3274
  onOpenChange,
@@ -3190,15 +3282,15 @@ function TabbedBottomSheet({
3190
3282
  if (open) setSelectedTabId(null);
3191
3283
  }
3192
3284
  const selectedTab = selectedTabId ? tabs.find((tab) => tab.id === selectedTabId) : null;
3193
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
3285
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3194
3286
  BottomSheet,
3195
3287
  {
3196
3288
  open,
3197
3289
  onOpenChange,
3198
3290
  title,
3199
3291
  size: "full",
3200
- children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "matrx-mobile-sheet flex min-h-0 flex-1 flex-col", children: [
3201
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
3292
+ children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "matrx-mobile-sheet flex min-h-0 flex-1 flex-col", children: [
3293
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3202
3294
  BottomSheetHeader,
3203
3295
  {
3204
3296
  title: selectedTab ? selectedTab.label : title,
@@ -3206,19 +3298,19 @@ function TabbedBottomSheet({
3206
3298
  onBack: () => setSelectedTabId(null)
3207
3299
  }
3208
3300
  ),
3209
- selectedTab ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "flex min-h-0 flex-1 flex-col overflow-hidden pb-safe", children: selectedTab.content }) : /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(BottomSheetBody, { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("ul", { className: "divide-y divide-border", children: tabs.map((tab) => {
3301
+ selectedTab ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "flex min-h-0 flex-1 flex-col overflow-hidden pb-safe", children: selectedTab.content }) : /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(BottomSheetBody, { children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("ul", { className: "divide-y divide-border", children: tabs.map((tab) => {
3210
3302
  const Icon2 = tab.icon;
3211
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
3303
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
3212
3304
  "button",
3213
3305
  {
3214
3306
  type: "button",
3215
3307
  onClick: () => setSelectedTabId(tab.id),
3216
3308
  className: "flex w-full items-center gap-3 px-4 py-3.5 text-left transition-colors hover:bg-muted/60 active:bg-muted",
3217
3309
  children: [
3218
- Icon2 ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Icon2, { className: "h-5 w-5 shrink-0 text-muted-foreground" }) : null,
3219
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "min-w-0 flex-1 text-base text-foreground", children: tab.label }),
3310
+ Icon2 ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Icon2, { className: "h-5 w-5 shrink-0 text-muted-foreground" }) : null,
3311
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "min-w-0 flex-1 text-base text-foreground", children: tab.label }),
3220
3312
  tab.trailing,
3221
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(ChevronRightIcon, { className: "h-5 w-5 shrink-0 text-muted-foreground" })
3313
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(ChevronRightIcon, { className: "h-5 w-5 shrink-0 text-muted-foreground" })
3222
3314
  ]
3223
3315
  }
3224
3316
  ) }, tab.id);
@@ -3229,19 +3321,19 @@ function TabbedBottomSheet({
3229
3321
  }
3230
3322
 
3231
3323
  // src/table.tsx
3232
- var React25 = __toESM(require("react"), 1);
3233
- var import_jsx_runtime33 = require("react/jsx-runtime");
3324
+ var React27 = __toESM(require("react"), 1);
3325
+ var import_jsx_runtime35 = require("react/jsx-runtime");
3234
3326
  var TABLE_SIZES = {
3235
3327
  sm: { head: "px-2", cell: "p-2" },
3236
3328
  md: { head: "px-3", cell: "p-3" }
3237
3329
  };
3238
- var TableSizeContext = React25.createContext("md");
3330
+ var TableSizeContext = React27.createContext("md");
3239
3331
  function useTableSize() {
3240
- return React25.useContext(TableSizeContext);
3332
+ return React27.useContext(TableSizeContext);
3241
3333
  }
3242
- var Table = React25.forwardRef(
3334
+ var Table = React27.forwardRef(
3243
3335
  ({ className, size = "md", wrap = true, wrapperClassName, ...props }, ref) => {
3244
- const table = /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
3336
+ const table = /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3245
3337
  "table",
3246
3338
  {
3247
3339
  ref,
@@ -3251,7 +3343,7 @@ var Table = React25.forwardRef(
3251
3343
  ...props
3252
3344
  }
3253
3345
  );
3254
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(TableSizeContext.Provider, { value: size, children: wrap ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
3346
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(TableSizeContext.Provider, { value: size, children: wrap ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3255
3347
  "div",
3256
3348
  {
3257
3349
  "data-slot": "table-wrapper",
@@ -3262,7 +3354,7 @@ var Table = React25.forwardRef(
3262
3354
  }
3263
3355
  );
3264
3356
  Table.displayName = "Table";
3265
- var TableHeader = React25.forwardRef(({ className, sticky = false, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
3357
+ var TableHeader = React27.forwardRef(({ className, sticky = false, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3266
3358
  "thead",
3267
3359
  {
3268
3360
  ref,
@@ -3276,7 +3368,7 @@ var TableHeader = React25.forwardRef(({ className, sticky = false, ...props }, r
3276
3368
  }
3277
3369
  ));
3278
3370
  TableHeader.displayName = "TableHeader";
3279
- var TableBody = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
3371
+ var TableBody = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3280
3372
  "tbody",
3281
3373
  {
3282
3374
  ref,
@@ -3286,7 +3378,7 @@ var TableBody = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE_
3286
3378
  }
3287
3379
  ));
3288
3380
  TableBody.displayName = "TableBody";
3289
- var TableFooter = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
3381
+ var TableFooter = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3290
3382
  "tfoot",
3291
3383
  {
3292
3384
  ref,
@@ -3299,7 +3391,7 @@ var TableFooter = React25.forwardRef(({ className, ...props }, ref) => /* @__PUR
3299
3391
  }
3300
3392
  ));
3301
3393
  TableFooter.displayName = "TableFooter";
3302
- var TableRow = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
3394
+ var TableRow = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3303
3395
  "tr",
3304
3396
  {
3305
3397
  ref,
@@ -3312,9 +3404,9 @@ var TableRow = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__
3312
3404
  }
3313
3405
  ));
3314
3406
  TableRow.displayName = "TableRow";
3315
- var TableHead = React25.forwardRef(({ className, ...props }, ref) => {
3407
+ var TableHead = React27.forwardRef(({ className, ...props }, ref) => {
3316
3408
  const size = useTableSize();
3317
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
3409
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3318
3410
  "th",
3319
3411
  {
3320
3412
  ref,
@@ -3329,9 +3421,9 @@ var TableHead = React25.forwardRef(({ className, ...props }, ref) => {
3329
3421
  );
3330
3422
  });
3331
3423
  TableHead.displayName = "TableHead";
3332
- var TableCell = React25.forwardRef(({ className, ...props }, ref) => {
3424
+ var TableCell = React27.forwardRef(({ className, ...props }, ref) => {
3333
3425
  const size = useTableSize();
3334
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
3426
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3335
3427
  "td",
3336
3428
  {
3337
3429
  ref,
@@ -3346,7 +3438,7 @@ var TableCell = React25.forwardRef(({ className, ...props }, ref) => {
3346
3438
  );
3347
3439
  });
3348
3440
  TableCell.displayName = "TableCell";
3349
- var TableCaption = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
3441
+ var TableCaption = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3350
3442
  "caption",
3351
3443
  {
3352
3444
  ref,
@@ -3359,11 +3451,11 @@ TableCaption.displayName = "TableCaption";
3359
3451
 
3360
3452
  // src/tabs.tsx
3361
3453
  var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"), 1);
3362
- var React26 = __toESM(require("react"), 1);
3363
- var import_jsx_runtime34 = require("react/jsx-runtime");
3454
+ var React28 = __toESM(require("react"), 1);
3455
+ var import_jsx_runtime36 = require("react/jsx-runtime");
3364
3456
  var Tabs = TabsPrimitive.Root;
3365
3457
  var TABS_TRIGGER_BASE = "inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm";
3366
- var TabsList = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3458
+ var TabsList = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3367
3459
  TabsPrimitive.List,
3368
3460
  {
3369
3461
  ref,
@@ -3376,7 +3468,7 @@ var TabsList = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__
3376
3468
  }
3377
3469
  ));
3378
3470
  TabsList.displayName = TabsPrimitive.List.displayName;
3379
- var TabsTrigger = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3471
+ var TabsTrigger = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3380
3472
  TabsPrimitive.Trigger,
3381
3473
  {
3382
3474
  ref,
@@ -3390,7 +3482,7 @@ var TabsTrigger = React26.forwardRef(({ className, ...props }, ref) => /* @__PUR
3390
3482
  }
3391
3483
  ));
3392
3484
  TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
3393
- var TabsTriggerCore = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3485
+ var TabsTriggerCore = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3394
3486
  TabsPrimitive.Trigger,
3395
3487
  {
3396
3488
  ref,
@@ -3400,7 +3492,7 @@ var TabsTriggerCore = React26.forwardRef(({ className, ...props }, ref) => /* @_
3400
3492
  }
3401
3493
  ));
3402
3494
  TabsTriggerCore.displayName = TabsPrimitive.Trigger.displayName;
3403
- var TabsContent = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3495
+ var TabsContent = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3404
3496
  TabsPrimitive.Content,
3405
3497
  {
3406
3498
  ref,
@@ -3416,8 +3508,8 @@ var TabsContent = React26.forwardRef(({ className, ...props }, ref) => /* @__PUR
3416
3508
  TabsContent.displayName = TabsPrimitive.Content.displayName;
3417
3509
 
3418
3510
  // src/textarea.tsx
3419
- var React27 = __toESM(require("react"), 1);
3420
- var import_jsx_runtime35 = require("react/jsx-runtime");
3511
+ var React29 = __toESM(require("react"), 1);
3512
+ var import_jsx_runtime37 = require("react/jsx-runtime");
3421
3513
  var FILL_HEIGHT_REGEX = /(?:^|\s)(h-full|h-dvh|flex-1|grow)(?:\s|$)/;
3422
3514
  var FILL_WIDTH_REGEX = /(?:^|\s)(w-full|w-screen)(?:\s|$)/;
3423
3515
  function getStretchClasses(className) {
@@ -3430,7 +3522,7 @@ function getStretchClasses(className) {
3430
3522
  var TEXTAREA_ELEVATED_CLASS = "flex h-auto w-full rounded-md border border-input bg-background px-3 py-2 text-sm text-foreground shadow-textarea transition duration-400 placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-[2px] focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50";
3431
3523
  var TEXTAREA_CONTROL_CLASS = "flex w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm text-foreground shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50";
3432
3524
  function useAutoGrow(ref, value, autoGrow = false, minHeight, maxHeight) {
3433
- React27.useEffect(() => {
3525
+ React29.useEffect(() => {
3434
3526
  if (!autoGrow || !ref.current) return;
3435
3527
  const textarea = ref.current;
3436
3528
  textarea.style.height = "auto";
@@ -3446,8 +3538,8 @@ function useAutoGrow(ref, value, autoGrow = false, minHeight, maxHeight) {
3446
3538
  }, [value, autoGrow, minHeight, maxHeight, ref]);
3447
3539
  }
3448
3540
  function useMergedTextareaRef(forwarded) {
3449
- const internal = React27.useRef(null);
3450
- const callback = React27.useCallback(
3541
+ const internal = React29.useRef(null);
3542
+ const callback = React29.useCallback(
3451
3543
  (node) => {
3452
3544
  internal.current = node;
3453
3545
  if (typeof forwarded === "function") forwarded(node);
@@ -3464,13 +3556,13 @@ function boxStyle(minHeight, maxHeight) {
3464
3556
  maxHeight: maxHeight ? `${maxHeight}px` : void 0
3465
3557
  };
3466
3558
  }
3467
- var Textarea = React27.forwardRef(
3559
+ var Textarea = React29.forwardRef(
3468
3560
  ({ className, autoGrow, minHeight, maxHeight, wrapperClassName, ...props }, forwarded) => {
3469
3561
  const { ref, callback } = useMergedTextareaRef(forwarded);
3470
3562
  const stretchClasses = getStretchClasses(className);
3471
3563
  const needsWrapper = Boolean(wrapperClassName || stretchClasses);
3472
3564
  useAutoGrow(ref, props.value, autoGrow, minHeight, maxHeight);
3473
- const textarea = /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3565
+ const textarea = /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3474
3566
  "textarea",
3475
3567
  {
3476
3568
  ref: callback,
@@ -3486,15 +3578,15 @@ var Textarea = React27.forwardRef(
3486
3578
  }
3487
3579
  );
3488
3580
  if (!needsWrapper) return textarea;
3489
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: cn(stretchClasses, wrapperClassName), children: textarea });
3581
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: cn(stretchClasses, wrapperClassName), children: textarea });
3490
3582
  }
3491
3583
  );
3492
3584
  Textarea.displayName = "Textarea";
3493
- var BasicTextarea = React27.forwardRef(
3585
+ var BasicTextarea = React29.forwardRef(
3494
3586
  ({ className, autoGrow, minHeight, maxHeight, ...props }, forwarded) => {
3495
3587
  const { ref, callback } = useMergedTextareaRef(forwarded);
3496
3588
  useAutoGrow(ref, props.value, autoGrow, minHeight, maxHeight);
3497
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3589
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3498
3590
  "textarea",
3499
3591
  {
3500
3592
  ref: callback,
@@ -3512,7 +3604,7 @@ var BasicTextarea = React27.forwardRef(
3512
3604
  }
3513
3605
  );
3514
3606
  BasicTextarea.displayName = "BasicTextarea";
3515
- var TextareaWithPrefix = React27.forwardRef(
3607
+ var TextareaWithPrefix = React29.forwardRef(
3516
3608
  ({
3517
3609
  prefix,
3518
3610
  className,
@@ -3524,13 +3616,13 @@ var TextareaWithPrefix = React27.forwardRef(
3524
3616
  }, forwarded) => {
3525
3617
  const { ref, callback } = useMergedTextareaRef(forwarded);
3526
3618
  useAutoGrow(ref, props.value, autoGrow, minHeight, maxHeight);
3527
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
3619
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
3528
3620
  "div",
3529
3621
  {
3530
3622
  className: cn("relative", getStretchClasses(className), wrapperClassName),
3531
3623
  children: [
3532
- prefix ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "pointer-events-none absolute left-3 top-3 z-10 text-muted-foreground", children: prefix }) : null,
3533
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3624
+ prefix ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "pointer-events-none absolute left-3 top-3 z-10 text-muted-foreground", children: prefix }) : null,
3625
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3534
3626
  "textarea",
3535
3627
  {
3536
3628
  ref: callback,
@@ -3609,13 +3701,13 @@ function useScrollFade() {
3609
3701
 
3610
3702
  // src/hover-card.tsx
3611
3703
  var HoverCardPrimitive = __toESM(require("@radix-ui/react-hover-card"), 1);
3612
- var React28 = __toESM(require("react"), 1);
3613
- var import_jsx_runtime36 = require("react/jsx-runtime");
3704
+ var React30 = __toESM(require("react"), 1);
3705
+ var import_jsx_runtime38 = require("react/jsx-runtime");
3614
3706
  var HoverCard = HoverCardPrimitive.Root;
3615
3707
  var HoverCardTrigger = HoverCardPrimitive.Trigger;
3616
- var HoverCardContent = React28.forwardRef(({ className, align = "center", sideOffset = 4, container, ...props }, ref) => {
3708
+ var HoverCardContent = React30.forwardRef(({ className, align = "center", sideOffset = 4, container, ...props }, ref) => {
3617
3709
  const resolved = usePortalContainer(container);
3618
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(HoverCardPrimitive.Portal, { container: resolved ?? null, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3710
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(HoverCardPrimitive.Portal, { container: resolved ?? null, children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3619
3711
  HoverCardPrimitive.Content,
3620
3712
  {
3621
3713
  ref,
@@ -3634,9 +3726,9 @@ HoverCardContent.displayName = HoverCardPrimitive.Content.displayName;
3634
3726
 
3635
3727
  // src/radio-group.tsx
3636
3728
  var RadioGroupPrimitive = __toESM(require("@radix-ui/react-radio-group"), 1);
3637
- var React29 = __toESM(require("react"), 1);
3638
- var import_jsx_runtime37 = require("react/jsx-runtime");
3639
- var RadioGroupSizeContext = React29.createContext("md");
3729
+ var React31 = __toESM(require("react"), 1);
3730
+ var import_jsx_runtime39 = require("react/jsx-runtime");
3731
+ var RadioGroupSizeContext = React31.createContext("md");
3640
3732
  var CONTROL_CLASSES = {
3641
3733
  sm: "h-3.5 w-3.5",
3642
3734
  md: "h-4 w-4",
@@ -3647,7 +3739,7 @@ var DOT_CLASSES = {
3647
3739
  md: "h-1.5 w-1.5",
3648
3740
  lg: "h-2 w-2"
3649
3741
  };
3650
- var RadioGroup3 = React29.forwardRef(({ className, size = "md", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(RadioGroupSizeContext.Provider, { value: size, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3742
+ var RadioGroup3 = React31.forwardRef(({ className, size = "md", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(RadioGroupSizeContext.Provider, { value: size, children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3651
3743
  RadioGroupPrimitive.Root,
3652
3744
  {
3653
3745
  ref,
@@ -3657,10 +3749,10 @@ var RadioGroup3 = React29.forwardRef(({ className, size = "md", ...props }, ref)
3657
3749
  }
3658
3750
  ) }));
3659
3751
  RadioGroup3.displayName = RadioGroupPrimitive.Root.displayName;
3660
- var RadioGroupItem = React29.forwardRef(({ className, size, ...props }, ref) => {
3661
- const groupSize = React29.useContext(RadioGroupSizeContext);
3752
+ var RadioGroupItem = React31.forwardRef(({ className, size, ...props }, ref) => {
3753
+ const groupSize = React31.useContext(RadioGroupSizeContext);
3662
3754
  const resolved = size ?? groupSize;
3663
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3755
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3664
3756
  RadioGroupPrimitive.Item,
3665
3757
  {
3666
3758
  ref,
@@ -3677,7 +3769,7 @@ var RadioGroupItem = React29.forwardRef(({ className, size, ...props }, ref) =>
3677
3769
  className
3678
3770
  ),
3679
3771
  ...props,
3680
- children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(RadioGroupPrimitive.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3772
+ children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(RadioGroupPrimitive.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3681
3773
  "div",
3682
3774
  {
3683
3775
  className: cn("rounded-full bg-primary-foreground", DOT_CLASSES[resolved])
@@ -3690,7 +3782,7 @@ RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
3690
3782
 
3691
3783
  // src/resizable.tsx
3692
3784
  var import_react_resizable_panels = require("react-resizable-panels");
3693
- var import_jsx_runtime38 = require("react/jsx-runtime");
3785
+ var import_jsx_runtime40 = require("react/jsx-runtime");
3694
3786
  var HANDLE_SIZES = {
3695
3787
  xs: "w-0.5 [&[aria-orientation=horizontal]]:h-0.5 [&[aria-orientation=horizontal]]:w-full",
3696
3788
  sm: "w-1 [&[aria-orientation=horizontal]]:h-1 [&[aria-orientation=horizontal]]:w-full",
@@ -3704,7 +3796,7 @@ var HANDLE_SIZES = {
3704
3796
  var ResizablePanelGroup = ({
3705
3797
  className,
3706
3798
  ...props
3707
- }) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3799
+ }) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3708
3800
  import_react_resizable_panels.Group,
3709
3801
  {
3710
3802
  "data-slot": "resizable-group",
@@ -3719,7 +3811,7 @@ var ResizableHandle = ({
3719
3811
  size = "xs",
3720
3812
  className,
3721
3813
  ...props
3722
- }) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3814
+ }) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3723
3815
  import_react_resizable_panels.Separator,
3724
3816
  {
3725
3817
  "data-slot": "resizable-handle",
@@ -3739,15 +3831,15 @@ var ResizableHandle = ({
3739
3831
  className
3740
3832
  ),
3741
3833
  ...props,
3742
- children: withHandle ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "z-10 flex h-8 w-4 items-center justify-center rounded-sm border bg-border group-aria-[orientation=horizontal]/handle:h-4 group-aria-[orientation=horizontal]/handle:w-8", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(DragHandleDots2Icon, { className: "h-2.5 w-2.5 group-aria-[orientation=horizontal]/handle:rotate-90" }) }) : null
3834
+ children: withHandle ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "z-10 flex h-8 w-4 items-center justify-center rounded-sm border bg-border group-aria-[orientation=horizontal]/handle:h-4 group-aria-[orientation=horizontal]/handle:w-8", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(DragHandleDots2Icon, { className: "h-2.5 w-2.5 group-aria-[orientation=horizontal]/handle:rotate-90" }) }) : null
3743
3835
  }
3744
3836
  );
3745
3837
  ResizableHandle.displayName = "ResizableHandle";
3746
3838
 
3747
3839
  // src/slider.tsx
3748
3840
  var SliderPrimitive = __toESM(require("@radix-ui/react-slider"), 1);
3749
- var React30 = __toESM(require("react"), 1);
3750
- var import_jsx_runtime39 = require("react/jsx-runtime");
3841
+ var React32 = __toESM(require("react"), 1);
3842
+ var import_jsx_runtime41 = require("react/jsx-runtime");
3751
3843
  var TRACK_CLASSES = {
3752
3844
  sm: "h-1",
3753
3845
  md: "h-1.5",
@@ -3758,12 +3850,12 @@ var THUMB_CLASSES = {
3758
3850
  md: "h-4 w-4",
3759
3851
  lg: "h-5 w-5"
3760
3852
  };
3761
- var Slider = React30.forwardRef(({ className, size = "md", ...props }, ref) => {
3853
+ var Slider = React32.forwardRef(({ className, size = "md", ...props }, ref) => {
3762
3854
  const thumbCount = Math.max(
3763
3855
  1,
3764
3856
  (props.value ?? props.defaultValue ?? [0]).length
3765
3857
  );
3766
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
3858
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
3767
3859
  SliderPrimitive.Root,
3768
3860
  {
3769
3861
  ref,
@@ -3775,7 +3867,7 @@ var Slider = React30.forwardRef(({ className, size = "md", ...props }, ref) => {
3775
3867
  ),
3776
3868
  ...props,
3777
3869
  children: [
3778
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3870
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3779
3871
  SliderPrimitive.Track,
3780
3872
  {
3781
3873
  "data-slot": "slider-track",
@@ -3784,7 +3876,7 @@ var Slider = React30.forwardRef(({ className, size = "md", ...props }, ref) => {
3784
3876
  TRACK_CLASSES[size],
3785
3877
  "data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"
3786
3878
  ),
3787
- children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3879
+ children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3788
3880
  SliderPrimitive.Range,
3789
3881
  {
3790
3882
  "data-slot": "slider-range",
@@ -3793,7 +3885,7 @@ var Slider = React30.forwardRef(({ className, size = "md", ...props }, ref) => {
3793
3885
  )
3794
3886
  }
3795
3887
  ),
3796
- Array.from({ length: thumbCount }, (_, index) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3888
+ Array.from({ length: thumbCount }, (_, index) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3797
3889
  SliderPrimitive.Thumb,
3798
3890
  {
3799
3891
  "data-slot": "slider-thumb",
@@ -3820,8 +3912,8 @@ Slider.displayName = SliderPrimitive.Root.displayName;
3820
3912
  var ToggleGroupPrimitive = __toESM(require("@radix-ui/react-toggle-group"), 1);
3821
3913
  var TogglePrimitive = __toESM(require("@radix-ui/react-toggle"), 1);
3822
3914
  var import_class_variance_authority6 = require("class-variance-authority");
3823
- var React31 = __toESM(require("react"), 1);
3824
- var import_jsx_runtime40 = require("react/jsx-runtime");
3915
+ var React33 = __toESM(require("react"), 1);
3916
+ var import_jsx_runtime42 = require("react/jsx-runtime");
3825
3917
  var toggleVariants = (0, import_class_variance_authority6.cva)(
3826
3918
  "inline-flex cursor-pointer items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
3827
3919
  {
@@ -3842,7 +3934,7 @@ var toggleVariants = (0, import_class_variance_authority6.cva)(
3842
3934
  }
3843
3935
  }
3844
3936
  );
3845
- var Toggle = React31.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3937
+ var Toggle = React33.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
3846
3938
  TogglePrimitive.Root,
3847
3939
  {
3848
3940
  ref,
@@ -3852,21 +3944,21 @@ var Toggle = React31.forwardRef(({ className, variant, size, ...props }, ref) =>
3852
3944
  }
3853
3945
  ));
3854
3946
  Toggle.displayName = TogglePrimitive.Root.displayName;
3855
- var ToggleGroupContext = React31.createContext({ size: "default", variant: "default" });
3856
- var ToggleGroup = React31.forwardRef(({ className, variant, size, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3947
+ var ToggleGroupContext = React33.createContext({ size: "default", variant: "default" });
3948
+ var ToggleGroup = React33.forwardRef(({ className, variant, size, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
3857
3949
  ToggleGroupPrimitive.Root,
3858
3950
  {
3859
3951
  ref,
3860
3952
  "data-slot": "toggle-group",
3861
3953
  className: cn("flex items-center justify-center gap-1", className),
3862
3954
  ...props,
3863
- children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(ToggleGroupContext.Provider, { value: { variant, size }, children })
3955
+ children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(ToggleGroupContext.Provider, { value: { variant, size }, children })
3864
3956
  }
3865
3957
  ));
3866
3958
  ToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;
3867
- var ToggleGroupItem = React31.forwardRef(({ className, children, variant, size, ...props }, ref) => {
3868
- const context = React31.useContext(ToggleGroupContext);
3869
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3959
+ var ToggleGroupItem = React33.forwardRef(({ className, children, variant, size, ...props }, ref) => {
3960
+ const context = React33.useContext(ToggleGroupContext);
3961
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
3870
3962
  ToggleGroupPrimitive.Item,
3871
3963
  {
3872
3964
  ref,
@@ -3887,14 +3979,14 @@ ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;
3887
3979
 
3888
3980
  // src/tooltip.tsx
3889
3981
  var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"), 1);
3890
- var React32 = __toESM(require("react"), 1);
3891
- var import_jsx_runtime41 = require("react/jsx-runtime");
3982
+ var React34 = __toESM(require("react"), 1);
3983
+ var import_jsx_runtime43 = require("react/jsx-runtime");
3892
3984
  var TooltipProvider = TooltipPrimitive.Provider;
3893
3985
  var Tooltip = TooltipPrimitive.Root;
3894
3986
  var TooltipTrigger = TooltipPrimitive.Trigger;
3895
- var TooltipContent = React32.forwardRef(({ className, sideOffset = 4, container, ...props }, ref) => {
3987
+ var TooltipContent = React34.forwardRef(({ className, sideOffset = 4, container, ...props }, ref) => {
3896
3988
  const resolved = usePortalContainer(container);
3897
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(TooltipPrimitive.Portal, { container: resolved ?? null, children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3989
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(TooltipPrimitive.Portal, { container: resolved ?? null, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
3898
3990
  TooltipPrimitive.Content,
3899
3991
  {
3900
3992
  ref,