From da28d28a2d3a34503099e25255076efd3da4db9f Mon Sep 17 00:00:00 2001 From: "carbon-automation[bot]" <103539138+carbon-automation[bot]@users.noreply.github.com> Date: Tue, 24 Oct 2023 11:57:27 -0500 Subject: [PATCH 1/2] chore(release): v11.41.0-rc.0 (#15002) Co-authored-by: tay1orjones --- ...pers-npm-10.44.0-159592a2ec-c61b711ef7.zip | Bin 0 -> 14013 bytes config/typescript-config-carbon/package.json | 2 +- examples/class-prefix/package.json | 4 +- examples/codesandbox-styles/package.json | 4 +- .../package.json | 4 +- examples/codesandbox/package.json | 4 +- examples/custom-theme/package.json | 4 +- examples/id-prefix/package.json | 4 +- .../incremental-migration-vite/package.json | 4 +- examples/light-dark-mode/package.json | 4 +- examples/nextjs/package.json | 4 +- examples/v10-token-compat-in-v11/package.json | 4 +- examples/vite/package.json | 4 +- packages/carbon-components-react/package.json | 6 +- packages/carbon-components/package.json | 4 +- packages/cli/package.json | 4 +- packages/colors/package.json | 4 +- packages/elements/package.json | 18 +- packages/grid/package.json | 6 +- packages/icon-build-helpers/package.json | 6 +- packages/icon-helpers/package.json | 6 +- packages/icons-react/package.json | 8 +- packages/icons-vue/package.json | 6 +- packages/icons/package.json | 6 +- packages/layout/package.json | 4 +- packages/motion/package.json | 4 +- packages/pictograms-react/package.json | 8 +- packages/pictograms/package.json | 4 +- packages/react/package.json | 12 +- packages/styles/package.json | 14 +- packages/themes/package.json | 10 +- packages/type/package.json | 8 +- www/package.json | 4 +- yarn.lock | 161 +++++++++--------- 34 files changed, 178 insertions(+), 171 deletions(-) create mode 100644 .yarn/cache/@carbon-icon-helpers-npm-10.44.0-159592a2ec-c61b711ef7.zip diff --git a/.yarn/cache/@carbon-icon-helpers-npm-10.44.0-159592a2ec-c61b711ef7.zip b/.yarn/cache/@carbon-icon-helpers-npm-10.44.0-159592a2ec-c61b711ef7.zip new file mode 100644 index 0000000000000000000000000000000000000000..3250c6eff14a65ba5708c03898885dc85293344c GIT binary patch literal 14013 zcmbum1CV7~*0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KT9Gm$q_o70!)PZK80CoU0a(zV~Y+(0syD?s1&>>89SUWoB-oPpO+ zzdq0~OmB(rdPG^B{i=}P-An8O_Q-=oa7L&DGOu^PI`{M^fZ}&-u6Z5<)jkM-12f}m zTgvRrtW}-DIgKPhcFP-UMWfaTwm>3DC#{s{s*jaheO@HK&%QFPG?deSpbnLeCa;(T zUe3hL8;gLx88=5R!Qs`AdRY_Sil3`!sJ;!9Rl0p*-78#lMHu>>R#0|gMB{<(bt5C} z>Rrmk*qjgf5*Ov^;IS{JJ1r=W_GjDMr)7ZalG-%Ff84y)^3O6t4U7Ytqxg`68`vl| z8d;Vz90GIqgRor;&6rk7>jb?8v==m{8(S5{0HIs2%*jA48CXOUQ9K5QQ!mrFNV(tX zZNPw{3&`xCO#m?b6o_pdGb`*CF{z6#Y0L5@_+?$^>vjKO=wwAw$LvkNcO%#D{QdKQ-7~*LNqhZU2f7OSmLYHV_()2xrVD@0z0;5P z-TUX2m6wJOj@REQ6F?w-;Q!pf@_TvyM_dU0arjF+%YPpFM?=e>aUu907y17-`yUN1 zf5wHN-tW_YoBhuYnZLBV{L|8(wDQ-6mp}E20&@PA-v6|}{5P9_Y|HsGE(GNf{*KLm zY|{C6r+?k1^QUA{K;qw({4?wH-`xID#QQTY1gA0nj@y5h^#0xMUyFKwY8C|`WBy&u z|8u|5gnvi-pIN+r_xsm8-v9cY`P-U*_50^d_E#kSU+o>LzvK7+4ak3fcYkXC6_x&1 joAmc)uK)iZ#J|8vK^he7kHIj%U&p`z06k29eENR?c_n|j literal 0 HcmV?d00001 diff --git a/config/typescript-config-carbon/package.json b/config/typescript-config-carbon/package.json index 13266790a6bc..fd619ce6eca5 100644 --- a/config/typescript-config-carbon/package.json +++ b/config/typescript-config-carbon/package.json @@ -1,7 +1,7 @@ { "name": "typescript-config-carbon", "description": "TypeScript configuration for Carbon", - "version": "0.1.0", + "version": "0.2.0-rc.0", "license": "Apache-2.0", "main": "index.js", "types": "index.d.ts", diff --git a/examples/class-prefix/package.json b/examples/class-prefix/package.json index 34cb4b91d039..7bfab037a96c 100644 --- a/examples/class-prefix/package.json +++ b/examples/class-prefix/package.json @@ -1,7 +1,7 @@ { "name": "class-prefix", "private": true, - "version": "0.37.0", + "version": "0.38.0-rc.0", "type": "module", "scripts": { "dev": "vite", @@ -9,7 +9,7 @@ "preview": "vite preview" }, "dependencies": { - "@carbon/react": "^1.40.0", + "@carbon/react": "^1.41.0-rc.0", "react": "^18.2.0", "react-dom": "^18.2.0" }, diff --git a/examples/codesandbox-styles/package.json b/examples/codesandbox-styles/package.json index 79981bcf67e7..e8c1fbc56709 100644 --- a/examples/codesandbox-styles/package.json +++ b/examples/codesandbox-styles/package.json @@ -1,7 +1,7 @@ { "name": "codesandbox-styles", "private": true, - "version": "0.43.0", + "version": "0.44.0-rc.0", "type": "module", "scripts": { "dev": "vite" @@ -11,6 +11,6 @@ "vite": "^4.3.8" }, "dependencies": { - "@carbon/styles": "^1.40.0" + "@carbon/styles": "^1.41.0-rc.0" } } diff --git a/examples/codesandbox-with-sass-compilation/package.json b/examples/codesandbox-with-sass-compilation/package.json index b0172bed8c3e..52aac97637a9 100644 --- a/examples/codesandbox-with-sass-compilation/package.json +++ b/examples/codesandbox-with-sass-compilation/package.json @@ -1,9 +1,9 @@ { "name": "codesandbox-with-sass-compilation", - "version": "0.41.0", + "version": "0.42.0-rc.0", "private": true, "dependencies": { - "@carbon/react": "^1.40.0", + "@carbon/react": "^1.41.0-rc.0", "react": "^18.2.0", "react-dom": "^18.2.0" }, diff --git a/examples/codesandbox/package.json b/examples/codesandbox/package.json index fd8b572bfbec..2465893f23af 100644 --- a/examples/codesandbox/package.json +++ b/examples/codesandbox/package.json @@ -1,9 +1,9 @@ { "name": "codesandbox", - "version": "0.41.0", + "version": "0.42.0-rc.0", "private": true, "dependencies": { - "@carbon/react": "^1.40.0", + "@carbon/react": "^1.41.0-rc.0", "react": "^18.2.0", "react-dom": "^18.2.0" }, diff --git a/examples/custom-theme/package.json b/examples/custom-theme/package.json index d310535e01d7..51c6f8354abb 100644 --- a/examples/custom-theme/package.json +++ b/examples/custom-theme/package.json @@ -1,7 +1,7 @@ { "name": "custom-theme", "private": true, - "version": "0.38.0", + "version": "0.39.0-rc.0", "type": "module", "scripts": { "dev": "vite", @@ -9,7 +9,7 @@ "preview": "vite preview" }, "dependencies": { - "@carbon/react": "^1.40.0", + "@carbon/react": "^1.41.0-rc.0", "react": "^18.2.0", "react-dom": "^18.2.0" }, diff --git a/examples/id-prefix/package.json b/examples/id-prefix/package.json index f5ee8fd31210..24a933fc383c 100644 --- a/examples/id-prefix/package.json +++ b/examples/id-prefix/package.json @@ -1,7 +1,7 @@ { "name": "id-prefix", "private": true, - "version": "0.37.0", + "version": "0.38.0-rc.0", "type": "module", "scripts": { "dev": "vite", @@ -9,7 +9,7 @@ "preview": "vite preview" }, "dependencies": { - "@carbon/react": "^1.40.0", + "@carbon/react": "^1.41.0-rc.0", "react": "^18.2.0", "react-dom": "^18.2.0" }, diff --git a/examples/incremental-migration-vite/package.json b/examples/incremental-migration-vite/package.json index 27f11de0833e..27b7e8684d6c 100644 --- a/examples/incremental-migration-vite/package.json +++ b/examples/incremental-migration-vite/package.json @@ -1,7 +1,7 @@ { "name": "incremental-migration-vite", "private": true, - "version": "0.5.0", + "version": "0.6.0-rc.0", "scripts": { "dev": "vite", "build": "vite build", @@ -12,7 +12,7 @@ }, "dependencies": { "@carbon/icons-react": "^10.49.0", - "@carbon/react": "^1.40.0", + "@carbon/react": "^1.41.0-rc.0", "carbon-components": "^10.57.0", "carbon-components-react": "^7.57.0", "carbon-icons": "^7.0.7", diff --git a/examples/light-dark-mode/package.json b/examples/light-dark-mode/package.json index f6dd7292278c..0665259b1cbf 100644 --- a/examples/light-dark-mode/package.json +++ b/examples/light-dark-mode/package.json @@ -1,7 +1,7 @@ { "name": "examples-light-dark", "private": true, - "version": "0.38.0", + "version": "0.39.0-rc.0", "scripts": { "build": "next build", "dev": "next dev", @@ -9,7 +9,7 @@ "start": "next start" }, "dependencies": { - "@carbon/react": "^1.40.0", + "@carbon/react": "^1.41.0-rc.0", "next": "12.1.4", "react": "18.2.0", "react-dom": "18.2.0" diff --git a/examples/nextjs/package.json b/examples/nextjs/package.json index 01041395375a..89780eed2b8e 100644 --- a/examples/nextjs/package.json +++ b/examples/nextjs/package.json @@ -1,7 +1,7 @@ { "name": "examples-nextjs", "private": true, - "version": "0.40.0", + "version": "0.41.0-rc.0", "scripts": { "build": "next build", "dev": "next dev", @@ -9,7 +9,7 @@ "start": "next start" }, "dependencies": { - "@carbon/react": "^1.40.0", + "@carbon/react": "^1.41.0-rc.0", "next": "13.4.7", "react": "18.2.0", "react-dom": "18.2.0" diff --git a/examples/v10-token-compat-in-v11/package.json b/examples/v10-token-compat-in-v11/package.json index da8336a39a1c..bdb1350e3dba 100644 --- a/examples/v10-token-compat-in-v11/package.json +++ b/examples/v10-token-compat-in-v11/package.json @@ -1,7 +1,7 @@ { "name": "v10-token-compat-in-v11", "private": true, - "version": "0.38.0", + "version": "0.39.0-rc.0", "type": "module", "scripts": { "dev": "vite", @@ -9,7 +9,7 @@ "preview": "vite preview" }, "dependencies": { - "@carbon/react": "^1.40.0", + "@carbon/react": "^1.41.0-rc.0", "react": "^18.2.0", "react-dom": "^18.2.0" }, diff --git a/examples/vite/package.json b/examples/vite/package.json index a631df03764e..4cfc991c281a 100644 --- a/examples/vite/package.json +++ b/examples/vite/package.json @@ -1,7 +1,7 @@ { "name": "vite", "private": true, - "version": "0.38.0", + "version": "0.39.0-rc.0", "type": "module", "scripts": { "dev": "vite", @@ -9,7 +9,7 @@ "preview": "vite preview" }, "dependencies": { - "@carbon/react": "^1.40.0", + "@carbon/react": "^1.41.0-rc.0", "react": "^18.2.0", "react-dom": "^18.2.0" }, diff --git a/packages/carbon-components-react/package.json b/packages/carbon-components-react/package.json index 23506eeac630..1365877c0b6b 100644 --- a/packages/carbon-components-react/package.json +++ b/packages/carbon-components-react/package.json @@ -1,7 +1,7 @@ { "name": "carbon-components-react", "description": "The Carbon Design System is IBM’s open-source design system for products and experiences.", - "version": "8.40.0", + "version": "8.41.0-rc.0", "license": "Apache-2.0", "main": "lib/index.js", "module": "es/index.js", @@ -41,8 +41,8 @@ "sass": "^1.33.0" }, "dependencies": { - "@carbon/react": "^1.40.0", - "@carbon/styles": "^1.40.0", + "@carbon/react": "^1.41.0-rc.0", + "@carbon/styles": "^1.41.0-rc.0", "@carbon/telemetry": "0.1.0", "chalk": "1.1.3" }, diff --git a/packages/carbon-components/package.json b/packages/carbon-components/package.json index a084e2299bc4..6fbe7707696b 100644 --- a/packages/carbon-components/package.json +++ b/packages/carbon-components/package.json @@ -1,7 +1,7 @@ { "name": "carbon-components", "description": "The Carbon Design System is IBM’s open-source design system for products and experiences.", - "version": "11.40.0", + "version": "11.41.0-rc.0", "license": "Apache-2.0", "repository": { "type": "git", @@ -42,7 +42,7 @@ "sass": "^1.33.0" }, "dependencies": { - "@carbon/styles": "^1.40.0", + "@carbon/styles": "^1.41.0-rc.0", "@carbon/telemetry": "0.1.0", "chalk": "1.1.3" }, diff --git a/packages/cli/package.json b/packages/cli/package.json index 156bbd964a23..6dfc1f5c79c3 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,7 +1,7 @@ { "name": "@carbon/cli", "description": "Task automation for working with the Carbon Design System", - "version": "11.14.0", + "version": "11.15.0-rc.0", "license": "Apache-2.0", "bin": { "carbon-cli": "./bin/carbon-cli.js" @@ -51,7 +51,7 @@ "rollup": "^2.79.1", "sass": "^1.51.0", "sassdoc": "^2.7.3", - "typescript-config-carbon": "^0.1.0", + "typescript-config-carbon": "^0.2.0-rc.0", "yargs": "^17.0.1" } } diff --git a/packages/colors/package.json b/packages/colors/package.json index 73d55b5a15ff..38c8a82fd602 100644 --- a/packages/colors/package.json +++ b/packages/colors/package.json @@ -1,7 +1,7 @@ { "name": "@carbon/colors", "description": "Colors for digital and software products using the Carbon Design System", - "version": "11.19.0", + "version": "11.20.0-rc.0", "license": "Apache-2.0", "main": "lib/index.js", "module": "es/index.js", @@ -37,7 +37,7 @@ "clean": "rimraf css es lib umd scss index.scss" }, "devDependencies": { - "@carbon/cli": "^11.14.0", + "@carbon/cli": "^11.15.0-rc.0", "@carbon/cli-reporter": "^10.7.0", "@carbon/scss-generator": "^10.18.0", "@carbon/test-utils": "^10.30.0", diff --git a/packages/elements/package.json b/packages/elements/package.json index 9605cf8c3635..6f07db2ed060 100644 --- a/packages/elements/package.json +++ b/packages/elements/package.json @@ -1,7 +1,7 @@ { "name": "@carbon/elements", "description": "A collection of design elements in code for the IBM Design Language", - "version": "11.31.0", + "version": "11.32.0-rc.0", "license": "Apache-2.0", "main": "lib/index.js", "module": "es/index.js", @@ -36,16 +36,16 @@ "clean": "rimraf es lib umd" }, "dependencies": { - "@carbon/colors": "^11.19.0", - "@carbon/grid": "^11.20.0", - "@carbon/icons": "^11.28.0", - "@carbon/layout": "^11.19.0", - "@carbon/motion": "^11.15.0", - "@carbon/themes": "^11.25.0", - "@carbon/type": "^11.24.0" + "@carbon/colors": "^11.20.0-rc.0", + "@carbon/grid": "^11.21.0-rc.0", + "@carbon/icons": "^11.29.0-rc.0", + "@carbon/layout": "^11.20.0-rc.0", + "@carbon/motion": "^11.16.0-rc.0", + "@carbon/themes": "^11.26.0-rc.0", + "@carbon/type": "^11.25.0-rc.0" }, "devDependencies": { - "@carbon/cli": "^11.14.0", + "@carbon/cli": "^11.15.0-rc.0", "fs-extra": "^11.0.0", "klaw-sync": "^6.0.0", "replace-in-file": "^7.0.0", diff --git a/packages/grid/package.json b/packages/grid/package.json index d8062915fe26..626c2fbdf56d 100644 --- a/packages/grid/package.json +++ b/packages/grid/package.json @@ -1,7 +1,7 @@ { "name": "@carbon/grid", "description": "Grid for digital and software products using the Carbon Design System", - "version": "11.20.0", + "version": "11.21.0-rc.0", "license": "Apache-2.0", "repository": { "type": "git", @@ -33,10 +33,10 @@ "clean": "rimraf scss/_inlined scss/vendor" }, "dependencies": { - "@carbon/layout": "^11.19.0" + "@carbon/layout": "^11.20.0-rc.0" }, "devDependencies": { - "@carbon/cli": "^11.14.0", + "@carbon/cli": "^11.15.0-rc.0", "rimraf": "^5.0.0" }, "eyeglass": { diff --git a/packages/icon-build-helpers/package.json b/packages/icon-build-helpers/package.json index 335437da8399..ad5d67d55878 100644 --- a/packages/icon-build-helpers/package.json +++ b/packages/icon-build-helpers/package.json @@ -2,7 +2,7 @@ "name": "@carbon/icon-build-helpers", "private": true, "description": "Build helpers for the Carbon Design System icon library", - "version": "1.18.0", + "version": "1.19.0-rc.0", "license": "Apache-2.0", "main": "src/index.js", "repository": { @@ -30,7 +30,7 @@ "@babel/template": "^7.16.7", "@babel/types": "^7.18.4", "@carbon/cli-reporter": "^10.7.0", - "@carbon/icon-helpers": "^10.44.0", + "@carbon/icon-helpers": "^10.45.0-rc.0", "@rollup/plugin-babel": "^6.0.0", "@rollup/plugin-replace": "^5.0.0", "browserslist-config-carbon": "^11.2.0", @@ -51,6 +51,6 @@ "svg-parser": "^2.0.4", "svgo": "^1.1.1", "svgson": "^5.2.1", - "typescript-config-carbon": "^0.1.0" + "typescript-config-carbon": "^0.2.0-rc.0" } } diff --git a/packages/icon-helpers/package.json b/packages/icon-helpers/package.json index bead5523b549..9ef09bff0dbf 100644 --- a/packages/icon-helpers/package.json +++ b/packages/icon-helpers/package.json @@ -1,7 +1,7 @@ { "name": "@carbon/icon-helpers", "description": "Helpers used alongside icons for digital and software products using the Carbon Design System", - "version": "10.44.0", + "version": "10.45.0-rc.0", "license": "Apache-2.0", "main": "lib/index.js", "module": "es/index.js", @@ -34,9 +34,9 @@ "clean": "rimraf es lib umd" }, "devDependencies": { - "@carbon/cli": "^11.14.0", + "@carbon/cli": "^11.15.0-rc.0", "rimraf": "^5.0.0", - "typescript-config-carbon": "^0.1.0" + "typescript-config-carbon": "^0.2.0-rc.0" }, "sideEffects": false } diff --git a/packages/icons-react/package.json b/packages/icons-react/package.json index 041fa95e5f97..820c59e6d29b 100644 --- a/packages/icons-react/package.json +++ b/packages/icons-react/package.json @@ -1,7 +1,7 @@ { "name": "@carbon/icons-react", "description": "React components for icons in digital and software products using the Carbon Design System", - "version": "11.28.0", + "version": "11.29.0-rc.0", "license": "Apache-2.0", "main": "lib/index.js", "module": "es/index.js", @@ -37,13 +37,13 @@ "react": ">=16" }, "dependencies": { - "@carbon/icon-helpers": "^10.44.0", + "@carbon/icon-helpers": "^10.45.0-rc.0", "@carbon/telemetry": "0.1.0", "prop-types": "^15.7.2" }, "devDependencies": { - "@carbon/icon-build-helpers": "^1.18.0", - "@carbon/icons": "^11.28.0", + "@carbon/icon-build-helpers": "^1.19.0-rc.0", + "@carbon/icons": "^11.29.0-rc.0", "rimraf": "^5.0.0" }, "sideEffects": false diff --git a/packages/icons-vue/package.json b/packages/icons-vue/package.json index 527174faa424..c6c9d6f3efc9 100644 --- a/packages/icons-vue/package.json +++ b/packages/icons-vue/package.json @@ -1,7 +1,7 @@ { "name": "@carbon/icons-vue", "description": "Vue components for icons in digital and software products using the Carbon Design System", - "version": "10.77.0", + "version": "10.78.0-rc.0", "license": "Apache-2.0", "main": "lib/index.js", "module": "es/index.js", @@ -29,11 +29,11 @@ "clean": "rimraf es lib" }, "dependencies": { - "@carbon/icon-helpers": "^10.44.0" + "@carbon/icon-helpers": "^10.45.0-rc.0" }, "devDependencies": { "@carbon/cli-reporter": "^10.7.0", - "@carbon/icons": "^11.28.0", + "@carbon/icons": "^11.29.0-rc.0", "fs-extra": "^11.0.0", "prettier": "^2.8.8", "rimraf": "^5.0.0", diff --git a/packages/icons/package.json b/packages/icons/package.json index 4a85e2e0f22f..b2c3e0ba4c8b 100644 --- a/packages/icons/package.json +++ b/packages/icons/package.json @@ -1,7 +1,7 @@ { "name": "@carbon/icons", "description": "Icons for digital and software products using the Carbon Design System", - "version": "11.28.0", + "version": "11.29.0-rc.0", "license": "Apache-2.0", "main": "lib/index.js", "module": "es/index.js", @@ -39,8 +39,8 @@ "prepublishOnly": "yarn build" }, "devDependencies": { - "@carbon/cli": "^11.14.0", - "@carbon/icon-build-helpers": "^1.18.0", + "@carbon/cli": "^11.15.0-rc.0", + "@carbon/icon-build-helpers": "^1.19.0-rc.0", "rimraf": "^5.0.0" } } diff --git a/packages/layout/package.json b/packages/layout/package.json index 02745132440b..ab3737b36bfd 100644 --- a/packages/layout/package.json +++ b/packages/layout/package.json @@ -1,7 +1,7 @@ { "name": "@carbon/layout", "description": "Layout helpers for digital and software products using the Carbon Design System", - "version": "11.19.0", + "version": "11.20.0-rc.0", "license": "Apache-2.0", "main": "lib/index.js", "module": "es/index.js", @@ -29,7 +29,7 @@ "clean": "rimraf es lib umd scss/generated" }, "devDependencies": { - "@carbon/cli": "^11.14.0", + "@carbon/cli": "^11.15.0-rc.0", "@carbon/cli-reporter": "^10.7.0", "@carbon/scss-generator": "^10.18.0", "@carbon/test-utils": "^10.30.0", diff --git a/packages/motion/package.json b/packages/motion/package.json index a38368fbb3f7..2d67ff8fa0e4 100644 --- a/packages/motion/package.json +++ b/packages/motion/package.json @@ -1,7 +1,7 @@ { "name": "@carbon/motion", "description": "Motion helpers for digital and software products using the Carbon Design System", - "version": "11.15.0", + "version": "11.16.0-rc.0", "license": "Apache-2.0", "main": "lib/index.js", "module": "es/index.js", @@ -29,7 +29,7 @@ "clean": "rimraf es lib umd" }, "devDependencies": { - "@carbon/cli": "^11.14.0", + "@carbon/cli": "^11.15.0-rc.0", "rimraf": "^5.0.0" } } diff --git a/packages/pictograms-react/package.json b/packages/pictograms-react/package.json index 5a797226ef87..78b35e1f92a6 100644 --- a/packages/pictograms-react/package.json +++ b/packages/pictograms-react/package.json @@ -1,7 +1,7 @@ { "name": "@carbon/pictograms-react", "description": "React components for pictograms in digital and software products using the Carbon Design System", - "version": "11.50.0", + "version": "11.51.0-rc.0", "license": "Apache-2.0", "main": "lib/index.js", "module": "es/index.js", @@ -38,13 +38,13 @@ "react": ">=16" }, "dependencies": { - "@carbon/icon-helpers": "^10.44.0", + "@carbon/icon-helpers": "^10.45.0-rc.0", "@carbon/telemetry": "0.1.0", "prop-types": "^15.7.2" }, "devDependencies": { - "@carbon/icon-build-helpers": "^1.18.0", - "@carbon/pictograms": "^12.24.0", + "@carbon/icon-build-helpers": "^1.19.0-rc.0", + "@carbon/pictograms": "^12.25.0-rc.0", "rimraf": "^5.0.0" }, "sideEffects": false diff --git a/packages/pictograms/package.json b/packages/pictograms/package.json index f1bce1a9862f..cc5621ed06fe 100644 --- a/packages/pictograms/package.json +++ b/packages/pictograms/package.json @@ -1,7 +1,7 @@ { "name": "@carbon/pictograms", "description": "Pictograms for digital and software products using the Carbon Design System", - "version": "12.24.0", + "version": "12.25.0-rc.0", "license": "Apache-2.0", "main": "lib/index.js", "module": "es/index.js", @@ -32,7 +32,7 @@ "prepublishOnly": "yarn build" }, "devDependencies": { - "@carbon/icon-build-helpers": "^1.18.0", + "@carbon/icon-build-helpers": "^1.19.0-rc.0", "rimraf": "^5.0.0" } } diff --git a/packages/react/package.json b/packages/react/package.json index 34852bed3e37..d956863640f0 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,7 +1,7 @@ { "name": "@carbon/react", "description": "React components for the Carbon Design System", - "version": "1.40.0", + "version": "1.41.0-rc.0", "license": "Apache-2.0", "main": "lib/index.js", "module": "es/index.js", @@ -47,9 +47,9 @@ "dependencies": { "@babel/runtime": "^7.18.3", "@carbon/feature-flags": "^0.16.0", - "@carbon/icons-react": "^11.28.0", - "@carbon/layout": "^11.19.0", - "@carbon/styles": "^1.40.0", + "@carbon/icons-react": "^11.29.0-rc.0", + "@carbon/layout": "^11.20.0-rc.0", + "@carbon/styles": "^1.41.0-rc.0", "@carbon/telemetry": "0.1.0", "classnames": "2.3.2", "copy-to-clipboard": "^3.3.1", @@ -77,7 +77,7 @@ "@babel/preset-react": "^7.22.3", "@babel/preset-typescript": "^7.21.5", "@carbon/test-utils": "^10.30.0", - "@carbon/themes": "^11.25.0", + "@carbon/themes": "^11.26.0-rc.0", "@rollup/plugin-babel": "^6.0.0", "@rollup/plugin-commonjs": "^25.0.0", "@rollup/plugin-node-resolve": "^15.0.0", @@ -124,7 +124,7 @@ "storybook-readme": "^5.0.9", "stream-browserify": "^3.0.0", "style-loader": "^3.3.1", - "typescript-config-carbon": "^0.1.0", + "typescript-config-carbon": "^0.2.0-rc.0", "webpack": "^5.65.0", "webpack-dev-server": "^4.7.4" }, diff --git a/packages/styles/package.json b/packages/styles/package.json index 38f4bb292ff8..22585e5d15ea 100644 --- a/packages/styles/package.json +++ b/packages/styles/package.json @@ -1,7 +1,7 @@ { "name": "@carbon/styles", "description": "Styles for the Carbon Design System", - "version": "1.40.0", + "version": "1.41.0-rc.0", "license": "Apache-2.0", "repository": { "type": "git", @@ -38,13 +38,13 @@ } }, "dependencies": { - "@carbon/colors": "^11.19.0", + "@carbon/colors": "^11.20.0-rc.0", "@carbon/feature-flags": "^0.16.0", - "@carbon/grid": "^11.20.0", - "@carbon/layout": "^11.19.0", - "@carbon/motion": "^11.15.0", - "@carbon/themes": "^11.25.0", - "@carbon/type": "^11.24.0", + "@carbon/grid": "^11.21.0-rc.0", + "@carbon/layout": "^11.20.0-rc.0", + "@carbon/motion": "^11.16.0-rc.0", + "@carbon/themes": "^11.26.0-rc.0", + "@carbon/type": "^11.25.0-rc.0", "@ibm/plex": "6.0.0-next.6" }, "devDependencies": { diff --git a/packages/themes/package.json b/packages/themes/package.json index f64f23d93b43..fb7c589f7130 100644 --- a/packages/themes/package.json +++ b/packages/themes/package.json @@ -1,7 +1,7 @@ { "name": "@carbon/themes", "description": "Themes for applying color in the Carbon Design System", - "version": "11.25.0", + "version": "11.26.0-rc.0", "license": "Apache-2.0", "main": "lib/index.js", "module": "es/index.js", @@ -30,15 +30,15 @@ "build": "yarn clean && carbon-cli bundle src/index.js --name CarbonThemes && babel-node --presets '@babel/preset-env' tasks/build.js && carbon-cli check \"scss/*.scss\"" }, "dependencies": { - "@carbon/colors": "^11.19.0", - "@carbon/layout": "^11.19.0", - "@carbon/type": "^11.24.0", + "@carbon/colors": "^11.20.0-rc.0", + "@carbon/layout": "^11.20.0-rc.0", + "@carbon/type": "^11.25.0-rc.0", "color": "^4.0.0" }, "devDependencies": { "@babel/node": "^7.17.10", "@babel/preset-env": "^7.18.2", - "@carbon/cli": "^11.14.0", + "@carbon/cli": "^11.15.0-rc.0", "@carbon/cli-reporter": "^10.7.0", "@carbon/scss-generator": "^10.18.0", "@carbon/test-utils": "^10.30.0", diff --git a/packages/type/package.json b/packages/type/package.json index cf48d470fc2d..f6c7ec0841bb 100644 --- a/packages/type/package.json +++ b/packages/type/package.json @@ -1,7 +1,7 @@ { "name": "@carbon/type", "description": "Typography for digital and software products using the Carbon Design System", - "version": "11.24.0", + "version": "11.25.0-rc.0", "license": "Apache-2.0", "main": "lib/index.js", "module": "es/index.js", @@ -38,11 +38,11 @@ "clean": "rimraf css es lib umd" }, "dependencies": { - "@carbon/grid": "^11.20.0", - "@carbon/layout": "^11.19.0" + "@carbon/grid": "^11.21.0-rc.0", + "@carbon/layout": "^11.20.0-rc.0" }, "devDependencies": { - "@carbon/cli": "^11.14.0", + "@carbon/cli": "^11.15.0-rc.0", "@carbon/test-utils": "^10.30.0", "change-case": "^4.1.1", "css": "^3.0.0", diff --git a/www/package.json b/www/package.json index f247b673b604..d6680327b89f 100644 --- a/www/package.json +++ b/www/package.json @@ -1,7 +1,7 @@ { "name": "www", "private": true, - "version": "0.49.0", + "version": "0.50.0-rc.0", "license": "Apache-2.0", "repository": { "type": "git", @@ -22,7 +22,7 @@ "start": "next start" }, "dependencies": { - "@carbon/react": "^1.40.0", + "@carbon/react": "^1.41.0-rc.0", "@octokit/core": "^4.0.0", "@octokit/plugin-retry": "^3.0.9", "@octokit/plugin-throttling": "^4.0.0", diff --git a/yarn.lock b/yarn.lock index e07cefc9ea47..cacd0ec4c3f4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1845,7 +1845,7 @@ __metadata: languageName: unknown linkType: soft -"@carbon/cli@^11.14.0, @carbon/cli@workspace:packages/cli": +"@carbon/cli@^11.15.0-rc.0, @carbon/cli@workspace:packages/cli": version: 0.0.0-use.local resolution: "@carbon/cli@workspace:packages/cli" dependencies: @@ -1876,18 +1876,18 @@ __metadata: rollup: ^2.79.1 sass: ^1.51.0 sassdoc: ^2.7.3 - typescript-config-carbon: ^0.1.0 + typescript-config-carbon: ^0.2.0-rc.0 yargs: ^17.0.1 bin: carbon-cli: ./bin/carbon-cli.js languageName: unknown linkType: soft -"@carbon/colors@^11.19.0, @carbon/colors@workspace:packages/colors": +"@carbon/colors@^11.20.0-rc.0, @carbon/colors@workspace:packages/colors": version: 0.0.0-use.local resolution: "@carbon/colors@workspace:packages/colors" dependencies: - "@carbon/cli": ^11.14.0 + "@carbon/cli": ^11.15.0-rc.0 "@carbon/cli-reporter": ^10.7.0 "@carbon/scss-generator": ^10.18.0 "@carbon/test-utils": ^10.30.0 @@ -1907,14 +1907,14 @@ __metadata: version: 0.0.0-use.local resolution: "@carbon/elements@workspace:packages/elements" dependencies: - "@carbon/cli": ^11.14.0 - "@carbon/colors": ^11.19.0 - "@carbon/grid": ^11.20.0 - "@carbon/icons": ^11.28.0 - "@carbon/layout": ^11.19.0 - "@carbon/motion": ^11.15.0 - "@carbon/themes": ^11.25.0 - "@carbon/type": ^11.24.0 + "@carbon/cli": ^11.15.0-rc.0 + "@carbon/colors": ^11.20.0-rc.0 + "@carbon/grid": ^11.21.0-rc.0 + "@carbon/icons": ^11.29.0-rc.0 + "@carbon/layout": ^11.20.0-rc.0 + "@carbon/motion": ^11.16.0-rc.0 + "@carbon/themes": ^11.26.0-rc.0 + "@carbon/type": ^11.25.0-rc.0 fs-extra: ^11.0.0 klaw-sync: ^6.0.0 replace-in-file: ^7.0.0 @@ -1950,17 +1950,17 @@ __metadata: languageName: node linkType: hard -"@carbon/grid@^11.20.0, @carbon/grid@workspace:packages/grid": +"@carbon/grid@^11.21.0-rc.0, @carbon/grid@workspace:packages/grid": version: 0.0.0-use.local resolution: "@carbon/grid@workspace:packages/grid" dependencies: - "@carbon/cli": ^11.14.0 - "@carbon/layout": ^11.19.0 + "@carbon/cli": ^11.15.0-rc.0 + "@carbon/layout": ^11.20.0-rc.0 rimraf: ^5.0.0 languageName: unknown linkType: soft -"@carbon/icon-build-helpers@^1.18.0, @carbon/icon-build-helpers@workspace:packages/icon-build-helpers": +"@carbon/icon-build-helpers@^1.19.0-rc.0, @carbon/icon-build-helpers@workspace:packages/icon-build-helpers": version: 0.0.0-use.local resolution: "@carbon/icon-build-helpers@workspace:packages/icon-build-helpers" dependencies: @@ -1971,7 +1971,7 @@ __metadata: "@babel/template": ^7.16.7 "@babel/types": ^7.18.4 "@carbon/cli-reporter": ^10.7.0 - "@carbon/icon-helpers": ^10.44.0 + "@carbon/icon-helpers": ^10.45.0-rc.0 "@rollup/plugin-babel": ^6.0.0 "@rollup/plugin-replace": ^5.0.0 browserslist-config-carbon: ^11.2.0 @@ -1992,27 +1992,34 @@ __metadata: svg-parser: ^2.0.4 svgo: ^1.1.1 svgson: ^5.2.1 - typescript-config-carbon: ^0.1.0 + typescript-config-carbon: ^0.2.0-rc.0 languageName: unknown linkType: soft -"@carbon/icon-helpers@^10.28.0, @carbon/icon-helpers@^10.44.0, @carbon/icon-helpers@workspace:packages/icon-helpers": +"@carbon/icon-helpers@^10.45.0-rc.0, @carbon/icon-helpers@workspace:packages/icon-helpers": version: 0.0.0-use.local resolution: "@carbon/icon-helpers@workspace:packages/icon-helpers" dependencies: - "@carbon/cli": ^11.14.0 + "@carbon/cli": ^11.15.0-rc.0 rimraf: ^5.0.0 - typescript-config-carbon: ^0.1.0 + typescript-config-carbon: ^0.2.0-rc.0 languageName: unknown linkType: soft -"@carbon/icons-react@^11.28.0, @carbon/icons-react@workspace:packages/icons-react": +"@carbon/icon-helpers@npm:^10.28.0": + version: 10.44.0 + resolution: "@carbon/icon-helpers@npm:10.44.0" + checksum: c61b711ef78ba5546514917571ccec01c0943a2dc53d34a90987985bd839de7c164ce7bf9890d21012e585c1a655f6a5a9ac88492af4345653f095f9ddebe54a + languageName: node + linkType: hard + +"@carbon/icons-react@^11.29.0-rc.0, @carbon/icons-react@workspace:packages/icons-react": version: 0.0.0-use.local resolution: "@carbon/icons-react@workspace:packages/icons-react" dependencies: - "@carbon/icon-build-helpers": ^1.18.0 - "@carbon/icon-helpers": ^10.44.0 - "@carbon/icons": ^11.28.0 + "@carbon/icon-build-helpers": ^1.19.0-rc.0 + "@carbon/icon-helpers": ^10.45.0-rc.0 + "@carbon/icons": ^11.29.0-rc.0 "@carbon/telemetry": 0.1.0 prop-types: ^15.7.2 rimraf: ^5.0.0 @@ -2039,8 +2046,8 @@ __metadata: resolution: "@carbon/icons-vue@workspace:packages/icons-vue" dependencies: "@carbon/cli-reporter": ^10.7.0 - "@carbon/icon-helpers": ^10.44.0 - "@carbon/icons": ^11.28.0 + "@carbon/icon-helpers": ^10.45.0-rc.0 + "@carbon/icons": ^11.29.0-rc.0 fs-extra: ^11.0.0 prettier: ^2.8.8 rimraf: ^5.0.0 @@ -2049,21 +2056,21 @@ __metadata: languageName: unknown linkType: soft -"@carbon/icons@^11.28.0, @carbon/icons@workspace:packages/icons": +"@carbon/icons@^11.29.0-rc.0, @carbon/icons@workspace:packages/icons": version: 0.0.0-use.local resolution: "@carbon/icons@workspace:packages/icons" dependencies: - "@carbon/cli": ^11.14.0 - "@carbon/icon-build-helpers": ^1.18.0 + "@carbon/cli": ^11.15.0-rc.0 + "@carbon/icon-build-helpers": ^1.19.0-rc.0 rimraf: ^5.0.0 languageName: unknown linkType: soft -"@carbon/layout@^11.19.0, @carbon/layout@workspace:packages/layout": +"@carbon/layout@^11.20.0-rc.0, @carbon/layout@workspace:packages/layout": version: 0.0.0-use.local resolution: "@carbon/layout@workspace:packages/layout" dependencies: - "@carbon/cli": ^11.14.0 + "@carbon/cli": ^11.15.0-rc.0 "@carbon/cli-reporter": ^10.7.0 "@carbon/scss-generator": ^10.18.0 "@carbon/test-utils": ^10.30.0 @@ -2079,11 +2086,11 @@ __metadata: languageName: node linkType: hard -"@carbon/motion@^11.15.0, @carbon/motion@workspace:packages/motion": +"@carbon/motion@^11.16.0-rc.0, @carbon/motion@workspace:packages/motion": version: 0.0.0-use.local resolution: "@carbon/motion@workspace:packages/motion" dependencies: - "@carbon/cli": ^11.14.0 + "@carbon/cli": ^11.15.0-rc.0 rimraf: ^5.0.0 languageName: unknown linkType: soft @@ -2092,9 +2099,9 @@ __metadata: version: 0.0.0-use.local resolution: "@carbon/pictograms-react@workspace:packages/pictograms-react" dependencies: - "@carbon/icon-build-helpers": ^1.18.0 - "@carbon/icon-helpers": ^10.44.0 - "@carbon/pictograms": ^12.24.0 + "@carbon/icon-build-helpers": ^1.19.0-rc.0 + "@carbon/icon-helpers": ^10.45.0-rc.0 + "@carbon/pictograms": ^12.25.0-rc.0 "@carbon/telemetry": 0.1.0 prop-types: ^15.7.2 rimraf: ^5.0.0 @@ -2103,16 +2110,16 @@ __metadata: languageName: unknown linkType: soft -"@carbon/pictograms@^12.24.0, @carbon/pictograms@workspace:packages/pictograms": +"@carbon/pictograms@^12.25.0-rc.0, @carbon/pictograms@workspace:packages/pictograms": version: 0.0.0-use.local resolution: "@carbon/pictograms@workspace:packages/pictograms" dependencies: - "@carbon/icon-build-helpers": ^1.18.0 + "@carbon/icon-build-helpers": ^1.19.0-rc.0 rimraf: ^5.0.0 languageName: unknown linkType: soft -"@carbon/react@^1.40.0, @carbon/react@workspace:packages/react": +"@carbon/react@^1.41.0-rc.0, @carbon/react@workspace:packages/react": version: 0.0.0-use.local resolution: "@carbon/react@workspace:packages/react" dependencies: @@ -2126,12 +2133,12 @@ __metadata: "@babel/preset-typescript": ^7.21.5 "@babel/runtime": ^7.18.3 "@carbon/feature-flags": ^0.16.0 - "@carbon/icons-react": ^11.28.0 - "@carbon/layout": ^11.19.0 - "@carbon/styles": ^1.40.0 + "@carbon/icons-react": ^11.29.0-rc.0 + "@carbon/layout": ^11.20.0-rc.0 + "@carbon/styles": ^1.41.0-rc.0 "@carbon/telemetry": 0.1.0 "@carbon/test-utils": ^10.30.0 - "@carbon/themes": ^11.25.0 + "@carbon/themes": ^11.26.0-rc.0 "@rollup/plugin-babel": ^6.0.0 "@rollup/plugin-commonjs": ^25.0.0 "@rollup/plugin-node-resolve": ^15.0.0 @@ -2189,7 +2196,7 @@ __metadata: storybook-readme: ^5.0.9 stream-browserify: ^3.0.0 style-loader: ^3.3.1 - typescript-config-carbon: ^0.1.0 + typescript-config-carbon: ^0.2.0-rc.0 use-resize-observer: ^6.0.0 webpack: ^5.65.0 webpack-dev-server: ^4.7.4 @@ -2210,18 +2217,18 @@ __metadata: languageName: unknown linkType: soft -"@carbon/styles@^1.40.0, @carbon/styles@workspace:packages/styles": +"@carbon/styles@^1.41.0-rc.0, @carbon/styles@workspace:packages/styles": version: 0.0.0-use.local resolution: "@carbon/styles@workspace:packages/styles" dependencies: - "@carbon/colors": ^11.19.0 + "@carbon/colors": ^11.20.0-rc.0 "@carbon/feature-flags": ^0.16.0 - "@carbon/grid": ^11.20.0 - "@carbon/layout": ^11.19.0 - "@carbon/motion": ^11.15.0 + "@carbon/grid": ^11.21.0-rc.0 + "@carbon/layout": ^11.20.0-rc.0 + "@carbon/motion": ^11.16.0-rc.0 "@carbon/test-utils": ^10.30.0 - "@carbon/themes": ^11.25.0 - "@carbon/type": ^11.24.0 + "@carbon/themes": ^11.26.0-rc.0 + "@carbon/type": ^11.25.0-rc.0 "@ibm/plex": 6.0.0-next.6 autoprefixer: ^10.4.7 browserslist-config-carbon: ^11.2.0 @@ -2263,19 +2270,19 @@ __metadata: languageName: unknown linkType: soft -"@carbon/themes@^11.25.0, @carbon/themes@workspace:packages/themes": +"@carbon/themes@^11.26.0-rc.0, @carbon/themes@workspace:packages/themes": version: 0.0.0-use.local resolution: "@carbon/themes@workspace:packages/themes" dependencies: "@babel/node": ^7.17.10 "@babel/preset-env": ^7.18.2 - "@carbon/cli": ^11.14.0 + "@carbon/cli": ^11.15.0-rc.0 "@carbon/cli-reporter": ^10.7.0 - "@carbon/colors": ^11.19.0 - "@carbon/layout": ^11.19.0 + "@carbon/colors": ^11.20.0-rc.0 + "@carbon/layout": ^11.20.0-rc.0 "@carbon/scss-generator": ^10.18.0 "@carbon/test-utils": ^10.30.0 - "@carbon/type": ^11.24.0 + "@carbon/type": ^11.25.0-rc.0 change-case: ^4.1.1 color: ^4.0.0 core-js: ^3.16.0 @@ -2285,13 +2292,13 @@ __metadata: languageName: unknown linkType: soft -"@carbon/type@^11.24.0, @carbon/type@workspace:packages/type": +"@carbon/type@^11.25.0-rc.0, @carbon/type@workspace:packages/type": version: 0.0.0-use.local resolution: "@carbon/type@workspace:packages/type" dependencies: - "@carbon/cli": ^11.14.0 - "@carbon/grid": ^11.20.0 - "@carbon/layout": ^11.19.0 + "@carbon/cli": ^11.15.0-rc.0 + "@carbon/grid": ^11.21.0-rc.0 + "@carbon/layout": ^11.20.0-rc.0 "@carbon/test-utils": ^10.30.0 change-case: ^4.1.1 css: ^3.0.0 @@ -10697,8 +10704,8 @@ __metadata: "@babel/plugin-transform-react-constant-elements": ^7.17.12 "@babel/preset-env": ^7.18.2 "@babel/preset-react": ^7.17.12 - "@carbon/react": ^1.40.0 - "@carbon/styles": ^1.40.0 + "@carbon/react": ^1.41.0-rc.0 + "@carbon/styles": ^1.41.0-rc.0 "@carbon/telemetry": 0.1.0 "@carbon/test-utils": ^10.30.0 "@rollup/plugin-babel": ^6.0.0 @@ -10737,7 +10744,7 @@ __metadata: version: 0.0.0-use.local resolution: "carbon-components@workspace:packages/carbon-components" dependencies: - "@carbon/styles": ^1.40.0 + "@carbon/styles": ^1.41.0-rc.0 "@carbon/telemetry": 0.1.0 "@carbon/test-utils": ^10.30.0 chalk: 1.1.3 @@ -11101,7 +11108,7 @@ __metadata: version: 0.0.0-use.local resolution: "class-prefix@workspace:examples/class-prefix" dependencies: - "@carbon/react": ^1.40.0 + "@carbon/react": ^1.41.0-rc.0 "@vitejs/plugin-react": 4.0.0 react: ^18.2.0 react-dom: ^18.2.0 @@ -11423,7 +11430,7 @@ __metadata: version: 0.0.0-use.local resolution: "codesandbox-styles@workspace:examples/codesandbox-styles" dependencies: - "@carbon/styles": ^1.40.0 + "@carbon/styles": ^1.41.0-rc.0 sass: ^1.51.0 vite: ^4.3.8 languageName: unknown @@ -11433,7 +11440,7 @@ __metadata: version: 0.0.0-use.local resolution: "codesandbox-with-sass-compilation@workspace:examples/codesandbox-with-sass-compilation" dependencies: - "@carbon/react": ^1.40.0 + "@carbon/react": ^1.41.0-rc.0 react: ^18.2.0 react-dom: ^18.2.0 react-scripts: 5.0.0 @@ -11445,7 +11452,7 @@ __metadata: version: 0.0.0-use.local resolution: "codesandbox@workspace:examples/codesandbox" dependencies: - "@carbon/react": ^1.40.0 + "@carbon/react": ^1.41.0-rc.0 react: ^18.2.0 react-dom: ^18.2.0 react-scripts: 5.0.0 @@ -12664,7 +12671,7 @@ __metadata: version: 0.0.0-use.local resolution: "custom-theme@workspace:examples/custom-theme" dependencies: - "@carbon/react": ^1.40.0 + "@carbon/react": ^1.41.0-rc.0 "@vitejs/plugin-react": 4.0.0 react: ^18.2.0 react-dom: ^18.2.0 @@ -14991,7 +14998,7 @@ __metadata: version: 0.0.0-use.local resolution: "examples-light-dark@workspace:examples/light-dark-mode" dependencies: - "@carbon/react": ^1.40.0 + "@carbon/react": ^1.41.0-rc.0 eslint: 8.40.0 next: 12.1.4 react: 18.2.0 @@ -15004,7 +15011,7 @@ __metadata: version: 0.0.0-use.local resolution: "examples-nextjs@workspace:examples/nextjs" dependencies: - "@carbon/react": ^1.40.0 + "@carbon/react": ^1.41.0-rc.0 eslint: 8.40.0 eslint-config-next: 13.4.7 next: 13.4.7 @@ -17363,7 +17370,7 @@ __metadata: version: 0.0.0-use.local resolution: "id-prefix@workspace:examples/id-prefix" dependencies: - "@carbon/react": ^1.40.0 + "@carbon/react": ^1.41.0-rc.0 "@vitejs/plugin-react": 4.0.0 react: ^18.2.0 react-dom: ^18.2.0 @@ -17500,7 +17507,7 @@ __metadata: resolution: "incremental-migration-vite@workspace:examples/incremental-migration-vite" dependencies: "@carbon/icons-react": ^10.49.0 - "@carbon/react": ^1.40.0 + "@carbon/react": ^1.41.0-rc.0 "@vitejs/plugin-react": 4.0.0 carbon-components: ^10.57.0 carbon-components-react: ^7.57.0 @@ -30665,7 +30672,7 @@ __metadata: languageName: node linkType: hard -"typescript-config-carbon@^0.1.0, typescript-config-carbon@workspace:config/typescript-config-carbon": +"typescript-config-carbon@^0.2.0-rc.0, typescript-config-carbon@workspace:config/typescript-config-carbon": version: 0.0.0-use.local resolution: "typescript-config-carbon@workspace:config/typescript-config-carbon" dependencies: @@ -31418,7 +31425,7 @@ __metadata: version: 0.0.0-use.local resolution: "v10-token-compat-in-v11@workspace:examples/v10-token-compat-in-v11" dependencies: - "@carbon/react": ^1.40.0 + "@carbon/react": ^1.41.0-rc.0 "@vitejs/plugin-react": 4.0.0 react: ^18.2.0 react-dom: ^18.2.0 @@ -31722,7 +31729,7 @@ __metadata: version: 0.0.0-use.local resolution: "vite@workspace:examples/vite" dependencies: - "@carbon/react": ^1.40.0 + "@carbon/react": ^1.41.0-rc.0 "@vitejs/plugin-react": 4.0.0 react: ^18.2.0 react-dom: ^18.2.0 @@ -32637,7 +32644,7 @@ __metadata: version: 0.0.0-use.local resolution: "www@workspace:www" dependencies: - "@carbon/react": ^1.40.0 + "@carbon/react": ^1.41.0-rc.0 "@octokit/core": ^4.0.0 "@octokit/plugin-retry": ^3.0.9 "@octokit/plugin-throttling": ^4.0.0 From e9c883b4b635572478823109a02a1778fe6cb221 Mon Sep 17 00:00:00 2001 From: Marcin Lewandowski Date: Wed, 25 Oct 2023 21:30:21 +0200 Subject: [PATCH 2/2] refactor(Modal): add TypeScript types (#14733) --- .../__snapshots__/PublicAPI-test.js.snap | 1 + .../ComposedModal/ComposedModal.tsx | 1 - .../components/Modal/{Modal.js => Modal.tsx} | 235 +++++++++++++++--- .../components/Modal/{index.js => index.ts} | 0 packages/react/src/internal/wrapFocus.js | 10 +- .../prop-types/requiredIfGivenPropIsTruthy.js | 4 +- 6 files changed, 212 insertions(+), 39 deletions(-) rename packages/react/src/components/Modal/{Modal.js => Modal.tsx} (69%) rename packages/react/src/components/Modal/{index.js => index.ts} (100%) diff --git a/packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap b/packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap index 1b2a21b0d253..6ed50979cacb 100644 --- a/packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap +++ b/packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap @@ -4704,6 +4704,7 @@ Map { "selectorsFloatingMenus": Object { "args": Array [ Object { + "isRequired": true, "type": "string", }, ], diff --git a/packages/react/src/components/ComposedModal/ComposedModal.tsx b/packages/react/src/components/ComposedModal/ComposedModal.tsx index 4cfce68b7697..ddb7c0c6d475 100644 --- a/packages/react/src/components/ComposedModal/ComposedModal.tsx +++ b/packages/react/src/components/ComposedModal/ComposedModal.tsx @@ -83,7 +83,6 @@ ModalBody.propTypes = { /** * Required props for the accessibility label of the header */ - // @ts-expect-error: Built-in prop-types > TS logic doesn't jive well with custom validators ['aria-label']: requiredIfGivenPropIsTruthy( 'hasScrollingContent', PropTypes.string diff --git a/packages/react/src/components/Modal/Modal.js b/packages/react/src/components/Modal/Modal.tsx similarity index 69% rename from packages/react/src/components/Modal/Modal.js rename to packages/react/src/components/Modal/Modal.tsx index 8ade026277af..5aa9cd9bb1b8 100644 --- a/packages/react/src/components/Modal/Modal.js +++ b/packages/react/src/components/Modal/Modal.tsx @@ -21,9 +21,169 @@ import { usePrefix } from '../../internal/usePrefix'; import { keys, match } from '../../internal/keyboard'; import { noopFn } from '../../internal/noopFn'; import { Text } from '../Text'; +import { ReactAttr } from '../../types/common'; const getInstanceId = setupGetInstanceId(); +export const ModalSizes = ['xs', 'sm', 'md', 'lg'] as const; + +export type ModalSize = (typeof ModalSizes)[number]; + +export interface ModalSecondaryButton { + buttonText?: string; + + onClick?: React.MouseEventHandler; +} + +export interface ModalProps extends ReactAttr { + /** + * Specify whether the Modal is displaying an alert, error or warning + * Should go hand in hand with the danger prop. + */ + alert?: boolean; + + /** + * Required props for the accessibility label of the header + */ + 'aria-label'?: string; + + /** + * Provide the contents of your Modal + */ + children?: React.ReactNode; + + /** + * Specify an optional className to be applied to the modal root node + */ + className?: string; + + /** + * Specify an label for the close button of the modal; defaults to close + */ + closeButtonLabel?: string; + + /** + * Specify whether the Modal is for dangerous actions + */ + danger?: boolean; + + /** + * Specify whether the modal contains scrolling content + */ + hasScrollingContent?: boolean; + + /** + * Specify the DOM element ID of the top-level node. + */ + id?: string; + + /** + * Specify whether or not the Modal content should have any inner padding. + */ + isFullWidth?: boolean; + + /** + * Provide a ref to return focus to once the modal is closed. + */ + launcherButtonRef?: any; // TODO FIXME + + /** + * Specify a label to be read by screen readers on the modal root node + */ + modalAriaLabel?: string; + + /** + * Specify the content of the modal header title. + */ + modalHeading?: React.ReactNode; + + /** + * Specify the content of the modal header label. + */ + modalLabel?: React.ReactNode; + + /** + * Specify a handler for keypresses. + * @deprecated this property is unused + */ + onKeyDown?: React.KeyboardEventHandler; + + /** + * Specify a handler for closing modal. + * The handler should care of closing modal, e.g. changing `open` prop. + */ + onRequestClose?: React.ReactEventHandler; + + /** + * Specify a handler for "submitting" modal. + * The handler should care of closing modal, e.g. changing `open` prop, if necessary. + */ + onRequestSubmit?: React.ReactEventHandler; + + /** + * Specify a handler for the secondary button. + * Useful if separate handler from `onRequestClose` is desirable + */ + onSecondarySubmit?: React.ReactEventHandler; + + /** + * Specify whether the Modal is currently open + */ + open?: boolean; + + /** + * Specify whether the modal should be button-less + */ + passiveModal?: boolean; + + /** + * Prevent closing on click outside of modal + */ + preventCloseOnClickOutside?: boolean; + + /** + * Specify whether the Button should be disabled, or not + */ + primaryButtonDisabled?: boolean; + + /** + * Specify the text for the primary button + */ + primaryButtonText?: React.ReactNode; + + /** + * Specify the text for the secondary button + */ + secondaryButtonText?: React.ReactNode; + + /** + * Specify an array of config objects for secondary buttons + */ + secondaryButtons?: ModalSecondaryButton[]; + + /** + * Specify a CSS selector that matches the DOM element that should + * be focused when the Modal opens + */ + selectorPrimaryFocus?: string; + + /** + * Specify CSS selectors that match DOM elements working as floating menus. + * Focusing on those elements won't trigger "focus-wrap" behavior + */ + selectorsFloatingMenus?: string[]; + + /** + * Specify if Enter key should be used as "submit" action + */ + shouldSubmitOnEnter?: boolean; + + /** + * Specify the size variant. + */ + size?: ModalSize; +} + const Modal = React.forwardRef(function Modal( { 'aria-label': ariaLabelProp, @@ -53,29 +213,29 @@ const Modal = React.forwardRef(function Modal( isFullWidth, launcherButtonRef, ...rest - }, - ref + }: ModalProps, + ref: React.LegacyRef ) { const prefix = usePrefix(); - const button = useRef(); + const button = useRef(null); const secondaryButton = useRef(); - const innerModal = useRef(); - const startTrap = useRef(); - const endTrap = useRef(); + const innerModal = useRef(null); + const startTrap = useRef(null); + const endTrap = useRef(null); const modalInstanceId = `modal-${getInstanceId()}`; const modalLabelId = `${prefix}--modal-header__label--${modalInstanceId}`; const modalHeadingId = `${prefix}--modal-header__heading--${modalInstanceId}`; const modalBodyId = `${prefix}--modal-body--${modalInstanceId}`; const modalCloseButtonClass = `${prefix}--modal-close`; - function isCloseButton(element) { + function isCloseButton(element: Element) { return ( (!onSecondarySubmit && element === secondaryButton.current) || element.classList.contains(modalCloseButtonClass) ); } - function handleKeyDown(evt) { + function handleKeyDown(evt: React.KeyboardEvent) { if (open) { if (match(evt, keys.Escape)) { onRequestClose(evt); @@ -83,18 +243,19 @@ const Modal = React.forwardRef(function Modal( if ( match(evt, keys.Enter) && shouldSubmitOnEnter && - !isCloseButton(evt.target) + !isCloseButton(evt.target as Element) ) { onRequestSubmit(evt); } } } - function handleMousedown(evt) { + function handleMousedown(evt: React.MouseEvent) { + const target = evt.target as Node; if ( innerModal.current && - !innerModal.current.contains(evt.target) && - !elementOrParentIsFloatingMenu(evt.target, selectorsFloatingMenus) && + !innerModal.current.contains(target) && + !elementOrParentIsFloatingMenu(target, selectorsFloatingMenus) && !preventCloseOnClickOutside ) { onRequestClose(evt); @@ -104,7 +265,7 @@ const Modal = React.forwardRef(function Modal( function handleBlur({ target: oldActiveNode, relatedTarget: currentActiveNode, - }) { + }: React.FocusEvent) { if (open && currentActiveNode && oldActiveNode) { const { current: bodyNode } = innerModal; const { current: startTrapNode } = startTrap; @@ -124,12 +285,15 @@ const Modal = React.forwardRef(function Modal( ? onSecondarySubmit : onRequestClose; - const modalClasses = classNames(`${prefix}--modal`, { - [`${prefix}--modal-tall`]: !passiveModal, - 'is-visible': open, - [`${prefix}--modal--danger`]: danger, - [className]: className, - }); + const modalClasses = classNames( + `${prefix}--modal`, + { + [`${prefix}--modal-tall`]: !passiveModal, + 'is-visible': open, + [`${prefix}--modal--danger`]: danger, + }, + className + ); const containerClasses = classNames(`${prefix}--modal-container`, { [`${prefix}--modal-container--${size}`]: size, @@ -145,8 +309,13 @@ const Modal = React.forwardRef(function Modal( Array.isArray(secondaryButtons) && secondaryButtons.length === 2, }); + const asStringOrUndefined = (node: React.ReactNode): string | undefined => { + return typeof node === 'string' ? node : undefined; + }; + const modalLabelStr = asStringOrUndefined(modalLabel); + const modalHeadingStr = asStringOrUndefined(modalHeading); const ariaLabel = - modalLabel || ariaLabelProp || modalAriaLabel || modalHeading; + modalLabelStr || ariaLabelProp || modalAriaLabel || modalHeadingStr; const getAriaLabelledBy = modalLabel ? modalLabelId : modalHeadingId; const hasScrollingContentProps = hasScrollingContent @@ -158,7 +327,7 @@ const Modal = React.forwardRef(function Modal( } : {}; - const alertDialogProps = {}; + const alertDialogProps: ReactAttr = {}; if (alert && passiveModal) { alertDialogProps.role = 'alert'; } @@ -174,7 +343,11 @@ const Modal = React.forwardRef(function Modal( }, [prefix]); useEffect(() => { - toggleClass(document.body, `${prefix}--body--with-modal-open`, open); + toggleClass( + document.body, + `${prefix}--body--with-modal-open`, + open ?? false + ); }, [open, prefix]); useEffect(() => { @@ -186,10 +359,10 @@ const Modal = React.forwardRef(function Modal( }, [open, launcherButtonRef]); useEffect(() => { - const initialFocus = (focusContainerElement) => { + const initialFocus = (focusContainerElement: HTMLElement | null) => { const containerElement = focusContainerElement || innerModal.current; const primaryFocusElement = containerElement - ? containerElement.querySelector( + ? containerElement.querySelector( danger ? `.${prefix}--btn--secondary` : selectorPrimaryFocus ) : null; @@ -201,9 +374,9 @@ const Modal = React.forwardRef(function Modal( return button && button.current; }; - const focusButton = (focusContainerElement) => { + const focusButton = (focusContainerElement: HTMLElement | null) => { const target = initialFocus(focusContainerElement); - if (target) { + if (target !== null) { target.focus(); } }; @@ -238,7 +411,7 @@ const Modal = React.forwardRef(function Modal( className={containerClasses} aria-label={ariaLabel} aria-modal="true" - tabIndex="-1"> + tabIndex={-1}>
{passiveModal && modalButton} {modalLabel && ( @@ -311,7 +484,7 @@ const Modal = React.forwardRef(function Modal( {/* Non-translatable: Focus-wrap code makes this `` not actually read by screen readers */} Focus sentinel @@ -320,7 +493,7 @@ const Modal = React.forwardRef(function Modal( {/* Non-translatable: Focus-wrap code makes this `` not actually read by screen readers */} Focus sentinel @@ -503,7 +676,7 @@ Modal.propTypes = { * Specify CSS selectors that match DOM elements working as floating menus. * Focusing on those elements won't trigger "focus-wrap" behavior */ - selectorsFloatingMenus: PropTypes.arrayOf(PropTypes.string), + selectorsFloatingMenus: PropTypes.arrayOf(PropTypes.string.isRequired), /** * Specify if Enter key should be used as "submit" action @@ -513,7 +686,7 @@ Modal.propTypes = { /** * Specify the size variant. */ - size: PropTypes.oneOf(['xs', 'sm', 'md', 'lg']), + size: PropTypes.oneOf(ModalSizes), }; export default Modal; diff --git a/packages/react/src/components/Modal/index.js b/packages/react/src/components/Modal/index.ts similarity index 100% rename from packages/react/src/components/Modal/index.js rename to packages/react/src/components/Modal/index.ts diff --git a/packages/react/src/internal/wrapFocus.js b/packages/react/src/internal/wrapFocus.js index e918199021c6..fc51ab409fbf 100644 --- a/packages/react/src/internal/wrapFocus.js +++ b/packages/react/src/internal/wrapFocus.js @@ -32,11 +32,11 @@ function elementOrParentIsFloatingMenu(node, selectorsFloatingMenus = []) { /** * Ensures the focus is kept in the given `modalNode`, implementing "focus-wrap" behavior. * @param {object} options The options. - * @param {HTMLElement|null} options.bodyNode - * @param {HTMLElement|null} options.startTrapNode The DOM node of the focus sentinel the is placed earlier next to `modalNode`. - * @param {HTMLElement|null} options.endTrapNode The DOM node of the focus sentinel the is placed next to `modalNode`. - * @param {HTMLElement} options.currentActiveNode The DOM node that has focus. - * @param {HTMLElement} options.oldActiveNode The DOM node that previously had focus. + * @param {Node|null} options.bodyNode + * @param {Node|null} options.startTrapNode The DOM node of the focus sentinel the is placed earlier next to `modalNode`. + * @param {Node|null} options.endTrapNode The DOM node of the focus sentinel the is placed next to `modalNode`. + * @param {Node} options.currentActiveNode The DOM node that has focus. + * @param {Node} options.oldActiveNode The DOM node that previously had focus. * @param {string[]} [options.selectorsFloatingMenus] The CSS selectors that matches floating menus. */ function wrapFocus({ diff --git a/packages/react/src/prop-types/requiredIfGivenPropIsTruthy.js b/packages/react/src/prop-types/requiredIfGivenPropIsTruthy.js index 65de1f262d47..6c511e63e70a 100644 --- a/packages/react/src/prop-types/requiredIfGivenPropIsTruthy.js +++ b/packages/react/src/prop-types/requiredIfGivenPropIsTruthy.js @@ -8,8 +8,8 @@ /** * @param {string} name The name of the prop that must exist to validate * the current prop. - * @param {Function} propType The original prop type checker. - * @returns {Function} The new prop type checker for the current prop that + * @param {React.Validator} propType The original prop type checker. + * @returns {React.Validator} The new prop type checker for the current prop that * becomes required if the prop corresponding to the provided prop name exists. */ export default function requiredIfGivenPropIsTruthy(name, propType) {