@zydon/common 2.7.8 → 2.7.9
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/chunk-2SUTVMCJ.js +8 -0
- package/dist/chunk-JQ252Y2Q.js +17 -0
- package/dist/chunk-TYA2RDQJ.js +6 -0
- package/dist/{chunk-5VOIOTTU.js → chunk-XAH3BFFE.js} +1 -1
- package/dist/components/Avatar/index.d.ts +2 -2
- package/dist/components/AvatarButton/index.js +4 -4
- package/dist/components/Common/index.d.ts +5 -1
- package/dist/components/Common/index.js +7 -9
- package/dist/components/DataView/index.d.ts +8 -8
- package/dist/components/DragButton/index.d.ts +1 -1
- package/dist/components/DragContainer/index.d.ts +1 -1
- package/dist/components/ToggleTheme/index.js +4 -4
- package/dist/components/carousel/index.d.ts +3 -3
- package/dist/hooks/useIsomorphicLayoutEffect.d.ts +2 -2
- package/dist/hooks/useThemeToggle.d.ts +1 -1
- package/dist/hooks/useThemeToggle.js +3 -3
- package/dist/hooks/useWindowFocus.js +5 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +3 -3
- package/dist/{settings-28b04fd5.d.ts → settings-d0cceb05.d.ts} +1 -0
- package/dist/{settings-provider-c4e65b05.d.ts → settings-provider-918b7981.d.ts} +2 -2
- package/dist/theme/core/index.d.ts +1 -1
- package/dist/theme/settings-provider.d.ts +2 -2
- package/dist/theme/settings-provider.js +1 -1
- package/dist/theme/styles/index.d.ts +16 -16
- package/dist/theme/theme-provider.d.ts +21 -5
- package/dist/theme/theme-provider.js +2 -2
- package/dist/theme/with-settings/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/chunk-DA3NAPMB.js +0 -7
- package/dist/chunk-FT5VGKNM.js +0 -6
- package/dist/chunk-P3JWN6WS.js +0 -17
- package/dist/chunk-UBRDWK4B.js +0 -5
- package/dist/{index-3e407e51.d.ts → index-8a737d25.d.ts} +12 -12
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { b as b$1 } from './chunk-JQ252Y2Q.js';
|
|
2
|
+
import { b } from './chunk-TYA2RDQJ.js';
|
|
3
|
+
import { useState } from 'react';
|
|
4
|
+
import { useColorScheme } from '@mui/material/styles';
|
|
5
|
+
|
|
6
|
+
var T=()=>{let{setMode:c}=useColorScheme(),{settings:{setColorScheme:l,colorScheme:h,scopeId:s}}=b(),[o,n]=useState(h),r=e=>{c(e),n(e),l(e),b$1(e,s);};return {colorScheme:o,mode:o,isDark:o==="dark",toggleTheme:()=>{r(o==="light"?"dark":"light");},setColorScheme:r}};
|
|
7
|
+
|
|
8
|
+
export { T as a };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { a } from './chunk-SO64ZYQB.js';
|
|
2
|
+
import { a as a$7 } from './chunk-GUFT6XPG.js';
|
|
3
|
+
import { c, b as b$1 } from './chunk-TYA2RDQJ.js';
|
|
4
|
+
import { a as a$1, e } from './chunk-K25VBEKK.js';
|
|
5
|
+
import { a as a$3, b } from './chunk-RRH2346R.js';
|
|
6
|
+
import { p, r, a as a$2 } from './chunk-YKX5RVAJ.js';
|
|
7
|
+
import { d, a as a$4 } from './chunk-7J53ZUIF.js';
|
|
8
|
+
import { a as a$6 } from './chunk-S7QQBC4I.js';
|
|
9
|
+
import { a as a$5 } from './chunk-QQDMA4TE.js';
|
|
10
|
+
import { useMemo, useRef, useEffect } from 'react';
|
|
11
|
+
import N from '@mui/material/CssBaseline';
|
|
12
|
+
import { experimental_extendTheme, lighten, darken, Experimental_CssVarsProvider } from '@mui/material/styles';
|
|
13
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
14
|
+
|
|
15
|
+
var R=({scopeId:t,colorScheme:o,children:e})=>{let m=useRef(null);return useEffect(()=>{m.current&&o&&m.current.setAttribute("data-mui-color-scheme",o);},[o]),t?jsx("div",{ref:m,id:t,"data-theme-scope":!0,style:{isolation:"isolate",width:"100%",height:"100%",display:"contents"},children:e}):jsx(Fragment,{children:e})},V=R;var G=t=>({lighter:lighten(t,.815),light:lighten(t,.225),main:t,dark:darken(t,.15),darker:darken(t,.35),contrastText:"#000"});function w(t,o,e$1=""){let m=G(o.primaryColor);a(p,"dark.palette.primary",m),a(p,"light.palette.primary",m);let n={colorSchemes:p,shadows:a$1(o.colorScheme),customShadows:r(o.colorScheme,m.main),shape:{borderRadius:8},components:a$2,typography:{...e,fontFamily:d(o.fontFamily)},cssVarPrefix:e$1,shouldSkipGeneratingVar:H},r$1=a$3(n,o),i={};return experimental_extendTheme(r$1,t,b(o),i)}function H(t,o){let e=["mixins","overlays","direction","breakpoints","cssVarPrefix","unstable_sxConfig","typography","colorSchemes"],m={global:["tonalOffset","dividerChannel","contrastThreshold"],grey:["A100","A200","A400","A700"],text:["icon"]};if(t[0]==="palette"){let r=t[1],i=m[r]||m.global;return t.some(s=>i?.includes(s))}return t.some(r=>e?.includes(r))}var Se=(t,o)=>{if(typeof document<"u")if(o){let e=document.getElementById(o);e?e.setAttribute(a$4.dataMuiColorScheme,t):console.warn(`ThemeScope: Container #${o} n\xE3o encontrado`);}else document.documentElement.setAttribute(a$4.dataMuiColorScheme,t);},q=({children:t,cssVarPrefix:o})=>{let{settings:e}=b$1(),m=useMemo(()=>{let r=w(a$7[1].systemValue,{primaryColor:e.primaryColor,colorScheme:e.colorScheme,contrast:e.contrast,navLayout:e.navLayout,navColor:e.navColor,compactLayout:e.compactLayout,fontFamily:e.fontFamily,setColorScheme:e.setColorScheme},o),i=r.colorSchemes?.[e.colorScheme]?.palette;return i?r.palette=i:(r.palette=r.colorSchemes?.light?.palette||r.colorSchemes?.dark?.palette,r.palette.mode=e.colorScheme),r},[e,o]),n=useMemo(()=>({theme:m,mode:e.colorScheme,defaultMode:e.colorScheme,defaultColorScheme:e.colorScheme,modeStorageKey:a$4.modeStorageKey,colorSchemeStorageKey:a$4.modeStorageKey}),[m,e.colorScheme]);return jsxs(Experimental_CssVarsProvider,{...n,children:[jsx(N,{}),t]})},f={serializer:t=>t.replaceAll('"',""),deserializer:t=>t.replaceAll('"',"")},I=({children:t,cssVarPrefix:o="app",primaryColor:e="#4E5BEC",fontFamily:m="Public Sans",compactLayout:n=!0,contrast:r="default",navColor:i="integrate",navLayout:s="vertical",colorScheme:l="light",scopeId:S})=>{let[,g]=a$5(a$4.modeStorageKey,l,f),[,W]=a$5(`${a$4.modeStorageKey}-light`,"light",f),[,_]=a$5(`${a$4.modeStorageKey}-dark`,"dark",f);return a$6(()=>{_("dark"),W("light"),g(l);}),jsx(c,{primaryColor:e,fontFamily:m,compactLayout:n,contrast:r,navColor:i,navLayout:s,colorScheme:l,setColorScheme:g,scopeId:S,children:jsx(V,{scopeId:S,colorScheme:l,children:jsx(q,{cssVarPrefix:o,children:t})})})};var ge=I;
|
|
16
|
+
|
|
17
|
+
export { w as a, Se as b, ge as c };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { createContext, memo, useContext, useMemo } from 'react';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
|
|
4
|
+
var S=createContext(void 0),l=()=>{let t=useContext(S);if(!t)throw new Error("useSettingsContext deve ser usado dentro de um SettingsProvider");return t},m=({children:t,primaryColor:e,fontFamily:n,compactLayout:r,colorScheme:i,contrast:s,navColor:o,navLayout:d,setColorScheme:g,scopeId:u})=>{let x=useMemo(()=>({primaryColor:e,fontFamily:n,compactLayout:r,colorScheme:i,contrast:s,navColor:o,navLayout:d,setColorScheme:g,scopeId:u}),[e,n,r,i,s,o,d,g,u]);return jsx(S.Provider,{value:{settings:x},children:t})},w=memo(m);
|
|
5
|
+
|
|
6
|
+
export { S as a, l as b, w as c };
|
|
@@ -10,8 +10,8 @@ interface ImageContainerProps {
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
declare const Avatar: react.ForwardRefExoticComponent<Omit<PropsWithChildren<ImageContainerProps & _mui_material_Avatar.AvatarOwnProps & _mui_material_Avatar.AvatarSlotsAndSlotProps & _mui_material_OverridableComponent.CommonProps & Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
13
|
-
ref?: ((instance: HTMLDivElement | null) => void) |
|
|
14
|
-
}, "children" | "
|
|
13
|
+
ref?: react.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
14
|
+
}, "children" | "style" | "className" | "classes" | "sx" | "variant" | "slots" | "slotProps" | "alt" | "src" | "sizes" | "srcSet" | "imgProps"> & {
|
|
15
15
|
component?: react.ElementType<any, keyof react.JSX.IntrinsicElements> | undefined;
|
|
16
16
|
}>, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
17
17
|
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { a as a$4 } from '../../chunk-FP2AYD66.js';
|
|
2
|
-
import { a as a$5 } from '../../chunk-
|
|
2
|
+
import { a as a$5 } from '../../chunk-XAH3BFFE.js';
|
|
3
3
|
import { a } from '../../chunk-X2EIL7EB.js';
|
|
4
4
|
import { a as a$2 } from '../../chunk-NF42ENKE.js';
|
|
5
5
|
import { a as a$3 } from '../../chunk-WIJV4EHZ.js';
|
|
6
6
|
import '../../chunk-FO7JCJ76.js';
|
|
7
7
|
import '../../chunk-C2JZG45F.js';
|
|
8
8
|
import { a as a$1 } from '../../chunk-ORYAES3Q.js';
|
|
9
|
-
import '../../chunk-
|
|
10
|
-
import '../../chunk-
|
|
9
|
+
import '../../chunk-2SUTVMCJ.js';
|
|
10
|
+
import '../../chunk-JQ252Y2Q.js';
|
|
11
11
|
import '../../chunk-SO64ZYQB.js';
|
|
12
12
|
import '../../chunk-GUFT6XPG.js';
|
|
13
|
-
import '../../chunk-
|
|
13
|
+
import '../../chunk-TYA2RDQJ.js';
|
|
14
14
|
import '../../chunk-K25VBEKK.js';
|
|
15
15
|
import '../../chunk-RRH2346R.js';
|
|
16
16
|
import '../../chunk-CFVUZ4S5.js';
|
|
@@ -8,8 +8,12 @@ interface CommonProps {
|
|
|
8
8
|
cssVarPrefix?: string;
|
|
9
9
|
snackbar?: boolean;
|
|
10
10
|
storageKey?: string;
|
|
11
|
+
scopeId?: string;
|
|
11
12
|
}
|
|
12
13
|
|
|
13
|
-
declare const Common:
|
|
14
|
+
declare const Common: {
|
|
15
|
+
({ primaryColor, colorScheme, contrast, children, cssVarPrefix, snackbar, scopeId, }: PropsWithChildren<CommonProps>): react_jsx_runtime.JSX.Element;
|
|
16
|
+
displayName: string;
|
|
17
|
+
};
|
|
14
18
|
|
|
15
19
|
export { Common as default };
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { a as a$1 } from '../../chunk-UBRDWK4B.js';
|
|
2
1
|
import { a } from '../../chunk-WIJV4EHZ.js';
|
|
3
2
|
import '../../chunk-FO7JCJ76.js';
|
|
4
3
|
import '../../chunk-C2JZG45F.js';
|
|
5
|
-
import { c
|
|
4
|
+
import { c as c$1 } from '../../chunk-JQ252Y2Q.js';
|
|
6
5
|
import '../../chunk-SO64ZYQB.js';
|
|
7
6
|
import '../../chunk-GUFT6XPG.js';
|
|
8
|
-
import
|
|
7
|
+
import '../../chunk-TYA2RDQJ.js';
|
|
9
8
|
import '../../chunk-K25VBEKK.js';
|
|
10
9
|
import '../../chunk-RRH2346R.js';
|
|
11
10
|
import '../../chunk-CFVUZ4S5.js';
|
|
@@ -17,16 +16,15 @@ import '../../chunk-Z2TDWMRU.js';
|
|
|
17
16
|
import '../../chunk-4INDXVIX.js';
|
|
18
17
|
import '../../chunk-3APKMSVD.js';
|
|
19
18
|
import 'dayjs/locale/pt-br';
|
|
20
|
-
import
|
|
19
|
+
import _ from 'dayjs';
|
|
21
20
|
import { AdapterDayjs } from '@mui/x-date-pickers-pro/AdapterDayjs';
|
|
22
21
|
import { LocalizationProvider } from '@mui/x-date-pickers-pro/LocalizationProvider';
|
|
23
22
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
24
23
|
import { LazyMotion, domMax } from 'framer-motion';
|
|
25
|
-
import
|
|
26
|
-
import { styled
|
|
24
|
+
import L from '@mui/material/Portal';
|
|
25
|
+
import { styled } from '@mui/material/styles';
|
|
27
26
|
import { Toaster } from 'sonner';
|
|
28
|
-
import { useCallback, useEffect } from 'react';
|
|
29
27
|
|
|
30
|
-
var
|
|
28
|
+
var h=({children:t})=>(_.locale("pt-br"),jsx(LocalizationProvider,{dateAdapter:AdapterDayjs,adapterLocale:"pt-br",children:t})),c=h;var d=({children:t})=>jsx(LazyMotion,{strict:!0,features:domMax,children:t});var o={root:"toaster__root",toast:"toaster__toast",title:"toaster__title",icon:"toaster__icon",iconSvg:"toaster__icon__svg",content:"toaster__content",description:"toaster__description",actionButton:"toaster__action__button",cancelButton:"toaster__cancel__button",closeButton:"toaster__close_button",loadingIcon:"toaster__loading_icon",default:"toaster__default",error:"toaster__error",success:"toaster__success",warning:"toaster__warning",info:"toaster__info",loader:"sonner-loader",loaderVisible:'&[data-visible="true"]',closeBtnVisible:'[data-close-button="true"]'};var p=styled(Toaster)(({theme:t})=>{let a={toastDefault:{padding:t.spacing(1,1,1,1.5),boxShadow:t.customShadows.z8,color:t.vars.palette.background.paper,backgroundColor:t.vars.palette.text.primary},toastColor:{padding:t.spacing(.5,1,.5,.5),boxShadow:t.customShadows.z8,color:t.vars.palette.text.primary,backgroundColor:t.vars.palette.background.paper},toastLoader:{padding:t.spacing(.5,1,.5,.5),boxShadow:t.customShadows.z8,color:t.vars.palette.text.primary,backgroundColor:t.vars.palette.background.paper}},i={top:0,left:0,width:"100%",height:"100%",display:"none",transform:"none",overflow:"hidden",alignItems:"center",position:"relative",borderRadius:"inherit",justifyContent:"center",background:t.vars.palette.background.neutral,[`& .${o.loadingIcon}`]:{zIndex:9,width:24,height:24,borderRadius:"50%",animation:"rotate 3s infinite linear",background:`conic-gradient(${k(t.vars.palette.text.primaryChannel,0)}, ${k(t.vars.palette.text.disabledChannel,.64)})`},[o.loaderVisible]:{display:"flex"}};return {width:300,[`& .${o.toast}`]:{gap:12,width:"100%",minHeight:52,display:"flex",borderRadius:12,alignItems:"center"},[`& .${o.content}`]:{gap:0,flex:"1 1 auto"},[`& .${o.title}`]:{fontSize:t.typography.subtitle2.fontSize},[`& .${o.description}`]:{...t.typography.caption,opacity:.64},[`& .${o.actionButton}`]:{},[`& .${o.cancelButton}`]:{},[`& .${o.closeButton}`]:{top:0,right:0,left:"auto",color:"currentColor",backgroundColor:"transparent",transform:"translate(-6px, 6px)",borderColor:k(t.vars.palette.grey["500Channel"],.16),transition:t.transitions.create(["background-color","border-color"]),"&:hover":{borderColor:k(t.vars.palette.grey["500Channel"],.24),backgroundColor:k(t.vars.palette.grey["500Channel"],.08)}},[`& .${o.icon}`]:{margin:0,width:48,height:48,alignItems:"center",borderRadius:"inherit",justifyContent:"center",alignSelf:"flex-start",[`& .${o.iconSvg}`]:{width:24,height:24,fontSize:0}},"@keyframes rotate":{to:{transform:"rotate(1turn)"}},[`& .${o.default}`]:{...a.toastDefault,[`&:has(${o.closeBtnVisible})`]:{[`& .${o.content}`]:{paddingRight:32}},[`&:has(.${o.loader})`]:a.toastLoader,[`&:has(.${o.loader})`]:a.toastLoader,[`& .${o.loader}`]:i},[`& .${o.error}`]:{...a.toastColor,[`& .${o.icon}`]:{color:t.vars.palette.error.main,backgroundColor:k(t.vars.palette.error.mainChannel,.08)}},[`& .${o.success}`]:{...a.toastColor,[`& .${o.icon}`]:{color:t.vars.palette.success.main,backgroundColor:k(t.vars.palette.success.mainChannel,.08)}},[`& .${o.warning}`]:{...a.toastColor,[`& .${o.icon}`]:{color:t.vars.palette.warning.main,backgroundColor:k(t.vars.palette.warning.mainChannel,.08)}},[`& .${o.info}`]:{...a.toastColor,[`& .${o.icon}`]:{color:t.vars.palette.info.main,backgroundColor:k(t.vars.palette.info.mainChannel,.08)}}}});var u=()=>jsx(L,{container:typeof window<"u"?document.getElementById("snackbar-container-provider"):null,children:jsx(p,{expand:!0,gap:12,closeButton:!0,offset:16,visibleToasts:4,position:"top-right",className:o.root,toastOptions:{unstyled:!0,classNames:{toast:o.toast,icon:o.icon,content:o.content,title:o.title,description:o.description,actionButton:o.actionButton,cancelButton:o.cancelButton,closeButton:o.closeButton,default:o.default,info:o.info,error:o.error,success:o.success,warning:o.warning}},icons:{loading:jsx("span",{className:o.loadingIcon}),info:jsx(a,{className:o.iconSvg,icon:"INFO_CIRCLE"}),success:jsx(a,{className:o.iconSvg,icon:"CHECK_CIRCLE"}),warning:jsx(a,{className:o.iconSvg,icon:"WARNING_TRIANGULE"}),error:jsx(a,{className:o.iconSvg,icon:"ALERT_CIRCLE"})}})});var g=({primaryColor:t,colorScheme:a="light",contrast:i="default",children:f,cssVarPrefix:m="app",snackbar:C=!0,scopeId:b})=>jsx(c,{children:jsx(c$1,{primaryColor:t,colorScheme:a,contrast:i,cssVarPrefix:m,scopeId:b,children:jsxs(d,{children:[f,C&&jsx(u,{})]})})});g.displayName="Common";var to=g;
|
|
31
29
|
|
|
32
|
-
export {
|
|
30
|
+
export { to as default };
|
|
@@ -34,28 +34,28 @@ interface DefaultProps {
|
|
|
34
34
|
}
|
|
35
35
|
declare const Container: _emotion_styled.StyledComponent<PanelProps & _mui_system.MUIStyledCommonProps<_mui_material_styles.Theme> & DefaultProps, {}, {}>;
|
|
36
36
|
declare const Header: _emotion_styled.StyledComponent<_mui_material_Stack.StackOwnProps & _mui_material_OverridableComponent.CommonProps & Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
37
|
-
ref?: ((instance: HTMLDivElement | null) => void) |
|
|
37
|
+
ref?: react.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
38
38
|
}, keyof _mui_material_OverridableComponent.CommonProps | keyof _mui_material_Stack.StackOwnProps> & _mui_system.MUIStyledCommonProps<_mui_material_styles.Theme> & DefaultProps, {}, {}>;
|
|
39
39
|
declare const ActionsContainer: _emotion_styled.StyledComponent<_mui_material_Stack.StackOwnProps & _mui_material_OverridableComponent.CommonProps & Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
40
|
-
ref?: ((instance: HTMLDivElement | null) => void) |
|
|
40
|
+
ref?: react.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
41
41
|
}, keyof _mui_material_OverridableComponent.CommonProps | keyof _mui_material_Stack.StackOwnProps> & _mui_system.MUIStyledCommonProps<_mui_material_styles.Theme> & DefaultProps, {}, {}>;
|
|
42
42
|
declare const ActionsDivider: _emotion_styled.StyledComponent<_mui_material_Divider.DividerOwnProps & _mui_material_OverridableComponent.CommonProps & Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLHRElement>, HTMLHRElement>, "ref"> & {
|
|
43
43
|
ref?: ((instance: HTMLHRElement | null) => void) | react.RefObject<HTMLHRElement> | null | undefined;
|
|
44
|
-
}, "light" | "children" | "
|
|
44
|
+
}, "light" | "children" | "style" | "className" | "classes" | "sx" | "variant" | "textAlign" | "absolute" | "orientation" | "flexItem"> & _mui_system.MUIStyledCommonProps<_mui_material_styles.Theme>, {}, {}>;
|
|
45
45
|
declare const ToolbarActionsDivider: _emotion_styled.StyledComponent<_mui_material_Divider.DividerOwnProps & _mui_material_OverridableComponent.CommonProps & Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLHRElement>, HTMLHRElement>, "ref"> & {
|
|
46
46
|
ref?: ((instance: HTMLHRElement | null) => void) | react.RefObject<HTMLHRElement> | null | undefined;
|
|
47
|
-
}, "light" | "children" | "
|
|
47
|
+
}, "light" | "children" | "style" | "className" | "classes" | "sx" | "variant" | "textAlign" | "absolute" | "orientation" | "flexItem"> & _mui_system.MUIStyledCommonProps<_mui_material_styles.Theme>, {}, {}>;
|
|
48
48
|
declare const Topbar: _emotion_styled.StyledComponent<_mui_material_Stack.StackOwnProps & _mui_material_OverridableComponent.CommonProps & Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
49
|
-
ref?: ((instance: HTMLDivElement | null) => void) |
|
|
49
|
+
ref?: react.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
50
50
|
}, keyof _mui_material_OverridableComponent.CommonProps | keyof _mui_material_Stack.StackOwnProps> & _mui_system.MUIStyledCommonProps<_mui_material_styles.Theme> & DefaultProps, {}, {}>;
|
|
51
51
|
declare const SearchContainer: _emotion_styled.StyledComponent<_mui_material_Stack.StackOwnProps & _mui_material_OverridableComponent.CommonProps & Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
52
|
-
ref?: ((instance: HTMLDivElement | null) => void) |
|
|
52
|
+
ref?: react.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
53
53
|
}, keyof _mui_material_OverridableComponent.CommonProps | keyof _mui_material_Stack.StackOwnProps> & _mui_system.MUIStyledCommonProps<_mui_material_styles.Theme> & DefaultProps, {}, {}>;
|
|
54
54
|
declare const MobilePaginationContainer: _emotion_styled.StyledComponent<_mui_material_Stack.StackOwnProps & _mui_material_OverridableComponent.CommonProps & Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
55
|
-
ref?: ((instance: HTMLDivElement | null) => void) |
|
|
55
|
+
ref?: react.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
56
56
|
}, keyof _mui_material_OverridableComponent.CommonProps | keyof _mui_material_Stack.StackOwnProps> & _mui_system.MUIStyledCommonProps<_mui_material_styles.Theme>, {}, {}>;
|
|
57
57
|
declare const DesktopPaginationContainer: _emotion_styled.StyledComponent<_mui_material_Stack.StackOwnProps & _mui_material_OverridableComponent.CommonProps & Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
58
|
-
ref?: ((instance: HTMLDivElement | null) => void) |
|
|
58
|
+
ref?: react.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
59
59
|
}, keyof _mui_material_OverridableComponent.CommonProps | keyof _mui_material_Stack.StackOwnProps> & _mui_system.MUIStyledCommonProps<_mui_material_styles.Theme>, {}, {}>;
|
|
60
60
|
|
|
61
61
|
declare const Toolbar: () => react_jsx_runtime.JSX.Element;
|
|
@@ -6,7 +6,7 @@ import * as _mui_material_IconButton from '@mui/material/IconButton';
|
|
|
6
6
|
|
|
7
7
|
declare const DragButton: ({ disableDrag, ...props }: _mui_material_IconButton.IconButtonOwnProps & Omit<_mui_material.ButtonBaseOwnProps, "classes"> & _mui_material_OverridableComponent.CommonProps & Omit<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
8
8
|
ref?: ((instance: HTMLButtonElement | null) => void) | react.RefObject<HTMLButtonElement> | null | undefined;
|
|
9
|
-
}, "children" | "
|
|
9
|
+
}, "children" | "style" | "className" | "tabIndex" | "disabled" | "classes" | "sx" | "color" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "size" | "disableFocusRipple" | "edge"> & {
|
|
10
10
|
component?: react.ElementType<any, keyof react.JSX.IntrinsicElements> | undefined;
|
|
11
11
|
} & {
|
|
12
12
|
disableDrag?: boolean | undefined;
|
|
@@ -19,7 +19,7 @@ interface SortableStyleProps extends BoxProps {
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
declare const DragContainer: _emotion_styled.StyledComponent<_mui_system.BoxOwnProps<_mui_material_styles.Theme> & Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
22
|
-
ref?: ((instance: HTMLDivElement | null) => void) |
|
|
22
|
+
ref?: react.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
23
23
|
}, keyof _mui_system.BoxOwnProps<_mui_material_styles.Theme>> & _mui_system.MUIStyledCommonProps<_mui_material_styles.Theme> & SortableStyleProps & Partial<DraggableAttributes>, {}, {}>;
|
|
24
24
|
|
|
25
25
|
export { DragContainer as default };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { a as default } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
1
|
+
export { a as default } from '../../chunk-XAH3BFFE.js';
|
|
2
|
+
import '../../chunk-2SUTVMCJ.js';
|
|
3
|
+
import '../../chunk-JQ252Y2Q.js';
|
|
4
4
|
import '../../chunk-SO64ZYQB.js';
|
|
5
5
|
import '../../chunk-GUFT6XPG.js';
|
|
6
|
-
import '../../chunk-
|
|
6
|
+
import '../../chunk-TYA2RDQJ.js';
|
|
7
7
|
import '../../chunk-K25VBEKK.js';
|
|
8
8
|
import '../../chunk-RRH2346R.js';
|
|
9
9
|
import '../../chunk-CFVUZ4S5.js';
|
|
@@ -156,10 +156,10 @@ type CarouselProps = {
|
|
|
156
156
|
|
|
157
157
|
type StyledProps = Pick<CarouselOptions, 'axis' | 'slideSpacing'>;
|
|
158
158
|
declare const StyledRoot: _emotion_styled.StyledComponent<_mui_system.BoxOwnProps<_mui_material_styles.Theme> & Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
159
|
-
ref?: ((instance: HTMLDivElement | null) => void) |
|
|
159
|
+
ref?: react.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
160
160
|
}, keyof _mui_system.BoxOwnProps<_mui_material_styles.Theme>> & _mui_system.MUIStyledCommonProps<_mui_material_styles.Theme> & StyledProps, {}, {}>;
|
|
161
161
|
declare const StyledContainer: _emotion_styled.StyledComponent<_mui_system.BoxOwnProps<_mui_material_styles.Theme> & Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
162
|
-
ref?: ((instance: HTMLDivElement | null) => void) |
|
|
162
|
+
ref?: react.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
163
163
|
}, keyof _mui_system.BoxOwnProps<_mui_material_styles.Theme>> & _mui_system.MUIStyledCommonProps<_mui_material_styles.Theme> & StyledProps, {}, {}>;
|
|
164
164
|
declare function Carousel({ carousel, children, sx, slotProps, ...props }: CarouselProps): react_jsx_runtime.JSX.Element;
|
|
165
165
|
|
|
@@ -199,7 +199,7 @@ declare function CarouselProgressBar({ value, sx, ...other }: BoxProps & Carouse
|
|
|
199
199
|
declare function CarouselSlide({ sx, options, children, ...other }: BoxProps & CarouselSlideProps): react_jsx_runtime.JSX.Element;
|
|
200
200
|
|
|
201
201
|
declare const CarouselThumbs: react.ForwardRefExoticComponent<Omit<_mui_system.BoxOwnProps<Theme> & _mui_material_OverridableComponent.CommonProps & Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
202
|
-
ref?: ((instance: HTMLDivElement | null) => void) |
|
|
202
|
+
ref?: react.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
203
203
|
}, keyof _mui_material_OverridableComponent.CommonProps | keyof _mui_system.BoxOwnProps<Theme>> & CarouselThumbsProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
204
204
|
declare function CarouselThumb({ thumbType, sx, src, index, selected, imageRender, thumbAlt, ...other }: ButtonBaseProps & CarouselThumbProps): react_jsx_runtime.JSX.Element | null;
|
|
205
205
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { a as useThemeToggle } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { a as useThemeToggle } from '../chunk-2SUTVMCJ.js';
|
|
2
|
+
import '../chunk-JQ252Y2Q.js';
|
|
3
3
|
import '../chunk-SO64ZYQB.js';
|
|
4
4
|
import '../chunk-GUFT6XPG.js';
|
|
5
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-TYA2RDQJ.js';
|
|
6
6
|
import '../chunk-K25VBEKK.js';
|
|
7
7
|
import '../chunk-RRH2346R.js';
|
|
8
8
|
import '../chunk-CFVUZ4S5.js';
|
|
@@ -1 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { useState, useEffect } from 'react';
|
|
2
|
+
|
|
3
|
+
function u(){let e=typeof document<"u",[n,i]=useState(()=>e?!document.hidden:!0);return useEffect(()=>{if(!e)return;let t=()=>{i(!document.hidden);};return document.addEventListener("visibilitychange",t),()=>{document.removeEventListener("visibilitychange",t);}},[e]),n}var c=u;
|
|
4
|
+
|
|
5
|
+
export { c as default };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { C as CustomShadows } from './index-
|
|
2
|
-
export { d as ColorType, k as action, j as background, l as basePalette, o as colorSchemes, h as common, c as components, a as createShadowColor, b as customShadows, n as darkPalette, r as defaultFont, f as error, g as grey, i as info, m as lightPalette, p as primary, u as primaryFont, s as secondary, v as secondaryFont, q as shadows, e as success, t as text, x as typography, w as warning } from './index-
|
|
3
|
-
export { S as SettingsContextValue, _ as SettingsProvider, T as ThemeProviderProps, u as useSettingsContext } from './settings-provider-
|
|
1
|
+
import { C as CustomShadows } from './index-8a737d25.js';
|
|
2
|
+
export { d as ColorType, k as action, j as background, l as basePalette, o as colorSchemes, h as common, c as components, a as createShadowColor, b as customShadows, n as darkPalette, r as defaultFont, f as error, g as grey, i as info, m as lightPalette, p as primary, u as primaryFont, s as secondary, v as secondaryFont, q as shadows, e as success, t as text, x as typography, w as warning } from './index-8a737d25.js';
|
|
3
|
+
export { S as SettingsContextValue, _ as SettingsProvider, T as ThemeProviderProps, u as useSettingsContext } from './settings-provider-918b7981.js';
|
|
4
4
|
export { default as ThemeProvider } from './theme/theme-provider.js';
|
|
5
|
-
import { S as SettingsState } from './settings-
|
|
5
|
+
import { S as SettingsState } from './settings-d0cceb05.js';
|
|
6
6
|
import { Theme as Theme$1 } from '@mui/material/styles';
|
|
7
7
|
import { a as ThemeLocaleComponents } from './types-2a4efc17.js';
|
|
8
8
|
export { BgBlurProps, BgGradientProps, BorderGradientProps, ColorWithAlpha, MaxLineProps, MediaFontSize, bgBlur, bgGradient, borderGradient, createPaletteChannel, hexToRgbChannel, hexToRgbaChannel, hideScrollX, hideScrollY, maxLine, mediaQueries, menuItem, paper, pxToRem, remToPx, responsiveFontSizes, setFont, stylesMode, textGradient, varAlpha } from './theme/styles/index.js';
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { a as useThemeToggle } from './chunk-
|
|
2
|
-
export { c as ThemeProvider, a as createTheme } from './chunk-
|
|
1
|
+
export { a as useThemeToggle } from './chunk-2SUTVMCJ.js';
|
|
2
|
+
export { c as ThemeProvider, a as createTheme } from './chunk-JQ252Y2Q.js';
|
|
3
3
|
import './chunk-SO64ZYQB.js';
|
|
4
4
|
import './chunk-GUFT6XPG.js';
|
|
5
|
-
export { c as SettingsProvider, b as useSettingsContext } from './chunk-
|
|
5
|
+
export { c as SettingsProvider, b as useSettingsContext } from './chunk-TYA2RDQJ.js';
|
|
6
6
|
export { b as defaultFont, c as primaryFont, d as secondaryFont, a as shadows, e as typography } from './chunk-K25VBEKK.js';
|
|
7
7
|
import './chunk-RRH2346R.js';
|
|
8
8
|
import './chunk-CFVUZ4S5.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as react from 'react';
|
|
3
3
|
import { PropsWithChildren } from 'react';
|
|
4
|
-
import { S as SettingsState } from './settings-
|
|
4
|
+
import { S as SettingsState } from './settings-d0cceb05.js';
|
|
5
5
|
|
|
6
6
|
interface ThemeProviderProps extends PropsWithChildren<Partial<SettingsState>> {
|
|
7
7
|
storageKey?: string;
|
|
@@ -13,6 +13,6 @@ type SettingsContextValue = {
|
|
|
13
13
|
|
|
14
14
|
declare const SettingsContext: react.Context<SettingsContextValue | undefined>;
|
|
15
15
|
declare const useSettingsContext: () => SettingsContextValue;
|
|
16
|
-
declare const _default: react.MemoExoticComponent<({ children, primaryColor, fontFamily, compactLayout, colorScheme, contrast, navColor, navLayout, setColorScheme, }: PropsWithChildren<SettingsState>) => react_jsx_runtime.JSX.Element>;
|
|
16
|
+
declare const _default: react.MemoExoticComponent<({ children, primaryColor, fontFamily, compactLayout, colorScheme, contrast, navColor, navLayout, setColorScheme, scopeId, }: PropsWithChildren<SettingsState>) => react_jsx_runtime.JSX.Element>;
|
|
17
17
|
|
|
18
18
|
export { SettingsContextValue as S, ThemeProviderProps as T, _default as _, SettingsContext as a, useSettingsContext as u };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { d as ColorType, k as action, j as background, l as basePalette, o as colorSchemes, h as common, c as components, a as createShadowColor, b as customShadows, n as darkPalette, r as defaultFont, f as error, g as grey, i as info, m as lightPalette, p as primary, u as primaryFont, s as secondary, v as secondaryFont, q as shadows, e as success, t as text, x as typography, w as warning } from '../../index-
|
|
1
|
+
export { d as ColorType, k as action, j as background, l as basePalette, o as colorSchemes, h as common, c as components, a as createShadowColor, b as customShadows, n as darkPalette, r as defaultFont, f as error, g as grey, i as info, m as lightPalette, p as primary, u as primaryFont, s as secondary, v as secondaryFont, q as shadows, e as success, t as text, x as typography, w as warning } from '../../index-8a737d25.js';
|
|
2
2
|
import '@mui/lab/TimelineConnector';
|
|
3
3
|
import '@mui/system';
|
|
4
4
|
import '@mui/lab/TimelineDot';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import 'react/jsx-runtime';
|
|
2
2
|
import 'react';
|
|
3
|
-
import '../settings-
|
|
4
|
-
export { a as SettingsContext, _ as default, u as useSettingsContext } from '../settings-provider-
|
|
3
|
+
import '../settings-d0cceb05.js';
|
|
4
|
+
export { a as SettingsContext, _ as default, u as useSettingsContext } from '../settings-provider-918b7981.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { a as SettingsContext, c as default, b as useSettingsContext } from '../chunk-
|
|
1
|
+
export { a as SettingsContext, c as default, b as useSettingsContext } from '../chunk-TYA2RDQJ.js';
|
|
@@ -184,7 +184,7 @@ declare function paper({ theme, color, dropdown }: PaperProps): {
|
|
|
184
184
|
counterSet?: readonly string[] | csstype.Property.CounterSet | readonly csstype.Property.CounterSet[] | undefined;
|
|
185
185
|
cursor?: readonly string[] | csstype.Property.Cursor | readonly csstype.Property.Cursor[] | undefined;
|
|
186
186
|
direction?: csstype.Property.Direction | readonly NonNullable<csstype.Property.Direction | undefined>[] | readonly csstype.Property.Direction[] | undefined;
|
|
187
|
-
display?:
|
|
187
|
+
display?: csstype.Property.Display | readonly string[] | readonly csstype.Property.Display[] | undefined;
|
|
188
188
|
emptyCells?: csstype.Property.EmptyCells | readonly NonNullable<csstype.Property.EmptyCells | undefined>[] | readonly csstype.Property.EmptyCells[] | undefined;
|
|
189
189
|
filter?: readonly string[] | csstype.Property.Filter | readonly csstype.Property.Filter[] | undefined;
|
|
190
190
|
flexBasis?: readonly (string | (string & {}))[] | csstype.Property.FlexBasis<string | number> | readonly NonNullable<csstype.Property.FlexBasis<string | number> | undefined>[] | undefined;
|
|
@@ -193,7 +193,7 @@ declare function paper({ theme, color, dropdown }: PaperProps): {
|
|
|
193
193
|
flexShrink?: readonly ((string & {}) | csstype.Globals)[] | csstype.Property.FlexShrink | readonly NonNullable<csstype.Property.FlexShrink | undefined>[] | undefined;
|
|
194
194
|
flexWrap?: csstype.Property.FlexWrap | readonly NonNullable<csstype.Property.FlexWrap | undefined>[] | readonly csstype.Property.FlexWrap[] | undefined;
|
|
195
195
|
float?: csstype.Property.Float | readonly NonNullable<csstype.Property.Float | undefined>[] | readonly csstype.Property.Float[] | undefined;
|
|
196
|
-
fontFamily?: csstype.Property.FontFamily | readonly
|
|
196
|
+
fontFamily?: readonly string[] | csstype.Property.FontFamily | readonly csstype.Property.FontFamily[] | undefined;
|
|
197
197
|
fontFeatureSettings?: readonly string[] | csstype.Property.FontFeatureSettings | readonly csstype.Property.FontFeatureSettings[] | undefined;
|
|
198
198
|
fontKerning?: csstype.Property.FontKerning | readonly NonNullable<csstype.Property.FontKerning | undefined>[] | readonly csstype.Property.FontKerning[] | undefined;
|
|
199
199
|
fontLanguageOverride?: readonly string[] | csstype.Property.FontLanguageOverride | readonly csstype.Property.FontLanguageOverride[] | undefined;
|
|
@@ -218,7 +218,7 @@ declare function paper({ theme, color, dropdown }: PaperProps): {
|
|
|
218
218
|
fontVariantNumeric?: readonly string[] | csstype.Property.FontVariantNumeric | readonly csstype.Property.FontVariantNumeric[] | undefined;
|
|
219
219
|
fontVariantPosition?: csstype.Property.FontVariantPosition | readonly NonNullable<csstype.Property.FontVariantPosition | undefined>[] | readonly csstype.Property.FontVariantPosition[] | undefined;
|
|
220
220
|
fontVariationSettings?: readonly string[] | csstype.Property.FontVariationSettings | readonly csstype.Property.FontVariationSettings[] | undefined;
|
|
221
|
-
fontWeight?: csstype.Property.FontWeight | readonly NonNullable<csstype.Property.FontWeight | undefined>[] | readonly ((string & {}) | csstype.Globals | "
|
|
221
|
+
fontWeight?: csstype.Property.FontWeight | readonly NonNullable<csstype.Property.FontWeight | undefined>[] | readonly ("bold" | (string & {}) | csstype.Globals | "normal" | "bolder" | "lighter")[] | undefined;
|
|
222
222
|
forcedColorAdjust?: csstype.Property.ForcedColorAdjust | readonly NonNullable<csstype.Property.ForcedColorAdjust | undefined>[] | readonly csstype.Property.ForcedColorAdjust[] | undefined;
|
|
223
223
|
gridAutoColumns?: readonly (string | (string & {}))[] | csstype.Property.GridAutoColumns<string | number> | readonly NonNullable<csstype.Property.GridAutoColumns<string | number> | undefined>[] | undefined;
|
|
224
224
|
gridAutoFlow?: readonly string[] | csstype.Property.GridAutoFlow | readonly csstype.Property.GridAutoFlow[] | undefined;
|
|
@@ -231,7 +231,7 @@ declare function paper({ theme, color, dropdown }: PaperProps): {
|
|
|
231
231
|
gridTemplateColumns?: readonly (string | (string & {}))[] | csstype.Property.GridTemplateColumns<string | number> | readonly NonNullable<csstype.Property.GridTemplateColumns<string | number> | undefined>[] | undefined;
|
|
232
232
|
gridTemplateRows?: readonly (string | (string & {}))[] | csstype.Property.GridTemplateRows<string | number> | readonly NonNullable<csstype.Property.GridTemplateRows<string | number> | undefined>[] | undefined;
|
|
233
233
|
hangingPunctuation?: readonly string[] | csstype.Property.HangingPunctuation | readonly csstype.Property.HangingPunctuation[] | undefined;
|
|
234
|
-
height?: readonly (string | (string & {}))[] |
|
|
234
|
+
height?: csstype.Property.Height<string | number> | readonly (string | (string & {}))[] | readonly NonNullable<csstype.Property.Height<string | number> | undefined>[] | undefined;
|
|
235
235
|
hyphenateCharacter?: readonly string[] | csstype.Property.HyphenateCharacter | readonly csstype.Property.HyphenateCharacter[] | undefined;
|
|
236
236
|
hyphenateLimitChars?: readonly ((string & {}) | csstype.Globals | "auto")[] | csstype.Property.HyphenateLimitChars | readonly NonNullable<csstype.Property.HyphenateLimitChars | undefined>[] | undefined;
|
|
237
237
|
hyphens?: csstype.Property.Hyphens | readonly NonNullable<csstype.Property.Hyphens | undefined>[] | readonly csstype.Property.Hyphens[] | undefined;
|
|
@@ -436,16 +436,16 @@ declare function paper({ theme, color, dropdown }: PaperProps): {
|
|
|
436
436
|
whiteSpaceCollapse?: csstype.Property.WhiteSpaceCollapse | readonly NonNullable<csstype.Property.WhiteSpaceCollapse | undefined>[] | readonly csstype.Property.WhiteSpaceCollapse[] | undefined;
|
|
437
437
|
whiteSpaceTrim?: readonly string[] | csstype.Property.WhiteSpaceTrim | readonly csstype.Property.WhiteSpaceTrim[] | undefined;
|
|
438
438
|
widows?: readonly ((string & {}) | csstype.Globals)[] | csstype.Property.Widows | readonly NonNullable<csstype.Property.Widows | undefined>[] | undefined;
|
|
439
|
-
width?: readonly (string | (string & {}))[] |
|
|
439
|
+
width?: csstype.Property.Width<string | number> | readonly (string | (string & {}))[] | readonly NonNullable<csstype.Property.Width<string | number> | undefined>[] | undefined;
|
|
440
440
|
willChange?: readonly string[] | csstype.Property.WillChange | readonly csstype.Property.WillChange[] | undefined;
|
|
441
441
|
wordBreak?: csstype.Property.WordBreak | readonly NonNullable<csstype.Property.WordBreak | undefined>[] | readonly csstype.Property.WordBreak[] | undefined;
|
|
442
442
|
wordSpacing?: readonly string[] | csstype.Property.WordSpacing<string | number> | readonly NonNullable<csstype.Property.WordSpacing<string | number> | undefined>[] | undefined;
|
|
443
443
|
wordWrap?: csstype.Property.WordWrap | readonly NonNullable<csstype.Property.WordWrap | undefined>[] | readonly csstype.Property.WordWrap[] | undefined;
|
|
444
444
|
writingMode?: csstype.Property.WritingMode | readonly NonNullable<csstype.Property.WritingMode | undefined>[] | readonly csstype.Property.WritingMode[] | undefined;
|
|
445
445
|
zIndex?: readonly ((string & {}) | csstype.Globals | "auto")[] | csstype.Property.ZIndex | readonly NonNullable<csstype.Property.ZIndex | undefined>[] | undefined;
|
|
446
|
-
zoom?: csstype.Property.Zoom | readonly NonNullable<csstype.Property.Zoom | undefined>[] | readonly ((string & {}) | csstype.Globals | "normal"
|
|
446
|
+
zoom?: csstype.Property.Zoom | readonly NonNullable<csstype.Property.Zoom | undefined>[] | readonly ("reset" | (string & {}) | csstype.Globals | "normal")[] | undefined;
|
|
447
447
|
all?: csstype.Globals | readonly NonNullable<csstype.Globals | undefined>[] | readonly csstype.Globals[] | undefined;
|
|
448
|
-
animation?: csstype.Property.Animation<string & {}> | readonly NonNullable<csstype.Property.Animation<string & {}> | undefined>[] | readonly ((string & {}) | csstype.Globals | "
|
|
448
|
+
animation?: csstype.Property.Animation<string & {}> | readonly NonNullable<csstype.Property.Animation<string & {}> | undefined>[] | readonly ((string & {}) | csstype.Globals | "auto" | "none" | "normal" | "alternate" | "alternate-reverse" | "reverse" | "backwards" | "both" | "forwards" | "infinite" | "paused" | "running" | "ease" | "ease-in" | "ease-in-out" | "ease-out" | "step-end" | "step-start" | "linear")[] | undefined;
|
|
449
449
|
animationRange?: readonly (string | (string & {}))[] | csstype.Property.AnimationRange<string | number> | readonly NonNullable<csstype.Property.AnimationRange<string | number> | undefined>[] | undefined;
|
|
450
450
|
background?: readonly (string | (string & {}))[] | csstype.Property.Background<string | number> | readonly NonNullable<csstype.Property.Background<string | number> | undefined>[] | undefined;
|
|
451
451
|
border?: readonly (string | (string & {}))[] | csstype.Property.Border<string | number> | readonly NonNullable<csstype.Property.Border<string | number> | undefined>[] | undefined;
|
|
@@ -454,7 +454,7 @@ declare function paper({ theme, color, dropdown }: PaperProps): {
|
|
|
454
454
|
borderBlockStart?: readonly (string | (string & {}))[] | csstype.Property.BorderBlockStart<string | number> | readonly NonNullable<csstype.Property.BorderBlockStart<string | number> | undefined>[] | undefined;
|
|
455
455
|
borderBottom?: readonly (string | (string & {}))[] | csstype.Property.BorderBottom<string | number> | readonly NonNullable<csstype.Property.BorderBottom<string | number> | undefined>[] | undefined;
|
|
456
456
|
borderColor?: readonly string[] | csstype.Property.BorderColor | readonly csstype.Property.BorderColor[] | undefined;
|
|
457
|
-
borderImage?: csstype.Property.BorderImage | readonly NonNullable<csstype.Property.BorderImage | undefined>[] | readonly ((string & {}) | csstype.Globals | "
|
|
457
|
+
borderImage?: csstype.Property.BorderImage | readonly NonNullable<csstype.Property.BorderImage | undefined>[] | readonly ("repeat" | (string & {}) | csstype.Globals | "none" | "round" | "space" | "stretch")[] | undefined;
|
|
458
458
|
borderInline?: readonly (string | (string & {}))[] | csstype.Property.BorderInline<string | number> | readonly NonNullable<csstype.Property.BorderInline<string | number> | undefined>[] | undefined;
|
|
459
459
|
borderInlineEnd?: readonly (string | (string & {}))[] | csstype.Property.BorderInlineEnd<string | number> | readonly NonNullable<csstype.Property.BorderInlineEnd<string | number> | undefined>[] | undefined;
|
|
460
460
|
borderInlineStart?: readonly (string | (string & {}))[] | csstype.Property.BorderInlineStart<string | number> | readonly NonNullable<csstype.Property.BorderInlineStart<string | number> | undefined>[] | undefined;
|
|
@@ -486,7 +486,7 @@ declare function paper({ theme, color, dropdown }: PaperProps): {
|
|
|
486
486
|
marginBlock?: readonly (string | (string & {}))[] | csstype.Property.MarginBlock<string | number> | readonly NonNullable<csstype.Property.MarginBlock<string | number> | undefined>[] | undefined;
|
|
487
487
|
marginInline?: readonly (string | (string & {}))[] | csstype.Property.MarginInline<string | number> | readonly NonNullable<csstype.Property.MarginInline<string | number> | undefined>[] | undefined;
|
|
488
488
|
mask?: readonly (string | (string & {}))[] | csstype.Property.Mask<string | number> | readonly NonNullable<csstype.Property.Mask<string | number> | undefined>[] | undefined;
|
|
489
|
-
maskBorder?: csstype.Property.MaskBorder | readonly NonNullable<csstype.Property.MaskBorder | undefined>[] | readonly ((string & {}) | csstype.Globals | "
|
|
489
|
+
maskBorder?: csstype.Property.MaskBorder | readonly NonNullable<csstype.Property.MaskBorder | undefined>[] | readonly ("repeat" | (string & {}) | csstype.Globals | "none" | "round" | "space" | "alpha" | "luminance" | "stretch")[] | undefined;
|
|
490
490
|
motion?: readonly (string | (string & {}))[] | csstype.Property.Offset<string | number> | readonly NonNullable<csstype.Property.Offset<string | number> | undefined>[] | undefined;
|
|
491
491
|
offset?: readonly (string | (string & {}))[] | csstype.Property.Offset<string | number> | readonly NonNullable<csstype.Property.Offset<string | number> | undefined>[] | undefined;
|
|
492
492
|
outline?: readonly (string | (string & {}))[] | csstype.Property.Outline<string | number> | readonly NonNullable<csstype.Property.Outline<string | number> | undefined>[] | undefined;
|
|
@@ -729,8 +729,8 @@ declare function paper({ theme, color, dropdown }: PaperProps): {
|
|
|
729
729
|
WebkitUserModify?: csstype.Property.WebkitUserModify | readonly NonNullable<csstype.Property.WebkitUserModify | undefined>[] | readonly csstype.Property.WebkitUserModify[] | undefined;
|
|
730
730
|
WebkitUserSelect?: csstype.Property.UserSelect | readonly NonNullable<csstype.Property.UserSelect | undefined>[] | readonly csstype.Property.UserSelect[] | undefined;
|
|
731
731
|
WebkitWritingMode?: csstype.Property.WritingMode | readonly NonNullable<csstype.Property.WritingMode | undefined>[] | readonly csstype.Property.WritingMode[] | undefined;
|
|
732
|
-
MozAnimation?: csstype.Property.Animation<string & {}> | readonly NonNullable<csstype.Property.Animation<string & {}> | undefined>[] | readonly ((string & {}) | csstype.Globals | "
|
|
733
|
-
MozBorderImage?: csstype.Property.BorderImage | readonly NonNullable<csstype.Property.BorderImage | undefined>[] | readonly ((string & {}) | csstype.Globals | "
|
|
732
|
+
MozAnimation?: csstype.Property.Animation<string & {}> | readonly NonNullable<csstype.Property.Animation<string & {}> | undefined>[] | readonly ((string & {}) | csstype.Globals | "auto" | "none" | "normal" | "alternate" | "alternate-reverse" | "reverse" | "backwards" | "both" | "forwards" | "infinite" | "paused" | "running" | "ease" | "ease-in" | "ease-in-out" | "ease-out" | "step-end" | "step-start" | "linear")[] | undefined;
|
|
733
|
+
MozBorderImage?: csstype.Property.BorderImage | readonly NonNullable<csstype.Property.BorderImage | undefined>[] | readonly ("repeat" | (string & {}) | csstype.Globals | "none" | "round" | "space" | "stretch")[] | undefined;
|
|
734
734
|
MozColumnRule?: readonly (string | (string & {}))[] | csstype.Property.ColumnRule<string | number> | readonly NonNullable<csstype.Property.ColumnRule<string | number> | undefined>[] | undefined;
|
|
735
735
|
MozColumns?: readonly (string | (string & {}))[] | csstype.Property.Columns<string | number> | readonly NonNullable<csstype.Property.Columns<string | number> | undefined>[] | undefined;
|
|
736
736
|
MozOutlineRadius?: readonly (string | (string & {}))[] | csstype.Property.MozOutlineRadius<string | number> | readonly NonNullable<csstype.Property.MozOutlineRadius<string | number> | undefined>[] | undefined;
|
|
@@ -741,16 +741,16 @@ declare function paper({ theme, color, dropdown }: PaperProps): {
|
|
|
741
741
|
msScrollSnapX?: readonly string[] | csstype.Property.MsScrollSnapX | readonly csstype.Property.MsScrollSnapX[] | undefined;
|
|
742
742
|
msScrollSnapY?: readonly string[] | csstype.Property.MsScrollSnapY | readonly csstype.Property.MsScrollSnapY[] | undefined;
|
|
743
743
|
msTransition?: readonly string[] | csstype.Property.Transition<string & {}> | readonly csstype.Property.Transition<string & {}>[] | undefined;
|
|
744
|
-
WebkitAnimation?: csstype.Property.Animation<string & {}> | readonly NonNullable<csstype.Property.Animation<string & {}> | undefined>[] | readonly ((string & {}) | csstype.Globals | "
|
|
744
|
+
WebkitAnimation?: csstype.Property.Animation<string & {}> | readonly NonNullable<csstype.Property.Animation<string & {}> | undefined>[] | readonly ((string & {}) | csstype.Globals | "auto" | "none" | "normal" | "alternate" | "alternate-reverse" | "reverse" | "backwards" | "both" | "forwards" | "infinite" | "paused" | "running" | "ease" | "ease-in" | "ease-in-out" | "ease-out" | "step-end" | "step-start" | "linear")[] | undefined;
|
|
745
745
|
WebkitBorderBefore?: readonly (string | (string & {}))[] | csstype.Property.WebkitBorderBefore<string | number> | readonly NonNullable<csstype.Property.WebkitBorderBefore<string | number> | undefined>[] | undefined;
|
|
746
|
-
WebkitBorderImage?: csstype.Property.BorderImage | readonly NonNullable<csstype.Property.BorderImage | undefined>[] | readonly ((string & {}) | csstype.Globals | "
|
|
746
|
+
WebkitBorderImage?: csstype.Property.BorderImage | readonly NonNullable<csstype.Property.BorderImage | undefined>[] | readonly ("repeat" | (string & {}) | csstype.Globals | "none" | "round" | "space" | "stretch")[] | undefined;
|
|
747
747
|
WebkitBorderRadius?: readonly (string | (string & {}))[] | csstype.Property.BorderRadius<string | number> | readonly NonNullable<csstype.Property.BorderRadius<string | number> | undefined>[] | undefined;
|
|
748
748
|
WebkitColumnRule?: readonly (string | (string & {}))[] | csstype.Property.ColumnRule<string | number> | readonly NonNullable<csstype.Property.ColumnRule<string | number> | undefined>[] | undefined;
|
|
749
749
|
WebkitColumns?: readonly (string | (string & {}))[] | csstype.Property.Columns<string | number> | readonly NonNullable<csstype.Property.Columns<string | number> | undefined>[] | undefined;
|
|
750
750
|
WebkitFlex?: readonly (string | (string & {}))[] | csstype.Property.Flex<string | number> | readonly NonNullable<csstype.Property.Flex<string | number> | undefined>[] | undefined;
|
|
751
751
|
WebkitFlexFlow?: readonly string[] | csstype.Property.FlexFlow | readonly csstype.Property.FlexFlow[] | undefined;
|
|
752
752
|
WebkitMask?: readonly (string | (string & {}))[] | csstype.Property.WebkitMask<string | number> | readonly NonNullable<csstype.Property.WebkitMask<string | number> | undefined>[] | undefined;
|
|
753
|
-
WebkitMaskBoxImage?: csstype.Property.MaskBorder | readonly NonNullable<csstype.Property.MaskBorder | undefined>[] | readonly ((string & {}) | csstype.Globals | "
|
|
753
|
+
WebkitMaskBoxImage?: csstype.Property.MaskBorder | readonly NonNullable<csstype.Property.MaskBorder | undefined>[] | readonly ("repeat" | (string & {}) | csstype.Globals | "none" | "round" | "space" | "alpha" | "luminance" | "stretch")[] | undefined;
|
|
754
754
|
WebkitTextEmphasis?: readonly string[] | csstype.Property.TextEmphasis | readonly csstype.Property.TextEmphasis[] | undefined;
|
|
755
755
|
WebkitTextStroke?: readonly (string | (string & {}))[] | csstype.Property.WebkitTextStroke<string | number> | readonly NonNullable<csstype.Property.WebkitTextStroke<string | number> | undefined>[] | undefined;
|
|
756
756
|
WebkitTransition?: readonly string[] | csstype.Property.Transition<string & {}> | readonly csstype.Property.Transition<string & {}>[] | undefined;
|
|
@@ -831,7 +831,7 @@ declare function paper({ theme, color, dropdown }: PaperProps): {
|
|
|
831
831
|
MozTransitionTimingFunction?: readonly string[] | csstype.Property.TransitionTimingFunction | readonly csstype.Property.TransitionTimingFunction[] | undefined;
|
|
832
832
|
MozUserInput?: csstype.Property.MozUserInput | readonly NonNullable<csstype.Property.MozUserInput | undefined>[] | readonly csstype.Property.MozUserInput[] | undefined;
|
|
833
833
|
msImeMode?: csstype.Property.ImeMode | readonly NonNullable<csstype.Property.ImeMode | undefined>[] | readonly csstype.Property.ImeMode[] | undefined;
|
|
834
|
-
OAnimation?: csstype.Property.Animation<string & {}> | readonly NonNullable<csstype.Property.Animation<string & {}> | undefined>[] | readonly ((string & {}) | csstype.Globals | "
|
|
834
|
+
OAnimation?: csstype.Property.Animation<string & {}> | readonly NonNullable<csstype.Property.Animation<string & {}> | undefined>[] | readonly ((string & {}) | csstype.Globals | "auto" | "none" | "normal" | "alternate" | "alternate-reverse" | "reverse" | "backwards" | "both" | "forwards" | "infinite" | "paused" | "running" | "ease" | "ease-in" | "ease-in-out" | "ease-out" | "step-end" | "step-start" | "linear")[] | undefined;
|
|
835
835
|
OAnimationDelay?: readonly string[] | csstype.Property.AnimationDelay<string & {}> | readonly csstype.Property.AnimationDelay<string & {}>[] | undefined;
|
|
836
836
|
OAnimationDirection?: readonly string[] | csstype.Property.AnimationDirection | readonly csstype.Property.AnimationDirection[] | undefined;
|
|
837
837
|
OAnimationDuration?: readonly string[] | csstype.Property.AnimationDuration<string & {}> | readonly csstype.Property.AnimationDuration<string & {}>[] | undefined;
|
|
@@ -841,7 +841,7 @@ declare function paper({ theme, color, dropdown }: PaperProps): {
|
|
|
841
841
|
OAnimationPlayState?: readonly string[] | csstype.Property.AnimationPlayState | readonly csstype.Property.AnimationPlayState[] | undefined;
|
|
842
842
|
OAnimationTimingFunction?: readonly string[] | csstype.Property.AnimationTimingFunction | readonly csstype.Property.AnimationTimingFunction[] | undefined;
|
|
843
843
|
OBackgroundSize?: readonly (string | (string & {}))[] | csstype.Property.BackgroundSize<string | number> | readonly NonNullable<csstype.Property.BackgroundSize<string | number> | undefined>[] | undefined;
|
|
844
|
-
OBorderImage?: csstype.Property.BorderImage | readonly NonNullable<csstype.Property.BorderImage | undefined>[] | readonly ((string & {}) | csstype.Globals | "
|
|
844
|
+
OBorderImage?: csstype.Property.BorderImage | readonly NonNullable<csstype.Property.BorderImage | undefined>[] | readonly ("repeat" | (string & {}) | csstype.Globals | "none" | "round" | "space" | "stretch")[] | undefined;
|
|
845
845
|
OObjectFit?: csstype.Property.ObjectFit | readonly NonNullable<csstype.Property.ObjectFit | undefined>[] | readonly csstype.Property.ObjectFit[] | undefined;
|
|
846
846
|
OObjectPosition?: readonly (string | (string & {}))[] | csstype.Property.ObjectPosition<string | number> | readonly NonNullable<csstype.Property.ObjectPosition<string | number> | undefined>[] | undefined;
|
|
847
847
|
OTabSize?: readonly (string | (string & {}))[] | csstype.Property.TabSize<string | number> | readonly NonNullable<csstype.Property.TabSize<string | number> | undefined>[] | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { C as ColorScheme } from '../settings-
|
|
3
|
-
import { T as ThemeProviderProps } from '../settings-provider-
|
|
4
|
-
export { u as useSettingsContext } from '../settings-provider-
|
|
2
|
+
import { C as ColorScheme } from '../settings-d0cceb05.js';
|
|
3
|
+
import { T as ThemeProviderProps } from '../settings-provider-918b7981.js';
|
|
4
|
+
export { u as useSettingsContext } from '../settings-provider-918b7981.js';
|
|
5
5
|
import 'react';
|
|
6
6
|
|
|
7
7
|
declare const schemeConfig: {
|
|
@@ -9,7 +9,23 @@ declare const schemeConfig: {
|
|
|
9
9
|
dataMuiColorScheme: string;
|
|
10
10
|
};
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Força a aplicação de um esquema de cores (light/dark) no DOM.
|
|
14
|
+
*
|
|
15
|
+
* @param scheme - Esquema de cores a ser aplicado ('light' ou 'dark')
|
|
16
|
+
* @param scopeId - ID do container do tema isolado. Se fornecido, aplica no container específico.
|
|
17
|
+
* Se não fornecido, aplica globalmente no document.documentElement.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```tsx
|
|
21
|
+
* // Aplicar globalmente (comportamento padrão)
|
|
22
|
+
* forceDataMuiColorScheme('light');
|
|
23
|
+
*
|
|
24
|
+
* // Aplicar em scope específico
|
|
25
|
+
* forceDataMuiColorScheme('dark', 'b2b-theme-scope');
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
declare const forceDataMuiColorScheme: (scheme: ColorScheme, scopeId?: string) => void;
|
|
29
|
+
declare const ThemeProvider: ({ children, cssVarPrefix, primaryColor, fontFamily, compactLayout, contrast, navColor, navLayout, colorScheme, scopeId, }: ThemeProviderProps) => react_jsx_runtime.JSX.Element;
|
|
14
30
|
|
|
15
31
|
export { ThemeProvider as default, forceDataMuiColorScheme, schemeConfig };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { c as default, b as forceDataMuiColorScheme } from '../chunk-
|
|
1
|
+
export { c as default, b as forceDataMuiColorScheme } from '../chunk-JQ252Y2Q.js';
|
|
2
2
|
import '../chunk-SO64ZYQB.js';
|
|
3
3
|
import '../chunk-GUFT6XPG.js';
|
|
4
|
-
export { b as useSettingsContext } from '../chunk-
|
|
4
|
+
export { b as useSettingsContext } from '../chunk-TYA2RDQJ.js';
|
|
5
5
|
import '../chunk-K25VBEKK.js';
|
|
6
6
|
import '../chunk-RRH2346R.js';
|
|
7
7
|
import '../chunk-CFVUZ4S5.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _mui_material_styles from '@mui/material/styles';
|
|
2
2
|
import { Components, Theme } from '@mui/material/styles';
|
|
3
|
-
import { S as SettingsState } from '../../settings-
|
|
3
|
+
import { S as SettingsState } from '../../settings-d0cceb05.js';
|
|
4
4
|
import { T as ThemeUpdateOptions } from '../../types-2a4efc17.js';
|
|
5
5
|
import '@mui/material/styles/createTypography';
|
|
6
6
|
|
package/package.json
CHANGED
package/dist/chunk-DA3NAPMB.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { b as b$1 } from './chunk-P3JWN6WS.js';
|
|
2
|
-
import { b } from './chunk-FT5VGKNM.js';
|
|
3
|
-
import { useColorScheme } from '@mui/material/styles';
|
|
4
|
-
|
|
5
|
-
var C=()=>{let{mode:o,setMode:c}=useColorScheme(),{settings:{setColorScheme:h,colorScheme:r}}=b(),t=e=>{c(e),h(e),b$1(e);};return {colorScheme:r,mode:r,isDark:o==="dark",toggleTheme:()=>{t(o==="light"?"dark":"light");},setColorScheme:t}};
|
|
6
|
-
|
|
7
|
-
export { C as a };
|
package/dist/chunk-FT5VGKNM.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { createContext, memo, useContext, useMemo } from 'react';
|
|
2
|
-
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
|
|
4
|
-
var u=createContext(void 0),V=()=>{let t=useContext(u);if(!t)throw new Error("useSettingsContext deve ser usado dentro de um SettingsProvider");return t},P=({children:t,primaryColor:e,fontFamily:n,compactLayout:r,colorScheme:i,contrast:s,navColor:o,navLayout:d,setColorScheme:g})=>{let S=useMemo(()=>({primaryColor:e,fontFamily:n,compactLayout:r,colorScheme:i,contrast:s,navColor:o,navLayout:d,setColorScheme:g}),[e,n,r,i,s,o,d,g]);return jsx(u.Provider,{value:{settings:S},children:t})},l=memo(P);
|
|
5
|
-
|
|
6
|
-
export { u as a, V as b, l as c };
|
package/dist/chunk-P3JWN6WS.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { a } from './chunk-SO64ZYQB.js';
|
|
2
|
-
import { a as a$7 } from './chunk-GUFT6XPG.js';
|
|
3
|
-
import { c, b as b$1 } from './chunk-FT5VGKNM.js';
|
|
4
|
-
import { a as a$1, e } from './chunk-K25VBEKK.js';
|
|
5
|
-
import { a as a$3, b } from './chunk-RRH2346R.js';
|
|
6
|
-
import { p, r, a as a$2 } from './chunk-YKX5RVAJ.js';
|
|
7
|
-
import { d, a as a$4 } from './chunk-7J53ZUIF.js';
|
|
8
|
-
import { a as a$6 } from './chunk-S7QQBC4I.js';
|
|
9
|
-
import { a as a$5 } from './chunk-QQDMA4TE.js';
|
|
10
|
-
import { useMemo } from 'react';
|
|
11
|
-
import z from '@mui/material/CssBaseline';
|
|
12
|
-
import { experimental_extendTheme, lighten, darken, Experimental_CssVarsProvider } from '@mui/material/styles';
|
|
13
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
14
|
-
|
|
15
|
-
var W=e=>({lighter:lighten(e,.815),light:lighten(e,.225),main:e,dark:darken(e,.15),darker:darken(e,.35),contrastText:"#000"});function L(e$1,r$1,o=""){let m=W(r$1.primaryColor);a(p,"dark.palette.primary",m),a(p,"light.palette.primary",m);let s={colorSchemes:p,shadows:a$1(r$1.colorScheme),customShadows:r(r$1.colorScheme,m.main),shape:{borderRadius:8},components:a$2,typography:{...e,fontFamily:d(r$1.fontFamily)},cssVarPrefix:o,shouldSkipGeneratingVar:_},t=a$3(s,r$1),a$4={};return experimental_extendTheme(t,e$1,b(r$1),a$4)}function _(e,r){let o=["mixins","overlays","direction","breakpoints","cssVarPrefix","unstable_sxConfig","typography","colorSchemes"],m={global:["tonalOffset","dividerChannel","contrastThreshold"],grey:["A100","A200","A400","A700"],text:["icon"]};if(e[0]==="palette"){let t=e[1],a=m[t]||m.global;return e.some(n=>a?.includes(n))}return e.some(t=>o?.includes(t))}var me=e=>{typeof document<"u"&&document.documentElement.setAttribute(a$4.dataMuiColorScheme,e);},D=({children:e,cssVarPrefix:r})=>{let{settings:o}=b$1(),m=useMemo(()=>{let t=L(a$7[1].systemValue,{primaryColor:o.primaryColor,colorScheme:o.colorScheme,contrast:o.contrast,navLayout:o.navLayout,navColor:o.navColor,compactLayout:o.compactLayout,fontFamily:o.fontFamily,setColorScheme:o.setColorScheme},r),a=t.colorSchemes?.[o.colorScheme]?.palette;return a?t.palette=a:(t.palette=t.colorSchemes?.light?.palette||t.colorSchemes?.dark?.palette,t.palette.mode=o.colorScheme),t},[o,r]),s=useMemo(()=>({theme:m,mode:o.colorScheme,defaultMode:o.colorScheme,defaultColorScheme:o.colorScheme,modeStorageKey:a$4.modeStorageKey,colorSchemeStorageKey:a$4.modeStorageKey}),[m,o.colorScheme]);return jsxs(Experimental_CssVarsProvider,{...s,children:[jsx(z,{}),e]})},u={serializer:e=>e.replaceAll('"',""),deserializer:e=>e.replaceAll('"',"")},G=({children:e,cssVarPrefix:r="app",primaryColor:o="#4E5BEC",fontFamily:m="Public Sans",compactLayout:s=!0,contrast:t="default",navColor:a="integrate",navLayout:n="vertical",colorScheme:p="light"})=>{let[,g]=a$5(a$4.modeStorageKey,p,u),[,F]=a$5(`${a$4.modeStorageKey}-light`,"light",u),[,M]=a$5(`${a$4.modeStorageKey}-dark`,"dark",u);return a$6(()=>{M("dark"),F("light"),g(p);}),jsx(c,{primaryColor:o,fontFamily:m,compactLayout:s,contrast:t,navColor:a,navLayout:n,colorScheme:p,setColorScheme:g,children:jsx(D,{cssVarPrefix:r,children:e})})};var ae=G;
|
|
16
|
-
|
|
17
|
-
export { L as a, me as b, ae as c };
|
package/dist/chunk-UBRDWK4B.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { useState, useEffect } from 'react';
|
|
2
|
-
|
|
3
|
-
function u(){let e=typeof document<"u",[n,i]=useState(()=>e?!document.hidden:!0);return useEffect(()=>{if(!e)return;let t=()=>{i(!document.hidden);};return document.addEventListener("visibilitychange",t),()=>{document.removeEventListener("visibilitychange",t);}},[e]),n}var c=u;
|
|
4
|
-
|
|
5
|
-
export { c as a };
|
|
@@ -286,10 +286,13 @@ declare const components: {
|
|
|
286
286
|
MuiTimelineDot: {
|
|
287
287
|
defaultProps?: Partial<_mui_lab_TimelineDot.TimelineDotProps> | undefined;
|
|
288
288
|
styleOverrides?: Partial<_mui_material_styles_overrides.OverridesStyleRules<keyof _mui_lab_TimelineDot.TimelineDotClasses, "MuiTimelineDot", {
|
|
289
|
-
|
|
289
|
+
cssVarPrefix: string;
|
|
290
|
+
zIndex: _mui_material.ZIndex;
|
|
291
|
+
direction: _mui_system.Direction;
|
|
292
|
+
opacity: _mui_material.Opacity;
|
|
293
|
+
typography: _mui_material.TypographyVariants;
|
|
290
294
|
palette: _mui_material.Palette;
|
|
291
295
|
colorSchemes: Record<_mui_material.SupportedColorScheme, _mui_material.ColorSystem>;
|
|
292
|
-
cssVarPrefix: string;
|
|
293
296
|
vars: _mui_material.ThemeVars;
|
|
294
297
|
getCssVar: (field: _mui_material.ThemeCssVar, ...vars: _mui_material.ThemeCssVar[]) => string;
|
|
295
298
|
getColorSchemeSelector: (colorScheme: _mui_material.SupportedColorScheme) => string;
|
|
@@ -300,16 +303,13 @@ declare const components: {
|
|
|
300
303
|
spacing: _mui_system.Spacing;
|
|
301
304
|
breakpoints: _mui_system.Breakpoints;
|
|
302
305
|
shape: _mui_system.Shape;
|
|
303
|
-
|
|
306
|
+
transitions: _mui_material.Transitions;
|
|
304
307
|
shadows: _mui_material.Shadows;
|
|
305
308
|
mixins: _mui_material.Mixins;
|
|
306
|
-
zIndex: _mui_material.ZIndex;
|
|
307
|
-
direction: _mui_system.Direction;
|
|
308
309
|
shouldSkipGeneratingVar: (keys: string[], value: string | number) => boolean;
|
|
309
310
|
unstable_sxConfig: _mui_system.SxConfig;
|
|
310
311
|
unstable_sx: (props: _mui_system.SxProps<_mui_material.Theme>) => _mui_styled_engine.CSSObject;
|
|
311
312
|
applyStyles: _mui_system.ApplyStyles<"light" | "dark">;
|
|
312
|
-
opacity: _mui_material.Opacity;
|
|
313
313
|
overlays: _mui_material.Overlays;
|
|
314
314
|
customShadows: CustomShadows;
|
|
315
315
|
unstable_strictMode?: boolean | undefined;
|
|
@@ -326,10 +326,13 @@ declare const components: {
|
|
|
326
326
|
MuiTimelineConnector: {
|
|
327
327
|
defaultProps?: Partial<_mui_lab_TimelineConnector.TimelineConnectorProps> | undefined;
|
|
328
328
|
styleOverrides?: Partial<_mui_material_styles_overrides.OverridesStyleRules<"root", "MuiTimelineConnector", {
|
|
329
|
-
|
|
329
|
+
cssVarPrefix: string;
|
|
330
|
+
zIndex: _mui_material.ZIndex;
|
|
331
|
+
direction: _mui_system.Direction;
|
|
332
|
+
opacity: _mui_material.Opacity;
|
|
333
|
+
typography: _mui_material.TypographyVariants;
|
|
330
334
|
palette: _mui_material.Palette;
|
|
331
335
|
colorSchemes: Record<_mui_material.SupportedColorScheme, _mui_material.ColorSystem>;
|
|
332
|
-
cssVarPrefix: string;
|
|
333
336
|
vars: _mui_material.ThemeVars;
|
|
334
337
|
getCssVar: (field: _mui_material.ThemeCssVar, ...vars: _mui_material.ThemeCssVar[]) => string;
|
|
335
338
|
getColorSchemeSelector: (colorScheme: _mui_material.SupportedColorScheme) => string;
|
|
@@ -340,16 +343,13 @@ declare const components: {
|
|
|
340
343
|
spacing: _mui_system.Spacing;
|
|
341
344
|
breakpoints: _mui_system.Breakpoints;
|
|
342
345
|
shape: _mui_system.Shape;
|
|
343
|
-
|
|
346
|
+
transitions: _mui_material.Transitions;
|
|
344
347
|
shadows: _mui_material.Shadows;
|
|
345
348
|
mixins: _mui_material.Mixins;
|
|
346
|
-
zIndex: _mui_material.ZIndex;
|
|
347
|
-
direction: _mui_system.Direction;
|
|
348
349
|
shouldSkipGeneratingVar: (keys: string[], value: string | number) => boolean;
|
|
349
350
|
unstable_sxConfig: _mui_system.SxConfig;
|
|
350
351
|
unstable_sx: (props: _mui_system.SxProps<_mui_material.Theme>) => _mui_styled_engine.CSSObject;
|
|
351
352
|
applyStyles: _mui_system.ApplyStyles<"light" | "dark">;
|
|
352
|
-
opacity: _mui_material.Opacity;
|
|
353
353
|
overlays: _mui_material.Overlays;
|
|
354
354
|
customShadows: CustomShadows;
|
|
355
355
|
unstable_strictMode?: boolean | undefined;
|