diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c5f11716e6eb..9ee71afa47d7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,13 +6,16 @@ on: pull_request: branches: - main +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: dedupe: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Use Node.js 16.x - uses: actions/setup-node@v2.5.1 + uses: actions/setup-node@v3 with: node-version: '16.x' - name: Run yarn dedupe @@ -23,7 +26,7 @@ jobs: steps: - uses: actions/checkout@v2 - name: Use Node.js 16.x - uses: actions/setup-node@v2.5.1 + uses: actions/setup-node@v3 with: node-version: '16.x' - name: Install dependencies @@ -36,7 +39,7 @@ jobs: steps: - uses: actions/checkout@v2 - name: Use Node.js 16.x - uses: actions/setup-node@v2.5.1 + uses: actions/setup-node@v3 with: node-version: '16.x' - name: Install dependencies @@ -51,7 +54,7 @@ jobs: steps: - uses: actions/checkout@v2 - name: Use Node.js 16.x - uses: actions/setup-node@v2.5.1 + uses: actions/setup-node@v3 with: node-version: '16.x' - uses: actions/cache@v2.1.7 @@ -77,7 +80,7 @@ jobs: steps: - uses: actions/checkout@v2 - name: Use Node.js 16.x - uses: actions/setup-node@v2.5.1 + uses: actions/setup-node@v3 with: node-version: '16.x' - uses: actions/cache@v2.1.7 @@ -113,7 +116,7 @@ jobs: steps: - uses: actions/checkout@v2 - name: Use Node.js 16.x - uses: actions/setup-node@v2.5.1 + uses: actions/setup-node@v3 with: node-version: '16.x' - uses: actions/cache@v2.1.7 diff --git a/.github/workflows/deploy-react-storybook.yml b/.github/workflows/deploy-react-storybook.yml index 76ad5f39672f..a64c2d31b66f 100644 --- a/.github/workflows/deploy-react-storybook.yml +++ b/.github/workflows/deploy-react-storybook.yml @@ -18,7 +18,7 @@ jobs: steps: - uses: actions/checkout@main - name: Use Node.js 16.x - uses: actions/setup-node@v2.5.1 + uses: actions/setup-node@v3 with: node-version: '16.x' - name: Install dependencies diff --git a/.github/workflows/deploy-vanilla-devenv.yml b/.github/workflows/deploy-vanilla-devenv.yml index 9fb160cc3ce2..4d165214d445 100644 --- a/.github/workflows/deploy-vanilla-devenv.yml +++ b/.github/workflows/deploy-vanilla-devenv.yml @@ -17,7 +17,7 @@ jobs: steps: - uses: actions/checkout@main - name: Use Node.js 16.x - uses: actions/setup-node@v2.5.1 + uses: actions/setup-node@v3 with: node-version: '16.x' - name: Install dependencies diff --git a/.github/workflows/nightly-release.yml b/.github/workflows/nightly-release.yml index 31d07918030d..701d569358aa 100644 --- a/.github/workflows/nightly-release.yml +++ b/.github/workflows/nightly-release.yml @@ -11,7 +11,7 @@ jobs: steps: - uses: actions/checkout@main - name: Use Node.js 16.x - uses: actions/setup-node@v2.5.1 + uses: actions/setup-node@v3 with: node-version: '16.x' - name: Install dependencies diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d6c13bb70db3..b189be7f9067 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,7 +15,7 @@ jobs: - uses: actions/checkout@v2 - name: Use Node.js 16.x - uses: actions/setup-node@v2.5.1 + uses: actions/setup-node@v3 with: node-version: '16.x' registry-url: 'https://registry.npmjs.org' diff --git a/.github/workflows/sync-generated-files.yml b/.github/workflows/sync-generated-files.yml index f6ec3595e652..0d5f8e2e28f1 100644 --- a/.github/workflows/sync-generated-files.yml +++ b/.github/workflows/sync-generated-files.yml @@ -9,7 +9,7 @@ jobs: steps: - uses: actions/checkout@v2 - name: Use Node.js 16.x - uses: actions/setup-node@v2.5.1 + uses: actions/setup-node@v3 with: node-version: '16.x' - name: Install dependencies diff --git a/.yarn/cache/@es-joy-jsdoccomment-npm-0.10.2-99ab396701-5790d13b74.zip b/.yarn/cache/@es-joy-jsdoccomment-npm-0.10.2-99ab396701-5790d13b74.zip deleted file mode 100644 index 28c11adab769..000000000000 Binary files a/.yarn/cache/@es-joy-jsdoccomment-npm-0.10.2-99ab396701-5790d13b74.zip and /dev/null differ diff --git a/.yarn/cache/@es-joy-jsdoccomment-npm-0.20.1-0616326f46-b64afeaddc.zip b/.yarn/cache/@es-joy-jsdoccomment-npm-0.20.1-0616326f46-b64afeaddc.zip new file mode 100644 index 000000000000..3abd135392ad Binary files /dev/null and b/.yarn/cache/@es-joy-jsdoccomment-npm-0.20.1-0616326f46-b64afeaddc.zip differ diff --git a/.yarn/cache/comment-parser-npm-1.2.1-2743575765-3057a7304c.zip b/.yarn/cache/comment-parser-npm-1.3.0-f53b44186d-e7b41b8a5f.zip similarity index 54% rename from .yarn/cache/comment-parser-npm-1.2.1-2743575765-3057a7304c.zip rename to .yarn/cache/comment-parser-npm-1.3.0-f53b44186d-e7b41b8a5f.zip index 3c7abf77ad16..0c8daafd2113 100644 Binary files a/.yarn/cache/comment-parser-npm-1.2.1-2743575765-3057a7304c.zip and b/.yarn/cache/comment-parser-npm-1.3.0-f53b44186d-e7b41b8a5f.zip differ diff --git a/.yarn/cache/eslint-plugin-jsdoc-npm-36.0.3-6a37308396-f15e1d2e1e.zip b/.yarn/cache/eslint-plugin-jsdoc-npm-36.0.3-6a37308396-f15e1d2e1e.zip deleted file mode 100644 index c65d44f747a7..000000000000 Binary files a/.yarn/cache/eslint-plugin-jsdoc-npm-36.0.3-6a37308396-f15e1d2e1e.zip and /dev/null differ diff --git a/.yarn/cache/eslint-plugin-jsdoc-npm-37.9.4-c40620cafc-1e338f0302.zip b/.yarn/cache/eslint-plugin-jsdoc-npm-37.9.4-c40620cafc-1e338f0302.zip new file mode 100644 index 000000000000..2a2ae7a39539 Binary files /dev/null and b/.yarn/cache/eslint-plugin-jsdoc-npm-37.9.4-c40620cafc-1e338f0302.zip differ diff --git a/.yarn/cache/fs-access-npm-1.0.1-6e1bcfb968-6792b115a5.zip b/.yarn/cache/fs-access-npm-1.0.1-6e1bcfb968-6792b115a5.zip deleted file mode 100644 index a9e2ffeba137..000000000000 Binary files a/.yarn/cache/fs-access-npm-1.0.1-6e1bcfb968-6792b115a5.zip and /dev/null differ diff --git a/.yarn/cache/jsdoc-type-pratt-parser-npm-1.0.4-d9563f414a-f80df71fc5.zip b/.yarn/cache/jsdoc-type-pratt-parser-npm-1.0.4-d9563f414a-f80df71fc5.zip deleted file mode 100644 index 73b8002c3ffc..000000000000 Binary files a/.yarn/cache/jsdoc-type-pratt-parser-npm-1.0.4-d9563f414a-f80df71fc5.zip and /dev/null differ diff --git a/.yarn/cache/jsdoc-type-pratt-parser-npm-1.0.8-6766196e7d-21f8c08918.zip b/.yarn/cache/jsdoc-type-pratt-parser-npm-1.0.8-6766196e7d-21f8c08918.zip deleted file mode 100644 index b085f241f0a3..000000000000 Binary files a/.yarn/cache/jsdoc-type-pratt-parser-npm-1.0.8-6766196e7d-21f8c08918.zip and /dev/null differ diff --git a/.yarn/cache/jsdoc-type-pratt-parser-npm-2.2.3-855681446d-202a6c1f88.zip b/.yarn/cache/jsdoc-type-pratt-parser-npm-2.2.3-855681446d-202a6c1f88.zip new file mode 100644 index 000000000000..ac860559dac8 Binary files /dev/null and b/.yarn/cache/jsdoc-type-pratt-parser-npm-2.2.3-855681446d-202a6c1f88.zip differ diff --git a/.yarn/cache/karma-chrome-launcher-npm-2.2.0-a56f6835c7-08f319ad51.zip b/.yarn/cache/karma-chrome-launcher-npm-2.2.0-a56f6835c7-08f319ad51.zip deleted file mode 100644 index e10ede4d18eb..000000000000 Binary files a/.yarn/cache/karma-chrome-launcher-npm-2.2.0-a56f6835c7-08f319ad51.zip and /dev/null differ diff --git a/.yarn/cache/karma-chrome-launcher-npm-3.1.0-999405afd7-63431ddec9.zip b/.yarn/cache/karma-chrome-launcher-npm-3.1.0-999405afd7-63431ddec9.zip new file mode 100644 index 000000000000..e752cbdad975 Binary files /dev/null and b/.yarn/cache/karma-chrome-launcher-npm-3.1.0-999405afd7-63431ddec9.zip differ diff --git a/.yarn/cache/lolex-npm-3.1.0-fa2f70ad73-7fa8d5b4c0.zip b/.yarn/cache/lolex-npm-3.1.0-fa2f70ad73-7fa8d5b4c0.zip deleted file mode 100644 index e4f56abe81a4..000000000000 Binary files a/.yarn/cache/lolex-npm-3.1.0-fa2f70ad73-7fa8d5b4c0.zip and /dev/null differ diff --git a/.yarn/cache/null-check-npm-1.0.0-ca9daf775a-6569fb2d74.zip b/.yarn/cache/null-check-npm-1.0.0-ca9daf775a-6569fb2d74.zip deleted file mode 100644 index 017f688793ce..000000000000 Binary files a/.yarn/cache/null-check-npm-1.0.0-ca9daf775a-6569fb2d74.zip and /dev/null differ diff --git a/config/eslint-config-carbon/package.json b/config/eslint-config-carbon/package.json index 5ff410539b43..f31a1b6c328a 100644 --- a/config/eslint-config-carbon/package.json +++ b/config/eslint-config-carbon/package.json @@ -39,7 +39,7 @@ "eslint-plugin-cypress": "^2.11.3", "eslint-plugin-import": "^2.23.4", "eslint-plugin-jest": "^26.0.0", - "eslint-plugin-jsdoc": "^36.0.3", + "eslint-plugin-jsdoc": "^37.0.0", "eslint-plugin-jsx-a11y": "^6.4.1", "eslint-plugin-prettier": "^3.4.0", "eslint-plugin-react": "^7.24.0", diff --git a/docs/migration/v11.md b/docs/migration/v11.md index 25ee9eb29d04..147cc139d5de 100644 --- a/docs/migration/v11.md +++ b/docs/migration/v11.md @@ -946,7 +946,7 @@ below. | `TimePicker` | Updated from a class to functional component | | `TimePickerSelect` | Updated from a class to functional component | | `ToastNotification` | View changes [here](#notifications) | -| `Toggle` | Updated from a class to functional component | +| `Toggle` | View changes [here](#toggle) | | `ToggleSkeleton` | Removed | | `ToggleSmall` | Removed | | `ToggleSmallSkeleton` | Removed | @@ -1056,6 +1056,26 @@ ToastNotification` updates: - The `closeOnEscape` prop toggles the closing of notifications via the `escape` key. +### Toggle + +The toggle component has been updated to improve its accessibility, rtl +compatibility and flexibility to layout. + +- The underlying element has been changed from a checkbox + (``) to a switch button (` - - -``` - -### Old markup - -```html -
- - -
-``` - -## Props - -| v7 | v11 | Note | -| :----------- | :---------- | :------------------------------------------------------------------------------------------- | -| `aria-label` | - | Removed. No longer required. If still passed, it will be emitted on the `