@leapdevuk/component-toolbox 0.0.72 → 0.0.73

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,3 +1,3 @@
1
- import { TypographyOwnProps } from '@mui/material/Typography';
2
- declare const LCTTypography: (props: TypographyOwnProps) => import("react/jsx-runtime").JSX.Element;
1
+ import { TypographyProps } from '@mui/material/Typography';
2
+ declare const LCTTypography: (props: TypographyProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default LCTTypography;
package/dist/index.cjs.js CHANGED
@@ -70,7 +70,7 @@ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:et(18,`(${n})`));return
70
70
  `)):console.error([`MUI: The \`theme.${n}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${n}\` as a number.`].join(`
71
71
  `)));const s=a[i];return o>=0?s:typeof s=="number"?-s:`-${s}`}:typeof a=="function"?a:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${n}\` value (${a}) is invalid.`,"It should be a number, an array or a function."].join(`
72
72
  `)),()=>{})}function Gr(t){return Lt(t,"spacing",8,"spacing")}function At(t,n){return typeof n=="string"||n==null?n:t(n)}function Hc(t,n){return e=>t.reduce((r,a)=>(r[a]=At(n,e),r),{})}function Vc(t,n,e,r){if(!n.includes(e))return null;const a=Lc(e),o=Hc(a,r),i=t[e];return Xe(t,i,o)}function Pa(t,n){const e=Gr(t.theme);return Object.keys(t).map(r=>Vc(t,n,r,e)).reduce(Ot,{})}function Ce(t){return Pa(t,tr)}Ce.propTypes=process.env.NODE_ENV!=="production"?tr.reduce((t,n)=>(t[n]=nt,t),{}):{};Ce.filterProps=tr;function Te(t){return Pa(t,rr)}Te.propTypes=process.env.NODE_ENV!=="production"?rr.reduce((t,n)=>(t[n]=nt,t),{}):{};Te.filterProps=rr;process.env.NODE_ENV!=="production"&&Ac.reduce((t,n)=>(t[n]=nt,t),{});function nr(...t){const n=t.reduce((r,a)=>(a.filterProps.forEach(o=>{r[o]=a}),r),{}),e=r=>Object.keys(r).reduce((a,o)=>n[o]?Ot(a,n[o](r)):a,{});return e.propTypes=process.env.NODE_ENV!=="production"?t.reduce((r,a)=>Object.assign(r,a.propTypes),{}):{},e.filterProps=t.reduce((r,a)=>r.concat(a.filterProps),[]),e}function Le(t){return typeof t!="number"?t:`${t}px solid`}function Ae(t,n){return Pe({prop:t,themeKey:"borders",transform:n})}const Wc=Ae("border",Le),Bc=Ae("borderTop",Le),Yc=Ae("borderRight",Le),qc=Ae("borderBottom",Le),zc=Ae("borderLeft",Le),Gc=Ae("borderColor"),Qc=Ae("borderTopColor"),Kc=Ae("borderRightColor"),Zc=Ae("borderBottomColor"),Xc=Ae("borderLeftColor"),Uc=Ae("outline",Le),Jc=Ae("outlineColor"),ar=t=>{if(t.borderRadius!==void 0&&t.borderRadius!==null){const n=Lt(t.theme,"shape.borderRadius",4,"borderRadius"),e=r=>({borderRadius:At(n,r)});return Xe(t,t.borderRadius,e)}return null};ar.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:nt}:{};ar.filterProps=["borderRadius"];nr(Wc,Bc,Yc,qc,zc,Gc,Qc,Kc,Zc,Xc,ar,Uc,Jc);const or=t=>{if(t.gap!==void 0&&t.gap!==null){const n=Lt(t.theme,"spacing",8,"gap"),e=r=>({gap:At(n,r)});return Xe(t,t.gap,e)}return null};or.propTypes=process.env.NODE_ENV!=="production"?{gap:nt}:{};or.filterProps=["gap"];const sr=t=>{if(t.columnGap!==void 0&&t.columnGap!==null){const n=Lt(t.theme,"spacing",8,"columnGap"),e=r=>({columnGap:At(n,r)});return Xe(t,t.columnGap,e)}return null};sr.propTypes=process.env.NODE_ENV!=="production"?{columnGap:nt}:{};sr.filterProps=["columnGap"];const ir=t=>{if(t.rowGap!==void 0&&t.rowGap!==null){const n=Lt(t.theme,"spacing",8,"rowGap"),e=r=>({rowGap:At(n,r)});return Xe(t,t.rowGap,e)}return null};ir.propTypes=process.env.NODE_ENV!=="production"?{rowGap:nt}:{};ir.filterProps=["rowGap"];const e0=Pe({prop:"gridColumn"}),t0=Pe({prop:"gridRow"}),r0=Pe({prop:"gridAutoFlow"}),n0=Pe({prop:"gridAutoColumns"}),a0=Pe({prop:"gridAutoRows"}),o0=Pe({prop:"gridTemplateColumns"}),s0=Pe({prop:"gridTemplateRows"}),i0=Pe({prop:"gridTemplateAreas"}),c0=Pe({prop:"gridArea"});nr(or,sr,ir,e0,t0,r0,n0,a0,o0,s0,i0,c0);function pt(t,n){return n==="grey"?n:t}const u0=Pe({prop:"color",themeKey:"palette",transform:pt}),l0=Pe({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:pt}),f0=Pe({prop:"backgroundColor",themeKey:"palette",transform:pt});nr(u0,l0,f0);function Ie(t){return t<=1&&t!==0?`${t*100}%`:t}const d0=Pe({prop:"width",transform:Ie}),Qr=t=>{if(t.maxWidth!==void 0&&t.maxWidth!==null){const n=e=>{var a,o,i,s,u;const r=((i=(o=(a=t.theme)==null?void 0:a.breakpoints)==null?void 0:o.values)==null?void 0:i[e])||Jt[e];return r?((u=(s=t.theme)==null?void 0:s.breakpoints)==null?void 0:u.unit)!=="px"?{maxWidth:`${r}${t.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Ie(e)}};return Xe(t,t.maxWidth,n)}return null};Qr.filterProps=["maxWidth"];const h0=Pe({prop:"minWidth",transform:Ie}),m0=Pe({prop:"height",transform:Ie}),g0=Pe({prop:"maxHeight",transform:Ie}),y0=Pe({prop:"minHeight",transform:Ie});Pe({prop:"size",cssProperty:"width",transform:Ie});Pe({prop:"size",cssProperty:"height",transform:Ie});const p0=Pe({prop:"boxSizing"});nr(d0,Qr,h0,m0,g0,y0,p0);const Ht={border:{themeKey:"borders",transform:Le},borderTop:{themeKey:"borders",transform:Le},borderRight:{themeKey:"borders",transform:Le},borderBottom:{themeKey:"borders",transform:Le},borderLeft:{themeKey:"borders",transform:Le},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Le},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ar},color:{themeKey:"palette",transform:pt},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:pt},backgroundColor:{themeKey:"palette",transform:pt},p:{style:Te},pt:{style:Te},pr:{style:Te},pb:{style:Te},pl:{style:Te},px:{style:Te},py:{style:Te},padding:{style:Te},paddingTop:{style:Te},paddingRight:{style:Te},paddingBottom:{style:Te},paddingLeft:{style:Te},paddingX:{style:Te},paddingY:{style:Te},paddingInline:{style:Te},paddingInlineStart:{style:Te},paddingInlineEnd:{style:Te},paddingBlock:{style:Te},paddingBlockStart:{style:Te},paddingBlockEnd:{style:Te},m:{style:Ce},mt:{style:Ce},mr:{style:Ce},mb:{style:Ce},ml:{style:Ce},mx:{style:Ce},my:{style:Ce},margin:{style:Ce},marginTop:{style:Ce},marginRight:{style:Ce},marginBottom:{style:Ce},marginLeft:{style:Ce},marginX:{style:Ce},marginY:{style:Ce},marginInline:{style:Ce},marginInlineStart:{style:Ce},marginInlineEnd:{style:Ce},marginBlock:{style:Ce},marginBlockStart:{style:Ce},marginBlockEnd:{style:Ce},displayPrint:{cssProperty:!1,transform:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:or},rowGap:{style:ir},columnGap:{style:sr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ie},maxWidth:{style:Qr},minWidth:{transform:Ie},height:{transform:Ie},maxHeight:{transform:Ie},minHeight:{transform:Ie},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function b0(...t){const n=t.reduce((r,a)=>r.concat(Object.keys(a)),[]),e=new Set(n);return t.every(r=>e.size===Object.keys(r).length)}function w0(t,n){return typeof t=="function"?t(n):t}function v0(){function t(e,r,a,o){const i={[e]:r,theme:a},s=o[e];if(!s)return{[e]:r};const{cssProperty:u=e,themeKey:f,transform:h,style:d}=s;if(r==null)return null;if(f==="typography"&&r==="inherit")return{[e]:r};const g=er(a,f)||{};return d?d(i):Xe(i,r,k=>{let w=Zt(g,h,k);return k===w&&typeof k=="string"&&(w=Zt(g,h,`${e}${k==="default"?"":Ge(k)}`,k)),u===!1?w:{[u]:w}})}function n(e){const{sx:r,theme:a={}}=e||{};if(!r)return null;const o=a.unstable_sxConfig??Ht;function i(s){let u=s;if(typeof s=="function")u=s(a);else if(typeof s!="object")return s;if(!u)return null;const f=jc(a.breakpoints),h=Object.keys(f);let d=f;return Object.keys(u).forEach(g=>{const x=w0(u[g],a);if(x!=null)if(typeof x=="object")if(o[g])d=Ot(d,t(g,x,a,o));else{const k=Xe({theme:a},x,w=>({[g]:w}));b0(k,x)?d[g]=n({sx:x,theme:a}):d=Ot(d,k)}else d=Ot(d,t(g,x,a,o))}),Dc(a,$c(h,d))}return Array.isArray(r)?r.map(i):i(r)}return n}const wt=v0();wt.filterProps=["sx"];const x0=t=>{var r;const n={systemProps:{},otherProps:{}},e=((r=t==null?void 0:t.theme)==null?void 0:r.unstable_sxConfig)??Ht;return Object.keys(t).forEach(a=>{e[a]?n.systemProps[a]=t[a]:n.otherProps[a]=t[a]}),n};function C0(t){const{sx:n,...e}=t,{systemProps:r,otherProps:a}=x0(e);let o;return Array.isArray(n)?o=[r,...n]:typeof n=="function"?o=(...i)=>{const s=n(...i);return ze(s)?{...r,...s}:r}:o={...r,...n},{...a,sx:o}}function T0(t){for(var n=0,e,r=0,a=t.length;a>=4;++r,a-=4)e=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,e=(e&65535)*1540483477+((e>>>16)*59797<<16),e^=e>>>24,n=(e&65535)*1540483477+((e>>>16)*59797<<16)^(n&65535)*1540483477+((n>>>16)*59797<<16);switch(a){case 3:n^=(t.charCodeAt(r+2)&255)<<16;case 2:n^=(t.charCodeAt(r+1)&255)<<8;case 1:n^=t.charCodeAt(r)&255,n=(n&65535)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,n=(n&65535)*1540483477+((n>>>16)*59797<<16),((n^n>>>15)>>>0).toString(36)}var S0={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function E0(t){var n=Object.create(null);return function(e){return n[e]===void 0&&(n[e]=t(e)),n[e]}}var k0=!1,M0=/[A-Z]|^ms/g,D0=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Oa=function(n){return n.charCodeAt(1)===45},Wn=function(n){return n!=null&&typeof n!="boolean"},Sr=E0(function(t){return Oa(t)?t:t.replace(M0,"-$&").toLowerCase()}),Bn=function(n,e){switch(n){case"animation":case"animationName":if(typeof e=="string")return e.replace(D0,function(r,a,o){return Je={name:a,styles:o,next:Je},a})}return S0[n]!==1&&!Oa(n)&&typeof e=="number"&&e!==0?e+"px":e},P0="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Xt(t,n,e){if(e==null)return"";var r=e;if(r.__emotion_styles!==void 0)return r;switch(typeof e){case"boolean":return"";case"object":{var a=e;if(a.anim===1)return Je={name:a.name,styles:a.styles,next:Je},a.name;var o=e;if(o.styles!==void 0){var i=o.next;if(i!==void 0)for(;i!==void 0;)Je={name:i.name,styles:i.styles,next:Je},i=i.next;var s=o.styles+";";return s}return O0(t,n,e)}}var u=e;return u}function O0(t,n,e){var r="";if(Array.isArray(e))for(var a=0;a<e.length;a++)r+=Xt(t,n,e[a])+";";else for(var o in e){var i=e[o];if(typeof i!="object"){var s=i;Wn(s)&&(r+=Sr(o)+":"+Bn(o,s)+";")}else{if(o==="NO_COMPONENT_SELECTOR"&&k0)throw new Error(P0);if(Array.isArray(i)&&typeof i[0]=="string"&&n==null)for(var u=0;u<i.length;u++)Wn(i[u])&&(r+=Sr(o)+":"+Bn(o,i[u])+";");else{var f=Xt(t,n,i);switch(o){case"animation":case"animationName":{r+=Sr(o)+":"+f+";";break}default:r+=o+"{"+f+"}"}}}}return r}var Yn=/label:\s*([^\s;{]+)\s*(;|$)/g,Je;function _0(t,n,e){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var r=!0,a="";Je=void 0;var o=t[0];if(o==null||o.raw===void 0)r=!1,a+=Xt(e,n,o);else{var i=o;a+=i[0]}for(var s=1;s<t.length;s++)if(a+=Xt(e,n,t[s]),r){var u=o;a+=u[s]}Yn.lastIndex=0;for(var f="",h;(h=Yn.exec(a))!==null;)f+="-"+h[1];var d=T0(a)+f;return{name:d,styles:a,next:Je}}/**
73
- * @mui/styled-engine v6.1.5
73
+ * @mui/styled-engine v6.1.6
74
74
  *
75
75
  * @license MIT
76
76
  * This source code is licensed under the MIT license found in the