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

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 (535) hide show
  1. package/build/main/assets/icons/accepted-invite-status.svg +4 -0
  2. package/build/main/assets/icons/arrow-back.svg +3 -0
  3. package/build/main/assets/icons/arrow-down.svg +3 -0
  4. package/build/main/assets/icons/arrow-up.svg +3 -0
  5. package/build/main/assets/icons/attachment-loader.svg +3 -0
  6. package/build/main/assets/icons/avatar-loader.svg +3 -0
  7. package/build/main/assets/icons/button-loader.svg +3 -0
  8. package/build/main/assets/icons/calendar-arrow-next.svg +3 -0
  9. package/build/main/assets/icons/calendar-arrow-prev.svg +3 -0
  10. package/build/main/assets/icons/check-mark-square.svg +4 -0
  11. package/build/main/assets/icons/check-mark.svg +4 -0
  12. package/build/main/assets/icons/chevron.svg +3 -0
  13. package/build/main/assets/icons/chip-info.svg +5 -0
  14. package/build/main/assets/icons/clear.svg +3 -0
  15. package/build/main/assets/icons/close-modal.svg +3 -0
  16. package/build/main/assets/icons/close-stories.svg +4 -0
  17. package/build/main/assets/icons/close.svg +3 -0
  18. package/build/main/assets/icons/contact-info.svg +5 -0
  19. package/build/main/assets/icons/copy.svg +3 -0
  20. package/build/main/assets/icons/corporate-user.svg +3 -0
  21. package/build/main/assets/icons/crown.svg +5 -0
  22. package/build/main/assets/icons/declined-invite-status.svg +4 -0
  23. package/build/main/assets/icons/delete-chip.svg +3 -0
  24. package/build/main/assets/icons/department.svg +3 -0
  25. package/build/main/assets/icons/distribution.svg +12 -0
  26. package/build/main/assets/icons/doc-small.svg +11 -0
  27. package/build/main/assets/icons/doc.svg +11 -0
  28. package/build/main/assets/icons/download.svg +3 -0
  29. package/build/main/assets/icons/error.svg +5 -0
  30. package/build/main/assets/icons/external-link.svg +3 -0
  31. package/build/main/assets/icons/eye-off.svg +5 -0
  32. package/build/main/assets/icons/eye-on.svg +4 -0
  33. package/build/main/assets/icons/file-small.svg +11 -0
  34. package/build/main/assets/icons/file.svg +11 -0
  35. package/build/main/assets/icons/global-address-book-user.svg +4 -0
  36. package/build/main/assets/icons/group.svg +3 -0
  37. package/build/main/assets/icons/image-no-preview-small.svg +11 -0
  38. package/build/main/assets/icons/image-no-preview.svg +11 -0
  39. package/build/main/assets/icons/indeterminate-check-mark-square.svg +4 -0
  40. package/build/main/assets/icons/info.svg +5 -0
  41. package/build/main/assets/icons/input-arrow-down.svg +3 -0
  42. package/build/main/assets/icons/input-arrow-up.svg +3 -0
  43. package/build/main/assets/icons/job-position.svg +3 -0
  44. package/build/main/assets/icons/loader.svg +3 -0
  45. package/build/main/assets/icons/logout.svg +4 -0
  46. package/build/main/assets/icons/magnifying-glass.svg +3 -0
  47. package/build/main/assets/icons/mail.svg +3 -0
  48. package/build/main/assets/icons/meeting-room.svg +3 -0
  49. package/build/main/assets/icons/more.svg +3 -0
  50. package/build/main/assets/icons/my-contacts-user.svg +3 -0
  51. package/build/main/assets/icons/needs-action-invite-status.svg +4 -0
  52. package/build/main/assets/icons/notification-close.svg +3 -0
  53. package/build/main/assets/icons/notification-error.svg +5 -0
  54. package/build/main/assets/icons/notification-failure-filled.svg +3 -0
  55. package/build/main/assets/icons/notification-failure.svg +3 -0
  56. package/build/main/assets/icons/notification-info-filled.svg +5 -0
  57. package/build/main/assets/icons/notification-info.svg +5 -0
  58. package/build/main/assets/icons/notification-success-filled.svg +4 -0
  59. package/build/main/assets/icons/notification-success.svg +4 -0
  60. package/build/main/assets/icons/office.svg +3 -0
  61. package/build/main/assets/icons/order.svg +6 -0
  62. package/build/main/assets/icons/pdf-small.svg +11 -0
  63. package/build/main/assets/icons/pdf.svg +11 -0
  64. package/build/main/assets/icons/play-small.svg +3 -0
  65. package/build/main/assets/icons/play.svg +3 -0
  66. package/build/main/assets/icons/plus.svg +4 -0
  67. package/build/main/assets/icons/ppt-small.svg +11 -0
  68. package/build/main/assets/icons/ppt.svg +11 -0
  69. package/build/main/assets/icons/private.svg +5 -0
  70. package/build/main/assets/icons/refresh.svg +3 -0
  71. package/build/main/assets/icons/remove.svg +3 -0
  72. package/build/main/assets/icons/search.svg +3 -0
  73. package/build/main/assets/icons/select-arrow-down.svg +3 -0
  74. package/build/main/assets/icons/select-arrow-up.svg +3 -0
  75. package/build/main/assets/icons/server.svg +3 -0
  76. package/build/main/assets/icons/story-loader.svg +3 -0
  77. package/build/main/assets/icons/tick.svg +10 -0
  78. package/build/main/assets/icons/trash.svg +3 -0
  79. package/build/main/assets/icons/txt-small.svg +11 -0
  80. package/build/main/assets/icons/txt.svg +11 -0
  81. package/build/main/assets/icons/video-no-preview-small.svg +11 -0
  82. package/build/main/assets/icons/video-no-preview.svg +11 -0
  83. package/build/main/assets/icons/warning-avatar.svg +4 -0
  84. package/build/main/assets/icons/xls-small.svg +11 -0
  85. package/build/main/assets/icons/xls.svg +11 -0
  86. package/build/main/assets/storybook/index.d.ts +27 -0
  87. package/build/main/assets/storybook/index.js +28 -0
  88. package/build/main/assets/storybook/index.js.map +1 -0
  89. package/build/main/constants/constants.d.ts +243 -0
  90. package/build/main/constants/constants.js +301 -0
  91. package/build/main/constants/constants.js.map +1 -0
  92. package/build/main/constants/index.d.ts +2 -0
  93. package/build/main/constants/index.js +3 -0
  94. package/build/main/constants/index.js.map +1 -0
  95. package/build/main/constants/types.d.ts +69 -0
  96. package/build/main/constants/types.js +2 -0
  97. package/build/main/constants/types.js.map +1 -0
  98. package/build/main/helpers/index.d.ts +33 -0
  99. package/build/main/helpers/index.js +204 -0
  100. package/build/main/helpers/index.js.map +1 -0
  101. package/build/main/hooks/useCharHintDisplay.d.ts +10 -0
  102. package/build/main/hooks/useCharHintDisplay.js +57 -0
  103. package/build/main/hooks/useCharHintDisplay.js.map +1 -0
  104. package/build/main/hooks/useMobileLongTap.d.ts +16 -0
  105. package/build/main/hooks/useMobileLongTap.js +65 -0
  106. package/build/main/hooks/useMobileLongTap.js.map +1 -0
  107. package/build/main/hooks/useModal.d.ts +30 -0
  108. package/build/main/hooks/useModal.js +275 -0
  109. package/build/main/hooks/useModal.js.map +1 -0
  110. package/build/main/index.d.ts +38 -0
  111. package/build/main/index.js +39 -0
  112. package/build/main/index.js.map +1 -0
  113. package/build/main/styles/index.d.ts +1 -0
  114. package/build/main/styles/index.js +2 -0
  115. package/build/main/styles/index.js.map +1 -0
  116. package/build/main/styles/main.js +0 -0
  117. package/build/main/styles/styles.scss +14 -0
  118. package/build/main//321/201omponents/ActionModal/ActionModal.d.ts +4 -0
  119. package/build/main//321/201omponents/ActionModal/ActionModal.js +53 -0
  120. package/build/main//321/201omponents/ActionModal/ActionModal.js.map +1 -0
  121. package/build/main//321/201omponents/ActionModal/index.d.ts +1 -0
  122. package/build/main//321/201omponents/ActionModal/index.js +2 -0
  123. package/build/main//321/201omponents/ActionModal/index.js.map +1 -0
  124. package/build/main//321/201omponents/ActionModal/types.d.ts +23 -0
  125. package/build/main//321/201omponents/ActionModal/types.js +2 -0
  126. package/build/main//321/201omponents/ActionModal/types.js.map +1 -0
  127. package/build/main//321/201omponents/AttachedFile/AttachedFile.d.ts +8 -0
  128. package/build/main//321/201omponents/AttachedFile/AttachedFile.js +201 -0
  129. package/build/main//321/201omponents/AttachedFile/AttachedFile.js.map +1 -0
  130. package/build/main//321/201omponents/AttachedFile/index.d.ts +1 -0
  131. package/build/main//321/201omponents/AttachedFile/index.js +2 -0
  132. package/build/main//321/201omponents/AttachedFile/index.js.map +1 -0
  133. package/build/main//321/201omponents/AttachedFile/types.d.ts +23 -0
  134. package/build/main//321/201omponents/AttachedFile/types.js +2 -0
  135. package/build/main//321/201omponents/AttachedFile/types.js.map +1 -0
  136. package/build/main//321/201omponents/Avatar/Avatar.d.ts +5 -0
  137. package/build/main//321/201omponents/Avatar/Avatar.js +254 -0
  138. package/build/main//321/201omponents/Avatar/Avatar.js.map +1 -0
  139. package/build/main//321/201omponents/Avatar/index.d.ts +1 -0
  140. package/build/main//321/201omponents/Avatar/index.js +2 -0
  141. package/build/main//321/201omponents/Avatar/index.js.map +1 -0
  142. package/build/main//321/201omponents/Avatar/types.d.ts +64 -0
  143. package/build/main//321/201omponents/Avatar/types.js +32 -0
  144. package/build/main//321/201omponents/Avatar/types.js.map +1 -0
  145. package/build/main//321/201omponents/Button/Button.d.ts +4 -0
  146. package/build/main//321/201omponents/Button/Button.js +68 -0
  147. package/build/main//321/201omponents/Button/Button.js.map +1 -0
  148. package/build/main//321/201omponents/Button/index.d.ts +1 -0
  149. package/build/main//321/201omponents/Button/index.js +2 -0
  150. package/build/main//321/201omponents/Button/index.js.map +1 -0
  151. package/build/main//321/201omponents/Button/types.d.ts +31 -0
  152. package/build/main//321/201omponents/Button/types.js +15 -0
  153. package/build/main//321/201omponents/Button/types.js.map +1 -0
  154. package/build/main//321/201omponents/CachedImage/CachedImage.d.ts +4 -0
  155. package/build/main//321/201omponents/CachedImage/CachedImage.js +59 -0
  156. package/build/main//321/201omponents/CachedImage/CachedImage.js.map +1 -0
  157. package/build/main//321/201omponents/CachedImage/helpers.d.ts +3 -0
  158. package/build/main//321/201omponents/CachedImage/helpers.js +40 -0
  159. package/build/main//321/201omponents/CachedImage/helpers.js.map +1 -0
  160. package/build/main//321/201omponents/CachedImage/index.d.ts +1 -0
  161. package/build/main//321/201omponents/CachedImage/index.js +2 -0
  162. package/build/main//321/201omponents/CachedImage/index.js.map +1 -0
  163. package/build/main//321/201omponents/CachedImage/types.d.ts +10 -0
  164. package/build/main//321/201omponents/CachedImage/types.js +2 -0
  165. package/build/main//321/201omponents/CachedImage/types.js.map +1 -0
  166. package/build/main//321/201omponents/Calendar/Calendar.d.ts +16 -0
  167. package/build/main//321/201omponents/Calendar/Calendar.js +294 -0
  168. package/build/main//321/201omponents/Calendar/Calendar.js.map +1 -0
  169. package/build/main//321/201omponents/Calendar/index.d.ts +1 -0
  170. package/build/main//321/201omponents/Calendar/index.js +2 -0
  171. package/build/main//321/201omponents/Calendar/index.js.map +1 -0
  172. package/build/main//321/201omponents/Calendar/types.d.ts +28 -0
  173. package/build/main//321/201omponents/Calendar/types.js +2 -0
  174. package/build/main//321/201omponents/Calendar/types.js.map +1 -0
  175. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.d.ts +4 -0
  176. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js +47 -0
  177. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js.map +1 -0
  178. package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.d.ts +4 -0
  179. package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.js +71 -0
  180. package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.js.map +1 -0
  181. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.d.ts +4 -0
  182. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js +42 -0
  183. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js.map +1 -0
  184. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.d.ts +4 -0
  185. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js +64 -0
  186. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js.map +1 -0
  187. package/build/main//321/201omponents/Charts/colors.d.ts +3 -0
  188. package/build/main//321/201omponents/Charts/colors.js +4 -0
  189. package/build/main//321/201omponents/Charts/colors.js.map +1 -0
  190. package/build/main//321/201omponents/Charts/constants.d.ts +42 -0
  191. package/build/main//321/201omponents/Charts/constants.js +42 -0
  192. package/build/main//321/201omponents/Charts/constants.js.map +1 -0
  193. package/build/main//321/201omponents/Charts/helpers.d.ts +17 -0
  194. package/build/main//321/201omponents/Charts/helpers.js +73 -0
  195. package/build/main//321/201omponents/Charts/helpers.js.map +1 -0
  196. package/build/main//321/201omponents/Charts/index.d.ts +3 -0
  197. package/build/main//321/201omponents/Charts/index.js +4 -0
  198. package/build/main//321/201omponents/Charts/index.js.map +1 -0
  199. package/build/main//321/201omponents/Charts/types.d.ts +89 -0
  200. package/build/main//321/201omponents/Charts/types.js +2 -0
  201. package/build/main//321/201omponents/Charts/types.js.map +1 -0
  202. package/build/main//321/201omponents/Charts/useEvents.d.ts +5 -0
  203. package/build/main//321/201omponents/Charts/useEvents.js +45 -0
  204. package/build/main//321/201omponents/Charts/useEvents.js.map +1 -0
  205. package/build/main//321/201omponents/Charts/usePieEvents.d.ts +6 -0
  206. package/build/main//321/201omponents/Charts/usePieEvents.js +57 -0
  207. package/build/main//321/201omponents/Charts/usePieEvents.js.map +1 -0
  208. package/build/main//321/201omponents/Checkbox/Checkbox.d.ts +8 -0
  209. package/build/main//321/201omponents/Checkbox/Checkbox.js +48 -0
  210. package/build/main//321/201omponents/Checkbox/Checkbox.js.map +1 -0
  211. package/build/main//321/201omponents/Checkbox/index.d.ts +1 -0
  212. package/build/main//321/201omponents/Checkbox/index.js +2 -0
  213. package/build/main//321/201omponents/Checkbox/index.js.map +1 -0
  214. package/build/main//321/201omponents/Checkbox/types.d.ts +14 -0
  215. package/build/main//321/201omponents/Checkbox/types.js +2 -0
  216. package/build/main//321/201omponents/Checkbox/types.js.map +1 -0
  217. package/build/main//321/201omponents/Chip/Chip.d.ts +5 -0
  218. package/build/main//321/201omponents/Chip/Chip.js +288 -0
  219. package/build/main//321/201omponents/Chip/Chip.js.map +1 -0
  220. package/build/main//321/201omponents/Chip/index.d.ts +1 -0
  221. package/build/main//321/201omponents/Chip/index.js +2 -0
  222. package/build/main//321/201omponents/Chip/index.js.map +1 -0
  223. package/build/main//321/201omponents/Chip/types.d.ts +39 -0
  224. package/build/main//321/201omponents/Chip/types.js +2 -0
  225. package/build/main//321/201omponents/Chip/types.js.map +1 -0
  226. package/build/main//321/201omponents/ChipDndContext/ChipDndContext.d.ts +13 -0
  227. package/build/main//321/201omponents/ChipDndContext/ChipDndContext.js +76 -0
  228. package/build/main//321/201omponents/ChipDndContext/ChipDndContext.js.map +1 -0
  229. package/build/main//321/201omponents/ChipDndContext/index.d.ts +1 -0
  230. package/build/main//321/201omponents/ChipDndContext/index.js +2 -0
  231. package/build/main//321/201omponents/ChipDndContext/index.js.map +1 -0
  232. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.d.ts +4 -0
  233. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js +64 -0
  234. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js.map +1 -0
  235. package/build/main//321/201omponents/ConfirmationModal/index.d.ts +1 -0
  236. package/build/main//321/201omponents/ConfirmationModal/index.js +2 -0
  237. package/build/main//321/201omponents/ConfirmationModal/index.js.map +1 -0
  238. package/build/main//321/201omponents/ConfirmationModal/types.d.ts +31 -0
  239. package/build/main//321/201omponents/ConfirmationModal/types.js +2 -0
  240. package/build/main//321/201omponents/ConfirmationModal/types.js.map +1 -0
  241. package/build/main//321/201omponents/ContextMenu/ContextMenu.d.ts +4 -0
  242. package/build/main//321/201omponents/ContextMenu/ContextMenu.js +122 -0
  243. package/build/main//321/201omponents/ContextMenu/ContextMenu.js.map +1 -0
  244. package/build/main//321/201omponents/ContextMenu/index.d.ts +1 -0
  245. package/build/main//321/201omponents/ContextMenu/index.js +2 -0
  246. package/build/main//321/201omponents/ContextMenu/index.js.map +1 -0
  247. package/build/main//321/201omponents/ContextMenu/types.d.ts +41 -0
  248. package/build/main//321/201omponents/ContextMenu/types.js +2 -0
  249. package/build/main//321/201omponents/ContextMenu/types.js.map +1 -0
  250. package/build/main//321/201omponents/ContextMenuItem/ContextMenuItem.d.ts +4 -0
  251. package/build/main//321/201omponents/ContextMenuItem/ContextMenuItem.js +49 -0
  252. package/build/main//321/201omponents/ContextMenuItem/ContextMenuItem.js.map +1 -0
  253. package/build/main//321/201omponents/ContextMenuItem/index.d.ts +1 -0
  254. package/build/main//321/201omponents/ContextMenuItem/index.js +2 -0
  255. package/build/main//321/201omponents/ContextMenuItem/index.js.map +1 -0
  256. package/build/main//321/201omponents/ContextMenuItem/types.d.ts +28 -0
  257. package/build/main//321/201omponents/ContextMenuItem/types.js +6 -0
  258. package/build/main//321/201omponents/ContextMenuItem/types.js.map +1 -0
  259. package/build/main//321/201omponents/CustomSelect/CustomSelect.d.ts +12 -0
  260. package/build/main//321/201omponents/CustomSelect/CustomSelect.js +281 -0
  261. package/build/main//321/201omponents/CustomSelect/CustomSelect.js.map +1 -0
  262. package/build/main//321/201omponents/CustomSelect/index.d.ts +1 -0
  263. package/build/main//321/201omponents/CustomSelect/index.js +2 -0
  264. package/build/main//321/201omponents/CustomSelect/index.js.map +1 -0
  265. package/build/main//321/201omponents/CustomSelect/selectStyles.d.ts +16 -0
  266. package/build/main//321/201omponents/CustomSelect/selectStyles.js +77 -0
  267. package/build/main//321/201omponents/CustomSelect/selectStyles.js.map +1 -0
  268. package/build/main//321/201omponents/CustomSelect/types.d.ts +86 -0
  269. package/build/main//321/201omponents/CustomSelect/types.js +2 -0
  270. package/build/main//321/201omponents/CustomSelect/types.js.map +1 -0
  271. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.d.ts +4 -0
  272. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js +67 -0
  273. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js.map +1 -0
  274. package/build/main//321/201omponents/CustomSelectProfiles/index.d.ts +1 -0
  275. package/build/main//321/201omponents/CustomSelectProfiles/index.js +2 -0
  276. package/build/main//321/201omponents/CustomSelectProfiles/index.js.map +1 -0
  277. package/build/main//321/201omponents/CustomSelectProfiles/selectStyles.d.ts +12 -0
  278. package/build/main//321/201omponents/CustomSelectProfiles/selectStyles.js +41 -0
  279. package/build/main//321/201omponents/CustomSelectProfiles/selectStyles.js.map +1 -0
  280. package/build/main//321/201omponents/CustomSelectProfiles/types.d.ts +13 -0
  281. package/build/main//321/201omponents/CustomSelectProfiles/types.js +2 -0
  282. package/build/main//321/201omponents/CustomSelectProfiles/types.js.map +1 -0
  283. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.d.ts +4 -0
  284. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js +57 -0
  285. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js.map +1 -0
  286. package/build/main//321/201omponents/DragAndDrop/index.d.ts +1 -0
  287. package/build/main//321/201omponents/DragAndDrop/index.js +2 -0
  288. package/build/main//321/201omponents/DragAndDrop/index.js.map +1 -0
  289. package/build/main//321/201omponents/DragAndDrop/types.d.ts +24 -0
  290. package/build/main//321/201omponents/DragAndDrop/types.js +2 -0
  291. package/build/main//321/201omponents/DragAndDrop/types.js.map +1 -0
  292. package/build/main//321/201omponents/DraggablePopup/DraggablePopup.d.ts +4 -0
  293. package/build/main//321/201omponents/DraggablePopup/DraggablePopup.js +228 -0
  294. package/build/main//321/201omponents/DraggablePopup/DraggablePopup.js.map +1 -0
  295. package/build/main//321/201omponents/DraggablePopup/index.d.ts +1 -0
  296. package/build/main//321/201omponents/DraggablePopup/index.js +2 -0
  297. package/build/main//321/201omponents/DraggablePopup/index.js.map +1 -0
  298. package/build/main//321/201omponents/DraggablePopup/types.d.ts +90 -0
  299. package/build/main//321/201omponents/DraggablePopup/types.js +2 -0
  300. package/build/main//321/201omponents/DraggablePopup/types.js.map +1 -0
  301. package/build/main//321/201omponents/Error/Error.d.ts +4 -0
  302. package/build/main//321/201omponents/Error/Error.js +23 -0
  303. package/build/main//321/201omponents/Error/Error.js.map +1 -0
  304. package/build/main//321/201omponents/Error/index.d.ts +1 -0
  305. package/build/main//321/201omponents/Error/index.js +2 -0
  306. package/build/main//321/201omponents/Error/index.js.map +1 -0
  307. package/build/main//321/201omponents/Error/types.d.ts +10 -0
  308. package/build/main//321/201omponents/Error/types.js +2 -0
  309. package/build/main//321/201omponents/Error/types.js.map +1 -0
  310. package/build/main//321/201omponents/Flex/Flex.d.ts +2 -0
  311. package/build/main//321/201omponents/Flex/Flex.js +35 -0
  312. package/build/main//321/201omponents/Flex/Flex.js.map +1 -0
  313. package/build/main//321/201omponents/Flex/HFlex/HFlex.d.ts +5 -0
  314. package/build/main//321/201omponents/Flex/HFlex/HFlex.js +16 -0
  315. package/build/main//321/201omponents/Flex/HFlex/HFlex.js.map +1 -0
  316. package/build/main//321/201omponents/Flex/HFlex/index.d.ts +1 -0
  317. package/build/main//321/201omponents/Flex/HFlex/index.js +2 -0
  318. package/build/main//321/201omponents/Flex/HFlex/index.js.map +1 -0
  319. package/build/main//321/201omponents/Flex/VFlex/VFlex.d.ts +5 -0
  320. package/build/main//321/201omponents/Flex/VFlex/VFlex.js +16 -0
  321. package/build/main//321/201omponents/Flex/VFlex/VFlex.js.map +1 -0
  322. package/build/main//321/201omponents/Flex/VFlex/index.d.ts +1 -0
  323. package/build/main//321/201omponents/Flex/VFlex/index.js +2 -0
  324. package/build/main//321/201omponents/Flex/VFlex/index.js.map +1 -0
  325. package/build/main//321/201omponents/Flex/index.d.ts +3 -0
  326. package/build/main//321/201omponents/Flex/index.js +4 -0
  327. package/build/main//321/201omponents/Flex/index.js.map +1 -0
  328. package/build/main//321/201omponents/Flex/types.d.ts +21 -0
  329. package/build/main//321/201omponents/Flex/types.js +2 -0
  330. package/build/main//321/201omponents/Flex/types.js.map +1 -0
  331. package/build/main//321/201omponents/Header/Header.d.ts +5 -0
  332. package/build/main//321/201omponents/Header/Header.js +125 -0
  333. package/build/main//321/201omponents/Header/Header.js.map +1 -0
  334. package/build/main//321/201omponents/Header/index.d.ts +1 -0
  335. package/build/main//321/201omponents/Header/index.js +2 -0
  336. package/build/main//321/201omponents/Header/index.js.map +1 -0
  337. package/build/main//321/201omponents/Header/types.d.ts +47 -0
  338. package/build/main//321/201omponents/Header/types.js +2 -0
  339. package/build/main//321/201omponents/Header/types.js.map +1 -0
  340. package/build/main//321/201omponents/Input/Input.d.ts +4 -0
  341. package/build/main//321/201omponents/Input/Input.js +256 -0
  342. package/build/main//321/201omponents/Input/Input.js.map +1 -0
  343. package/build/main//321/201omponents/Input/index.d.ts +1 -0
  344. package/build/main//321/201omponents/Input/index.js +2 -0
  345. package/build/main//321/201omponents/Input/index.js.map +1 -0
  346. package/build/main//321/201omponents/Input/types.d.ts +37 -0
  347. package/build/main//321/201omponents/Input/types.js +2 -0
  348. package/build/main//321/201omponents/Input/types.js.map +1 -0
  349. package/build/main//321/201omponents/ListItem/ListItem.d.ts +23 -0
  350. package/build/main//321/201omponents/ListItem/ListItem.js +214 -0
  351. package/build/main//321/201omponents/ListItem/ListItem.js.map +1 -0
  352. package/build/main//321/201omponents/ListItem/index.d.ts +1 -0
  353. package/build/main//321/201omponents/ListItem/index.js +2 -0
  354. package/build/main//321/201omponents/ListItem/index.js.map +1 -0
  355. package/build/main//321/201omponents/ListItem/types.d.ts +47 -0
  356. package/build/main//321/201omponents/ListItem/types.js +2 -0
  357. package/build/main//321/201omponents/ListItem/types.js.map +1 -0
  358. package/build/main//321/201omponents/Loader/Loader.d.ts +4 -0
  359. package/build/main//321/201omponents/Loader/Loader.js +44 -0
  360. package/build/main//321/201omponents/Loader/Loader.js.map +1 -0
  361. package/build/main//321/201omponents/Loader/index.d.ts +1 -0
  362. package/build/main//321/201omponents/Loader/index.js +2 -0
  363. package/build/main//321/201omponents/Loader/index.js.map +1 -0
  364. package/build/main//321/201omponents/Loader/types.d.ts +18 -0
  365. package/build/main//321/201omponents/Loader/types.js +2 -0
  366. package/build/main//321/201omponents/Loader/types.js.map +1 -0
  367. package/build/main//321/201omponents/Modal/Modal.d.ts +5 -0
  368. package/build/main//321/201omponents/Modal/Modal.js +397 -0
  369. package/build/main//321/201omponents/Modal/Modal.js.map +1 -0
  370. package/build/main//321/201omponents/Modal/index.d.ts +1 -0
  371. package/build/main//321/201omponents/Modal/index.js +2 -0
  372. package/build/main//321/201omponents/Modal/index.js.map +1 -0
  373. package/build/main//321/201omponents/Modal/types.d.ts +77 -0
  374. package/build/main//321/201omponents/Modal/types.js +2 -0
  375. package/build/main//321/201omponents/Modal/types.js.map +1 -0
  376. package/build/main//321/201omponents/Notification/Notification.d.ts +4 -0
  377. package/build/main//321/201omponents/Notification/Notification.js +208 -0
  378. package/build/main//321/201omponents/Notification/Notification.js.map +1 -0
  379. package/build/main//321/201omponents/Notification/constants.d.ts +34 -0
  380. package/build/main//321/201omponents/Notification/constants.js +59 -0
  381. package/build/main//321/201omponents/Notification/constants.js.map +1 -0
  382. package/build/main//321/201omponents/Notification/index.d.ts +1 -0
  383. package/build/main//321/201omponents/Notification/index.js +2 -0
  384. package/build/main//321/201omponents/Notification/index.js.map +1 -0
  385. package/build/main//321/201omponents/Notification/types.d.ts +64 -0
  386. package/build/main//321/201omponents/Notification/types.js +2 -0
  387. package/build/main//321/201omponents/Notification/types.js.map +1 -0
  388. package/build/main//321/201omponents/Profile/Profile.d.ts +4 -0
  389. package/build/main//321/201omponents/Profile/Profile.js +42 -0
  390. package/build/main//321/201omponents/Profile/Profile.js.map +1 -0
  391. package/build/main//321/201omponents/Profile/index.d.ts +1 -0
  392. package/build/main//321/201omponents/Profile/index.js +2 -0
  393. package/build/main//321/201omponents/Profile/index.js.map +1 -0
  394. package/build/main//321/201omponents/Profile/types.d.ts +14 -0
  395. package/build/main//321/201omponents/Profile/types.js +2 -0
  396. package/build/main//321/201omponents/Profile/types.js.map +1 -0
  397. package/build/main//321/201omponents/ProgressBar/ProgressBar.d.ts +4 -0
  398. package/build/main//321/201omponents/ProgressBar/ProgressBar.js +66 -0
  399. package/build/main//321/201omponents/ProgressBar/ProgressBar.js.map +1 -0
  400. package/build/main//321/201omponents/ProgressBar/index.d.ts +1 -0
  401. package/build/main//321/201omponents/ProgressBar/index.js +2 -0
  402. package/build/main//321/201omponents/ProgressBar/index.js.map +1 -0
  403. package/build/main//321/201omponents/ProgressBar/types.d.ts +7 -0
  404. package/build/main//321/201omponents/ProgressBar/types.js +2 -0
  405. package/build/main//321/201omponents/ProgressBar/types.js.map +1 -0
  406. package/build/main//321/201omponents/RadioButton/RadioButton.d.ts +4 -0
  407. package/build/main//321/201omponents/RadioButton/RadioButton.js +33 -0
  408. package/build/main//321/201omponents/RadioButton/RadioButton.js.map +1 -0
  409. package/build/main//321/201omponents/RadioButton/index.d.ts +1 -0
  410. package/build/main//321/201omponents/RadioButton/index.js +2 -0
  411. package/build/main//321/201omponents/RadioButton/index.js.map +1 -0
  412. package/build/main//321/201omponents/RadioButton/types.d.ts +12 -0
  413. package/build/main//321/201omponents/RadioButton/types.js +2 -0
  414. package/build/main//321/201omponents/RadioButton/types.js.map +1 -0
  415. package/build/main//321/201omponents/ScrollBar/ScrollBar.d.ts +5 -0
  416. package/build/main//321/201omponents/ScrollBar/ScrollBar.js +140 -0
  417. package/build/main//321/201omponents/ScrollBar/ScrollBar.js.map +1 -0
  418. package/build/main//321/201omponents/ScrollBar/index.d.ts +1 -0
  419. package/build/main//321/201omponents/ScrollBar/index.js +2 -0
  420. package/build/main//321/201omponents/ScrollBar/index.js.map +1 -0
  421. package/build/main//321/201omponents/ScrollBar/types.d.ts +24 -0
  422. package/build/main//321/201omponents/ScrollBar/types.js +2 -0
  423. package/build/main//321/201omponents/ScrollBar/types.js.map +1 -0
  424. package/build/main//321/201omponents/Skeleton/Skeleton.d.ts +4 -0
  425. package/build/main//321/201omponents/Skeleton/Skeleton.js +59 -0
  426. package/build/main//321/201omponents/Skeleton/Skeleton.js.map +1 -0
  427. package/build/main//321/201omponents/Skeleton/index.d.ts +1 -0
  428. package/build/main//321/201omponents/Skeleton/index.js +2 -0
  429. package/build/main//321/201omponents/Skeleton/index.js.map +1 -0
  430. package/build/main//321/201omponents/Skeleton/types.d.ts +17 -0
  431. package/build/main//321/201omponents/Skeleton/types.js +2 -0
  432. package/build/main//321/201omponents/Skeleton/types.js.map +1 -0
  433. package/build/main//321/201omponents/Stories/Stories.d.ts +4 -0
  434. package/build/main//321/201omponents/Stories/Stories.js +406 -0
  435. package/build/main//321/201omponents/Stories/Stories.js.map +1 -0
  436. package/build/main//321/201omponents/Stories/index.d.ts +1 -0
  437. package/build/main//321/201omponents/Stories/index.js +2 -0
  438. package/build/main//321/201omponents/Stories/index.js.map +1 -0
  439. package/build/main//321/201omponents/Stories/types.d.ts +71 -0
  440. package/build/main//321/201omponents/Stories/types.js +16 -0
  441. package/build/main//321/201omponents/Stories/types.js.map +1 -0
  442. package/build/main//321/201omponents/Switcher/Switcher.d.ts +4 -0
  443. package/build/main//321/201omponents/Switcher/Switcher.js +34 -0
  444. package/build/main//321/201omponents/Switcher/Switcher.js.map +1 -0
  445. package/build/main//321/201omponents/Switcher/index.d.ts +1 -0
  446. package/build/main//321/201omponents/Switcher/index.js +2 -0
  447. package/build/main//321/201omponents/Switcher/index.js.map +1 -0
  448. package/build/main//321/201omponents/Switcher/types.d.ts +8 -0
  449. package/build/main//321/201omponents/Switcher/types.js +2 -0
  450. package/build/main//321/201omponents/Switcher/types.js.map +1 -0
  451. package/build/main//321/201omponents/SyncLoader/SyncLoader.d.ts +5 -0
  452. package/build/main//321/201omponents/SyncLoader/SyncLoader.js +65 -0
  453. package/build/main//321/201omponents/SyncLoader/SyncLoader.js.map +1 -0
  454. package/build/main//321/201omponents/SyncLoader/index.d.ts +1 -0
  455. package/build/main//321/201omponents/SyncLoader/index.js +2 -0
  456. package/build/main//321/201omponents/SyncLoader/index.js.map +1 -0
  457. package/build/main//321/201omponents/SyncLoader/types.d.ts +8 -0
  458. package/build/main//321/201omponents/SyncLoader/types.js +2 -0
  459. package/build/main//321/201omponents/SyncLoader/types.js.map +1 -0
  460. package/build/main//321/201omponents/Textarea/Textarea.d.ts +4 -0
  461. package/build/main//321/201omponents/Textarea/Textarea.js +59 -0
  462. package/build/main//321/201omponents/Textarea/Textarea.js.map +1 -0
  463. package/build/main//321/201omponents/Textarea/index.d.ts +1 -0
  464. package/build/main//321/201omponents/Textarea/index.js +2 -0
  465. package/build/main//321/201omponents/Textarea/index.js.map +1 -0
  466. package/build/main//321/201omponents/Textarea/types.d.ts +13 -0
  467. package/build/main//321/201omponents/Textarea/types.js +2 -0
  468. package/build/main//321/201omponents/Textarea/types.js.map +1 -0
  469. package/build/main//321/201omponents/Toggle/Toggle.d.ts +4 -0
  470. package/build/main//321/201omponents/Toggle/Toggle.js +35 -0
  471. package/build/main//321/201omponents/Toggle/Toggle.js.map +1 -0
  472. package/build/main//321/201omponents/Toggle/index.d.ts +1 -0
  473. package/build/main//321/201omponents/Toggle/index.js +2 -0
  474. package/build/main//321/201omponents/Toggle/index.js.map +1 -0
  475. package/build/main//321/201omponents/Toggle/types.d.ts +12 -0
  476. package/build/main//321/201omponents/Toggle/types.js +2 -0
  477. package/build/main//321/201omponents/Toggle/types.js.map +1 -0
  478. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.d.ts +4 -0
  479. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js +40 -0
  480. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js.map +1 -0
  481. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.d.ts +4 -0
  482. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js +98 -0
  483. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js.map +1 -0
  484. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.d.ts +5 -0
  485. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js +24 -0
  486. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js.map +1 -0
  487. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.d.ts +4 -0
  488. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js +104 -0
  489. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js.map +1 -0
  490. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.d.ts +4 -0
  491. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js +133 -0
  492. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js.map +1 -0
  493. package/build/main//321/201omponents/UserDropdown/Option/Option.d.ts +4 -0
  494. package/build/main//321/201omponents/UserDropdown/Option/Option.js +85 -0
  495. package/build/main//321/201omponents/UserDropdown/Option/Option.js.map +1 -0
  496. package/build/main//321/201omponents/UserDropdown/SearchInCatalogButton/SearchInCatalogButton.d.ts +4 -0
  497. package/build/main//321/201omponents/UserDropdown/SearchInCatalogButton/SearchInCatalogButton.js +41 -0
  498. package/build/main//321/201omponents/UserDropdown/SearchInCatalogButton/SearchInCatalogButton.js.map +1 -0
  499. package/build/main//321/201omponents/UserDropdown/UserDropdown.d.ts +5 -0
  500. package/build/main//321/201omponents/UserDropdown/UserDropdown.js +527 -0
  501. package/build/main//321/201omponents/UserDropdown/UserDropdown.js.map +1 -0
  502. package/build/main//321/201omponents/UserDropdown/components/Delimiter.d.ts +8 -0
  503. package/build/main//321/201omponents/UserDropdown/components/Delimiter.js +10 -0
  504. package/build/main//321/201omponents/UserDropdown/components/Delimiter.js.map +1 -0
  505. package/build/main//321/201omponents/UserDropdown/components/Hint.d.ts +6 -0
  506. package/build/main//321/201omponents/UserDropdown/components/Hint.js +21 -0
  507. package/build/main//321/201omponents/UserDropdown/components/Hint.js.map +1 -0
  508. package/build/main//321/201omponents/UserDropdown/components/Input.d.ts +2 -0
  509. package/build/main//321/201omponents/UserDropdown/components/Input.js +24 -0
  510. package/build/main//321/201omponents/UserDropdown/components/Input.js.map +1 -0
  511. package/build/main//321/201omponents/UserDropdown/components/Mask.d.ts +8 -0
  512. package/build/main//321/201omponents/UserDropdown/components/Mask.js +19 -0
  513. package/build/main//321/201omponents/UserDropdown/components/Mask.js.map +1 -0
  514. package/build/main//321/201omponents/UserDropdown/components/Title.d.ts +5 -0
  515. package/build/main//321/201omponents/UserDropdown/components/Title.js +18 -0
  516. package/build/main//321/201omponents/UserDropdown/components/Title.js.map +1 -0
  517. package/build/main//321/201omponents/UserDropdown/constants.d.ts +65 -0
  518. package/build/main//321/201omponents/UserDropdown/constants.js +83 -0
  519. package/build/main//321/201omponents/UserDropdown/constants.js.map +1 -0
  520. package/build/main//321/201omponents/UserDropdown/helpers.d.ts +148 -0
  521. package/build/main//321/201omponents/UserDropdown/helpers.js +313 -0
  522. package/build/main//321/201omponents/UserDropdown/helpers.js.map +1 -0
  523. package/build/main//321/201omponents/UserDropdown/index.d.ts +1 -0
  524. package/build/main//321/201omponents/UserDropdown/index.js +2 -0
  525. package/build/main//321/201omponents/UserDropdown/index.js.map +1 -0
  526. package/build/main//321/201omponents/UserDropdown/selectStyles.d.ts +15 -0
  527. package/build/main//321/201omponents/UserDropdown/selectStyles.js +99 -0
  528. package/build/main//321/201omponents/UserDropdown/selectStyles.js.map +1 -0
  529. package/build/main//321/201omponents/UserDropdown/types.d.ts +356 -0
  530. package/build/main//321/201omponents/UserDropdown/types.js +2 -0
  531. package/build/main//321/201omponents/UserDropdown/types.js.map +1 -0
  532. package/build/main//321/201omponents/types.d.ts +2 -0
  533. package/build/main//321/201omponents/types.js +2 -0
  534. package/build/main//321/201omponents/types.js.map +1 -0
  535. package/package.json +13 -8
