@sikka/hawa 0.10.0-next → 0.10.1-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
@@ -673,6 +673,9 @@ input[type="number"]::-webkit-inner-spin-button,
673
673
  .ddm-w-parent {
674
674
  width: var(--radix-dropdown-menu-trigger-width);
675
675
  }
676
+ .popover-w-parent {
677
+ width: var(--radix-popover-trigger-width);
678
+ }
676
679
  .badge {
677
680
  background: rgb(220, 232, 58);
678
681
  font-size: 10px !important;
@@ -713,6 +716,9 @@ input[type="number"]::-webkit-inner-spin-button,
713
716
  .hawa-relative {
714
717
  position: relative;
715
718
  }
719
+ .hawa-sticky {
720
+ position: sticky;
721
+ }
716
722
  .hawa-inset-0 {
717
723
  inset: 0px;
718
724
  }
@@ -1127,6 +1133,9 @@ input[type="number"]::-webkit-inner-spin-button,
1127
1133
  .hawa-max-h-56 {
1128
1134
  max-height: 14rem;
1129
1135
  }
1136
+ .hawa-max-h-\[200px\] {
1137
+ max-height: 200px;
1138
+ }
1130
1139
  .hawa-max-h-\[300px\] {
1131
1140
  max-height: 300px;
1132
1141
  }
@@ -1578,6 +1587,15 @@ input[type="number"]::-webkit-inner-spin-button,
1578
1587
  margin-top: calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));
1579
1588
  margin-bottom: calc(1.25rem * var(--tw-space-y-reverse));
1580
1589
  }
1590
+ .hawa-divide-y > :not([hidden]) ~ :not([hidden]) {
1591
+ --tw-divide-y-reverse: 0;
1592
+ border-top-width: calc(1px * calc(1 - var(--tw-divide-y-reverse)));
1593
+ border-bottom-width: calc(1px * var(--tw-divide-y-reverse));
1594
+ }
1595
+ .hawa-divide-gray-200 > :not([hidden]) ~ :not([hidden]) {
1596
+ --tw-divide-opacity: 1;
1597
+ border-color: rgb(229 231 235 / var(--tw-divide-opacity));
1598
+ }
1581
1599
  .hawa-overflow-auto {
1582
1600
  overflow: auto;
1583
1601
  }
@@ -1605,6 +1623,9 @@ input[type="number"]::-webkit-inner-spin-button,
1605
1623
  .hawa-whitespace-nowrap {
1606
1624
  white-space: nowrap;
1607
1625
  }
1626
+ .hawa-whitespace-break-spaces {
1627
+ white-space: break-spaces;
1628
+ }
1608
1629
  .hawa-rounded {
1609
1630
  border-radius: var(--radius);
1610
1631
  }
@@ -1825,10 +1846,22 @@ input[type="number"]::-webkit-inner-spin-button,
1825
1846
  --tw-bg-opacity: 1;
1826
1847
  background-color: rgb(209 213 219 / var(--tw-bg-opacity));
1827
1848
  }
1849
+ .hawa-bg-gray-50 {
1850
+ --tw-bg-opacity: 1;
1851
+ background-color: rgb(249 250 251 / var(--tw-bg-opacity));
1852
+ }
1828
1853
  .hawa-bg-gray-500 {
1829
1854
  --tw-bg-opacity: 1;
1830
1855
  background-color: rgb(107 114 128 / var(--tw-bg-opacity));
1831
1856
  }
1857
+ .hawa-bg-gray-700 {
1858
+ --tw-bg-opacity: 1;
1859
+ background-color: rgb(55 65 81 / var(--tw-bg-opacity));
1860
+ }
1861
+ .hawa-bg-gray-800 {
1862
+ --tw-bg-opacity: 1;
1863
+ background-color: rgb(31 41 55 / var(--tw-bg-opacity));
1864
+ }
1832
1865
  .hawa-bg-gray-900 {
1833
1866
  --tw-bg-opacity: 1;
1834
1867
  background-color: rgb(17 24 39 / var(--tw-bg-opacity));
@@ -1936,10 +1969,6 @@ input[type="number"]::-webkit-inner-spin-button,
1936
1969
  --tw-bg-opacity: 1;
1937
1970
  background-color: rgb(250 204 21 / var(--tw-bg-opacity));
1938
1971
  }
