@sikka/hawa 0.13.16-next → 0.13.19-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.d.mts CHANGED
@@ -106,6 +106,7 @@ interface DropdownMenuProps {
106
106
  size?: "default" | "sm";
107
107
  onItemSelect?: any;
108
108
  onOpenChange?: any;
109
+ header?: React$1.ReactNode;
109
110
  open?: any;
110
111
  }
111
112
  declare const DropdownMenu: React$1.FC<DropdownMenuProps>;
package/dist/index.d.ts CHANGED
@@ -106,6 +106,7 @@ interface DropdownMenuProps {
106
106
  size?: "default" | "sm";
107
107
  onItemSelect?: any;
108
108
  onOpenChange?: any;
109
+ header?: React$1.ReactNode;
109
110
  open?: any;
110
111
  }
111
112
  declare const DropdownMenu: React$1.FC<DropdownMenuProps>;
package/dist/index.js CHANGED
@@ -1316,7 +1316,7 @@ var DropdownMenuShortcut = function(_param) {
1316
1316
  };
1317
1317
  DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
1318
1318
  var DropdownMenu = function(param) {
1319
- var trigger = param.trigger, items = param.items, direction = param.direction, sideOffset = param.sideOffset, side = param.side, className = param.className, triggerClassname = param.triggerClassname, align = param.align, alignOffset = param.alignOffset, onItemSelect = param.onItemSelect, _param_size = param.size, size = _param_size === void 0 ? "default" : _param_size, _param_width = param.width, width = _param_width === void 0 ? "default" : _param_width, onOpenChange = param.onOpenChange, open = param.open;
1319
+ var trigger = param.trigger, items = param.items, direction = param.direction, sideOffset = param.sideOffset, side = param.side, className = param.className, triggerClassname = param.triggerClassname, align = param.align, alignOffset = param.alignOffset, onItemSelect = param.onItemSelect, _param_size = param.size, size = _param_size === void 0 ? "default" : _param_size, _param_width = param.width, width = _param_width === void 0 ? "default" : _param_width, header = param.header, onOpenChange = param.onOpenChange, open = param.open;
1320
1320
  var widthStyles = {
1321
1321
  default: "hawa-min-w-[8rem]",
1322
1322
  sm: "hawa-w-fit",
@@ -1341,7 +1341,7 @@ var DropdownMenu = function(param) {
1341
1341
  className: cn(className, widthStyles[width], "hawa-flex hawa-flex-col hawa-gap-1"),
1342
1342
  align: align,
1343
1343
  alignOffset: alignOffset
1344
- }, items && items.map(function(item, index) {
1344
+ }, header && header, items && items.map(function(item, index) {
1345
1345
  if (item.itemType === "separator") {
1346
1346
  return /* @__PURE__ */ React7.createElement(DropdownMenuSeparator, {
1347
1347
  key: index
@@ -1559,9 +1559,7 @@ var SplitButton = function(_param) /* @__PURE__ */ {
1559
1559
  className: cn("hawa-h-fit hawa-flex hawa-justify-center", direction === "rtl" ? "hawa-flex-row-reverse" : "hawa-flex-row")
1560
1560
  }, /* @__PURE__ */ React11.createElement(Button, {
1561
1561
  variant: variant,
1562
- onClick: function() {
1563
- return console.log("btn clicked");
1564
- },
1562
+ onClick: props.onClick,
1565
1563
  className: cn(direction === "rtl" ? "hawa-rounded-r-none" : "hawa-rounded-l-none", props.className)
1566
1564
  }, children), /* @__PURE__ */ React11.createElement(DropdownMenu, {
1567
1565
  size: "sm",
@@ -2406,8 +2404,8 @@ var Radio = function(_param) {
2406
2404
  htmlFor: opt.value.toString(),
2407
2405
  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
2406
  }, opt.label));
2409
- })), props.helperText && /* @__PURE__ */ import_react13.default.createElement("p", {
2410
- className: "hawa-text-xs hawa-text-helper-color"
2407
+ })), /* @__PURE__ */ import_react13.default.createElement("p", {
2408
+ 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
2409
  }, props.helperText));
2412
2410
  }
2413
2411
  };
@@ -2534,6 +2532,8 @@ var Alert = function(_param) {
2534
2532
  return /* @__PURE__ */ import_react16.default.createElement("div", {
2535
2533
  ref: alertRef
2536
2534
  }, /* @__PURE__ */ import_react16.default.createElement("div", {
2535
+ "data-testid": "alert",
2536
+ "aria-label": "Alert",
2537
2537
  role: "alert",
2538
2538
  dir: direction,
2539
2539
  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 +2633,9 @@ var Textarea = React27.forwardRef(function(_param, ref) {
2633
2633
  }, /* @__PURE__ */ React27.createElement("textarea", _object_spread({
2634
2634
  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
2635
  ref: ref
2636
- }, props)), props.helperText && /* @__PURE__ */ React27.createElement("p", {
2637
- className: "hawa-text-xs hawa-text-helper-color"
2638
- }, props.helperText));
2636
+ }, props)), /* @__PURE__ */ React27.createElement("p", {
2637
+ 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")
2638
+ }, props.helperText), " ");
2639
2639
  });
