@tapcart/mobile-components 0.5.5 → 0.5.6

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.
@@ -38,7 +38,7 @@ function useScrollDirection(threshold = 5) {
38
38
  lastScrollY.current = scrollY > 0 ? scrollY : 0;
39
39
  }
40
40
  };
41
- window.addEventListener("scroll", updateScrollDirection);
41
+ window.addEventListener("scroll", updateScrollDirection, { passive: true });
42
42
  return () => {
43
43
  window.removeEventListener("scroll", updateScrollDirection);
44
44
  };
@@ -32,7 +32,7 @@ const buttonVariants = cva("w-full flex rounded items-center justify-center tran
32
32
  secondary: "bg-buttonColors-secondaryFill border border-buttonColors-secondaryOutlineColor disabled:bg-buttonColors-secondaryFill disabled:text-stateColors-disabled shadow-secondary",
33
33
  ghost: "hover:bg-accent",
34
34
  link: "underline-offset-4 hover:underline disabled:text-stateColors-disabled disabled:bg-transparent",
35
- quickadd: "bg-buttonColors-primaryFill w-full rounded-none rounded-b-lg h-8 text-xs border border-buttonColors-primaryOutlineColor py-2",
35
+ quickadd: "bg-buttonColors-primaryFill w-full rounded-none rounded-b-lg h-8 border border-buttonColors-primaryOutlineColor py-2",
36
36
  applePay: "bg-white border border-black",
37
37
  shopPay: "bg-[#612EFF]",
38
38
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tapcart/mobile-components",
3
- "version": "0.5.5",
3
+ "version": "0.5.6",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "style": "dist/styles.css",