freemium-ui 1.0.258 → 1.0.261
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/Checkbox/Checkbox.d.ts +2 -1
- package/lib/types/components/ControlledTable/ControlledTable.d.ts +2 -2
- package/lib/types/components/Dropdown/index.d.ts +3 -0
- package/lib/types/components/Table/Table.d.ts +3 -2
- package/package.json +1 -1
|
@@ -3,6 +3,7 @@ interface CheckboxProps {
|
|
|
3
3
|
checked: boolean;
|
|
4
4
|
isRequired?: boolean;
|
|
5
5
|
isErrored?: boolean;
|
|
6
|
+
indeterminate?: boolean;
|
|
6
7
|
disabled?: boolean;
|
|
7
8
|
readOnly?: boolean;
|
|
8
9
|
sizeVariant?: 'sm' | 'md';
|
|
@@ -15,5 +16,5 @@ interface CheckboxProps {
|
|
|
15
16
|
export declare const Checkbox: React.ComponentType<Partial<{
|
|
16
17
|
checked: boolean;
|
|
17
18
|
sizeVariant: string;
|
|
18
|
-
}> & Pick<CheckboxProps & React.RefAttributes<HTMLInputElement>, "ref" | "isRequired" | "isErrored" | "disabled" | "readOnly" | "children" | "name" | "value" | "onChange" | "id" | "key">>;
|
|
19
|
+
}> & Pick<CheckboxProps & React.RefAttributes<HTMLInputElement>, "ref" | "isRequired" | "isErrored" | "indeterminate" | "disabled" | "readOnly" | "children" | "name" | "value" | "onChange" | "id" | "key">>;
|
|
19
20
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Column, TableState, Row, ColumnInstance, Cell, IdType, TableCommonProps } from 'react-table';
|
|
3
3
|
import FreemiumUIThemes from '../../theme';
|
|
4
|
-
declare type
|
|
4
|
+
declare type ControlledTableProps = {
|
|
5
5
|
cellPropGetter?: (cell: Cell) => TableCommonProps;
|
|
6
6
|
rowPropGetter?: (row: Row) => TableCommonProps;
|
|
7
7
|
onSelectAll?: (checked: boolean) => void;
|
|
@@ -46,5 +46,5 @@ declare type TableProps = {
|
|
|
46
46
|
};
|
|
47
47
|
state?: Partial<TableState>;
|
|
48
48
|
};
|
|
49
|
-
export declare const
|
|
49
|
+
export declare const ControlledTable: (props: ControlledTableProps) => JSX.Element;
|
|
50
50
|
export {};
|
|
@@ -11,6 +11,9 @@ declare type DropdownProps = {
|
|
|
11
11
|
width?: string;
|
|
12
12
|
placeholder?: string;
|
|
13
13
|
itemComponent?: React.ReactNode;
|
|
14
|
+
emptyItemsText?: string;
|
|
15
|
+
onCustomValueAdd?: (item: any) => void;
|
|
16
|
+
customValues?: boolean;
|
|
14
17
|
name?: string;
|
|
15
18
|
errorText?: string;
|
|
16
19
|
children?: any;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { Column, Row, ColumnInstance, Cell, TableCommonProps } from 'react-table';
|
|
3
3
|
import FreemiumUIThemes from '../../theme';
|
|
4
4
|
import { MenuItemProps } from '../Menu';
|
|
5
|
-
declare type
|
|
5
|
+
declare type TableProps = {
|
|
6
6
|
data: any[];
|
|
7
7
|
columns: Array<Column<any>>;
|
|
8
8
|
count: number;
|
|
@@ -41,11 +41,12 @@ declare type ControlledTableProps = {
|
|
|
41
41
|
loaderStyles?: React.CSSProperties;
|
|
42
42
|
selectAllPageText?: string;
|
|
43
43
|
tableSelectAllBehaviour?: 'ALL_ROWS' | 'CURRENT_PAGE_ROWS';
|
|
44
|
+
infoComponent?: React.ReactElement;
|
|
44
45
|
filterComponent?: React.ReactElement;
|
|
45
46
|
headerComponent?: React.ReactElement;
|
|
46
47
|
emptyComponent?: React.ReactElement;
|
|
47
48
|
loadingComponent?: React.ReactElement;
|
|
48
49
|
theme?: FreemiumUIThemes;
|
|
49
50
|
};
|
|
50
|
-
export declare const
|
|
51
|
+
export declare const Table: (props: TableProps) => JSX.Element;
|
|
51
52
|
export {};
|