@dev-blinq/ui-systems 1.0.71 → 1.0.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.
- package/dist/index.js +1 -1
- package/dist/index.mjs +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -201,4 +201,4 @@ theme.transitions = createTransitions(theme.transitions || {});
|
|
|
201
201
|
|
|
202
202
|
export default theme;`}function Pt(e={},...n){const{breakpoints:t,mixins:r={},spacing:a,palette:i={},transitions:c={},typography:o={},shape:f,...d}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":Ve(20));const p=Ft(i),g=sa(e);let m=Pe(g,{mixins:ac(g.breakpoints,r),palette:p,shadows:lc.slice(),typography:oc(p,o),transitions:gc(c),zIndex:{...mc}});if(m=Pe(m,d),m=n.reduce((E,v)=>Pe(E,v),m),process.env.NODE_ENV!=="production"){const E=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],v=(u,A)=>{let x;for(x in u){const M=u[x];if(E.includes(x)&&Object.keys(M).length>0){if(process.env.NODE_ENV!=="production"){const w=hs("",x);console.error([`MUI: The \`${A}\` component increases the CSS specificity of the \`${x}\` internal state.`,"You can not override it like this: ",JSON.stringify(u,null,2),"",`Instead, you need to use the '&.${w}' syntax:`,JSON.stringify({root:{[`&.${w}`]:M}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
203
203
|
`))}u[x]={}}}};Object.keys(m.components).forEach(u=>{const A=m.components[u].styleOverrides;A&&u.startsWith("Mui")&&v(A,u)})}return m.unstable_sxConfig={...rt,...d==null?void 0:d.unstable_sxConfig},m.unstable_sx=function(v){return un({sx:v,theme:this})},m.toRuntimeSource=ca,m}function yc(e){let n;return e<1?n=5.11916*e**2:n=4.5*Math.log(e+1)+2,Math.round(n*10)/1e3}const vc=[...Array(25)].map((e,n)=>{if(n===0)return"none";const t=yc(n);return`linear-gradient(rgba(255 255 255 / ${t}), rgba(255 255 255 / ${t}))`});function ua(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function la(e){return e==="dark"?vc:[]}function bc(e){const{palette:n={mode:"light"},opacity:t,overlays:r,...a}=e,i=Ft(n);return{palette:i,opacity:{...ua(i.mode),...t},overlays:r||la(i.mode),...a}}function Sc(e){var n;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((n=e[1])!=null&&n.match(/(mode|contrastThreshold|tonalOffset)/))}const Cc=e=>[...[...Array(25)].map((n,t)=>`--${e?`${e}-`:""}overlays-${t}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],Ec=e=>(n,t)=>{const r=e.rootSelector||":root",a=e.colorSchemeSelector;let i=a;if(a==="class"&&(i=".%s"),a==="data"&&(i="[data-%s]"),a!=null&&a.startsWith("data-")&&!a.includes("%s")&&(i=`[${a}="%s"]`),e.defaultColorScheme===n){if(n==="dark"){const c={};return Cc(e.cssVarPrefix).forEach(o=>{c[o]=t[o],delete t[o]}),i==="media"?{[r]:t,"@media (prefers-color-scheme: dark)":{[r]:c}}:i?{[i.replace("%s",n)]:c,[`${r}, ${i.replace("%s",n)}`]:t}:{[r]:{...t,...c}}}if(i&&i!=="media")return`${r}, ${i.replace("%s",String(n))}`}else if(n){if(i==="media")return{[`@media (prefers-color-scheme: ${String(n)})`]:{[r]:t}};if(i)return i.replace("%s",String(n))}return r};function Ac(e,n){n.forEach(t=>{e[t]||(e[t]={})})}function h(e,n,t){!e[n]&&t&&(e[n]=t)}function bn(e){return typeof e!="string"||!e.startsWith("hsl")?e:ea(e)}function je(e,n){`${n}Channel`in e||(e[`${n}Channel`]=vn(bn(e[n]),`MUI: Can't create \`palette.${n}Channel\` because \`palette.${n}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
|
204
|
-
To suppress this warning, you need to explicitly provide the \`palette.${n}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function xc(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const _e=e=>{try{return e()}catch{}},Tc=(e="mui")=>Ur.unstable_createGetCssVar(e);function vt(e,n,t,r){if(!n)return;n=n===!0?{}:n;const a=r==="dark"?"dark":"light";if(!t){e[r]=bc({...n,palette:{mode:a,...n==null?void 0:n.palette}});return}const{palette:i,...c}=Pt({...t,palette:{mode:a,...n==null?void 0:n.palette}});return e[r]={...n,palette:i,opacity:{...ua(a),...n==null?void 0:n.opacity},overlays:(n==null?void 0:n.overlays)||la(a)},c}function Rc(e={},...n){const{colorSchemes:t={light:!0},defaultColorScheme:r,disableCssColorScheme:a=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:c=Sc,colorSchemeSelector:o=t.light&&t.dark?"media":void 0,rootSelector:f=":root",...d}=e,p=Object.keys(t)[0],g=r||(t.light&&p!=="light"?"light":p),m=Tc(i),{[g]:E,light:v,dark:u,...A}=t,x={...A};let M=E;if((g==="dark"&&!("dark"in t)||g==="light"&&!("light"in t))&&(M=!0),!M)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${g}\` option is either missing or invalid.`:Ve(21,g));const w=vt(x,M,d,g);v&&!x.light&&vt(x,v,void 0,"light"),u&&!x.dark&&vt(x,u,void 0,"dark");let P={defaultColorScheme:g,...w,cssVarPrefix:i,colorSchemeSelector:o,rootSelector:f,getCssVar:m,colorSchemes:x,font:{...tc(w.typography),...w.font},spacing:xc(d.spacing)};Object.keys(P.colorSchemes).forEach(z=>{const s=P.colorSchemes[z].palette,k=U=>{const I=U.split("-"),re=I[1],ce=I[2];return m(U,s[re][ce])};if(s.mode==="light"&&(h(s.common,"background","#fff"),h(s.common,"onBackground","#000")),s.mode==="dark"&&(h(s.common,"background","#000"),h(s.common,"onBackground","#fff")),Ac(s,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),s.mode==="light"){h(s.Alert,"errorColor",ie(s.error.light,.6)),h(s.Alert,"infoColor",ie(s.info.light,.6)),h(s.Alert,"successColor",ie(s.success.light,.6)),h(s.Alert,"warningColor",ie(s.warning.light,.6)),h(s.Alert,"errorFilledBg",k("palette-error-main")),h(s.Alert,"infoFilledBg",k("palette-info-main")),h(s.Alert,"successFilledBg",k("palette-success-main")),h(s.Alert,"warningFilledBg",k("palette-warning-main")),h(s.Alert,"errorFilledColor",_e(()=>s.getContrastText(s.error.main))),h(s.Alert,"infoFilledColor",_e(()=>s.getContrastText(s.info.main))),h(s.Alert,"successFilledColor",_e(()=>s.getContrastText(s.success.main))),h(s.Alert,"warningFilledColor",_e(()=>s.getContrastText(s.warning.main))),h(s.Alert,"errorStandardBg",oe(s.error.light,.9)),h(s.Alert,"infoStandardBg",oe(s.info.light,.9)),h(s.Alert,"successStandardBg",oe(s.success.light,.9)),h(s.Alert,"warningStandardBg",oe(s.warning.light,.9)),h(s.Alert,"errorIconColor",k("palette-error-main")),h(s.Alert,"infoIconColor",k("palette-info-main")),h(s.Alert,"successIconColor",k("palette-success-main")),h(s.Alert,"warningIconColor",k("palette-warning-main")),h(s.AppBar,"defaultBg",k("palette-grey-100")),h(s.Avatar,"defaultBg",k("palette-grey-400")),h(s.Button,"inheritContainedBg",k("palette-grey-300")),h(s.Button,"inheritContainedHoverBg",k("palette-grey-A100")),h(s.Chip,"defaultBorder",k("palette-grey-400")),h(s.Chip,"defaultAvatarColor",k("palette-grey-700")),h(s.Chip,"defaultIconColor",k("palette-grey-700")),h(s.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),h(s.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),h(s.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),h(s.LinearProgress,"primaryBg",oe(s.primary.main,.62)),h(s.LinearProgress,"secondaryBg",oe(s.secondary.main,.62)),h(s.LinearProgress,"errorBg",oe(s.error.main,.62)),h(s.LinearProgress,"infoBg",oe(s.info.main,.62)),h(s.LinearProgress,"successBg",oe(s.success.main,.62)),h(s.LinearProgress,"warningBg",oe(s.warning.main,.62)),h(s.Skeleton,"bg",`rgba(${k("palette-text-primaryChannel")} / 0.11)`),h(s.Slider,"primaryTrack",oe(s.primary.main,.62)),h(s.Slider,"secondaryTrack",oe(s.secondary.main,.62)),h(s.Slider,"errorTrack",oe(s.error.main,.62)),h(s.Slider,"infoTrack",oe(s.info.main,.62)),h(s.Slider,"successTrack",oe(s.success.main,.62)),h(s.Slider,"warningTrack",oe(s.warning.main,.62));const U=Nn(s.background.default,.8);h(s.SnackbarContent,"bg",U),h(s.SnackbarContent,"color",_e(()=>s.getContrastText(U))),h(s.SpeedDialAction,"fabHoverBg",Nn(s.background.paper,.15)),h(s.StepConnector,"border",k("palette-grey-400")),h(s.StepContent,"border",k("palette-grey-400")),h(s.Switch,"defaultColor",k("palette-common-white")),h(s.Switch,"defaultDisabledColor",k("palette-grey-100")),h(s.Switch,"primaryDisabledColor",oe(s.primary.main,.62)),h(s.Switch,"secondaryDisabledColor",oe(s.secondary.main,.62)),h(s.Switch,"errorDisabledColor",oe(s.error.main,.62)),h(s.Switch,"infoDisabledColor",oe(s.info.main,.62)),h(s.Switch,"successDisabledColor",oe(s.success.main,.62)),h(s.Switch,"warningDisabledColor",oe(s.warning.main,.62)),h(s.TableCell,"border",oe(kn(s.divider,1),.88)),h(s.Tooltip,"bg",kn(s.grey[700],.92))}if(s.mode==="dark"){h(s.Alert,"errorColor",oe(s.error.light,.6)),h(s.Alert,"infoColor",oe(s.info.light,.6)),h(s.Alert,"successColor",oe(s.success.light,.6)),h(s.Alert,"warningColor",oe(s.warning.light,.6)),h(s.Alert,"errorFilledBg",k("palette-error-dark")),h(s.Alert,"infoFilledBg",k("palette-info-dark")),h(s.Alert,"successFilledBg",k("palette-success-dark")),h(s.Alert,"warningFilledBg",k("palette-warning-dark")),h(s.Alert,"errorFilledColor",_e(()=>s.getContrastText(s.error.dark))),h(s.Alert,"infoFilledColor",_e(()=>s.getContrastText(s.info.dark))),h(s.Alert,"successFilledColor",_e(()=>s.getContrastText(s.success.dark))),h(s.Alert,"warningFilledColor",_e(()=>s.getContrastText(s.warning.dark))),h(s.Alert,"errorStandardBg",ie(s.error.light,.9)),h(s.Alert,"infoStandardBg",ie(s.info.light,.9)),h(s.Alert,"successStandardBg",ie(s.success.light,.9)),h(s.Alert,"warningStandardBg",ie(s.warning.light,.9)),h(s.Alert,"errorIconColor",k("palette-error-main")),h(s.Alert,"infoIconColor",k("palette-info-main")),h(s.Alert,"successIconColor",k("palette-success-main")),h(s.Alert,"warningIconColor",k("palette-warning-main")),h(s.AppBar,"defaultBg",k("palette-grey-900")),h(s.AppBar,"darkBg",k("palette-background-paper")),h(s.AppBar,"darkColor",k("palette-text-primary")),h(s.Avatar,"defaultBg",k("palette-grey-600")),h(s.Button,"inheritContainedBg",k("palette-grey-800")),h(s.Button,"inheritContainedHoverBg",k("palette-grey-700")),h(s.Chip,"defaultBorder",k("palette-grey-700")),h(s.Chip,"defaultAvatarColor",k("palette-grey-300")),h(s.Chip,"defaultIconColor",k("palette-grey-300")),h(s.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),h(s.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),h(s.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),h(s.LinearProgress,"primaryBg",ie(s.primary.main,.5)),h(s.LinearProgress,"secondaryBg",ie(s.secondary.main,.5)),h(s.LinearProgress,"errorBg",ie(s.error.main,.5)),h(s.LinearProgress,"infoBg",ie(s.info.main,.5)),h(s.LinearProgress,"successBg",ie(s.success.main,.5)),h(s.LinearProgress,"warningBg",ie(s.warning.main,.5)),h(s.Skeleton,"bg",`rgba(${k("palette-text-primaryChannel")} / 0.13)`),h(s.Slider,"primaryTrack",ie(s.primary.main,.5)),h(s.Slider,"secondaryTrack",ie(s.secondary.main,.5)),h(s.Slider,"errorTrack",ie(s.error.main,.5)),h(s.Slider,"infoTrack",ie(s.info.main,.5)),h(s.Slider,"successTrack",ie(s.success.main,.5)),h(s.Slider,"warningTrack",ie(s.warning.main,.5));const U=Nn(s.background.default,.98);h(s.SnackbarContent,"bg",U),h(s.SnackbarContent,"color",_e(()=>s.getContrastText(U))),h(s.SpeedDialAction,"fabHoverBg",Nn(s.background.paper,.15)),h(s.StepConnector,"border",k("palette-grey-600")),h(s.StepContent,"border",k("palette-grey-600")),h(s.Switch,"defaultColor",k("palette-grey-300")),h(s.Switch,"defaultDisabledColor",k("palette-grey-600")),h(s.Switch,"primaryDisabledColor",ie(s.primary.main,.55)),h(s.Switch,"secondaryDisabledColor",ie(s.secondary.main,.55)),h(s.Switch,"errorDisabledColor",ie(s.error.main,.55)),h(s.Switch,"infoDisabledColor",ie(s.info.main,.55)),h(s.Switch,"successDisabledColor",ie(s.success.main,.55)),h(s.Switch,"warningDisabledColor",ie(s.warning.main,.55)),h(s.TableCell,"border",ie(kn(s.divider,1),.68)),h(s.Tooltip,"bg",kn(s.grey[700],.92))}je(s.background,"default"),je(s.background,"paper"),je(s.common,"background"),je(s.common,"onBackground"),je(s,"divider"),Object.keys(s).forEach(U=>{const I=s[U];U!=="tonalOffset"&&I&&typeof I=="object"&&(I.main&&h(s[U],"mainChannel",vn(bn(I.main))),I.light&&h(s[U],"lightChannel",vn(bn(I.light))),I.dark&&h(s[U],"darkChannel",vn(bn(I.dark))),I.contrastText&&h(s[U],"contrastTextChannel",vn(bn(I.contrastText))),U==="text"&&(je(s[U],"primary"),je(s[U],"secondary")),U==="action"&&(I.active&&je(s[U],"active"),I.selected&&je(s[U],"selected")))})}),P=n.reduce((z,s)=>Pe(z,s),P);const b={prefix:i,disableCssColorScheme:a,shouldSkipGeneratingVar:c,getSelector:Ec(P)},{vars:D,generateThemeVars:N,generateStyleSheets:de}=nc(P,b);return P.vars=D,Object.entries(P.colorSchemes[P.defaultColorScheme]).forEach(([z,s])=>{P[z]=s}),P.generateThemeVars=N,P.generateStyleSheets=de,P.generateSpacing=function(){return Ur.createSpacing(d.spacing,Lt(this))},P.getColorSchemeSelector=rc(o),P.spacing=P.generateSpacing(),P.shouldSkipGeneratingVar=c,P.unstable_sxConfig={...rt,...d==null?void 0:d.unstable_sxConfig},P.unstable_sx=function(s){return un({sx:s,theme:this})},P.toRuntimeSource=ca,P}function _r(e,n,t){e.colorSchemes&&t&&(e.colorSchemes[n]={...t!==!0&&t,palette:Ft({...t===!0?{}:t.palette,mode:n})})}function wc(e={},...n){const{palette:t,cssVariables:r=!1,colorSchemes:a=t?void 0:{light:!0},defaultColorScheme:i=t==null?void 0:t.mode,...c}=e,o=i||"light",f=a==null?void 0:a[o],d={...a,...t?{[o]:{...typeof f!="boolean"&&f,palette:t}}:void 0};if(r===!1){if(!("colorSchemes"in e))return Pt(e,...n);let p=t;"palette"in e||d[o]&&(d[o]!==!0?p=d[o].palette:o==="dark"&&(p={mode:"dark"}));const g=Pt({...e,palette:p},...n);return g.defaultColorScheme=o,g.colorSchemes=d,g.palette.mode==="light"&&(g.colorSchemes.light={...d.light!==!0&&d.light,palette:g.palette},_r(g,"dark",d.dark)),g.palette.mode==="dark"&&(g.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:g.palette},_r(g,"light",d.light)),g}return!t&&!("light"in d)&&o==="light"&&(d.light=!0),Rc({...c,colorSchemes:d,defaultColorScheme:o,...typeof r!="boolean"&&r},...n)}const Pc=wc();function Oc(e){const{variants:n,...t}=e,r={variants:n,style:Ke.internal_serializeStyles(t),isProcessed:!0};return r.style===t||n&&n.forEach(a=>{typeof a.style!="function"&&(a.style=Ke.internal_serializeStyles(a.style))}),r}const Mc=sa();function bt(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function qe(e,n){return n&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${n}{${String(e.styles)}}`),e}function kc(e){return e?(n,t)=>t[e]:null}function Nc(e,n,t){e.theme=_c(e.theme)?t:e.theme[n]||e.theme}function $n(e,n,t){const r=typeof n=="function"?n(e):n;if(Array.isArray(r))return r.flatMap(a=>$n(e,a,t));if(Array.isArray(r==null?void 0:r.variants)){let a;if(r.isProcessed)a=t?qe(r.style,t):r.style;else{const{variants:i,...c}=r;a=t?qe(Ke.internal_serializeStyles(c),t):c}return fa(e,r.variants,[a],t)}return r!=null&&r.isProcessed?t?qe(Ke.internal_serializeStyles(r.style),t):r.style:t?qe(Ke.internal_serializeStyles(r),t):r}function fa(e,n,t=[],r=void 0){var i;let a;e:for(let c=0;c<n.length;c+=1){const o=n[c];if(typeof o.props=="function"){if(a??(a={...e,...e.ownerState,ownerState:e.ownerState}),!o.props(a))continue}else for(const f in o.props)if(e[f]!==o.props[f]&&((i=e.ownerState)==null?void 0:i[f])!==o.props[f])continue e;typeof o.style=="function"?(a??(a={...e,...e.ownerState,ownerState:e.ownerState}),t.push(r?qe(Ke.internal_serializeStyles(o.style(a)),r):o.style(a))):t.push(r?qe(Ke.internal_serializeStyles(o.style),r):o.style)}return t}function Dc(e={}){const{themeId:n,defaultTheme:t=Mc,rootShouldForwardProp:r=bt,slotShouldForwardProp:a=bt}=e;function i(o){Nc(o,n,t)}return(o,f={})=>{Ke.internal_mutateStyles(o,D=>D.filter(N=>N!==un));const{name:d,slot:p,skipVariantsResolver:g,skipSx:m,overridesResolver:E=kc(da(p)),...v}=f,u=d&&d.startsWith("Mui")||p?"components":"custom",A=g!==void 0?g:p&&p!=="Root"&&p!=="root"||!1,x=m||!1;let M=bt;p==="Root"||p==="root"?M=r:p?M=a:Fc(o)&&(M=void 0);const w=Ke(o,{shouldForwardProp:M,label:Ic(d,p),...v}),P=D=>{if(D.__emotion_real===D)return D;if(typeof D=="function")return function(de){return $n(de,D,de.theme.modularCssLayers?u:void 0)};if(Ge(D)){const N=Oc(D);return function(z){return N.variants?$n(z,N,z.theme.modularCssLayers?u:void 0):z.theme.modularCssLayers?qe(N.style,u):N.style}}return D},b=(...D)=>{const N=[],de=D.map(P),z=[];if(N.push(i),d&&E&&z.push(function(I){var be,Ie;const ce=(Ie=(be=I.theme.components)==null?void 0:be[d])==null?void 0:Ie.styleOverrides;if(!ce)return null;const ye={};for(const Le in ce)ye[Le]=$n(I,ce[Le],I.theme.modularCssLayers?"theme":void 0);return E(I,ye)}),d&&!A&&z.push(function(I){var ye,be;const re=I.theme,ce=(be=(ye=re==null?void 0:re.components)==null?void 0:ye[d])==null?void 0:be.variants;return ce?fa(I,ce,[],I.theme.modularCssLayers?"theme":void 0):null}),x||z.push(un),Array.isArray(de[0])){const U=de.shift(),I=new Array(N.length).fill(""),re=new Array(z.length).fill("");let ce;ce=[...I,...U,...re],ce.raw=[...I,...U.raw,...re],N.unshift(ce)}const s=[...N,...de,...z],k=w(...s);return o.muiName&&(k.muiName=o.muiName),process.env.NODE_ENV!=="production"&&(k.displayName=Bc(d,p,o)),k};return w.withConfig&&(b.withConfig=w.withConfig),b}}function Bc(e,n,t){return e?`${e}${Ut(n||"")}`:`Styled(${ds(t)})`}function Ic(e,n){let t;return process.env.NODE_ENV!=="production"&&e&&(t=`${e}-${da(n||"Root")}`),t}function _c(e){for(const n in e)return!1;return!0}function Fc(e){return typeof e=="string"&&e.charCodeAt(0)>96}function da(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function $c(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Uc=e=>$c(e)&&e!=="classes",Lc=Dc({themeId:wo,defaultTheme:Pc,rootShouldForwardProp:Uc});var pa={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Fr=se.createContext&&se.createContext(pa),jc=["attr","size","title"];function Gc(e,n){if(e==null)return{};var t=Kc(e,n),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(n.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(t[r]=e[r])}return t}function Kc(e,n){if(e==null)return{};var t={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(n.indexOf(r)>=0)continue;t[r]=e[r]}return t}function Gn(){return Gn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Gn.apply(this,arguments)}function $r(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),t.push.apply(t,r)}return t}function Kn(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?$r(Object(t),!0).forEach(function(r){Wc(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):$r(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function Wc(e,n,t){return n=Vc(n),n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Vc(e){var n=Yc(e,"string");return typeof n=="symbol"?n:n+""}function Yc(e,n){if(typeof e!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var r=t.call(e,n||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function ga(e){return e&&e.map((n,t)=>se.createElement(n.tag,Kn({key:t},n.attr),ga(n.child)))}function Hc(e){return n=>se.createElement(zc,Gn({attr:Kn({},e.attr)},n),ga(e.child))}function zc(e){var n=t=>{var{attr:r,size:a,title:i}=e,c=Gc(e,jc),o=a||t.size||"1em",f;return t.className&&(f=t.className),e.className&&(f=(f?f+" ":"")+e.className),se.createElement("svg",Gn({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,r,c,{className:f,style:Kn(Kn({color:e.color||t.color},t.style),e.style),height:o,width:o,xmlns:"http://www.w3.org/2000/svg"}),i&&se.createElement("title",null,i),e.children)};return Fr!==void 0?se.createElement(Fr.Consumer,null,t=>n(t)):n(pa)}function Bn(e){return Hc({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M15.716 1.329a1.341 1.341 0 0 1 2.109 1.55L15.147 9h4.161c1.623 0 2.372 2.016 1.143 3.075L8.102 22.721a1.148 1.148 0 0 1-1.81-1.317L8.996 15H4.674c-1.619 0-2.37-2.008-1.148-3.07l12.19-10.6Zm.452 1.595L4.51 13.061a.25.25 0 0 0 .164.439h5.45a.749.749 0 0 1 .692 1.041l-2.559 6.066 11.215-9.668a.25.25 0 0 0-.164-.439H14a.75.75 0 0 1-.687-1.05Z"},child:[]}]})(e)}const Zc=Lc(te.LinearProgress)(({theme:e})=>({height:8,borderRadius:6,"&.MuiLinearProgress-colorPrimary":{backgroundColor:e.palette.grey[200]},"& .MuiLinearProgress-bar":{borderRadius:6,background:"rgba(8, 55, 158, 1)"}})),qc=["Getting started...","Loading your stuff...","Working on it...","Almost done..."],Xc=[y.jsx(te.CircularProgress,{size:12,sx:{color:"black"}}),y.jsx(Bn,{size:16}),y.jsx(Bn,{size:16}),y.jsx(Bn,{size:16}),y.jsx(Bn,{size:16})],Jc=()=>{const[e,n]=se.useState(0),[t,r]=se.useState(1),a=4;return se.useEffect(()=>{const i=setInterval(()=>{n(c=>{const o=c+Math.random()*3+1,f=Math.ceil(o/100*a);return r(Math.min(f,a)),o>=100&&clearInterval(i),o>90?c:o})},150+Math.random()*200);return()=>{clearInterval(i)}},[]),y.jsx(te.Dialog,{open:!0,fullWidth:!0,children:y.jsxs(te.Card,{sx:{padding:"30px 20px"},variant:"outlined",children:[y.jsx(te.Typography,{variant:"body1",fontWeight:"bold",textAlign:"center",mb:1,children:"Processing your request"}),y.jsx(te.Box,{sx:{display:"flex",justifyContent:"end",alignItems:"center"},children:y.jsxs(te.Typography,{fontSize:13,color:"grey",children:[t," out of ",5]})}),y.jsxs(te.Box,{sx:{display:"flex",alignItems:"center",mb:1,gap:1},children:[Xc[t-1],y.jsx(te.Typography,{fontSize:13,color:"grey",children:qc[t-1]})]}),y.jsx(Zc,{variant:"determinate",value:e})]})})},Qc=te.styled(te.Button)(({theme:e})=>({borderRadius:"12px",textTransform:"none",fontWeight:600,"&:focus":{outline:"none"},"&.MuiButton-outlined":{borderColor:"var(--color-grey-60)",color:"black","&:hover":{borderColor:"var(--color-grey-60)",color:"black",backgroundColor:"var(--color-primary-5)"},"&:focus":{borderColor:"var(--color-grey-60)",color:"black",backgroundColor:"var(--color-primary-5)"}}})),eu=({children:e,...n})=>y.jsx(Qc,{variant:n.variant||"contained",color:n.color||"primary",size:n.size||"medium",...n,children:e}),nu=te.styled(te.TextField)(()=>({"& .MuiOutlinedInput-root":{"&.Mui-focused":{outline:"none"},fieldset:{borderWidth:"0.5px",borderRadius:12},outline:"none","&:hover fieldset":{border:"0.5px solid var(--color-grey-70)"},"&.Mui-focused fieldset":{border:"0.5px solid var(--color-grey-70)",boxShadow:"0px 0px 0px 3px var(--primary-30, var(--color-grey-40))"},"&.Mui-error":{"&.Mui-focused fieldset":{border:"0.5px solid var(--color-error-80)",boxShadow:"0px 0px 0px 3px var(--primary-30, var(--color-error-20))"},"&:hover fieldset":{border:"0.5px solid var(--color-error-80)"}}},"&.no-border":{fieldset:{border:"none",background:"var(--color-grey-20)"},"&.Mui-focused fieldset":{border:"0.4px solid var(--color-grey-70)",boxShadow:"0px 0px 0px 4px var(--primary-30, var(--color-error-50))"},"&:hover fieldset":{border:"0.5px solid var(--color-grey-70)"}}})),tu=({startIcon:e,endIcon:n,slotProps:t,labelText:r,noBorder:a,...i})=>y.jsxs(te.Box,{display:"flex",flexDirection:"column",gap:.5,children:[r&&y.jsx(xn,{value:r}),y.jsx(nu,{fullWidth:!0,size:i.size??"small",variant:i.variant??"outlined",...i,className:a?"no-border":"",slotProps:{...t,input:{...t==null?void 0:t.input,startAdornment:e?y.jsx(te.InputAdornment,{position:"start",children:e}):void 0,endAdornment:n?y.jsx(te.InputAdornment,{position:"end",children:n}):void 0}}})]});function ru(e,n){return e.length>n?e.substring(0,n-3)+"...":e}function au(e,n){return e.length>n}exports.Button=La;exports.CustomCheckbox=oi;exports.CustomInput=ai;exports.CustomMenu=Ro;exports.CustomRadioButton=si;exports.CustomText=xn;exports.CustomTextArea=ii;exports.CustomToggleSwitch=ci;exports.IconButtonCustom=fo;exports.LinearProgressBar=Jc;exports.MUIButton=eu;exports.MUIInput=tu;exports.MUITabs=yo;exports.Tag=So;exports.Tooltip=Ao;exports.Transitioner=ui;exports.TypographyCustom=De;exports.isTextLarge=au;exports.textShortner=ru;
|
|
204
|
+
To suppress this warning, you need to explicitly provide the \`palette.${n}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function xc(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const _e=e=>{try{return e()}catch{}},Tc=(e="mui")=>Ur.unstable_createGetCssVar(e);function vt(e,n,t,r){if(!n)return;n=n===!0?{}:n;const a=r==="dark"?"dark":"light";if(!t){e[r]=bc({...n,palette:{mode:a,...n==null?void 0:n.palette}});return}const{palette:i,...c}=Pt({...t,palette:{mode:a,...n==null?void 0:n.palette}});return e[r]={...n,palette:i,opacity:{...ua(a),...n==null?void 0:n.opacity},overlays:(n==null?void 0:n.overlays)||la(a)},c}function Rc(e={},...n){const{colorSchemes:t={light:!0},defaultColorScheme:r,disableCssColorScheme:a=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:c=Sc,colorSchemeSelector:o=t.light&&t.dark?"media":void 0,rootSelector:f=":root",...d}=e,p=Object.keys(t)[0],g=r||(t.light&&p!=="light"?"light":p),m=Tc(i),{[g]:E,light:v,dark:u,...A}=t,x={...A};let M=E;if((g==="dark"&&!("dark"in t)||g==="light"&&!("light"in t))&&(M=!0),!M)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${g}\` option is either missing or invalid.`:Ve(21,g));const w=vt(x,M,d,g);v&&!x.light&&vt(x,v,void 0,"light"),u&&!x.dark&&vt(x,u,void 0,"dark");let P={defaultColorScheme:g,...w,cssVarPrefix:i,colorSchemeSelector:o,rootSelector:f,getCssVar:m,colorSchemes:x,font:{...tc(w.typography),...w.font},spacing:xc(d.spacing)};Object.keys(P.colorSchemes).forEach(z=>{const s=P.colorSchemes[z].palette,k=U=>{const I=U.split("-"),re=I[1],ce=I[2];return m(U,s[re][ce])};if(s.mode==="light"&&(h(s.common,"background","#fff"),h(s.common,"onBackground","#000")),s.mode==="dark"&&(h(s.common,"background","#000"),h(s.common,"onBackground","#fff")),Ac(s,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),s.mode==="light"){h(s.Alert,"errorColor",ie(s.error.light,.6)),h(s.Alert,"infoColor",ie(s.info.light,.6)),h(s.Alert,"successColor",ie(s.success.light,.6)),h(s.Alert,"warningColor",ie(s.warning.light,.6)),h(s.Alert,"errorFilledBg",k("palette-error-main")),h(s.Alert,"infoFilledBg",k("palette-info-main")),h(s.Alert,"successFilledBg",k("palette-success-main")),h(s.Alert,"warningFilledBg",k("palette-warning-main")),h(s.Alert,"errorFilledColor",_e(()=>s.getContrastText(s.error.main))),h(s.Alert,"infoFilledColor",_e(()=>s.getContrastText(s.info.main))),h(s.Alert,"successFilledColor",_e(()=>s.getContrastText(s.success.main))),h(s.Alert,"warningFilledColor",_e(()=>s.getContrastText(s.warning.main))),h(s.Alert,"errorStandardBg",oe(s.error.light,.9)),h(s.Alert,"infoStandardBg",oe(s.info.light,.9)),h(s.Alert,"successStandardBg",oe(s.success.light,.9)),h(s.Alert,"warningStandardBg",oe(s.warning.light,.9)),h(s.Alert,"errorIconColor",k("palette-error-main")),h(s.Alert,"infoIconColor",k("palette-info-main")),h(s.Alert,"successIconColor",k("palette-success-main")),h(s.Alert,"warningIconColor",k("palette-warning-main")),h(s.AppBar,"defaultBg",k("palette-grey-100")),h(s.Avatar,"defaultBg",k("palette-grey-400")),h(s.Button,"inheritContainedBg",k("palette-grey-300")),h(s.Button,"inheritContainedHoverBg",k("palette-grey-A100")),h(s.Chip,"defaultBorder",k("palette-grey-400")),h(s.Chip,"defaultAvatarColor",k("palette-grey-700")),h(s.Chip,"defaultIconColor",k("palette-grey-700")),h(s.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),h(s.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),h(s.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),h(s.LinearProgress,"primaryBg",oe(s.primary.main,.62)),h(s.LinearProgress,"secondaryBg",oe(s.secondary.main,.62)),h(s.LinearProgress,"errorBg",oe(s.error.main,.62)),h(s.LinearProgress,"infoBg",oe(s.info.main,.62)),h(s.LinearProgress,"successBg",oe(s.success.main,.62)),h(s.LinearProgress,"warningBg",oe(s.warning.main,.62)),h(s.Skeleton,"bg",`rgba(${k("palette-text-primaryChannel")} / 0.11)`),h(s.Slider,"primaryTrack",oe(s.primary.main,.62)),h(s.Slider,"secondaryTrack",oe(s.secondary.main,.62)),h(s.Slider,"errorTrack",oe(s.error.main,.62)),h(s.Slider,"infoTrack",oe(s.info.main,.62)),h(s.Slider,"successTrack",oe(s.success.main,.62)),h(s.Slider,"warningTrack",oe(s.warning.main,.62));const U=Nn(s.background.default,.8);h(s.SnackbarContent,"bg",U),h(s.SnackbarContent,"color",_e(()=>s.getContrastText(U))),h(s.SpeedDialAction,"fabHoverBg",Nn(s.background.paper,.15)),h(s.StepConnector,"border",k("palette-grey-400")),h(s.StepContent,"border",k("palette-grey-400")),h(s.Switch,"defaultColor",k("palette-common-white")),h(s.Switch,"defaultDisabledColor",k("palette-grey-100")),h(s.Switch,"primaryDisabledColor",oe(s.primary.main,.62)),h(s.Switch,"secondaryDisabledColor",oe(s.secondary.main,.62)),h(s.Switch,"errorDisabledColor",oe(s.error.main,.62)),h(s.Switch,"infoDisabledColor",oe(s.info.main,.62)),h(s.Switch,"successDisabledColor",oe(s.success.main,.62)),h(s.Switch,"warningDisabledColor",oe(s.warning.main,.62)),h(s.TableCell,"border",oe(kn(s.divider,1),.88)),h(s.Tooltip,"bg",kn(s.grey[700],.92))}if(s.mode==="dark"){h(s.Alert,"errorColor",oe(s.error.light,.6)),h(s.Alert,"infoColor",oe(s.info.light,.6)),h(s.Alert,"successColor",oe(s.success.light,.6)),h(s.Alert,"warningColor",oe(s.warning.light,.6)),h(s.Alert,"errorFilledBg",k("palette-error-dark")),h(s.Alert,"infoFilledBg",k("palette-info-dark")),h(s.Alert,"successFilledBg",k("palette-success-dark")),h(s.Alert,"warningFilledBg",k("palette-warning-dark")),h(s.Alert,"errorFilledColor",_e(()=>s.getContrastText(s.error.dark))),h(s.Alert,"infoFilledColor",_e(()=>s.getContrastText(s.info.dark))),h(s.Alert,"successFilledColor",_e(()=>s.getContrastText(s.success.dark))),h(s.Alert,"warningFilledColor",_e(()=>s.getContrastText(s.warning.dark))),h(s.Alert,"errorStandardBg",ie(s.error.light,.9)),h(s.Alert,"infoStandardBg",ie(s.info.light,.9)),h(s.Alert,"successStandardBg",ie(s.success.light,.9)),h(s.Alert,"warningStandardBg",ie(s.warning.light,.9)),h(s.Alert,"errorIconColor",k("palette-error-main")),h(s.Alert,"infoIconColor",k("palette-info-main")),h(s.Alert,"successIconColor",k("palette-success-main")),h(s.Alert,"warningIconColor",k("palette-warning-main")),h(s.AppBar,"defaultBg",k("palette-grey-900")),h(s.AppBar,"darkBg",k("palette-background-paper")),h(s.AppBar,"darkColor",k("palette-text-primary")),h(s.Avatar,"defaultBg",k("palette-grey-600")),h(s.Button,"inheritContainedBg",k("palette-grey-800")),h(s.Button,"inheritContainedHoverBg",k("palette-grey-700")),h(s.Chip,"defaultBorder",k("palette-grey-700")),h(s.Chip,"defaultAvatarColor",k("palette-grey-300")),h(s.Chip,"defaultIconColor",k("palette-grey-300")),h(s.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),h(s.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),h(s.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),h(s.LinearProgress,"primaryBg",ie(s.primary.main,.5)),h(s.LinearProgress,"secondaryBg",ie(s.secondary.main,.5)),h(s.LinearProgress,"errorBg",ie(s.error.main,.5)),h(s.LinearProgress,"infoBg",ie(s.info.main,.5)),h(s.LinearProgress,"successBg",ie(s.success.main,.5)),h(s.LinearProgress,"warningBg",ie(s.warning.main,.5)),h(s.Skeleton,"bg",`rgba(${k("palette-text-primaryChannel")} / 0.13)`),h(s.Slider,"primaryTrack",ie(s.primary.main,.5)),h(s.Slider,"secondaryTrack",ie(s.secondary.main,.5)),h(s.Slider,"errorTrack",ie(s.error.main,.5)),h(s.Slider,"infoTrack",ie(s.info.main,.5)),h(s.Slider,"successTrack",ie(s.success.main,.5)),h(s.Slider,"warningTrack",ie(s.warning.main,.5));const U=Nn(s.background.default,.98);h(s.SnackbarContent,"bg",U),h(s.SnackbarContent,"color",_e(()=>s.getContrastText(U))),h(s.SpeedDialAction,"fabHoverBg",Nn(s.background.paper,.15)),h(s.StepConnector,"border",k("palette-grey-600")),h(s.StepContent,"border",k("palette-grey-600")),h(s.Switch,"defaultColor",k("palette-grey-300")),h(s.Switch,"defaultDisabledColor",k("palette-grey-600")),h(s.Switch,"primaryDisabledColor",ie(s.primary.main,.55)),h(s.Switch,"secondaryDisabledColor",ie(s.secondary.main,.55)),h(s.Switch,"errorDisabledColor",ie(s.error.main,.55)),h(s.Switch,"infoDisabledColor",ie(s.info.main,.55)),h(s.Switch,"successDisabledColor",ie(s.success.main,.55)),h(s.Switch,"warningDisabledColor",ie(s.warning.main,.55)),h(s.TableCell,"border",ie(kn(s.divider,1),.68)),h(s.Tooltip,"bg",kn(s.grey[700],.92))}je(s.background,"default"),je(s.background,"paper"),je(s.common,"background"),je(s.common,"onBackground"),je(s,"divider"),Object.keys(s).forEach(U=>{const I=s[U];U!=="tonalOffset"&&I&&typeof I=="object"&&(I.main&&h(s[U],"mainChannel",vn(bn(I.main))),I.light&&h(s[U],"lightChannel",vn(bn(I.light))),I.dark&&h(s[U],"darkChannel",vn(bn(I.dark))),I.contrastText&&h(s[U],"contrastTextChannel",vn(bn(I.contrastText))),U==="text"&&(je(s[U],"primary"),je(s[U],"secondary")),U==="action"&&(I.active&&je(s[U],"active"),I.selected&&je(s[U],"selected")))})}),P=n.reduce((z,s)=>Pe(z,s),P);const b={prefix:i,disableCssColorScheme:a,shouldSkipGeneratingVar:c,getSelector:Ec(P)},{vars:D,generateThemeVars:N,generateStyleSheets:de}=nc(P,b);return P.vars=D,Object.entries(P.colorSchemes[P.defaultColorScheme]).forEach(([z,s])=>{P[z]=s}),P.generateThemeVars=N,P.generateStyleSheets=de,P.generateSpacing=function(){return Ur.createSpacing(d.spacing,Lt(this))},P.getColorSchemeSelector=rc(o),P.spacing=P.generateSpacing(),P.shouldSkipGeneratingVar=c,P.unstable_sxConfig={...rt,...d==null?void 0:d.unstable_sxConfig},P.unstable_sx=function(s){return un({sx:s,theme:this})},P.toRuntimeSource=ca,P}function _r(e,n,t){e.colorSchemes&&t&&(e.colorSchemes[n]={...t!==!0&&t,palette:Ft({...t===!0?{}:t.palette,mode:n})})}function wc(e={},...n){const{palette:t,cssVariables:r=!1,colorSchemes:a=t?void 0:{light:!0},defaultColorScheme:i=t==null?void 0:t.mode,...c}=e,o=i||"light",f=a==null?void 0:a[o],d={...a,...t?{[o]:{...typeof f!="boolean"&&f,palette:t}}:void 0};if(r===!1){if(!("colorSchemes"in e))return Pt(e,...n);let p=t;"palette"in e||d[o]&&(d[o]!==!0?p=d[o].palette:o==="dark"&&(p={mode:"dark"}));const g=Pt({...e,palette:p},...n);return g.defaultColorScheme=o,g.colorSchemes=d,g.palette.mode==="light"&&(g.colorSchemes.light={...d.light!==!0&&d.light,palette:g.palette},_r(g,"dark",d.dark)),g.palette.mode==="dark"&&(g.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:g.palette},_r(g,"light",d.light)),g}return!t&&!("light"in d)&&o==="light"&&(d.light=!0),Rc({...c,colorSchemes:d,defaultColorScheme:o,...typeof r!="boolean"&&r},...n)}const Pc=wc();function Oc(e){const{variants:n,...t}=e,r={variants:n,style:Ke.internal_serializeStyles(t),isProcessed:!0};return r.style===t||n&&n.forEach(a=>{typeof a.style!="function"&&(a.style=Ke.internal_serializeStyles(a.style))}),r}const Mc=sa();function bt(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function qe(e,n){return n&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${n}{${String(e.styles)}}`),e}function kc(e){return e?(n,t)=>t[e]:null}function Nc(e,n,t){e.theme=_c(e.theme)?t:e.theme[n]||e.theme}function $n(e,n,t){const r=typeof n=="function"?n(e):n;if(Array.isArray(r))return r.flatMap(a=>$n(e,a,t));if(Array.isArray(r==null?void 0:r.variants)){let a;if(r.isProcessed)a=t?qe(r.style,t):r.style;else{const{variants:i,...c}=r;a=t?qe(Ke.internal_serializeStyles(c),t):c}return fa(e,r.variants,[a],t)}return r!=null&&r.isProcessed?t?qe(Ke.internal_serializeStyles(r.style),t):r.style:t?qe(Ke.internal_serializeStyles(r),t):r}function fa(e,n,t=[],r=void 0){var i;let a;e:for(let c=0;c<n.length;c+=1){const o=n[c];if(typeof o.props=="function"){if(a??(a={...e,...e.ownerState,ownerState:e.ownerState}),!o.props(a))continue}else for(const f in o.props)if(e[f]!==o.props[f]&&((i=e.ownerState)==null?void 0:i[f])!==o.props[f])continue e;typeof o.style=="function"?(a??(a={...e,...e.ownerState,ownerState:e.ownerState}),t.push(r?qe(Ke.internal_serializeStyles(o.style(a)),r):o.style(a))):t.push(r?qe(Ke.internal_serializeStyles(o.style),r):o.style)}return t}function Dc(e={}){const{themeId:n,defaultTheme:t=Mc,rootShouldForwardProp:r=bt,slotShouldForwardProp:a=bt}=e;function i(o){Nc(o,n,t)}return(o,f={})=>{Ke.internal_mutateStyles(o,D=>D.filter(N=>N!==un));const{name:d,slot:p,skipVariantsResolver:g,skipSx:m,overridesResolver:E=kc(da(p)),...v}=f,u=d&&d.startsWith("Mui")||p?"components":"custom",A=g!==void 0?g:p&&p!=="Root"&&p!=="root"||!1,x=m||!1;let M=bt;p==="Root"||p==="root"?M=r:p?M=a:Fc(o)&&(M=void 0);const w=Ke(o,{shouldForwardProp:M,label:Ic(d,p),...v}),P=D=>{if(D.__emotion_real===D)return D;if(typeof D=="function")return function(de){return $n(de,D,de.theme.modularCssLayers?u:void 0)};if(Ge(D)){const N=Oc(D);return function(z){return N.variants?$n(z,N,z.theme.modularCssLayers?u:void 0):z.theme.modularCssLayers?qe(N.style,u):N.style}}return D},b=(...D)=>{const N=[],de=D.map(P),z=[];if(N.push(i),d&&E&&z.push(function(I){var be,Ie;const ce=(Ie=(be=I.theme.components)==null?void 0:be[d])==null?void 0:Ie.styleOverrides;if(!ce)return null;const ye={};for(const Le in ce)ye[Le]=$n(I,ce[Le],I.theme.modularCssLayers?"theme":void 0);return E(I,ye)}),d&&!A&&z.push(function(I){var ye,be;const re=I.theme,ce=(be=(ye=re==null?void 0:re.components)==null?void 0:ye[d])==null?void 0:be.variants;return ce?fa(I,ce,[],I.theme.modularCssLayers?"theme":void 0):null}),x||z.push(un),Array.isArray(de[0])){const U=de.shift(),I=new Array(N.length).fill(""),re=new Array(z.length).fill("");let ce;ce=[...I,...U,...re],ce.raw=[...I,...U.raw,...re],N.unshift(ce)}const s=[...N,...de,...z],k=w(...s);return o.muiName&&(k.muiName=o.muiName),process.env.NODE_ENV!=="production"&&(k.displayName=Bc(d,p,o)),k};return w.withConfig&&(b.withConfig=w.withConfig),b}}function Bc(e,n,t){return e?`${e}${Ut(n||"")}`:`Styled(${ds(t)})`}function Ic(e,n){let t;return process.env.NODE_ENV!=="production"&&e&&(t=`${e}-${da(n||"Root")}`),t}function _c(e){for(const n in e)return!1;return!0}function Fc(e){return typeof e=="string"&&e.charCodeAt(0)>96}function da(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function $c(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Uc=e=>$c(e)&&e!=="classes",Lc=Dc({themeId:wo,defaultTheme:Pc,rootShouldForwardProp:Uc});var pa={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Fr=se.createContext&&se.createContext(pa),jc=["attr","size","title"];function Gc(e,n){if(e==null)return{};var t=Kc(e,n),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(n.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(t[r]=e[r])}return t}function Kc(e,n){if(e==null)return{};var t={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(n.indexOf(r)>=0)continue;t[r]=e[r]}return t}function Gn(){return Gn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Gn.apply(this,arguments)}function $r(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),t.push.apply(t,r)}return t}function Kn(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?$r(Object(t),!0).forEach(function(r){Wc(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):$r(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function Wc(e,n,t){return n=Vc(n),n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Vc(e){var n=Yc(e,"string");return typeof n=="symbol"?n:n+""}function Yc(e,n){if(typeof e!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var r=t.call(e,n||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function ga(e){return e&&e.map((n,t)=>se.createElement(n.tag,Kn({key:t},n.attr),ga(n.child)))}function Hc(e){return n=>se.createElement(zc,Gn({attr:Kn({},e.attr)},n),ga(e.child))}function zc(e){var n=t=>{var{attr:r,size:a,title:i}=e,c=Gc(e,jc),o=a||t.size||"1em",f;return t.className&&(f=t.className),e.className&&(f=(f?f+" ":"")+e.className),se.createElement("svg",Gn({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,r,c,{className:f,style:Kn(Kn({color:e.color||t.color},t.style),e.style),height:o,width:o,xmlns:"http://www.w3.org/2000/svg"}),i&&se.createElement("title",null,i),e.children)};return Fr!==void 0?se.createElement(Fr.Consumer,null,t=>n(t)):n(pa)}function Bn(e){return Hc({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M15.716 1.329a1.341 1.341 0 0 1 2.109 1.55L15.147 9h4.161c1.623 0 2.372 2.016 1.143 3.075L8.102 22.721a1.148 1.148 0 0 1-1.81-1.317L8.996 15H4.674c-1.619 0-2.37-2.008-1.148-3.07l12.19-10.6Zm.452 1.595L4.51 13.061a.25.25 0 0 0 .164.439h5.45a.749.749 0 0 1 .692 1.041l-2.559 6.066 11.215-9.668a.25.25 0 0 0-.164-.439H14a.75.75 0 0 1-.687-1.05Z"},child:[]}]})(e)}const Zc=Lc(te.LinearProgress)(({theme:e})=>({height:8,borderRadius:6,"&.MuiLinearProgress-colorPrimary":{backgroundColor:e.palette.grey[200]},"& .MuiLinearProgress-bar":{borderRadius:6,background:"rgba(8, 55, 158, 1)"}})),qc=["Getting started...","Loading your stuff...","Working on it...","Almost done..."],Xc=[y.jsx(te.CircularProgress,{size:12,sx:{color:"black"}}),y.jsx(Bn,{size:16}),y.jsx(Bn,{size:16}),y.jsx(Bn,{size:16}),y.jsx(Bn,{size:16})],Jc=()=>{const[e,n]=se.useState(0),[t,r]=se.useState(1),a=4;return se.useEffect(()=>{const i=setInterval(()=>{n(c=>{const o=c+Math.random()*3+1,f=Math.ceil(o/100*a);return r(Math.min(f,a)),o>=100&&clearInterval(i),o>90?c:o})},150+Math.random()*200);return()=>{clearInterval(i)}},[]),y.jsx(te.Dialog,{open:!0,fullWidth:!0,children:y.jsxs(te.Card,{sx:{padding:"30px 20px"},variant:"outlined",children:[y.jsx(te.Typography,{variant:"body1",fontWeight:"bold",textAlign:"center",mb:1,children:"Processing your request"}),y.jsx(te.Box,{sx:{display:"flex",justifyContent:"end",alignItems:"center"},children:y.jsxs(te.Typography,{fontSize:13,color:"grey",children:[t," out of ",5]})}),y.jsxs(te.Box,{sx:{display:"flex",alignItems:"center",mb:1,gap:1},children:[Xc[t-1],y.jsx(te.Typography,{fontSize:13,color:"grey",children:qc[t-1]})]}),y.jsx(Zc,{variant:"determinate",value:e})]})})},Qc=te.styled(te.Button)(({theme:e})=>({borderRadius:"12px",textTransform:"none",fontWeight:600,"&:focus":{outline:"none"},"&.MuiButton-outlined":{borderColor:"var(--color-grey-60)",color:"black","&:hover":{borderColor:"var(--color-grey-60)",color:"black",backgroundColor:"var(--color-primary-5)"},"&:focus":{borderColor:"var(--color-grey-60)",color:"black",backgroundColor:"var(--color-primary-5)"}}})),eu=({children:e,...n})=>y.jsx(Qc,{variant:n.variant||"contained",color:n.color||"primary",size:n.size||"medium",...n,children:e}),nu=te.styled(te.TextField)(()=>({"& .MuiOutlinedInput-root":{"&.Mui-focused":{outline:"none"},fieldset:{borderWidth:"0.5px",borderRadius:12},outline:"none","&:hover fieldset":{border:"0.5px solid var(--color-grey-70)"},"&.Mui-focused fieldset":{border:"0.5px solid var(--color-grey-70)",boxShadow:"0px 0px 0px 3px var(--primary-30, var(--color-grey-40))"},"&.Mui-error":{"&.Mui-focused fieldset":{border:"0.5px solid var(--color-error-80)",boxShadow:"0px 0px 0px 3px var(--primary-30, var(--color-error-20))"},"&:hover fieldset":{border:"0.5px solid var(--color-error-80)"}}},"&.no-border":{fieldset:{border:"none",background:"var(--color-grey-20)",borderRadius:12},"&.Mui-focused fieldset":{border:"0.4px solid var(--color-grey-70)",boxShadow:"0px 0px 0px 4px var(--primary-30, var(--color-error-50))"},"&:hover fieldset":{border:"0.5px solid var(--color-grey-70)"}}})),tu=({startIcon:e,endIcon:n,slotProps:t,labelText:r,noBorder:a,...i})=>y.jsxs(te.Box,{display:"flex",flexDirection:"column",gap:.5,children:[r&&y.jsx(xn,{value:r}),y.jsx(nu,{fullWidth:!0,size:i.size??"small",variant:i.variant??"outlined",...i,className:a?"no-border":"",slotProps:{...t,input:{...t==null?void 0:t.input,startAdornment:e?y.jsx(te.InputAdornment,{position:"start",children:e}):void 0,endAdornment:n?y.jsx(te.InputAdornment,{position:"end",children:n}):void 0}}})]});function ru(e,n){return e.length>n?e.substring(0,n-3)+"...":e}function au(e,n){return e.length>n}exports.Button=La;exports.CustomCheckbox=oi;exports.CustomInput=ai;exports.CustomMenu=Ro;exports.CustomRadioButton=si;exports.CustomText=xn;exports.CustomTextArea=ii;exports.CustomToggleSwitch=ci;exports.IconButtonCustom=fo;exports.LinearProgressBar=Jc;exports.MUIButton=eu;exports.MUIInput=tu;exports.MUITabs=yo;exports.Tag=So;exports.Tooltip=Ao;exports.Transitioner=ui;exports.TypographyCustom=De;exports.isTextLarge=au;exports.textShortner=ru;
|
package/dist/index.mjs
CHANGED
|
@@ -6153,7 +6153,8 @@ const ou = qc(qa)(({ theme: e }) => ({
|
|
|
6153
6153
|
"&.no-border": {
|
|
6154
6154
|
fieldset: {
|
|
6155
6155
|
border: "none",
|
|
6156
|
-
background: "var(--color-grey-20)"
|
|
6156
|
+
background: "var(--color-grey-20)",
|
|
6157
|
+
borderRadius: 12
|
|
6157
6158
|
},
|
|
6158
6159
|
"&.Mui-focused fieldset": {
|
|
6159
6160
|
border: "0.4px solid var(--color-grey-70)",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dev-blinq/ui-systems",
|
|
3
3
|
"description": "this package contains all ui components like button, input, checkbox, colors that blinq.io needs",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.72",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|