@zydon/common 2.9.42 → 2.9.43

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 (127) hide show
  1. package/README.md +1 -0
  2. package/dist/{chunk-YJYS2LQQ.js → chunk-33SY23DN.js} +2 -2
  3. package/dist/{chunk-JBYYU67F.js → chunk-3YDQT7HF.js} +3 -3
  4. package/dist/{chunk-CZ5Y53WA.js → chunk-4XN57SLB.js} +2 -2
  5. package/dist/{chunk-VPZL6AIF.js → chunk-5NLFXSCK.js} +2 -2
  6. package/dist/{chunk-YHOVSR7P.js → chunk-6AORBPFU.js} +2 -2
  7. package/dist/{chunk-TS7QZPD6.js → chunk-BTVG4NW3.js} +2 -2
  8. package/dist/{chunk-H762KDPN.js → chunk-C2T2YAFC.js} +2 -2
  9. package/dist/{chunk-BK36QQTT.js → chunk-CFCRZKL5.js} +2 -2
  10. package/dist/{chunk-COAGQGZA.js → chunk-DYZC2NKL.js} +2 -2
  11. package/dist/{chunk-5ZMA4N4W.js → chunk-FMFS42U2.js} +1 -1
  12. package/dist/{chunk-MY4CZ5PC.js → chunk-G6HGDG22.js} +2 -2
  13. package/dist/{chunk-KDSM2AIT.js → chunk-GR5GSCOD.js} +2 -2
  14. package/dist/{chunk-NJLLYK4S.js → chunk-HU6OBYMK.js} +2 -2
  15. package/dist/{chunk-FCKDOHEL.js → chunk-JUXUEEZW.js} +3 -3
  16. package/dist/{chunk-L6CMWQCC.js → chunk-JWX3OMRI.js} +2 -2
  17. package/dist/{chunk-ANH46M6K.js → chunk-L57JO525.js} +3 -3
  18. package/dist/{chunk-TSEVZMIE.js → chunk-LTXQ3A3C.js} +2 -2
  19. package/dist/{chunk-W27CC2AQ.js → chunk-MHURBJRD.js} +3 -3
  20. package/dist/{chunk-EICUAMNN.js → chunk-MWKWO5P2.js} +2 -2
  21. package/dist/{chunk-PMKM67BB.js → chunk-NDX5YJV7.js} +2 -2
  22. package/dist/{chunk-CWRW6X26.js → chunk-NZRNEP5G.js} +5 -5
  23. package/dist/{chunk-MJFCJZFD.js → chunk-QBTZKP6X.js} +2 -2
  24. package/dist/{chunk-VELCTMU2.js → chunk-RTXMZGBW.js} +2 -2
  25. package/dist/{chunk-R7BNGTUT.js → chunk-UMLZEYD5.js} +2 -2
  26. package/dist/{chunk-JKAMT5TC.js → chunk-YO4G7OZA.js} +2 -2
  27. package/dist/{chunk-3RFXFIBL.js → chunk-ZHY3VDHD.js} +2 -2
  28. package/dist/components/Accordion/index.js +2 -2
  29. package/dist/components/ActionButton/index.js +2 -2
  30. package/dist/components/Analytics/Carts/index.js +9 -9
  31. package/dist/components/Analytics/OrderProjection/index.js +7 -7
  32. package/dist/components/Analytics/OverviewAnalytics/index.js +7 -7
  33. package/dist/components/Analytics/PartnerAnalysis/index.js +6 -6
  34. package/dist/components/Analytics/index.js +5 -5
  35. package/dist/components/Autocomplete/index.js +2 -2
  36. package/dist/components/Avatar/index.d.ts +1 -1
  37. package/dist/components/AvatarButton/index.js +1 -1
  38. package/dist/components/BuilderLayout/index.js +2 -2
  39. package/dist/components/BuilderSidebar/index.js +1 -1
  40. package/dist/components/BulkEditModal/index.js +3 -3
  41. package/dist/components/CardBrand/index.js +1 -1
  42. package/dist/components/ColorPickerInput/index.js +2 -2
  43. package/dist/components/Common/index.js +1 -1
  44. package/dist/components/CopyButton/index.js +2 -2
  45. package/dist/components/DataView/index.d.ts +1 -1
  46. package/dist/components/DataView/index.js +3 -3
  47. package/dist/components/DragButton/index.js +2 -2
  48. package/dist/components/Drawer/index.js +2 -2
  49. package/dist/components/DynamicDataView/index.js +6 -6
  50. package/dist/components/EasyCropModal/index.js +3 -3
  51. package/dist/components/Error/index.js +1 -1
  52. package/dist/components/ExpandableGroup/index.js +1 -1
  53. package/dist/components/FileUpload/index.js +6 -6
  54. package/dist/components/Filters/index.js +3 -3
  55. package/dist/components/FrameSkeleton/index.js +1 -1
  56. package/dist/components/HelpButton/index.js +2 -2
  57. package/dist/components/Icon/index.js +1 -1
  58. package/dist/components/IconButton/index.js +2 -2
  59. package/dist/components/ImageCropModal/index.js +2 -2
  60. package/dist/components/Incrementer/index.js +2 -2
  61. package/dist/components/InfoCircle/index.js +2 -2
  62. package/dist/components/ListBundles/index.js +2 -2
  63. package/dist/components/MenuItem/index.js +2 -2
  64. package/dist/components/Modal/index.js +2 -2
  65. package/dist/components/MoreMenu/index.js +2 -2
  66. package/dist/components/NotFound/index.js +1 -1
  67. package/dist/components/PasswordRules/index.js +1 -1
  68. package/dist/components/PopoverSelect/index.js +1 -1
  69. package/dist/components/PortalBrandImage/index.js +1 -1
  70. package/dist/components/SearchInput/index.js +2 -2
  71. package/dist/components/SelectList/index.js +4 -4
  72. package/dist/components/SelectableCards/index.js +3 -3
  73. package/dist/components/SeoPreview/index.js +1 -1
  74. package/dist/components/StateDisplay/index.js +2 -2
  75. package/dist/components/StepNavigator/index.d.ts +44 -0
  76. package/dist/components/StepNavigator/index.js +26 -0
  77. package/dist/components/StepNavigator/index.js.map +1 -0
  78. package/dist/components/StepUpDialog/index.js +2 -2
  79. package/dist/components/Steps/index.js +1 -1
  80. package/dist/components/StyledTab/index.js +1 -1
  81. package/dist/components/SwapList/index.js +2 -2
  82. package/dist/components/WebhookCard/index.js +1 -1
  83. package/dist/components/carousel/index.js +2 -2
  84. package/dist/components/form/Address/index.js +3 -3
  85. package/dist/components/form/Autocomplete/index.js +3 -3
  86. package/dist/components/form/ColorPicker/index.js +2 -2
  87. package/dist/components/form/FileUpload/index.js +6 -6
  88. package/dist/components/form/Incrementer/index.js +2 -2
  89. package/dist/components/form/Password/index.js +1 -1
  90. package/dist/components/form/SelectList/index.js +4 -4
  91. package/dist/components/form/SelectableCards/index.js +3 -3
  92. package/dist/components/form/Webhook/index.js +4 -4
  93. package/dist/components/lightbox/index.js +1 -1
  94. package/dist/components/table/index.js +2 -2
  95. package/dist/hooks/useSnackbar.d.ts +1 -1
  96. package/dist/index.d.ts +2 -2
  97. package/dist/theme/core/index.d.ts +1 -1
  98. package/dist/theme/styles/index.d.ts +13 -13
  99. package/dist/utils/buildExportPayload.js +1 -1
  100. package/package.json +1 -1
  101. package/dist/{chunk-YJYS2LQQ.js.map → chunk-33SY23DN.js.map} +0 -0
  102. package/dist/{chunk-JBYYU67F.js.map → chunk-3YDQT7HF.js.map} +0 -0
  103. package/dist/{chunk-CZ5Y53WA.js.map → chunk-4XN57SLB.js.map} +0 -0
  104. package/dist/{chunk-VPZL6AIF.js.map → chunk-5NLFXSCK.js.map} +0 -0
  105. package/dist/{chunk-YHOVSR7P.js.map → chunk-6AORBPFU.js.map} +0 -0
  106. package/dist/{chunk-TS7QZPD6.js.map → chunk-BTVG4NW3.js.map} +0 -0
  107. package/dist/{chunk-H762KDPN.js.map → chunk-C2T2YAFC.js.map} +0 -0
  108. package/dist/{chunk-BK36QQTT.js.map → chunk-CFCRZKL5.js.map} +0 -0
  109. package/dist/{chunk-COAGQGZA.js.map → chunk-DYZC2NKL.js.map} +0 -0
  110. package/dist/{chunk-5ZMA4N4W.js.map → chunk-FMFS42U2.js.map} +0 -0
  111. package/dist/{chunk-MY4CZ5PC.js.map → chunk-G6HGDG22.js.map} +0 -0
  112. package/dist/{chunk-KDSM2AIT.js.map → chunk-GR5GSCOD.js.map} +0 -0
  113. package/dist/{chunk-NJLLYK4S.js.map → chunk-HU6OBYMK.js.map} +0 -0
  114. package/dist/{chunk-FCKDOHEL.js.map → chunk-JUXUEEZW.js.map} +0 -0
  115. package/dist/{chunk-L6CMWQCC.js.map → chunk-JWX3OMRI.js.map} +0 -0
  116. package/dist/{chunk-ANH46M6K.js.map → chunk-L57JO525.js.map} +0 -0
  117. package/dist/{chunk-TSEVZMIE.js.map → chunk-LTXQ3A3C.js.map} +0 -0
  118. package/dist/{chunk-W27CC2AQ.js.map → chunk-MHURBJRD.js.map} +0 -0
  119. package/dist/{chunk-EICUAMNN.js.map → chunk-MWKWO5P2.js.map} +0 -0
  120. package/dist/{chunk-PMKM67BB.js.map → chunk-NDX5YJV7.js.map} +0 -0
  121. package/dist/{chunk-CWRW6X26.js.map → chunk-NZRNEP5G.js.map} +0 -0
  122. package/dist/{chunk-MJFCJZFD.js.map → chunk-QBTZKP6X.js.map} +0 -0
  123. package/dist/{chunk-VELCTMU2.js.map → chunk-RTXMZGBW.js.map} +0 -0
  124. package/dist/{chunk-R7BNGTUT.js.map → chunk-UMLZEYD5.js.map} +0 -0
  125. package/dist/{chunk-JKAMT5TC.js.map → chunk-YO4G7OZA.js.map} +0 -0
  126. package/dist/{chunk-3RFXFIBL.js.map → chunk-ZHY3VDHD.js.map} +0 -0
  127. package/dist/{index-c8f1e6e7.d.ts → index-5a5e5dc8.d.ts} +12 -12
