@kvdbil/components 17.12.3 → 17.12.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/esm/components/Message/index.js +1 -1
- package/package.json +11 -7
- package/package.json.tmp +11 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{jsx as o,jsxs as a}from"react/jsx-runtime";import{useRef as h,useState as x}from"react";import s from"styled-components";import{TinyTitleRegular as v}from"../../typography/Heading/index.js";import b from"../../icons/components/AlertIcon.js";import k from"../../icons/components/CheckCircleIcon.js";import y from"../../icons/components/CloseIcon.js";import $ from"../../icons/components/InfoIcon.js";import w from"../../icons/components/WarningIcon.js";import{resetButtonStyle as C}from"../../utils/utils.js";import"../../shared/media-queries.js";const T=(e,r,t)=>{const n=t.colors.text.dark,i=t.colors.background.light;switch(e){case"info":return{text:r?t.colors.info.dark:n,background:r?i:t.colors.info.lighter};case"success":return{text:r?t.colors.success.dark:n,background:r?i:t.colors.success.lighter};case"warning":return{text:r?t.colors.warning.dark:n,background:r?i:t.colors.warning.lighter};case"error":return{text:r?t.colors.error.dark:n,background:r?i:t.colors.error.lighter};
|
|
1
|
+
import{jsx as o,jsxs as a}from"react/jsx-runtime";import{useRef as h,useState as x}from"react";import s from"styled-components";import{TinyTitleRegular as v}from"../../typography/Heading/index.js";import b from"../../icons/components/AlertIcon.js";import k from"../../icons/components/CheckCircleIcon.js";import y from"../../icons/components/CloseIcon.js";import $ from"../../icons/components/InfoIcon.js";import w from"../../icons/components/WarningIcon.js";import{resetButtonStyle as C}from"../../utils/utils.js";import"../../shared/media-queries.js";const T=(e,r,t)=>{const n=t.colors.text.dark,i=t.colors.background.light;switch(e){case"info":return{text:r?t.colors.info.dark:n,background:r?i:t.colors.info.lighter};case"success":return{text:r?t.colors.success.dark:n,background:r?i:t.colors.success.lighter};case"warning":return{text:r?t.colors.warning.dark:n,background:r?i:t.colors.warning.lighter};case"error":return{text:r?t.colors.error.dark:n,background:r?i:t.colors.error.lighter};default:return{text:r?t.colors.text.light:n,background:r?t.colors.background.dark:i}}},j=e=>{switch(e){case"success":return o(k,{});case"warning":return o(w,{});case"error":return o(b,{});default:return o($,{})}},D=s.div`
|
|
2
2
|
${({isDeleted:e})=>e&&`
|
|
3
3
|
opacity: 0;
|
|
4
4
|
transition: opacity 0.3s;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kvdbil/components",
|
|
3
|
-
"version": "17.12.
|
|
3
|
+
"version": "17.12.5",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"main": "cjs/index.js",
|
|
6
6
|
"module": "esm/index.js",
|
|
@@ -47,7 +47,11 @@
|
|
|
47
47
|
"not op_mini all"
|
|
48
48
|
],
|
|
49
49
|
"resolutions": {
|
|
50
|
-
"**/@types/react": "^18.3.12"
|
|
50
|
+
"**/@types/react": "^18.3.12",
|
|
51
|
+
"**/minimatch": "^9.0.7",
|
|
52
|
+
"**/flatted": "^3.4.2",
|
|
53
|
+
"**/serialize-javascript": "^7.0.3",
|
|
54
|
+
"**/svgo": "^3.3.3"
|
|
51
55
|
},
|
|
52
56
|
"devDependencies": {
|
|
53
57
|
"@babel/core": "^7.11.6",
|
|
@@ -62,7 +66,7 @@
|
|
|
62
66
|
"@storybook/addon-themes": "^8.3.3",
|
|
63
67
|
"@storybook/addon-webpack5-compiler-babel": "^3.0.3",
|
|
64
68
|
"@storybook/react": "^8.3.3",
|
|
65
|
-
"@storybook/react-webpack5": "^8.
|
|
69
|
+
"@storybook/react-webpack5": "^8.6.18",
|
|
66
70
|
"@svgr/cli": "^8.0.0",
|
|
67
71
|
"@testing-library/dom": "^10.4.0",
|
|
68
72
|
"@testing-library/jest-dom": "^6.9.1",
|
|
@@ -70,7 +74,7 @@
|
|
|
70
74
|
"@testing-library/react-hooks": "^8.0.1",
|
|
71
75
|
"@testing-library/user-event": "^14.5.2",
|
|
72
76
|
"@types/jest": "^30.0.0",
|
|
73
|
-
"@types/node": "24.
|
|
77
|
+
"@types/node": "24.12.2",
|
|
74
78
|
"@types/react": "^18.3.8",
|
|
75
79
|
"@types/react-collapse": "^5.0.4",
|
|
76
80
|
"@types/react-dom": "^18.3.0",
|
|
@@ -82,16 +86,16 @@
|
|
|
82
86
|
"babel-plugin-styled-components": "^2.1.4",
|
|
83
87
|
"cross-env": "10.1.0",
|
|
84
88
|
"date-fns": "^4.1.0",
|
|
85
|
-
"esbuild": "^0.
|
|
89
|
+
"esbuild": "^0.28.0",
|
|
86
90
|
"eslint": "^9.32.0",
|
|
87
91
|
"eslint-config-prettier": "^10.0.1",
|
|
88
|
-
"eslint-plugin-mdx": "^3.
|
|
92
|
+
"eslint-plugin-mdx": "^3.7.0",
|
|
89
93
|
"eslint-plugin-react": "^7.36.1",
|
|
90
94
|
"eslint-plugin-react-hooks": "^5.0.0",
|
|
91
95
|
"globals": "^16.0.0",
|
|
92
96
|
"husky": "^9.1.5",
|
|
93
97
|
"identity-obj-proxy": "^3.0.0",
|
|
94
|
-
"jest": "^30.
|
|
98
|
+
"jest": "^30.3.0",
|
|
95
99
|
"jest-environment-jsdom": "^30.2.0",
|
|
96
100
|
"jest-styled-components": "^7.2.0",
|
|
97
101
|
"jest-watch-typeahead": "^3.0.1",
|
package/package.json.tmp
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kvdbil/components",
|
|
3
|
-
"version": "17.12.
|
|
3
|
+
"version": "17.12.5",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"main": "cjs/index.js",
|
|
6
6
|
"module": "esm/index.js",
|
|
@@ -46,7 +46,11 @@
|
|
|
46
46
|
"not op_mini all"
|
|
47
47
|
],
|
|
48
48
|
"resolutions": {
|
|
49
|
-
"**/@types/react": "^18.3.12"
|
|
49
|
+
"**/@types/react": "^18.3.12",
|
|
50
|
+
"**/minimatch": "^9.0.7",
|
|
51
|
+
"**/flatted": "^3.4.2",
|
|
52
|
+
"**/serialize-javascript": "^7.0.3",
|
|
53
|
+
"**/svgo": "^3.3.3"
|
|
50
54
|
},
|
|
51
55
|
"devDependencies": {
|
|
52
56
|
"@babel/core": "^7.11.6",
|
|
@@ -61,7 +65,7 @@
|
|
|
61
65
|
"@storybook/addon-themes": "^8.3.3",
|
|
62
66
|
"@storybook/addon-webpack5-compiler-babel": "^3.0.3",
|
|
63
67
|
"@storybook/react": "^8.3.3",
|
|
64
|
-
"@storybook/react-webpack5": "^8.
|
|
68
|
+
"@storybook/react-webpack5": "^8.6.18",
|
|
65
69
|
"@svgr/cli": "^8.0.0",
|
|
66
70
|
"@testing-library/dom": "^10.4.0",
|
|
67
71
|
"@testing-library/jest-dom": "^6.9.1",
|
|
@@ -69,7 +73,7 @@
|
|
|
69
73
|
"@testing-library/react-hooks": "^8.0.1",
|
|
70
74
|
"@testing-library/user-event": "^14.5.2",
|
|
71
75
|
"@types/jest": "^30.0.0",
|
|
72
|
-
"@types/node": "24.
|
|
76
|
+
"@types/node": "24.12.2",
|
|
73
77
|
"@types/react": "^18.3.8",
|
|
74
78
|
"@types/react-collapse": "^5.0.4",
|
|
75
79
|
"@types/react-dom": "^18.3.0",
|
|
@@ -81,16 +85,16 @@
|
|
|
81
85
|
"babel-plugin-styled-components": "^2.1.4",
|
|
82
86
|
"cross-env": "10.1.0",
|
|
83
87
|
"date-fns": "^4.1.0",
|
|
84
|
-
"esbuild": "^0.
|
|
88
|
+
"esbuild": "^0.28.0",
|
|
85
89
|
"eslint": "^9.32.0",
|
|
86
90
|
"eslint-config-prettier": "^10.0.1",
|
|
87
|
-
"eslint-plugin-mdx": "^3.
|
|
91
|
+
"eslint-plugin-mdx": "^3.7.0",
|
|
88
92
|
"eslint-plugin-react": "^7.36.1",
|
|
89
93
|
"eslint-plugin-react-hooks": "^5.0.0",
|
|
90
94
|
"globals": "^16.0.0",
|
|
91
95
|
"husky": "^9.1.5",
|
|
92
96
|
"identity-obj-proxy": "^3.0.0",
|
|
93
|
-
"jest": "^30.
|
|
97
|
+
"jest": "^30.3.0",
|
|
94
98
|
"jest-environment-jsdom": "^30.2.0",
|
|
95
99
|
"jest-styled-components": "^7.2.0",
|
|
96
100
|
"jest-watch-typeahead": "^3.0.1",
|