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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (481) hide show
  1. package/build/main/assets/icons/accepted-invite-status.svg +4 -0
  2. package/build/main/assets/icons/arrow-back.svg +3 -0
  3. package/build/main/assets/icons/arrow-down.svg +3 -0
  4. package/build/main/assets/icons/arrow-up.svg +3 -0
  5. package/build/main/assets/icons/attachment-loader.svg +3 -0
  6. package/build/main/assets/icons/avatar-arrow-down.svg +3 -0
  7. package/build/main/assets/icons/avatar-arrow-up.svg +3 -0
  8. package/build/main/assets/icons/avatar-loader.svg +3 -0
  9. package/build/main/assets/icons/button-loader.svg +3 -0
  10. package/build/main/assets/icons/calendar-arrow-next.svg +3 -0
  11. package/build/main/assets/icons/calendar-arrow-prev.svg +3 -0
  12. package/build/main/assets/icons/check-mark-square.svg +4 -0
  13. package/build/main/assets/icons/check-mark.svg +4 -0
  14. package/build/main/assets/icons/chip-info.svg +5 -0
  15. package/build/main/assets/icons/clear.svg +3 -0
  16. package/build/main/assets/icons/close-modal.svg +3 -0
  17. package/build/main/assets/icons/close-stories.svg +4 -0
  18. package/build/main/assets/icons/close.svg +3 -0
  19. package/build/main/assets/icons/contact-info.svg +5 -0
  20. package/build/main/assets/icons/corporate-user.svg +3 -0
  21. package/build/main/assets/icons/crown.svg +5 -0
  22. package/build/main/assets/icons/declined-invite-status.svg +4 -0
  23. package/build/main/assets/icons/delete-chip.svg +3 -0
  24. package/build/main/assets/icons/distribution.svg +12 -0
  25. package/build/main/assets/icons/doc-small.svg +11 -0
  26. package/build/main/assets/icons/doc.svg +11 -0
  27. package/build/main/assets/icons/error.svg +5 -0
  28. package/build/main/assets/icons/external-link.svg +3 -0
  29. package/build/main/assets/icons/eye-off.svg +5 -0
  30. package/build/main/assets/icons/eye-on.svg +4 -0
  31. package/build/main/assets/icons/file-small.svg +11 -0
  32. package/build/main/assets/icons/file.svg +11 -0
  33. package/build/main/assets/icons/global-address-book-user.svg +4 -0
  34. package/build/main/assets/icons/group.svg +3 -0
  35. package/build/main/assets/icons/indeterminate-check-mark-square.svg +4 -0
  36. package/build/main/assets/icons/info.svg +5 -0
  37. package/build/main/assets/icons/input-arrow-down.svg +3 -0
  38. package/build/main/assets/icons/input-arrow-up.svg +3 -0
  39. package/build/main/assets/icons/loader.svg +3 -0
  40. package/build/main/assets/icons/logout.svg +4 -0
  41. package/build/main/assets/icons/magnifying-glass.svg +3 -0
  42. package/build/main/assets/icons/mail.svg +3 -0
  43. package/build/main/assets/icons/meeting-room.svg +3 -0
  44. package/build/main/assets/icons/more.svg +3 -0
  45. package/build/main/assets/icons/my-contacts-user.svg +3 -0
  46. package/build/main/assets/icons/needs-action-invite-status.svg +4 -0
  47. package/build/main/assets/icons/notification-close.svg +3 -0
  48. package/build/main/assets/icons/notification-failure.svg +3 -0
  49. package/build/main/assets/icons/notification-info.svg +5 -0
  50. package/build/main/assets/icons/notification-success.svg +4 -0
  51. package/build/main/assets/icons/order.svg +6 -0
  52. package/build/main/assets/icons/pdf-small.svg +11 -0
  53. package/build/main/assets/icons/pdf.svg +11 -0
  54. package/build/main/assets/icons/play-small.svg +3 -0
  55. package/build/main/assets/icons/play.svg +3 -0
  56. package/build/main/assets/icons/plus.svg +4 -0
  57. package/build/main/assets/icons/ppt-small.svg +11 -0
  58. package/build/main/assets/icons/ppt.svg +11 -0
  59. package/build/main/assets/icons/private.svg +12 -0
  60. package/build/main/assets/icons/refresh.svg +3 -0
  61. package/build/main/assets/icons/search.svg +3 -0
  62. package/build/main/assets/icons/story-loader.svg +3 -0
  63. package/build/main/assets/icons/tick.svg +10 -0
  64. package/build/main/assets/icons/trash.svg +3 -0
  65. package/build/main/assets/icons/txt-small.svg +11 -0
  66. package/build/main/assets/icons/txt.svg +11 -0
  67. package/build/main/assets/icons/unread-mails.svg +4 -0
  68. package/build/main/assets/icons/warning-avatar.svg +4 -0
  69. package/build/main/assets/icons/xls-small.svg +11 -0
  70. package/build/main/assets/icons/xls.svg +11 -0
  71. package/build/main/assets/storybook/index.d.ts +24 -0
  72. package/build/main/assets/storybook/index.js +25 -0
  73. package/build/main/assets/storybook/index.js.map +1 -0
  74. package/build/main/constants/constants.d.ts +198 -0
  75. package/build/main/constants/constants.js +218 -0
  76. package/build/main/constants/constants.js.map +1 -0
  77. package/build/main/constants/index.d.ts +2 -0
  78. package/build/main/constants/index.js +3 -0
  79. package/build/main/constants/index.js.map +1 -0
  80. package/build/main/constants/types.d.ts +58 -0
  81. package/build/main/constants/types.js +2 -0
  82. package/build/main/constants/types.js.map +1 -0
  83. package/build/main/helpers/index.d.ts +31 -0
  84. package/build/main/helpers/index.js +183 -0
  85. package/build/main/helpers/index.js.map +1 -0
  86. package/build/main/hooks/useLongTap.d.ts +12 -0
  87. package/build/main/hooks/useLongTap.js +29 -0
  88. package/build/main/hooks/useLongTap.js.map +1 -0
  89. package/build/main/hooks/useModal.d.ts +22 -0
  90. package/build/main/hooks/useModal.js +61 -0
  91. package/build/main/hooks/useModal.js.map +1 -0
  92. package/build/main/index.d.ts +36 -0
  93. package/build/main/index.js +37 -0
  94. package/build/main/index.js.map +1 -0
  95. package/build/main/styles/index.d.ts +1 -0
  96. package/build/main/styles/index.js +2 -0
  97. package/build/main/styles/index.js.map +1 -0
  98. package/build/main/styles/main.js +6 -0
  99. package/build/main/styles/styles.scss +14 -0
  100. package/build/main//321/201omponents/ActionModal/ActionModal.d.ts +4 -0
  101. package/build/main//321/201omponents/ActionModal/ActionModal.js +53 -0
  102. package/build/main//321/201omponents/ActionModal/ActionModal.js.map +1 -0
  103. package/build/main//321/201omponents/ActionModal/index.d.ts +1 -0
  104. package/build/main//321/201omponents/ActionModal/index.js +2 -0
  105. package/build/main//321/201omponents/ActionModal/index.js.map +1 -0
  106. package/build/main//321/201omponents/ActionModal/types.d.ts +23 -0
  107. package/build/main//321/201omponents/ActionModal/types.js +2 -0
  108. package/build/main//321/201omponents/ActionModal/types.js.map +1 -0
  109. package/build/main//321/201omponents/AttachedFile/AttachedFile.d.ts +8 -0
  110. package/build/main//321/201omponents/AttachedFile/AttachedFile.js +146 -0
  111. package/build/main//321/201omponents/AttachedFile/AttachedFile.js.map +1 -0
  112. package/build/main//321/201omponents/AttachedFile/index.d.ts +1 -0
  113. package/build/main//321/201omponents/AttachedFile/index.js +2 -0
  114. package/build/main//321/201omponents/AttachedFile/index.js.map +1 -0
  115. package/build/main//321/201omponents/AttachedFile/types.d.ts +22 -0
  116. package/build/main//321/201omponents/AttachedFile/types.js +2 -0
  117. package/build/main//321/201omponents/AttachedFile/types.js.map +1 -0
  118. package/build/main//321/201omponents/Avatar/Avatar.d.ts +4 -0
  119. package/build/main//321/201omponents/Avatar/Avatar.js +243 -0
  120. package/build/main//321/201omponents/Avatar/Avatar.js.map +1 -0
  121. package/build/main//321/201omponents/Avatar/index.d.ts +1 -0
  122. package/build/main//321/201omponents/Avatar/index.js +2 -0
  123. package/build/main//321/201omponents/Avatar/index.js.map +1 -0
  124. package/build/main//321/201omponents/Avatar/types.d.ts +61 -0
  125. package/build/main//321/201omponents/Avatar/types.js +29 -0
  126. package/build/main//321/201omponents/Avatar/types.js.map +1 -0
  127. package/build/main//321/201omponents/Button/Button.d.ts +4 -0
  128. package/build/main//321/201omponents/Button/Button.js +62 -0
  129. package/build/main//321/201omponents/Button/Button.js.map +1 -0
  130. package/build/main//321/201omponents/Button/index.d.ts +1 -0
  131. package/build/main//321/201omponents/Button/index.js +2 -0
  132. package/build/main//321/201omponents/Button/index.js.map +1 -0
  133. package/build/main//321/201omponents/Button/types.d.ts +24 -0
  134. package/build/main//321/201omponents/Button/types.js +12 -0
  135. package/build/main//321/201omponents/Button/types.js.map +1 -0
  136. package/build/main//321/201omponents/CachedImage/CachedImage.d.ts +4 -0
  137. package/build/main//321/201omponents/CachedImage/CachedImage.js +59 -0
  138. package/build/main//321/201omponents/CachedImage/CachedImage.js.map +1 -0
  139. package/build/main//321/201omponents/CachedImage/helpers.d.ts +3 -0
  140. package/build/main//321/201omponents/CachedImage/helpers.js +40 -0
  141. package/build/main//321/201omponents/CachedImage/helpers.js.map +1 -0
  142. package/build/main//321/201omponents/CachedImage/index.d.ts +1 -0
  143. package/build/main//321/201omponents/CachedImage/index.js +2 -0
  144. package/build/main//321/201omponents/CachedImage/index.js.map +1 -0
  145. package/build/main//321/201omponents/CachedImage/types.d.ts +10 -0
  146. package/build/main//321/201omponents/CachedImage/types.js +2 -0
  147. package/build/main//321/201omponents/CachedImage/types.js.map +1 -0
  148. package/build/main//321/201omponents/Calendar/Calendar.d.ts +4 -0
  149. package/build/main//321/201omponents/Calendar/Calendar.js +145 -0
  150. package/build/main//321/201omponents/Calendar/Calendar.js.map +1 -0
  151. package/build/main//321/201omponents/Calendar/index.d.ts +1 -0
  152. package/build/main//321/201omponents/Calendar/index.js +2 -0
  153. package/build/main//321/201omponents/Calendar/index.js.map +1 -0
  154. package/build/main//321/201omponents/Calendar/types.d.ts +15 -0
  155. package/build/main//321/201omponents/Calendar/types.js +2 -0
  156. package/build/main//321/201omponents/Calendar/types.js.map +1 -0
  157. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.d.ts +4 -0
  158. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js +47 -0
  159. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js.map +1 -0
  160. package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.d.ts +4 -0
  161. package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.js +71 -0
  162. package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.js.map +1 -0
  163. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.d.ts +4 -0
  164. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js +42 -0
  165. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js.map +1 -0
  166. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.d.ts +4 -0
  167. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js +64 -0
  168. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js.map +1 -0
  169. package/build/main//321/201omponents/Charts/colors.d.ts +3 -0
  170. package/build/main//321/201omponents/Charts/colors.js +4 -0
  171. package/build/main//321/201omponents/Charts/colors.js.map +1 -0
  172. package/build/main//321/201omponents/Charts/constants.d.ts +42 -0
  173. package/build/main//321/201omponents/Charts/constants.js +42 -0
  174. package/build/main//321/201omponents/Charts/constants.js.map +1 -0
  175. package/build/main//321/201omponents/Charts/helpers.d.ts +17 -0
  176. package/build/main//321/201omponents/Charts/helpers.js +73 -0
  177. package/build/main//321/201omponents/Charts/helpers.js.map +1 -0
  178. package/build/main//321/201omponents/Charts/index.d.ts +3 -0
  179. package/build/main//321/201omponents/Charts/index.js +4 -0
  180. package/build/main//321/201omponents/Charts/index.js.map +1 -0
  181. package/build/main//321/201omponents/Charts/types.d.ts +89 -0
  182. package/build/main//321/201omponents/Charts/types.js +2 -0
  183. package/build/main//321/201omponents/Charts/types.js.map +1 -0
  184. package/build/main//321/201omponents/Charts/useEvents.d.ts +5 -0
  185. package/build/main//321/201omponents/Charts/useEvents.js +45 -0
  186. package/build/main//321/201omponents/Charts/useEvents.js.map +1 -0
  187. package/build/main//321/201omponents/Charts/usePieEvents.d.ts +6 -0
  188. package/build/main//321/201omponents/Charts/usePieEvents.js +57 -0
  189. package/build/main//321/201omponents/Charts/usePieEvents.js.map +1 -0
  190. package/build/main//321/201omponents/Checkbox/Checkbox.d.ts +8 -0
  191. package/build/main//321/201omponents/Checkbox/Checkbox.js +48 -0
  192. package/build/main//321/201omponents/Checkbox/Checkbox.js.map +1 -0
  193. package/build/main//321/201omponents/Checkbox/index.d.ts +1 -0
  194. package/build/main//321/201omponents/Checkbox/index.js +2 -0
  195. package/build/main//321/201omponents/Checkbox/index.js.map +1 -0
  196. package/build/main//321/201omponents/Checkbox/types.d.ts +14 -0
  197. package/build/main//321/201omponents/Checkbox/types.js +2 -0
  198. package/build/main//321/201omponents/Checkbox/types.js.map +1 -0
  199. package/build/main//321/201omponents/Chip/Chip.d.ts +4 -0
  200. package/build/main//321/201omponents/Chip/Chip.js +118 -0
  201. package/build/main//321/201omponents/Chip/Chip.js.map +1 -0
  202. package/build/main//321/201omponents/Chip/index.d.ts +1 -0
  203. package/build/main//321/201omponents/Chip/index.js +2 -0
  204. package/build/main//321/201omponents/Chip/index.js.map +1 -0
  205. package/build/main//321/201omponents/Chip/types.d.ts +28 -0
  206. package/build/main//321/201omponents/Chip/types.js +2 -0
  207. package/build/main//321/201omponents/Chip/types.js.map +1 -0
  208. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.d.ts +4 -0
  209. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js +63 -0
  210. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js.map +1 -0
  211. package/build/main//321/201omponents/ConfirmationModal/index.d.ts +1 -0
  212. package/build/main//321/201omponents/ConfirmationModal/index.js +2 -0
  213. package/build/main//321/201omponents/ConfirmationModal/index.js.map +1 -0
  214. package/build/main//321/201omponents/ConfirmationModal/types.d.ts +28 -0
  215. package/build/main//321/201omponents/ConfirmationModal/types.js +2 -0
  216. package/build/main//321/201omponents/ConfirmationModal/types.js.map +1 -0
  217. package/build/main//321/201omponents/ContextMenu/ContextMenu.d.ts +4 -0
  218. package/build/main//321/201omponents/ContextMenu/ContextMenu.js +81 -0
  219. package/build/main//321/201omponents/ContextMenu/ContextMenu.js.map +1 -0
  220. package/build/main//321/201omponents/ContextMenu/index.d.ts +1 -0
  221. package/build/main//321/201omponents/ContextMenu/index.js +2 -0
  222. package/build/main//321/201omponents/ContextMenu/index.js.map +1 -0
  223. package/build/main//321/201omponents/ContextMenu/types.d.ts +34 -0
  224. package/build/main//321/201omponents/ContextMenu/types.js +2 -0
  225. package/build/main//321/201omponents/ContextMenu/types.js.map +1 -0
  226. package/build/main//321/201omponents/CustomSelect/CustomSelect.d.ts +12 -0
  227. package/build/main//321/201omponents/CustomSelect/CustomSelect.js +248 -0
  228. package/build/main//321/201omponents/CustomSelect/CustomSelect.js.map +1 -0
  229. package/build/main//321/201omponents/CustomSelect/index.d.ts +1 -0
  230. package/build/main//321/201omponents/CustomSelect/index.js +2 -0
  231. package/build/main//321/201omponents/CustomSelect/index.js.map +1 -0
  232. package/build/main//321/201omponents/CustomSelect/selectStyles.d.ts +16 -0
  233. package/build/main//321/201omponents/CustomSelect/selectStyles.js +70 -0
  234. package/build/main//321/201omponents/CustomSelect/selectStyles.js.map +1 -0
  235. package/build/main//321/201omponents/CustomSelect/types.d.ts +69 -0
  236. package/build/main//321/201omponents/CustomSelect/types.js +2 -0
  237. package/build/main//321/201omponents/CustomSelect/types.js.map +1 -0
  238. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.d.ts +4 -0
  239. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js +58 -0
  240. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js.map +1 -0
  241. package/build/main//321/201omponents/CustomSelectProfiles/index.d.ts +1 -0
  242. package/build/main//321/201omponents/CustomSelectProfiles/index.js +2 -0
  243. package/build/main//321/201omponents/CustomSelectProfiles/index.js.map +1 -0
  244. package/build/main//321/201omponents/CustomSelectProfiles/types.d.ts +12 -0
  245. package/build/main//321/201omponents/CustomSelectProfiles/types.js +2 -0
  246. package/build/main//321/201omponents/CustomSelectProfiles/types.js.map +1 -0
  247. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.d.ts +4 -0
  248. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js +57 -0
  249. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js.map +1 -0
  250. package/build/main//321/201omponents/DragAndDrop/index.d.ts +1 -0
  251. package/build/main//321/201omponents/DragAndDrop/index.js +2 -0
  252. package/build/main//321/201omponents/DragAndDrop/index.js.map +1 -0
  253. package/build/main//321/201omponents/DragAndDrop/types.d.ts +24 -0
  254. package/build/main//321/201omponents/DragAndDrop/types.js +2 -0
  255. package/build/main//321/201omponents/DragAndDrop/types.js.map +1 -0
  256. package/build/main//321/201omponents/DraggablePopup/DraggablePopup.d.ts +4 -0
  257. package/build/main//321/201omponents/DraggablePopup/DraggablePopup.js +222 -0
  258. package/build/main//321/201omponents/DraggablePopup/DraggablePopup.js.map +1 -0
  259. package/build/main//321/201omponents/DraggablePopup/index.d.ts +1 -0
  260. package/build/main//321/201omponents/DraggablePopup/index.js +2 -0
  261. package/build/main//321/201omponents/DraggablePopup/index.js.map +1 -0
  262. package/build/main//321/201omponents/DraggablePopup/types.d.ts +90 -0
  263. package/build/main//321/201omponents/DraggablePopup/types.js +2 -0
  264. package/build/main//321/201omponents/DraggablePopup/types.js.map +1 -0
  265. package/build/main//321/201omponents/Error/Error.d.ts +4 -0
  266. package/build/main//321/201omponents/Error/Error.js +23 -0
  267. package/build/main//321/201omponents/Error/Error.js.map +1 -0
  268. package/build/main//321/201omponents/Error/index.d.ts +1 -0
  269. package/build/main//321/201omponents/Error/index.js +2 -0
  270. package/build/main//321/201omponents/Error/index.js.map +1 -0
  271. package/build/main//321/201omponents/Error/types.d.ts +10 -0
  272. package/build/main//321/201omponents/Error/types.js +2 -0
  273. package/build/main//321/201omponents/Error/types.js.map +1 -0
  274. package/build/main//321/201omponents/Flex/Flex.d.ts +2 -0
  275. package/build/main//321/201omponents/Flex/Flex.js +35 -0
  276. package/build/main//321/201omponents/Flex/Flex.js.map +1 -0
  277. package/build/main//321/201omponents/Flex/HFlex/HFlex.d.ts +5 -0
  278. package/build/main//321/201omponents/Flex/HFlex/HFlex.js +16 -0
  279. package/build/main//321/201omponents/Flex/HFlex/HFlex.js.map +1 -0
  280. package/build/main//321/201omponents/Flex/HFlex/index.d.ts +1 -0
  281. package/build/main//321/201omponents/Flex/HFlex/index.js +2 -0
  282. package/build/main//321/201omponents/Flex/HFlex/index.js.map +1 -0
  283. package/build/main//321/201omponents/Flex/VFlex/VFlex.d.ts +5 -0
  284. package/build/main//321/201omponents/Flex/VFlex/VFlex.js +16 -0
  285. package/build/main//321/201omponents/Flex/VFlex/VFlex.js.map +1 -0
  286. package/build/main//321/201omponents/Flex/VFlex/index.d.ts +1 -0
  287. package/build/main//321/201omponents/Flex/VFlex/index.js +2 -0
  288. package/build/main//321/201omponents/Flex/VFlex/index.js.map +1 -0
  289. package/build/main//321/201omponents/Flex/index.d.ts +3 -0
  290. package/build/main//321/201omponents/Flex/index.js +4 -0
  291. package/build/main//321/201omponents/Flex/index.js.map +1 -0
  292. package/build/main//321/201omponents/Flex/types.d.ts +19 -0
  293. package/build/main//321/201omponents/Flex/types.js +2 -0
  294. package/build/main//321/201omponents/Flex/types.js.map +1 -0
  295. package/build/main//321/201omponents/Header/Header.d.ts +5 -0
  296. package/build/main//321/201omponents/Header/Header.js +125 -0
  297. package/build/main//321/201omponents/Header/Header.js.map +1 -0
  298. package/build/main//321/201omponents/Header/index.d.ts +1 -0
  299. package/build/main//321/201omponents/Header/index.js +2 -0
  300. package/build/main//321/201omponents/Header/index.js.map +1 -0
  301. package/build/main//321/201omponents/Header/types.d.ts +47 -0
  302. package/build/main//321/201omponents/Header/types.js +2 -0
  303. package/build/main//321/201omponents/Header/types.js.map +1 -0
  304. package/build/main//321/201omponents/Input/Input.d.ts +4 -0
  305. package/build/main//321/201omponents/Input/Input.js +182 -0
  306. package/build/main//321/201omponents/Input/Input.js.map +1 -0
  307. package/build/main//321/201omponents/Input/index.d.ts +1 -0
  308. package/build/main//321/201omponents/Input/index.js +2 -0
  309. package/build/main//321/201omponents/Input/index.js.map +1 -0
  310. package/build/main//321/201omponents/Input/types.d.ts +27 -0
  311. package/build/main//321/201omponents/Input/types.js +2 -0
  312. package/build/main//321/201omponents/Input/types.js.map +1 -0
  313. package/build/main//321/201omponents/ListItem/ListItem.d.ts +23 -0
  314. package/build/main//321/201omponents/ListItem/ListItem.js +203 -0
  315. package/build/main//321/201omponents/ListItem/ListItem.js.map +1 -0
  316. package/build/main//321/201omponents/ListItem/index.d.ts +1 -0
  317. package/build/main//321/201omponents/ListItem/index.js +2 -0
  318. package/build/main//321/201omponents/ListItem/index.js.map +1 -0
  319. package/build/main//321/201omponents/ListItem/types.d.ts +41 -0
  320. package/build/main//321/201omponents/ListItem/types.js +2 -0
  321. package/build/main//321/201omponents/ListItem/types.js.map +1 -0
  322. package/build/main//321/201omponents/Loader/Loader.d.ts +4 -0
  323. package/build/main//321/201omponents/Loader/Loader.js +44 -0
  324. package/build/main//321/201omponents/Loader/Loader.js.map +1 -0
  325. package/build/main//321/201omponents/Loader/index.d.ts +1 -0
  326. package/build/main//321/201omponents/Loader/index.js +2 -0
  327. package/build/main//321/201omponents/Loader/index.js.map +1 -0
  328. package/build/main//321/201omponents/Loader/types.d.ts +18 -0
  329. package/build/main//321/201omponents/Loader/types.js +2 -0
  330. package/build/main//321/201omponents/Loader/types.js.map +1 -0
  331. package/build/main//321/201omponents/Modal/Modal.d.ts +4 -0
  332. package/build/main//321/201omponents/Modal/Modal.js +259 -0
  333. package/build/main//321/201omponents/Modal/Modal.js.map +1 -0
  334. package/build/main//321/201omponents/Modal/index.d.ts +1 -0
  335. package/build/main//321/201omponents/Modal/index.js +2 -0
  336. package/build/main//321/201omponents/Modal/index.js.map +1 -0
  337. package/build/main//321/201omponents/Modal/types.d.ts +41 -0
  338. package/build/main//321/201omponents/Modal/types.js +2 -0
  339. package/build/main//321/201omponents/Modal/types.js.map +1 -0
  340. package/build/main//321/201omponents/Notification/Notification.d.ts +8 -0
  341. package/build/main//321/201omponents/Notification/Notification.js +199 -0
  342. package/build/main//321/201omponents/Notification/Notification.js.map +1 -0
  343. package/build/main//321/201omponents/Notification/index.d.ts +1 -0
  344. package/build/main//321/201omponents/Notification/index.js +2 -0
  345. package/build/main//321/201omponents/Notification/index.js.map +1 -0
  346. package/build/main//321/201omponents/Notification/types.d.ts +44 -0
  347. package/build/main//321/201omponents/Notification/types.js +2 -0
  348. package/build/main//321/201omponents/Notification/types.js.map +1 -0
  349. package/build/main//321/201omponents/Profile/Profile.d.ts +4 -0
  350. package/build/main//321/201omponents/Profile/Profile.js +42 -0
  351. package/build/main//321/201omponents/Profile/Profile.js.map +1 -0
  352. package/build/main//321/201omponents/Profile/index.d.ts +1 -0
  353. package/build/main//321/201omponents/Profile/index.js +2 -0
  354. package/build/main//321/201omponents/Profile/index.js.map +1 -0
  355. package/build/main//321/201omponents/Profile/types.d.ts +14 -0
  356. package/build/main//321/201omponents/Profile/types.js +2 -0
  357. package/build/main//321/201omponents/Profile/types.js.map +1 -0
  358. package/build/main//321/201omponents/ProgressBar/ProgressBar.d.ts +4 -0
  359. package/build/main//321/201omponents/ProgressBar/ProgressBar.js +66 -0
  360. package/build/main//321/201omponents/ProgressBar/ProgressBar.js.map +1 -0
  361. package/build/main//321/201omponents/ProgressBar/index.d.ts +1 -0
  362. package/build/main//321/201omponents/ProgressBar/index.js +2 -0
  363. package/build/main//321/201omponents/ProgressBar/index.js.map +1 -0
  364. package/build/main//321/201omponents/ProgressBar/types.d.ts +7 -0
  365. package/build/main//321/201omponents/ProgressBar/types.js +2 -0
  366. package/build/main//321/201omponents/ProgressBar/types.js.map +1 -0
  367. package/build/main//321/201omponents/RadioButton/RadioButton.d.ts +4 -0
  368. package/build/main//321/201omponents/RadioButton/RadioButton.js +33 -0
  369. package/build/main//321/201omponents/RadioButton/RadioButton.js.map +1 -0
  370. package/build/main//321/201omponents/RadioButton/index.d.ts +1 -0
  371. package/build/main//321/201omponents/RadioButton/index.js +2 -0
  372. package/build/main//321/201omponents/RadioButton/index.js.map +1 -0
  373. package/build/main//321/201omponents/RadioButton/types.d.ts +12 -0
  374. package/build/main//321/201omponents/RadioButton/types.js +2 -0
  375. package/build/main//321/201omponents/RadioButton/types.js.map +1 -0
  376. package/build/main//321/201omponents/ScrollBar/ScrollBar.d.ts +5 -0
  377. package/build/main//321/201omponents/ScrollBar/ScrollBar.js +140 -0
  378. package/build/main//321/201omponents/ScrollBar/ScrollBar.js.map +1 -0
  379. package/build/main//321/201omponents/ScrollBar/index.d.ts +1 -0
  380. package/build/main//321/201omponents/ScrollBar/index.js +2 -0
  381. package/build/main//321/201omponents/ScrollBar/index.js.map +1 -0
  382. package/build/main//321/201omponents/ScrollBar/types.d.ts +24 -0
  383. package/build/main//321/201omponents/ScrollBar/types.js +2 -0
  384. package/build/main//321/201omponents/ScrollBar/types.js.map +1 -0
  385. package/build/main//321/201omponents/Skeleton/Skeleton.d.ts +4 -0
  386. package/build/main//321/201omponents/Skeleton/Skeleton.js +59 -0
  387. package/build/main//321/201omponents/Skeleton/Skeleton.js.map +1 -0
  388. package/build/main//321/201omponents/Skeleton/index.d.ts +1 -0
  389. package/build/main//321/201omponents/Skeleton/index.js +2 -0
  390. package/build/main//321/201omponents/Skeleton/index.js.map +1 -0
  391. package/build/main//321/201omponents/Skeleton/types.d.ts +17 -0
  392. package/build/main//321/201omponents/Skeleton/types.js +2 -0
  393. package/build/main//321/201omponents/Skeleton/types.js.map +1 -0
  394. package/build/main//321/201omponents/Stories/Stories.d.ts +4 -0
  395. package/build/main//321/201omponents/Stories/Stories.js +338 -0
  396. package/build/main//321/201omponents/Stories/Stories.js.map +1 -0
  397. package/build/main//321/201omponents/Stories/index.d.ts +1 -0
  398. package/build/main//321/201omponents/Stories/index.js +2 -0
  399. package/build/main//321/201omponents/Stories/index.js.map +1 -0
  400. package/build/main//321/201omponents/Stories/types.d.ts +71 -0
  401. package/build/main//321/201omponents/Stories/types.js +16 -0
  402. package/build/main//321/201omponents/Stories/types.js.map +1 -0
  403. package/build/main//321/201omponents/Switcher/Switcher.d.ts +4 -0
  404. package/build/main//321/201omponents/Switcher/Switcher.js +34 -0
  405. package/build/main//321/201omponents/Switcher/Switcher.js.map +1 -0
  406. package/build/main//321/201omponents/Switcher/index.d.ts +1 -0
  407. package/build/main//321/201omponents/Switcher/index.js +2 -0
  408. package/build/main//321/201omponents/Switcher/index.js.map +1 -0
  409. package/build/main//321/201omponents/Switcher/types.d.ts +8 -0
  410. package/build/main//321/201omponents/Switcher/types.js +2 -0
  411. package/build/main//321/201omponents/Switcher/types.js.map +1 -0
  412. package/build/main//321/201omponents/SyncLoader/SyncLoader.d.ts +5 -0
  413. package/build/main//321/201omponents/SyncLoader/SyncLoader.js +65 -0
  414. package/build/main//321/201omponents/SyncLoader/SyncLoader.js.map +1 -0
  415. package/build/main//321/201omponents/SyncLoader/index.d.ts +1 -0
  416. package/build/main//321/201omponents/SyncLoader/index.js +2 -0
  417. package/build/main//321/201omponents/SyncLoader/index.js.map +1 -0
  418. package/build/main//321/201omponents/SyncLoader/types.d.ts +8 -0
  419. package/build/main//321/201omponents/SyncLoader/types.js +2 -0
  420. package/build/main//321/201omponents/SyncLoader/types.js.map +1 -0
  421. package/build/main//321/201omponents/Textarea/Textarea.d.ts +4 -0
  422. package/build/main//321/201omponents/Textarea/Textarea.js +59 -0
  423. package/build/main//321/201omponents/Textarea/Textarea.js.map +1 -0
  424. package/build/main//321/201omponents/Textarea/index.d.ts +1 -0
  425. package/build/main//321/201omponents/Textarea/index.js +2 -0
  426. package/build/main//321/201omponents/Textarea/index.js.map +1 -0
  427. package/build/main//321/201omponents/Textarea/types.d.ts +13 -0
  428. package/build/main//321/201omponents/Textarea/types.js +2 -0
  429. package/build/main//321/201omponents/Textarea/types.js.map +1 -0
  430. package/build/main//321/201omponents/Toggle/Toggle.d.ts +4 -0
  431. package/build/main//321/201omponents/Toggle/Toggle.js +35 -0
  432. package/build/main//321/201omponents/Toggle/Toggle.js.map +1 -0
  433. package/build/main//321/201omponents/Toggle/index.d.ts +1 -0
  434. package/build/main//321/201omponents/Toggle/index.js +2 -0
  435. package/build/main//321/201omponents/Toggle/index.js.map +1 -0
  436. package/build/main//321/201omponents/Toggle/types.d.ts +12 -0
  437. package/build/main//321/201omponents/Toggle/types.js +2 -0
  438. package/build/main//321/201omponents/Toggle/types.js.map +1 -0
  439. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.d.ts +4 -0
  440. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js +31 -0
  441. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js.map +1 -0
  442. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.d.ts +4 -0
  443. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js +88 -0
  444. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js.map +1 -0
  445. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.d.ts +4 -0
  446. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js +23 -0
  447. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js.map +1 -0
  448. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.d.ts +4 -0
  449. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js +129 -0
  450. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js.map +1 -0
  451. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.d.ts +3 -0
  452. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js +137 -0
  453. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js.map +1 -0
  454. package/build/main//321/201omponents/UserDropdown/Option/Option.d.ts +4 -0
  455. package/build/main//321/201omponents/UserDropdown/Option/Option.js +80 -0
  456. package/build/main//321/201omponents/UserDropdown/Option/Option.js.map +1 -0
  457. package/build/main//321/201omponents/UserDropdown/SearchInCatalogButton/SearchInCatalogButton.d.ts +4 -0
  458. package/build/main//321/201omponents/UserDropdown/SearchInCatalogButton/SearchInCatalogButton.js +44 -0
  459. package/build/main//321/201omponents/UserDropdown/SearchInCatalogButton/SearchInCatalogButton.js.map +1 -0
  460. package/build/main//321/201omponents/UserDropdown/UserDropdown.d.ts +5 -0
  461. package/build/main//321/201omponents/UserDropdown/UserDropdown.js +549 -0
  462. package/build/main//321/201omponents/UserDropdown/UserDropdown.js.map +1 -0
  463. package/build/main//321/201omponents/UserDropdown/constants.d.ts +8 -0
  464. package/build/main//321/201omponents/UserDropdown/constants.js +10 -0
  465. package/build/main//321/201omponents/UserDropdown/constants.js.map +1 -0
  466. package/build/main//321/201omponents/UserDropdown/helpers.d.ts +105 -0
  467. package/build/main//321/201omponents/UserDropdown/helpers.js +143 -0
  468. package/build/main//321/201omponents/UserDropdown/helpers.js.map +1 -0
  469. package/build/main//321/201omponents/UserDropdown/index.d.ts +1 -0
  470. package/build/main//321/201omponents/UserDropdown/index.js +2 -0
  471. package/build/main//321/201omponents/UserDropdown/index.js.map +1 -0
  472. package/build/main//321/201omponents/UserDropdown/selectStyles.d.ts +15 -0
  473. package/build/main//321/201omponents/UserDropdown/selectStyles.js +69 -0
  474. package/build/main//321/201omponents/UserDropdown/selectStyles.js.map +1 -0
  475. package/build/main//321/201omponents/UserDropdown/types.d.ts +269 -0
  476. package/build/main//321/201omponents/UserDropdown/types.js +9 -0
  477. package/build/main//321/201omponents/UserDropdown/types.js.map +1 -0
  478. package/build/main//321/201omponents/types.d.ts +2 -0
  479. package/build/main//321/201omponents/types.js +2 -0
  480. package/build/main//321/201omponents/types.js.map +1 -0
  481. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/Notification/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA"}
