@prosperitainova/mirage-ui 1.0.33 → 1.0.35
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/ButtonMoreDetails/ButtonMoreDetails.d.ts +19 -0
- package/dist/cjs/types/lib/Pagination/Pagination.d.ts +10 -0
- package/dist/cjs/types/lib/Pagination/index.d.ts +1 -0
- package/dist/cjs/types/lib/RadioGroup/RadioGroup.d.ts +2 -2
- package/dist/cjs/types/lib/ReturnButton/ReturnButton.d.ts +1 -0
- package/dist/cjs/types/lib/ReturnButton/ReturnButton.stories.d.ts +1 -0
- package/dist/cjs/types/lib/SideBar/SideBar.d.ts +1 -1
- package/dist/cjs/types/lib/SummaryPanel/SummaryPanel.stories.d.ts +1 -0
- 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/ButtonMoreDetails/ButtonMoreDetails.d.ts +19 -0
- package/dist/esm/types/lib/Pagination/Pagination.d.ts +10 -0
- package/dist/esm/types/lib/Pagination/index.d.ts +1 -0
- package/dist/esm/types/lib/RadioGroup/RadioGroup.d.ts +2 -2
- package/dist/esm/types/lib/ReturnButton/ReturnButton.d.ts +1 -0
- package/dist/esm/types/lib/ReturnButton/ReturnButton.stories.d.ts +1 -0
- package/dist/esm/types/lib/SideBar/SideBar.d.ts +1 -1
- package/dist/esm/types/lib/SummaryPanel/SummaryPanel.stories.d.ts +1 -0
- package/dist/esm/types/lib/index.d.ts +1 -0
- package/dist/index.d.ts +15 -4
- package/package.json +1 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ButtonHTMLAttributes } from "react";
|
|
2
|
+
type DropContainerProps = {
|
|
3
|
+
open?: boolean;
|
|
4
|
+
};
|
|
5
|
+
export type DropdownOptions = {
|
|
6
|
+
value: string;
|
|
7
|
+
label: string;
|
|
8
|
+
color?: string;
|
|
9
|
+
icon?: string;
|
|
10
|
+
onClick?: (value: string) => void;
|
|
11
|
+
};
|
|
12
|
+
export type ButtonMoreDetailsProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
13
|
+
onClick?: () => void;
|
|
14
|
+
icon?: string;
|
|
15
|
+
value?: string;
|
|
16
|
+
options?: DropdownOptions[];
|
|
17
|
+
};
|
|
18
|
+
declare const ButtonMoreDetails: (props: ButtonMoreDetailsProps & DropContainerProps) => JSX.Element;
|
|
19
|
+
export default ButtonMoreDetails;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { LiHTMLAttributes } from "react";
|
|
2
|
+
type PaginationProps = LiHTMLAttributes<HTMLLIElement> & {
|
|
3
|
+
total: number;
|
|
4
|
+
limit: number;
|
|
5
|
+
offset?: number;
|
|
6
|
+
changePage?: (page: number) => void;
|
|
7
|
+
setOffset?: (offset: number) => void;
|
|
8
|
+
};
|
|
9
|
+
declare const Pagination: (props: PaginationProps) => JSX.Element;
|
|
10
|
+
export default Pagination;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./Pagination";
|
|
@@ -5,8 +5,8 @@ import "bootstrap/dist/css/bootstrap.min.css";
|
|
|
5
5
|
export type RadioGroupProps = HTMLAttributes<HTMLDivElement> & {
|
|
6
6
|
display: "row" | "column";
|
|
7
7
|
options: RadioProps[];
|
|
8
|
-
value
|
|
9
|
-
onChange?: (value: string) => void;
|
|
8
|
+
value?: string;
|
|
9
|
+
onChange?: (value: string, index: number) => void;
|
|
10
10
|
wrap?: boolean;
|
|
11
11
|
title?: string;
|
|
12
12
|
description?: string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ButtonHTMLAttributes } from "react";
|
|
2
2
|
export type ReturnButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
3
3
|
label: string;
|
|
4
|
+
onClick?: () => void;
|
|
4
5
|
};
|
|
5
6
|
declare const ReturnButton: (props: ReturnButtonProps) => JSX.Element;
|
|
6
7
|
export default ReturnButton;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import "../../../src/theme/fonts/ProximaNova.css";
|
|
3
2
|
export type MenuItem = {
|
|
4
3
|
icon: string;
|
|
@@ -10,6 +9,7 @@ export type SideBarProps = {
|
|
|
10
9
|
footer?: MenuItem[];
|
|
11
10
|
logo: string;
|
|
12
11
|
active?: boolean;
|
|
12
|
+
menuActiveIndex?: number;
|
|
13
13
|
};
|
|
14
14
|
declare const SideBar: (props: SideBarProps) => JSX.Element;
|
|
15
15
|
export default SideBar;
|
|
@@ -23,3 +23,4 @@ export { default as InputToken } from "./InputToken";
|
|
|
23
23
|
export { default as Table } from "./Table";
|
|
24
24
|
export { default as InputCurrency } from "./InputCurrency";
|
|
25
25
|
export { default as SummaryPanel } from "./SummaryPanel";
|
|
26
|
+
export { default as Pagination } from "./Pagination";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ButtonHTMLAttributes, InputHTMLAttributes, TextareaHTMLAttributes, HTMLAttributes } from 'react';
|
|
2
|
+
import { ButtonHTMLAttributes, InputHTMLAttributes, TextareaHTMLAttributes, HTMLAttributes, LiHTMLAttributes } from 'react';
|
|
3
3
|
import { Props } from 'react-select';
|
|
4
4
|
|
|
5
5
|
type ItemsProps = {
|
|
@@ -31,6 +31,7 @@ declare const Button: ({ onClick, ...props }: ButtonProps) => JSX.Element;
|
|
|
31
31
|
|
|
32
32
|
type ReturnButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
33
33
|
label: string;
|
|
34
|
+
onClick?: () => void;
|
|
34
35
|
};
|
|
35
36
|
declare const ReturnButton: (props: ReturnButtonProps) => JSX.Element;
|
|
36
37
|
|
|
@@ -153,8 +154,8 @@ type RadioProps = {
|
|
|
153
154
|
type RadioGroupProps = HTMLAttributes<HTMLDivElement> & {
|
|
154
155
|
display: "row" | "column";
|
|
155
156
|
options: RadioProps[];
|
|
156
|
-
value
|
|
157
|
-
onChange?: (value: string) => void;
|
|
157
|
+
value?: string;
|
|
158
|
+
onChange?: (value: string, index: number) => void;
|
|
158
159
|
wrap?: boolean;
|
|
159
160
|
title?: string;
|
|
160
161
|
description?: string;
|
|
@@ -191,6 +192,7 @@ type SideBarProps = {
|
|
|
191
192
|
footer?: MenuItem[];
|
|
192
193
|
logo: string;
|
|
193
194
|
active?: boolean;
|
|
195
|
+
menuActiveIndex?: number;
|
|
194
196
|
};
|
|
195
197
|
declare const SideBar: (props: SideBarProps) => JSX.Element;
|
|
196
198
|
|
|
@@ -280,4 +282,13 @@ type SummaryPanelProps = {
|
|
|
280
282
|
};
|
|
281
283
|
declare const SummaryPanel: (props: SummaryPanelProps) => JSX.Element;
|
|
282
284
|
|
|
283
|
-
|
|
285
|
+
type PaginationProps = LiHTMLAttributes<HTMLLIElement> & {
|
|
286
|
+
total: number;
|
|
287
|
+
limit: number;
|
|
288
|
+
offset?: number;
|
|
289
|
+
changePage?: (page: number) => void;
|
|
290
|
+
setOffset?: (offset: number) => void;
|
|
291
|
+
};
|
|
292
|
+
declare const Pagination: (props: PaginationProps) => JSX.Element;
|
|
293
|
+
|
|
294
|
+
export { Breadcrumb, Button, ButtonDropdown, Checkbox, CustomSelect, Dropzone, Input, InputCurrency, InputToken, InteractiveModal, lateralModal as LateralModal, MenuDropdown as Menudropdown, NotificationBar as NotificationsBar, Pagination, ProgressBar, Radio, RadioGroup, ReturnButton, Search, SideBar, Spacer, SummaryPanel, TabMenu, Table, Toast, Toggle };
|