@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.
Files changed (28) hide show
  1. package/dist/cjs/index.js +2 -2
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/lib/BalanceAlert/BalanceAlert.d.ts +8 -0
  4. package/dist/cjs/types/lib/BalanceAlert/BalanceAlert.stories.d.ts +8 -0
  5. package/dist/cjs/types/lib/BalanceAlert/index.d.ts +1 -0
  6. package/dist/cjs/types/lib/Checkbox/Checkbox.d.ts +5 -2
  7. package/dist/cjs/types/lib/LateralModal/TesterLateralModal.d.ts +1 -0
  8. package/dist/cjs/types/lib/ParcelSelector/ParcelSelector.d.ts +7 -0
  9. package/dist/cjs/types/lib/ParcelSelector/ParcelSelector.stories.d.ts +8 -0
  10. package/dist/cjs/types/lib/ParcelSelector/index.d.ts +1 -0
  11. package/dist/cjs/types/lib/ProgressBar/ProgressBar.d.ts +0 -1
  12. package/dist/cjs/types/lib/Table/Table.stories.d.ts +1 -0
  13. package/dist/cjs/types/lib/index.d.ts +2 -0
  14. package/dist/esm/index.js +2 -2
  15. package/dist/esm/index.js.map +1 -1
  16. package/dist/esm/types/lib/BalanceAlert/BalanceAlert.d.ts +8 -0
  17. package/dist/esm/types/lib/BalanceAlert/BalanceAlert.stories.d.ts +8 -0
  18. package/dist/esm/types/lib/BalanceAlert/index.d.ts +1 -0
  19. package/dist/esm/types/lib/Checkbox/Checkbox.d.ts +5 -2
  20. package/dist/esm/types/lib/LateralModal/TesterLateralModal.d.ts +1 -0
  21. package/dist/esm/types/lib/ParcelSelector/ParcelSelector.d.ts +7 -0
  22. package/dist/esm/types/lib/ParcelSelector/ParcelSelector.stories.d.ts +8 -0
  23. package/dist/esm/types/lib/ParcelSelector/index.d.ts +1 -0
  24. package/dist/esm/types/lib/ProgressBar/ProgressBar.d.ts +0 -1
  25. package/dist/esm/types/lib/Table/Table.stories.d.ts +1 -0
  26. package/dist/esm/types/lib/index.d.ts +2 -0
  27. package/dist/index.d.ts +19 -4
  28. package/package.json +1 -1
@@ -0,0 +1,8 @@
1
+ import "bootstrap/dist/css/bootstrap.min.css";
2
+ export type BalanceAlertProps = {
3
+ title: string;
4
+ message: string;
5
+ show?: boolean;
6
+ };
7
+ declare const BalanceAlert: (props: BalanceAlertProps) => JSX.Element;
8
+ export default BalanceAlert;
@@ -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
- onChange?: (value: boolean) => void;
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;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const TesterLateralModal: () => JSX.Element;
2
3
  export default TesterLateralModal;
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ export type ParcelSelectorProps = {
3
+ value: number;
4
+ onChange: (value: number) => void;
5
+ };
6
+ declare const ParcelSelector: React.FC<ParcelSelectorProps>;
7
+ export default ParcelSelector;
@@ -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";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export type ProgressBarProps = {
3
2
  percent: number;
4
3
  color?: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { TableProps } from "./Table";
2
3
  import { Story } from "@storybook/react";
3
4
  declare const TableStories: {
@@ -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
- onChange?: (value: boolean) => void;
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
- 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 };
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prosperitainova/mirage-ui",
3
- "version": "1.0.41",
3
+ "version": "1.0.43",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "publishConfig": {