@prosperitainova/mirage-ui 1.0.29 → 1.0.30
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/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 +1 -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/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 +1 -0
- package/dist/index.d.ts +16 -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>;
|
|
@@ -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";
|
package/dist/index.d.ts
CHANGED
|
@@ -29,6 +29,11 @@ type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
|
29
29
|
};
|
|
30
30
|
declare const Button: ({ onClick, ...props }: ButtonProps) => JSX.Element;
|
|
31
31
|
|
|
32
|
+
type ReturnButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
33
|
+
label: string;
|
|
34
|
+
};
|
|
35
|
+
declare const ReturnButton: (props: ReturnButtonProps) => JSX.Element;
|
|
36
|
+
|
|
32
37
|
type DropdownOptions = {
|
|
33
38
|
value: string;
|
|
34
39
|
label: string;
|
|
@@ -135,11 +140,13 @@ type RadioProps$1 = {
|
|
|
135
140
|
declare const Radio: ({ onChange, ...props }: RadioProps$1) => JSX.Element;
|
|
136
141
|
|
|
137
142
|
type RadioProps = {
|
|
138
|
-
label
|
|
143
|
+
label?: string;
|
|
144
|
+
title?: string;
|
|
139
145
|
disabled?: boolean;
|
|
140
146
|
checked?: boolean;
|
|
141
147
|
position?: "top" | "bottom" | "left" | "right";
|
|
142
148
|
value: string;
|
|
149
|
+
description?: string;
|
|
143
150
|
onClick?: (value: string) => void;
|
|
144
151
|
};
|
|
145
152
|
|
|
@@ -148,8 +155,12 @@ type RadioGroupProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
148
155
|
options: RadioProps[];
|
|
149
156
|
value: string;
|
|
150
157
|
onChange?: (value: string) => void;
|
|
158
|
+
wrap?: boolean;
|
|
159
|
+
title?: string;
|
|
160
|
+
description?: string;
|
|
161
|
+
active?: boolean;
|
|
151
162
|
};
|
|
152
|
-
declare const RadioGroup: (
|
|
163
|
+
declare const RadioGroup: (props: RadioGroupProps) => JSX.Element;
|
|
153
164
|
|
|
154
165
|
type ResultsProps = {
|
|
155
166
|
value: string;
|
|
@@ -233,7 +244,8 @@ declare function InputToken({ inputsNumber: numberOfInputs }: InputTokenProps):
|
|
|
233
244
|
type TableColumn<T = any> = {
|
|
234
245
|
label: string;
|
|
235
246
|
key: string;
|
|
236
|
-
|
|
247
|
+
renderColumn?: (data: T, index: number) => JSX.Element;
|
|
248
|
+
renderData?: (data: T, index: number) => JSX.Element;
|
|
237
249
|
};
|
|
238
250
|
type TableProps = {
|
|
239
251
|
columns: TableColumn<any>[];
|
|
@@ -254,4 +266,4 @@ type InputCurrencyProps = {
|
|
|
254
266
|
};
|
|
255
267
|
declare const InputCurrency: (props: InputCurrencyProps) => JSX.Element;
|
|
256
268
|
|
|
257
|
-
export { Breadcrumb, Button, ButtonDropdown, Checkbox, CustomSelect, Dropzone, Input, InputCurrency, InputToken, InteractiveModal, lateralModal as LateralModal, MenuDropdown as Menudropdown, NotificationBar as NotificationsBar, ProgressBar, Radio, RadioGroup, Search, SideBar, Spacer, TabMenu, Table, Toast, Toggle };
|
|
269
|
+
export { Breadcrumb, Button, ButtonDropdown, Checkbox, CustomSelect, Dropzone, Input, InputCurrency, InputToken, InteractiveModal, lateralModal as LateralModal, MenuDropdown as Menudropdown, NotificationBar as NotificationsBar, ProgressBar, Radio, RadioGroup, ReturnButton, Search, SideBar, Spacer, TabMenu, Table, Toast, Toggle };
|