@sikka/hawa 0.13.16-next → 0.13.17-next

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.css CHANGED
@@ -890,6 +890,9 @@ input[type="number"]::-webkit-inner-spin-button,
890
890
  margin-top: 1rem;
891
891
  margin-bottom: 1rem;
892
892
  }
893
+ .-hawa-mt-4 {
894
+ margin-top: -1rem;
895
+ }
893
896
  .hawa--mt-1 {
894
897
  margin-top: -0.25rem;
895
898
  }
@@ -2417,10 +2420,6 @@ input[type="number"]::-webkit-inner-spin-button,
2417
2420
  --tw-text-opacity: 1;
2418
2421
  color: rgb(37 99 235 / var(--tw-text-opacity));
2419
2422
  }
2420
- .hawa-text-blue-700 {
2421
- --tw-text-opacity: 1;
2422
- color: rgb(29 78 216 / var(--tw-text-opacity));
2423
- }
2424
2423
  .hawa-text-card-foreground {
2425
2424
  color: hsl(var(--card-foreground));
2426
2425
  }
@@ -2469,10 +2468,6 @@ input[type="number"]::-webkit-inner-spin-button,
2469
2468
  --tw-text-opacity: 1;
2470
2469
  color: rgb(34 197 94 / var(--tw-text-opacity));
2471
2470
  }
2472
- .hawa-text-green-700 {
2473
- --tw-text-opacity: 1;
2474
- color: rgb(21 128 61 / var(--tw-text-opacity));
2475
- }
2476
2471
  .hawa-text-helper-color {
2477
2472
  color: hsl(var(--helper-text));
2478
2473
  }
@@ -2524,10 +2519,6 @@ input[type="number"]::-webkit-inner-spin-button,
2524
2519
  --tw-text-opacity: 1;
2525
2520
  color: rgb(239 68 68 / var(--tw-text-opacity));
2526
2521
  }
2527
- .hawa-text-red-700 {
2528
- --tw-text-opacity: 1;
2529
- color: rgb(185 28 28 / var(--tw-text-opacity));
2530
- }
2531
2522
  .hawa-text-secondary-foreground {
2532
2523
  color: hsl(var(--secondary-foreground));
2533
2524
  }
@@ -2547,10 +2538,6 @@ input[type="number"]::-webkit-inner-spin-button,
2547
2538
  --tw-text-opacity: 1;
2548
2539
  color: rgb(202 138 4 / var(--tw-text-opacity));
2549
2540
  }
2550
- .hawa-text-yellow-700 {
2551
- --tw-text-opacity: 1;
2552
- color: rgb(161 98 7 / var(--tw-text-opacity));
2553
- }
2554
2541
  .hawa-underline-offset-4 {
2555
2542
  text-underline-offset: 4px;
2556
2543
  }
