@foundrykit/primitives 1.0.4 → 1.0.6

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
@@ -98,9 +98,11 @@ __export(index_exports, {
98
98
  TabsList: () => TabsList,
99
99
  TabsTrigger: () => TabsTrigger,
100
100
  Textarea: () => Textarea,
101
+ Toggle: () => Toggle,
101
102
  badgeVariants: () => badgeVariants,
102
103
  buttonVariants: () => buttonVariants,
103
- cn: () => import_utils19.cn
104
+ cn: () => import_utils20.cn,
105
+ toggleVariants: () => toggleVariants
104
106
  });
105
107
  module.exports = __toCommonJS(index_exports);
106
108
 
@@ -212,15 +214,56 @@ function Badge({
212
214
  );
213
215
  }
214
216
 
215
- // src/components/card/index.tsx
216
- var React2 = __toESM(require("react"), 1);
217
+ // src/components/toggle/index.tsx
218
+ var TogglePrimitive = __toESM(require("@radix-ui/react-toggle"), 1);
219
+ var import_class_variance_authority3 = require("class-variance-authority");
217
220
  var import_utils4 = require("@foundrykit/utils");
218
221
  var import_jsx_runtime4 = require("react/jsx-runtime");
219
- var Card = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
222
+ var toggleVariants = (0, import_class_variance_authority3.cva)(
223
+ "inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",
224
+ {
225
+ variants: {
226
+ variant: {
227
+ default: "bg-transparent",
228
+ outline: "border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"
229
+ },
230
+ size: {
231
+ default: "h-9 px-2 min-w-9",
232
+ sm: "h-8 px-1.5 min-w-8",
233
+ lg: "h-10 px-2.5 min-w-10"
234
+ }
235
+ },
236
+ defaultVariants: {
237
+ variant: "default",
238
+ size: "default"
239
+ }
240
+ }
241
+ );
242
+ function Toggle({
243
+ className,
244
+ variant,
245
+ size,
246
+ ...props
247
+ }) {
248
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
249
+ TogglePrimitive.Root,
250
+ {
251
+ "data-slot": "toggle",
252
+ className: (0, import_utils4.cn)(toggleVariants({ variant, size, className })),
253
+ ...props
254
+ }
255
+ );
256
+ }
257
+
258
+ // src/components/card/index.tsx
259
+ var React2 = __toESM(require("react"), 1);
260
+ var import_utils5 = require("@foundrykit/utils");
261
+ var import_jsx_runtime5 = require("react/jsx-runtime");
262
+ var Card = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
220
263
  "div",
221
264
  {
222
265
  ref,
223
- className: (0, import_utils4.cn)(
266
+ className: (0, import_utils5.cn)(
224
267
  "bg-card text-card-foreground rounded-xl border shadow",
225
268
  className
226
269
  ),
@@ -228,40 +271,40 @@ var Card = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
228
271
  }
229
272
  ));
230
273
  Card.displayName = "Card";
231
- var CardHeader = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
274
+ var CardHeader = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
232
275
  "div",
233
276
  {
234
277
  ref,
235
- className: (0, import_utils4.cn)("flex flex-col space-y-1.5 p-6", className),
278
+ className: (0, import_utils5.cn)("flex flex-col space-y-1.5 p-6", className),
236
279
  ...props
237
280
  }
238
281
  ));
239
282
  CardHeader.displayName = "CardHeader";
240
- var CardTitle = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
283
+ var CardTitle = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
241
284
  "h3",
242
285
  {
243
286
  ref,
244
- className: (0, import_utils4.cn)("font-semibold leading-none tracking-tight", className),
287
+ className: (0, import_utils5.cn)("font-semibold leading-none tracking-tight", className),
245
288
  ...props
246
289
  }
247
290
  ));
248
291
  CardTitle.displayName = "CardTitle";
249
- var CardDescription = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
292
+ var CardDescription = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
250
293
  "p",
251
294
  {
252
295
  ref,
253
- className: (0, import_utils4.cn)("text-muted-foreground text-sm", className),
296
+ className: (0, import_utils5.cn)("text-muted-foreground text-sm", className),
254
297
  ...props
255
298
  }
256
299
  ));
257
300
  CardDescription.displayName = "CardDescription";
258
- var CardContent = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { ref, className: (0, import_utils4.cn)("p-6 pt-0", className), ...props }));
301
+ var CardContent = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { ref, className: (0, import_utils5.cn)("p-6 pt-0", className), ...props }));
259
302
  CardContent.displayName = "CardContent";
260
- var CardFooter = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
303
+ var CardFooter = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
261
304
  "div",
262
305
  {
263
306
  ref,
264
- className: (0, import_utils4.cn)("flex items-center p-6 pt-0", className),
307
+ className: (0, import_utils5.cn)("flex items-center p-6 pt-0", className),
265
308
  ...props
266
309
  }
267
310
  ));
@@ -269,17 +312,17 @@ CardFooter.displayName = "CardFooter";
269
312
 
270
313
  // src/components/avatar/index.tsx
271
314
  var AvatarPrimitive = __toESM(require("@radix-ui/react-avatar"), 1);