@@ -0,0 +1,44 @@
1
+ import React, { ReactElement } from 'react';
2
+ import { ICommonProps, IFontFamilyProps, ILayoutTypeProps, TStyles } from '../../constants';
3
+ export type THandleActionClick = {
4
+ notificationId: string;
5
+ action?: () => void;
6
+ };
7
+ export type THandleClickCloseIcon = {
8
+ event: React.MouseEvent;
9
+ notificationId: string;
10
+ };
11
+ export type TRenderToastContainer = {
12
+ containerId: string;
13
+ distanceFromBottom: number;
14
+ };
15
+ export type TNotificationAction = {
16
+ text?: string;
17
+ color?: string;
18
+ onClick: () => void;
19
+ };
20
+ export interface INotificationProps extends ICommonProps, ILayoutTypeProps, IFontFamilyProps {
21
+ id: string;
22
+ type?: 'success' | 'info' | 'warning' | 'error' | 'failure' | 'mail' | 'mail-multi' | 'custom';
23
+ isAutoHidden?: boolean;
24
+ isCloseIconHidden?: boolean;
25
+ isAllIndefinitelyNeedToBeClosed?: boolean;
26
+ indefinitelyFullScreenPosition?: 'right' | 'left';
27
+ hideDuration?: number;
28
+ distanceFromBottom?: number;
29
+ containerClassName?: string;
30
+ className?: string;
31
+ containerStyles?: TStyles;
32
+ styles?: TStyles;
33
+ title?: string;
34
+ avatar?: {
35
+ src?: string;
36
+ username: string;
37
+ };
38
+ text?: string;
39
+ subText?: string;
40
+ iconColor?: string;
41
+ action?: TNotificationAction;
42
+ content?: ReactElement;
43
+ onClose?: (id?: string) => void;
44
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/Notification/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { IProfileProps } from './types';
2
+ import '../../styles/styles.scss';
3
+ declare const Profile: ({ username, email, isShowProfile, onChange, onClickLogout, isMultipleProfile, onClickAddProfile, width, logoutColor, addProfileColor, addProfileBackgroundColor, }: IProfileProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default Profile;
@@ -0,0 +1,42 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import { useEffect, useRef } from 'react';
14
+ import { generateColor } from '../../helpers';
15
+ import { COLORS } from '../../constants';
16
+ import { ReactComponent as LogoutIcon } from '../../assets/icons/logout.svg';
17
+ import { ReactComponent as AddProfileIcon } from '../../assets/icons/plus.svg';
18
+ import '../../styles/styles.scss';
19
+ var Profile = function (_a) {
20
+ var _b, _c, _d;
21
+ var username = _a.username, email = _a.email, _e = _a.isShowProfile, isShowProfile = _e === void 0 ? false : _e, _f = _a.onChange, onChange = _f === void 0 ? function () { return undefined; } : _f, onClickLogout = _a.onClickLogout, isMultipleProfile = _a.isMultipleProfile, onClickAddProfile = _a.onClickAddProfile, _g = _a.width, width = _g === void 0 ? 100 : _g, logoutColor = _a.logoutColor, addProfileColor = _a.addProfileColor, addProfileBackgroundColor = _a.addProfileBackgroundColor;
22
+ var ref = useRef(null);
23
+ var initials = (_d = (_c = (_b = username === null || username === void 0 ? void 0 : username.split(' ')) === null || _b === void 0 ? void 0 : _b.map(function (n) { return n[0]; })) === null || _c === void 0 ? void 0 : _c.join('.')) === null || _d === void 0 ? void 0 : _d.toUpperCase();
24
+ useEffect(function () {
25
+ var checkIfClickedOutside = function (e) {
26
+ var _a;
27
+ if (isShowProfile && (ref === null || ref === void 0 ? void 0 : ref.current) && !((_a = ref === null || ref === void 0 ? void 0 : ref.current) === null || _a === void 0 ? void 0 : _a.contains(e === null || e === void 0 ? void 0 : e.target))) {
28
+ onChange(false);
29
+ }
30
+ };
31
+ document.addEventListener('mousedown', checkIfClickedOutside);
32
+ return function () {
33
+ document.removeEventListener('mousedown', checkIfClickedOutside);
34
+ };
35
+ }, [isShowProfile, onChange]);
36
+ return (_jsxs("div", __assign({ ref: ref, className: "smartapp-profile__container" }, { children: [_jsx("div", __assign({ onClick: function () { return onChange(!isShowProfile); }, className: "smartapp-profile__avatar" }, { children: initials })), isShowProfile && (_jsxs("div", __assign({ style: { width: "".concat(width, "%") }, className: "smartapp-profile" }, { children: [_jsxs("div", __assign({ className: "smartapp-profile__current-profile" }, { children: [_jsxs("div", __assign({ className: "smartapp-profile__current-profile--info" }, { children: [_jsx("div", __assign({ className: "smartapp-profile__avatar" }, { children: initials })), _jsxs("div", __assign({ className: "smartapp-profile__current-profile--info__data" }, { children: [_jsx("p", __assign({ className: "smartapp-profile__current-profile--info__data--username" }, { children: username })), email && _jsx("p", __assign({ className: "smartapp-profile__current-profile--info__data--email" }, { children: email }))] }))] })), _jsx("div", __assign({ onClick: onClickLogout, className: "smartapp-profile__current-profile--logout" }, { children: _jsx(LogoutIcon, { style: { color: generateColor(logoutColor, COLORS.blue) } }) }))] })), isMultipleProfile && (_jsxs("div", __assign({ onClick: onClickAddProfile, className: "smartapp-profile__add-profile" }, { children: [_jsx("div", __assign({ className: "smartapp-profile__add-profile--icon" }, { children: _jsx(AddProfileIcon, { style: {
37
+ stroke: generateColor(addProfileColor, COLORS.blue),
38
+ color: generateColor(addProfileBackgroundColor, COLORS.lighterBlue),
39
+ } }) })), _jsx("p", __assign({ className: "smartapp-profile__add-profile--title" }, { children: "\u0414\u043E\u0431\u0430\u0432\u044C\u0442\u0435 \u0430\u043A\u043A\u0430\u0443\u043D\u0442" }))] })))] })))] })));
40
+ };
41
+ export default Profile;
42
+ //# sourceMappingURL=Profile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Profile.js","sourceRoot":"","sources":["../../../../src/сomponents/Profile/Profile.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAExC,OAAO,EAAE,cAAc,IAAI,UAAU,EAAE,MAAM,+BAA+B,CAAA;AAC5E,OAAO,EAAE,cAAc,IAAI,cAAc,EAAE,MAAM,6BAA6B,CAAA;AAC9E,OAAO,0BAA0B,CAAA;AAEjC,IAAM,OAAO,GAAG,UAAC,EAYD;;QAXd,QAAQ,cAAA,EACR,KAAK,WAAA,EACL,qBAAqB,EAArB,aAAa,mBAAG,KAAK,KAA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C,aAAa,CAAC,EAAxB,CAAwB,EAAE,SAAS,EAAC,0BAA0B,gBAC/E,QAAQ,IACL,EACL,aAAa,IAAI,CAChB,wBAAK,KAAK,EAAE,EAAE,KAAK,EAAE,UAAG,KAAK,MAAG,EAAE,EAAE,SAAS,EAAC,kBAAkB,iBAC9D,wBAAK,SAAS,EAAC,mCAAmC,iBAChD,wBAAK,SAAS,EAAC,yCAAyC,iBACtD,uBAAK,SAAS,EAAC,0BAA0B,gBAAE,QAAQ,IAAO,EAC1D,wBAAK,SAAS,EAAC,+CAA+C,iBAC5D,qBAAG,SAAS,EAAC,yDAAyD,gBAAE,QAAQ,IAAK,EACpF,KAAK,IAAI,qBAAG,SAAS,EAAC,sDAAsD,gBAAE,KAAK,IAAK,KACrF,KACF,EACN,uBAAK,OAAO,EAAE,aAAa,EAAE,SAAS,EAAC,2CAA2C,gBAChF,KAAC,UAAU,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,aAAa,CAAC,WAAW,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE,GAAI,IACrE,KACF,EACL,iBAAiB,IAAI,CACpB,wBAAK,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAC,+BAA+B,iBACxE,uBAAK,SAAS,EAAC,qCAAqC,gBAClD,KAAC,cAAc,IACb,KAAK,EAAE;wCACL,MAAM,EAAE,aAAa,CAAC,eAAe,EAAE,MAAM,CAAC,IAAI,CAAC;wCACnD,KAAK,EAAE,aAAa,CAAC,yBAAyB,EAAE,MAAM,CAAC,WAAW,CAAC;qCACpE,GACD,IACE,EACN,qBAAG,SAAS,EAAC,sCAAsC,iHAAqB,KACpE,CACP,KACG,CACP,KACG,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,OAAO,CAAA"}
@@ -0,0 +1 @@
1
+ export { default } from './Profile';
@@ -0,0 +1,2 @@
1
+ export { default } from './Profile';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/Profile/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA"}
@@ -0,0 +1,14 @@
1
+ import { IntRange } from '../types';
2
+ export interface IProfileProps {
3
+ username: string;
4
+ email?: string;
5
+ isShowProfile: boolean;
6
+ onChange: (isShowProfile: boolean) => void;
7
+ onClickLogout?: () => void;
8
+ isMultipleProfile?: boolean;
9
+ onClickAddProfile?: () => void;
10
+ width?: IntRange<1, 101>;
11
+ logoutColor?: string;
12
+ addProfileColor?: string;
13
+ addProfileBackgroundColor?: string;
14
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/Profile/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { IProgressBarProps } from './types';
2
+ import '../../styles/styles.scss';
3
+ declare const ProgressBar: ({ fontFamily, title, isShowDotsInTitle, className, styles }: IProgressBarProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default ProgressBar;
@@ -0,0 +1,66 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import { useEffect, useState } from 'react';
14
+ import classNames from 'classnames';
15
+ import { generateFontFamilyStyle, generateId } from '../../helpers';
16
+ import '../../styles/styles.scss';
17
+ var PROGRESS_LOOP_INTERVAL = 10;
18
+ var DOTS_BLINKING_ANIMATION_INTERVAL = 200;
19
+ var DOTS_ANIMATION_INTERVAL = 450;
20
+ var PROGRESS_LOOP_ITERATION_PAUSE = 1000;
21
+ var PROGRESS_LOOP_MIN_VALUE = -100;
22
+ var PROGRESS_LOOP_MAX_VALUE = 100;
23
+ var TITLE_DOTS_LOOP_MIN_VALUE = 0;
24
+ var TITLE_DOTS_LOOP_MAX_VALUE = 3;
25
+ var ProgressBar = function (_a) {
26
+ var fontFamily = _a.fontFamily, _b = _a.title, title = _b === void 0 ? '' : _b, _c = _a.isShowDotsInTitle, isShowDotsInTitle = _c === void 0 ? true : _c, className = _a.className, styles = _a.styles;
27
+ var _d = useState(false), isPaused = _d[0], setIsPaused = _d[1];
28
+ var _e = useState(true), isTitleDotsBlink = _e[0], setIsTitleDotsBlink = _e[1];
29
+ var _f = useState(0), loadedPartPosition = _f[0], setLoadedPartPosition = _f[1];
30
+ var _g = useState(TITLE_DOTS_LOOP_MIN_VALUE), titleDotsAnimationState = _g[0], setTitleDotsAnimationState = _g[1];
31
+ useEffect(function () {
32
+ var interval = setInterval(function () {
33
+ if (!isPaused) {
34
+ setLoadedPartPosition(function (prev) {
35
+ if (prev >= PROGRESS_LOOP_MAX_VALUE) {
36
+ setIsPaused(true);
37
+ setTimeout(function () { return setIsPaused(false); }, PROGRESS_LOOP_ITERATION_PAUSE);
38
+ return PROGRESS_LOOP_MIN_VALUE;
39
+ }
40
+ return prev + 1;
41
+ });
42
+ }
43
+ }, PROGRESS_LOOP_INTERVAL);
44
+ return function () { return clearInterval(interval); };
45
+ }, [isPaused]);
46
+ useEffect(function () {
47
+ if (isShowDotsInTitle) {
48
+ var interval_1 = setInterval(function () { return setTitleDotsAnimationState(function (prev) { return (prev === TITLE_DOTS_LOOP_MAX_VALUE ? TITLE_DOTS_LOOP_MIN_VALUE : prev + 1); }); }, DOTS_ANIMATION_INTERVAL);
49
+ return function () { return clearInterval(interval_1); };
50
+ }
51
+ }, [isShowDotsInTitle]);
52
+ useEffect(function () {
53
+ if (isShowDotsInTitle) {
54
+ var blinkingInterval_1 = setInterval(function () { return setIsTitleDotsBlink(!isTitleDotsBlink); }, DOTS_BLINKING_ANIMATION_INTERVAL);
55
+ return function () { return clearInterval(blinkingInterval_1); };
56
+ }
57
+ }, [isShowDotsInTitle, isTitleDotsBlink]);
58
+ var generateStylesForProgressBar = function () { return ({ left: "".concat(loadedPartPosition, "%") }); };
59
+ var renderTitleDotsAnimation = function () { return Array.from({ length: titleDotsAnimationState }).map(function () { return _jsx("span", { children: "." }, generateId()); }); };
60
+ return (_jsxs("div", __assign({ className: classNames('smartapp-progress-bar', className), style: __assign(__assign({}, generateFontFamilyStyle(fontFamily)), styles) }, { children: [title && (_jsxs("div", __assign({ className: "smartapp-progress-bar__title" }, { children: [_jsx("span", { children: title }), isShowDotsInTitle && (_jsx("div", __assign({ className: classNames('smartapp-progress-bar__title--dots-container', {
61
+ 'smartapp-progress-bar__title--dots-container__light': !isTitleDotsBlink,
62
+ 'smartapp-progress-bar__title--dots-container__hidden': titleDotsAnimationState === TITLE_DOTS_LOOP_MAX_VALUE,
63
+ }) }, { children: renderTitleDotsAnimation() })))] }))), _jsx("div", __assign({ className: "smartapp-progress-bar__background" }, { children: _jsx("div", { className: "smartapp-progress-bar__background--loaded", style: generateStylesForProgressBar() }) }))] })));
64
+ };
65
+ export default ProgressBar;
66
+ //# sourceMappingURL=ProgressBar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProgressBar.js","sourceRoot":"","sources":["../../../../src/сomponents/ProgressBar/ProgressBar.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAClD,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,uBAAuB,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAEnE,OAAO,0BAA0B,CAAA;AAEjC,IAAM,sBAAsB,GAAG,EAAE,CAAA;AACjC,IAAM,gCAAgC,GAAG,GAAG,CAAA;AAC5C,IAAM,uBAAuB,GAAG,GAAG,CAAA;AACnC,IAAM,6BAA6B,GAAG,IAAI,CA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,IAAI,CACR,wBAAK,SAAS,EAAC,8BAA8B,iBAC3C,yBAAO,KAAK,GAAQ,EACnB,iBAAiB,IAAI,CACpB,uBACE,SAAS,EAAE,UAAU,CAAC,8CAA8C,EAAE;4BACpE,qDAAqD,EAAE,CAAC,gBAAgB;4BACxE,sDAAsD,EAAE,uBAAuB,KAAK,yBAAyB;yBAC9G,CAAC,gBAED,wBAAwB,EAAE,IACvB,CACP,KACG,CACP,EACD,uBAAK,SAAS,EAAC,mCAAmC,gBAChD,cAAK,SAAS,EAAC,2CAA2C,EAAC,KAAK,EAAE,4BAA4B,EAAE,GAAI,IAChG,KACF,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,WAAW,CAAA"}
@@ -0,0 +1 @@
1
+ export { default } from './ProgressBar';
@@ -0,0 +1,2 @@
1
+ export { default } from './ProgressBar';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/ProgressBar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA"}
@@ -0,0 +1,7 @@
1
+ import { IFontFamilyProps, TStyles } from '../../constants';
2
+ export interface IProgressBarProps extends IFontFamilyProps {
3
+ title?: string;
4
+ isShowDotsInTitle?: boolean;
5
+ className?: string;
6
+ styles?: TStyles;
7
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/ProgressBar/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { IRadioButtonProps } from './types';
2
+ import '../../styles/styles.scss';
3
+ declare const RadioButton: ({ id, isDisabled, isChecked, className, styles, checkedColor, checkedHoverColor, checkedPressedColor, onChange, }: IRadioButtonProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default RadioButton;
@@ -0,0 +1,33 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import { useEffect, useRef } from 'react';
14
+ import classNames from 'classnames';
15
+ import { generateColor } from '../../helpers';
16
+ import { COLORS, EVENT_LISTENER_TYPES } from '../../constants';
17
+ import '../../styles/styles.scss';
18
+ var PRESSED_CLASS_NAME = 'smartapp-radio-button__pressed';
19
+ var RadioButton = function (_a) {
20
+ var id = _a.id, _b = _a.isDisabled, isDisabled = _b === void 0 ? false : _b, _c = _a.isChecked, isChecked = _c === void 0 ? false : _c, className = _a.className, styles = _a.styles, checkedColor = _a.checkedColor, checkedHoverColor = _a.checkedHoverColor, checkedPressedColor = _a.checkedPressedColor, onChange = _a.onChange;
21
+ var inputId = "smartapp-radio-button-".concat(id);
22
+ var radioButtonRef = useRef(null);
23
+ var radioButtonStyles = __assign({ '--radio-button-color': generateColor(checkedColor, COLORS.buttonPrimary), '--radio-button-hover-color': generateColor(checkedHoverColor, COLORS.buttonPrimaryHover), '--radio-button-pressed-color': generateColor(checkedPressedColor, COLORS.buttonPrimaryPressed) }, styles);
24
+ useEffect(function () {
25
+ window.addEventListener(EVENT_LISTENER_TYPES.mouseup, handleMouseUp);
26
+ return function () { return window.removeEventListener(EVENT_LISTENER_TYPES.mouseup, handleMouseUp); };
27
+ }, []);
28
+ var handleMouseDown = function () { var _a; return (_a = radioButtonRef.current) === null || _a === void 0 ? void 0 : _a.classList.add(PRESSED_CLASS_NAME); };
29
+ var handleMouseUp = function () { var _a; return (_a = radioButtonRef.current) === null || _a === void 0 ? void 0 : _a.classList.remove(PRESSED_CLASS_NAME); };
30
+ return (_jsx("div", __assign({ ref: radioButtonRef, className: classNames('smartapp-radio-button', className), style: radioButtonStyles }, { children: _jsx("label", __assign({ htmlFor: inputId, onClick: onChange, onMouseDown: handleMouseDown }, { children: _jsx("input", { type: "radio", id: inputId, checked: isChecked, disabled: isDisabled }) })) })));
31
+ };
32
+ export default RadioButton;
33
+ //# sourceMappingURL=RadioButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RadioButton.js","sourceRoot":"","sources":["../../../../src/сomponents/RadioButton/RadioButton.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAiB,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAC/D,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAC7C,OAAO,EAAE,MAAM,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAA;AAE9D,OAAO,0BAA0B,CAAA;AAEjC,IAAM,kBAAkB,GAAG,gCAAgC,CAAA;AAE3D,IAAM,WAAW,GAAG,UAAC,EAUD;QATlB,EAAE,QAAA,EACF,kBAAkB,EAAlB,UAAU,mBAAG,KAAK,KAAA,EAClB,iBAAiB,EAAjB,SAAS,mBAAG,KAAK,KAAA,EACjB,SAAS,eAAA,EACT,MAAM,YAAA,EACN,YAAY,kBAAA,EACZ,iBAAiB,uBAAA,EACjB,mBAAmB,yBAAA,EACnB,QAAQ,cAAA;IAER,IAAM,OAAO,GAAG,gCAAyB,EAAE,CAAE,CAAA;IAC7C,IAAM,cAAc,GAAG,MAAM,CAAwB,IAAI,CAAC,CAAA;IAE1D,IAAM,iBAAiB,GAAG,WACxB,sBAAsB,EAAE,aAAa,CAAC,YAAY,EAAE,MAAM,CAAC,aAAa,CAAC,EACzE,4BAA4B,EAAE,aAAa,CAAC,iBAAiB,EAAE,MAAM,CAAC,kBAAkB,CAAC,EACzF,8BAA8B,EAAE,aAAa,CAAC,mBAAmB,EAAE,MAAM,CAAC,oBAAoB,CAAC,IAC5F,MAAM,CACO,CAAA;IAElB,SAAS,CAAC;QACR,MAAM,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,OAAO,EAAE,aAAa,CAAC,CAAA;QACpE,OAAO,cAAM,OAAA,MAAM,CAAC,mBAAmB,CAAC,oBAAoB,CAAC,OAAO,EAAE,aAAa,CAAC,EAAvE,CAAuE,CAAA;IACtF,CAAC,EAAE,EAAE,CAAC,CAAA;IAEN,IAAM,eAAe,GAAG,sBAAM,OAAA,MAAA,cAAc,CAAC,OAAO,0CAAE,SAAS,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAA,EAAA,CAAA;IACvF,IAAM,aAAa,GAAG,sBAAM,OAAA,MAAA,cAAc,CAAC,OAAO,0CAAE,SAAS,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAA,EAAA,CAAA;IAExF,OAAO,CACL,uBAAK,GAAG,EAAE,cAAc,EAAE,SAAS,EAAE,UAAU,CAAC,uBAAuB,EAAE,SAAS,CAAC,EAAE,KAAK,EAAE,iBAAiB,gBAC3G,yBAAO,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,eAAe,gBACtE,gBAAO,IAAI,EAAC,OAAO,EAAC,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,GAAI,IACvE,IACJ,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,WAAW,CAAA"}
@@ -0,0 +1 @@
1
+ export { default } from './RadioButton';
@@ -0,0 +1,2 @@
1
+ export { default } from './RadioButton';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/RadioButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA"}
@@ -0,0 +1,12 @@
1
+ import { TStyles } from '../../constants';
2
+ export interface IRadioButtonProps {
3
+ id: string;
4
+ isDisabled?: boolean;
5
+ isChecked?: boolean;
6
+ className?: string;
7
+ styles?: TStyles;
8
+ checkedColor?: string;
9
+ checkedHoverColor?: string;
10
+ checkedPressedColor?: string;
11
+ onChange: () => void;
12
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/RadioButton/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import { IScrollBarProps } from './types';
2
+ import '../../styles/styles.scss';
3
+ export declare const DEFAULT_SCROLL_BAR_SIZE = "100%";
4
+ declare const ScrollBar: ({ platform, contentId, content, handleScroll, hideDuration, containerHeight, containerWidth, trackXHeight, trackYHeight, containerClassName, containerStyles, scrollbarRef, containerScrollRef, isShowHorizontalScroll, containerEdgeMargin, ...restProps }: IScrollBarProps) => import("react/jsx-runtime").JSX.Element;
5
+ export default ScrollBar;
@@ -0,0 +1,140 @@
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 Scrollbar from 'react-scrollbars-custom';
26
+ import classNames from 'classnames';
27
+ import { generateId, isWebPlatform } from '../../helpers';
28
+ import { DEFAULT_SCROLL_BAR_HIDE_DURATION, EVENT_LISTENER_TYPES, PLATFORM } from '../../constants';
29
+ import '../../styles/styles.scss';
30
+ var X_VALUE = 'x';
31
+ var Y_VALUE = 'y';
32
+ export var DEFAULT_SCROLL_BAR_SIZE = '100%';
33
+ var generateAxisValue = function (isXAxis) { return (isXAxis ? X_VALUE : Y_VALUE); };
34
+ var generateDefaultThumbClassname = function (isXAxis) { return "smartapp-scroll__thumb-".concat(generateAxisValue(isXAxis)); };
35
+ var generateScrollHeightWithMargin = function (trackHeight) { return "calc(".concat(trackHeight, " - 8px)"); };
36
+ var generateShowThumbClassname = function (isXAxis, isScrolling) {
37
+ var thumbClassname = generateDefaultThumbClassname(isXAxis);
38
+ return isScrolling ? "".concat(thumbClassname, "--show ").concat(thumbClassname) : "".concat(thumbClassname);
39
+ };
40
+ var ScrollBar = function (_a) {
41
+ 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_SIZE : _d, _e = _a.containerWidth, containerWidth = _e === void 0 ? DEFAULT_SCROLL_BAR_SIZE : _e, _f = _a.trackXHeight, trackXHeight = _f === void 0 ? DEFAULT_SCROLL_BAR_SIZE : _f, _g = _a.trackYHeight, trackYHeight = _g === void 0 ? DEFAULT_SCROLL_BAR_SIZE : _g, containerClassName = _a.containerClassName, containerStyles = _a.containerStyles, scrollbarRef = _a.scrollbarRef, containerScrollRef = _a.containerScrollRef, _h = _a.isShowHorizontalScroll, isShowHorizontalScroll = _h === void 0 ? false : _h, containerEdgeMargin = _a.containerEdgeMargin, restProps = __rest(_a, ["platform", "contentId", "content", "handleScroll", "hideDuration", "containerHeight", "containerWidth", "trackXHeight", "trackYHeight", "containerClassName", "containerStyles", "scrollbarRef", "containerScrollRef", "isShowHorizontalScroll", "containerEdgeMargin"]);
42
+ var _j = useState(generateId()), scrollbarKey = _j[0], setScrollbarKey = _j[1];
43
+ var _k = useState(false), scrollingX = _k[0], setScrollingX = _k[1];
44
+ var _l = useState(false), scrollingY = _l[0], setScrollingY = _l[1];
45
+ var _m = useState(0), scrollXValue = _m[0], setScrollXValue = _m[1];
46
+ var _o = useState(0), scrollYValue = _o[0], setScrollYValue = _o[1];
47
+ var _p = useState(false), draggingX = _p[0], setDraggingX = _p[1];
48
+ var _q = useState(false), draggingY = _q[0], setDraggingY = _q[1];
49
+ var _r = useState(false), trackXHovered = _r[0], setTrackXHovered = _r[1];
50
+ var _s = useState(false), trackYHovered = _s[0], setTrackYHovered = _s[1];
51
+ var pointerup = EVENT_LISTENER_TYPES.pointerup, mouseup = EVENT_LISTENER_TYPES.mouseup, touchcancel = EVENT_LISTENER_TYPES.touchcancel, touchend = EVENT_LISTENER_TYPES.touchend;
52
+ useEffect(function () {
53
+ var debounceTimeout = setTimeout(function () { return setScrollingX(false); }, hideDuration);
54
+ return function () { return clearTimeout(debounceTimeout); };
55
+ /* eslint-disable-next-line */
56
+ }, [scrollingX]);
57
+ useEffect(function () {
58
+ var debounceTimeout = setTimeout(function () { return setScrollingY(false); }, hideDuration);
59
+ return function () { return clearTimeout(debounceTimeout); };
60
+ /* eslint-disable-next-line */
61
+ }, [scrollingY]);
62
+ useLayoutEffect(function () {
63
+ if (contentId) {
64
+ setTrackXHovered(false);
65
+ setTrackYHovered(false);
66
+ setScrollingX(false);
67
+ setScrollingY(false);
68
+ setDraggingX(false);
69
+ setDraggingY(false);
70
+ setScrollbarKey(contentId);
71
+ }
72
+ }, [contentId]);
73
+ useEffect(function () {
74
+ var stopDraggingAll = function () {
75
+ setDraggingX(false);
76
+ setDraggingY(false);
77
+ };
78
+ window.addEventListener(pointerup, stopDraggingAll);
79
+ window.addEventListener(mouseup, stopDraggingAll);
80
+ window.addEventListener(touchend, stopDraggingAll, { passive: true });
81
+ window.addEventListener(touchcancel, stopDraggingAll, { passive: true });
82
+ return function () {
83
+ window.removeEventListener(pointerup, stopDraggingAll);
84
+ window.removeEventListener(mouseup, stopDraggingAll);
85
+ window.removeEventListener(touchend, stopDraggingAll);
86
+ window.removeEventListener(touchcancel, stopDraggingAll);
87
+ };
88
+ }, [mouseup, pointerup, touchcancel, touchend]);
89
+ var startDragX = function () { return startDrag(true); };
90
+ var startDragY = function () { return startDrag(false); };
91
+ var startDrag = useCallback(function (isXAxis) {
92
+ var setDragging = isXAxis ? setDraggingX : setDraggingY;
93
+ var setScrolling = isXAxis ? setScrollingX : setScrollingY;
94
+ setDragging(true);
95
+ setScrolling(true);
96
+ }, []);
97
+ var onScroll = function (scrollValues) {
98
+ handleScroll === null || handleScroll === void 0 ? void 0 : handleScroll(scrollValues);
99
+ if ('scrollLeft' in scrollValues) {
100
+ var scrollTop = scrollValues.scrollTop, scrollLeft = scrollValues.scrollLeft;
101
+ setScrollXValue(scrollLeft);
102
+ setScrollYValue(scrollTop);
103
+ var isXAxisWasScrolled = scrollLeft !== scrollXValue;
104
+ var isYAxisWasScrolled = scrollTop !== scrollYValue;
105
+ isXAxisWasScrolled && setScrollingX(true);
106
+ isYAxisWasScrolled && setScrollingY(true);
107
+ }
108
+ };
109
+ var generateThumbXClassName = useCallback(function () { return generateShowThumbClassname(true, scrollingX); }, [scrollingX]);
110
+ var generateThumbYClassName = useCallback(function () { return generateShowThumbClassname(false, scrollingY); }, [scrollingY]);
111
+ var generateMarginValue = function (isXTrack) { return (isXTrack ? "0 0 ".concat(containerEdgeMargin, "px 0") : "0 ".concat(containerEdgeMargin, "px 0 0")); };
112
+ var generateScrollerStyles = function (trackHeight, isXTrack) {
113
+ return ({
114
+ '--scroller-height': isShowHorizontalScroll ? generateScrollHeightWithMargin(trackHeight) : trackHeight,
115
+ margin: containerEdgeMargin ? generateMarginValue(isXTrack) : undefined,
116
+ left: isXTrack ? 0 : undefined,
117
+ });
118
+ };
119
+ var generateTrackProps = function (isXTrack, trackHeight) {
120
+ var _a;
121
+ var axis = generateAxisValue(isXTrack);
122
+ var isDragging = isXTrack ? draggingX : draggingY;
123
+ var isScrolling = isXTrack ? scrollingX : scrollingY;
124
+ var isHovered = isXTrack ? trackXHovered : trackYHovered;
125
+ var isHoverClassName = isScrolling && isHovered && isWebPlatform(platform);
126
+ var setTrackHovered = isXTrack ? setTrackXHovered : setTrackYHovered;
127
+ return {
128
+ className: classNames("smartapp-scroll__scroller-".concat(axis), (_a = {},
129
+ _a["smartapp-scroll__scroller-".concat(axis, "--hover")] = isHoverClassName,
130
+ _a["smartapp-scroll__scroller-".concat(axis, "--dragging")] = isDragging,
131
+ _a)),
132
+ style: generateScrollerStyles(trackHeight, isXTrack),
133
+ onMouseEnter: function () { return setTrackHovered(true); },
134
+ onMouseLeave: function () { return setTrackHovered(false); },
135
+ };
136
+ };
137
+ return (_jsx("div", __assign({ ref: containerScrollRef, style: __assign({ height: containerHeight, width: containerWidth }, 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: generateThumbYClassName(), onPointerDown: startDragY, onMouseDown: startDragY, onTouchStart: startDragY }, thumbXProps: { className: generateThumbXClassName(), onPointerDown: startDragX, onMouseDown: startDragX, onTouchStart: startDragX }, trackYProps: generateTrackProps(false, trackYHeight), trackXProps: generateTrackProps(true, trackXHeight), noScrollX: !isShowHorizontalScroll }, restProps, { children: content }), scrollbarKey) })));
138
+ };
139
+ export default ScrollBar;
140
+ //# sourceMappingURL=ScrollBar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScrollBar.js","sourceRoot":"","sources":["../../../../src/сomponents/ScrollBar/ScrollBar.tsx"],"names":[],"mappings":";;;;;;;;;;;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AE,EAAE,SAAS,EAAE,0BAA0B,EAAE,EACvD,WAAW,EAAE,EAAE,SAAS,EAAE,uBAAuB,EAAE,EAAE,aAAa,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,YAAY,EAAE,UAAU,EAAE,EACnI,WAAW,EAAE,EAAE,SAAS,EAAE,uBAAuB,EAAE,EAAE,aAAa,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,YAAY,EAAE,UAAU,EAAE,EACnI,WAAW,EAAE,kBAAkB,CAAC,KAAK,EAAE,YAAY,CAAC,EACpD,WAAW,EAAE,kBAAkB,CAAC,IAAI,EAAE,YAAY,CAAC,EACnD,SAAS,EAAE,CAAC,sBAAsB,IAC9B,SAAS,cAEZ,OAAO,KAbH,YAAY,CAcP,IACR,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,SAAS,CAAA"}
@@ -0,0 +1 @@
1
+ export { default } from './ScrollBar';
@@ -0,0 +1,2 @@
1
+ export { default } from './ScrollBar';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/ScrollBar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA"}
@@ -0,0 +1,24 @@
1
+ import React, { ReactNode, RefObject } from 'react';
2
+ import { Scrollbar, ScrollbarProps } from 'react-scrollbars-custom';
3
+ import { ScrollState } from 'react-scrollbars-custom/dist/types/types';
4
+ import { IPlatformProps, TStyles } from '../../constants';
5
+ type TScrollbarInstance = (instance: Scrollbar | null) => void;
6
+ type TDivInstance = (instance: HTMLDivElement | null) => void;
7
+ type TScrollbarRef = ((TScrollbarInstance | RefObject<Scrollbar>) & (TDivInstance | RefObject<HTMLDivElement>)) | null | undefined;
8
+ export interface IScrollBarProps extends Omit<ScrollbarProps, 'content' | 'ref'>, IPlatformProps {
9
+ trackXHeight?: string;
10
+ trackYHeight?: string;
11
+ containerHeight?: string;
12
+ containerWidth?: string;
13
+ containerClassName?: string;
14
+ containerStyles?: TStyles;
15
+ hideDuration?: number;
16
+ handleScroll?: (e: ScrollState | React.UIEvent<HTMLDivElement, UIEvent>) => void;
17
+ content: ReactNode;
18
+ contentId?: string;
19
+ scrollbarRef?: TScrollbarRef;
20
+ containerScrollRef?: React.Ref<HTMLDivElement>;
21
+ isShowHorizontalScroll?: boolean;
22
+ containerEdgeMargin?: number;
23
+ }
24
+ 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/ScrollBar/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { ISkeletonProps } from './types';
2
+ import '../../styles/styles.scss';
3
+ declare const Skeleton: ({ className, styles, baseColor, width, height, borderRadius, circle, containerRef, animationDuration, initialOffset, }: ISkeletonProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default Skeleton;