@prosperitainova/mirage-ui 1.1.172 → 1.1.174
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/README.md +32 -32
- package/dist/cjs/index.js +4 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +4 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +13 -12
- package/package.json +118 -118
package/dist/index.d.ts
CHANGED
|
@@ -30,7 +30,7 @@ type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
|
30
30
|
value?: string;
|
|
31
31
|
type?: string;
|
|
32
32
|
full?: boolean;
|
|
33
|
-
children?:
|
|
33
|
+
children?: React.ReactNode;
|
|
34
34
|
};
|
|
35
35
|
declare const Button: ({ onClick, ...props }: ButtonProps) => react_jsx_runtime.JSX.Element;
|
|
36
36
|
|
|
@@ -109,6 +109,7 @@ type InputProps = InputHTMLAttributes<HTMLInputElement> & TextareaHTMLAttributes
|
|
|
109
109
|
min?: string;
|
|
110
110
|
max?: string;
|
|
111
111
|
isPercentage?: boolean;
|
|
112
|
+
children?: React.ReactNode;
|
|
112
113
|
};
|
|
113
114
|
declare const Input: (props: InputProps) => react_jsx_runtime.JSX.Element;
|
|
114
115
|
|
|
@@ -116,7 +117,7 @@ type ModalProps$2 = HTMLAttributes<HTMLDivElement> & {
|
|
|
116
117
|
open?: boolean;
|
|
117
118
|
header?: boolean;
|
|
118
119
|
title?: string;
|
|
119
|
-
children?:
|
|
120
|
+
children?: React.ReactNode;
|
|
120
121
|
size: "md" | "lg";
|
|
121
122
|
toggleModal: (event: any) => void;
|
|
122
123
|
};
|
|
@@ -126,13 +127,13 @@ type ModalProps$1 = HTMLAttributes<HTMLDivElement> & {
|
|
|
126
127
|
open?: boolean;
|
|
127
128
|
header?: boolean;
|
|
128
129
|
title?: string;
|
|
129
|
-
children?:
|
|
130
|
+
children?: React.ReactNode;
|
|
130
131
|
toggleModal: () => void;
|
|
131
132
|
};
|
|
132
133
|
declare const lateralModal: (props: ModalProps$1) => react_jsx_runtime.JSX.Element;
|
|
133
134
|
|
|
134
135
|
type UsersProps = {
|
|
135
|
-
img?:
|
|
136
|
+
img?: React.ReactNode;
|
|
136
137
|
text: string;
|
|
137
138
|
label: string;
|
|
138
139
|
description?: string;
|
|
@@ -140,7 +141,7 @@ type UsersProps = {
|
|
|
140
141
|
};
|
|
141
142
|
type BottonButtonProps = {
|
|
142
143
|
onBottomButtonClick: () => void;
|
|
143
|
-
label:
|
|
144
|
+
label: React.ReactNode;
|
|
144
145
|
};
|
|
145
146
|
type MenuDropdownProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
146
147
|
open?: boolean;
|
|
@@ -220,7 +221,7 @@ declare const CustomSelect: (props: SelectProps) => react_jsx_runtime.JSX.Elemen
|
|
|
220
221
|
type MenuItem = {
|
|
221
222
|
icon: string;
|
|
222
223
|
text: string;
|
|
223
|
-
render?: () =>
|
|
224
|
+
render?: () => React.ReactNode;
|
|
224
225
|
onMenuClick?: (index: number) => void;
|
|
225
226
|
};
|
|
226
227
|
type SideBarProps = {
|
|
@@ -316,8 +317,8 @@ type TableColumn<T = any> = {
|
|
|
316
317
|
key: string;
|
|
317
318
|
width?: string;
|
|
318
319
|
align?: "left" | "center" | "right";
|
|
319
|
-
renderColumn?: (data: T, index: number) =>
|
|
320
|
-
renderData?: (data: T, index: number) =>
|
|
320
|
+
renderColumn?: (data: T, index: number) => React.ReactNode;
|
|
321
|
+
renderData?: (data: T, index: number) => React.ReactNode;
|
|
321
322
|
};
|
|
322
323
|
type TableProps = {
|
|
323
324
|
columns: TableColumn<any>[];
|
|
@@ -326,7 +327,7 @@ type TableProps = {
|
|
|
326
327
|
disabledRows?: number[];
|
|
327
328
|
selectedRows?: number[];
|
|
328
329
|
haveHeader?: boolean;
|
|
329
|
-
renderHeader?: (columns: TableColumn<any>[]) =>
|
|
330
|
+
renderHeader?: (columns: TableColumn<any>[]) => React.ReactNode;
|
|
330
331
|
};
|
|
331
332
|
declare const Table: (props: TableProps) => react_jsx_runtime.JSX.Element;
|
|
332
333
|
|
|
@@ -361,8 +362,8 @@ type panelProps = {
|
|
|
361
362
|
currency?: string;
|
|
362
363
|
value?: string;
|
|
363
364
|
toggleBalance?: boolean;
|
|
364
|
-
render?: () =>
|
|
365
|
-
secondaryRender?: () =>
|
|
365
|
+
render?: () => React.ReactNode;
|
|
366
|
+
secondaryRender?: () => React.ReactNode;
|
|
366
367
|
onClick?: () => void;
|
|
367
368
|
bold?: boolean;
|
|
368
369
|
};
|
|
@@ -460,7 +461,7 @@ type ModalProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
460
461
|
open?: boolean;
|
|
461
462
|
header?: boolean;
|
|
462
463
|
title?: string;
|
|
463
|
-
children?:
|
|
464
|
+
children?: React.ReactNode;
|
|
464
465
|
toggleModal: () => void;
|
|
465
466
|
};
|
|
466
467
|
declare const BottomModal: (props: ModalProps) => react_jsx_runtime.JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,118 +1,118 @@
|
|
|
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
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@prosperitainova/mirage-ui",
|
|
3
|
+
"version": "1.1.174",
|
|
4
|
+
"private": false,
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"publishConfig": {
|
|
7
|
+
"access": "public"
|
|
8
|
+
},
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"@fortawesome/free-regular-svg-icons": "^6.2.2",
|
|
11
|
+
"bootstrap": "^5.2.3",
|
|
12
|
+
"formik": "^2.4.3",
|
|
13
|
+
"hex-to-css-filter": "^5.4.0",
|
|
14
|
+
"react-content-loader": "^6.2.1",
|
|
15
|
+
"react-currency-input": "^1.3.6",
|
|
16
|
+
"react-currency-input-field": "^3.6.11",
|
|
17
|
+
"react-dropzone": "^14.2.3",
|
|
18
|
+
"react-input-mask": "^2.0.4",
|
|
19
|
+
"react-number-format": "^5.2.2",
|
|
20
|
+
"react-select": "^5.7.0",
|
|
21
|
+
"react-toastify": "^9.1.3",
|
|
22
|
+
"reactstrap": "^9.2.0",
|
|
23
|
+
"typescript": "^5.3.3"
|
|
24
|
+
},
|
|
25
|
+
"scripts": {
|
|
26
|
+
"start": "react-scripts start",
|
|
27
|
+
"build": "react-scripts build",
|
|
28
|
+
"test": "react-scripts test",
|
|
29
|
+
"eject": "react-scripts eject",
|
|
30
|
+
"storybook": "storybook dev -p 6006 -s public",
|
|
31
|
+
"build-storybook": "storybook build -s public & node copy.js",
|
|
32
|
+
"rollup": "tsc --p ./tsconfig.json && rollup -c --bundleConfigAsCjs",
|
|
33
|
+
"rollup-only": "rollup -c --bundleConfigAsCjs"
|
|
34
|
+
},
|
|
35
|
+
"eslintConfig": {
|
|
36
|
+
"extends": [
|
|
37
|
+
"react-app",
|
|
38
|
+
"react-app/jest"
|
|
39
|
+
],
|
|
40
|
+
"overrides": [
|
|
41
|
+
{
|
|
42
|
+
"files": [
|
|
43
|
+
"**/*.stories.*"
|
|
44
|
+
],
|
|
45
|
+
"rules": {
|
|
46
|
+
"import/no-anonymous-default-export": "off"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
"browserslist": {
|
|
52
|
+
"production": [
|
|
53
|
+
">0.2%",
|
|
54
|
+
"not dead",
|
|
55
|
+
"not op_mini all"
|
|
56
|
+
],
|
|
57
|
+
"development": [
|
|
58
|
+
"last 1 chrome version",
|
|
59
|
+
"last 1 firefox version",
|
|
60
|
+
"last 1 safari version"
|
|
61
|
+
]
|
|
62
|
+
},
|
|
63
|
+
"peerDependencies": {
|
|
64
|
+
"react": "^18.2.0",
|
|
65
|
+
"react-dom": "^18.2.0",
|
|
66
|
+
"react-scripts": "5.0.1",
|
|
67
|
+
"styled-components": "^5.3.6"
|
|
68
|
+
},
|
|
69
|
+
"devDependencies": {
|
|
70
|
+
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
|
|
71
|
+
"@rollup/plugin-babel": "^6.0.3",
|
|
72
|
+
"@rollup/plugin-commonjs": "^24.0.0",
|
|
73
|
+
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
74
|
+
"@rollup/plugin-typescript": "^11.1.5",
|
|
75
|
+
"@rollup/plugin-url": "^8.0.1",
|
|
76
|
+
"@storybook/addon-actions": "^7.5.3",
|
|
77
|
+
"@storybook/addon-essentials": "^7.5.3",
|
|
78
|
+
"@storybook/addon-interactions": "^7.5.3",
|
|
79
|
+
"@storybook/addon-links": "^7.5.3",
|
|
80
|
+
"@storybook/node-logger": "^7.5.3",
|
|
81
|
+
"@storybook/preset-create-react-app": "^7.5.3",
|
|
82
|
+
"@storybook/react": "^7.5.3",
|
|
83
|
+
"@storybook/react-webpack5": "^7.5.3",
|
|
84
|
+
"@storybook/testing-library": "^0.2.2",
|
|
85
|
+
"@types/carbon-components-react": "^7.55.10",
|
|
86
|
+
"@types/node": "^16.18.8",
|
|
87
|
+
"@types/react": "^19.0.7",
|
|
88
|
+
"@types/react-input-mask": "^3.0.6",
|
|
89
|
+
"@types/styled-components": "^5.1.34",
|
|
90
|
+
"babel-plugin-named-exports-order": "^0.0.2",
|
|
91
|
+
"postcss": "^8.4.21",
|
|
92
|
+
"postcss-assets": "^6.0.0",
|
|
93
|
+
"prop-types": "^15.8.1",
|
|
94
|
+
"react": "^19.0.0",
|
|
95
|
+
"react-dom": "^19.0.0",
|
|
96
|
+
"react-scripts": "^5.0.1",
|
|
97
|
+
"rollup": "^4.9.2",
|
|
98
|
+
"rollup-plugin-dts": "^5.1.1",
|
|
99
|
+
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
100
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
101
|
+
"rollup-plugin-terser": "^7.0.2",
|
|
102
|
+
"rollup-plugin-typescript2": "^0.36.0",
|
|
103
|
+
"storybook": "^7.5.3",
|
|
104
|
+
"storybook-addon-styled-component-theme": "^2.0.0",
|
|
105
|
+
"styled-components": "^6.1.14",
|
|
106
|
+
"tslib": "^2.6.2",
|
|
107
|
+
"webpack": "^5.75.0"
|
|
108
|
+
},
|
|
109
|
+
"main": "dist/cjs/index.js",
|
|
110
|
+
"module": "dist/esm/index.js",
|
|
111
|
+
"types": "dist/index.d.ts",
|
|
112
|
+
"files": [
|
|
113
|
+
"dist"
|
|
114
|
+
],
|
|
115
|
+
"resolutions": {
|
|
116
|
+
"jackspeak": "2.1.1"
|
|
117
|
+
}
|
|
118
|
+
}
|