@zydon/common 2.9.22 → 2.9.24

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.
Files changed (71) hide show
  1. package/README.md +2 -2
  2. package/dist/chunk-4734QSYC.js +46 -0
  3. package/dist/chunk-4734QSYC.js.map +1 -0
  4. package/dist/chunk-55XSPNSX.js +4 -0
  5. package/dist/chunk-55XSPNSX.js.map +1 -0
  6. package/dist/{chunk-Q2AVS24Z.js → chunk-7GJMLPJV.js} +3 -3
  7. package/dist/{chunk-X4F3O7PX.js → chunk-BKL525ZD.js} +3 -3
  8. package/dist/{chunk-LZQ7OFKO.js → chunk-JUAHRU5E.js} +2 -2
  9. package/dist/{chunk-YXRL4O4H.js → chunk-P2QZJ57W.js} +2 -2
  10. package/dist/{chunk-YXRL4O4H.js.map → chunk-P2QZJ57W.js.map} +1 -1
  11. package/dist/{chunk-7LBBLVDC.js → chunk-PUMCHXCD.js} +2 -2
  12. package/dist/{chunk-IF6OSFZ7.js → chunk-PVVI3GEL.js} +2 -2
  13. package/dist/{chunk-JM3SE72J.js → chunk-TAA5KCEG.js} +5 -5
  14. package/dist/{chunk-YDU3ZCS7.js → chunk-UE7W6ACG.js} +2 -2
  15. package/dist/{chunk-T3RP2QXG.js → chunk-XUD7JMEF.js} +2 -2
  16. package/dist/{chunk-GLRLKFPS.js → chunk-Y66XXBB3.js} +6 -4
  17. package/dist/chunk-Y66XXBB3.js.map +1 -0
  18. package/dist/components/Analytics/OverviewAnalytics/index.js +4 -4
  19. package/dist/components/Analytics/PartnerAnalysis/index.js +4 -4
  20. package/dist/components/Avatar/index.d.ts +1 -1
  21. package/dist/components/AvatarButton/index.js +5 -5
  22. package/dist/components/Common/index.js +5 -5
  23. package/dist/components/DataCards/index.js +2 -2
  24. package/dist/components/DataGrid/index.js +3 -3
  25. package/dist/components/DataView/index.js +4 -4
  26. package/dist/components/DynamicDataView/index.js +4 -4
  27. package/dist/components/EmptyContent/index.js +2 -2
  28. package/dist/components/Label/index.js +2 -2
  29. package/dist/components/ListBundles/index.js +2 -2
  30. package/dist/components/MaskedInput/index.d.ts +4 -9
  31. package/dist/components/PasswordRules/index.js +2 -2
  32. package/dist/components/SplashScreen/index.js +1 -1
  33. package/dist/components/StepUpDialog/index.js +1 -1
  34. package/dist/components/ToggleTheme/index.js +5 -5
  35. package/dist/components/WebhookCard/index.js +2 -2
  36. package/dist/components/carousel/index.js +2 -2
  37. package/dist/components/form/Address/index.js +1 -1
  38. package/dist/components/form/Field/index.js +1 -1
  39. package/dist/components/form/MaskedInput/index.d.ts +2 -3
  40. package/dist/components/form/Password/index.js +3 -3
  41. package/dist/components/form/Password/index.js.map +1 -1
  42. package/dist/components/form/Webhook/index.js +1 -1
  43. package/dist/hooks/useSnackbar.d.ts +8 -8
  44. package/dist/hooks/useThemeToggle.js +5 -5
  45. package/dist/index.d.ts +1 -1
  46. package/dist/index.js +5 -5
  47. package/dist/maskedInputProps-34f2a8d9.d.ts +7 -0
  48. package/dist/theme/core/index.js +3 -3
  49. package/dist/theme/styles/index.d.ts +3 -2
  50. package/dist/theme/styles/index.js +1 -1
  51. package/dist/theme/theme-provider.js +5 -5
  52. package/dist/theme/with-settings/index.js +3 -3
  53. package/dist/utils/mask.d.ts +14 -1
  54. package/dist/utils/mask.js +4 -2
  55. package/dist/utils/mask.js.map +1 -1
  56. package/dist/utils/validators.d.ts +11 -1
  57. package/dist/utils/validators.js +1 -1
  58. package/package.json +1 -1
  59. package/dist/chunk-A3QLGMSB.js +0 -4
  60. package/dist/chunk-A3QLGMSB.js.map +0 -1
  61. package/dist/chunk-GLRLKFPS.js.map +0 -1
  62. package/dist/chunk-YPL4KIKN.js +0 -46
  63. package/dist/chunk-YPL4KIKN.js.map +0 -1
  64. /package/dist/{chunk-Q2AVS24Z.js.map → chunk-7GJMLPJV.js.map} +0 -0
  65. /package/dist/{chunk-X4F3O7PX.js.map → chunk-BKL525ZD.js.map} +0 -0
  66. /package/dist/{chunk-LZQ7OFKO.js.map → chunk-JUAHRU5E.js.map} +0 -0
  67. /package/dist/{chunk-7LBBLVDC.js.map → chunk-PUMCHXCD.js.map} +0 -0
  68. /package/dist/{chunk-IF6OSFZ7.js.map → chunk-PVVI3GEL.js.map} +0 -0
  69. /package/dist/{chunk-JM3SE72J.js.map → chunk-TAA5KCEG.js.map} +0 -0
  70. /package/dist/{chunk-YDU3ZCS7.js.map → chunk-UE7W6ACG.js.map} +0 -0
  71. /package/dist/{chunk-T3RP2QXG.js.map → chunk-XUD7JMEF.js.map} +0 -0
