Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
3 changes: 1 addition & 2 deletions src/components/breadcrumbs/BreadcrumbTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ import { ReactNode } from 'react';
import { LinkBaseProps, LinkStandaloneBaseProps } from '../links/LinkTypes';

export interface BreadcrumbLinkProps
extends LinkStandaloneBaseProps,
Omit<LinkBaseProps, 'children'> {
extends LinkStandaloneBaseProps, Omit<LinkBaseProps, 'children'> {
hasEllipsis?: boolean;
linkElement: ReactNode;
}
Expand Down
4 changes: 1 addition & 3 deletions src/components/buttons/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@ interface CommonProps {
}

export interface ButtonAsButtonProps
extends CommonProps,
ButtonBaseProps,
LinkPropsForbiddenForButton {}
extends CommonProps, ButtonBaseProps, LinkPropsForbiddenForButton {}

interface ButtonAsLinkProps extends CommonProps, ButtonAsLinkBaseProps {}

Expand Down
4 changes: 1 addition & 3 deletions src/components/buttons/ButtonAsLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down
4 changes: 1 addition & 3 deletions src/components/buttons/ButtonIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 1 addition & 3 deletions src/components/checkbox-group/CheckboxGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,7 @@ type CheckboxOption<T = unknown> = Pick<
type FormFieldPropsSubset = Pick<FormFieldProps, 'helpToggletipProps' | 'isRequired' | 'width'>;

interface CheckboxGroupPropsBase<T>
extends RefAttributes<HTMLDivElement>,
ValidationProps,
FormFieldPropsSubset {
extends RefAttributes<HTMLDivElement>, ValidationProps, FormFieldPropsSubset {
/**
* Controls the alignment of the checkboxes in the group (optional). The
* default is `vertical`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<radixNavigationMenu.NavigationMenuProps> {
export interface GlobalNavigationItemsContainerProps extends PropsWithChildren<radixNavigationMenu.NavigationMenuProps> {
className?: string;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@ import {

const TOOLTIP_DELAY_IN_MS = 1000;

export interface SidebarNavigationItemProps
extends Pick<NavLinkBaseProps, 'isMatchingFullPath' | 'enableOpenInNewTab' | 'to'> {
export interface SidebarNavigationItemProps extends Pick<
NavLinkBaseProps,
'isMatchingFullPath' | 'enableOpenInNewTab' | 'to'
> {
ariaLabel?: string;
/**
* The label of the SidebarNavigationItem.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
Expand Down
9 changes: 4 additions & 5 deletions src/components/selection-cards/SelectionCards.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
4 changes: 1 addition & 3 deletions src/components/text-area/TextArea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ type InputAttributes = Pick<
>;

interface TextAreaPropsBase
extends InputProps,
InputAttributes,
InputEventProps<HTMLTextAreaElement> {
extends InputProps, InputAttributes, InputEventProps<HTMLTextAreaElement> {
isResizable?: boolean;
rows?: number;
}
Expand Down
4 changes: 1 addition & 3 deletions src/components/text-input/TextInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@ type InputAttributes = Pick<
>;

interface TextInputPropsBase
extends InputProps,
InputAttributes,
InputEventProps<HTMLInputElement> {
extends InputProps, InputAttributes, InputEventProps<HTMLInputElement> {
prefix?: ReactNode;
suffix?: ReactNode;
type?: 'email' | 'number' | 'password' | 'search' | 'tel' | 'text' | 'url';
Expand Down
Loading