@prosperitainova/mirage-ui 1.0.33 → 1.0.34
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/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/SideBar/SideBar.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/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/SideBar/SideBar.d.ts +0 -1
- package/dist/esm/types/lib/index.d.ts +1 -0
- package/dist/index.d.ts +13 -4
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -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";
|