@expressms/smartapp-ui 3.0.0-alpha.22 → 3.0.0-alpha.23

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 (481) hide show
  1. package/build/main/assets/icons/accepted-invite-status.svg +4 -0
  2. package/build/main/assets/icons/arrow-back.svg +3 -0
  3. package/build/main/assets/icons/arrow-down.svg +3 -0
  4. package/build/main/assets/icons/arrow-up.svg +3 -0
  5. package/build/main/assets/icons/attachment-loader.svg +3 -0
  6. package/build/main/assets/icons/avatar-arrow-down.svg +3 -0
  7. package/build/main/assets/icons/avatar-arrow-up.svg +3 -0
  8. package/build/main/assets/icons/avatar-loader.svg +3 -0
  9. package/build/main/assets/icons/button-loader.svg +3 -0
  10. package/build/main/assets/icons/calendar-arrow-next.svg +3 -0
  11. package/build/main/assets/icons/calendar-arrow-prev.svg +3 -0
  12. package/build/main/assets/icons/check-mark-square.svg +4 -0
  13. package/build/main/assets/icons/check-mark.svg +4 -0
  14. package/build/main/assets/icons/chip-info.svg +5 -0
  15. package/build/main/assets/icons/clear.svg +3 -0
  16. package/build/main/assets/icons/close-modal.svg +3 -0
  17. package/build/main/assets/icons/close-stories.svg +4 -0
  18. package/build/main/assets/icons/close.svg +3 -0
  19. package/build/main/assets/icons/contact-info.svg +5 -0
  20. package/build/main/assets/icons/corporate-user.svg +3 -0
  21. package/build/main/assets/icons/crown.svg +5 -0
  22. package/build/main/assets/icons/declined-invite-status.svg +4 -0
  23. package/build/main/assets/icons/delete-chip.svg +3 -0
  24. package/build/main/assets/icons/distribution.svg +12 -0
  25. package/build/main/assets/icons/doc-small.svg +11 -0
  26. package/build/main/assets/icons/doc.svg +11 -0
  27. package/build/main/assets/icons/error.svg +5 -0
  28. package/build/main/assets/icons/external-link.svg +3 -0
  29. package/build/main/assets/icons/eye-off.svg +5 -0
  30. package/build/main/assets/icons/eye-on.svg +4 -0
  31. package/build/main/assets/icons/file-small.svg +11 -0
  32. package/build/main/assets/icons/file.svg +11 -0
  33. package/build/main/assets/icons/global-address-book-user.svg +4 -0
  34. package/build/main/assets/icons/group.svg +3 -0
  35. package/build/main/assets/icons/indeterminate-check-mark-square.svg +4 -0
  36. package/build/main/assets/icons/info.svg +5 -0
  37. package/build/main/assets/icons/input-arrow-down.svg +3 -0
  38. package/build/main/assets/icons/input-arrow-up.svg +3 -0
  39. package/build/main/assets/icons/loader.svg +3 -0
  40. package/build/main/assets/icons/logout.svg +4 -0
  41. package/build/main/assets/icons/magnifying-glass.svg +3 -0
  42. package/build/main/assets/icons/mail.svg +3 -0
  43. package/build/main/assets/icons/meeting-room.svg +3 -0
  44. package/build/main/assets/icons/more.svg +3 -0
  45. package/build/main/assets/icons/my-contacts-user.svg +3 -0
  46. package/build/main/assets/icons/needs-action-invite-status.svg +4 -0
  47. package/build/main/assets/icons/notification-close.svg +3 -0
  48. package/build/main/assets/icons/notification-failure.svg +3 -0
  49. package/build/main/assets/icons/notification-info.svg +5 -0
  50. package/build/main/assets/icons/notification-success.svg +4 -0
  51. package/build/main/assets/icons/order.svg +6 -0
  52. package/build/main/assets/icons/pdf-small.svg +11 -0
  53. package/build/main/assets/icons/pdf.svg +11 -0
  54. package/build/main/assets/icons/play-small.svg +3 -0
  55. package/build/main/assets/icons/play.svg +3 -0
  56. package/build/main/assets/icons/plus.svg +4 -0
  57. package/build/main/assets/icons/ppt-small.svg +11 -0
  58. package/build/main/assets/icons/ppt.svg +11 -0
  59. package/build/main/assets/icons/private.svg +12 -0
  60. package/build/main/assets/icons/refresh.svg +3 -0
  61. package/build/main/assets/icons/search.svg +3 -0
  62. package/build/main/assets/icons/story-loader.svg +3 -0
  63. package/build/main/assets/icons/tick.svg +10 -0
  64. package/build/main/assets/icons/trash.svg +3 -0
  65. package/build/main/assets/icons/txt-small.svg +11 -0
  66. package/build/main/assets/icons/txt.svg +11 -0
  67. package/build/main/assets/icons/unread-mails.svg +4 -0
  68. package/build/main/assets/icons/warning-avatar.svg +4 -0
  69. package/build/main/assets/icons/xls-small.svg +11 -0
  70. package/build/main/assets/icons/xls.svg +11 -0
  71. package/build/main/assets/storybook/index.d.ts +24 -0
  72. package/build/main/assets/storybook/index.js +25 -0
  73. package/build/main/assets/storybook/index.js.map +1 -0
  74. package/build/main/constants/constants.d.ts +198 -0
  75. package/build/main/constants/constants.js +218 -0
  76. package/build/main/constants/constants.js.map +1 -0
  77. package/build/main/constants/index.d.ts +2 -0
  78. package/build/main/constants/index.js +3 -0
  79. package/build/main/constants/index.js.map +1 -0
  80. package/build/main/constants/types.d.ts +58 -0
  81. package/build/main/constants/types.js +2 -0
  82. package/build/main/constants/types.js.map +1 -0
  83. package/build/main/helpers/index.d.ts +31 -0
  84. package/build/main/helpers/index.js +183 -0
  85. package/build/main/helpers/index.js.map +1 -0
  86. package/build/main/hooks/useLongTap.d.ts +12 -0
  87. package/build/main/hooks/useLongTap.js +29 -0
  88. package/build/main/hooks/useLongTap.js.map +1 -0
  89. package/build/main/hooks/useModal.d.ts +22 -0
  90. package/build/main/hooks/useModal.js +61 -0
  91. package/build/main/hooks/useModal.js.map +1 -0
  92. package/build/main/index.d.ts +36 -0
  93. package/build/main/index.js +37 -0
  94. package/build/main/index.js.map +1 -0
  95. package/build/main/styles/index.d.ts +1 -0
  96. package/build/main/styles/index.js +2 -0
  97. package/build/main/styles/index.js.map +1 -0
  98. package/build/main/styles/main.js +6 -0
  99. package/build/main/styles/styles.scss +14 -0
  100. package/build/main//321/201omponents/ActionModal/ActionModal.d.ts +4 -0
  101. package/build/main//321/201omponents/ActionModal/ActionModal.js +53 -0
  102. package/build/main//321/201omponents/ActionModal/ActionModal.js.map +1 -0
  103. package/build/main//321/201omponents/ActionModal/index.d.ts +1 -0
  104. package/build/main//321/201omponents/ActionModal/index.js +2 -0
  105. package/build/main//321/201omponents/ActionModal/index.js.map +1 -0
  106. package/build/main//321/201omponents/ActionModal/types.d.ts +23 -0
  107. package/build/main//321/201omponents/ActionModal/types.js +2 -0
  108. package/build/main//321/201omponents/ActionModal/types.js.map +1 -0
  109. package/build/main//321/201omponents/AttachedFile/AttachedFile.d.ts +8 -0
  110. package/build/main//321/201omponents/AttachedFile/AttachedFile.js +146 -0
  111. package/build/main//321/201omponents/AttachedFile/AttachedFile.js.map +1 -0
  112. package/build/main//321/201omponents/AttachedFile/index.d.ts +1 -0
  113. package/build/main//321/201omponents/AttachedFile/index.js +2 -0
  114. package/build/main//321/201omponents/AttachedFile/index.js.map +1 -0
  115. package/build/main//321/201omponents/AttachedFile/types.d.ts +22 -0
  116. package/build/main//321/201omponents/AttachedFile/types.js +2 -0
  117. package/build/main//321/201omponents/AttachedFile/types.js.map +1 -0
  118. package/build/main//321/201omponents/Avatar/Avatar.d.ts +4 -0
  119. package/build/main//321/201omponents/Avatar/Avatar.js +243 -0
  120. package/build/main//321/201omponents/Avatar/Avatar.js.map +1 -0
  121. package/build/main//321/201omponents/Avatar/index.d.ts +1 -0
  122. package/build/main//321/201omponents/Avatar/index.js +2 -0
  123. package/build/main//321/201omponents/Avatar/index.js.map +1 -0
  124. package/build/main//321/201omponents/Avatar/types.d.ts +61 -0
  125. package/build/main//321/201omponents/Avatar/types.js +29 -0
  126. package/build/main//321/201omponents/Avatar/types.js.map +1 -0
  127. package/build/main//321/201omponents/Button/Button.d.ts +4 -0
  128. package/build/main//321/201omponents/Button/Button.js +62 -0
  129. package/build/main//321/201omponents/Button/Button.js.map +1 -0
  130. package/build/main//321/201omponents/Button/index.d.ts +1 -0
  131. package/build/main//321/201omponents/Button/index.js +2 -0
  132. package/build/main//321/201omponents/Button/index.js.map +1 -0
  133. package/build/main//321/201omponents/Button/types.d.ts +24 -0
  134. package/build/main//321/201omponents/Button/types.js +12 -0
  135. package/build/main//321/201omponents/Button/types.js.map +1 -0
  136. package/build/main//321/201omponents/CachedImage/CachedImage.d.ts +4 -0
  137. package/build/main//321/201omponents/CachedImage/CachedImage.js +59 -0
  138. package/build/main//321/201omponents/CachedImage/CachedImage.js.map +1 -0
  139. package/build/main//321/201omponents/CachedImage/helpers.d.ts +3 -0
  140. package/build/main//321/201omponents/CachedImage/helpers.js +40 -0
  141. package/build/main//321/201omponents/CachedImage/helpers.js.map +1 -0
  142. package/build/main//321/201omponents/CachedImage/index.d.ts +1 -0
  143. package/build/main//321/201omponents/CachedImage/index.js +2 -0
  144. package/build/main//321/201omponents/CachedImage/index.js.map +1 -0
  145. package/build/main//321/201omponents/CachedImage/types.d.ts +10 -0
  146. package/build/main//321/201omponents/CachedImage/types.js +2 -0
  147. package/build/main//321/201omponents/CachedImage/types.js.map +1 -0
  148. package/build/main//321/201omponents/Calendar/Calendar.d.ts +4 -0
  149. package/build/main//321/201omponents/Calendar/Calendar.js +145 -0
  150. package/build/main//321/201omponents/Calendar/Calendar.js.map +1 -0
  151. package/build/main//321/201omponents/Calendar/index.d.ts +1 -0
  152. package/build/main//321/201omponents/Calendar/index.js +2 -0
  153. package/build/main//321/201omponents/Calendar/index.js.map +1 -0
  154. package/build/main//321/201omponents/Calendar/types.d.ts +15 -0
  155. package/build/main//321/201omponents/Calendar/types.js +2 -0
  156. package/build/main//321/201omponents/Calendar/types.js.map +1 -0
  157. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.d.ts +4 -0
  158. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js +47 -0
  159. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js.map +1 -0
  160. package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.d.ts +4 -0
  161. package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.js +71 -0
  162. package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.js.map +1 -0
  163. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.d.ts +4 -0
  164. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js +42 -0
  165. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js.map +1 -0
  166. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.d.ts +4 -0
  167. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js +64 -0
  168. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js.map +1 -0
  169. package/build/main//321/201omponents/Charts/colors.d.ts +3 -0
  170. package/build/main//321/201omponents/Charts/colors.js +4 -0
  171. package/build/main//321/201omponents/Charts/colors.js.map +1 -0
  172. package/build/main//321/201omponents/Charts/constants.d.ts +42 -0
  173. package/build/main//321/201omponents/Charts/constants.js +42 -0
  174. package/build/main//321/201omponents/Charts/constants.js.map +1 -0
  175. package/build/main//321/201omponents/Charts/helpers.d.ts +17 -0
  176. package/build/main//321/201omponents/Charts/helpers.js +73 -0
  177. package/build/main//321/201omponents/Charts/helpers.js.map +1 -0
  178. package/build/main//321/201omponents/Charts/index.d.ts +3 -0
  179. package/build/main//321/201omponents/Charts/index.js +4 -0
  180. package/build/main//321/201omponents/Charts/index.js.map +1 -0
  181. package/build/main//321/201omponents/Charts/types.d.ts +89 -0
  182. package/build/main//321/201omponents/Charts/types.js +2 -0
  183. package/build/main//321/201omponents/Charts/types.js.map +1 -0
  184. package/build/main//321/201omponents/Charts/useEvents.d.ts +5 -0
  185. package/build/main//321/201omponents/Charts/useEvents.js +45 -0
  186. package/build/main//321/201omponents/Charts/useEvents.js.map +1 -0
  187. package/build/main//321/201omponents/Charts/usePieEvents.d.ts +6 -0
  188. package/build/main//321/201omponents/Charts/usePieEvents.js +57 -0
  189. package/build/main//321/201omponents/Charts/usePieEvents.js.map +1 -0
  190. package/build/main//321/201omponents/Checkbox/Checkbox.d.ts +8 -0
  191. package/build/main//321/201omponents/Checkbox/Checkbox.js +48 -0
  192. package/build/main//321/201omponents/Checkbox/Checkbox.js.map +1 -0
  193. package/build/main//321/201omponents/Checkbox/index.d.ts +1 -0
  194. package/build/main//321/201omponents/Checkbox/index.js +2 -0
  195. package/build/main//321/201omponents/Checkbox/index.js.map +1 -0
  196. package/build/main//321/201omponents/Checkbox/types.d.ts +14 -0
  197. package/build/main//321/201omponents/Checkbox/types.js +2 -0
  198. package/build/main//321/201omponents/Checkbox/types.js.map +1 -0
  199. package/build/main//321/201omponents/Chip/Chip.d.ts +4 -0
  200. package/build/main//321/201omponents/Chip/Chip.js +118 -0
  201. package/build/main//321/201omponents/Chip/Chip.js.map +1 -0
  202. package/build/main//321/201omponents/Chip/index.d.ts +1 -0
  203. package/build/main//321/201omponents/Chip/index.js +2 -0
  204. package/build/main//321/201omponents/Chip/index.js.map +1 -0
  205. package/build/main//321/201omponents/Chip/types.d.ts +28 -0
  206. package/build/main//321/201omponents/Chip/types.js +2 -0
  207. package/build/main//321/201omponents/Chip/types.js.map +1 -0
  208. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.d.ts +4 -0
  209. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js +63 -0
  210. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js.map +1 -0
  211. package/build/main//321/201omponents/ConfirmationModal/index.d.ts +1 -0
  212. package/build/main//321/201omponents/ConfirmationModal/index.js +2 -0
  213. package/build/main//321/201omponents/ConfirmationModal/index.js.map +1 -0
  214. package/build/main//321/201omponents/ConfirmationModal/types.d.ts +28 -0
  215. package/build/main//321/201omponents/ConfirmationModal/types.js +2 -0
  216. package/build/main//321/201omponents/ConfirmationModal/types.js.map +1 -0
  217. package/build/main//321/201omponents/ContextMenu/ContextMenu.d.ts +4 -0
  218. package/build/main//321/201omponents/ContextMenu/ContextMenu.js +81 -0
  219. package/build/main//321/201omponents/ContextMenu/ContextMenu.js.map +1 -0
  220. package/build/main//321/201omponents/ContextMenu/index.d.ts +1 -0
  221. package/build/main//321/201omponents/ContextMenu/index.js +2 -0
  222. package/build/main//321/201omponents/ContextMenu/index.js.map +1 -0
  223. package/build/main//321/201omponents/ContextMenu/types.d.ts +34 -0
  224. package/build/main//321/201omponents/ContextMenu/types.js +2 -0
  225. package/build/main//321/201omponents/ContextMenu/types.js.map +1 -0
  226. package/build/main//321/201omponents/CustomSelect/CustomSelect.d.ts +12 -0
  227. package/build/main//321/201omponents/CustomSelect/CustomSelect.js +248 -0
  228. package/build/main//321/201omponents/CustomSelect/CustomSelect.js.map +1 -0
  229. package/build/main//321/201omponents/CustomSelect/index.d.ts +1 -0
  230. package/build/main//321/201omponents/CustomSelect/index.js +2 -0
  231. package/build/main//321/201omponents/CustomSelect/index.js.map +1 -0
  232. package/build/main//321/201omponents/CustomSelect/selectStyles.d.ts +16 -0
  233. package/build/main//321/201omponents/CustomSelect/selectStyles.js +70 -0
  234. package/build/main//321/201omponents/CustomSelect/selectStyles.js.map +1 -0
  235. package/build/main//321/201omponents/CustomSelect/types.d.ts +69 -0
  236. package/build/main//321/201omponents/CustomSelect/types.js +2 -0
  237. package/build/main//321/201omponents/CustomSelect/types.js.map +1 -0
  238. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.d.ts +4 -0
  239. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js +58 -0
  240. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js.map +1 -0
  241. package/build/main//321/201omponents/CustomSelectProfiles/index.d.ts +1 -0
  242. package/build/main//321/201omponents/CustomSelectProfiles/index.js +2 -0
  243. package/build/main//321/201omponents/CustomSelectProfiles/index.js.map +1 -0
  244. package/build/main//321/201omponents/CustomSelectProfiles/types.d.ts +12 -0
  245. package/build/main//321/201omponents/CustomSelectProfiles/types.js +2 -0
  246. package/build/main//321/201omponents/CustomSelectProfiles/types.js.map +1 -0
  247. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.d.ts +4 -0
  248. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js +57 -0
  249. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js.map +1 -0
  250. package/build/main//321/201omponents/DragAndDrop/index.d.ts +1 -0
  251. package/build/main//321/201omponents/DragAndDrop/index.js +2 -0
  252. package/build/main//321/201omponents/DragAndDrop/index.js.map +1 -0
  253. package/build/main//321/201omponents/DragAndDrop/types.d.ts +24 -0
  254. package/build/main//321/201omponents/DragAndDrop/types.js +2 -0
  255. package/build/main//321/201omponents/DragAndDrop/types.js.map +1 -0
  256. package/build/main//321/201omponents/DraggablePopup/DraggablePopup.d.ts +4 -0
  257. package/build/main//321/201omponents/DraggablePopup/DraggablePopup.js +222 -0
  258. package/build/main//321/201omponents/DraggablePopup/DraggablePopup.js.map +1 -0
  259. package/build/main//321/201omponents/DraggablePopup/index.d.ts +1 -0
  260. package/build/main//321/201omponents/DraggablePopup/index.js +2 -0
  261. package/build/main//321/201omponents/DraggablePopup/index.js.map +1 -0
  262. package/build/main//321/201omponents/DraggablePopup/types.d.ts +90 -0
  263. package/build/main//321/201omponents/DraggablePopup/types.js +2 -0
  264. package/build/main//321/201omponents/DraggablePopup/types.js.map +1 -0
  265. package/build/main//321/201omponents/Error/Error.d.ts +4 -0
  266. package/build/main//321/201omponents/Error/Error.js +23 -0
  267. package/build/main//321/201omponents/Error/Error.js.map +1 -0
  268. package/build/main//321/201omponents/Error/index.d.ts +1 -0
  269. package/build/main//321/201omponents/Error/index.js +2 -0
  270. package/build/main//321/201omponents/Error/index.js.map +1 -0
  271. package/build/main//321/201omponents/Error/types.d.ts +10 -0
  272. package/build/main//321/201omponents/Error/types.js +2 -0
  273. package/build/main//321/201omponents/Error/types.js.map +1 -0
  274. package/build/main//321/201omponents/Flex/Flex.d.ts +2 -0
  275. package/build/main//321/201omponents/Flex/Flex.js +35 -0
  276. package/build/main//321/201omponents/Flex/Flex.js.map +1 -0
  277. package/build/main//321/201omponents/Flex/HFlex/HFlex.d.ts +5 -0
  278. package/build/main//321/201omponents/Flex/HFlex/HFlex.js +16 -0
  279. package/build/main//321/201omponents/Flex/HFlex/HFlex.js.map +1 -0
  280. package/build/main//321/201omponents/Flex/HFlex/index.d.ts +1 -0
  281. package/build/main//321/201omponents/Flex/HFlex/index.js +2 -0
  282. package/build/main//321/201omponents/Flex/HFlex/index.js.map +1 -0
  283. package/build/main//321/201omponents/Flex/VFlex/VFlex.d.ts +5 -0
  284. package/build/main//321/201omponents/Flex/VFlex/VFlex.js +16 -0
  285. package/build/main//321/201omponents/Flex/VFlex/VFlex.js.map +1 -0
  286. package/build/main//321/201omponents/Flex/VFlex/index.d.ts +1 -0
  287. package/build/main//321/201omponents/Flex/VFlex/index.js +2 -0
  288. package/build/main//321/201omponents/Flex/VFlex/index.js.map +1 -0
  289. package/build/main//321/201omponents/Flex/index.d.ts +3 -0
  290. package/build/main//321/201omponents/Flex/index.js +4 -0
  291. package/build/main//321/201omponents/Flex/index.js.map +1 -0
  292. package/build/main//321/201omponents/Flex/types.d.ts +19 -0
  293. package/build/main//321/201omponents/Flex/types.js +2 -0
  294. package/build/main//321/201omponents/Flex/types.js.map +1 -0
  295. package/build/main//321/201omponents/Header/Header.d.ts +5 -0
  296. package/build/main//321/201omponents/Header/Header.js +125 -0
  297. package/build/main//321/201omponents/Header/Header.js.map +1 -0
  298. package/build/main//321/201omponents/Header/index.d.ts +1 -0
  299. package/build/main//321/201omponents/Header/index.js +2 -0
  300. package/build/main//321/201omponents/Header/index.js.map +1 -0
  301. package/build/main//321/201omponents/Header/types.d.ts +47 -0
  302. package/build/main//321/201omponents/Header/types.js +2 -0
  303. package/build/main//321/201omponents/Header/types.js.map +1 -0
  304. package/build/main//321/201omponents/Input/Input.d.ts +4 -0
  305. package/build/main//321/201omponents/Input/Input.js +182 -0
  306. package/build/main//321/201omponents/Input/Input.js.map +1 -0
  307. package/build/main//321/201omponents/Input/index.d.ts +1 -0
  308. package/build/main//321/201omponents/Input/index.js +2 -0
  309. package/build/main//321/201omponents/Input/index.js.map +1 -0
  310. package/build/main//321/201omponents/Input/types.d.ts +27 -0
  311. package/build/main//321/201omponents/Input/types.js +2 -0
  312. package/build/main//321/201omponents/Input/types.js.map +1 -0
  313. package/build/main//321/201omponents/ListItem/ListItem.d.ts +23 -0
  314. package/build/main//321/201omponents/ListItem/ListItem.js +203 -0
  315. package/build/main//321/201omponents/ListItem/ListItem.js.map +1 -0
  316. package/build/main//321/201omponents/ListItem/index.d.ts +1 -0
  317. package/build/main//321/201omponents/ListItem/index.js +2 -0
  318. package/build/main//321/201omponents/ListItem/index.js.map +1 -0
  319. package/build/main//321/201omponents/ListItem/types.d.ts +41 -0
  320. package/build/main//321/201omponents/ListItem/types.js +2 -0
  321. package/build/main//321/201omponents/ListItem/types.js.map +1 -0
  322. package/build/main//321/201omponents/Loader/Loader.d.ts +4 -0
  323. package/build/main//321/201omponents/Loader/Loader.js +44 -0
  324. package/build/main//321/201omponents/Loader/Loader.js.map +1 -0
  325. package/build/main//321/201omponents/Loader/index.d.ts +1 -0
  326. package/build/main//321/201omponents/Loader/index.js +2 -0
  327. package/build/main//321/201omponents/Loader/index.js.map +1 -0
  328. package/build/main//321/201omponents/Loader/types.d.ts +18 -0
  329. package/build/main//321/201omponents/Loader/types.js +2 -0
  330. package/build/main//321/201omponents/Loader/types.js.map +1 -0
  331. package/build/main//321/201omponents/Modal/Modal.d.ts +4 -0
  332. package/build/main//321/201omponents/Modal/Modal.js +259 -0
  333. package/build/main//321/201omponents/Modal/Modal.js.map +1 -0
  334. package/build/main//321/201omponents/Modal/index.d.ts +1 -0
  335. package/build/main//321/201omponents/Modal/index.js +2 -0
  336. package/build/main//321/201omponents/Modal/index.js.map +1 -0
  337. package/build/main//321/201omponents/Modal/types.d.ts +41 -0
  338. package/build/main//321/201omponents/Modal/types.js +2 -0
  339. package/build/main//321/201omponents/Modal/types.js.map +1 -0
  340. package/build/main//321/201omponents/Notification/Notification.d.ts +8 -0
  341. package/build/main//321/201omponents/Notification/Notification.js +199 -0
  342. package/build/main//321/201omponents/Notification/Notification.js.map +1 -0
  343. package/build/main//321/201omponents/Notification/index.d.ts +1 -0
  344. package/build/main//321/201omponents/Notification/index.js +2 -0
  345. package/build/main//321/201omponents/Notification/index.js.map +1 -0
  346. package/build/main//321/201omponents/Notification/types.d.ts +44 -0
  347. package/build/main//321/201omponents/Notification/types.js +2 -0
  348. package/build/main//321/201omponents/Notification/types.js.map +1 -0
  349. package/build/main//321/201omponents/Profile/Profile.d.ts +4 -0
  350. package/build/main//321/201omponents/Profile/Profile.js +42 -0
  351. package/build/main//321/201omponents/Profile/Profile.js.map +1 -0
  352. package/build/main//321/201omponents/Profile/index.d.ts +1 -0
  353. package/build/main//321/201omponents/Profile/index.js +2 -0
  354. package/build/main//321/201omponents/Profile/index.js.map +1 -0
  355. package/build/main//321/201omponents/Profile/types.d.ts +14 -0
  356. package/build/main//321/201omponents/Profile/types.js +2 -0
  357. package/build/main//321/201omponents/Profile/types.js.map +1 -0
  358. package/build/main//321/201omponents/ProgressBar/ProgressBar.d.ts +4 -0
  359. package/build/main//321/201omponents/ProgressBar/ProgressBar.js +66 -0
  360. package/build/main//321/201omponents/ProgressBar/ProgressBar.js.map +1 -0
  361. package/build/main//321/201omponents/ProgressBar/index.d.ts +1 -0
  362. package/build/main//321/201omponents/ProgressBar/index.js +2 -0
  363. package/build/main//321/201omponents/ProgressBar/index.js.map +1 -0
  364. package/build/main//321/201omponents/ProgressBar/types.d.ts +7 -0
  365. package/build/main//321/201omponents/ProgressBar/types.js +2 -0
  366. package/build/main//321/201omponents/ProgressBar/types.js.map +1 -0
  367. package/build/main//321/201omponents/RadioButton/RadioButton.d.ts +4 -0
  368. package/build/main//321/201omponents/RadioButton/RadioButton.js +33 -0
  369. package/build/main//321/201omponents/RadioButton/RadioButton.js.map +1 -0
  370. package/build/main//321/201omponents/RadioButton/index.d.ts +1 -0
  371. package/build/main//321/201omponents/RadioButton/index.js +2 -0
  372. package/build/main//321/201omponents/RadioButton/index.js.map +1 -0
  373. package/build/main//321/201omponents/RadioButton/types.d.ts +12 -0
  374. package/build/main//321/201omponents/RadioButton/types.js +2 -0
  375. package/build/main//321/201omponents/RadioButton/types.js.map +1 -0
  376. package/build/main//321/201omponents/ScrollBar/ScrollBar.d.ts +5 -0
  377. package/build/main//321/201omponents/ScrollBar/ScrollBar.js +140 -0
  378. package/build/main//321/201omponents/ScrollBar/ScrollBar.js.map +1 -0
  379. package/build/main//321/201omponents/ScrollBar/index.d.ts +1 -0
  380. package/build/main//321/201omponents/ScrollBar/index.js +2 -0
  381. package/build/main//321/201omponents/ScrollBar/index.js.map +1 -0
  382. package/build/main//321/201omponents/ScrollBar/types.d.ts +24 -0
  383. package/build/main//321/201omponents/ScrollBar/types.js +2 -0
  384. package/build/main//321/201omponents/ScrollBar/types.js.map +1 -0
  385. package/build/main//321/201omponents/Skeleton/Skeleton.d.ts +4 -0
  386. package/build/main//321/201omponents/Skeleton/Skeleton.js +59 -0
  387. package/build/main//321/201omponents/Skeleton/Skeleton.js.map +1 -0
  388. package/build/main//321/201omponents/Skeleton/index.d.ts +1 -0
  389. package/build/main//321/201omponents/Skeleton/index.js +2 -0
  390. package/build/main//321/201omponents/Skeleton/index.js.map +1 -0
  391. package/build/main//321/201omponents/Skeleton/types.d.ts +17 -0
  392. package/build/main//321/201omponents/Skeleton/types.js +2 -0
  393. package/build/main//321/201omponents/Skeleton/types.js.map +1 -0
  394. package/build/main//321/201omponents/Stories/Stories.d.ts +4 -0
  395. package/build/main//321/201omponents/Stories/Stories.js +338 -0
  396. package/build/main//321/201omponents/Stories/Stories.js.map +1 -0
  397. package/build/main//321/201omponents/Stories/index.d.ts +1 -0
  398. package/build/main//321/201omponents/Stories/index.js +2 -0
  399. package/build/main//321/201omponents/Stories/index.js.map +1 -0
  400. package/build/main//321/201omponents/Stories/types.d.ts +71 -0
  401. package/build/main//321/201omponents/Stories/types.js +16 -0
  402. package/build/main//321/201omponents/Stories/types.js.map +1 -0
  403. package/build/main//321/201omponents/Switcher/Switcher.d.ts +4 -0
  404. package/build/main//321/201omponents/Switcher/Switcher.js +34 -0
  405. package/build/main//321/201omponents/Switcher/Switcher.js.map +1 -0
  406. package/build/main//321/201omponents/Switcher/index.d.ts +1 -0
  407. package/build/main//321/201omponents/Switcher/index.js +2 -0
  408. package/build/main//321/201omponents/Switcher/index.js.map +1 -0
  409. package/build/main//321/201omponents/Switcher/types.d.ts +8 -0
  410. package/build/main//321/201omponents/Switcher/types.js +2 -0
  411. package/build/main//321/201omponents/Switcher/types.js.map +1 -0
  412. package/build/main//321/201omponents/SyncLoader/SyncLoader.d.ts +5 -0
  413. package/build/main//321/201omponents/SyncLoader/SyncLoader.js +65 -0
  414. package/build/main//321/201omponents/SyncLoader/SyncLoader.js.map +1 -0
  415. package/build/main//321/201omponents/SyncLoader/index.d.ts +1 -0
  416. package/build/main//321/201omponents/SyncLoader/index.js +2 -0
  417. package/build/main//321/201omponents/SyncLoader/index.js.map +1 -0
  418. package/build/main//321/201omponents/SyncLoader/types.d.ts +8 -0
  419. package/build/main//321/201omponents/SyncLoader/types.js +2 -0
  420. package/build/main//321/201omponents/SyncLoader/types.js.map +1 -0
  421. package/build/main//321/201omponents/Textarea/Textarea.d.ts +4 -0
  422. package/build/main//321/201omponents/Textarea/Textarea.js +59 -0
  423. package/build/main//321/201omponents/Textarea/Textarea.js.map +1 -0
  424. package/build/main//321/201omponents/Textarea/index.d.ts +1 -0
  425. package/build/main//321/201omponents/Textarea/index.js +2 -0
  426. package/build/main//321/201omponents/Textarea/index.js.map +1 -0
  427. package/build/main//321/201omponents/Textarea/types.d.ts +13 -0
  428. package/build/main//321/201omponents/Textarea/types.js +2 -0
  429. package/build/main//321/201omponents/Textarea/types.js.map +1 -0
  430. package/build/main//321/201omponents/Toggle/Toggle.d.ts +4 -0
  431. package/build/main//321/201omponents/Toggle/Toggle.js +35 -0
  432. package/build/main//321/201omponents/Toggle/Toggle.js.map +1 -0
  433. package/build/main//321/201omponents/Toggle/index.d.ts +1 -0
  434. package/build/main//321/201omponents/Toggle/index.js +2 -0
  435. package/build/main//321/201omponents/Toggle/index.js.map +1 -0
  436. package/build/main//321/201omponents/Toggle/types.d.ts +12 -0
  437. package/build/main//321/201omponents/Toggle/types.js +2 -0
  438. package/build/main//321/201omponents/Toggle/types.js.map +1 -0
  439. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.d.ts +4 -0
  440. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js +31 -0
  441. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js.map +1 -0
  442. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.d.ts +4 -0
  443. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js +88 -0
  444. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js.map +1 -0
  445. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.d.ts +4 -0
  446. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js +23 -0
  447. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js.map +1 -0
  448. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.d.ts +4 -0
  449. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js +129 -0
  450. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js.map +1 -0
  451. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.d.ts +3 -0
  452. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js +137 -0
  453. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js.map +1 -0
  454. package/build/main//321/201omponents/UserDropdown/Option/Option.d.ts +4 -0
  455. package/build/main//321/201omponents/UserDropdown/Option/Option.js +80 -0
  456. package/build/main//321/201omponents/UserDropdown/Option/Option.js.map +1 -0
  457. package/build/main//321/201omponents/UserDropdown/SearchInCatalogButton/SearchInCatalogButton.d.ts +4 -0
  458. package/build/main//321/201omponents/UserDropdown/SearchInCatalogButton/SearchInCatalogButton.js +44 -0
  459. package/build/main//321/201omponents/UserDropdown/SearchInCatalogButton/SearchInCatalogButton.js.map +1 -0
  460. package/build/main//321/201omponents/UserDropdown/UserDropdown.d.ts +5 -0
  461. package/build/main//321/201omponents/UserDropdown/UserDropdown.js +549 -0
  462. package/build/main//321/201omponents/UserDropdown/UserDropdown.js.map +1 -0
  463. package/build/main//321/201omponents/UserDropdown/constants.d.ts +8 -0
  464. package/build/main//321/201omponents/UserDropdown/constants.js +10 -0
  465. package/build/main//321/201omponents/UserDropdown/constants.js.map +1 -0
  466. package/build/main//321/201omponents/UserDropdown/helpers.d.ts +105 -0
  467. package/build/main//321/201omponents/UserDropdown/helpers.js +143 -0
  468. package/build/main//321/201omponents/UserDropdown/helpers.js.map +1 -0
  469. package/build/main//321/201omponents/UserDropdown/index.d.ts +1 -0
  470. package/build/main//321/201omponents/UserDropdown/index.js +2 -0
  471. package/build/main//321/201omponents/UserDropdown/index.js.map +1 -0
  472. package/build/main//321/201omponents/UserDropdown/selectStyles.d.ts +15 -0
  473. package/build/main//321/201omponents/UserDropdown/selectStyles.js +69 -0
  474. package/build/main//321/201omponents/UserDropdown/selectStyles.js.map +1 -0
  475. package/build/main//321/201omponents/UserDropdown/types.d.ts +269 -0
  476. package/build/main//321/201omponents/UserDropdown/types.js +9 -0
  477. package/build/main//321/201omponents/UserDropdown/types.js.map +1 -0
  478. package/build/main//321/201omponents/types.d.ts +2 -0
  479. package/build/main//321/201omponents/types.js +2 -0
  480. package/build/main//321/201omponents/types.js.map +1 -0
  481. package/package.json +1 -1
@@ -0,0 +1,18 @@
1
+ import { ReactElement } from 'react';
2
+ import { IFontFamilyProps, IThemeProps, TStyles } from '../../constants';
3
+ export interface ILoaderProps extends IThemeProps, IFontFamilyProps {
4
+ isLoader: boolean;
5
+ isFullScreen?: boolean;
6
+ isTextItalic?: boolean;
7
+ title?: string;
8
+ textSize?: 'small' | 'default' | 'large';
9
+ width?: number;
10
+ iconSize?: number;
11
+ containerClassName?: string;
12
+ className?: string;
13
+ containerStyles?: TStyles;
14
+ styles?: TStyles;
15
+ color?: string;
16
+ backgroundColor?: string;
17
+ icon?: ReactElement;
18
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/Loader/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { IModalProps } from './types';
2
+ import '../../styles/styles.scss';
3
+ declare const Modal: ({ fontFamily, isModalOpen, isClosableOutside, isCloseIconHidden, isPopup, isBottomSheet, isDisabledBottomSheet, isCloseButtonDisabled, isResetPaddingBottom, isScrollBordersVisible, isNeedToScrollUp, modalId, contentId, modalRef: outerModalRef, content, bottomContent, title, titleIcons, platform, popupClassName, className, titleClassName, iconsClassName, popupStyles, styles, titleStyles, contentStyles, iconColor, backgroundColor, modalMaxHeight, bottomSheetProps, externalBottomSheetScrollContainer, contextMenuProps, handleChangeTitleBorderDisplayed, handleCloseModal, }: IModalProps) => import("react/jsx-runtime").JSX.Element | null;
4
+ export default Modal;
@@ -0,0 +1,259 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
23
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
24
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
25
+ if (ar || !(i in from)) {
26
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
27
+ ar[i] = from[i];
28
+ }
29
+ }
30
+ return to.concat(ar || Array.prototype.slice.call(from));
31
+ };
32
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
33
+ import { useCallback, useEffect, useLayoutEffect, useRef, useState } from 'react';
34
+ import classNames from 'classnames';
35
+ import { isArray } from 'lodash';
36
+ import { useModal } from '../../hooks/useModal';
37
+ import ContextMenu from '../ContextMenu';
38
+ import ScrollBar from '../ScrollBar';
39
+ import { DEFAULT_SCROLL_BAR_SIZE } from '../ScrollBar/ScrollBar';
40
+ import { checkIfContentIsCentered, generateBottomSheetClassName, generateClassNames, generateColor, generateFontFamilyStyle, generateIsCloseIconHidden, isMobilePlatform, } from '../../helpers';
41
+ import { COLORS, DRAGGABLE_KEY, EVENT_LISTENER_TYPES, MODAL_ICONS_PADDING_LEFT, PLATFORM } from '../../constants';
42
+ import { ReactComponent as CloseIcon } from '../../assets/icons/close-modal.svg';
43
+ import { ReactComponent as MoreIcon } from '../../assets/icons/more.svg';
44
+ import '../../styles/styles.scss';
45
+ var SCROLL_BAR_HEIGHT_WITH_PADDING = 'calc(100% - 20px)';
46
+ var MODAL_MARGIN_SIZE_WEB = 165;
47
+ var CONTENT_PADDING_TOP = 20;
48
+ var MODAL_TITLE_PADDING_BOTTOM = 16;
49
+ var MODAL_MARGIN_SIZE_MOBILE = 136;
50
+ var POPUP_CLASS_NAME = 'popup';
51
+ var MIN_SCROLL_TOP = 5;
52
+ var MODAL_PADDING_RIGHT = 20;
53
+ var CONTAINER_EDGE_MARGIN = 4;
54
+ var TITLE_CLASS_NAMES = {
55
+ border: 'smartapp-modal__content--title__border',
56
+ ellipsis: 'smartapp-modal__content--title__ellipsis',
57
+ ellipsisContainer: 'smartapp-modal__content--title__ellipsis-container',
58
+ };
59
+ var Modal = function (_a) {
60
+ var fontFamily = _a.fontFamily, isModalOpen = _a.isModalOpen, _b = _a.isClosableOutside, isClosableOutside = _b === void 0 ? true : _b, isCloseIconHidden = _a.isCloseIconHidden, _c = _a.isPopup, isPopup = _c === void 0 ? false : _c, _d = _a.isBottomSheet, isBottomSheet = _d === void 0 ? false : _d, _e = _a.isDisabledBottomSheet, isDisabledBottomSheet = _e === void 0 ? false : _e, _f = _a.isCloseButtonDisabled, isCloseButtonDisabled = _f === void 0 ? false : _f, _g = _a.isResetPaddingBottom, isResetPaddingBottom = _g === void 0 ? false : _g, _h = _a.isScrollBordersVisible, isScrollBordersVisible = _h === void 0 ? false : _h, _j = _a.isNeedToScrollUp, isNeedToScrollUp = _j === void 0 ? false : _j, modalId = _a.modalId, contentId = _a.contentId, outerModalRef = _a.modalRef, content = _a.content, bottomContent = _a.bottomContent, title = _a.title, titleIcons = _a.titleIcons, _k = _a.platform, platform = _k === void 0 ? PLATFORM.web : _k, popupClassName = _a.popupClassName, className = _a.className, titleClassName = _a.titleClassName, iconsClassName = _a.iconsClassName, popupStyles = _a.popupStyles, styles = _a.styles, titleStyles = _a.titleStyles, contentStyles = _a.contentStyles, iconColor = _a.iconColor, backgroundColor = _a.backgroundColor, modalMaxHeight = _a.modalMaxHeight, bottomSheetProps = _a.bottomSheetProps, externalBottomSheetScrollContainer = _a.externalBottomSheetScrollContainer, contextMenuProps = _a.contextMenuProps, handleChangeTitleBorderDisplayed = _a.handleChangeTitleBorderDisplayed, handleCloseModal = _a.handleCloseModal;
61
+ var localModalRef = useRef(null);
62
+ var titleRef = useRef(null);
63
+ var titleTextElementRef = useRef(null);
64
+ var iconsRef = useRef(null);
65
+ var scrollableContentRef = useRef(null);
66
+ var contentRef = useRef(null);
67
+ var scrollerRef = useRef(null);
68
+ var bottomContentRef = useRef(null);
69
+ var scrollbarRef = useRef(null);
70
+ var _l = useState(''), containerHeight = _l[0], setContainerHeight = _l[1];
71
+ var _m = useState(0), iconsWidth = _m[0], setIconsWidth = _m[1];
72
+ var _o = useState(false), isTitleBorderVisible = _o[0], setIsTitleBorderVisible = _o[1];
73
+ var _p = useState(false), isBottomContentBorderVisible = _p[0], setIsBottomContentBorderVisible = _p[1];
74
+ var modalRef = outerModalRef || localModalRef;
75
+ var background = generateColor(backgroundColor, COLORS.colorBgBlackoutTransparent);
76
+ var isScrollBordersAvailable = isPopup || isScrollBordersVisible;
77
+ var isTitleBorderDisplayed = isScrollBordersAvailable && isTitleBorderVisible;
78
+ var isBottomContentBorderDisplayed = isScrollBordersAvailable && isBottomContentBorderVisible;
79
+ var popupOverlayStyle = __assign({ '--modal-background': background }, popupStyles);
80
+ var _q = useModal({
81
+ isModalOpen: isModalOpen,
82
+ platform: platform,
83
+ isDisabledBottomSheet: isDisabledBottomSheet,
84
+ initialIsBottomSheet: isBottomSheet,
85
+ modalRef: modalRef,
86
+ isClosableOutside: isClosableOutside,
87
+ handleCloseModal: handleCloseModal,
88
+ popupClassName: classNames('modal', popupClassName),
89
+ popupStyles: popupOverlayStyle,
90
+ bottomSheetStyles: { '--rsbs-backdrop-bg': background },
91
+ bottomSheetProps: bottomSheetProps,
92
+ scrollRef: externalBottomSheetScrollContainer || scrollerRef,
93
+ }), shouldUseBottomSheet = _q.shouldUseBottomSheet, renderModal = _q.renderModal;
94
+ var findTitleElementWithText = function (root) {
95
+ var stack = [root];
96
+ while (stack.length) {
97
+ // take the first element from the stack
98
+ var node = stack.shift();
99
+ if (!node)
100
+ continue;
101
+ var childNodes = node.childNodes, children = node.children;
102
+ // check if the current node has any direct text nodes
103
+ // if it does, return this node immediately
104
+ if (Array.from(childNodes).some(function (_a) {
105
+ var nodeType = _a.nodeType, textContent = _a.textContent;
106
+ return nodeType === Node.TEXT_NODE && (textContent === null || textContent === void 0 ? void 0 : textContent.trim());
107
+ }))
108
+ return node;
109
+ // otherwise, add all children of the current node to the stack for further search
110
+ // only include elements that are actual HTMLElements
111
+ stack.push.apply(stack, Array.from(children).filter(function (child) { return child instanceof HTMLElement; }));
112
+ }
113
+ return null;
114
+ };
115
+ var generateAdditionalClassName = function () {
116
+ var bottomSheetClassName = generateBottomSheetClassName(platform, shouldUseBottomSheet);
117
+ return isPopup ? __spreadArray(__spreadArray([], bottomSheetClassName, true), [POPUP_CLASS_NAME], false) : bottomSheetClassName;
118
+ };
119
+ var isCloseIconInvisible = generateIsCloseIconHidden(platform, isCloseIconHidden);
120
+ var modalMargins = isMobilePlatform(platform) ? MODAL_MARGIN_SIZE_MOBILE : 2 * MODAL_MARGIN_SIZE_WEB;
121
+ var MAX_MODAL_HEIGHT_WEB = modalMaxHeight || window.innerHeight - modalMargins;
122
+ var handleMouseDown = function (event) {
123
+ var target = event.target;
124
+ if (target instanceof HTMLElement || target instanceof SVGElement) {
125
+ target.closest('.smartapp-custom-select__dropdown-indicator') && event.stopPropagation();
126
+ }
127
+ };
128
+ var handleSetContainerHeight = function (elementRef, maxModalHeight) {
129
+ var _a, _b;
130
+ if (!elementRef)
131
+ return;
132
+ var height = elementRef.getBoundingClientRect().height;
133
+ var titleHeight = ((_a = titleRef.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().height) || 0;
134
+ var bottomContentHeight = ((_b = bottomContentRef.current) === null || _b === void 0 ? void 0 : _b.getBoundingClientRect().height) || 0;
135
+ var titleHeightWithMargin = titleHeight ? titleHeight + MODAL_TITLE_PADDING_BOTTOM : titleHeight;
136
+ var defaultContentHeight = maxModalHeight - titleHeightWithMargin - CONTENT_PADDING_TOP;
137
+ var maxContentHeightValue = defaultContentHeight - bottomContentHeight;
138
+ setContainerHeight("".concat(Math.min(height, maxContentHeightValue), "px"));
139
+ };
140
+ var handleSetContainerHeightWeb = useCallback(function (contentRef) { return handleSetContainerHeight(contentRef, MAX_MODAL_HEIGHT_WEB); },
141
+ //eslint-disable-next-line
142
+ [contentId, modalMaxHeight]);
143
+ var handleSetContainerHeightMobile = useCallback(function (elementRef) {
144
+ var MAX_MODAL_HEIGHT_MOBILE = modalMaxHeight || window.innerHeight - modalMargins;
145
+ contentRef.current = elementRef;
146
+ handleSetContainerHeight(elementRef, MAX_MODAL_HEIGHT_MOBILE);
147
+ },
148
+ //eslint-disable-next-line
149
+ [modalMargins, modalMaxHeight, contentId]);
150
+ var handleScroll = function (event) {
151
+ var contentScrollHeight = event.contentScrollHeight, clientHeight = event.clientHeight, scrollTop = event.scrollTop;
152
+ var isTitleBorderShown = scrollTop > MIN_SCROLL_TOP;
153
+ setIsTitleBorderVisible(isTitleBorderShown);
154
+ handleChangeTitleBorderDisplayed === null || handleChangeTitleBorderDisplayed === void 0 ? void 0 : handleChangeTitleBorderDisplayed(isTitleBorderShown);
155
+ setIsBottomContentBorderVisible(scrollTop + clientHeight < contentScrollHeight - 1);
156
+ };
157
+ var handleScrollerRef = function (el) {
158
+ scrollerRef.current = el;
159
+ var _a = (el || {}).clientHeight, clientHeight = _a === void 0 ? 0 : _a;
160
+ if (bottomContent && el && clientHeight > 0) {
161
+ var scrollTop = el.scrollTop, scrollHeight = el.scrollHeight, clientHeight_1 = el.clientHeight;
162
+ setIsBottomContentBorderVisible(scrollTop + clientHeight_1 < scrollHeight - 1);
163
+ }
164
+ };
165
+ useEffect(function () {
166
+ var handleWindowResize = function () { return handleSetContainerHeightMobile(contentRef.current); };
167
+ isMobilePlatform(platform) && window.addEventListener(EVENT_LISTENER_TYPES.resize, handleWindowResize);
168
+ return function () { return window.removeEventListener(EVENT_LISTENER_TYPES.resize, handleWindowResize); };
169
+ }, [handleSetContainerHeightMobile, platform]);
170
+ useEffect(function () {
171
+ var checkIfClickedOutside = function (_a) {
172
+ var target = _a.target;
173
+ var modalRefCurrent = modalRef.current;
174
+ if (isModalOpen && isClosableOutside && modalRefCurrent && !modalRefCurrent.contains(target))
175
+ handleCloseModal();
176
+ };
177
+ !isPopup && (document === null || document === void 0 ? void 0 : document.addEventListener(EVENT_LISTENER_TYPES.click, checkIfClickedOutside, true));
178
+ return function () { return document === null || document === void 0 ? void 0 : document.removeEventListener(EVENT_LISTENER_TYPES.click, checkIfClickedOutside, true); };
179
+ }, [isModalOpen, isClosableOutside, handleCloseModal, isPopup, modalRef]);
180
+ useLayoutEffect(function () {
181
+ var resizeObserver = new ResizeObserver(function () {
182
+ var _a;
183
+ var _b = (((_a = iconsRef.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect()) || {}).width, width = _b === void 0 ? 0 : _b;
184
+ setIconsWidth(width);
185
+ });
186
+ requestAnimationFrame(function () {
187
+ var iconsRefCurrent = iconsRef.current;
188
+ iconsRefCurrent && resizeObserver.observe(iconsRefCurrent);
189
+ });
190
+ return function () { return resizeObserver.disconnect(); };
191
+ }, []);
192
+ useEffect(function () {
193
+ var _a;
194
+ var titleRefCurrent = titleRef.current;
195
+ var titleTextElementRefCurrent = titleTextElementRef.current;
196
+ if (!titleTextElementRefCurrent && titleRefCurrent) {
197
+ var titleElementWithText = findTitleElementWithText(titleRefCurrent);
198
+ titleTextElementRef.current = titleElementWithText;
199
+ titleTextElementRefCurrent = titleElementWithText;
200
+ }
201
+ var parentClassList = (_a = titleTextElementRefCurrent === null || titleTextElementRefCurrent === void 0 ? void 0 : titleTextElementRefCurrent.parentElement) === null || _a === void 0 ? void 0 : _a.classList;
202
+ titleTextElementRefCurrent === null || titleTextElementRefCurrent === void 0 ? void 0 : titleTextElementRefCurrent.classList.toggle(TITLE_CLASS_NAMES.ellipsis, isTitleBorderDisplayed);
203
+ !(parentClassList === null || parentClassList === void 0 ? void 0 : parentClassList.contains(TITLE_CLASS_NAMES.border)) && (parentClassList === null || parentClassList === void 0 ? void 0 : parentClassList.toggle(TITLE_CLASS_NAMES.ellipsisContainer, isTitleBorderDisplayed));
204
+ }, [isTitleBorderDisplayed]);
205
+ useEffect(function () {
206
+ var scrollbarRefCurrent = scrollbarRef.current;
207
+ if (isNeedToScrollUp && scrollbarRefCurrent)
208
+ scrollbarRefCurrent.scrollTop = 0;
209
+ }, [isNeedToScrollUp]);
210
+ var renderTitle = function () {
211
+ return title && (_jsxs("div", __assign({ className: classNames({ 'smartapp-modal__content--title__border': isTitleBorderDisplayed }) }, { children: [isPopup && _jsx("div", { className: "smartapp-modal__content--title__draggable-zone ".concat(DRAGGABLE_KEY) }), !isCloseIconInvisible && renderCloseIconSpace({ elementRef: titleRef }), _jsx("div", __assign({ ref: titleRef, className: "smartapp-modal__content--title ".concat(titleClassName), style: titleStyles }, { children: title }))] })));
212
+ };
213
+ var renderCloseIcon = function () {
214
+ return !isCloseIconInvisible && (_jsx("div", __assign({ onClick: !isCloseButtonDisabled ? handleCloseModal : function () { }, className: classNames('smartapp-modal__content--close-icon', {
215
+ 'smartapp-modal__content--close-icon__disabled': isCloseButtonDisabled,
216
+ 'smartapp-modal__content--close-icon__accent': isPopup,
217
+ }) }, { children: _jsx(CloseIcon, { style: { color: generateColor(iconColor) } }) })));
218
+ };
219
+ var renderCloseIconSpace = function (_a) {
220
+ var elementRef = _a.elementRef, _b = _a.isContent, isContent = _b === void 0 ? false : _b;
221
+ var isContentCentered = checkIfContentIsCentered(elementRef);
222
+ var baseWidth = iconsWidth + MODAL_ICONS_PADDING_LEFT;
223
+ var spaceWidth = isContent ? baseWidth : baseWidth + MODAL_PADDING_RIGHT;
224
+ return (_jsx("div", { style: { '--close-icon-space-width': "".concat(spaceWidth, "px") }, className: classNames('close-icon-space', {
225
+ 'close-icon-space__content': isContent,
226
+ 'close-icon-space__centered': isContentCentered,
227
+ }) }));
228
+ };
229
+ var renderTitleIcons = function () {
230
+ return (isArray(titleIcons) ? titleIcons : [titleIcons]).map(function (titleIcon, index) { return (_jsx("div", __assign({ className: "smartapp-modal__content--title-icon" }, { children: titleIcon }), index)); });
231
+ };
232
+ var renderContextMenuIcon = function () {
233
+ if (contextMenuProps) {
234
+ var openMenu = contextMenuProps.openMenu, isMenuOpen = contextMenuProps.isMenuOpen, contextMenuFontFamily = contextMenuProps.fontFamily, remainingProps = __rest(contextMenuProps, ["openMenu", "isMenuOpen", "fontFamily"]);
235
+ return (_jsxs("div", __assign({ className: classNames('smartapp-modal__content--context-menu-icon', { 'smartapp-modal__content--context-menu-icon__active': isMenuOpen }), onClick: openMenu }, { children: [_jsx(MoreIcon, {}), _jsx(ContextMenu, __assign({ isMenuOpen: isMenuOpen }, remainingProps, { fontFamily: contextMenuFontFamily || fontFamily }))] })));
236
+ }
237
+ };
238
+ var renderBottomContent = function () {
239
+ return bottomContent && (_jsx("div", __assign({ ref: bottomContentRef, className: classNames('smartapp-modal__content--bottom', { 'smartapp-modal__content--bottom__border': isBottomContentBorderDisplayed }) }, { children: bottomContent })));
240
+ };
241
+ var modalContent = (_jsx("div", __assign({ ref: modalRef, className: classNames('smartapp-modal', {
242
+ 'smartapp-modal__bottom-sheet': shouldUseBottomSheet,
243
+ 'smartapp-modal__popup': isPopup,
244
+ }, className), style: __assign(__assign({}, generateFontFamilyStyle(fontFamily)), styles), onMouseDown: handleMouseDown }, { children: _jsxs("div", __assign({ className: generateClassNames({
245
+ className: 'smartapp-modal__content',
246
+ delimiter: '--',
247
+ additionalClassName: generateAdditionalClassName(),
248
+ }), style: contentStyles }, { children: [renderTitle(), _jsxs("div", __assign({ ref: iconsRef, className: classNames('smartapp-modal__content--icons', iconsClassName) }, { children: [titleIcons && renderTitleIcons(), renderContextMenuIcon(), renderCloseIcon()] })), _jsx(ScrollBar, { scrollbarRef: scrollbarRef, contentId: modalId, containerEdgeMargin: CONTAINER_EDGE_MARGIN, scrollerProps: { elementRef: handleScrollerRef }, content: _jsxs("div", __assign({ ref: isMobilePlatform(platform) ? handleSetContainerHeightMobile : handleSetContainerHeightWeb, className: classNames('smartapp-modal__content--scrollable', {
249
+ 'smartapp-modal__content--scrollable__pb': !bottomContent && !isResetPaddingBottom,
250
+ }) }, { children: [!title &&
251
+ !isCloseIconInvisible &&
252
+ renderCloseIconSpace({
253
+ elementRef: scrollableContentRef,
254
+ isContent: true,
255
+ }), _jsx("div", __assign({ ref: scrollableContentRef }, { children: content }))] })), containerHeight: containerHeight, trackYHeight: bottomContent ? DEFAULT_SCROLL_BAR_SIZE : SCROLL_BAR_HEIGHT_WITH_PADDING, handleScroll: handleScroll }), renderBottomContent()] })) })));
256
+ return isPopup ? modalContent : renderModal(modalContent);
257
+ };
258
+ export default Modal;
259
+ //# sourceMappingURL=Modal.js.map
@@ -0,0 +1 @@
1
+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ACnF,CAAC,iBAED,CAAC,KAAK;gCACL,CAAC,oBAAoB;gCACrB,oBAAoB,CAAC;oCACnB,UAAU,EAAE,oBAAoB;oCAChC,SAAS,EAAE,IAAI;iCAChB,CAAC,EACJ,uBAAK,GAAG,EAAE,oBAAoB,gBAAG,OAAO,IAAO,KAC3C,EAER,eAAe,EAAE,eAAe,EAChC,YAAY,EAAE,aAAa,CAAC,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAAC,8BAA8B,EACtF,YAAY,EAAE,YAAY,GAC1B,EACD,mBAAmB,EAAE,KAClB,IACF,CACP,CAAA;IAED,OAAO,OAAO,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,WAAW,CAAC,YAAY,CAAC,CAAA;AAC3D,CAAC,CAAA;AAED,eAAe,KAAK,CAAA"}
@@ -0,0 +1 @@
1
+ export { default } from './Modal';
@@ -0,0 +1,2 @@
1
+ export { default } from './Modal';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/Modal/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA"}
@@ -0,0 +1,41 @@
1
+ import React, { ReactElement, ReactNode, RefObject } from 'react';
2
+ import { BottomSheetProps } from 'alex.chus-react-spring-bottom-sheet';
3
+ import { IFontFamilyProps, IPlatformProps, TStyles } from '../../constants';
4
+ import { IContextMenuProps } from '../ContextMenu/types';
5
+ export interface IModalProps extends IPlatformProps, IFontFamilyProps {
6
+ isModalOpen: boolean;
7
+ isClosableOutside?: boolean;
8
+ isCloseIconHidden?: boolean;
9
+ isCloseButtonDisabled?: boolean;
10
+ isPopup?: boolean;
11
+ isBottomSheet?: boolean;
12
+ isDisabledBottomSheet?: boolean;
13
+ isResetPaddingBottom?: boolean;
14
+ isScrollBordersVisible?: boolean;
15
+ isNeedToScrollUp?: boolean;
16
+ modalId?: string;
17
+ contentId?: string;
18
+ modalRef?: RefObject<HTMLDivElement | null>;
19
+ content: ReactElement;
20
+ bottomContent?: ReactElement;
21
+ title?: ReactNode;
22
+ titleIcons?: ReactElement | ReactElement[];
23
+ popupClassName?: string;
24
+ className?: string;
25
+ titleClassName?: string;
26
+ iconsClassName?: string;
27
+ popupStyles?: TStyles;
28
+ styles?: TStyles;
29
+ titleStyles?: TStyles;
30
+ contentStyles?: TStyles;
31
+ iconColor?: string;
32
+ backgroundColor?: string;
33
+ modalMaxHeight?: number;
34
+ bottomSheetProps?: Partial<BottomSheetProps>;
35
+ externalBottomSheetScrollContainer?: RefObject<HTMLDivElement | null>;
36
+ contextMenuProps?: IContextMenuProps & {
37
+ openMenu: (event?: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
38
+ };
39
+ handleChangeTitleBorderDisplayed?: (isTitleBorderDisplayed: boolean) => void;
40
+ handleCloseModal: () => void;
41
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/Modal/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ import { INotificationProps } from './types';
2
+ import '../../styles/styles.scss';
3
+ export declare const INDEFINITELY_FULL_SCREEN_POSITION: {
4
+ right: string;
5
+ left: string;
6
+ };
7
+ declare const Notification: ({ theme, platform, fontFamily, id, type, isAutoHidden, isCloseIconHidden, layoutType, isAllIndefinitelyNeedToBeClosed, indefinitelyFullScreenPosition, hideDuration, distanceFromBottom, containerClassName, className, containerStyles, styles, title, avatar, text, subText, content, iconColor, action, onClose, }: INotificationProps) => import("react/jsx-runtime").JSX.Element;
8
+ export default Notification;
@@ -0,0 +1,199 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
13
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
14
+ if (ar || !(i in from)) {
15
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
16
+ ar[i] = from[i];
17
+ }
18
+ }
19
+ return to.concat(ar || Array.prototype.slice.call(from));
20
+ };
21
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
22
+ import { useEffect, useRef, useState } from 'react';
23
+ import { ToastContainer, cssTransition, toast } from 'react-toastify';
24
+ import classNames from 'classnames';
25
+ import { debounce } from 'lodash';
26
+ import Avatar from '../Avatar';
27
+ import { createSanitizedHtml, generateFontFamilyStyle, isFullScreen, isWebPlatform } from '../../helpers';
28
+ import { CANCEL_ACTION_TEXT, LAYOUT_TYPE, MOBILE_NOTIFICATION_DISTANCE_FROM_BOTTOM, PLATFORM, THEME, WEB_NOTIFICATION_DISTANCE_FROM_BOTTOM, } from '../../constants';
29
+ import { AVATAR_SIZES } from '../Avatar/types';
30
+ import { ReactComponent as MailIcon } from '../../assets/icons/mail.svg';
31
+ import { ReactComponent as NotificationCloseIcon } from '../../assets/icons/notification-close.svg';
32
+ import { ReactComponent as NotificationFailureIcon } from '../../assets/icons/notification-failure.svg';
33
+ import { ReactComponent as NotificationInfoIcon } from '../../assets/icons/notification-info.svg';
34
+ import { ReactComponent as NotificationSuccessIcon } from '../../assets/icons/notification-success.svg';
35
+ import { ReactComponent as UnreadMailsIcon } from '../../assets/icons/unread-mails.svg';
36
+ import '../../styles/styles.scss';
37
+ var AUTO_HIDDEN_CONTAINER_ID = 'autoHiddenContainerId';
38
+ var INDEFINITELY_CONTAINER_ID = 'indefinitelyContainerId';
39
+ var NOTIFICATION_HEIGHT = 46;
40
+ var MIN_CONTENT_HEIGHT = 18;
41
+ var TOP_ALIGN_CLASSNAME = 'smartapp-notification__top-align';
42
+ var TOAST_CONTAINER_CLASSNAME = 'Toastify__toast-container';
43
+ var TOAST_CONTAINER_FULL_SCREEN_CLASSNAME = 'Toastify__toast-container--full-screen';
44
+ var NOTIFICATION_ICON_CLASSNAME = 'smartapp-notification__icon';
45
+ var NOTIFICATION_TYPES = {
46
+ success: 'success',
47
+ info: 'info',
48
+ warning: 'warning',
49
+ error: 'error',
50
+ failure: 'failure',
51
+ mail: 'mail',
52
+ mailMulti: 'mail-multi',
53
+ custom: 'custom',
54
+ };
55
+ var generateNotificationIcon = function (type, color) {
56
+ var style = color ? { color: color } : {};
57
+ var iconProps = { className: NOTIFICATION_ICON_CLASSNAME, style: style };
58
+ switch (type) {
59
+ case NOTIFICATION_TYPES.success:
60
+ return _jsx(NotificationSuccessIcon, __assign({}, iconProps));
61
+ case NOTIFICATION_TYPES.failure:
62
+ return _jsx(NotificationFailureIcon, __assign({}, iconProps));
63
+ default:
64
+ return _jsx(NotificationInfoIcon, __assign({}, iconProps));
65
+ }
66
+ };
67
+ export var INDEFINITELY_FULL_SCREEN_POSITION = {
68
+ right: 'right',
69
+ left: 'left',
70
+ };
71
+ var Notification = function (_a) {
72
+ var _b = _a.theme, theme = _b === void 0 ? THEME.default : _b, _c = _a.platform, platform = _c === void 0 ? PLATFORM.web : _c, fontFamily = _a.fontFamily, id = _a.id, _d = _a.type, type = _d === void 0 ? 'success' : _d, _e = _a.isAutoHidden, isAutoHidden = _e === void 0 ? true : _e, _f = _a.isCloseIconHidden, isCloseIconHidden = _f === void 0 ? false : _f, _g = _a.layoutType, layoutType = _g === void 0 ? LAYOUT_TYPE.minimal : _g, _h = _a.isAllIndefinitelyNeedToBeClosed, isAllIndefinitelyNeedToBeClosed = _h === void 0 ? false : _h, _j = _a.indefinitelyFullScreenPosition, indefinitelyFullScreenPosition = _j === void 0 ? 'right' : _j, _k = _a.hideDuration, hideDuration = _k === void 0 ? 3000 : _k, distanceFromBottom = _a.distanceFromBottom, containerClassName = _a.containerClassName, className = _a.className, containerStyles = _a.containerStyles, styles = _a.styles, title = _a.title, avatar = _a.avatar, text = _a.text, subText = _a.subText, content = _a.content, iconColor = _a.iconColor, action = _a.action, onClose = _a.onClose;
73
+ var notificationRef = useRef(null);
74
+ var contentRef = useRef(null);
75
+ var contentSpanRef = useRef(null);
76
+ var toastContainerRef = useRef(null);
77
+ var _l = useState([]), indefinitelyIds = _l[0], setIndefinitelyIds = _l[1];
78
+ var isLayoutFullScreen = isFullScreen(layoutType);
79
+ var isCloseIconVisible = type !== NOTIFICATION_TYPES.warning && !isCloseIconHidden;
80
+ var calculateDistanceFromBottom = function () {
81
+ if (distanceFromBottom)
82
+ return distanceFromBottom;
83
+ return isWebPlatform(platform) ? WEB_NOTIFICATION_DISTANCE_FROM_BOTTOM : MOBILE_NOTIFICATION_DISTANCE_FROM_BOTTOM;
84
+ };
85
+ var calculateAutoHiddenDistanceFromBottom = function () {
86
+ var distanceFromBottom = calculateDistanceFromBottom();
87
+ return indefinitelyFullScreenPosition === INDEFINITELY_FULL_SCREEN_POSITION.right
88
+ ? distanceFromBottom + indefinitelyIds.length * NOTIFICATION_HEIGHT
89
+ : distanceFromBottom;
90
+ };
91
+ var notificationAnimation = cssTransition({
92
+ enter: 'notification-enter-animation',
93
+ exit: 'notification-exit-animation',
94
+ appendPosition: true,
95
+ });
96
+ var handleActionClick = function (_a) {
97
+ var notificationId = _a.notificationId, action = _a.action;
98
+ toast.dismiss(notificationId);
99
+ action === null || action === void 0 ? void 0 : action();
100
+ };
101
+ var handleClickCloseIcon = function (_a) {
102
+ var event = _a.event, notificationId = _a.notificationId;
103
+ event.stopPropagation();
104
+ toast.dismiss(notificationId);
105
+ };
106
+ var renderCloseIcon = function (notificationId) {
107
+ return isCloseIconVisible && (_jsx("div", __assign({ className: "smartapp-notification__icon smartapp-notification__icon--clickable" }, { children: _jsx(NotificationCloseIcon, { onClick: function (event) { return handleClickCloseIcon({ event: event, notificationId: notificationId }); } }) })));
108
+ };
109
+ var renderMailNotificationContent = function (notificationId) { return (_jsxs("div", __assign({ onClick: function () { return handleActionClick({ notificationId: notificationId, action: action === null || action === void 0 ? void 0 : action.onClick }); } }, { children: [_jsxs("div", __assign({ className: "smartapp-notification__title" }, { children: [_jsxs("div", { children: [_jsx(MailIcon, {}), _jsx("div", { children: title })] }), _jsx(NotificationCloseIcon, { onClick: function (event) { return handleClickCloseIcon({ event: event, notificationId: notificationId }); } })] })), _jsxs("div", __assign({ className: "smartapp-notification__body" }, { children: [avatar && _jsx(Avatar, { fontFamily: fontFamily, size: AVATAR_SIZES.size_40, avatar: avatar.src, username: avatar.username }), _jsxs("div", __assign({ className: "smartapp-notification__body--text" }, { children: [text && _jsx("div", { children: text }), _jsx("div", { children: subText })] }))] }))] }))); };
110
+ var renderMultiMailNotificationContent = function (notificationId) { return (_jsxs("div", __assign({ className: "smartapp-notification__multi" }, { children: [_jsxs("div", __assign({ className: "smartapp-notification__multi--content" }, { children: [_jsx(UnreadMailsIcon, {}), _jsxs("div", __assign({ className: "smartapp-notification__multi--content__text" }, { children: [text && (_jsx("div", { children: _jsx("span", { dangerouslySetInnerHTML: createSanitizedHtml(text) }) })), (action === null || action === void 0 ? void 0 : action.text) && (_jsx("div", __assign({ className: "smartapp-notification__multi--content__action", onClick: function () { return handleActionClick({ notificationId: notificationId, action: action === null || action === void 0 ? void 0 : action.onClick }); } }, { children: action.text })))] }))] })), _jsx(NotificationCloseIcon, { className: "smartapp-notification__multi--close-icon", onClick: function (event) { return handleClickCloseIcon({ event: event, notificationId: notificationId }); } })] }))); };
111
+ var renderNotificationAction = function (_a) {
112
+ var notificationId = _a.notificationId, _b = _a.action, text = _b.text, color = _b.color, onClick = _b.onClick;
113
+ return (_jsx("div", __assign({ className: "smartapp-notification__content--action", style: { color: color }, onClick: function () { return handleActionClick({ notificationId: notificationId, action: onClick }); } }, { children: text || CANCEL_ACTION_TEXT })));
114
+ };
115
+ var renderNotificationContent = function (notificationId) {
116
+ switch (type) {
117
+ case NOTIFICATION_TYPES.mail:
118
+ return renderMailNotificationContent(notificationId);
119
+ case NOTIFICATION_TYPES.mailMulti:
120
+ return renderMultiMailNotificationContent(notificationId);
121
+ case NOTIFICATION_TYPES.custom:
122
+ return content || _jsx("div", {});
123
+ default:
124
+ return (_jsxs("div", __assign({ ref: notificationRef, className: classNames('smartapp-notification', { 'smartapp-notification--close-icon-hidden': !isCloseIconVisible }) }, { children: [generateNotificationIcon(type, iconColor), _jsxs("div", __assign({ ref: contentRef, className: "smartapp-notification__content" }, { children: [text && (_jsx("div", { children: _jsx("span", { ref: contentSpanRef, dangerouslySetInnerHTML: createSanitizedHtml(text) }) })), action && renderNotificationAction({ notificationId: notificationId, action: action })] })), renderCloseIcon(notificationId)] })));
125
+ }
126
+ };
127
+ var renderToastContainer = function (_a) {
128
+ var containerId = _a.containerId, distanceFromBottom = _a.distanceFromBottom;
129
+ var isIndefinitelyContainer = containerId === INDEFINITELY_CONTAINER_ID;
130
+ var fullScreenPosition = isIndefinitelyContainer ? "bottom-".concat(indefinitelyFullScreenPosition) : 'top-right';
131
+ return (_jsx(ToastContainer, { ref: toastContainerRef, enableMultiContainer: true, containerId: containerId, hideProgressBar: true, draggable: false, closeButton: false, pauseOnHover: false, pauseOnFocusLoss: false, closeOnClick: false, className: classNames("Toastify__toast-container--".concat(theme), {
132
+ 'Toastify__toast-container--full-screen': isLayoutFullScreen,
133
+ 'Toastify__toast-container--full-screen__indefinitely-right': isLayoutFullScreen && isIndefinitelyContainer && indefinitelyFullScreenPosition === INDEFINITELY_FULL_SCREEN_POSITION.right,
134
+ 'Toastify__toast-container--full-screen__indefinitely-left': isLayoutFullScreen && isIndefinitelyContainer && indefinitelyFullScreenPosition === INDEFINITELY_FULL_SCREEN_POSITION.left,
135
+ }, containerClassName), style: __assign(__assign({ '--distance-from-bottom': "".concat(distanceFromBottom, "px") }, generateFontFamilyStyle(fontFamily)), containerStyles), transition: notificationAnimation, position: isLayoutFullScreen ? fullScreenPosition : 'bottom-center' }));
136
+ };
137
+ var handleAddContentResizeObserver = function () {
138
+ var notificationRefCurrent = notificationRef.current;
139
+ var contentRefCurrent = contentRef.current;
140
+ var contentSpanRefCurrent = contentSpanRef.current;
141
+ var contentSpanParentElement = contentSpanRefCurrent === null || contentSpanRefCurrent === void 0 ? void 0 : contentSpanRefCurrent.parentElement;
142
+ var toastContainerElement = contentRefCurrent === null || contentRefCurrent === void 0 ? void 0 : contentRefCurrent.closest(".".concat(TOAST_CONTAINER_CLASSNAME));
143
+ if (!notificationRefCurrent || !contentRefCurrent || !contentSpanRefCurrent || !contentSpanParentElement || !toastContainerElement)
144
+ return null;
145
+ var notificationRefClassList = notificationRefCurrent.classList;
146
+ var toastContainerElementClassList = toastContainerElement.classList;
147
+ var resizeObserver = new ResizeObserver(debounce(function () {
148
+ var spanWidth = contentSpanRefCurrent.getBoundingClientRect().width;
149
+ var contentHeight = contentRefCurrent.getBoundingClientRect().height;
150
+ var spanParentWidth = toastContainerElementClassList.contains(TOAST_CONTAINER_FULL_SCREEN_CLASSNAME) ? "".concat(spanWidth, "px") : '';
151
+ contentHeight > MIN_CONTENT_HEIGHT ? notificationRefClassList.add(TOP_ALIGN_CLASSNAME) : notificationRefClassList.remove(TOP_ALIGN_CLASSNAME);
152
+ contentSpanParentElement.style.width = spanParentWidth;
153
+ }));
154
+ resizeObserver.observe(contentRefCurrent);
155
+ return resizeObserver;
156
+ };
157
+ useEffect(function () {
158
+ if (id) {
159
+ var contentResizeObserver_1;
160
+ if (toast.isActive(id))
161
+ return toast.update(id, {
162
+ containerId: AUTO_HIDDEN_CONTAINER_ID,
163
+ autoClose: hideDuration,
164
+ render: renderNotificationContent(id),
165
+ });
166
+ !isAutoHidden && setIndefinitelyIds(function (prevIds) { return __spreadArray(__spreadArray([], prevIds, true), [id], false); });
167
+ toast(renderNotificationContent(id), {
168
+ containerId: !isAutoHidden ? INDEFINITELY_CONTAINER_ID : AUTO_HIDDEN_CONTAINER_ID,
169
+ toastId: id,
170
+ autoClose: isAutoHidden ? hideDuration : false,
171
+ className: classNames("Toastify__toast--".concat(type), className),
172
+ style: styles,
173
+ onOpen: function () { return (contentResizeObserver_1 = handleAddContentResizeObserver()); },
174
+ onClose: function () {
175
+ onClose === null || onClose === void 0 ? void 0 : onClose(id);
176
+ contentResizeObserver_1 === null || contentResizeObserver_1 === void 0 ? void 0 : contentResizeObserver_1.disconnect();
177
+ },
178
+ });
179
+ }
180
+ // eslint-disable-next-line
181
+ }, [id, hideDuration]);
182
+ useEffect(function () {
183
+ if (isAllIndefinitelyNeedToBeClosed)
184
+ indefinitelyIds.forEach(function (indefinitelyId) { return toast.dismiss(indefinitelyId); });
185
+ }, [indefinitelyIds, isAllIndefinitelyNeedToBeClosed]);
186
+ useEffect(function () {
187
+ if (isAllIndefinitelyNeedToBeClosed)
188
+ setIndefinitelyIds([]);
189
+ }, [isAllIndefinitelyNeedToBeClosed]);
190
+ return (_jsxs(_Fragment, { children: [renderToastContainer({
191
+ containerId: AUTO_HIDDEN_CONTAINER_ID,
192
+ distanceFromBottom: calculateAutoHiddenDistanceFromBottom(),
193
+ }), renderToastContainer({
194
+ containerId: INDEFINITELY_CONTAINER_ID,
195
+ distanceFromBottom: calculateDistanceFromBottom(),
196
+ })] }));
197
+ };
198
+ export default Notification;
199
+ //# sourceMappingURL=Notification.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Notification.js","sourceRoot":"","sources":["../../../../src/сomponents/Notification/Notification.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC1D,OAAO,EAAE,cAAc,EAAiB,aAAa,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AACpF,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAA;AACjC,OAAO,MAAM,MAAM,WAAW,CAAA;AAC9B,OAAO,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URL=index.js.map