@betterstore/react 0.3.26 → 0.3.28

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@betterstore/react",
3
- "version": "0.3.26",
3
+ "version": "0.3.28",
4
4
  "description": "E-commerce for Developers",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -19,27 +19,27 @@
19
19
  "author": "Better Store",
20
20
  "license": "MIT",
21
21
  "devDependencies": {
22
- "@betterstore/sdk": "^0.3.76",
23
- "@changesets/cli": "^2.28.1",
22
+ "@betterstore/sdk": "^0.3.77",
23
+ "@changesets/cli": "^2.29.4",
24
24
  "@rollup/plugin-commonjs": "^28.0.3",
25
25
  "@rollup/plugin-json": "^6.1.0",
26
- "@rollup/plugin-node-resolve": "^16.0.0",
26
+ "@rollup/plugin-node-resolve": "^16.0.1",
27
27
  "@rollup/plugin-typescript": "^12.1.2",
28
- "@tailwindcss/postcss": "^4.0.12",
29
- "@types/node": "^22.13.10",
30
- "@types/react": "^18.3.18",
31
- "@types/react-dom": "^18.3.5",
32
- "@vitejs/plugin-react": "^4.3.4",
33
- "autoprefixer": "^10.4.20",
34
- "next": "^15.2.1",
28
+ "@tailwindcss/postcss": "^4.1.7",
29
+ "@types/node": "^22.15.22",
30
+ "@types/react": "^18.3.23",
31
+ "@types/react-dom": "^18.3.7",
32
+ "@vitejs/plugin-react": "^4.5.0",
33
+ "autoprefixer": "^10.4.21",
34
+ "next": "^15.3.2",
35
35
  "postcss": "^8.5.3",
36
36
  "prettier": "^3.5.3",
37
- "rollup": "^4.35.0",
38
- "tailwindcss": "^4.0.12",
37
+ "rollup": "^4.41.1",
38
+ "tailwindcss": "^4.1.7",
39
39
  "tslib": "^2.8.1",
40
- "tsup": "^8.4.0",
41
- "typescript": "^5.8.2",
42
- "vite": "^6.2.1"
40
+ "tsup": "^8.5.0",
41
+ "typescript": "^5.8.3",
42
+ "vite": "^6.3.5"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "react": "^18.0.0",
@@ -47,38 +47,38 @@
47
47
  },
48
48
  "dependencies": {
49
49
  "@hookform/resolvers": "^4.1.3",
50
- "@radix-ui/react-checkbox": "^1.1.4",
51
- "@radix-ui/react-dialog": "^1.1.6",
52
- "@radix-ui/react-dropdown-menu": "^2.1.6",
53
- "@radix-ui/react-label": "^2.1.2",
54
- "@radix-ui/react-popover": "^1.1.6",
55
- "@radix-ui/react-radio-group": "^1.2.3",
56
- "@radix-ui/react-select": "^2.1.6",
57
- "@radix-ui/react-separator": "^1.1.2",
58
- "@radix-ui/react-slot": "^1.1.2",
59
- "@stripe/react-stripe-js": "^3.3.0",
50
+ "@radix-ui/react-checkbox": "^1.3.2",
51
+ "@radix-ui/react-dialog": "^1.1.14",
52
+ "@radix-ui/react-dropdown-menu": "^2.1.15",
53
+ "@radix-ui/react-label": "^2.1.7",
54
+ "@radix-ui/react-popover": "^1.1.14",
55
+ "@radix-ui/react-radio-group": "^1.3.7",
56
+ "@radix-ui/react-select": "^2.2.5",
57
+ "@radix-ui/react-separator": "^1.1.7",
58
+ "@radix-ui/react-slot": "^1.2.3",
59
+ "@stripe/react-stripe-js": "^3.7.0",
60
60
  "@stripe/stripe-js": "^5.10.0",
61
- "axios": "^1.8.2",
61
+ "axios": "^1.9.0",
62
62
  "class-variance-authority": "^0.7.1",
63
63
  "clsx": "^2.1.1",
64
64
  "cmdk": "1.0.0",
65
- "country-data-list": "^1.4.0",
65
+ "country-data-list": "^1.4.1",
66
66
  "i18next": "^24.2.3",
67
- "i18next-browser-languagedetector": "^8.0.4",
67
+ "i18next-browser-languagedetector": "^8.1.0",
68
68
  "i18next-http-backend": "^3.0.2",
69
69
  "lucide-react": "^0.479.0",
70
- "motion": "^12.5.0",
70
+ "motion": "^12.15.0",
71
71
  "next-themes": "^0.4.6",
72
72
  "react-circle-flags": "^0.0.23",
73
- "react-hook-form": "^7.54.2",
74
- "react-i18next": "^15.4.1",
73
+ "react-hook-form": "^7.56.4",
74
+ "react-i18next": "^15.5.2",
75
75
  "rollup-plugin-postcss": "^4.0.2",
76
76
  "sonner": "^2.0.3",
77
77
  "tailwind": "^4.0.0",
78
- "tailwind-merge": "^3.0.2",
78
+ "tailwind-merge": "^3.3.0",
79
79
  "tailwindcss-animate": "^1.0.7",
80
- "zod": "^3.24.2",
81
- "zustand": "^5.0.3"
80
+ "zod": "^3.25.30",
81
+ "zustand": "^5.0.5"
82
82
  },