2640
2640
  Textarea.displayName = "Textarea";
2641
2641
  // components/elements/Slider.tsx
@@ -2728,7 +2728,7 @@ var ColorPicker = function(_param) {
2728
2728
  value: selectedColor,
2729
2729
  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
2730
  }, 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")
2731
+ 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
2732
  }, props.helperText));
2733
2733
  };
2734
2734
  // components/elements/DestroyableCard.tsx
@@ -2846,8 +2846,8 @@ var PinInput = function(_param) {
2846
2846
  return e.target.select();
2847
2847
  }
2848
2848
  }, props));
2849
- })), props.helperText && /* @__PURE__ */ import_react19.default.createElement("p", {
2850
- className: "hawa-my-0 hawa-text-xs hawa-text-helper-color"
2849
+ })), /* @__PURE__ */ import_react19.default.createElement("p", {
2850
+ 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
2851
  }, props.helperText));
2852
2852
  };
2853
2853
  // components/elements/FileDropzone.tsx
@@ -4881,8 +4881,8 @@ var Select = function(_param) {
4881
4881
  onInputChange: function(newValue, action) {
4882
4882
  return props.onInputChange(newValue, action);
4883
4883
  }
4884
- }), props.helperText && /* @__PURE__ */ import_react21.default.createElement("p", {
4885
- className: "hawa-text-xs hawa-text-helper-color"
4884
+ }), /* @__PURE__ */ import_react21.default.createElement("p", {
4885
+ 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
4886
  }, props.helperText));
4887
4887
  };
4888
4888
  // components/elements/PhoneInput.tsx
@@ -4932,10 +4932,10 @@ var PhoneInput = function(props) {
4932
4932
  type: "tel",
4933
4933
  placeholder: "531045453"
4934
4934
  }))), /* @__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")
4935
+ 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
4936
  }, props.helperText));
4937
4937
  };
4938
- {}// components/elements/AppStores.tsx
4938
+ // components/elements/AppStores.tsx
4939
4939
  var import_react23 = __toESM(require("react"));
4940
4940
  var AppStores = function(props) {
4941
4941
  return /* @__PURE__ */ import_react23.default.createElement("div", {
@@ -5194,7 +5194,7 @@ var Input = function(_param) {
5194
5194
  })), props.iconInside && /* @__PURE__ */ import_react25.default.createElement("div", {
5195
5195
  className: "hawa-absolute hawa-end-2 hawa-top-[41px] hawa-mx-1 hawa--translate-y-1/2"
5196
5196
  }, 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")
5197
+ 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
5198
  }, props.helperText))));
5199
5199
  };
5200
5200
  // components/elements/DataTable.tsx
@@ -5768,7 +5768,6 @@ var TabsList = React47.forwardRef(function(_param, ref) {
5768
5768
  "className"
5769
5769
  ]);
