@kashifd/jwero-components 0.7.54 → 0.7.56

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.
@@ -3,7 +3,7 @@ import { PopperProps, SxProps } from '@mui/material';
3
3
  type JweroPopperType = {
4
4
  children: React.ReactNode;
5
5
  open: boolean;
6
- anchorEl: null | HTMLDivElement;
6
+ anchorEl: null | HTMLDivElement | HTMLElement;
7
7
  placement?: PopperProps["placement"];
8
8
  onClose: () => void;
9
9
  boxSx?: SxProps;
@@ -1,4 +1,4 @@
1
- import { SxProps } from '@mui/material';
1
+ import { PopperProps, SxProps } from '@mui/material';
2
2
  import { ReactNode } from 'react';
3
3
  import { CustomTypographyProps } from '../JweroTypography';
4
4
  import { MenuListType } from './components/JweroMenu';
@@ -17,6 +17,7 @@ type JweroButtonMenuType = {
17
17
  labelProps?: Omit<CustomTypographyProps, "children">;
18
18
  menuSx?: SxProps;
19
19
  popperSx?: SxProps;
20
+ popperProps?: PopperProps;
20
21
  };
21
- declare const JweroButtonMenu: ({ label, onOpenMenu, customClose, menuList, iconProps, endIcon, boxSx, innerBoxSx, labelProps, menuSx, popperSx, }: JweroButtonMenuType) => import("react/jsx-runtime").JSX.Element;
22
+ declare const JweroButtonMenu: ({ label, onOpenMenu, customClose, menuList, iconProps, endIcon, boxSx, innerBoxSx, labelProps, menuSx, popperSx, popperProps }: JweroButtonMenuType) => import("react/jsx-runtime").JSX.Element;
22
23
  export default JweroButtonMenu;
@@ -4,6 +4,12 @@ export type JweroTableRowType = any;
4
4
  export type RowDataType = {
5
5
  [key: string]: (data: JweroTableRowType) => ReactNode;
6
6
  };
7
+ export type TableHeaderListType = {
8
+ value: string;
9
+ label: string;
10
+ align: "left" | "right" | "center" | "inherit" | "justify" | undefined;
11
+ sortable?: boolean;
12
+ };
7
13
  export type JweroTableType = {
8
14
  tableSx?: SxProps<Theme>;
9
15
  data: JweroTableRowType[];
@@ -13,10 +19,5 @@ export type JweroTableType = {
13
19
  onClick?: (event: React.MouseEvent<HTMLTableRowElement>, data: JweroTableRowType) => void;
14
20
  tableTitleNoLineBreak?: boolean;
15
21
  };
16
- export type TableHeaderListType = {
17
- value: string;
18
- label: string;
19
- align: "left" | "right" | "center" | "inherit" | "justify" | undefined;
20
- };
21
22
  declare const JweroTable: ({ tableSx, data, tableHeaderList, rowData, onClick, enableScrollButtons, tableTitleNoLineBreak, }: JweroTableType) => import("react/jsx-runtime").JSX.Element;
22
23
  export default JweroTable;
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.54",
5
+ "version": "0.7.56",
6
6
  "type": "module",
7
7
  "main": "dist/index.umd.js",
8
8
  "module": "dist/index.es.js",