83
83
  "scripts": {
84
84
  "dev": "vite",
package/rollup.config.mjs CHANGED
@@ -55,8 +55,9 @@ export default {
55
55
  },
56
56
  extract: false,
57
57
  modules: false,
58
- minimize: false,
58
+ minimize: true,
59
59
  inject: true,
60
+ use: ["sass"],
60
61
  }),
61
62
  ],
62
63
  external: [
@@ -77,28 +78,27 @@ export default {
77
78
  "@radix-ui/react-popover",
78
79
  "@radix-ui/react-separator",
79
80
  "@radix-ui/react-slot",
80
-
81
81
  "react",
82
82
  "react-dom",
83
83
  "react/jsx-runtime",
84
- // "@stripe/react-stripe-js",
85
- // "@stripe/stripe-js",
86
- // "zustand",
87
- // "zod",
88
- // "tailwindcss-animate",
89
- // "class-variance-authority",
90
- // "clsx",
91
- // "tailwind-merge",
92
- // "lucide-react",
93
- // "react-hook-form",
94
- // "@hookform/resolvers",
95
- // "motion",
84
+ "@stripe/react-stripe-js",
85
+ "@stripe/stripe-js",
86
+ "zustand",
87
+ "zod",
88
+ "tailwindcss-animate",
89
+ "class-variance-authority",
90
+ "clsx",
91
+ "tailwind-merge",
92
+ "lucide-react",
93
+ "react-hook-form",
94
+ "@hookform/resolvers",
95
+ "motion",
96
96
  "@betterstore/sdk",
97
- // "country-data-list",
98
- // "cmdk",
99
-
100
- // "i18next",
101
- // "i18next-browser-languagedetector",
102
- // "react-i18next",
97
+ "country-data-list",
98
+ "cmdk",
99
+ "i18next",
100
+ "i18next-browser-languagedetector",
101
+ "react-i18next",
102
+ "sonner",
103
103
  ],
104
104
  };
@@ -1,23 +1,9 @@
1
1
  /** @type {import('tailwindcss').Config} */
2
2
  module.exports = {
3
- prefix: "betterstore-",
4
3
  content: ["./src/**/*.{js,jsx,ts,tsx}"],
5
- corePlugins: {
6
- preflight: false, // Disable Tailwind's base styles to prevent conflicts
7
- },
8
4
  important: true, // This ensures your styles take precedence
9
5
  theme: {
10
6
  extend: {},
11
7
  },
12
8
  plugins: [],
13
- // Prefix all CSS variables to prevent leakage
14
- future: {
15
- hoverOnlyWhenSupported: true,
16
- },
17
- // This ensures all CSS variables are prefixed
18
- darkMode: "class",
19
- // Custom prefix for CSS variables
20
- cssVariables: {
21
- prefix: "betterstore-",
22
- },
23
9
  };