1 | declare module 'unizin-lib' {
|
2 | function openConfirmationModal(a: any): (d: Function, g: () => {}) => any;
|
3 | function addAural(s: string): any;
|
4 | function removeAural(): void;
|
5 | function relativeDate(s: string | Date, now?: Date): string | null;
|
6 |
|
7 | declare namespace notificationActions {
|
8 | type NotificationParam = {
|
9 | callToAction?: string;
|
10 | dismissable?: boolean;
|
11 | icon: string;
|
12 | onCallToAaction?: () => void;
|
13 | text: string;
|
14 | top?: boolean;
|
15 | timeout?: number;
|
16 | };
|
17 | function showNotification(p: NotificationParam): (a: any) => Promise<number>;
|
18 | function removeNotification(n: number): Promise<void>;
|
19 | }
|
20 |
|
21 | export class AuralNotification extends React.Component<{}> {}
|
22 | export class ModalContainer extends React.Component<{}> {}
|
23 | export class NotificationContainer extends React.Component<{}> {}
|
24 | export class Loading extends React.Component<{ message?: string }> {}
|
25 | export class ButtonAddRemove extends React.Component<{
|
26 | triggerBoolean: boolean;
|
27 | isSmall?: boolean;
|
28 | handleOnClick?: () => void;
|
29 | title?: string;
|
30 | }> {}
|
31 | export class Pagination extends React.Component<{
|
32 | page: number;
|
33 | pageCount: number;
|
34 | hasNext: boolean;
|
35 | changePage: (n: number) => void;
|
36 | }> {}
|
37 | export class Tooltip extends React.Component<{ message: React.ReactNode }> {}
|
38 | export class Toggle extends React.Component<{
|
39 | checked: boolean;
|
40 | color?: string;
|
41 | disabled: boolean;
|
42 | height?: string | number;
|
43 | onChange: (e: MouseEvent) => Promise<any>;
|
44 | }> {}
|
45 | export class ToggleHandle extends React.Component<{
|
46 | expanded: boolean;
|
47 | onClick?: React.MouseEventHandler;
|
48 | }> {}
|
49 | export class Spinner extends React.Component<{
|
50 | color?: string;
|
51 | stroke?: string;
|
52 | width?: string;
|
53 | }> {}
|
54 | export class CloseButton extends React.Component<any> {}
|
55 | export class Avatar extends React.Component<{ email: string; name: string }> {}
|
56 | export class FocusTrap extends React.PureComponent<{
|
57 | children: React.Node;
|
58 | className?: string;
|
59 | setModalOnClose?: (f: (e: HTMLElement) => void) => void;
|
60 | scope?: HTMLElement;
|
61 | }> {}
|
62 |
|
63 | function auralNotificationReducer<T>(s: T, a: any): T;
|
64 | function notificationReducer<T>(s: T, a: any): T;
|
65 | function modalReducer<T>(s: T, a: any): T;
|
66 | }
|