@moontra/moonui 2.0.0 → 2.0.2
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.d.mts +98 -1
- package/dist/index.d.ts +98 -1
- package/dist/index.js +9896 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9897 -16
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -1101,4 +1101,101 @@ declare const TableHead: React$1.ForwardRefExoticComponent<TableHeadProps & Reac
|
|
|
1101
1101
|
declare const TableCell: React$1.ForwardRefExoticComponent<React$1.TdHTMLAttributes<HTMLTableCellElement> & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
1102
1102
|
declare const TableCaption: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableCaptionElement> & React$1.RefAttributes<HTMLTableCaptionElement>>;
|
|
1103
1103
|
|
|
1104
|
-
|
|
1104
|
+
interface CalendarProps {
|
|
1105
|
+
mode?: "single" | "range" | "multiple";
|
|
1106
|
+
selected?: Date | Date[] | {
|
|
1107
|
+
from?: Date;
|
|
1108
|
+
to?: Date;
|
|
1109
|
+
} | undefined;
|
|
1110
|
+
onSelect?: (date: Date | Date[] | {
|
|
1111
|
+
from?: Date;
|
|
1112
|
+
to?: Date;
|
|
1113
|
+
} | undefined) => void;
|
|
1114
|
+
disabled?: (date: Date) => boolean;
|
|
1115
|
+
showOutsideDays?: boolean;
|
|
1116
|
+
className?: string;
|
|
1117
|
+
classNames?: Record<string, string>;
|
|
1118
|
+
numberOfMonths?: number;
|
|
1119
|
+
defaultMonth?: Date;
|
|
1120
|
+
initialFocus?: boolean;
|
|
1121
|
+
}
|
|
1122
|
+
declare function Calendar({ mode, selected, onSelect, disabled, showOutsideDays, className, classNames, numberOfMonths, defaultMonth, ...props }: CalendarProps): react_jsx_runtime.JSX.Element;
|
|
1123
|
+
declare namespace Calendar {
|
|
1124
|
+
var displayName: string;
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
/**
|
|
1128
|
+
* DatePicker Component
|
|
1129
|
+
*
|
|
1130
|
+
* A comprehensive date picker with calendar interface
|
|
1131
|
+
*/
|
|
1132
|
+
declare const datePickerVariants: (props?: {
|
|
1133
|
+
variant?: "default" | "outline" | "ghost";
|
|
1134
|
+
size?: "default" | "sm" | "lg" | "icon";
|
|
1135
|
+
state?: "default" | "success" | "warning" | "error";
|
|
1136
|
+
} & class_variance_authority_dist_types.ClassProp) => string;
|
|
1137
|
+
interface DatePickerProps extends Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, "onChange" | "value">, VariantProps<typeof datePickerVariants> {
|
|
1138
|
+
/**
|
|
1139
|
+
* Selected date value
|
|
1140
|
+
*/
|
|
1141
|
+
value?: Date;
|
|
1142
|
+
/**
|
|
1143
|
+
* Callback when date changes
|
|
1144
|
+
*/
|
|
1145
|
+
onChange?: (date: Date | undefined) => void;
|
|
1146
|
+
/**
|
|
1147
|
+
* Placeholder text
|
|
1148
|
+
*/
|
|
1149
|
+
placeholder?: string;
|
|
1150
|
+
/**
|
|
1151
|
+
* Date format string
|
|
1152
|
+
*/
|
|
1153
|
+
formatString?: string;
|
|
1154
|
+
/**
|
|
1155
|
+
* Minimum selectable date
|
|
1156
|
+
*/
|
|
1157
|
+
minDate?: Date;
|
|
1158
|
+
/**
|
|
1159
|
+
* Maximum selectable date
|
|
1160
|
+
*/
|
|
1161
|
+
maxDate?: Date;
|
|
1162
|
+
/**
|
|
1163
|
+
* Disabled dates
|
|
1164
|
+
*/
|
|
1165
|
+
disabledDates?: Date[];
|
|
1166
|
+
/**
|
|
1167
|
+
* Disabled days of week (0-6, Sunday is 0)
|
|
1168
|
+
*/
|
|
1169
|
+
disabledDaysOfWeek?: number[];
|
|
1170
|
+
/**
|
|
1171
|
+
* Show week numbers
|
|
1172
|
+
*/
|
|
1173
|
+
showWeekNumbers?: boolean;
|
|
1174
|
+
/**
|
|
1175
|
+
* Icon position
|
|
1176
|
+
*/
|
|
1177
|
+
iconPosition?: "left" | "right";
|
|
1178
|
+
/**
|
|
1179
|
+
* Custom icon
|
|
1180
|
+
*/
|
|
1181
|
+
icon?: React$1.ReactNode;
|
|
1182
|
+
/**
|
|
1183
|
+
* Allow clear
|
|
1184
|
+
*/
|
|
1185
|
+
allowClear?: boolean;
|
|
1186
|
+
/**
|
|
1187
|
+
* Read only
|
|
1188
|
+
*/
|
|
1189
|
+
readOnly?: boolean;
|
|
1190
|
+
/**
|
|
1191
|
+
* Show today button
|
|
1192
|
+
*/
|
|
1193
|
+
showTodayButton?: boolean;
|
|
1194
|
+
/**
|
|
1195
|
+
* Calendar props
|
|
1196
|
+
*/
|
|
1197
|
+
calendarProps?: React$1.ComponentProps<typeof Calendar>;
|
|
1198
|
+
}
|
|
1199
|
+
declare function DatePicker({ className, variant, size, state, value, onChange, placeholder, formatString, minDate, maxDate, disabledDates, disabledDaysOfWeek, showWeekNumbers, iconPosition, icon, allowClear, readOnly, showTodayButton, calendarProps, disabled, ...props }: DatePickerProps): react_jsx_runtime.JSX.Element;
|
|
1200
|
+
|
|
1201
|
+
export { Accordion, AccordionContent, AccordionContentProps, AccordionItem, AccordionItemProps, AccordionTrigger, AccordionTriggerProps, Alert, AlertDescription, AlertProps, AlertTitle, AspectRatio, AspectRatioProps, Avatar, AvatarFallback, AvatarImage, Badge, BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbEllipsisProps, BreadcrumbItem, BreadcrumbItemProps, BreadcrumbList, BreadcrumbListProps, BreadcrumbProps, BreadcrumbSeparator, BreadcrumbSeparatorProps, Button, ButtonProps, Calendar, CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardProps, CardTitle, Checkbox, CheckboxGroup, CheckboxLabel, CheckboxProps, CheckboxWithLabel, Collapsible, CollapsibleContent, CollapsibleContentProps, CollapsibleTrigger, CollapsibleTriggerProps, ColumnDefinition, Command, CommandDialog, CommandDialogProps, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DatePicker, DatePickerProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogForm, DialogHeader, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputProps, Label, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverContentProps, PopoverFooter, PopoverHeader, PopoverSeparator, PopoverTrigger, Progress, ProgressProps, RadioGroup, RadioGroupItem, RadioGroupItemProps, RadioItemWithLabel, RadioLabel, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Skeleton, SkeletonAvatar, SkeletonAvatarProps, SkeletonCard, SkeletonCardProps, SkeletonProps, SkeletonText, SkeletonTextProps, Slider, SortDirection, Switch, SwitchProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, TextareaProps, ThemeColors, ThemeConfig, ThemeProvider, ThemeProviderProps, Toast, ToastContainer, ToastProps, ToastProvider, Toggle, ToggleProps, Tooltip, TooltipContentProps, TooltipProps, accordionContentVariants, accordionItemVariants, accordionTriggerVariants, aspectRatioVariants, badgeVariants, buttonVariants, cn, collapsibleContentVariants, collapsibleTriggerVariants, combineRefs, commandGroupVariants, commandInputVariants, commandItemVariants, commandListVariants, commandVariants, createCssVariables, debounce, formatCurrency, generateId, get, navigationMenuTriggerStyle, popoverContentVariants, progressVariants, skeletonVariants, toastVariants, toggleVariants, tooltipContentVariants, useTheme, useToast };
|
package/dist/index.d.ts
CHANGED
|
@@ -1101,4 +1101,101 @@ declare const TableHead: React$1.ForwardRefExoticComponent<TableHeadProps & Reac
|
|
|
1101
1101
|
declare const TableCell: React$1.ForwardRefExoticComponent<React$1.TdHTMLAttributes<HTMLTableCellElement> & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
1102
1102
|
declare const TableCaption: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableCaptionElement> & React$1.RefAttributes<HTMLTableCaptionElement>>;
|
|
1103
1103
|
|
|
1104
|
-
|
|
1104
|
+
interface CalendarProps {
|
|
1105
|
+
mode?: "single" | "range" | "multiple";
|
|
1106
|
+
selected?: Date | Date[] | {
|
|
1107
|
+
from?: Date;
|
|
1108
|
+
to?: Date;
|
|
1109
|
+
} | undefined;
|
|
1110
|
+
onSelect?: (date: Date | Date[] | {
|
|
1111
|
+
from?: Date;
|
|
1112
|
+
to?: Date;
|
|
1113
|
+
} | undefined) => void;
|
|
1114
|
+
disabled?: (date: Date) => boolean;
|
|
1115
|
+
showOutsideDays?: boolean;
|
|
1116
|
+
className?: string;
|
|
1117
|
+
classNames?: Record<string, string>;
|
|
1118
|
+
numberOfMonths?: number;
|
|
1119
|
+
defaultMonth?: Date;
|
|
1120
|
+
initialFocus?: boolean;
|
|
1121
|
+
}
|
|
1122
|
+
declare function Calendar({ mode, selected, onSelect, disabled, showOutsideDays, className, classNames, numberOfMonths, defaultMonth, ...props }: CalendarProps): react_jsx_runtime.JSX.Element;
|
|
1123
|
+
declare namespace Calendar {
|
|
1124
|
+
var displayName: string;
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
/**
|
|
1128
|
+
* DatePicker Component
|
|
1129
|
+
*
|
|
1130
|
+
* A comprehensive date picker with calendar interface
|
|
1131
|
+
*/
|
|
1132
|
+
declare const datePickerVariants: (props?: {
|
|
1133
|
+
variant?: "default" | "outline" | "ghost";
|
|
1134
|
+
size?: "default" | "sm" | "lg" | "icon";
|
|
1135
|
+
state?: "default" | "success" | "warning" | "error";
|
|
1136
|
+
} & class_variance_authority_dist_types.ClassProp) => string;
|
|
1137
|
+
interface DatePickerProps extends Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, "onChange" | "value">, VariantProps<typeof datePickerVariants> {
|
|
1138
|
+
/**
|
|
1139
|
+
* Selected date value
|
|
1140
|
+
*/
|
|
1141
|
+
value?: Date;
|
|
1142
|
+
/**
|
|
1143
|
+
* Callback when date changes
|
|
1144
|
+
*/
|
|
1145
|
+
onChange?: (date: Date | undefined) => void;
|
|
1146
|
+
/**
|
|
1147
|
+
* Placeholder text
|
|
1148
|
+
*/
|
|
1149
|
+
placeholder?: string;
|
|
1150
|
+
/**
|
|
1151
|
+
* Date format string
|
|
1152
|
+
*/
|
|
1153
|
+
formatString?: string;
|
|
1154
|
+
/**
|
|
1155
|
+
* Minimum selectable date
|
|
1156
|
+
*/
|
|
1157
|
+
minDate?: Date;
|
|
1158
|
+
/**
|
|
1159
|
+
* Maximum selectable date
|
|
1160
|
+
*/
|
|
1161
|
+
maxDate?: Date;
|
|
1162
|
+
/**
|
|
1163
|
+
* Disabled dates
|
|
1164
|
+
*/
|
|
1165
|
+
disabledDates?: Date[];
|
|
1166
|
+
/**
|
|
1167
|
+
* Disabled days of week (0-6, Sunday is 0)
|
|
1168
|
+
*/
|
|
1169
|
+
disabledDaysOfWeek?: number[];
|
|
1170
|
+
/**
|
|
1171
|
+
* Show week numbers
|
|
1172
|
+
*/
|
|
1173
|
+
showWeekNumbers?: boolean;
|
|
1174
|
+
/**
|
|
1175
|
+
* Icon position
|
|
1176
|
+
*/
|
|
1177
|
+
iconPosition?: "left" | "right";
|
|
1178
|
+
/**
|
|
1179
|
+
* Custom icon
|
|
1180
|
+
*/
|
|
1181
|
+
icon?: React$1.ReactNode;
|
|
1182
|
+
/**
|
|
1183
|
+
* Allow clear
|
|
1184
|
+
*/
|
|
1185
|
+
allowClear?: boolean;
|
|
1186
|
+
/**
|
|
1187
|
+
* Read only
|
|
1188
|
+
*/
|
|
1189
|
+
readOnly?: boolean;
|
|
1190
|
+
/**
|
|
1191
|
+
* Show today button
|
|
1192
|
+
*/
|
|
1193
|
+
showTodayButton?: boolean;
|
|
1194
|
+
/**
|
|
1195
|
+
* Calendar props
|
|
1196
|
+
*/
|
|
1197
|
+
calendarProps?: React$1.ComponentProps<typeof Calendar>;
|
|
1198
|
+
}
|
|
1199
|
+
declare function DatePicker({ className, variant, size, state, value, onChange, placeholder, formatString, minDate, maxDate, disabledDates, disabledDaysOfWeek, showWeekNumbers, iconPosition, icon, allowClear, readOnly, showTodayButton, calendarProps, disabled, ...props }: DatePickerProps): react_jsx_runtime.JSX.Element;
|
|
1200
|
+
|
|
1201
|
+
export { Accordion, AccordionContent, AccordionContentProps, AccordionItem, AccordionItemProps, AccordionTrigger, AccordionTriggerProps, Alert, AlertDescription, AlertProps, AlertTitle, AspectRatio, AspectRatioProps, Avatar, AvatarFallback, AvatarImage, Badge, BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbEllipsisProps, BreadcrumbItem, BreadcrumbItemProps, BreadcrumbList, BreadcrumbListProps, BreadcrumbProps, BreadcrumbSeparator, BreadcrumbSeparatorProps, Button, ButtonProps, Calendar, CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardProps, CardTitle, Checkbox, CheckboxGroup, CheckboxLabel, CheckboxProps, CheckboxWithLabel, Collapsible, CollapsibleContent, CollapsibleContentProps, CollapsibleTrigger, CollapsibleTriggerProps, ColumnDefinition, Command, CommandDialog, CommandDialogProps, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DatePicker, DatePickerProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogForm, DialogHeader, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputProps, Label, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverContentProps, PopoverFooter, PopoverHeader, PopoverSeparator, PopoverTrigger, Progress, ProgressProps, RadioGroup, RadioGroupItem, RadioGroupItemProps, RadioItemWithLabel, RadioLabel, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Skeleton, SkeletonAvatar, SkeletonAvatarProps, SkeletonCard, SkeletonCardProps, SkeletonProps, SkeletonText, SkeletonTextProps, Slider, SortDirection, Switch, SwitchProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, TextareaProps, ThemeColors, ThemeConfig, ThemeProvider, ThemeProviderProps, Toast, ToastContainer, ToastProps, ToastProvider, Toggle, ToggleProps, Tooltip, TooltipContentProps, TooltipProps, accordionContentVariants, accordionItemVariants, accordionTriggerVariants, aspectRatioVariants, badgeVariants, buttonVariants, cn, collapsibleContentVariants, collapsibleTriggerVariants, combineRefs, commandGroupVariants, commandInputVariants, commandItemVariants, commandListVariants, commandVariants, createCssVariables, debounce, formatCurrency, generateId, get, navigationMenuTriggerStyle, popoverContentVariants, progressVariants, skeletonVariants, toastVariants, toggleVariants, tooltipContentVariants, useTheme, useToast };
|