@mmb-digital/design-system-web 0.1.346 → 0.1.347
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/.eslintcache +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +120 -308
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +21 -16
- package/rollup.config.js +58 -0
- package/tsconfig.app.json +12 -0
- package/tsconfig.base.json +18 -0
- package/tsconfig.node.json +13 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mmb-digital/design-system-web",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.347",
|
|
4
4
|
"description": "MMB design-system-web",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -18,22 +18,27 @@
|
|
|
18
18
|
"author": "Kasman, Samuel (MONETA,consultant) <samuel.kasman@moneta.cz>",
|
|
19
19
|
"license": "UNLICENSED",
|
|
20
20
|
"private": false,
|
|
21
|
+
"publishConfig": {
|
|
22
|
+
"access": "public"
|
|
23
|
+
},
|
|
21
24
|
"engines": {
|
|
22
25
|
"node": ">=20"
|
|
23
26
|
},
|
|
24
27
|
"scripts": {
|
|
25
|
-
"build": "rollup -c
|
|
28
|
+
"build": "rollup -c",
|
|
26
29
|
"test": "yarn p && yarn tsc && yarn l && yarn sl && yarn j",
|
|
27
30
|
"t": "yarn test",
|
|
28
|
-
"test:ci": "yarn
|
|
29
|
-
"
|
|
31
|
+
"test:ci": "yarn p && yarn tsc && yarn lint:ci && yarn sl && yarn j",
|
|
32
|
+
"lint": "eslint . --cache",
|
|
33
|
+
"l": "yarn lint",
|
|
34
|
+
"lint:ci": "eslint .",
|
|
30
35
|
"lint:fix": "yarn eslint --fix",
|
|
31
36
|
"lf": "yarn lint:fix",
|
|
32
|
-
"prettier": "
|
|
37
|
+
"prettier": "prettier --check .",
|
|
33
38
|
"p": "yarn prettier",
|
|
34
39
|
"prettier:fix": "yarn prettier --write",
|
|
35
40
|
"pf": "yarn prettier:fix",
|
|
36
|
-
"tsc": "
|
|
41
|
+
"tsc": "tsc -b",
|
|
37
42
|
"storybook": "storybook dev -p 6006 --no-open",
|
|
38
43
|
"sb": "yarn storybook",
|
|
39
44
|
"build-storybook": "NODE_OPTIONS=--max_old_space_size=1024 storybook build",
|
|
@@ -56,7 +61,7 @@
|
|
|
56
61
|
"@emotion/babel-plugin": "^11.13.5",
|
|
57
62
|
"@emotion/react": "^11.14.0",
|
|
58
63
|
"@emotion/styled": "^11.14.1",
|
|
59
|
-
"@eslint/js": "^
|
|
64
|
+
"@eslint/js": "^9.39.4",
|
|
60
65
|
"@rollup/plugin-alias": "^6.0.0",
|
|
61
66
|
"@rollup/plugin-babel": "^7.0.0",
|
|
62
67
|
"@rollup/plugin-commonjs": "^29.0.2",
|
|
@@ -113,7 +118,7 @@
|
|
|
113
118
|
"@floating-ui/react": "^0.27.19",
|
|
114
119
|
"@google-recaptcha/core": "^1.1.3",
|
|
115
120
|
"@hookform/resolvers": "^5.4.0",
|
|
116
|
-
"afformative": "^0.
|
|
121
|
+
"afformative": "^0.7.0",
|
|
117
122
|
"date-fns": "^4.2.1",
|
|
118
123
|
"downshift": "^9.3.3",
|
|
119
124
|
"imask": "^7.6.1",
|
|
@@ -128,13 +133,13 @@
|
|
|
128
133
|
"usehooks-ts": "^3.1.1"
|
|
129
134
|
},
|
|
130
135
|
"peerDependencies": {
|
|
131
|
-
"@emotion/react": "^11.
|
|
132
|
-
"@emotion/styled": "^11.
|
|
133
|
-
"next-intl": "^4.
|
|
134
|
-
"react": "^
|
|
135
|
-
"react-dom": "^
|
|
136
|
-
"react-hook-form": "^7.
|
|
137
|
-
"react-intl": "^
|
|
138
|
-
"zod": "^
|
|
136
|
+
"@emotion/react": "^11.0.0",
|
|
137
|
+
"@emotion/styled": "^11.0.0",
|
|
138
|
+
"next-intl": "^4.0.0",
|
|
139
|
+
"react": "^19.0.0",
|
|
140
|
+
"react-dom": "^19.0.0",
|
|
141
|
+
"react-hook-form": "^7.0.0",
|
|
142
|
+
"react-intl": "^10.0.0",
|
|
143
|
+
"zod": "^4.0.0"
|
|
139
144
|
}
|
|
140
145
|
}
|
package/rollup.config.js
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import alias from '@rollup/plugin-alias';
|
|
2
|
+
import babel from '@rollup/plugin-babel';
|
|
3
|
+
import commonjs from '@rollup/plugin-commonjs';
|
|
4
|
+
import json from '@rollup/plugin-json';
|
|
5
|
+
import resolve from '@rollup/plugin-node-resolve';
|
|
6
|
+
import terser from '@rollup/plugin-terser';
|
|
7
|
+
import path from 'node:path';
|
|
8
|
+
import { dts } from 'rollup-plugin-dts';
|
|
9
|
+
|
|
10
|
+
import packageJson from './package.json' with { type: 'json' };
|
|
11
|
+
|
|
12
|
+
const packageJsonDependencies = [...Object.keys(packageJson.peerDependencies), ...Object.keys(packageJson.dependencies)];
|
|
13
|
+
|
|
14
|
+
const external = (source) => packageJsonDependencies.some((dependency) => source === dependency || source.startsWith(`${dependency}/`));
|
|
15
|
+
|
|
16
|
+
const rollupConfig = [
|
|
17
|
+
{
|
|
18
|
+
input: 'src/index.ts',
|
|
19
|
+
output: [
|
|
20
|
+
{
|
|
21
|
+
file: packageJson.main,
|
|
22
|
+
format: 'cjs',
|
|
23
|
+
interop: 'auto',
|
|
24
|
+
sourcemap: true,
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
file: packageJson.module,
|
|
28
|
+
format: 'esm',
|
|
29
|
+
sourcemap: true,
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
plugins: [
|
|
33
|
+
alias({
|
|
34
|
+
entries: [{ find: '@', replacement: path.resolve('src') }],
|
|
35
|
+
}),
|
|
36
|
+
resolve({
|
|
37
|
+
extensions: ['.js', '.jsx', '.ts', '.tsx'],
|
|
38
|
+
}),
|
|
39
|
+
commonjs(),
|
|
40
|
+
babel({
|
|
41
|
+
babelHelpers: 'bundled',
|
|
42
|
+
exclude: 'node_modules/**',
|
|
43
|
+
extensions: ['.js', '.jsx', '.ts', '.tsx'],
|
|
44
|
+
}),
|
|
45
|
+
json(),
|
|
46
|
+
terser(),
|
|
47
|
+
],
|
|
48
|
+
external: external,
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
input: './src/index.ts',
|
|
52
|
+
output: [{ file: 'dist/index.d.ts', format: 'es' }],
|
|
53
|
+
external: external,
|
|
54
|
+
plugins: [dts({ tsconfig: './tsconfig.app.json' })],
|
|
55
|
+
},
|
|
56
|
+
];
|
|
57
|
+
|
|
58
|
+
export default rollupConfig;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "./tsconfig.base.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"composite": true,
|
|
5
|
+
"jsx": "react-jsx",
|
|
6
|
+
"lib": ["ES2023", "DOM", "DOM.Iterable"],
|
|
7
|
+
"target": "ES2020",
|
|
8
|
+
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
|
9
|
+
"types": ["jest"]
|
|
10
|
+
},
|
|
11
|
+
"include": [".storybook/preview.tsx", "src"]
|
|
12
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"esModuleInterop": true,
|
|
4
|
+
"isolatedModules": true,
|
|
5
|
+
"module": "ESNext",
|
|
6
|
+
"moduleDetection": "force",
|
|
7
|
+
"moduleResolution": "bundler",
|
|
8
|
+
"noEmit": true,
|
|
9
|
+
"noFallthroughCasesInSwitch": true,
|
|
10
|
+
"noUncheckedSideEffectImports": true,
|
|
11
|
+
"paths": {
|
|
12
|
+
"@/*": ["./src/*"]
|
|
13
|
+
},
|
|
14
|
+
"resolveJsonModule": true,
|
|
15
|
+
"skipLibCheck": true,
|
|
16
|
+
"strict": true
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "./tsconfig.base.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"composite": true,
|
|
5
|
+
"erasableSyntaxOnly": true,
|
|
6
|
+
"lib": ["ES2023"],
|
|
7
|
+
"target": "ES2023",
|
|
8
|
+
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
|
|
9
|
+
"types": ["node"],
|
|
10
|
+
"verbatimModuleSyntax": true
|
|
11
|
+
},
|
|
12
|
+
"include": [".storybook/main.ts", "jest.config.ts"]
|
|
13
|
+
}
|