@zydon/common 2.0.30 → 2.0.32

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.
@@ -1,9 +1,9 @@
1
- import { a, i as i$1 } from '../../chunk-D27ND54J.js';
1
+ import { a } from '../../chunk-D27ND54J.js';
2
2
  import { forwardRef } from 'react';
3
3
  import d from '@mui/material/Box';
4
- import { styled, useTheme } from '@mui/material/styles';
4
+ import { styled, lighten, useTheme } from '@mui/material/styles';
5
5
  import { jsxs, jsx } from 'react/jsx-runtime';
6
6
 
7
- var l={root:"mnl__label__root",icon:"mnl__label__icon"};var i=styled(d)(({theme:o,ownerState:{color:r,variant:t}})=>{let e={...r==="default"&&{...t==="filled"&&{color:o.vars.palette.common.white,backgroundColor:o.vars.palette.text.primary,[a.dark]:{color:o.vars.palette.grey[800]}},...t==="outlined"&&{backgroundColor:"transparent",color:o.vars.palette.text.primary,border:`2px solid ${o.vars.palette.text.primary}`},...t==="soft"&&{color:o.vars.palette.text.secondary,backgroundColor:i$1(o.vars.palette.grey["500Channel"],.16)},...t==="inverted"&&{color:o.vars.palette.grey[800],backgroundColor:o.vars.palette.grey[300]}}},a$1={...r!=="default"&&{...t==="filled"&&{color:o.vars.palette[r].contrastText,backgroundColor:o.vars.palette[r].main},...t==="outlined"&&{backgroundColor:"transparent",color:o.vars.palette[r].main,border:`2px solid ${o.vars.palette[r].main}`},...t==="soft"&&{color:o.vars.palette[r].dark,backgroundColor:i$1(o.vars.palette[r].mainChannel,.16),[a.dark]:{color:o.vars.palette[r].light}},...t==="inverted"&&{color:o.vars.palette[r].darker,backgroundColor:o.vars.palette[r].lighter}}};return {height:24,minWidth:24,lineHeight:0,cursor:"default",alignItems:"center",whiteSpace:"nowrap",display:"inline-flex",justifyContent:"center",padding:o.spacing(0,.75),fontSize:o.typography.pxToRem(12),fontWeight:o.typography.fontWeightBold,borderRadius:o.shape.borderRadius*.75,transition:o.transitions.create("all",{duration:o.transitions.duration.shorter}),...e,...a$1}});var k=o=>o.charAt(0).toUpperCase()+o.slice(1),f=forwardRef(({children:o,color:r="default",variant:t="soft",startIcon:e,endIcon:a,sx:m,...b},g)=>{let y=useTheme(),n={width:16,height:16,"& svg, img":{width:1,height:1,objectFit:"cover"}};return jsxs(i,{ref:g,component:"span",className:l.root,ownerState:{color:r,variant:t},sx:{...e&&{pl:.75},...a&&{pr:.75},...m},theme:y,...b,children:[e&&jsx(d,{component:"span",className:l.icon,sx:{mr:.75,...n},children:e}),typeof o=="string"?k(o):o,a&&jsx(d,{component:"span",className:l.icon,sx:{ml:.75,...n},children:a})]})});f.displayName="Label";var H=f;
7
+ var l={root:"mnl__label__root",icon:"mnl__label__icon"};var i=styled(d)(({theme:o,ownerState:{color:r,variant:t}})=>{let e={...r==="default"&&{...t==="filled"&&{color:o.vars.palette.common.white,backgroundColor:o.vars.palette.text.primary,[a.dark]:{color:o.vars.palette.grey[800]}},...t==="outlined"&&{backgroundColor:"transparent",color:o.vars.palette.text.primary,border:`2px solid ${o.vars.palette.text.primary}`},...t==="soft"&&{color:o.vars.palette.text.secondary,border:`1px solid ${lighten(o.palette.grey[500],.32)}`},...t==="inverted"&&{color:o.vars.palette.grey[800],backgroundColor:o.vars.palette.grey[300]}}},a$1={...r!=="default"&&{...t==="filled"&&{color:o.vars.palette[r].contrastText,backgroundColor:o.vars.palette[r].main},...t==="outlined"&&{backgroundColor:"transparent",color:o.vars.palette[r].main,border:`2px solid ${o.vars.palette[r].main}`},...t==="soft"&&{color:o.vars.palette[r].dark,backgroundColor:lighten(o.palette.primary.main,.84),[a.dark]:{color:o.vars.palette[r].light}},...t==="inverted"&&{color:o.vars.palette[r].darker,backgroundColor:o.vars.palette[r].lighter}}};return {height:24,minWidth:24,lineHeight:0,cursor:"default",alignItems:"center",whiteSpace:"nowrap",display:"inline-flex",justifyContent:"center",padding:o.spacing(0,.75),fontSize:o.typography.pxToRem(12),fontWeight:o.typography.fontWeightBold,borderRadius:o.shape.borderRadius*.75,transition:o.transitions.create("all",{duration:o.transitions.duration.shorter}),...e,...a$1}});var L=o=>o.charAt(0).toUpperCase()+o.slice(1),m=forwardRef(({children:o,color:r="default",variant:t="soft",startIcon:e,endIcon:a,sx:f,...b},g)=>{let y=useTheme(),p={width:16,height:16,"& svg, img":{width:1,height:1,objectFit:"cover"}};return jsxs(i,{ref:g,component:"span",className:l.root,ownerState:{color:r,variant:t},sx:{...e&&{pl:.75},...a&&{pr:.75},...f},theme:y,...b,children:[e&&jsx(d,{component:"span",className:l.icon,sx:{mr:.75,...p},children:e}),typeof o=="string"?L(o):o,a&&jsx(d,{component:"span",className:l.icon,sx:{ml:.75,...p},children:a})]})});m.displayName="Label";var H=m;
8
8
 
9
9
  export { H as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zydon/common",
3
- "version": "2.0.30",
3
+ "version": "2.0.32",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "./dist/index.js",