freemium-ui 2.0.0-beta.0 → 2.0.0-beta.2
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/README.md +51 -26
- package/lib/allPaths-WmpInmc6.js +1 -0
- package/lib/allPaths-ZvyseO3W.js +1 -0
- package/lib/allPathsLoader-Y52NXCsH.js +1 -0
- package/lib/allPathsLoader-tNTtmXiS.js +1 -0
- package/lib/assets/bundle-7im1geMl.css +614 -0
- package/lib/index-4croX9DV.js +1 -0
- package/lib/index-7EbF0dW2.js +1 -0
- package/lib/index-GUn9nFX6.js +53 -0
- package/lib/index-nKZqXJSi.js +53 -0
- package/lib/index-u6cJndUc.js +1 -0
- package/lib/index-y8BjCJFH.js +1 -0
- package/lib/index.d.ts +1063 -741
- package/lib/index.js +1 -833
- package/lib/splitPathsBySizeLoader-4BmQebNp.js +1 -0
- package/lib/splitPathsBySizeLoader-s5khSoTu.js +1 -0
- package/package.json +27 -16
- package/lib/index.esm.js +0 -833
- package/rollup.config.mjs +0 -47
package/lib/index.d.ts
CHANGED
|
@@ -1,833 +1,1155 @@
|
|
|
1
|
-
import
|
|
2
|
-
import * as React$1 from 'react';
|
|
3
|
-
import React__default, { Dispatch, SetStateAction, MutableRefObject } from 'react';
|
|
1
|
+
import { CheckboxProps as CheckboxProps$1 } from '@radix-ui/react-checkbox';
|
|
4
2
|
import { UseSelectProps, UseComboboxProps } from 'downshift';
|
|
5
3
|
import { LabelProps } from '@radix-ui/react-label';
|
|
6
|
-
import styleInject from '/Users/basembulingam/Files/Code Repo/freemium-ui/node_modules/style-inject/dist/style-inject.es.js';
|
|
7
4
|
import { DateInput3Props, DateRangeInput3Props } from '@blueprintjs/datetime2';
|
|
8
5
|
import * as RadixPopover from '@radix-ui/react-popover';
|
|
9
6
|
import { RadioGroupContextValue } from '@radix-ui/react-radio-group';
|
|
7
|
+
import { DraggableSyntheticListeners } from '@dnd-kit/core';
|
|
8
|
+
import { CoreOptions } from '@tanstack/react-table';
|
|
10
9
|
import { TabsProps as TabsProps$1 } from '@radix-ui/react-tabs';
|
|
11
10
|
import { TooltipProviderProps, TooltipProps as TooltipProps$1, TooltipArrowProps } from '@radix-ui/react-tooltip';
|
|
12
11
|
import { TransitionProps as TransitionProps$1 } from 'react-transition-group/Transition';
|
|
13
12
|
export { TransitionStatus } from 'react-transition-group/Transition';
|
|
14
13
|
|
|
15
14
|
type LevelType = 'warning' | 'success' | 'error' | 'info';
|
|
15
|
+
|
|
16
16
|
type AlertData = {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
message: string;
|
|
18
|
+
linkText?: string;
|
|
19
|
+
href?: string;
|
|
20
20
|
};
|
|
21
|
+
|
|
21
22
|
interface AlertProps {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
23
|
+
/**
|
|
24
|
+
* data to be displayed in the alert
|
|
25
|
+
*/
|
|
26
|
+
data?: AlertData;
|
|
27
|
+
/**
|
|
28
|
+
* Level of the alert
|
|
29
|
+
*/
|
|
30
|
+
level: LevelType;
|
|
31
|
+
/**
|
|
32
|
+
* Whether the alert can be dismissed
|
|
33
|
+
*/
|
|
34
|
+
canDismiss?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Timeout for the alert to disappear
|
|
37
|
+
*/
|
|
38
|
+
timeout?: number;
|
|
39
|
+
/**
|
|
40
|
+
* Class name to be overriden
|
|
41
|
+
*/
|
|
42
|
+
overideClassName?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Children to be displayed in the alert
|
|
45
|
+
*/
|
|
46
|
+
children?: React.ReactNode | string;
|
|
47
|
+
/**
|
|
48
|
+
* Function to be called when the alert is closed
|
|
49
|
+
*/
|
|
50
|
+
onClose?: () => any;
|
|
51
|
+
/**
|
|
52
|
+
* Function to be called when the alert is dismissed
|
|
53
|
+
*/
|
|
54
|
+
onDisappear?: () => any;
|
|
36
55
|
}
|
|
37
56
|
|
|
38
|
-
/**
|
|
39
|
-
* Primary UI component for user interaction
|
|
40
|
-
*/
|
|
41
|
-
declare const Alert: ({ canDismiss, onClose, children, level, onDisappear, data, timeout, overideClassName, }: AlertProps) => react_jsx_runtime.JSX.Element | null;
|
|
42
|
-
|
|
43
57
|
type ButtonSizeKey = 'mini' | 'normal' | 'large';
|
|
44
58
|
type ButtonVariant = 'primary' | 'secondary' | 'danger' | 'link';
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
59
|
+
|
|
60
|
+
interface ButtonProps
|
|
61
|
+
extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
62
|
+
/**
|
|
63
|
+
* The size of the button
|
|
64
|
+
*/
|
|
65
|
+
size?: ButtonSizeKey;
|
|
66
|
+
/**
|
|
67
|
+
* The variant of the button
|
|
68
|
+
*/
|
|
69
|
+
variant?: 'primary' | 'secondary' | 'danger' | 'link';
|
|
70
|
+
/**
|
|
71
|
+
* The children to be displayed in the button
|
|
72
|
+
*/
|
|
73
|
+
children?: React.ReactNode | string;
|
|
74
|
+
/**
|
|
75
|
+
* Whether the button is loading
|
|
76
|
+
*/
|
|
77
|
+
loading?: boolean;
|
|
78
|
+
/**
|
|
79
|
+
* Whether the button is inline
|
|
80
|
+
*/
|
|
81
|
+
inline?: boolean;
|
|
66
82
|
}
|
|
67
83
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
84
|
+
interface CheckboxProps extends CheckboxProps$1 {
|
|
85
|
+
/**
|
|
86
|
+
* Whether the checkbox is required
|
|
87
|
+
*/
|
|
88
|
+
isRequired?: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* Whether the checkbox is errored
|
|
91
|
+
*/
|
|
92
|
+
isErrored?: boolean;
|
|
93
|
+
/**
|
|
94
|
+
* Label for the checkbox
|
|
95
|
+
*/
|
|
96
|
+
label?: string;
|
|
80
97
|
}
|
|
81
|
-
/**
|
|
82
|
-
* Primary UI component for user interaction
|
|
83
|
-
*/
|
|
84
|
-
declare const Checkbox: ({ isRequired, isErrored, label, ...rest }: CheckboxProps) => react_jsx_runtime.JSX.Element;
|
|
85
98
|
|
|
86
99
|
interface ConfirmationProps {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
100
|
+
/**
|
|
101
|
+
* Is the confirmation open
|
|
102
|
+
*/
|
|
103
|
+
isOpen?: boolean;
|
|
104
|
+
/**
|
|
105
|
+
* Is the confirm button disabled
|
|
106
|
+
*/
|
|
107
|
+
confirmButtonDisabled?: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* Is the cancel button disabled
|
|
110
|
+
*/
|
|
111
|
+
cancelButtonDisabled?: boolean;
|
|
112
|
+
/**
|
|
113
|
+
* Title of the confirmation
|
|
114
|
+
*/
|
|
115
|
+
title?: string;
|
|
116
|
+
/**
|
|
117
|
+
* Description of the confirmation
|
|
118
|
+
*/
|
|
119
|
+
description?: string;
|
|
120
|
+
/**
|
|
121
|
+
* Width of the confirmation
|
|
122
|
+
*/
|
|
123
|
+
width?: string;
|
|
124
|
+
/**
|
|
125
|
+
* Function to be called when the confirmation is dismissed
|
|
126
|
+
*/
|
|
127
|
+
onDismiss?: (type: 'overlay' | 'button') => void;
|
|
128
|
+
/**
|
|
129
|
+
* Function to be called when the confirmation is confirmed
|
|
130
|
+
*/
|
|
131
|
+
onConfirm?: () => void;
|
|
132
|
+
/**
|
|
133
|
+
* Confirm button text
|
|
134
|
+
*/
|
|
135
|
+
confirmButtonText?: string;
|
|
136
|
+
/**
|
|
137
|
+
* Cancel button text
|
|
138
|
+
*/
|
|
139
|
+
cancelButtonText?: string;
|
|
140
|
+
/**
|
|
141
|
+
* Styles for the overlay
|
|
142
|
+
*/
|
|
143
|
+
bodyStyles?: React.CSSProperties;
|
|
144
|
+
/**
|
|
145
|
+
* Styles for the content
|
|
146
|
+
*/
|
|
147
|
+
contentStyles?: React.CSSProperties;
|
|
148
|
+
/**
|
|
149
|
+
* Styles for the footer
|
|
150
|
+
*/
|
|
151
|
+
footerStyles?: React.CSSProperties;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
type DrawerSizeType =
|
|
155
|
+
| 'default'
|
|
156
|
+
| 'medium'
|
|
157
|
+
| 'small'
|
|
158
|
+
| 'large'
|
|
159
|
+
| 'x-large';
|
|
160
|
+
|
|
161
|
+
type DrawerPlacement = 'left' | 'right';
|
|
162
|
+
|
|
163
|
+
interface DrawerProps {
|
|
164
|
+
/**
|
|
165
|
+
* The children to be displayed in the drawer
|
|
166
|
+
*/
|
|
167
|
+
children?: React.ReactNode | string;
|
|
168
|
+
/**
|
|
169
|
+
* Whether the drawer is open
|
|
170
|
+
*/
|
|
171
|
+
isOpen?: boolean;
|
|
172
|
+
/**
|
|
173
|
+
* The placement of the drawer
|
|
174
|
+
*/
|
|
175
|
+
placement?: DrawerPlacement;
|
|
176
|
+
/**
|
|
177
|
+
* The size of the drawer
|
|
178
|
+
*/
|
|
179
|
+
size?: DrawerSizeType;
|
|
180
|
+
/**
|
|
181
|
+
* Whether the drawer is full height
|
|
182
|
+
*/
|
|
183
|
+
isFullHeight?: boolean;
|
|
184
|
+
/**
|
|
185
|
+
* Should the drawer close when clicking outside
|
|
186
|
+
*/
|
|
187
|
+
clickOutToClose?: boolean;
|
|
188
|
+
/**
|
|
189
|
+
* Should we hide the dismiss icon
|
|
190
|
+
*/
|
|
191
|
+
hideDismissIcon?: boolean;
|
|
192
|
+
/**
|
|
193
|
+
* Custom class to be added to the drawer
|
|
194
|
+
*/
|
|
195
|
+
customClass?: string;
|
|
196
|
+
/**
|
|
197
|
+
* Function to be called when the drawer is dismissed
|
|
198
|
+
*/
|
|
199
|
+
onDismiss?: () => void;
|
|
139
200
|
}
|
|
140
|
-
/**
|
|
141
|
-
* Primary UI component for user interaction
|
|
142
|
-
*/
|
|
143
|
-
declare const Confirmation: ({ isOpen, title, description, onConfirm, onDismiss, cancelButtonText, cancelButtonDisabled, confirmButtonDisabled, confirmButtonText, bodyStyles, contentStyles, footerStyles, width, }: ConfirmationProps) => react_jsx_runtime.JSX.Element;
|
|
144
|
-
|
|
145
|
-
declare const useConfirmation: (initialVisible?: boolean) => {
|
|
146
|
-
visible: boolean;
|
|
147
|
-
setVisible: Dispatch<SetStateAction<boolean>>;
|
|
148
|
-
currentRef: MutableRefObject<boolean>;
|
|
149
|
-
bindings: {
|
|
150
|
-
isOpen: boolean;
|
|
151
|
-
onDismiss: () => void;
|
|
152
|
-
};
|
|
153
|
-
};
|
|
154
201
|
|
|
155
202
|
type DropdownTypes = 'button' | 'input';
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
203
|
+
|
|
204
|
+
type DefaultDropdownItem = {
|
|
205
|
+
id: string | number;
|
|
206
|
+
name?: string;
|
|
207
|
+
disabled?: boolean;
|
|
208
|
+
[key: string]: any;
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
interface DropdownProps<
|
|
212
|
+
T extends DefaultDropdownItem = DefaultDropdownItem,
|
|
213
|
+
> {
|
|
214
|
+
/**
|
|
215
|
+
* The items to be displayed in the dropdown
|
|
216
|
+
*/
|
|
217
|
+
items?: Array<T>;
|
|
218
|
+
/**
|
|
219
|
+
* The identifier for the items
|
|
220
|
+
*/
|
|
221
|
+
itemIdentifier?: string;
|
|
222
|
+
/**
|
|
223
|
+
* The selected item
|
|
224
|
+
*/
|
|
225
|
+
defaultSelectedItem?: T | null;
|
|
226
|
+
/**
|
|
227
|
+
* Function to be called when the selected item changes
|
|
228
|
+
*/
|
|
229
|
+
onChange?: (item?: T | null) => void;
|
|
230
|
+
/**
|
|
231
|
+
* Fuction to give the string representation of the item
|
|
232
|
+
*/
|
|
233
|
+
itemToString: (item: T | null, type?: 'list-item' | 'display') => string;
|
|
234
|
+
/**
|
|
235
|
+
* The type of the dropdown
|
|
236
|
+
*/
|
|
237
|
+
type: DropdownTypes;
|
|
238
|
+
/**
|
|
239
|
+
* Is the dropdown read only
|
|
240
|
+
*/
|
|
241
|
+
readOnly?: boolean;
|
|
242
|
+
/**
|
|
243
|
+
* Whether disabled select
|
|
244
|
+
*/
|
|
245
|
+
disabled?: boolean;
|
|
246
|
+
/**
|
|
247
|
+
* The name of the dropdown
|
|
248
|
+
*/
|
|
249
|
+
name?: string;
|
|
250
|
+
/**
|
|
251
|
+
* The width of the dropdown
|
|
252
|
+
*/
|
|
253
|
+
width?: string;
|
|
254
|
+
/**
|
|
255
|
+
* The key to be used for filtering
|
|
256
|
+
*/
|
|
257
|
+
filterKey?: string;
|
|
258
|
+
/**
|
|
259
|
+
*
|
|
260
|
+
*/
|
|
261
|
+
getCustomMessage?: (inoutValue: string) => string;
|
|
262
|
+
/**
|
|
263
|
+
*
|
|
264
|
+
*/
|
|
265
|
+
emptyItemsText?: string;
|
|
266
|
+
/**
|
|
267
|
+
*
|
|
268
|
+
*/
|
|
269
|
+
hideClear?: boolean;
|
|
270
|
+
/**
|
|
271
|
+
*
|
|
272
|
+
*/
|
|
273
|
+
errorText?: string;
|
|
274
|
+
/**
|
|
275
|
+
*
|
|
276
|
+
*/
|
|
277
|
+
className?: string;
|
|
278
|
+
/**
|
|
279
|
+
*
|
|
280
|
+
*/
|
|
281
|
+
style?: React.CSSProperties;
|
|
282
|
+
/**
|
|
283
|
+
*
|
|
284
|
+
*/
|
|
285
|
+
isErrored?: boolean;
|
|
286
|
+
/**
|
|
287
|
+
*
|
|
288
|
+
*/
|
|
289
|
+
isRequired?: boolean;
|
|
290
|
+
/**
|
|
291
|
+
*
|
|
292
|
+
*/
|
|
293
|
+
isMenuLoading?: boolean;
|
|
294
|
+
/**
|
|
295
|
+
*
|
|
296
|
+
*/
|
|
297
|
+
onCustomValueAdd?: (item: {
|
|
298
|
+
inputValue: string;
|
|
299
|
+
customValues: boolean;
|
|
300
|
+
}) => void;
|
|
301
|
+
/**
|
|
302
|
+
*
|
|
303
|
+
*/
|
|
304
|
+
customValues?: boolean;
|
|
305
|
+
/**
|
|
306
|
+
*
|
|
307
|
+
*/
|
|
308
|
+
id?: string;
|
|
309
|
+
/**
|
|
310
|
+
*
|
|
311
|
+
*/
|
|
312
|
+
label?: string;
|
|
313
|
+
/**
|
|
314
|
+
*
|
|
315
|
+
*/
|
|
316
|
+
placeholder?: string;
|
|
317
|
+
/**
|
|
318
|
+
*
|
|
319
|
+
*/
|
|
320
|
+
useSelectProps?: UseSelectProps<T>;
|
|
321
|
+
/**
|
|
322
|
+
*
|
|
323
|
+
*/
|
|
324
|
+
useComboboxProps?: UseComboboxProps<T>;
|
|
201
325
|
}
|
|
202
|
-
declare const Dropdown: <T extends DefaultDropdownItem$1>(props: DropdownProps<T>) => react_jsx_runtime.JSX.Element;
|
|
203
|
-
/**
|
|
204
|
-
* Primary UI component for user interaction
|
|
205
|
-
*/
|
|
206
|
-
declare const DropdownButton: <T extends DefaultDropdownItem$1>({ itemIdentifier, label, id, items, onChange, placeholder, readOnly, disabled, isRequired, itemToString, itemToStringListItem, name, width, className, style, useSelectProps, defaultSelectedItem, isErrored, isMenuLoading, errorText, }: DropdownProps<T>) => react_jsx_runtime.JSX.Element;
|
|
207
|
-
/**
|
|
208
|
-
* Primary UI component for user interaction
|
|
209
|
-
*/
|
|
210
|
-
declare const DropdownInput: <T extends DefaultDropdownItem$1>({ itemIdentifier, label, id, items, placeholder, readOnly, disabled, isRequired, hideClear, itemToString, name, filterKey, width, customValues, onCustomValueAdd, emptyItemsText, getCustomMessage, onChange, useComboboxProps, isErrored, errorText, defaultSelectedItem, isMenuLoading, }: DropdownProps<T>) => react_jsx_runtime.JSX.Element;
|
|
211
326
|
|
|
212
327
|
interface CommonProps {
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
328
|
+
/**
|
|
329
|
+
* Is this a required field?
|
|
330
|
+
*/
|
|
331
|
+
isRequired?: boolean;
|
|
332
|
+
/**
|
|
333
|
+
* Is this a error field?
|
|
334
|
+
*/
|
|
335
|
+
isErrored?: boolean;
|
|
336
|
+
/**
|
|
337
|
+
* Error text to be shown
|
|
338
|
+
*/
|
|
339
|
+
errorText?: string;
|
|
340
|
+
/**
|
|
341
|
+
* Id of the button
|
|
342
|
+
*/
|
|
343
|
+
id?: string;
|
|
344
|
+
/**
|
|
345
|
+
* Id of the button
|
|
346
|
+
*/
|
|
347
|
+
label?: string;
|
|
348
|
+
/**
|
|
349
|
+
* Label of the button
|
|
350
|
+
*/
|
|
351
|
+
inline?: boolean;
|
|
352
|
+
/**
|
|
353
|
+
* The max length of the input
|
|
354
|
+
*/
|
|
355
|
+
maxLength?: number;
|
|
356
|
+
/**
|
|
357
|
+
* Whether to show character count
|
|
358
|
+
*/
|
|
359
|
+
showCount?: boolean;
|
|
360
|
+
inputStyle?: React.CSSProperties;
|
|
361
|
+
startLabel?: React.ReactNode | any;
|
|
362
|
+
startAdornment?: React.ReactNode | any;
|
|
363
|
+
endLabel?: React.ReactNode | any;
|
|
364
|
+
endAdornment?: React.ReactNode | any;
|
|
365
|
+
labelProps?: LabelProps;
|
|
366
|
+
containerProps?: React.HTMLAttributes<HTMLDivElement>;
|
|
246
367
|
}
|
|
247
|
-
|
|
248
|
-
|
|
368
|
+
|
|
369
|
+
interface InputProps
|
|
370
|
+
extends CommonProps,
|
|
371
|
+
React.InputHTMLAttributes<HTMLInputElement> {
|
|
372
|
+
ref?: React.Ref<HTMLInputElement>;
|
|
249
373
|
}
|
|
250
|
-
|
|
251
|
-
|
|
374
|
+
|
|
375
|
+
interface TextAreaProps
|
|
376
|
+
extends CommonProps,
|
|
377
|
+
React.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
378
|
+
ref?: React.Ref<HTMLTextAreaElement>;
|
|
252
379
|
}
|
|
253
|
-
|
|
254
|
-
* Primary UI component for user interaction
|
|
255
|
-
*/
|
|
256
|
-
declare const Input: ({ label, inline, startLabel, startAdornment, endLabel, endAdornment, isRequired, isErrored, showCount, inputStyle, style, errorText, ref, maxLength, labelProps, containerProps, ...props }: InputProps) => react_jsx_runtime.JSX.Element;
|
|
257
|
-
/**
|
|
258
|
-
* Primary UI component for user interaction
|
|
259
|
-
*/
|
|
260
|
-
declare const TextArea: ({ label, inline, startLabel, startAdornment, endLabel, endAdornment, isRequired, isErrored, showCount, inputStyle, style, errorText, ref, maxLength, ...props }: TextAreaProps) => react_jsx_runtime.JSX.Element;
|
|
261
|
-
|
|
262
|
-
declare const Loader: (props: LoaderPropTypes) => react_jsx_runtime.JSX.Element;
|
|
380
|
+
|
|
263
381
|
type Sizes = 'mini' | 'small' | 'medium' | 'big';
|
|
264
382
|
type Speeds = 'slow' | 'medium' | 'fast';
|
|
383
|
+
|
|
265
384
|
type LoaderPropTypes = {
|
|
266
|
-
|
|
267
|
-
|
|
385
|
+
/**
|
|
386
|
+
* Size of Select input
|
|
387
|
+
*/
|
|
388
|
+
size?: Sizes;
|
|
389
|
+
/**
|
|
390
|
+
* Speed of Select input
|
|
391
|
+
*/
|
|
392
|
+
speed?: Speeds;
|
|
393
|
+
};
|
|
394
|
+
|
|
395
|
+
interface MenuItemProps {
|
|
396
|
+
id: string;
|
|
397
|
+
name: string;
|
|
398
|
+
disabled?: boolean;
|
|
399
|
+
[key: string]: any;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
type MenuProps<T extends MenuItemProps = MenuItemProps> = {
|
|
403
|
+
/**
|
|
404
|
+
* value of menu
|
|
405
|
+
*/
|
|
406
|
+
value?: T;
|
|
407
|
+
/**
|
|
408
|
+
* Called when a menu item is selected
|
|
409
|
+
*/
|
|
410
|
+
onSelect?: (option: T) => void;
|
|
411
|
+
closeMenuCallback?: () => void;
|
|
412
|
+
/**
|
|
413
|
+
* options for menu button
|
|
414
|
+
*/
|
|
415
|
+
options?: Array<T>;
|
|
416
|
+
/**
|
|
417
|
+
* The children or label
|
|
418
|
+
*/
|
|
419
|
+
trigger: React.ReactNode | string;
|
|
420
|
+
/**
|
|
421
|
+
* Is the button inline
|
|
422
|
+
* @deprecated
|
|
423
|
+
*/
|
|
424
|
+
highlightedIndex?: number | null;
|
|
425
|
+
/**
|
|
426
|
+
* id Accessor of menu
|
|
427
|
+
*/
|
|
428
|
+
idAccessor?: string;
|
|
429
|
+
/**
|
|
430
|
+
* name Accessor of menu
|
|
431
|
+
*/
|
|
432
|
+
nameAccessor?: string;
|
|
433
|
+
/**
|
|
434
|
+
* Is the button inline
|
|
435
|
+
*/
|
|
436
|
+
isOpen?: boolean;
|
|
437
|
+
/**
|
|
438
|
+
* should show the Arrow?
|
|
439
|
+
*/
|
|
440
|
+
showArrow?: boolean;
|
|
268
441
|
};
|
|
269
442
|
|
|
270
443
|
type ModalAlignType = 'top' | 'center' | 'bottom';
|
|
271
444
|
type ModalPositionType = 'left' | 'center' | 'right';
|
|
272
|
-
type ModalSizeType =
|
|
445
|
+
type ModalSizeType =
|
|
446
|
+
| 'default'
|
|
447
|
+
| 'medium'
|
|
448
|
+
| 'small'
|
|
449
|
+
| 'large'
|
|
450
|
+
| 'x-large';
|
|
451
|
+
|
|
273
452
|
interface ModalProps {
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
453
|
+
/**
|
|
454
|
+
* The children or label
|
|
455
|
+
*/
|
|
456
|
+
children?: React.ReactNode | string;
|
|
457
|
+
/**
|
|
458
|
+
* Is the button inline
|
|
459
|
+
*/
|
|
460
|
+
isOpen?: boolean;
|
|
461
|
+
/**
|
|
462
|
+
* Is the button inline
|
|
463
|
+
*/
|
|
464
|
+
fullWidth?: boolean;
|
|
465
|
+
/**
|
|
466
|
+
* Is the button inline
|
|
467
|
+
*/
|
|
468
|
+
align?: ModalAlignType;
|
|
469
|
+
/**
|
|
470
|
+
* Is the button inline
|
|
471
|
+
*/
|
|
472
|
+
position?: ModalPositionType;
|
|
473
|
+
/**
|
|
474
|
+
* Is the button inline
|
|
475
|
+
*/
|
|
476
|
+
size?: ModalSizeType;
|
|
477
|
+
/**
|
|
478
|
+
* How large should the button be?
|
|
479
|
+
*/
|
|
480
|
+
onDismiss?: () => void;
|
|
481
|
+
/**
|
|
482
|
+
* The children or label
|
|
483
|
+
*/
|
|
484
|
+
customClass?: string;
|
|
485
|
+
/**
|
|
486
|
+
* The children or label
|
|
487
|
+
*/
|
|
488
|
+
customModalContentStyles?: React.CSSProperties;
|
|
310
489
|
}
|
|
311
|
-
/**
|
|
312
|
-
* Primary UI component for user interaction
|
|
313
|
-
*/
|
|
314
|
-
declare const Modal: ({ isOpen, children, align, customClass, fullWidth, customModalContentStyles, onDismiss, position, size, }: ModalProps) => react_jsx_runtime.JSX.Element;
|
|
315
|
-
|
|
316
|
-
declare const useModal: (initialVisible?: boolean) => {
|
|
317
|
-
visible: boolean;
|
|
318
|
-
setVisible: Dispatch<SetStateAction<boolean>>;
|
|
319
|
-
currentRef: MutableRefObject<boolean>;
|
|
320
|
-
bindings: {
|
|
321
|
-
isOpen: boolean;
|
|
322
|
-
onDismiss: () => void;
|
|
323
|
-
};
|
|
324
|
-
};
|
|
325
490
|
|
|
326
|
-
type
|
|
327
|
-
interface MultiSelectDropdownProps<T extends DefaultDropdownItem> {
|
|
328
|
-
items?: Array<T>;
|
|
329
|
-
itemIdentifier?: string;
|
|
330
|
-
defaultSelectedItem?: T | null;
|
|
331
|
-
onChange?: (item?: T | null) => void;
|
|
332
|
-
itemToString: (item: T | null) => string;
|
|
333
|
-
/**
|
|
334
|
-
* Is the dropdown readonly
|
|
335
|
-
*/
|
|
336
|
-
readOnly?: boolean;
|
|
337
|
-
/**
|
|
338
|
-
* Is the dropdown disabled
|
|
339
|
-
*/
|
|
340
|
-
disabled?: boolean;
|
|
341
|
-
/**
|
|
342
|
-
* Is the dropdown disabled
|
|
343
|
-
*/
|
|
344
|
-
name?: string;
|
|
345
|
-
width?: string;
|
|
346
|
-
filterKey?: string;
|
|
347
|
-
getCustomMessage?: (inoutValue: string) => string;
|
|
348
|
-
emptyItemsText?: string;
|
|
349
|
-
hideClear?: boolean;
|
|
350
|
-
errorText?: string;
|
|
351
|
-
isErrored?: boolean;
|
|
352
|
-
isRequired?: boolean;
|
|
353
|
-
isMenuLoading?: boolean;
|
|
354
|
-
handleInputChange?: (inputValue: string) => void;
|
|
355
|
-
onCustomValueAdd?: (item: {
|
|
356
|
-
inputValue: string;
|
|
357
|
-
customValues: boolean;
|
|
358
|
-
}) => void;
|
|
359
|
-
customValues?: boolean;
|
|
360
|
-
id?: string;
|
|
361
|
-
label?: string;
|
|
362
|
-
placeholder?: string;
|
|
363
|
-
useSelectProps?: UseSelectProps<T>;
|
|
364
|
-
useComboboxProps?: UseComboboxProps<T>;
|
|
365
|
-
}
|
|
366
|
-
/**
|
|
367
|
-
* Primary UI component for user interaction
|
|
368
|
-
*/
|
|
369
|
-
declare const MultiSelectDropdown: <T extends DefaultDropdownItem>({ itemIdentifier, label, id, items, onChange, placeholder, readOnly, disabled, isRequired, itemToString, name, filterKey, width, useSelectProps, emptyItemsText, getCustomMessage, onCustomValueAdd, customValues, hideClear, defaultSelectedItem, handleInputChange, isErrored, isMenuLoading, errorText, }: MultiSelectDropdownProps<T>) => react_jsx_runtime.JSX.Element;
|
|
491
|
+
type DefaultMultiSelectDropdownItem = {};
|
|
370
492
|
|
|
371
|
-
var css_248z = ".rdp{\n --rdp-cell-size:40px;\n --rdp-caption-font-size:18px;\n --rdp-accent-color:#0000ff;\n --rdp-background-color:#e7edff;\n --rdp-accent-color-dark:#3003e1;\n --rdp-background-color-dark:#180270;\n --rdp-outline:2px solid var(--rdp-accent-color);\n --rdp-outline-selected:3px solid var(--rdp-accent-color);\n --rdp-selected-color:#fff;\n margin:1em;\n}\n.rdp-vhidden{\n box-sizing:border-box;\n padding:0;\n margin:0;\n background:transparent;\n border:0;\n -moz-appearance:none;\n -webkit-appearance:none;\n appearance:none;\n position:absolute !important;\n top:0;\n width:1px !important;\n height:1px !important;\n padding:0 !important;\n overflow:hidden !important;\n clip:rect(1px, 1px, 1px, 1px) !important;\n border:0 !important;\n}\n.rdp-button_reset{\n appearance:none;\n position:relative;\n margin:0;\n padding:0;\n cursor:default;\n color:inherit;\n background:none;\n font:inherit;\n -moz-appearance:none;\n -webkit-appearance:none;\n}\n\n.rdp-button_reset:focus-visible{\n outline:none;\n}\n\n.rdp-button{\n border:2px solid transparent;\n}\n\n.rdp-button[disabled]:not(.rdp-day_selected){\n opacity:0.25;\n}\n\n.rdp-button:not([disabled]){\n cursor:pointer;\n}\n\n.rdp-button:focus-visible:not([disabled]){\n color:inherit;\n background-color:var(--rdp-background-color);\n border:var(--rdp-outline);\n}\n\n.rdp-button:hover:not([disabled]):not(.rdp-day_selected){\n background-color:var(--rdp-background-color);\n}\n\n.rdp-months{\n display:flex;\n}\n\n.rdp-month{\n margin:0 1em;\n}\n\n.rdp-month:first-child{\n margin-left:0;\n}\n\n.rdp-month:last-child{\n margin-right:0;\n}\n\n.rdp-table{\n margin:0;\n max-width:calc(var(--rdp-cell-size) * 7);\n border-collapse:collapse;\n}\n\n.rdp-with_weeknumber .rdp-table{\n max-width:calc(var(--rdp-cell-size) * 8);\n border-collapse:collapse;\n}\n\n.rdp-caption{\n display:flex;\n align-items:center;\n justify-content:space-between;\n padding:0;\n text-align:left;\n}\n\n.rdp-multiple_months .rdp-caption{\n position:relative;\n display:block;\n text-align:center;\n}\n\n.rdp-caption_dropdowns{\n position:relative;\n display:inline-flex;\n}\n\n.rdp-caption_label{\n position:relative;\n z-index:1;\n display:inline-flex;\n align-items:center;\n margin:0;\n padding:0 0.25em;\n white-space:nowrap;\n color:currentColor;\n border:0;\n border:2px solid transparent;\n font-family:inherit;\n font-size:var(--rdp-caption-font-size);\n font-weight:bold;\n}\n\n.rdp-nav{\n white-space:nowrap;\n}\n\n.rdp-multiple_months .rdp-caption_start .rdp-nav{\n position:absolute;\n top:50%;\n left:0;\n transform:translateY(-50%);\n}\n\n.rdp-multiple_months .rdp-caption_end .rdp-nav{\n position:absolute;\n top:50%;\n right:0;\n transform:translateY(-50%);\n}\n\n.rdp-nav_button{\n display:inline-flex;\n align-items:center;\n justify-content:center;\n width:var(--rdp-cell-size);\n height:var(--rdp-cell-size);\n padding:0.25em;\n border-radius:100%;\n}\n.rdp-dropdown_year,\n.rdp-dropdown_month{\n position:relative;\n display:inline-flex;\n align-items:center;\n}\n\n.rdp-dropdown{\n -webkit-appearance:none;\n -moz-appearance:none;\n appearance:none;\n position:absolute;\n z-index:2;\n top:0;\n bottom:0;\n left:0;\n width:100%;\n margin:0;\n padding:0;\n cursor:inherit;\n opacity:0;\n border:none;\n background-color:transparent;\n font-family:inherit;\n font-size:inherit;\n line-height:inherit;\n}\n\n.rdp-dropdown[disabled]{\n opacity:unset;\n color:unset;\n}\n\n.rdp-dropdown:focus-visible:not([disabled]) + .rdp-caption_label{\n background-color:var(--rdp-background-color);\n border:var(--rdp-outline);\n border-radius:6px;\n}\n\n.rdp-dropdown_icon{\n margin:0 0 0 5px;\n}\n\n.rdp-head{\n border:0;\n}\n\n.rdp-head_row,\n.rdp-row{\n height:100%;\n}\n\n.rdp-head_cell{\n vertical-align:middle;\n font-size:0.75em;\n font-weight:700;\n text-align:center;\n height:100%;\n height:var(--rdp-cell-size);\n padding:0;\n text-transform:uppercase;\n}\n\n.rdp-tbody{\n border:0;\n}\n\n.rdp-tfoot{\n margin:0.5em;\n}\n\n.rdp-cell{\n width:var(--rdp-cell-size);\n height:100%;\n height:var(--rdp-cell-size);\n padding:0;\n text-align:center;\n}\n\n.rdp-weeknumber{\n font-size:0.75em;\n}\n\n.rdp-weeknumber,\n.rdp-day{\n display:flex;\n overflow:hidden;\n align-items:center;\n justify-content:center;\n box-sizing:border-box;\n width:var(--rdp-cell-size);\n max-width:var(--rdp-cell-size);\n height:var(--rdp-cell-size);\n margin:0;\n border:2px solid transparent;\n border-radius:100%;\n}\n\n.rdp-day_today:not(.rdp-day_outside){\n font-weight:bold;\n}\n\n.rdp-day_selected,\n.rdp-day_selected:focus-visible,\n.rdp-day_selected:hover{\n color:var(--rdp-selected-color);\n opacity:1;\n background-color:var(--rdp-accent-color);\n}\n\n.rdp-day_outside{\n opacity:0.5;\n}\n\n.rdp-day_selected:focus-visible{\n outline:var(--rdp-outline);\n outline-offset:2px;\n z-index:1;\n}\n\n.rdp:not([dir=rtl]) .rdp-day_range_start:not(.rdp-day_range_end){\n border-top-right-radius:0;\n border-bottom-right-radius:0;\n}\n\n.rdp:not([dir=rtl]) .rdp-day_range_end:not(.rdp-day_range_start){\n border-top-left-radius:0;\n border-bottom-left-radius:0;\n}\n\n.rdp[dir=rtl] .rdp-day_range_start:not(.rdp-day_range_end){\n border-top-left-radius:0;\n border-bottom-left-radius:0;\n}\n\n.rdp[dir=rtl] .rdp-day_range_end:not(.rdp-day_range_start){\n border-top-right-radius:0;\n border-bottom-right-radius:0;\n}\n\n.rdp-day_range_end.rdp-day_range_start{\n border-radius:100%;\n}\n\n.rdp-day_range_middle{\n border-radius:0;\n}\n\n\n.bp5-datepicker-content .rdp{\n --rdp-cell-size:30px;\n --rdp-accent-color:#2d72d2;\n --rdp-background-color:#ffffff;\n --rdp-accent-color-dark:#215db0;\n --rdp-background-color-dark:#2f343c;\n --rdp-outline:2px solid var(--rdp-accent-color);\n --rdp-outline-selected:2px solid rgba(0, 0, 0, 75%);\n margin:0;\n min-width:auto;\n}\n.bp5-datepicker .rdp{\n display:inline-block;\n min-width:210px;\n position:relative;\n vertical-align:top;\n}\n.bp5-datepicker .rdp:focus{\n outline:none;\n}\n.bp5-datepicker .rdp-month{\n display:flex;\n flex-direction:column;\n margin:0 5px;\n -webkit-user-select:none;\n -moz-user-select:none;\n -ms-user-select:none;\n user-select:none;\n}\n.bp5-datepicker .rdp-month + .bp5-datepicker .rdp-month{\n margin-left:10px;\n}\n.bp5-datepicker .rdp-caption{\n border-bottom:solid 1px rgba(17, 20, 24, 0.15);\n padding-bottom:5px;\n}\n.bp5-datepicker .rdp-table{\n align-self:center;\n}\n.bp5-datepicker .rdp-head_cell{\n font-size:inherit;\n font-weight:600;\n padding-top:5px;\n text-decoration:none;\n text-transform:none;\n}\n.bp5-datepicker .rdp-weeknumber{\n color:#5f6b7c;\n}\n.bp5-datepicker .rdp-day{\n border-radius:2px;\n}\n.bp5-datepicker .rdp-day.rdp-day_outside{\n color:rgba(95, 107, 124, 0.6);\n}\n.bp5-datepicker .rdp-day.rdp-day_today{\n font-weight:400;\n}\n.bp5-datepicker .rdp-day:not([disabled]):not(.rdp-day_selected):hover, .bp5-datepicker .rdp-day:not([disabled]):not(.rdp-day_selected):focus{\n background:rgba(143, 153, 168, 0.15);\n color:#1c2127;\n}\n.bp5-datepicker .rdp-day:not([disabled]):not(.rdp-day_selected):active{\n background:rgba(143, 153, 168, 0.3);\n}\n.bp5-datepicker .rdp-day.rdp-day_disabled{\n background:none;\n color:rgba(95, 107, 124, 0.6);\n cursor:not-allowed;\n}\n.bp5-datepicker .rdp-day.rdp-day_selected{\n background-color:#2d72d2;\n border-radius:2px;\n color:#ffffff;\n}\n.bp5-datepicker .rdp-day.rdp-day_selected:hover{\n background-color:#215db0;\n color:#ffffff;\n}\n.bp5-datepicker .rdp-day.rdp-day_selected:active{\n background-color:#184a90;\n}\n.bp5-datepicker.bp5-datepicker-highlight-current-day .rdp-day.rdp-day_today{\n border:1px solid rgba(17, 20, 24, 0.15);\n}\n.bp5-datepicker.bp5-datepicker-reverse-month-and-year .rdp-caption_dropdowns{\n flex-direction:row-reverse;\n}\n\n.bp5-datepicker-content{\n align-items:center;\n display:flex;\n flex-direction:column;\n gap:5px;\n}\n.bp5-datepicker-content > .bp5-divider{\n margin:0;\n width:calc(100% - 10px);\n}\n\n.bp5-datepicker-month-select select, .bp5-datepicker-year-select select{\n font-weight:600;\n padding-left:5px;\n padding-right:16px;\n}\n.bp5-datepicker-month-select select + .bp5-icon, .bp5-datepicker-year-select select + .bp5-icon{\n right:2px;\n}\n\n.bp5-datepicker-footer{\n display:flex;\n justify-content:space-between;\n width:100%;\n}\n\n.bp5-dark .bp5-datepicker{\n background:#2f343c;\n}\n.bp5-dark .bp5-datepicker .rdp-week-number{\n color:#abb3bf;\n}\n.bp5-dark .bp5-datepicker .rdp-day.rdp-day_outside{\n color:rgba(171, 179, 191, 0.6);\n}\n.bp5-dark .bp5-datepicker .rdp-day:not([disabled]):not(.rdp-day_selected):hover, .bp5-dark .bp5-datepicker .rdp-day:not([disabled]):not(.rdp-day_selected):focus{\n background:rgba(143, 153, 168, 0.15);\n color:#ffffff;\n}\n.bp5-dark .bp5-datepicker .rdp-day:not([disabled]):not(.rdp-day_selected):active{\n background:rgba(143, 153, 168, 0.3);\n}\n.bp5-dark .bp5-datepicker .rdp-day.rdp-day_selected{\n background-color:#2d72d2;\n}\n.bp5-dark .bp5-datepicker .rdp-day.rdp-day_selected:hover{\n background-color:#215db0;\n}\n.bp5-dark .bp5-datepicker .rdp-day.rdp-day_selected:active{\n background-color:#184a90;\n}\n.bp5-dark .bp5-datepicker .rdp-day.rdp-day_disabled{\n background:none;\n color:rgba(171, 179, 191, 0.6);\n}\n.bp5-dark .bp5-datepicker.bp5-datepicker-highlight-current-day .rdp-day.rdp-day_today{\n border:1px solid rgba(255, 255, 255, 0.2);\n}\n.bp5-dark .bp5-datepicker .bp5-datepicker-footer{\n border-top-color:rgba(17, 20, 24, 0.4);\n}\n\n.bp5-datepicker-timepicker-wrapper{\n align-items:center;\n display:flex;\n flex-direction:column;\n}\n.bp5-datepicker-timepicker-wrapper .bp5-timepicker-arrow-row:empty + .bp5-timepicker-input-row{\n margin:5px 0;\n}\n.bp5-datepicker-caption.rdp-caption{\n display:flex;\n flex-direction:row;\n justify-content:space-between;\n margin:0;\n}\n.bp5-datepicker-caption.rdp-caption > *{\n flex-grow:0;\n flex-shrink:0;\n}\n.bp5-datepicker-caption.rdp-caption > .bp5-fill{\n flex-grow:1;\n flex-shrink:1;\n}\n.bp5-datepicker-caption.rdp-caption .bp5-html-select select{\n font-weight:600;\n padding-left:5px;\n padding-right:16px;\n}\n.bp5-datepicker-caption.rdp-caption .bp5-html-select select + .bp5-icon{\n right:2px;\n}\n.bp5-datepicker-caption.rdp-caption + .bp5-divider{\n margin:0;\n}\n.bp5-datepicker-caption.rdp-caption .bp5-datepicker-nav-button-hidden{\n visibility:hidden;\n}\n\n.bp5-datepicker-month-select{\n flex-shrink:1;\n}\n\n.bp5-datepicker-year-select{\n flex-shrink:1;\n min-width:60px;\n}\n\n.bp5-datepicker-caption-measure{\n font-weight:600;\n padding-left:5px;\n}\n.bp5-daterangepicker{\n}\n.bp5-daterangepicker.bp5-daterangepicker-contiguous .rdp{\n min-width:220px;\n}\n.bp5-daterangepicker.bp5-daterangepicker-single-month .rdp{\n min-width:210px;\n}\n.bp5-daterangepicker .rdp.rdp-multiple_months .rdp-caption{\n display:flex;\n flex-direction:row;\n justify-content:space-between;\n}\n.bp5-daterangepicker .rdp.rdp-multiple_months .rdp-caption > *{\n flex-grow:0;\n flex-shrink:0;\n}\n.bp5-daterangepicker .rdp.rdp-multiple_months .rdp-caption > .bp5-fill{\n flex-grow:1;\n flex-shrink:1;\n}\n.bp5-daterangepicker .rdp.rdp-multiple_months .rdp-caption_start .rdp-caption{\n flex-direction:row-reverse;\n}\n.bp5-daterangepicker .rdp.rdp-multiple_months .rdp-caption_start .rdp-caption::before{\n content:\"\";\n height:30px;\n width:30px;\n}\n.bp5-daterangepicker .rdp.rdp-multiple_months .rdp-caption_end .rdp-caption{\n flex-direction:row;\n}\n.bp5-daterangepicker .rdp.rdp-multiple_months .rdp-caption_end .rdp-caption::before{\n content:\"\";\n height:30px;\n width:30px;\n}\n.bp5-daterangepicker .rdp.rdp-multiple_months .rdp-nav{\n left:initial;\n position:initial;\n top:initial;\n transform:none;\n}\n.bp5-daterangepicker.bp5-datepicker .rdp-day_outside{\n visibility:hidden;\n}\n.bp5-daterangepicker.bp5-datepicker .rdp-day_hovered:not(.rdp-day_selected){\n border-radius:0;\n color:#215db0;\n}\n.bp5-daterangepicker.bp5-datepicker .rdp-day_hovered:not(.rdp-day_selected):not(.rdp-day_range_start):not(.rdp-day_range_middle):not(.rdp-day_range_end){\n background-color:rgba(45, 114, 210, 0.1);\n}\n.bp5-daterangepicker.bp5-datepicker .rdp-day_range_middle{\n background-color:rgba(45, 114, 210, 0.1);\n border-radius:0;\n color:#215db0;\n}\n.bp5-daterangepicker.bp5-datepicker .rdp-day_range_middle:hover{\n background-color:rgba(45, 114, 210, 0.2);\n color:#215db0;\n}\n.bp5-daterangepicker.bp5-datepicker .rdp-day_range_start:not(.rdp-day_range_end):not(.rdp-day_hovered_end){\n border-bottom-right-radius:0;\n border-top-right-radius:0;\n}\n.bp5-daterangepicker.bp5-datepicker .rdp-day_range_end:not(.rdp-day_range_start):not(.rdp_day_hovered_start){\n border-bottom-left-radius:0;\n border-top-left-radius:0;\n}\n.bp5-daterangepicker.bp5-datepicker .rdp-day_hovered_start:not(.rdp-day_hovered_end){\n border-bottom-right-radius:0;\n border-top-right-radius:0;\n}\n.bp5-daterangepicker.bp5-datepicker .rdp-day_hovered_end:not(.rdp-day_hovered_start){\n border-bottom-left-radius:0;\n border-top-left-radius:0;\n}\n.bp5-daterangepicker.bp5-datepicker-highlight-current-day .rdp-day.rdp-day_today{\n border:1px solid rgba(17, 20, 24, 0.15);\n}\n.bp5-daterangepicker.bp5-daterangepicker-reverse-month-and-year.bp5-daterangepicker-contiguous .rdp-caption_dropdowns{\n flex-direction:row-reverse;\n}\n\n.bp5-daterangepicker-timepickers.bp5-daterangepicker-timepickers-stacked{\n align-items:center;\n flex-direction:column;\n}\n\n.bp5-dark .bp5-daterangepicker.bp5-datepicker .rdp-day_hovered{\n color:#f6f7f9;\n}\n.bp5-dark .bp5-daterangepicker.bp5-datepicker .rdp-day_hovered:not(.rdp-day_selected):not(.rdp-day_range_start):not(.rdp-day_range_middle):not(.rdp-day_range_end){\n background-color:rgba(45, 114, 210, 0.2);\n}\n.bp5-dark .bp5-daterangepicker.bp5-datepicker .rdp-day_range_middle{\n background-color:rgba(45, 114, 210, 0.2);\n color:#f6f7f9;\n}\n.bp5-dark .bp5-daterangepicker.bp5-datepicker .rdp-day_range_middle:hover{\n background-color:rgba(45, 114, 210, 0.4);\n}\n.bp5-dark .bp5-daterangepicker.bp5-datepicker-highlight-current-day .rdp-day.rdp-day_today{\n border:1px solid rgba(255, 255, 255, 0.2);\n}";
|
|
372
|
-
|
|
493
|
+
interface MultiSelectDropdownProps<
|
|
494
|
+
T extends DefaultMultiSelectDropdownItem,
|
|
495
|
+
> {
|
|
496
|
+
/**
|
|
497
|
+
* dropdown item content
|
|
498
|
+
*/
|
|
499
|
+
items?: Array<T>;
|
|
500
|
+
/**
|
|
501
|
+
* Id of the item
|
|
502
|
+
*/
|
|
503
|
+
itemIdentifier?: string;
|
|
504
|
+
/**
|
|
505
|
+
* default selected item of dropdown
|
|
506
|
+
*/
|
|
507
|
+
defaultSelectedItem?: T | null;
|
|
508
|
+
/**
|
|
509
|
+
* Called when select an option or input value change
|
|
510
|
+
*/
|
|
511
|
+
onChange?: (item?: T | null) => void;
|
|
512
|
+
itemToString: (item: T | null) => string;
|
|
513
|
+
/**
|
|
514
|
+
* Is the dropdown readonly
|
|
515
|
+
*/
|
|
516
|
+
readOnly?: boolean;
|
|
517
|
+
/**
|
|
518
|
+
* Whether disabled select
|
|
519
|
+
*/
|
|
520
|
+
disabled?: boolean;
|
|
521
|
+
/**
|
|
522
|
+
* name of the drowpdown
|
|
523
|
+
*/
|
|
524
|
+
name?: string;
|
|
525
|
+
/**
|
|
526
|
+
* width of the multi select drowpdown
|
|
527
|
+
*/
|
|
528
|
+
width?: string;
|
|
529
|
+
|
|
530
|
+
filterKey?: string;
|
|
531
|
+
getCustomMessage?: (inoutValue: string) => string;
|
|
532
|
+
/**
|
|
533
|
+
* Empty items text box
|
|
534
|
+
*/
|
|
535
|
+
emptyItemsText?: string;
|
|
536
|
+
/**
|
|
537
|
+
* Whether to allow hide or clear when click
|
|
538
|
+
*/
|
|
539
|
+
hideClear?: boolean;
|
|
540
|
+
/**
|
|
541
|
+
* Error text to be shown
|
|
542
|
+
*/
|
|
543
|
+
errorText?: string;
|
|
544
|
+
/**
|
|
545
|
+
* Is this a error field?
|
|
546
|
+
*/
|
|
547
|
+
isErrored?: boolean;
|
|
548
|
+
/**
|
|
549
|
+
* Is this a required field?
|
|
550
|
+
*/
|
|
551
|
+
isRequired?: boolean;
|
|
552
|
+
/**
|
|
553
|
+
* Is menu loading?
|
|
554
|
+
*/
|
|
555
|
+
isMenuLoading?: boolean;
|
|
556
|
+
handleInputChange?: (inputValue: string) => void;
|
|
557
|
+
onCustomValueAdd?: (item: {
|
|
558
|
+
inputValue: string;
|
|
559
|
+
customValues: boolean;
|
|
560
|
+
}) => void;
|
|
561
|
+
/**
|
|
562
|
+
* Is this custom value
|
|
563
|
+
*/
|
|
564
|
+
customValues?: boolean;
|
|
565
|
+
/**
|
|
566
|
+
* id of the drowpdown
|
|
567
|
+
*/
|
|
568
|
+
id?: string;
|
|
569
|
+
/**
|
|
570
|
+
* label for the drowpdown
|
|
571
|
+
*/
|
|
572
|
+
label?: string;
|
|
573
|
+
placeholder?: string;
|
|
574
|
+
useSelectProps?: UseSelectProps<T>;
|
|
575
|
+
useComboboxProps?: UseComboboxProps<T>;
|
|
576
|
+
}
|
|
373
577
|
|
|
374
578
|
type DefaultProps = {
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
579
|
+
/**
|
|
580
|
+
* Is this a required field?
|
|
581
|
+
*/
|
|
582
|
+
isRequired?: boolean;
|
|
583
|
+
/**
|
|
584
|
+
* Is this a error field?
|
|
585
|
+
*/
|
|
586
|
+
isErrored?: boolean;
|
|
587
|
+
/**
|
|
588
|
+
* Error text to be shown
|
|
589
|
+
*/
|
|
590
|
+
errorText?: string;
|
|
591
|
+
/**
|
|
592
|
+
* Id of the date picker
|
|
593
|
+
*/
|
|
594
|
+
id?: string;
|
|
595
|
+
/**
|
|
596
|
+
* name of the date picker
|
|
597
|
+
*/
|
|
598
|
+
name?: string;
|
|
599
|
+
/**
|
|
600
|
+
* label for the picker
|
|
601
|
+
*/
|
|
602
|
+
label?: string;
|
|
603
|
+
placeholder?: string;
|
|
604
|
+
/**
|
|
605
|
+
* Whether disabled select
|
|
606
|
+
*/
|
|
607
|
+
|
|
608
|
+
disabled?: boolean;
|
|
383
609
|
};
|
|
384
|
-
|
|
610
|
+
|
|
611
|
+
type DatePickerProps = DefaultProps &
|
|
612
|
+
Partial<DateInput3Props> & {
|
|
385
613
|
displayFormat?: string;
|
|
386
|
-
|
|
387
|
-
|
|
614
|
+
// showFooter?: boolean;
|
|
615
|
+
};
|
|
616
|
+
|
|
617
|
+
type DateRangePickerProps = DefaultProps &
|
|
618
|
+
Partial<DateRangeInput3Props> & {
|
|
388
619
|
displayFormat?: string;
|
|
389
|
-
|
|
390
|
-
|
|
620
|
+
// showFooter?: boolean;
|
|
621
|
+
};
|
|
622
|
+
|
|
623
|
+
type DateTimePickerProps = DefaultProps &
|
|
624
|
+
Partial<DateInput3Props> & {
|
|
391
625
|
displayFormat?: string;
|
|
392
|
-
|
|
393
|
-
|
|
626
|
+
// showFooter?: boolean;
|
|
627
|
+
};
|
|
628
|
+
|
|
629
|
+
type DateTimeRangePickerProps = DefaultProps &
|
|
630
|
+
Partial<DateRangeInput3Props> & {
|
|
394
631
|
displayFormat?: string;
|
|
395
|
-
|
|
632
|
+
// showFooter?: boolean;
|
|
633
|
+
};
|
|
396
634
|
|
|
397
|
-
|
|
635
|
+
type Origin = {
|
|
636
|
+
vertical?: 'top' | 'center' | 'bottom';
|
|
637
|
+
horizontal?: 'left' | 'center' | 'right';
|
|
638
|
+
};
|
|
398
639
|
|
|
399
|
-
|
|
640
|
+
interface PopoverProps {
|
|
641
|
+
/**
|
|
642
|
+
* How large should the button be?
|
|
643
|
+
*/
|
|
644
|
+
onClose?: (event?: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
645
|
+
/**
|
|
646
|
+
* Which variant the button should be
|
|
647
|
+
*/
|
|
648
|
+
id?: string;
|
|
649
|
+
/**
|
|
650
|
+
* The children or label
|
|
651
|
+
*/
|
|
652
|
+
trigger: React.ReactNode | string;
|
|
653
|
+
/**
|
|
654
|
+
* The children or label
|
|
655
|
+
*/
|
|
656
|
+
children?: React.ReactNode | string;
|
|
657
|
+
/**
|
|
658
|
+
* Is the button inline
|
|
659
|
+
*/
|
|
660
|
+
hoverOutToClose?: boolean;
|
|
661
|
+
/**
|
|
662
|
+
* Is the button inline
|
|
663
|
+
*/
|
|
664
|
+
hoverToOpen?: boolean;
|
|
400
665
|
|
|
401
|
-
|
|
666
|
+
/**
|
|
667
|
+
* Is the button inline
|
|
668
|
+
*/
|
|
669
|
+
arrow?: boolean;
|
|
670
|
+
/**
|
|
671
|
+
* Is the button inline
|
|
672
|
+
*/
|
|
673
|
+
avoidCollisions?: boolean;
|
|
674
|
+
/**
|
|
675
|
+
* Is the button inline
|
|
676
|
+
*/
|
|
677
|
+
side?: RadixPopover.PopperContentProps['side'];
|
|
678
|
+
/**
|
|
679
|
+
* Is the button inline
|
|
680
|
+
*/
|
|
681
|
+
align?: RadixPopover.PopperContentProps['align'];
|
|
682
|
+
/**
|
|
683
|
+
* Is the button inline
|
|
684
|
+
* @deprecated
|
|
685
|
+
*/
|
|
686
|
+
anchorOrigin?: Origin;
|
|
687
|
+
/**
|
|
688
|
+
* Is the button inline
|
|
689
|
+
* * @deprecated
|
|
690
|
+
*/
|
|
691
|
+
transformOrigin?: Origin;
|
|
692
|
+
/**
|
|
693
|
+
* Is the button inline
|
|
694
|
+
* * @deprecated
|
|
695
|
+
*/
|
|
696
|
+
clickOutToClose?: boolean;
|
|
697
|
+
/**
|
|
698
|
+
* Is the button inline
|
|
699
|
+
* * @deprecated
|
|
700
|
+
*/
|
|
701
|
+
autoCloseDuration?: number;
|
|
702
|
+
}
|
|
402
703
|
|
|
403
|
-
|
|
704
|
+
type RadioProps = {
|
|
705
|
+
/**
|
|
706
|
+
* Is the Radio button selected
|
|
707
|
+
*/
|
|
708
|
+
selected?: boolean;
|
|
709
|
+
/**
|
|
710
|
+
* Function to be called when the selected item changes
|
|
711
|
+
*/
|
|
712
|
+
onChange?: RadioGroupContextValue['onValueChange'];
|
|
713
|
+
/**
|
|
714
|
+
* Whether disabled select
|
|
715
|
+
*/
|
|
716
|
+
disabled?: boolean;
|
|
717
|
+
/**
|
|
718
|
+
* label for the radio button
|
|
719
|
+
*/
|
|
720
|
+
label?: string;
|
|
721
|
+
/**
|
|
722
|
+
* The class name of radio button
|
|
723
|
+
*/
|
|
404
724
|
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
725
|
+
className?: string;
|
|
726
|
+
/**
|
|
727
|
+
* Id of the button
|
|
728
|
+
*/
|
|
729
|
+
id?: string;
|
|
408
730
|
};
|
|
409
|
-
interface PopoverProps {
|
|
410
|
-
/**
|
|
411
|
-
* How large should the button be?
|
|
412
|
-
*/
|
|
413
|
-
onClose?: (event?: React__default.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
414
|
-
/**
|
|
415
|
-
* Which variant the button should be
|
|
416
|
-
*/
|
|
417
|
-
id?: string;
|
|
418
|
-
/**
|
|
419
|
-
* The children or label
|
|
420
|
-
*/
|
|
421
|
-
trigger: React__default.ReactNode | string;
|
|
422
|
-
/**
|
|
423
|
-
* The children or label
|
|
424
|
-
*/
|
|
425
|
-
children?: React__default.ReactNode | string;
|
|
426
|
-
/**
|
|
427
|
-
* Is the button inline
|
|
428
|
-
*/
|
|
429
|
-
hoverOutToClose?: boolean;
|
|
430
|
-
/**
|
|
431
|
-
* Is the button inline
|
|
432
|
-
*/
|
|
433
|
-
hoverToOpen?: boolean;
|
|
434
|
-
/**
|
|
435
|
-
* Is the button inline
|
|
436
|
-
*/
|
|
437
|
-
arrow?: boolean;
|
|
438
|
-
/**
|
|
439
|
-
* Is the button inline
|
|
440
|
-
*/
|
|
441
|
-
avoidCollisions?: boolean;
|
|
442
|
-
/**
|
|
443
|
-
* Is the button inline
|
|
444
|
-
*/
|
|
445
|
-
side?: RadixPopover.PopperContentProps['side'];
|
|
446
|
-
/**
|
|
447
|
-
* Is the button inline
|
|
448
|
-
*/
|
|
449
|
-
align?: RadixPopover.PopperContentProps['align'];
|
|
450
|
-
/**
|
|
451
|
-
* Is the button inline
|
|
452
|
-
* @deprecated
|
|
453
|
-
*/
|
|
454
|
-
anchorOrigin?: Origin;
|
|
455
|
-
/**
|
|
456
|
-
* Is the button inline
|
|
457
|
-
* * @deprecated
|
|
458
|
-
*/
|
|
459
|
-
transformOrigin?: Origin;
|
|
460
|
-
/**
|
|
461
|
-
* Is the button inline
|
|
462
|
-
* * @deprecated
|
|
463
|
-
*/
|
|
464
|
-
clickOutToClose?: boolean;
|
|
465
|
-
/**
|
|
466
|
-
* Is the button inline
|
|
467
|
-
* * @deprecated
|
|
468
|
-
*/
|
|
469
|
-
autoCloseDuration?: number;
|
|
470
|
-
}
|
|
471
|
-
/**
|
|
472
|
-
* Primary UI component for user interaction
|
|
473
|
-
*/
|
|
474
|
-
declare const Popover: ({ children, trigger, arrow, hoverOutToClose, align, hoverToOpen, avoidCollisions, side: s, anchorOrigin, autoCloseDuration, clickOutToClose, transformOrigin, }: PopoverProps) => react_jsx_runtime.JSX.Element;
|
|
475
731
|
|
|
476
732
|
interface RadioItemProps {
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
733
|
+
id: string;
|
|
734
|
+
name: string;
|
|
735
|
+
hide?: boolean;
|
|
736
|
+
disabled?: boolean;
|
|
737
|
+
[key: string]: any;
|
|
482
738
|
}
|
|
739
|
+
|
|
483
740
|
type RadioGroupProps<T extends RadioItemProps = RadioItemProps> = {
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
741
|
+
/**
|
|
742
|
+
* Select options
|
|
743
|
+
*/
|
|
744
|
+
options?: Array<T>;
|
|
745
|
+
/**
|
|
746
|
+
* Id accessor of radio button
|
|
747
|
+
*/
|
|
748
|
+
idAccessor?: string;
|
|
749
|
+
/**
|
|
750
|
+
* The default value
|
|
751
|
+
*/
|
|
752
|
+
defaultValue?: string;
|
|
753
|
+
/**
|
|
754
|
+
* Value of radio button
|
|
755
|
+
*/
|
|
756
|
+
value?: RadioGroupContextValue['value'];
|
|
757
|
+
/**
|
|
758
|
+
* Function to be called when the selected item changes
|
|
759
|
+
*/
|
|
760
|
+
onChange?: RadioGroupContextValue['onValueChange'];
|
|
761
|
+
/**
|
|
762
|
+
* Name accesssor of radio button
|
|
763
|
+
*/
|
|
764
|
+
nameAccessor?: string;
|
|
765
|
+
/**
|
|
766
|
+
* The description of the content
|
|
767
|
+
*/
|
|
768
|
+
label?: string;
|
|
769
|
+
/**
|
|
770
|
+
* class Name of Radio button
|
|
771
|
+
*/
|
|
772
|
+
className?: string;
|
|
773
|
+
/**
|
|
774
|
+
* Id of the button
|
|
775
|
+
*/
|
|
776
|
+
id?: string;
|
|
777
|
+
};
|
|
778
|
+
|
|
779
|
+
type ReorderItemType = {
|
|
780
|
+
id: string | number;
|
|
781
|
+
[key: string]: any;
|
|
782
|
+
};
|
|
783
|
+
|
|
784
|
+
type ReorderProps<T extends ReorderItemType = ReorderItemType> = {
|
|
785
|
+
/**
|
|
786
|
+
* Items of reorder
|
|
787
|
+
*/
|
|
788
|
+
items: T[];
|
|
789
|
+
/**
|
|
790
|
+
* Class name of reorder
|
|
791
|
+
*/
|
|
792
|
+
className?: string;
|
|
793
|
+
/**
|
|
794
|
+
* Whether disabled select
|
|
795
|
+
*/
|
|
796
|
+
disabled?: boolean;
|
|
797
|
+
/**
|
|
798
|
+
* should show the Dragger?
|
|
799
|
+
*/
|
|
800
|
+
showDragger?: boolean;
|
|
801
|
+
customFilter?: (item: T) => boolean;
|
|
802
|
+
onReorder?: (items: T[]) => void;
|
|
803
|
+
customRender: (
|
|
804
|
+
item: T,
|
|
805
|
+
index: number,
|
|
806
|
+
listeners?: DraggableSyntheticListeners,
|
|
807
|
+
) => React.ReactNode;
|
|
493
808
|
};
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
809
|
+
|
|
810
|
+
type RowData = unknown | object | any[];
|
|
811
|
+
|
|
812
|
+
interface TableProps<T extends RowData> {
|
|
813
|
+
/**
|
|
814
|
+
* How large should the button be?
|
|
815
|
+
*/
|
|
816
|
+
data: CoreOptions<T>['data'];
|
|
817
|
+
columns: CoreOptions<T>['columns'];
|
|
818
|
+
showFooter?: boolean;
|
|
819
|
+
// count: number;
|
|
820
|
+
// pageSize: number;
|
|
821
|
+
// pageIndex?: number;
|
|
822
|
+
// columnOrder?: string[];
|
|
823
|
+
// hiddenColumns?: string[];
|
|
824
|
+
// selectedRowIds?: Record<string, boolean>;
|
|
825
|
+
// disableSelectMenuOptionIds?: string[];
|
|
826
|
+
// hideSelectMenuOptionIds?: string[];
|
|
827
|
+
// selectMenuOptions?: MenuItemProps[];
|
|
828
|
+
// selectMenuOptionsHandler?: (option: MenuItemProps) => void;
|
|
829
|
+
// setPageIndex?: (
|
|
830
|
+
// pageIndex: number,
|
|
831
|
+
// ) => void | React.Dispatch<React.SetStateAction<number>>;
|
|
832
|
+
// setSelectedRowIds?: (
|
|
833
|
+
// selectedRowIds: Record<string, boolean>,
|
|
834
|
+
// ) => void | React.Dispatch<React.SetStateAction<Record<string, boolean>>>;
|
|
835
|
+
// onRowClick?: (row: Row, column: ColumnInstance) => void;
|
|
836
|
+
// onNextPageClick?: () => void;
|
|
837
|
+
// onPreviousPageClick?: () => void;
|
|
838
|
+
// rowPropGetter?: (row: Row) => TableCommonProps;
|
|
839
|
+
// cellPropGetter?: (cell: Cell) => TableCommonProps;
|
|
840
|
+
// rowMenuOptions?: (rowData?: any) => MenuItemProps[];
|
|
841
|
+
// onSelectAllRows?: (checked: boolean) => void;
|
|
842
|
+
// onRowSelect?: (row: Row, checked: boolean) => void;
|
|
843
|
+
// onMenuOptionSelect?: (optionId: string, row: any) => void;
|
|
844
|
+
// tableOptions?: Partial<TableOptions<any>> &
|
|
845
|
+
// UseRowSelectOptions<any> &
|
|
846
|
+
// UsePaginationOptions<any>;
|
|
847
|
+
// enableNextPage?: boolean;
|
|
848
|
+
// enablePreviousPage?: boolean;
|
|
849
|
+
// isLoading?: boolean;
|
|
850
|
+
// isFetching?: boolean;
|
|
851
|
+
// hideActions?: boolean;
|
|
852
|
+
// hideFilters?: boolean;
|
|
853
|
+
// hideTableOnEmpty?: boolean;
|
|
854
|
+
// disableSelectMenuOptions?: boolean;
|
|
855
|
+
// disableRowSelect?: boolean;
|
|
856
|
+
// hideTopPagination?: boolean;
|
|
857
|
+
// showTableOnLoading?: boolean;
|
|
858
|
+
// indeterminateCount?: boolean;
|
|
859
|
+
// hideSelectAllInTable?: boolean;
|
|
860
|
+
// hideBottomPagination?: boolean;
|
|
861
|
+
// hideLoaderOnTopPagination?: boolean;
|
|
862
|
+
// dataKey?: string;
|
|
863
|
+
// loaderStyles?: React.CSSProperties;
|
|
864
|
+
// infoComponent?: React.ReactElement;
|
|
865
|
+
// actionComponent?: React.ReactElement;
|
|
866
|
+
// filterComponent?: React.ReactElement;
|
|
867
|
+
// headerComponent?: React.ReactElement;
|
|
868
|
+
// emptyComponent?: React.ReactElement;
|
|
869
|
+
// loadingComponent?: React.ReactElement;
|
|
870
|
+
}
|
|
498
871
|
|
|
499
872
|
interface TabsItemProps {
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
873
|
+
id: string;
|
|
874
|
+
name: string;
|
|
875
|
+
hide?: boolean;
|
|
876
|
+
disabled?: boolean;
|
|
877
|
+
[key: string]: any;
|
|
505
878
|
}
|
|
879
|
+
|
|
506
880
|
type TabsProps<T extends TabsItemProps = TabsItemProps> = {
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
881
|
+
/**
|
|
882
|
+
* options for Tabs
|
|
883
|
+
*/
|
|
884
|
+
options?: Array<T>;
|
|
885
|
+
renderTabsContent?: (tabOption: T) => React.ReactNode;
|
|
886
|
+
/**
|
|
887
|
+
* Id accessor of tabes
|
|
888
|
+
*/
|
|
889
|
+
idAccessor?: string;
|
|
890
|
+
/**
|
|
891
|
+
* Name accessor of tabes
|
|
892
|
+
*/
|
|
893
|
+
nameAccessor?: string;
|
|
894
|
+
ref?: React.RefObject<HTMLDivElement>;
|
|
895
|
+
/**
|
|
896
|
+
* value for tabs
|
|
897
|
+
*/
|
|
898
|
+
value?: TabsProps$1['value'];
|
|
899
|
+
/**
|
|
900
|
+
* default value of tabes
|
|
901
|
+
*/
|
|
902
|
+
defaultValue?: TabsProps$1['defaultValue'];
|
|
903
|
+
/**
|
|
904
|
+
* Function to be called when the selected item changes
|
|
905
|
+
*/
|
|
906
|
+
|
|
907
|
+
onChange?: TabsProps$1['onValueChange'];
|
|
515
908
|
};
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
909
|
+
|
|
910
|
+
interface TagProps {
|
|
911
|
+
/**
|
|
912
|
+
* State of the tag
|
|
913
|
+
*/
|
|
914
|
+
state?: 'error' | 'default' | 'transparent';
|
|
915
|
+
/**
|
|
916
|
+
* Show border around the tag
|
|
917
|
+
*/
|
|
918
|
+
showBorder?: boolean;
|
|
919
|
+
/**
|
|
920
|
+
* Image source for the avatar
|
|
921
|
+
*/
|
|
922
|
+
avatarImgSrc?: string;
|
|
923
|
+
/**
|
|
924
|
+
* Image alt for the avatar
|
|
925
|
+
*/
|
|
926
|
+
avatarImgAlt?: string;
|
|
927
|
+
/**
|
|
928
|
+
* Text for the avatar
|
|
929
|
+
*/
|
|
930
|
+
avatarText?: string;
|
|
931
|
+
/**
|
|
932
|
+
* Function to be called when the tag is closed
|
|
933
|
+
*/
|
|
934
|
+
onClose?: () => void;
|
|
935
|
+
/**
|
|
936
|
+
* Children of the tag
|
|
937
|
+
*/
|
|
938
|
+
children?: React.ReactNode;
|
|
939
|
+
/**
|
|
940
|
+
* Props for the icon
|
|
941
|
+
*/
|
|
942
|
+
iconProps?: React.HTMLAttributes<HTMLButtonElement>;
|
|
524
943
|
}
|
|
525
|
-
declare const Tag: ({ children, iconProps, ...rest }: TagProps) => react_jsx_runtime.JSX.Element;
|
|
526
|
-
|
|
527
|
-
type BreakpointKeys = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
528
|
-
type UiUnits = 'px' | 'rem' | 'em' | '%';
|
|
529
|
-
type TypographyType = {
|
|
530
|
-
fontFamily: string;
|
|
531
|
-
fontSize: string;
|
|
532
|
-
fontWeight: number;
|
|
533
|
-
lineHeight: string | number;
|
|
534
|
-
letterSpacing: number;
|
|
535
|
-
};
|
|
536
|
-
type BaseColorVariantType = {
|
|
537
|
-
mildest: string;
|
|
538
|
-
mild: string;
|
|
539
|
-
main: string;
|
|
540
|
-
};
|
|
541
|
-
type ColorVariantType = BaseColorVariantType & {
|
|
542
|
-
bold: string;
|
|
543
|
-
};
|
|
544
|
-
type SemanticTypes = 'success' | 'warning' | 'error' | 'info' | 'highlight';
|
|
545
|
-
type FuiTheme = {
|
|
546
|
-
breakpoints: {
|
|
547
|
-
keys: BreakpointKeys[];
|
|
548
|
-
values: Record<BreakpointKeys, number>;
|
|
549
|
-
unit: UiUnits;
|
|
550
|
-
};
|
|
551
|
-
colors: {
|
|
552
|
-
text: {
|
|
553
|
-
brand: string;
|
|
554
|
-
primary: string;
|
|
555
|
-
secondary: string;
|
|
556
|
-
disabled: string;
|
|
557
|
-
placeholder: string;
|
|
558
|
-
error: string;
|
|
559
|
-
inverse: string;
|
|
560
|
-
semantic: Record<SemanticTypes, string>;
|
|
561
|
-
};
|
|
562
|
-
icon: {
|
|
563
|
-
primary: string;
|
|
564
|
-
selected: string;
|
|
565
|
-
disabled: string;
|
|
566
|
-
inverse: string;
|
|
567
|
-
semantic: Record<SemanticTypes, string>;
|
|
568
|
-
};
|
|
569
|
-
fill: {
|
|
570
|
-
base: string;
|
|
571
|
-
container: string;
|
|
572
|
-
surface: string;
|
|
573
|
-
inverse: string;
|
|
574
|
-
brand: string;
|
|
575
|
-
semantic: Record<SemanticTypes, ColorVariantType>;
|
|
576
|
-
};
|
|
577
|
-
boundary: {
|
|
578
|
-
border: {
|
|
579
|
-
main: string;
|
|
580
|
-
mildest: string;
|
|
581
|
-
};
|
|
582
|
-
divider: string;
|
|
583
|
-
brand: string;
|
|
584
|
-
semantic: Record<SemanticTypes, BaseColorVariantType>;
|
|
585
|
-
};
|
|
586
|
-
shadow: string;
|
|
587
|
-
scrim: string;
|
|
588
|
-
};
|
|
589
|
-
shadows: string[];
|
|
590
|
-
transitions: {
|
|
591
|
-
easing: {
|
|
592
|
-
easeInOut: string;
|
|
593
|
-
easeOut: string;
|
|
594
|
-
easeIn: string;
|
|
595
|
-
sharp: string;
|
|
596
|
-
};
|
|
597
|
-
duration: {
|
|
598
|
-
shortest: number;
|
|
599
|
-
shorter: number;
|
|
600
|
-
short: number;
|
|
601
|
-
standard: number;
|
|
602
|
-
complex: number;
|
|
603
|
-
enteringScreen: number;
|
|
604
|
-
leavingScreen: number;
|
|
605
|
-
};
|
|
606
|
-
};
|
|
607
|
-
zIndex: {
|
|
608
|
-
mobileStepper: number;
|
|
609
|
-
fab: number;
|
|
610
|
-
speedDial: number;
|
|
611
|
-
appBar: number;
|
|
612
|
-
drawer: number;
|
|
613
|
-
modal: number;
|
|
614
|
-
snackbar: number;
|
|
615
|
-
tooltip: number;
|
|
616
|
-
};
|
|
617
|
-
typography: {
|
|
618
|
-
primary: TypographyType;
|
|
619
|
-
secondary: TypographyType;
|
|
620
|
-
h1: TypographyType;
|
|
621
|
-
h2: TypographyType;
|
|
622
|
-
h3: TypographyType;
|
|
623
|
-
h4: TypographyType;
|
|
624
|
-
h5: TypographyType;
|
|
625
|
-
h6: TypographyType;
|
|
626
|
-
body: TypographyType;
|
|
627
|
-
subtitle: TypographyType;
|
|
628
|
-
caption: TypographyType;
|
|
629
|
-
info: TypographyType;
|
|
630
|
-
};
|
|
631
|
-
components: {
|
|
632
|
-
button: {
|
|
633
|
-
variants: Record<ButtonVariant, {
|
|
634
|
-
from: string;
|
|
635
|
-
to: string;
|
|
636
|
-
color: string;
|
|
637
|
-
aBgColor: string;
|
|
638
|
-
dColor: string;
|
|
639
|
-
hoverColor: string;
|
|
640
|
-
borderColor: string;
|
|
641
|
-
aBorderColor: string;
|
|
642
|
-
dBorderColor: string;
|
|
643
|
-
dFrom: string;
|
|
644
|
-
dTo: string;
|
|
645
|
-
}>;
|
|
646
|
-
sizes: Record<ButtonSizeKey, {
|
|
647
|
-
height: string;
|
|
648
|
-
lineHeight: string;
|
|
649
|
-
fontSize: string;
|
|
650
|
-
}>;
|
|
651
|
-
};
|
|
652
|
-
tooltip: {
|
|
653
|
-
bgColor: string;
|
|
654
|
-
textColor: string;
|
|
655
|
-
fontSize: string;
|
|
656
|
-
fontWeight: number;
|
|
657
|
-
lineHeight: string;
|
|
658
|
-
};
|
|
659
|
-
input: {
|
|
660
|
-
border: {
|
|
661
|
-
normal: string;
|
|
662
|
-
hover: string;
|
|
663
|
-
active: string;
|
|
664
|
-
disabled: string;
|
|
665
|
-
error: string;
|
|
666
|
-
};
|
|
667
|
-
bgColor: string;
|
|
668
|
-
dBgColor: string;
|
|
669
|
-
};
|
|
670
|
-
dropdown: {
|
|
671
|
-
hilightColor: string;
|
|
672
|
-
hoverColor: string;
|
|
673
|
-
addColor: string;
|
|
674
|
-
};
|
|
675
|
-
loader: {
|
|
676
|
-
color: string;
|
|
677
|
-
};
|
|
678
|
-
tag: {
|
|
679
|
-
background: {
|
|
680
|
-
normal: string;
|
|
681
|
-
hover: string;
|
|
682
|
-
active: string;
|
|
683
|
-
disabled: string;
|
|
684
|
-
error: string;
|
|
685
|
-
};
|
|
686
|
-
color: {
|
|
687
|
-
normal: string;
|
|
688
|
-
hover: string;
|
|
689
|
-
active: string;
|
|
690
|
-
disabled: string;
|
|
691
|
-
error: string;
|
|
692
|
-
};
|
|
693
|
-
border: {
|
|
694
|
-
normal: string;
|
|
695
|
-
hover: string;
|
|
696
|
-
active: string;
|
|
697
|
-
disabled: string;
|
|
698
|
-
error: string;
|
|
699
|
-
};
|
|
700
|
-
actionButton: {
|
|
701
|
-
background: {
|
|
702
|
-
normal: string;
|
|
703
|
-
hover: string;
|
|
704
|
-
active: string;
|
|
705
|
-
disabled: string;
|
|
706
|
-
error: string;
|
|
707
|
-
};
|
|
708
|
-
color: {
|
|
709
|
-
normal: string;
|
|
710
|
-
hover: string;
|
|
711
|
-
active: string;
|
|
712
|
-
disabled: string;
|
|
713
|
-
error: string;
|
|
714
|
-
};
|
|
715
|
-
};
|
|
716
|
-
};
|
|
717
|
-
toggle: {
|
|
718
|
-
bg: string;
|
|
719
|
-
onBg: string;
|
|
720
|
-
offBg: string;
|
|
721
|
-
dOnBg: string;
|
|
722
|
-
dOffBg: string;
|
|
723
|
-
onHover: string;
|
|
724
|
-
offHover: string;
|
|
725
|
-
};
|
|
726
|
-
checkbox: {
|
|
727
|
-
bg: string;
|
|
728
|
-
border: string;
|
|
729
|
-
fill: string;
|
|
730
|
-
};
|
|
731
|
-
};
|
|
732
|
-
};
|
|
733
944
|
|
|
734
945
|
type ThemeProviderType<Theme> = React.ComponentType<{
|
|
735
|
-
|
|
736
|
-
|
|
946
|
+
children: React.ReactNode;
|
|
947
|
+
theme: Theme;
|
|
737
948
|
}>;
|
|
738
|
-
declare const ThemeProvider: ThemeProviderType<FuiTheme>;
|
|
739
|
-
declare const useTheme: () => FuiTheme;
|
|
740
949
|
|
|
741
|
-
|
|
950
|
+
type ToastTypes = 'success' | 'warning' | 'error' | 'info';
|
|
951
|
+
|
|
952
|
+
interface ToastType {
|
|
953
|
+
/**
|
|
954
|
+
* How large should the button be?
|
|
955
|
+
*/
|
|
956
|
+
text?: string;
|
|
957
|
+
/**
|
|
958
|
+
* How large should the button be?
|
|
959
|
+
*/
|
|
960
|
+
type?: ToastTypes;
|
|
961
|
+
/**
|
|
962
|
+
* How large should the button be?
|
|
963
|
+
*/
|
|
964
|
+
delay?: number;
|
|
965
|
+
/**
|
|
966
|
+
* How large should the button be?
|
|
967
|
+
*/
|
|
968
|
+
customIcon?: React.ReactNode;
|
|
969
|
+
/**
|
|
970
|
+
* How large should the button be?
|
|
971
|
+
*/
|
|
972
|
+
fixed?: boolean;
|
|
973
|
+
/**
|
|
974
|
+
* How large should the button be?
|
|
975
|
+
*/
|
|
976
|
+
showProgress?: boolean;
|
|
977
|
+
// actions?: Array<ToastAction>;
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
type ToastWithID = ToastType & {
|
|
981
|
+
id: string;
|
|
982
|
+
};
|
|
983
|
+
|
|
984
|
+
type ToastItemProps = ToastWithID & {
|
|
985
|
+
index: number;
|
|
986
|
+
};
|
|
987
|
+
|
|
988
|
+
type UpdateToastsFunction<T> = (
|
|
989
|
+
fn: (toasts: Array<T>) => Array<T>,
|
|
990
|
+
) => void;
|
|
991
|
+
|
|
992
|
+
interface ToastContextType {
|
|
993
|
+
toasts: Array<ToastWithID>;
|
|
994
|
+
windowState: 'focus' | 'blur';
|
|
995
|
+
addToast: (toast: ToastType) => void;
|
|
996
|
+
updateToasts: (fn: (oldToasts: ToastWithID[]) => ToastWithID[]) => void;
|
|
997
|
+
}
|
|
742
998
|
|
|
743
999
|
type ToggleSizes = 'sm' | 'md' | 'lg';
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
1000
|
+
|
|
1001
|
+
interface ToggleProps
|
|
1002
|
+
extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
1003
|
+
/**
|
|
1004
|
+
* The position of the tooltip
|
|
1005
|
+
*/
|
|
1006
|
+
on?: boolean;
|
|
1007
|
+
handleChange?: (on: boolean) => void;
|
|
1008
|
+
/**
|
|
1009
|
+
* Is the button inline
|
|
1010
|
+
*/
|
|
1011
|
+
size?: ToggleSizes;
|
|
1012
|
+
/**
|
|
1013
|
+
* Is hasIcon enabled?
|
|
1014
|
+
*/
|
|
1015
|
+
hasIcon?: boolean;
|
|
1016
|
+
thumbProps?: React.HTMLAttributes<HTMLSpanElement>;
|
|
1017
|
+
/**
|
|
1018
|
+
* Is this a required field?
|
|
1019
|
+
*/
|
|
1020
|
+
isRequired?: boolean;
|
|
1021
|
+
/**
|
|
1022
|
+
* Is this a error field?
|
|
1023
|
+
*/
|
|
1024
|
+
isErrored?: boolean;
|
|
755
1025
|
}
|
|
756
|
-
/**
|
|
757
|
-
* Primary UI component for user interaction
|
|
758
|
-
*/
|
|
759
|
-
declare const Toggle: ({ handleChange, hasIcon, on, isErrored, isRequired, size, thumbProps, ...rest }: ToggleProps) => react_jsx_runtime.JSX.Element;
|
|
760
1026
|
|
|
761
|
-
type Position =
|
|
1027
|
+
type Position =
|
|
1028
|
+
| 'top'
|
|
1029
|
+
| 'top-start'
|
|
1030
|
+
| 'top-end'
|
|
1031
|
+
| 'bottom'
|
|
1032
|
+
| 'bottom-start'
|
|
1033
|
+
| 'bottom-end'
|
|
1034
|
+
| 'left'
|
|
1035
|
+
| 'left-start'
|
|
1036
|
+
| 'left-end'
|
|
1037
|
+
| 'right'
|
|
1038
|
+
| 'right-start'
|
|
1039
|
+
| 'right-end';
|
|
1040
|
+
|
|
762
1041
|
type Side = 'top' | 'right' | 'bottom' | 'left';
|
|
763
1042
|
type Align = 'start' | 'end' | 'center';
|
|
1043
|
+
|
|
764
1044
|
interface TooltipProps {
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
1045
|
+
/**
|
|
1046
|
+
* HTML to be rendered in the tooltip
|
|
1047
|
+
*/
|
|
1048
|
+
html?: React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
1049
|
+
/**
|
|
1050
|
+
* String to be rendered in the tooltip
|
|
1051
|
+
*/
|
|
1052
|
+
label?: string;
|
|
1053
|
+
/**
|
|
1054
|
+
* The position of the tooltip
|
|
1055
|
+
*/
|
|
1056
|
+
position: Position;
|
|
1057
|
+
delay?: number;
|
|
1058
|
+
/**
|
|
1059
|
+
* Whether to show the arrow,
|
|
1060
|
+
*/
|
|
1061
|
+
arrow?: boolean;
|
|
1062
|
+
/**
|
|
1063
|
+
* Whether disabled select
|
|
1064
|
+
*/
|
|
1065
|
+
disabled?: boolean;
|
|
1066
|
+
/**
|
|
1067
|
+
* Class name of tooltip
|
|
1068
|
+
*/
|
|
1069
|
+
className?: string;
|
|
1070
|
+
style?: React.CSSProperties;
|
|
1071
|
+
/**
|
|
1072
|
+
* The children or label
|
|
1073
|
+
*/
|
|
1074
|
+
replaceChild?: boolean;
|
|
1075
|
+
tabIndex?: number;
|
|
1076
|
+
children?: React.ReactNode | string | null;
|
|
1077
|
+
providerProps?: TooltipProviderProps;
|
|
1078
|
+
rootProps?: TooltipProps$1;
|
|
1079
|
+
arrowProps?: TooltipArrowProps;
|
|
788
1080
|
}
|
|
789
|
-
/**
|
|
790
|
-
* Primary UI component for user interaction
|
|
791
|
-
*/
|
|
792
|
-
declare const Tooltip: ({ position, label, html, style, children, className, disabled, delay, arrow, replaceChild, providerProps, rootProps, }: TooltipProps) => react_jsx_runtime.JSX.Element;
|
|
793
1081
|
|
|
794
|
-
type BaseProps = Pick<
|
|
1082
|
+
type BaseProps = Pick<
|
|
1083
|
+
TransitionProps$1,
|
|
1084
|
+
| 'in'
|
|
1085
|
+
| 'onEnter'
|
|
1086
|
+
| 'onEntering'
|
|
1087
|
+
| 'onEntered'
|
|
1088
|
+
| 'onExit'
|
|
1089
|
+
| 'onExiting'
|
|
1090
|
+
| 'onExited'
|
|
1091
|
+
| 'unmountOnExit'
|
|
1092
|
+
| 'timeout'
|
|
1093
|
+
>;
|
|
1094
|
+
|
|
795
1095
|
interface TransitionProps extends BaseProps {
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
1096
|
+
transition?: string;
|
|
1097
|
+
children: (styles: React.CSSProperties) => React.ReactNode;
|
|
1098
|
+
styles: TransitionStyles;
|
|
799
1099
|
}
|
|
1100
|
+
|
|
800
1101
|
type TransitionStyleState = 'init' | 'entered' | 'exiting';
|
|
1102
|
+
|
|
801
1103
|
type TransitionStyles = {
|
|
802
|
-
|
|
1104
|
+
[K in TransitionStyleState]?: React.CSSProperties;
|
|
803
1105
|
};
|
|
804
1106
|
|
|
805
|
-
declare function Transition(props: TransitionProps): react_jsx_runtime.JSX.Element;
|
|
806
1107
|
|
|
807
|
-
type
|
|
808
|
-
timeout?: number;
|
|
809
|
-
};
|
|
810
|
-
declare function Fade(props: FadeProps): react_jsx_runtime.JSX.Element;
|
|
1108
|
+
type SlidePlacement = 'left' | 'right' | 'bottom' | 'top';
|
|
811
1109
|
|
|
812
|
-
type Placement = 'left' | 'right' | 'bottom' | 'top';
|
|
813
1110
|
type SlideProps = Omit<TransitionProps, 'styles' | 'timeout'> & {
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
1111
|
+
/** The direction to slide drawer from */
|
|
1112
|
+
placement?: SlidePlacement;
|
|
1113
|
+
/** The transition timeout */
|
|
1114
|
+
timeout?: number;
|
|
1115
|
+
};
|
|
1116
|
+
|
|
1117
|
+
type FadeProps = Omit<TransitionProps, 'styles' | 'timeout'> & {
|
|
1118
|
+
timeout?: number;
|
|
818
1119
|
};
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
1120
|
+
|
|
1121
|
+
interface SlideFadeProps
|
|
1122
|
+
extends Omit<TransitionProps, 'styles' | 'timeout'> {
|
|
1123
|
+
/**
|
|
1124
|
+
* The initial offset to slide from
|
|
1125
|
+
*/
|
|
1126
|
+
initialOffset?: string;
|
|
1127
|
+
/**
|
|
1128
|
+
* The transition timeout
|
|
1129
|
+
*/
|
|
1130
|
+
timeout?: number;
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
type TypographyWeightType = 'regular' | 'bold' | 'semi-bold';
|
|
1134
|
+
|
|
1135
|
+
type TypographyVariantType =
|
|
1136
|
+
| 'primary'
|
|
1137
|
+
| 'secondary'
|
|
1138
|
+
| 'heading'
|
|
1139
|
+
| 'heading1'
|
|
1140
|
+
| 'heading2'
|
|
1141
|
+
| 'heading3'
|
|
1142
|
+
| 'heading4'
|
|
1143
|
+
| 'caption';
|
|
1144
|
+
|
|
1145
|
+
interface TypographyProps
|
|
1146
|
+
extends React.HtmlHTMLAttributes<HTMLSpanElement> {
|
|
1147
|
+
/**
|
|
1148
|
+
* The children or label
|
|
1149
|
+
*/
|
|
1150
|
+
children?: React.ReactNode | string;
|
|
1151
|
+
variant?: TypographyVariantType;
|
|
1152
|
+
weight?: TypographyWeightType;
|
|
830
1153
|
}
|
|
831
|
-
declare const SlideFade: (props: SlideFadeProps) => react_jsx_runtime.JSX.Element;
|
|
832
1154
|
|
|
833
|
-
export {
|
|
1155
|
+
export type { AlertProps, Align, BaseProps, ButtonProps, ButtonSizeKey, ButtonVariant, CheckboxProps, ConfirmationProps, DatePickerProps, DateRangePickerProps, DateTimePickerProps, DateTimeRangePickerProps, DefaultDropdownItem, DefaultMultiSelectDropdownItem, DefaultProps, DrawerPlacement, DrawerProps, DrawerSizeType, DropdownProps, DropdownTypes, FadeProps, InputProps, LevelType, LoaderPropTypes, MenuItemProps, MenuProps, ModalAlignType, ModalPositionType, ModalProps, ModalSizeType, MultiSelectDropdownProps, Origin, PopoverProps, Position, RadioGroupProps, RadioItemProps, RadioProps, ReorderItemType, ReorderProps, RowData, Side, Sizes, SlideFadeProps, SlidePlacement, SlideProps, Speeds, TableProps, TabsItemProps, TabsProps, TagProps, TextAreaProps, ThemeProviderType, ToastContextType, ToastItemProps, ToastType, ToastTypes, ToastWithID, ToggleProps, ToggleSizes, TooltipProps, TransitionProps, TransitionStyleState, TransitionStyles, TypographyProps, TypographyVariantType, TypographyWeightType, UpdateToastsFunction };
|