@prosperitainova/mirage-ui 1.0.4 → 1.0.7
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/README.md +22 -36
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/src/lib/Button/Button.d.ts +5 -3
- package/dist/cjs/types/src/lib/Button/Button.stories.d.ts +1 -1
- package/dist/cjs/types/src/lib/InteractiveModal/InteractiveModal.d.ts +1 -1
- package/dist/cjs/types/src/lib/LateralModal/LateralModal.d.ts +1 -1
- package/dist/cjs/types/src/lib/Radio/Radio.d.ts +4 -4
- package/dist/cjs/types/src/lib/Radio/Radio.stories.d.ts +9 -0
- package/dist/cjs/types/src/lib/Radio/index.d.ts +1 -0
- package/dist/cjs/types/src/lib/RadioGroup/Radio.d.ts +11 -0
- package/dist/cjs/types/src/lib/RadioGroup/RadioGroup.d.ts +1 -1
- package/dist/cjs/types/src/lib/index.d.ts +1 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/src/lib/Button/Button.d.ts +5 -3
- package/dist/esm/types/src/lib/Button/Button.stories.d.ts +1 -1
- package/dist/esm/types/src/lib/InteractiveModal/InteractiveModal.d.ts +1 -1
- package/dist/esm/types/src/lib/LateralModal/LateralModal.d.ts +1 -1
- package/dist/esm/types/src/lib/Radio/Radio.d.ts +4 -4
- package/dist/esm/types/src/lib/Radio/Radio.stories.d.ts +9 -0
- package/dist/esm/types/src/lib/Radio/index.d.ts +1 -0
- package/dist/esm/types/src/lib/RadioGroup/Radio.d.ts +11 -0
- package/dist/esm/types/src/lib/RadioGroup/RadioGroup.d.ts +1 -1
- package/dist/esm/types/src/lib/index.d.ts +1 -0
- package/dist/index.d.ts +14 -4
- package/package.json +5 -1
- package/README.old.md +0 -29
- package/dist/cjs/assets/asset-01ba4719 +0 -1
- package/dist/cjs/assets/asset-1f5f3d97 +0 -5
- package/dist/cjs/assets/asset-90a77f27 +0 -83
- package/dist/cjs/assets/asset-d29508fd +0 -2
- package/dist/cjs/assets/asset-e29ddd46 +0 -1
- package/dist/cjs/types/src/App.d.ts +0 -4
- package/dist/cjs/types/src/reportWebVitals.d.ts +0 -3
- package/dist/esm/assets/asset-01ba4719 +0 -1
- package/dist/esm/assets/asset-1f5f3d97 +0 -5
- package/dist/esm/assets/asset-90a77f27 +0 -83
- package/dist/esm/assets/asset-d29508fd +0 -2
- package/dist/esm/assets/asset-e29ddd46 +0 -1
- package/dist/esm/types/src/App.d.ts +0 -4
- package/dist/esm/types/src/reportWebVitals.d.ts +0 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ButtonHTMLAttributes } from "react";
|
|
1
|
+
import React, { ButtonHTMLAttributes } from "react";
|
|
2
2
|
import "../../../src/theme/fonts/ProximaNova.css";
|
|
3
|
-
export declare const AppButton: import("styled-components").StyledComponent<"button", any, ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
3
|
+
export declare const AppButton: import("styled-components").StyledComponent<"button", any, React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
4
4
|
mode: "main" | "border" | "phantom";
|
|
5
5
|
link?: boolean | undefined;
|
|
6
6
|
icon?: string | undefined;
|
|
@@ -12,6 +12,7 @@ export declare const AppButton: import("styled-components").StyledComponent<"but
|
|
|
12
12
|
label?: string | undefined;
|
|
13
13
|
value?: string | undefined;
|
|
14
14
|
type?: string | undefined;
|
|
15
|
+
full?: boolean | undefined;
|
|
15
16
|
children?: JSX.Element | undefined;
|
|
16
17
|
}, never>;
|
|
17
18
|
export type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
@@ -26,7 +27,8 @@ export type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
|
26
27
|
label?: string;
|
|
27
28
|
value?: string;
|
|
28
29
|
type?: string;
|
|
30
|
+
full?: boolean;
|
|
29
31
|
children?: JSX.Element;
|
|
30
32
|
};
|
|
31
|
-
declare const Button: (props: ButtonProps) => JSX.Element;
|
|
33
|
+
declare const Button: ({ onClick, ...props }: ButtonProps) => JSX.Element;
|
|
32
34
|
export default Button;
|
|
@@ -3,7 +3,7 @@ import { ButtonProps } from "./Button";
|
|
|
3
3
|
import { Story } from "@storybook/react";
|
|
4
4
|
declare const ButtonStories: {
|
|
5
5
|
title: string;
|
|
6
|
-
component: (props: ButtonProps) => JSX.Element;
|
|
6
|
+
component: ({ onClick, ...props }: ButtonProps) => JSX.Element;
|
|
7
7
|
};
|
|
8
8
|
export default ButtonStories;
|
|
9
9
|
export declare const Main: Story<ButtonProps>;
|
|
@@ -3,7 +3,7 @@ import "../../../src/theme/fonts/ProximaNova.css";
|
|
|
3
3
|
export type ModalProps = HTMLAttributes<HTMLDivElement> & {
|
|
4
4
|
open?: boolean;
|
|
5
5
|
header?: boolean;
|
|
6
|
-
title
|
|
6
|
+
title?: string;
|
|
7
7
|
children?: JSX.Element;
|
|
8
8
|
};
|
|
9
9
|
declare const lateralModal: (props: ModalProps) => JSX.Element;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import "../../../src/theme/fonts/ProximaNova.css";
|
|
2
3
|
export type RadioProps = {
|
|
3
|
-
label
|
|
4
|
+
label?: string;
|
|
4
5
|
disabled?: boolean;
|
|
5
6
|
checked?: boolean;
|
|
6
7
|
position?: "top" | "bottom" | "left" | "right";
|
|
7
|
-
value:
|
|
8
|
-
onClick?: (value: string) => void;
|
|
8
|
+
onChange?: (value: boolean) => void;
|
|
9
9
|
};
|
|
10
|
-
declare const Radio: ({
|
|
10
|
+
declare const Radio: ({ onChange, ...props }: RadioProps) => JSX.Element;
|
|
11
11
|
export default Radio;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { RadioProps } from "./Radio";
|
|
3
|
+
import { Story } from "@storybook/react";
|
|
4
|
+
declare const RadioStories: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: ({ onChange, ...props }: RadioProps) => JSX.Element;
|
|
7
|
+
};
|
|
8
|
+
export default RadioStories;
|
|
9
|
+
export declare const RadioStory: Story<RadioProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./Radio";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type RadioProps = {
|
|
3
|
+
label: string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
checked?: boolean;
|
|
6
|
+
position?: "top" | "bottom" | "left" | "right";
|
|
7
|
+
value: string;
|
|
8
|
+
onClick?: (value: string) => void;
|
|
9
|
+
};
|
|
10
|
+
declare const Radio: ({ onClick, ...props }: RadioProps) => JSX.Element;
|
|
11
|
+
export default Radio;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HTMLAttributes } from "react";
|
|
2
|
-
import { RadioProps } from "../
|
|
2
|
+
import { RadioProps } from "../RadioGroup/Radio";
|
|
3
3
|
import "../../../src/theme/fonts/ProximaNova.css";
|
|
4
4
|
export type RadioGroupProps = HTMLAttributes<HTMLDivElement> & {
|
|
5
5
|
display: "row" | "column";
|
|
@@ -8,6 +8,7 @@ export { default as InteractiveModal } from "./InteractiveModal";
|
|
|
8
8
|
export { default as LateralModal } from "./LateralModal";
|
|
9
9
|
export { default as Menudropdown } from "./MenuDropdown";
|
|
10
10
|
export { default as NotificationsBar } from "./NotificationsBar";
|
|
11
|
+
export { default as Radio } from "./Radio";
|
|
11
12
|
export { default as RadioGroup } from "./RadioGroup";
|
|
12
13
|
export { default as Search } from "./Search";
|
|
13
14
|
export { default as Sellect } from "./Sellect";
|