freemium-ui 1.0.263 → 1.0.264

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.
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import 'react-dates/initialize';
3
+ declare type DateRangePickerProps = {
4
+ anchorDirection?: 'right' | 'left';
5
+ initialDate?: number;
6
+ onDateChange: (arg0: any) => void;
7
+ onClose?: () => void;
8
+ minMonths?: number;
9
+ autoFocus?: any;
10
+ autoFocusEndDate?: boolean;
11
+ minimumNights?: number;
12
+ };
13
+ export declare const DatePicker: (props: DateRangePickerProps) => JSX.Element;
14
+ export {};
@@ -0,0 +1 @@
1
+ export * from './DatePicker';
@@ -0,0 +1,16 @@
1
+ /// <reference types="react" />
2
+ import 'react-dates/initialize';
3
+ import 'react-dates/lib/css/_datepicker.css';
4
+ declare type DateRangePickerProps = {
5
+ anchorDirection?: 'right' | 'left';
6
+ initialStartDate?: number;
7
+ initialEndDate?: number;
8
+ onRangeSelected: (arg0: any) => void;
9
+ onClose?: () => void;
10
+ minMonths?: number;
11
+ autoFocus?: any;
12
+ autoFocusEndDate?: boolean;
13
+ minimumNights?: number;
14
+ };
15
+ export declare function DateRangePicker(props: DateRangePickerProps): JSX.Element;
16
+ export {};
@@ -0,0 +1 @@
1
+ export * from './DateRangePicker';
@@ -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 = {
@@ -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.264",
4
4
  "description": "React Ui Components for Freemium Apps",
5
5
  "main": "lib/index.cjs.js",
6
6
  "module": "lib/index.esm.js",
package/.env DELETED
File without changes