@sikka/hawa 0.35.5-next → 0.35.6-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.js CHANGED
@@ -232,6 +232,7 @@ __export(components_exports, {
232
232
  reducer: () => reducer,
233
233
  toast: () => toast,
234
234
  useBreakpoint: () => useBreakpoint,
235
+ useClickOutside: () => useClickOutside,
235
236
  useClipboard: () => useClipboard,
236
237
  useDialogCarousel: () => useDialogCarousel,
237
238
  useFocusWithin: () => useFocusWithin,
@@ -4277,7 +4278,7 @@ var SortButton = (props) => {
4277
4278
  };
4278
4279
 
4279
4280
  // elements/tabs/Tabs.tsx
4280
- var React42 = __toESM(require("react"));
4281
+ var React41 = __toESM(require("react"));
4281
4282
 
4282
4283
  // hooks/useIsomorphicEffect.ts
4283
4284
  var import_react16 = require("react");
@@ -4693,33 +4694,42 @@ var useMeasureDirty = (ref) => {
4693
4694
  return rect;
4694
4695
  };
4695
4696
 
4696
- // hooks/useOutsideClick.ts
4697
- var import_react31 = __toESM(require("react"));
4698
- var useOutsideClick = (callback) => {
4699
- const ref = import_react31.default.useRef(null);
4700
- import_react31.default.useEffect(() => {
4701
- const handleClickOutside = (event) => {
4702
- if (ref.current && !ref.current.contains(event.target)) {
4703
- callback();
4697
+ // hooks/useClickOutside.ts
4698
+ var import_react31 = require("react");
4699
+ var DEFAULT_EVENTS = ["mousedown", "touchstart"];
4700
+ function useClickOutside(handler, events, nodes) {
4701
+ const ref = (0, import_react31.useRef)();
4702
+ (0, import_react31.useEffect)(() => {
4703
+ const listener = (event) => {
4704
+ const { target } = event != null ? event : {};
4705
+ if (Array.isArray(nodes)) {
4706
+ const shouldIgnore = (target == null ? void 0 : target.hasAttribute("data-ignore-outside-clicks")) || !document.body.contains(target) && target.tagName !== "HTML";
4707
+ const shouldTrigger = nodes.every(
4708
+ (node) => !!node && !event.composedPath().includes(node)
4709
+ );
4710
+ shouldTrigger && !shouldIgnore && handler();
4711
+ } else if (ref.current && !ref.current.contains(target)) {
4712
+ handler();
4704
4713
  }
4705
4714
  };
4706
- document.addEventListener("mousedown", handleClickOutside, true);
4707
- document.addEventListener("touchstart", handleClickOutside, true);
4715
+ (events || DEFAULT_EVENTS).forEach(
4716
+ (fn) => document.addEventListener(fn, listener)
4717
+ );
4708
4718
  return () => {
4709
- document.removeEventListener("mousedown", handleClickOutside, true);
4710
- document.removeEventListener("touchstart", handleClickOutside, true);
4719
+ (events || DEFAULT_EVENTS).forEach(
4720
+ (fn) => document.removeEventListener(fn, listener)
4721
+ );
4711
4722
  };
4712
- }, [ref, callback]);
4723
+ }, [ref, handler, nodes]);
4713
4724
  return ref;
4714
- };
4715
- var useOutsideClick_default = useOutsideClick;
4725
+ }
4716
4726
 
4717
4727
  // elements/tabs/Tabs.tsx
4718
4728
  var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"));
4719
4729
  var import_tailwind_variants = require("tailwind-variants");
4720
4730
 
4721
4731
  // elements/floatBox/FloatBox.tsx
4722
- var React41 = __toESM(require("react"));
4732
+ var React40 = __toESM(require("react"));
4723
4733
  var FloatBox = ({
4724
4734
  className,
4725
4735
  open,
@@ -4757,7 +4767,7 @@ var FloatBox = ({
4757
4767
  right: "hawa-arrow-default-left",
4758
4768
  left: "hawa-arrow-default-right"
4759
4769
  };
4760
- return /* @__PURE__ */ React41.createElement(
4770
+ return /* @__PURE__ */ React40.createElement(
4761
4771
  "div",
4762
4772
  {
4763
4773
  className: cn(
@@ -4768,8 +4778,8 @@ var FloatBox = ({
4768
4778
  "data-side": side,
4769
4779
  "data-floatbox-state": open ? "open" : "closed"
4770
4780
  },
4771
- withArrow && /* @__PURE__ */ React41.createElement("div", { className: cn(arrowDirection[side]) }),
4772
- /* @__PURE__ */ React41.createElement("span", null, props.children)
4781
+ withArrow && /* @__PURE__ */ React40.createElement("div", { className: cn(arrowDirection[side]) }),
4782
+ /* @__PURE__ */ React40.createElement("span", null, props.children)
4773
4783
  );
4774
4784
  };
4775
4785
 
@@ -4832,8 +4842,8 @@ var tabsTriggerVariant = (0, import_tailwind_variants.tv)({
4832
4842
  ],
4833
4843
  defaultVariants: { variant: "default", orientation: "horizontal" }
4834
4844
  });
4835
- var TabsContext = React42.createContext({ orientation: "horizontal", variant: "default" });
4836
- var Tabs = React42.forwardRef(({ className, orientation, variant = "default", ...props }, ref) => /* @__PURE__ */ React42.createElement(
4845
+ var TabsContext = React41.createContext({ orientation: "horizontal", variant: "default" });
4846
+ var Tabs = React41.forwardRef(({ className, orientation, variant = "default", ...props }, ref) => /* @__PURE__ */ React41.createElement(
4837
4847
  TabsPrimitive.Root,
4838
4848
  {
4839
4849
  ref,
@@ -4844,11 +4854,11 @@ var Tabs = React42.forwardRef(({ className, orientation, variant = "default", ..
4844
4854
  ),
4845
4855
  ...props
4846
4856
  },
4847
- /* @__PURE__ */ React42.createElement(TabsContext.Provider, { value: { orientation, variant } }, props.children)
4857
+ /* @__PURE__ */ React41.createElement(TabsContext.Provider, { value: { orientation, variant } }, props.children)
4848
4858
  ));
4849
- var TabsList = React42.forwardRef(({ className, ...props }, ref) => {
4850
- const { orientation, variant } = React42.useContext(TabsContext);
4851
- return /* @__PURE__ */ React42.createElement(
4859
+ var TabsList = React41.forwardRef(({ className, ...props }, ref) => {
4860
+ const { orientation, variant } = React41.useContext(TabsContext);
4861
+ return /* @__PURE__ */ React41.createElement(
4852
4862
  TabsPrimitive.List,
4853
4863
  {
4854
4864
  ref,
@@ -4861,11 +4871,11 @@ var TabsList = React42.forwardRef(({ className, ...props }, ref) => {
4861
4871
  }
4862
4872
  );
4863
4873
  });
4864
- var TabsTrigger = React42.forwardRef(({ className, chipProps, ...props }, ref) => {
4865
- const { orientation, variant } = React42.useContext(TabsContext);
4866
- const tabTriggerRef = React42.useRef(null);
4874
+ var TabsTrigger = React41.forwardRef(({ className, chipProps, ...props }, ref) => {
4875
+ const { orientation, variant } = React41.useContext(TabsContext);
4876
+ const tabTriggerRef = React41.useRef(null);
4867
4877
  const { width } = useMeasureDirty(tabTriggerRef);
4868
- return /* @__PURE__ */ React42.createElement(
4878
+ return /* @__PURE__ */ React41.createElement(
4869
4879
  TabsPrimitive.Trigger,
4870
4880
  {
4871
4881
  ref: tabTriggerRef,
@@ -4877,8 +4887,8 @@ var TabsTrigger = React42.forwardRef(({ className, chipProps, ...props }, ref) =
4877
4887
  ...props
4878
4888
  },
4879
4889
  props.children,
4880
- chipProps && /* @__PURE__ */ React42.createElement(Chip, { ...chipProps }),
4881
- /* @__PURE__ */ React42.createElement(
4890
+ chipProps && /* @__PURE__ */ React41.createElement(Chip, { ...chipProps }),
4891
+ /* @__PURE__ */ React41.createElement(
4882
4892
  FloatBox,
4883
4893
  {
4884
4894
  withArrow: true,
@@ -4891,7 +4901,7 @@ var TabsTrigger = React42.forwardRef(({ className, chipProps, ...props }, ref) =
4891
4901
  )
4892
4902
  );
4893
4903
  });
4894
- var TabsContent = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React42.createElement(
4904
+ var TabsContent = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React41.createElement(
4895
4905
  TabsPrimitive.Content,
4896
4906
  {
4897
4907
  ref,
@@ -5096,15 +5106,15 @@ var Select = ({
5096
5106
  };
5097
5107
 
5098
5108
  // elements/switch/Switch.tsx
5099
- var React44 = __toESM(require("react"));
5109
+ var React43 = __toESM(require("react"));
5100
5110
  var SwitchPrimitives = __toESM(require("@radix-ui/react-switch"));
5101
- var Switch = React44.forwardRef(
5111
+ var Switch = React43.forwardRef(
5102
5112
  ({ className, size = "default", roundedness = "inherit", label, ...props }, ref) => {
5103
- const [parentDirection, setParentDirection] = React44.useState(
5113
+ const [parentDirection, setParentDirection] = React43.useState(
5104
5114
  null
5105
5115
  );
5106
- const parentRef = React44.useRef(null);
5107
- React44.useEffect(() => {
5116
+ const parentRef = React43.useRef(null);
5117
+ React43.useEffect(() => {
5108
5118
  var _a;
5109
5119
  const parentNode = (_a = parentRef.current) == null ? void 0 : _a.parentNode;
5110
5120
  if (parentNode) {
@@ -5132,13 +5142,13 @@ var Switch = React44.forwardRef(
5132
5142
  full: "hawa-rounded-full",
5133
5143
  inherit: "hawa-rounded-inner"
5134
5144
  };
5135
- return /* @__PURE__ */ React44.createElement(
5145
+ return /* @__PURE__ */ React43.createElement(
5136
5146
  "div",
5137
5147
  {
5138
5148
  className: "hawa-flex hawa-flex-row hawa-items-center",
5139
5149
  ref: parentRef
5140
5150
  },
5141
- /* @__PURE__ */ React44.createElement(
5151
+ /* @__PURE__ */ React43.createElement(
5142
5152
  SwitchPrimitives.Root,
5143
5153
  {
5144
5154
  className: cn(
@@ -5152,7 +5162,7 @@ var Switch = React44.forwardRef(
5152
5162
  ...props,
5153
5163
  ref
5154
5164
  },
5155
- /* @__PURE__ */ React44.createElement(
5165
+ /* @__PURE__ */ React43.createElement(
5156
5166
  SwitchPrimitives.Thumb,
5157
5167
  {
5158
5168
  className: cn(
@@ -5166,14 +5176,14 @@ var Switch = React44.forwardRef(
5166
5176
  }
5167
5177
  )
5168
5178
  ),
5169
- label && /* @__PURE__ */ React44.createElement("span", { className: "hawa-mx-2 hawa-text-sm hawa-font-medium hawa-text-gray-900 dark:hawa-text-gray-300" }, label)
5179
+ label && /* @__PURE__ */ React43.createElement("span", { className: "hawa-mx-2 hawa-text-sm hawa-font-medium hawa-text-gray-900 dark:hawa-text-gray-300" }, label)
5170
5180
  );
5171
5181
  }
5172
5182
  );
5173
5183
  Switch.displayName = SwitchPrimitives.Root.displayName;
5174
5184
 
5175
5185
  // elements/checkbox/Checkbox.tsx
5176
- var React45 = __toESM(require("react"));
5186
+ var React44 = __toESM(require("react"));
5177
5187
  var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"));
5178
5188
  var Checkbox = ({
5179
5189
  id,
@@ -5193,7 +5203,7 @@ var Checkbox = ({
5193
5203
  lg: 0.9,
5194
5204
  xl: 1
5195
5205
  };
5196
- return /* @__PURE__ */ React45.createElement(
5206
+ return /* @__PURE__ */ React44.createElement(
5197
5207
  "div",
5198
5208
  {
5199
5209
  className: cn(
@@ -5201,7 +5211,7 @@ var Checkbox = ({
5201
5211
  size === "default" ? "hawa-items-top" : "hawa-items-center"
5202
5212
  )
5203
5213
  },
5204
- /* @__PURE__ */ React45.createElement(
5214
+ /* @__PURE__ */ React44.createElement(
5205
5215
  CheckboxElement,
5206
5216
  {
5207
5217
  ...props,
@@ -5211,7 +5221,7 @@ var Checkbox = ({
5211
5221
  id
5212
5222
  }
5213
5223
  ),
5214
- (label || helperText) && /* @__PURE__ */ React45.createElement("div", { className: "hawa-grid hawa-gap-1.5" }, label && /* @__PURE__ */ React45.createElement(
5224
+ (label || helperText) && /* @__PURE__ */ React44.createElement("div", { className: "hawa-grid hawa-gap-1.5" }, label && /* @__PURE__ */ React44.createElement(
5215
5225
  "label",
5216
5226
  {
5217
5227
  htmlFor: id,
@@ -5225,7 +5235,7 @@ var Checkbox = ({
5225
5235
  }
5226
5236
  },
5227
5237
  label
5228
- ), sublabel && /* @__PURE__ */ React45.createElement(
5238
+ ), sublabel && /* @__PURE__ */ React44.createElement(
5229
5239
  "label",
5230
5240
  {
5231
5241
  htmlFor: id,
@@ -5235,7 +5245,7 @@ var Checkbox = ({
5235
5245
  )
5236
5246
  },
5237
5247
  sublabel
5238
- ), helperText && !disabled && /* @__PURE__ */ React45.createElement(
5248
+ ), helperText && !disabled && /* @__PURE__ */ React44.createElement(
5239
5249
  "label",
5240
5250
  {
5241
5251
  htmlFor: id,
@@ -5248,7 +5258,7 @@ var Checkbox = ({
5248
5258
  ))
5249
5259
  );
5250
5260
  };
5251
- var CheckboxElement = React45.forwardRef(({ radius = "inherit", size = "default", className, ...props }, ref) => {
5261
+ var CheckboxElement = React44.forwardRef(({ radius = "inherit", size = "default", className, ...props }, ref) => {
5252
5262
  let checkboxRadius = {
5253
5263
  none: "hawa-rounded-none",
5254
5264
  inherit: "hawa-rounded-sm",
@@ -5270,7 +5280,7 @@ var CheckboxElement = React45.forwardRef(({ radius = "inherit", size = "default"
5270
5280
  lg: "1em",
5271
5281
  xl: "1.25em"
5272
5282
  };
5273
- return /* @__PURE__ */ React45.createElement(
5283
+ return /* @__PURE__ */ React44.createElement(
5274
5284
  CheckboxPrimitive.Root,
5275
5285
  {
5276
5286
  ref,
@@ -5282,14 +5292,14 @@ var CheckboxElement = React45.forwardRef(({ radius = "inherit", size = "default"
5282
5292
  ),
5283
5293
  ...props
5284
5294
  },
5285
- /* @__PURE__ */ React45.createElement(
5295
+ /* @__PURE__ */ React44.createElement(
5286
5296
  CheckboxPrimitive.Indicator,
5287
5297
  {
5288
5298
  className: cn(
5289
5299
  "hawa-flex hawa-items-center hawa-justify-center hawa-text-current"
5290
5300
  )
5291
5301
  },
5292
- /* @__PURE__ */ React45.createElement(
5302
+ /* @__PURE__ */ React44.createElement(
5293
5303
  "svg",
5294
5304
  {
5295
5305
  "aria-label": "Check Mark",
@@ -5300,7 +5310,7 @@ var CheckboxElement = React45.forwardRef(({ radius = "inherit", size = "default"
5300
5310
  height: checkboxIndicatorSizes[size],
5301
5311
  width: checkboxIndicatorSizes[size]
5302
5312
  },
5303
- /* @__PURE__ */ React45.createElement("path", { d: "M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" })
5313
+ /* @__PURE__ */ React44.createElement("path", { d: "M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" })
5304
5314
  ),
5305
5315
  " "
5306
5316
  )
@@ -5309,9 +5319,9 @@ var CheckboxElement = React45.forwardRef(({ radius = "inherit", size = "default"
5309
5319
  CheckboxElement.displayName = CheckboxPrimitive.Root.displayName;
5310
5320
 
5311
5321
  // elements/progress/Progress.tsx
5312
- var React46 = __toESM(require("react"));
5322
+ var React45 = __toESM(require("react"));
5313
5323
  var ProgressPrimitive = __toESM(require("@radix-ui/react-progress"));
5314
- var Progress = React46.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ React46.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ React46.createElement(Label2, { ...props.labelProps }, props.label), /* @__PURE__ */ React46.createElement(
5324
+ var Progress = React45.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ React45.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ React45.createElement(Label2, { ...props.labelProps }, props.label), /* @__PURE__ */ React45.createElement(
5315
5325
  ProgressPrimitive.Root,
5316
5326
  {
5317
5327
  ref,
@@ -5321,7 +5331,7 @@ var Progress = React46.forwardRef(({ className, value, ...props }, ref) => /* @_
5321
5331
  ),
5322
5332
  ...props
5323
5333
  },
5324
- /* @__PURE__ */ React46.createElement(
5334
+ /* @__PURE__ */ React45.createElement(
5325
5335
  ProgressPrimitive.Indicator,
5326
5336
  {
5327
5337
  className: "hawa-h-full hawa-w-full hawa-flex-1 hawa-bg-primary hawa-transition-all",
@@ -7337,21 +7347,21 @@ var StopPropagationWrapper = (props) => {
7337
7347
  };
7338
7348
 
7339
7349
  // elements/scrollArea/ScrollArea.tsx
7340
- var React53 = __toESM(require("react"));
7350
+ var React52 = __toESM(require("react"));
7341
7351
  var ScrollAreaPrimitive = __toESM(require("@radix-ui/react-scroll-area"));
7342
- var ScrollArea = React53.forwardRef(({ className, children, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React53.createElement(
7352
+ var ScrollArea = React52.forwardRef(({ className, children, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React52.createElement(
7343
7353
  ScrollAreaPrimitive.Root,
7344
7354
  {
7345
7355
  ref,
7346
7356
  className: cn("hawa-relative hawa-overflow-hidden", className),
7347
7357
  ...props
7348
7358
  },
7349
- /* @__PURE__ */ React53.createElement(ScrollAreaPrimitive.Viewport, { className: "hawa-h-full hawa-w-full hawa-rounded-[inherit]" }, children),
7350
- /* @__PURE__ */ React53.createElement(ScrollBar, { orientation }),
7351
- /* @__PURE__ */ React53.createElement(ScrollAreaPrimitive.Corner, null)
7359
+ /* @__PURE__ */ React52.createElement(ScrollAreaPrimitive.Viewport, { className: "hawa-h-full hawa-w-full hawa-rounded-[inherit]" }, children),
7360
+ /* @__PURE__ */ React52.createElement(ScrollBar, { orientation }),
7361
+ /* @__PURE__ */ React52.createElement(ScrollAreaPrimitive.Corner, null)
7352
7362
  ));
7353
7363
  ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
7354
- var ScrollBar = React53.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React53.createElement(
7364
+ var ScrollBar = React52.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React52.createElement(
7355
7365
  ScrollAreaPrimitive.ScrollAreaScrollbar,
7356
7366
  {
7357
7367
  ref,
@@ -7364,7 +7374,7 @@ var ScrollBar = React53.forwardRef(({ className, orientation = "vertical", ...pr
7364
7374
  ),
7365
7375
  ...props
7366
7376
  },
7367
- /* @__PURE__ */ React53.createElement(
7377
+ /* @__PURE__ */ React52.createElement(
7368
7378
  ScrollAreaPrimitive.ScrollAreaThumb,
7369
7379
  {
7370
7380
  className: cn(
@@ -7847,6 +7857,27 @@ var UncheckMark = ({ size = "default", className }) => {
7847
7857
  )
7848
7858
  );
7849
7859
  };
7860
+ var MenuIcon = () => /* @__PURE__ */ import_react44.default.createElement(
7861
+ "svg",
7862
+ {
7863
+ "aria-label": "Menu Button",
7864
+ stroke: "currentColor",
7865
+ fill: "currentColor",
7866
+ strokeWidth: 0,
7867
+ viewBox: "0 0 20 20",
7868
+ "aria-hidden": "true",
7869
+ height: "1.6em",
7870
+ width: "1.6em"
7871
+ },
7872
+ /* @__PURE__ */ import_react44.default.createElement(
7873
+ "path",
7874
+ {
7875
+ fillRule: "evenodd",
7876
+ clipRule: "evenodd",
7877
+ 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"
7878
+ }
7879
+ )
7880
+ );
7850
7881
 
7851
7882
  // elements/passwordInput/PasswordInput.tsx
7852
7883
  var PasswordStrengthIndicator = ({ strength }) => {
@@ -7982,9 +8013,9 @@ var PasswordInput = ({
7982
8013
  };
7983
8014
 
7984
8015
  // elements/slider/Slider.tsx
7985
- var React61 = __toESM(require("react"));
8016
+ var React60 = __toESM(require("react"));
7986
8017
  var SliderPrimitive = __toESM(require("@radix-ui/react-slider"));
7987
- var Slider = React61.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React61.createElement(
8018
+ var Slider = React60.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React60.createElement(
7988
8019
  SliderPrimitive.Root,
7989
8020
  {
7990
8021
  ref,
@@ -7994,13 +8025,13 @@ var Slider = React61.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
7994
8025
  ),
7995
8026
  ...props
7996
8027
  },
7997
- /* @__PURE__ */ React61.createElement(SliderPrimitive.Track, { className: "hawa-relative hawa-h-2 hawa-w-full hawa-grow hawa-overflow-hidden hawa-rounded-full hawa-border hawa-bg-background" }, /* @__PURE__ */ React61.createElement(SliderPrimitive.Range, { className: "hawa-absolute hawa-h-full hawa-bg-primary" })),
7998
- /* @__PURE__ */ React61.createElement(SliderPrimitive.Thumb, { className: "hawa-block hawa-h-5 hawa-w-5 hawa-rounded-full hawa-border-2 hawa-border-primary hawa-bg-background hawa-ring-offset-background hawa-transition-colors focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2 disabled:hawa-pointer-events-none disabled:hawa-opacity-50" })
8028
+ /* @__PURE__ */ React60.createElement(SliderPrimitive.Track, { className: "hawa-relative hawa-h-2 hawa-w-full hawa-grow hawa-overflow-hidden hawa-rounded-full hawa-border hawa-bg-background" }, /* @__PURE__ */ React60.createElement(SliderPrimitive.Range, { className: "hawa-absolute hawa-h-full hawa-bg-primary" })),
8029
+ /* @__PURE__ */ React60.createElement(SliderPrimitive.Thumb, { className: "hawa-block hawa-h-5 hawa-w-5 hawa-rounded-full hawa-border-2 hawa-border-primary hawa-bg-background hawa-ring-offset-background hawa-transition-colors focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2 disabled:hawa-pointer-events-none disabled:hawa-opacity-50" })
7999
8030
  ));
8000
8031
  Slider.displayName = SliderPrimitive.Root.displayName;
8001
8032
 
8002
8033
  // elements/simpleTable/SimpleTable.tsx
8003
- var React62 = __toESM(require("react"));
8034
+ var React61 = __toESM(require("react"));
8004
8035
  var import_react_table2 = require("@tanstack/react-table");
8005
8036
  var SimpleTable = ({
8006
8037
  columns,
@@ -8015,7 +8046,7 @@ var SimpleTable = ({
8015
8046
  columns,
8016
8047
  getCoreRowModel: (0, import_react_table2.getCoreRowModel)()
8017
8048
  });
8018
- return /* @__PURE__ */ React62.createElement(
8049
+ return /* @__PURE__ */ React61.createElement(
8019
8050
  "div",
8020
8051
  {
8021
8052
  className: cn(
@@ -8023,8 +8054,8 @@ var SimpleTable = ({
8023
8054
  classNames
8024
8055
  )
8025
8056
  },
8026
- props.isLoading ? /* @__PURE__ */ React62.createElement(Skeleton, { className: "h-[130px] w-full" }) : /* @__PURE__ */ React62.createElement("div", { className: "hawa-rounded" }, /* @__PURE__ */ React62.createElement(Table, null, !headerless && table.getAllColumns().length > 0 && /* @__PURE__ */ React62.createElement(TableHeader, null, table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ React62.createElement(TableRow, { key: headerGroup.id }, headerGroup.headers.map((header) => {
8027
- return /* @__PURE__ */ React62.createElement(
8057
+ props.isLoading ? /* @__PURE__ */ React61.createElement(Skeleton, { className: "h-[130px] w-full" }) : /* @__PURE__ */ React61.createElement("div", { className: "hawa-rounded" }, /* @__PURE__ */ React61.createElement(Table, null, !headerless && table.getAllColumns().length > 0 && /* @__PURE__ */ React61.createElement(TableHeader, null, table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ React61.createElement(TableRow, { key: headerGroup.id }, headerGroup.headers.map((header) => {
8058
+ return /* @__PURE__ */ React61.createElement(
8028
8059
  TableHead,
8029
8060
  {
8030
8061
  condensed: props.condensed,
@@ -8039,7 +8070,7 @@ var SimpleTable = ({
8039
8070
  header.getContext()
8040
8071
  )
8041
8072
  );
8042
- })))), /* @__PURE__ */ React62.createElement(TableBody, null, ((_a = table.getRowModel().rows) == null ? void 0 : _a.length) ? table.getRowModel().rows.map((row) => /* @__PURE__ */ React62.createElement(
8073
+ })))), /* @__PURE__ */ React61.createElement(TableBody, null, ((_a = table.getRowModel().rows) == null ? void 0 : _a.length) ? table.getRowModel().rows.map((row) => /* @__PURE__ */ React61.createElement(
8043
8074
  TableRow,
8044
8075
  {
8045
8076
  key: row.id,
@@ -8047,7 +8078,7 @@ var SimpleTable = ({
8047
8078
  },
8048
8079
  row.getVisibleCells().map((cell) => {
8049
8080
  var _a2;
8050
- return /* @__PURE__ */ React62.createElement(
8081
+ return /* @__PURE__ */ React61.createElement(
8051
8082
  TableCell,
8052
8083
  {
8053
8084
  dir: props.direction,
@@ -8063,7 +8094,7 @@ var SimpleTable = ({
8063
8094
  )
8064
8095
  );
8065
8096
  })
8066
- )) : /* @__PURE__ */ React62.createElement(TableRow, null, /* @__PURE__ */ React62.createElement(
8097
+ )) : /* @__PURE__ */ React61.createElement(TableRow, null, /* @__PURE__ */ React61.createElement(
8067
8098
  TableCell,
8068
8099
  {
8069
8100
  colSpan: columns.length,
@@ -8075,12 +8106,12 @@ var SimpleTable = ({
8075
8106
  };
8076
8107
 
8077
8108
  // elements/separator/Separator.tsx
8078
- var React63 = __toESM(require("react"));
8109
+ var React62 = __toESM(require("react"));
8079
8110
  var Separator2 = ({
8080
8111
  className,
8081
8112
  orientation = "horizontal",
8082
8113
  ...props
8083
- }) => /* @__PURE__ */ React63.createElement(
8114
+ }) => /* @__PURE__ */ React62.createElement(
8084
8115
  "div",
8085
8116
  {
8086
8117
  className: cn(
@@ -8445,7 +8476,7 @@ var Count = (props) => {
8445
8476
  };
8446
8477
 
8447
8478
  // elements/toast/Toast.tsx
8448
- var React68 = __toESM(require("react"));
8479
+ var React67 = __toESM(require("react"));
8449
8480
  var ToastPrimitives = __toESM(require("@radix-ui/react-toast"));
8450
8481
  var import_class_variance_authority4 = require("class-variance-authority");
8451
8482
  var toastVariants = (0, import_class_variance_authority4.cva)(
@@ -8473,7 +8504,7 @@ var sizeStyles = {
8473
8504
  sm: "hawa-text-xs"
8474
8505
  };
8475
8506
  var ToastProvider = ToastPrimitives.Provider;
8476
- var ToastViewport = React68.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React68.createElement(
8507
+ var ToastViewport = React67.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React67.createElement(
8477
8508
  ToastPrimitives.Viewport,
8478
8509
  {
8479
8510
  ref,
@@ -8485,8 +8516,8 @@ var ToastViewport = React68.forwardRef(({ className, ...props }, ref) => /* @__P
8485
8516
  }
8486
8517
  ));
8487
8518
  ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
8488
- var Toast = React68.forwardRef(({ className, variant, severity = "none", direction, ...props }, ref) => {
8489
- return /* @__PURE__ */ React68.createElement(
8519
+ var Toast = React67.forwardRef(({ className, variant, severity = "none", direction, ...props }, ref) => {
8520
+ return /* @__PURE__ */ React67.createElement(
8490
8521
  ToastPrimitives.Root,
8491
8522
  {
8492
8523
  ref,
@@ -8501,8 +8532,8 @@ var Toast = React68.forwardRef(({ className, variant, severity = "none", directi
8501
8532
  );
8502
8533
  });
8503
8534
  Toast.displayName = ToastPrimitives.Root.displayName;
8504
- var ToastAction = React68.forwardRef(({ className, ...props }, ref) => {
8505
- return /* @__PURE__ */ React68.createElement(
8535
+ var ToastAction = React67.forwardRef(({ className, ...props }, ref) => {
8536
+ return /* @__PURE__ */ React67.createElement(
8506
8537
  ToastPrimitives.Action,
8507
8538
  {
8508
8539
  ref,
@@ -8520,7 +8551,7 @@ var ToastAction = React68.forwardRef(({ className, ...props }, ref) => {
8520
8551
  );
8521
8552
  });
8522
8553
  ToastAction.displayName = ToastPrimitives.Action.displayName;
8523
- var ToastClose = React68.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React68.createElement(
8554
+ var ToastClose = React67.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React67.createElement(
8524
8555
  ToastPrimitives.Close,
8525
8556
  {
8526
8557
  ref,
@@ -8534,7 +8565,7 @@ var ToastClose = React68.forwardRef(({ className, ...props }, ref) => /* @__PURE
8534
8565
  "toast-close": "",
8535
8566
  ...props
8536
8567
  },
8537
- /* @__PURE__ */ React68.createElement(
8568
+ /* @__PURE__ */ React67.createElement(
8538
8569
  "svg",
8539
8570
  {
8540
8571
  "aria-label": "Close Icon",
@@ -8543,7 +8574,7 @@ var ToastClose = React68.forwardRef(({ className, ...props }, ref) => /* @__PURE
8543
8574
  fill: "currentColor",
8544
8575
  viewBox: "0 0 20 20"
8545
8576
  },
8546
- /* @__PURE__ */ React68.createElement(
8577
+ /* @__PURE__ */ React67.createElement(
8547
8578
  "path",
8548
8579
  {
8549
8580
  fillRule: "evenodd",
@@ -8554,7 +8585,7 @@ var ToastClose = React68.forwardRef(({ className, ...props }, ref) => /* @__PURE
8554
8585
  )
8555
8586
  ));
8556
8587
  ToastClose.displayName = ToastPrimitives.Close.displayName;
8557
- var ToastTitle = React68.forwardRef(({ className, size = "default", ...props }, ref) => /* @__PURE__ */ React68.createElement(
8588
+ var ToastTitle = React67.forwardRef(({ className, size = "default", ...props }, ref) => /* @__PURE__ */ React67.createElement(
8558
8589
  ToastPrimitives.Title,
8559
8590
  {
8560
8591
  ref,
@@ -8567,7 +8598,7 @@ var ToastTitle = React68.forwardRef(({ className, size = "default", ...props },
8567
8598
  }
8568
8599
  ));
8569
8600
  ToastTitle.displayName = ToastPrimitives.Title.displayName;
8570
- var ToastDescription = React68.forwardRef(({ className, size = "default", ...props }, ref) => /* @__PURE__ */ React68.createElement(
8601
+ var ToastDescription = React67.forwardRef(({ className, size = "default", ...props }, ref) => /* @__PURE__ */ React67.createElement(
8571
8602
  ToastPrimitives.Description,
8572
8603
  {
8573
8604
  ref,
@@ -8831,13 +8862,13 @@ var Stats = ({
8831
8862
  };
8832
8863
 
8833
8864
  // layout/sidebar/Sidebar.tsx
8834
- var React74 = __toESM(require("react"));
8865
+ var React73 = __toESM(require("react"));
8835
8866
  var AccordionPrimitive6 = __toESM(require("@radix-ui/react-accordion"));
8836
8867
  var Accordion2 = AccordionPrimitive6.Root;
8837
8868
  var triggerStyles = "hawa-flex hawa-flex-1 hawa-items-center hawa-duration-75 hawa-select-none hawa-cursor-pointer hawa-rounded hawa-justify-between hawa-p-2 hawa-px-3 hawa-font-medium hawa-transition-all [&[data-state=open]>svg]:hawa--rotate-90";
8838
- var AccordionItem2 = React74.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React74.createElement(AccordionPrimitive6.Item, { ref, className: cn(className), ...props }));
8869
+ var AccordionItem2 = React73.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React73.createElement(AccordionPrimitive6.Item, { ref, className: cn(className), ...props }));
8839
8870
  AccordionItem2.displayName = "AccordionItem";
8840
- var AccordionTrigger2 = React74.forwardRef(({ className, showArrow, children, ...props }, ref) => /* @__PURE__ */ React74.createElement(AccordionPrimitive6.Header, { className: "flex" }, /* @__PURE__ */ React74.createElement(
8871
+ var AccordionTrigger2 = React73.forwardRef(({ className, showArrow, children, ...props }, ref) => /* @__PURE__ */ React73.createElement(AccordionPrimitive6.Header, { className: "flex" }, /* @__PURE__ */ React73.createElement(
8841
8872
  AccordionPrimitive6.Trigger,
8842
8873
  {
8843
8874
  ref,
@@ -8845,7 +8876,7 @@ var AccordionTrigger2 = React74.forwardRef(({ className, showArrow, children, ..
8845
8876
  ...props
8846
8877
  },
8847
8878
  children,
8848
- showArrow && /* @__PURE__ */ React74.createElement(
8879
+ showArrow && /* @__PURE__ */ React73.createElement(
8849
8880
  "svg",
8850
8881
  {
8851
8882
  "aria-label": "Chevron Right Icon",
@@ -8856,11 +8887,11 @@ var AccordionTrigger2 = React74.forwardRef(({ className, showArrow, children, ..
8856
8887
  width: "1em",
8857
8888
  className: "hawa-icon hawa-shrink-0 hawa-rotate-90 hawa-transition-transform hawa-duration-200"
8858
8889
  },
8859
- /* @__PURE__ */ React74.createElement("path", { d: "M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z" })
8890
+ /* @__PURE__ */ React73.createElement("path", { d: "M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z" })
8860
8891
  )
8861
8892
  )));
8862
8893
  AccordionTrigger2.displayName = AccordionPrimitive6.Trigger.displayName;
8863
- var AccordionContent2 = React74.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React74.createElement(
8894
+ var AccordionContent2 = React73.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React73.createElement(
8864
8895
  AccordionPrimitive6.Content,
8865
8896
  {
8866
8897
  ref,
@@ -8870,7 +8901,7 @@ var AccordionContent2 = React74.forwardRef(({ className, children, ...props }, r
8870
8901
  ),
8871
8902
  ...props
8872
8903
  },
8873
- /* @__PURE__ */ React74.createElement("div", null, children)
8904
+ /* @__PURE__ */ React73.createElement("div", null, children)
8874
8905
  ));
8875
8906
  AccordionContent2.displayName = AccordionPrimitive6.Content.displayName;
8876
8907
  var SidebarGroup = ({
@@ -8886,7 +8917,7 @@ var SidebarGroup = ({
8886
8917
  ...props
8887
8918
  }) => {
8888
8919
  const LinkComponent = props.LinkComponent || "a";
8889
- return /* @__PURE__ */ React74.createElement("div", { className: "hawa-m-2" }, title && /* @__PURE__ */ React74.createElement("h3", { className: "hawa-mb-1 hawa-font-bold" }, title), /* @__PURE__ */ React74.createElement("ul", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ React74.createElement(
8920
+ return /* @__PURE__ */ React73.createElement("div", { className: "hawa-m-2" }, title && /* @__PURE__ */ React73.createElement("h3", { className: "hawa-mb-1 hawa-font-bold" }, title), /* @__PURE__ */ React73.createElement("ul", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ React73.createElement(
8890
8921
  Accordion2,
8891
8922
  {
8892
8923
  value: openedItem,
@@ -8897,7 +8928,7 @@ var SidebarGroup = ({
8897
8928
  collapsible: true,
8898
8929
  className: "hawa-flex hawa-flex-col hawa-gap-1"
8899
8930
  },
8900
- items.map((item, idx) => /* @__PURE__ */ React74.createElement(
8931
+ items.map((item, idx) => /* @__PURE__ */ React73.createElement(
8901
8932
  SidebarItem,
8902
8933
  {
8903
8934
  isOpen,
@@ -8925,14 +8956,14 @@ var SidebarItem = ({
8925
8956
  return props.selectedItem === value ? "hawa-bg-primary/90 hawa-text-primary-foreground hawa-cursor-default" : "hover:hawa-bg-primary/10";
8926
8957
  };
8927
8958
  if (item.subitems) {
8928
- return /* @__PURE__ */ React74.createElement(
8959
+ return /* @__PURE__ */ React73.createElement(
8929
8960
  AccordionItem2,
8930
8961
  {
8931
8962
  value: item.value,
8932
8963
  className: "hawa-overflow-x-clip ",
8933
8964
  dir: direction
8934
8965
  },
8935
- /* @__PURE__ */ React74.createElement(
8966
+ /* @__PURE__ */ React73.createElement(
8936
8967
  AccordionTrigger2,
8937
8968
  {
8938
8969
  className: cn(
@@ -8944,7 +8975,7 @@ var SidebarItem = ({
8944
8975
  ),
8945
8976
  showArrow: isOpen
8946
8977
  },
8947
- /* @__PURE__ */ React74.createElement(
8978
+ /* @__PURE__ */ React73.createElement(
8948
8979
  "div",
8949
8980
  {
8950
8981
  className: cn(
@@ -8952,7 +8983,7 @@ var SidebarItem = ({
8952
8983
  )
8953
8984
  },
8954
8985
  item.icon && item.icon,
8955
- /* @__PURE__ */ React74.createElement(
8986
+ /* @__PURE__ */ React73.createElement(
8956
8987
  "span",
8957
8988
  {
8958
8989
  className: cn(
@@ -8964,14 +8995,14 @@ var SidebarItem = ({
8964
8995
  )
8965
8996
  )
8966
8997
  ),
8967
- item.subitems && /* @__PURE__ */ React74.createElement(AccordionContent2, { className: "hawa-mt-1 hawa-h-full hawa-rounded" }, /* @__PURE__ */ React74.createElement(
8998
+ item.subitems && /* @__PURE__ */ React73.createElement(AccordionContent2, { className: "hawa-mt-1 hawa-h-full hawa-rounded" }, /* @__PURE__ */ React73.createElement(
8968
8999
  "div",
8969
9000
  {
8970
9001
  className: cn(
8971
9002
  "hawa-flex hawa-h-full hawa-flex-col hawa-gap-2 hawa-bg-foreground/5 hawa-p-1"
8972
9003
  )
8973
9004
  },
8974
- item.subitems.map((subitem, idx) => /* @__PURE__ */ React74.createElement(
9005
+ item.subitems.map((subitem, idx) => /* @__PURE__ */ React73.createElement(
8975
9006
  LinkComponent,
8976
9007
  {
8977
9008
  href: subitem.slug,
@@ -9002,7 +9033,7 @@ var SidebarItem = ({
9002
9033
  ))
9003
9034
  );
9004
9035
  } else {
9005
- return /* @__PURE__ */ React74.createElement(
9036
+ return /* @__PURE__ */ React73.createElement(
9006
9037
  LinkComponent,
9007
9038
  {
9008
9039
  href: item.slug,
@@ -9026,7 +9057,7 @@ var SidebarItem = ({
9026
9057
  "hawa-overflow-x-clip "
9027
9058
  )
9028
9059
  },
9029
- /* @__PURE__ */ React74.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2" }, item.icon && item.icon, /* @__PURE__ */ React74.createElement(
9060
+ /* @__PURE__ */ React73.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2" }, item.icon && item.icon, /* @__PURE__ */ React73.createElement(
9030
9061
  "span",
9031
9062
  {
9032
9063
  className: cn(
@@ -9036,7 +9067,7 @@ var SidebarItem = ({
9036
9067
  },
9037
9068
  item.label,
9038
9069
  " ",
9039
- item.badge && /* @__PURE__ */ React74.createElement(Chip, { label: item.badge.label, color: "hyper", size: "small" })
9070
+ item.badge && /* @__PURE__ */ React73.createElement(Chip, { label: item.badge.label, color: "hyper", size: "small" })
9040
9071
  ))
9041
9072
  );
9042
9073
  }
@@ -9205,6 +9236,15 @@ var AppLayout = ({
9205
9236
  );
9206
9237
  const [openSideMenu, setOpenSideMenu] = (0, import_react57.useState)(true);
9207
9238
  const [keepDrawerOpen, setKeepDrawerOpen] = (0, import_react57.useState)(keepOpen);
9239
+ const handleClickOutside = () => {
9240
+ if (typeof window !== "undefined") {
9241
+ if (window.innerWidth < 600) {
9242
+ setKeepDrawerOpen(false);
9243
+ setOpenSideMenu(false);
9244
+ }
9245
+ }
9246
+ };
9247
+ const ref = useClickOutside(handleClickOutside);
9208
9248
  (0, import_react57.useEffect)(() => {
9209
9249
  if (typeof window !== "undefined") {
9210
9250
  const resize = () => {
@@ -9223,25 +9263,14 @@ var AppLayout = ({
9223
9263
  (0, import_react57.useEffect)(() => {
9224
9264
  setKeepDrawerOpen(keepOpen);
9225
9265
  }, [setKeepOpen]);
9226
- const handleClickOutside = () => {
9227
- if (typeof window !== "undefined") {
9228
- if (keepDrawerOpen)
9229
- return;
9230
- if (window.innerWidth < 600) {
9231
- setKeepDrawerOpen(false);
9232
- setOpenSideMenu(false);
9233
- }
9234
- }
9235
- };
9236
- const ref = useOutsideClick_default(handleClickOutside);
9237
- const drawerSizeCondition = size > 600 ? drawerSizeStyle[keepDrawerOpen ? "opened" : "closed"][drawerSize] : 0;
9238
9266
  (0, import_react57.useEffect)(() => {
9239
9267
  if (size > 600) {
9240
9268
  setOpenSideMenu(keepDrawerOpen);
9241
9269
  } else {
9242
9270
  setOpenSideMenu(false);
9243
9271
  }
9244
- }, [size]);
9272
+ }, [size, keepDrawerOpen]);
9273
+ const drawerSizeCondition = size > 600 ? drawerSizeStyle[keepDrawerOpen ? "opened" : "closed"][drawerSize] : 0;
9245
9274
  return /* @__PURE__ */ import_react57.default.createElement("div", { className: "hawa-fixed hawa-start-0" }, props.topBar && /* @__PURE__ */ import_react57.default.createElement(
9246
9275
  "div",
9247
9276
  {
@@ -9324,16 +9353,15 @@ var AppLayout = ({
9324
9353
  "div",
9325
9354
  {
9326
9355
  className: cn(
9327
- "hawa-fixed hawa-z-0 hawa-flex hawa-flex-col hawa-justify-between hawa-overflow-x-clip hawa-transition-all hawa-top-0 hawa-h-[calc(100dvh)] hawa-bg-primary-foreground",
9356
+ "hawa-fixed hawa-z-0 hawa-flex hawa-flex-col hawa-justify-between hawa-overflow-x-clip hawa-transition-all hawa-top-0 hawa-h-[calc(100dvh)] hawa-bg-red-500",
9357
+ // 'hawa-bg-primary-foreground',
9328
9358
  isRTL ? "hawa-right-0" : "hawa-left-0",
9329
9359
  bordered ? direction === "rtl" ? "hawa-border-s-[1px]" : "hawa-border-e-[1px]" : ""
9330
9360
  ),
9331
9361
  style: {
9332
9362
  width: size > 600 ? openSideMenu ? `${drawerSizeStyle["opened"][drawerSize]}px` : `${drawerSizeStyle["closed"][drawerSize]}px` : openSideMenu ? `${drawerSizeStyle["opened"][drawerSize]}px` : "0px"
9333
9363
  },
9334
- onMouseEnter: () => {
9335
- setOpenSideMenu(true);
9336
- },
9364
+ onMouseEnter: () => setOpenSideMenu(true),
9337
9365
  onMouseLeave: () => {
9338
9366
  if (size > 600) {
9339
9367
  if (keepDrawerOpen) {
@@ -9366,23 +9394,23 @@ var AppLayout = ({
9366
9394
  !props.header && /* @__PURE__ */ import_react57.default.createElement(
9367
9395
  "img",
9368
9396
  {
9397
+ src: props.logoLink,
9369
9398
  className: cn(
9370
9399
  "hawa-h-9 hawa-opacity-0 hawa-transition-all",
9371
9400
  !openSideMenu ? "hawa-invisible hawa-opacity-0" : "hawa-visible hawa-opacity-100",
9372
9401
  classNames == null ? void 0 : classNames.fullLogoImg
9373
- ),
9374
- src: props.logoLink
9402
+ )
9375
9403
  }
9376
9404
  ),
9377
9405
  size > 600 ? /* @__PURE__ */ import_react57.default.createElement(
9378
9406
  "img",
9379
9407
  {
9408
+ src: props.logoSymbol,
9380
9409
  className: cn(
9381
9410
  "hawa-fixed hawa-h-9 hawa-transition-all hawa-start-2.5 hawa-top-2.5",
9382
9411
  openSideMenu ? "hawa-invisible hawa-opacity-0" : "hawa-visible hawa-opacity-100",
9383
9412
  classNames == null ? void 0 : classNames.symbolLogoImg
9384
- ),
9385
- src: props.logoSymbol
9413
+ )
9386
9414
  }
9387
9415
  ) : null
9388
9416
  ),
@@ -9401,22 +9429,14 @@ var AppLayout = ({
9401
9429
  SidebarGroup,
9402
9430
  {
9403
9431
  direction,
9404
- onItemClick: (values) => {
9405
- if (clickedItem) {
9406
- clickedItem(values);
9407
- }
9408
- },
9409
- onSubItemClick: (values) => {
9410
- if (clickedItem) {
9411
- clickedItem(values);
9412
- }
9413
- },
9414
9432
  selectedItem: currentPage,
9415
9433
  openedItem: openedSidebarItem,
9416
9434
  setOpenedItem: (e) => setOpenedSidebarItem(e),
9417
9435
  isOpen: keepDrawerOpen || openSideMenu,
9418
9436
  items: props.drawerItems,
9419
- LinkComponent: DrawerLinkComponent
9437
+ LinkComponent: DrawerLinkComponent,
9438
+ onItemClick: (values) => clickedItem && clickedItem(values),
9439
+ onSubItemClick: (values) => clickedItem && clickedItem(values)
9420
9440
  }
9421
9441
  )
9422
9442
  ),
@@ -9494,27 +9514,6 @@ var AppLayout = ({
9494
9514
  props.children
9495
9515
  ));
9496
9516
  };
9497
- var MenuIcon = () => /* @__PURE__ */ import_react57.default.createElement(
9498
- "svg",
9499
- {
9500
- "aria-label": "Menu Button",
9501
- stroke: "currentColor",
9502
- fill: "currentColor",
9503
- strokeWidth: 0,
9504
- viewBox: "0 0 20 20",
9505
- "aria-hidden": "true",
9506
- height: "1.6em",
9507
- width: "1.6em"
9508
- },
9509
- /* @__PURE__ */ import_react57.default.createElement(
9510
- "path",
9511
- {
9512
- fillRule: "evenodd",
9513
- clipRule: "evenodd",
9514
- 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"
9515
- }
9516
- )
9517
- );
9518
9517
 
9519
9518
  // layout/appTopbar/AppTopbar.tsx
9520
9519
  var import_react58 = __toESM(require("react"));
@@ -9622,14 +9621,14 @@ var AppTopbar = ({ ...props }) => {
9622
9621
  };
9623
9622
 
9624
9623
  // layout/appMenubar/AppMenubar.tsx
9625
- var React79 = __toESM(require("react"));
9624
+ var React78 = __toESM(require("react"));
9626
9625
  var MenubarPrimitive = __toESM(require("@radix-ui/react-menubar"));
9627
9626
  var MenubarMenu = MenubarPrimitive.Menu;
9628
9627
  var MenubarGroup = MenubarPrimitive.Group;
9629
9628
  var MenubarPortal = MenubarPrimitive.Portal;
9630
9629
  var MenubarSub = MenubarPrimitive.Sub;
9631
9630
  var MenubarRadioGroup = MenubarPrimitive.RadioGroup;
9632
- var Menubar = React79.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React79.createElement(
9631
+ var Menubar = React78.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React78.createElement(
9633
9632
  MenubarPrimitive.Root,
9634
9633
  {
9635
9634
  ref,
@@ -9641,7 +9640,7 @@ var Menubar = React79.forwardRef(({ className, ...props }, ref) => /* @__PURE__
9641
9640
  }
9642
9641
  ));
9643
9642
  Menubar.displayName = MenubarPrimitive.Root.displayName;
9644
- var MenubarTrigger = React79.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React79.createElement(
9643
+ var MenubarTrigger = React78.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React78.createElement(
9645
9644
  MenubarPrimitive.Trigger,
9646
9645
  {
9647
9646
  ref,
@@ -9653,7 +9652,7 @@ var MenubarTrigger = React79.forwardRef(({ className, ...props }, ref) => /* @__
9653
9652
  }
9654
9653
  ));
9655
9654
  MenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;
9656
- var MenubarSubTrigger = React79.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ React79.createElement(
9655
+ var MenubarSubTrigger = React78.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ React78.createElement(
9657
9656
  MenubarPrimitive.SubTrigger,
9658
9657
  {
9659
9658
  ref,
@@ -9665,7 +9664,7 @@ var MenubarSubTrigger = React79.forwardRef(({ className, inset, children, ...pro
9665
9664
  ...props
9666
9665
  },
9667
9666
  children,
9668
- /* @__PURE__ */ React79.createElement(
9667
+ /* @__PURE__ */ React78.createElement(
9669
9668
  "svg",
9670
9669
  {
9671
9670
  "aria-label": "Chevron Right Icon",
@@ -9680,11 +9679,11 @@ var MenubarSubTrigger = React79.forwardRef(({ className, inset, children, ...pro
9680
9679
  strokeLinejoin: "round",
9681
9680
  className: "hawa-icon hawa-ml-auto"
9682
9681
  },
9683
- /* @__PURE__ */ React79.createElement("path", { d: "m9 18 6-6-6-6" })
9682
+ /* @__PURE__ */ React78.createElement("path", { d: "m9 18 6-6-6-6" })
9684
9683
  )
9685
9684
  ));
9686
9685
  MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;
9687
- var MenubarSubContent = React79.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React79.createElement(
9686
+ var MenubarSubContent = React78.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React78.createElement(
9688
9687
  MenubarPrimitive.SubContent,
9689
9688
  {
9690
9689
  ref,
@@ -9696,8 +9695,8 @@ var MenubarSubContent = React79.forwardRef(({ className, ...props }, ref) => /*
9696
9695
  }
9697
9696
  ));
9698
9697
  MenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;
9699
- var MenubarContent = React79.forwardRef(
9700
- ({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => /* @__PURE__ */ React79.createElement(MenubarPrimitive.Portal, null, /* @__PURE__ */ React79.createElement(
9698
+ var MenubarContent = React78.forwardRef(
9699
+ ({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => /* @__PURE__ */ React78.createElement(MenubarPrimitive.Portal, null, /* @__PURE__ */ React78.createElement(
9701
9700
  MenubarPrimitive.Content,
9702
9701
  {
9703
9702
  ref,
@@ -9713,7 +9712,7 @@ var MenubarContent = React79.forwardRef(
9713
9712
  ))
9714
9713
  );
9715
9714
  MenubarContent.displayName = MenubarPrimitive.Content.displayName;
9716
- var MenubarItem = React79.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React79.createElement(
9715
+ var MenubarItem = React78.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React78.createElement(
9717
9716
  MenubarPrimitive.Item,
9718
9717
  {
9719
9718
  ref,
@@ -9726,7 +9725,7 @@ var MenubarItem = React79.forwardRef(({ className, inset, ...props }, ref) => /*
9726
9725
  }
9727
9726
  ));
9728
9727
  MenubarItem.displayName = MenubarPrimitive.Item.displayName;
9729
- var MenubarCheckboxItem = React79.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ React79.createElement(
9728
+ var MenubarCheckboxItem = React78.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ React78.createElement(
9730
9729
  MenubarPrimitive.CheckboxItem,
9731
9730
  {
9732
9731
  ref,
@@ -9737,7 +9736,7 @@ var MenubarCheckboxItem = React79.forwardRef(({ className, children, checked, ..
9737
9736
  checked,
9738
9737
  ...props
9739
9738
  },
9740
- /* @__PURE__ */ React79.createElement("span", { className: "hawa-absolute hawa-left-2 hawa-flex hawa-h-3.5 hawa-w-3.5 hawa-items-center hawa-justify-center" }, /* @__PURE__ */ React79.createElement(MenubarPrimitive.ItemIndicator, null, /* @__PURE__ */ React79.createElement(
9739
+ /* @__PURE__ */ React78.createElement("span", { className: "hawa-absolute hawa-left-2 hawa-flex hawa-h-3.5 hawa-w-3.5 hawa-items-center hawa-justify-center" }, /* @__PURE__ */ React78.createElement(MenubarPrimitive.ItemIndicator, null, /* @__PURE__ */ React78.createElement(
9741
9740
  "svg",
9742
9741
  {
9743
9742
  xmlns: "http://www.w3.org/2000/svg",
@@ -9751,12 +9750,12 @@ var MenubarCheckboxItem = React79.forwardRef(({ className, children, checked, ..
9751
9750
  strokeLinejoin: "round",
9752
9751
  className: "hawa-icon"
9753
9752
  },
9754
- /* @__PURE__ */ React79.createElement("path", { d: "M20 6 9 17l-5-5" })
9753
+ /* @__PURE__ */ React78.createElement("path", { d: "M20 6 9 17l-5-5" })
9755
9754
  ))),
9756
9755
  children
9757
9756
  ));
9758
9757
  MenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;
9759
- var MenubarRadioItem = React79.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React79.createElement(
9758
+ var MenubarRadioItem = React78.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React78.createElement(
9760
9759
  MenubarPrimitive.RadioItem,
9761
9760
  {
9762
9761
  ref,
@@ -9766,7 +9765,7 @@ var MenubarRadioItem = React79.forwardRef(({ className, children, ...props }, re
9766
9765
  ),
9767
9766
  ...props
9768
9767
  },
9769
- /* @__PURE__ */ React79.createElement("span", { className: "hawa-absolute hawa-left-2 hawa-flex hawa-h-3.5 hawa-w-3.5 hawa-items-center hawa-justify-center" }, /* @__PURE__ */ React79.createElement(MenubarPrimitive.ItemIndicator, null, /* @__PURE__ */ React79.createElement(
9768
+ /* @__PURE__ */ React78.createElement("span", { className: "hawa-absolute hawa-left-2 hawa-flex hawa-h-3.5 hawa-w-3.5 hawa-items-center hawa-justify-center" }, /* @__PURE__ */ React78.createElement(MenubarPrimitive.ItemIndicator, null, /* @__PURE__ */ React78.createElement(
9770
9769
  "svg",
9771
9770
  {
9772
9771
  xmlns: "http://www.w3.org/2000/svg",
@@ -9780,12 +9779,12 @@ var MenubarRadioItem = React79.forwardRef(({ className, children, ...props }, re
9780
9779
  strokeLinejoin: "round",
9781
9780
  className: "hawa-h-2 hawa-w-2 hawa-fill-current"
9782
9781
  },
9783
- /* @__PURE__ */ React79.createElement("circle", { cx: "12", cy: "12", r: "10" })
9782
+ /* @__PURE__ */ React78.createElement("circle", { cx: "12", cy: "12", r: "10" })
9784
9783
  ))),
9785
9784
  children
9786
9785
  ));
9787
9786
  MenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;
9788
- var MenubarLabel = React79.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React79.createElement(
9787
+ var MenubarLabel = React78.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React78.createElement(
9789
9788
  MenubarPrimitive.Label,
9790
9789
  {
9791
9790
  ref,
@@ -9798,7 +9797,7 @@ var MenubarLabel = React79.forwardRef(({ className, inset, ...props }, ref) => /
9798
9797
  }
9799
9798
  ));
9800
9799
  MenubarLabel.displayName = MenubarPrimitive.Label.displayName;
9801
- var MenubarSeparator = React79.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React79.createElement(
9800
+ var MenubarSeparator = React78.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React78.createElement(
9802
9801
  MenubarPrimitive.Separator,
9803
9802
  {
9804
9803
  ref,
@@ -9811,7 +9810,7 @@ var MenubarShortcut = ({
9811
9810
  className,
9812
9811
  ...props
9813
9812
  }) => {
9814
- return /* @__PURE__ */ React79.createElement(
9813
+ return /* @__PURE__ */ React78.createElement(
9815
9814
  "span",
9816
9815
  {
9817
9816
  className: cn(
@@ -13054,6 +13053,7 @@ var Usage = (props) => {
13054
13053
  reducer,
13055
13054
  toast,
13056
13055
  useBreakpoint,
13056
+ useClickOutside,
13057
13057
  useClipboard,
13058
13058
  useDialogCarousel,
13059
13059
  useFocusWithin,