myshell-react-lib 0.1.0 → 0.1.1
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.cjs +92 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +25 -1
- package/dist/index.d.ts +25 -1
- package/dist/index.js +85 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/components/custom-notification.tsx +1 -1
- package/src/components/masonry.tsx +1 -1
- package/src/components/spinner.tsx +3 -1
- package/src/stories/Spinner.stories.tsx +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -517,6 +517,20 @@ interface LinkProps {
|
|
|
517
517
|
}
|
|
518
518
|
declare function Link({ className, href, scroll, replace, prefetch, back, children, onClick, ...props }: LinkProps): react_jsx_runtime.JSX.Element;
|
|
519
519
|
|
|
520
|
+
interface BreakpointColsObject {
|
|
521
|
+
default: number;
|
|
522
|
+
[key: number]: number;
|
|
523
|
+
}
|
|
524
|
+
interface MasonryProps {
|
|
525
|
+
breakpointCols?: number | BreakpointColsObject;
|
|
526
|
+
className?: string;
|
|
527
|
+
columnClassName?: string;
|
|
528
|
+
children?: React__default.ReactNode;
|
|
529
|
+
columnAttrs?: React__default.HTMLAttributes<HTMLDivElement>;
|
|
530
|
+
heights?: number[];
|
|
531
|
+
}
|
|
532
|
+
declare const Masonry: React__default.FC<MasonryProps>;
|
|
533
|
+
|
|
520
534
|
declare const MenubarMenu: {
|
|
521
535
|
(props: MenubarPrimitive.MenubarMenuProps & {
|
|
522
536
|
__scopeMenubar?: _radix_ui_react_context.Scope;
|
|
@@ -1023,6 +1037,16 @@ interface ISliderSingleProps extends ISliderBaseProps {
|
|
|
1023
1037
|
}
|
|
1024
1038
|
declare const SliderSingle: React$1.ForwardRefExoticComponent<Omit<ISliderSingleProps, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
1025
1039
|
|
|
1040
|
+
declare const spinnerVariants: (props?: ({
|
|
1041
|
+
size?: "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
1042
|
+
speed?: "default" | "slow" | "fast" | null | undefined;
|
|
1043
|
+
color?: "default" | "static" | "brand" | "warning" | "success" | null | undefined;
|
|
1044
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
1045
|
+
interface SpinnerProps extends VariantProps<typeof spinnerVariants> {
|
|
1046
|
+
className?: ClassNameValue;
|
|
1047
|
+
}
|
|
1048
|
+
declare function Spinner(props: SpinnerProps): react_jsx_runtime.JSX.Element;
|
|
1049
|
+
|
|
1026
1050
|
declare const Switch: React$1.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
1027
1051
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
1028
1052
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string> & {
|
|
@@ -1428,4 +1452,4 @@ declare global {
|
|
|
1428
1452
|
}
|
|
1429
1453
|
}
|
|
1430
1454
|
|
|
1431
|
-
export { Accordion, AccordionContent, AccordionItem, type AccordionItemProps, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Avatar, AvatarImage, AvatarRoot, Button, type ButtonProps, type CascaderOption, Checkbox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, type CustomToasterProps, Description, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Display, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Guide, Heading, type HeroIcon$1 as HeroIcon, type IAudioProps, type INumberInputProps, type ISelectProps, Icon, IconButton, type IconButtonProps, type IconComponent, type IconProps, Image, type ImageProps, Input, type InputProps, Label, Link, type LinkProps, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Message, Modal, ModalBody, ModalContent, ModalFooter, ModalHeader, ModalOverlay, ModalRoot, ModalTitle, NavigationBar, NumberInput, Paragraph, Popover, PopoverAnchor, PopoverContent, type PopoverContentExs, PopoverRoot, Progress, type ProgressProps, RadioGroup, RadioGroupItem, ScrollArea, ScrollBar, SearchBar, type SearchBarProps, type SearchInputProps, SecondaryNavigationBar, Select, SelectContent, SelectGroup, SelectIcon, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Skeleton, Slider, SliderSingle, SubHeading, SubTitle, Swiper, type SwiperProps, Switch, type TModalState, Tab, Tabs, TabsContent, Text, Textarea, type TextareaProps, Title, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, type ToastType, ToastViewport, Toaster, type ToasterProps, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipProvider, buttonVariants, dangerouText, iconButtonVariants, reducer, toast, toggleVariants, useDevice, useFormField, useIsMobileByWindowWidth, useNativeBridge, useNotification, useToast, useWindowWidth };
|
|
1455
|
+
export { Accordion, AccordionContent, AccordionItem, type AccordionItemProps, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Avatar, AvatarImage, AvatarRoot, Button, type ButtonProps, type CascaderOption, Checkbox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, type CustomToasterProps, Description, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Display, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Guide, Heading, type HeroIcon$1 as HeroIcon, type IAudioProps, type INumberInputProps, type ISelectProps, Icon, IconButton, type IconButtonProps, type IconComponent, type IconProps, Image, type ImageProps, Input, type InputProps, Label, Link, type LinkProps, Masonry, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Message, Modal, ModalBody, ModalContent, ModalFooter, ModalHeader, ModalOverlay, ModalRoot, ModalTitle, NavigationBar, NumberInput, Paragraph, Popover, PopoverAnchor, PopoverContent, type PopoverContentExs, PopoverRoot, Progress, type ProgressProps, RadioGroup, RadioGroupItem, ScrollArea, ScrollBar, SearchBar, type SearchBarProps, type SearchInputProps, SecondaryNavigationBar, Select, SelectContent, SelectGroup, SelectIcon, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Skeleton, Slider, SliderSingle, Spinner, SubHeading, SubTitle, Swiper, type SwiperProps, Switch, type TModalState, Tab, Tabs, TabsContent, Text, Textarea, type TextareaProps, Title, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, type ToastType, ToastViewport, Toaster, type ToasterProps, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipProvider, buttonVariants, dangerouText, iconButtonVariants, reducer, toast, toggleVariants, useDevice, useFormField, useIsMobileByWindowWidth, useNativeBridge, useNotification, useToast, useWindowWidth };
|
package/dist/index.d.ts
CHANGED
|
@@ -517,6 +517,20 @@ interface LinkProps {
|
|
|
517
517
|
}
|
|
518
518
|
declare function Link({ className, href, scroll, replace, prefetch, back, children, onClick, ...props }: LinkProps): react_jsx_runtime.JSX.Element;
|
|
519
519
|
|
|
520
|
+
interface BreakpointColsObject {
|
|
521
|
+
default: number;
|
|
522
|
+
[key: number]: number;
|
|
523
|
+
}
|
|
524
|
+
interface MasonryProps {
|
|
525
|
+
breakpointCols?: number | BreakpointColsObject;
|
|
526
|
+
className?: string;
|
|
527
|
+
columnClassName?: string;
|
|
528
|
+
children?: React__default.ReactNode;
|
|
529
|
+
columnAttrs?: React__default.HTMLAttributes<HTMLDivElement>;
|
|
530
|
+
heights?: number[];
|
|
531
|
+
}
|
|
532
|
+
declare const Masonry: React__default.FC<MasonryProps>;
|
|
533
|
+
|
|
520
534
|
declare const MenubarMenu: {
|
|
521
535
|
(props: MenubarPrimitive.MenubarMenuProps & {
|
|
522
536
|
__scopeMenubar?: _radix_ui_react_context.Scope;
|
|
@@ -1023,6 +1037,16 @@ interface ISliderSingleProps extends ISliderBaseProps {
|
|
|
1023
1037
|
}
|
|
1024
1038
|
declare const SliderSingle: React$1.ForwardRefExoticComponent<Omit<ISliderSingleProps, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
1025
1039
|
|
|
1040
|
+
declare const spinnerVariants: (props?: ({
|
|
1041
|
+
size?: "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
1042
|
+
speed?: "default" | "slow" | "fast" | null | undefined;
|
|
1043
|
+
color?: "default" | "static" | "brand" | "warning" | "success" | null | undefined;
|
|
1044
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
1045
|
+
interface SpinnerProps extends VariantProps<typeof spinnerVariants> {
|
|
1046
|
+
className?: ClassNameValue;
|
|
1047
|
+
}
|
|
1048
|
+
declare function Spinner(props: SpinnerProps): react_jsx_runtime.JSX.Element;
|
|
1049
|
+
|
|
1026
1050
|
declare const Switch: React$1.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
1027
1051
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
1028
1052
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string> & {
|
|
@@ -1428,4 +1452,4 @@ declare global {
|
|
|
1428
1452
|
}
|
|
1429
1453
|
}
|
|
1430
1454
|
|
|
1431
|
-
export { Accordion, AccordionContent, AccordionItem, type AccordionItemProps, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Avatar, AvatarImage, AvatarRoot, Button, type ButtonProps, type CascaderOption, Checkbox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, type CustomToasterProps, Description, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Display, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Guide, Heading, type HeroIcon$1 as HeroIcon, type IAudioProps, type INumberInputProps, type ISelectProps, Icon, IconButton, type IconButtonProps, type IconComponent, type IconProps, Image, type ImageProps, Input, type InputProps, Label, Link, type LinkProps, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Message, Modal, ModalBody, ModalContent, ModalFooter, ModalHeader, ModalOverlay, ModalRoot, ModalTitle, NavigationBar, NumberInput, Paragraph, Popover, PopoverAnchor, PopoverContent, type PopoverContentExs, PopoverRoot, Progress, type ProgressProps, RadioGroup, RadioGroupItem, ScrollArea, ScrollBar, SearchBar, type SearchBarProps, type SearchInputProps, SecondaryNavigationBar, Select, SelectContent, SelectGroup, SelectIcon, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Skeleton, Slider, SliderSingle, SubHeading, SubTitle, Swiper, type SwiperProps, Switch, type TModalState, Tab, Tabs, TabsContent, Text, Textarea, type TextareaProps, Title, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, type ToastType, ToastViewport, Toaster, type ToasterProps, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipProvider, buttonVariants, dangerouText, iconButtonVariants, reducer, toast, toggleVariants, useDevice, useFormField, useIsMobileByWindowWidth, useNativeBridge, useNotification, useToast, useWindowWidth };
|
|
1455
|
+
export { Accordion, AccordionContent, AccordionItem, type AccordionItemProps, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Avatar, AvatarImage, AvatarRoot, Button, type ButtonProps, type CascaderOption, Checkbox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, type CustomToasterProps, Description, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Display, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Guide, Heading, type HeroIcon$1 as HeroIcon, type IAudioProps, type INumberInputProps, type ISelectProps, Icon, IconButton, type IconButtonProps, type IconComponent, type IconProps, Image, type ImageProps, Input, type InputProps, Label, Link, type LinkProps, Masonry, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Message, Modal, ModalBody, ModalContent, ModalFooter, ModalHeader, ModalOverlay, ModalRoot, ModalTitle, NavigationBar, NumberInput, Paragraph, Popover, PopoverAnchor, PopoverContent, type PopoverContentExs, PopoverRoot, Progress, type ProgressProps, RadioGroup, RadioGroupItem, ScrollArea, ScrollBar, SearchBar, type SearchBarProps, type SearchInputProps, SecondaryNavigationBar, Select, SelectContent, SelectGroup, SelectIcon, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Skeleton, Slider, SliderSingle, Spinner, SubHeading, SubTitle, Swiper, type SwiperProps, Switch, type TModalState, Tab, Tabs, TabsContent, Text, Textarea, type TextareaProps, Title, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, type ToastType, ToastViewport, Toaster, type ToasterProps, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipProvider, buttonVariants, dangerouText, iconButtonVariants, reducer, toast, toggleVariants, useDevice, useFormField, useIsMobileByWindowWidth, useNativeBridge, useNotification, useToast, useWindowWidth };
|
package/dist/index.js
CHANGED
|
@@ -3412,6 +3412,90 @@ import { indexOf, min } from "lodash-es";
|
|
|
3412
3412
|
import { Children, useEffect as useEffect6, useState as useState5 } from "react";
|
|
3413
3413
|
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
3414
3414
|
import { createElement } from "react";
|
|
3415
|
+
var Masonry = function(param) {
|
|
3416
|
+
var _param_breakpointCols = param.breakpointCols, breakpointCols = _param_breakpointCols === void 0 ? {
|
|
3417
|
+
default: 0,
|
|
3418
|
+
3280: 5,
|
|
3419
|
+
1919: 4,
|
|
3420
|
+
1439: 3,
|
|
3421
|
+
1199: 2
|
|
3422
|
+
} : _param_breakpointCols, _param_className = param.className, className = _param_className === void 0 ? "" : _param_className, _param_columnClassName = param.columnClassName, columnClassName = _param_columnClassName === void 0 ? "" : _param_columnClassName, children = param.children, _param_columnAttrs = param.columnAttrs, columnAttrs = _param_columnAttrs === void 0 ? {} : _param_columnAttrs, heights = param.heights;
|
|
3423
|
+
var _useState5 = _sliced_to_array(useState5(typeof breakpointCols === "number" ? breakpointCols : breakpointCols.default), 2), columnCount = _useState5[0], setColumnCount = _useState5[1];
|
|
3424
|
+
var reCalculateColumnCount = function() {
|
|
3425
|
+
var _window;
|
|
3426
|
+
var windowWidth = ((_window = window) === null || _window === void 0 ? void 0 : _window.innerWidth) || Infinity;
|
|
3427
|
+
var newColumnCount = columnCount;
|
|
3428
|
+
if ((typeof breakpointCols === "undefined" ? "undefined" : _type_of(breakpointCols)) === "object") {
|
|
3429
|
+
var matchedBreakpoint = Infinity;
|
|
3430
|
+
for(var breakpoint in breakpointCols){
|
|
3431
|
+
var optBreakpoint = parseInt(breakpoint);
|
|
3432
|
+
var isCurrentBreakpoint = optBreakpoint > 0 && windowWidth <= optBreakpoint;
|
|
3433
|
+
if (isCurrentBreakpoint && optBreakpoint < matchedBreakpoint) {
|
|
3434
|
+
matchedBreakpoint = optBreakpoint;
|
|
3435
|
+
newColumnCount = breakpointCols[breakpoint];
|
|
3436
|
+
}
|
|
3437
|
+
}
|
|
3438
|
+
newColumnCount = Math.max(1, newColumnCount || 1);
|
|
3439
|
+
}
|
|
3440
|
+
if (columnCount !== newColumnCount) {
|
|
3441
|
+
setColumnCount(newColumnCount);
|
|
3442
|
+
}
|
|
3443
|
+
};
|
|
3444
|
+
useEffect6(function() {
|
|
3445
|
+
var handleResize = function() {
|
|
3446
|
+
reCalculateColumnCount();
|
|
3447
|
+
};
|
|
3448
|
+
window.addEventListener("resize", handleResize);
|
|
3449
|
+
handleResize();
|
|
3450
|
+
return function() {
|
|
3451
|
+
window.removeEventListener("resize", handleResize);
|
|
3452
|
+
};
|
|
3453
|
+
}, [
|
|
3454
|
+
breakpointCols,
|
|
3455
|
+
columnCount
|
|
3456
|
+
]);
|
|
3457
|
+
var itemsInColumns = function() {
|
|
3458
|
+
var columns = new Array(columnCount);
|
|
3459
|
+
var totals = new Array(columnCount).fill(0);
|
|
3460
|
+
var items = Children.toArray(children);
|
|
3461
|
+
if (heights) {
|
|
3462
|
+
for(var i = 0; i < items.length; i++){
|
|
3463
|
+
var columnIndex = indexOf(totals, min(totals));
|
|
3464
|
+
if (!columns[columnIndex]) {
|
|
3465
|
+
columns[columnIndex] = [];
|
|
3466
|
+
}
|
|
3467
|
+
columns[columnIndex].push(items[i]);
|
|
3468
|
+
totals[columnIndex] += heights[i];
|
|
3469
|
+
}
|
|
3470
|
+
} else {
|
|
3471
|
+
for(var i1 = 0; i1 < items.length; i1++){
|
|
3472
|
+
var columnIndex1 = i1 % columnCount;
|
|
3473
|
+
if (!columns[columnIndex1]) {
|
|
3474
|
+
columns[columnIndex1] = [];
|
|
3475
|
+
}
|
|
3476
|
+
columns[columnIndex1].push(items[i1]);
|
|
3477
|
+
}
|
|
3478
|
+
}
|
|
3479
|
+
return columns;
|
|
3480
|
+
};
|
|
3481
|
+
var renderColumns = function() {
|
|
3482
|
+
var childrenInColumns = itemsInColumns();
|
|
3483
|
+
var columnWidth = "".concat(100 / childrenInColumns.length, "%");
|
|
3484
|
+
return childrenInColumns.map(function(items, i) {
|
|
3485
|
+
return /* @__PURE__ */ createElement("div", _object_spread_props(_object_spread({}, columnAttrs), {
|
|
3486
|
+
style: _object_spread_props(_object_spread({}, columnAttrs.style), {
|
|
3487
|
+
width: columnWidth
|
|
3488
|
+
}),
|
|
3489
|
+
className: cn("space-y-2 bg-clip-padding pl-2 md:space-y-5 md:pl-5", columnClassName),
|
|
3490
|
+
key: i
|
|
3491
|
+
}), items);
|
|
3492
|
+
});
|
|
3493
|
+
};
|
|
3494
|
+
return /* @__PURE__ */ jsx32("div", _object_spread_props(_object_spread({}, columnAttrs), {
|
|
3495
|
+
className: cn("mr-4 flex w-auto md:mr-6", className || "my-masonry-grid"),
|
|
3496
|
+
children: columnCount > 0 && renderColumns()
|
|
3497
|
+
}));
|
|
3498
|
+
};
|
|
3415
3499
|
// src/components/menubar.tsx
|
|
3416
3500
|
import * as React23 from "react";
|
|
3417
3501
|
import * as MenubarPrimitive from "@radix-ui/react-menubar";
|
|
@@ -8774,7 +8858,7 @@ var Message = /*#__PURE__*/ function() {
|
|
|
8774
8858
|
]);
|
|
8775
8859
|
return Message;
|
|
8776
8860
|
}();
|
|
8777
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Avatar, AvatarImage, AvatarRoot, Button, Checkbox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, Description, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Display, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Guide, Heading, Icon, IconButton, Image2 as Image, Input, Label3 as Label, Link, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Message, Modal, ModalBody, ModalContent, ModalFooter, ModalHeader, ModalOverlay, ModalRoot, ModalTitle, NavigationBar, NumberInput, Paragraph, Popover, PopoverAnchor, PopoverContent, PopoverRoot, Progress, RadioGroup4 as RadioGroup, RadioGroupItem, ScrollArea, ScrollBar, SearchBar, SecondaryNavigationBar, Select, SelectContent, SelectGroup, SelectIcon, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Skeleton, Slider, SliderSingle, SubHeading, SubTitle, Swiper, Switch, Tab, Tabs, TabsContent, Text, Textarea, Title, Toast, ToastAction, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipProvider, buttonVariants, dangerouText, iconButtonVariants, reducer, toast, toggleVariants, useDevice, useFormField, useIsMobileByWindowWidth, useNativeBridge, useNotification, useToast, useWindowWidth }; /*! Bundled license information:
|
|
8861
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Avatar, AvatarImage, AvatarRoot, Button, Checkbox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, Description, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Display, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Guide, Heading, Icon, IconButton, Image2 as Image, Input, Label3 as Label, Link, Masonry, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Message, Modal, ModalBody, ModalContent, ModalFooter, ModalHeader, ModalOverlay, ModalRoot, ModalTitle, NavigationBar, NumberInput, Paragraph, Popover, PopoverAnchor, PopoverContent, PopoverRoot, Progress, RadioGroup4 as RadioGroup, RadioGroupItem, ScrollArea, ScrollBar, SearchBar, SecondaryNavigationBar, Select, SelectContent, SelectGroup, SelectIcon, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Skeleton, Slider, SliderSingle, Spinner, SubHeading, SubTitle, Swiper, Switch, Tab, Tabs, TabsContent, Text, Textarea, Title, Toast, ToastAction, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipProvider, buttonVariants, dangerouText, iconButtonVariants, reducer, toast, toggleVariants, useDevice, useFormField, useIsMobileByWindowWidth, useNativeBridge, useNotification, useToast, useWindowWidth }; /*! Bundled license information:
|
|
8778
8862
|
|
|
8779
8863
|
decimal.js/decimal.mjs:
|
|
8780
8864
|
(*!
|