freemium-ui 1.0.263 → 1.0.266
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.
- package/lib/index.cjs.js +5 -5
- package/lib/index.esm.js +6 -6
- package/lib/types/components/Menu/Menu.d.ts +3 -0
- package/lib/types/components/Pickers/DateRangePicker.d.ts +4 -0
- package/lib/types/components/Pickers/index.d.ts +1 -0
- package/lib/types/components/Pickers/types.d.ts +4 -1
- package/lib/types/components/Table/Table.d.ts +9 -5
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TimePickerProps as TPP, DateInputProps } from '@blueprintjs/datetime';
|
|
1
|
+
import { TimePickerProps as TPP, DateInputProps, DateRangeInputProps } from '@blueprintjs/datetime';
|
|
2
2
|
export declare const ArrowLocation: {
|
|
3
3
|
[key in MonthYearLocation]: 'space-between' | 'end' | 'start';
|
|
4
4
|
};
|
|
@@ -24,3 +24,6 @@ export declare type DateTimePickerProps = DefaultProps & Partial<DateInputProps>
|
|
|
24
24
|
export declare type TimePickerProps = DefaultProps & TPP & {
|
|
25
25
|
displayFormat?: string;
|
|
26
26
|
};
|
|
27
|
+
export declare type DateRangeickerProps = DefaultProps & Partial<DateRangeInputProps> & {
|
|
28
|
+
displayFormat?: string;
|
|
29
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Column, Row, ColumnInstance, Cell, TableCommonProps } from 'react-table';
|
|
2
|
+
import { Column, Row, ColumnInstance, Cell, TableCommonProps, TableOptions, UseRowSelectOptions } from 'react-table';
|
|
3
3
|
import FreemiumUIThemes from '../../theme';
|
|
4
4
|
import { MenuItemProps } from '../Menu';
|
|
5
5
|
declare type TableProps = {
|
|
@@ -11,6 +11,10 @@ declare type TableProps = {
|
|
|
11
11
|
columnOrder?: string[];
|
|
12
12
|
hiddenColumns?: string[];
|
|
13
13
|
selectedRowIds?: Record<string, boolean>;
|
|
14
|
+
disableSelectMenuOptionIds?: string[];
|
|
15
|
+
hideSelectMenuOptionIds?: string[];
|
|
16
|
+
selectMenuOptions?: MenuItemProps[];
|
|
17
|
+
selectMenuOptionsHandler?: (option: MenuItemProps) => void;
|
|
14
18
|
setPageIndex?: (pageIndex: number) => void | React.Dispatch<React.SetStateAction<number>>;
|
|
15
19
|
setSelectedRowIds?: (selectedRowIds: Record<string, boolean>) => void | React.Dispatch<React.SetStateAction<Record<string, boolean>>>;
|
|
16
20
|
onRowClick?: (row: Row, column: ColumnInstance) => void;
|
|
@@ -20,16 +24,17 @@ declare type TableProps = {
|
|
|
20
24
|
cellPropGetter?: (cell: Cell) => TableCommonProps;
|
|
21
25
|
rowMenuOptions?: (rowData?: any) => MenuItemProps[];
|
|
22
26
|
onSelectAllRows?: (checked: boolean) => void;
|
|
23
|
-
|
|
27
|
+
onRowSelect?: (row: Row, checked: boolean) => void;
|
|
24
28
|
onMenuOptionSelect?: (optionId: string, row: any) => void;
|
|
29
|
+
tableOptions?: TableOptions<any> & UseRowSelectOptions<any>;
|
|
25
30
|
enableNextPage?: boolean;
|
|
26
31
|
enablePreviousPage?: boolean;
|
|
27
|
-
autoReset?: boolean;
|
|
28
32
|
isLoading?: boolean;
|
|
29
33
|
isFetching?: boolean;
|
|
30
34
|
hideActions?: boolean;
|
|
31
35
|
hideFilters?: boolean;
|
|
32
36
|
hideTableOnEmpty?: boolean;
|
|
37
|
+
disableSelectMenuOptions?: boolean;
|
|
33
38
|
disableRowSelect?: boolean;
|
|
34
39
|
hideTopPagination?: boolean;
|
|
35
40
|
showTableOnLoading?: boolean;
|
|
@@ -39,9 +44,8 @@ declare type TableProps = {
|
|
|
39
44
|
hideLoaderOnTopPagination?: boolean;
|
|
40
45
|
dataKey?: string;
|
|
41
46
|
loaderStyles?: React.CSSProperties;
|
|
42
|
-
selectAllPageText?: string;
|
|
43
|
-
tableSelectAllBehaviour?: 'ALL_ROWS' | 'CURRENT_PAGE_ROWS';
|
|
44
47
|
infoComponent?: React.ReactElement;
|
|
48
|
+
actionComponent?: React.ReactElement;
|
|
45
49
|
filterComponent?: React.ReactElement;
|
|
46
50
|
headerComponent?: React.ReactElement;
|
|
47
51
|
emptyComponent?: React.ReactElement;
|