@@ -2870,10 +2857,6 @@ body {
2870
2857
  .hover\:hawa-bg-accent:hover {
2871
2858
  background-color: hsl(var(--accent));
2872
2859
  }
2873
- .hover\:hawa-bg-blue-300:hover {
2874
- --tw-bg-opacity: 1;
2875
- background-color: rgb(147 197 253 / var(--tw-bg-opacity));
2876
- }
2877
2860
  .hover\:hawa-bg-destructive\/90:hover {
2878
2861
  background-color: hsl(var(--destructive) / 0.9);
2879
2862
  }
@@ -2889,10 +2872,6 @@ body {
2889
2872
  --tw-bg-opacity: 1;
2890
2873
  background-color: rgb(209 213 219 / var(--tw-bg-opacity));
2891
2874
  }
2892
- .hover\:hawa-bg-green-300:hover {
2893
- --tw-bg-opacity: 1;
2894
- background-color: rgb(134 239 172 / var(--tw-bg-opacity));
2895
- }
2896
2875
  .hover\:hawa-bg-muted:hover {
2897
2876
  background-color: hsl(var(--muted));
2898
2877
  }
@@ -2914,20 +2893,12 @@ body {
2914
2893
  .hover\:hawa-bg-primary\/90:hover {
2915
2894
  background-color: hsl(var(--primary) / 0.9);
2916
2895
  }
2917
- .hover\:hawa-bg-red-300:hover {
2918
- --tw-bg-opacity: 1;
2919
- background-color: rgb(252 165 165 / var(--tw-bg-opacity));
2920
- }
2921
2896
  .hover\:hawa-bg-secondary:hover {
2922
2897
  background-color: hsl(var(--secondary));
2923
2898
  }
2924
2899
  .hover\:hawa-bg-secondary\/80:hover {
2925
2900
  background-color: hsl(var(--secondary) / 0.8);
2926
2901
  }
2927
- .hover\:hawa-bg-yellow-300:hover {
2928
- --tw-bg-opacity: 1;
2929
- background-color: rgb(253 224 71 / var(--tw-bg-opacity));
2930
- }
2931
2902
  .hover\:hawa-text-accent-foreground:hover {
2932
2903
  color: hsl(var(--accent-foreground));
2933
2904
  }
@@ -3509,10 +3480,6 @@ body {
3509
3480
  --tw-bg-opacity: 1;
3510
3481
  background-color: rgb(0 0 0 / var(--tw-bg-opacity));
3511
3482
  }
3512
- :is(.hawa-dark .dark\:hawa-bg-blue-200) {
3513
- --tw-bg-opacity: 1;
3514
- background-color: rgb(191 219 254 / var(--tw-bg-opacity));
3515
- }
3516
3483
  :is(.hawa-dark .dark\:hawa-bg-blue-400) {
3517
3484
  --tw-bg-opacity: 1;
3518
3485
  background-color: rgb(96 165 250 / var(--tw-bg-opacity));
@@ -3521,10 +3488,6 @@ body {
3521
3488
  --tw-bg-opacity: 1;
3522
3489
  background-color: rgb(34 211 238 / var(--tw-bg-opacity));
3523
3490
  }
3524
- :is(.hawa-dark .dark\:hawa-bg-gray-200) {
3525
- --tw-bg-opacity: 1;
3526
- background-color: rgb(229 231 235 / var(--tw-bg-opacity));
3527
- }
3528
3491
  :is(.hawa-dark .dark\:hawa-bg-gray-600) {
3529
3492
  --tw-bg-opacity: 1;
3530
3493
  background-color: rgb(75 85 99 / var(--tw-bg-opacity));
@@ -3541,10 +3504,6 @@ body {
3541
3504
  --tw-bg-opacity: 1;
3542
3505
  background-color: rgb(17 24 39 / var(--tw-bg-opacity));
3543
3506
  }
3544
- :is(.hawa-dark .dark\:hawa-bg-green-200) {
3545
- --tw-bg-opacity: 1;
3546
- background-color: rgb(187 247 208 / var(--tw-bg-opacity));
3547
- }
3548
3507
  :is(.hawa-dark .dark\:hawa-bg-green-400) {
3549
3508
  --tw-bg-opacity: 1;
3550
3509
  background-color: rgb(74 222 128 / var(--tw-bg-opacity));
@@ -3572,18 +3531,10 @@ body {
3572
3531
  --tw-bg-opacity: 1;
3573
3532
  background-color: rgb(192 132 252 / var(--tw-bg-opacity));
3574
3533
  }
3575
- :is(.hawa-dark .dark\:hawa-bg-red-200) {
3576
- --tw-bg-opacity: 1;
3577
- background-color: rgb(254 202 202 / var(--tw-bg-opacity));
3578
- }
3579
3534
  :is(.hawa-dark .dark\:hawa-bg-red-400) {
3580
3535
  --tw-bg-opacity: 1;
3581
3536
  background-color: rgb(248 113 113 / var(--tw-bg-opacity));
3582
3537
  }
3583
- :is(.hawa-dark .dark\:hawa-bg-yellow-200) {
3584
- --tw-bg-opacity: 1;
3585
- background-color: rgb(254 240 138 / var(--tw-bg-opacity));
3586
- }
3587
3538
  :is(.hawa-dark .dark\:hawa-bg-yellow-400) {
3588
3539
  --tw-bg-opacity: 1;
3589
3540
  background-color: rgb(250 204 21 / var(--tw-bg-opacity));
@@ -3592,10 +3543,6 @@ body {
3592
3543
  --tw-text-opacity: 1;
3593
3544
  color: rgb(219 234 254 / var(--tw-text-opacity));
3594
3545
  }
3595
- :is(.hawa-dark .dark\:hawa-text-blue-800) {
3596
- --tw-text-opacity: 1;
3597
- color: rgb(30 64 175 / var(--tw-text-opacity));
3598
- }
3599
3546
  :is(.hawa-dark .dark\:hawa-text-cyan-800) {
3600
3547
  --tw-text-opacity: 1;
3601
3548
  color: rgb(21 94 117 / var(--tw-text-opacity));
@@ -3612,10 +3559,6 @@ body {
3612
3559
  --tw-text-opacity: 1;
3613
3560
  color: rgb(107 114 128 / var(--tw-text-opacity));
3614
3561
  }
3615
- :is(.hawa-dark .dark\:hawa-text-gray-800) {
3616
- --tw-text-opacity: 1;
3617
- color: rgb(31 41 55 / var(--tw-text-opacity));
3618
- }
3619
3562
  :is(.hawa-dark .dark\:hawa-text-green-800) {
3620
3563
  --tw-text-opacity: 1;
3621
3564
  color: rgb(22 101 52 / var(--tw-text-opacity));
@@ -3635,10 +3578,6 @@ body {
3635
3578
  --tw-text-opacity: 1;
3636
3579
  color: rgb(254 226 226 / var(--tw-text-opacity));
3637
3580
  }
3638
- :is(.hawa-dark .dark\:hawa-text-red-800) {
3639
- --tw-text-opacity: 1;
3640
- color: rgb(153 27 27 / var(--tw-text-opacity));
3641
- }
3642
3581
  :is(.hawa-dark .dark\:hawa-text-white) {
3643
3582
  --tw-text-opacity: 1;
3644
3583
  color: rgb(255 255 255 / var(--tw-text-opacity));
package/dist/index.js CHANGED
@@ -2406,8 +2406,8 @@ var Radio = function(_param) {
2406
2406
  htmlFor: opt.value.toString(),
2407
2407
  className: cn("hawa-text-sm hawa-font-medium dark:hawa-text-white", opt.disabled ? "hawa-text-gray-400" : "hawa-cursor-pointer hawa-text-gray-900")
2408
2408
  }, opt.label));
2409
- })), props.helperText && /* @__PURE__ */ import_react13.default.createElement("p", {
2410
- className: "hawa-text-xs hawa-text-helper-color"
2409
+ })), /* @__PURE__ */ import_react13.default.createElement("p", {
2410
+ className: cn("hawa-my-0 hawa-text-xs hawa-text-helper-color hawa-transition-all hawa-text-start", props.helperText ? "hawa-opacity-100 hawa-h-4" : "hawa-opacity-0 hawa-h-0")
2411
2411
  }, props.helperText));
2412
2412
  }
2413
2413
  };