@@ -0,0 +1,301 @@
1
+ var _a, _b, _c;
2
+ export var COLORS = {
3
+ lighterBlue: '#4799E30D',
4
+ lightBlue: '#5AA0E0',
5
+ blue: '#4799E3',
6
+ darkBlue: '#408ACD',
7
+ darkerBlue: '#3C82C1',
8
+ darkestBlue: '#000276',
9
+ purple: '#9370db',
10
+ white: '#FFFFFF',
11
+ white3: '#FFFFFF03',
12
+ lightestGray: '#FCFCFC',
13
+ lighterGray: '#E0E4EC66',
14
+ gray: '#1111114D',
15
+ darkerGray: '#808080',
16
+ brightBlack: '#3D3D3D',
17
+ black: '#111111',
18
+ darkBlack: '#1A1A1A',
19
+ skeletonBg: '#F1F1F2',
20
+ inactiveAvatarGradientStart: '#C2C2C2',
21
+ inactiveAvatarGradientEnd: '#6F6F6F',
22
+ bgBlackoutTransparent: 'rgba(0, 0, 0, 0.3)',
23
+ transparent: 'transparent',
24
+ textPrimary: 'var(--color-text-primary)',
25
+ textSecondary: 'var(--color-text-secondary)',
26
+ textTertiary: 'var(--color-text-tertiary)',
27
+ borderPrimary: 'var(--color-border-primary)',
28
+ borderPrimaryHover: 'var(--color-border-primary-hover)',
29
+ borderFocused: 'var(--color-border-focused)',
30
+ borderError: 'var(--color-border-error)',
31
+ iconAccent: 'var(--color-icon-accent)',
32
+ iconContrast: 'var(--color-icon-contrast)',
33
+ iconPrimary: 'var(--color-icon-primary)',
34
+ iconSecondary: 'var(--color-icon-secondary)',
35
+ iconNegative: 'var(--color-icon-negative)',
36
+ iconTransparentPressed: 'var(--color-icon-transparent-pressed)',
37
+ bgAccent: 'var(--color-bg-accent)',
38
+ bgAccentHover: 'var(--color-bg-accent-hover)',
39
+ bgAccentPressed: 'var(--color-bg-accent-pressed)',
40
+ bgPopUp: 'var(--color-bg-pop-up)',
41
+ bgElementOnTop: 'var(--color-bg-element-on-top)',
42
+ bgElementOnTopHover: 'var(--color-bg-element-on-top-hover)',
43
+ bgElementOnTopPressed: 'var(--color-bg-element-on-top-pressed)',
44
+ bgPrimary: 'var(--color-bg-primary)',
45
+ bgPrimarySelected: 'var(--color-bg-primary-selected)',
46
+ bgLightTransparent: 'var(--color-bg-light-transparent)',
47
+ colorBgBlackoutTransparent: 'var(--color-bg-blackout-transparent)',
48
+ chip: 'var(--color-chip)',
49
+ buttonPrimary: 'var(--color-button-primary)',
50
+ buttonPrimaryHover: 'var(--color-button-primary-hover)',
51
+ buttonPrimaryPressed: 'var(--color-button-primary-pressed)',
52
+ scrollbarThumb: 'var(--color-scrollbar-thumb)',
53
+ mShadowClick: 'var(--m-shadow-click)',
54
+ };
55
+ export var INPUT_TYPE_PASSWORD = 'password';
56
+ export var INPUT_TYPE_TEXT = 'text';
57
+ export var INPUT_TYPE_NUMBER = 'number';
58
+ export var DEFAULT_INPUT_PADDING = 12;
59
+ export var AFFIX_INPUT_PH = 20;
60
+ export var ADDITIONAL_INPUT_PR = 18;
61
+ export var ENTER_KEY = 'Enter';
62
+ export var BACKSPACE_KEY = 'Backspace';
63
+ export var SPACE_KEY = 'Space';
64
+ export var ADDITIONAL_MAX_CHARACTERS = 4;
65
+ export var FONT_SIZE;
66
+ (function (FONT_SIZE) {
67
+ FONT_SIZE["small"] = "14px";
68
+ FONT_SIZE["default"] = "16px";
69
+ FONT_SIZE["large"] = "22px";
70
+ })(FONT_SIZE || (FONT_SIZE = {}));
71
+ export var LINE_HEIGHT;
72
+ (function (LINE_HEIGHT) {
73
+ LINE_HEIGHT["small"] = "19px";
74
+ LINE_HEIGHT["default"] = "22px";
75
+ LINE_HEIGHT["large"] = "30px";
76
+ })(LINE_HEIGHT || (LINE_HEIGHT = {}));
77
+ export var TITLE_SIZE;
78
+ (function (TITLE_SIZE) {
79
+ TITLE_SIZE["small"] = "small";
80
+ TITLE_SIZE["major"] = "major";
81
+ })(TITLE_SIZE || (TITLE_SIZE = {}));
82
+ export var PLATFORM;
83
+ (function (PLATFORM) {
84
+ PLATFORM["web"] = "web";
85
+ PLATFORM["ios"] = "ios";
86
+ PLATFORM["android"] = "android";
87
+ PLATFORM["aurora"] = "aurora";
88
+ })(PLATFORM || (PLATFORM = {}));
89
+ export var THEME;
90
+ (function (THEME) {
91
+ THEME["default"] = "default";
92
+ THEME["dark"] = "dark";
93
+ })(THEME || (THEME = {}));
94
+ export var FONT_FAMILY;
95
+ (function (FONT_FAMILY) {
96
+ FONT_FAMILY["openSans"] = "Open Sans";
97
+ FONT_FAMILY["caveat"] = "Caveat";
98
+ FONT_FAMILY["oswald"] = "Oswald";
99
+ FONT_FAMILY["roboto"] = "Roboto";
100
+ FONT_FAMILY["onest"] = "Onest";
101
+ FONT_FAMILY["inter"] = "Inter";
102
+ })(FONT_FAMILY || (FONT_FAMILY = {}));
103
+ export var CANCEL_ACTION_TEXT = 'Отменить';
104
+ export var NUMBER_OF_STORIES_FOR_ROUND_INDICATORS = 5;
105
+ export var MIN_TEXTAREA_HEIGHT = 24;
106
+ export var DEFAULT_MIN_TEXTAREA_HEIGHT = 76;
107
+ export var CONTEXT_MENU_SAFE_SPACE = 15;
108
+ export var WEB_NOTIFICATION_DISTANCE_FROM_BOTTOM = 24;
109
+ export var MOBILE_NOTIFICATION_DISTANCE_FROM_BOTTOM = 40;
110
+ export var DEFAULT_HEADER_AVATAR_INDEX = 4;
111
+ export var AVATAR_DEGREES = [180, 178.34, 180, 180, 180, 180];
112
+ export var AVATAR_COLOR_TOP = ['#FBDA43', '#FFA285', '#FF92D3', '#ACB3FF', '#D39FFF', '#94CBFF'];
113
+ export var AVATAR_COLOR_TOP_PERCENTS = [-18.75, -3.03, 0, 0, -8.04, -8.04];
114
+ export var AVATAR_COLOR_MIDDLE = [null, '#FC6B6B', null, null, null, null];
115
+ export var AVATAR_COLOR_MIDDLE_PERCENTS = [null, 65.88, null, null, null, null];
116
+ export var AVATAR_COLOR_BOTTOM = ['#F57953', '#F446B2', '#E54799', '#706AE6', '#9140D9', '#2463EA'];
117
+ export var AVATAR_COLOR_BOTTOM_PERCENTS = [108.93, 116.81, 120.91, 100, 112.5, 112.5];
118
+ export var MAX_NUMBER_OF_CHARACTERS_IN_INITIALS = 2;
119
+ export var FULL_HEIGHT_BOTTOM_SHEET_TOP_MARGIN = 24;
120
+ export var LAYOUT_TYPE;
121
+ (function (LAYOUT_TYPE) {
122
+ LAYOUT_TYPE["minimal"] = "minimal";
123
+ LAYOUT_TYPE["half"] = "half";
124
+ LAYOUT_TYPE["full"] = "full";
125
+ })(LAYOUT_TYPE || (LAYOUT_TYPE = {}));
126
+ export var VIEWPORTS;
127
+ (function (VIEWPORTS) {
128
+ VIEWPORTS["webCollapsed"] = "webCollapsed";
129
+ VIEWPORTS["webExpanded"] = "webExpanded";
130
+ VIEWPORTS["iphone6"] = "iphone6";
131
+ VIEWPORTS["iphone12"] = "iphone12";
132
+ VIEWPORTS["galaxys5"] = "galaxys5";
133
+ VIEWPORTS["reset"] = "reset";
134
+ })(VIEWPORTS || (VIEWPORTS = {}));
135
+ export var INPUT_FIELD_TYPE;
136
+ (function (INPUT_FIELD_TYPE) {
137
+ INPUT_FIELD_TYPE["text"] = "text";
138
+ INPUT_FIELD_TYPE["search"] = "search";
139
+ })(INPUT_FIELD_TYPE || (INPUT_FIELD_TYPE = {}));
140
+ export var MENU_POSITIONS;
141
+ (function (MENU_POSITIONS) {
142
+ MENU_POSITIONS["bottom"] = "bottom";
143
+ MENU_POSITIONS["auto"] = "auto";
144
+ MENU_POSITIONS["top"] = "top";
145
+ })(MENU_POSITIONS || (MENU_POSITIONS = {}));
146
+ export var MENU_LOCATION;
147
+ (function (MENU_LOCATION) {
148
+ MENU_LOCATION["absolute"] = "absolute";
149
+ MENU_LOCATION["fixed"] = "fixed";
150
+ })(MENU_LOCATION || (MENU_LOCATION = {}));
151
+ export var CREATABLE_MENU_LIST_MAX_HEIGHT = 248;
152
+ export var MENU_LIST_MAX_HEIGHT = 292;
153
+ export var DEFAULT_SCROLL_BAR_HIDE_DURATION = 2000;
154
+ export var DEFAULT_SCROLL_BAR_MARGIN = 0;
155
+ export var LANGUAGES;
156
+ (function (LANGUAGES) {
157
+ LANGUAGES["ru"] = "ru";
158
+ LANGUAGES["en"] = "en";
159
+ LANGUAGES["de"] = "de";
160
+ LANGUAGES["es"] = "es";
161
+ LANGUAGES["fr"] = "fr";
162
+ LANGUAGES["ar"] = "ar";
163
+ LANGUAGES["ms"] = "ms";
164
+ LANGUAGES["tr"] = "tr";
165
+ LANGUAGES["id"] = "id";
166
+ LANGUAGES["uz"] = "uz";
167
+ LANGUAGES["kk"] = "kk";
168
+ })(LANGUAGES || (LANGUAGES = {}));
169
+ export var HEADER_COLOR_BG;
170
+ (function (HEADER_COLOR_BG) {
171
+ HEADER_COLOR_BG["grey"] = "grey";
172
+ HEADER_COLOR_BG["blue"] = "blue";
173
+ })(HEADER_COLOR_BG || (HEADER_COLOR_BG = {}));
174
+ export var MODAL_BUTTONS_DIRECTION;
175
+ (function (MODAL_BUTTONS_DIRECTION) {
176
+ MODAL_BUTTONS_DIRECTION["row"] = "row";
177
+ MODAL_BUTTONS_DIRECTION["column"] = "column";
178
+ })(MODAL_BUTTONS_DIRECTION || (MODAL_BUTTONS_DIRECTION = {}));
179
+ export var THEME_ARRAY = Object.keys(THEME);
180
+ export var PLATFORM_ARRAY = Object.keys(PLATFORM);
181
+ export var LAYOUT_TYPE_ARRAY = Object.keys(LAYOUT_TYPE);
182
+ export var MODAL_BUTTONS_DIRECTION_ARRAY = Object.keys(MODAL_BUTTONS_DIRECTION);
183
+ export var WIDTH_TYPE_SUMMARY = '1 | 2 | 3 | 4 | 5 | ... | 100';
184
+ export var STYLES_TYPE_DETAIL = 'type TStyles = { [key: string]: number | string }';
185
+ export var AVATAR_TYPE_SUMMARY = 'ReactElement | string | null';
186
+ export var USER_TYPE_DETAILS = 'My contact | GAL contact | Private DL | Public DL | Meeting room | Room list';
187
+ export var CENTER = 'center';
188
+ export var BOTTOM_SHEET = 'bottom-sheet';
189
+ export var DIRECTION = 'direction';
190
+ export var ROW = 'row';
191
+ export var EVENT_LISTENER_TYPES;
192
+ (function (EVENT_LISTENER_TYPES) {
193
+ EVENT_LISTENER_TYPES["mouseup"] = "mouseup";
194
+ EVENT_LISTENER_TYPES["mousedown"] = "mousedown";
195
+ EVENT_LISTENER_TYPES["click"] = "click";
196
+ EVENT_LISTENER_TYPES["pointerup"] = "pointerup";
197
+ EVENT_LISTENER_TYPES["touchend"] = "touchend";
198
+ EVENT_LISTENER_TYPES["touchcancel"] = "touchcancel";
199
+ EVENT_LISTENER_TYPES["blur"] = "blur";
200
+ EVENT_LISTENER_TYPES["visibilityChange"] = "visibilitychange";
201
+ EVENT_LISTENER_TYPES["resize"] = "resize";
202
+ EVENT_LISTENER_TYPES["focus"] = "focus";
203
+ EVENT_LISTENER_TYPES["scroll"] = "scroll";
204
+ EVENT_LISTENER_TYPES["focusIn"] = "focusin";
205
+ EVENT_LISTENER_TYPES["focusOut"] = "focusout";
206
+ })(EVENT_LISTENER_TYPES || (EVENT_LISTENER_TYPES = {}));
207
+ export var POPUP_ON_EVENT_TYPE;
208
+ (function (POPUP_ON_EVENT_TYPE) {
209
+ POPUP_ON_EVENT_TYPE["hover"] = "hover";
210
+ })(POPUP_ON_EVENT_TYPE || (POPUP_ON_EVENT_TYPE = {}));
211
+ export var SPACE = ' ';
212
+ export var FIT_CONTENT = 'fit-content';
213
+ export var POPUP_VERTICAL_POSITION;
214
+ (function (POPUP_VERTICAL_POSITION) {
215
+ POPUP_VERTICAL_POSITION["bottom"] = "bottom";
216
+ POPUP_VERTICAL_POSITION["top"] = "top";
217
+ })(POPUP_VERTICAL_POSITION || (POPUP_VERTICAL_POSITION = {}));
218
+ export var FILE_FORMATS;
219
+ (function (FILE_FORMATS) {
220
+ FILE_FORMATS["pdf"] = "pdf";
221
+ FILE_FORMATS["doc"] = "doc";
222
+ FILE_FORMATS["docx"] = "docx";
223
+ FILE_FORMATS["xls"] = "xls";
224
+ FILE_FORMATS["xlsx"] = "xlsx";
225
+ FILE_FORMATS["ppt"] = "ppt";
226
+ FILE_FORMATS["pptx"] = "pptx";
227
+ FILE_FORMATS["txt"] = "txt";
228
+ FILE_FORMATS["file"] = "file";
229
+ FILE_FORMATS["mov"] = "mov";
230
+ FILE_FORMATS["mp4"] = "mp4";
231
+ FILE_FORMATS["webm"] = "webm";
232
+ FILE_FORMATS["wmv"] = "wmv";
233
+ FILE_FORMATS["jpeg"] = "jpeg";
234
+ FILE_FORMATS["jpg"] = "jpg";
235
+ FILE_FORMATS["png"] = "png";
236
+ })(FILE_FORMATS || (FILE_FORMATS = {}));
237
+ export var VIDEO_FORMATS = [FILE_FORMATS.mov, FILE_FORMATS.mp4, FILE_FORMATS.webm, FILE_FORMATS.wmv];
238
+ export var MODAL_ICONS_PADDING_LEFT = 16;
239
+ export var DRAGGABLE_KEY = 'handle';
240
+ export var BUTTON = 'button';
241
+ export var INPUT_CHAR_HINT = (_a = {},
242
+ _a[LANGUAGES.ru] = 'Запрос должен содержать не менее 3-х символов',
243
+ _a[LANGUAGES.en] = 'The query must contain at least 3 characters',
244
+ _a[LANGUAGES.de] = 'Die Anfrage muss mindestens 3 Zeichen enthalten',
245
+ _a[LANGUAGES.es] = 'La consulta debe contener al menos 3 caracteres',
246
+ _a[LANGUAGES.fr] = 'Il faut au moins 3 caractères pour la recherche',
247
+ _a[LANGUAGES.ar] = 'الاستفسار يجب أن يحتوي على 3 حروف على الأقل',
248
+ _a[LANGUAGES.ms] = 'Pertanyaan harus mengandungi sekurang-kurangnya 3 aksara',
249
+ _a[LANGUAGES.tr] = 'Sorgu en az 3 karakter içermelidir',
250
+ _a[LANGUAGES.id] = 'Kueri harus berisi minimal 3 karakter',
251
+ _a[LANGUAGES.uz] = 'So‘rov kamida 3 ta belgi bo‘lishi kerak',
252
+ _a[LANGUAGES.kk] = 'Сұрау кемінде 3 таңбадан тұруы керек',
253
+ _a);
254
+ export var USER_DROPDOWN_CHAR_HINT = (_b = {},
255
+ _b[LANGUAGES.ru] = 'Для поиска введите не менее 3-х символов',
256
+ _b[LANGUAGES.en] = 'Enter at least 3 characters to search',
257
+ _b[LANGUAGES.de] = 'Für die Suche mind. 3 Zeichen eingeben',
258
+ _b[LANGUAGES.es] = 'Ingresa al menos 3 caracteres',
259
+ _b[LANGUAGES.fr] = 'Saisissez min. 3 caractères',
260
+ _b[LANGUAGES.ar] = 'أدخل 3 أحرف على الأقل للبحث',
261
+ _b[LANGUAGES.ms] = 'Masukkan minimum 3 aksara',
262
+ _b[LANGUAGES.tr] = 'En az 3 karakter girin',
263
+ _b[LANGUAGES.id] = 'Masukkan minimal 3 karakter',
264
+ _b[LANGUAGES.uz] = 'Kamida 3 ta belgi kiriting',
265
+ _b[LANGUAGES.kk] = 'Іздеу үшін кемінде 3 таңба енгізіңіз',
266
+ _b);
267
+ export var SEARCH_PLACEHOLDER = (_c = {},
268
+ _c[LANGUAGES.ru] = 'Поиск от 3-х символов',
269
+ _c[LANGUAGES.en] = 'Search from 3 characters',
270
+ _c[LANGUAGES.de] = 'Suche ab 3 Zeichen',
271
+ _c[LANGUAGES.es] = 'Buscar con al menos 3 caracteres',
272
+ _c[LANGUAGES.fr] = 'Recherche à partir de 3 caractères',
273
+ _c[LANGUAGES.ar] = 'بحث من أول 3 أحرف',
274
+ _c[LANGUAGES.ms] = 'Cari daripada 3 aksara',
275
+ _c[LANGUAGES.tr] = '3 karakterden arama',
276
+ _c[LANGUAGES.id] = 'Cari dari 3 karakter',
277
+ _c[LANGUAGES.uz] = 'Qidirish (3 ta belgidan boshlab)',
278
+ _c[LANGUAGES.kk] = 'Іздеу үшін кемінде 3 таңба керек',
279
+ _c);
280
+ export var MIN_INPUT_SYMBOLS = 3;
281
+ export var SMARTAPP_MODAL_ID = 'SMARTAPP_MODAL';
282
+ export var EMAIL_FIELD = 'email';
283
+ export var OVERLAYS = 'overlays';
284
+ export var RENDER_DELAY = 50;
285
+ export var PERSISTENT_POSITION_FULLSCREEN;
286
+ (function (PERSISTENT_POSITION_FULLSCREEN) {
287
+ PERSISTENT_POSITION_FULLSCREEN["right"] = "right";
288
+ PERSISTENT_POSITION_FULLSCREEN["left"] = "left";
289
+ })(PERSISTENT_POSITION_FULLSCREEN || (PERSISTENT_POSITION_FULLSCREEN = {}));
290
+ export var BOTTOM_SHEET_SCROLL_POSITION;
291
+ (function (BOTTOM_SHEET_SCROLL_POSITION) {
292
+ BOTTOM_SHEET_SCROLL_POSITION["top"] = "top";
293
+ BOTTOM_SHEET_SCROLL_POSITION["bottom"] = "bottom";
294
+ })(BOTTOM_SHEET_SCROLL_POSITION || (BOTTOM_SHEET_SCROLL_POSITION = {}));
295
+ export var ENTER_KEY_HINT;
296
+ (function (ENTER_KEY_HINT) {
297
+ ENTER_KEY_HINT["done"] = "done";
298
+ ENTER_KEY_HINT["enter"] = "enter";
299
+ })(ENTER_KEY_HINT || (ENTER_KEY_HINT = {}));
300
+ export var EMPTY_STRING = '';
301
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/constants/constants.ts"],"names":[],"mappings":";AAEA,MAAM,CAAC,IAAM,MAAM,GAAG;IACpB,WAAW,EAAE,WAAW;IACxB,SAAS,EAAE,SAAS;IACpB,IAAI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IACX,iDAAiB,CAAA;AACnB,CAAC,EAHW,4BAA4B,KAA5B,4BAA4B,QAGvC;AAED,MAAM,CAAN,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,+BAAa,CAAA;IACb,iCAAe,CAAA;AACjB,CAAC,EAHW,cAAc,KAAd,cAAc,QAGzB;AAED,MAAM,CAAC,IAAM,YAAY,GAAG,EAAE,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './constants';
2
+ export * from './types';
@@ -0,0 +1,3 @@
1
+ export * from './constants';
2
+ export * from './types';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,SAAS,CAAA"}
@@ -0,0 +1,69 @@
1
+ /// <reference types="node" />
2
+ import { ReactElement, RefObject } from 'react';
3
+ import { MouseEvent, TouchEvent } from 'react';
4
+ import { CONTACT_TYPES } from '../сomponents/UserDropdown/constants';
5
+ export type TStyles = {
6
+ [key: string]: number | string;
7
+ };
8
+ export interface IThemeProps {
9
+ theme?: 'default' | 'dark';
10
+ }
11
+ export interface IPlatformProps {
12
+ platform?: 'web' | 'ios' | 'android' | 'aurora';
13
+ }
14
+ export interface ILayoutTypeProps {
15
+ layoutType?: 'minimal' | 'half' | 'full';
16
+ }
17
+ export interface ILanguageProps {
18
+ language?: 'ru' | 'en' | 'de' | 'es' | 'fr' | 'ar' | 'ms' | 'tr' | 'id' | 'uz' | 'kk';
19
+ }
20
+ export interface IFontFamilyProps {
21
+ fontFamily?: string;
22
+ }
23
+ export interface ICommonProps extends IThemeProps, IPlatformProps {
24
+ }
25
+ export type TCalculatePercentageOfValue = {
26
+ value: number;
27
+ percentage: number;
28
+ shouldBeRounded?: boolean;
29
+ };
30
+ export type TGenerateClassNames = {
31
+ className: string;
32
+ delimiter: string;
33
+ additionalClassName: string | string[];
34
+ };
35
+ export type TTextWithLocale = {
36
+ [key: string]: string;
37
+ };
38
+ export type TTimeout = number | NodeJS.Timeout | undefined;
39
+ export type TNodejsTimeout = NodeJS.Timeout | null;
40
+ export type TRenderStoryComponent = {
41
+ component: ReactElement;
42
+ componentDarkTheme?: ReactElement;
43
+ styles?: TStyles;
44
+ };
45
+ export type TTarget = {
46
+ target: any;
47
+ stopPropagation(): void;
48
+ };
49
+ export type TFontFamilyStyle = {
50
+ fontFamily: string;
51
+ };
52
+ export type TRenderCloseIconSpace = {
53
+ elementRef: RefObject<HTMLElement | null>;
54
+ closeIconRef: RefObject<HTMLDivElement | null>;
55
+ isContent?: boolean;
56
+ };
57
+ export type TRenderUserIcon = {
58
+ isMyContacts?: boolean;
59
+ isLocalContact?: boolean;
60
+ isCachedContact?: boolean;
61
+ userType?: CONTACT_TYPES;
62
+ style?: TStyles;
63
+ };
64
+ export type TCoords = {
65
+ x: number;
66
+ y: number;
67
+ };
68
+ export type TClickEvent = MouseEvent | TouchEvent;
69
+ export type TAvatar = ReactElement | string | null;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/constants/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,33 @@
1
+ import { RefObject } from 'react';
2
+ import { TCalculatePercentageOfValue, TGenerateClassNames, TRenderCloseIconSpace, TRenderStoryComponent, TRenderUserIcon } from '../constants';
3
+ import { CONTACT_TYPES } from '../сomponents/UserDropdown/constants';
4
+ export declare const generateColor: (color?: string, defaultColor?: string) => string;
5
+ export declare const checkIsWebPlatform: (platform: string) => boolean;
6
+ export declare const checkIsIosPlatform: (platform: string) => boolean;
7
+ export declare const checkIsAndroidPlatform: (platform: string) => boolean;
8
+ export declare const checkIsMobilePlatform: (platform: string) => boolean;
9
+ export declare const isDarkTheme: (theme?: string) => boolean;
10
+ export declare const generateClassNames: ({ className, delimiter, additionalClassName }: TGenerateClassNames) => string;
11
+ export declare const userNameToColor: (userName?: string) => string;
12
+ export declare const createInitials: (str: string) => string;
13
+ export declare const calculatePercentageOfValue: ({ value, percentage, shouldBeRounded }: TCalculatePercentageOfValue) => number;
14
+ export declare const isFullScreen: (layoutType: string) => boolean;
15
+ export declare const isValueEqualToZero: (value: number) => boolean;
16
+ export declare const renderStoryComponent: ({ component, componentDarkTheme, styles }: TRenderStoryComponent) => import("react/jsx-runtime").JSX.Element;
17
+ export declare const generateIsCloseIconHidden: (platform: string, isCloseIconHidden?: boolean) => boolean;
18
+ export declare const checkIfContentIsCentered: (elementRef: RefObject<HTMLElement | null>) => boolean | undefined;
19
+ export declare const generateBottomSheetClassName: (platform: string, shouldUseBottomSheet: boolean) => string[];
20
+ export declare const generateId: () => string;
21
+ export declare const generateAvatarIcon: (userType?: CONTACT_TYPES) => import("react/jsx-runtime").JSX.Element | null;
22
+ export declare const renderUserIcon: ({ isMyContacts, isLocalContact, isCachedContact, userType, style }: TRenderUserIcon) => import("react/jsx-runtime").JSX.Element | null;
23
+ export declare const extractFileExtensionRegex: (filename: string) => string;
24
+ export declare const generateFileIcon: (fileName: string, displaySize: string) => import("react/jsx-runtime").JSX.Element;
25
+ export declare const renderCloseIconSpace: ({ elementRef, closeIconRef, isContent }: TRenderCloseIconSpace) => import("react/jsx-runtime").JSX.Element;
26
+ export declare const generateFontFamilyStyle: (fontFamily?: string) => {
27
+ fontFamily: string;
28
+ };
29
+ export declare const createSanitizedHtml: (str: string) => {
30
+ __html: string;
31
+ };
32
+ export declare const clickOutsideTheModal: (closeModal: () => void, clickOutside?: () => void) => void;
33
+ export declare const checkIfContactTypeIsGroup: (contactType?: CONTACT_TYPES) => boolean;
@@ -0,0 +1,204 @@
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 classNames from 'classnames';
14
+ import DOMPurify from 'dompurify';
15
+ import juice from 'juice';
16
+ import { isArray, isNil } from 'lodash';
17
+ import { v4 as uuidv4 } from 'uuid';
18
+ import { DISPLAY_SIZE } from '../сomponents/AttachedFile/AttachedFile';
19
+ import { AVATAR_COLOR_BOTTOM, AVATAR_COLOR_BOTTOM_PERCENTS, AVATAR_COLOR_MIDDLE, AVATAR_COLOR_MIDDLE_PERCENTS, AVATAR_COLOR_TOP, AVATAR_COLOR_TOP_PERCENTS, AVATAR_DEGREES, BOTTOM_SHEET, CENTER, COLORS, DEFAULT_HEADER_AVATAR_INDEX, FILE_FORMATS, FONT_FAMILY, LAYOUT_TYPE, MODAL_ICONS_PADDING_LEFT, PLATFORM, THEME, } from '../constants';
20
+ import { CONTACT_TYPES } from '../сomponents/UserDropdown/constants';
21
+ import { ReactComponent as CorporateUserIcon } from '../assets/icons/corporate-user.svg';
22
+ import { ReactComponent as DistributionIcon } from '../assets/icons/distribution.svg';
23
+ import { ReactComponent as DocFileSmallIcon } from '../assets/icons/doc-small.svg';
24
+ import { ReactComponent as DocFileIcon } from '../assets/icons/doc.svg';
25
+ import { ReactComponent as FileSmallIcon } from '../assets/icons/file-small.svg';
26
+ import { ReactComponent as FileIcon } from '../assets/icons/file.svg';
27
+ import { ReactComponent as GlobalAddressBookIcon } from '../assets/icons/global-address-book-user.svg';
28
+ import { ReactComponent as GroupIcon } from '../assets/icons/group.svg';
29
+ import { ReactComponent as ImageFileSmallIcon } from '../assets/icons/image-no-preview-small.svg';
30
+ import { ReactComponent as ImageFileIcon } from '../assets/icons/image-no-preview.svg';
31
+ import { ReactComponent as MeetingRoomIcon } from '../assets/icons/meeting-room.svg';
32
+ import { ReactComponent as MyContactsUserIcon } from '../assets/icons/my-contacts-user.svg';
33
+ import { ReactComponent as PdfFileSmallIcon } from '../assets/icons/pdf-small.svg';
34
+ import { ReactComponent as PdfFileIcon } from '../assets/icons/pdf.svg';
35
+ import { ReactComponent as PptFileSmallIcon } from '../assets/icons/ppt-small.svg';
36
+ import { ReactComponent as PptFileIcon } from '../assets/icons/ppt.svg';
37
+ import { ReactComponent as TxtFileSmallIcon } from '../assets/icons/txt-small.svg';
38
+ import { ReactComponent as TxtFileIcon } from '../assets/icons/txt.svg';
39
+ import { ReactComponent as VideoFileSmallIcon } from '../assets/icons/video-no-preview-small.svg';
40
+ import { ReactComponent as VideoFileIcon } from '../assets/icons/video-no-preview.svg';
41
+ import { ReactComponent as XlsFileSmallIcon } from '../assets/icons/xls-small.svg';
42
+ import { ReactComponent as XlsFileIcon } from '../assets/icons/xls.svg';
43
+ export var generateColor = function (color, defaultColor) {
44
+ if (defaultColor === void 0) { defaultColor = ''; }
45
+ return (color && CSS.supports('color', color) ? color : defaultColor);
46
+ };
47
+ export var checkIsWebPlatform = function (platform) { return platform === PLATFORM.web; };
48
+ export var checkIsIosPlatform = function (platform) { return platform === PLATFORM.ios; };
49
+ export var checkIsAndroidPlatform = function (platform) { return platform === PLATFORM.android; };
50
+ export var checkIsMobilePlatform = function (platform) {
51
+ return checkIsAndroidPlatform(platform) || checkIsIosPlatform(platform) || platform === PLATFORM.aurora;
52
+ };
53
+ export var isDarkTheme = function (theme) { return theme === THEME.dark; };
54
+ export var generateClassNames = function (_a) {
55
+ var className = _a.className, delimiter = _a.delimiter, additionalClassName = _a.additionalClassName;
56
+ return isArray(additionalClassName)
57
+ ? classNames(className, additionalClassName.map(function (name) { return "".concat(className).concat(delimiter).concat(name); }))
58
+ : classNames(className, "".concat(className).concat(delimiter).concat(additionalClassName));
59
+ };
60
+ export var userNameToColor = function (userName) {
61
+ var _a = generateAvatarColor(userName), degrees = _a.degrees, top = _a.top, topPercent = _a.topPercent, middle = _a.middle, middlePercent = _a.middlePercent, bottom = _a.bottom, bottomPercent = _a.bottomPercent;
62
+ return middle
63
+ ? "linear-gradient(".concat(degrees, "deg, ").concat(top, " ").concat(topPercent, "%, ").concat(middle, " ").concat(middlePercent, "%, ").concat(bottom, " ").concat(bottomPercent, "%)")
64
+ : "linear-gradient(".concat(degrees, "deg, ").concat(top, " ").concat(topPercent, "%, ").concat(bottom, " ").concat(bottomPercent, "%)");
65
+ };
66
+ var generateAvatarData = function (index) { return ({
67
+ degrees: AVATAR_DEGREES[index],
68
+ top: AVATAR_COLOR_TOP[index],
69
+ topPercent: AVATAR_COLOR_TOP_PERCENTS[index],
70
+ middle: AVATAR_COLOR_MIDDLE[index],
71
+ middlePercent: AVATAR_COLOR_MIDDLE_PERCENTS[index],
72
+ bottom: AVATAR_COLOR_BOTTOM[index],
73
+ bottomPercent: AVATAR_COLOR_BOTTOM_PERCENTS[index],
74
+ }); };
75
+ var generateAvatarColor = function (str) {
76
+ if (!str)
77
+ return generateAvatarData(DEFAULT_HEADER_AVATAR_INDEX);
78
+ var stylesIndex = calculateAvatarStylesIndex(str) || 0;
79
+ return generateAvatarData(stylesIndex);
80
+ };
81
+ var calculateAvatarStylesIndex = function (str) { return Math.abs(hashCode(str) % AVATAR_COLOR_TOP.length); };
82
+ var hashCode = function (str) {
83
+ return str.split('').reduce(function (a, b) {
84
+ a = (a << 5) - a + b.charCodeAt(0);
85
+ return a & a;
86
+ }, 0);
87
+ };
88
+ var generateFirstLetterOfWord = function (word) { return (word === null || word === void 0 ? void 0 : word[0]) || ''; };
89
+ export var createInitials = function (str) {
90
+ var _a = str.trim().toUpperCase().split(' '), firstWord = _a[0], secondWord = _a[1];
91
+ return "".concat(generateFirstLetterOfWord(firstWord)).concat(generateFirstLetterOfWord(secondWord));
92
+ };
93
+ export var calculatePercentageOfValue = function (_a) {
94
+ var value = _a.value, percentage = _a.percentage, _b = _a.shouldBeRounded, shouldBeRounded = _b === void 0 ? true : _b;
95
+ var result = (value * percentage) / 100;
96
+ return shouldBeRounded ? Math.ceil(result) : result;
97
+ };
98
+ export var isFullScreen = function (layoutType) { return layoutType === LAYOUT_TYPE.full; };
99
+ export var isValueEqualToZero = function (value) { return value === 0; };
100
+ export var renderStoryComponent = function (_a) {
101
+ var component = _a.component, componentDarkTheme = _a.componentDarkTheme, styles = _a.styles;
102
+ return (_jsxs("div", __assign({ style: { display: 'flex', flexDirection: 'column', gap: '16px' } }, { children: [_jsxs("div", __assign({ style: __assign({ border: '1px dashed #9747FF', borderRadius: '5px', padding: '0 16px 16px' }, styles) }, { children: [_jsx("h3", { children: "Light Theme" }), component] })), _jsxs("div", __assign({ style: __assign({ background: '#242424', borderRadius: '5px', padding: '0 16px 16px' }, styles) }, { children: [_jsx("h3", __assign({ style: { color: '#F9F9F9' } }, { children: "Dark Theme" })), _jsx("div", __assign({ "data-theme": "dark" }, { children: componentDarkTheme || component }))] }))] })));
103
+ };
104
+ export var generateIsCloseIconHidden = function (platform, isCloseIconHidden) {
105
+ return isNil(isCloseIconHidden) ? checkIsMobilePlatform(platform) : isCloseIconHidden;
106
+ };
107
+ var isTextAlignEqualToCenter = function (element) { return (element ? window.getComputedStyle(element).textAlign === CENTER : false); };
108
+ export var checkIfContentIsCentered = function (elementRef) {
109
+ var elementRefCurrent = elementRef.current;
110
+ if (elementRefCurrent)
111
+ return isTextAlignEqualToCenter(elementRefCurrent) || isTextAlignEqualToCenter(elementRefCurrent.firstElementChild);
112
+ };
113
+ export var generateBottomSheetClassName = function (platform, shouldUseBottomSheet) {
114
+ return [platform, shouldUseBottomSheet ? BOTTOM_SHEET : ''].filter(Boolean);
115
+ };
116
+ export var generateId = function () { return uuidv4(); };
117
+ export var generateAvatarIcon = function (userType) {
118
+ switch (userType) {
119
+ case CONTACT_TYPES.privateDL:
120
+ return _jsx(GroupIcon, { color: COLORS.iconContrast });
121
+ case CONTACT_TYPES.publicDL:
122
+ return _jsx(DistributionIcon, { color: COLORS.iconContrast });
123
+ case CONTACT_TYPES.meetingRoom:
124
+ return _jsx(MeetingRoomIcon, { color: COLORS.iconContrast });
125
+ default:
126
+ return null;
127
+ }
128
+ };
129
+ export var renderUserIcon = function (_a) {
130
+ var isMyContacts = _a.isMyContacts, isLocalContact = _a.isLocalContact, isCachedContact = _a.isCachedContact, userType = _a.userType, style = _a.style;
131
+ if (isMyContacts)
132
+ return _jsx(MyContactsUserIcon, { color: COLORS.iconSecondary, style: style });
133
+ if (isLocalContact || isCachedContact)
134
+ return _jsx(GlobalAddressBookIcon, { color: COLORS.iconPrimary, style: style });
135
+ switch (userType) {
136
+ case CONTACT_TYPES.myContact:
137
+ case CONTACT_TYPES.privateDL:
138
+ return _jsx(MyContactsUserIcon, { color: COLORS.iconSecondary, style: style });
139
+ case CONTACT_TYPES.GALContact:
140
+ return _jsx(GlobalAddressBookIcon, { color: COLORS.iconPrimary, style: style });
141
+ case CONTACT_TYPES.meetingRoom:
142
+ case CONTACT_TYPES.publicDL:
143
+ return null;
144
+ default:
145
+ return _jsx(CorporateUserIcon, { color: COLORS.iconAccent, style: style });
146
+ }
147
+ };
148
+ export var extractFileExtensionRegex = function (filename) {
149
+ var match = filename.match(/\.([a-z0-9]+)$/i);
150
+ return (match === null || match === void 0 ? void 0 : match[1]) || '';
151
+ };
152
+ export var generateFileIcon = function (fileName, displaySize) {
153
+ var isSmallDisplaySize = displaySize === DISPLAY_SIZE.small;
154
+ var fileExtension = extractFileExtensionRegex(fileName);
155
+ switch (fileExtension) {
156
+ case FILE_FORMATS.pdf:
157
+ return isSmallDisplaySize ? _jsx(PdfFileSmallIcon, {}) : _jsx(PdfFileIcon, {});
158
+ case FILE_FORMATS.doc:
159
+ case FILE_FORMATS.docx:
160
+ return isSmallDisplaySize ? _jsx(DocFileSmallIcon, {}) : _jsx(DocFileIcon, {});
161
+ case FILE_FORMATS.xls:
162
+ case FILE_FORMATS.xlsx:
163
+ return isSmallDisplaySize ? _jsx(XlsFileSmallIcon, {}) : _jsx(XlsFileIcon, {});
164
+ case FILE_FORMATS.ppt:
165
+ case FILE_FORMATS.pptx:
166
+ return isSmallDisplaySize ? _jsx(PptFileSmallIcon, {}) : _jsx(PptFileIcon, {});
167
+ case FILE_FORMATS.txt:
168
+ return isSmallDisplaySize ? _jsx(TxtFileSmallIcon, {}) : _jsx(TxtFileIcon, {});
169
+ case FILE_FORMATS.mov:
170
+ case FILE_FORMATS.mp4:
171
+ case FILE_FORMATS.webm:
172
+ case FILE_FORMATS.wmv:
173
+ return isSmallDisplaySize ? _jsx(VideoFileSmallIcon, {}) : _jsx(VideoFileIcon, {});
174
+ case FILE_FORMATS.jpg:
175
+ case FILE_FORMATS.jpeg:
176
+ case FILE_FORMATS.png:
177
+ return isSmallDisplaySize ? _jsx(ImageFileSmallIcon, {}) : _jsx(ImageFileIcon, {});
178
+ default:
179
+ return isSmallDisplaySize ? _jsx(FileSmallIcon, {}) : _jsx(FileIcon, {});
180
+ }
181
+ };
182
+ export var renderCloseIconSpace = function (_a) {
183
+ var _b;
184
+ var elementRef = _a.elementRef, closeIconRef = _a.closeIconRef, _c = _a.isContent, isContent = _c === void 0 ? false : _c;
185
+ var _d = (((_b = closeIconRef.current) === null || _b === void 0 ? void 0 : _b.getBoundingClientRect()) || {}).width, width = _d === void 0 ? 0 : _d;
186
+ return (_jsx("div", { style: { '--close-icon-space-width': "".concat(width + MODAL_ICONS_PADDING_LEFT, "px") }, className: classNames('close-icon-space', {
187
+ 'close-icon-space__content': isContent,
188
+ 'close-icon-space__centered': checkIfContentIsCentered(elementRef),
189
+ }) }));
190
+ };
191
+ export var generateFontFamilyStyle = function (fontFamily) {
192
+ if (fontFamily === void 0) { fontFamily = FONT_FAMILY.inter; }
193
+ return ({ fontFamily: "".concat(fontFamily, ", sans-serif") });
194
+ };
195
+ export var createSanitizedHtml = function (str) {
196
+ var preparedHtml = juice(str);
197
+ var html = DOMPurify.sanitize(preparedHtml);
198
+ return { __html: html };
199
+ };
200
+ export var clickOutsideTheModal = function (closeModal, clickOutside) { return (clickOutside ? clickOutside() : closeModal()); };
201
+ export var checkIfContactTypeIsGroup = function (contactType) {
202
+ return contactType === CONTACT_TYPES.publicDL || contactType === CONTACT_TYPES.privateDL;
203
+ };
204
+ //# sourceMappingURL=index.js.map