@prosperitainova/mirage-ui 1.0.9 → 1.0.11
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/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/src/lib/Input/Input.d.ts +1 -1
- package/dist/cjs/types/src/lib/InteractiveModal/InteractiveModal.d.ts +2 -1
- package/dist/cjs/types/src/lib/InteractiveModal/InteractiveModal.stories.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/src/lib/Input/Input.d.ts +1 -1
- package/dist/esm/types/src/lib/InteractiveModal/InteractiveModal.d.ts +2 -1
- package/dist/esm/types/src/lib/InteractiveModal/InteractiveModal.stories.d.ts +1 -1
- package/dist/index.d.ts +3 -2
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { InputHTMLAttributes, TextareaHTMLAttributes } from "react";
|
|
2
2
|
import "../../../src/theme/fonts/ProximaNova.css";
|
|
3
3
|
export type InputProps = InputHTMLAttributes<HTMLInputElement> & TextareaHTMLAttributes<HTMLTextAreaElement> & {
|
|
4
|
-
error?: string;
|
|
4
|
+
error?: string | boolean;
|
|
5
5
|
success?: boolean;
|
|
6
6
|
helper?: string;
|
|
7
7
|
label?: string;
|
|
@@ -6,6 +6,7 @@ export type ModalProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
6
6
|
title?: string;
|
|
7
7
|
children?: JSX.Element;
|
|
8
8
|
size: "md" | "lg";
|
|
9
|
+
onClickOutside?: () => void;
|
|
9
10
|
};
|
|
10
|
-
declare const InteractiveModal: (props: ModalProps) => JSX.Element;
|
|
11
|
+
declare const InteractiveModal: ({ onClickOutside, ...props }: ModalProps) => JSX.Element;
|
|
11
12
|
export default InteractiveModal;
|
|
@@ -3,7 +3,7 @@ import { Story } from "@storybook/react";
|
|
|
3
3
|
import { ModalProps } from "./InteractiveModal";
|
|
4
4
|
declare const InteractiveModalStories: {
|
|
5
5
|
title: string;
|
|
6
|
-
component: (props: ModalProps) => JSX.Element;
|
|
6
|
+
component: ({ onClickOutside, ...props }: ModalProps) => JSX.Element;
|
|
7
7
|
};
|
|
8
8
|
export default InteractiveModalStories;
|
|
9
9
|
export declare const Interactive: Story<ModalProps>;
|