@@ -2534,6 +2534,8 @@ var Alert = function(_param) {
2534
2534
  return /* @__PURE__ */ import_react16.default.createElement("div", {
2535
2535
  ref: alertRef
2536
2536
  }, /* @__PURE__ */ import_react16.default.createElement("div", {
2537
+ "data-testid": "alert",
2538
+ "aria-label": "Alert",
2537
2539
  role: "alert",
2538
2540
  dir: direction,
2539
2541
  className: (0, import_clsx6.default)("hawa-relative hawa-mb-4 hawa-flex hawa-flex-col hawa-rounded hawa-p-4 hawa-text-sm hawa-transition-all", styleVariant[severity], closed ? "hawa-opacity-0" : "hawa-opacity-100", className)
@@ -2633,9 +2635,9 @@ var Textarea = React27.forwardRef(function(_param, ref) {
2633
2635
  }, /* @__PURE__ */ React27.createElement("textarea", _object_spread({
2634
2636
  className: cn("hawa-flex hawa-min-h-[80px] hawa-w-full hawa-rounded-md hawa-border hawa-border-input hawa-bg-background hawa-px-3 hawa-py-2 hawa-text-sm hawa-ring-offset-background placeholder:hawa-text-muted-foreground focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2 disabled:hawa-cursor-not-allowed disabled:hawa-opacity-50", className),
2635
2637
  ref: ref
2636
- }, props)), props.helperText && /* @__PURE__ */ React27.createElement("p", {
2637
- className: "hawa-text-xs hawa-text-helper-color"
2638
- }, props.helperText));
2638
+ }, props)), /* @__PURE__ */ React27.createElement("p", {
2639
+ className: cn("hawa-my-0 hawa-text-xs hawa-text-helper-color hawa-transition-all hawa-text-start", props.helperText ? "hawa-opacity-100 hawa-h-4" : "hawa-opacity-0 hawa-h-0")
2640
+ }, props.helperText), " ");
2639
2641
  });
2640
2642
  Textarea.displayName = "Textarea";
2641
2643
  // components/elements/Slider.tsx
