@sikka/hawa 0.11.7-next → 0.11.8-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
@@ -4953,18 +4953,20 @@ var Input = function(_param) {
4953
4953
  full: "hawa-w-full",
4954
4954
  auto: ""
4955
4955
  };
4956
- var defaultStyle = "hawa-flex hawa-max-h-fit hawa-relative hawa-flex-col hawa-justify-center hawa-gap-0";
4956
+ var defaultStyle = "hawa-flex hawa-max-h-fit hawa-h-fit hawa-relative hawa-flex-col hawa-justify-center hawa-gap-0";
4957
4957
  var defaultInputStyle = "hawa-block hawa-w-full hawa-rounded hawa-border hawa-transition-all hawa-bg-background hawa-p-3 hawa-text-sm ";
4958
4958
  return /* @__PURE__ */ import_react24.default.createElement("div", {
4959
- className: cn(defaultStyle, marginStyles[margin], widthStyles[width], props.containerClassName, "hawa-w-full hawa-gap-2")
4959
+ className: cn(defaultStyle, marginStyles[margin], widthStyles[width], props.containerClassName, "hawa-w-full hawa-gap-2 ")
4960
4960
  }, props.label && /* @__PURE__ */ import_react24.default.createElement(Label2, {
4961
4961
  htmlFor: props.id,
4962
4962
  hint: props.hint,
4963
4963
  hintSide: props.hintSide,
4964
4964
  required: props.isRequired
4965
- }, props.label), props.isLoading ? /* @__PURE__ */ import_react24.default.createElement(Skeleton, {
4965
+ }, props.label), props.isLoading ? /* @__PURE__ */ import_react24.default.createElement("div", {
4966
+ className: "hawa-pb-2"
4967
+ }, /* @__PURE__ */ import_react24.default.createElement(Skeleton, {
4966
4968
  className: "hawa-h-[40px] hawa-w-full"
4967
- }) : /* @__PURE__ */ import_react24.default.createElement(import_react24.default.Fragment, null, /* @__PURE__ */ import_react24.default.createElement("div", {
4969
+ })) : /* @__PURE__ */ import_react24.default.createElement(import_react24.default.Fragment, null, /* @__PURE__ */ import_react24.default.createElement("div", {
4968
4970
  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", preview ? "hawa-opacity-100" : "hawa-opacity-0")
4969
4971
  }), /* @__PURE__ */ import_react24.default.createElement(import_react24.default.Fragment, null, /* @__PURE__ */ import_react24.default.createElement("div", {
4970
4972
  className: cn("hawa-relative")
@@ -6031,15 +6033,19 @@ var Combobox = function(_param) {
6031
6033
  var _React47_useState = _sliced_to_array(React47.useState(false), 2), open = _React47_useState[0], setOpen = _React47_useState[1];
6032
6034
  var _React47_useState1 = _sliced_to_array(React47.useState(defaultValue), 2), value = _React47_useState1[0], setValue = _React47_useState1[1];
6033
6035
  return /* @__PURE__ */ React47.createElement("div", {
6034
- className: cn("hawa-flex hawa-flex-col hawa-gap-2 hawa-relative", props.width === "fit" ? "hawa-w-fit" : "hawa-w-full")
6036
+ className: cn("hawa-flex hawa-flex-col hawa-gap-2 hawa-relative hawa-h-fit", props.width === "fit" ? "hawa-w-fit" : "hawa-w-full")
6035
6037
  }, props.label && /* @__PURE__ */ React47.createElement(Label2, null, props.label), /* @__PURE__ */ React47.createElement(PopoverPrimitive2.Root, {
6036
6038
  open: open,
6037
6039
  onOpenChange: setOpen
6038
6040
  }, /* @__PURE__ */ React47.createElement(PopoverTrigger, {
6039
6041
  disabled: props.isLoading || props.preview
6040
- }, props.isLoading ? /* @__PURE__ */ React47.createElement(Skeleton, {
6042
+ }, props.isLoading ? /* @__PURE__ */ React47.createElement("div", {
6043
+ className: "hawa-pb-2"
6044
+ }, /* @__PURE__ */ React47.createElement(Skeleton, {
6041
6045
  className: "hawa-h-[40px] hawa-w-full"
6042
- }) : /* @__PURE__ */ React47.createElement("div", null, /* @__PURE__ */ React47.createElement("div", {
6046
+ })) : /* @__PURE__ */ React47.createElement("div", {
6047
+ className: "hawa-flex hawa-flex-col hawa-gap-2 "
6048
+ }, /* @__PURE__ */ React47.createElement("div", {
6043
6049
  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")
6044
6050
  }), /* @__PURE__ */ React47.createElement("button", {
6045
6051
  role: "combobox",
@@ -6058,7 +6064,9 @@ var Combobox = function(_param) {
6058
6064
  strokeLinejoin: "round"
6059
6065
  }, /* @__PURE__ */ React47.createElement("path", {
6060
6066
  d: "m6 9 6 6 6-6"
6061
- }))))), /* @__PURE__ */ React47.createElement(PopoverContent, {
6067
+ }))), /* @__PURE__ */ React47.createElement("p", {
6068
+ 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")
6069
+ }, props.helperText), " ")), /* @__PURE__ */ React47.createElement(PopoverContent, {
6062
6070
  className: cn("popover-w-parent")
6063
6071
  }, /* @__PURE__ */ React47.createElement(Command, null, !props.hideInput && /* @__PURE__ */ React47.createElement(CommandInput, {
6064
6072
  placeholder: props.searchPlaceholder
@@ -6089,9 +6097,7 @@ var Combobox = function(_param) {
6089
6097
  }, /* @__PURE__ */ React47.createElement("polyline", {
6090
6098
  points: "20 6 9 17 4 12"
6091
6099
  })), getProperty(item, labelKey));
6092
- }))))), /* @__PURE__ */ React47.createElement("p", {
6093
- className: cn("hawa-my-0 hawa-text-xs hawa-text-helper-color hawa-transition-all", props.helperText && !props.isLoading ? "hawa-opacity-100 hawa-h-4" : "hawa-opacity-0 hawa-h-0")
6094
- }, props.helperText));
6100
+ }))))));
6095
6101
  };
