blue-react 8.1.7 → 8.2.0
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/components/Modal.js +6 -2
- package/dist/components/ModalProvider.js +18 -9
- package/dist/style.css +9 -2
- package/dist/style.min.css +3 -3
- package/dist/style.scss +1 -1
- package/dist/types/components/Modal.d.ts +2 -1
- package/dist/types/components/ModalProvider.d.ts +3 -3
- package/package.json +1 -1
package/dist/style.scss
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { ModalType } from "./shared";
|
|
3
3
|
export interface ModalProps {
|
|
4
4
|
modalContent?: string;
|
|
5
|
+
modalTitle?: string;
|
|
5
6
|
unSetModalContent: (modalContent?: string) => void;
|
|
6
7
|
/**
|
|
7
8
|
* Type of `input` depends on `type` prop and which action occured.
|
|
@@ -21,4 +22,4 @@ export interface ModalProps {
|
|
|
21
22
|
*
|
|
22
23
|
* For easy use, you should use the hook `useModal` together with `ModalProvider`. See the example there.
|
|
23
24
|
*/
|
|
24
|
-
export default function Modal({ modalContent, unSetModalContent, onSubmit, defaultInput, type }: ModalProps): JSX.Element;
|
|
25
|
+
export default function Modal({ modalContent, modalTitle, unSetModalContent, onSubmit, defaultInput, type }: ModalProps): JSX.Element;
|
|
@@ -4,8 +4,8 @@ export interface ModalProviderProps {
|
|
|
4
4
|
}
|
|
5
5
|
declare const ModalProvider: ({ children, ...rest }: ModalProviderProps) => JSX.Element;
|
|
6
6
|
declare const useModal: () => {
|
|
7
|
-
ask: (text: string) => Promise<string | boolean>;
|
|
8
|
-
tell: (text: string) => Promise<boolean>;
|
|
9
|
-
verify: (text: string) => Promise<boolean>;
|
|
7
|
+
ask: (text: string, title?: string | undefined) => Promise<string | boolean>;
|
|
8
|
+
tell: (text: string, title?: string | undefined) => Promise<boolean>;
|
|
9
|
+
verify: (text: string, title?: string | undefined) => Promise<boolean>;
|
|
10
10
|
};
|
|
11
11
|
export { ModalProvider, useModal };
|