@prosperitainova/mirage-ui 1.0.50 → 1.0.51

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.
@@ -1,16 +1,22 @@
1
- /// <reference types="react" />
2
- export type InputCurrencyProps = {
1
+ import { InputHTMLAttributes, TextareaHTMLAttributes } from "react";
2
+ import "../../../src/theme/fonts/ProximaNova.css";
3
+ export type InputCurrencyProps = InputHTMLAttributes<HTMLInputElement> & TextareaHTMLAttributes<HTMLTextAreaElement> & {
3
4
  value?: string | number | boolean | readonly string[] | undefined;
4
- onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
5
- placeholder?: string;
6
- name?: string;
7
5
  error?: string | boolean;
8
6
  success?: boolean;
9
7
  helper?: string;
10
8
  label?: string;
11
- disabled?: boolean;
9
+ newPassword?: boolean;
10
+ newPasswordLevel?: string;
11
+ search?: boolean;
12
+ mask?: string;
12
13
  required?: boolean;
14
+ disabled?: boolean;
13
15
  type?: string;
16
+ onChange?: (e: any) => void;
17
+ maxLength?: number;
18
+ fontSize?: "normal" | "large";
19
+ prefix?: string;
14
20
  };
15
21
  declare const InputCurrency: (props: InputCurrencyProps) => JSX.Element;
16
22
  export default InputCurrency;
@@ -1,9 +1,8 @@
1
- /// <reference types="react" />
2
1
  import { InputCurrencyProps } from "./InputCurrency";
3
2
  import { Story } from "@storybook/react";
4
- declare const InputCurrencyStories: {
3
+ declare const InputNumberStories: {
5
4
  title: string;
6
5
  component: (props: InputCurrencyProps) => JSX.Element;
7
6
  };
8
- export default InputCurrencyStories;
9
- export declare const Primary: Story<InputCurrencyProps>;
7
+ export default InputNumberStories;
8
+ export declare const Number: Story<InputCurrencyProps>;
@@ -1,10 +1,15 @@
1
- import { HTMLAttributes } from "react";
2
- import { RadioProps } from "../RadioGroup/Radio";
1
+ import React, { HTMLAttributes } from "react";
3
2
  import "../../../src/theme/fonts/ProximaNova.css";
4
3
  import "bootstrap/dist/css/bootstrap.min.css";
4
+ export type OptionsProps = {
5
+ title: string;
6
+ description: string;
7
+ value: string;
8
+ setIndex?: (event: React.MouseEvent<HTMLDivElement>) => void;
9
+ };
5
10
  export type RadioGroupProps = HTMLAttributes<HTMLDivElement> & {
6
11
  display: "row" | "column";
7
- options: RadioProps[];
12
+ options: OptionsProps[];
8
13
  value?: string;
9
14
  onChange?: (value: string, index: number) => void;
10
15
  wrap?: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ReturnButtonProps } from "./ReturnButton";
2
3
  import { Story } from "@storybook/react";
3
4
  declare const ButtonStories: {
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import React$1, { 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 = {
@@ -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$1.ChangeEvent<HTMLInputElement>) => void;
63
- onClick?: (event: React$1.MouseEvent<HTMLInputElement>) => void;
62
+ onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
63
+ onClick?: (event: React.MouseEvent<HTMLInputElement>) => void;
64
64
  };
65
65
  declare const Checkbox: ({ onChange, ...props }: CheckboxProps) => JSX.Element;
66
66
 
@@ -134,29 +134,24 @@ type NotificationsBarProps = {
134
134
  };
135
135
  declare const NotificationBar: (props: NotificationsBarProps) => JSX.Element;
136
136
 
137
- type RadioProps$1 = {
137
+ type RadioProps = {
138
138
  label?: string;
139
139
  disabled?: boolean;
140
140
  checked?: boolean;
141
141
  position?: "top" | "bottom" | "left" | "right";
142
142
  onChange?: (value: boolean) => void;
143
143
  };
144
- declare const Radio: ({ onChange, ...props }: RadioProps$1) => JSX.Element;
144
+ declare const Radio: ({ onChange, ...props }: RadioProps) => JSX.Element;
145
145
 
146
- type RadioProps = {
147
- label?: string;
148
- title?: string;
149
- disabled?: boolean;
150
- checked?: boolean;
151
- position?: "top" | "bottom" | "left" | "right";
146
+ type OptionsProps = {
147
+ title: string;
148
+ description: string;
152
149
  value: string;
153
- description?: string;
154
- onClick?: (value: string) => void;
155
- };
156
-
150
+ setIndex?: (event: React.MouseEvent<HTMLDivElement>) => void;
151
+ };
157
152
  type RadioGroupProps = HTMLAttributes<HTMLDivElement> & {
158
153
  display: "row" | "column";
159
- options: RadioProps[];
154
+ options: OptionsProps[];
160
155
  value?: string;
161
156
  onChange?: (value: string, index: number) => void;
162
157
  wrap?: boolean;
@@ -259,18 +254,23 @@ type TableProps = {
259
254
  };
260
255
  declare const Table: (props: TableProps) => JSX.Element;
261
256
 
262
- type InputCurrencyProps = {
257
+ type InputCurrencyProps = InputHTMLAttributes<HTMLInputElement> & TextareaHTMLAttributes<HTMLTextAreaElement> & {
263
258
  value?: string | number | boolean | readonly string[] | undefined;
264
- onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
265
- placeholder?: string;
266
- name?: string;
267
259
  error?: string | boolean;
268
260
  success?: boolean;
269
261
  helper?: string;
270
262
  label?: string;
271
- disabled?: boolean;
263
+ newPassword?: boolean;
264
+ newPasswordLevel?: string;
265
+ search?: boolean;
266
+ mask?: string;
272
267
  required?: boolean;
268
+ disabled?: boolean;
273
269
  type?: string;
270
+ onChange?: (e: any) => void;
271
+ maxLength?: number;
272
+ fontSize?: "normal" | "large";
273
+ prefix?: string;
274
274
  };
275
275
  declare const InputCurrency: (props: InputCurrencyProps) => JSX.Element;
276
276
 
@@ -308,7 +308,7 @@ type ParcelSelectorProps = {
308
308
  value: number;
309
309
  onChange: (value: number) => void;
310
310
  };
311
- declare const ParcelSelector: React$1.FC<ParcelSelectorProps>;
311
+ declare const ParcelSelector: React.FC<ParcelSelectorProps>;
312
312
 
313
313
  type DropContainerProps = {
314
314
  open?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prosperitainova/mirage-ui",
3
- "version": "1.0.50",
3
+ "version": "1.0.51",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -9,9 +9,10 @@
9
9
  "dependencies": {
10
10
  "@fortawesome/free-regular-svg-icons": "^6.2.1",
11
11
  "bootstrap": "^5.2.3",
12
+ "react-currency-input": "^1.3.6",
12
13
  "react-dropzone": "^14.2.3",
13
14
  "react-input-mask": "^2.0.4",
14
- "react-number-format": "^5.1.3",
15
+ "react-number-format": "4.7.3",
15
16
  "react-select": "^5.7.0",
16
17
  "typescript": "^4.9.4"
17
18
  },