@prosperitainova/mirage-ui 1.0.29 → 1.0.31
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 +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/lib/LateralModal/TesterLateralModal.d.ts +0 -1
- package/dist/cjs/types/lib/RadioGroup/Radio.d.ts +3 -2
- package/dist/cjs/types/lib/RadioGroup/RadioGroup.d.ts +5 -1
- package/dist/cjs/types/lib/RadioGroup/RadioGroup.stories.d.ts +1 -2
- package/dist/cjs/types/lib/ReturnButton/ReturnButton.d.ts +6 -0
- package/dist/cjs/types/lib/ReturnButton/ReturnButton.stories.d.ts +8 -0
- package/dist/cjs/types/lib/ReturnButton/index.d.ts +1 -0
- package/dist/cjs/types/lib/SummaryPanel/SummaryPanel.d.ts +16 -0
- package/dist/cjs/types/lib/SummaryPanel/SummaryPanel.stories.d.ts +8 -0
- package/dist/cjs/types/lib/SummaryPanel/index.d.ts +1 -0
- package/dist/cjs/types/lib/Table/Table.d.ts +2 -1
- package/dist/cjs/types/lib/Table/Table.stories.d.ts +0 -1
- package/dist/cjs/types/lib/index.d.ts +2 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/lib/LateralModal/TesterLateralModal.d.ts +0 -1
- package/dist/esm/types/lib/RadioGroup/Radio.d.ts +3 -2
- package/dist/esm/types/lib/RadioGroup/RadioGroup.d.ts +5 -1
- package/dist/esm/types/lib/RadioGroup/RadioGroup.stories.d.ts +1 -2
- package/dist/esm/types/lib/ReturnButton/ReturnButton.d.ts +6 -0
- package/dist/esm/types/lib/ReturnButton/ReturnButton.stories.d.ts +8 -0
- package/dist/esm/types/lib/ReturnButton/index.d.ts +1 -0
- package/dist/esm/types/lib/SummaryPanel/SummaryPanel.d.ts +16 -0
- package/dist/esm/types/lib/SummaryPanel/SummaryPanel.stories.d.ts +8 -0
- package/dist/esm/types/lib/SummaryPanel/index.d.ts +1 -0
- package/dist/esm/types/lib/Table/Table.d.ts +2 -1
- package/dist/esm/types/lib/Table/Table.stories.d.ts +0 -1
- package/dist/esm/types/lib/index.d.ts +2 -0
- package/dist/index.d.ts +30 -4
- package/package.json +1 -1
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export type RadioProps = {
|
|
3
|
-
label
|
|
2
|
+
label?: string;
|
|
3
|
+
title?: string;
|
|
4
4
|
disabled?: boolean;
|
|
5
5
|
checked?: boolean;
|
|
6
6
|
position?: "top" | "bottom" | "left" | "right";
|
|
7
7
|
value: string;
|
|
8
|
+
description?: string;
|
|
8
9
|
onClick?: (value: string) => void;
|
|
9
10
|
};
|
|
10
11
|
declare const Radio: ({ onClick, ...props }: RadioProps) => JSX.Element;
|
|
@@ -7,6 +7,10 @@ export type RadioGroupProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
7
7
|
options: RadioProps[];
|
|
8
8
|
value: string;
|
|
9
9
|
onChange?: (value: string) => void;
|
|
10
|
+
wrap?: boolean;
|
|
11
|
+
title?: string;
|
|
12
|
+
description?: string;
|
|
13
|
+
active?: boolean;
|
|
10
14
|
};
|
|
11
|
-
declare const RadioGroup: (
|
|
15
|
+
declare const RadioGroup: (props: RadioGroupProps) => JSX.Element;
|
|
12
16
|
export default RadioGroup;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { Story } from "@storybook/react";
|
|
3
2
|
import { RadioGroupProps } from "./RadioGroup";
|
|
4
3
|
declare const RadioGroupStories: {
|
|
5
4
|
title: string;
|
|
6
|
-
component: (
|
|
5
|
+
component: (props: RadioGroupProps) => JSX.Element;
|
|
7
6
|
};
|
|
8
7
|
export default RadioGroupStories;
|
|
9
8
|
export declare const Group: Story<RadioGroupProps>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReturnButtonProps } from "./ReturnButton";
|
|
2
|
+
import { Story } from "@storybook/react";
|
|
3
|
+
declare const ButtonStories: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: (props: ReturnButtonProps) => JSX.Element;
|
|
6
|
+
};
|
|
7
|
+
export default ButtonStories;
|
|
8
|
+
export declare const Main: Story<ReturnButtonProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./ReturnButton";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import "bootstrap/dist/css/bootstrap.min.css";
|
|
3
|
+
type panelProps = {
|
|
4
|
+
label?: string;
|
|
5
|
+
balance?: string;
|
|
6
|
+
currency?: string;
|
|
7
|
+
value?: string;
|
|
8
|
+
toggleBalance?: boolean;
|
|
9
|
+
render?: () => JSX.Element;
|
|
10
|
+
secondaryRender?: () => JSX.Element;
|
|
11
|
+
};
|
|
12
|
+
export type SummaryPanelProps = {
|
|
13
|
+
panel: panelProps[];
|
|
14
|
+
};
|
|
15
|
+
declare const SummaryPanel: (props: SummaryPanelProps) => JSX.Element;
|
|
16
|
+
export default SummaryPanel;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Story } from "@storybook/react";
|
|
2
|
+
import { SummaryPanelProps } from "./SummaryPanel";
|
|
3
|
+
declare const TabMenuStories: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: (props: SummaryPanelProps) => JSX.Element;
|
|
6
|
+
};
|
|
7
|
+
export default TabMenuStories;
|
|
8
|
+
export declare const primary: Story<SummaryPanelProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./SummaryPanel";
|
|
@@ -3,7 +3,8 @@ import "../../../src/theme/fonts/ProximaNova.css";
|
|
|
3
3
|
export type TableColumn<T = any> = {
|
|
4
4
|
label: string;
|
|
5
5
|
key: string;
|
|
6
|
-
|
|
6
|
+
renderColumn?: (data: T, index: number) => JSX.Element;
|
|
7
|
+
renderData?: (data: T, index: number) => JSX.Element;
|
|
7
8
|
};
|
|
8
9
|
export type TableProps = {
|
|
9
10
|
columns: TableColumn<any>[];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { default as Breadcrumb } from "./Breadcrumb";
|
|
2
2
|
export { default as Button } from "./Button";
|
|
3
|
+
export { default as ReturnButton } from "./ReturnButton";
|
|
3
4
|
export { default as ButtonDropdown } from "./ButtonDropdown";
|
|
4
5
|
export { default as Checkbox } from "./Checkbox";
|
|
5
6
|
export { default as Dropzone } from "./Dropzone";
|
|
@@ -21,3 +22,4 @@ export { default as ProgressBar } from "./ProgressBar";
|
|
|
21
22
|
export { default as InputToken } from "./InputToken";
|
|
22
23
|
export { default as Table } from "./Table";
|
|
23
24
|
export { default as InputCurrency } from "./InputCurrency";
|
|
25
|
+
export { default as SummaryPanel } from "./SummaryPanel";
|