@prosperitainova/mirage-ui 1.1.175 → 1.1.177

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/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?: React.ReactNode;
33
+ children?: JSX.Element;
34
34
  };
35
35
  declare const Button: ({ onClick, ...props }: ButtonProps) => react_jsx_runtime.JSX.Element;
36
36
 
@@ -109,7 +109,6 @@ type InputProps = InputHTMLAttributes<HTMLInputElement> & TextareaHTMLAttributes
109
109
  min?: string;
110
110
  max?: string;
111
111
  isPercentage?: boolean;
112
- children?: React.ReactNode;
113
112
  };
114
113
  declare const Input: (props: InputProps) => react_jsx_runtime.JSX.Element;
115
114
 
@@ -117,7 +116,7 @@ type ModalProps$2 = HTMLAttributes<HTMLDivElement> & {
117
116
  open?: boolean;
118
117
  header?: boolean;
119
118
  title?: string;
120
- children?: React.ReactNode;
119
+ children?: JSX.Element;
121
120
  size: "md" | "lg";
122
121
  toggleModal: (event: any) => void;
123
122
  };
@@ -127,13 +126,13 @@ type ModalProps$1 = HTMLAttributes<HTMLDivElement> & {
127
126
  open?: boolean;
128
127
  header?: boolean;
129
128
  title?: string;
130
- children?: React.ReactNode;
129
+ children?: JSX.Element;
131
130
  toggleModal: () => void;
132
131
  };
133
132
  declare const lateralModal: (props: ModalProps$1) => react_jsx_runtime.JSX.Element;
134
133
 
135
134
  type UsersProps = {
136
- img?: React.ReactNode;
135
+ img?: JSX.Element;
137
136
  text: string;
138
137
  label: string;
139
138
  description?: string;
@@ -141,7 +140,7 @@ type UsersProps = {
141
140
  };
142
141
  type BottonButtonProps = {
143
142
  onBottomButtonClick: () => void;
144
- label: React.ReactNode;
143
+ label: JSX.Element;
145
144
  };
146
145
  type MenuDropdownProps = ButtonHTMLAttributes<HTMLButtonElement> & {
147
146
  open?: boolean;
@@ -221,7 +220,7 @@ declare const CustomSelect: (props: SelectProps) => react_jsx_runtime.JSX.Elemen
221
220
  type MenuItem = {
222
221
  icon: string;
223
222
  text: string;
224
- render?: () => React.ReactNode;
223
+ render?: () => JSX.Element;
225
224
  onMenuClick?: (index: number) => void;
226
225
  };
227
226
  type SideBarProps = {
@@ -317,8 +316,8 @@ type TableColumn<T = any> = {
317
316
  key: string;
318
317
  width?: string;
319
318
  align?: "left" | "center" | "right";
320
- renderColumn?: (data: T, index: number) => React.ReactNode;
321
- renderData?: (data: T, index: number) => React.ReactNode;
319
+ renderColumn?: (data: T, index: number) => JSX.Element;
320
+ renderData?: (data: T, index: number) => JSX.Element;
322
321
  };
323
322
  type TableProps = {
324
323
  columns: TableColumn<any>[];
@@ -327,7 +326,7 @@ type TableProps = {
327
326
  disabledRows?: number[];
328
327
  selectedRows?: number[];
329
328
  haveHeader?: boolean;
330
- renderHeader?: (columns: TableColumn<any>[]) => React.ReactNode;
329
+ renderHeader?: (columns: TableColumn<any>[]) => JSX.Element;
331
330
  };
332
331
  declare const Table: (props: TableProps) => react_jsx_runtime.JSX.Element;
333
332
 
@@ -362,8 +361,8 @@ type panelProps = {
362
361
  currency?: string;
363
362
  value?: string;
364
363
  toggleBalance?: boolean;
365
- render?: () => React.ReactNode;
366
- secondaryRender?: () => React.ReactNode;
364
+ render?: () => JSX.Element;
365
+ secondaryRender?: () => JSX.Element;
367
366
  onClick?: () => void;
368
367
  bold?: boolean;
369
368
  };
@@ -461,7 +460,7 @@ type ModalProps = HTMLAttributes<HTMLDivElement> & {
461
460
  open?: boolean;
462
461
  header?: boolean;
463
462
  title?: string;
464
- children?: React.ReactNode;
463
+ children?: JSX.Element;
465
464
  toggleModal: () => void;
466
465
  };
467
466
  declare const BottomModal: (props: ModalProps) => react_jsx_runtime.JSX.Element;
package/package.json CHANGED
@@ -1,118 +1,118 @@
1
- {
2
- "name": "@prosperitainova/mirage-ui",
3
- "version": "1.1.175",
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
- }
1
+ {
2
+ "name": "@prosperitainova/mirage-ui",
3
+ "version": "1.1.177",
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": "^18.0.26",
88
+ "@types/react-input-mask": "^3.0.2",
89
+ "@types/styled-components": "^5.1.26",
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": "^18.2.0",
95
+ "react-dom": "^18.2.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": "^5.3.6",
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
+ }