@prosperitainova/mirage-ui 1.0.43 → 1.0.46

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.
@@ -14,6 +14,7 @@ export type ButtonMoreDetailsProps = ButtonHTMLAttributes<HTMLButtonElement> & {
14
14
  icon?: string;
15
15
  value?: string;
16
16
  options?: DropdownOptions[];
17
+ open?: boolean;
17
18
  };
18
19
  declare const ButtonMoreDetails: (props: ButtonMoreDetailsProps & DropContainerProps) => JSX.Element;
19
20
  export default ButtonMoreDetails;
@@ -0,0 +1,17 @@
1
+ import React from "react";
2
+ import { ButtonMoreDetailsProps } from "./ButtonMoreDetails";
3
+ import { Story } from "@storybook/react";
4
+ declare const ButtonMoreDetailsStories: {
5
+ title: string;
6
+ component: (props: React.ButtonHTMLAttributes<HTMLButtonElement> & {
7
+ onClick?: (() => void) | undefined;
8
+ icon?: string | undefined;
9
+ value?: string | undefined;
10
+ options?: import("./ButtonMoreDetails").DropdownOptions[] | undefined;
11
+ open?: boolean | undefined;
12
+ } & {
13
+ open?: boolean | undefined;
14
+ }) => JSX.Element;
15
+ };
16
+ export default ButtonMoreDetailsStories;
17
+ export declare const ButtonMoreDetailsStory: Story<ButtonMoreDetailsProps>;
@@ -0,0 +1 @@
1
+ export { default } from "./ButtonMoreDetails";
@@ -1,7 +1,9 @@
1
1
  /// <reference types="react" />
2
- import "../../../src/theme/fonts/ProximaNova.css";
3
2
  export type InputCurrencyProps = {
4
3
  value?: string | number | boolean | readonly string[] | undefined;
4
+ onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
5
+ placeholder?: string;
6
+ name?: string;
5
7
  error?: string | boolean;
6
8
  success?: boolean;
7
9
  helper?: string;
@@ -26,3 +26,4 @@ export { default as SummaryPanel } from "./SummaryPanel";
26
26
  export { default as Pagination } from "./Pagination";
27
27
  export { default as BalanceAlert } from "./BalanceAlert";
28
28
  export { default as ParcelSelector } from "./ParcelSelector";
29
+ export { default as ButtonMoreDetails } from "./ButtonMoreDetails";
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import React, { ButtonHTMLAttributes, InputHTMLAttributes, TextareaHTMLAttributes, HTMLAttributes, LiHTMLAttributes } from 'react';
2
+ import React$1, { ButtonHTMLAttributes, InputHTMLAttributes, TextareaHTMLAttributes, HTMLAttributes, LiHTMLAttributes } from 'react';
3
3
  import { Props } from 'react-select';
4
4
 
5
5
  type ItemsProps = {
@@ -35,7 +35,7 @@ type ReturnButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
35
35
  };
36
36
  declare const ReturnButton: (props: ReturnButtonProps) => JSX.Element;
37
37
 
38
- type DropdownOptions = {
38
+ type DropdownOptions$1 = {
39
39
  value: string;
40
40
  label: string;
41
41
  color?: string;
@@ -49,7 +49,7 @@ type ButtonDropdownProps = ButtonHTMLAttributes<HTMLButtonElement> & {
49
49
  value?: string;
50
50
  type?: string;
51
51
  double?: boolean;
52
- options?: DropdownOptions[];
52
+ options?: DropdownOptions$1[];
53
53
  };
54
54
  declare const ButtonDropdown: (props: ButtonDropdownProps) => JSX.Element;
55
55
 
@@ -59,8 +59,8 @@ type CheckboxProps = InputHTMLAttributes<HTMLInputElement> & {
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
+ onChange?: (event: React$1.ChangeEvent<HTMLInputElement>) => void;
63
+ onClick?: (event: React$1.MouseEvent<HTMLInputElement>) => void;
64
64
  };
65
65
  declare const Checkbox: ({ onChange, ...props }: CheckboxProps) => JSX.Element;
66
66
 
@@ -261,6 +261,9 @@ declare const Table: (props: TableProps) => JSX.Element;
261
261
 
262
262
  type InputCurrencyProps = {
263
263
  value?: string | number | boolean | readonly string[] | undefined;
264
+ onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
265
+ placeholder?: string;
266
+ name?: string;
264
267
  error?: string | boolean;
265
268
  success?: boolean;
266
269
  helper?: string;
@@ -305,6 +308,25 @@ type ParcelSelectorProps = {
305
308
  value: number;
306
309
  onChange: (value: number) => void;
307
310
  };
308
- declare const ParcelSelector: React.FC<ParcelSelectorProps>;
311
+ declare const ParcelSelector: React$1.FC<ParcelSelectorProps>;
312
+
313
+ type DropContainerProps = {
314
+ open?: boolean;
315
+ };
316
+ type DropdownOptions = {
317
+ value: string;
318
+ label: string;
319
+ color?: string;
320
+ icon?: string;
321
+ onClick?: (value: string) => void;
322
+ };
323
+ type ButtonMoreDetailsProps = ButtonHTMLAttributes<HTMLButtonElement> & {
324
+ onClick?: () => void;
325
+ icon?: string;
326
+ value?: string;
327
+ options?: DropdownOptions[];
328
+ open?: boolean;
329
+ };
330
+ declare const ButtonMoreDetails: (props: ButtonMoreDetailsProps & DropContainerProps) => JSX.Element;
309
331
 
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 };
332
+ export { BalanceAlert, Breadcrumb, Button, ButtonDropdown, ButtonMoreDetails, 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.43",
3
+ "version": "1.0.46",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "publishConfig": {