@sikka/hawa 0.35.5-next → 0.36.0-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 (100) hide show
  1. package/dist/{Chip-BtgTAs8x.d.mts → Chip-CGl24Kd9.d.mts} +2 -2
  2. package/dist/{Chip-DQsP5hFS.d.ts → Chip-Cato49ar.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 +6 -4
  6. package/dist/accordion/index.js.map +1 -1
  7. package/dist/accordion/index.mjs +6 -4
  8. package/dist/accordion/index.mjs.map +1 -1
  9. package/dist/appLayout/index.js +180 -172
  10. package/dist/appLayout/index.js.map +1 -1
  11. package/dist/appLayout/index.mjs +201 -193
  12. package/dist/appLayout/index.mjs.map +1 -1
  13. package/dist/blocks/auth/index.js +28 -5
  14. package/dist/blocks/auth/index.mjs +4 -4
  15. package/dist/blocks/feedback/index.js +0 -1
  16. package/dist/blocks/feedback/index.mjs +1 -1
  17. package/dist/blocks/index.js +94 -69
  18. package/dist/blocks/index.mjs +12 -12
  19. package/dist/blocks/misc/index.js +81 -56
  20. package/dist/blocks/misc/index.mjs +65 -65
  21. package/dist/blocks/pricing/index.js +6 -4
  22. package/dist/blocks/pricing/index.mjs +1 -1
  23. package/dist/chip/index.d.mts +2 -2
  24. package/dist/chip/index.d.ts +2 -2
  25. package/dist/chip/index.js +6 -4
  26. package/dist/chip/index.js.map +1 -1
  27. package/dist/chip/index.mjs +6 -4
  28. package/dist/chip/index.mjs.map +1 -1
  29. package/dist/{chunk-HSRW7X3Z.mjs → chunk-6QIOEUE2.mjs} +1 -1
  30. package/dist/{chunk-JEZLVXSU.mjs → chunk-BXBSZD5X.mjs} +26 -2
  31. package/dist/{chunk-LVXG3SMD.mjs → chunk-CJ57JBYA.mjs} +6 -4
  32. package/dist/{chunk-CD6AQVU3.mjs → chunk-HLYAX77R.mjs} +0 -1
  33. package/dist/{chunk-G7JHUC5N.mjs → chunk-NNPNQK6F.mjs} +211 -4
  34. package/dist/chunk-SYGWSBJL.mjs +63 -0
  35. package/dist/{chunk-TERP5K6R.mjs → chunk-T33FXOHA.mjs} +29 -189
  36. package/dist/colorPicker/index.js +1 -1
  37. package/dist/colorPicker/index.js.map +1 -1
  38. package/dist/colorPicker/index.mjs +1 -1
  39. package/dist/colorPicker/index.mjs.map +1 -1
  40. package/dist/dataTable/index.js +41 -5
  41. package/dist/dataTable/index.js.map +1 -1
  42. package/dist/dataTable/index.mjs +41 -5
  43. package/dist/dataTable/index.mjs.map +1 -1
  44. package/dist/datePicker/index.d.mts +1 -0
  45. package/dist/datePicker/index.d.ts +1 -0
  46. package/dist/datePicker/index.js +3 -2
  47. package/dist/datePicker/index.js.map +1 -1
  48. package/dist/datePicker/index.mjs +3 -2
  49. package/dist/datePicker/index.mjs.map +1 -1
  50. package/dist/elements/index.d.mts +8 -4
  51. package/dist/elements/index.d.ts +8 -4
  52. package/dist/elements/index.js +124 -87
  53. package/dist/elements/index.mjs +25 -13
  54. package/dist/hooks/index.d.mts +4 -1
  55. package/dist/hooks/index.d.ts +4 -1
  56. package/dist/hooks/index.js +31 -2
  57. package/dist/hooks/index.mjs +4 -2
  58. package/dist/index.css +10 -0
  59. package/dist/index.d.mts +11 -5
  60. package/dist/index.d.ts +11 -5
  61. package/dist/index.js +225 -189
  62. package/dist/index.mjs +771 -736
  63. package/dist/input/index.d.mts +6 -2
  64. package/dist/input/index.d.ts +6 -2
  65. package/dist/input/index.js +26 -2
  66. package/dist/input/index.js.map +1 -1
  67. package/dist/input/index.mjs +26 -2
  68. package/dist/input/index.mjs.map +1 -1
  69. package/dist/layout/index.d.mts +1 -1
  70. package/dist/layout/index.d.ts +1 -1
  71. package/dist/layout/index.js +289 -281
  72. package/dist/layout/index.mjs +24 -56
  73. package/dist/passwordInput/index.js +26 -2
  74. package/dist/passwordInput/index.js.map +1 -1
  75. package/dist/passwordInput/index.mjs +26 -2
  76. package/dist/passwordInput/index.mjs.map +1 -1
  77. package/dist/phoneInput/index.js +1 -2
  78. package/dist/phoneInput/index.js.map +1 -1
  79. package/dist/phoneInput/index.mjs +1 -2
  80. package/dist/phoneInput/index.mjs.map +1 -1
  81. package/dist/pinInput/index.js +1 -1
  82. package/dist/pinInput/index.js.map +1 -1
  83. package/dist/pinInput/index.mjs +1 -1
  84. package/dist/pinInput/index.mjs.map +1 -1
  85. package/dist/select/index.js +0 -1
  86. package/dist/select/index.js.map +1 -1
  87. package/dist/select/index.mjs +0 -1
  88. package/dist/select/index.mjs.map +1 -1
  89. package/dist/sidebar/index.js +6 -4
  90. package/dist/sidebar/index.js.map +1 -1
  91. package/dist/sidebar/index.mjs +6 -4
  92. package/dist/sidebar/index.mjs.map +1 -1
  93. package/dist/tabs/index.d.mts +1 -1
  94. package/dist/tabs/index.d.ts +1 -1
  95. package/dist/tabs/index.js +26 -24
  96. package/dist/tabs/index.js.map +1 -1
  97. package/dist/tabs/index.mjs +30 -28
  98. package/dist/tabs/index.mjs.map +1 -1
  99. package/package.json +7 -8
  100. package/dist/chunk-545D35G6.mjs +0 -54
@@ -1,12 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  Alert,
4
- BadEmoji,
5
- CheckMark,
6
4
  Checkbox,
7
- EyeIcon,
8
- GoodEmoji,
9
- HiddenEyeIcon,
10
5
  Input,
11
6
  PhoneInput,
12
7
  PinInput,
@@ -21,13 +16,11 @@ import {
21
16
  TabsContent,
22
17
  TabsList,
23
18
  TabsTrigger,
24
- Textarea,
25
- UncheckMark,
26
- VeryBadEmoji,
27
- VeryGoodEmoji
28
- } from "../chunk-TERP5K6R.mjs";
19
+ Textarea
20
+ } from "../chunk-T33FXOHA.mjs";
29
21
  import "../chunk-OPYDG34F.mjs";
