diff --git a/.yarn/cache/@esbuild-aix-ppc64-npm-0.24.0-0c54699704-abe90ecf17.zip b/.yarn/cache/@esbuild-aix-ppc64-npm-0.24.0-0c54699704-abe90ecf17.zip new file mode 100644 index 000000000000..829e99721c91 Binary files /dev/null and b/.yarn/cache/@esbuild-aix-ppc64-npm-0.24.0-0c54699704-abe90ecf17.zip differ diff --git a/.yarn/cache/@esbuild-darwin-arm64-npm-0.17.19-64d69299ed-10.zip b/.yarn/cache/@esbuild-darwin-arm64-npm-0.17.19-64d69299ed-10.zip new file mode 100644 index 000000000000..a8f1e57ef1c9 Binary files /dev/null and b/.yarn/cache/@esbuild-darwin-arm64-npm-0.17.19-64d69299ed-10.zip differ diff --git a/.yarn/cache/@esbuild-darwin-arm64-npm-0.18.20-00b3504077-10.zip b/.yarn/cache/@esbuild-darwin-arm64-npm-0.18.20-00b3504077-10.zip deleted file mode 100644 index fe099945524f..000000000000 Binary files a/.yarn/cache/@esbuild-darwin-arm64-npm-0.18.20-00b3504077-10.zip and /dev/null differ diff --git a/.yarn/cache/@esbuild-darwin-x64-npm-0.17.19-30afb0190b-10.zip b/.yarn/cache/@esbuild-darwin-x64-npm-0.17.19-30afb0190b-10.zip new file mode 100644 index 000000000000..888c7cacc49a Binary files /dev/null and b/.yarn/cache/@esbuild-darwin-x64-npm-0.17.19-30afb0190b-10.zip differ diff --git a/.yarn/cache/@esbuild-darwin-x64-npm-0.18.20-767fe27d1b-10.zip b/.yarn/cache/@esbuild-darwin-x64-npm-0.18.20-767fe27d1b-10.zip deleted file mode 100644 index e9c872798a76..000000000000 Binary files a/.yarn/cache/@esbuild-darwin-x64-npm-0.18.20-767fe27d1b-10.zip and /dev/null differ diff --git a/.yarn/cache/@esbuild-linux-arm64-npm-0.17.19-6f31af48bb-10.zip b/.yarn/cache/@esbuild-linux-arm64-npm-0.17.19-6f31af48bb-10.zip new file mode 100644 index 000000000000..f12994b9dd01 Binary files /dev/null and b/.yarn/cache/@esbuild-linux-arm64-npm-0.17.19-6f31af48bb-10.zip differ diff --git a/.yarn/cache/@esbuild-linux-arm64-npm-0.18.20-7b48b328fe-10.zip b/.yarn/cache/@esbuild-linux-arm64-npm-0.18.20-7b48b328fe-10.zip deleted file mode 100644 index 728cccd6c7c0..000000000000 Binary files a/.yarn/cache/@esbuild-linux-arm64-npm-0.18.20-7b48b328fe-10.zip and /dev/null differ diff --git a/.yarn/cache/@esbuild-linux-x64-npm-0.17.19-08a7136aa6-10.zip b/.yarn/cache/@esbuild-linux-x64-npm-0.17.19-08a7136aa6-10.zip new file mode 100644 index 000000000000..ee6c567a81ce Binary files /dev/null and b/.yarn/cache/@esbuild-linux-x64-npm-0.17.19-08a7136aa6-10.zip differ diff --git a/.yarn/cache/@esbuild-linux-x64-npm-0.18.20-de8e99b449-10.zip b/.yarn/cache/@esbuild-linux-x64-npm-0.18.20-de8e99b449-10.zip deleted file mode 100644 index 67ac3efedd79..000000000000 Binary files a/.yarn/cache/@esbuild-linux-x64-npm-0.18.20-de8e99b449-10.zip and /dev/null differ diff --git a/.yarn/cache/@esbuild-openbsd-arm64-npm-0.24.0-1b1265740e-11948aba46.zip b/.yarn/cache/@esbuild-openbsd-arm64-npm-0.24.0-1b1265740e-11948aba46.zip new file mode 100644 index 000000000000..99a8f3b24a29 Binary files /dev/null and b/.yarn/cache/@esbuild-openbsd-arm64-npm-0.24.0-1b1265740e-11948aba46.zip differ diff --git a/.yarn/cache/@esbuild-win32-arm64-npm-0.17.19-8006d17388-10.zip b/.yarn/cache/@esbuild-win32-arm64-npm-0.17.19-8006d17388-10.zip new file mode 100644 index 000000000000..9061a501006d Binary files /dev/null and b/.yarn/cache/@esbuild-win32-arm64-npm-0.17.19-8006d17388-10.zip differ diff --git a/.yarn/cache/@esbuild-win32-arm64-npm-0.18.20-a58fe6c6a3-10.zip b/.yarn/cache/@esbuild-win32-arm64-npm-0.18.20-a58fe6c6a3-10.zip deleted file mode 100644 index 6a6837498422..000000000000 Binary files a/.yarn/cache/@esbuild-win32-arm64-npm-0.18.20-a58fe6c6a3-10.zip and /dev/null differ diff --git a/.yarn/cache/@esbuild-win32-x64-npm-0.17.19-619fae7839-10.zip b/.yarn/cache/@esbuild-win32-x64-npm-0.17.19-619fae7839-10.zip new file mode 100644 index 000000000000..ae117af73f48 Binary files /dev/null and b/.yarn/cache/@esbuild-win32-x64-npm-0.17.19-619fae7839-10.zip differ diff --git a/.yarn/cache/@esbuild-win32-x64-npm-0.18.20-37a9ab2bda-10.zip b/.yarn/cache/@esbuild-win32-x64-npm-0.18.20-37a9ab2bda-10.zip deleted file mode 100644 index df11d939b0e3..000000000000 Binary files a/.yarn/cache/@esbuild-win32-x64-npm-0.18.20-37a9ab2bda-10.zip and /dev/null differ diff --git a/.yarn/cache/@jest-globals-npm-28.1.3-fee1b2ab3f-3504bb23de.zip b/.yarn/cache/@jest-globals-npm-28.1.0-6e373647d7-dce822edd1.zip similarity index 74% rename from .yarn/cache/@jest-globals-npm-28.1.3-fee1b2ab3f-3504bb23de.zip rename to .yarn/cache/@jest-globals-npm-28.1.0-6e373647d7-dce822edd1.zip index 6cd127f33bba..e10988e47a61 100644 Binary files a/.yarn/cache/@jest-globals-npm-28.1.3-fee1b2ab3f-3504bb23de.zip and b/.yarn/cache/@jest-globals-npm-28.1.0-6e373647d7-dce822edd1.zip differ diff --git a/.yarn/cache/@jest-source-map-npm-28.1.2-c3d608514f-b82a5c2e93.zip b/.yarn/cache/@jest-source-map-npm-28.0.2-f9db611cdd-427195be85.zip similarity index 78% rename from .yarn/cache/@jest-source-map-npm-28.1.2-c3d608514f-b82a5c2e93.zip rename to .yarn/cache/@jest-source-map-npm-28.0.2-f9db611cdd-427195be85.zip index 991b89e34d56..7b6b5276729a 100644 Binary files a/.yarn/cache/@jest-source-map-npm-28.1.2-c3d608514f-b82a5c2e93.zip and b/.yarn/cache/@jest-source-map-npm-28.0.2-f9db611cdd-427195be85.zip differ diff --git a/.yarn/cache/accessibility-checker-npm-3.1.74-f3e8b4bb42-822bac1917.zip b/.yarn/cache/accessibility-checker-npm-3.1.74-f3e8b4bb42-822bac1917.zip deleted file mode 100644 index d228805f617b..000000000000 Binary files a/.yarn/cache/accessibility-checker-npm-3.1.74-f3e8b4bb42-822bac1917.zip and /dev/null differ diff --git a/.yarn/cache/accessibility-checker-npm-3.1.78-ac0f96fd8d-04453a96b5.zip b/.yarn/cache/accessibility-checker-npm-3.1.78-ac0f96fd8d-04453a96b5.zip new file mode 100644 index 000000000000..5ab4d39ac2b2 Binary files /dev/null and b/.yarn/cache/accessibility-checker-npm-3.1.78-ac0f96fd8d-04453a96b5.zip differ diff --git a/.yarn/cache/array-includes-npm-3.1.6-d0ff9d248b-a7168bd168.zip b/.yarn/cache/array-includes-npm-3.1.6-d0ff9d248b-a7168bd168.zip new file mode 100644 index 000000000000..62107e5f28c7 Binary files /dev/null and b/.yarn/cache/array-includes-npm-3.1.6-d0ff9d248b-a7168bd168.zip differ diff --git a/.yarn/cache/array-includes-npm-3.1.8-62a178e549-290b206c94.zip b/.yarn/cache/array-includes-npm-3.1.8-62a178e549-290b206c94.zip deleted file mode 100644 index 5787b886a387..000000000000 Binary files a/.yarn/cache/array-includes-npm-3.1.8-62a178e549-290b206c94.zip and /dev/null differ diff --git a/.yarn/cache/esbuild-npm-0.17.19-f690397756-86ada7cad6.zip b/.yarn/cache/esbuild-npm-0.17.19-f690397756-86ada7cad6.zip new file mode 100644 index 000000000000..0a7bebaf1e39 Binary files /dev/null and b/.yarn/cache/esbuild-npm-0.17.19-f690397756-86ada7cad6.zip differ diff --git a/.yarn/cache/esbuild-npm-0.18.20-004a76d281-1f723ec71c.zip b/.yarn/cache/esbuild-npm-0.18.20-004a76d281-1f723ec71c.zip deleted file mode 100644 index 2b0f17e21f12..000000000000 Binary files a/.yarn/cache/esbuild-npm-0.18.20-004a76d281-1f723ec71c.zip and /dev/null differ diff --git a/.yarn/cache/is-map-npm-2.0.2-486724dabc-60ba910f83.zip b/.yarn/cache/is-map-npm-2.0.2-486724dabc-60ba910f83.zip new file mode 100644 index 000000000000..50be7dff7ece Binary files /dev/null and b/.yarn/cache/is-map-npm-2.0.2-486724dabc-60ba910f83.zip differ diff --git a/.yarn/cache/is-map-npm-2.0.3-9e061e76e3-8de7b41715.zip b/.yarn/cache/is-map-npm-2.0.3-9e061e76e3-8de7b41715.zip deleted file mode 100644 index ba460dc2f085..000000000000 Binary files a/.yarn/cache/is-map-npm-2.0.3-9e061e76e3-8de7b41715.zip and /dev/null differ diff --git a/.yarn/cache/is-set-npm-2.0.2-7e9ba84a8c-d89e82acdc.zip b/.yarn/cache/is-set-npm-2.0.2-7e9ba84a8c-d89e82acdc.zip new file mode 100644 index 000000000000..73b13f3c3c0b Binary files /dev/null and b/.yarn/cache/is-set-npm-2.0.2-7e9ba84a8c-d89e82acdc.zip differ diff --git a/.yarn/cache/is-set-npm-2.0.3-1b72c9a855-5685df33f0.zip b/.yarn/cache/is-set-npm-2.0.3-1b72c9a855-5685df33f0.zip deleted file mode 100644 index 3b1e3d0efbed..000000000000 Binary files a/.yarn/cache/is-set-npm-2.0.3-1b72c9a855-5685df33f0.zip and /dev/null differ diff --git a/.yarn/cache/jest-runtime-npm-28.1.0-111844adc0-d24913fb5a.zip b/.yarn/cache/jest-runtime-npm-28.1.0-111844adc0-d24913fb5a.zip new file mode 100644 index 000000000000..8c73816603f1 Binary files /dev/null and b/.yarn/cache/jest-runtime-npm-28.1.0-111844adc0-d24913fb5a.zip differ diff --git a/.yarn/cache/jest-runtime-npm-28.1.3-15fdfa887e-d3d91b3f10.zip b/.yarn/cache/jest-runtime-npm-28.1.3-15fdfa887e-d3d91b3f10.zip deleted file mode 100644 index ded32688b321..000000000000 Binary files a/.yarn/cache/jest-runtime-npm-28.1.3-15fdfa887e-d3d91b3f10.zip and /dev/null differ diff --git a/.yarn/cache/rollup-npm-3.22.0-9f29f42b1d-e6b71b9e8b.zip b/.yarn/cache/rollup-npm-3.22.0-9f29f42b1d-e6b71b9e8b.zip new file mode 100644 index 000000000000..20a8e7d66429 Binary files /dev/null and b/.yarn/cache/rollup-npm-3.22.0-9f29f42b1d-e6b71b9e8b.zip differ diff --git a/.yarn/cache/rollup-npm-3.29.4-5e5e5f2087-9e39d54e23.zip b/.yarn/cache/rollup-npm-3.29.4-5e5e5f2087-9e39d54e23.zip deleted file mode 100644 index 936b6ed55640..000000000000 Binary files a/.yarn/cache/rollup-npm-3.29.4-5e5e5f2087-9e39d54e23.zip and /dev/null differ diff --git a/.yarn/cache/vite-npm-4.3.9-24f3552941-c2f0b392a2.zip b/.yarn/cache/vite-npm-4.3.9-24f3552941-c2f0b392a2.zip new file mode 100644 index 000000000000..75e6ee4b7d71 Binary files /dev/null and b/.yarn/cache/vite-npm-4.3.9-24f3552941-c2f0b392a2.zip differ diff --git a/.yarn/cache/vite-npm-4.5.5-0c1705ba53-2e8b39e004.zip b/.yarn/cache/vite-npm-4.5.5-0c1705ba53-2e8b39e004.zip deleted file mode 100644 index 213897ccb7e8..000000000000 Binary files a/.yarn/cache/vite-npm-4.5.5-0c1705ba53-2e8b39e004.zip and /dev/null differ diff --git a/achecker.js b/achecker.js index 7723a5cd760b..b1e325142469 100644 --- a/achecker.js +++ b/achecker.js @@ -10,16 +10,18 @@ const path = require('path'); module.exports = { - ruleArchive: '17June2024', + ruleArchive: 'versioned', policies: ['Custom_Ruleset'], failLevels: ['violation'], - reportLevels: [ - 'violation', - 'potentialviolation', - 'recommendation', - 'potentialrecommendation', - 'manual', - ], + reportLevels: !process.env.CI + ? ['violation'] + : [ + 'violation', + 'potentialviolation', + 'recommendation', + 'potentialrecommendation', + 'manual', + ], outputFormat: ['json'], outputFolder: path.join('.avt', 'reports'), baselineFolder: path.join('.avt', 'baseline'), diff --git a/config/jest-config-carbon/matchers/toHaveNoACViolations.js b/config/jest-config-carbon/matchers/toHaveNoACViolations.js index 5ce44f952154..903601f09b69 100644 --- a/config/jest-config-carbon/matchers/toHaveNoACViolations.js +++ b/config/jest-config-carbon/matchers/toHaveNoACViolations.js @@ -20,6 +20,9 @@ async function toHaveNoACViolations(node, label) { 'html_skipnav_exists', 'aria_content_in_landmark', 'aria_child_tabbable', + 'aria_attribute_conflict', + 'label_name_visible', + 'target_spacing_sufficient', ]); const ruleset = await aChecker.getRuleset('IBM_Accessibility'); const customRuleset = JSON.parse(JSON.stringify(ruleset)); diff --git a/config/jest-config-carbon/package.json b/config/jest-config-carbon/package.json index 51cd1449a664..8e03bc9e5815 100644 --- a/config/jest-config-carbon/package.json +++ b/config/jest-config-carbon/package.json @@ -27,7 +27,7 @@ "@babel/preset-env": "^7.24.7", "@babel/preset-react": "^7.24.7", "@babel/runtime": "^7.24.7", - "accessibility-checker": "^3.1.74", + "accessibility-checker": "^3.1.78", "axe-core": "^4.3.5", "babel-jest": "^28.1.0", "chalk": "^4.1.1", diff --git a/e2e/components/AILabel/AILabel-test.avt.e2e.js b/e2e/components/AILabel/AILabel-test.avt.e2e.js index 9471f5d0e65d..c17f39fde64f 100644 --- a/e2e/components/AILabel/AILabel-test.avt.e2e.js +++ b/e2e/components/AILabel/AILabel-test.avt.e2e.js @@ -57,7 +57,7 @@ test.describe('@avt AILabel', () => { }, }); const slug = page.getByRole('button', { - name: 'AI - Show information', + name: 'AI Show information', }); const callout = page.locator('.cds--popover--open'); await expect(slug).toBeVisible(); diff --git a/package.json b/package.json index b79f664388ad..7c2643c914b5 100644 --- a/package.json +++ b/package.json @@ -59,7 +59,7 @@ "@testing-library/react": "^16.0.0", "@testing-library/user-event": "^14.4.3", "@types/react-is": "~18.3.0", - "accessibility-checker": "^3.1.48", + "accessibility-checker": "^3.1.78", "all-contributors-cli": "^6.19.0", "cross-env": "^7.0.0", "cross-spawn": "^7.0.0", diff --git a/packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap b/packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap index e8565d337784..9910c688946b 100644 --- a/packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap +++ b/packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap @@ -7448,6 +7448,9 @@ Map { }, "SliderSkeleton" => Object { "propTypes": Object { + "ariaLabel": Object { + "type": "string", + }, "className": Object { "type": "string", }, @@ -7457,6 +7460,9 @@ Map { "twoHandles": Object { "type": "bool", }, + "unstable_ariaLabelHandleUpper": Object { + "type": "string", + }, }, }, "Stack" => Object { diff --git a/packages/react/src/components/AILabel/index.tsx b/packages/react/src/components/AILabel/index.tsx index 5fcd66cfef17..7567efc84f78 100644 --- a/packages/react/src/components/AILabel/index.tsx +++ b/packages/react/src/components/AILabel/index.tsx @@ -190,8 +190,8 @@ export const AILabel = React.forwardRef( const ariaLabelText = !aiTextLabel && !textLabel - ? `${aiText} - ${slugLabel || ariaLabel}` - : `${aiText} - ${aiTextLabel || textLabel}`; + ? `${aiText} ${slugLabel || ariaLabel}` + : `${aiText} ${aiTextLabel || textLabel}`; return (
diff --git a/packages/react/src/components/ComposedModal/ComposedModal-test.js b/packages/react/src/components/ComposedModal/ComposedModal-test.js index 8a9208e5e4ea..cbdcab49a2c6 100644 --- a/packages/react/src/components/ComposedModal/ComposedModal-test.js +++ b/packages/react/src/components/ComposedModal/ComposedModal-test.js @@ -376,7 +376,7 @@ describe('ComposedModal', () => { ); expect( - screen.getByRole('button', { name: 'AI - Show information' }) + screen.getByRole('button', { name: 'AI Show information' }) ).toBeInTheDocument(); spy.mockRestore(); }); diff --git a/packages/react/src/components/NumberInput/__tests__/NumberInput-test.js b/packages/react/src/components/NumberInput/__tests__/NumberInput-test.js index ba96dbd3559b..1d81de702105 100644 --- a/packages/react/src/components/NumberInput/__tests__/NumberInput-test.js +++ b/packages/react/src/components/NumberInput/__tests__/NumberInput-test.js @@ -75,7 +75,7 @@ describe('NumberInput', () => { ); expect( - screen.getByRole('button', { name: 'AI - Show information' }) + screen.getByRole('button', { name: 'AI Show information' }) ).toBeInTheDocument(); }); @@ -84,7 +84,7 @@ describe('NumberInput', () => { render(} />); expect( - screen.getByRole('button', { name: 'AI - Show information' }) + screen.getByRole('button', { name: 'AI Show information' }) ).toBeInTheDocument(); spy.mockRestore(); }); diff --git a/packages/react/src/components/Popover/Popover.stories.js b/packages/react/src/components/Popover/Popover.stories.js index 95f41d398bc6..605975370660 100644 --- a/packages/react/src/components/Popover/Popover.stories.js +++ b/packages/react/src/components/Popover/Popover.stories.js @@ -109,7 +109,7 @@ export const TabTip = () => { @@ -146,7 +146,7 @@ export const TabTip = () => { diff --git a/packages/react/src/components/Select/__tests__/Select-test.js b/packages/react/src/components/Select/__tests__/Select-test.js index f68bf82b5a2d..0adbef8213cb 100644 --- a/packages/react/src/components/Select/__tests__/Select-test.js +++ b/packages/react/src/components/Select/__tests__/Select-test.js @@ -372,7 +372,10 @@ describe('Select', () => { it('should have no Accessibility Checker violations', async () => { const { container } = render(
- diff --git a/packages/react/src/components/Slider/Slider.Skeleton.tsx b/packages/react/src/components/Slider/Slider.Skeleton.tsx index 59cf54fe7749..bf3d17b24708 100644 --- a/packages/react/src/components/Slider/Slider.Skeleton.tsx +++ b/packages/react/src/components/Slider/Slider.Skeleton.tsx @@ -14,6 +14,16 @@ import classNames from 'classnames'; import { LowerHandle, UpperHandle } from './SliderHandles'; export interface SliderSkeletonProps extends HTMLAttributes { + /** + * The `ariaLabel` for the handle icon. + */ + ariaLabel?: string; + + /** + * The `ariaLabel` for the upper bound slider handle when there are two handles. + */ + unstable_ariaLabelHandleUpper?: string; + /** * Specify an optional className to add to the form item wrapper. */ @@ -31,6 +41,8 @@ export interface SliderSkeletonProps extends HTMLAttributes { } const SliderSkeleton = ({ + ariaLabel = 'slider handle', + unstable_ariaLabelHandleUpper: ariaLabelHandleUpper = 'upper slider handle', hideLabel, className, twoHandles, @@ -82,9 +94,9 @@ const SliderSkeleton = ({
{twoHandles && !isRtl ? ( - + ) : twoHandles && isRtl ? ( - + ) : undefined}
@@ -92,9 +104,9 @@ const SliderSkeleton = ({
{twoHandles && !isRtl ? ( - + ) : twoHandles && isRtl ? ( - + ) : undefined}
@@ -107,6 +119,16 @@ const SliderSkeleton = ({ }; SliderSkeleton.propTypes = { + /** + * The `ariaLabel` for the handle icon. + */ + ariaLabel: PropTypes.string, + + /** + * The `ariaLabel` for the upper bound slider handle when there are two handles. + */ + unstable_ariaLabelHandleUpper: PropTypes.string, + /** * Specify an optional className to add to the form item wrapper. */ diff --git a/packages/react/src/components/Slider/Slider.tsx b/packages/react/src/components/Slider/Slider.tsx index a66d44d45dd2..5fee8b7d219b 100644 --- a/packages/react/src/components/Slider/Slider.tsx +++ b/packages/react/src/components/Slider/Slider.tsx @@ -1533,13 +1533,13 @@ class Slider extends PureComponent { }> {twoHandles && !isRtl ? ( <> - - + + ) : twoHandles && isRtl ? ( <> - - + + ) : undefined}
@@ -1565,13 +1565,15 @@ class Slider extends PureComponent { }> {twoHandles && !isRtl ? ( <> - - + + ) : twoHandles && isRtl ? ( <> - - + + ) : undefined} diff --git a/packages/react/src/components/Slider/SliderHandles.tsx b/packages/react/src/components/Slider/SliderHandles.tsx index 6a2cfdedf8c6..f8f66d2bb759 100644 --- a/packages/react/src/components/Slider/SliderHandles.tsx +++ b/packages/react/src/components/Slider/SliderHandles.tsx @@ -1,13 +1,14 @@ import { PrefixContext } from '../../internal/usePrefix'; import React from 'react'; -export const LowerHandle = () => ( +export const LowerHandle = (props) => ( {(prefix) => ( + className={`${prefix}--slider__thumb-icon ${prefix}--slider__thumb-icon--lower`} + {...props}> @@ -15,13 +16,14 @@ export const LowerHandle = () => ( ); -export const LowerHandleFocus = () => ( +export const LowerHandleFocus = (props) => ( {(prefix) => ( + className={`${prefix}--slider__thumb-icon ${prefix}--slider__thumb-icon--lower ${prefix}--slider__thumb-icon--focus`} + {...props}> @@ -32,13 +34,14 @@ export const LowerHandleFocus = () => ( ); -export const UpperHandle = () => ( +export const UpperHandle = (props) => ( {(prefix) => ( + className={`${prefix}--slider__thumb-icon ${prefix}--slider__thumb-icon--upper`} + {...props}> @@ -46,13 +49,14 @@ export const UpperHandle = () => ( ); -export const UpperHandleFocus = () => ( +export const UpperHandleFocus = (props) => ( {(prefix) => ( + className={`${prefix}--slider__thumb-icon ${prefix}--slider__thumb-icon--upper ${prefix}--slider__thumb-icon--focus`} + {...props}> diff --git a/packages/react/src/components/Slider/Slider-test.js b/packages/react/src/components/Slider/__test__/Slider-test.js similarity index 99% rename from packages/react/src/components/Slider/Slider-test.js rename to packages/react/src/components/Slider/__test__/Slider-test.js index 7d0f1cee0d48..2ee9cf7bd1bd 100644 --- a/packages/react/src/components/Slider/Slider-test.js +++ b/packages/react/src/components/Slider/__test__/Slider-test.js @@ -6,7 +6,7 @@ */ import React from 'react'; -import Slider from './Slider'; +import Slider from '../Slider'; import userEvent from '@testing-library/user-event'; import { fireEvent, render, screen } from '@testing-library/react'; @@ -574,9 +574,9 @@ describe('Slider', () => { it('should render children as expected', () => { renderTwoHandleSlider(); const lowerElems = screen.getAllByLabelText(defaultAriaLabelInput); - expect(lowerElems).toHaveLength(2); + expect(lowerElems).toHaveLength(4); const upperElems = screen.getAllByLabelText(defaultAriaLabelInputUpper); - expect(upperElems).toHaveLength(2); + expect(upperElems).toHaveLength(4); }); it('should apply the expected classes', () => { diff --git a/packages/react/src/components/Slider/__test__/SliderSkeleton-test.js b/packages/react/src/components/Slider/__test__/SliderSkeleton-test.js new file mode 100644 index 000000000000..cc7ac34b292d --- /dev/null +++ b/packages/react/src/components/Slider/__test__/SliderSkeleton-test.js @@ -0,0 +1,52 @@ +import React from 'react'; +import { render, screen } from '@testing-library/react'; +import SliderSkeleton from '../Slider.Skeleton'; + +describe('SliderSkeleton', () => { + describe('behaves as expected - Component API', () => { + it('should apply the expected classes', () => { + const { container } = render(); + expect(container.firstChild.firstChild).toHaveClass( + 'cds--label cds--skeleton' + ); + }); + + it('should pass custom class via className', () => { + const customSliderClass = 'slider-custom-class'; + const { container } = render( + + ); + expect(container.firstChild).toHaveClass(customSliderClass); + }); + + it('renders without label when hideLabel is true', () => { + const { container } = render(); + const label = container.querySelector('.cds--label.cds--skeleton'); + expect(label).not.toBeInTheDocument(); + }); + + describe('Accessibility labels', () => { + it('applies default aria labels', () => { + render(); + const lowerHandle = screen.getByLabelText('slider handle'); + const upperHandle = screen.getByLabelText('upper slider handle'); + expect(lowerHandle).toBeInTheDocument(); + expect(upperHandle).toBeInTheDocument(); + }); + + it('allows custom aria labels', () => { + render( + + ); + const lowerHandle = screen.getByLabelText('Custom Lower Handle'); + const upperHandle = screen.getByLabelText('Custom Upper Handle'); + expect(lowerHandle).toBeInTheDocument(); + expect(upperHandle).toBeInTheDocument(); + }); + }); + }); +}); diff --git a/packages/react/src/components/Tag/Tag-test.js b/packages/react/src/components/Tag/Tag-test.js index da37f62f5ea6..dff63bc04c1a 100644 --- a/packages/react/src/components/Tag/Tag-test.js +++ b/packages/react/src/components/Tag/Tag-test.js @@ -85,7 +85,7 @@ describe('Tag', () => { ); expect( - screen.getByRole('button', { name: 'AI - Show information' }) + screen.getByRole('button', { name: 'AI Show information' }) ).toBeInTheDocument(); }); @@ -101,7 +101,7 @@ describe('Tag', () => { ); expect( - screen.getByRole('button', { name: 'AI - Show information' }) + screen.getByRole('button', { name: 'AI Show information' }) ).toBeInTheDocument(); spy.mockRestore(); }); @@ -126,7 +126,7 @@ describe('Tag', () => { render(} />); expect( - screen.getByRole('button', { name: 'AI - Show information' }) + screen.getByRole('button', { name: 'AI Show information' }) ).toBeInTheDocument(); }); @@ -135,7 +135,7 @@ describe('Tag', () => { render(} />); expect( - screen.getByRole('button', { name: 'AI - Show information' }) + screen.getByRole('button', { name: 'AI Show information' }) ).toBeInTheDocument(); spy.mockRestore(); }); diff --git a/packages/react/src/components/TextArea/__tests__/TextArea-test.js b/packages/react/src/components/TextArea/__tests__/TextArea-test.js index a4583746db02..a6eb2beb51ae 100644 --- a/packages/react/src/components/TextArea/__tests__/TextArea-test.js +++ b/packages/react/src/components/TextArea/__tests__/TextArea-test.js @@ -204,7 +204,7 @@ describe('TextArea', () => { /> ); expect( - screen.getByRole('button', { name: 'AI - Show information' }) + screen.getByRole('button', { name: 'AI Show information' }) ).toBeInTheDocument(); }); @@ -218,7 +218,7 @@ describe('TextArea', () => { /> ); expect( - screen.getByRole('button', { name: 'AI - Show information' }) + screen.getByRole('button', { name: 'AI Show information' }) ).toBeInTheDocument(); spy.mockRestore(); }); diff --git a/packages/react/src/components/TextInput/__tests__/TextInput-test.js b/packages/react/src/components/TextInput/__tests__/TextInput-test.js index 3da7ba7f8b01..4d13b075662a 100644 --- a/packages/react/src/components/TextInput/__tests__/TextInput-test.js +++ b/packages/react/src/components/TextInput/__tests__/TextInput-test.js @@ -235,7 +235,7 @@ describe('TextInput', () => { /> ); expect( - screen.getByRole('button', { name: 'AI - Show information' }) + screen.getByRole('button', { name: 'AI Show information' }) ).toBeInTheDocument(); }); @@ -249,7 +249,7 @@ describe('TextInput', () => { /> ); expect( - screen.getByRole('button', { name: 'AI - Show information' }) + screen.getByRole('button', { name: 'AI Show information' }) ).toBeInTheDocument(); spy.mockRestore(); }); diff --git a/packages/react/src/components/Tile/Tile-test.js b/packages/react/src/components/Tile/Tile-test.js index 93edb0a00053..4d6159594985 100644 --- a/packages/react/src/components/Tile/Tile-test.js +++ b/packages/react/src/components/Tile/Tile-test.js @@ -51,14 +51,14 @@ describe('Tile', () => { it('should respect decorator prop', () => { render(}>Default tile); expect( - screen.getByRole('button', { name: 'AI - Show information' }) + screen.getByRole('button', { name: 'AI Show information' }) ).toBeInTheDocument(); }); it('should respect deprecated slug prop', () => { const spy = jest.spyOn(console, 'warn').mockImplementation(() => {}); render(}>Default tile); expect( - screen.getByRole('button', { name: 'AI - Show information' }) + screen.getByRole('button', { name: 'AI Show information' }) ).toBeInTheDocument(); spy.mockRestore(); }); @@ -186,7 +186,7 @@ describe('Tile', () => { ); const aiLabel = screen.getByRole('button', { - name: 'AI - Show information', + name: 'AI Show information', }); expect(aiLabel).toBeInTheDocument(); const tile = container.firstChild; @@ -202,7 +202,7 @@ describe('Tile', () => { ); expect( - screen.getByRole('button', { name: 'AI - Show information' }) + screen.getByRole('button', { name: 'AI Show information' }) ).toBeInTheDocument(); spy.mockRestore(); }); @@ -352,7 +352,7 @@ describe('Tile', () => { ); expect( - screen.getByRole('button', { name: 'AI - Show information' }) + screen.getByRole('button', { name: 'AI Show information' }) ).toBeInTheDocument(); }); @@ -369,7 +369,7 @@ describe('Tile', () => { ); expect( - screen.getByRole('button', { name: 'AI - Show information' }) + screen.getByRole('button', { name: 'AI Show information' }) ).toBeInTheDocument(); spy.mockRestore(); }); diff --git a/playwright.config.js b/playwright.config.js index d212bda53a04..c4c6a58eac01 100644 --- a/playwright.config.js +++ b/playwright.config.js @@ -88,6 +88,8 @@ expect.extend({ 'html_skipnav_exists', 'aria_content_in_landmark', 'aria_child_tabbable', + 'label_name_visible', + 'target_spacing_sufficient', ]); const ruleset = await aChecker.getRuleset('IBM_Accessibility'); diff --git a/yarn.lock b/yarn.lock index e58deaaa1ab5..fe7b43393b1c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2578,13 +2578,14 @@ __metadata: "@esbuild/aix-ppc64@npm:0.24.0": version: 0.24.0 resolution: "@esbuild/aix-ppc64@npm:0.24.0" + checksum: 10/abe90ecf17befdf4269b306c33b68beb3b5803e8b474279028c82a3c7cc4b14fff6fd3133a4b62a011e93a81b8e33af1af4808aa0031c6bb11bf15c00a5854a9 conditions: os=aix & cpu=ppc64 languageName: node linkType: hard -"@esbuild/android-arm64@npm:0.18.20": - version: 0.18.20 - resolution: "@esbuild/android-arm64@npm:0.18.20" +"@esbuild/android-arm64@npm:0.17.19": + version: 0.17.19 + resolution: "@esbuild/android-arm64@npm:0.17.19" conditions: os=android & cpu=arm64 languageName: node linkType: hard @@ -2603,9 +2604,9 @@ __metadata: languageName: node linkType: hard -"@esbuild/android-arm@npm:0.18.20": - version: 0.18.20 - resolution: "@esbuild/android-arm@npm:0.18.20" +"@esbuild/android-arm@npm:0.17.19": + version: 0.17.19 + resolution: "@esbuild/android-arm@npm:0.17.19" conditions: os=android & cpu=arm languageName: node linkType: hard @@ -2624,9 +2625,9 @@ __metadata: languageName: node linkType: hard -"@esbuild/android-x64@npm:0.18.20": - version: 0.18.20 - resolution: "@esbuild/android-x64@npm:0.18.20" +"@esbuild/android-x64@npm:0.17.19": + version: 0.17.19 + resolution: "@esbuild/android-x64@npm:0.17.19" conditions: os=android & cpu=x64 languageName: node linkType: hard @@ -2645,9 +2646,9 @@ __metadata: languageName: node linkType: hard -"@esbuild/darwin-arm64@npm:0.18.20": - version: 0.18.20 - resolution: "@esbuild/darwin-arm64@npm:0.18.20" +"@esbuild/darwin-arm64@npm:0.17.19": + version: 0.17.19 + resolution: "@esbuild/darwin-arm64@npm:0.17.19" conditions: os=darwin & cpu=arm64 languageName: node linkType: hard @@ -2666,9 +2667,9 @@ __metadata: languageName: node linkType: hard -"@esbuild/darwin-x64@npm:0.18.20": - version: 0.18.20 - resolution: "@esbuild/darwin-x64@npm:0.18.20" +"@esbuild/darwin-x64@npm:0.17.19": + version: 0.17.19 + resolution: "@esbuild/darwin-x64@npm:0.17.19" conditions: os=darwin & cpu=x64 languageName: node linkType: hard @@ -2687,9 +2688,9 @@ __metadata: languageName: node linkType: hard -"@esbuild/freebsd-arm64@npm:0.18.20": - version: 0.18.20 - resolution: "@esbuild/freebsd-arm64@npm:0.18.20" +"@esbuild/freebsd-arm64@npm:0.17.19": + version: 0.17.19 + resolution: "@esbuild/freebsd-arm64@npm:0.17.19" conditions: os=freebsd & cpu=arm64 languageName: node linkType: hard @@ -2708,9 +2709,9 @@ __metadata: languageName: node linkType: hard -"@esbuild/freebsd-x64@npm:0.18.20": - version: 0.18.20 - resolution: "@esbuild/freebsd-x64@npm:0.18.20" +"@esbuild/freebsd-x64@npm:0.17.19": + version: 0.17.19 + resolution: "@esbuild/freebsd-x64@npm:0.17.19" conditions: os=freebsd & cpu=x64 languageName: node linkType: hard @@ -2729,9 +2730,9 @@ __metadata: languageName: node linkType: hard -"@esbuild/linux-arm64@npm:0.18.20": - version: 0.18.20 - resolution: "@esbuild/linux-arm64@npm:0.18.20" +"@esbuild/linux-arm64@npm:0.17.19": + version: 0.17.19 + resolution: "@esbuild/linux-arm64@npm:0.17.19" conditions: os=linux & cpu=arm64 languageName: node linkType: hard @@ -2750,9 +2751,9 @@ __metadata: languageName: node linkType: hard -"@esbuild/linux-arm@npm:0.18.20": - version: 0.18.20 - resolution: "@esbuild/linux-arm@npm:0.18.20" +"@esbuild/linux-arm@npm:0.17.19": + version: 0.17.19 + resolution: "@esbuild/linux-arm@npm:0.17.19" conditions: os=linux & cpu=arm languageName: node linkType: hard @@ -2771,9 +2772,9 @@ __metadata: languageName: node linkType: hard -"@esbuild/linux-ia32@npm:0.18.20": - version: 0.18.20 - resolution: "@esbuild/linux-ia32@npm:0.18.20" +"@esbuild/linux-ia32@npm:0.17.19": + version: 0.17.19 + resolution: "@esbuild/linux-ia32@npm:0.17.19" conditions: os=linux & cpu=ia32 languageName: node linkType: hard @@ -2792,9 +2793,9 @@ __metadata: languageName: node linkType: hard -"@esbuild/linux-loong64@npm:0.18.20": - version: 0.18.20 - resolution: "@esbuild/linux-loong64@npm:0.18.20" +"@esbuild/linux-loong64@npm:0.17.19": + version: 0.17.19 + resolution: "@esbuild/linux-loong64@npm:0.17.19" conditions: os=linux & cpu=loong64 languageName: node linkType: hard @@ -2813,9 +2814,9 @@ __metadata: languageName: node linkType: hard -"@esbuild/linux-mips64el@npm:0.18.20": - version: 0.18.20 - resolution: "@esbuild/linux-mips64el@npm:0.18.20" +"@esbuild/linux-mips64el@npm:0.17.19": + version: 0.17.19 + resolution: "@esbuild/linux-mips64el@npm:0.17.19" conditions: os=linux & cpu=mips64el languageName: node linkType: hard @@ -2834,9 +2835,9 @@ __metadata: languageName: node linkType: hard -"@esbuild/linux-ppc64@npm:0.18.20": - version: 0.18.20 - resolution: "@esbuild/linux-ppc64@npm:0.18.20" +"@esbuild/linux-ppc64@npm:0.17.19": + version: 0.17.19 + resolution: "@esbuild/linux-ppc64@npm:0.17.19" conditions: os=linux & cpu=ppc64 languageName: node linkType: hard @@ -2855,9 +2856,9 @@ __metadata: languageName: node linkType: hard -"@esbuild/linux-riscv64@npm:0.18.20": - version: 0.18.20 - resolution: "@esbuild/linux-riscv64@npm:0.18.20" +"@esbuild/linux-riscv64@npm:0.17.19": + version: 0.17.19 + resolution: "@esbuild/linux-riscv64@npm:0.17.19" conditions: os=linux & cpu=riscv64 languageName: node linkType: hard @@ -2876,9 +2877,9 @@ __metadata: languageName: node linkType: hard -"@esbuild/linux-s390x@npm:0.18.20": - version: 0.18.20 - resolution: "@esbuild/linux-s390x@npm:0.18.20" +"@esbuild/linux-s390x@npm:0.17.19": + version: 0.17.19 + resolution: "@esbuild/linux-s390x@npm:0.17.19" conditions: os=linux & cpu=s390x languageName: node linkType: hard @@ -2897,9 +2898,9 @@ __metadata: languageName: node linkType: hard -"@esbuild/linux-x64@npm:0.18.20": - version: 0.18.20 - resolution: "@esbuild/linux-x64@npm:0.18.20" +"@esbuild/linux-x64@npm:0.17.19": + version: 0.17.19 + resolution: "@esbuild/linux-x64@npm:0.17.19" conditions: os=linux & cpu=x64 languageName: node linkType: hard @@ -2918,9 +2919,9 @@ __metadata: languageName: node linkType: hard -"@esbuild/netbsd-x64@npm:0.18.20": - version: 0.18.20 - resolution: "@esbuild/netbsd-x64@npm:0.18.20" +"@esbuild/netbsd-x64@npm:0.17.19": + version: 0.17.19 + resolution: "@esbuild/netbsd-x64@npm:0.17.19" conditions: os=netbsd & cpu=x64 languageName: node linkType: hard @@ -2942,13 +2943,14 @@ __metadata: "@esbuild/openbsd-arm64@npm:0.24.0": version: 0.24.0 resolution: "@esbuild/openbsd-arm64@npm:0.24.0" + checksum: 10/11948aba4603d52ab4fc874d35796c1d6511b0cb1613f9cfab624f2992316df2d3504c7b58c049130befa7f78ce2fe0c21e297b0e5a280c6fd6ce9726e536cb8 conditions: os=openbsd & cpu=arm64 languageName: node linkType: hard -"@esbuild/openbsd-x64@npm:0.18.20": - version: 0.18.20 - resolution: "@esbuild/openbsd-x64@npm:0.18.20" +"@esbuild/openbsd-x64@npm:0.17.19": + version: 0.17.19 + resolution: "@esbuild/openbsd-x64@npm:0.17.19" conditions: os=openbsd & cpu=x64 languageName: node linkType: hard @@ -2967,9 +2969,9 @@ __metadata: languageName: node linkType: hard -"@esbuild/sunos-x64@npm:0.18.20": - version: 0.18.20 - resolution: "@esbuild/sunos-x64@npm:0.18.20" +"@esbuild/sunos-x64@npm:0.17.19": + version: 0.17.19 + resolution: "@esbuild/sunos-x64@npm:0.17.19" conditions: os=sunos & cpu=x64 languageName: node linkType: hard @@ -2988,9 +2990,9 @@ __metadata: languageName: node linkType: hard -"@esbuild/win32-arm64@npm:0.18.20": - version: 0.18.20 - resolution: "@esbuild/win32-arm64@npm:0.18.20" +"@esbuild/win32-arm64@npm:0.17.19": + version: 0.17.19 + resolution: "@esbuild/win32-arm64@npm:0.17.19" conditions: os=win32 & cpu=arm64 languageName: node linkType: hard @@ -3009,9 +3011,9 @@ __metadata: languageName: node linkType: hard -"@esbuild/win32-ia32@npm:0.18.20": - version: 0.18.20 - resolution: "@esbuild/win32-ia32@npm:0.18.20" +"@esbuild/win32-ia32@npm:0.17.19": + version: 0.17.19 + resolution: "@esbuild/win32-ia32@npm:0.17.19" conditions: os=win32 & cpu=ia32 languageName: node linkType: hard @@ -3030,9 +3032,9 @@ __metadata: languageName: node linkType: hard -"@esbuild/win32-x64@npm:0.18.20": - version: 0.18.20 - resolution: "@esbuild/win32-x64@npm:0.18.20" +"@esbuild/win32-x64@npm:0.17.19": + version: 0.17.19 + resolution: "@esbuild/win32-x64@npm:0.17.19" conditions: os=win32 & cpu=x64 languageName: node linkType: hard @@ -3533,7 +3535,7 @@ __metadata: languageName: node linkType: hard -"@jest/environment@npm:^28.1.0, @jest/environment@npm:^28.1.3": +"@jest/environment@npm:^28.1.0": version: 28.1.3 resolution: "@jest/environment@npm:28.1.3" dependencies: @@ -3563,7 +3565,7 @@ __metadata: languageName: node linkType: hard -"@jest/expect@npm:^28.1.0, @jest/expect@npm:^28.1.3": +"@jest/expect@npm:^28.1.0": version: 28.1.3 resolution: "@jest/expect@npm:28.1.3" dependencies: @@ -3587,14 +3589,14 @@ __metadata: languageName: node linkType: hard -"@jest/globals@npm:^28.1.3": - version: 28.1.3 - resolution: "@jest/globals@npm:28.1.3" +"@jest/globals@npm:^28.1.0": + version: 28.1.0 + resolution: "@jest/globals@npm:28.1.0" dependencies: - "@jest/environment": "npm:^28.1.3" - "@jest/expect": "npm:^28.1.3" - "@jest/types": "npm:^28.1.3" - checksum: 10/3504bb23de629d466c6f2b6b75d2e1c1b10caccbbcfb7eaa82d22cc37711c8e364c243929581184846605c023b475ea6c42c2e3ea5994429a988d8d527af32cd + "@jest/environment": "npm:^28.1.0" + "@jest/expect": "npm:^28.1.0" + "@jest/types": "npm:^28.1.0" + checksum: 10/dce822edd1810430ce381235f714be705a9c774c00bf109d9d5df0dc4868371da62520832df99e83635ee1fc1fa4241cf617821b4e3b1a8bcd3fcd91aa8a75a7 languageName: node linkType: hard @@ -3653,18 +3655,18 @@ __metadata: languageName: node linkType: hard -"@jest/source-map@npm:^28.1.2": - version: 28.1.2 - resolution: "@jest/source-map@npm:28.1.2" +"@jest/source-map@npm:^28.0.2": + version: 28.0.2 + resolution: "@jest/source-map@npm:28.0.2" dependencies: - "@jridgewell/trace-mapping": "npm:^0.3.13" + "@jridgewell/trace-mapping": "npm:^0.3.7" callsites: "npm:^3.0.0" graceful-fs: "npm:^4.2.9" - checksum: 10/b82a5c2e93d35d86779c61a02ccb967d1b5cd2e9dd67d26d8add44958637cbbb99daeeb8129c7653389cb440dc2a2f5ae4d2183dc453c67669ff98938b775a3a + checksum: 10/427195be85c28517e7e6b29fb38448a371750a1e4f4003e4c33ee0b35bbb72229c80482d444a827aa230f688a0b72c0c858ebd11425a686103c13d6cc61c8da1 languageName: node linkType: hard -"@jest/test-result@npm:^28.1.0, @jest/test-result@npm:^28.1.3": +"@jest/test-result@npm:^28.1.0": version: 28.1.3 resolution: "@jest/test-result@npm:28.1.3" dependencies: @@ -8051,9 +8053,9 @@ __metadata: languageName: node linkType: hard -"accessibility-checker@npm:^3.1.48, accessibility-checker@npm:^3.1.74": - version: 3.1.74 - resolution: "accessibility-checker@npm:3.1.74" +"accessibility-checker@npm:^3.1.78": + version: 3.1.78 + resolution: "accessibility-checker@npm:3.1.78" dependencies: axios: "npm:^1.4.0" chromedriver: "npm:*" @@ -8064,7 +8066,7 @@ __metadata: string-hash: "npm:^1.1.3" bin: achecker: bin/achecker.js - checksum: 10/822bac1917640bbe48d1c57101b274375c03d7483b53208b1b0913fd6c759aec660ad19e015e787dc234bf8881fe15fb6e3157287fee97d508f7fbbac2d3a720 + checksum: 10/04453a96b584cd101ba45f141b283b7eddc651a1be81525c5107161f43a98d3efde6dd0c2e1fc70663252ce6ada82eb9565c82a92cb9402c01a51a7683ccb099 languageName: node linkType: hard @@ -8576,16 +8578,15 @@ __metadata: linkType: hard "array-includes@npm:^3.1.5, array-includes@npm:^3.1.6": - version: 3.1.8 - resolution: "array-includes@npm:3.1.8" + version: 3.1.6 + resolution: "array-includes@npm:3.1.6" dependencies: - call-bind: "npm:^1.0.7" - define-properties: "npm:^1.2.1" - es-abstract: "npm:^1.23.2" - es-object-atoms: "npm:^1.0.0" - get-intrinsic: "npm:^1.2.4" + call-bind: "npm:^1.0.2" + define-properties: "npm:^1.1.4" + es-abstract: "npm:^1.20.4" + get-intrinsic: "npm:^1.1.3" is-string: "npm:^1.0.7" - checksum: 10/290b206c9451f181fb2b1f79a3bf1c0b66bb259791290ffbada760c79b284eef6f5ae2aeb4bcff450ebc9690edd25732c4c73a3c2b340fcc0f4563aed83bf488 + checksum: 10/a7168bd16821ec76b95a8f50f73076577a7cbd6c762452043d2b978c8a5fa4afe4f98a025d6f1d5c971b8d0b440b4ee73f6a57fc45382c858b8e17c275015428 languageName: node linkType: hard @@ -9650,7 +9651,7 @@ __metadata: "@testing-library/react": "npm:^16.0.0" "@testing-library/user-event": "npm:^14.4.3" "@types/react-is": "npm:~18.3.0" - accessibility-checker: "npm:^3.1.48" + accessibility-checker: "npm:^3.1.78" all-contributors-cli: "npm:^6.19.0" cross-env: "npm:^7.0.0" cross-spawn: "npm:^7.0.0" @@ -12402,7 +12403,7 @@ __metadata: languageName: node linkType: hard -"es-abstract@npm:^1.17.0-next.1, es-abstract@npm:^1.17.2, es-abstract@npm:^1.20.4, es-abstract@npm:^1.22.1, es-abstract@npm:^1.22.3, es-abstract@npm:^1.23.0, es-abstract@npm:^1.23.2": +"es-abstract@npm:^1.17.0-next.1, es-abstract@npm:^1.17.2, es-abstract@npm:^1.20.4, es-abstract@npm:^1.22.1, es-abstract@npm:^1.22.3, es-abstract@npm:^1.23.0": version: 1.23.3 resolution: "es-abstract@npm:1.23.3" dependencies: @@ -12580,37 +12581,33 @@ __metadata: languageName: node linkType: hard -"esbuild@npm:^0.18.0 || ^0.19.0 || ^0.20.0 || ^0.21.0 || ^0.22.0 || ^0.23.0 || ^0.24.0, esbuild@npm:^0.24.0": - version: 0.24.0 - resolution: "esbuild@npm:0.24.0" - dependencies: - "@esbuild/aix-ppc64": "npm:0.24.0" - "@esbuild/android-arm": "npm:0.24.0" - "@esbuild/android-arm64": "npm:0.24.0" - "@esbuild/android-x64": "npm:0.24.0" - "@esbuild/darwin-arm64": "npm:0.24.0" - "@esbuild/darwin-x64": "npm:0.24.0" - "@esbuild/freebsd-arm64": "npm:0.24.0" - "@esbuild/freebsd-x64": "npm:0.24.0" - "@esbuild/linux-arm": "npm:0.24.0" - "@esbuild/linux-arm64": "npm:0.24.0" - "@esbuild/linux-ia32": "npm:0.24.0" - "@esbuild/linux-loong64": "npm:0.24.0" - "@esbuild/linux-mips64el": "npm:0.24.0" - "@esbuild/linux-ppc64": "npm:0.24.0" - "@esbuild/linux-riscv64": "npm:0.24.0" - "@esbuild/linux-s390x": "npm:0.24.0" - "@esbuild/linux-x64": "npm:0.24.0" - "@esbuild/netbsd-x64": "npm:0.24.0" - "@esbuild/openbsd-arm64": "npm:0.24.0" - "@esbuild/openbsd-x64": "npm:0.24.0" - "@esbuild/sunos-x64": "npm:0.24.0" - "@esbuild/win32-arm64": "npm:0.24.0" - "@esbuild/win32-ia32": "npm:0.24.0" - "@esbuild/win32-x64": "npm:0.24.0" +"esbuild@npm:^0.17.5": + version: 0.17.19 + resolution: "esbuild@npm:0.17.19" + dependencies: + "@esbuild/android-arm": "npm:0.17.19" + "@esbuild/android-arm64": "npm:0.17.19" + "@esbuild/android-x64": "npm:0.17.19" + "@esbuild/darwin-arm64": "npm:0.17.19" + "@esbuild/darwin-x64": "npm:0.17.19" + "@esbuild/freebsd-arm64": "npm:0.17.19" + "@esbuild/freebsd-x64": "npm:0.17.19" + "@esbuild/linux-arm": "npm:0.17.19" + "@esbuild/linux-arm64": "npm:0.17.19" + "@esbuild/linux-ia32": "npm:0.17.19" + "@esbuild/linux-loong64": "npm:0.17.19" + "@esbuild/linux-mips64el": "npm:0.17.19" + "@esbuild/linux-ppc64": "npm:0.17.19" + "@esbuild/linux-riscv64": "npm:0.17.19" + "@esbuild/linux-s390x": "npm:0.17.19" + "@esbuild/linux-x64": "npm:0.17.19" + "@esbuild/netbsd-x64": "npm:0.17.19" + "@esbuild/openbsd-x64": "npm:0.17.19" + "@esbuild/sunos-x64": "npm:0.17.19" + "@esbuild/win32-arm64": "npm:0.17.19" + "@esbuild/win32-ia32": "npm:0.17.19" + "@esbuild/win32-x64": "npm:0.17.19" dependenciesMeta: - "@esbuild/aix-ppc64": - optional: true "@esbuild/android-arm": optional: true "@esbuild/android-arm64": @@ -12645,8 +12642,6 @@ __metadata: optional: true "@esbuild/netbsd-x64": optional: true - "@esbuild/openbsd-arm64": - optional: true "@esbuild/openbsd-x64": optional: true "@esbuild/sunos-x64": @@ -12659,36 +12654,38 @@ __metadata: optional: true bin: esbuild: bin/esbuild - checksum: 10/500f83a1216d6548053007b85c070d8293395db344605b17418c6cf1217e5e8d338fa77fc8af27c23faa121c5528e5b0004d46d3a0cdeb87d48f1b5fa0164bc5 + checksum: 10/86ada7cad6d37a3445858fee31ca39fc6c0436c7c00b2e07b9ce308235be67f36aefe0dda25da9ab08653fde496d1e759d6ad891ce9479f9e1fb4964c8f2a0fa languageName: node linkType: hard -"esbuild@npm:^0.18.10": - version: 0.18.20 - resolution: "esbuild@npm:0.18.20" - dependencies: - "@esbuild/android-arm": "npm:0.18.20" - "@esbuild/android-arm64": "npm:0.18.20" - "@esbuild/android-x64": "npm:0.18.20" - "@esbuild/darwin-arm64": "npm:0.18.20" - "@esbuild/darwin-x64": "npm:0.18.20" - "@esbuild/freebsd-arm64": "npm:0.18.20" - "@esbuild/freebsd-x64": "npm:0.18.20" - "@esbuild/linux-arm": "npm:0.18.20" - "@esbuild/linux-arm64": "npm:0.18.20" - "@esbuild/linux-ia32": "npm:0.18.20" - "@esbuild/linux-loong64": "npm:0.18.20" - "@esbuild/linux-mips64el": "npm:0.18.20" - "@esbuild/linux-ppc64": "npm:0.18.20" - "@esbuild/linux-riscv64": "npm:0.18.20" - "@esbuild/linux-s390x": "npm:0.18.20" - "@esbuild/linux-x64": "npm:0.18.20" - "@esbuild/netbsd-x64": "npm:0.18.20" - "@esbuild/openbsd-x64": "npm:0.18.20" - "@esbuild/sunos-x64": "npm:0.18.20" - "@esbuild/win32-arm64": "npm:0.18.20" - "@esbuild/win32-ia32": "npm:0.18.20" - "@esbuild/win32-x64": "npm:0.18.20" +"esbuild@npm:^0.18.0 || ^0.19.0 || ^0.20.0 || ^0.21.0 || ^0.22.0 || ^0.23.0 || ^0.24.0, esbuild@npm:^0.24.0": + version: 0.24.0 + resolution: "esbuild@npm:0.24.0" + dependencies: + "@esbuild/aix-ppc64": "npm:0.24.0" + "@esbuild/android-arm": "npm:0.24.0" + "@esbuild/android-arm64": "npm:0.24.0" + "@esbuild/android-x64": "npm:0.24.0" + "@esbuild/darwin-arm64": "npm:0.24.0" + "@esbuild/darwin-x64": "npm:0.24.0" + "@esbuild/freebsd-arm64": "npm:0.24.0" + "@esbuild/freebsd-x64": "npm:0.24.0" + "@esbuild/linux-arm": "npm:0.24.0" + "@esbuild/linux-arm64": "npm:0.24.0" + "@esbuild/linux-ia32": "npm:0.24.0" + "@esbuild/linux-loong64": "npm:0.24.0" + "@esbuild/linux-mips64el": "npm:0.24.0" + "@esbuild/linux-ppc64": "npm:0.24.0" + "@esbuild/linux-riscv64": "npm:0.24.0" + "@esbuild/linux-s390x": "npm:0.24.0" + "@esbuild/linux-x64": "npm:0.24.0" + "@esbuild/netbsd-x64": "npm:0.24.0" + "@esbuild/openbsd-arm64": "npm:0.24.0" + "@esbuild/openbsd-x64": "npm:0.24.0" + "@esbuild/sunos-x64": "npm:0.24.0" + "@esbuild/win32-arm64": "npm:0.24.0" + "@esbuild/win32-ia32": "npm:0.24.0" + "@esbuild/win32-x64": "npm:0.24.0" dependenciesMeta: "@esbuild/android-arm": optional: true @@ -12736,7 +12733,7 @@ __metadata: optional: true bin: esbuild: bin/esbuild - checksum: 10/1f723ec71c3aa196473bf3298316eedc3f62d523924652dfeb60701b609792f918fc60db84b420d1d8ba9bfa7d69de2fc1d3157ba47c028bdae5d507a26a3c64 + checksum: 10/500f83a1216d6548053007b85c070d8293395db344605b17418c6cf1217e5e8d338fa77fc8af27c23faa121c5528e5b0004d46d3a0cdeb87d48f1b5fa0164bc5 languageName: node linkType: hard @@ -16384,9 +16381,9 @@ __metadata: linkType: hard "is-map@npm:^2.0.1, is-map@npm:^2.0.2": - version: 2.0.3 - resolution: "is-map@npm:2.0.3" - checksum: 10/8de7b41715b08bcb0e5edb0fb9384b80d2d5bcd10e142188f33247d19ff078abaf8e9b6f858e2302d8d05376a26a55cd23a3c9f8ab93292b02fcd2cc9e4e92bb + version: 2.0.2 + resolution: "is-map@npm:2.0.2" + checksum: 10/60ba910f835f2eacb1fdf5b5a6c60fe1c702d012a7673e6546992bcc0c873f62ada6e13d327f9e48f1720d49c152d6cdecae1fa47a261ef3d247c3ce6f0e1d39 languageName: node linkType: hard @@ -16570,9 +16567,9 @@ __metadata: linkType: hard "is-set@npm:^2.0.1, is-set@npm:^2.0.2": - version: 2.0.3 - resolution: "is-set@npm:2.0.3" - checksum: 10/5685df33f0a4a6098a98c72d94d67cad81b2bc72f1fb2091f3d9283c4a1c582123cd709145b02a9745f0ce6b41e3e43f1c944496d1d74d4ea43358be61308669 + version: 2.0.2 + resolution: "is-set@npm:2.0.2" + checksum: 10/d89e82acdc7760993474f529e043f9c4a1d63ed4774d21cc2e331d0e401e5c91c27743cd7c889137028f6a742234759a4bd602368fbdbf0b0321994aefd5603f languageName: node linkType: hard @@ -17013,7 +17010,7 @@ __metadata: "@babel/preset-env": "npm:^7.24.7" "@babel/preset-react": "npm:^7.24.7" "@babel/runtime": "npm:^7.24.7" - accessibility-checker: "npm:^3.1.74" + accessibility-checker: "npm:^3.1.78" axe-core: "npm:^4.3.5" babel-jest: "npm:^28.1.0" chalk: "npm:^4.1.1" @@ -17303,7 +17300,7 @@ __metadata: languageName: node linkType: hard -"jest-resolve@npm:^28.1.0, jest-resolve@npm:^28.1.3": +"jest-resolve@npm:^28.1.0": version: 28.1.3 resolution: "jest-resolve@npm:28.1.3" dependencies: @@ -17350,32 +17347,32 @@ __metadata: linkType: hard "jest-runtime@npm:^28.1.0": - version: 28.1.3 - resolution: "jest-runtime@npm:28.1.3" + version: 28.1.0 + resolution: "jest-runtime@npm:28.1.0" dependencies: - "@jest/environment": "npm:^28.1.3" - "@jest/fake-timers": "npm:^28.1.3" - "@jest/globals": "npm:^28.1.3" - "@jest/source-map": "npm:^28.1.2" - "@jest/test-result": "npm:^28.1.3" - "@jest/transform": "npm:^28.1.3" - "@jest/types": "npm:^28.1.3" + "@jest/environment": "npm:^28.1.0" + "@jest/fake-timers": "npm:^28.1.0" + "@jest/globals": "npm:^28.1.0" + "@jest/source-map": "npm:^28.0.2" + "@jest/test-result": "npm:^28.1.0" + "@jest/transform": "npm:^28.1.0" + "@jest/types": "npm:^28.1.0" chalk: "npm:^4.0.0" cjs-module-lexer: "npm:^1.0.0" collect-v8-coverage: "npm:^1.0.0" execa: "npm:^5.0.0" glob: "npm:^7.1.3" graceful-fs: "npm:^4.2.9" - jest-haste-map: "npm:^28.1.3" - jest-message-util: "npm:^28.1.3" - jest-mock: "npm:^28.1.3" + jest-haste-map: "npm:^28.1.0" + jest-message-util: "npm:^28.1.0" + jest-mock: "npm:^28.1.0" jest-regex-util: "npm:^28.0.2" - jest-resolve: "npm:^28.1.3" - jest-snapshot: "npm:^28.1.3" - jest-util: "npm:^28.1.3" + jest-resolve: "npm:^28.1.0" + jest-snapshot: "npm:^28.1.0" + jest-util: "npm:^28.1.0" slash: "npm:^3.0.0" strip-bom: "npm:^4.0.0" - checksum: 10/d3d91b3f1082bbe3f87dc11ad7abce12f323797d98b3fa5ef7fb5efbd6d30e42041e3732cb8be5d41f0c8d8312d14461381d829ed1fe4e3712cfc82ea4a586fc + checksum: 10/d24913fb5ad9710bf9f4df5d80dd0da4bbe274fe5b6932fe7e7c3ef959f7742344daeec558ad38ad3f290193ecedab829d417d9f07794a2a3ad82f12daab0429 languageName: node linkType: hard @@ -22488,7 +22485,7 @@ __metadata: languageName: node linkType: hard -"postcss@npm:^8.4.14, postcss@npm:^8.4.21, postcss@npm:^8.4.27, postcss@npm:^8.4.32, postcss@npm:^8.4.33, postcss@npm:^8.4.39, postcss@npm:^8.4.47, postcss@npm:^8.4.5": +"postcss@npm:^8.4.14, postcss@npm:^8.4.21, postcss@npm:^8.4.23, postcss@npm:^8.4.32, postcss@npm:^8.4.33, postcss@npm:^8.4.39, postcss@npm:^8.4.47, postcss@npm:^8.4.5": version: 8.4.47 resolution: "postcss@npm:8.4.47" dependencies: @@ -23995,9 +23992,9 @@ __metadata: languageName: node linkType: hard -"rollup@npm:^3.27.1": - version: 3.29.4 - resolution: "rollup@npm:3.29.4" +"rollup@npm:^3.21.0": + version: 3.22.0 + resolution: "rollup@npm:3.22.0" dependencies: fsevents: "npm:~2.3.2" dependenciesMeta: @@ -24005,7 +24002,7 @@ __metadata: optional: true bin: rollup: dist/bin/rollup - checksum: 10/9e39d54e23731a4c4067e9c02910cdf7479a0f9a7584796e2dc6efaa34bb1e5e015c062c87d1e64d96038baca76cefd47681ff22604fae5827147f54123dc6d0 + checksum: 10/e6b71b9e8b69b0fc4383be9f0347dcc8c647b342cae5679a89c1a26ae0f1308928d427acaf1c8fc76ddb06ee0966b044f728882478ef5964cc5f149f30e0d8d9 languageName: node linkType: hard @@ -27661,17 +27658,16 @@ __metadata: linkType: hard "vite@npm:^4.3.8": - version: 4.5.5 - resolution: "vite@npm:4.5.5" + version: 4.3.9 + resolution: "vite@npm:4.3.9" dependencies: - esbuild: "npm:^0.18.10" + esbuild: "npm:^0.17.5" fsevents: "npm:~2.3.2" - postcss: "npm:^8.4.27" - rollup: "npm:^3.27.1" + postcss: "npm:^8.4.23" + rollup: "npm:^3.21.0" peerDependencies: "@types/node": ">= 14" less: "*" - lightningcss: ^1.21.0 sass: "*" stylus: "*" sugarss: "*" @@ -27684,8 +27680,6 @@ __metadata: optional: true less: optional: true - lightningcss: - optional: true sass: optional: true stylus: @@ -27696,7 +27690,7 @@ __metadata: optional: true bin: vite: bin/vite.js - checksum: 10/2e8b39e004f2b2e72506b816700b3aafaf3f85bdcb9dd9392075bb234ce7333f859a0d2078a85ce5d0039f0f659ca564a7366af587848e5166f14b136cb0ad37 + checksum: 10/c2f0b392a253318a1d3ffc6873885d4a03c6bda6f717682bd0c82b7a431a67fb1ba08de6e1bf7f3f31bde1615015c5ef4be264f20c6e34c590d8a7c9516e94f4 languageName: node linkType: hard