@zydon/common 2.7.58 → 2.7.59

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.
@@ -8,7 +8,7 @@ import { a as a$4 } from './chunk-6U5LS7MP.js';
8
8
  import { a } from './chunk-GC7GAEFE.js';
9
9
  import { a as a$2 } from './chunk-SBMEL2IJ.js';
10
10
  import { j } from './chunk-VITOOMKK.js';
11
- import { a as a$3 } from './chunk-62UHO7QG.js';
11
+ import { a as a$3 } from './chunk-IAOMC4C4.js';
12
12
  import { k, q } from './chunk-GLRLKFPS.js';
13
13
  import { useSensors, useSensor, PointerSensor, KeyboardSensor, DndContext, closestCenter } from '@dnd-kit/core';
14
14
  import { restrictToHorizontalAxis, restrictToParentElement, restrictToWindowEdges } from '@dnd-kit/modifiers';
@@ -39,4 +39,4 @@ O SingleImageUpload oferece crop integrado, melhor gerenciamento de upload e int
39
39
 
40
40
  export { eo as a, Oo as b, wr as c, Ko as d, St as e };
41
41
  //# sourceMappingURL=out.js.map
42
- //# sourceMappingURL=chunk-GPWECRTP.js.map
42
+ //# sourceMappingURL=chunk-5DZ7OMHJ.js.map
@@ -0,0 +1,7 @@
1
+ import { toast } from 'sonner';
2
+
3
+ var e=()=>({toast:toast,success:(t,r)=>toast.success(t,r),error:(t,r)=>toast.error(t,r),warning:(t,r)=>toast.warning(t,r),info:(t,r)=>toast.info(t,r)}),d=e;
4
+
5
+ export { d as a };
6
+ //# sourceMappingURL=out.js.map
7
+ //# sourceMappingURL=chunk-IAOMC4C4.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/hooks/useSnackbar.ts"],"names":["toast","useSnackbar","message","data","useSnackbar_default"],"mappings":"AACA,OAAwB,SAAAA,MAAa,SAErC,IAAMC,EAAc,KAaX,CAAE,MAAAD,EAAO,QAZA,CAACE,EAA6BC,IAC5CH,EAAM,QAAQE,EAASC,CAAI,EAWJ,MATX,CAACD,EAA6BC,IAC1CH,EAAM,MAAME,EAASC,CAAI,EAQK,QANhB,CAACD,EAA6BC,IAC5CH,EAAM,QAAQE,EAASC,CAAI,EAKY,KAH5B,CAACD,EAA6BC,IACzCH,EAAM,KAAKE,EAASC,CAAI,CAEoB,GAGzCC,EAAQH","sourcesContent":["import { ReactNode } from 'react';\nimport { ExternalToast, toast } from 'sonner';\n\nconst useSnackbar = () => {\n const success = (message: string | ReactNode, data?: ExternalToast) =>\n toast.success(message, data);\n\n const error = (message: string | ReactNode, data?: ExternalToast) =>\n toast.error(message, data);\n\n const warning = (message: string | ReactNode, data?: ExternalToast) =>\n toast.warning(message, data);\n\n const info = (message: string | ReactNode, data?: ExternalToast) =>\n toast.info(message, data);\n\n return { toast, success, error, warning, info };\n};\n\nexport default useSnackbar;\n"]}
@@ -1,6 +1,6 @@
1
1
  import { a as a$2 } from './chunk-45OMMG7D.js';
2
2
  import { a as a$3 } from './chunk-GC7GAEFE.js';
3
- import { a as a$1 } from './chunk-62UHO7QG.js';
3
+ import { a as a$1 } from './chunk-IAOMC4C4.js';
4
4
  import { a } from './chunk-CFNATBO2.js';
5
5
  import { memo } from 'react';
6
6
  import C from '@mui/material/IconButton';
@@ -10,4 +10,4 @@ var l=({label:t="Copiar conte\xFAdo",message:c="Conte\xFAdo copiado!",toCopy:m})
10
10
 
11
11
  export { I as a };
12
12
  //# sourceMappingURL=out.js.map