@@ -1,12 +1,12 @@
1
- export { a as FilterOperator, b as SortType } from '../../chunk-P64QBDAO.js';
2
1
  import '../../chunk-4P2L7UJA.js';
2
+ export { a as FilterOperator, b as SortType } from '../../chunk-P64QBDAO.js';
3
3
  import { a as a$4 } from '../../chunk-E5SBGF5G.js';
4
4
  import { d, c } from '../../chunk-2W5FGLTC.js';
5
5
  import { h, a as a$6 } from '../../chunk-OF6623HG.js';
6
- import { a as a$5 } from '../../chunk-KDSM2AIT.js';
6
+ import { a as a$5 } from '../../chunk-GR5GSCOD.js';
7
7
  import '../../chunk-5J35UAV6.js';
8
- import { d as d$1 } from '../../chunk-W27CC2AQ.js';
9
- import '../../chunk-R7BNGTUT.js';
8
+ import { d as d$1 } from '../../chunk-MHURBJRD.js';
9
+ import '../../chunk-UMLZEYD5.js';
10
10
  import '../../chunk-4F2NKGF6.js';
11
11
  import '../../chunk-PRWQQJDL.js';
12
12
  import '../../chunk-SB7J43ND.js';
@@ -17,9 +17,9 @@ import { e } from '../../chunk-XUDTPZHF.js';
17
17
  import '../../chunk-UVPQR2Q2.js';
18
18
  import '../../chunk-RBTYTONM.js';
19
19
  import '../../chunk-I4PPSW36.js';
20
- import { a as a$3 } from '../../chunk-YHOVSR7P.js';
20
+ import { a as a$3 } from '../../chunk-6AORBPFU.js';
21
21
  import '../../chunk-CO2KQFUN.js';
22
- import { a } from '../../chunk-5ZMA4N4W.js';
22
+ import { a } from '../../chunk-FMFS42U2.js';
23
23
  import '../../chunk-Z6YXPKWP.js';
24
24
  import { a as a$8 } from '../../chunk-F6H765KA.js';
25
25
  import '../../chunk-F65ZXAGV.js';
@@ -1,7 +1,7 @@
1
- export { a as default } from '../../chunk-MJFCJZFD.js';
2
- import '../../chunk-TSEVZMIE.js';
1
+ export { a as default } from '../../chunk-QBTZKP6X.js';
2
+ import '../../chunk-LTXQ3A3C.js';
3
3
  import '../../chunk-KGLU4CR2.js';
4
- import '../../chunk-5ZMA4N4W.js';
4
+ import '../../chunk-FMFS42U2.js';
5
5
  import '../../chunk-Z6YXPKWP.js';
6
6
  import '../../chunk-TXJ45CNA.js';
7
7
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import { a } from '../../chunk-5ZMA4N4W.js';
1
+ import { a } from '../../chunk-FMFS42U2.js';
2
2
  import '../../chunk-Z6YXPKWP.js';
3
3
  import F from '@mui/material/Button';
4
4
  import i from '@mui/material/Stack';
@@ -1,4 +1,4 @@
1
- import { a as a$1 } from '../../chunk-5ZMA4N4W.js';
1
+ import { a as a$1 } from '../../chunk-FMFS42U2.js';
2
2
  import '../../chunk-Z6YXPKWP.js';
3
3
  import { a } from '../../chunk-E3R7W7GK.js';
4
4
  import u from '@mui/material/IconButton';
@@ -1,13 +1,13 @@
1
- export { r as ContentType, s as FileContentType, k as FileThumbnail, a as HelperText, b as MultiFilePreview, u as MultipleFileUpload, v as MultipleImageUpload, c as SingleFilePreview, w as SingleFileUpload, x as SingleImageUpload, y as UploadAvatar, z as UploadSimpleBox, n as compressImageWithoutCrop, m as convertToWebP, p as encodeFilenameForHeader, f as fileFormat, d as fileFormatByMimeType, e as fileFormatByName, i as fileNameByUrl, g as fileThumb, j as fileThumbnailClasses, h as fileTypeByUrl, o as getFileNameFromContentDisposition, l as isImageFile, q as useDropzoneUploader, t as useFileUploadService } from '../../chunk-CWRW6X26.js';
2
- import '../../chunk-TS7QZPD6.js';
3
- import '../../chunk-MJFCJZFD.js';
4
- import '../../chunk-TSEVZMIE.js';
1
+ export { r as ContentType, s as FileContentType, k as FileThumbnail, a as HelperText, b as MultiFilePreview, u as MultipleFileUpload, v as MultipleImageUpload, c as SingleFilePreview, w as SingleFileUpload, x as SingleImageUpload, y as UploadAvatar, z as UploadSimpleBox, n as compressImageWithoutCrop, m as convertToWebP, p as encodeFilenameForHeader, f as fileFormat, d as fileFormatByMimeType, e as fileFormatByName, i as fileNameByUrl, g as fileThumb, j as fileThumbnailClasses, h as fileTypeByUrl, o as getFileNameFromContentDisposition, l as isImageFile, q as useDropzoneUploader, t as useFileUploadService } from '../../chunk-NZRNEP5G.js';
2
+ import '../../chunk-BTVG4NW3.js';
3
+ import '../../chunk-QBTZKP6X.js';
4
+ import '../../chunk-LTXQ3A3C.js';
5
5
  import '../../chunk-KGLU4CR2.js';
6
- import '../../chunk-3RFXFIBL.js';
6
+ import '../../chunk-ZHY3VDHD.js';
7
7
  import '../../chunk-OF6623HG.js';
8
8
  import '../../chunk-5J35UAV6.js';
9
9
  import '../../chunk-6U5LS7MP.js';
10
- import '../../chunk-5ZMA4N4W.js';
10
+ import '../../chunk-FMFS42U2.js';
11
11
  import '../../chunk-Z6YXPKWP.js';
12
12
  import '../../chunk-HW6M33F3.js';
13
13
  import '../../chunk-XNKYJHNL.js';
@@ -1,10 +1,10 @@
1
1
  import { a as a$3 } from '../../chunk-J7RPKCIN.js';
2
2
  import { a as a$2 } from '../../chunk-XAPSXJZO.js';
3
3
  import { c } from '../../chunk-VGTQYKAC.js';
4
- import { a as a$7 } from '../../chunk-MY4CZ5PC.js';
5
- import { a as a$4 } from '../../chunk-YHOVSR7P.js';
4
+ import { a as a$7 } from '../../chunk-G6HGDG22.js';
5
+ import { a as a$4 } from '../../chunk-6AORBPFU.js';
6
6
  import { a } from '../../chunk-CO2KQFUN.js';
