@js-smart/react-kit 5.14.0 → 5.16.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.
@@ -12,6 +12,7 @@ type DismissibleAlertProps = {
12
12
  dismissible?: boolean;
13
13
  dismissOnTimeOut?: boolean;
14
14
  dismissTimeOut?: number;
15
+ ariaLabel?: string;
15
16
  };
16
17
  export declare function DismissibleAlert(props: Readonly<DismissibleAlertProps>): import("react/jsx-runtime").JSX.Element;
17
18
  export {};
@@ -4,6 +4,7 @@ interface Props {
4
4
  linkText?: string;
5
5
  target?: string;
6
6
  children?: React.ReactNode;
7
+ ariaLabel?: string;
7
8
  }
8
9
  /**
9
10
  * Reusable custom Next.js 13 Link component.
@@ -4,6 +4,7 @@ interface Props {
4
4
  linkText: string;
5
5
  target: string;
6
6
  children?: React.ReactNode;
7
+ ariaLabel?: string;
7
8
  }
8
9
  /**
9
10
  * Reusable component to open a link in new tab and show open new icon at the end
@@ -17,6 +17,7 @@ interface CancelButtonProps {
17
17
  color?: 'inherit' | 'primary' | 'secondary' | 'success' | 'error' | 'info' | 'warning';
18
18
  onClick: () => void;
19
19
  startIcon?: React.ReactNode;
20
+ ariaLabel?: string;
20
21
  }
21
22
  /**
22
23
  * Reusable Cancel Button component
@@ -11,6 +11,7 @@ interface DeleteButtonProps {
11
11
  dataCy?: string;
12
12
  startIcon?: React.ReactNode;
13
13
  onClick: () => void;
14
+ ariaLabel?: string;
14
15
  }
15
16
  export declare function DeleteButton(props: DeleteButtonProps): import("react/jsx-runtime").JSX.Element;
16
17
  export {};
@@ -3,6 +3,7 @@ interface EditIconButtonProps {
3
3
  tooltipTitle: string;
4
4
  onClick: React.Dispatch<React.SetStateAction<boolean>>;
5
5
  color?: 'inherit' | 'default' | 'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning';
6
+ ariaLabel?: string;
6
7
  }
7
8
  export declare function EditIconButton(props: Readonly<EditIconButtonProps>): import("react/jsx-runtime").JSX.Element;
8
9
  export {};
@@ -15,6 +15,7 @@ interface SuccessButtonProps {
15
15
  onClick: () => void;
16
16
  startIcon?: React.ReactNode;
17
17
  dataCy?: string;
18
+ ariaLabel?: string;
18
19
  }
19
20
  /**
20
21
  * Reusable Excel Button component
@@ -5,6 +5,7 @@ interface GoBackButtonProps {
5
5
  children?: React.ReactNode;
6
6
  navigate: NavigateFunction;
7
7
  color?: 'inherit' | 'primary' | 'secondary' | 'success' | 'error' | 'info' | 'warning';
8
+ ariaLabel?: string;
8
9
  }
9
10
  export declare function GoBackButton(props: GoBackButtonProps): import("react/jsx-runtime").JSX.Element;
10
11
  export {};
@@ -17,6 +17,7 @@ interface HistoryButtonProps {
17
17
  startIcon?: React.ReactNode;
18
18
  variant?: 'text' | 'outlined' | 'contained';
19
19
  color?: 'inherit' | 'primary' | 'secondary' | 'success' | 'error' | 'info' | 'warning';
20
+ ariaLabel?: string;
20
21
  }
21
22
  /**
22
23
  * Reusable History Button component
@@ -17,6 +17,7 @@ interface Props {
17
17
  onClick?: () => void;
18
18
  variant?: 'text' | 'outlined' | 'contained';
19
19
  color?: 'inherit' | 'primary' | 'secondary' | 'success' | 'error' | 'info' | 'warning';
20
+ ariaLabel?: string;
20
21
  }
21
22
  /**
22
23
  * Reusable Success Loading Button
@@ -9,6 +9,7 @@ interface ManageButtonProps {
9
9
  startIcon?: React.ReactNode;
10
10
  onClick: () => void;
11
11
  children?: React.ReactNode;
12
+ ariaLabel?: string;
12
13
  }
13
14
  export declare function ManageButton(props: ManageButtonProps): import("react/jsx-runtime").JSX.Element;
14
15
  export {};
@@ -17,6 +17,7 @@ interface SuccessButtonProps {
17
17
  startIcon?: React.ReactNode;
18
18
  variant?: 'text' | 'outlined' | 'contained';
19
19
  color?: 'inherit' | 'primary' | 'secondary' | 'success' | 'error' | 'info' | 'warning';
20
+ ariaLabel?: string;
20
21
  }
21
22
  /**
22
23
  * Reusable Success Button component
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@js-smart/react-kit",
3
3
  "private": false,
4
- "version": "5.14.0",
4
+ "version": "5.16.0",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
7
7
  "publishConfig": {
@@ -19,6 +19,7 @@
19
19
  },
20
20
  "exports": {
21
21
  ".": {
22
+ "types": "./index.d.ts",
22
23
  "import": "./index.mjs",
23
24
  "require": "./index.js"
24
25
  }