@prosperitainova/mirage-ui 1.1.15 → 1.1.17
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 +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/lib/Dropzone/Dropzone.d.ts +5 -3
- package/dist/cjs/types/lib/Input/Input.d.ts +2 -0
- package/dist/cjs/types/lib/RadioGroup/Radio.d.ts +0 -1
- package/dist/cjs/types/lib/RadioGroup/RadioGroup.d.ts +1 -0
- package/dist/cjs/types/lib/RadioGroup/RadioGroup.stories.d.ts +0 -1
- package/dist/cjs/types/lib/SideBar/SideBar.d.ts +0 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/lib/Dropzone/Dropzone.d.ts +5 -3
- package/dist/esm/types/lib/Input/Input.d.ts +2 -0
- package/dist/esm/types/lib/RadioGroup/Radio.d.ts +0 -1
- package/dist/esm/types/lib/RadioGroup/RadioGroup.d.ts +1 -0
- package/dist/esm/types/lib/RadioGroup/RadioGroup.stories.d.ts +0 -1
- package/dist/esm/types/lib/SideBar/SideBar.d.ts +0 -1
- package/dist/index.d.ts +8 -2
- package/package.json +103 -103
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import { DropzoneProps as DropzoneRootProps } from "react-dropzone";
|
|
2
2
|
import "../../../src/theme/fonts/ProximaNova.css";
|
|
3
|
-
|
|
3
|
+
interface DropzoneRootPropsLite extends Omit<DropzoneRootProps, "onDrop"> {
|
|
4
|
+
}
|
|
5
|
+
export interface DropzoneProps extends DropzoneRootPropsLite {
|
|
4
6
|
error?: string;
|
|
5
7
|
helper?: string;
|
|
6
8
|
onFilesChanged?: (files: File[]) => void;
|
|
7
|
-
}
|
|
9
|
+
}
|
|
8
10
|
declare const Dropzone: (props: DropzoneProps) => JSX.Element;
|
|
9
11
|
export default Dropzone;
|
|
@@ -13,6 +13,8 @@ export type InputProps = InputHTMLAttributes<HTMLInputElement> & TextareaHTMLAtt
|
|
|
13
13
|
maskChar?: string | null;
|
|
14
14
|
ref?: any;
|
|
15
15
|
onFocus?: boolean;
|
|
16
|
+
min?: string;
|
|
17
|
+
max?: string;
|
|
16
18
|
};
|
|
17
19
|
declare const Input: (props: InputProps) => JSX.Element;
|
|
18
20
|
export default Input;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React, { ButtonHTMLAttributes, InputHTMLAttributes, TextareaHTMLAttributes, HTMLAttributes, ChangeEvent, LiHTMLAttributes } from 'react';
|
|
3
|
+
import { DropzoneProps as DropzoneProps$1 } from 'react-dropzone';
|
|
3
4
|
import { Props } from 'react-select';
|
|
4
5
|
|
|
5
6
|
type ItemsProps = {
|
|
@@ -64,11 +65,13 @@ type CheckboxProps = InputHTMLAttributes<HTMLInputElement> & {
|
|
|
64
65
|
};
|
|
65
66
|
declare const Checkbox: ({ onChange, ...props }: CheckboxProps) => JSX.Element;
|
|
66
67
|
|
|
67
|
-
|
|
68
|
+
interface DropzoneRootPropsLite extends Omit<DropzoneProps$1, "onDrop"> {
|
|
69
|
+
}
|
|
70
|
+
interface DropzoneProps extends DropzoneRootPropsLite {
|
|
68
71
|
error?: string;
|
|
69
72
|
helper?: string;
|
|
70
73
|
onFilesChanged?: (files: File[]) => void;
|
|
71
|
-
}
|
|
74
|
+
}
|
|
72
75
|
declare const Dropzone: (props: DropzoneProps) => JSX.Element;
|
|
73
76
|
|
|
74
77
|
type InputProps = InputHTMLAttributes<HTMLInputElement> & TextareaHTMLAttributes<HTMLTextAreaElement> & {
|
|
@@ -84,6 +87,8 @@ type InputProps = InputHTMLAttributes<HTMLInputElement> & TextareaHTMLAttributes
|
|
|
84
87
|
maskChar?: string | null;
|
|
85
88
|
ref?: any;
|
|
86
89
|
onFocus?: boolean;
|
|
90
|
+
min?: string;
|
|
91
|
+
max?: string;
|
|
87
92
|
};
|
|
88
93
|
declare const Input: (props: InputProps) => JSX.Element;
|
|
89
94
|
|
|
@@ -152,6 +157,7 @@ type OptionsProps = {
|
|
|
152
157
|
description: string;
|
|
153
158
|
value: string;
|
|
154
159
|
setIndex?: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
160
|
+
disabled?: boolean;
|
|
155
161
|
};
|
|
156
162
|
type RadioGroupProps = HTMLAttributes<HTMLDivElement> & {
|
|
157
163
|
display: "row" | "column";
|
package/package.json
CHANGED
|
@@ -1,107 +1,107 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
],
|
|
41
|
-
"rules": {
|
|
42
|
-
"import/no-anonymous-default-export": "off"
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
]
|
|
46
|
-
},
|
|
47
|
-
"browserslist": {
|
|
48
|
-
"production": [
|
|
49
|
-
">0.2%",
|
|
50
|
-
"not dead",
|
|
51
|
-
"not op_mini all"
|
|
2
|
+
"name": "@prosperitainova/mirage-ui",
|
|
3
|
+
"version": "1.1.17",
|
|
4
|
+
"private": false,
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"publishConfig": {
|
|
7
|
+
"access": "public"
|
|
8
|
+
},
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"@fortawesome/free-regular-svg-icons": "^6.2.1",
|
|
11
|
+
"bootstrap": "^5.2.3",
|
|
12
|
+
"formik": "^2.4.3",
|
|
13
|
+
"react-content-loader": "^6.2.1",
|
|
14
|
+
"react-currency-input": "^1.3.6",
|
|
15
|
+
"react-currency-input-field": "^3.6.11",
|
|
16
|
+
"react-dropzone": "^14.2.3",
|
|
17
|
+
"react-input-mask": "^2.0.4",
|
|
18
|
+
"react-number-format": "^5.2.2",
|
|
19
|
+
"react-select": "^5.7.0",
|
|
20
|
+
"typescript": "^4.9.4"
|
|
21
|
+
},
|
|
22
|
+
"scripts": {
|
|
23
|
+
"start": "react-scripts start",
|
|
24
|
+
"build": "react-scripts build",
|
|
25
|
+
"test": "react-scripts test",
|
|
26
|
+
"eject": "react-scripts eject",
|
|
27
|
+
"storybook": "start-storybook -p 6006 -s public",
|
|
28
|
+
"build-storybook": "build-storybook -s public & node copy.js",
|
|
29
|
+
"rollup": "rollup -c --bundleConfigAsCjs"
|
|
30
|
+
},
|
|
31
|
+
"eslintConfig": {
|
|
32
|
+
"extends": [
|
|
33
|
+
"react-app",
|
|
34
|
+
"react-app/jest"
|
|
35
|
+
],
|
|
36
|
+
"overrides": [
|
|
37
|
+
{
|
|
38
|
+
"files": [
|
|
39
|
+
"**/*.stories.*"
|
|
52
40
|
],
|
|
53
|
-
"
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
},
|
|
65
|
-
"devDependencies": {
|
|
66
|
-
"@rollup/plugin-babel": "^6.0.3",
|
|
67
|
-
"@rollup/plugin-commonjs": "^24.0.0",
|
|
68
|
-
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
69
|
-
"@rollup/plugin-typescript": "^11.0.0",
|
|
70
|
-
"@rollup/plugin-url": "^8.0.1",
|
|
71
|
-
"@storybook/addon-actions": "^6.5.14",
|
|
72
|
-
"@storybook/addon-essentials": "^6.5.14",
|
|
73
|
-
"@storybook/addon-interactions": "^6.5.14",
|
|
74
|
-
"@storybook/addon-links": "^6.5.14",
|
|
75
|
-
"@storybook/builder-webpack5": "^6.5.14",
|
|
76
|
-
"@storybook/manager-webpack5": "^6.5.14",
|
|
77
|
-
"@storybook/node-logger": "^6.5.14",
|
|
78
|
-
"@storybook/preset-create-react-app": "^4.1.2",
|
|
79
|
-
"@storybook/react": "^6.5.14",
|
|
80
|
-
"@storybook/testing-library": "^0.0.13",
|
|
81
|
-
"@types/node": "^16.18.8",
|
|
82
|
-
"@types/react": "^18.0.26",
|
|
83
|
-
"@types/react-input-mask": "^3.0.2",
|
|
84
|
-
"@types/styled-components": "^5.1.26",
|
|
85
|
-
"babel-plugin-named-exports-order": "^0.0.2",
|
|
86
|
-
"postcss": "^8.4.21",
|
|
87
|
-
"postcss-assets": "^6.0.0",
|
|
88
|
-
"prop-types": "^15.8.1",
|
|
89
|
-
"react": "^18.2.0",
|
|
90
|
-
"react-dom": "^18.2.0",
|
|
91
|
-
"react-scripts": "^5.0.1",
|
|
92
|
-
"rollup": "^3.10.0",
|
|
93
|
-
"rollup-plugin-dts": "^5.1.1",
|
|
94
|
-
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
95
|
-
"rollup-plugin-postcss": "^4.0.2",
|
|
96
|
-
"rollup-plugin-terser": "^7.0.2",
|
|
97
|
-
"storybook-addon-styled-component-theme": "^2.0.0",
|
|
98
|
-
"styled-components": "^5.3.6",
|
|
99
|
-
"webpack": "^5.75.0"
|
|
100
|
-
},
|
|
101
|
-
"main": "dist/cjs/index.js",
|
|
102
|
-
"module": "dist/esm/index.js",
|
|
103
|
-
"files": [
|
|
104
|
-
"dist"
|
|
41
|
+
"rules": {
|
|
42
|
+
"import/no-anonymous-default-export": "off"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
"browserslist": {
|
|
48
|
+
"production": [
|
|
49
|
+
">0.2%",
|
|
50
|
+
"not dead",
|
|
51
|
+
"not op_mini all"
|
|
105
52
|
],
|
|
106
|
-
"
|
|
53
|
+
"development": [
|
|
54
|
+
"last 1 chrome version",
|
|
55
|
+
"last 1 firefox version",
|
|
56
|
+
"last 1 safari version"
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
"peerDependencies": {
|
|
60
|
+
"react": "^18.2.0",
|
|
61
|
+
"react-dom": "^18.2.0",
|
|
62
|
+
"react-scripts": "5.0.1",
|
|
63
|
+
"styled-components": "^5.3.6"
|
|
64
|
+
},
|
|
65
|
+
"devDependencies": {
|
|
66
|
+
"@rollup/plugin-babel": "^6.0.3",
|
|
67
|
+
"@rollup/plugin-commonjs": "^24.0.0",
|
|
68
|
+
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
69
|
+
"@rollup/plugin-typescript": "^11.0.0",
|
|
70
|
+
"@rollup/plugin-url": "^8.0.1",
|
|
71
|
+
"@storybook/addon-actions": "^6.5.14",
|
|
72
|
+
"@storybook/addon-essentials": "^6.5.14",
|
|
73
|
+
"@storybook/addon-interactions": "^6.5.14",
|
|
74
|
+
"@storybook/addon-links": "^6.5.14",
|
|
75
|
+
"@storybook/builder-webpack5": "^6.5.14",
|
|
76
|
+
"@storybook/manager-webpack5": "^6.5.14",
|
|
77
|
+
"@storybook/node-logger": "^6.5.14",
|
|
78
|
+
"@storybook/preset-create-react-app": "^4.1.2",
|
|
79
|
+
"@storybook/react": "^6.5.14",
|
|
80
|
+
"@storybook/testing-library": "^0.0.13",
|
|
81
|
+
"@types/node": "^16.18.8",
|
|
82
|
+
"@types/react": "^18.0.26",
|
|
83
|
+
"@types/react-input-mask": "^3.0.2",
|
|
84
|
+
"@types/styled-components": "^5.1.26",
|
|
85
|
+
"babel-plugin-named-exports-order": "^0.0.2",
|
|
86
|
+
"postcss": "^8.4.21",
|
|
87
|
+
"postcss-assets": "^6.0.0",
|
|
88
|
+
"prop-types": "^15.8.1",
|
|
89
|
+
"react": "^18.2.0",
|
|
90
|
+
"react-dom": "^18.2.0",
|
|
91
|
+
"react-scripts": "^5.0.1",
|
|
92
|
+
"rollup": "^3.10.0",
|
|
93
|
+
"rollup-plugin-dts": "^5.1.1",
|
|
94
|
+
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
95
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
96
|
+
"rollup-plugin-terser": "^7.0.2",
|
|
97
|
+
"storybook-addon-styled-component-theme": "^2.0.0",
|
|
98
|
+
"styled-components": "^5.3.6",
|
|
99
|
+
"webpack": "^5.75.0"
|
|
100
|
+
},
|
|
101
|
+
"main": "dist/cjs/index.js",
|
|
102
|
+
"module": "dist/esm/index.js",
|
|
103
|
+
"files": [
|
|
104
|
+
"dist"
|
|
105
|
+
],
|
|
106
|
+
"types": "dist/index.d.ts"
|
|
107
107
|
}
|