@ai-matrx/design-system 0.7.0 → 0.8.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
  }
@@ -1212,15 +1290,15 @@ var CollapsibleContent2 = CollapsiblePrimitive.CollapsibleContent;
1212
1290
  // src/command.tsx
1213
1291
  var DialogPrimitive = __toESM(require("@radix-ui/react-dialog"), 1);
1214
1292
  var import_cmdk = require("cmdk");
1215
- var React11 = __toESM(require("react"), 1);
1293
+ var React12 = __toESM(require("react"), 1);
1216
1294
 
1217
1295
  // src/use-is-mobile.ts
1218
- var React10 = __toESM(require("react"), 1);
1296
+ var React11 = __toESM(require("react"), 1);
1219
1297
  var MOBILE_BREAKPOINT = 768;
1220
1298
  function useIsMobile() {
1221
- const [isMobile, setIsMobile] = React10.useState(false);
1222
- const [hasMounted, setHasMounted] = React10.useState(false);
1223
- React10.useEffect(() => {
1299
+ const [isMobile, setIsMobile] = React11.useState(false);
1300
+ const [hasMounted, setHasMounted] = React11.useState(false);
1301
+ React11.useEffect(() => {
1224
1302
  setHasMounted(true);
1225
1303
  const onChange = () => {
1226
1304
  setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
@@ -1240,8 +1318,8 @@ function useIsMobile() {
1240
1318
  }
1241
1319
 
1242
1320
  // 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)(
1321
+ var import_jsx_runtime14 = require("react/jsx-runtime");
1322
+ var Command = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1245
1323
  import_cmdk.Command,
1246
1324
  {
1247
1325
  ref,
@@ -1256,18 +1334,18 @@ Command.displayName = import_cmdk.Command.displayName;
1256
1334
  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
1335
  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
1336
  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) => {
1337
+ var CommandDialogContent = React12.forwardRef(({ className, children, container, ...props }, ref) => {
1260
1338
  const isMobile = useIsMobile();
1261
1339
  const isModal = useRadixDialogModal();
1262
1340
  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)(
1341
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(DialogPrimitive.Portal, { container: portalContainer, children: [
1342
+ isModal ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1265
1343
  DialogPrimitive.Overlay,
1266
1344
  {
1267
1345
  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
1346
  }
1269
1347
  ) : null,
1270
- /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
1348
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
1271
1349
  DialogPrimitive.Content,
1272
1350
  {
1273
1351
  ref,
@@ -1282,9 +1360,9 @@ var CommandDialogContent = React11.forwardRef(({ className, children, container,
1282
1360
  ...props,
1283
1361
  children: [
1284
1362
  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" })
1363
+ /* @__PURE__ */ (0, import_jsx_runtime14.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: [
1364
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(XIcon, { className: "h-4 w-4" }),
1365
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "sr-only", children: "Close" })
1288
1366
  ] })
1289
1367
  ]
1290
1368
  }
@@ -1298,21 +1376,21 @@ var CommandDialog = ({
1298
1376
  ...props
1299
1377
  }) => {
1300
1378
  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)(
1379
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(RadixDialogModalProvider, { modal, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(DialogPrimitive.Root, { ...props, modal, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
1302
1380
  CommandDialogContent,
1303
1381
  {
1304
1382
  className: "overflow-hidden p-0",
1305
1383
  ...container !== void 0 ? { container } : {},
1306
1384
  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 })
1385
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(DialogPrimitive.Title, { className: "sr-only" }),
1386
+ /* @__PURE__ */ (0, import_jsx_runtime14.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
1387
  ]
1310
1388
  }
1311
1389
  ) }) });
1312
1390
  };
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)(
1391
+ var CommandInput = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
1392
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(MagnifyingGlassIcon, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
1393
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1316
1394
  import_cmdk.Command.Input,
1317
1395
  {
1318
1396
  ref,
@@ -1325,7 +1403,7 @@ var CommandInput = React11.forwardRef(({ className, ...props }, ref) => /* @__PU
1325
1403
  )
1326
1404
  ] }));
1327
1405
  CommandInput.displayName = import_cmdk.Command.Input.displayName;
1328
- var CommandList = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1406
+ var CommandList = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1329
1407
  import_cmdk.Command.List,
1330
1408
  {
1331
1409
  ref,
@@ -1334,7 +1412,7 @@ var CommandList = React11.forwardRef(({ className, ...props }, ref) => /* @__PUR
1334
1412
  }
1335
1413
  ));
1336
1414
  CommandList.displayName = import_cmdk.Command.List.displayName;
1337
- var CommandEmpty = React11.forwardRef((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1415
+ var CommandEmpty = React12.forwardRef((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1338
1416
  import_cmdk.Command.Empty,
1339
1417
  {
1340
1418
  ref,
@@ -1343,7 +1421,7 @@ var CommandEmpty = React11.forwardRef((props, ref) => /* @__PURE__ */ (0, import
1343
1421
  }
1344
1422
  ));
1345
1423
  CommandEmpty.displayName = import_cmdk.Command.Empty.displayName;
1346
- var CommandGroup = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1424
+ var CommandGroup = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1347
1425
  import_cmdk.Command.Group,
1348
1426
  {
1349
1427
  ref,
@@ -1355,7 +1433,7 @@ var CommandGroup = React11.forwardRef(({ className, ...props }, ref) => /* @__PU
1355
1433
  }
1356
1434
  ));
1357
1435
  CommandGroup.displayName = import_cmdk.Command.Group.displayName;
1358
- var CommandSeparator = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1436
+ var CommandSeparator = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1359
1437
  import_cmdk.Command.Separator,
1360
1438
  {
1361
1439
  ref,
@@ -1364,7 +1442,7 @@ var CommandSeparator = React11.forwardRef(({ className, ...props }, ref) => /* @
1364
1442
  }
1365
1443
  ));
1366
1444
  CommandSeparator.displayName = import_cmdk.Command.Separator.displayName;
1367
- var CommandItem = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1445
+ var CommandItem = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1368
1446
  import_cmdk.Command.Item,
1369
1447
  {
1370
1448
  ref,
@@ -1380,7 +1458,7 @@ var CommandShortcut = ({
1380
1458
  className,
1381
1459
  ...props
1382
1460
  }) => {
1383
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1461
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1384
1462
  "span",
1385
1463
  {
1386
1464
  className: cn(
@@ -1395,8 +1473,8 @@ CommandShortcut.displayName = "CommandShortcut";
1395
1473
 
1396
1474
  // src/context-menu.tsx
1397
1475
  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");
1476
+ var React13 = __toESM(require("react"), 1);
1477
+ var import_jsx_runtime15 = require("react/jsx-runtime");
1400
1478
  var ContextMenu = ContextMenuPrimitive.Root;
1401
1479
  var ContextMenuTrigger = ContextMenuPrimitive.Trigger;
1402
1480
  var ContextMenuGroup = ContextMenuPrimitive.Group;
@@ -1407,7 +1485,7 @@ var SURFACE_CLASS = "z-50 min-w-[8rem] max-h-[var(--radix-context-menu-content-a
1407
1485
  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
1486
  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
1487
  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)(
1488
+ var ContextMenuSubTrigger = React13.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
1411
1489
  ContextMenuPrimitive.SubTrigger,
1412
1490
  {
1413
1491
  ref,
@@ -1420,12 +1498,12 @@ var ContextMenuSubTrigger = React12.forwardRef(({ className, inset, children, ..
1420
1498
  ...props,
1421
1499
  children: [
1422
1500
  children,
1423
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(RadixChevronRightIcon, { className: "ml-auto h-4 w-4" })
1501
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(RadixChevronRightIcon, { className: "ml-auto h-4 w-4" })
1424
1502
  ]
1425
1503
  }
1426
1504
  ));
1427
1505
  ContextMenuSubTrigger.displayName = ContextMenuPrimitive.SubTrigger.displayName;
1428
- var ContextMenuSubContent = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1506
+ var ContextMenuSubContent = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1429
1507
  ContextMenuPrimitive.SubContent,
1430
1508
  {
1431
1509
  ref,
@@ -1435,9 +1513,9 @@ var ContextMenuSubContent = React12.forwardRef(({ className, ...props }, ref) =>
1435
1513
  }
1436
1514
  ));
1437
1515
  ContextMenuSubContent.displayName = ContextMenuPrimitive.SubContent.displayName;
1438
- var ContextMenuContent = React12.forwardRef(({ className, container, ...props }, ref) => {
1516
+ var ContextMenuContent = React13.forwardRef(({ className, container, ...props }, ref) => {
1439
1517
  const portalContainer = usePortalContainer(container);
1440
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ContextMenuPrimitive.Portal, { container: portalContainer, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1518
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(ContextMenuPrimitive.Portal, { container: portalContainer, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1441
1519
  ContextMenuPrimitive.Content,
1442
1520
  {
1443
1521
  ref,
@@ -1448,7 +1526,7 @@ var ContextMenuContent = React12.forwardRef(({ className, container, ...props },
1448
1526
  ) });
1449
1527
  });
1450
1528
  ContextMenuContent.displayName = ContextMenuPrimitive.Content.displayName;
1451
- var ContextMenuItem = React12.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1529
+ var ContextMenuItem = React13.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1452
1530
  ContextMenuPrimitive.Item,
1453
1531
  {
1454
1532
  ref,
@@ -1463,7 +1541,7 @@ var ContextMenuItem = React12.forwardRef(({ className, inset, ...props }, ref) =
1463
1541
  }
1464
1542
  ));
1465
1543
  ContextMenuItem.displayName = ContextMenuPrimitive.Item.displayName;
1466
- var ContextMenuCheckboxItem = React12.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
1544
+ var ContextMenuCheckboxItem = React13.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
1467
1545
  ContextMenuPrimitive.CheckboxItem,
1468
1546
  {
1469
1547
  ref,
@@ -1471,13 +1549,13 @@ var ContextMenuCheckboxItem = React12.forwardRef(({ className, children, ...prop
1471
1549
  className: cn(INDICATOR_ITEM_CLASS, className),
1472
1550
  ...props,
1473
1551
  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" }) }) }),
1552
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(CheckIcon, { className: "h-4 w-4" }) }) }),
1475
1553
  children
1476
1554
  ]
1477
1555
  }
1478
1556
  ));
1479
1557
  ContextMenuCheckboxItem.displayName = ContextMenuPrimitive.CheckboxItem.displayName;
1480
- var ContextMenuRadioItem = React12.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
1558
+ var ContextMenuRadioItem = React13.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
1481
1559
  ContextMenuPrimitive.RadioItem,
1482
1560
  {
1483
1561
  ref,
@@ -1485,13 +1563,13 @@ var ContextMenuRadioItem = React12.forwardRef(({ className, children, ...props }
1485
1563
  className: cn(INDICATOR_ITEM_CLASS, className),
1486
1564
  ...props,
1487
1565
  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" }) }) }),
1566
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(DotFilledIcon, { className: "h-4 w-4 fill-current" }) }) }),
1489
1567
  children
1490
1568
  ]
1491
1569
  }
1492
1570
  ));
1493
1571
  ContextMenuRadioItem.displayName = ContextMenuPrimitive.RadioItem.displayName;
1494
- var ContextMenuLabel = React12.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1572
+ var ContextMenuLabel = React13.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1495
1573
  ContextMenuPrimitive.Label,
1496
1574
  {
1497
1575
  ref,
@@ -1505,7 +1583,7 @@ var ContextMenuLabel = React12.forwardRef(({ className, inset, ...props }, ref)
1505
1583
  }
1506
1584
  ));
1507
1585
  ContextMenuLabel.displayName = ContextMenuPrimitive.Label.displayName;
1508
- var ContextMenuSeparator = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1586
+ var ContextMenuSeparator = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1509
1587
  ContextMenuPrimitive.Separator,
1510
1588
  {
1511
1589
  ref,
@@ -1518,7 +1596,7 @@ ContextMenuSeparator.displayName = ContextMenuPrimitive.Separator.displayName;
1518
1596
  var ContextMenuShortcut = ({
1519
1597
  className,
1520
1598
  ...props
1521
- }) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1599
+ }) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1522
1600
  "span",
1523
1601
  {
1524
1602
  "data-slot": "context-menu-shortcut",
@@ -1533,15 +1611,15 @@ var import_react = require("react");
1533
1611
 
1534
1612
  // src/popover.tsx
1535
1613
  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");
1614
+ var React14 = __toESM(require("react"), 1);
1615
+ var import_jsx_runtime16 = require("react/jsx-runtime");
1538
1616
  var Popover = PopoverPrimitive.Root;
1539
1617
  var PopoverTrigger = PopoverPrimitive.Trigger;
1540
1618
  var PopoverAnchor = PopoverPrimitive.Anchor;
1541
- var PopoverContent = React13.forwardRef(
1619
+ var PopoverContent = React14.forwardRef(
1542
1620
  ({ className, align = "center", sideOffset = 4, container, ...props }, ref) => {
1543
1621
  const portalContainer = usePortalContainer(container);
1544
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(PopoverPrimitive.Portal, { container: portalContainer, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1622
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(PopoverPrimitive.Portal, { container: portalContainer, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1545
1623
  PopoverPrimitive.Content,
1546
1624
  {
1547
1625
  ref,
@@ -1565,7 +1643,7 @@ var PopoverContent = React13.forwardRef(
1565
1643
  PopoverContent.displayName = PopoverPrimitive.Content.displayName;
1566
1644
 
1567
1645
  // src/creatable-picker.tsx
1568
- var import_jsx_runtime16 = require("react/jsx-runtime");
1646
+ var import_jsx_runtime17 = require("react/jsx-runtime");
1569
1647
  function article(noun) {
1570
1648
  return /^[aeiou]/i.test(noun.trim()) ? `an ${noun}` : `a ${noun}`;
1571
1649
  }
@@ -1640,8 +1718,8 @@ function CreatablePicker({
1640
1718
  setBusy(false);
1641
1719
  }
1642
1720
  };
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)(
1721
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(Popover, { open, onOpenChange: (next) => next ? setOpen(true) : close(), children: [
1722
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(PopoverTrigger, { asChild: true, disabled, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
1645
1723
  "button",
1646
1724
  {
1647
1725
  type: "button",
@@ -1655,12 +1733,12 @@ function CreatablePicker({
1655
1733
  triggerClassName
1656
1734
  ),
1657
1735
  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" })
1736
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "min-w-0 flex-1 truncate", children: selected ? renderSelected ?? selected.render ?? selected.label : /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "text-muted-foreground", children: loading ? "Loading\u2026" : placeholder }) }),
1737
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(ChevronsUpDownIcon, { className: "size-3.5 shrink-0 opacity-50" })
1660
1738
  ]
1661
1739
  }
1662
1740
  ) }),
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)(
1741
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(PopoverContent, { align: "start", className: "w-[--radix-popover-trigger-width] min-w-56 p-0", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
1664
1742
  Command,
1665
1743
  {
1666
1744
  filter: (itemValue, search, keywords) => {
@@ -1668,7 +1746,7 @@ function CreatablePicker({
1668
1746
  return haystack.includes(search.toLowerCase()) ? 1 : 0;
1669
1747
  },
1670
1748
  children: [
1671
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1749
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1672
1750
  CommandInput,
1673
1751
  {
1674
1752
  ref: inputRef,
@@ -1680,13 +1758,13 @@ function CreatablePicker({
1680
1758
  placeholder: searchPlaceholder ?? `Search or add ${article(noun)}\u2026`
1681
1759
  }
1682
1760
  ),
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)(
1761
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(CommandList, { children: [
1762
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(CommandEmpty, { children: emptyLabel }),
1763
+ groups.map((group) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1686
1764
  CommandGroup,
1687
1765
  {
1688
1766
  ...group.heading === void 0 ? {} : { heading: group.heading },
1689
- children: group.options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
1767
+ children: group.options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
1690
1768
  CommandItem,
1691
1769
  {
1692
1770
  value: option.label,
@@ -1697,7 +1775,7 @@ function CreatablePicker({
1697
1775
  },
1698
1776
  className: "gap-2 text-xs",
1699
1777
  children: [
1700
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1778
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1701
1779
  LucideCheckIcon,
1702
1780
  {
1703
1781
  className: cn(
@@ -1706,8 +1784,8 @@ function CreatablePicker({
1706
1784
  )
1707
1785
  }
1708
1786
  ),
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
1787
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "min-w-0 flex-1 truncate", children: option.render ?? option.label }),
1788
+ option.hint ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "shrink-0 text-[10px] text-muted-foreground", children: option.hint }) : null
1711
1789
  ]
1712
1790
  },
1713
1791
  option.value
@@ -1716,9 +1794,9 @@ function CreatablePicker({
1716
1794
  group.heading ?? "__ungrouped__"
1717
1795
  ))
1718
1796
  ] }),
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)(
1797
+ canCreate ? /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "space-y-1 border-t border-border p-1", children: [
1798
+ createExtra && typed && !exactMatch ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "px-1 pt-0.5", children: typeof createExtra === "function" ? createExtra(typed) : createExtra }) : null,
1799
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
1722
1800
  "button",
1723
1801
  {
1724
1802
  type: "button",
@@ -1726,22 +1804,22 @@ function CreatablePicker({
1726
1804
  onClick: () => void create(typed),
1727
1805
  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
1806
  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` })
1807
+ busy ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Loader2Icon, { className: "size-3.5 shrink-0 animate-spin" }) : /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(PlusIcon, { className: "size-3.5 shrink-0" }),
1808
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "min-w-0 truncate", children: typed && !exactMatch ? `Create \u201C${typed}\u201D` : `Add ${article(noun)}\u2026` })
1731
1809
  ]
1732
1810
  }
1733
1811
  ),
1734
- needsName ? /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("p", { className: "px-2 pb-0.5 text-[11px] leading-snug text-muted-foreground", children: [
1812
+ needsName ? /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("p", { className: "px-2 pb-0.5 text-[11px] leading-snug text-muted-foreground", children: [
1735
1813
  "Type the name of the ",
1736
1814
  noun,
1737
1815
  " you want to add \u2014 then this creates it."
1738
1816
  ] }) : null
1739
1817
  ] }) : null,
1740
- footerActions?.length || manageAction ? /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "space-y-0.5 border-t border-border p-1", children: [
1818
+ footerActions?.length || manageAction ? /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "space-y-0.5 border-t border-border p-1", children: [
1741
1819
  footerActions?.map((action) => {
1742
1820
  const Icon2 = action.icon;
1743
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { children: [
1744
- /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
1821
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { children: [
1822
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
1745
1823
  "button",
1746
1824
  {
1747
1825
  type: "button",
@@ -1751,15 +1829,15 @@ function CreatablePicker({
1751
1829
  },
1752
1830
  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
1831
  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 })
1832
+ Icon2 ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Icon2, { className: "size-3.5 shrink-0" }) : null,
1833
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "min-w-0 truncate", children: action.label })
1756
1834
  ]
1757
1835
  }
1758
1836
  ),
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
1837
+ action.note ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("p", { className: "px-2 pb-1 text-[10px] leading-snug text-muted-foreground", children: action.note }) : null
1760
1838
  ] }, action.label);
1761
1839
  }),
1762
- manageAction ? /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
1840
+ manageAction ? /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
1763
1841
  "a",
1764
1842
  {
1765
1843
  href: manageAction.href,
@@ -1768,18 +1846,18 @@ function CreatablePicker({
1768
1846
  onClick: close,
1769
1847
  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
1848
  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 })
1849
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(ExternalLinkIcon, { className: "size-3.5 shrink-0" }),
1850
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "min-w-0 truncate", children: manageAction.label })
1773
1851
  ]
1774
1852
  }
1775
1853
  ) : null
1776
1854
  ] }) : 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 })
1855
+ lockedNote ? /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "space-y-1 border-t border-border p-2", children: [
1856
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("p", { className: "flex gap-1.5 text-[11px] leading-snug text-muted-foreground", children: [
1857
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(LockIcon, { className: "mt-px size-3 shrink-0" }),
1858
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { children: lockedNote })
1781
1859
  ] }),
1782
- lockedAction ? /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
1860
+ lockedAction ? /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
1783
1861
  "button",
1784
1862
  {
1785
1863
  type: "button",
@@ -1789,8 +1867,8 @@ function CreatablePicker({
1789
1867
  },
1790
1868
  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
1869
  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 })
1870
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(PlusIcon, { className: "size-3.5 shrink-0" }),
1871
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "min-w-0 truncate", children: lockedAction.label })
1794
1872
  ]
1795
1873
  }
1796
1874
  ) : null
@@ -1805,14 +1883,14 @@ function CreatablePicker({
1805
1883
  var DialogPrimitive2 = __toESM(require("@radix-ui/react-dialog"), 1);
1806
1884
  var VisuallyHidden2 = __toESM(require("@radix-ui/react-visually-hidden"), 1);
1807
1885
  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");
1886
+ var React15 = __toESM(require("react"), 1);
1887
+ var import_jsx_runtime18 = require("react/jsx-runtime");
1810
1888
  var Dialog = ({
1811
1889
  children,
1812
1890
  ...props
1813
1891
  }) => {
1814
1892
  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 }) });
1893
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(RadixDialogModalProvider, { modal, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(DialogPrimitive2.Root, { ...props, modal, children }) });
1816
1894
  };
1817
1895
  Dialog.displayName = "Dialog";
1818
1896
  var DialogTrigger = DialogPrimitive2.Trigger;
@@ -1822,12 +1900,12 @@ var DialogPortal = ({
1822
1900
  ...props
1823
1901
  }) => {
1824
1902
  const resolved = usePortalContainer(container);
1825
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(DialogPrimitive2.Portal, { container: resolved ?? null, ...props });
1903
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(DialogPrimitive2.Portal, { container: resolved ?? null, ...props });
1826
1904
  };
1827
1905
  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)(
1906
+ var DialogContainerContext = React15.createContext(null);
1907
+ var useDialogContainer = () => React15.useContext(DialogContainerContext);
1908
+ var DialogOverlay = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1831
1909
  DialogPrimitive2.Overlay,
1832
1910
  {
1833
1911
  ref,
@@ -1842,9 +1920,9 @@ var DialogOverlay = React14.forwardRef(({ className, ...props }, ref) => /* @__P
1842
1920
  }
1843
1921
  ));
1844
1922
  DialogOverlay.displayName = DialogPrimitive2.Overlay.displayName;
1845
- var DialogContentPrimitive = React14.forwardRef((props, ref) => {
1923
+ var DialogContentPrimitive = React15.forwardRef((props, ref) => {
1846
1924
  const isModal = useRadixDialogModal();
1847
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1925
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1848
1926
  DialogPrimitive2.Content,
1849
1927
  {
1850
1928
  ...props,
@@ -1857,7 +1935,7 @@ DialogContentPrimitive.displayName = "DialogContentPrimitive";
1857
1935
  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
1936
  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
1937
  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(
1938
+ var DialogContent = React15.forwardRef(
1861
1939
  ({
1862
1940
  className,
1863
1941
  children,
@@ -1870,10 +1948,10 @@ var DialogContent = React14.forwardRef(
1870
1948
  const isModal = useRadixDialogModal();
1871
1949
  const injectedContainer = usePortalContainer(container);
1872
1950
  const asSheet = mobileSheet && isMobile;
1873
- const [containerEl, setContainerEl] = React14.useState(
1951
+ const [containerEl, setContainerEl] = React15.useState(
1874
1952
  null
1875
1953
  );
1876
- const mergedRef = React14.useCallback(
1954
+ const mergedRef = React15.useCallback(
1877
1955
  (node) => {
1878
1956
  setContainerEl(node);
1879
1957
  if (typeof ref === "function") ref(node);
@@ -1884,9 +1962,9 @@ var DialogContent = React14.forwardRef(
1884
1962
  );
1885
1963
  const hasTitle = (0, import_react_tree3.treeContainsComponent)(children, DialogTitle) || (0, import_react_tree3.treeContainsComponent)(children, DialogPrimitive2.Title);
1886
1964
  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)(
1965
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(DialogPortal, { container, children: [
1966
+ isModal ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(DialogOverlay, {}) : null,
1967
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
1890
1968
  DialogContentPrimitive,
1891
1969
  {
1892
1970
  ref: mergedRef,
@@ -1904,23 +1982,23 @@ var DialogContent = React14.forwardRef(
1904
1982
  ...hasDescription ? {} : { "aria-describedby": void 0 },
1905
1983
  ...props,
1906
1984
  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)(
1985
+ hasTitle ? null : /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(VisuallyHidden2.Root, { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(DialogPrimitive2.Title, { children: "Dialog" }) }),
1986
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(DialogContainerContext.Provider, { value: containerEl, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1909
1987
  PortalContainerProvider,
1910
1988
  {
1911
1989
  container: containerEl ?? injectedContainer ?? null,
1912
1990
  children
1913
1991
  }
1914
1992
  ) }),
1915
- showCloseButton ? /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
1993
+ showCloseButton ? /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
1916
1994
  DialogPrimitive2.Close,
1917
1995
  {
1918
1996
  "data-slot": "dialog-close",
1919
1997
  "aria-label": "Close",
1920
1998
  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
1999
  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" })
2000
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(XIcon, { className: "h-4 w-4" }),
2001
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "sr-only", children: "Close" })
1924
2002
  ]
1925
2003
  }
1926
2004
  ) : null
@@ -1934,7 +2012,7 @@ DialogContent.displayName = DialogPrimitive2.Content.displayName;
1934
2012
  var DialogHeader = ({
1935
2013
  className,
1936
2014
  ...props
1937
- }) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2015
+ }) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1938
2016
  "div",
1939
2017
  {
1940
2018
  "data-slot": "dialog-header",
@@ -1951,7 +2029,7 @@ DialogHeader.displayName = "DialogHeader";
1951
2029
  var DialogFooter = ({
1952
2030
  className,
1953
2031
  ...props
1954
- }) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2032
+ }) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1955
2033
  "div",
1956
2034
  {
1957
2035
  "data-slot": "dialog-footer",
@@ -1965,7 +2043,7 @@ var DialogFooter = ({
1965
2043
  }
1966
2044
  );
1967
2045
  DialogFooter.displayName = "DialogFooter";
1968
- var DialogTitle = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2046
+ var DialogTitle = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1969
2047
  DialogPrimitive2.Title,
1970
2048
  {
1971
2049
  ref,
@@ -1975,7 +2053,7 @@ var DialogTitle = React14.forwardRef(({ className, ...props }, ref) => /* @__PUR
1975
2053
  }
1976
2054
  ));
1977
2055
  DialogTitle.displayName = DialogPrimitive2.Title.displayName;
1978
- var DialogDescription = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2056
+ var DialogDescription = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1979
2057
  DialogPrimitive2.Description,
1980
2058
  {
1981
2059
  ref,
@@ -1988,8 +2066,8 @@ DialogDescription.displayName = DialogPrimitive2.Description.displayName;
1988
2066
 
1989
2067
  // src/dropdown-menu.tsx
1990
2068
  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");
2069
+ var React16 = __toESM(require("react"), 1);
2070
+ var import_jsx_runtime19 = require("react/jsx-runtime");
1993
2071
  var DropdownMenu = DropdownMenuPrimitive.Root;
1994
2072
  var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
1995
2073
  var DropdownMenuGroup = DropdownMenuPrimitive.Group;
@@ -2000,7 +2078,7 @@ var MENU_SURFACE_CLASS = "z-[10001] min-w-[8rem] max-h-[var(--radix-dropdown-men
2000
2078
  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
2079
  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
2080
  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)(
2081
+ var DropdownMenuSubTrigger = React16.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
2004
2082
  DropdownMenuPrimitive.SubTrigger,
2005
2083
  {
2006
2084
  ref,
@@ -2013,12 +2091,12 @@ var DropdownMenuSubTrigger = React15.forwardRef(({ className, inset, children, .
2013
2091
  ...props,
2014
2092
  children: [
2015
2093
  children,
2016
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(RadixChevronRightIcon, { className: "ml-auto h-4 w-4" })
2094
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(RadixChevronRightIcon, { className: "ml-auto h-4 w-4" })
2017
2095
  ]
2018
2096
  }
2019
2097
  ));
2020
2098
  DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
2021
- var DropdownMenuSubContent = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
2099
+ var DropdownMenuSubContent = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2022
2100
  DropdownMenuPrimitive.SubContent,
2023
2101
  {
2024
2102
  ref,
@@ -2028,9 +2106,9 @@ var DropdownMenuSubContent = React15.forwardRef(({ className, ...props }, ref) =
2028
2106
  }
2029
2107
  ));
2030
2108
  DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
2031
- var DropdownMenuContent = React15.forwardRef(({ className, sideOffset = 4, container, ...props }, ref) => {
2109
+ var DropdownMenuContent = React16.forwardRef(({ className, sideOffset = 4, container, ...props }, ref) => {
2032
2110
  const portalContainer = usePortalContainer(container);
2033
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(DropdownMenuPrimitive.Portal, { container: portalContainer, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
2111
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(DropdownMenuPrimitive.Portal, { container: portalContainer, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2034
2112
  DropdownMenuPrimitive.Content,
2035
2113
  {
2036
2114
  ref,
@@ -2047,7 +2125,7 @@ var DropdownMenuContent = React15.forwardRef(({ className, sideOffset = 4, conta
2047
2125
  ) });
2048
2126
  });
2049
2127
  DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
2050
- var DropdownMenuItem = React15.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
2128
+ var DropdownMenuItem = React16.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2051
2129
  DropdownMenuPrimitive.Item,
2052
2130
  {
2053
2131
  ref,
@@ -2057,7 +2135,7 @@ var DropdownMenuItem = React15.forwardRef(({ className, inset, ...props }, ref)
2057
2135
  }
2058
2136
  ));
2059
2137
  DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
2060
- var DropdownMenuCheckboxItem = React15.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
2138
+ var DropdownMenuCheckboxItem = React16.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
2061
2139
  DropdownMenuPrimitive.CheckboxItem,
2062
2140
  {
2063
2141
  ref,
@@ -2065,13 +2143,13 @@ var DropdownMenuCheckboxItem = React15.forwardRef(({ className, children, ...pro
2065
2143
  className: cn(MENU_INDICATOR_ITEM_CLASS, className),
2066
2144
  ...props,
2067
2145
  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" }) }) }),
2146
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(CheckIcon, { className: "h-4 w-4" }) }) }),
2069
2147
  children
2070
2148
  ]
2071
2149
  }
2072
2150
  ));
2073
2151
  DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
2074
- var DropdownMenuRadioItem = React15.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
2152
+ var DropdownMenuRadioItem = React16.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
2075
2153
  DropdownMenuPrimitive.RadioItem,
2076
2154
  {
2077
2155
  ref,
@@ -2079,13 +2157,13 @@ var DropdownMenuRadioItem = React15.forwardRef(({ className, children, ...props
2079
2157
  className: cn(MENU_INDICATOR_ITEM_CLASS, className),
2080
2158
  ...props,
2081
2159
  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" }) }) }),
2160
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(DotFilledIcon, { className: "h-4 w-4 fill-current" }) }) }),
2083
2161
  children
2084
2162
  ]
2085
2163
  }
2086
2164
  ));
2087
2165
  DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
2088
- var DropdownMenuLabel = React15.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
2166
+ var DropdownMenuLabel = React16.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2089
2167
  DropdownMenuPrimitive.Label,
2090
2168
  {
2091
2169
  ref,
@@ -2095,7 +2173,7 @@ var DropdownMenuLabel = React15.forwardRef(({ className, inset, ...props }, ref)
2095
2173
  }
2096
2174
  ));
2097
2175
  DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
2098
- var DropdownMenuSeparator = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
2176
+ var DropdownMenuSeparator = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2099
2177
  DropdownMenuPrimitive.Separator,
2100
2178
  {
2101
2179
  ref,
@@ -2108,7 +2186,7 @@ DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
2108
2186
  var DropdownMenuShortcut = ({
2109
2187
  className,
2110
2188
  ...props
2111
- }) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
2189
+ }) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2112
2190
  "span",
2113
2191
  {
2114
2192
  "data-slot": "dropdown-menu-shortcut",
@@ -2120,7 +2198,7 @@ DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
2120
2198
 
2121
2199
  // src/editable-label.tsx
2122
2200
  var import_react2 = require("react");
2123
- var import_jsx_runtime19 = require("react/jsx-runtime");
2201
+ var import_jsx_runtime20 = require("react/jsx-runtime");
2124
2202
  function EditableLabel({
2125
2203
  value,
2126
2204
  onCommit,
@@ -2227,8 +2305,8 @@ function EditableLabel({
2227
2305
  setEditing
2228
2306
  ]);
2229
2307
  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)(
2308
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("span", { className: cn("relative flex min-w-0 flex-1 items-center", className), children: [
2309
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2232
2310
  "input",
2233
2311
  {
2234
2312
  ref: inputRef,
@@ -2268,12 +2346,12 @@ function EditableLabel({
2268
2346
  )
2269
2347
  }
2270
2348
  ),
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 })
2349
+ busy && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Loader2Icon, { className: "absolute right-1 h-3.5 w-3.5 animate-spin text-muted-foreground" }),
2350
+ error && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "absolute left-0 top-full mt-0.5 whitespace-nowrap text-xs text-destructive", children: error })
2273
2351
  ] });
2274
2352
  }
2275
2353
  if (controlled) return null;
2276
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2354
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2277
2355
  "button",
2278
2356
  {
2279
2357
  type: "button",
@@ -2307,8 +2385,8 @@ function EditableLabel({
2307
2385
  }
2308
2386
 
2309
2387
  // src/input.tsx
2310
- var React16 = __toESM(require("react"), 1);
2311
- var import_jsx_runtime20 = require("react/jsx-runtime");
2388
+ var React17 = __toESM(require("react"), 1);
2389
+ var import_jsx_runtime21 = require("react/jsx-runtime");
2312
2390
  var getVariantStyles = (variant = "default") => {
2313
2391
  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
2392
  file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground
@@ -2336,9 +2414,9 @@ var getVariantStyles = (variant = "default") => {
2336
2414
  return baseStyles;
2337
2415
  }
2338
2416
  };
2339
- var Input = React16.forwardRef(
2417
+ var Input = React17.forwardRef(
2340
2418
  ({ className, type, variant = "default", ...props }, ref) => {
2341
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2419
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2342
2420
  "input",
2343
2421
  {
2344
2422
  type,
@@ -2350,7 +2428,7 @@ var Input = React16.forwardRef(
2350
2428
  }
2351
2429
  );
2352
2430
  Input.displayName = "Input";
2353
- var EnterInput = React16.forwardRef(
2431
+ var EnterInput = React17.forwardRef(
2354
2432
  ({ onEnter, ...props }, ref) => {
2355
2433
  const handleKeyDown = (e) => {
2356
2434
  if (e.key === "Enter" && onEnter) {
@@ -2358,7 +2436,7 @@ var EnterInput = React16.forwardRef(
2358
2436
  onEnter();
2359
2437
  }
2360
2438
  };
2361
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2439
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2362
2440
  Input,
2363
2441
  {
2364
2442
  ...props,
@@ -2374,11 +2452,11 @@ var EnterInput = React16.forwardRef(
2374
2452
  }
2375
2453
  );
2376
2454
  EnterInput.displayName = "EnterInput";
2377
- var BasicInput = React16.forwardRef(
2455
+ var BasicInput = React17.forwardRef(
2378
2456
  // `variant` is accepted (prop-compatible with Input) but intentionally
2379
2457
  // unused — and destructured so it never leaks onto the DOM element.
2380
2458
  ({ className, type, variant: _variant = "default", ...props }, ref) => {
2381
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2459
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2382
2460
  "input",
2383
2461
  {
2384
2462
  type,
@@ -2393,10 +2471,10 @@ var BasicInput = React16.forwardRef(
2393
2471
  }
2394
2472
  );
2395
2473
  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)(
2474
+ var InputWithPrefix = React17.forwardRef(({ prefix, className, wrapperClassName, ...props }, ref) => {
2475
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: cn("relative", wrapperClassName), children: [
2476
+ prefix && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground", children: prefix }),
2477
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2400
2478
  Input,
2401
2479
  {
2402
2480
  ref,
@@ -2410,9 +2488,9 @@ InputWithPrefix.displayName = "InputWithPrefix";
2410
2488
 
2411
2489
  // src/label.tsx
2412
2490
  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)(
2491
+ var React18 = __toESM(require("react"), 1);
2492
+ var import_jsx_runtime22 = require("react/jsx-runtime");
2493
+ var Label3 = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2416
2494
  LabelPrimitive.Root,
2417
2495
  {
2418
2496
  ref,
@@ -2427,7 +2505,7 @@ Label3.displayName = LabelPrimitive.Root.displayName;
2427
2505
 
2428
2506
  // src/overflow-toolbar.tsx
2429
2507
  var import_react3 = require("react");
2430
- var import_jsx_runtime22 = require("react/jsx-runtime");
2508
+ var import_jsx_runtime23 = require("react/jsx-runtime");
2431
2509
  var GAP_PX = 6;
2432
2510
  var TONE = {
2433
2511
  default: "border border-border bg-background hover:bg-accent text-foreground",
@@ -2449,16 +2527,16 @@ function ToolbarButton({
2449
2527
  action.hideLabel && !action.running ? "w-7 justify-center px-0" : "px-2",
2450
2528
  TONE[tone]
2451
2529
  );
2452
- const inner = /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_jsx_runtime22.Fragment, { children: [
2453
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2530
+ const inner = /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_jsx_runtime23.Fragment, { children: [
2531
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2454
2532
  Icon2,
2455
2533
  {
2456
2534
  className: cn("w-3.5 h-3.5 shrink-0", action.running && "animate-spin")
2457
2535
  }
2458
2536
  ),
2459
- showLabel && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { children: text })
2537
+ showLabel && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { children: text })
2460
2538
  ] });
2461
- const control = action.href && !action.disabled ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2539
+ const control = action.href && !action.disabled ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2462
2540
  "a",
2463
2541
  {
2464
2542
  href: action.href,
@@ -2468,7 +2546,7 @@ function ToolbarButton({
2468
2546
  "aria-label": action.label,
2469
2547
  children: inner
2470
2548
  }
2471
- ) : /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2549
+ ) : /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2472
2550
  "button",
2473
2551
  {
2474
2552
  type: "button",
@@ -2480,12 +2558,12 @@ function ToolbarButton({
2480
2558
  }
2481
2559
  );
2482
2560
  if (enableTooltip && action.hideLabel && renderTooltip) {
2483
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_jsx_runtime22.Fragment, { children: renderTooltip(control, action.label) });
2561
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_jsx_runtime23.Fragment, { children: renderTooltip(control, action.label) });
2484
2562
  }
2485
2563
  return control;
2486
2564
  }
2487
2565
  function OverflowTrigger({ ariaLabel }) {
2488
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2566
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2489
2567
  "button",
2490
2568
  {
2491
2569
  type: "button",
@@ -2496,7 +2574,7 @@ function OverflowTrigger({ ariaLabel }) {
2496
2574
  "inline-flex items-center justify-center h-7 w-7 rounded-md transition-colors",
2497
2575
  "border border-border bg-background hover:bg-accent text-foreground"
2498
2576
  ),
2499
- children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(MoreHorizontalIcon, { className: "w-3.5 h-3.5" })
2577
+ children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(MoreHorizontalIcon, { className: "w-3.5 h-3.5" })
2500
2578
  }
2501
2579
  );
2502
2580
  }
@@ -2556,22 +2634,22 @@ function OverflowToolbar({
2556
2634
  }, [signature, leading != null]);
2557
2635
  const shown = visibleActions.slice(0, visibleCount);
2558
2636
  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)(
2637
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { ref: containerRef, className: cn("relative min-w-0", className), children: [
2638
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
2561
2639
  "div",
2562
2640
  {
2563
2641
  ref: ghostRef,
2564
2642
  "aria-hidden": true,
2565
2643
  className: "pointer-events-none absolute left-0 top-0 flex items-center gap-1.5 opacity-0",
2566
2644
  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 })
2645
+ visibleActions.map((a) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(ToolbarButton, { action: a }, a.id)),
2646
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(OverflowTrigger, { ariaLabel: overflowAriaLabel })
2569
2647
  ]
2570
2648
  }
2571
2649
  ),
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)(
2650
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "flex items-center justify-end gap-1.5", children: [
2651
+ leading != null && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { ref: leadingRef, className: "shrink-0", children: leading }),
2652
+ shown.map((a) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2575
2653
  ToolbarButton,
2576
2654
  {
2577
2655
  action: a,
@@ -2582,7 +2660,7 @@ function OverflowToolbar({
2582
2660
  )),
2583
2661
  hidden.length > 0 && renderOverflowMenu({
2584
2662
  actions: hidden,
2585
- trigger: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(OverflowTrigger, { ariaLabel: overflowAriaLabel })
2663
+ trigger: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(OverflowTrigger, { ariaLabel: overflowAriaLabel })
2586
2664
  })
2587
2665
  ] })
2588
2666
  ] });
@@ -2590,20 +2668,20 @@ function OverflowToolbar({
2590
2668
 
2591
2669
  // src/progress.tsx
2592
2670
  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");
2671
+ var React20 = __toESM(require("react"), 1);
2672
+ var import_jsx_runtime24 = require("react/jsx-runtime");
2595
2673
  var PROGRESS_TONES = {
2596
2674
  default: "bg-primary",
2597
2675
  success: "bg-success",
2598
2676
  warning: "bg-warning",
2599
2677
  destructive: "bg-destructive"
2600
2678
  };
2601
- var Progress = React19.forwardRef(({ className, tone = "default", indicatorClassName, ...props }, ref) => {
2679
+ var Progress = React20.forwardRef(({ className, tone = "default", indicatorClassName, ...props }, ref) => {
2602
2680
  const { value, max } = props;
2603
2681
  const ceiling = max ?? 100;
2604
2682
  const isIndeterminate = value === null || value === void 0;
2605
2683
  const pct = isIndeterminate ? 0 : Math.min(100, Math.max(0, value / ceiling * 100));
2606
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2684
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2607
2685
  ProgressPrimitive.Root,
2608
2686
  {
2609
2687
  ref,
@@ -2613,7 +2691,7 @@ var Progress = React19.forwardRef(({ className, tone = "default", indicatorClass
2613
2691
  className
2614
2692
  ),
2615
2693
  ...props,
2616
- children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2694
+ children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2617
2695
  ProgressPrimitive.Indicator,
2618
2696
  {
2619
2697
  "data-slot": "progress-indicator",
@@ -2633,9 +2711,9 @@ Progress.displayName = ProgressPrimitive.Root.displayName;
2633
2711
 
2634
2712
  // src/scroll-area.tsx
2635
2713
  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(
2714
+ var React21 = __toESM(require("react"), 1);
2715
+ var import_jsx_runtime25 = require("react/jsx-runtime");
2716
+ var ScrollArea = React21.forwardRef(
2639
2717
  ({
2640
2718
  className,
2641
2719
  children,
@@ -2644,7 +2722,7 @@ var ScrollArea = React20.forwardRef(
2644
2722
  scrollBarClassName,
2645
2723
  orientation = "vertical",
2646
2724
  ...props
2647
- }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
2725
+ }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
2648
2726
  ScrollAreaPrimitive.Root,
2649
2727
  {
2650
2728
  ref,
@@ -2652,7 +2730,7 @@ var ScrollArea = React20.forwardRef(
2652
2730
  className: cn("relative overflow-hidden", className),
2653
2731
  ...props,
2654
2732
  children: [
2655
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2733
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2656
2734
  ScrollAreaPrimitive.Viewport,
2657
2735
  {
2658
2736
  ref: viewportRef,
@@ -2661,14 +2739,14 @@ var ScrollArea = React20.forwardRef(
2661
2739
  children
2662
2740
  }
2663
2741
  ),
2664
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(ScrollBar, { orientation, className: scrollBarClassName }),
2665
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(ScrollAreaPrimitive.Corner, {})
2742
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(ScrollBar, { orientation, className: scrollBarClassName }),
2743
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(ScrollAreaPrimitive.Corner, {})
2666
2744
  ]
2667
2745
  }
2668
2746
  )
2669
2747
  );
2670
2748
  ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
2671
- var ScrollBar = React20.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2749
+ var ScrollBar = React21.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2672
2750
  ScrollAreaPrimitive.ScrollAreaScrollbar,
2673
2751
  {
2674
2752
  ref,
@@ -2681,7 +2759,7 @@ var ScrollBar = React20.forwardRef(({ className, orientation = "vertical", ...pr
2681
2759
  className
2682
2760
  ),
2683
2761
  ...props,
2684
- children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2762
+ children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2685
2763
  ScrollAreaPrimitive.ScrollAreaThumb,
2686
2764
  {
2687
2765
  "data-slot": "scroll-area-thumb",
@@ -2693,7 +2771,7 @@ var ScrollBar = React20.forwardRef(({ className, orientation = "vertical", ...pr
2693
2771
  ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
2694
2772
 
2695
2773
  // src/score-ring.tsx
2696
- var import_jsx_runtime25 = require("react/jsx-runtime");
2774
+ var import_jsx_runtime26 = require("react/jsx-runtime");
2697
2775
  var DEFAULT_SCORE_THRESHOLDS = {
2698
2776
  good: 75,
2699
2777
  warning: 50
@@ -2724,7 +2802,7 @@ function ScoreRing({
2724
2802
  const circumference = 2 * Math.PI * radius;
2725
2803
  const boundedPct = pct === null ? 0 : Math.max(0, Math.min(100, pct));
2726
2804
  const dashOffset = circumference * (1 - boundedPct / 100);
2727
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
2805
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
2728
2806
  "div",
2729
2807
  {
2730
2808
  className: cn(
@@ -2735,8 +2813,8 @@ function ScoreRing({
2735
2813
  role: "img",
2736
2814
  "aria-label": `${label ?? "Score"}: ${pct === null ? "not available" : `${pct} out of 100`}`,
2737
2815
  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)(
2816
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("svg", { viewBox: "0 0 100 100", className: "h-full w-full -rotate-90", children: [
2817
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2740
2818
  "circle",
2741
2819
  {
2742
2820
  cx: "50",
@@ -2747,7 +2825,7 @@ function ScoreRing({
2747
2825
  fill: "none"
2748
2826
  }
2749
2827
  ),
2750
- pct !== null ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2828
+ pct !== null ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2751
2829
  "circle",
2752
2830
  {
2753
2831
  cx: "50",
@@ -2766,8 +2844,8 @@ function ScoreRing({
2766
2844
  }
2767
2845
  ) : null
2768
2846
  ] }),
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)(
2847
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "absolute flex flex-col items-center justify-center", children: [
2848
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2771
2849
  "span",
2772
2850
  {
2773
2851
  className: cn(
@@ -2777,7 +2855,7 @@ function ScoreRing({
2777
2855
  children: pct === null ? "\u2014" : `${pct}${suffix}`
2778
2856
  }
2779
2857
  ),
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
2858
+ label ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "max-w-[74px] truncate text-[9px] font-semibold uppercase tracking-wide text-muted-foreground", children: label }) : null
2781
2859
  ] })
2782
2860
  ]
2783
2861
  }
@@ -2785,7 +2863,7 @@ function ScoreRing({
2785
2863
  }
2786
2864
 
2787
2865
  // src/segmented-control.tsx
2788
- var import_jsx_runtime26 = require("react/jsx-runtime");
2866
+ var import_jsx_runtime27 = require("react/jsx-runtime");
2789
2867
  function SegmentedControl({
2790
2868
  value,
2791
2869
  onValueChange,
@@ -2800,7 +2878,7 @@ function SegmentedControl({
2800
2878
  md: "h-9 text-sm",
2801
2879
  lg: "h-10 text-base"
2802
2880
  };
2803
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2881
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2804
2882
  "div",
2805
2883
  {
2806
2884
  className: cn(
@@ -2811,7 +2889,7 @@ function SegmentedControl({
2811
2889
  role: "tablist",
2812
2890
  children: data.map((option) => {
2813
2891
  const isActive = value === option.value;
2814
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2892
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2815
2893
  "button",
2816
2894
  {
2817
2895
  type: "button",
@@ -2838,8 +2916,8 @@ function SegmentedControl({
2838
2916
  // src/select.tsx
2839
2917
  var SelectPrimitive = __toESM(require("@radix-ui/react-select"), 1);
2840
2918
  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");
2919
+ var React22 = __toESM(require("react"), 1);
2920
+ var import_jsx_runtime28 = require("react/jsx-runtime");
2843
2921
  var Select = SelectPrimitive.Root;
2844
2922
  var SelectGroup = SelectPrimitive.Group;
2845
2923
  var SelectValue = SelectPrimitive.Value;
@@ -2858,7 +2936,7 @@ var selectTriggerVariants = (0, import_class_variance_authority4.cva)(
2858
2936
  }
2859
2937
  }
2860
2938
  );
2861
- var SelectTrigger = React21.forwardRef(({ className, children, hideArrow = false, size, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
2939
+ var SelectTrigger = React22.forwardRef(({ className, children, hideArrow = false, size, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
2862
2940
  SelectPrimitive.Trigger,
2863
2941
  {
2864
2942
  ref,
@@ -2866,12 +2944,12 @@ var SelectTrigger = React21.forwardRef(({ className, children, hideArrow = false
2866
2944
  ...props,
2867
2945
  children: [
2868
2946
  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" }) })
2947
+ !hideArrow && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(RadixChevronDownIcon, { className: "h-4 w-4 opacity-50" }) })
2870
2948
  ]
2871
2949
  }
2872
2950
  ));
2873
2951
  SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
2874
- var SelectScrollUpButton = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2952
+ var SelectScrollUpButton = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
2875
2953
  SelectPrimitive.ScrollUpButton,
2876
2954
  {
2877
2955
  ref,
@@ -2880,11 +2958,11 @@ var SelectScrollUpButton = React21.forwardRef(({ className, ...props }, ref) =>
2880
2958
  className
2881
2959
  ),
2882
2960
  ...props,
2883
- children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(RadixChevronUpIcon, {})
2961
+ children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(RadixChevronUpIcon, {})
2884
2962
  }
2885
2963
  ));
2886
2964
  SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
2887
- var SelectScrollDownButton = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2965
+ var SelectScrollDownButton = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
2888
2966
  SelectPrimitive.ScrollDownButton,
2889
2967
  {
2890
2968
  ref,
@@ -2893,13 +2971,13 @@ var SelectScrollDownButton = React21.forwardRef(({ className, ...props }, ref) =
2893
2971
  className
2894
2972
  ),
2895
2973
  ...props,
2896
- children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(RadixChevronDownIcon, {})
2974
+ children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(RadixChevronDownIcon, {})
2897
2975
  }
2898
2976
  ));
2899
2977
  SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
2900
- var SelectContent = React21.forwardRef(({ className, children, position = "popper", container, ...props }, ref) => {
2978
+ var SelectContent = React22.forwardRef(({ className, children, position = "popper", container, ...props }, ref) => {
2901
2979
  const portalContainer = usePortalContainer(container);
2902
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(SelectPrimitive.Portal, { container: portalContainer, children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
2980
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(SelectPrimitive.Portal, { container: portalContainer, children: /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
2903
2981
  SelectPrimitive.Content,
2904
2982
  {
2905
2983
  ref,
@@ -2911,8 +2989,8 @@ var SelectContent = React21.forwardRef(({ className, children, position = "poppe
2911
2989
  position,
2912
2990
  ...props,
2913
2991
  children: [
2914
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(SelectScrollUpButton, {}),
2915
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2992
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(SelectScrollUpButton, {}),
2993
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
2916
2994
  SelectPrimitive.Viewport,
2917
2995
  {
2918
2996
  className: cn(
@@ -2922,13 +3000,13 @@ var SelectContent = React21.forwardRef(({ className, children, position = "poppe
2922
3000
  children
2923
3001
  }
2924
3002
  ),
2925
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(SelectScrollDownButton, {})
3003
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(SelectScrollDownButton, {})
2926
3004
  ]
2927
3005
  }
2928
3006
  ) });
2929
3007
  });
2930
3008
  SelectContent.displayName = SelectPrimitive.Content.displayName;
2931
- var SelectLabel = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
3009
+ var SelectLabel = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
2932
3010
  SelectPrimitive.Label,
2933
3011
  {
2934
3012
  ref,
@@ -2937,7 +3015,7 @@ var SelectLabel = React21.forwardRef(({ className, ...props }, ref) => /* @__PUR
2937
3015
  }
2938
3016
  ));
2939
3017
  SelectLabel.displayName = SelectPrimitive.Label.displayName;
2940
- var SelectItem = React21.forwardRef(({ className, children, description, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
3018
+ var SelectItem = React22.forwardRef(({ className, children, description, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
2941
3019
  SelectPrimitive.Item,
2942
3020
  {
2943
3021
  ref,
@@ -2948,14 +3026,14 @@ var SelectItem = React21.forwardRef(({ className, children, description, ...prop
2948
3026
  ),
2949
3027
  ...props,
2950
3028
  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
3029
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(CheckIcon, { className: "h-4 w-4" }) }) }),
3030
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(SelectPrimitive.ItemText, { children }),
3031
+ description ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "block text-xs leading-snug text-muted-foreground", children: description }) : null
2954
3032
  ]
2955
3033
  }
2956
3034
  ));
2957
3035
  SelectItem.displayName = SelectPrimitive.Item.displayName;
2958
- var SelectSeparator = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
3036
+ var SelectSeparator = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
2959
3037
  SelectPrimitive.Separator,
2960
3038
  {
2961
3039
  ref,
@@ -2967,9 +3045,9 @@ SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
2967
3045
 
2968
3046
  // src/separator.tsx
2969
3047
  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)(
3048
+ var React23 = __toESM(require("react"), 1);
3049
+ var import_jsx_runtime29 = require("react/jsx-runtime");
3050
+ var Separator4 = React23.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
2973
3051
  SeparatorPrimitive.Root,
2974
3052
  {
2975
3053
  ref,
@@ -2989,11 +3067,11 @@ Separator4.displayName = SeparatorPrimitive.Root.displayName;
2989
3067
  var SheetPrimitive = __toESM(require("@radix-ui/react-dialog"), 1);
2990
3068
  var import_react_tree4 = require("@ai-matrx/kit/react-tree");
2991
3069
  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) => {
3070
+ var React24 = __toESM(require("react"), 1);
3071
+ var import_jsx_runtime30 = require("react/jsx-runtime");
3072
+ var SheetContentBase = React24.forwardRef(({ ...props }, ref) => {
2995
3073
  const isModal = useRadixDialogModal();
2996
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
3074
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2997
3075
  SheetPrimitive.Content,
2998
3076
  {
2999
3077
  ...props,
@@ -3003,15 +3081,15 @@ var SheetContentBase = React23.forwardRef(({ ...props }, ref) => {
3003
3081
  );
3004
3082
  });
3005
3083
  SheetContentBase.displayName = "SheetContentBase";
3006
- var Sheet = React23.forwardRef(({ children, ...props }, _ref) => {
3084
+ var Sheet = React24.forwardRef(({ children, ...props }, _ref) => {
3007
3085
  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 }) });
3086
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(RadixDialogModalProvider, { modal, children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(SheetPrimitive.Root, { ...props, modal, children }) });
3009
3087
  });
3010
3088
  Sheet.displayName = "Sheet";
3011
3089
  var SheetTrigger = SheetPrimitive.Trigger;
3012
3090
  var SheetClose = SheetPrimitive.Close;
3013
3091
  var SheetPortal = SheetPrimitive.Portal;
3014
- var SheetOverlay = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
3092
+ var SheetOverlay = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
3015
3093
  SheetPrimitive.Overlay,
3016
3094
  {
3017
3095
  className: cn(
@@ -3040,7 +3118,7 @@ var sheetVariants = (0, import_class_variance_authority5.cva)(
3040
3118
  }
3041
3119
  }
3042
3120
  );
3043
- var SheetDescription = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
3121
+ var SheetDescription = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
3044
3122
  SheetPrimitive.Description,
3045
3123
  {
3046
3124
  ref,
@@ -3049,7 +3127,7 @@ var SheetDescription = React23.forwardRef(({ className, ...props }, ref) => /* @
3049
3127
  }
3050
3128
  ));
3051
3129
  SheetDescription.displayName = SheetPrimitive.Description.displayName;
3052
- var SheetContent = React23.forwardRef(
3130
+ var SheetContent = React24.forwardRef(
3053
3131
  ({
3054
3132
  side = "right",
3055
3133
  className,
@@ -3060,9 +3138,9 @@ var SheetContent = React23.forwardRef(
3060
3138
  ...props
3061
3139
  }, ref) => {
3062
3140
  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)(
3141
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(SheetPortal, { children: [
3142
+ !hideOverlay && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(SheetOverlay, { className: overlayClassName }),
3143
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
3066
3144
  SheetContentBase,
3067
3145
  {
3068
3146
  ref,
@@ -3070,9 +3148,9 @@ var SheetContent = React23.forwardRef(
3070
3148
  ...hasDescription ? {} : { "aria-describedby": void 0 },
3071
3149
  ...props,
3072
3150
  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" })
3151
+ !hideCloseButton && /* @__PURE__ */ (0, import_jsx_runtime30.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: [
3152
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Cross2Icon, { className: "h-4 w-4" }),
3153
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "sr-only", children: "Close" })
3076
3154
  ] }),
3077
3155
  children
3078
3156
  ]
@@ -3085,7 +3163,7 @@ SheetContent.displayName = SheetPrimitive.Content.displayName;
3085
3163
  var SheetHeader = ({
3086
3164
  className,
3087
3165
  ...props
3088
- }) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
3166
+ }) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
3089
3167
  "div",
3090
3168
  {
3091
3169
  className: cn(
@@ -3099,7 +3177,7 @@ SheetHeader.displayName = "SheetHeader";
3099
3177
  var SheetFooter = ({
3100
3178
  className,
3101
3179
  ...props
3102
- }) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
3180
+ }) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
3103
3181
  "div",
3104
3182
  {
3105
3183
  className: cn(
@@ -3110,7 +3188,7 @@ var SheetFooter = ({
3110
3188
  }
3111
3189
  );
3112
3190
  SheetFooter.displayName = "SheetFooter";
3113
- var SheetTitle = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
3191
+ var SheetTitle = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
3114
3192
  SheetPrimitive.Title,
3115
3193
  {
3116
3194
  ref,
@@ -3121,12 +3199,12 @@ var SheetTitle = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE
3121
3199
  SheetTitle.displayName = SheetPrimitive.Title.displayName;
3122
3200
 
3123
3201
  // src/skeleton.tsx
3124
- var import_jsx_runtime30 = require("react/jsx-runtime");
3202
+ var import_jsx_runtime31 = require("react/jsx-runtime");
3125
3203
  function Skeleton({
3126
3204
  className,
3127
3205
  ...props
3128
3206
  }) {
3129
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
3207
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
3130
3208
  "div",
3131
3209
  {
3132
3210
  className: cn("animate-pulse rounded-md bg-primary/10", className),
@@ -3137,8 +3215,8 @@ function Skeleton({
3137
3215
 
3138
3216
  // src/switch.tsx
3139
3217
  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");
3218
+ var React25 = __toESM(require("react"), 1);
3219
+ var import_jsx_runtime32 = require("react/jsx-runtime");
3142
3220
  var SWITCH_SIZES = {
3143
3221
  sm: {
3144
3222
  root: "h-4 w-9 border-border data-[state=unchecked]:bg-input",
@@ -3149,7 +3227,7 @@ var SWITCH_SIZES = {
3149
3227
  thumb: "h-4 w-4 data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0"
3150
3228
  }
3151
3229
  };
3152
- var Switch = React24.forwardRef(({ className, size = "md", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
3230
+ var Switch = React25.forwardRef(({ className, size = "md", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
3153
3231
  SwitchPrimitives.Root,
3154
3232
  {
3155
3233
  ref,
@@ -3160,7 +3238,7 @@ var Switch = React24.forwardRef(({ className, size = "md", ...props }, ref) => /
3160
3238
  className
3161
3239
  ),
3162
3240
  ...props,
3163
- children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
3241
+ children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
3164
3242
  SwitchPrimitives.Thumb,
3165
3243
  {
3166
3244
  "data-slot": "switch-thumb",
@@ -3176,7 +3254,7 @@ Switch.displayName = SwitchPrimitives.Root.displayName;
3176
3254
 
3177
3255
  // src/tabbed-bottom-sheet.tsx
3178
3256
  var import_react4 = require("react");
3179
- var import_jsx_runtime32 = require("react/jsx-runtime");
3257
+ var import_jsx_runtime33 = require("react/jsx-runtime");
3180
3258
  function TabbedBottomSheet({
3181
3259
  open,
3182
3260
  onOpenChange,
@@ -3190,15 +3268,15 @@ function TabbedBottomSheet({
3190
3268
  if (open) setSelectedTabId(null);
3191
3269
  }
3192
3270
  const selectedTab = selectedTabId ? tabs.find((tab) => tab.id === selectedTabId) : null;
3193
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
3271
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
3194
3272
  BottomSheet,
3195
3273
  {
3196
3274
  open,
3197
3275
  onOpenChange,
3198
3276
  title,
3199
3277
  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)(
3278
+ children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "matrx-mobile-sheet flex min-h-0 flex-1 flex-col", children: [
3279
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
3202
3280
  BottomSheetHeader,
3203
3281
  {
3204
3282
  title: selectedTab ? selectedTab.label : title,
@@ -3206,19 +3284,19 @@ function TabbedBottomSheet({
3206
3284
  onBack: () => setSelectedTabId(null)
3207
3285
  }
3208
3286
  ),
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) => {
3287
+ selectedTab ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "flex min-h-0 flex-1 flex-col overflow-hidden pb-safe", children: selectedTab.content }) : /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(BottomSheetBody, { children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("ul", { className: "divide-y divide-border", children: tabs.map((tab) => {
3210
3288
  const Icon2 = tab.icon;
3211
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
3289
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
3212
3290
  "button",
3213
3291
  {
3214
3292
  type: "button",
3215
3293
  onClick: () => setSelectedTabId(tab.id),
3216
3294
  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
3295
  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 }),
3296
+ Icon2 ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Icon2, { className: "h-5 w-5 shrink-0 text-muted-foreground" }) : null,
3297
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "min-w-0 flex-1 text-base text-foreground", children: tab.label }),
3220
3298
  tab.trailing,
3221
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(ChevronRightIcon, { className: "h-5 w-5 shrink-0 text-muted-foreground" })
3299
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(ChevronRightIcon, { className: "h-5 w-5 shrink-0 text-muted-foreground" })
3222
3300
  ]
3223
3301
  }
3224
3302
  ) }, tab.id);
@@ -3229,19 +3307,19 @@ function TabbedBottomSheet({
3229
3307
  }
3230
3308
 
3231
3309
  // src/table.tsx
3232
- var React25 = __toESM(require("react"), 1);
3233
- var import_jsx_runtime33 = require("react/jsx-runtime");
3310
+ var React26 = __toESM(require("react"), 1);
3311
+ var import_jsx_runtime34 = require("react/jsx-runtime");
3234
3312
  var TABLE_SIZES = {
3235
3313
  sm: { head: "px-2", cell: "p-2" },
3236
3314
  md: { head: "px-3", cell: "p-3" }
3237
3315
  };
3238
- var TableSizeContext = React25.createContext("md");
3316
+ var TableSizeContext = React26.createContext("md");
3239
3317
  function useTableSize() {
3240
- return React25.useContext(TableSizeContext);
3318
+ return React26.useContext(TableSizeContext);
3241
3319
  }
3242
- var Table = React25.forwardRef(
3320
+ var Table = React26.forwardRef(
3243
3321
  ({ className, size = "md", wrap = true, wrapperClassName, ...props }, ref) => {
3244
- const table = /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
3322
+ const table = /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3245
3323
  "table",
3246
3324
  {
3247
3325
  ref,
@@ -3251,7 +3329,7 @@ var Table = React25.forwardRef(
3251
3329
  ...props
3252
3330
  }
3253
3331
  );
3254
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(TableSizeContext.Provider, { value: size, children: wrap ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
3332
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(TableSizeContext.Provider, { value: size, children: wrap ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3255
3333
  "div",
3256
3334
  {
3257
3335
  "data-slot": "table-wrapper",
@@ -3262,7 +3340,7 @@ var Table = React25.forwardRef(
3262
3340
  }
3263
3341
  );
3264
3342
  Table.displayName = "Table";
3265
- var TableHeader = React25.forwardRef(({ className, sticky = false, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
3343
+ var TableHeader = React26.forwardRef(({ className, sticky = false, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3266
3344
  "thead",
3267
3345
  {
3268
3346
  ref,
@@ -3276,7 +3354,7 @@ var TableHeader = React25.forwardRef(({ className, sticky = false, ...props }, r
3276
3354
  }
3277
3355
  ));
3278
3356
  TableHeader.displayName = "TableHeader";
3279
- var TableBody = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
3357
+ var TableBody = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3280
3358
  "tbody",
3281
3359
  {
3282
3360
  ref,
@@ -3286,7 +3364,7 @@ var TableBody = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE_
3286
3364
  }
3287
3365
  ));
3288
3366
  TableBody.displayName = "TableBody";
3289
- var TableFooter = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
3367
+ var TableFooter = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3290
3368
  "tfoot",
3291
3369
  {
3292
3370
  ref,
@@ -3299,7 +3377,7 @@ var TableFooter = React25.forwardRef(({ className, ...props }, ref) => /* @__PUR
3299
3377
  }
3300
3378
  ));
3301
3379
  TableFooter.displayName = "TableFooter";
3302
- var TableRow = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
3380
+ var TableRow = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3303
3381
  "tr",
3304
3382
  {
3305
3383
  ref,
@@ -3312,9 +3390,9 @@ var TableRow = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__
3312
3390
  }
3313
3391
  ));
3314
3392
  TableRow.displayName = "TableRow";
3315
- var TableHead = React25.forwardRef(({ className, ...props }, ref) => {
3393
+ var TableHead = React26.forwardRef(({ className, ...props }, ref) => {
3316
3394
  const size = useTableSize();
3317
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
3395
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3318
3396
  "th",
3319
3397
  {
3320
3398
  ref,
@@ -3329,9 +3407,9 @@ var TableHead = React25.forwardRef(({ className, ...props }, ref) => {
3329
3407
  );
3330
3408
  });
3331
3409
  TableHead.displayName = "TableHead";
3332
- var TableCell = React25.forwardRef(({ className, ...props }, ref) => {
3410
+ var TableCell = React26.forwardRef(({ className, ...props }, ref) => {
3333
3411
  const size = useTableSize();
3334
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
3412
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3335
3413
  "td",
3336
3414
  {
3337
3415
  ref,
@@ -3346,7 +3424,7 @@ var TableCell = React25.forwardRef(({ className, ...props }, ref) => {
3346
3424
  );
3347
3425
  });
3348
3426
  TableCell.displayName = "TableCell";
3349
- var TableCaption = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
3427
+ var TableCaption = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3350
3428
  "caption",
3351
3429
  {
3352
3430
  ref,
@@ -3359,11 +3437,11 @@ TableCaption.displayName = "TableCaption";
3359
3437
 
3360
3438
  // src/tabs.tsx
3361
3439
  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");
3440
+ var React27 = __toESM(require("react"), 1);
3441
+ var import_jsx_runtime35 = require("react/jsx-runtime");
3364
3442
  var Tabs = TabsPrimitive.Root;
3365
3443
  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)(
3444
+ var TabsList = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3367
3445
  TabsPrimitive.List,
3368
3446
  {
3369
3447
  ref,
@@ -3376,7 +3454,7 @@ var TabsList = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__
3376
3454
  }
3377
3455
  ));
3378
3456
  TabsList.displayName = TabsPrimitive.List.displayName;
3379
- var TabsTrigger = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3457
+ var TabsTrigger = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3380
3458
  TabsPrimitive.Trigger,
3381
3459
  {
3382
3460
  ref,
@@ -3390,7 +3468,7 @@ var TabsTrigger = React26.forwardRef(({ className, ...props }, ref) => /* @__PUR
3390
3468
  }
3391
3469
  ));
3392
3470
  TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
3393
- var TabsTriggerCore = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3471
+ var TabsTriggerCore = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3394
3472
  TabsPrimitive.Trigger,
3395
3473
  {
3396
3474
  ref,
@@ -3400,7 +3478,7 @@ var TabsTriggerCore = React26.forwardRef(({ className, ...props }, ref) => /* @_
3400
3478
  }
3401
3479
  ));
3402
3480
  TabsTriggerCore.displayName = TabsPrimitive.Trigger.displayName;
3403
- var TabsContent = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3481
+ var TabsContent = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3404
3482
  TabsPrimitive.Content,
3405
3483
  {
3406
3484
  ref,
@@ -3416,8 +3494,8 @@ var TabsContent = React26.forwardRef(({ className, ...props }, ref) => /* @__PUR
3416
3494
  TabsContent.displayName = TabsPrimitive.Content.displayName;
3417
3495
 
3418
3496
  // src/textarea.tsx
3419
- var React27 = __toESM(require("react"), 1);
3420
- var import_jsx_runtime35 = require("react/jsx-runtime");
3497
+ var React28 = __toESM(require("react"), 1);
3498
+ var import_jsx_runtime36 = require("react/jsx-runtime");
3421
3499
  var FILL_HEIGHT_REGEX = /(?:^|\s)(h-full|h-dvh|flex-1|grow)(?:\s|$)/;
3422
3500
  var FILL_WIDTH_REGEX = /(?:^|\s)(w-full|w-screen)(?:\s|$)/;
3423
3501
  function getStretchClasses(className) {
@@ -3430,7 +3508,7 @@ function getStretchClasses(className) {
3430
3508
  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
3509
  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
3510
  function useAutoGrow(ref, value, autoGrow = false, minHeight, maxHeight) {
3433
- React27.useEffect(() => {
3511
+ React28.useEffect(() => {
3434
3512
  if (!autoGrow || !ref.current) return;
3435
3513
  const textarea = ref.current;
3436
3514
  textarea.style.height = "auto";
@@ -3446,8 +3524,8 @@ function useAutoGrow(ref, value, autoGrow = false, minHeight, maxHeight) {
3446
3524
  }, [value, autoGrow, minHeight, maxHeight, ref]);
3447
3525
  }
3448
3526
  function useMergedTextareaRef(forwarded) {
3449
- const internal = React27.useRef(null);
3450
- const callback = React27.useCallback(
3527
+ const internal = React28.useRef(null);
3528
+ const callback = React28.useCallback(
3451
3529
  (node) => {
3452
3530
  internal.current = node;
3453
3531
  if (typeof forwarded === "function") forwarded(node);
@@ -3464,13 +3542,13 @@ function boxStyle(minHeight, maxHeight) {
3464
3542
  maxHeight: maxHeight ? `${maxHeight}px` : void 0
3465
3543
  };
3466
3544
  }
3467
- var Textarea = React27.forwardRef(
3545
+ var Textarea = React28.forwardRef(
3468
3546
  ({ className, autoGrow, minHeight, maxHeight, wrapperClassName, ...props }, forwarded) => {
3469
3547
  const { ref, callback } = useMergedTextareaRef(forwarded);
3470
3548
  const stretchClasses = getStretchClasses(className);
3471
3549
  const needsWrapper = Boolean(wrapperClassName || stretchClasses);
3472
3550
  useAutoGrow(ref, props.value, autoGrow, minHeight, maxHeight);
3473
- const textarea = /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3551
+ const textarea = /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3474
3552
  "textarea",
3475
3553
  {
3476
3554
  ref: callback,
@@ -3486,15 +3564,15 @@ var Textarea = React27.forwardRef(
3486
3564
  }
3487
3565
  );
3488
3566
  if (!needsWrapper) return textarea;
3489
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: cn(stretchClasses, wrapperClassName), children: textarea });
3567
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: cn(stretchClasses, wrapperClassName), children: textarea });
3490
3568
  }
3491
3569
  );
3492
3570
  Textarea.displayName = "Textarea";
3493
- var BasicTextarea = React27.forwardRef(
3571
+ var BasicTextarea = React28.forwardRef(
3494
3572
  ({ className, autoGrow, minHeight, maxHeight, ...props }, forwarded) => {
3495
3573
  const { ref, callback } = useMergedTextareaRef(forwarded);
3496
3574
  useAutoGrow(ref, props.value, autoGrow, minHeight, maxHeight);
3497
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3575
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3498
3576
  "textarea",
3499
3577
  {
3500
3578
  ref: callback,
@@ -3512,7 +3590,7 @@ var BasicTextarea = React27.forwardRef(
3512
3590
  }
3513
3591
  );
3514
3592
  BasicTextarea.displayName = "BasicTextarea";
3515
- var TextareaWithPrefix = React27.forwardRef(
3593
+ var TextareaWithPrefix = React28.forwardRef(
3516
3594
  ({
3517
3595
  prefix,
3518
3596
  className,
@@ -3524,13 +3602,13 @@ var TextareaWithPrefix = React27.forwardRef(
3524
3602
  }, forwarded) => {
3525
3603
  const { ref, callback } = useMergedTextareaRef(forwarded);
3526
3604
  useAutoGrow(ref, props.value, autoGrow, minHeight, maxHeight);
3527
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
3605
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
3528
3606
  "div",
3529
3607
  {
3530
3608
  className: cn("relative", getStretchClasses(className), wrapperClassName),
3531
3609
  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)(
3610
+ prefix ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "pointer-events-none absolute left-3 top-3 z-10 text-muted-foreground", children: prefix }) : null,
3611
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3534
3612
  "textarea",
3535
3613
  {
3536
3614
  ref: callback,
@@ -3609,13 +3687,13 @@ function useScrollFade() {
3609
3687
 
3610
3688
  // src/hover-card.tsx
3611
3689
  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");
3690
+ var React29 = __toESM(require("react"), 1);
3691
+ var import_jsx_runtime37 = require("react/jsx-runtime");
3614
3692
  var HoverCard = HoverCardPrimitive.Root;
3615
3693
  var HoverCardTrigger = HoverCardPrimitive.Trigger;
3616
- var HoverCardContent = React28.forwardRef(({ className, align = "center", sideOffset = 4, container, ...props }, ref) => {
3694
+ var HoverCardContent = React29.forwardRef(({ className, align = "center", sideOffset = 4, container, ...props }, ref) => {
3617
3695
  const resolved = usePortalContainer(container);
3618
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(HoverCardPrimitive.Portal, { container: resolved ?? null, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3696
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(HoverCardPrimitive.Portal, { container: resolved ?? null, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3619
3697
  HoverCardPrimitive.Content,
3620
3698
  {
3621
3699
  ref,
@@ -3634,9 +3712,9 @@ HoverCardContent.displayName = HoverCardPrimitive.Content.displayName;
3634
3712
 
3635
3713
  // src/radio-group.tsx
3636
3714
  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");
3715
+ var React30 = __toESM(require("react"), 1);
3716
+ var import_jsx_runtime38 = require("react/jsx-runtime");
3717
+ var RadioGroupSizeContext = React30.createContext("md");
3640
3718
  var CONTROL_CLASSES = {
3641
3719
  sm: "h-3.5 w-3.5",
3642
3720
  md: "h-4 w-4",
@@ -3647,7 +3725,7 @@ var DOT_CLASSES = {
3647
3725
  md: "h-1.5 w-1.5",
3648
3726
  lg: "h-2 w-2"
3649
3727
  };
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)(
3728
+ var RadioGroup3 = React30.forwardRef(({ className, size = "md", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(RadioGroupSizeContext.Provider, { value: size, children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3651
3729
  RadioGroupPrimitive.Root,
3652
3730
  {
3653
3731
  ref,
@@ -3657,10 +3735,10 @@ var RadioGroup3 = React29.forwardRef(({ className, size = "md", ...props }, ref)
3657
3735
  }
3658
3736
  ) }));
3659
3737
  RadioGroup3.displayName = RadioGroupPrimitive.Root.displayName;
3660
- var RadioGroupItem = React29.forwardRef(({ className, size, ...props }, ref) => {
3661
- const groupSize = React29.useContext(RadioGroupSizeContext);
3738
+ var RadioGroupItem = React30.forwardRef(({ className, size, ...props }, ref) => {
3739
+ const groupSize = React30.useContext(RadioGroupSizeContext);
3662
3740
  const resolved = size ?? groupSize;
3663
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3741
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3664
3742
  RadioGroupPrimitive.Item,
3665
3743
  {
3666
3744
  ref,
@@ -3677,7 +3755,7 @@ var RadioGroupItem = React29.forwardRef(({ className, size, ...props }, ref) =>
3677
3755
  className
3678
3756
  ),
3679
3757
  ...props,
3680
- children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(RadioGroupPrimitive.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3758
+ children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(RadioGroupPrimitive.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3681
3759
  "div",
3682
3760
  {
3683
3761
  className: cn("rounded-full bg-primary-foreground", DOT_CLASSES[resolved])
@@ -3690,7 +3768,7 @@ RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
3690
3768
 
3691
3769
  // src/resizable.tsx
3692
3770
  var import_react_resizable_panels = require("react-resizable-panels");
3693
- var import_jsx_runtime38 = require("react/jsx-runtime");
3771
+ var import_jsx_runtime39 = require("react/jsx-runtime");
3694
3772
  var HANDLE_SIZES = {
3695
3773
  xs: "w-0.5 [&[aria-orientation=horizontal]]:h-0.5 [&[aria-orientation=horizontal]]:w-full",
3696
3774
  sm: "w-1 [&[aria-orientation=horizontal]]:h-1 [&[aria-orientation=horizontal]]:w-full",
@@ -3704,7 +3782,7 @@ var HANDLE_SIZES = {
3704
3782
  var ResizablePanelGroup = ({
3705
3783
  className,
3706
3784
  ...props
3707
- }) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3785
+ }) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3708
3786
  import_react_resizable_panels.Group,
3709
3787
  {
3710
3788
  "data-slot": "resizable-group",
@@ -3716,10 +3794,10 @@ ResizablePanelGroup.displayName = "ResizablePanelGroup";
3716
3794
  var ResizablePanel = import_react_resizable_panels.Panel;
3717
3795
  var ResizableHandle = ({
3718
3796
  withHandle,
3719
- size = "sm",
3797
+ size = "xs",
3720
3798
  className,
3721
3799
  ...props
3722
- }) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3800
+ }) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3723
3801
  import_react_resizable_panels.Separator,
3724
3802
  {
3725
3803
  "data-slot": "resizable-handle",
@@ -3739,15 +3817,15 @@ var ResizableHandle = ({
3739
3817
  className
3740
3818
  ),
3741
3819
  ...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
3820
+ children: withHandle ? /* @__PURE__ */ (0, import_jsx_runtime39.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_runtime39.jsx)(DragHandleDots2Icon, { className: "h-2.5 w-2.5 group-aria-[orientation=horizontal]/handle:rotate-90" }) }) : null
3743
3821
  }
3744
3822
  );
3745
3823
  ResizableHandle.displayName = "ResizableHandle";
3746
3824
 
3747
3825
  // src/slider.tsx
3748
3826
  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");
3827
+ var React31 = __toESM(require("react"), 1);
3828
+ var import_jsx_runtime40 = require("react/jsx-runtime");
3751
3829
  var TRACK_CLASSES = {
3752
3830
  sm: "h-1",
3753
3831
  md: "h-1.5",
@@ -3758,12 +3836,12 @@ var THUMB_CLASSES = {
3758
3836
  md: "h-4 w-4",
3759
3837
  lg: "h-5 w-5"
3760
3838
  };
3761
- var Slider = React30.forwardRef(({ className, size = "md", ...props }, ref) => {
3839
+ var Slider = React31.forwardRef(({ className, size = "md", ...props }, ref) => {
3762
3840
  const thumbCount = Math.max(
3763
3841
  1,
3764
3842
  (props.value ?? props.defaultValue ?? [0]).length
3765
3843
  );
3766
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
3844
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
3767
3845
  SliderPrimitive.Root,
3768
3846
  {
3769
3847
  ref,
@@ -3775,7 +3853,7 @@ var Slider = React30.forwardRef(({ className, size = "md", ...props }, ref) => {
3775
3853
  ),
3776
3854
  ...props,
3777
3855
  children: [
3778
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3856
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3779
3857
  SliderPrimitive.Track,
3780
3858
  {
3781
3859
  "data-slot": "slider-track",
@@ -3784,7 +3862,7 @@ var Slider = React30.forwardRef(({ className, size = "md", ...props }, ref) => {
3784
3862
  TRACK_CLASSES[size],
3785
3863
  "data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"
3786
3864
  ),
3787
- children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3865
+ children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3788
3866
  SliderPrimitive.Range,
3789
3867
  {
3790
3868
  "data-slot": "slider-range",
@@ -3793,7 +3871,7 @@ var Slider = React30.forwardRef(({ className, size = "md", ...props }, ref) => {
3793
3871
  )
3794
3872
  }
3795
3873
  ),
3796
- Array.from({ length: thumbCount }, (_, index) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3874
+ Array.from({ length: thumbCount }, (_, index) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3797
3875
  SliderPrimitive.Thumb,
3798
3876
  {
3799
3877
  "data-slot": "slider-thumb",
@@ -3820,8 +3898,8 @@ Slider.displayName = SliderPrimitive.Root.displayName;
3820
3898
  var ToggleGroupPrimitive = __toESM(require("@radix-ui/react-toggle-group"), 1);
3821
3899
  var TogglePrimitive = __toESM(require("@radix-ui/react-toggle"), 1);
3822
3900
  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");
3901
+ var React32 = __toESM(require("react"), 1);
3902
+ var import_jsx_runtime41 = require("react/jsx-runtime");
3825
3903
  var toggleVariants = (0, import_class_variance_authority6.cva)(
3826
3904
  "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
3905
  {
@@ -3842,7 +3920,7 @@ var toggleVariants = (0, import_class_variance_authority6.cva)(
3842
3920
  }
3843
3921
  }
3844
3922
  );
3845
- var Toggle = React31.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3923
+ var Toggle = React32.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3846
3924
  TogglePrimitive.Root,
3847
3925
  {
3848
3926
  ref,
@@ -3852,21 +3930,21 @@ var Toggle = React31.forwardRef(({ className, variant, size, ...props }, ref) =>
3852
3930
  }
3853
3931
  ));
3854
3932
  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)(
3933
+ var ToggleGroupContext = React32.createContext({ size: "default", variant: "default" });
3934
+ var ToggleGroup = React32.forwardRef(({ className, variant, size, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3857
3935
  ToggleGroupPrimitive.Root,
3858
3936
  {
3859
3937
  ref,
3860
3938
  "data-slot": "toggle-group",
3861
3939
  className: cn("flex items-center justify-center gap-1", className),
3862
3940
  ...props,
3863
- children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(ToggleGroupContext.Provider, { value: { variant, size }, children })
3941
+ children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(ToggleGroupContext.Provider, { value: { variant, size }, children })
3864
3942
  }
3865
3943
  ));
3866
3944
  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)(
3945
+ var ToggleGroupItem = React32.forwardRef(({ className, children, variant, size, ...props }, ref) => {
3946
+ const context = React32.useContext(ToggleGroupContext);
3947
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3870
3948
  ToggleGroupPrimitive.Item,
3871
3949
  {
3872
3950
  ref,
@@ -3887,14 +3965,14 @@ ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;
3887
3965
 
3888
3966
  // src/tooltip.tsx
3889
3967
  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");
3968
+ var React33 = __toESM(require("react"), 1);
3969
+ var import_jsx_runtime42 = require("react/jsx-runtime");
3892
3970
  var TooltipProvider = TooltipPrimitive.Provider;
3893
3971
  var Tooltip = TooltipPrimitive.Root;
3894
3972
  var TooltipTrigger = TooltipPrimitive.Trigger;
3895
- var TooltipContent = React32.forwardRef(({ className, sideOffset = 4, container, ...props }, ref) => {
3973
+ var TooltipContent = React33.forwardRef(({ className, sideOffset = 4, container, ...props }, ref) => {
3896
3974
  const resolved = usePortalContainer(container);
3897
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(TooltipPrimitive.Portal, { container: resolved ?? null, children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3975
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(TooltipPrimitive.Portal, { container: resolved ?? null, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
3898
3976
  TooltipPrimitive.Content,
3899
3977
  {
3900
3978
  ref,