13
- //# sourceMappingURL=chunk-GTMH7NKR.js.map
13
+ //# sourceMappingURL=chunk-SYQE2ZBT.js.map
@@ -3,7 +3,7 @@ import { a as a$3 } from './chunk-QN4YPUG7.js';
3
3
  import { e } from './chunk-OF6623HG.js';
4
4
  import { a } from './chunk-GC7GAEFE.js';
5
5
  import { a as a$1 } from './chunk-SBMEL2IJ.js';
6
- import { a as a$2 } from './chunk-62UHO7QG.js';
6
+ import { a as a$2 } from './chunk-IAOMC4C4.js';
7
7
  import { k } from './chunk-GLRLKFPS.js';
8
8
  import { useState, useEffect } from 'react';
9
9
  import { useDropzone } from 'react-dropzone';
@@ -20,4 +20,4 @@ O novo UploadAvatar oferece melhor gerenciamento de upload e integra\xE7\xE3o co
20
20
 
21
21
  export { B as a, uo as b };
22
22
  //# sourceMappingURL=out.js.map
23
- //# sourceMappingURL=chunk-AQV2PEBQ.js.map
23
+ //# sourceMappingURL=chunk-X76GAGS5.js.map
@@ -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" | "alt" | "src" | "sizes" | "srcSet" | "imgProps"> & {
14
+ }, "children" | "className" | "style" | "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,8 +1,8 @@
1
- export { a as default } from '../../chunk-GTMH7NKR.js';
1
+ export { a as default } from '../../chunk-SYQE2ZBT.js';
2
2
  import '../../chunk-45OMMG7D.js';
3
3
  import '../../chunk-GC7GAEFE.js';
4
4
  import '../../chunk-TC4DDJSR.js';
5
- import '../../chunk-62UHO7QG.js';
5
+ import '../../chunk-IAOMC4C4.js';
6
6
  import '../../chunk-CFNATBO2.js';
7
7
  //# sourceMappingURL=out.js.map
8
8
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  import { d, c } from '../../chunk-N7IK5EUP.js';
2
2
  import { a } from '../../chunk-FK4XGRYF.js';
3
3
  import { h as h$1, a as a$3 } from '../../chunk-OF6623HG.js';
4
- import { a as a$2 } from '../../chunk-GTMH7NKR.js';
4
+ import { a as a$2 } from '../../chunk-SYQE2ZBT.js';
5
5
  import '../../chunk-45OMMG7D.js';
6
6
  import { k } from '../../chunk-YBFLHTQK.js';
7
7
  import '../../chunk-LOF5K56U.js';
@@ -18,7 +18,7 @@ import '../../chunk-TC4DDJSR.js';
18
18
  import '../../chunk-XWUVJ22J.js';
19
19
  import '../../chunk-LQRRMVFN.js';
20
20
  import '../../chunk-RPO7AI5K.js';
21
- import '../../chunk-62UHO7QG.js';
21
+ import '../../chunk-IAOMC4C4.js';
22
22
  import '../../chunk-GLRLKFPS.js';
23
23
  import '../../chunk-CFNATBO2.js';
24
24
  import { memo, useMemo, useCallback } from 'react';
@@ -1,4 +1,4 @@
1
- import { b } from '../../../chunk-AQV2PEBQ.js';
1
+ import { b } from '../../../chunk-X76GAGS5.js';
2
2
  import '../../../chunk-SA2BESEB.js';
3
3
  import '../../../chunk-QN4YPUG7.js';
4
4
  import '../../../chunk-TBUIZEOJ.js';
@@ -9,7 +9,7 @@ import '../../../chunk-TC4DDJSR.js';
9
9
  import { a } from '../../../chunk-YCEQDXLR.js';
10
10
  import '../../../chunk-SBMEL2IJ.js';
11
11
  import '../../../chunk-E3R7W7GK.js';
12
- import '../../../chunk-62UHO7QG.js';
12
+ import '../../../chunk-IAOMC4C4.js';
13
13
  import '../../../chunk-GLRLKFPS.js';
14
14
  import { useFormContext, Controller } from 'react-hook-form';
15
15
  import W from '@mui/material/FormHelperText';
@@ -1,4 +1,4 @@
1
- import { e } from '../../../chunk-GPWECRTP.js';
1
+ import { e } from '../../../chunk-5DZ7OMHJ.js';
2
2
  import '../../../chunk-SA2BESEB.js';
3
3
  import '../../../chunk-QN4YPUG7.js';
4
4
  import '../../../chunk-DTIGB5NW.js';
@@ -15,7 +15,7 @@ import '../../../chunk-SBMEL2IJ.js';
15
15
  import '../../../chunk-E3R7W7GK.js';
16
16
  import '../../../chunk-VITOOMKK.js';
17
17
  import '../../../chunk-RPO7AI5K.js';
18
- import '../../../chunk-62UHO7QG.js';
18
+ import '../../../chunk-IAOMC4C4.js';
19
19
  import '../../../chunk-GLRLKFPS.js';
20
20
  import { useFormContext, Controller } from 'react-hook-form';
21
21
  import b from '@mui/material/FormHelperText';
@@ -1,5 +1,5 @@
1
- export { a as UploadAvatar, b as UploadAvatarWithCrop } from '../../chunk-AQV2PEBQ.js';
2
- export { c as DeleteButton, a as MultiFilePreview, b as SingleFilePreview, d as Upload, e as UploadWithCrop } from '../../chunk-GPWECRTP.js';
1
+ export { a as UploadAvatar, b as UploadAvatarWithCrop } from '../../chunk-X76GAGS5.js';
2
+ export { c as DeleteButton, a as MultiFilePreview, b as SingleFilePreview, d as Upload, e as UploadWithCrop } from '../../chunk-5DZ7OMHJ.js';
3
3
  import { o } from '../../chunk-SA2BESEB.js';
4
4
  export { p as RejectionFiles } from '../../chunk-SA2BESEB.js';
5
5
  import '../../chunk-QN4YPUG7.js';
@@ -16,7 +16,7 @@ import '../../chunk-SBMEL2IJ.js';
16
16
  import '../../chunk-E3R7W7GK.js';
17
17
  import '../../chunk-VITOOMKK.js';
18
18
  import '../../chunk-RPO7AI5K.js';
19
- import '../../chunk-62UHO7QG.js';
19
+ import '../../chunk-IAOMC4C4.js';
20
20
  import '../../chunk-GLRLKFPS.js';
21
21
  import { useDropzone } from 'react-dropzone';
22
22
  import { jsxs, jsx } from 'react/jsx-runtime';
@@ -1,7 +1,55 @@
1
- import { ReactNode } from 'react';
1
+ import * as sonner from 'sonner';
2
2
  import { ExternalToast } from 'sonner';
3
+ import * as react from 'react';
4
+ import { ReactNode } from 'react';
3
5
 
