@inf-monkeys-tech/monkeys-design 1.0.45 → 1.0.47
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/primitives/index.d.mts +16 -2
- package/dist/components/primitives/index.d.ts +16 -2
- package/dist/components/primitives/index.js +25 -3
- package/dist/components/primitives/index.js.map +1 -1
- package/dist/components/primitives/index.mjs +23 -4
- package/dist/components/primitives/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
|
@@ -1226,21 +1226,40 @@ var SelectSeparator = React14.forwardRef(
|
|
|
1226
1226
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx(SelectPrimitive.Separator, { ref, className: cn("-mx-1 my-1 h-px bg-muted", className), ...props })
|
|
1227
1227
|
);
|
|
1228
1228
|
SelectSeparator.displayName = "SelectSeparator";
|
|
1229
|
+
var MEDIA_PREVIEW_ASPECT_RATIOS = ["1:1", "4:3", "3:4", "16:9", "9:16"];
|
|
1230
|
+
var resolveMediaPreviewAspectRatioValue = (aspectRatio = "1:1") => {
|
|
1231
|
+
const [width, height] = aspectRatio.split(":").map(Number);
|
|
1232
|
+
return width / height;
|
|
1233
|
+
};
|
|
1229
1234
|
var mediaPreviewFrameClassName = ({
|
|
1230
1235
|
aspectRatio = "square",
|
|
1231
1236
|
maxSquareHeight = true,
|
|
1232
1237
|
className
|
|
1233
1238
|
} = {}) => cn(
|
|
1234
1239
|
"w-full overflow-hidden bg-muted",
|
|
1235
|
-
aspectRatio === "square" && "aspect-square",
|
|
1236
|
-
aspectRatio === "square" && maxSquareHeight && "max-h-[300px]",
|
|
1237
|
-
aspectRatio === "
|
|
1240
|
+
(aspectRatio === "square" || aspectRatio === "1:1") && "aspect-square",
|
|
1241
|
+
(aspectRatio === "square" || aspectRatio === "1:1") && maxSquareHeight && "max-h-[300px]",
|
|
1242
|
+
aspectRatio === "4:3" && "aspect-[4/3]",
|
|
1243
|
+
aspectRatio === "3:4" && "aspect-[3/4]",
|
|
1244
|
+
(aspectRatio === "video" || aspectRatio === "16:9") && "aspect-video",
|
|
1245
|
+
aspectRatio === "9:16" && "aspect-[9/16]",
|
|
1238
1246
|
className
|
|
1239
1247
|
);
|
|
1240
1248
|
var MediaPreviewFrame = React14.forwardRef(
|
|
1241
1249
|
({ aspectRatio = "square", maxSquareHeight = true, className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: mediaPreviewFrameClassName({ aspectRatio, maxSquareHeight, className }), ...props })
|
|
1242
1250
|
);
|
|
1243
1251
|
MediaPreviewFrame.displayName = "MediaPreviewFrame";
|
|
1252
|
+
var MediaPreviewImage = React14.forwardRef(
|
|
1253
|
+
({ fit = "contain", className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1254
|
+
"img",
|
|
1255
|
+
{
|
|
1256
|
+
ref,
|
|
1257
|
+
className: cn("block size-full", fit === "contain" ? "object-contain" : "object-cover", className),
|
|
1258
|
+
...props
|
|
1259
|
+
}
|
|
1260
|
+
)
|
|
1261
|
+
);
|
|
1262
|
+
MediaPreviewImage.displayName = "MediaPreviewImage";
|
|
1244
1263
|
var Dialog = DialogPrimitive.Root;
|
|
1245
1264
|
var DialogTrigger = DialogPrimitive.Trigger;
|
|
1246
1265
|
var DialogPortal = DialogPrimitive.Portal;
|
|
@@ -2223,6 +2242,6 @@ var Leaf = forwardRef(({ className, item, isSelected, Icon: Icon2, children, ...
|
|
|
2223
2242
|
});
|
|
2224
2243
|
Leaf.displayName = "Leaf";
|
|
2225
2244
|
|
|
2226
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDangerAction, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AutosizeTextarea, Avatar, AvatarFallback, AvatarImage, Badge, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Calendar, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, Dialog, DialogClose, DialogContent, DialogContentNoAnimation, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, FloatingPopover, FloatingPopoverContent, FloatingPopoverTrigger, HoverCard, HoverCardContent, HoverCardPortal, HoverCardTrigger, Indicator2 as Indicator, InfiniteScroll, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Label3 as Label, MediaPreviewFrame, PillInput, PolymorphicSlot, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, Progress, ResizableHandle, ResizablePanel, ResizablePanelGroup, RoundedBadge, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupLabel, SidebarHeader, SidebarMenu, SidebarMenuButton, SidebarMenuItem, Skeleton, SkeletonAvatar, SkeletonButton, SkeletonCard, SkeletonForm, SkeletonFormField, SkeletonImage, SkeletonList, SkeletonTable, SkeletonText, Slider, StatusState, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Tree, alertVariants, badgeVariants, buttonGroupVariants, buttonVariants, convertPillValue, formatSliderNumber, isValidPillValue, mediaPreviewFrameClassName, normalizeSliderNumber, toggleClassName, toggleVariants, useAutosizeTextArea, useCarousel };
|
|
2245
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDangerAction, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AutosizeTextarea, Avatar, AvatarFallback, AvatarImage, Badge, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Calendar, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, Dialog, DialogClose, DialogContent, DialogContentNoAnimation, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, FloatingPopover, FloatingPopoverContent, FloatingPopoverTrigger, HoverCard, HoverCardContent, HoverCardPortal, HoverCardTrigger, Indicator2 as Indicator, InfiniteScroll, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Label3 as Label, MEDIA_PREVIEW_ASPECT_RATIOS, MediaPreviewFrame, MediaPreviewImage, PillInput, PolymorphicSlot, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, Progress, ResizableHandle, ResizablePanel, ResizablePanelGroup, RoundedBadge, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupLabel, SidebarHeader, SidebarMenu, SidebarMenuButton, SidebarMenuItem, Skeleton, SkeletonAvatar, SkeletonButton, SkeletonCard, SkeletonForm, SkeletonFormField, SkeletonImage, SkeletonList, SkeletonTable, SkeletonText, Slider, StatusState, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Tree, alertVariants, badgeVariants, buttonGroupVariants, buttonVariants, convertPillValue, formatSliderNumber, isValidPillValue, mediaPreviewFrameClassName, normalizeSliderNumber, resolveMediaPreviewAspectRatioValue, toggleClassName, toggleVariants, useAutosizeTextArea, useCarousel };
|
|
2227
2246
|
//# sourceMappingURL=index.mjs.map
|
|
2228
2247
|
//# sourceMappingURL=index.mjs.map
|