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

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 (541) hide show
  1. package/build/main/assets/icons/accepted-invite-status.svg +4 -0
  2. package/build/main/assets/icons/arrow-back.svg +3 -0
  3. package/build/main/assets/icons/arrow-down.svg +3 -0
  4. package/build/main/assets/icons/arrow-up.svg +3 -0
  5. package/build/main/assets/icons/attachment-loader.svg +3 -0
  6. package/build/main/assets/icons/avatar-loader.svg +3 -0
  7. package/build/main/assets/icons/button-loader.svg +3 -0
  8. package/build/main/assets/icons/calendar-arrow-next.svg +3 -0
  9. package/build/main/assets/icons/calendar-arrow-prev.svg +3 -0
  10. package/build/main/assets/icons/check-mark-square.svg +4 -0
  11. package/build/main/assets/icons/check-mark.svg +4 -0
  12. package/build/main/assets/icons/chevron.svg +3 -0
  13. package/build/main/assets/icons/chip-info.svg +5 -0
  14. package/build/main/assets/icons/clear.svg +3 -0
  15. package/build/main/assets/icons/close-modal.svg +3 -0
  16. package/build/main/assets/icons/close-stories.svg +4 -0
  17. package/build/main/assets/icons/close.svg +3 -0
  18. package/build/main/assets/icons/contact-info.svg +5 -0
  19. package/build/main/assets/icons/copy.svg +3 -0
  20. package/build/main/assets/icons/corporate-user.svg +3 -0
  21. package/build/main/assets/icons/crown.svg +5 -0
  22. package/build/main/assets/icons/declined-invite-status.svg +4 -0
  23. package/build/main/assets/icons/delete-chip.svg +3 -0
  24. package/build/main/assets/icons/department.svg +3 -0
  25. package/build/main/assets/icons/distribution.svg +12 -0
  26. package/build/main/assets/icons/doc-small.svg +11 -0
  27. package/build/main/assets/icons/doc.svg +11 -0
  28. package/build/main/assets/icons/download.svg +3 -0
  29. package/build/main/assets/icons/error.svg +5 -0
  30. package/build/main/assets/icons/external-link.svg +3 -0
  31. package/build/main/assets/icons/eye-off.svg +5 -0
  32. package/build/main/assets/icons/eye-on.svg +4 -0
  33. package/build/main/assets/icons/file-small.svg +11 -0
  34. package/build/main/assets/icons/file.svg +11 -0
  35. package/build/main/assets/icons/global-address-book-user.svg +4 -0
  36. package/build/main/assets/icons/group.svg +3 -0
  37. package/build/main/assets/icons/image-no-preview-small.svg +11 -0
  38. package/build/main/assets/icons/image-no-preview.svg +11 -0
  39. package/build/main/assets/icons/indeterminate-check-mark-square.svg +4 -0
  40. package/build/main/assets/icons/info.svg +5 -0
  41. package/build/main/assets/icons/input-arrow-down.svg +3 -0
  42. package/build/main/assets/icons/input-arrow-up.svg +3 -0
  43. package/build/main/assets/icons/job-position.svg +3 -0
  44. package/build/main/assets/icons/loader.svg +3 -0
  45. package/build/main/assets/icons/logout.svg +4 -0
  46. package/build/main/assets/icons/magnifying-glass.svg +3 -0
  47. package/build/main/assets/icons/mail.svg +3 -0
  48. package/build/main/assets/icons/meeting-room.svg +3 -0
  49. package/build/main/assets/icons/more.svg +3 -0
  50. package/build/main/assets/icons/my-contacts-user.svg +3 -0
  51. package/build/main/assets/icons/needs-action-invite-status.svg +4 -0
  52. package/build/main/assets/icons/notification-close.svg +3 -0
  53. package/build/main/assets/icons/notification-error.svg +5 -0
  54. package/build/main/assets/icons/notification-failure-filled.svg +3 -0
  55. package/build/main/assets/icons/notification-failure.svg +3 -0
  56. package/build/main/assets/icons/notification-info-filled.svg +5 -0
  57. package/build/main/assets/icons/notification-info.svg +5 -0
  58. package/build/main/assets/icons/notification-success-filled.svg +4 -0
  59. package/build/main/assets/icons/notification-success.svg +4 -0
  60. package/build/main/assets/icons/office.svg +3 -0
  61. package/build/main/assets/icons/order.svg +6 -0
  62. package/build/main/assets/icons/pdf-small.svg +11 -0
  63. package/build/main/assets/icons/pdf.svg +11 -0
  64. package/build/main/assets/icons/play-small.svg +3 -0
  65. package/build/main/assets/icons/play.svg +3 -0
  66. package/build/main/assets/icons/plus.svg +4 -0
  67. package/build/main/assets/icons/ppt-small.svg +11 -0
  68. package/build/main/assets/icons/ppt.svg +11 -0
  69. package/build/main/assets/icons/private.svg +5 -0
  70. package/build/main/assets/icons/refresh.svg +3 -0
  71. package/build/main/assets/icons/remove.svg +3 -0
  72. package/build/main/assets/icons/search.svg +3 -0
  73. package/build/main/assets/icons/select-arrow-down.svg +3 -0
  74. package/build/main/assets/icons/select-arrow-up.svg +3 -0
  75. package/build/main/assets/icons/server.svg +3 -0
  76. package/build/main/assets/icons/story-loader.svg +3 -0
  77. package/build/main/assets/icons/tick.svg +10 -0
  78. package/build/main/assets/icons/trash.svg +3 -0
  79. package/build/main/assets/icons/txt-small.svg +11 -0
  80. package/build/main/assets/icons/txt.svg +11 -0
  81. package/build/main/assets/icons/video-no-preview-small.svg +11 -0
  82. package/build/main/assets/icons/video-no-preview.svg +11 -0
  83. package/build/main/assets/icons/warning-avatar.svg +4 -0
  84. package/build/main/assets/icons/xls-small.svg +11 -0
  85. package/build/main/assets/icons/xls.svg +11 -0
  86. package/build/main/assets/storybook/index.d.ts +27 -0
  87. package/build/main/assets/storybook/index.js +28 -0
  88. package/build/main/assets/storybook/index.js.map +1 -0
  89. package/build/main/constants/constants.d.ts +245 -0
  90. package/build/main/constants/constants.js +303 -0
  91. package/build/main/constants/constants.js.map +1 -0
  92. package/build/main/constants/index.d.ts +2 -0
  93. package/build/main/constants/index.js +3 -0
  94. package/build/main/constants/index.js.map +1 -0
  95. package/build/main/constants/types.d.ts +69 -0
  96. package/build/main/constants/types.js +2 -0
  97. package/build/main/constants/types.js.map +1 -0
  98. package/build/main/helpers/fontScale.d.ts +3 -0
  99. package/build/main/helpers/fontScale.js +17 -0
  100. package/build/main/helpers/fontScale.js.map +1 -0
  101. package/build/main/helpers/index.d.ts +34 -0
  102. package/build/main/helpers/index.js +205 -0
  103. package/build/main/helpers/index.js.map +1 -0
  104. package/build/main/hooks/useCharHintDisplay.d.ts +10 -0
  105. package/build/main/hooks/useCharHintDisplay.js +57 -0
  106. package/build/main/hooks/useCharHintDisplay.js.map +1 -0
  107. package/build/main/hooks/useFontScale.d.ts +1 -0
  108. package/build/main/hooks/useFontScale.js +19 -0
  109. package/build/main/hooks/useFontScale.js.map +1 -0
  110. package/build/main/hooks/useMobileLongTap.d.ts +16 -0
  111. package/build/main/hooks/useMobileLongTap.js +65 -0
  112. package/build/main/hooks/useMobileLongTap.js.map +1 -0
  113. package/build/main/hooks/useModal.d.ts +30 -0
  114. package/build/main/hooks/useModal.js +275 -0
  115. package/build/main/hooks/useModal.js.map +1 -0
  116. package/build/main/index.d.ts +40 -0
  117. package/build/main/index.js +41 -0
  118. package/build/main/index.js.map +1 -0
  119. package/build/main/styles/index.d.ts +1 -0
  120. package/build/main/styles/index.js +2 -0
  121. package/build/main/styles/index.js.map +1 -0
  122. package/build/main/styles/main.js +0 -0
  123. package/build/main/styles/styles.scss +14 -0
  124. package/build/main//321/201omponents/ActionModal/ActionModal.d.ts +4 -0
  125. package/build/main//321/201omponents/ActionModal/ActionModal.js +53 -0
  126. package/build/main//321/201omponents/ActionModal/ActionModal.js.map +1 -0
  127. package/build/main//321/201omponents/ActionModal/index.d.ts +1 -0
  128. package/build/main//321/201omponents/ActionModal/index.js +2 -0
  129. package/build/main//321/201omponents/ActionModal/index.js.map +1 -0
  130. package/build/main//321/201omponents/ActionModal/types.d.ts +23 -0
  131. package/build/main//321/201omponents/ActionModal/types.js +2 -0
  132. package/build/main//321/201omponents/ActionModal/types.js.map +1 -0
  133. package/build/main//321/201omponents/AttachedFile/AttachedFile.d.ts +8 -0
  134. package/build/main//321/201omponents/AttachedFile/AttachedFile.js +201 -0
  135. package/build/main//321/201omponents/AttachedFile/AttachedFile.js.map +1 -0
  136. package/build/main//321/201omponents/AttachedFile/index.d.ts +1 -0
  137. package/build/main//321/201omponents/AttachedFile/index.js +2 -0
  138. package/build/main//321/201omponents/AttachedFile/index.js.map +1 -0
  139. package/build/main//321/201omponents/AttachedFile/types.d.ts +23 -0
  140. package/build/main//321/201omponents/AttachedFile/types.js +2 -0
  141. package/build/main//321/201omponents/AttachedFile/types.js.map +1 -0
  142. package/build/main//321/201omponents/Avatar/Avatar.d.ts +5 -0
  143. package/build/main//321/201omponents/Avatar/Avatar.js +257 -0
  144. package/build/main//321/201omponents/Avatar/Avatar.js.map +1 -0
  145. package/build/main//321/201omponents/Avatar/index.d.ts +1 -0
  146. package/build/main//321/201omponents/Avatar/index.js +2 -0
  147. package/build/main//321/201omponents/Avatar/index.js.map +1 -0
  148. package/build/main//321/201omponents/Avatar/types.d.ts +64 -0
  149. package/build/main//321/201omponents/Avatar/types.js +32 -0
  150. package/build/main//321/201omponents/Avatar/types.js.map +1 -0
  151. package/build/main//321/201omponents/Button/Button.d.ts +4 -0
  152. package/build/main//321/201omponents/Button/Button.js +68 -0
  153. package/build/main//321/201omponents/Button/Button.js.map +1 -0
  154. package/build/main//321/201omponents/Button/index.d.ts +1 -0
  155. package/build/main//321/201omponents/Button/index.js +2 -0
  156. package/build/main//321/201omponents/Button/index.js.map +1 -0
  157. package/build/main//321/201omponents/Button/types.d.ts +31 -0
  158. package/build/main//321/201omponents/Button/types.js +15 -0
  159. package/build/main//321/201omponents/Button/types.js.map +1 -0
  160. package/build/main//321/201omponents/CachedImage/CachedImage.d.ts +4 -0
  161. package/build/main//321/201omponents/CachedImage/CachedImage.js +59 -0
  162. package/build/main//321/201omponents/CachedImage/CachedImage.js.map +1 -0
  163. package/build/main//321/201omponents/CachedImage/helpers.d.ts +3 -0
  164. package/build/main//321/201omponents/CachedImage/helpers.js +40 -0
  165. package/build/main//321/201omponents/CachedImage/helpers.js.map +1 -0
  166. package/build/main//321/201omponents/CachedImage/index.d.ts +1 -0
  167. package/build/main//321/201omponents/CachedImage/index.js +2 -0
  168. package/build/main//321/201omponents/CachedImage/index.js.map +1 -0
  169. package/build/main//321/201omponents/CachedImage/types.d.ts +10 -0
  170. package/build/main//321/201omponents/CachedImage/types.js +2 -0
  171. package/build/main//321/201omponents/CachedImage/types.js.map +1 -0
  172. package/build/main//321/201omponents/Calendar/Calendar.d.ts +16 -0
  173. package/build/main//321/201omponents/Calendar/Calendar.js +294 -0
  174. package/build/main//321/201omponents/Calendar/Calendar.js.map +1 -0
  175. package/build/main//321/201omponents/Calendar/index.d.ts +1 -0
  176. package/build/main//321/201omponents/Calendar/index.js +2 -0
  177. package/build/main//321/201omponents/Calendar/index.js.map +1 -0
  178. package/build/main//321/201omponents/Calendar/types.d.ts +28 -0
  179. package/build/main//321/201omponents/Calendar/types.js +2 -0
  180. package/build/main//321/201omponents/Calendar/types.js.map +1 -0
  181. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.d.ts +4 -0
  182. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js +49 -0
  183. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js.map +1 -0
  184. package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.d.ts +4 -0
  185. package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.js +71 -0
  186. package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.js.map +1 -0
  187. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.d.ts +4 -0
  188. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js +45 -0
  189. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js.map +1 -0
  190. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.d.ts +4 -0
  191. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js +66 -0
  192. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js.map +1 -0
  193. package/build/main//321/201omponents/Charts/colors.d.ts +3 -0
  194. package/build/main//321/201omponents/Charts/colors.js +4 -0
  195. package/build/main//321/201omponents/Charts/colors.js.map +1 -0
  196. package/build/main//321/201omponents/Charts/constants.d.ts +42 -0
  197. package/build/main//321/201omponents/Charts/constants.js +43 -0
  198. package/build/main//321/201omponents/Charts/constants.js.map +1 -0
  199. package/build/main//321/201omponents/Charts/helpers.d.ts +17 -0
  200. package/build/main//321/201omponents/Charts/helpers.js +74 -0
  201. package/build/main//321/201omponents/Charts/helpers.js.map +1 -0
  202. package/build/main//321/201omponents/Charts/index.d.ts +3 -0
  203. package/build/main//321/201omponents/Charts/index.js +4 -0
  204. package/build/main//321/201omponents/Charts/index.js.map +1 -0
  205. package/build/main//321/201omponents/Charts/types.d.ts +89 -0
  206. package/build/main//321/201omponents/Charts/types.js +2 -0
  207. package/build/main//321/201omponents/Charts/types.js.map +1 -0
  208. package/build/main//321/201omponents/Charts/useEvents.d.ts +5 -0
  209. package/build/main//321/201omponents/Charts/useEvents.js +45 -0
  210. package/build/main//321/201omponents/Charts/useEvents.js.map +1 -0
  211. package/build/main//321/201omponents/Charts/usePieEvents.d.ts +6 -0
  212. package/build/main//321/201omponents/Charts/usePieEvents.js +57 -0
  213. package/build/main//321/201omponents/Charts/usePieEvents.js.map +1 -0
  214. package/build/main//321/201omponents/Checkbox/Checkbox.d.ts +8 -0
  215. package/build/main//321/201omponents/Checkbox/Checkbox.js +48 -0
  216. package/build/main//321/201omponents/Checkbox/Checkbox.js.map +1 -0
  217. package/build/main//321/201omponents/Checkbox/index.d.ts +1 -0
  218. package/build/main//321/201omponents/Checkbox/index.js +2 -0
  219. package/build/main//321/201omponents/Checkbox/index.js.map +1 -0
  220. package/build/main//321/201omponents/Checkbox/types.d.ts +14 -0
  221. package/build/main//321/201omponents/Checkbox/types.js +2 -0
  222. package/build/main//321/201omponents/Checkbox/types.js.map +1 -0
  223. package/build/main//321/201omponents/Chip/Chip.d.ts +5 -0
  224. package/build/main//321/201omponents/Chip/Chip.js +288 -0
  225. package/build/main//321/201omponents/Chip/Chip.js.map +1 -0
  226. package/build/main//321/201omponents/Chip/index.d.ts +1 -0
  227. package/build/main//321/201omponents/Chip/index.js +2 -0
  228. package/build/main//321/201omponents/Chip/index.js.map +1 -0
  229. package/build/main//321/201omponents/Chip/types.d.ts +39 -0
  230. package/build/main//321/201omponents/Chip/types.js +2 -0
  231. package/build/main//321/201omponents/Chip/types.js.map +1 -0
  232. package/build/main//321/201omponents/ChipDndContext/ChipDndContext.d.ts +13 -0
  233. package/build/main//321/201omponents/ChipDndContext/ChipDndContext.js +76 -0
  234. package/build/main//321/201omponents/ChipDndContext/ChipDndContext.js.map +1 -0
  235. package/build/main//321/201omponents/ChipDndContext/index.d.ts +1 -0
  236. package/build/main//321/201omponents/ChipDndContext/index.js +2 -0
  237. package/build/main//321/201omponents/ChipDndContext/index.js.map +1 -0
  238. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.d.ts +4 -0
  239. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js +64 -0
  240. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js.map +1 -0
  241. package/build/main//321/201omponents/ConfirmationModal/index.d.ts +1 -0
  242. package/build/main//321/201omponents/ConfirmationModal/index.js +2 -0
  243. package/build/main//321/201omponents/ConfirmationModal/index.js.map +1 -0
  244. package/build/main//321/201omponents/ConfirmationModal/types.d.ts +31 -0
  245. package/build/main//321/201omponents/ConfirmationModal/types.js +2 -0
  246. package/build/main//321/201omponents/ConfirmationModal/types.js.map +1 -0
  247. package/build/main//321/201omponents/ContextMenu/ContextMenu.d.ts +4 -0
  248. package/build/main//321/201omponents/ContextMenu/ContextMenu.js +122 -0
  249. package/build/main//321/201omponents/ContextMenu/ContextMenu.js.map +1 -0
  250. package/build/main//321/201omponents/ContextMenu/index.d.ts +1 -0
  251. package/build/main//321/201omponents/ContextMenu/index.js +2 -0
  252. package/build/main//321/201omponents/ContextMenu/index.js.map +1 -0
  253. package/build/main//321/201omponents/ContextMenu/types.d.ts +41 -0
  254. package/build/main//321/201omponents/ContextMenu/types.js +2 -0
  255. package/build/main//321/201omponents/ContextMenu/types.js.map +1 -0
  256. package/build/main//321/201omponents/ContextMenuItem/ContextMenuItem.d.ts +4 -0
  257. package/build/main//321/201omponents/ContextMenuItem/ContextMenuItem.js +49 -0
  258. package/build/main//321/201omponents/ContextMenuItem/ContextMenuItem.js.map +1 -0
  259. package/build/main//321/201omponents/ContextMenuItem/index.d.ts +1 -0
  260. package/build/main//321/201omponents/ContextMenuItem/index.js +2 -0
  261. package/build/main//321/201omponents/ContextMenuItem/index.js.map +1 -0
  262. package/build/main//321/201omponents/ContextMenuItem/types.d.ts +28 -0
  263. package/build/main//321/201omponents/ContextMenuItem/types.js +6 -0
  264. package/build/main//321/201omponents/ContextMenuItem/types.js.map +1 -0
  265. package/build/main//321/201omponents/CustomSelect/CustomSelect.d.ts +12 -0
  266. package/build/main//321/201omponents/CustomSelect/CustomSelect.js +281 -0
  267. package/build/main//321/201omponents/CustomSelect/CustomSelect.js.map +1 -0
  268. package/build/main//321/201omponents/CustomSelect/index.d.ts +1 -0
  269. package/build/main//321/201omponents/CustomSelect/index.js +2 -0
  270. package/build/main//321/201omponents/CustomSelect/index.js.map +1 -0
  271. package/build/main//321/201omponents/CustomSelect/selectStyles.d.ts +16 -0
  272. package/build/main//321/201omponents/CustomSelect/selectStyles.js +78 -0
  273. package/build/main//321/201omponents/CustomSelect/selectStyles.js.map +1 -0
  274. package/build/main//321/201omponents/CustomSelect/types.d.ts +86 -0
  275. package/build/main//321/201omponents/CustomSelect/types.js +2 -0
  276. package/build/main//321/201omponents/CustomSelect/types.js.map +1 -0
  277. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.d.ts +4 -0
  278. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js +67 -0
  279. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js.map +1 -0
  280. package/build/main//321/201omponents/CustomSelectProfiles/index.d.ts +1 -0
  281. package/build/main//321/201omponents/CustomSelectProfiles/index.js +2 -0
  282. package/build/main//321/201omponents/CustomSelectProfiles/index.js.map +1 -0
  283. package/build/main//321/201omponents/CustomSelectProfiles/selectStyles.d.ts +12 -0
  284. package/build/main//321/201omponents/CustomSelectProfiles/selectStyles.js +42 -0
  285. package/build/main//321/201omponents/CustomSelectProfiles/selectStyles.js.map +1 -0
  286. package/build/main//321/201omponents/CustomSelectProfiles/types.d.ts +13 -0
  287. package/build/main//321/201omponents/CustomSelectProfiles/types.js +2 -0
  288. package/build/main//321/201omponents/CustomSelectProfiles/types.js.map +1 -0
  289. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.d.ts +4 -0
  290. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js +57 -0
  291. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js.map +1 -0
  292. package/build/main//321/201omponents/DragAndDrop/index.d.ts +1 -0
  293. package/build/main//321/201omponents/DragAndDrop/index.js +2 -0
  294. package/build/main//321/201omponents/DragAndDrop/index.js.map +1 -0
  295. package/build/main//321/201omponents/DragAndDrop/types.d.ts +24 -0
  296. package/build/main//321/201omponents/DragAndDrop/types.js +2 -0
  297. package/build/main//321/201omponents/DragAndDrop/types.js.map +1 -0
  298. package/build/main//321/201omponents/DraggablePopup/DraggablePopup.d.ts +4 -0
  299. package/build/main//321/201omponents/DraggablePopup/DraggablePopup.js +228 -0
  300. package/build/main//321/201omponents/DraggablePopup/DraggablePopup.js.map +1 -0
  301. package/build/main//321/201omponents/DraggablePopup/index.d.ts +1 -0
  302. package/build/main//321/201omponents/DraggablePopup/index.js +2 -0
  303. package/build/main//321/201omponents/DraggablePopup/index.js.map +1 -0
  304. package/build/main//321/201omponents/DraggablePopup/types.d.ts +90 -0
  305. package/build/main//321/201omponents/DraggablePopup/types.js +2 -0
  306. package/build/main//321/201omponents/DraggablePopup/types.js.map +1 -0
  307. package/build/main//321/201omponents/Error/Error.d.ts +4 -0
  308. package/build/main//321/201omponents/Error/Error.js +23 -0
  309. package/build/main//321/201omponents/Error/Error.js.map +1 -0
  310. package/build/main//321/201omponents/Error/index.d.ts +1 -0
  311. package/build/main//321/201omponents/Error/index.js +2 -0
  312. package/build/main//321/201omponents/Error/index.js.map +1 -0
  313. package/build/main//321/201omponents/Error/types.d.ts +10 -0
  314. package/build/main//321/201omponents/Error/types.js +2 -0
  315. package/build/main//321/201omponents/Error/types.js.map +1 -0
  316. package/build/main//321/201omponents/Flex/Flex.d.ts +2 -0
  317. package/build/main//321/201omponents/Flex/Flex.js +35 -0
  318. package/build/main//321/201omponents/Flex/Flex.js.map +1 -0
  319. package/build/main//321/201omponents/Flex/HFlex/HFlex.d.ts +5 -0
  320. package/build/main//321/201omponents/Flex/HFlex/HFlex.js +16 -0
  321. package/build/main//321/201omponents/Flex/HFlex/HFlex.js.map +1 -0
  322. package/build/main//321/201omponents/Flex/HFlex/index.d.ts +1 -0
  323. package/build/main//321/201omponents/Flex/HFlex/index.js +2 -0
  324. package/build/main//321/201omponents/Flex/HFlex/index.js.map +1 -0
  325. package/build/main//321/201omponents/Flex/VFlex/VFlex.d.ts +5 -0
  326. package/build/main//321/201omponents/Flex/VFlex/VFlex.js +16 -0
  327. package/build/main//321/201omponents/Flex/VFlex/VFlex.js.map +1 -0
  328. package/build/main//321/201omponents/Flex/VFlex/index.d.ts +1 -0
  329. package/build/main//321/201omponents/Flex/VFlex/index.js +2 -0
  330. package/build/main//321/201omponents/Flex/VFlex/index.js.map +1 -0
  331. package/build/main//321/201omponents/Flex/index.d.ts +3 -0
  332. package/build/main//321/201omponents/Flex/index.js +4 -0
  333. package/build/main//321/201omponents/Flex/index.js.map +1 -0
  334. package/build/main//321/201omponents/Flex/types.d.ts +21 -0
  335. package/build/main//321/201omponents/Flex/types.js +2 -0
  336. package/build/main//321/201omponents/Flex/types.js.map +1 -0
  337. package/build/main//321/201omponents/Header/Header.d.ts +5 -0
  338. package/build/main//321/201omponents/Header/Header.js +125 -0
  339. package/build/main//321/201omponents/Header/Header.js.map +1 -0
  340. package/build/main//321/201omponents/Header/index.d.ts +1 -0
  341. package/build/main//321/201omponents/Header/index.js +2 -0
  342. package/build/main//321/201omponents/Header/index.js.map +1 -0
  343. package/build/main//321/201omponents/Header/types.d.ts +47 -0
  344. package/build/main//321/201omponents/Header/types.js +2 -0
  345. package/build/main//321/201omponents/Header/types.js.map +1 -0
  346. package/build/main//321/201omponents/Input/Input.d.ts +4 -0
  347. package/build/main//321/201omponents/Input/Input.js +256 -0
  348. package/build/main//321/201omponents/Input/Input.js.map +1 -0
  349. package/build/main//321/201omponents/Input/index.d.ts +1 -0
  350. package/build/main//321/201omponents/Input/index.js +2 -0
  351. package/build/main//321/201omponents/Input/index.js.map +1 -0
  352. package/build/main//321/201omponents/Input/types.d.ts +37 -0
  353. package/build/main//321/201omponents/Input/types.js +2 -0
  354. package/build/main//321/201omponents/Input/types.js.map +1 -0
  355. package/build/main//321/201omponents/ListItem/ListItem.d.ts +23 -0
  356. package/build/main//321/201omponents/ListItem/ListItem.js +214 -0
  357. package/build/main//321/201omponents/ListItem/ListItem.js.map +1 -0
  358. package/build/main//321/201omponents/ListItem/index.d.ts +1 -0
  359. package/build/main//321/201omponents/ListItem/index.js +2 -0
  360. package/build/main//321/201omponents/ListItem/index.js.map +1 -0
  361. package/build/main//321/201omponents/ListItem/types.d.ts +47 -0
  362. package/build/main//321/201omponents/ListItem/types.js +2 -0
  363. package/build/main//321/201omponents/ListItem/types.js.map +1 -0
  364. package/build/main//321/201omponents/Loader/Loader.d.ts +4 -0
  365. package/build/main//321/201omponents/Loader/Loader.js +44 -0
  366. package/build/main//321/201omponents/Loader/Loader.js.map +1 -0
  367. package/build/main//321/201omponents/Loader/index.d.ts +1 -0
  368. package/build/main//321/201omponents/Loader/index.js +2 -0
  369. package/build/main//321/201omponents/Loader/index.js.map +1 -0
  370. package/build/main//321/201omponents/Loader/types.d.ts +18 -0
  371. package/build/main//321/201omponents/Loader/types.js +2 -0
  372. package/build/main//321/201omponents/Loader/types.js.map +1 -0
  373. package/build/main//321/201omponents/Modal/Modal.d.ts +5 -0
  374. package/build/main//321/201omponents/Modal/Modal.js +397 -0
  375. package/build/main//321/201omponents/Modal/Modal.js.map +1 -0
  376. package/build/main//321/201omponents/Modal/index.d.ts +1 -0
  377. package/build/main//321/201omponents/Modal/index.js +2 -0
  378. package/build/main//321/201omponents/Modal/index.js.map +1 -0
  379. package/build/main//321/201omponents/Modal/types.d.ts +77 -0
  380. package/build/main//321/201omponents/Modal/types.js +2 -0
  381. package/build/main//321/201omponents/Modal/types.js.map +1 -0
  382. package/build/main//321/201omponents/Notification/Notification.d.ts +4 -0
  383. package/build/main//321/201omponents/Notification/Notification.js +208 -0
  384. package/build/main//321/201omponents/Notification/Notification.js.map +1 -0
  385. package/build/main//321/201omponents/Notification/constants.d.ts +34 -0
  386. package/build/main//321/201omponents/Notification/constants.js +59 -0
  387. package/build/main//321/201omponents/Notification/constants.js.map +1 -0
  388. package/build/main//321/201omponents/Notification/index.d.ts +1 -0
  389. package/build/main//321/201omponents/Notification/index.js +2 -0
  390. package/build/main//321/201omponents/Notification/index.js.map +1 -0
  391. package/build/main//321/201omponents/Notification/types.d.ts +64 -0
  392. package/build/main//321/201omponents/Notification/types.js +2 -0
  393. package/build/main//321/201omponents/Notification/types.js.map +1 -0
  394. package/build/main//321/201omponents/Profile/Profile.d.ts +4 -0
  395. package/build/main//321/201omponents/Profile/Profile.js +42 -0
  396. package/build/main//321/201omponents/Profile/Profile.js.map +1 -0
  397. package/build/main//321/201omponents/Profile/index.d.ts +1 -0
  398. package/build/main//321/201omponents/Profile/index.js +2 -0
  399. package/build/main//321/201omponents/Profile/index.js.map +1 -0
  400. package/build/main//321/201omponents/Profile/types.d.ts +14 -0
  401. package/build/main//321/201omponents/Profile/types.js +2 -0
  402. package/build/main//321/201omponents/Profile/types.js.map +1 -0
  403. package/build/main//321/201omponents/ProgressBar/ProgressBar.d.ts +4 -0
  404. package/build/main//321/201omponents/ProgressBar/ProgressBar.js +66 -0
  405. package/build/main//321/201omponents/ProgressBar/ProgressBar.js.map +1 -0
  406. package/build/main//321/201omponents/ProgressBar/index.d.ts +1 -0
  407. package/build/main//321/201omponents/ProgressBar/index.js +2 -0
  408. package/build/main//321/201omponents/ProgressBar/index.js.map +1 -0
  409. package/build/main//321/201omponents/ProgressBar/types.d.ts +7 -0
  410. package/build/main//321/201omponents/ProgressBar/types.js +2 -0
  411. package/build/main//321/201omponents/ProgressBar/types.js.map +1 -0
  412. package/build/main//321/201omponents/RadioButton/RadioButton.d.ts +4 -0
  413. package/build/main//321/201omponents/RadioButton/RadioButton.js +33 -0
  414. package/build/main//321/201omponents/RadioButton/RadioButton.js.map +1 -0
  415. package/build/main//321/201omponents/RadioButton/index.d.ts +1 -0
  416. package/build/main//321/201omponents/RadioButton/index.js +2 -0
  417. package/build/main//321/201omponents/RadioButton/index.js.map +1 -0
  418. package/build/main//321/201omponents/RadioButton/types.d.ts +12 -0
  419. package/build/main//321/201omponents/RadioButton/types.js +2 -0
  420. package/build/main//321/201omponents/RadioButton/types.js.map +1 -0
  421. package/build/main//321/201omponents/ScrollBar/ScrollBar.d.ts +5 -0
  422. package/build/main//321/201omponents/ScrollBar/ScrollBar.js +140 -0
  423. package/build/main//321/201omponents/ScrollBar/ScrollBar.js.map +1 -0
  424. package/build/main//321/201omponents/ScrollBar/index.d.ts +1 -0
  425. package/build/main//321/201omponents/ScrollBar/index.js +2 -0
  426. package/build/main//321/201omponents/ScrollBar/index.js.map +1 -0
  427. package/build/main//321/201omponents/ScrollBar/types.d.ts +24 -0
  428. package/build/main//321/201omponents/ScrollBar/types.js +2 -0
  429. package/build/main//321/201omponents/ScrollBar/types.js.map +1 -0
  430. package/build/main//321/201omponents/Skeleton/Skeleton.d.ts +4 -0
  431. package/build/main//321/201omponents/Skeleton/Skeleton.js +59 -0
  432. package/build/main//321/201omponents/Skeleton/Skeleton.js.map +1 -0
  433. package/build/main//321/201omponents/Skeleton/index.d.ts +1 -0
  434. package/build/main//321/201omponents/Skeleton/index.js +2 -0
  435. package/build/main//321/201omponents/Skeleton/index.js.map +1 -0
  436. package/build/main//321/201omponents/Skeleton/types.d.ts +17 -0
  437. package/build/main//321/201omponents/Skeleton/types.js +2 -0
  438. package/build/main//321/201omponents/Skeleton/types.js.map +1 -0
  439. package/build/main//321/201omponents/Stories/Stories.d.ts +4 -0
  440. package/build/main//321/201omponents/Stories/Stories.js +406 -0
  441. package/build/main//321/201omponents/Stories/Stories.js.map +1 -0
  442. package/build/main//321/201omponents/Stories/index.d.ts +1 -0
  443. package/build/main//321/201omponents/Stories/index.js +2 -0
  444. package/build/main//321/201omponents/Stories/index.js.map +1 -0
  445. package/build/main//321/201omponents/Stories/types.d.ts +71 -0
  446. package/build/main//321/201omponents/Stories/types.js +16 -0
  447. package/build/main//321/201omponents/Stories/types.js.map +1 -0
  448. package/build/main//321/201omponents/Switcher/Switcher.d.ts +4 -0
  449. package/build/main//321/201omponents/Switcher/Switcher.js +34 -0
  450. package/build/main//321/201omponents/Switcher/Switcher.js.map +1 -0
  451. package/build/main//321/201omponents/Switcher/index.d.ts +1 -0
  452. package/build/main//321/201omponents/Switcher/index.js +2 -0
  453. package/build/main//321/201omponents/Switcher/index.js.map +1 -0
  454. package/build/main//321/201omponents/Switcher/types.d.ts +8 -0
  455. package/build/main//321/201omponents/Switcher/types.js +2 -0
  456. package/build/main//321/201omponents/Switcher/types.js.map +1 -0
  457. package/build/main//321/201omponents/SyncLoader/SyncLoader.d.ts +5 -0
  458. package/build/main//321/201omponents/SyncLoader/SyncLoader.js +65 -0
  459. package/build/main//321/201omponents/SyncLoader/SyncLoader.js.map +1 -0
  460. package/build/main//321/201omponents/SyncLoader/index.d.ts +1 -0
  461. package/build/main//321/201omponents/SyncLoader/index.js +2 -0
  462. package/build/main//321/201omponents/SyncLoader/index.js.map +1 -0
  463. package/build/main//321/201omponents/SyncLoader/types.d.ts +8 -0
  464. package/build/main//321/201omponents/SyncLoader/types.js +2 -0
  465. package/build/main//321/201omponents/SyncLoader/types.js.map +1 -0
  466. package/build/main//321/201omponents/Textarea/Textarea.d.ts +4 -0
  467. package/build/main//321/201omponents/Textarea/Textarea.js +59 -0
  468. package/build/main//321/201omponents/Textarea/Textarea.js.map +1 -0
  469. package/build/main//321/201omponents/Textarea/index.d.ts +1 -0
  470. package/build/main//321/201omponents/Textarea/index.js +2 -0
  471. package/build/main//321/201omponents/Textarea/index.js.map +1 -0
  472. package/build/main//321/201omponents/Textarea/types.d.ts +13 -0
  473. package/build/main//321/201omponents/Textarea/types.js +2 -0
  474. package/build/main//321/201omponents/Textarea/types.js.map +1 -0
  475. package/build/main//321/201omponents/Toggle/Toggle.d.ts +4 -0
  476. package/build/main//321/201omponents/Toggle/Toggle.js +35 -0
  477. package/build/main//321/201omponents/Toggle/Toggle.js.map +1 -0
  478. package/build/main//321/201omponents/Toggle/index.d.ts +1 -0
  479. package/build/main//321/201omponents/Toggle/index.js +2 -0
  480. package/build/main//321/201omponents/Toggle/index.js.map +1 -0
  481. package/build/main//321/201omponents/Toggle/types.d.ts +12 -0
  482. package/build/main//321/201omponents/Toggle/types.js +2 -0
  483. package/build/main//321/201omponents/Toggle/types.js.map +1 -0
  484. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.d.ts +4 -0
  485. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js +40 -0
  486. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js.map +1 -0
  487. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.d.ts +4 -0
  488. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js +98 -0
  489. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js.map +1 -0
  490. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.d.ts +5 -0
  491. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js +24 -0
  492. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js.map +1 -0
  493. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.d.ts +4 -0
  494. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js +104 -0
  495. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js.map +1 -0
  496. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.d.ts +4 -0
  497. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js +133 -0
  498. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js.map +1 -0
  499. package/build/main//321/201omponents/UserDropdown/Option/Option.d.ts +4 -0
  500. package/build/main//321/201omponents/UserDropdown/Option/Option.js +85 -0
  501. package/build/main//321/201omponents/UserDropdown/Option/Option.js.map +1 -0
  502. package/build/main//321/201omponents/UserDropdown/SearchInCatalogButton/SearchInCatalogButton.d.ts +4 -0
  503. package/build/main//321/201omponents/UserDropdown/SearchInCatalogButton/SearchInCatalogButton.js +41 -0
  504. package/build/main//321/201omponents/UserDropdown/SearchInCatalogButton/SearchInCatalogButton.js.map +1 -0
  505. package/build/main//321/201omponents/UserDropdown/UserDropdown.d.ts +5 -0
  506. package/build/main//321/201omponents/UserDropdown/UserDropdown.js +527 -0
  507. package/build/main//321/201omponents/UserDropdown/UserDropdown.js.map +1 -0
  508. package/build/main//321/201omponents/UserDropdown/components/Delimiter.d.ts +8 -0
  509. package/build/main//321/201omponents/UserDropdown/components/Delimiter.js +10 -0
  510. package/build/main//321/201omponents/UserDropdown/components/Delimiter.js.map +1 -0
  511. package/build/main//321/201omponents/UserDropdown/components/Hint.d.ts +6 -0
  512. package/build/main//321/201omponents/UserDropdown/components/Hint.js +21 -0
  513. package/build/main//321/201omponents/UserDropdown/components/Hint.js.map +1 -0
  514. package/build/main//321/201omponents/UserDropdown/components/Input.d.ts +2 -0
  515. package/build/main//321/201omponents/UserDropdown/components/Input.js +24 -0
  516. package/build/main//321/201omponents/UserDropdown/components/Input.js.map +1 -0
  517. package/build/main//321/201omponents/UserDropdown/components/Mask.d.ts +8 -0
  518. package/build/main//321/201omponents/UserDropdown/components/Mask.js +19 -0
  519. package/build/main//321/201omponents/UserDropdown/components/Mask.js.map +1 -0
  520. package/build/main//321/201omponents/UserDropdown/components/Title.d.ts +5 -0
  521. package/build/main//321/201omponents/UserDropdown/components/Title.js +18 -0
  522. package/build/main//321/201omponents/UserDropdown/components/Title.js.map +1 -0
  523. package/build/main//321/201omponents/UserDropdown/constants.d.ts +65 -0
  524. package/build/main//321/201omponents/UserDropdown/constants.js +83 -0
  525. package/build/main//321/201omponents/UserDropdown/constants.js.map +1 -0
  526. package/build/main//321/201omponents/UserDropdown/helpers.d.ts +148 -0
  527. package/build/main//321/201omponents/UserDropdown/helpers.js +313 -0
  528. package/build/main//321/201omponents/UserDropdown/helpers.js.map +1 -0
  529. package/build/main//321/201omponents/UserDropdown/index.d.ts +1 -0
  530. package/build/main//321/201omponents/UserDropdown/index.js +2 -0
  531. package/build/main//321/201omponents/UserDropdown/index.js.map +1 -0
  532. package/build/main//321/201omponents/UserDropdown/selectStyles.d.ts +15 -0
  533. package/build/main//321/201omponents/UserDropdown/selectStyles.js +99 -0
  534. package/build/main//321/201omponents/UserDropdown/selectStyles.js.map +1 -0
  535. package/build/main//321/201omponents/UserDropdown/types.d.ts +356 -0
  536. package/build/main//321/201omponents/UserDropdown/types.js +2 -0
  537. package/build/main//321/201omponents/UserDropdown/types.js.map +1 -0
  538. package/build/main//321/201omponents/types.d.ts +2 -0
  539. package/build/main//321/201omponents/types.js +2 -0
  540. package/build/main//321/201omponents/types.js.map +1 -0
  541. package/package.json +13 -8