@@ -2728,7 +2730,7 @@ var ColorPicker = function(_param) {
2728
2730
  value: selectedColor,
2729
2731
  className: cn("hawa-block hawa-h-[40px] hawa-rounded hawa-border hawa-transition-all hawa-bg-background hawa-p-2 hawa-text-sm hawa-border-l-0 hawa-border-l-transparent hawa-rounded-l-none hawa-w-24")
2730
2732
  }, textInputProps)))), /* @__PURE__ */ import_react17.default.createElement("p", {
2731
- className: cn("hawa-my-0 hawa-text-xs hawa-text-helper-color hawa-transition-all", props.helperText ? "hawa-opacity-100 hawa-h-4" : "hawa-opacity-0 hawa-h-0")
2733
+ className: cn("hawa-my-0 hawa-text-xs hawa-text-helper-color hawa-transition-all hawa-text-start", props.helperText ? "hawa-opacity-100 hawa-h-4" : "hawa-opacity-0 hawa-h-0")
2732
2734
  }, props.helperText));
2733
2735
  };
2734
2736
  // components/elements/DestroyableCard.tsx
@@ -2846,8 +2848,8 @@ var PinInput = function(_param) {
2846
2848
  return e.target.select();
2847
2849
  }
2848
2850
  }, props));
2849
- })), props.helperText && /* @__PURE__ */ import_react19.default.createElement("p", {
2850
- className: "hawa-my-0 hawa-text-xs hawa-text-helper-color"
2851
+ })), /* @__PURE__ */ import_react19.default.createElement("p", {
2852
+ className: cn("hawa-my-0 hawa-text-xs hawa-text-helper-color hawa-transition-all hawa-text-start", props.helperText ? "hawa-opacity-100 hawa-h-4" : "hawa-opacity-0 hawa-h-0")
2851
2853
  }, props.helperText));
2852
2854
  };
2853
2855
  // components/elements/FileDropzone.tsx
@@ -4881,8 +4883,8 @@ var Select = function(_param) {
4881
4883
  onInputChange: function(newValue, action) {
4882
4884
  return props.onInputChange(newValue, action);
4883
4885
  }
4884
- }), props.helperText && /* @__PURE__ */ import_react21.default.createElement("p", {
4885
- className: "hawa-text-xs hawa-text-helper-color"
4886
+ }), /* @__PURE__ */ import_react21.default.createElement("p", {
4887
+ className: cn("hawa-my-0 hawa-text-xs hawa-text-helper-color hawa-transition-all hawa-text-start", props.helperText ? "hawa-opacity-100 hawa-h-4" : "hawa-opacity-0 hawa-h-0")
4886
4888
  }, props.helperText));
4887
4889
  };
4888
4890
  // components/elements/PhoneInput.tsx
@@ -4932,10 +4934,10 @@ var PhoneInput = function(props) {
4932
4934
  type: "tel",
4933
4935
  placeholder: "531045453"
4934
4936
  }))), /* @__PURE__ */ import_react22.default.createElement("p", {
4935
- className: cn("hawa-my-0 hawa-text-xs hawa-text-helper-color hawa-transition-all", props.helperText ? "hawa-opacity-100 hawa-h-4" : "hawa-opacity-0 hawa-h-0")
4937
+ className: cn("hawa-my-0 hawa-text-xs hawa-text-helper-color hawa-transition-all hawa-text-start", props.helperText ? "hawa-opacity-100 hawa-h-4" : "hawa-opacity-0 hawa-h-0")
4936
4938
  }, props.helperText));
4937
4939
  };
4938
- {}// components/elements/AppStores.tsx
4940
+ // components/elements/AppStores.tsx
4939
4941
  var import_react23 = __toESM(require("react"));
4940
4942
  var AppStores = function(props) {
4941
4943
  return /* @__PURE__ */ import_react23.default.createElement("div", {
@@ -5194,7 +5196,7 @@ var Input = function(_param) {
5194
5196
  })), props.iconInside && /* @__PURE__ */ import_react25.default.createElement("div", {
5195
5197
  className: "hawa-absolute hawa-end-2 hawa-top-[41px] hawa-mx-1 hawa--translate-y-1/2"
5196
5198
  }, props.iconInside), !forceHideHelperText && /* @__PURE__ */ import_react25.default.createElement("p", {
5197
- className: cn("hawa-my-0 hawa-text-xs hawa-text-helper-color hawa-transition-all", props.helperText ? "hawa-opacity-100 hawa-h-4" : "hawa-opacity-0 hawa-h-0")
5199
+ className: cn("hawa-my-0 hawa-text-xs hawa-text-helper-color hawa-transition-all hawa-text-start", props.helperText ? "hawa-opacity-100 hawa-h-4" : "hawa-opacity-0 hawa-h-0")
5198
5200
  }, props.helperText))));
5199
5201
  };
5200
5202
  // components/elements/DataTable.tsx
