@digital-b2c/coreui-kit 0.3.2 → 0.3.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.md +52 -52
- package/dist/index.cjs +256 -356
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +4 -4
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +54 -155
- package/dist/index.d.ts +54 -155
- package/dist/index.mjs +244 -344
- package/dist/index.mjs.map +1 -1
- package/dist/types/global.d.ts +12 -7
- package/package.json +96 -94
package/dist/types/global.d.ts
CHANGED
|
@@ -1,20 +1,25 @@
|
|
|
1
|
-
declare module '*.svg
|
|
1
|
+
declare module '*.svg' {
|
|
2
2
|
import type * as React from 'react'
|
|
3
|
-
const ReactComponent: React.FunctionComponent<React.SVGProps<SVGSVGElement> & { title?: string }>
|
|
4
|
-
export default ReactComponent
|
|
5
|
-
}
|
|
6
3
|
|
|
7
|
-
|
|
4
|
+
export const ReactComponent: React.FunctionComponent<
|
|
5
|
+
React.SVGProps<SVGSVGElement> & { title?: string }
|
|
6
|
+
>
|
|
7
|
+
|
|
8
8
|
const src: string
|
|
9
9
|
export default src
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
declare module '*.module.css' {
|
|
13
|
-
const classes: { [key: string]: string }
|
|
13
|
+
const classes: { readonly [key: string]: string }
|
|
14
14
|
export default classes
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
declare module '*.module.scss' {
|
|
18
|
-
const classes: { [key: string]: string }
|
|
18
|
+
const classes: { readonly [key: string]: string }
|
|
19
|
+
export default classes
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
declare module '*.module.sass' {
|
|
23
|
+
const classes: { readonly [key: string]: string }
|
|
19
24
|
export default classes
|
|
20
25
|
}
|
package/package.json
CHANGED
|
@@ -1,94 +1,96 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@digital-b2c/coreui-kit",
|
|
3
|
-
"version": "0.3.
|
|
4
|
-
"type": "module",
|
|
5
|
-
"main": "dist/index.cjs",
|
|
6
|
-
"module": "dist/index.mjs",
|
|
7
|
-
"types": "dist/index.d.ts",
|
|
8
|
-
"files": [
|
|
9
|
-
"dist"
|
|
10
|
-
],
|
|
11
|
-
"exports": {
|
|
12
|
-
".": {
|
|
13
|
-
"types": "./dist/index.d.ts",
|
|
14
|
-
"import": "./dist/index.mjs",
|
|
15
|
-
"require": "./dist/index.cjs"
|
|
16
|
-
},
|
|
17
|
-
"./styles.css": "./dist/index.css"
|
|
18
|
-
},
|
|
19
|
-
"repository": {
|
|
20
|
-
"type": "git",
|
|
21
|
-
"url": "git+https://bitbucket.org/luxottica_rona/ui-elec-app.git"
|
|
22
|
-
},
|
|
23
|
-
"homepage": "https://bitbucket.org/luxottica_rona/ui-elec-app",
|
|
24
|
-
"bugs": {
|
|
25
|
-
"url": "https://bitbucket.org/luxottica_rona/ui-elec-app/issues"
|
|
26
|
-
},
|
|
27
|
-
"license": "MIT",
|
|
28
|
-
"publishConfig": {
|
|
29
|
-
"access": "public"
|
|
30
|
-
},
|
|
31
|
-
"engines": {
|
|
32
|
-
"node": ">=18"
|
|
33
|
-
},
|
|
34
|
-
"scripts": {
|
|
35
|
-
"build": "tsup",
|
|
36
|
-
"postbuild": "node scripts/copy-types.js",
|
|
37
|
-
"dev": "tsup --watch",
|
|
38
|
-
"lint": "eslint .",
|
|
39
|
-
"storybook": "storybook dev -p 6006",
|
|
40
|
-
"build-storybook": "storybook build",
|
|
41
|
-
"test": "vitest",
|
|
42
|
-
"prepare": "husky"
|
|
43
|
-
},
|
|
44
|
-
"lint-staged": {
|
|
45
|
-
"*.{ts,tsx,js,jsx}": [
|
|
46
|
-
"prettier --write",
|
|
47
|
-
"eslint --fix"
|
|
48
|
-
],
|
|
49
|
-
"*.{json,scss,css,md}": [
|
|
50
|
-
"prettier --write"
|
|
51
|
-
]
|
|
52
|
-
},
|
|
53
|
-
"sideEffects": [
|
|
54
|
-
"*.css"
|
|
55
|
-
],
|
|
56
|
-
"peerDependencies": {
|
|
57
|
-
"react": ">=18",
|
|
58
|
-
"react-dom": ">=18"
|
|
59
|
-
},
|
|
60
|
-
"dependencies": {
|
|
61
|
-
"clsx": "^2.1.1"
|
|
62
|
-
},
|
|
63
|
-
"devDependencies": {
|
|
64
|
-
"@storybook/addon-a11y": "^10.2.14",
|
|
65
|
-
"@storybook/addon-docs": "^10.2.14",
|
|
66
|
-
"@storybook/addon-vitest": "^10.2.14",
|
|
67
|
-
"@storybook/react-vite": "^10.2.14",
|
|
68
|
-
"@svgr/core": "^8.1.0",
|
|
69
|
-
"@
|
|
70
|
-
"@types/
|
|
71
|
-
"@types/react
|
|
72
|
-
"@
|
|
73
|
-
"@typescript-eslint/
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"eslint
|
|
78
|
-
"eslint-
|
|
79
|
-
"eslint-plugin-
|
|
80
|
-
"eslint-plugin-
|
|
81
|
-
"eslint-plugin-
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
|
|
94
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@digital-b2c/coreui-kit",
|
|
3
|
+
"version": "0.3.5",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "dist/index.cjs",
|
|
6
|
+
"module": "dist/index.mjs",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"import": "./dist/index.mjs",
|
|
15
|
+
"require": "./dist/index.cjs"
|
|
16
|
+
},
|
|
17
|
+
"./styles.css": "./dist/index.css"
|
|
18
|
+
},
|
|
19
|
+
"repository": {
|
|
20
|
+
"type": "git",
|
|
21
|
+
"url": "git+https://bitbucket.org/luxottica_rona/ui-elec-app.git"
|
|
22
|
+
},
|
|
23
|
+
"homepage": "https://bitbucket.org/luxottica_rona/ui-elec-app",
|
|
24
|
+
"bugs": {
|
|
25
|
+
"url": "https://bitbucket.org/luxottica_rona/ui-elec-app/issues"
|
|
26
|
+
},
|
|
27
|
+
"license": "MIT",
|
|
28
|
+
"publishConfig": {
|
|
29
|
+
"access": "public"
|
|
30
|
+
},
|
|
31
|
+
"engines": {
|
|
32
|
+
"node": ">=18"
|
|
33
|
+
},
|
|
34
|
+
"scripts": {
|
|
35
|
+
"build": "tsup",
|
|
36
|
+
"postbuild": "node scripts/copy-types.js",
|
|
37
|
+
"dev": "tsup --watch",
|
|
38
|
+
"lint": "eslint .",
|
|
39
|
+
"storybook": "storybook dev -p 6006",
|
|
40
|
+
"build-storybook": "storybook build",
|
|
41
|
+
"test": "vitest",
|
|
42
|
+
"prepare": "husky"
|
|
43
|
+
},
|
|
44
|
+
"lint-staged": {
|
|
45
|
+
"*.{ts,tsx,js,jsx}": [
|
|
46
|
+
"prettier --write",
|
|
47
|
+
"eslint --fix"
|
|
48
|
+
],
|
|
49
|
+
"*.{json,scss,css,md}": [
|
|
50
|
+
"prettier --write"
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
"sideEffects": [
|
|
54
|
+
"*.css"
|
|
55
|
+
],
|
|
56
|
+
"peerDependencies": {
|
|
57
|
+
"react": ">=18",
|
|
58
|
+
"react-dom": ">=18"
|
|
59
|
+
},
|
|
60
|
+
"dependencies": {
|
|
61
|
+
"clsx": "^2.1.1"
|
|
62
|
+
},
|
|
63
|
+
"devDependencies": {
|
|
64
|
+
"@storybook/addon-a11y": "^10.2.14",
|
|
65
|
+
"@storybook/addon-docs": "^10.2.14",
|
|
66
|
+
"@storybook/addon-vitest": "^10.2.14",
|
|
67
|
+
"@storybook/react-vite": "^10.2.14",
|
|
68
|
+
"@svgr/core": "^8.1.0",
|
|
69
|
+
"@svgr/plugin-jsx": "^8.1.0",
|
|
70
|
+
"@types/node": "^25.5.0",
|
|
71
|
+
"@types/react": "^19",
|
|
72
|
+
"@types/react-dom": "^19",
|
|
73
|
+
"@typescript-eslint/eslint-plugin": "^8.56.1",
|
|
74
|
+
"@typescript-eslint/parser": "^8.56.1",
|
|
75
|
+
"esbuild-plugin-svgr": "^1.1.0",
|
|
76
|
+
"esbuild-sass-plugin": "^3.7.0",
|
|
77
|
+
"eslint": "^9",
|
|
78
|
+
"eslint-config-prettier": "^10.1.8",
|
|
79
|
+
"eslint-plugin-import": "^2.32.0",
|
|
80
|
+
"eslint-plugin-react": "^7.37.5",
|
|
81
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
82
|
+
"eslint-plugin-storybook": "^10.2.14",
|
|
83
|
+
"eslint-plugin-unused-imports": "^4.4.1",
|
|
84
|
+
"husky": "^9.1.7",
|
|
85
|
+
"lint-staged": "^16.3.1",
|
|
86
|
+
"prettier": "^3.8.1",
|
|
87
|
+
"sass": "^1.98.0",
|
|
88
|
+
"storybook": "^10.2.14",
|
|
89
|
+
"tsup": "^8.0.1",
|
|
90
|
+
"typescript": "^5",
|
|
91
|
+
"typescript-eslint": "^8.56.1",
|
|
92
|
+
"vite-plugin-svgr": "^4.5.0",
|
|
93
|
+
"vite-tsconfig-paths": "^6.1.1",
|
|
94
|
+
"vitest": "^4.0.18"
|
|
95
|
+
}
|
|
96
|
+
}
|