@eclass/ui-kit 1.42.0 → 1.42.1

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.
@@ -13,6 +13,7 @@ export interface propsBaseBtns {
13
13
  isLoading?: boolean;
14
14
  onClick?: (e: React.MouseEvent<HTMLElement>) => void;
15
15
  rightIcon?: React.ReactElement;
16
+ role?: 'button' | 'link';
16
17
  size?: 'regular' | 'small';
17
18
  type?: 'button' | 'submit' | 'reset';
18
19
  tabIndex?: number;
@@ -35,7 +36,7 @@ interface props extends propsBaseBtns {
35
36
  *
36
37
  * @example <Btn>Lorem</Btn>
37
38
  */
38
- export declare function Btn({ ariaLabel, bg, borderColorActive, children, color, disabled, fillLoader, id, isFullWidth, isLoading, leftIcon, m, onClick, rightIcon, rounded, size, touchDark, type, tabIndex, }: props): JSX.Element;
39
+ export declare function Btn({ ariaLabel, bg, borderColorActive, children, color, disabled, fillLoader, id, isFullWidth, isLoading, leftIcon, m, onClick, rightIcon, role, rounded, size, touchDark, type, tabIndex, }: props): JSX.Element;
39
40
  export declare namespace Btn {
40
41
  var displayName: string;
41
42
  }
@@ -8,10 +8,11 @@ export interface props {
8
8
  id?: string;
9
9
  m?: string;
10
10
  onClick?: (e: React.MouseEvent<HTMLElement>) => void;
11
+ role?: 'button' | 'link';
11
12
  tabIndex?: number;
12
13
  textDecorationLine?: boolean;
13
14
  }
14
- export declare function BtnLink({ as, ariaLabel, children, fontSize, href, id, m, onClick, tabIndex, textDecorationLine, }: props): JSX.Element;
15
+ export declare function BtnLink({ as, ariaLabel, children, fontSize, href, id, m, onClick, role, tabIndex, textDecorationLine, }: props): JSX.Element;
15
16
  export declare namespace BtnLink {
16
17
  var displayName: string;
17
18
  }
@@ -17,7 +17,7 @@ interface ButtonWithoutTextProps extends propsBaseBtns {
17
17
  ariaLabel: string;
18
18
  }
19
19
  declare type PrimaryButtonProps = XOR<ButtonWithTextProps, ButtonWithoutTextProps>;
20
- export declare function BtnPrimary({ ariaLabel, children, disabled, isFullWidth, leftIcon, m, isLoading, onClick, rightIcon, size, type, tabIndex, id, }: PrimaryButtonProps): JSX.Element;
20
+ export declare function BtnPrimary({ ariaLabel, children, disabled, isFullWidth, leftIcon, m, isLoading, onClick, rightIcon, role, size, type, tabIndex, id, }: PrimaryButtonProps): JSX.Element;
21
21
  export declare namespace BtnPrimary {
22
22
  var displayName: string;
23
23
  }
@@ -17,7 +17,7 @@ interface ButtonWithoutTextProps extends propsBaseBtns {
17
17
  ariaLabel: string;
18
18
  }
19
19
  declare type SecondaryButtonProps = XOR<ButtonWithTextProps, ButtonWithoutTextProps>;
20
- export declare function BtnSecondary({ ariaLabel, children, disabled, isFullWidth, leftIcon, m, isLoading, onClick, rightIcon, size, type, tabIndex, id, }: SecondaryButtonProps): JSX.Element;
20
+ export declare function BtnSecondary({ ariaLabel, children, disabled, isFullWidth, leftIcon, m, isLoading, onClick, rightIcon, role, size, type, tabIndex, id, }: SecondaryButtonProps): JSX.Element;
21
21
  export declare namespace BtnSecondary {
22
22
  var displayName: string;
23
23
  }
@@ -10,6 +10,7 @@ export interface propsTertiaryBtn {
10
10
  onMouseEnter?: (e: React.MouseEvent<HTMLElement>) => void;
11
11
  onMouseLeave?: (e: React.MouseEvent<HTMLElement>) => void;
12
12
  rightIcon?: boolean;
13
+ role?: 'button' | 'link';
13
14
  type?: 'button' | 'submit' | 'reset';
14
15
  tabIndex?: number;
15
16
  withoutColor?: boolean;
@@ -23,7 +24,7 @@ interface ButtonWithoutTextProps extends propsTertiaryBtn {
23
24
  ariaLabel: string;
24
25
  }
25
26
  declare type ButtonProps = XOR<ButtonWithTextProps, ButtonWithoutTextProps>;
26
- export declare function BtnTertiary({ ariaLabel, activeWhenPress, children, id, iconStatus, iconCustom, m, onClick, onMouseEnter, onMouseLeave, rightIcon, type, tabIndex, withoutColor, }: ButtonProps): JSX.Element;
27
+ export declare function BtnTertiary({ ariaLabel, activeWhenPress, children, id, iconStatus, iconCustom, m, onClick, onMouseEnter, onMouseLeave, rightIcon, role, type, tabIndex, withoutColor, }: ButtonProps): JSX.Element;
27
28
  export declare namespace BtnTertiary {
28
29
  var displayName: string;
29
30
  }