@zydon/common 2.6.32 → 2.6.33

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.
@@ -3,7 +3,7 @@ import { a as a$1, e } from './chunk-H7GUTAKH.js';
3
3
  import { a as a$3, b } from './chunk-AIB3I5MO.js';
4
4
  import { p, r, a as a$2 } from './chunk-HTXWJ57Q.js';
5
5
  import { a as a$5 } from './chunk-GUFT6XPG.js';
6
- import { a as a$6 } from './chunk-A4S6F2Q2.js';
6
+ import { a as a$6 } from './chunk-K6FAM4FL.js';
7
7
  import { c as c$1, b as b$1 } from './chunk-HKDJJCVM.js';
8
8
  import { c } from './chunk-V2UHZWRE.js';
9
9
  import { a as a$4 } from './chunk-QQDMA4TE.js';
@@ -2,6 +2,6 @@ import { b } from './chunk-HKDJJCVM.js';
2
2
  import { useCallback, useEffect } from 'react';
3
3
  import { useColorScheme } from '@mui/material/styles';
4
4
 
5
- var i=e=>{typeof document<"u"&&document.documentElement.setAttribute("data-mui-color-scheme",e);};var a=()=>{let{mode:e,setMode:o}=useColorScheme(),{settings:{setColorScheme:m}}=b(),t=useCallback(r=>{o(r),m(r);},[o,m]),n=useCallback(()=>{t(e==="light"?"dark":"light");},[e,t]);return useEffect(()=>{i(e);},[e]),{colorScheme:e,isDark:e==="dark",toggleTheme:n,setColorScheme:t}};
5
+ var i=e=>{typeof document<"u"&&document.documentElement.setAttribute("data-mui-color-scheme",e);};var S=()=>{let{mode:e,setMode:o}=useColorScheme(),{settings:{setColorScheme:m}}=b(),t=useCallback(r=>{o(r),m(r);},[o,m]),n=useCallback(()=>{t(e==="light"?"dark":"light");},[e,t]);return useEffect(()=>{i(e),window.location.reload();},[e]),{colorScheme:e,isDark:e==="dark",toggleTheme:n,setColorScheme:t}};
6
6
 
7
- export { i as a, a as b };
7
+ export { i as a, S as b };
@@ -11,7 +11,7 @@ interface ImageContainerProps {
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
13
  ref?: ((instance: HTMLDivElement | null) => void) | react.RefObject<HTMLDivElement> | null | undefined;
14
- }, "children" | "className" | "style" | "classes" | "sx" | "variant" | "slots" | "slotProps" | "sizes" | "alt" | "src" | "srcSet" | "imgProps"> & {
14
+ }, "children" | "className" | "style" | "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,13 +1,13 @@
1
1
  import { a } from '../../chunk-P26W2RT7.js';
2
2
  import '../../chunk-QGFD5EQE.js';
3
- import { b } from '../../chunk-F3RQJFGS.js';
3
+ import { b } from '../../chunk-CBKOOMDQ.js';
4
4
  import '../../chunk-SO64ZYQB.js';
5
5
  import '../../chunk-H7GUTAKH.js';
6
6
  import '../../chunk-AIB3I5MO.js';
7
7
  import '../../chunk-CFVUZ4S5.js';
8
8
  import '../../chunk-HTXWJ57Q.js';
9
9
  import '../../chunk-GUFT6XPG.js';
10
- import '../../chunk-A4S6F2Q2.js';
10
+ import '../../chunk-K6FAM4FL.js';
11
11
  import '../../chunk-HKDJJCVM.js';
12
12
  import { j } from '../../chunk-V2UHZWRE.js';
13
13
  import '../../chunk-QQDMA4TE.js';
@@ -1,4 +1,4 @@
1
- import { b } from '../../chunk-A4S6F2Q2.js';
1
+ import { b } from '../../chunk-K6FAM4FL.js';
2
2
  import '../../chunk-HKDJJCVM.js';
3
3
  import { forwardRef } from 'react';
4
4
  import t from '@mui/material/Box';
@@ -1,5 +1,5 @@
1
- import { useLayoutEffect } from 'react';
1
+ import { useEffect } from 'react';
2
2
 
3
- declare const _default: typeof useLayoutEffect;
3
+ declare const _default: typeof useEffect;
4
4
 
5
5
  export { _default as default };
package/dist/index.js CHANGED
@@ -1,11 +1,11 @@
1
- export { b as ThemeProvider, a as createTheme } from './chunk-F3RQJFGS.js';
1
+ export { b as ThemeProvider, a as createTheme } from './chunk-CBKOOMDQ.js';
2
2
  import './chunk-SO64ZYQB.js';
3
3
  export { b as defaultFont, c as primaryFont, d as secondaryFont, a as shadows, e as typography } from './chunk-H7GUTAKH.js';
4
4
  import './chunk-AIB3I5MO.js';
5
5
  import './chunk-CFVUZ4S5.js';
6
6
  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-HTXWJ57Q.js';
7
7
  import './chunk-GUFT6XPG.js';
8
- export { b as useThemeToggle } from './chunk-A4S6F2Q2.js';
8
+ export { b as useThemeToggle } from './chunk-K6FAM4FL.js';
9
9
  export { c as SettingsProvider, b as useSettingsContext } from './chunk-HKDJJCVM.js';
10
10
  export { p as bgBlur, o as bgGradient, n as borderGradient, i as createPaletteChannel, g as hexToRgbChannel, h as hexToRgbaChannel, k as hideScrollX, l as hideScrollY, q as maxLine, b as mediaQueries, s as menuItem, r as paper, e as pxToRem, d as remToPx, f as responsiveFontSizes, c as setFont, a as stylesMode, m as textGradient, j as varAlpha } from './chunk-V2UHZWRE.js';
11
11
  import './chunk-QQDMA4TE.js';
@@ -1,11 +1,11 @@
1
- export { b as default } from '../chunk-F3RQJFGS.js';
1
+ export { b as default } from '../chunk-CBKOOMDQ.js';
2
2
  import '../chunk-SO64ZYQB.js';
3
3
  import '../chunk-H7GUTAKH.js';
4
4
  import '../chunk-AIB3I5MO.js';
5
5
  import '../chunk-CFVUZ4S5.js';
6
6
  import '../chunk-HTXWJ57Q.js';
7
7
  import '../chunk-GUFT6XPG.js';
8
- import '../chunk-A4S6F2Q2.js';
8
+ import '../chunk-K6FAM4FL.js';
9
9
  export { b as useSettingsContext } from '../chunk-HKDJJCVM.js';
10
10
  import '../chunk-V2UHZWRE.js';
11
11
  import '../chunk-QQDMA4TE.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zydon/common",
3
- "version": "2.6.32",
3
+ "version": "2.6.33",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "./dist/index.js",