7
- import { a as a$6 } from '../../chunk-5ZMA4N4W.js';
7
+ import { a as a$6 } from '../../chunk-FMFS42U2.js';
8
8
  import '../../chunk-Z6YXPKWP.js';
9
9
  import { a as a$5 } from '../../chunk-F65ZXAGV.js';
10
10
  import { b } from '../../chunk-TXJ45CNA.js';
@@ -1,5 +1,5 @@
1
1
  import { a } from '../../chunk-UVPQR2Q2.js';
2
- import { a as a$2 } from '../../chunk-5ZMA4N4W.js';
2
+ import { a as a$2 } from '../../chunk-FMFS42U2.js';
3
3
  import '../../chunk-Z6YXPKWP.js';
4
4
  import { a as a$1 } from '../../chunk-F65ZXAGV.js';
5
5
  import L from '@mui/material/IconButton';
@@ -1,4 +1,4 @@
1
- export { a as default } from '../../chunk-JKAMT5TC.js';
2
- import '../../chunk-5ZMA4N4W.js';
1
+ export { a as default } from '../../chunk-YO4G7OZA.js';
2
+ import '../../chunk-FMFS42U2.js';
3
3
  import '../../chunk-Z6YXPKWP.js';
4
4
  //# sourceMappingURL=index.js.map
@@ -1,3 +1,3 @@
1
- export { a as default } from '../../chunk-5ZMA4N4W.js';
1
+ export { a as default } from '../../chunk-FMFS42U2.js';
2
2
  export { a as IconEnum } from '../../chunk-Z6YXPKWP.js';
3
3
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- export { a as default } from '../../chunk-TS7QZPD6.js';
2
- import '../../chunk-5ZMA4N4W.js';
1
+ export { a as default } from '../../chunk-BTVG4NW3.js';
2
+ import '../../chunk-FMFS42U2.js';
3
3
  import '../../chunk-Z6YXPKWP.js';
4
4
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
1
  import { a as a$2 } from '../../chunk-ESFOFEVL.js';
2
- import { a } from '../../chunk-TSEVZMIE.js';
3
- import { a as a$3 } from '../../chunk-5ZMA4N4W.js';
2
+ import { a } from '../../chunk-LTXQ3A3C.js';
3
+ import { a as a$3 } from '../../chunk-FMFS42U2.js';
4
4
  import '../../chunk-Z6YXPKWP.js';
5
5
  import { useState } from 'react';
6
6
  import M from '@mui/lab/LoadingButton';
@@ -1,6 +1,6 @@
1
- export { a as default } from '../../chunk-COAGQGZA.js';
1
+ export { a as default } from '../../chunk-DYZC2NKL.js';
2
2
  import '../../chunk-I3HQNMR3.js';
3
3
  import '../../chunk-OF6623HG.js';
4
- import '../../chunk-5ZMA4N4W.js';
4
+ import '../../chunk-FMFS42U2.js';
5
5
  import '../../chunk-Z6YXPKWP.js';
6
6
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
1
- export { a as default } from '../../chunk-PMKM67BB.js';
1
+ export { a as default } from '../../chunk-NDX5YJV7.js';
2
2
  import '../../chunk-5J35UAV6.js';
3
- import '../../chunk-5ZMA4N4W.js';
3
+ import '../../chunk-FMFS42U2.js';
4
4
  import '../../chunk-Z6YXPKWP.js';
5
5
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
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-NJLLYK4S.js';
4
- import '../../chunk-5ZMA4N4W.js';
3
+ import { o, a, f, k as k$1 } from '../../chunk-HU6OBYMK.js';
4
+ import '../../chunk-FMFS42U2.js';
5
5
  import '../../chunk-Z6YXPKWP.js';
6
6
  import '../../chunk-Y66XXBB3.js';
7
7
  import { Fragment } from 'react';
@@ -1,4 +1,4 @@
1
- export { a as default } from '../../chunk-H762KDPN.js';
2
- import '../../chunk-5ZMA4N4W.js';
1
+ export { a as default } from '../../chunk-C2T2YAFC.js';
2
+ import '../../chunk-FMFS42U2.js';
3
3
  import '../../chunk-Z6YXPKWP.js';
4
4
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- export { a as default } from '../../chunk-TSEVZMIE.js';
2
- import '../../chunk-5ZMA4N4W.js';
1
+ export { a as default } from '../../chunk-LTXQ3A3C.js';
2
+ import '../../chunk-FMFS42U2.js';
3
3
  import '../../chunk-Z6YXPKWP.js';
4
4
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
- export { a as default } from '../../chunk-YJYS2LQQ.js';
1
+ export { a as default } from '../../chunk-33SY23DN.js';
2
2
  import '../../chunk-CO2KQFUN.js';
3
- import '../../chunk-5ZMA4N4W.js';
3
+ import '../../chunk-FMFS42U2.js';
4
4
  import '../../chunk-Z6YXPKWP.js';
5
5
  import '../../chunk-LQRRMVFN.js';
6
6
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import { a } from '../../chunk-5ZMA4N4W.js';
1
+ import { a } from '../../chunk-FMFS42U2.js';
2
2
  import '../../chunk-Z6YXPKWP.js';
3
3
  import { memo } from 'react';
4
4
  import N from '@mui/material/Stack';
@@ -1,5 +1,5 @@
1
1
  import { n } from '../../chunk-55XSPNSX.js';
2
- import { a as a$1 } from '../../chunk-5ZMA4N4W.js';
2
+ import { a as a$1 } from '../../chunk-FMFS42U2.js';
3
3
  import '../../chunk-Z6YXPKWP.js';
4
4
  import a from '@mui/material/Typography';
5
5
  import i from '@mui/material/Stack';
@@ -1,5 +1,5 @@
1
1
  import { a as a$3 } from '../../chunk-CO2KQFUN.js';
2
- import { a as a$1 } from '../../chunk-5ZMA4N4W.js';
2
+ import { a as a$1 } from '../../chunk-FMFS42U2.js';
3
3
  import '../../chunk-Z6YXPKWP.js';
4
4
  import { a as a$2 } from '../../chunk-LQRRMVFN.js';
5
5
  import S from '@mui/material/MenuItem';
@@ -1,4 +1,4 @@
1
- import { a } from '../../chunk-5ZMA4N4W.js';
1
+ import { a } from '../../chunk-FMFS42U2.js';
2
2
  import '../../chunk-Z6YXPKWP.js';
3
3
  import { useState } from 'react';
4
4
  import { jsx } from 'react/jsx-runtime';
@@ -1,4 +1,4 @@
1
- export { a as default } from '../../chunk-R7BNGTUT.js';
2
- import '../../chunk-5ZMA4N4W.js';
1
+ export { a as default } from '../../chunk-UMLZEYD5.js';
2
+ import '../../chunk-FMFS42U2.js';
3
3
  import '../../chunk-Z6YXPKWP.js';
4
4
  //# sourceMappingURL=index.js.map
@@ -1,9 +1,9 @@
1
- export { a as default } from '../../chunk-JBYYU67F.js';
1
+ export { a as default } from '../../chunk-3YDQT7HF.js';
2
2
  import '../../chunk-RUABKHIV.js';
3
- import '../../chunk-R7BNGTUT.js';
3
+ import '../../chunk-UMLZEYD5.js';
4
4
  import '../../chunk-4F2NKGF6.js';
5
5
  import '../../chunk-6U5LS7MP.js';
6
- import '../../chunk-MY4CZ5PC.js';
7
- import '../../chunk-5ZMA4N4W.js';
6
+ import '../../chunk-G6HGDG22.js';
7
+ import '../../chunk-FMFS42U2.js';
8
8
  import '../../chunk-Z6YXPKWP.js';
9
9
  //# sourceMappingURL=index.js.map
@@ -1,9 +1,9 @@
1
- export { a as default } from '../../chunk-ANH46M6K.js';
1
+ export { a as default } from '../../chunk-L57JO525.js';
2
2
  import '../../chunk-6ZSTKYGL.js';
3
- import '../../chunk-R7BNGTUT.js';
3
+ import '../../chunk-UMLZEYD5.js';
4
4
  import '../../chunk-4F2NKGF6.js';
5
5
  import '../../chunk-NIQW2J3M.js';
6
- import '../../chunk-5ZMA4N4W.js';
6
+ import '../../chunk-FMFS42U2.js';
7
7
  import '../../chunk-Z6YXPKWP.js';
8
8
  import '../../chunk-F65ZXAGV.js';
9
9
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
1
1
  import { a as a$1 } from '../../chunk-RU3QT4Q3.js';
