@nicolassancho/storybook-core 3.0.7 → 3.0.9
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 +3 -3
- package/package.json +4 -6
package/README.md
CHANGED
|
@@ -82,9 +82,9 @@ The first `npm test` run needs the browser: `npx playwright install chromium`.
|
|
|
82
82
|
|
|
83
83
|
### Creating components
|
|
84
84
|
|
|
85
|
-
|
|
86
|
-
the component, its story and a mock file.
|
|
87
|
-
|
|
85
|
+
Components are created by hand. Copy an existing component folder in `src/components/<Layer>/` as the
|
|
86
|
+
starting point: it holds the component, its story and a mock file. Then export the component from
|
|
87
|
+
`src/index.js`.
|
|
88
88
|
|
|
89
89
|
Tests are `play` functions in the component's story file, not separate test files.
|
|
90
90
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nicolassancho/storybook-core",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.9",
|
|
4
4
|
"description": "Accessible React + Tailwind component library built with tailwind-variants and documented in Storybook.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -31,8 +31,7 @@
|
|
|
31
31
|
"build-storybook": "storybook build",
|
|
32
32
|
"test": "vitest run",
|
|
33
33
|
"lint": "eslint ./src",
|
|
34
|
-
"format": "prettier --write ./src ./.storybook"
|
|
35
|
-
"generate": "npx plop component"
|
|
34
|
+
"format": "prettier --write ./src ./.storybook"
|
|
36
35
|
},
|
|
37
36
|
"keywords": [
|
|
38
37
|
"react",
|
|
@@ -61,8 +60,8 @@
|
|
|
61
60
|
"@storybook/react": "^10.6.1",
|
|
62
61
|
"@storybook/react-vite": "^10.6.1",
|
|
63
62
|
"@tailwindcss/postcss": "^4.3.3",
|
|
64
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
65
|
-
"@typescript-eslint/parser": "^8.
|
|
63
|
+
"@typescript-eslint/eslint-plugin": "^8.71.1",
|
|
64
|
+
"@typescript-eslint/parser": "^8.71.1",
|
|
66
65
|
"@vitest/browser-playwright": "^5.0.3",
|
|
67
66
|
"eslint": "^9.31.0",
|
|
68
67
|
"eslint-config-prettier": "^10.1.8",
|
|
@@ -70,7 +69,6 @@
|
|
|
70
69
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
71
70
|
"eslint-plugin-storybook": "^10.6.1",
|
|
72
71
|
"playwright": "^1.64.0",
|
|
73
|
-
"plop": "^4.0.1",
|
|
74
72
|
"postcss": "^8.4.41",
|
|
75
73
|
"prettier": "^3.6.2",
|
|
76
74
|
"storybook": "^10.6.1",
|