5770
5770
  var orientation = React47.useContext(TabsContext).orientation;
5771
- console.log("orient ", orientation);
5772
5771
  return /* @__PURE__ */ React47.createElement(TabsPrimitive.List, _object_spread({
5773
5772
  ref: ref,
5774
5773
  className: cn("hawa-flex hawa-w-fit hawa-flex-wrap hawa-items-center hawa-justify-start hawa-gap-1 hawa-rounded hawa-border hawa-bg-muted hawa-p-1 hawa-text-muted-foreground dark:hawa-border-primary/10", orientation === "vertical" ? "hawa-flex-col" : "hawa-flex-row", className)
@@ -6191,13 +6190,14 @@ var Combobox = function(_param) {
6191
6190
  open: open,
6192
6191
  onOpenChange: setOpen
6193
6192
  }, /* @__PURE__ */ React51.createElement(PopoverTrigger, {
6193
+ asChild: true,
6194
6194
  disabled: props.isLoading || props.preview
6195
6195
  }, props.isLoading ? /* @__PURE__ */ React51.createElement("div", {
6196
6196
  className: "hawa-pb-2"
6197
6197
  }, /* @__PURE__ */ React51.createElement(Skeleton, {
6198
6198
  className: "hawa-h-[40px] hawa-w-full"
6199
6199
  })) : /* @__PURE__ */ React51.createElement("div", {
6200
- className: "hawa-flex hawa-flex-col hawa-gap-2 "
6200
+ className: "hawa-flex hawa-flex-col hawa-gap-2 hawa-items-start "
6201
6201
  }, /* @__PURE__ */ React51.createElement("div", {
6202
6202
  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
6203
  }), /* @__PURE__ */ React51.createElement("button", {
@@ -6218,9 +6218,9 @@ var Combobox = function(_param) {
6218
6218
  }, /* @__PURE__ */ React51.createElement("path", {
6219
6219
  d: "m6 9 6 6 6-6"
6220
6220
  }))), /* @__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")
6221
+ 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")
6222
+ }, props.helperText))), /* @__PURE__ */ React51.createElement(PopoverContent, {
6223
+ className: cn("popover-w-parent", props.helperText && "-hawa-mt-4")
6224
6224
  }, /* @__PURE__ */ React51.createElement(Command, null, !props.hideInput && /* @__PURE__ */ React51.createElement(CommandInput, {
6225
6225
  placeholder: props.searchPlaceholder
6226
6226
  }), /* @__PURE__ */ React51.createElement(CommandEmpty, null, "No framework found."), /* @__PURE__ */ React51.createElement(CommandGroup, {
@@ -6661,8 +6661,8 @@ var Stats = function(_param) {
6661
6661
  className: "hawa-text-2xl hawa-font-bold"
6662
6662
  }, props.number), props.isLoading && props.helperText ? /* @__PURE__ */ import_react33.default.createElement(Skeleton, {
6663
6663
  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"
6664
+ }) : /* @__PURE__ */ import_react33.default.createElement("p", {
6665
+ 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
6666
  }, props.helperText), props.isLoading && props.chart ? /* @__PURE__ */ import_react33.default.createElement(Skeleton, {
6667
6667
  className: "hawa-mt-2 hawa-h-4 hawa-w-1/2"
6668
6668
  }) : props.chart));
@@ -8674,7 +8674,6 @@ var FeedbackEmoji = function(props) {
8674
8674
  return _ts_generator(this, function(_state) {
8675
8675
  switch(_state.label){
8676
8676
  case 0:
8677
- console.log("submitting");
8678
8677
  if (!feedbackText) return [
8679
8678
  3,
8680
8679
  6
@@ -8785,7 +8784,6 @@ var FeedbackEmoji = function(props) {
8785
8784
  setHelperText(false);
8786
8785
  }
8787
8786
  setFeedbackText(e.target.value);
8788
- console.log("changing to", e.target.value);
8789
8787
  }
8790
8788
  })
8791
8789
  }, /* @__PURE__ */ import_react52.default.createElement("span", {
package/dist/index.mjs CHANGED
@@ -606,6 +606,7 @@ var DropdownMenu = ({
606
606
  onItemSelect,
607
607
  size = "default",
608
608
  width = "default",
609
+ header,
609
610
  onOpenChange,
610
611
  open
611
612
  }) => {
@@ -641,6 +642,7 @@ var DropdownMenu = ({
641
642
  align,
642
643
  alignOffset
643
644
  },
645
+ header && header,
644
646
  items && items.map((item, index) => {
645
647
  if (item.itemType === "separator") {
646
648
  return /* @__PURE__ */ React7.createElement(DropdownMenuSeparator, { key: index });
@@ -897,7 +899,7 @@ var SplitButton = ({
897
899
  Button,
898
900
  {
899
901
  variant,
900
- onClick: () => console.log("btn clicked"),
902
+ onClick: props.onClick,
901
903
  className: cn(
902
904
  direction === "rtl" ? "hawa-rounded-r-none" : "hawa-rounded-l-none",
903
905
  props.className
@@ -1885,7 +1887,16 @@ var Radio = ({
1885
1887
  },
1886
1888
  opt.label
1887
1889
  )
1888
- ))), props.helperText && /* @__PURE__ */ React22.createElement("p", { className: "hawa-text-xs hawa-text-helper-color" }, props.helperText));
1890
+ ))), /* @__PURE__ */ React22.createElement(
1891
+ "p",
1892
+ {
1893
+ className: cn(
1894
+ "hawa-my-0 hawa-text-xs hawa-text-helper-color hawa-transition-all hawa-text-start",
1895
+ props.helperText ? "hawa-opacity-100 hawa-h-4" : "hawa-opacity-0 hawa-h-0"
1896
+ )
1897
+ },
1898
+ props.helperText
1899
+ ));
1889
1900
  }
1890
1901
  };
1891
1902
 
@@ -2049,6 +2060,8 @@ var Alert = ({
2049
2060
  return /* @__PURE__ */ React25.createElement("div", { ref: alertRef }, /* @__PURE__ */ React25.createElement(
2050
2061
  "div",
2051
2062
  {
2063
+ "data-testid": "alert",
2064
+ "aria-label": "Alert",
2052
2065
  role: "alert",
2053
2066
  dir: direction,
2054
2067
  className: clsx6(
@@ -2187,7 +2200,16 @@ var Textarea = React27.forwardRef(
2187
2200
  ref,
2188
2201
  ...props
2189
2202
  }
2190
- ), props.helperText && /* @__PURE__ */ React27.createElement("p", { className: "hawa-text-xs hawa-text-helper-color" }, props.helperText));
2203
+ ), /* @__PURE__ */ React27.createElement(
2204
+ "p",
2205
+ {
2206
+ className: cn(
2207
+ "hawa-my-0 hawa-text-xs hawa-text-helper-color hawa-transition-all hawa-text-start",
2208
+ props.helperText ? "hawa-opacity-100 hawa-h-4" : "hawa-opacity-0 hawa-h-0"
2209
+ )
2210
+ },
2211
+ props.helperText
2212
+ ), " ");
2191
2213
  }
2192
2214
  );
2193
2215
  Textarea.displayName = "Textarea";
@@ -2294,7 +2316,7 @@ var ColorPicker = ({
2294
2316
  "p",
2295
2317
  {
2296
2318
  className: cn(
2297
- "hawa-my-0 hawa-text-xs hawa-text-helper-color hawa-transition-all",
2319
+ "hawa-my-0 hawa-text-xs hawa-text-helper-color hawa-transition-all hawa-text-start",
2298
2320
  props.helperText ? "hawa-opacity-100 hawa-h-4" : "hawa-opacity-0 hawa-h-0"
2299
2321
  )
2300
2322
  },
@@ -2446,7 +2468,16 @@ var PinInput = ({
2446
2468
  ...props
2447
2469
  }
2448
2470
  ))
2449
- ), props.helperText && /* @__PURE__ */ React31.createElement("p", { className: "hawa-my-0 hawa-text-xs hawa-text-helper-color" }, props.helperText));
2471
+ ), /* @__PURE__ */ React31.createElement(
2472
+ "p",
2473
+ {
2474
+ className: cn(
2475
+ "hawa-my-0 hawa-text-xs hawa-text-helper-color hawa-transition-all hawa-text-start",
2476
+ props.helperText ? "hawa-opacity-100 hawa-h-4" : "hawa-opacity-0 hawa-h-0"
2477
+ )
2478
+ },
2479
+ props.helperText
2480
+ ));
2450
2481
  };
2451
2482
 
2452
2483
  // components/elements/FileDropzone.tsx
@@ -4498,7 +4529,16 @@ var Select = ({ labelKey = "label", ...props }) => {
4498
4529
  onInputChange: (newValue, action) => props.onInputChange(newValue, action)
4499
4530
  }
4500
4531
  ),
4501
- props.helperText && /* @__PURE__ */ React33.createElement("p", { className: "hawa-text-xs hawa-text-helper-color" }, props.helperText)
4532
+ /* @__PURE__ */ React33.createElement(
4533
+ "p",
4534
+ {
4535
+ className: cn(
4536
+ "hawa-my-0 hawa-text-xs hawa-text-helper-color hawa-transition-all hawa-text-start",
4537
+ props.helperText ? "hawa-opacity-100 hawa-h-4" : "hawa-opacity-0 hawa-h-0"
4538
+ )
4539
+ },
4540
+ props.helperText
4541
+ )
4502
4542
  );
4503
4543
  };
4504
4544
 
@@ -4552,15 +4592,13 @@ var PhoneInput = (props) => {
4552
4592
  "p",
4553
4593
  {
4554
4594
  className: cn(
4555
- "hawa-my-0 hawa-text-xs hawa-text-helper-color hawa-transition-all",
4595
+ "hawa-my-0 hawa-text-xs hawa-text-helper-color hawa-transition-all hawa-text-start",
4556
4596
  props.helperText ? "hawa-opacity-100 hawa-h-4" : "hawa-opacity-0 hawa-h-0"
4557
4597
  )
4558
4598
  },
4559
4599
  props.helperText
4560
4600
  ));
