@sikka/hawa 0.14.0-next → 0.14.2-next
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.css +3 -0
- package/dist/index.d.mts +10 -24
- package/dist/index.d.ts +10 -24
- package/dist/index.js +11 -6
- package/dist/index.mjs +13 -5
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -2870,6 +2870,9 @@ body {
|
|
|
2870
2870
|
border-top-right-radius: var(--radius);
|
|
2871
2871
|
border-bottom-right-radius: var(--radius);
|
|
2872
2872
|
}
|
|
2873
|
+
.hover\:hawa-cursor-pointer:hover {
|
|
2874
|
+
cursor: pointer;
|
|
2875
|
+
}
|
|
2873
2876
|
.hover\:hawa-bg-accent:hover {
|
|
2874
2877
|
background-color: hsl(var(--accent));
|
|
2875
2878
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -70,7 +70,7 @@ declare const PricingCard: FC<PricingCardTypes>;
|
|
|
70
70
|
|
|
71
71
|
type ExtendedDropdownMenuContentProps = Partial<React$1.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>> & {};
|
|
72
72
|
type ExtendedDropdownMenuTriggerProps = Partial<React$1.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Trigger>> & {};
|
|
73
|
-
type SubItem$
|
|
73
|
+
type SubItem$1 = {
|
|
74
74
|
label?: string;
|
|
75
75
|
value?: any;
|
|
76
76
|
icon?: any;
|
|
@@ -88,7 +88,7 @@ type MenuItemType = {
|
|
|
88
88
|
itemType?: "separator" | "label" | string;
|
|
89
89
|
action?: () => void;
|
|
90
90
|
highlighted?: boolean;
|
|
91
|
-
subitems?: SubItem$
|
|
91
|
+
subitems?: SubItem$1[];
|
|
92
92
|
disabled?: boolean;
|
|
93
93
|
onMiddleClick?: any;
|
|
94
94
|
onClick?: any;
|
|
@@ -864,7 +864,7 @@ type StatTypes = {
|
|
|
864
864
|
};
|
|
865
865
|
declare const Stats: FC<StatTypes>;
|
|
866
866
|
|
|
867
|
-
type
|
|
867
|
+
type AppLayoutSidebarItemProps = {
|
|
868
868
|
value: string;
|
|
869
869
|
label: string;
|
|
870
870
|
badge?: {
|
|
@@ -872,10 +872,10 @@ type Item$1 = {
|
|
|
872
872
|
color: ChipColors;
|
|
873
873
|
};
|
|
874
874
|
icon?: any;
|
|
875
|
-
subitems?: SubItem
|
|
875
|
+
subitems?: SubItem[];
|
|
876
876
|
onClick?: () => void;
|
|
877
877
|
};
|
|
878
|
-
type SubItem
|
|
878
|
+
type SubItem = {
|
|
879
879
|
value: string;
|
|
880
880
|
label: string;
|
|
881
881
|
icon?: any;
|
|
@@ -883,7 +883,7 @@ type SubItem$1 = {
|
|
|
883
883
|
};
|
|
884
884
|
interface SidebarGroupProps {
|
|
885
885
|
title?: string;
|
|
886
|
-
items:
|
|
886
|
+
items: AppLayoutSidebarItemProps[];
|
|
887
887
|
openedItem?: any;
|
|
888
888
|
setOpenedItem?: any;
|
|
889
889
|
selectedItem?: any;
|
|
@@ -894,7 +894,7 @@ interface SidebarGroupProps {
|
|
|
894
894
|
}
|
|
895
895
|
declare const SidebarGroup: React$1.FC<SidebarGroupProps>;
|
|
896
896
|
declare const SidebarItem: React$1.FC<{
|
|
897
|
-
item:
|
|
897
|
+
item: AppLayoutSidebarItemProps;
|
|
898
898
|
selectedItem?: any;
|
|
899
899
|
direction?: DirectionType;
|
|
900
900
|
onItemClick?: (value: string[]) => void;
|
|
@@ -931,9 +931,10 @@ type NavbarType = {
|
|
|
931
931
|
declare const Navbar: React__default.FC<NavbarType>;
|
|
932
932
|
|
|
933
933
|
type AppLayoutTypes$1 = {
|
|
934
|
+
header: React__default.ReactNode;
|
|
934
935
|
design?: "default";
|
|
935
936
|
/** The pages of the side drawer */
|
|
936
|
-
drawerItems:
|
|
937
|
+
drawerItems: AppLayoutSidebarItemProps[];
|
|
937
938
|
/** The direction of the layout */
|
|
938
939
|
direction?: DirectionType;
|
|
939
940
|
/** The title of the current selected page, make sure it's the same as the drawerItem slug */
|
|
@@ -973,8 +974,6 @@ type AppLayoutTypes$1 = {
|
|
|
973
974
|
* - 'parent': Inherits width from parent element.
|
|
974
975
|
*/
|
|
975
976
|
profileMenuWidth: "default" | "sm" | "lg" | "parent";
|
|
976
|
-
/** Event handler for settings button click. */
|
|
977
|
-
onSettingsClick?: () => void;
|
|
978
977
|
/** Event handler for drawer expansion. */
|
|
979
978
|
onDrawerExpand?: (e: any) => void;
|
|
980
979
|
/** Specifies whether to keep the drawer open. */
|
|
@@ -994,19 +993,6 @@ type AppLayoutTypes$1 = {
|
|
|
994
993
|
collapseSidebar?: string;
|
|
995
994
|
};
|
|
996
995
|
};
|
|
997
|
-
type Item = {
|
|
998
|
-
value: string;
|
|
999
|
-
label: string;
|
|
1000
|
-
icon?: any;
|
|
1001
|
-
subitems?: SubItem[];
|
|
1002
|
-
onClick?: () => void;
|
|
1003
|
-
};
|
|
1004
|
-
type SubItem = {
|
|
1005
|
-
value: string;
|
|
1006
|
-
label: string;
|
|
1007
|
-
icon?: any;
|
|
1008
|
-
onClick?: () => void;
|
|
1009
|
-
};
|
|
1010
996
|
declare const AppLayout: React__default.FunctionComponent<AppLayoutTypes$1>;
|
|
1011
997
|
|
|
1012
998
|
type AppTopbarType = {
|
|
@@ -1691,4 +1677,4 @@ declare function useTabs(initialTab?: string): {
|
|
|
1691
1677
|
handleTabChange: (index: any) => void;
|
|
1692
1678
|
};
|
|
1693
1679
|
|
|
1694
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionRoot, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, AppStores, AppTopbar, BackToTop, Badge, BadgedComponent, Breadcrumb, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CheckEmail, Checkbox, Chip, ChipColors, ChipTypes, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, Copyrights, Count, DataTable, DestroyableCard, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DocsLayout, DocsSidebar, DropdownMenu, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, HorizontalPricing, Input, InterfaceSettings, ItemCard, Label, LabelProps, LandingCard, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, MenuItemType, NavMenuItem, Navbar, NavigationMenu, NavigationMenuLink, NewPasswordForm, NoPermission, NotFound, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, PricingPlans, Progress, ProgressCircle, Radio, RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, ScrollIndicator, Select, SelectOptionProps, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, SplitButton, Stats, StopPropagationWrapper, SubItem$
|
|
1680
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionRoot, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, AppLayoutSidebarItemProps, AppStores, AppTopbar, BackToTop, Badge, BadgedComponent, Breadcrumb, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CheckEmail, Checkbox, Chip, ChipColors, ChipTypes, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, Copyrights, Count, DataTable, DestroyableCard, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DocsLayout, DocsSidebar, DropdownMenu, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, HorizontalPricing, Input, InterfaceSettings, ItemCard, Label, LabelProps, LandingCard, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, MenuItemType, NavMenuItem, Navbar, NavigationMenu, NavigationMenuLink, NewPasswordForm, NoPermission, NotFound, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, PricingPlans, Progress, ProgressCircle, Radio, RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, ScrollIndicator, Select, SelectOptionProps, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, SplitButton, Stats, StopPropagationWrapper, SubItem$1 as SubItem, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, Textarea, TextareaProps, Toast$1 as Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, Usage, UseFocusWithinOptions, UseMediaQueryOptions, UserReferralSource, buttonVariants, reducer, toast, useBreakpoint, useClipboard, useFocusWithin, useMediaQuery, useTabs, useToast, useWindowSize };
|
package/dist/index.d.ts
CHANGED
|
@@ -70,7 +70,7 @@ declare const PricingCard: FC<PricingCardTypes>;
|
|
|
70
70
|
|
|
71
71
|
type ExtendedDropdownMenuContentProps = Partial<React$1.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>> & {};
|
|
72
72
|
type ExtendedDropdownMenuTriggerProps = Partial<React$1.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Trigger>> & {};
|
|
73
|
-
type SubItem$
|
|
73
|
+
type SubItem$1 = {
|
|
74
74
|
label?: string;
|
|
75
75
|
value?: any;
|
|
76
76
|
icon?: any;
|
|
@@ -88,7 +88,7 @@ type MenuItemType = {
|
|
|
88
88
|
itemType?: "separator" | "label" | string;
|
|
89
89
|
action?: () => void;
|
|
90
90
|
highlighted?: boolean;
|
|
91
|
-
subitems?: SubItem$
|
|
91
|
+
subitems?: SubItem$1[];
|
|
92
92
|
disabled?: boolean;
|
|
93
93
|
onMiddleClick?: any;
|
|
94
94
|
onClick?: any;
|
|
@@ -864,7 +864,7 @@ type StatTypes = {
|
|
|
864
864
|
};
|
|
865
865
|
declare const Stats: FC<StatTypes>;
|
|
866
866
|
|
|
867
|
-
type
|
|
867
|
+
type AppLayoutSidebarItemProps = {
|
|
868
868
|
value: string;
|
|
869
869
|
label: string;
|
|
870
870
|
badge?: {
|
|
@@ -872,10 +872,10 @@ type Item$1 = {
|
|
|
872
872
|
color: ChipColors;
|
|
873
873
|
};
|
|
874
874
|
icon?: any;
|
|
875
|
-
subitems?: SubItem
|
|
875
|
+
subitems?: SubItem[];
|
|
876
876
|
onClick?: () => void;
|
|
877
877
|
};
|
|
878
|
-
type SubItem
|
|
878
|
+
type SubItem = {
|
|
879
879
|
value: string;
|
|
880
880
|
label: string;
|
|
881
881
|
icon?: any;
|
|
@@ -883,7 +883,7 @@ type SubItem$1 = {
|
|
|
883
883
|
};
|
|
884
884
|
interface SidebarGroupProps {
|
|
885
885
|
title?: string;
|
|
886
|
-
items:
|
|
886
|
+
items: AppLayoutSidebarItemProps[];
|
|
887
887
|
openedItem?: any;
|
|
888
888
|
setOpenedItem?: any;
|
|
889
889
|
selectedItem?: any;
|
|
@@ -894,7 +894,7 @@ interface SidebarGroupProps {
|
|
|
894
894
|
}
|
|
895
895
|
declare const SidebarGroup: React$1.FC<SidebarGroupProps>;
|
|
896
896
|
declare const SidebarItem: React$1.FC<{
|
|
897
|
-
item:
|
|
897
|
+
item: AppLayoutSidebarItemProps;
|
|
898
898
|
selectedItem?: any;
|
|
899
899
|
direction?: DirectionType;
|
|
900
900
|
onItemClick?: (value: string[]) => void;
|
|
@@ -931,9 +931,10 @@ type NavbarType = {
|
|
|
931
931
|
declare const Navbar: React__default.FC<NavbarType>;
|
|
932
932
|
|
|
933
933
|
type AppLayoutTypes$1 = {
|
|
934
|
+
header: React__default.ReactNode;
|
|
934
935
|
design?: "default";
|
|
935
936
|
/** The pages of the side drawer */
|
|
936
|
-
drawerItems:
|
|
937
|
+
drawerItems: AppLayoutSidebarItemProps[];
|
|
937
938
|
/** The direction of the layout */
|
|
938
939
|
direction?: DirectionType;
|
|
939
940
|
/** The title of the current selected page, make sure it's the same as the drawerItem slug */
|
|
@@ -973,8 +974,6 @@ type AppLayoutTypes$1 = {
|
|
|
973
974
|
* - 'parent': Inherits width from parent element.
|
|
974
975
|
*/
|
|
975
976
|
profileMenuWidth: "default" | "sm" | "lg" | "parent";
|
|
976
|
-
/** Event handler for settings button click. */
|
|
977
|
-
onSettingsClick?: () => void;
|
|
978
977
|
/** Event handler for drawer expansion. */
|
|
979
978
|
onDrawerExpand?: (e: any) => void;
|
|
980
979
|
/** Specifies whether to keep the drawer open. */
|
|
@@ -994,19 +993,6 @@ type AppLayoutTypes$1 = {
|
|
|
994
993
|
collapseSidebar?: string;
|
|
995
994
|
};
|
|
996
995
|
};
|
|
997
|
-
type Item = {
|
|
998
|
-
value: string;
|
|
999
|
-
label: string;
|
|
1000
|
-
icon?: any;
|
|
1001
|
-
subitems?: SubItem[];
|
|
1002
|
-
onClick?: () => void;
|
|
1003
|
-
};
|
|
1004
|
-
type SubItem = {
|
|
1005
|
-
value: string;
|
|
1006
|
-
label: string;
|
|
1007
|
-
icon?: any;
|
|
1008
|
-
onClick?: () => void;
|
|
1009
|
-
};
|
|
1010
996
|
declare const AppLayout: React__default.FunctionComponent<AppLayoutTypes$1>;
|
|
1011
997
|
|
|
1012
998
|
type AppTopbarType = {
|
|
@@ -1691,4 +1677,4 @@ declare function useTabs(initialTab?: string): {
|
|
|
1691
1677
|
handleTabChange: (index: any) => void;
|
|
1692
1678
|
};
|
|
1693
1679
|
|
|
1694
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionRoot, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, AppStores, AppTopbar, BackToTop, Badge, BadgedComponent, Breadcrumb, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CheckEmail, Checkbox, Chip, ChipColors, ChipTypes, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, Copyrights, Count, DataTable, DestroyableCard, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DocsLayout, DocsSidebar, DropdownMenu, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, HorizontalPricing, Input, InterfaceSettings, ItemCard, Label, LabelProps, LandingCard, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, MenuItemType, NavMenuItem, Navbar, NavigationMenu, NavigationMenuLink, NewPasswordForm, NoPermission, NotFound, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, PricingPlans, Progress, ProgressCircle, Radio, RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, ScrollIndicator, Select, SelectOptionProps, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, SplitButton, Stats, StopPropagationWrapper, SubItem$
|
|
1680
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionRoot, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, AppLayoutSidebarItemProps, AppStores, AppTopbar, BackToTop, Badge, BadgedComponent, Breadcrumb, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CheckEmail, Checkbox, Chip, ChipColors, ChipTypes, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, Copyrights, Count, DataTable, DestroyableCard, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DocsLayout, DocsSidebar, DropdownMenu, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, HorizontalPricing, Input, InterfaceSettings, ItemCard, Label, LabelProps, LandingCard, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, MenuItemType, NavMenuItem, Navbar, NavigationMenu, NavigationMenuLink, NewPasswordForm, NoPermission, NotFound, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, PricingPlans, Progress, ProgressCircle, Radio, RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, ScrollIndicator, Select, SelectOptionProps, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, SplitButton, Stats, StopPropagationWrapper, SubItem$1 as SubItem, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, Textarea, TextareaProps, Toast$1 as Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, Usage, UseFocusWithinOptions, UseMediaQueryOptions, UserReferralSource, buttonVariants, reducer, toast, useBreakpoint, useClipboard, useFocusWithin, useMediaQuery, useTabs, useToast, useWindowSize };
|
package/dist/index.js
CHANGED
|
@@ -4981,7 +4981,10 @@ var Carousel = function(props) {
|
|
|
4981
4981
|
}, item);
|
|
4982
4982
|
})))), /* @__PURE__ */ import_react23.default.createElement(Dots, {
|
|
4983
4983
|
itemsLength: length,
|
|
4984
|
-
selectedIndex: selectedIndex
|
|
4984
|
+
selectedIndex: selectedIndex,
|
|
4985
|
+
onDotClick: function(index) {
|
|
4986
|
+
return emblaApi === null || emblaApi === void 0 ? void 0 : emblaApi.scrollTo(index);
|
|
4987
|
+
}
|
|
4985
4988
|
}), showArrows && /* @__PURE__ */ import_react23.default.createElement(CarouselControls, {
|
|
4986
4989
|
canScrollNext: canScrollNext,
|
|
4987
4990
|
canScrollPrev: canScrollPrev,
|
|
@@ -4994,14 +4997,17 @@ var Carousel = function(props) {
|
|
|
4994
4997
|
}));
|
|
4995
4998
|
};
|
|
4996
4999
|
var Dots = function(param) {
|
|
4997
|
-
var itemsLength = param.itemsLength, selectedIndex = param.selectedIndex;
|
|
5000
|
+
var onDotClick = param.onDotClick, itemsLength = param.itemsLength, selectedIndex = param.selectedIndex;
|
|
4998
5001
|
var arr = new Array(itemsLength).fill(0);
|
|
4999
5002
|
return /* @__PURE__ */ import_react23.default.createElement("div", {
|
|
5000
5003
|
className: "hawa-flex hawa-gap-1 hawa-z-50 hawa-my-2 hawa-justify-center"
|
|
5001
5004
|
}, arr.map(function(_, index) {
|
|
5002
5005
|
var selected = index === selectedIndex;
|
|
5003
5006
|
return /* @__PURE__ */ import_react23.default.createElement("div", {
|
|
5004
|
-
|
|
5007
|
+
onClick: function() {
|
|
5008
|
+
return onDotClick(index);
|
|
5009
|
+
},
|
|
5010
|
+
className: cn("hawa-h-2 hover:hawa-cursor-pointer hawa-rounded-full hawa-transition-all hawa-duration-300 hawa-bg-primary", !selected ? "hawa-opacity-50 hawa-w-2" : "hawa-opacity-100 hawa-w-6"),
|
|
5005
5011
|
key: index
|
|
5006
5012
|
});
|
|
5007
5013
|
}));
|
|
@@ -7047,10 +7053,9 @@ var Navbar = function(_param) {
|
|
|
7047
7053
|
// components/layout/AppLayout.tsx
|
|
7048
7054
|
var import_react37 = __toESM(require("react"));
|
|
7049
7055
|
var AppLayout = function(_param) {
|
|
7050
|
-
var _param_direction = _param.direction, direction = _param_direction === void 0 ? "ltr" : _param_direction, _param_drawerSize = _param.drawerSize, drawerSize = _param_drawerSize === void 0 ? "md" : _param_drawerSize,
|
|
7056
|
+
var _param_direction = _param.direction, direction = _param_direction === void 0 ? "ltr" : _param_direction, _param_drawerSize = _param.drawerSize, drawerSize = _param_drawerSize === void 0 ? "md" : _param_drawerSize, DrawerFooterActions = _param.DrawerFooterActions, currentPage = _param.currentPage, clickedItem = _param.clickedItem, keepOpen = _param.keepOpen, setKeepOpen = _param.setKeepOpen, _param_design = _param.design, design = _param_design === void 0 ? "default" : _param_design, props = _object_without_properties(_param, [
|
|
7051
7057
|
"direction",
|
|
7052
7058
|
"drawerSize",
|
|
7053
|
-
"onSettingsClick",
|
|
7054
7059
|
"DrawerFooterActions",
|
|
7055
7060
|
"currentPage",
|
|
7056
7061
|
"clickedItem",
|
|
@@ -7202,7 +7207,7 @@ var AppLayout = function(_param) {
|
|
|
7202
7207
|
style: {
|
|
7203
7208
|
width: size > 600 ? "".concat(openSideMenu ? openDrawerWidth : 56, "px") : "".concat(openSideMenu ? openDrawerWidth : 0, "px")
|
|
7204
7209
|
}
|
|
7205
|
-
}, /* @__PURE__ */ import_react37.default.createElement("img", {
|
|
7210
|
+
}, openSideMenu && props.header && props.header, !props.header && /* @__PURE__ */ import_react37.default.createElement("img", {
|
|
7206
7211
|
className: cn("hawa-h-9 hawa-opacity-0 hawa-transition-all", !openSideMenu ? "hawa-invisible hawa-opacity-0" : "hawa-visible hawa-opacity-100"),
|
|
7207
7212
|
src: props.logoLink
|
|
7208
7213
|
}), size > 600 ? /* @__PURE__ */ import_react37.default.createElement("img", {
|
package/dist/index.mjs
CHANGED
|
@@ -4622,7 +4622,14 @@ var Carousel = (props) => {
|
|
|
4622
4622
|
const length = React35.Children.count(items);
|
|
4623
4623
|
const canScrollNext = !!emblaApi?.canScrollNext();
|
|
4624
4624
|
const canScrollPrev = !!emblaApi?.canScrollPrev();
|
|
4625
|
-
return /* @__PURE__ */ React35.createElement("div", { className: " hawa-relative hawa-h-full" }, /* @__PURE__ */ React35.createElement("div", { className: "hawa-h-full hawa-overflow-hidden" }, /* @__PURE__ */ React35.createElement("div", { className: "hawa-h-full", ref: emblaRef }, /* @__PURE__ */ React35.createElement("div", { className: "hawa-h-full hawa-flex" }, items?.map((item) => /* @__PURE__ */ React35.createElement("div", { className: "hawa-h-full hawa-justify-center hawa-flex hawa-items-center hawa-min-w-0 hawa-flex-[0_0_100%]" }, item))))), /* @__PURE__ */ React35.createElement(
|
|
4625
|
+
return /* @__PURE__ */ React35.createElement("div", { className: " hawa-relative hawa-h-full" }, /* @__PURE__ */ React35.createElement("div", { className: "hawa-h-full hawa-overflow-hidden" }, /* @__PURE__ */ React35.createElement("div", { className: "hawa-h-full", ref: emblaRef }, /* @__PURE__ */ React35.createElement("div", { className: "hawa-h-full hawa-flex" }, items?.map((item) => /* @__PURE__ */ React35.createElement("div", { className: "hawa-h-full hawa-justify-center hawa-flex hawa-items-center hawa-min-w-0 hawa-flex-[0_0_100%]" }, item))))), /* @__PURE__ */ React35.createElement(
|
|
4626
|
+
Dots,
|
|
4627
|
+
{
|
|
4628
|
+
itemsLength: length,
|
|
4629
|
+
selectedIndex,
|
|
4630
|
+
onDotClick: (index) => emblaApi?.scrollTo(index)
|
|
4631
|
+
}
|
|
4632
|
+
), showArrows && /* @__PURE__ */ React35.createElement(
|
|
4626
4633
|
CarouselControls,
|
|
4627
4634
|
{
|
|
4628
4635
|
canScrollNext,
|
|
@@ -4632,15 +4639,16 @@ var Carousel = (props) => {
|
|
|
4632
4639
|
}
|
|
4633
4640
|
));
|
|
4634
4641
|
};
|
|
4635
|
-
var Dots = ({ itemsLength, selectedIndex }) => {
|
|
4642
|
+
var Dots = ({ onDotClick, itemsLength, selectedIndex }) => {
|
|
4636
4643
|
const arr = new Array(itemsLength).fill(0);
|
|
4637
4644
|
return /* @__PURE__ */ React35.createElement("div", { className: "hawa-flex hawa-gap-1 hawa-z-50 hawa-my-2 hawa-justify-center" }, arr.map((_, index) => {
|
|
4638
4645
|
const selected = index === selectedIndex;
|
|
4639
4646
|
return /* @__PURE__ */ React35.createElement(
|
|
4640
4647
|
"div",
|
|
4641
4648
|
{
|
|
4649
|
+
onClick: () => onDotClick(index),
|
|
4642
4650
|
className: cn(
|
|
4643
|
-
"hawa-h-2
|
|
4651
|
+
"hawa-h-2 hover:hawa-cursor-pointer hawa-rounded-full hawa-transition-all hawa-duration-300 hawa-bg-primary",
|
|
4644
4652
|
!selected ? "hawa-opacity-50 hawa-w-2" : "hawa-opacity-100 hawa-w-6"
|
|
4645
4653
|
),
|
|
4646
4654
|
key: index
|
|
@@ -6944,7 +6952,6 @@ import React62, { useEffect as useEffect17, useRef as useRef9, useState as useSt
|
|
|
6944
6952
|
var AppLayout = ({
|
|
6945
6953
|
direction = "ltr",
|
|
6946
6954
|
drawerSize = "md",
|
|
6947
|
-
onSettingsClick,
|
|
6948
6955
|
DrawerFooterActions,
|
|
6949
6956
|
currentPage,
|
|
6950
6957
|
clickedItem,
|
|
@@ -7140,7 +7147,8 @@ var AppLayout = ({
|
|
|
7140
7147
|
width: size > 600 ? `${openSideMenu ? openDrawerWidth : 56}px` : `${openSideMenu ? openDrawerWidth : 0}px`
|
|
7141
7148
|
}
|
|
7142
7149
|
},
|
|
7143
|
-
|
|
7150
|
+
openSideMenu && props.header && props.header,
|
|
7151
|
+
!props.header && /* @__PURE__ */ React62.createElement(
|
|
7144
7152
|
"img",
|
|
7145
7153
|
{
|
|
7146
7154
|
className: cn(
|