@@ -6191,13 +6193,14 @@ var Combobox = function(_param) {
6191
6193
  open: open,
6192
6194
  onOpenChange: setOpen
6193
6195
  }, /* @__PURE__ */ React51.createElement(PopoverTrigger, {
6196
+ asChild: true,
6194
6197
  disabled: props.isLoading || props.preview
6195
6198
  }, props.isLoading ? /* @__PURE__ */ React51.createElement("div", {
6196
6199
  className: "hawa-pb-2"
6197
6200
  }, /* @__PURE__ */ React51.createElement(Skeleton, {
6198
6201
  className: "hawa-h-[40px] hawa-w-full"
6199
6202
  })) : /* @__PURE__ */ React51.createElement("div", {
6200
- className: "hawa-flex hawa-flex-col hawa-gap-2 "
6203
+ className: "hawa-flex hawa-flex-col hawa-gap-2 hawa-items-start "
6201
6204
  }, /* @__PURE__ */ React51.createElement("div", {
6202
6205
  className: cn("hawa-absolute hawa-top-[22px] hawa-h-[0.8px] hawa-w-full hawa-bg-gray-200 hawa-transition-all dark:hawa-bg-gray-800", props.preview ? "hawa-opacity-100" : "hawa-opacity-0")
6203
6206
  }), /* @__PURE__ */ React51.createElement("button", {
@@ -6218,9 +6221,9 @@ var Combobox = function(_param) {
6218
6221
  }, /* @__PURE__ */ React51.createElement("path", {
6219
6222
  d: "m6 9 6 6 6-6"
6220
6223
  }))), /* @__PURE__ */ React51.createElement("p", {
6221
- className: cn("hawa-my-0 hawa-text-xs hawa-text-helper-color hawa-transition-all", props.helperText ? "hawa-opacity-100 hawa-h-4" : "hawa-opacity-0 hawa-h-0")
6222
- }, props.helperText), " ")), /* @__PURE__ */ React51.createElement(PopoverContent, {
6223
- className: cn("popover-w-parent")
6224
+ className: cn("hawa-my-0 hawa-text-xs hawa-text-helper-color hawa-transition-all hawa-text-start", props.helperText ? "hawa-opacity-100 hawa-h-4" : "hawa-opacity-0 hawa-h-0")
6225
+ }, props.helperText))), /* @__PURE__ */ React51.createElement(PopoverContent, {
6226
+ className: cn("popover-w-parent", props.helperText && "-hawa-mt-4")
6224
6227
  }, /* @__PURE__ */ React51.createElement(Command, null, !props.hideInput && /* @__PURE__ */ React51.createElement(CommandInput, {
6225
6228
  placeholder: props.searchPlaceholder
6226
6229
  }), /* @__PURE__ */ React51.createElement(CommandEmpty, null, "No framework found."), /* @__PURE__ */ React51.createElement(CommandGroup, {
@@ -6661,8 +6664,8 @@ var Stats = function(_param) {
6661
6664
  className: "hawa-text-2xl hawa-font-bold"
6662
6665
  }, props.number), props.isLoading && props.helperText ? /* @__PURE__ */ import_react33.default.createElement(Skeleton, {
6663
6666
  className: "hawa-mt-2 hawa-h-4 hawa-w-1/2"
6664
- }) : props.helperText && /* @__PURE__ */ import_react33.default.createElement("p", {
6665
- className: "hawa-text-xs hawa-text-muted-foreground"
6667
+ }) : /* @__PURE__ */ import_react33.default.createElement("p", {
6668
+ className: cn("hawa-my-0 hawa-text-xs hawa-text-helper-color hawa-transition-all hawa-text-start", props.helperText ? "hawa-opacity-100 hawa-h-4" : "hawa-opacity-0 hawa-h-0")
6666
6669
  }, props.helperText), props.isLoading && props.chart ? /* @__PURE__ */ import_react33.default.createElement(Skeleton, {
6667
6670
  className: "hawa-mt-2 hawa-h-4 hawa-w-1/2"
6668
6671
  }) : props.chart));
package/dist/index.mjs CHANGED
@@ -1885,7 +1885,16 @@ var Radio = ({
1885
1885
  },
1886
1886
  opt.label
1887
1887
  )
1888
- ))), props.helperText && /* @__PURE__ */ React22.createElement("p", { className: "hawa-text-xs hawa-text-helper-color" }, props.helperText));
1888
+ ))), /* @__PURE__ */ React22.createElement(
1889
+ "p",
1890
+ {
1891
+ className: cn(
1892
+ "hawa-my-0 hawa-text-xs hawa-text-helper-color hawa-transition-all hawa-text-start",
1893
+ props.helperText ? "hawa-opacity-100 hawa-h-4" : "hawa-opacity-0 hawa-h-0"
1894
+ )
1895
+ },
1896
+ props.helperText
1897
+ ));
1889
1898
  }
