@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";
|
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 = {
|
|
@@ -153,8 +153,8 @@ type RadioProps = {
|
|
|
153
153
|
type RadioGroupProps = HTMLAttributes<HTMLDivElement> & {
|
|
154
154
|
display: "row" | "column";
|
|
155
155
|
options: RadioProps[];
|
|
156
|
-
value
|
|
157
|
-
onChange?: (value: string) => void;
|
|
156
|
+
value?: string;
|
|
157
|
+
onChange?: (value: string, index: number) => void;
|
|
158
158
|
wrap?: boolean;
|
|
159
159
|
title?: string;
|
|
160
160
|
description?: string;
|
|
@@ -280,4 +280,13 @@ type SummaryPanelProps = {
|
|
|
280
280
|
};
|
|
281
281
|
declare const SummaryPanel: (props: SummaryPanelProps) => JSX.Element;
|
|
282
282
|
|
|
283
|
-
|
|
283
|
+
type PaginationProps = LiHTMLAttributes<HTMLLIElement> & {
|
|
284
|
+
total: number;
|
|
285
|
+
limit: number;
|
|
286
|
+
offset?: number;
|
|
287
|
+
changePage?: (page: number) => void;
|
|
288
|
+
setOffset?: (offset: number) => void;
|
|
289
|
+
};
|
|
290
|
+
declare const Pagination: (props: PaginationProps) => JSX.Element;
|
|
291
|
+
|
|
292
|
+
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 };
|