diff --git a/package.json b/package.json index 2dca3f22c..93ca26ba7 100644 --- a/package.json +++ b/package.json @@ -86,9 +86,9 @@ "@types/node": "20.19.25", "@types/react": "18.3.23", "@types/react-dom": "18.3.7", - "@typescript-eslint/eslint-plugin": "8.46.2", - "@typescript-eslint/parser": "8.46.2", - "@typescript-eslint/types": "8.46.2", + "@typescript-eslint/eslint-plugin": "8.48.1", + "@typescript-eslint/parser": "8.48.1", + "@typescript-eslint/types": "8.48.1", "@vitejs/plugin-react": "5.1.1", "@yarnpkg/fslib": "3.1.4", "@yarnpkg/libzip": "3.2.2", @@ -108,7 +108,7 @@ "jest": "30.2.0", "jest-axe": "10.0.0", "jest-environment-jsdom": "30.2.0", - "prettier": "3.6.2", + "prettier": "3.7.4", "react": "18.3.1", "react-dom": "18.3.1", "react-intl": "6.7.1", diff --git a/src/components/breadcrumbs/BreadcrumbTypes.ts b/src/components/breadcrumbs/BreadcrumbTypes.ts index a0d9801b8..7c6b4a541 100644 --- a/src/components/breadcrumbs/BreadcrumbTypes.ts +++ b/src/components/breadcrumbs/BreadcrumbTypes.ts @@ -22,8 +22,7 @@ import { ReactNode } from 'react'; import { LinkBaseProps, LinkStandaloneBaseProps } from '../links/LinkTypes'; export interface BreadcrumbLinkProps - extends LinkStandaloneBaseProps, - Omit { + extends LinkStandaloneBaseProps, Omit { hasEllipsis?: boolean; linkElement: ReactNode; } diff --git a/src/components/buttons/Button.tsx b/src/components/buttons/Button.tsx index ef68bbc6a..f59a5b07b 100644 --- a/src/components/buttons/Button.tsx +++ b/src/components/buttons/Button.tsx @@ -49,9 +49,7 @@ interface CommonProps { } export interface ButtonAsButtonProps - extends CommonProps, - ButtonBaseProps, - LinkPropsForbiddenForButton {} + extends CommonProps, ButtonBaseProps, LinkPropsForbiddenForButton {} interface ButtonAsLinkProps extends CommonProps, ButtonAsLinkBaseProps {} diff --git a/src/components/buttons/ButtonAsLink.tsx b/src/components/buttons/ButtonAsLink.tsx index adc4bb861..8a0c83e90 100644 --- a/src/components/buttons/ButtonAsLink.tsx +++ b/src/components/buttons/ButtonAsLink.tsx @@ -61,9 +61,7 @@ type ButtonPropsForbiddenForLink = { }; export interface ButtonAsLinkBaseProps - extends ButtonCommonProps, - LinkPropsSubset, - ButtonPropsForbiddenForLink { + extends ButtonCommonProps, LinkPropsSubset, ButtonPropsForbiddenForLink { /** * The visual style variant of the link button (optional). * Limited to varieties appropriate for navigation elements. Default is `default`. diff --git a/src/components/buttons/ButtonIcon.tsx b/src/components/buttons/ButtonIcon.tsx index 568cb3716..c2f54c054 100644 --- a/src/components/buttons/ButtonIcon.tsx +++ b/src/components/buttons/ButtonIcon.tsx @@ -70,9 +70,7 @@ interface CommonProps { } export interface ButtonIconAsButtonProps - extends CommonProps, - ButtonBaseProps, - LinkPropsForbiddenForButton { + extends CommonProps, ButtonBaseProps, LinkPropsForbiddenForButton { /** * Accessible label for screen readers (required). * Since icon buttons have no visible text, this is essential for accessibility. diff --git a/src/components/checkbox-group/CheckboxGroup.tsx b/src/components/checkbox-group/CheckboxGroup.tsx index f4a752a7f..8ddfa27d5 100644 --- a/src/components/checkbox-group/CheckboxGroup.tsx +++ b/src/components/checkbox-group/CheckboxGroup.tsx @@ -203,9 +203,7 @@ type CheckboxOption = Pick< type FormFieldPropsSubset = Pick; interface CheckboxGroupPropsBase - extends RefAttributes, - ValidationProps, - FormFieldPropsSubset { + extends RefAttributes, ValidationProps, FormFieldPropsSubset { /** * Controls the alignment of the checkboxes in the group (optional). The * default is `vertical`. diff --git a/src/components/layout/global-navigation/GlobalNavigationItemsContainer.tsx b/src/components/layout/global-navigation/GlobalNavigationItemsContainer.tsx index 573adc7d6..808019553 100644 --- a/src/components/layout/global-navigation/GlobalNavigationItemsContainer.tsx +++ b/src/components/layout/global-navigation/GlobalNavigationItemsContainer.tsx @@ -23,8 +23,7 @@ import * as radixNavigationMenu from '@radix-ui/react-navigation-menu'; import { PropsWithChildren, forwardRef } from 'react'; import { cssVar } from '~utils/design-tokens'; -export interface GlobalNavigationItemsContainerProps - extends PropsWithChildren { +export interface GlobalNavigationItemsContainerProps extends PropsWithChildren { className?: string; } diff --git a/src/components/layout/sidebar-navigation/SidebarNavigationItem.tsx b/src/components/layout/sidebar-navigation/SidebarNavigationItem.tsx index 2fbb6fd6d..27acd75e7 100644 --- a/src/components/layout/sidebar-navigation/SidebarNavigationItem.tsx +++ b/src/components/layout/sidebar-navigation/SidebarNavigationItem.tsx @@ -41,8 +41,10 @@ import { const TOOLTIP_DELAY_IN_MS = 1000; -export interface SidebarNavigationItemProps - extends Pick { +export interface SidebarNavigationItemProps extends Pick< + NavLinkBaseProps, + 'isMatchingFullPath' | 'enableOpenInNewTab' | 'to' +> { ariaLabel?: string; /** * The label of the SidebarNavigationItem. diff --git a/src/components/layout/sidebar-navigation/__tests__/SidebarNavigationAccordionItem-test.tsx b/src/components/layout/sidebar-navigation/__tests__/SidebarNavigationAccordionItem-test.tsx index e2ff48611..45471613c 100644 --- a/src/components/layout/sidebar-navigation/__tests__/SidebarNavigationAccordionItem-test.tsx +++ b/src/components/layout/sidebar-navigation/__tests__/SidebarNavigationAccordionItem-test.tsx @@ -66,7 +66,7 @@ describe('ellipsis behavior', () => { const { user } = setupSidebarNavigationAccordionItem(); await user.hover(screen.getByRole('button')); - const tooltip = await screen.findByRole('tooltip'); + const tooltip = await screen.findByRole('tooltip', {}, { timeout: 2000 }); expect(tooltip).toBeInTheDocument(); expect(tooltip).toHaveTextContent('Accordion Item'); }); diff --git a/src/components/selection-cards/SelectionCards.tsx b/src/components/selection-cards/SelectionCards.tsx index 6b74d6885..7085c4c4a 100644 --- a/src/components/selection-cards/SelectionCards.tsx +++ b/src/components/selection-cards/SelectionCards.tsx @@ -35,11 +35,10 @@ export type SelectionCardOption = RadioOption & { illustration?: React.ReactNode; }; -interface BaseProps - extends Pick< - RadioButtonGroupProps, - 'alignment' | 'className' | 'isDisabled' | 'onChange' | 'value' - > { +interface BaseProps extends Pick< + RadioButtonGroupProps, + 'alignment' | 'className' | 'isDisabled' | 'onChange' | 'value' +> { /** * Callback fired when the selected card changes. * diff --git a/src/components/text-area/TextArea.tsx b/src/components/text-area/TextArea.tsx index a400ad113..74f7326c0 100644 --- a/src/components/text-area/TextArea.tsx +++ b/src/components/text-area/TextArea.tsx @@ -37,9 +37,7 @@ type InputAttributes = Pick< >; interface TextAreaPropsBase - extends InputProps, - InputAttributes, - InputEventProps { + extends InputProps, InputAttributes, InputEventProps { isResizable?: boolean; rows?: number; } diff --git a/src/components/text-input/TextInput.tsx b/src/components/text-input/TextInput.tsx index 4a6288f8d..581af04c7 100644 --- a/src/components/text-input/TextInput.tsx +++ b/src/components/text-input/TextInput.tsx @@ -47,9 +47,7 @@ type InputAttributes = Pick< >; interface TextInputPropsBase - extends InputProps, - InputAttributes, - InputEventProps { + extends InputProps, InputAttributes, InputEventProps { prefix?: ReactNode; suffix?: ReactNode; type?: 'email' | 'number' | 'password' | 'search' | 'tel' | 'text' | 'url'; diff --git a/yarn.lock b/yarn.lock index 6aa5f6580..2570b3bb9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4516,9 +4516,9 @@ __metadata: "@types/node": "npm:20.19.25" "@types/react": "npm:18.3.23" "@types/react-dom": "npm:18.3.7" - "@typescript-eslint/eslint-plugin": "npm:8.46.2" - "@typescript-eslint/parser": "npm:8.46.2" - "@typescript-eslint/types": "npm:8.46.2" + "@typescript-eslint/eslint-plugin": "npm:8.48.1" + "@typescript-eslint/parser": "npm:8.48.1" + "@typescript-eslint/types": "npm:8.48.1" "@vitejs/plugin-react": "npm:5.1.1" "@yarnpkg/fslib": "npm:3.1.4" "@yarnpkg/libzip": "npm:3.2.2" @@ -4539,7 +4539,7 @@ __metadata: jest: "npm:30.2.0" jest-axe: "npm:10.0.0" jest-environment-jsdom: "npm:30.2.0" - prettier: "npm:3.6.2" + prettier: "npm:3.7.4" react: "npm:18.3.1" react-dom: "npm:18.3.1" react-intl: "npm:6.7.1" @@ -5123,40 +5123,40 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/eslint-plugin@npm:8.46.2": - version: 8.46.2 - resolution: "@typescript-eslint/eslint-plugin@npm:8.46.2" +"@typescript-eslint/eslint-plugin@npm:8.48.1": + version: 8.48.1 + resolution: "@typescript-eslint/eslint-plugin@npm:8.48.1" dependencies: "@eslint-community/regexpp": "npm:^4.10.0" - "@typescript-eslint/scope-manager": "npm:8.46.2" - "@typescript-eslint/type-utils": "npm:8.46.2" - "@typescript-eslint/utils": "npm:8.46.2" - "@typescript-eslint/visitor-keys": "npm:8.46.2" + "@typescript-eslint/scope-manager": "npm:8.48.1" + "@typescript-eslint/type-utils": "npm:8.48.1" + "@typescript-eslint/utils": "npm:8.48.1" + "@typescript-eslint/visitor-keys": "npm:8.48.1" graphemer: "npm:^1.4.0" ignore: "npm:^7.0.0" natural-compare: "npm:^1.4.0" ts-api-utils: "npm:^2.1.0" peerDependencies: - "@typescript-eslint/parser": ^8.46.2 + "@typescript-eslint/parser": ^8.48.1 eslint: ^8.57.0 || ^9.0.0 typescript: ">=4.8.4 <6.0.0" - checksum: 10/00c659fcc04c185e6cdfb6c7e52beae1935f1475fef4079193a719f93858b6255e07b4764fc7104e9524a4d0b7652e63616b93e7f112f1cba4e983d10383e224 + checksum: 10/3ccf420805fb8adb2f3059fa26eb9c6211c0624966d8c8654a1bd586bf87f30be0c62524dfd785185ef573bedd91c42ec3c98c23aed5d60cb9ac583dd9334bc8 languageName: node linkType: hard -"@typescript-eslint/parser@npm:8.46.2": - version: 8.46.2 - resolution: "@typescript-eslint/parser@npm:8.46.2" +"@typescript-eslint/parser@npm:8.48.1": + version: 8.48.1 + resolution: "@typescript-eslint/parser@npm:8.48.1" dependencies: - "@typescript-eslint/scope-manager": "npm:8.46.2" - "@typescript-eslint/types": "npm:8.46.2" - "@typescript-eslint/typescript-estree": "npm:8.46.2" - "@typescript-eslint/visitor-keys": "npm:8.46.2" + "@typescript-eslint/scope-manager": "npm:8.48.1" + "@typescript-eslint/types": "npm:8.48.1" + "@typescript-eslint/typescript-estree": "npm:8.48.1" + "@typescript-eslint/visitor-keys": "npm:8.48.1" debug: "npm:^4.3.4" peerDependencies: eslint: ^8.57.0 || ^9.0.0 typescript: ">=4.8.4 <6.0.0" - checksum: 10/2ee394d880b5a9372ecf50ddbf70f66e9ecc16691a210dd40b5b152310a539005dfed13105e0adc81f1a9f49d86f7b78ddf3bf8d777fe84c179eb6a8be2fa56c + checksum: 10/d8409c9ede4b1cd2ad0e10e94bb00c54f79352f7d54c97bf24419cb983c19b9f6097e6c31b217ce7ec5cfc9a48117e732d9f88ce0cb8c0ccf7fc3faecdf854a3 languageName: node linkType: hard @@ -5173,16 +5173,16 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/project-service@npm:8.46.2": - version: 8.46.2 - resolution: "@typescript-eslint/project-service@npm:8.46.2" +"@typescript-eslint/project-service@npm:8.48.1": + version: 8.48.1 + resolution: "@typescript-eslint/project-service@npm:8.48.1" dependencies: - "@typescript-eslint/tsconfig-utils": "npm:^8.46.2" - "@typescript-eslint/types": "npm:^8.46.2" + "@typescript-eslint/tsconfig-utils": "npm:^8.48.1" + "@typescript-eslint/types": "npm:^8.48.1" debug: "npm:^4.3.4" peerDependencies: typescript: ">=4.8.4 <6.0.0" - checksum: 10/76ba446f86e83b4afd6dacbebc9a0737b5a3e0500a0712b37fea4f0141dcf4c9238e8e5a9a649cf609a4624cc575431506a2a56432aaa18d4c3a8cf2df9d1480 + checksum: 10/66ecc7ef9572748860517cde7fbfc335d05ca8c99dcf13ac6d728ac93388d90cdc3ebe2ff33a85c0a03487b3c1c4e36c6e3fe413ee16d8fb003621cb58e65e52 languageName: node linkType: hard @@ -5206,13 +5206,13 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/scope-manager@npm:8.46.2": - version: 8.46.2 - resolution: "@typescript-eslint/scope-manager@npm:8.46.2" +"@typescript-eslint/scope-manager@npm:8.48.1": + version: 8.48.1 + resolution: "@typescript-eslint/scope-manager@npm:8.48.1" dependencies: - "@typescript-eslint/types": "npm:8.46.2" - "@typescript-eslint/visitor-keys": "npm:8.46.2" - checksum: 10/6a8a9b644ff57ca9e992348553f19f6e010d76ff4872d972d333a16952e93cce4bf5096a1fefe1af8b452bce963fde6c78410d15817e673b75176ec3241949e9 + "@typescript-eslint/types": "npm:8.48.1" + "@typescript-eslint/visitor-keys": "npm:8.48.1" + checksum: 10/5040246220f9872ec47633297b7896ed5587af3163e06ddcb7ca0dcf1e171f359bd4f1c82f794a6adfecbccfb5ef437d51b522321034603c93ba1993c407bdf2 languageName: node linkType: hard @@ -5225,28 +5225,28 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/tsconfig-utils@npm:8.46.2, @typescript-eslint/tsconfig-utils@npm:^8.46.2": - version: 8.46.2 - resolution: "@typescript-eslint/tsconfig-utils@npm:8.46.2" +"@typescript-eslint/tsconfig-utils@npm:8.48.1, @typescript-eslint/tsconfig-utils@npm:^8.48.1": + version: 8.48.1 + resolution: "@typescript-eslint/tsconfig-utils@npm:8.48.1" peerDependencies: typescript: ">=4.8.4 <6.0.0" - checksum: 10/e459d131ca646cca6ad164593ca7e8c45ad3daa103a24e1e57fd47b5c1e5b5418948b749f02baa42e61103a496fc80d32ddd1841c11495bbcf37808b88bb0ef4 + checksum: 10/830bcd0e7628441f91899e8e24aaed66d32a239babcc205aba1d08c08ff5a636d8c04f96d9873578df59d7468fc4c5df032667764b3b2ee0a733af36fca21c4a languageName: node linkType: hard -"@typescript-eslint/type-utils@npm:8.46.2": - version: 8.46.2 - resolution: "@typescript-eslint/type-utils@npm:8.46.2" +"@typescript-eslint/type-utils@npm:8.48.1": + version: 8.48.1 + resolution: "@typescript-eslint/type-utils@npm:8.48.1" dependencies: - "@typescript-eslint/types": "npm:8.46.2" - "@typescript-eslint/typescript-estree": "npm:8.46.2" - "@typescript-eslint/utils": "npm:8.46.2" + "@typescript-eslint/types": "npm:8.48.1" + "@typescript-eslint/typescript-estree": "npm:8.48.1" + "@typescript-eslint/utils": "npm:8.48.1" debug: "npm:^4.3.4" ts-api-utils: "npm:^2.1.0" peerDependencies: eslint: ^8.57.0 || ^9.0.0 typescript: ">=4.8.4 <6.0.0" - checksum: 10/db5d3d782b44d31f828ebdbec44550c6f94fdcfac1164f59e3922f6413feed749d93df3977625fd5949aaff5c691cf4603a7cd93eaf7b19b9cf6fd91537fb8c7 + checksum: 10/6cf9370ac5437e2d64c71964646aed9e6c1ea3c7bb473258b50ae422106461d290f4215b9435b892a2dd563e3c31feb3169532375513b56b7e48f4a425283091 languageName: node linkType: hard @@ -5264,10 +5264,10 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/types@npm:8.46.2, @typescript-eslint/types@npm:^8.46.2": - version: 8.46.2 - resolution: "@typescript-eslint/types@npm:8.46.2" - checksum: 10/c641453c868b730ef64bd731cc47b19e1a5e45c090dfe9542ecd15b24c5a7b6dc94a8ef4e548b976aabcd1ca9dec1b766e417454b98ea59079795eb008226b38 +"@typescript-eslint/types@npm:8.48.1, @typescript-eslint/types@npm:^8.48.1": + version: 8.48.1 + resolution: "@typescript-eslint/types@npm:8.48.1" + checksum: 10/1aa1e3f25b429bcebd9eb45b5252d950f1b24dbc6014a47dff8d00547e2e1ac47f351846fb996b6ebd49da37a85394051d36191cbbbf2c431b8db9d95afd198d languageName: node linkType: hard @@ -5309,38 +5309,37 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/typescript-estree@npm:8.46.2": - version: 8.46.2 - resolution: "@typescript-eslint/typescript-estree@npm:8.46.2" +"@typescript-eslint/typescript-estree@npm:8.48.1": + version: 8.48.1 + resolution: "@typescript-eslint/typescript-estree@npm:8.48.1" dependencies: - "@typescript-eslint/project-service": "npm:8.46.2" - "@typescript-eslint/tsconfig-utils": "npm:8.46.2" - "@typescript-eslint/types": "npm:8.46.2" - "@typescript-eslint/visitor-keys": "npm:8.46.2" + "@typescript-eslint/project-service": "npm:8.48.1" + "@typescript-eslint/tsconfig-utils": "npm:8.48.1" + "@typescript-eslint/types": "npm:8.48.1" + "@typescript-eslint/visitor-keys": "npm:8.48.1" debug: "npm:^4.3.4" - fast-glob: "npm:^3.3.2" - is-glob: "npm:^4.0.3" minimatch: "npm:^9.0.4" semver: "npm:^7.6.0" + tinyglobby: "npm:^0.2.15" ts-api-utils: "npm:^2.1.0" peerDependencies: typescript: ">=4.8.4 <6.0.0" - checksum: 10/4d2149ad97e7f7e2e4cf466932f52f38e90414d47341c5938e497fd0826d403db9896bbd5cc08e7488ad0d0ffb3817e6f18e9f0c623d8a8cda09af204f81aab8 + checksum: 10/485aa44d22453396dbe61c560c6f583bf876f971d9e70773093cd729279f88184cf5793bf706033bbd8465cce6f9d045b63574727d58d5996519c29e1adbbfe5 languageName: node linkType: hard -"@typescript-eslint/utils@npm:8.46.2": - version: 8.46.2 - resolution: "@typescript-eslint/utils@npm:8.46.2" +"@typescript-eslint/utils@npm:8.48.1": + version: 8.48.1 + resolution: "@typescript-eslint/utils@npm:8.48.1" dependencies: "@eslint-community/eslint-utils": "npm:^4.7.0" - "@typescript-eslint/scope-manager": "npm:8.46.2" - "@typescript-eslint/types": "npm:8.46.2" - "@typescript-eslint/typescript-estree": "npm:8.46.2" + "@typescript-eslint/scope-manager": "npm:8.48.1" + "@typescript-eslint/types": "npm:8.48.1" + "@typescript-eslint/typescript-estree": "npm:8.48.1" peerDependencies: eslint: ^8.57.0 || ^9.0.0 typescript: ">=4.8.4 <6.0.0" - checksum: 10/91f6216f858161c3f59b2e035e0abce68fcdc9fbe45cb693a111c11ce5352c42fe0b1145a91e538c5459ff81b5e3741a4b38189b97e0e1a756567b6467c7b6c9 + checksum: 10/34afe5cf78020b682473e6529d6268eb8015bdb020a3c5303c4abb230d4d7c39e6fc8b9df58d1f0f35a1ceeb5d6182e71e42fe7a28dde8ffc31f8560f2dacc7c languageName: node linkType: hard @@ -5397,13 +5396,13 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/visitor-keys@npm:8.46.2": - version: 8.46.2 - resolution: "@typescript-eslint/visitor-keys@npm:8.46.2" +"@typescript-eslint/visitor-keys@npm:8.48.1": + version: 8.48.1 + resolution: "@typescript-eslint/visitor-keys@npm:8.48.1" dependencies: - "@typescript-eslint/types": "npm:8.46.2" + "@typescript-eslint/types": "npm:8.48.1" eslint-visitor-keys: "npm:^4.2.1" - checksum: 10/4352629a33bc1619dc78d55eaec382be4c7e1059af02660f62bfdb22933021deaf98504d4030b8db74ec122e6d554e9015341f87aed729fb70fae613f12f55a4 + checksum: 10/63aa165c57e6b38700adf84da2e90537577cdeb69d05031e3e70785fa412d96d539dc4c1696a0b7bc93284613f8b92fb1bb40f6068bb75347a942120b246ac60 languageName: node linkType: hard @@ -11102,12 +11101,12 @@ __metadata: languageName: node linkType: hard -"prettier@npm:3.6.2, prettier@npm:^3.3.3": - version: 3.6.2 - resolution: "prettier@npm:3.6.2" +"prettier@npm:3.7.4": + version: 3.7.4 + resolution: "prettier@npm:3.7.4" bin: prettier: bin/prettier.cjs - checksum: 10/1213691706bcef1371d16ef72773c8111106c3533b660b1cc8ec158bd109cdf1462804125f87f981f23c4a3dba053b6efafda30ab0114cc5b4a725606bb9ff26 + checksum: 10/b4d00ea13baed813cb777c444506632fb10faaef52dea526cacd03085f01f6db11fc969ccebedf05bf7d93c3960900994c6adf1b150e28a31afd5cfe7089b313 languageName: node linkType: hard @@ -11120,6 +11119,15 @@ __metadata: languageName: node linkType: hard +"prettier@npm:^3.3.3": + version: 3.6.2 + resolution: "prettier@npm:3.6.2" + bin: + prettier: bin/prettier.cjs + checksum: 10/1213691706bcef1371d16ef72773c8111106c3533b660b1cc8ec158bd109cdf1462804125f87f981f23c4a3dba053b6efafda30ab0114cc5b4a725606bb9ff26 + languageName: node + linkType: hard + "pretty-format@npm:30.0.0, pretty-format@npm:^30.0.0": version: 30.0.0 resolution: "pretty-format@npm:30.0.0"