@ai-matrx/design-system 0.12.1 → 0.13.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
@@ -32,6 +32,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
32
32
  var src_exports = {};
33
33
  __export(src_exports, {
34
34
  ALL_MOTION_CLASSES: () => ALL_MOTION_CLASSES,
35
+ ARCHIVE_FILTER_LABELS: () => ARCHIVE_FILTER_LABELS,
36
+ ARCHIVE_FILTER_VALUES: () => ARCHIVE_FILTER_VALUES,
35
37
  Accordion: () => Accordion,
36
38
  AccordionContent: () => AccordionContent,
37
39
  AccordionItem: () => AccordionItem,
@@ -51,6 +53,7 @@ __export(src_exports, {
51
53
  AlertDialogTitle: () => AlertDialogTitle,
52
54
  AlertDialogTrigger: () => AlertDialogTrigger,
53
55
  AlertTitle: () => AlertTitle,
56
+ ArchiveFilter: () => ArchiveFilter,
54
57
  Avatar: () => Avatar,
55
58
  AvatarFallback: () => AvatarFallback,
56
59
  AvatarImage: () => AvatarImage,
@@ -101,6 +104,7 @@ __export(src_exports, {
101
104
  ContextMenuSubTrigger: () => ContextMenuSubTrigger,
102
105
  ContextMenuTrigger: () => ContextMenuTrigger,
103
106
  CreatablePicker: () => CreatablePicker,
107
+ DEFAULT_ARCHIVE_FILTER: () => DEFAULT_ARCHIVE_FILTER,
104
108
  DEFAULT_SCORE_THRESHOLDS: () => DEFAULT_SCORE_THRESHOLDS,
105
109
  Dialog: () => Dialog,
106
110
  DialogClose: () => DialogClose,
@@ -232,6 +236,7 @@ __export(src_exports, {
232
236
  scoreRingColorClasses: () => scoreRingColorClasses,
233
237
  selectTriggerVariants: () => selectTriggerVariants,
234
238
  sheetVariants: () => sheetVariants,
239
+ toArchiveFilter: () => toArchiveFilter,
235
240
  toggleVariants: () => toggleVariants,
236
241
  useAccordionSize: () => useAccordionSize,
237
242
  useCardSize: () => useCardSize,
@@ -3149,11 +3154,60 @@ function SegmentedControl({
3149
3154
  );
3150
3155
  }
3151
3156
 
3157
+ // src/archive-filter.tsx
3158
+ var React24 = __toESM(require("react"), 1);
3159
+ var import_jsx_runtime31 = require("react/jsx-runtime");
3160
+ var ARCHIVE_FILTER_VALUES = ["active", "archived", "all"];
3161
+ var DEFAULT_ARCHIVE_FILTER = "active";
3162
+ var ARCHIVE_FILTER_LABELS = {
3163
+ active: "Active only",
3164
+ archived: "Archived only",
3165
+ all: "Active + archived"
3166
+ };
3167
+ function toArchiveFilter(value, fallback = DEFAULT_ARCHIVE_FILTER) {
3168
+ return ARCHIVE_FILTER_VALUES.includes(value) ? value : fallback;
3169
+ }
3170
+ function ArchiveFilter({
3171
+ value,
3172
+ onValueChange,
3173
+ counts,
3174
+ labels,
3175
+ size = "sm",
3176
+ className,
3177
+ "aria-label": ariaLabel = "Archive filter",
3178
+ disabled = false
3179
+ }) {
3180
+ const data = React24.useMemo(
3181
+ () => ARCHIVE_FILTER_VALUES.map((state) => {
3182
+ const text = labels?.[state] ?? ARCHIVE_FILTER_LABELS[state];
3183
+ const count = counts?.[state];
3184
+ return {
3185
+ value: state,
3186
+ disabled,
3187
+ label: typeof count === "number" ? /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("span", { className: "inline-flex items-center gap-1.5", children: [
3188
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { children: text }),
3189
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-muted-foreground tabular-nums", children: count })
3190
+ ] }) : text
3191
+ };
3192
+ }),
3193
+ [counts, labels, disabled]
3194
+ );
3195
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { role: "group", "aria-label": ariaLabel, className: cn("inline-flex", className), children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
3196
+ SegmentedControl,
3197
+ {
3198
+ value,
3199
+ onValueChange: (next) => onValueChange(toArchiveFilter(next, value)),
3200
+ data,
3201
+ size
3202
+ }
3203
+ ) });
3204
+ }
3205
+
3152
3206
  // src/select.tsx
3153
3207
  var SelectPrimitive = __toESM(require("@radix-ui/react-select"), 1);
3154
3208
  var import_class_variance_authority4 = require("class-variance-authority");
3155
- var React24 = __toESM(require("react"), 1);
3156
- var import_jsx_runtime31 = require("react/jsx-runtime");
3209
+ var React25 = __toESM(require("react"), 1);
3210
+ var import_jsx_runtime32 = require("react/jsx-runtime");
3157
3211
  var Select = SelectPrimitive.Root;
3158
3212
  var SelectGroup = SelectPrimitive.Group;
3159
3213
  var SelectValue = SelectPrimitive.Value;
@@ -3172,7 +3226,7 @@ var selectTriggerVariants = (0, import_class_variance_authority4.cva)(
3172
3226
  }
3173
3227
  }
3174
3228
  );
3175
- var SelectTrigger = React24.forwardRef(({ className, children, hideArrow = false, size, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
3229
+ var SelectTrigger = React25.forwardRef(({ className, children, hideArrow = false, size, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
3176
3230
  SelectPrimitive.Trigger,
3177
3231
  {
3178
3232
  ref,
@@ -3180,12 +3234,12 @@ var SelectTrigger = React24.forwardRef(({ className, children, hideArrow = false
3180
3234
  ...props,
3181
3235
  children: [
3182
3236
  children,
3183
- !hideArrow && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(RadixChevronDownIcon, { className: "h-4 w-4 opacity-50" }) })
3237
+ !hideArrow && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(RadixChevronDownIcon, { className: "h-4 w-4 opacity-50" }) })
3184
3238
  ]
3185
3239
  }
3186
3240
  ));
3187
3241
  SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
3188
- var SelectScrollUpButton = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
3242
+ var SelectScrollUpButton = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
3189
3243
  SelectPrimitive.ScrollUpButton,
3190
3244
  {
3191
3245
  ref,
@@ -3194,11 +3248,11 @@ var SelectScrollUpButton = React24.forwardRef(({ className, ...props }, ref) =>
3194
3248
  className
3195
3249
  ),
3196
3250
  ...props,
3197
- children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(RadixChevronUpIcon, {})
3251
+ children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(RadixChevronUpIcon, {})
3198
3252
  }
3199
3253
  ));
3200
3254
  SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
3201
- var SelectScrollDownButton = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
3255
+ var SelectScrollDownButton = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
3202
3256
  SelectPrimitive.ScrollDownButton,
3203
3257
  {
3204
3258
  ref,
@@ -3207,11 +3261,11 @@ var SelectScrollDownButton = React24.forwardRef(({ className, ...props }, ref) =
3207
3261
  className
3208
3262
  ),
3209
3263
  ...props,
3210
- children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(RadixChevronDownIcon, {})
3264
+ children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(RadixChevronDownIcon, {})
3211
3265
  }
3212
3266
  ));
3213
3267
  SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
3214
- var SelectContent = React24.forwardRef(
3268
+ var SelectContent = React25.forwardRef(
3215
3269
  ({
3216
3270
  className,
3217
3271
  children,
@@ -3221,7 +3275,7 @@ var SelectContent = React24.forwardRef(
3221
3275
  ...props
3222
3276
  }, ref) => {
3223
3277
  const portalContainer = usePortalContainer(container);
3224
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(SelectPrimitive.Portal, { container: portalContainer, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
3278
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(SelectPrimitive.Portal, { container: portalContainer, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
3225
3279
  SelectPrimitive.Content,
3226
3280
  {
3227
3281
  ref,
@@ -3239,8 +3293,8 @@ var SelectContent = React24.forwardRef(
3239
3293
  position,
3240
3294
  ...props,
3241
3295
  children: [
3242
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(SelectScrollUpButton, {}),
3243
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
3296
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(SelectScrollUpButton, {}),
3297
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
3244
3298
  SelectPrimitive.Viewport,
3245
3299
  {
3246
3300
  className: cn(
@@ -3250,14 +3304,14 @@ var SelectContent = React24.forwardRef(
3250
3304
  children
3251
3305
  }
3252
3306
  ),
3253
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(SelectScrollDownButton, {})
3307
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(SelectScrollDownButton, {})
3254
3308
  ]
3255
3309
  }
3256
3310
  ) });
3257
3311
  }
3258
3312
  );
3259
3313
  SelectContent.displayName = SelectPrimitive.Content.displayName;
3260
- var SelectLabel = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
3314
+ var SelectLabel = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
3261
3315
  SelectPrimitive.Label,
3262
3316
  {
3263
3317
  ref,
@@ -3266,7 +3320,7 @@ var SelectLabel = React24.forwardRef(({ className, ...props }, ref) => /* @__PUR
3266
3320
  }
3267
3321
  ));
3268
3322
  SelectLabel.displayName = SelectPrimitive.Label.displayName;
3269
- var SelectItem = React24.forwardRef(({ className, children, description, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
3323
+ var SelectItem = React25.forwardRef(({ className, children, description, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
3270
3324
  SelectPrimitive.Item,
3271
3325
  {
3272
3326
  ref,
@@ -3277,14 +3331,14 @@ var SelectItem = React24.forwardRef(({ className, children, description, ...prop
3277
3331
  ),
3278
3332
  ...props,
3279
3333
  children: [
3280
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(CheckIcon, { className: "h-4 w-4" }) }) }),
3281
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(SelectPrimitive.ItemText, { children }),
3282
- description ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "block text-xs leading-snug text-muted-foreground", children: description }) : null
3334
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(CheckIcon, { className: "h-4 w-4" }) }) }),
3335
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(SelectPrimitive.ItemText, { children }),
3336
+ description ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "block text-xs leading-snug text-muted-foreground", children: description }) : null
3283
3337
  ]
3284
3338
  }
3285
3339
  ));
3286
3340
  SelectItem.displayName = SelectPrimitive.Item.displayName;
3287
- var SelectSeparator = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
3341
+ var SelectSeparator = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
3288
3342
  SelectPrimitive.Separator,
3289
3343
  {
3290
3344
  ref,
@@ -3296,9 +3350,9 @@ SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
3296
3350
 
3297
3351
  // src/separator.tsx
3298
3352
  var SeparatorPrimitive = __toESM(require("@radix-ui/react-separator"), 1);
3299
- var React25 = __toESM(require("react"), 1);
3300
- var import_jsx_runtime32 = require("react/jsx-runtime");
3301
- var Separator4 = React25.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
3353
+ var React26 = __toESM(require("react"), 1);
3354
+ var import_jsx_runtime33 = require("react/jsx-runtime");
3355
+ var Separator4 = React26.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
3302
3356
  SeparatorPrimitive.Root,
3303
3357
  {
3304
3358
  ref,
@@ -3318,11 +3372,11 @@ Separator4.displayName = SeparatorPrimitive.Root.displayName;
3318
3372
  var SheetPrimitive = __toESM(require("@radix-ui/react-dialog"), 1);
3319
3373
  var import_react_tree4 = require("@ai-matrx/kit/react-tree");
3320
3374
  var import_class_variance_authority5 = require("class-variance-authority");
3321
- var React26 = __toESM(require("react"), 1);
3322
- var import_jsx_runtime33 = require("react/jsx-runtime");
3323
- var SheetContentBase = React26.forwardRef(({ ...props }, ref) => {
3375
+ var React27 = __toESM(require("react"), 1);
3376
+ var import_jsx_runtime34 = require("react/jsx-runtime");
3377
+ var SheetContentBase = React27.forwardRef(({ ...props }, ref) => {
3324
3378
  const isModal = useRadixDialogModal();
3325
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
3379
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3326
3380
  SheetPrimitive.Content,
3327
3381
  {
3328
3382
  ...props,
@@ -3332,15 +3386,15 @@ var SheetContentBase = React26.forwardRef(({ ...props }, ref) => {
3332
3386
  );
3333
3387
  });
3334
3388
  SheetContentBase.displayName = "SheetContentBase";
3335
- var Sheet = React26.forwardRef(({ children, ...props }, _ref) => {
3389
+ var Sheet = React27.forwardRef(({ children, ...props }, _ref) => {
3336
3390
  const modal = props.modal ?? true;
3337
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(RadixDialogModalProvider, { modal, children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(SheetPrimitive.Root, { ...props, modal, children }) });
3391
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(RadixDialogModalProvider, { modal, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(SheetPrimitive.Root, { ...props, modal, children }) });
3338
3392
  });
3339
3393
  Sheet.displayName = "Sheet";
3340
3394
  var SheetTrigger = SheetPrimitive.Trigger;
3341
3395
  var SheetClose = SheetPrimitive.Close;
3342
3396
  var SheetPortal = SheetPrimitive.Portal;
3343
- var SheetOverlay = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
3397
+ var SheetOverlay = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3344
3398
  SheetPrimitive.Overlay,
3345
3399
  {
3346
3400
  className: cn(
@@ -3377,7 +3431,7 @@ var sheetVariants = (0, import_class_variance_authority5.cva)(
3377
3431
  }
3378
3432
  }
3379
3433
  );
3380
- var SheetDescription = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
3434
+ var SheetDescription = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3381
3435
  SheetPrimitive.Description,
3382
3436
  {
3383
3437
  ref,
@@ -3386,7 +3440,7 @@ var SheetDescription = React26.forwardRef(({ className, ...props }, ref) => /* @
3386
3440
  }
3387
3441
  ));
3388
3442
  SheetDescription.displayName = SheetPrimitive.Description.displayName;
3389
- var SheetContent = React26.forwardRef(
3443
+ var SheetContent = React27.forwardRef(
3390
3444
  ({
3391
3445
  side = "right",
3392
3446
  className,
@@ -3398,9 +3452,9 @@ var SheetContent = React26.forwardRef(
3398
3452
  ...props
3399
3453
  }, ref) => {
3400
3454
  const hasDescription = (0, import_react_tree4.treeContainsComponent)(children, SheetDescription) || (0, import_react_tree4.treeContainsComponent)(children, SheetPrimitive.Description);
3401
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(SheetPortal, { children: [
3402
- !hideOverlay && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(SheetOverlay, { className: overlayClassName }),
3403
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
3455
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(SheetPortal, { children: [
3456
+ !hideOverlay && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(SheetOverlay, { className: overlayClassName }),
3457
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
3404
3458
  SheetContentBase,
3405
3459
  {
3406
3460
  ref,
@@ -3412,9 +3466,9 @@ var SheetContent = React26.forwardRef(
3412
3466
  ...hasDescription ? {} : { "aria-describedby": void 0 },
3413
3467
  ...props,
3414
3468
  children: [
3415
- !hideCloseButton && /* @__PURE__ */ (0, import_jsx_runtime33.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: [
3416
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Cross2Icon, { className: "h-4 w-4" }),
3417
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "sr-only", children: "Close" })
3469
+ !hideCloseButton && /* @__PURE__ */ (0, import_jsx_runtime34.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: [
3470
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Cross2Icon, { className: "h-4 w-4" }),
3471
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "sr-only", children: "Close" })
3418
3472
  ] }),
3419
3473
  children
3420
3474
  ]
@@ -3427,7 +3481,7 @@ SheetContent.displayName = SheetPrimitive.Content.displayName;
3427
3481
  var SheetHeader = ({
3428
3482
  className,
3429
3483
  ...props
3430
- }) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
3484
+ }) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3431
3485
  "div",
3432
3486
  {
3433
3487
  className: cn(
@@ -3441,7 +3495,7 @@ SheetHeader.displayName = "SheetHeader";
3441
3495
  var SheetFooter = ({
3442
3496
  className,
3443
3497
  ...props
3444
- }) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
3498
+ }) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3445
3499
  "div",
3446
3500
  {
3447
3501
  "data-slot": "sheet-footer",
@@ -3453,7 +3507,7 @@ var SheetFooter = ({
3453
3507
  }
3454
3508
  );
3455
3509
  SheetFooter.displayName = "SheetFooter";
3456
- var SheetTitle = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
3510
+ var SheetTitle = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3457
3511
  SheetPrimitive.Title,
3458
3512
  {
3459
3513
  ref,
@@ -3464,9 +3518,9 @@ var SheetTitle = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE
3464
3518
  SheetTitle.displayName = SheetPrimitive.Title.displayName;
3465
3519
 
3466
3520
  // src/skeleton.tsx
3467
- var import_jsx_runtime34 = require("react/jsx-runtime");
3521
+ var import_jsx_runtime35 = require("react/jsx-runtime");
3468
3522
  function Skeleton({ className, animated = true, ...props }) {
3469
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3523
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3470
3524
  "div",
3471
3525
  {
3472
3526
  "data-slot": "skeleton",
@@ -3482,8 +3536,8 @@ function Skeleton({ className, animated = true, ...props }) {
3482
3536
 
3483
3537
  // src/switch.tsx
3484
3538
  var SwitchPrimitives = __toESM(require("@radix-ui/react-switch"), 1);
3485
- var React27 = __toESM(require("react"), 1);
3486
- var import_jsx_runtime35 = require("react/jsx-runtime");
3539
+ var React28 = __toESM(require("react"), 1);
3540
+ var import_jsx_runtime36 = require("react/jsx-runtime");
3487
3541
  var SWITCH_SIZES = {
3488
3542
  sm: {
3489
3543
  root: "h-4 w-9 border-border data-[state=unchecked]:bg-input",
@@ -3494,7 +3548,7 @@ var SWITCH_SIZES = {
3494
3548
  thumb: "h-4 w-4 data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0"
3495
3549
  }
3496
3550
  };
3497
- var Switch = React27.forwardRef(({ className, size = "md", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3551
+ var Switch = React28.forwardRef(({ className, size = "md", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3498
3552
  SwitchPrimitives.Root,
3499
3553
  {
3500
3554
  ref,
@@ -3505,7 +3559,7 @@ var Switch = React27.forwardRef(({ className, size = "md", ...props }, ref) => /
3505
3559
  className
3506
3560
  ),
3507
3561
  ...props,
3508
- children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3562
+ children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3509
3563
  SwitchPrimitives.Thumb,
3510
3564
  {
3511
3565
  "data-slot": "switch-thumb",
@@ -3520,14 +3574,14 @@ var Switch = React27.forwardRef(({ className, size = "md", ...props }, ref) => /
3520
3574
  Switch.displayName = SwitchPrimitives.Root.displayName;
3521
3575
 
3522
3576
  // src/organization-picker.tsx
3523
- var import_jsx_runtime36 = require("react/jsx-runtime");
3577
+ var import_jsx_runtime37 = require("react/jsx-runtime");
3524
3578
  function OrganizationAbbreviation({
3525
3579
  abbreviation,
3526
3580
  name,
3527
3581
  className
3528
3582
  }) {
3529
3583
  const mark = abbreviation && abbreviation.trim() || name.trim().slice(0, 1) || "?";
3530
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3584
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3531
3585
  "span",
3532
3586
  {
3533
3587
  className: cn(
@@ -3554,20 +3608,20 @@ function OrganizationPicker({
3554
3608
  }) {
3555
3609
  const active = organizations.find((o) => o.id === activeOrganizationId) ?? null;
3556
3610
  const isDefault = (id) => !!defaultOrganizationId && id === defaultOrganizationId;
3557
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: cn("flex flex-col", className), "data-slot": "organization-picker", children: [
3558
- !hideHeading && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("p", { className: "px-2 py-1.5 text-[11px] font-semibold uppercase tracking-wide text-muted-foreground", children: "Organization" }),
3559
- loading ? /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "space-y-1 px-1 py-1", "aria-busy": "true", "aria-label": "Loading organizations", children: [
3560
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Skeleton, { className: "h-7 rounded-md" }),
3561
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Skeleton, { className: "h-7 rounded-md" })
3562
- ] }) : loadFailed ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("p", { className: "px-2 py-2 text-xs text-destructive", role: "alert", children: "Could not load organizations." }) : organizations.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("p", { className: "px-2 py-2 text-xs text-muted-foreground", children: "Your account is not a member of any organization. Ask an administrator to add you to one." }) : /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_jsx_runtime36.Fragment, { children: [
3563
- active ? /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("p", { className: "px-2 pb-1 text-[11px] text-muted-foreground", "data-slot": "organization-picker-status", children: [
3611
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: cn("flex flex-col", className), "data-slot": "organization-picker", children: [
3612
+ !hideHeading && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("p", { className: "px-2 py-1.5 text-[11px] font-semibold uppercase tracking-wide text-muted-foreground", children: "Organization" }),
3613
+ loading ? /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "space-y-1 px-1 py-1", "aria-busy": "true", "aria-label": "Loading organizations", children: [
3614
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Skeleton, { className: "h-7 rounded-md" }),
3615
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Skeleton, { className: "h-7 rounded-md" })
3616
+ ] }) : loadFailed ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("p", { className: "px-2 py-2 text-xs text-destructive", role: "alert", children: "Could not load organizations." }) : organizations.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("p", { className: "px-2 py-2 text-xs text-muted-foreground", children: "Your account is not a member of any organization. Ask an administrator to add you to one." }) : /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_jsx_runtime37.Fragment, { children: [
3617
+ active ? /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("p", { className: "px-2 pb-1 text-[11px] text-muted-foreground", "data-slot": "organization-picker-status", children: [
3564
3618
  "Working in",
3565
3619
  " ",
3566
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "font-medium text-foreground", children: active.name })
3567
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("p", { className: "px-2 pb-1 text-[11px] text-destructive", "data-slot": "organization-picker-status", children: "No organization selected \u2014 pick one below." }),
3568
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("ul", { className: "max-h-72 overflow-y-auto", role: "listbox", "aria-label": "Organizations", children: organizations.map((org) => {
3620
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "font-medium text-foreground", children: active.name })
3621
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("p", { className: "px-2 pb-1 text-[11px] text-destructive", "data-slot": "organization-picker-status", children: "No organization selected \u2014 pick one below." }),
3622
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("ul", { className: "max-h-72 overflow-y-auto", role: "listbox", "aria-label": "Organizations", children: organizations.map((org) => {
3569
3623
  const isActive = org.id === activeOrganizationId;
3570
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("li", { role: "none", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
3624
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("li", { role: "none", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
3571
3625
  "button",
3572
3626
  {
3573
3627
  type: "button",
@@ -3584,7 +3638,7 @@ function OrganizationPicker({
3584
3638
  itemClassName
3585
3639
  ),
3586
3640
  children: [
3587
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3641
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3588
3642
  OrganizationAbbreviation,
3589
3643
  {
3590
3644
  abbreviation: org.abbreviation,
@@ -3595,9 +3649,9 @@ function OrganizationPicker({
3595
3649
  )
3596
3650
  }
3597
3651
  ),
3598
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "min-w-0 flex-1 truncate", children: org.name }),
3599
- org.isPersonal && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "shrink-0 rounded-full bg-muted px-1.5 py-0.5 text-[10px] font-medium text-muted-foreground", children: "Personal" }),
3600
- isDefault(org.id) && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3652
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "min-w-0 flex-1 truncate", children: org.name }),
3653
+ org.isPersonal && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "shrink-0 rounded-full bg-muted px-1.5 py-0.5 text-[10px] font-medium text-muted-foreground", children: "Personal" }),
3654
+ isDefault(org.id) && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3601
3655
  StarIcon,
3602
3656
  {
3603
3657
  className: "h-[13px] w-[13px] shrink-0 fill-warning text-warning",
@@ -3606,14 +3660,14 @@ function OrganizationPicker({
3606
3660
  role: "img"
3607
3661
  }
3608
3662
  ),
3609
- isActive && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(LucideCheckIcon, { className: "h-[15px] w-[15px] shrink-0 text-primary" })
3663
+ isActive && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(LucideCheckIcon, { className: "h-[15px] w-[15px] shrink-0 text-primary" })
3610
3664
  ]
3611
3665
  }
3612
3666
  ) }, org.id);
3613
3667
  }) }),
3614
- onSetDefault && /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_jsx_runtime36.Fragment, { children: [
3615
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "my-1 border-t border-border" }),
3616
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3668
+ onSetDefault && /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_jsx_runtime37.Fragment, { children: [
3669
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "my-1 border-t border-border" }),
3670
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3617
3671
  DefaultOrganizationSwitch,
3618
3672
  {
3619
3673
  active,
@@ -3631,17 +3685,17 @@ function DefaultOrganizationSwitch({
3631
3685
  onChange
3632
3686
  }) {
3633
3687
  const disabled = !active;
3634
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
3688
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
3635
3689
  "div",
3636
3690
  {
3637
3691
  className: "flex items-center justify-between gap-3 rounded-md px-2 py-1.5",
3638
3692
  "data-slot": "organization-picker-default",
3639
3693
  children: [
3640
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "min-w-0", children: [
3641
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("p", { className: "text-xs font-medium text-foreground", children: "Set as my default" }),
3642
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("p", { className: "truncate text-[11px] text-muted-foreground", children: disabled ? "Select an organization first" : checked ? `Next startup opens ${active.name}` : "Auto-select this at startup" })
3694
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "min-w-0", children: [
3695
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("p", { className: "text-xs font-medium text-foreground", children: "Set as my default" }),
3696
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("p", { className: "truncate text-[11px] text-muted-foreground", children: disabled ? "Select an organization first" : checked ? `Next startup opens ${active.name}` : "Auto-select this at startup" })
3643
3697
  ] }),
3644
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3698
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3645
3699
  Switch,
3646
3700
  {
3647
3701
  checked,
@@ -3657,7 +3711,7 @@ function DefaultOrganizationSwitch({
3657
3711
 
3658
3712
  // src/tabbed-bottom-sheet.tsx
3659
3713
  var import_react4 = require("react");
3660
- var import_jsx_runtime37 = require("react/jsx-runtime");
3714
+ var import_jsx_runtime38 = require("react/jsx-runtime");
3661
3715
  function TabbedBottomSheet({
3662
3716
  open,
3663
3717
  onOpenChange,
@@ -3671,15 +3725,15 @@ function TabbedBottomSheet({
3671
3725
  if (open) setSelectedTabId(null);
3672
3726
  }
3673
3727
  const selectedTab = selectedTabId ? tabs.find((tab) => tab.id === selectedTabId) : null;
3674
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3728
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3675
3729
  BottomSheet,
3676
3730
  {
3677
3731
  open,
3678
3732
  onOpenChange,
3679
3733
  title,
3680
3734
  size: "full",
3681
- children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "matrx-mobile-sheet flex min-h-0 flex-1 flex-col", children: [
3682
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3735
+ children: /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "matrx-mobile-sheet flex min-h-0 flex-1 flex-col", children: [
3736
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3683
3737
  BottomSheetHeader,
3684
3738
  {
3685
3739
  title: selectedTab ? selectedTab.label : title,
@@ -3687,19 +3741,19 @@ function TabbedBottomSheet({
3687
3741
  onBack: () => setSelectedTabId(null)
3688
3742
  }
3689
3743
  ),
3690
- selectedTab ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "flex min-h-0 flex-1 flex-col overflow-hidden pb-safe", children: selectedTab.content }) : /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(BottomSheetBody, { children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("ul", { className: "divide-y divide-border", children: tabs.map((tab) => {
3744
+ selectedTab ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "flex min-h-0 flex-1 flex-col overflow-hidden pb-safe", children: selectedTab.content }) : /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(BottomSheetBody, { children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("ul", { className: "divide-y divide-border", children: tabs.map((tab) => {
3691
3745
  const Icon2 = tab.icon;
3692
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
3746
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
3693
3747
  "button",
3694
3748
  {
3695
3749
  type: "button",
3696
3750
  onClick: () => setSelectedTabId(tab.id),
3697
3751
  className: "flex w-full items-center gap-3 px-4 py-3.5 text-left transition-colors hover:bg-muted/60 active:bg-muted",
3698
3752
  children: [
3699
- Icon2 ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Icon2, { className: "h-5 w-5 shrink-0 text-muted-foreground" }) : null,
3700
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "min-w-0 flex-1 text-base text-foreground", children: tab.label }),
3753
+ Icon2 ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Icon2, { className: "h-5 w-5 shrink-0 text-muted-foreground" }) : null,
3754
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "min-w-0 flex-1 text-base text-foreground", children: tab.label }),
3701
3755
  tab.trailing,
3702
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(ChevronRightIcon, { className: "h-5 w-5 shrink-0 text-muted-foreground" })
3756
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(ChevronRightIcon, { className: "h-5 w-5 shrink-0 text-muted-foreground" })
3703
3757
  ]
3704
3758
  }
3705
3759
  ) }, tab.id);
@@ -3710,19 +3764,19 @@ function TabbedBottomSheet({
3710
3764
  }
3711
3765
 
3712
3766
  // src/table.tsx
3713
- var React28 = __toESM(require("react"), 1);
3714
- var import_jsx_runtime38 = require("react/jsx-runtime");
3767
+ var React29 = __toESM(require("react"), 1);
3768
+ var import_jsx_runtime39 = require("react/jsx-runtime");
3715
3769
  var TABLE_SIZES = {
3716
3770
  sm: { head: "px-2", cell: "p-2" },
3717
3771
  md: { head: "px-3", cell: "p-3" }
3718
3772
  };
3719
- var TableSizeContext = React28.createContext("md");
3773
+ var TableSizeContext = React29.createContext("md");
3720
3774
  function useTableSize() {
3721
- return React28.useContext(TableSizeContext);
3775
+ return React29.useContext(TableSizeContext);
3722
3776
  }
3723
- var Table = React28.forwardRef(
3777
+ var Table = React29.forwardRef(
3724
3778
  ({ className, size = "md", wrap = true, wrapperClassName, ...props }, ref) => {
3725
- const table = /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3779
+ const table = /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3726
3780
  "table",
3727
3781
  {
3728
3782
  ref,
@@ -3732,7 +3786,7 @@ var Table = React28.forwardRef(
3732
3786
  ...props
3733
3787
  }
3734
3788
  );
3735
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(TableSizeContext.Provider, { value: size, children: wrap ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3789
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(TableSizeContext.Provider, { value: size, children: wrap ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3736
3790
  "div",
3737
3791
  {
3738
3792
  "data-slot": "table-wrapper",
@@ -3743,7 +3797,7 @@ var Table = React28.forwardRef(
3743
3797
  }
3744
3798
  );
3745
3799
  Table.displayName = "Table";
3746
- var TableHeader = React28.forwardRef(({ className, sticky = false, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3800
+ var TableHeader = React29.forwardRef(({ className, sticky = false, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3747
3801
  "thead",
3748
3802
  {
3749
3803
  ref,
@@ -3757,7 +3811,7 @@ var TableHeader = React28.forwardRef(({ className, sticky = false, ...props }, r
3757
3811
  }
3758
3812
  ));
3759
3813
  TableHeader.displayName = "TableHeader";
3760
- var TableBody = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3814
+ var TableBody = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3761
3815
  "tbody",
3762
3816
  {
3763
3817
  ref,
@@ -3767,7 +3821,7 @@ var TableBody = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE_
3767
3821
  }
3768
3822
  ));
3769
3823
  TableBody.displayName = "TableBody";
3770
- var TableFooter = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3824
+ var TableFooter = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3771
3825
  "tfoot",
3772
3826
  {
3773
3827
  ref,
@@ -3780,7 +3834,7 @@ var TableFooter = React28.forwardRef(({ className, ...props }, ref) => /* @__PUR
3780
3834
  }
3781
3835
  ));
3782
3836
  TableFooter.displayName = "TableFooter";
3783
- var TableRow = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3837
+ var TableRow = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3784
3838
  "tr",
3785
3839
  {
3786
3840
  ref,
@@ -3793,9 +3847,9 @@ var TableRow = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__
3793
3847
  }
3794
3848
  ));
3795
3849
  TableRow.displayName = "TableRow";
3796
- var TableHead = React28.forwardRef(({ className, ...props }, ref) => {
3850
+ var TableHead = React29.forwardRef(({ className, ...props }, ref) => {
3797
3851
  const size = useTableSize();
3798
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3852
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3799
3853
  "th",
3800
3854
  {
3801
3855
  ref,
@@ -3810,9 +3864,9 @@ var TableHead = React28.forwardRef(({ className, ...props }, ref) => {
3810
3864
  );
3811
3865
  });
3812
3866
  TableHead.displayName = "TableHead";
3813
- var TableCell = React28.forwardRef(({ className, ...props }, ref) => {
3867
+ var TableCell = React29.forwardRef(({ className, ...props }, ref) => {
3814
3868
  const size = useTableSize();
3815
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3869
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3816
3870
  "td",
3817
3871
  {
3818
3872
  ref,
@@ -3827,7 +3881,7 @@ var TableCell = React28.forwardRef(({ className, ...props }, ref) => {
3827
3881
  );
3828
3882
  });
3829
3883
  TableCell.displayName = "TableCell";
3830
- var TableCaption = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3884
+ var TableCaption = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3831
3885
  "caption",
3832
3886
  {
3833
3887
  ref,
@@ -3840,11 +3894,11 @@ TableCaption.displayName = "TableCaption";
3840
3894
 
3841
3895
  // src/tabs.tsx
3842
3896
  var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"), 1);
3843
- var React29 = __toESM(require("react"), 1);
3844
- var import_jsx_runtime39 = require("react/jsx-runtime");
3897
+ var React30 = __toESM(require("react"), 1);
3898
+ var import_jsx_runtime40 = require("react/jsx-runtime");
3845
3899
  var Tabs = TabsPrimitive.Root;
3846
3900
  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";
3847
- var TabsList = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3901
+ var TabsList = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3848
3902
  TabsPrimitive.List,
3849
3903
  {
3850
3904
  ref,
@@ -3857,7 +3911,7 @@ var TabsList = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__
3857
3911
  }
3858
3912
  ));
3859
3913
  TabsList.displayName = TabsPrimitive.List.displayName;
3860
- var TabsTrigger = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3914
+ var TabsTrigger = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3861
3915
  TabsPrimitive.Trigger,
3862
3916
  {
3863
3917
  ref,
@@ -3871,7 +3925,7 @@ var TabsTrigger = React29.forwardRef(({ className, ...props }, ref) => /* @__PUR
3871
3925
  }
3872
3926
  ));
3873
3927
  TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
3874
- var TabsTriggerCore = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3928
+ var TabsTriggerCore = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3875
3929
  TabsPrimitive.Trigger,
3876
3930
  {
3877
3931
  ref,
@@ -3881,7 +3935,7 @@ var TabsTriggerCore = React29.forwardRef(({ className, ...props }, ref) => /* @_
3881
3935
  }
3882
3936
  ));
3883
3937
  TabsTriggerCore.displayName = TabsPrimitive.Trigger.displayName;
3884
- var TabsContent = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3938
+ var TabsContent = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3885
3939
  TabsPrimitive.Content,
3886
3940
  {
3887
3941
  ref,
@@ -3897,8 +3951,8 @@ var TabsContent = React29.forwardRef(({ className, ...props }, ref) => /* @__PUR
3897
3951
  TabsContent.displayName = TabsPrimitive.Content.displayName;
3898
3952
 
3899
3953
  // src/textarea.tsx
3900
- var React30 = __toESM(require("react"), 1);
3901
- var import_jsx_runtime40 = require("react/jsx-runtime");
3954
+ var React31 = __toESM(require("react"), 1);
3955
+ var import_jsx_runtime41 = require("react/jsx-runtime");
3902
3956
  var FILL_HEIGHT_REGEX = /(?:^|\s)(h-full|h-dvh|flex-1|grow)(?:\s|$)/;
3903
3957
  var FILL_WIDTH_REGEX = /(?:^|\s)(w-full|w-screen)(?:\s|$)/;
3904
3958
  function getStretchClasses(className) {
@@ -3911,7 +3965,7 @@ function getStretchClasses(className) {
3911
3965
  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";
3912
3966
  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";
3913
3967
  function useAutoGrow(ref, value, autoGrow = false, minHeight, maxHeight) {
3914
- React30.useEffect(() => {
3968
+ React31.useEffect(() => {
3915
3969
  if (!autoGrow || !ref.current) return;
3916
3970
  const textarea = ref.current;
3917
3971
  textarea.style.height = "auto";
@@ -3927,8 +3981,8 @@ function useAutoGrow(ref, value, autoGrow = false, minHeight, maxHeight) {
3927
3981
  }, [value, autoGrow, minHeight, maxHeight, ref]);
3928
3982
  }
3929
3983
  function useMergedTextareaRef(forwarded) {
3930
- const internal = React30.useRef(null);
3931
- const callback = React30.useCallback(
3984
+ const internal = React31.useRef(null);
3985
+ const callback = React31.useCallback(
3932
3986
  (node) => {
3933
3987
  internal.current = node;
3934
3988
  if (typeof forwarded === "function") forwarded(node);
@@ -3945,13 +3999,13 @@ function boxStyle(minHeight, maxHeight) {
3945
3999
  maxHeight: maxHeight ? `${maxHeight}px` : void 0
3946
4000
  };
3947
4001
  }
3948
- var Textarea = React30.forwardRef(
4002
+ var Textarea = React31.forwardRef(
3949
4003
  ({ className, autoGrow, minHeight, maxHeight, wrapperClassName, ...props }, forwarded) => {
3950
4004
  const { ref, callback } = useMergedTextareaRef(forwarded);
3951
4005
  const stretchClasses = getStretchClasses(className);
3952
4006
  const needsWrapper = Boolean(wrapperClassName || stretchClasses);
3953
4007
  useAutoGrow(ref, props.value, autoGrow, minHeight, maxHeight);
3954
- const textarea = /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
4008
+ const textarea = /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3955
4009
  "textarea",
3956
4010
  {
3957
4011
  ref: callback,
@@ -3967,15 +4021,15 @@ var Textarea = React30.forwardRef(
3967
4021
  }
3968
4022
  );
3969
4023
  if (!needsWrapper) return textarea;
3970
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: cn(stretchClasses, wrapperClassName), children: textarea });
4024
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: cn(stretchClasses, wrapperClassName), children: textarea });
3971
4025
  }
3972
4026
  );
3973
4027
  Textarea.displayName = "Textarea";
3974
- var BasicTextarea = React30.forwardRef(
4028
+ var BasicTextarea = React31.forwardRef(
3975
4029
  ({ className, autoGrow, minHeight, maxHeight, ...props }, forwarded) => {
3976
4030
  const { ref, callback } = useMergedTextareaRef(forwarded);
3977
4031
  useAutoGrow(ref, props.value, autoGrow, minHeight, maxHeight);
3978
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
4032
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3979
4033
  "textarea",
3980
4034
  {
3981
4035
  ref: callback,
@@ -3993,7 +4047,7 @@ var BasicTextarea = React30.forwardRef(
3993
4047
  }
3994
4048
  );
3995
4049
  BasicTextarea.displayName = "BasicTextarea";
3996
- var TextareaWithPrefix = React30.forwardRef(
4050
+ var TextareaWithPrefix = React31.forwardRef(
3997
4051
  ({
3998
4052
  prefix,
3999
4053
  className,
@@ -4005,13 +4059,13 @@ var TextareaWithPrefix = React30.forwardRef(
4005
4059
  }, forwarded) => {
4006
4060
  const { ref, callback } = useMergedTextareaRef(forwarded);
4007
4061
  useAutoGrow(ref, props.value, autoGrow, minHeight, maxHeight);
4008
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
4062
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
4009
4063
  "div",
4010
4064
  {
4011
4065
  className: cn("relative", getStretchClasses(className), wrapperClassName),
4012
4066
  children: [
4013
- prefix ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "pointer-events-none absolute left-3 top-3 z-10 text-muted-foreground", children: prefix }) : null,
4014
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
4067
+ prefix ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "pointer-events-none absolute left-3 top-3 z-10 text-muted-foreground", children: prefix }) : null,
4068
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4015
4069
  "textarea",
4016
4070
  {
4017
4071
  ref: callback,
@@ -4090,14 +4144,14 @@ function useScrollFade() {
4090
4144
 
4091
4145
  // src/hover-card.tsx
4092
4146
  var HoverCardPrimitive = __toESM(require("@radix-ui/react-hover-card"), 1);
4093
- var React31 = __toESM(require("react"), 1);
4094
- var import_jsx_runtime41 = require("react/jsx-runtime");
4147
+ var React32 = __toESM(require("react"), 1);
4148
+ var import_jsx_runtime42 = require("react/jsx-runtime");
4095
4149
  var HoverCard = HoverCardPrimitive.Root;
4096
4150
  var HoverCardTrigger = HoverCardPrimitive.Trigger;
4097
- var HoverCardContent = React31.forwardRef(
4151
+ var HoverCardContent = React32.forwardRef(
4098
4152
  ({ className, align = "center", sideOffset = 4, container, animated = true, ...props }, ref) => {
4099
4153
  const resolved = usePortalContainer(container);
4100
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(HoverCardPrimitive.Portal, { container: resolved ?? null, children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4154
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(HoverCardPrimitive.Portal, { container: resolved ?? null, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4101
4155
  HoverCardPrimitive.Content,
4102
4156
  {
4103
4157
  ref,
@@ -4118,9 +4172,9 @@ HoverCardContent.displayName = HoverCardPrimitive.Content.displayName;
4118
4172
 
4119
4173
  // src/radio-group.tsx
4120
4174
  var RadioGroupPrimitive = __toESM(require("@radix-ui/react-radio-group"), 1);
4121
- var React32 = __toESM(require("react"), 1);
4122
- var import_jsx_runtime42 = require("react/jsx-runtime");
4123
- var RadioGroupSizeContext = React32.createContext("md");
4175
+ var React33 = __toESM(require("react"), 1);
4176
+ var import_jsx_runtime43 = require("react/jsx-runtime");
4177
+ var RadioGroupSizeContext = React33.createContext("md");
4124
4178
  var CONTROL_CLASSES = {
4125
4179
  sm: "h-3.5 w-3.5",
4126
4180
  md: "h-4 w-4",
@@ -4131,7 +4185,7 @@ var DOT_CLASSES = {
4131
4185
  md: "h-1.5 w-1.5",
4132
4186
  lg: "h-2 w-2"
4133
4187
  };
4134
- var RadioGroup3 = React32.forwardRef(({ className, size = "md", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(RadioGroupSizeContext.Provider, { value: size, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4188
+ var RadioGroup3 = React33.forwardRef(({ className, size = "md", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(RadioGroupSizeContext.Provider, { value: size, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4135
4189
  RadioGroupPrimitive.Root,
4136
4190
  {
4137
4191
  ref,
@@ -4141,10 +4195,10 @@ var RadioGroup3 = React32.forwardRef(({ className, size = "md", ...props }, ref)
4141
4195
  }
4142
4196
  ) }));
4143
4197
  RadioGroup3.displayName = RadioGroupPrimitive.Root.displayName;
4144
- var RadioGroupItem = React32.forwardRef(({ className, size, ...props }, ref) => {
4145
- const groupSize = React32.useContext(RadioGroupSizeContext);
4198
+ var RadioGroupItem = React33.forwardRef(({ className, size, ...props }, ref) => {
4199
+ const groupSize = React33.useContext(RadioGroupSizeContext);
4146
4200
  const resolved = size ?? groupSize;
4147
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4201
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4148
4202
  RadioGroupPrimitive.Item,
4149
4203
  {
4150
4204
  ref,
@@ -4161,7 +4215,7 @@ var RadioGroupItem = React32.forwardRef(({ className, size, ...props }, ref) =>
4161
4215
  className
4162
4216
  ),
4163
4217
  ...props,
4164
- children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(RadioGroupPrimitive.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4218
+ children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(RadioGroupPrimitive.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4165
4219
  "div",
4166
4220
  {
4167
4221
  className: cn("rounded-full bg-primary-foreground", DOT_CLASSES[resolved])
@@ -4174,7 +4228,7 @@ RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
4174
4228
 
4175
4229
  // src/resizable.tsx
4176
4230
  var import_react_resizable_panels = require("react-resizable-panels");
4177
- var import_jsx_runtime43 = require("react/jsx-runtime");
4231
+ var import_jsx_runtime44 = require("react/jsx-runtime");
4178
4232
  var HANDLE_SIZES = {
4179
4233
  xs: "w-0.5 [&[aria-orientation=horizontal]]:h-0.5 [&[aria-orientation=horizontal]]:w-full",
4180
4234
  sm: "w-1 [&[aria-orientation=horizontal]]:h-1 [&[aria-orientation=horizontal]]:w-full",
@@ -4188,7 +4242,7 @@ var HANDLE_SIZES = {
4188
4242
  var ResizablePanelGroup = ({
4189
4243
  className,
4190
4244
  ...props
4191
- }) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4245
+ }) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4192
4246
  import_react_resizable_panels.Group,
4193
4247
  {
4194
4248
  "data-slot": "resizable-group",
@@ -4203,7 +4257,7 @@ var ResizableHandle = ({
4203
4257
  size = "xs",
4204
4258
  className,
4205
4259
  ...props
4206
- }) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4260
+ }) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4207
4261
  import_react_resizable_panels.Separator,
4208
4262
  {
4209
4263
  "data-slot": "resizable-handle",
@@ -4223,15 +4277,15 @@ var ResizableHandle = ({
4223
4277
  className
4224
4278
  ),
4225
4279
  ...props,
4226
- children: withHandle ? /* @__PURE__ */ (0, import_jsx_runtime43.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_runtime43.jsx)(DragHandleDots2Icon, { className: "h-2.5 w-2.5 group-aria-[orientation=horizontal]/handle:rotate-90" }) }) : null
4280
+ children: withHandle ? /* @__PURE__ */ (0, import_jsx_runtime44.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_runtime44.jsx)(DragHandleDots2Icon, { className: "h-2.5 w-2.5 group-aria-[orientation=horizontal]/handle:rotate-90" }) }) : null
4227
4281
  }
4228
4282
  );
4229
4283
  ResizableHandle.displayName = "ResizableHandle";
4230
4284
 
4231
4285
  // src/slider.tsx
4232
4286
  var SliderPrimitive = __toESM(require("@radix-ui/react-slider"), 1);
4233
- var React33 = __toESM(require("react"), 1);
4234
- var import_jsx_runtime44 = require("react/jsx-runtime");
4287
+ var React34 = __toESM(require("react"), 1);
4288
+ var import_jsx_runtime45 = require("react/jsx-runtime");
4235
4289
  var TRACK_CLASSES = {
4236
4290
  sm: "h-1",
4237
4291
  md: "h-1.5",
@@ -4242,12 +4296,12 @@ var THUMB_CLASSES = {
4242
4296
  md: "h-4 w-4",
4243
4297
  lg: "h-5 w-5"
4244
4298
  };
4245
- var Slider = React33.forwardRef(({ className, size = "md", ...props }, ref) => {
4299
+ var Slider = React34.forwardRef(({ className, size = "md", ...props }, ref) => {
4246
4300
  const thumbCount = Math.max(
4247
4301
  1,
4248
4302
  (props.value ?? props.defaultValue ?? [0]).length
4249
4303
  );
4250
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
4304
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
4251
4305
  SliderPrimitive.Root,
4252
4306
  {
4253
4307
  ref,
@@ -4259,7 +4313,7 @@ var Slider = React33.forwardRef(({ className, size = "md", ...props }, ref) => {
4259
4313
  ),
4260
4314
  ...props,
4261
4315
  children: [
4262
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4316
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4263
4317
  SliderPrimitive.Track,
4264
4318
  {
4265
4319
  "data-slot": "slider-track",
@@ -4268,7 +4322,7 @@ var Slider = React33.forwardRef(({ className, size = "md", ...props }, ref) => {
4268
4322
  TRACK_CLASSES[size],
4269
4323
  "data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"
4270
4324
  ),
4271
- children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4325
+ children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4272
4326
  SliderPrimitive.Range,
4273
4327
  {
4274
4328
  "data-slot": "slider-range",
@@ -4277,7 +4331,7 @@ var Slider = React33.forwardRef(({ className, size = "md", ...props }, ref) => {
4277
4331
  )
4278
4332
  }
4279
4333
  ),
4280
- Array.from({ length: thumbCount }, (_, index) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4334
+ Array.from({ length: thumbCount }, (_, index) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4281
4335
  SliderPrimitive.Thumb,
4282
4336
  {
4283
4337
  "data-slot": "slider-thumb",
@@ -4304,8 +4358,8 @@ Slider.displayName = SliderPrimitive.Root.displayName;
4304
4358
  var ToggleGroupPrimitive = __toESM(require("@radix-ui/react-toggle-group"), 1);
4305
4359
  var TogglePrimitive = __toESM(require("@radix-ui/react-toggle"), 1);
4306
4360
  var import_class_variance_authority6 = require("class-variance-authority");
4307
- var React34 = __toESM(require("react"), 1);
4308
- var import_jsx_runtime45 = require("react/jsx-runtime");
4361
+ var React35 = __toESM(require("react"), 1);
4362
+ var import_jsx_runtime46 = require("react/jsx-runtime");
4309
4363
  var toggleVariants = (0, import_class_variance_authority6.cva)(
4310
4364
  "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",
4311
4365
  {
@@ -4326,7 +4380,7 @@ var toggleVariants = (0, import_class_variance_authority6.cva)(
4326
4380
  }
4327
4381
  }
4328
4382
  );
4329
- var Toggle = React34.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4383
+ var Toggle = React35.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4330
4384
  TogglePrimitive.Root,
4331
4385
  {
4332
4386
  ref,
@@ -4336,21 +4390,21 @@ var Toggle = React34.forwardRef(({ className, variant, size, ...props }, ref) =>
4336
4390
  }
4337
4391
  ));
4338
4392
  Toggle.displayName = TogglePrimitive.Root.displayName;
4339
- var ToggleGroupContext = React34.createContext({ size: "default", variant: "default" });
4340
- var ToggleGroup = React34.forwardRef(({ className, variant, size, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4393
+ var ToggleGroupContext = React35.createContext({ size: "default", variant: "default" });
4394
+ var ToggleGroup = React35.forwardRef(({ className, variant, size, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4341
4395
  ToggleGroupPrimitive.Root,
4342
4396
  {
4343
4397
  ref,
4344
4398
  "data-slot": "toggle-group",
4345
4399
  className: cn("flex items-center justify-center gap-1", className),
4346
4400
  ...props,
4347
- children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(ToggleGroupContext.Provider, { value: { variant, size }, children })
4401
+ children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(ToggleGroupContext.Provider, { value: { variant, size }, children })
4348
4402
  }
4349
4403
  ));
4350
4404
  ToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;
4351
- var ToggleGroupItem = React34.forwardRef(({ className, children, variant, size, ...props }, ref) => {
4352
- const context = React34.useContext(ToggleGroupContext);
4353
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4405
+ var ToggleGroupItem = React35.forwardRef(({ className, children, variant, size, ...props }, ref) => {
4406
+ const context = React35.useContext(ToggleGroupContext);
4407
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4354
4408
  ToggleGroupPrimitive.Item,
4355
4409
  {
4356
4410
  ref,
@@ -4371,14 +4425,14 @@ ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;
4371
4425
 
4372
4426
  // src/tooltip.tsx
4373
4427
  var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"), 1);
4374
- var React35 = __toESM(require("react"), 1);
4375
- var import_jsx_runtime46 = require("react/jsx-runtime");
4428
+ var React36 = __toESM(require("react"), 1);
4429
+ var import_jsx_runtime47 = require("react/jsx-runtime");
4376
4430
  var TooltipProvider = TooltipPrimitive.Provider;
4377
4431
  var Tooltip = TooltipPrimitive.Root;
4378
4432
  var TooltipTrigger = TooltipPrimitive.Trigger;
4379
- var TooltipContent = React35.forwardRef(({ className, sideOffset = 4, container, animated = true, ...props }, ref) => {
4433
+ var TooltipContent = React36.forwardRef(({ className, sideOffset = 4, container, animated = true, ...props }, ref) => {
4380
4434
  const resolved = usePortalContainer(container);
4381
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(TooltipPrimitive.Portal, { container: resolved ?? null, children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4435
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(TooltipPrimitive.Portal, { container: resolved ?? null, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
4382
4436
  TooltipPrimitive.Content,
4383
4437
  {
4384
4438
  ref,