plataforma-fundacao-componentes 2.21.1 → 2.21.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/dist/assets/icons/ThreeDotsLoader.d.ts +9 -13
- package/dist/components/button/Button.d.ts +3 -2
- package/dist/components/modal/Modal.d.ts +1 -1
- package/dist/components/modal/ModalTypes.d.ts +3 -3
- package/dist/index.js +2855 -2800
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +2855 -2800
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export { theme_1 as theme };
|
|
10
|
-
const size_1: number;
|
|
11
|
-
export { size_1 as size };
|
|
12
|
-
}
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import './ThreeDotsLoader.scss';
|
|
3
|
+
export declare type ThreeDotsThemes = 'primary' | 'secondary' | 'dark';
|
|
4
|
+
export declare type ThreeDotsSizes = 1 | 2 | 3 | 4;
|
|
5
|
+
export interface ThreeDotsProps {
|
|
6
|
+
theme?: ThreeDotsThemes;
|
|
7
|
+
size?: 1 | 2 | 3 | 4;
|
|
8
|
+
style?: any;
|
|
13
9
|
}
|
|
14
|
-
|
|
10
|
+
export declare const ThreeDotsLoader: (props: ThreeDotsProps) => JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { ButtonHTMLAttributes } from 'react';
|
|
2
|
+
import { ThreeDotsSizes, ThreeDotsThemes } from '../../assets/icons/ThreeDotsLoader';
|
|
2
3
|
import { ButtonThemesType } from '../../libraries/ButtonTheme';
|
|
3
4
|
import { TooltipPositionTypes } from '../../libraries/Tooltips';
|
|
4
5
|
import './Button.scss';
|
|
@@ -14,8 +15,8 @@ export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
14
15
|
mobileBottomPage?: boolean;
|
|
15
16
|
loader?: {
|
|
16
17
|
loading: boolean;
|
|
17
|
-
loaderTheme:
|
|
18
|
-
loaderSize:
|
|
18
|
+
loaderTheme: ThreeDotsThemes;
|
|
19
|
+
loaderSize: ThreeDotsSizes;
|
|
19
20
|
};
|
|
20
21
|
children?: React.ReactNode;
|
|
21
22
|
}
|
|
@@ -12,7 +12,7 @@ export interface ModalProps {
|
|
|
12
12
|
onClose?: (modalKey?: string | number) => void;
|
|
13
13
|
size?: ModalSizes;
|
|
14
14
|
mobileOnXS?: boolean;
|
|
15
|
-
footer?:
|
|
15
|
+
footer?: ButtonProps[] | any;
|
|
16
16
|
children?: any;
|
|
17
17
|
}
|
|
18
18
|
declare function Modal(props: ModalProps): JSX.Element;
|
|
@@ -4,7 +4,7 @@ interface AlertModalProps extends ModalProps {
|
|
|
4
4
|
language?: {
|
|
5
5
|
confirm: string;
|
|
6
6
|
};
|
|
7
|
-
onConfirm: () => void
|
|
7
|
+
onConfirm: () => void | Promise<any>;
|
|
8
8
|
showIcons?: boolean;
|
|
9
9
|
}
|
|
10
10
|
export declare function AlertModal(props: AlertModalProps): JSX.Element;
|
|
@@ -18,7 +18,7 @@ interface ConfirmModalProps extends ModalProps {
|
|
|
18
18
|
confirm: string;
|
|
19
19
|
cancel: string;
|
|
20
20
|
};
|
|
21
|
-
onConfirm: () => void
|
|
21
|
+
onConfirm: () => void | Promise<any>;
|
|
22
22
|
onCancel: () => void;
|
|
23
23
|
showIcons?: boolean;
|
|
24
24
|
}
|
|
@@ -33,7 +33,7 @@ interface DestructiveModalProps extends ModalProps {
|
|
|
33
33
|
confirm: string;
|
|
34
34
|
cancel: string;
|
|
35
35
|
};
|
|
36
|
-
onConfirm: () => void
|
|
36
|
+
onConfirm: () => void | Promise<any>;
|
|
37
37
|
onCancel: () => void;
|
|
38
38
|
showIcons?: boolean;
|
|
39
39
|
}
|