1890
1899
  };
1891
1900
 
@@ -2049,6 +2058,8 @@ var Alert = ({
2049
2058
  return /* @__PURE__ */ React25.createElement("div", { ref: alertRef }, /* @__PURE__ */ React25.createElement(
2050
2059
  "div",
2051
2060
  {
2061
+ "data-testid": "alert",
2062
+ "aria-label": "Alert",
2052
2063
  role: "alert",
2053
2064
  dir: direction,
2054
2065
  className: clsx6(
@@ -2187,7 +2198,16 @@ var Textarea = React27.forwardRef(
2187
2198
  ref,
2188
2199
  ...props
2189
2200
  }
2190
- ), props.helperText && /* @__PURE__ */ React27.createElement("p", { className: "hawa-text-xs hawa-text-helper-color" }, props.helperText));
2201
+ ), /* @__PURE__ */ React27.createElement(
2202
+ "p",
2203
+ {
2204
+ className: cn(
2205
+ "hawa-my-0 hawa-text-xs hawa-text-helper-color hawa-transition-all hawa-text-start",
2206
+ props.helperText ? "hawa-opacity-100 hawa-h-4" : "hawa-opacity-0 hawa-h-0"
2207
+ )
2208
+ },
2209
+ props.helperText
2210
+ ), " ");
2191
2211
  }
2192
2212
  );
2193
2213
  Textarea.displayName = "Textarea";
@@ -2294,7 +2314,7 @@ var ColorPicker = ({
2294
2314
  "p",
2295
2315
  {
2296
2316
  className: cn(
2297
- "hawa-my-0 hawa-text-xs hawa-text-helper-color hawa-transition-all",
2317
+ "hawa-my-0 hawa-text-xs hawa-text-helper-color hawa-transition-all hawa-text-start",
2298
2318
  props.helperText ? "hawa-opacity-100 hawa-h-4" : "hawa-opacity-0 hawa-h-0"
2299
2319
  )
2300
2320
  },
@@ -2446,7 +2466,16 @@ var PinInput = ({
2446
2466
  ...props
2447
2467
  }
2448
2468
  ))
2449
- ), props.helperText && /* @__PURE__ */ React31.createElement("p", { className: "hawa-my-0 hawa-text-xs hawa-text-helper-color" }, props.helperText));
2469
+ ), /* @__PURE__ */ React31.createElement(
2470
+ "p",
2471
+ {
2472
+ className: cn(
2473
+ "hawa-my-0 hawa-text-xs hawa-text-helper-color hawa-transition-all hawa-text-start",
2474
+ props.helperText ? "hawa-opacity-100 hawa-h-4" : "hawa-opacity-0 hawa-h-0"
2475
+ )
2476
+ },
2477
+ props.helperText
2478
+ ));
2450
2479
  };
2451
2480
 
2452
2481
  // components/elements/FileDropzone.tsx
@@ -4498,7 +4527,16 @@ var Select = ({ labelKey = "label", ...props }) => {
4498
4527
  onInputChange: (newValue, action) => props.onInputChange(newValue, action)
4499
4528
  }
4500
4529
  ),
4501
- props.helperText && /* @__PURE__ */ React33.createElement("p", { className: "hawa-text-xs hawa-text-helper-color" }, props.helperText)
4530
+ /* @__PURE__ */ React33.createElement(
4531
+ "p",
4532
+ {
4533
+ className: cn(
4534
+ "hawa-my-0 hawa-text-xs hawa-text-helper-color hawa-transition-all hawa-text-start",
4535
+ props.helperText ? "hawa-opacity-100 hawa-h-4" : "hawa-opacity-0 hawa-h-0"
4536
+ )
4537
+ },
4538
+ props.helperText
4539
+ )
4502
4540
  );
4503
4541
  };
4504
4542
 
@@ -4552,15 +4590,13 @@ var PhoneInput = (props) => {
4552
4590
  "p",
4553
4591
  {
4554
4592
  className: cn(
4555
- "hawa-my-0 hawa-text-xs hawa-text-helper-color hawa-transition-all",
4593
+ "hawa-my-0 hawa-text-xs hawa-text-helper-color hawa-transition-all hawa-text-start",
4556
4594
  props.helperText ? "hawa-opacity-100 hawa-h-4" : "hawa-opacity-0 hawa-h-0"
4557
4595
  )
4558
4596
  },
4559
4597
  props.helperText
4560
4598
  ));
