ff-ds-ui 0.0.4 → 0.0.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/README.deploy.md +9 -0
- package/README.md +3 -11
- package/package.json +5 -3
- package/src/components/Loader/Loader.scss +1 -1
- package/src/utils/bem/bem.ts +1 -0
- package/tsconfig.build.json +2 -1
- package/vite.config.ts +4 -7
package/README.deploy.md
ADDED
package/README.md
CHANGED
|
@@ -1,13 +1,5 @@
|
|
|
1
|
-
# FF-DS-UI
|
|
1
|
+
# FF-DS-UI
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## Дизайн система FEBFES-TM
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
### 2 - tag => git tag v.0.0.0
|
|
8
|
-
|
|
9
|
-
### 3 - push tag => git push origin --tags
|
|
10
|
-
|
|
11
|
-
### 4 - run build => npm run build
|
|
12
|
-
|
|
13
|
-
### 5 - push packets => npm publish
|
|
5
|
+
## Npm: https://www.npmjs.com/package/ff-ds-ui
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ff-ds-ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.5",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/my-ui-lib.umd.js",
|
|
7
7
|
"module": "./dist/my-ui-lib.es.js",
|
|
@@ -28,15 +28,14 @@
|
|
|
28
28
|
"@storybook/addon-docs": "^10.1.5",
|
|
29
29
|
"@storybook/addon-onboarding": "^10.1.8",
|
|
30
30
|
"@storybook/addon-vitest": "^10.1.8",
|
|
31
|
-
"@storybook/react-vite": "^10.1.5",
|
|
32
31
|
"@storybook/react": "^10.1.10",
|
|
32
|
+
"@storybook/react-vite": "^10.1.5",
|
|
33
33
|
"@types/node": "^24.10.1",
|
|
34
34
|
"@types/react": "^19.2.5",
|
|
35
35
|
"@types/react-dom": "^19.2.3",
|
|
36
36
|
"@vitejs/plugin-react": "^5.1.1",
|
|
37
37
|
"@vitest/browser-playwright": "^4.0.15",
|
|
38
38
|
"@vitest/coverage-v8": "^4.0.15",
|
|
39
|
-
"classnames": "^2.5.1",
|
|
40
39
|
"eslint": "^9.39.1",
|
|
41
40
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
42
41
|
"eslint-plugin-react-refresh": "^0.4.24",
|
|
@@ -53,5 +52,8 @@
|
|
|
53
52
|
"vite": "^7.2.4",
|
|
54
53
|
"vite-plugin-dts": "^4.5.4",
|
|
55
54
|
"vitest": "^4.0.15"
|
|
55
|
+
},
|
|
56
|
+
"dependencies": {
|
|
57
|
+
"classnames": "^2.5.1"
|
|
56
58
|
}
|
|
57
59
|
}
|
package/src/utils/bem/bem.ts
CHANGED
|
@@ -11,6 +11,7 @@ export const bemBlock = (bemBlockName: string) => {
|
|
|
11
11
|
const classNameMods = mods
|
|
12
12
|
? Object.entries(mods)
|
|
13
13
|
// Cортируем пустые значения
|
|
14
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
14
15
|
.filter(([_, value]) => value !== false && value !== undefined && value !== null)
|
|
15
16
|
// Убираем значения true - btn_disabled_true => btn_disabled
|
|
16
17
|
.map(([bemModifier, bemModifierValue]) => {
|
package/tsconfig.build.json
CHANGED
package/vite.config.ts
CHANGED
|
@@ -23,19 +23,18 @@ export default defineConfig({
|
|
|
23
23
|
entry: 'src/index.ts',
|
|
24
24
|
name: 'MyUILib',
|
|
25
25
|
fileName: (format) => `my-ui-lib.${format}.js`,
|
|
26
|
+
formats: ['es', 'cjs'],
|
|
26
27
|
},
|
|
27
28
|
outDir: 'dist',
|
|
28
|
-
// папка сборки
|
|
29
29
|
emptyOutDir: true,
|
|
30
|
-
// очищает dist перед сборкой
|
|
31
30
|
rollupOptions: {
|
|
32
|
-
external: ['react', 'react-dom'],
|
|
31
|
+
external: ['react', 'react-dom', 'classnames'],
|
|
33
32
|
output: {
|
|
34
33
|
globals: {
|
|
35
34
|
react: 'React',
|
|
36
35
|
'react-dom': 'ReactDOM',
|
|
37
36
|
},
|
|
38
|
-
preserveModules: false,
|
|
37
|
+
preserveModules: false,
|
|
39
38
|
},
|
|
40
39
|
},
|
|
41
40
|
},
|
|
@@ -44,8 +43,6 @@ export default defineConfig({
|
|
|
44
43
|
{
|
|
45
44
|
extends: true,
|
|
46
45
|
plugins: [
|
|
47
|
-
// The plugin will run tests for the stories defined in your Storybook config
|
|
48
|
-
// See options at: https://storybook.js.org/docs/next/writing-tests/integrations/vitest-addon#storybooktest
|
|
49
46
|
storybookTest({
|
|
50
47
|
configDir: path.join(dirname, '.storybook'),
|
|
51
48
|
}),
|
|
@@ -70,7 +67,7 @@ export default defineConfig({
|
|
|
70
67
|
test: {
|
|
71
68
|
name: 'unit',
|
|
72
69
|
include: ['src/**/*.test.{ts,tsx}'],
|
|
73
|
-
environment: 'node',
|
|
70
|
+
environment: 'node',
|
|
74
71
|
},
|
|
75
72
|
},
|
|
76
73
|
],
|