4
6
  declare const useSnackbar: () => {
7
+ toast: ((message: ReactNode | (() => ReactNode), data?: ExternalToast | undefined) => string | number) & {
8
+ success: (message: string | number | boolean | react.ReactElement<any, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | react.ReactPortal | (() => ReactNode) | null | undefined, data?: ExternalToast | undefined) => string | number;
9
+ info: (message: string | number | boolean | react.ReactElement<any, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | react.ReactPortal | (() => ReactNode) | null | undefined, data?: ExternalToast | undefined) => string | number;
10
+ warning: (message: string | number | boolean | react.ReactElement<any, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | react.ReactPortal | (() => ReactNode) | null | undefined, data?: ExternalToast | undefined) => string | number;
11
+ error: (message: string | number | boolean | react.ReactElement<any, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | react.ReactPortal | (() => ReactNode) | null | undefined, data?: ExternalToast | undefined) => string | number;
12
+ custom: (jsx: (id: string | number) => react.ReactElement<any, string | react.JSXElementConstructor<any>>, data?: ExternalToast | undefined) => string | number;
13
+ message: (message: string | number | boolean | react.ReactElement<any, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | react.ReactPortal | (() => ReactNode) | null | undefined, data?: ExternalToast | undefined) => string | number;
14
+ promise: <ToastData>(promise: Promise<ToastData> | (() => Promise<ToastData>), data?: ({
15
+ className?: string | undefined;
16
+ style?: react.CSSProperties | undefined;
17
+ position?: ("top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right") | undefined;
18
+ id?: string | number | undefined;
19
+ action?: ReactNode | sonner.Action;
20
+ invert?: boolean | undefined;
21
+ icon?: ReactNode;
22
+ duration?: number | undefined;
23
+ onDismiss?: ((toast: sonner.ToastT) => void) | undefined;
24
+ cancel?: ReactNode | sonner.Action;
25
+ richColors?: boolean | undefined;
26
+ closeButton?: boolean | undefined;
27
+ dismissible?: boolean | undefined;
28
+ onAutoClose?: ((toast: sonner.ToastT) => void) | undefined;
29
+ cancelButtonStyle?: react.CSSProperties | undefined;
30
+ actionButtonStyle?: react.CSSProperties | undefined;
31
+ unstyled?: boolean | undefined;
32
+ classNames?: sonner.ToastClassnames | undefined;
33
+ descriptionClassName?: string | undefined;
34
+ } & {
35
+ loading?: ReactNode;
36
+ success?: ReactNode | ((data: ToastData) => ReactNode | Promise<ReactNode>);
37
+ error?: ReactNode | ((data: any) => ReactNode | Promise<ReactNode>);
38
+ description?: ReactNode | ((data: any) => ReactNode | Promise<ReactNode>);
39
+ finally?: (() => void | Promise<void>) | undefined;
40
+ }) | undefined) => (string & {
41
+ unwrap: () => Promise<ToastData>;
42
+ }) | (number & {
43
+ unwrap: () => Promise<ToastData>;
44
+ }) | {
45
+ unwrap: () => Promise<ToastData>;
46
+ };
47
+ dismiss: (id?: string | number | undefined) => string | number;
48
+ loading: (message: string | number | boolean | react.ReactElement<any, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | react.ReactPortal | (() => ReactNode) | null | undefined, data?: ExternalToast | undefined) => string | number;
49
+ } & {
50
+ getHistory: () => (sonner.ToastT | sonner.ToastToDismiss)[];
51
+ getToasts: () => (sonner.ToastT | sonner.ToastToDismiss)[];
52
+ };
5
53
  success: (message: string | ReactNode, data?: ExternalToast) => string | number;
6
54
  error: (message: string | ReactNode, data?: ExternalToast) => string | number;
7
55
  warning: (message: string | ReactNode, data?: ExternalToast) => string | number;
@@ -1,3 +1,3 @@
1
- export { a as default } from '../chunk-62UHO7QG.js';
1
+ export { a as default } from '../chunk-IAOMC4C4.js';
2
2
  //# sourceMappingURL=out.js.map
3
3
  //# sourceMappingURL=useSnackbar.js.map
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { C as CustomShadows } from './index-c8f1e6e7.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-c8f1e6e7.js';
1
+ import { C as CustomShadows } from './index-5a5e5dc8.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-5a5e5dc8.js';
3
3
  export { S as SettingsContextValue, _ as SettingsProvider, T as ThemeProviderProps, u as useSettingsContext } from './settings-provider-38d09283.js';
4
4
  export { THEME_CONFIG, default as ThemeProvider } from './theme/theme-provider.js';
5
5
  import { S as SettingsState } from './settings-583c107c.js';
@@ -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-c8f1e6e7.js';
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-5a5e5dc8.js';
2
2
  import '@mui/lab/TimelineConnector';
3
3
  import '@mui/system';
4
4
  import '@mui/lab/TimelineDot';
@@ -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?: readonly string[] | csstype.Property.FontFamily | readonly csstype.Property.FontFamily[] | undefined;
196
+ fontFamily?: csstype.Property.FontFamily | readonly string[] | 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 ("bold" | (string & {}) | csstype.Globals | "normal" | "bolder" | "lighter")[] | undefined;
221
+ fontWeight?: csstype.Property.FontWeight | readonly NonNullable<csstype.Property.FontWeight | undefined>[] | readonly ((string & {}) | csstype.Globals | "bold" | "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;
@@ -443,9 +443,9 @@ declare function paper({ theme, color, dropdown }: PaperProps): {
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 ("reset" | (string & {}) | csstype.Globals | "normal")[] | undefined;
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 | "none" | "auto" | "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;
448
+ animation?: csstype.Property.Animation<string & {}> | readonly NonNullable<csstype.Property.Animation<string & {}> | undefined>[] | readonly ((string & {}) | csstype.Globals | "normal" | "none" | "auto" | "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 ("repeat" | (string & {}) | csstype.Globals | "none" | "round" | "space" | "stretch")[] | undefined;
457
+ borderImage?: csstype.Property.BorderImage | readonly NonNullable<csstype.Property.BorderImage | undefined>[] | readonly ((string & {}) | csstype.Globals | "repeat" | "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 ("repeat" | (string & {}) | csstype.Globals | "none" | "round" | "space" | "alpha" | "luminance" | "stretch")[] | undefined;
489
+ maskBorder?: csstype.Property.MaskBorder | readonly NonNullable<csstype.Property.MaskBorder | undefined>[] | readonly ((string & {}) | csstype.Globals | "repeat" | "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 | "none" | "auto" | "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;
732
+ MozAnimation?: csstype.Property.Animation<string & {}> | readonly NonNullable<csstype.Property.Animation<string & {}> | undefined>[] | readonly ((string & {}) | csstype.Globals | "normal" | "none" | "auto" | "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 ((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;
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 | "none" | "auto" | "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;
744
+ WebkitAnimation?: csstype.Property.Animation<string & {}> | readonly NonNullable<csstype.Property.Animation<string & {}> | undefined>[] | readonly ((string & {}) | csstype.Globals | "normal" | "none" | "auto" | "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 ("repeat" | (string & {}) | csstype.Globals | "none" | "round" | "space" | "stretch")[] | undefined;
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;
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 ("repeat" | (string & {}) | csstype.Globals | "none" | "round" | "space" | "alpha" | "luminance" | "stretch")[] | undefined;
753
+ WebkitMaskBoxImage?: csstype.Property.MaskBorder | readonly NonNullable<csstype.Property.MaskBorder | undefined>[] | readonly ((string & {}) | csstype.Globals | "repeat" | "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 | "none" | "auto" | "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;
834
+ OAnimation?: csstype.Property.Animation<string & {}> | readonly NonNullable<csstype.Property.Animation<string & {}> | undefined>[] | readonly ((string & {}) | csstype.Globals | "normal" | "none" | "auto" | "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 ("repeat" | (string & {}) | csstype.Globals | "none" | "round" | "space" | "stretch")[] | undefined;
844
+ OBorderImage?: csstype.Property.BorderImage | readonly NonNullable<csstype.Property.BorderImage | undefined>[] | readonly ((string & {}) | csstype.Globals | "repeat" | "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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zydon/common",
3
- "version": "2.7.58",
3
+ "version": "2.7.59",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "./dist/index.js",
@@ -1,7 +0,0 @@
1
- import { toast } from 'sonner';
2
-
3
- var e=()=>({success:(t,r)=>toast.success(t,r),error:(t,r)=>toast.error(t,r),warning:(t,r)=>toast.warning(t,r),info:(t,r)=>toast.info(t,r)}),d=e;
4
-
5
- export { d as a };
6
- //# sourceMappingURL=out.js.map
7
- //# sourceMappingURL=chunk-62UHO7QG.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/hooks/useSnackbar.ts"],"names":["toast","useSnackbar","message","data","useSnackbar_default"],"mappings":"AACA,OAAwB,SAAAA,MAAa,SAErC,IAAMC,EAAc,KAaX,CAAE,QAZO,CAACC,EAA6BC,IAC5CH,EAAM,QAAQE,EAASC,CAAI,EAWX,MATJ,CAACD,EAA6BC,IAC1CH,EAAM,MAAME,EAASC,CAAI,EAQF,QANT,CAACD,EAA6BC,IAC5CH,EAAM,QAAQE,EAASC,CAAI,EAKK,KAHrB,CAACD,EAA6BC,IACzCH,EAAM,KAAKE,EAASC,CAAI,CAEa,GAGlCC,EAAQH","sourcesContent":["import { ReactNode } from 'react';\nimport { ExternalToast, toast } from 'sonner';\n\nconst useSnackbar = () => {\n const success = (message: string | ReactNode, data?: ExternalToast) =>\n toast.success(message, data);\n\n const error = (message: string | ReactNode, data?: ExternalToast) =>\n toast.error(message, data);\n\n const warning = (message: string | ReactNode, data?: ExternalToast) =>\n toast.warning(message, data);\n\n const info = (message: string | ReactNode, data?: ExternalToast) =>\n toast.info(message, data);\n\n return { success, error, warning, info };\n};\n\nexport default useSnackbar;\n"]}
@@ -286,13 +286,10 @@ 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
- cssVarPrefix: string;
290
- zIndex: _mui_material.ZIndex;
291
- direction: _mui_system.Direction;
292
- opacity: _mui_material.Opacity;
293
- typography: _mui_material.TypographyVariants;
289
+ transitions: _mui_material.Transitions;
294
290
  palette: _mui_material.Palette;
295
291
  colorSchemes: Record<_mui_material.SupportedColorScheme, _mui_material.ColorSystem>;
292
+ cssVarPrefix: string;
296
293
  vars: _mui_material.ThemeVars;
297
294
  getCssVar: (field: _mui_material.ThemeCssVar, ...vars: _mui_material.ThemeCssVar[]) => string;
298
295
  getColorSchemeSelector: (colorScheme: _mui_material.SupportedColorScheme) => string;
@@ -303,13 +300,16 @@ declare const components: {
303
300
  spacing: _mui_system.Spacing;
304
301
  breakpoints: _mui_system.Breakpoints;
305
302
  shape: _mui_system.Shape;
306
- transitions: _mui_material.Transitions;
303
+ typography: _mui_material.TypographyVariants;
307
304
  shadows: _mui_material.Shadows;
308
305
  mixins: _mui_material.Mixins;
306
+ zIndex: _mui_material.ZIndex;
307
+ direction: _mui_system.Direction;
309
308
  shouldSkipGeneratingVar: (keys: string[], value: string | number) => boolean;
310
309
  unstable_sxConfig: _mui_system.SxConfig;
311
310
  unstable_sx: (props: _mui_system.SxProps<_mui_material.Theme>) => _mui_styled_engine.CSSObject;
312
311
  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,13 +326,10 @@ 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
- cssVarPrefix: string;
330
- zIndex: _mui_material.ZIndex;
331
- direction: _mui_system.Direction;
332
- opacity: _mui_material.Opacity;
333
- typography: _mui_material.TypographyVariants;
329
+ transitions: _mui_material.Transitions;
334
330
  palette: _mui_material.Palette;
335
331
  colorSchemes: Record<_mui_material.SupportedColorScheme, _mui_material.ColorSystem>;
332
+ cssVarPrefix: string;
336
333
  vars: _mui_material.ThemeVars;
337
334
  getCssVar: (field: _mui_material.ThemeCssVar, ...vars: _mui_material.ThemeCssVar[]) => string;
338
335
  getColorSchemeSelector: (colorScheme: _mui_material.SupportedColorScheme) => string;
@@ -343,13 +340,16 @@ declare const components: {
343
340
  spacing: _mui_system.Spacing;
344
341
  breakpoints: _mui_system.Breakpoints;
345
342
  shape: _mui_system.Shape;
346
- transitions: _mui_material.Transitions;
343
+ typography: _mui_material.TypographyVariants;
347
344
  shadows: _mui_material.Shadows;
348
345
  mixins: _mui_material.Mixins;
346
+ zIndex: _mui_material.ZIndex;
347
+ direction: _mui_system.Direction;
349
348
  shouldSkipGeneratingVar: (keys: string[], value: string | number) => boolean;
350
349
  unstable_sxConfig: _mui_system.SxConfig;
351
350
  unstable_sx: (props: _mui_system.SxProps<_mui_material.Theme>) => _mui_styled_engine.CSSObject;
352
351
  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;