2
- import { a } from '../../chunk-5ZMA4N4W.js';
2
+ import { a } from '../../chunk-FMFS42U2.js';
3
3
  import '../../chunk-Z6YXPKWP.js';
4
4
  import '../../chunk-TXJ45CNA.js';
5
5
  import p from '@mui/material/Box';
@@ -1,4 +1,4 @@
1
- export { a as default } from '../../chunk-VPZL6AIF.js';
2
- import '../../chunk-5ZMA4N4W.js';
1
+ export { a as default } from '../../chunk-5NLFXSCK.js';
2
+ import '../../chunk-FMFS42U2.js';
3
3
  import '../../chunk-Z6YXPKWP.js';
4
4
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,44 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { FieldValues, FieldPath } from 'react-hook-form';
3
+ import { ReactNode } from 'react';
4
+
5
+ declare enum StepStatus {
6
+ PENDING = "PENDING",
7
+ COMPLETE = "COMPLETE",
8
+ ERROR = "ERROR"
9
+ }
10
+ interface StepDefinition<TValues extends FieldValues = FieldValues> {
11
+ key: string;
12
+ label: string;
13
+ requiredFields: FieldPath<TValues>[];
14
+ }
15
+ interface NavigatorStep {
16
+ key: string;
17
+ label: string;
18
+ status: StepStatus;
19
+ }
20
+ interface StepNavigatorValue {
21
+ currentStep: string;
22
+ steps: NavigatorStep[];
23
+ isComplete: boolean;
24
+ setCurrentStep: (key: string) => void;
25
+ nextStep: () => void;
26
+ prevStep: () => void;
27
+ }
28
+ interface StepNavigatorProviderProps<TValues extends FieldValues = FieldValues> {
29
+ definitions: StepDefinition<TValues>[];
30
+ initialStep?: string;
31
+ children: ReactNode;
32
+ }
33
+
34
+ declare const StepNavigatorProvider: <TValues extends FieldValues>({ definitions, initialStep, children, }: StepNavigatorProviderProps<TValues>) => react_jsx_runtime.JSX.Element;
35
+ declare const useStepNavigator: () => StepNavigatorValue;
36
+
37
+ interface StepNavigatorLayoutProps {
38
+ title: string;
39
+ children: ReactNode;
40
+ }
41
+
42
+ declare const StepNavigatorLayout: ({ title, children }: StepNavigatorLayoutProps) => react_jsx_runtime.JSX.Element;
43
+
44
+ export { NavigatorStep, StepDefinition, StepNavigatorLayout, StepNavigatorProvider, StepNavigatorValue, StepStatus, useStepNavigator };
@@ -0,0 +1,26 @@
1
+ import { a } from '../../chunk-DRGARBKB.js';
2
+ import { a as a$2 } from '../../chunk-BTVG4NW3.js';
3
+ import { a as a$5 } from '../../chunk-5J35UAV6.js';
4
+ import { a as a$1 } from '../../chunk-CO2KQFUN.js';
5
+ import { a as a$4 } from '../../chunk-FMFS42U2.js';
6
+ import '../../chunk-Z6YXPKWP.js';
7
+ import { a as a$3 } from '../../chunk-LQRRMVFN.js';
8
+ import { createContext, useState, useCallback, useContext, useMemo } from 'react';
9
+ import { useFormContext } from 'react-hook-form';
10
+ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
11
+ import Q from '@mui/material/Stack';
12
+ import Te from '@mui/material/ButtonBase';
13
+ import Pe from '@mui/material/Typography';
14
+ import { styled, alpha } from '@mui/material/styles';
15
+ import Be from '@mui/lab/Timeline';
16
+ import We from '@mui/lab/TimelineConnector';
17
+ import _e from '@mui/lab/TimelineDot';
18
+ import ze, { timelineItemClasses } from '@mui/lab/TimelineItem';
19
+ import qe from '@mui/material/Box';
20
+ import J from '@mui/material/CircularProgress';
21
+ import Ge from '@mui/lab/TimelineSeparator';
22
+
23
+ var M=(o=>(o.PENDING="PENDING",o.COMPLETE="COMPLETE",o.ERROR="ERROR",o))(M||{});var y=(e,t)=>t.split(".").reduce((r,o)=>{if(r!=null&&typeof r=="object")return r[o]},e),L=e=>Array.isArray(e)?e.length>0:e instanceof Date?!Number.isNaN(e.getTime()):typeof e=="boolean"?e:typeof e=="number"?!Number.isNaN(e):typeof e=="string"?e.trim()!=="":e!=null,ge=(e,t,r)=>e.requiredFields.some(n=>y(r,n)!==void 0)?"ERROR":e.requiredFields.length?e.requiredFields.every(n=>L(y(t,n)))?"COMPLETE":"PENDING":"PENDING",A=({definitions:e,values:t,errors:r})=>e.map(o=>({key:o.key,label:o.label,status:ge(o,t,r)})),B=({definitions:e,values:t,errors:r})=>e.every(({requiredFields:o})=>o.every(i=>L(y(t,i))&&y(r,i)===void 0)),x=(e,t)=>e==="ERROR"?{icon:"CANCEL_CIRCLE",color:"error.main"}:e==="COMPLETE"?{icon:"CHECKMARK_CIRCLE",color:"primary.main"}:t?{icon:"CHECKMARK_CIRCLE_ROUNDED",color:"primary.main"}:{icon:"CHECKMARK_CIRCLE_ROUNDED",color:"text.secondary"};var W=createContext(null),be=({definitions:e,initialStep:t,children:r})=>{let{watch:o,trigger:i,formState:{errors:n}}=useFormContext(),[a,m]=useState(t??e[0]?.key??""),u=o(),N=e.find(s=>s.key===a)??e[0],f=N?.key??"",me=A({definitions:e,values:u,errors:n}),de=B({definitions:e,values:u,errors:n}),E=useCallback(s=>{s?.requiredFields.length&&i(s.requiredFields,{shouldFocus:!1});},[i]),C=useCallback(s=>{s!==f&&E(N),m(s);},[f,N,E]),v=useCallback(s=>{let fe=e.findIndex(Se=>Se.key===f),R=e[fe+s];R&&C(R.key);},[e,f,C]),ce=useCallback(()=>v(1),[v]),ue=useCallback(()=>v(-1),[v]);return jsx(W.Provider,{value:{currentStep:f,steps:me,isComplete:de,setCurrentStep:C,nextStep:ce,prevStep:ue},children:r})},g=()=>{let e=useContext(W);if(!e)throw new Error("useStepNavigator must be used within a StepNavigatorProvider");return e};var Ve="Esta se\xE7\xE3o possui erros em algum dos campos do formul\xE1rio.",Ee=({surface:e,index:t,step:r,active:o,onSelect:i})=>{let{icon:n,color:a}=x(r.status,o),m=useCallback(()=>i(r.key),[i,r.key]),u=jsxs(Q,{component:Te,type:"button",disableRipple:!0,direction:"row",alignItems:"center",justifyContent:"flex-start",gap:1,onClick:m,"data-testid":`step-navigator-${e}-item-${t}`,children:[jsx(a$4,{icon:n,color:a,width:18}),jsx(Pe,{variant:"caption",color:"text.secondary",whiteSpace:"nowrap",mt:.2,children:r.label})]});return r.status==="ERROR"?jsx(a$5,{title:Ve,placement:"right",describeChild:!0,arrow:!0,children:u}):u},h=Ee;var we=({step:e})=>{let{icon:t,color:r}=x(e.status,!0);return jsxs(Q,{direction:"row",alignItems:"center",gap:1,"data-testid":"step-navigator-current-step",children:[jsx(a$4,{icon:t,color:r,width:18}),jsx(Pe,{variant:"subtitle2",color:"text.primary",children:e.label})]})},q=we;var K=styled(a)(({theme:e})=>({display:"flex",alignItems:"center",flexDirection:"row",justifyContent:"space-between",padding:e.spacing(1,1,1,2),border:`1px solid ${e.palette.divider}`,borderRadius:e.shape.borderRadius,boxShadow:"none",cursor:"pointer"})),z=styled(a$1)({"& .MuiPopover-paper":{width:"100%",margin:0}}),G=styled(a$2)(({theme:e})=>({transition:e.transitions.create("transform",{duration:e.transitions.duration.short}),transform:"rotate(0deg)","&.is-open":{transform:"rotate(180deg)"}}));var Le=()=>{let{steps:e,currentStep:t,setCurrentStep:r}=g(),o=a$3(),i=e.find(a=>a.key===t),n=useCallback(a=>{r(a),o.onClose();},[r,o]);return i?jsxs(Fragment,{children:[jsxs(K,{onClick:o.onOpen,"data-testid":"step-navigator-navbar",children:[jsx(q,{step:i}),jsx(G,{label:"Abrir etapas",className:o.open?"is-open":"",children:jsx(a$4,{icon:"ARROW_DOWN_SIMPLE",color:"text.secondary"})})]}),jsx(z,{open:o.open,onClose:o.onClose,disabledArrow:!0,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:jsx(Q,{gap:1.5,children:e.map((a,m)=>jsx(h,{surface:"navbar",index:m,step:a,active:a.key===t,onSelect:n},m))})})]}):null},H=Le;var X=styled(Q)(({theme:e})=>({maxWidth:300,flexShrink:0,[e.breakpoints.down("md")]:{display:"none"}})),Y=styled(Q)(({theme:e})=>({position:"sticky",top:"calc(var(--sticky-header-height, 71px))",width:300,height:"calc(100vh - var(--sticky-header-height, 71px))",padding:e.spacing(3),zIndex:10})),Z=styled(Be)(()=>({[`& .${timelineItemClasses.root}`]:{minHeight:0},[`& .${timelineItemClasses.root}:before`]:{flex:0,padding:0}})),j=styled(_e)(()=>({width:22,padding:0,background:"unset"})),ee=styled(We)(({theme:e})=>({margin:-10,borderWidth:1,height:24,borderStyle:"dashed",background:"unset",borderColor:alpha(e.palette.grey[800],.9)})),te=styled(qe)(()=>({position:"relative",display:"inline-flex",width:20,height:20})),re=styled(J)(({theme:e})=>({color:e.palette.text.primary,position:"absolute"})),oe=styled(J)(({theme:e})=>({color:e.palette.primary.main,position:"absolute"}));var $e=({index:e,step:t,active:r,last:o,onSelect:i})=>jsx(ze,{children:jsxs(Ge,{children:[jsx(j,{children:jsx(h,{surface:"sidebar",index:e,step:t,active:r,onSelect:i})}),!o&&jsx(ee,{})]})}),ie=$e;var Qe=({title:e})=>{let{steps:t,currentStep:r,setCurrentStep:o}=g(),i=useMemo(()=>t.length?t.filter(a=>a.status==="COMPLETE").length/t.length*100:0,[t]);return jsx(X,{"data-testid":"step-navigator-sidebar",children:jsxs(Y,{children:[jsxs(Q,{direction:"row",alignItems:"center",gap:1.5,children:[jsxs(te,{children:[jsx(re,{variant:"determinate",value:100,size:20,thickness:4}),jsx(oe,{variant:"determinate",value:i,size:20,thickness:4})]}),jsx(Pe,{variant:"subtitle1",color:"text.primary",mt:.1,children:e})]}),jsx(Q,{pl:1,children:jsx(Z,{children:t.map((n,a)=>jsx(ie,{index:a,step:n,active:n.key===r,last:a===t.length-1,onSelect:o},a))})})]})})},ne=Qe;var se=styled(Q)(({theme:e})=>({display:"block",padding:e.spacing(3,2,0),[e.breakpoints.up("md")]:{display:"none"}}));var Ze=({title:e,children:t})=>jsxs(Q,{direction:{xs:"column",md:"row"},flex:1,minWidth:0,children:[jsx(ne,{title:e}),jsxs(Q,{flex:1,minWidth:0,children:[jsx(se,{children:jsx(H,{})}),t]})]}),je=Ze;
24
+
25
+ export { je as StepNavigatorLayout, be as StepNavigatorProvider, M as StepStatus, g as useStepNavigator };
26
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/StepNavigator/context.tsx","../../../src/components/StepNavigator/types.ts","../../../src/components/StepNavigator/utils.ts","../../../src/components/StepNavigator/Layout.tsx","../../../src/components/StepNavigator/Navbar/index.tsx","../../../src/components/StepNavigator/Item/index.tsx","../../../src/components/StepNavigator/Navbar/CurrentStep.tsx","../../../src/components/StepNavigator/Navbar/styles.ts","../../../src/components/StepNavigator/Sidebar/index.tsx","../../../src/components/StepNavigator/Sidebar/styles.ts","../../../src/components/StepNavigator/Sidebar/TimelineStep.tsx","../../../src/components/StepNavigator/styles.ts"],"names":["createContext","useCallback","useContext","useState","useFormContext","StepStatus","getNestedValue","object","path","accumulator","key","isFilled","value","getStepStatus","definition","values","errors","field","buildSteps","definitions","areRequiredFieldsSatisfied","requiredFields","getStepIcon","status","active","jsx","StepNavigatorContext","StepNavigatorProvider","initialStep","children","watch","trigger","selectedStep","setSelectedStep","activeDefinition","currentStep","steps","isComplete","validateStep","goTo","goBy","offset","currentIndex","target","nextStep","prevStep","useStepNavigator","context","Stack","ButtonBase","Typography","jsxs","ERROR_MESSAGE","StepNavigatorItem","surface","index","step","onSelect","icon","color","handleSelect","content","Icon_default","Tooltip_default","Item_default","CurrentStep","CurrentStep_default","styled","Card","SimpleCard_default","theme","Popover","MenuPopover_default","ToggleButton","IconButton_default","Fragment","StepNavigatorNavbar","setCurrentStep","popover","usePopover_default","activeStep","Navbar_default","useMemo","MuiTimeline","MuiTimelineConnector","MuiTimelineDot","timelineItemClasses","Box","CircularProgress","alpha","Sidebar","Content","Timeline","TimelineDot","TimelineConnector","ProgressWrapper","ProgressBackground","ProgressForeground","TimelineItem","TimelineSeparator","TimelineStep","last","TimelineStep_default","StepNavigatorSidebar","title","progressPercentage","Sidebar_default","NavbarSlot","StepNavigatorLayout","Layout_default"],"mappings":"wSAAA,OAAS,iBAAAA,GAAe,eAAAC,EAAa,cAAAC,GAAY,YAAAC,OAAgB,QACjE,OAAsB,kBAAAC,OAAsB,kBCErC,IAAKC,OACVA,EAAA,QAAU,UACVA,EAAA,SAAW,WACXA,EAAA,MAAQ,QAHEA,OAAA,ICML,IAAMC,EAAiB,CAACC,EAAiBC,IAC9CA,EAAK,MAAM,GAAG,EAAE,OAAgB,CAACC,EAAaC,IAAQ,CACpD,GAAiCD,GAAgB,MAI7C,OAAOA,GAAgB,SAI3B,OAAQA,EAAwCC,CAAG,CACrD,EAAGH,CAAM,EAEEI,EAAYC,GACnB,MAAM,QAAQA,CAAK,EACdA,EAAM,OAAS,EAGpBA,aAAiB,KACZ,CAAC,OAAO,MAAMA,EAAM,QAAQ,CAAC,EAGlC,OAAOA,GAA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A3E,CAAS,IAE3CsB,GAACH,GAAA,CAAM,UAAW,CAAE,GAAI,SAAU,GAAI,KAAM,EAAG,KAAM,EAAG,SAAU,EAChE,UAAAvB,EAACiF,GAAA,CAAQ,MAAOF,EAAO,EAEvBrD,GAACH,GAAA,CAAM,KAAM,EAAG,SAAU,EACxB,UAAAvB,EAACkF,GAAA,CACC,SAAAlF,EAACwD,EAAA,EAAO,EACV,EAECpD,GACH,GACF,EAIGgF,GAAQD","sourcesContent":["import { createContext, useCallback, useContext, useState } from 'react';\nimport { FieldValues, useFormContext } from 'react-hook-form';\n\nimport {\n StepDefinition,\n StepNavigatorProviderProps,\n StepNavigatorValue,\n} from './types';\nimport { areRequiredFieldsSatisfied, buildSteps } from './utils';\n\nconst StepNavigatorContext = createContext<StepNavigatorValue | null>(null);\n\nconst StepNavigatorProvider = <TValues extends FieldValues>({\n definitions,\n initialStep,\n children,\n}: StepNavigatorProviderProps<TValues>) => {\n const {\n watch,\n trigger,\n formState: { errors },\n } = useFormContext<TValues>();\n\n const [selectedStep, setSelectedStep] = useState(\n initialStep ?? definitions[0]?.key ?? '',\n );\n\n const values = watch() as Partial<TValues>;\n\n const activeDefinition =\n definitions.find(definition => definition.key === selectedStep) ??\n definitions[0];\n\n const currentStep = activeDefinition?.key ?? '';\n\n const steps = buildSteps({ definitions, values, errors });\n\n const isComplete = areRequiredFieldsSatisfied({\n definitions,\n values,\n errors,\n });\n\n const validateStep = useCallback(\n (definition?: StepDefinition<TValues>) => {\n if (!definition?.requiredFields.length) return;\n\n void trigger(definition.requiredFields, { shouldFocus: false });\n },\n [trigger],\n );\n\n const goTo = useCallback(\n (key: string) => {\n if (key !== currentStep) {\n validateStep(activeDefinition);\n }\n\n setSelectedStep(key);\n },\n [currentStep, activeDefinition, validateStep],\n );\n\n const goBy = useCallback(\n (offset: number) => {\n const currentIndex = definitions.findIndex(\n definition => definition.key === currentStep,\n );\n const target = definitions[currentIndex + offset];\n\n if (!target) return;\n\n goTo(target.key);\n },\n [definitions, currentStep, goTo],\n );\n\n const nextStep = useCallback(() => goBy(1), [goBy]);\n\n const prevStep = useCallback(() => goBy(-1), [goBy]);\n\n return (\n <StepNavigatorContext.Provider\n value={{\n currentStep,\n steps,\n isComplete,\n setCurrentStep: goTo,\n nextStep,\n prevStep,\n }}\n >\n {children}\n </StepNavigatorContext.Provider>\n );\n};\n\nconst useStepNavigator = (): StepNavigatorValue => {\n const context = useContext(StepNavigatorContext);\n\n if (!context) {\n throw new Error(\n 'useStepNavigator must be used within a StepNavigatorProvider',\n );\n }\n\n return context;\n};\n\nexport { StepNavigatorProvider, useStepNavigator };\n","import { ReactNode } from 'react';\nimport type { FieldErrors, FieldPath, FieldValues } from 'react-hook-form';\n\nexport enum StepStatus {\n PENDING = 'PENDING',\n COMPLETE = 'COMPLETE',\n ERROR = 'ERROR',\n}\n\nexport interface StepDefinition<TValues extends FieldValues = FieldValues> {\n key: string;\n label: string;\n requiredFields: FieldPath<TValues>[];\n}\n\nexport interface NavigatorStep {\n key: string;\n label: string;\n status: StepStatus;\n}\n\nexport interface StepNavigatorValue {\n currentStep: string;\n steps: NavigatorStep[];\n isComplete: boolean;\n setCurrentStep: (key: string) => void;\n nextStep: () => void;\n prevStep: () => void;\n}\n\nexport interface StepNavigatorProviderProps<\n TValues extends FieldValues = FieldValues,\n> {\n definitions: StepDefinition<TValues>[];\n initialStep?: string;\n children: ReactNode;\n}\n\nexport interface StepValidationInput<\n TValues extends FieldValues = FieldValues,\n> {\n definitions: StepDefinition<TValues>[];\n values: Partial<TValues>;\n errors: FieldErrors<TValues>;\n}\n","import type { FieldErrors, FieldValues } from 'react-hook-form';\n\nimport {\n NavigatorStep,\n StepDefinition,\n StepStatus,\n StepValidationInput,\n} from './types';\n\nexport const getNestedValue = (object: unknown, path: string): unknown =>\n path.split('.').reduce<unknown>((accumulator, key) => {\n if (accumulator === undefined || accumulator === null) {\n return undefined;\n }\n\n if (typeof accumulator !== 'object') {\n return undefined;\n }\n\n return (accumulator as Record<string, unknown>)[key];\n }, object);\n\nexport const isFilled = (value: unknown) => {\n if (Array.isArray(value)) {\n return value.length > 0;\n }\n\n if (value instanceof Date) {\n return !Number.isNaN(value.getTime());\n }\n\n if (typeof value === 'boolean') {\n return value;\n }\n\n if (typeof value === 'number') {\n return !Number.isNaN(value);\n }\n\n if (typeof value === 'string') {\n return value.trim() !== '';\n }\n\n return value !== undefined && value !== null;\n};\n\nconst getStepStatus = <TValues extends FieldValues>(\n definition: StepDefinition<TValues>,\n values: Partial<TValues>,\n errors: FieldErrors<TValues>,\n): StepStatus => {\n const hasErrors = definition.requiredFields.some(\n field => getNestedValue(errors, field) !== undefined,\n );\n\n if (hasErrors) {\n return StepStatus.ERROR;\n }\n\n if (!definition.requiredFields.length) {\n return StepStatus.PENDING;\n }\n\n const allFilled = definition.requiredFields.every(field =>\n isFilled(getNestedValue(values, field)),\n );\n\n return allFilled ? StepStatus.COMPLETE : StepStatus.PENDING;\n};\n\nexport const buildSteps = <TValues extends FieldValues>({\n definitions,\n values,\n errors,\n}: StepValidationInput<TValues>): NavigatorStep[] =>\n definitions.map(definition => ({\n key: definition.key,\n label: definition.label,\n status: getStepStatus(definition, values, errors),\n }));\n\nexport const areRequiredFieldsSatisfied = <TValues extends FieldValues>({\n definitions,\n values,\n errors,\n}: StepValidationInput<TValues>) =>\n definitions.every(({ requiredFields }) =>\n requiredFields.every(\n field =>\n isFilled(getNestedValue(values, field)) &&\n getNestedValue(errors, field) === undefined,\n ),\n );\n\nexport const getStepIcon = (status: StepStatus, active: boolean) => {\n if (status === StepStatus.ERROR) {\n return { icon: 'CANCEL_CIRCLE', color: 'error.main' } as const;\n }\n\n if (status === StepStatus.COMPLETE) {\n return { icon: 'CHECKMARK_CIRCLE', color: 'primary.main' } as const;\n }\n\n if (active) {\n return { icon: 'CHECKMARK_CIRCLE_ROUNDED', color: 'primary.main' } as const;\n }\n\n return { icon: 'CHECKMARK_CIRCLE_ROUNDED', color: 'text.secondary' } as const;\n};\n","import Stack from '@mui/material/Stack';\n\nimport Navbar from './Navbar';\nimport { StepNavigatorLayoutProps } from './props';\nimport Sidebar from './Sidebar';\nimport { NavbarSlot } from './styles';\n\nconst StepNavigatorLayout = ({ title, children }: StepNavigatorLayoutProps) => {\n return (\n <Stack direction={{ xs: 'column', md: 'row' }} flex={1} minWidth={0}>\n <Sidebar title={title} />\n\n <Stack flex={1} minWidth={0}>\n <NavbarSlot>\n <Navbar />\n </NavbarSlot>\n\n {children}\n </Stack>\n </Stack>\n );\n};\n\nexport default StepNavigatorLayout;\n","import { useCallback } from 'react';\nimport Stack from '@mui/material/Stack';\n\nimport Icon from 'components/Icon';\nimport usePopover from 'hooks/usePopover';\n\nimport { useStepNavigator } from '../context';\nimport Item from '../Item';\n\nimport CurrentStep from './CurrentStep';\nimport { Card, Popover, ToggleButton } from './styles';\n\nconst StepNavigatorNavbar = () => {\n const { steps, currentStep, setCurrentStep } = useStepNavigator();\n const popover = usePopover();\n\n const activeStep = steps.find(step => step.key === currentStep);\n\n const handleSelect = useCallback(\n (key: string) => {\n setCurrentStep(key);\n popover.onClose();\n },\n [setCurrentStep, popover],\n );\n\n if (!activeStep) return null;\n\n return (\n <>\n <Card onClick={popover.onOpen} data-testid=\"step-navigator-navbar\">\n <CurrentStep step={activeStep} />\n\n <ToggleButton\n label=\"Abrir etapas\"\n className={popover.open ? 'is-open' : ''}\n >\n <Icon icon=\"ARROW_DOWN_SIMPLE\" color=\"text.secondary\" />\n </ToggleButton>\n </Card>\n\n <Popover\n open={popover.open}\n onClose={popover.onClose}\n disabledArrow\n anchorOrigin={{ vertical: 'bottom', horizontal: 'right' }}\n transformOrigin={{ vertical: 'top', horizontal: 'right' }}\n >\n <Stack gap={1.5}>\n {steps.map((step, index) => (\n <Item\n key={index}\n surface=\"navbar\"\n index={index}\n step={step}\n active={step.key === currentStep}\n onSelect={handleSelect}\n />\n ))}\n </Stack>\n </Popover>\n </>\n );\n};\n\nexport default StepNavigatorNavbar;\n","import { useCallback } from 'react';\nimport ButtonBase from '@mui/material/ButtonBase';\nimport Stack from '@mui/material/Stack';\nimport Typography from '@mui/material/Typography';\n\nimport Icon from 'components/Icon';\nimport Tooltip from 'components/Tooltip';\n\nimport { StepStatus } from '../types';\nimport { getStepIcon } from '../utils';\n\nimport { StepNavigatorItemProps } from './props';\n\nconst ERROR_MESSAGE =\n 'Esta seção possui erros em algum dos campos do formulário.';\n\nconst StepNavigatorItem = ({\n surface,\n index,\n step,\n active,\n onSelect,\n}: StepNavigatorItemProps) => {\n const { icon, color } = getStepIcon(step.status, active);\n\n const handleSelect = useCallback(\n () => onSelect(step.key),\n [onSelect, step.key],\n );\n\n const content = (\n <Stack\n component={ButtonBase}\n type=\"button\"\n disableRipple\n direction=\"row\"\n alignItems=\"center\"\n justifyContent=\"flex-start\"\n gap={1}\n onClick={handleSelect}\n data-testid={`step-navigator-${surface}-item-${index}`}\n >\n <Icon icon={icon} color={color} width={18} />\n\n <Typography\n variant=\"caption\"\n color=\"text.secondary\"\n whiteSpace=\"nowrap\"\n mt={0.2}\n >\n {step.label}\n </Typography>\n </Stack>\n );\n\n if (step.status === StepStatus.ERROR) {\n return (\n <Tooltip title={ERROR_MESSAGE} placement=\"right\" describeChild arrow>\n {content}\n </Tooltip>\n );\n }\n\n return content;\n};\n\nexport default StepNavigatorItem;\n","import Stack from '@mui/material/Stack';\nimport Typography from '@mui/material/Typography';\n\nimport Icon from 'components/Icon';\n\nimport { getStepIcon } from '../utils';\n\nimport { CurrentStepProps } from './props';\n\nconst CurrentStep = ({ step }: CurrentStepProps) => {\n const { icon, color } = getStepIcon(step.status, true);\n\n return (\n <Stack\n direction=\"row\"\n alignItems=\"center\"\n gap={1}\n data-testid=\"step-navigator-current-step\"\n >\n <Icon icon={icon} color={color} width={18} />\n\n <Typography variant=\"subtitle2\" color=\"text.primary\">\n {step.label}\n </Typography>\n </Stack>\n );\n};\n\nexport default CurrentStep;\n","import { styled } from '@mui/material/styles';\n\nimport IconButton from 'components/IconButton';\nimport MenuPopover from 'components/MenuPopover';\nimport SimpleCard from 'components/SimpleCard';\n\nexport const Card = styled(SimpleCard)(({ theme }) => ({\n display: 'flex',\n alignItems: 'center',\n flexDirection: 'row',\n justifyContent: 'space-between',\n padding: theme.spacing(1, 1, 1, 2),\n border: `1px solid ${theme.palette.divider}`,\n borderRadius: theme.shape.borderRadius,\n boxShadow: 'none',\n cursor: 'pointer',\n}));\n\nexport const Popover = styled(MenuPopover)({\n '& .MuiPopover-paper': {\n width: '100%',\n margin: 0,\n },\n});\n\nexport const ToggleButton = styled(IconButton)(({ theme }) => ({\n transition: theme.transitions.create('transform', {\n duration: theme.transitions.duration.short,\n }),\n transform: 'rotate(0deg)',\n\n '&.is-open': {\n transform: 'rotate(180deg)',\n },\n}));\n","import { useMemo } from 'react';\nimport Stack from '@mui/material/Stack';\nimport Typography from '@mui/material/Typography';\n\nimport { useStepNavigator } from '../context';\nimport { StepStatus } from '../types';\n\nimport { StepNavigatorSidebarProps } from './props';\nimport {\n Content,\n ProgressBackground,\n ProgressForeground,\n ProgressWrapper,\n Sidebar,\n Timeline,\n} from './styles';\nimport TimelineStep from './TimelineStep';\n\nconst StepNavigatorSidebar = ({ title }: StepNavigatorSidebarProps) => {\n const { steps, currentStep, setCurrentStep } = useStepNavigator();\n\n const progressPercentage = useMemo(() => {\n if (!steps.length) return 0;\n\n const completedSteps = steps.filter(\n step => step.status === StepStatus.COMPLETE,\n ).length;\n\n return (completedSteps / steps.length) * 100;\n }, [steps]);\n\n return (\n <Sidebar data-testid=\"step-navigator-sidebar\">\n <Content>\n <Stack direction=\"row\" alignItems=\"center\" gap={1.5}>\n <ProgressWrapper>\n <ProgressBackground\n variant=\"determinate\"\n value={100}\n size={20}\n thickness={4}\n />\n\n <ProgressForeground\n variant=\"determinate\"\n value={progressPercentage}\n size={20}\n thickness={4}\n />\n </ProgressWrapper>\n\n <Typography variant=\"subtitle1\" color=\"text.primary\" mt={0.1}>\n {title}\n </Typography>\n </Stack>\n\n <Stack pl={1}>\n <Timeline>\n {steps.map((step, index) => (\n <TimelineStep\n key={index}\n index={index}\n step={step}\n active={step.key === currentStep}\n last={index === steps.length - 1}\n onSelect={setCurrentStep}\n />\n ))}\n </Timeline>\n </Stack>\n </Content>\n </Sidebar>\n );\n};\n\nexport default StepNavigatorSidebar;\n","import MuiTimeline from '@mui/lab/Timeline';\nimport MuiTimelineConnector from '@mui/lab/TimelineConnector';\nimport MuiTimelineDot from '@mui/lab/TimelineDot';\nimport { timelineItemClasses } from '@mui/lab/TimelineItem';\nimport Box from '@mui/material/Box';\nimport CircularProgress from '@mui/material/CircularProgress';\nimport Stack from '@mui/material/Stack';\nimport { alpha, styled } from '@mui/material/styles';\n\nexport const Sidebar = styled(Stack)(({ theme }) => ({\n maxWidth: 300,\n flexShrink: 0,\n\n [theme.breakpoints.down('md')]: {\n display: 'none',\n },\n}));\n\nexport const Content = styled(Stack)(({ theme }) => ({\n position: 'sticky',\n top: 'calc(var(--sticky-header-height, 71px))',\n width: 300,\n height: 'calc(100vh - var(--sticky-header-height, 71px))',\n padding: theme.spacing(3),\n zIndex: 10,\n}));\n\nexport const Timeline = styled(MuiTimeline)(() => ({\n [`& .${timelineItemClasses.root}`]: {\n minHeight: 0,\n },\n\n [`& .${timelineItemClasses.root}:before`]: {\n flex: 0,\n padding: 0,\n },\n}));\n\nexport const TimelineDot = styled(MuiTimelineDot)(() => ({\n width: 22,\n padding: 0,\n background: 'unset',\n}));\n\nexport const TimelineConnector = styled(MuiTimelineConnector)(({ theme }) => ({\n margin: -10,\n borderWidth: 1,\n height: 24,\n borderStyle: 'dashed',\n background: 'unset',\n borderColor: alpha(theme.palette.grey[800], 0.9),\n}));\n\nexport const ProgressWrapper = styled(Box)(() => ({\n position: 'relative',\n display: 'inline-flex',\n width: 20,\n height: 20,\n}));\n\nexport const ProgressBackground = styled(CircularProgress)(({ theme }) => ({\n color: theme.palette.text.primary,\n position: 'absolute',\n}));\n\nexport const ProgressForeground = styled(CircularProgress)(({ theme }) => ({\n color: theme.palette.primary.main,\n position: 'absolute',\n}));\n","import TimelineItem from '@mui/lab/TimelineItem';\nimport TimelineSeparator from '@mui/lab/TimelineSeparator';\n\nimport Item from '../Item';\n\nimport { TimelineStepProps } from './props';\nimport { TimelineConnector, TimelineDot } from './styles';\n\nconst TimelineStep = ({\n index,\n step,\n active,\n last,\n onSelect,\n}: TimelineStepProps) => (\n <TimelineItem>\n <TimelineSeparator>\n <TimelineDot>\n <Item\n surface=\"sidebar\"\n index={index}\n step={step}\n active={active}\n onSelect={onSelect}\n />\n </TimelineDot>\n\n {!last && <TimelineConnector />}\n </TimelineSeparator>\n </TimelineItem>\n);\n\nexport default TimelineStep;\n","import Stack from '@mui/material/Stack';\nimport { styled } from '@mui/material/styles';\n\nexport const NavbarSlot = styled(Stack)(({ theme }) => ({\n display: 'block',\n padding: theme.spacing(3, 2, 0),\n\n [theme.breakpoints.up('md')]: {\n display: 'none',\n },\n}));\n"]}
@@ -1,7 +1,7 @@
1
- import { a as a$4 } from '../../chunk-BT3FTBTT.js';
2
1
  import { a as a$3 } from '../../chunk-P2QZJ57W.js';