4561
4599
  };
4562
- {
4563
- }
4564
4600
 
4565
4601
  // components/elements/AppStores.tsx
4566
4602
  import React35 from "react";
@@ -4865,7 +4901,7 @@ var Input = ({
4865
4901
  "p",
4866
4902
  {
4867
4903
  className: cn(
4868
- "hawa-my-0 hawa-text-xs hawa-text-helper-color hawa-transition-all",
4904
+ "hawa-my-0 hawa-text-xs hawa-text-helper-color hawa-transition-all hawa-text-start",
4869
4905
  props.helperText ? "hawa-opacity-100 hawa-h-4" : "hawa-opacity-0 hawa-h-0"
4870
4906
  )
4871
4907
  },
@@ -5907,7 +5943,7 @@ var Combobox = ({
5907
5943
  )
5908
5944
  },
5909
5945
  props.label && /* @__PURE__ */ React51.createElement(Label2, null, props.label),
5910
- /* @__PURE__ */ React51.createElement(PopoverPrimitive2.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React51.createElement(PopoverTrigger, { disabled: props.isLoading || props.preview }, props.isLoading ? /* @__PURE__ */ React51.createElement("div", { className: "hawa-pb-2" }, /* @__PURE__ */ React51.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ React51.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2 " }, /* @__PURE__ */ React51.createElement(
5946
+ /* @__PURE__ */ React51.createElement(PopoverPrimitive2.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React51.createElement(PopoverTrigger, { asChild: true, disabled: props.isLoading || props.preview }, props.isLoading ? /* @__PURE__ */ React51.createElement("div", { className: "hawa-pb-2" }, /* @__PURE__ */ React51.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ React51.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2 hawa-items-start " }, /* @__PURE__ */ React51.createElement(
5911
5947
  "div",
5912
5948
  {
5913
5949
  className: cn(
@@ -5950,47 +5986,53 @@ var Combobox = ({
5950
5986
  "p",
5951
5987
  {
5952
5988
  className: cn(
5953
- "hawa-my-0 hawa-text-xs hawa-text-helper-color hawa-transition-all",
5989
+ "hawa-my-0 hawa-text-xs hawa-text-helper-color hawa-transition-all hawa-text-start",
5954
5990
  props.helperText ? "hawa-opacity-100 hawa-h-4" : "hawa-opacity-0 hawa-h-0"
5955
5991
  )
5956
5992
  },
5957
5993
  props.helperText
5958
- ), " ")), /* @__PURE__ */ React51.createElement(PopoverContent, { className: cn("popover-w-parent") }, /* @__PURE__ */ React51.createElement(Command, null, !props.hideInput && /* @__PURE__ */ React51.createElement(CommandInput, { placeholder: props.searchPlaceholder }), /* @__PURE__ */ React51.createElement(CommandEmpty, null, "No framework found."), /* @__PURE__ */ React51.createElement(CommandGroup, { className: " hawa-max-h-[200px] hawa-overflow-y-auto" }, data.map((item) => /* @__PURE__ */ React51.createElement(
5959
- CommandItem,
5994
+ ))), /* @__PURE__ */ React51.createElement(
5995
+ PopoverContent,
5960
5996
  {
5961
- key: getProperty(item, valueKey),
5962
- onSelect: () => {
5963
- const newValue = getProperty(item, valueKey);
5964
- setValue(newValue === value ? "" : newValue);
5965
- if (props.onChange) {
5966
- props.onChange(
5967
- newValue === value ? "" : newValue
5968
- );
5969
- }
5970
- setOpen(false);
5971
- }
5997
+ className: cn("popover-w-parent", props.helperText && "-hawa-mt-4")
5972
5998
  },
5973
- /* @__PURE__ */ React51.createElement(
5974
- "svg",
5999
+ /* @__PURE__ */ React51.createElement(Command, null, !props.hideInput && /* @__PURE__ */ React51.createElement(CommandInput, { placeholder: props.searchPlaceholder }), /* @__PURE__ */ React51.createElement(CommandEmpty, null, "No framework found."), /* @__PURE__ */ React51.createElement(CommandGroup, { className: " hawa-max-h-[200px] hawa-overflow-y-auto" }, data.map((item) => /* @__PURE__ */ React51.createElement(
6000
+ CommandItem,
5975
6001
  {
5976
- xmlns: "http://www.w3.org/2000/svg",
5977
- width: "24",
5978
- height: "24",
5979
- viewBox: "0 0 24 24",
5980
- fill: "none",
5981
- stroke: "currentColor",
5982
- strokeWidth: "2",
5983
- strokeLinecap: "round",
5984
- strokeLinejoin: "round",
5985
- className: cn(
5986
- "hawa-mr-2 hawa-h-4 hawa-w-4",
5987
- value === getProperty(item, valueKey) ? "hawa-opacity-100" : "hawa-opacity-0"
5988
- )
6002
+ key: getProperty(item, valueKey),
6003
+ onSelect: () => {
6004
+ const newValue = getProperty(item, valueKey);
6005
+ setValue(newValue === value ? "" : newValue);
6006
+ if (props.onChange) {
6007
+ props.onChange(
6008
+ newValue === value ? "" : newValue
6009
+ );
6010
+ }
6011
+ setOpen(false);
6012
+ }
5989
6013
  },
5990
- /* @__PURE__ */ React51.createElement("polyline", { points: "20 6 9 17 4 12" })
5991
- ),
5992
- getProperty(item, labelKey)
5993
- ))))))
6014
+ /* @__PURE__ */ React51.createElement(
6015
+ "svg",
6016
+ {
6017
+ xmlns: "http://www.w3.org/2000/svg",
6018
+ width: "24",
6019
+ height: "24",
6020
+ viewBox: "0 0 24 24",
6021
+ fill: "none",
6022
+ stroke: "currentColor",
6023
+ strokeWidth: "2",
6024
+ strokeLinecap: "round",
6025
+ strokeLinejoin: "round",
6026
+ className: cn(
6027
+ "hawa-mr-2 hawa-h-4 hawa-w-4",
6028
+ value === getProperty(item, valueKey) ? "hawa-opacity-100" : "hawa-opacity-0"
6029
+ )
6030
+ },
6031
+ /* @__PURE__ */ React51.createElement("polyline", { points: "20 6 9 17 4 12" })
6032
+ ),
6033
+ getProperty(item, labelKey)
6034
+ ))))
6035
+ ))
5994
6036
  );
5995
6037
  };
5996
6038
 
@@ -6459,7 +6501,16 @@ var Stats = ({ variant = "default", ...props }) => {
6459
6501
  className: cn(props.className)
6460
6502
  },
6461
6503
  /* @__PURE__ */ React57.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between hawa-p-4 hawa-items-center" }, /* @__PURE__ */ React57.createElement(CardTitle, { className: "hawa-text-sm hawa-font-medium" }, props.label), props.icon && /* @__PURE__ */ React57.createElement("span", null, props.icon)),
6462
- /* @__PURE__ */ React57.createElement(CardContent, null, props.isLoading ? /* @__PURE__ */ React57.createElement(Skeleton, { className: "hawa-h-8 hawa-w-3/4" }) : /* @__PURE__ */ React57.createElement("div", { className: "hawa-text-2xl hawa-font-bold" }, props.number), props.isLoading && props.helperText ? /* @__PURE__ */ React57.createElement(Skeleton, { className: "hawa-mt-2 hawa-h-4 hawa-w-1/2" }) : props.helperText && /* @__PURE__ */ React57.createElement("p", { className: "hawa-text-xs hawa-text-muted-foreground" }, props.helperText), props.isLoading && props.chart ? /* @__PURE__ */ React57.createElement(Skeleton, { className: "hawa-mt-2 hawa-h-4 hawa-w-1/2" }) : props.chart)
6504
+ /* @__PURE__ */ React57.createElement(CardContent, null, props.isLoading ? /* @__PURE__ */ React57.createElement(Skeleton, { className: "hawa-h-8 hawa-w-3/4" }) : /* @__PURE__ */ React57.createElement("div", { className: "hawa-text-2xl hawa-font-bold" }, props.number), props.isLoading && props.helperText ? /* @__PURE__ */ React57.createElement(Skeleton, { className: "hawa-mt-2 hawa-h-4 hawa-w-1/2" }) : /* @__PURE__ */ React57.createElement(
6505
+ "p",
6506
+ {
6507
+ className: cn(
6508
+ "hawa-my-0 hawa-text-xs hawa-text-helper-color hawa-transition-all hawa-text-start",
6509
+ props.helperText ? "hawa-opacity-100 hawa-h-4" : "hawa-opacity-0 hawa-h-0"
6510
+ )
6511
+ },
6512
+ props.helperText
6513
+ ), props.isLoading && props.chart ? /* @__PURE__ */ React57.createElement(Skeleton, { className: "hawa-mt-2 hawa-h-4 hawa-w-1/2" }) : props.chart)
6463
6514
  );
6464
6515
  };
6465
6516
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.13.16-next",
3
+ "version": "0.13.17-next",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {