freemium-ui 1.0.114
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/0001-chore-Adding-popper-support-to-dropdown.patch +304 -0
- package/README.md +70 -0
- package/lib/index.cjs.js +19399 -0
- package/lib/index.esm.js +19335 -0
- package/lib/types/components/Alert/Alert.d.ts +17 -0
- package/lib/types/components/Alert/Alert.stories.d.ts +1 -0
- package/lib/types/components/Alert/index.d.ts +1 -0
- package/lib/types/components/BoxedRadio/BoxedRadio.stories.d.ts +1 -0
- package/lib/types/components/BoxedRadio/boxedRadio.d.ts +8 -0
- package/lib/types/components/BoxedRadio/boxedRadioContext.d.ts +7 -0
- package/lib/types/components/BoxedRadio/boxedRadioGroup.d.ts +2 -0
- package/lib/types/components/BoxedRadio/index.d.ts +2 -0
- package/lib/types/components/Button/Buttons.d.ts +132 -0
- package/lib/types/components/Button/Buttons.stories.d.ts +1 -0
- package/lib/types/components/Button/index.d.ts +1 -0
- package/lib/types/components/ButtonDropdown/ButtonDropdown.d.ts +19 -0
- package/lib/types/components/ButtonDropdown/ButtonDropdown.stories.d.ts +1 -0
- package/lib/types/components/ButtonDropdown/index.d.ts +1 -0
- package/lib/types/components/Checkbox/Checkbox.d.ts +17 -0
- package/lib/types/components/Checkbox/Checkbox.stories.d.ts +1 -0
- package/lib/types/components/Checkbox/index.d.ts +1 -0
- package/lib/types/components/Confirmation/Confirmation.d.ts +30 -0
- package/lib/types/components/Confirmation/Confirmation.stories.d.ts +1 -0
- package/lib/types/components/Confirmation/index.d.ts +2 -0
- package/lib/types/components/Confirmation/useConfirmation.d.ts +28 -0
- package/lib/types/components/CssBaseLine/index.d.ts +1 -0
- package/lib/types/components/DatePicker/DatePicker.d.ts +95 -0
- package/lib/types/components/DatePicker/DatePicker.stories.d.ts +1 -0
- package/lib/types/components/DatePicker/index.d.ts +1 -0
- package/lib/types/components/DateRangePicker/DateRangePicker.d.ts +106 -0
- package/lib/types/components/DateRangePicker/DateRangePicker.stories.d.ts +1 -0
- package/lib/types/components/DateRangePicker/index.d.ts +1 -0
- package/lib/types/components/Drawer/Drawer.d.ts +77 -0
- package/lib/types/components/Drawer/Drawer.stories.d.ts +1 -0
- package/lib/types/components/Drawer/index.d.ts +2 -0
- package/lib/types/components/Drawer/styles.d.ts +2 -0
- package/lib/types/components/Dropdown/Dropdown.stories.d.ts +1 -0
- package/lib/types/components/Dropdown/DropdownButton.d.ts +14 -0
- package/lib/types/components/Dropdown/DropdownInput.d.ts +4 -0
- package/lib/types/components/Dropdown/DropdownMenu.d.ts +4 -0
- package/lib/types/components/Dropdown/index.d.ts +199 -0
- package/lib/types/components/Icons/Icons.d.ts +101 -0
- package/lib/types/components/Icons/index.d.ts +1 -0
- package/lib/types/components/Input/Input.d.ts +48 -0
- package/lib/types/components/Input/Input.stories.d.ts +1 -0
- package/lib/types/components/Input/index.d.ts +1 -0
- package/lib/types/components/Loader/index.d.ts +1 -0
- package/lib/types/components/Loader/loader.d.ts +8 -0
- package/lib/types/components/Loader/loader.stories.d.ts +1 -0
- package/lib/types/components/Menu/Menu.d.ts +108 -0
- package/lib/types/components/Menu/Menu.stories.d.ts +1 -0
- package/lib/types/components/Menu/index.d.ts +1 -0
- package/lib/types/components/Modal/Modal.d.ts +59 -0
- package/lib/types/components/Modal/Modal.stories.d.ts +1 -0
- package/lib/types/components/Modal/index.d.ts +3 -0
- package/lib/types/components/Modal/styles.d.ts +11 -0
- package/lib/types/components/Modal/use-modal.d.ts +28 -0
- package/lib/types/components/MultiSelectDropdown/MultiSelectDropdown.d.ts +154 -0
- package/lib/types/components/MultiSelectDropdown/MultiSelectDropdown.stories.d.ts +1 -0
- package/lib/types/components/MultiSelectDropdown/index.d.ts +1 -0
- package/lib/types/components/Popover/Popover.d.ts +91 -0
- package/lib/types/components/Popover/Popover.stories.d.ts +1 -0
- package/lib/types/components/Popover/index.d.ts +1 -0
- package/lib/types/components/Radio/Radio.d.ts +13 -0
- package/lib/types/components/Radio/Radio.stories.d.ts +1 -0
- package/lib/types/components/Radio/index.d.ts +1 -0
- package/lib/types/components/Table/Table.d.ts +155 -0
- package/lib/types/components/Table/Table.stories.d.ts +1 -0
- package/lib/types/components/Table/index.d.ts +1 -0
- package/lib/types/components/Tabs/Tabs.d.ts +88 -0
- package/lib/types/components/Tabs/Tabs.stories.d.ts +1 -0
- package/lib/types/components/Tabs/index.d.ts +1 -0
- package/lib/types/components/Tag/Tag.d.ts +25 -0
- package/lib/types/components/Tag/Tag.stories.d.ts +1 -0
- package/lib/types/components/Tag/index.d.ts +1 -0
- package/lib/types/components/ThemeProvider/index.d.ts +12 -0
- package/lib/types/components/Toast/Toast.d.ts +14 -0
- package/lib/types/components/Toast/index.d.ts +3 -0
- package/lib/types/components/Toggle/Toggle.d.ts +15 -0
- package/lib/types/components/Toggle/Toggle.stories.d.ts +1 -0
- package/lib/types/components/Toggle/index.d.ts +1 -0
- package/lib/types/components/Tooltip/Tooltip.d.ts +15 -0
- package/lib/types/components/Tooltip/index.d.ts +1 -0
- package/lib/types/components/Tooltip/tooltip-old.d.ts +14 -0
- package/lib/types/components/Tooltip/tooltip.stories.d.ts +1 -0
- package/lib/types/components/Transition/Transition.d.ts +122 -0
- package/lib/types/components/Transition/fade.d.ts +105 -0
- package/lib/types/components/Transition/index.d.ts +4 -0
- package/lib/types/components/Transition/slide-fade.d.ts +121 -0
- package/lib/types/components/Transition/slide.d.ts +119 -0
- package/lib/types/components/UiProvider/UiProvider.d.ts +2 -0
- package/lib/types/components/UiProvider/index.d.ts +1 -0
- package/lib/types/components/use-toasts/index.d.ts +1 -0
- package/lib/types/components/use-toasts/toast-container.d.ts +8 -0
- package/lib/types/components/use-toasts/toast-item.d.ts +15 -0
- package/lib/types/components/use-toasts/use-toast.d.ts +15 -0
- package/lib/types/components/use-toasts/use-toasts.stories.d.ts +1 -0
- package/lib/types/index.d.ts +28 -0
- package/lib/types/theme/default/colors.d.ts +3 -0
- package/lib/types/theme/default/index.d.ts +7 -0
- package/lib/types/theme/default/palette.d.ts +3 -0
- package/lib/types/theme/default/typography.d.ts +3 -0
- package/lib/types/theme/freshstatus/colors.d.ts +3 -0
- package/lib/types/theme/freshstatus/index.d.ts +7 -0
- package/lib/types/theme/freshstatus/palette.d.ts +3 -0
- package/lib/types/theme/freshstatus/typography.d.ts +3 -0
- package/lib/types/theme/index.d.ts +352 -0
- package/lib/types/theme/shared.d.ts +2 -0
- package/lib/types/utils/date.d.ts +7 -0
- package/lib/types/utils/index.d.ts +1 -0
- package/lib/types/utils/use-current-state.d.ts +4 -0
- package/lib/types/utils/use-portal.d.ts +2 -0
- package/lib/types/utils/use-ssr.d.ts +6 -0
- package/lib/types/utils/use-ui-context.d.ts +11 -0
- package/lib/types/utils/with-defaults.d.ts +3 -0
- package/package.json +107 -0
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare type MultiSelectProps = {
|
|
3
|
+
name: string;
|
|
4
|
+
label: string;
|
|
5
|
+
items: any[];
|
|
6
|
+
selectedItem: any;
|
|
7
|
+
onChange: (items: any) => void;
|
|
8
|
+
placeholder: string;
|
|
9
|
+
itemLabelIdentifier: string;
|
|
10
|
+
itemValueIdentifier: string;
|
|
11
|
+
errorText?: string;
|
|
12
|
+
isErrored?: boolean;
|
|
13
|
+
required?: boolean;
|
|
14
|
+
customValues?: boolean;
|
|
15
|
+
renderCustomSuggestion?: any;
|
|
16
|
+
maxAllowedLength?: number;
|
|
17
|
+
};
|
|
18
|
+
export declare const MultiSelectDropdown: {
|
|
19
|
+
(props: MultiSelectProps): JSX.Element;
|
|
20
|
+
displayName: string;
|
|
21
|
+
__docgenInfo: {
|
|
22
|
+
description: string;
|
|
23
|
+
displayName: string;
|
|
24
|
+
props: {
|
|
25
|
+
name: {
|
|
26
|
+
defaultValue: null;
|
|
27
|
+
description: string;
|
|
28
|
+
name: string;
|
|
29
|
+
required: boolean;
|
|
30
|
+
type: {
|
|
31
|
+
name: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
label: {
|
|
35
|
+
defaultValue: null;
|
|
36
|
+
description: string;
|
|
37
|
+
name: string;
|
|
38
|
+
required: boolean;
|
|
39
|
+
type: {
|
|
40
|
+
name: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
items: {
|
|
44
|
+
defaultValue: null;
|
|
45
|
+
description: string;
|
|
46
|
+
name: string;
|
|
47
|
+
required: boolean;
|
|
48
|
+
type: {
|
|
49
|
+
name: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
selectedItem: {
|
|
53
|
+
defaultValue: null;
|
|
54
|
+
description: string;
|
|
55
|
+
name: string;
|
|
56
|
+
required: boolean;
|
|
57
|
+
type: {
|
|
58
|
+
name: string;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
onChange: {
|
|
62
|
+
defaultValue: null;
|
|
63
|
+
description: string;
|
|
64
|
+
name: string;
|
|
65
|
+
required: boolean;
|
|
66
|
+
type: {
|
|
67
|
+
name: string;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
placeholder: {
|
|
71
|
+
defaultValue: null;
|
|
72
|
+
description: string;
|
|
73
|
+
name: string;
|
|
74
|
+
required: boolean;
|
|
75
|
+
type: {
|
|
76
|
+
name: string;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
itemLabelIdentifier: {
|
|
80
|
+
defaultValue: null;
|
|
81
|
+
description: string;
|
|
82
|
+
name: string;
|
|
83
|
+
required: boolean;
|
|
84
|
+
type: {
|
|
85
|
+
name: string;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
itemValueIdentifier: {
|
|
89
|
+
defaultValue: null;
|
|
90
|
+
description: string;
|
|
91
|
+
name: string;
|
|
92
|
+
required: boolean;
|
|
93
|
+
type: {
|
|
94
|
+
name: string;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
errorText: {
|
|
98
|
+
defaultValue: null;
|
|
99
|
+
description: string;
|
|
100
|
+
name: string;
|
|
101
|
+
required: boolean;
|
|
102
|
+
type: {
|
|
103
|
+
name: string;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
isErrored: {
|
|
107
|
+
defaultValue: null;
|
|
108
|
+
description: string;
|
|
109
|
+
name: string;
|
|
110
|
+
required: boolean;
|
|
111
|
+
type: {
|
|
112
|
+
name: string;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
required: {
|
|
116
|
+
defaultValue: null;
|
|
117
|
+
description: string;
|
|
118
|
+
name: string;
|
|
119
|
+
required: boolean;
|
|
120
|
+
type: {
|
|
121
|
+
name: string;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
customValues: {
|
|
125
|
+
defaultValue: null;
|
|
126
|
+
description: string;
|
|
127
|
+
name: string;
|
|
128
|
+
required: boolean;
|
|
129
|
+
type: {
|
|
130
|
+
name: string;
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
renderCustomSuggestion: {
|
|
134
|
+
defaultValue: null;
|
|
135
|
+
description: string;
|
|
136
|
+
name: string;
|
|
137
|
+
required: boolean;
|
|
138
|
+
type: {
|
|
139
|
+
name: string;
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
maxAllowedLength: {
|
|
143
|
+
defaultValue: null;
|
|
144
|
+
description: string;
|
|
145
|
+
name: string;
|
|
146
|
+
required: boolean;
|
|
147
|
+
type: {
|
|
148
|
+
name: string;
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './MultiSelectDropdown';
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import FreemiumUIThemes from '../../theme';
|
|
3
|
+
declare type Origin = {
|
|
4
|
+
vertical?: 'top' | 'center' | 'bottom';
|
|
5
|
+
horizontal?: 'left' | 'center' | 'right';
|
|
6
|
+
};
|
|
7
|
+
declare type PopoverProps = {
|
|
8
|
+
onClose?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
9
|
+
anchorEl?: Element | null | undefined;
|
|
10
|
+
id: string;
|
|
11
|
+
clickOutToClose?: boolean;
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
anchorOrigin?: Origin;
|
|
14
|
+
transformOrigin?: Origin;
|
|
15
|
+
theme?: FreemiumUIThemes;
|
|
16
|
+
};
|
|
17
|
+
export declare const debounce: <F extends (...args: any) => any>(func: F, waitFor: number) => (...args: Parameters<F>) => ReturnType<F>;
|
|
18
|
+
export declare const Popover: {
|
|
19
|
+
(props: PopoverProps): any;
|
|
20
|
+
displayName: string;
|
|
21
|
+
__docgenInfo: {
|
|
22
|
+
description: string;
|
|
23
|
+
displayName: string;
|
|
24
|
+
props: {
|
|
25
|
+
onClose: {
|
|
26
|
+
defaultValue: null;
|
|
27
|
+
description: string;
|
|
28
|
+
name: string;
|
|
29
|
+
required: boolean;
|
|
30
|
+
type: {
|
|
31
|
+
name: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
anchorEl: {
|
|
35
|
+
defaultValue: null;
|
|
36
|
+
description: string;
|
|
37
|
+
name: string;
|
|
38
|
+
required: boolean;
|
|
39
|
+
type: {
|
|
40
|
+
name: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
id: {
|
|
44
|
+
defaultValue: null;
|
|
45
|
+
description: string;
|
|
46
|
+
name: string;
|
|
47
|
+
required: boolean;
|
|
48
|
+
type: {
|
|
49
|
+
name: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
clickOutToClose: {
|
|
53
|
+
defaultValue: null;
|
|
54
|
+
description: string;
|
|
55
|
+
name: string;
|
|
56
|
+
required: boolean;
|
|
57
|
+
type: {
|
|
58
|
+
name: string;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
anchorOrigin: {
|
|
62
|
+
defaultValue: null;
|
|
63
|
+
description: string;
|
|
64
|
+
name: string;
|
|
65
|
+
required: boolean;
|
|
66
|
+
type: {
|
|
67
|
+
name: string;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
transformOrigin: {
|
|
71
|
+
defaultValue: null;
|
|
72
|
+
description: string;
|
|
73
|
+
name: string;
|
|
74
|
+
required: boolean;
|
|
75
|
+
type: {
|
|
76
|
+
name: string;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
theme: {
|
|
80
|
+
defaultValue: null;
|
|
81
|
+
description: string;
|
|
82
|
+
name: string;
|
|
83
|
+
required: boolean;
|
|
84
|
+
type: {
|
|
85
|
+
name: string;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Popover';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface RadioButtonProps {
|
|
3
|
+
checked: boolean;
|
|
4
|
+
children: string;
|
|
5
|
+
name: string;
|
|
6
|
+
value: string | number;
|
|
7
|
+
onChange: () => void;
|
|
8
|
+
id?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const Radio: React.ComponentType<Partial<{
|
|
11
|
+
checked: boolean;
|
|
12
|
+
}> & Pick<RadioButtonProps & React.RefAttributes<HTMLInputElement>, "ref" | "id" | "name" | "children" | "onChange" | "key" | "value">>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Radio';
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import FreemiumUIThemes from '../../theme';
|
|
3
|
+
declare type ColumnOptions = {
|
|
4
|
+
Header?: string;
|
|
5
|
+
accessor?: string;
|
|
6
|
+
disableSortBy?: boolean;
|
|
7
|
+
sortDescFirst?: boolean;
|
|
8
|
+
};
|
|
9
|
+
declare type TableInitialState = {
|
|
10
|
+
pageIndex?: number;
|
|
11
|
+
columnOrder?: Array<string>;
|
|
12
|
+
hiddenColumns?: Array<string>;
|
|
13
|
+
pageSize?: number;
|
|
14
|
+
selectedRowIds?: unknown;
|
|
15
|
+
sortBy?: Array<{
|
|
16
|
+
id?: string;
|
|
17
|
+
desc?: boolean;
|
|
18
|
+
}>;
|
|
19
|
+
};
|
|
20
|
+
interface ColumnGroupOptions extends ColumnOptions {
|
|
21
|
+
columns?: Array<ColumnOptions>;
|
|
22
|
+
}
|
|
23
|
+
declare type TableProps = {
|
|
24
|
+
onRowSelect?: (row: unknown, index: number, checked: boolean) => void;
|
|
25
|
+
onRowClick?: (row: unknown, index: number, checked: boolean) => void;
|
|
26
|
+
onSelectAll?: (checked: boolean) => void;
|
|
27
|
+
columns?: Array<ColumnGroupOptions>;
|
|
28
|
+
data?: Array<unknown>;
|
|
29
|
+
sortable?: boolean;
|
|
30
|
+
stickyHeader?: boolean;
|
|
31
|
+
name?: string;
|
|
32
|
+
id: string;
|
|
33
|
+
paginationOptions?: Array<number>;
|
|
34
|
+
theme?: FreemiumUIThemes;
|
|
35
|
+
initialState?: TableInitialState;
|
|
36
|
+
};
|
|
37
|
+
export declare const Table: {
|
|
38
|
+
(props: TableProps): JSX.Element;
|
|
39
|
+
displayName: string;
|
|
40
|
+
__docgenInfo: {
|
|
41
|
+
description: string;
|
|
42
|
+
displayName: string;
|
|
43
|
+
props: {
|
|
44
|
+
onRowSelect: {
|
|
45
|
+
defaultValue: null;
|
|
46
|
+
description: string;
|
|
47
|
+
name: string;
|
|
48
|
+
required: boolean;
|
|
49
|
+
type: {
|
|
50
|
+
name: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
onRowClick: {
|
|
54
|
+
defaultValue: null;
|
|
55
|
+
description: string;
|
|
56
|
+
name: string;
|
|
57
|
+
required: boolean;
|
|
58
|
+
type: {
|
|
59
|
+
name: string;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
onSelectAll: {
|
|
63
|
+
defaultValue: null;
|
|
64
|
+
description: string;
|
|
65
|
+
name: string;
|
|
66
|
+
required: boolean;
|
|
67
|
+
type: {
|
|
68
|
+
name: string;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
columns: {
|
|
72
|
+
defaultValue: null;
|
|
73
|
+
description: string;
|
|
74
|
+
name: string;
|
|
75
|
+
required: boolean;
|
|
76
|
+
type: {
|
|
77
|
+
name: string;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
data: {
|
|
81
|
+
defaultValue: null;
|
|
82
|
+
description: string;
|
|
83
|
+
name: string;
|
|
84
|
+
required: boolean;
|
|
85
|
+
type: {
|
|
86
|
+
name: string;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
sortable: {
|
|
90
|
+
defaultValue: null;
|
|
91
|
+
description: string;
|
|
92
|
+
name: string;
|
|
93
|
+
required: boolean;
|
|
94
|
+
type: {
|
|
95
|
+
name: string;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
stickyHeader: {
|
|
99
|
+
defaultValue: null;
|
|
100
|
+
description: string;
|
|
101
|
+
name: string;
|
|
102
|
+
required: boolean;
|
|
103
|
+
type: {
|
|
104
|
+
name: string;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
name: {
|
|
108
|
+
defaultValue: null;
|
|
109
|
+
description: string;
|
|
110
|
+
name: string;
|
|
111
|
+
required: boolean;
|
|
112
|
+
type: {
|
|
113
|
+
name: string;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
id: {
|
|
117
|
+
defaultValue: null;
|
|
118
|
+
description: string;
|
|
119
|
+
name: string;
|
|
120
|
+
required: boolean;
|
|
121
|
+
type: {
|
|
122
|
+
name: string;
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
paginationOptions: {
|
|
126
|
+
defaultValue: null;
|
|
127
|
+
description: string;
|
|
128
|
+
name: string;
|
|
129
|
+
required: boolean;
|
|
130
|
+
type: {
|
|
131
|
+
name: string;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
theme: {
|
|
135
|
+
defaultValue: null;
|
|
136
|
+
description: string;
|
|
137
|
+
name: string;
|
|
138
|
+
required: boolean;
|
|
139
|
+
type: {
|
|
140
|
+
name: string;
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
initialState: {
|
|
144
|
+
defaultValue: null;
|
|
145
|
+
description: string;
|
|
146
|
+
name: string;
|
|
147
|
+
required: boolean;
|
|
148
|
+
type: {
|
|
149
|
+
name: string;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Table';
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import FreemiumUIThemes from '../../theme';
|
|
3
|
+
interface TabsItemProps {
|
|
4
|
+
[key: string]: any;
|
|
5
|
+
}
|
|
6
|
+
declare type TabsProps = {
|
|
7
|
+
onChange?: (event: React.MouseEvent<HTMLDivElement>, menuItem: TabsItemProps) => void;
|
|
8
|
+
options?: Array<any>;
|
|
9
|
+
idAccessor?: string;
|
|
10
|
+
nameAccessor?: string;
|
|
11
|
+
ref?: React.RefObject<HTMLDivElement>;
|
|
12
|
+
value?: string;
|
|
13
|
+
theme?: FreemiumUIThemes;
|
|
14
|
+
};
|
|
15
|
+
export declare const Tabs: {
|
|
16
|
+
(props: TabsProps): JSX.Element;
|
|
17
|
+
displayName: string;
|
|
18
|
+
__docgenInfo: {
|
|
19
|
+
description: string;
|
|
20
|
+
displayName: string;
|
|
21
|
+
props: {
|
|
22
|
+
onChange: {
|
|
23
|
+
defaultValue: null;
|
|
24
|
+
description: string;
|
|
25
|
+
name: string;
|
|
26
|
+
required: boolean;
|
|
27
|
+
type: {
|
|
28
|
+
name: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
options: {
|
|
32
|
+
defaultValue: null;
|
|
33
|
+
description: string;
|
|
34
|
+
name: string;
|
|
35
|
+
required: boolean;
|
|
36
|
+
type: {
|
|
37
|
+
name: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
idAccessor: {
|
|
41
|
+
defaultValue: null;
|
|
42
|
+
description: string;
|
|
43
|
+
name: string;
|
|
44
|
+
required: boolean;
|
|
45
|
+
type: {
|
|
46
|
+
name: string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
nameAccessor: {
|
|
50
|
+
defaultValue: null;
|
|
51
|
+
description: string;
|
|
52
|
+
name: string;
|
|
53
|
+
required: boolean;
|
|
54
|
+
type: {
|
|
55
|
+
name: string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
ref: {
|
|
59
|
+
defaultValue: null;
|
|
60
|
+
description: string;
|
|
61
|
+
name: string;
|
|
62
|
+
required: boolean;
|
|
63
|
+
type: {
|
|
64
|
+
name: string;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
value: {
|
|
68
|
+
defaultValue: null;
|
|
69
|
+
description: string;
|
|
70
|
+
name: string;
|
|
71
|
+
required: boolean;
|
|
72
|
+
type: {
|
|
73
|
+
name: string;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
theme: {
|
|
77
|
+
defaultValue: null;
|
|
78
|
+
description: string;
|
|
79
|
+
name: string;
|
|
80
|
+
required: boolean;
|
|
81
|
+
type: {
|
|
82
|
+
name: string;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Tabs';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare type TagProps = {
|
|
3
|
+
children: string;
|
|
4
|
+
onCloseAction: (e: React.MouseEvent) => void;
|
|
5
|
+
};
|
|
6
|
+
export declare const Tag: {
|
|
7
|
+
(props: TagProps): JSX.Element;
|
|
8
|
+
displayName: string;
|
|
9
|
+
__docgenInfo: {
|
|
10
|
+
description: string;
|
|
11
|
+
displayName: string;
|
|
12
|
+
props: {
|
|
13
|
+
onCloseAction: {
|
|
14
|
+
defaultValue: null;
|
|
15
|
+
description: string;
|
|
16
|
+
name: string;
|
|
17
|
+
required: boolean;
|
|
18
|
+
type: {
|
|
19
|
+
name: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Tag';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare type Merge<T1, T2> = Omit<T1, Extract<keyof T1, keyof T2>> & T2;
|
|
3
|
+
export declare type Dict<T = any> = Record<string, T>;
|
|
4
|
+
export interface ThemeProviderProps {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
globalStyle: boolean;
|
|
7
|
+
theme: Dict;
|
|
8
|
+
}
|
|
9
|
+
export declare function ThemeProvider(props: ThemeProviderProps): JSX.Element;
|
|
10
|
+
export declare function useTheme<T extends object = Dict>(): T;
|
|
11
|
+
export declare type FreemiumUIProviderProps = ThemeProviderProps;
|
|
12
|
+
export declare function FreemiumUIProvider(props: FreemiumUIProviderProps): JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactChild } from 'react';
|
|
2
|
+
declare type ToastType = {
|
|
3
|
+
type: 'success' | 'warning' | 'error';
|
|
4
|
+
title: string;
|
|
5
|
+
description: string;
|
|
6
|
+
id: number;
|
|
7
|
+
};
|
|
8
|
+
declare const ToastWrapper: (props: {
|
|
9
|
+
children: ReactChild;
|
|
10
|
+
}) => JSX.Element;
|
|
11
|
+
declare const useToast: () => (toast: Omit<ToastType, 'id'>) => void;
|
|
12
|
+
export declare const moveRightKeyframe: import("styled-components").Keyframes;
|
|
13
|
+
export default useToast;
|
|
14
|
+
export { ToastWrapper };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface ToggleProps {
|
|
3
|
+
on: boolean;
|
|
4
|
+
handleChange: () => void;
|
|
5
|
+
size: 'sm' | 'md';
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
hasIcon: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const Toggle: React.ComponentType<Partial<{
|
|
10
|
+
on: boolean;
|
|
11
|
+
size: string;
|
|
12
|
+
disabled: boolean;
|
|
13
|
+
hasIcon: boolean;
|
|
14
|
+
}> & Pick<ToggleProps, "handleChange">>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Toggle';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare type tipLocation = 'top' | 'right' | 'left' | 'bottom';
|
|
3
|
+
export interface TooltipProps {
|
|
4
|
+
position?: tipLocation;
|
|
5
|
+
label: any;
|
|
6
|
+
children: any;
|
|
7
|
+
arrow?: boolean;
|
|
8
|
+
interactive?: boolean;
|
|
9
|
+
html?: any;
|
|
10
|
+
style?: any;
|
|
11
|
+
trigger?: 'mouseenter' | 'click';
|
|
12
|
+
theme?: 'dark' | 'light' | 'transparent';
|
|
13
|
+
}
|
|
14
|
+
export declare const Tooltip: React.SFC<TooltipProps>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Tooltip';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const hexa: (hex: string, alpha: number) => string;
|
|
2
|
+
export declare type tipLocation = 'top-left' | 'top-right' | 'top' | 'right' | 'bottom-left' | 'bottom-right' | 'left' | 'bottom';
|
|
3
|
+
declare type TooltipProps = {
|
|
4
|
+
tipLocation: tipLocation;
|
|
5
|
+
};
|
|
6
|
+
export declare const Shadow: {
|
|
7
|
+
low: string;
|
|
8
|
+
mid: string;
|
|
9
|
+
high: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const Tooltip: (props: {
|
|
12
|
+
tipText: string;
|
|
13
|
+
} & TooltipProps) => import("styled-components").FlattenSimpleInterpolation;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|