2
+ import { a as a$4 } from '../../chunk-BT3FTBTT.js';
3
3
  import { a as a$2 } from '../../chunk-XAPSXJZO.js';
4
- import { a as a$1 } from '../../chunk-5ZMA4N4W.js';
4
+ import { a as a$1 } from '../../chunk-FMFS42U2.js';
5
5
  import '../../chunk-Z6YXPKWP.js';
6
6
  import '../../chunk-FJBC6QA5.js';
7
7
  import '../../chunk-POTVACYB.js';
@@ -1,4 +1,4 @@
1
- import { a } from '../../chunk-5ZMA4N4W.js';
1
+ import { a } from '../../chunk-FMFS42U2.js';
2
2
  import '../../chunk-Z6YXPKWP.js';
3
3
  import s from '@mui/material/Box';
4
4
  import S from '@mui/material/Stack';
@@ -1,4 +1,4 @@
1
- import { a } from '../../chunk-5ZMA4N4W.js';
1
+ import { a } from '../../chunk-FMFS42U2.js';
2
2
  import '../../chunk-Z6YXPKWP.js';
3
3
  import n from '@mui/material/Stack';
4
4
  import { styled, alpha } from '@mui/material/styles';
@@ -1,8 +1,8 @@
1
1
  import { a as a$2 } from '../../chunk-6ZSTKYGL.js';
