@sikka/hawa 0.49.13-next → 0.49.15-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 (113) hide show
  1. package/dist/{Chip-KG1_ZmCL.d.mts → Chip-BRMzT5TB.d.mts} +2 -2
  2. package/dist/{Chip-Cw1twk4G.d.ts → Chip-D58g8OJ_.d.ts} +2 -2
  3. package/dist/accordion/index.d.mts +1 -1
  4. package/dist/accordion/index.d.ts +1 -1
  5. package/dist/accordion/index.js.map +1 -1
  6. package/dist/accordion/index.mjs.map +1 -1
  7. package/dist/appLayout/index.js +1 -3
  8. package/dist/appLayout/index.js.map +1 -1
  9. package/dist/appLayout/index.mjs +1 -3
  10. package/dist/appLayout/index.mjs.map +1 -1
  11. package/dist/appTopbar/index.js +0 -2
  12. package/dist/appTopbar/index.js.map +1 -1
  13. package/dist/appTopbar/index.mjs +0 -2
  14. package/dist/appTopbar/index.mjs.map +1 -1
  15. package/dist/badge/index.d.mts +1 -1
  16. package/dist/badge/index.d.ts +1 -1
  17. package/dist/badge/index.js +11 -2
  18. package/dist/badge/index.js.map +1 -1
  19. package/dist/badge/index.mjs +11 -2
  20. package/dist/badge/index.mjs.map +1 -1
  21. package/dist/blocks/auth/index.js +15 -16
  22. package/dist/blocks/auth/index.mjs +15 -16
  23. package/dist/blocks/index.d.mts +1 -1
  24. package/dist/blocks/index.d.ts +1 -1
  25. package/dist/blocks/index.js +15 -18
  26. package/dist/blocks/index.mjs +4 -6
  27. package/dist/blocks/misc/index.js +0 -1
  28. package/dist/blocks/misc/index.mjs +0 -1
  29. package/dist/button/index.d.mts +1 -1
  30. package/dist/button/index.d.ts +1 -1
  31. package/dist/chip/index.d.mts +2 -2
  32. package/dist/chip/index.d.ts +2 -2
  33. package/dist/chip/index.js.map +1 -1
  34. package/dist/chip/index.mjs.map +1 -1
  35. package/dist/{chunk-XWNN7K63.mjs → chunk-NJJVVA2A.mjs} +17 -17
  36. package/dist/{chunk-5SQBJRWE.mjs → chunk-OWMN44TT.mjs} +1 -1
  37. package/dist/{chunk-3CHFVHTW.mjs → chunk-QQ7C5DWR.mjs} +1 -1
  38. package/dist/{chunk-KDGJZPWK.mjs → chunk-YGLAEAJY.mjs} +0 -1
  39. package/dist/{chunk-WQR4XZGL.mjs → chunk-Z3ZL22XB.mjs} +1 -3
  40. package/dist/combobox/index.js +0 -1
  41. package/dist/combobox/index.js.map +1 -1
  42. package/dist/combobox/index.mjs +0 -1
  43. package/dist/combobox/index.mjs.map +1 -1
  44. package/dist/command/index.js +0 -1
  45. package/dist/command/index.js.map +1 -1
  46. package/dist/command/index.mjs +0 -1
  47. package/dist/command/index.mjs.map +1 -1
  48. package/dist/count/index.d.mts +2 -2
  49. package/dist/count/index.d.ts +2 -2
  50. package/dist/count/index.js.map +1 -1
  51. package/dist/count/index.mjs.map +1 -1
  52. package/dist/dataTable/index.js +0 -1
  53. package/dist/dataTable/index.js.map +1 -1
  54. package/dist/dataTable/index.mjs +0 -1
  55. package/dist/dataTable/index.mjs.map +1 -1
  56. package/dist/datePicker/index.d.mts +1 -1
  57. package/dist/datePicker/index.d.ts +1 -1
  58. package/dist/dialog/index.js +0 -1
  59. package/dist/dialog/index.js.map +1 -1
  60. package/dist/dialog/index.mjs +0 -1
  61. package/dist/dialog/index.mjs.map +1 -1
  62. package/dist/docsLayout/index.js +1 -1
  63. package/dist/docsLayout/index.js.map +1 -1
  64. package/dist/docsLayout/index.mjs +1 -1
  65. package/dist/docsLayout/index.mjs.map +1 -1
  66. package/dist/dropdownMenu/index.js +0 -1
  67. package/dist/dropdownMenu/index.js.map +1 -1
  68. package/dist/dropdownMenu/index.mjs +0 -1
  69. package/dist/dropdownMenu/index.mjs.map +1 -1
  70. package/dist/elements/index.d.mts +9 -7
  71. package/dist/elements/index.d.ts +9 -7
  72. package/dist/elements/index.js +32 -23
  73. package/dist/elements/index.mjs +22 -12
  74. package/dist/fileDropzone/index.js +6 -4
  75. package/dist/fileDropzone/index.js.map +1 -1
  76. package/dist/fileDropzone/index.mjs +6 -4
  77. package/dist/fileDropzone/index.mjs.map +1 -1
  78. package/dist/hooks/index.d.mts +2 -2
  79. package/dist/hooks/index.d.ts +2 -2
  80. package/dist/hooks/index.js +2 -4
  81. package/dist/hooks/index.mjs +2 -2
  82. package/dist/index.css +231 -233
  83. package/dist/index.d.mts +11 -9
  84. package/dist/index.d.ts +11 -9
  85. package/dist/index.js +35 -32
  86. package/dist/index.mjs +35 -32
  87. package/dist/layout/index.d.mts +1 -1
  88. package/dist/layout/index.d.ts +1 -1
  89. package/dist/layout/index.js +2 -5
  90. package/dist/layout/index.mjs +4 -6
  91. package/dist/phoneInput/index.js.map +1 -1
  92. package/dist/phoneInput/index.mjs.map +1 -1
  93. package/dist/pinInput/index.d.mts +4 -2
  94. package/dist/pinInput/index.d.ts +4 -2
  95. package/dist/pinInput/index.js +15 -15
  96. package/dist/pinInput/index.js.map +1 -1
  97. package/dist/pinInput/index.mjs +15 -15
  98. package/dist/pinInput/index.mjs.map +1 -1
  99. package/dist/select/index.js.map +1 -1
  100. package/dist/select/index.mjs.map +1 -1
  101. package/dist/sidebar/index.js.map +1 -1
  102. package/dist/sidebar/index.mjs.map +1 -1
  103. package/dist/splitButton/index.d.mts +1 -1
  104. package/dist/splitButton/index.d.ts +1 -1
  105. package/dist/splitButton/index.js +0 -1
  106. package/dist/splitButton/index.js.map +1 -1
  107. package/dist/splitButton/index.mjs +0 -1
  108. package/dist/splitButton/index.mjs.map +1 -1
  109. package/dist/tabs/index.d.mts +1 -1
  110. package/dist/tabs/index.d.ts +1 -1
  111. package/dist/tabs/index.js.map +1 -1
  112. package/dist/tabs/index.mjs.map +1 -1
  113. package/package.json +46 -46
