@expressms/smartapp-ui 2.8.2-alpha.1 → 2.8.2-alpha.10

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 (447) hide show
  1. package/build/main/components/Charts/ChartBar/ChartBar.d.ts +4 -0
  2. package/build/main/components/Charts/ChartLine/ChartLine.d.ts +4 -0
  3. package/build/main/components/Charts/ChartPie/ChartPie.d.ts +4 -0
  4. package/build/main/components/Charts/index.d.ts +3 -0
  5. package/build/main/components/Skeleton/Skeleton.d.ts +4 -0
  6. package/build/main/components/Skeleton/index.d.ts +1 -0
  7. package/build/main/{/321/201omponents → components}/UserDropdown/helpers.d.ts +0 -1
  8. package/build/main/constants/constants.d.ts +0 -1
  9. package/build/main/hooks/useModal.d.ts +0 -1
  10. package/build/main/index.d.ts +34 -3
  11. package/package.json +65 -58
  12. package/build/main/assets/icons/arrow-back.svg +0 -3
  13. package/build/main/assets/icons/arrow-down.svg +0 -3
  14. package/build/main/assets/icons/arrow-up.svg +0 -3
  15. package/build/main/assets/icons/attachment-loader.svg +0 -3
  16. package/build/main/assets/icons/button-loader.svg +0 -3
  17. package/build/main/assets/icons/cancel-cross.svg +0 -3
  18. package/build/main/assets/icons/check-mark.svg +0 -4
  19. package/build/main/assets/icons/clear.svg +0 -3
  20. package/build/main/assets/icons/close-stories.svg +0 -4
  21. package/build/main/assets/icons/close.svg +0 -10
  22. package/build/main/assets/icons/contact-info.svg +0 -12
  23. package/build/main/assets/icons/corporate-user.svg +0 -10
  24. package/build/main/assets/icons/crown.svg +0 -5
  25. package/build/main/assets/icons/delete-chip.svg +0 -3
  26. package/build/main/assets/icons/download.svg +0 -4
  27. package/build/main/assets/icons/error.svg +0 -5
  28. package/build/main/assets/icons/external-link.svg +0 -3
  29. package/build/main/assets/icons/eye-off.svg +0 -10
  30. package/build/main/assets/icons/eye.svg +0 -10
  31. package/build/main/assets/icons/file.svg +0 -3
  32. package/build/main/assets/icons/info.svg +0 -5
  33. package/build/main/assets/icons/loader.svg +0 -3
  34. package/build/main/assets/icons/logout.svg +0 -4
  35. package/build/main/assets/icons/magnifying-glass.svg +0 -3
  36. package/build/main/assets/icons/mail.svg +0 -3
  37. package/build/main/assets/icons/more.svg +0 -3
  38. package/build/main/assets/icons/my-contact-user.svg +0 -10
  39. package/build/main/assets/icons/notification-close.svg +0 -3
  40. package/build/main/assets/icons/notification-error.svg +0 -3
  41. package/build/main/assets/icons/notification-failure.svg +0 -3
  42. package/build/main/assets/icons/notification-info.svg +0 -5
  43. package/build/main/assets/icons/notification-success.svg +0 -4
  44. package/build/main/assets/icons/notification-warning.svg +0 -5
  45. package/build/main/assets/icons/order.svg +0 -6
  46. package/build/main/assets/icons/plus.svg +0 -4
  47. package/build/main/assets/icons/private.svg +0 -12
  48. package/build/main/assets/icons/refresh.svg +0 -3
  49. package/build/main/assets/icons/story-loader.svg +0 -3
  50. package/build/main/assets/icons/tick.svg +0 -10
  51. package/build/main/assets/icons/trash.svg +0 -3
  52. package/build/main/assets/icons/unread-mails.svg +0 -4
  53. package/build/main/assets/storybook/index.js +0 -21
  54. package/build/main/assets/storybook/index.js.map +0 -1
  55. package/build/main/constants/constants.js +0 -162
  56. package/build/main/constants/constants.js.map +0 -1
  57. package/build/main/constants/index.js +0 -3
  58. package/build/main/constants/index.js.map +0 -1
  59. package/build/main/constants/types.js +0 -2
  60. package/build/main/constants/types.js.map +0 -1
  61. package/build/main/helpers/index.js +0 -89
  62. package/build/main/helpers/index.js.map +0 -1
  63. package/build/main/hooks/useModal.js +0 -60
  64. package/build/main/hooks/useModal.js.map +0 -1
  65. package/build/main/index.js +0 -4
  66. package/build/main/index.js.map +0 -1
  67. package/build/main/styles/index.js +0 -2
  68. package/build/main/styles/index.js.map +0 -1
  69. package/build/main/styles/main.js +0 -0
  70. package/build/main/styles/styles.scss +0 -14
  71. package/build/main//321/201omponents/ActionModal/ActionModal.js +0 -55
  72. package/build/main//321/201omponents/ActionModal/ActionModal.js.map +0 -1
  73. package/build/main//321/201omponents/ActionModal/index.js +0 -2
  74. package/build/main//321/201omponents/ActionModal/index.js.map +0 -1
  75. package/build/main//321/201omponents/ActionModal/types.js +0 -2
  76. package/build/main//321/201omponents/ActionModal/types.js.map +0 -1
  77. package/build/main//321/201omponents/AttachedFile/AttachedFile.js +0 -60
  78. package/build/main//321/201omponents/AttachedFile/AttachedFile.js.map +0 -1
  79. package/build/main//321/201omponents/AttachedFile/index.js +0 -2
  80. package/build/main//321/201omponents/AttachedFile/index.js.map +0 -1
  81. package/build/main//321/201omponents/AttachedFile/types.js +0 -2
  82. package/build/main//321/201omponents/AttachedFile/types.js.map +0 -1
  83. package/build/main//321/201omponents/Avatar/Avatar.js +0 -131
  84. package/build/main//321/201omponents/Avatar/Avatar.js.map +0 -1
  85. package/build/main//321/201omponents/Avatar/index.js +0 -2
  86. package/build/main//321/201omponents/Avatar/index.js.map +0 -1
  87. package/build/main//321/201omponents/Avatar/types.js +0 -9
  88. package/build/main//321/201omponents/Avatar/types.js.map +0 -1
  89. package/build/main//321/201omponents/Button/Button.js +0 -57
  90. package/build/main//321/201omponents/Button/Button.js.map +0 -1
  91. package/build/main//321/201omponents/Button/index.js +0 -2
  92. package/build/main//321/201omponents/Button/index.js.map +0 -1
  93. package/build/main//321/201omponents/Button/types.js +0 -11
  94. package/build/main//321/201omponents/Button/types.js.map +0 -1
  95. package/build/main//321/201omponents/CachedImage/CachedImage.js +0 -59
  96. package/build/main//321/201omponents/CachedImage/CachedImage.js.map +0 -1
  97. package/build/main//321/201omponents/CachedImage/helpers.js +0 -40
  98. package/build/main//321/201omponents/CachedImage/helpers.js.map +0 -1
  99. package/build/main//321/201omponents/CachedImage/index.js +0 -2
  100. package/build/main//321/201omponents/CachedImage/index.js.map +0 -1
  101. package/build/main//321/201omponents/CachedImage/types.js +0 -2
  102. package/build/main//321/201omponents/CachedImage/types.js.map +0 -1
  103. package/build/main//321/201omponents/Calendar/Calendar.js +0 -48
  104. package/build/main//321/201omponents/Calendar/Calendar.js.map +0 -1
  105. package/build/main//321/201omponents/Calendar/index.js +0 -2
  106. package/build/main//321/201omponents/Calendar/index.js.map +0 -1
  107. package/build/main//321/201omponents/Calendar/types.js +0 -2
  108. package/build/main//321/201omponents/Calendar/types.js.map +0 -1
  109. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.d.ts +0 -3
  110. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js +0 -45
  111. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js.map +0 -1
  112. package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.js +0 -71
  113. package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.js.map +0 -1
  114. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.d.ts +0 -3
  115. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js +0 -40
  116. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js.map +0 -1
  117. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.d.ts +0 -3
  118. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js +0 -62
  119. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js.map +0 -1
  120. package/build/main//321/201omponents/Charts/colors.js +0 -4
  121. package/build/main//321/201omponents/Charts/colors.js.map +0 -1
  122. package/build/main//321/201omponents/Charts/constants.js +0 -43
  123. package/build/main//321/201omponents/Charts/constants.js.map +0 -1
  124. package/build/main//321/201omponents/Charts/helpers.js +0 -73
  125. package/build/main//321/201omponents/Charts/helpers.js.map +0 -1
  126. package/build/main//321/201omponents/Charts/index.d.ts +0 -3
  127. package/build/main//321/201omponents/Charts/index.js +0 -4
  128. package/build/main//321/201omponents/Charts/index.js.map +0 -1
  129. package/build/main//321/201omponents/Charts/types.js +0 -2
  130. package/build/main//321/201omponents/Charts/types.js.map +0 -1
  131. package/build/main//321/201omponents/Charts/useEvents.js +0 -45
  132. package/build/main//321/201omponents/Charts/useEvents.js.map +0 -1
  133. package/build/main//321/201omponents/Charts/usePieEvents.js +0 -57
  134. package/build/main//321/201omponents/Charts/usePieEvents.js.map +0 -1
  135. package/build/main//321/201omponents/Checkbox/Checkbox.js +0 -38
  136. package/build/main//321/201omponents/Checkbox/Checkbox.js.map +0 -1
  137. package/build/main//321/201omponents/Checkbox/index.js +0 -2
  138. package/build/main//321/201omponents/Checkbox/index.js.map +0 -1
  139. package/build/main//321/201omponents/Checkbox/types.js +0 -2
  140. package/build/main//321/201omponents/Checkbox/types.js.map +0 -1
  141. package/build/main//321/201omponents/Chip/Chip.js +0 -35
  142. package/build/main//321/201omponents/Chip/Chip.js.map +0 -1
  143. package/build/main//321/201omponents/Chip/index.js +0 -2
  144. package/build/main//321/201omponents/Chip/index.js.map +0 -1
  145. package/build/main//321/201omponents/Chip/types.js +0 -2
  146. package/build/main//321/201omponents/Chip/types.js.map +0 -1
  147. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js +0 -70
  148. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js.map +0 -1
  149. package/build/main//321/201omponents/ConfirmationModal/index.js +0 -2
  150. package/build/main//321/201omponents/ConfirmationModal/index.js.map +0 -1
  151. package/build/main//321/201omponents/ConfirmationModal/types.js +0 -2
  152. package/build/main//321/201omponents/ConfirmationModal/types.js.map +0 -1
  153. package/build/main//321/201omponents/ContextMenu/ContextMenu.js +0 -75
  154. package/build/main//321/201omponents/ContextMenu/ContextMenu.js.map +0 -1
  155. package/build/main//321/201omponents/ContextMenu/index.js +0 -2
  156. package/build/main//321/201omponents/ContextMenu/index.js.map +0 -1
  157. package/build/main//321/201omponents/ContextMenu/types.js +0 -2
  158. package/build/main//321/201omponents/ContextMenu/types.js.map +0 -1
  159. package/build/main//321/201omponents/CustomSelect/CustomSelect.js +0 -220
  160. package/build/main//321/201omponents/CustomSelect/CustomSelect.js.map +0 -1
  161. package/build/main//321/201omponents/CustomSelect/index.js +0 -2
  162. package/build/main//321/201omponents/CustomSelect/index.js.map +0 -1
  163. package/build/main//321/201omponents/CustomSelect/selectStyles.js +0 -67
  164. package/build/main//321/201omponents/CustomSelect/selectStyles.js.map +0 -1
  165. package/build/main//321/201omponents/CustomSelect/types.js +0 -2
  166. package/build/main//321/201omponents/CustomSelect/types.js.map +0 -1
  167. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js +0 -57
  168. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js.map +0 -1
  169. package/build/main//321/201omponents/CustomSelectProfiles/index.js +0 -2
  170. package/build/main//321/201omponents/CustomSelectProfiles/index.js.map +0 -1
  171. package/build/main//321/201omponents/CustomSelectProfiles/types.js +0 -2
  172. package/build/main//321/201omponents/CustomSelectProfiles/types.js.map +0 -1
  173. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js +0 -57
  174. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js.map +0 -1
  175. package/build/main//321/201omponents/DragAndDrop/index.js +0 -2
  176. package/build/main//321/201omponents/DragAndDrop/index.js.map +0 -1
  177. package/build/main//321/201omponents/DragAndDrop/types.js +0 -2
  178. package/build/main//321/201omponents/DragAndDrop/types.js.map +0 -1
  179. package/build/main//321/201omponents/DraggablePopup/DraggablePopup.js +0 -124
  180. package/build/main//321/201omponents/DraggablePopup/DraggablePopup.js.map +0 -1
  181. package/build/main//321/201omponents/DraggablePopup/index.js +0 -2
  182. package/build/main//321/201omponents/DraggablePopup/index.js.map +0 -1
  183. package/build/main//321/201omponents/DraggablePopup/types.js +0 -2
  184. package/build/main//321/201omponents/DraggablePopup/types.js.map +0 -1
  185. package/build/main//321/201omponents/Error/Error.js +0 -23
  186. package/build/main//321/201omponents/Error/Error.js.map +0 -1
  187. package/build/main//321/201omponents/Error/index.js +0 -2
  188. package/build/main//321/201omponents/Error/index.js.map +0 -1
  189. package/build/main//321/201omponents/Error/types.js +0 -2
  190. package/build/main//321/201omponents/Error/types.js.map +0 -1
  191. package/build/main//321/201omponents/Flex/Flex.js +0 -49
  192. package/build/main//321/201omponents/Flex/Flex.js.map +0 -1
  193. package/build/main//321/201omponents/Flex/HFlex/HFlex.js +0 -16
  194. package/build/main//321/201omponents/Flex/HFlex/HFlex.js.map +0 -1
  195. package/build/main//321/201omponents/Flex/HFlex/index.js +0 -2
  196. package/build/main//321/201omponents/Flex/HFlex/index.js.map +0 -1
  197. package/build/main//321/201omponents/Flex/VFlex/VFlex.js +0 -16
  198. package/build/main//321/201omponents/Flex/VFlex/VFlex.js.map +0 -1
  199. package/build/main//321/201omponents/Flex/VFlex/index.js +0 -2
  200. package/build/main//321/201omponents/Flex/VFlex/index.js.map +0 -1
  201. package/build/main//321/201omponents/Flex/index.js +0 -4
  202. package/build/main//321/201omponents/Flex/index.js.map +0 -1
  203. package/build/main//321/201omponents/Flex/types.js +0 -2
  204. package/build/main//321/201omponents/Flex/types.js.map +0 -1
  205. package/build/main//321/201omponents/Header/Header.js +0 -124
  206. package/build/main//321/201omponents/Header/Header.js.map +0 -1
  207. package/build/main//321/201omponents/Header/index.js +0 -2
  208. package/build/main//321/201omponents/Header/index.js.map +0 -1
  209. package/build/main//321/201omponents/Header/types.js +0 -2
  210. package/build/main//321/201omponents/Header/types.js.map +0 -1
  211. package/build/main//321/201omponents/Input/Input.js +0 -207
  212. package/build/main//321/201omponents/Input/Input.js.map +0 -1
  213. package/build/main//321/201omponents/Input/index.js +0 -2
  214. package/build/main//321/201omponents/Input/index.js.map +0 -1
  215. package/build/main//321/201omponents/Input/types.js +0 -2
  216. package/build/main//321/201omponents/Input/types.js.map +0 -1
  217. package/build/main//321/201omponents/ListItem/ListItem.js +0 -208
  218. package/build/main//321/201omponents/ListItem/ListItem.js.map +0 -1
  219. package/build/main//321/201omponents/ListItem/index.js +0 -2
  220. package/build/main//321/201omponents/ListItem/index.js.map +0 -1
  221. package/build/main//321/201omponents/ListItem/types.js +0 -2
  222. package/build/main//321/201omponents/ListItem/types.js.map +0 -1
  223. package/build/main//321/201omponents/Loader/Loader.js +0 -44
  224. package/build/main//321/201omponents/Loader/Loader.js.map +0 -1
  225. package/build/main//321/201omponents/Loader/index.js +0 -2
  226. package/build/main//321/201omponents/Loader/index.js.map +0 -1
  227. package/build/main//321/201omponents/Loader/types.js +0 -2
  228. package/build/main//321/201omponents/Loader/types.js.map +0 -1
  229. package/build/main//321/201omponents/Modal/Modal.js +0 -125
  230. package/build/main//321/201omponents/Modal/Modal.js.map +0 -1
  231. package/build/main//321/201omponents/Modal/index.js +0 -2
  232. package/build/main//321/201omponents/Modal/index.js.map +0 -1
  233. package/build/main//321/201omponents/Modal/types.js +0 -2
  234. package/build/main//321/201omponents/Modal/types.js.map +0 -1
  235. package/build/main//321/201omponents/Notification/Notification.js +0 -197
  236. package/build/main//321/201omponents/Notification/Notification.js.map +0 -1
  237. package/build/main//321/201omponents/Notification/index.js +0 -2
  238. package/build/main//321/201omponents/Notification/index.js.map +0 -1
  239. package/build/main//321/201omponents/Notification/types.js +0 -2
  240. package/build/main//321/201omponents/Notification/types.js.map +0 -1
  241. package/build/main//321/201omponents/Profile/Profile.js +0 -42
  242. package/build/main//321/201omponents/Profile/Profile.js.map +0 -1
  243. package/build/main//321/201omponents/Profile/index.js +0 -2
  244. package/build/main//321/201omponents/Profile/index.js.map +0 -1
  245. package/build/main//321/201omponents/Profile/types.js +0 -2
  246. package/build/main//321/201omponents/Profile/types.js.map +0 -1
  247. package/build/main//321/201omponents/ProgressBar/ProgressBar.js +0 -66
  248. package/build/main//321/201omponents/ProgressBar/ProgressBar.js.map +0 -1
  249. package/build/main//321/201omponents/ProgressBar/index.js +0 -2
  250. package/build/main//321/201omponents/ProgressBar/index.js.map +0 -1
  251. package/build/main//321/201omponents/ProgressBar/types.js +0 -2
  252. package/build/main//321/201omponents/ProgressBar/types.js.map +0 -1
  253. package/build/main//321/201omponents/RadioButton/RadioButton.js +0 -37
  254. package/build/main//321/201omponents/RadioButton/RadioButton.js.map +0 -1
  255. package/build/main//321/201omponents/RadioButton/index.js +0 -2
  256. package/build/main//321/201omponents/RadioButton/index.js.map +0 -1
  257. package/build/main//321/201omponents/RadioButton/types.js +0 -2
  258. package/build/main//321/201omponents/RadioButton/types.js.map +0 -1
  259. package/build/main//321/201omponents/ScrollBar/ScrollBar.js +0 -63
  260. package/build/main//321/201omponents/ScrollBar/ScrollBar.js.map +0 -1
  261. package/build/main//321/201omponents/ScrollBar/index.js +0 -2
  262. package/build/main//321/201omponents/ScrollBar/index.js.map +0 -1
  263. package/build/main//321/201omponents/ScrollBar/types.js +0 -2
  264. package/build/main//321/201omponents/ScrollBar/types.js.map +0 -1
  265. package/build/main//321/201omponents/Skeleton/Skeleton.d.ts +0 -3
  266. package/build/main//321/201omponents/Skeleton/Skeleton.js +0 -58
  267. package/build/main//321/201omponents/Skeleton/Skeleton.js.map +0 -1
  268. package/build/main//321/201omponents/Skeleton/index.d.ts +0 -1
  269. package/build/main//321/201omponents/Skeleton/index.js +0 -2
  270. package/build/main//321/201omponents/Skeleton/index.js.map +0 -1
  271. package/build/main//321/201omponents/Skeleton/types.js +0 -2
  272. package/build/main//321/201omponents/Skeleton/types.js.map +0 -1
  273. package/build/main//321/201omponents/Stories/Stories.js +0 -296
  274. package/build/main//321/201omponents/Stories/Stories.js.map +0 -1
  275. package/build/main//321/201omponents/Stories/index.js +0 -2
  276. package/build/main//321/201omponents/Stories/index.js.map +0 -1
  277. package/build/main//321/201omponents/Stories/types.js +0 -11
  278. package/build/main//321/201omponents/Stories/types.js.map +0 -1
  279. package/build/main//321/201omponents/Switcher/Switcher.js +0 -34
  280. package/build/main//321/201omponents/Switcher/Switcher.js.map +0 -1
  281. package/build/main//321/201omponents/Switcher/index.js +0 -2
  282. package/build/main//321/201omponents/Switcher/index.js.map +0 -1
  283. package/build/main//321/201omponents/Switcher/types.js +0 -2
  284. package/build/main//321/201omponents/Switcher/types.js.map +0 -1
  285. package/build/main//321/201omponents/SyncLoader/SyncLoader.js +0 -65
  286. package/build/main//321/201omponents/SyncLoader/SyncLoader.js.map +0 -1
  287. package/build/main//321/201omponents/SyncLoader/index.js +0 -2
  288. package/build/main//321/201omponents/SyncLoader/index.js.map +0 -1
  289. package/build/main//321/201omponents/SyncLoader/types.js +0 -2
  290. package/build/main//321/201omponents/SyncLoader/types.js.map +0 -1
  291. package/build/main//321/201omponents/Textarea/Textarea.js +0 -96
  292. package/build/main//321/201omponents/Textarea/Textarea.js.map +0 -1
  293. package/build/main//321/201omponents/Textarea/index.js +0 -2
  294. package/build/main//321/201omponents/Textarea/index.js.map +0 -1
  295. package/build/main//321/201omponents/Textarea/types.js +0 -2
  296. package/build/main//321/201omponents/Textarea/types.js.map +0 -1
  297. package/build/main//321/201omponents/Toggle/Toggle.js +0 -38
  298. package/build/main//321/201omponents/Toggle/Toggle.js.map +0 -1
  299. package/build/main//321/201omponents/Toggle/index.js +0 -2
  300. package/build/main//321/201omponents/Toggle/index.js.map +0 -1
  301. package/build/main//321/201omponents/Toggle/types.js +0 -2
  302. package/build/main//321/201omponents/Toggle/types.js.map +0 -1
  303. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js +0 -31
  304. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js.map +0 -1
  305. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js +0 -70
  306. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js.map +0 -1
  307. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js +0 -23
  308. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js.map +0 -1
  309. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js +0 -81
  310. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js.map +0 -1
  311. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js +0 -40
  312. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js.map +0 -1
  313. package/build/main//321/201omponents/UserDropdown/Option/Option.js +0 -91
  314. package/build/main//321/201omponents/UserDropdown/Option/Option.js.map +0 -1
  315. package/build/main//321/201omponents/UserDropdown/UserDropdown.js +0 -434
  316. package/build/main//321/201omponents/UserDropdown/UserDropdown.js.map +0 -1
  317. package/build/main//321/201omponents/UserDropdown/helpers.js +0 -93
  318. package/build/main//321/201omponents/UserDropdown/helpers.js.map +0 -1
  319. package/build/main//321/201omponents/UserDropdown/index.js +0 -2
  320. package/build/main//321/201omponents/UserDropdown/index.js.map +0 -1
  321. package/build/main//321/201omponents/UserDropdown/selectStyles.js +0 -75
  322. package/build/main//321/201omponents/UserDropdown/selectStyles.js.map +0 -1
  323. package/build/main//321/201omponents/UserDropdown/types.js +0 -2
  324. package/build/main//321/201omponents/UserDropdown/types.js.map +0 -1
  325. package/build/main//321/201omponents/index.d.ts +0 -34
  326. package/build/main//321/201omponents/index.js +0 -35
  327. package/build/main//321/201omponents/index.js.map +0 -1
  328. package/build/main//321/201omponents/types.js +0 -2
  329. package/build/main//321/201omponents/types.js.map +0 -1
  330. /package/build/main/{/321/201omponents/ActionModal/ActionModal.d.ts" → components/ActionModal/ActionModal.d.ts} +0 -0
  331. /package/build/main/{/321/201omponents/ActionModal/index.d.ts" → components/ActionModal/index.d.ts} +0 -0
  332. /package/build/main/{/321/201omponents/ActionModal/types.d.ts" → components/ActionModal/types.d.ts} +0 -0
  333. /package/build/main/{/321/201omponents/AttachedFile/AttachedFile.d.ts" → components/AttachedFile/AttachedFile.d.ts} +0 -0
  334. /package/build/main/{/321/201omponents/AttachedFile/index.d.ts" → components/AttachedFile/index.d.ts} +0 -0
  335. /package/build/main/{/321/201omponents/AttachedFile/types.d.ts" → components/AttachedFile/types.d.ts} +0 -0
  336. /package/build/main/{/321/201omponents/Avatar/Avatar.d.ts" → components/Avatar/Avatar.d.ts} +0 -0
  337. /package/build/main/{/321/201omponents/Avatar/index.d.ts" → components/Avatar/index.d.ts} +0 -0
  338. /package/build/main/{/321/201omponents/Avatar/types.d.ts" → components/Avatar/types.d.ts} +0 -0
  339. /package/build/main/{/321/201omponents/Button/Button.d.ts" → components/Button/Button.d.ts} +0 -0
  340. /package/build/main/{/321/201omponents/Button/index.d.ts" → components/Button/index.d.ts} +0 -0
  341. /package/build/main/{/321/201omponents/Button/types.d.ts" → components/Button/types.d.ts} +0 -0
  342. /package/build/main/{/321/201omponents/CachedImage/CachedImage.d.ts" → components/CachedImage/CachedImage.d.ts} +0 -0
  343. /package/build/main/{/321/201omponents/CachedImage/helpers.d.ts" → components/CachedImage/helpers.d.ts} +0 -0
  344. /package/build/main/{/321/201omponents/CachedImage/index.d.ts" → components/CachedImage/index.d.ts} +0 -0
  345. /package/build/main/{/321/201omponents/CachedImage/types.d.ts" → components/CachedImage/types.d.ts} +0 -0
  346. /package/build/main/{/321/201omponents/Calendar/Calendar.d.ts" → components/Calendar/Calendar.d.ts} +0 -0
  347. /package/build/main/{/321/201omponents/Calendar/index.d.ts" → components/Calendar/index.d.ts} +0 -0
  348. /package/build/main/{/321/201omponents/Calendar/types.d.ts" → components/Calendar/types.d.ts} +0 -0
  349. /package/build/main/{/321/201omponents/Charts/ChartLegend/ChartLegend.d.ts" → components/Charts/ChartLegend/ChartLegend.d.ts} +0 -0
  350. /package/build/main/{/321/201omponents/Charts/colors.d.ts" → components/Charts/colors.d.ts} +0 -0
  351. /package/build/main/{/321/201omponents/Charts/constants.d.ts" → components/Charts/constants.d.ts} +0 -0
  352. /package/build/main/{/321/201omponents/Charts/helpers.d.ts" → components/Charts/helpers.d.ts} +0 -0
  353. /package/build/main/{/321/201omponents/Charts/types.d.ts" → components/Charts/types.d.ts} +0 -0
  354. /package/build/main/{/321/201omponents/Charts/useEvents.d.ts" → components/Charts/useEvents.d.ts} +0 -0
  355. /package/build/main/{/321/201omponents/Charts/usePieEvents.d.ts" → components/Charts/usePieEvents.d.ts} +0 -0
  356. /package/build/main/{/321/201omponents/Checkbox/Checkbox.d.ts" → components/Checkbox/Checkbox.d.ts} +0 -0
  357. /package/build/main/{/321/201omponents/Checkbox/index.d.ts" → components/Checkbox/index.d.ts} +0 -0
  358. /package/build/main/{/321/201omponents/Checkbox/types.d.ts" → components/Checkbox/types.d.ts} +0 -0
  359. /package/build/main/{/321/201omponents/Chip/Chip.d.ts" → components/Chip/Chip.d.ts} +0 -0
  360. /package/build/main/{/321/201omponents/Chip/index.d.ts" → components/Chip/index.d.ts} +0 -0
  361. /package/build/main/{/321/201omponents/Chip/types.d.ts" → components/Chip/types.d.ts} +0 -0
  362. /package/build/main/{/321/201omponents/ConfirmationModal/ConfirmationModal.d.ts" → components/ConfirmationModal/ConfirmationModal.d.ts} +0 -0
  363. /package/build/main/{/321/201omponents/ConfirmationModal/index.d.ts" → components/ConfirmationModal/index.d.ts} +0 -0
  364. /package/build/main/{/321/201omponents/ConfirmationModal/types.d.ts" → components/ConfirmationModal/types.d.ts} +0 -0
  365. /package/build/main/{/321/201omponents/ContextMenu/ContextMenu.d.ts" → components/ContextMenu/ContextMenu.d.ts} +0 -0
  366. /package/build/main/{/321/201omponents/ContextMenu/index.d.ts" → components/ContextMenu/index.d.ts} +0 -0
  367. /package/build/main/{/321/201omponents/ContextMenu/types.d.ts" → components/ContextMenu/types.d.ts} +0 -0
  368. /package/build/main/{/321/201omponents/CustomSelect/CustomSelect.d.ts" → components/CustomSelect/CustomSelect.d.ts} +0 -0
  369. /package/build/main/{/321/201omponents/CustomSelect/index.d.ts" → components/CustomSelect/index.d.ts} +0 -0
  370. /package/build/main/{/321/201omponents/CustomSelect/selectStyles.d.ts" → components/CustomSelect/selectStyles.d.ts} +0 -0
  371. /package/build/main/{/321/201omponents/CustomSelect/types.d.ts" → components/CustomSelect/types.d.ts} +0 -0
  372. /package/build/main/{/321/201omponents/CustomSelectProfiles/CustomSelectProfiles.d.ts" → components/CustomSelectProfiles/CustomSelectProfiles.d.ts} +0 -0
  373. /package/build/main/{/321/201omponents/CustomSelectProfiles/index.d.ts" → components/CustomSelectProfiles/index.d.ts} +0 -0
  374. /package/build/main/{/321/201omponents/CustomSelectProfiles/types.d.ts" → components/CustomSelectProfiles/types.d.ts} +0 -0
  375. /package/build/main/{/321/201omponents/DragAndDrop/DragAndDrop.d.ts" → components/DragAndDrop/DragAndDrop.d.ts} +0 -0
  376. /package/build/main/{/321/201omponents/DragAndDrop/index.d.ts" → components/DragAndDrop/index.d.ts} +0 -0
  377. /package/build/main/{/321/201omponents/DragAndDrop/types.d.ts" → components/DragAndDrop/types.d.ts} +0 -0
  378. /package/build/main/{/321/201omponents/DraggablePopup/DraggablePopup.d.ts" → components/DraggablePopup/DraggablePopup.d.ts} +0 -0
  379. /package/build/main/{/321/201omponents/DraggablePopup/index.d.ts" → components/DraggablePopup/index.d.ts} +0 -0
  380. /package/build/main/{/321/201omponents/DraggablePopup/types.d.ts" → components/DraggablePopup/types.d.ts} +0 -0
  381. /package/build/main/{/321/201omponents/Error/Error.d.ts" → components/Error/Error.d.ts} +0 -0
  382. /package/build/main/{/321/201omponents/Error/index.d.ts" → components/Error/index.d.ts} +0 -0
  383. /package/build/main/{/321/201omponents/Error/types.d.ts" → components/Error/types.d.ts} +0 -0
  384. /package/build/main/{/321/201omponents/Flex/Flex.d.ts" → components/Flex/Flex.d.ts} +0 -0
  385. /package/build/main/{/321/201omponents/Flex/HFlex/HFlex.d.ts" → components/Flex/HFlex/HFlex.d.ts} +0 -0
  386. /package/build/main/{/321/201omponents/Flex/HFlex/index.d.ts" → components/Flex/HFlex/index.d.ts} +0 -0
  387. /package/build/main/{/321/201omponents/Flex/VFlex/VFlex.d.ts" → components/Flex/VFlex/VFlex.d.ts} +0 -0
  388. /package/build/main/{/321/201omponents/Flex/VFlex/index.d.ts" → components/Flex/VFlex/index.d.ts} +0 -0
  389. /package/build/main/{/321/201omponents/Flex/index.d.ts" → components/Flex/index.d.ts} +0 -0
  390. /package/build/main/{/321/201omponents/Flex/types.d.ts" → components/Flex/types.d.ts} +0 -0
  391. /package/build/main/{/321/201omponents/Header/Header.d.ts" → components/Header/Header.d.ts} +0 -0
  392. /package/build/main/{/321/201omponents/Header/index.d.ts" → components/Header/index.d.ts} +0 -0
  393. /package/build/main/{/321/201omponents/Header/types.d.ts" → components/Header/types.d.ts} +0 -0
  394. /package/build/main/{/321/201omponents/Input/Input.d.ts" → components/Input/Input.d.ts} +0 -0
  395. /package/build/main/{/321/201omponents/Input/index.d.ts" → components/Input/index.d.ts} +0 -0
  396. /package/build/main/{/321/201omponents/Input/types.d.ts" → components/Input/types.d.ts} +0 -0
  397. /package/build/main/{/321/201omponents/ListItem/ListItem.d.ts" → components/ListItem/ListItem.d.ts} +0 -0
  398. /package/build/main/{/321/201omponents/ListItem/index.d.ts" → components/ListItem/index.d.ts} +0 -0
  399. /package/build/main/{/321/201omponents/ListItem/types.d.ts" → components/ListItem/types.d.ts} +0 -0
  400. /package/build/main/{/321/201omponents/Loader/Loader.d.ts" → components/Loader/Loader.d.ts} +0 -0
  401. /package/build/main/{/321/201omponents/Loader/index.d.ts" → components/Loader/index.d.ts} +0 -0
  402. /package/build/main/{/321/201omponents/Loader/types.d.ts" → components/Loader/types.d.ts} +0 -0
  403. /package/build/main/{/321/201omponents/Modal/Modal.d.ts" → components/Modal/Modal.d.ts} +0 -0
  404. /package/build/main/{/321/201omponents/Modal/index.d.ts" → components/Modal/index.d.ts} +0 -0
  405. /package/build/main/{/321/201omponents/Modal/types.d.ts" → components/Modal/types.d.ts} +0 -0
  406. /package/build/main/{/321/201omponents/Notification/Notification.d.ts" → components/Notification/Notification.d.ts} +0 -0
  407. /package/build/main/{/321/201omponents/Notification/index.d.ts" → components/Notification/index.d.ts} +0 -0
  408. /package/build/main/{/321/201omponents/Notification/types.d.ts" → components/Notification/types.d.ts} +0 -0
  409. /package/build/main/{/321/201omponents/Profile/Profile.d.ts" → components/Profile/Profile.d.ts} +0 -0
  410. /package/build/main/{/321/201omponents/Profile/index.d.ts" → components/Profile/index.d.ts} +0 -0
  411. /package/build/main/{/321/201omponents/Profile/types.d.ts" → components/Profile/types.d.ts} +0 -0
  412. /package/build/main/{/321/201omponents/ProgressBar/ProgressBar.d.ts" → components/ProgressBar/ProgressBar.d.ts} +0 -0
  413. /package/build/main/{/321/201omponents/ProgressBar/index.d.ts" → components/ProgressBar/index.d.ts} +0 -0
  414. /package/build/main/{/321/201omponents/ProgressBar/types.d.ts" → components/ProgressBar/types.d.ts} +0 -0
  415. /package/build/main/{/321/201omponents/RadioButton/RadioButton.d.ts" → components/RadioButton/RadioButton.d.ts} +0 -0
  416. /package/build/main/{/321/201omponents/RadioButton/index.d.ts" → components/RadioButton/index.d.ts} +0 -0
  417. /package/build/main/{/321/201omponents/RadioButton/types.d.ts" → components/RadioButton/types.d.ts} +0 -0
  418. /package/build/main/{/321/201omponents/ScrollBar/ScrollBar.d.ts" → components/ScrollBar/ScrollBar.d.ts} +0 -0
  419. /package/build/main/{/321/201omponents/ScrollBar/index.d.ts" → components/ScrollBar/index.d.ts} +0 -0
  420. /package/build/main/{/321/201omponents/ScrollBar/types.d.ts" → components/ScrollBar/types.d.ts} +0 -0
  421. /package/build/main/{/321/201omponents/Skeleton/types.d.ts" → components/Skeleton/types.d.ts} +0 -0
  422. /package/build/main/{/321/201omponents/Stories/Stories.d.ts" → components/Stories/Stories.d.ts} +0 -0
  423. /package/build/main/{/321/201omponents/Stories/index.d.ts" → components/Stories/index.d.ts} +0 -0
  424. /package/build/main/{/321/201omponents/Stories/types.d.ts" → components/Stories/types.d.ts} +0 -0
  425. /package/build/main/{/321/201omponents/Switcher/Switcher.d.ts" → components/Switcher/Switcher.d.ts} +0 -0
  426. /package/build/main/{/321/201omponents/Switcher/index.d.ts" → components/Switcher/index.d.ts} +0 -0
  427. /package/build/main/{/321/201omponents/Switcher/types.d.ts" → components/Switcher/types.d.ts} +0 -0
  428. /package/build/main/{/321/201omponents/SyncLoader/SyncLoader.d.ts" → components/SyncLoader/SyncLoader.d.ts} +0 -0
  429. /package/build/main/{/321/201omponents/SyncLoader/index.d.ts" → components/SyncLoader/index.d.ts} +0 -0
  430. /package/build/main/{/321/201omponents/SyncLoader/types.d.ts" → components/SyncLoader/types.d.ts} +0 -0
  431. /package/build/main/{/321/201omponents/Textarea/Textarea.d.ts" → components/Textarea/Textarea.d.ts} +0 -0
  432. /package/build/main/{/321/201omponents/Textarea/index.d.ts" → components/Textarea/index.d.ts} +0 -0
  433. /package/build/main/{/321/201omponents/Textarea/types.d.ts" → components/Textarea/types.d.ts} +0 -0
  434. /package/build/main/{/321/201omponents/Toggle/Toggle.d.ts" → components/Toggle/Toggle.d.ts} +0 -0
  435. /package/build/main/{/321/201omponents/Toggle/index.d.ts" → components/Toggle/index.d.ts} +0 -0
  436. /package/build/main/{/321/201omponents/Toggle/types.d.ts" → components/Toggle/types.d.ts} +0 -0
  437. /package/build/main/{/321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.d.ts" → components/UserDropdown/ContactBottomSheet/ContactBottomSheet.d.ts} +0 -0
  438. /package/build/main/{/321/201omponents/UserDropdown/ContactInfo/ContactInfo.d.ts" → components/UserDropdown/ContactInfo/ContactInfo.d.ts} +0 -0
  439. /package/build/main/{/321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.d.ts" → components/UserDropdown/LoadingMessage/LoadingMessage.d.ts} +0 -0
  440. /package/build/main/{/321/201omponents/UserDropdown/MenuList/MenuList.d.ts" → components/UserDropdown/MenuList/MenuList.d.ts} +0 -0
  441. /package/build/main/{/321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.d.ts" → components/UserDropdown/MultiValueLabel/MultiValueLabel.d.ts} +0 -0
  442. /package/build/main/{/321/201omponents/UserDropdown/Option/Option.d.ts" → components/UserDropdown/Option/Option.d.ts} +0 -0
  443. /package/build/main/{/321/201omponents/UserDropdown/UserDropdown.d.ts" → components/UserDropdown/UserDropdown.d.ts} +0 -0
  444. /package/build/main/{/321/201omponents/UserDropdown/index.d.ts" → components/UserDropdown/index.d.ts} +0 -0
  445. /package/build/main/{/321/201omponents/UserDropdown/selectStyles.d.ts" → components/UserDropdown/selectStyles.d.ts} +0 -0
  446. /package/build/main/{/321/201omponents/UserDropdown/types.d.ts" → components/UserDropdown/types.d.ts} +0 -0
  447. /package/build/main/{/321/201omponents/types.d.ts" → components/types.d.ts} +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"ListItem.js","sourceRoot":"","sources":["../../../../src/сomponents/ListItem/ListItem.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAC7D,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,WAAW,MAAM,gBAAgB,CAAA;AACxC,OAAO,QAAQ,MAAM,aAAa,CAAA;AAClC,OAAO,MAAM,MAAM,WAAW,CAAA;AAC9B,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAQ1C,OAAO,0BAA0B,CAAA;AAEjC,MAAM,CAAC,IAAM,cAAc,GAAG;IAC5B,WAAW,EAAE,aAAa;IAC1B,cAAc,EAAE,iBAAiB;CAClC,CAAA;AAED,MAAM,CAAC,IAAM,mBAAmB,GAAG;IACjC,WAAW,EAAE,cAAc;IAC3B,QAAQ,EAAE,UAAU;IACpB,MAAM,EAAE,QAAQ;CACjB,CAAA;AAED,MAAM,CAAC,IAAM,oBAAoB,GAAG;IAClC,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;CACf,CAAA;AAED,MAAM,CAAC,IAAM,uBAAuB,GAAG;IACrC,IAAI,EAAE,MAAM;IACZ,SAAS,EAAE,WAAW;IACtB,SAAS,EAAE,YAAY;CACxB,CAAA;AAED,IAAM,oBAAoB,GAAG,EAAE,CAAA;AAC/B,MAAM,CAAC,IAAM,uBAAuB,GAAG,MAAM,CAAA;AAC7C,IAAM,yBAAyB,GAAG,8CAA8C,CAAA;AAChF,IAAM,0BAA0B,GAAG,wDAAwD,CAAA;AAC3F,IAAM,mBAAmB,GAAG,+BAA+B,CAAA;AAE3D,IAAM,MAAM,GAAG,UAAC,IAAY;IAC1B,IAAM,iBAAiB,GAAG,IAAI,KAAK,cAAc,CA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0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/ListItem/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/ListItem/types.ts"],"names":[],"mappings":""}
@@ -1,44 +0,0 @@
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
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
- import { cloneElement } from 'react';
14
- import classNames from 'classnames';
15
- import { COLORS, FONT_SIZE, LINE_HEIGHT, THEME } from '../../constants';
16
- import { generateColor, isDarkTheme } from '../../helpers';
17
- import { ReactComponent as LoaderIcon } from '../../assets/icons/loader.svg';
18
- import '../../styles/styles.scss';
19
- var Loader = function (_a) {
20
- var isLoader = _a.isLoader, _b = _a.isFullScreen, isFullScreen = _b === void 0 ? true : _b, _c = _a.isTextItalic, isTextItalic = _c === void 0 ? false : _c, title = _a.title, _d = _a.textSize, textSize = _d === void 0 ? 'small' : _d, _e = _a.width, width = _e === void 0 ? 150 : _e, _f = _a.iconSize, iconSize = _f === void 0 ? 25 : _f, containerClassName = _a.containerClassName, className = _a.className, containerStyles = _a.containerStyles, styles = _a.styles, color = _a.color, backgroundColor = _a.backgroundColor, _g = _a.theme, theme = _g === void 0 ? THEME.default : _g, _h = _a.icon, icon = _h === void 0 ? _jsx(LoaderIcon, {}) : _h;
21
- var loaderColor = generateColor(color, COLORS.blue);
22
- var generateTextStyles = function () { return ({
23
- fontSize: FONT_SIZE[textSize],
24
- fontStyle: isTextItalic ? 'italic' : 'normal',
25
- lineHeight: LINE_HEIGHT[textSize],
26
- }); };
27
- var generateBackgroundColor = function () {
28
- var colorForDefaultTheme = isFullScreen ? COLORS.lighterGray : COLORS.white;
29
- var defaultColor = isDarkTheme(theme) ? COLORS.white3 : colorForDefaultTheme;
30
- return generateColor(backgroundColor, defaultColor);
31
- };
32
- if (!isLoader) {
33
- return null;
34
- }
35
- var iconProps = {
36
- className: 'smartapp-loader__icon',
37
- width: iconSize,
38
- height: iconSize,
39
- style: { color: loaderColor },
40
- };
41
- return (_jsx("div", __assign({ className: classNames('smartapp-loader-wrapper', { 'smartapp-loader-wrapper__full-screen': isFullScreen }, containerClassName), style: __assign({ background: generateBackgroundColor() }, containerStyles) }, { children: _jsxs("div", __assign({ className: classNames('smartapp-loader', className), style: __assign({ width: "".concat(width, "px") }, styles) }, { children: [cloneElement(icon, iconProps), title && (_jsx("p", __assign({ className: "smartapp-loader__title", style: generateTextStyles() }, { children: title })))] })) })));
42
- };
43
- export default Loader;
44
- //# sourceMappingURL=Loader.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Loader.js","sourceRoot":"","sources":["../../../../src/сomponents/Loader/Loader.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAC3C,OAAO,UAAU,MAAM,YAAY,CAAA;AAEnC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AACvE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC1D,OAAO,EAAE,cAAc,IAAI,UAAU,EAAE,MAAM,+BAA+B,CAAA;AAC5E,OAAO,0BAA0B,CAAA;AAEjC,IAAM,MAAM,GAAG,UAAC,EAgBD;QAfb,QAAQ,cAAA,EACR,oBAAmB,EAAnB,YAAY,mBAAG,IAAI,KAAA,EACnB,oBAAoB,EAApB,YAAY,mBAAG,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AW,EAAE;KAC9B,CAAA;IAED,OAAO,CACL,uBACE,SAAS,EAAE,UAAU,CAAC,yBAAyB,EAAE,EAAE,sCAAsC,EAAE,YAAY,EAAE,EAAE,kBAAkB,CAAC,EAC9H,KAAK,aAAI,UAAU,EAAE,uBAAuB,EAAE,IAAK,eAAe,iBAElE,wBAAK,SAAS,EAAE,UAAU,CAAC,iBAAiB,EAAE,SAAS,CAAC,EAAE,KAAK,aAAI,KAAK,EAAE,UAAG,KAAK,OAAI,IAAK,MAAM,kBAC9F,YAAY,CAAC,IAAI,EAAE,SAAS,CAAC,EAC7B,KAAK,IAAI,CACR,qBAAG,SAAS,EAAC,wBAAwB,EAAC,KAAK,EAAE,kBAAkB,EAAE,gBAC9D,KAAK,IACJ,CACL,KACG,IACF,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,MAAM,CAAA"}
@@ -1,2 +0,0 @@
1
- export { default } from './Loader';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/Loader/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/Loader/types.ts"],"names":[],"mappings":""}
@@ -1,125 +0,0 @@
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
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
- import { useEffect, useRef, useState } from 'react';
25
- import classNames from 'classnames';
26
- import ScrollBar from '../ScrollBar';
27
- import ContextMenu from '../ContextMenu';
28
- import { DEFAULT_SCROLL_BAR_HEIGHT } from '../ScrollBar/ScrollBar';
29
- import { ReactComponent as CloseIcon } from '../../assets/icons/cancel-cross.svg';
30
- import { ReactComponent as MoreIcon } from '../../assets/icons/more.svg';
31
- import { EVENT_LISTENER_TYPES, PLATFORM } from '../../constants';
32
- import { checkIfContentIsCentered, generateClassNames, generateColor, generateIsCloseIconHidden, generateBottomSheetClassName, isMobilePlatform, } from '../../helpers';
33
- import { useModal } from '../../hooks/useModal';
34
- import '../../styles/styles.scss';
35
- var SCROLL_BAR_HEIGHT_WITH_PADDING = 'calc(100% - 20px)';
36
- var MODAL_MARGIN_SIZE_WEB = 165;
37
- var CONTENT_PADDING_TOP = 20;
38
- var MODAL_TITLE_MARGIN_BOTTOM = 16;
39
- var MODAL_MARGIN_SIZE_MOBILE = 136;
40
- var Modal = function (_a) {
41
- var isModalOpen = _a.isModalOpen, _b = _a.isClosableOutside, isClosableOutside = _b === void 0 ? true : _b, isCloseIconHidden = _a.isCloseIconHidden, isPopup = _a.isPopup, _c = _a.isBottomSheet, isBottomSheet = _c === void 0 ? false : _c, _d = _a.isDisabledBottomSheet, isDisabledBottomSheet = _d === void 0 ? false : _d, _e = _a.isCloseButtonDisabled, isCloseButtonDisabled = _e === void 0 ? false : _e, modalId = _a.modalId, content = _a.content, bottomContent = _a.bottomContent, title = _a.title, _f = _a.platform, platform = _f === void 0 ? PLATFORM.web : _f, popupClassName = _a.popupClassName, className = _a.className, 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, handleCloseModal = _a.handleCloseModal;
42
- var ref = useRef(null);
43
- var titleRef = useRef(null);
44
- var scrollableContentRef = useRef(null);
45
- var scrollerRef = useRef(null);
46
- var bottomContentRef = useRef(null);
47
- var _g = useState(''), containerHeight = _g[0], setContainerHeight = _g[1];
48
- var _h = useModal({
49
- isModalOpen: isModalOpen,
50
- platform: platform,
51
- isDisabledBottomSheet: isDisabledBottomSheet,
52
- initialIsBottomSheet: isBottomSheet,
53
- modalRef: ref,
54
- isClosableOutside: isClosableOutside,
55
- handleCloseModal: handleCloseModal,
56
- popupClassName: classNames('modal', popupClassName),
57
- popupStyles: popupStyles,
58
- bottomSheetProps: bottomSheetProps,
59
- scrollRef: externalBottomSheetScrollContainer || scrollerRef,
60
- }), shouldUseBottomSheet = _h.shouldUseBottomSheet, renderModal = _h.renderModal;
61
- var additionalClassName = generateBottomSheetClassName(platform, shouldUseBottomSheet);
62
- var isCloseIconInvisible = generateIsCloseIconHidden(platform, isCloseIconHidden);
63
- var modalMargins = isMobilePlatform(platform) ? MODAL_MARGIN_SIZE_MOBILE : 2 * MODAL_MARGIN_SIZE_WEB;
64
- var MAX_MODAL_HEIGHT = modalMaxHeight || window.innerHeight - modalMargins;
65
- var handleMouseDown = function (event) { return !isPopup && event.stopPropagation(); };
66
- var handleSetContainerHeight = function (contentRef) {
67
- var _a, _b;
68
- if (!contentRef)
69
- return;
70
- var height = contentRef.getBoundingClientRect().height;
71
- var titleHeight = ((_a = titleRef.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().height) || 0;
72
- var bottomContentHeight = ((_b = bottomContentRef.current) === null || _b === void 0 ? void 0 : _b.getBoundingClientRect().height) || 0;
73
- var titleHeightWithMargin = titleHeight ? titleHeight + MODAL_TITLE_MARGIN_BOTTOM : titleHeight;
74
- var defaultContentHeight = MAX_MODAL_HEIGHT - titleHeightWithMargin - CONTENT_PADDING_TOP;
75
- var maxContentHeightValue = bottomContent ? defaultContentHeight - bottomContentHeight : defaultContentHeight;
76
- setContainerHeight("".concat(height > maxContentHeightValue ? maxContentHeightValue : height, "px"));
77
- };
78
- useEffect(function () {
79
- document.documentElement.style.setProperty('--modal-background', generateColor(backgroundColor));
80
- }, [backgroundColor]);
81
- useEffect(function () {
82
- var checkIfClickedOutside = function (e) {
83
- if (isModalOpen && isClosableOutside && ref.current && !ref.current.contains(e.target)) {
84
- handleCloseModal();
85
- }
86
- };
87
- !isPopup && (document === null || document === void 0 ? void 0 : document.addEventListener(EVENT_LISTENER_TYPES.click, checkIfClickedOutside, true));
88
- return function () {
89
- document === null || document === void 0 ? void 0 : document.removeEventListener(EVENT_LISTENER_TYPES.click, checkIfClickedOutside, true);
90
- };
91
- }, [isModalOpen, isClosableOutside, handleCloseModal, isPopup]);
92
- var renderTitle = function () {
93
- return title && (_jsxs("div", { children: [!isCloseIconInvisible && renderCloseIconSpace({ elementRef: titleRef, isLarge: true }), _jsx("p", __assign({ ref: titleRef, className: "smartapp-modal__content--title", style: titleStyles }, { children: title }))] }));
94
- };
95
- var renderCloseIcon = function () {
96
- return !isCloseIconInvisible && (_jsx("div", __assign({ onClick: !isCloseButtonDisabled ? handleCloseModal : function () { }, className: classNames('smartapp-modal__content--close-icon', {
97
- 'smartapp-modal__content--close-icon__disabled': isCloseButtonDisabled,
98
- }) }, { children: _jsx(CloseIcon, { style: { color: generateColor(iconColor) } }) })));
99
- };
100
- var renderCloseIconSpace = function (_a) {
101
- var elementRef = _a.elementRef, _b = _a.isLarge, isLarge = _b === void 0 ? false : _b, _c = _a.isContent, isContent = _c === void 0 ? false : _c;
102
- var isContentCentered = checkIfContentIsCentered(elementRef);
103
- return (_jsx("div", { className: classNames('close-icon-space', {
104
- 'close-icon-space__large': isLarge,
105
- 'close-icon-space__large--with-context-menu': isLarge && contextMenuProps,
106
- 'close-icon-space__content': isContent,
107
- 'close-icon-space__content--with-context-menu': isContent && contextMenuProps,
108
- 'close-icon-space__centered': isContentCentered,
109
- 'close-icon-space__centered--with-context-menu': isContentCentered && contextMenuProps,
110
- }) }));
111
- };
112
- var renderContextMenuIcon = function () {
113
- if (contextMenuProps) {
114
- var openMenu = contextMenuProps.openMenu, isMenuOpen = contextMenuProps.isMenuOpen, remainingProps = __rest(contextMenuProps, ["openMenu", "isMenuOpen"]);
115
- 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))] })));
116
- }
117
- };
118
- var renderBottomContent = function () {
119
- return bottomContent && (_jsx("div", __assign({ ref: bottomContentRef, className: classNames('smartapp-modal__content--bottom', 'smartapp-modal__content--pr', 'smartapp-modal__content--pb') }, { children: bottomContent })));
120
- };
121
- var modalContent = (_jsx("div", __assign({ ref: ref, className: classNames('smartapp-modal', { 'smartapp-modal__bottom-sheet': shouldUseBottomSheet }, className), style: styles, onMouseDown: handleMouseDown }, { children: _jsxs("div", __assign({ className: generateClassNames({ className: 'smartapp-modal__content', delimiter: '--', additionalClassName: additionalClassName }), style: contentStyles }, { children: [renderTitle(), _jsxs("div", __assign({ className: "smartapp-modal__content--icons" }, { children: [renderContextMenuIcon(), renderCloseIcon()] })), _jsx(ScrollBar, { contentId: modalId, scrollerProps: { elementRef: function (el) { return (scrollerRef.current = el); } }, content: _jsxs("div", __assign({ ref: handleSetContainerHeight, className: classNames('smartapp-modal__content--pr', { 'smartapp-modal__content--pb': !bottomContent }) }, { children: [!title && !isCloseIconInvisible && renderCloseIconSpace({ elementRef: scrollableContentRef, isContent: true }), _jsx("div", __assign({ ref: scrollableContentRef }, { children: content }))] })), containerHeight: containerHeight, trackHeight: bottomContent ? DEFAULT_SCROLL_BAR_HEIGHT : SCROLL_BAR_HEIGHT_WITH_PADDING }), renderBottomContent()] })) })));
122
- return isPopup ? modalContent : renderModal(modalContent);
123
- };
124
- export default Modal;
125
- //# sourceMappingURL=Modal.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Modal.js","sourceRoot":"","sources":["../../../../src/сomponents/Modal/Modal.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAc,EAAa,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AACrE,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,SAAS,MAAM,cAAc,CAAA;AACpC,OAAO,WAAW,MAAM,gBAAgB,CAAA;AACxC,OAAO,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAA;AAClE,OAAO,EAAE,cAAc,IAAI,SAAS,EAAE,MAAM,qCAAqC,CAAA;AACjF,OAAO,EAAE,cAAc,IAAI,QAAQ,EAAE,MAAM,6BAA6B,CAAA;AACxE,OAAO,EAAE,oBAAoB,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAChE,OAAO,EACL,wBAAwB,EACxB,kBAAkB,EAClB,aAAa,EACb,yBAAyB,EACzB,4BAA4B,EAC5B,gBAAgB,GACjB,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAC/C,OAAO,0BAA0B,CAAA;AAEjC,IAAM,8BAA8B,GAAG,mBAAmB,CAAA;AAC1D,IAAM,qBAAqB,GAAG,GAAG,CAAA;AACjC,IAAM,mBAAmB,GAAG,EAAE,CAAA;AAC9B,IAAM,yBAAyB,GAAG,EAAE,CAAA;AACpC,IAAM,wBAAwB,GAAG,GAAG,CAAA;AAIpC,IAAM,KAAK,GAAG,UAAC,EA0BD;QAzBZ,WAAW,iBAAA,EACX,yBAAwB,EAA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CAAC,yBAAyB,CAAC,CAAC,CAAC,8BAA8B,GACvF,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"}
@@ -1,2 +0,0 @@
1
- export { default } from './Modal';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/Modal/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/Modal/types.ts"],"names":[],"mappings":""}
@@ -1,197 +0,0 @@
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 { cssTransition, toast, ToastContainer } from 'react-toastify';
24
- import classNames from 'classnames';
25
- import juice from 'juice';
26
- import DOMPurify from 'dompurify';
27
- import { debounce } from 'lodash';
28
- import Avatar from '../Avatar';
29
- import { isFullScreen, isWebPlatform } from '../../helpers';
30
- import { CANCEL_ACTION_TEXT, COLORS, LAYOUT_TYPE, MOBILE_NOTIFICATION_DISTANCE_FROM_BOTTOM, PLATFORM, THEME, WEB_NOTIFICATION_DISTANCE_FROM_BOTTOM, } from '../../constants';
31
- import { ReactComponent as NotificationSuccessIcon } from '../../assets/icons/notification-success.svg';
32
- import { ReactComponent as NotificationInfoIcon } from '../../assets/icons/notification-info.svg';
33
- import { ReactComponent as NotificationWarningIcon } from '../../assets/icons/notification-warning.svg';
34
- import { ReactComponent as NotificationErrorIcon } from '../../assets/icons/notification-error.svg';
35
- import { ReactComponent as NotificationFailureIcon } from '../../assets/icons/notification-failure.svg';
36
- import { ReactComponent as NotificationCloseIcon } from '../../assets/icons/notification-close.svg';
37
- import { ReactComponent as MailIcon } from '../../assets/icons/mail.svg';
38
- import { ReactComponent as UnreadMailsIcon } from '../../assets/icons/unread-mails.svg';
39
- import '../../styles/styles.scss';
40
- var AUTO_HIDDEN_CONTAINER_ID = 'autoHiddenContainerId';
41
- var INDEFINITELY_CONTAINER_ID = 'indefinitelyContainerId';
42
- var NOTIFICATION_HEIGHT = 66;
43
- var MIN_CONTENT_HEIGHT = 19;
44
- var TOP_ALIGN_CLASSNAME = 'smartapp-notification__content--top-align';
45
- var PADDING_VERTICAL_CLASSNAME = 'smartapp-notification__content--pv-2';
46
- var TOAST_CONTAINER_CLASSNAME = 'Toastify__toast-container';
47
- var TOAST_CONTAINER_FULL_SCREEN_CLASSNAME = 'Toastify__toast-container--full-screen';
48
- var NOTIFICATION_TYPES = {
49
- success: 'success',
50
- info: 'info',
51
- warning: 'warning',
52
- error: 'error',
53
- failure: 'failure',
54
- mail: 'mail',
55
- mailMulti: 'mail-multi',
56
- custom: 'custom',
57
- };
58
- var NOTIFICATION_ICONS = function (iconColor) {
59
- var _a;
60
- return (_a = {},
61
- _a[NOTIFICATION_TYPES.success] = _jsx(NotificationSuccessIcon, { style: { color: iconColor || COLORS.blue } }),
62
- _a[NOTIFICATION_TYPES.info] = _jsx(NotificationInfoIcon, { style: { color: iconColor || COLORS.blue } }),
63
- _a[NOTIFICATION_TYPES.warning] = _jsx(NotificationWarningIcon, {}),
64
- _a[NOTIFICATION_TYPES.error] = _jsx(NotificationErrorIcon, {}),
65
- _a[NOTIFICATION_TYPES.failure] = _jsx(NotificationFailureIcon, {}),
66
- _a);
67
- };
68
- export var INDEFINITELY_FULL_SCREEN_POSITION = {
69
- right: 'right',
70
- left: 'left',
71
- };
72
- var Notification = function (_a) {
73
- var _b = _a.theme, theme = _b === void 0 ? THEME.default : _b, _c = _a.platform, platform = _c === void 0 ? PLATFORM.web : _c, id = _a.id, _d = _a.type, type = _d === void 0 ? 'success' : _d, _e = _a.isAutoHidden, isAutoHidden = _e === void 0 ? true : _e, _f = _a.layoutType, layoutType = _f === void 0 ? LAYOUT_TYPE.minimal : _f, _g = _a.isAllIndefinitelyNeedToBeClosed, isAllIndefinitelyNeedToBeClosed = _g === void 0 ? false : _g, _h = _a.indefinitelyFullScreenPosition, indefinitelyFullScreenPosition = _h === void 0 ? 'right' : _h, _j = _a.hideDuration, hideDuration = _j === void 0 ? 3000 : _j, 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, iconColor = _a.iconColor, action = _a.action, onClose = _a.onClose, content = _a.content;
74
- var contentRef = useRef(null);
75
- var contentSpanRef = useRef(null);
76
- var toastContainerRef = useRef(null);
77
- var isLayoutFullScreen = isFullScreen(layoutType);
78
- var isBiggerGapInNotificationContent = isWebPlatform(platform) && layoutType !== LAYOUT_TYPE.minimal;
79
- var _k = useState([]), indefinitelyIds = _k[0], setIndefinitelyIds = _k[1];
80
- var calculateDistanceFromBottom = function () {
81
- var defaultDistanceFromBottom = isWebPlatform(platform) ? WEB_NOTIFICATION_DISTANCE_FROM_BOTTOM : MOBILE_NOTIFICATION_DISTANCE_FROM_BOTTOM;
82
- return distanceFromBottom || defaultDistanceFromBottom;
83
- };
84
- var notificationAnimation = cssTransition({
85
- enter: 'notification-enter-animation',
86
- exit: 'notification-exit-animation',
87
- appendPosition: true,
88
- });
89
- var handleActionClick = function (_a) {
90
- var notificationId = _a.notificationId, action = _a.action;
91
- toast.dismiss(notificationId);
92
- action && action();
93
- };
94
- var handleClickMailCloseIcon = function (_a) {
95
- var event = _a.event, notificationId = _a.notificationId;
96
- event.stopPropagation();
97
- toast.dismiss(notificationId);
98
- };
99
- var createSanitizedHtml = function (str) {
100
- var preparedHtml = juice(str);
101
- var html = DOMPurify.sanitize(preparedHtml);
102
- return { __html: html };
103
- };
104
- 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 handleClickMailCloseIcon({ event: event, notificationId: notificationId }); } })] })), _jsxs("div", __assign({ className: "smartapp-notification__body" }, { children: [avatar && _jsx(Avatar, { 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 })] }))] }))] }))); };
105
- 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 handleClickMailCloseIcon({ event: event, notificationId: notificationId }); } })] }))); };
106
- var renderNotificationAction = function (_a) {
107
- var notificationId = _a.notificationId, _b = _a.action, text = _b.text, color = _b.color, onClick = _b.onClick;
108
- 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 })));
109
- };
110
- var renderNotificationContent = function (notificationId) {
111
- switch (type) {
112
- case NOTIFICATION_TYPES.mail:
113
- return renderMailNotificationContent(notificationId);
114
- case NOTIFICATION_TYPES.mailMulti:
115
- return renderMultiMailNotificationContent(notificationId);
116
- case NOTIFICATION_TYPES.custom:
117
- return content || _jsx("div", {});
118
- default:
119
- return (_jsxs("div", __assign({ className: "smartapp-notification" }, { children: [NOTIFICATION_ICONS(iconColor)[type], _jsxs("div", __assign({ ref: contentRef, className: classNames('smartapp-notification__content', {
120
- 'smartapp-notification__content--column-direction': action === null || action === void 0 ? void 0 : action.isLocatedAtBottom,
121
- }) }, { children: [text && (_jsx("div", { children: _jsx("span", { ref: contentSpanRef, dangerouslySetInnerHTML: createSanitizedHtml(text) }) })), action && renderNotificationAction({ notificationId: notificationId, action: action })] }))] })));
122
- }
123
- };
124
- var renderToastContainer = function (_a) {
125
- var containerId = _a.containerId, distanceFromBottom = _a.distanceFromBottom;
126
- var isIndefinitelyContainer = containerId === INDEFINITELY_CONTAINER_ID;
127
- var fullScreenPosition = isIndefinitelyContainer ? "bottom-".concat(indefinitelyFullScreenPosition) : 'top-right';
128
- 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), {
129
- 'Toastify__toast-container--bigger-gap': isBiggerGapInNotificationContent,
130
- 'Toastify__toast-container--full-screen': isLayoutFullScreen,
131
- 'Toastify__toast-container--full-screen__indefinitely-right': isLayoutFullScreen && isIndefinitelyContainer && indefinitelyFullScreenPosition === INDEFINITELY_FULL_SCREEN_POSITION.right,
132
- 'Toastify__toast-container--full-screen__indefinitely-left': isLayoutFullScreen && isIndefinitelyContainer && indefinitelyFullScreenPosition === INDEFINITELY_FULL_SCREEN_POSITION.left,
133
- }, containerClassName), style: __assign({ '--distance-from-bottom': "".concat(distanceFromBottom, "px") }, containerStyles), transition: notificationAnimation, position: isLayoutFullScreen ? fullScreenPosition : 'bottom-center' }));
134
- };
135
- var handleAddContentResizeObserver = function () {
136
- var contentRefCurrent = contentRef.current;
137
- var contentSpanRefCurrent = contentSpanRef.current;
138
- var contentSpanParentElement = contentSpanRefCurrent === null || contentSpanRefCurrent === void 0 ? void 0 : contentSpanRefCurrent.parentElement;
139
- var toastContainerElement = contentRefCurrent === null || contentRefCurrent === void 0 ? void 0 : contentRefCurrent.closest(".".concat(TOAST_CONTAINER_CLASSNAME));
140
- if (!contentRefCurrent || !contentSpanRefCurrent || !contentSpanParentElement || !toastContainerElement)
141
- return null;
142
- var contentRefClassList = contentRefCurrent.classList;
143
- var resizeObserver = new ResizeObserver(debounce(function () {
144
- var _a;
145
- var _b = contentSpanRefCurrent.getBoundingClientRect(), spanWidth = _b.width, spanHeight = _b.height;
146
- var contentHeight = ((_a = contentRefCurrent.firstElementChild) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().height) || 0;
147
- var spanParentWidth = toastContainerElement.classList.contains(TOAST_CONTAINER_FULL_SCREEN_CLASSNAME) ? "".concat(spanWidth, "px") : '';
148
- contentHeight > MIN_CONTENT_HEIGHT ? contentRefClassList.add(TOP_ALIGN_CLASSNAME) : contentRefClassList.remove(TOP_ALIGN_CLASSNAME);
149
- type === NOTIFICATION_TYPES.failure && spanHeight > MIN_CONTENT_HEIGHT
150
- ? contentRefClassList.remove(PADDING_VERTICAL_CLASSNAME)
151
- : contentRefClassList.add(PADDING_VERTICAL_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, { containerId: AUTO_HIDDEN_CONTAINER_ID, autoClose: hideDuration, render: renderNotificationContent(id) });
162
- !isAutoHidden && setIndefinitelyIds(function (prevIds) { return __spreadArray(__spreadArray([], prevIds, true), [id], false); });
163
- toast(renderNotificationContent(id), {
164
- containerId: !isAutoHidden ? INDEFINITELY_CONTAINER_ID : AUTO_HIDDEN_CONTAINER_ID,
165
- toastId: id,
166
- autoClose: isAutoHidden ? hideDuration : false,
167
- className: classNames("Toastify__toast--".concat(type), className),
168
- style: styles,
169
- onOpen: function () { return (contentResizeObserver_1 = handleAddContentResizeObserver()); },
170
- onClose: function () {
171
- onClose === null || onClose === void 0 ? void 0 : onClose(id);
172
- contentResizeObserver_1 === null || contentResizeObserver_1 === void 0 ? void 0 : contentResizeObserver_1.disconnect();
173
- },
174
- });
175
- }
176
- // eslint-disable-next-line
177
- }, [id, hideDuration]);
178
- useEffect(function () {
179
- if (isAllIndefinitelyNeedToBeClosed) {
180
- indefinitelyIds.forEach(function (indefinitelyId) { return toast.dismiss(indefinitelyId); });
181
- }
182
- }, [indefinitelyIds, isAllIndefinitelyNeedToBeClosed]);
183
- useEffect(function () {
184
- if (isAllIndefinitelyNeedToBeClosed) {
185
- setIndefinitelyIds([]);
186
- }
187
- }, [isAllIndefinitelyNeedToBeClosed]);
188
- return (_jsxs(_Fragment, { children: [renderToastContainer({
189
- containerId: AUTO_HIDDEN_CONTAINER_ID,
190
- distanceFromBottom: calculateDistanceFromBottom() + indefinitelyIds.length * NOTIFICATION_HEIGHT,
191
- }), renderToastContainer({
192
- containerId: INDEFINITELY_CONTAINER_ID,
193
- distanceFromBottom: calculateDistanceFromBottom(),
194
- })] }));
195
- };
196
- export default Notification;
197
- //# sourceMappingURL=Notification.js.map
@@ -1 +0,0 @@
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,aAAa,EAAE,KAAK,EAAE,cAAc,EAAiB,MAAM,gBAAgB,CAAA;AACpF,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,SAAS,MAAM,WAAW,CAAA;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAA;AACjC,OAAO,MAAM,MAAM,WAAW,CAAA;AAC9B,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAC3D,OAAO,EACL,kBAAkB,EAClB,MAAM,EACN,WAAW,EACX,wCAAwC,EACxC,QAAQ,EACR,KAAK,EACL,qCAAqC,GACtC,MAAM,iBAAiB,CAAA;AAExB,OAAO,EAAE,cAAc,IAAI,uBAAuB,EAAE,MAAM,6CAA6C,CAAA;AACvG,OAAO,EAAE,cAAc,IAAI,oBAAoB,EAAE,MAAM,0CAA0C,CAAA;AACjG,OAAO,EAAE,cAAc,IAAI,uBAAuB,EAAE,MAAM,6CAA6C,CAAA;AACvG,OAAO,EAAE,cAAc,IAAI,qBAAqB,EAAE,MAAM,2CAA2C,CAAA;AACnG,OAAO,EAAE,cAAc,IAAI,uBAAuB,EAAE,MAAM,6CAA6C,CAAA;AACvG,OAAO,EAAE,cAAc,IAAI,qBAAqB,EAAE,MAAM,2CAA2C,CAAA;AACnG,OAAO,EAAE,cAAc,IAAI,QAAQ,EAAE,MAAM,6BAA6B,CAAA;AACxE,OAAO,EAAE,cAAc,IAAI,eAAe,EAAE,MAAM,qC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oB,CAAC;gBACpB,WAAW,EAAE,wBAAwB;gBACrC,kBAAkB,EAAE,2BAA2B,EAAE,GAAG,eAAe,CAAC,MAAM,GAAG,mBAAmB;aACjG,CAAC,EACD,oBAAoB,CAAC;gBACpB,WAAW,EAAE,yBAAyB;gBACtC,kBAAkB,EAAE,2BAA2B,EAAE;aAClD,CAAC,IACD,CACJ,CAAA;AACH,CAAC,CAAA;AAED,eAAe,YAAY,CAAA"}
@@ -1,2 +0,0 @@
1
- export { default } from './Notification';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/Notification/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/Notification/types.ts"],"names":[],"mappings":""}
@@ -1,42 +0,0 @@
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
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
- import { useEffect, useRef } from 'react';
14
- import { ReactComponent as LogoutIcon } from '../../assets/icons/logout.svg';
15
- import { ReactComponent as AddProfileIcon } from '../../assets/icons/plus.svg';
16
- import { generateColor } from '../../helpers';
17
- import { COLORS } from '../../constants';
18
- import '../../styles/styles.scss';
19
- var Profile = function (_a) {
20
- var _b, _c, _d;
21
- var username = _a.username, email = _a.email, _e = _a.isShowProfile, isShowProfile = _e === void 0 ? false : _e, _f = _a.onChange, onChange = _f === void 0 ? function () { return undefined; } : _f, onClickLogout = _a.onClickLogout, isMultipleProfile = _a.isMultipleProfile, onClickAddProfile = _a.onClickAddProfile, _g = _a.width, width = _g === void 0 ? 100 : _g, logoutColor = _a.logoutColor, addProfileColor = _a.addProfileColor, addProfileBackgroundColor = _a.addProfileBackgroundColor;
22
- var ref = useRef(null);
23
- var initials = (_d = (_c = (_b = username === null || username === void 0 ? void 0 : username.split(' ')) === null || _b === void 0 ? void 0 : _b.map(function (n) { return n[0]; })) === null || _c === void 0 ? void 0 : _c.join('.')) === null || _d === void 0 ? void 0 : _d.toUpperCase();
24
- useEffect(function () {
25
- var checkIfClickedOutside = function (e) {
26
- var _a;
27
- if (isShowProfile && (ref === null || ref === void 0 ? void 0 : ref.current) && !((_a = ref === null || ref === void 0 ? void 0 : ref.current) === null || _a === void 0 ? void 0 : _a.contains(e === null || e === void 0 ? void 0 : e.target))) {
28
- onChange(false);
29
- }
30
- };
31
- document.addEventListener('mousedown', checkIfClickedOutside);
32
- return function () {
33
- document.removeEventListener('mousedown', checkIfClickedOutside);
34
- };
35
- }, [isShowProfile, onChange]);
36
- return (_jsxs("div", __assign({ ref: ref, className: "smartapp-profile__container" }, { children: [_jsx("div", __assign({ onClick: function () { return onChange(!isShowProfile); }, className: "smartapp-profile__avatar" }, { children: initials })), isShowProfile && (_jsxs("div", __assign({ style: { width: "".concat(width, "%") }, className: "smartapp-profile" }, { children: [_jsxs("div", __assign({ className: "smartapp-profile__current-profile" }, { children: [_jsxs("div", __assign({ className: "smartapp-profile__current-profile--info" }, { children: [_jsx("div", __assign({ className: "smartapp-profile__avatar" }, { children: initials })), _jsxs("div", __assign({ className: "smartapp-profile__current-profile--info__data" }, { children: [_jsx("p", __assign({ className: "smartapp-profile__current-profile--info__data--username" }, { children: username })), email && _jsx("p", __assign({ className: "smartapp-profile__current-profile--info__data--email" }, { children: email }))] }))] })), _jsx("div", __assign({ onClick: onClickLogout, className: "smartapp-profile__current-profile--logout" }, { children: _jsx(LogoutIcon, { style: { color: generateColor(logoutColor, COLORS.blue) } }) }))] })), isMultipleProfile && (_jsxs("div", __assign({ onClick: onClickAddProfile, className: "smartapp-profile__add-profile" }, { children: [_jsx("div", __assign({ className: "smartapp-profile__add-profile--icon" }, { children: _jsx(AddProfileIcon, { style: {
37
- stroke: generateColor(addProfileColor, COLORS.blue),
38
- color: generateColor(addProfileBackgroundColor, COLORS.lighterBlue),
39
- } }) })), _jsx("p", __assign({ className: "smartapp-profile__add-profile--title" }, { children: "\u0414\u043E\u0431\u0430\u0432\u044C\u0442\u0435 \u0430\u043A\u043A\u0430\u0443\u043D\u0442" }))] })))] })))] })));
40
- };
41
- export default Profile;
42
- //# sourceMappingURL=Profile.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Profile.js","sourceRoot":"","sources":["../../../../src/сomponents/Profile/Profile.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAChD,OAAO,EAAE,cAAc,IAAI,UAAU,EAAE,MAAM,+BAA+B,CAAA;AAC5E,OAAO,EAAE,cAAc,IAAI,cAAc,EAAE,MAAM,6BAA6B,CAAA;AAE9E,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AACxC,OAAO,0BAA0B,CAAA;AAEjC,IAAM,OAAO,GAAG,UAAC,EAYD;;QAXd,QAAQ,cAAA,EACR,KAAK,WAAA,EACL,qBAAqB,EAArB,aAAa,mBAAG,KAAK,KAAA,EACrB,gBAAgC,EAAhC,QAAQ,mBAAG,cAAY,OAAA,SAAS,EAAT,CAAS,KAAA,EAChC,aAAa,mBAAA,EACb,iBAAiB,uBAAA,EACjB,iBAAiB,uBAAA,EACjB,aAAW,EAAX,KAAK,mBAAG,GAAG,KAAA,EACX,WAAW,iBAAA,EACX,eAAe,qBAAA,EACf,yBAAyB,+BAAA;IAEzB,IAAM,GAAG,GAAG,MAAM,CAAiB,IAAI,CA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,0BAA0B,gBAAE,QAAQ,IAAO,EAC1D,wBAAK,SAAS,EAAC,+CAA+C,iBAC5D,qBAAG,SAAS,EAAC,yDAAyD,gBAAE,QAAQ,IAAK,EACpF,KAAK,IAAI,qBAAG,SAAS,EAAC,sDAAsD,gBAAE,KAAK,IAAK,KACrF,KACF,EACN,uBAAK,OAAO,EAAE,aAAa,EAAE,SAAS,EAAC,2CAA2C,gBAChF,KAAC,UAAU,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,aAAa,CAAC,WAAW,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE,GAAI,IACrE,KACF,EACL,iBAAiB,IAAI,CACpB,wBAAK,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAC,+BAA+B,iBACxE,uBAAK,SAAS,EAAC,qCAAqC,gBAClD,KAAC,cAAc,IACb,KAAK,EAAE;wCACL,MAAM,EAAE,aAAa,CAAC,eAAe,EAAE,MAAM,CAAC,IAAI,CAAC;wCACnD,KAAK,EAAE,aAAa,CAAC,yBAAyB,EAAE,MAAM,CAAC,WAAW,CAAC;qCACpE,GACD,IACE,EACN,qBAAG,SAAS,EAAC,sCAAsC,iHAAqB,KACpE,CACP,KACG,CACP,KACG,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,OAAO,CAAA"}
@@ -1,2 +0,0 @@
1
- export { default } from './Profile';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/Profile/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/Profile/types.ts"],"names":[],"mappings":""}