@@ -0,0 +1,406 @@
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 Stories from 'react-insta-stories';
17
+ import { useSwipeable } from 'react-swipeable';
18
+ import Popup from 'reactjs-popup';
19
+ import classNames from 'classnames';
20
+ import { isEmpty, isNull, sortBy } from 'lodash';
21
+ import { checkIsIosPlatform, checkIsWebPlatform, generateColor, generateFontFamilyStyle } from '../../helpers';
22
+ import { COLORS, NUMBER_OF_STORIES_FOR_ROUND_INDICATORS, PLATFORM } from '../../constants';
23
+ import { STORY_BACKGROUND_TYPES, STORY_TYPE, } from './types';
24
+ import { ReactComponent as CloseStoriesIcon } from '../../assets/icons/close-stories.svg';
25
+ import { ReactComponent as ExternalLinkIcon } from '../../assets/icons/external-link.svg';
26
+ import { ReactComponent as LoaderIcon } from '../../assets/icons/story-loader.svg';
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: checkIsWebPlatform(platform) ? '22px' : checkIsIosPlatform(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 ACTIONS;
80
+ (function (ACTIONS) {
81
+ ACTIONS["pause"] = "pause";
82
+ ACTIONS["play"] = "play";
83
+ })(ACTIONS || (ACTIONS = {}));
84
+ var checkIfContainerIsRendered = function (width, height) { return width > 0 && height > 0; };
85
+ var StoriesComponent = function (_a) {
86
+ var _b;
87
+ var _c = _a.isCloseIconHidden, isCloseIconHidden = _c === void 0 ? false : _c, _d = _a.isStoryStoppedOnBtnClick, isStoryStoppedOnBtnClick = _d === void 0 ? false : _d, _e = _a.platform, platform = _e === void 0 ? PLATFORM.web : _e, fontFamily = _a.fontFamily, imageClassName = _a.imageClassName, titleClassName = _a.titleClassName, bodyClassName = _a.bodyClassName, buttonClassName = _a.buttonClassName, contentClassName = _a.contentClassName, bottomContentClassName = _a.bottomContentClassName, contentStyles = _a.contentStyles, closeIconPosition = _a.closeIconPosition, closeIcon = _a.closeIcon, bottomContent = _a.bottomContent, currentStoryId = _a.currentStoryId, groupStories = _a.groupStories, allGroupsStories = _a.allGroupsStories, changeStoryToViewed = _a.changeStoryToViewed, changeGroupStoriesToViewed = _a.changeGroupStoriesToViewed, handleCloseGroupStories = _a.handleCloseGroupStories;
88
+ var sortStoriesByOrder = function (stories) { return sortBy(stories, ['order']); };
89
+ var generateActiveGroupStoriesIndex = function () { return allGroupsStories.findIndex(function (_a) {
90
+ var id = _a.id;
91
+ return id === (activeGroupStories === null || activeGroupStories === void 0 ? void 0 : activeGroupStories.id);
92
+ }); };
93
+ var _f = useState(groupStories), activeGroupStories = _f[0], setActiveGroupStories = _f[1];
94
+ var _g = useState(sortStoriesByOrder((groupStories === null || groupStories === void 0 ? void 0 : groupStories.stories) || [])), stories = _g[0], setStories = _g[1];
95
+ var _h = useState(currentStoryId || ((_b = stories[0]) === null || _b === void 0 ? void 0 : _b.id)), activeStoryId = _h[0], setActiveStoryId = _h[1];
96
+ var _j = useState(false), isAnimateToRight = _j[0], setIsAnimateToRight = _j[1];
97
+ var _k = useState(false), isAnimateToLeft = _k[0], setIsAnimateToLeft = _k[1];
98
+ var _l = useState(false), isImageStoryPaused = _l[0], setIsImageStoryPaused = _l[1];
99
+ var _m = useState({ width: 0, height: 0 }), _o = _m[0], containerWidth = _o.width, containerHeight = _o.height, setContainerSize = _m[1];
100
+ var activeStory = stories.find(function (_a) {
101
+ var id = _a.id;
102
+ return id === activeStoryId;
103
+ });
104
+ var activeStoryIndex = stories.findIndex(function (_a) {
105
+ var id = _a.id;
106
+ return id === activeStoryId;
107
+ });
108
+ var safeActiveStoryIndex = activeStoryIndex >= 0 ? activeStoryIndex : 0;
109
+ var generateContainerSizes = function (element) {
110
+ var _a = element.getBoundingClientRect(), width = _a.width, height = _a.height;
111
+ return { width: Math.round(width), height: Math.round(height) };
112
+ };
113
+ useEffect(function () {
114
+ var resizeObserverInstance = null;
115
+ // MutationObserver отслеживает появление контейнера в DOM
116
+ // Важно, потому что Popup рендерится через портал и может появиться позже
117
+ var mutationObserverInstance = null;
118
+ var animationFrameRequestId = 0;
119
+ var isEffectCancelled = false;
120
+ // Функция для поиска DOM-элемента, который реально содержит сторис и имеет ненулевые размеры
121
+ var findPopupContainerElement = function () {
122
+ var popupContent = document.querySelector('.popup-content');
123
+ var storiesContent = document.querySelector('.smartapp-stories-content');
124
+ return popupContent || storiesContent || document.querySelector('.smartapp-stories');
125
+ };
126
+ // Функция для измерения размера контейнера до тех пор, пока они не станут ненулевыми
127
+ // Это нужно потому, что при первом рендере контейнер часто имеет ширину и высоту 0 (портал, анимации, отложенный layout)
128
+ var measureContainerSizeUntilNonZero = function (containerElement) {
129
+ var measureStep = function () {
130
+ if (isEffectCancelled)
131
+ return;
132
+ var _a = generateContainerSizes(containerElement), width = _a.width, height = _a.height;
133
+ if (checkIfContainerIsRendered(width, height))
134
+ return setContainerSize({ width: width, height: height });
135
+ animationFrameRequestId = requestAnimationFrame(measureStep);
136
+ };
137
+ measureStep();
138
+ };
139
+ // Функция для подключения ResizeObserver к контейнеру, чтобы отслеживать дальнейшие изменения его размеров
140
+ var attachResizeObserverToContainer = function (containerElement) {
141
+ measureContainerSizeUntilNonZero(containerElement);
142
+ resizeObserverInstance = new ResizeObserver(function () {
143
+ var _a = generateContainerSizes(containerElement), width = _a.width, height = _a.height;
144
+ if (checkIfContainerIsRendered(width, height))
145
+ setContainerSize({ width: width, height: height });
146
+ });
147
+ resizeObserverInstance.observe(containerElement);
148
+ };
149
+ var initialContainerElement = findPopupContainerElement();
150
+ if (initialContainerElement) {
151
+ attachResizeObserverToContainer(initialContainerElement);
152
+ return function () {
153
+ isEffectCancelled = true;
154
+ if (animationFrameRequestId)
155
+ cancelAnimationFrame(animationFrameRequestId);
156
+ resizeObserverInstance === null || resizeObserverInstance === void 0 ? void 0 : resizeObserverInstance.disconnect();
157
+ mutationObserverInstance === null || mutationObserverInstance === void 0 ? void 0 : mutationObserverInstance.disconnect();
158
+ };
159
+ }
160
+ mutationObserverInstance = new MutationObserver(function () {
161
+ var appearedContainerElement = findPopupContainerElement();
162
+ if (appearedContainerElement) {
163
+ mutationObserverInstance === null || mutationObserverInstance === void 0 ? void 0 : mutationObserverInstance.disconnect();
164
+ mutationObserverInstance = null;
165
+ attachResizeObserverToContainer(appearedContainerElement);
166
+ }
167
+ });
168
+ mutationObserverInstance.observe(document.body, { childList: true, subtree: true });
169
+ return function () {
170
+ isEffectCancelled = true;
171
+ if (animationFrameRequestId)
172
+ cancelAnimationFrame(animationFrameRequestId);
173
+ resizeObserverInstance === null || resizeObserverInstance === void 0 ? void 0 : resizeObserverInstance.disconnect();
174
+ mutationObserverInstance === null || mutationObserverInstance === void 0 ? void 0 : mutationObserverInstance.disconnect();
175
+ };
176
+ }, []);
177
+ var size = generateSize(containerWidth, containerHeight);
178
+ var isShowCloseIconInsideStory = STORY_SIZE_HEIGHT[size] < containerHeight;
179
+ var isColorOnBackground = function (type) { return type === STORY_BACKGROUND_TYPES.color; };
180
+ var isImageOnBackground = function (_a) {
181
+ var type = _a.type;
182
+ return type === STORY_BACKGROUND_TYPES.image;
183
+ };
184
+ var generateStoryStyles = function (_a) {
185
+ var type = _a.type, value = _a.value;
186
+ return isColorOnBackground(type)
187
+ ? __assign(__assign({}, storyItemBaseStyles), { background: value }) : __assign(__assign({}, storyItemBaseStyles), { backgroundImage: "url(".concat(value, ")"), backgroundSize: 'cover', backgroundPosition: 'center', backgroundRepeat: 'no-repeat' });
188
+ };
189
+ var changeActiveGroupStories = function (groupStoriesItem) {
190
+ setActiveGroupStories(groupStoriesItem);
191
+ setStories(sortStoriesByOrder(groupStoriesItem.stories));
192
+ setTimeout(function () {
193
+ setIsAnimateToLeft(false);
194
+ setIsAnimateToRight(false);
195
+ }, 500);
196
+ };
197
+ var handlePrevious = function () {
198
+ var prevGroupStories = allGroupsStories[generateActiveGroupStoriesIndex() - 1];
199
+ if (prevGroupStories) {
200
+ setIsAnimateToLeft(true);
201
+ changeActiveGroupStories(prevGroupStories);
202
+ }
203
+ else {
204
+ handleCloseGroupStories();
205
+ }
206
+ };
207
+ var handleNext = function () {
208
+ var nextGroupStories = allGroupsStories[generateActiveGroupStoriesIndex() + 1];
209
+ if (nextGroupStories) {
210
+ setIsAnimateToRight(true);
211
+ changeActiveGroupStories(nextGroupStories);
212
+ }
213
+ else {
214
+ handleCloseGroupStories();
215
+ }
216
+ };
217
+ var onStoryStart = function (storyIndex) {
218
+ var _a = stories[storyIndex], storyId = _a.id, storyType = _a.type, viewed = _a.viewed;
219
+ var isVideoStory = storyType === STORY_TYPE.video;
220
+ var isLastStory = stories.at(-1).id === storyId;
221
+ isVideoStory && setActiveStoryId(storyId);
222
+ isImageStoryPaused && setIsImageStoryPaused(false);
223
+ if (!viewed)
224
+ changeStoryToViewed === null || changeStoryToViewed === void 0 ? void 0 : changeStoryToViewed(stories[storyIndex], activeGroupStories);
225
+ if (isLastStory && !activeGroupStories.viewed)
226
+ changeGroupStoriesToViewed === null || changeGroupStoriesToViewed === void 0 ? void 0 : changeGroupStoriesToViewed(activeGroupStories);
227
+ };
228
+ var generateCurrentStoryIndex = useCallback(function () { return stories.findIndex(function (_a) {
229
+ var id = _a.id;
230
+ return id === activeStoryId;
231
+ }); }, [stories, activeStoryId]);
232
+ var onPrevious = function () {
233
+ activeStoryId === stories[0].id ? handlePrevious() : onStoryStart(generateCurrentStoryIndex() - 1);
234
+ };
235
+ var onNext = function () {
236
+ var currentStoryIndex = generateCurrentStoryIndex();
237
+ currentStoryIndex !== stories.length - 1 && onStoryStart(currentStoryIndex + 1);
238
+ };
239
+ var handleButtonClick = function (action) {
240
+ var currentStoryIndex = generateCurrentStoryIndex();
241
+ var isNotLastStory = currentStoryIndex !== stories.length - 1;
242
+ var nextActiveStory = stories[currentStoryIndex + 1];
243
+ var generateGroupStoriesId = function () {
244
+ var nextGroupStories = allGroupsStories[generateActiveGroupStoriesIndex() + 1];
245
+ if (isNotLastStory)
246
+ return activeGroupStories === null || activeGroupStories === void 0 ? void 0 : activeGroupStories.id;
247
+ return (nextGroupStories === null || nextGroupStories === void 0 ? void 0 : nextGroupStories.id) || null;
248
+ };
249
+ if (isStoryStoppedOnBtnClick) {
250
+ if (isNotLastStory)
251
+ setActiveStoryId(nextActiveStory.id);
252
+ else
253
+ handleNext();
254
+ setTimeout(function () { return setIsImageStoryPaused(true); }, 100);
255
+ }
256
+ action(generateGroupStoriesId(), isNotLastStory ? nextActiveStory.id : null);
257
+ };
258
+ var renderButton = function (_a) {
259
+ var text = _a.text, textColor = _a.textColor, backgroundColor = _a.backgroundColor, isTransitionToExternalSource = _a.isTransitionToExternalSource, action = _a.action;
260
+ return (_jsxs("div", __assign({ style: {
261
+ color: generateColor(textColor, COLORS.darkBlack),
262
+ background: generateColor(backgroundColor, COLORS.white),
263
+ }, className: classNames('smartapp-stories__story--bottom-content__button', buttonClassName, {
264
+ 'smartapp-stories__story--bottom-content__button--with-icon': isTransitionToExternalSource,
265
+ }), onClick: function () { return handleButtonClick(action); } }, { children: [text, isTransitionToExternalSource && _jsx(ExternalLinkIcon, {})] })));
266
+ };
267
+ var createImageContent = function (_a) {
268
+ var id = _a.id, durationInMs = _a.durationInMs, title = _a.title, body = _a.body, backgroundSource = _a.backgroundSource, button = _a.button, image = _a.image;
269
+ return ({
270
+ duration: durationInMs || DEFAULT_STORY_DURATION,
271
+ content: function (_a) {
272
+ var action = _a.action;
273
+ // eslint-disable-next-line react-hooks/rules-of-hooks
274
+ var _b = useState(false), isImageLoaded = _b[0], setIsImageLoaded = _b[1];
275
+ var isLoaderVisible = image && (!isImageLoaded || isAnimateToLeft || isAnimateToRight);
276
+ var storyContainer = document.querySelector('.smartapp-stories');
277
+ var containerWidth = (storyContainer === null || storyContainer === void 0 ? void 0 : storyContainer.offsetWidth) || 0;
278
+ var imageContainerHeight = containerWidth * PERCENTAGE_OF_IMAGE_WIDTH;
279
+ // eslint-disable-next-line react-hooks/rules-of-hooks
280
+ useLayoutEffect(function () {
281
+ if (currentStoryId)
282
+ return;
283
+ activeStoryId !== id && setActiveStoryId(id);
284
+ }, []);
285
+ // eslint-disable-next-line react-hooks/rules-of-hooks
286
+ useLayoutEffect(function () {
287
+ if (isImageStoryPaused)
288
+ setTimeout(function () { return action(ACTIONS.pause); }, 0);
289
+ // eslint-disable-next-line
290
+ }, [isImageStoryPaused]);
291
+ // eslint-disable-next-line react-hooks/rules-of-hooks
292
+ useLayoutEffect(function () {
293
+ if (isImageStoryPaused)
294
+ return;
295
+ var timeoutId;
296
+ timeoutId = setTimeout(function () { return action(isLoaderVisible ? ACTIONS.pause : ACTIONS.play); }, 0);
297
+ return function () { return clearTimeout(timeoutId); };
298
+ // eslint-disable-next-line
299
+ }, [isLoaderVisible]);
300
+ var handleImageLoad = function () {
301
+ setIsImageLoaded(true);
302
+ if (isImageStoryPaused)
303
+ return;
304
+ setTimeout(function () { return action(ACTIONS.play); }, 0);
305
+ };
306
+ return (_jsx("div", __assign({ style: generateStoryStyles(backgroundSource) }, { children: _jsxs("div", __assign({ style: __assign(__assign({}, generateFontFamilyStyle(fontFamily)), 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: classNames('smartapp-stories__story--image', imageClassName), style: { maxHeight: "".concat(imageContainerHeight, "px") } }, { children: _jsx("img", { src: image, alt: "", onLoad: handleImageLoad, onError: handleImageLoad }) }))), title && _jsx("div", __assign({ className: classNames('smartapp-stories__story--title', titleClassName) }, { children: title })), body && _jsx("div", __assign({ className: classNames('smartapp-stories__story--body', bodyClassName) }, { children: body })), (button || bottomContent) && (_jsxs("div", __assign({ className: classNames('smartapp-stories__story--bottom-content', "smartapp-stories__story--bottom-content__".concat(platform), bottomContentClassName) }, { children: [button && renderButton(button), bottomContent] })))] })), isLoaderVisible && (_jsx("div", __assign({ className: "smartapp-stories__story--loader" }, { children: _jsx(LoaderIcon, {}) })))] })) }), id));
307
+ },
308
+ });
309
+ };
310
+ var createVideoContent = function (_a) {
311
+ var url = _a.url;
312
+ return ({
313
+ type: STORY_TYPE.video,
314
+ url: url,
315
+ });
316
+ };
317
+ var generateStories = function () { return stories.map(function (story) { return (story.type === STORY_TYPE.image ? createImageContent(story) : createVideoContent(story)); }); };
318
+ var swipeableHandlers = useSwipeable({
319
+ trackMouse: true,
320
+ onSwipedLeft: function () { return handleNext(); },
321
+ onSwipedRight: function () { return handlePrevious(); },
322
+ });
323
+ var createBackgroundVideo = function (id, url) {
324
+ var video = document.createElement('video');
325
+ video.id = "background_video_".concat(id);
326
+ video.src = url;
327
+ video.muted = true;
328
+ video.playsInline = true;
329
+ video.autoplay = true;
330
+ video.classList.add('smartapp-stories-content__background-video');
331
+ return video;
332
+ };
333
+ useEffect(function () {
334
+ currentStoryId && setActiveStoryId(currentStoryId);
335
+ }, [currentStoryId]);
336
+ useEffect(function () {
337
+ var sortedStories = sortStoriesByOrder((groupStories === null || groupStories === void 0 ? void 0 : groupStories.stories) || []);
338
+ setActiveGroupStories(groupStories);
339
+ setStories(sortedStories);
340
+ }, [groupStories]);
341
+ useEffect(function () {
342
+ var video = document.querySelector('video');
343
+ var pauseVideosOnBackground = function () {
344
+ var backgroundVideos = document.querySelectorAll("#background_video_".concat(activeStoryId));
345
+ backgroundVideos.forEach(function (video) { return video.pause(); });
346
+ };
347
+ var playVideosOnBackground = function () {
348
+ var backgroundVideos = document.querySelectorAll("#background_video_".concat(activeStoryId));
349
+ backgroundVideos.forEach(function (video) { return video.play().catch(function () { }); });
350
+ };
351
+ video === null || video === void 0 ? void 0 : video.addEventListener(ACTIONS.play, playVideosOnBackground);
352
+ video === null || video === void 0 ? void 0 : video.addEventListener(ACTIONS.pause, pauseVideosOnBackground);
353
+ return function () {
354
+ video === null || video === void 0 ? void 0 : video.removeEventListener(ACTIONS.play, playVideosOnBackground);
355
+ video === null || video === void 0 ? void 0 : video.removeEventListener(ACTIONS.pause, pauseVideosOnBackground);
356
+ };
357
+ }, [activeStoryId]);
358
+ useEffect(function () {
359
+ var currentStoryIndex = generateCurrentStoryIndex();
360
+ var indicatorsContainer = document.querySelector('.smartapp-stories > div:first-of-type > div:first-of-type');
361
+ var indicators = Array.from((indicatorsContainer === null || indicatorsContainer === void 0 ? void 0 : indicatorsContainer.children) || []);
362
+ indicators.forEach(function (indicator, index) {
363
+ if (indicators.length >= NUMBER_OF_STORIES_FOR_ROUND_INDICATORS) {
364
+ indicator.style.width = index !== currentStoryIndex ? '4px' : '48px';
365
+ }
366
+ else {
367
+ indicator.style.width = '38px';
368
+ }
369
+ });
370
+ }, [generateCurrentStoryIndex]);
371
+ useEffect(function () {
372
+ var popupElement = document.querySelector('.smartapp-stories-content');
373
+ var videoWrapper = document.querySelector('.smartapp-stories-content > div > div > div:nth-child(2) > div');
374
+ if (activeStory) {
375
+ if (activeStory.type === STORY_TYPE.image) {
376
+ var _a = activeStory.backgroundSource, type = _a.type, value = _a.value;
377
+ var prevBackgroundVideos = document.querySelectorAll('.smartapp-stories-content__background-video');
378
+ var background = isColorOnBackground(type) ? value : "url(".concat(value, ")");
379
+ !isEmpty(prevBackgroundVideos) && prevBackgroundVideos.forEach(function (video) { return video.remove(); });
380
+ checkIsWebPlatform(platform) && (popupElement === null || popupElement === void 0 ? void 0 : popupElement.style.setProperty('--background', background));
381
+ }
382
+ else {
383
+ var id = activeStory.id, url = activeStory.url;
384
+ var prevBackgroundVideos = document.querySelectorAll('.smartapp-stories-content__background-video');
385
+ !isEmpty(prevBackgroundVideos) && prevBackgroundVideos.forEach(function (video) { return video.remove(); });
386
+ // eslint-disable-next-line max-depth
387
+ if (checkIsWebPlatform(platform)) {
388
+ popupElement === null || popupElement === void 0 ? void 0 : popupElement.style.removeProperty('--background');
389
+ popupElement === null || popupElement === void 0 ? void 0 : popupElement.appendChild(createBackgroundVideo(id, url));
390
+ }
391
+ videoWrapper === null || videoWrapper === void 0 ? void 0 : videoWrapper.appendChild(createBackgroundVideo(id, url));
392
+ }
393
+ }
394
+ }, [platform, activeStory]);
395
+ if (isNull(activeGroupStories)) {
396
+ return null;
397
+ }
398
+ var closeStoriesIcon = !isCloseIconHidden && (_jsx("div", __assign({ className: classNames('smartapp-stories__icon', "smartapp-stories__icon--".concat(platform), "smartapp-stories__icon--".concat(closeIconPosition)), onClick: handleCloseGroupStories }, { children: closeIcon || _jsx(CloseStoriesIcon, {}) })));
399
+ 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), {
400
+ 'smartapp-stories__video': (activeStory === null || activeStory === void 0 ? void 0 : activeStory.type) === STORY_TYPE.video,
401
+ 'smartapp-stories__animate-right': isAnimateToRight,
402
+ 'smartapp-stories__animate-left': isAnimateToLeft,
403
+ }) }, swipeableHandlers, { children: [_jsx(Stories, { currentIndex: safeActiveStoryIndex, 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 && closeStoriesIcon] })), !isShowCloseIconInsideStory && closeStoriesIcon] })));
404
+ };
405
+ export default StoriesComponent;
406
+ //# sourceMappingURL=Stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Stories.js","sourceRoot":"","sources":["../../../../src/сomponents/Stories/Stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,8BAA8B;AAC9B,OAAc,EAAE,WAAW,EAAE,SAAS,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChF,OAAO,OAAO,MAAM,qBAAqB,CAAA;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAC9C,OAAO,KAAK,MAAM,eAAe,CAAA;AACjC,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAChD,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,aAAa,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAA;AAC9G,OAAO,EAAE,MAAM,EAAE,sCAAsC,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAC1F,OAAO,EAEL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WAAW,CAAE,IAAI,MAAK,UAAU,CAAC,KAAK;oBACjE,iCAAiC,EAAE,gBAAgB;oBACnD,gCAAgC,EAAE,eAAe;iBAClD,CAAC,IACE,iBAAiB,eAErB,KAAC,OAAO,IAEN,YAAY,EAAE,oBAAoB,EAClC,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,IAZzB,kBAAkB,CAAC,EAAE,CAa1B,EACD,0BAA0B,IAAI,gBAAgB,KAC3C,EACL,CAAC,0BAA0B,IAAI,gBAAgB,KAC1C,CACT,CAAA;AACH,CAAC,CAAA;AAED,eAAe,gBAAgB,CAAA"}
@@ -0,0 +1 @@
1
+ export { default } from './Stories';
@@ -0,0 +1,2 @@
1
+ export { default } from './Stories';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/Stories/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA"}
@@ -0,0 +1,71 @@
1
+ import { ReactElement } from 'react';
2
+ import { IFontFamilyProps, IPlatformProps, TStyles } from '../../constants';
3
+ export declare enum STORY_BACKGROUND_TYPES {
4
+ color = "color",
5
+ image = "image"
6
+ }
7
+ export declare enum STORY_TYPE {
8
+ image = "image",
9
+ video = "video"
10
+ }
11
+ export declare enum STORY_CLOSE_ICON_POSITION {
12
+ left = "left",
13
+ right = "right"
14
+ }
15
+ export type TBackgroundType = 'color' | 'image';
16
+ export type TBackgroundSource = {
17
+ type: TBackgroundType;
18
+ value: string;
19
+ };
20
+ type TCommonStoryItem = {
21
+ id: number;
22
+ order: number;
23
+ viewed?: boolean;
24
+ };
25
+ export type TImageStoryButton = {
26
+ text: string;
27
+ isTransitionToExternalSource?: boolean;
28
+ textColor?: string;
29
+ backgroundColor?: string;
30
+ action: (groupStoriesId?: number | null, activeStoryId?: number | null) => void;
31
+ };
32
+ export interface TImageStoryItem extends TCommonStoryItem {
33
+ type: 'image';
34
+ durationInMs?: number;
35
+ title: string | null;
36
+ body: string | ReactElement | null;
37
+ backgroundSource: TBackgroundSource;
38
+ button: TImageStoryButton | null;
39
+ image: string | null;
40
+ }
41
+ export interface TVideoStoryItem extends TCommonStoryItem {
42
+ type: 'video';
43
+ url: string;
44
+ }
45
+ export type TStoryItem = TImageStoryItem | TVideoStoryItem;
46
+ export type TGroupStories = {
47
+ id: number;
48
+ viewed: boolean;
49
+ stories: TStoryItem[];
50
+ };
51
+ export interface IStoriesProps extends IPlatformProps, IFontFamilyProps {
52
+ isCloseIconHidden?: boolean;
53
+ isStoryStoppedOnBtnClick?: boolean;
54
+ imageClassName?: string;
55
+ titleClassName?: string;
56
+ bodyClassName?: string;
57
+ buttonClassName?: string;
58
+ contentClassName?: string;
59
+ bottomContentClassName?: string;
60
+ contentStyles?: TStyles;
61
+ closeIconPosition?: 'left' | 'right';
62
+ closeIcon?: ReactElement;
63
+ bottomContent?: ReactElement;
64
+ currentStoryId?: number | null;
65
+ groupStories: TGroupStories | null;
66
+ allGroupsStories: TGroupStories[];
67
+ changeStoryToViewed?: (story: TStoryItem, groupStories: TGroupStories) => void;
68
+ changeGroupStoriesToViewed?: (groupStories: TGroupStories) => void;
69
+ handleCloseGroupStories: () => void;
70
+ }
71
+ export {};
@@ -0,0 +1,16 @@
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
+ export var STORY_CLOSE_ICON_POSITION;
12
+ (function (STORY_CLOSE_ICON_POSITION) {
13
+ STORY_CLOSE_ICON_POSITION["left"] = "left";
14
+ STORY_CLOSE_ICON_POSITION["right"] = "right";
15
+ })(STORY_CLOSE_ICON_POSITION || (STORY_CLOSE_ICON_POSITION = {}));
16
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
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;AAED,MAAM,CAAN,IAAY,yBAGX;AAHD,WAAY,yBAAyB;IACnC,0CAAa,CAAA;IACb,4CAAe,CAAA;AACjB,CAAC,EAHW,yBAAyB,KAAzB,yBAAyB,QAGpC"}
@@ -0,0 +1,4 @@
1
+ import { ISwitcherProps } from './types';
2
+ import '../../styles/styles.scss';
3
+ declare const Switcher: ({ pages }: ISwitcherProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default Switcher;
@@ -0,0 +1,34 @@
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 { NavLink } from 'react-router-dom';
14
+ import Slider from 'react-slick';
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Switcher.js","sourceRoot":"","sources":["../../../../src/сomponents/Switcher/Switcher.tsx"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAC1C,OAAO,MAAM,MAAM,aAAa,CAAA;AAEhC,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"}
@@ -0,0 +1 @@
1
+ export { default } from './Switcher';
@@ -0,0 +1,2 @@
1
+ export { default } from './Switcher';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/Switcher/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA"}
@@ -0,0 +1,8 @@
1
+ type PageType = {
2
+ route: string;
3
+ title: string;
4
+ };
5
+ export interface ISwitcherProps {
6
+ pages: PageType[];
7
+ }
8
+ export {};
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/Switcher/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import { ISyncLoaderProps } from './types';
2
+ import '../../styles/styles.scss';
3
+ export declare const DEFAULT_SYNC_LOADER_TEXT = "\u041E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u0435";
4
+ declare const SyncLoader: ({ isLoading, text, theme, className, styles, color, fontFamily, }: ISyncLoaderProps) => import("react/jsx-runtime").JSX.Element | null;
5
+ export default SyncLoader;