@sikka/hawa 0.7.19-next → 0.7.20-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
@@ -1509,11 +1509,6 @@ input[type="number"]::-webkit-inner-spin-button,
1509
1509
  -moz-column-gap: 0.75rem;
1510
1510
  column-gap: 0.75rem;
1511
1511
  }
1512
- .hawa-space-x-1 > :not([hidden]) ~ :not([hidden]) {
1513
- --tw-space-x-reverse: 0;
1514
- margin-right: calc(0.25rem * var(--tw-space-x-reverse));
1515
- margin-left: calc(0.25rem * calc(1 - var(--tw-space-x-reverse)));
1516
- }
1517
1512
  .hawa-space-x-4 > :not([hidden]) ~ :not([hidden]) {
1518
1513
  --tw-space-x-reverse: 0;
1519
1514
  margin-right: calc(1rem * var(--tw-space-x-reverse));
@@ -1853,6 +1848,10 @@ input[type="number"]::-webkit-inner-spin-button,
1853
1848
  --tw-bg-opacity: 1;
1854
1849
  background-color: rgb(254 226 226 / var(--tw-bg-opacity));
1855
1850
  }
1851
+ .hawa-bg-red-400 {
1852
+ --tw-bg-opacity: 1;
1853
+ background-color: rgb(248 113 113 / var(--tw-bg-opacity));
1854
+ }
1856
1855
  .hawa-bg-red-500 {
1857
1856
  --tw-bg-opacity: 1;
1858
1857
  background-color: rgb(239 68 68 / var(--tw-bg-opacity));
@@ -1883,6 +1882,10 @@ input[type="number"]::-webkit-inner-spin-button,
1883
1882
  --tw-bg-opacity: 1;
1884
1883
  background-color: rgb(250 204 21 / var(--tw-bg-opacity));
1885
1884
  }
1885
+ .hawa-bg-yellow-500 {
1886
+ --tw-bg-opacity: 1;
1887
+ background-color: rgb(234 179 8 / var(--tw-bg-opacity));
1888
+ }
1886
1889
  .hawa-bg-opacity-80 {
1887
1890
  --tw-bg-opacity: 0.8;
1888
1891
  }
package/dist/index.d.mts CHANGED
@@ -688,6 +688,7 @@ type NavigationMenuTypes = {
688
688
  }[];
689
689
  rootClassNames?: string;
690
690
  viewportClassNames?: string;
691
+ direction?: "rtl" | "ltr";
691
692
  };
692
693
  declare const NavigationMenu: React$1.FC<NavigationMenuTypes>;
693
694
 
package/dist/index.d.ts CHANGED
@@ -688,6 +688,7 @@ type NavigationMenuTypes = {
688
688
  }[];
689
689
  rootClassNames?: string;
690
690
  viewportClassNames?: string;
691
+ direction?: "rtl" | "ltr";
691
692
  };
692
693
  declare const NavigationMenu: React$1.FC<NavigationMenuTypes>;
693
694
 
package/dist/index.js CHANGED
@@ -6065,12 +6065,12 @@ var NavigationMenuList = React47.forwardRef(function(_param, ref) /* @__PURE__ *
6065
6065
  ]);
6066
6066
  return React47.createElement(NavigationMenuPrimitive.List, _object_spread({
6067
6067
  ref: ref,
6068
- className: cn("hawa-group hawa-flex hawa-flex-1 hawa-list-none hawa-items-center hawa-justify-center hawa-space-x-1", className)
6068
+ className: cn("hawa-group hawa-flex hawa-flex-1 hawa-list-none hawa-items-center hawa-justify-center hawa-gap-1", className)
6069
6069
  }, props));
6070
6070
  });
6071
6071
  NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
6072
6072
  var NavigationMenuItem = NavigationMenuPrimitive.Item;
6073
- var navigationMenuTriggerStyle = (0, import_class_variance_authority4.cva)("hawa-group hawa-inline-flex hawa-h-10 hawa-w-max hawa-items-center hawa-justify-center hawa-rounded-md hawa-bg-background hawa-px-4 hawa-py-2 hawa-text-sm hawa-font-medium hawa-transition-colors hover:hawa-bg-accent hover:hawa-text-accent-foreground focus:hawa-bg-accent focus:hawa-text-accent-foreground focus:hawa-outline-none disabled:hawa-pointer-events-none disabled:hawa-opacity-50 data-[active]:hawa-bg-accent/50 data-[state=open]:hawa-bg-accent/50");
6073
+ var navigationMenuTriggerStyle = (0, import_class_variance_authority4.cva)("hawa-group hawa-inline-flex hawa-h-10 hawa-w-max hawa-items-center hawa-gap-1 hawa-justify-center hawa-rounded-md hawa-bg-background hawa-px-4 hawa-py-2 hawa-text-sm hawa-font-medium hawa-transition-colors hover:hawa-bg-accent hover:hawa-text-accent-foreground focus:hawa-bg-accent focus:hawa-text-accent-foreground focus:hawa-outline-none disabled:hawa-pointer-events-none disabled:hawa-opacity-50 data-[active]:hawa-bg-accent/50 data-[state=open]:hawa-bg-accent/50");
6074
6074
  var NavigationMenuTrigger = React47.forwardRef(function(_param, ref) /* @__PURE__ */ {
6075
6075
  var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
6076
6076
  "className",
@@ -6090,7 +6090,7 @@ var NavigationMenuTrigger = React47.forwardRef(function(_param, ref) /* @__PURE_
6090
6090
  "stroke-linecap": "round",
6091
6091
  "stroke-linejoin": "round",
6092
6092
  "aria-hidden": "true",
6093
- className: "hawa-relative hawa-top-[1px] hawa-ml-1 hawa-h-4 hawa-w-4 hawa-transition hawa-duration-200 group-data-[state=open]:hawa-rotate-180"
6093
+ className: "hawa-relative hawa-top-[1px] hawa-h-4 hawa-w-4 hawa-transition hawa-duration-200 group-data-[state=open]:hawa-rotate-180"
6094
6094
  }, /* @__PURE__ */ React47.createElement("path", {
6095
6095
  d: "m6 9 6 6 6-6"
6096
6096
  })));
@@ -6147,6 +6147,7 @@ var NavigationMenuIndicator = React47.forwardRef(function(_param, ref) /* @__PUR
6147
6147
  NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
6148
6148
  var NavigationMenu = function(props) {
6149
6149
  return /* @__PURE__ */ React47.createElement(NavigationMenuRoot, {
6150
+ dir: props.direction,
6150
6151
  delayDuration: 0,
6151
6152
  className: props.rootClassNames,
6152
6153
  viewportClassNames: props.viewportClassNames
package/dist/index.mjs CHANGED
@@ -5743,7 +5743,7 @@ var NavigationMenuList = React47.forwardRef(({ className, ...props }, ref) => /*
5743
5743
  {
5744
5744
  ref,
5745
5745
  className: cn(
5746
- "hawa-group hawa-flex hawa-flex-1 hawa-list-none hawa-items-center hawa-justify-center hawa-space-x-1",
5746
+ "hawa-group hawa-flex hawa-flex-1 hawa-list-none hawa-items-center hawa-justify-center hawa-gap-1",
5747
5747
  className
5748
5748
  ),
5749
5749
  ...props
@@ -5752,7 +5752,7 @@ var NavigationMenuList = React47.forwardRef(({ className, ...props }, ref) => /*
5752
5752
  NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
5753
5753
  var NavigationMenuItem = NavigationMenuPrimitive.Item;
5754
5754
  var navigationMenuTriggerStyle = cva4(
5755
- "hawa-group hawa-inline-flex hawa-h-10 hawa-w-max hawa-items-center hawa-justify-center hawa-rounded-md hawa-bg-background hawa-px-4 hawa-py-2 hawa-text-sm hawa-font-medium hawa-transition-colors hover:hawa-bg-accent hover:hawa-text-accent-foreground focus:hawa-bg-accent focus:hawa-text-accent-foreground focus:hawa-outline-none disabled:hawa-pointer-events-none disabled:hawa-opacity-50 data-[active]:hawa-bg-accent/50 data-[state=open]:hawa-bg-accent/50"
5755
+ "hawa-group hawa-inline-flex hawa-h-10 hawa-w-max hawa-items-center hawa-gap-1 hawa-justify-center hawa-rounded-md hawa-bg-background hawa-px-4 hawa-py-2 hawa-text-sm hawa-font-medium hawa-transition-colors hover:hawa-bg-accent hover:hawa-text-accent-foreground focus:hawa-bg-accent focus:hawa-text-accent-foreground focus:hawa-outline-none disabled:hawa-pointer-events-none disabled:hawa-opacity-50 data-[active]:hawa-bg-accent/50 data-[state=open]:hawa-bg-accent/50"
5756
5756
  );
5757
5757
  var NavigationMenuTrigger = React47.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React47.createElement(
5758
5758
  NavigationMenuPrimitive.Trigger,
@@ -5776,7 +5776,7 @@ var NavigationMenuTrigger = React47.forwardRef(({ className, children, ...props
5776
5776
  "stroke-linecap": "round",
5777
5777
  "stroke-linejoin": "round",
5778
5778
  "aria-hidden": "true",
5779
- className: "hawa-relative hawa-top-[1px] hawa-ml-1 hawa-h-4 hawa-w-4 hawa-transition hawa-duration-200 group-data-[state=open]:hawa-rotate-180"
5779
+ className: "hawa-relative hawa-top-[1px] hawa-h-4 hawa-w-4 hawa-transition hawa-duration-200 group-data-[state=open]:hawa-rotate-180"
5780
5780
  },
5781
5781
  /* @__PURE__ */ React47.createElement("path", { d: "m6 9 6 6 6-6" })
5782
5782
  )
@@ -5837,6 +5837,7 @@ var NavigationMenu = (props) => {
5837
5837
  return /* @__PURE__ */ React47.createElement(
5838
5838
  NavigationMenuRoot,
5839
5839
  {
5840
+ dir: props.direction,
5840
5841
  delayDuration: 0,
5841
5842
  className: props.rootClassNames,
5842
5843
  viewportClassNames: props.viewportClassNames
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.7.19-next",
3
+ "version": "0.7.20-next",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {