@sikka/hawa 0.29.6-next → 0.29.8-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.
Files changed (52) hide show
  1. package/dist/{DropdownMenu-EUL-D3I3.d.mts → DropdownMenu-o2-hzTmS.d.mts} +2 -0
  2. package/dist/{DropdownMenu-SPisqCzV.d.ts → DropdownMenu-q6HfeO08.d.ts} +2 -0
  3. package/dist/appLayout/index.d.mts +2 -1
  4. package/dist/appLayout/index.d.ts +2 -1
  5. package/dist/appLayout/index.js +11 -5
  6. package/dist/appLayout/index.js.map +1 -1
  7. package/dist/appLayout/index.mjs +11 -5
  8. package/dist/appLayout/index.mjs.map +1 -1
  9. package/dist/appTopbar/index.js +6 -2
  10. package/dist/appTopbar/index.js.map +1 -1
  11. package/dist/appTopbar/index.mjs +6 -2
  12. package/dist/appTopbar/index.mjs.map +1 -1
  13. package/dist/blocks/index.d.mts +1 -1
  14. package/dist/blocks/index.d.ts +1 -1
  15. package/dist/blocks/index.js +6 -2
  16. package/dist/blocks/index.mjs +2 -2
  17. package/dist/blocks/pricing/index.js +2 -1
  18. package/dist/blocks/pricing/index.mjs +2 -1
  19. package/dist/{chunk-ZOFKAJPJ.mjs → chunk-3XX3VPLA.mjs} +6 -2
  20. package/dist/{chunk-N7FGYBM5.mjs → chunk-6CQKEC52.mjs} +1 -1
  21. package/dist/{chunk-7FTLPCZL.mjs → chunk-AWOUBX56.mjs} +1 -1
  22. package/dist/dataTable/index.js +6 -2
  23. package/dist/dataTable/index.js.map +1 -1
  24. package/dist/dataTable/index.mjs +6 -2
  25. package/dist/dataTable/index.mjs.map +1 -1
  26. package/dist/dropdownMenu/index.d.mts +2 -0
  27. package/dist/dropdownMenu/index.d.ts +2 -0
  28. package/dist/dropdownMenu/index.js +6 -2
  29. package/dist/dropdownMenu/index.js.map +1 -1
  30. package/dist/dropdownMenu/index.mjs +6 -2
  31. package/dist/dropdownMenu/index.mjs.map +1 -1
  32. package/dist/elements/index.d.mts +1 -1
  33. package/dist/elements/index.d.ts +1 -1
  34. package/dist/elements/index.js +6 -2
  35. package/dist/elements/index.mjs +3 -3
  36. package/dist/index.d.mts +4 -1
  37. package/dist/index.d.ts +4 -1
  38. package/dist/index.js +11 -5
  39. package/dist/index.mjs +11 -5
  40. package/dist/layout/index.d.mts +3 -2
  41. package/dist/layout/index.d.ts +3 -2
  42. package/dist/layout/index.js +11 -5
  43. package/dist/layout/index.mjs +7 -5
  44. package/dist/sidebar/index.js +1 -1
  45. package/dist/sidebar/index.js.map +1 -1
  46. package/dist/sidebar/index.mjs +1 -1
  47. package/dist/sidebar/index.mjs.map +1 -1
  48. package/dist/splitButton/index.js +6 -2
  49. package/dist/splitButton/index.js.map +1 -1
  50. package/dist/splitButton/index.mjs +6 -2
  51. package/dist/splitButton/index.mjs.map +1 -1
  52. package/package.json +1 -1
@@ -19,6 +19,7 @@ declare const DropdownMenuItem: React.ForwardRefExoticComponent<Omit<DropdownMen
19
19
  shortcut?: React.ReactNode;
20
20
  badged?: boolean | undefined;
21
21
  slug?: string | undefined;
22
+ LinkComponent?: any;
22
23
  } & React.RefAttributes<HTMLDivElement>>;
23
24
  declare const DropdownMenuCheckboxItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
24
25
  declare const DropdownMenuRadioItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
@@ -76,6 +77,7 @@ interface DropdownMenuProps {
76
77
  onOpenChange?: any;
77
78
  header?: React.ReactNode;
78
79
  open?: any;
80
+ LinkComponent?: any;
79
81
  }
80
82
  declare const DropdownMenu: React.FC<DropdownMenuProps>;
81
83
  interface DropdownMenuRadioProps {
@@ -19,6 +19,7 @@ declare const DropdownMenuItem: React.ForwardRefExoticComponent<Omit<DropdownMen
19
19
  shortcut?: React.ReactNode;
20
20
  badged?: boolean | undefined;
21
21
  slug?: string | undefined;
22
+ LinkComponent?: any;
22
23
  } & React.RefAttributes<HTMLDivElement>>;
23
24
  declare const DropdownMenuCheckboxItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
24
25
  declare const DropdownMenuRadioItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
@@ -76,6 +77,7 @@ interface DropdownMenuProps {
76
77
  onOpenChange?: any;
77
78
  header?: React.ReactNode;
78
79
  open?: any;
80
+ LinkComponent?: any;
79
81
  }
80
82
  declare const DropdownMenu: React.FC<DropdownMenuProps>;
81
83
  interface DropdownMenuRadioProps {
@@ -125,7 +125,8 @@ type AppLayoutTypes = {
125
125
  symbolLogoImg?: string;
126
126
  logoContainer?: string;
127
127
  };
128
- LinkComponent?: any;
128
+ DrawerLinkComponent?: any;
129
+ MenuLinkComponent?: any;
129
130
  };
130
131
  declare const AppLayout: React__default.FunctionComponent<AppLayoutTypes>;
131
132
 
@@ -125,7 +125,8 @@ type AppLayoutTypes = {
125
125
  symbolLogoImg?: string;
126
126
  logoContainer?: string;
127
127
  };
128
- LinkComponent?: any;
128
+ DrawerLinkComponent?: any;
129
+ MenuLinkComponent?: any;
129
130
  };
130
131
  declare const AppLayout: React__default.FunctionComponent<AppLayoutTypes>;
131
132
 
@@ -407,7 +407,8 @@ var DropdownMenuContent = React3.forwardRef(({ className, sideOffset = 4, ...pro
407
407
  )));
408
408
  DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
409
409
  var DropdownMenuItem = React3.forwardRef(({ className, inset, badged, slug, ...props }, ref) => {
410
- return /* @__PURE__ */ React3.createElement("a", { href: slug }, /* @__PURE__ */ React3.createElement(
410
+ const LinkComponent = props.LinkComponent || "a";
411
+ return /* @__PURE__ */ React3.createElement(LinkComponent, { href: slug }, /* @__PURE__ */ React3.createElement(
411
412
  DropdownMenuPrimitive.Item,
412
413
  {
413
414
  disabled: props.disabled,
@@ -537,7 +538,8 @@ var DropdownMenu = ({
537
538
  width = "default",
538
539
  header,
539
540
  onOpenChange,
540
- open
541
+ open,
542
+ LinkComponent
541
543
  }) => {
542
544
  const widthStyles = {
543
545
  default: "hawa-min-w-[8rem]",
@@ -594,6 +596,7 @@ var DropdownMenu = ({
594
596
  ), /* @__PURE__ */ React3.createElement(DropdownMenuPortal, null, /* @__PURE__ */ React3.createElement(DropdownMenuSubContent, null, item.subitems.map((subitem, subIndex) => /* @__PURE__ */ React3.createElement(
595
597
  DropdownMenuItem,
596
598
  {
599
+ LinkComponent,
597
600
  slug: subitem.slug,
598
601
  onMouseDown: (event) => {
599
602
  if (event.button === 1 || event.button === 0 && event.ctrlKey) {
@@ -621,6 +624,7 @@ var DropdownMenu = ({
621
624
  ))))) : /* @__PURE__ */ React3.createElement(
622
625
  DropdownMenuItem,
623
626
  {
627
+ LinkComponent,
624
628
  slug: item.slug,
625
629
  key: index,
626
630
  disabled: item.disabled,
@@ -997,7 +1001,7 @@ var SidebarItem = ({
997
1001
  );
998
1002
  } else {
999
1003
  return /* @__PURE__ */ React6.createElement(
1000
- "a",
1004
+ LinkComponent,
1001
1005
  {
1002
1006
  href: item.slug,
1003
1007
  dir: direction,
@@ -1048,7 +1052,8 @@ var AppLayout = ({
1048
1052
  clickedItem,
1049
1053
  setKeepOpen,
1050
1054
  keepOpen,
1051
- LinkComponent,
1055
+ DrawerLinkComponent,
1056
+ MenuLinkComponent,
1052
1057
  ...props
1053
1058
  }) => {
1054
1059
  var _a, _b;
@@ -1169,6 +1174,7 @@ var AppLayout = ({
1169
1174
  /* @__PURE__ */ import_react4.default.createElement(
1170
1175
  DropdownMenu,
1171
1176
  {
1177
+ LinkComponent: MenuLinkComponent,
1172
1178
  triggerClassname: "hawa-mx-2",
1173
1179
  align: "end",
1174
1180
  alignOffset: 8,
@@ -1295,7 +1301,7 @@ var AppLayout = ({
1295
1301
  setOpenedItem: (e) => setOpenedSidebarItem(e),
1296
1302
  isOpen: keepOpen || openSideMenu,
1297
1303
  items: props.drawerItems,
1298
- LinkComponent
1304
+ LinkComponent: DrawerLinkComponent
1299
1305
  }
1300
1306
  )
1301
1307
  ),