272
- var import_utils5 = require("@foundrykit/utils");
273
- var import_jsx_runtime5 = require("react/jsx-runtime");
315
+ var import_utils6 = require("@foundrykit/utils");
316
+ var import_jsx_runtime6 = require("react/jsx-runtime");
274
317
  function Avatar({
275
318
  className,
276
319
  ...props
277
320
  }) {
278
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
321
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
279
322
  AvatarPrimitive.Root,
280
323
  {
281
324
  "data-slot": "avatar",
282
- className: (0, import_utils5.cn)(
325
+ className: (0, import_utils6.cn)(
283
326
  "relative flex size-8 shrink-0 overflow-hidden rounded-full",
284
327
  className
285
328
  ),
@@ -291,11 +334,11 @@ function AvatarImage({
291
334
  className,
292
335
  ...props
293
336
  }) {
294
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
337
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
295
338
  AvatarPrimitive.Image,
296
339
  {
297
340
  "data-slot": "avatar-image",
298
- className: (0, import_utils5.cn)("aspect-square size-full", className),
341
+ className: (0, import_utils6.cn)("aspect-square size-full", className),
299
342
  ...props
300
343
  }
301
344
  );
@@ -304,11 +347,11 @@ function AvatarFallback({
304
347
  className,
305
348
  ...props
306
349
  }) {
307
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
350
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
308
351
  AvatarPrimitive.Fallback,
309
352
  {
310
353
  "data-slot": "avatar-fallback",
311
- className: (0, import_utils5.cn)(
354
+ className: (0, import_utils6.cn)(
312
355
  "bg-muted flex size-full items-center justify-center rounded-full",
313
356
  className
314
357
  ),
@@ -320,17 +363,17 @@ function AvatarFallback({
320
363
  // src/components/breadcrumb/index.tsx
321
364
  var import_react_slot3 = require("@radix-ui/react-slot");
322
365
  var import_lucide_react = require("lucide-react");
323
- var import_utils6 = require("@foundrykit/utils");
324
- var import_jsx_runtime6 = require("react/jsx-runtime");
366
+ var import_utils7 = require("@foundrykit/utils");
367
+ var import_jsx_runtime7 = require("react/jsx-runtime");
325
368
  function Breadcrumb({ ...props }) {
326
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("nav", { "aria-label": "breadcrumb", "data-slot": "breadcrumb", ...props });
369
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("nav", { "aria-label": "breadcrumb", "data-slot": "breadcrumb", ...props });
327
370
  }
328
371
  function BreadcrumbList({ className, ...props }) {
329
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
372
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
330
373
  "ol",
331
374
  {
332
375
  "data-slot": "breadcrumb-list",
333
- className: (0, import_utils6.cn)(
376
+ className: (0, import_utils7.cn)(
334
377
  "text-muted-foreground flex flex-wrap items-center gap-1.5 break-words text-sm sm:gap-2.5",
335
378
  className
336
379
  ),
@@ -339,11 +382,11 @@ function BreadcrumbList({ className, ...props }) {
339
382
  );
340
383
  }
341
384
  function BreadcrumbItem({ className, ...props }) {
342
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
385
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
343
386
  "li",
344
387
  {
345
388
  "data-slot": "breadcrumb-item",
346
- className: (0, import_utils6.cn)("inline-flex items-center gap-1.5", className),
389
+ className: (0, import_utils7.cn)("inline-flex items-center gap-1.5", className),
347
390
  ...props
348
391
  }
349
392
  );
@@ -354,24 +397,24 @@ function BreadcrumbLink({
354
397
  ...props
355
398
  }) {
356
399
  const Comp = asChild ? import_react_slot3.Slot : "a";
357
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
400
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
358
401
  Comp,
359
402
  {
360
403
  "data-slot": "breadcrumb-link",
361
- className: (0, import_utils6.cn)("hover:text-foreground transition-colors", className),
404
+ className: (0, import_utils7.cn)("hover:text-foreground transition-colors", className),
362
405
  ...props
363
406
  }
364
407
  );
365
408
  }
366
409
  function BreadcrumbPage({ className, ...props }) {
367
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
410
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
368
411
  "span",
369
412
  {
370
413
  "data-slot": "breadcrumb-page",
371
414
  role: "link",
372
415
  "aria-disabled": "true",
373
416
  "aria-current": "page",
374
- className: (0, import_utils6.cn)("text-foreground font-normal", className),
417
+ className: (0, import_utils7.cn)("text-foreground font-normal", className),
375
418
  ...props
376
419
  }
377
420
  );
@@ -381,15 +424,15 @@ function BreadcrumbSeparator({
381
424
  className,
382
425
  ...props
383
426
  }) {
384
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
427
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
385
428
  "li",
386
429
  {
387
430
  "data-slot": "breadcrumb-separator",
388
431
  role: "presentation",
389
432
  "aria-hidden": "true",
390
- className: (0, import_utils6.cn)("[&>svg]:size-3.5", className),
433
+ className: (0, import_utils7.cn)("[&>svg]:size-3.5", className),
391
434
  ...props,
392
- children: children ?? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_lucide_react.ChevronRight, {})
435
+ children: children ?? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_lucide_react.ChevronRight, {})
393
436
  }
394
437
  );
395
438
  }
@@ -397,17 +440,17 @@ function BreadcrumbEllipsis({
397
440
  className,
398
441
  ...props
399
442
  }) {
400
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
443
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
401
444
  "span",
402
445
  {
403
446
  "data-slot": "breadcrumb-ellipsis",
404
447
  role: "presentation",
405
448
  "aria-hidden": "true",
406
- className: (0, import_utils6.cn)("flex size-9 items-center justify-center", className),
449
+ className: (0, import_utils7.cn)("flex size-9 items-center justify-center", className),
407
450
  ...props,
408
451
  children: [
409
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_lucide_react.MoreHorizontal, { className: "size-4" }),
410
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "sr-only", children: "More" })
452
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_lucide_react.MoreHorizontal, { className: "size-4" }),
453
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "sr-only", children: "More" })
411
454
  ]
412
455
  }
413
456
  );
@@ -416,27 +459,27 @@ function BreadcrumbEllipsis({
416
459
  // src/components/checkbox/index.tsx
417
460
  var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"), 1);
418
461
  var import_lucide_react2 = require("lucide-react");
419
- var import_utils7 = require("@foundrykit/utils");
420
- var import_jsx_runtime7 = require("react/jsx-runtime");
462
+ var import_utils8 = require("@foundrykit/utils");
463
+ var import_jsx_runtime8 = require("react/jsx-runtime");
421
464
  function Checkbox({
422
465
  className,
423
466
  ...props
424
467
  }) {
425
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
468
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
426
469
  CheckboxPrimitive.Root,
427
470
  {
428
471
  "data-slot": "checkbox",
429
- className: (0, import_utils7.cn)(
472
+ className: (0, import_utils8.cn)(
430
473
  "border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive shadow-xs peer size-4 shrink-0 rounded-[4px] border outline-none transition-shadow focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
431
474
  className
432
475
  ),
433
476
  ...props,
434
- children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
477
+ children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
435
478
  CheckboxPrimitive.Indicator,
436
479
  {
437
480
  "data-slot": "checkbox-indicator",
438
481
  className: "flex items-center justify-center text-current transition-none",
439
- children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_lucide_react2.CheckIcon, { className: "size-3.5" })
482
+ children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react2.CheckIcon, { className: "size-3.5" })
440
483
  }
441
484
  )
442
485
  }
@@ -446,22 +489,22 @@ function Checkbox({
446
489
  // src/components/dropdown/index.tsx
447
490
  var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"), 1);
448
491
  var import_lucide_react3 = require("lucide-react");
449
- var import_utils8 = require("@foundrykit/utils");
450
- var import_jsx_runtime8 = require("react/jsx-runtime");
492
+ var import_utils9 = require("@foundrykit/utils");
493
+ var import_jsx_runtime9 = require("react/jsx-runtime");
451
494
  function DropdownMenu({
452
495
  ...props
453
496
  }) {
454
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(DropdownMenuPrimitive.Root, { "data-slot": "dropdown-menu", ...props });
497
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(DropdownMenuPrimitive.Root, { "data-slot": "dropdown-menu", ...props });
455
498
  }
456
499
  function DropdownMenuPortal({
457
500
  ...props
458
501
  }) {
459
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(DropdownMenuPrimitive.Portal, { "data-slot": "dropdown-menu-portal", ...props });
502
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(DropdownMenuPrimitive.Portal, { "data-slot": "dropdown-menu-portal", ...props });
460
503
  }
461
504
  function DropdownMenuTrigger({
462
505
  ...props
463
506
  }) {
464
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
507
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
465
508
  DropdownMenuPrimitive.Trigger,
466
509
  {
467
510
  "data-slot": "dropdown-menu-trigger",
@@ -474,12 +517,12 @@ function DropdownMenuContent({
474
517
  sideOffset = 4,
475
518
  ...props
476
519
  }) {
477
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
520
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
478
521
  DropdownMenuPrimitive.Content,
479
522
  {
480
523
  "data-slot": "dropdown-menu-content",
481
524
  sideOffset,
482
- className: (0, import_utils8.cn)(
525
+ className: (0, import_utils9.cn)(
483
526
  "bg-popover text-popover-foreground 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 max-h-(--radix-dropdown-menu-content-available-height) origin-(--radix-dropdown-menu-content-transform-origin) z-50 min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border p-1 shadow-md",
484
527
  className
485
528
  ),
@@ -490,7 +533,7 @@ function DropdownMenuContent({
490
533
  function DropdownMenuGroup({
491
534
  ...props
492
535
  }) {
493
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(DropdownMenuPrimitive.Group, { "data-slot": "dropdown-menu-group", ...props });
536
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(DropdownMenuPrimitive.Group, { "data-slot": "dropdown-menu-group", ...props });
494
537
  }
495
538
  function DropdownMenuItem({
496
539
  className,
@@ -498,13 +541,13 @@ function DropdownMenuItem({
498
541
  variant = "default",
499
542
  ...props
500
543
  }) {
501
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
544
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
502
545
  DropdownMenuPrimitive.Item,
503
546
  {
504
547
  "data-slot": "dropdown-menu-item",
505
548
  "data-inset": inset,
506
549
  "data-variant": variant,
507
- className: (0, import_utils8.cn)(
550
+ className: (0, import_utils9.cn)(
508
551
  "focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground outline-hidden relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm data-[disabled]:pointer-events-none data-[inset]:pl-8 data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
509
552
  className
510
553
  ),
@@ -518,18 +561,18 @@ function DropdownMenuCheckboxItem({
518
561
  checked,
519
562
  ...props
520
563
  }) {
521
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
564
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
522
565
  DropdownMenuPrimitive.CheckboxItem,
523
566
  {
524
567
  "data-slot": "dropdown-menu-checkbox-item",
525
- className: (0, import_utils8.cn)(
568
+ className: (0, import_utils9.cn)(
526
569
  "focus:bg-accent focus:text-accent-foreground outline-hidden relative flex cursor-default select-none items-center gap-2 rounded-sm py-1.5 pl-8 pr-2 text-sm data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
527
570
  className
528
571
  ),
529
572
  checked,
530
573
  ...props,
531
574
  children: [
532
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react3.CheckIcon, { className: "size-4" }) }) }),
575
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react3.CheckIcon, { className: "size-4" }) }) }),
533
576
  children
534
577
  ]
535
578
  }
@@ -538,7 +581,7 @@ function DropdownMenuCheckboxItem({
538
581
  function DropdownMenuRadioGroup({
539
582
  ...props
540
583
  }) {
541
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
584
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
542
585
  DropdownMenuPrimitive.RadioGroup,
543
586
  {
544
587
  "data-slot": "dropdown-menu-radio-group",
@@ -551,17 +594,17 @@ function DropdownMenuRadioItem({
551
594
  children,
552
595
  ...props
553
596
  }) {
554
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
597
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
555
598
  DropdownMenuPrimitive.RadioItem,
556
599
  {
557
600
  "data-slot": "dropdown-menu-radio-item",
558
- className: (0, import_utils8.cn)(
601
+ className: (0, import_utils9.cn)(
559
602
  "focus:bg-accent focus:text-accent-foreground outline-hidden relative flex cursor-default select-none items-center gap-2 rounded-sm py-1.5 pl-8 pr-2 text-sm data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
560
603
  className
561
604
  ),
562
605
  ...props,
563
606
  children: [
564
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react3.CircleIcon, { className: "size-2 fill-current" }) }) }),
607
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react3.CircleIcon, { className: "size-2 fill-current" }) }) }),
565
608
  children
566
609
  ]
567
610
  }
@@ -572,12 +615,12 @@ function DropdownMenuLabel({
572
615
  inset,
573
616
  ...props
574
617
  }) {
575
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
618
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
576
619
  DropdownMenuPrimitive.Label,
577
620
  {
578
621
  "data-slot": "dropdown-menu-label",
579
622
  "data-inset": inset,
580
- className: (0, import_utils8.cn)(
623
+ className: (0, import_utils9.cn)(
581
624
  "px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",
582
625
  className
583
626
  ),
@@ -589,11 +632,11 @@ function DropdownMenuSeparator({
589
632
  className,
590
633
  ...props
591
634
  }) {
592
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
635
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
593
636
  DropdownMenuPrimitive.Separator,
594
637
  {
595
638
  "data-slot": "dropdown-menu-separator",
596
- className: (0, import_utils8.cn)("bg-border -mx-1 my-1 h-px", className),
639
+ className: (0, import_utils9.cn)("bg-border -mx-1 my-1 h-px", className),
597
640
  ...props
598
641
  }
599
642
  );
@@ -602,11 +645,11 @@ function DropdownMenuShortcut({
602
645
  className,
603
646
  ...props
604
647
  }) {
605
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
648
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
606
649
  "span",
607
650
  {
608
651
  "data-slot": "dropdown-menu-shortcut",
609
- className: (0, import_utils8.cn)(
652
+ className: (0, import_utils9.cn)(
610
653
  "text-muted-foreground ml-auto text-xs tracking-widest",
611
654
  className
612
655
  ),
@@ -617,7 +660,7 @@ function DropdownMenuShortcut({
617
660
  function DropdownMenuSub({
618
661
  ...props
619
662
  }) {
620
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(DropdownMenuPrimitive.Sub, { "data-slot": "dropdown-menu-sub", ...props });
663
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(DropdownMenuPrimitive.Sub, { "data-slot": "dropdown-menu-sub", ...props });
621
664
  }
622
665
  function DropdownMenuSubTrigger({
623
666
  className,
@@ -625,19 +668,19 @@ function DropdownMenuSubTrigger({
625
668
  children,
626
669
  ...props
627
670
  }) {
628
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
671
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
629
672
  DropdownMenuPrimitive.SubTrigger,
630
673
  {
631
674
  "data-slot": "dropdown-menu-sub-trigger",
632
675
  "data-inset": inset,
633
- className: (0, import_utils8.cn)(
676
+ className: (0, import_utils9.cn)(
634
677
  "focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground outline-hidden flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm data-[inset]:pl-8",
635
678
  className
636
679
  ),
637
680
  ...props,
638
681
  children: [
639
682
  children,
640
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react3.ChevronRightIcon, { className: "ml-auto size-4" })
683
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react3.ChevronRightIcon, { className: "ml-auto size-4" })
641
684
  ]
642
685
  }
643
686
  );
@@ -646,11 +689,11 @@ function DropdownMenuSubContent({
646
689
  className,
647
690
  ...props
648
691
  }) {
649
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
692
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
650
693
  DropdownMenuPrimitive.SubContent,
651
694
  {
652
695
  "data-slot": "dropdown-menu-sub-content",
653
- className: (0, import_utils8.cn)(
696
+ className: (0, import_utils9.cn)(
654
697
  "bg-popover text-popover-foreground 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 origin-(--radix-dropdown-menu-content-transform-origin) z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-lg",
655
698
  className
656
699
  ),
@@ -661,17 +704,17 @@ function DropdownMenuSubContent({
661
704
 
662
705
  // src/components/label/index.tsx
663
706
  var LabelPrimitive = __toESM(require("@radix-ui/react-label"), 1);
664
- var import_utils9 = require("@foundrykit/utils");
665
- var import_jsx_runtime9 = require("react/jsx-runtime");
707
+ var import_utils10 = require("@foundrykit/utils");
708
+ var import_jsx_runtime10 = require("react/jsx-runtime");
666
709
  function Label2({
667
710
  className,
668
711
  ...props
669
712
  }) {
670
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
713
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
671
714
  LabelPrimitive.Root,
672
715
  {
673
716
  "data-slot": "label",
674
- className: (0, import_utils9.cn)(
717
+ className: (0, import_utils10.cn)(
675
718
  "flex select-none items-center gap-2 text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-50 group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50",
676
719
  className
677
720
  ),
@@ -683,22 +726,22 @@ function Label2({
683
726
  // src/components/select/index.tsx
684
727
  var SelectPrimitive = __toESM(require("@radix-ui/react-select"), 1);
685
728
  var import_lucide_react4 = require("lucide-react");
686
- var import_utils10 = require("@foundrykit/utils");
687
- var import_jsx_runtime10 = require("react/jsx-runtime");
729
+ var import_utils11 = require("@foundrykit/utils");
730
+ var import_jsx_runtime11 = require("react/jsx-runtime");
688
731
  function Select({
689
732
  ...props
690
733
  }) {
691
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(SelectPrimitive.Root, { "data-slot": "select", ...props });
734
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(SelectPrimitive.Root, { "data-slot": "select", ...props });
692
735
  }
693
736
  function SelectGroup({
694
737
  ...props
695
738
  }) {
696
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(SelectPrimitive.Group, { "data-slot": "select-group", ...props });
739
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(SelectPrimitive.Group, { "data-slot": "select-group", ...props });
697
740
  }
698
741
  function SelectValue({
699
742
  ...props
700
743
  }) {
701
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(SelectPrimitive.Value, { "data-slot": "select-value", ...props });
744
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(SelectPrimitive.Value, { "data-slot": "select-value", ...props });
702
745
  }
703
746
  function SelectTrigger({
704
747
  className,
@@ -706,19 +749,19 @@ function SelectTrigger({
706
749
  children,
707
750
  ...props
708
751
  }) {
709
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
752
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
710
753
  SelectPrimitive.Trigger,
711
754
  {
712
755
  "data-slot": "select-trigger",
713
756
  "data-size": size,
714
- className: (0, import_utils10.cn)(
757
+ className: (0, import_utils11.cn)(
715
758
  "border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 shadow-xs flex w-fit items-center justify-between gap-2 whitespace-nowrap rounded-md border bg-transparent px-3 py-2 text-sm outline-none transition-[color,box-shadow] focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
716
759
  className
717
760
  ),
718
761
  ...props,
719
762
  children: [
720
763
  children,
721
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_lucide_react4.ChevronDownIcon, { className: "size-4 opacity-50" }) })
764
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_lucide_react4.ChevronDownIcon, { className: "size-4 opacity-50" }) })
722
765
  ]
723
766
  }
724
767
  );
@@ -729,11 +772,11 @@ function SelectContent({
729
772
  position = "popper",
730
773
  ...props
731
774
  }) {
732
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(SelectPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
775
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(SelectPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
733
776
  SelectPrimitive.Content,
734
777
  {
735
778
  "data-slot": "select-content",
736
- className: (0, import_utils10.cn)(
779
+ className: (0, import_utils11.cn)(
737
780
  "bg-popover text-popover-foreground 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 max-h-(--radix-select-content-available-height) origin-(--radix-select-content-transform-origin) relative z-50 min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border shadow-md",
738
781
  position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
739
782
  className
@@ -741,18 +784,18 @@ function SelectContent({
741
784
  position,
742
785
  ...props,
743
786
  children: [
744
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(SelectScrollUpButton, {}),
745
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
787
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(SelectScrollUpButton, {}),
788
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
746
789
  SelectPrimitive.Viewport,
747
790
  {
748
- className: (0, import_utils10.cn)(
791
+ className: (0, import_utils11.cn)(
749
792
  "p-1",
750
793
  position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"
751
794
  ),
752
795
  children
753
796
  }
754
797
  ),
755
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(SelectScrollDownButton, {})
798
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(SelectScrollDownButton, {})
756
799
  ]
757
800
  }
758
801
  ) });
@@ -761,11 +804,11 @@ function SelectLabel({
761
804
  className,
762
805
  ...props
763
806
  }) {
764
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
807
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
765
808
  SelectPrimitive.Label,
766
809
  {
767
810
  "data-slot": "select-label",
768
- className: (0, import_utils10.cn)("text-muted-foreground px-2 py-1.5 text-xs", className),
811
+ className: (0, import_utils11.cn)("text-muted-foreground px-2 py-1.5 text-xs", className),
769
812
  ...props
770
813
  }
771
814
  );
@@ -775,18 +818,18 @@ function SelectItem({
775
818
  children,
776
819
  ...props
777
820
  }) {
778
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
821
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
779
822
  SelectPrimitive.Item,
780
823
  {
781
824
  "data-slot": "select-item",
782
- className: (0, import_utils10.cn)(
825
+ className: (0, import_utils11.cn)(
783
826
  "focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground outline-hidden *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2 relative flex w-full cursor-default select-none items-center gap-2 rounded-sm py-1.5 pl-2 pr-8 text-sm data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
784
827
  className
785
828
  ),
786
829
  ...props,
787
830
  children: [
788
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_lucide_react4.CheckIcon, { className: "size-4" }) }) }),
789
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(SelectPrimitive.ItemText, { children })
831
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_lucide_react4.CheckIcon, { className: "size-4" }) }) }),
832
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(SelectPrimitive.ItemText, { children })
790
833
  ]
791
834
  }
792
835
  );
@@ -795,11 +838,11 @@ function SelectSeparator({
795
838
  className,
796
839
  ...props
797
840
  }) {
798
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
841
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
799
842
  SelectPrimitive.Separator,
800
843
  {
801
844
  "data-slot": "select-separator",
802
- className: (0, import_utils10.cn)("bg-border pointer-events-none -mx-1 my-1 h-px", className),
845
+ className: (0, import_utils11.cn)("bg-border pointer-events-none -mx-1 my-1 h-px", className),
803
846
  ...props
804
847
  }
805
848
  );
@@ -808,16 +851,16 @@ function SelectScrollUpButton({
808
851
  className,
809
852
  ...props
810
853
  }) {
811
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
854
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
812
855
  SelectPrimitive.ScrollUpButton,
813
856
  {
814
857
  "data-slot": "select-scroll-up-button",
815
- className: (0, import_utils10.cn)(
858
+ className: (0, import_utils11.cn)(
816
859
  "flex cursor-default items-center justify-center py-1",
817
860
  className
818
861
  ),
819
862
  ...props,
820
- children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_lucide_react4.ChevronUpIcon, { className: "size-4" })
863
+ children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_lucide_react4.ChevronUpIcon, { className: "size-4" })
821
864
  }
822
865
  );
823
866
  }
@@ -825,16 +868,16 @@ function SelectScrollDownButton({
825
868
  className,
826
869
  ...props
827
870
  }) {
828
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
871
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
829
872
  SelectPrimitive.ScrollDownButton,
830
873
  {
831
874
  "data-slot": "select-scroll-down-button",
832
- className: (0, import_utils10.cn)(
875
+ className: (0, import_utils11.cn)(
833
876
  "flex cursor-default items-center justify-center py-1",
834
877
  className
835
878
  ),
836
879
  ...props,
837
- children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_lucide_react4.ChevronDownIcon, { className: "size-4" })
880
+ children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_lucide_react4.ChevronDownIcon, { className: "size-4" })
838
881
  }
839
882
  );
840
883
  }
@@ -842,17 +885,17 @@ function SelectScrollDownButton({
842
885
  // src/components/radio-group/index.tsx
843
886
  var RadioGroupPrimitive = __toESM(require("@radix-ui/react-radio-group"), 1);
844
887
  var import_lucide_react5 = require("lucide-react");
845
- var import_utils11 = require("@foundrykit/utils");
846
- var import_jsx_runtime11 = require("react/jsx-runtime");
888
+ var import_utils12 = require("@foundrykit/utils");
889
+ var import_jsx_runtime12 = require("react/jsx-runtime");
847
890
  function RadioGroup2({
848
891
  className,
849
892
  ...props
850
893
  }) {
851
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
894
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
852
895
  RadioGroupPrimitive.Root,
853
896
  {
854
897
  "data-slot": "radio-group",
855
- className: (0, import_utils11.cn)("grid gap-3", className),
898
+ className: (0, import_utils12.cn)("grid gap-3", className),
856
899
  ...props
857
900
  }
858
901
  );
@@ -861,21 +904,21 @@ function RadioGroupItem({
861
904
  className,
862
905
  ...props
863
906
  }) {
864
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
907
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
865
908
  RadioGroupPrimitive.Item,
866
909
  {
867
910
  "data-slot": "radio-group-item",
868
- className: (0, import_utils11.cn)(
911
+ className: (0, import_utils12.cn)(
869
912
  "border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 shadow-xs aspect-square size-4 shrink-0 rounded-full border outline-none transition-[color,box-shadow] focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
870
913
  className
871
914
  ),
872
915
  ...props,
873
- children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
916
+ children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
874
917
  RadioGroupPrimitive.Indicator,
875
918
  {
876
919
  "data-slot": "radio-group-indicator",
877
920
  className: "relative flex items-center justify-center",
878
- children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_lucide_react5.CircleIcon, { className: "fill-primary absolute left-1/2 top-1/2 size-2 -translate-x-1/2 -translate-y-1/2" })
921
+ children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_lucide_react5.CircleIcon, { className: "fill-primary absolute left-1/2 top-1/2 size-2 -translate-x-1/2 -translate-y-1/2" })
879
922
  }
880
923
  )
881
924
  }
@@ -884,21 +927,21 @@ function RadioGroupItem({
884
927
 
885
928
  // src/components/separator/index.tsx
886
929
  var SeparatorPrimitive = __toESM(require("@radix-ui/react-separator"), 1);
887
- var import_utils12 = require("@foundrykit/utils");
888
- var import_jsx_runtime12 = require("react/jsx-runtime");
930
+ var import_utils13 = require("@foundrykit/utils");
931
+ var import_jsx_runtime13 = require("react/jsx-runtime");
889
932
  function Separator3({
890
933
  className,
891
934
  orientation = "horizontal",
892
935
  decorative = true,
893
936
  ...props
894
937
  }) {
895
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
938
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
896
939
  SeparatorPrimitive.Root,
897
940
  {
898
941
  "data-slot": "separator",
899
942
  decorative,
900
943
  orientation,
901
- className: (0, import_utils12.cn)(
944
+ className: (0, import_utils13.cn)(
902
945
  "bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=vertical]:h-full data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px",
903
946
  className
904
947
  ),
@@ -909,26 +952,26 @@ function Separator3({
909
952
 
910
953
  // src/components/switch/index.tsx
911
954
  var SwitchPrimitive = __toESM(require("@radix-ui/react-switch"), 1);
912
- var import_utils13 = require("@foundrykit/utils");
913
- var import_jsx_runtime13 = require("react/jsx-runtime");
955
+ var import_utils14 = require("@foundrykit/utils");
956
+ var import_jsx_runtime14 = require("react/jsx-runtime");
914
957
  function Switch({
915
958
  className,
916
959
  ...props
917
960
  }) {
918
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
961
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
919
962
  SwitchPrimitive.Root,
920
963
  {
921
964
  "data-slot": "switch",
922
- className: (0, import_utils13.cn)(
965
+ className: (0, import_utils14.cn)(
923
966
  "data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 shadow-xs peer inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent outline-none transition-all focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
924
967
  className
925
968
  ),
926
969
  ...props,
927
- children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
970
+ children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
928
971
  SwitchPrimitive.Thumb,
929
972
  {
930
973
  "data-slot": "switch-thumb",
931
- className: (0, import_utils13.cn)(
974
+ className: (0, import_utils14.cn)(
932
975
  "bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0"
933
976
  )
934
977
  }
@@ -939,17 +982,17 @@ function Switch({
939
982
 
940
983
  // src/components/tabs/index.tsx
941
984
  var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"), 1);
942
- var import_utils14 = require("@foundrykit/utils");
943
- var import_jsx_runtime14 = require("react/jsx-runtime");
985
+ var import_utils15 = require("@foundrykit/utils");
986
+ var import_jsx_runtime15 = require("react/jsx-runtime");
944
987
  function Tabs({
945
988
  className,
946
989
  ...props
947
990
  }) {
948
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
991
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
949
992
  TabsPrimitive.Root,
950
993
  {
951
994
  "data-slot": "tabs",
952
- className: (0, import_utils14.cn)("flex flex-col gap-2", className),
995
+ className: (0, import_utils15.cn)("flex flex-col gap-2", className),
953
996
  ...props
954
997
  }
955
998
  );
@@ -958,11 +1001,11 @@ function TabsList({
958
1001
  className,
959
1002
  ...props
960
1003
  }) {
961
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1004
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
962
1005
  TabsPrimitive.List,
963
1006
  {
964
1007
  "data-slot": "tabs-list",
965
- className: (0, import_utils14.cn)(
1008
+ className: (0, import_utils15.cn)(
966
1009
  "bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",
967
1010
  className
968
1011
  ),
@@ -974,11 +1017,11 @@ function TabsTrigger({
974
1017
  className,
975
1018
  ...props
976
1019
  }) {
977
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1020
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
978
1021
  TabsPrimitive.Trigger,
979
1022
  {
980
1023
  "data-slot": "tabs-trigger",
981
- className: (0, import_utils14.cn)(
1024
+ className: (0, import_utils15.cn)(
982
1025
  "data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 whitespace-nowrap rounded-md border border-transparent px-2 py-1 text-sm font-medium transition-[color,box-shadow] focus-visible:outline-1 focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
983
1026
  className
984
1027
  ),
@@ -990,25 +1033,25 @@ function TabsContent({
990
1033
  className,
991
1034
  ...props
992
1035
  }) {
993
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1036
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
994
1037
  TabsPrimitive.Content,
995
1038
  {
996
1039
  "data-slot": "tabs-content",
997
- className: (0, import_utils14.cn)("flex-1 outline-none", className),
1040
+ className: (0, import_utils15.cn)("flex-1 outline-none", className),
998
1041
  ...props
999
1042
  }
1000
1043
  );
1001
1044
  }
1002
1045
 
1003
1046
  // src/components/textarea/index.tsx
1004
- var import_utils15 = require("@foundrykit/utils");
1005
- var import_jsx_runtime15 = require("react/jsx-runtime");
1047
+ var import_utils16 = require("@foundrykit/utils");
1048
+ var import_jsx_runtime16 = require("react/jsx-runtime");
1006
1049
  function Textarea({ className, ...props }) {
1007
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1050
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1008
1051
  "textarea",
1009
1052
  {
1010
1053
  "data-slot": "textarea",
1011
- className: (0, import_utils15.cn)(
1054
+ className: (0, import_utils16.cn)(
1012
1055
  "border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 field-sizing-content shadow-xs flex min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base outline-none transition-[color,box-shadow] focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
1013
1056
  className
1014
1057
  ),
@@ -1018,14 +1061,14 @@ function Textarea({ className, ...props }) {
1018
1061
  }
1019
1062
 
1020
1063
  // src/components/skeleton/index.tsx
1021
- var import_utils16 = require("@foundrykit/utils");
1022
- var import_jsx_runtime16 = require("react/jsx-runtime");
1064
+ var import_utils17 = require("@foundrykit/utils");
1065
+ var import_jsx_runtime17 = require("react/jsx-runtime");
1023
1066
  function Skeleton({ className, ...props }) {
1024
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1067
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1025
1068
  "div",
1026
1069
  {
1027
1070
  "data-slot": "skeleton",
1028
- className: (0, import_utils16.cn)("bg-accent animate-pulse rounded-md", className),
1071
+ className: (0, import_utils17.cn)("bg-accent animate-pulse rounded-md", className),
1029
1072
  ...props
1030
1073
  }
1031
1074
  );
@@ -1033,17 +1076,17 @@ function Skeleton({ className, ...props }) {
1033
1076
 
1034
1077
  // src/components/popover/index.tsx
1035
1078
  var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"), 1);
1036
- var import_utils17 = require("@foundrykit/utils");
1037
- var import_jsx_runtime17 = require("react/jsx-runtime");
1079
+ var import_utils18 = require("@foundrykit/utils");
1080
+ var import_jsx_runtime18 = require("react/jsx-runtime");
1038
1081
  function Popover({
1039
1082
  ...props
1040
1083
  }) {
1041
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(PopoverPrimitive.Root, { "data-slot": "popover", ...props });
1084
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(PopoverPrimitive.Root, { "data-slot": "popover", ...props });
1042
1085
  }
1043
1086
  function PopoverTrigger({
1044
1087
  ...props
1045
1088
  }) {
1046
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(PopoverPrimitive.Trigger, { "data-slot": "popover-trigger", ...props });
1089
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(PopoverPrimitive.Trigger, { "data-slot": "popover-trigger", ...props });
1047
1090
  }
1048
1091
  function PopoverContent({
1049
1092
  className,
@@ -1051,13 +1094,13 @@ function PopoverContent({
1051
1094
  sideOffset = 4,
1052
1095
  ...props
1053
1096
  }) {
1054
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(PopoverPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1097
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(PopoverPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1055
1098
  PopoverPrimitive.Content,
1056
1099
  {
1057
1100
  "data-slot": "popover-content",
1058
1101
  align,
1059
1102
  sideOffset,
1060
- className: (0, import_utils17.cn)(
1103
+ className: (0, import_utils18.cn)(
1061
1104
  "bg-popover text-popover-foreground 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 origin-(--radix-popover-content-transform-origin) outline-hidden z-50 w-72 rounded-md border p-4 shadow-md",
1062
1105
  className
1063
1106
  ),
@@ -1068,43 +1111,43 @@ function PopoverContent({
1068
1111
  function PopoverAnchor({
1069
1112
  ...props
1070
1113
  }) {
1071
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(PopoverPrimitive.Anchor, { "data-slot": "popover-anchor", ...props });
1114
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(PopoverPrimitive.Anchor, { "data-slot": "popover-anchor", ...props });
1072
1115
  }
1073
1116
 
1074
1117
  // src/components/dialog/index.tsx
1075
1118
  var DialogPrimitive = __toESM(require("@radix-ui/react-dialog"), 1);
1076
1119
  var import_lucide_react6 = require("lucide-react");
1077
- var import_utils18 = require("@foundrykit/utils");
1078
- var import_jsx_runtime18 = require("react/jsx-runtime");
1120
+ var import_utils19 = require("@foundrykit/utils");
1121
+ var import_jsx_runtime19 = require("react/jsx-runtime");
1079
1122
  function Dialog({
1080
1123
  ...props
1081
1124
  }) {
1082
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(DialogPrimitive.Root, { "data-slot": "dialog", ...props });
1125
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(DialogPrimitive.Root, { "data-slot": "dialog", ...props });
1083
1126
  }
1084
1127
  function DialogTrigger({
1085
1128
  ...props
1086
1129
  }) {
1087
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(DialogPrimitive.Trigger, { "data-slot": "dialog-trigger", ...props });
1130
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(DialogPrimitive.Trigger, { "data-slot": "dialog-trigger", ...props });
1088
1131
  }
1089
1132
  function DialogPortal({
1090
1133
  ...props
1091
1134
  }) {
1092
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(DialogPrimitive.Portal, { "data-slot": "dialog-portal", ...props });
1135
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(DialogPrimitive.Portal, { "data-slot": "dialog-portal", ...props });
1093
1136
  }
1094
1137
  function DialogClose({
1095
1138
  ...props
1096
1139
  }) {
1097
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(DialogPrimitive.Close, { "data-slot": "dialog-close", ...props });
1140
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(DialogPrimitive.Close, { "data-slot": "dialog-close", ...props });
1098
1141
  }
1099
1142
  function DialogOverlay({
1100
1143
  className,
1101
1144
  ...props
1102
1145
  }) {
1103
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1146
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1104
1147
  DialogPrimitive.Overlay,
1105
1148
  {
1106
1149
  "data-slot": "dialog-overlay",
1107
- className: (0, import_utils18.cn)(
1150
+ className: (0, import_utils19.cn)(
1108
1151
  "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
1109
1152
  className
1110
1153
  ),
@@ -1118,27 +1161,27 @@ function DialogContent({
1118
1161
  showCloseButton = true,
1119
1162
  ...props
1120
1163
  }) {
1121
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(DialogPortal, { "data-slot": "dialog-portal", children: [
1122
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(DialogOverlay, {}),
1123
- /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
1164
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(DialogPortal, { "data-slot": "dialog-portal", children: [
1165
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(DialogOverlay, {}),
1166
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
1124
1167
  DialogPrimitive.Content,
1125
1168
  {
1126
1169
  "data-slot": "dialog-content",
1127
- className: (0, import_utils18.cn)(
1170
+ className: (0, import_utils19.cn)(
1128
1171
  "bg-background 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 fixed left-[50%] top-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",
1129
1172
  className
1130
1173
  ),
1131
1174
  ...props,
1132
1175
  children: [
1133
1176
  children,
1134
- showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
1177
+ showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
1135
1178
  DialogPrimitive.Close,
1136
1179
  {
1137
1180
  "data-slot": "dialog-close",
1138
1181
  className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground rounded-xs focus:outline-hidden absolute right-4 top-4 opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
1139
1182
  children: [
1140
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react6.XIcon, {}),
1141
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "sr-only", children: "Close" })
1183
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react6.XIcon, {}),
1184
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "sr-only", children: "Close" })
1142
1185
  ]
1143
1186
  }
1144
1187
  )
@@ -1148,21 +1191,21 @@ function DialogContent({
1148
1191
  ] });
1149
1192
  }
1150
1193
  function DialogHeader({ className, ...props }) {
1151
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1194
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1152
1195
  "div",
1153
1196
  {
1154
1197
  "data-slot": "dialog-header",
1155
- className: (0, import_utils18.cn)("flex flex-col gap-2 text-center sm:text-left", className),
1198
+ className: (0, import_utils19.cn)("flex flex-col gap-2 text-center sm:text-left", className),
1156
1199
  ...props
1157
1200
  }
1158
1201
  );
1159
1202
  }
1160
1203
  function DialogFooter({ className, ...props }) {
1161
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1204
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1162
1205
  "div",
1163
1206
  {
1164
1207
  "data-slot": "dialog-footer",
1165
- className: (0, import_utils18.cn)(
1208
+ className: (0, import_utils19.cn)(
1166
1209
  "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
1167
1210
  className
1168
1211
  ),
@@ -1174,11 +1217,11 @@ function DialogTitle({
1174
1217
  className,
1175
1218
  ...props
1176
1219
  }) {
1177
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1220
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1178
1221
  DialogPrimitive.Title,
1179
1222
  {
1180
1223
  "data-slot": "dialog-title",
1181
- className: (0, import_utils18.cn)("text-lg font-semibold leading-none", className),
1224
+ className: (0, import_utils19.cn)("text-lg font-semibold leading-none", className),
1182
1225
  ...props
1183
1226
  }
1184
1227
  );
@@ -1187,18 +1230,18 @@ function DialogDescription({
1187
1230
  className,
1188
1231
  ...props
1189
1232
  }) {
1190
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1233
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1191
1234
  DialogPrimitive.Description,
1192
1235
  {
1193
1236
  "data-slot": "dialog-description",
1194
- className: (0, import_utils18.cn)("text-muted-foreground text-sm", className),
1237
+ className: (0, import_utils19.cn)("text-muted-foreground text-sm", className),
1195
1238
  ...props
1196
1239
  }
1197
1240
  );
1198
1241
  }
1199
1242
 
1200
1243
  // src/index.ts
1201
- var import_utils19 = require("@foundrykit/utils");
1244
+ var import_utils20 = require("@foundrykit/utils");
1202
1245
  // Annotate the CommonJS export names for ESM import in node:
1203
1246
  0 && (module.exports = {
1204
1247
  Avatar,
@@ -1269,7 +1312,9 @@ var import_utils19 = require("@foundrykit/utils");
1269
1312
  TabsList,
1270
1313
  TabsTrigger,
1271
1314
  Textarea,
1315
+ Toggle,
1272
1316
  badgeVariants,
1273
1317
  buttonVariants,
1274
- cn
1318
+ cn,
1319
+ toggleVariants
1275
1320
  });