@zydon/common 2.4.20 → 2.4.21

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.
@@ -1,5 +1,5 @@
1
1
  import { a } from './chunk-OR6QR7N2.js';
2
- import { a as a$1 } from './chunk-MEQXPK2E.js';
2
+ import { a as a$1 } from './chunk-DNLTCAWK.js';
3
3
  import w from '@mui/lab/LoadingButton';
4
4
  import k from '@mui/material/Button';
5
5
  import { useState } from 'react';
@@ -4,6 +4,6 @@ import E from '@mui/material/Stack';
4
4
  import { styled, alpha } from '@mui/material/styles';
5
5
  import { jsx } from 'react/jsx-runtime';
6
6
 
7
- var s=styled(E)(({theme:r})=>({"& .reactEasyCrop_Container":{position:"relative"},"& .reactEasyCrop_CropArea":{border:`2px solid ${r.palette.primary.main}`,borderColor:alpha(r.palette.primary.main,.75)},"& .reactEasyCrop_CropAreaRound":{border:`2px solid ${r.palette.primary.main}`,borderColor:alpha(r.palette.primary.main,.75)}}));var W=({onInitialized:r,aspectRatio:e=1,imageSrc:C="",zoom:c=1,crop:h,cropShape:d="rect",cropSize:o,rotation:f=0,onZoomChange:i,onCropChange:g,onRotationChange:y})=>{let b=t=>{if(t>4){i(4);return}if(t<.1){i(.1);return}i(t);},u=useMemo(()=>{let t=typeof o=="number"?o:o?.width,x=typeof o=="number"?o:o?.height,n=t||550,a=x||550,p=n<=550?n:550,w=a<=550?a:p/e;return {width:p,height:w}},[e,o]);return jsx(s,{children:jsx(P,{image:C,crop:h,zoom:c,aspect:e,onCropChange:g,onZoomChange:b,onCropComplete:r,restrictPosition:!1,cropSize:u,cropShape:d,zoomWithScroll:!1,objectFit:"contain",minZoom:.1,maxZoom:4,style:{containerStyle:{minHeight:"360px",position:"relative"}},rotation:f,onRotationChange:y})})},k=W;
7
+ var s=styled(E)(({theme:r})=>({"& .reactEasyCrop_Container":{position:"relative"},"& .reactEasyCrop_CropArea":{border:`2px solid ${r.palette.primary.main}`,borderColor:alpha(r.palette.primary.main,.75)},"& .reactEasyCrop_CropAreaRound":{border:`2px solid ${r.palette.primary.main}`,borderColor:alpha(r.palette.primary.main,.75)}}));var W=({onInitialized:r,aspectRatio:e=1,imageSrc:C="",zoom:c=1,crop:h,cropShape:d="rect",cropSize:o,rotation:f=0,onZoomChange:i,onCropChange:g,onRotationChange:y})=>{let b=t=>{if(t>4){i(4);return}if(t<.1){i(.1);return}i(t);},u=useMemo(()=>{let t=typeof o=="number"?o:o?.width,x=typeof o=="number"?o:o?.height,n=t||550,a=x||550,p=n<=550?n:550,w=a<=550?a:p/e;return {width:p,height:w}},[e,o]);return jsx(s,{children:jsx(P,{image:C,crop:h,zoom:c,aspect:e,onCropChange:g,onZoomChange:b,onCropComplete:r,restrictPosition:!1,cropSize:u,cropShape:d,zoomWithScroll:!1,objectFit:"contain",minZoom:.1,maxZoom:4,style:{containerStyle:{minHeight:"550px",position:"relative"}},rotation:f,onRotationChange:y})})},k=W;
8
8
 
9
9
  export { k as a };
@@ -1 +1 @@
1
- export { a as default } from '../../chunk-MEQXPK2E.js';
1
+ export { a as default } from '../../chunk-DNLTCAWK.js';
@@ -1,5 +1,5 @@
1
- export { a as default } from '../../chunk-CVUXRFLE.js';
1
+ export { a as default } from '../../chunk-56U7LQ3V.js';
2
2
  import '../../chunk-OR6QR7N2.js';
3
- import '../../chunk-MEQXPK2E.js';
3
+ import '../../chunk-DNLTCAWK.js';
4
4
  import '../../chunk-RGXSHDAI.js';
5
5
  import '../../chunk-CHLVIVDD.js';
@@ -3,9 +3,9 @@ import { a as a$3 } from '../../chunk-H5L4ARDB.js';
3
3
  import { a } from '../../chunk-UUTAIXBZ.js';
4
4
  import { e as e$1 } from '../../chunk-ANAHA3L6.js';
5
5
  import { e, g } from '../../chunk-QTPDCBMF.js';
6
- import { a as a$4 } from '../../chunk-CVUXRFLE.js';
6
+ import { a as a$4 } from '../../chunk-56U7LQ3V.js';
7
7
  import '../../chunk-OR6QR7N2.js';
8
- import '../../chunk-MEQXPK2E.js';
8
+ import '../../chunk-DNLTCAWK.js';
9
9
  import { a as a$1 } from '../../chunk-NB6L2JSG.js';