4561
4601
  };
4562
- {
4563
- }
4564
4602
 
4565
4603
  // components/elements/AppStores.tsx
4566
4604
  import React35 from "react";
@@ -4865,7 +4903,7 @@ var Input = ({
4865
4903
  "p",
4866
4904
  {
4867
4905
  className: cn(
4868
- "hawa-my-0 hawa-text-xs hawa-text-helper-color hawa-transition-all",
4906
+ "hawa-my-0 hawa-text-xs hawa-text-helper-color hawa-transition-all hawa-text-start",
4869
4907
  props.helperText ? "hawa-opacity-100 hawa-h-4" : "hawa-opacity-0 hawa-h-0"
4870
4908
  )
4871
4909
  },
@@ -5462,7 +5500,6 @@ var Tabs = React47.forwardRef(({ className, orientation, ...props }, ref) => /*
5462
5500
  Tabs.displayName = TabsPrimitive.Root.displayName;
5463
5501
  var TabsList = React47.forwardRef(({ className, ...props }, ref) => {
5464
5502
  const { orientation } = React47.useContext(TabsContext);
5465
- console.log("orient ", orientation);
5466
5503
  return /* @__PURE__ */ React47.createElement(
5467
5504
  TabsPrimitive.List,
5468
5505
  {
@@ -5907,7 +5944,7 @@ var Combobox = ({
5907
5944
  )
5908
5945
  },
5909
5946
  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(
5947
+ /* @__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
5948
  "div",
5912
5949
  {
5913
5950
  className: cn(
@@ -5950,47 +5987,53 @@ var Combobox = ({
5950
5987
  "p",
5951
5988
  {
5952
5989
  className: cn(
5953
- "hawa-my-0 hawa-text-xs hawa-text-helper-color hawa-transition-all",
5990
+ "hawa-my-0 hawa-text-xs hawa-text-helper-color hawa-transition-all hawa-text-start",
5954
5991
  props.helperText ? "hawa-opacity-100 hawa-h-4" : "hawa-opacity-0 hawa-h-0"
5955
5992
  )
5956
5993
  },
5957
5994
  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,
5995
+ ))), /* @__PURE__ */ React51.createElement(
5996
+ PopoverContent,
5960
5997
  {
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
- }
5998
+ className: cn("popover-w-parent", props.helperText && "-hawa-mt-4")
5972
5999
  },
5973
- /* @__PURE__ */ React51.createElement(
5974
- "svg",
6000
+ /* @__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(
6001
+ CommandItem,
5975
6002
  {
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
- )
6003
+ key: getProperty(item, valueKey),
6004
+ onSelect: () => {
6005
+ const newValue = getProperty(item, valueKey);
6006
+ setValue(newValue === value ? "" : newValue);
6007
+ if (props.onChange) {
6008
+ props.onChange(
6009
+ newValue === value ? "" : newValue
6010
+ );
6011
+ }
6012
+ setOpen(false);
6013
+ }
5989
6014
  },
5990
- /* @__PURE__ */ React51.createElement("polyline", { points: "20 6 9 17 4 12" })
5991
- ),
5992
- getProperty(item, labelKey)
5993
- ))))))
6015
+ /* @__PURE__ */ React51.createElement(
6016
+ "svg",
6017
+ {
6018
+ xmlns: "http://www.w3.org/2000/svg",
6019
+ width: "24",
6020
+ height: "24",
6021
+ viewBox: "0 0 24 24",
6022
+ fill: "none",
6023
+ stroke: "currentColor",
6024
+ strokeWidth: "2",
6025
+ strokeLinecap: "round",
6026
+ strokeLinejoin: "round",
6027
+ className: cn(
6028
+ "hawa-mr-2 hawa-h-4 hawa-w-4",
6029
+ value === getProperty(item, valueKey) ? "hawa-opacity-100" : "hawa-opacity-0"
6030
+ )
6031
+ },
6032
+ /* @__PURE__ */ React51.createElement("polyline", { points: "20 6 9 17 4 12" })
6033
+ ),
6034
+ getProperty(item, labelKey)
6035
+ ))))
6036
+ ))
5994
6037
  );
