@inf-monkeys-tech/monkeys-design 1.0.6 → 1.0.7

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.
@@ -353,7 +353,18 @@ var CardFooter = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE
353
353
  CardFooter.displayName = "CardFooter";
354
354
  var PolymorphicSlot = Slot;
355
355
  var Accordion = AccordionPrimitive.Root;
356
- var AccordionItem = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(AccordionPrimitive.Item, { ref, className: cn("border-b", className), ...props }));
356
+ var AccordionItem = React14.forwardRef(({ className, style, ...props }, ref) => /* @__PURE__ */ jsx(
357
+ AccordionPrimitive.Item,
358
+ {
359
+ ref,
360
+ className: cn("border-b", className),
361
+ style: {
362
+ borderColor: "var(--monkeys-component-accordion-item-border-color, hsl(var(--border)))",
363
+ ...style
364
+ },
365
+ ...props
366
+ }
367
+ ));
357
368
  AccordionItem.displayName = "AccordionItem";
358
369
  var AccordionTrigger = React14.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(AccordionPrimitive.Header, { className: "flex", children: /* @__PURE__ */ jsxs(
359
370
  AccordionPrimitive.Trigger,
@@ -366,7 +377,13 @@ var AccordionTrigger = React14.forwardRef(({ className, children, ...props }, re
366
377
  ...props,
367
378
  children: [
368
379
  children,
369
- /* @__PURE__ */ jsx(ChevronDown, { "aria-hidden": "true", className: "h-4 w-4 shrink-0 transition-transform duration-200" })
380
+ /* @__PURE__ */ jsx(
381
+ ChevronDown,
382
+ {
383
+ "aria-hidden": "true",
384
+ className: "h-4 w-4 shrink-0 transition-transform duration-200"
385
+ }
386
+ )
370
387
  ]
371
388
  }
372
389
  ) }));
@@ -419,7 +436,14 @@ var buttonVariants = cva(
419
436
  var Button = React14.forwardRef(
420
437
  ({ className, variant, size, asChild = false, ...props }, ref) => {
421
438
  const Component = asChild ? Slot : "button";
422
- return /* @__PURE__ */ jsx(Component, { ref, className: buttonVariants({ variant, size, className }), ...props });
439
+ return /* @__PURE__ */ jsx(
440
+ Component,
441
+ {
442
+ ref,
443
+ className: buttonVariants({ variant, size, className }),
444
+ ...props
445
+ }
446
+ );
423
447
  }
424
448
  );
425
449
  Button.displayName = "Button";
@@ -441,11 +465,47 @@ var PopoverContent = React14.forwardRef(({ className, align = "center", sideOffs
441
465
  ) }));
442
466
  PopoverContent.displayName = "PopoverContent";
