@sikka/hawa 0.14.1-next → 0.14.3-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 CHANGED
@@ -1932,10 +1932,6 @@ input[type="number"]::-webkit-inner-spin-button,
1932
1932
  --tw-bg-opacity: 1;
1933
1933
  background-color: rgb(55 65 81 / var(--tw-bg-opacity));
1934
1934
  }
1935
- .hawa-bg-gray-800 {
1936
- --tw-bg-opacity: 1;
1937
- background-color: rgb(31 41 55 / var(--tw-bg-opacity));
1938
- }
1939
1935
  .hawa-bg-gray-900 {
1940
1936
  --tw-bg-opacity: 1;
1941
1937
  background-color: rgb(17 24 39 / var(--tw-bg-opacity));
@@ -1996,6 +1992,9 @@ input[type="number"]::-webkit-inner-spin-button,
1996
1992
  .hawa-bg-primary\/50 {
1997
1993
  background-color: hsl(var(--primary) / 0.5);
1998
1994
  }
1995
+ .hawa-bg-primary\/80 {
1996
+ background-color: hsl(var(--primary) / 0.8);
1997
+ }
1999
1998
  .hawa-bg-primary\/90 {
2000
1999
  background-color: hsl(var(--primary) / 0.9);
2001
2000
  }
@@ -2870,6 +2869,9 @@ body {
2870
2869
  border-top-right-radius: var(--radius);
2871
2870
  border-bottom-right-radius: var(--radius);
2872
2871
  }
2872
+ .hover\:hawa-cursor-pointer:hover {
2873
+ cursor: pointer;
2874
+ }
2873
2875
  .hover\:hawa-bg-accent:hover {
2874
2876
  background-color: hsl(var(--accent));
2875
2877
  }
@@ -2906,6 +2908,9 @@ body {
2906
2908
  .hover\:hawa-bg-primary\/40:hover {
2907
2909
  background-color: hsl(var(--primary) / 0.4);
2908
2910
  }
2911
+ .hover\:hawa-bg-primary\/80:hover {
2912
+ background-color: hsl(var(--primary) / 0.8);
2913
+ }
2909
2914
  .hover\:hawa-bg-primary\/90:hover {
2910
2915
  background-color: hsl(var(--primary) / 0.9);
2911
2916
  }
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$2 = {
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$2[];
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 Item$1 = {
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$1[];
875
+ subitems?: SubItem[];
876
876
  onClick?: () => void;
877
877
  };
878
- type SubItem$1 = {
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: Item$1[];
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: Item$1;
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: Item[];
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$2 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 };
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$2 = {
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$2[];
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 Item$1 = {
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$1[];
875
+ subitems?: SubItem[];
876
876
  onClick?: () => void;
877
877
  };
878
- type SubItem$1 = {
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: Item$1[];
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: Item$1;
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: Item[];
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$2 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 };
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
@@ -5007,7 +5007,7 @@ var Dots = function(param) {
5007
5007
  onClick: function() {
5008
5008
  return onDotClick(index);
5009
5009
  },
5010
- className: cn("hawa-h-2 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"),
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"),
5011
5011
  key: index
5012
5012
  });
5013
5013
  }));
@@ -6868,7 +6868,7 @@ var SidebarItem = function(_param) {
6868
6868
  "isOpen"
6869
6869
  ]);
6870
6870
  var getSelectedStyle = function(value) {
6871
- return props.selectedItem === value ? "hawa-bg-primary hawa-text-primary-foreground hawa-cursor-default" : "hover:hawa-bg-primary/10";
6871
+ return props.selectedItem === value ? "hawa-bg-primary/90 hawa-text-primary-foreground hawa-cursor-default" : "hover:hawa-bg-primary/10";
6872
6872
  };
