@atomazing-org/design-system 1.1.3 → 1.2.1
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/README.MD +4 -3
- package/dist/{chunk-GDOB3KHW.mjs → chunk-JBLCVRJT.mjs} +2 -2
- package/dist/chunk-JBLCVRJT.mjs.map +1 -0
- package/dist/index.d.mts +12 -23
- package/dist/index.d.ts +12 -23
- package/dist/index.js +17 -18
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +22 -23
- package/dist/index.mjs.map +1 -1
- package/dist/presets/index.d.mts +1 -1
- package/dist/presets/index.d.ts +1 -1
- package/dist/presets/index.js +1 -1
- package/dist/presets/index.js.map +1 -1
- package/dist/presets/index.mjs +1 -1
- package/dist/{typography-CzDswRl0.d.mts → typography-Dq0wCojD.d.mts} +3 -6
- package/dist/{typography-CzDswRl0.d.ts → typography-Dq0wCojD.d.ts} +3 -6
- package/package.json +1 -1
- package/dist/chunk-GDOB3KHW.mjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as ie,c as se,e as ae,g as le,i as me}from"./chunk-JBLCVRJT.mjs";import de from"@emotion/styled";import{Button as pe}from"@mui/material";var fe=de(pe)`
|
|
2
2
|
padding: 10px 16px;
|
|
3
3
|
border-radius: 16px;
|
|
4
4
|
font-size: 16px;
|
|
5
5
|
margin: 8px;
|
|
6
|
-
`;import
|
|
6
|
+
`;import he from"react";import G from"@emotion/styled";import U from"@mui/icons-material/ErrorOutlineRounded";import{Box as x}from"@mui/material";import{jsx as b,jsxs as c}from"react/jsx-runtime";var O=class extends he.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,r){console.error("Error:",t),console.error("Error Info:",r)}render(){var n,s,i;let{state:t,props:r}=this;return t.hasError?c(ce,{children:[b(ue,{children:b(x,{children:"Something went wrong.\xA0"})}),c("h3",{children:[c(x,{style:{color:"#ff3131",display:"inline-block"},children:[b(U,{sx:{verticalAlign:"middle",mb:"4px"}})," ","ERROR:"]})," ",c(x,{translate:"no",children:["[",(n=t.error)==null?void 0:n.name,"] ",(s=t.error)==null?void 0:s.message]}),c(x,{style:{color:"#ff3131",display:"inline-block"},children:[b(U,{sx:{verticalAlign:"middle",mb:"4px"}})," ","Stack:"]})," ",c(x,{translate:"no",children:["[",(i=t.error)==null?void 0:i.stack,"]"]})]})]}):r.children}},ce=G.div`
|
|
7
7
|
margin: 0 8vw;
|
|
8
8
|
@media (max-width: 768px) {
|
|
9
9
|
margin: 0;
|
|
10
10
|
}
|
|
11
|
-
`,
|
|
11
|
+
`,ue=G.h1`
|
|
12
12
|
margin-top: 32px;
|
|
13
13
|
margin-bottom: 32px;
|
|
14
14
|
font-size: 36px;
|
|
@@ -24,7 +24,7 @@ import{a as ae,c as me,e as le,g as de,i as pe}from"./chunk-GDOB3KHW.mjs";import
|
|
|
24
24
|
margin-top: 0;
|
|
25
25
|
margin-bottom: 0;
|
|
26
26
|
}
|
|
27
|
-
`;import{useEffect as
|
|
27
|
+
`;import{useEffect as ge,useState as xe}from"react";import ye from"@emotion/styled";import{Box as be,CircularProgress as _e}from"@mui/material";import{Fragment as ke,jsx as z,jsxs as ve}from"react/jsx-runtime";var Se=()=>{let[e,t]=xe(!1);return ge(()=>{let r=setTimeout(()=>{t(!0)},100);return()=>clearTimeout(r)},[]),z(Te,{"aria-live":"polite",role:"status",children:e&&ve(ke,{children:[z(_e,{"aria-label":"loading",size:80,thickness:4}),z("h3",{style:{opacity:.8},children:"Loading Page..."})]})})},Te=ye(be)`
|
|
28
28
|
position: absolute;
|
|
29
29
|
top: 50%;
|
|
30
30
|
left: 50%;
|
|
@@ -35,12 +35,12 @@ import{a as ae,c as me,e as le,g as de,i as pe}from"./chunk-GDOB3KHW.mjs";import
|
|
|
35
35
|
flex-direction: column;
|
|
36
36
|
text-align: center;
|
|
37
37
|
gap: 8px;
|
|
38
|
-
`;import
|
|
38
|
+
`;import Me from"@emotion/styled";var we=Me.code`
|
|
39
39
|
background: #000000c8;
|
|
40
40
|
color: white;
|
|
41
41
|
padding: 4px 6px;
|
|
42
42
|
border-radius: 8px;
|
|
43
|
-
`;import
|
|
43
|
+
`;import Pe from"@mui/icons-material/BrightnessAutoRounded";import Oe from"@mui/icons-material/DarkModeRounded";import ze from"@mui/icons-material/LightModeRounded";import Ie from"@mui/icons-material/PersonalVideoRounded";import{jsx as S}from"react/jsx-runtime";var _=32,De=[{label:"Auto",value:"auto",icon:S(Pe,{color:"inherit",sx:{fontSize:_}})},{label:"System",value:"system",icon:S(Ie,{color:"inherit",sx:{fontSize:_}})},{label:"Light",value:"light",icon:S(ze,{color:"inherit",sx:{fontSize:_}})},{label:"Dark",value:"dark",icon:S(Oe,{color:"inherit",sx:{fontSize:_}})}];import{useMemo as P}from"react";import{ThemeProvider as nt}from"@mui/material/styles";import{createContext as Ee,useContext as We}from"react";var T=Ee(void 0),V=()=>{let e=We(T);if(!e)throw new Error("useThemeSettings must be used within ThemeProviderWrapper");return e};var Y="Default",k=e=>typeof e=="object"&&e!==null,Re=e=>{let t=e==null?void 0:e.trim();if(!t)throw new Error("normalizeThemesInput: preset `id` must be a non-empty.");return t},He=(e,t)=>{let r=e==null?void 0:e.trim();return r||t},Ne=e=>{if(!k(e)||typeof e.id!="string"||typeof e.label!="string"||!("colorSchemes"in e))return!1;let{colorSchemes:t}=e;return k(t)},Ae=(e,t)=>{if(!Ne(e))throw new Error(`normalizeThemesInput: invalid ThemePreset shape at index ${t}.`);let r=Re(e.id),n=He(e.label,r),{colorSchemes:s}=e,{light:i,dark:a}=s;if(!k(i))throw new Error("normalizeThemesInput: preset must include colorSchemes.light.");if(!k(a))throw new Error("normalizeThemesInput: preset must include colorSchemes.dark.");return{...e,id:r,label:n,colorSchemes:{light:i,dark:a},meta:{origin:"preset"}}},Ce=e=>{let t=new Map,r=new Map;for(let[i,a]of e.entries())t.has(a.id)||t.set(a.id,i),r.set(a.id,a);let n=[...t.entries()].sort(([,i],[,a])=>i-a).map(([i])=>i),s=[];for(let i of n){let a=r.get(i);a&&s.push(a)}return s},X=()=>({id:Y,label:Y,colorSchemes:{light:{},dark:{}},meta:{origin:"custom"}}),v=e=>{if(!e||e.length===0)return[X()];let t=e.map((r,n)=>Ae(r,n));return t.length===0?[X()]:Ce(t)};var K="Default",Be=e=>({name:e.id,...e.colorSchemes.light}),I=e=>{let t=v(e);return t.length===0?[{name:K}]:t.map(r=>Be(r))},Z=(e,t)=>{let r=[...e!=null?e:[],...t!=null?t:[]];return I(r.length>0?r:void 0)},y=e=>{var t,r;return(r=(t=e[0])==null?void 0:t.name)!=null?r:K},M=(e,t)=>e&&t.some(r=>r.name===e)?e:y(t),J=(e,t)=>e.find(r=>r.name===t),j=(e,t="system")=>e||t;import{useEffect as W,useMemo as w,useState as R}from"react";var f=()=>globalThis.window!==void 0&&globalThis.document!==void 0;var Q="appSettings",u=1,$e=new Set(["system","auto","light","dark"]),Fe=e=>typeof e=="string"&&$e.has(e),D=()=>{if(!f()||globalThis.localStorage===void 0)return null;try{let e=globalThis.localStorage.getItem(Q);if(!e)return null;let t=JSON.parse(e),r=Fe(t.darkMode)?t.darkMode:void 0;if(t.version===u){let s=typeof t.themeId=="string"?t.themeId:void 0;return!s&&!r?null:{version:u,themeId:s,darkMode:r}}let n=typeof t.theme=="string"?t.theme:void 0;return!n&&!r?null:{version:u,themeId:n,darkMode:r}}catch(e){return null}},E=e=>{if(!(!f()||globalThis.localStorage===void 0))try{globalThis.localStorage.setItem(Q,JSON.stringify(e))}catch(t){}};var q="system",H=({themes:e})=>{let t=w(()=>v(e),[e]),r=w(()=>t.map(l=>({name:l.id,...l.colorSchemes.light})),[t]),[n,s]=R(()=>M(void 0,r)),[i,a]=R(q),[m,d]=R(!1),g=w(()=>t.find(l=>l.id===n)||t[0],[n,t]),h=w(()=>r.find(l=>l.name===n)||r[0],[n,r]);return W(()=>{if(m)return;let l=D();s(M(l==null?void 0:l.themeId,r)),a(j(l==null?void 0:l.darkMode,q)),d(!0)},[m,r]),W(()=>{let l=M(n,r);l!==n&&s(l)},[n,r]),W(()=>{m&&E({version:u,themeId:n,darkMode:i})},[m,n,i]),{theme:n,setTheme:s,darkMode:i,setDarkMode:a,presetsSource:t,selectedPreset:g,themesSource:r,selectedTheme:h}};import{Global as Le,css as Ue}from"@emotion/react";import{useTheme as Ge}from"@mui/material/styles";import{jsx as Ve}from"react/jsx-runtime";var N=({fontFamily:e})=>{let t=Ge(),r=t.palette.mode==="dark",n=t.palette.primary.main,s=t.palette.text.primary,i=t.palette.background.default,a=t.palette.background.paper;return Ve(Le,{styles:Ue`
|
|
44
44
|
/* Allow application to control font via CSS var or prop */
|
|
45
45
|
:root {
|
|
46
46
|
${e?`--app-font-family: ${e};`:""}
|
|
@@ -99,18 +99,18 @@ import{a as ae,c as me,e as le,g as de,i as pe}from"./chunk-GDOB3KHW.mjs";import
|
|
|
99
99
|
height: 100%;
|
|
100
100
|
overflow: auto;
|
|
101
101
|
touch-action: manipulation;
|
|
102
|
-
background: ${
|
|
103
|
-
color: ${
|
|
102
|
+
background: ${i};
|
|
103
|
+
color: ${s};
|
|
104
104
|
background-attachment: fixed;
|
|
105
105
|
background-size: cover;
|
|
106
106
|
transition: 0.3s background;
|
|
107
107
|
/* Firefox */
|
|
108
|
-
scrollbar-color: ${n} ${
|
|
108
|
+
scrollbar-color: ${n} ${i};
|
|
109
109
|
scrollbar-width: thin;
|
|
110
110
|
|
|
111
111
|
::-webkit-scrollbar {
|
|
112
112
|
width: 8px;
|
|
113
|
-
background-color: ${
|
|
113
|
+
background-color: ${i};
|
|
114
114
|
}
|
|
115
115
|
::-webkit-scrollbar-thumb {
|
|
116
116
|
background-color: ${n};
|
|
@@ -121,7 +121,7 @@ import{a as ae,c as me,e as le,g as de,i as pe}from"./chunk-GDOB3KHW.mjs";import
|
|
|
121
121
|
}
|
|
122
122
|
::-webkit-scrollbar-track {
|
|
123
123
|
border-radius: 64px;
|
|
124
|
-
background-color: ${
|
|
124
|
+
background-color: ${i};
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
127
|
|
|
@@ -174,10 +174,9 @@ import{a as ae,c as me,e as le,g as de,i as pe}from"./chunk-GDOB3KHW.mjs";import
|
|
|
174
174
|
|
|
175
175
|
/* react-spring-bottom-sheet styles */
|
|
176
176
|
div[role="dialog"] {
|
|
177
|
-
|
|
178
|
-
z-index: 9999999;
|
|
177
|
+
z-index: 9999;
|
|
179
178
|
}
|
|
180
|
-
`})};import{alpha as B}from"@mui/material/styles";import{alpha as et}from"@mui/material/styles";var re=e=>({pageBg:e.palette.background.default,surfaceBg:e.palette.background.paper,textPrimary:e.palette.text.primary,textSecondary:e.palette.text.secondary,divider:e.palette.divider}),Mr=(e,t)=>et(e.palette.text.primary,t);var tt={MuiTooltip:{defaultProps:{disableInteractive:!0},styleOverrides:{tooltip:({theme:e})=>({backdropFilter:"blur(6px)",WebkitBackdropFilter:"blur(6px)",padding:"8px 16px",borderRadius:e.shape.borderRadius,fontSize:e.typography.pxToRem(12)})}},MuiButton:{styleOverrides:{root:({theme:e})=>({padding:"12px 24px",borderRadius:e.shape.borderRadius}),contained:{boxShadow:"none"}}},MuiSkeleton:{styleOverrides:{root:({theme:e})=>({borderRadius:e.shape.borderRadius})}},MuiSelect:{styleOverrides:{root:({theme:e})=>({borderRadius:e.shape.borderRadius}),select:{display:"flex",justifyContent:"flex-start",alignItems:"center",gap:"4px"}}},MuiDialog:{defaultProps:{slotProps:{paper:{style:{padding:"12px",borderRadius:24,minWidth:"400px"}}}},styleOverrides:{root:{"& .MuiDialog-container":{backdropFilter:"blur(4px)"}}}},MuiAvatar:{styleOverrides:{root:{fontWeight:500}}},MuiAlert:{styleOverrides:{root:({theme:e})=>({borderRadius:e.shape.borderRadius})}},MuiTextField:{defaultProps:{variant:"outlined"},styleOverrides:{root:({theme:e})=>({"& .MuiInputBase-root":{borderRadius:e.shape.borderRadius}})}},MuiOutlinedInput:{styleOverrides:{root:({theme:e})=>{let t=re(e);return{color:t.textPrimary,"& fieldset":{borderColor:B(t.textPrimary,.16)},"&:hover fieldset":{borderColor:B(t.textPrimary,.28)},"&.Mui-focused fieldset":{borderColor:e.palette.primary.main}}}}},MuiInputLabel:{styleOverrides:{root:({theme:e})=>({color:B(e.palette.text.primary,.72),"&.Mui-focused":{color:e.palette.primary.main}})}},MuiFormHelperText:{styleOverrides:{root:({theme:e})=>({color:e.palette.text.secondary,"&.Mui-error":{color:e.palette.error.main}})}},MuiPaper:{styleOverrides:{root:({theme:e})=>({borderRadius:e.shape.borderRadius}),elevation8:({theme:e})=>({borderRadius:e.shape.borderRadius})}},MuiMenuItem:{styleOverrides:{root:({theme:e})=>({borderRadius:e.shape.borderRadius})}},MuiBottomNavigationAction:{styleOverrides:{root:({theme:e})=>({borderRadius:e.shape.borderRadius,padding:"12px",margin:0,maxHeight:"none"})}},MuiDialogContent:{styleOverrides:{root:{padding:0}}},MuiSlider:{styleOverrides:{valueLabel:({theme:e})=>({borderRadius:e.shape.borderRadius,padding:"6px 14px","&::before, &::after":{display:"none"}})}},MuiCircularProgress:{styleOverrides:{circle:{strokeLinecap:"round"}}},MuiTab:{styleOverrides:{root:({theme:e})=>({borderRadius:e.shape.borderRadius})}},MuiAccordion:{styleOverrides:{root:{"&::before":{display:"none"}}}}};import{createTheme as rt}from"@mui/material/styles";var L=(e,t)=>{let{background:r,palette:n,...i}=e,s=r==null?void 0:r[t],a={...n,mode:t};return(s||n!=null&&n.background)&&(a.background={...n==null?void 0:n.background,...s}),rt({...i,palette:a})};import{useEffect as ot,useState as nt}from"react";var it=(e=768)=>{let[t,r]=nt(!1);return ot(()=>{if(!h())return()=>{};let n=()=>{r(window.innerWidth<e)};n();let i=()=>n();return window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}},[e]),t};import{useEffect as st,useState as at}from"react";var F=()=>{let[e,t]=at("unknown");return st(()=>{if(!h()||typeof globalThis.matchMedia!="function")return t("unknown"),()=>{};let r=globalThis.matchMedia("(prefers-color-scheme: dark)"),n=i=>{let s=i?i.matches:r.matches;t(s?"dark":"light")};return n(),typeof r.addEventListener!="function"?()=>{}:(r.addEventListener("change",n),()=>{r.removeEventListener("change",n)})},[]),e};var Ur=e=>/^#([\dA-Fa-f]{3}|[\dA-Fa-f]{6})$/.test(e);var Yr=()=>{let e=new Date().getHours();return e>=5&&e<12?"Good morning":e>12&&e<18?"Good afternoon":"Good evening"};var Vr=e=>{let t=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getDate()).padStart(2,"0");return`${t}-${r}-${n}`};var mt=()=>{let e=(typeof navigator=="undefined"?"":navigator.userAgent).toLowerCase();return e.includes("windows nt")?"Windows":e.includes("iphone")||e.includes("ipad")||e.includes("ipod")?"iOS":e.includes("mac")?"macOS":e.includes("android")?"Android":e.includes("linux")?"Linux":"Unknown"},lt=()=>{let e=(typeof navigator=="undefined"?"":navigator.userAgent).toLowerCase();return e.includes("edg")?"Edge":e.includes("chrome")?"Chrome":e.includes("firefox")?"Firefox":e.includes("safari")?"Safari":"Unknown"},Zr={os:typeof navigator=="undefined"?"Unknown":mt(),browser:typeof navigator=="undefined"?"Unknown":lt()};var oe=(e,t)=>{switch(e){case"light":return!1;case"dark":return!0;case"system":case"auto":return t==="dark";default:return!1}};var Qr=(e,t)=>{let r=t!=null?t:typeof navigator=="undefined"?"en-US":navigator.language,n=new Date;e=new Date(e);let i=Math.floor((n.getTime()-e.getTime())/1e3),s=new Intl.RelativeTimeFormat(r,{numeric:"auto"});if(i<60)return s.format(-i,"second");if(i<3600){let l=Math.floor(i/60);return s.format(-l,"minute")}if(i<86400){let l=Math.floor(i/3600);return s.format(-l,"hour")}let a=Math.floor(i/86400);return s.format(-a,"day")},qr=(e,t)=>{let r=t!=null?t:typeof navigator=="undefined"?"en-US":navigator.language,n=new Date;e=new Date(e);let i=(e.getTime()-n.getTime())/1e3,s=Math.floor(i/(60*60)),a=Math.floor((i-60*60*s)/60),l=Math.floor(i-60*60*s-60*a),d=new Intl.RelativeTimeFormat(r,{numeric:"auto"});if(a===0&&l<60)return d.format(l,"second");if(s===0&&a<60)return d.format(a,"minute");if(s<24){let f=`${new Intl.RelativeTimeFormat(r,{numeric:"auto"}).format(s,"hour")}`,m=` ${new Intl.RelativeTimeFormat(r,{localeMatcher:"lookup",numeric:"always",style:"long"}).format(a,"minute")}`.replace(/^\D+/,"");return`${f} ${m}`}let g=Math.floor(l/86400);return d.format(g,"day")};var $=(e,t)=>oe(e,t)?"dark":"light";var U=(e,t)=>{var r;return(r=e.colorSchemes[t])!=null?r:e.colorSchemes.light};var o=e=>`${e/16}rem`,dt={defaultProps:{variantMapping:{text_xl_regular:"p",text_lg_regular:"p",text_md_regular:"p",text_sm_regular:"p",text_xs_regular:"p",text_2xs_regular:"p",text_xl_bold:"p",text_lg_bold:"p",text_md_bold:"p",text_sm_bold:"p",text_xs_bold:"p",text_2xs_bold:"p",text_xl_semibold:"p",text_lg_semibold:"p",text_md_semibold:"p",text_sm_semibold:"p",text_xs_semibold:"p",text_2xs_semibold:"p",text_xl_thin:"p",text_lg_thin:"p",text_md_thin:"p",text_sm_thin:"p",text_xs_thin:"p",text_2xs_thin:"p",header_2xl_regular:"h1",header_xl_regular:"h2",header_lg_regular:"h3",header_md_regular:"h4",header_sm_regular:"h5",header_xs_regular:"h6",header_2xl_bold:"h1",header_xl_bold:"h2",header_lg_bold:"h3",header_md_bold:"h4",header_sm_bold:"h5",header_xs_bold:"h6",header_2xl_semibold:"h1",header_xl_semibold:"h2",header_lg_semibold:"h3",header_md_semibold:"h4",header_sm_semibold:"h5",header_xs_semibold:"h6"}}},pt={text_xl_regular:{fontWeight:400,fontSize:o(20),lineHeight:o(30)},text_lg_regular:{fontWeight:400,fontSize:o(18),lineHeight:o(28)},text_md_regular:{fontWeight:400,fontSize:o(16),lineHeight:o(24)},text_sm_regular:{fontWeight:400,fontSize:o(14),lineHeight:o(20)},text_xs_regular:{fontWeight:400,fontSize:o(12),lineHeight:o(18)},text_2xs_regular:{fontWeight:400,fontSize:o(10),lineHeight:o(14)},text_xl_bold:{fontWeight:700,fontSize:o(20),lineHeight:o(30)},text_lg_bold:{fontWeight:700,fontSize:o(18),lineHeight:o(28)},text_md_bold:{fontWeight:700,fontSize:o(16),lineHeight:o(24)},text_sm_bold:{fontWeight:700,fontSize:o(14),lineHeight:o(20)},text_xs_bold:{fontWeight:700,fontSize:o(12),lineHeight:o(18)},text_2xs_bold:{fontWeight:700,fontSize:o(10),lineHeight:o(14)},text_xl_semibold:{fontWeight:600,fontSize:o(20),lineHeight:o(30)},text_lg_semibold:{fontWeight:600,fontSize:o(18),lineHeight:o(28)},text_md_semibold:{fontWeight:600,fontSize:o(16),lineHeight:o(24)},text_sm_semibold:{fontWeight:600,fontSize:o(14),lineHeight:o(20)},text_xs_semibold:{fontWeight:600,fontSize:o(12),lineHeight:o(18)},text_2xs_semibold:{fontWeight:600,fontSize:o(10),lineHeight:o(14)},text_xl_thin:{fontWeight:100,fontSize:o(20),lineHeight:o(30)},text_lg_thin:{fontWeight:100,fontSize:o(18),lineHeight:o(28)},text_md_thin:{fontWeight:100,fontSize:o(16),lineHeight:o(24)},text_sm_thin:{fontWeight:100,fontSize:o(14),lineHeight:o(20)},text_xs_thin:{fontWeight:100,fontSize:o(12),lineHeight:o(18)},text_2xs_thin:{fontWeight:100,fontSize:o(10),lineHeight:o(14)},header_2xl_regular:{fontWeight:400,fontSize:o(34),lineHeight:o(42)},header_xl_regular:{fontWeight:400,fontSize:o(32),lineHeight:o(40)},header_lg_regular:{fontWeight:400,fontSize:o(28),lineHeight:o(36)},header_md_regular:{fontWeight:400,fontSize:o(24),lineHeight:o(32)},header_sm_regular:{fontWeight:400,fontSize:o(20),lineHeight:o(28)},header_xs_regular:{fontWeight:400,fontSize:o(18),lineHeight:o(26)},header_2xl_bold:{fontWeight:700,fontSize:o(34),lineHeight:o(42)},header_xl_bold:{fontWeight:700,fontSize:o(32),lineHeight:o(40)},header_lg_bold:{fontWeight:700,fontSize:o(28),lineHeight:o(36)},header_md_bold:{fontWeight:700,fontSize:o(24),lineHeight:o(32)},header_sm_bold:{fontWeight:700,fontSize:o(20),lineHeight:o(28)},header_xs_bold:{fontWeight:700,fontSize:o(18),lineHeight:o(26)},header_2xl_semibold:{fontWeight:600,fontSize:o(34),lineHeight:o(42)},header_xl_semibold:{fontWeight:600,fontSize:o(32),lineHeight:o(40)},header_lg_semibold:{fontWeight:600,fontSize:o(28),lineHeight:o(36)},header_md_semibold:{fontWeight:600,fontSize:o(24),lineHeight:o(32)},header_sm_semibold:{fontWeight:600,fontSize:o(20),lineHeight:o(28)},header_xs_semibold:{fontWeight:600,fontSize:o(18),lineHeight:o(26)}};var ho=e=>{var n,i,s,a;let t=[],{palette:r}=e;return r?((n=r.background)!=null&&n.default||t.push("palette.background.default is missing."),(i=r.background)!=null&&i.paper||t.push("palette.background.paper is missing."),(s=r.text)!=null&&s.primary||t.push("palette.text.primary is missing."),(a=r.text)!=null&&a.secondary||t.push("palette.text.secondary is missing."),r.divider||t.push("palette.divider is missing."),t):(t.push("palette is missing."),t)};import{keyframes as p}from"@emotion/react";var uo=p`
|
|
179
|
+
`})};import{alpha as A}from"@mui/material/styles";import{alpha as Ye}from"@mui/material/styles";var ee=e=>({pageBg:e.palette.background.default,surfaceBg:e.palette.background.paper,textPrimary:e.palette.text.primary,textSecondary:e.palette.text.secondary,divider:e.palette.divider}),yo=(e,t)=>Ye(e.palette.text.primary,t);var Xe={MuiTooltip:{defaultProps:{disableInteractive:!0},styleOverrides:{tooltip:({theme:e})=>({backdropFilter:"blur(6px)",WebkitBackdropFilter:"blur(6px)",padding:"8px 16px",borderRadius:e.shape.borderRadius,fontSize:e.typography.pxToRem(12)})}},MuiButton:{styleOverrides:{root:({theme:e})=>({padding:"12px 24px",borderRadius:e.shape.borderRadius}),contained:{boxShadow:"none"}}},MuiSkeleton:{styleOverrides:{root:({theme:e})=>({borderRadius:e.shape.borderRadius})}},MuiSelect:{styleOverrides:{root:({theme:e})=>({borderRadius:e.shape.borderRadius}),select:{display:"flex",justifyContent:"flex-start",alignItems:"center",gap:"4px"}}},MuiDialog:{defaultProps:{slotProps:{paper:{style:{padding:"12px",borderRadius:24,minWidth:"400px"}}}},styleOverrides:{root:{"& .MuiDialog-container":{backdropFilter:"blur(4px)"}}}},MuiAvatar:{styleOverrides:{root:{fontWeight:500}}},MuiAlert:{styleOverrides:{root:({theme:e})=>({borderRadius:e.shape.borderRadius})}},MuiTextField:{defaultProps:{variant:"outlined"},styleOverrides:{root:({theme:e})=>({"& .MuiInputBase-root":{borderRadius:e.shape.borderRadius}})}},MuiOutlinedInput:{styleOverrides:{root:({theme:e})=>{let t=ee(e);return{color:t.textPrimary,"& fieldset":{borderColor:A(t.textPrimary,.16)},"&:hover fieldset":{borderColor:A(t.textPrimary,.28)},"&.Mui-focused fieldset":{borderColor:e.palette.primary.main}}}}},MuiInputLabel:{styleOverrides:{root:({theme:e})=>({color:A(e.palette.text.primary,.72),"&.Mui-focused":{color:e.palette.primary.main}})}},MuiFormHelperText:{styleOverrides:{root:({theme:e})=>({color:e.palette.text.secondary,"&.Mui-error":{color:e.palette.error.main}})}},MuiPaper:{styleOverrides:{root:({theme:e})=>({borderRadius:e.shape.borderRadius}),elevation8:({theme:e})=>({borderRadius:e.shape.borderRadius})}},MuiMenuItem:{styleOverrides:{root:({theme:e})=>({borderRadius:e.shape.borderRadius})}},MuiBottomNavigationAction:{styleOverrides:{root:({theme:e})=>({borderRadius:e.shape.borderRadius,padding:"12px",margin:0,maxHeight:"none"})}},MuiDialogContent:{styleOverrides:{root:{padding:0}}},MuiSlider:{styleOverrides:{valueLabel:({theme:e})=>({borderRadius:e.shape.borderRadius,padding:"6px 14px","&::before, &::after":{display:"none"}})}},MuiCircularProgress:{styleOverrides:{circle:{strokeLinecap:"round"}}},MuiTab:{styleOverrides:{root:({theme:e})=>({borderRadius:e.shape.borderRadius})}},MuiAccordion:{styleOverrides:{root:{"&::before":{display:"none"}}}}};import{createTheme as Ke}from"@mui/material/styles";var C=(e,t)=>{let{background:r,palette:n,...s}=e,i=r==null?void 0:r[t],a={...n,mode:t};return(i||n!=null&&n.background)&&(a.background={...n==null?void 0:n.background,...i}),Ke({...s,palette:a})};import{useEffect as Ze,useState as Je}from"react";var je=(e=768)=>{let[t,r]=Je(!1);return Ze(()=>{if(!f())return()=>{};let n=()=>{r(window.innerWidth<e)};n();let s=()=>n();return window.addEventListener("resize",s),()=>{window.removeEventListener("resize",s)}},[e]),t};import{useEffect as Qe,useState as qe}from"react";var B=()=>{let[e,t]=qe("unknown");return Qe(()=>{if(!f()||typeof globalThis.matchMedia!="function")return t("unknown"),()=>{};let r=globalThis.matchMedia("(prefers-color-scheme: dark)"),n=s=>{let i=s?s.matches:r.matches;t(i?"dark":"light")};return n(),typeof r.addEventListener!="function"?()=>{}:(r.addEventListener("change",n),()=>{r.removeEventListener("change",n)})},[]),e};var No=e=>/^#([\dA-Fa-f]{3}|[\dA-Fa-f]{6})$/.test(e);var Co=()=>{let e=new Date().getHours();return e>=5&&e<12?"Good morning":e>12&&e<18?"Good afternoon":"Good evening"};var $o=e=>{let t=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getDate()).padStart(2,"0");return`${t}-${r}-${n}`};var et=()=>{let e=(typeof navigator=="undefined"?"":navigator.userAgent).toLowerCase();return e.includes("windows nt")?"Windows":e.includes("iphone")||e.includes("ipad")||e.includes("ipod")?"iOS":e.includes("mac")?"macOS":e.includes("android")?"Android":e.includes("linux")?"Linux":"Unknown"},tt=()=>{let e=(typeof navigator=="undefined"?"":navigator.userAgent).toLowerCase();return e.includes("edg")?"Edge":e.includes("chrome")?"Chrome":e.includes("firefox")?"Firefox":e.includes("safari")?"Safari":"Unknown"},Lo={os:typeof navigator=="undefined"?"Unknown":et(),browser:typeof navigator=="undefined"?"Unknown":tt()};var te=(e,t)=>{switch(e){case"light":return!1;case"dark":return!0;case"system":case"auto":return t==="dark";default:return!1}};var Vo=(e,t)=>{let r=t!=null?t:typeof navigator=="undefined"?"en-US":navigator.language,n=new Date;e=new Date(e);let s=Math.floor((n.getTime()-e.getTime())/1e3),i=new Intl.RelativeTimeFormat(r,{numeric:"auto"});if(s<60)return i.format(-s,"second");if(s<3600){let m=Math.floor(s/60);return i.format(-m,"minute")}if(s<86400){let m=Math.floor(s/3600);return i.format(-m,"hour")}let a=Math.floor(s/86400);return i.format(-a,"day")},Yo=(e,t)=>{let r=t!=null?t:typeof navigator=="undefined"?"en-US":navigator.language,n=new Date;e=new Date(e);let s=(e.getTime()-n.getTime())/1e3,i=Math.floor(s/(60*60)),a=Math.floor((s-60*60*i)/60),m=Math.floor(s-60*60*i-60*a),d=new Intl.RelativeTimeFormat(r,{numeric:"auto"});if(a===0&&m<60)return d.format(m,"second");if(i===0&&a<60)return d.format(a,"minute");if(i<24){let h=`${new Intl.RelativeTimeFormat(r,{numeric:"auto"}).format(i,"hour")}`,l=` ${new Intl.RelativeTimeFormat(r,{localeMatcher:"lookup",numeric:"always",style:"long"}).format(a,"minute")}`.replace(/^\D+/,"");return`${h} ${l}`}let g=Math.floor(m/86400);return d.format(g,"day")};var $=(e,t)=>te(e,t)?"dark":"light";var F=(e,t)=>{var r;return(r=e.colorSchemes[t])!=null?r:e.colorSchemes.light};var o=e=>`${e/16}rem`,ot={defaultProps:{variantMapping:{text_xl_regular:"p",text_lg_regular:"p",text_md_regular:"p",text_sm_regular:"p",text_xs_regular:"p",text_2xs_regular:"p",text_xl_bold:"p",text_lg_bold:"p",text_md_bold:"p",text_sm_bold:"p",text_xs_bold:"p",text_2xs_bold:"p",text_xl_semibold:"p",text_lg_semibold:"p",text_md_semibold:"p",text_sm_semibold:"p",text_xs_semibold:"p",text_2xs_semibold:"p",text_xl_thin:"p",text_lg_thin:"p",text_md_thin:"p",text_sm_thin:"p",text_xs_thin:"p",text_2xs_thin:"p",header_2xl_regular:"h1",header_xl_regular:"h2",header_lg_regular:"h3",header_md_regular:"h4",header_sm_regular:"h5",header_xs_regular:"h6",header_2xl_bold:"h1",header_xl_bold:"h2",header_lg_bold:"h3",header_md_bold:"h4",header_sm_bold:"h5",header_xs_bold:"h6",header_2xl_semibold:"h1",header_xl_semibold:"h2",header_lg_semibold:"h3",header_md_semibold:"h4",header_sm_semibold:"h5",header_xs_semibold:"h6"}}},rt={text_xl_regular:{fontWeight:400,fontSize:o(20),lineHeight:o(30)},text_lg_regular:{fontWeight:400,fontSize:o(18),lineHeight:o(28)},text_md_regular:{fontWeight:400,fontSize:o(16),lineHeight:o(24)},text_sm_regular:{fontWeight:400,fontSize:o(14),lineHeight:o(20)},text_xs_regular:{fontWeight:400,fontSize:o(12),lineHeight:o(18)},text_2xs_regular:{fontWeight:400,fontSize:o(10),lineHeight:o(14)},text_xl_bold:{fontWeight:700,fontSize:o(20),lineHeight:o(30)},text_lg_bold:{fontWeight:700,fontSize:o(18),lineHeight:o(28)},text_md_bold:{fontWeight:700,fontSize:o(16),lineHeight:o(24)},text_sm_bold:{fontWeight:700,fontSize:o(14),lineHeight:o(20)},text_xs_bold:{fontWeight:700,fontSize:o(12),lineHeight:o(18)},text_2xs_bold:{fontWeight:700,fontSize:o(10),lineHeight:o(14)},text_xl_semibold:{fontWeight:600,fontSize:o(20),lineHeight:o(30)},text_lg_semibold:{fontWeight:600,fontSize:o(18),lineHeight:o(28)},text_md_semibold:{fontWeight:600,fontSize:o(16),lineHeight:o(24)},text_sm_semibold:{fontWeight:600,fontSize:o(14),lineHeight:o(20)},text_xs_semibold:{fontWeight:600,fontSize:o(12),lineHeight:o(18)},text_2xs_semibold:{fontWeight:600,fontSize:o(10),lineHeight:o(14)},text_xl_thin:{fontWeight:100,fontSize:o(20),lineHeight:o(30)},text_lg_thin:{fontWeight:100,fontSize:o(18),lineHeight:o(28)},text_md_thin:{fontWeight:100,fontSize:o(16),lineHeight:o(24)},text_sm_thin:{fontWeight:100,fontSize:o(14),lineHeight:o(20)},text_xs_thin:{fontWeight:100,fontSize:o(12),lineHeight:o(18)},text_2xs_thin:{fontWeight:100,fontSize:o(10),lineHeight:o(14)},header_2xl_regular:{fontWeight:400,fontSize:o(34),lineHeight:o(42)},header_xl_regular:{fontWeight:400,fontSize:o(32),lineHeight:o(40)},header_lg_regular:{fontWeight:400,fontSize:o(28),lineHeight:o(36)},header_md_regular:{fontWeight:400,fontSize:o(24),lineHeight:o(32)},header_sm_regular:{fontWeight:400,fontSize:o(20),lineHeight:o(28)},header_xs_regular:{fontWeight:400,fontSize:o(18),lineHeight:o(26)},header_2xl_bold:{fontWeight:700,fontSize:o(34),lineHeight:o(42)},header_xl_bold:{fontWeight:700,fontSize:o(32),lineHeight:o(40)},header_lg_bold:{fontWeight:700,fontSize:o(28),lineHeight:o(36)},header_md_bold:{fontWeight:700,fontSize:o(24),lineHeight:o(32)},header_sm_bold:{fontWeight:700,fontSize:o(20),lineHeight:o(28)},header_xs_bold:{fontWeight:700,fontSize:o(18),lineHeight:o(26)},header_2xl_semibold:{fontWeight:600,fontSize:o(34),lineHeight:o(42)},header_xl_semibold:{fontWeight:600,fontSize:o(32),lineHeight:o(40)},header_lg_semibold:{fontWeight:600,fontSize:o(28),lineHeight:o(36)},header_md_semibold:{fontWeight:600,fontSize:o(24),lineHeight:o(32)},header_sm_semibold:{fontWeight:600,fontSize:o(20),lineHeight:o(28)},header_xs_semibold:{fontWeight:600,fontSize:o(18),lineHeight:o(26)}};var nr=e=>{var n,s,i,a;let t=[],{palette:r}=e;return r?((n=r.background)!=null&&n.default||t.push("palette.background.default is missing."),(s=r.background)!=null&&s.paper||t.push("palette.background.paper is missing."),(i=r.text)!=null&&i.primary||t.push("palette.text.primary is missing."),(a=r.text)!=null&&a.secondary||t.push("palette.text.secondary is missing."),r.divider||t.push("palette.divider is missing."),t):(t.push("palette is missing."),t)};import{keyframes as p}from"@emotion/react";var ar=p`
|
|
181
180
|
from {
|
|
182
181
|
opacity: 0;
|
|
183
182
|
transform: translateX(-40px);
|
|
@@ -186,35 +185,35 @@ import{a as ae,c as me,e as le,g as de,i as pe}from"./chunk-GDOB3KHW.mjs";import
|
|
|
186
185
|
opacity: 1;
|
|
187
186
|
transform: translateX(0);
|
|
188
187
|
}
|
|
189
|
-
`,
|
|
188
|
+
`,lr=p`
|
|
190
189
|
from {
|
|
191
190
|
opacity: 0;
|
|
192
191
|
}
|
|
193
192
|
to {
|
|
194
193
|
opacity: 1;
|
|
195
194
|
}
|
|
196
|
-
`,
|
|
195
|
+
`,mr=p`
|
|
197
196
|
from {
|
|
198
197
|
transform: translateX(-100%);
|
|
199
198
|
}
|
|
200
199
|
to {
|
|
201
200
|
transform: translateX(0);
|
|
202
201
|
}
|
|
203
|
-
`,
|
|
202
|
+
`,dr=p`
|
|
204
203
|
from {
|
|
205
204
|
transform: translateY(100%);
|
|
206
205
|
}
|
|
207
206
|
to {
|
|
208
207
|
transform: translateY(0);
|
|
209
208
|
}
|
|
210
|
-
`,
|
|
209
|
+
`,pr=p`
|
|
211
210
|
from {
|
|
212
211
|
transform: scale(0);
|
|
213
212
|
}
|
|
214
213
|
to {
|
|
215
214
|
transform: scale(1);
|
|
216
215
|
}
|
|
217
|
-
`,
|
|
216
|
+
`,fr=(e,t=12)=>p`
|
|
218
217
|
0% {
|
|
219
218
|
transform: scale(0.95);
|
|
220
219
|
box-shadow: 0 0 0 0 ${e}b2;
|
|
@@ -227,7 +226,7 @@ import{a as ae,c as me,e as le,g as de,i as pe}from"./chunk-GDOB3KHW.mjs";import
|
|
|
227
226
|
transform: scale(0.95);
|
|
228
227
|
box-shadow: 0 0 0 0 ${e}00;
|
|
229
228
|
}
|
|
230
|
-
`,
|
|
229
|
+
`,hr=e=>p`
|
|
231
230
|
0% {
|
|
232
231
|
filter: none;
|
|
233
232
|
}
|
|
@@ -237,7 +236,7 @@ import{a as ae,c as me,e as le,g as de,i as pe}from"./chunk-GDOB3KHW.mjs";import
|
|
|
237
236
|
100% {
|
|
238
237
|
filter: none;
|
|
239
238
|
}
|
|
240
|
-
`,
|
|
239
|
+
`,cr=p`
|
|
241
240
|
0% {
|
|
242
241
|
transform: scale(1);
|
|
243
242
|
opacity: 1;
|
|
@@ -250,7 +249,7 @@ import{a as ae,c as me,e as le,g as de,i as pe}from"./chunk-GDOB3KHW.mjs";import
|
|
|
250
249
|
transform: scale(1);
|
|
251
250
|
opacity: 1;
|
|
252
251
|
}
|
|
253
|
-
`,
|
|
252
|
+
`,ur=p`
|
|
254
253
|
0% {
|
|
255
254
|
transform: translateY(0);
|
|
256
255
|
}
|
|
@@ -266,5 +265,5 @@ import{a as ae,c as me,e as le,g as de,i as pe}from"./chunk-GDOB3KHW.mjs";import
|
|
|
266
265
|
100% {
|
|
267
266
|
transform: translateY(0);
|
|
268
267
|
}
|
|
269
|
-
`;import{jsx as
|
|
268
|
+
`;import{jsx as oe,jsxs as st}from"react/jsx-runtime";var it=({children:e,fontFamily:t,themes:r})=>{let n=B(),{theme:s,setTheme:i,darkMode:a,setDarkMode:m,themesSource:d,selectedTheme:g,selectedPreset:h}=H({themes:r}),l=P(()=>$(a,n),[a,n]),L=P(()=>F(h,l),[h,l]),re=P(()=>C(L,l),[L,l]),ne=P(()=>y(d),[d]);return oe(T.Provider,{value:{theme:s,darkMode:a,setTheme:i,setDarkMode:m,themes:d,selectedTheme:g,defaultThemeName:ne},children:st(nt,{theme:re,children:[oe(N,{fontFamily:t}),e]})})};export{u as APP_SETTINGS_VERSION,fe as DialogBtn,O as ErrorBoundary,N as GlobalStyles,Se as Loading,we as PathName,it as ThemeProviderWrapper,yo as alphaText,C as buildMuiTheme,f as canUseDom,Xe as commonComponentProps,De as darkModeOptions,Co as displayGreeting,ie as editorialClassic,lr as fadeIn,ar as fadeInLeft,tt as getBrowser,$o as getDayIdentifier,et as getOperatingSystem,ee as getSurfaceTokens,ur as installAppAnimation,te as isDarkMode,No as isHexColor,cr as logoutAnimation,Z as mergeThemes,se as modernMinimal,ot as muiTypography,ae as neoGlass,I as normalizeThemes,hr as progressPulse,fr as pulseAnimation,D as readAppSettings,y as resolveDefaultThemeName,$ as resolveEffectiveMode,J as resolveThemeById,le as retroTerminal,pr as scale,F as selectThemeOptions,mr as slideIn,dr as slideInBottom,Lo as systemInfo,Vo as timeAgo,Yo as timeAgoFromStart,rt as typographyVariants,je as useResponsiveDisplay,B as useSystemTheme,V as useThemeSettings,nr as validateSchemeTokens,me as warmEarth,E as writeAppSettings};
|
|
270
269
|
//# sourceMappingURL=index.mjs.map
|