freemium-ui 1.0.142 → 1.0.146
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 +103 -92
- package/lib/index.esm.js +103 -92
- package/lib/types/components/Checkbox/Checkbox.d.ts +2 -2
- package/lib/types/components/Loader/loader.d.ts +1 -1
- package/lib/types/components/MultiSelectDropdown/MultiSelectDropdown.d.ts +2 -1
- package/lib/types/components/Table/Table.d.ts +1 -0
- package/lib/types/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -4,10 +4,10 @@ interface CheckboxProps {
|
|
|
4
4
|
disabled?: boolean;
|
|
5
5
|
readOnly?: boolean;
|
|
6
6
|
sizeVariant?: 'sm' | 'md';
|
|
7
|
-
children?:
|
|
7
|
+
children?: any;
|
|
8
8
|
name: string;
|
|
9
9
|
value?: string | number;
|
|
10
|
-
onChange
|
|
10
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement> | React.KeyboardEvent<HTMLInputElement>, checked: boolean) => void;
|
|
11
11
|
id?: string;
|
|
12
12
|
}
|
|
13
13
|
export declare const Checkbox: React.ComponentType<Partial<{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const Loader: (props: LoaderPropTypes) => JSX.Element;
|
|
3
3
|
declare type Sizes = 'small' | 'medium' | 'big';
|
|
4
|
-
|
|
4
|
+
declare type LoaderPropTypes = {
|
|
5
5
|
size?: Sizes;
|
|
6
6
|
invert?: boolean;
|
|
7
7
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
declare type MultiSelectProps = {
|
|
3
3
|
name: string;
|
|
4
|
+
id?: string;
|
|
4
5
|
label?: string;
|
|
5
6
|
items: any[];
|
|
6
7
|
selectedItem: any;
|
|
7
8
|
onChange: (items: any) => void;
|
|
8
|
-
placeholder
|
|
9
|
+
placeholder?: string;
|
|
9
10
|
itemLabelIdentifier: string;
|
|
10
11
|
itemValueIdentifier: string;
|
|
11
12
|
errorText?: string;
|
|
@@ -102,6 +102,7 @@ declare type TableProps = {
|
|
|
102
102
|
onRowSelect?: (selectedRowIds: Record<IdType, boolean>) => void;
|
|
103
103
|
onRowClick?: (row: RowProps, column: HeaderProps) => void;
|
|
104
104
|
columns?: Array<ColumnOptions> | Array<ColumnGroupOptions>;
|
|
105
|
+
emptyComponent?: React.ReactNode;
|
|
105
106
|
headerComponent?: React.ReactNode;
|
|
106
107
|
filterComponent?: React.ReactNode;
|
|
107
108
|
data?: Array<unknown>;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export * from './components/Input';
|
|
|
12
12
|
export * from './components/Menu';
|
|
13
13
|
export * from './components/Modal';
|
|
14
14
|
export * from './components/MultiSelectDropdown';
|
|
15
|
+
export * from './components/Loader';
|
|
15
16
|
export * from './components/Dropdown';
|
|
16
17
|
export * from './components/Popover';
|
|
17
18
|
export * from './components/Radio';
|