@kvdbil/components 17.12.3 → 17.12.4

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.
@@ -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};case"text":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,{});case"info":case"text":default:return o($,{})}},D=s.div`
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",
3
+ "version": "17.12.4",
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.3.3",
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",
@@ -85,13 +89,13 @@
85
89
  "esbuild": "^0.27.0",
86
90
  "eslint": "^9.32.0",
87
91
  "eslint-config-prettier": "^10.0.1",
88
- "eslint-plugin-mdx": "^3.6.2",
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.2.0",
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",
3
+ "version": "17.12.4",
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.3.3",
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",
@@ -84,13 +88,13 @@
84
88
  "esbuild": "^0.27.0",
85
89
  "eslint": "^9.32.0",
86
90
  "eslint-config-prettier": "^10.0.1",
87
- "eslint-plugin-mdx": "^3.6.2",
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.2.0",
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",