package/dist/index.mjs CHANGED
@@ -654,7 +654,6 @@ var DropdownMenu = ({
654
654
  let newValues = [...values];
655
655
  newValues[index] = e;
656
656
  setValues(newValues);
657
- console.log("changing to ", e);
658
657
  if (item.onOptionChange) {
659
658
  item.onOptionChange(e);
660
659
  }
@@ -1861,7 +1860,6 @@ var DialogSteps = ({ currentStep, visibleStepRef, children }) => {
1861
1860
  React14.useEffect(() => {
1862
1861
  if (visibleStepRef.current) {
1863
1862
  setDialogHeight(visibleStepRef.current.offsetHeight);
1864
- console.log("height is ", visibleStepRef.current.offsetHeight);
1865
1863
  }
1866
1864
  }, [currentStep, visibleStepRef]);
1867
1865
  return /* @__PURE__ */ React14.createElement(
@@ -3961,11 +3959,13 @@ var FileDropzone = ({
3961
3959
  var _a, _b, _c, _d, _e, _f;
3962
3960
  const [cmp, setCmp] = useState9(0);
3963
3961
  const [max, setMax] = useState9(0);
3962
+ const [filesAccepted, setFilesAccepted] = useState9([]);
3964
3963
  const { getRootProps, getInputProps, fileRejections, acceptedFiles, isDragActive } = useDropzone({
3965
3964
  multiple: true,
3966
3965
  accept,
3967
3966
  maxSize,
3968
3967
  maxFiles,
3968
+ useFsAccessApi: true,
3969
3969
  onDrop: (acceptedFiles2) => {
3970
3970
  setFiles(
3971
3971
  acceptedFiles2.map(
@@ -3988,12 +3988,12 @@ var FileDropzone = ({
3988
3988
  setFiles(acceptedFiles);
3989
3989
  }, [acceptedFiles, cmp, setFiles]);
3990
3990
  onClearFiles = () => {
3991
- acceptedFiles.length = 0;
3992
- acceptedFiles.splice(0, acceptedFiles.length);
3991
+ setFilesAccepted([]);
3992
+ setFilesAccepted(filesAccepted.splice(0, filesAccepted.length));
3993
3993
  setFiles([]);
3994
3994
  };
3995
3995
  const clearAllFiles = () => {
3996
- acceptedFiles.length = 0;
3996
+ setFilesAccepted([]);
3997
3997
  setFiles([]);
3998
3998
  };
3999
3999
  useEffect6(() => {
@@ -4021,7 +4021,7 @@ var FileDropzone = ({
4021
4021
  {
4022
4022
  onClick: (e) => {
4023
4023
  e.stopPropagation();
4024
- acceptedFiles.splice(acceptedFiles.indexOf(file), 1);
4024
+ setFilesAccepted(filesAccepted.splice(filesAccepted.indexOf(file), 1));
4025
4025
  setCmp(Math.random);
4026
4026
  onDeleteFile(file);
4027
4027
  },
@@ -4272,13 +4272,11 @@ var useDialogCarousel = (options) => {
4272
4272
  };
4273
4273
  const nextStep = () => {
4274
4274
  if (emblaApi) {
4275
- console.log("going to NEXT \u{1F449}");
4276
4275
  emblaApi.scrollNext();
4277
4276
  }
4278
4277
  };
4279
4278
  const prevStep = () => {
4280
4279
  if (emblaApi) {
4281
- console.log("going to BACK \u{1F448}");
4282
4280
  emblaApi.scrollPrev();
4283
4281
  }
4284
4282
  };
@@ -4472,7 +4470,7 @@ function useMediaQuery(query, initialValue, { getInitialValueInEffect } = {
4472
4470
  const [matches, setMatches] = useState20(
4473
4471
  getInitialValueInEffect ? initialValue : getInitialValue(query, initialValue)
4474
4472
  );
4475
- const queryRef = useRef10();
4473
+ const queryRef = useRef10(null);
4476
4474
  useEffect15(() => {
4477
4475
  if ("matchMedia" in window) {
4478
4476
  queryRef.current = window.matchMedia(query);
@@ -4553,7 +4551,7 @@ var useMeasureDirty = (ref) => {
4553
4551
  import { useEffect as useEffect20, useRef as useRef13 } from "react";
4554
4552
  var DEFAULT_EVENTS = ["mousedown", "touchstart"];
4555
4553
  function useClickOutside(handler, events, nodes) {
4556
- const ref = useRef13();
4554
+ const ref = useRef13(null);
4557
4555
  useEffect20(() => {
4558
4556
  const listener = (event) => {
4559
4557
  const { target } = event != null ? event : {};
@@ -5329,7 +5327,7 @@ var Badge = ({
5329
5327
  useEffect26(() => {
5330
5328
  const handlePositioning = () => {
5331
5329
  var _a;
5332
- if (anchor.current && indicatorRef.current) {
5330
+ if (anchor && anchor.current && indicatorRef.current) {
5333
5331
  const rect = anchor.current.getBoundingClientRect();
5334
5332
  const parentRect = (_a = indicatorRef.current.parentElement) == null ? void 0 : _a.getBoundingClientRect();
5335
5333
  const style = window.getComputedStyle(anchor.current);
@@ -5368,7 +5366,16 @@ var Badge = ({
5368
5366
  };
5369
5367
  var BadgedComponent = ({ children, className, hideBadge, position, size, text }) => {
5370
5368
  const ref = useRef16(null);
5371
- return /* @__PURE__ */ React48.createElement("div", { className: cn("hawa-relative hawa-w-fit", className), ref }, !hideBadge && /* @__PURE__ */ React48.createElement(Badge, { size, text, position, anchor: ref, className: "hawa-z-10" }), children);
5369
+ return /* @__PURE__ */ React48.createElement("div", { className: cn("hawa-relative hawa-w-fit", className), ref }, !hideBadge && /* @__PURE__ */ React48.createElement(
5370
+ Badge,
5371
+ {
5372
+ size,
5373
+ text,
5374
+ position,
5375
+ anchor: ref || null,
5376
+ className: "hawa-z-10"
5377
+ }
5378
+ ), children);
5372
5379
  };
5373
5380
 
5374
5381
  // elements/phoneInput/PhoneInput.tsx
@@ -7131,19 +7138,19 @@ var PhoneInput = ({
7131
7138
  import * as React50 from "react";
7132
7139
  import { OTPInput, OTPInputContext } from "input-otp";
7133
7140
 
7134
- // ../../node_modules/.pnpm/lucide-react@0.438.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
7141
+ // ../../node_modules/.pnpm/lucide-react@0.468.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
7135
7142
  import { forwardRef as forwardRef25, createElement as createElement24 } from "react";
7136
7143
 
7137
- // ../../node_modules/.pnpm/lucide-react@0.438.0_react@18.3.1/node_modules/lucide-react/dist/esm/shared/src/utils.js
7144
+ // ../../node_modules/.pnpm/lucide-react@0.468.0_react@18.3.1/node_modules/lucide-react/dist/esm/shared/src/utils.js
7138
7145
  var toKebabCase = (string9) => string9.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
7139
7146
  var mergeClasses = (...classes) => classes.filter((className, index, array) => {
7140
- return Boolean(className) && array.indexOf(className) === index;
7141
- }).join(" ");
7147
+ return Boolean(className) && className.trim() !== "" && array.indexOf(className) === index;
7148
+ }).join(" ").trim();
7142
7149
 
7143
- // ../../node_modules/.pnpm/lucide-react@0.438.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
7150
+ // ../../node_modules/.pnpm/lucide-react@0.468.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
7144
7151
  import { forwardRef as forwardRef24, createElement as createElement23 } from "react";
7145
7152
 
7146
- // ../../node_modules/.pnpm/lucide-react@0.438.0_react@18.3.1/node_modules/lucide-react/dist/esm/defaultAttributes.js
7153
+ // ../../node_modules/.pnpm/lucide-react@0.468.0_react@18.3.1/node_modules/lucide-react/dist/esm/defaultAttributes.js
7147
7154
  var defaultAttributes = {
7148
7155
  xmlns: "http://www.w3.org/2000/svg",
7149
7156
  width: 24,
@@ -7156,7 +7163,7 @@ var defaultAttributes = {
7156
7163
  strokeLinejoin: "round"
7157
7164
  };
7158
7165
 
7159
- // ../../node_modules/.pnpm/lucide-react@0.438.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
7166
+ // ../../node_modules/.pnpm/lucide-react@0.468.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
7160
7167
  var Icon = forwardRef24(
7161
7168
  ({
7162
7169
  color = "currentColor",
@@ -7188,7 +7195,7 @@ var Icon = forwardRef24(
7188
7195
  }
7189
7196
  );
7190
7197
 
7191
- // ../../node_modules/.pnpm/lucide-react@0.438.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
7198
+ // ../../node_modules/.pnpm/lucide-react@0.468.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
7192
7199
  var createLucideIcon = (iconName, iconNode) => {
7193
7200
  const Component = forwardRef25(
7194
7201
  ({ className, ...props }, ref) => createElement24(Icon, {
@@ -7202,7 +7209,7 @@ var createLucideIcon = (iconName, iconNode) => {
7202
7209
  return Component;
7203
7210
  };
7204
7211
 
7205
- // ../../node_modules/.pnpm/lucide-react@0.438.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/dot.js
7212
+ // ../../node_modules/.pnpm/lucide-react@0.468.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/dot.js
7206
7213
  var Dot = createLucideIcon("Dot", [
7207
7214
  ["circle", { cx: "12.1", cy: "12.1", r: "1", key: "18d7e5" }]
7208
7215
  ]);
@@ -9071,7 +9078,6 @@ var AppLayout = ({
9071
9078
  width: profileMenuWidth,
9072
9079
  direction,
9073
9080
  items: finalProfileMenuItems || [],
9074
- onItemSelect: (e) => console.log("selecting item ", e),
9075
9081
  trigger: /* @__PURE__ */ React75.createElement(
9076
9082
  "div",
9077
9083
  {
@@ -9340,7 +9346,6 @@ var AppTopbar = ({ ...props }) => {
9340
9346
  sideOffset: 5,
9341
9347
  direction: isRTL ? "rtl" : "ltr",
9342
9348
  items: props.profileMenuItems || [],
9343
- onItemSelect: (e) => console.log("selecting item ", e),
9344
9349
  trigger: /* @__PURE__ */ React76.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__ */ React76.createElement("img", { src: props.avatarImage, alt: "User Avatar" }) : /* @__PURE__ */ React76.createElement(
9345
9350
  "svg",
9346
9351
  {
@@ -9723,7 +9728,7 @@ var DocsLayout = ({
9723
9728
  // Adjust threshold as needed to determine when a section is in view
9724
9729
  });
9725
9730
  React80.Children.forEach(props.children, (child) => {
9726
- if (child && child.props.id) {
9731
+ if (child && child.props && child.props.id) {
9727
9732
  const element = document.getElementById(child.props.id);
9728
9733
  if (element && observerRef.current) {
9729
9734
  observerRef.current.observe(element);
@@ -10406,7 +10411,6 @@ var RegisterForm = ({
10406
10411
  resolver: zodResolver2(finalSchema)
10407
10412
  });
10408
10413
  const onSubmit = (data) => {
10409
- console.log("Form submitted with data:", data);
10410
10414
  if (props.onRegister) {
10411
10415
  props.onRegister(data);
10412
10416
  } else {
@@ -11938,7 +11942,6 @@ var ContactForm = ({
11938
11942
  )
11939
11943
  ),
11940
11944
  customFields && customFields.map((customField) => {
11941
- console.log("custom", customField);
11942
11945
  return /* @__PURE__ */ React100.createElement(
11943
11946
  Controller9,
11944
11947
  {
@@ -12864,7 +12867,7 @@ export {
12864
12867
 
12865
12868
  lucide-react/dist/esm/shared/src/utils.js:
12866
12869
  (**
12867
- * @license lucide-react v0.438.0 - ISC
12870
+ * @license lucide-react v0.468.0 - ISC
12868
12871
  *
12869
12872
  * This source code is licensed under the ISC license.
12870
12873
  * See the LICENSE file in the root directory of this source tree.
@@ -12872,7 +12875,7 @@ lucide-react/dist/esm/shared/src/utils.js:
12872
12875
 
12873
12876
  lucide-react/dist/esm/defaultAttributes.js:
12874
12877
  (**
12875
- * @license lucide-react v0.438.0 - ISC
12878
+ * @license lucide-react v0.468.0 - ISC
12876
12879
  *
12877
12880
  * This source code is licensed under the ISC license.
12878
12881
  * See the LICENSE file in the root directory of this source tree.
@@ -12880,7 +12883,7 @@ lucide-react/dist/esm/defaultAttributes.js:
12880
12883
 
12881
12884
  lucide-react/dist/esm/Icon.js:
12882
12885
  (**
12883
- * @license lucide-react v0.438.0 - ISC
12886
+ * @license lucide-react v0.468.0 - ISC
12884
12887
  *
12885
12888
  * This source code is licensed under the ISC license.
12886
12889
  * See the LICENSE file in the root directory of this source tree.
@@ -12888,7 +12891,7 @@ lucide-react/dist/esm/Icon.js:
12888
12891
 
12889
12892
  lucide-react/dist/esm/createLucideIcon.js:
12890
12893
  (**
12891
- * @license lucide-react v0.438.0 - ISC
12894
+ * @license lucide-react v0.468.0 - ISC
12892
12895
  *
12893
12896
  * This source code is licensed under the ISC license.
12894
12897
  * See the LICENSE file in the root directory of this source tree.
@@ -12896,7 +12899,7 @@ lucide-react/dist/esm/createLucideIcon.js:
12896
12899
 
12897
12900
  lucide-react/dist/esm/icons/dot.js:
12898
12901
  (**
12899
- * @license lucide-react v0.438.0 - ISC
12902
+ * @license lucide-react v0.468.0 - ISC
12900
12903
  *
12901
12904
  * This source code is licensed under the ISC license.
12902
12905
  * See the LICENSE file in the root directory of this source tree.
@@ -12904,7 +12907,7 @@ lucide-react/dist/esm/icons/dot.js:
12904
12907
 
12905
12908
  lucide-react/dist/esm/lucide-react.js:
12906
12909
  (**
12907
- * @license lucide-react v0.438.0 - ISC
12910
+ * @license lucide-react v0.468.0 - ISC
12908
12911
  *
12909
12912
  * This source code is licensed under the ISC license.
12910
12913
  * See the LICENSE file in the root directory of this source tree.
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import React__default, { FC } from 'react';
3
3
  import { D as DirectionType } from '../commonTypes-C-g8nFFC.mjs';
4
- import { C as ChipColors } from '../Chip-KG1_ZmCL.mjs';
4
+ import { C as ChipColors } from '../Chip-BRMzT5TB.mjs';
5
5
  import { M as MenuItemType } from '../DropdownMenu-mK9EvfKp.mjs';
6
6
  import * as MenubarPrimitive from '@radix-ui/react-menubar';
7
7
  import '@radix-ui/react-dropdown-menu';
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import React__default, { FC } from 'react';
3
3
  import { D as DirectionType } from '../commonTypes-C-g8nFFC.js';
4
- import { C as ChipColors } from '../Chip-Cw1twk4G.js';
4
+ import { C as ChipColors } from '../Chip-D58g8OJ_.js';
5
5
  import { M as MenuItemType } from '../DropdownMenu-CDnFCzfc.js';
6
6
  import * as MenubarPrimitive from '@radix-ui/react-menubar';
7
7
  import '@radix-ui/react-dropdown-menu';
@@ -592,7 +592,7 @@ var import_react14 = __toESM(require("react"));
592
592
  var import_react6 = require("react");
593
593
  var DEFAULT_EVENTS = ["mousedown", "touchstart"];
594
594
  function useClickOutside(handler, events, nodes) {
595
- const ref = (0, import_react6.useRef)();
595
+ const ref = (0, import_react6.useRef)(null);
596
596
  (0, import_react6.useEffect)(() => {
597
597
  const listener = (event) => {
598
598
  const { target } = event != null ? event : {};
@@ -1285,7 +1285,6 @@ var DropdownMenu = ({
1285
1285
  let newValues = [...values];
1286
1286
  newValues[index] = e;
1287
1287
  setValues(newValues);
1288
- console.log("changing to ", e);
1289
1288
  if (item.onOptionChange) {
1290
1289
  item.onOptionChange(e);
1291
1290
  }
@@ -1564,7 +1563,6 @@ var AppLayout = ({
1564
1563
  width: profileMenuWidth,
1565
1564
  direction,
1566
1565
  items: finalProfileMenuItems || [],
1567
- onItemSelect: (e) => console.log("selecting item ", e),
1568
1566
  trigger: /* @__PURE__ */ import_react14.default.createElement(
1569
1567
  "div",
1570
1568
  {
@@ -1833,7 +1831,6 @@ var AppTopbar = ({ ...props }) => {
1833
1831
  sideOffset: 5,
1834
1832
  direction: isRTL ? "rtl" : "ltr",
1835
1833
  items: props.profileMenuItems || [],
1836
- onItemSelect: (e) => console.log("selecting item ", e),
1837
1834
  trigger: /* @__PURE__ */ import_react15.default.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__ */ import_react15.default.createElement("img", { src: props.avatarImage, alt: "User Avatar" }) : /* @__PURE__ */ import_react15.default.createElement(
1838
1835
  "svg",
1839
1836
  {
@@ -2751,7 +2748,7 @@ var DocsLayout = ({
2751
2748
  // Adjust threshold as needed to determine when a section is in view
2752
2749
  });
2753
2750
  import_react20.default.Children.forEach(props.children, (child) => {
2754
- if (child && child.props.id) {
2751
+ if (child && child.props && child.props.id) {
2755
2752
  const element = document.getElementById(child.props.id);
2756
2753
  if (element && observerRef.current) {
2757
2754
  observerRef.current.observe(element);
@@ -3,7 +3,7 @@ import {
3
3
  Sheet,
4
4
  SheetContent,
5
5
  SheetTrigger
6
- } from "../chunk-3CHFVHTW.mjs";
6
+ } from "../chunk-QQ7C5DWR.mjs";
7
7
  import {
8
8
  Button,
9
9
  Card,
@@ -16,11 +16,11 @@ import {
16
16
  Skeleton,
17
17
  Tooltip,
18
18
  cn
19
- } from "../chunk-KDGJZPWK.mjs";
19
+ } from "../chunk-YGLAEAJY.mjs";
20
20
  import {
21
21
  useBreakpoint,
22
22
  useClickOutside
23
- } from "../chunk-5SQBJRWE.mjs";
23
+ } from "../chunk-OWMN44TT.mjs";
24
24
 
25
25
  // layout/stats/Stats.tsx
26
26
  import React from "react";
@@ -516,7 +516,6 @@ var AppLayout = ({
516
516
  width: profileMenuWidth,
517
517
  direction,
518
518
  items: finalProfileMenuItems || [],
519
- onItemSelect: (e) => console.log("selecting item ", e),
520
519
  trigger: /* @__PURE__ */ React5.createElement(
521
520
  "div",
522
521
  {
@@ -785,7 +784,6 @@ var AppTopbar = ({ ...props }) => {
785
784
  sideOffset: 5,
786
785
  direction: isRTL ? "rtl" : "ltr",
787
786
  items: props.profileMenuItems || [],
788
- onItemSelect: (e) => console.log("selecting item ", e),
789
787
  trigger: /* @__PURE__ */ React6.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__ */ React6.createElement("img", { src: props.avatarImage, alt: "User Avatar" }) : /* @__PURE__ */ React6.createElement(
790
788
  "svg",
791
789
  {
@@ -1168,7 +1166,7 @@ var DocsLayout = ({
1168
1166
  // Adjust threshold as needed to determine when a section is in view
1169
1167
  });
1170
1168
  React10.Children.forEach(props.children, (child) => {
1171
- if (child && child.props.id) {
1169
+ if (child && child.props && child.props.id) {
1172
1170
  const element = document.getElementById(child.props.id);
1173
1171
  if (element && observerRef.current) {
1174
1172
  observerRef.current.observe(element);