@betterstore/react 0.2.4 → 0.2.5
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/CHANGELOG.md +6 -0
- package/components.json +21 -0
- package/dist/components/checkout-embed/checkout-form.d.ts +8 -0
- package/dist/components/checkout-embed/checkout-schema.d.ts +173 -0
- package/dist/components/checkout-embed/customer/form.d.ts +9 -0
- package/dist/components/checkout-embed/payment/form.d.ts +13 -0
- package/dist/components/checkout-embed/shipping/form.d.ts +11 -0
- package/dist/components/checkout-embed/useLocalStorage.d.ts +1 -0
- package/dist/components/ui/button.d.ts +10 -0
- package/dist/components/ui/checkbox.d.ts +4 -0
- package/dist/components/ui/form.d.ts +24 -0
- package/dist/components/ui/input.d.ts +3 -0
- package/dist/components/ui/label.d.ts +4 -0
- package/dist/components/ui/radio-group.d.ts +5 -0
- package/dist/components/ui/select.d.ts +13 -0
- package/dist/index.cjs.js +658 -10
- package/dist/index.mjs +669 -43
- package/dist/lib/utils.d.ts +2 -0
- package/package.json +17 -3
- package/postcss.config.cjs +1 -1
- package/rollup.config.mjs +24 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@betterstore/react",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
4
4
|
"description": "E-commerce for Developers",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
"@types/react-dom": "^18.2.0",
|
|
30
30
|
"autoprefixer": "^10.4.20",
|
|
31
31
|
"next": "^15.2.1",
|
|
32
|
-
"postcss": "^8.
|
|
32
|
+
"postcss": "^8.5.3",
|
|
33
33
|
"prettier": "^3.5.3",
|
|
34
34
|
"rollup": "^4.34.9",
|
|
35
|
-
"tailwindcss": "^
|
|
35
|
+
"tailwindcss": "^4.0.12",
|
|
36
36
|
"tslib": "^2.8.1",
|
|
37
37
|
"tsup": "^8.4.0",
|
|
38
38
|
"typescript": "^5.8.2"
|
|
@@ -42,9 +42,23 @@
|
|
|
42
42
|
"react-dom": "^18.0.0"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
+
"@hookform/resolvers": "^4.1.3",
|
|
46
|
+
"@radix-ui/react-checkbox": "^1.1.4",
|
|
47
|
+
"@radix-ui/react-label": "^2.1.2",
|
|
48
|
+
"@radix-ui/react-radio-group": "^1.2.3",
|
|
49
|
+
"@radix-ui/react-select": "^2.1.6",
|
|
50
|
+
"@radix-ui/react-slot": "^1.1.2",
|
|
45
51
|
"@stripe/react-stripe-js": "^3.3.0",
|
|
46
52
|
"@stripe/stripe-js": "^5.10.0",
|
|
53
|
+
"class-variance-authority": "^0.7.1",
|
|
54
|
+
"clsx": "^2.1.1",
|
|
55
|
+
"lucide-react": "^0.479.0",
|
|
56
|
+
"react-hook-form": "^7.54.2",
|
|
47
57
|
"rollup-plugin-postcss": "^4.0.2",
|
|
58
|
+
"tailwind": "^4.0.0",
|
|
59
|
+
"tailwind-merge": "^3.0.2",
|
|
60
|
+
"tailwindcss-animate": "^1.0.7",
|
|
61
|
+
"zod": "^3.24.2",
|
|
48
62
|
"zustand": "^5.0.3"
|
|
49
63
|
},
|
|
50
64
|
"scripts": {
|
package/postcss.config.cjs
CHANGED
package/rollup.config.mjs
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import commonjs from "@rollup/plugin-commonjs";
|
|
2
2
|
import resolve from "@rollup/plugin-node-resolve";
|
|
3
3
|
import typescript from "@rollup/plugin-typescript";
|
|
4
|
-
import autoprefixer from "autoprefixer";
|
|
5
4
|
import postcss from "rollup-plugin-postcss";
|
|
6
|
-
import tailwindcss from "tailwindcss";
|
|
7
5
|
|
|
8
6
|
export default {
|
|
9
7
|
input: "src/index.ts",
|
|
@@ -22,20 +20,41 @@ export default {
|
|
|
22
20
|
commonjs(),
|
|
23
21
|
typescript(),
|
|
24
22
|
postcss({
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
config: {
|
|
24
|
+
path: "./postcss.config.cjs",
|
|
25
|
+
},
|
|
27
26
|
extract: false,
|
|
28
27
|
modules: false,
|
|
29
28
|
minimize: true,
|
|
30
29
|
inject: true,
|
|
31
|
-
autoModules: false,
|
|
32
30
|
}),
|
|
33
31
|
],
|
|
34
32
|
external: [
|
|
33
|
+
"@radix-ui/react-radio-group",
|
|
34
|
+
"@radix-ui/react-label",
|
|
35
|
+
"@radix-ui/react-checkbox",
|
|
36
|
+
"@radix-ui/react-select",
|
|
37
|
+
"@radix-ui/react-roving-focus",
|
|
38
|
+
"@radix-ui/react-presence",
|
|
39
|
+
"@radix-ui/react-dismissable-layer",
|
|
40
|
+
"@radix-ui/react-focus-guards",
|
|
41
|
+
"@radix-ui/react-collection",
|
|
42
|
+
"@radix-ui/react-popper",
|
|
43
|
+
"@radix-ui/react-portal",
|
|
44
|
+
"@radix-ui/react-focus-scope",
|
|
45
|
+
|
|
35
46
|
"react",
|
|
36
47
|
"react-dom",
|
|
37
48
|
"@stripe/react-stripe-js",
|
|
38
49
|
"@stripe/stripe-js",
|
|
39
50
|
"zustand",
|
|
51
|
+
"zod",
|
|
52
|
+
"tailwindcss-animate",
|
|
53
|
+
"class-variance-authority",
|
|
54
|
+
"clsx",
|
|
55
|
+
"tailwind-merge",
|
|
56
|
+
"lucide-react",
|
|
57
|
+
"react-hook-form",
|
|
58
|
+
"@hookform/resolvers",
|
|
40
59
|
],
|
|
41
60
|
};
|