@inf-monkeys-tech/monkeys-design 2.0.15 → 2.0.17
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 +14 -1
- package/dist/components/primitives/index.d.ts +14 -1
- package/dist/components/primitives/index.js +83 -30
- package/dist/components/primitives/index.js.map +1 -1
- package/dist/components/primitives/index.mjs +82 -31
- package/dist/components/primitives/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -4154,6 +4154,87 @@ var SkeletonGroup = forwardRef(function SkeletonGroup2({ animation, animated, ch
|
|
|
4154
4154
|
}
|
|
4155
4155
|
);
|
|
4156
4156
|
});
|
|
4157
|
+
var roundedMap = {
|
|
4158
|
+
none: "rounded-none",
|
|
4159
|
+
sm: "rounded-sm",
|
|
4160
|
+
md: "rounded-md",
|
|
4161
|
+
lg: "rounded-lg",
|
|
4162
|
+
full: "rounded-full"
|
|
4163
|
+
};
|
|
4164
|
+
function SkeletonImage({
|
|
4165
|
+
className,
|
|
4166
|
+
width,
|
|
4167
|
+
height,
|
|
4168
|
+
aspectRatio = "16/9",
|
|
4169
|
+
rounded = "md",
|
|
4170
|
+
style,
|
|
4171
|
+
...props
|
|
4172
|
+
}) {
|
|
4173
|
+
return /* @__PURE__ */ jsx(
|
|
4174
|
+
Skeleton,
|
|
4175
|
+
{
|
|
4176
|
+
className: cn(roundedMap[rounded], className),
|
|
4177
|
+
style: {
|
|
4178
|
+
width,
|
|
4179
|
+
height,
|
|
4180
|
+
aspectRatio: !height ? aspectRatio : void 0,
|
|
4181
|
+
...style
|
|
4182
|
+
},
|
|
4183
|
+
...props
|
|
4184
|
+
}
|
|
4185
|
+
);
|
|
4186
|
+
}
|
|
4187
|
+
function ImageCard({
|
|
4188
|
+
status,
|
|
4189
|
+
aspectRatio = "1",
|
|
4190
|
+
loadingLabel = "Loading image",
|
|
4191
|
+
errorContent = "Image unavailable",
|
|
4192
|
+
children,
|
|
4193
|
+
style,
|
|
4194
|
+
...props
|
|
4195
|
+
}) {
|
|
4196
|
+
return /* @__PURE__ */ jsx(
|
|
4197
|
+
"div",
|
|
4198
|
+
{
|
|
4199
|
+
...props,
|
|
4200
|
+
"aria-busy": status === "loading",
|
|
4201
|
+
style: {
|
|
4202
|
+
position: "relative",
|
|
4203
|
+
overflow: "hidden",
|
|
4204
|
+
width: "100%",
|
|
4205
|
+
aspectRatio,
|
|
4206
|
+
...style
|
|
4207
|
+
},
|
|
4208
|
+
children: status === "loading" ? /* @__PURE__ */ jsx(SkeletonImage, { width: "100%", height: "100%", "aria-label": loadingLabel }) : status === "error" ? /* @__PURE__ */ jsx(
|
|
4209
|
+
"div",
|
|
4210
|
+
{
|
|
4211
|
+
role: "status",
|
|
4212
|
+
style: { display: "grid", placeItems: "center", height: "100%" },
|
|
4213
|
+
children: errorContent
|
|
4214
|
+
}
|
|
4215
|
+
) : children
|
|
4216
|
+
}
|
|
4217
|
+
);
|
|
4218
|
+
}
|
|
4219
|
+
function ImageGallery({
|
|
4220
|
+
minCardWidth = 180,
|
|
4221
|
+
gap = 12,
|
|
4222
|
+
style,
|
|
4223
|
+
...props
|
|
4224
|
+
}) {
|
|
4225
|
+
return /* @__PURE__ */ jsx(
|
|
4226
|
+
"div",
|
|
4227
|
+
{
|
|
4228
|
+
...props,
|
|
4229
|
+
style: {
|
|
4230
|
+
display: "grid",
|
|
4231
|
+
gridTemplateColumns: `repeat(auto-fit,minmax(min(100%,${minCardWidth}px),1fr))`,
|
|
4232
|
+
gap,
|
|
4233
|
+
...style
|
|
4234
|
+
}
|
|
4235
|
+
}
|
|
4236
|
+
);
|
|
4237
|
+
}
|
|
4157
4238
|
var sizeMap = {
|
|
4158
4239
|
xs: "size-6",
|
|
4159
4240
|
sm: "size-8",
|
|
@@ -4304,36 +4385,6 @@ function SkeletonForm({
|
|
|
4304
4385
|
showSubmitButton && /* @__PURE__ */ jsx(SkeletonItem, { index: fields, children: /* @__PURE__ */ jsx("div", { className: cn("pt-2", layout === "horizontal" && `pl-[${labelWidth + 16}px]`), children: /* @__PURE__ */ jsx(Skeleton, { className: "h-9 w-24 rounded-md" }) }) })
|
|
4305
4386
|
] }) });
|
|
4306
4387
|
}
|
|
4307
|
-
var roundedMap = {
|
|
4308
|
-
none: "rounded-none",
|
|
4309
|
-
sm: "rounded-sm",
|
|
4310
|
-
md: "rounded-md",
|
|
4311
|
-
lg: "rounded-lg",
|
|
4312
|
-
full: "rounded-full"
|
|
4313
|
-
};
|
|
4314
|
-
function SkeletonImage({
|
|
4315
|
-
className,
|
|
4316
|
-
width,
|
|
4317
|
-
height,
|
|
4318
|
-
aspectRatio = "16/9",
|
|
4319
|
-
rounded = "md",
|
|
4320
|
-
style,
|
|
4321
|
-
...props
|
|
4322
|
-
}) {
|
|
4323
|
-
return /* @__PURE__ */ jsx(
|
|
4324
|
-
Skeleton,
|
|
4325
|
-
{
|
|
4326
|
-
className: cn(roundedMap[rounded], className),
|
|
4327
|
-
style: {
|
|
4328
|
-
width,
|
|
4329
|
-
height,
|
|
4330
|
-
aspectRatio: !height ? aspectRatio : void 0,
|
|
4331
|
-
...style
|
|
4332
|
-
},
|
|
4333
|
-
...props
|
|
4334
|
-
}
|
|
4335
|
-
);
|
|
4336
|
-
}
|
|
4337
4388
|
var spacingMap = {
|
|
4338
4389
|
sm: "py-2",
|
|
4339
4390
|
md: "py-3",
|
|
@@ -4631,6 +4682,6 @@ var Leaf = forwardRef(({ className, item, isSelected, Icon: Icon2, children, ...
|
|
|
4631
4682
|
});
|
|
4632
4683
|
Leaf.displayName = "Leaf";
|
|
4633
4684
|
|
|
4634
|
-
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, BentoPanel, 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, PopoverClose, 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, SkeletonGroup, 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 };
|
|
4685
|
+
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, BentoPanel, 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, ImageCard, ImageGallery, 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, PopoverClose, 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, SkeletonGroup, 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 };
|
|
4635
4686
|
//# sourceMappingURL=index.mjs.map
|
|
4636
4687
|
//# sourceMappingURL=index.mjs.map
|