@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.
@@ -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: string;
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,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "../../../src/theme/fonts/ProximaNova.css";
3
2
  export type MenuItem = {
4
3
  icon: 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: string;
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
- 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, SummaryPanel, TabMenu, Table, Toast, Toggle };
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prosperitainova/mirage-ui",
3
- "version": "1.0.33",
3
+ "version": "1.0.34",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "publishConfig": {