30
22
  import {
23
+ BadEmoji,
31
24
  Button,
32
25
  Card,
33
26
  CardContent,
@@ -35,16 +28,23 @@ import {
35
28
  CardFooter,
36
29
  CardHeader,
37
30
  CardTitle,
31
+ CheckMark,
38
32
  Chip,
39
33
  DropdownMenu,
34
+ EyeIcon,
35
+ GoodEmoji,
36
+ HiddenEyeIcon,
40
37
  Label,
41
38
  Loading,
42
39
  Logos,
43
40
  Skeleton,
44
41
  Tooltip,
42
+ UncheckMark,
43
+ VeryBadEmoji,
44
+ VeryGoodEmoji,
45
45
  cn
46
- } from "../chunk-G7JHUC5N.mjs";
47
- import "../chunk-545D35G6.mjs";
46
+ } from "../chunk-NNPNQK6F.mjs";
47
+ import "../chunk-SYGWSBJL.mjs";
48
48
 
49
49
  // blocks/auth/AuthButtons.tsx
50
50
  import React from "react";
@@ -95,7 +95,7 @@ var ScrollBar = React.forwardRef(({ className, orientation = "vertical", ...prop
95
95
  ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
96
96
 
97
97
  // elements/tabs/Tabs.tsx
98
- var React13 = __toESM(require("react"));
98
+ var React12 = __toESM(require("react"));
99
99
 
100
100
  // hooks/useIsomorphicEffect.ts
101
101
  var import_react = require("react");
@@ -178,8 +178,8 @@ var useMeasureDirty = (ref) => {
178
178
  return rect;
179
179
  };
180
180
 
181
- // hooks/useOutsideClick.ts
182
- var import_react16 = __toESM(require("react"));
181
+ // hooks/useClickOutside.ts
182
+ var import_react16 = require("react");
183
183
 
184
184
  // elements/tabs/Tabs.tsx
185
185
  var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"));
@@ -194,7 +194,8 @@ var Chip = import_react17.default.forwardRef(
194
194
  icon,
195
195
  color,
196
196
  radius = "inherit",
197
- dotType,
197
+ dot,
198
+ dotStatus = "none",
198
199
  ...rest
199
200
  }, ref) => {
200
201
  let defaultStyles = "hawa-flex hawa-flex-row hawa-w-fit hawa-gap-1 hawa-items-center hawa-px-2.5 hawa-py-1 hawa-font-bold ";
@@ -213,7 +214,8 @@ var Chip = import_react17.default.forwardRef(
213
214
  normal: "hawa-flex hawa-h-2 hawa-w-2 hawa-rounded-full",
214
215
  large: "hawa-flex hawa-h-3 hawa-w-3 hawa-rounded-full"
215
216
  };
216
- let dotTypeStyles = {
217
+ let dotStatusStyles = {
218
+ none: "hawa-bg-gray-500 dark:hawa-bg-gray-800",
217
219
  available: "hawa-bg-green-500",
218
220
  unavailable: "hawa-bg-red-500"
219
221
  };
@@ -241,10 +243,10 @@ var Chip = import_react17.default.forwardRef(
241
243
  color ? colorStyles[color] : "hawa-border hawa-bg-none"
242
244
  )
243
245
  },
244
- dotType && /* @__PURE__ */ import_react17.default.createElement(
246
+ dot && /* @__PURE__ */ import_react17.default.createElement(
245
247
  "span",
246
248
  {
247
- className: cn(dotStyles[size], dotTypeStyles[dotType])
249
+ className: cn(dotStyles[size], dotStatusStyles[dotStatus])
248
250
  }
249
251
  ),
250
252
  icon && icon,
@@ -267,7 +269,7 @@ var Chip = import_react17.default.forwardRef(
267
269
  );
268
270
 
269
271
  // elements/floatBox/FloatBox.tsx
270
- var React12 = __toESM(require("react"));
272
+ var React11 = __toESM(require("react"));
271
273
  var FloatBox = ({
272
274
  className,
273
275
  open,
@@ -305,7 +307,7 @@ var FloatBox = ({
305
307
  right: "hawa-arrow-default-left",
306
308
  left: "hawa-arrow-default-right"
307
309
  };
308
- return /* @__PURE__ */ React12.createElement(
310
+ return /* @__PURE__ */ React11.createElement(
309
311
  "div",
310
312
  {
311
313
  className: cn(
@@ -316,8 +318,8 @@ var FloatBox = ({
316
318
  "data-side": side,
317
319
  "data-floatbox-state": open ? "open" : "closed"
318
320
  },
319
- withArrow && /* @__PURE__ */ React12.createElement("div", { className: cn(arrowDirection[side]) }),
320
- /* @__PURE__ */ React12.createElement("span", null, props.children)
321
+ withArrow && /* @__PURE__ */ React11.createElement("div", { className: cn(arrowDirection[side]) }),
322
+ /* @__PURE__ */ React11.createElement("span", null, props.children)
321
323
  );
322
324
  };
323
325
 
@@ -380,8 +382,8 @@ var tabsTriggerVariant = (0, import_tailwind_variants.tv)({
380
382
  ],
381
383
  defaultVariants: { variant: "default", orientation: "horizontal" }
382
384
  });
383
- var TabsContext = React13.createContext({ orientation: "horizontal", variant: "default" });
384
- var Tabs = React13.forwardRef(({ className, orientation, variant = "default", ...props }, ref) => /* @__PURE__ */ React13.createElement(
385
+ var TabsContext = React12.createContext({ orientation: "horizontal", variant: "default" });
386
+ var Tabs = React12.forwardRef(({ className, orientation, variant = "default", ...props }, ref) => /* @__PURE__ */ React12.createElement(
385
387
  TabsPrimitive.Root,
386
388
  {
387
389
  ref,
@@ -392,11 +394,11 @@ var Tabs = React13.forwardRef(({ className, orientation, variant = "default", ..
392
394
  ),
393
395
  ...props
394
396
  },
395
- /* @__PURE__ */ React13.createElement(TabsContext.Provider, { value: { orientation, variant } }, props.children)
397
+ /* @__PURE__ */ React12.createElement(TabsContext.Provider, { value: { orientation, variant } }, props.children)
396
398
  ));
397
- var TabsList = React13.forwardRef(({ className, ...props }, ref) => {
398
- const { orientation, variant } = React13.useContext(TabsContext);
399
- return /* @__PURE__ */ React13.createElement(
399
+ var TabsList = React12.forwardRef(({ className, ...props }, ref) => {
400
+ const { orientation, variant } = React12.useContext(TabsContext);
401
+ return /* @__PURE__ */ React12.createElement(
400
402
  TabsPrimitive.List,
401
403
  {
402
404
  ref,
@@ -409,11 +411,11 @@ var TabsList = React13.forwardRef(({ className, ...props }, ref) => {
409
411
  }
410
412
  );
411
413
  });
412
- var TabsTrigger = React13.forwardRef(({ className, chipProps, ...props }, ref) => {
413
- const { orientation, variant } = React13.useContext(TabsContext);
414
- const tabTriggerRef = React13.useRef(null);
414
+ var TabsTrigger = React12.forwardRef(({ className, chipProps, ...props }, ref) => {
415
+ const { orientation, variant } = React12.useContext(TabsContext);
416
+ const tabTriggerRef = React12.useRef(null);
415
417
  const { width } = useMeasureDirty(tabTriggerRef);
416
- return /* @__PURE__ */ React13.createElement(
418
+ return /* @__PURE__ */ React12.createElement(
417
419
  TabsPrimitive.Trigger,
418
420
  {
419
421
  ref: tabTriggerRef,
@@ -425,8 +427,8 @@ var TabsTrigger = React13.forwardRef(({ className, chipProps, ...props }, ref) =
425
427
  ...props
426
428
  },
427
429
  props.children,
428
- chipProps && /* @__PURE__ */ React13.createElement(Chip, { ...chipProps }),
429
- /* @__PURE__ */ React13.createElement(
430
+ chipProps && /* @__PURE__ */ React12.createElement(Chip, { ...chipProps }),
431
+ /* @__PURE__ */ React12.createElement(
430
432
  FloatBox,
431
433
  {
432
434
  withArrow: true,
@@ -439,7 +441,7 @@ var TabsTrigger = React13.forwardRef(({ className, chipProps, ...props }, ref) =
439
441
  )
440
442
  );
441
443
  });
442
- var TabsContent = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React13.createElement(
444
+ var TabsContent = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React12.createElement(
443
445
  TabsPrimitive.Content,
444
446
  {
445
447
  ref,
@@ -483,7 +485,7 @@ var LegalTexts = ({ tabs, ...props }) => {
483
485
  var import_react22 = __toESM(require("react"));
484
486
 
485
487
  // elements/button/Button.tsx
486
- var React19 = __toESM(require("react"));
488
+ var React18 = __toESM(require("react"));
487
489
  var import_class_variance_authority = require("class-variance-authority");
488
490
 
489
491
  // elements/helperText/HelperText.tsx
@@ -500,7 +502,7 @@ var HelperText = ({ helperText }) => /* @__PURE__ */ import_react19.default.crea
500
502
  );
501
503
 
502
504
  // elements/label/Label.tsx
503
- var React17 = __toESM(require("react"));
505
+ var React16 = __toESM(require("react"));
504
506
 
505
507
  // elements/tooltip/Tooltip.tsx
506
508
  var import_react20 = __toESM(require("react"));
@@ -574,7 +576,7 @@ var Tooltip = ({
574
576
  };
575
577
 
576
578
  // elements/label/Label.tsx
577
- var Label = React17.forwardRef(({ className, hint, hintSide, required, children, ...props }, ref) => /* @__PURE__ */ React17.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-1 hawa-transition-all" }, /* @__PURE__ */ React17.createElement(
579
+ var Label = React16.forwardRef(({ className, hint, hintSide, required, children, ...props }, ref) => /* @__PURE__ */ React16.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-1 hawa-transition-all" }, /* @__PURE__ */ React16.createElement(
578
580
  "label",
579
581
  {
580
582
  ref,
@@ -585,8 +587,8 @@ var Label = React17.forwardRef(({ className, hint, hintSide, required, children,
585
587
  ...props
586
588
  },
587
589
  children,
588
- required && /* @__PURE__ */ React17.createElement("span", { className: "hawa-mx-0.5 hawa-text-red-500" }, "*")
589
- ), hint && /* @__PURE__ */ React17.createElement(
590
+ required && /* @__PURE__ */ React16.createElement("span", { className: "hawa-mx-0.5 hawa-text-red-500" }, "*")
591
+ ), hint && /* @__PURE__ */ React16.createElement(
590
592
  Tooltip,
591
593
  {
592
594
  content: hint,
@@ -596,7 +598,7 @@ var Label = React17.forwardRef(({ className, hint, hintSide, required, children,
596
598
  onClick: (event) => event.preventDefault()
597
599
  }
598
600
  },
599
- /* @__PURE__ */ React17.createElement("div", null, /* @__PURE__ */ React17.createElement(
601
+ /* @__PURE__ */ React16.createElement("div", null, /* @__PURE__ */ React16.createElement(
600
602
  "svg",
601
603
  {
602
604
  xmlns: "http://www.w3.org/2000/svg",
@@ -608,9 +610,9 @@ var Label = React17.forwardRef(({ className, hint, hintSide, required, children,
608
610
  strokeLinecap: "round",
609
611
  strokeLinejoin: "round"
610
612
  },
611
- /* @__PURE__ */ React17.createElement("circle", { cx: "12", cy: "12", r: "10" }),
612
- /* @__PURE__ */ React17.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
613
- /* @__PURE__ */ React17.createElement("path", { d: "M12 17h.01" })
613
+ /* @__PURE__ */ React16.createElement("circle", { cx: "12", cy: "12", r: "10" }),
614
+ /* @__PURE__ */ React16.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
615
+ /* @__PURE__ */ React16.createElement("path", { d: "M12 17h.01" })
614
616
  ))
615
617
  )));
616
618
  Label.displayName = "Label";
@@ -864,7 +866,7 @@ var buttonVariants = (0, import_class_variance_authority.cva)(
864
866
  defaultVariants: { variant: "default", size: "default" }
865
867
  }
866
868
  );
867
- var Button = React19.forwardRef(
869
+ var Button = React18.forwardRef(
868
870
  ({
869
871
  className,
870
872
  label,
@@ -880,7 +882,7 @@ var Button = React19.forwardRef(
880
882
  }, ref) => {
881
883
  const Comp = "button";
882
884
  const loadingColor = variant === "outline" || variant === "ghost" || variant === "neoBrutalism" ? "hawa-bg-primary" : "hawa-bg-primary-foreground";
883
- return /* @__PURE__ */ React19.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, label && /* @__PURE__ */ React19.createElement(Label, { ...labelProps }, label), /* @__PURE__ */ React19.createElement(
885
+ return /* @__PURE__ */ React18.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, label && /* @__PURE__ */ React18.createElement(Label, { ...labelProps }, label), /* @__PURE__ */ React18.createElement(
884
886
  Comp,
885
887
  {
886
888
  className: cn(
@@ -890,7 +892,7 @@ var Button = React19.forwardRef(
890
892
  ref,
891
893
  ...props
892
894
  },
893
- isLoading ? /* @__PURE__ */ React19.createElement(
895
+ isLoading ? /* @__PURE__ */ React18.createElement(
894
896
  Loading,
895
897
  {
896
898
  design: size === "icon" || size === "smallIcon" ? "spinner" : "dots-pulse",
@@ -899,14 +901,14 @@ var Button = React19.forwardRef(
899
901
  size: size === "sm" || size === "xs" ? "xs" : "button"
900
902
  }
901
903
  ) : children
902
- ), showHelperText && /* @__PURE__ */ React19.createElement(HelperText, { helperText: props.helperText }));
904
+ ), showHelperText && /* @__PURE__ */ React18.createElement(HelperText, { helperText: props.helperText }));
903
905
  }
904
906
  );
905
907
  Button.displayName = "Button";
906
908
 
907
909
  // elements/card/Card.tsx
908
- var React20 = __toESM(require("react"));
909
- var Card = React20.forwardRef(
910
+ var React19 = __toESM(require("react"));
911
+ var Card = React19.forwardRef(
910
912
  ({
911
913
  className,
912
914
  variant = "default",
@@ -925,7 +927,7 @@ var Card = React20.forwardRef(
925
927
  clickable && "hawa-cursor-pointer active:hawa-translate-x-0.5 active:hawa-translate-y-0.5 active:hawa-shadow-color-primary-active active:translate-x-0.5 active:translate-y-0.5 active:shadow-color-primary-active"
926
928
  )
927
929
  };
928
- return /* @__PURE__ */ React20.createElement(
930
+ return /* @__PURE__ */ React19.createElement(
929
931
  "div",
930
932
  {
931
933
  ref,
@@ -935,7 +937,7 @@ var Card = React20.forwardRef(
935
937
  );
936
938
  }
937
939
  );
938
- var CardHeader = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React20.createElement(
940
+ var CardHeader = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React19.createElement(
939
941
  "div",
940
942
  {
941
943
  ref,
@@ -946,7 +948,7 @@ var CardHeader = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE
946
948
  ...props
947
949
  }
948
950
  ));
949
- var CardTitle = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React20.createElement(
951
+ var CardTitle = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React19.createElement(
950
952
  "h3",
951
953
  {
952
954
  ref,
@@ -954,7 +956,7 @@ var CardTitle = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE_
954
956
  ...props
955
957
  }
956
958
  ));
957
- var CardDescription = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React20.createElement(
959
+ var CardDescription = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React19.createElement(
958
960
  "p",
959
961
  {
960
962
  ref,
@@ -962,8 +964,8 @@ var CardDescription = React20.forwardRef(({ className, ...props }, ref) => /* @_
962
964
  ...props
963
965
  }
964
966
  ));
965
- var CardContent = React20.forwardRef(
966
- ({ headless, noPadding, className, ...props }, ref) => /* @__PURE__ */ React20.createElement(
967
+ var CardContent = React19.forwardRef(
968
+ ({ headless, noPadding, className, ...props }, ref) => /* @__PURE__ */ React19.createElement(
967
969
  "div",
968
970
  {
969
971
  ref,
@@ -976,7 +978,7 @@ var CardContent = React20.forwardRef(
976
978
  }
977
979
  )
978
980
  );
979
- var CardFooter = React20.forwardRef(({ className, noPadding, ...props }, ref) => /* @__PURE__ */ React20.createElement(
981
+ var CardFooter = React19.forwardRef(({ className, noPadding, ...props }, ref) => /* @__PURE__ */ React19.createElement(
980
982
  "div",
981
983
  {
982
984
  ref,
@@ -1098,7 +1100,7 @@ var Input = (0, import_react25.forwardRef)(
1098
1100
  auto: ""
1099
1101
  };
1100
1102
  let defaultStyle = "hawa-flex hawa-max-h-fit hawa-h-fit hawa-relative hawa-flex-col hawa-justify-center hawa-gap-0";
1101
- let defaultInputStyle = "hawa-block hawa-w-full hawa-rounded hawa-border hawa-transition-all hawa-bg-background hawa-p-3 hawa-text-sm ";
1103
+ let defaultInputStyle = "hawa-block hawa-w-full hawa-rounded hawa-border hawa-transition-all hawa-bg-background hawa-p-3 hawa-text-sm placeholder:hawa-text-muted-foreground";
1102
1104
  const handleChange = (e) => {
1103
1105
  let newValue = e.target.value;
1104
1106
  if (props.prefixText) {
@@ -1137,7 +1139,31 @@ var Input = (0, import_react25.forwardRef)(
1137
1139
  )
1138
1140
  },
1139
1141
  props.outsidePrefix
1140
- ), props.isLoading ? /* @__PURE__ */ import_react25.default.createElement("div", { className: "hawa-pb-2 hawa-w-full" }, /* @__PURE__ */ import_react25.default.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ import_react25.default.createElement(import_react25.default.Fragment, null, !props.hideSeparator && /* @__PURE__ */ import_react25.default.createElement(
1142
+ ), props.isLoading ? /* @__PURE__ */ import_react25.default.createElement("div", { className: "hawa-pb-2 hawa-w-full" }, /* @__PURE__ */ import_react25.default.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : props.isLoadingError ? /* @__PURE__ */ import_react25.default.createElement("div", { className: "hawa-pb-2 hawa-w-full" }, /* @__PURE__ */ import_react25.default.createElement(
1143
+ Skeleton,
1144
+ {
1145
+ animation: "none",
1146
+ className: "hawa-h-[40px] hawa-w-full !hawa-bg-destructive/[0.3]",
1147
+ content: /* @__PURE__ */ import_react25.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-2" }, /* @__PURE__ */ import_react25.default.createElement(
1148
+ "svg",
1149
+ {
1150
+ xmlns: "http://www.w3.org/2000/svg",
1151
+ width: "20",
1152
+ height: "20",
1153
+ viewBox: "0 0 24 24",
1154
+ fill: "none",
1155
+ stroke: "currentColor",
1156
+ strokeWidth: "2",
1157
+ strokeLinecap: "round",
1158
+ strokeLinejoin: "round",
1159
+ className: "hawa-text-destructive"
1160
+ },
1161
+ /* @__PURE__ */ import_react25.default.createElement("path", { d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3" }),
1162
+ /* @__PURE__ */ import_react25.default.createElement("path", { d: "M12 9v4" }),
1163
+ /* @__PURE__ */ import_react25.default.createElement("path", { d: "M12 17h.01" })
1164
+ ), /* @__PURE__ */ import_react25.default.createElement("span", null, /* @__PURE__ */ import_react25.default.createElement("span", { className: "hawa-text-destructive" }, props.loadingErrorMesssage || "Error loading data")))
1165
+ }
1166
+ )) : /* @__PURE__ */ import_react25.default.createElement(import_react25.default.Fragment, null, !props.hideSeparator && /* @__PURE__ */ import_react25.default.createElement(
1141
1167
  "div",
1142
1168
  {
1143
1169
  className: cn(
@@ -1408,7 +1434,6 @@ var Select = ({
1408
1434
  )
1409
1435
  },
1410
1436
  unstyled: true,
1411
- autoFocus: true,
1412
1437
  components: props.hideIndicator ? {
1413
1438
  Option,
1414
1439
  Menu,
@@ -1498,8 +1523,8 @@ var Select = ({
1498
1523
  };
1499
1524
 
1500
1525
  // elements/textarea/Textarea.tsx
1501
- var React30 = __toESM(require("react"));
1502
- var Textarea = React30.forwardRef(
1526
+ var React29 = __toESM(require("react"));
1527
+ var Textarea = React29.forwardRef(
1503
1528
  ({
1504
1529
  className,
1505
1530
  classNames,
@@ -1511,7 +1536,7 @@ var Textarea = React30.forwardRef(
1511
1536
  isLoading,
1512
1537
  ...props
1513
1538
  }, ref) => {
1514
- return /* @__PURE__ */ React30.createElement(
1539
+ return /* @__PURE__ */ React29.createElement(
1515
1540
  "div",
1516
1541
  {
1517
1542
  className: cn(
@@ -1520,7 +1545,7 @@ var Textarea = React30.forwardRef(
1520
1545
  className
1521
1546
  )
1522
1547
  },
1523
- /* @__PURE__ */ React30.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, props.label && /* @__PURE__ */ React30.createElement(Label, { ...labelProps }, props.label), showCount && countPosition === "top" && /* @__PURE__ */ React30.createElement(
1548
+ /* @__PURE__ */ React29.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, props.label && /* @__PURE__ */ React29.createElement(Label, { ...labelProps }, props.label), showCount && countPosition === "top" && /* @__PURE__ */ React29.createElement(
1524
1549
  "div",
1525
1550
  {
1526
1551
  className: "hawa-text-start hawa-text-xs hawa-transition-all hawa-leading-none"
@@ -1529,7 +1554,7 @@ var Textarea = React30.forwardRef(
1529
1554
  "/",
1530
1555
  textareaProps == null ? void 0 : textareaProps.maxLength
1531
1556
  )),
1532
- isLoading ? /* @__PURE__ */ React30.createElement(Skeleton, { style: { height: 40 } }) : /* @__PURE__ */ React30.createElement(
1557
+ isLoading ? /* @__PURE__ */ React29.createElement(Skeleton, { style: { height: 40 } }) : /* @__PURE__ */ React29.createElement(
1533
1558
  "textarea",
1534
1559
  {
1535
1560
  ...textareaProps,
@@ -1540,7 +1565,7 @@ var Textarea = React30.forwardRef(
1540
1565
  ref
1541
1566
  }
1542
1567
  ),
1543
- /* @__PURE__ */ React30.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, !forceHideHelperText && /* @__PURE__ */ React30.createElement(
1568
+ /* @__PURE__ */ React29.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, !forceHideHelperText && /* @__PURE__ */ React29.createElement(
1544
1569
  "p",
1545
1570
  {
1546
1571
  className: cn(
@@ -1549,7 +1574,7 @@ var Textarea = React30.forwardRef(
1549
1574
  )
1550
1575
  },
1551
1576
  props.helperText
1552
- ), showCount && countPosition === "bottom" && /* @__PURE__ */ React30.createElement("div", { className: "hawa-text-start hawa-text-xs hawa-transition-all" }, (textareaProps == null ? void 0 : textareaProps.value) ? String(textareaProps == null ? void 0 : textareaProps.value).length : 0, "/", textareaProps == null ? void 0 : textareaProps.maxLength))
1577
+ ), showCount && countPosition === "bottom" && /* @__PURE__ */ React29.createElement("div", { className: "hawa-text-start hawa-text-xs hawa-transition-all" }, (textareaProps == null ? void 0 : textareaProps.value) ? String(textareaProps == null ? void 0 : textareaProps.value).length : 0, "/", textareaProps == null ? void 0 : textareaProps.maxLength))
1553
1578
  );
1554
1579
  }
1555
1580
  );