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.
@@ -1,6 +1,9 @@
1
1
  import React from 'react';
2
2
  import FreemiumUIThemes from '../../theme';
3
3
  export interface MenuItemProps {
4
+ id: string;
5
+ name: string;
6
+ disabled?: boolean;
4
7
  [key: string]: any;
5
8
  }
6
9
  declare type MenuProps = {
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import '@blueprintjs/datetime/lib/css/blueprint-datetime.css';
3
+ import { DateRangeickerProps } from './types';
4
+ export declare const DateRangePicker: (props: DateRangeickerProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
1
  export * from './DateTimePicker';
2
2
  export * from './DatePicker';
3
3
  export * from './TimePicker';
4
+ export * from './DateRangePicker';
@@ -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
- onSelectAllPageRows?: (checked: boolean) => void;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "freemium-ui",
3
- "version": "1.0.263",
3
+ "version": "1.0.266",
4
4
  "description": "React Ui Components for Freemium Apps",
5
5
  "main": "lib/index.cjs.js",
6
6
  "module": "lib/index.esm.js",