@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.
- package/dist/components/layout/index.d.mts +38 -9
- package/dist/components/layout/index.d.ts +38 -9
- package/dist/components/layout/index.js +526 -185
- package/dist/components/layout/index.js.map +1 -1
- package/dist/components/layout/index.mjs +526 -186
- package/dist/components/layout/index.mjs.map +1 -1
- package/dist/components/primitives/index.d.mts +2 -2
- package/dist/components/primitives/index.d.ts +2 -2
- package/dist/components/primitives/index.js +92 -15
- package/dist/components/primitives/index.js.map +1 -1
- package/dist/components/primitives/index.mjs +92 -15
- package/dist/components/primitives/index.mjs.map +1 -1
- package/dist/components/workbench/index.d.mts +11 -1
- package/dist/components/workbench/index.d.ts +11 -1
- package/dist/components/workbench/index.js +28 -3
- package/dist/components/workbench/index.js.map +1 -1
- package/dist/components/workbench/index.mjs +28 -3
- package/dist/components/workbench/index.mjs.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +554 -188
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +554 -189
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -122,13 +122,13 @@ interface ScrollAreaProps extends React$1.ComponentPropsWithoutRef<typeof Scroll
|
|
|
122
122
|
viewportRef?: React$1.Ref<HTMLDivElement>;
|
|
123
123
|
onViewportScroll?: React$1.UIEventHandler<HTMLDivElement>;
|
|
124
124
|
scrollbar?: boolean;
|
|
125
|
-
scrollbarOrientation?:
|
|
125
|
+
scrollbarOrientation?: "horizontal" | "vertical";
|
|
126
126
|
scrollBarDisabled?: boolean;
|
|
127
127
|
}
|
|
128
128
|
declare const ScrollArea: React$1.ForwardRefExoticComponent<ScrollAreaProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
129
129
|
declare const ScrollBar: React$1.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaScrollbarProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
130
130
|
declare const Switch: React$1.ForwardRefExoticComponent<Omit<SwitchPrimitive.SwitchProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
131
|
-
type TabsVariant =
|
|
131
|
+
type TabsVariant = "default" | "ghost" | "rounded";
|
|
132
132
|
type TabsProps = React$1.ComponentPropsWithoutRef<typeof TabsPrimitive.Root> & {
|
|
133
133
|
variant?: TabsVariant;
|
|
134
134
|
};
|
|
@@ -122,13 +122,13 @@ interface ScrollAreaProps extends React$1.ComponentPropsWithoutRef<typeof Scroll
|
|
|
122
122
|
viewportRef?: React$1.Ref<HTMLDivElement>;
|
|
123
123
|
onViewportScroll?: React$1.UIEventHandler<HTMLDivElement>;
|
|
124
124
|
scrollbar?: boolean;
|
|
125
|
-
scrollbarOrientation?:
|
|
125
|
+
scrollbarOrientation?: "horizontal" | "vertical";
|
|
126
126
|
scrollBarDisabled?: boolean;
|
|
127
127
|
}
|
|
128
128
|
declare const ScrollArea: React$1.ForwardRefExoticComponent<ScrollAreaProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
129
129
|
declare const ScrollBar: React$1.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaScrollbarProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
130
130
|
declare const Switch: React$1.ForwardRefExoticComponent<Omit<SwitchPrimitive.SwitchProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
131
|
-
type TabsVariant =
|
|
131
|
+
type TabsVariant = "default" | "ghost" | "rounded";
|
|
132
132
|
type TabsProps = React$1.ComponentPropsWithoutRef<typeof TabsPrimitive.Root> & {
|
|
133
133
|
variant?: TabsVariant;
|
|
134
134
|
};
|
|
@@ -397,7 +397,18 @@ var CardFooter = React14__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
397
397
|
CardFooter.displayName = "CardFooter";
|
|
398
398
|
var PolymorphicSlot = reactSlot.Slot;
|
|
399
399
|
var Accordion = AccordionPrimitive__namespace.Root;
|
|
400
|
-
var AccordionItem = React14__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
400
|
+
var AccordionItem = React14__namespace.forwardRef(({ className, style, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
401
|
+
AccordionPrimitive__namespace.Item,
|
|
402
|
+
{
|
|
403
|
+
ref,
|
|
404
|
+
className: cn("border-b", className),
|
|
405
|
+
style: {
|
|
406
|
+
borderColor: "var(--monkeys-component-accordion-item-border-color, hsl(var(--border)))",
|
|
407
|
+
...style
|
|
408
|
+
},
|
|
409
|
+
...props
|
|
410
|
+
}
|
|
411
|
+
));
|
|
401
412
|
AccordionItem.displayName = "AccordionItem";
|
|
402
413
|
var AccordionTrigger = React14__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(AccordionPrimitive__namespace.Header, { className: "flex", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
403
414
|
AccordionPrimitive__namespace.Trigger,
|
|
@@ -410,7 +421,13 @@ var AccordionTrigger = React14__namespace.forwardRef(({ className, children, ...
|
|
|
410
421
|
...props,
|
|
411
422
|
children: [
|
|
412
423
|
children,
|
|
413
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
424
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
425
|
+
lucideReact.ChevronDown,
|
|
426
|
+
{
|
|
427
|
+
"aria-hidden": "true",
|
|
428
|
+
className: "h-4 w-4 shrink-0 transition-transform duration-200"
|
|
429
|
+
}
|
|
430
|
+
)
|
|
414
431
|
]
|
|
415
432
|
}
|
|
416
433
|
) }));
|
|
@@ -463,7 +480,14 @@ var buttonVariants = classVarianceAuthority.cva(
|
|
|
463
480
|
var Button = React14__namespace.forwardRef(
|
|
464
481
|
({ className, variant, size, asChild = false, ...props }, ref) => {
|
|
465
482
|
const Component = asChild ? reactSlot.Slot : "button";
|
|
466
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
483
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
484
|
+
Component,
|
|
485
|
+
{
|
|
486
|
+
ref,
|
|
487
|
+
className: buttonVariants({ variant, size, className }),
|
|
488
|
+
...props
|
|
489
|
+
}
|
|
490
|
+
);
|
|
467
491
|
}
|
|
468
492
|
);
|
|
469
493
|
Button.displayName = "Button";
|
|
@@ -485,11 +509,47 @@ var PopoverContent = React14__namespace.forwardRef(({ className, align = "center
|
|
|
485
509
|
) }));
|
|
486
510
|
PopoverContent.displayName = "PopoverContent";
|
|
487
511
|
var ScrollArea = React14__namespace.forwardRef(
|
|
488
|
-
({
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
512
|
+
({
|
|
513
|
+
className,
|
|
514
|
+
children,
|
|
515
|
+
viewportClassName,
|
|
516
|
+
viewportRef,
|
|
517
|
+
onViewportScroll,
|
|
518
|
+
scrollbar = true,
|
|
519
|
+
scrollbarOrientation = "vertical",
|
|
520
|
+
scrollBarDisabled = false,
|
|
521
|
+
...props
|
|
522
|
+
}, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
523
|
+
ScrollAreaPrimitive__namespace.Root,
|
|
524
|
+
{
|
|
525
|
+
ref,
|
|
526
|
+
className: cn(
|
|
527
|
+
"group relative overflow-hidden",
|
|
528
|
+
scrollBarDisabled && "no-scrollbar",
|
|
529
|
+
className
|
|
530
|
+
),
|
|
531
|
+
...props,
|
|
532
|
+
children: [
|
|
533
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
534
|
+
ScrollAreaPrimitive__namespace.Viewport,
|
|
535
|
+
{
|
|
536
|
+
ref: viewportRef,
|
|
537
|
+
onScroll: onViewportScroll,
|
|
538
|
+
className: cn("h-full w-full rounded-[inherit]", viewportClassName),
|
|
539
|
+
children
|
|
540
|
+
}
|
|
541
|
+
),
|
|
542
|
+
scrollbar ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
543
|
+
ScrollBar,
|
|
544
|
+
{
|
|
545
|
+
orientation: scrollbarOrientation,
|
|
546
|
+
className: cn(scrollBarDisabled && "size-0 p-0")
|
|
547
|
+
}
|
|
548
|
+
) : null,
|
|
549
|
+
/* @__PURE__ */ jsxRuntime.jsx(ScrollAreaPrimitive__namespace.Corner, {})
|
|
550
|
+
]
|
|
551
|
+
}
|
|
552
|
+
)
|
|
493
553
|
);
|
|
494
554
|
ScrollArea.displayName = "ScrollArea";
|
|
495
555
|
var ScrollBar = React14__namespace.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -521,15 +581,16 @@ var Switch = React14__namespace.forwardRef(({ className, ...props }, ref) => /*
|
|
|
521
581
|
}
|
|
522
582
|
));
|
|
523
583
|
Switch.displayName = "Switch";
|
|
524
|
-
var Tabs = React14__namespace.forwardRef(
|
|
525
|
-
({ variant = "default", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(TabsPrimitive__namespace.Root, { ref, "data-variant": variant, ...props })
|
|
526
|
-
);
|
|
584
|
+
var Tabs = React14__namespace.forwardRef(({ variant = "default", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(TabsPrimitive__namespace.Root, { ref, "data-variant": variant, ...props }));
|
|
527
585
|
Tabs.displayName = "Tabs";
|
|
528
586
|
var TabsList = React14__namespace.forwardRef(({ className, gap, style, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
529
587
|
TabsPrimitive__namespace.List,
|
|
530
588
|
{
|
|
531
589
|
ref,
|
|
532
|
-
className: cn(
|
|
590
|
+
className: cn(
|
|
591
|
+
"inline-flex h-10 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",
|
|
592
|
+
className
|
|
593
|
+
),
|
|
533
594
|
style: { gap, ...style },
|
|
534
595
|
...props
|
|
535
596
|
}
|
|
@@ -539,12 +600,25 @@ var TabsTrigger = React14__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
539
600
|
TabsPrimitive__namespace.Trigger,
|
|
540
601
|
{
|
|
541
602
|
ref,
|
|
542
|
-
className: cn(
|
|
603
|
+
className: cn(
|
|
604
|
+
"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",
|
|
605
|
+
className
|
|
606
|
+
),
|
|
543
607
|
...props
|
|
544
608
|
}
|
|
545
609
|
));
|
|
546
610
|
TabsTrigger.displayName = "TabsTrigger";
|
|
547
|
-
var TabsContent = React14__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
611
|
+
var TabsContent = React14__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
612
|
+
TabsPrimitive__namespace.Content,
|
|
613
|
+
{
|
|
614
|
+
ref,
|
|
615
|
+
className: cn(
|
|
616
|
+
"mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
617
|
+
className
|
|
618
|
+
),
|
|
619
|
+
...props
|
|
620
|
+
}
|
|
621
|
+
));
|
|
548
622
|
TabsContent.displayName = "TabsContent";
|
|
549
623
|
var TooltipProvider = TooltipPrimitive__namespace.Provider;
|
|
550
624
|
var Tooltip = TooltipPrimitive__namespace.Root;
|
|
@@ -554,7 +628,10 @@ var TooltipContent = React14__namespace.forwardRef(({ className, sideOffset = 4,
|
|
|
554
628
|
{
|
|
555
629
|
ref,
|
|
556
630
|
sideOffset,
|
|
557
|
-
className: cn(
|
|
631
|
+
className: cn(
|
|
632
|
+
"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",
|
|
633
|
+
className
|
|
634
|
+
),
|
|
558
635
|
...props
|
|
559
636
|
}
|
|
560
637
|
) }));
|