2
- import { a } from '../../chunk-R7BNGTUT.js';
2
+ import { a } from '../../chunk-UMLZEYD5.js';
3
3
  import { a as a$1 } from '../../chunk-4F2NKGF6.js';
4
4
  import '../../chunk-NIQW2J3M.js';
5
- import { a as a$4 } from '../../chunk-5ZMA4N4W.js';
5
+ import { a as a$4 } from '../../chunk-FMFS42U2.js';
6
6
  import '../../chunk-Z6YXPKWP.js';
7
7
  import { a as a$3 } from '../../chunk-F65ZXAGV.js';
8
8
  import { useState } from 'react';
@@ -2,7 +2,7 @@ import { d } from '../../chunk-JNDZPNQJ.js';
2
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
- import { a as a$4 } from '../../chunk-5ZMA4N4W.js';
5
+ import { a as a$4 } from '../../chunk-FMFS42U2.js';
6
6
  import '../../chunk-Z6YXPKWP.js';
7
7
  import { a as a$1 } from '../../chunk-LQRRMVFN.js';
8
8
  import '../../chunk-Y66XXBB3.js';
@@ -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-NJLLYK4S.js';
2
- import '../../chunk-5ZMA4N4W.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-HU6OBYMK.js';
2
+ import '../../chunk-FMFS42U2.js';
3
3
  import '../../chunk-Z6YXPKWP.js';
4
4
  import '../../chunk-Y66XXBB3.js';
5
5
  //# sourceMappingURL=index.js.map
@@ -2,9 +2,9 @@ import { a as a$3 } from '../../../chunk-MSCOIJQ5.js';
2
2
  import { a } from '../../../chunk-X64QHBVQ.js';
3
3
  import { a as a$1 } from '../../../chunk-P2QZJ57W.js';
4
4
  import '../../../chunk-RTC7H5E5.js';
5
- import { a as a$2 } from '../../../chunk-BK36QQTT.js';
6
- import '../../../chunk-YHOVSR7P.js';
7
- import '../../../chunk-5ZMA4N4W.js';
5
+ import { a as a$2 } from '../../../chunk-CFCRZKL5.js';
6
+ import '../../../chunk-6AORBPFU.js';
7
+ import '../../../chunk-FMFS42U2.js';
8
8
  import '../../../chunk-Z6YXPKWP.js';
9
9
  import L from '@mui/material/CircularProgress';
10
10
  import g from '@mui/material/InputAdornment';
@@ -1,5 +1,5 @@
1
- export { a as default } from '../../../chunk-BK36QQTT.js';
2
- import '../../../chunk-YHOVSR7P.js';
3
- import '../../../chunk-5ZMA4N4W.js';
1
+ export { a as default } from '../../../chunk-CFCRZKL5.js';
2
+ import '../../../chunk-6AORBPFU.js';
3
+ import '../../../chunk-FMFS42U2.js';
4
4
  import '../../../chunk-Z6YXPKWP.js';
