Multi-select forwarding and deleting

This commit is contained in:
Jamie Kyle 2023-03-20 15:23:53 -07:00 committed by GitHub
parent d986356eea
commit 1d549a9991
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
82 changed files with 2607 additions and 991 deletions

View file

@ -50,6 +50,7 @@ type PropsType = {
tabIndex?: number;
theme?: Theme;
variant?: ButtonVariant;
'aria-disabled'?: boolean;
} & (
| {
onClick: MouseEventHandler<HTMLButtonElement>;
@ -115,6 +116,7 @@ export const Button = React.forwardRef<HTMLButtonElement, PropsType>(
: ButtonSize.Medium,
} = props;
const ariaLabel = props['aria-label'];
const ariaDisabled = props['aria-disabled'];
let onClick: undefined | MouseEventHandler<HTMLButtonElement>;
let type: 'button' | 'submit';
@ -137,6 +139,7 @@ export const Button = React.forwardRef<HTMLButtonElement, PropsType>(
const buttonElement = (
<button
aria-label={ariaLabel}
aria-disabled={ariaDisabled}
className={classNames(
'module-Button',
sizeClassName,