@kashifd/jwero-components 0.7.38 → 0.7.39

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.
@@ -17,7 +17,7 @@ type JweroChipsType = {
17
17
  onClose?: () => void;
18
18
  labelProps?: Omit<CustomTypographyProps, "children">;
19
19
  isChecked?: boolean;
20
- value: string;
20
+ value?: string;
21
21
  avatarProps?: Omit<JweroUserAvatarType, "children">;
22
22
  customLabel?: React.ReactNode;
23
23
  };
@@ -1,8 +1,8 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { CustomTypographyProps } from '../JweroTypography';
3
- type OptionType = {
3
+ export type OptionType = {
4
4
  label: string;
5
- value: string;
5
+ value: string | number;
6
6
  disableProps?: {
7
7
  disable?: boolean;
8
8
  disableText?: string;
@@ -1,7 +1,9 @@
1
+ import { SxProps } from '@mui/material';
1
2
  export type JweroPaginationType = {
2
3
  currentPage?: number;
3
4
  totalPages?: number;
4
5
  onChange?: (event: React.ChangeEvent<unknown>, page: number) => void;
6
+ sx?: SxProps;
5
7
  };
6
- declare const JweroPagination: ({ currentPage, totalPages, onChange, }: JweroPaginationType) => import("react/jsx-runtime").JSX.Element;
8
+ declare const JweroPagination: ({ currentPage, totalPages, onChange, sx, }: JweroPaginationType) => import("react/jsx-runtime").JSX.Element;
7
9
  export default JweroPagination;
@@ -0,0 +1,10 @@
1
+ import { SxProps } from '@mui/material';
2
+ import { SelectChangeEvent } from '@mui/material/Select';
3
+ export type JweroRowsPerPageType = {
4
+ rowsPerPage?: number;
5
+ rowsPerPageOptions?: number[];
6
+ onChange?: (event: SelectChangeEvent<number>, child?: React.ReactNode) => void;
7
+ sx?: SxProps;
8
+ };
9
+ declare const JweroRowsPerPage: ({ rowsPerPage, rowsPerPageOptions, onChange, sx, }: JweroRowsPerPageType) => import("react/jsx-runtime").JSX.Element;
10
+ export default JweroRowsPerPage;
@@ -2,13 +2,17 @@ import { ReactNode } from 'react';
2
2
  import { SxProps } from '@mui/material';
3
3
  import { JweroTableType } from './components/JweroTable';
4
4
  import { JweroPaginationType } from './components/JweroPagination';
5
+ import { JweroRowsPerPageType } from './components/JweroRowsPerPage';
5
6
  export type JweroDataTableType = JweroTableType & {
6
7
  customTableHeader?: ReactNode;
7
8
  pagination?: JweroDataPaginationType;
9
+ rowsPerPageProps?: JweroRowsPerPageType & {
10
+ flag?: boolean;
11
+ };
8
12
  sx?: SxProps;
9
13
  };
10
14
  export type JweroDataPaginationType = JweroPaginationType & {
11
15
  flag: boolean;
12
16
  };
13
- declare const JweroDataTable: ({ tableSx, data, tableHeaderList, rowData, customTableHeader, onClick, pagination, sx, }: JweroDataTableType) => import("react/jsx-runtime").JSX.Element;
17
+ declare const JweroDataTable: ({ tableSx, data, tableHeaderList, rowData, customTableHeader, onClick, pagination, rowsPerPageProps, sx, }: JweroDataTableType) => import("react/jsx-runtime").JSX.Element;
14
18
  export default JweroDataTable;
@@ -18,8 +18,8 @@ type JweroEmptyStateType = {
18
18
  textBoxSx?: SxProps<Theme>;
19
19
  searchQuery?: string;
20
20
  buttonAdditionalProps?: Partial<PrimaryButtonProps>;
21
- showButton: boolean;
22
- showAddButton: boolean;
21
+ showButton?: boolean;
22
+ showAddButton?: boolean;
23
23
  };
24
24
  declare const JweroEmptyState: ({ type, image, svg, title, description, buttonProps, sx, imageSx, textBoxSx, searchQuery, buttonAdditionalProps, showButton, showAddButton, }: JweroEmptyStateType) => import("react/jsx-runtime").JSX.Element;
25
25
  export default JweroEmptyState;
@@ -1,17 +1,20 @@
1
1
  import { SxProps } from '@mui/material';
2
2
  import { default as React } from 'react';
3
+ declare const START_POSITION: "start";
4
+ declare const END_POSITION: "end";
5
+ export type PositionProps = typeof START_POSITION | typeof END_POSITION;
3
6
  export interface PrimaryButtonProps {
4
7
  title: string;
5
8
  onClick?: () => void;
6
9
  iconProps?: {
7
10
  icon: React.ReactNode;
8
- position: string;
11
+ position: PositionProps;
9
12
  };
10
13
  boxSx?: SxProps;
11
14
  textSx?: SxProps;
12
15
  loadingProps?: {
13
16
  loading: boolean;
14
- position: string;
17
+ position: PositionProps;
15
18
  };
16
19
  loaderProps?: SxProps;
17
20
  disabled?: boolean;
@@ -6,7 +6,8 @@ type JweroTooltipType = {
6
6
  variant?: "primary" | "secondary";
7
7
  sx?: SxProps;
8
8
  enterDelay?: number;
9
+ enterNextDelay?: number;
9
10
  children: ReactElement;
10
11
  };
11
- declare const JweroTooltip: ({ children, title, placement, variant, enterDelay, sx, }: JweroTooltipType) => import("react/jsx-runtime").JSX.Element;
12
+ declare const JweroTooltip: ({ children, title, placement, variant, enterDelay, enterNextDelay, sx, }: JweroTooltipType) => import("react/jsx-runtime").JSX.Element;
12
13
  export default JweroTooltip;
@@ -9,7 +9,6 @@ type MenuList = {
9
9
  };
10
10
  type JweroVerticalTabsType = {
11
11
  currentMenu: string;
12
- setCurrentMenu: (menu: string) => void;
13
12
  menuLists: MenuList[];
14
13
  title: string;
15
14
  titleProps?: Omit<CustomTypographyProps, "children">;
@@ -18,7 +17,7 @@ type JweroVerticalTabsType = {
18
17
  titleBoxSx?: SxProps<Theme>;
19
18
  boxSx?: SxProps<Theme>;
20
19
  listSx?: SxProps<Theme>;
21
- onClick?: (value: string, access: boolean, navigateUrl: string) => void;
20
+ onClick?: (value: string, access?: boolean, navigateUrl?: string) => void;
22
21
  };
23
22
  declare const JweroVerticalTabs: ({ title, currentMenu, titleProps, labelProps, menuLists, listSx, titleBoxSx, boxSx, labelBoxSx, onClick, }: JweroVerticalTabsType) => import("react/jsx-runtime").JSX.Element;
24
23
  export default JweroVerticalTabs;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@kashifd/jwero-components",
3
3
  "description": "A Jwero UI library for React",
4
4
  "private": false,
5
- "version": "0.7.38",
5
+ "version": "0.7.39",
6
6
  "type": "module",
7
7
  "main": "dist/index.umd.js",
8
8
  "module": "dist/index.es.js",