@artibet/react-mui-components 2.5.5 → 2.6.1
Sign up to get free protection for your applications and to get access to all the features.
- package/inertiajs/index.js +1 -0
- package/package.json +5 -2
@@ -0,0 +1 @@
|
|
1
|
+
import e from"react";import{Alert as r}from"@mui/material";import{usePage as t}from"@inertiajs/react";var n=function(t){var n=t.errors,m=t.marginBottom,o=void 0===m?3:m;return 0===Object.keys(n).length?null:e.createElement(e.Fragment,null,Object.keys(n).map((function(t,m){return e.createElement(r,{sx:{marginBottom:o},key:m,severity:"error"},n[t])})))},m=function(){var m=t().props,o=m.flash,a=m.errors;return e.createElement(e.Fragment,null,e.createElement(n,{errors:a}),Object.keys(o).map((function(t,n){return o[t]?e.createElement(r,{sx:{marginBottom:3},key:n,severity:t},o[t]):null})))};export{m as FlashMessages};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@artibet/react-mui-components",
|
3
|
-
"version": "2.
|
3
|
+
"version": "2.6.1",
|
4
4
|
"description": "Various react components build with mui library",
|
5
5
|
"main": "./core/index.js",
|
6
6
|
"scripts": {
|
@@ -29,6 +29,7 @@
|
|
29
29
|
"@mui/icons-material": "^5.14.7",
|
30
30
|
"@mui/material": "^5.14.7",
|
31
31
|
"@mui/x-date-pickers": "^5.0.20",
|
32
|
+
"@inertiajs/react": "^1.0.11",
|
32
33
|
"axios": "^1.5.0",
|
33
34
|
"date-fns": "^2.30.0",
|
34
35
|
"nprogress": "^0.2.0",
|
@@ -47,7 +48,8 @@
|
|
47
48
|
"utils",
|
48
49
|
"modals",
|
49
50
|
"form-fields",
|
50
|
-
"tables"
|
51
|
+
"tables",
|
52
|
+
"inertiajs"
|
51
53
|
],
|
52
54
|
"devDependencies": {
|
53
55
|
"@babel/core": "^7.22.11",
|
@@ -56,6 +58,7 @@
|
|
56
58
|
"@babel/preset-react": "^7.22.5",
|
57
59
|
"@babel/preset-typescript": "^7.22.11",
|
58
60
|
"@hookform/resolvers": "^3.2.0",
|
61
|
+
"@inertiajs/react": "^1.0.11",
|
59
62
|
"@mui/x-date-pickers": "^5.0.20",
|
60
63
|
"@rollup/plugin-babel": "^6.0.3",
|
61
64
|
"@rollup/plugin-commonjs": "^25.0.4",
|