6873
6873
  if (item.subitems) {
6874
6874
  return /* @__PURE__ */ React59.createElement(AccordionItem2, {
@@ -6878,7 +6878,7 @@ var SidebarItem = function(_param) {
6878
6878
  }, /* @__PURE__ */ React59.createElement(AccordionTrigger2, {
6879
6879
  className: cn("hawa-overflow-x-clip hawa-w-full", props.selectedItem === item.value ? "hawa-cursor-default hawa-bg-primary hawa-text-primary-foreground" : "hover:hawa-bg-primary/10 hawa-h-10", item.subitems && item.subitems.some(function(subitem) {
6880
6880
  return props.selectedItem === subitem.value;
6881
- }) ? "hawa-bg-primary/90 hawa-text-primary-foreground hover:hawa-bg-primary/90" : ""),
6881
+ }) ? "hawa-bg-primary/80 hawa-text-primary-foreground hover:hawa-bg-primary/80" : ""),
6882
6882
  showArrow: isOpen
6883
6883
  }, /* @__PURE__ */ React59.createElement("div", {
6884
6884
  className: cn(!isOpen && "hawa-py-1", "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2")
@@ -7053,10 +7053,9 @@ var Navbar = function(_param) {
7053
7053
  // components/layout/AppLayout.tsx
7054
7054
  var import_react37 = __toESM(require("react"));
7055
7055
  var AppLayout = function(_param) {
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, onSettingsClick = _param.onSettingsClick, 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, [
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, [
7057
7057
  "direction",
7058
7058
  "drawerSize",
7059
- "onSettingsClick",
7060
7059
  "DrawerFooterActions",
7061
7060
  "currentPage",
7062
7061
  "clickedItem",
@@ -7208,7 +7207,7 @@ var AppLayout = function(_param) {
7208
7207
  style: {
7209
7208
  width: size > 600 ? "".concat(openSideMenu ? openDrawerWidth : 56, "px") : "".concat(openSideMenu ? openDrawerWidth : 0, "px")
7210
7209
  }
7211
- }, /* @__PURE__ */ import_react37.default.createElement("img", {
7210
+ }, openSideMenu && props.header && props.header, !props.header && /* @__PURE__ */ import_react37.default.createElement("img", {
7212
7211
  className: cn("hawa-h-9 hawa-opacity-0 hawa-transition-all", !openSideMenu ? "hawa-invisible hawa-opacity-0" : "hawa-visible hawa-opacity-100"),
7213
7212
  src: props.logoLink
7214
7213
  }), size > 600 ? /* @__PURE__ */ import_react37.default.createElement("img", {
@@ -7808,7 +7807,7 @@ var LoginForm = function(_param) {
7808
7807
  classNames: "hawa-text-gray-500"
7809
7808
  }) : /* @__PURE__ */ import_react44.default.createElement(HiddenEyeIcon, {
7810
7809
  classNames: "hawa-text-gray-500"
7811
- }), " "),
7810
+ })),
7812
7811
  placeholder: (texts === null || texts === void 0 ? void 0 : (_texts_password1 = texts.password) === null || _texts_password1 === void 0 ? void 0 : _texts_password1.placeholder) || "Enter your password",
7813
7812
  helperText: (_formState_errors_password = formState.errors.password) === null || _formState_errors_password === void 0 ? void 0 : _formState_errors_password.message
7814
7813
  }, field));
package/dist/index.mjs CHANGED
@@ -4648,7 +4648,7 @@ var Dots = ({ onDotClick, itemsLength, selectedIndex }) => {
4648
4648
  {
4649
4649
  onClick: () => onDotClick(index),
4650
4650
  className: cn(
4651
- "hawa-h-2 hawa-rounded-full hawa-transition-all hawa-duration-300 hawa-bg-primary",
4651
+ "hawa-h-2 hover:hawa-cursor-pointer hawa-rounded-full hawa-transition-all hawa-duration-300 hawa-bg-primary",
4652
4652
  !selected ? "hawa-opacity-50 hawa-w-2" : "hawa-opacity-100 hawa-w-6"
4653
4653
  ),
4654
4654
  key: index
@@ -6715,7 +6715,7 @@ var SidebarItem = ({
6715
6715
  ...props
6716
6716
  }) => {
6717
6717
  const getSelectedStyle = (value) => {
6718
- return props.selectedItem === value ? "hawa-bg-primary hawa-text-primary-foreground hawa-cursor-default" : "hover:hawa-bg-primary/10";
6718
+ return props.selectedItem === value ? "hawa-bg-primary/90 hawa-text-primary-foreground hawa-cursor-default" : "hover:hawa-bg-primary/10";
6719
6719
  };
6720
6720
  if (item.subitems) {
6721
6721
  return /* @__PURE__ */ React59.createElement(
@@ -6733,7 +6733,7 @@ var SidebarItem = ({
6733
6733
  props.selectedItem === item.value ? "hawa-cursor-default hawa-bg-primary hawa-text-primary-foreground" : "hover:hawa-bg-primary/10 hawa-h-10",
6734
6734
  item.subitems && item.subitems.some(
6735
6735
  (subitem) => props.selectedItem === subitem.value
6736
- ) ? "hawa-bg-primary/90 hawa-text-primary-foreground hover:hawa-bg-primary/90" : ""
6736
+ ) ? "hawa-bg-primary/80 hawa-text-primary-foreground hover:hawa-bg-primary/80" : ""
6737
6737
  ),
6738
6738
  showArrow: isOpen
6739
6739
  },
@@ -6952,7 +6952,6 @@ import React62, { useEffect as useEffect17, useRef as useRef9, useState as useSt
6952
6952
  var AppLayout = ({
6953
6953
  direction = "ltr",
6954
6954
  drawerSize = "md",
6955
- onSettingsClick,
6956
6955
  DrawerFooterActions,
6957
6956
  currentPage,
6958
6957
  clickedItem,
@@ -7148,7 +7147,8 @@ var AppLayout = ({
7148
7147
  width: size > 600 ? `${openSideMenu ? openDrawerWidth : 56}px` : `${openSideMenu ? openDrawerWidth : 0}px`
7149
7148
  }
7150
7149
  },
7151
- /* @__PURE__ */ React62.createElement(
7150
+ openSideMenu && props.header && props.header,
7151
+ !props.header && /* @__PURE__ */ React62.createElement(
7152
7152
  "img",
7153
7153
  {
7154
7154
  className: cn(
@@ -7887,8 +7887,7 @@ var LoginForm = ({
7887
7887
  className: "hawa-cursor-pointer",
7888
7888
  onClick: () => setPasswordVisible(!passwordVisible)
7889
7889
  },
7890
- passwordVisible ? /* @__PURE__ */ React69.createElement(EyeIcon, { classNames: "hawa-text-gray-500" }) : /* @__PURE__ */ React69.createElement(HiddenEyeIcon, { classNames: "hawa-text-gray-500" }),
7891
- " "
7890
+ passwordVisible ? /* @__PURE__ */ React69.createElement(EyeIcon, { classNames: "hawa-text-gray-500" }) : /* @__PURE__ */ React69.createElement(HiddenEyeIcon, { classNames: "hawa-text-gray-500" })
7892
7891
  ),
7893
7892
  placeholder: texts?.password?.placeholder || "Enter your password",
7894
7893
  helperText: formState.errors.password?.message,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.14.1-next",
3
+ "version": "0.14.3-next",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {