@expressms/smartapp-ui 2.9.2 → 2.9.3

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 (458) hide show
  1. package/build/main/assets/icons/arrow-back.svg +3 -0
  2. package/build/main/assets/icons/arrow-down.svg +3 -0
  3. package/build/main/assets/icons/arrow-up.svg +3 -0
  4. package/build/main/assets/icons/attachment-loader.svg +3 -0
  5. package/build/main/assets/icons/button-loader.svg +3 -0
  6. package/build/main/assets/icons/cancel-cross.svg +3 -0
  7. package/build/main/assets/icons/check-mark.svg +4 -0
  8. package/build/main/assets/icons/clear.svg +3 -0
  9. package/build/main/assets/icons/close-stories.svg +4 -0
  10. package/build/main/assets/icons/close.svg +10 -0
  11. package/build/main/assets/icons/contact-info.svg +12 -0
  12. package/build/main/assets/icons/corporate-user.svg +10 -0
  13. package/build/main/assets/icons/crown.svg +5 -0
  14. package/build/main/assets/icons/delete-chip.svg +3 -0
  15. package/build/main/assets/icons/distribution.svg +12 -0
  16. package/build/main/assets/icons/download.svg +4 -0
  17. package/build/main/assets/icons/error.svg +5 -0
  18. package/build/main/assets/icons/external-link.svg +3 -0
  19. package/build/main/assets/icons/eye-off.svg +10 -0
  20. package/build/main/assets/icons/eye.svg +10 -0
  21. package/build/main/assets/icons/file.svg +3 -0
  22. package/build/main/assets/icons/group.svg +3 -0
  23. package/build/main/assets/icons/info.svg +5 -0
  24. package/build/main/assets/icons/loader.svg +3 -0
  25. package/build/main/assets/icons/logout.svg +4 -0
  26. package/build/main/assets/icons/magnifying-glass.svg +3 -0
  27. package/build/main/assets/icons/mail.svg +3 -0
  28. package/build/main/assets/icons/meeting-room.svg +3 -0
  29. package/build/main/assets/icons/meeting-rooms-list.svg +5 -0
  30. package/build/main/assets/icons/more.svg +3 -0
  31. package/build/main/assets/icons/my-contact-user.svg +10 -0
  32. package/build/main/assets/icons/notification-close.svg +3 -0
  33. package/build/main/assets/icons/notification-error.svg +3 -0
  34. package/build/main/assets/icons/notification-failure.svg +3 -0
  35. package/build/main/assets/icons/notification-info.svg +5 -0
  36. package/build/main/assets/icons/notification-success.svg +4 -0
  37. package/build/main/assets/icons/notification-warning.svg +5 -0
  38. package/build/main/assets/icons/order.svg +6 -0
  39. package/build/main/assets/icons/plus.svg +4 -0
  40. package/build/main/assets/icons/private.svg +12 -0
  41. package/build/main/assets/icons/refresh.svg +3 -0
  42. package/build/main/assets/icons/search.svg +3 -0
  43. package/build/main/assets/icons/story-loader.svg +3 -0
  44. package/build/main/assets/icons/tick.svg +10 -0
  45. package/build/main/assets/icons/trash.svg +3 -0
  46. package/build/main/assets/icons/unread-mails.svg +4 -0
  47. package/build/main/assets/icons/warning-avatar.svg +4 -0
  48. package/build/main/assets/storybook/index.d.ts +21 -0
  49. package/build/main/assets/storybook/index.js +22 -0
  50. package/build/main/assets/storybook/index.js.map +1 -0
  51. package/build/main/constants/constants.d.ts +158 -0
  52. package/build/main/constants/constants.js +178 -0
  53. package/build/main/constants/constants.js.map +1 -0
  54. package/build/main/constants/index.d.ts +2 -0
  55. package/build/main/constants/index.js +3 -0
  56. package/build/main/constants/index.js.map +1 -0
  57. package/build/main/constants/types.d.ts +29 -0
  58. package/build/main/constants/types.js +2 -0
  59. package/build/main/constants/types.js.map +1 -0
  60. package/build/main/helpers/index.d.ts +25 -0
  61. package/build/main/helpers/index.js +113 -0
  62. package/build/main/helpers/index.js.map +1 -0
  63. package/build/main/hooks/useLongTap.d.ts +12 -0
  64. package/build/main/hooks/useLongTap.js +29 -0
  65. package/build/main/hooks/useLongTap.js.map +1 -0
  66. package/build/main/hooks/useModal.d.ts +21 -0
  67. package/build/main/hooks/useModal.js +60 -0
  68. package/build/main/hooks/useModal.js.map +1 -0
  69. package/build/main/index.d.ts +36 -0
  70. package/build/main/index.js +37 -0
  71. package/build/main/index.js.map +1 -0
  72. package/build/main/styles/index.d.ts +1 -0
  73. package/build/main/styles/index.js +2 -0
  74. package/build/main/styles/index.js.map +1 -0
  75. package/build/main/styles/main.js +0 -0
  76. package/build/main/styles/styles.scss +14 -0
  77. package/build/main//321/201omponents/ActionModal/ActionModal.d.ts +4 -0
  78. package/build/main//321/201omponents/ActionModal/ActionModal.js +55 -0
  79. package/build/main//321/201omponents/ActionModal/ActionModal.js.map +1 -0
  80. package/build/main//321/201omponents/ActionModal/index.d.ts +1 -0
  81. package/build/main//321/201omponents/ActionModal/index.js +2 -0
  82. package/build/main//321/201omponents/ActionModal/index.js.map +1 -0
  83. package/build/main//321/201omponents/ActionModal/types.d.ts +24 -0
  84. package/build/main//321/201omponents/ActionModal/types.js +2 -0
  85. package/build/main//321/201omponents/ActionModal/types.js.map +1 -0
  86. package/build/main//321/201omponents/AttachedFile/AttachedFile.d.ts +8 -0
  87. package/build/main//321/201omponents/AttachedFile/AttachedFile.js +60 -0
  88. package/build/main//321/201omponents/AttachedFile/AttachedFile.js.map +1 -0
  89. package/build/main//321/201omponents/AttachedFile/index.d.ts +1 -0
  90. package/build/main//321/201omponents/AttachedFile/index.js +2 -0
  91. package/build/main//321/201omponents/AttachedFile/index.js.map +1 -0
  92. package/build/main//321/201omponents/AttachedFile/types.d.ts +25 -0
  93. package/build/main//321/201omponents/AttachedFile/types.js +2 -0
  94. package/build/main//321/201omponents/AttachedFile/types.js.map +1 -0
  95. package/build/main//321/201omponents/Avatar/Avatar.d.ts +4 -0
  96. package/build/main//321/201omponents/Avatar/Avatar.js +150 -0
  97. package/build/main//321/201omponents/Avatar/Avatar.js.map +1 -0
  98. package/build/main//321/201omponents/Avatar/index.d.ts +1 -0
  99. package/build/main//321/201omponents/Avatar/index.js +2 -0
  100. package/build/main//321/201omponents/Avatar/index.js.map +1 -0
  101. package/build/main//321/201omponents/Avatar/types.d.ts +59 -0
  102. package/build/main//321/201omponents/Avatar/types.js +29 -0
  103. package/build/main//321/201omponents/Avatar/types.js.map +1 -0
  104. package/build/main//321/201omponents/Button/Button.d.ts +4 -0
  105. package/build/main//321/201omponents/Button/Button.js +63 -0
  106. package/build/main//321/201omponents/Button/Button.js.map +1 -0
  107. package/build/main//321/201omponents/Button/index.d.ts +1 -0
  108. package/build/main//321/201omponents/Button/index.js +2 -0
  109. package/build/main//321/201omponents/Button/index.js.map +1 -0
  110. package/build/main//321/201omponents/Button/types.d.ts +28 -0
  111. package/build/main//321/201omponents/Button/types.js +11 -0
  112. package/build/main//321/201omponents/Button/types.js.map +1 -0
  113. package/build/main//321/201omponents/CachedImage/CachedImage.d.ts +4 -0
  114. package/build/main//321/201omponents/CachedImage/CachedImage.js +59 -0
  115. package/build/main//321/201omponents/CachedImage/CachedImage.js.map +1 -0
  116. package/build/main//321/201omponents/CachedImage/helpers.d.ts +3 -0
  117. package/build/main//321/201omponents/CachedImage/helpers.js +40 -0
  118. package/build/main//321/201omponents/CachedImage/helpers.js.map +1 -0
  119. package/build/main//321/201omponents/CachedImage/index.d.ts +1 -0
  120. package/build/main//321/201omponents/CachedImage/index.js +2 -0
  121. package/build/main//321/201omponents/CachedImage/index.js.map +1 -0
  122. package/build/main//321/201omponents/CachedImage/types.d.ts +10 -0
  123. package/build/main//321/201omponents/CachedImage/types.js +2 -0
  124. package/build/main//321/201omponents/CachedImage/types.js.map +1 -0
  125. package/build/main//321/201omponents/Calendar/Calendar.d.ts +4 -0
  126. package/build/main//321/201omponents/Calendar/Calendar.js +97 -0
  127. package/build/main//321/201omponents/Calendar/Calendar.js.map +1 -0
  128. package/build/main//321/201omponents/Calendar/index.d.ts +1 -0
  129. package/build/main//321/201omponents/Calendar/index.js +2 -0
  130. package/build/main//321/201omponents/Calendar/index.js.map +1 -0
  131. package/build/main//321/201omponents/Calendar/types.d.ts +13 -0
  132. package/build/main//321/201omponents/Calendar/types.js +2 -0
  133. package/build/main//321/201omponents/Calendar/types.js.map +1 -0
  134. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.d.ts +4 -0
  135. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js +46 -0
  136. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js.map +1 -0
  137. package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.d.ts +4 -0
  138. package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.js +71 -0
  139. package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.js.map +1 -0
  140. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.d.ts +4 -0
  141. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js +41 -0
  142. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js.map +1 -0
  143. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.d.ts +4 -0
  144. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js +63 -0
  145. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js.map +1 -0
  146. package/build/main//321/201omponents/Charts/colors.d.ts +3 -0
  147. package/build/main//321/201omponents/Charts/colors.js +4 -0
  148. package/build/main//321/201omponents/Charts/colors.js.map +1 -0
  149. package/build/main//321/201omponents/Charts/constants.d.ts +46 -0
  150. package/build/main//321/201omponents/Charts/constants.js +43 -0
  151. package/build/main//321/201omponents/Charts/constants.js.map +1 -0
  152. package/build/main//321/201omponents/Charts/helpers.d.ts +17 -0
  153. package/build/main//321/201omponents/Charts/helpers.js +73 -0
  154. package/build/main//321/201omponents/Charts/helpers.js.map +1 -0
  155. package/build/main//321/201omponents/Charts/index.d.ts +3 -0
  156. package/build/main//321/201omponents/Charts/index.js +4 -0
  157. package/build/main//321/201omponents/Charts/index.js.map +1 -0
  158. package/build/main//321/201omponents/Charts/types.d.ts +88 -0
  159. package/build/main//321/201omponents/Charts/types.js +2 -0
  160. package/build/main//321/201omponents/Charts/types.js.map +1 -0
  161. package/build/main//321/201omponents/Charts/useEvents.d.ts +5 -0
  162. package/build/main//321/201omponents/Charts/useEvents.js +45 -0
  163. package/build/main//321/201omponents/Charts/useEvents.js.map +1 -0
  164. package/build/main//321/201omponents/Charts/usePieEvents.d.ts +6 -0
  165. package/build/main//321/201omponents/Charts/usePieEvents.js +57 -0
  166. package/build/main//321/201omponents/Charts/usePieEvents.js.map +1 -0
  167. package/build/main//321/201omponents/Checkbox/Checkbox.d.ts +4 -0
  168. package/build/main//321/201omponents/Checkbox/Checkbox.js +38 -0
  169. package/build/main//321/201omponents/Checkbox/Checkbox.js.map +1 -0
  170. package/build/main//321/201omponents/Checkbox/index.d.ts +1 -0
  171. package/build/main//321/201omponents/Checkbox/index.js +2 -0
  172. package/build/main//321/201omponents/Checkbox/index.js.map +1 -0
  173. package/build/main//321/201omponents/Checkbox/types.d.ts +12 -0
  174. package/build/main//321/201omponents/Checkbox/types.js +2 -0
  175. package/build/main//321/201omponents/Checkbox/types.js.map +1 -0
  176. package/build/main//321/201omponents/Chip/Chip.d.ts +4 -0
  177. package/build/main//321/201omponents/Chip/Chip.js +65 -0
  178. package/build/main//321/201omponents/Chip/Chip.js.map +1 -0
  179. package/build/main//321/201omponents/Chip/index.d.ts +1 -0
  180. package/build/main//321/201omponents/Chip/index.js +2 -0
  181. package/build/main//321/201omponents/Chip/index.js.map +1 -0
  182. package/build/main//321/201omponents/Chip/types.d.ts +21 -0
  183. package/build/main//321/201omponents/Chip/types.js +2 -0
  184. package/build/main//321/201omponents/Chip/types.js.map +1 -0
  185. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.d.ts +4 -0
  186. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js +70 -0
  187. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js.map +1 -0
  188. package/build/main//321/201omponents/ConfirmationModal/index.d.ts +1 -0
  189. package/build/main//321/201omponents/ConfirmationModal/index.js +2 -0
  190. package/build/main//321/201omponents/ConfirmationModal/index.js.map +1 -0
  191. package/build/main//321/201omponents/ConfirmationModal/types.d.ts +28 -0
  192. package/build/main//321/201omponents/ConfirmationModal/types.js +2 -0
  193. package/build/main//321/201omponents/ConfirmationModal/types.js.map +1 -0
  194. package/build/main//321/201omponents/ContextMenu/ContextMenu.d.ts +4 -0
  195. package/build/main//321/201omponents/ContextMenu/ContextMenu.js +81 -0
  196. package/build/main//321/201omponents/ContextMenu/ContextMenu.js.map +1 -0
  197. package/build/main//321/201omponents/ContextMenu/index.d.ts +1 -0
  198. package/build/main//321/201omponents/ContextMenu/index.js +2 -0
  199. package/build/main//321/201omponents/ContextMenu/index.js.map +1 -0
  200. package/build/main//321/201omponents/ContextMenu/types.d.ts +34 -0
  201. package/build/main//321/201omponents/ContextMenu/types.js +2 -0
  202. package/build/main//321/201omponents/ContextMenu/types.js.map +1 -0
  203. package/build/main//321/201omponents/CustomSelect/CustomSelect.d.ts +12 -0
  204. package/build/main//321/201omponents/CustomSelect/CustomSelect.js +243 -0
  205. package/build/main//321/201omponents/CustomSelect/CustomSelect.js.map +1 -0
  206. package/build/main//321/201omponents/CustomSelect/index.d.ts +1 -0
  207. package/build/main//321/201omponents/CustomSelect/index.js +2 -0
  208. package/build/main//321/201omponents/CustomSelect/index.js.map +1 -0
  209. package/build/main//321/201omponents/CustomSelect/selectStyles.d.ts +16 -0
  210. package/build/main//321/201omponents/CustomSelect/selectStyles.js +67 -0
  211. package/build/main//321/201omponents/CustomSelect/selectStyles.js.map +1 -0
  212. package/build/main//321/201omponents/CustomSelect/types.d.ts +64 -0
  213. package/build/main//321/201omponents/CustomSelect/types.js +2 -0
  214. package/build/main//321/201omponents/CustomSelect/types.js.map +1 -0
  215. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.d.ts +4 -0
  216. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js +58 -0
  217. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js.map +1 -0
  218. package/build/main//321/201omponents/CustomSelectProfiles/index.d.ts +1 -0
  219. package/build/main//321/201omponents/CustomSelectProfiles/index.js +2 -0
  220. package/build/main//321/201omponents/CustomSelectProfiles/index.js.map +1 -0
  221. package/build/main//321/201omponents/CustomSelectProfiles/types.d.ts +12 -0
  222. package/build/main//321/201omponents/CustomSelectProfiles/types.js +2 -0
  223. package/build/main//321/201omponents/CustomSelectProfiles/types.js.map +1 -0
  224. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.d.ts +4 -0
  225. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js +57 -0
  226. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js.map +1 -0
  227. package/build/main//321/201omponents/DragAndDrop/index.d.ts +1 -0
  228. package/build/main//321/201omponents/DragAndDrop/index.js +2 -0
  229. package/build/main//321/201omponents/DragAndDrop/index.js.map +1 -0
  230. package/build/main//321/201omponents/DragAndDrop/types.d.ts +24 -0
  231. package/build/main//321/201omponents/DragAndDrop/types.js +2 -0
  232. package/build/main//321/201omponents/DragAndDrop/types.js.map +1 -0
  233. package/build/main//321/201omponents/DraggablePopup/DraggablePopup.d.ts +4 -0
  234. package/build/main//321/201omponents/DraggablePopup/DraggablePopup.js +223 -0
  235. package/build/main//321/201omponents/DraggablePopup/DraggablePopup.js.map +1 -0
  236. package/build/main//321/201omponents/DraggablePopup/index.d.ts +1 -0
  237. package/build/main//321/201omponents/DraggablePopup/index.js +2 -0
  238. package/build/main//321/201omponents/DraggablePopup/index.js.map +1 -0
  239. package/build/main//321/201omponents/DraggablePopup/types.d.ts +87 -0
  240. package/build/main//321/201omponents/DraggablePopup/types.js +2 -0
  241. package/build/main//321/201omponents/DraggablePopup/types.js.map +1 -0
  242. package/build/main//321/201omponents/Error/Error.d.ts +4 -0
  243. package/build/main//321/201omponents/Error/Error.js +23 -0
  244. package/build/main//321/201omponents/Error/Error.js.map +1 -0
  245. package/build/main//321/201omponents/Error/index.d.ts +1 -0
  246. package/build/main//321/201omponents/Error/index.js +2 -0
  247. package/build/main//321/201omponents/Error/index.js.map +1 -0
  248. package/build/main//321/201omponents/Error/types.d.ts +10 -0
  249. package/build/main//321/201omponents/Error/types.js +2 -0
  250. package/build/main//321/201omponents/Error/types.js.map +1 -0
  251. package/build/main//321/201omponents/Flex/Flex.d.ts +2 -0
  252. package/build/main//321/201omponents/Flex/Flex.js +49 -0
  253. package/build/main//321/201omponents/Flex/Flex.js.map +1 -0
  254. package/build/main//321/201omponents/Flex/HFlex/HFlex.d.ts +5 -0
  255. package/build/main//321/201omponents/Flex/HFlex/HFlex.js +16 -0
  256. package/build/main//321/201omponents/Flex/HFlex/HFlex.js.map +1 -0
  257. package/build/main//321/201omponents/Flex/HFlex/index.d.ts +1 -0
  258. package/build/main//321/201omponents/Flex/HFlex/index.js +2 -0
  259. package/build/main//321/201omponents/Flex/HFlex/index.js.map +1 -0
  260. package/build/main//321/201omponents/Flex/VFlex/VFlex.d.ts +5 -0
  261. package/build/main//321/201omponents/Flex/VFlex/VFlex.js +16 -0
  262. package/build/main//321/201omponents/Flex/VFlex/VFlex.js.map +1 -0
  263. package/build/main//321/201omponents/Flex/VFlex/index.d.ts +1 -0
  264. package/build/main//321/201omponents/Flex/VFlex/index.js +2 -0
  265. package/build/main//321/201omponents/Flex/VFlex/index.js.map +1 -0
  266. package/build/main//321/201omponents/Flex/index.d.ts +3 -0
  267. package/build/main//321/201omponents/Flex/index.js +4 -0
  268. package/build/main//321/201omponents/Flex/index.js.map +1 -0
  269. package/build/main//321/201omponents/Flex/types.d.ts +15 -0
  270. package/build/main//321/201omponents/Flex/types.js +2 -0
  271. package/build/main//321/201omponents/Flex/types.js.map +1 -0
  272. package/build/main//321/201omponents/Header/Header.d.ts +5 -0
  273. package/build/main//321/201omponents/Header/Header.js +125 -0
  274. package/build/main//321/201omponents/Header/Header.js.map +1 -0
  275. package/build/main//321/201omponents/Header/index.d.ts +1 -0
  276. package/build/main//321/201omponents/Header/index.js +2 -0
  277. package/build/main//321/201omponents/Header/index.js.map +1 -0
  278. package/build/main//321/201omponents/Header/types.d.ts +46 -0
  279. package/build/main//321/201omponents/Header/types.js +2 -0
  280. package/build/main//321/201omponents/Header/types.js.map +1 -0
  281. package/build/main//321/201omponents/Input/Input.d.ts +4 -0
  282. package/build/main//321/201omponents/Input/Input.js +207 -0
  283. package/build/main//321/201omponents/Input/Input.js.map +1 -0
  284. package/build/main//321/201omponents/Input/index.d.ts +1 -0
  285. package/build/main//321/201omponents/Input/index.js +2 -0
  286. package/build/main//321/201omponents/Input/index.js.map +1 -0
  287. package/build/main//321/201omponents/Input/types.d.ts +29 -0
  288. package/build/main//321/201omponents/Input/types.js +2 -0
  289. package/build/main//321/201omponents/Input/types.js.map +1 -0
  290. package/build/main//321/201omponents/ListItem/ListItem.d.ts +23 -0
  291. package/build/main//321/201omponents/ListItem/ListItem.js +208 -0
  292. package/build/main//321/201omponents/ListItem/ListItem.js.map +1 -0
  293. package/build/main//321/201omponents/ListItem/index.d.ts +1 -0
  294. package/build/main//321/201omponents/ListItem/index.js +2 -0
  295. package/build/main//321/201omponents/ListItem/index.js.map +1 -0
  296. package/build/main//321/201omponents/ListItem/types.d.ts +42 -0
  297. package/build/main//321/201omponents/ListItem/types.js +2 -0
  298. package/build/main//321/201omponents/ListItem/types.js.map +1 -0
  299. package/build/main//321/201omponents/Loader/Loader.d.ts +4 -0
  300. package/build/main//321/201omponents/Loader/Loader.js +44 -0
  301. package/build/main//321/201omponents/Loader/Loader.js.map +1 -0
  302. package/build/main//321/201omponents/Loader/index.d.ts +1 -0
  303. package/build/main//321/201omponents/Loader/index.js +2 -0
  304. package/build/main//321/201omponents/Loader/index.js.map +1 -0
  305. package/build/main//321/201omponents/Loader/types.d.ts +18 -0
  306. package/build/main//321/201omponents/Loader/types.js +2 -0
  307. package/build/main//321/201omponents/Loader/types.js.map +1 -0
  308. package/build/main//321/201omponents/Modal/Modal.d.ts +4 -0
  309. package/build/main//321/201omponents/Modal/Modal.js +146 -0
  310. package/build/main//321/201omponents/Modal/Modal.js.map +1 -0
  311. package/build/main//321/201omponents/Modal/index.d.ts +1 -0
  312. package/build/main//321/201omponents/Modal/index.js +2 -0
  313. package/build/main//321/201omponents/Modal/index.js.map +1 -0
  314. package/build/main//321/201omponents/Modal/types.d.ts +35 -0
  315. package/build/main//321/201omponents/Modal/types.js +2 -0
  316. package/build/main//321/201omponents/Modal/types.js.map +1 -0
  317. package/build/main//321/201omponents/Notification/Notification.d.ts +8 -0
  318. package/build/main//321/201omponents/Notification/Notification.js +218 -0
  319. package/build/main//321/201omponents/Notification/Notification.js.map +1 -0
  320. package/build/main//321/201omponents/Notification/index.d.ts +1 -0
  321. package/build/main//321/201omponents/Notification/index.js +2 -0
  322. package/build/main//321/201omponents/Notification/index.js.map +1 -0
  323. package/build/main//321/201omponents/Notification/types.d.ts +45 -0
  324. package/build/main//321/201omponents/Notification/types.js +2 -0
  325. package/build/main//321/201omponents/Notification/types.js.map +1 -0
  326. package/build/main//321/201omponents/Profile/Profile.d.ts +4 -0
  327. package/build/main//321/201omponents/Profile/Profile.js +42 -0
  328. package/build/main//321/201omponents/Profile/Profile.js.map +1 -0
  329. package/build/main//321/201omponents/Profile/index.d.ts +1 -0
  330. package/build/main//321/201omponents/Profile/index.js +2 -0
  331. package/build/main//321/201omponents/Profile/index.js.map +1 -0
  332. package/build/main//321/201omponents/Profile/types.d.ts +14 -0
  333. package/build/main//321/201omponents/Profile/types.js +2 -0
  334. package/build/main//321/201omponents/Profile/types.js.map +1 -0
  335. package/build/main//321/201omponents/ProgressBar/ProgressBar.d.ts +4 -0
  336. package/build/main//321/201omponents/ProgressBar/ProgressBar.js +66 -0
  337. package/build/main//321/201omponents/ProgressBar/ProgressBar.js.map +1 -0
  338. package/build/main//321/201omponents/ProgressBar/index.d.ts +1 -0
  339. package/build/main//321/201omponents/ProgressBar/index.js +2 -0
  340. package/build/main//321/201omponents/ProgressBar/index.js.map +1 -0
  341. package/build/main//321/201omponents/ProgressBar/types.d.ts +7 -0
  342. package/build/main//321/201omponents/ProgressBar/types.js +2 -0
  343. package/build/main//321/201omponents/ProgressBar/types.js.map +1 -0
  344. package/build/main//321/201omponents/RadioButton/RadioButton.d.ts +4 -0
  345. package/build/main//321/201omponents/RadioButton/RadioButton.js +37 -0
  346. package/build/main//321/201omponents/RadioButton/RadioButton.js.map +1 -0
  347. package/build/main//321/201omponents/RadioButton/index.d.ts +1 -0
  348. package/build/main//321/201omponents/RadioButton/index.js +2 -0
  349. package/build/main//321/201omponents/RadioButton/index.js.map +1 -0
  350. package/build/main//321/201omponents/RadioButton/types.d.ts +12 -0
  351. package/build/main//321/201omponents/RadioButton/types.js +2 -0
  352. package/build/main//321/201omponents/RadioButton/types.js.map +1 -0
  353. package/build/main//321/201omponents/ScrollBar/ScrollBar.d.ts +5 -0
  354. package/build/main//321/201omponents/ScrollBar/ScrollBar.js +63 -0
  355. package/build/main//321/201omponents/ScrollBar/ScrollBar.js.map +1 -0
  356. package/build/main//321/201omponents/ScrollBar/index.d.ts +1 -0
  357. package/build/main//321/201omponents/ScrollBar/index.js +2 -0
  358. package/build/main//321/201omponents/ScrollBar/index.js.map +1 -0
  359. package/build/main//321/201omponents/ScrollBar/types.d.ts +20 -0
  360. package/build/main//321/201omponents/ScrollBar/types.js +2 -0
  361. package/build/main//321/201omponents/ScrollBar/types.js.map +1 -0
  362. package/build/main//321/201omponents/Skeleton/Skeleton.d.ts +4 -0
  363. package/build/main//321/201omponents/Skeleton/Skeleton.js +59 -0
  364. package/build/main//321/201omponents/Skeleton/Skeleton.js.map +1 -0
  365. package/build/main//321/201omponents/Skeleton/index.d.ts +1 -0
  366. package/build/main//321/201omponents/Skeleton/index.js +2 -0
  367. package/build/main//321/201omponents/Skeleton/index.js.map +1 -0
  368. package/build/main//321/201omponents/Skeleton/types.d.ts +17 -0
  369. package/build/main//321/201omponents/Skeleton/types.js +2 -0
  370. package/build/main//321/201omponents/Skeleton/types.js.map +1 -0
  371. package/build/main//321/201omponents/Stories/Stories.d.ts +4 -0
  372. package/build/main//321/201omponents/Stories/Stories.js +300 -0
  373. package/build/main//321/201omponents/Stories/Stories.js.map +1 -0
  374. package/build/main//321/201omponents/Stories/index.d.ts +1 -0
  375. package/build/main//321/201omponents/Stories/index.js +2 -0
  376. package/build/main//321/201omponents/Stories/index.js.map +1 -0
  377. package/build/main//321/201omponents/Stories/types.d.ts +70 -0
  378. package/build/main//321/201omponents/Stories/types.js +16 -0
  379. package/build/main//321/201omponents/Stories/types.js.map +1 -0
  380. package/build/main//321/201omponents/Switcher/Switcher.d.ts +4 -0
  381. package/build/main//321/201omponents/Switcher/Switcher.js +34 -0
  382. package/build/main//321/201omponents/Switcher/Switcher.js.map +1 -0
  383. package/build/main//321/201omponents/Switcher/index.d.ts +1 -0
  384. package/build/main//321/201omponents/Switcher/index.js +2 -0
  385. package/build/main//321/201omponents/Switcher/index.js.map +1 -0
  386. package/build/main//321/201omponents/Switcher/types.d.ts +8 -0
  387. package/build/main//321/201omponents/Switcher/types.js +2 -0
  388. package/build/main//321/201omponents/Switcher/types.js.map +1 -0
  389. package/build/main//321/201omponents/SyncLoader/SyncLoader.d.ts +5 -0
  390. package/build/main//321/201omponents/SyncLoader/SyncLoader.js +65 -0
  391. package/build/main//321/201omponents/SyncLoader/SyncLoader.js.map +1 -0
  392. package/build/main//321/201omponents/SyncLoader/index.d.ts +1 -0
  393. package/build/main//321/201omponents/SyncLoader/index.js +2 -0
  394. package/build/main//321/201omponents/SyncLoader/index.js.map +1 -0
  395. package/build/main//321/201omponents/SyncLoader/types.d.ts +9 -0
  396. package/build/main//321/201omponents/SyncLoader/types.js +2 -0
  397. package/build/main//321/201omponents/SyncLoader/types.js.map +1 -0
  398. package/build/main//321/201omponents/Textarea/Textarea.d.ts +4 -0
  399. package/build/main//321/201omponents/Textarea/Textarea.js +96 -0
  400. package/build/main//321/201omponents/Textarea/Textarea.js.map +1 -0
  401. package/build/main//321/201omponents/Textarea/index.d.ts +1 -0
  402. package/build/main//321/201omponents/Textarea/index.js +2 -0
  403. package/build/main//321/201omponents/Textarea/index.js.map +1 -0
  404. package/build/main//321/201omponents/Textarea/types.d.ts +12 -0
  405. package/build/main//321/201omponents/Textarea/types.js +2 -0
  406. package/build/main//321/201omponents/Textarea/types.js.map +1 -0
  407. package/build/main//321/201omponents/Toggle/Toggle.d.ts +4 -0
  408. package/build/main//321/201omponents/Toggle/Toggle.js +38 -0
  409. package/build/main//321/201omponents/Toggle/Toggle.js.map +1 -0
  410. package/build/main//321/201omponents/Toggle/index.d.ts +1 -0
  411. package/build/main//321/201omponents/Toggle/index.js +2 -0
  412. package/build/main//321/201omponents/Toggle/index.js.map +1 -0
  413. package/build/main//321/201omponents/Toggle/types.d.ts +12 -0
  414. package/build/main//321/201omponents/Toggle/types.js +2 -0
  415. package/build/main//321/201omponents/Toggle/types.js.map +1 -0
  416. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.d.ts +4 -0
  417. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js +32 -0
  418. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js.map +1 -0
  419. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.d.ts +4 -0
  420. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js +82 -0
  421. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js.map +1 -0
  422. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.d.ts +4 -0
  423. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js +23 -0
  424. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js.map +1 -0
  425. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.d.ts +4 -0
  426. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js +132 -0
  427. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js.map +1 -0
  428. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.d.ts +3 -0
  429. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js +97 -0
  430. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js.map +1 -0
  431. package/build/main//321/201omponents/UserDropdown/Option/Option.d.ts +4 -0
  432. package/build/main//321/201omponents/UserDropdown/Option/Option.js +93 -0
  433. package/build/main//321/201omponents/UserDropdown/Option/Option.js.map +1 -0
  434. package/build/main//321/201omponents/UserDropdown/SearchInCatalogButton/SearchInCatalogButton.d.ts +4 -0
  435. package/build/main//321/201omponents/UserDropdown/SearchInCatalogButton/SearchInCatalogButton.js +43 -0
  436. package/build/main//321/201omponents/UserDropdown/SearchInCatalogButton/SearchInCatalogButton.js.map +1 -0
  437. package/build/main//321/201omponents/UserDropdown/UserDropdown.d.ts +5 -0
  438. package/build/main//321/201omponents/UserDropdown/UserDropdown.js +484 -0
  439. package/build/main//321/201omponents/UserDropdown/UserDropdown.js.map +1 -0
  440. package/build/main//321/201omponents/UserDropdown/constants.d.ts +7 -0
  441. package/build/main//321/201omponents/UserDropdown/constants.js +9 -0
  442. package/build/main//321/201omponents/UserDropdown/constants.js.map +1 -0
  443. package/build/main//321/201omponents/UserDropdown/helpers.d.ts +98 -0
  444. package/build/main//321/201omponents/UserDropdown/helpers.js +146 -0
  445. package/build/main//321/201omponents/UserDropdown/helpers.js.map +1 -0
  446. package/build/main//321/201omponents/UserDropdown/index.d.ts +1 -0
  447. package/build/main//321/201omponents/UserDropdown/index.js +2 -0
  448. package/build/main//321/201omponents/UserDropdown/index.js.map +1 -0
  449. package/build/main//321/201omponents/UserDropdown/selectStyles.d.ts +15 -0
  450. package/build/main//321/201omponents/UserDropdown/selectStyles.js +80 -0
  451. package/build/main//321/201omponents/UserDropdown/selectStyles.js.map +1 -0
  452. package/build/main//321/201omponents/UserDropdown/types.d.ts +251 -0
  453. package/build/main//321/201omponents/UserDropdown/types.js +9 -0
  454. package/build/main//321/201omponents/UserDropdown/types.js.map +1 -0
  455. package/build/main//321/201omponents/types.d.ts +2 -0
  456. package/build/main//321/201omponents/types.js +2 -0
  457. package/build/main//321/201omponents/types.js.map +1 -0
  458. package/package.json +1 -1
@@ -0,0 +1,70 @@
1
+ import { ReactElement } from 'react';
2
+ import { 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: () => 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 {
52
+ isCloseIconHidden?: boolean;
53
+ fontFamily?: string;
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
+ groupStories: TGroupStories | null;
65
+ allGroupsStories: TGroupStories[];
66
+ changeStoryToViewed?: (story: TStoryItem, groupStories: TGroupStories) => void;
67
+ changeGroupStoriesToViewed?: (groupStories: TGroupStories) => void;
68
+ handleCloseGroupStories: () => void;
69
+ }
70
+ 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 Slider from 'react-slick';
14
+ import { NavLink } from 'react-router-dom';
15
+ import '../../styles/styles.scss';
16
+ var Switcher = function (_a) {
17
+ var pages = _a.pages;
18
+ var sliderSettings = {
19
+ variableWidth: true,
20
+ dots: false,
21
+ centerPadding: '60px',
22
+ swipeToSlide: true,
23
+ slidesToShow: 3,
24
+ arrows: false,
25
+ infinite: false,
26
+ speed: 300,
27
+ };
28
+ return (_jsx("div", __assign({ className: "smartapp-switcher" }, { children: _jsx(Slider, __assign({}, sliderSettings, { children: pages.map(function (page) { return (_jsx(NavLink, __assign({ className: function (_a) {
29
+ var isActive = _a.isActive;
30
+ return isActive ? ' smartapp-switcher__instance smartapp-switcher__instance--active' : 'smartapp-switcher__instance';
31
+ }, to: page.route }, { children: page.title }), page.route)); }) })) })));
32
+ };
33
+ export default Switcher;
34
+ //# sourceMappingURL=Switcher.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Switcher.js","sourceRoot":"","sources":["../../../../src/сomponents/Switcher/Switcher.tsx"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,MAAM,MAAM,aAAa,CAAA;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAE1C,OAAO,0BAA0B,CAAA;AAEjC,IAAM,QAAQ,GAAG,UAAC,EAAyB;QAAvB,KAAK,WAAA;IACvB,IAAM,cAAc,GAAG;QACrB,aAAa,EAAE,IAAI;QACnB,IAAI,EAAE,KAAK;QACX,aAAa,EAAE,MAAM;QACrB,YAAY,EAAE,IAAI;QAClB,YAAY,EAAE,CAAC;QACf,MAAM,EAAE,KAAK;QACb,QAAQ,EAAE,KAAK;QACf,KAAK,EAAE,GAAG;KACX,CAAA;IAED,OAAO,CACL,uBAAK,SAAS,EAAC,mBAAmB,gBAChC,KAAC,MAAM,eAAK,cAAc,cACvB,KAAK,CAAC,GAAG,CAAC,UAAC,IAAI,IAAK,OAAA,CACnB,KAAC,OAAO,aAEN,SAAS,EAAE,UAAC,EAAY;wBAAV,QAAQ,cAAA;oBACpB,OAAA,QAAQ,CAAC,CAAC,CAAC,kEAAkE,CAAC,CAAC,CAAC,6BAA6B;gBAA7G,CAA6G,EAE/G,EAAE,EAAE,IAAI,CAAC,KAAK,gBAEb,IAAI,CAAC,KAAK,KANN,IAAI,CAAC,KAAK,CAOP,CACX,EAVoB,CAUpB,CAAC,IACK,IACL,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,QAAQ,CAAA"}
@@ -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;
@@ -0,0 +1,65 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
13
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
14
+ if (ar || !(i in from)) {
15
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
16
+ ar[i] = from[i];
17
+ }
18
+ }
19
+ return to.concat(ar || Array.prototype.slice.call(from));
20
+ };
21
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
22
+ import { useEffect } from 'react';
23
+ import classNames from 'classnames';
24
+ import Color from 'color';
25
+ import { normal } from 'color-blend';
26
+ import { ReactComponent as LoaderIcon } from '../../assets/icons/loader.svg';
27
+ import { COLORS, FONT_FAMILY, THEME } from '../../constants';
28
+ import { generateColor, isDarkTheme } from '../../helpers';
29
+ import '../../styles/styles.scss';
30
+ export var DEFAULT_SYNC_LOADER_TEXT = 'Обновление';
31
+ var SyncLoader = function (_a) {
32
+ var isLoading = _a.isLoading, _b = _a.text, text = _b === void 0 ? DEFAULT_SYNC_LOADER_TEXT : _b, _c = _a.theme, theme = _c === void 0 ? THEME.default : _c, className = _a.className, styles = _a.styles, color = _a.color, _d = _a.fontFamily, fontFamily = _d === void 0 ? FONT_FAMILY.openSans : _d;
33
+ var loaderColor = generateColor(color, COLORS.blue);
34
+ var generateBackgroundStyles = function () {
35
+ var _a = Color(loaderColor).rgb().object(), red = _a.r, green = _a.g, blue = _a.b;
36
+ var backgroundColorRGBA = { r: red, g: green, b: blue, a: 0.2 };
37
+ var WHITE_COLOR = { r: 255, g: 255, b: 255, a: 1 };
38
+ var BLACK_COLOR = { r: 61, g: 61, b: 61, a: 1 };
39
+ var _b = isDarkTheme(theme) ? normal(BLACK_COLOR, backgroundColorRGBA) : normal(WHITE_COLOR, backgroundColorRGBA), r = _b.r, g = _b.g, b = _b.b, a = _b.a;
40
+ return __assign({ background: "rgba(".concat(r, ", ").concat(g, ", ").concat(b, ", ").concat(a, ")") }, styles);
41
+ };
42
+ useEffect(function () {
43
+ var timerId;
44
+ var dots = document.querySelectorAll('.smartapp-sync-loader__text--dots__dot');
45
+ var animationEndFunction = function () {
46
+ dots.forEach(function (dot) { return (dot.style.display = 'none'); });
47
+ timerId = setTimeout(function () {
48
+ dots.forEach(function (dot) { return (dot.style.display = 'unset'); });
49
+ }, 150);
50
+ };
51
+ if (isLoading) {
52
+ dots[0].addEventListener('animationend', animationEndFunction);
53
+ }
54
+ return function () {
55
+ clearTimeout(timerId);
56
+ isLoading && dots[0].removeEventListener('animationend', animationEndFunction);
57
+ };
58
+ }, [isLoading]);
59
+ if (!isLoading) {
60
+ return null;
61
+ }
62
+ return (_jsxs("div", __assign({ className: classNames('smartapp-sync-loader', className), style: generateBackgroundStyles() }, { children: [_jsx(LoaderIcon, { className: "smartapp-sync-loader__icon", style: { color: loaderColor } }), _jsxs("div", __assign({ style: { fontFamily: "".concat(fontFamily, ", sans-serif") }, className: classNames({ 'smartapp-sync-loader__text': true, 'smartapp-sync-loader__text--dark': isDarkTheme(theme) }) }, { children: [text, _jsx("div", __assign({ className: "smartapp-sync-loader__text--dots" }, { children: __spreadArray([], Array(3), true).map(function (_, index) { return (_jsx("div", __assign({ className: "smartapp-sync-loader__text--dots__dot" }, { children: "." }), index)); }) }))] }))] })));
63
+ };
64
+ export default SyncLoader;
65
+ //# sourceMappingURL=SyncLoader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SyncLoader.js","sourceRoot":"","sources":["../../../../src/сomponents/SyncLoader/SyncLoader.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,OAAc,E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ChF,CAAC,CAAA;IACH,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,CAAA;IAEf,IAAI,CAAC,SAAS,EAAE;QACd,OAAO,IAAI,CAAA;KACZ;IAED,OAAO,CACL,wBAAK,SAAS,EAAE,UAAU,CAAC,sBAAsB,EAAE,SAAS,CAAC,EAAE,KAAK,EAAE,wBAAwB,EAAE,iBAC9F,KAAC,UAAU,IAAC,SAAS,EAAC,4BAA4B,EAAC,KAAK,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,GAAI,EACpF,wBACE,KAAK,EAAE,EAAE,UAAU,EAAE,UAAG,UAAU,iBAAc,EAAE,EAClD,SAAS,EAAE,UAAU,CAAC,EAAE,4BAA4B,EAAE,IAAI,EAAE,kCAAkC,EAAE,WAAW,CAAC,KAAK,CAAC,EAAE,CAAC,iBAEpH,IAAI,EACL,uBAAK,SAAS,EAAC,kCAAkC,gBAC9C,kBAAI,KAAK,CAAC,CAAC,CAAC,QAAE,GAAG,CAAC,UAAC,CAAC,EAAE,KAAK,IAAK,OAAA,CAC/B,uBAAiB,SAAS,EAAC,uCAAuC,wBAAxD,KAAK,CAET,CACP,EAJgC,CAIhC,CAAC,IACE,KACF,KACF,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,UAAU,CAAA"}
@@ -0,0 +1 @@
1
+ export { default } from './SyncLoader';
@@ -0,0 +1,2 @@
1
+ export { default } from './SyncLoader';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/SyncLoader/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA"}
@@ -0,0 +1,9 @@
1
+ import { IThemeProps, TStyles } from '../../constants';
2
+ export interface ISyncLoaderProps extends IThemeProps {
3
+ isLoading: boolean;
4
+ text?: string;
5
+ className?: string;
6
+ styles?: TStyles;
7
+ color?: string;
8
+ fontFamily?: string;
9
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/SyncLoader/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { ITextareaProps } from './types';
2
+ import '../../styles/styles.scss';
3
+ declare const Textarea: ({ isAdjustToTextHeight, fillType, title, error, maxCharacters, containerClassName, className, containerStyles, onChange, ...props }: ITextareaProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default Textarea;
@@ -0,0 +1,96 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
23
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
+ import { useEffect, useRef, useState } from 'react';
25
+ import classNames from 'classnames';
26
+ import { isEmpty, isNil, isNull } from 'lodash';
27
+ import { isSecondaryFillType } from '../../helpers';
28
+ import { FILL_TYPE, INPUT_COUNTER_TIMEOUT, MIN_TEXTAREA_HEIGHT } from '../../constants';
29
+ import '../../styles/styles.scss';
30
+ var Textarea = function (_a) {
31
+ var _b = _a.isAdjustToTextHeight, isAdjustToTextHeight = _b === void 0 ? false : _b, _c = _a.fillType, fillType = _c === void 0 ? FILL_TYPE.primary : _c, title = _a.title, error = _a.error, maxCharacters = _a.maxCharacters, containerClassName = _a.containerClassName, className = _a.className, containerStyles = _a.containerStyles, onChange = _a.onChange, props = __rest(_a, ["isAdjustToTextHeight", "fillType", "title", "error", "maxCharacters", "containerClassName", "className", "containerStyles", "onChange"]);
32
+ var textareaRef = useRef(null);
33
+ var _d = useState(maxCharacters || 0), remainingCharacters = _d[0], setRemainingCharacters = _d[1];
34
+ var _e = useState(null), timeoutId = _e[0], setTimeoutId = _e[1];
35
+ var handleInput = function () {
36
+ var textareaRefCurrent = textareaRef.current;
37
+ if (textareaRefCurrent && isAdjustToTextHeight) {
38
+ textareaRefCurrent.style.height = MIN_TEXTAREA_HEIGHT;
39
+ textareaRefCurrent.style.height = "".concat(textareaRefCurrent.scrollHeight + 2, "px");
40
+ }
41
+ };
42
+ var isCounterVisible = function () {
43
+ if (isNil(maxCharacters)) {
44
+ return false;
45
+ }
46
+ // 30 percent of the maximum characters
47
+ var charactersToCompare = (maxCharacters * 30) / 100;
48
+ return remainingCharacters < charactersToCompare;
49
+ };
50
+ var handleSetTimeoutForCounter = function () {
51
+ var id = setTimeout(function () { return setTimeoutId(null); }, INPUT_COUNTER_TIMEOUT);
52
+ setTimeoutId(id);
53
+ };
54
+ var handleKeyDown = function () {
55
+ if (!remainingCharacters) {
56
+ !isNull(timeoutId) && clearTimeout(timeoutId);
57
+ handleSetTimeoutForCounter();
58
+ }
59
+ };
60
+ var handleChange = function (event) {
61
+ var textareaRefCurrent = textareaRef.current;
62
+ var valueLength = event.target.value.length;
63
+ onChange(event);
64
+ if (textareaRefCurrent && textareaRefCurrent.selectionStart === valueLength) {
65
+ textareaRefCurrent.scrollTop = textareaRefCurrent.scrollHeight;
66
+ }
67
+ if (maxCharacters) {
68
+ var remainingCharacters_1 = maxCharacters - valueLength;
69
+ setRemainingCharacters(remainingCharacters_1);
70
+ if (!!remainingCharacters_1 && !isNull(timeoutId)) {
71
+ clearTimeout(timeoutId);
72
+ setTimeoutId(null);
73
+ }
74
+ }
75
+ };
76
+ useEffect(function () {
77
+ if (!remainingCharacters) {
78
+ handleSetTimeoutForCounter();
79
+ }
80
+ }, [remainingCharacters]);
81
+ useEffect(function () {
82
+ isAdjustToTextHeight && handleInput();
83
+ // eslint-disable-next-line
84
+ }, [isAdjustToTextHeight]);
85
+ var renderCounter = function () {
86
+ return isCounterVisible() && (_jsx("div", __assign({ className: classNames('smartapp-textarea__container--counter', {
87
+ 'smartapp-textarea__container--counter__error': !isNull(timeoutId),
88
+ }) }, { children: remainingCharacters })));
89
+ };
90
+ return (_jsxs("div", __assign({ className: classNames('smartapp-textarea', containerClassName), style: containerStyles }, { children: [title && _jsx("div", __assign({ className: "smartapp-textarea__title" }, { children: title })), _jsxs("div", __assign({ className: "smartapp-textarea__container" }, { children: [_jsx("textarea", __assign({ ref: textareaRef, className: classNames('smartapp-textarea__container--field', {
91
+ 'smartapp-textarea__container--field__error': !isEmpty(error),
92
+ 'smartapp-textarea__container--field__secondary-fill-type': isSecondaryFillType(fillType),
93
+ }, className), maxLength: maxCharacters, onKeyDown: handleKeyDown, onChange: handleChange, onInput: handleInput }, props)), renderCounter()] })), error && _jsx("div", __assign({ className: "smartapp-textarea__error" }, { children: error }))] })));
94
+ };
95
+ export default Textarea;
96
+ //# sourceMappingURL=Textarea.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Textarea.js","sourceRoot":"","sources":["../../../../src/сomponents/Textarea/Textarea.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC1D,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAA;AACnD,OAAO,EAAE,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,GAAG;QACpB,OAAA,gBAAgB,EAAE,IAAI,CACpB,uBACE,SAAS,EAAE,UAAU,CAAC,uCAAuC,EAAE;gBAC7D,8CAA8C,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC;aACnE,CAAC,gBAED,mBAAmB,IAChB,CACP;IARD,CAQC,CAAA;IAEH,OAAO,CACL,wBAAK,SAAS,EAAE,UAAU,CAAC,mBAAmB,EAAE,kBAAkB,CAAC,EAAE,KAAK,EAAE,eAAe,iBACxF,KAAK,IAAI,uBAAK,SAAS,EAAC,0BAA0B,gBAAE,KAAK,IAAO,EACjE,wBAAK,SAAS,EAAC,8BAA8B,iBAC3C,4BACE,GAAG,EAAE,WAAW,EAChB,SAAS,EAAE,UAAU,CACnB,qCAAqC,EACrC;4BACE,4CAA4C,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;4BAC7D,0DAA0D,EAAE,mBAAmB,CAAC,QAAQ,CAAC;yBAC1F,EACD,SAAS,CACV,EACD,SAAS,EAAE,aAAa,EACxB,SAAS,EAAE,aAAa,EACxB,QAAQ,EAAE,YAAY,EACtB,OAAO,EAAE,WAAW,IAChB,KAAK,EACT,EACD,aAAa,EAAE,KACZ,EACL,KAAK,IAAI,uBAAK,SAAS,EAAC,0BAA0B,gBAAE,KAAK,IAAO,KAC7D,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,QAAQ,CAAA"}
@@ -0,0 +1 @@
1
+ export { default } from './Textarea';
@@ -0,0 +1,2 @@
1
+ export { default } from './Textarea';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/Textarea/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA"}
@@ -0,0 +1,12 @@
1
+ import { ChangeEvent, TextareaHTMLAttributes } from 'react';
2
+ import { IThemeProps, TStyles } from '../../constants';
3
+ export interface ITextareaProps extends IThemeProps, TextareaHTMLAttributes<HTMLTextAreaElement> {
4
+ isAdjustToTextHeight?: boolean;
5
+ fillType?: 'primary' | 'secondary';
6
+ title?: string;
7
+ error?: string;
8
+ maxCharacters?: number;
9
+ containerClassName?: string;
10
+ containerStyles?: TStyles;
11
+ onChange: (e: ChangeEvent<HTMLTextAreaElement>) => 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/Textarea/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { IToggleProps } from './types';
2
+ import '../../styles/styles.scss';
3
+ declare const Toggle: ({ id, isDisabled, isChecked, className, styles, checkedColor, checkedHoverColor, checkedPressedColor, onClick, }: IToggleProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default Toggle;
@@ -0,0 +1,38 @@
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 classNames from 'classnames';
15
+ import { COLORS } from '../../constants';
16
+ import { generateColor } from '../../helpers';
17
+ import '../../styles/styles.scss';
18
+ var Toggle = function (_a) {
19
+ var _b = _a.id, id = _b === void 0 ? 'toggle' : _b, _c = _a.isDisabled, isDisabled = _c === void 0 ? false : _c, _d = _a.isChecked, isChecked = _d === void 0 ? false : _d, className = _a.className, styles = _a.styles, checkedColor = _a.checkedColor, checkedHoverColor = _a.checkedHoverColor, checkedPressedColor = _a.checkedPressedColor, _e = _a.onClick, onClick = _e === void 0 ? function () { return undefined; } : _e;
20
+ var toggleRef = useRef(null);
21
+ useEffect(function () {
22
+ document.documentElement.style.setProperty('--toggle-color', generateColor(checkedColor, COLORS.blue));
23
+ document.documentElement.style.setProperty('--toggle-hover-color', generateColor(checkedHoverColor, COLORS.darkBlue));
24
+ document.documentElement.style.setProperty('--toggle-pressed-color', generateColor(checkedPressedColor, COLORS.darkerBlue));
25
+ }, [checkedColor, checkedHoverColor, checkedPressedColor]);
26
+ useEffect(function () {
27
+ window.addEventListener('mouseup', handleMouseUp);
28
+ return function () {
29
+ window.removeEventListener('mouseup', handleMouseUp);
30
+ };
31
+ }, []);
32
+ var handleClick = function () { return !isDisabled && onClick(); };
33
+ var handleMouseDown = function () { var _a; return (_a = toggleRef.current) === null || _a === void 0 ? void 0 : _a.classList.add('smartapp-toggle-wrapper__pressed'); };
34
+ var handleMouseUp = function () { var _a; return (_a = toggleRef.current) === null || _a === void 0 ? void 0 : _a.classList.remove('smartapp-toggle-wrapper__pressed'); };
35
+ return (_jsx("div", __assign({ ref: toggleRef, className: classNames('smartapp-toggle-wrapper', className), style: styles }, { children: _jsxs("label", __assign({ htmlFor: "smartapp-toggle-".concat(id), className: "smartapp-toggle", onClick: handleClick }, { children: [_jsx("input", { type: "checkbox", id: "smartapp-toggle-".concat(id), checked: isChecked, disabled: true }), _jsx("span", { className: classNames('smartapp-slider', { 'smartapp-slider__disabled': isDisabled }), onMouseDown: handleMouseDown })] })) })));
36
+ };
37
+ export default Toggle;
38
+ //# sourceMappingURL=Toggle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Toggle.js","sourceRoot":"","sources":["../../../../src/сomponents/Toggle/Toggle.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAChD,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAE7C,OAAO,0B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AAA,SAAS,CAAC,OAAO,0CAAE,SAAS,CAAC,GAAG,CAAC,kCAAkC,CAAC,CAAA,EAAA,CAAA;IAClG,IAAM,aAAa,GAAG,sBAAM,OAAA,MAAA,SAAS,CAAC,OAAO,0CAAE,SAAS,CAAC,MAAM,CAAC,kCAAkC,CAAC,CAAA,EAAA,CAAA;IAEnG,OAAO,CACL,uBAAK,GAAG,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,CAAC,yBAAyB,EAAE,SAAS,CAAC,EAAE,KAAK,EAAE,MAAM,gBAC7F,0BAAO,OAAO,EAAE,0BAAmB,EAAE,CAAE,EAAE,SAAS,EAAC,iBAAiB,EAAC,OAAO,EAAE,WAAW,iBACvF,gBAAO,IAAI,EAAC,UAAU,EAAC,EAAE,EAAE,0BAAmB,EAAE,CAAE,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,SAAG,EACnF,eAAM,SAAS,EAAE,UAAU,CAAC,iBAAiB,EAAE,EAAE,2BAA2B,EAAE,UAAU,EAAE,CAAC,EAAE,WAAW,EAAE,eAAe,GAAI,KACvH,IACJ,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,MAAM,CAAA"}
@@ -0,0 +1 @@
1
+ export { default } from './Toggle';
@@ -0,0 +1,2 @@
1
+ export { default } from './Toggle';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/Toggle/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA"}
@@ -0,0 +1,12 @@
1
+ import { TStyles } from '../../constants';
2
+ export interface IToggleProps {
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
+ onClick?: () => 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/Toggle/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { IContactBottomSheet } from '../types';
2
+ import '../../../styles/styles.scss';
3
+ declare const ContactBottomSheet: ({ language, avatar, name, email, serverName, company, department, companyPosition }: IContactBottomSheet) => import("react/jsx-runtime").JSX.Element;
4
+ export default ContactBottomSheet;
@@ -0,0 +1,32 @@
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 } from 'react';
14
+ import Avatar from '../../Avatar';
15
+ import ContactInfo from '../ContactInfo/ContactInfo';
16
+ import { AVATAR_SIZES } from '../../Avatar/types';
17
+ import { ReactComponent as CorporateUserIcon } from '../../../assets/icons/corporate-user.svg';
18
+ import '../../../styles/styles.scss';
19
+ var ContactBottomSheet = function (_a) {
20
+ var language = _a.language, avatar = _a.avatar, name = _a.name, email = _a.email, serverName = _a.serverName, company = _a.company, department = _a.department, companyPosition = _a.companyPosition;
21
+ useEffect(function () {
22
+ var modalContent = document.querySelector('.smartapp-modal__content');
23
+ var handlePreventDefault = function (event) { return event.preventDefault(); };
24
+ modalContent === null || modalContent === void 0 ? void 0 : modalContent.addEventListener('touchend', handlePreventDefault);
25
+ return function () {
26
+ modalContent === null || modalContent === void 0 ? void 0 : modalContent.removeEventListener('touchend', handlePreventDefault);
27
+ };
28
+ }, []);
29
+ return (_jsxs("div", __assign({ className: "smartapp-contact-bottom-sheet" }, { children: [_jsxs("div", __assign({ className: "smartapp-contact-bottom-sheet__header" }, { children: [_jsx(Avatar, { username: name, avatar: avatar, size: AVATAR_SIZES.size_48 }), _jsxs("div", __assign({ className: "smartapp-contact-bottom-sheet__header--text" }, { children: [_jsxs("div", __assign({ className: "smartapp-contact-bottom-sheet__header--text__name" }, { children: [_jsx(CorporateUserIcon, {}), _jsx("div", { children: name })] })), _jsx("div", __assign({ className: "smartapp-contact-bottom-sheet__header--text__email" }, { children: email }))] }))] })), _jsx(ContactInfo, { language: language, serverName: serverName, company: company, department: department, companyPosition: companyPosition })] })));
30
+ };
31
+ export default ContactBottomSheet;
32
+ //# sourceMappingURL=ContactBottomSheet.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContactBottomSheet.js","sourceRoot":"","sources":["../../../../../src/сomponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACxC,OAAO,MAAM,MAAM,cAAc,CAAA;AACjC,OAAO,WAAW,MAAM,4BAA4B,CAAA;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAEjD,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,0CAA0C,CAAA;AAC9F,OAAO,6BAA6B,CAAA;AAEpC,IAAM,kBAAkB,GAAG,UAAC,EAAwG;QAAtG,QAAQ,cAAA,EAAE,MAAM,YAAA,EAAE,IAAI,UAAA,EAAE,KAAK,WAAA,EAAE,UAAU,gBAAA,EAAE,OAAO,aAAA,EAAE,UAAU,gBAAA,EAAE,eAAe,qBAAA;IAC3G,SAAS,CAAC;QACR,IAAM,YAAY,GAA0B,QAAQ,CAAC,aAAa,CAAC,0BAA0B,CAAC,CAAA;QAC9F,IAAM,oBAAoB,GAAG,UAAC,KAAY,IAAK,OAAA,KAAK,CAAC,cAAc,EAAE,EAAtB,CAAsB,CAAA;QAErE,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,gBAAgB,CAAC,UAAU,EAAE,oBAAoB,CAAC,CAAA;QAEhE,OAAO;YACL,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,mBAAmB,CAAC,UAAU,EAAE,oBAAoB,CAAC,CAAA;QACrE,CAAC,CAAA;IACH,CAAC,EAAE,EAAE,CAAC,CAAA;IAEN,OAAO,CACL,wBAAK,SAAS,EAAC,+BAA+B,iBAC5C,wBAAK,SAAS,EAAC,uCAAuC,iBACpD,KAAC,MAAM,IAAC,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,CAAC,OAAO,GAAI,EACtE,wBAAK,SAAS,EAAC,6CAA6C,iBAC1D,wBAAK,SAAS,EAAC,mDAAmD,iBAChE,KAAC,iBAAiB,KAAG,EACrB,wBAAM,IAAI,GAAO,KACb,EACN,uBAAK,SAAS,EAAC,oDAAoD,gBAAE,KAAK,IAAO,KAC7E,KACF,EACN,KAAC,WAAW,IAAC,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,eAAe,EAAE,eAAe,GAAI,KACnI,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,kBAAkB,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { IContactInfo } from '../types';
2
+ import '../../../styles/styles.scss';
3
+ declare const ContactInfo: ({ elementRef, language, serverName, company, department, companyPosition }: IContactInfo) => import("react/jsx-runtime").JSX.Element;
4
+ export default ContactInfo;