@expressms/smartapp-ui 2.5.8 → 2.6.0

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 (401) hide show
  1. package/build/main/assets/icons/arrow-back.svg +3 -0
  2. package/build/main/assets/icons/arrow-down.svg +3 -0
  3. package/build/main/assets/icons/arrow-up.svg +3 -0
  4. package/build/main/assets/icons/attachment-loader.svg +3 -0
  5. package/build/main/assets/icons/button-loader.svg +3 -0
  6. package/build/main/assets/icons/cancel-cross.svg +3 -0
  7. package/build/main/assets/icons/check-mark.svg +4 -0
  8. package/build/main/assets/icons/clear.svg +3 -0
  9. package/build/main/assets/icons/close-stories.svg +4 -0
  10. package/build/main/assets/icons/close.svg +10 -0
  11. package/build/main/assets/icons/contact-info.svg +12 -0
  12. package/build/main/assets/icons/corporate-user.svg +10 -0
  13. package/build/main/assets/icons/crown.svg +5 -0
  14. package/build/main/assets/icons/delete-chip.svg +3 -0
  15. package/build/main/assets/icons/download.svg +4 -0
  16. package/build/main/assets/icons/error.svg +5 -0
  17. package/build/main/assets/icons/external-link.svg +3 -0
  18. package/build/main/assets/icons/eye-off.svg +10 -0
  19. package/build/main/assets/icons/eye.svg +10 -0
  20. package/build/main/assets/icons/file.svg +3 -0
  21. package/build/main/assets/icons/info.svg +5 -0
  22. package/build/main/assets/icons/loader.svg +3 -0
  23. package/build/main/assets/icons/logout.svg +4 -0
  24. package/build/main/assets/icons/magnifying-glass.svg +3 -0
  25. package/build/main/assets/icons/mail.svg +3 -0
  26. package/build/main/assets/icons/my-contact-user.svg +10 -0
  27. package/build/main/assets/icons/notification-close.svg +3 -0
  28. package/build/main/assets/icons/notification-error.svg +3 -0
  29. package/build/main/assets/icons/notification-failure.svg +3 -0
  30. package/build/main/assets/icons/notification-info.svg +5 -0
  31. package/build/main/assets/icons/notification-success.svg +4 -0
  32. package/build/main/assets/icons/notification-warning.svg +5 -0
  33. package/build/main/assets/icons/order.svg +6 -0
  34. package/build/main/assets/icons/plus.svg +4 -0
  35. package/build/main/assets/icons/refresh.svg +3 -0
  36. package/build/main/assets/icons/story-loader.svg +3 -0
  37. package/build/main/assets/icons/tick.svg +10 -0
  38. package/build/main/assets/icons/trash.svg +3 -0
  39. package/build/main/assets/storybook/index.d.ts +12 -0
  40. package/build/main/assets/storybook/index.js +13 -0
  41. package/build/main/assets/storybook/index.js.map +1 -0
  42. package/build/main/constants/constants.d.ts +136 -0
  43. package/build/main/constants/constants.js +152 -0
  44. package/build/main/constants/constants.js.map +1 -0
  45. package/build/main/constants/index.d.ts +2 -0
  46. package/build/main/constants/index.js +3 -0
  47. package/build/main/constants/index.js.map +1 -0
  48. package/build/main/constants/types.d.ts +28 -0
  49. package/build/main/constants/types.js +2 -0
  50. package/build/main/constants/types.js.map +1 -0
  51. package/build/main/helpers/index.d.ts +20 -0
  52. package/build/main/helpers/index.js +80 -0
  53. package/build/main/helpers/index.js.map +1 -0
  54. package/build/main/index.d.ts +3 -0
  55. package/build/main/index.js +4 -0
  56. package/build/main/index.js.map +1 -0
  57. package/build/main/styles/index.d.ts +1 -0
  58. package/build/main/styles/index.js +2 -0
  59. package/build/main/styles/index.js.map +1 -0
  60. package/build/main/styles/main.js +0 -0
  61. package/build/main/styles/styles.scss +14 -0
  62. package/build/main//321/201omponents/ActionModal/ActionModal.d.ts +4 -0
  63. package/build/main//321/201omponents/ActionModal/ActionModal.js +56 -0
  64. package/build/main//321/201omponents/ActionModal/ActionModal.js.map +1 -0
  65. package/build/main//321/201omponents/ActionModal/index.d.ts +1 -0
  66. package/build/main//321/201omponents/ActionModal/index.js +2 -0
  67. package/build/main//321/201omponents/ActionModal/index.js.map +1 -0
  68. package/build/main//321/201omponents/ActionModal/types.d.ts +20 -0
  69. package/build/main//321/201omponents/ActionModal/types.js +2 -0
  70. package/build/main//321/201omponents/ActionModal/types.js.map +1 -0
  71. package/build/main//321/201omponents/AttachedFile/AttachedFile.d.ts +8 -0
  72. package/build/main//321/201omponents/AttachedFile/AttachedFile.js +60 -0
  73. package/build/main//321/201omponents/AttachedFile/AttachedFile.js.map +1 -0
  74. package/build/main//321/201omponents/AttachedFile/index.d.ts +1 -0
  75. package/build/main//321/201omponents/AttachedFile/index.js +2 -0
  76. package/build/main//321/201omponents/AttachedFile/index.js.map +1 -0
  77. package/build/main//321/201omponents/AttachedFile/types.d.ts +23 -0
  78. package/build/main//321/201omponents/AttachedFile/types.js +2 -0
  79. package/build/main//321/201omponents/AttachedFile/types.js.map +1 -0
  80. package/build/main//321/201omponents/Avatar/Avatar.d.ts +4 -0
  81. package/build/main//321/201omponents/Avatar/Avatar.js +115 -0
  82. package/build/main//321/201omponents/Avatar/Avatar.js.map +1 -0
  83. package/build/main//321/201omponents/Avatar/index.d.ts +1 -0
  84. package/build/main//321/201omponents/Avatar/index.js +2 -0
  85. package/build/main//321/201omponents/Avatar/index.js.map +1 -0
  86. package/build/main//321/201omponents/Avatar/types.d.ts +36 -0
  87. package/build/main//321/201omponents/Avatar/types.js +9 -0
  88. package/build/main//321/201omponents/Avatar/types.js.map +1 -0
  89. package/build/main//321/201omponents/Button/Button.d.ts +4 -0
  90. package/build/main//321/201omponents/Button/Button.js +57 -0
  91. package/build/main//321/201omponents/Button/Button.js.map +1 -0
  92. package/build/main//321/201omponents/Button/index.d.ts +1 -0
  93. package/build/main//321/201omponents/Button/index.js +2 -0
  94. package/build/main//321/201omponents/Button/index.js.map +1 -0
  95. package/build/main//321/201omponents/Button/types.d.ts +23 -0
  96. package/build/main//321/201omponents/Button/types.js +11 -0
  97. package/build/main//321/201omponents/Button/types.js.map +1 -0
  98. package/build/main//321/201omponents/CachedImage/CachedImage.d.ts +4 -0
  99. package/build/main//321/201omponents/CachedImage/CachedImage.js +54 -0
  100. package/build/main//321/201omponents/CachedImage/CachedImage.js.map +1 -0
  101. package/build/main//321/201omponents/CachedImage/helpers.d.ts +3 -0
  102. package/build/main//321/201omponents/CachedImage/helpers.js +40 -0
  103. package/build/main//321/201omponents/CachedImage/helpers.js.map +1 -0
  104. package/build/main//321/201omponents/CachedImage/index.d.ts +1 -0
  105. package/build/main//321/201omponents/CachedImage/index.js +2 -0
  106. package/build/main//321/201omponents/CachedImage/index.js.map +1 -0
  107. package/build/main//321/201omponents/CachedImage/types.d.ts +8 -0
  108. package/build/main//321/201omponents/CachedImage/types.js +2 -0
  109. package/build/main//321/201omponents/CachedImage/types.js.map +1 -0
  110. package/build/main//321/201omponents/Calendar/Calendar.d.ts +4 -0
  111. package/build/main//321/201omponents/Calendar/Calendar.js +48 -0
  112. package/build/main//321/201omponents/Calendar/Calendar.js.map +1 -0
  113. package/build/main//321/201omponents/Calendar/index.d.ts +1 -0
  114. package/build/main//321/201omponents/Calendar/index.js +2 -0
  115. package/build/main//321/201omponents/Calendar/index.js.map +1 -0
  116. package/build/main//321/201omponents/Calendar/types.d.ts +14 -0
  117. package/build/main//321/201omponents/Calendar/types.js +2 -0
  118. package/build/main//321/201omponents/Calendar/types.js.map +1 -0
  119. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.d.ts +3 -0
  120. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js +39 -0
  121. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js.map +1 -0
  122. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.d.ts +3 -0
  123. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js +30 -0
  124. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js.map +1 -0
  125. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.d.ts +3 -0
  126. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js +64 -0
  127. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js.map +1 -0
  128. package/build/main//321/201omponents/Charts/colors.d.ts +2 -0
  129. package/build/main//321/201omponents/Charts/colors.js +3 -0
  130. package/build/main//321/201omponents/Charts/colors.js.map +1 -0
  131. package/build/main//321/201omponents/Charts/constants.d.ts +50 -0
  132. package/build/main//321/201omponents/Charts/constants.js +36 -0
  133. package/build/main//321/201omponents/Charts/constants.js.map +1 -0
  134. package/build/main//321/201omponents/Charts/helpers.d.ts +68 -0
  135. package/build/main//321/201omponents/Charts/helpers.js +91 -0
  136. package/build/main//321/201omponents/Charts/helpers.js.map +1 -0
  137. package/build/main//321/201omponents/Charts/index.d.ts +3 -0
  138. package/build/main//321/201omponents/Charts/index.js +4 -0
  139. package/build/main//321/201omponents/Charts/index.js.map +1 -0
  140. package/build/main//321/201omponents/Charts/types.d.ts +51 -0
  141. package/build/main//321/201omponents/Charts/types.js +2 -0
  142. package/build/main//321/201omponents/Charts/types.js.map +1 -0
  143. package/build/main//321/201omponents/Checkbox/Checkbox.d.ts +4 -0
  144. package/build/main//321/201omponents/Checkbox/Checkbox.js +36 -0
  145. package/build/main//321/201omponents/Checkbox/Checkbox.js.map +1 -0
  146. package/build/main//321/201omponents/Checkbox/index.d.ts +1 -0
  147. package/build/main//321/201omponents/Checkbox/index.js +2 -0
  148. package/build/main//321/201omponents/Checkbox/index.js.map +1 -0
  149. package/build/main//321/201omponents/Checkbox/types.d.ts +9 -0
  150. package/build/main//321/201omponents/Checkbox/types.js +2 -0
  151. package/build/main//321/201omponents/Checkbox/types.js.map +1 -0
  152. package/build/main//321/201omponents/Chip/Chip.d.ts +4 -0
  153. package/build/main//321/201omponents/Chip/Chip.js +40 -0
  154. package/build/main//321/201omponents/Chip/Chip.js.map +1 -0
  155. package/build/main//321/201omponents/Chip/index.d.ts +1 -0
  156. package/build/main//321/201omponents/Chip/index.js +2 -0
  157. package/build/main//321/201omponents/Chip/index.js.map +1 -0
  158. package/build/main//321/201omponents/Chip/types.d.ts +10 -0
  159. package/build/main//321/201omponents/Chip/types.js +2 -0
  160. package/build/main//321/201omponents/Chip/types.js.map +1 -0
  161. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.d.ts +4 -0
  162. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js +44 -0
  163. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js.map +1 -0
  164. package/build/main//321/201omponents/ConfirmationModal/index.d.ts +1 -0
  165. package/build/main//321/201omponents/ConfirmationModal/index.js +2 -0
  166. package/build/main//321/201omponents/ConfirmationModal/index.js.map +1 -0
  167. package/build/main//321/201omponents/ConfirmationModal/types.d.ts +16 -0
  168. package/build/main//321/201omponents/ConfirmationModal/types.js +2 -0
  169. package/build/main//321/201omponents/ConfirmationModal/types.js.map +1 -0
  170. package/build/main//321/201omponents/ContextMenu/ContextMenu.d.ts +4 -0
  171. package/build/main//321/201omponents/ContextMenu/ContextMenu.js +55 -0
  172. package/build/main//321/201omponents/ContextMenu/ContextMenu.js.map +1 -0
  173. package/build/main//321/201omponents/ContextMenu/index.d.ts +1 -0
  174. package/build/main//321/201omponents/ContextMenu/index.js +2 -0
  175. package/build/main//321/201omponents/ContextMenu/index.js.map +1 -0
  176. package/build/main//321/201omponents/ContextMenu/types.d.ts +24 -0
  177. package/build/main//321/201omponents/ContextMenu/types.js +2 -0
  178. package/build/main//321/201omponents/ContextMenu/types.js.map +1 -0
  179. package/build/main//321/201omponents/CustomSelect/CustomSelect.d.ts +4 -0
  180. package/build/main//321/201omponents/CustomSelect/CustomSelect.js +172 -0
  181. package/build/main//321/201omponents/CustomSelect/CustomSelect.js.map +1 -0
  182. package/build/main//321/201omponents/CustomSelect/index.d.ts +1 -0
  183. package/build/main//321/201omponents/CustomSelect/index.js +2 -0
  184. package/build/main//321/201omponents/CustomSelect/index.js.map +1 -0
  185. package/build/main//321/201omponents/CustomSelect/selectStyles.d.ts +16 -0
  186. package/build/main//321/201omponents/CustomSelect/selectStyles.js +61 -0
  187. package/build/main//321/201omponents/CustomSelect/selectStyles.js.map +1 -0
  188. package/build/main//321/201omponents/CustomSelect/types.d.ts +54 -0
  189. package/build/main//321/201omponents/CustomSelect/types.js +2 -0
  190. package/build/main//321/201omponents/CustomSelect/types.js.map +1 -0
  191. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.d.ts +4 -0
  192. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js +57 -0
  193. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js.map +1 -0
  194. package/build/main//321/201omponents/CustomSelectProfiles/index.d.ts +1 -0
  195. package/build/main//321/201omponents/CustomSelectProfiles/index.js +2 -0
  196. package/build/main//321/201omponents/CustomSelectProfiles/index.js.map +1 -0
  197. package/build/main//321/201omponents/CustomSelectProfiles/types.d.ts +12 -0
  198. package/build/main//321/201omponents/CustomSelectProfiles/types.js +2 -0
  199. package/build/main//321/201omponents/CustomSelectProfiles/types.js.map +1 -0
  200. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.d.ts +4 -0
  201. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js +57 -0
  202. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js.map +1 -0
  203. package/build/main//321/201omponents/DragAndDrop/index.d.ts +1 -0
  204. package/build/main//321/201omponents/DragAndDrop/index.js +2 -0
  205. package/build/main//321/201omponents/DragAndDrop/index.js.map +1 -0
  206. package/build/main//321/201omponents/DragAndDrop/types.d.ts +24 -0
  207. package/build/main//321/201omponents/DragAndDrop/types.js +2 -0
  208. package/build/main//321/201omponents/DragAndDrop/types.js.map +1 -0
  209. package/build/main//321/201omponents/Error/Error.d.ts +4 -0
  210. package/build/main//321/201omponents/Error/Error.js +22 -0
  211. package/build/main//321/201omponents/Error/Error.js.map +1 -0
  212. package/build/main//321/201omponents/Error/index.d.ts +1 -0
  213. package/build/main//321/201omponents/Error/index.js +2 -0
  214. package/build/main//321/201omponents/Error/index.js.map +1 -0
  215. package/build/main//321/201omponents/Error/types.d.ts +7 -0
  216. package/build/main//321/201omponents/Error/types.js +2 -0
  217. package/build/main//321/201omponents/Error/types.js.map +1 -0
  218. package/build/main//321/201omponents/Header/Header.d.ts +5 -0
  219. package/build/main//321/201omponents/Header/Header.js +124 -0
  220. package/build/main//321/201omponents/Header/Header.js.map +1 -0
  221. package/build/main//321/201omponents/Header/index.d.ts +1 -0
  222. package/build/main//321/201omponents/Header/index.js +2 -0
  223. package/build/main//321/201omponents/Header/index.js.map +1 -0
  224. package/build/main//321/201omponents/Header/types.d.ts +44 -0
  225. package/build/main//321/201omponents/Header/types.js +2 -0
  226. package/build/main//321/201omponents/Header/types.js.map +1 -0
  227. package/build/main//321/201omponents/Input/Input.d.ts +4 -0
  228. package/build/main//321/201omponents/Input/Input.js +210 -0
  229. package/build/main//321/201omponents/Input/Input.js.map +1 -0
  230. package/build/main//321/201omponents/Input/index.d.ts +1 -0
  231. package/build/main//321/201omponents/Input/index.js +2 -0
  232. package/build/main//321/201omponents/Input/index.js.map +1 -0
  233. package/build/main//321/201omponents/Input/types.d.ts +27 -0
  234. package/build/main//321/201omponents/Input/types.js +2 -0
  235. package/build/main//321/201omponents/Input/types.js.map +1 -0
  236. package/build/main//321/201omponents/ListItem/ListItem.d.ts +23 -0
  237. package/build/main//321/201omponents/ListItem/ListItem.js +195 -0
  238. package/build/main//321/201omponents/ListItem/ListItem.js.map +1 -0
  239. package/build/main//321/201omponents/ListItem/index.d.ts +1 -0
  240. package/build/main//321/201omponents/ListItem/index.js +2 -0
  241. package/build/main//321/201omponents/ListItem/index.js.map +1 -0
  242. package/build/main//321/201omponents/ListItem/types.d.ts +38 -0
  243. package/build/main//321/201omponents/ListItem/types.js +2 -0
  244. package/build/main//321/201omponents/ListItem/types.js.map +1 -0
  245. package/build/main//321/201omponents/Loader/Loader.d.ts +4 -0
  246. package/build/main//321/201omponents/Loader/Loader.js +40 -0
  247. package/build/main//321/201omponents/Loader/Loader.js.map +1 -0
  248. package/build/main//321/201omponents/Loader/index.d.ts +1 -0
  249. package/build/main//321/201omponents/Loader/index.js +2 -0
  250. package/build/main//321/201omponents/Loader/index.js.map +1 -0
  251. package/build/main//321/201omponents/Loader/types.d.ts +12 -0
  252. package/build/main//321/201omponents/Loader/types.js +2 -0
  253. package/build/main//321/201omponents/Loader/types.js.map +1 -0
  254. package/build/main//321/201omponents/Modal/Modal.d.ts +4 -0
  255. package/build/main//321/201omponents/Modal/Modal.js +53 -0
  256. package/build/main//321/201omponents/Modal/Modal.js.map +1 -0
  257. package/build/main//321/201omponents/Modal/index.d.ts +1 -0
  258. package/build/main//321/201omponents/Modal/index.js +2 -0
  259. package/build/main//321/201omponents/Modal/index.js.map +1 -0
  260. package/build/main//321/201omponents/Modal/types.d.ts +15 -0
  261. package/build/main//321/201omponents/Modal/types.js +2 -0
  262. package/build/main//321/201omponents/Modal/types.js.map +1 -0
  263. package/build/main//321/201omponents/Notification/Notification.d.ts +8 -0
  264. package/build/main//321/201omponents/Notification/Notification.js +178 -0
  265. package/build/main//321/201omponents/Notification/Notification.js.map +1 -0
  266. package/build/main//321/201omponents/Notification/index.d.ts +1 -0
  267. package/build/main//321/201omponents/Notification/index.js +2 -0
  268. package/build/main//321/201omponents/Notification/index.js.map +1 -0
  269. package/build/main//321/201omponents/Notification/types.d.ts +39 -0
  270. package/build/main//321/201omponents/Notification/types.js +2 -0
  271. package/build/main//321/201omponents/Notification/types.js.map +1 -0
  272. package/build/main//321/201omponents/Profile/Profile.d.ts +4 -0
  273. package/build/main//321/201omponents/Profile/Profile.js +42 -0
  274. package/build/main//321/201omponents/Profile/Profile.js.map +1 -0
  275. package/build/main//321/201omponents/Profile/index.d.ts +1 -0
  276. package/build/main//321/201omponents/Profile/index.js +2 -0
  277. package/build/main//321/201omponents/Profile/index.js.map +1 -0
  278. package/build/main//321/201omponents/Profile/types.d.ts +14 -0
  279. package/build/main//321/201omponents/Profile/types.js +2 -0
  280. package/build/main//321/201omponents/Profile/types.js.map +1 -0
  281. package/build/main//321/201omponents/ProgressBar/ProgressBar.d.ts +4 -0
  282. package/build/main//321/201omponents/ProgressBar/ProgressBar.js +66 -0
  283. package/build/main//321/201omponents/ProgressBar/ProgressBar.js.map +1 -0
  284. package/build/main//321/201omponents/ProgressBar/index.d.ts +1 -0
  285. package/build/main//321/201omponents/ProgressBar/index.js +2 -0
  286. package/build/main//321/201omponents/ProgressBar/index.js.map +1 -0
  287. package/build/main//321/201omponents/ProgressBar/types.d.ts +4 -0
  288. package/build/main//321/201omponents/ProgressBar/types.js +2 -0
  289. package/build/main//321/201omponents/ProgressBar/types.js.map +1 -0
  290. package/build/main//321/201omponents/RadioButton/RadioButton.d.ts +4 -0
  291. package/build/main//321/201omponents/RadioButton/RadioButton.js +36 -0
  292. package/build/main//321/201omponents/RadioButton/RadioButton.js.map +1 -0
  293. package/build/main//321/201omponents/RadioButton/index.d.ts +1 -0
  294. package/build/main//321/201omponents/RadioButton/index.js +2 -0
  295. package/build/main//321/201omponents/RadioButton/index.js.map +1 -0
  296. package/build/main//321/201omponents/RadioButton/types.d.ts +9 -0
  297. package/build/main//321/201omponents/RadioButton/types.js +2 -0
  298. package/build/main//321/201omponents/RadioButton/types.js.map +1 -0
  299. package/build/main//321/201omponents/ScrollBar/ScrollBar.d.ts +4 -0
  300. package/build/main//321/201omponents/ScrollBar/ScrollBar.js +50 -0
  301. package/build/main//321/201omponents/ScrollBar/ScrollBar.js.map +1 -0
  302. package/build/main//321/201omponents/ScrollBar/index.d.ts +1 -0
  303. package/build/main//321/201omponents/ScrollBar/index.js +2 -0
  304. package/build/main//321/201omponents/ScrollBar/index.js.map +1 -0
  305. package/build/main//321/201omponents/ScrollBar/types.d.ts +9 -0
  306. package/build/main//321/201omponents/ScrollBar/types.js +2 -0
  307. package/build/main//321/201omponents/ScrollBar/types.js.map +1 -0
  308. package/build/main//321/201omponents/Skeleton/Skeleton.d.ts +4 -0
  309. package/build/main//321/201omponents/Skeleton/Skeleton.js +66 -0
  310. package/build/main//321/201omponents/Skeleton/Skeleton.js.map +1 -0
  311. package/build/main//321/201omponents/Skeleton/index.d.ts +1 -0
  312. package/build/main//321/201omponents/Skeleton/index.js +2 -0
  313. package/build/main//321/201omponents/Skeleton/index.js.map +1 -0
  314. package/build/main//321/201omponents/Skeleton/types.d.ts +16 -0
  315. package/build/main//321/201omponents/Skeleton/types.js +2 -0
  316. package/build/main//321/201omponents/Skeleton/types.js.map +1 -0
  317. package/build/main//321/201omponents/Stories/Stories.d.ts +4 -0
  318. package/build/main//321/201omponents/Stories/Stories.js +281 -0
  319. package/build/main//321/201omponents/Stories/Stories.js.map +1 -0
  320. package/build/main//321/201omponents/Stories/index.d.ts +1 -0
  321. package/build/main//321/201omponents/Stories/index.js +2 -0
  322. package/build/main//321/201omponents/Stories/index.js.map +1 -0
  323. package/build/main//321/201omponents/Stories/types.d.ts +54 -0
  324. package/build/main//321/201omponents/Stories/types.js +11 -0
  325. package/build/main//321/201omponents/Stories/types.js.map +1 -0
  326. package/build/main//321/201omponents/Switcher/Switcher.d.ts +4 -0
  327. package/build/main//321/201omponents/Switcher/Switcher.js +34 -0
  328. package/build/main//321/201omponents/Switcher/Switcher.js.map +1 -0
  329. package/build/main//321/201omponents/Switcher/index.d.ts +1 -0
  330. package/build/main//321/201omponents/Switcher/index.js +2 -0
  331. package/build/main//321/201omponents/Switcher/index.js.map +1 -0
  332. package/build/main//321/201omponents/Switcher/types.d.ts +8 -0
  333. package/build/main//321/201omponents/Switcher/types.js +2 -0
  334. package/build/main//321/201omponents/Switcher/types.js.map +1 -0
  335. package/build/main//321/201omponents/SyncLoader/SyncLoader.d.ts +5 -0
  336. package/build/main//321/201omponents/SyncLoader/SyncLoader.js +65 -0
  337. package/build/main//321/201omponents/SyncLoader/SyncLoader.js.map +1 -0
  338. package/build/main//321/201omponents/SyncLoader/index.d.ts +1 -0
  339. package/build/main//321/201omponents/SyncLoader/index.js +2 -0
  340. package/build/main//321/201omponents/SyncLoader/index.js.map +1 -0
  341. package/build/main//321/201omponents/SyncLoader/types.d.ts +7 -0
  342. package/build/main//321/201omponents/SyncLoader/types.js +2 -0
  343. package/build/main//321/201omponents/SyncLoader/types.js.map +1 -0
  344. package/build/main//321/201omponents/Textarea/Textarea.d.ts +4 -0
  345. package/build/main//321/201omponents/Textarea/Textarea.js +96 -0
  346. package/build/main//321/201omponents/Textarea/Textarea.js.map +1 -0
  347. package/build/main//321/201omponents/Textarea/index.d.ts +1 -0
  348. package/build/main//321/201omponents/Textarea/index.js +2 -0
  349. package/build/main//321/201omponents/Textarea/index.js.map +1 -0
  350. package/build/main//321/201omponents/Textarea/types.d.ts +10 -0
  351. package/build/main//321/201omponents/Textarea/types.js +2 -0
  352. package/build/main//321/201omponents/Textarea/types.js.map +1 -0
  353. package/build/main//321/201omponents/Toggle/Toggle.d.ts +4 -0
  354. package/build/main//321/201omponents/Toggle/Toggle.js +38 -0
  355. package/build/main//321/201omponents/Toggle/Toggle.js.map +1 -0
  356. package/build/main//321/201omponents/Toggle/index.d.ts +1 -0
  357. package/build/main//321/201omponents/Toggle/index.js +2 -0
  358. package/build/main//321/201omponents/Toggle/index.js.map +1 -0
  359. package/build/main//321/201omponents/Toggle/types.d.ts +9 -0
  360. package/build/main//321/201omponents/Toggle/types.js +2 -0
  361. package/build/main//321/201omponents/Toggle/types.js.map +1 -0
  362. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.d.ts +4 -0
  363. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js +31 -0
  364. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js.map +1 -0
  365. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.d.ts +4 -0
  366. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js +70 -0
  367. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js.map +1 -0
  368. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.d.ts +4 -0
  369. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js +23 -0
  370. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js.map +1 -0
  371. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.d.ts +3 -0
  372. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js +76 -0
  373. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js.map +1 -0
  374. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.d.ts +3 -0
  375. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js +40 -0
  376. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js.map +1 -0
  377. package/build/main//321/201omponents/UserDropdown/Option/Option.d.ts +4 -0
  378. package/build/main//321/201omponents/UserDropdown/Option/Option.js +55 -0
  379. package/build/main//321/201omponents/UserDropdown/Option/Option.js.map +1 -0
  380. package/build/main//321/201omponents/UserDropdown/UserDropdown.d.ts +4 -0
  381. package/build/main//321/201omponents/UserDropdown/UserDropdown.js +396 -0
  382. package/build/main//321/201omponents/UserDropdown/UserDropdown.js.map +1 -0
  383. package/build/main//321/201omponents/UserDropdown/helpers.d.ts +90 -0
  384. package/build/main//321/201omponents/UserDropdown/helpers.js +93 -0
  385. package/build/main//321/201omponents/UserDropdown/helpers.js.map +1 -0
  386. package/build/main//321/201omponents/UserDropdown/index.d.ts +1 -0
  387. package/build/main//321/201omponents/UserDropdown/index.js +2 -0
  388. package/build/main//321/201omponents/UserDropdown/index.js.map +1 -0
  389. package/build/main//321/201omponents/UserDropdown/selectStyles.d.ts +15 -0
  390. package/build/main//321/201omponents/UserDropdown/selectStyles.js +72 -0
  391. package/build/main//321/201omponents/UserDropdown/selectStyles.js.map +1 -0
  392. package/build/main//321/201omponents/UserDropdown/types.d.ts +189 -0
  393. package/build/main//321/201omponents/UserDropdown/types.js +2 -0
  394. package/build/main//321/201omponents/UserDropdown/types.js.map +1 -0
  395. package/build/main//321/201omponents/index.d.ts +32 -0
  396. package/build/main//321/201omponents/index.js +33 -0
  397. package/build/main//321/201omponents/index.js.map +1 -0
  398. package/build/main//321/201omponents/types.d.ts +2 -0
  399. package/build/main//321/201omponents/types.js +2 -0
  400. package/build/main//321/201omponents/types.js.map +1 -0
  401. package/package.json +1 -1
