diff --git a/.github/workflows/add-to-project.yml b/.github/workflows/add-to-project.yml index 9297d7c2cf9f..15d54568eb4a 100644 --- a/.github/workflows/add-to-project.yml +++ b/.github/workflows/add-to-project.yml @@ -19,7 +19,7 @@ jobs: name: Add issue with enhancement label to the Proposals project runs-on: ubuntu-latest steps: - - uses: actions/add-to-project@v0.4.1 + - uses: actions/add-to-project@v0.5.0 with: labeled: ${{ env.LABEL_ENHANCEMENT }} project-url: ${{ env.PROPOSALS_PROJECT_URL }} @@ -29,7 +29,7 @@ jobs: name: Add issue with typescript label to the TypeScript Adoption project runs-on: ubuntu-latest steps: - - uses: actions/add-to-project@v0.4.1 + - uses: actions/add-to-project@v0.5.0 with: labeled: ${{ env.LABEL_TYPESCRIPT }} project-url: ${{ env.TYPESCRIPT_PROJECT_URL }} @@ -39,7 +39,7 @@ jobs: name: Add issue to the Design System project runs-on: ubuntu-latest steps: - - uses: actions/add-to-project@v0.4.1 + - uses: actions/add-to-project@v0.5.0 with: labeled: ${{ env.LABEL_ENHANCEMENT }}, ${{ env.LABEL_TYPESCRIPT }} label-operator: NOT diff --git a/.github/workflows/deploy-packages.yml b/.github/workflows/deploy-packages.yml index 8e3588a1bef5..a14ce88fd6f5 100644 --- a/.github/workflows/deploy-packages.yml +++ b/.github/workflows/deploy-packages.yml @@ -40,7 +40,7 @@ jobs: app_id: ${{ secrets.APP_ID }} private_key: ${{ secrets.APP_PRIVATE_KEY }} - name: Create Pull Request - uses: peter-evans/create-pull-request@v4 + uses: peter-evans/create-pull-request@v5 with: branch: 'release/update-carbon-deps-${{ github.ref }}' commit-message: 'chore(release): update carbon deps' @@ -82,7 +82,7 @@ jobs: app_id: ${{ secrets.APP_ID }} private_key: ${{ secrets.APP_PRIVATE_KEY }} - name: Create Pull Request - uses: peter-evans/create-pull-request@v4 + uses: peter-evans/create-pull-request@v5 with: branch: 'release/update-carbon-deps-${{ github.ref }}' commit-message: 'chore(release): update carbon deps' diff --git a/.github/workflows/version.yml b/.github/workflows/version.yml index 1c6d31a19a30..98b65ce58e1f 100644 --- a/.github/workflows/version.yml +++ b/.github/workflows/version.yml @@ -69,7 +69,7 @@ jobs: app_id: ${{ secrets.APP_ID }} private_key: ${{ secrets.APP_PRIVATE_KEY }} - name: Create Pull Request - uses: peter-evans/create-pull-request@v4 + uses: peter-evans/create-pull-request@v5 with: branch: 'release/${{ github.event.inputs.tag }}' commit-message: 'chore(release): ${{ github.event.inputs.tag }}' diff --git a/.yarn/cache/browserslist-npm-4.20.3-d7ff9d00b4-1e4b719ac2.zip b/.yarn/cache/browserslist-npm-4.20.3-d7ff9d00b4-1e4b719ac2.zip deleted file mode 100644 index 06a6229a09e4..000000000000 Binary files a/.yarn/cache/browserslist-npm-4.20.3-d7ff9d00b4-1e4b719ac2.zip and /dev/null differ diff --git a/.yarn/cache/browserslist-npm-4.21.5-e3b9e9d029-9755986b22.zip b/.yarn/cache/browserslist-npm-4.21.5-e3b9e9d029-9755986b22.zip new file mode 100644 index 000000000000..e76bdd53e57f Binary files /dev/null and b/.yarn/cache/browserslist-npm-4.21.5-e3b9e9d029-9755986b22.zip differ diff --git a/.yarn/cache/caniuse-lite-npm-1.0.30001343-0bce4a89cb-b8770c0be8.zip b/.yarn/cache/caniuse-lite-npm-1.0.30001343-0bce4a89cb-b8770c0be8.zip deleted file mode 100644 index 3ff0c4524b98..000000000000 Binary files a/.yarn/cache/caniuse-lite-npm-1.0.30001343-0bce4a89cb-b8770c0be8.zip and /dev/null differ diff --git a/.yarn/cache/caniuse-lite-npm-1.0.30001473-956b0afe61-007ad17463.zip b/.yarn/cache/caniuse-lite-npm-1.0.30001473-956b0afe61-007ad17463.zip new file mode 100644 index 000000000000..0ecda318abea Binary files /dev/null and b/.yarn/cache/caniuse-lite-npm-1.0.30001473-956b0afe61-007ad17463.zip differ diff --git a/.yarn/cache/css-declaration-sorter-npm-6.2.2-65a7d02b60-afd3aea1b7.zip b/.yarn/cache/css-declaration-sorter-npm-6.2.2-65a7d02b60-afd3aea1b7.zip deleted file mode 100644 index 271e10b114ba..000000000000 Binary files a/.yarn/cache/css-declaration-sorter-npm-6.2.2-65a7d02b60-afd3aea1b7.zip and /dev/null differ diff --git a/.yarn/cache/css-declaration-sorter-npm-6.4.0-003ccc93b4-b716bc3d79.zip b/.yarn/cache/css-declaration-sorter-npm-6.4.0-003ccc93b4-b716bc3d79.zip new file mode 100644 index 000000000000..88207f0baf55 Binary files /dev/null and b/.yarn/cache/css-declaration-sorter-npm-6.4.0-003ccc93b4-b716bc3d79.zip differ diff --git a/.yarn/cache/css-select-npm-5.1.0-9365a79de5-2772c049b1.zip b/.yarn/cache/css-select-npm-5.1.0-9365a79de5-2772c049b1.zip new file mode 100644 index 000000000000..5c72f05f5dec Binary files /dev/null and b/.yarn/cache/css-select-npm-5.1.0-9365a79de5-2772c049b1.zip differ diff --git a/.yarn/cache/css-tree-npm-2.2.1-ee98ac48a8-b94aa8cc2f.zip b/.yarn/cache/css-tree-npm-2.2.1-ee98ac48a8-b94aa8cc2f.zip new file mode 100644 index 000000000000..9b2056b61b7e Binary files /dev/null and b/.yarn/cache/css-tree-npm-2.2.1-ee98ac48a8-b94aa8cc2f.zip differ diff --git a/.yarn/cache/css-tree-npm-2.3.1-6540d78e26-493cc24b5c.zip b/.yarn/cache/css-tree-npm-2.3.1-6540d78e26-493cc24b5c.zip new file mode 100644 index 000000000000..5631b06e48f9 Binary files /dev/null and b/.yarn/cache/css-tree-npm-2.3.1-6540d78e26-493cc24b5c.zip differ diff --git a/.yarn/cache/css-what-npm-6.1.0-57f751efbb-b975e547e1.zip b/.yarn/cache/css-what-npm-6.1.0-57f751efbb-b975e547e1.zip new file mode 100644 index 000000000000..7ae813a39092 Binary files /dev/null and b/.yarn/cache/css-what-npm-6.1.0-57f751efbb-b975e547e1.zip differ diff --git a/.yarn/cache/cssnano-npm-6.0.0-cce34f1e08-e7d8b809d6.zip b/.yarn/cache/cssnano-npm-6.0.0-cce34f1e08-e7d8b809d6.zip new file mode 100644 index 000000000000..c1d083a780cf Binary files /dev/null and b/.yarn/cache/cssnano-npm-6.0.0-cce34f1e08-e7d8b809d6.zip differ diff --git a/.yarn/cache/cssnano-preset-default-npm-6.0.0-d4ca4f7fd8-439e11cdb3.zip b/.yarn/cache/cssnano-preset-default-npm-6.0.0-d4ca4f7fd8-439e11cdb3.zip new file mode 100644 index 000000000000..95ae6fc49613 Binary files /dev/null and b/.yarn/cache/cssnano-preset-default-npm-6.0.0-d4ca4f7fd8-439e11cdb3.zip differ diff --git a/.yarn/cache/cssnano-utils-npm-4.0.0-5f31db365f-7db9b3eb4e.zip b/.yarn/cache/cssnano-utils-npm-4.0.0-5f31db365f-7db9b3eb4e.zip new file mode 100644 index 000000000000..ad32acab6f4f Binary files /dev/null and b/.yarn/cache/cssnano-utils-npm-4.0.0-5f31db365f-7db9b3eb4e.zip differ diff --git a/.yarn/cache/csso-npm-5.0.5-b21e2a8b65-0ad858d36b.zip b/.yarn/cache/csso-npm-5.0.5-b21e2a8b65-0ad858d36b.zip new file mode 100644 index 000000000000..b62c01e3d3f9 Binary files /dev/null and b/.yarn/cache/csso-npm-5.0.5-b21e2a8b65-0ad858d36b.zip differ diff --git a/.yarn/cache/dom-serializer-npm-2.0.0-378ebc7200-cd1810544f.zip b/.yarn/cache/dom-serializer-npm-2.0.0-378ebc7200-cd1810544f.zip new file mode 100644 index 000000000000..0c9bd35a4753 Binary files /dev/null and b/.yarn/cache/dom-serializer-npm-2.0.0-378ebc7200-cd1810544f.zip differ diff --git a/.yarn/cache/domelementtype-npm-2.2.0-c37b3b15bf-24cb386198.zip b/.yarn/cache/domelementtype-npm-2.2.0-c37b3b15bf-24cb386198.zip deleted file mode 100644 index 3d318bdc1aa6..000000000000 Binary files a/.yarn/cache/domelementtype-npm-2.2.0-c37b3b15bf-24cb386198.zip and /dev/null differ diff --git a/.yarn/cache/domelementtype-npm-2.3.0-02de7cbfba-ee837a318f.zip b/.yarn/cache/domelementtype-npm-2.3.0-02de7cbfba-ee837a318f.zip new file mode 100644 index 000000000000..cab8bb79ac3f Binary files /dev/null and b/.yarn/cache/domelementtype-npm-2.3.0-02de7cbfba-ee837a318f.zip differ diff --git a/.yarn/cache/domhandler-npm-5.0.3-3ede73dc10-0f58f4a6af.zip b/.yarn/cache/domhandler-npm-5.0.3-3ede73dc10-0f58f4a6af.zip new file mode 100644 index 000000000000..fd6d19e9e170 Binary files /dev/null and b/.yarn/cache/domhandler-npm-5.0.3-3ede73dc10-0f58f4a6af.zip differ diff --git a/.yarn/cache/domutils-npm-3.0.1-7937818218-23aa7a8405.zip b/.yarn/cache/domutils-npm-3.0.1-7937818218-23aa7a8405.zip new file mode 100644 index 000000000000..9c750d6fef16 Binary files /dev/null and b/.yarn/cache/domutils-npm-3.0.1-7937818218-23aa7a8405.zip differ diff --git a/.yarn/cache/electron-to-chromium-npm-1.4.139-14dd94bd5d-b0156f56db.zip b/.yarn/cache/electron-to-chromium-npm-1.4.139-14dd94bd5d-b0156f56db.zip deleted file mode 100644 index 8b896c9d8d6e..000000000000 Binary files a/.yarn/cache/electron-to-chromium-npm-1.4.139-14dd94bd5d-b0156f56db.zip and /dev/null differ diff --git a/.yarn/cache/electron-to-chromium-npm-1.4.348-e0e0cb2814-662491cd39.zip b/.yarn/cache/electron-to-chromium-npm-1.4.348-e0e0cb2814-662491cd39.zip new file mode 100644 index 000000000000..387f4737c613 Binary files /dev/null and b/.yarn/cache/electron-to-chromium-npm-1.4.348-e0e0cb2814-662491cd39.zip differ diff --git a/.yarn/cache/entities-npm-4.4.0-97635dc5cc-84d250329f.zip b/.yarn/cache/entities-npm-4.4.0-97635dc5cc-84d250329f.zip new file mode 100644 index 000000000000..4509c223f671 Binary files /dev/null and b/.yarn/cache/entities-npm-4.4.0-97635dc5cc-84d250329f.zip differ diff --git a/.yarn/cache/lilconfig-npm-2.1.0-a179261924-8549bb352b.zip b/.yarn/cache/lilconfig-npm-2.1.0-a179261924-8549bb352b.zip new file mode 100644 index 000000000000..44e3230ea2f7 Binary files /dev/null and b/.yarn/cache/lilconfig-npm-2.1.0-a179261924-8549bb352b.zip differ diff --git a/.yarn/cache/mdn-data-npm-2.0.28-9e644d5992-f51d587a6e.zip b/.yarn/cache/mdn-data-npm-2.0.28-9e644d5992-f51d587a6e.zip new file mode 100644 index 000000000000..b7767a4d4b5e Binary files /dev/null and b/.yarn/cache/mdn-data-npm-2.0.28-9e644d5992-f51d587a6e.zip differ diff --git a/.yarn/cache/mdn-data-npm-2.0.30-bf7b39c09a-d6ac5ac743.zip b/.yarn/cache/mdn-data-npm-2.0.30-bf7b39c09a-d6ac5ac743.zip new file mode 100644 index 000000000000..1aee2b57759b Binary files /dev/null and b/.yarn/cache/mdn-data-npm-2.0.30-bf7b39c09a-d6ac5ac743.zip differ diff --git a/.yarn/cache/node-releases-npm-2.0.10-f8e2d9a776-d784ecde25.zip b/.yarn/cache/node-releases-npm-2.0.10-f8e2d9a776-d784ecde25.zip new file mode 100644 index 000000000000..aee6cc366c2d Binary files /dev/null and b/.yarn/cache/node-releases-npm-2.0.10-f8e2d9a776-d784ecde25.zip differ diff --git a/.yarn/cache/node-releases-npm-2.0.5-ddba717991-e85d949add.zip b/.yarn/cache/node-releases-npm-2.0.5-ddba717991-e85d949add.zip deleted file mode 100644 index 82aaf5227123..000000000000 Binary files a/.yarn/cache/node-releases-npm-2.0.5-ddba717991-e85d949add.zip and /dev/null differ diff --git a/.yarn/cache/nth-check-npm-2.0.1-69558042d2-5386d035c4.zip b/.yarn/cache/nth-check-npm-2.0.1-69558042d2-5386d035c4.zip deleted file mode 100644 index 255274887378..000000000000 Binary files a/.yarn/cache/nth-check-npm-2.0.1-69558042d2-5386d035c4.zip and /dev/null differ diff --git a/.yarn/cache/nth-check-npm-2.1.1-f97afc8169-5afc3dafcd.zip b/.yarn/cache/nth-check-npm-2.1.1-f97afc8169-5afc3dafcd.zip new file mode 100644 index 000000000000..dc825e50b87f Binary files /dev/null and b/.yarn/cache/nth-check-npm-2.1.1-f97afc8169-5afc3dafcd.zip differ diff --git a/.yarn/cache/postcss-colormin-npm-6.0.0-b857a4556b-f7113758df.zip b/.yarn/cache/postcss-colormin-npm-6.0.0-b857a4556b-f7113758df.zip new file mode 100644 index 000000000000..14029465626a Binary files /dev/null and b/.yarn/cache/postcss-colormin-npm-6.0.0-b857a4556b-f7113758df.zip differ diff --git a/.yarn/cache/postcss-convert-values-npm-6.0.0-70092d4179-511ca93581.zip b/.yarn/cache/postcss-convert-values-npm-6.0.0-70092d4179-511ca93581.zip new file mode 100644 index 000000000000..3cff267b2bd8 Binary files /dev/null and b/.yarn/cache/postcss-convert-values-npm-6.0.0-70092d4179-511ca93581.zip differ diff --git a/.yarn/cache/postcss-discard-comments-npm-6.0.0-ac728161e4-9be073707b.zip b/.yarn/cache/postcss-discard-comments-npm-6.0.0-ac728161e4-9be073707b.zip new file mode 100644 index 000000000000..2cd92f37721e Binary files /dev/null and b/.yarn/cache/postcss-discard-comments-npm-6.0.0-ac728161e4-9be073707b.zip differ diff --git a/.yarn/cache/postcss-discard-duplicates-npm-6.0.0-ea71761f90-999dfc652a.zip b/.yarn/cache/postcss-discard-duplicates-npm-6.0.0-ea71761f90-999dfc652a.zip new file mode 100644 index 000000000000..a731119084bf Binary files /dev/null and b/.yarn/cache/postcss-discard-duplicates-npm-6.0.0-ea71761f90-999dfc652a.zip differ diff --git a/.yarn/cache/postcss-discard-empty-npm-6.0.0-5142133c52-0d6cc60471.zip b/.yarn/cache/postcss-discard-empty-npm-6.0.0-5142133c52-0d6cc60471.zip new file mode 100644 index 000000000000..5a94d48b925e Binary files /dev/null and b/.yarn/cache/postcss-discard-empty-npm-6.0.0-5142133c52-0d6cc60471.zip differ diff --git a/.yarn/cache/postcss-discard-overridden-npm-6.0.0-460871271c-f2d244bb57.zip b/.yarn/cache/postcss-discard-overridden-npm-6.0.0-460871271c-f2d244bb57.zip new file mode 100644 index 000000000000..10956b96792d Binary files /dev/null and b/.yarn/cache/postcss-discard-overridden-npm-6.0.0-460871271c-f2d244bb57.zip differ diff --git a/.yarn/cache/postcss-merge-longhand-npm-6.0.0-b810e8f284-86d1eda1b8.zip b/.yarn/cache/postcss-merge-longhand-npm-6.0.0-b810e8f284-86d1eda1b8.zip new file mode 100644 index 000000000000..c30f2186d285 Binary files /dev/null and b/.yarn/cache/postcss-merge-longhand-npm-6.0.0-b810e8f284-86d1eda1b8.zip differ diff --git a/.yarn/cache/postcss-merge-rules-npm-6.0.0-0dd22d8786-8e7ed43c9f.zip b/.yarn/cache/postcss-merge-rules-npm-6.0.0-0dd22d8786-8e7ed43c9f.zip new file mode 100644 index 000000000000..8bcb9f879bfe Binary files /dev/null and b/.yarn/cache/postcss-merge-rules-npm-6.0.0-0dd22d8786-8e7ed43c9f.zip differ diff --git a/.yarn/cache/postcss-minify-font-values-npm-6.0.0-aa5bb21f6f-60de1e405a.zip b/.yarn/cache/postcss-minify-font-values-npm-6.0.0-aa5bb21f6f-60de1e405a.zip new file mode 100644 index 000000000000..1bfe664b0d77 Binary files /dev/null and b/.yarn/cache/postcss-minify-font-values-npm-6.0.0-aa5bb21f6f-60de1e405a.zip differ diff --git a/.yarn/cache/postcss-minify-gradients-npm-6.0.0-5652777e60-f2399211f7.zip b/.yarn/cache/postcss-minify-gradients-npm-6.0.0-5652777e60-f2399211f7.zip new file mode 100644 index 000000000000..e855d4c2cb2e Binary files /dev/null and b/.yarn/cache/postcss-minify-gradients-npm-6.0.0-5652777e60-f2399211f7.zip differ diff --git a/.yarn/cache/postcss-minify-params-npm-6.0.0-ee0bb9bac1-1cd9e372cf.zip b/.yarn/cache/postcss-minify-params-npm-6.0.0-ee0bb9bac1-1cd9e372cf.zip new file mode 100644 index 000000000000..46d898c516f6 Binary files /dev/null and b/.yarn/cache/postcss-minify-params-npm-6.0.0-ee0bb9bac1-1cd9e372cf.zip differ diff --git a/.yarn/cache/postcss-minify-selectors-npm-6.0.0-b477eb9e76-13ce0a1055.zip b/.yarn/cache/postcss-minify-selectors-npm-6.0.0-b477eb9e76-13ce0a1055.zip new file mode 100644 index 000000000000..e8b6cf61d7cf Binary files /dev/null and b/.yarn/cache/postcss-minify-selectors-npm-6.0.0-b477eb9e76-13ce0a1055.zip differ diff --git a/.yarn/cache/postcss-normalize-charset-npm-6.0.0-c7634cef31-186a94083f.zip b/.yarn/cache/postcss-normalize-charset-npm-6.0.0-c7634cef31-186a94083f.zip new file mode 100644 index 000000000000..f09a22fd410b Binary files /dev/null and b/.yarn/cache/postcss-normalize-charset-npm-6.0.0-c7634cef31-186a94083f.zip differ diff --git a/.yarn/cache/postcss-normalize-display-values-npm-6.0.0-05f480e36e-4f8da7cf81.zip b/.yarn/cache/postcss-normalize-display-values-npm-6.0.0-05f480e36e-4f8da7cf81.zip new file mode 100644 index 000000000000..ec79d05b81fa Binary files /dev/null and b/.yarn/cache/postcss-normalize-display-values-npm-6.0.0-05f480e36e-4f8da7cf81.zip differ diff --git a/.yarn/cache/postcss-normalize-positions-npm-6.0.0-41d8e545a7-34dedb07f9.zip b/.yarn/cache/postcss-normalize-positions-npm-6.0.0-41d8e545a7-34dedb07f9.zip new file mode 100644 index 000000000000..03f2b1664e62 Binary files /dev/null and b/.yarn/cache/postcss-normalize-positions-npm-6.0.0-41d8e545a7-34dedb07f9.zip differ diff --git a/.yarn/cache/postcss-normalize-repeat-style-npm-6.0.0-a33f89383d-a53b994bb6.zip b/.yarn/cache/postcss-normalize-repeat-style-npm-6.0.0-a33f89383d-a53b994bb6.zip new file mode 100644 index 000000000000..9246f3b602b5 Binary files /dev/null and b/.yarn/cache/postcss-normalize-repeat-style-npm-6.0.0-a33f89383d-a53b994bb6.zip differ diff --git a/.yarn/cache/postcss-normalize-string-npm-6.0.0-da6d702bab-3d55f31ec0.zip b/.yarn/cache/postcss-normalize-string-npm-6.0.0-da6d702bab-3d55f31ec0.zip new file mode 100644 index 000000000000..f9ff945c713a Binary files /dev/null and b/.yarn/cache/postcss-normalize-string-npm-6.0.0-da6d702bab-3d55f31ec0.zip differ diff --git a/.yarn/cache/postcss-normalize-timing-functions-npm-6.0.0-4e94cabf50-67021374f8.zip b/.yarn/cache/postcss-normalize-timing-functions-npm-6.0.0-4e94cabf50-67021374f8.zip new file mode 100644 index 000000000000..64bd60dfce31 Binary files /dev/null and b/.yarn/cache/postcss-normalize-timing-functions-npm-6.0.0-4e94cabf50-67021374f8.zip differ diff --git a/.yarn/cache/postcss-normalize-unicode-npm-6.0.0-9a17b83395-0f246bf551.zip b/.yarn/cache/postcss-normalize-unicode-npm-6.0.0-9a17b83395-0f246bf551.zip new file mode 100644 index 000000000000..39e07f033466 Binary files /dev/null and b/.yarn/cache/postcss-normalize-unicode-npm-6.0.0-9a17b83395-0f246bf551.zip differ diff --git a/.yarn/cache/postcss-normalize-url-npm-6.0.0-63fff2c212-93160c02e5.zip b/.yarn/cache/postcss-normalize-url-npm-6.0.0-63fff2c212-93160c02e5.zip new file mode 100644 index 000000000000..c2e1e425a81d Binary files /dev/null and b/.yarn/cache/postcss-normalize-url-npm-6.0.0-63fff2c212-93160c02e5.zip differ diff --git a/.yarn/cache/postcss-normalize-whitespace-npm-6.0.0-dcc48a280d-77940955fb.zip b/.yarn/cache/postcss-normalize-whitespace-npm-6.0.0-dcc48a280d-77940955fb.zip new file mode 100644 index 000000000000..c56717a6f98f Binary files /dev/null and b/.yarn/cache/postcss-normalize-whitespace-npm-6.0.0-dcc48a280d-77940955fb.zip differ diff --git a/.yarn/cache/postcss-ordered-values-npm-6.0.0-d93fb7fe2a-162d60e9fd.zip b/.yarn/cache/postcss-ordered-values-npm-6.0.0-d93fb7fe2a-162d60e9fd.zip new file mode 100644 index 000000000000..aa244c9b87c5 Binary files /dev/null and b/.yarn/cache/postcss-ordered-values-npm-6.0.0-d93fb7fe2a-162d60e9fd.zip differ diff --git a/.yarn/cache/postcss-reduce-initial-npm-6.0.0-1e827757ee-988001da75.zip b/.yarn/cache/postcss-reduce-initial-npm-6.0.0-1e827757ee-988001da75.zip new file mode 100644 index 000000000000..fac9ca8c9e7b Binary files /dev/null and b/.yarn/cache/postcss-reduce-initial-npm-6.0.0-1e827757ee-988001da75.zip differ diff --git a/.yarn/cache/postcss-reduce-transforms-npm-6.0.0-50b61ca0b4-17c27b1858.zip b/.yarn/cache/postcss-reduce-transforms-npm-6.0.0-50b61ca0b4-17c27b1858.zip new file mode 100644 index 000000000000..de0ccc0b10af Binary files /dev/null and b/.yarn/cache/postcss-reduce-transforms-npm-6.0.0-50b61ca0b4-17c27b1858.zip differ diff --git a/.yarn/cache/postcss-svgo-npm-6.0.0-b0e8755bb0-14c68b7c27.zip b/.yarn/cache/postcss-svgo-npm-6.0.0-b0e8755bb0-14c68b7c27.zip new file mode 100644 index 000000000000..600d79abad70 Binary files /dev/null and b/.yarn/cache/postcss-svgo-npm-6.0.0-b0e8755bb0-14c68b7c27.zip differ diff --git a/.yarn/cache/postcss-unique-selectors-npm-6.0.0-cb2a8020fd-5fbfeaf796.zip b/.yarn/cache/postcss-unique-selectors-npm-6.0.0-cb2a8020fd-5fbfeaf796.zip new file mode 100644 index 000000000000..c647a9e79da4 Binary files /dev/null and b/.yarn/cache/postcss-unique-selectors-npm-6.0.0-cb2a8020fd-5fbfeaf796.zip differ diff --git a/.yarn/cache/stylehacks-npm-6.0.0-193a571eeb-b6071ab5f4.zip b/.yarn/cache/stylehacks-npm-6.0.0-193a571eeb-b6071ab5f4.zip new file mode 100644 index 000000000000..e13445f4f0a1 Binary files /dev/null and b/.yarn/cache/stylehacks-npm-6.0.0-193a571eeb-b6071ab5f4.zip differ diff --git a/.yarn/cache/svgo-npm-3.0.2-c4a041dc0f-381ba14aa7.zip b/.yarn/cache/svgo-npm-3.0.2-c4a041dc0f-381ba14aa7.zip new file mode 100644 index 000000000000..067368519377 Binary files /dev/null and b/.yarn/cache/svgo-npm-3.0.2-c4a041dc0f-381ba14aa7.zip differ diff --git a/.yarn/cache/update-browserslist-db-npm-1.0.10-676baf0b9f-12db73b4f6.zip b/.yarn/cache/update-browserslist-db-npm-1.0.10-676baf0b9f-12db73b4f6.zip new file mode 100644 index 000000000000..b964a1a691a9 Binary files /dev/null and b/.yarn/cache/update-browserslist-db-npm-1.0.10-676baf0b9f-12db73b4f6.zip differ diff --git a/packages/react/src/components/ComboBox/ComboBox.tsx b/packages/react/src/components/ComboBox/ComboBox.tsx index 8a23c2b481a6..c0148726da69 100644 --- a/packages/react/src/components/ComboBox/ComboBox.tsx +++ b/packages/react/src/components/ComboBox/ComboBox.tsx @@ -561,6 +561,11 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => { {...readOnlyEventHandlers} readOnly={readOnly} ref={mergeRefs(textInput, ref)} + aria-describedby={ + helperText && !invalid && !warn && !isFluid + ? comboBoxHelperId + : undefined + } /> {invalid && ( { + setTimeout(() => { + if ( + lastStartValue.current && + selectedDates[0] && + !startInputField.current.value + ) { + startInputField.current.value = lastStartValue.current; + calendarRef.current.setDate( + [startInputField.current.value, endInputField.current.value], + true, + calendarRef.current.config.dateFormat + ); + } + if (onClose) { + onClose( + calendarRef.current.selectedDates, + dateStr, + calendarRef.current + ); + } + }); + }; + const calendarRef = useRef(null); const savedOnChange = useSavedCallback(onChange); - const savedOnClose = useSavedCallback(onClose); + const savedOnClose = useSavedCallback( + datePickerType === 'range' ? onCalendarClose : onClose + ); const savedOnOpen = useSavedCallback(onOpen); const datePickerClasses = cx(`${prefix}--date-picker`, { @@ -350,6 +380,7 @@ const DatePicker = React.forwardRef(function DatePicker( carbonFlatpickrFixEventsPlugin({ inputFrom: startInputField.current, inputTo: endInputField.current, + lastStartValue, }), ], clickOpens: !readOnly, @@ -398,11 +429,16 @@ const DatePicker = React.forwardRef(function DatePicker( } } - function handleOnChange() { + function handleOnChange(event) { if (datePickerType == 'single') { calendar.calendarContainer.classList.remove('open'); } + const { target } = event; + if (target === start) { + lastStartValue.current = start.value; + } + if (start.value !== '') { return; } diff --git a/packages/react/src/components/DatePicker/DatePicker.stories.js b/packages/react/src/components/DatePicker/DatePicker.stories.js index db61183fc22d..a941277347be 100644 --- a/packages/react/src/components/DatePicker/DatePicker.stories.js +++ b/packages/react/src/components/DatePicker/DatePicker.stories.js @@ -248,4 +248,10 @@ Playground.argTypes = { category: 'DatePickerInput', }, }, + helperText: { + control: { type: 'text' }, + table: { + category: 'DatePickerInput', + }, + }, }; diff --git a/packages/react/src/components/DatePicker/plugins/fixEventsPlugin.js b/packages/react/src/components/DatePicker/plugins/fixEventsPlugin.js index a8363e08a236..65b5075f2c3b 100644 --- a/packages/react/src/components/DatePicker/plugins/fixEventsPlugin.js +++ b/packages/react/src/components/DatePicker/plugins/fixEventsPlugin.js @@ -51,7 +51,7 @@ export default (config) => (fp) => { * set the date again, triggering the calendar to update. */ const handleBlur = (event) => { - const { inputFrom, inputTo } = config; + const { inputFrom, inputTo, lastStartValue } = config; const { target } = event; // Only fall into this logic if the event is on the `to` input and there is a @@ -91,6 +91,22 @@ export default (config) => (fp) => { ); } } + + // overriding the flatpickr bug where the startDate gets deleted on blur + if (inputTo === target && !inputFrom.value && lastStartValue.current) { + let currentStartDate = new Date(lastStartValue.current); + + if (currentStartDate.toString() !== 'Invalid Date') { + inputFrom.value = lastStartValue.current; + if (inputTo.value) { + fp.setDate( + [inputFrom.value, inputTo.value], + true, + fp.config.dateFormat + ); + } + } + } }; /** diff --git a/packages/react/src/components/DatePickerInput/DatePickerInput.js b/packages/react/src/components/DatePickerInput/DatePickerInput.js index 05ee0984e583..ad2cd3c45595 100644 --- a/packages/react/src/components/DatePickerInput/DatePickerInput.js +++ b/packages/react/src/components/DatePickerInput/DatePickerInput.js @@ -11,6 +11,9 @@ import PropTypes from 'prop-types'; import React, { useContext } from 'react'; import { usePrefix } from '../../internal/usePrefix'; import { FormContext } from '../FluidForm'; +import setupGetInstanceId from '../../tools/setupGetInstanceId'; + +const getInstanceId = setupGetInstanceId(); const DatePickerInput = React.forwardRef(function DatePickerInput(props, ref) { const { @@ -34,6 +37,7 @@ const DatePickerInput = React.forwardRef(function DatePickerInput(props, ref) { } = props; const prefix = usePrefix(); const { isFluid } = useContext(FormContext); + const datePickerInputInstanceId = getInstanceId(); const datePickerInputProps = { id, onChange: (event) => { @@ -73,12 +77,17 @@ const DatePickerInput = React.forwardRef(function DatePickerInput(props, ref) { [`${prefix}--date-picker--fluid--warn`]: isFluid && warn, }); + const datePickerInputHelperId = !helperText + ? undefined + : `detepicker-input-helper-text-${datePickerInputInstanceId}`; + const inputProps = { ...rest, ...datePickerInputProps, className: inputClasses, disabled, ref, + ['aria-describedby']: helperText ? datePickerInputHelperId : undefined, }; if (invalid) { inputProps['data-invalid'] = true; @@ -113,7 +122,11 @@ const DatePickerInput = React.forwardRef(function DatePickerInput(props, ref) {
{warnText}
)} - {helperText &&
{helperText}
} + {helperText && ( +
+ {helperText} +
+ )} ); }); diff --git a/packages/react/src/components/Dropdown/Dropdown.tsx b/packages/react/src/components/Dropdown/Dropdown.tsx index 9f017dd92583..c79e89844438 100644 --- a/packages/react/src/components/Dropdown/Dropdown.tsx +++ b/packages/react/src/components/Dropdown/Dropdown.tsx @@ -33,6 +33,9 @@ import { useFeatureFlag } from '../FeatureFlags'; import { usePrefix } from '../../internal/usePrefix'; import { FormContext } from '../FluidForm'; import { ReactAttr } from '../../types/common'; +import setupGetInstanceId from '../../tools/setupGetInstanceId'; + +const getInstanceId = setupGetInstanceId(); const defaultItemToString = (item?: ItemType): string => { if (typeof item === 'string') { @@ -248,6 +251,7 @@ const Dropdown = React.forwardRef( initialSelectedItem, onSelectedItemChange, }; + const { current: dropdownInstanceId } = useRef(getInstanceId()); // only set selectedItem if the prop is defined. Setting if it is undefined // will overwrite default selected items from useSelect @@ -311,12 +315,18 @@ const Dropdown = React.forwardRef( } ); + const helperId = !helperText + ? undefined + : `dropdown-helper-text-${dropdownInstanceId}`; + // needs to be Capitalized for react to render it correctly const ItemToElement = itemToElement; const toggleButtonProps = getToggleButtonProps(); const helper = helperText && !isFluid ? ( -
{helperText}
+
+ {helperText} +
) : null; function onSelectedItemChange({ @@ -392,6 +402,9 @@ const Dropdown = React.forwardRef( className={`${prefix}--list-box__field`} disabled={disabled} aria-disabled={readOnly ? true : undefined} // aria-disabled to remain focusable + aria-describedby={ + !inline && !invalid && !warn && helper ? helperId : undefined + } title={ selectedItem && itemToString !== undefined ? itemToString(selectedItem) diff --git a/packages/react/src/components/MultiSelect/MultiSelect.tsx b/packages/react/src/components/MultiSelect/MultiSelect.tsx index 98803074f6ce..bf009c007fd3 100644 --- a/packages/react/src/components/MultiSelect/MultiSelect.tsx +++ b/packages/react/src/components/MultiSelect/MultiSelect.tsx @@ -565,6 +565,9 @@ const MultiSelect = React.forwardRef(function MultiSelect( className={`${prefix}--list-box__field`} disabled={disabled} aria-disabled={disabled || readOnly} + aria-describedby={ + !inline && !invalid && !warn && helperText ? helperId : undefined + } {...toggleButtonProps} ref={mergedRef} onKeyDown={onKeyDown} diff --git a/packages/react/src/components/NumberInput/NumberInput.tsx b/packages/react/src/components/NumberInput/NumberInput.tsx index 23979a888a4c..e1465b5d5eeb 100644 --- a/packages/react/src/components/NumberInput/NumberInput.tsx +++ b/packages/react/src/components/NumberInput/NumberInput.tsx @@ -292,6 +292,9 @@ const NumberInput = React.forwardRef(function NumberInput( if (normalizedProps.warn) { ariaDescribedBy = normalizedProps.warnId; } + if (!normalizedProps.validation) { + ariaDescribedBy = helperText ? normalizedProps.helperId : undefined; + } function handleOnChange(event) { if (disabled) { @@ -441,7 +444,11 @@ const NumberInput = React.forwardRef(function NumberInput( {normalizedProps.validation ? ( normalizedProps.validation ) : ( - + )} @@ -619,17 +626,22 @@ Label.propTypes = { }; interface HelperTextProps { + id?: string; description?: ReactNode; disabled?: boolean; } -function HelperText({ disabled, description }: HelperTextProps) { +function HelperText({ disabled, description, id }: HelperTextProps) { const prefix = usePrefix(); const className = cx(`${prefix}--form__helper-text`, { [`${prefix}--form__helper-text--disabled`]: disabled, }); if (description) { - return
{description}
; + return ( +
+ {description} +
+ ); } return null; } @@ -637,6 +649,7 @@ function HelperText({ disabled, description }: HelperTextProps) { HelperText.propTypes = { description: PropTypes.node, disabled: PropTypes.bool, + id: PropTypes.string, }; /** diff --git a/packages/react/src/components/ProgressBar/ProgressBar.js b/packages/react/src/components/ProgressBar/ProgressBar.js index 27d3fa72aa35..b77f7edbc589 100644 --- a/packages/react/src/components/ProgressBar/ProgressBar.js +++ b/packages/react/src/components/ProgressBar/ProgressBar.js @@ -26,6 +26,7 @@ function ProgressBar({ }) { const labelId = useId('progress-bar'); const helperId = useId('progress-bar-helper'); + const helperTextId = useId('progress-bar-helper-text'); const prefix = usePrefix(); const isFinished = status === 'finished'; @@ -101,13 +102,16 @@ function ProgressBar({ aria-busy={!isFinished} aria-invalid={isError} aria-labelledby={labelId} + aria-describedby={helperText ? helperTextId : undefined} aria-valuemin={!indeterminate ? 0 : null} aria-valuemax={!indeterminate ? max : null} aria-valuenow={!indeterminate ? cappedValue : null}>
{helperText && ( -
+
{helperText}
{legendText && ( {legendText} diff --git a/packages/react/src/components/Select/Select.tsx b/packages/react/src/components/Select/Select.tsx index 2368506f653a..0783110400ab 100644 --- a/packages/react/src/components/Select/Select.tsx +++ b/packages/react/src/components/Select/Select.tsx @@ -12,6 +12,7 @@ import React, { ForwardedRef, ReactNode, useContext, + useRef, useState, } from 'react'; import classNames from 'classnames'; @@ -24,6 +25,9 @@ import deprecate from '../../prop-types/deprecate'; import { useFeatureFlag } from '../FeatureFlags'; import { usePrefix } from '../../internal/usePrefix'; import { FormContext } from '../FluidForm'; +import setupGetInstanceId from '../../tools/setupGetInstanceId'; + +const getInstanceId = setupGetInstanceId(); type ExcludedAttributes = 'size'; @@ -153,6 +157,7 @@ const Select = React.forwardRef(function Select( const enabled = useFeatureFlag('enable-v11-release'); const { isFluid } = useContext(FormContext); const [isFocused, setIsFocused] = useState(false); + const { current: selectInstanceId } = useRef(getInstanceId()); const selectClasses = classNames( { @@ -194,12 +199,21 @@ const Select = React.forwardRef(function Select( const helperTextClasses = classNames(`${prefix}--form__helper-text`, { [`${prefix}--form__helper-text--disabled`]: disabled, }); + + const helperId = !helperText + ? undefined + : `select-helper-text-${selectInstanceId}`; + const helper = helperText ? ( -
{helperText}
+
+ {helperText} +
) : null; const ariaProps = {}; if (invalid) { ariaProps['aria-describedby'] = errorId; + } else if (!inline && !isFluid) { + ariaProps['aria-describedby'] = helper ? helperId : undefined; } const handleFocus = (evt) => { diff --git a/packages/react/src/components/TextArea/TextArea.tsx b/packages/react/src/components/TextArea/TextArea.tsx index 7bc31b021144..8aa02c76b1ce 100644 --- a/packages/react/src/components/TextArea/TextArea.tsx +++ b/packages/react/src/components/TextArea/TextArea.tsx @@ -16,6 +16,9 @@ import { FormContext } from '../FluidForm'; import { useAnnouncer } from '../../internal/useAnnouncer'; import useIsomorphicEffect from '../../internal/useIsomorphicEffect'; import { useMergedRefs } from '../../internal/useMergedRefs'; +import setupGetInstanceId from '../../tools/setupGetInstanceId'; + +const getInstanceId = setupGetInstanceId(); export interface TextAreaProps extends React.InputHTMLAttributes { @@ -157,6 +160,7 @@ const TextArea = React.forwardRef((props: TextAreaProps, forwardRef) => { const [textCount, setTextCount] = useState( defaultValue?.toString().length || value?.toString().length || 0 ); + const { current: textAreaInstanceId } = useRef(getInstanceId()); const textareaProps: { id: TextAreaProps['id']; @@ -207,8 +211,14 @@ const TextArea = React.forwardRef((props: TextAreaProps, forwardRef) => { [`${prefix}--form__helper-text--disabled`]: other.disabled, }); + const helperId = !helperText + ? undefined + : `text-area-helper-text-${textAreaInstanceId}`; + const helper = helperText ? ( -
{helperText}
+
+ {helperText} +
) : null; const errorId = id + '-error-msg'; @@ -257,6 +267,14 @@ const TextArea = React.forwardRef((props: TextAreaProps, forwardRef) => { } }, [other.cols]); + let ariaDescribedBy; + + if (invalid) { + ariaDescribedBy = errorId; + } else if (!invalid && !warn && !isFluid && helperText) { + ariaDescribedBy = helperId; + } + const input = (