@producteca/producteca-ui-kit 1.4.1-test.8 → 1.4.1
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/README.md +34 -14
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Producteca UI Kit ⚛️⚡
|
|
2
|
+
|
|
3
|
+
> 📚 Documentation: [apps.producteca.com/producteca-ui-kit](https://apps.producteca.com/producteca-ui-kit)
|
|
2
4
|
|
|
3
5
|
## Features
|
|
4
6
|
|
|
@@ -46,19 +48,37 @@ Follow these steps to integrate and configure the `@producteca/producteca-ui-kit
|
|
|
46
48
|
|
|
47
49
|
```
|
|
48
50
|
|
|
49
|
-
3. **Remove old
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
51
|
+
3. **Remove old component instances**
|
|
52
|
+
For any component that has been moved to the UI kit (like SelectField, CheckboxInput, etc.), you need to:
|
|
53
|
+
|
|
54
|
+
- Remove the old component files from your project. For example:
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
app/components/form/selectField
|
|
58
|
+
app/components/form/checkboxInput
|
|
59
|
+
# or any other component that has been moved to the UI kit
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
- Update your imports to use the components from the UI kit:
|
|
63
|
+
```typescript
|
|
64
|
+
import { SelectField, CheckboxInput /* other components */ } from '@producteca/producteca-ui-kit'
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
4. **Node 12 Compatibility**
|
|
68
|
+
If you're using Node 12 in your project, you'll need to update your Babel configuration to ensure compatibility. Follow these steps:
|
|
69
|
+
|
|
70
|
+
- Update your Babel dependencies to the following versions:
|
|
71
|
+
```json
|
|
72
|
+
{
|
|
73
|
+
"devDependencies": {
|
|
74
|
+
"@babel/core": "^7.23.9",
|
|
75
|
+
"@babel/preset-env": "^7.23.9",
|
|
76
|
+
"@babel/preset-react": "^7.23.3",
|
|
77
|
+
"@babel/preset-typescript": "^7.23.3"
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
```
|
|
81
|
+
- For a complete example of how to implement these changes, refer to this pull request: [Shopify Babel Update Example](https://github.com/Parsimotion/shopify/pull/279)
|
|
62
82
|
|
|
63
83
|
### Auto Publish
|
|
64
84
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@producteca/producteca-ui-kit",
|
|
3
|
-
"version": "1.4.1
|
|
3
|
+
"version": "1.4.1",
|
|
4
4
|
"main": "./dist/producteca-ui-kit.umd.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"repository": {
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
"scripts": {
|
|
20
20
|
"dev": "storybook dev -p 6006",
|
|
21
21
|
"build": "rm -rf dist && tsc && vite build",
|
|
22
|
+
"build:storybook": "storybook build",
|
|
22
23
|
"deploy": "make deploy",
|
|
23
24
|
"lint": "eslint --ext .js,.jsx,.ts,.tsx --fix",
|
|
24
25
|
"prettier": "prettier --write \"src/**/*.{ts,tsx,js,mdx}\"",
|
|
@@ -60,13 +61,13 @@
|
|
|
60
61
|
"@vitejs/plugin-react-refresh": "^1.3.6",
|
|
61
62
|
"@vitejs/plugin-react-swc": "^3.5.0",
|
|
62
63
|
"@vitest/coverage-v8": "^1.6.0",
|
|
64
|
+
"bluebird": "^3.7.2",
|
|
63
65
|
"jsdom": "^24.1.0",
|
|
64
66
|
"json": "11.0.0",
|
|
65
67
|
"react": "^18.2.0",
|
|
66
68
|
"react-dom": "^18.2.0",
|
|
67
69
|
"react-select": "^5.8.3",
|
|
68
70
|
"sass": "^1.77.4",
|
|
69
|
-
"stream-buffers": "^3.0.3",
|
|
70
71
|
"typescript": "^5.2.2",
|
|
71
72
|
"vite": "^5.2.0",
|
|
72
73
|
"vite-plugin-css-modules": "^0.0.1",
|
|
@@ -74,8 +75,8 @@
|
|
|
74
75
|
"vitest": "^1.6.0"
|
|
75
76
|
},
|
|
76
77
|
"devDependencies": {
|
|
77
|
-
"@commitlint/cli": "^19.8.
|
|
78
|
-
"@commitlint/config-conventional": "^19.8.
|
|
78
|
+
"@commitlint/cli": "^19.8.1",
|
|
79
|
+
"@commitlint/config-conventional": "^19.8.1",
|
|
79
80
|
"@semantic-release/changelog": "^6.0.3",
|
|
80
81
|
"@semantic-release/commit-analyzer": "^13.0.1",
|
|
81
82
|
"@semantic-release/exec": "^7.0.3",
|