etudes 16.0.2 → 17.0.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.
@@ -1,22 +1,9 @@
1
1
  import { AnchorHTMLAttributes, ButtonHTMLAttributes } from 'react';
2
- import { LinkProps, NavLinkProps } from 'react-router';
3
2
  type ButtonVariantProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'aria-disabled' | 'aria-label' | 'disabled' | 'rel' | 'onClick'> & {
4
3
  action: () => void;
5
4
  isDisabled?: boolean;
6
5
  label?: string;
7
6
  };
8
- type LinkVariantProps = Omit<LinkProps, 'aria-disabled' | 'aria-label' | 'rel' | 'to' | 'type' | 'onClick'> & {
9
- action: string;
10
- isDisabled?: boolean;
11
- isNav?: false;
12
- label?: string;
13
- };
14
- type NavLinkVariantProps = Omit<NavLinkProps, 'aria-disabled' | 'aria-label' | 'rel' | 'to' | 'target' | 'type' | 'onClick'> & {
15
- action: string;
16
- isDisabled?: boolean;
17
- isNav: true;
18
- label?: string;
19
- };
20
7
  type AnchorVariantProps = Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'aria-disabled' | 'aria-label' | 'href' | 'rel' | 'target' | 'type' | 'onClick'> & {
21
8
  action: string;
22
9
  isDisabled?: boolean;
@@ -26,7 +13,7 @@ type AnchorVariantProps = Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'aria-di
26
13
  /**
27
14
  * Type describing the props of {@link Button}.
28
15
  */
29
- export type ButtonProps = AnchorVariantProps | LinkVariantProps | NavLinkVariantProps | ButtonVariantProps;
16
+ export type ButtonProps = AnchorVariantProps | ButtonVariantProps;
30
17
  /**
31
18
  * A button component that can be used as a {@link Link}, {@link NavLink},
32
19
  * {@link HTMLAnchorElement}, or {@link HTMLButtonElement} depending on the