@js-smart/react-kit 4.2.0 → 4.4.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,5 +1,4 @@
1
1
  import { AlertColor } from '@mui/material';
2
-
3
2
  /**
4
3
  * Dismissible Alert properties
5
4
  *
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  /**
4
3
  * Reusable custom Next.js 13 Link component.
5
4
  *
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  interface OpenInNewIconLinkProps {
4
3
  href: string;
5
4
  linkText: string;
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  /**
4
3
  * Reusable If component, that renders content if the condition is true. Similar to *ngIf from Angular
5
4
  *
@@ -11,4 +10,4 @@ import { default as React } from 'react';
11
10
  export declare function ReactIf(props: {
12
11
  condition: boolean | undefined;
13
12
  children: React.ReactNode;
14
- }): React.JSX.Element;
13
+ }): React.ReactNode;
@@ -1,6 +1,5 @@
1
1
  import { default as React } from 'react';
2
2
  import { SxProps, Theme } from '@mui/material';
3
-
4
3
  /**
5
4
  * Reusable Success Button component properties
6
5
  *
@@ -10,6 +9,7 @@ import { SxProps, Theme } from '@mui/material';
10
9
  interface CancelButtonProps {
11
10
  children?: React.ReactNode;
12
11
  className?: string;
12
+ name?: string;
13
13
  dataCy?: string;
14
14
  sx?: SxProps<Theme>;
15
15
  type?: 'button' | 'submit' | 'reset';
@@ -1,11 +1,11 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  interface DeleteButtonProps {
4
3
  loading: boolean;
5
4
  label?: string;
6
5
  loadingLabel?: string;
7
6
  loadingPosition?: 'start' | 'end' | 'center';
8
7
  type?: 'button' | 'submit' | 'reset' | undefined;
8
+ name?: string;
9
9
  dataCy?: string;
10
10
  startIcon?: React.ReactNode;
11
11
  onClick: () => void;
@@ -1,6 +1,5 @@
1
1
  import { default as React } from 'react';
2
2
  import { SxProps, Theme } from '@mui/material';
3
-
4
3
  /**
5
4
  * Reusable Excel Button component properties
6
5
  *
@@ -10,6 +9,7 @@ import { SxProps, Theme } from '@mui/material';
10
9
  interface SuccessButtonProps {
11
10
  children?: React.ReactNode;
12
11
  className?: string;
12
+ name?: string;
13
13
  sx?: SxProps<Theme>;
14
14
  type?: 'button' | 'submit' | 'reset';
15
15
  onClick: () => void;
@@ -1,7 +1,7 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  interface GoBackButtonProps {
4
3
  onClick: () => void;
4
+ name?: string;
5
5
  children?: React.ReactNode;
6
6
  }
7
7
  export declare function GoBackButton(props: GoBackButtonProps): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,5 @@
1
1
  import { default as React } from 'react';
2
2
  import { SxProps, Theme } from '@mui/material';
3
-
4
3
  /**
5
4
  * Reusable History Button component properties
6
5
  *
@@ -10,6 +9,7 @@ import { SxProps, Theme } from '@mui/material';
10
9
  interface HistoryButtonProps {
11
10
  children?: React.ReactNode;
12
11
  className?: string;
12
+ name?: string;
13
13
  dataCy?: string;
14
14
  sx?: SxProps<Theme>;
15
15
  type?: 'button' | 'submit' | 'reset';
@@ -1,6 +1,5 @@
1
1
  import { default as React } from 'react';
2
2
  import { SxProps, Theme } from '@mui/material';
3
-
4
3
  /**
5
4
  * Reusable Success Button component properties
6
5
  *
@@ -10,6 +9,7 @@ import { SxProps, Theme } from '@mui/material';
10
9
  interface Props {
11
10
  children?: React.ReactNode;
12
11
  type?: 'button' | 'submit' | 'reset';
12
+ name?: string;
13
13
  loading: boolean;
14
14
  dataCy?: string;
15
15
  startIcon?: React.ReactNode;
@@ -1,7 +1,7 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  interface ManageButtonProps {
4
3
  size?: 'small' | 'medium' | 'large';
4
+ name?: string;
5
5
  dataCy?: string;
6
6
  startIcon?: React.ReactNode;
7
7
  onClick: () => void;
@@ -1,6 +1,5 @@
1
1
  import { default as React } from 'react';
2
2
  import { SxProps, Theme } from '@mui/material';
3
-
4
3
  /**
5
4
  * Reusable Success Button component properties
6
5
  *
@@ -10,6 +9,7 @@ import { SxProps, Theme } from '@mui/material';
10
9
  interface SuccessButtonProps {
11
10
  children?: React.ReactNode;
12
11
  className?: string;
12
+ name?: string;
13
13
  dataCy?: string;
14
14
  sx?: SxProps<Theme>;
15
15
  type?: 'button' | 'submit' | 'reset';
@@ -1,5 +1,4 @@
1
1
  import { ProgressState } from '../../types/ProgressState';
2
-
3
2
  export declare const AppSnackBar: (props: {
4
3
  open: boolean;
5
4
  progressState: ProgressState;
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  interface TablePaginationActionsProps {
4
3
  count: number;
5
4
  page: number;
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export declare function TabPanel(props: TabPanelProps): import("react/jsx-runtime").JSX.Element;
4
3
  export declare function a11yProps(index: number): {
5
4
  id: string;
@@ -1,5 +1,4 @@
1
1
  import { ProgressState } from '../types/ProgressState';
2
-
3
2
  /**
4
3
  * Initialize Loading or Update ProgressState
5
4
  *
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@js-smart/react-kit",
3
3
  "private": false,
4
- "version": "4.2.0",
4
+ "version": "4.4.0",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
7
7
  "publishConfig": {