5
5
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
1
- import { a } from '../../../chunk-L6CMWQCC.js';
2
- import '../../../chunk-5ZMA4N4W.js';
1
+ import { a } from '../../../chunk-JWX3OMRI.js';
2
+ import '../../../chunk-FMFS42U2.js';
3
3
  import '../../../chunk-Z6YXPKWP.js';
4
4
  import '../../../chunk-LQRRMVFN.js';
5
5
  import { useFormContext, Controller } from 'react-hook-form';
@@ -1,13 +1,13 @@
1
- import { x, u, v, w } from '../../../chunk-CWRW6X26.js';
2
- import '../../../chunk-TS7QZPD6.js';
3
- import '../../../chunk-MJFCJZFD.js';
4
- import '../../../chunk-TSEVZMIE.js';
1
+ import { x, u, v, w } from '../../../chunk-NZRNEP5G.js';
2
+ import '../../../chunk-BTVG4NW3.js';
3
+ import '../../../chunk-QBTZKP6X.js';
4
+ import '../../../chunk-LTXQ3A3C.js';
5
5
  import '../../../chunk-KGLU4CR2.js';
6
- import '../../../chunk-3RFXFIBL.js';
6
+ import '../../../chunk-ZHY3VDHD.js';
7
7
  import '../../../chunk-OF6623HG.js';
8
8
  import '../../../chunk-5J35UAV6.js';
9
9
  import '../../../chunk-6U5LS7MP.js';
10
- import '../../../chunk-5ZMA4N4W.js';
10
+ import '../../../chunk-FMFS42U2.js';
11
11
  import '../../../chunk-Z6YXPKWP.js';
12
12
  import '../../../chunk-HW6M33F3.js';
13
13
  import '../../../chunk-XNKYJHNL.js';
@@ -1,7 +1,7 @@
1
- import { a } from '../../../chunk-COAGQGZA.js';
1
+ import { a } from '../../../chunk-DYZC2NKL.js';
2
2
  import '../../../chunk-I3HQNMR3.js';
3
3
  import '../../../chunk-OF6623HG.js';
4
- import '../../../chunk-5ZMA4N4W.js';
4
+ import '../../../chunk-FMFS42U2.js';
5
5
  import '../../../chunk-Z6YXPKWP.js';
6
6
  import { useFormContext, Controller } from 'react-hook-form';
7
7
  import { jsx } from 'react/jsx-runtime';
@@ -1,6 +1,6 @@
1
1
  import { a } from '../../../chunk-P2QZJ57W.js';
2
2
  import { n } from '../../../chunk-55XSPNSX.js';
3
- import { a as a$1 } from '../../../chunk-5ZMA4N4W.js';
3
+ import { a as a$1 } from '../../../chunk-FMFS42U2.js';
4
4
  import '../../../chunk-Z6YXPKWP.js';
5
5
  import { useState } from 'react';
6
6
  import { useFormContext } from 'react-hook-form';
@@ -1,10 +1,10 @@
1
- import { a } from '../../../chunk-JBYYU67F.js';
1
+ import { a } from '../../../chunk-3YDQT7HF.js';
2
2
  import '../../../chunk-RUABKHIV.js';
3
- import '../../../chunk-R7BNGTUT.js';
3
+ import '../../../chunk-UMLZEYD5.js';
4
4
  import '../../../chunk-4F2NKGF6.js';
5
5
  import '../../../chunk-6U5LS7MP.js';
6
- import '../../../chunk-MY4CZ5PC.js';
7
- import '../../../chunk-5ZMA4N4W.js';
6
+ import '../../../chunk-G6HGDG22.js';
7
+ import '../../../chunk-FMFS42U2.js';
8
8
  import '../../../chunk-Z6YXPKWP.js';
9
9
  import { useFormContext, Controller } from 'react-hook-form';
10
10
  import { jsx } from 'react/jsx-runtime';
@@ -1,9 +1,9 @@
1
- import { a } from '../../../chunk-ANH46M6K.js';
1
+ import { a } from '../../../chunk-L57JO525.js';
2
2
  import '../../../chunk-6ZSTKYGL.js';
3
- import '../../../chunk-R7BNGTUT.js';
3
+ import '../../../chunk-UMLZEYD5.js';
4
4
  import '../../../chunk-4F2NKGF6.js';
5
5
  import '../../../chunk-NIQW2J3M.js';
6
- import '../../../chunk-5ZMA4N4W.js';
6
+ import '../../../chunk-FMFS42U2.js';
7
7
  import '../../../chunk-Z6YXPKWP.js';
8
8
  import '../../../chunk-F65ZXAGV.js';
9
9
  import { useFormContext, Controller } from 'react-hook-form';