@mmb-digital/design-system-web 0.1.347-alpha.0 → 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 +107 -289
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +18 -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.347
|
|
3
|
+
"version": "0.1.347",
|
|
4
4
|
"description": "MMB design-system-web",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -25,18 +25,20 @@
|
|
|
25
25
|
"node": ">=20"
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|
|
28
|
-
"build": "rollup -c
|
|
28
|
+
"build": "rollup -c",
|
|
29
29
|
"test": "yarn p && yarn tsc && yarn l && yarn sl && yarn j",
|
|
30
30
|
"t": "yarn test",
|
|
31
|
-
"test:ci": "yarn
|
|
32
|
-
"
|
|
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 .",
|
|
33
35
|
"lint:fix": "yarn eslint --fix",
|
|
34
36
|
"lf": "yarn lint:fix",
|
|
35
|
-
"prettier": "
|
|
37
|
+
"prettier": "prettier --check .",
|
|
36
38
|
"p": "yarn prettier",
|
|
37
39
|
"prettier:fix": "yarn prettier --write",
|
|
38
40
|
"pf": "yarn prettier:fix",
|
|
39
|
-
"tsc": "
|
|
41
|
+
"tsc": "tsc -b",
|
|
40
42
|
"storybook": "storybook dev -p 6006 --no-open",
|
|
41
43
|
"sb": "yarn storybook",
|
|
42
44
|
"build-storybook": "NODE_OPTIONS=--max_old_space_size=1024 storybook build",
|
|
@@ -59,7 +61,7 @@
|
|
|
59
61
|
"@emotion/babel-plugin": "^11.13.5",
|
|
60
62
|
"@emotion/react": "^11.14.0",
|
|
61
63
|
"@emotion/styled": "^11.14.1",
|
|
62
|
-
"@eslint/js": "^
|
|
64
|
+
"@eslint/js": "^9.39.4",
|
|
63
65
|
"@rollup/plugin-alias": "^6.0.0",
|
|
64
66
|
"@rollup/plugin-babel": "^7.0.0",
|
|
65
67
|
"@rollup/plugin-commonjs": "^29.0.2",
|
|
@@ -116,7 +118,7 @@
|
|
|
116
118
|
"@floating-ui/react": "^0.27.19",
|
|
117
119
|
"@google-recaptcha/core": "^1.1.3",
|
|
118
120
|
"@hookform/resolvers": "^5.4.0",
|
|
119
|
-
"afformative": "^0.7.0
|
|
121
|
+
"afformative": "^0.7.0",
|
|
120
122
|
"date-fns": "^4.2.1",
|
|
121
123
|
"downshift": "^9.3.3",
|
|
122
124
|
"imask": "^7.6.1",
|
|
@@ -131,13 +133,13 @@
|
|
|
131
133
|
"usehooks-ts": "^3.1.1"
|
|
132
134
|
},
|
|
133
135
|
"peerDependencies": {
|
|
134
|
-
"@emotion/react": "^11.
|
|
135
|
-
"@emotion/styled": "^11.
|
|
136
|
-
"next-intl": "^4.
|
|
137
|
-
"react": "^
|
|
138
|
-
"react-dom": "^
|
|
139
|
-
"react-hook-form": "^7.
|
|
140
|
-
"react-intl": "^
|
|
141
|
-
"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"
|
|
142
144
|
}
|
|
143
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
|
+
}
|