@@ -11,7 +11,7 @@ interface ImageContainerProps {
11
11
 
12
12
  declare const Avatar: react.MemoExoticComponent<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
 
@@ -6,16 +6,16 @@ import { a as a$3 } from '../../chunk-JGASCDBR.js';
6
6
  import '../../chunk-TPOL2YXC.js';
7
7
  import { a as a$1 } from '../../chunk-LQRRMVFN.js';
8
8
  import '../../chunk-5KEVIB7P.js';
9
- import '../../chunk-JM3SE72J.js';
9
+ import '../../chunk-TAA5KCEG.js';
10
10
  import '../../chunk-373WGZZL.js';
11
11
  import '../../chunk-WUFEPE2G.js';
12
12
  import '../../chunk-BX2DSNRV.js';
13
- import '../../chunk-X4F3O7PX.js';
14
- import '../../chunk-Q2AVS24Z.js';
13
+ import '../../chunk-BKL525ZD.js';
14
+ import '../../chunk-7GJMLPJV.js';
15
15
  import '../../chunk-LNESYSHP.js';
16
- import '../../chunk-YPL4KIKN.js';
16
+ import '../../chunk-4734QSYC.js';
17
17
  import '../../chunk-HBOBTNB5.js';
18
- import '../../chunk-GLRLKFPS.js';
18
+ import '../../chunk-Y66XXBB3.js';
19
19
  import E from '@mui/material/Avatar';
20
20
  import s from '@mui/material/Divider';
21
21
  import c from '@mui/material/Stack';
@@ -1,15 +1,15 @@
1
1
  import { a } from '../../chunk-JGASCDBR.js';
2
2
  import '../../chunk-TPOL2YXC.js';
3
- import { b } from '../../chunk-JM3SE72J.js';
3
+ import { b } from '../../chunk-TAA5KCEG.js';
4
4
  import '../../chunk-373WGZZL.js';
5
5
  import '../../chunk-WUFEPE2G.js';
6
6
  import '../../chunk-BX2DSNRV.js';
7
- import '../../chunk-X4F3O7PX.js';
8
- import '../../chunk-Q2AVS24Z.js';
7
+ import '../../chunk-BKL525ZD.js';
8
+ import '../../chunk-7GJMLPJV.js';
9
9
  import '../../chunk-LNESYSHP.js';
10
- import '../../chunk-YPL4KIKN.js';
10
+ import '../../chunk-4734QSYC.js';
11
11
  import '../../chunk-HBOBTNB5.js';
12
- import { k } from '../../chunk-GLRLKFPS.js';
12
+ import { k } from '../../chunk-Y66XXBB3.js';
13
13
  import 'dayjs/locale/pt-br';
14
14
  import _ from 'dayjs';
15
15
  import { AdapterDayjs } from '@mui/x-date-pickers-pro/AdapterDayjs';
@@ -1,9 +1,9 @@
1
1
  import { c } from '../../chunk-FG2BVR7Y.js';
2
2
  import { a } from '../../chunk-X2NG6VDB.js';
3
- import { a as a$2 } from '../../chunk-LZQ7OFKO.js';
3
+ import { a as a$2 } from '../../chunk-JUAHRU5E.js';
4
4
  import '../../chunk-NIQW2J3M.js';
5
5
  import { a as a$1 } from '../../chunk-6U5LS7MP.js';
6
- import '../../chunk-GLRLKFPS.js';
6
+ import '../../chunk-Y66XXBB3.js';
7
7
  import { memo, useMemo } from 'react';
8
8
  import pt from 'react-fast-compare';
9
9
  import st from '@mui/material/Pagination';
@@ -1,7 +1,7 @@
1
- export { a as default } from '../../chunk-T3RP2QXG.js';
2
- import '../../chunk-LZQ7OFKO.js';
1
+ export { a as default } from '../../chunk-XUD7JMEF.js';
2
+ import '../../chunk-JUAHRU5E.js';
3
3
  import '../../chunk-NIQW2J3M.js';
4
4
  import '../../chunk-6U5LS7MP.js';
5
5
  import '../../chunk-RBTYTONM.js';
6
- import '../../chunk-GLRLKFPS.js';
6
+ import '../../chunk-Y66XXBB3.js';
7
7
  //# sourceMappingURL=index.js.map
@@ -1,8 +1,8 @@
1
- export { b as DesktopFooter, a as EnhancedMoreActions, c as Toolbar, d as default } from '../../chunk-IF6OSFZ7.js';
1
+ export { b as DesktopFooter, a as EnhancedMoreActions, c as Toolbar, d as default } from '../../chunk-PVVI3GEL.js';
2
2
  import '../../chunk-3753JOQM.js';
3
3
  import '../../chunk-4F2NKGF6.js';
4
- import '../../chunk-T3RP2QXG.js';
5
- import '../../chunk-LZQ7OFKO.js';
4
+ import '../../chunk-XUD7JMEF.js';
5
+ import '../../chunk-JUAHRU5E.js';
6
6
  import '../../chunk-NIQW2J3M.js';
7
7
  import '../../chunk-6U5LS7MP.js';
8
8
  import '../../chunk-PRWQQJDL.js';
@@ -16,5 +16,5 @@ import '../../chunk-JGASCDBR.js';
16
16
  import '../../chunk-TPOL2YXC.js';
17
17
  import '../../chunk-LQRRMVFN.js';
18
18
  import '../../chunk-TXJ45CNA.js';
19
- import '../../chunk-GLRLKFPS.js';
19
+ import '../../chunk-Y66XXBB3.js';
20
20
  //# sourceMappingURL=index.js.map
@@ -3,11 +3,11 @@ import '../../chunk-4P2L7UJA.js';
3
3
  import { a as a$4 } from '../../chunk-E5SBGF5G.js';
4
4
  import { d, c } from '../../chunk-A7QSCOUE.js';
5
5
  import { h, a as a$6 } from '../../chunk-OF6623HG.js';
6
- import { d as d$1 } from '../../chunk-IF6OSFZ7.js';
6
+ import { d as d$1 } from '../../chunk-PVVI3GEL.js';
7
7
  import '../../chunk-3753JOQM.js';
8
8
  import '../../chunk-4F2NKGF6.js';
9
- import '../../chunk-T3RP2QXG.js';
10
- import '../../chunk-LZQ7OFKO.js';
9
+ import '../../chunk-XUD7JMEF.js';
10
+ import '../../chunk-JUAHRU5E.js';
11
11
  import '../../chunk-NIQW2J3M.js';
12
12
  import '../../chunk-6U5LS7MP.js';
13
13
  import '../../chunk-PRWQQJDL.js';
@@ -31,7 +31,7 @@ import { b } from '../../chunk-TXJ45CNA.js';
31
31
  import '../../chunk-FJBC6QA5.js';
32
32
  import '../../chunk-POTVACYB.js';
33
33
  import '../../chunk-ET3WPQIO.js';
34
- import '../../chunk-GLRLKFPS.js';
34
+ import '../../chunk-Y66XXBB3.js';
35
35
  import '../../chunk-SV2GIIMQ.js';
36
36
  import { a as a$2 } from '../../chunk-GNNZB7DN.js';
37
37
  import { memo, useState, useMemo, useCallback, useEffect, useRef } from 'react';
@@ -1,4 +1,4 @@
1
- export { a as default } from '../../chunk-LZQ7OFKO.js';
1
+ export { a as default } from '../../chunk-JUAHRU5E.js';
2
2
  import '../../chunk-NIQW2J3M.js';
3
- import '../../chunk-GLRLKFPS.js';
3
+ import '../../chunk-Y66XXBB3.js';
4
4
  //# sourceMappingURL=index.js.map
@@ -1,3 +1,3 @@
1
- export { a as default } from '../../chunk-7LBBLVDC.js';
2
- import '../../chunk-GLRLKFPS.js';
1
+ export { a as default } from '../../chunk-PUMCHXCD.js';
2
+ import '../../chunk-Y66XXBB3.js';
3
3
  //# sourceMappingURL=index.js.map
@@ -1,9 +1,9 @@
1
1
  import { a as a$2 } from '../../chunk-RUABKHIV.js';
2
2
  import { a as a$1 } from '../../chunk-4F2NKGF6.js';
3
- import { o, a, f, k as k$1 } from '../../chunk-YDU3ZCS7.js';
3
+ import { o, a, f, k as k$1 } from '../../chunk-UE7W6ACG.js';
4
4
  import '../../chunk-JGASCDBR.js';
5
5
  import '../../chunk-TPOL2YXC.js';
6
- import '../../chunk-GLRLKFPS.js';
6
+ import '../../chunk-Y66XXBB3.js';
7
7
  import { Fragment } from 'react';
8
8
  import k from '@mui/material/Stack';
9
9
  import { styled } from '@mui/material/styles';
@@ -1,11 +1,10 @@
1
1
  import * as react from 'react';
2
2
  import * as _mui_material_TextField from '@mui/material/TextField';
3
+ import { I as InputMask } from '../../maskedInputProps-34f2a8d9.js';
3
4
 
4
5
  declare const MaskedInput: react.MemoExoticComponent<react.ForwardRefExoticComponent<(Omit<{
5
6
  name: string;
6
- mask: {
7
- mask: string;
8
- }[];
7
+ mask: InputMask[];
9
8
  onChange: (event: {
10
9
  target: {
11
10
  name: string;
@@ -14,9 +13,7 @@ declare const MaskedInput: react.MemoExoticComponent<react.ForwardRefExoticCompo
14
13
  }) => void;
15
14
  } & _mui_material_TextField.FilledTextFieldProps, "ref"> | Omit<{
16
15
  name: string;
17
- mask: {
18
- mask: string;
19
- }[];
16
+ mask: InputMask[];
20
17
  onChange: (event: {
21
18
  target: {
22
19
  name: string;
@@ -25,9 +22,7 @@ declare const MaskedInput: react.MemoExoticComponent<react.ForwardRefExoticCompo
25
22
  }) => void;
26
23
  } & _mui_material_TextField.OutlinedTextFieldProps, "ref"> | Omit<{
27
24
  name: string;
28
- mask: {
29
- mask: string;
30
- }[];
25
+ mask: InputMask[];
31
26
  onChange: (event: {
32
27
  target: {
33
28
  name: string;
@@ -1,4 +1,4 @@
1
- import { d } from '../../chunk-A3QLGMSB.js';
1
+ import { n } from '../../chunk-55XSPNSX.js';
2
2
  import { a as a$1 } from '../../chunk-JGASCDBR.js';
3
3
  import '../../chunk-TPOL2YXC.js';
4
4
  import a from '@mui/material/Typography';
@@ -6,7 +6,7 @@ import i from '@mui/material/Stack';
6
6
  import { styled, alpha } from '@mui/material/styles';
7
7
  import { jsxs, jsx } from 'react/jsx-runtime';
8
8
 
9
- var R=styled(i)(({theme:e})=>({width:"100%",borderColor:`${alpha(e.palette.grey[500],.32)}`,padding:16,borderRadius:8,gap:8})),y=styled(i)(()=>({gap:4})),t=styled(i,{shouldForwardProp:e=>e!=="themeColor"})(({theme:e,themeColor:s})=>({flexDirection:"row",alignItems:"center",gap:8,color:s==="light"?e.palette.text.secondary:e.palette.common.white,div:{fontSize:12},strong:{fontWeight:700,color:s==="light"?e.palette.text.primary:e.palette.common.white}}));var l=({passed:e})=>e?jsx(a$1,{icon:"SIMPLE_CHECK",color:"success.main"}):jsx(a$1,{icon:"WARNING_TRIANGULE",color:"warning.main"}),I=({password:e,passwordSize:s,numberChar:d$1=!1,specialCharacter:m=!1,upperCaseChar:g=!1,match:u,title:f="Sua senha deve conter:",theme:n="light",containerProps:P})=>{let{hasSpecialCharacter:C,hasUpperCaseChar:v,isLengthValid:T,hasNumberChar:w}=d(e,s,d$1,m,g);return jsxs(R,{border:"1px solid",...P,children:[f&&jsx(a,{color:"text.secondary",variant:"body2",children:"Sua senha deve conter:"}),jsxs(y,{children:[jsxs(t,{themeColor:n,children:[jsx(l,{passed:T}),jsxs(a,{component:"div",children:[jsxs("strong",{children:[s[0],"-",s[1]]})," ","caracteres"]})]}),g&&jsxs(t,{themeColor:n,children:[jsx(l,{passed:v}),jsxs(a,{component:"div",children:["Pelo menos uma ",jsx("strong",{children:"letra mai\xFAscula"})]})]}),d$1&&jsxs(t,{themeColor:n,children:[jsx(l,{passed:w}),jsxs(a,{component:"div",children:["Pelo menos ",jsx("strong",{children:"um n\xFAmero"})]})]}),m&&jsxs(t,{themeColor:n,children:[jsx(l,{passed:C}),jsxs(a,{component:"div",children:["Pelo menos um ",jsx("strong",{children:"caracter especial"})," ",jsx("span",{children:"(#,@,!,?)"})]})]}),u&&jsxs(t,{themeColor:n,children:[jsx(l,{passed:u.passwordMatch}),jsx(a,{component:"div",children:"Senha e confirma\xE7\xE3o de senha devem ser iguais"})]})]})]})},G=I;
9
+ var R=styled(i)(({theme:e})=>({width:"100%",borderColor:`${alpha(e.palette.grey[500],.32)}`,padding:16,borderRadius:8,gap:8})),y=styled(i)(()=>({gap:4})),t=styled(i,{shouldForwardProp:e=>e!=="themeColor"})(({theme:e,themeColor:s})=>({flexDirection:"row",alignItems:"center",gap:8,color:s==="light"?e.palette.text.secondary:e.palette.common.white,div:{fontSize:12},strong:{fontWeight:700,color:s==="light"?e.palette.text.primary:e.palette.common.white}}));var l=({passed:e})=>e?jsx(a$1,{icon:"SIMPLE_CHECK",color:"success.main"}):jsx(a$1,{icon:"WARNING_TRIANGULE",color:"warning.main"}),I=({password:e,passwordSize:s,numberChar:d=!1,specialCharacter:m=!1,upperCaseChar:g=!1,match:u,title:f="Sua senha deve conter:",theme:n$1="light",containerProps:P})=>{let{hasSpecialCharacter:C,hasUpperCaseChar:v,isLengthValid:T,hasNumberChar:w}=n(e,s,d,m,g);return jsxs(R,{border:"1px solid",...P,children:[f&&jsx(a,{color:"text.secondary",variant:"body2",children:"Sua senha deve conter:"}),jsxs(y,{children:[jsxs(t,{themeColor:n$1,children:[jsx(l,{passed:T}),jsxs(a,{component:"div",children:[jsxs("strong",{children:[s[0],"-",s[1]]})," ","caracteres"]})]}),g&&jsxs(t,{themeColor:n$1,children:[jsx(l,{passed:v}),jsxs(a,{component:"div",children:["Pelo menos uma ",jsx("strong",{children:"letra mai\xFAscula"})]})]}),d&&jsxs(t,{themeColor:n$1,children:[jsx(l,{passed:w}),jsxs(a,{component:"div",children:["Pelo menos ",jsx("strong",{children:"um n\xFAmero"})]})]}),m&&jsxs(t,{themeColor:n$1,children:[jsx(l,{passed:C}),jsxs(a,{component:"div",children:["Pelo menos um ",jsx("strong",{children:"caracter especial"})," ",jsx("span",{children:"(#,@,!,?)"})]})]}),u&&jsxs(t,{themeColor:n$1,children:[jsx(l,{passed:u.passwordMatch}),jsx(a,{component:"div",children:"Senha e confirma\xE7\xE3o de senha devem ser iguais"})]})]})]})},G=I;
10
10
 
11
11
  export { G as default };
12
12
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import { k } from '../../chunk-GLRLKFPS.js';
1
+ import { k } from '../../chunk-Y66XXBB3.js';
2
2
  import t from '@mui/material/Box';
3
3
  import { m } from 'framer-motion';
4
4
  import { jsx, jsxs } from 'react/jsx-runtime';
@@ -1,4 +1,4 @@
1
- import { a as a$3 } from '../../chunk-YXRL4O4H.js';
1
+ import { a as a$3 } from '../../chunk-P2QZJ57W.js';
2
2
  import { a as a$4 } from '../../chunk-BT3FTBTT.js';
3
3
  import { a as a$2 } from '../../chunk-XAPSXJZO.js';
4
4
  import { a as a$1 } from '../../chunk-JGASCDBR.js';
@@ -1,13 +1,13 @@
1
1
  export { a as default } from '../../chunk-A7AOWJKX.js';
2
2
  import '../../chunk-5KEVIB7P.js';
3
- import '../../chunk-JM3SE72J.js';
3
+ import '../../chunk-TAA5KCEG.js';
4
4
  import '../../chunk-373WGZZL.js';
5
5
  import '../../chunk-WUFEPE2G.js';
6
6
  import '../../chunk-BX2DSNRV.js';
7
- import '../../chunk-X4F3O7PX.js';
8
- import '../../chunk-Q2AVS24Z.js';
7
+ import '../../chunk-BKL525ZD.js';
8
+ import '../../chunk-7GJMLPJV.js';
9
9
  import '../../chunk-LNESYSHP.js';
10
- import '../../chunk-YPL4KIKN.js';
10
+ import '../../chunk-4734QSYC.js';
11
11
  import '../../chunk-HBOBTNB5.js';
12
- import '../../chunk-GLRLKFPS.js';
12
+ import '../../chunk-Y66XXBB3.js';
13
13
  //# sourceMappingURL=index.js.map
@@ -1,11 +1,11 @@
1
1
  import { d } from '../../chunk-JNDZPNQJ.js';
2
- import { a as a$3 } from '../../chunk-7LBBLVDC.js';
2
+ import { a as a$3 } from '../../chunk-PUMCHXCD.js';
3
3
  import { a as a$2 } from '../../chunk-UVPQR2Q2.js';
4
4
  import { a } from '../../chunk-CO2KQFUN.js';
5
5
  import { a as a$4 } from '../../chunk-JGASCDBR.js';
6
6
  import '../../chunk-TPOL2YXC.js';
7
7
  import { a as a$1 } from '../../chunk-LQRRMVFN.js';
8
- import '../../chunk-GLRLKFPS.js';
8
+ import '../../chunk-Y66XXBB3.js';
9
9
  import E from '@mui/material/Button';
10
10
  import N from '@mui/material/FormControlLabel';
11
11
  import O from '@mui/material/IconButton';
@@ -1,5 +1,5 @@
1
- export { j as ArrowButton, f as Carousel, g as CarouselArrowBasicButtons, i as CarouselArrowFloatButtons, h as CarouselArrowNumberButtons, k as CarouselDotButtons, l as CarouselProgressBar, c as CarouselSlide, n as CarouselThumb, m as CarouselThumbs, e as StyledContainer, d as StyledRoot, a as carouselBreakpoints, b as carouselClasses, o as useCarousel } from '../../chunk-YDU3ZCS7.js';
1
+ export { j as ArrowButton, f as Carousel, g as CarouselArrowBasicButtons, i as CarouselArrowFloatButtons, h as CarouselArrowNumberButtons, k as CarouselDotButtons, l as CarouselProgressBar, c as CarouselSlide, n as CarouselThumb, m as CarouselThumbs, e as StyledContainer, d as StyledRoot, a as carouselBreakpoints, b as carouselClasses, o as useCarousel } from '../../chunk-UE7W6ACG.js';
2
2
  import '../../chunk-JGASCDBR.js';
3
3
  import '../../chunk-TPOL2YXC.js';
4
- import '../../chunk-GLRLKFPS.js';
4
+ import '../../chunk-Y66XXBB3.js';
5
5
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
1
  import { a as a$3 } from '../../../chunk-MSCOIJQ5.js';
2
2
  import { a } from '../../../chunk-X64QHBVQ.js';
3
- import { a as a$1 } from '../../../chunk-YXRL4O4H.js';
3
+ import { a as a$1 } from '../../../chunk-P2QZJ57W.js';
4
4
  import '../../../chunk-RTC7H5E5.js';
5
5
  import { a as a$2 } from '../../../chunk-T745PFSO.js';
6
6
  import '../../../chunk-BT6L5NSF.js';
@@ -1,2 +1,2 @@
1
- export { a as default } from '../../../chunk-YXRL4O4H.js';
1
+ export { a as default } from '../../../chunk-P2QZJ57W.js';
2
2
  //# sourceMappingURL=index.js.map
@@ -2,12 +2,11 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { RegisterOptions } from 'react-hook-form';
3
3
  import { TextFieldProps } from '@mui/material/TextField';
4
4
  import { BaseField } from '../../../types/baseField.js';
5
+ import { I as InputMask } from '../../../maskedInputProps-34f2a8d9.js';
5
6
 
6
7
  type IProps = {
7
8
  name: string;
8
- mask: {
9
- mask: string;
10
- }[];
9
+ mask: InputMask[];
11
10
  rules?: RegisterOptions;
12
11
  onChange?(value: string): void;
13
12
  };
@@ -1,5 +1,5 @@
1
- import { a } from '../../../chunk-YXRL4O4H.js';
2
- import { d } from '../../../chunk-A3QLGMSB.js';
1
+ import { a } from '../../../chunk-P2QZJ57W.js';
2
+ import { n } from '../../../chunk-55XSPNSX.js';
3
3
  import { a as a$1 } from '../../../chunk-JGASCDBR.js';
4
4
  import '../../../chunk-TPOL2YXC.js';
5
5
  import { useState } from 'react';
@@ -8,7 +8,7 @@ import y from '@mui/material/IconButton';
8
8
  import N from '@mui/material/InputAdornment';
9
9
  import { jsx, jsxs } from 'react/jsx-runtime';
10
10
 
11
- var O=({name:o,sx:P,rules:n,passwordSize:d$1,specialCharacter:i,upperCaseChar:p,numberChar:l,showErrorMessage:x,match:r,helperText:m,InputProps:u,showButtonViewPassword:I=!0,...g})=>{let{watch:f}=useFormContext(),v=f(o),[t,C]=useState(!1),{hasNumberChar:V,hasSpecialCharacter:A,hasUpperCaseChar:F,isLengthValid:S}=d(v,d$1,l,i,p),H=(!A||!F||!S||!V)&&!x?"none":void 0;return jsx(a,{"data-intercom-target":o,...g,name:o,type:t?"text":"password",InputProps:{...u,endAdornment:jsxs(N,{position:"end",children:[u?.endAdornment,I&&jsx(y,{onClick:()=>C(!t),edge:"end","aria-label":"Mostrar/Ocultar senha",tabIndex:-1,children:jsx(a$1,{icon:t?"VIEW_ON":"VIEW_OFF"})})]})},rules:{...n,validate:{...n?.validate,validationPassword:h=>{let e=d(h,d$1,l,i,p);return !e.hasNumberChar||!e.hasSpecialCharacter||!e.hasUpperCaseChar||!e.isLengthValid?"Senha inv\xE1lida":r&&r.fieldPassword&&f(r.fieldPassword)!==h?"As senhas devem ser iguais":!0}}},sx:{...P,"& .MuiFormHelperText-root":{display:m?void 0:H}},forceShowHelperText:!0,helperText:m})},G=O;
11
+ var O=({name:o,sx:P,rules:n$1,passwordSize:d,specialCharacter:i,upperCaseChar:p,numberChar:l,showErrorMessage:x,match:r,helperText:m,InputProps:u,showButtonViewPassword:I=!0,...g})=>{let{watch:f}=useFormContext(),v=f(o),[t,C]=useState(!1),{hasNumberChar:V,hasSpecialCharacter:A,hasUpperCaseChar:F,isLengthValid:S}=n(v,d,l,i,p),H=(!A||!F||!S||!V)&&!x?"none":void 0;return jsx(a,{"data-intercom-target":o,...g,name:o,type:t?"text":"password",InputProps:{...u,endAdornment:jsxs(N,{position:"end",children:[u?.endAdornment,I&&jsx(y,{onClick:()=>C(!t),edge:"end","aria-label":"Mostrar/Ocultar senha",tabIndex:-1,children:jsx(a$1,{icon:t?"VIEW_OFF":"VIEW_ON"})})]})},rules:{...n$1,validate:{...n$1?.validate,validationPassword:h=>{let e=n(h,d,l,i,p);return !e.hasNumberChar||!e.hasSpecialCharacter||!e.hasUpperCaseChar||!e.isLengthValid?"Senha inv\xE1lida":r&&r.fieldPassword&&f(r.fieldPassword)!==h?"As senhas devem ser iguais":!0}}},sx:{...P,"& .MuiFormHelperText-root":{display:m?void 0:H}},forceShowHelperText:!0,helperText:m})},G=O;
12
12
 
13
13
  export { G as default };
14
14
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/form/Password/index.tsx"],"names":["useState","useFormContext","IconButton","InputAdornment","jsx","jsxs","Password","name","sx","rules","passwordSize","specialCharacter","upperCaseChar","numberChar","showErrorMessage","match","helperText","InputProps","showButtonViewPassword","other","watch","password","showPassword","setShowPassword","hasNumberChar","hasSpecialCharacter","hasUpperCaseChar","isLengthValid","validatePassword","display","Field_default","Icon_default","v","validation","Password_default"],"mappings":"gLAAA,OAAS,YAAAA,MAAgB,QACzB,OAAS,kBAAAC,MAAsB,kBAC/B,OAAOC,MAAgB,2BACvB,OAAOC,MAAoB,+BAwDjB,OAUM,OAAAC,EAVN,QAAAC,MAAA,oBAhDV,IAAMC,EAAW,CAAC,CAChB,KAAAC,EACA,GAAAC,EACA,MAAAC,EACA,aAAAC,EACA,iBAAAC,EACA,cAAAC,EACA,WAAAC,EACA,iBAAAC,EACA,MAAAC,EACA,WAAAC,EACA,WAAAC,EACA,uBAAAC,EAAyB,GACzB,GAAGC,CACL,IAAqB,CACnB,GAAM,CAAE,MAAAC,CAAM,EAAInB,EAAe,EAC3BoB,EAAWD,EAAMb,CAAI,EACrB,CAACe,EAAcC,CAAe,EAAIvB,EAAS,EAAK,EAChD,CACJ,cAAAwB,EACA,oBAAAC,EACA,iBAAAC,EACA,cAAAC,CACF,EAAIC,EACFP,EACAX,EACAG,EACAF,EACAC,CACF,EAQMiB,GALH,CAACJ,GACA,CAACC,GACD,CAACC,GACD,CAACH,IACH,CAACV,EAC8B,OAAS,OAE1C,OACEV,EAAC0B,EAAA,CACC,uBAAsBvB,EACrB,GAAGY,EACJ,KAAMZ,EACN,KAAMe,EAAe,OAAS,WAC9B,WAAY,CACV,GAAGL,EACH,aACEZ,EAACF,EAAA,CAAe,SAAS,MACtB,UAAAc,GAAY,aAEZC,GACCd,EAACF,EAAA,CACC,QAAS,IAAMqB,EAAgB,CAACD,CAAY,EAC5C,KAAK,MACL,aAAW,wBACX,SAAU,GAEV,SAAAlB,EAAC2B,EAAA,CAAK,KAAMT,EAAe,UAAY,WAAY,EACrD,GAEJ,CAEJ,EACA,MAAO,CACL,GAAGb,EACH,SAAU,CACR,GAAGA,GAAO,SACV,mBAAqBuB,GAAc,CACjC,IAAMC,EAAaL,EACjBI,EACAtB,EACAG,EACAF,EACAC,CACF,EAEA,MACE,CAACqB,EAAW,eACZ,CAACA,EAAW,qBACZ,CAACA,EAAW,kBACZ,CAACA,EAAW,cAEL,oBAELlB,GAASA,EAAM,eACKK,EAAML,EAAM,aAAa,IAEzBiB,EAAU,6BAG3B,EACT,CACF,CACF,EACA,GAAI,CACF,GAAGxB,EACH,4BAA6B,CAC3B,QAASQ,EAAa,OAAYa,CACpC,CACF,EACA,oBAAmB,GACnB,WAAYb,EACd,CAEJ,EAEOkB,EAAQ5B","sourcesContent":["import { useState } from 'react';\nimport { useFormContext } from 'react-hook-form';\nimport IconButton from '@mui/material/IconButton';\nimport InputAdornment from '@mui/material/InputAdornment';\n\nimport Field from 'components/form/Field';\nimport Icon from 'components/Icon';\nimport { validatePassword } from 'utils/validators';\n\nimport { PasswordProps } from './props';\n\nconst Password = ({\n name,\n sx,\n rules,\n passwordSize,\n specialCharacter,\n upperCaseChar,\n numberChar,\n showErrorMessage,\n match,\n helperText,\n InputProps,\n showButtonViewPassword = true,\n ...other\n}: PasswordProps) => {\n const { watch } = useFormContext();\n const password = watch(name);\n const [showPassword, setShowPassword] = useState(false);\n const {\n hasNumberChar,\n hasSpecialCharacter,\n hasUpperCaseChar,\n isLengthValid,\n } = validatePassword(\n password,\n passwordSize,\n numberChar,\n specialCharacter,\n upperCaseChar,\n );\n\n const hideHelperText =\n (!hasSpecialCharacter ||\n !hasUpperCaseChar ||\n !isLengthValid ||\n !hasNumberChar) &&\n !showErrorMessage;\n const display = hideHelperText ? 'none' : undefined;\n\n return (\n <Field\n data-intercom-target={name}\n {...other}\n name={name}\n type={showPassword ? 'text' : 'password'}\n InputProps={{\n ...InputProps,\n endAdornment: (\n <InputAdornment position=\"end\">\n {InputProps?.endAdornment}\n\n {showButtonViewPassword && (\n <IconButton\n onClick={() => setShowPassword(!showPassword)}\n edge=\"end\"\n aria-label=\"Mostrar/Ocultar senha\"\n tabIndex={-1}\n >\n <Icon icon={showPassword ? 'VIEW_ON' : 'VIEW_OFF'} />\n </IconButton>\n )}\n </InputAdornment>\n ),\n }}\n rules={{\n ...rules,\n validate: {\n ...rules?.validate,\n validationPassword: (v: string) => {\n const validation = validatePassword(\n v,\n passwordSize,\n numberChar,\n specialCharacter,\n upperCaseChar,\n );\n\n if (\n !validation.hasNumberChar ||\n !validation.hasSpecialCharacter ||\n !validation.hasUpperCaseChar ||\n !validation.isLengthValid\n )\n return 'Senha inválida';\n\n if (match && match.fieldPassword) {\n const passwordValue = watch(match.fieldPassword);\n\n if (passwordValue !== v) return 'As senhas devem ser iguais';\n }\n\n return true;\n },\n },\n }}\n sx={{\n ...sx,\n '& .MuiFormHelperText-root': {\n display: helperText ? undefined : display,\n },\n }}\n forceShowHelperText\n helperText={helperText}\n />\n );\n};\n\nexport default Password;\n"]}
1
+ {"version":3,"sources":["../../../../src/components/form/Password/index.tsx"],"names":["useState","useFormContext","IconButton","InputAdornment","jsx","jsxs","Password","name","sx","rules","passwordSize","specialCharacter","upperCaseChar","numberChar","showErrorMessage","match","helperText","InputProps","showButtonViewPassword","other","watch","password","showPassword","setShowPassword","hasNumberChar","hasSpecialCharacter","hasUpperCaseChar","isLengthValid","validatePassword","display","Field_default","Icon_default","v","validation","Password_default"],"mappings":"gLAAA,OAAS,YAAAA,MAAgB,QACzB,OAAS,kBAAAC,MAAsB,kBAC/B,OAAOC,MAAgB,2BACvB,OAAOC,MAAoB,+BAwDjB,OAUM,OAAAC,EAVN,QAAAC,MAAA,oBAhDV,IAAMC,EAAW,CAAC,CAChB,KAAAC,EACA,GAAAC,EACA,MAAAC,EACA,aAAAC,EACA,iBAAAC,EACA,cAAAC,EACA,WAAAC,EACA,iBAAAC,EACA,MAAAC,EACA,WAAAC,EACA,WAAAC,EACA,uBAAAC,EAAyB,GACzB,GAAGC,CACL,IAAqB,CACnB,GAAM,CAAE,MAAAC,CAAM,EAAInB,EAAe,EAC3BoB,EAAWD,EAAMb,CAAI,EACrB,CAACe,EAAcC,CAAe,EAAIvB,EAAS,EAAK,EAChD,CACJ,cAAAwB,EACA,oBAAAC,EACA,iBAAAC,EACA,cAAAC,CACF,EAAIC,EACFP,EACAX,EACAG,EACAF,EACAC,CACF,EAQMiB,GALH,CAACJ,GACA,CAACC,GACD,CAACC,GACD,CAACH,IACH,CAACV,EAC8B,OAAS,OAE1C,OACEV,EAAC0B,EAAA,CACC,uBAAsBvB,EACrB,GAAGY,EACJ,KAAMZ,EACN,KAAMe,EAAe,OAAS,WAC9B,WAAY,CACV,GAAGL,EACH,aACEZ,EAACF,EAAA,CAAe,SAAS,MACtB,UAAAc,GAAY,aAEZC,GACCd,EAACF,EAAA,CACC,QAAS,IAAMqB,EAAgB,CAACD,CAAY,EAC5C,KAAK,MACL,aAAW,wBACX,SAAU,GAEV,SAAAlB,EAAC2B,EAAA,CAAK,KAAMT,EAAe,WAAa,UAAW,EACrD,GAEJ,CAEJ,EACA,MAAO,CACL,GAAGb,EACH,SAAU,CACR,GAAGA,GAAO,SACV,mBAAqBuB,GAAc,CACjC,IAAMC,EAAaL,EACjBI,EACAtB,EACAG,EACAF,EACAC,CACF,EAEA,MACE,CAACqB,EAAW,eACZ,CAACA,EAAW,qBACZ,CAACA,EAAW,kBACZ,CAACA,EAAW,cAEL,oBAELlB,GAASA,EAAM,eACKK,EAAML,EAAM,aAAa,IAEzBiB,EAAU,6BAG3B,EACT,CACF,CACF,EACA,GAAI,CACF,GAAGxB,EACH,4BAA6B,CAC3B,QAASQ,EAAa,OAAYa,CACpC,CACF,EACA,oBAAmB,GACnB,WAAYb,EACd,CAEJ,EAEOkB,EAAQ5B","sourcesContent":["import { useState } from 'react';\nimport { useFormContext } from 'react-hook-form';\nimport IconButton from '@mui/material/IconButton';\nimport InputAdornment from '@mui/material/InputAdornment';\n\nimport Field from 'components/form/Field';\nimport Icon from 'components/Icon';\nimport { validatePassword } from 'utils/validators';\n\nimport { PasswordProps } from './props';\n\nconst Password = ({\n name,\n sx,\n rules,\n passwordSize,\n specialCharacter,\n upperCaseChar,\n numberChar,\n showErrorMessage,\n match,\n helperText,\n InputProps,\n showButtonViewPassword = true,\n ...other\n}: PasswordProps) => {\n const { watch } = useFormContext();\n const password = watch(name);\n const [showPassword, setShowPassword] = useState(false);\n const {\n hasNumberChar,\n hasSpecialCharacter,\n hasUpperCaseChar,\n isLengthValid,\n } = validatePassword(\n password,\n passwordSize,\n numberChar,\n specialCharacter,\n upperCaseChar,\n );\n\n const hideHelperText =\n (!hasSpecialCharacter ||\n !hasUpperCaseChar ||\n !isLengthValid ||\n !hasNumberChar) &&\n !showErrorMessage;\n const display = hideHelperText ? 'none' : undefined;\n\n return (\n <Field\n data-intercom-target={name}\n {...other}\n name={name}\n type={showPassword ? 'text' : 'password'}\n InputProps={{\n ...InputProps,\n endAdornment: (\n <InputAdornment position=\"end\">\n {InputProps?.endAdornment}\n\n {showButtonViewPassword && (\n <IconButton\n onClick={() => setShowPassword(!showPassword)}\n edge=\"end\"\n aria-label=\"Mostrar/Ocultar senha\"\n tabIndex={-1}\n >\n <Icon icon={showPassword ? 'VIEW_OFF' : 'VIEW_ON'} />\n </IconButton>\n )}\n </InputAdornment>\n ),\n }}\n rules={{\n ...rules,\n validate: {\n ...rules?.validate,\n validationPassword: (v: string) => {\n const validation = validatePassword(\n v,\n passwordSize,\n numberChar,\n specialCharacter,\n upperCaseChar,\n );\n\n if (\n !validation.hasNumberChar ||\n !validation.hasSpecialCharacter ||\n !validation.hasUpperCaseChar ||\n !validation.isLengthValid\n )\n return 'Senha inválida';\n\n if (match && match.fieldPassword) {\n const passwordValue = watch(match.fieldPassword);\n\n if (passwordValue !== v) return 'As senhas devem ser iguais';\n }\n\n return true;\n },\n },\n }}\n sx={{\n ...sx,\n '& .MuiFormHelperText-root': {\n display: helperText ? undefined : display,\n },\n }}\n forceShowHelperText\n helperText={helperText}\n />\n );\n};\n\nexport default Password;\n"]}
@@ -1,4 +1,4 @@
1
- import { a as a$1 } from '../../../chunk-YXRL4O4H.js';
1
+ import { a as a$1 } from '../../../chunk-P2QZJ57W.js';
2
2
  import { a as a$2 } from '../../../chunk-T745PFSO.js';
3
3
  import { a as a$3 } from '../../../chunk-VTWYBXPN.js';
4
4
  import '../../../chunk-BT6L5NSF.js';
@@ -4,15 +4,14 @@ import * as react from 'react';
4
4
  import { ReactNode } from 'react';
5
5
 
6
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;
7
+ toast: ((message: (() => ReactNode) | ReactNode, data?: ExternalToast | undefined) => string | number) & {
8
+ success: (message: string | number | boolean | (() => ReactNode) | react.ReactElement<any, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | react.ReactPortal | null | undefined, data?: ExternalToast | undefined) => string | number;
9
+ info: (message: string | number | boolean | (() => ReactNode) | react.ReactElement<any, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | react.ReactPortal | null | undefined, data?: ExternalToast | undefined) => string | number;
10
+ warning: (message: string | number | boolean | (() => ReactNode) | react.ReactElement<any, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | react.ReactPortal | null | undefined, data?: ExternalToast | undefined) => string | number;
11
+ error: (message: string | number | boolean | (() => ReactNode) | react.ReactElement<any, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | react.ReactPortal | null | undefined, data?: ExternalToast | undefined) => string | number;
12
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;
13
+ message: (message: string | number | boolean | (() => ReactNode) | react.ReactElement<any, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | react.ReactPortal | null | undefined, data?: ExternalToast | undefined) => string | number;
14
14
  promise: <ToastData>(promise: Promise<ToastData> | (() => Promise<ToastData>), data?: ({
15
- cancel?: ReactNode | sonner.Action;
16
15
  className?: string | undefined;
17
16
  style?: react.CSSProperties | undefined;
18
17
  position?: ("top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right") | undefined;
@@ -21,6 +20,7 @@ declare const useSnackbar: () => {
21
20
  icon?: ReactNode;
22
21
  duration?: number | undefined;
23
22
  onDismiss?: ((toast: sonner.ToastT) => void) | undefined;
23
+ cancel?: ReactNode | sonner.Action;
24
24
  richColors?: boolean | undefined;
25
25
  invert?: boolean | undefined;
26
26
  closeButton?: boolean | undefined;
@@ -45,7 +45,7 @@ declare const useSnackbar: () => {
45
45
  unwrap: () => Promise<ToastData>;
46
46
  };
47
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;
48
+ loading: (message: string | number | boolean | (() => ReactNode) | react.ReactElement<any, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | react.ReactPortal | null | undefined, data?: ExternalToast | undefined) => string | number;
49
49
  } & {
50
50
  getHistory: () => (sonner.ToastT | sonner.ToastToDismiss)[];
51
51
  getToasts: () => (sonner.ToastT | sonner.ToastToDismiss)[];
@@ -1,12 +1,12 @@
1
1
  export { a as useThemeToggle } from '../chunk-5KEVIB7P.js';
2
- import '../chunk-JM3SE72J.js';
2
+ import '../chunk-TAA5KCEG.js';
3
3
  import '../chunk-373WGZZL.js';
4
4
  import '../chunk-WUFEPE2G.js';
5
5
  import '../chunk-BX2DSNRV.js';
6
- import '../chunk-X4F3O7PX.js';
7
- import '../chunk-Q2AVS24Z.js';
6
+ import '../chunk-BKL525ZD.js';
7
+ import '../chunk-7GJMLPJV.js';
8
8
  import '../chunk-LNESYSHP.js';
9
- import '../chunk-YPL4KIKN.js';
9
+ import '../chunk-4734QSYC.js';
10
10
  import '../chunk-HBOBTNB5.js';
11
- import '../chunk-GLRLKFPS.js';
11
+ import '../chunk-Y66XXBB3.js';
12
12
  //# sourceMappingURL=useThemeToggle.js.map
package/dist/index.d.ts CHANGED
@@ -5,7 +5,7 @@ export { THEME_CONFIG, default as ThemeProvider } from './theme/theme-provider.j
5
5
  import { S as SettingsState } from './settings-583c107c.js';
6
6
  import { Theme as Theme$1 } from '@mui/material/styles';
7
7
  import { a as ThemeLocaleComponents } from './types-b8e8c021.js';
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';
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, whenAutoFilled } from './theme/styles/index.js';
9
9
  export { useThemeToggle } from './hooks/useThemeToggle.js';
10
10
  import '@mui/lab/TimelineConnector';
11
11
  import '@mui/system';
package/dist/index.js CHANGED
@@ -1,12 +1,12 @@
1
1
  export { a as useThemeToggle } from './chunk-5KEVIB7P.js';
2
- export { b as ThemeProvider, a as createTheme } from './chunk-JM3SE72J.js';
2
+ export { b as ThemeProvider, a as createTheme } from './chunk-TAA5KCEG.js';
3
3
  import './chunk-373WGZZL.js';
4
4
  import './chunk-WUFEPE2G.js';
5
5
  export { c as SettingsProvider, b as useSettingsContext } from './chunk-BX2DSNRV.js';
6
- export { b as defaultFont, c as primaryFont, d as secondaryFont, a as shadows, e as typography } from './chunk-X4F3O7PX.js';
7
- import './chunk-Q2AVS24Z.js';
6
+ export { b as defaultFont, c as primaryFont, d as secondaryFont, a as shadows, e as typography } from './chunk-BKL525ZD.js';
7
+ import './chunk-7GJMLPJV.js';
8
8
  import './chunk-LNESYSHP.js';
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-YPL4KIKN.js';
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-4734QSYC.js';
10
10
  import './chunk-HBOBTNB5.js';
11
- export { a as THEME_CONFIG, 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-GLRLKFPS.js';
11
+ export { a as THEME_CONFIG, 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, u as whenAutoFilled } from './chunk-Y66XXBB3.js';
12
12
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ type InputMask = {
2
+ mask: string;
3
+ definitions?: Record<string, RegExp>;
4
+ prepareChar?: (character: string) => string;
5
+ };
6
+
7
+ export { InputMask as I };
@@ -1,5 +1,5 @@
1
- export { b as defaultFont, c as primaryFont, d as secondaryFont, a as shadows, e as typography } from '../../chunk-X4F3O7PX.js';
2
- 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-YPL4KIKN.js';
1
+ export { b as defaultFont, c as primaryFont, d as secondaryFont, a as shadows, e as typography } from '../../chunk-BKL525ZD.js';
2
+ 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-4734QSYC.js';
3
3
  import '../../chunk-HBOBTNB5.js';
4
- import '../../chunk-GLRLKFPS.js';
4
+ import '../../chunk-Y66XXBB3.js';
5
5
  //# sourceMappingURL=index.js.map
@@ -460,7 +460,7 @@ declare function paper({ theme, color, dropdown }: PaperProps): {
460
460
  x?: readonly (string | (string & {}))[] | csstype.Property.X<string | number> | readonly NonNullable<csstype.Property.X<string | number> | undefined>[] | undefined;
461
461
  y?: readonly (string | (string & {}))[] | csstype.Property.Y<string | number> | readonly NonNullable<csstype.Property.Y<string | number> | undefined>[] | undefined;
462
462
  zIndex?: readonly ((string & {}) | csstype.Globals | "auto")[] | csstype.Property.ZIndex | readonly NonNullable<csstype.Property.ZIndex | undefined>[] | undefined;
463
- zoom?: csstype.Property.Zoom | readonly NonNullable<csstype.Property.Zoom | undefined>[] | readonly ("reset" | (string & {}) | csstype.Globals | "normal")[] | undefined;
463
+ zoom?: csstype.Property.Zoom | readonly NonNullable<csstype.Property.Zoom | undefined>[] | readonly ((string & {}) | csstype.Globals | "normal" | "reset")[] | undefined;
464
464
  all?: csstype.Globals | readonly NonNullable<csstype.Globals | undefined>[] | readonly csstype.Globals[] | undefined;
465
465
  animation?: csstype.Property.Animation<string & {}> | readonly NonNullable<csstype.Property.Animation<string & {}> | undefined>[] | readonly ("reverse" | (string & {}) | csstype.Globals | "none" | "auto" | "normal" | "alternate" | "alternate-reverse" | "backwards" | "both" | "forwards" | "infinite" | "paused" | "running" | "ease" | "ease-in" | "ease-in-out" | "ease-out" | "step-end" | "step-start" | "linear")[] | undefined;
466
466
  animationRange?: readonly (string | (string & {}))[] | csstype.Property.AnimationRange<string | number> | readonly NonNullable<csstype.Property.AnimationRange<string | number> | undefined>[] | undefined;
@@ -1914,6 +1914,7 @@ declare function menuItem(theme: Theme): {
1914
1914
  colorRendering?: csstype.Property.ColorRendering | undefined;
1915
1915
  glyphOrientationVertical?: csstype.Property.GlyphOrientationVertical | undefined;
1916
1916
  };
1917
+ declare function whenAutoFilled(selector: string): string;
1917
1918
 
1918
1919
  declare const stylesMode: {
1919
1920
  light: string;
@@ -1949,4 +1950,4 @@ interface ColorWithAlpha {
1949
1950
  }
1950
1951
  declare function varAlpha(color: string, opacity?: number): string;
1951
1952
 
1952
- 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 };
1953
+ 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, whenAutoFilled };
@@ -1,2 +1,2 @@
1
- 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-GLRLKFPS.js';
1
+ 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, u as whenAutoFilled } from '../../chunk-Y66XXBB3.js';
2
2
  //# sourceMappingURL=index.js.map
@@ -1,11 +1,11 @@
1
- export { b as default } from '../chunk-JM3SE72J.js';
1
+ export { b as default } from '../chunk-TAA5KCEG.js';
2
2
  import '../chunk-373WGZZL.js';
3
3
  import '../chunk-WUFEPE2G.js';
4
4
  export { b as useSettingsContext } from '../chunk-BX2DSNRV.js';
5
- import '../chunk-X4F3O7PX.js';
6
- import '../chunk-Q2AVS24Z.js';
5
+ import '../chunk-BKL525ZD.js';
6
+ import '../chunk-7GJMLPJV.js';
7
7
  import '../chunk-LNESYSHP.js';
8
- import '../chunk-YPL4KIKN.js';
8
+ import '../chunk-4734QSYC.js';
9
9
  import '../chunk-HBOBTNB5.js';
10
- export { a as THEME_CONFIG } from '../chunk-GLRLKFPS.js';
10
+ export { a as THEME_CONFIG } from '../chunk-Y66XXBB3.js';
11
11
  //# sourceMappingURL=theme-provider.js.map
@@ -1,6 +1,6 @@
1
- export { c as buildPrimaryColors, b as updateComponentsWithSettings, a as updateCoreWithSettings } from '../../chunk-Q2AVS24Z.js';
1
+ export { c as buildPrimaryColors, b as updateComponentsWithSettings, a as updateCoreWithSettings } from '../../chunk-7GJMLPJV.js';
2
2
  import '../../chunk-LNESYSHP.js';
3
- import '../../chunk-YPL4KIKN.js';
3
+ import '../../chunk-4734QSYC.js';
4
4
  import '../../chunk-HBOBTNB5.js';
5
- import '../../chunk-GLRLKFPS.js';
5
+ import '../../chunk-Y66XXBB3.js';
6
6
  //# sourceMappingURL=index.js.map
@@ -1,8 +1,21 @@
1
1
  declare const applyMask: (value: string | undefined, mask: string) => string;
2
2
  declare const cpfMask: (v: string) => string;
3
3
  declare const cnpjMask: (v: string) => string;
4
+ declare const CPF_INPUT_MASK: {
5
+ mask: string;
6
+ }[];
7
+ declare const CNPJ_INPUT_MASK: {
8
+ mask: string;
9
+ definitions: {
10
+ '@': RegExp;
11
+ };
12
+ prepareChar: (character: string) => string;
13
+ }[];
14
+ declare const CPF_CNPJ_INPUT_MASK: {
15
+ mask: string;
16
+ }[];
4
17
  declare const cepMask: (v: string) => string;
5
18
  declare const phoneMask: (v: string) => string;
6
19
  declare const cpfMaskOrCnpjMask: (v: string) => string | null;
7
20
 
8
- export { applyMask, cepMask, cnpjMask, cpfMask, cpfMaskOrCnpjMask, phoneMask };
21
+ export { CNPJ_INPUT_MASK, CPF_CNPJ_INPUT_MASK, CPF_INPUT_MASK, applyMask, cepMask, cnpjMask, cpfMask, cpfMaskOrCnpjMask, phoneMask };
@@ -1,4 +1,6 @@
1
- var n=(e="",r)=>{let t="",s=0;return [...r].forEach(a=>{t+=a==="#"?e[s++]||"_":a;}),t},o=e=>n((e||"").replace(/\D/g,""),"###.###.###-##"),c=e=>n((e||"").replace(/\D/g,""),"##.###.###/####-##"),l=e=>n((e||"").replace(/\D/g,""),"#####-###"),u=e=>{let t=(e||"").replace(/\D/g,"");return n(t,{10:"(##) ####-####",11:"(##) #####-####",12:"+## (##) ####-####",13:"+## (##) #####-####",14:"+### (##) #####-####"}[t.length]??t)},p=e=>{let t=(e||""||"").replace(/\D/g,"");return t.length===11?o(t):t.length===14?c(t):null};
1
+ import { d } from '../chunk-55XSPNSX.js';
2
2
 
3
- export { n as applyMask, l as cepMask, c as cnpjMask, o as cpfMask, p as cpfMaskOrCnpjMask, u as phoneMask };
3
+ var s=(t="",n)=>{let e="",r=0;return [...n].forEach(a=>{e+=a==="#"?t[r++]||"_":a;}),e},l=t=>s((t||"").replace(/\D/g,""),"###.###.###-##"),u=t=>s(d(t||""),"##.###.###/####-##"),i=[{mask:"000.000.000-00"}],g=[{mask:"@@.@@@.@@@/@@@@-00",definitions:{"@":/[0-9a-zA-Z]/},prepareChar:t=>t.toUpperCase()}],m=[...i,...g],M=t=>s((t||"").replace(/\D/g,""),"#####-###"),_=t=>{let e=(t||"").replace(/\D/g,"");return s(e,{10:"(##) ####-####",11:"(##) #####-####",12:"+## (##) ####-####",13:"+## (##) #####-####",14:"+### (##) #####-####"}[e.length]??e)},v=t=>{let n=t||"",e=n.replace(/\D/g,"");if(e.length===11)return l(e);let r=d(n);return r.length===14?u(r):null};
4
+
5
+ export { g as CNPJ_INPUT_MASK, m as CPF_CNPJ_INPUT_MASK, i as CPF_INPUT_MASK, s as applyMask, M as cepMask, u as cnpjMask, l as cpfMask, v as cpfMaskOrCnpjMask, _ as phoneMask };
4
6
  //# sourceMappingURL=mask.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/utils/mask.ts"],"names":["applyMask","value","mask","formattedString","j","char","cpfMask","v","cnpjMask","cepMask","phoneMask","digits","cpfMaskOrCnpjMask","onlyNumbers"],"mappings":"AAAO,IAAMA,EAAY,CAACC,EAAQ,GAAIC,IAAiB,CACrD,IAAIC,EAAkB,GAClBC,EAAI,EAGR,OAAC,GAAGF,CAAI,EAAE,QAAQG,GAAQ,CAExBF,GAAmBE,IAAS,IAAMJ,EAAMG,GAAG,GAAK,IAAMC,CACxD,CAAC,EAEMF,CACT,EAEaG,EAAWC,GAEfP,GADOO,GAAK,IACI,QAAQ,MAAO,EAAE,EAAG,gBAAgB,EAGhDC,EAAYD,GAEhBP,GADOO,GAAK,IACI,QAAQ,MAAO,EAAE,EAAG,oBAAoB,EAGpDE,EAAWF,GAEfP,GADOO,GAAK,IACI,QAAQ,MAAO,EAAE,EAAG,WAAW,EAG3CG,EAAaH,GAAc,CAEtC,IAAMI,GADQJ,GAAK,IACE,QAAQ,MAAO,EAAE,EAUtC,OAAOP,EAAUW,EARqB,CACpC,GAAI,iBACJ,GAAI,kBACJ,GAAI,qBACJ,GAAI,sBACJ,GAAI,sBACN,EAE+BA,EAAO,MAAM,GAAKA,CAAM,CACzD,EAEaC,EAAqBL,GAAc,CAE9C,IAAMM,GADQN,GAAK,IACW,IAAI,QAAQ,MAAO,EAAE,EAEnD,OAAIM,EAAY,SAAW,GAAWP,EAAQO,CAAW,EAErDA,EAAY,SAAW,GAAWL,EAASK,CAAW,EAEnD,IACT","sourcesContent":["export const applyMask = (value = '', mask: string) => {\n let formattedString = '';\n let j = 0;\n\n // Iterate through each character in the mask\n [...mask].forEach(char => {\n // If the character is '#', insert the next character from the input string, or '_' if the input string is shorter\n formattedString += char === '#' ? value[j++] || '_' : char;\n });\n\n return formattedString;\n};\n\nexport const cpfMask = (v: string) => {\n const value = v || '';\n return applyMask(value.replace(/\\D/g, ''), '###.###.###-##');\n};\n\nexport const cnpjMask = (v: string) => {\n const value = v || '';\n return applyMask(value.replace(/\\D/g, ''), '##.###.###/####-##');\n};\n\nexport const cepMask = (v: string) => {\n const value = v || '';\n return applyMask(value.replace(/\\D/g, ''), '#####-###');\n};\n\nexport const phoneMask = (v: string) => {\n const value = v || '';\n const digits = value.replace(/\\D/g, '');\n\n const masks: Record<number, string> = {\n 10: '(##) ####-####',\n 11: '(##) #####-####',\n 12: '+## (##) ####-####',\n 13: '+## (##) #####-####',\n 14: '+### (##) #####-####',\n };\n\n return applyMask(digits, masks[digits.length] ?? digits);\n};\n\nexport const cpfMaskOrCnpjMask = (v: string) => {\n const value = v || '';\n const onlyNumbers = (value || '').replace(/\\D/g, '');\n\n if (onlyNumbers.length === 11) return cpfMask(onlyNumbers);\n\n if (onlyNumbers.length === 14) return cnpjMask(onlyNumbers);\n\n return null;\n};\n"]}
1
+ {"version":3,"sources":["../../src/utils/mask.ts"],"names":["applyMask","value","mask","formattedString","j","char","cpfMask","v","cnpjMask","sanitizeDocument","CPF_INPUT_MASK","CNPJ_INPUT_MASK","character","CPF_CNPJ_INPUT_MASK","cepMask","phoneMask","digits","cpfMaskOrCnpjMask","onlyNumbers","document"],"mappings":"uDAEO,IAAMA,EAAY,CAACC,EAAQ,GAAIC,IAAiB,CACrD,IAAIC,EAAkB,GAClBC,EAAI,EAGR,OAAC,GAAGF,CAAI,EAAE,QAAQG,GAAQ,CAExBF,GAAmBE,IAAS,IAAMJ,EAAMG,GAAG,GAAK,IAAMC,CACxD,CAAC,EAEMF,CACT,EAEaG,EAAWC,GAEfP,GADOO,GAAK,IACI,QAAQ,MAAO,EAAE,EAAG,gBAAgB,EAGhDC,EAAYD,GAEhBP,EAAUS,EADHF,GAAK,EACoB,EAAG,oBAAoB,EAGnDG,EAAiB,CAAC,CAAE,KAAM,gBAAiB,CAAC,EAE5CC,EAAkB,CAC7B,CACE,KAAM,qBACN,YAAa,CAAE,IAAK,aAAc,EAClC,YAAcC,GAAsBA,EAAU,YAAY,CAC5D,CACF,EAEaC,EAAsB,CAAC,GAAGH,EAAgB,GAAGC,CAAe,EAE5DG,EAAWP,GAEfP,GADOO,GAAK,IACI,QAAQ,MAAO,EAAE,EAAG,WAAW,EAG3CQ,EAAaR,GAAc,CAEtC,IAAMS,GADQT,GAAK,IACE,QAAQ,MAAO,EAAE,EAUtC,OAAOP,EAAUgB,EARqB,CACpC,GAAI,iBACJ,GAAI,kBACJ,GAAI,qBACJ,GAAI,sBACJ,GAAI,sBACN,EAE+BA,EAAO,MAAM,GAAKA,CAAM,CACzD,EAEaC,EAAqBV,GAAc,CAC9C,IAAMN,EAAQM,GAAK,GACbW,EAAcjB,EAAM,QAAQ,MAAO,EAAE,EAE3C,GAAIiB,EAAY,SAAW,GAAY,OAAOZ,EAAQY,CAAW,EAEjE,IAAMC,EAAWV,EAAiBR,CAAK,EAEvC,OAAIkB,EAAS,SAAW,GAAoBX,EAASW,CAAQ,EAEtD,IACT","sourcesContent":["import { CNPJ_LENGTH, CPF_LENGTH, sanitizeDocument } from './validators';\n\nexport const applyMask = (value = '', mask: string) => {\n let formattedString = '';\n let j = 0;\n\n // Iterate through each character in the mask\n [...mask].forEach(char => {\n // If the character is '#', insert the next character from the input string, or '_' if the input string is shorter\n formattedString += char === '#' ? value[j++] || '_' : char;\n });\n\n return formattedString;\n};\n\nexport const cpfMask = (v: string) => {\n const value = v || '';\n return applyMask(value.replace(/\\D/g, ''), '###.###.###-##');\n};\n\nexport const cnpjMask = (v: string) => {\n const value = v || '';\n return applyMask(sanitizeDocument(value), '##.###.###/####-##');\n};\n\nexport const CPF_INPUT_MASK = [{ mask: '000.000.000-00' }];\n\nexport const CNPJ_INPUT_MASK = [\n {\n mask: '@@.@@@.@@@/@@@@-00',\n definitions: { '@': /[0-9a-zA-Z]/ },\n prepareChar: (character: string) => character.toUpperCase(),\n },\n];\n\nexport const CPF_CNPJ_INPUT_MASK = [...CPF_INPUT_MASK, ...CNPJ_INPUT_MASK];\n\nexport const cepMask = (v: string) => {\n const value = v || '';\n return applyMask(value.replace(/\\D/g, ''), '#####-###');\n};\n\nexport const phoneMask = (v: string) => {\n const value = v || '';\n const digits = value.replace(/\\D/g, '');\n\n const masks: Record<number, string> = {\n 10: '(##) ####-####',\n 11: '(##) #####-####',\n 12: '+## (##) ####-####',\n 13: '+## (##) #####-####',\n 14: '+### (##) #####-####',\n };\n\n return applyMask(digits, masks[digits.length] ?? digits);\n};\n\nexport const cpfMaskOrCnpjMask = (v: string) => {\n const value = v || '';\n const onlyNumbers = value.replace(/\\D/g, '');\n\n if (onlyNumbers.length === CPF_LENGTH) return cpfMask(onlyNumbers);\n\n const document = sanitizeDocument(value);\n\n if (document.length === CNPJ_LENGTH) return cnpjMask(document);\n\n return null;\n};\n"]}