@@ -0,0 +1,178 @@
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 '../../styles/styles.scss';
39
+ var AUTO_HIDDEN_CONTAINER_ID = 'autoHiddenContainerId';
40
+ var INDEFINITELY_CONTAINER_ID = 'indefinitelyContainerId';
41
+ var NOTIFICATION_HEIGHT = 66;
42
+ var MIN_CONTENT_HEIGHT = 19;
43
+ var TOP_ALIGN_CLASSNAME = 'smartapp-notification__content--top-align';
44
+ var TOAST_CONTAINER_CLASSNAME = 'Toastify__toast-container';
45
+ var TOAST_CONTAINER_FULL_SCREEN_CLASSNAME = 'Toastify__toast-container--full-screen';
46
+ var NOTIFICATION_TYPES = {
47
+ success: 'success',
48
+ info: 'info',
49
+ warning: 'warning',
50
+ error: 'error',
51
+ failure: 'failure',
52
+ mail: 'mail',
53
+ };
54
+ var NOTIFICATION_ICONS = function (iconColor) {
55
+ var _a;
56
+ return (_a = {},
57
+ _a[NOTIFICATION_TYPES.success] = _jsx(NotificationSuccessIcon, { style: { color: iconColor || COLORS.blue } }),
58
+ _a[NOTIFICATION_TYPES.info] = _jsx(NotificationInfoIcon, { style: { color: iconColor || COLORS.blue } }),
59
+ _a[NOTIFICATION_TYPES.warning] = _jsx(NotificationWarningIcon, {}),
60
+ _a[NOTIFICATION_TYPES.error] = _jsx(NotificationErrorIcon, {}),
61
+ _a[NOTIFICATION_TYPES.failure] = _jsx(NotificationFailureIcon, {}),
62
+ _a);
63
+ };
64
+ export var INDEFINITELY_FULL_SCREEN_POSITION = {
65
+ right: 'right',
66
+ left: 'left',
67
+ };
68
+ var Notification = function (_a) {
69
+ 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, title = _a.title, avatar = _a.avatar, text = _a.text, subText = _a.subText, iconColor = _a.iconColor, action = _a.action, onClose = _a.onClose;
70
+ var contentRef = useRef(null);
71
+ var contentSpanRef = useRef(null);
72
+ var toastContainerRef = useRef(null);
73
+ var isLayoutFullScreen = isFullScreen(layoutType);
74
+ var isBiggerGapInNotificationContent = isWebPlatform(platform) && layoutType !== LAYOUT_TYPE.minimal;
75
+ var _k = useState([]), indefinitelyIds = _k[0], setIndefinitelyIds = _k[1];
76
+ var getDistanceFromBottom = function () {
77
+ var defaultDistanceFromBottom = isWebPlatform(platform) ? WEB_NOTIFICATION_DISTANCE_FROM_BOTTOM : MOBILE_NOTIFICATION_DISTANCE_FROM_BOTTOM;
78
+ return distanceFromBottom || defaultDistanceFromBottom;
79
+ };
80
+ var notificationAnimation = cssTransition({
81
+ enter: 'notification-enter-animation',
82
+ exit: 'notification-exit-animation',
83
+ appendPosition: true,
84
+ });
85
+ var handleActionClick = function (_a) {
86
+ var notificationId = _a.notificationId, action = _a.action;
87
+ toast.dismiss(notificationId);
88
+ action && action();
89
+ };
90
+ var handleClickMailCloseIcon = function (_a) {
91
+ var event = _a.event, notificationId = _a.notificationId;
92
+ event.stopPropagation();
93
+ toast.dismiss(notificationId);
94
+ };
95
+ var getSanitizedHtml = function (str) {
96
+ var preparedHtml = juice(str);
97
+ var html = DOMPurify.sanitize(preparedHtml);
98
+ return { __html: html };
99
+ };
100
+ 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: [_jsx("div", { children: text }), _jsx("div", { children: subText })] }))] }))] }))); };
101
+ var renderNotificationAction = function (_a) {
102
+ var notificationId = _a.notificationId, _b = _a.action, text = _b.text, color = _b.color, onClick = _b.onClick;
103
+ 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 })));
104
+ };
105
+ var renderNotificationContent = function (notificationId) {
106
+ if (type === NOTIFICATION_TYPES.mail) {
107
+ return renderMailNotificationContent(notificationId);
108
+ }
109
+ return (_jsxs("div", __assign({ className: "smartapp-notification" }, { children: [NOTIFICATION_ICONS(iconColor)[type], _jsxs("div", __assign({ ref: contentRef, className: classNames('smartapp-notification__content', { 'smartapp-notification__content--column-direction': action === null || action === void 0 ? void 0 : action.isLocatedAtBottom }) }, { children: [_jsx("div", { children: _jsx("span", { ref: contentSpanRef, dangerouslySetInnerHTML: getSanitizedHtml(text) }) }), action && renderNotificationAction({ notificationId: notificationId, action: action })] }))] })));
110
+ };
111
+ var renderToastContainer = function (_a) {
112
+ var containerId = _a.containerId, distanceFromBottom = _a.distanceFromBottom;
113
+ var isIndefinitelyContainer = containerId === INDEFINITELY_CONTAINER_ID;
114
+ var fullScreenPosition = isIndefinitelyContainer ? "bottom-".concat(indefinitelyFullScreenPosition) : 'top-right';
115
+ 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), {
116
+ 'Toastify__toast-container--bigger-gap': isBiggerGapInNotificationContent,
117
+ 'Toastify__toast-container--full-screen': isLayoutFullScreen,
118
+ 'Toastify__toast-container--full-screen__indefinitely-right': isLayoutFullScreen && isIndefinitelyContainer && indefinitelyFullScreenPosition === INDEFINITELY_FULL_SCREEN_POSITION.right,
119
+ 'Toastify__toast-container--full-screen__indefinitely-left': isLayoutFullScreen && isIndefinitelyContainer && indefinitelyFullScreenPosition === INDEFINITELY_FULL_SCREEN_POSITION.left,
120
+ }), style: { '--distance-from-bottom': "".concat(distanceFromBottom, "px") }, transition: notificationAnimation, position: isLayoutFullScreen ? fullScreenPosition : 'bottom-center' }));
121
+ };
122
+ var handleAddContentResizeObserver = function () {
123
+ var contentRefCurrent = contentRef.current;
124
+ var contentSpanRefCurrent = contentSpanRef.current;
125
+ var contentSpanParentElement = contentSpanRefCurrent === null || contentSpanRefCurrent === void 0 ? void 0 : contentSpanRefCurrent.parentElement;
126
+ var toastContainerElement = contentRefCurrent === null || contentRefCurrent === void 0 ? void 0 : contentRefCurrent.closest(".".concat(TOAST_CONTAINER_CLASSNAME));
127
+ if (!contentRefCurrent || !contentSpanRefCurrent || !contentSpanParentElement || !toastContainerElement)
128
+ return null;
129
+ var contentRefClassList = contentRefCurrent.classList;
130
+ var resizeObserver = new ResizeObserver(debounce(function () {
131
+ var _a;
132
+ var contentHeight = ((_a = contentRefCurrent.firstElementChild) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().height) || 0;
133
+ var spanWidth = contentSpanRefCurrent.getBoundingClientRect().width || 0;
134
+ var spanParentWidth = toastContainerElement.classList.contains(TOAST_CONTAINER_FULL_SCREEN_CLASSNAME) ? "".concat(spanWidth, "px") : '';
135
+ contentHeight > MIN_CONTENT_HEIGHT ? contentRefClassList.add(TOP_ALIGN_CLASSNAME) : contentRefClassList.remove(TOP_ALIGN_CLASSNAME);
136
+ contentSpanParentElement.style.width = spanParentWidth;
137
+ }));
138
+ resizeObserver.observe(contentRefCurrent);
139
+ return resizeObserver;
140
+ };
141
+ useEffect(function () {
142
+ if (id) {
143
+ var contentResizeObserver_1;
144
+ !isAutoHidden && setIndefinitelyIds(function (prevIds) { return __spreadArray(__spreadArray([], prevIds, true), [id], false); });
145
+ toast(renderNotificationContent(id), {
146
+ containerId: !isAutoHidden ? INDEFINITELY_CONTAINER_ID : AUTO_HIDDEN_CONTAINER_ID,
147
+ toastId: id,
148
+ autoClose: isAutoHidden ? hideDuration : false,
149
+ className: "Toastify__toast--".concat(type),
150
+ onOpen: function () { return (contentResizeObserver_1 = handleAddContentResizeObserver()); },
151
+ onClose: function () {
152
+ onClose === null || onClose === void 0 ? void 0 : onClose(id);
153
+ contentResizeObserver_1 === null || contentResizeObserver_1 === void 0 ? void 0 : contentResizeObserver_1.disconnect();
154
+ },
155
+ });
156
+ }
157
+ // eslint-disable-next-line
158
+ }, [id]);
159
+ useEffect(function () {
160
+ if (isAllIndefinitelyNeedToBeClosed) {
161
+ indefinitelyIds.forEach(function (indefinitelyId) { return toast.dismiss(indefinitelyId); });
162
+ }
163
+ }, [indefinitelyIds, isAllIndefinitelyNeedToBeClosed]);
164
+ useEffect(function () {
165
+ if (isAllIndefinitelyNeedToBeClosed) {
166
+ setIndefinitelyIds([]);
167
+ }
168
+ }, [isAllIndefinitelyNeedToBeClosed]);
169
+ return (_jsxs(_Fragment, { children: [renderToastContainer({
170
+ containerId: AUTO_HIDDEN_CONTAINER_ID,
171
+ distanceFromBottom: getDistanceFromBottom() + indefinitelyIds.length * NOTIFICATION_HEIGHT,
172
+ }), renderToastContainer({
173
+ containerId: INDEFINITELY_CONTAINER_ID,
174
+ distanceFromBottom: getDistanceFromBottom(),
175
+ })] }));
176
+ };
177
+ export default Notification;
178
+ //# 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,aAAa,EA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AC7B,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAA;IAER,SAAS,CAAC;QACR,IAAI,+BAA+B,EAAE;YACnC,eAAe,CAAC,OAAO,CAAC,UAAC,cAAc,IAAK,OAAA,KAAK,CAAC,OAAO,CAAC,cAAc,CAAC,EAA7B,CAA6B,CAAC,CAAA;SAC3E;IACH,CAAC,EAAE,CAAC,eAAe,EAAE,+BAA+B,CAAC,CAAC,CAAA;IAEtD,SAAS,CAAC;QACR,IAAI,+BAA+B,EAAE;YACnC,kBAAkB,CAAC,EAAE,CAAC,CAAA;SACvB;IACH,CAAC,EAAE,CAAC,+BAA+B,CAAC,CAAC,CAAA;IAErC,OAAO,CACL,8BACG,oBAAoB,CAAC;gBACpB,WAAW,EAAE,wBAAwB;gBACrC,kBAAkB,EAAE,qBAAqB,EAAE,GAAG,eAAe,CAAC,MAAM,GAAG,mBAAmB;aAC3F,CAAC,EACD,oBAAoB,CAAC;gBACpB,WAAW,EAAE,yBAAyB;gBACtC,kBAAkB,EAAE,qBAAqB,EAAE;aAC5C,CAAC,IACD,CACJ,CAAA;AACH,CAAC,CAAA;AAED,eAAe,YAAY,CAAA"}
@@ -0,0 +1 @@
1
+ export { default } from './Notification';
@@ -0,0 +1,2 @@
1
+ export { default } from './Notification';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/Notification/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA"}
@@ -0,0 +1,39 @@
1
+ import React from 'react';
2
+ import { ICommonProps, ILayoutTypeProps } from '../../constants';
3
+ export type THandleActionClick = {
4
+ notificationId: string;
5
+ action?: () => void;
6
+ };
7
+ export type THandleClickMailCloseIcon = {
8
+ event: React.MouseEvent;
9
+ notificationId: string;
10
+ };
11
+ export type TRenderToastContainer = {
12
+ containerId: string;
13
+ distanceFromBottom: number;
14
+ };
15
+ export type TNotificationAction = {
16
+ isLocatedAtBottom?: boolean;
17
+ text?: string;
18
+ color?: string;
19
+ onClick: () => void;
20
+ };
21
+ export interface INotificationProps extends ICommonProps, ILayoutTypeProps {
22
+ id: string;
23
+ type?: 'success' | 'info' | 'warning' | 'error' | 'failure' | 'mail';
24
+ isAutoHidden?: boolean;
25
+ isAllIndefinitelyNeedToBeClosed?: boolean;
26
+ indefinitelyFullScreenPosition?: 'right' | 'left';
27
+ hideDuration?: number;
28
+ distanceFromBottom?: number;
29
+ title?: string;
30
+ avatar?: {
31
+ src?: string;
32
+ username: string;
33
+ };
34
+ text: string;
35
+ subText?: string;
36
+ iconColor?: string;
37
+ action?: TNotificationAction;
38
+ onClose?: (id?: string) => void;
39
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/Notification/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { IProfileProps } from './types';
2
+ import '../../styles/styles.scss';
3
+ declare const Profile: ({ username, email, isShowProfile, onChange, onClickLogout, isMultipleProfile, onClickAddProfile, width, logoutColor, addProfileColor, addProfileBackgroundColor, }: IProfileProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default Profile;
@@ -0,0 +1,42 @@
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 { getColor } 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: getColor(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: getColor(addProfileColor, COLORS.blue),
38
+ color: getColor(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
@@ -0,0 +1 @@
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,QAAQ,EAAE,MAAM,eAAe,CAAA;AACxC,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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AA0B,gBAC/E,QAAQ,IACL,EACL,aAAa,IAAI,CAChB,wBAAK,KAAK,EAAE,EAAE,KAAK,EAAE,UAAG,KAAK,MAAG,EAAE,EAAE,SAAS,EAAC,kBAAkB,iBAC9D,wBAAK,SAAS,EAAC,mCAAmC,iBAChD,wBAAK,SAAS,EAAC,yCAAyC,iBACtD,uBAAK,SAAS,EAAC,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,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE,GAAI,IAChE,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,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC,IAAI,CAAC;wCAC9C,KAAK,EAAE,QAAQ,CAAC,yBAAyB,EAAE,MAAM,CAAC,WAAW,CAAC;qCAC/D,GACD,IACE,EACN,qBAAG,SAAS,EAAC,sCAAsC,iHAAqB,KACpE,CACP,KACG,CACP,KACG,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,OAAO,CAAA"}
@@ -0,0 +1 @@
1
+ export { default } from './Profile';
@@ -0,0 +1,2 @@
1
+ export { default } from './Profile';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/Profile/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA"}
@@ -0,0 +1,14 @@
1
+ import { IntRange } from '../types';
2
+ export interface IProfileProps {
3
+ username: string;
4
+ email?: string;
5
+ isShowProfile: boolean;
6
+ onChange: (isShowProfile: boolean) => void;
7
+ onClickLogout?: () => void;
8
+ isMultipleProfile?: boolean;
9
+ onClickAddProfile?: () => void;
10
+ width?: IntRange<1, 101>;
11
+ logoutColor?: string;
12
+ addProfileColor?: string;
13
+ addProfileBackgroundColor?: string;
14
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/Profile/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { IProgressBarProps } from './types';
2
+ import '../../styles/styles.scss';
3
+ declare const ProgressBar: ({ title, isShowDotsInTitle }: IProgressBarProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default ProgressBar;
@@ -0,0 +1,66 @@
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, useState } from 'react';
14
+ import classNames from 'classnames';
15
+ import { v4 as uuidv4 } from 'uuid';
16
+ import '../../styles/styles.scss';
17
+ var PROGRESS_LOOP_INTERVAL = 10;
18
+ var DOTS_BLINKING_ANIMATION_INTERVAL = 200;
19
+ var DOTS_ANIMATION_INTERVAL = 450;
20
+ var PROGRESS_LOOP_ITERATION_PAUSE = 1000;
21
+ var PROGRESS_LOOP_MIN_VALUE = -100;
22
+ var PROGRESS_LOOP_MAX_VALUE = 100;
23
+ var TITLE_DOTS_LOOP_MIN_VALUE = 0;
24
+ var TITLE_DOTS_LOOP_MAX_VALUE = 3;
25
+ var ProgressBar = function (_a) {
26
+ var _b = _a.title, title = _b === void 0 ? '' : _b, _c = _a.isShowDotsInTitle, isShowDotsInTitle = _c === void 0 ? true : _c;
27
+ var _d = useState(false), isPaused = _d[0], setIsPaused = _d[1];
28
+ var _e = useState(true), isTitleDotsBlink = _e[0], setIsTitleDotsBlink = _e[1];
29
+ var _f = useState(0), loadedPartPosition = _f[0], setLoadedPartPosition = _f[1];
30
+ var _g = useState(TITLE_DOTS_LOOP_MIN_VALUE), titleDotsAnimationState = _g[0], setTitleDotsAnimationState = _g[1];
31
+ useEffect(function () {
32
+ var interval = setInterval(function () {
33
+ if (!isPaused) {
34
+ setLoadedPartPosition(function (prev) {
35
+ if (prev >= PROGRESS_LOOP_MAX_VALUE) {
36
+ setIsPaused(true);
37
+ setTimeout(function () { return setIsPaused(false); }, PROGRESS_LOOP_ITERATION_PAUSE);
38
+ return PROGRESS_LOOP_MIN_VALUE;
39
+ }
40
+ return prev + 1;
41
+ });
42
+ }
43
+ }, PROGRESS_LOOP_INTERVAL);
44
+ return function () { return clearInterval(interval); };
45
+ }, [isPaused]);
46
+ useEffect(function () {
47
+ if (isShowDotsInTitle) {
48
+ var interval_1 = setInterval(function () { return setTitleDotsAnimationState(function (prev) { return (prev === TITLE_DOTS_LOOP_MAX_VALUE ? TITLE_DOTS_LOOP_MIN_VALUE : prev + 1); }); }, DOTS_ANIMATION_INTERVAL);
49
+ return function () { return clearInterval(interval_1); };
50
+ }
51
+ }, [isShowDotsInTitle]);
52
+ useEffect(function () {
53
+ if (isShowDotsInTitle) {
54
+ var blinkingInterval_1 = setInterval(function () { return setIsTitleDotsBlink(!isTitleDotsBlink); }, DOTS_BLINKING_ANIMATION_INTERVAL);
55
+ return function () { return clearInterval(blinkingInterval_1); };
56
+ }
57
+ }, [isShowDotsInTitle, isTitleDotsBlink]);
58
+ var generateStylesForProgressBar = function () { return ({ left: "".concat(loadedPartPosition, "%") }); };
59
+ var renderTitleDotsAnimation = function () { return Array.from({ length: titleDotsAnimationState }).map(function () { return _jsx("span", { children: "." }, uuidv4()); }); };
60
+ return (_jsxs("div", __assign({ className: "smartapp-progress-bar" }, { children: [title && (_jsxs("div", __assign({ className: "smartapp-progress-bar__title" }, { children: [_jsx("span", { children: title }), isShowDotsInTitle && (_jsx("div", __assign({ className: classNames('smartapp-progress-bar__title--dots-container', {
61
+ 'smartapp-progress-bar__title--dots-container__light': !isTitleDotsBlink,
62
+ 'smartapp-progress-bar__title--dots-container__hidden': titleDotsAnimationState === TITLE_DOTS_LOOP_MAX_VALUE,
63
+ }) }, { children: renderTitleDotsAnimation() })))] }))), _jsx("div", __assign({ className: "smartapp-progress-bar__background" }, { children: _jsx("div", { className: "smartapp-progress-bar__background--loaded", style: generateStylesForProgressBar() }) }))] })));
64
+ };
65
+ export default ProgressBar;
66
+ //# sourceMappingURL=ProgressBar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProgressBar.js","sourceRoot":"","sources":["../../../../src/сomponents/ProgressBar/ProgressBar.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAClD,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,MAAM,CAAA;AAEnC,OAAO,0BAA0B,CAAA;AAEjC,IAAM,sBAAsB,GAAG,EAAE,CAAA;AACjC,IAAM,gCAAgC,GAAG,GAAG,CAAA;AAC5C,IAAM,uBAAuB,GAAG,GAAG,CAAA;AACnC,IAAM,6BAA6B,GAAG,IAAI,CAAA;AAC1C,IAAM,uBAAuB,GAAG,CAAC,GAAG,CAAA;AACpC,IAAM,uBAAuB,GAAG,GAAG,CAAA;AACnC,IAAM,yBAAyB,GAAG,CAAC,CAAA;AACnC,IAAM,yBAAyB,G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S,EAAC,mCAAmC,gBAChD,cAAK,SAAS,EAAC,2CAA2C,EAAC,KAAK,EAAE,4BAA4B,EAAE,GAAI,IAChG,KACF,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,WAAW,CAAA"}
@@ -0,0 +1 @@
1
+ export { default } from './ProgressBar';
@@ -0,0 +1,2 @@
1
+ export { default } from './ProgressBar';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/ProgressBar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA"}
@@ -0,0 +1,4 @@
1
+ export interface IProgressBarProps {
2
+ title?: string;
3
+ isShowDotsInTitle?: boolean;
4
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/ProgressBar/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { IRadioButtonProps } from './types';
2
+ import '../../styles/styles.scss';
3
+ declare const RadioButton: ({ id, isDisabled, isChecked, checkedColor, checkedHoverColor, checkedPressedColor, onChange, }: IRadioButtonProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default RadioButton;
@@ -0,0 +1,36 @@
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 } from "react/jsx-runtime";
13
+ import { useEffect, useRef } from 'react';
14
+ import { COLORS } from '../../constants';
15
+ import { getColor } from '../../helpers';
16
+ import '../../styles/styles.scss';
17
+ var RadioButton = function (_a) {
18
+ var id = _a.id, _b = _a.isDisabled, isDisabled = _b === void 0 ? false : _b, _c = _a.isChecked, isChecked = _c === void 0 ? false : _c, checkedColor = _a.checkedColor, checkedHoverColor = _a.checkedHoverColor, checkedPressedColor = _a.checkedPressedColor, onChange = _a.onChange;
19
+ var radioButtonRef = useRef(null);
20
+ useEffect(function () {
21
+ document.documentElement.style.setProperty('--radio-button-color', getColor(checkedColor, COLORS.blue));
22
+ document.documentElement.style.setProperty('--radio-button-hover-color', getColor(checkedHoverColor, COLORS.darkBlue));
23
+ document.documentElement.style.setProperty('--radio-button-pressed-color', getColor(checkedPressedColor, COLORS.darkerBlue));
24
+ }, [checkedColor, checkedHoverColor, checkedPressedColor]);
25
+ useEffect(function () {
26
+ window.addEventListener('mouseup', handleMouseUp);
27
+ return function () {
28
+ window.removeEventListener('mouseup', handleMouseUp);
29
+ };
30
+ }, []);
31
+ var handleMouseDown = function () { var _a; return (_a = radioButtonRef.current) === null || _a === void 0 ? void 0 : _a.classList.add('smartapp-radio-button__pressed'); };
32
+ var handleMouseUp = function () { var _a; return (_a = radioButtonRef.current) === null || _a === void 0 ? void 0 : _a.classList.remove('smartapp-radio-button__pressed'); };
33
+ return (_jsx("div", __assign({ ref: radioButtonRef, className: "smartapp-radio-button" }, { children: _jsx("label", __assign({ htmlFor: "smartapp-radio-button-".concat(id), onClick: onChange, onMouseDown: handleMouseDown }, { children: _jsx("input", { type: "radio", id: "smartapp-radio-button-".concat(id), checked: isChecked, disabled: isDisabled }) })) })));
34
+ };
35
+ export default RadioButton;
36
+ //# sourceMappingURL=RadioButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RadioButton.js","sourceRoot":"","sources":["../../../../src/сomponents/RadioButton/RadioButton.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AACxC,OAAO,EAAE,QAAQ,EAAE,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,CAAC,MAAM,CAAC,gCAAgC,CAAC,CAAA,EAAA,CAAA;IAEtG,OAAO,CACL,uBAAK,GAAG,EAAE,cAAc,EAAE,SAAS,EAAC,uBAAuB,gBACzD,yBAAO,OAAO,EAAE,gCAAyB,EAAE,CAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,eAAe,gBAC5F,gBAAO,IAAI,EAAC,OAAO,EAAC,EAAE,EAAE,gCAAyB,EAAE,CAAE,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,GAAI,IAC7F,IACJ,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,WAAW,CAAA"}
@@ -0,0 +1 @@
1
+ export { default } from './RadioButton';
@@ -0,0 +1,2 @@
1
+ export { default } from './RadioButton';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/RadioButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA"}
@@ -0,0 +1,9 @@
1
+ export interface IRadioButtonProps {
2
+ id: string;
3
+ isDisabled?: boolean;
4
+ isChecked?: boolean;
5
+ checkedColor?: string;
6
+ checkedHoverColor?: string;
7
+ checkedPressedColor?: string;
8
+ onChange: () => void;
9
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/RadioButton/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { IScrollBarProps } from './types';
2
+ import '../../styles/styles.scss';
3
+ declare const ScrollBar: ({ content, handleScroll, width, hideDuration, containerHeight, }: IScrollBarProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default ScrollBar;
@@ -0,0 +1,50 @@
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 } from "react/jsx-runtime";
13
+ import { useCallback, useEffect, useLayoutEffect, useState } from 'react';
14
+ import classNames from 'classnames';
15
+ import Scrollbar from 'react-scrollbars-custom';
16
+ import { v4 as uuidv4 } from 'uuid';
17
+ import { DEFAULT_SCROLL_BAR_HIDE_DURATION, DEFAULT_SCROLL_BAR_WIDTH } from '../../constants';
18
+ import '../../styles/styles.scss';
19
+ var DEFAULT_SCROLL_BAR_HEIGHT = '100%';
20
+ var HIDE_THUMB_CLASSNAME = 'smartapp-scroll__thumb';
21
+ var SHOW_THUMB_CLASSNAME = "".concat(HIDE_THUMB_CLASSNAME, "--show ").concat(HIDE_THUMB_CLASSNAME);
22
+ var ScrollBar = function (_a) {
23
+ var content = _a.content, handleScroll = _a.handleScroll, _b = _a.width, width = _b === void 0 ? DEFAULT_SCROLL_BAR_WIDTH : _b, _c = _a.hideDuration, hideDuration = _c === void 0 ? DEFAULT_SCROLL_BAR_HIDE_DURATION : _c, _d = _a.containerHeight, containerHeight = _d === void 0 ? DEFAULT_SCROLL_BAR_HEIGHT : _d;
24
+ var _e = useState(uuidv4()), contentKey = _e[0], setContentKey = _e[1];
25
+ var _f = useState(false), scrolling = _f[0], setScrolling = _f[1];
26
+ var generateThumbClassName = useCallback(function () { return (scrolling ? SHOW_THUMB_CLASSNAME : HIDE_THUMB_CLASSNAME); }, [scrolling]);
27
+ var generateScrollerClassNames = function () { return ({
28
+ 'smartapp-scroll__scroller--width-6': width === 6,
29
+ 'smartapp-scroll__scroller--width-5': width === 5,
30
+ 'smartapp-scroll__scroller--width-4': width === 4,
31
+ }); };
32
+ useEffect(function () {
33
+ var debounceTimeout = setTimeout(function () { return setScrolling(false); }, hideDuration);
34
+ return function () { return clearTimeout(debounceTimeout); };
35
+ /* eslint-disable-next-line */
36
+ }, [scrolling]);
37
+ useLayoutEffect(function () {
38
+ return function () {
39
+ setScrolling(false);
40
+ setContentKey(uuidv4());
41
+ };
42
+ }, [content]);
43
+ var onScroll = function () {
44
+ handleScroll === null || handleScroll === void 0 ? void 0 : handleScroll();
45
+ setScrolling(true);
46
+ };
47
+ return (_jsx("div", __assign({ style: { height: containerHeight }, className: "smartapp-scroll" }, { children: _jsx(Scrollbar, __assign({ native: false, mobileNative: false, removeTracksWhenNotUsed: true, onScroll: onScroll, wrapperProps: { className: 'smartapp-scroll__wrapper' }, thumbYProps: { className: generateThumbClassName() }, trackYProps: { className: classNames('smartapp-scroll__scroller', generateScrollerClassNames()) } }, { children: content }), contentKey) })));
48
+ };
49
+ export default ScrollBar;
50
+ //# sourceMappingURL=ScrollBar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScrollBar.js","sourceRoot":"","sources":["../../../../src/сomponents/ScrollBar/ScrollBar.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAE,WAAW,EAAE,SAAS,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChF,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,SAAS,MAAM,yBAAyB,CAAA;AAC/C,OAAO,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,MAAM,CAAA;AAEnC,OAAO,EAAE,gCAAgC,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAA;AAC5F,OAAO,0BAA0B,CAAA;AAEjC,IAAM,yBAAyB,GAAG,MAAM,CAAA;AACxC,IAAM,oBAAoB,GAAG,wBAAwB,CAAA;AACrD,IAAM,oBAAoB,GAAG,UAAG,oBAAoB,oBAAU,oBAAoB,CAAE,CAAA;AAEpF,IAAM,SAAS,GAAG,UAAC,EAMD;QALhB,OAAO,aAAA,EACP,YAAY,kBAAA,EACZ,aAAgC,EAAhC,KAAK,mBAAG,wBAAwB,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,uBAAK,KAAK,EAAE,EAAE,MAAM,EAAE,eAAe,EAAE,EAAE,SAAS,EAAC,iBAAiB,gBAClE,KAAC,SAAS,aAER,MAAM,EAAE,KAAK,EACb,YAAY,EAAE,KAAK,EACnB,uBAAuB,QACvB,QAAQ,EAAE,QAAQ,EAClB,YAAY,EAAE,EAAE,SAAS,EAAE,0BAA0B,EAAE,EACvD,WAAW,EAAE,EAAE,SAAS,EAAE,sBAAsB,EAAE,EAAE,EACpD,WAAW,EAAE,EAAE,SAAS,EAAE,UAAU,CAAC,2BAA2B,EAAE,0BAA0B,EAAE,CAAC,EAAE,gBAEhG,OAAO,KATH,UAAU,CAUL,IACR,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,SAAS,CAAA"}
@@ -0,0 +1 @@
1
+ export { default } from './ScrollBar';
@@ -0,0 +1,2 @@
1
+ export { default } from './ScrollBar';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/ScrollBar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA"}