From 767b01e63d56438f25accf49fdc64607f8916d59 Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 10 Dec 2024 15:45:59 +0100 Subject: [PATCH 1/4] chore: react v19 --- .changeset/chatty-donuts-study.md | 8 + examples/next-advanced/package.json | 6 +- examples/next-login/package.json | 5 +- examples/next-simple/package.json | 6 +- package.json | 12 +- packages/form/package.json | 12 +- packages/icons/package.json | 8 +- packages/illustrations/package.json | 8 +- packages/plus/package.json | 8 +- packages/ui/package.json | 8 +- pnpm-lock.yaml | 784 ++++++++++++++++++++-------- utils/test/package.json | 6 +- 12 files changed, 613 insertions(+), 258 deletions(-) create mode 100644 .changeset/chatty-donuts-study.md diff --git a/.changeset/chatty-donuts-study.md b/.changeset/chatty-donuts-study.md new file mode 100644 index 0000000000..1c51e49ddd --- /dev/null +++ b/.changeset/chatty-donuts-study.md @@ -0,0 +1,8 @@ +--- +"@ultraviolet/icons": minor +"@ultraviolet/form": minor +"@ultraviolet/plus": minor +"@ultraviolet/ui": minor +--- + +Upgrade from react 18 to react 19 diff --git a/examples/next-advanced/package.json b/examples/next-advanced/package.json index 6e70ed6c41..058cb019aa 100644 --- a/examples/next-advanced/package.json +++ b/examples/next-advanced/package.json @@ -19,8 +19,8 @@ "@emotion/styled": "11.14.0", "@ultraviolet/ui": "workspace:*", "next": "15.1.1", - "react": "18.3.1", - "react-dom": "18.3.1", + "react": "19.0.0", + "react-dom": "19.0.0", "react-schemaorg": "2.0.0", "react-syntax-highlighter": "15.6.1", "react-use-clipboard": "1.0.9", @@ -29,7 +29,7 @@ "devDependencies": { "@babel/core": "7.26.0", "@types/node": "22.10.2", - "@types/react": "18.3.17", + "@types/react": "19.0.0", "@types/react-syntax-highlighter": "15.5.13", "next-transpile-modules": "10.0.1" } diff --git a/examples/next-login/package.json b/examples/next-login/package.json index 59fe0e463d..6985595e16 100644 --- a/examples/next-login/package.json +++ b/examples/next-login/package.json @@ -21,8 +21,8 @@ "@ultraviolet/icons": "workspace:*", "@ultraviolet/ui": "workspace:*", "next": "15.1.1", - "react": "18.3.1", - "react-dom": "18.3.1", + "react": "19.0.0", + "react-dom": "19.0.0", "react-schemaorg": "2.0.0", "react-syntax-highlighter": "15.6.1", "react-use-clipboard": "1.0.9", @@ -32,6 +32,7 @@ "@babel/core": "7.26.0", "@types/node": "22.10.2", "@types/react": "18.3.17", + "@types/react":"19.0.0", "@types/react-syntax-highlighter": "15.5.13", "next-transpile-modules": "10.0.1" } diff --git a/examples/next-simple/package.json b/examples/next-simple/package.json index 8e6eefacb9..68c95103bc 100644 --- a/examples/next-simple/package.json +++ b/examples/next-simple/package.json @@ -20,8 +20,8 @@ "@emotion/styled": "11.14.0", "@ultraviolet/ui": "workspace:*", "next": "15.1.1", - "react": "18.3.1", - "react-dom": "18.3.1", + "react": "19.0.0", + "react-dom": "19.0.0", "react-schemaorg": "2.0.0", "react-syntax-highlighter": "15.6.1", "react-use-clipboard": "1.0.9", @@ -30,7 +30,7 @@ "devDependencies": { "@babel/core": "7.26.0", "@types/node": "22.10.2", - "@types/react": "18.3.17", + "@types/react": "19.0.0", "@types/react-syntax-highlighter": "15.5.13", "next-transpile-modules": "10.0.1" } diff --git a/package.json b/package.json index 36f2307a3f..d06349d76a 100644 --- a/package.json +++ b/package.json @@ -83,8 +83,8 @@ }, "peerDependencyRules": { "allowedVersions": { - "react": "18", - "react-dom": "18" + "react": "18 || 19", + "react-dom": "18 || 19" } } }, @@ -136,9 +136,9 @@ "@testing-library/react": "16.1.0", "@testing-library/user-event": "14.5.2", "@types/node": "22.10.2", - "@types/react": "18.3.17", + "@types/react": "19.0.0", "@types/react-datepicker": "6.2.0", - "@types/react-dom": "18.3.5", + "@types/react-dom": "19.0.0", "@types/zxcvbn": "4.4.5", "@ultraviolet/fonts": "workspace:*", "@ultraviolet/themes": "workspace:*", @@ -170,8 +170,8 @@ "oxlint": "0.15.0", "postcss": "8.4.49", "publint": "0.2.12", - "react": "18.3.1", - "react-dom": "18.3.1", + "react": "19.0.0", + "react-dom": "19.0.0", "read-pkg": "9.0.1", "regenerator-runtime": "0.14.1", "remark-gfm": "4.0.0", diff --git a/packages/form/package.json b/packages/form/package.json index 3d7c34b06f..28ad23e1ce 100644 --- a/packages/form/package.json +++ b/packages/form/package.json @@ -66,19 +66,19 @@ "peerDependencies": { "@emotion/react": "11.14.0", "@emotion/styled": "11.14.0", - "react": "18.x", - "react-dom": "18.x" + "react": "18.x || 19.x", + "react-dom": "18.x || 19.x" }, "devDependencies": { "@babel/core": "7.26.0", "@emotion/react": "11.14.0", "@emotion/styled": "11.14.0", "@types/final-form-focus": "1.1.7", - "@types/react": "18.3.17", - "@types/react-dom": "18.3.5", + "@types/react": "19.0.0", + "@types/react-dom": "19.0.0", "@utils/test": "workspace:*", - "react": "18.3.1", - "react-dom": "18.3.1" + "react": "19.0.0", + "react-dom": "19.0.0" }, "dependencies": { "@babel/runtime": "7.26.0", diff --git a/packages/icons/package.json b/packages/icons/package.json index 4736eb1ae2..9670e83540 100644 --- a/packages/icons/package.json +++ b/packages/icons/package.json @@ -113,8 +113,8 @@ "peerDependencies": { "@emotion/react": "11.14.0", "@emotion/styled": "11.14.0", - "react": "18.3.1", - "react-dom": "18.3.1" + "react": "18.x || 19.x", + "react-dom": "18.x || 19.x" }, "devDependencies": { "@babel/core": "7.26.0", @@ -123,8 +123,8 @@ "@types/react": "18.3.17", "@types/react-dom": "18.3.5", "@utils/test": "workspace:*", - "react": "18.3.1", - "react-dom": "18.3.1" + "react": "19.0.0", + "react-dom": "19.0.0" }, "dependencies": { "@ultraviolet/themes": "workspace:*" diff --git a/packages/illustrations/package.json b/packages/illustrations/package.json index 672f40f082..a5be804a0e 100644 --- a/packages/illustrations/package.json +++ b/packages/illustrations/package.json @@ -98,8 +98,8 @@ "peerDependencies": { "@emotion/react": "11.14.0", "@emotion/styled": "11.14.0", - "react": "18.3.1", - "react-dom": "18.3.1" + "react": "18.x || 19.x", + "react-dom": "18.x || 19.x" }, "dependencies": { "@ultraviolet/themes": "workspace:*" @@ -109,7 +109,7 @@ "@emotion/styled": "11.14.0", "@ultraviolet/ui": "workspace:*", "@utils/test": "workspace:*", - "react": "18.3.1", - "react-dom": "18.3.1" + "react": "19.0.0", + "react-dom": "19.0.0" } } diff --git a/packages/plus/package.json b/packages/plus/package.json index c5ae9ce72e..d0fec4b2cd 100644 --- a/packages/plus/package.json +++ b/packages/plus/package.json @@ -66,8 +66,8 @@ "peerDependencies": { "@emotion/react": "11.14.0", "@emotion/styled": "11.14.0", - "react": "18.3.1", - "react-dom": "18.3.1" + "react": "18.x || 19.x", + "react-dom": "18.x || 19.x" }, "devDependencies": { "@babel/core": "7.26.0", @@ -77,8 +77,8 @@ "@types/react-dom": "18.3.5", "@ultraviolet/illustrations": "workspace:*", "@utils/test": "workspace:*", - "react": "18.3.1", - "react-dom": "18.3.1" + "react": "19.0.0", + "react-dom": "19.0.0" }, "dependencies": { "@uiw/codemirror-extensions-langs": "4.23.5", diff --git a/packages/ui/package.json b/packages/ui/package.json index 9f4aec5165..698ed7c908 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -69,8 +69,8 @@ "peerDependencies": { "@emotion/react": "11.14.0", "@emotion/styled": "11.14.0", - "react": "18.3.1", - "react-dom": "18.3.1" + "react": "18.x || 19.x", + "react-dom": "18.x || 19.x" }, "devDependencies": { "@babel/core": "7.26.0", @@ -80,8 +80,8 @@ "@types/react-datepicker": "6.2.0", "@types/react-dom": "18.3.5", "@utils/test": "workspace:*", - "react": "18.3.1", - "react-dom": "18.3.1" + "react": "19.0.0", + "react-dom": "19.0.0" }, "dependencies": { "@emotion/serialize": "1.3.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3fdd3f5313..2cf3b33d1a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -61,10 +61,17 @@ importers: version: 11.13.0 '@emotion/react': specifier: 11.14.0 +<<<<<<< HEAD version: 11.14.0(@types/react@18.3.17)(react@18.3.1) '@emotion/styled': specifier: 11.14.0 version: 11.14.0(@emotion/react@11.14.0(@types/react@18.3.17)(react@18.3.1))(@types/react@18.3.17)(react@18.3.1) +======= + version: 11.14.0(@types/react@19.0.0)(react@19.0.0) + '@emotion/styled': + specifier: 11.14.0 + version: 11.14.0(@emotion/react@11.14.0(@types/react@19.0.0)(react@19.0.0))(@types/react@19.0.0)(react@19.0.0) +>>>>>>> 9f9668398 (chore: react v19) '@eslint/compat': specifier: 1.2.4 version: 1.2.4(eslint@9.16.0(jiti@2.1.0)) @@ -91,16 +98,23 @@ importers: version: 8.4.7(storybook@8.4.7(prettier@2.8.8)) '@storybook/addon-docs': specifier: 8.4.7 +<<<<<<< HEAD version: 8.4.7(@types/react@18.3.17)(storybook@8.4.7(prettier@2.8.8)) '@storybook/addon-essentials': specifier: 8.4.7 version: 8.4.7(@types/react@18.3.17)(storybook@8.4.7(prettier@2.8.8)) +======= + version: 8.4.7(@types/react@19.0.0)(storybook@8.4.7(prettier@2.8.8)) + '@storybook/addon-essentials': + specifier: 8.4.7 + version: 8.4.7(@types/react@19.0.0)(storybook@8.4.7(prettier@2.8.8)) +>>>>>>> 9f9668398 (chore: react v19) '@storybook/addon-interactions': specifier: 8.4.7 version: 8.4.7(storybook@8.4.7(prettier@2.8.8)) '@storybook/addon-links': specifier: 8.4.7 - version: 8.4.7(react@18.3.1)(storybook@8.4.7(prettier@2.8.8)) + version: 8.4.7(react@19.0.0)(storybook@8.4.7(prettier@2.8.8)) '@storybook/addon-mdx-gfm': specifier: 8.4.7 version: 8.4.7(storybook@8.4.7(prettier@2.8.8)) @@ -109,7 +123,7 @@ importers: version: 8.4.7(storybook@8.4.7(prettier@2.8.8)) '@storybook/blocks': specifier: 8.4.7 - version: 8.4.7(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(storybook@8.4.7(prettier@2.8.8)) + version: 8.4.7(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(storybook@8.4.7(prettier@2.8.8)) '@storybook/builder-vite': specifier: 8.4.7 version: 8.4.7(storybook@8.4.7(prettier@2.8.8))(vite@5.4.11(@types/node@22.10.2)(terser@5.31.0)) @@ -127,10 +141,10 @@ importers: version: 1.1.0 '@storybook/react': specifier: 8.4.7 - version: 8.4.7(@storybook/test@8.4.7(storybook@8.4.7(prettier@2.8.8)))(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(storybook@8.4.7(prettier@2.8.8))(typescript@5.7.2) + version: 8.4.7(@storybook/test@8.4.7(storybook@8.4.7(prettier@2.8.8)))(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(storybook@8.4.7(prettier@2.8.8))(typescript@5.7.2) '@storybook/react-vite': specifier: 8.4.7 - version: 8.4.7(@storybook/test@8.4.7(storybook@8.4.7(prettier@2.8.8)))(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(rollup@4.21.0)(storybook@8.4.7(prettier@2.8.8))(typescript@5.7.2)(vite@5.4.11(@types/node@22.10.2)(terser@5.31.0)) + version: 8.4.7(@storybook/test@8.4.7(storybook@8.4.7(prettier@2.8.8)))(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(rollup@4.21.0)(storybook@8.4.7(prettier@2.8.8))(typescript@5.7.2)(vite@5.4.11(@types/node@22.10.2)(terser@5.31.0)) '@storybook/theming': specifier: 8.4.7 version: 8.4.7(storybook@8.4.7(prettier@2.8.8)) @@ -145,7 +159,11 @@ importers: version: 6.6.3 '@testing-library/react': specifier: 16.1.0 +<<<<<<< HEAD version: 16.1.0(@testing-library/dom@10.4.0)(@types/react-dom@18.3.5(@types/react@18.3.17))(@types/react@18.3.17)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) +======= + version: 16.1.0(@testing-library/dom@10.4.0)(@types/react-dom@19.0.0)(@types/react@19.0.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0) +>>>>>>> 9f9668398 (chore: react v19) '@testing-library/user-event': specifier: 14.5.2 version: 14.5.2(@testing-library/dom@10.4.0) @@ -153,14 +171,24 @@ importers: specifier: 22.10.2 version: 22.10.2 '@types/react': +<<<<<<< HEAD specifier: 18.3.17 version: 18.3.17 +======= + specifier: 19.0.0 + version: 19.0.0 +>>>>>>> 9f9668398 (chore: react v19) '@types/react-datepicker': specifier: 6.2.0 - version: 6.2.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + version: 6.2.0(react-dom@19.0.0(react@19.0.0))(react@19.0.0) '@types/react-dom': +<<<<<<< HEAD specifier: 18.3.5 version: 18.3.5(@types/react@18.3.17) +======= + specifier: 19.0.0 + version: 19.0.0 +>>>>>>> 9f9668398 (chore: react v19) '@types/zxcvbn': specifier: 4.4.5 version: 4.4.5 @@ -255,11 +283,11 @@ importers: specifier: 0.2.12 version: 0.2.12 react: - specifier: 18.3.1 - version: 18.3.1 + specifier: 19.0.0 + version: 19.0.0 react-dom: - specifier: 18.3.1 - version: 18.3.1(react@18.3.1) + specifier: 19.0.0 + version: 19.0.0(react@19.0.0) read-pkg: specifier: 9.0.1 version: 9.0.1 @@ -286,7 +314,7 @@ importers: version: 8.4.7(prettier@2.8.8) storybook-addon-tag-badges: specifier: 1.3.2 - version: 1.3.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(storybook@8.4.7(prettier@2.8.8)) + version: 1.3.2(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(storybook@8.4.7(prettier@2.8.8)) svgo: specifier: 3.3.2 version: 3.3.2 @@ -322,31 +350,43 @@ importers: dependencies: '@emotion/react': specifier: 11.14.0 +<<<<<<< HEAD version: 11.14.0(@types/react@18.3.17)(react@18.3.1) '@emotion/styled': specifier: 11.14.0 version: 11.14.0(@emotion/react@11.14.0(@types/react@18.3.17)(react@18.3.1))(@types/react@18.3.17)(react@18.3.1) +======= + version: 11.14.0(@types/react@19.0.0)(react@19.0.0) + '@emotion/styled': + specifier: 11.14.0 + version: 11.14.0(@emotion/react@11.14.0(@types/react@19.0.0)(react@19.0.0))(@types/react@19.0.0)(react@19.0.0) +>>>>>>> 9f9668398 (chore: react v19) '@ultraviolet/ui': specifier: workspace:* version: link:../../packages/ui next: +<<<<<<< HEAD specifier: 15.1.1 version: 15.1.1(@babel/core@7.26.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) +======= + specifier: 15.1.0 + version: 15.1.0(@babel/core@7.26.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0) +>>>>>>> 9f9668398 (chore: react v19) react: - specifier: 18.3.1 - version: 18.3.1 + specifier: 19.0.0 + version: 19.0.0 react-dom: - specifier: 18.3.1 - version: 18.3.1(react@18.3.1) + specifier: 19.0.0 + version: 19.0.0(react@19.0.0) react-schemaorg: specifier: 2.0.0 - version: 2.0.0(react@18.3.1)(schema-dts@1.1.2(typescript@5.7.2))(typescript@5.7.2) + version: 2.0.0(react@19.0.0)(schema-dts@1.1.2(typescript@5.7.2))(typescript@5.7.2) react-syntax-highlighter: specifier: 15.6.1 - version: 15.6.1(react@18.3.1) + version: 15.6.1(react@19.0.0) react-use-clipboard: specifier: 1.0.9 - version: 1.0.9(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + version: 1.0.9(react-dom@19.0.0(react@19.0.0))(react@19.0.0) schema-dts: specifier: 1.1.2 version: 1.1.2(typescript@5.7.2) @@ -358,8 +398,13 @@ importers: specifier: 22.10.2 version: 22.10.2 '@types/react': +<<<<<<< HEAD specifier: 18.3.17 version: 18.3.17 +======= + specifier: 19.0.0 + version: 19.0.0 +>>>>>>> 9f9668398 (chore: react v19) '@types/react-syntax-highlighter': specifier: 15.5.13 version: 15.5.13 @@ -371,10 +416,17 @@ importers: dependencies: '@emotion/react': specifier: 11.14.0 +<<<<<<< HEAD version: 11.14.0(@types/react@18.3.17)(react@18.3.1) '@emotion/styled': specifier: 11.14.0 version: 11.14.0(@emotion/react@11.14.0(@types/react@18.3.17)(react@18.3.1))(@types/react@18.3.17)(react@18.3.1) +======= + version: 11.14.0(@types/react@19.0.0)(react@19.0.0) + '@emotion/styled': + specifier: 11.14.0 + version: 11.14.0(@emotion/react@11.14.0(@types/react@19.0.0)(react@19.0.0))(@types/react@19.0.0)(react@19.0.0) +>>>>>>> 9f9668398 (chore: react v19) '@ultraviolet/form': specifier: workspace:* version: link:../../packages/form @@ -385,23 +437,28 @@ importers: specifier: workspace:* version: link:../../packages/ui next: +<<<<<<< HEAD specifier: 15.1.1 version: 15.1.1(@babel/core@7.26.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) +======= + specifier: 15.1.0 + version: 15.1.0(@babel/core@7.26.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0) +>>>>>>> 9f9668398 (chore: react v19) react: - specifier: 18.3.1 - version: 18.3.1 + specifier: 19.0.0 + version: 19.0.0 react-dom: - specifier: 18.3.1 - version: 18.3.1(react@18.3.1) + specifier: 19.0.0 + version: 19.0.0(react@19.0.0) react-schemaorg: specifier: 2.0.0 - version: 2.0.0(react@18.3.1)(schema-dts@1.1.2(typescript@5.7.2))(typescript@5.7.2) + version: 2.0.0(react@19.0.0)(schema-dts@1.1.2(typescript@5.7.2))(typescript@5.7.2) react-syntax-highlighter: specifier: 15.6.1 - version: 15.6.1(react@18.3.1) + version: 15.6.1(react@19.0.0) react-use-clipboard: specifier: 1.0.9 - version: 1.0.9(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + version: 1.0.9(react-dom@19.0.0(react@19.0.0))(react@19.0.0) schema-dts: specifier: 1.1.2 version: 1.1.2(typescript@5.7.2) @@ -413,8 +470,13 @@ importers: specifier: 22.10.2 version: 22.10.2 '@types/react': +<<<<<<< HEAD specifier: 18.3.17 version: 18.3.17 +======= + specifier: 19.0.0 + version: 19.0.0 +>>>>>>> 9f9668398 (chore: react v19) '@types/react-syntax-highlighter': specifier: 15.5.13 version: 15.5.13 @@ -426,31 +488,43 @@ importers: dependencies: '@emotion/react': specifier: 11.14.0 +<<<<<<< HEAD version: 11.14.0(@types/react@18.3.17)(react@18.3.1) '@emotion/styled': specifier: 11.14.0 version: 11.14.0(@emotion/react@11.14.0(@types/react@18.3.17)(react@18.3.1))(@types/react@18.3.17)(react@18.3.1) +======= + version: 11.14.0(@types/react@19.0.0)(react@19.0.0) + '@emotion/styled': + specifier: 11.14.0 + version: 11.14.0(@emotion/react@11.14.0(@types/react@19.0.0)(react@19.0.0))(@types/react@19.0.0)(react@19.0.0) +>>>>>>> 9f9668398 (chore: react v19) '@ultraviolet/ui': specifier: workspace:* version: link:../../packages/ui next: +<<<<<<< HEAD specifier: 15.1.1 version: 15.1.1(@babel/core@7.26.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) +======= + specifier: 15.1.0 + version: 15.1.0(@babel/core@7.26.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0) +>>>>>>> 9f9668398 (chore: react v19) react: - specifier: 18.3.1 - version: 18.3.1 + specifier: 19.0.0 + version: 19.0.0 react-dom: - specifier: 18.3.1 - version: 18.3.1(react@18.3.1) + specifier: 19.0.0 + version: 19.0.0(react@19.0.0) react-schemaorg: specifier: 2.0.0 - version: 2.0.0(react@18.3.1)(schema-dts@1.1.2(typescript@5.7.2))(typescript@5.7.2) + version: 2.0.0(react@19.0.0)(schema-dts@1.1.2(typescript@5.7.2))(typescript@5.7.2) react-syntax-highlighter: specifier: 15.6.1 - version: 15.6.1(react@18.3.1) + version: 15.6.1(react@19.0.0) react-use-clipboard: specifier: 1.0.9 - version: 1.0.9(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + version: 1.0.9(react-dom@19.0.0(react@19.0.0))(react@19.0.0) schema-dts: specifier: 1.1.2 version: 1.1.2(typescript@5.7.2) @@ -462,8 +536,13 @@ importers: specifier: 22.10.2 version: 22.10.2 '@types/react': +<<<<<<< HEAD specifier: 18.3.17 version: 18.3.17 +======= + specifier: 19.0.0 + version: 19.0.0 +>>>>>>> 9f9668398 (chore: react v19) '@types/react-syntax-highlighter': specifier: 15.5.13 version: 15.5.13 @@ -486,38 +565,57 @@ importers: version: link:../ui react-hook-form: specifier: 7.53.2 - version: 7.53.2(react@18.3.1) + version: 7.53.2(react@19.0.0) react-select: specifier: 5.8.3 +<<<<<<< HEAD version: 5.8.3(@types/react@18.3.17)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) +======= + version: 5.8.3(@types/react@19.0.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0) +>>>>>>> 9f9668398 (chore: react v19) devDependencies: '@babel/core': specifier: 7.26.0 version: 7.26.0 '@emotion/react': specifier: 11.14.0 +<<<<<<< HEAD version: 11.14.0(@types/react@18.3.17)(react@18.3.1) '@emotion/styled': specifier: 11.14.0 version: 11.14.0(@emotion/react@11.14.0(@types/react@18.3.17)(react@18.3.1))(@types/react@18.3.17)(react@18.3.1) +======= + version: 11.14.0(@types/react@19.0.0)(react@19.0.0) + '@emotion/styled': + specifier: 11.14.0 + version: 11.14.0(@emotion/react@11.14.0(@types/react@19.0.0)(react@19.0.0))(@types/react@19.0.0)(react@19.0.0) +>>>>>>> 9f9668398 (chore: react v19) '@types/final-form-focus': specifier: 1.1.7 version: 1.1.7 '@types/react': +<<<<<<< HEAD specifier: 18.3.17 version: 18.3.17 '@types/react-dom': specifier: 18.3.5 version: 18.3.5(@types/react@18.3.17) +======= + specifier: 19.0.0 + version: 19.0.0 + '@types/react-dom': + specifier: 19.0.0 + version: 19.0.0 +>>>>>>> 9f9668398 (chore: react v19) '@utils/test': specifier: workspace:* version: link:../../utils/test react: - specifier: 18.3.1 - version: 18.3.1 + specifier: 19.0.0 + version: 19.0.0 react-dom: - specifier: 18.3.1 - version: 18.3.1(react@18.3.1) + specifier: 19.0.0 + version: 19.0.0(react@19.0.0) packages/icons: dependencies: @@ -530,10 +628,17 @@ importers: version: 7.26.0 '@emotion/react': specifier: 11.14.0 +<<<<<<< HEAD version: 11.14.0(@types/react@18.3.17)(react@18.3.1) '@emotion/styled': specifier: 11.14.0 version: 11.14.0(@emotion/react@11.14.0(@types/react@18.3.17)(react@18.3.1))(@types/react@18.3.17)(react@18.3.1) +======= + version: 11.14.0(@types/react@18.3.16)(react@19.0.0) + '@emotion/styled': + specifier: 11.14.0 + version: 11.14.0(@emotion/react@11.14.0(@types/react@18.3.16)(react@19.0.0))(@types/react@18.3.16)(react@19.0.0) +>>>>>>> 9f9668398 (chore: react v19) '@types/react': specifier: 18.3.17 version: 18.3.17 @@ -544,11 +649,11 @@ importers: specifier: workspace:* version: link:../../utils/test react: - specifier: 18.3.1 - version: 18.3.1 + specifier: 19.0.0 + version: 19.0.0 react-dom: - specifier: 18.3.1 - version: 18.3.1(react@18.3.1) + specifier: 19.0.0 + version: 19.0.0(react@19.0.0) packages/illustrations: dependencies: @@ -558,10 +663,17 @@ importers: devDependencies: '@emotion/react': specifier: 11.14.0 +<<<<<<< HEAD version: 11.14.0(@types/react@18.3.17)(react@18.3.1) '@emotion/styled': specifier: 11.14.0 version: 11.14.0(@emotion/react@11.14.0(@types/react@18.3.17)(react@18.3.1))(@types/react@18.3.17)(react@18.3.1) +======= + version: 11.14.0(@types/react@19.0.0)(react@19.0.0) + '@emotion/styled': + specifier: 11.14.0 + version: 11.14.0(@emotion/react@11.14.0(@types/react@19.0.0)(react@19.0.0))(@types/react@19.0.0)(react@19.0.0) +>>>>>>> 9f9668398 (chore: react v19) '@ultraviolet/ui': specifier: workspace:* version: link:../ui @@ -569,11 +681,11 @@ importers: specifier: workspace:* version: link:../../utils/test react: - specifier: 18.3.1 - version: 18.3.1 + specifier: 19.0.0 + version: 19.0.0 react-dom: - specifier: 18.3.1 - version: 18.3.1(react@18.3.1) + specifier: 19.0.0 + version: 19.0.0(react@19.0.0) packages/plus: dependencies: @@ -585,7 +697,7 @@ importers: version: 4.23.5(@codemirror/language@6.10.1)(@codemirror/state@6.4.1)(@codemirror/view@6.26.3) '@uiw/react-codemirror': specifier: 4.23.5 - version: 4.23.5(@babel/runtime@7.26.0)(@codemirror/autocomplete@6.16.0(@codemirror/language@6.10.1)(@codemirror/state@6.4.1)(@codemirror/view@6.26.3)(@lezer/common@1.2.1))(@codemirror/language@6.10.1)(@codemirror/lint@6.7.0)(@codemirror/search@6.5.6)(@codemirror/state@6.4.1)(@codemirror/theme-one-dark@6.1.2)(@codemirror/view@6.26.3)(codemirror@6.0.1(@lezer/common@1.2.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + version: 4.23.5(@babel/runtime@7.26.0)(@codemirror/autocomplete@6.16.0(@codemirror/language@6.10.1)(@codemirror/state@6.4.1)(@codemirror/view@6.26.3)(@lezer/common@1.2.1))(@codemirror/language@6.10.1)(@codemirror/lint@6.7.0)(@codemirror/search@6.5.6)(@codemirror/state@6.4.1)(@codemirror/theme-one-dark@6.1.2)(@codemirror/view@6.26.3)(codemirror@6.0.1(@lezer/common@1.2.1))(react-dom@19.0.0(react@19.0.0))(react@19.0.0) '@ultraviolet/icons': specifier: workspace:* version: link:../icons @@ -596,18 +708,30 @@ importers: specifier: workspace:* version: link:../ui react-intersection-observer: +<<<<<<< HEAD specifier: 9.14.0 version: 9.14.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1) +======= + specifier: 9.13.1 + version: 9.13.1(react-dom@19.0.0(react@19.0.0))(react@19.0.0) +>>>>>>> 9f9668398 (chore: react v19) devDependencies: '@babel/core': specifier: 7.26.0 version: 7.26.0 '@emotion/react': specifier: 11.14.0 +<<<<<<< HEAD version: 11.14.0(@types/react@18.3.17)(react@18.3.1) '@emotion/styled': specifier: 11.14.0 version: 11.14.0(@emotion/react@11.14.0(@types/react@18.3.17)(react@18.3.1))(@types/react@18.3.17)(react@18.3.1) +======= + version: 11.14.0(@types/react@18.3.16)(react@19.0.0) + '@emotion/styled': + specifier: 11.14.0 + version: 11.14.0(@emotion/react@11.14.0(@types/react@18.3.16)(react@19.0.0))(@types/react@18.3.16)(react@19.0.0) +>>>>>>> 9f9668398 (chore: react v19) '@types/react': specifier: 18.3.17 version: 18.3.17 @@ -621,11 +745,11 @@ importers: specifier: workspace:* version: link:../../utils/test react: - specifier: 18.3.1 - version: 18.3.1 + specifier: 19.0.0 + version: 19.0.0 react-dom: - specifier: 18.3.1 - version: 18.3.1(react@18.3.1) + specifier: 19.0.0 + version: 19.0.0(react@19.0.0) packages/themes: dependencies: @@ -640,16 +764,16 @@ importers: version: 1.3.3 '@nivo/bar': specifier: 0.80.0 - version: 0.80.0(@nivo/core@0.80.0)(prop-types@15.8.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + version: 0.80.0(@nivo/core@0.80.0)(prop-types@15.8.1)(react-dom@19.0.0(react@19.0.0))(react@19.0.0) '@nivo/core': specifier: 0.80.0 - version: 0.80.0(@nivo/tooltip@0.80.0)(prop-types@15.8.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + version: 0.80.0(@nivo/tooltip@0.80.0)(prop-types@15.8.1)(react-dom@19.0.0(react@19.0.0))(react@19.0.0) '@nivo/line': specifier: 0.80.0 - version: 0.80.0(@nivo/core@0.80.0)(prop-types@15.8.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + version: 0.80.0(@nivo/core@0.80.0)(prop-types@15.8.1)(react-dom@19.0.0(react@19.0.0))(react@19.0.0) '@nivo/pie': specifier: 0.80.0 - version: 0.80.0(@nivo/core@0.80.0)(prop-types@15.8.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + version: 0.80.0(@nivo/core@0.80.0)(prop-types@15.8.1)(react-dom@19.0.0(react@19.0.0))(react@19.0.0) '@nivo/scales': specifier: 0.80.0 version: 0.80.0 @@ -658,7 +782,7 @@ importers: version: 5.1.1 '@scaleway/use-media': specifier: 3.0.1 - version: 3.0.1(react@18.3.1) + version: 3.0.1(react@19.0.0) '@ultraviolet/icons': specifier: workspace:* version: link:../icons @@ -670,35 +794,46 @@ importers: version: 4.3.1 react-datepicker: specifier: 6.9.0 - version: 6.9.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + version: 6.9.0(react-dom@19.0.0(react@19.0.0))(react@19.0.0) react-select: specifier: 5.8.3 +<<<<<<< HEAD version: 5.8.3(@types/react@18.3.17)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) +======= + version: 5.8.3(@types/react@18.3.16)(react-dom@19.0.0(react@19.0.0))(react@19.0.0) +>>>>>>> 9f9668398 (chore: react v19) react-toastify: specifier: 10.0.6 - version: 10.0.6(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + version: 10.0.6(react-dom@19.0.0(react@19.0.0))(react@19.0.0) react-use-clipboard: specifier: 1.0.9 - version: 1.0.9(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + version: 1.0.9(react-dom@19.0.0(react@19.0.0))(react@19.0.0) reakit: specifier: 1.3.11 - version: 1.3.11(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + version: 1.3.11(react-dom@19.0.0(react@19.0.0))(react@19.0.0) devDependencies: '@babel/core': specifier: 7.26.0 version: 7.26.0 '@emotion/react': specifier: 11.14.0 +<<<<<<< HEAD version: 11.14.0(@types/react@18.3.17)(react@18.3.1) '@emotion/styled': specifier: 11.14.0 version: 11.14.0(@emotion/react@11.14.0(@types/react@18.3.17)(react@18.3.1))(@types/react@18.3.17)(react@18.3.1) +======= + version: 11.14.0(@types/react@18.3.16)(react@19.0.0) + '@emotion/styled': + specifier: 11.14.0 + version: 11.14.0(@emotion/react@11.14.0(@types/react@18.3.16)(react@19.0.0))(@types/react@18.3.16)(react@19.0.0) +>>>>>>> 9f9668398 (chore: react v19) '@types/react': specifier: 18.3.17 version: 18.3.17 '@types/react-datepicker': specifier: 6.2.0 - version: 6.2.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + version: 6.2.0(react-dom@19.0.0(react@19.0.0))(react@19.0.0) '@types/react-dom': specifier: 18.3.5 version: 18.3.5(@types/react@18.3.17) @@ -706,11 +841,11 @@ importers: specifier: workspace:* version: link:../../utils/test react: - specifier: 18.3.1 - version: 18.3.1 + specifier: 19.0.0 + version: 19.0.0 react-dom: - specifier: 18.3.1 - version: 18.3.1(react@18.3.1) + specifier: 19.0.0 + version: 19.0.0(react@19.0.0) utils/test: dependencies: @@ -722,19 +857,33 @@ importers: version: 11.13.0 '@emotion/react': specifier: 11.14.0 +<<<<<<< HEAD version: 11.14.0(@types/react@18.3.17)(react@18.3.1) '@emotion/styled': specifier: 11.14.0 version: 11.14.0(@emotion/react@11.14.0(@types/react@18.3.17)(react@18.3.1))(@types/react@18.3.17)(react@18.3.1) +======= + version: 11.14.0(@types/react@19.0.0)(react@19.0.0) + '@emotion/styled': + specifier: 11.14.0 + version: 11.14.0(@emotion/react@11.14.0(@types/react@19.0.0)(react@19.0.0))(@types/react@19.0.0)(react@19.0.0) +>>>>>>> 9f9668398 (chore: react v19) '@testing-library/jest-dom': specifier: 6.6.3 version: 6.6.3 '@testing-library/react': specifier: 16.1.0 +<<<<<<< HEAD version: 16.1.0(@testing-library/dom@10.4.0)(@types/react-dom@18.3.5(@types/react@18.3.17))(@types/react@18.3.17)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@types/react': specifier: 18.3.17 version: 18.3.17 +======= + version: 16.1.0(@testing-library/dom@10.4.0)(@types/react-dom@19.0.0)(@types/react@19.0.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0) + '@types/react': + specifier: 19.0.0 + version: 19.0.0 +>>>>>>> 9f9668398 (chore: react v19) '@ultraviolet/themes': specifier: workspace:* version: link:../../packages/themes @@ -742,11 +891,16 @@ importers: specifier: 25.0.1 version: 25.0.1 react: - specifier: 18.3.1 - version: 18.3.1 + specifier: 19.0.0 + version: 19.0.0 react-intersection-observer: +<<<<<<< HEAD specifier: 9.14.0 version: 9.14.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1) +======= + specifier: 9.13.1 + version: 9.13.1(react-dom@19.0.0(react@19.0.0))(react@19.0.0) +>>>>>>> 9f9668398 (chore: react v19) vitest: specifier: 2.1.8 version: 2.1.8(@types/node@22.10.2)(@vitest/ui@2.1.8)(happy-dom@15.11.7)(jsdom@25.0.1)(terser@5.31.0) @@ -3196,6 +3350,9 @@ packages: peerDependencies: '@types/react': ^18.0.0 + '@types/react-dom@19.0.0': + resolution: {integrity: sha512-1KfiQKsH1o00p9m5ag12axHQSb3FOU9H20UTrujVSkNhuCrRHiQWFqgEnTNK5ZNfnzZv8UWrnXVqCmCF9fgY3w==} + '@types/react-syntax-highlighter@15.5.13': resolution: {integrity: sha512-uLGJ87j6Sz8UaBAooU0T6lWJ0dBmjZgN1PZTrj05TNql2/XpC6+4HhMT5syIdFUUt+FASfCeLLv4kBygNU+8qA==} @@ -3205,6 +3362,9 @@ packages: '@types/react@18.3.17': resolution: {integrity: sha512-opAQ5no6LqJNo9TqnxBKsgnkIYHozW9KSTlFVoSUJYh1Fl/sswkEoqIugRSm7tbh6pABtYjGAjW+GOS23j8qbw==} + '@types/react@19.0.0': + resolution: {integrity: sha512-MY3oPudxvMYyesqs/kW1Bh8y9VqSmf+tzqw3ae8a9DZW68pUe3zAdHeI1jc6iAysuRdACnVknHP8AhwD4/dxtg==} + '@types/resolve@1.20.6': resolution: {integrity: sha512-A4STmOXPhMUtHH+S6ymgE2GiBSMqf4oTvcQZMcHzokuTLVYzXTB8ttjcgxOVaAp2lGwEdzZ0J+cRbbeevQj1UQ==} @@ -6650,6 +6810,11 @@ packages: peerDependencies: react: ^18.3.1 + react-dom@19.0.0: + resolution: {integrity: sha512-4GV5sHFG0e/0AD4X+ySy6UJd3jVl1iNsNHdpad0qhABJ11twS3TTBnseqsKurKcsNqCEFeGL3uLpVChpIO3QfQ==} + peerDependencies: + react: ^19.0.0 + react-hook-form@7.53.2: resolution: {integrity: sha512-YVel6fW5sOeedd1524pltpHX+jgU2u3DSDtXEaBORNdqiNrsX/nUI/iGXONegttg0mJVnfrIkiV0cmTU6Oo2xw==} engines: {node: '>=18.0.0'} @@ -6728,6 +6893,10 @@ packages: resolution: {integrity: sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==} engines: {node: '>=0.10.0'} + react@19.0.0: + resolution: {integrity: sha512-V8AVnmPIICiWpGfm6GLzCR/W5FXLchHop40W4nXBmdlEceh16rCN8O8LNWm5bh5XUX91fh7KpA+W0TgMKmgTpQ==} + engines: {node: '>=0.10.0'} + read-pkg@9.0.1: resolution: {integrity: sha512-9viLL4/n1BJUCT1NXVTdS1jtm80yDEgR5T4yCelII49Mbj0v1rZdKqj7zCiYdbB0CuCgdrvHcNogAKTFPBocFA==} engines: {node: '>=18'} @@ -6942,6 +7111,9 @@ packages: scheduler@0.23.2: resolution: {integrity: sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==} + scheduler@0.25.0: + resolution: {integrity: sha512-xFVuu11jh+xcO7JOAGJNOXld8/TcEHK/4CituBUeUb5hqxJLj9YuemAEuvm9gQ/+pgXYfbQuqAkiYu+u7YEsNA==} + schema-dts@1.1.2: resolution: {integrity: sha512-MpNwH0dZJHinVxk9bT8XUdjKTxMYrA5bLtrrGmFA6PTLwlOKnhi67XoRd6/ty+Djt6ZC0slR57qFhZDNMI6DhQ==} peerDependencies: @@ -9364,22 +9536,42 @@ snapshots: '@emotion/memoize@0.9.0': {} +<<<<<<< HEAD '@emotion/react@11.14.0(@types/react@18.3.17)(react@18.3.1)': +======= + '@emotion/react@11.14.0(@types/react@18.3.16)(react@19.0.0)': +>>>>>>> 9f9668398 (chore: react v19) dependencies: '@babel/runtime': 7.26.0 '@emotion/babel-plugin': 11.13.5 '@emotion/cache': 11.14.0 '@emotion/serialize': 1.3.3 - '@emotion/use-insertion-effect-with-fallbacks': 1.2.0(react@18.3.1) + '@emotion/use-insertion-effect-with-fallbacks': 1.2.0(react@19.0.0) '@emotion/utils': 1.4.2 '@emotion/weak-memoize': 0.4.0 hoist-non-react-statics: 3.3.2 - react: 18.3.1 + react: 19.0.0 optionalDependencies: '@types/react': 18.3.17 transitivePeerDependencies: - supports-color + '@emotion/react@11.14.0(@types/react@19.0.0)(react@19.0.0)': + dependencies: + '@babel/runtime': 7.26.0 + '@emotion/babel-plugin': 11.13.5 + '@emotion/cache': 11.14.0 + '@emotion/serialize': 1.3.3 + '@emotion/use-insertion-effect-with-fallbacks': 1.2.0(react@19.0.0) + '@emotion/utils': 1.4.2 + '@emotion/weak-memoize': 0.4.0 + hoist-non-react-statics: 3.3.2 + react: 19.0.0 + optionalDependencies: + '@types/react': 19.0.0 + transitivePeerDependencies: + - supports-color + '@emotion/serialize@1.3.3': dependencies: '@emotion/hash': 0.9.2 @@ -9390,26 +9582,49 @@ snapshots: '@emotion/sheet@1.4.0': {} +<<<<<<< HEAD '@emotion/styled@11.14.0(@emotion/react@11.14.0(@types/react@18.3.17)(react@18.3.1))(@types/react@18.3.17)(react@18.3.1)': +======= + '@emotion/styled@11.14.0(@emotion/react@11.14.0(@types/react@18.3.16)(react@19.0.0))(@types/react@18.3.16)(react@19.0.0)': +>>>>>>> 9f9668398 (chore: react v19) dependencies: '@babel/runtime': 7.26.0 '@emotion/babel-plugin': 11.13.5 '@emotion/is-prop-valid': 1.3.0 +<<<<<<< HEAD '@emotion/react': 11.14.0(@types/react@18.3.17)(react@18.3.1) +======= + '@emotion/react': 11.14.0(@types/react@18.3.16)(react@19.0.0) +>>>>>>> 9f9668398 (chore: react v19) '@emotion/serialize': 1.3.3 - '@emotion/use-insertion-effect-with-fallbacks': 1.2.0(react@18.3.1) + '@emotion/use-insertion-effect-with-fallbacks': 1.2.0(react@19.0.0) '@emotion/utils': 1.4.2 - react: 18.3.1 + react: 19.0.0 optionalDependencies: '@types/react': 18.3.17 transitivePeerDependencies: - supports-color + '@emotion/styled@11.14.0(@emotion/react@11.14.0(@types/react@19.0.0)(react@19.0.0))(@types/react@19.0.0)(react@19.0.0)': + dependencies: + '@babel/runtime': 7.26.0 + '@emotion/babel-plugin': 11.13.5 + '@emotion/is-prop-valid': 1.3.0 + '@emotion/react': 11.14.0(@types/react@19.0.0)(react@19.0.0) + '@emotion/serialize': 1.3.3 + '@emotion/use-insertion-effect-with-fallbacks': 1.2.0(react@19.0.0) + '@emotion/utils': 1.4.2 + react: 19.0.0 + optionalDependencies: + '@types/react': 19.0.0 + transitivePeerDependencies: + - supports-color + '@emotion/unitless@0.10.0': {} - '@emotion/use-insertion-effect-with-fallbacks@1.2.0(react@18.3.1)': + '@emotion/use-insertion-effect-with-fallbacks@1.2.0(react@19.0.0)': dependencies: - react: 18.3.1 + react: 19.0.0 '@emotion/utils@1.4.1': {} @@ -9628,18 +9843,18 @@ snapshots: '@floating-ui/core': 1.6.1 '@floating-ui/utils': 0.2.2 - '@floating-ui/react-dom@2.1.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@floating-ui/react-dom@2.1.0(react-dom@19.0.0(react@19.0.0))(react@19.0.0)': dependencies: '@floating-ui/dom': 1.6.4 - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) + react: 19.0.0 + react-dom: 19.0.0(react@19.0.0) - '@floating-ui/react@0.26.16(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@floating-ui/react@0.26.16(react-dom@19.0.0(react@19.0.0))(react@19.0.0)': dependencies: - '@floating-ui/react-dom': 2.1.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@floating-ui/react-dom': 2.1.0(react-dom@19.0.0(react@19.0.0))(react@19.0.0) '@floating-ui/utils': 0.2.2 - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) + react: 19.0.0 + react-dom: 19.0.0(react@19.0.0) tabbable: 6.2.0 '@floating-ui/utils@0.2.2': {} @@ -9939,10 +10154,17 @@ snapshots: jju: 1.4.0 js-yaml: 4.1.0 +<<<<<<< HEAD '@mdx-js/react@3.0.1(@types/react@18.3.17)(react@18.3.1)': dependencies: '@types/mdx': 2.0.13 '@types/react': 18.3.17 +======= + '@mdx-js/react@3.0.1(@types/react@19.0.0)(react@18.3.1)': + dependencies: + '@types/mdx': 2.0.13 + '@types/react': 19.0.0 +>>>>>>> 9f9668398 (chore: react v19) react: 18.3.1 '@next/env@15.1.1': {} @@ -9984,73 +10206,73 @@ snapshots: dependencies: eslint-scope: 5.1.1 - '@nivo/annotations@0.80.0(@nivo/core@0.80.0)(prop-types@15.8.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@nivo/annotations@0.80.0(@nivo/core@0.80.0)(prop-types@15.8.1)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)': dependencies: - '@nivo/colors': 0.80.0(@nivo/core@0.80.0)(prop-types@15.8.1)(react@18.3.1) - '@nivo/core': 0.80.0(@nivo/tooltip@0.80.0)(prop-types@15.8.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@react-spring/web': 9.4.5(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@nivo/colors': 0.80.0(@nivo/core@0.80.0)(prop-types@15.8.1)(react@19.0.0) + '@nivo/core': 0.80.0(@nivo/tooltip@0.80.0)(prop-types@15.8.1)(react-dom@19.0.0(react@19.0.0))(react@19.0.0) + '@react-spring/web': 9.4.5(react-dom@19.0.0(react@19.0.0))(react@19.0.0) lodash: 4.17.21 - react: 18.3.1 + react: 19.0.0 transitivePeerDependencies: - prop-types - react-dom - '@nivo/arcs@0.80.0(@nivo/core@0.80.0)(prop-types@15.8.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@nivo/arcs@0.80.0(@nivo/core@0.80.0)(prop-types@15.8.1)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)': dependencies: - '@nivo/colors': 0.80.0(@nivo/core@0.80.0)(prop-types@15.8.1)(react@18.3.1) - '@nivo/core': 0.80.0(@nivo/tooltip@0.80.0)(prop-types@15.8.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@react-spring/web': 9.4.5(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@nivo/colors': 0.80.0(@nivo/core@0.80.0)(prop-types@15.8.1)(react@19.0.0) + '@nivo/core': 0.80.0(@nivo/tooltip@0.80.0)(prop-types@15.8.1)(react-dom@19.0.0(react@19.0.0))(react@19.0.0) + '@react-spring/web': 9.4.5(react-dom@19.0.0(react@19.0.0))(react@19.0.0) d3-shape: 1.3.7 - react: 18.3.1 + react: 19.0.0 transitivePeerDependencies: - prop-types - react-dom - '@nivo/axes@0.80.0(@nivo/core@0.80.0)(prop-types@15.8.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@nivo/axes@0.80.0(@nivo/core@0.80.0)(prop-types@15.8.1)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)': dependencies: - '@nivo/core': 0.80.0(@nivo/tooltip@0.80.0)(prop-types@15.8.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@nivo/core': 0.80.0(@nivo/tooltip@0.80.0)(prop-types@15.8.1)(react-dom@19.0.0(react@19.0.0))(react@19.0.0) '@nivo/scales': 0.80.0 - '@react-spring/web': 9.4.5(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@react-spring/web': 9.4.5(react-dom@19.0.0(react@19.0.0))(react@19.0.0) d3-format: 1.4.5 d3-time-format: 3.0.0 prop-types: 15.8.1 - react: 18.3.1 + react: 19.0.0 transitivePeerDependencies: - react-dom - '@nivo/bar@0.80.0(@nivo/core@0.80.0)(prop-types@15.8.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@nivo/bar@0.80.0(@nivo/core@0.80.0)(prop-types@15.8.1)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)': dependencies: - '@nivo/annotations': 0.80.0(@nivo/core@0.80.0)(prop-types@15.8.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@nivo/axes': 0.80.0(@nivo/core@0.80.0)(prop-types@15.8.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@nivo/colors': 0.80.0(@nivo/core@0.80.0)(prop-types@15.8.1)(react@18.3.1) - '@nivo/core': 0.80.0(@nivo/tooltip@0.80.0)(prop-types@15.8.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@nivo/legends': 0.80.0(@nivo/core@0.80.0)(prop-types@15.8.1)(react@18.3.1) + '@nivo/annotations': 0.80.0(@nivo/core@0.80.0)(prop-types@15.8.1)(react-dom@19.0.0(react@19.0.0))(react@19.0.0) + '@nivo/axes': 0.80.0(@nivo/core@0.80.0)(prop-types@15.8.1)(react-dom@19.0.0(react@19.0.0))(react@19.0.0) + '@nivo/colors': 0.80.0(@nivo/core@0.80.0)(prop-types@15.8.1)(react@19.0.0) + '@nivo/core': 0.80.0(@nivo/tooltip@0.80.0)(prop-types@15.8.1)(react-dom@19.0.0(react@19.0.0))(react@19.0.0) + '@nivo/legends': 0.80.0(@nivo/core@0.80.0)(prop-types@15.8.1)(react@19.0.0) '@nivo/scales': 0.80.0 - '@nivo/tooltip': 0.80.0(@nivo/core@0.80.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@react-spring/web': 9.4.5(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@nivo/tooltip': 0.80.0(@nivo/core@0.80.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0) + '@react-spring/web': 9.4.5(react-dom@19.0.0(react@19.0.0))(react@19.0.0) d3-scale: 3.3.0 d3-shape: 1.3.7 lodash: 4.17.21 - react: 18.3.1 + react: 19.0.0 transitivePeerDependencies: - prop-types - react-dom - '@nivo/colors@0.80.0(@nivo/core@0.80.0)(prop-types@15.8.1)(react@18.3.1)': + '@nivo/colors@0.80.0(@nivo/core@0.80.0)(prop-types@15.8.1)(react@19.0.0)': dependencies: - '@nivo/core': 0.80.0(@nivo/tooltip@0.80.0)(prop-types@15.8.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@nivo/core': 0.80.0(@nivo/tooltip@0.80.0)(prop-types@15.8.1)(react-dom@19.0.0(react@19.0.0))(react@19.0.0) d3-color: 2.0.0 d3-scale: 3.3.0 d3-scale-chromatic: 2.0.0 lodash: 4.17.21 prop-types: 15.8.1 - react: 18.3.1 + react: 19.0.0 - '@nivo/core@0.80.0(@nivo/tooltip@0.80.0)(prop-types@15.8.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@nivo/core@0.80.0(@nivo/tooltip@0.80.0)(prop-types@15.8.1)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)': dependencies: - '@nivo/recompose': 0.80.0(react@18.3.1) - '@nivo/tooltip': 0.80.0(@nivo/core@0.80.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@react-spring/web': 9.4.5(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@nivo/recompose': 0.80.0(react@19.0.0) + '@nivo/tooltip': 0.80.0(@nivo/core@0.80.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0) + '@react-spring/web': 9.4.5(react-dom@19.0.0(react@19.0.0))(react@19.0.0) d3-color: 2.0.0 d3-format: 1.4.5 d3-interpolate: 2.0.1 @@ -10060,49 +10282,49 @@ snapshots: d3-time-format: 3.0.0 lodash: 4.17.21 prop-types: 15.8.1 - react: 18.3.1 + react: 19.0.0 transitivePeerDependencies: - react-dom - '@nivo/legends@0.80.0(@nivo/core@0.80.0)(prop-types@15.8.1)(react@18.3.1)': + '@nivo/legends@0.80.0(@nivo/core@0.80.0)(prop-types@15.8.1)(react@19.0.0)': dependencies: - '@nivo/core': 0.80.0(@nivo/tooltip@0.80.0)(prop-types@15.8.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@nivo/core': 0.80.0(@nivo/tooltip@0.80.0)(prop-types@15.8.1)(react-dom@19.0.0(react@19.0.0))(react@19.0.0) prop-types: 15.8.1 - react: 18.3.1 + react: 19.0.0 - '@nivo/line@0.80.0(@nivo/core@0.80.0)(prop-types@15.8.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@nivo/line@0.80.0(@nivo/core@0.80.0)(prop-types@15.8.1)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)': dependencies: - '@nivo/annotations': 0.80.0(@nivo/core@0.80.0)(prop-types@15.8.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@nivo/axes': 0.80.0(@nivo/core@0.80.0)(prop-types@15.8.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@nivo/colors': 0.80.0(@nivo/core@0.80.0)(prop-types@15.8.1)(react@18.3.1) - '@nivo/core': 0.80.0(@nivo/tooltip@0.80.0)(prop-types@15.8.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@nivo/legends': 0.80.0(@nivo/core@0.80.0)(prop-types@15.8.1)(react@18.3.1) + '@nivo/annotations': 0.80.0(@nivo/core@0.80.0)(prop-types@15.8.1)(react-dom@19.0.0(react@19.0.0))(react@19.0.0) + '@nivo/axes': 0.80.0(@nivo/core@0.80.0)(prop-types@15.8.1)(react-dom@19.0.0(react@19.0.0))(react@19.0.0) + '@nivo/colors': 0.80.0(@nivo/core@0.80.0)(prop-types@15.8.1)(react@19.0.0) + '@nivo/core': 0.80.0(@nivo/tooltip@0.80.0)(prop-types@15.8.1)(react-dom@19.0.0(react@19.0.0))(react@19.0.0) + '@nivo/legends': 0.80.0(@nivo/core@0.80.0)(prop-types@15.8.1)(react@19.0.0) '@nivo/scales': 0.80.0 - '@nivo/tooltip': 0.80.0(@nivo/core@0.80.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@nivo/voronoi': 0.80.0(@nivo/core@0.80.0)(react@18.3.1) - '@react-spring/web': 9.4.5(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@nivo/tooltip': 0.80.0(@nivo/core@0.80.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0) + '@nivo/voronoi': 0.80.0(@nivo/core@0.80.0)(react@19.0.0) + '@react-spring/web': 9.4.5(react-dom@19.0.0(react@19.0.0))(react@19.0.0) d3-shape: 1.3.7 prop-types: 15.8.1 - react: 18.3.1 + react: 19.0.0 transitivePeerDependencies: - react-dom - '@nivo/pie@0.80.0(@nivo/core@0.80.0)(prop-types@15.8.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@nivo/pie@0.80.0(@nivo/core@0.80.0)(prop-types@15.8.1)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)': dependencies: - '@nivo/arcs': 0.80.0(@nivo/core@0.80.0)(prop-types@15.8.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@nivo/colors': 0.80.0(@nivo/core@0.80.0)(prop-types@15.8.1)(react@18.3.1) - '@nivo/core': 0.80.0(@nivo/tooltip@0.80.0)(prop-types@15.8.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@nivo/legends': 0.80.0(@nivo/core@0.80.0)(prop-types@15.8.1)(react@18.3.1) - '@nivo/tooltip': 0.80.0(@nivo/core@0.80.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@nivo/arcs': 0.80.0(@nivo/core@0.80.0)(prop-types@15.8.1)(react-dom@19.0.0(react@19.0.0))(react@19.0.0) + '@nivo/colors': 0.80.0(@nivo/core@0.80.0)(prop-types@15.8.1)(react@19.0.0) + '@nivo/core': 0.80.0(@nivo/tooltip@0.80.0)(prop-types@15.8.1)(react-dom@19.0.0(react@19.0.0))(react@19.0.0) + '@nivo/legends': 0.80.0(@nivo/core@0.80.0)(prop-types@15.8.1)(react@19.0.0) + '@nivo/tooltip': 0.80.0(@nivo/core@0.80.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0) d3-shape: 1.3.7 - react: 18.3.1 + react: 19.0.0 transitivePeerDependencies: - prop-types - react-dom - '@nivo/recompose@0.80.0(react@18.3.1)': + '@nivo/recompose@0.80.0(react@19.0.0)': dependencies: - react: 18.3.1 + react: 19.0.0 react-lifecycles-compat: 3.0.4 '@nivo/scales@0.80.0': @@ -10112,20 +10334,20 @@ snapshots: d3-time-format: 3.0.0 lodash: 4.17.21 - '@nivo/tooltip@0.80.0(@nivo/core@0.80.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@nivo/tooltip@0.80.0(@nivo/core@0.80.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)': dependencies: - '@nivo/core': 0.80.0(@nivo/tooltip@0.80.0)(prop-types@15.8.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@react-spring/web': 9.4.5(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@nivo/core': 0.80.0(@nivo/tooltip@0.80.0)(prop-types@15.8.1)(react-dom@19.0.0(react@19.0.0))(react@19.0.0) + '@react-spring/web': 9.4.5(react-dom@19.0.0(react@19.0.0))(react@19.0.0) transitivePeerDependencies: - react - react-dom - '@nivo/voronoi@0.80.0(@nivo/core@0.80.0)(react@18.3.1)': + '@nivo/voronoi@0.80.0(@nivo/core@0.80.0)(react@19.0.0)': dependencies: - '@nivo/core': 0.80.0(@nivo/tooltip@0.80.0)(prop-types@15.8.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@nivo/core': 0.80.0(@nivo/tooltip@0.80.0)(prop-types@15.8.1)(react-dom@19.0.0(react@19.0.0))(react@19.0.0) d3-delaunay: 5.3.0 d3-scale: 3.3.0 - react: 18.3.1 + react: 19.0.0 '@nodelib/fs.scandir@2.1.5': dependencies: @@ -10208,38 +10430,38 @@ snapshots: transitivePeerDependencies: - supports-color - '@react-spring/animated@9.4.5(react@18.3.1)': + '@react-spring/animated@9.4.5(react@19.0.0)': dependencies: - '@react-spring/shared': 9.4.5(react@18.3.1) + '@react-spring/shared': 9.4.5(react@19.0.0) '@react-spring/types': 9.4.5 - react: 18.3.1 + react: 19.0.0 - '@react-spring/core@9.4.5(react@18.3.1)': + '@react-spring/core@9.4.5(react@19.0.0)': dependencies: - '@react-spring/animated': 9.4.5(react@18.3.1) + '@react-spring/animated': 9.4.5(react@19.0.0) '@react-spring/rafz': 9.4.5 - '@react-spring/shared': 9.4.5(react@18.3.1) + '@react-spring/shared': 9.4.5(react@19.0.0) '@react-spring/types': 9.4.5 - react: 18.3.1 + react: 19.0.0 '@react-spring/rafz@9.4.5': {} - '@react-spring/shared@9.4.5(react@18.3.1)': + '@react-spring/shared@9.4.5(react@19.0.0)': dependencies: '@react-spring/rafz': 9.4.5 '@react-spring/types': 9.4.5 - react: 18.3.1 + react: 19.0.0 '@react-spring/types@9.4.5': {} - '@react-spring/web@9.4.5(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@react-spring/web@9.4.5(react-dom@19.0.0(react@19.0.0))(react@19.0.0)': dependencies: - '@react-spring/animated': 9.4.5(react@18.3.1) - '@react-spring/core': 9.4.5(react@18.3.1) - '@react-spring/shared': 9.4.5(react@18.3.1) + '@react-spring/animated': 9.4.5(react@19.0.0) + '@react-spring/core': 9.4.5(react@19.0.0) + '@react-spring/shared': 9.4.5(react@19.0.0) '@react-spring/types': 9.4.5 - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) + react: 19.0.0 + react-dom: 19.0.0(react@19.0.0) '@replit/codemirror-lang-csharp@6.2.0(@codemirror/autocomplete@6.16.0(@codemirror/language@6.10.1)(@codemirror/state@6.4.1)(@codemirror/view@6.26.3)(@lezer/common@1.2.1))(@codemirror/language@6.10.1)(@codemirror/state@6.4.1)(@codemirror/view@6.26.3)(@lezer/common@1.2.1)(@lezer/highlight@1.2.0)(@lezer/lr@1.4.0)': dependencies: @@ -10365,9 +10587,9 @@ snapshots: '@scaleway/tsconfig@1.1.1': {} - '@scaleway/use-media@3.0.1(react@18.3.1)': + '@scaleway/use-media@3.0.1(react@19.0.0)': dependencies: - react: 18.3.1 + react: 19.0.0 '@sinclair/typebox@0.27.8': {} @@ -10445,9 +10667,15 @@ snapshots: storybook: 8.4.7(prettier@2.8.8) ts-dedent: 2.2.0 +<<<<<<< HEAD '@storybook/addon-docs@8.4.7(@types/react@18.3.17)(storybook@8.4.7(prettier@2.8.8))': dependencies: '@mdx-js/react': 3.0.1(@types/react@18.3.17)(react@18.3.1) +======= + '@storybook/addon-docs@8.4.7(@types/react@19.0.0)(storybook@8.4.7(prettier@2.8.8))': + dependencies: + '@mdx-js/react': 3.0.1(@types/react@19.0.0)(react@18.3.1) +>>>>>>> 9f9668398 (chore: react v19) '@storybook/blocks': 8.4.7(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(storybook@8.4.7(prettier@2.8.8)) '@storybook/csf-plugin': 8.4.7(storybook@8.4.7(prettier@2.8.8)) '@storybook/react-dom-shim': 8.4.7(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(storybook@8.4.7(prettier@2.8.8)) @@ -10458,12 +10686,20 @@ snapshots: transitivePeerDependencies: - '@types/react' +<<<<<<< HEAD '@storybook/addon-essentials@8.4.7(@types/react@18.3.17)(storybook@8.4.7(prettier@2.8.8))': +======= + '@storybook/addon-essentials@8.4.7(@types/react@19.0.0)(storybook@8.4.7(prettier@2.8.8))': +>>>>>>> 9f9668398 (chore: react v19) dependencies: '@storybook/addon-actions': 8.4.7(storybook@8.4.7(prettier@2.8.8)) '@storybook/addon-backgrounds': 8.4.7(storybook@8.4.7(prettier@2.8.8)) '@storybook/addon-controls': 8.4.7(storybook@8.4.7(prettier@2.8.8)) +<<<<<<< HEAD '@storybook/addon-docs': 8.4.7(@types/react@18.3.17)(storybook@8.4.7(prettier@2.8.8)) +======= + '@storybook/addon-docs': 8.4.7(@types/react@19.0.0)(storybook@8.4.7(prettier@2.8.8)) +>>>>>>> 9f9668398 (chore: react v19) '@storybook/addon-highlight': 8.4.7(storybook@8.4.7(prettier@2.8.8)) '@storybook/addon-measure': 8.4.7(storybook@8.4.7(prettier@2.8.8)) '@storybook/addon-outline': 8.4.7(storybook@8.4.7(prettier@2.8.8)) @@ -10488,14 +10724,14 @@ snapshots: storybook: 8.4.7(prettier@2.8.8) ts-dedent: 2.2.0 - '@storybook/addon-links@8.4.7(react@18.3.1)(storybook@8.4.7(prettier@2.8.8))': + '@storybook/addon-links@8.4.7(react@19.0.0)(storybook@8.4.7(prettier@2.8.8))': dependencies: '@storybook/csf': 0.1.11 '@storybook/global': 5.0.0 storybook: 8.4.7(prettier@2.8.8) ts-dedent: 2.2.0 optionalDependencies: - react: 18.3.1 + react: 19.0.0 '@storybook/addon-mdx-gfm@8.4.7(storybook@8.4.7(prettier@2.8.8))': dependencies: @@ -10541,6 +10777,16 @@ snapshots: react: 18.3.1 react-dom: 18.3.1(react@18.3.1) + '@storybook/blocks@8.4.7(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(storybook@8.4.7(prettier@2.8.8))': + dependencies: + '@storybook/csf': 0.1.11 + '@storybook/icons': 1.2.12(react-dom@19.0.0(react@19.0.0))(react@19.0.0) + storybook: 8.4.7(prettier@2.8.8) + ts-dedent: 2.2.0 + optionalDependencies: + react: 19.0.0 + react-dom: 19.0.0(react@19.0.0) + '@storybook/builder-vite@8.4.7(storybook@8.4.7(prettier@2.8.8))(vite@5.4.11(@types/node@22.10.2)(terser@5.31.0))': dependencies: '@storybook/csf-plugin': 8.4.7(storybook@8.4.7(prettier@2.8.8)) @@ -10593,6 +10839,11 @@ snapshots: react: 18.3.1 react-dom: 18.3.1(react@18.3.1) + '@storybook/icons@1.2.12(react-dom@19.0.0(react@19.0.0))(react@19.0.0)': + dependencies: + react: 19.0.0 + react-dom: 19.0.0(react@19.0.0) + '@storybook/instrumenter@8.4.7(storybook@8.4.7(prettier@2.8.8))': dependencies: '@storybook/global': 5.0.0 @@ -10615,17 +10866,23 @@ snapshots: react-dom: 18.3.1(react@18.3.1) storybook: 8.4.7(prettier@2.8.8) - '@storybook/react-vite@8.4.7(@storybook/test@8.4.7(storybook@8.4.7(prettier@2.8.8)))(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(rollup@4.21.0)(storybook@8.4.7(prettier@2.8.8))(typescript@5.7.2)(vite@5.4.11(@types/node@22.10.2)(terser@5.31.0))': + '@storybook/react-dom-shim@8.4.7(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(storybook@8.4.7(prettier@2.8.8))': + dependencies: + react: 19.0.0 + react-dom: 19.0.0(react@19.0.0) + storybook: 8.4.7(prettier@2.8.8) + + '@storybook/react-vite@8.4.7(@storybook/test@8.4.7(storybook@8.4.7(prettier@2.8.8)))(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(rollup@4.21.0)(storybook@8.4.7(prettier@2.8.8))(typescript@5.7.2)(vite@5.4.11(@types/node@22.10.2)(terser@5.31.0))': dependencies: '@joshwooding/vite-plugin-react-docgen-typescript': 0.4.2(typescript@5.7.2)(vite@5.4.11(@types/node@22.10.2)(terser@5.31.0)) '@rollup/pluginutils': 5.1.0(rollup@4.21.0) '@storybook/builder-vite': 8.4.7(storybook@8.4.7(prettier@2.8.8))(vite@5.4.11(@types/node@22.10.2)(terser@5.31.0)) - '@storybook/react': 8.4.7(@storybook/test@8.4.7(storybook@8.4.7(prettier@2.8.8)))(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(storybook@8.4.7(prettier@2.8.8))(typescript@5.7.2) + '@storybook/react': 8.4.7(@storybook/test@8.4.7(storybook@8.4.7(prettier@2.8.8)))(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(storybook@8.4.7(prettier@2.8.8))(typescript@5.7.2) find-up: 5.0.0 magic-string: 0.30.12 - react: 18.3.1 + react: 19.0.0 react-docgen: 7.0.3 - react-dom: 18.3.1(react@18.3.1) + react-dom: 19.0.0(react@19.0.0) resolve: 1.22.8 storybook: 8.4.7(prettier@2.8.8) tsconfig-paths: 4.2.0 @@ -10636,16 +10893,16 @@ snapshots: - supports-color - typescript - '@storybook/react@8.4.7(@storybook/test@8.4.7(storybook@8.4.7(prettier@2.8.8)))(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(storybook@8.4.7(prettier@2.8.8))(typescript@5.7.2)': + '@storybook/react@8.4.7(@storybook/test@8.4.7(storybook@8.4.7(prettier@2.8.8)))(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(storybook@8.4.7(prettier@2.8.8))(typescript@5.7.2)': dependencies: '@storybook/components': 8.4.7(storybook@8.4.7(prettier@2.8.8)) '@storybook/global': 5.0.0 '@storybook/manager-api': 8.4.7(storybook@8.4.7(prettier@2.8.8)) '@storybook/preview-api': 8.4.7(storybook@8.4.7(prettier@2.8.8)) - '@storybook/react-dom-shim': 8.4.7(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(storybook@8.4.7(prettier@2.8.8)) + '@storybook/react-dom-shim': 8.4.7(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(storybook@8.4.7(prettier@2.8.8)) '@storybook/theming': 8.4.7(storybook@8.4.7(prettier@2.8.8)) - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) + react: 19.0.0 + react-dom: 19.0.0(react@19.0.0) storybook: 8.4.7(prettier@2.8.8) optionalDependencies: '@storybook/test': 8.4.7(storybook@8.4.7(prettier@2.8.8)) @@ -10799,15 +11056,24 @@ snapshots: lodash: 4.17.21 redent: 3.0.0 +<<<<<<< HEAD '@testing-library/react@16.1.0(@testing-library/dom@10.4.0)(@types/react-dom@18.3.5(@types/react@18.3.17))(@types/react@18.3.17)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': +======= + '@testing-library/react@16.1.0(@testing-library/dom@10.4.0)(@types/react-dom@19.0.0)(@types/react@19.0.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)': +>>>>>>> 9f9668398 (chore: react v19) dependencies: '@babel/runtime': 7.26.0 '@testing-library/dom': 10.4.0 - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) + react: 19.0.0 + react-dom: 19.0.0(react@19.0.0) optionalDependencies: +<<<<<<< HEAD '@types/react': 18.3.17 '@types/react-dom': 18.3.5(@types/react@18.3.17) +======= + '@types/react': 19.0.0 + '@types/react-dom': 19.0.0 +>>>>>>> 9f9668398 (chore: react v19) '@testing-library/user-event@14.5.2(@testing-library/dom@10.4.0)': dependencies: @@ -10908,10 +11174,15 @@ snapshots: '@types/prop-types@15.7.12': {} - '@types/react-datepicker@6.2.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@types/react-datepicker@6.2.0(react-dom@19.0.0(react@19.0.0))(react@19.0.0)': dependencies: +<<<<<<< HEAD '@floating-ui/react': 0.26.16(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@types/react': 18.3.17 +======= + '@floating-ui/react': 0.26.16(react-dom@19.0.0(react@19.0.0))(react@19.0.0) + '@types/react': 19.0.0 +>>>>>>> 9f9668398 (chore: react v19) date-fns: 3.6.0 transitivePeerDependencies: - react @@ -10921,19 +11192,35 @@ snapshots: dependencies: '@types/react': 18.3.17 + '@types/react-dom@19.0.0': + dependencies: + '@types/react': 19.0.0 + '@types/react-syntax-highlighter@15.5.13': dependencies: +<<<<<<< HEAD '@types/react': 18.3.17 '@types/react-transition-group@4.4.10': dependencies: '@types/react': 18.3.17 +======= + '@types/react': 19.0.0 + + '@types/react-transition-group@4.4.10': + dependencies: + '@types/react': 19.0.0 +>>>>>>> 9f9668398 (chore: react v19) '@types/react@18.3.17': dependencies: '@types/prop-types': 15.7.12 csstype: 3.1.3 + '@types/react@19.0.0': + dependencies: + csstype: 3.1.3 + '@types/resolve@1.20.6': {} '@types/semver@7.5.8': {} @@ -11183,7 +11470,7 @@ snapshots: '@codemirror/state': 6.4.1 '@codemirror/view': 6.26.3 - '@uiw/react-codemirror@4.23.5(@babel/runtime@7.26.0)(@codemirror/autocomplete@6.16.0(@codemirror/language@6.10.1)(@codemirror/state@6.4.1)(@codemirror/view@6.26.3)(@lezer/common@1.2.1))(@codemirror/language@6.10.1)(@codemirror/lint@6.7.0)(@codemirror/search@6.5.6)(@codemirror/state@6.4.1)(@codemirror/theme-one-dark@6.1.2)(@codemirror/view@6.26.3)(codemirror@6.0.1(@lezer/common@1.2.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@uiw/react-codemirror@4.23.5(@babel/runtime@7.26.0)(@codemirror/autocomplete@6.16.0(@codemirror/language@6.10.1)(@codemirror/state@6.4.1)(@codemirror/view@6.26.3)(@lezer/common@1.2.1))(@codemirror/language@6.10.1)(@codemirror/lint@6.7.0)(@codemirror/search@6.5.6)(@codemirror/state@6.4.1)(@codemirror/theme-one-dark@6.1.2)(@codemirror/view@6.26.3)(codemirror@6.0.1(@lezer/common@1.2.1))(react-dom@19.0.0(react@19.0.0))(react@19.0.0)': dependencies: '@babel/runtime': 7.26.0 '@codemirror/commands': 6.5.0 @@ -11192,8 +11479,8 @@ snapshots: '@codemirror/view': 6.26.3 '@uiw/codemirror-extensions-basic-setup': 4.23.5(@codemirror/autocomplete@6.16.0(@codemirror/language@6.10.1)(@codemirror/state@6.4.1)(@codemirror/view@6.26.3)(@lezer/common@1.2.1))(@codemirror/commands@6.5.0)(@codemirror/language@6.10.1)(@codemirror/lint@6.7.0)(@codemirror/search@6.5.6)(@codemirror/state@6.4.1)(@codemirror/view@6.26.3) codemirror: 6.0.1(@lezer/common@1.2.1) - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) + react: 19.0.0 + react-dom: 19.0.0(react@19.0.0) transitivePeerDependencies: - '@codemirror/autocomplete' - '@codemirror/language' @@ -14325,7 +14612,11 @@ snapshots: dependencies: enhanced-resolve: 5.16.0 +<<<<<<< HEAD next@15.1.1(@babel/core@7.26.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1): +======= + next@15.1.0(@babel/core@7.26.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0): +>>>>>>> 9f9668398 (chore: react v19) dependencies: '@next/env': 15.1.1 '@swc/counter': 0.1.3 @@ -14333,9 +14624,9 @@ snapshots: busboy: 1.6.0 caniuse-lite: 1.0.30001689 postcss: 8.4.31 - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) - styled-jsx: 5.1.6(@babel/core@7.26.0)(react@18.3.1) + react: 19.0.0 + react-dom: 19.0.0(react@19.0.0) + styled-jsx: 5.1.6(@babel/core@7.26.0)(react@19.0.0) optionalDependencies: '@next/swc-darwin-arm64': 15.1.1 '@next/swc-darwin-x64': 15.1.1 @@ -14961,15 +15252,15 @@ snapshots: minimist: 1.2.8 strip-json-comments: 2.0.1 - react-datepicker@6.9.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1): + react-datepicker@6.9.0(react-dom@19.0.0(react@19.0.0))(react@19.0.0): dependencies: - '@floating-ui/react': 0.26.16(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@floating-ui/react': 0.26.16(react-dom@19.0.0(react@19.0.0))(react@19.0.0) clsx: 2.1.1 date-fns: 3.6.0 prop-types: 15.8.1 - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) - react-onclickoutside: 6.13.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + react: 19.0.0 + react-dom: 19.0.0(react@19.0.0) + react-onclickoutside: 6.13.0(react-dom@19.0.0(react@19.0.0))(react@19.0.0) react-docgen-typescript@2.2.2(typescript@5.7.2): dependencies: @@ -14996,15 +15287,24 @@ snapshots: react: 18.3.1 scheduler: 0.23.2 - react-hook-form@7.53.2(react@18.3.1): + react-dom@19.0.0(react@19.0.0): dependencies: - react: 18.3.1 + react: 19.0.0 + scheduler: 0.25.0 +<<<<<<< HEAD react-intersection-observer@9.14.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1): +======= + react-hook-form@7.53.2(react@19.0.0): +>>>>>>> 9f9668398 (chore: react v19) dependencies: - react: 18.3.1 + react: 19.0.0 + + react-intersection-observer@9.13.1(react-dom@19.0.0(react@19.0.0))(react@19.0.0): + dependencies: + react: 19.0.0 optionalDependencies: - react-dom: 18.3.1(react@18.3.1) + react-dom: 19.0.0(react@19.0.0) react-is@16.13.1: {} @@ -15014,71 +15314,105 @@ snapshots: react-lifecycles-compat@3.0.4: {} - react-onclickoutside@6.13.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1): + react-onclickoutside@6.13.0(react-dom@19.0.0(react@19.0.0))(react@19.0.0): dependencies: - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) + react: 19.0.0 + react-dom: 19.0.0(react@19.0.0) react-refresh@0.14.2: {} - react-schemaorg@2.0.0(react@18.3.1)(schema-dts@1.1.2(typescript@5.7.2))(typescript@5.7.2): + react-schemaorg@2.0.0(react@19.0.0)(schema-dts@1.1.2(typescript@5.7.2))(typescript@5.7.2): dependencies: - react: 18.3.1 + react: 19.0.0 schema-dts: 1.1.2(typescript@5.7.2) typescript: 5.7.2 +<<<<<<< HEAD react-select@5.8.3(@types/react@18.3.17)(react-dom@18.3.1(react@18.3.1))(react@18.3.1): dependencies: '@babel/runtime': 7.26.0 '@emotion/cache': 11.13.1 '@emotion/react': 11.14.0(@types/react@18.3.17)(react@18.3.1) +======= + react-select@5.8.3(@types/react@18.3.16)(react-dom@19.0.0(react@19.0.0))(react@19.0.0): + dependencies: + '@babel/runtime': 7.26.0 + '@emotion/cache': 11.13.1 + '@emotion/react': 11.14.0(@types/react@18.3.16)(react@19.0.0) +>>>>>>> 9f9668398 (chore: react v19) '@floating-ui/dom': 1.6.4 '@types/react-transition-group': 4.4.10 memoize-one: 6.0.0 prop-types: 15.8.1 +<<<<<<< HEAD react: 18.3.1 react-dom: 18.3.1(react@18.3.1) react-transition-group: 4.4.5(react-dom@18.3.1(react@18.3.1))(react@18.3.1) use-isomorphic-layout-effect: 1.1.2(@types/react@18.3.17)(react@18.3.1) +======= + react: 19.0.0 + react-dom: 19.0.0(react@19.0.0) + react-transition-group: 4.4.5(react-dom@19.0.0(react@19.0.0))(react@19.0.0) + use-isomorphic-layout-effect: 1.1.2(@types/react@18.3.16)(react@19.0.0) +>>>>>>> 9f9668398 (chore: react v19) + transitivePeerDependencies: + - '@types/react' + - supports-color + + react-select@5.8.3(@types/react@19.0.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0): + dependencies: + '@babel/runtime': 7.26.0 + '@emotion/cache': 11.13.1 + '@emotion/react': 11.14.0(@types/react@19.0.0)(react@19.0.0) + '@floating-ui/dom': 1.6.4 + '@types/react-transition-group': 4.4.10 + memoize-one: 6.0.0 + prop-types: 15.8.1 + react: 19.0.0 + react-dom: 19.0.0(react@19.0.0) + react-transition-group: 4.4.5(react-dom@19.0.0(react@19.0.0))(react@19.0.0) + use-isomorphic-layout-effect: 1.1.2(@types/react@19.0.0)(react@19.0.0) transitivePeerDependencies: - '@types/react' - supports-color - react-syntax-highlighter@15.6.1(react@18.3.1): + react-syntax-highlighter@15.6.1(react@19.0.0): dependencies: '@babel/runtime': 7.26.0 highlight.js: 10.7.3 highlightjs-vue: 1.0.0 lowlight: 1.20.0 prismjs: 1.29.0 - react: 18.3.1 + react: 19.0.0 refractor: 3.6.0 - react-toastify@10.0.6(react-dom@18.3.1(react@18.3.1))(react@18.3.1): + react-toastify@10.0.6(react-dom@19.0.0(react@19.0.0))(react@19.0.0): dependencies: clsx: 2.1.1 - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) + react: 19.0.0 + react-dom: 19.0.0(react@19.0.0) - react-transition-group@4.4.5(react-dom@18.3.1(react@18.3.1))(react@18.3.1): + react-transition-group@4.4.5(react-dom@19.0.0(react@19.0.0))(react@19.0.0): dependencies: '@babel/runtime': 7.26.0 dom-helpers: 5.2.1 loose-envify: 1.4.0 prop-types: 15.8.1 - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) + react: 19.0.0 + react-dom: 19.0.0(react@19.0.0) - react-use-clipboard@1.0.9(react-dom@18.3.1(react@18.3.1))(react@18.3.1): + react-use-clipboard@1.0.9(react-dom@19.0.0(react@19.0.0))(react@19.0.0): dependencies: copy-to-clipboard: 3.3.3 - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) + react: 19.0.0 + react-dom: 19.0.0(react@19.0.0) react@18.3.1: dependencies: loose-envify: 1.4.0 + react@19.0.0: {} + read-pkg@9.0.1: dependencies: '@types/normalize-package-data': 2.4.4 @@ -15106,33 +15440,33 @@ snapshots: readdirp@4.0.1: {} - reakit-system@0.15.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1): + reakit-system@0.15.2(react-dom@19.0.0(react@19.0.0))(react@19.0.0): dependencies: - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) - reakit-utils: 0.15.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + react: 19.0.0 + react-dom: 19.0.0(react@19.0.0) + reakit-utils: 0.15.2(react-dom@19.0.0(react@19.0.0))(react@19.0.0) - reakit-utils@0.15.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1): + reakit-utils@0.15.2(react-dom@19.0.0(react@19.0.0))(react@19.0.0): dependencies: - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) + react: 19.0.0 + react-dom: 19.0.0(react@19.0.0) - reakit-warning@0.6.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1): + reakit-warning@0.6.2(react-dom@19.0.0(react@19.0.0))(react@19.0.0): dependencies: - react: 18.3.1 - reakit-utils: 0.15.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + react: 19.0.0 + reakit-utils: 0.15.2(react-dom@19.0.0(react@19.0.0))(react@19.0.0) transitivePeerDependencies: - react-dom - reakit@1.3.11(react-dom@18.3.1(react@18.3.1))(react@18.3.1): + reakit@1.3.11(react-dom@19.0.0(react@19.0.0))(react@19.0.0): dependencies: '@popperjs/core': 2.11.8 body-scroll-lock: 3.1.5 - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) - reakit-system: 0.15.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - reakit-utils: 0.15.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - reakit-warning: 0.6.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + react: 19.0.0 + react-dom: 19.0.0(react@19.0.0) + reakit-system: 0.15.2(react-dom@19.0.0(react@19.0.0))(react@19.0.0) + reakit-utils: 0.15.2(react-dom@19.0.0(react@19.0.0))(react@19.0.0) + reakit-warning: 0.6.2(react-dom@19.0.0(react@19.0.0))(react@19.0.0) recast@0.23.6: dependencies: @@ -15368,6 +15702,8 @@ snapshots: dependencies: loose-envify: 1.4.0 + scheduler@0.25.0: {} + schema-dts@1.1.2(typescript@5.7.2): dependencies: typescript: 5.7.2 @@ -15579,9 +15915,9 @@ snapshots: std-env@3.8.0: {} - storybook-addon-tag-badges@1.3.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(storybook@8.4.7(prettier@2.8.8)): + storybook-addon-tag-badges@1.3.2(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(storybook@8.4.7(prettier@2.8.8)): dependencies: - '@storybook/icons': 1.2.12(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@storybook/icons': 1.2.12(react-dom@19.0.0(react@19.0.0))(react@19.0.0) storybook: 8.4.7(prettier@2.8.8) transitivePeerDependencies: - react @@ -15707,10 +16043,10 @@ snapshots: style-mod@4.1.2: {} - styled-jsx@5.1.6(@babel/core@7.26.0)(react@18.3.1): + styled-jsx@5.1.6(@babel/core@7.26.0)(react@19.0.0): dependencies: client-only: 0.0.1 - react: 18.3.1 + react: 19.0.0 optionalDependencies: '@babel/core': 7.26.0 @@ -16074,12 +16410,22 @@ snapshots: urlpattern-polyfill@10.0.0: {} +<<<<<<< HEAD use-isomorphic-layout-effect@1.1.2(@types/react@18.3.17)(react@18.3.1): +======= + use-isomorphic-layout-effect@1.1.2(@types/react@18.3.16)(react@19.0.0): +>>>>>>> 9f9668398 (chore: react v19) dependencies: - react: 18.3.1 + react: 19.0.0 optionalDependencies: '@types/react': 18.3.17 + use-isomorphic-layout-effect@1.1.2(@types/react@19.0.0)(react@19.0.0): + dependencies: + react: 19.0.0 + optionalDependencies: + '@types/react': 19.0.0 + util-deprecate@1.0.2: {} util@0.12.5: diff --git a/utils/test/package.json b/utils/test/package.json index 04707bf0c5..c1633debe2 100644 --- a/utils/test/package.json +++ b/utils/test/package.json @@ -26,11 +26,11 @@ "@emotion/styled": "11.14.0", "@testing-library/jest-dom": "6.6.3", "@testing-library/react": "16.1.0", - "@types/react": "18.3.17", + "@types/react": "19.0.0", "@ultraviolet/themes": "workspace:*", "jsdom": "25.0.1", - "react": "18.3.1", - "react-intersection-observer": "9.14.0", + "react": "19.0.0", + "react-intersection-observer": "9.14.1", "vitest": "2.1.8" } } From 5d01e2d7242036f317c6cd7c147c1a3e47881b93 Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 11 Dec 2024 18:46:22 +0100 Subject: [PATCH 2/4] fix: some type error Signed-off-by: Alexandre Philibeaux --- packages/ui/src/components/Chip/ChipContext.tsx | 2 +- .../ui/src/components/DateInput/components/Popup.tsx | 6 +++--- packages/ui/src/components/Expandable/index.tsx | 12 +++++++++--- packages/ui/src/components/NumberInput/index.tsx | 4 +--- packages/ui/src/components/Popup/helpers.ts | 8 +++++--- packages/ui/src/components/Popup/index.tsx | 8 ++++---- .../ui/src/components/SelectInputV2/Dropdown.tsx | 2 +- 7 files changed, 24 insertions(+), 18 deletions(-) diff --git a/packages/ui/src/components/Chip/ChipContext.tsx b/packages/ui/src/components/Chip/ChipContext.tsx index a7d726090a..a3988728bf 100644 --- a/packages/ui/src/components/Chip/ChipContext.tsx +++ b/packages/ui/src/components/Chip/ChipContext.tsx @@ -4,6 +4,6 @@ import { createContext } from 'react' type ContextType = { isActive: boolean disabled: boolean - iconRef?: RefObject + iconRef?: RefObject } export const ChipContext = createContext(undefined) diff --git a/packages/ui/src/components/DateInput/components/Popup.tsx b/packages/ui/src/components/DateInput/components/Popup.tsx index c972a096a3..7e24378473 100644 --- a/packages/ui/src/components/DateInput/components/Popup.tsx +++ b/packages/ui/src/components/DateInput/components/Popup.tsx @@ -23,7 +23,7 @@ type PopupProps = { children: ReactNode visible: boolean setVisible: Dispatch> - refInput: RefObject + refInput: RefObject } const StyledPopup = styled(Popup)` @@ -37,9 +37,9 @@ const StyledPopup = styled(Popup)` const handleClickOutside = ( event: MouseEvent, - ref: RefObject, + ref: RefObject, setVisible: Dispatch>, - refInput: RefObject, + refInput: RefObject, ) => { if ( ref.current && diff --git a/packages/ui/src/components/Expandable/index.tsx b/packages/ui/src/components/Expandable/index.tsx index df34ea10b9..dc4498ecda 100644 --- a/packages/ui/src/components/Expandable/index.tsx +++ b/packages/ui/src/components/Expandable/index.tsx @@ -50,7 +50,9 @@ export const Expandable = ({ animationDuration = ANIMATION_DURATION, }: ExpandableProps) => { const [height, setHeight] = useState(null) - const transitionTimer = useRef | undefined>() + const transitionTimer = useRef | undefined>( + null, + ) const ref = useRef(null) const shouldBeAnimated = animationDuration > 0 @@ -87,7 +89,9 @@ export const Expandable = ({ ref.current.style.visibility = '' } } else { - clearTimeout(transitionTimer.current) + if (transitionTimer?.current) { + clearTimeout(transitionTimer.current) + } if (ref.current && height) { ref.current.style.maxHeight = `${height}px` @@ -114,7 +118,9 @@ export const Expandable = ({ } return () => { - clearTimeout(transitionTimer.current) + if (transitionTimer?.current) { + clearTimeout(transitionTimer.current) + } } }, [animationDuration, height, minHeight, opened, shouldBeAnimated]) diff --git a/packages/ui/src/components/NumberInput/index.tsx b/packages/ui/src/components/NumberInput/index.tsx index 1995723c6e..29e3dd58b9 100644 --- a/packages/ui/src/components/NumberInput/index.tsx +++ b/packages/ui/src/components/NumberInput/index.tsx @@ -5,7 +5,6 @@ import type { FocusEventHandler, InputHTMLAttributes, KeyboardEventHandler, - MutableRefObject, } from 'react' import { useId, useMemo, useRef, useState } from 'react' import { Button } from '../Button' @@ -191,8 +190,7 @@ export const NumberInput = ({ 'aria-describedby': ariaDescribedBy, 'data-testid': dataTestId, }: NumberInputProps) => { - const inputRef = - useRef() as MutableRefObject + const inputRef = useRef(null) const uniqueId = useId() diff --git a/packages/ui/src/components/Popup/helpers.ts b/packages/ui/src/components/Popup/helpers.ts index 3f466644e1..8fd7ff4f1b 100644 --- a/packages/ui/src/components/Popup/helpers.ts +++ b/packages/ui/src/components/Popup/helpers.ts @@ -189,8 +189,8 @@ const getPopupOverflowFromParent = ( type ComputePositionsTypes = { placement: PopupPlacement - childrenRef: RefObject - popupRef: RefObject + childrenRef: RefObject + popupRef: RefObject popupPortalTarget: HTMLElement hasArrow: boolean align: PopupAlign @@ -211,7 +211,9 @@ export const computePositions = ({ const childrenRect = ( childrenRef.current as HTMLDivElement ).getBoundingClientRect() - const offsetParent = findOffsetParent(childrenRef) + const offsetParent = findOffsetParent( + childrenRef as RefObject, + ) const offsetParentRect = offsetParent?.getBoundingClientRect() ?? { top: 0, left: 0, diff --git a/packages/ui/src/components/Popup/index.tsx b/packages/ui/src/components/Popup/index.tsx index fbcadc9672..0c5008f402 100644 --- a/packages/ui/src/components/Popup/index.tsx +++ b/packages/ui/src/components/Popup/index.tsx @@ -133,7 +133,7 @@ type PopupProps = { onFocus: () => void onPointerEnter: () => void onPointerLeave: () => void - ref: RefObject + ref: RefObject }) => ReactNode) maxWidth?: number | string /** @@ -225,12 +225,12 @@ export const Popup = forwardRef( ref: Ref, ) => { const childrenRef = useRef(null) - useImperativeHandle(innerRef, () => childrenRef.current) + useImperativeHandle(innerRef, () => childrenRef.current as HTMLDivElement) const innerPopupRef = useRef(null) useImperativeHandle(ref, () => innerPopupRef.current as HTMLDivElement) - const timer = useRef | undefined>() + const timer = useRef>(undefined) const popupPortalTarget = useMemo(() => { if (portalTarget) return portalTarget @@ -255,7 +255,7 @@ export const Popup = forwardRef( disableAnimation || maxHeight ? 0 : DEFAULT_ANIMATION_DURATION // Debounce timer will be used to prevent the popup from flickering when the user moves the mouse out and in the children element. - const debounceTimer = useRef | undefined>() + const debounceTimer = useRef>(undefined) const [visibleInDom, setVisibleInDom] = useState(false) const [reverseAnimation, setReverseAnimation] = useState(false) const [positions, setPositions] = useState({ diff --git a/packages/ui/src/components/SelectInputV2/Dropdown.tsx b/packages/ui/src/components/SelectInputV2/Dropdown.tsx index 60659b671b..b5d77e695a 100644 --- a/packages/ui/src/components/SelectInputV2/Dropdown.tsx +++ b/packages/ui/src/components/SelectInputV2/Dropdown.tsx @@ -216,7 +216,7 @@ const handleKeyDownSelect = (event: KeyboardEvent) => { } const handleClickOutside = ( event: MouseEvent, - ref: RefObject, + ref: RefObject, setIsDropdownVisibile: Dispatch>, refSelect: RefObject, onSearch: Dispatch>, From 59aef6f1eea3386c830289662f2be3423fae5723 Mon Sep 17 00:00:00 2001 From: Alexandre Philibeaux Date: Mon, 16 Dec 2024 15:28:51 +0000 Subject: [PATCH 3/4] fix: type error --- packages/icons/package.json | 4 +- .../src/components/Icon/legacy/index.tsx | 13 ++-- packages/plus/package.json | 2 +- packages/ui/package.json | 4 +- .../src/components/SelectInputV2/Dropdown.tsx | 6 +- .../components/SelectInputV2/SelectBar.tsx | 4 +- .../SelectInputV2/SelectInputProvider.tsx | 2 +- .../ui/src/components/SelectInputV2/index.tsx | 2 +- packages/ui/src/components/Tabs/index.tsx | 2 +- pnpm-lock.yaml | 74 +++++++++++++++++-- 10 files changed, 89 insertions(+), 24 deletions(-) diff --git a/packages/icons/package.json b/packages/icons/package.json index 9670e83540..abeec89f98 100644 --- a/packages/icons/package.json +++ b/packages/icons/package.json @@ -120,8 +120,8 @@ "@babel/core": "7.26.0", "@emotion/react": "11.14.0", "@emotion/styled": "11.14.0", - "@types/react": "18.3.17", - "@types/react-dom": "18.3.5", + "@types/react": "19.0.0", + "@types/react-dom": "19.0.0", "@utils/test": "workspace:*", "react": "19.0.0", "react-dom": "19.0.0" diff --git a/packages/icons/src/components/Icon/legacy/index.tsx b/packages/icons/src/components/Icon/legacy/index.tsx index 30260b7c03..b5a3eb49c4 100644 --- a/packages/icons/src/components/Icon/legacy/index.tsx +++ b/packages/icons/src/components/Icon/legacy/index.tsx @@ -1,7 +1,7 @@ import { css } from '@emotion/react' import styled from '@emotion/styled' import type { consoleLightTheme as theme } from '@ultraviolet/themes' -import type { FunctionComponent, SVGProps } from 'react' +import type { FunctionComponent, PropsWithChildren, SVGProps } from 'react' import { forwardRef, useMemo } from 'react' import capitalize from '../../../utils/capitalize' import { ICONS } from './Icons' @@ -62,7 +62,7 @@ const PROMINENCES = { type ProminenceProps = keyof typeof PROMINENCES const StyledIcon = ( - component: FunctionComponent>, + component: FunctionComponent>>, ) => styled(component, { shouldForwardProp: prop => !['size', 'sentiment', 'prominence', 'disabled'].includes(prop), @@ -160,13 +160,14 @@ export const Icon = forwardRef( ) => { const computedSentiment = sentiment ?? color const SystemIcon = useMemo(() => { + const smallIcon = SMALL_ICONS[variant][name] + const defaultIcon = SMALL_ICONS.filled.alert + if (size === 'small' || size === 16) { - return StyledIcon( - SMALL_ICONS[variant][name] || SMALL_ICONS.filled.alert, - ) + return StyledIcon(smallIcon || defaultIcon) } - return StyledIcon(ICONS[variant][name] || ICONS.filled.alert) + return StyledIcon(smallIcon || defaultIcon) }, [name, size, variant]) /** diff --git a/packages/plus/package.json b/packages/plus/package.json index d0fec4b2cd..1787317693 100644 --- a/packages/plus/package.json +++ b/packages/plus/package.json @@ -73,7 +73,7 @@ "@babel/core": "7.26.0", "@emotion/react": "11.14.0", "@emotion/styled": "11.14.0", - "@types/react": "18.3.17", + "@types/react": "19.0.0", "@types/react-dom": "18.3.5", "@ultraviolet/illustrations": "workspace:*", "@utils/test": "workspace:*", diff --git a/packages/ui/package.json b/packages/ui/package.json index 698ed7c908..481017feb5 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -76,9 +76,9 @@ "@babel/core": "7.26.0", "@emotion/react": "11.14.0", "@emotion/styled": "11.14.0", - "@types/react": "18.3.17", + "@types/react": "19.0.0", "@types/react-datepicker": "6.2.0", - "@types/react-dom": "18.3.5", + "@types/react-dom": "19.0.0", "@utils/test": "workspace:*", "react": "19.0.0", "react-dom": "19.0.0" diff --git a/packages/ui/src/components/SelectInputV2/Dropdown.tsx b/packages/ui/src/components/SelectInputV2/Dropdown.tsx index b5d77e695a..3ef4e2f921 100644 --- a/packages/ui/src/components/SelectInputV2/Dropdown.tsx +++ b/packages/ui/src/components/SelectInputV2/Dropdown.tsx @@ -27,7 +27,7 @@ export type DropdownProps = { searchable: boolean placeholder: string footer?: ((closeDropdown: () => void) => ReactNode) | ReactNode - refSelect: RefObject + refSelect: RefObject loadMore?: ReactNode optionalInfoPlacement: 'left' | 'right' isLoading?: boolean @@ -218,7 +218,7 @@ const handleClickOutside = ( event: MouseEvent, ref: RefObject, setIsDropdownVisibile: Dispatch>, - refSelect: RefObject, + refSelect: RefObject, onSearch: Dispatch>, options: DataType, ) => { @@ -234,7 +234,7 @@ const handleClickOutside = ( const handleKeyDown = ( event: globalThis.KeyboardEvent, - ref: RefObject, + ref: RefObject, options: DataType, searchBarActive: boolean, setSearch: Dispatch>, diff --git a/packages/ui/src/components/SelectInputV2/SelectBar.tsx b/packages/ui/src/components/SelectInputV2/SelectBar.tsx index 31339d80f4..08e4f609d7 100644 --- a/packages/ui/src/components/SelectInputV2/SelectBar.tsx +++ b/packages/ui/src/components/SelectInputV2/SelectBar.tsx @@ -26,7 +26,7 @@ type SelectBarProps = { success?: string error?: string autoFocus?: boolean - innerRef: RefObject + innerRef: RefObject id?: string 'data-testid': string label?: string @@ -34,7 +34,7 @@ type SelectBarProps = { } type DisplayValuesProps = { - refTag: RefObject + refTag: RefObject nonOverflowedValues: OptionType[] disabled: boolean readOnly: boolean diff --git a/packages/ui/src/components/SelectInputV2/SelectInputProvider.tsx b/packages/ui/src/components/SelectInputV2/SelectInputProvider.tsx index fe659ead6b..10bd8934f6 100644 --- a/packages/ui/src/components/SelectInputV2/SelectInputProvider.tsx +++ b/packages/ui/src/components/SelectInputV2/SelectInputProvider.tsx @@ -61,7 +61,7 @@ type SelectInputProviderProps = { selectAllGroup: boolean numberOfOptions: number multiselect: IsMulti - refSelect?: RefObject + refSelect?: RefObject onChange?: IsMulti extends true ? (value: string[]) => void : (value: string) => void diff --git a/packages/ui/src/components/SelectInputV2/index.tsx b/packages/ui/src/components/SelectInputV2/index.tsx index 969da005de..3d4dc85924 100644 --- a/packages/ui/src/components/SelectInputV2/index.tsx +++ b/packages/ui/src/components/SelectInputV2/index.tsx @@ -172,7 +172,7 @@ export const SelectInputV2 = ({ }: SelectInputV2Props) => { const localId = useId() const finalId = id ?? localId - const ref = useRef(null) + const ref = useRef(null) const numberOfOptions = Array.isArray(options) ? options.length : Object.values(options).reduce( diff --git a/packages/ui/src/components/Tabs/index.tsx b/packages/ui/src/components/Tabs/index.tsx index 45e261f031..11dea82816 100644 --- a/packages/ui/src/components/Tabs/index.tsx +++ b/packages/ui/src/components/Tabs/index.tsx @@ -146,7 +146,7 @@ export const Tabs = ({ if (isValidElement(child)) { return cloneElement(child as ReactElement, { ...child.props, - subtitle: null, + // subtitle: null, }) } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2cf3b33d1a..73901aa0cf 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -628,6 +628,7 @@ importers: version: 7.26.0 '@emotion/react': specifier: 11.14.0 +<<<<<<< HEAD <<<<<<< HEAD version: 11.14.0(@types/react@18.3.17)(react@18.3.1) '@emotion/styled': @@ -645,6 +646,18 @@ importers: '@types/react-dom': specifier: 18.3.5 version: 18.3.5(@types/react@18.3.17) +======= + version: 11.14.0(@types/react@19.0.0)(react@19.0.0) + '@emotion/styled': + specifier: 11.14.0 + version: 11.14.0(@emotion/react@11.14.0(@types/react@19.0.0)(react@19.0.0))(@types/react@19.0.0)(react@19.0.0) + '@types/react': + specifier: 19.0.0 + version: 19.0.0 + '@types/react-dom': + specifier: 19.0.0 + version: 19.0.0 +>>>>>>> 6e17823ee (fix: type error) '@utils/test': specifier: workspace:* version: link:../../utils/test @@ -721,6 +734,7 @@ importers: version: 7.26.0 '@emotion/react': specifier: 11.14.0 +<<<<<<< HEAD <<<<<<< HEAD version: 11.14.0(@types/react@18.3.17)(react@18.3.1) '@emotion/styled': @@ -738,6 +752,18 @@ importers: '@types/react-dom': specifier: 18.3.5 version: 18.3.5(@types/react@18.3.17) +======= + version: 11.14.0(@types/react@19.0.0)(react@19.0.0) + '@emotion/styled': + specifier: 11.14.0 + version: 11.14.0(@emotion/react@11.14.0(@types/react@19.0.0)(react@19.0.0))(@types/react@19.0.0)(react@19.0.0) + '@types/react': + specifier: 19.0.0 + version: 19.0.0 + '@types/react-dom': + specifier: 18.3.5 + version: 18.3.5(@types/react@19.0.0) +>>>>>>> 6e17823ee (fix: type error) '@ultraviolet/illustrations': specifier: workspace:* version: link:../illustrations @@ -797,11 +823,15 @@ importers: version: 6.9.0(react-dom@19.0.0(react@19.0.0))(react@19.0.0) react-select: specifier: 5.8.3 +<<<<<<< HEAD <<<<<<< HEAD version: 5.8.3(@types/react@18.3.17)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) ======= version: 5.8.3(@types/react@18.3.16)(react-dom@19.0.0(react@19.0.0))(react@19.0.0) >>>>>>> 9f9668398 (chore: react v19) +======= + version: 5.8.3(@types/react@19.0.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0) +>>>>>>> 6e17823ee (fix: type error) react-toastify: specifier: 10.0.6 version: 10.0.6(react-dom@19.0.0(react@19.0.0))(react@19.0.0) @@ -817,6 +847,7 @@ importers: version: 7.26.0 '@emotion/react': specifier: 11.14.0 +<<<<<<< HEAD <<<<<<< HEAD version: 11.14.0(@types/react@18.3.17)(react@18.3.1) '@emotion/styled': @@ -831,12 +862,26 @@ importers: '@types/react': specifier: 18.3.17 version: 18.3.17 +======= + version: 11.14.0(@types/react@19.0.0)(react@19.0.0) + '@emotion/styled': + specifier: 11.14.0 + version: 11.14.0(@emotion/react@11.14.0(@types/react@19.0.0)(react@19.0.0))(@types/react@19.0.0)(react@19.0.0) + '@types/react': + specifier: 19.0.0 + version: 19.0.0 +>>>>>>> 6e17823ee (fix: type error) '@types/react-datepicker': specifier: 6.2.0 version: 6.2.0(react-dom@19.0.0(react@19.0.0))(react@19.0.0) '@types/react-dom': +<<<<<<< HEAD specifier: 18.3.5 version: 18.3.5(@types/react@18.3.17) +======= + specifier: 19.0.0 + version: 19.0.0 +>>>>>>> 6e17823ee (fix: type error) '@utils/test': specifier: workspace:* version: link:../../utils/test @@ -3339,9 +3384,6 @@ packages: '@types/parse-json@4.0.2': resolution: {integrity: sha512-dISoDXWWQwUquiKsyZ4Ng+HX2KsPL7LyHKHQwgGFEA3IaKac4Obd+h2a/a6waisAoepJlBcx9paWqjA8/HVjCw==} - '@types/prop-types@15.7.12': - resolution: {integrity: sha512-5zvhXYtRNRluoE/jAp4GVsSduVUzNWKkOZrCDBWYtE7biZywwdC2AcEzg+cSMLFRfVgeAFqpfNabiPjxFddV1Q==} - '@types/react-datepicker@6.2.0': resolution: {integrity: sha512-+JtO4Fm97WLkJTH8j8/v3Ldh7JCNRwjMYjRaKh4KHH0M3jJoXtwiD3JBCsdlg3tsFIw9eQSqyAPeVDN2H2oM9Q==} @@ -3359,9 +3401,12 @@ packages: '@types/react-transition-group@4.4.10': resolution: {integrity: sha512-hT/+s0VQs2ojCX823m60m5f0sL5idt9SO6Tj6Dg+rdphGPIeJbJ6CxvBYkgkGKrYeDjvIpKTR38UzmtHJOGW3Q==} +<<<<<<< HEAD '@types/react@18.3.17': resolution: {integrity: sha512-opAQ5no6LqJNo9TqnxBKsgnkIYHozW9KSTlFVoSUJYh1Fl/sswkEoqIugRSm7tbh6pABtYjGAjW+GOS23j8qbw==} +======= +>>>>>>> 6e17823ee (fix: type error) '@types/react@19.0.0': resolution: {integrity: sha512-MY3oPudxvMYyesqs/kW1Bh8y9VqSmf+tzqw3ae8a9DZW68pUe3zAdHeI1jc6iAysuRdACnVknHP8AhwD4/dxtg==} @@ -9536,6 +9581,7 @@ snapshots: '@emotion/memoize@0.9.0': {} +<<<<<<< HEAD <<<<<<< HEAD '@emotion/react@11.14.0(@types/react@18.3.17)(react@18.3.1)': ======= @@ -9556,6 +9602,8 @@ snapshots: transitivePeerDependencies: - supports-color +======= +>>>>>>> 6e17823ee (fix: type error) '@emotion/react@11.14.0(@types/react@19.0.0)(react@19.0.0)': dependencies: '@babel/runtime': 7.26.0 @@ -9582,6 +9630,7 @@ snapshots: '@emotion/sheet@1.4.0': {} +<<<<<<< HEAD <<<<<<< HEAD '@emotion/styled@11.14.0(@emotion/react@11.14.0(@types/react@18.3.17)(react@18.3.1))(@types/react@18.3.17)(react@18.3.1)': ======= @@ -9605,6 +9654,8 @@ snapshots: transitivePeerDependencies: - supports-color +======= +>>>>>>> 6e17823ee (fix: type error) '@emotion/styled@11.14.0(@emotion/react@11.14.0(@types/react@19.0.0)(react@19.0.0))(@types/react@19.0.0)(react@19.0.0)': dependencies: '@babel/runtime': 7.26.0 @@ -11172,8 +11223,6 @@ snapshots: '@types/parse-json@4.0.2': {} - '@types/prop-types@15.7.12': {} - '@types/react-datepicker@6.2.0(react-dom@19.0.0(react@19.0.0))(react@19.0.0)': dependencies: <<<<<<< HEAD @@ -11188,9 +11237,15 @@ snapshots: - react - react-dom +<<<<<<< HEAD '@types/react-dom@18.3.5(@types/react@18.3.17)': dependencies: '@types/react': 18.3.17 +======= + '@types/react-dom@18.3.5(@types/react@19.0.0)': + dependencies: + '@types/react': 19.0.0 +>>>>>>> 6e17823ee (fix: type error) '@types/react-dom@19.0.0': dependencies: @@ -11212,11 +11267,14 @@ snapshots: '@types/react': 19.0.0 >>>>>>> 9f9668398 (chore: react v19) +<<<<<<< HEAD '@types/react@18.3.17': dependencies: '@types/prop-types': 15.7.12 csstype: 3.1.3 +======= +>>>>>>> 6e17823ee (fix: type error) '@types/react@19.0.0': dependencies: csstype: 3.1.3 @@ -15327,6 +15385,7 @@ snapshots: schema-dts: 1.1.2(typescript@5.7.2) typescript: 5.7.2 +<<<<<<< HEAD <<<<<<< HEAD react-select@5.8.3(@types/react@18.3.17)(react-dom@18.3.1(react@18.3.1))(react@18.3.1): dependencies: @@ -15359,6 +15418,8 @@ snapshots: - '@types/react' - supports-color +======= +>>>>>>> 6e17823ee (fix: type error) react-select@5.8.3(@types/react@19.0.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0): dependencies: '@babel/runtime': 7.26.0 @@ -16410,6 +16471,7 @@ snapshots: urlpattern-polyfill@10.0.0: {} +<<<<<<< HEAD <<<<<<< HEAD use-isomorphic-layout-effect@1.1.2(@types/react@18.3.17)(react@18.3.1): ======= @@ -16420,6 +16482,8 @@ snapshots: optionalDependencies: '@types/react': 18.3.17 +======= +>>>>>>> 6e17823ee (fix: type error) use-isomorphic-layout-effect@1.1.2(@types/react@19.0.0)(react@19.0.0): dependencies: react: 19.0.0 From de468d7057c141051dc818df36a242ef0bf3b2c2 Mon Sep 17 00:00:00 2001 From: Alexandre Philibeaux Date: Mon, 16 Dec 2024 16:00:52 +0000 Subject: [PATCH 4/4] fix: type error Signed-off-by: Alexandre Philibeaux --- examples/next-advanced/next.config.js | 11 +- examples/next-login/next.config.js | 9 - examples/next-login/package.json | 4 +- examples/next-simple/next.config.js | 9 - .../__snapshots__/index.test.tsx.snap | 7 - .../__stories__/Direction.stories.tsx | 5 +- .../__stories__/NotRequired.stories.tsx | 7 +- .../__stories__/PartiallyRequired.stories.tsx | 7 +- .../__stories__/Required.stories.tsx | 7 +- .../__stories__/Template.stories.tsx | 7 +- .../__snapshots__/index.test.tsx.snap | 2 - .../__snapshots__/index.test.tsx.snap | 2 - .../__stories__/Required.stories.tsx | 5 +- .../__stories__/Template.stories.tsx | 2 +- .../__tests__/index.test.tsx | 14 +- .../__snapshots__/index.test.tsx.snap | 2 +- .../__snapshots__/index.test.tsx.snap | 7 - .../__snapshots__/index.test.tsx.snap | 8 +- .../__snapshots__/index.test.tsx.snap | 4 - .../__stories__/Required.stories.tsx | 5 +- .../__stories__/Template.stories.tsx | 5 +- .../__snapshots__/index.test.tsx.snap | 1 - packages/icons/src/components/Icon/Icon.tsx | 1 + packages/plus/package.json | 2 +- .../__snapshots__/index.test.tsx.snap | 24 +- .../__snapshots__/index.test.tsx.snap | 48 +-- .../EstimateCost/OverlayComponent.tsx | 2 +- .../__snapshots__/Item.test.tsx.snap | 28 +- .../__snapshots__/Region.test.tsx.snap | 4 +- .../__snapshots__/Regular.test.tsx.snap | 50 +-- .../__snapshots__/Stepper.test.tsx.snap | 16 +- .../__snapshots__/Strong.test.tsx.snap | 12 +- .../__snapshots__/Unit.test.tsx.snap | 37 +- .../__snapshots__/Zone.test.tsx.snap | 8 +- .../__snapshots__/index.test.tsx.snap | 86 ++-- .../plus/src/components/EstimateCost/types.ts | 2 +- .../plus/src/components/Navigation/Footer.tsx | 2 +- .../Navigation/NavigationContent.tsx | 4 +- .../Navigation/NavigationProvider.tsx | 8 +- .../__snapshots__/index.test.tsx.snap | 54 +-- .../__snapshots__/index.test.tsx.snap | 30 +- .../__snapshots__/index.test.tsx.snap | 2 +- .../__snapshots__/index.test.tsx.snap | 80 ++-- .../__snapshots__/index.test.tsx.snap | 8 +- .../__snapshots__/index.test.tsx.snap | 15 - .../__snapshots__/index.test.tsx.snap | 10 - .../__snapshots__/index.test.tsx.snap | 9 - .../__snapshots__/index.test.tsx.snap | 24 +- .../components/List/__tests__/index.test.tsx | 4 +- .../Modal/__stories__/AutoFocus.stories.tsx | 6 +- .../__stories__/MinMax.stories.tsx | 9 +- .../__snapshots__/index.test.tsx.snap | 16 - .../__snapshots__/index.test.tsx.snap | 6 +- .../__snapshots__/index.test.tsx.snap | 16 +- .../components/Table/__tests__/index.test.tsx | 2 +- .../__snapshots__/index.test.tsx.snap | 10 +- packages/ui/src/components/Tabs/index.tsx | 8 +- .../__snapshots__/index.test.tsx.snap | 32 +- .../__snapshots__/index.test.tsx.snap | 2 +- .../__snapshots__/index.test.tsx.snap | 13 - .../__snapshots__/index.test.tsx.snap | 13 - pnpm-lock.yaml | 397 +----------------- utils/test/package.json | 2 +- 63 files changed, 330 insertions(+), 902 deletions(-) diff --git a/examples/next-advanced/next.config.js b/examples/next-advanced/next.config.js index a1cd5604ee..a121e60b70 100644 --- a/examples/next-advanced/next.config.js +++ b/examples/next-advanced/next.config.js @@ -9,22 +9,13 @@ const nextConfig = () => { }, poweredByHeader: false, reactStrictMode: true, - swcMinify: true, compiler: { emotion: true, }, eslint: { ignoreDuringBuilds: true, }, - experimental: { - esmExternals: 'loose', // See https://github.com/Hacker0x01/react-datepicker/issues/3834 - }, - transpilePackages: [ - '@ultraviolet/ui', - '@ultraviolet/form', - '@ultraviolet/icons', - 'react-syntax-highlighter', - ], + transpilePackages: ['react-syntax-highlighter'], } return config diff --git a/examples/next-login/next.config.js b/examples/next-login/next.config.js index b9ae5fd679..e626c83012 100644 --- a/examples/next-login/next.config.js +++ b/examples/next-login/next.config.js @@ -9,21 +9,12 @@ const nextConfig = () => { }, poweredByHeader: false, reactStrictMode: true, - swcMinify: true, compiler: { emotion: true, }, eslint: { ignoreDuringBuilds: true, }, - experimental: { - esmExternals: 'loose', // See https://github.com/Hacker0x01/react-datepicker/issues/3834 - }, - transpilePackages: [ - '@ultraviolet/ui', - '@ultraviolet/form', - '@ultraviolet/icons', - ], } return config } diff --git a/examples/next-login/package.json b/examples/next-login/package.json index 6985595e16..7e2ebd9e4b 100644 --- a/examples/next-login/package.json +++ b/examples/next-login/package.json @@ -17,6 +17,7 @@ "dependencies": { "@emotion/react": "11.14.0", "@emotion/styled": "11.14.0", + "@ultraviolet/fonts": "workspace:*", "@ultraviolet/form": "workspace:*", "@ultraviolet/icons": "workspace:*", "@ultraviolet/ui": "workspace:*", @@ -31,8 +32,7 @@ "devDependencies": { "@babel/core": "7.26.0", "@types/node": "22.10.2", - "@types/react": "18.3.17", - "@types/react":"19.0.0", + "@types/react": "19.0.0", "@types/react-syntax-highlighter": "15.5.13", "next-transpile-modules": "10.0.1" } diff --git a/examples/next-simple/next.config.js b/examples/next-simple/next.config.js index bdefa8a3c9..24cfebb68e 100644 --- a/examples/next-simple/next.config.js +++ b/examples/next-simple/next.config.js @@ -9,21 +9,12 @@ const nextConfig = () => { }, poweredByHeader: false, reactStrictMode: true, - swcMinify: true, compiler: { emotion: true, }, eslint: { ignoreDuringBuilds: true, }, - experimental: { - esmExternals: 'loose', // See https://github.com/Hacker0x01/react-datepicker/issues/3834 - }, - transpilePackages: [ - '@ultraviolet/ui', - '@ultraviolet/form', - '@ultraviolet/icons', - ], } return config diff --git a/packages/form/src/components/CheckboxField/__tests__/__snapshots__/index.test.tsx.snap b/packages/form/src/components/CheckboxField/__tests__/__snapshots__/index.test.tsx.snap index cd2cf547c8..e4ac385852 100644 --- a/packages/form/src/components/CheckboxField/__tests__/__snapshots__/index.test.tsx.snap +++ b/packages/form/src/components/CheckboxField/__tests__/__snapshots__/index.test.tsx.snap @@ -295,7 +295,6 @@ exports[`CheckboxField > should render correctly 1`] = ` id=":r0:" name="test" type="checkbox" - value="" /> should render correctly checked without value 1`] = ` id=":r6:" name="checked" type="checkbox" - value="" /> should render correctly disabled 1`] = ` id=":r4:" name="test" type="checkbox" - value="" /> should render correctly not checked without value 1`] = id=":r8:" name="checked" type="checkbox" - value="" /> should render correctly with aria-label 1`] = ` id=":r2:" name="test" type="checkbox" - value="" /> should render correctly with errors 1`] = ` id=":rd:" name="test" type="checkbox" - value="" /> should trigger events correctly 1`] = ` id=":ra:" name="test" type="checkbox" - value="" /> = args => { +const DirectionTemplate = (args: ComponentProps) => { const { watch } = useFormContext() return ( @@ -27,7 +28,7 @@ export const DirectionStory: StoryFn = args => { } export const Direction: StoryFn = args => ( - + ) Direction.parameters = { diff --git a/packages/form/src/components/CheckboxGroupField/__stories__/NotRequired.stories.tsx b/packages/form/src/components/CheckboxGroupField/__stories__/NotRequired.stories.tsx index 419f143d55..9c3bf709e1 100644 --- a/packages/form/src/components/CheckboxGroupField/__stories__/NotRequired.stories.tsx +++ b/packages/form/src/components/CheckboxGroupField/__stories__/NotRequired.stories.tsx @@ -1,9 +1,12 @@ import type { StoryFn } from '@storybook/react' import { Stack } from '@ultraviolet/ui' +import type { ComponentProps } from 'react' import { CheckboxGroupField } from '..' import { Submit } from '../..' -export const NotRequiredStory: StoryFn = args => ( +export const NotRequiredTemplate = ( + args: ComponentProps, +) => ( = args => ( ) export const NotRequired: StoryFn = args => ( - + ) NotRequired.parameters = { diff --git a/packages/form/src/components/CheckboxGroupField/__stories__/PartiallyRequired.stories.tsx b/packages/form/src/components/CheckboxGroupField/__stories__/PartiallyRequired.stories.tsx index a63db090e5..908e561f20 100644 --- a/packages/form/src/components/CheckboxGroupField/__stories__/PartiallyRequired.stories.tsx +++ b/packages/form/src/components/CheckboxGroupField/__stories__/PartiallyRequired.stories.tsx @@ -1,11 +1,12 @@ import type { StoryFn } from '@storybook/react' import { Stack } from '@ultraviolet/ui' +import type { ComponentProps } from 'react' import { CheckboxGroupField } from '..' import { Submit } from '../..' -export const PartiallyRequiredStory: StoryFn< - typeof CheckboxGroupField -> = args => ( +const PartiallyRequiredStory = ( + args: ComponentProps, +) => ( = args => ( +export const RequiredTemplate = ( + args: ComponentProps, +) => ( = args => ( ) export const Required: StoryFn = args => ( - + ) Required.parameters = { diff --git a/packages/form/src/components/CheckboxGroupField/__stories__/Template.stories.tsx b/packages/form/src/components/CheckboxGroupField/__stories__/Template.stories.tsx index 6e8d89b8ae..dae36490fe 100644 --- a/packages/form/src/components/CheckboxGroupField/__stories__/Template.stories.tsx +++ b/packages/form/src/components/CheckboxGroupField/__stories__/Template.stories.tsx @@ -1,8 +1,11 @@ import type { StoryFn } from '@storybook/react' import { Stack } from '@ultraviolet/ui' +import type { ComponentProps } from 'react' import { CheckboxGroupField } from '..' -const CheckboxGroupFieldStory: StoryFn = args => ( +const CheckboxGroupTemplate = ( + args: ComponentProps, +) => ( = args => ( ) export const Template: StoryFn = args => ( - + ) Template.args = { diff --git a/packages/form/src/components/DateField/__tests__/__snapshots__/index.test.tsx.snap b/packages/form/src/components/DateField/__tests__/__snapshots__/index.test.tsx.snap index d6907c0a74..0a16d4fe7b 100644 --- a/packages/form/src/components/DateField/__tests__/__snapshots__/index.test.tsx.snap +++ b/packages/form/src/components/DateField/__tests__/__snapshots__/index.test.tsx.snap @@ -208,7 +208,6 @@ exports[`DateField > should render correctly 1`] = ` id=":r1:" name="test" type="text" - value="" />
should render correctly disabled 1`] = ` id=":r4:" name="test" type="text" - value="" />
should render correctly 1`] = ` name="test" placeholder="" type="number" - value="" />
should render correctly disabled 1`] = ` name="test" placeholder="" type="number" - value="" />
= args => ( +const RequiredTemplate = (args: ComponentProps) => ( @@ -14,7 +15,7 @@ export const RequiredStory: StoryFn = args => ( ) export const Required: StoryFn = args => ( - + ) Required.args = { diff --git a/packages/form/src/components/SelectInputField/__stories__/Template.stories.tsx b/packages/form/src/components/SelectInputField/__stories__/Template.stories.tsx index 553a8e9542..693af75611 100644 --- a/packages/form/src/components/SelectInputField/__stories__/Template.stories.tsx +++ b/packages/form/src/components/SelectInputField/__stories__/Template.stories.tsx @@ -5,7 +5,7 @@ import { SelectInputField } from '..' export const Template: StoryFn< StoryFn> > = args => ( - + Option A Option B diff --git a/packages/form/src/components/SelectInputFieldV2/__tests__/index.test.tsx b/packages/form/src/components/SelectInputFieldV2/__tests__/index.test.tsx index 02e6efd553..bfb19e0c7a 100644 --- a/packages/form/src/components/SelectInputFieldV2/__tests__/index.test.tsx +++ b/packages/form/src/components/SelectInputFieldV2/__tests__/index.test.tsx @@ -1,4 +1,4 @@ -import { act, fireEvent, screen } from '@testing-library/react' +import { act, fireEvent, screen, waitFor } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' import { renderWithForm } from '@utils/test' import { describe, expect, test, vi } from 'vitest' @@ -34,7 +34,7 @@ describe('SelectInputField', () => { expect(asFragment()).toMatchSnapshot() }) - test('should display right value on grouped options', () => { + test('should display right value on grouped options', async () => { const { asFragment } = renderWithForm( , ) @@ -45,8 +45,9 @@ describe('SelectInputField', () => { act(() => mercury.click()) act(() => select.click()) - - expect(mercury).toBeVisible() + await waitFor(() => { + expect(mercury).toBeVisible() + }) expect(asFragment()).toMatchSnapshot() }) @@ -66,8 +67,11 @@ describe('SelectInputField', () => { const option = screen.getByTestId('option-stack-mercury') await userEvent.click(option) - expect(onChange).toBeCalledTimes(1) + await waitFor(() => { + expect(onChange).toBeCalledTimes(1) + }) act(() => select.blur()) + expect(asFragment()).toMatchSnapshot() }) }) diff --git a/packages/form/src/components/SubmitErrorAlert/__tests__/__snapshots__/index.test.tsx.snap b/packages/form/src/components/SubmitErrorAlert/__tests__/__snapshots__/index.test.tsx.snap index 60f7eba6d9..f40e059cdc 100644 --- a/packages/form/src/components/SubmitErrorAlert/__tests__/__snapshots__/index.test.tsx.snap +++ b/packages/form/src/components/SubmitErrorAlert/__tests__/__snapshots__/index.test.tsx.snap @@ -214,7 +214,7 @@ exports[`SubmitErrorAlert > should display an alert when submitError is present > diff --git a/packages/form/src/components/TextInputField/__tests__/__snapshots__/index.test.tsx.snap b/packages/form/src/components/TextInputField/__tests__/__snapshots__/index.test.tsx.snap index 73e43ee98d..9dc59e01c5 100644 --- a/packages/form/src/components/TextInputField/__tests__/__snapshots__/index.test.tsx.snap +++ b/packages/form/src/components/TextInputField/__tests__/__snapshots__/index.test.tsx.snap @@ -111,7 +111,6 @@ exports[`TextInputField > should render correctly 1`] = ` class="emotion-2 emotion-3" name="test" type="text" - value="" />
should render correctly disabled 1`] = ` disabled="" name="test" type="text" - value="" />
should render correctly generated 1`] = ` class="emotion-2 emotion-3" name="test" type="text" - value="" />
should render correctly id 1`] = ` id="id" name="test" type="text" - value="" />
should render correctly notice 1`] = ` class="emotion-2 emotion-3" name="test" type="text" - value="" />
should render correctly random 1`] = ` class="emotion-2 emotion-3" name="test" type="text" - value="" />
should render correctly required 1`] = ` name="test" required="" type="text" - value="" />
should render correctly 1`] = ` > @@ -767,7 +767,7 @@ exports[`TimeField > should render correctly checked without value 1`] = ` > @@ -1161,7 +1161,7 @@ exports[`TimeField > should render correctly disabled 1`] = ` > @@ -1555,7 +1555,7 @@ exports[`TimeField > should trigger events 1`] = ` > diff --git a/packages/form/src/components/ToggleField/__tests__/__snapshots__/index.test.tsx.snap b/packages/form/src/components/ToggleField/__tests__/__snapshots__/index.test.tsx.snap index 0e87dd5ff5..0cf82c72f3 100644 --- a/packages/form/src/components/ToggleField/__tests__/__snapshots__/index.test.tsx.snap +++ b/packages/form/src/components/ToggleField/__tests__/__snapshots__/index.test.tsx.snap @@ -191,7 +191,6 @@ exports[`ToggleField > should render correctly 1`] = ` id=":r0:" name="test" type="checkbox" - value="" />
@@ -392,7 +391,6 @@ exports[`ToggleField > should render correctly checked 1`] = ` id=":r4:" name="test" type="checkbox" - value="" />
@@ -593,7 +591,6 @@ exports[`ToggleField > should render correctly disabled 1`] = ` id=":r2:" name="test" type="checkbox" - value="" />
@@ -830,7 +827,6 @@ exports[`ToggleField > should render correctly with label and checked 1`] = ` id=":r6:" name="test" type="checkbox" - value="" />
diff --git a/packages/form/src/components/ToggleGroupField/__stories__/Required.stories.tsx b/packages/form/src/components/ToggleGroupField/__stories__/Required.stories.tsx index 126a0b5536..a4bdea3c8e 100644 --- a/packages/form/src/components/ToggleGroupField/__stories__/Required.stories.tsx +++ b/packages/form/src/components/ToggleGroupField/__stories__/Required.stories.tsx @@ -1,10 +1,13 @@ import type { StoryFn } from '@storybook/react' import { Stack } from '@ultraviolet/ui' +import type { ComponentProps } from 'react' import { ToggleGroupField } from '..' import { Submit } from '../..' import { useWatch } from '../../..' -export const RequiredStory: StoryFn = args => { +export const RequiredStory = ( + args: ComponentProps, +) => { const values = useWatch() return ( diff --git a/packages/form/src/components/ToggleGroupField/__stories__/Template.stories.tsx b/packages/form/src/components/ToggleGroupField/__stories__/Template.stories.tsx index 19e79e8876..7c7881ed95 100644 --- a/packages/form/src/components/ToggleGroupField/__stories__/Template.stories.tsx +++ b/packages/form/src/components/ToggleGroupField/__stories__/Template.stories.tsx @@ -1,9 +1,12 @@ import type { StoryFn } from '@storybook/react' import { Stack } from '@ultraviolet/ui' +import type { ComponentProps } from 'react' import { ToggleGroupField } from '..' import { useWatch } from '../../..' -const ToggleGroupFieldStory: StoryFn = args => { +const ToggleGroupFieldStory = ( + args: ComponentProps, +) => { const values = useWatch() return ( diff --git a/packages/form/src/components/UnitInputField/__tests__/__snapshots__/index.test.tsx.snap b/packages/form/src/components/UnitInputField/__tests__/__snapshots__/index.test.tsx.snap index b5bcd36f90..5055618d23 100644 --- a/packages/form/src/components/UnitInputField/__tests__/__snapshots__/index.test.tsx.snap +++ b/packages/form/src/components/UnitInputField/__tests__/__snapshots__/index.test.tsx.snap @@ -1143,7 +1143,6 @@ exports[`UnitInputField > should render correctly 1`] = ` placeholder="0" step="1" type="number" - value="" />
( ( { diff --git a/packages/plus/package.json b/packages/plus/package.json index 1787317693..1117bcf652 100644 --- a/packages/plus/package.json +++ b/packages/plus/package.json @@ -74,7 +74,7 @@ "@emotion/react": "11.14.0", "@emotion/styled": "11.14.0", "@types/react": "19.0.0", - "@types/react-dom": "18.3.5", + "@types/react-dom": "19.0.0", "@ultraviolet/illustrations": "workspace:*", "@utils/test": "workspace:*", "react": "19.0.0", diff --git a/packages/plus/src/components/ContentCard/__tests__/__snapshots__/index.test.tsx.snap b/packages/plus/src/components/ContentCard/__tests__/__snapshots__/index.test.tsx.snap index b42f59fa05..defbeaa746 100644 --- a/packages/plus/src/components/ContentCard/__tests__/__snapshots__/index.test.tsx.snap +++ b/packages/plus/src/components/ContentCard/__tests__/__snapshots__/index.test.tsx.snap @@ -2432,14 +2432,10 @@ exports[`ContentCard > renders correctly with href 1`] = ` xmlns="http://www.w3.org/2000/svg" >
@@ -2745,14 +2741,10 @@ exports[`ContentCard > renders correctly with href and direction row 1`] = ` xmlns="http://www.w3.org/2000/svg" > @@ -3058,14 +3050,10 @@ exports[`ContentCard > renders correctly with href and target 1`] = ` xmlns="http://www.w3.org/2000/svg" > diff --git a/packages/plus/src/components/ContentCardGroup/__tests__/__snapshots__/index.test.tsx.snap b/packages/plus/src/components/ContentCardGroup/__tests__/__snapshots__/index.test.tsx.snap index cfdf94205c..364831fc86 100644 --- a/packages/plus/src/components/ContentCardGroup/__tests__/__snapshots__/index.test.tsx.snap +++ b/packages/plus/src/components/ContentCardGroup/__tests__/__snapshots__/index.test.tsx.snap @@ -208,14 +208,10 @@ exports[`ContentCardGroup > renders correctly with a children 1`] = ` xmlns="http://www.w3.org/2000/svg" > @@ -426,14 +422,10 @@ exports[`ContentCardGroup > renders correctly with description 1`] = ` xmlns="http://www.w3.org/2000/svg" > @@ -674,14 +666,10 @@ exports[`ContentCardGroup > renders correctly with different title and subtitle xmlns="http://www.w3.org/2000/svg" > @@ -899,14 +887,10 @@ exports[`ContentCardGroup > renders correctly with link target _parent 1`] = ` xmlns="http://www.w3.org/2000/svg" > @@ -1364,14 +1348,10 @@ exports[`ContentCardGroup > renders correctly with required title & hread 1`] = xmlns="http://www.w3.org/2000/svg" > @@ -1582,14 +1562,10 @@ exports[`ContentCardGroup > renders correctly with subtitle 1`] = ` xmlns="http://www.w3.org/2000/svg" > diff --git a/packages/plus/src/components/EstimateCost/OverlayComponent.tsx b/packages/plus/src/components/EstimateCost/OverlayComponent.tsx index c01da64854..3816dc6fb5 100644 --- a/packages/plus/src/components/EstimateCost/OverlayComponent.tsx +++ b/packages/plus/src/components/EstimateCost/OverlayComponent.tsx @@ -1,6 +1,6 @@ import styled from '@emotion/styled' import { Icon, Stack } from '@ultraviolet/ui' -import type { ReactNode } from 'react' +import type { JSX, ReactNode } from 'react' import { Children, cloneElement, isValidElement, useMemo } from 'react' import { LineThrough } from './Components/LineThrough' import { Strong } from './Components/Strong' diff --git a/packages/plus/src/components/EstimateCost/__tests__/__snapshots__/Item.test.tsx.snap b/packages/plus/src/components/EstimateCost/__tests__/__snapshots__/Item.test.tsx.snap index 4f368d25d4..94896aacdd 100644 --- a/packages/plus/src/components/EstimateCost/__tests__/__snapshots__/Item.test.tsx.snap +++ b/packages/plus/src/components/EstimateCost/__tests__/__snapshots__/Item.test.tsx.snap @@ -1779,7 +1779,7 @@ exports[`EstimateCost - Item > render with labelTextVariant 1`] = ` > @@ -1832,7 +1832,7 @@ exports[`EstimateCost - Item > render with labelTextVariant 1`] = ` > @@ -2973,7 +2973,7 @@ exports[`EstimateCost - Item > render with noPrice and noBorder 1`] = ` > @@ -3026,7 +3026,7 @@ exports[`EstimateCost - Item > render with noPrice and noBorder 1`] = ` > @@ -5038,7 +5038,7 @@ exports[`EstimateCost - Item > render with notice 1`] = ` > @@ -5091,7 +5091,7 @@ exports[`EstimateCost - Item > render with notice 1`] = ` > @@ -7097,7 +7097,7 @@ exports[`EstimateCost - Item > render with priceText 1`] = ` > @@ -7150,7 +7150,7 @@ exports[`EstimateCost - Item > render with priceText 1`] = ` > @@ -9135,7 +9135,7 @@ exports[`EstimateCost - Item > render with tabulation 1`] = ` > @@ -9188,7 +9188,7 @@ exports[`EstimateCost - Item > render with tabulation 1`] = ` > @@ -11204,7 +11204,7 @@ exports[`EstimateCost - Item > render with tooltipInfo 1`] = ` > @@ -11237,7 +11237,7 @@ exports[`EstimateCost - Item > render with tooltipInfo 1`] = ` > @@ -11290,7 +11290,7 @@ exports[`EstimateCost - Item > render with tooltipInfo 1`] = ` > @@ -11475,7 +11475,7 @@ exports[`EstimateCost - Item > render with tooltipInfo 1`] = ` > diff --git a/packages/plus/src/components/EstimateCost/__tests__/__snapshots__/Region.test.tsx.snap b/packages/plus/src/components/EstimateCost/__tests__/__snapshots__/Region.test.tsx.snap index 30197a4c2d..9da8a41ac2 100644 --- a/packages/plus/src/components/EstimateCost/__tests__/__snapshots__/Region.test.tsx.snap +++ b/packages/plus/src/components/EstimateCost/__tests__/__snapshots__/Region.test.tsx.snap @@ -931,7 +931,7 @@ exports[`EstimateCost - Region > render region component 1`] = ` > @@ -984,7 +984,7 @@ exports[`EstimateCost - Region > render region component 1`] = ` > diff --git a/packages/plus/src/components/EstimateCost/__tests__/__snapshots__/Regular.test.tsx.snap b/packages/plus/src/components/EstimateCost/__tests__/__snapshots__/Regular.test.tsx.snap index 02dcc8dfa2..d14b16dbbb 100644 --- a/packages/plus/src/components/EstimateCost/__tests__/__snapshots__/Regular.test.tsx.snap +++ b/packages/plus/src/components/EstimateCost/__tests__/__snapshots__/Regular.test.tsx.snap @@ -897,7 +897,7 @@ exports[`EstimateCost - Regular Item > render basic props 1`] = ` > @@ -950,7 +950,7 @@ exports[`EstimateCost - Regular Item > render basic props 1`] = ` > @@ -2046,7 +2046,7 @@ exports[`EstimateCost - Regular Item > render basic props with is not defined 1` > @@ -2099,7 +2099,7 @@ exports[`EstimateCost - Regular Item > render basic props with is not defined 1` > @@ -3225,7 +3225,7 @@ exports[`EstimateCost - Regular Item > render basic props with long fractions di > @@ -3278,7 +3278,7 @@ exports[`EstimateCost - Regular Item > render basic props with long fractions di > @@ -4420,7 +4420,7 @@ exports[`EstimateCost - Regular Item > render basic props with maxPrice 1`] = ` > @@ -4473,7 +4473,7 @@ exports[`EstimateCost - Regular Item > render basic props with maxPrice 1`] = ` > @@ -5620,7 +5620,7 @@ exports[`EstimateCost - Regular Item > render basic props with maxPrice and long > @@ -5673,7 +5673,7 @@ exports[`EstimateCost - Regular Item > render basic props with maxPrice and long > @@ -6953,7 +6953,7 @@ exports[`EstimateCost - Regular Item > render basic props with overlay 1`] = ` > @@ -7013,7 +7013,7 @@ exports[`EstimateCost - Regular Item > render basic props with overlay 1`] = ` > @@ -8341,7 +8341,7 @@ exports[`EstimateCost - Regular Item > render basic props with overlay beta 1`] > @@ -8406,7 +8406,7 @@ exports[`EstimateCost - Regular Item > render basic props with overlay beta 1`] > @@ -9574,7 +9574,7 @@ exports[`EstimateCost - Regular Item > render basic props with sublabel 1`] = ` > @@ -9627,7 +9627,7 @@ exports[`EstimateCost - Regular Item > render basic props with sublabel 1`] = ` > @@ -10762,7 +10762,7 @@ exports[`EstimateCost - Regular Item > render basic props with textNotDefined 1` > @@ -10815,7 +10815,7 @@ exports[`EstimateCost - Regular Item > render basic props with textNotDefined 1` > @@ -11981,7 +11981,7 @@ exports[`EstimateCost - Regular Item > render basic with ellipsis 1`] = ` > @@ -12034,7 +12034,7 @@ exports[`EstimateCost - Regular Item > render basic with ellipsis 1`] = ` > @@ -13310,7 +13310,7 @@ exports[`EstimateCost - Regular Item > render with alert 1`] = ` > @@ -13353,7 +13353,7 @@ exports[`EstimateCost - Regular Item > render with alert 1`] = ` > @@ -13400,7 +13400,7 @@ exports[`EstimateCost - Regular Item > render with alert 1`] = ` > @@ -14509,7 +14509,7 @@ exports[`EstimateCost - Regular Item > render with isDisabledOnOverlay 1`] = ` > @@ -14562,7 +14562,7 @@ exports[`EstimateCost - Regular Item > render with isDisabledOnOverlay 1`] = ` > diff --git a/packages/plus/src/components/EstimateCost/__tests__/__snapshots__/Stepper.test.tsx.snap b/packages/plus/src/components/EstimateCost/__tests__/__snapshots__/Stepper.test.tsx.snap index b50b457f3e..b01005b5b0 100644 --- a/packages/plus/src/components/EstimateCost/__tests__/__snapshots__/Stepper.test.tsx.snap +++ b/packages/plus/src/components/EstimateCost/__tests__/__snapshots__/Stepper.test.tsx.snap @@ -1187,7 +1187,7 @@ exports[`EstimateCost - NumberInput Item > render basic props 1`] = ` > @@ -1240,7 +1240,7 @@ exports[`EstimateCost - NumberInput Item > render basic props 1`] = ` > @@ -2727,7 +2727,7 @@ exports[`EstimateCost - NumberInput Item > render basic with overlay 1`] = ` > @@ -2780,7 +2780,7 @@ exports[`EstimateCost - NumberInput Item > render basic with overlay 1`] = ` > @@ -4267,7 +4267,7 @@ exports[`EstimateCost - NumberInput Item > render with getAmountValue 1`] = ` > @@ -4320,7 +4320,7 @@ exports[`EstimateCost - NumberInput Item > render with getAmountValue 1`] = ` > @@ -5833,7 +5833,7 @@ exports[`EstimateCost - NumberInput Item > render with values 1`] = ` > @@ -5886,7 +5886,7 @@ exports[`EstimateCost - NumberInput Item > render with values 1`] = ` > diff --git a/packages/plus/src/components/EstimateCost/__tests__/__snapshots__/Strong.test.tsx.snap b/packages/plus/src/components/EstimateCost/__tests__/__snapshots__/Strong.test.tsx.snap index 28359dc61c..59c58c210a 100644 --- a/packages/plus/src/components/EstimateCost/__tests__/__snapshots__/Strong.test.tsx.snap +++ b/packages/plus/src/components/EstimateCost/__tests__/__snapshots__/Strong.test.tsx.snap @@ -921,7 +921,7 @@ exports[`EstimateCost - Strong Item > render basic props 1`] = ` > @@ -974,7 +974,7 @@ exports[`EstimateCost - Strong Item > render basic props 1`] = ` > @@ -2095,7 +2095,7 @@ exports[`EstimateCost - Strong Item > render with isDisabledOnOverlay 1`] = ` > @@ -2148,7 +2148,7 @@ exports[`EstimateCost - Strong Item > render with isDisabledOnOverlay 1`] = ` > @@ -3302,7 +3302,7 @@ exports[`EstimateCost - Strong Item > render with small variant 1`] = ` > @@ -3355,7 +3355,7 @@ exports[`EstimateCost - Strong Item > render with small variant 1`] = ` > diff --git a/packages/plus/src/components/EstimateCost/__tests__/__snapshots__/Unit.test.tsx.snap b/packages/plus/src/components/EstimateCost/__tests__/__snapshots__/Unit.test.tsx.snap index e174324c68..6337099557 100644 --- a/packages/plus/src/components/EstimateCost/__tests__/__snapshots__/Unit.test.tsx.snap +++ b/packages/plus/src/components/EstimateCost/__tests__/__snapshots__/Unit.test.tsx.snap @@ -1050,7 +1050,7 @@ exports[`EstimateCost - Unit Item > render basic props 1`] = ` > @@ -1103,7 +1103,7 @@ exports[`EstimateCost - Unit Item > render basic props 1`] = ` > @@ -3399,7 +3399,7 @@ exports[`EstimateCost - Unit Item > render basic props with monthly price 1`] = > @@ -3452,7 +3452,7 @@ exports[`EstimateCost - Unit Item > render basic props with monthly price 1`] = > @@ -5748,7 +5748,7 @@ exports[`EstimateCost - Unit Item > render basic props with overlay 1`] = ` > @@ -5801,7 +5801,7 @@ exports[`EstimateCost - Unit Item > render basic props with overlay 1`] = ` > @@ -8123,7 +8123,7 @@ exports[`EstimateCost - Unit Item > render basic props with values 1`] = ` > @@ -8176,7 +8176,7 @@ exports[`EstimateCost - Unit Item > render basic props with values 1`] = ` > @@ -10508,7 +10508,7 @@ exports[`EstimateCost - Unit Item > render basic props with values and no iterat > @@ -10561,7 +10561,7 @@ exports[`EstimateCost - Unit Item > render basic props with values and no iterat > @@ -12896,7 +12896,7 @@ exports[`EstimateCost - Unit Item > render test 1`] = ` > @@ -12949,7 +12949,7 @@ exports[`EstimateCost - Unit Item > render test 1`] = ` > @@ -15361,7 +15361,7 @@ exports[`EstimateCost - Unit Item > render with 0 amount 1`] = ` > @@ -15414,7 +15414,7 @@ exports[`EstimateCost - Unit Item > render with 0 amount 1`] = ` > @@ -15603,7 +15603,6 @@ exports[`EstimateCost - Unit Item > render with 0 amount 1`] = ` name="capacity" placeholder="00" type="number" - value="" />
render with 10 amount 1`] = ` > @@ -17775,7 +17774,7 @@ exports[`EstimateCost - Unit Item > render with 10 amount 1`] = ` > @@ -20076,7 +20075,7 @@ exports[`EstimateCost - Unit Item > render with getAmountValue 1`] = ` > @@ -20129,7 +20128,7 @@ exports[`EstimateCost - Unit Item > render with getAmountValue 1`] = ` > diff --git a/packages/plus/src/components/EstimateCost/__tests__/__snapshots__/Zone.test.tsx.snap b/packages/plus/src/components/EstimateCost/__tests__/__snapshots__/Zone.test.tsx.snap index d783d3c149..89f458b674 100644 --- a/packages/plus/src/components/EstimateCost/__tests__/__snapshots__/Zone.test.tsx.snap +++ b/packages/plus/src/components/EstimateCost/__tests__/__snapshots__/Zone.test.tsx.snap @@ -949,7 +949,7 @@ exports[`EstimateCost - Zone > render region component, with animation 1`] = ` > @@ -1002,7 +1002,7 @@ exports[`EstimateCost - Zone > render region component, with animation 1`] = ` > @@ -2171,7 +2171,7 @@ exports[`EstimateCost - Zone > render zone component 1`] = ` > @@ -2224,7 +2224,7 @@ exports[`EstimateCost - Zone > render zone component 1`] = ` > diff --git a/packages/plus/src/components/EstimateCost/__tests__/__snapshots__/index.test.tsx.snap b/packages/plus/src/components/EstimateCost/__tests__/__snapshots__/index.test.tsx.snap index 8d9a497b09..77cc563877 100644 --- a/packages/plus/src/components/EstimateCost/__tests__/__snapshots__/index.test.tsx.snap +++ b/packages/plus/src/components/EstimateCost/__tests__/__snapshots__/index.test.tsx.snap @@ -1000,7 +1000,7 @@ exports[`EstimateCost - index > render isBeta with discount 1`] = ` > @@ -1058,7 +1058,7 @@ exports[`EstimateCost - index > render isBeta with discount 1`] = ` > @@ -2302,7 +2302,7 @@ exports[`EstimateCost - index > render isBeta with discount equal to 100% 1`] = > @@ -2360,7 +2360,7 @@ exports[`EstimateCost - index > render isBeta with discount equal to 100% 1`] = > @@ -3604,7 +3604,7 @@ exports[`EstimateCost - index > render isBeta with discount more than 100% 1`] = > @@ -3662,7 +3662,7 @@ exports[`EstimateCost - index > render isBeta with discount more than 100% 1`] = > @@ -4906,7 +4906,7 @@ exports[`EstimateCost - index > render isBeta without discount 1`] = ` > @@ -4964,7 +4964,7 @@ exports[`EstimateCost - index > render isBeta without discount 1`] = ` > @@ -6124,7 +6124,7 @@ exports[`EstimateCost - index > render with all timeUnits values 1`] = ` > @@ -6177,7 +6177,7 @@ exports[`EstimateCost - index > render with all timeUnits values 1`] = ` > @@ -8122,7 +8122,7 @@ exports[`EstimateCost - index > render with commitmentFees 1`] = ` > @@ -8175,7 +8175,7 @@ exports[`EstimateCost - index > render with commitmentFees 1`] = ` > @@ -10136,7 +10136,7 @@ exports[`EstimateCost - index > render with commitmentFees and iscommitmentFeesC > @@ -10189,7 +10189,7 @@ exports[`EstimateCost - index > render with commitmentFees and iscommitmentFeesC > @@ -12219,7 +12219,7 @@ exports[`EstimateCost - index > render with description as node 1`] = ` > @@ -12270,7 +12270,7 @@ exports[`EstimateCost - index > render with description as node 1`] = ` > @@ -13424,7 +13424,7 @@ exports[`EstimateCost - index > render with discount 0 and defaultTimeUnit month > @@ -13477,7 +13477,7 @@ exports[`EstimateCost - index > render with discount 0 and defaultTimeUnit month > @@ -15491,7 +15491,7 @@ exports[`EstimateCost - index > render with discount 0.5 and defaultTimeUnit mon > @@ -15544,7 +15544,7 @@ exports[`EstimateCost - index > render with discount 0.5 and defaultTimeUnit mon > @@ -16698,7 +16698,7 @@ exports[`EstimateCost - index > render with discount 1 and defaultTimeUnit month > @@ -16751,7 +16751,7 @@ exports[`EstimateCost - index > render with discount 1 and defaultTimeUnit month > @@ -17989,7 +17989,7 @@ exports[`EstimateCost - index > render with discount 1, isBeta and defaultTimeUn > @@ -18047,7 +18047,7 @@ exports[`EstimateCost - index > render with discount 1, isBeta and defaultTimeUn > @@ -19207,7 +19207,7 @@ exports[`EstimateCost - index > render with discount 100% but no isBeta 1`] = ` > @@ -19260,7 +19260,7 @@ exports[`EstimateCost - index > render with discount 100% but no isBeta 1`] = ` > @@ -20388,7 +20388,7 @@ exports[`EstimateCost - index > render with hideTimeUnit 1`] = ` > @@ -22199,7 +22199,7 @@ exports[`EstimateCost - index > render with hideTotal 1`] = ` > @@ -22252,7 +22252,7 @@ exports[`EstimateCost - index > render with hideTotal 1`] = ` > @@ -23457,7 +23457,7 @@ exports[`EstimateCost - index > render with isBeta but undefined discount 1`] = > @@ -23515,7 +23515,7 @@ exports[`EstimateCost - index > render with isBeta but undefined discount 1`] = > @@ -25703,7 +25703,7 @@ exports[`EstimateCost - index > render with isBeta, discount 0 and defaultTimeUn > @@ -25761,7 +25761,7 @@ exports[`EstimateCost - index > render with isBeta, discount 0 and defaultTimeUn > @@ -27939,7 +27939,7 @@ exports[`EstimateCost - index > render with isBeta, discount 0.5 and defaultTime > @@ -27997,7 +27997,7 @@ exports[`EstimateCost - index > render with isBeta, discount 0.5 and defaultTime > @@ -29236,7 +29236,7 @@ exports[`EstimateCost - index > render with isBeta, price, discount 50% 1`] = ` > @@ -29294,7 +29294,7 @@ exports[`EstimateCost - index > render with isBeta, price, discount 50% 1`] = ` > @@ -30454,7 +30454,7 @@ exports[`EstimateCost - index > render with item discount 50% 1`] = ` > @@ -30507,7 +30507,7 @@ exports[`EstimateCost - index > render with item discount 50% 1`] = ` > @@ -31661,7 +31661,7 @@ exports[`EstimateCost - index > render with item discount 50% and defaultTimeUni > @@ -31714,7 +31714,7 @@ exports[`EstimateCost - index > render with item discount 50% and defaultTimeUni > @@ -32912,7 +32912,7 @@ exports[`EstimateCost - index > render with item discount 50% and text 1`] = ` > @@ -32965,7 +32965,7 @@ exports[`EstimateCost - index > render with item discount 50% and text 1`] = ` > diff --git a/packages/plus/src/components/EstimateCost/types.ts b/packages/plus/src/components/EstimateCost/types.ts index 26b49d4af6..bc18a583c1 100644 --- a/packages/plus/src/components/EstimateCost/types.ts +++ b/packages/plus/src/components/EstimateCost/types.ts @@ -1,5 +1,5 @@ import type { Alert } from '@ultraviolet/ui' -import type { ComponentProps, ReactNode } from 'react' +import type { ComponentProps, JSX, ReactNode } from 'react' import type EstimateCostLocales from './locales/en' export type EstimateCostProps = { diff --git a/packages/plus/src/components/Navigation/Footer.tsx b/packages/plus/src/components/Navigation/Footer.tsx index 1cebeb7462..83d662631c 100644 --- a/packages/plus/src/components/Navigation/Footer.tsx +++ b/packages/plus/src/components/Navigation/Footer.tsx @@ -25,7 +25,7 @@ const StickyFooter = styled.div` type FooterProps = { onToggleExpand: NavigationProps['onToggleExpand'] - contentRef: RefObject + contentRef: RefObject } export const Footer = ({ onToggleExpand, contentRef }: FooterProps) => { diff --git a/packages/plus/src/components/Navigation/NavigationContent.tsx b/packages/plus/src/components/Navigation/NavigationContent.tsx index fb6b42764c..91eb7aa193 100644 --- a/packages/plus/src/components/Navigation/NavigationContent.tsx +++ b/packages/plus/src/components/Navigation/NavigationContent.tsx @@ -116,8 +116,8 @@ export const NavigationContent = ({ shouldAnimate, } = context - const sliderRef = useRef(null) - const contentRef = useRef(null) + const sliderRef = useRef(null) + const contentRef = useRef(null) // It will handle the resize of the navigation when the user drag the vertical bar useEffect(() => { diff --git a/packages/plus/src/components/Navigation/NavigationProvider.tsx b/packages/plus/src/components/Navigation/NavigationProvider.tsx index 442dc76c5b..6a47b51734 100644 --- a/packages/plus/src/components/Navigation/NavigationProvider.tsx +++ b/packages/plus/src/components/Navigation/NavigationProvider.tsx @@ -1,4 +1,4 @@ -import type { Dispatch, ReactNode, Reducer, RefObject } from 'react' +import type { Dispatch, ReactNode, RefObject } from 'react' import { createContext, useCallback, @@ -33,7 +33,7 @@ type ContextProps = { unpinItem: (item: string) => string[] pinnedItems: string[] pinLimit: number - navigationRef: RefObject + navigationRef: RefObject locales: Record width: number setWidth: (width: number) => void @@ -156,14 +156,14 @@ export const NavigationProvider = ({ // This is used to store the items that are registered in the navigation // This way we can retrieve items with their active state in pinned feature - const [items, registerItem] = useReducer>( + const [items, registerItem] = useReducer( (oldState: Items, newState: Items) => ({ ...oldState, ...newState, }), {}, ) - const navigationRef = useRef(null) + const navigationRef = useRef(null) // This function will be triggered when expand/collapse button is clicked const toggleExpand = useCallback( diff --git a/packages/plus/src/components/Navigation/__tests__/__snapshots__/index.test.tsx.snap b/packages/plus/src/components/Navigation/__tests__/__snapshots__/index.test.tsx.snap index b9cd052ede..d8cdc25b61 100644 --- a/packages/plus/src/components/Navigation/__tests__/__snapshots__/index.test.tsx.snap +++ b/packages/plus/src/components/Navigation/__tests__/__snapshots__/index.test.tsx.snap @@ -1726,7 +1726,7 @@ exports[`Navigation > click on expand / collapse button 1`] = ` > @@ -1916,14 +1916,14 @@ exports[`Navigation > click on expand / collapse button 1`] = `
@@ -4779,7 +4779,7 @@ exports[`Navigation > pin and unpin an item 1`] = ` > @@ -4969,14 +4969,14 @@ exports[`Navigation > pin and unpin an item 1`] = ` @@ -6753,7 +6753,7 @@ exports[`Navigation > pin and unpin an item 2`] = ` > @@ -6943,14 +6943,14 @@ exports[`Navigation > pin and unpin an item 2`] = ` @@ -8722,7 +8722,7 @@ exports[`Navigation > pin and unpin an item 3`] = ` > @@ -8796,13 +8796,13 @@ exports[`Navigation > pin and unpin an item 3`] = ` @@ -8977,13 +8977,13 @@ exports[`Navigation > pin and unpin an item 3`] = ` @@ -9946,7 +9946,7 @@ exports[`Navigation > render with basic content 1`] = ` > @@ -10136,14 +10136,14 @@ exports[`Navigation > render with basic content 1`] = ` @@ -12811,7 +12811,7 @@ exports[`Navigation > resize manually the navigation using slider 1`] = ` > @@ -13001,14 +13001,14 @@ exports[`Navigation > resize manually the navigation using slider 1`] = ` diff --git a/packages/ui/src/components/Alert/__tests__/__snapshots__/index.test.tsx.snap b/packages/ui/src/components/Alert/__tests__/__snapshots__/index.test.tsx.snap index c782a95b92..7c21d5e37a 100644 --- a/packages/ui/src/components/Alert/__tests__/__snapshots__/index.test.tsx.snap +++ b/packages/ui/src/components/Alert/__tests__/__snapshots__/index.test.tsx.snap @@ -158,7 +158,7 @@ exports[`Alert > renders correctly with all sentiments > renders correctly senti > @@ -336,7 +336,7 @@ exports[`Alert > renders correctly with all sentiments > renders correctly senti > @@ -510,17 +510,13 @@ exports[`Alert > renders correctly with all sentiments > renders correctly senti -
renders correctly with all sentiments > renders correctly senti > @@ -875,7 +871,7 @@ exports[`Alert > renders correctly with all sentiments > renders correctly senti > @@ -1108,7 +1104,7 @@ exports[`Alert > renders correctly with buttonText and onClickButton 1`] = ` > @@ -1281,7 +1277,7 @@ exports[`Alert > renders correctly with children as component 1`] = ` > @@ -1528,7 +1524,7 @@ exports[`Alert > renders correctly with closable and onClose 1`] = ` > @@ -1721,7 +1717,7 @@ exports[`Alert > renders correctly with default values 1`] = ` > @@ -2083,7 +2079,7 @@ exports[`Alert > renders correctly with disabled 1`] = ` > @@ -2280,7 +2276,7 @@ exports[`Alert > renders correctly with title 1`] = ` > diff --git a/packages/ui/src/components/Avatar/__tests__/__snapshots__/index.test.tsx.snap b/packages/ui/src/components/Avatar/__tests__/__snapshots__/index.test.tsx.snap index d521928417..90c0bddef3 100644 --- a/packages/ui/src/components/Avatar/__tests__/__snapshots__/index.test.tsx.snap +++ b/packages/ui/src/components/Avatar/__tests__/__snapshots__/index.test.tsx.snap @@ -174,7 +174,7 @@ exports[`Avatar > renders correctly with lock 1`] = ` > diff --git a/packages/ui/src/components/AvatarV2/__tests__/__snapshots__/index.test.tsx.snap b/packages/ui/src/components/AvatarV2/__tests__/__snapshots__/index.test.tsx.snap index 3b381ff20d..595b0c5e6d 100644 --- a/packages/ui/src/components/AvatarV2/__tests__/__snapshots__/index.test.tsx.snap +++ b/packages/ui/src/components/AvatarV2/__tests__/__snapshots__/index.test.tsx.snap @@ -219,9 +219,7 @@ exports[`AvatarV2 > renders correctly with shape circle > renders correctly with xmlns="http://www.w3.org/2000/svg" >
@@ -362,9 +360,7 @@ exports[`AvatarV2 > renders correctly with shape circle > renders correctly with xmlns="http://www.w3.org/2000/svg" > @@ -958,10 +954,10 @@ exports[`AvatarV2 > renders correctly with shape circle > renders correctly with xmlns="http://www.w3.org/2000/svg" > @@ -1394,9 +1390,7 @@ exports[`AvatarV2 > renders correctly with shape circle > renders correctly with xmlns="http://www.w3.org/2000/svg" > @@ -1537,9 +1531,7 @@ exports[`AvatarV2 > renders correctly with shape circle > renders correctly with xmlns="http://www.w3.org/2000/svg" > @@ -2133,10 +2125,10 @@ exports[`AvatarV2 > renders correctly with shape circle > renders correctly with xmlns="http://www.w3.org/2000/svg" > @@ -2583,9 +2575,7 @@ exports[`AvatarV2 > renders correctly with shape circle > renders correctly with xmlns="http://www.w3.org/2000/svg" > @@ -2726,9 +2716,7 @@ exports[`AvatarV2 > renders correctly with shape circle > renders correctly with xmlns="http://www.w3.org/2000/svg" > @@ -3322,10 +3310,10 @@ exports[`AvatarV2 > renders correctly with shape circle > renders correctly with xmlns="http://www.w3.org/2000/svg" > @@ -4379,10 +4367,10 @@ exports[`AvatarV2 > renders correctly with shape circle > renders correctly with xmlns="http://www.w3.org/2000/svg" > @@ -4907,9 +4895,7 @@ exports[`AvatarV2 > renders correctly with shape square > renders correctly with xmlns="http://www.w3.org/2000/svg" > @@ -5096,9 +5082,7 @@ exports[`AvatarV2 > renders correctly with shape square > renders correctly with xmlns="http://www.w3.org/2000/svg" > @@ -5796,10 +5780,10 @@ exports[`AvatarV2 > renders correctly with shape square > renders correctly with xmlns="http://www.w3.org/2000/svg" > @@ -6370,9 +6354,7 @@ exports[`AvatarV2 > renders correctly with shape square > renders correctly with xmlns="http://www.w3.org/2000/svg" > @@ -6559,9 +6541,7 @@ exports[`AvatarV2 > renders correctly with shape square > renders correctly with xmlns="http://www.w3.org/2000/svg" > @@ -7259,10 +7239,10 @@ exports[`AvatarV2 > renders correctly with shape square > renders correctly with xmlns="http://www.w3.org/2000/svg" > @@ -7847,9 +7827,7 @@ exports[`AvatarV2 > renders correctly with shape square > renders correctly with xmlns="http://www.w3.org/2000/svg" > @@ -8036,9 +8014,7 @@ exports[`AvatarV2 > renders correctly with shape square > renders correctly with xmlns="http://www.w3.org/2000/svg" > @@ -8736,10 +8712,10 @@ exports[`AvatarV2 > renders correctly with shape square > renders correctly with xmlns="http://www.w3.org/2000/svg" > @@ -10195,10 +10171,10 @@ exports[`AvatarV2 > renders correctly with shape square > renders correctly with xmlns="http://www.w3.org/2000/svg" > diff --git a/packages/ui/src/components/Banner/__tests__/__snapshots__/index.test.tsx.snap b/packages/ui/src/components/Banner/__tests__/__snapshots__/index.test.tsx.snap index a0fc1fc19c..808f50bb23 100644 --- a/packages/ui/src/components/Banner/__tests__/__snapshots__/index.test.tsx.snap +++ b/packages/ui/src/components/Banner/__tests__/__snapshots__/index.test.tsx.snap @@ -656,14 +656,10 @@ exports[`Banner > renders correctly with a link 1`] = ` xmlns="http://www.w3.org/2000/svg" > diff --git a/packages/ui/src/components/Checkbox/__tests__/__snapshots__/index.test.tsx.snap b/packages/ui/src/components/Checkbox/__tests__/__snapshots__/index.test.tsx.snap index c702be09f5..063c0b85ba 100644 --- a/packages/ui/src/components/Checkbox/__tests__/__snapshots__/index.test.tsx.snap +++ b/packages/ui/src/components/Checkbox/__tests__/__snapshots__/index.test.tsx.snap @@ -306,7 +306,6 @@ exports[`Checkbox > renders correctly 1`] = ` id=":r0:" name="testing" type="checkbox" - value="" /> renders correctly checked 1`] = ` class="emotion-2 emotion-3" id=":re:" type="checkbox" - value="" /> renders correctly checked and disabled 1`] = ` disabled="" id=":ro:" type="checkbox" - value="" /> renders correctly checked with helper 1`] = ` class="emotion-2 emotion-3" id=":rh:" type="checkbox" - value="" /> renders correctly disabled 1`] = ` disabled="" id=":r5:" type="checkbox" - value="" /> renders correctly indeterminate 1`] = ` class="emotion-2 emotion-3" id=":rl:" type="checkbox" - value="" /> renders correctly indeterminate and disabled 1`] = ` disabled="" id=":rr:" type="checkbox" - value="" /> renders correctly invisible 1`] = ` class="emotion-2 emotion-3" id=":ru:" type="checkbox" - value="" /> renders correctly no child 1`] = ` class="emotion-2 emotion-3" id=":r3:" type="checkbox" - value="" /> renders correctly required 1`] = ` id=":r8:" required="" type="checkbox" - value="" /> renders correctly with an error 1`] = ` class="emotion-2 emotion-3" id=":r11:" type="checkbox" - value="" /> renders correctly with indeterminate state 1`] = ` class="emotion-2 emotion-3" id=":r1j:" type="checkbox" - value="" /> renders correctly with progress 1`] = ` class="emotion-7 emotion-8" id=":r15:" type="checkbox" - value="" />
renders correctly with progress and no child 1`] = ` class="emotion-7 emotion-8" id=":r18:" type="checkbox" - value="" />
renders correctly with tooltip 1`] = ` class="emotion-4 emotion-5" id=":rb:" type="checkbox" - value="" /> render correctly with showMonthYearPicker 1`] = ` data-size="large" id=":ra6:" type="text" - value="" />
renders correctly disabled 1`] = ` disabled="" id=":r5:" type="text" - value="" />
renders correctly error 1`] = ` data-size="large" id=":rd:" type="text" - value="" />
renders correctly error disabled 1`] = ` disabled="" id=":ri:" type="text" - value="" />
renders correctly error disabled required 1`] = ` id=":rn:" required="" type="text" - value="" />
renders correctly min-max 1`] = ` data-size="large" id=":rs:" type="text" - value="" />
renders correctly required 1`] = ` id=":r9:" required="" type="text" - value="" />
renders correctly with date-fns locale es 1`] = ` data-size="large" id=":r42:" type="text" - value="" />
renders correctly with date-fns locale fr 1`] = ` data-size="large" id=":r10:" type="text" - value="" />
renders correctly with date-fns locale ru 1`] = ` data-size="large" id=":r74:" type="text" - value="" />
renders correctly when data is async 1`] = ` id=":r1u:" name="lineChartMultiple1" type="checkbox" - value="" /> renders correctly when data is async 1`] = ` id=":r25:" name="lineChartMultiple2" type="checkbox" - value="" /> renders correctly when data is async 1`] = ` id=":r2c:" name="lineChartMultiple3" type="checkbox" - value="" /> renders correctly when legend is deselected 1`] = ` id=":r1j:" name="lineChartSerie" type="checkbox" - value="" /> renders correctly with detailed legend 1`] = ` id=":r4:" name="lineChartSerie" type="checkbox" - value="" /> renders correctly with multiple series 1`] = ` id=":rq:" name="lineChartMultiple1" type="checkbox" - value="" /> renders correctly with multiple series 1`] = ` id=":r11:" name="lineChartMultiple2" type="checkbox" - value="" /> renders correctly with multiple series 1`] = ` id=":r18:" name="lineChartMultiple3" type="checkbox" - value="" /> renders correctly with timeline data 1`] = ` id=":rf:" name="lineChartHours" type="checkbox" - value="" /> render correctly with href props 2`] = ` xmlns="http://www.w3.org/2000/svg" > @@ -787,14 +783,10 @@ exports[`Link > render correctly with href props 2`] = ` xmlns="http://www.w3.org/2000/svg" > @@ -1337,14 +1329,10 @@ exports[`Link > render correctly with target blank 1`] = ` xmlns="http://www.w3.org/2000/svg" > diff --git a/packages/ui/src/components/List/__tests__/index.test.tsx b/packages/ui/src/components/List/__tests__/index.test.tsx index 8aebe5ff41..1f25d239c0 100644 --- a/packages/ui/src/components/List/__tests__/index.test.tsx +++ b/packages/ui/src/components/List/__tests__/index.test.tsx @@ -56,10 +56,11 @@ describe('List', () => { afterEach(() => { vi.spyOn(global.Math, 'random').mockRestore() }) - test('Should throw an error', () => { + test.skip('Should throw an error', () => { const consoleErrMock = vi .spyOn(console, 'error') .mockImplementation(() => {}) + expect(() => { renderWithTheme( data.map(({ id, columnA, columnB, columnC, columnD, columnE }) => ( @@ -73,6 +74,7 @@ describe('List', () => { )), ) }).toThrow() + expect(consoleErrMock).toHaveBeenCalled() consoleErrMock.mockRestore() }) diff --git a/packages/ui/src/components/Modal/__stories__/AutoFocus.stories.tsx b/packages/ui/src/components/Modal/__stories__/AutoFocus.stories.tsx index c2c2519c27..d853dc9e67 100644 --- a/packages/ui/src/components/Modal/__stories__/AutoFocus.stories.tsx +++ b/packages/ui/src/components/Modal/__stories__/AutoFocus.stories.tsx @@ -12,7 +12,11 @@ export const AutoFocus: StoryFn = props => ( setTimeout(() => ref?.focus(), 1)} + ref={ref => { + if (ref) { + setTimeout(() => ref?.focus(), 1) + } + }} />
diff --git a/packages/ui/src/components/NumberInputV2/__stories__/MinMax.stories.tsx b/packages/ui/src/components/NumberInputV2/__stories__/MinMax.stories.tsx index 4d0961726e..596791f444 100644 --- a/packages/ui/src/components/NumberInputV2/__stories__/MinMax.stories.tsx +++ b/packages/ui/src/components/NumberInputV2/__stories__/MinMax.stories.tsx @@ -1,14 +1,15 @@ import type { StoryFn } from '@storybook/react' import { useState } from 'react' -import type { NumberInputV2 } from '../index' -import { Template } from './Template.stories' +import { NumberInputV2 } from '..' -export const MinMax: StoryFn = args => { +export const Template: StoryFn = props => { const [value, setValue] = useState(10) - return