@expressms/smartapp-ui 2.8.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 (443) hide show
  1. package/build/main/assets/storybook/index.d.ts +2 -0
  2. package/build/main/components/Charts/ChartBar/ChartBar.d.ts +4 -0
  3. package/build/main/components/Charts/ChartLine/ChartLine.d.ts +4 -0
  4. package/build/main/components/Charts/ChartPie/ChartPie.d.ts +4 -0
  5. package/build/main/components/Charts/index.d.ts +3 -0
  6. package/build/main/components/CustomSelect/CustomSelect.d.ts +12 -0
  7. package/build/main/{/321/201omponents → components}/CustomSelect/types.d.ts +1 -0
  8. package/build/main/components/DraggablePopup/DraggablePopup.d.ts +4 -0
  9. package/build/main/components/DraggablePopup/index.d.ts +1 -0
  10. package/build/main/components/DraggablePopup/types.d.ts +60 -0
  11. package/build/main/{/321/201omponents → components}/ListItem/types.d.ts +2 -1
  12. package/build/main/{/321/201omponents → components}/Loader/Loader.d.ts +1 -1
  13. package/build/main/{/321/201omponents → components}/Loader/types.d.ts +2 -0
  14. package/build/main/components/Modal/Modal.d.ts +4 -0
  15. package/build/main/{/321/201omponents → components}/Modal/types.d.ts +11 -5
  16. package/build/main/{/321/201omponents → components}/ScrollBar/ScrollBar.d.ts +1 -1
  17. package/build/main/{/321/201omponents → components}/ScrollBar/types.d.ts +1 -0
  18. package/build/main/components/Skeleton/Skeleton.d.ts +4 -0
  19. package/build/main/components/Skeleton/index.d.ts +1 -0
  20. package/build/main/{/321/201omponents → components}/UserDropdown/helpers.d.ts +0 -1
  21. package/build/main/constants/constants.d.ts +6 -1
  22. package/build/main/hooks/useModal.d.ts +0 -1
  23. package/build/main/index.d.ts +34 -3
  24. package/package.json +66 -58
  25. package/build/main/assets/icons/arrow-back.svg +0 -3
  26. package/build/main/assets/icons/arrow-down.svg +0 -3
  27. package/build/main/assets/icons/arrow-up.svg +0 -3
  28. package/build/main/assets/icons/attachment-loader.svg +0 -3
  29. package/build/main/assets/icons/button-loader.svg +0 -3
  30. package/build/main/assets/icons/cancel-cross.svg +0 -3
  31. package/build/main/assets/icons/check-mark.svg +0 -4
  32. package/build/main/assets/icons/clear.svg +0 -3
  33. package/build/main/assets/icons/close-stories.svg +0 -4
  34. package/build/main/assets/icons/close.svg +0 -10
  35. package/build/main/assets/icons/contact-info.svg +0 -12
  36. package/build/main/assets/icons/corporate-user.svg +0 -10
  37. package/build/main/assets/icons/crown.svg +0 -5
  38. package/build/main/assets/icons/delete-chip.svg +0 -3
  39. package/build/main/assets/icons/download.svg +0 -4
  40. package/build/main/assets/icons/error.svg +0 -5
  41. package/build/main/assets/icons/external-link.svg +0 -3
  42. package/build/main/assets/icons/eye-off.svg +0 -10
  43. package/build/main/assets/icons/eye.svg +0 -10
  44. package/build/main/assets/icons/file.svg +0 -3
  45. package/build/main/assets/icons/info.svg +0 -5
  46. package/build/main/assets/icons/loader.svg +0 -3
  47. package/build/main/assets/icons/logout.svg +0 -4
  48. package/build/main/assets/icons/magnifying-glass.svg +0 -3
  49. package/build/main/assets/icons/mail.svg +0 -3
  50. package/build/main/assets/icons/my-contact-user.svg +0 -10
  51. package/build/main/assets/icons/notification-close.svg +0 -3
  52. package/build/main/assets/icons/notification-error.svg +0 -3
  53. package/build/main/assets/icons/notification-failure.svg +0 -3
  54. package/build/main/assets/icons/notification-info.svg +0 -5
  55. package/build/main/assets/icons/notification-success.svg +0 -4
  56. package/build/main/assets/icons/notification-warning.svg +0 -5
  57. package/build/main/assets/icons/order.svg +0 -6
  58. package/build/main/assets/icons/plus.svg +0 -4
  59. package/build/main/assets/icons/private.svg +0 -12
  60. package/build/main/assets/icons/refresh.svg +0 -3
  61. package/build/main/assets/icons/story-loader.svg +0 -3
  62. package/build/main/assets/icons/tick.svg +0 -10
  63. package/build/main/assets/icons/trash.svg +0 -3
  64. package/build/main/assets/icons/unread-mails.svg +0 -4
  65. package/build/main/assets/storybook/index.js +0 -19
  66. package/build/main/assets/storybook/index.js.map +0 -1
  67. package/build/main/constants/constants.js +0 -154
  68. package/build/main/constants/constants.js.map +0 -1
  69. package/build/main/constants/index.js +0 -3
  70. package/build/main/constants/index.js.map +0 -1
  71. package/build/main/constants/types.js +0 -2
  72. package/build/main/constants/types.js.map +0 -1
  73. package/build/main/helpers/index.js +0 -89
  74. package/build/main/helpers/index.js.map +0 -1
  75. package/build/main/hooks/useModal.js +0 -60
  76. package/build/main/hooks/useModal.js.map +0 -1
  77. package/build/main/index.js +0 -4
  78. package/build/main/index.js.map +0 -1
  79. package/build/main/styles/index.js +0 -2
  80. package/build/main/styles/index.js.map +0 -1
  81. package/build/main/styles/main.js +0 -0
  82. package/build/main/styles/styles.scss +0 -14
  83. package/build/main//321/201omponents/ActionModal/ActionModal.js +0 -55
  84. package/build/main//321/201omponents/ActionModal/ActionModal.js.map +0 -1
  85. package/build/main//321/201omponents/ActionModal/index.js +0 -2
  86. package/build/main//321/201omponents/ActionModal/index.js.map +0 -1
  87. package/build/main//321/201omponents/ActionModal/types.js +0 -2
  88. package/build/main//321/201omponents/ActionModal/types.js.map +0 -1
  89. package/build/main//321/201omponents/AttachedFile/AttachedFile.js +0 -60
  90. package/build/main//321/201omponents/AttachedFile/AttachedFile.js.map +0 -1
  91. package/build/main//321/201omponents/AttachedFile/index.js +0 -2
  92. package/build/main//321/201omponents/AttachedFile/index.js.map +0 -1
  93. package/build/main//321/201omponents/AttachedFile/types.js +0 -2
  94. package/build/main//321/201omponents/AttachedFile/types.js.map +0 -1
  95. package/build/main//321/201omponents/Avatar/Avatar.js +0 -131
  96. package/build/main//321/201omponents/Avatar/Avatar.js.map +0 -1
  97. package/build/main//321/201omponents/Avatar/index.js +0 -2
  98. package/build/main//321/201omponents/Avatar/index.js.map +0 -1
  99. package/build/main//321/201omponents/Avatar/types.js +0 -9
  100. package/build/main//321/201omponents/Avatar/types.js.map +0 -1
  101. package/build/main//321/201omponents/Button/Button.js +0 -57
  102. package/build/main//321/201omponents/Button/Button.js.map +0 -1
  103. package/build/main//321/201omponents/Button/index.js +0 -2
  104. package/build/main//321/201omponents/Button/index.js.map +0 -1
  105. package/build/main//321/201omponents/Button/types.js +0 -11
  106. package/build/main//321/201omponents/Button/types.js.map +0 -1
  107. package/build/main//321/201omponents/CachedImage/CachedImage.js +0 -59
  108. package/build/main//321/201omponents/CachedImage/CachedImage.js.map +0 -1
  109. package/build/main//321/201omponents/CachedImage/helpers.js +0 -40
  110. package/build/main//321/201omponents/CachedImage/helpers.js.map +0 -1
  111. package/build/main//321/201omponents/CachedImage/index.js +0 -2
  112. package/build/main//321/201omponents/CachedImage/index.js.map +0 -1
  113. package/build/main//321/201omponents/CachedImage/types.js +0 -2
  114. package/build/main//321/201omponents/CachedImage/types.js.map +0 -1
  115. package/build/main//321/201omponents/Calendar/Calendar.js +0 -48
  116. package/build/main//321/201omponents/Calendar/Calendar.js.map +0 -1
  117. package/build/main//321/201omponents/Calendar/index.js +0 -2
  118. package/build/main//321/201omponents/Calendar/index.js.map +0 -1
  119. package/build/main//321/201omponents/Calendar/types.js +0 -2
  120. package/build/main//321/201omponents/Calendar/types.js.map +0 -1
  121. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.d.ts +0 -3
  122. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js +0 -45
  123. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js.map +0 -1
  124. package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.js +0 -71
  125. package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.js.map +0 -1
  126. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.d.ts +0 -3
  127. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js +0 -40
  128. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js.map +0 -1
  129. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.d.ts +0 -3
  130. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js +0 -62
  131. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js.map +0 -1
  132. package/build/main//321/201omponents/Charts/colors.js +0 -4
  133. package/build/main//321/201omponents/Charts/colors.js.map +0 -1
  134. package/build/main//321/201omponents/Charts/constants.js +0 -43
  135. package/build/main//321/201omponents/Charts/constants.js.map +0 -1
  136. package/build/main//321/201omponents/Charts/helpers.js +0 -73
  137. package/build/main//321/201omponents/Charts/helpers.js.map +0 -1
  138. package/build/main//321/201omponents/Charts/index.d.ts +0 -3
  139. package/build/main//321/201omponents/Charts/index.js +0 -4
  140. package/build/main//321/201omponents/Charts/index.js.map +0 -1
  141. package/build/main//321/201omponents/Charts/types.js +0 -2
  142. package/build/main//321/201omponents/Charts/types.js.map +0 -1
  143. package/build/main//321/201omponents/Charts/useEvents.js +0 -45
  144. package/build/main//321/201omponents/Charts/useEvents.js.map +0 -1
  145. package/build/main//321/201omponents/Charts/usePieEvents.js +0 -57
  146. package/build/main//321/201omponents/Charts/usePieEvents.js.map +0 -1
  147. package/build/main//321/201omponents/Checkbox/Checkbox.js +0 -38
  148. package/build/main//321/201omponents/Checkbox/Checkbox.js.map +0 -1
  149. package/build/main//321/201omponents/Checkbox/index.js +0 -2
  150. package/build/main//321/201omponents/Checkbox/index.js.map +0 -1
  151. package/build/main//321/201omponents/Checkbox/types.js +0 -2
  152. package/build/main//321/201omponents/Checkbox/types.js.map +0 -1
  153. package/build/main//321/201omponents/Chip/Chip.js +0 -35
  154. package/build/main//321/201omponents/Chip/Chip.js.map +0 -1
  155. package/build/main//321/201omponents/Chip/index.js +0 -2
  156. package/build/main//321/201omponents/Chip/index.js.map +0 -1
  157. package/build/main//321/201omponents/Chip/types.js +0 -2
  158. package/build/main//321/201omponents/Chip/types.js.map +0 -1
  159. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js +0 -70
  160. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js.map +0 -1
  161. package/build/main//321/201omponents/ConfirmationModal/index.js +0 -2
  162. package/build/main//321/201omponents/ConfirmationModal/index.js.map +0 -1
  163. package/build/main//321/201omponents/ConfirmationModal/types.js +0 -2
  164. package/build/main//321/201omponents/ConfirmationModal/types.js.map +0 -1
  165. package/build/main//321/201omponents/ContextMenu/ContextMenu.js +0 -75
  166. package/build/main//321/201omponents/ContextMenu/ContextMenu.js.map +0 -1
  167. package/build/main//321/201omponents/ContextMenu/index.js +0 -2
  168. package/build/main//321/201omponents/ContextMenu/index.js.map +0 -1
  169. package/build/main//321/201omponents/ContextMenu/types.js +0 -2
  170. package/build/main//321/201omponents/ContextMenu/types.js.map +0 -1
  171. package/build/main//321/201omponents/CustomSelect/CustomSelect.d.ts +0 -4
  172. package/build/main//321/201omponents/CustomSelect/CustomSelect.js +0 -173
  173. package/build/main//321/201omponents/CustomSelect/CustomSelect.js.map +0 -1
  174. package/build/main//321/201omponents/CustomSelect/index.js +0 -2
  175. package/build/main//321/201omponents/CustomSelect/index.js.map +0 -1
  176. package/build/main//321/201omponents/CustomSelect/selectStyles.js +0 -61
  177. package/build/main//321/201omponents/CustomSelect/selectStyles.js.map +0 -1
  178. package/build/main//321/201omponents/CustomSelect/types.js +0 -2
  179. package/build/main//321/201omponents/CustomSelect/types.js.map +0 -1
  180. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js +0 -57
  181. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js.map +0 -1
  182. package/build/main//321/201omponents/CustomSelectProfiles/index.js +0 -2
  183. package/build/main//321/201omponents/CustomSelectProfiles/index.js.map +0 -1
  184. package/build/main//321/201omponents/CustomSelectProfiles/types.js +0 -2
  185. package/build/main//321/201omponents/CustomSelectProfiles/types.js.map +0 -1
  186. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js +0 -57
  187. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js.map +0 -1
  188. package/build/main//321/201omponents/DragAndDrop/index.js +0 -2
  189. package/build/main//321/201omponents/DragAndDrop/index.js.map +0 -1
  190. package/build/main//321/201omponents/DragAndDrop/types.js +0 -2
  191. package/build/main//321/201omponents/DragAndDrop/types.js.map +0 -1
  192. package/build/main//321/201omponents/Error/Error.js +0 -23
  193. package/build/main//321/201omponents/Error/Error.js.map +0 -1
  194. package/build/main//321/201omponents/Error/index.js +0 -2
  195. package/build/main//321/201omponents/Error/index.js.map +0 -1
  196. package/build/main//321/201omponents/Error/types.js +0 -2
  197. package/build/main//321/201omponents/Error/types.js.map +0 -1
  198. package/build/main//321/201omponents/Flex/Flex.js +0 -49
  199. package/build/main//321/201omponents/Flex/Flex.js.map +0 -1
  200. package/build/main//321/201omponents/Flex/HFlex/HFlex.js +0 -16
  201. package/build/main//321/201omponents/Flex/HFlex/HFlex.js.map +0 -1
  202. package/build/main//321/201omponents/Flex/HFlex/index.js +0 -2
  203. package/build/main//321/201omponents/Flex/HFlex/index.js.map +0 -1
  204. package/build/main//321/201omponents/Flex/VFlex/VFlex.js +0 -16
  205. package/build/main//321/201omponents/Flex/VFlex/VFlex.js.map +0 -1
  206. package/build/main//321/201omponents/Flex/VFlex/index.js +0 -2
  207. package/build/main//321/201omponents/Flex/VFlex/index.js.map +0 -1
  208. package/build/main//321/201omponents/Flex/index.js +0 -4
  209. package/build/main//321/201omponents/Flex/index.js.map +0 -1
  210. package/build/main//321/201omponents/Flex/types.js +0 -2
  211. package/build/main//321/201omponents/Flex/types.js.map +0 -1
  212. package/build/main//321/201omponents/Header/Header.js +0 -124
  213. package/build/main//321/201omponents/Header/Header.js.map +0 -1
  214. package/build/main//321/201omponents/Header/index.js +0 -2
  215. package/build/main//321/201omponents/Header/index.js.map +0 -1
  216. package/build/main//321/201omponents/Header/types.js +0 -2
  217. package/build/main//321/201omponents/Header/types.js.map +0 -1
  218. package/build/main//321/201omponents/Input/Input.js +0 -207
  219. package/build/main//321/201omponents/Input/Input.js.map +0 -1
  220. package/build/main//321/201omponents/Input/index.js +0 -2
  221. package/build/main//321/201omponents/Input/index.js.map +0 -1
  222. package/build/main//321/201omponents/Input/types.js +0 -2
  223. package/build/main//321/201omponents/Input/types.js.map +0 -1
  224. package/build/main//321/201omponents/ListItem/ListItem.js +0 -208
  225. package/build/main//321/201omponents/ListItem/ListItem.js.map +0 -1
  226. package/build/main//321/201omponents/ListItem/index.js +0 -2
  227. package/build/main//321/201omponents/ListItem/index.js.map +0 -1
  228. package/build/main//321/201omponents/ListItem/types.js +0 -2
  229. package/build/main//321/201omponents/ListItem/types.js.map +0 -1
  230. package/build/main//321/201omponents/Loader/Loader.js +0 -37
  231. package/build/main//321/201omponents/Loader/Loader.js.map +0 -1
  232. package/build/main//321/201omponents/Loader/index.js +0 -2
  233. package/build/main//321/201omponents/Loader/index.js.map +0 -1
  234. package/build/main//321/201omponents/Loader/types.js +0 -2
  235. package/build/main//321/201omponents/Loader/types.js.map +0 -1
  236. package/build/main//321/201omponents/Modal/Modal.d.ts +0 -4
  237. package/build/main//321/201omponents/Modal/Modal.js +0 -92
  238. package/build/main//321/201omponents/Modal/Modal.js.map +0 -1
  239. package/build/main//321/201omponents/Modal/index.js +0 -2
  240. package/build/main//321/201omponents/Modal/index.js.map +0 -1
  241. package/build/main//321/201omponents/Modal/types.js +0 -2
  242. package/build/main//321/201omponents/Modal/types.js.map +0 -1
  243. package/build/main//321/201omponents/Notification/Notification.js +0 -197
  244. package/build/main//321/201omponents/Notification/Notification.js.map +0 -1
  245. package/build/main//321/201omponents/Notification/index.js +0 -2
  246. package/build/main//321/201omponents/Notification/index.js.map +0 -1
  247. package/build/main//321/201omponents/Notification/types.js +0 -2
  248. package/build/main//321/201omponents/Notification/types.js.map +0 -1
  249. package/build/main//321/201omponents/Profile/Profile.js +0 -42
  250. package/build/main//321/201omponents/Profile/Profile.js.map +0 -1
  251. package/build/main//321/201omponents/Profile/index.js +0 -2
  252. package/build/main//321/201omponents/Profile/index.js.map +0 -1
  253. package/build/main//321/201omponents/Profile/types.js +0 -2
  254. package/build/main//321/201omponents/Profile/types.js.map +0 -1
  255. package/build/main//321/201omponents/ProgressBar/ProgressBar.js +0 -66
  256. package/build/main//321/201omponents/ProgressBar/ProgressBar.js.map +0 -1
  257. package/build/main//321/201omponents/ProgressBar/index.js +0 -2
  258. package/build/main//321/201omponents/ProgressBar/index.js.map +0 -1
  259. package/build/main//321/201omponents/ProgressBar/types.js +0 -2
  260. package/build/main//321/201omponents/ProgressBar/types.js.map +0 -1
  261. package/build/main//321/201omponents/RadioButton/RadioButton.js +0 -37
  262. package/build/main//321/201omponents/RadioButton/RadioButton.js.map +0 -1
  263. package/build/main//321/201omponents/RadioButton/index.js +0 -2
  264. package/build/main//321/201omponents/RadioButton/index.js.map +0 -1
  265. package/build/main//321/201omponents/RadioButton/types.js +0 -2
  266. package/build/main//321/201omponents/RadioButton/types.js.map +0 -1
  267. package/build/main//321/201omponents/ScrollBar/ScrollBar.js +0 -63
  268. package/build/main//321/201omponents/ScrollBar/ScrollBar.js.map +0 -1
  269. package/build/main//321/201omponents/ScrollBar/index.js +0 -2
  270. package/build/main//321/201omponents/ScrollBar/index.js.map +0 -1
  271. package/build/main//321/201omponents/ScrollBar/types.js +0 -2
  272. package/build/main//321/201omponents/ScrollBar/types.js.map +0 -1
  273. package/build/main//321/201omponents/Skeleton/Skeleton.d.ts +0 -3
  274. package/build/main//321/201omponents/Skeleton/Skeleton.js +0 -58
  275. package/build/main//321/201omponents/Skeleton/Skeleton.js.map +0 -1
  276. package/build/main//321/201omponents/Skeleton/index.d.ts +0 -1
  277. package/build/main//321/201omponents/Skeleton/index.js +0 -2
  278. package/build/main//321/201omponents/Skeleton/index.js.map +0 -1
  279. package/build/main//321/201omponents/Skeleton/types.js +0 -2
  280. package/build/main//321/201omponents/Skeleton/types.js.map +0 -1
  281. package/build/main//321/201omponents/Stories/Stories.js +0 -296
  282. package/build/main//321/201omponents/Stories/Stories.js.map +0 -1
  283. package/build/main//321/201omponents/Stories/index.js +0 -2
  284. package/build/main//321/201omponents/Stories/index.js.map +0 -1
  285. package/build/main//321/201omponents/Stories/types.js +0 -11
  286. package/build/main//321/201omponents/Stories/types.js.map +0 -1
  287. package/build/main//321/201omponents/Switcher/Switcher.js +0 -34
  288. package/build/main//321/201omponents/Switcher/Switcher.js.map +0 -1
  289. package/build/main//321/201omponents/Switcher/index.js +0 -2
  290. package/build/main//321/201omponents/Switcher/index.js.map +0 -1
  291. package/build/main//321/201omponents/Switcher/types.js +0 -2
  292. package/build/main//321/201omponents/Switcher/types.js.map +0 -1
  293. package/build/main//321/201omponents/SyncLoader/SyncLoader.js +0 -65
  294. package/build/main//321/201omponents/SyncLoader/SyncLoader.js.map +0 -1
  295. package/build/main//321/201omponents/SyncLoader/index.js +0 -2
  296. package/build/main//321/201omponents/SyncLoader/index.js.map +0 -1
  297. package/build/main//321/201omponents/SyncLoader/types.js +0 -2
  298. package/build/main//321/201omponents/SyncLoader/types.js.map +0 -1
  299. package/build/main//321/201omponents/Textarea/Textarea.js +0 -96
  300. package/build/main//321/201omponents/Textarea/Textarea.js.map +0 -1
  301. package/build/main//321/201omponents/Textarea/index.js +0 -2
  302. package/build/main//321/201omponents/Textarea/index.js.map +0 -1
  303. package/build/main//321/201omponents/Textarea/types.js +0 -2
  304. package/build/main//321/201omponents/Textarea/types.js.map +0 -1
  305. package/build/main//321/201omponents/Toggle/Toggle.js +0 -38
  306. package/build/main//321/201omponents/Toggle/Toggle.js.map +0 -1
  307. package/build/main//321/201omponents/Toggle/index.js +0 -2
  308. package/build/main//321/201omponents/Toggle/index.js.map +0 -1
  309. package/build/main//321/201omponents/Toggle/types.js +0 -2
  310. package/build/main//321/201omponents/Toggle/types.js.map +0 -1
  311. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js +0 -31
  312. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js.map +0 -1
  313. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js +0 -70
  314. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js.map +0 -1
  315. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js +0 -23
  316. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js.map +0 -1
  317. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js +0 -81
  318. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js.map +0 -1
  319. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js +0 -40
  320. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js.map +0 -1
  321. package/build/main//321/201omponents/UserDropdown/Option/Option.js +0 -90
  322. package/build/main//321/201omponents/UserDropdown/Option/Option.js.map +0 -1
  323. package/build/main//321/201omponents/UserDropdown/UserDropdown.js +0 -434
  324. package/build/main//321/201omponents/UserDropdown/UserDropdown.js.map +0 -1
  325. package/build/main//321/201omponents/UserDropdown/helpers.js +0 -93
  326. package/build/main//321/201omponents/UserDropdown/helpers.js.map +0 -1
  327. package/build/main//321/201omponents/UserDropdown/index.js +0 -2
  328. package/build/main//321/201omponents/UserDropdown/index.js.map +0 -1
  329. package/build/main//321/201omponents/UserDropdown/selectStyles.js +0 -75
  330. package/build/main//321/201omponents/UserDropdown/selectStyles.js.map +0 -1
  331. package/build/main//321/201omponents/UserDropdown/types.js +0 -2
  332. package/build/main//321/201omponents/UserDropdown/types.js.map +0 -1
  333. package/build/main//321/201omponents/index.d.ts +0 -33
  334. package/build/main//321/201omponents/index.js +0 -34
  335. package/build/main//321/201omponents/index.js.map +0 -1
  336. package/build/main//321/201omponents/types.js +0 -2
  337. package/build/main//321/201omponents/types.js.map +0 -1
  338. /package/build/main/{/321/201omponents/ActionModal/ActionModal.d.ts" → components/ActionModal/ActionModal.d.ts} +0 -0
  339. /package/build/main/{/321/201omponents/ActionModal/index.d.ts" → components/ActionModal/index.d.ts} +0 -0
  340. /package/build/main/{/321/201omponents/ActionModal/types.d.ts" → components/ActionModal/types.d.ts} +0 -0
  341. /package/build/main/{/321/201omponents/AttachedFile/AttachedFile.d.ts" → components/AttachedFile/AttachedFile.d.ts} +0 -0
  342. /package/build/main/{/321/201omponents/AttachedFile/index.d.ts" → components/AttachedFile/index.d.ts} +0 -0
  343. /package/build/main/{/321/201omponents/AttachedFile/types.d.ts" → components/AttachedFile/types.d.ts} +0 -0
  344. /package/build/main/{/321/201omponents/Avatar/Avatar.d.ts" → components/Avatar/Avatar.d.ts} +0 -0
  345. /package/build/main/{/321/201omponents/Avatar/index.d.ts" → components/Avatar/index.d.ts} +0 -0
  346. /package/build/main/{/321/201omponents/Avatar/types.d.ts" → components/Avatar/types.d.ts} +0 -0
  347. /package/build/main/{/321/201omponents/Button/Button.d.ts" → components/Button/Button.d.ts} +0 -0
  348. /package/build/main/{/321/201omponents/Button/index.d.ts" → components/Button/index.d.ts} +0 -0
  349. /package/build/main/{/321/201omponents/Button/types.d.ts" → components/Button/types.d.ts} +0 -0
  350. /package/build/main/{/321/201omponents/CachedImage/CachedImage.d.ts" → components/CachedImage/CachedImage.d.ts} +0 -0
  351. /package/build/main/{/321/201omponents/CachedImage/helpers.d.ts" → components/CachedImage/helpers.d.ts} +0 -0
  352. /package/build/main/{/321/201omponents/CachedImage/index.d.ts" → components/CachedImage/index.d.ts} +0 -0
  353. /package/build/main/{/321/201omponents/CachedImage/types.d.ts" → components/CachedImage/types.d.ts} +0 -0
  354. /package/build/main/{/321/201omponents/Calendar/Calendar.d.ts" → components/Calendar/Calendar.d.ts} +0 -0
  355. /package/build/main/{/321/201omponents/Calendar/index.d.ts" → components/Calendar/index.d.ts} +0 -0
  356. /package/build/main/{/321/201omponents/Calendar/types.d.ts" → components/Calendar/types.d.ts} +0 -0
  357. /package/build/main/{/321/201omponents/Charts/ChartLegend/ChartLegend.d.ts" → components/Charts/ChartLegend/ChartLegend.d.ts} +0 -0
  358. /package/build/main/{/321/201omponents/Charts/colors.d.ts" → components/Charts/colors.d.ts} +0 -0
  359. /package/build/main/{/321/201omponents/Charts/constants.d.ts" → components/Charts/constants.d.ts} +0 -0
  360. /package/build/main/{/321/201omponents/Charts/helpers.d.ts" → components/Charts/helpers.d.ts} +0 -0
  361. /package/build/main/{/321/201omponents/Charts/types.d.ts" → components/Charts/types.d.ts} +0 -0
  362. /package/build/main/{/321/201omponents/Charts/useEvents.d.ts" → components/Charts/useEvents.d.ts} +0 -0
  363. /package/build/main/{/321/201omponents/Charts/usePieEvents.d.ts" → components/Charts/usePieEvents.d.ts} +0 -0
  364. /package/build/main/{/321/201omponents/Checkbox/Checkbox.d.ts" → components/Checkbox/Checkbox.d.ts} +0 -0
  365. /package/build/main/{/321/201omponents/Checkbox/index.d.ts" → components/Checkbox/index.d.ts} +0 -0
  366. /package/build/main/{/321/201omponents/Checkbox/types.d.ts" → components/Checkbox/types.d.ts} +0 -0
  367. /package/build/main/{/321/201omponents/Chip/Chip.d.ts" → components/Chip/Chip.d.ts} +0 -0
  368. /package/build/main/{/321/201omponents/Chip/index.d.ts" → components/Chip/index.d.ts} +0 -0
  369. /package/build/main/{/321/201omponents/Chip/types.d.ts" → components/Chip/types.d.ts} +0 -0
  370. /package/build/main/{/321/201omponents/ConfirmationModal/ConfirmationModal.d.ts" → components/ConfirmationModal/ConfirmationModal.d.ts} +0 -0
  371. /package/build/main/{/321/201omponents/ConfirmationModal/index.d.ts" → components/ConfirmationModal/index.d.ts} +0 -0
  372. /package/build/main/{/321/201omponents/ConfirmationModal/types.d.ts" → components/ConfirmationModal/types.d.ts} +0 -0
  373. /package/build/main/{/321/201omponents/ContextMenu/ContextMenu.d.ts" → components/ContextMenu/ContextMenu.d.ts} +0 -0
  374. /package/build/main/{/321/201omponents/ContextMenu/index.d.ts" → components/ContextMenu/index.d.ts} +0 -0
  375. /package/build/main/{/321/201omponents/ContextMenu/types.d.ts" → components/ContextMenu/types.d.ts} +0 -0
  376. /package/build/main/{/321/201omponents/CustomSelect/index.d.ts" → components/CustomSelect/index.d.ts} +0 -0
  377. /package/build/main/{/321/201omponents/CustomSelect/selectStyles.d.ts" → components/CustomSelect/selectStyles.d.ts} +0 -0
  378. /package/build/main/{/321/201omponents/CustomSelectProfiles/CustomSelectProfiles.d.ts" → components/CustomSelectProfiles/CustomSelectProfiles.d.ts} +0 -0
  379. /package/build/main/{/321/201omponents/CustomSelectProfiles/index.d.ts" → components/CustomSelectProfiles/index.d.ts} +0 -0
  380. /package/build/main/{/321/201omponents/CustomSelectProfiles/types.d.ts" → components/CustomSelectProfiles/types.d.ts} +0 -0
  381. /package/build/main/{/321/201omponents/DragAndDrop/DragAndDrop.d.ts" → components/DragAndDrop/DragAndDrop.d.ts} +0 -0
  382. /package/build/main/{/321/201omponents/DragAndDrop/index.d.ts" → components/DragAndDrop/index.d.ts} +0 -0
  383. /package/build/main/{/321/201omponents/DragAndDrop/types.d.ts" → components/DragAndDrop/types.d.ts} +0 -0
  384. /package/build/main/{/321/201omponents/Error/Error.d.ts" → components/Error/Error.d.ts} +0 -0
  385. /package/build/main/{/321/201omponents/Error/index.d.ts" → components/Error/index.d.ts} +0 -0
  386. /package/build/main/{/321/201omponents/Error/types.d.ts" → components/Error/types.d.ts} +0 -0
  387. /package/build/main/{/321/201omponents/Flex/Flex.d.ts" → components/Flex/Flex.d.ts} +0 -0
  388. /package/build/main/{/321/201omponents/Flex/HFlex/HFlex.d.ts" → components/Flex/HFlex/HFlex.d.ts} +0 -0
  389. /package/build/main/{/321/201omponents/Flex/HFlex/index.d.ts" → components/Flex/HFlex/index.d.ts} +0 -0
  390. /package/build/main/{/321/201omponents/Flex/VFlex/VFlex.d.ts" → components/Flex/VFlex/VFlex.d.ts} +0 -0
  391. /package/build/main/{/321/201omponents/Flex/VFlex/index.d.ts" → components/Flex/VFlex/index.d.ts} +0 -0
  392. /package/build/main/{/321/201omponents/Flex/index.d.ts" → components/Flex/index.d.ts} +0 -0
  393. /package/build/main/{/321/201omponents/Flex/types.d.ts" → components/Flex/types.d.ts} +0 -0
  394. /package/build/main/{/321/201omponents/Header/Header.d.ts" → components/Header/Header.d.ts} +0 -0
  395. /package/build/main/{/321/201omponents/Header/index.d.ts" → components/Header/index.d.ts} +0 -0
  396. /package/build/main/{/321/201omponents/Header/types.d.ts" → components/Header/types.d.ts} +0 -0
  397. /package/build/main/{/321/201omponents/Input/Input.d.ts" → components/Input/Input.d.ts} +0 -0
  398. /package/build/main/{/321/201omponents/Input/index.d.ts" → components/Input/index.d.ts} +0 -0
  399. /package/build/main/{/321/201omponents/Input/types.d.ts" → components/Input/types.d.ts} +0 -0
  400. /package/build/main/{/321/201omponents/ListItem/ListItem.d.ts" → components/ListItem/ListItem.d.ts} +0 -0
  401. /package/build/main/{/321/201omponents/ListItem/index.d.ts" → components/ListItem/index.d.ts} +0 -0
  402. /package/build/main/{/321/201omponents/Loader/index.d.ts" → components/Loader/index.d.ts} +0 -0
  403. /package/build/main/{/321/201omponents/Modal/index.d.ts" → components/Modal/index.d.ts} +0 -0
  404. /package/build/main/{/321/201omponents/Notification/Notification.d.ts" → components/Notification/Notification.d.ts} +0 -0
  405. /package/build/main/{/321/201omponents/Notification/index.d.ts" → components/Notification/index.d.ts} +0 -0
  406. /package/build/main/{/321/201omponents/Notification/types.d.ts" → components/Notification/types.d.ts} +0 -0
  407. /package/build/main/{/321/201omponents/Profile/Profile.d.ts" → components/Profile/Profile.d.ts} +0 -0
  408. /package/build/main/{/321/201omponents/Profile/index.d.ts" → components/Profile/index.d.ts} +0 -0
  409. /package/build/main/{/321/201omponents/Profile/types.d.ts" → components/Profile/types.d.ts} +0 -0
  410. /package/build/main/{/321/201omponents/ProgressBar/ProgressBar.d.ts" → components/ProgressBar/ProgressBar.d.ts} +0 -0
  411. /package/build/main/{/321/201omponents/ProgressBar/index.d.ts" → components/ProgressBar/index.d.ts} +0 -0
  412. /package/build/main/{/321/201omponents/ProgressBar/types.d.ts" → components/ProgressBar/types.d.ts} +0 -0
  413. /package/build/main/{/321/201omponents/RadioButton/RadioButton.d.ts" → components/RadioButton/RadioButton.d.ts} +0 -0
  414. /package/build/main/{/321/201omponents/RadioButton/index.d.ts" → components/RadioButton/index.d.ts} +0 -0
  415. /package/build/main/{/321/201omponents/RadioButton/types.d.ts" → components/RadioButton/types.d.ts} +0 -0
  416. /package/build/main/{/321/201omponents/ScrollBar/index.d.ts" → components/ScrollBar/index.d.ts} +0 -0
  417. /package/build/main/{/321/201omponents/Skeleton/types.d.ts" → components/Skeleton/types.d.ts} +0 -0
  418. /package/build/main/{/321/201omponents/Stories/Stories.d.ts" → components/Stories/Stories.d.ts} +0 -0
  419. /package/build/main/{/321/201omponents/Stories/index.d.ts" → components/Stories/index.d.ts} +0 -0
  420. /package/build/main/{/321/201omponents/Stories/types.d.ts" → components/Stories/types.d.ts} +0 -0
  421. /package/build/main/{/321/201omponents/Switcher/Switcher.d.ts" → components/Switcher/Switcher.d.ts} +0 -0
  422. /package/build/main/{/321/201omponents/Switcher/index.d.ts" → components/Switcher/index.d.ts} +0 -0
  423. /package/build/main/{/321/201omponents/Switcher/types.d.ts" → components/Switcher/types.d.ts} +0 -0
  424. /package/build/main/{/321/201omponents/SyncLoader/SyncLoader.d.ts" → components/SyncLoader/SyncLoader.d.ts} +0 -0
  425. /package/build/main/{/321/201omponents/SyncLoader/index.d.ts" → components/SyncLoader/index.d.ts} +0 -0
  426. /package/build/main/{/321/201omponents/SyncLoader/types.d.ts" → components/SyncLoader/types.d.ts} +0 -0
  427. /package/build/main/{/321/201omponents/Textarea/Textarea.d.ts" → components/Textarea/Textarea.d.ts} +0 -0
  428. /package/build/main/{/321/201omponents/Textarea/index.d.ts" → components/Textarea/index.d.ts} +0 -0
  429. /package/build/main/{/321/201omponents/Textarea/types.d.ts" → components/Textarea/types.d.ts} +0 -0
  430. /package/build/main/{/321/201omponents/Toggle/Toggle.d.ts" → components/Toggle/Toggle.d.ts} +0 -0
  431. /package/build/main/{/321/201omponents/Toggle/index.d.ts" → components/Toggle/index.d.ts} +0 -0
  432. /package/build/main/{/321/201omponents/Toggle/types.d.ts" → components/Toggle/types.d.ts} +0 -0
  433. /package/build/main/{/321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.d.ts" → components/UserDropdown/ContactBottomSheet/ContactBottomSheet.d.ts} +0 -0
  434. /package/build/main/{/321/201omponents/UserDropdown/ContactInfo/ContactInfo.d.ts" → components/UserDropdown/ContactInfo/ContactInfo.d.ts} +0 -0
  435. /package/build/main/{/321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.d.ts" → components/UserDropdown/LoadingMessage/LoadingMessage.d.ts} +0 -0
  436. /package/build/main/{/321/201omponents/UserDropdown/MenuList/MenuList.d.ts" → components/UserDropdown/MenuList/MenuList.d.ts} +0 -0
  437. /package/build/main/{/321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.d.ts" → components/UserDropdown/MultiValueLabel/MultiValueLabel.d.ts} +0 -0
  438. /package/build/main/{/321/201omponents/UserDropdown/Option/Option.d.ts" → components/UserDropdown/Option/Option.d.ts} +0 -0
  439. /package/build/main/{/321/201omponents/UserDropdown/UserDropdown.d.ts" → components/UserDropdown/UserDropdown.d.ts} +0 -0
  440. /package/build/main/{/321/201omponents/UserDropdown/index.d.ts" → components/UserDropdown/index.d.ts} +0 -0
  441. /package/build/main/{/321/201omponents/UserDropdown/selectStyles.d.ts" → components/UserDropdown/selectStyles.d.ts} +0 -0
  442. /package/build/main/{/321/201omponents/UserDropdown/types.d.ts" → components/UserDropdown/types.d.ts} +0 -0
  443. /package/build/main/{/321/201omponents/types.d.ts" → components/types.d.ts} +0 -0
@@ -1,63 +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 } from "react/jsx-runtime";
24
- import { useCallback, useEffect, useLayoutEffect, useState } from 'react';
25
- import classNames from 'classnames';
26
- import Scrollbar from 'react-scrollbars-custom';
27
- import { generateId, isWebPlatform } from '../../helpers';
28
- import { DEFAULT_SCROLL_BAR_HIDE_DURATION, PLATFORM } from '../../constants';
29
- import '../../styles/styles.scss';
30
- export var DEFAULT_SCROLL_BAR_HEIGHT = '100%';
31
- var HIDE_THUMB_CLASSNAME = 'smartapp-scroll__thumb';
32
- var SHOW_THUMB_CLASSNAME = "".concat(HIDE_THUMB_CLASSNAME, "--show ").concat(HIDE_THUMB_CLASSNAME);
33
- var ScrollBar = function (_a) {
34
- var _b = _a.platform, platform = _b === void 0 ? PLATFORM.web : _b, contentId = _a.contentId, content = _a.content, handleScroll = _a.handleScroll, _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, _e = _a.trackHeight, trackHeight = _e === void 0 ? DEFAULT_SCROLL_BAR_HEIGHT : _e, containerClassName = _a.containerClassName, containerStyles = _a.containerStyles, scrollbarRef = _a.scrollbarRef, restProps = __rest(_a, ["platform", "contentId", "content", "handleScroll", "hideDuration", "containerHeight", "trackHeight", "containerClassName", "containerStyles", "scrollbarRef"]);
35
- var _f = useState(generateId()), scrollbarKey = _f[0], setScrollbarKey = _f[1];
36
- var _g = useState(false), scrolling = _g[0], setScrolling = _g[1];
37
- useEffect(function () {
38
- var debounceTimeout = setTimeout(function () { return setScrolling(false); }, hideDuration);
39
- return function () { return clearTimeout(debounceTimeout); };
40
- /* eslint-disable-next-line */
41
- }, [scrolling]);
42
- useLayoutEffect(function () {
43
- if (contentId) {
44
- setScrolling(false);
45
- setScrollbarKey(contentId);
46
- }
47
- }, [contentId]);
48
- var onScroll = function (scrollValues) {
49
- handleScroll === null || handleScroll === void 0 ? void 0 : handleScroll(scrollValues);
50
- setScrolling(true);
51
- };
52
- var generateThumbClassName = useCallback(function () { return (scrolling ? SHOW_THUMB_CLASSNAME : HIDE_THUMB_CLASSNAME); }, [scrolling]);
53
- var generateScrollerStyles = function () { return ({ '--scroller-height': trackHeight }); };
54
- var generateTrackYProps = function () { return ({
55
- className: classNames('smartapp-scroll__scroller', {
56
- 'smartapp-scroll__scroller--hover': isWebPlatform(platform),
57
- }),
58
- style: generateScrollerStyles(),
59
- }); };
60
- return (_jsx("div", __assign({ style: __assign({ height: containerHeight }, containerStyles), className: classNames('smartapp-scroll', containerClassName) }, { children: _jsx(Scrollbar, __assign({ ref: scrollbarRef, native: false, mobileNative: false, removeTracksWhenNotUsed: true, onScroll: onScroll, wrapperProps: { className: 'smartapp-scroll__wrapper' }, thumbYProps: { className: generateThumbClassName() }, trackYProps: generateTrackYProps() }, restProps, { children: content }), scrollbarKey) })));
61
- };
62
- export default ScrollBar;
63
- //# sourceMappingURL=ScrollBar.js.map
@@ -1 +0,0 @@
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;AAE/C,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AACzD,OAAO,EAAE,gCAAgC,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAE5E,OAAO,0BAA0B,CAAA;AAEjC,MAAM,CAAC,IAAM,yBAAyB,GAAG,MAAM,C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5B,YAAY,CAAC,IAAI,CAAC,CAAA;IACpB,CAAC,CAAA;IAED,IAAM,sBAAsB,GAAG,WAAW,CAAC,cAAM,OAAA,CAAC,SAAS,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,oBAAoB,CAAC,EAAzD,CAAyD,EAAE,CAAC,SAAS,CAAC,CAAC,CAAA;IAExH,IAAM,sBAAsB,GAAG,cAAM,OAAA,CAAC,EAAE,mBAAmB,EAAE,WAAW,EAA0B,CAAA,EAA7D,CAA6D,CAAA;IAElG,IAAM,mBAAmB,GAAG,cAAM,OAAA,CAAC;QACjC,SAAS,EAAE,UAAU,CAAC,2BAA2B,EAAE;YACjD,kCAAkC,EAAE,aAAa,CAAC,QAAQ,CAAC;SAC5D,CAAC;QACF,KAAK,EAAE,sBAAsB,EAAE;KAChC,CAAC,EALgC,CAKhC,CAAA;IAEF,OAAO,CACL,uBAAK,KAAK,aAAI,MAAM,EAAE,eAAe,IAAK,eAAe,GAAI,SAAS,EAAE,UAAU,CAAC,iBAAiB,EAAE,kBAAkB,CAAC,gBACvH,KAAC,SAAS,aACR,GAAG,EAAE,YAAY,EAEjB,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,mBAAmB,EAAE,IAC9B,SAAS,cAEZ,OAAO,KAVH,YAAY,CAWP,IACR,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,SAAS,CAAA"}
@@ -1,2 +0,0 @@
1
- export { default } from './ScrollBar';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/ScrollBar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,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/ScrollBar/types.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- import { ISkeletonProps } from './types';
2
- import '../../styles/styles.scss';
3
- export declare const Skeleton: ({ className, styles, baseColor, width, height, borderRadius, circle, containerRef, animationDuration, initialOffset, }: ISkeletonProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,58 +0,0 @@
1
- var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
- return cooked;
4
- };
5
- import { jsx as _jsx } from "react/jsx-runtime";
6
- import { useEffect, useRef, useState } from 'react';
7
- import styled, { css, keyframes } from 'styled-components';
8
- import { generateColor } from '../../helpers';
9
- import '../../styles/styles.scss';
10
- export var Skeleton = function (_a) {
11
- var className = _a.className, styles = _a.styles, baseColor = _a.baseColor, width = _a.width, height = _a.height, _b = _a.borderRadius, borderRadius = _b === void 0 ? 8 : _b, circle = _a.circle,
12
- // needed to determine the offset, the left border must coincide with the left border of the skeletons (without padding in container)
13
- containerRef = _a.containerRef,
14
- // if not default, then it must be specified for all skeletons
15
- _c = _a.animationDuration,
16
- // if not default, then it must be specified for all skeletons
17
- animationDuration = _c === void 0 ? 2 : _c,
18
- // equal to gradient width
19
- _d = _a.initialOffset,
20
- // equal to gradient width
21
- initialOffset = _d === void 0 ? -230 : _d;
22
- var skeletonRef = useRef(null);
23
- var _e = useState({ container: { left: 0, width: 0 }, item: { left: 0, width: 0 } }), position = _e[0], setPosition = _e[1];
24
- //after mount set offset sizes
25
- useEffect(function () {
26
- var containerRefCurrent = containerRef === null || containerRef === void 0 ? void 0 : containerRef.current;
27
- var skeletonRefContainerCurrent = skeletonRef === null || skeletonRef === void 0 ? void 0 : skeletonRef.current;
28
- if (containerRefCurrent && skeletonRefContainerCurrent) {
29
- var containerLeft = containerRefCurrent.getBoundingClientRect().left || 0;
30
- var containerWidth = containerRefCurrent.clientWidth || 0;
31
- var itemLeft = skeletonRefContainerCurrent.getBoundingClientRect().left || 0;
32
- var itemWidth = skeletonRefContainerCurrent.getBoundingClientRect().width || 0;
33
- setPosition({ container: { left: containerLeft, width: containerWidth }, item: { left: itemLeft, width: itemWidth } });
34
- }
35
- }, [containerRef]);
36
- var calculateOffset = function () {
37
- var diff = position.item.left - position.container.left;
38
- var startOffset = initialOffset - diff;
39
- var finalOffset = position.container.width - diff;
40
- return { startOffset: startOffset, finalOffset: finalOffset };
41
- };
42
- var skeletonBackgroundColor = generateColor(baseColor, 'var(--color-input-primary)');
43
- var skeletonCSS = {
44
- width: width,
45
- height: circle ? width : height,
46
- minWidth: circle ? width : 0,
47
- borderRadius: circle ? '50%' : borderRadius,
48
- backgroundColor: skeletonBackgroundColor,
49
- };
50
- return (_jsx(StyledSkeleton, { "$animationDuration": animationDuration, "$initialOffset": calculateOffset().startOffset, "$finalOffset": calculateOffset().finalOffset, "$CSS": skeletonCSS, ref: skeletonRef, className: className, style: styles }));
51
- };
52
- var StyledSkeleton = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n position: relative;\n overflow: hidden;\n background-size: 230px;\n background-repeat: no-repeat;\n background-image: linear-gradient(\n 90deg,\n var(--color-skeleton-gradient-edge) var(--skeleton-start-edge-gradient-size),\n var(--color-skeleton-gradient-center) var(--skeleton-center-gradient-size),\n var(--color-skeleton-gradient-edge) var(--skeleton-end-edge-gradient-size)\n );\n ", ";\n"], ["\n position: relative;\n overflow: hidden;\n background-size: 230px;\n background-repeat: no-repeat;\n background-image: linear-gradient(\n 90deg,\n var(--color-skeleton-gradient-edge) var(--skeleton-start-edge-gradient-size),\n var(--color-skeleton-gradient-center) var(--skeleton-center-gradient-size),\n var(--color-skeleton-gradient-edge) var(--skeleton-end-edge-gradient-size)\n );\n ", ";\n"])), function (_a) {
53
- var $CSS = _a.$CSS, $animationDuration = _a.$animationDuration, $initialOffset = _a.$initialOffset, $finalOffset = _a.$finalOffset;
54
- return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n animation: ", " ", "s infinite linear;\n ", ";\n "], ["\n animation: ", " ", "s infinite linear;\n ", ";\n "])), flash($initialOffset, $finalOffset), $animationDuration, $CSS);
55
- });
56
- var flash = function (initialOffset, finalOffset) { return keyframes(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n 0% {\n background-position: ", "px;\n }\n\n 60%,\n 100% {\n background-position: ", "px;\n }\n"], ["\n 0% {\n background-position: ", "px;\n }\n\n 60%,\n 100% {\n background-position: ", "px;\n }\n"])), initialOffset, finalOffset); };
57
- var templateObject_1, templateObject_2, templateObject_3;
58
- //# sourceMappingURL=Skeleton.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Skeleton.js","sourceRoot":"","sources":["../../../../src/сomponents/Skeleton/Skeleton.tsx"],"names":[],"mappings":";;;;;AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC1D,OAAO,MAAM,EAAE,EAAE,GAAG,EAAW,SAAS,EAAE,MAAM,mBAAmB,CAAA;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAE7C,OAAO,0BAA0B,CAAA;AAEjC,MAAM,CAAC,IAAM,QAAQ,GAAG,UAAC,EAcR;QAbf,SAAS,eAAA,EACT,MAAM,YAAA,EACN,SAAS,eAAA,EACT,KAAK,WAAA,EACL,MAAM,YAAA,EACN,oBAAgB,EAAhB,YAAY,mBAAG,CAAC,KAAA,EAChB,MAAM,YAAA;IACN,qIAAqI;IACrI,YAAY,kBAAA;IACZ,8DAA8D;IAC9D,yBAAqB;IADrB,8DAA8D;IAC9D,iBAAiB,mBAAG,CAAC,KAAA;IACrB,0BAA0B;IAC1B,qBAAoB;IADpB,0BAA0B;IAC1B,aAAa,mB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a,EAKb,WAAW,GAPsB,CAS7D,CAAA"}
@@ -1 +0,0 @@
1
- export { Skeleton } from './Skeleton';
@@ -1,2 +0,0 @@
1
- export { Skeleton } from './Skeleton';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/Skeleton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,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/Skeleton/types.ts"],"names":[],"mappings":""}
@@ -1,296 +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 _a, _b;
13
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
- /* eslint-disable max-lines */
15
- import { useCallback, useEffect, useLayoutEffect, useState } from 'react';
16
- import classNames from 'classnames';
17
- import { isNull, sortBy, isEmpty } from 'lodash';
18
- import Stories from 'react-insta-stories';
19
- import Popup from 'reactjs-popup';
20
- import { useSwipeable } from 'react-swipeable';
21
- import { ReactComponent as CloseStoriesIcon } from '../../assets/icons/close-stories.svg';
22
- import { ReactComponent as LoaderIcon } from '../../assets/icons/story-loader.svg';
23
- import { ReactComponent as ExternalLinkIcon } from '../../assets/icons/external-link.svg';
24
- import { STORY_BACKGROUND_TYPES, STORY_TYPE, } from './types';
25
- import { COLORS, DEFAULT_FONT_FAMILY, NUMBER_OF_STORIES_FOR_ROUND_INDICATORS, PLATFORM } from '../../constants';
26
- import { generateColor, isIosPlatform, isWebPlatform } from '../../helpers';
27
- import '../../styles/styles.scss';
28
- var storyItemBaseStyles = {
29
- height: '100%',
30
- width: '100%',
31
- };
32
- var progressContainerStyles = function (platform, storiesCount) { return ({
33
- gap: storiesCount >= NUMBER_OF_STORIES_FOR_ROUND_INDICATORS ? '8px' : '12px',
34
- width: '100%',
35
- filter: 'none',
36
- paddingTop: isWebPlatform(platform) ? '22px' : isIosPlatform(platform) ? '21px' : '26px',
37
- paddingLeft: '0',
38
- paddingRight: '0',
39
- paddingBottom: '0',
40
- }); };
41
- var progressWrapperStyles = {
42
- height: '4px',
43
- borderRadius: '51px',
44
- background: 'rgba(255, 255, 255, 0.4)',
45
- margin: 0,
46
- overflow: 'hidden',
47
- };
48
- var progressStyles = {
49
- height: '4px',
50
- borderRadius: '51px',
51
- background: 'rgba(255, 255, 255, 1)',
52
- };
53
- var DEFAULT_STORY_DURATION = 5000;
54
- var STORY_SIZE;
55
- (function (STORY_SIZE) {
56
- STORY_SIZE["xs"] = "xs";
57
- STORY_SIZE["sm"] = "sm";
58
- STORY_SIZE["l"] = "l";
59
- })(STORY_SIZE || (STORY_SIZE = {}));
60
- var STORY_SIZE_HEIGHT = (_a = {},
61
- _a[STORY_SIZE.xs] = 620,
62
- _a[STORY_SIZE.sm] = 768,
63
- _a[STORY_SIZE.l] = 812,
64
- _a);
65
- var STORY_WIDTH_BREAKPOINT = (_b = {},
66
- _b[STORY_SIZE.xs] = 377,
67
- _b[STORY_SIZE.sm] = 399,
68
- _b);
69
- var generateSize = function (width, height) {
70
- var isSizeXS = width < STORY_WIDTH_BREAKPOINT[STORY_SIZE.xs] || height < STORY_SIZE_HEIGHT[STORY_SIZE.sm];
71
- var isSizeSM = width < STORY_WIDTH_BREAKPOINT[STORY_SIZE.sm] || height < STORY_SIZE_HEIGHT[STORY_SIZE.l];
72
- if (isSizeXS)
73
- return STORY_SIZE.xs;
74
- if (isSizeSM)
75
- return STORY_SIZE.sm;
76
- return STORY_SIZE.l;
77
- };
78
- var PERCENTAGE_OF_IMAGE_WIDTH = 0.827;
79
- var StoriesComponent = function (_a) {
80
- var _b;
81
- var _c = _a.platform, platform = _c === void 0 ? PLATFORM.web : _c, _d = _a.fontFamily, fontFamily = _d === void 0 ? DEFAULT_FONT_FAMILY : _d, contentClassName = _a.contentClassName, contentStyles = _a.contentStyles, groupStories = _a.groupStories, allGroupsStories = _a.allGroupsStories, changeStoryToViewed = _a.changeStoryToViewed, changeGroupStoriesToViewed = _a.changeGroupStoriesToViewed, handleCloseGroupStories = _a.handleCloseGroupStories;
82
- var sortStoriesByOrder = function (stories) { return sortBy(stories, ['order']); };
83
- var generateActiveGroupStoriesIndex = function () { return allGroupsStories.findIndex(function (_a) {
84
- var id = _a.id;
85
- return id === (activeGroupStories === null || activeGroupStories === void 0 ? void 0 : activeGroupStories.id);
86
- }); };
87
- var _e = useState(groupStories), activeGroupStories = _e[0], setActiveGroupStories = _e[1];
88
- var _f = useState(sortStoriesByOrder((groupStories === null || groupStories === void 0 ? void 0 : groupStories.stories) || [])), stories = _f[0], setStories = _f[1];
89
- var _g = useState((_b = stories[0]) === null || _b === void 0 ? void 0 : _b.id), activeStoryId = _g[0], setActiveStoryId = _g[1];
90
- var _h = useState(false), isAnimateToRight = _h[0], setIsAnimateToRight = _h[1];
91
- var _j = useState(false), isAnimateToLeft = _j[0], setIsAnimateToLeft = _j[1];
92
- var activeStory = stories.find(function (_a) {
93
- var id = _a.id;
94
- return id === activeStoryId;
95
- });
96
- var popupElement = document.querySelector('.smartapp-stories-content');
97
- var containerHeight = (popupElement === null || popupElement === void 0 ? void 0 : popupElement.offsetHeight) || 0;
98
- var containerWidth = (popupElement === null || popupElement === void 0 ? void 0 : popupElement.offsetWidth) || 0;
99
- var size = generateSize(containerWidth, containerHeight);
100
- var isShowCloseIconInsideStory = STORY_SIZE_HEIGHT[size] < containerHeight;
101
- var isColorOnBackground = function (type) { return type === STORY_BACKGROUND_TYPES.color; };
102
- var isImageOnBackground = function (_a) {
103
- var type = _a.type;
104
- return type === STORY_BACKGROUND_TYPES.image;
105
- };
106
- var generateStoryStyles = function (_a) {
107
- var type = _a.type, value = _a.value;
108
- return isColorOnBackground(type)
109
- ? __assign(__assign({}, storyItemBaseStyles), { background: value }) : __assign(__assign({}, storyItemBaseStyles), { backgroundImage: "url(".concat(value, ")"), backgroundSize: 'cover', backgroundPosition: 'center', backgroundRepeat: 'no-repeat' });
110
- };
111
- var changeActiveGroupStories = function (groupStoriesItem) {
112
- setActiveGroupStories(groupStoriesItem);
113
- setStories(sortStoriesByOrder(groupStoriesItem.stories));
114
- setTimeout(function () {
115
- setIsAnimateToLeft(false);
116
- setIsAnimateToRight(false);
117
- }, 500);
118
- };
119
- var handlePrevious = function () {
120
- var prevGroupStories = allGroupsStories[generateActiveGroupStoriesIndex() - 1];
121
- if (prevGroupStories) {
122
- setIsAnimateToLeft(true);
123
- changeActiveGroupStories(prevGroupStories);
124
- }
125
- else {
126
- handleCloseGroupStories();
127
- }
128
- };
129
- var handleNext = function () {
130
- var nextGroupStories = allGroupsStories[generateActiveGroupStoriesIndex() + 1];
131
- if (nextGroupStories) {
132
- setIsAnimateToRight(true);
133
- changeActiveGroupStories(nextGroupStories);
134
- }
135
- else {
136
- handleCloseGroupStories();
137
- }
138
- };
139
- var onStoryStart = function (storyIndex) {
140
- var isVideoStory = stories[storyIndex].type === STORY_TYPE.video;
141
- isVideoStory && setActiveStoryId(stories[storyIndex].id);
142
- var story = stories.find(function (_a) {
143
- var id = _a.id;
144
- return id === stories[storyIndex].id;
145
- });
146
- var isLastStory = stories.at(-1).id === story.id;
147
- if (!story.viewed && changeStoryToViewed) {
148
- changeStoryToViewed(story, activeGroupStories);
149
- }
150
- if (isLastStory && !activeGroupStories.viewed && changeGroupStoriesToViewed) {
151
- changeGroupStoriesToViewed(activeGroupStories);
152
- }
153
- };
154
- var generateCurrentStoryIndex = useCallback(function () { return stories.findIndex(function (_a) {
155
- var id = _a.id;
156
- return id === activeStoryId;
157
- }); }, [stories, activeStoryId]);
158
- var onPrevious = function () {
159
- activeStoryId === stories[0].id ? handlePrevious() : onStoryStart(generateCurrentStoryIndex() - 1);
160
- };
161
- var onNext = function () {
162
- var currentStoryIndex = generateCurrentStoryIndex();
163
- currentStoryIndex !== stories.length - 1 && onStoryStart(currentStoryIndex + 1);
164
- };
165
- var createImageContent = function (_a) {
166
- var id = _a.id, durationInMs = _a.durationInMs, title = _a.title, body = _a.body, backgroundSource = _a.backgroundSource, button = _a.button, image = _a.image;
167
- return ({
168
- duration: durationInMs || DEFAULT_STORY_DURATION,
169
- content: function (_a) {
170
- var action = _a.action;
171
- // eslint-disable-next-line react-hooks/rules-of-hooks
172
- var _b = useState(false), isImageLoaded = _b[0], setIsImageLoaded = _b[1];
173
- var isLoaderVisible = image && (!isImageLoaded || isAnimateToLeft || isAnimateToRight);
174
- var storyContainer = document.querySelector('.smartapp-stories');
175
- var containerWidth = (storyContainer === null || storyContainer === void 0 ? void 0 : storyContainer.offsetWidth) || 0;
176
- var imageContainerHeight = containerWidth * PERCENTAGE_OF_IMAGE_WIDTH;
177
- // eslint-disable-next-line react-hooks/rules-of-hooks
178
- useLayoutEffect(function () {
179
- setActiveStoryId(id);
180
- }, []);
181
- // eslint-disable-next-line react-hooks/rules-of-hooks
182
- useLayoutEffect(function () {
183
- var timeoutId;
184
- timeoutId = setTimeout(function () { return action(isLoaderVisible ? 'pause' : 'play'); }, 0);
185
- return function () { return clearTimeout(timeoutId); };
186
- // eslint-disable-next-line
187
- }, [isLoaderVisible]);
188
- var handleImageLoad = function () {
189
- setTimeout(function () {
190
- action('play');
191
- setIsImageLoaded(true);
192
- }, 0);
193
- };
194
- return (_jsx("div", __assign({ style: generateStoryStyles(backgroundSource) }, { children: _jsxs("div", __assign({ style: __assign({ fontFamily: "".concat(fontFamily, ", sans-serif") }, contentStyles), className: classNames('smartapp-stories__story', { 'smartapp-stories__story--image-bg': isImageOnBackground(backgroundSource) }, contentClassName) }, { children: [_jsxs("div", __assign({ style: { opacity: isLoaderVisible ? '0' : '1' } }, { children: [image && (_jsx("div", __assign({ className: "smartapp-stories__story--image", style: { maxHeight: "".concat(imageContainerHeight, "px") } }, { children: _jsx("img", { src: image, alt: "", onLoad: handleImageLoad, onError: handleImageLoad }) }))), title && _jsx("div", __assign({ className: "smartapp-stories__story--title" }, { children: title })), body && _jsx("div", __assign({ className: "smartapp-stories__story--body" }, { children: body })), button && (_jsxs("div", __assign({ style: {
195
- color: generateColor(button.textColor, COLORS.darkBlack),
196
- background: generateColor(button.backgroundColor, COLORS.white),
197
- }, className: classNames('smartapp-stories__story--button', "smartapp-stories__story--button__".concat(platform), {
198
- 'smartapp-stories__story--button__with-icon': button.isTransitionToExternalSource,
199
- }), onClick: button.action }, { children: [button.text, button.isTransitionToExternalSource && _jsx(ExternalLinkIcon, {})] })))] })), isLoaderVisible && (_jsx("div", __assign({ className: "smartapp-stories__story--loader" }, { children: _jsx(LoaderIcon, {}) })))] })) }), id));
200
- },
201
- });
202
- };
203
- var createVideoContent = function (_a) {
204
- var url = _a.url;
205
- return ({
206
- type: STORY_TYPE.video,
207
- url: url,
208
- });
209
- };
210
- var generateStories = function () { return stories.map(function (story) { return (story.type === STORY_TYPE.image ? createImageContent(story) : createVideoContent(story)); }); };
211
- var swipeableHandlers = useSwipeable({
212
- trackMouse: true,
213
- onSwipedLeft: function () { return handleNext(); },
214
- onSwipedRight: function () { return handlePrevious(); },
215
- });
216
- var createBackgroundVideo = function (id, url) {
217
- var video = document.createElement('video');
218
- video.id = "background_video_".concat(id);
219
- video.src = url;
220
- video.muted = true;
221
- video.playsInline = true;
222
- video.autoplay = true;
223
- video.classList.add('smartapp-stories-content__background-video');
224
- return video;
225
- };
226
- useEffect(function () {
227
- var sortedStories = sortStoriesByOrder((groupStories === null || groupStories === void 0 ? void 0 : groupStories.stories) || []);
228
- setActiveGroupStories(groupStories);
229
- setStories(sortedStories);
230
- }, [groupStories]);
231
- useEffect(function () {
232
- var video = document.querySelector('video');
233
- var pauseVideosOnBackground = function () {
234
- var backgroundVideos = document.querySelectorAll("#background_video_".concat(activeStoryId));
235
- backgroundVideos.forEach(function (video) { return video.pause(); });
236
- };
237
- var playVideosOnBackground = function () {
238
- var backgroundVideos = document.querySelectorAll("#background_video_".concat(activeStoryId));
239
- backgroundVideos.forEach(function (video) { return video.play().catch(function () { }); });
240
- };
241
- video === null || video === void 0 ? void 0 : video.addEventListener('play', playVideosOnBackground);
242
- video === null || video === void 0 ? void 0 : video.addEventListener('pause', pauseVideosOnBackground);
243
- return function () {
244
- video === null || video === void 0 ? void 0 : video.removeEventListener('play', playVideosOnBackground);
245
- video === null || video === void 0 ? void 0 : video.removeEventListener('pause', pauseVideosOnBackground);
246
- };
247
- }, [activeStoryId]);
248
- useEffect(function () {
249
- var currentStoryIndex = generateCurrentStoryIndex();
250
- var indicatorsContainer = document.querySelector('.smartapp-stories > div:first-of-type > div:first-of-type');
251
- var indicators = Array.from((indicatorsContainer === null || indicatorsContainer === void 0 ? void 0 : indicatorsContainer.children) || []);
252
- indicators.forEach(function (indicator, index) {
253
- if (indicators.length >= NUMBER_OF_STORIES_FOR_ROUND_INDICATORS) {
254
- indicator.style.width = index !== currentStoryIndex ? '4px' : '48px';
255
- }
256
- else {
257
- indicator.style.width = '38px';
258
- }
259
- });
260
- }, [generateCurrentStoryIndex]);
261
- useEffect(function () {
262
- var popupElement = document.querySelector('.smartapp-stories-content');
263
- var videoWrapper = document.querySelector('.smartapp-stories-content > div > div > div:nth-child(2) > div');
264
- if (activeStory) {
265
- if (activeStory.type === STORY_TYPE.image) {
266
- var _a = activeStory.backgroundSource, type = _a.type, value = _a.value;
267
- var prevBackgroundVideos = document.querySelectorAll('.smartapp-stories-content__background-video');
268
- var background = isColorOnBackground(type) ? value : "url(".concat(value, ")");
269
- !isEmpty(prevBackgroundVideos) && prevBackgroundVideos.forEach(function (video) { return video.remove(); });
270
- isWebPlatform(platform) && (popupElement === null || popupElement === void 0 ? void 0 : popupElement.style.setProperty('--background', background));
271
- }
272
- else {
273
- var id = activeStory.id, url = activeStory.url;
274
- var prevBackgroundVideos = document.querySelectorAll('.smartapp-stories-content__background-video');
275
- !isEmpty(prevBackgroundVideos) && prevBackgroundVideos.forEach(function (video) { return video.remove(); });
276
- // eslint-disable-next-line max-depth
277
- if (isWebPlatform(platform)) {
278
- popupElement === null || popupElement === void 0 ? void 0 : popupElement.style.removeProperty('--background');
279
- popupElement === null || popupElement === void 0 ? void 0 : popupElement.appendChild(createBackgroundVideo(id, url));
280
- }
281
- videoWrapper === null || videoWrapper === void 0 ? void 0 : videoWrapper.appendChild(createBackgroundVideo(id, url));
282
- }
283
- }
284
- }, [platform, activeStory]);
285
- if (isNull(activeGroupStories)) {
286
- return null;
287
- }
288
- var closeIcon = (_jsx(CloseStoriesIcon, { className: classNames('smartapp-stories__icon', "smartapp-stories__icon--".concat(platform)), onClick: handleCloseGroupStories }));
289
- return (_jsxs(Popup, __assign({ className: "smartapp-stories", open: true }, { children: [_jsxs("div", __assign({ className: classNames('smartapp-stories', "smartapp-stories__".concat(size), "smartapp-stories__".concat(platform), {
290
- 'smartapp-stories__video': (activeStory === null || activeStory === void 0 ? void 0 : activeStory.type) === STORY_TYPE.video,
291
- 'smartapp-stories__animate-right': isAnimateToRight,
292
- 'smartapp-stories__animate-left': isAnimateToLeft,
293
- }) }, swipeableHandlers, { children: [_jsx(Stories, { defaultInterval: 6000, width: "100%", height: "100%", stories: generateStories(), onStoryStart: onStoryStart, onPrevious: onPrevious, onNext: onNext, onAllStoriesEnd: handleNext, progressContainerStyles: progressContainerStyles(platform, stories.length), progressWrapperStyles: progressWrapperStyles, progressStyles: progressStyles }, activeGroupStories.id), isShowCloseIconInsideStory && closeIcon] })), !isShowCloseIconInsideStory && closeIcon] })));
294
- };
295
- export default StoriesComponent;
296
- //# sourceMappingURL=Stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Stories.js","sourceRoot":"","sources":["../../../../src/сomponents/Stories/Stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,8BAA8B;AAC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AW,CAAE,IAAI,MAAK,UAAU,CAAC,KAAK;oBACjE,iCAAiC,EAAE,gBAAgB;oBACnD,gCAAgC,EAAE,eAAe;iBAClD,CAAC,IACE,iBAAiB,eAErB,KAAC,OAAO,IAEN,eAAe,EAAE,IAAI,EACrB,KAAK,EAAC,MAAM,EACZ,MAAM,EAAC,MAAM,EACb,OAAO,EAAE,eAAe,EAAE,EAC1B,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,UAAU,EACtB,MAAM,EAAE,MAAM,EACd,eAAe,EAAE,UAAU,EAC3B,uBAAuB,EAAE,uBAAuB,CAAC,QAAQ,EAAE,OAAO,CAAC,MAAM,CAAC,EAC1E,qBAAqB,EAAE,qBAAqB,EAC5C,cAAc,EAAE,cAAc,IAXzB,kBAAkB,CAAC,EAAE,CAY1B,EACD,0BAA0B,IAAI,SAAS,KACpC,EACL,CAAC,0BAA0B,IAAI,SAAS,KACnC,CACT,CAAA;AACH,CAAC,CAAA;AAED,eAAe,gBAAgB,CAAA"}
@@ -1,2 +0,0 @@
1
- export { default } from './Stories';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/Stories/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA"}
@@ -1,11 +0,0 @@
1
- export var STORY_BACKGROUND_TYPES;
2
- (function (STORY_BACKGROUND_TYPES) {
3
- STORY_BACKGROUND_TYPES["color"] = "color";
4
- STORY_BACKGROUND_TYPES["image"] = "image";
5
- })(STORY_BACKGROUND_TYPES || (STORY_BACKGROUND_TYPES = {}));
6
- export var STORY_TYPE;
7
- (function (STORY_TYPE) {
8
- STORY_TYPE["image"] = "image";
9
- STORY_TYPE["video"] = "video";
10
- })(STORY_TYPE || (STORY_TYPE = {}));
11
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/Stories/types.ts"],"names":[],"mappings":"AAGA,MAAM,CAAN,IAAY,sBAGX;AAHD,WAAY,sBAAsB;IAChC,yCAAe,CAAA;IACf,yCAAe,CAAA;AACjB,CAAC,EAHW,sBAAsB,KAAtB,sBAAsB,QAGjC;AAED,MAAM,CAAN,IAAY,UAGX;AAHD,WAAY,UAAU;IACpB,6BAAe,CAAA;IACf,6BAAe,CAAA;AACjB,CAAC,EAHW,UAAU,KAAV,UAAU,QAGrB"}
@@ -1,34 +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 } from "react/jsx-runtime";
13
- import Slider from 'react-slick';
14
- import { NavLink } from 'react-router-dom';
15
- import '../../styles/styles.scss';
16
- var Switcher = function (_a) {
17
- var pages = _a.pages;
18
- var sliderSettings = {
19
- variableWidth: true,
20
- dots: false,
21
- centerPadding: '60px',
22
- swipeToSlide: true,
23
- slidesToShow: 3,
24
- arrows: false,
25
- infinite: false,
26
- speed: 300,
27
- };
28
- return (_jsx("div", __assign({ className: "smartapp-switcher" }, { children: _jsx(Slider, __assign({}, sliderSettings, { children: pages.map(function (page) { return (_jsx(NavLink, __assign({ className: function (_a) {
29
- var isActive = _a.isActive;
30
- return isActive ? ' smartapp-switcher__instance smartapp-switcher__instance--active' : 'smartapp-switcher__instance';
31
- }, to: page.route }, { children: page.title }), page.route)); }) })) })));
32
- };
33
- export default Switcher;
34
- //# sourceMappingURL=Switcher.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Switcher.js","sourceRoot":"","sources":["../../../../src/сomponents/Switcher/Switcher.tsx"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,MAAM,MAAM,aAAa,CAAA;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAE1C,OAAO,0BAA0B,CAAA;AAEjC,IAAM,QAAQ,GAAG,UAAC,EAAyB;QAAvB,KAAK,WAAA;IACvB,IAAM,cAAc,GAAG;QACrB,aAAa,EAAE,IAAI;QACnB,IAAI,EAAE,KAAK;QACX,aAAa,EAAE,MAAM;QACrB,YAAY,EAAE,IAAI;QAClB,YAAY,EAAE,CAAC;QACf,MAAM,EAAE,KAAK;QACb,QAAQ,EAAE,KAAK;QACf,KAAK,EAAE,GAAG;KACX,CAAA;IAED,OAAO,CACL,uBAAK,SAAS,EAAC,mBAAmB,gBAChC,KAAC,MAAM,eAAK,cAAc,cACvB,KAAK,CAAC,GAAG,CAAC,UAAC,IAAI,IAAK,OAAA,CACnB,KAAC,OAAO,aAEN,SAAS,EAAE,UAAC,EAAY;wBAAV,QAAQ,cAAA;oBACpB,OAAA,QAAQ,CAAC,CAAC,CAAC,kEAAkE,CAAC,CAAC,CAAC,6BAA6B;gBAA7G,CAA6G,EAE/G,EAAE,EAAE,IAAI,CAAC,KAAK,gBAEb,IAAI,CAAC,KAAK,KANN,IAAI,CAAC,KAAK,CAOP,CACX,EAVoB,CAUpB,CAAC,IACK,IACL,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,QAAQ,CAAA"}
@@ -1,2 +0,0 @@
1
- export { default } from './Switcher';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/Switcher/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/Switcher/types.ts"],"names":[],"mappings":""}