443
467
  var ScrollArea = React14.forwardRef(
444
- ({ className, children, viewportClassName, viewportRef, onViewportScroll, scrollbar = true, scrollbarOrientation = "vertical", scrollBarDisabled = false, ...props }, ref) => /* @__PURE__ */ jsxs(ScrollAreaPrimitive.Root, { ref, className: cn("group relative overflow-hidden", scrollBarDisabled && "no-scrollbar", className), ...props, children: [
445
- /* @__PURE__ */ jsx(ScrollAreaPrimitive.Viewport, { ref: viewportRef, onScroll: onViewportScroll, className: cn("h-full w-full rounded-[inherit]", viewportClassName), children }),
446
- scrollbar ? /* @__PURE__ */ jsx(ScrollBar, { orientation: scrollbarOrientation, className: cn(scrollBarDisabled && "size-0 p-0") }) : null,
447
- /* @__PURE__ */ jsx(ScrollAreaPrimitive.Corner, {})
448
- ] })
468
+ ({
469
+ className,
470
+ children,
471
+ viewportClassName,
472
+ viewportRef,
473
+ onViewportScroll,
474
+ scrollbar = true,
475
+ scrollbarOrientation = "vertical",
476
+ scrollBarDisabled = false,
477
+ ...props
478
+ }, ref) => /* @__PURE__ */ jsxs(
479
+ ScrollAreaPrimitive.Root,
480
+ {
481
+ ref,
482
+ className: cn(
483
+ "group relative overflow-hidden",
484
+ scrollBarDisabled && "no-scrollbar",
485
+ className
486
+ ),
487
+ ...props,
488
+ children: [
489
+ /* @__PURE__ */ jsx(
490
+ ScrollAreaPrimitive.Viewport,
491
+ {
492
+ ref: viewportRef,
493
+ onScroll: onViewportScroll,
494
+ className: cn("h-full w-full rounded-[inherit]", viewportClassName),
495
+ children
496
+ }
497
+ ),
498
+ scrollbar ? /* @__PURE__ */ jsx(
499
+ ScrollBar,
500
+ {
501
+ orientation: scrollbarOrientation,
502
+ className: cn(scrollBarDisabled && "size-0 p-0")
503
+ }
504
+ ) : null,
505
+ /* @__PURE__ */ jsx(ScrollAreaPrimitive.Corner, {})
506
+ ]
507
+ }
508
+ )
449
509
  );
450
510
  ScrollArea.displayName = "ScrollArea";
451
511
  var ScrollBar = React14.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsx(
@@ -477,15 +537,16 @@ var Switch = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
477
537
  }
478
538
  ));
479
539
  Switch.displayName = "Switch";
480
- var Tabs = React14.forwardRef(
481
- ({ variant = "default", ...props }, ref) => /* @__PURE__ */ jsx(TabsPrimitive.Root, { ref, "data-variant": variant, ...props })
482
- );
540
+ var Tabs = React14.forwardRef(({ variant = "default", ...props }, ref) => /* @__PURE__ */ jsx(TabsPrimitive.Root, { ref, "data-variant": variant, ...props }));
483
541
  Tabs.displayName = "Tabs";
484
542
  var TabsList = React14.forwardRef(({ className, gap, style, ...props }, ref) => /* @__PURE__ */ jsx(
485
543
  TabsPrimitive.List,
486
544
  {
487
545
  ref,
488
- className: cn("inline-flex h-10 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground", className),
546
+ className: cn(
547
+ "inline-flex h-10 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",
548
+ className
549
+ ),
489
550
  style: { gap, ...style },
490
551
  ...props
491
552
  }
@@ -495,12 +556,25 @@ var TabsTrigger = React14.forwardRef(({ className, ...props }, ref) => /* @__PUR
495
556
  TabsPrimitive.Trigger,
496
557
  {
497
558
  ref,
498
- className: cn("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1.5 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", className),
559
+ className: cn(
560
+ "inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1.5 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",
561
+ className
562
+ ),
499
563
  ...props
500
564
  }
501
565
  ));
502
566
  TabsTrigger.displayName = "TabsTrigger";
503
- var TabsContent = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(TabsPrimitive.Content, { ref, className: cn("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2", className), ...props }));
567
+ var TabsContent = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
568
+ TabsPrimitive.Content,
569
+ {
570
+ ref,
571
+ className: cn(
572
+ "mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
573
+ className
574
+ ),
575
+ ...props
576
+ }
577
+ ));
504
578
  TabsContent.displayName = "TabsContent";
505
579
  var TooltipProvider = TooltipPrimitive.Provider;
506
580
  var Tooltip = TooltipPrimitive.Root;
@@ -510,7 +584,10 @@ var TooltipContent = React14.forwardRef(({ className, sideOffset = 4, ...props }
510
584
  {
511
585
  ref,
512
586
  sideOffset,
513
- className: cn("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-xs text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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", className),
587
+ className: cn(
588
+ "z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-xs text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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",
589
+ className
590
+ ),
514
591
  ...props
515
592
  }
516
593
  ) }));