@moontra/moonui 2.0.11 → 2.1.0
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.js +16 -14
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -13
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/ui/button.tsx +15 -11
package/dist/index.mjs
CHANGED
|
@@ -672,7 +672,7 @@ var BreadcrumbPage = t.forwardRef(
|
|
|
672
672
|
)
|
|
673
673
|
);
|
|
674
674
|
BreadcrumbPage.displayName = "BreadcrumbPage";
|
|
675
|
-
var
|
|
675
|
+
var moonUIButtonVariants = cva(
|
|
676
676
|
[
|
|
677
677
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap",
|
|
678
678
|
"font-medium relative",
|
|
@@ -821,7 +821,7 @@ var buttonVariants = cva(
|
|
|
821
821
|
}
|
|
822
822
|
}
|
|
823
823
|
);
|
|
824
|
-
var
|
|
824
|
+
var MoonUIButton = t.forwardRef(
|
|
825
825
|
({
|
|
826
826
|
className,
|
|
827
827
|
variant,
|
|
@@ -840,7 +840,7 @@ var Button = t.forwardRef(
|
|
|
840
840
|
return /* @__PURE__ */ jsxs(
|
|
841
841
|
Comp,
|
|
842
842
|
{
|
|
843
|
-
className: cn(
|
|
843
|
+
className: cn(moonUIButtonVariants({ variant, size, rounded, fullWidth, className })),
|
|
844
844
|
ref,
|
|
845
845
|
disabled: disabled || loading,
|
|
846
846
|
"data-loading": loading ? "" : void 0,
|
|
@@ -855,7 +855,7 @@ var Button = t.forwardRef(
|
|
|
855
855
|
);
|
|
856
856
|
}
|
|
857
857
|
);
|
|
858
|
-
|
|
858
|
+
MoonUIButton.displayName = "MoonUIButton";
|
|
859
859
|
var millisecondsInWeek = 6048e5;
|
|
860
860
|
var millisecondsInDay = 864e5;
|
|
861
861
|
var constructFromSymbol = Symbol.for("constructDateFrom");
|
|
@@ -4617,7 +4617,7 @@ function DatePicker({
|
|
|
4617
4617
|
const iconElement = icon || /* @__PURE__ */ jsx(Calendar$1, { className: "h-4 w-4" });
|
|
4618
4618
|
return /* @__PURE__ */ jsxs(Popover, { open, onOpenChange: setOpen, children: [
|
|
4619
4619
|
/* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(
|
|
4620
|
-
|
|
4620
|
+
MoonUIButton,
|
|
4621
4621
|
{
|
|
4622
4622
|
variant: variant === "minimal" ? "ghost" : variant || "outline",
|
|
4623
4623
|
className: cn(
|
|
@@ -4714,7 +4714,7 @@ function DatePicker({
|
|
|
4714
4714
|
}
|
|
4715
4715
|
),
|
|
4716
4716
|
showTodayButton && /* @__PURE__ */ jsx("div", { className: "border-t px-4 py-3", children: /* @__PURE__ */ jsx(
|
|
4717
|
-
|
|
4717
|
+
MoonUIButton,
|
|
4718
4718
|
{
|
|
4719
4719
|
variant: "ghost",
|
|
4720
4720
|
size: "sm",
|
|
@@ -4764,7 +4764,7 @@ function DateRangePicker({
|
|
|
4764
4764
|
}, [internalRange, formatString, separator]);
|
|
4765
4765
|
return /* @__PURE__ */ jsxs(Popover, { open, onOpenChange: setOpen, children: [
|
|
4766
4766
|
/* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(
|
|
4767
|
-
|
|
4767
|
+
MoonUIButton,
|
|
4768
4768
|
{
|
|
4769
4769
|
variant: props.variant === "minimal" ? "ghost" : props.variant || "outline",
|
|
4770
4770
|
className: cn(
|
|
@@ -4922,7 +4922,7 @@ function MonthPicker({
|
|
|
4922
4922
|
const displayValue = value ? format(value, formatString) : null;
|
|
4923
4923
|
return /* @__PURE__ */ jsxs(Popover, { open, onOpenChange: setOpen, children: [
|
|
4924
4924
|
/* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(
|
|
4925
|
-
|
|
4925
|
+
MoonUIButton,
|
|
4926
4926
|
{
|
|
4927
4927
|
variant: props.variant || "outline",
|
|
4928
4928
|
className: cn(
|
|
@@ -4944,7 +4944,7 @@ function MonthPicker({
|
|
|
4944
4944
|
/* @__PURE__ */ jsx(PopoverContent, { className: "w-64 p-0", align: "start", children: /* @__PURE__ */ jsxs("div", { className: "p-3", children: [
|
|
4945
4945
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between mb-3", children: [
|
|
4946
4946
|
/* @__PURE__ */ jsx(
|
|
4947
|
-
|
|
4947
|
+
MoonUIButton,
|
|
4948
4948
|
{
|
|
4949
4949
|
variant: "outline",
|
|
4950
4950
|
size: "icon",
|
|
@@ -4954,7 +4954,7 @@ function MonthPicker({
|
|
|
4954
4954
|
),
|
|
4955
4955
|
/* @__PURE__ */ jsx("span", { className: "font-semibold", children: viewDate.getFullYear() }),
|
|
4956
4956
|
/* @__PURE__ */ jsx(
|
|
4957
|
-
|
|
4957
|
+
MoonUIButton,
|
|
4958
4958
|
{
|
|
4959
4959
|
variant: "outline",
|
|
4960
4960
|
size: "icon",
|
|
@@ -4964,7 +4964,7 @@ function MonthPicker({
|
|
|
4964
4964
|
)
|
|
4965
4965
|
] }),
|
|
4966
4966
|
/* @__PURE__ */ jsx("div", { className: "grid grid-cols-3 gap-2", children: months.map((month, index) => /* @__PURE__ */ jsx(
|
|
4967
|
-
|
|
4967
|
+
MoonUIButton,
|
|
4968
4968
|
{
|
|
4969
4969
|
variant: value && value.getMonth() === index ? "default" : "outline",
|
|
4970
4970
|
size: "sm",
|
|
@@ -5293,7 +5293,7 @@ var PaginationLink = ({
|
|
|
5293
5293
|
{
|
|
5294
5294
|
"aria-current": isActive ? "page" : void 0,
|
|
5295
5295
|
className: cn(
|
|
5296
|
-
|
|
5296
|
+
moonUIButtonVariants({
|
|
5297
5297
|
variant: isActive ? "outline" : "ghost",
|
|
5298
5298
|
size
|
|
5299
5299
|
}),
|
|
@@ -7204,6 +7204,6 @@ var SimpleTooltip = t.forwardRef(
|
|
|
7204
7204
|
);
|
|
7205
7205
|
SimpleTooltip.displayName = "SimpleTooltip";
|
|
7206
7206
|
|
|
7207
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertTitle, AspectRatio, Avatar, AvatarFallback, AvatarGroup, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, CheckboxGroup, CheckboxLabel, CheckboxWithLabel, Collapsible2 as Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DatePicker, DateRangePicker, DateTimePicker, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogForm, DialogHeader, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Input, Label2 as Label, MonthPicker, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverFooter, PopoverHeader, PopoverSeparator, PopoverTrigger, Progress, RadioGroup2 as RadioGroup, RadioGroupItem, RadioItemWithLabel, RadioLabel, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator3 as Separator, SimpleTooltip, Skeleton, SkeletonAvatar, SkeletonCard, SkeletonText, Slider, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toast, ToastAction, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport, Toaster, Toggle2 as Toggle, Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger, aspectRatioVariants, badgeVariants, buttonVariants, cn, collapsibleContentVariants, collapsibleTriggerVariants, format, formatCurrency, formatDate, generateId, getClientIP, popoverContentVariants, progressVariants, separatorVariants, skeletonVariants, toast, toggleVariants, tooltipVariants, truncateText, useToast };
|
|
7207
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertTitle, AspectRatio, Avatar, AvatarFallback, AvatarGroup, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, MoonUIButton as Button, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, CheckboxGroup, CheckboxLabel, CheckboxWithLabel, Collapsible2 as Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DatePicker, DateRangePicker, DateTimePicker, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogForm, DialogHeader, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Input, Label2 as Label, MonthPicker, MoonUIButton, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverFooter, PopoverHeader, PopoverSeparator, PopoverTrigger, Progress, RadioGroup2 as RadioGroup, RadioGroupItem, RadioItemWithLabel, RadioLabel, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator3 as Separator, SimpleTooltip, Skeleton, SkeletonAvatar, SkeletonCard, SkeletonText, Slider, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toast, ToastAction, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport, Toaster, Toggle2 as Toggle, Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger, aspectRatioVariants, badgeVariants, moonUIButtonVariants as buttonVariants, cn, collapsibleContentVariants, collapsibleTriggerVariants, format, formatCurrency, formatDate, generateId, getClientIP, moonUIButtonVariants, popoverContentVariants, progressVariants, separatorVariants, skeletonVariants, toast, toggleVariants, tooltipVariants, truncateText, useToast };
|
|
7208
7208
|
//# sourceMappingURL=out.js.map
|
|
7209
7209
|
//# sourceMappingURL=index.mjs.map
|