@zydon/common 2.5.71 → 2.5.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.
@@ -4,13 +4,13 @@ import '../../chunk-Z2TDWMRU.js';
4
4
  import '../../chunk-4INDXVIX.js';
5
5
  import '../../chunk-3APKMSVD.js';
6
6
  import { forwardRef } from 'react';
7
- import w from '@mui/material/Fab';
8
- import L from '@mui/material/IconButton';
7
+ import B from '@mui/material/Fab';
8
+ import C from '@mui/material/IconButton';
9
9
  import { useTheme } from '@mui/material/styles';
10
- import B from '@mui/material/Switch';
11
- import C from '@mui/material/Tooltip';
10
+ import M from '@mui/material/Switch';
11
+ import R from '@mui/material/Tooltip';
12
12
  import { jsx } from 'react/jsx-runtime';
13
13
 
14
- var h=()=>jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"currentColor",children:jsx("path",{d:"M12 18c-3.3 0-6-2.7-6-6s2.7-6 6-6 6 2.7 6 6-2.7 6-6 6zm0-10c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zM12 4c-.6 0-1-.4-1-1V1c0-.6.4-1 1-1s1 .4 1 1v2c0 .6-.4 1-1 1zM12 24c-.6 0-1-.4-1-1v-2c0-.6.4-1 1-1s1 .4 1 1v2c0 .6-.4 1-1 1zM5.6 6.6c-.3 0-.6-.1-.8-.3L3.4 4.9c-.4-.4-.4-1 0-1.4s1-.4 1.4 0L6.2 4.9c.4.4.4 1 0 1.4-.2.2-.4.3-.6.3zM19.8 20.8c-.3 0-.6-.1-.8-.3L17.6 19.1c-.4-.4-.4-1 0-1.4s1-.4 1.4 0l1.4 1.4c.4.4.4 1 0 1.4-.2.2-.4.3-.6.3zM3 13H1c-.6 0-1-.4-1-1s.4-1 1-1h2c.6 0 1 .4 1 1s-.4 1-1 1zM23 13h-2c-.6 0-1-.4-1-1s.4-1 1-1h2c.6 0 1 .4 1 1s-.4 1-1 1zM4.2 20.8c-.3 0-.6-.1-.8-.3-.4-.4-.4-1 0-1.4L4.8 17.7c.4-.4 1-.4 1.4 0s.4 1 0 1.4l-1.4 1.4c-.2.2-.4.3-.6.3zM18.4 6.6c-.3 0-.6-.1-.8-.3-.4-.4-.4-1 0-1.4L19 3.5c.4-.4 1-.4 1.4 0s.4 1 0 1.4L19 6.3c-.2.2-.4.3-.6.3z"})}),p=()=>jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"currentColor",children:jsx("path",{d:"M12.1 22c-5.5 0-10-4.5-10-10 0-5.3 4.1-9.7 9.4-10-.4.6-.6 1.3-.6 2 0 2.2 1.8 4 4 4 .7 0 1.4-.2 2-.6-.3 5.3-4.7 9.4-10 9.4-.3 0-.6 0-.8 0z"})}),u=forwardRef(({variant:l="iconButton",size:e="medium",color:t="inherit",tooltip:f=!0,tooltipTitle:T,className:i,disabled:s=!1,...a},m)=>{let r=useTheme(),{settings:M,onToggleMode:c}=b(),n=M.colorScheme==="dark",z=T||(n?"Alternar para modo claro":"Alternar para modo escuro"),g=(()=>{switch(l){case"switch":return jsx(B,{checked:n,onChange:c,size:e==="large"?"medium":e,color:t==="inherit"?"primary":t,disabled:s,className:i,...a});case"fab":return jsx(w,{ref:m,size:e,color:t==="inherit"?"primary":t,onClick:c,disabled:s,className:i,sx:{transition:r.transitions.create(["transform","background-color"],{duration:r.transitions.duration.shorter}),"&:hover":{transform:"scale(1.05)"}},...a,children:n?jsx(h,{}):jsx(p,{})});case"iconButton":default:return jsx(L,{ref:m,size:e,color:t,onClick:c,disabled:s,className:i,sx:{transition:r.transitions.create(["transform","color"],{duration:r.transitions.duration.shorter}),"&:hover":{transform:"rotate(180deg)"}},...a,children:n?jsx(h,{}):jsx(p,{})})}})();return f&&l!=="switch"?jsx(C,{title:z,arrow:!0,children:g}):g});u.displayName="ThemeToggle";var V=u;
14
+ var g=()=>jsx("span",{children:"\u2600\uFE0F"}),u=()=>jsx("span",{children:"\u{1F319}"}),T=forwardRef(({variant:m="iconButton",size:e="medium",color:t="inherit",tooltip:f=!0,tooltipTitle:h,className:a,disabled:i=!1,...s},c)=>{let r=useTheme(),{settings:b$1,onToggleMode:l}=b(),n=b$1.colorScheme==="dark",k=h||(n?"Alternar para modo claro":"Alternar para modo escuro"),p=(()=>{switch(m){case"switch":return jsx(M,{checked:n,onChange:l,size:e==="large"?"medium":e,color:t==="inherit"?"primary":t,disabled:i,className:a,...s});case"fab":return jsx(B,{ref:c,size:e,color:t==="inherit"?"primary":t,onClick:l,disabled:i,className:a,sx:{transition:r.transitions.create(["transform","background-color"],{duration:r.transitions.duration.shorter}),"&:hover":{transform:"scale(1.05)"}},...s,children:n?jsx(g,{}):jsx(u,{})});case"iconButton":default:return jsx(C,{ref:c,size:e,color:t,onClick:l,disabled:i,className:a,sx:{transition:r.transitions.create(["transform","color"],{duration:r.transitions.duration.shorter}),"&:hover":{transform:"rotate(180deg)"}},...s,children:n?jsx(g,{}):jsx(u,{})})}})();return f&&m!=="switch"?jsx(R,{title:k,arrow:!0,children:p}):p});T.displayName="ThemeToggle";var D=T;
15
15
 
16
- export { u as ThemeToggle, V as default };
16
+ export { T as ThemeToggle, D as default };
@@ -443,7 +443,7 @@ declare function paper({ theme, color, dropdown }: PaperProps): {
443
443
  wordWrap?: csstype.Property.WordWrap | readonly NonNullable<csstype.Property.WordWrap | undefined>[] | readonly csstype.Property.WordWrap[] | undefined;
444
444
  writingMode?: csstype.Property.WritingMode | readonly NonNullable<csstype.Property.WritingMode | undefined>[] | readonly csstype.Property.WritingMode[] | undefined;
445
445
  zIndex?: csstype.Property.ZIndex | readonly NonNullable<csstype.Property.ZIndex | undefined>[] | readonly ((string & {}) | csstype.Globals | "auto")[] | undefined;
446
- zoom?: csstype.Property.Zoom | readonly NonNullable<csstype.Property.Zoom | undefined>[] | readonly ("reset" | (string & {}) | csstype.Globals | "normal")[] | undefined;
446
+ zoom?: csstype.Property.Zoom | readonly NonNullable<csstype.Property.Zoom | undefined>[] | readonly ((string & {}) | csstype.Globals | "normal" | "reset")[] | undefined;
447
447
  all?: csstype.Globals | readonly NonNullable<csstype.Globals | undefined>[] | readonly csstype.Globals[] | undefined;
448
448
  animation?: csstype.Property.Animation<string & {}> | readonly NonNullable<csstype.Property.Animation<string & {}> | undefined>[] | readonly ((string & {}) | csstype.Globals | "normal" | "reverse" | "auto" | "none" | "both" | "alternate" | "alternate-reverse" | "backwards" | "forwards" | "infinite" | "paused" | "running" | "ease" | "ease-in" | "ease-in-out" | "ease-out" | "step-end" | "step-start" | "linear")[] | undefined;
449
449
  animationRange?: csstype.Property.AnimationRange<string | number> | readonly NonNullable<csstype.Property.AnimationRange<string | number> | undefined>[] | readonly (string | (string & {}))[] | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zydon/common",
3
- "version": "2.5.71",
3
+ "version": "2.5.72",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "./dist/index.js",