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,199 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import hoistNonReactStatics from 'hoist-non-react-statics';
|
|
3
|
+
export declare const DROPDOWN_TYPES: {
|
|
4
|
+
BUTTON: string;
|
|
5
|
+
INPUT: string;
|
|
6
|
+
};
|
|
7
|
+
export declare function withDownshift(Component: any): React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>> & hoistNonReactStatics.NonReactStatics<any, {}>;
|
|
8
|
+
export declare namespace withDownshift {
|
|
9
|
+
var displayName: string;
|
|
10
|
+
var __docgenInfo: {
|
|
11
|
+
description: string;
|
|
12
|
+
displayName: string;
|
|
13
|
+
props: {};
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
declare type DropdownProps = {
|
|
17
|
+
items: string[] | Record<string, unknown>[];
|
|
18
|
+
defaultSelectedItem: string | null | Record<string, unknown>;
|
|
19
|
+
onChange?: (value: any) => any;
|
|
20
|
+
itemToString?: (a: any) => any;
|
|
21
|
+
type?: 'button' | 'input';
|
|
22
|
+
filterKey?: string;
|
|
23
|
+
label?: string;
|
|
24
|
+
width?: string;
|
|
25
|
+
placeholder?: string;
|
|
26
|
+
itemComponent?: React.ReactNode;
|
|
27
|
+
name?: string;
|
|
28
|
+
errorText?: string;
|
|
29
|
+
children?: any;
|
|
30
|
+
disabled?: boolean;
|
|
31
|
+
isErrored?: boolean;
|
|
32
|
+
isRequired?: boolean;
|
|
33
|
+
overrideButtonStyles?: any;
|
|
34
|
+
overrideContainerStyles?: any;
|
|
35
|
+
};
|
|
36
|
+
export declare const Dropdown: {
|
|
37
|
+
(props: DropdownProps): JSX.Element;
|
|
38
|
+
displayName: string;
|
|
39
|
+
__docgenInfo: {
|
|
40
|
+
description: string;
|
|
41
|
+
displayName: string;
|
|
42
|
+
props: {
|
|
43
|
+
items: {
|
|
44
|
+
defaultValue: null;
|
|
45
|
+
description: string;
|
|
46
|
+
name: string;
|
|
47
|
+
required: boolean;
|
|
48
|
+
type: {
|
|
49
|
+
name: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
defaultSelectedItem: {
|
|
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
|
+
itemToString: {
|
|
71
|
+
defaultValue: null;
|
|
72
|
+
description: string;
|
|
73
|
+
name: string;
|
|
74
|
+
required: boolean;
|
|
75
|
+
type: {
|
|
76
|
+
name: string;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
type: {
|
|
80
|
+
defaultValue: null;
|
|
81
|
+
description: string;
|
|
82
|
+
name: string;
|
|
83
|
+
required: boolean;
|
|
84
|
+
type: {
|
|
85
|
+
name: string;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
filterKey: {
|
|
89
|
+
defaultValue: null;
|
|
90
|
+
description: string;
|
|
91
|
+
name: string;
|
|
92
|
+
required: boolean;
|
|
93
|
+
type: {
|
|
94
|
+
name: string;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
label: {
|
|
98
|
+
defaultValue: null;
|
|
99
|
+
description: string;
|
|
100
|
+
name: string;
|
|
101
|
+
required: boolean;
|
|
102
|
+
type: {
|
|
103
|
+
name: string;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
width: {
|
|
107
|
+
defaultValue: null;
|
|
108
|
+
description: string;
|
|
109
|
+
name: string;
|
|
110
|
+
required: boolean;
|
|
111
|
+
type: {
|
|
112
|
+
name: string;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
placeholder: {
|
|
116
|
+
defaultValue: null;
|
|
117
|
+
description: string;
|
|
118
|
+
name: string;
|
|
119
|
+
required: boolean;
|
|
120
|
+
type: {
|
|
121
|
+
name: string;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
itemComponent: {
|
|
125
|
+
defaultValue: null;
|
|
126
|
+
description: string;
|
|
127
|
+
name: string;
|
|
128
|
+
required: boolean;
|
|
129
|
+
type: {
|
|
130
|
+
name: string;
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
name: {
|
|
134
|
+
defaultValue: null;
|
|
135
|
+
description: string;
|
|
136
|
+
name: string;
|
|
137
|
+
required: boolean;
|
|
138
|
+
type: {
|
|
139
|
+
name: string;
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
errorText: {
|
|
143
|
+
defaultValue: null;
|
|
144
|
+
description: string;
|
|
145
|
+
name: string;
|
|
146
|
+
required: boolean;
|
|
147
|
+
type: {
|
|
148
|
+
name: string;
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
disabled: {
|
|
152
|
+
defaultValue: null;
|
|
153
|
+
description: string;
|
|
154
|
+
name: string;
|
|
155
|
+
required: boolean;
|
|
156
|
+
type: {
|
|
157
|
+
name: string;
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
isErrored: {
|
|
161
|
+
defaultValue: null;
|
|
162
|
+
description: string;
|
|
163
|
+
name: string;
|
|
164
|
+
required: boolean;
|
|
165
|
+
type: {
|
|
166
|
+
name: string;
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
isRequired: {
|
|
170
|
+
defaultValue: null;
|
|
171
|
+
description: string;
|
|
172
|
+
name: string;
|
|
173
|
+
required: boolean;
|
|
174
|
+
type: {
|
|
175
|
+
name: string;
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
overrideButtonStyles: {
|
|
179
|
+
defaultValue: null;
|
|
180
|
+
description: string;
|
|
181
|
+
name: string;
|
|
182
|
+
required: boolean;
|
|
183
|
+
type: {
|
|
184
|
+
name: string;
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
overrideContainerStyles: {
|
|
188
|
+
defaultValue: null;
|
|
189
|
+
description: string;
|
|
190
|
+
name: string;
|
|
191
|
+
required: boolean;
|
|
192
|
+
type: {
|
|
193
|
+
name: string;
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
export {};
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare type Props = {
|
|
3
|
+
glyph: string;
|
|
4
|
+
size?: number | string;
|
|
5
|
+
color?: string;
|
|
6
|
+
onClick?: any;
|
|
7
|
+
dataCy?: string;
|
|
8
|
+
viewBox?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const InlineSvg: import("styled-components").StyledComponent<"svg", any, {}, never>;
|
|
11
|
+
declare type SvgWrapperProps = {
|
|
12
|
+
size: number | string;
|
|
13
|
+
};
|
|
14
|
+
export declare const SvgWrapper: import("styled-components").StyledComponent<"div", any, SvgWrapperProps, never>;
|
|
15
|
+
declare type GlyphProps = {
|
|
16
|
+
glyph: string;
|
|
17
|
+
};
|
|
18
|
+
export declare const Glyph: {
|
|
19
|
+
({ glyph }: GlyphProps): JSX.Element | null;
|
|
20
|
+
displayName: string;
|
|
21
|
+
__docgenInfo: {
|
|
22
|
+
description: string;
|
|
23
|
+
displayName: string;
|
|
24
|
+
props: {
|
|
25
|
+
glyph: {
|
|
26
|
+
defaultValue: null;
|
|
27
|
+
description: string;
|
|
28
|
+
name: string;
|
|
29
|
+
required: boolean;
|
|
30
|
+
type: {
|
|
31
|
+
name: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
export declare const Icons: {
|
|
38
|
+
(props: Props): JSX.Element;
|
|
39
|
+
displayName: string;
|
|
40
|
+
__docgenInfo: {
|
|
41
|
+
description: string;
|
|
42
|
+
displayName: string;
|
|
43
|
+
props: {
|
|
44
|
+
glyph: {
|
|
45
|
+
defaultValue: null;
|
|
46
|
+
description: string;
|
|
47
|
+
name: string;
|
|
48
|
+
required: boolean;
|
|
49
|
+
type: {
|
|
50
|
+
name: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
size: {
|
|
54
|
+
defaultValue: null;
|
|
55
|
+
description: string;
|
|
56
|
+
name: string;
|
|
57
|
+
required: boolean;
|
|
58
|
+
type: {
|
|
59
|
+
name: string;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
color: {
|
|
63
|
+
defaultValue: null;
|
|
64
|
+
description: string;
|
|
65
|
+
name: string;
|
|
66
|
+
required: boolean;
|
|
67
|
+
type: {
|
|
68
|
+
name: string;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
onClick: {
|
|
72
|
+
defaultValue: null;
|
|
73
|
+
description: string;
|
|
74
|
+
name: string;
|
|
75
|
+
required: boolean;
|
|
76
|
+
type: {
|
|
77
|
+
name: string;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
dataCy: {
|
|
81
|
+
defaultValue: null;
|
|
82
|
+
description: string;
|
|
83
|
+
name: string;
|
|
84
|
+
required: boolean;
|
|
85
|
+
type: {
|
|
86
|
+
name: string;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
viewBox: {
|
|
90
|
+
defaultValue: null;
|
|
91
|
+
description: string;
|
|
92
|
+
name: string;
|
|
93
|
+
required: boolean;
|
|
94
|
+
type: {
|
|
95
|
+
name: string;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Icons';
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface InputProps extends React.HTMLAttributes<HTMLInputElement> {
|
|
3
|
+
isErrored: boolean;
|
|
4
|
+
showCount: boolean;
|
|
5
|
+
errorText?: string;
|
|
6
|
+
maxLength?: any;
|
|
7
|
+
type?: string;
|
|
8
|
+
label: string;
|
|
9
|
+
style?: any;
|
|
10
|
+
value?: any;
|
|
11
|
+
inputStyle?: any;
|
|
12
|
+
className?: string;
|
|
13
|
+
startLabel?: React.ReactNode | any;
|
|
14
|
+
startAdornment?: React.ReactNode | any;
|
|
15
|
+
endLabel?: React.ReactNode | any;
|
|
16
|
+
endAdornment?: React.ReactNode | any;
|
|
17
|
+
isRequired?: boolean;
|
|
18
|
+
inline?: boolean;
|
|
19
|
+
}
|
|
20
|
+
interface TextAreaProps extends React.HTMLAttributes<HTMLTextAreaElement> {
|
|
21
|
+
isErrored: boolean;
|
|
22
|
+
errorText?: string;
|
|
23
|
+
style?: any;
|
|
24
|
+
inputStyle?: any;
|
|
25
|
+
className?: string;
|
|
26
|
+
label: string;
|
|
27
|
+
startLabel?: React.ReactNode | any;
|
|
28
|
+
startAdornment?: React.ReactNode | any;
|
|
29
|
+
endLabel?: React.ReactNode | any;
|
|
30
|
+
endAdornment?: React.ReactNode | any;
|
|
31
|
+
isRequired?: boolean;
|
|
32
|
+
inline?: boolean;
|
|
33
|
+
}
|
|
34
|
+
export declare const Input: React.ComponentType<Partial<{
|
|
35
|
+
isRequired: boolean;
|
|
36
|
+
showCount: boolean;
|
|
37
|
+
isErrored: boolean;
|
|
38
|
+
inline: boolean;
|
|
39
|
+
spellcheck: boolean;
|
|
40
|
+
}> & Pick<InputProps & React.RefAttributes<HTMLInputElement>, "label" | "slot" | "style" | "title" | "ref" | "className" | "color" | "id" | "lang" | "type" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "value" | "maxLength" | "errorText" | "inputStyle" | "startLabel" | "startAdornment" | "endLabel" | "endAdornment">>;
|
|
41
|
+
export declare const TextArea: React.ComponentType<Partial<{
|
|
42
|
+
isRequired: boolean;
|
|
43
|
+
showCount: boolean;
|
|
44
|
+
isErrored: boolean;
|
|
45
|
+
inline: boolean;
|
|
46
|
+
spellcheck: boolean;
|
|
47
|
+
}> & Pick<TextAreaProps & React.RefAttributes<HTMLTextAreaElement>, "label" | "slot" | "style" | "title" | "ref" | "className" | "color" | "id" | "lang" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "errorText" | "inputStyle" | "startLabel" | "startAdornment" | "endLabel" | "endAdornment">>;
|
|
48
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Input';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './loader';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import FreemiumUIThemes from '../../theme';
|
|
3
|
+
interface MenuItemProps {
|
|
4
|
+
[key: string]: any;
|
|
5
|
+
}
|
|
6
|
+
declare type MenuProps = {
|
|
7
|
+
onSelect?: (option: MenuItemProps) => void;
|
|
8
|
+
closeMenuCallback?: () => void;
|
|
9
|
+
options?: Array<MenuItemProps>;
|
|
10
|
+
ref?: React.RefObject<HTMLUListElement> | null;
|
|
11
|
+
idAccessor?: string;
|
|
12
|
+
highlightedIndex?: number | null;
|
|
13
|
+
nameAccessor?: string;
|
|
14
|
+
theme?: FreemiumUIThemes;
|
|
15
|
+
};
|
|
16
|
+
export declare const Menu: {
|
|
17
|
+
({ idAccessor, nameAccessor, highlightedIndex, options, onSelect, closeMenuCallback, }: MenuProps): JSX.Element;
|
|
18
|
+
displayName: string;
|
|
19
|
+
__docgenInfo: {
|
|
20
|
+
description: string;
|
|
21
|
+
displayName: string;
|
|
22
|
+
props: {
|
|
23
|
+
onSelect: {
|
|
24
|
+
defaultValue: {
|
|
25
|
+
value: string;
|
|
26
|
+
};
|
|
27
|
+
description: string;
|
|
28
|
+
name: string;
|
|
29
|
+
required: boolean;
|
|
30
|
+
type: {
|
|
31
|
+
name: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
closeMenuCallback: {
|
|
35
|
+
defaultValue: {
|
|
36
|
+
value: string;
|
|
37
|
+
};
|
|
38
|
+
description: string;
|
|
39
|
+
name: string;
|
|
40
|
+
required: boolean;
|
|
41
|
+
type: {
|
|
42
|
+
name: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
options: {
|
|
46
|
+
defaultValue: {
|
|
47
|
+
value: string;
|
|
48
|
+
};
|
|
49
|
+
description: string;
|
|
50
|
+
name: string;
|
|
51
|
+
required: boolean;
|
|
52
|
+
type: {
|
|
53
|
+
name: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
ref: {
|
|
57
|
+
defaultValue: null;
|
|
58
|
+
description: string;
|
|
59
|
+
name: string;
|
|
60
|
+
required: boolean;
|
|
61
|
+
type: {
|
|
62
|
+
name: string;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
idAccessor: {
|
|
66
|
+
defaultValue: {
|
|
67
|
+
value: string;
|
|
68
|
+
};
|
|
69
|
+
description: string;
|
|
70
|
+
name: string;
|
|
71
|
+
required: boolean;
|
|
72
|
+
type: {
|
|
73
|
+
name: string;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
highlightedIndex: {
|
|
77
|
+
defaultValue: null;
|
|
78
|
+
description: string;
|
|
79
|
+
name: string;
|
|
80
|
+
required: boolean;
|
|
81
|
+
type: {
|
|
82
|
+
name: string;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
nameAccessor: {
|
|
86
|
+
defaultValue: {
|
|
87
|
+
value: string;
|
|
88
|
+
};
|
|
89
|
+
description: string;
|
|
90
|
+
name: string;
|
|
91
|
+
required: boolean;
|
|
92
|
+
type: {
|
|
93
|
+
name: string;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
theme: {
|
|
97
|
+
defaultValue: null;
|
|
98
|
+
description: string;
|
|
99
|
+
name: string;
|
|
100
|
+
required: boolean;
|
|
101
|
+
type: {
|
|
102
|
+
name: string;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Menu';
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { MODALSIZE, POSITION } from './styles';
|
|
3
|
+
export interface ModalProps {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
isOpen: boolean;
|
|
6
|
+
position?: POSITION;
|
|
7
|
+
size?: MODALSIZE;
|
|
8
|
+
onDismiss: () => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const Modal: {
|
|
11
|
+
({ children, isOpen, onDismiss, position, size, }: ModalProps): JSX.Element;
|
|
12
|
+
displayName: string;
|
|
13
|
+
__docgenInfo: {
|
|
14
|
+
description: string;
|
|
15
|
+
displayName: string;
|
|
16
|
+
props: {
|
|
17
|
+
isOpen: {
|
|
18
|
+
defaultValue: null;
|
|
19
|
+
description: string;
|
|
20
|
+
name: string;
|
|
21
|
+
required: boolean;
|
|
22
|
+
type: {
|
|
23
|
+
name: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
position: {
|
|
27
|
+
defaultValue: {
|
|
28
|
+
value: string;
|
|
29
|
+
};
|
|
30
|
+
description: string;
|
|
31
|
+
name: string;
|
|
32
|
+
required: boolean;
|
|
33
|
+
type: {
|
|
34
|
+
name: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
size: {
|
|
38
|
+
defaultValue: {
|
|
39
|
+
value: string;
|
|
40
|
+
};
|
|
41
|
+
description: string;
|
|
42
|
+
name: string;
|
|
43
|
+
required: boolean;
|
|
44
|
+
type: {
|
|
45
|
+
name: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
onDismiss: {
|
|
49
|
+
defaultValue: null;
|
|
50
|
+
description: string;
|
|
51
|
+
name: string;
|
|
52
|
+
required: boolean;
|
|
53
|
+
type: {
|
|
54
|
+
name: string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const ModalOverlay: import("styled-components").StyledComponent<any, any, object, string | number | symbol>;
|
|
3
|
+
export declare type POSITION = 'left' | 'center' | 'right';
|
|
4
|
+
export declare type MODALSIZE = 'default' | 'medium' | 'small' | 'large';
|
|
5
|
+
export declare const ModalContent: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<{
|
|
6
|
+
children?: import("react").ReactNode;
|
|
7
|
+
} & import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>, any, {
|
|
8
|
+
size: MODALSIZE;
|
|
9
|
+
}, never>;
|
|
10
|
+
export declare const ModalBody: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
11
|
+
export declare const ModalFooter: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Dispatch, MutableRefObject, SetStateAction } from 'react';
|
|
2
|
+
export declare const useModal: {
|
|
3
|
+
(initialVisible?: boolean): {
|
|
4
|
+
visible: boolean;
|
|
5
|
+
setVisible: Dispatch<SetStateAction<boolean>>;
|
|
6
|
+
currentRef: MutableRefObject<boolean>;
|
|
7
|
+
bindings: {
|
|
8
|
+
isOpen: boolean;
|
|
9
|
+
onDismiss: () => void;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
displayName: string;
|
|
13
|
+
__docgenInfo: {
|
|
14
|
+
description: string;
|
|
15
|
+
displayName: string;
|
|
16
|
+
props: {
|
|
17
|
+
valueOf: {
|
|
18
|
+
defaultValue: null;
|
|
19
|
+
description: string;
|
|
20
|
+
name: string;
|
|
21
|
+
required: boolean;
|
|
22
|
+
type: {
|
|
23
|
+
name: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
};
|