freemium-ui 1.0.152 → 1.0.156

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.
@@ -11,6 +11,8 @@ declare type ConfirmationProps = {
11
11
  footerStyles?: any;
12
12
  confirmButtonText?: string;
13
13
  cancelButtonText?: string;
14
+ confirmButtonDisabled?: boolean;
15
+ cancelButtonDisabled?: boolean;
14
16
  onConfirm?: () => void;
15
17
  };
16
18
  export declare const Confirmation: React.ForwardRefExoticComponent<ConfirmationProps & React.RefAttributes<unknown>>;
@@ -98,8 +98,11 @@ declare type IdType = Extract<keyof any, string> | string;
98
98
  declare type TableProps = {
99
99
  onSelectAll?: (checked: boolean) => void;
100
100
  onMenuOptionSelect?: (option: string, row: RowProps) => void;
101
- onPrevious?: (prev: string | boolean) => void;
102
- onNext?: (prev: string | boolean) => void;
101
+ onPageClick?: (pageNumber: number) => void;
102
+ onFirstClick?: (pageNumber?: number) => void;
103
+ onLastClick?: (pageNumber?: number) => void;
104
+ onPrevious?: (pageNumber?: number) => void;
105
+ onNext?: (pageNumber?: number) => void;
103
106
  onRowSelect?: (selectedRowIds: Record<IdType, boolean>) => void;
104
107
  onRowClick?: (row: RowProps, column: HeaderProps) => void;
105
108
  columns?: Array<ColumnOptions> | Array<ColumnGroupOptions>;
@@ -112,8 +115,8 @@ declare type TableProps = {
112
115
  next?: string | boolean;
113
116
  previous?: string | boolean;
114
117
  count?: number;
115
- limit?: number;
116
- offset?: number;
118
+ perPage?: number;
119
+ pageNumber?: number;
117
120
  sortable?: boolean;
118
121
  showSelectAllInTable?: boolean;
119
122
  showSelections?: boolean;
@@ -123,7 +126,7 @@ declare type TableProps = {
123
126
  showPagination?: boolean;
124
127
  name?: string;
125
128
  id?: string;
126
- rowMenuOptions?: (rowData: any) => any[];
129
+ rowMenuOptions?: (rowData?: any) => any[];
127
130
  paginationOptions?: Array<number>;
128
131
  theme?: FreemiumUIThemes;
129
132
  initialState?: TableInitialState;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "freemium-ui",
3
- "version": "1.0.152",
3
+ "version": "1.0.156",
4
4
  "description": "React Ui Components for Freemium Apps",
5
5
  "main": "lib/index.cjs.js",
6
6
  "module": "lib/index.esm.js",