5995
6038
  };
5996
6039
 
@@ -6459,7 +6502,16 @@ var Stats = ({ variant = "default", ...props }) => {
6459
6502
  className: cn(props.className)
6460
6503
  },
6461
6504
  /* @__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)
6505
+ /* @__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(
6506
+ "p",
6507
+ {
6508
+ className: cn(
6509
+ "hawa-my-0 hawa-text-xs hawa-text-helper-color hawa-transition-all hawa-text-start",
6510
+ props.helperText ? "hawa-opacity-100 hawa-h-4" : "hawa-opacity-0 hawa-h-0"
6511
+ )
6512
+ },
6513
+ props.helperText
6514
+ ), props.isLoading && props.chart ? /* @__PURE__ */ React57.createElement(Skeleton, { className: "hawa-mt-2 hawa-h-4 hawa-w-1/2" }) : props.chart)
6463
6515
  );
6464
6516
  };
6465
6517
 
@@ -8738,7 +8790,6 @@ var FeedbackEmoji = (props) => {
8738
8790
  { icon: /* @__PURE__ */ React77.createElement(VeryBadEmoji, null), value: "very-bad" }
8739
8791
  ];
8740
8792
  const onFeedbackSubmit = async () => {
8741
- console.log("submitting");
8742
8793
  if (feedbackText) {
8743
8794
  setLoadingSubmit(true);
8744
8795
  try {
@@ -8817,7 +8868,6 @@ var FeedbackEmoji = (props) => {
8817
8868
  setHelperText(false);
8818
8869
  }
8819
8870
  setFeedbackText(e.target.value);
8820
- console.log("changing to", e.target.value);
8821
8871
  }
8822
8872
  }
8823
8873
  )
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.19-next",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {