@aminnausin/cedar-ui 0.0.9 → 0.0.10
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/dist/cedar-ui.mjs +924 -875
- package/dist/cedar-ui.umd.js +1 -1
- package/dist/index.d.ts +250 -29
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ import { FunctionalComponent } from 'vue';
|
|
|
8
8
|
import { MethodOptions } from 'vue';
|
|
9
9
|
import { ModelRef } from 'vue';
|
|
10
10
|
import { Ref } from 'vue';
|
|
11
|
+
import { _RouterLinkI } from 'vue-router';
|
|
11
12
|
import { ShallowRef } from 'vue';
|
|
12
13
|
import { UnwrapRef } from 'vue';
|
|
13
14
|
|
|
@@ -17,12 +18,24 @@ export declare interface AccordionItem {
|
|
|
17
18
|
content: string;
|
|
18
19
|
}
|
|
19
20
|
|
|
21
|
+
export declare type AnchorTarget = '_self' | '_blank' | '_parent' | '_top' | (string & {});
|
|
22
|
+
|
|
20
23
|
export declare interface BreadCrumbItem {
|
|
21
24
|
name: string;
|
|
22
25
|
url: string;
|
|
23
26
|
icon?: Component;
|
|
24
27
|
}
|
|
25
28
|
|
|
29
|
+
export declare type ButtonComponent = 'button' | 'a' | _RouterLinkI;
|
|
30
|
+
|
|
31
|
+
export declare interface ButtonProps {
|
|
32
|
+
type?: ButtonType;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export declare type ButtonType = 'button' | 'submit' | 'reset';
|
|
36
|
+
|
|
37
|
+
export declare type ButtonVariant = 'default';
|
|
38
|
+
|
|
26
39
|
declare function close_2(): void;
|
|
27
40
|
|
|
28
41
|
export declare function cn(...inputs: any[]): string;
|
|
@@ -33,14 +46,6 @@ export declare const CompareStrategies: {
|
|
|
33
46
|
number: (a: any, b: any) => number;
|
|
34
47
|
};
|
|
35
48
|
|
|
36
|
-
export declare interface ContextMenu {
|
|
37
|
-
disabled?: boolean;
|
|
38
|
-
style?: string;
|
|
39
|
-
itemStyle?: string;
|
|
40
|
-
items?: ContextMenuItem[];
|
|
41
|
-
scrollContainer?: 'window' | 'body';
|
|
42
|
-
}
|
|
43
|
-
|
|
44
49
|
export declare interface ContextMenuItem {
|
|
45
50
|
text?: string;
|
|
46
51
|
shortcut?: string;
|
|
@@ -53,9 +58,38 @@ export declare interface ContextMenuItem {
|
|
|
53
58
|
disabled?: boolean;
|
|
54
59
|
hidden?: boolean;
|
|
55
60
|
icon?: Component;
|
|
61
|
+
target?: AnchorTarget;
|
|
56
62
|
}
|
|
57
63
|
|
|
58
|
-
declare interface
|
|
64
|
+
export declare interface ContextMenuOptions {
|
|
65
|
+
disabled?: boolean;
|
|
66
|
+
style?: string;
|
|
67
|
+
itemStyle?: string;
|
|
68
|
+
items?: ContextMenuItem[];
|
|
69
|
+
scrollContainer?: 'window' | 'body';
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export declare function createDrawerCore(): {
|
|
73
|
+
isOpen: Readonly< Ref<boolean, boolean>>;
|
|
74
|
+
isAnimating: Readonly< Ref<boolean, boolean>>;
|
|
75
|
+
animationTime: Ref<number, number>;
|
|
76
|
+
props: ShallowRef<Partial<DrawerProps>, Partial<DrawerProps>>;
|
|
77
|
+
component: ShallowRef<null, null> | ShallowRef<ComponentOptions<any, any, any, ComputedOptions, MethodOptions, any, any, any, string, {}, {}, string, {}, {}, {}, string, ComponentProvideOptions>, ComponentOptions<any, any, any, ComputedOptions, MethodOptions, any, any, any, string, {}, {}, string, {}, {}, {}, string, ComponentProvideOptions>> | ShallowRef<FunctionalComponent<any, {}, any, {}>, FunctionalComponent<any, {}, any, {}>> | ShallowRef<{
|
|
78
|
+
new (...args: any[]): any;
|
|
79
|
+
__isFragment?: never;
|
|
80
|
+
__isTeleport?: never;
|
|
81
|
+
__isSuspense?: never;
|
|
82
|
+
}, {
|
|
83
|
+
new (...args: any[]): any;
|
|
84
|
+
__isFragment?: never;
|
|
85
|
+
__isTeleport?: never;
|
|
86
|
+
__isSuspense?: never;
|
|
87
|
+
}>;
|
|
88
|
+
open: (drawerComponent: Component, drawerProps?: DrawerProps) => void;
|
|
89
|
+
close: () => void;
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
export declare interface DatePickerProps {
|
|
59
93
|
model?: ModelRef<string | undefined>;
|
|
60
94
|
defaultDate?: string;
|
|
61
95
|
useDefaultDate?: boolean;
|
|
@@ -63,6 +97,22 @@ declare interface DatePickerProps {
|
|
|
63
97
|
|
|
64
98
|
export declare const DEFAULT_GAP = 16;
|
|
65
99
|
|
|
100
|
+
export declare const drawer: {
|
|
101
|
+
open: (comp: Component, props: DrawerProps) => void;
|
|
102
|
+
close: () => void;
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
export declare interface DrawerControllerProps {
|
|
106
|
+
teleportTarget?: string;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export declare interface DrawerProps {
|
|
110
|
+
title?: string;
|
|
111
|
+
description?: string;
|
|
112
|
+
rootClass?: string;
|
|
113
|
+
direction?: SwipeDirection;
|
|
114
|
+
}
|
|
115
|
+
|
|
66
116
|
export declare interface DropdownMenuItem {
|
|
67
117
|
name: string;
|
|
68
118
|
url?: string;
|
|
@@ -85,6 +135,8 @@ export declare interface ExternalToast {
|
|
|
85
135
|
|
|
86
136
|
export declare type FieldType = 'text' | 'textArea' | 'number' | 'date' | 'url' | 'multi' | 'select' | 'password';
|
|
87
137
|
|
|
138
|
+
export declare type FormButtonVariant = ButtonVariant | 'submit' | 'reset' | 'auth';
|
|
139
|
+
|
|
88
140
|
export declare interface FormField {
|
|
89
141
|
name: string;
|
|
90
142
|
text?: string;
|
|
@@ -115,6 +167,18 @@ export declare interface FormHooks {
|
|
|
115
167
|
onFinish?: () => any;
|
|
116
168
|
}
|
|
117
169
|
|
|
170
|
+
export declare interface FormLabelledTextInputProps extends TextInputProps, LabelProps {
|
|
171
|
+
required?: boolean;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export declare interface FormLabelProps extends LabelProps {
|
|
175
|
+
for: string;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
export declare interface FormNumberFieldProps extends NumberFieldProps {
|
|
179
|
+
field: FormField;
|
|
180
|
+
}
|
|
181
|
+
|
|
118
182
|
export declare interface FormState<T> {
|
|
119
183
|
fields: FormFields<T>;
|
|
120
184
|
errors: {
|
|
@@ -133,8 +197,42 @@ export declare interface FormState<T> {
|
|
|
133
197
|
}) => void;
|
|
134
198
|
}
|
|
135
199
|
|
|
200
|
+
export declare interface FormTextAreaProps {
|
|
201
|
+
field: FormField;
|
|
202
|
+
maxHeight?: number;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
export declare interface HoverCardProps extends RelativeHoverCardProps {
|
|
206
|
+
contentTitle?: string;
|
|
207
|
+
margin?: number;
|
|
208
|
+
paddingLeft?: number;
|
|
209
|
+
scrollContainer?: 'body' | 'window';
|
|
210
|
+
disabled?: boolean;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
export declare type IconButtonVariant = ButtonVariant | 'ghost' | 'transparent';
|
|
214
|
+
|
|
215
|
+
export declare interface InputProps {
|
|
216
|
+
id?: string;
|
|
217
|
+
disabled?: boolean;
|
|
218
|
+
placeholder?: string;
|
|
219
|
+
class?: string;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
export declare interface InputShellProps extends InputProps {
|
|
223
|
+
clampText?: boolean;
|
|
224
|
+
}
|
|
225
|
+
|
|
136
226
|
export declare function isInputLikeElement(element: EventTarget | null, key: string): boolean;
|
|
137
227
|
|
|
228
|
+
export declare interface LabelledTextInputProps extends TextInputProps, LabelProps {
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
export declare interface LabelProps {
|
|
232
|
+
text?: string;
|
|
233
|
+
subtext?: string;
|
|
234
|
+
}
|
|
235
|
+
|
|
138
236
|
export declare interface Message<T extends Component = Component> {
|
|
139
237
|
id: string;
|
|
140
238
|
title: string;
|
|
@@ -152,12 +250,35 @@ export declare interface Message<T extends Component = Component> {
|
|
|
152
250
|
|
|
153
251
|
export declare const MOBILE_VIEWPORT_OFFSET = "16px";
|
|
154
252
|
|
|
155
|
-
declare interface ModalProps {
|
|
253
|
+
export declare interface ModalProps {
|
|
156
254
|
title?: string;
|
|
157
255
|
submitText?: string;
|
|
158
256
|
animationTime?: number;
|
|
159
257
|
}
|
|
160
258
|
|
|
259
|
+
export declare interface MultiSelectItem {
|
|
260
|
+
id: number;
|
|
261
|
+
name: string;
|
|
262
|
+
relationships?: any;
|
|
263
|
+
disabled?: boolean;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
export declare interface MultiSelectProps {
|
|
267
|
+
class?: string;
|
|
268
|
+
rootClass?: string;
|
|
269
|
+
placeholder?: string;
|
|
270
|
+
defaultItems?: MultiSelectItem[];
|
|
271
|
+
options?: MultiSelectItem[];
|
|
272
|
+
max?: number;
|
|
273
|
+
disabled?: boolean;
|
|
274
|
+
title?: string;
|
|
275
|
+
fieldName?: string;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
export declare interface NumberFieldProps {
|
|
279
|
+
increment?: number;
|
|
280
|
+
}
|
|
281
|
+
|
|
161
282
|
declare class Observer {
|
|
162
283
|
subscribers: Array<(toast: Message | ToastToDismiss) => void>;
|
|
163
284
|
toasts: Array<Message>;
|
|
@@ -191,12 +312,38 @@ export declare interface PopoverItem {
|
|
|
191
312
|
selectedIcon?: Component;
|
|
192
313
|
}
|
|
193
314
|
|
|
315
|
+
export declare interface RelativeHoverCardProps {
|
|
316
|
+
content?: string;
|
|
317
|
+
positionClasses?: string;
|
|
318
|
+
hoverCardDelay?: number;
|
|
319
|
+
hoverCardLeaveDelay?: number;
|
|
320
|
+
iconHidden?: boolean;
|
|
321
|
+
icon?: Component;
|
|
322
|
+
}
|
|
323
|
+
|
|
194
324
|
export declare const SCALE_STEP = 0.06;
|
|
195
325
|
|
|
196
326
|
export declare interface SelectItem {
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
327
|
+
title: string;
|
|
328
|
+
value: any;
|
|
329
|
+
key?: any;
|
|
330
|
+
disabled?: boolean;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
export declare interface SelectProps {
|
|
334
|
+
name?: string;
|
|
335
|
+
class?: string;
|
|
336
|
+
rootClass?: string;
|
|
337
|
+
placeholder?: string;
|
|
338
|
+
defaultItem?: number | null;
|
|
339
|
+
options?: SelectItem[];
|
|
340
|
+
disabled?: boolean;
|
|
341
|
+
title?: string;
|
|
342
|
+
prefix?: string;
|
|
343
|
+
menuMargin?: {
|
|
344
|
+
top: string;
|
|
345
|
+
bottom: string;
|
|
346
|
+
};
|
|
200
347
|
}
|
|
201
348
|
|
|
202
349
|
export declare type SortDir = 1 | -1;
|
|
@@ -212,8 +359,37 @@ export declare function sortObjectNew<T>(keys: SortKey<T>[], direction?: SortDir
|
|
|
212
359
|
|
|
213
360
|
export declare const SWIPE_THRESHOLD = 45;
|
|
214
361
|
|
|
362
|
+
export declare type SwipeAxis = 'x' | 'y';
|
|
363
|
+
|
|
364
|
+
export declare interface SwipeConstraint {
|
|
365
|
+
minDelta: number;
|
|
366
|
+
maxDelta: number;
|
|
367
|
+
}
|
|
368
|
+
|
|
215
369
|
export declare type SwipeDirection = 'top' | 'right' | 'bottom' | 'left';
|
|
216
370
|
|
|
371
|
+
export declare interface SwipeThreshold {
|
|
372
|
+
px?: number;
|
|
373
|
+
percent?: number;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
export declare interface TablePaginationButtonProps {
|
|
377
|
+
currentPage?: number;
|
|
378
|
+
pageNumber?: number;
|
|
379
|
+
text?: string;
|
|
380
|
+
underline?: boolean;
|
|
381
|
+
sticky?: boolean;
|
|
382
|
+
disabled?: boolean;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
export declare interface TablePaginationProps {
|
|
386
|
+
listLength: number;
|
|
387
|
+
currentPage: number;
|
|
388
|
+
itemsPerPage: number;
|
|
389
|
+
useIcons: boolean;
|
|
390
|
+
maxVisiblePages?: number;
|
|
391
|
+
}
|
|
392
|
+
|
|
217
393
|
export declare interface TableProps<T> {
|
|
218
394
|
useToolbar?: boolean;
|
|
219
395
|
usePagination?: boolean;
|
|
@@ -263,6 +439,13 @@ export declare interface TabsTriggerProps {
|
|
|
263
439
|
value: string;
|
|
264
440
|
}
|
|
265
441
|
|
|
442
|
+
export declare type TextButtonVariant = ButtonVariant | 'ghost' | 'transparent' | 'form';
|
|
443
|
+
|
|
444
|
+
export declare interface TextInputProps extends InputProps {
|
|
445
|
+
minlength?: number;
|
|
446
|
+
maxlength?: number;
|
|
447
|
+
}
|
|
448
|
+
|
|
266
449
|
export declare const toast: typeof toastFunction & {
|
|
267
450
|
add: (message: string, options?: ToastOptions) => string;
|
|
268
451
|
success: (message: string, options?: ToastOptions) => string;
|
|
@@ -274,6 +457,8 @@ export declare const toast: typeof toastFunction & {
|
|
|
274
457
|
|
|
275
458
|
export declare const TOAST_LIFE = 3000;
|
|
276
459
|
|
|
460
|
+
export declare const TOAST_SWIPE_THRESHOLD = 45;
|
|
461
|
+
|
|
277
462
|
export declare const TOAST_WIDTH = 0;
|
|
278
463
|
|
|
279
464
|
export declare interface ToastControllerProps {
|
|
@@ -346,7 +531,7 @@ export declare function useDatePicker(props: DatePickerProps, datePickerInput: R
|
|
|
346
531
|
datePickerCalendar: Ref<HTMLElement | null, HTMLElement | null>;
|
|
347
532
|
datePickerOpen: Ref<boolean, boolean>;
|
|
348
533
|
datePickerValue: Ref<string, string>;
|
|
349
|
-
datePickerPanel: Ref<"
|
|
534
|
+
datePickerPanel: Ref<"D" | "M" | "Y", "D" | "M" | "Y">;
|
|
350
535
|
datePickerFormat: Ref<"F d, Y" | "d M, Y" | "Y M d" | "MM-DD-YYYY" | "DD-MM-YYYY" | "YYYY-MM-DD" | "D d M, Y", "F d, Y" | "d M, Y" | "Y M d" | "MM-DD-YYYY" | "DD-MM-YYYY" | "YYYY-MM-DD" | "D d M, Y">;
|
|
351
536
|
datePickerMonth: Ref<number, number>;
|
|
352
537
|
datePickerMonthVerbose: ComputedRef<string>;
|
|
@@ -357,7 +542,7 @@ export declare function useDatePicker(props: DatePickerProps, datePickerInput: R
|
|
|
357
542
|
datePickerBlankDaysInMonth: Ref<number[], number[]>;
|
|
358
543
|
datePickerMonthNames: string[];
|
|
359
544
|
datePickerDays: string[];
|
|
360
|
-
datePickerPosition: Ref<"
|
|
545
|
+
datePickerPosition: Ref<"top" | "bottom", "top" | "bottom">;
|
|
361
546
|
toggleDatePicker: (state?: boolean) => void;
|
|
362
547
|
datePickerValueClicked: (value: number) => void;
|
|
363
548
|
datePickerPrevious: () => void;
|
|
@@ -367,6 +552,46 @@ export declare function useDatePicker(props: DatePickerProps, datePickerInput: R
|
|
|
367
552
|
showDatePickerPanel: (panel?: "Y" | "M" | "D") => void;
|
|
368
553
|
};
|
|
369
554
|
|
|
555
|
+
export declare function useDrawer(): {
|
|
556
|
+
isOpen: Readonly< Ref<boolean, boolean>>;
|
|
557
|
+
isAnimating: Readonly< Ref<boolean, boolean>>;
|
|
558
|
+
animationTime: Ref<number, number>;
|
|
559
|
+
props: ShallowRef<Partial<DrawerProps>, Partial<DrawerProps>>;
|
|
560
|
+
component: ShallowRef<null, null> | ShallowRef<ComponentOptions<any, any, any, ComputedOptions, MethodOptions, any, any, any, string, {}, {}, string, {}, {}, {}, string, ComponentProvideOptions>, ComponentOptions<any, any, any, ComputedOptions, MethodOptions, any, any, any, string, {}, {}, string, {}, {}, {}, string, ComponentProvideOptions>> | ShallowRef<FunctionalComponent<any, {}, any, {}>, FunctionalComponent<any, {}, any, {}>> | ShallowRef<{
|
|
561
|
+
new (...args: any[]): any;
|
|
562
|
+
__isFragment?: never;
|
|
563
|
+
__isTeleport?: never;
|
|
564
|
+
__isSuspense?: never;
|
|
565
|
+
}, {
|
|
566
|
+
new (...args: any[]): any;
|
|
567
|
+
__isFragment?: never;
|
|
568
|
+
__isTeleport?: never;
|
|
569
|
+
__isSuspense?: never;
|
|
570
|
+
}>;
|
|
571
|
+
open: (drawerComponent: Component, drawerProps?: DrawerProps) => void;
|
|
572
|
+
close: () => void;
|
|
573
|
+
};
|
|
574
|
+
|
|
575
|
+
export declare function useDrawerCore(): {
|
|
576
|
+
isOpen: Readonly< Ref<boolean, boolean>>;
|
|
577
|
+
isAnimating: Readonly< Ref<boolean, boolean>>;
|
|
578
|
+
animationTime: Ref<number, number>;
|
|
579
|
+
props: ShallowRef<Partial<DrawerProps>, Partial<DrawerProps>>;
|
|
580
|
+
component: ShallowRef<null, null> | ShallowRef<ComponentOptions<any, any, any, ComputedOptions, MethodOptions, any, any, any, string, {}, {}, string, {}, {}, {}, string, ComponentProvideOptions>, ComponentOptions<any, any, any, ComputedOptions, MethodOptions, any, any, any, string, {}, {}, string, {}, {}, {}, string, ComponentProvideOptions>> | ShallowRef<FunctionalComponent<any, {}, any, {}>, FunctionalComponent<any, {}, any, {}>> | ShallowRef<{
|
|
581
|
+
new (...args: any[]): any;
|
|
582
|
+
__isFragment?: never;
|
|
583
|
+
__isTeleport?: never;
|
|
584
|
+
__isSuspense?: never;
|
|
585
|
+
}, {
|
|
586
|
+
new (...args: any[]): any;
|
|
587
|
+
__isFragment?: never;
|
|
588
|
+
__isTeleport?: never;
|
|
589
|
+
__isSuspense?: never;
|
|
590
|
+
}>;
|
|
591
|
+
open: (drawerComponent: Component, drawerProps?: DrawerProps) => void;
|
|
592
|
+
close: () => void;
|
|
593
|
+
};
|
|
594
|
+
|
|
370
595
|
export declare function useForm<T extends Record<string, any>>(fields: FormFields<T>): {
|
|
371
596
|
fields: UnwrapRef<FormFields<T>>;
|
|
372
597
|
errors: {
|
|
@@ -385,16 +610,6 @@ export declare function useForm<T extends Record<string, any>>(fields: FormField
|
|
|
385
610
|
}) => void;
|
|
386
611
|
};
|
|
387
612
|
|
|
388
|
-
export declare function useModal(props: ModalProps): {
|
|
389
|
-
modalOpen: boolean;
|
|
390
|
-
isAnimating: boolean;
|
|
391
|
-
animationTime: number;
|
|
392
|
-
toggleModal: (state?: boolean | null) => void;
|
|
393
|
-
setTitle: (title: string) => void;
|
|
394
|
-
title: string;
|
|
395
|
-
submitText?: string | undefined;
|
|
396
|
-
};
|
|
397
|
-
|
|
398
613
|
export declare function useModalCore(): {
|
|
399
614
|
isOpen: Ref<boolean, boolean>;
|
|
400
615
|
isAnimating: Ref<boolean, boolean>;
|
|
@@ -463,7 +678,7 @@ export declare function useSelect(options: any, refs: any): {
|
|
|
463
678
|
selectPositionUpdate: () => void;
|
|
464
679
|
};
|
|
465
680
|
|
|
466
|
-
export declare function useSwipeHandler({ directions,
|
|
681
|
+
export declare function useSwipeHandler({ directions, swipeThreshold, velocityThreshold, getElementSize, onSwipeOut }: UseSwipeHandlerOptions): {
|
|
467
682
|
offset: Ref<{
|
|
468
683
|
x: number;
|
|
469
684
|
y: number;
|
|
@@ -478,11 +693,15 @@ export declare function useSwipeHandler({ directions, threshold, onSwipeOut }: U
|
|
|
478
693
|
onPointerDown: (e: PointerEvent) => void;
|
|
479
694
|
onPointerMove: (e: PointerEvent) => void;
|
|
480
695
|
onPointerUp: () => void;
|
|
696
|
+
onPointerCancel: () => void;
|
|
697
|
+
isTapGesture: () => boolean;
|
|
481
698
|
};
|
|
482
699
|
|
|
483
|
-
declare interface UseSwipeHandlerOptions {
|
|
700
|
+
export declare interface UseSwipeHandlerOptions {
|
|
484
701
|
directions: Ref<SwipeDirection[]>;
|
|
485
|
-
|
|
702
|
+
swipeThreshold: SwipeThreshold;
|
|
703
|
+
velocityThreshold?: number;
|
|
704
|
+
getElementSize?: (axis: SwipeAxis) => number;
|
|
486
705
|
onSwipeOut: () => void;
|
|
487
706
|
}
|
|
488
707
|
|
|
@@ -501,13 +720,15 @@ export declare function useToastTimer({ duration, isPaused, onTimeout, immediate
|
|
|
501
720
|
cancel: () => void;
|
|
502
721
|
};
|
|
503
722
|
|
|
504
|
-
declare interface UseToastTimerOptions {
|
|
723
|
+
export declare interface UseToastTimerOptions {
|
|
505
724
|
duration: number;
|
|
506
725
|
isPaused: () => boolean;
|
|
507
726
|
onTimeout: () => void;
|
|
508
727
|
immediate?: boolean;
|
|
509
728
|
}
|
|
510
729
|
|
|
730
|
+
export declare const VELOCITY_THRESHOLD = 0.11;
|
|
731
|
+
|
|
511
732
|
export declare const VIEWPORT_OFFSET = "24px";
|
|
512
733
|
|
|
513
734
|
export declare const VISIBLE_TOASTS_AMOUNT = 3;
|