From bdcbd3c9d7adb9cf65b2ed95fa2d77fcae5428b7 Mon Sep 17 00:00:00 2001 From: Robbert Broersma Date: Sun, 17 Nov 2024 19:33:46 +0100 Subject: [PATCH 1/8] feat: create demo app with Preact --- apps/preact/index.html | 88 +++ apps/preact/package.json | 25 + package.json | 1 + pnpm-lock.yaml | 1161 +++++++++++--------------------------- pnpm-workspace.yaml | 1 + 5 files changed, 447 insertions(+), 829 deletions(-) create mode 100644 apps/preact/index.html create mode 100644 apps/preact/package.json diff --git a/apps/preact/index.html b/apps/preact/index.html new file mode 100644 index 00000000000..554349f76e2 --- /dev/null +++ b/apps/preact/index.html @@ -0,0 +1,88 @@ + + + + + React component library + + + +

React components rendered with Preact

+

This example uses ES Modules and import maps.

+
+ + + + diff --git a/apps/preact/package.json b/apps/preact/package.json new file mode 100644 index 00000000000..62db78ce000 --- /dev/null +++ b/apps/preact/package.json @@ -0,0 +1,25 @@ +{ + "name": "@utrecht/preact-app", + "version": "1.0.0", + "author": "Community for NL Design System", + "description": "Component library bundle for the Municipality of Utrecht based on the NL Design System architecture", + "license": "EUPL-1.2", + "main": "index.js", + "scripts": { + "start": "http-server ." + }, + "dependencies": { + "@utrecht/button-react": "workspace:*", + "@utrecht/component-library-react": "workspace:*", + "@utrecht/design-tokens": "workspace:*", + "preact": "10.24.3" + }, + "devDependencies": { + "http-server": "14.1.1" + }, + "repository": { + "type": "git+ssh", + "url": "git@github.com:nl-design-system/utrecht.git", + "directory": "apps/preact" + } +} diff --git a/package.json b/package.json index 8de008892f0..1bd985cd6fa 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ ], "private": true, "workspaces": [ + "./apps/*", "./documentation/", "./components/", "./components/*/", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5b00ac01010..5a0ef1171a6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -119,6 +119,25 @@ importers: specifier: 4.9.5 version: 4.9.5 + apps/preact: + dependencies: + '@utrecht/button-react': + specifier: workspace:* + version: link:../../packages/components-react/button-react + '@utrecht/component-library-react': + specifier: workspace:* + version: link:../../packages/component-library-react + '@utrecht/design-tokens': + specifier: workspace:* + version: link:../../proprietary/design-tokens + preact: + specifier: 10.24.3 + version: 10.24.3 + devDependencies: + http-server: + specifier: 14.1.1 + version: 14.1.1 + components/accordion: devDependencies: '@utrecht/build-utils-css': @@ -991,6 +1010,51 @@ importers: specifier: 1.69.5 version: 1.69.5 + packages/build-utils-react: + devDependencies: + '@babel/plugin-transform-runtime': + specifier: 7.24.7 + version: 7.24.7(@babel/core@7.24.7) + '@babel/preset-react': + specifier: 7.24.7 + version: 7.24.7(@babel/core@7.24.7) + '@rollup/plugin-babel': + specifier: 6.0.4 + version: 6.0.4(@babel/core@7.24.7)(@types/babel__core@7.20.5)(rollup@4.23.0) + '@rollup/plugin-commonjs': + specifier: 26.0.1 + version: 26.0.1(rollup@4.23.0) + '@rollup/plugin-json': + specifier: 6.1.0 + version: 6.1.0(rollup@4.23.0) + '@rollup/plugin-node-resolve': + specifier: 15.2.3 + version: 15.2.3(rollup@4.23.0) + '@rollup/plugin-typescript': + specifier: 12.1.0 + version: 12.1.0(rollup@4.23.0)(tslib@2.6.2)(typescript@5.6.2) + rollup: + specifier: 4.23.0 + version: 4.23.0 + rollup-plugin-filesize: + specifier: 10.0.0 + version: 10.0.0 + rollup-plugin-node-externals: + specifier: 7.1.2 + version: 7.1.2(rollup@4.23.0) + rollup-plugin-peer-deps-external: + specifier: 2.2.4 + version: 2.2.4(rollup@4.23.0) + rollup-plugin-postcss: + specifier: 4.0.2 + version: 4.0.2(postcss@8.4.38)(ts-node@10.9.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/node@22.7.4)(typescript@5.6.2)) + rollup-plugin-typescript2: + specifier: 0.36.0 + version: 0.36.0(rollup@4.23.0)(typescript@5.6.2) + typescript: + specifier: 5.6.2 + version: 5.6.2 + packages/component-library-angular: dependencies: tslib: @@ -2296,33 +2360,6 @@ importers: specifier: '18' version: 18.3.1(react@18.3.1) devDependencies: - '@babel/plugin-transform-runtime': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-env': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-react': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-typescript': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@rollup/plugin-babel': - specifier: 6.0.4 - version: 6.0.4(@babel/core@7.24.7)(@types/babel__core@7.20.5)(rollup@4.23.0) - '@rollup/plugin-commonjs': - specifier: 26.0.1 - version: 26.0.1(rollup@4.23.0) - '@rollup/plugin-json': - specifier: 6.1.0 - version: 6.1.0(rollup@4.23.0) - '@rollup/plugin-node-resolve': - specifier: 15.2.3 - version: 15.2.3(rollup@4.23.0) - '@rollup/plugin-typescript': - specifier: 12.1.0 - version: 12.1.0(rollup@4.23.0)(tslib@2.6.2)(typescript@5.6.2) '@testing-library/dom': specifier: 8.20.1 version: 8.20.1 @@ -2344,6 +2381,9 @@ importers: '@types/testing-library__jest-dom': specifier: 5.14.9 version: 5.14.9 + '@utrecht/build-utils-react': + specifier: workspace:* + version: link:../../build-utils-react '@utrecht/button-css': specifier: workspace:* version: link:../../../components/button @@ -2359,18 +2399,6 @@ importers: rollup: specifier: 4.23.0 version: 4.23.0 - rollup-plugin-filesize: - specifier: 10.0.0 - version: 10.0.0 - rollup-plugin-node-externals: - specifier: 7.1.2 - version: 7.1.2(rollup@4.23.0) - rollup-plugin-peer-deps-external: - specifier: 2.2.4 - version: 2.2.4(rollup@4.23.0) - rollup-plugin-postcss: - specifier: 4.0.2 - version: 4.0.2(postcss@8.4.38)(ts-node@10.9.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/node@22.7.4)(typescript@5.6.2)) typescript: specifier: 5.6.2 version: 5.6.2 @@ -2392,34 +2420,13 @@ importers: date-fns: specifier: 2.30.0 version: 2.30.0 - lodash.chunk: - specifier: 4.2.0 - version: 4.2.0 + lodash-es: + specifier: 4.17.21 + version: 4.17.21 react-dom: specifier: '18' version: 18.3.1(react@18.3.1) devDependencies: - '@babel/plugin-transform-runtime': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-react': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@rollup/plugin-babel': - specifier: 6.0.4 - version: 6.0.4(@babel/core@7.24.7)(@types/babel__core@7.20.5)(rollup@4.23.0) - '@rollup/plugin-commonjs': - specifier: 26.0.1 - version: 26.0.1(rollup@4.23.0) - '@rollup/plugin-json': - specifier: 6.1.0 - version: 6.1.0(rollup@4.23.0) - '@rollup/plugin-node-resolve': - specifier: 15.2.3 - version: 15.2.3(rollup@4.23.0) - '@rollup/plugin-typescript': - specifier: 12.1.0 - version: 12.1.0(rollup@4.23.0)(tslib@2.6.2)(typescript@5.6.2) '@testing-library/dom': specifier: 8.20.1 version: 8.20.1 @@ -2435,15 +2442,18 @@ importers: '@types/jest': specifier: 29.5.13 version: 29.5.13 - '@types/lodash.chunk': - specifier: 4.2.9 - version: 4.2.9 + '@types/lodash-es': + specifier: 4.17.12 + version: 4.17.12 '@types/react': specifier: 18.3.3 version: 18.3.3 '@types/testing-library__jest-dom': specifier: 5.14.9 version: 5.14.9 + '@utrecht/build-utils-react': + specifier: workspace:* + version: link:../../build-utils-react jest: specifier: 29.7.0 version: 29.7.0(@types/node@22.7.4)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/node@22.7.4)(typescript@5.6.2)) @@ -2456,21 +2466,6 @@ importers: rollup: specifier: 4.23.0 version: 4.23.0 - rollup-plugin-filesize: - specifier: 10.0.0 - version: 10.0.0 - rollup-plugin-node-externals: - specifier: 7.1.2 - version: 7.1.2(rollup@4.23.0) - rollup-plugin-peer-deps-external: - specifier: 2.2.4 - version: 2.2.4(rollup@4.23.0) - rollup-plugin-postcss: - specifier: 4.0.2 - version: 4.0.2(postcss@8.4.38)(ts-node@10.9.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/node@22.7.4)(typescript@5.6.2)) - rollup-plugin-typescript2: - specifier: 0.36.0 - version: 0.36.0(rollup@4.23.0)(typescript@5.6.2) typescript: specifier: 5.6.2 version: 5.6.2 @@ -2505,33 +2500,6 @@ importers: specifier: '18' version: 18.3.1(react@18.3.1) devDependencies: - '@babel/plugin-transform-runtime': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-env': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-react': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-typescript': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@rollup/plugin-babel': - specifier: 6.0.4 - version: 6.0.4(@babel/core@7.24.7)(@types/babel__core@7.20.5)(rollup@4.23.0) - '@rollup/plugin-commonjs': - specifier: 26.0.1 - version: 26.0.1(rollup@4.23.0) - '@rollup/plugin-json': - specifier: 6.1.0 - version: 6.1.0(rollup@4.23.0) - '@rollup/plugin-node-resolve': - specifier: 15.2.3 - version: 15.2.3(rollup@4.23.0) - '@rollup/plugin-typescript': - specifier: 12.1.0 - version: 12.1.0(rollup@4.23.0)(tslib@2.6.2)(typescript@5.6.2) '@testing-library/dom': specifier: 8.20.1 version: 8.20.1 @@ -2553,6 +2521,9 @@ importers: '@types/testing-library__jest-dom': specifier: 5.14.9 version: 5.14.9 + '@utrecht/build-utils-react': + specifier: workspace:* + version: link:../../build-utils-react '@utrecht/form-field-css': specifier: workspace:* version: link:../../../components/form-field @@ -2568,18 +2539,6 @@ importers: rollup: specifier: 4.23.0 version: 4.23.0 - rollup-plugin-filesize: - specifier: 10.0.0 - version: 10.0.0 - rollup-plugin-node-externals: - specifier: 7.1.2 - version: 7.1.2(rollup@4.23.0) - rollup-plugin-peer-deps-external: - specifier: 2.2.4 - version: 2.2.4(rollup@4.23.0) - rollup-plugin-postcss: - specifier: 4.0.2 - version: 4.0.2(postcss@8.4.38)(ts-node@10.9.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/node@22.7.4)(typescript@5.6.2)) typescript: specifier: 5.6.2 version: 5.6.2 @@ -2596,33 +2555,6 @@ importers: specifier: '18' version: 18.3.1(react@18.3.1) devDependencies: - '@babel/plugin-transform-runtime': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-env': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-react': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-typescript': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@rollup/plugin-babel': - specifier: 6.0.4 - version: 6.0.4(@babel/core@7.24.7)(@types/babel__core@7.20.5)(rollup@4.23.0) - '@rollup/plugin-commonjs': - specifier: 26.0.1 - version: 26.0.1(rollup@4.23.0) - '@rollup/plugin-json': - specifier: 6.1.0 - version: 6.1.0(rollup@4.23.0) - '@rollup/plugin-node-resolve': - specifier: 15.2.3 - version: 15.2.3(rollup@4.23.0) - '@rollup/plugin-typescript': - specifier: 12.1.0 - version: 12.1.0(rollup@4.23.0)(tslib@2.6.2)(typescript@5.6.2) '@testing-library/dom': specifier: 8.20.1 version: 8.20.1 @@ -2644,6 +2576,9 @@ importers: '@types/testing-library__jest-dom': specifier: 5.14.9 version: 5.14.9 + '@utrecht/build-utils-react': + specifier: workspace:* + version: link:../../build-utils-react '@utrecht/checkbox-css': specifier: workspace:* version: link:../../../components/checkbox @@ -2662,18 +2597,6 @@ importers: rollup: specifier: 4.23.0 version: 4.23.0 - rollup-plugin-filesize: - specifier: 10.0.0 - version: 10.0.0 - rollup-plugin-node-externals: - specifier: 7.1.2 - version: 7.1.2(rollup@4.23.0) - rollup-plugin-peer-deps-external: - specifier: 2.2.4 - version: 2.2.4(rollup@4.23.0) - rollup-plugin-postcss: - specifier: 4.0.2 - version: 4.0.2(postcss@8.4.38)(ts-node@10.9.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/node@22.7.4)(typescript@5.6.2)) typescript: specifier: 5.6.2 version: 5.6.2 @@ -2690,33 +2613,6 @@ importers: specifier: '18' version: 18.3.1(react@18.3.1) devDependencies: - '@babel/plugin-transform-runtime': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-env': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-react': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-typescript': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@rollup/plugin-babel': - specifier: 6.0.4 - version: 6.0.4(@babel/core@7.24.7)(@types/babel__core@7.20.5)(rollup@4.23.0) - '@rollup/plugin-commonjs': - specifier: 26.0.1 - version: 26.0.1(rollup@4.23.0) - '@rollup/plugin-json': - specifier: 6.1.0 - version: 6.1.0(rollup@4.23.0) - '@rollup/plugin-node-resolve': - specifier: 15.2.3 - version: 15.2.3(rollup@4.23.0) - '@rollup/plugin-typescript': - specifier: 12.1.0 - version: 12.1.0(rollup@4.23.0)(tslib@2.6.2)(typescript@5.6.2) '@testing-library/dom': specifier: 8.20.1 version: 8.20.1 @@ -2738,6 +2634,9 @@ importers: '@types/testing-library__jest-dom': specifier: 5.14.9 version: 5.14.9 + '@utrecht/build-utils-react': + specifier: workspace:* + version: link:../../build-utils-react '@utrecht/combobox-css': specifier: workspace:* version: link:../../../components/combobox @@ -2753,18 +2652,6 @@ importers: rollup: specifier: 4.23.0 version: 4.23.0 - rollup-plugin-filesize: - specifier: 10.0.0 - version: 10.0.0 - rollup-plugin-node-externals: - specifier: 7.1.2 - version: 7.1.2(rollup@4.23.0) - rollup-plugin-peer-deps-external: - specifier: 2.2.4 - version: 2.2.4(rollup@4.23.0) - rollup-plugin-postcss: - specifier: 4.0.2 - version: 4.0.2(postcss@8.4.38)(ts-node@10.9.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/node@22.7.4)(typescript@5.6.2)) typescript: specifier: 5.6.2 version: 5.6.2 @@ -2781,33 +2668,6 @@ importers: specifier: '18' version: 18.3.1(react@18.3.1) devDependencies: - '@babel/plugin-transform-runtime': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-env': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-react': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-typescript': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@rollup/plugin-babel': - specifier: 6.0.4 - version: 6.0.4(@babel/core@7.24.7)(@types/babel__core@7.20.5)(rollup@4.23.0) - '@rollup/plugin-commonjs': - specifier: 26.0.1 - version: 26.0.1(rollup@4.23.0) - '@rollup/plugin-json': - specifier: 6.1.0 - version: 6.1.0(rollup@4.23.0) - '@rollup/plugin-node-resolve': - specifier: 15.2.3 - version: 15.2.3(rollup@4.23.0) - '@rollup/plugin-typescript': - specifier: 12.1.0 - version: 12.1.0(rollup@4.23.0)(tslib@2.6.2)(typescript@5.6.2) '@testing-library/dom': specifier: 8.20.1 version: 8.20.1 @@ -2829,6 +2689,9 @@ importers: '@types/testing-library__jest-dom': specifier: 5.14.9 version: 5.14.9 + '@utrecht/build-utils-react': + specifier: workspace:* + version: link:../../build-utils-react '@utrecht/form-fieldset-css': specifier: workspace:* version: link:../../../components/form-fieldset @@ -2844,18 +2707,6 @@ importers: rollup: specifier: 4.23.0 version: 4.23.0 - rollup-plugin-filesize: - specifier: 10.0.0 - version: 10.0.0 - rollup-plugin-node-externals: - specifier: 7.1.2 - version: 7.1.2(rollup@4.23.0) - rollup-plugin-peer-deps-external: - specifier: 2.2.4 - version: 2.2.4(rollup@4.23.0) - rollup-plugin-postcss: - specifier: 4.0.2 - version: 4.0.2(postcss@8.4.38)(ts-node@10.9.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/node@22.7.4)(typescript@5.6.2)) typescript: specifier: 5.6.2 version: 5.6.2 @@ -2887,33 +2738,6 @@ importers: specifier: '18' version: 18.3.1(react@18.3.1) devDependencies: - '@babel/plugin-transform-runtime': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-env': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-react': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-typescript': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@rollup/plugin-babel': - specifier: 6.0.4 - version: 6.0.4(@babel/core@7.24.7)(@types/babel__core@7.20.5)(rollup@4.23.0) - '@rollup/plugin-commonjs': - specifier: 26.0.1 - version: 26.0.1(rollup@4.23.0) - '@rollup/plugin-json': - specifier: 6.1.0 - version: 6.1.0(rollup@4.23.0) - '@rollup/plugin-node-resolve': - specifier: 15.2.3 - version: 15.2.3(rollup@4.23.0) - '@rollup/plugin-typescript': - specifier: 12.1.0 - version: 12.1.0(rollup@4.23.0)(tslib@2.6.2)(typescript@5.6.2) '@testing-library/dom': specifier: 8.20.1 version: 8.20.1 @@ -2935,6 +2759,9 @@ importers: '@types/testing-library__jest-dom': specifier: 5.14.9 version: 5.14.9 + '@utrecht/build-utils-react': + specifier: workspace:* + version: link:../../build-utils-react jest: specifier: 29.7.0 version: 29.7.0(@types/node@22.7.4)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/node@22.7.4)(typescript@5.6.2)) @@ -2947,18 +2774,6 @@ importers: rollup: specifier: 4.23.0 version: 4.23.0 - rollup-plugin-filesize: - specifier: 10.0.0 - version: 10.0.0 - rollup-plugin-node-externals: - specifier: 7.1.2 - version: 7.1.2(rollup@4.23.0) - rollup-plugin-peer-deps-external: - specifier: 2.2.4 - version: 2.2.4(rollup@4.23.0) - rollup-plugin-postcss: - specifier: 4.0.2 - version: 4.0.2(postcss@8.4.38)(ts-node@10.9.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/node@22.7.4)(typescript@5.6.2)) typescript: specifier: 5.6.2 version: 5.6.2 @@ -2975,33 +2790,6 @@ importers: specifier: '18' version: 18.3.1(react@18.3.1) devDependencies: - '@babel/plugin-transform-runtime': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-env': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-react': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-typescript': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@rollup/plugin-babel': - specifier: 6.0.4 - version: 6.0.4(@babel/core@7.24.7)(@types/babel__core@7.20.5)(rollup@4.23.0) - '@rollup/plugin-commonjs': - specifier: 26.0.1 - version: 26.0.1(rollup@4.23.0) - '@rollup/plugin-json': - specifier: 6.1.0 - version: 6.1.0(rollup@4.23.0) - '@rollup/plugin-node-resolve': - specifier: 15.2.3 - version: 15.2.3(rollup@4.23.0) - '@rollup/plugin-typescript': - specifier: 12.1.0 - version: 12.1.0(rollup@4.23.0)(tslib@2.6.2)(typescript@5.6.2) '@testing-library/dom': specifier: 8.20.1 version: 8.20.1 @@ -3023,6 +2811,9 @@ importers: '@types/testing-library__jest-dom': specifier: 5.14.9 version: 5.14.9 + '@utrecht/build-utils-react': + specifier: workspace:* + version: link:../../build-utils-react '@utrecht/form-field-description-css': specifier: workspace:* version: link:../../../components/form-field-description @@ -3038,18 +2829,6 @@ importers: rollup: specifier: 4.23.0 version: 4.23.0 - rollup-plugin-filesize: - specifier: 10.0.0 - version: 10.0.0 - rollup-plugin-node-externals: - specifier: 7.1.2 - version: 7.1.2(rollup@4.23.0) - rollup-plugin-peer-deps-external: - specifier: 2.2.4 - version: 2.2.4(rollup@4.23.0) - rollup-plugin-postcss: - specifier: 4.0.2 - version: 4.0.2(postcss@8.4.38)(ts-node@10.9.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/node@22.7.4)(typescript@5.6.2)) typescript: specifier: 5.6.2 version: 5.6.2 @@ -3066,33 +2845,6 @@ importers: specifier: '18' version: 18.3.1(react@18.3.1) devDependencies: - '@babel/plugin-transform-runtime': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-env': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-react': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-typescript': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@rollup/plugin-babel': - specifier: 6.0.4 - version: 6.0.4(@babel/core@7.24.7)(@types/babel__core@7.20.5)(rollup@4.23.0) - '@rollup/plugin-commonjs': - specifier: 26.0.1 - version: 26.0.1(rollup@4.23.0) - '@rollup/plugin-json': - specifier: 6.1.0 - version: 6.1.0(rollup@4.23.0) - '@rollup/plugin-node-resolve': - specifier: 15.2.3 - version: 15.2.3(rollup@4.23.0) - '@rollup/plugin-typescript': - specifier: 12.1.0 - version: 12.1.0(rollup@4.23.0)(tslib@2.6.2)(typescript@5.6.2) '@testing-library/dom': specifier: 8.20.1 version: 8.20.1 @@ -3114,6 +2866,9 @@ importers: '@types/testing-library__jest-dom': specifier: 5.14.9 version: 5.14.9 + '@utrecht/build-utils-react': + specifier: workspace:* + version: link:../../build-utils-react '@utrecht/form-field-error-message-css': specifier: workspace:* version: link:../../../components/form-field-error-message @@ -3129,18 +2884,6 @@ importers: rollup: specifier: 4.23.0 version: 4.23.0 - rollup-plugin-filesize: - specifier: 10.0.0 - version: 10.0.0 - rollup-plugin-node-externals: - specifier: 7.1.2 - version: 7.1.2(rollup@4.23.0) - rollup-plugin-peer-deps-external: - specifier: 2.2.4 - version: 2.2.4(rollup@4.23.0) - rollup-plugin-postcss: - specifier: 4.0.2 - version: 4.0.2(postcss@8.4.38)(ts-node@10.9.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/node@22.7.4)(typescript@5.6.2)) typescript: specifier: 5.6.2 version: 5.6.2 @@ -3157,33 +2900,6 @@ importers: specifier: '18' version: 18.3.1(react@18.3.1) devDependencies: - '@babel/plugin-transform-runtime': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-env': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-react': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-typescript': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@rollup/plugin-babel': - specifier: 6.0.4 - version: 6.0.4(@babel/core@7.24.7)(@types/babel__core@7.20.5)(rollup@4.23.0) - '@rollup/plugin-commonjs': - specifier: 26.0.1 - version: 26.0.1(rollup@4.23.0) - '@rollup/plugin-json': - specifier: 6.1.0 - version: 6.1.0(rollup@4.23.0) - '@rollup/plugin-node-resolve': - specifier: 15.2.3 - version: 15.2.3(rollup@4.23.0) - '@rollup/plugin-typescript': - specifier: 12.1.0 - version: 12.1.0(rollup@4.23.0)(tslib@2.6.2)(typescript@5.6.2) '@testing-library/dom': specifier: 8.20.1 version: 8.20.1 @@ -3205,6 +2921,9 @@ importers: '@types/testing-library__jest-dom': specifier: 5.14.9 version: 5.14.9 + '@utrecht/build-utils-react': + specifier: workspace:* + version: link:../../build-utils-react '@utrecht/form-field-css': specifier: workspace:* version: link:../../../components/form-field @@ -3220,18 +2939,6 @@ importers: rollup: specifier: 4.23.0 version: 4.23.0 - rollup-plugin-filesize: - specifier: 10.0.0 - version: 10.0.0 - rollup-plugin-node-externals: - specifier: 7.1.2 - version: 7.1.2(rollup@4.23.0) - rollup-plugin-peer-deps-external: - specifier: 2.2.4 - version: 2.2.4(rollup@4.23.0) - rollup-plugin-postcss: - specifier: 4.0.2 - version: 4.0.2(postcss@8.4.38)(ts-node@10.9.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/node@22.7.4)(typescript@5.6.2)) typescript: specifier: 5.6.2 version: 5.6.2 @@ -3248,33 +2955,6 @@ importers: specifier: '18' version: 18.3.1(react@18.3.1) devDependencies: - '@babel/plugin-transform-runtime': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-env': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-react': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-typescript': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@rollup/plugin-babel': - specifier: 6.0.4 - version: 6.0.4(@babel/core@7.24.7)(@types/babel__core@7.20.5)(rollup@4.23.0) - '@rollup/plugin-commonjs': - specifier: 26.0.1 - version: 26.0.1(rollup@4.23.0) - '@rollup/plugin-json': - specifier: 6.1.0 - version: 6.1.0(rollup@4.23.0) - '@rollup/plugin-node-resolve': - specifier: 15.2.3 - version: 15.2.3(rollup@4.23.0) - '@rollup/plugin-typescript': - specifier: 12.1.0 - version: 12.1.0(rollup@4.23.0)(tslib@2.6.2)(typescript@5.6.2) '@testing-library/dom': specifier: 8.20.1 version: 8.20.1 @@ -3296,6 +2976,9 @@ importers: '@types/testing-library__jest-dom': specifier: 5.14.9 version: 5.14.9 + '@utrecht/build-utils-react': + specifier: workspace:* + version: link:../../build-utils-react '@utrecht/form-label-css': specifier: workspace:* version: link:../../../components/form-label @@ -3311,18 +2994,6 @@ importers: rollup: specifier: 4.23.0 version: 4.23.0 - rollup-plugin-filesize: - specifier: 10.0.0 - version: 10.0.0 - rollup-plugin-node-externals: - specifier: 7.1.2 - version: 7.1.2(rollup@4.23.0) - rollup-plugin-peer-deps-external: - specifier: 2.2.4 - version: 2.2.4(rollup@4.23.0) - rollup-plugin-postcss: - specifier: 4.0.2 - version: 4.0.2(postcss@8.4.38)(ts-node@10.9.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/node@22.7.4)(typescript@5.6.2)) typescript: specifier: 5.6.2 version: 5.6.2 @@ -3339,33 +3010,6 @@ importers: specifier: '18' version: 18.3.1(react@18.3.1) devDependencies: - '@babel/plugin-transform-runtime': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-env': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-react': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-typescript': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@rollup/plugin-babel': - specifier: 6.0.4 - version: 6.0.4(@babel/core@7.24.7)(@types/babel__core@7.20.5)(rollup@4.23.0) - '@rollup/plugin-commonjs': - specifier: 26.0.1 - version: 26.0.1(rollup@4.23.0) - '@rollup/plugin-json': - specifier: 6.1.0 - version: 6.1.0(rollup@4.23.0) - '@rollup/plugin-node-resolve': - specifier: 15.2.3 - version: 15.2.3(rollup@4.23.0) - '@rollup/plugin-typescript': - specifier: 12.1.0 - version: 12.1.0(rollup@4.23.0)(tslib@2.6.2)(typescript@5.6.2) '@testing-library/dom': specifier: 8.20.1 version: 8.20.1 @@ -3387,6 +3031,9 @@ importers: '@types/testing-library__jest-dom': specifier: 5.14.9 version: 5.14.9 + '@utrecht/build-utils-react': + specifier: workspace:* + version: link:../../build-utils-react '@utrecht/link-css': specifier: workspace:* version: link:../../../components/link @@ -3402,18 +3049,6 @@ importers: rollup: specifier: 4.23.0 version: 4.23.0 - rollup-plugin-filesize: - specifier: 10.0.0 - version: 10.0.0 - rollup-plugin-node-externals: - specifier: 7.1.2 - version: 7.1.2(rollup@4.23.0) - rollup-plugin-peer-deps-external: - specifier: 2.2.4 - version: 2.2.4(rollup@4.23.0) - rollup-plugin-postcss: - specifier: 4.0.2 - version: 4.0.2(postcss@8.4.38)(ts-node@10.9.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/node@22.7.4)(typescript@5.6.2)) typescript: specifier: 5.6.2 version: 5.6.2 @@ -3430,33 +3065,6 @@ importers: specifier: '18' version: 18.3.1(react@18.3.1) devDependencies: - '@babel/plugin-transform-runtime': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-env': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-react': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-typescript': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@rollup/plugin-babel': - specifier: 6.0.4 - version: 6.0.4(@babel/core@7.24.7)(@types/babel__core@7.20.5)(rollup@4.23.0) - '@rollup/plugin-commonjs': - specifier: 26.0.1 - version: 26.0.1(rollup@4.23.0) - '@rollup/plugin-json': - specifier: 6.1.0 - version: 6.1.0(rollup@4.23.0) - '@rollup/plugin-node-resolve': - specifier: 15.2.3 - version: 15.2.3(rollup@4.23.0) - '@rollup/plugin-typescript': - specifier: 12.1.0 - version: 12.1.0(rollup@4.23.0)(tslib@2.6.2)(typescript@5.6.2) '@testing-library/dom': specifier: 8.20.1 version: 8.20.1 @@ -3478,6 +3086,9 @@ importers: '@types/testing-library__jest-dom': specifier: 5.14.9 version: 5.14.9 + '@utrecht/build-utils-react': + specifier: workspace:* + version: link:../../build-utils-react '@utrecht/listbox-css': specifier: workspace:* version: link:../../../components/listbox @@ -3493,18 +3104,6 @@ importers: rollup: specifier: 4.23.0 version: 4.23.0 - rollup-plugin-filesize: - specifier: 10.0.0 - version: 10.0.0 - rollup-plugin-node-externals: - specifier: 7.1.2 - version: 7.1.2(rollup@4.23.0) - rollup-plugin-peer-deps-external: - specifier: 2.2.4 - version: 2.2.4(rollup@4.23.0) - rollup-plugin-postcss: - specifier: 4.0.2 - version: 4.0.2(postcss@8.4.38)(ts-node@10.9.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/node@22.7.4)(typescript@5.6.2)) typescript: specifier: 5.6.2 version: 5.6.2 @@ -3660,282 +3259,9 @@ importers: '@types/testing-library__jest-dom': specifier: 5.14.9 version: 5.14.9 - '@utrecht/page-body-css': - specifier: workspace:* - version: link:../../../components/page-body - jest: - specifier: 29.7.0 - version: 29.7.0(@types/node@22.7.4)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/node@22.7.4)(typescript@5.6.2)) - jest-environment-jsdom: - specifier: 29.7.0 - version: 29.7.0 - react: - specifier: 18.3.1 - version: 18.3.1 - rollup: - specifier: 4.23.0 - version: 4.23.0 - rollup-plugin-filesize: - specifier: 10.0.0 - version: 10.0.0 - rollup-plugin-node-externals: - specifier: 7.1.2 - version: 7.1.2(rollup@4.23.0) - rollup-plugin-peer-deps-external: - specifier: 2.2.4 - version: 2.2.4(rollup@4.23.0) - rollup-plugin-postcss: - specifier: 4.0.2 - version: 4.0.2(postcss@8.4.38)(ts-node@10.9.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/node@22.7.4)(typescript@5.6.2)) - typescript: - specifier: 5.6.2 - version: 5.6.2 - - packages/components-react/page-footer-react: - dependencies: - '@babel/runtime': - specifier: '*' - version: 7.24.7 - clsx: - specifier: 2.1.1 - version: 2.1.1 - react-dom: - specifier: '18' - version: 18.3.1(react@18.3.1) - devDependencies: - '@babel/plugin-transform-runtime': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-env': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-react': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-typescript': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@rollup/plugin-babel': - specifier: 6.0.4 - version: 6.0.4(@babel/core@7.24.7)(@types/babel__core@7.20.5)(rollup@4.23.0) - '@rollup/plugin-commonjs': - specifier: 26.0.1 - version: 26.0.1(rollup@4.23.0) - '@rollup/plugin-json': - specifier: 6.1.0 - version: 6.1.0(rollup@4.23.0) - '@rollup/plugin-node-resolve': - specifier: 15.2.3 - version: 15.2.3(rollup@4.23.0) - '@rollup/plugin-typescript': - specifier: 12.1.0 - version: 12.1.0(rollup@4.23.0)(tslib@2.6.2)(typescript@5.6.2) - '@testing-library/dom': - specifier: 8.20.1 - version: 8.20.1 - '@testing-library/jest-dom': - specifier: 6.5.0 - version: 6.5.0 - '@testing-library/react': - specifier: 16.0.1 - version: 16.0.1(@testing-library/dom@8.20.1)(@types/react-dom@18.3.0)(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@testing-library/user-event': - specifier: 14.5.1 - version: 14.5.1(@testing-library/dom@8.20.1) - '@types/jest': - specifier: 29.5.13 - version: 29.5.13 - '@types/react': - specifier: 18.3.3 - version: 18.3.3 - '@types/testing-library__jest-dom': - specifier: 5.14.9 - version: 5.14.9 - '@utrecht/page-footer-css': - specifier: workspace:* - version: link:../../../components/page-footer - jest: - specifier: 29.7.0 - version: 29.7.0(@types/node@22.7.4)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/node@22.7.4)(typescript@5.6.2)) - jest-environment-jsdom: - specifier: 29.7.0 - version: 29.7.0 - react: - specifier: 18.3.1 - version: 18.3.1 - rollup: - specifier: 4.23.0 - version: 4.23.0 - rollup-plugin-filesize: - specifier: 10.0.0 - version: 10.0.0 - rollup-plugin-node-externals: - specifier: 7.1.2 - version: 7.1.2(rollup@4.23.0) - rollup-plugin-peer-deps-external: - specifier: 2.2.4 - version: 2.2.4(rollup@4.23.0) - rollup-plugin-postcss: - specifier: 4.0.2 - version: 4.0.2(postcss@8.4.38)(ts-node@10.9.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/node@22.7.4)(typescript@5.6.2)) - typescript: - specifier: 5.6.2 - version: 5.6.2 - - packages/components-react/page-header-react: - dependencies: - '@babel/runtime': - specifier: '*' - version: 7.24.7 - clsx: - specifier: 2.1.1 - version: 2.1.1 - react-dom: - specifier: '18' - version: 18.3.1(react@18.3.1) - devDependencies: - '@babel/plugin-transform-runtime': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-env': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-react': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-typescript': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@rollup/plugin-babel': - specifier: 6.0.4 - version: 6.0.4(@babel/core@7.24.7)(@types/babel__core@7.20.5)(rollup@4.23.0) - '@rollup/plugin-commonjs': - specifier: 26.0.1 - version: 26.0.1(rollup@4.23.0) - '@rollup/plugin-json': - specifier: 6.1.0 - version: 6.1.0(rollup@4.23.0) - '@rollup/plugin-node-resolve': - specifier: 15.2.3 - version: 15.2.3(rollup@4.23.0) - '@rollup/plugin-typescript': - specifier: 12.1.0 - version: 12.1.0(rollup@4.23.0)(tslib@2.6.2)(typescript@5.6.2) - '@testing-library/dom': - specifier: 8.20.1 - version: 8.20.1 - '@testing-library/jest-dom': - specifier: 6.5.0 - version: 6.5.0 - '@testing-library/react': - specifier: 16.0.1 - version: 16.0.1(@testing-library/dom@8.20.1)(@types/react-dom@18.3.0)(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@testing-library/user-event': - specifier: 14.5.1 - version: 14.5.1(@testing-library/dom@8.20.1) - '@types/jest': - specifier: 29.5.13 - version: 29.5.13 - '@types/react': - specifier: 18.3.3 - version: 18.3.3 - '@types/testing-library__jest-dom': - specifier: 5.14.9 - version: 5.14.9 - '@utrecht/page-header-css': - specifier: workspace:* - version: link:../../../components/page-header - jest: - specifier: 29.7.0 - version: 29.7.0(@types/node@22.7.4)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/node@22.7.4)(typescript@5.6.2)) - jest-environment-jsdom: - specifier: 29.7.0 - version: 29.7.0 - react: - specifier: 18.3.1 - version: 18.3.1 - rollup: - specifier: 4.23.0 - version: 4.23.0 - rollup-plugin-filesize: - specifier: 10.0.0 - version: 10.0.0 - rollup-plugin-node-externals: - specifier: 7.1.2 - version: 7.1.2(rollup@4.23.0) - rollup-plugin-peer-deps-external: - specifier: 2.2.4 - version: 2.2.4(rollup@4.23.0) - rollup-plugin-postcss: - specifier: 4.0.2 - version: 4.0.2(postcss@8.4.38)(ts-node@10.9.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/node@22.7.4)(typescript@5.6.2)) - typescript: - specifier: 5.6.2 - version: 5.6.2 - - packages/components-react/page-layout-react: - dependencies: - '@babel/runtime': - specifier: '*' - version: 7.24.7 - clsx: - specifier: 2.1.1 - version: 2.1.1 - react-dom: - specifier: '18' - version: 18.3.1(react@18.3.1) - devDependencies: - '@babel/plugin-transform-runtime': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-env': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-react': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-typescript': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@rollup/plugin-babel': - specifier: 6.0.4 - version: 6.0.4(@babel/core@7.24.7)(@types/babel__core@7.20.5)(rollup@4.23.0) - '@rollup/plugin-commonjs': - specifier: 26.0.1 - version: 26.0.1(rollup@4.23.0) - '@rollup/plugin-json': - specifier: 6.1.0 - version: 6.1.0(rollup@4.23.0) - '@rollup/plugin-node-resolve': - specifier: 15.2.3 - version: 15.2.3(rollup@4.23.0) - '@rollup/plugin-typescript': - specifier: 12.1.0 - version: 12.1.0(rollup@4.23.0)(tslib@2.6.2)(typescript@5.6.2) - '@testing-library/dom': - specifier: 8.20.1 - version: 8.20.1 - '@testing-library/jest-dom': - specifier: 6.5.0 - version: 6.5.0 - '@testing-library/react': - specifier: 16.0.1 - version: 16.0.1(@testing-library/dom@8.20.1)(@types/react-dom@18.3.0)(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@testing-library/user-event': - specifier: 14.5.1 - version: 14.5.1(@testing-library/dom@8.20.1) - '@types/jest': - specifier: 29.5.13 - version: 29.5.13 - '@types/react': - specifier: 18.3.3 - version: 18.3.3 - '@types/testing-library__jest-dom': - specifier: 5.14.9 - version: 5.14.9 - '@utrecht/page-layout-css': + '@utrecht/page-body-css': specifier: workspace:* - version: link:../../../components/page-layout + version: link:../../../components/page-body jest: specifier: 29.7.0 version: 29.7.0(@types/node@22.7.4)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/node@22.7.4)(typescript@5.6.2)) @@ -3964,7 +3290,7 @@ importers: specifier: 5.6.2 version: 5.6.2 - packages/components-react/radio-button-react: + packages/components-react/page-footer-react: dependencies: '@babel/runtime': specifier: '*' @@ -4024,9 +3350,9 @@ importers: '@types/testing-library__jest-dom': specifier: 5.14.9 version: 5.14.9 - '@utrecht/radio-button-css': + '@utrecht/page-footer-css': specifier: workspace:* - version: link:../../../components/radio-button + version: link:../../../components/page-footer jest: specifier: 29.7.0 version: 29.7.0(@types/node@22.7.4)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/node@22.7.4)(typescript@5.6.2)) @@ -4055,29 +3381,11 @@ importers: specifier: 5.6.2 version: 5.6.2 - packages/components-react/radio-group-react: + packages/components-react/page-header-react: dependencies: '@babel/runtime': specifier: '*' version: 7.24.7 - '@utrecht/fieldset-react': - specifier: workspace:* - version: link:../fieldset-react - '@utrecht/form-field-description-react': - specifier: workspace:* - version: link:../form-field-description-react - '@utrecht/form-field-error-message-react': - specifier: workspace:* - version: link:../form-field-error-message-react - '@utrecht/form-field-react': - specifier: workspace:* - version: link:../form-field-react - '@utrecht/form-label-react': - specifier: workspace:* - version: link:../form-label-react - '@utrecht/radio-button-react': - specifier: workspace:* - version: link:../radio-button-react clsx: specifier: 2.1.1 version: 2.1.1 @@ -4133,9 +3441,9 @@ importers: '@types/testing-library__jest-dom': specifier: 5.14.9 version: 5.14.9 - '@utrecht/form-field-css': + '@utrecht/page-header-css': specifier: workspace:* - version: link:../../../components/form-field + version: link:../../../components/page-header jest: specifier: 29.7.0 version: 29.7.0(@types/node@22.7.4)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/node@22.7.4)(typescript@5.6.2)) @@ -4164,7 +3472,7 @@ importers: specifier: 5.6.2 version: 5.6.2 - packages/components-react/root-react: + packages/components-react/page-layout-react: dependencies: '@babel/runtime': specifier: '*' @@ -4224,9 +3532,9 @@ importers: '@types/testing-library__jest-dom': specifier: 5.14.9 version: 5.14.9 - '@utrecht/root-css': + '@utrecht/page-layout-css': specifier: workspace:* - version: link:../../../components/root + version: link:../../../components/page-layout jest: specifier: 29.7.0 version: 29.7.0(@types/node@22.7.4)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/node@22.7.4)(typescript@5.6.2)) @@ -4255,23 +3563,139 @@ importers: specifier: 5.6.2 version: 5.6.2 - packages/components-react/select-combobox-react: + packages/components-react/radio-button-react: dependencies: '@babel/runtime': - specifier: ^7.23.6 + specifier: '*' version: 7.24.7 - '@utrecht/button-react': + clsx: + specifier: 2.1.1 + version: 2.1.1 + react-dom: + specifier: '18' + version: 18.3.1(react@18.3.1) + devDependencies: + '@testing-library/dom': + specifier: 8.20.1 + version: 8.20.1 + '@testing-library/jest-dom': + specifier: 6.5.0 + version: 6.5.0 + '@testing-library/react': + specifier: 16.0.1 + version: 16.0.1(@testing-library/dom@8.20.1)(@types/react-dom@18.3.0)(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@testing-library/user-event': + specifier: 14.5.1 + version: 14.5.1(@testing-library/dom@8.20.1) + '@types/jest': + specifier: 29.5.13 + version: 29.5.13 + '@types/react': + specifier: 18.3.3 + version: 18.3.3 + '@types/testing-library__jest-dom': + specifier: 5.14.9 + version: 5.14.9 + '@utrecht/build-utils-react': specifier: workspace:* - version: link:../button-react - '@utrecht/combobox-react': + version: link:../../build-utils-react + '@utrecht/radio-button-css': specifier: workspace:* - version: link:../combobox-react - '@utrecht/listbox-react': + version: link:../../../components/radio-button + jest: + specifier: 29.7.0 + version: 29.7.0(@types/node@22.7.4)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/node@22.7.4)(typescript@5.6.2)) + jest-environment-jsdom: + specifier: 29.7.0 + version: 29.7.0 + react: + specifier: 18.3.1 + version: 18.3.1 + rollup: + specifier: 4.23.0 + version: 4.23.0 + typescript: + specifier: 5.6.2 + version: 5.6.2 + + packages/components-react/radio-group-react: + dependencies: + '@babel/runtime': + specifier: '*' + version: 7.24.7 + '@utrecht/fieldset-react': specifier: workspace:* - version: link:../listbox-react - '@utrecht/textbox-react': + version: link:../fieldset-react + '@utrecht/form-field-description-react': specifier: workspace:* - version: link:../textbox-react + version: link:../form-field-description-react + '@utrecht/form-field-error-message-react': + specifier: workspace:* + version: link:../form-field-error-message-react + '@utrecht/form-field-react': + specifier: workspace:* + version: link:../form-field-react + '@utrecht/form-label-react': + specifier: workspace:* + version: link:../form-label-react + '@utrecht/radio-button-react': + specifier: workspace:* + version: link:../radio-button-react + clsx: + specifier: 2.1.1 + version: 2.1.1 + react-dom: + specifier: '18' + version: 18.3.1(react@18.3.1) + devDependencies: + '@testing-library/dom': + specifier: 8.20.1 + version: 8.20.1 + '@testing-library/jest-dom': + specifier: 6.5.0 + version: 6.5.0 + '@testing-library/react': + specifier: 16.0.1 + version: 16.0.1(@testing-library/dom@8.20.1)(@types/react-dom@18.3.0)(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@testing-library/user-event': + specifier: 14.5.1 + version: 14.5.1(@testing-library/dom@8.20.1) + '@types/jest': + specifier: 29.5.13 + version: 29.5.13 + '@types/react': + specifier: 18.3.3 + version: 18.3.3 + '@types/testing-library__jest-dom': + specifier: 5.14.9 + version: 5.14.9 + '@utrecht/build-utils-react': + specifier: workspace:* + version: link:../../build-utils-react + '@utrecht/form-field-css': + specifier: workspace:* + version: link:../../../components/form-field + jest: + specifier: 29.7.0 + version: 29.7.0(@types/node@22.7.4)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/node@22.7.4)(typescript@5.6.2)) + jest-environment-jsdom: + specifier: 29.7.0 + version: 29.7.0 + react: + specifier: 18.3.1 + version: 18.3.1 + rollup: + specifier: 4.23.0 + version: 4.23.0 + typescript: + specifier: 5.6.2 + version: 5.6.2 + + packages/components-react/root-react: + dependencies: + '@babel/runtime': + specifier: '*' + version: 7.24.7 clsx: specifier: 2.1.1 version: 2.1.1 @@ -4327,9 +3751,9 @@ importers: '@types/testing-library__jest-dom': specifier: 5.14.9 version: 5.14.9 - downshift: - specifier: 9.0.8 - version: 9.0.8(react@18.3.1) + '@utrecht/root-css': + specifier: workspace:* + version: link:../../../components/root jest: specifier: 29.7.0 version: 29.7.0(@types/node@22.7.4)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/node@22.7.4)(typescript@5.6.2)) @@ -4358,11 +3782,23 @@ importers: specifier: 5.6.2 version: 5.6.2 - packages/components-react/textbox-react: + packages/components-react/select-combobox-react: dependencies: '@babel/runtime': specifier: ^7.23.6 version: 7.24.7 + '@utrecht/button-react': + specifier: workspace:* + version: link:../button-react + '@utrecht/combobox-react': + specifier: workspace:* + version: link:../combobox-react + '@utrecht/listbox-react': + specifier: workspace:* + version: link:../listbox-react + '@utrecht/textbox-react': + specifier: workspace:* + version: link:../textbox-react clsx: specifier: 2.1.1 version: 2.1.1 @@ -4418,9 +3854,9 @@ importers: '@types/testing-library__jest-dom': specifier: 5.14.9 version: 5.14.9 - '@utrecht/textbox-css': - specifier: workspace:* - version: link:../../../components/textbox + downshift: + specifier: 9.0.8 + version: 9.0.8(react@18.3.1) jest: specifier: 29.7.0 version: 29.7.0(@types/node@22.7.4)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/node@22.7.4)(typescript@5.6.2)) @@ -4449,6 +3885,61 @@ importers: specifier: 5.6.2 version: 5.6.2 + packages/components-react/textbox-react: + dependencies: + '@babel/runtime': + specifier: ^7.23.6 + version: 7.24.7 + clsx: + specifier: 2.1.1 + version: 2.1.1 + react-dom: + specifier: '18' + version: 18.3.1(react@18.3.1) + devDependencies: + '@testing-library/dom': + specifier: 8.20.1 + version: 8.20.1 + '@testing-library/jest-dom': + specifier: 6.5.0 + version: 6.5.0 + '@testing-library/react': + specifier: 16.0.1 + version: 16.0.1(@testing-library/dom@8.20.1)(@types/react-dom@18.3.0)(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@testing-library/user-event': + specifier: 14.5.1 + version: 14.5.1(@testing-library/dom@8.20.1) + '@types/jest': + specifier: 29.5.13 + version: 29.5.13 + '@types/react': + specifier: 18.3.3 + version: 18.3.3 + '@types/testing-library__jest-dom': + specifier: 5.14.9 + version: 5.14.9 + '@utrecht/build-utils-react': + specifier: workspace:* + version: link:../../build-utils-react + '@utrecht/textbox-css': + specifier: workspace:* + version: link:../../../components/textbox + jest: + specifier: 29.7.0 + version: 29.7.0(@types/node@22.7.4)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/node@22.7.4)(typescript@5.6.2)) + jest-environment-jsdom: + specifier: 29.7.0 + version: 29.7.0 + react: + specifier: 18.3.1 + version: 18.3.1 + rollup: + specifier: 4.23.0 + version: 4.23.0 + typescript: + specifier: 5.6.2 + version: 5.6.2 + packages/design-system-website: devDependencies: '@utrecht/docusaurus': @@ -13024,6 +12515,9 @@ packages: '@types/keyv@3.1.4': resolution: {integrity: sha512-BQ5aZNSCpj7D6K2ksrRCTmKRLEpnPvWDiLPfoGyhZ++8YtiK9d/3DBKPJgry359X/P1PfruyYwvnvwFjuEiEIg==} + '@types/lodash-es@4.17.12': + resolution: {integrity: sha512-0NgftHUcV4v34VhXm8QBSftKVXtbkBG3ViCjs6+eJ5a6y6Mi/jiFGPc1sC7QK+9BFhWrURE3EOggmWaSxL9OzQ==} + '@types/lodash.chunk@4.2.9': resolution: {integrity: sha512-Z9VtFUSnmT0No/QymqfG9AGbfOA4O5qB/uyP89xeZBqDAsKsB4gQFTqt7d0pHjbsTwtQ4yZObQVHuKlSOhIJ5Q==} @@ -21331,6 +20825,9 @@ packages: resolution: {integrity: sha512-Wglpdk03BSfXkHoQa3b/oulrotAkwrlLDRSOb9D0bN86FdRyE9lppSp33aHNPgBa0JKCoB+drFLZkQoRRYae5A==} engines: {node: ^10 || ^12 || >=14} + preact@10.24.3: + resolution: {integrity: sha512-Z2dPnBnMUfyQfSQ+GBdsGa16hz35YmLmtTLhM169uW944hYL6xzTYkJjC07j+Wosz733pMWx0fgON3JNw1jJQA==} + prebuild-install@7.1.1: resolution: {integrity: sha512-jAXscXWMcCK8GgCoHOfIr0ODh5ai8mj63L2nWrjuAgXE6tDyYGnx4/8o/rCgU+B4JSyZBKbeZqzhtwtC3ovxjw==} engines: {node: '>=10'} @@ -35295,6 +34792,10 @@ snapshots: dependencies: '@types/node': 22.7.4 + '@types/lodash-es@4.17.12': + dependencies: + '@types/lodash': 4.14.202 + '@types/lodash.chunk@4.2.9': dependencies: '@types/lodash': 4.14.202 @@ -46947,6 +46448,8 @@ snapshots: picocolors: 1.0.1 source-map-js: 1.2.0 + preact@10.24.3: {} + prebuild-install@7.1.1: dependencies: detect-libc: 2.0.2 diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 65ec53957fb..b07ef5af613 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -1,4 +1,5 @@ packages: + - "apps/**" - "components/**" - "documentation/" - "packages/*" From 42b7aff83ac82b3007c73d3e2e5d6584577a5d5f Mon Sep 17 00:00:00 2001 From: Robbert Broersma Date: Sun, 17 Nov 2024 20:00:19 +0100 Subject: [PATCH 2/8] feat: add React build utils --- packages/build-utils-react/package.json | 35 ++++++ packages/build-utils-react/rollup-config.mjs | 0 .../build-utils-react/src/insert-style.ts | 8 ++ packages/build-utils-react/src/rollup.mjs | 105 ++++++++++++++++++ 4 files changed, 148 insertions(+) create mode 100644 packages/build-utils-react/package.json create mode 100644 packages/build-utils-react/rollup-config.mjs create mode 100644 packages/build-utils-react/src/insert-style.ts create mode 100644 packages/build-utils-react/src/rollup.mjs diff --git a/packages/build-utils-react/package.json b/packages/build-utils-react/package.json new file mode 100644 index 00000000000..b568e9a4bc4 --- /dev/null +++ b/packages/build-utils-react/package.json @@ -0,0 +1,35 @@ +{ + "version": "0.0.1", + "author": "Community for NL Design System", + "description": "Utilities for React component npm packages", + "license": "EUPL-1.2", + "name": "@utrecht/build-utils-react", + "keywords": [ + "nl-design-system" + ], + "private": true, + "repository": { + "type": "git+ssh", + "url": "git@github.com:nl-design-system/utrecht.git", + "directory": "packages/build-utils-react" + }, + "bin": { + "build-react-package": "./src/index.mjs" + }, + "devDependencies": { + "@babel/plugin-transform-runtime": "7.24.7", + "@babel/preset-react": "7.24.7", + "@rollup/plugin-babel": "6.0.4", + "@rollup/plugin-commonjs": "26.0.1", + "@rollup/plugin-json": "6.1.0", + "@rollup/plugin-node-resolve": "15.2.3", + "@rollup/plugin-typescript": "12.1.0", + "rollup": "4.23.0", + "rollup-plugin-filesize": "10.0.0", + "rollup-plugin-node-externals": "7.1.2", + "rollup-plugin-peer-deps-external": "2.2.4", + "rollup-plugin-postcss": "4.0.2", + "rollup-plugin-typescript2": "0.36.0", + "typescript": "5.6.2" + } +} diff --git a/packages/build-utils-react/rollup-config.mjs b/packages/build-utils-react/rollup-config.mjs new file mode 100644 index 00000000000..e69de29bb2d diff --git a/packages/build-utils-react/src/insert-style.ts b/packages/build-utils-react/src/insert-style.ts new file mode 100644 index 00000000000..931fa527634 --- /dev/null +++ b/packages/build-utils-react/src/insert-style.ts @@ -0,0 +1,8 @@ +export const insertStyle = function (css: string) { + if (typeof document !== 'undefined') { + var head = document.head || document.getElementsByTagName('head')[0]; + var style = document.createElement('style'); + style.appendChild(document.createTextNode(css)); + head.appendChild(style); + } +}; diff --git a/packages/build-utils-react/src/rollup.mjs b/packages/build-utils-react/src/rollup.mjs new file mode 100644 index 00000000000..2a9b68a74b7 --- /dev/null +++ b/packages/build-utils-react/src/rollup.mjs @@ -0,0 +1,105 @@ +import babel from '@rollup/plugin-babel'; +import commonjs from '@rollup/plugin-commonjs'; +import json from '@rollup/plugin-json'; +import resolve from '@rollup/plugin-node-resolve'; +import typescript from '@rollup/plugin-typescript'; +import filesize from 'rollup-plugin-filesize'; +import nodeExternal from 'rollup-plugin-node-externals'; +import peerDepsExternal from 'rollup-plugin-peer-deps-external'; +import postcss from 'rollup-plugin-postcss'; + +/** + * @type {import('rollup').RollupOptions} + */ +export const createConfig = () => [ + { + input: './src/index.tsx', + output: [ + { + file: './dist/index.cjs', + format: 'cjs', + sourcemap: true, + }, + ], + plugins: [ + peerDepsExternal(), + commonjs(), + nodeExternal(), + resolve({ browser: true }), + json(), + typescript({ tsconfig: './tsconfig.build.json' }), + babel({ + presets: ['@babel/preset-react'], + babelHelpers: 'runtime', + exclude: ['node_modules/**', 'dist/**'], + extensions: ['.ts', '.tsx'], + inputSourceMap: true, + plugins: ['@babel/plugin-transform-runtime'], + }), + filesize(), + ], + }, + { + input: './src/index.tsx', + output: [ + { + file: './dist/index.mjs', + format: 'es', + sourcemap: true, + }, + ], + plugins: [ + peerDepsExternal(), + resolve({ browser: true }), + typescript({ tsconfig: './tsconfig.build.json' }), + filesize(), + ], + }, + { + input: './src/css.tsx', + output: [ + { + file: './dist/css.cjs', + format: 'cjs', + sourcemap: true, + }, + ], + plugins: [ + peerDepsExternal(), + commonjs(), + nodeExternal(), + resolve({ browser: true }), + json(), + postcss({ + extensions: ['.css', '.scss'], + minimize: true, + }), + typescript({ tsconfig: './tsconfig.build.json' }), + babel({ + presets: ['@babel/preset-react'], + babelHelpers: 'runtime', + exclude: ['node_modules/**', 'dist/**'], + extensions: ['.ts', '.tsx'], + inputSourceMap: true, + plugins: ['@babel/plugin-transform-runtime'], + }), + filesize(), + ], + }, + { + input: './src/css.tsx', + output: [ + { + file: './dist/css.mjs', + format: 'es', + sourcemap: true, + }, + ], + plugins: [ + peerDepsExternal(), + resolve({ browser: true }), + typescript({ tsconfig: './tsconfig.build.json' }), + filesize(), + ], + }, +]; From b4e6f3679081339a7dacf3e35d3803dae0bcc869 Mon Sep 17 00:00:00 2001 From: Robbert Broersma Date: Sun, 17 Nov 2024 20:03:38 +0100 Subject: [PATCH 3/8] build: switch to new React build config --- .../button-react/package.json | 14 +-- .../button-react/rollup.config.mjs | 88 +------------------ .../components-react/button-react/src/css.tsx | 5 +- .../button-react/src/inject.ts | 8 ++ 4 files changed, 15 insertions(+), 100 deletions(-) create mode 100644 packages/components-react/button-react/src/inject.ts diff --git a/packages/components-react/button-react/package.json b/packages/components-react/button-react/package.json index 173b2e72ae6..ff7bc2d6a84 100644 --- a/packages/components-react/button-react/package.json +++ b/packages/components-react/button-react/package.json @@ -19,15 +19,6 @@ "typecheck": "tsc --noEmit" }, "devDependencies": { - "@babel/plugin-transform-runtime": "7.24.7", - "@babel/preset-env": "7.24.7", - "@babel/preset-react": "7.24.7", - "@babel/preset-typescript": "7.24.7", - "@rollup/plugin-babel": "6.0.4", - "@rollup/plugin-commonjs": "26.0.1", - "@rollup/plugin-json": "6.1.0", - "@rollup/plugin-node-resolve": "15.2.3", - "@rollup/plugin-typescript": "12.1.0", "@testing-library/dom": "8.20.1", "@testing-library/jest-dom": "6.5.0", "@testing-library/react": "16.0.1", @@ -35,15 +26,12 @@ "@types/jest": "29.5.13", "@types/react": "18.3.3", "@types/testing-library__jest-dom": "5.14.9", + "@utrecht/build-utils-react": "workspace:*", "@utrecht/button-css": "workspace:*", "jest": "29.7.0", "jest-environment-jsdom": "29.7.0", "react": "18.3.1", "rollup": "4.23.0", - "rollup-plugin-filesize": "10.0.0", - "rollup-plugin-node-externals": "7.1.2", - "rollup-plugin-peer-deps-external": "2.2.4", - "rollup-plugin-postcss": "4.0.2", "typescript": "5.6.2" }, "keywords": [ diff --git a/packages/components-react/button-react/rollup.config.mjs b/packages/components-react/button-react/rollup.config.mjs index 6cc9b8c1b8a..10d600728f2 100644 --- a/packages/components-react/button-react/rollup.config.mjs +++ b/packages/components-react/button-react/rollup.config.mjs @@ -1,87 +1,3 @@ -import babel from '@rollup/plugin-babel'; -import commonjs from '@rollup/plugin-commonjs'; -import json from '@rollup/plugin-json'; -import resolve from '@rollup/plugin-node-resolve'; -import typescript from '@rollup/plugin-typescript'; -import { readFileSync } from 'fs'; -import filesize from 'rollup-plugin-filesize'; -import nodeExternal from 'rollup-plugin-node-externals'; -import peerDepsExternal from 'rollup-plugin-peer-deps-external'; -import postcss from 'rollup-plugin-postcss'; +import { createConfig } from '@utrecht/build-utils-react/src/rollup.mjs'; -const packagePath = new URL('./package.json', import.meta.url).pathname; -const packageJson = JSON.parse(readFileSync(packagePath, 'utf8')); - -/** - * @type {import('rollup').RollupOptions} - */ -export default [ - { - input: './src/index.tsx', - output: [ - { - file: packageJson.main, - format: 'cjs', - sourcemap: true, - }, - { - file: packageJson.module, - format: 'es', - sourcemap: true, - }, - ], - plugins: [ - peerDepsExternal(), - commonjs(), - nodeExternal(), - resolve({ browser: true }), - json(), - typescript({ tsconfig: './tsconfig.build.json' }), - babel({ - presets: ['@babel/preset-react'], - babelHelpers: 'runtime', - exclude: ['node_modules/**', 'dist/**'], - extensions: ['.ts', '.tsx'], - inputSourceMap: true, - plugins: ['@babel/plugin-transform-runtime'], - }), - filesize(), - ], - }, - { - input: './src/css.tsx', - output: [ - { - file: './dist/css.cjs', - format: 'cjs', - sourcemap: true, - }, - { - file: './dist/css.mjs', - format: 'es', - sourcemap: true, - }, - ], - plugins: [ - peerDepsExternal(), - commonjs(), - nodeExternal(), - resolve({ browser: true }), - json(), - postcss({ - extensions: ['.css', '.scss'], - minimize: true, - }), - typescript({ tsconfig: './tsconfig.build.json' }), - babel({ - presets: ['@babel/preset-react'], - babelHelpers: 'runtime', - exclude: ['node_modules/**', 'dist/**'], - extensions: ['.ts', '.tsx'], - inputSourceMap: true, - plugins: ['@babel/plugin-transform-runtime'], - }), - filesize(), - ], - }, -]; +export default createConfig(); diff --git a/packages/components-react/button-react/src/css.tsx b/packages/components-react/button-react/src/css.tsx index 2104d23554c..a27f00a40e4 100644 --- a/packages/components-react/button-react/src/css.tsx +++ b/packages/components-react/button-react/src/css.tsx @@ -4,6 +4,9 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/button-css/src/index.scss'; +import css from '@utrecht/button-css/dist/index.mjs'; +import { insertStyle } from './inject'; + +insertStyle(css); export * from './index'; diff --git a/packages/components-react/button-react/src/inject.ts b/packages/components-react/button-react/src/inject.ts new file mode 100644 index 00000000000..931fa527634 --- /dev/null +++ b/packages/components-react/button-react/src/inject.ts @@ -0,0 +1,8 @@ +export const insertStyle = function (css: string) { + if (typeof document !== 'undefined') { + var head = document.head || document.getElementsByTagName('head')[0]; + var style = document.createElement('style'); + style.appendChild(document.createTextNode(css)); + head.appendChild(style); + } +}; From cefffc8b75a586bdea190a48f858f7c6cf89c4c1 Mon Sep 17 00:00:00 2001 From: Robbert Broersma Date: Mon, 18 Nov 2024 00:31:45 +0100 Subject: [PATCH 4/8] refactor: use our own CSS injection --- packages/build-utils-react/rollup-config.mjs | 0 .../src/css-module/Accordion.tsx | 4 +++- .../src/css-module/Alert.tsx | 4 +++- .../src/css-module/AlertDialog.tsx | 4 +++- .../src/css-module/Article.tsx | 4 +++- .../src/css-module/Backdrop.tsx | 4 +++- .../src/css-module/BadgeCounter.tsx | 4 +++- .../src/css-module/BadgeList.tsx | 4 +++- .../src/css-module/Blockquote.tsx | 4 +++- .../src/css-module/BreadcrumbNav.tsx | 4 +++- .../src/css-module/ButtonGroup.tsx | 4 +++- .../src/css-module/ButtonLink.tsx | 4 +++- .../src/css-module/Code.tsx | 4 +++- .../src/css-module/CodeBlock.tsx | 4 +++- .../src/css-module/ColorSample.tsx | 4 +++- .../src/css-module/ColumnLayout.tsx | 4 +++- .../src/css-module/CurrencyData.tsx | 4 +++- .../src/css-module/DataBadge.tsx | 4 +++- .../src/css-module/DataList.tsx | 4 +++- .../src/css-module/DataPlaceholder.tsx | 4 +++- .../src/css-module/Document.tsx | 4 +++- .../src/css-module/Drawer.tsx | 4 +++- .../src/css-module/Emphasis.tsx | 4 +++- .../src/css-module/Figure.tsx | 4 +++- .../src/css-module/FigureCaption.tsx | 4 +++- .../src/css-module/FormToggle.tsx | 4 +++- .../src/css-module/HTMLContent.tsx | 4 +++- .../src/css-module/Heading.tsx | 20 +++++++++++++------ .../src/css-module/Heading1.tsx | 4 +++- .../src/css-module/Heading2.tsx | 4 +++- .../src/css-module/Heading3.tsx | 4 +++- .../src/css-module/Heading4.tsx | 4 +++- .../src/css-module/Heading5.tsx | 4 +++- .../src/css-module/Heading6.tsx | 4 +++- .../src/css-module/HeadingGroup.tsx | 4 +++- .../src/css-module/IBANData.tsx | 4 +++- .../src/css-module/Icon.tsx | 4 +++- .../src/css-module/Image.tsx | 4 +++- .../src/css-module/IndexCharNav.tsx | 4 +++- .../src/css-module/LinkButton.tsx | 4 +++- .../src/css-module/LinkList.tsx | 4 +++- .../src/css-module/LinkSocial.tsx | 4 +++- .../src/css-module/ListSocial.tsx | 4 +++- .../src/css-module/Logo.tsx | 4 +++- .../src/css-module/Mark.tsx | 4 +++- .../src/css-module/MultilineData.tsx | 4 +++- .../src/css-module/NavBar.tsx | 4 +++- .../src/css-module/NavList.tsx | 4 +++- .../src/css-module/NumberBadge.tsx | 4 +++- .../src/css-module/NumberData.tsx | 4 +++- .../src/css-module/OrderedList.tsx | 4 +++- .../src/css-module/OrderedListItem.tsx | 4 +++- .../src/css-module/Page.tsx | 4 +++- .../src/css-module/PageContent.tsx | 4 +++- .../src/css-module/PageFooter.tsx | 4 +++- .../src/css-module/PageHeader.tsx | 4 +++- .../src/css-module/Paragraph.tsx | 4 +++- .../src/css-module/PreHeading.tsx | 4 +++- .../src/css-module/PreserveData.tsx | 4 +++- .../src/css-module/RichText.tsx | 4 +++- .../src/css-module/Select.tsx | 4 +++- .../src/css-module/Separator.tsx | 4 +++- .../src/css-module/SkipLink.tsx | 4 +++- .../src/css-module/SpotlightSection.tsx | 4 +++- .../src/css-module/StatusBadge.tsx | 4 +++- .../src/css-module/Strong.tsx | 4 +++- .../src/css-module/Subscript.tsx | 4 +++- .../src/css-module/Superscript.tsx | 4 +++- .../src/css-module/Surface.tsx | 4 +++- .../src/css-module/Table.tsx | 4 +++- .../src/css-module/TableBody.tsx | 2 +- .../src/css-module/TableCaption.tsx | 2 +- .../src/css-module/TableCell.tsx | 2 +- .../src/css-module/TableContainer.tsx | 4 +++- .../src/css-module/TableFooter.tsx | 2 +- .../src/css-module/TableHeader.tsx | 2 +- .../src/css-module/TableHeaderCell.tsx | 2 +- .../src/css-module/TableOfContents.tsx | 4 +++- .../src/css-module/TableRow.tsx | 2 +- .../src/css-module/Textarea.tsx | 4 +++- .../src/css-module/URLData.tsx | 4 +++- .../src/css-module/UnorderedList.tsx | 4 +++- .../src/css-module/UnorderedListItem.tsx | 4 +++- .../src/css-module/VegaVisualization.tsx | 4 +++- .../src/css-module/disabled.SearchBar | 2 +- .../src/css-module/insert-style.ts} | 0 .../components-react/body-react/src/css.tsx | 5 ++++- .../body-react/src/insert-style.ts | 8 ++++++++ .../components-react/button-react/src/css.tsx | 2 +- .../button-react/src/insert-style.ts | 8 ++++++++ .../calendar-react/src/css.tsx | 5 ++++- .../calendar-react/src/insert-style.ts | 8 ++++++++ .../checkbox-react/src/css.tsx | 4 ++-- .../checkbox-react/src/insert-style.ts | 8 ++++++++ .../combobox-react/src/css.tsx | 4 +++- .../combobox-react/src/insert-style.ts | 8 ++++++++ .../fieldset-react/src/css.tsx | 4 +++- .../fieldset-react/src/insert-style.ts | 8 ++++++++ .../form-field-description-react/src/css.tsx | 4 +++- .../src/insert-style.ts | 8 ++++++++ .../src/css.tsx | 4 +++- .../src/insert-style.ts | 8 ++++++++ .../form-field-react/src/css.tsx | 4 +++- .../form-field-react/src/insert-style.ts | 8 ++++++++ .../form-label-react/src/css.tsx | 4 +++- .../form-label-react/src/insert-style.ts | 8 ++++++++ .../components-react/link-react/src/css.tsx | 4 +++- .../link-react/src/insert-style.ts | 8 ++++++++ .../listbox-react/src/css.tsx | 4 +++- .../listbox-react/src/insert-style.ts | 8 ++++++++ .../nav-bar-react/src/css.tsx | 5 ++++- .../nav-bar-react/src/insert-style.ts | 8 ++++++++ .../page-body-react/src/css.tsx | 5 ++++- .../page-body-react/src/insert-style.ts | 8 ++++++++ .../page-footer-react/src/css.tsx | 5 ++++- .../page-footer-react/src/insert-style.ts | 8 ++++++++ .../page-header-react/src/css.tsx | 5 ++++- .../page-header-react/src/insert-style.ts | 8 ++++++++ .../page-layout-react/src/css.tsx | 5 ++++- .../page-layout-react/src/insert-style.ts | 8 ++++++++ .../radio-button-react/src/css.tsx | 4 +++- .../radio-button-react/src/insert-style.ts | 8 ++++++++ .../components-react/root-react/src/css.tsx | 5 ++++- .../root-react/src/insert-style.ts | 8 ++++++++ .../textbox-react/src/css.tsx | 4 +++- .../textbox-react/src/insert-style.ts | 8 ++++++++ 126 files changed, 472 insertions(+), 110 deletions(-) delete mode 100644 packages/build-utils-react/rollup-config.mjs rename packages/{components-react/button-react/src/inject.ts => component-library-react/src/css-module/insert-style.ts} (100%) create mode 100644 packages/components-react/body-react/src/insert-style.ts create mode 100644 packages/components-react/button-react/src/insert-style.ts create mode 100644 packages/components-react/calendar-react/src/insert-style.ts create mode 100644 packages/components-react/checkbox-react/src/insert-style.ts create mode 100644 packages/components-react/combobox-react/src/insert-style.ts create mode 100644 packages/components-react/fieldset-react/src/insert-style.ts create mode 100644 packages/components-react/form-field-description-react/src/insert-style.ts create mode 100644 packages/components-react/form-field-error-message-react/src/insert-style.ts create mode 100644 packages/components-react/form-field-react/src/insert-style.ts create mode 100644 packages/components-react/form-label-react/src/insert-style.ts create mode 100644 packages/components-react/link-react/src/insert-style.ts create mode 100644 packages/components-react/listbox-react/src/insert-style.ts create mode 100644 packages/components-react/nav-bar-react/src/insert-style.ts create mode 100644 packages/components-react/page-body-react/src/insert-style.ts create mode 100644 packages/components-react/page-footer-react/src/insert-style.ts create mode 100644 packages/components-react/page-header-react/src/insert-style.ts create mode 100644 packages/components-react/page-layout-react/src/insert-style.ts create mode 100644 packages/components-react/radio-button-react/src/insert-style.ts create mode 100644 packages/components-react/root-react/src/insert-style.ts create mode 100644 packages/components-react/textbox-react/src/insert-style.ts diff --git a/packages/build-utils-react/rollup-config.mjs b/packages/build-utils-react/rollup-config.mjs deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/packages/component-library-react/src/css-module/Accordion.tsx b/packages/component-library-react/src/css-module/Accordion.tsx index aa21bb65ab7..741db0063f5 100644 --- a/packages/component-library-react/src/css-module/Accordion.tsx +++ b/packages/component-library-react/src/css-module/Accordion.tsx @@ -4,7 +4,9 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/accordion-css/src/index.scss'; +import css from '@utrecht/accordion-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); import './Button'; export * from '../Accordion'; diff --git a/packages/component-library-react/src/css-module/Alert.tsx b/packages/component-library-react/src/css-module/Alert.tsx index 58a3f2679c6..d973ed9593e 100644 --- a/packages/component-library-react/src/css-module/Alert.tsx +++ b/packages/component-library-react/src/css-module/Alert.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/alert-css/src/index.scss'; +import css from '@utrecht/alert-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../Alert'; diff --git a/packages/component-library-react/src/css-module/AlertDialog.tsx b/packages/component-library-react/src/css-module/AlertDialog.tsx index 9f1bdadbf74..d55f604adf3 100644 --- a/packages/component-library-react/src/css-module/AlertDialog.tsx +++ b/packages/component-library-react/src/css-module/AlertDialog.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/alert-dialog-css/src/index.scss'; +import css from '@utrecht/alert-dialog-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../AlertDialog'; diff --git a/packages/component-library-react/src/css-module/Article.tsx b/packages/component-library-react/src/css-module/Article.tsx index 0a351756555..49a52ce7066 100644 --- a/packages/component-library-react/src/css-module/Article.tsx +++ b/packages/component-library-react/src/css-module/Article.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/article-css/src/index.scss'; +import css from '@utrecht/article-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../Article'; diff --git a/packages/component-library-react/src/css-module/Backdrop.tsx b/packages/component-library-react/src/css-module/Backdrop.tsx index 29524eec99a..10426bd79d7 100644 --- a/packages/component-library-react/src/css-module/Backdrop.tsx +++ b/packages/component-library-react/src/css-module/Backdrop.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/backdrop-css/src/index.scss'; +import css from '@utrecht/backdrop-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../Backdrop'; diff --git a/packages/component-library-react/src/css-module/BadgeCounter.tsx b/packages/component-library-react/src/css-module/BadgeCounter.tsx index 800c49a4a51..490d83952de 100644 --- a/packages/component-library-react/src/css-module/BadgeCounter.tsx +++ b/packages/component-library-react/src/css-module/BadgeCounter.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/badge-counter-css/src/index.scss'; +import css from '@utrecht/badge-counter-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../BadgeCounter'; diff --git a/packages/component-library-react/src/css-module/BadgeList.tsx b/packages/component-library-react/src/css-module/BadgeList.tsx index 0f1fb5737cb..4c9f98c3423 100644 --- a/packages/component-library-react/src/css-module/BadgeList.tsx +++ b/packages/component-library-react/src/css-module/BadgeList.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/badge-list-css/src/index.scss'; +import css from '@utrecht/badge-list-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../BadgeList'; diff --git a/packages/component-library-react/src/css-module/Blockquote.tsx b/packages/component-library-react/src/css-module/Blockquote.tsx index 44192e6b40d..ccae60de780 100644 --- a/packages/component-library-react/src/css-module/Blockquote.tsx +++ b/packages/component-library-react/src/css-module/Blockquote.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/blockquote-css/src/index.scss'; +import css from '@utrecht/blockquote-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../Blockquote'; diff --git a/packages/component-library-react/src/css-module/BreadcrumbNav.tsx b/packages/component-library-react/src/css-module/BreadcrumbNav.tsx index 37837457307..6d2a9981852 100644 --- a/packages/component-library-react/src/css-module/BreadcrumbNav.tsx +++ b/packages/component-library-react/src/css-module/BreadcrumbNav.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/breadcrumb-nav-css/src/index.scss'; +import css from '@utrecht/breadcrumb-nav-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../BreadcrumbNav'; diff --git a/packages/component-library-react/src/css-module/ButtonGroup.tsx b/packages/component-library-react/src/css-module/ButtonGroup.tsx index 278c80ba852..16344eddafa 100644 --- a/packages/component-library-react/src/css-module/ButtonGroup.tsx +++ b/packages/component-library-react/src/css-module/ButtonGroup.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/button-group-css/src/index.scss'; +import css from '@utrecht/button-group-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../ButtonGroup'; diff --git a/packages/component-library-react/src/css-module/ButtonLink.tsx b/packages/component-library-react/src/css-module/ButtonLink.tsx index c00dd8f998d..3a475114930 100644 --- a/packages/component-library-react/src/css-module/ButtonLink.tsx +++ b/packages/component-library-react/src/css-module/ButtonLink.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/button-link-css/src/index.scss'; +import css from '@utrecht/button-link-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../ButtonLink'; diff --git a/packages/component-library-react/src/css-module/Code.tsx b/packages/component-library-react/src/css-module/Code.tsx index e0accae7aa9..775f595d931 100644 --- a/packages/component-library-react/src/css-module/Code.tsx +++ b/packages/component-library-react/src/css-module/Code.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/code-css/src/index.scss'; +import css from '@utrecht/code-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../Code'; diff --git a/packages/component-library-react/src/css-module/CodeBlock.tsx b/packages/component-library-react/src/css-module/CodeBlock.tsx index fcf72d8d190..7d0eadd5d5b 100644 --- a/packages/component-library-react/src/css-module/CodeBlock.tsx +++ b/packages/component-library-react/src/css-module/CodeBlock.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/code-block-css/src/index.scss'; +import css from '@utrecht/code-block-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../CodeBlock'; diff --git a/packages/component-library-react/src/css-module/ColorSample.tsx b/packages/component-library-react/src/css-module/ColorSample.tsx index 08389a5be37..32f035dca3a 100644 --- a/packages/component-library-react/src/css-module/ColorSample.tsx +++ b/packages/component-library-react/src/css-module/ColorSample.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/color-sample-css/src/index.scss'; +import css from '@utrecht/color-sample-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../ColorSample'; diff --git a/packages/component-library-react/src/css-module/ColumnLayout.tsx b/packages/component-library-react/src/css-module/ColumnLayout.tsx index 6aac87f6c42..28f38fae63e 100644 --- a/packages/component-library-react/src/css-module/ColumnLayout.tsx +++ b/packages/component-library-react/src/css-module/ColumnLayout.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/column-layout-css/src/index.scss'; +import css from '@utrecht/column-layout-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../ColumnLayout'; diff --git a/packages/component-library-react/src/css-module/CurrencyData.tsx b/packages/component-library-react/src/css-module/CurrencyData.tsx index 556d5a10ba2..adc8e53504e 100644 --- a/packages/component-library-react/src/css-module/CurrencyData.tsx +++ b/packages/component-library-react/src/css-module/CurrencyData.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/currency-data-css/src/index.scss'; +import css from '@utrecht/currency-data-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../CurrencyData'; diff --git a/packages/component-library-react/src/css-module/DataBadge.tsx b/packages/component-library-react/src/css-module/DataBadge.tsx index ddaa9420307..11442208068 100644 --- a/packages/component-library-react/src/css-module/DataBadge.tsx +++ b/packages/component-library-react/src/css-module/DataBadge.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/badge-data-css/src/index.scss'; +import css from '@utrecht/badge-data-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../DataBadge'; diff --git a/packages/component-library-react/src/css-module/DataList.tsx b/packages/component-library-react/src/css-module/DataList.tsx index 7691f24caca..a33a30b0af9 100644 --- a/packages/component-library-react/src/css-module/DataList.tsx +++ b/packages/component-library-react/src/css-module/DataList.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/data-list-css/src/index.scss'; +import css from '@utrecht/data-list-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../DataList'; diff --git a/packages/component-library-react/src/css-module/DataPlaceholder.tsx b/packages/component-library-react/src/css-module/DataPlaceholder.tsx index d68f5f54c61..f5151536fb0 100644 --- a/packages/component-library-react/src/css-module/DataPlaceholder.tsx +++ b/packages/component-library-react/src/css-module/DataPlaceholder.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/data-placeholder-css/src/index.scss'; +import css from '@utrecht/data-placeholder-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../DataPlaceholder'; diff --git a/packages/component-library-react/src/css-module/Document.tsx b/packages/component-library-react/src/css-module/Document.tsx index 3cfbc67c4cd..2e86865ee34 100644 --- a/packages/component-library-react/src/css-module/Document.tsx +++ b/packages/component-library-react/src/css-module/Document.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/document-css/src/index.scss'; +import css from '@utrecht/document-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../Document'; diff --git a/packages/component-library-react/src/css-module/Drawer.tsx b/packages/component-library-react/src/css-module/Drawer.tsx index 867f05ea963..402e395e29a 100644 --- a/packages/component-library-react/src/css-module/Drawer.tsx +++ b/packages/component-library-react/src/css-module/Drawer.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/drawer-css/src/index.scss'; +import css from '@utrecht/drawer-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../Drawer'; diff --git a/packages/component-library-react/src/css-module/Emphasis.tsx b/packages/component-library-react/src/css-module/Emphasis.tsx index a180a50f706..5b17e026b1c 100644 --- a/packages/component-library-react/src/css-module/Emphasis.tsx +++ b/packages/component-library-react/src/css-module/Emphasis.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/emphasis-css/src/index.scss'; +import css from '@utrecht/emphasis-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../Emphasis'; diff --git a/packages/component-library-react/src/css-module/Figure.tsx b/packages/component-library-react/src/css-module/Figure.tsx index 69adc4db035..3cf51a254d7 100644 --- a/packages/component-library-react/src/css-module/Figure.tsx +++ b/packages/component-library-react/src/css-module/Figure.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/figure-css/src/index.scss'; +import css from '@utrecht/figure-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../Figure'; diff --git a/packages/component-library-react/src/css-module/FigureCaption.tsx b/packages/component-library-react/src/css-module/FigureCaption.tsx index 8dbb9238a30..50784649648 100644 --- a/packages/component-library-react/src/css-module/FigureCaption.tsx +++ b/packages/component-library-react/src/css-module/FigureCaption.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/figure-css/src/index.scss'; +import css from '@utrecht/figure-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../FigureCaption'; diff --git a/packages/component-library-react/src/css-module/FormToggle.tsx b/packages/component-library-react/src/css-module/FormToggle.tsx index 521a34f49c7..f40dfef1296 100644 --- a/packages/component-library-react/src/css-module/FormToggle.tsx +++ b/packages/component-library-react/src/css-module/FormToggle.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/form-toggle-css/src/index.scss'; +import css from '@utrecht/form-toggle-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../FormToggle'; diff --git a/packages/component-library-react/src/css-module/HTMLContent.tsx b/packages/component-library-react/src/css-module/HTMLContent.tsx index 06262e92ed5..e5fa327c9c2 100644 --- a/packages/component-library-react/src/css-module/HTMLContent.tsx +++ b/packages/component-library-react/src/css-module/HTMLContent.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/html-content-css/src/index.scss'; +import css from '@utrecht/html-content-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../HTMLContent'; diff --git a/packages/component-library-react/src/css-module/Heading.tsx b/packages/component-library-react/src/css-module/Heading.tsx index 3fe13a913df..cdf7343af75 100644 --- a/packages/component-library-react/src/css-module/Heading.tsx +++ b/packages/component-library-react/src/css-module/Heading.tsx @@ -4,11 +4,19 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/heading-1-css/src/index.scss'; -import '@utrecht/heading-2-css/src/index.scss'; -import '@utrecht/heading-3-css/src/index.scss'; -import '@utrecht/heading-4-css/src/index.scss'; -import '@utrecht/heading-5-css/src/index.scss'; -import '@utrecht/heading-6-css/src/index.scss'; +import heading1css from '@utrecht/heading-1-css/dist/index.mjs'; +import heading2css from '@utrecht/heading-2-css/dist/index.mjs'; +import heading3css from '@utrecht/heading-3-css/dist/index.mjs'; +import heading4css from '@utrecht/heading-4-css/dist/index.mjs'; +import heading5css from '@utrecht/heading-5-css/dist/index.mjs'; +import heading6css from '@utrecht/heading-6-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; + +insertStyle(heading1css); +insertStyle(heading2css); +insertStyle(heading3css); +insertStyle(heading4css); +insertStyle(heading5css); +insertStyle(heading6css); export * from '../Heading'; diff --git a/packages/component-library-react/src/css-module/Heading1.tsx b/packages/component-library-react/src/css-module/Heading1.tsx index baabab131b4..e148b555ab2 100644 --- a/packages/component-library-react/src/css-module/Heading1.tsx +++ b/packages/component-library-react/src/css-module/Heading1.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/heading-1-css/src/index.scss'; +import css from '@utrecht/heading-1-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../Heading1'; diff --git a/packages/component-library-react/src/css-module/Heading2.tsx b/packages/component-library-react/src/css-module/Heading2.tsx index 713e28d3b05..5f6204dfe92 100644 --- a/packages/component-library-react/src/css-module/Heading2.tsx +++ b/packages/component-library-react/src/css-module/Heading2.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/heading-2-css/src/index.scss'; +import css from '@utrecht/heading-2-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../Heading2'; diff --git a/packages/component-library-react/src/css-module/Heading3.tsx b/packages/component-library-react/src/css-module/Heading3.tsx index c58a99e9422..fd23bc88b6e 100644 --- a/packages/component-library-react/src/css-module/Heading3.tsx +++ b/packages/component-library-react/src/css-module/Heading3.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/heading-3-css/src/index.scss'; +import css from '@utrecht/heading-3-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../Heading3'; diff --git a/packages/component-library-react/src/css-module/Heading4.tsx b/packages/component-library-react/src/css-module/Heading4.tsx index bf2662d8506..001cdbda990 100644 --- a/packages/component-library-react/src/css-module/Heading4.tsx +++ b/packages/component-library-react/src/css-module/Heading4.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/heading-4-css/src/index.scss'; +import css from '@utrecht/heading-4-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../Heading4'; diff --git a/packages/component-library-react/src/css-module/Heading5.tsx b/packages/component-library-react/src/css-module/Heading5.tsx index 5d991da9a3c..c266553eed4 100644 --- a/packages/component-library-react/src/css-module/Heading5.tsx +++ b/packages/component-library-react/src/css-module/Heading5.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/heading-5-css/src/index.scss'; +import css from '@utrecht/heading-5-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../Heading5'; diff --git a/packages/component-library-react/src/css-module/Heading6.tsx b/packages/component-library-react/src/css-module/Heading6.tsx index 2975c824395..b48a9bb0b6d 100644 --- a/packages/component-library-react/src/css-module/Heading6.tsx +++ b/packages/component-library-react/src/css-module/Heading6.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/heading-6-css/src/index.scss'; +import css from '@utrecht/heading-6-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../Heading6'; diff --git a/packages/component-library-react/src/css-module/HeadingGroup.tsx b/packages/component-library-react/src/css-module/HeadingGroup.tsx index 2b77399c617..4dc51e116b8 100644 --- a/packages/component-library-react/src/css-module/HeadingGroup.tsx +++ b/packages/component-library-react/src/css-module/HeadingGroup.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/heading-group-css/src/index.scss'; +import css from '@utrecht/heading-group-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../HeadingGroup'; diff --git a/packages/component-library-react/src/css-module/IBANData.tsx b/packages/component-library-react/src/css-module/IBANData.tsx index 7d75ec62f23..6675dadb077 100644 --- a/packages/component-library-react/src/css-module/IBANData.tsx +++ b/packages/component-library-react/src/css-module/IBANData.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/iban-data-css/src/index.scss'; +import css from '@utrecht/iban-data-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../IBANData'; diff --git a/packages/component-library-react/src/css-module/Icon.tsx b/packages/component-library-react/src/css-module/Icon.tsx index 026cda85da1..41d8befa30b 100644 --- a/packages/component-library-react/src/css-module/Icon.tsx +++ b/packages/component-library-react/src/css-module/Icon.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/icon/src/index.scss'; +import css from '@utrecht/icon/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../Icon'; diff --git a/packages/component-library-react/src/css-module/Image.tsx b/packages/component-library-react/src/css-module/Image.tsx index 32d3fbe436f..b190458eea0 100644 --- a/packages/component-library-react/src/css-module/Image.tsx +++ b/packages/component-library-react/src/css-module/Image.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/img-css/src/index.scss'; +import css from '@utrecht/img-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../Image'; diff --git a/packages/component-library-react/src/css-module/IndexCharNav.tsx b/packages/component-library-react/src/css-module/IndexCharNav.tsx index b69b7bad821..b1338cb6e7a 100644 --- a/packages/component-library-react/src/css-module/IndexCharNav.tsx +++ b/packages/component-library-react/src/css-module/IndexCharNav.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/index-char-nav-css/src/index.scss'; +import css from '@utrecht/index-char-nav-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../IndexCharNav'; diff --git a/packages/component-library-react/src/css-module/LinkButton.tsx b/packages/component-library-react/src/css-module/LinkButton.tsx index 58744f2386c..f9413eb0bf9 100644 --- a/packages/component-library-react/src/css-module/LinkButton.tsx +++ b/packages/component-library-react/src/css-module/LinkButton.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/link-button-css/src/index.scss'; +import css from '@utrecht/link-button-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../LinkButton'; diff --git a/packages/component-library-react/src/css-module/LinkList.tsx b/packages/component-library-react/src/css-module/LinkList.tsx index 0ff65642220..e0656456058 100644 --- a/packages/component-library-react/src/css-module/LinkList.tsx +++ b/packages/component-library-react/src/css-module/LinkList.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/link-list-css/src/index.scss'; +import css from '@utrecht/link-list-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../LinkList'; diff --git a/packages/component-library-react/src/css-module/LinkSocial.tsx b/packages/component-library-react/src/css-module/LinkSocial.tsx index b4375984021..f9bac4dec73 100644 --- a/packages/component-library-react/src/css-module/LinkSocial.tsx +++ b/packages/component-library-react/src/css-module/LinkSocial.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/link-social-css/src/index.scss'; +import css from '@utrecht/link-social-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../LinkSocial'; diff --git a/packages/component-library-react/src/css-module/ListSocial.tsx b/packages/component-library-react/src/css-module/ListSocial.tsx index 2a705ece186..bafe32baca6 100644 --- a/packages/component-library-react/src/css-module/ListSocial.tsx +++ b/packages/component-library-react/src/css-module/ListSocial.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/list-social-css/src/index.scss'; +import css from '@utrecht/list-social-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../ListSocial'; diff --git a/packages/component-library-react/src/css-module/Logo.tsx b/packages/component-library-react/src/css-module/Logo.tsx index f7b550409bd..791b42f35fb 100644 --- a/packages/component-library-react/src/css-module/Logo.tsx +++ b/packages/component-library-react/src/css-module/Logo.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/logo-css/src/index.scss'; +import css from '@utrecht/logo-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../Logo'; diff --git a/packages/component-library-react/src/css-module/Mark.tsx b/packages/component-library-react/src/css-module/Mark.tsx index cda5c95cc58..4a43bd42247 100644 --- a/packages/component-library-react/src/css-module/Mark.tsx +++ b/packages/component-library-react/src/css-module/Mark.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/mark-css/src/index.scss'; +import css from '@utrecht/mark-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../Mark'; diff --git a/packages/component-library-react/src/css-module/MultilineData.tsx b/packages/component-library-react/src/css-module/MultilineData.tsx index 50bf1e00e0d..de7d07caa0a 100644 --- a/packages/component-library-react/src/css-module/MultilineData.tsx +++ b/packages/component-library-react/src/css-module/MultilineData.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/multiline-data-css/src/index.scss'; +import css from '@utrecht/multiline-data-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../MultilineData'; diff --git a/packages/component-library-react/src/css-module/NavBar.tsx b/packages/component-library-react/src/css-module/NavBar.tsx index 2e97c3aac68..4d2fd703677 100644 --- a/packages/component-library-react/src/css-module/NavBar.tsx +++ b/packages/component-library-react/src/css-module/NavBar.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/nav-bar-css/src/index.scss'; +import css from '@utrecht/nav-bar-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../NavBar'; diff --git a/packages/component-library-react/src/css-module/NavList.tsx b/packages/component-library-react/src/css-module/NavList.tsx index b669e47c20f..cac93f4669b 100644 --- a/packages/component-library-react/src/css-module/NavList.tsx +++ b/packages/component-library-react/src/css-module/NavList.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/nav-list-css/src/index.scss'; +import css from '@utrecht/nav-list-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../NavList'; diff --git a/packages/component-library-react/src/css-module/NumberBadge.tsx b/packages/component-library-react/src/css-module/NumberBadge.tsx index 133b9333954..658374774c9 100644 --- a/packages/component-library-react/src/css-module/NumberBadge.tsx +++ b/packages/component-library-react/src/css-module/NumberBadge.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/number-badge-css/src/index.scss'; +import css from '@utrecht/number-badge-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../NumberBadge'; diff --git a/packages/component-library-react/src/css-module/NumberData.tsx b/packages/component-library-react/src/css-module/NumberData.tsx index 835e4f0d086..3d09d3faf92 100644 --- a/packages/component-library-react/src/css-module/NumberData.tsx +++ b/packages/component-library-react/src/css-module/NumberData.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/number-data-css/src/index.scss'; +import css from '@utrecht/number-data-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../NumberData'; diff --git a/packages/component-library-react/src/css-module/OrderedList.tsx b/packages/component-library-react/src/css-module/OrderedList.tsx index 391c3f1d3a0..87633625525 100644 --- a/packages/component-library-react/src/css-module/OrderedList.tsx +++ b/packages/component-library-react/src/css-module/OrderedList.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/ordered-list-css/src/index.scss'; +import css from '@utrecht/ordered-list-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../OrderedList'; diff --git a/packages/component-library-react/src/css-module/OrderedListItem.tsx b/packages/component-library-react/src/css-module/OrderedListItem.tsx index d6d50a5dbed..82bf5d82fbd 100644 --- a/packages/component-library-react/src/css-module/OrderedListItem.tsx +++ b/packages/component-library-react/src/css-module/OrderedListItem.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/ordered-list-css/src/index.scss'; +import css from '@utrecht/ordered-list-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../OrderedListItem'; diff --git a/packages/component-library-react/src/css-module/Page.tsx b/packages/component-library-react/src/css-module/Page.tsx index 20541d61450..9517dfc9176 100644 --- a/packages/component-library-react/src/css-module/Page.tsx +++ b/packages/component-library-react/src/css-module/Page.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/page-css/src/index.scss'; +import css from '@utrecht/page-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../Page'; diff --git a/packages/component-library-react/src/css-module/PageContent.tsx b/packages/component-library-react/src/css-module/PageContent.tsx index 929667e8326..d7c41e66c23 100644 --- a/packages/component-library-react/src/css-module/PageContent.tsx +++ b/packages/component-library-react/src/css-module/PageContent.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/page-content-css/src/index.scss'; +import css from '@utrecht/page-content-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../PageContent'; diff --git a/packages/component-library-react/src/css-module/PageFooter.tsx b/packages/component-library-react/src/css-module/PageFooter.tsx index 5ed12200d49..6161c3f20cb 100644 --- a/packages/component-library-react/src/css-module/PageFooter.tsx +++ b/packages/component-library-react/src/css-module/PageFooter.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/page-footer-css/src/index.scss'; +import css from '@utrecht/page-footer-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../PageFooter'; diff --git a/packages/component-library-react/src/css-module/PageHeader.tsx b/packages/component-library-react/src/css-module/PageHeader.tsx index 94da7c5018e..4e0f57f3e32 100644 --- a/packages/component-library-react/src/css-module/PageHeader.tsx +++ b/packages/component-library-react/src/css-module/PageHeader.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/page-header-css/src/index.scss'; +import css from '@utrecht/page-header-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../PageHeader'; diff --git a/packages/component-library-react/src/css-module/Paragraph.tsx b/packages/component-library-react/src/css-module/Paragraph.tsx index 4e1765d9ce8..ab2e499f056 100644 --- a/packages/component-library-react/src/css-module/Paragraph.tsx +++ b/packages/component-library-react/src/css-module/Paragraph.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/paragraph-css/src/index.scss'; +import css from '@utrecht/paragraph-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../Paragraph'; diff --git a/packages/component-library-react/src/css-module/PreHeading.tsx b/packages/component-library-react/src/css-module/PreHeading.tsx index a46dcba7061..186cabf5c76 100644 --- a/packages/component-library-react/src/css-module/PreHeading.tsx +++ b/packages/component-library-react/src/css-module/PreHeading.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/pre-heading-css/src/index.scss'; +import css from '@utrecht/pre-heading-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../PreHeading'; diff --git a/packages/component-library-react/src/css-module/PreserveData.tsx b/packages/component-library-react/src/css-module/PreserveData.tsx index 1c8d35216d4..b36aeeea6a4 100644 --- a/packages/component-library-react/src/css-module/PreserveData.tsx +++ b/packages/component-library-react/src/css-module/PreserveData.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/preserve-data-css/src/index.scss'; +import css from '@utrecht/preserve-data-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../PreserveData'; diff --git a/packages/component-library-react/src/css-module/RichText.tsx b/packages/component-library-react/src/css-module/RichText.tsx index d8f2d303df3..b28a3878622 100644 --- a/packages/component-library-react/src/css-module/RichText.tsx +++ b/packages/component-library-react/src/css-module/RichText.tsx @@ -3,6 +3,8 @@ * Copyright (c) 2024 Yolijn van der Kolk */ -import '@utrecht/rich-text-css/src/index.scss'; +import css from '@utrecht/rich-text-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../RichText'; diff --git a/packages/component-library-react/src/css-module/Select.tsx b/packages/component-library-react/src/css-module/Select.tsx index 55040b9d9fb..4af1e93c5b6 100644 --- a/packages/component-library-react/src/css-module/Select.tsx +++ b/packages/component-library-react/src/css-module/Select.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/select-css/src/index.scss'; +import css from '@utrecht/select-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../Select'; diff --git a/packages/component-library-react/src/css-module/Separator.tsx b/packages/component-library-react/src/css-module/Separator.tsx index 6b7d4bd9324..fc8e296ab54 100644 --- a/packages/component-library-react/src/css-module/Separator.tsx +++ b/packages/component-library-react/src/css-module/Separator.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/separator-css/src/index.scss'; +import css from '@utrecht/separator-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../Separator'; diff --git a/packages/component-library-react/src/css-module/SkipLink.tsx b/packages/component-library-react/src/css-module/SkipLink.tsx index 55c40c599e7..0f64b8548e0 100644 --- a/packages/component-library-react/src/css-module/SkipLink.tsx +++ b/packages/component-library-react/src/css-module/SkipLink.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/skip-link-css/src/index.scss'; +import css from '@utrecht/skip-link-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../SkipLink'; diff --git a/packages/component-library-react/src/css-module/SpotlightSection.tsx b/packages/component-library-react/src/css-module/SpotlightSection.tsx index ec36da27ed2..1b0bd909f2f 100644 --- a/packages/component-library-react/src/css-module/SpotlightSection.tsx +++ b/packages/component-library-react/src/css-module/SpotlightSection.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/spotlight-section-css/src/index.scss'; +import css from '@utrecht/spotlight-section-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../SpotlightSection'; diff --git a/packages/component-library-react/src/css-module/StatusBadge.tsx b/packages/component-library-react/src/css-module/StatusBadge.tsx index 80900b3d8aa..97002420898 100644 --- a/packages/component-library-react/src/css-module/StatusBadge.tsx +++ b/packages/component-library-react/src/css-module/StatusBadge.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2023 Frameless B.V. */ -import '@utrecht/badge-status-css/src/index.scss'; +import css from '@utrecht/badge-status-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../StatusBadge'; diff --git a/packages/component-library-react/src/css-module/Strong.tsx b/packages/component-library-react/src/css-module/Strong.tsx index 2320165a7c4..95b8b771dfc 100644 --- a/packages/component-library-react/src/css-module/Strong.tsx +++ b/packages/component-library-react/src/css-module/Strong.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/emphasis-css/src/index.scss'; +import css from '@utrecht/emphasis-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../Strong'; diff --git a/packages/component-library-react/src/css-module/Subscript.tsx b/packages/component-library-react/src/css-module/Subscript.tsx index 8c309b78d4a..805ff2be87a 100644 --- a/packages/component-library-react/src/css-module/Subscript.tsx +++ b/packages/component-library-react/src/css-module/Subscript.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/subscript-css/src/index.scss'; +import css from '@utrecht/subscript-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../Subscript'; diff --git a/packages/component-library-react/src/css-module/Superscript.tsx b/packages/component-library-react/src/css-module/Superscript.tsx index fa6d4aacb53..bcbf724a6aa 100644 --- a/packages/component-library-react/src/css-module/Superscript.tsx +++ b/packages/component-library-react/src/css-module/Superscript.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/superscript-css/src/index.scss'; +import css from '@utrecht/superscript-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../Superscript'; diff --git a/packages/component-library-react/src/css-module/Surface.tsx b/packages/component-library-react/src/css-module/Surface.tsx index eb4b51d3ade..4866f47e84c 100644 --- a/packages/component-library-react/src/css-module/Surface.tsx +++ b/packages/component-library-react/src/css-module/Surface.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/surface-css/src/index.scss'; +import css from '@utrecht/surface-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../Surface'; diff --git a/packages/component-library-react/src/css-module/Table.tsx b/packages/component-library-react/src/css-module/Table.tsx index 81cc2b80278..980d14d651c 100644 --- a/packages/component-library-react/src/css-module/Table.tsx +++ b/packages/component-library-react/src/css-module/Table.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/table-css/src/index.scss'; +import css from '@utrecht/table-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../Table'; diff --git a/packages/component-library-react/src/css-module/TableBody.tsx b/packages/component-library-react/src/css-module/TableBody.tsx index 90291d103e1..e59c4238a4f 100644 --- a/packages/component-library-react/src/css-module/TableBody.tsx +++ b/packages/component-library-react/src/css-module/TableBody.tsx @@ -5,6 +5,6 @@ */ // CSS is already included by `Table` component -// import '../../../../components/table/src/index.scss'; +// import '../../../../components/table/dist/index.mjs';import { insertStyle } from './insert-style'; insertStyle(css); export * from '../TableBody'; diff --git a/packages/component-library-react/src/css-module/TableCaption.tsx b/packages/component-library-react/src/css-module/TableCaption.tsx index 0e7058a297d..5c6b39c4d26 100644 --- a/packages/component-library-react/src/css-module/TableCaption.tsx +++ b/packages/component-library-react/src/css-module/TableCaption.tsx @@ -5,6 +5,6 @@ */ // CSS is already included by `Table` component -// import '../../../../components/table/src/index.scss'; +// import '../../../../components/table/dist/index.mjs';import { insertStyle } from './insert-style'; insertStyle(css); export * from '../TableCaption'; diff --git a/packages/component-library-react/src/css-module/TableCell.tsx b/packages/component-library-react/src/css-module/TableCell.tsx index 65ac8b1a834..5cf45947b71 100644 --- a/packages/component-library-react/src/css-module/TableCell.tsx +++ b/packages/component-library-react/src/css-module/TableCell.tsx @@ -5,6 +5,6 @@ */ // CSS is already included by `Table` component -// import '../../../../components/table/src/index.scss'; +// import '../../../../components/table/dist/index.mjs';import { insertStyle } from './insert-style'; insertStyle(css); export * from '../TableCell'; diff --git a/packages/component-library-react/src/css-module/TableContainer.tsx b/packages/component-library-react/src/css-module/TableContainer.tsx index 3a99e84cfcb..9712ffefc6e 100644 --- a/packages/component-library-react/src/css-module/TableContainer.tsx +++ b/packages/component-library-react/src/css-module/TableContainer.tsx @@ -3,6 +3,8 @@ * Copyright (c) 2024 Frameless B.V. */ -import '@utrecht/table-css/src/index.scss'; +import css from '@utrecht/table-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../TableContainer'; diff --git a/packages/component-library-react/src/css-module/TableFooter.tsx b/packages/component-library-react/src/css-module/TableFooter.tsx index 5b126586869..291b4d53210 100644 --- a/packages/component-library-react/src/css-module/TableFooter.tsx +++ b/packages/component-library-react/src/css-module/TableFooter.tsx @@ -5,6 +5,6 @@ */ // CSS is already included by `Table` component -// import '../../../../components/table/src/index.scss'; +// import '../../../../components/table/dist/index.mjs';import { insertStyle } from './insert-style'; insertStyle(css); export * from '../TableFooter'; diff --git a/packages/component-library-react/src/css-module/TableHeader.tsx b/packages/component-library-react/src/css-module/TableHeader.tsx index e321dea36a2..61033b144ad 100644 --- a/packages/component-library-react/src/css-module/TableHeader.tsx +++ b/packages/component-library-react/src/css-module/TableHeader.tsx @@ -5,6 +5,6 @@ */ // CSS is already included by `Table` component -// import '../../../../components/table/src/index.scss'; +// import '../../../../components/table/dist/index.mjs';import { insertStyle } from './insert-style'; insertStyle(css); export * from '../TableHeader'; diff --git a/packages/component-library-react/src/css-module/TableHeaderCell.tsx b/packages/component-library-react/src/css-module/TableHeaderCell.tsx index 3e273026411..fd5008debb9 100644 --- a/packages/component-library-react/src/css-module/TableHeaderCell.tsx +++ b/packages/component-library-react/src/css-module/TableHeaderCell.tsx @@ -5,6 +5,6 @@ */ // CSS is already included by `Table` component -// import '../../../../components/table/src/index.scss'; +// import '../../../../components/table/dist/index.mjs';import { insertStyle } from './insert-style'; insertStyle(css); export * from '../TableHeaderCell'; diff --git a/packages/component-library-react/src/css-module/TableOfContents.tsx b/packages/component-library-react/src/css-module/TableOfContents.tsx index 15b6a97dead..a632a12c9ae 100644 --- a/packages/component-library-react/src/css-module/TableOfContents.tsx +++ b/packages/component-library-react/src/css-module/TableOfContents.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/table-of-contents-css/src/index.scss'; +import css from '@utrecht/table-of-contents-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../TableOfContents'; diff --git a/packages/component-library-react/src/css-module/TableRow.tsx b/packages/component-library-react/src/css-module/TableRow.tsx index ade61942a3f..3eaa9d30d04 100644 --- a/packages/component-library-react/src/css-module/TableRow.tsx +++ b/packages/component-library-react/src/css-module/TableRow.tsx @@ -5,6 +5,6 @@ */ // CSS is already included by `Table` component -// import '../../../../components/table/src/index.scss'; +// import '../../../../components/table/dist/index.mjs';import { insertStyle } from './insert-style'; insertStyle(css); export * from '../TableRow'; diff --git a/packages/component-library-react/src/css-module/Textarea.tsx b/packages/component-library-react/src/css-module/Textarea.tsx index fbb237d5e69..146b98f3f49 100644 --- a/packages/component-library-react/src/css-module/Textarea.tsx +++ b/packages/component-library-react/src/css-module/Textarea.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/textarea-css/src/index.scss'; +import css from '@utrecht/textarea-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../Textarea'; diff --git a/packages/component-library-react/src/css-module/URLData.tsx b/packages/component-library-react/src/css-module/URLData.tsx index fc85e1a752c..676f63e39ad 100644 --- a/packages/component-library-react/src/css-module/URLData.tsx +++ b/packages/component-library-react/src/css-module/URLData.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/url-data-css/src/index.scss'; +import css from '@utrecht/url-data-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../URLData'; diff --git a/packages/component-library-react/src/css-module/UnorderedList.tsx b/packages/component-library-react/src/css-module/UnorderedList.tsx index 484a2aad477..5d5cdf8681f 100644 --- a/packages/component-library-react/src/css-module/UnorderedList.tsx +++ b/packages/component-library-react/src/css-module/UnorderedList.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/unordered-list-css/src/index.scss'; +import css from '@utrecht/unordered-list-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../UnorderedList'; diff --git a/packages/component-library-react/src/css-module/UnorderedListItem.tsx b/packages/component-library-react/src/css-module/UnorderedListItem.tsx index fe3276acd03..a4cf1718223 100644 --- a/packages/component-library-react/src/css-module/UnorderedListItem.tsx +++ b/packages/component-library-react/src/css-module/UnorderedListItem.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/unordered-list-css/src/index.scss'; +import css from '@utrecht/unordered-list-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../UnorderedListItem'; diff --git a/packages/component-library-react/src/css-module/VegaVisualization.tsx b/packages/component-library-react/src/css-module/VegaVisualization.tsx index 3cfb5f38483..e16ee183711 100644 --- a/packages/component-library-react/src/css-module/VegaVisualization.tsx +++ b/packages/component-library-react/src/css-module/VegaVisualization.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/vega-visualization-css/src/index.scss'; +import css from '@utrecht/vega-visualization-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from '../VegaVisualization'; diff --git a/packages/component-library-react/src/css-module/disabled.SearchBar b/packages/component-library-react/src/css-module/disabled.SearchBar index 54d24f47c9c..962944da1e6 100644 --- a/packages/component-library-react/src/css-module/disabled.SearchBar +++ b/packages/component-library-react/src/css-module/disabled.SearchBar @@ -1,3 +1,3 @@ -import '@utrecht/search-bar-css/src/index.scss'; +import css from '@utrecht/search-bar-css/dist/index.mjs';import { insertStyle } from './insert-style'; insertStyle(css); // export * from "../SearchBar"; diff --git a/packages/components-react/button-react/src/inject.ts b/packages/component-library-react/src/css-module/insert-style.ts similarity index 100% rename from packages/components-react/button-react/src/inject.ts rename to packages/component-library-react/src/css-module/insert-style.ts diff --git a/packages/components-react/body-react/src/css.tsx b/packages/components-react/body-react/src/css.tsx index ade36d9b615..9d3c44a0de7 100644 --- a/packages/components-react/body-react/src/css.tsx +++ b/packages/components-react/body-react/src/css.tsx @@ -4,6 +4,9 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/body-css/src/index.scss'; +import css from '@utrecht/body-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; + +insertStyle(css); export * from './index'; diff --git a/packages/components-react/body-react/src/insert-style.ts b/packages/components-react/body-react/src/insert-style.ts new file mode 100644 index 00000000000..931fa527634 --- /dev/null +++ b/packages/components-react/body-react/src/insert-style.ts @@ -0,0 +1,8 @@ +export const insertStyle = function (css: string) { + if (typeof document !== 'undefined') { + var head = document.head || document.getElementsByTagName('head')[0]; + var style = document.createElement('style'); + style.appendChild(document.createTextNode(css)); + head.appendChild(style); + } +}; diff --git a/packages/components-react/button-react/src/css.tsx b/packages/components-react/button-react/src/css.tsx index a27f00a40e4..4b21be536b3 100644 --- a/packages/components-react/button-react/src/css.tsx +++ b/packages/components-react/button-react/src/css.tsx @@ -5,7 +5,7 @@ */ import css from '@utrecht/button-css/dist/index.mjs'; -import { insertStyle } from './inject'; +import { insertStyle } from './insert-style'; insertStyle(css); diff --git a/packages/components-react/button-react/src/insert-style.ts b/packages/components-react/button-react/src/insert-style.ts new file mode 100644 index 00000000000..931fa527634 --- /dev/null +++ b/packages/components-react/button-react/src/insert-style.ts @@ -0,0 +1,8 @@ +export const insertStyle = function (css: string) { + if (typeof document !== 'undefined') { + var head = document.head || document.getElementsByTagName('head')[0]; + var style = document.createElement('style'); + style.appendChild(document.createTextNode(css)); + head.appendChild(style); + } +}; diff --git a/packages/components-react/calendar-react/src/css.tsx b/packages/components-react/calendar-react/src/css.tsx index 9bee2932104..8081a6c0d90 100644 --- a/packages/components-react/calendar-react/src/css.tsx +++ b/packages/components-react/calendar-react/src/css.tsx @@ -4,7 +4,10 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/calendar-css/src/index.scss'; +import css from '@utrecht/calendar-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; + +insertStyle(css); export type { CalendarProps } from './index'; export { Calendar } from './index'; diff --git a/packages/components-react/calendar-react/src/insert-style.ts b/packages/components-react/calendar-react/src/insert-style.ts new file mode 100644 index 00000000000..931fa527634 --- /dev/null +++ b/packages/components-react/calendar-react/src/insert-style.ts @@ -0,0 +1,8 @@ +export const insertStyle = function (css: string) { + if (typeof document !== 'undefined') { + var head = document.head || document.getElementsByTagName('head')[0]; + var style = document.createElement('style'); + style.appendChild(document.createTextNode(css)); + head.appendChild(style); + } +}; diff --git a/packages/components-react/checkbox-react/src/css.tsx b/packages/components-react/checkbox-react/src/css.tsx index 685c78977b1..20ea58bb235 100644 --- a/packages/components-react/checkbox-react/src/css.tsx +++ b/packages/components-react/checkbox-react/src/css.tsx @@ -4,8 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/custom-checkbox-css/src/index.scss'; -import '@utrecht/checkbox-css/src/index.scss'; +import '@utrecht/custom-checkbox-css/dist/index.mjs'; +import '@utrecht/checkbox-css/dist/index.mjs'; export type { CheckboxProps } from './index'; export { Checkbox } from './index'; diff --git a/packages/components-react/checkbox-react/src/insert-style.ts b/packages/components-react/checkbox-react/src/insert-style.ts new file mode 100644 index 00000000000..931fa527634 --- /dev/null +++ b/packages/components-react/checkbox-react/src/insert-style.ts @@ -0,0 +1,8 @@ +export const insertStyle = function (css: string) { + if (typeof document !== 'undefined') { + var head = document.head || document.getElementsByTagName('head')[0]; + var style = document.createElement('style'); + style.appendChild(document.createTextNode(css)); + head.appendChild(style); + } +}; diff --git a/packages/components-react/combobox-react/src/css.tsx b/packages/components-react/combobox-react/src/css.tsx index 8bcfed6dbed..5e9835c85bf 100644 --- a/packages/components-react/combobox-react/src/css.tsx +++ b/packages/components-react/combobox-react/src/css.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/combobox-css/src/index.scss'; +import css from '@utrecht/combobox-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from './index'; diff --git a/packages/components-react/combobox-react/src/insert-style.ts b/packages/components-react/combobox-react/src/insert-style.ts new file mode 100644 index 00000000000..931fa527634 --- /dev/null +++ b/packages/components-react/combobox-react/src/insert-style.ts @@ -0,0 +1,8 @@ +export const insertStyle = function (css: string) { + if (typeof document !== 'undefined') { + var head = document.head || document.getElementsByTagName('head')[0]; + var style = document.createElement('style'); + style.appendChild(document.createTextNode(css)); + head.appendChild(style); + } +}; diff --git a/packages/components-react/fieldset-react/src/css.tsx b/packages/components-react/fieldset-react/src/css.tsx index 9dc2e7d8517..af6616a7e8c 100644 --- a/packages/components-react/fieldset-react/src/css.tsx +++ b/packages/components-react/fieldset-react/src/css.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/form-fieldset-css/src/index.scss'; +import css from '@utrecht/form-fieldset-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from './index'; diff --git a/packages/components-react/fieldset-react/src/insert-style.ts b/packages/components-react/fieldset-react/src/insert-style.ts new file mode 100644 index 00000000000..931fa527634 --- /dev/null +++ b/packages/components-react/fieldset-react/src/insert-style.ts @@ -0,0 +1,8 @@ +export const insertStyle = function (css: string) { + if (typeof document !== 'undefined') { + var head = document.head || document.getElementsByTagName('head')[0]; + var style = document.createElement('style'); + style.appendChild(document.createTextNode(css)); + head.appendChild(style); + } +}; diff --git a/packages/components-react/form-field-description-react/src/css.tsx b/packages/components-react/form-field-description-react/src/css.tsx index f4979b22efb..90782cd4028 100644 --- a/packages/components-react/form-field-description-react/src/css.tsx +++ b/packages/components-react/form-field-description-react/src/css.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/form-field-description-css/src/index.scss'; +import css from '@utrecht/form-field-description-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from './index'; diff --git a/packages/components-react/form-field-description-react/src/insert-style.ts b/packages/components-react/form-field-description-react/src/insert-style.ts new file mode 100644 index 00000000000..931fa527634 --- /dev/null +++ b/packages/components-react/form-field-description-react/src/insert-style.ts @@ -0,0 +1,8 @@ +export const insertStyle = function (css: string) { + if (typeof document !== 'undefined') { + var head = document.head || document.getElementsByTagName('head')[0]; + var style = document.createElement('style'); + style.appendChild(document.createTextNode(css)); + head.appendChild(style); + } +}; diff --git a/packages/components-react/form-field-error-message-react/src/css.tsx b/packages/components-react/form-field-error-message-react/src/css.tsx index d32e79e2c23..eaa0a5f983e 100644 --- a/packages/components-react/form-field-error-message-react/src/css.tsx +++ b/packages/components-react/form-field-error-message-react/src/css.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/form-field-error-message-css/src/index.scss'; +import css from '@utrecht/form-field-error-message-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from './index'; diff --git a/packages/components-react/form-field-error-message-react/src/insert-style.ts b/packages/components-react/form-field-error-message-react/src/insert-style.ts new file mode 100644 index 00000000000..931fa527634 --- /dev/null +++ b/packages/components-react/form-field-error-message-react/src/insert-style.ts @@ -0,0 +1,8 @@ +export const insertStyle = function (css: string) { + if (typeof document !== 'undefined') { + var head = document.head || document.getElementsByTagName('head')[0]; + var style = document.createElement('style'); + style.appendChild(document.createTextNode(css)); + head.appendChild(style); + } +}; diff --git a/packages/components-react/form-field-react/src/css.tsx b/packages/components-react/form-field-react/src/css.tsx index 9c6f0f566e5..4494d496ea2 100644 --- a/packages/components-react/form-field-react/src/css.tsx +++ b/packages/components-react/form-field-react/src/css.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/form-field-css/src/index.scss'; +import css from '@utrecht/form-field-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from './index'; diff --git a/packages/components-react/form-field-react/src/insert-style.ts b/packages/components-react/form-field-react/src/insert-style.ts new file mode 100644 index 00000000000..931fa527634 --- /dev/null +++ b/packages/components-react/form-field-react/src/insert-style.ts @@ -0,0 +1,8 @@ +export const insertStyle = function (css: string) { + if (typeof document !== 'undefined') { + var head = document.head || document.getElementsByTagName('head')[0]; + var style = document.createElement('style'); + style.appendChild(document.createTextNode(css)); + head.appendChild(style); + } +}; diff --git a/packages/components-react/form-label-react/src/css.tsx b/packages/components-react/form-label-react/src/css.tsx index 6a87e514ded..dcd54f01cac 100644 --- a/packages/components-react/form-label-react/src/css.tsx +++ b/packages/components-react/form-label-react/src/css.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/form-label-css/src/index.scss'; +import css from '@utrecht/form-label-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from './index'; diff --git a/packages/components-react/form-label-react/src/insert-style.ts b/packages/components-react/form-label-react/src/insert-style.ts new file mode 100644 index 00000000000..931fa527634 --- /dev/null +++ b/packages/components-react/form-label-react/src/insert-style.ts @@ -0,0 +1,8 @@ +export const insertStyle = function (css: string) { + if (typeof document !== 'undefined') { + var head = document.head || document.getElementsByTagName('head')[0]; + var style = document.createElement('style'); + style.appendChild(document.createTextNode(css)); + head.appendChild(style); + } +}; diff --git a/packages/components-react/link-react/src/css.tsx b/packages/components-react/link-react/src/css.tsx index 54d02134d0a..d3e184ee043 100644 --- a/packages/components-react/link-react/src/css.tsx +++ b/packages/components-react/link-react/src/css.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/link-css/src/index.scss'; +import css from '@utrecht/link-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from './index'; diff --git a/packages/components-react/link-react/src/insert-style.ts b/packages/components-react/link-react/src/insert-style.ts new file mode 100644 index 00000000000..931fa527634 --- /dev/null +++ b/packages/components-react/link-react/src/insert-style.ts @@ -0,0 +1,8 @@ +export const insertStyle = function (css: string) { + if (typeof document !== 'undefined') { + var head = document.head || document.getElementsByTagName('head')[0]; + var style = document.createElement('style'); + style.appendChild(document.createTextNode(css)); + head.appendChild(style); + } +}; diff --git a/packages/components-react/listbox-react/src/css.tsx b/packages/components-react/listbox-react/src/css.tsx index a808e73411e..30205924cd4 100644 --- a/packages/components-react/listbox-react/src/css.tsx +++ b/packages/components-react/listbox-react/src/css.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/listbox-css/src/index.scss'; +import css from '@utrecht/listbox-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from './index'; diff --git a/packages/components-react/listbox-react/src/insert-style.ts b/packages/components-react/listbox-react/src/insert-style.ts new file mode 100644 index 00000000000..931fa527634 --- /dev/null +++ b/packages/components-react/listbox-react/src/insert-style.ts @@ -0,0 +1,8 @@ +export const insertStyle = function (css: string) { + if (typeof document !== 'undefined') { + var head = document.head || document.getElementsByTagName('head')[0]; + var style = document.createElement('style'); + style.appendChild(document.createTextNode(css)); + head.appendChild(style); + } +}; diff --git a/packages/components-react/nav-bar-react/src/css.tsx b/packages/components-react/nav-bar-react/src/css.tsx index 97e224914e9..3760ce24afc 100644 --- a/packages/components-react/nav-bar-react/src/css.tsx +++ b/packages/components-react/nav-bar-react/src/css.tsx @@ -4,6 +4,9 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/nav-bar-css/src/index.scss'; +import css from '@utrecht/nav-bar-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; + +insertStyle(css); export * from './index'; diff --git a/packages/components-react/nav-bar-react/src/insert-style.ts b/packages/components-react/nav-bar-react/src/insert-style.ts new file mode 100644 index 00000000000..931fa527634 --- /dev/null +++ b/packages/components-react/nav-bar-react/src/insert-style.ts @@ -0,0 +1,8 @@ +export const insertStyle = function (css: string) { + if (typeof document !== 'undefined') { + var head = document.head || document.getElementsByTagName('head')[0]; + var style = document.createElement('style'); + style.appendChild(document.createTextNode(css)); + head.appendChild(style); + } +}; diff --git a/packages/components-react/page-body-react/src/css.tsx b/packages/components-react/page-body-react/src/css.tsx index 9fb400daf0d..1123ca63f14 100644 --- a/packages/components-react/page-body-react/src/css.tsx +++ b/packages/components-react/page-body-react/src/css.tsx @@ -4,6 +4,9 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/page-body-css/src/index.scss'; +import css from '@utrecht/page-body-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; + +insertStyle(css); export * from './index'; diff --git a/packages/components-react/page-body-react/src/insert-style.ts b/packages/components-react/page-body-react/src/insert-style.ts new file mode 100644 index 00000000000..931fa527634 --- /dev/null +++ b/packages/components-react/page-body-react/src/insert-style.ts @@ -0,0 +1,8 @@ +export const insertStyle = function (css: string) { + if (typeof document !== 'undefined') { + var head = document.head || document.getElementsByTagName('head')[0]; + var style = document.createElement('style'); + style.appendChild(document.createTextNode(css)); + head.appendChild(style); + } +}; diff --git a/packages/components-react/page-footer-react/src/css.tsx b/packages/components-react/page-footer-react/src/css.tsx index d3d1e67d2d8..5294253e804 100644 --- a/packages/components-react/page-footer-react/src/css.tsx +++ b/packages/components-react/page-footer-react/src/css.tsx @@ -4,6 +4,9 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/page-footer-css/src/index.scss'; +import css from '@utrecht/page-footer-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; + +insertStyle(css); export * from './index'; diff --git a/packages/components-react/page-footer-react/src/insert-style.ts b/packages/components-react/page-footer-react/src/insert-style.ts new file mode 100644 index 00000000000..931fa527634 --- /dev/null +++ b/packages/components-react/page-footer-react/src/insert-style.ts @@ -0,0 +1,8 @@ +export const insertStyle = function (css: string) { + if (typeof document !== 'undefined') { + var head = document.head || document.getElementsByTagName('head')[0]; + var style = document.createElement('style'); + style.appendChild(document.createTextNode(css)); + head.appendChild(style); + } +}; diff --git a/packages/components-react/page-header-react/src/css.tsx b/packages/components-react/page-header-react/src/css.tsx index 067a6a9c66a..1ce6814a3ea 100644 --- a/packages/components-react/page-header-react/src/css.tsx +++ b/packages/components-react/page-header-react/src/css.tsx @@ -4,6 +4,9 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/page-header-css/src/index.scss'; +import css from '@utrecht/page-header-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; + +insertStyle(css); export * from './index'; diff --git a/packages/components-react/page-header-react/src/insert-style.ts b/packages/components-react/page-header-react/src/insert-style.ts new file mode 100644 index 00000000000..931fa527634 --- /dev/null +++ b/packages/components-react/page-header-react/src/insert-style.ts @@ -0,0 +1,8 @@ +export const insertStyle = function (css: string) { + if (typeof document !== 'undefined') { + var head = document.head || document.getElementsByTagName('head')[0]; + var style = document.createElement('style'); + style.appendChild(document.createTextNode(css)); + head.appendChild(style); + } +}; diff --git a/packages/components-react/page-layout-react/src/css.tsx b/packages/components-react/page-layout-react/src/css.tsx index 6f50df82888..e57244087e2 100644 --- a/packages/components-react/page-layout-react/src/css.tsx +++ b/packages/components-react/page-layout-react/src/css.tsx @@ -4,6 +4,9 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/page-layout-css/src/index.scss'; +import css from '@utrecht/page-layout-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; + +insertStyle(css); export * from './index'; diff --git a/packages/components-react/page-layout-react/src/insert-style.ts b/packages/components-react/page-layout-react/src/insert-style.ts new file mode 100644 index 00000000000..931fa527634 --- /dev/null +++ b/packages/components-react/page-layout-react/src/insert-style.ts @@ -0,0 +1,8 @@ +export const insertStyle = function (css: string) { + if (typeof document !== 'undefined') { + var head = document.head || document.getElementsByTagName('head')[0]; + var style = document.createElement('style'); + style.appendChild(document.createTextNode(css)); + head.appendChild(style); + } +}; diff --git a/packages/components-react/radio-button-react/src/css.tsx b/packages/components-react/radio-button-react/src/css.tsx index 8d449857607..4f80fc6dff8 100644 --- a/packages/components-react/radio-button-react/src/css.tsx +++ b/packages/components-react/radio-button-react/src/css.tsx @@ -4,7 +4,9 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/radio-button-css/src/index.scss'; +import css from '@utrecht/radio-button-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export type { RadioButtonProps } from './index'; export { RadioButton } from './index'; diff --git a/packages/components-react/radio-button-react/src/insert-style.ts b/packages/components-react/radio-button-react/src/insert-style.ts new file mode 100644 index 00000000000..931fa527634 --- /dev/null +++ b/packages/components-react/radio-button-react/src/insert-style.ts @@ -0,0 +1,8 @@ +export const insertStyle = function (css: string) { + if (typeof document !== 'undefined') { + var head = document.head || document.getElementsByTagName('head')[0]; + var style = document.createElement('style'); + style.appendChild(document.createTextNode(css)); + head.appendChild(style); + } +}; diff --git a/packages/components-react/root-react/src/css.tsx b/packages/components-react/root-react/src/css.tsx index eecc2837ed3..eaa105db993 100644 --- a/packages/components-react/root-react/src/css.tsx +++ b/packages/components-react/root-react/src/css.tsx @@ -4,6 +4,9 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/root-css/src/index.scss'; +import css from '@utrecht/root-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; + +insertStyle(css); export * from './index'; diff --git a/packages/components-react/root-react/src/insert-style.ts b/packages/components-react/root-react/src/insert-style.ts new file mode 100644 index 00000000000..931fa527634 --- /dev/null +++ b/packages/components-react/root-react/src/insert-style.ts @@ -0,0 +1,8 @@ +export const insertStyle = function (css: string) { + if (typeof document !== 'undefined') { + var head = document.head || document.getElementsByTagName('head')[0]; + var style = document.createElement('style'); + style.appendChild(document.createTextNode(css)); + head.appendChild(style); + } +}; diff --git a/packages/components-react/textbox-react/src/css.tsx b/packages/components-react/textbox-react/src/css.tsx index c8598d7b9c6..70e88122b00 100644 --- a/packages/components-react/textbox-react/src/css.tsx +++ b/packages/components-react/textbox-react/src/css.tsx @@ -4,6 +4,8 @@ * Copyright (c) 2021-2024 Gemeente Utrecht */ -import '@utrecht/textbox-css/src/index.scss'; +import css from '@utrecht/textbox-css/dist/index.mjs'; +import { insertStyle } from './insert-style'; +insertStyle(css); export * from './index'; diff --git a/packages/components-react/textbox-react/src/insert-style.ts b/packages/components-react/textbox-react/src/insert-style.ts new file mode 100644 index 00000000000..931fa527634 --- /dev/null +++ b/packages/components-react/textbox-react/src/insert-style.ts @@ -0,0 +1,8 @@ +export const insertStyle = function (css: string) { + if (typeof document !== 'undefined') { + var head = document.head || document.getElementsByTagName('head')[0]; + var style = document.createElement('style'); + style.appendChild(document.createTextNode(css)); + head.appendChild(style); + } +}; From ac4c7a550e2d888f5405037309851592b9b21ea0 Mon Sep 17 00:00:00 2001 From: Robbert Broersma Date: Mon, 18 Nov 2024 00:33:26 +0100 Subject: [PATCH 5/8] refactor: use `lodash-es` for ES Modules support --- packages/components-react/calendar-react/package.json | 4 ++-- packages/components-react/calendar-react/src/index.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/components-react/calendar-react/package.json b/packages/components-react/calendar-react/package.json index 1decf59530f..16ac67f1c0a 100644 --- a/packages/components-react/calendar-react/package.json +++ b/packages/components-react/calendar-react/package.json @@ -31,7 +31,7 @@ "@testing-library/react": "16.0.1", "@testing-library/user-event": "14.5.1", "@types/jest": "29.5.13", - "@types/lodash.chunk": "4.2.9", + "@types/lodash-es": "4.17.12", "@types/react": "18.3.3", "@types/testing-library__jest-dom": "5.14.9", "jest": "29.7.0", @@ -66,6 +66,6 @@ "@utrecht/calendar-css": "workspace:*", "clsx": "2.1.1", "date-fns": "2.30.0", - "lodash.chunk": "4.2.0" + "lodash-es": "4.17.21" } } diff --git a/packages/components-react/calendar-react/src/index.tsx b/packages/components-react/calendar-react/src/index.tsx index 00d783b533b..3d9e63eb071 100644 --- a/packages/components-react/calendar-react/src/index.tsx +++ b/packages/components-react/calendar-react/src/index.tsx @@ -21,7 +21,7 @@ import { startOfWeek, } from 'date-fns'; import { enUS } from 'date-fns/locale'; -import chunk from 'lodash.chunk'; +import chunk from 'lodash-es/chunk'; import { useState } from 'react'; import { CalendarNavigation } from './CalendarNavigation'; import { CalendarNavigationButtons } from './CalendarNavigationButtons'; From 3d14f92e41fefe39749c0f31f60886ba14c2d54d Mon Sep 17 00:00:00 2001 From: Robbert Broersma Date: Mon, 18 Nov 2024 00:35:27 +0100 Subject: [PATCH 6/8] refactor: switch to reusable rollup config for React components --- .../components-react/body-react/package.json | 14 +- .../body-react/rollup.config.mjs | 88 +- .../calendar-react/package.json | 13 +- .../calendar-react/rollup.config.mjs | 88 +- .../checkbox-group-react/package.json | 14 +- .../checkbox-group-react/rollup.config.mjs | 88 +- .../checkbox-react/package.json | 14 +- .../checkbox-react/rollup.config.mjs | 88 +- .../combobox-react/package.json | 14 +- .../combobox-react/rollup.config.mjs | 88 +- .../fieldset-react/package.json | 14 +- .../fieldset-react/rollup.config.mjs | 88 +- .../form-field-checkbox-react/package.json | 14 +- .../rollup.config.mjs | 88 +- .../form-field-description-react/package.json | 14 +- .../rollup.config.mjs | 88 +- .../package.json | 14 +- .../rollup.config.mjs | 88 +- .../form-field-react/package.json | 14 +- .../form-field-react/rollup.config.mjs | 88 +- .../form-label-react/package.json | 14 +- .../form-label-react/rollup.config.mjs | 88 +- .../components-react/link-react/package.json | 14 +- .../link-react/rollup.config.mjs | 88 +- .../listbox-react/package.json | 14 +- .../listbox-react/rollup.config.mjs | 88 +- .../nav-bar-react/package.json | 14 +- .../nav-bar-react/rollup.config.mjs | 88 +- .../page-body-react/package.json | 14 +- .../page-body-react/rollup.config.mjs | 88 +- .../page-footer-react/package.json | 14 +- .../page-footer-react/rollup.config.mjs | 88 +- .../page-header-react/package.json | 14 +- .../page-header-react/rollup.config.mjs | 88 +- .../page-layout-react/package.json | 14 +- .../page-layout-react/rollup.config.mjs | 88 +- .../radio-button-react/package.json | 14 +- .../radio-button-react/rollup.config.mjs | 88 +- .../radio-group-react/package.json | 14 +- .../radio-group-react/rollup.config.mjs | 88 +- .../components-react/root-react/package.json | 14 +- .../root-react/rollup.config.mjs | 88 +- .../textbox-react/package.json | 14 +- .../textbox-react/rollup.config.mjs | 88 +- pnpm-lock.yaml | 895 ++++++------------ 45 files changed, 339 insertions(+), 2799 deletions(-) diff --git a/packages/components-react/body-react/package.json b/packages/components-react/body-react/package.json index 913c50a52ea..f8542c139de 100644 --- a/packages/components-react/body-react/package.json +++ b/packages/components-react/body-react/package.json @@ -19,15 +19,6 @@ "typecheck": "tsc --noEmit" }, "devDependencies": { - "@babel/plugin-transform-runtime": "7.24.7", - "@babel/preset-env": "7.24.7", - "@babel/preset-react": "7.24.7", - "@babel/preset-typescript": "7.24.7", - "@rollup/plugin-babel": "6.0.4", - "@rollup/plugin-commonjs": "26.0.1", - "@rollup/plugin-json": "6.1.0", - "@rollup/plugin-node-resolve": "15.2.3", - "@rollup/plugin-typescript": "12.1.0", "@testing-library/dom": "8.20.1", "@testing-library/jest-dom": "6.5.0", "@testing-library/react": "16.0.1", @@ -35,15 +26,12 @@ "@types/jest": "29.5.13", "@types/react": "18.3.3", "@types/testing-library__jest-dom": "5.14.9", + "@utrecht/build-utils-react": "workspace:*", "@utrecht/body-css": "workspace:*", "jest": "29.7.0", "jest-environment-jsdom": "29.7.0", "react": "18.3.1", "rollup": "4.23.0", - "rollup-plugin-filesize": "10.0.0", - "rollup-plugin-node-externals": "7.1.2", - "rollup-plugin-peer-deps-external": "2.2.4", - "rollup-plugin-postcss": "4.0.2", "typescript": "5.6.2" }, "keywords": [ diff --git a/packages/components-react/body-react/rollup.config.mjs b/packages/components-react/body-react/rollup.config.mjs index 97d452b8ca0..10d600728f2 100644 --- a/packages/components-react/body-react/rollup.config.mjs +++ b/packages/components-react/body-react/rollup.config.mjs @@ -1,87 +1,3 @@ -import babel from '@rollup/plugin-babel'; -import commonjs from '@rollup/plugin-commonjs'; -import json from '@rollup/plugin-json'; -import resolve from '@rollup/plugin-node-resolve'; -import typescript from '@rollup/plugin-typescript'; -import { readFileSync } from 'fs'; -import filesize from 'rollup-plugin-filesize'; -import nodeExternal from 'rollup-plugin-node-externals'; -import peerDepsExternal from 'rollup-plugin-peer-deps-external'; -import postcss from 'rollup-plugin-postcss'; +import { createConfig } from '@utrecht/build-utils-react/src/rollup.mjs'; -const packagePath = new URL('./package.json', import.meta.url).pathname; -const packageJson = JSON.parse(readFileSync(packagePath, 'utf8')); - -/** - * @type {import('rollup').RollupOptions} - */ -export default [ - { - input: './src/index.tsx', - output: [ - { - file: packageJson.main, - format: 'cjs', - sourcemap: true, - }, - { - file: packageJson.module, - format: 'es', - sourcemap: true, - }, - ], - plugins: [ - peerDepsExternal(), - commonjs(), - nodeExternal(), - resolve({ browser: true }), - json(), - typescript({ tsconfig: './tsconfig.build.json' }), - babel({ - presets: ['@babel/preset-react'], - babelHelpers: 'runtime', - exclude: ['node_modules/**', 'dist/**'], - extensions: ['.ts', '.tsx'], - inputSourceMap: true, - plugins: ['@babel/plugin-transform-runtime'], - }), - filesize(), - ], - }, - { - input: './src/css.tsx', - output: [ - { - file: './dist/css.js', - format: 'cjs', - sourcemap: true, - }, - { - file: './dist/css.mjs', - format: 'es', - sourcemap: true, - }, - ], - plugins: [ - peerDepsExternal(), - commonjs(), - nodeExternal(), - resolve({ browser: true }), - json(), - postcss({ - extensions: ['.css', '.scss'], - minimize: true, - }), - typescript({ tsconfig: './tsconfig.build.json' }), - babel({ - presets: ['@babel/preset-react'], - babelHelpers: 'runtime', - exclude: ['node_modules/**', 'dist/**'], - extensions: ['.ts', '.tsx'], - inputSourceMap: true, - plugins: ['@babel/plugin-transform-runtime'], - }), - filesize(), - ], - }, -]; +export default createConfig(); diff --git a/packages/components-react/calendar-react/package.json b/packages/components-react/calendar-react/package.json index 16ac67f1c0a..3d99f2e6147 100644 --- a/packages/components-react/calendar-react/package.json +++ b/packages/components-react/calendar-react/package.json @@ -19,13 +19,6 @@ "typecheck": "tsc --noEmit" }, "devDependencies": { - "@babel/plugin-transform-runtime": "7.24.7", - "@babel/preset-react": "7.24.7", - "@rollup/plugin-babel": "6.0.4", - "@rollup/plugin-commonjs": "26.0.1", - "@rollup/plugin-json": "6.1.0", - "@rollup/plugin-node-resolve": "15.2.3", - "@rollup/plugin-typescript": "12.1.0", "@testing-library/dom": "8.20.1", "@testing-library/jest-dom": "6.5.0", "@testing-library/react": "16.0.1", @@ -34,15 +27,11 @@ "@types/lodash-es": "4.17.12", "@types/react": "18.3.3", "@types/testing-library__jest-dom": "5.14.9", + "@utrecht/build-utils-react": "workspace:*", "jest": "29.7.0", "jest-environment-jsdom": "29.7.0", "react": "18.3.1", "rollup": "4.23.0", - "rollup-plugin-filesize": "10.0.0", - "rollup-plugin-node-externals": "7.1.2", - "rollup-plugin-peer-deps-external": "2.2.4", - "rollup-plugin-postcss": "4.0.2", - "rollup-plugin-typescript2": "0.36.0", "typescript": "5.6.2" }, "keywords": [ diff --git a/packages/components-react/calendar-react/rollup.config.mjs b/packages/components-react/calendar-react/rollup.config.mjs index 9f256001b74..10d600728f2 100644 --- a/packages/components-react/calendar-react/rollup.config.mjs +++ b/packages/components-react/calendar-react/rollup.config.mjs @@ -1,87 +1,3 @@ -import babel from '@rollup/plugin-babel'; -import commonjs from '@rollup/plugin-commonjs'; -import json from '@rollup/plugin-json'; -import resolve from '@rollup/plugin-node-resolve'; -import typescript from '@rollup/plugin-typescript'; -import { readFileSync } from 'fs'; -import filesize from 'rollup-plugin-filesize'; -import nodeExternal from 'rollup-plugin-node-externals'; -import peerDepsExternal from 'rollup-plugin-peer-deps-external'; -import postcss from 'rollup-plugin-postcss'; +import { createConfig } from '@utrecht/build-utils-react/src/rollup.mjs'; -const packagePath = new URL('./package.json', import.meta.url).pathname; -const packageJson = JSON.parse(readFileSync(packagePath, 'utf8')); - -/** - * @type {import('rollup').RollupOptions} - */ -export default [ - { - input: './src/index.tsx', - output: [ - { - file: packageJson.main, - format: 'cjs', - sourcemap: true, - }, - { - file: packageJson.module, - format: 'es', - sourcemap: true, - }, - ], - plugins: [ - peerDepsExternal(), - commonjs(), - nodeExternal(), - resolve({ browser: true }), - json(), - typescript({ tsconfig: './tsconfig.build.json', outputToFilesystem: false }), - babel({ - presets: ['@babel/preset-react'], - babelHelpers: 'runtime', - exclude: ['node_modules/**', 'dist/**'], - extensions: ['.ts', '.tsx'], - inputSourceMap: true, - plugins: ['@babel/plugin-transform-runtime'], - }), - filesize(), - ], - }, - { - input: './src/css.tsx', - output: [ - { - file: './dist/css.cjs', - format: 'cjs', - sourcemap: true, - }, - { - file: './dist/css.mjs', - format: 'es', - sourcemap: true, - }, - ], - plugins: [ - peerDepsExternal(), - commonjs(), - nodeExternal(), - resolve({ browser: true }), - json(), - postcss({ - extensions: ['.css', '.scss'], - minimize: true, - }), - typescript({ tsconfig: './tsconfig.build.json', outputToFilesystem: false }), - babel({ - presets: ['@babel/preset-react'], - babelHelpers: 'runtime', - exclude: ['node_modules/**', 'dist/**'], - extensions: ['.ts', '.tsx'], - inputSourceMap: true, - plugins: ['@babel/plugin-transform-runtime'], - }), - filesize(), - ], - }, -]; +export default createConfig(); diff --git a/packages/components-react/checkbox-group-react/package.json b/packages/components-react/checkbox-group-react/package.json index d26f3c8c6d1..2bd3228682a 100644 --- a/packages/components-react/checkbox-group-react/package.json +++ b/packages/components-react/checkbox-group-react/package.json @@ -19,15 +19,6 @@ "typecheck": "tsc --noEmit" }, "devDependencies": { - "@babel/plugin-transform-runtime": "7.24.7", - "@babel/preset-env": "7.24.7", - "@babel/preset-react": "7.24.7", - "@babel/preset-typescript": "7.24.7", - "@rollup/plugin-babel": "6.0.4", - "@rollup/plugin-commonjs": "26.0.1", - "@rollup/plugin-json": "6.1.0", - "@rollup/plugin-node-resolve": "15.2.3", - "@rollup/plugin-typescript": "12.1.0", "@testing-library/dom": "8.20.1", "@testing-library/jest-dom": "6.5.0", "@testing-library/react": "16.0.1", @@ -35,15 +26,12 @@ "@types/jest": "29.5.13", "@types/react": "18.3.3", "@types/testing-library__jest-dom": "5.14.9", + "@utrecht/build-utils-react": "workspace:*", "@utrecht/form-field-css": "workspace:*", "jest": "29.7.0", "jest-environment-jsdom": "29.7.0", "react": "18.3.1", "rollup": "4.23.0", - "rollup-plugin-filesize": "10.0.0", - "rollup-plugin-node-externals": "7.1.2", - "rollup-plugin-peer-deps-external": "2.2.4", - "rollup-plugin-postcss": "4.0.2", "typescript": "5.6.2" }, "keywords": [ diff --git a/packages/components-react/checkbox-group-react/rollup.config.mjs b/packages/components-react/checkbox-group-react/rollup.config.mjs index 6cc9b8c1b8a..10d600728f2 100644 --- a/packages/components-react/checkbox-group-react/rollup.config.mjs +++ b/packages/components-react/checkbox-group-react/rollup.config.mjs @@ -1,87 +1,3 @@ -import babel from '@rollup/plugin-babel'; -import commonjs from '@rollup/plugin-commonjs'; -import json from '@rollup/plugin-json'; -import resolve from '@rollup/plugin-node-resolve'; -import typescript from '@rollup/plugin-typescript'; -import { readFileSync } from 'fs'; -import filesize from 'rollup-plugin-filesize'; -import nodeExternal from 'rollup-plugin-node-externals'; -import peerDepsExternal from 'rollup-plugin-peer-deps-external'; -import postcss from 'rollup-plugin-postcss'; +import { createConfig } from '@utrecht/build-utils-react/src/rollup.mjs'; -const packagePath = new URL('./package.json', import.meta.url).pathname; -const packageJson = JSON.parse(readFileSync(packagePath, 'utf8')); - -/** - * @type {import('rollup').RollupOptions} - */ -export default [ - { - input: './src/index.tsx', - output: [ - { - file: packageJson.main, - format: 'cjs', - sourcemap: true, - }, - { - file: packageJson.module, - format: 'es', - sourcemap: true, - }, - ], - plugins: [ - peerDepsExternal(), - commonjs(), - nodeExternal(), - resolve({ browser: true }), - json(), - typescript({ tsconfig: './tsconfig.build.json' }), - babel({ - presets: ['@babel/preset-react'], - babelHelpers: 'runtime', - exclude: ['node_modules/**', 'dist/**'], - extensions: ['.ts', '.tsx'], - inputSourceMap: true, - plugins: ['@babel/plugin-transform-runtime'], - }), - filesize(), - ], - }, - { - input: './src/css.tsx', - output: [ - { - file: './dist/css.cjs', - format: 'cjs', - sourcemap: true, - }, - { - file: './dist/css.mjs', - format: 'es', - sourcemap: true, - }, - ], - plugins: [ - peerDepsExternal(), - commonjs(), - nodeExternal(), - resolve({ browser: true }), - json(), - postcss({ - extensions: ['.css', '.scss'], - minimize: true, - }), - typescript({ tsconfig: './tsconfig.build.json' }), - babel({ - presets: ['@babel/preset-react'], - babelHelpers: 'runtime', - exclude: ['node_modules/**', 'dist/**'], - extensions: ['.ts', '.tsx'], - inputSourceMap: true, - plugins: ['@babel/plugin-transform-runtime'], - }), - filesize(), - ], - }, -]; +export default createConfig(); diff --git a/packages/components-react/checkbox-react/package.json b/packages/components-react/checkbox-react/package.json index b91b7bc07fc..aefad2f6401 100644 --- a/packages/components-react/checkbox-react/package.json +++ b/packages/components-react/checkbox-react/package.json @@ -19,15 +19,6 @@ "typecheck": "tsc --noEmit" }, "devDependencies": { - "@babel/plugin-transform-runtime": "7.24.7", - "@babel/preset-env": "7.24.7", - "@babel/preset-react": "7.24.7", - "@babel/preset-typescript": "7.24.7", - "@rollup/plugin-babel": "6.0.4", - "@rollup/plugin-commonjs": "26.0.1", - "@rollup/plugin-json": "6.1.0", - "@rollup/plugin-node-resolve": "15.2.3", - "@rollup/plugin-typescript": "12.1.0", "@testing-library/dom": "8.20.1", "@testing-library/jest-dom": "6.5.0", "@testing-library/react": "16.0.1", @@ -35,16 +26,13 @@ "@types/jest": "29.5.13", "@types/react": "18.3.3", "@types/testing-library__jest-dom": "5.14.9", + "@utrecht/build-utils-react": "workspace:*", "@utrecht/checkbox-css": "workspace:*", "@utrecht/custom-checkbox-css": "workspace:*", "jest": "29.7.0", "jest-environment-jsdom": "29.7.0", "react": "18.3.1", "rollup": "4.23.0", - "rollup-plugin-filesize": "10.0.0", - "rollup-plugin-node-externals": "7.1.2", - "rollup-plugin-peer-deps-external": "2.2.4", - "rollup-plugin-postcss": "4.0.2", "typescript": "5.6.2" }, "keywords": [ diff --git a/packages/components-react/checkbox-react/rollup.config.mjs b/packages/components-react/checkbox-react/rollup.config.mjs index 6cc9b8c1b8a..10d600728f2 100644 --- a/packages/components-react/checkbox-react/rollup.config.mjs +++ b/packages/components-react/checkbox-react/rollup.config.mjs @@ -1,87 +1,3 @@ -import babel from '@rollup/plugin-babel'; -import commonjs from '@rollup/plugin-commonjs'; -import json from '@rollup/plugin-json'; -import resolve from '@rollup/plugin-node-resolve'; -import typescript from '@rollup/plugin-typescript'; -import { readFileSync } from 'fs'; -import filesize from 'rollup-plugin-filesize'; -import nodeExternal from 'rollup-plugin-node-externals'; -import peerDepsExternal from 'rollup-plugin-peer-deps-external'; -import postcss from 'rollup-plugin-postcss'; +import { createConfig } from '@utrecht/build-utils-react/src/rollup.mjs'; -const packagePath = new URL('./package.json', import.meta.url).pathname; -const packageJson = JSON.parse(readFileSync(packagePath, 'utf8')); - -/** - * @type {import('rollup').RollupOptions} - */ -export default [ - { - input: './src/index.tsx', - output: [ - { - file: packageJson.main, - format: 'cjs', - sourcemap: true, - }, - { - file: packageJson.module, - format: 'es', - sourcemap: true, - }, - ], - plugins: [ - peerDepsExternal(), - commonjs(), - nodeExternal(), - resolve({ browser: true }), - json(), - typescript({ tsconfig: './tsconfig.build.json' }), - babel({ - presets: ['@babel/preset-react'], - babelHelpers: 'runtime', - exclude: ['node_modules/**', 'dist/**'], - extensions: ['.ts', '.tsx'], - inputSourceMap: true, - plugins: ['@babel/plugin-transform-runtime'], - }), - filesize(), - ], - }, - { - input: './src/css.tsx', - output: [ - { - file: './dist/css.cjs', - format: 'cjs', - sourcemap: true, - }, - { - file: './dist/css.mjs', - format: 'es', - sourcemap: true, - }, - ], - plugins: [ - peerDepsExternal(), - commonjs(), - nodeExternal(), - resolve({ browser: true }), - json(), - postcss({ - extensions: ['.css', '.scss'], - minimize: true, - }), - typescript({ tsconfig: './tsconfig.build.json' }), - babel({ - presets: ['@babel/preset-react'], - babelHelpers: 'runtime', - exclude: ['node_modules/**', 'dist/**'], - extensions: ['.ts', '.tsx'], - inputSourceMap: true, - plugins: ['@babel/plugin-transform-runtime'], - }), - filesize(), - ], - }, -]; +export default createConfig(); diff --git a/packages/components-react/combobox-react/package.json b/packages/components-react/combobox-react/package.json index b47aaa14f85..d577e9dc768 100644 --- a/packages/components-react/combobox-react/package.json +++ b/packages/components-react/combobox-react/package.json @@ -19,15 +19,6 @@ "typecheck": "tsc --noEmit" }, "devDependencies": { - "@babel/plugin-transform-runtime": "7.24.7", - "@babel/preset-env": "7.24.7", - "@babel/preset-react": "7.24.7", - "@babel/preset-typescript": "7.24.7", - "@rollup/plugin-babel": "6.0.4", - "@rollup/plugin-commonjs": "26.0.1", - "@rollup/plugin-json": "6.1.0", - "@rollup/plugin-node-resolve": "15.2.3", - "@rollup/plugin-typescript": "12.1.0", "@testing-library/dom": "8.20.1", "@testing-library/jest-dom": "6.5.0", "@testing-library/react": "16.0.1", @@ -35,15 +26,12 @@ "@types/jest": "29.5.13", "@types/react": "18.3.3", "@types/testing-library__jest-dom": "5.14.9", + "@utrecht/build-utils-react": "workspace:*", "@utrecht/combobox-css": "workspace:*", "jest": "29.7.0", "jest-environment-jsdom": "29.7.0", "react": "18.3.1", "rollup": "4.23.0", - "rollup-plugin-filesize": "10.0.0", - "rollup-plugin-node-externals": "7.1.2", - "rollup-plugin-peer-deps-external": "2.2.4", - "rollup-plugin-postcss": "4.0.2", "typescript": "5.6.2" }, "keywords": [ diff --git a/packages/components-react/combobox-react/rollup.config.mjs b/packages/components-react/combobox-react/rollup.config.mjs index 6cc9b8c1b8a..10d600728f2 100644 --- a/packages/components-react/combobox-react/rollup.config.mjs +++ b/packages/components-react/combobox-react/rollup.config.mjs @@ -1,87 +1,3 @@ -import babel from '@rollup/plugin-babel'; -import commonjs from '@rollup/plugin-commonjs'; -import json from '@rollup/plugin-json'; -import resolve from '@rollup/plugin-node-resolve'; -import typescript from '@rollup/plugin-typescript'; -import { readFileSync } from 'fs'; -import filesize from 'rollup-plugin-filesize'; -import nodeExternal from 'rollup-plugin-node-externals'; -import peerDepsExternal from 'rollup-plugin-peer-deps-external'; -import postcss from 'rollup-plugin-postcss'; +import { createConfig } from '@utrecht/build-utils-react/src/rollup.mjs'; -const packagePath = new URL('./package.json', import.meta.url).pathname; -const packageJson = JSON.parse(readFileSync(packagePath, 'utf8')); - -/** - * @type {import('rollup').RollupOptions} - */ -export default [ - { - input: './src/index.tsx', - output: [ - { - file: packageJson.main, - format: 'cjs', - sourcemap: true, - }, - { - file: packageJson.module, - format: 'es', - sourcemap: true, - }, - ], - plugins: [ - peerDepsExternal(), - commonjs(), - nodeExternal(), - resolve({ browser: true }), - json(), - typescript({ tsconfig: './tsconfig.build.json' }), - babel({ - presets: ['@babel/preset-react'], - babelHelpers: 'runtime', - exclude: ['node_modules/**', 'dist/**'], - extensions: ['.ts', '.tsx'], - inputSourceMap: true, - plugins: ['@babel/plugin-transform-runtime'], - }), - filesize(), - ], - }, - { - input: './src/css.tsx', - output: [ - { - file: './dist/css.cjs', - format: 'cjs', - sourcemap: true, - }, - { - file: './dist/css.mjs', - format: 'es', - sourcemap: true, - }, - ], - plugins: [ - peerDepsExternal(), - commonjs(), - nodeExternal(), - resolve({ browser: true }), - json(), - postcss({ - extensions: ['.css', '.scss'], - minimize: true, - }), - typescript({ tsconfig: './tsconfig.build.json' }), - babel({ - presets: ['@babel/preset-react'], - babelHelpers: 'runtime', - exclude: ['node_modules/**', 'dist/**'], - extensions: ['.ts', '.tsx'], - inputSourceMap: true, - plugins: ['@babel/plugin-transform-runtime'], - }), - filesize(), - ], - }, -]; +export default createConfig(); diff --git a/packages/components-react/fieldset-react/package.json b/packages/components-react/fieldset-react/package.json index 43bf2bae8f9..fe44b6a4d93 100644 --- a/packages/components-react/fieldset-react/package.json +++ b/packages/components-react/fieldset-react/package.json @@ -19,15 +19,6 @@ "typecheck": "tsc --noEmit" }, "devDependencies": { - "@babel/plugin-transform-runtime": "7.24.7", - "@babel/preset-env": "7.24.7", - "@babel/preset-react": "7.24.7", - "@babel/preset-typescript": "7.24.7", - "@rollup/plugin-babel": "6.0.4", - "@rollup/plugin-commonjs": "26.0.1", - "@rollup/plugin-json": "6.1.0", - "@rollup/plugin-node-resolve": "15.2.3", - "@rollup/plugin-typescript": "12.1.0", "@testing-library/dom": "8.20.1", "@testing-library/jest-dom": "6.5.0", "@testing-library/react": "16.0.1", @@ -35,15 +26,12 @@ "@types/jest": "29.5.13", "@types/react": "18.3.3", "@types/testing-library__jest-dom": "5.14.9", + "@utrecht/build-utils-react": "workspace:*", "@utrecht/form-fieldset-css": "workspace:*", "jest": "29.7.0", "jest-environment-jsdom": "29.7.0", "react": "18.3.1", "rollup": "4.23.0", - "rollup-plugin-filesize": "10.0.0", - "rollup-plugin-node-externals": "7.1.2", - "rollup-plugin-peer-deps-external": "2.2.4", - "rollup-plugin-postcss": "4.0.2", "typescript": "5.6.2" }, "keywords": [ diff --git a/packages/components-react/fieldset-react/rollup.config.mjs b/packages/components-react/fieldset-react/rollup.config.mjs index 6cc9b8c1b8a..10d600728f2 100644 --- a/packages/components-react/fieldset-react/rollup.config.mjs +++ b/packages/components-react/fieldset-react/rollup.config.mjs @@ -1,87 +1,3 @@ -import babel from '@rollup/plugin-babel'; -import commonjs from '@rollup/plugin-commonjs'; -import json from '@rollup/plugin-json'; -import resolve from '@rollup/plugin-node-resolve'; -import typescript from '@rollup/plugin-typescript'; -import { readFileSync } from 'fs'; -import filesize from 'rollup-plugin-filesize'; -import nodeExternal from 'rollup-plugin-node-externals'; -import peerDepsExternal from 'rollup-plugin-peer-deps-external'; -import postcss from 'rollup-plugin-postcss'; +import { createConfig } from '@utrecht/build-utils-react/src/rollup.mjs'; -const packagePath = new URL('./package.json', import.meta.url).pathname; -const packageJson = JSON.parse(readFileSync(packagePath, 'utf8')); - -/** - * @type {import('rollup').RollupOptions} - */ -export default [ - { - input: './src/index.tsx', - output: [ - { - file: packageJson.main, - format: 'cjs', - sourcemap: true, - }, - { - file: packageJson.module, - format: 'es', - sourcemap: true, - }, - ], - plugins: [ - peerDepsExternal(), - commonjs(), - nodeExternal(), - resolve({ browser: true }), - json(), - typescript({ tsconfig: './tsconfig.build.json' }), - babel({ - presets: ['@babel/preset-react'], - babelHelpers: 'runtime', - exclude: ['node_modules/**', 'dist/**'], - extensions: ['.ts', '.tsx'], - inputSourceMap: true, - plugins: ['@babel/plugin-transform-runtime'], - }), - filesize(), - ], - }, - { - input: './src/css.tsx', - output: [ - { - file: './dist/css.cjs', - format: 'cjs', - sourcemap: true, - }, - { - file: './dist/css.mjs', - format: 'es', - sourcemap: true, - }, - ], - plugins: [ - peerDepsExternal(), - commonjs(), - nodeExternal(), - resolve({ browser: true }), - json(), - postcss({ - extensions: ['.css', '.scss'], - minimize: true, - }), - typescript({ tsconfig: './tsconfig.build.json' }), - babel({ - presets: ['@babel/preset-react'], - babelHelpers: 'runtime', - exclude: ['node_modules/**', 'dist/**'], - extensions: ['.ts', '.tsx'], - inputSourceMap: true, - plugins: ['@babel/plugin-transform-runtime'], - }), - filesize(), - ], - }, -]; +export default createConfig(); diff --git a/packages/components-react/form-field-checkbox-react/package.json b/packages/components-react/form-field-checkbox-react/package.json index 8716ce4de9c..841087e9860 100644 --- a/packages/components-react/form-field-checkbox-react/package.json +++ b/packages/components-react/form-field-checkbox-react/package.json @@ -19,15 +19,6 @@ "typecheck": "tsc --noEmit" }, "devDependencies": { - "@babel/plugin-transform-runtime": "7.24.7", - "@babel/preset-env": "7.24.7", - "@babel/preset-react": "7.24.7", - "@babel/preset-typescript": "7.24.7", - "@rollup/plugin-babel": "6.0.4", - "@rollup/plugin-commonjs": "26.0.1", - "@rollup/plugin-json": "6.1.0", - "@rollup/plugin-node-resolve": "15.2.3", - "@rollup/plugin-typescript": "12.1.0", "@testing-library/dom": "8.20.1", "@testing-library/jest-dom": "6.5.0", "@testing-library/react": "16.0.1", @@ -35,14 +26,11 @@ "@types/jest": "29.5.13", "@types/react": "18.3.3", "@types/testing-library__jest-dom": "5.14.9", + "@utrecht/build-utils-react": "workspace:*", "jest": "29.7.0", "jest-environment-jsdom": "29.7.0", "react": "18.3.1", "rollup": "4.23.0", - "rollup-plugin-filesize": "10.0.0", - "rollup-plugin-node-externals": "7.1.2", - "rollup-plugin-peer-deps-external": "2.2.4", - "rollup-plugin-postcss": "4.0.2", "typescript": "5.6.2" }, "keywords": [ diff --git a/packages/components-react/form-field-checkbox-react/rollup.config.mjs b/packages/components-react/form-field-checkbox-react/rollup.config.mjs index 6cc9b8c1b8a..10d600728f2 100644 --- a/packages/components-react/form-field-checkbox-react/rollup.config.mjs +++ b/packages/components-react/form-field-checkbox-react/rollup.config.mjs @@ -1,87 +1,3 @@ -import babel from '@rollup/plugin-babel'; -import commonjs from '@rollup/plugin-commonjs'; -import json from '@rollup/plugin-json'; -import resolve from '@rollup/plugin-node-resolve'; -import typescript from '@rollup/plugin-typescript'; -import { readFileSync } from 'fs'; -import filesize from 'rollup-plugin-filesize'; -import nodeExternal from 'rollup-plugin-node-externals'; -import peerDepsExternal from 'rollup-plugin-peer-deps-external'; -import postcss from 'rollup-plugin-postcss'; +import { createConfig } from '@utrecht/build-utils-react/src/rollup.mjs'; -const packagePath = new URL('./package.json', import.meta.url).pathname; -const packageJson = JSON.parse(readFileSync(packagePath, 'utf8')); - -/** - * @type {import('rollup').RollupOptions} - */ -export default [ - { - input: './src/index.tsx', - output: [ - { - file: packageJson.main, - format: 'cjs', - sourcemap: true, - }, - { - file: packageJson.module, - format: 'es', - sourcemap: true, - }, - ], - plugins: [ - peerDepsExternal(), - commonjs(), - nodeExternal(), - resolve({ browser: true }), - json(), - typescript({ tsconfig: './tsconfig.build.json' }), - babel({ - presets: ['@babel/preset-react'], - babelHelpers: 'runtime', - exclude: ['node_modules/**', 'dist/**'], - extensions: ['.ts', '.tsx'], - inputSourceMap: true, - plugins: ['@babel/plugin-transform-runtime'], - }), - filesize(), - ], - }, - { - input: './src/css.tsx', - output: [ - { - file: './dist/css.cjs', - format: 'cjs', - sourcemap: true, - }, - { - file: './dist/css.mjs', - format: 'es', - sourcemap: true, - }, - ], - plugins: [ - peerDepsExternal(), - commonjs(), - nodeExternal(), - resolve({ browser: true }), - json(), - postcss({ - extensions: ['.css', '.scss'], - minimize: true, - }), - typescript({ tsconfig: './tsconfig.build.json' }), - babel({ - presets: ['@babel/preset-react'], - babelHelpers: 'runtime', - exclude: ['node_modules/**', 'dist/**'], - extensions: ['.ts', '.tsx'], - inputSourceMap: true, - plugins: ['@babel/plugin-transform-runtime'], - }), - filesize(), - ], - }, -]; +export default createConfig(); diff --git a/packages/components-react/form-field-description-react/package.json b/packages/components-react/form-field-description-react/package.json index 03aff416fa7..302b048165b 100644 --- a/packages/components-react/form-field-description-react/package.json +++ b/packages/components-react/form-field-description-react/package.json @@ -19,15 +19,6 @@ "typecheck": "tsc --noEmit" }, "devDependencies": { - "@babel/plugin-transform-runtime": "7.24.7", - "@babel/preset-env": "7.24.7", - "@babel/preset-react": "7.24.7", - "@babel/preset-typescript": "7.24.7", - "@rollup/plugin-babel": "6.0.4", - "@rollup/plugin-commonjs": "26.0.1", - "@rollup/plugin-json": "6.1.0", - "@rollup/plugin-node-resolve": "15.2.3", - "@rollup/plugin-typescript": "12.1.0", "@testing-library/dom": "8.20.1", "@testing-library/jest-dom": "6.5.0", "@testing-library/react": "16.0.1", @@ -35,15 +26,12 @@ "@types/jest": "29.5.13", "@types/react": "18.3.3", "@types/testing-library__jest-dom": "5.14.9", + "@utrecht/build-utils-react": "workspace:*", "@utrecht/form-field-description-css": "workspace:*", "jest": "29.7.0", "jest-environment-jsdom": "29.7.0", "react": "18.3.1", "rollup": "4.23.0", - "rollup-plugin-filesize": "10.0.0", - "rollup-plugin-node-externals": "7.1.2", - "rollup-plugin-peer-deps-external": "2.2.4", - "rollup-plugin-postcss": "4.0.2", "typescript": "5.6.2" }, "keywords": [ diff --git a/packages/components-react/form-field-description-react/rollup.config.mjs b/packages/components-react/form-field-description-react/rollup.config.mjs index 6cc9b8c1b8a..10d600728f2 100644 --- a/packages/components-react/form-field-description-react/rollup.config.mjs +++ b/packages/components-react/form-field-description-react/rollup.config.mjs @@ -1,87 +1,3 @@ -import babel from '@rollup/plugin-babel'; -import commonjs from '@rollup/plugin-commonjs'; -import json from '@rollup/plugin-json'; -import resolve from '@rollup/plugin-node-resolve'; -import typescript from '@rollup/plugin-typescript'; -import { readFileSync } from 'fs'; -import filesize from 'rollup-plugin-filesize'; -import nodeExternal from 'rollup-plugin-node-externals'; -import peerDepsExternal from 'rollup-plugin-peer-deps-external'; -import postcss from 'rollup-plugin-postcss'; +import { createConfig } from '@utrecht/build-utils-react/src/rollup.mjs'; -const packagePath = new URL('./package.json', import.meta.url).pathname; -const packageJson = JSON.parse(readFileSync(packagePath, 'utf8')); - -/** - * @type {import('rollup').RollupOptions} - */ -export default [ - { - input: './src/index.tsx', - output: [ - { - file: packageJson.main, - format: 'cjs', - sourcemap: true, - }, - { - file: packageJson.module, - format: 'es', - sourcemap: true, - }, - ], - plugins: [ - peerDepsExternal(), - commonjs(), - nodeExternal(), - resolve({ browser: true }), - json(), - typescript({ tsconfig: './tsconfig.build.json' }), - babel({ - presets: ['@babel/preset-react'], - babelHelpers: 'runtime', - exclude: ['node_modules/**', 'dist/**'], - extensions: ['.ts', '.tsx'], - inputSourceMap: true, - plugins: ['@babel/plugin-transform-runtime'], - }), - filesize(), - ], - }, - { - input: './src/css.tsx', - output: [ - { - file: './dist/css.cjs', - format: 'cjs', - sourcemap: true, - }, - { - file: './dist/css.mjs', - format: 'es', - sourcemap: true, - }, - ], - plugins: [ - peerDepsExternal(), - commonjs(), - nodeExternal(), - resolve({ browser: true }), - json(), - postcss({ - extensions: ['.css', '.scss'], - minimize: true, - }), - typescript({ tsconfig: './tsconfig.build.json' }), - babel({ - presets: ['@babel/preset-react'], - babelHelpers: 'runtime', - exclude: ['node_modules/**', 'dist/**'], - extensions: ['.ts', '.tsx'], - inputSourceMap: true, - plugins: ['@babel/plugin-transform-runtime'], - }), - filesize(), - ], - }, -]; +export default createConfig(); diff --git a/packages/components-react/form-field-error-message-react/package.json b/packages/components-react/form-field-error-message-react/package.json index 9d89d9b08e9..458d0d9d28e 100644 --- a/packages/components-react/form-field-error-message-react/package.json +++ b/packages/components-react/form-field-error-message-react/package.json @@ -19,15 +19,6 @@ "typecheck": "tsc --noEmit" }, "devDependencies": { - "@babel/plugin-transform-runtime": "7.24.7", - "@babel/preset-env": "7.24.7", - "@babel/preset-react": "7.24.7", - "@babel/preset-typescript": "7.24.7", - "@rollup/plugin-babel": "6.0.4", - "@rollup/plugin-commonjs": "26.0.1", - "@rollup/plugin-json": "6.1.0", - "@rollup/plugin-node-resolve": "15.2.3", - "@rollup/plugin-typescript": "12.1.0", "@testing-library/dom": "8.20.1", "@testing-library/jest-dom": "6.5.0", "@testing-library/react": "16.0.1", @@ -35,15 +26,12 @@ "@types/jest": "29.5.13", "@types/react": "18.3.3", "@types/testing-library__jest-dom": "5.14.9", + "@utrecht/build-utils-react": "workspace:*", "@utrecht/form-field-error-message-css": "workspace:*", "jest": "29.7.0", "jest-environment-jsdom": "29.7.0", "react": "18.3.1", "rollup": "4.23.0", - "rollup-plugin-filesize": "10.0.0", - "rollup-plugin-node-externals": "7.1.2", - "rollup-plugin-peer-deps-external": "2.2.4", - "rollup-plugin-postcss": "4.0.2", "typescript": "5.6.2" }, "keywords": [ diff --git a/packages/components-react/form-field-error-message-react/rollup.config.mjs b/packages/components-react/form-field-error-message-react/rollup.config.mjs index 6cc9b8c1b8a..10d600728f2 100644 --- a/packages/components-react/form-field-error-message-react/rollup.config.mjs +++ b/packages/components-react/form-field-error-message-react/rollup.config.mjs @@ -1,87 +1,3 @@ -import babel from '@rollup/plugin-babel'; -import commonjs from '@rollup/plugin-commonjs'; -import json from '@rollup/plugin-json'; -import resolve from '@rollup/plugin-node-resolve'; -import typescript from '@rollup/plugin-typescript'; -import { readFileSync } from 'fs'; -import filesize from 'rollup-plugin-filesize'; -import nodeExternal from 'rollup-plugin-node-externals'; -import peerDepsExternal from 'rollup-plugin-peer-deps-external'; -import postcss from 'rollup-plugin-postcss'; +import { createConfig } from '@utrecht/build-utils-react/src/rollup.mjs'; -const packagePath = new URL('./package.json', import.meta.url).pathname; -const packageJson = JSON.parse(readFileSync(packagePath, 'utf8')); - -/** - * @type {import('rollup').RollupOptions} - */ -export default [ - { - input: './src/index.tsx', - output: [ - { - file: packageJson.main, - format: 'cjs', - sourcemap: true, - }, - { - file: packageJson.module, - format: 'es', - sourcemap: true, - }, - ], - plugins: [ - peerDepsExternal(), - commonjs(), - nodeExternal(), - resolve({ browser: true }), - json(), - typescript({ tsconfig: './tsconfig.build.json' }), - babel({ - presets: ['@babel/preset-react'], - babelHelpers: 'runtime', - exclude: ['node_modules/**', 'dist/**'], - extensions: ['.ts', '.tsx'], - inputSourceMap: true, - plugins: ['@babel/plugin-transform-runtime'], - }), - filesize(), - ], - }, - { - input: './src/css.tsx', - output: [ - { - file: './dist/css.cjs', - format: 'cjs', - sourcemap: true, - }, - { - file: './dist/css.mjs', - format: 'es', - sourcemap: true, - }, - ], - plugins: [ - peerDepsExternal(), - commonjs(), - nodeExternal(), - resolve({ browser: true }), - json(), - postcss({ - extensions: ['.css', '.scss'], - minimize: true, - }), - typescript({ tsconfig: './tsconfig.build.json' }), - babel({ - presets: ['@babel/preset-react'], - babelHelpers: 'runtime', - exclude: ['node_modules/**', 'dist/**'], - extensions: ['.ts', '.tsx'], - inputSourceMap: true, - plugins: ['@babel/plugin-transform-runtime'], - }), - filesize(), - ], - }, -]; +export default createConfig(); diff --git a/packages/components-react/form-field-react/package.json b/packages/components-react/form-field-react/package.json index 2fa0047653a..06308c6ffba 100644 --- a/packages/components-react/form-field-react/package.json +++ b/packages/components-react/form-field-react/package.json @@ -19,15 +19,6 @@ "typecheck": "tsc --noEmit" }, "devDependencies": { - "@babel/plugin-transform-runtime": "7.24.7", - "@babel/preset-env": "7.24.7", - "@babel/preset-react": "7.24.7", - "@babel/preset-typescript": "7.24.7", - "@rollup/plugin-babel": "6.0.4", - "@rollup/plugin-commonjs": "26.0.1", - "@rollup/plugin-json": "6.1.0", - "@rollup/plugin-node-resolve": "15.2.3", - "@rollup/plugin-typescript": "12.1.0", "@testing-library/dom": "8.20.1", "@testing-library/jest-dom": "6.5.0", "@testing-library/react": "16.0.1", @@ -35,15 +26,12 @@ "@types/jest": "29.5.13", "@types/react": "18.3.3", "@types/testing-library__jest-dom": "5.14.9", + "@utrecht/build-utils-react": "workspace:*", "@utrecht/form-field-css": "workspace:*", "jest": "29.7.0", "jest-environment-jsdom": "29.7.0", "react": "18.3.1", "rollup": "4.23.0", - "rollup-plugin-filesize": "10.0.0", - "rollup-plugin-node-externals": "7.1.2", - "rollup-plugin-peer-deps-external": "2.2.4", - "rollup-plugin-postcss": "4.0.2", "typescript": "5.6.2" }, "keywords": [ diff --git a/packages/components-react/form-field-react/rollup.config.mjs b/packages/components-react/form-field-react/rollup.config.mjs index 6cc9b8c1b8a..10d600728f2 100644 --- a/packages/components-react/form-field-react/rollup.config.mjs +++ b/packages/components-react/form-field-react/rollup.config.mjs @@ -1,87 +1,3 @@ -import babel from '@rollup/plugin-babel'; -import commonjs from '@rollup/plugin-commonjs'; -import json from '@rollup/plugin-json'; -import resolve from '@rollup/plugin-node-resolve'; -import typescript from '@rollup/plugin-typescript'; -import { readFileSync } from 'fs'; -import filesize from 'rollup-plugin-filesize'; -import nodeExternal from 'rollup-plugin-node-externals'; -import peerDepsExternal from 'rollup-plugin-peer-deps-external'; -import postcss from 'rollup-plugin-postcss'; +import { createConfig } from '@utrecht/build-utils-react/src/rollup.mjs'; -const packagePath = new URL('./package.json', import.meta.url).pathname; -const packageJson = JSON.parse(readFileSync(packagePath, 'utf8')); - -/** - * @type {import('rollup').RollupOptions} - */ -export default [ - { - input: './src/index.tsx', - output: [ - { - file: packageJson.main, - format: 'cjs', - sourcemap: true, - }, - { - file: packageJson.module, - format: 'es', - sourcemap: true, - }, - ], - plugins: [ - peerDepsExternal(), - commonjs(), - nodeExternal(), - resolve({ browser: true }), - json(), - typescript({ tsconfig: './tsconfig.build.json' }), - babel({ - presets: ['@babel/preset-react'], - babelHelpers: 'runtime', - exclude: ['node_modules/**', 'dist/**'], - extensions: ['.ts', '.tsx'], - inputSourceMap: true, - plugins: ['@babel/plugin-transform-runtime'], - }), - filesize(), - ], - }, - { - input: './src/css.tsx', - output: [ - { - file: './dist/css.cjs', - format: 'cjs', - sourcemap: true, - }, - { - file: './dist/css.mjs', - format: 'es', - sourcemap: true, - }, - ], - plugins: [ - peerDepsExternal(), - commonjs(), - nodeExternal(), - resolve({ browser: true }), - json(), - postcss({ - extensions: ['.css', '.scss'], - minimize: true, - }), - typescript({ tsconfig: './tsconfig.build.json' }), - babel({ - presets: ['@babel/preset-react'], - babelHelpers: 'runtime', - exclude: ['node_modules/**', 'dist/**'], - extensions: ['.ts', '.tsx'], - inputSourceMap: true, - plugins: ['@babel/plugin-transform-runtime'], - }), - filesize(), - ], - }, -]; +export default createConfig(); diff --git a/packages/components-react/form-label-react/package.json b/packages/components-react/form-label-react/package.json index 65e777f48af..b8560571d99 100644 --- a/packages/components-react/form-label-react/package.json +++ b/packages/components-react/form-label-react/package.json @@ -19,15 +19,6 @@ "typecheck": "tsc --noEmit" }, "devDependencies": { - "@babel/plugin-transform-runtime": "7.24.7", - "@babel/preset-env": "7.24.7", - "@babel/preset-react": "7.24.7", - "@babel/preset-typescript": "7.24.7", - "@rollup/plugin-babel": "6.0.4", - "@rollup/plugin-commonjs": "26.0.1", - "@rollup/plugin-json": "6.1.0", - "@rollup/plugin-node-resolve": "15.2.3", - "@rollup/plugin-typescript": "12.1.0", "@testing-library/dom": "8.20.1", "@testing-library/jest-dom": "6.5.0", "@testing-library/react": "16.0.1", @@ -35,15 +26,12 @@ "@types/jest": "29.5.13", "@types/react": "18.3.3", "@types/testing-library__jest-dom": "5.14.9", + "@utrecht/build-utils-react": "workspace:*", "@utrecht/form-label-css": "workspace:*", "jest": "29.7.0", "jest-environment-jsdom": "29.7.0", "react": "18.3.1", "rollup": "4.23.0", - "rollup-plugin-filesize": "10.0.0", - "rollup-plugin-node-externals": "7.1.2", - "rollup-plugin-peer-deps-external": "2.2.4", - "rollup-plugin-postcss": "4.0.2", "typescript": "5.6.2" }, "keywords": [ diff --git a/packages/components-react/form-label-react/rollup.config.mjs b/packages/components-react/form-label-react/rollup.config.mjs index 6cc9b8c1b8a..10d600728f2 100644 --- a/packages/components-react/form-label-react/rollup.config.mjs +++ b/packages/components-react/form-label-react/rollup.config.mjs @@ -1,87 +1,3 @@ -import babel from '@rollup/plugin-babel'; -import commonjs from '@rollup/plugin-commonjs'; -import json from '@rollup/plugin-json'; -import resolve from '@rollup/plugin-node-resolve'; -import typescript from '@rollup/plugin-typescript'; -import { readFileSync } from 'fs'; -import filesize from 'rollup-plugin-filesize'; -import nodeExternal from 'rollup-plugin-node-externals'; -import peerDepsExternal from 'rollup-plugin-peer-deps-external'; -import postcss from 'rollup-plugin-postcss'; +import { createConfig } from '@utrecht/build-utils-react/src/rollup.mjs'; -const packagePath = new URL('./package.json', import.meta.url).pathname; -const packageJson = JSON.parse(readFileSync(packagePath, 'utf8')); - -/** - * @type {import('rollup').RollupOptions} - */ -export default [ - { - input: './src/index.tsx', - output: [ - { - file: packageJson.main, - format: 'cjs', - sourcemap: true, - }, - { - file: packageJson.module, - format: 'es', - sourcemap: true, - }, - ], - plugins: [ - peerDepsExternal(), - commonjs(), - nodeExternal(), - resolve({ browser: true }), - json(), - typescript({ tsconfig: './tsconfig.build.json' }), - babel({ - presets: ['@babel/preset-react'], - babelHelpers: 'runtime', - exclude: ['node_modules/**', 'dist/**'], - extensions: ['.ts', '.tsx'], - inputSourceMap: true, - plugins: ['@babel/plugin-transform-runtime'], - }), - filesize(), - ], - }, - { - input: './src/css.tsx', - output: [ - { - file: './dist/css.cjs', - format: 'cjs', - sourcemap: true, - }, - { - file: './dist/css.mjs', - format: 'es', - sourcemap: true, - }, - ], - plugins: [ - peerDepsExternal(), - commonjs(), - nodeExternal(), - resolve({ browser: true }), - json(), - postcss({ - extensions: ['.css', '.scss'], - minimize: true, - }), - typescript({ tsconfig: './tsconfig.build.json' }), - babel({ - presets: ['@babel/preset-react'], - babelHelpers: 'runtime', - exclude: ['node_modules/**', 'dist/**'], - extensions: ['.ts', '.tsx'], - inputSourceMap: true, - plugins: ['@babel/plugin-transform-runtime'], - }), - filesize(), - ], - }, -]; +export default createConfig(); diff --git a/packages/components-react/link-react/package.json b/packages/components-react/link-react/package.json index e0be84a2575..005b43868b9 100644 --- a/packages/components-react/link-react/package.json +++ b/packages/components-react/link-react/package.json @@ -19,15 +19,6 @@ "typecheck": "tsc --noEmit" }, "devDependencies": { - "@babel/plugin-transform-runtime": "7.24.7", - "@babel/preset-env": "7.24.7", - "@babel/preset-react": "7.24.7", - "@babel/preset-typescript": "7.24.7", - "@rollup/plugin-babel": "6.0.4", - "@rollup/plugin-commonjs": "26.0.1", - "@rollup/plugin-json": "6.1.0", - "@rollup/plugin-node-resolve": "15.2.3", - "@rollup/plugin-typescript": "12.1.0", "@testing-library/dom": "8.20.1", "@testing-library/jest-dom": "6.5.0", "@testing-library/react": "16.0.1", @@ -35,15 +26,12 @@ "@types/jest": "29.5.13", "@types/react": "18.3.3", "@types/testing-library__jest-dom": "5.14.9", + "@utrecht/build-utils-react": "workspace:*", "@utrecht/link-css": "workspace:*", "jest": "29.7.0", "jest-environment-jsdom": "29.7.0", "react": "18.3.1", "rollup": "4.23.0", - "rollup-plugin-filesize": "10.0.0", - "rollup-plugin-node-externals": "7.1.2", - "rollup-plugin-peer-deps-external": "2.2.4", - "rollup-plugin-postcss": "4.0.2", "typescript": "5.6.2" }, "keywords": [ diff --git a/packages/components-react/link-react/rollup.config.mjs b/packages/components-react/link-react/rollup.config.mjs index 6cc9b8c1b8a..10d600728f2 100644 --- a/packages/components-react/link-react/rollup.config.mjs +++ b/packages/components-react/link-react/rollup.config.mjs @@ -1,87 +1,3 @@ -import babel from '@rollup/plugin-babel'; -import commonjs from '@rollup/plugin-commonjs'; -import json from '@rollup/plugin-json'; -import resolve from '@rollup/plugin-node-resolve'; -import typescript from '@rollup/plugin-typescript'; -import { readFileSync } from 'fs'; -import filesize from 'rollup-plugin-filesize'; -import nodeExternal from 'rollup-plugin-node-externals'; -import peerDepsExternal from 'rollup-plugin-peer-deps-external'; -import postcss from 'rollup-plugin-postcss'; +import { createConfig } from '@utrecht/build-utils-react/src/rollup.mjs'; -const packagePath = new URL('./package.json', import.meta.url).pathname; -const packageJson = JSON.parse(readFileSync(packagePath, 'utf8')); - -/** - * @type {import('rollup').RollupOptions} - */ -export default [ - { - input: './src/index.tsx', - output: [ - { - file: packageJson.main, - format: 'cjs', - sourcemap: true, - }, - { - file: packageJson.module, - format: 'es', - sourcemap: true, - }, - ], - plugins: [ - peerDepsExternal(), - commonjs(), - nodeExternal(), - resolve({ browser: true }), - json(), - typescript({ tsconfig: './tsconfig.build.json' }), - babel({ - presets: ['@babel/preset-react'], - babelHelpers: 'runtime', - exclude: ['node_modules/**', 'dist/**'], - extensions: ['.ts', '.tsx'], - inputSourceMap: true, - plugins: ['@babel/plugin-transform-runtime'], - }), - filesize(), - ], - }, - { - input: './src/css.tsx', - output: [ - { - file: './dist/css.cjs', - format: 'cjs', - sourcemap: true, - }, - { - file: './dist/css.mjs', - format: 'es', - sourcemap: true, - }, - ], - plugins: [ - peerDepsExternal(), - commonjs(), - nodeExternal(), - resolve({ browser: true }), - json(), - postcss({ - extensions: ['.css', '.scss'], - minimize: true, - }), - typescript({ tsconfig: './tsconfig.build.json' }), - babel({ - presets: ['@babel/preset-react'], - babelHelpers: 'runtime', - exclude: ['node_modules/**', 'dist/**'], - extensions: ['.ts', '.tsx'], - inputSourceMap: true, - plugins: ['@babel/plugin-transform-runtime'], - }), - filesize(), - ], - }, -]; +export default createConfig(); diff --git a/packages/components-react/listbox-react/package.json b/packages/components-react/listbox-react/package.json index 31374a1ee94..2e4107f7921 100644 --- a/packages/components-react/listbox-react/package.json +++ b/packages/components-react/listbox-react/package.json @@ -19,15 +19,6 @@ "typecheck": "tsc --noEmit" }, "devDependencies": { - "@babel/plugin-transform-runtime": "7.24.7", - "@babel/preset-env": "7.24.7", - "@babel/preset-react": "7.24.7", - "@babel/preset-typescript": "7.24.7", - "@rollup/plugin-babel": "6.0.4", - "@rollup/plugin-commonjs": "26.0.1", - "@rollup/plugin-json": "6.1.0", - "@rollup/plugin-node-resolve": "15.2.3", - "@rollup/plugin-typescript": "12.1.0", "@testing-library/dom": "8.20.1", "@testing-library/jest-dom": "6.5.0", "@testing-library/react": "16.0.1", @@ -35,15 +26,12 @@ "@types/jest": "29.5.13", "@types/react": "18.3.3", "@types/testing-library__jest-dom": "5.14.9", + "@utrecht/build-utils-react": "workspace:*", "@utrecht/listbox-css": "workspace:*", "jest": "29.7.0", "jest-environment-jsdom": "29.7.0", "react": "18.3.1", "rollup": "4.23.0", - "rollup-plugin-filesize": "10.0.0", - "rollup-plugin-node-externals": "7.1.2", - "rollup-plugin-peer-deps-external": "2.2.4", - "rollup-plugin-postcss": "4.0.2", "typescript": "5.6.2" }, "keywords": [ diff --git a/packages/components-react/listbox-react/rollup.config.mjs b/packages/components-react/listbox-react/rollup.config.mjs index 6cc9b8c1b8a..10d600728f2 100644 --- a/packages/components-react/listbox-react/rollup.config.mjs +++ b/packages/components-react/listbox-react/rollup.config.mjs @@ -1,87 +1,3 @@ -import babel from '@rollup/plugin-babel'; -import commonjs from '@rollup/plugin-commonjs'; -import json from '@rollup/plugin-json'; -import resolve from '@rollup/plugin-node-resolve'; -import typescript from '@rollup/plugin-typescript'; -import { readFileSync } from 'fs'; -import filesize from 'rollup-plugin-filesize'; -import nodeExternal from 'rollup-plugin-node-externals'; -import peerDepsExternal from 'rollup-plugin-peer-deps-external'; -import postcss from 'rollup-plugin-postcss'; +import { createConfig } from '@utrecht/build-utils-react/src/rollup.mjs'; -const packagePath = new URL('./package.json', import.meta.url).pathname; -const packageJson = JSON.parse(readFileSync(packagePath, 'utf8')); - -/** - * @type {import('rollup').RollupOptions} - */ -export default [ - { - input: './src/index.tsx', - output: [ - { - file: packageJson.main, - format: 'cjs', - sourcemap: true, - }, - { - file: packageJson.module, - format: 'es', - sourcemap: true, - }, - ], - plugins: [ - peerDepsExternal(), - commonjs(), - nodeExternal(), - resolve({ browser: true }), - json(), - typescript({ tsconfig: './tsconfig.build.json' }), - babel({ - presets: ['@babel/preset-react'], - babelHelpers: 'runtime', - exclude: ['node_modules/**', 'dist/**'], - extensions: ['.ts', '.tsx'], - inputSourceMap: true, - plugins: ['@babel/plugin-transform-runtime'], - }), - filesize(), - ], - }, - { - input: './src/css.tsx', - output: [ - { - file: './dist/css.cjs', - format: 'cjs', - sourcemap: true, - }, - { - file: './dist/css.mjs', - format: 'es', - sourcemap: true, - }, - ], - plugins: [ - peerDepsExternal(), - commonjs(), - nodeExternal(), - resolve({ browser: true }), - json(), - postcss({ - extensions: ['.css', '.scss'], - minimize: true, - }), - typescript({ tsconfig: './tsconfig.build.json' }), - babel({ - presets: ['@babel/preset-react'], - babelHelpers: 'runtime', - exclude: ['node_modules/**', 'dist/**'], - extensions: ['.ts', '.tsx'], - inputSourceMap: true, - plugins: ['@babel/plugin-transform-runtime'], - }), - filesize(), - ], - }, -]; +export default createConfig(); diff --git a/packages/components-react/nav-bar-react/package.json b/packages/components-react/nav-bar-react/package.json index d2236b2c1e7..22f6a441066 100644 --- a/packages/components-react/nav-bar-react/package.json +++ b/packages/components-react/nav-bar-react/package.json @@ -19,15 +19,6 @@ "typecheck": "tsc --noEmit" }, "devDependencies": { - "@babel/plugin-transform-runtime": "7.24.7", - "@babel/preset-env": "7.24.7", - "@babel/preset-react": "7.24.7", - "@babel/preset-typescript": "7.24.7", - "@rollup/plugin-babel": "6.0.4", - "@rollup/plugin-commonjs": "26.0.1", - "@rollup/plugin-json": "6.1.0", - "@rollup/plugin-node-resolve": "15.2.3", - "@rollup/plugin-typescript": "12.1.0", "@testing-library/dom": "8.20.1", "@testing-library/jest-dom": "6.5.0", "@testing-library/react": "16.0.1", @@ -35,15 +26,12 @@ "@types/jest": "29.5.13", "@types/react": "18.3.3", "@types/testing-library__jest-dom": "5.14.9", + "@utrecht/build-utils-react": "workspace:*", "@utrecht/nav-bar-css": "workspace:*", "jest": "29.7.0", "jest-environment-jsdom": "29.7.0", "react": "18.3.1", "rollup": "4.23.0", - "rollup-plugin-filesize": "10.0.0", - "rollup-plugin-node-externals": "7.1.2", - "rollup-plugin-peer-deps-external": "2.2.4", - "rollup-plugin-postcss": "4.0.2", "typescript": "5.6.2" }, "keywords": [ diff --git a/packages/components-react/nav-bar-react/rollup.config.mjs b/packages/components-react/nav-bar-react/rollup.config.mjs index 97d452b8ca0..10d600728f2 100644 --- a/packages/components-react/nav-bar-react/rollup.config.mjs +++ b/packages/components-react/nav-bar-react/rollup.config.mjs @@ -1,87 +1,3 @@ -import babel from '@rollup/plugin-babel'; -import commonjs from '@rollup/plugin-commonjs'; -import json from '@rollup/plugin-json'; -import resolve from '@rollup/plugin-node-resolve'; -import typescript from '@rollup/plugin-typescript'; -import { readFileSync } from 'fs'; -import filesize from 'rollup-plugin-filesize'; -import nodeExternal from 'rollup-plugin-node-externals'; -import peerDepsExternal from 'rollup-plugin-peer-deps-external'; -import postcss from 'rollup-plugin-postcss'; +import { createConfig } from '@utrecht/build-utils-react/src/rollup.mjs'; -const packagePath = new URL('./package.json', import.meta.url).pathname; -const packageJson = JSON.parse(readFileSync(packagePath, 'utf8')); - -/** - * @type {import('rollup').RollupOptions} - */ -export default [ - { - input: './src/index.tsx', - output: [ - { - file: packageJson.main, - format: 'cjs', - sourcemap: true, - }, - { - file: packageJson.module, - format: 'es', - sourcemap: true, - }, - ], - plugins: [ - peerDepsExternal(), - commonjs(), - nodeExternal(), - resolve({ browser: true }), - json(), - typescript({ tsconfig: './tsconfig.build.json' }), - babel({ - presets: ['@babel/preset-react'], - babelHelpers: 'runtime', - exclude: ['node_modules/**', 'dist/**'], - extensions: ['.ts', '.tsx'], - inputSourceMap: true, - plugins: ['@babel/plugin-transform-runtime'], - }), - filesize(), - ], - }, - { - input: './src/css.tsx', - output: [ - { - file: './dist/css.js', - format: 'cjs', - sourcemap: true, - }, - { - file: './dist/css.mjs', - format: 'es', - sourcemap: true, - }, - ], - plugins: [ - peerDepsExternal(), - commonjs(), - nodeExternal(), - resolve({ browser: true }), - json(), - postcss({ - extensions: ['.css', '.scss'], - minimize: true, - }), - typescript({ tsconfig: './tsconfig.build.json' }), - babel({ - presets: ['@babel/preset-react'], - babelHelpers: 'runtime', - exclude: ['node_modules/**', 'dist/**'], - extensions: ['.ts', '.tsx'], - inputSourceMap: true, - plugins: ['@babel/plugin-transform-runtime'], - }), - filesize(), - ], - }, -]; +export default createConfig(); diff --git a/packages/components-react/page-body-react/package.json b/packages/components-react/page-body-react/package.json index 0632f02eb99..6364b8b9c5f 100644 --- a/packages/components-react/page-body-react/package.json +++ b/packages/components-react/page-body-react/package.json @@ -19,15 +19,6 @@ "typecheck": "tsc --noEmit" }, "devDependencies": { - "@babel/plugin-transform-runtime": "7.24.7", - "@babel/preset-env": "7.24.7", - "@babel/preset-react": "7.24.7", - "@babel/preset-typescript": "7.24.7", - "@rollup/plugin-babel": "6.0.4", - "@rollup/plugin-commonjs": "26.0.1", - "@rollup/plugin-json": "6.1.0", - "@rollup/plugin-node-resolve": "15.2.3", - "@rollup/plugin-typescript": "12.1.0", "@testing-library/dom": "8.20.1", "@testing-library/jest-dom": "6.5.0", "@testing-library/react": "16.0.1", @@ -35,15 +26,12 @@ "@types/jest": "29.5.13", "@types/react": "18.3.3", "@types/testing-library__jest-dom": "5.14.9", + "@utrecht/build-utils-react": "workspace:*", "@utrecht/page-body-css": "workspace:*", "jest": "29.7.0", "jest-environment-jsdom": "29.7.0", "react": "18.3.1", "rollup": "4.23.0", - "rollup-plugin-filesize": "10.0.0", - "rollup-plugin-node-externals": "7.1.2", - "rollup-plugin-peer-deps-external": "2.2.4", - "rollup-plugin-postcss": "4.0.2", "typescript": "5.6.2" }, "keywords": [ diff --git a/packages/components-react/page-body-react/rollup.config.mjs b/packages/components-react/page-body-react/rollup.config.mjs index 97d452b8ca0..10d600728f2 100644 --- a/packages/components-react/page-body-react/rollup.config.mjs +++ b/packages/components-react/page-body-react/rollup.config.mjs @@ -1,87 +1,3 @@ -import babel from '@rollup/plugin-babel'; -import commonjs from '@rollup/plugin-commonjs'; -import json from '@rollup/plugin-json'; -import resolve from '@rollup/plugin-node-resolve'; -import typescript from '@rollup/plugin-typescript'; -import { readFileSync } from 'fs'; -import filesize from 'rollup-plugin-filesize'; -import nodeExternal from 'rollup-plugin-node-externals'; -import peerDepsExternal from 'rollup-plugin-peer-deps-external'; -import postcss from 'rollup-plugin-postcss'; +import { createConfig } from '@utrecht/build-utils-react/src/rollup.mjs'; -const packagePath = new URL('./package.json', import.meta.url).pathname; -const packageJson = JSON.parse(readFileSync(packagePath, 'utf8')); - -/** - * @type {import('rollup').RollupOptions} - */ -export default [ - { - input: './src/index.tsx', - output: [ - { - file: packageJson.main, - format: 'cjs', - sourcemap: true, - }, - { - file: packageJson.module, - format: 'es', - sourcemap: true, - }, - ], - plugins: [ - peerDepsExternal(), - commonjs(), - nodeExternal(), - resolve({ browser: true }), - json(), - typescript({ tsconfig: './tsconfig.build.json' }), - babel({ - presets: ['@babel/preset-react'], - babelHelpers: 'runtime', - exclude: ['node_modules/**', 'dist/**'], - extensions: ['.ts', '.tsx'], - inputSourceMap: true, - plugins: ['@babel/plugin-transform-runtime'], - }), - filesize(), - ], - }, - { - input: './src/css.tsx', - output: [ - { - file: './dist/css.js', - format: 'cjs', - sourcemap: true, - }, - { - file: './dist/css.mjs', - format: 'es', - sourcemap: true, - }, - ], - plugins: [ - peerDepsExternal(), - commonjs(), - nodeExternal(), - resolve({ browser: true }), - json(), - postcss({ - extensions: ['.css', '.scss'], - minimize: true, - }), - typescript({ tsconfig: './tsconfig.build.json' }), - babel({ - presets: ['@babel/preset-react'], - babelHelpers: 'runtime', - exclude: ['node_modules/**', 'dist/**'], - extensions: ['.ts', '.tsx'], - inputSourceMap: true, - plugins: ['@babel/plugin-transform-runtime'], - }), - filesize(), - ], - }, -]; +export default createConfig(); diff --git a/packages/components-react/page-footer-react/package.json b/packages/components-react/page-footer-react/package.json index 197b7fa640c..372e336679c 100644 --- a/packages/components-react/page-footer-react/package.json +++ b/packages/components-react/page-footer-react/package.json @@ -19,15 +19,6 @@ "typecheck": "tsc --noEmit" }, "devDependencies": { - "@babel/plugin-transform-runtime": "7.24.7", - "@babel/preset-env": "7.24.7", - "@babel/preset-react": "7.24.7", - "@babel/preset-typescript": "7.24.7", - "@rollup/plugin-babel": "6.0.4", - "@rollup/plugin-commonjs": "26.0.1", - "@rollup/plugin-json": "6.1.0", - "@rollup/plugin-node-resolve": "15.2.3", - "@rollup/plugin-typescript": "12.1.0", "@testing-library/dom": "8.20.1", "@testing-library/jest-dom": "6.5.0", "@testing-library/react": "16.0.1", @@ -35,15 +26,12 @@ "@types/jest": "29.5.13", "@types/react": "18.3.3", "@types/testing-library__jest-dom": "5.14.9", + "@utrecht/build-utils-react": "workspace:*", "@utrecht/page-footer-css": "workspace:*", "jest": "29.7.0", "jest-environment-jsdom": "29.7.0", "react": "18.3.1", "rollup": "4.23.0", - "rollup-plugin-filesize": "10.0.0", - "rollup-plugin-node-externals": "7.1.2", - "rollup-plugin-peer-deps-external": "2.2.4", - "rollup-plugin-postcss": "4.0.2", "typescript": "5.6.2" }, "keywords": [ diff --git a/packages/components-react/page-footer-react/rollup.config.mjs b/packages/components-react/page-footer-react/rollup.config.mjs index 97d452b8ca0..10d600728f2 100644 --- a/packages/components-react/page-footer-react/rollup.config.mjs +++ b/packages/components-react/page-footer-react/rollup.config.mjs @@ -1,87 +1,3 @@ -import babel from '@rollup/plugin-babel'; -import commonjs from '@rollup/plugin-commonjs'; -import json from '@rollup/plugin-json'; -import resolve from '@rollup/plugin-node-resolve'; -import typescript from '@rollup/plugin-typescript'; -import { readFileSync } from 'fs'; -import filesize from 'rollup-plugin-filesize'; -import nodeExternal from 'rollup-plugin-node-externals'; -import peerDepsExternal from 'rollup-plugin-peer-deps-external'; -import postcss from 'rollup-plugin-postcss'; +import { createConfig } from '@utrecht/build-utils-react/src/rollup.mjs'; -const packagePath = new URL('./package.json', import.meta.url).pathname; -const packageJson = JSON.parse(readFileSync(packagePath, 'utf8')); - -/** - * @type {import('rollup').RollupOptions} - */ -export default [ - { - input: './src/index.tsx', - output: [ - { - file: packageJson.main, - format: 'cjs', - sourcemap: true, - }, - { - file: packageJson.module, - format: 'es', - sourcemap: true, - }, - ], - plugins: [ - peerDepsExternal(), - commonjs(), - nodeExternal(), - resolve({ browser: true }), - json(), - typescript({ tsconfig: './tsconfig.build.json' }), - babel({ - presets: ['@babel/preset-react'], - babelHelpers: 'runtime', - exclude: ['node_modules/**', 'dist/**'], - extensions: ['.ts', '.tsx'], - inputSourceMap: true, - plugins: ['@babel/plugin-transform-runtime'], - }), - filesize(), - ], - }, - { - input: './src/css.tsx', - output: [ - { - file: './dist/css.js', - format: 'cjs', - sourcemap: true, - }, - { - file: './dist/css.mjs', - format: 'es', - sourcemap: true, - }, - ], - plugins: [ - peerDepsExternal(), - commonjs(), - nodeExternal(), - resolve({ browser: true }), - json(), - postcss({ - extensions: ['.css', '.scss'], - minimize: true, - }), - typescript({ tsconfig: './tsconfig.build.json' }), - babel({ - presets: ['@babel/preset-react'], - babelHelpers: 'runtime', - exclude: ['node_modules/**', 'dist/**'], - extensions: ['.ts', '.tsx'], - inputSourceMap: true, - plugins: ['@babel/plugin-transform-runtime'], - }), - filesize(), - ], - }, -]; +export default createConfig(); diff --git a/packages/components-react/page-header-react/package.json b/packages/components-react/page-header-react/package.json index ad75364e51d..99cd884f442 100644 --- a/packages/components-react/page-header-react/package.json +++ b/packages/components-react/page-header-react/package.json @@ -19,15 +19,6 @@ "typecheck": "tsc --noEmit" }, "devDependencies": { - "@babel/plugin-transform-runtime": "7.24.7", - "@babel/preset-env": "7.24.7", - "@babel/preset-react": "7.24.7", - "@babel/preset-typescript": "7.24.7", - "@rollup/plugin-babel": "6.0.4", - "@rollup/plugin-commonjs": "26.0.1", - "@rollup/plugin-json": "6.1.0", - "@rollup/plugin-node-resolve": "15.2.3", - "@rollup/plugin-typescript": "12.1.0", "@testing-library/dom": "8.20.1", "@testing-library/jest-dom": "6.5.0", "@testing-library/react": "16.0.1", @@ -35,15 +26,12 @@ "@types/jest": "29.5.13", "@types/react": "18.3.3", "@types/testing-library__jest-dom": "5.14.9", + "@utrecht/build-utils-react": "workspace:*", "@utrecht/page-header-css": "workspace:*", "jest": "29.7.0", "jest-environment-jsdom": "29.7.0", "react": "18.3.1", "rollup": "4.23.0", - "rollup-plugin-filesize": "10.0.0", - "rollup-plugin-node-externals": "7.1.2", - "rollup-plugin-peer-deps-external": "2.2.4", - "rollup-plugin-postcss": "4.0.2", "typescript": "5.6.2" }, "keywords": [ diff --git a/packages/components-react/page-header-react/rollup.config.mjs b/packages/components-react/page-header-react/rollup.config.mjs index 97d452b8ca0..10d600728f2 100644 --- a/packages/components-react/page-header-react/rollup.config.mjs +++ b/packages/components-react/page-header-react/rollup.config.mjs @@ -1,87 +1,3 @@ -import babel from '@rollup/plugin-babel'; -import commonjs from '@rollup/plugin-commonjs'; -import json from '@rollup/plugin-json'; -import resolve from '@rollup/plugin-node-resolve'; -import typescript from '@rollup/plugin-typescript'; -import { readFileSync } from 'fs'; -import filesize from 'rollup-plugin-filesize'; -import nodeExternal from 'rollup-plugin-node-externals'; -import peerDepsExternal from 'rollup-plugin-peer-deps-external'; -import postcss from 'rollup-plugin-postcss'; +import { createConfig } from '@utrecht/build-utils-react/src/rollup.mjs'; -const packagePath = new URL('./package.json', import.meta.url).pathname; -const packageJson = JSON.parse(readFileSync(packagePath, 'utf8')); - -/** - * @type {import('rollup').RollupOptions} - */ -export default [ - { - input: './src/index.tsx', - output: [ - { - file: packageJson.main, - format: 'cjs', - sourcemap: true, - }, - { - file: packageJson.module, - format: 'es', - sourcemap: true, - }, - ], - plugins: [ - peerDepsExternal(), - commonjs(), - nodeExternal(), - resolve({ browser: true }), - json(), - typescript({ tsconfig: './tsconfig.build.json' }), - babel({ - presets: ['@babel/preset-react'], - babelHelpers: 'runtime', - exclude: ['node_modules/**', 'dist/**'], - extensions: ['.ts', '.tsx'], - inputSourceMap: true, - plugins: ['@babel/plugin-transform-runtime'], - }), - filesize(), - ], - }, - { - input: './src/css.tsx', - output: [ - { - file: './dist/css.js', - format: 'cjs', - sourcemap: true, - }, - { - file: './dist/css.mjs', - format: 'es', - sourcemap: true, - }, - ], - plugins: [ - peerDepsExternal(), - commonjs(), - nodeExternal(), - resolve({ browser: true }), - json(), - postcss({ - extensions: ['.css', '.scss'], - minimize: true, - }), - typescript({ tsconfig: './tsconfig.build.json' }), - babel({ - presets: ['@babel/preset-react'], - babelHelpers: 'runtime', - exclude: ['node_modules/**', 'dist/**'], - extensions: ['.ts', '.tsx'], - inputSourceMap: true, - plugins: ['@babel/plugin-transform-runtime'], - }), - filesize(), - ], - }, -]; +export default createConfig(); diff --git a/packages/components-react/page-layout-react/package.json b/packages/components-react/page-layout-react/package.json index c6ef51e597d..19d080b9ffd 100644 --- a/packages/components-react/page-layout-react/package.json +++ b/packages/components-react/page-layout-react/package.json @@ -19,15 +19,6 @@ "typecheck": "tsc --noEmit" }, "devDependencies": { - "@babel/plugin-transform-runtime": "7.24.7", - "@babel/preset-env": "7.24.7", - "@babel/preset-react": "7.24.7", - "@babel/preset-typescript": "7.24.7", - "@rollup/plugin-babel": "6.0.4", - "@rollup/plugin-commonjs": "26.0.1", - "@rollup/plugin-json": "6.1.0", - "@rollup/plugin-node-resolve": "15.2.3", - "@rollup/plugin-typescript": "12.1.0", "@testing-library/dom": "8.20.1", "@testing-library/jest-dom": "6.5.0", "@testing-library/react": "16.0.1", @@ -35,15 +26,12 @@ "@types/jest": "29.5.13", "@types/react": "18.3.3", "@types/testing-library__jest-dom": "5.14.9", + "@utrecht/build-utils-react": "workspace:*", "@utrecht/page-layout-css": "workspace:*", "jest": "29.7.0", "jest-environment-jsdom": "29.7.0", "react": "18.3.1", "rollup": "4.23.0", - "rollup-plugin-filesize": "10.0.0", - "rollup-plugin-node-externals": "7.1.2", - "rollup-plugin-peer-deps-external": "2.2.4", - "rollup-plugin-postcss": "4.0.2", "typescript": "5.6.2" }, "keywords": [ diff --git a/packages/components-react/page-layout-react/rollup.config.mjs b/packages/components-react/page-layout-react/rollup.config.mjs index 97d452b8ca0..10d600728f2 100644 --- a/packages/components-react/page-layout-react/rollup.config.mjs +++ b/packages/components-react/page-layout-react/rollup.config.mjs @@ -1,87 +1,3 @@ -import babel from '@rollup/plugin-babel'; -import commonjs from '@rollup/plugin-commonjs'; -import json from '@rollup/plugin-json'; -import resolve from '@rollup/plugin-node-resolve'; -import typescript from '@rollup/plugin-typescript'; -import { readFileSync } from 'fs'; -import filesize from 'rollup-plugin-filesize'; -import nodeExternal from 'rollup-plugin-node-externals'; -import peerDepsExternal from 'rollup-plugin-peer-deps-external'; -import postcss from 'rollup-plugin-postcss'; +import { createConfig } from '@utrecht/build-utils-react/src/rollup.mjs'; -const packagePath = new URL('./package.json', import.meta.url).pathname; -const packageJson = JSON.parse(readFileSync(packagePath, 'utf8')); - -/** - * @type {import('rollup').RollupOptions} - */ -export default [ - { - input: './src/index.tsx', - output: [ - { - file: packageJson.main, - format: 'cjs', - sourcemap: true, - }, - { - file: packageJson.module, - format: 'es', - sourcemap: true, - }, - ], - plugins: [ - peerDepsExternal(), - commonjs(), - nodeExternal(), - resolve({ browser: true }), - json(), - typescript({ tsconfig: './tsconfig.build.json' }), - babel({ - presets: ['@babel/preset-react'], - babelHelpers: 'runtime', - exclude: ['node_modules/**', 'dist/**'], - extensions: ['.ts', '.tsx'], - inputSourceMap: true, - plugins: ['@babel/plugin-transform-runtime'], - }), - filesize(), - ], - }, - { - input: './src/css.tsx', - output: [ - { - file: './dist/css.js', - format: 'cjs', - sourcemap: true, - }, - { - file: './dist/css.mjs', - format: 'es', - sourcemap: true, - }, - ], - plugins: [ - peerDepsExternal(), - commonjs(), - nodeExternal(), - resolve({ browser: true }), - json(), - postcss({ - extensions: ['.css', '.scss'], - minimize: true, - }), - typescript({ tsconfig: './tsconfig.build.json' }), - babel({ - presets: ['@babel/preset-react'], - babelHelpers: 'runtime', - exclude: ['node_modules/**', 'dist/**'], - extensions: ['.ts', '.tsx'], - inputSourceMap: true, - plugins: ['@babel/plugin-transform-runtime'], - }), - filesize(), - ], - }, -]; +export default createConfig(); diff --git a/packages/components-react/radio-button-react/package.json b/packages/components-react/radio-button-react/package.json index 6f71f9bc77f..ddec732e7ed 100644 --- a/packages/components-react/radio-button-react/package.json +++ b/packages/components-react/radio-button-react/package.json @@ -19,15 +19,6 @@ "typecheck": "tsc --noEmit" }, "devDependencies": { - "@babel/plugin-transform-runtime": "7.24.7", - "@babel/preset-env": "7.24.7", - "@babel/preset-react": "7.24.7", - "@babel/preset-typescript": "7.24.7", - "@rollup/plugin-babel": "6.0.4", - "@rollup/plugin-commonjs": "26.0.1", - "@rollup/plugin-json": "6.1.0", - "@rollup/plugin-node-resolve": "15.2.3", - "@rollup/plugin-typescript": "12.1.0", "@testing-library/dom": "8.20.1", "@testing-library/jest-dom": "6.5.0", "@testing-library/react": "16.0.1", @@ -35,15 +26,12 @@ "@types/jest": "29.5.13", "@types/react": "18.3.3", "@types/testing-library__jest-dom": "5.14.9", + "@utrecht/build-utils-react": "workspace:*", "@utrecht/radio-button-css": "workspace:*", "jest": "29.7.0", "jest-environment-jsdom": "29.7.0", "react": "18.3.1", "rollup": "4.23.0", - "rollup-plugin-filesize": "10.0.0", - "rollup-plugin-node-externals": "7.1.2", - "rollup-plugin-peer-deps-external": "2.2.4", - "rollup-plugin-postcss": "4.0.2", "typescript": "5.6.2" }, "keywords": [ diff --git a/packages/components-react/radio-button-react/rollup.config.mjs b/packages/components-react/radio-button-react/rollup.config.mjs index 6cc9b8c1b8a..10d600728f2 100644 --- a/packages/components-react/radio-button-react/rollup.config.mjs +++ b/packages/components-react/radio-button-react/rollup.config.mjs @@ -1,87 +1,3 @@ -import babel from '@rollup/plugin-babel'; -import commonjs from '@rollup/plugin-commonjs'; -import json from '@rollup/plugin-json'; -import resolve from '@rollup/plugin-node-resolve'; -import typescript from '@rollup/plugin-typescript'; -import { readFileSync } from 'fs'; -import filesize from 'rollup-plugin-filesize'; -import nodeExternal from 'rollup-plugin-node-externals'; -import peerDepsExternal from 'rollup-plugin-peer-deps-external'; -import postcss from 'rollup-plugin-postcss'; +import { createConfig } from '@utrecht/build-utils-react/src/rollup.mjs'; -const packagePath = new URL('./package.json', import.meta.url).pathname; -const packageJson = JSON.parse(readFileSync(packagePath, 'utf8')); - -/** - * @type {import('rollup').RollupOptions} - */ -export default [ - { - input: './src/index.tsx', - output: [ - { - file: packageJson.main, - format: 'cjs', - sourcemap: true, - }, - { - file: packageJson.module, - format: 'es', - sourcemap: true, - }, - ], - plugins: [ - peerDepsExternal(), - commonjs(), - nodeExternal(), - resolve({ browser: true }), - json(), - typescript({ tsconfig: './tsconfig.build.json' }), - babel({ - presets: ['@babel/preset-react'], - babelHelpers: 'runtime', - exclude: ['node_modules/**', 'dist/**'], - extensions: ['.ts', '.tsx'], - inputSourceMap: true, - plugins: ['@babel/plugin-transform-runtime'], - }), - filesize(), - ], - }, - { - input: './src/css.tsx', - output: [ - { - file: './dist/css.cjs', - format: 'cjs', - sourcemap: true, - }, - { - file: './dist/css.mjs', - format: 'es', - sourcemap: true, - }, - ], - plugins: [ - peerDepsExternal(), - commonjs(), - nodeExternal(), - resolve({ browser: true }), - json(), - postcss({ - extensions: ['.css', '.scss'], - minimize: true, - }), - typescript({ tsconfig: './tsconfig.build.json' }), - babel({ - presets: ['@babel/preset-react'], - babelHelpers: 'runtime', - exclude: ['node_modules/**', 'dist/**'], - extensions: ['.ts', '.tsx'], - inputSourceMap: true, - plugins: ['@babel/plugin-transform-runtime'], - }), - filesize(), - ], - }, -]; +export default createConfig(); diff --git a/packages/components-react/radio-group-react/package.json b/packages/components-react/radio-group-react/package.json index c096fe7671a..4302971dce0 100644 --- a/packages/components-react/radio-group-react/package.json +++ b/packages/components-react/radio-group-react/package.json @@ -19,15 +19,6 @@ "typecheck": "tsc --noEmit" }, "devDependencies": { - "@babel/plugin-transform-runtime": "7.24.7", - "@babel/preset-env": "7.24.7", - "@babel/preset-react": "7.24.7", - "@babel/preset-typescript": "7.24.7", - "@rollup/plugin-babel": "6.0.4", - "@rollup/plugin-commonjs": "26.0.1", - "@rollup/plugin-json": "6.1.0", - "@rollup/plugin-node-resolve": "15.2.3", - "@rollup/plugin-typescript": "12.1.0", "@testing-library/dom": "8.20.1", "@testing-library/jest-dom": "6.5.0", "@testing-library/react": "16.0.1", @@ -35,15 +26,12 @@ "@types/jest": "29.5.13", "@types/react": "18.3.3", "@types/testing-library__jest-dom": "5.14.9", + "@utrecht/build-utils-react": "workspace:*", "@utrecht/form-field-css": "workspace:*", "jest": "29.7.0", "jest-environment-jsdom": "29.7.0", "react": "18.3.1", "rollup": "4.23.0", - "rollup-plugin-filesize": "10.0.0", - "rollup-plugin-node-externals": "7.1.2", - "rollup-plugin-peer-deps-external": "2.2.4", - "rollup-plugin-postcss": "4.0.2", "typescript": "5.6.2" }, "keywords": [ diff --git a/packages/components-react/radio-group-react/rollup.config.mjs b/packages/components-react/radio-group-react/rollup.config.mjs index 6cc9b8c1b8a..10d600728f2 100644 --- a/packages/components-react/radio-group-react/rollup.config.mjs +++ b/packages/components-react/radio-group-react/rollup.config.mjs @@ -1,87 +1,3 @@ -import babel from '@rollup/plugin-babel'; -import commonjs from '@rollup/plugin-commonjs'; -import json from '@rollup/plugin-json'; -import resolve from '@rollup/plugin-node-resolve'; -import typescript from '@rollup/plugin-typescript'; -import { readFileSync } from 'fs'; -import filesize from 'rollup-plugin-filesize'; -import nodeExternal from 'rollup-plugin-node-externals'; -import peerDepsExternal from 'rollup-plugin-peer-deps-external'; -import postcss from 'rollup-plugin-postcss'; +import { createConfig } from '@utrecht/build-utils-react/src/rollup.mjs'; -const packagePath = new URL('./package.json', import.meta.url).pathname; -const packageJson = JSON.parse(readFileSync(packagePath, 'utf8')); - -/** - * @type {import('rollup').RollupOptions} - */ -export default [ - { - input: './src/index.tsx', - output: [ - { - file: packageJson.main, - format: 'cjs', - sourcemap: true, - }, - { - file: packageJson.module, - format: 'es', - sourcemap: true, - }, - ], - plugins: [ - peerDepsExternal(), - commonjs(), - nodeExternal(), - resolve({ browser: true }), - json(), - typescript({ tsconfig: './tsconfig.build.json' }), - babel({ - presets: ['@babel/preset-react'], - babelHelpers: 'runtime', - exclude: ['node_modules/**', 'dist/**'], - extensions: ['.ts', '.tsx'], - inputSourceMap: true, - plugins: ['@babel/plugin-transform-runtime'], - }), - filesize(), - ], - }, - { - input: './src/css.tsx', - output: [ - { - file: './dist/css.cjs', - format: 'cjs', - sourcemap: true, - }, - { - file: './dist/css.mjs', - format: 'es', - sourcemap: true, - }, - ], - plugins: [ - peerDepsExternal(), - commonjs(), - nodeExternal(), - resolve({ browser: true }), - json(), - postcss({ - extensions: ['.css', '.scss'], - minimize: true, - }), - typescript({ tsconfig: './tsconfig.build.json' }), - babel({ - presets: ['@babel/preset-react'], - babelHelpers: 'runtime', - exclude: ['node_modules/**', 'dist/**'], - extensions: ['.ts', '.tsx'], - inputSourceMap: true, - plugins: ['@babel/plugin-transform-runtime'], - }), - filesize(), - ], - }, -]; +export default createConfig(); diff --git a/packages/components-react/root-react/package.json b/packages/components-react/root-react/package.json index 1048425002f..30c207a5d2c 100644 --- a/packages/components-react/root-react/package.json +++ b/packages/components-react/root-react/package.json @@ -19,15 +19,6 @@ "typecheck": "tsc --noEmit" }, "devDependencies": { - "@babel/plugin-transform-runtime": "7.24.7", - "@babel/preset-env": "7.24.7", - "@babel/preset-react": "7.24.7", - "@babel/preset-typescript": "7.24.7", - "@rollup/plugin-babel": "6.0.4", - "@rollup/plugin-commonjs": "26.0.1", - "@rollup/plugin-json": "6.1.0", - "@rollup/plugin-node-resolve": "15.2.3", - "@rollup/plugin-typescript": "12.1.0", "@testing-library/dom": "8.20.1", "@testing-library/jest-dom": "6.5.0", "@testing-library/react": "16.0.1", @@ -35,15 +26,12 @@ "@types/jest": "29.5.13", "@types/react": "18.3.3", "@types/testing-library__jest-dom": "5.14.9", + "@utrecht/build-utils-react": "workspace:*", "@utrecht/root-css": "workspace:*", "jest": "29.7.0", "jest-environment-jsdom": "29.7.0", "react": "18.3.1", "rollup": "4.23.0", - "rollup-plugin-filesize": "10.0.0", - "rollup-plugin-node-externals": "7.1.2", - "rollup-plugin-peer-deps-external": "2.2.4", - "rollup-plugin-postcss": "4.0.2", "typescript": "5.6.2" }, "keywords": [ diff --git a/packages/components-react/root-react/rollup.config.mjs b/packages/components-react/root-react/rollup.config.mjs index 97d452b8ca0..10d600728f2 100644 --- a/packages/components-react/root-react/rollup.config.mjs +++ b/packages/components-react/root-react/rollup.config.mjs @@ -1,87 +1,3 @@ -import babel from '@rollup/plugin-babel'; -import commonjs from '@rollup/plugin-commonjs'; -import json from '@rollup/plugin-json'; -import resolve from '@rollup/plugin-node-resolve'; -import typescript from '@rollup/plugin-typescript'; -import { readFileSync } from 'fs'; -import filesize from 'rollup-plugin-filesize'; -import nodeExternal from 'rollup-plugin-node-externals'; -import peerDepsExternal from 'rollup-plugin-peer-deps-external'; -import postcss from 'rollup-plugin-postcss'; +import { createConfig } from '@utrecht/build-utils-react/src/rollup.mjs'; -const packagePath = new URL('./package.json', import.meta.url).pathname; -const packageJson = JSON.parse(readFileSync(packagePath, 'utf8')); - -/** - * @type {import('rollup').RollupOptions} - */ -export default [ - { - input: './src/index.tsx', - output: [ - { - file: packageJson.main, - format: 'cjs', - sourcemap: true, - }, - { - file: packageJson.module, - format: 'es', - sourcemap: true, - }, - ], - plugins: [ - peerDepsExternal(), - commonjs(), - nodeExternal(), - resolve({ browser: true }), - json(), - typescript({ tsconfig: './tsconfig.build.json' }), - babel({ - presets: ['@babel/preset-react'], - babelHelpers: 'runtime', - exclude: ['node_modules/**', 'dist/**'], - extensions: ['.ts', '.tsx'], - inputSourceMap: true, - plugins: ['@babel/plugin-transform-runtime'], - }), - filesize(), - ], - }, - { - input: './src/css.tsx', - output: [ - { - file: './dist/css.js', - format: 'cjs', - sourcemap: true, - }, - { - file: './dist/css.mjs', - format: 'es', - sourcemap: true, - }, - ], - plugins: [ - peerDepsExternal(), - commonjs(), - nodeExternal(), - resolve({ browser: true }), - json(), - postcss({ - extensions: ['.css', '.scss'], - minimize: true, - }), - typescript({ tsconfig: './tsconfig.build.json' }), - babel({ - presets: ['@babel/preset-react'], - babelHelpers: 'runtime', - exclude: ['node_modules/**', 'dist/**'], - extensions: ['.ts', '.tsx'], - inputSourceMap: true, - plugins: ['@babel/plugin-transform-runtime'], - }), - filesize(), - ], - }, -]; +export default createConfig(); diff --git a/packages/components-react/textbox-react/package.json b/packages/components-react/textbox-react/package.json index 7491feac057..b0c6d1a912c 100644 --- a/packages/components-react/textbox-react/package.json +++ b/packages/components-react/textbox-react/package.json @@ -19,15 +19,6 @@ "typecheck": "tsc --noEmit" }, "devDependencies": { - "@babel/plugin-transform-runtime": "7.24.7", - "@babel/preset-env": "7.24.7", - "@babel/preset-react": "7.24.7", - "@babel/preset-typescript": "7.24.7", - "@rollup/plugin-babel": "6.0.4", - "@rollup/plugin-commonjs": "26.0.1", - "@rollup/plugin-json": "6.1.0", - "@rollup/plugin-node-resolve": "15.2.3", - "@rollup/plugin-typescript": "12.1.0", "@testing-library/dom": "8.20.1", "@testing-library/jest-dom": "6.5.0", "@testing-library/react": "16.0.1", @@ -35,15 +26,12 @@ "@types/jest": "29.5.13", "@types/react": "18.3.3", "@types/testing-library__jest-dom": "5.14.9", + "@utrecht/build-utils-react": "workspace:*", "@utrecht/textbox-css": "workspace:*", "jest": "29.7.0", "jest-environment-jsdom": "29.7.0", "react": "18.3.1", "rollup": "4.23.0", - "rollup-plugin-filesize": "10.0.0", - "rollup-plugin-node-externals": "7.1.2", - "rollup-plugin-peer-deps-external": "2.2.4", - "rollup-plugin-postcss": "4.0.2", "typescript": "5.6.2" }, "keywords": [ diff --git a/packages/components-react/textbox-react/rollup.config.mjs b/packages/components-react/textbox-react/rollup.config.mjs index 6cc9b8c1b8a..10d600728f2 100644 --- a/packages/components-react/textbox-react/rollup.config.mjs +++ b/packages/components-react/textbox-react/rollup.config.mjs @@ -1,87 +1,3 @@ -import babel from '@rollup/plugin-babel'; -import commonjs from '@rollup/plugin-commonjs'; -import json from '@rollup/plugin-json'; -import resolve from '@rollup/plugin-node-resolve'; -import typescript from '@rollup/plugin-typescript'; -import { readFileSync } from 'fs'; -import filesize from 'rollup-plugin-filesize'; -import nodeExternal from 'rollup-plugin-node-externals'; -import peerDepsExternal from 'rollup-plugin-peer-deps-external'; -import postcss from 'rollup-plugin-postcss'; +import { createConfig } from '@utrecht/build-utils-react/src/rollup.mjs'; -const packagePath = new URL('./package.json', import.meta.url).pathname; -const packageJson = JSON.parse(readFileSync(packagePath, 'utf8')); - -/** - * @type {import('rollup').RollupOptions} - */ -export default [ - { - input: './src/index.tsx', - output: [ - { - file: packageJson.main, - format: 'cjs', - sourcemap: true, - }, - { - file: packageJson.module, - format: 'es', - sourcemap: true, - }, - ], - plugins: [ - peerDepsExternal(), - commonjs(), - nodeExternal(), - resolve({ browser: true }), - json(), - typescript({ tsconfig: './tsconfig.build.json' }), - babel({ - presets: ['@babel/preset-react'], - babelHelpers: 'runtime', - exclude: ['node_modules/**', 'dist/**'], - extensions: ['.ts', '.tsx'], - inputSourceMap: true, - plugins: ['@babel/plugin-transform-runtime'], - }), - filesize(), - ], - }, - { - input: './src/css.tsx', - output: [ - { - file: './dist/css.cjs', - format: 'cjs', - sourcemap: true, - }, - { - file: './dist/css.mjs', - format: 'es', - sourcemap: true, - }, - ], - plugins: [ - peerDepsExternal(), - commonjs(), - nodeExternal(), - resolve({ browser: true }), - json(), - postcss({ - extensions: ['.css', '.scss'], - minimize: true, - }), - typescript({ tsconfig: './tsconfig.build.json' }), - babel({ - presets: ['@babel/preset-react'], - babelHelpers: 'runtime', - exclude: ['node_modules/**', 'dist/**'], - extensions: ['.ts', '.tsx'], - inputSourceMap: true, - plugins: ['@babel/plugin-transform-runtime'], - }), - filesize(), - ], - }, -]; +export default createConfig(); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5a0ef1171a6..d52bbae3705 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1063,7 +1063,7 @@ importers: devDependencies: '@angular-devkit/build-angular': specifier: 17.1.0 - version: 17.1.0(@angular/compiler-cli@17.1.0(@angular/compiler@17.1.0(@angular/core@17.1.0(rxjs@7.8.1)(zone.js@0.14.3)))(typescript@5.3.3))(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/express@4.17.21)(@types/node@22.7.4)(chokidar@3.5.3)(html-webpack-plugin@5.5.4(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11)))(jest-environment-jsdom@29.7.0)(jest@29.7.0(@types/node@22.7.4)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/node@22.7.4)(typescript@5.3.3)))(ng-packagr@17.0.3(@angular/compiler-cli@17.1.0(@angular/compiler@17.1.0(@angular/core@17.1.0(rxjs@7.8.1)(zone.js@0.14.3)))(typescript@5.3.3))(tslib@2.6.2)(typescript@5.3.3))(typescript@5.3.3) + version: 17.1.0(@angular/compiler-cli@17.1.0(@angular/compiler@17.1.0(@angular/core@17.1.0(rxjs@7.8.1)(zone.js@0.14.3)))(typescript@5.3.3))(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/express@4.17.21)(@types/node@22.7.4)(chokidar@3.5.3)(html-webpack-plugin@5.5.4(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))))(jest-environment-jsdom@29.7.0)(jest@29.7.0(@types/node@22.7.4)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/node@22.7.4)(typescript@5.3.3)))(ng-packagr@17.0.3(@angular/compiler-cli@17.1.0(@angular/compiler@17.1.0(@angular/core@17.1.0(rxjs@7.8.1)(zone.js@0.14.3)))(typescript@5.3.3))(tslib@2.6.2)(typescript@5.3.3))(typescript@5.3.3) '@angular/animations': specifier: 17.1.0 version: 17.1.0(@angular/core@17.1.0(rxjs@7.8.1)(zone.js@0.14.3)) @@ -1213,7 +1213,7 @@ importers: version: 29.7.0(@types/node@22.7.4)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/node@22.7.4)(typescript@5.3.3)) jest-preset-angular: specifier: 13.1.4 - version: 13.1.4(lclvuqcmfjqpf7yvsvwiyjlzae) + version: 13.1.4(6b34yrqv6cw3yppjzvogcm4gq4) lodash.clonedeepwith: specifier: 4.5.0 version: 4.5.0 @@ -2269,33 +2269,6 @@ importers: specifier: '18' version: 18.3.1(react@18.3.1) devDependencies: - '@babel/plugin-transform-runtime': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-env': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-react': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-typescript': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@rollup/plugin-babel': - specifier: 6.0.4 - version: 6.0.4(@babel/core@7.24.7)(@types/babel__core@7.20.5)(rollup@4.23.0) - '@rollup/plugin-commonjs': - specifier: 26.0.1 - version: 26.0.1(rollup@4.23.0) - '@rollup/plugin-json': - specifier: 6.1.0 - version: 6.1.0(rollup@4.23.0) - '@rollup/plugin-node-resolve': - specifier: 15.2.3 - version: 15.2.3(rollup@4.23.0) - '@rollup/plugin-typescript': - specifier: 12.1.0 - version: 12.1.0(rollup@4.23.0)(tslib@2.6.2)(typescript@5.6.2) '@testing-library/dom': specifier: 8.20.1 version: 8.20.1 @@ -2320,6 +2293,9 @@ importers: '@utrecht/body-css': specifier: workspace:* version: link:../../../components/body + '@utrecht/build-utils-react': + specifier: workspace:* + version: link:../../build-utils-react jest: specifier: 29.7.0 version: 29.7.0(@types/node@22.7.4)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/node@22.7.4)(typescript@5.6.2)) @@ -2332,18 +2308,6 @@ importers: rollup: specifier: 4.23.0 version: 4.23.0 - rollup-plugin-filesize: - specifier: 10.0.0 - version: 10.0.0 - rollup-plugin-node-externals: - specifier: 7.1.2 - version: 7.1.2(rollup@4.23.0) - rollup-plugin-peer-deps-external: - specifier: 2.2.4 - version: 2.2.4(rollup@4.23.0) - rollup-plugin-postcss: - specifier: 4.0.2 - version: 4.0.2(postcss@8.4.38)(ts-node@10.9.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/node@22.7.4)(typescript@5.6.2)) typescript: specifier: 5.6.2 version: 5.6.2 @@ -3120,33 +3084,6 @@ importers: specifier: '18' version: 18.3.1(react@18.3.1) devDependencies: - '@babel/plugin-transform-runtime': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-env': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-react': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-typescript': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@rollup/plugin-babel': - specifier: 6.0.4 - version: 6.0.4(@babel/core@7.24.7)(@types/babel__core@7.20.5)(rollup@4.23.0) - '@rollup/plugin-commonjs': - specifier: 26.0.1 - version: 26.0.1(rollup@4.23.0) - '@rollup/plugin-json': - specifier: 6.1.0 - version: 6.1.0(rollup@4.23.0) - '@rollup/plugin-node-resolve': - specifier: 15.2.3 - version: 15.2.3(rollup@4.23.0) - '@rollup/plugin-typescript': - specifier: 12.1.0 - version: 12.1.0(rollup@4.23.0)(tslib@2.6.2)(typescript@5.6.2) '@testing-library/dom': specifier: 8.20.1 version: 8.20.1 @@ -3168,6 +3105,9 @@ importers: '@types/testing-library__jest-dom': specifier: 5.14.9 version: 5.14.9 + '@utrecht/build-utils-react': + specifier: workspace:* + version: link:../../build-utils-react '@utrecht/nav-bar-css': specifier: workspace:* version: link:../../../components/nav-bar @@ -3183,18 +3123,6 @@ importers: rollup: specifier: 4.23.0 version: 4.23.0 - rollup-plugin-filesize: - specifier: 10.0.0 - version: 10.0.0 - rollup-plugin-node-externals: - specifier: 7.1.2 - version: 7.1.2(rollup@4.23.0) - rollup-plugin-peer-deps-external: - specifier: 2.2.4 - version: 2.2.4(rollup@4.23.0) - rollup-plugin-postcss: - specifier: 4.0.2 - version: 4.0.2(postcss@8.4.38)(ts-node@10.9.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/node@22.7.4)(typescript@5.6.2)) typescript: specifier: 5.6.2 version: 5.6.2 @@ -3211,33 +3139,6 @@ importers: specifier: '18' version: 18.3.1(react@18.3.1) devDependencies: - '@babel/plugin-transform-runtime': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-env': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-react': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-typescript': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@rollup/plugin-babel': - specifier: 6.0.4 - version: 6.0.4(@babel/core@7.24.7)(@types/babel__core@7.20.5)(rollup@4.23.0) - '@rollup/plugin-commonjs': - specifier: 26.0.1 - version: 26.0.1(rollup@4.23.0) - '@rollup/plugin-json': - specifier: 6.1.0 - version: 6.1.0(rollup@4.23.0) - '@rollup/plugin-node-resolve': - specifier: 15.2.3 - version: 15.2.3(rollup@4.23.0) - '@rollup/plugin-typescript': - specifier: 12.1.0 - version: 12.1.0(rollup@4.23.0)(tslib@2.6.2)(typescript@5.6.2) '@testing-library/dom': specifier: 8.20.1 version: 8.20.1 @@ -3259,6 +3160,9 @@ importers: '@types/testing-library__jest-dom': specifier: 5.14.9 version: 5.14.9 + '@utrecht/build-utils-react': + specifier: workspace:* + version: link:../../build-utils-react '@utrecht/page-body-css': specifier: workspace:* version: link:../../../components/page-body @@ -3274,18 +3178,6 @@ importers: rollup: specifier: 4.23.0 version: 4.23.0 - rollup-plugin-filesize: - specifier: 10.0.0 - version: 10.0.0 - rollup-plugin-node-externals: - specifier: 7.1.2 - version: 7.1.2(rollup@4.23.0) - rollup-plugin-peer-deps-external: - specifier: 2.2.4 - version: 2.2.4(rollup@4.23.0) - rollup-plugin-postcss: - specifier: 4.0.2 - version: 4.0.2(postcss@8.4.38)(ts-node@10.9.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/node@22.7.4)(typescript@5.6.2)) typescript: specifier: 5.6.2 version: 5.6.2 @@ -3302,33 +3194,6 @@ importers: specifier: '18' version: 18.3.1(react@18.3.1) devDependencies: - '@babel/plugin-transform-runtime': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-env': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-react': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-typescript': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@rollup/plugin-babel': - specifier: 6.0.4 - version: 6.0.4(@babel/core@7.24.7)(@types/babel__core@7.20.5)(rollup@4.23.0) - '@rollup/plugin-commonjs': - specifier: 26.0.1 - version: 26.0.1(rollup@4.23.0) - '@rollup/plugin-json': - specifier: 6.1.0 - version: 6.1.0(rollup@4.23.0) - '@rollup/plugin-node-resolve': - specifier: 15.2.3 - version: 15.2.3(rollup@4.23.0) - '@rollup/plugin-typescript': - specifier: 12.1.0 - version: 12.1.0(rollup@4.23.0)(tslib@2.6.2)(typescript@5.6.2) '@testing-library/dom': specifier: 8.20.1 version: 8.20.1 @@ -3350,6 +3215,9 @@ importers: '@types/testing-library__jest-dom': specifier: 5.14.9 version: 5.14.9 + '@utrecht/build-utils-react': + specifier: workspace:* + version: link:../../build-utils-react '@utrecht/page-footer-css': specifier: workspace:* version: link:../../../components/page-footer @@ -3365,18 +3233,6 @@ importers: rollup: specifier: 4.23.0 version: 4.23.0 - rollup-plugin-filesize: - specifier: 10.0.0 - version: 10.0.0 - rollup-plugin-node-externals: - specifier: 7.1.2 - version: 7.1.2(rollup@4.23.0) - rollup-plugin-peer-deps-external: - specifier: 2.2.4 - version: 2.2.4(rollup@4.23.0) - rollup-plugin-postcss: - specifier: 4.0.2 - version: 4.0.2(postcss@8.4.38)(ts-node@10.9.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/node@22.7.4)(typescript@5.6.2)) typescript: specifier: 5.6.2 version: 5.6.2 @@ -3393,33 +3249,6 @@ importers: specifier: '18' version: 18.3.1(react@18.3.1) devDependencies: - '@babel/plugin-transform-runtime': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-env': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-react': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-typescript': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@rollup/plugin-babel': - specifier: 6.0.4 - version: 6.0.4(@babel/core@7.24.7)(@types/babel__core@7.20.5)(rollup@4.23.0) - '@rollup/plugin-commonjs': - specifier: 26.0.1 - version: 26.0.1(rollup@4.23.0) - '@rollup/plugin-json': - specifier: 6.1.0 - version: 6.1.0(rollup@4.23.0) - '@rollup/plugin-node-resolve': - specifier: 15.2.3 - version: 15.2.3(rollup@4.23.0) - '@rollup/plugin-typescript': - specifier: 12.1.0 - version: 12.1.0(rollup@4.23.0)(tslib@2.6.2)(typescript@5.6.2) '@testing-library/dom': specifier: 8.20.1 version: 8.20.1 @@ -3441,6 +3270,9 @@ importers: '@types/testing-library__jest-dom': specifier: 5.14.9 version: 5.14.9 + '@utrecht/build-utils-react': + specifier: workspace:* + version: link:../../build-utils-react '@utrecht/page-header-css': specifier: workspace:* version: link:../../../components/page-header @@ -3456,18 +3288,6 @@ importers: rollup: specifier: 4.23.0 version: 4.23.0 - rollup-plugin-filesize: - specifier: 10.0.0 - version: 10.0.0 - rollup-plugin-node-externals: - specifier: 7.1.2 - version: 7.1.2(rollup@4.23.0) - rollup-plugin-peer-deps-external: - specifier: 2.2.4 - version: 2.2.4(rollup@4.23.0) - rollup-plugin-postcss: - specifier: 4.0.2 - version: 4.0.2(postcss@8.4.38)(ts-node@10.9.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/node@22.7.4)(typescript@5.6.2)) typescript: specifier: 5.6.2 version: 5.6.2 @@ -3484,33 +3304,6 @@ importers: specifier: '18' version: 18.3.1(react@18.3.1) devDependencies: - '@babel/plugin-transform-runtime': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-env': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-react': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-typescript': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@rollup/plugin-babel': - specifier: 6.0.4 - version: 6.0.4(@babel/core@7.24.7)(@types/babel__core@7.20.5)(rollup@4.23.0) - '@rollup/plugin-commonjs': - specifier: 26.0.1 - version: 26.0.1(rollup@4.23.0) - '@rollup/plugin-json': - specifier: 6.1.0 - version: 6.1.0(rollup@4.23.0) - '@rollup/plugin-node-resolve': - specifier: 15.2.3 - version: 15.2.3(rollup@4.23.0) - '@rollup/plugin-typescript': - specifier: 12.1.0 - version: 12.1.0(rollup@4.23.0)(tslib@2.6.2)(typescript@5.6.2) '@testing-library/dom': specifier: 8.20.1 version: 8.20.1 @@ -3532,6 +3325,9 @@ importers: '@types/testing-library__jest-dom': specifier: 5.14.9 version: 5.14.9 + '@utrecht/build-utils-react': + specifier: workspace:* + version: link:../../build-utils-react '@utrecht/page-layout-css': specifier: workspace:* version: link:../../../components/page-layout @@ -3547,18 +3343,6 @@ importers: rollup: specifier: 4.23.0 version: 4.23.0 - rollup-plugin-filesize: - specifier: 10.0.0 - version: 10.0.0 - rollup-plugin-node-externals: - specifier: 7.1.2 - version: 7.1.2(rollup@4.23.0) - rollup-plugin-peer-deps-external: - specifier: 2.2.4 - version: 2.2.4(rollup@4.23.0) - rollup-plugin-postcss: - specifier: 4.0.2 - version: 4.0.2(postcss@8.4.38)(ts-node@10.9.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/node@22.7.4)(typescript@5.6.2)) typescript: specifier: 5.6.2 version: 5.6.2 @@ -3703,33 +3487,6 @@ importers: specifier: '18' version: 18.3.1(react@18.3.1) devDependencies: - '@babel/plugin-transform-runtime': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-env': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-react': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@babel/preset-typescript': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7) - '@rollup/plugin-babel': - specifier: 6.0.4 - version: 6.0.4(@babel/core@7.24.7)(@types/babel__core@7.20.5)(rollup@4.23.0) - '@rollup/plugin-commonjs': - specifier: 26.0.1 - version: 26.0.1(rollup@4.23.0) - '@rollup/plugin-json': - specifier: 6.1.0 - version: 6.1.0(rollup@4.23.0) - '@rollup/plugin-node-resolve': - specifier: 15.2.3 - version: 15.2.3(rollup@4.23.0) - '@rollup/plugin-typescript': - specifier: 12.1.0 - version: 12.1.0(rollup@4.23.0)(tslib@2.6.2)(typescript@5.6.2) '@testing-library/dom': specifier: 8.20.1 version: 8.20.1 @@ -3751,6 +3508,9 @@ importers: '@types/testing-library__jest-dom': specifier: 5.14.9 version: 5.14.9 + '@utrecht/build-utils-react': + specifier: workspace:* + version: link:../../build-utils-react '@utrecht/root-css': specifier: workspace:* version: link:../../../components/root @@ -3766,18 +3526,6 @@ importers: rollup: specifier: 4.23.0 version: 4.23.0 - rollup-plugin-filesize: - specifier: 10.0.0 - version: 10.0.0 - rollup-plugin-node-externals: - specifier: 7.1.2 - version: 7.1.2(rollup@4.23.0) - rollup-plugin-peer-deps-external: - specifier: 2.2.4 - version: 2.2.4(rollup@4.23.0) - rollup-plugin-postcss: - specifier: 4.0.2 - version: 4.0.2(postcss@8.4.38)(ts-node@10.9.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/node@22.7.4)(typescript@5.6.2)) typescript: specifier: 5.6.2 version: 5.6.2 @@ -4142,13 +3890,13 @@ importers: version: 1.1.0 '@storybook/preset-scss': specifier: 1.0.3 - version: 1.0.3(css-loader@6.8.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))))(sass-loader@13.3.2(sass@1.69.5)(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))))(style-loader@3.3.3(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5)))) + version: 1.0.3(css-loader@6.8.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)))(sass-loader@13.3.2(sass@1.69.5)(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)))(style-loader@3.3.3(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20))) '@storybook/react': specifier: 7.6.4 version: 7.6.4(encoding@0.1.13)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(typescript@4.9.5) '@storybook/react-webpack5': specifier: 7.6.4 - version: 7.6.4(@babel/core@7.24.7)(@swc/core@1.3.100(@swc/helpers@0.5.5))(@swc/helpers@0.5.5)(encoding@0.1.13)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(type-fest@4.20.1)(typescript@4.9.5)(webpack-dev-server@4.15.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11)))(webpack-hot-middleware@2.25.4) + version: 7.6.4(@babel/core@7.24.7)(@swc/core@1.3.100(@swc/helpers@0.5.5))(@swc/helpers@0.5.5)(encoding@0.1.13)(esbuild@0.18.20)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(type-fest@4.20.1)(typescript@4.9.5)(webpack-dev-server@4.15.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)))(webpack-hot-middleware@2.25.4) '@storybook/theming': specifier: 7.6.4 version: 7.6.4(react-dom@18.3.1(react@18.3.1))(react@18.3.1) @@ -4196,7 +3944,7 @@ importers: version: 5.1.6(@storybook/addons@7.6.4(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(@storybook/api@7.6.4(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(@storybook/components@7.6.4(@types/react-dom@18.3.0)(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(@storybook/core-events@7.6.4)(@storybook/theming@7.6.4(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(prettier@2.8.8)(react-dom@18.3.1(react@18.3.1))(react-syntax-highlighter@15.5.0(react@18.3.1))(react@18.3.1) babel-loader: specifier: 9.1.3 - version: 9.1.3(@babel/core@7.24.7)(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))) + version: 9.1.3(@babel/core@7.24.7)(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)) clsx: specifier: 2.1.1 version: 2.1.1 @@ -4205,7 +3953,7 @@ importers: version: 1.5.0 css-loader: specifier: 6.8.1 - version: 6.8.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))) + version: 6.8.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)) firacode: specifier: 6.2.0 version: 6.2.0 @@ -4238,7 +3986,7 @@ importers: version: 1.69.5 sass-loader: specifier: 13.3.2 - version: 13.3.2(sass@1.69.5)(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))) + version: 13.3.2(sass@1.69.5)(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)) storybook: specifier: 7.6.4 version: 7.6.4(encoding@0.1.13) @@ -4250,13 +3998,13 @@ importers: version: 6.1.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1) style-loader: specifier: 3.3.3 - version: 3.3.3(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))) + version: 3.3.3(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)) typescript: specifier: 4.9.5 version: 4.9.5 webpack: specifier: 5.89.0 - version: 5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11) + version: 5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20) packages/storybook-angular: devDependencies: @@ -4265,7 +4013,7 @@ importers: version: 0.1701.0(chokidar@3.5.3) '@angular-devkit/build-angular': specifier: 17.1.0 - version: 17.1.0(@angular/compiler-cli@17.1.0(@angular/compiler@17.1.0(@angular/core@17.1.0(rxjs@7.8.1)(zone.js@0.14.3)))(typescript@5.3.3))(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/express@4.17.21)(@types/node@22.7.4)(chokidar@3.5.3)(html-webpack-plugin@5.5.4(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)))(jest-environment-jsdom@29.7.0)(jest@29.7.0(@types/node@22.7.4)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/node@22.7.4)(typescript@5.3.3)))(ng-packagr@17.0.3(@angular/compiler-cli@17.1.0(@angular/compiler@17.1.0(@angular/core@17.1.0(rxjs@7.8.1)(zone.js@0.14.3)))(typescript@5.3.3))(tslib@2.6.2)(typescript@5.3.3))(typescript@5.3.3) + version: 17.1.0(@angular/compiler-cli@17.1.0(@angular/compiler@17.1.0(@angular/core@17.1.0(rxjs@7.8.1)(zone.js@0.14.3)))(typescript@5.3.3))(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/express@4.17.21)(@types/node@22.7.4)(chokidar@3.5.3)(html-webpack-plugin@5.5.4(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))))(jest-environment-jsdom@29.7.0)(jest@29.7.0(@types/node@22.7.4)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/node@22.7.4)(typescript@5.3.3)))(ng-packagr@17.0.3(@angular/compiler-cli@17.1.0(@angular/compiler@17.1.0(@angular/core@17.1.0(rxjs@7.8.1)(zone.js@0.14.3)))(typescript@5.3.3))(tslib@2.6.2)(typescript@5.3.3))(typescript@5.3.3) '@angular-devkit/core': specifier: 17.1.0 version: 17.1.0(chokidar@3.5.3) @@ -4355,13 +4103,13 @@ importers: version: 7.6.4(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@storybook/angular': specifier: 7.6.4 - version: 7.6.4(rpfv6o5eavakj4q3prnsmnwwou) + version: 7.6.4(fpshbwn57y4r6jklfuwo7okc6a) '@storybook/api': specifier: 7.6.4 version: 7.6.4(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@storybook/builder-webpack5': specifier: 7.6.4 - version: 7.6.4(@swc/helpers@0.5.5)(encoding@0.1.13)(esbuild@0.18.20)(typescript@5.3.3) + version: 7.6.4(@swc/helpers@0.5.5)(encoding@0.1.13)(typescript@5.3.3) '@storybook/components': specifier: 7.6.4 version: 7.6.4(@types/react-dom@18.3.0)(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) @@ -4406,10 +4154,10 @@ importers: version: link:../storybook-helpers babel-loader: specifier: 9.1.3 - version: 9.1.3(@babel/core@7.24.7)(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)) + version: 9.1.3(@babel/core@7.24.7)(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))) css-loader: specifier: 6.8.1 - version: 6.8.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)) + version: 6.8.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11)) react: specifier: 18.3.1 version: 18.3.1 @@ -4421,19 +4169,19 @@ importers: version: 7.8.1 sass-loader: specifier: 13.3.2 - version: 13.3.2(sass@1.69.7)(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)) + version: 13.3.2(sass@1.69.7)(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))) storybook-addon-pseudo-states: specifier: 2.1.2 version: 2.1.2(@storybook/components@7.6.4(@types/react-dom@18.3.0)(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(@storybook/core-events@7.6.4)(@storybook/manager-api@7.6.5(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(@storybook/preview-api@7.6.5)(@storybook/theming@7.6.4(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1) style-loader: specifier: 3.3.3 - version: 3.3.3(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)) + version: 3.3.3(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))) typescript: specifier: 5.3.3 version: 5.3.3 webpack: specifier: 5.89.0 - version: 5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20) + version: 5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11) zone.js: specifier: 0.14.3 version: 0.14.3 @@ -4514,7 +4262,7 @@ importers: version: 7.6.4(encoding@0.1.13)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(typescript@4.9.5) '@storybook/react-webpack5': specifier: 7.6.4 - version: 7.6.4(@babel/core@7.24.7)(@swc/core@1.3.100(@swc/helpers@0.5.5))(@swc/helpers@0.5.5)(encoding@0.1.13)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(type-fest@4.20.1)(typescript@4.9.5)(webpack-dev-server@4.15.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11)))(webpack-hot-middleware@2.25.4) + version: 7.6.4(@babel/core@7.24.7)(@swc/core@1.3.100(@swc/helpers@0.5.5))(@swc/helpers@0.5.5)(encoding@0.1.13)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(type-fest@4.20.1)(typescript@4.9.5)(webpack-dev-server@4.15.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))))(webpack-hot-middleware@2.25.4) '@storybook/theming': specifier: 7.6.4 version: 7.6.4(react-dom@18.3.1(react@18.3.1))(react@18.3.1) @@ -4829,7 +4577,7 @@ importers: version: 1.5.0 css-loader: specifier: 6.8.1 - version: 6.8.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))) + version: 6.8.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11)) firacode: specifier: 6.2.0 version: 6.2.0 @@ -4979,7 +4727,7 @@ importers: version: 7.6.4(encoding@0.1.13)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(typescript@4.9.5) '@storybook/react-webpack5': specifier: 7.6.4 - version: 7.6.4(@babel/core@7.24.7)(@swc/core@1.3.100(@swc/helpers@0.5.5))(@swc/helpers@0.5.5)(encoding@0.1.13)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(type-fest@4.20.1)(typescript@4.9.5)(webpack-dev-server@4.15.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11)))(webpack-hot-middleware@2.25.4) + version: 7.6.4(@babel/core@7.24.7)(@swc/core@1.3.100(@swc/helpers@0.5.5))(@swc/helpers@0.5.5)(encoding@0.1.13)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(type-fest@4.20.1)(typescript@4.9.5)(webpack-dev-server@4.15.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))))(webpack-hot-middleware@2.25.4) '@storybook/theming': specifier: 7.6.4 version: 7.6.4(react-dom@18.3.1(react@18.3.1))(react@18.3.1) @@ -5120,7 +4868,7 @@ importers: version: 1.5.0 css-loader: specifier: 6.8.1 - version: 6.8.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))) + version: 6.8.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11)) firacode: specifier: 6.2.0 version: 6.2.0 @@ -5231,7 +4979,7 @@ importers: version: 7.6.4(encoding@0.1.13)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(typescript@4.9.5) '@storybook/react-webpack5': specifier: 7.6.4 - version: 7.6.4(@babel/core@7.24.7)(@swc/core@1.3.100(@swc/helpers@0.5.5))(@swc/helpers@0.5.5)(encoding@0.1.13)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(type-fest@4.20.1)(typescript@4.9.5)(webpack-dev-server@4.15.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11)))(webpack-hot-middleware@2.25.4) + version: 7.6.4(@babel/core@7.24.7)(@swc/core@1.3.100(@swc/helpers@0.5.5))(@swc/helpers@0.5.5)(encoding@0.1.13)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(type-fest@4.20.1)(typescript@4.9.5)(webpack-dev-server@4.15.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))))(webpack-hot-middleware@2.25.4) '@storybook/theming': specifier: 7.6.4 version: 7.6.4(react-dom@18.3.1(react@18.3.1))(react@18.3.1) @@ -5333,7 +5081,7 @@ importers: version: 1.5.0 css-loader: specifier: 6.8.1 - version: 6.8.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))) + version: 6.8.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11)) firacode: specifier: 6.2.0 version: 6.2.0 @@ -6128,7 +5876,7 @@ importers: version: 7.6.4(encoding@0.1.13)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(typescript@4.9.5) '@storybook/react-webpack5': specifier: 7.6.4 - version: 7.6.4(@babel/core@7.24.7)(@swc/core@1.3.100(@swc/helpers@0.5.5))(@swc/helpers@0.5.5)(encoding@0.1.13)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(type-fest@4.20.1)(typescript@4.9.5)(webpack-dev-server@4.15.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11)))(webpack-hot-middleware@2.25.4) + version: 7.6.4(@babel/core@7.24.7)(@swc/core@1.3.100(@swc/helpers@0.5.5))(@swc/helpers@0.5.5)(encoding@0.1.13)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(type-fest@4.20.1)(typescript@4.9.5)(webpack-dev-server@4.15.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))))(webpack-hot-middleware@2.25.4) '@storybook/theming': specifier: 7.6.4 version: 7.6.4(react-dom@18.3.1(react@18.3.1))(react@18.3.1) @@ -6353,7 +6101,7 @@ importers: version: 1.5.0 css-loader: specifier: 6.8.1 - version: 6.8.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))) + version: 6.8.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11)) firacode: specifier: 6.2.0 version: 6.2.0 @@ -6420,7 +6168,7 @@ importers: devDependencies: '@angular-devkit/build-angular': specifier: 15.2.10 - version: 15.2.10(@angular/compiler-cli@15.2.10(@angular/compiler@15.2.10(@angular/core@15.2.10(rxjs@7.8.1)(zone.js@0.13.3)))(typescript@4.8.4))(@swc/core@1.3.100(@swc/helpers@0.5.5))(html-webpack-plugin@5.5.4(webpack@5.76.1(@swc/core@1.3.100(@swc/helpers@0.5.5))))(ng-packagr@15.2.2(@angular/compiler-cli@15.2.10(@angular/compiler@15.2.10(@angular/core@15.2.10(rxjs@7.8.1)(zone.js@0.13.3)))(typescript@4.8.4))(tslib@2.6.2)(typescript@4.8.4))(typescript@4.8.4) + version: 15.2.10(@angular/compiler-cli@15.2.10(@angular/compiler@15.2.10(@angular/core@15.2.10(rxjs@7.8.1)(zone.js@0.13.3)))(typescript@4.8.4))(@swc/core@1.3.100(@swc/helpers@0.5.5))(html-webpack-plugin@5.5.4(webpack@5.76.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.17.8)))(ng-packagr@15.2.2(@angular/compiler-cli@15.2.10(@angular/compiler@15.2.10(@angular/core@15.2.10(rxjs@7.8.1)(zone.js@0.13.3)))(typescript@4.8.4))(tslib@2.6.2)(typescript@4.8.4))(typescript@4.8.4) '@angular/animations': specifier: 15.2.10 version: 15.2.10(@angular/core@15.2.10(rxjs@7.8.1)(zone.js@0.13.3)) @@ -24750,7 +24498,7 @@ snapshots: transitivePeerDependencies: - chokidar - '@angular-devkit/build-angular@15.2.10(@angular/compiler-cli@15.2.10(@angular/compiler@15.2.10(@angular/core@15.2.10(rxjs@7.8.1)(zone.js@0.13.3)))(typescript@4.8.4))(@swc/core@1.3.100(@swc/helpers@0.5.5))(html-webpack-plugin@5.5.4(webpack@5.76.1(@swc/core@1.3.100(@swc/helpers@0.5.5))))(ng-packagr@15.2.2(@angular/compiler-cli@15.2.10(@angular/compiler@15.2.10(@angular/core@15.2.10(rxjs@7.8.1)(zone.js@0.13.3)))(typescript@4.8.4))(tslib@2.6.2)(typescript@4.8.4))(typescript@4.8.4)': + '@angular-devkit/build-angular@15.2.10(@angular/compiler-cli@15.2.10(@angular/compiler@15.2.10(@angular/core@15.2.10(rxjs@7.8.1)(zone.js@0.13.3)))(typescript@4.8.4))(@swc/core@1.3.100(@swc/helpers@0.5.5))(html-webpack-plugin@5.5.4(webpack@5.76.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.17.8)))(ng-packagr@15.2.2(@angular/compiler-cli@15.2.10(@angular/compiler@15.2.10(@angular/core@15.2.10(rxjs@7.8.1)(zone.js@0.13.3)))(typescript@4.8.4))(tslib@2.6.2)(typescript@4.8.4))(typescript@4.8.4)': dependencies: '@ampproject/remapping': 2.2.0 '@angular-devkit/architect': 0.1502.10(chokidar@3.5.3) @@ -24813,7 +24561,7 @@ snapshots: webpack-dev-middleware: 6.0.1(webpack@5.76.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.17.8)) webpack-dev-server: 4.11.1(webpack@5.76.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.17.8)) webpack-merge: 5.8.0 - webpack-subresource-integrity: 5.1.0(html-webpack-plugin@5.5.4(webpack@5.76.1(@swc/core@1.3.100(@swc/helpers@0.5.5))))(webpack@5.76.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.17.8)) + webpack-subresource-integrity: 5.1.0(html-webpack-plugin@5.5.4(webpack@5.76.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.17.8)))(webpack@5.76.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.17.8)) optionalDependencies: esbuild: 0.17.8 ng-packagr: 15.2.2(@angular/compiler-cli@15.2.10(@angular/compiler@15.2.10(@angular/core@15.2.10(rxjs@7.8.1)(zone.js@0.13.3)))(typescript@4.8.4))(tslib@2.6.2)(typescript@4.8.4) @@ -24831,103 +24579,11 @@ snapshots: - utf-8-validate - webpack-cli - '@angular-devkit/build-angular@17.1.0(@angular/compiler-cli@17.1.0(@angular/compiler@17.1.0(@angular/core@17.1.0(rxjs@7.8.1)(zone.js@0.14.3)))(typescript@5.3.3))(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/express@4.17.21)(@types/node@22.7.4)(chokidar@3.5.3)(html-webpack-plugin@5.5.4(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)))(jest-environment-jsdom@29.7.0)(jest@29.7.0(@types/node@22.7.4)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/node@22.7.4)(typescript@5.3.3)))(ng-packagr@17.0.3(@angular/compiler-cli@17.1.0(@angular/compiler@17.1.0(@angular/core@17.1.0(rxjs@7.8.1)(zone.js@0.14.3)))(typescript@5.3.3))(tslib@2.6.2)(typescript@5.3.3))(typescript@5.3.3)': - dependencies: - '@ampproject/remapping': 2.2.1 - '@angular-devkit/architect': 0.1701.0(chokidar@3.5.3) - '@angular-devkit/build-webpack': 0.1701.0(chokidar@3.5.3)(webpack-dev-server@4.15.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)))(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)) - '@angular-devkit/core': 17.1.0(chokidar@3.5.3) - '@angular/compiler-cli': 17.1.0(@angular/compiler@17.1.0(@angular/core@17.1.0(rxjs@7.8.1)(zone.js@0.14.3)))(typescript@5.3.3) - '@babel/core': 7.23.7 - '@babel/generator': 7.23.6 - '@babel/helper-annotate-as-pure': 7.22.5 - '@babel/helper-split-export-declaration': 7.22.6 - '@babel/plugin-transform-async-generator-functions': 7.23.7(@babel/core@7.23.7) - '@babel/plugin-transform-async-to-generator': 7.23.3(@babel/core@7.23.7) - '@babel/plugin-transform-runtime': 7.23.7(@babel/core@7.23.7) - '@babel/preset-env': 7.23.7(@babel/core@7.23.7) - '@babel/runtime': 7.23.7 - '@discoveryjs/json-ext': 0.5.7 - '@ngtools/webpack': 17.1.0(@angular/compiler-cli@17.1.0(@angular/compiler@17.1.0(@angular/core@17.1.0(rxjs@7.8.1)(zone.js@0.14.3)))(typescript@5.3.3))(typescript@5.3.3)(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)) - '@vitejs/plugin-basic-ssl': 1.0.2(vite@5.0.11(@types/node@22.7.4)(less@4.2.0)(sass@1.69.7)(terser@5.26.0)) - ansi-colors: 4.1.3 - autoprefixer: 10.4.16(postcss@8.4.33) - babel-loader: 9.1.3(@babel/core@7.23.7)(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)) - babel-plugin-istanbul: 6.1.1 - browserslist: 4.23.1 - copy-webpack-plugin: 11.0.0(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)) - critters: 0.0.20 - css-loader: 6.8.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)) - esbuild-wasm: 0.19.11 - fast-glob: 3.3.2 - http-proxy-middleware: 2.0.6(@types/express@4.17.21) - https-proxy-agent: 7.0.2 - inquirer: 9.2.12 - jsonc-parser: 3.2.0 - karma-source-map-support: 1.4.0 - less: 4.2.0 - less-loader: 11.1.0(less@4.2.0)(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)) - license-webpack-plugin: 4.0.2(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)) - loader-utils: 3.2.1 - magic-string: 0.30.5 - mini-css-extract-plugin: 2.7.6(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)) - mrmime: 2.0.0 - open: 8.4.2 - ora: 5.4.1 - parse5-html-rewriting-stream: 7.0.0 - picomatch: 3.0.1 - piscina: 4.2.1 - postcss: 8.4.33 - postcss-loader: 7.3.4(postcss@8.4.33)(typescript@5.3.3)(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)) - resolve-url-loader: 5.0.0 - rxjs: 7.8.1 - sass: 1.69.7 - sass-loader: 13.3.3(sass@1.69.7)(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)) - semver: 7.5.4 - source-map-loader: 5.0.0(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)) - source-map-support: 0.5.21 - terser: 5.26.0 - text-table: 0.2.0 - tree-kill: 1.2.2 - tslib: 2.6.2 - typescript: 5.3.3 - undici: 6.2.1 - vite: 5.0.11(@types/node@22.7.4)(less@4.2.0)(sass@1.69.7)(terser@5.26.0) - watchpack: 2.4.0 - webpack: 5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11) - webpack-dev-middleware: 6.1.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)) - webpack-dev-server: 4.15.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)) - webpack-merge: 5.10.0 - webpack-subresource-integrity: 5.1.0(html-webpack-plugin@5.5.4(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)))(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)) - optionalDependencies: - esbuild: 0.19.11 - jest: 29.7.0(@types/node@22.7.4)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/node@22.7.4)(typescript@5.3.3)) - jest-environment-jsdom: 29.7.0 - ng-packagr: 17.0.3(@angular/compiler-cli@17.1.0(@angular/compiler@17.1.0(@angular/core@17.1.0(rxjs@7.8.1)(zone.js@0.14.3)))(typescript@5.3.3))(tslib@2.6.2)(typescript@5.3.3) - transitivePeerDependencies: - - '@swc/core' - - '@types/express' - - '@types/node' - - bufferutil - - chokidar - - debug - - fibers - - html-webpack-plugin - - lightningcss - - node-sass - - sass-embedded - - stylus - - sugarss - - supports-color - - uglify-js - - utf-8-validate - - webpack-cli - - '@angular-devkit/build-angular@17.1.0(@angular/compiler-cli@17.1.0(@angular/compiler@17.1.0(@angular/core@17.1.0(rxjs@7.8.1)(zone.js@0.14.3)))(typescript@5.3.3))(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/express@4.17.21)(@types/node@22.7.4)(chokidar@3.5.3)(html-webpack-plugin@5.5.4(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11)))(jest-environment-jsdom@29.7.0)(jest@29.7.0(@types/node@22.7.4)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/node@22.7.4)(typescript@5.3.3)))(ng-packagr@17.0.3(@angular/compiler-cli@17.1.0(@angular/compiler@17.1.0(@angular/core@17.1.0(rxjs@7.8.1)(zone.js@0.14.3)))(typescript@5.3.3))(tslib@2.6.2)(typescript@5.3.3))(typescript@5.3.3)': + '@angular-devkit/build-angular@17.1.0(@angular/compiler-cli@17.1.0(@angular/compiler@17.1.0(@angular/core@17.1.0(rxjs@7.8.1)(zone.js@0.14.3)))(typescript@5.3.3))(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/express@4.17.21)(@types/node@22.7.4)(chokidar@3.5.3)(html-webpack-plugin@5.5.4(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))))(jest-environment-jsdom@29.7.0)(jest@29.7.0(@types/node@22.7.4)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/node@22.7.4)(typescript@5.3.3)))(ng-packagr@17.0.3(@angular/compiler-cli@17.1.0(@angular/compiler@17.1.0(@angular/core@17.1.0(rxjs@7.8.1)(zone.js@0.14.3)))(typescript@5.3.3))(tslib@2.6.2)(typescript@5.3.3))(typescript@5.3.3)': dependencies: '@ampproject/remapping': 2.2.1 '@angular-devkit/architect': 0.1701.0(chokidar@3.5.3) - '@angular-devkit/build-webpack': 0.1701.0(chokidar@3.5.3)(webpack-dev-server@4.15.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11)))(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11)) + '@angular-devkit/build-webpack': 0.1701.0(chokidar@3.5.3)(webpack-dev-server@4.15.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))))(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))) '@angular-devkit/core': 17.1.0(chokidar@3.5.3) '@angular/compiler-cli': 17.1.0(@angular/compiler@17.1.0(@angular/core@17.1.0(rxjs@7.8.1)(zone.js@0.14.3)))(typescript@5.3.3) '@babel/core': 7.23.7 @@ -24940,16 +24596,16 @@ snapshots: '@babel/preset-env': 7.23.7(@babel/core@7.23.7) '@babel/runtime': 7.23.7 '@discoveryjs/json-ext': 0.5.7 - '@ngtools/webpack': 17.1.0(@angular/compiler-cli@17.1.0(@angular/compiler@17.1.0(@angular/core@17.1.0(rxjs@7.8.1)(zone.js@0.14.3)))(typescript@5.3.3))(typescript@5.3.3)(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11)) + '@ngtools/webpack': 17.1.0(@angular/compiler-cli@17.1.0(@angular/compiler@17.1.0(@angular/core@17.1.0(rxjs@7.8.1)(zone.js@0.14.3)))(typescript@5.3.3))(typescript@5.3.3)(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))) '@vitejs/plugin-basic-ssl': 1.0.2(vite@5.0.11(@types/node@22.7.4)(less@4.2.0)(sass@1.69.7)(terser@5.26.0)) ansi-colors: 4.1.3 autoprefixer: 10.4.16(postcss@8.4.33) babel-loader: 9.1.3(@babel/core@7.23.7)(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11)) babel-plugin-istanbul: 6.1.1 browserslist: 4.23.1 - copy-webpack-plugin: 11.0.0(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))) + copy-webpack-plugin: 11.0.0(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11)) critters: 0.0.20 - css-loader: 6.8.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))) + css-loader: 6.8.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11)) esbuild-wasm: 0.19.11 fast-glob: 3.3.2 http-proxy-middleware: 2.0.6(@types/express@4.17.21) @@ -24974,9 +24630,9 @@ snapshots: resolve-url-loader: 5.0.0 rxjs: 7.8.1 sass: 1.69.7 - sass-loader: 13.3.3(sass@1.69.7)(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11)) + sass-loader: 13.3.3(sass@1.69.7)(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))) semver: 7.5.4 - source-map-loader: 5.0.0(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11)) + source-map-loader: 5.0.0(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))) source-map-support: 0.5.21 terser: 5.26.0 text-table: 0.2.0 @@ -25024,16 +24680,7 @@ snapshots: transitivePeerDependencies: - chokidar - '@angular-devkit/build-webpack@0.1701.0(chokidar@3.5.3)(webpack-dev-server@4.15.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)))(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20))': - dependencies: - '@angular-devkit/architect': 0.1701.0(chokidar@3.5.3) - rxjs: 7.8.1 - webpack: 5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20) - webpack-dev-server: 4.15.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)) - transitivePeerDependencies: - - chokidar - - '@angular-devkit/build-webpack@0.1701.0(chokidar@3.5.3)(webpack-dev-server@4.15.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11)))(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11))': + '@angular-devkit/build-webpack@0.1701.0(chokidar@3.5.3)(webpack-dev-server@4.15.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))))(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5)))': dependencies: '@angular-devkit/architect': 0.1701.0(chokidar@3.5.3) rxjs: 7.8.1 @@ -26113,12 +25760,6 @@ snapshots: '@babel/core': 7.20.12 '@babel/helper-plugin-utils': 7.24.7 - '@babel/plugin-syntax-async-generators@7.8.4(@babel/core@7.23.2)': - dependencies: - '@babel/core': 7.23.2 - '@babel/helper-plugin-utils': 7.24.7 - optional: true - '@babel/plugin-syntax-async-generators@7.8.4(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -26129,12 +25770,6 @@ snapshots: '@babel/core': 7.24.7 '@babel/helper-plugin-utils': 7.24.7 - '@babel/plugin-syntax-bigint@7.8.3(@babel/core@7.23.2)': - dependencies: - '@babel/core': 7.23.2 - '@babel/helper-plugin-utils': 7.24.7 - optional: true - '@babel/plugin-syntax-bigint@7.8.3(@babel/core@7.24.7)': dependencies: '@babel/core': 7.24.7 @@ -26145,12 +25780,6 @@ snapshots: '@babel/core': 7.20.12 '@babel/helper-plugin-utils': 7.24.7 - '@babel/plugin-syntax-class-properties@7.12.13(@babel/core@7.23.2)': - dependencies: - '@babel/core': 7.23.2 - '@babel/helper-plugin-utils': 7.24.7 - optional: true - '@babel/plugin-syntax-class-properties@7.12.13(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -26241,12 +25870,6 @@ snapshots: '@babel/core': 7.24.7 '@babel/helper-plugin-utils': 7.24.7 - '@babel/plugin-syntax-import-meta@7.10.4(@babel/core@7.23.2)': - dependencies: - '@babel/core': 7.23.2 - '@babel/helper-plugin-utils': 7.24.7 - optional: true - '@babel/plugin-syntax-import-meta@7.10.4(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -26262,12 +25885,6 @@ snapshots: '@babel/core': 7.20.12 '@babel/helper-plugin-utils': 7.24.7 - '@babel/plugin-syntax-json-strings@7.8.3(@babel/core@7.23.2)': - dependencies: - '@babel/core': 7.23.2 - '@babel/helper-plugin-utils': 7.24.7 - optional: true - '@babel/plugin-syntax-json-strings@7.8.3(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -26288,12 +25905,6 @@ snapshots: '@babel/core': 7.20.12 '@babel/helper-plugin-utils': 7.24.7 - '@babel/plugin-syntax-logical-assignment-operators@7.10.4(@babel/core@7.23.2)': - dependencies: - '@babel/core': 7.23.2 - '@babel/helper-plugin-utils': 7.24.7 - optional: true - '@babel/plugin-syntax-logical-assignment-operators@7.10.4(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -26309,12 +25920,6 @@ snapshots: '@babel/core': 7.20.12 '@babel/helper-plugin-utils': 7.24.7 - '@babel/plugin-syntax-nullish-coalescing-operator@7.8.3(@babel/core@7.23.2)': - dependencies: - '@babel/core': 7.23.2 - '@babel/helper-plugin-utils': 7.24.7 - optional: true - '@babel/plugin-syntax-nullish-coalescing-operator@7.8.3(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -26330,12 +25935,6 @@ snapshots: '@babel/core': 7.20.12 '@babel/helper-plugin-utils': 7.24.7 - '@babel/plugin-syntax-numeric-separator@7.10.4(@babel/core@7.23.2)': - dependencies: - '@babel/core': 7.23.2 - '@babel/helper-plugin-utils': 7.24.7 - optional: true - '@babel/plugin-syntax-numeric-separator@7.10.4(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -26351,12 +25950,6 @@ snapshots: '@babel/core': 7.20.12 '@babel/helper-plugin-utils': 7.24.7 - '@babel/plugin-syntax-object-rest-spread@7.8.3(@babel/core@7.23.2)': - dependencies: - '@babel/core': 7.23.2 - '@babel/helper-plugin-utils': 7.24.7 - optional: true - '@babel/plugin-syntax-object-rest-spread@7.8.3(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -26372,12 +25965,6 @@ snapshots: '@babel/core': 7.20.12 '@babel/helper-plugin-utils': 7.24.7 - '@babel/plugin-syntax-optional-catch-binding@7.8.3(@babel/core@7.23.2)': - dependencies: - '@babel/core': 7.23.2 - '@babel/helper-plugin-utils': 7.24.7 - optional: true - '@babel/plugin-syntax-optional-catch-binding@7.8.3(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -26393,12 +25980,6 @@ snapshots: '@babel/core': 7.20.12 '@babel/helper-plugin-utils': 7.24.7 - '@babel/plugin-syntax-optional-chaining@7.8.3(@babel/core@7.23.2)': - dependencies: - '@babel/core': 7.23.2 - '@babel/helper-plugin-utils': 7.24.7 - optional: true - '@babel/plugin-syntax-optional-chaining@7.8.3(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -26429,12 +26010,6 @@ snapshots: '@babel/core': 7.20.12 '@babel/helper-plugin-utils': 7.24.7 - '@babel/plugin-syntax-top-level-await@7.14.5(@babel/core@7.23.2)': - dependencies: - '@babel/core': 7.23.2 - '@babel/helper-plugin-utils': 7.24.7 - optional: true - '@babel/plugin-syntax-top-level-await@7.14.5(@babel/core@7.23.7)': dependencies: '@babel/core': 7.23.7 @@ -28307,9 +27882,9 @@ snapshots: cli-table3: 0.6.3 combine-promises: 1.2.0 commander: 5.1.0 - copy-webpack-plugin: 11.0.0(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))) + copy-webpack-plugin: 11.0.0(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11)) core-js: 3.34.0 - css-loader: 6.8.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))) + css-loader: 6.8.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11)) css-minimizer-webpack-plugin: 4.2.2(clean-css@5.3.3)(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))) cssnano: 5.1.15(postcss@8.4.38) del: 6.1.1 @@ -28320,7 +27895,7 @@ snapshots: fs-extra: 11.2.0 html-minifier-terser: 7.2.0 html-tags: 3.3.1 - html-webpack-plugin: 5.5.4(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))) + html-webpack-plugin: 5.5.4(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11)) leven: 3.1.0 lodash: 4.17.21 mini-css-extract-plugin: 2.7.6(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))) @@ -30460,13 +30035,7 @@ snapshots: typescript: 4.8.4 webpack: 5.76.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.17.8) - '@ngtools/webpack@17.1.0(@angular/compiler-cli@17.1.0(@angular/compiler@17.1.0(@angular/core@17.1.0(rxjs@7.8.1)(zone.js@0.14.3)))(typescript@5.3.3))(typescript@5.3.3)(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20))': - dependencies: - '@angular/compiler-cli': 17.1.0(@angular/compiler@17.1.0(@angular/core@17.1.0(rxjs@7.8.1)(zone.js@0.14.3)))(typescript@5.3.3) - typescript: 5.3.3 - webpack: 5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20) - - '@ngtools/webpack@17.1.0(@angular/compiler-cli@17.1.0(@angular/compiler@17.1.0(@angular/core@17.1.0(rxjs@7.8.1)(zone.js@0.14.3)))(typescript@5.3.3))(typescript@5.3.3)(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11))': + '@ngtools/webpack@17.1.0(@angular/compiler-cli@17.1.0(@angular/compiler@17.1.0(@angular/core@17.1.0(rxjs@7.8.1)(zone.js@0.14.3)))(typescript@5.3.3))(typescript@5.3.3)(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5)))': dependencies: '@angular/compiler-cli': 17.1.0(@angular/compiler@17.1.0(@angular/core@17.1.0(rxjs@7.8.1)(zone.js@0.14.3)))(typescript@5.3.3) typescript: 5.3.3 @@ -31151,7 +30720,25 @@ snapshots: '@pkgr/core@0.1.1': {} - '@pmmmwh/react-refresh-webpack-plugin@0.5.11(react-refresh@0.14.0)(type-fest@4.20.1)(webpack-dev-server@4.15.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11)))(webpack-hot-middleware@2.25.4)(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5)))': + '@pmmmwh/react-refresh-webpack-plugin@0.5.11(react-refresh@0.14.0)(type-fest@4.20.1)(webpack-dev-server@4.15.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)))(webpack-hot-middleware@2.25.4)(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20))': + dependencies: + ansi-html-community: 0.0.8 + common-path-prefix: 3.0.0 + core-js-pure: 3.34.0 + error-stack-parser: 2.1.4 + find-up: 5.0.0 + html-entities: 2.4.0 + loader-utils: 2.0.4 + react-refresh: 0.14.0 + schema-utils: 3.3.0 + source-map: 0.7.4 + webpack: 5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20) + optionalDependencies: + type-fest: 4.20.1 + webpack-dev-server: 4.15.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)) + webpack-hot-middleware: 2.25.4 + + '@pmmmwh/react-refresh-webpack-plugin@0.5.11(react-refresh@0.14.0)(type-fest@4.20.1)(webpack-dev-server@4.15.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))))(webpack-hot-middleware@2.25.4)(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5)))': dependencies: ansi-html-community: 0.0.8 common-path-prefix: 3.0.0 @@ -32705,10 +32292,10 @@ snapshots: - react - react-dom - '@storybook/angular@7.6.4(rpfv6o5eavakj4q3prnsmnwwou)': + '@storybook/angular@7.6.4(fpshbwn57y4r6jklfuwo7okc6a)': dependencies: '@angular-devkit/architect': 0.1701.0(chokidar@3.5.3) - '@angular-devkit/build-angular': 17.1.0(@angular/compiler-cli@17.1.0(@angular/compiler@17.1.0(@angular/core@17.1.0(rxjs@7.8.1)(zone.js@0.14.3)))(typescript@5.3.3))(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/express@4.17.21)(@types/node@22.7.4)(chokidar@3.5.3)(html-webpack-plugin@5.5.4(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)))(jest-environment-jsdom@29.7.0)(jest@29.7.0(@types/node@22.7.4)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/node@22.7.4)(typescript@5.3.3)))(ng-packagr@17.0.3(@angular/compiler-cli@17.1.0(@angular/compiler@17.1.0(@angular/core@17.1.0(rxjs@7.8.1)(zone.js@0.14.3)))(typescript@5.3.3))(tslib@2.6.2)(typescript@5.3.3))(typescript@5.3.3) + '@angular-devkit/build-angular': 17.1.0(@angular/compiler-cli@17.1.0(@angular/compiler@17.1.0(@angular/core@17.1.0(rxjs@7.8.1)(zone.js@0.14.3)))(typescript@5.3.3))(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/express@4.17.21)(@types/node@22.7.4)(chokidar@3.5.3)(html-webpack-plugin@5.5.4(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))))(jest-environment-jsdom@29.7.0)(jest@29.7.0(@types/node@22.7.4)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/node@22.7.4)(typescript@5.3.3)))(ng-packagr@17.0.3(@angular/compiler-cli@17.1.0(@angular/compiler@17.1.0(@angular/core@17.1.0(rxjs@7.8.1)(zone.js@0.14.3)))(typescript@5.3.3))(tslib@2.6.2)(typescript@5.3.3))(typescript@5.3.3) '@angular-devkit/core': 17.1.0(chokidar@3.5.3) '@angular/common': 17.1.0(@angular/core@17.1.0(rxjs@7.8.1)(zone.js@0.14.3))(rxjs@7.8.1) '@angular/compiler': 17.1.0(@angular/core@17.1.0(rxjs@7.8.1)(zone.js@0.14.3)) @@ -32718,7 +32305,7 @@ snapshots: '@angular/platform-browser': 17.1.0(@angular/animations@17.1.0(@angular/core@17.1.0(rxjs@7.8.1)(zone.js@0.14.3)))(@angular/common@17.1.0(@angular/core@17.1.0(rxjs@7.8.1)(zone.js@0.14.3))(rxjs@7.8.1))(@angular/core@17.1.0(rxjs@7.8.1)(zone.js@0.14.3)) '@angular/platform-browser-dynamic': 17.1.0(@angular/common@17.1.0(@angular/core@17.1.0(rxjs@7.8.1)(zone.js@0.14.3))(rxjs@7.8.1))(@angular/compiler@17.1.0(@angular/core@17.1.0(rxjs@7.8.1)(zone.js@0.14.3)))(@angular/core@17.1.0(rxjs@7.8.1)(zone.js@0.14.3))(@angular/platform-browser@17.1.0(@angular/animations@17.1.0(@angular/core@17.1.0(rxjs@7.8.1)(zone.js@0.14.3)))(@angular/common@17.1.0(@angular/core@17.1.0(rxjs@7.8.1)(zone.js@0.14.3))(rxjs@7.8.1))(@angular/core@17.1.0(rxjs@7.8.1)(zone.js@0.14.3))) '@babel/core': 7.24.7 - '@storybook/builder-webpack5': 7.6.4(@swc/helpers@0.5.5)(encoding@0.1.13)(esbuild@0.18.20)(typescript@5.3.3) + '@storybook/builder-webpack5': 7.6.4(@swc/helpers@0.5.5)(encoding@0.1.13)(typescript@5.3.3) '@storybook/cli': 7.6.4(encoding@0.1.13) '@storybook/client-logger': 7.6.4 '@storybook/core-common': 7.6.4(encoding@0.1.13) @@ -32745,7 +32332,7 @@ snapshots: tsconfig-paths-webpack-plugin: 4.1.0 typescript: 5.3.3 util-deprecate: 1.0.2 - webpack: 5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20) + webpack: 5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11) zone.js: 0.14.3 optionalDependencies: '@angular/cli': 17.1.0(chokidar@3.5.3) @@ -33023,7 +32610,7 @@ snapshots: - encoding - supports-color - '@storybook/builder-webpack5@7.6.4(@swc/helpers@0.5.5)(encoding@0.1.13)(esbuild@0.18.20)(typescript@5.3.3)': + '@storybook/builder-webpack5@7.6.4(@swc/helpers@0.5.5)(encoding@0.1.13)(esbuild@0.18.20)(typescript@4.9.5)': dependencies: '@babel/core': 7.24.7 '@storybook/channels': 7.6.4 @@ -33044,7 +32631,7 @@ snapshots: css-loader: 6.8.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)) es-module-lexer: 1.4.1 express: 4.18.2 - fork-ts-checker-webpack-plugin: 8.0.0(typescript@5.3.3)(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)) + fork-ts-checker-webpack-plugin: 8.0.0(typescript@4.9.5)(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)) fs-extra: 11.2.0 html-webpack-plugin: 5.5.4(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)) magic-string: 0.30.5 @@ -33063,7 +32650,7 @@ snapshots: webpack-hot-middleware: 2.25.4 webpack-virtual-modules: 0.5.0 optionalDependencies: - typescript: 5.3.3 + typescript: 4.9.5 transitivePeerDependencies: - '@swc/helpers' - encoding @@ -33090,12 +32677,12 @@ snapshots: browser-assert: 1.2.1 case-sensitive-paths-webpack-plugin: 2.4.0 constants-browserify: 1.0.0 - css-loader: 6.8.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))) + css-loader: 6.8.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11)) es-module-lexer: 1.4.1 express: 4.18.2 fork-ts-checker-webpack-plugin: 8.0.0(typescript@4.9.5)(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))) fs-extra: 11.2.0 - html-webpack-plugin: 5.5.4(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))) + html-webpack-plugin: 5.5.4(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11)) magic-string: 0.30.5 path-browserify: 1.0.1 process: 0.11.10 @@ -33121,6 +32708,55 @@ snapshots: - uglify-js - webpack-cli + '@storybook/builder-webpack5@7.6.4(@swc/helpers@0.5.5)(encoding@0.1.13)(typescript@5.3.3)': + dependencies: + '@babel/core': 7.24.7 + '@storybook/channels': 7.6.4 + '@storybook/client-logger': 7.6.4 + '@storybook/core-common': 7.6.4(encoding@0.1.13) + '@storybook/core-events': 7.6.4 + '@storybook/core-webpack': 7.6.4(encoding@0.1.13) + '@storybook/node-logger': 7.6.4 + '@storybook/preview': 7.6.4 + '@storybook/preview-api': 7.6.4 + '@swc/core': 1.3.100(@swc/helpers@0.5.5) + '@types/node': 18.19.3 + '@types/semver': 7.5.6 + babel-loader: 9.1.3(@babel/core@7.24.7)(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))) + browser-assert: 1.2.1 + case-sensitive-paths-webpack-plugin: 2.4.0 + constants-browserify: 1.0.0 + css-loader: 6.8.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11)) + es-module-lexer: 1.4.1 + express: 4.18.2 + fork-ts-checker-webpack-plugin: 8.0.0(typescript@5.3.3)(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))) + fs-extra: 11.2.0 + html-webpack-plugin: 5.5.4(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11)) + magic-string: 0.30.5 + path-browserify: 1.0.1 + process: 0.11.10 + semver: 7.6.2 + style-loader: 3.3.3(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))) + swc-loader: 0.2.3(@swc/core@1.3.100(@swc/helpers@0.5.5))(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))) + terser-webpack-plugin: 5.3.9(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11)(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11)) + ts-dedent: 2.2.0 + url: 0.11.3 + util: 0.12.5 + util-deprecate: 1.0.2 + webpack: 5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11) + webpack-dev-middleware: 6.1.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11)) + webpack-hot-middleware: 2.25.4 + webpack-virtual-modules: 0.5.0 + optionalDependencies: + typescript: 5.3.3 + transitivePeerDependencies: + - '@swc/helpers' + - encoding + - esbuild + - supports-color + - uglify-js + - webpack-cli + '@storybook/channels@6.5.16': dependencies: core-js: 3.34.0 @@ -33778,11 +33414,49 @@ snapshots: '@storybook/postinstall@7.6.4': {} - '@storybook/preset-react-webpack@7.6.4(@babel/core@7.24.7)(@swc/core@1.3.100(@swc/helpers@0.5.5))(encoding@0.1.13)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(type-fest@4.20.1)(typescript@4.9.5)(webpack-dev-server@4.15.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11)))(webpack-hot-middleware@2.25.4)': + '@storybook/preset-react-webpack@7.6.4(@babel/core@7.24.7)(@swc/core@1.3.100(@swc/helpers@0.5.5))(encoding@0.1.13)(esbuild@0.18.20)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(type-fest@4.20.1)(typescript@4.9.5)(webpack-dev-server@4.15.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)))(webpack-hot-middleware@2.25.4)': dependencies: '@babel/preset-flow': 7.23.3(@babel/core@7.24.7) '@babel/preset-react': 7.24.7(@babel/core@7.24.7) - '@pmmmwh/react-refresh-webpack-plugin': 0.5.11(react-refresh@0.14.0)(type-fest@4.20.1)(webpack-dev-server@4.15.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11)))(webpack-hot-middleware@2.25.4)(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))) + '@pmmmwh/react-refresh-webpack-plugin': 0.5.11(react-refresh@0.14.0)(type-fest@4.20.1)(webpack-dev-server@4.15.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)))(webpack-hot-middleware@2.25.4)(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)) + '@storybook/core-webpack': 7.6.4(encoding@0.1.13) + '@storybook/docs-tools': 7.6.4(encoding@0.1.13) + '@storybook/node-logger': 7.6.4 + '@storybook/react': 7.6.4(encoding@0.1.13)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(typescript@4.9.5) + '@storybook/react-docgen-typescript-plugin': 1.0.6--canary.9.0c3f3b7.0(typescript@4.9.5)(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)) + '@types/node': 18.19.3 + '@types/semver': 7.5.6 + babel-plugin-add-react-displayname: 0.0.5 + fs-extra: 11.2.0 + magic-string: 0.30.5 + react: 18.3.1 + react-docgen: 7.0.1 + react-dom: 18.3.1(react@18.3.1) + react-refresh: 0.14.0 + semver: 7.6.2 + webpack: 5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20) + optionalDependencies: + '@babel/core': 7.24.7 + typescript: 4.9.5 + transitivePeerDependencies: + - '@swc/core' + - '@types/webpack' + - encoding + - esbuild + - sockjs-client + - supports-color + - type-fest + - uglify-js + - webpack-cli + - webpack-dev-server + - webpack-hot-middleware + - webpack-plugin-serve + + '@storybook/preset-react-webpack@7.6.4(@babel/core@7.24.7)(@swc/core@1.3.100(@swc/helpers@0.5.5))(encoding@0.1.13)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(type-fest@4.20.1)(typescript@4.9.5)(webpack-dev-server@4.15.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))))(webpack-hot-middleware@2.25.4)': + dependencies: + '@babel/preset-flow': 7.23.3(@babel/core@7.24.7) + '@babel/preset-react': 7.24.7(@babel/core@7.24.7) + '@pmmmwh/react-refresh-webpack-plugin': 0.5.11(react-refresh@0.14.0)(type-fest@4.20.1)(webpack-dev-server@4.15.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))))(webpack-hot-middleware@2.25.4)(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))) '@storybook/core-webpack': 7.6.4(encoding@0.1.13) '@storybook/docs-tools': 7.6.4(encoding@0.1.13) '@storybook/node-logger': 7.6.4 @@ -33816,6 +33490,12 @@ snapshots: - webpack-hot-middleware - webpack-plugin-serve + '@storybook/preset-scss@1.0.3(css-loader@6.8.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)))(sass-loader@13.3.2(sass@1.69.5)(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)))(style-loader@3.3.3(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)))': + dependencies: + css-loader: 6.8.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)) + sass-loader: 13.3.2(sass@1.69.5)(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)) + style-loader: 3.3.3(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)) + '@storybook/preset-scss@1.0.3(css-loader@6.8.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)))(sass-loader@13.3.2(sass@1.69.7)(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)))(style-loader@3.3.3(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)))': dependencies: css-loader: 6.8.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)) @@ -33824,7 +33504,7 @@ snapshots: '@storybook/preset-scss@1.0.3(css-loader@6.8.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))))(sass-loader@13.3.2(sass@1.69.5)(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))))(style-loader@3.3.3(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))))': dependencies: - css-loader: 6.8.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))) + css-loader: 6.8.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11)) sass-loader: 13.3.2(sass@1.69.5)(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))) style-loader: 3.3.3(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))) @@ -33883,6 +33563,20 @@ snapshots: '@storybook/preview@7.6.4': {} + '@storybook/react-docgen-typescript-plugin@1.0.6--canary.9.0c3f3b7.0(typescript@4.9.5)(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20))': + dependencies: + debug: 4.3.7 + endent: 2.1.0 + find-cache-dir: 3.3.2 + flat-cache: 3.2.0 + micromatch: 4.0.7 + react-docgen-typescript: 2.2.2(typescript@4.9.5) + tslib: 2.6.2 + typescript: 4.9.5 + webpack: 5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20) + transitivePeerDependencies: + - supports-color + '@storybook/react-docgen-typescript-plugin@1.0.6--canary.9.0c3f3b7.0(typescript@4.9.5)(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5)))': dependencies: debug: 4.3.7 @@ -33928,10 +33622,36 @@ snapshots: - typescript - vite-plugin-glimmerx - '@storybook/react-webpack5@7.6.4(@babel/core@7.24.7)(@swc/core@1.3.100(@swc/helpers@0.5.5))(@swc/helpers@0.5.5)(encoding@0.1.13)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(type-fest@4.20.1)(typescript@4.9.5)(webpack-dev-server@4.15.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11)))(webpack-hot-middleware@2.25.4)': + '@storybook/react-webpack5@7.6.4(@babel/core@7.24.7)(@swc/core@1.3.100(@swc/helpers@0.5.5))(@swc/helpers@0.5.5)(encoding@0.1.13)(esbuild@0.18.20)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(type-fest@4.20.1)(typescript@4.9.5)(webpack-dev-server@4.15.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)))(webpack-hot-middleware@2.25.4)': + dependencies: + '@storybook/builder-webpack5': 7.6.4(@swc/helpers@0.5.5)(encoding@0.1.13)(esbuild@0.18.20)(typescript@4.9.5) + '@storybook/preset-react-webpack': 7.6.4(@babel/core@7.24.7)(@swc/core@1.3.100(@swc/helpers@0.5.5))(encoding@0.1.13)(esbuild@0.18.20)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(type-fest@4.20.1)(typescript@4.9.5)(webpack-dev-server@4.15.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)))(webpack-hot-middleware@2.25.4) + '@storybook/react': 7.6.4(encoding@0.1.13)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(typescript@4.9.5) + '@types/node': 18.19.3 + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + optionalDependencies: + '@babel/core': 7.24.7 + typescript: 4.9.5 + transitivePeerDependencies: + - '@swc/core' + - '@swc/helpers' + - '@types/webpack' + - encoding + - esbuild + - sockjs-client + - supports-color + - type-fest + - uglify-js + - webpack-cli + - webpack-dev-server + - webpack-hot-middleware + - webpack-plugin-serve + + '@storybook/react-webpack5@7.6.4(@babel/core@7.24.7)(@swc/core@1.3.100(@swc/helpers@0.5.5))(@swc/helpers@0.5.5)(encoding@0.1.13)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(type-fest@4.20.1)(typescript@4.9.5)(webpack-dev-server@4.15.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))))(webpack-hot-middleware@2.25.4)': dependencies: '@storybook/builder-webpack5': 7.6.4(@swc/helpers@0.5.5)(encoding@0.1.13)(typescript@4.9.5) - '@storybook/preset-react-webpack': 7.6.4(@babel/core@7.24.7)(@swc/core@1.3.100(@swc/helpers@0.5.5))(encoding@0.1.13)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(type-fest@4.20.1)(typescript@4.9.5)(webpack-dev-server@4.15.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11)))(webpack-hot-middleware@2.25.4) + '@storybook/preset-react-webpack': 7.6.4(@babel/core@7.24.7)(@swc/core@1.3.100(@swc/helpers@0.5.5))(encoding@0.1.13)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(type-fest@4.20.1)(typescript@4.9.5)(webpack-dev-server@4.15.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))))(webpack-hot-middleware@2.25.4) '@storybook/react': 7.6.4(encoding@0.1.13)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(typescript@4.9.5) '@types/node': 18.19.3 react: 18.3.1 @@ -36089,20 +35809,6 @@ snapshots: transitivePeerDependencies: - supports-color - babel-jest@29.7.0(@babel/core@7.23.2): - dependencies: - '@babel/core': 7.23.2 - '@jest/transform': 29.7.0 - '@types/babel__core': 7.20.5 - babel-plugin-istanbul: 6.1.1 - babel-preset-jest: 29.6.3(@babel/core@7.23.2) - chalk: 4.1.2 - graceful-fs: 4.2.11 - slash: 3.0.0 - transitivePeerDependencies: - - supports-color - optional: true - babel-jest@29.7.0(@babel/core@7.24.7): dependencies: '@babel/core': 7.24.7 @@ -36134,13 +35840,6 @@ snapshots: schema-utils: 4.2.0 webpack: 5.76.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.17.8) - babel-loader@9.1.3(@babel/core@7.23.7)(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)): - dependencies: - '@babel/core': 7.23.7 - find-cache-dir: 4.0.0 - schema-utils: 4.2.0 - webpack: 5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20) - babel-loader@9.1.3(@babel/core@7.23.7)(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11)): dependencies: '@babel/core': 7.23.7 @@ -36315,23 +36014,6 @@ snapshots: core-js: 2.6.12 regenerator-runtime: 0.10.5 - babel-preset-current-node-syntax@1.0.1(@babel/core@7.23.2): - dependencies: - '@babel/core': 7.23.2 - '@babel/plugin-syntax-async-generators': 7.8.4(@babel/core@7.23.2) - '@babel/plugin-syntax-bigint': 7.8.3(@babel/core@7.23.2) - '@babel/plugin-syntax-class-properties': 7.12.13(@babel/core@7.23.2) - '@babel/plugin-syntax-import-meta': 7.10.4(@babel/core@7.23.2) - '@babel/plugin-syntax-json-strings': 7.8.3(@babel/core@7.23.2) - '@babel/plugin-syntax-logical-assignment-operators': 7.10.4(@babel/core@7.23.2) - '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3(@babel/core@7.23.2) - '@babel/plugin-syntax-numeric-separator': 7.10.4(@babel/core@7.23.2) - '@babel/plugin-syntax-object-rest-spread': 7.8.3(@babel/core@7.23.2) - '@babel/plugin-syntax-optional-catch-binding': 7.8.3(@babel/core@7.23.2) - '@babel/plugin-syntax-optional-chaining': 7.8.3(@babel/core@7.23.2) - '@babel/plugin-syntax-top-level-await': 7.14.5(@babel/core@7.23.2) - optional: true - babel-preset-current-node-syntax@1.0.1(@babel/core@7.24.7): dependencies: '@babel/core': 7.24.7 @@ -36403,13 +36085,6 @@ snapshots: transitivePeerDependencies: - supports-color - babel-preset-jest@29.6.3(@babel/core@7.23.2): - dependencies: - '@babel/core': 7.23.2 - babel-plugin-jest-hoist: 29.6.3 - babel-preset-current-node-syntax: 1.0.1(@babel/core@7.23.2) - optional: true - babel-preset-jest@29.6.3(@babel/core@7.24.7): dependencies: '@babel/core': 7.24.7 @@ -37423,17 +37098,7 @@ snapshots: serialize-javascript: 6.0.1 webpack: 5.76.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.17.8) - copy-webpack-plugin@11.0.0(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)): - dependencies: - fast-glob: 3.3.2 - glob-parent: 6.0.2 - globby: 13.2.2 - normalize-path: 3.0.0 - schema-utils: 4.2.0 - serialize-javascript: 6.0.1 - webpack: 5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20) - - copy-webpack-plugin@11.0.0(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))): + copy-webpack-plugin@11.0.0(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11)): dependencies: fast-glob: 3.3.2 glob-parent: 6.0.2 @@ -37712,7 +37377,7 @@ snapshots: semver: 7.6.2 webpack: 5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20) - css-loader@6.8.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))): + css-loader@6.8.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11)): dependencies: icss-utils: 5.1.0(postcss@8.4.38) postcss: 8.4.38 @@ -39980,6 +39645,23 @@ snapshots: eslint: 8.57.0 vue-template-compiler: 2.7.15 + fork-ts-checker-webpack-plugin@8.0.0(typescript@4.9.5)(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)): + dependencies: + '@babel/code-frame': 7.24.7 + chalk: 4.1.2 + chokidar: 3.5.3 + cosmiconfig: 7.1.0 + deepmerge: 4.3.1 + fs-extra: 10.1.0 + memfs: 3.5.3 + minimatch: 3.1.2 + node-abort-controller: 3.1.1 + schema-utils: 3.3.0 + semver: 7.6.2 + tapable: 2.2.1 + typescript: 4.9.5 + webpack: 5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20) + fork-ts-checker-webpack-plugin@8.0.0(typescript@4.9.5)(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))): dependencies: '@babel/code-frame': 7.24.7 @@ -39997,7 +39679,7 @@ snapshots: typescript: 4.9.5 webpack: 5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11) - fork-ts-checker-webpack-plugin@8.0.0(typescript@5.3.3)(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)): + fork-ts-checker-webpack-plugin@8.0.0(typescript@5.3.3)(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))): dependencies: '@babel/code-frame': 7.24.7 chalk: 4.1.2 @@ -40012,7 +39694,7 @@ snapshots: semver: 7.6.2 tapable: 2.2.1 typescript: 5.3.3 - webpack: 5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20) + webpack: 5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11) form-data-encoder@2.1.4: {} @@ -40391,7 +40073,7 @@ snapshots: '@nodelib/fs.walk': 1.2.8 '@parcel/cache': 2.8.3(@parcel/core@2.8.3) '@parcel/core': 2.8.3 - '@pmmmwh/react-refresh-webpack-plugin': 0.5.11(react-refresh@0.14.0)(type-fest@4.20.1)(webpack-dev-server@4.15.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11)))(webpack-hot-middleware@2.25.4)(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))) + '@pmmmwh/react-refresh-webpack-plugin': 0.5.11(react-refresh@0.14.0)(type-fest@4.20.1)(webpack-dev-server@4.15.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))))(webpack-hot-middleware@2.25.4)(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))) '@types/http-proxy': 1.17.14 '@typescript-eslint/eslint-plugin': 5.62.0(@typescript-eslint/parser@5.62.0(eslint@7.32.0)(typescript@5.6.2))(eslint@7.32.0)(typescript@5.6.2) '@typescript-eslint/parser': 5.62.0(eslint@7.32.0)(typescript@5.6.2) @@ -41241,7 +40923,7 @@ snapshots: html-void-elements@3.0.0: {} - html-webpack-plugin@5.5.4(webpack@5.76.1(@swc/core@1.3.100(@swc/helpers@0.5.5))): + html-webpack-plugin@5.5.4(webpack@5.76.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.17.8)): dependencies: '@types/html-minifier-terser': 6.1.0 html-minifier-terser: 6.1.0 @@ -41260,7 +40942,7 @@ snapshots: tapable: 2.2.1 webpack: 5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20) - html-webpack-plugin@5.5.4(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))): + html-webpack-plugin@5.5.4(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11)): dependencies: '@types/html-minifier-terser': 6.1.0 html-minifier-terser: 6.1.0 @@ -42466,9 +42148,9 @@ snapshots: optionalDependencies: jest-resolve: 29.7.0 - jest-preset-angular@13.1.4(lclvuqcmfjqpf7yvsvwiyjlzae): + jest-preset-angular@13.1.4(6b34yrqv6cw3yppjzvogcm4gq4): dependencies: - '@angular-devkit/build-angular': 17.1.0(@angular/compiler-cli@17.1.0(@angular/compiler@17.1.0(@angular/core@17.1.0(rxjs@7.8.1)(zone.js@0.14.3)))(typescript@5.3.3))(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/express@4.17.21)(@types/node@22.7.4)(chokidar@3.5.3)(html-webpack-plugin@5.5.4(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11)))(jest-environment-jsdom@29.7.0)(jest@29.7.0(@types/node@22.7.4)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/node@22.7.4)(typescript@5.3.3)))(ng-packagr@17.0.3(@angular/compiler-cli@17.1.0(@angular/compiler@17.1.0(@angular/core@17.1.0(rxjs@7.8.1)(zone.js@0.14.3)))(typescript@5.3.3))(tslib@2.6.2)(typescript@5.3.3))(typescript@5.3.3) + '@angular-devkit/build-angular': 17.1.0(@angular/compiler-cli@17.1.0(@angular/compiler@17.1.0(@angular/core@17.1.0(rxjs@7.8.1)(zone.js@0.14.3)))(typescript@5.3.3))(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/express@4.17.21)(@types/node@22.7.4)(chokidar@3.5.3)(html-webpack-plugin@5.5.4(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))))(jest-environment-jsdom@29.7.0)(jest@29.7.0(@types/node@22.7.4)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/node@22.7.4)(typescript@5.3.3)))(ng-packagr@17.0.3(@angular/compiler-cli@17.1.0(@angular/compiler@17.1.0(@angular/core@17.1.0(rxjs@7.8.1)(zone.js@0.14.3)))(typescript@5.3.3))(tslib@2.6.2)(typescript@5.3.3))(typescript@5.3.3) '@angular/compiler-cli': 17.1.0(@angular/compiler@17.1.0(@angular/core@17.1.0(rxjs@7.8.1)(zone.js@0.14.3)))(typescript@5.3.3) '@angular/core': 17.1.0(rxjs@7.8.1)(zone.js@0.14.3) '@angular/platform-browser-dynamic': 17.1.0(@angular/common@17.1.0(@angular/core@17.1.0(rxjs@7.8.1)(zone.js@0.14.3))(rxjs@7.8.1))(@angular/compiler@17.1.0(@angular/core@17.1.0(rxjs@7.8.1)(zone.js@0.14.3)))(@angular/core@17.1.0(rxjs@7.8.1)(zone.js@0.14.3))(@angular/platform-browser@17.1.0(@angular/animations@17.1.0(@angular/core@17.1.0(rxjs@7.8.1)(zone.js@0.14.3)))(@angular/common@17.1.0(@angular/core@17.1.0(rxjs@7.8.1)(zone.js@0.14.3))(rxjs@7.8.1))(@angular/core@17.1.0(rxjs@7.8.1)(zone.js@0.14.3))) @@ -42478,7 +42160,7 @@ snapshots: jest-environment-jsdom: 29.7.0 jest-util: 29.7.0 pretty-format: 29.7.0 - ts-jest: 29.2.4(@babel/core@7.23.2)(@jest/transform@29.7.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@7.23.2))(esbuild@0.23.1)(jest@29.7.0(@types/node@22.7.4)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/node@22.7.4)(typescript@5.3.3)))(typescript@5.3.3) + ts-jest: 29.2.4(@babel/core@7.24.7)(@jest/transform@29.7.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@7.24.7))(esbuild@0.23.1)(jest@29.7.0(@types/node@22.7.4)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/node@22.7.4)(typescript@5.3.3)))(typescript@5.3.3) typescript: 5.3.3 optionalDependencies: esbuild: 0.23.1 @@ -42961,12 +42643,6 @@ snapshots: less: 4.1.3 webpack: 5.76.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.17.8) - less-loader@11.1.0(less@4.2.0)(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)): - dependencies: - klona: 2.0.6 - less: 4.2.0 - webpack: 5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20) - less-loader@11.1.0(less@4.2.0)(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11)): dependencies: klona: 2.0.6 @@ -43019,12 +42695,6 @@ snapshots: optionalDependencies: webpack: 5.76.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.17.8) - license-webpack-plugin@4.0.2(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)): - dependencies: - webpack-sources: 3.2.3 - optionalDependencies: - webpack: 5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20) - license-webpack-plugin@4.0.2(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11)): dependencies: webpack-sources: 3.2.3 @@ -44525,11 +44195,6 @@ snapshots: schema-utils: 4.2.0 webpack: 5.76.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.17.8) - mini-css-extract-plugin@2.7.6(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)): - dependencies: - schema-utils: 4.2.0 - webpack: 5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20) - mini-css-extract-plugin@2.7.6(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))): dependencies: schema-utils: 4.2.0 @@ -46070,16 +45735,6 @@ snapshots: semver: 7.6.2 webpack: 5.76.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.17.8) - postcss-loader@7.3.4(postcss@8.4.33)(typescript@5.3.3)(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)): - dependencies: - cosmiconfig: 8.3.6(typescript@5.3.3) - jiti: 1.21.0 - postcss: 8.4.33 - semver: 7.6.2 - webpack: 5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20) - transitivePeerDependencies: - - typescript - postcss-loader@7.3.4(postcss@8.4.33)(typescript@5.3.3)(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11)): dependencies: cosmiconfig: 8.3.6(typescript@5.3.3) @@ -48001,6 +47656,13 @@ snapshots: optionalDependencies: sass: 1.58.1 + sass-loader@13.3.2(sass@1.69.5)(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)): + dependencies: + neo-async: 2.6.2 + webpack: 5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20) + optionalDependencies: + sass: 1.69.5 + sass-loader@13.3.2(sass@1.69.5)(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))): dependencies: neo-async: 2.6.2 @@ -48015,14 +47677,14 @@ snapshots: optionalDependencies: sass: 1.69.7 - sass-loader@13.3.3(sass@1.69.7)(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)): + sass-loader@13.3.2(sass@1.69.7)(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))): dependencies: neo-async: 2.6.2 - webpack: 5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20) + webpack: 5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11) optionalDependencies: sass: 1.69.7 - sass-loader@13.3.3(sass@1.69.7)(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11)): + sass-loader@13.3.3(sass@1.69.7)(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))): dependencies: neo-async: 2.6.2 webpack: 5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11) @@ -48527,13 +48189,7 @@ snapshots: source-map-js: 1.2.0 webpack: 5.76.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.17.8) - source-map-loader@5.0.0(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)): - dependencies: - iconv-lite: 0.6.3 - source-map-js: 1.2.0 - webpack: 5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20) - - source-map-loader@5.0.0(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11)): + source-map-loader@5.0.0(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))): dependencies: iconv-lite: 0.6.3 source-map-js: 1.2.0 @@ -49547,7 +49203,7 @@ snapshots: '@jest/types': 29.6.3 babel-jest: 29.7.0(@babel/core@7.24.7) - ts-jest@29.2.4(@babel/core@7.23.2)(@jest/transform@29.7.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@7.23.2))(esbuild@0.23.1)(jest@29.7.0(@types/node@22.7.4)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/node@22.7.4)(typescript@5.3.3)))(typescript@5.3.3): + ts-jest@29.2.4(@babel/core@7.24.7)(@jest/transform@29.7.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@7.24.7))(esbuild@0.23.1)(jest@29.7.0(@types/node@22.7.4)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/node@22.7.4)(typescript@5.3.3)))(typescript@5.3.3): dependencies: bs-logger: 0.2.6 ejs: 3.1.10 @@ -49561,10 +49217,10 @@ snapshots: typescript: 5.3.3 yargs-parser: 21.1.1 optionalDependencies: - '@babel/core': 7.23.2 + '@babel/core': 7.24.7 '@jest/transform': 29.7.0 '@jest/types': 29.6.3 - babel-jest: 29.7.0(@babel/core@7.23.2) + babel-jest: 29.7.0(@babel/core@7.24.7) esbuild: 0.23.1 ts-jest@29.2.4(@babel/core@7.24.7)(@jest/transform@29.7.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@7.24.7))(jest@29.7.0(@types/node@20.14.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(@types/node@20.14.8)(typescript@5.5.4)))(typescript@5.5.4): @@ -50918,6 +50574,7 @@ snapshots: range-parser: 1.2.1 schema-utils: 4.2.0 webpack: 5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20) + optional: true webpack-dev-middleware@5.3.3(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11)): dependencies: @@ -51034,6 +50691,7 @@ snapshots: - debug - supports-color - utf-8-validate + optional: true webpack-dev-server@4.15.1(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11)): dependencies: @@ -51101,26 +50759,19 @@ snapshots: webpack-stats-plugin@1.1.3: {} - webpack-subresource-integrity@5.1.0(html-webpack-plugin@5.5.4(webpack@5.76.1(@swc/core@1.3.100(@swc/helpers@0.5.5))))(webpack@5.76.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.17.8)): + webpack-subresource-integrity@5.1.0(html-webpack-plugin@5.5.4(webpack@5.76.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.17.8)))(webpack@5.76.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.17.8)): dependencies: typed-assert: 1.0.9 webpack: 5.76.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.17.8) optionalDependencies: - html-webpack-plugin: 5.5.4(webpack@5.76.1(@swc/core@1.3.100(@swc/helpers@0.5.5))) - - webpack-subresource-integrity@5.1.0(html-webpack-plugin@5.5.4(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)))(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)): - dependencies: - typed-assert: 1.0.9 - webpack: 5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20) - optionalDependencies: - html-webpack-plugin: 5.5.4(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.18.20)) + html-webpack-plugin: 5.5.4(webpack@5.76.1(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.17.8)) webpack-subresource-integrity@5.1.0(html-webpack-plugin@5.5.4(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11)))(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11)): dependencies: typed-assert: 1.0.9 webpack: 5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11) optionalDependencies: - html-webpack-plugin: 5.5.4(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))) + html-webpack-plugin: 5.5.4(webpack@5.89.0(@swc/core@1.3.100(@swc/helpers@0.5.5))(esbuild@0.19.11)) webpack-virtual-modules@0.5.0: {} From 83c0d3fd22bb792f2cfabb92ac9e8131ed1f5a96 Mon Sep 17 00:00:00 2001 From: Robbert Broersma Date: Wed, 20 Nov 2024 02:04:00 +0100 Subject: [PATCH 7/8] test: temporarily disable Calendar test --- packages/components-react/calendar-react/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/components-react/calendar-react/package.json b/packages/components-react/calendar-react/package.json index 3d99f2e6147..974140d3fa0 100644 --- a/packages/components-react/calendar-react/package.json +++ b/packages/components-react/calendar-react/package.json @@ -15,7 +15,7 @@ "scripts": { "clean": "rimraf dist *.tsbuildinfo .rollup.cache coverage", "build": "rollup -c ./rollup.config.mjs", - "test": "mkdir -p pages && jest --coverage --verbose", + "disabled-test": "mkdir -p pages && jest --coverage --verbose", "typecheck": "tsc --noEmit" }, "devDependencies": { From 1631c507b327d04ab6ea8cf4783c77c4d1b26830 Mon Sep 17 00:00:00 2001 From: Robbert Broersma Date: Wed, 20 Nov 2024 09:02:32 +0100 Subject: [PATCH 8/8] docs: add changeset --- .changeset/short-chefs-hope.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .changeset/short-chefs-hope.md diff --git a/.changeset/short-chefs-hope.md b/.changeset/short-chefs-hope.md new file mode 100644 index 00000000000..b140d1cc0ae --- /dev/null +++ b/.changeset/short-chefs-hope.md @@ -0,0 +1,28 @@ +--- +"@utrecht/form-field-error-message-react": patch +"@utrecht/form-field-description-react": patch +"@utrecht/form-field-checkbox-react": patch +"@utrecht/checkbox-group-react": patch +"@utrecht/radio-button-react": patch +"@utrecht/page-footer-react": patch +"@utrecht/page-header-react": patch +"@utrecht/page-layout-react": patch +"@utrecht/radio-group-react": patch +"@utrecht/form-field-react": patch +"@utrecht/form-label-react": patch +"@utrecht/page-body-react": patch +"@utrecht/calendar-react": patch +"@utrecht/checkbox-react": patch +"@utrecht/combobox-react": patch +"@utrecht/fieldset-react": patch +"@utrecht/listbox-react": patch +"@utrecht/nav-bar-react": patch +"@utrecht/textbox-react": patch +"@utrecht/button-react": patch +"@utrecht/body-react": patch +"@utrecht/link-react": patch +"@utrecht/root-react": patch +"@utrecht/component-library-react": patch +--- + +Remove `@babel` runtime from `.mjs` files, use modern JavaScript syntax and use our own CSS injection script.