@sikka/hawa 0.11.12-next → 0.11.13-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
@@ -1139,9 +1139,6 @@ input[type="number"]::-webkit-inner-spin-button,
1139
1139
  .hawa-h-\[44px\] {
1140
1140
  height: 44px;
1141
1141
  }
1142
- .hawa-h-\[calc\(100dvh\)\] {
1143
- height: calc(100dvh);
1144
- }
1145
1142
  .hawa-h-\[var\(--radix-navigation-menu-viewport-height\)\] {
1146
1143
  height: var(--radix-navigation-menu-viewport-height);
1147
1144
  }
package/dist/index.d.mts CHANGED
@@ -63,7 +63,7 @@ declare const PricingCard: FC<PricingCardTypes>;
63
63
 
64
64
  type ExtendedDropdownMenuContentProps = Partial<React$1.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>> & {};
65
65
  type ExtendedDropdownMenuTriggerProps = Partial<React$1.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Trigger>> & {};
66
- type SubItem$3 = {
66
+ type SubItem$2 = {
67
67
  label?: string;
68
68
  value?: any;
69
69
  icon?: any;
@@ -81,7 +81,7 @@ type MenuItemType = {
81
81
  itemType?: "separator" | "label" | string;
82
82
  action?: () => void;
83
83
  highlighted?: boolean;
84
- subitems?: SubItem$3[];
84
+ subitems?: SubItem$2[];
85
85
  disabled?: boolean;
86
86
  onMiddleClick?: any;
87
87
  onClick?: any;
@@ -771,14 +771,14 @@ type StatTypes = {
771
771
  };
772
772
  declare const Stats: FC<StatTypes>;
773
773
 
774
- type Item$2 = {
774
+ type Item$1 = {
775
775
  value: string;
776
776
  label: string;
777
777
  icon?: any;
778
- subitems?: SubItem$2[];
778
+ subitems?: SubItem$1[];
779
779
  onClick?: () => void;
780
780
  };
781
- type SubItem$2 = {
781
+ type SubItem$1 = {
782
782
  value: string;
783
783
  label: string;
784
784
  icon?: any;
@@ -786,7 +786,7 @@ type SubItem$2 = {
786
786
  };
787
787
  interface SidebarGroupProps {
788
788
  title?: string;
789
- items: Item$2[];
789
+ items: Item$1[];
790
790
  openedItem?: any;
791
791
  setOpenedItem?: any;
792
792
  selectedItem?: any;
@@ -797,7 +797,7 @@ interface SidebarGroupProps {
797
797
  }
798
798
  declare const SidebarGroup: React$1.FC<SidebarGroupProps>;
799
799
  declare const SidebarItem: React$1.FC<{
800
- item: Item$2;
800
+ item: Item$1;
801
801
  selectedItem?: any;
802
802
  direction?: "rtl" | "ltr";
803
803
  onItemClick?: (value: string[]) => void;
@@ -808,7 +808,7 @@ declare const SidebarItem: React$1.FC<{
808
808
  type AppLayoutTypes$1 = {
809
809
  design?: "default" | "bubbles" | "floating";
810
810
  /** The pages of the side drawer */
811
- drawerItems: Item$1[];
811
+ drawerItems: Item[];
812
812
  /** The direction of the layout */
813
813
  direction?: "rtl" | "ltr";
814
814
  /** The title of the current selected page, make sure it's the same as the drawerItem slug */
@@ -869,14 +869,14 @@ type AppLayoutTypes$1 = {
869
869
  collapseSidebar?: string;
870
870
  };
871
871
  };
872
- type Item$1 = {
872
+ type Item = {
873
873
  value: string;
874
874
  label: string;
875
875
  icon?: any;
876
- subitems?: SubItem$1[];
876
+ subitems?: SubItem[];
877
877
  onClick?: () => void;
878
878
  };
879
- type SubItem$1 = {
879
+ type SubItem = {
880
880
  value: string;
881
881
  label: string;
882
882
  icon?: any;
@@ -906,9 +906,6 @@ type NavbarType = {
906
906
  declare const Navbar: React__default.FC<NavbarType>;
907
907
 
908
908
  type AppLayoutTypes = {
909
- design?: "default" | "bubbles" | "floating";
910
- /** The pages of the side drawer */
911
- drawerItems: Item[];
912
909
  /** The direction of the layout */
913
910
  direction?: "rtl" | "ltr";
914
911
  /** The title of the current selected page, make sure it's the same as the drawerItem slug */
@@ -923,8 +920,6 @@ type AppLayoutTypes = {
923
920
  logoText?: any;
924
921
  /** Specifies the content to be displayed in the layout. */
925
922
  children?: any;
926
- /** Specifies whether to display the top bar. */
927
- topBar?: boolean;
928
923
  /** Specifies the username to be displayed. */
929
924
  username?: string;
930
925
  /** Specifies the user email to be displayed. */
@@ -939,7 +934,6 @@ type AppLayoutTypes = {
939
934
  */
940
935
  drawerSize?: "sm" | "md" | "large";
941
936
  /** Specifies the menu items for the profile menu. */
942
- profileMenuItems?: MenuItemType[];
943
937
  /**
944
938
  * Specifies the width of the profile menu.
945
939
  * - 'default': Default width.
@@ -969,19 +963,6 @@ type AppLayoutTypes = {
969
963
  collapseSidebar?: string;
970
964
  };
971
965
  };
972
- type Item = {
973
- value: string;
974
- label: string;
975
- icon?: any;
976
- subitems?: SubItem[];
977
- onClick?: () => void;
978
- };
979
- type SubItem = {
980
- value: string;
981
- label: string;
982
- icon?: any;
983
- onClick?: () => void;
984
- };
985
966
  declare const DocsLayout: React__default.FunctionComponent<AppLayoutTypes>;
986
967
 
987
968
  type DocsSidebarType = {
@@ -1611,4 +1592,4 @@ declare function useTabs(initialTab?: string): {
1611
1592
  handleTabChange: (index: any) => void;
1612
1593
  };
1613
1594
 
1614
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, AppStores, BackToTop, Breadcrumb, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CheckEmail, Checkbox, Chip, 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, LandingCard, LeadGenerator, LegalTexts, Loading, LoginForm, LoginFormTextsTypes, Logos, MenuItemType, NavMenuItem, Navbar, NavigationMenu, NavigationMenuLink, NewPasswordForm, NoPermission, NotFound, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, PricingPlans, Progress, Radio, RadioOptionsTypes, RegisterForm, RegisterFormTextsTypes, ResetPasswordForm, ScrollArea, ScrollBar, Select, SelectOptionProps, Separator, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, Stats, StopPropagationWrapper, SubItem$3 as SubItem, Switch, TChipTypes, 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 };
1595
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, AppStores, BackToTop, Breadcrumb, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CheckEmail, Checkbox, Chip, 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, LandingCard, LeadGenerator, LegalTexts, Loading, LoginForm, LoginFormTextsTypes, Logos, MenuItemType, NavMenuItem, Navbar, NavigationMenu, NavigationMenuLink, NewPasswordForm, NoPermission, NotFound, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, PricingPlans, Progress, Radio, RadioOptionsTypes, RegisterForm, RegisterFormTextsTypes, ResetPasswordForm, ScrollArea, ScrollBar, Select, SelectOptionProps, Separator, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, Stats, StopPropagationWrapper, SubItem$2 as SubItem, Switch, TChipTypes, 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
@@ -63,7 +63,7 @@ declare const PricingCard: FC<PricingCardTypes>;
63
63
 
64
64
  type ExtendedDropdownMenuContentProps = Partial<React$1.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>> & {};
65
65
  type ExtendedDropdownMenuTriggerProps = Partial<React$1.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Trigger>> & {};
66
- type SubItem$3 = {
66
+ type SubItem$2 = {
67
67
  label?: string;
68
68
  value?: any;
69
69
  icon?: any;
@@ -81,7 +81,7 @@ type MenuItemType = {
81
81
  itemType?: "separator" | "label" | string;
82
82
  action?: () => void;
83
83
  highlighted?: boolean;
84
- subitems?: SubItem$3[];
84
+ subitems?: SubItem$2[];
85
85
  disabled?: boolean;
86
86
  onMiddleClick?: any;
87
87
  onClick?: any;
@@ -771,14 +771,14 @@ type StatTypes = {
771
771
  };
772
772
  declare const Stats: FC<StatTypes>;
773
773
 
774
- type Item$2 = {
774
+ type Item$1 = {
775
775
  value: string;
776
776
  label: string;
777
777
  icon?: any;
778
- subitems?: SubItem$2[];
778
+ subitems?: SubItem$1[];
779
779
  onClick?: () => void;
780
780
  };
781
- type SubItem$2 = {
781
+ type SubItem$1 = {
782
782
  value: string;
783
783
  label: string;
784
784
  icon?: any;
@@ -786,7 +786,7 @@ type SubItem$2 = {
786
786
  };
787
787
  interface SidebarGroupProps {
788
788
  title?: string;
789
- items: Item$2[];
789
+ items: Item$1[];
790
790
  openedItem?: any;
791
791
  setOpenedItem?: any;
792
792
  selectedItem?: any;
@@ -797,7 +797,7 @@ interface SidebarGroupProps {
797
797
  }
798
798
  declare const SidebarGroup: React$1.FC<SidebarGroupProps>;
799
799
  declare const SidebarItem: React$1.FC<{
800
- item: Item$2;
800
+ item: Item$1;
801
801
  selectedItem?: any;
802
802
  direction?: "rtl" | "ltr";
803
803
  onItemClick?: (value: string[]) => void;
@@ -808,7 +808,7 @@ declare const SidebarItem: React$1.FC<{
808
808
  type AppLayoutTypes$1 = {
809
809
  design?: "default" | "bubbles" | "floating";
810
810
  /** The pages of the side drawer */
811
- drawerItems: Item$1[];
811
+ drawerItems: Item[];
812
812
  /** The direction of the layout */
813
813
  direction?: "rtl" | "ltr";
814
814
  /** The title of the current selected page, make sure it's the same as the drawerItem slug */
@@ -869,14 +869,14 @@ type AppLayoutTypes$1 = {
869
869
  collapseSidebar?: string;
870
870
  };
871
871
  };
872
- type Item$1 = {
872
+ type Item = {
873
873
  value: string;
874
874
  label: string;
875
875
  icon?: any;
876
- subitems?: SubItem$1[];
876
+ subitems?: SubItem[];
877
877
  onClick?: () => void;
878
878
  };
879
- type SubItem$1 = {
879
+ type SubItem = {
880
880
  value: string;
881
881
  label: string;
882
882
  icon?: any;
@@ -906,9 +906,6 @@ type NavbarType = {
906
906
  declare const Navbar: React__default.FC<NavbarType>;
907
907
 
908
908
  type AppLayoutTypes = {
909
- design?: "default" | "bubbles" | "floating";
910
- /** The pages of the side drawer */
911
- drawerItems: Item[];
912
909
  /** The direction of the layout */
913
910
  direction?: "rtl" | "ltr";
914
911
  /** The title of the current selected page, make sure it's the same as the drawerItem slug */
@@ -923,8 +920,6 @@ type AppLayoutTypes = {
923
920
  logoText?: any;
924
921
  /** Specifies the content to be displayed in the layout. */
925
922
  children?: any;
926
- /** Specifies whether to display the top bar. */
927
- topBar?: boolean;
928
923
  /** Specifies the username to be displayed. */
929
924
  username?: string;
930
925
  /** Specifies the user email to be displayed. */
@@ -939,7 +934,6 @@ type AppLayoutTypes = {
939
934
  */
940
935
  drawerSize?: "sm" | "md" | "large";
941
936
  /** Specifies the menu items for the profile menu. */
942
- profileMenuItems?: MenuItemType[];
943
937
  /**
944
938
  * Specifies the width of the profile menu.
945
939
  * - 'default': Default width.
@@ -969,19 +963,6 @@ type AppLayoutTypes = {
969
963
  collapseSidebar?: string;
970
964
  };
971
965
  };
972
- type Item = {
973
- value: string;
974
- label: string;
975
- icon?: any;
976
- subitems?: SubItem[];
977
- onClick?: () => void;
978
- };
979
- type SubItem = {
980
- value: string;
981
- label: string;
982
- icon?: any;
983
- onClick?: () => void;
984
- };
985
966
  declare const DocsLayout: React__default.FunctionComponent<AppLayoutTypes>;
986
967
 
987
968
  type DocsSidebarType = {
@@ -1611,4 +1592,4 @@ declare function useTabs(initialTab?: string): {
1611
1592
  handleTabChange: (index: any) => void;
1612
1593
  };
1613
1594
 
1614
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, AppStores, BackToTop, Breadcrumb, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CheckEmail, Checkbox, Chip, 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, LandingCard, LeadGenerator, LegalTexts, Loading, LoginForm, LoginFormTextsTypes, Logos, MenuItemType, NavMenuItem, Navbar, NavigationMenu, NavigationMenuLink, NewPasswordForm, NoPermission, NotFound, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, PricingPlans, Progress, Radio, RadioOptionsTypes, RegisterForm, RegisterFormTextsTypes, ResetPasswordForm, ScrollArea, ScrollBar, Select, SelectOptionProps, Separator, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, Stats, StopPropagationWrapper, SubItem$3 as SubItem, Switch, TChipTypes, 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 };
1595
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, AppStores, BackToTop, Breadcrumb, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CheckEmail, Checkbox, Chip, 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, LandingCard, LeadGenerator, LegalTexts, Loading, LoginForm, LoginFormTextsTypes, Logos, MenuItemType, NavMenuItem, Navbar, NavigationMenu, NavigationMenuLink, NewPasswordForm, NoPermission, NotFound, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, PricingPlans, Progress, Radio, RadioOptionsTypes, RegisterForm, RegisterFormTextsTypes, ResetPasswordForm, ScrollArea, ScrollBar, Select, SelectOptionProps, Separator, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, Stats, StopPropagationWrapper, SubItem$2 as SubItem, Switch, TChipTypes, 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
@@ -6678,39 +6678,9 @@ var Navbar = function(props) {
6678
6678
  }, "Contact"))));
6679
6679
  };
6680
6680
  // components/layout/DocsLayout.tsx
6681
- var import_react36 = __toESM(require("react"));
6682
- // components/layout/DocsSidebar.tsx
6683
6681
  var import_react35 = __toESM(require("react"));
6684
- var DocsSidebar = function(_param) {
6685
- var test = _param.test, props = _object_without_properties(_param, [
6686
- "test"
6687
- ]);
6688
- var pages = [
6689
- "Introduction",
6690
- "Installation",
6691
- "Usage",
6692
- "API Reference",
6693
- "FAQ"
6694
- ];
6695
- var _import_react35_default_useState = _sliced_to_array(import_react35.default.useState(pages[0]), 2), currentPage = _import_react35_default_useState[0], setCurrentPage = _import_react35_default_useState[1];
6696
- var handlePageClick = function(page) {
6697
- setCurrentPage(page);
6698
- };
6699
- return /* @__PURE__ */ import_react35.default.createElement("div", {
6700
- className: "hawa-flex hawa-flex-col"
6701
- }, pages.map(function(page, index) {
6702
- return /* @__PURE__ */ import_react35.default.createElement("a", {
6703
- key: index,
6704
- className: cn("hawa-py-1 hawa-text-xs hawa-cursor-pointer hawa-px-3 hover:hawa-bg-gray-100 hawa-transition-all", currentPage === page ? "hawa-border-l-2 hawa-border-red-500 hawa-border-collapse" : ""),
6705
- onClick: function() {
6706
- return handlePageClick(page);
6707
- }
6708
- }, page);
6709
- }));
6710
- };
6711
- // components/layout/DocsLayout.tsx
6712
6682
  var DocsLayout = function(_param) {
6713
- 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, [
6683
+ 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, props = _object_without_properties(_param, [
6714
6684
  "direction",
6715
6685
  "drawerSize",
6716
6686
  "onSettingsClick",
@@ -6718,8 +6688,7 @@ var DocsLayout = function(_param) {
6718
6688
  "currentPage",
6719
6689
  "clickedItem",
6720
6690
  "keepOpen",
6721
- "setKeepOpen",
6722
- "design"
6691
+ "setKeepOpen"
6723
6692
  ]);
6724
6693
  var closeDrawerWidth = 56;
6725
6694
  var openDrawerWidth = 200;
@@ -6735,15 +6704,15 @@ var DocsLayout = function(_param) {
6735
6704
  lg: closeDrawerWidth
6736
6705
  }
6737
6706
  };
6738
- var ref = (0, import_react36.useRef)(null);
6707
+ var ref = (0, import_react35.useRef)(null);
6739
6708
  var isRTL = direction === "rtl";
6740
6709
  var size = useBreakpoint();
6741
6710
  if (typeof window == "undefined") {
6742
6711
  size = 1200;
6743
6712
  }
6744
- var _ref = _sliced_to_array((0, import_react36.useState)(size > 600 ? keepOpen : false), 2), openSideMenu = _ref[0], setOpenSideMenu = _ref[1];
6713
+ var _ref = _sliced_to_array((0, import_react35.useState)(size > 600 ? keepOpen : false), 2), openSideMenu = _ref[0], setOpenSideMenu = _ref[1];
6745
6714
  var drawerSizeCondition = size > 600 ? drawerSizeStyle[keepOpen ? "opened" : "closed"][drawerSize] : 0;
6746
- (0, import_react36.useEffect)(function() {
6715
+ (0, import_react35.useEffect)(function() {
6747
6716
  var handleClickOutside = function(event) {
6748
6717
  if (ref.current && !ref.current.contains(event.target) && !keepOpen) {
6749
6718
  setOpenSideMenu(false);
@@ -6756,33 +6725,26 @@ var DocsLayout = function(_param) {
6756
6725
  }, [
6757
6726
  keepOpen
6758
6727
  ]);
6759
- return /* @__PURE__ */ import_react36.default.createElement("div", {
6728
+ return /* @__PURE__ */ import_react35.default.createElement("div", {
6760
6729
  className: "hawa-fixed"
6761
- }, props.topBar && /* @__PURE__ */ import_react36.default.createElement("div", {
6730
+ }, /* @__PURE__ */ import_react35.default.createElement("div", {
6762
6731
  className: cn("hawa-fixed hawa-left-0 hawa-right-0 hawa-top-0 hawa-z-30 hawa-flex hawa-h-14 hawa-w-full hawa-items-center hawa-justify-between hawa-bg-primary-foreground hawa-p-2", isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row")
6763
- }, size > 600 ? /* @__PURE__ */ import_react36.default.createElement("div", {
6764
- className: cn("dark:hawa-text-white", isRTL ? [
6765
- size > 600 ? "hawa-mr-14" : "hawa-mr-2",
6766
- keepOpen ? "hawa-mr-40" : ""
6767
- ] : [
6768
- size > 600 ? "hawa-ml-14" : "hawa-ml-2",
6769
- keepOpen ? "hawa-ml-40" : ""
6770
- ]),
6771
- style: isRTL ? {
6772
- marginRight: "".concat(drawerSizeStyle[keepOpen ? "opened" : "closed"][drawerSize], "px")
6773
- } : {
6774
- marginLeft: "".concat(drawerSizeStyle[keepOpen ? "opened" : "closed"][drawerSize], "px")
6775
- }
6776
- }, props.pageTitle) : // Mobile Drawer Menu Button
6777
- /* @__PURE__ */ import_react36.default.createElement("div", {
6732
+ }, size > 600 ? /* @__PURE__ */ import_react35.default.createElement("div", {
6733
+ onClick: props.onLogoClick,
6734
+ dir: direction
6735
+ }, /* @__PURE__ */ import_react35.default.createElement("img", {
6736
+ className: cn("hawa-h-9 hawa-opacity-0 hawa-transition-all", !openSideMenu ? "hawa-invisible hawa-opacity-0" : "hawa-visible hawa-opacity-100"),
6737
+ src: props.logoLink
6738
+ })) : // Mobile Drawer Menu Button
6739
+ /* @__PURE__ */ import_react35.default.createElement("div", {
6778
6740
  dir: direction,
6779
6741
  className: "hawa-flex hawa-items-center hawa-justify-center hawa-gap-0.5"
6780
- }, /* @__PURE__ */ import_react36.default.createElement("div", {
6742
+ }, /* @__PURE__ */ import_react35.default.createElement("div", {
6781
6743
  onClick: function() {
6782
6744
  return setOpenSideMenu(true);
6783
6745
  },
6784
6746
  className: "hawa-z-40 hawa-mx-1 hawa-cursor-pointer hawa-rounded hawa-p-2 hawa-transition-all hover:hawa-bg-gray-100"
6785
- }, /* @__PURE__ */ import_react36.default.createElement("svg", {
6747
+ }, /* @__PURE__ */ import_react35.default.createElement("svg", {
6786
6748
  stroke: "currentColor",
6787
6749
  fill: "currentColor",
6788
6750
  strokeWidth: 0,
@@ -6790,98 +6752,61 @@ var DocsLayout = function(_param) {
6790
6752
  "aria-hidden": "true",
6791
6753
  height: "1.6em",
6792
6754
  width: "1.6em"
6793
- }, /* @__PURE__ */ import_react36.default.createElement("path", {
6755
+ }, /* @__PURE__ */ import_react35.default.createElement("path", {
6794
6756
  fillRule: "evenodd",
6795
6757
  clipRule: "evenodd",
6796
6758
  d: "M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z"
6797
- }))), props.pageTitle ? /* @__PURE__ */ import_react36.default.createElement("div", {
6798
- className: "hawa-text-sm"
6799
- }, props.pageTitle) : /* @__PURE__ */ import_react36.default.createElement("div", null)), /* @__PURE__ */ import_react36.default.createElement("div", {
6759
+ })))), /* @__PURE__ */ import_react35.default.createElement("div", {
6800
6760
  className: cn("hawa-flex hawa-gap-2 dark:hawa-text-white", isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row")
6801
- }, size > 600 ? /* @__PURE__ */ import_react36.default.createElement("div", {
6802
- className: isRTL ? "hawa-text-left hawa-text-xs" : "hawa-text-right hawa-text-xs"
6803
- }, /* @__PURE__ */ import_react36.default.createElement("div", {
6804
- className: "hawa-font-bold"
6805
- }, props.username), " ", /* @__PURE__ */ import_react36.default.createElement("div", null, props.email)) : null, /* @__PURE__ */ import_react36.default.createElement(DropdownMenu, {
6806
- triggerClassname: "hawa-mx-2",
6807
- align: "end",
6808
- alignOffset: 8,
6809
- side: "bottom",
6810
- sideOffset: 5,
6811
- width: props.profileMenuWidth,
6812
- direction: isRTL ? "rtl" : "ltr",
6813
- items: props.profileMenuItems,
6814
- onItemSelect: function(e) {
6815
- return console.log("selecting item ", e);
6816
- },
6817
- trigger: /* @__PURE__ */ import_react36.default.createElement("div", {
6818
- className: "hawa-relative hawa-h-8 hawa-w-8 hawa-cursor-pointer hawa-overflow-clip hawa-rounded hawa-ring-1 hawa-ring-primary/30 dark:hawa-bg-gray-600"
6819
- }, props.avatarImage ? /* @__PURE__ */ import_react36.default.createElement("img", {
6820
- src: props.avatarImage,
6821
- alt: "User Avatar"
6822
- }) : /* @__PURE__ */ import_react36.default.createElement("svg", {
6823
- "aria-label": "Avatar Icon",
6824
- className: "hawa-absolute hawa--left-1 hawa-h-10 hawa-w-10 hawa-text-gray-400",
6825
- fill: "currentColor",
6826
- viewBox: "0 0 20 20"
6827
- }, /* @__PURE__ */ import_react36.default.createElement("path", {
6828
- fillRule: "evenodd",
6829
- d: "M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z",
6830
- clipRule: "evenodd"
6831
- })))
6832
- }))), /* @__PURE__ */ import_react36.default.createElement("div", {
6833
- className: cn("hawa-fixed hawa-z-40 hawa-flex hawa-flex-col hawa-justify-between hawa-overflow-x-clip hawa-transition-all", design === "floating" ? isRTL ? "hawa-right-5 hawa-top-5" : "hawa-bottom-5 hawa-left-5 hawa-top-5" : isRTL ? "hawa-right-0 hawa-top-0 hawa-h-full" : "hawa-left-0 hawa-top-0 hawa-h-full"),
6834
- style: {
6835
- width: size > 600 ? openSideMenu ? "".concat(drawerSizeStyle["opened"][drawerSize], "px") : "".concat(drawerSizeStyle["closed"][drawerSize], "px") : openSideMenu ? "".concat(drawerSizeStyle["opened"][drawerSize], "px") : "0px"
6836
- },
6837
- onMouseEnter: function() {
6838
- setOpenSideMenu(true);
6839
- },
6840
- onMouseLeave: function() {
6841
- if (keepOpen) {
6842
- setOpenSideMenu(true);
6843
- } else {
6844
- setOpenSideMenu(false);
6845
- }
6846
- },
6847
- ref: ref
6848
- }, /* @__PURE__ */ import_react36.default.createElement("div", {
6849
- onClick: props.onLogoClick,
6850
- dir: direction,
6851
- className: cn("hawa-fixed hawa-z-50 hawa-mb-2 hawa-flex hawa-h-14 hawa-w-full hawa-flex-row hawa-items-center hawa-justify-center hawa-bg-primary-foreground hawa-transition-all", props.onLogoClick && "hawa-cursor-pointer"),
6852
- style: {
6853
- width: size > 600 ? "".concat(openSideMenu ? openDrawerWidth : 56, "px") : "".concat(openSideMenu ? openDrawerWidth : 0, "px")
6854
- }
6855
- }, /* @__PURE__ */ import_react36.default.createElement("img", {
6856
- className: cn("hawa-h-9 hawa-opacity-0 hawa-transition-all", !openSideMenu ? "hawa-invisible hawa-opacity-0" : "hawa-visible hawa-opacity-100"),
6857
- src: props.logoLink
6858
- }), size > 600 ? /* @__PURE__ */ import_react36.default.createElement("img", {
6859
- className: cn("hawa-fixed hawa-h-9 hawa-transition-all", // isRTL ? "right-2.5" : "left-2.5",
6860
- design === "floating" ? isRTL ? "hawa-right-7.5 hawa-top-7" : "hawa-left-7.5 hawa-top-7" : isRTL ? "hawa-right-2.5 hawa-top-2.5" : "hawa-left-2.5 hawa-top-2.5", openSideMenu ? "hawa-invisible hawa-opacity-0" : "hawa-visible hawa-opacity-100"),
6861
- src: props.logoSymbol
6862
- }) : null), /* @__PURE__ */ import_react36.default.createElement("div", {
6863
- className: cn("hawa-fixed hawa-bottom-14 hawa-bg-primary-foreground hawa-p-0 hawa-py-2 hawa-transition-all", design === "floating" ? "hawa-top-[76px]" : "hawa-top-14", openSideMenu ? "hawa-overflow-auto" : "hawa-overflow-hidden"),
6864
- style: {
6865
- height: design === "floating" ? "calc(100% - 152px)" : "calc(100% - 112px)",
6866
- width: size > 600 ? "".concat(openSideMenu ? openDrawerWidth : 56, "px") : "".concat(openSideMenu ? openDrawerWidth : 0, "px")
6867
- }
6868
- }, /* @__PURE__ */ import_react36.default.createElement(DocsSidebar, null))), /* @__PURE__ */ import_react36.default.createElement("div", {
6869
- className: "hawa-fixed hawa-overflow-y-auto hawa-transition-all hawa-top-0 hawa-h-[calc(100dvh)]",
6870
- style: design === "floating" ? isRTL ? {
6871
- width: "calc(100% - ".concat(drawerSizeCondition + 20, "px)"),
6872
- left: "0px"
6873
- } : {
6874
- width: "calc(100% - ".concat(drawerSizeCondition + 20, "px)"),
6875
- left: "".concat(drawerSizeCondition + 20, "px")
6876
- } : isRTL ? {
6761
+ }, /* @__PURE__ */ import_react35.default.createElement(Button, {
6762
+ variant: "ghost",
6763
+ size: "smallIcon"
6764
+ }, /* @__PURE__ */ import_react35.default.createElement(Logos.github, {
6765
+ className: "hawa-w-4 hawa-h-4"
6766
+ })))), /* @__PURE__ */ import_react35.default.createElement("div", {
6767
+ className: "hawa-fixed hawa-overflow-y-auto hawa-transition-all",
6768
+ style: isRTL ? {
6769
+ height: "calc(100% - 56px)",
6877
6770
  width: "calc(100% - ".concat(drawerSizeCondition, "px)"),
6878
- left: "0px"
6771
+ left: "0px",
6772
+ top: "56px"
6879
6773
  } : {
6774
+ height: "calc(100% - 56px)",
6880
6775
  width: "calc(100% - ".concat(drawerSizeCondition, "px)"),
6881
- left: "".concat(drawerSizeCondition, "px")
6776
+ left: "".concat(drawerSizeCondition, "px"),
6777
+ top: "56px"
6882
6778
  }
6883
6779
  }, props.children));
6884
6780
  };
6781
+ // components/layout/DocsSidebar.tsx
6782
+ var import_react36 = __toESM(require("react"));
6783
+ var DocsSidebar = function(_param) {
6784
+ var test = _param.test, props = _object_without_properties(_param, [
6785
+ "test"
6786
+ ]);
6787
+ var pages = [
6788
+ "Introduction",
6789
+ "Installation",
6790
+ "Usage",
6791
+ "API Reference",
6792
+ "FAQ"
6793
+ ];
6794
+ var _import_react36_default_useState = _sliced_to_array(import_react36.default.useState(pages[0]), 2), currentPage = _import_react36_default_useState[0], setCurrentPage = _import_react36_default_useState[1];
6795
+ var handlePageClick = function(page) {
6796
+ setCurrentPage(page);
6797
+ };
6798
+ return /* @__PURE__ */ import_react36.default.createElement("div", {
6799
+ className: "hawa-flex hawa-flex-col"
6800
+ }, pages.map(function(page, index) {
6801
+ return /* @__PURE__ */ import_react36.default.createElement("a", {
6802
+ key: index,
6803
+ className: cn("hawa-py-1 hawa-text-xs hawa-cursor-pointer hawa-px-3 hover:hawa-bg-gray-100 hawa-transition-all", currentPage === page ? "hawa-border-l-2 hawa-border-red-500 hawa-border-collapse" : ""),
6804
+ onClick: function() {
6805
+ return handlePageClick(page);
6806
+ }
6807
+ }, page);
6808
+ }));
6809
+ };
6885
6810
  // components/blocks/auth/LoginForm.tsx
6886
6811
  var import_react38 = __toESM(require("react"));
6887
6812
  var import_react_hook_form = require("react-hook-form");
package/dist/index.mjs CHANGED
@@ -6576,37 +6576,7 @@ var Navbar = (props) => {
6576
6576
  };
6577
6577
 
6578
6578
  // components/layout/DocsLayout.tsx
6579
- import React59, { useEffect as useEffect15, useRef as useRef9, useState as useState23 } from "react";
6580
-
6581
- // components/layout/DocsSidebar.tsx
6582
- import React58 from "react";
6583
- var DocsSidebar = ({ test, ...props }) => {
6584
- const pages = [
6585
- "Introduction",
6586
- "Installation",
6587
- "Usage",
6588
- "API Reference",
6589
- "FAQ"
6590
- ];
6591
- const [currentPage, setCurrentPage] = React58.useState(pages[0]);
6592
- const handlePageClick = (page) => {
6593
- setCurrentPage(page);
6594
- };
6595
- return /* @__PURE__ */ React58.createElement("div", { className: "hawa-flex hawa-flex-col" }, pages.map((page, index) => /* @__PURE__ */ React58.createElement(
6596
- "a",
6597
- {
6598
- key: index,
6599
- className: cn(
6600
- "hawa-py-1 hawa-text-xs hawa-cursor-pointer hawa-px-3 hover:hawa-bg-gray-100 hawa-transition-all",
6601
- currentPage === page ? "hawa-border-l-2 hawa-border-red-500 hawa-border-collapse" : ""
6602
- ),
6603
- onClick: () => handlePageClick(page)
6604
- },
6605
- page
6606
- )));
6607
- };
6608
-
6609
- // components/layout/DocsLayout.tsx
6579
+ import React58, { useEffect as useEffect15, useRef as useRef9, useState as useState23 } from "react";
6610
6580
  var DocsLayout = ({
6611
6581
  direction = "ltr",
6612
6582
  drawerSize = "md",
@@ -6616,7 +6586,6 @@ var DocsLayout = ({
6616
6586
  clickedItem,
6617
6587
  keepOpen,
6618
6588
  setKeepOpen,
6619
- design = "default",
6620
6589
  ...props
6621
6590
  }) => {
6622
6591
  let closeDrawerWidth = 56;
@@ -6654,7 +6623,7 @@ var DocsLayout = ({
6654
6623
  document.removeEventListener("click", handleClickOutside, true);
6655
6624
  };
6656
6625
  }, [keepOpen]);
6657
- return /* @__PURE__ */ React59.createElement("div", { className: "hawa-fixed" }, props.topBar && /* @__PURE__ */ React59.createElement(
6626
+ return /* @__PURE__ */ React58.createElement("div", { className: "hawa-fixed" }, /* @__PURE__ */ React58.createElement(
6658
6627
  "div",
6659
6628
  {
6660
6629
  className: cn(
@@ -6662,41 +6631,30 @@ var DocsLayout = ({
6662
6631
  isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
6663
6632
  )
6664
6633
  },
6665
- size > 600 ? /* @__PURE__ */ React59.createElement(
6666
- "div",
6634
+ size > 600 ? /* @__PURE__ */ React58.createElement("div", { onClick: props.onLogoClick, dir: direction }, /* @__PURE__ */ React58.createElement(
6635
+ "img",
6667
6636
  {
6668
6637
  className: cn(
6669
- "dark:hawa-text-white",
6670
- isRTL ? [
6671
- size > 600 ? "hawa-mr-14" : "hawa-mr-2",
6672
- keepOpen ? "hawa-mr-40" : ""
6673
- ] : [
6674
- size > 600 ? "hawa-ml-14" : "hawa-ml-2",
6675
- keepOpen ? "hawa-ml-40" : ""
6676
- ]
6638
+ "hawa-h-9 hawa-opacity-0 hawa-transition-all",
6639
+ !openSideMenu ? "hawa-invisible hawa-opacity-0" : "hawa-visible hawa-opacity-100"
6677
6640
  ),
6678
- style: isRTL ? {
6679
- marginRight: `${drawerSizeStyle[keepOpen ? "opened" : "closed"][drawerSize]}px`
6680
- } : {
6681
- marginLeft: `${drawerSizeStyle[keepOpen ? "opened" : "closed"][drawerSize]}px`
6682
- }
6683
- },
6684
- props.pageTitle
6685
- ) : (
6641
+ src: props.logoLink
6642
+ }
6643
+ )) : (
6686
6644
  // Mobile Drawer Menu Button
6687
- /* @__PURE__ */ React59.createElement(
6645
+ /* @__PURE__ */ React58.createElement(
6688
6646
  "div",
6689
6647
  {
6690
6648
  dir: direction,
6691
6649
  className: "hawa-flex hawa-items-center hawa-justify-center hawa-gap-0.5"
6692
6650
  },
6693
- /* @__PURE__ */ React59.createElement(
6651
+ /* @__PURE__ */ React58.createElement(
6694
6652
  "div",
6695
6653
  {
6696
6654
  onClick: () => setOpenSideMenu(true),
6697
6655
  className: "hawa-z-40 hawa-mx-1 hawa-cursor-pointer hawa-rounded hawa-p-2 hawa-transition-all hover:hawa-bg-gray-100"
6698
6656
  },
6699
- /* @__PURE__ */ React59.createElement(
6657
+ /* @__PURE__ */ React58.createElement(
6700
6658
  "svg",
6701
6659
  {
6702
6660
  stroke: "currentColor",
@@ -6707,7 +6665,7 @@ var DocsLayout = ({
6707
6665
  height: "1.6em",
6708
6666
  width: "1.6em"
6709
6667
  },
6710
- /* @__PURE__ */ React59.createElement(
6668
+ /* @__PURE__ */ React58.createElement(
6711
6669
  "path",
6712
6670
  {
6713
6671
  fillRule: "evenodd",
@@ -6716,11 +6674,10 @@ var DocsLayout = ({
6716
6674
  }
6717
6675
  )
6718
6676
  )
6719
- ),
6720
- props.pageTitle ? /* @__PURE__ */ React59.createElement("div", { className: "hawa-text-sm" }, props.pageTitle) : /* @__PURE__ */ React59.createElement("div", null)
6677
+ )
6721
6678
  )
6722
6679
  ),
6723
- /* @__PURE__ */ React59.createElement(
6680
+ /* @__PURE__ */ React58.createElement(
6724
6681
  "div",
6725
6682
  {
6726
6683
  className: cn(
@@ -6728,142 +6685,56 @@ var DocsLayout = ({
6728
6685
  isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
6729
6686
  )
6730
6687
  },
6731
- size > 600 ? /* @__PURE__ */ React59.createElement(
6732
- "div",
6733
- {
6734
- className: isRTL ? "hawa-text-left hawa-text-xs" : "hawa-text-right hawa-text-xs"
6735
- },
6736
- /* @__PURE__ */ React59.createElement("div", { className: "hawa-font-bold" }, props.username),
6737
- " ",
6738
- /* @__PURE__ */ React59.createElement("div", null, props.email)
6739
- ) : null,
6740
- /* @__PURE__ */ React59.createElement(
6741
- DropdownMenu,
6742
- {
6743
- triggerClassname: "hawa-mx-2",
6744
- align: "end",
6745
- alignOffset: 8,
6746
- side: "bottom",
6747
- sideOffset: 5,
6748
- width: props.profileMenuWidth,
6749
- direction: isRTL ? "rtl" : "ltr",
6750
- items: props.profileMenuItems,
6751
- onItemSelect: (e) => console.log("selecting item ", e),
6752
- trigger: /* @__PURE__ */ React59.createElement("div", { className: "hawa-relative hawa-h-8 hawa-w-8 hawa-cursor-pointer hawa-overflow-clip hawa-rounded hawa-ring-1 hawa-ring-primary/30 dark:hawa-bg-gray-600" }, props.avatarImage ? /* @__PURE__ */ React59.createElement("img", { src: props.avatarImage, alt: "User Avatar" }) : /* @__PURE__ */ React59.createElement(
6753
- "svg",
6754
- {
6755
- "aria-label": "Avatar Icon",
6756
- className: "hawa-absolute hawa--left-1 hawa-h-10 hawa-w-10 hawa-text-gray-400",
6757
- fill: "currentColor",
6758
- viewBox: "0 0 20 20"
6759
- },
6760
- /* @__PURE__ */ React59.createElement(
6761
- "path",
6762
- {
6763
- fillRule: "evenodd",
6764
- d: "M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z",
6765
- clipRule: "evenodd"
6766
- }
6767
- )
6768
- ))
6769
- }
6770
- )
6688
+ /* @__PURE__ */ React58.createElement(Button, { variant: "ghost", size: "smallIcon" }, /* @__PURE__ */ React58.createElement(Logos.github, { className: "hawa-w-4 hawa-h-4" }))
6771
6689
  )
6772
- ), /* @__PURE__ */ React59.createElement(
6690
+ ), /* @__PURE__ */ React58.createElement(
6773
6691
  "div",
6774
6692
  {
6775
- className: cn(
6776
- "hawa-fixed hawa-z-40 hawa-flex hawa-flex-col hawa-justify-between hawa-overflow-x-clip hawa-transition-all",
6777
- design === "floating" ? isRTL ? "hawa-right-5 hawa-top-5" : "hawa-bottom-5 hawa-left-5 hawa-top-5" : isRTL ? "hawa-right-0 hawa-top-0 hawa-h-full" : "hawa-left-0 hawa-top-0 hawa-h-full"
6778
- ),
6779
- style: {
6780
- width: size > 600 ? openSideMenu ? `${drawerSizeStyle["opened"][drawerSize]}px` : `${drawerSizeStyle["closed"][drawerSize]}px` : openSideMenu ? `${drawerSizeStyle["opened"][drawerSize]}px` : "0px"
6781
- },
6782
- onMouseEnter: () => {
6783
- setOpenSideMenu(true);
6784
- },
6785
- onMouseLeave: () => {
6786
- if (keepOpen) {
6787
- setOpenSideMenu(true);
6788
- } else {
6789
- setOpenSideMenu(false);
6790
- }
6791
- },
6792
- ref
6793
- },
6794
- /* @__PURE__ */ React59.createElement(
6795
- "div",
6796
- {
6797
- onClick: props.onLogoClick,
6798
- dir: direction,
6799
- className: cn(
6800
- "hawa-fixed hawa-z-50 hawa-mb-2 hawa-flex hawa-h-14 hawa-w-full hawa-flex-row hawa-items-center hawa-justify-center hawa-bg-primary-foreground hawa-transition-all",
6801
- props.onLogoClick && "hawa-cursor-pointer"
6802
- ),
6803
- style: {
6804
- width: size > 600 ? `${openSideMenu ? openDrawerWidth : 56}px` : `${openSideMenu ? openDrawerWidth : 0}px`
6805
- }
6806
- },
6807
- /* @__PURE__ */ React59.createElement(
6808
- "img",
6809
- {
6810
- className: cn(
6811
- "hawa-h-9 hawa-opacity-0 hawa-transition-all",
6812
- !openSideMenu ? "hawa-invisible hawa-opacity-0" : "hawa-visible hawa-opacity-100"
6813
- ),
6814
- src: props.logoLink
6815
- }
6816
- ),
6817
- size > 600 ? /* @__PURE__ */ React59.createElement(
6818
- "img",
6819
- {
6820
- className: cn(
6821
- "hawa-fixed hawa-h-9 hawa-transition-all",
6822
- // isRTL ? "right-2.5" : "left-2.5",
6823
- design === "floating" ? isRTL ? "hawa-right-7.5 hawa-top-7" : "hawa-left-7.5 hawa-top-7" : isRTL ? "hawa-right-2.5 hawa-top-2.5" : "hawa-left-2.5 hawa-top-2.5",
6824
- openSideMenu ? "hawa-invisible hawa-opacity-0" : "hawa-visible hawa-opacity-100"
6825
- ),
6826
- src: props.logoSymbol
6827
- }
6828
- ) : null
6829
- ),
6830
- /* @__PURE__ */ React59.createElement(
6831
- "div",
6832
- {
6833
- className: cn(
6834
- "hawa-fixed hawa-bottom-14 hawa-bg-primary-foreground hawa-p-0 hawa-py-2 hawa-transition-all",
6835
- design === "floating" ? "hawa-top-[76px]" : "hawa-top-14",
6836
- openSideMenu ? "hawa-overflow-auto" : "hawa-overflow-hidden"
6837
- ),
6838
- style: {
6839
- height: design === "floating" ? "calc(100% - 152px)" : "calc(100% - 112px)",
6840
- width: size > 600 ? `${openSideMenu ? openDrawerWidth : 56}px` : `${openSideMenu ? openDrawerWidth : 0}px`
6841
- }
6842
- },
6843
- /* @__PURE__ */ React59.createElement(DocsSidebar, null)
6844
- )
6845
- ), /* @__PURE__ */ React59.createElement(
6846
- "div",
6847
- {
6848
- className: "hawa-fixed hawa-overflow-y-auto hawa-transition-all hawa-top-0 hawa-h-[calc(100dvh)]",
6849
- style: design === "floating" ? isRTL ? {
6850
- width: `calc(100% - ${drawerSizeCondition + 20}px)`,
6851
- left: "0px"
6852
- } : {
6853
- width: `calc(100% - ${drawerSizeCondition + 20}px)`,
6854
- left: `${drawerSizeCondition + 20}px`
6855
- } : isRTL ? {
6693
+ className: "hawa-fixed hawa-overflow-y-auto hawa-transition-all",
6694
+ style: isRTL ? {
6695
+ height: `calc(100% - 56px)`,
6856
6696
  width: `calc(100% - ${drawerSizeCondition}px)`,
6857
- left: "0px"
6697
+ left: "0px",
6698
+ top: "56px"
6858
6699
  } : {
6700
+ height: `calc(100% - 56px)`,
6859
6701
  width: `calc(100% - ${drawerSizeCondition}px)`,
6860
- left: `${drawerSizeCondition}px`
6702
+ left: `${drawerSizeCondition}px`,
6703
+ top: "56px"
6861
6704
  }
6862
6705
  },
6863
6706
  props.children
6864
6707
  ));
6865
6708
  };
6866
6709
 
6710
+ // components/layout/DocsSidebar.tsx
6711
+ import React59 from "react";
6712
+ var DocsSidebar = ({ test, ...props }) => {
6713
+ const pages = [
6714
+ "Introduction",
6715
+ "Installation",
6716
+ "Usage",
6717
+ "API Reference",
6718
+ "FAQ"
6719
+ ];
6720
+ const [currentPage, setCurrentPage] = React59.useState(pages[0]);
6721
+ const handlePageClick = (page) => {
6722
+ setCurrentPage(page);
6723
+ };
6724
+ return /* @__PURE__ */ React59.createElement("div", { className: "hawa-flex hawa-flex-col" }, pages.map((page, index) => /* @__PURE__ */ React59.createElement(
6725
+ "a",
6726
+ {
6727
+ key: index,
6728
+ className: cn(
6729
+ "hawa-py-1 hawa-text-xs hawa-cursor-pointer hawa-px-3 hover:hawa-bg-gray-100 hawa-transition-all",
6730
+ currentPage === page ? "hawa-border-l-2 hawa-border-red-500 hawa-border-collapse" : ""
6731
+ ),
6732
+ onClick: () => handlePageClick(page)
6733
+ },
6734
+ page
6735
+ )));
6736
+ };
6737
+
6867
6738
  // components/blocks/auth/LoginForm.tsx
6868
6739
  import React61 from "react";
6869
6740
  import { Controller, useForm } from "react-hook-form";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.11.12-next",
3
+ "version": "0.11.13-next",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {