@zydon/common 2.7.8 → 2.7.10
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-5VOIOTTU.js → chunk-677WKIPE.js} +1 -1
- package/dist/chunk-N2DMNLAX.js +8 -0
- package/dist/chunk-TYA2RDQJ.js +6 -0
- package/dist/chunk-XCJL6W4A.js +16 -0
- package/dist/components/Avatar/index.d.ts +2 -2
- package/dist/components/AvatarButton/index.js +4 -5
- package/dist/components/Common/index.d.ts +5 -1
- package/dist/components/Common/index.js +7 -10
- 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 -5
- 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 -4
- package/dist/hooks/useWindowFocus.js +5 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -4
- 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/settings-provider.d.ts +2 -2
- package/dist/theme/settings-provider.js +1 -1
- package/dist/theme/styles/index.d.ts +7 -7
- package/dist/theme/theme-provider.d.ts +21 -5
- package/dist/theme/theme-provider.js +2 -3
- 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
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { b as b$1 } from './chunk-XCJL6W4A.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,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 };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { a } from './chunk-SO64ZYQB.js';
|
|
2
|
+
import { a as a$6 } 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$5 } from './chunk-QQDMA4TE.js';
|
|
9
|
+
import { useMemo, useRef, useEffect } from 'react';
|
|
10
|
+
import D from '@mui/material/CssBaseline';
|
|
11
|
+
import { experimental_extendTheme, lighten, darken, Experimental_CssVarsProvider } from '@mui/material/styles';
|
|
12
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
13
|
+
|
|
14
|
+
var W=({scopeId:t,colorScheme:o,children:r})=>{let e=useRef(null);return useEffect(()=>{e.current&&o&&e.current.setAttribute("data-mui-color-scheme",o);},[o]),t?jsx("div",{ref:e,id:t,"data-theme-scope":!0,style:{isolation:"isolate",width:"100%",height:"100%",display:"contents"},children:r}):jsx(Fragment,{children:r})},A=W;var R=t=>({lighter:lighten(t,.815),light:lighten(t,.225),main:t,dark:darken(t,.15),darker:darken(t,.35),contrastText:"#000"});function V(t,o,r$1=""){let e$1=R(o.primaryColor);a(p,"dark.palette.primary",e$1),a(p,"light.palette.primary",e$1);let n={colorSchemes:p,shadows:a$1(o.colorScheme),customShadows:r(o.colorScheme,e$1.main),shape:{borderRadius:8},components:a$2,typography:{...e,fontFamily:d(o.fontFamily)},cssVarPrefix:r$1,shouldSkipGeneratingVar:z},a$4=a$3(n,o),m={};return experimental_extendTheme(a$4,t,b(o),m)}function z(t,o){let r=["mixins","overlays","direction","breakpoints","cssVarPrefix","unstable_sxConfig","typography","colorSchemes"],e={global:["tonalOffset","dividerChannel","contrastThreshold"],grey:["A100","A200","A400","A700"],text:["icon"]};if(t[0]==="palette"){let a=t[1],m=e[a]||e.global;return t.some(s=>m?.includes(s))}return t.some(a=>r?.includes(a))}var de=(t,o)=>{if(typeof document<"u")if(o){let r=document.getElementById(o);r?r.setAttribute(a$4.dataMuiColorScheme,t):console.warn(`ThemeScope: Container #${o} n\xE3o encontrado`);}else document.documentElement.setAttribute(a$4.dataMuiColorScheme,t);},H=({children:t,cssVarPrefix:o,scopeId:r})=>{let{settings:e}=b$1(),n=useMemo(()=>{let m=V(a$6[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),s=m.colorSchemes?.[e.colorScheme]?.palette;return s?m.palette=s:(m.palette=m.colorSchemes?.light?.palette||m.colorSchemes?.dark?.palette,m.palette.mode=e.colorScheme),m},[e,o]),a=useMemo(()=>({theme:n,mode:e.colorScheme,defaultMode:e.colorScheme,defaultColorScheme:e.colorScheme,modeStorageKey:r?`${a$4.modeStorageKey}-${r}`:a$4.modeStorageKey,colorSchemeStorageKey:r?`${a$4.modeStorageKey}-${r}`:a$4.modeStorageKey,attribute:a$4.dataMuiColorScheme}),[n,e.colorScheme,r]);return jsxs(Experimental_CssVarsProvider,{...a,children:[jsx(D,{}),t]})},N={serializer:t=>t.replaceAll('"',""),deserializer:t=>t.replaceAll('"',"")},O=({children:t,cssVarPrefix:o="app",primaryColor:r="#4E5BEC",fontFamily:e="Public Sans",compactLayout:n=!0,contrast:a="default",navColor:m="integrate",navLayout:s="vertical",colorScheme:h="light",scopeId:l})=>{let M=l?`${a$4.modeStorageKey}-${l}`:a$4.modeStorageKey,[,$]=a$5(M,h,N);return jsx(c,{primaryColor:r,fontFamily:e,compactLayout:n,contrast:a,navColor:m,navLayout:s,colorScheme:h,setColorScheme:$,scopeId:l,children:jsx(A,{scopeId:l,colorScheme:h,children:jsx(H,{cssVarPrefix:o,scopeId:l,children:t})})})};var ue=O;
|
|
15
|
+
|
|
16
|
+
export { V as a, de as b, ue 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" | "sizes" | "alt" | "src" | "srcSet" | "imgProps"> & {
|
|
15
15
|
component?: react.ElementType<any, keyof react.JSX.IntrinsicElements> | undefined;
|
|
16
16
|
}>, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
17
17
|
|
|
@@ -1,22 +1,21 @@
|
|
|
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-677WKIPE.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-N2DMNLAX.js';
|
|
10
|
+
import '../../chunk-XCJL6W4A.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';
|
|
17
17
|
import '../../chunk-YKX5RVAJ.js';
|
|
18
18
|
import '../../chunk-7J53ZUIF.js';
|
|
19
|
-
import '../../chunk-S7QQBC4I.js';
|
|
20
19
|
import '../../chunk-QQDMA4TE.js';
|
|
21
20
|
import '../../chunk-Z2TDWMRU.js';
|
|
22
21
|
import '../../chunk-4INDXVIX.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,32 +1,29 @@
|
|
|
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-XCJL6W4A.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';
|
|
12
11
|
import '../../chunk-YKX5RVAJ.js';
|
|
13
12
|
import { k } from '../../chunk-7J53ZUIF.js';
|
|
14
|
-
import '../../chunk-S7QQBC4I.js';
|
|
15
13
|
import '../../chunk-QQDMA4TE.js';
|
|
16
14
|
import '../../chunk-Z2TDWMRU.js';
|
|
17
15
|
import '../../chunk-4INDXVIX.js';
|
|
18
16
|
import '../../chunk-3APKMSVD.js';
|
|
19
17
|
import 'dayjs/locale/pt-br';
|
|
20
|
-
import
|
|
18
|
+
import _ from 'dayjs';
|
|
21
19
|
import { AdapterDayjs } from '@mui/x-date-pickers-pro/AdapterDayjs';
|
|
22
20
|
import { LocalizationProvider } from '@mui/x-date-pickers-pro/LocalizationProvider';
|
|
23
21
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
24
22
|
import { LazyMotion, domMax } from 'framer-motion';
|
|
25
|
-
import
|
|
26
|
-
import { styled
|
|
23
|
+
import L from '@mui/material/Portal';
|
|
24
|
+
import { styled } from '@mui/material/styles';
|
|
27
25
|
import { Toaster } from 'sonner';
|
|
28
|
-
import { useCallback, useEffect } from 'react';
|
|
29
26
|
|
|
30
|
-
var
|
|
27
|
+
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
28
|
|
|
32
|
-
export {
|
|
29
|
+
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,15 +1,14 @@
|
|
|
1
|
-
export { a as default } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
1
|
+
export { a as default } from '../../chunk-677WKIPE.js';
|
|
2
|
+
import '../../chunk-N2DMNLAX.js';
|
|
3
|
+
import '../../chunk-XCJL6W4A.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';
|
|
10
10
|
import '../../chunk-YKX5RVAJ.js';
|
|
11
11
|
import '../../chunk-7J53ZUIF.js';
|
|
12
|
-
import '../../chunk-S7QQBC4I.js';
|
|
13
12
|
import '../../chunk-QQDMA4TE.js';
|
|
14
13
|
import '../../chunk-Z2TDWMRU.js';
|
|
15
14
|
import '../../chunk-4INDXVIX.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,14 +1,13 @@
|
|
|
1
|
-
export { a as useThemeToggle } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { a as useThemeToggle } from '../chunk-N2DMNLAX.js';
|
|
2
|
+
import '../chunk-XCJL6W4A.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';
|
|
9
9
|
import '../chunk-YKX5RVAJ.js';
|
|
10
10
|
import '../chunk-7J53ZUIF.js';
|
|
11
|
-
import '../chunk-S7QQBC4I.js';
|
|
12
11
|
import '../chunk-QQDMA4TE.js';
|
|
13
12
|
import '../chunk-Z2TDWMRU.js';
|
|
14
13
|
import '../chunk-4INDXVIX.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
1
|
import { C as CustomShadows } from './index-3e407e51.js';
|
|
2
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-3e407e51.js';
|
|
3
|
-
export { S as SettingsContextValue, _ as SettingsProvider, T as ThemeProviderProps, u as useSettingsContext } from './settings-provider-
|
|
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,14 +1,13 @@
|
|
|
1
|
-
export { a as useThemeToggle } from './chunk-
|
|
2
|
-
export { c as ThemeProvider, a as createTheme } from './chunk-
|
|
1
|
+
export { a as useThemeToggle } from './chunk-N2DMNLAX.js';
|
|
2
|
+
export { c as ThemeProvider, a as createTheme } from './chunk-XCJL6W4A.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';
|
|
9
9
|
export { l as action, k as background, m as basePalette, p as colorSchemes, i as common, a as components, q as createShadowColor, r as customShadows, o as darkPalette, h as error, b as grey, e as info, n as lightPalette, c as primary, d as secondary, f as success, j as text, g as warning } from './chunk-YKX5RVAJ.js';
|
|
10
10
|
export { q as bgBlur, p as bgGradient, o as borderGradient, j as createPaletteChannel, h as hexToRgbChannel, i as hexToRgbaChannel, l as hideScrollX, m as hideScrollY, r as maxLine, c as mediaQueries, t as menuItem, s as paper, f as pxToRem, e as remToPx, g as responsiveFontSizes, d as setFont, b as stylesMode, n as textGradient, k as varAlpha } from './chunk-7J53ZUIF.js';
|
|
11
|
-
import './chunk-S7QQBC4I.js';
|
|
12
11
|
import './chunk-QQDMA4TE.js';
|
|
13
12
|
import './chunk-Z2TDWMRU.js';
|
|
14
13
|
import './chunk-4INDXVIX.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
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;
|
|
@@ -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,7 +436,7 @@ 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;
|
|
@@ -445,7 +445,7 @@ declare function paper({ theme, color, dropdown }: PaperProps): {
|
|
|
445
445
|
zIndex?: readonly ((string & {}) | csstype.Globals | "auto")[] | csstype.Property.ZIndex | readonly NonNullable<csstype.Property.ZIndex | undefined>[] | undefined;
|
|
446
446
|
zoom?: csstype.Property.Zoom | readonly NonNullable<csstype.Property.Zoom | undefined>[] | readonly ((string & {}) | csstype.Globals | "normal" | "reset")[] | 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 | "normal" | "
|
|
448
|
+
animation?: csstype.Property.Animation<string & {}> | readonly NonNullable<csstype.Property.Animation<string & {}> | undefined>[] | readonly ((string & {}) | csstype.Globals | "normal" | "auto" | "none" | "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;
|
|
@@ -729,7 +729,7 @@ 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 | "normal" | "
|
|
732
|
+
MozAnimation?: csstype.Property.Animation<string & {}> | readonly NonNullable<csstype.Property.Animation<string & {}> | undefined>[] | readonly ((string & {}) | csstype.Globals | "normal" | "auto" | "none" | "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
733
|
MozBorderImage?: csstype.Property.BorderImage | readonly NonNullable<csstype.Property.BorderImage | undefined>[] | readonly ((string & {}) | csstype.Globals | "repeat" | "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;
|
|
@@ -741,7 +741,7 @@ 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 | "normal" | "
|
|
744
|
+
WebkitAnimation?: csstype.Property.Animation<string & {}> | readonly NonNullable<csstype.Property.Animation<string & {}> | undefined>[] | readonly ((string & {}) | csstype.Globals | "normal" | "auto" | "none" | "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
746
|
WebkitBorderImage?: csstype.Property.BorderImage | readonly NonNullable<csstype.Property.BorderImage | undefined>[] | readonly ((string & {}) | csstype.Globals | "repeat" | "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;
|
|
@@ -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 | "normal" | "
|
|
834
|
+
OAnimation?: csstype.Property.Animation<string & {}> | readonly NonNullable<csstype.Property.Animation<string & {}> | undefined>[] | readonly ((string & {}) | csstype.Globals | "normal" | "auto" | "none" | "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;
|
|
@@ -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,13 +1,12 @@
|
|
|
1
|
-
export { c as default, b as forceDataMuiColorScheme } from '../chunk-
|
|
1
|
+
export { c as default, b as forceDataMuiColorScheme } from '../chunk-XCJL6W4A.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';
|
|
8
8
|
import '../chunk-YKX5RVAJ.js';
|
|
9
9
|
export { a as schemeConfig } from '../chunk-7J53ZUIF.js';
|
|
10
|
-
import '../chunk-S7QQBC4I.js';
|
|
11
10
|
import '../chunk-QQDMA4TE.js';
|
|
12
11
|
import '../chunk-Z2TDWMRU.js';
|
|
13
12
|
import '../chunk-4INDXVIX.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 };
|