6096
6102
  // components/elements/Count.tsx
6097
6103
  var import_react31 = __toESM(require("react"));
package/dist/index.mjs CHANGED
@@ -4601,7 +4601,7 @@ var Input = ({
4601
4601
  full: "hawa-w-full",
4602
4602
  auto: ""
4603
4603
  };
4604
- let defaultStyle = "hawa-flex hawa-max-h-fit hawa-relative hawa-flex-col hawa-justify-center hawa-gap-0";
4604
+ let defaultStyle = "hawa-flex hawa-max-h-fit hawa-h-fit hawa-relative hawa-flex-col hawa-justify-center hawa-gap-0";
4605
4605
  let defaultInputStyle = "hawa-block hawa-w-full hawa-rounded hawa-border hawa-transition-all hawa-bg-background hawa-p-3 hawa-text-sm ";
4606
4606
  return /* @__PURE__ */ React36.createElement(
4607
4607
  "div",
@@ -4611,7 +4611,7 @@ var Input = ({
4611
4611
  marginStyles[margin],
4612
4612
  widthStyles[width],
4613
4613
  props.containerClassName,
4614
- "hawa-w-full hawa-gap-2"
4614
+ "hawa-w-full hawa-gap-2 "
4615
4615
  )
4616
4616
  },
4617
4617
  props.label && /* @__PURE__ */ React36.createElement(
@@ -4624,7 +4624,7 @@ var Input = ({
4624
4624
  },
4625
4625
  props.label
4626
4626
  ),
4627
- props.isLoading ? /* @__PURE__ */ React36.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" }) : /* @__PURE__ */ React36.createElement(React36.Fragment, null, /* @__PURE__ */ React36.createElement(
4627
+ props.isLoading ? /* @__PURE__ */ React36.createElement("div", { className: "hawa-pb-2" }, /* @__PURE__ */ React36.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ React36.createElement(React36.Fragment, null, /* @__PURE__ */ React36.createElement(
4628
4628
  "div",
4629
4629
  {
4630
4630
  className: cn(
@@ -5757,12 +5757,12 @@ var Combobox = ({
5757
5757
  "div",
5758
5758
  {
5759
5759
  className: cn(
5760
- "hawa-flex hawa-flex-col hawa-gap-2 hawa-relative",
5760
+ "hawa-flex hawa-flex-col hawa-gap-2 hawa-relative hawa-h-fit",
5761
5761
  props.width === "fit" ? "hawa-w-fit" : "hawa-w-full"
5762
5762
  )
5763
5763
  },
5764
5764
  props.label && /* @__PURE__ */ React47.createElement(Label2, null, props.label),
5765
- /* @__PURE__ */ React47.createElement(PopoverPrimitive2.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React47.createElement(PopoverTrigger, { disabled: props.isLoading || props.preview }, props.isLoading ? /* @__PURE__ */ React47.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" }) : /* @__PURE__ */ React47.createElement("div", null, /* @__PURE__ */ React47.createElement(
5765
+ /* @__PURE__ */ React47.createElement(PopoverPrimitive2.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React47.createElement(PopoverTrigger, { disabled: props.isLoading || props.preview }, props.isLoading ? /* @__PURE__ */ React47.createElement("div", { className: "hawa-pb-2" }, /* @__PURE__ */ React47.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ React47.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2 " }, /* @__PURE__ */ React47.createElement(
5766
5766
  "div",
5767
5767
  {
5768
5768
  className: cn(
@@ -5801,7 +5801,16 @@ var Combobox = ({
5801
5801
  },
5802
5802
  /* @__PURE__ */ React47.createElement("path", { d: "m6 9 6 6 6-6" })
5803
5803
  )
5804
- ))), /* @__PURE__ */ React47.createElement(PopoverContent, { className: cn("popover-w-parent") }, /* @__PURE__ */ React47.createElement(Command, null, !props.hideInput && /* @__PURE__ */ React47.createElement(CommandInput, { placeholder: props.searchPlaceholder }), /* @__PURE__ */ React47.createElement(CommandEmpty, null, "No framework found."), /* @__PURE__ */ React47.createElement(CommandGroup, { className: " hawa-max-h-[200px] hawa-overflow-y-auto" }, data.map((item) => /* @__PURE__ */ React47.createElement(
5804
+ ), /* @__PURE__ */ React47.createElement(
5805
+ "p",
5806
+ {
5807
+ className: cn(
5808
+ "hawa-my-0 hawa-text-xs hawa-text-helper-color hawa-transition-all",
5809
+ props.helperText ? "hawa-opacity-100 hawa-h-4" : "hawa-opacity-0 hawa-h-0"
5810
+ )
5811
+ },
5812
+ props.helperText
5813
+ ), " ")), /* @__PURE__ */ React47.createElement(PopoverContent, { className: cn("popover-w-parent") }, /* @__PURE__ */ React47.createElement(Command, null, !props.hideInput && /* @__PURE__ */ React47.createElement(CommandInput, { placeholder: props.searchPlaceholder }), /* @__PURE__ */ React47.createElement(CommandEmpty, null, "No framework found."), /* @__PURE__ */ React47.createElement(CommandGroup, { className: " hawa-max-h-[200px] hawa-overflow-y-auto" }, data.map((item) => /* @__PURE__ */ React47.createElement(
5805
5814
  CommandItem,
5806
5815
  {
5807
5816
  key: getProperty(item, valueKey),
@@ -5836,17 +5845,7 @@ var Combobox = ({
5836
5845
  /* @__PURE__ */ React47.createElement("polyline", { points: "20 6 9 17 4 12" })
5837
5846
  ),
5838
5847
  getProperty(item, labelKey)
5839
- )))))),
5840
- /* @__PURE__ */ React47.createElement(
5841
- "p",
5842
- {
5843
- className: cn(
5844
- "hawa-my-0 hawa-text-xs hawa-text-helper-color hawa-transition-all",
5845
- props.helperText && !props.isLoading ? "hawa-opacity-100 hawa-h-4" : "hawa-opacity-0 hawa-h-0"
5846
- )
5847
- },
5848
- props.helperText
5849
- )
5848
+ ))))))
5850
5849
  );
5851
5850
  };
5852
5851
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.11.7-next",
3
+ "version": "0.11.8-next",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {