@indico-data/design-system 3.12.0 → 3.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indico-data/design-system",
3
- "version": "3.12.0",
3
+ "version": "3.13.0",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "main": "lib/index.js",
@@ -17,10 +17,7 @@ export const Button = forwardRef<HTMLButtonElement, ButtonProps>((props, ref) =>
17
17
  onClick,
18
18
  type = 'button',
19
19
  size = 'md',
20
- onMouseEnter,
21
20
  onMouseExit,
22
- onKeyDown,
23
- onBlur,
24
21
  className,
25
22
  href,
26
23
  ...rest
@@ -55,10 +52,7 @@ export const Button = forwardRef<HTMLButtonElement, ButtonProps>((props, ref) =>
55
52
  aria-disabled={isLoading || isDisabled}
56
53
  aria-busy={isLoading}
57
54
  type={type}
58
- onMouseEnter={onMouseEnter}
59
55
  onMouseLeave={onMouseExit}
60
- onKeyDown={onKeyDown}
61
- onBlur={onBlur}
62
56
  {...rest}
63
57
  >
64
58
  {/* Loading Icon on the left (default) */}
@@ -6,39 +6,15 @@ export type ButtonSizes = 'xs' | 'sm' | 'md' | 'lg';
6
6
 
7
7
  export type ButtonTypes = 'button' | 'submit' | 'reset';
8
8
 
9
- export interface ButtonProps {
10
- /**
11
- * The class name to apply to the button
12
- */
13
- className?: string;
9
+ export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
14
10
  /**
15
11
  * The aria-label to apply to the button
16
12
  */
17
13
  ariaLabel: string;
18
- /**
19
- * The children to apply to the button
20
- */
21
- children?: React.ReactNode | React.ReactNode[];
22
- /**
23
- * The function to call when the mouse enters the button
24
- */
25
- onMouseEnter?: (event: React.MouseEvent<HTMLButtonElement>) => void;
26
14
  /**
27
15
  * The function to call when the mouse exits the button
28
16
  */
29
17
  onMouseExit?: (event: React.MouseEvent<HTMLButtonElement>) => void;
30
- /**
31
- * The function to call when the button loses focus
32
- */
33
- onBlur?: (event: React.FocusEvent<HTMLButtonElement>) => void;
34
- /**
35
- * The function to call when the button is clicked
36
- */
37
- onClick?: (...args: any[]) => void;
38
- /**
39
- * The function to call when the button is pressed
40
- */
41
- onKeyDown?: (event: React.KeyboardEvent<HTMLButtonElement>) => void;
42
18
  /**
43
19
  * Determines the visual style and emphasis level of the button
44
20
  */