@prosperitainova/mirage-ui 1.0.41 → 1.0.43
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/BalanceAlert/BalanceAlert.d.ts +8 -0
- package/dist/cjs/types/lib/BalanceAlert/BalanceAlert.stories.d.ts +8 -0
- package/dist/cjs/types/lib/BalanceAlert/index.d.ts +1 -0
- package/dist/cjs/types/lib/Checkbox/Checkbox.d.ts +5 -2
- package/dist/cjs/types/lib/LateralModal/TesterLateralModal.d.ts +1 -0
- package/dist/cjs/types/lib/ParcelSelector/ParcelSelector.d.ts +7 -0
- package/dist/cjs/types/lib/ParcelSelector/ParcelSelector.stories.d.ts +8 -0
- package/dist/cjs/types/lib/ParcelSelector/index.d.ts +1 -0
- package/dist/cjs/types/lib/ProgressBar/ProgressBar.d.ts +0 -1
- package/dist/cjs/types/lib/Table/Table.stories.d.ts +1 -0
- package/dist/cjs/types/lib/index.d.ts +2 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/lib/BalanceAlert/BalanceAlert.d.ts +8 -0
- package/dist/esm/types/lib/BalanceAlert/BalanceAlert.stories.d.ts +8 -0
- package/dist/esm/types/lib/BalanceAlert/index.d.ts +1 -0
- package/dist/esm/types/lib/Checkbox/Checkbox.d.ts +5 -2
- package/dist/esm/types/lib/LateralModal/TesterLateralModal.d.ts +1 -0
- package/dist/esm/types/lib/ParcelSelector/ParcelSelector.d.ts +7 -0
- package/dist/esm/types/lib/ParcelSelector/ParcelSelector.stories.d.ts +8 -0
- package/dist/esm/types/lib/ParcelSelector/index.d.ts +1 -0
- package/dist/esm/types/lib/ProgressBar/ProgressBar.d.ts +0 -1
- package/dist/esm/types/lib/Table/Table.stories.d.ts +1 -0
- package/dist/esm/types/lib/index.d.ts +2 -0
- package/dist/index.d.ts +19 -4
- package/package.json +1 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BalanceAlertProps } from "./BalanceAlert";
|
|
2
|
+
import { Story } from "@storybook/react";
|
|
3
|
+
declare const CheckStories: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: (props: BalanceAlertProps) => JSX.Element;
|
|
6
|
+
};
|
|
7
|
+
export default CheckStories;
|
|
8
|
+
export declare const BalanceAlertStory: Story<BalanceAlertProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./BalanceAlert";
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
+
import React, { InputHTMLAttributes } from "react";
|
|
1
2
|
import "../../../src/theme/fonts/ProximaNova.css";
|
|
2
|
-
export type CheckboxProps = {
|
|
3
|
+
export type CheckboxProps = InputHTMLAttributes<HTMLInputElement> & {
|
|
3
4
|
label?: string;
|
|
4
5
|
disabled?: boolean;
|
|
5
6
|
checked?: boolean;
|
|
6
7
|
position?: "top" | "bottom" | "left" | "right";
|
|
7
|
-
|
|
8
|
+
name?: string;
|
|
9
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
10
|
+
onClick?: (event: React.MouseEvent<HTMLInputElement>) => void;
|
|
8
11
|
};
|
|
9
12
|
declare const Checkbox: ({ onChange, ...props }: CheckboxProps) => JSX.Element;
|
|
10
13
|
export default Checkbox;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Story } from "@storybook/react";
|
|
2
|
+
import { ParcelSelectorProps } from "./ParcelSelector";
|
|
3
|
+
declare const ParcelSelectorStories: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: import("react").FC<ParcelSelectorProps>;
|
|
6
|
+
};
|
|
7
|
+
export default ParcelSelectorStories;
|
|
8
|
+
export declare const Primary: Story<ParcelSelectorProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./ParcelSelector";
|
|
@@ -24,3 +24,5 @@ export { default as Table } from "./Table";
|
|
|
24
24
|
export { default as InputCurrency } from "./InputCurrency";
|
|
25
25
|
export { default as SummaryPanel } from "./SummaryPanel";
|
|
26
26
|
export { default as Pagination } from "./Pagination";
|
|
27
|
+
export { default as BalanceAlert } from "./BalanceAlert";
|
|
28
|
+
export { default as ParcelSelector } from "./ParcelSelector";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ButtonHTMLAttributes, InputHTMLAttributes, TextareaHTMLAttributes, HTMLAttributes, LiHTMLAttributes } from 'react';
|
|
2
|
+
import React, { ButtonHTMLAttributes, InputHTMLAttributes, TextareaHTMLAttributes, HTMLAttributes, LiHTMLAttributes } from 'react';
|
|
3
3
|
import { Props } from 'react-select';
|
|
4
4
|
|
|
5
5
|
type ItemsProps = {
|
|
@@ -53,12 +53,14 @@ type ButtonDropdownProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
|
53
53
|
};
|
|
54
54
|
declare const ButtonDropdown: (props: ButtonDropdownProps) => JSX.Element;
|
|
55
55
|
|
|
56
|
-
type CheckboxProps = {
|
|
56
|
+
type CheckboxProps = InputHTMLAttributes<HTMLInputElement> & {
|
|
57
57
|
label?: string;
|
|
58
58
|
disabled?: boolean;
|
|
59
59
|
checked?: boolean;
|
|
60
60
|
position?: "top" | "bottom" | "left" | "right";
|
|
61
|
-
|
|
61
|
+
name?: string;
|
|
62
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
63
|
+
onClick?: (event: React.MouseEvent<HTMLInputElement>) => void;
|
|
62
64
|
};
|
|
63
65
|
declare const Checkbox: ({ onChange, ...props }: CheckboxProps) => JSX.Element;
|
|
64
66
|
|
|
@@ -292,4 +294,17 @@ type PaginationProps = LiHTMLAttributes<HTMLLIElement> & {
|
|
|
292
294
|
};
|
|
293
295
|
declare const Pagination: (props: PaginationProps) => JSX.Element;
|
|
294
296
|
|
|
295
|
-
|
|
297
|
+
type BalanceAlertProps = {
|
|
298
|
+
title: string;
|
|
299
|
+
message: string;
|
|
300
|
+
show?: boolean;
|
|
301
|
+
};
|
|
302
|
+
declare const BalanceAlert: (props: BalanceAlertProps) => JSX.Element;
|
|
303
|
+
|
|
304
|
+
type ParcelSelectorProps = {
|
|
305
|
+
value: number;
|
|
306
|
+
onChange: (value: number) => void;
|
|
307
|
+
};
|
|
308
|
+
declare const ParcelSelector: React.FC<ParcelSelectorProps>;
|
|
309
|
+
|
|
310
|
+
export { BalanceAlert, Breadcrumb, Button, ButtonDropdown, Checkbox, CustomSelect, Dropzone, Input, InputCurrency, InputToken, InteractiveModal, lateralModal as LateralModal, MenuDropdown as Menudropdown, NotificationBar as NotificationsBar, Pagination, ParcelSelector, ProgressBar, Radio, RadioGroup, ReturnButton, Search, SideBar, Spacer, SummaryPanel, TabMenu, Table, Toast, Toggle };
|