1939
- .hawa-bg-yellow-600 {
1940
- --tw-bg-opacity: 1;
1941
- background-color: rgb(202 138 4 / var(--tw-bg-opacity));
1942
- }
1943
1972
  .hawa-bg-opacity-80 {
1944
1973
  --tw-bg-opacity: 0.8;
1945
1974
  }
@@ -2042,6 +2071,10 @@ input[type="number"]::-webkit-inner-spin-button,
2042
2071
  padding-left: 1.25rem;
2043
2072
  padding-right: 1.25rem;
2044
2073
  }
2074
+ .hawa-px-6 {
2075
+ padding-left: 1.5rem;
2076
+ padding-right: 1.5rem;
2077
+ }
2045
2078
  .hawa-px-8 {
2046
2079
  padding-left: 2rem;
2047
2080
  padding-right: 2rem;
@@ -2251,6 +2284,9 @@ input[type="number"]::-webkit-inner-spin-button,
2251
2284
  .hawa-tracking-tight {
2252
2285
  letter-spacing: -0.025em;
2253
2286
  }
2287
+ .hawa-tracking-wider {
2288
+ letter-spacing: 0.05em;
2289
+ }
2254
2290
  .hawa-tracking-widest {
2255
2291
  letter-spacing: 0.1em;
2256
2292
  }
@@ -3534,6 +3570,10 @@ body {
3534
3570
  .lg\:hawa-grid-cols-4 {
3535
3571
  grid-template-columns: repeat(4, minmax(0, 1fr));
3536
3572
  }
3573
+
3574
+ .lg\:hawa-flex-row {
3575
+ flex-direction: row;
3576
+ }
3537
3577
  }
3538
3578
  .\[\&\:has\(\[role\=checkbox\]\)\]\:hawa-pr-0:has([role=checkbox]) {
3539
3579
  padding-right: 0px;
package/dist/index.d.mts CHANGED
@@ -659,6 +659,8 @@ type ComboboxTypes<T> = {
659
659
  helperText?: string;
660
660
  placeholder?: string;
661
661
  searchPlaceholder?: string;
662
+ popoverClassName?: string;
663
+ buttonClassName?: string;
662
664
  /** This the same value as the one with the key valueKey */
663
665
  defaultValue?: string;
664
666
  };
package/dist/index.d.ts CHANGED
@@ -659,6 +659,8 @@ type ComboboxTypes<T> = {
659
659
  helperText?: string;
660
660
  placeholder?: string;
661
661
  searchPlaceholder?: string;
662
+ popoverClassName?: string;
663
+ buttonClassName?: string;
662
664
  /** This the same value as the one with the key valueKey */
663
665
  defaultValue?: string;
664
666
  };
package/dist/index.js CHANGED
@@ -4641,7 +4641,7 @@ var PhoneInput = function(props) {
4641
4641
  className: "hawa-flex hawa-flex-col hawa-w-full hawa-gap-2"
4642
4642
  }, props.label && /* @__PURE__ */ import_react20.default.createElement(Label2, null, props.label), /* @__PURE__ */ import_react20.default.createElement("div", {
4643
4643
  dir: "ltr",
4644
- className: "hawa-flex hawa-flex-row hawa-w-full "
4644
+ className: "hawa-flex hawa-flex-row hawa-w-full"
4645
4645
  }, /* @__PURE__ */ import_react20.default.createElement(Select, {
4646
4646
  width: "fit",
4647
4647
  phoneCode: true,
@@ -5948,10 +5948,12 @@ var Combobox = function(_param) {
5948
5948
  var getProperty = function getProperty(obj, key) {
5949
5949
  return obj[key];
5950
5950
  };
5951
- var _param_labelKey = _param.labelKey, labelKey = _param_labelKey === void 0 ? "label" : _param_labelKey, _param_valueKey = _param.valueKey, valueKey = _param_valueKey === void 0 ? "value" : _param_valueKey, _param_defaultValue = _param.defaultValue, defaultValue = _param_defaultValue === void 0 ? "" : _param_defaultValue, data = _param.data, props = _object_without_properties(_param, [
5951
+ var _param_labelKey = _param.labelKey, labelKey = _param_labelKey === void 0 ? "label" : _param_labelKey, _param_valueKey = _param.valueKey, valueKey = _param_valueKey === void 0 ? "value" : _param_valueKey, _param_defaultValue = _param.defaultValue, defaultValue = _param_defaultValue === void 0 ? "" : _param_defaultValue, popoverClassName = _param.popoverClassName, buttonClassName = _param.buttonClassName, data = _param.data, props = _object_without_properties(_param, [
5952
5952
  "labelKey",
5953
5953
  "valueKey",
5954
5954
  "defaultValue",
5955
+ "popoverClassName",
5956
+ "buttonClassName",
5955
5957
  "data"
5956
5958
  ]);
5957
5959
  var _React46_useState = _sliced_to_array(React46.useState(false), 2), open = _React46_useState[0], setOpen = _React46_useState[1];
@@ -5969,29 +5971,27 @@ var Combobox = function(_param) {
5969
5971
  variant: "combobox",
5970
5972
  role: "combobox",
5971
5973
  "aria-expanded": open,
5972
- className: "hawa-w-[200px] hawa-justify-between hawa-bg-background"
5974
+ className: cn("hawa-justify-between hawa-bg-background", buttonClassName)
5973
5975
  }, value ? getProperty(data.find(function(item) {
5974
5976
  return item[valueKey] === value;
5975
5977
  }) || {}, labelKey) : props.placeholder, /* @__PURE__ */ React46.createElement("svg", {
5976
5978
  xmlns: "http://www.w3.org/2000/svg",
5977
- width: "24",
5978
- height: "24",
5979
+ className: "hawa-w-4 hawa-h-4",
5979
5980
  viewBox: "0 0 24 24",
5980
5981
  fill: "none",
5981
5982
  stroke: "currentColor",
5982
5983
  strokeWidth: "2",
5983
5984
  strokeLinecap: "round",
5984
- strokeLinejoin: "round",
5985
- className: "hawa-ml-2 hawa-h-4 hawa-w-4 hawa-shrink-0 hawa-opacity-50"
5985
+ strokeLinejoin: "round"
5986
5986
  }, /* @__PURE__ */ React46.createElement("path", {
5987
- d: "m7 15 5 5 5-5"
5988
- }), /* @__PURE__ */ React46.createElement("path", {
5989
- d: "m7 9 5-5 5 5"
5987
+ d: "m6 9 6 6 6-6"
5990
5988
  })))), /* @__PURE__ */ React46.createElement(PopoverContent, {
5991
- className: "hawa-w-[200px] hawa-p-0 hawa-bg-yellow-600"
5989
+ className: cn("popover-w-parent")
5992
5990
  }, /* @__PURE__ */ React46.createElement(Command, null, /* @__PURE__ */ React46.createElement(CommandInput, {
5993
5991
  placeholder: props.searchPlaceholder
5994
- }), /* @__PURE__ */ React46.createElement(CommandEmpty, null, "No framework found."), /* @__PURE__ */ React46.createElement(CommandGroup, null, data.map(function(item) {
5992
+ }), /* @__PURE__ */ React46.createElement(CommandEmpty, null, "No framework found."), /* @__PURE__ */ React46.createElement(CommandGroup, {
5993
+ className: " hawa-max-h-[200px] hawa-overflow-y-auto"
5994
+ }, data.map(function(item) {
5995
5995
  return /* @__PURE__ */ React46.createElement(CommandItem, {
5996
5996
  key: getProperty(item, valueKey),
5997
5997
  onSelect: function() {
package/dist/index.mjs CHANGED
@@ -4245,7 +4245,7 @@ var PhoneInput = (props) => {
4245
4245
  console.log("handleChange prop was not provided in <PhoneInput/>");
4246
4246
  }
4247
4247
  };
4248
- return /* @__PURE__ */ React31.createElement("div", { className: "hawa-flex hawa-flex-col hawa-w-full hawa-gap-2" }, props.label && /* @__PURE__ */ React31.createElement(Label2, null, props.label), /* @__PURE__ */ React31.createElement("div", { dir: "ltr", className: "hawa-flex hawa-flex-row hawa-w-full " }, /* @__PURE__ */ React31.createElement(
4248
+ return /* @__PURE__ */ React31.createElement("div", { className: "hawa-flex hawa-flex-col hawa-w-full hawa-gap-2" }, props.label && /* @__PURE__ */ React31.createElement(Label2, null, props.label), /* @__PURE__ */ React31.createElement("div", { dir: "ltr", className: "hawa-flex hawa-flex-row hawa-w-full" }, /* @__PURE__ */ React31.createElement(
4249
4249
  Select,
4250
4250
  {
4251
4251
  width: "fit",
@@ -5637,6 +5637,8 @@ var Combobox = ({
5637
5637
  labelKey = "label",
5638
5638
  valueKey = "value",
5639
5639
  defaultValue = "",
5640
+ popoverClassName,
5641
+ buttonClassName,
5640
5642
  data,
5641
5643
  ...props
5642
5644
  }) => {
@@ -5660,7 +5662,10 @@ var Combobox = ({
5660
5662
  variant: "combobox",
5661
5663
  role: "combobox",
5662
5664
  "aria-expanded": open,
5663
- className: "hawa-w-[200px] hawa-justify-between hawa-bg-background"
5665
+ className: cn(
5666
+ "hawa-justify-between hawa-bg-background",
5667
+ buttonClassName
5668
+ )
5664
5669
  },
5665
5670
  value ? getProperty(
5666
5671
  data.find((item) => item[valueKey] === value) || {},
@@ -5670,20 +5675,17 @@ var Combobox = ({
5670
5675
  "svg",
5671
5676
  {
5672
5677
  xmlns: "http://www.w3.org/2000/svg",
5673
- width: "24",
5674
- height: "24",
5678
+ className: "hawa-w-4 hawa-h-4",
5675
5679
  viewBox: "0 0 24 24",
5676
5680
  fill: "none",
5677
5681
  stroke: "currentColor",
5678
5682
  strokeWidth: "2",
5679
5683
  strokeLinecap: "round",
5680
- strokeLinejoin: "round",
5681
- className: "hawa-ml-2 hawa-h-4 hawa-w-4 hawa-shrink-0 hawa-opacity-50"
5684
+ strokeLinejoin: "round"
5682
5685
  },
5683
- /* @__PURE__ */ React46.createElement("path", { d: "m7 15 5 5 5-5" }),
5684
- /* @__PURE__ */ React46.createElement("path", { d: "m7 9 5-5 5 5" })
5686
+ /* @__PURE__ */ React46.createElement("path", { d: "m6 9 6 6 6-6" })
5685
5687
  )
5686
- )), /* @__PURE__ */ React46.createElement(PopoverContent, { className: "hawa-w-[200px] hawa-p-0 hawa-bg-yellow-600" }, /* @__PURE__ */ React46.createElement(Command, null, /* @__PURE__ */ React46.createElement(CommandInput, { placeholder: props.searchPlaceholder }), /* @__PURE__ */ React46.createElement(CommandEmpty, null, "No framework found."), /* @__PURE__ */ React46.createElement(CommandGroup, null, data.map((item) => /* @__PURE__ */ React46.createElement(
5688
+ )), /* @__PURE__ */ React46.createElement(PopoverContent, { className: cn("popover-w-parent") }, /* @__PURE__ */ React46.createElement(Command, null, /* @__PURE__ */ React46.createElement(CommandInput, { placeholder: props.searchPlaceholder }), /* @__PURE__ */ React46.createElement(CommandEmpty, null, "No framework found."), /* @__PURE__ */ React46.createElement(CommandGroup, { className: " hawa-max-h-[200px] hawa-overflow-y-auto" }, data.map((item) => /* @__PURE__ */ React46.createElement(
5687
5689
  CommandItem,
5688
5690
  {
5689
5691
  key: getProperty(item, valueKey),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.10.0-next",
3
+ "version": "0.10.1-next",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {