@artibet/react-mui-components 2.6.0 → 2.6.2
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 +3 -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.6.
|
3
|
+
"version": "2.6.2",
|
4
4
|
"description": "Various react components build with mui library",
|
5
5
|
"main": "./core/index.js",
|
6
6
|
"scripts": {
|
@@ -48,7 +48,8 @@
|
|
48
48
|
"utils",
|
49
49
|
"modals",
|
50
50
|
"form-fields",
|
51
|
-
"tables"
|
51
|
+
"tables",
|
52
|
+
"inertiajs"
|
52
53
|
],
|
53
54
|
"devDependencies": {
|
54
55
|
"@babel/core": "^7.22.11",
|