@zydon/common 2.6.71 → 2.6.72
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.
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { a } from './chunk-5OJQUX2T.js';
|
|
2
|
+
import { forwardRef, useMemo } from 'react';
|
|
3
|
+
import M from '@mui/material/Box';
|
|
4
|
+
import w from '@mui/material/CircularProgress';
|
|
5
|
+
import R from '@mui/material/IconButton';
|
|
6
|
+
import { jsx } from 'react/jsx-runtime';
|
|
7
|
+
|
|
8
|
+
var p=forwardRef(({icon:o,label:n,loading:r=!1,disabled:u=!1,iconProps:i={},children:e,color:a$1="primary.main",boxProps:f={},tooltipProps:l,...B},I)=>{if(!o&&!e)throw new Error("IconButton: icon or children is required");l&&process.env.NODE_ENV==="development"&&console.warn("IconButton: tooltipProps \xE9 obsoleto. Remova a prop.");let m=useMemo(()=>o?jsx(a,{icon:o,...i}):e,[o,e,i]),d=useMemo(()=>r?jsx(w,{size:20,color:"inherit"}):m,[r,m]);return jsx(M,{color:a$1,...f,children:jsx(R,{ref:I,color:"inherit","aria-label":n,title:n,disabled:r||u,...B,children:d})})});p.displayName="IconButton";var x=p;
|
|
9
|
+
|
|
10
|
+
export { x as a };
|
|
@@ -4,7 +4,7 @@ import { a as a$3 } from '../../chunk-2FXBVVBD.js';
|
|
|
4
4
|
import { a as a$6 } from '../../chunk-HIDAL6NG.js';
|
|
5
5
|
import '../../chunk-RWL73YK6.js';
|
|
6
6
|
import '../../chunk-7AZX7L27.js';
|
|
7
|
-
import { a } from '../../chunk-
|
|
7
|
+
import { a } from '../../chunk-SUR53RWV.js';
|
|
8
8
|
import { a as a$2 } from '../../chunk-Y4MHFJWJ.js';
|
|
9
9
|
import { x } from '../../chunk-2P4CXK3O.js';
|
|
10
10
|
import { a as a$7 } from '../../chunk-FK7DDO5L.js';
|
package/package.json
CHANGED
package/dist/chunk-PKYW7YRB.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { a } from './chunk-5OJQUX2T.js';
|
|
2
|
-
import { forwardRef, useMemo } from 'react';
|
|
3
|
-
import d from '@mui/material/Box';
|
|
4
|
-
import w from '@mui/material/CircularProgress';
|
|
5
|
-
import E from '@mui/material/IconButton';
|
|
6
|
-
import { jsx } from 'react/jsx-runtime';
|
|
7
|
-
|
|
8
|
-
var c=forwardRef(({icon:o,label:e,loading:r=!1,disabled:s=!1,iconProps:i={},children:n,color:a$1="primary.main",boxProps:B={},...l},p)=>{if(!o&&!n)throw new Error("IconButton: icon or children is required");let m=useMemo(()=>o?jsx(a,{icon:o,...i}):n,[o,n,i]),I=useMemo(()=>r?jsx(w,{size:20,color:"inherit"}):m,[r,m]);return jsx(d,{color:a$1,...B,children:jsx(E,{ref:p,color:"inherit","aria-label":e,title:e,disabled:r||s,...l,children:I})})});c.displayName="IconButton";var H=c;
|
|
9
|
-
|
|
10
|
-
export { H as a };
|