10
10
  import { x } from '../../chunk-2P4CXK3O.js';
11
11
  import { a as a$6 } from '../../chunk-FK7DDO5L.js';
@@ -445,7 +445,7 @@ declare function paper({ theme, color, dropdown }: PaperProps): {
445
445
  zIndex?: csstype.Property.ZIndex | readonly NonNullable<csstype.Property.ZIndex | undefined>[] | readonly ((string & {}) | csstype.Globals | "auto")[] | 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 ("reverse" | (string & {}) | csstype.Globals | "normal" | "auto" | "none" | "both" | "alternate" | "alternate-reverse" | "backwards" | "forwards" | "infinite" | "paused" | "running" | "ease" | "ease-in" | "ease-in-out" | "ease-out" | "step-end" | "step-start" | "linear")[] | undefined;
448
+ animation?: csstype.Property.Animation<string & {}> | readonly NonNullable<csstype.Property.Animation<string & {}> | undefined>[] | readonly ((string & {}) | csstype.Globals | "normal" | "reverse" | "auto" | "none" | "both" | "alternate" | "alternate-reverse" | "backwards" | "forwards" | "infinite" | "paused" | "running" | "ease" | "ease-in" | "ease-in-out" | "ease-out" | "step-end" | "step-start" | "linear")[] | undefined;
449
449
  animationRange?: csstype.Property.AnimationRange<string | number> | readonly NonNullable<csstype.Property.AnimationRange<string | number> | undefined>[] | readonly (string | (string & {}))[] | undefined;
450
450
  background?: csstype.Property.Background<string | number> | readonly NonNullable<csstype.Property.Background<string | number> | undefined>[] | readonly (string | (string & {}))[] | 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 ("reverse" | (string & {}) | csstype.Globals | "normal" | "auto" | "none" | "both" | "alternate" | "alternate-reverse" | "backwards" | "forwards" | "infinite" | "paused" | "running" | "ease" | "ease-in" | "ease-in-out" | "ease-out" | "step-end" | "step-start" | "linear")[] | undefined;
732
+ MozAnimation?: csstype.Property.Animation<string & {}> | readonly NonNullable<csstype.Property.Animation<string & {}> | undefined>[] | readonly ((string & {}) | csstype.Globals | "normal" | "reverse" | "auto" | "none" | "both" | "alternate" | "alternate-reverse" | "backwards" | "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" | "stretch" | "round" | "space")[] | undefined;
734
734
  MozColumnRule?: csstype.Property.ColumnRule<string | number> | readonly NonNullable<csstype.Property.ColumnRule<string | number> | undefined>[] | readonly (string | (string & {}))[] | undefined;
735
735
  MozColumns?: csstype.Property.Columns<string | number> | readonly NonNullable<csstype.Property.Columns<string | number> | undefined>[] | readonly (string | (string & {}))[] | 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 ("reverse" | (string & {}) | csstype.Globals | "normal" | "auto" | "none" | "both" | "alternate" | "alternate-reverse" | "backwards" | "forwards" | "infinite" | "paused" | "running" | "ease" | "ease-in" | "ease-in-out" | "ease-out" | "step-end" | "step-start" | "linear")[] | undefined;
744
+ WebkitAnimation?: csstype.Property.Animation<string & {}> | readonly NonNullable<csstype.Property.Animation<string & {}> | undefined>[] | readonly ((string & {}) | csstype.Globals | "normal" | "reverse" | "auto" | "none" | "both" | "alternate" | "alternate-reverse" | "backwards" | "forwards" | "infinite" | "paused" | "running" | "ease" | "ease-in" | "ease-in-out" | "ease-out" | "step-end" | "step-start" | "linear")[] | undefined;
745
745
  WebkitBorderBefore?: csstype.Property.WebkitBorderBefore<string | number> | readonly NonNullable<csstype.Property.WebkitBorderBefore<string | number> | undefined>[] | readonly (string | (string & {}))[] | undefined;
746
746
  WebkitBorderImage?: csstype.Property.BorderImage | readonly NonNullable<csstype.Property.BorderImage | undefined>[] | readonly ((string & {}) | csstype.Globals | "repeat" | "none" | "stretch" | "round" | "space")[] | undefined;
747
747
  WebkitBorderRadius?: csstype.Property.BorderRadius<string | number> | readonly NonNullable<csstype.Property.BorderRadius<string | number> | undefined>[] | readonly (string | (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 ("reverse" | (string & {}) | csstype.Globals | "normal" | "auto" | "none" | "both" | "alternate" | "alternate-reverse" | "backwards" | "forwards" | "infinite" | "paused" | "running" | "ease" | "ease-in" | "ease-in-out" | "ease-out" | "step-end" | "step-start" | "linear")[] | undefined;
834
+ OAnimation?: csstype.Property.Animation<string & {}> | readonly NonNullable<csstype.Property.Animation<string & {}> | undefined>[] | readonly ((string & {}) | csstype.Globals | "normal" | "reverse" | "auto" | "none" | "both" | "alternate" | "alternate-reverse" | "backwards" | "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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zydon/common",
3
- "version": "2.4.20",
3
+ "version": "2.4.21",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "./dist/index.js",