@expressms/smartapp-ui 2.5.7 → 2.5.8

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 (401) hide show
  1. package/package.json +1 -1
  2. package/build/main/assets/icons/arrow-back.svg +0 -3
  3. package/build/main/assets/icons/arrow-down.svg +0 -3
  4. package/build/main/assets/icons/arrow-up.svg +0 -3
  5. package/build/main/assets/icons/attachment-loader.svg +0 -3
  6. package/build/main/assets/icons/button-loader.svg +0 -3
  7. package/build/main/assets/icons/cancel-cross.svg +0 -3
  8. package/build/main/assets/icons/check-mark.svg +0 -4
  9. package/build/main/assets/icons/clear.svg +0 -3
  10. package/build/main/assets/icons/close-stories.svg +0 -4
  11. package/build/main/assets/icons/close.svg +0 -10
  12. package/build/main/assets/icons/contact-info.svg +0 -12
  13. package/build/main/assets/icons/corporate-user.svg +0 -10
  14. package/build/main/assets/icons/crown.svg +0 -5
  15. package/build/main/assets/icons/delete-chip.svg +0 -3
  16. package/build/main/assets/icons/download.svg +0 -4
  17. package/build/main/assets/icons/error.svg +0 -5
  18. package/build/main/assets/icons/external-link.svg +0 -3
  19. package/build/main/assets/icons/eye-off.svg +0 -10
  20. package/build/main/assets/icons/eye.svg +0 -10
  21. package/build/main/assets/icons/file.svg +0 -3
  22. package/build/main/assets/icons/info.svg +0 -5
  23. package/build/main/assets/icons/loader.svg +0 -3
  24. package/build/main/assets/icons/logout.svg +0 -4
  25. package/build/main/assets/icons/magnifying-glass.svg +0 -3
  26. package/build/main/assets/icons/mail.svg +0 -3
  27. package/build/main/assets/icons/my-contact-user.svg +0 -10
  28. package/build/main/assets/icons/notification-close.svg +0 -3
  29. package/build/main/assets/icons/notification-error.svg +0 -3
  30. package/build/main/assets/icons/notification-failure.svg +0 -3
  31. package/build/main/assets/icons/notification-info.svg +0 -5
  32. package/build/main/assets/icons/notification-success.svg +0 -4
  33. package/build/main/assets/icons/notification-warning.svg +0 -5
  34. package/build/main/assets/icons/order.svg +0 -6
  35. package/build/main/assets/icons/plus.svg +0 -4
  36. package/build/main/assets/icons/refresh.svg +0 -3
  37. package/build/main/assets/icons/story-loader.svg +0 -3
  38. package/build/main/assets/icons/tick.svg +0 -10
  39. package/build/main/assets/icons/trash.svg +0 -3
  40. package/build/main/assets/storybook/index.d.ts +0 -12
  41. package/build/main/assets/storybook/index.js +0 -13
  42. package/build/main/assets/storybook/index.js.map +0 -1
  43. package/build/main/constants/constants.d.ts +0 -136
  44. package/build/main/constants/constants.js +0 -152
  45. package/build/main/constants/constants.js.map +0 -1
  46. package/build/main/constants/index.d.ts +0 -2
  47. package/build/main/constants/index.js +0 -3
  48. package/build/main/constants/index.js.map +0 -1
  49. package/build/main/constants/types.d.ts +0 -28
  50. package/build/main/constants/types.js +0 -2
  51. package/build/main/constants/types.js.map +0 -1
  52. package/build/main/helpers/index.d.ts +0 -20
  53. package/build/main/helpers/index.js +0 -80
  54. package/build/main/helpers/index.js.map +0 -1
  55. package/build/main/index.d.ts +0 -3
  56. package/build/main/index.js +0 -4
  57. package/build/main/index.js.map +0 -1
  58. package/build/main/styles/index.d.ts +0 -1
  59. package/build/main/styles/index.js +0 -2
  60. package/build/main/styles/index.js.map +0 -1
  61. package/build/main/styles/main.js +0 -0
  62. package/build/main/styles/styles.scss +0 -14
  63. package/build/main//321/201omponents/ActionModal/ActionModal.d.ts +0 -4
  64. package/build/main//321/201omponents/ActionModal/ActionModal.js +0 -56
  65. package/build/main//321/201omponents/ActionModal/ActionModal.js.map +0 -1
  66. package/build/main//321/201omponents/ActionModal/index.d.ts +0 -1
  67. package/build/main//321/201omponents/ActionModal/index.js +0 -2
  68. package/build/main//321/201omponents/ActionModal/index.js.map +0 -1
  69. package/build/main//321/201omponents/ActionModal/types.d.ts +0 -20
  70. package/build/main//321/201omponents/ActionModal/types.js +0 -2
  71. package/build/main//321/201omponents/ActionModal/types.js.map +0 -1
  72. package/build/main//321/201omponents/AttachedFile/AttachedFile.d.ts +0 -8
  73. package/build/main//321/201omponents/AttachedFile/AttachedFile.js +0 -60
  74. package/build/main//321/201omponents/AttachedFile/AttachedFile.js.map +0 -1
  75. package/build/main//321/201omponents/AttachedFile/index.d.ts +0 -1
  76. package/build/main//321/201omponents/AttachedFile/index.js +0 -2
  77. package/build/main//321/201omponents/AttachedFile/index.js.map +0 -1
  78. package/build/main//321/201omponents/AttachedFile/types.d.ts +0 -23
  79. package/build/main//321/201omponents/AttachedFile/types.js +0 -2
  80. package/build/main//321/201omponents/AttachedFile/types.js.map +0 -1
  81. package/build/main//321/201omponents/Avatar/Avatar.d.ts +0 -4
  82. package/build/main//321/201omponents/Avatar/Avatar.js +0 -115
  83. package/build/main//321/201omponents/Avatar/Avatar.js.map +0 -1
  84. package/build/main//321/201omponents/Avatar/index.d.ts +0 -1
  85. package/build/main//321/201omponents/Avatar/index.js +0 -2
  86. package/build/main//321/201omponents/Avatar/index.js.map +0 -1
  87. package/build/main//321/201omponents/Avatar/types.d.ts +0 -36
  88. package/build/main//321/201omponents/Avatar/types.js +0 -9
  89. package/build/main//321/201omponents/Avatar/types.js.map +0 -1
  90. package/build/main//321/201omponents/Button/Button.d.ts +0 -4
  91. package/build/main//321/201omponents/Button/Button.js +0 -46
  92. package/build/main//321/201omponents/Button/Button.js.map +0 -1
  93. package/build/main//321/201omponents/Button/index.d.ts +0 -1
  94. package/build/main//321/201omponents/Button/index.js +0 -2
  95. package/build/main//321/201omponents/Button/index.js.map +0 -1
  96. package/build/main//321/201omponents/Button/types.d.ts +0 -23
  97. package/build/main//321/201omponents/Button/types.js +0 -11
  98. package/build/main//321/201omponents/Button/types.js.map +0 -1
  99. package/build/main//321/201omponents/CachedImage/CachedImage.d.ts +0 -4
  100. package/build/main//321/201omponents/CachedImage/CachedImage.js +0 -54
  101. package/build/main//321/201omponents/CachedImage/CachedImage.js.map +0 -1
  102. package/build/main//321/201omponents/CachedImage/helpers.d.ts +0 -3
  103. package/build/main//321/201omponents/CachedImage/helpers.js +0 -40
  104. package/build/main//321/201omponents/CachedImage/helpers.js.map +0 -1
  105. package/build/main//321/201omponents/CachedImage/index.d.ts +0 -1
  106. package/build/main//321/201omponents/CachedImage/index.js +0 -2
  107. package/build/main//321/201omponents/CachedImage/index.js.map +0 -1
  108. package/build/main//321/201omponents/CachedImage/types.d.ts +0 -8
  109. package/build/main//321/201omponents/CachedImage/types.js +0 -2
  110. package/build/main//321/201omponents/CachedImage/types.js.map +0 -1
  111. package/build/main//321/201omponents/Calendar/Calendar.d.ts +0 -4
  112. package/build/main//321/201omponents/Calendar/Calendar.js +0 -48
  113. package/build/main//321/201omponents/Calendar/Calendar.js.map +0 -1
  114. package/build/main//321/201omponents/Calendar/index.d.ts +0 -1
  115. package/build/main//321/201omponents/Calendar/index.js +0 -2
  116. package/build/main//321/201omponents/Calendar/index.js.map +0 -1
  117. package/build/main//321/201omponents/Calendar/types.d.ts +0 -14
  118. package/build/main//321/201omponents/Calendar/types.js +0 -2
  119. package/build/main//321/201omponents/Calendar/types.js.map +0 -1
  120. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.d.ts +0 -3
  121. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js +0 -39
  122. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js.map +0 -1
  123. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.d.ts +0 -3
  124. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js +0 -30
  125. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js.map +0 -1
  126. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.d.ts +0 -3
  127. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js +0 -64
  128. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js.map +0 -1
  129. package/build/main//321/201omponents/Charts/colors.d.ts +0 -2
  130. package/build/main//321/201omponents/Charts/colors.js +0 -3
  131. package/build/main//321/201omponents/Charts/colors.js.map +0 -1
  132. package/build/main//321/201omponents/Charts/constants.d.ts +0 -50
  133. package/build/main//321/201omponents/Charts/constants.js +0 -36
  134. package/build/main//321/201omponents/Charts/constants.js.map +0 -1
  135. package/build/main//321/201omponents/Charts/helpers.d.ts +0 -68
  136. package/build/main//321/201omponents/Charts/helpers.js +0 -91
  137. package/build/main//321/201omponents/Charts/helpers.js.map +0 -1
  138. package/build/main//321/201omponents/Charts/index.d.ts +0 -3
  139. package/build/main//321/201omponents/Charts/index.js +0 -4
  140. package/build/main//321/201omponents/Charts/index.js.map +0 -1
  141. package/build/main//321/201omponents/Charts/types.d.ts +0 -51
  142. package/build/main//321/201omponents/Charts/types.js +0 -2
  143. package/build/main//321/201omponents/Charts/types.js.map +0 -1
  144. package/build/main//321/201omponents/Checkbox/Checkbox.d.ts +0 -4
  145. package/build/main//321/201omponents/Checkbox/Checkbox.js +0 -36
  146. package/build/main//321/201omponents/Checkbox/Checkbox.js.map +0 -1
  147. package/build/main//321/201omponents/Checkbox/index.d.ts +0 -1
  148. package/build/main//321/201omponents/Checkbox/index.js +0 -2
  149. package/build/main//321/201omponents/Checkbox/index.js.map +0 -1
  150. package/build/main//321/201omponents/Checkbox/types.d.ts +0 -9
  151. package/build/main//321/201omponents/Checkbox/types.js +0 -2
  152. package/build/main//321/201omponents/Checkbox/types.js.map +0 -1
  153. package/build/main//321/201omponents/Chip/Chip.d.ts +0 -4
  154. package/build/main//321/201omponents/Chip/Chip.js +0 -40
  155. package/build/main//321/201omponents/Chip/Chip.js.map +0 -1
  156. package/build/main//321/201omponents/Chip/index.d.ts +0 -1
  157. package/build/main//321/201omponents/Chip/index.js +0 -2
  158. package/build/main//321/201omponents/Chip/index.js.map +0 -1
  159. package/build/main//321/201omponents/Chip/types.d.ts +0 -10
  160. package/build/main//321/201omponents/Chip/types.js +0 -2
  161. package/build/main//321/201omponents/Chip/types.js.map +0 -1
  162. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.d.ts +0 -4
  163. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js +0 -44
  164. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js.map +0 -1
  165. package/build/main//321/201omponents/ConfirmationModal/index.d.ts +0 -1
  166. package/build/main//321/201omponents/ConfirmationModal/index.js +0 -2
  167. package/build/main//321/201omponents/ConfirmationModal/index.js.map +0 -1
  168. package/build/main//321/201omponents/ConfirmationModal/types.d.ts +0 -16
  169. package/build/main//321/201omponents/ConfirmationModal/types.js +0 -2
  170. package/build/main//321/201omponents/ConfirmationModal/types.js.map +0 -1
  171. package/build/main//321/201omponents/ContextMenu/ContextMenu.d.ts +0 -4
  172. package/build/main//321/201omponents/ContextMenu/ContextMenu.js +0 -55
  173. package/build/main//321/201omponents/ContextMenu/ContextMenu.js.map +0 -1
  174. package/build/main//321/201omponents/ContextMenu/index.d.ts +0 -1
  175. package/build/main//321/201omponents/ContextMenu/index.js +0 -2
  176. package/build/main//321/201omponents/ContextMenu/index.js.map +0 -1
  177. package/build/main//321/201omponents/ContextMenu/types.d.ts +0 -24
  178. package/build/main//321/201omponents/ContextMenu/types.js +0 -2
  179. package/build/main//321/201omponents/ContextMenu/types.js.map +0 -1
  180. package/build/main//321/201omponents/CustomSelect/CustomSelect.d.ts +0 -4
  181. package/build/main//321/201omponents/CustomSelect/CustomSelect.js +0 -172
  182. package/build/main//321/201omponents/CustomSelect/CustomSelect.js.map +0 -1
  183. package/build/main//321/201omponents/CustomSelect/index.d.ts +0 -1
  184. package/build/main//321/201omponents/CustomSelect/index.js +0 -2
  185. package/build/main//321/201omponents/CustomSelect/index.js.map +0 -1
  186. package/build/main//321/201omponents/CustomSelect/selectStyles.d.ts +0 -16
  187. package/build/main//321/201omponents/CustomSelect/selectStyles.js +0 -61
  188. package/build/main//321/201omponents/CustomSelect/selectStyles.js.map +0 -1
  189. package/build/main//321/201omponents/CustomSelect/types.d.ts +0 -54
  190. package/build/main//321/201omponents/CustomSelect/types.js +0 -2
  191. package/build/main//321/201omponents/CustomSelect/types.js.map +0 -1
  192. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.d.ts +0 -4
  193. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js +0 -57
  194. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js.map +0 -1
  195. package/build/main//321/201omponents/CustomSelectProfiles/index.d.ts +0 -1
  196. package/build/main//321/201omponents/CustomSelectProfiles/index.js +0 -2
  197. package/build/main//321/201omponents/CustomSelectProfiles/index.js.map +0 -1
  198. package/build/main//321/201omponents/CustomSelectProfiles/types.d.ts +0 -12
  199. package/build/main//321/201omponents/CustomSelectProfiles/types.js +0 -2
  200. package/build/main//321/201omponents/CustomSelectProfiles/types.js.map +0 -1
  201. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.d.ts +0 -4
  202. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js +0 -57
  203. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js.map +0 -1
  204. package/build/main//321/201omponents/DragAndDrop/index.d.ts +0 -1
  205. package/build/main//321/201omponents/DragAndDrop/index.js +0 -2
  206. package/build/main//321/201omponents/DragAndDrop/index.js.map +0 -1
  207. package/build/main//321/201omponents/DragAndDrop/types.d.ts +0 -24
  208. package/build/main//321/201omponents/DragAndDrop/types.js +0 -2
  209. package/build/main//321/201omponents/DragAndDrop/types.js.map +0 -1
  210. package/build/main//321/201omponents/Error/Error.d.ts +0 -4
  211. package/build/main//321/201omponents/Error/Error.js +0 -22
  212. package/build/main//321/201omponents/Error/Error.js.map +0 -1
  213. package/build/main//321/201omponents/Error/index.d.ts +0 -1
  214. package/build/main//321/201omponents/Error/index.js +0 -2
  215. package/build/main//321/201omponents/Error/index.js.map +0 -1
  216. package/build/main//321/201omponents/Error/types.d.ts +0 -7
  217. package/build/main//321/201omponents/Error/types.js +0 -2
  218. package/build/main//321/201omponents/Error/types.js.map +0 -1
  219. package/build/main//321/201omponents/Header/Header.d.ts +0 -5
  220. package/build/main//321/201omponents/Header/Header.js +0 -124
  221. package/build/main//321/201omponents/Header/Header.js.map +0 -1
  222. package/build/main//321/201omponents/Header/index.d.ts +0 -1
  223. package/build/main//321/201omponents/Header/index.js +0 -2
  224. package/build/main//321/201omponents/Header/index.js.map +0 -1
  225. package/build/main//321/201omponents/Header/types.d.ts +0 -44
  226. package/build/main//321/201omponents/Header/types.js +0 -2
  227. package/build/main//321/201omponents/Header/types.js.map +0 -1
  228. package/build/main//321/201omponents/Input/Input.d.ts +0 -4
  229. package/build/main//321/201omponents/Input/Input.js +0 -195
  230. package/build/main//321/201omponents/Input/Input.js.map +0 -1
  231. package/build/main//321/201omponents/Input/index.d.ts +0 -1
  232. package/build/main//321/201omponents/Input/index.js +0 -2
  233. package/build/main//321/201omponents/Input/index.js.map +0 -1
  234. package/build/main//321/201omponents/Input/types.d.ts +0 -35
  235. package/build/main//321/201omponents/Input/types.js +0 -2
  236. package/build/main//321/201omponents/Input/types.js.map +0 -1
  237. package/build/main//321/201omponents/ListItem/ListItem.d.ts +0 -23
  238. package/build/main//321/201omponents/ListItem/ListItem.js +0 -195
  239. package/build/main//321/201omponents/ListItem/ListItem.js.map +0 -1
  240. package/build/main//321/201omponents/ListItem/index.d.ts +0 -1
  241. package/build/main//321/201omponents/ListItem/index.js +0 -2
  242. package/build/main//321/201omponents/ListItem/index.js.map +0 -1
  243. package/build/main//321/201omponents/ListItem/types.d.ts +0 -38
  244. package/build/main//321/201omponents/ListItem/types.js +0 -2
  245. package/build/main//321/201omponents/ListItem/types.js.map +0 -1
  246. package/build/main//321/201omponents/Loader/Loader.d.ts +0 -4
  247. package/build/main//321/201omponents/Loader/Loader.js +0 -40
  248. package/build/main//321/201omponents/Loader/Loader.js.map +0 -1
  249. package/build/main//321/201omponents/Loader/index.d.ts +0 -1
  250. package/build/main//321/201omponents/Loader/index.js +0 -2
  251. package/build/main//321/201omponents/Loader/index.js.map +0 -1
  252. package/build/main//321/201omponents/Loader/types.d.ts +0 -12
  253. package/build/main//321/201omponents/Loader/types.js +0 -2
  254. package/build/main//321/201omponents/Loader/types.js.map +0 -1
  255. package/build/main//321/201omponents/Modal/Modal.d.ts +0 -4
  256. package/build/main//321/201omponents/Modal/Modal.js +0 -53
  257. package/build/main//321/201omponents/Modal/Modal.js.map +0 -1
  258. package/build/main//321/201omponents/Modal/index.d.ts +0 -1
  259. package/build/main//321/201omponents/Modal/index.js +0 -2
  260. package/build/main//321/201omponents/Modal/index.js.map +0 -1
  261. package/build/main//321/201omponents/Modal/types.d.ts +0 -15
  262. package/build/main//321/201omponents/Modal/types.js +0 -2
  263. package/build/main//321/201omponents/Modal/types.js.map +0 -1
  264. package/build/main//321/201omponents/Notification/Notification.d.ts +0 -8
  265. package/build/main//321/201omponents/Notification/Notification.js +0 -178
  266. package/build/main//321/201omponents/Notification/Notification.js.map +0 -1
  267. package/build/main//321/201omponents/Notification/index.d.ts +0 -1
  268. package/build/main//321/201omponents/Notification/index.js +0 -2
  269. package/build/main//321/201omponents/Notification/index.js.map +0 -1
  270. package/build/main//321/201omponents/Notification/types.d.ts +0 -39
  271. package/build/main//321/201omponents/Notification/types.js +0 -2
  272. package/build/main//321/201omponents/Notification/types.js.map +0 -1
  273. package/build/main//321/201omponents/Profile/Profile.d.ts +0 -4
  274. package/build/main//321/201omponents/Profile/Profile.js +0 -42
  275. package/build/main//321/201omponents/Profile/Profile.js.map +0 -1
  276. package/build/main//321/201omponents/Profile/index.d.ts +0 -1
  277. package/build/main//321/201omponents/Profile/index.js +0 -2
  278. package/build/main//321/201omponents/Profile/index.js.map +0 -1
  279. package/build/main//321/201omponents/Profile/types.d.ts +0 -14
  280. package/build/main//321/201omponents/Profile/types.js +0 -2
  281. package/build/main//321/201omponents/Profile/types.js.map +0 -1
  282. package/build/main//321/201omponents/ProgressBar/ProgressBar.d.ts +0 -4
  283. package/build/main//321/201omponents/ProgressBar/ProgressBar.js +0 -66
  284. package/build/main//321/201omponents/ProgressBar/ProgressBar.js.map +0 -1
  285. package/build/main//321/201omponents/ProgressBar/index.d.ts +0 -1
  286. package/build/main//321/201omponents/ProgressBar/index.js +0 -2
  287. package/build/main//321/201omponents/ProgressBar/index.js.map +0 -1
  288. package/build/main//321/201omponents/ProgressBar/types.d.ts +0 -4
  289. package/build/main//321/201omponents/ProgressBar/types.js +0 -2
  290. package/build/main//321/201omponents/ProgressBar/types.js.map +0 -1
  291. package/build/main//321/201omponents/RadioButton/RadioButton.d.ts +0 -4
  292. package/build/main//321/201omponents/RadioButton/RadioButton.js +0 -36
  293. package/build/main//321/201omponents/RadioButton/RadioButton.js.map +0 -1
  294. package/build/main//321/201omponents/RadioButton/index.d.ts +0 -1
  295. package/build/main//321/201omponents/RadioButton/index.js +0 -2
  296. package/build/main//321/201omponents/RadioButton/index.js.map +0 -1
  297. package/build/main//321/201omponents/RadioButton/types.d.ts +0 -9
  298. package/build/main//321/201omponents/RadioButton/types.js +0 -2
  299. package/build/main//321/201omponents/RadioButton/types.js.map +0 -1
  300. package/build/main//321/201omponents/ScrollBar/ScrollBar.d.ts +0 -4
  301. package/build/main//321/201omponents/ScrollBar/ScrollBar.js +0 -50
  302. package/build/main//321/201omponents/ScrollBar/ScrollBar.js.map +0 -1
  303. package/build/main//321/201omponents/ScrollBar/index.d.ts +0 -1
  304. package/build/main//321/201omponents/ScrollBar/index.js +0 -2
  305. package/build/main//321/201omponents/ScrollBar/index.js.map +0 -1
  306. package/build/main//321/201omponents/ScrollBar/types.d.ts +0 -9
  307. package/build/main//321/201omponents/ScrollBar/types.js +0 -2
  308. package/build/main//321/201omponents/ScrollBar/types.js.map +0 -1
  309. package/build/main//321/201omponents/Skeleton/Skeleton.d.ts +0 -4
  310. package/build/main//321/201omponents/Skeleton/Skeleton.js +0 -66
  311. package/build/main//321/201omponents/Skeleton/Skeleton.js.map +0 -1
  312. package/build/main//321/201omponents/Skeleton/index.d.ts +0 -1
  313. package/build/main//321/201omponents/Skeleton/index.js +0 -2
  314. package/build/main//321/201omponents/Skeleton/index.js.map +0 -1
  315. package/build/main//321/201omponents/Skeleton/types.d.ts +0 -16
  316. package/build/main//321/201omponents/Skeleton/types.js +0 -2
  317. package/build/main//321/201omponents/Skeleton/types.js.map +0 -1
  318. package/build/main//321/201omponents/Stories/Stories.d.ts +0 -4
  319. package/build/main//321/201omponents/Stories/Stories.js +0 -281
  320. package/build/main//321/201omponents/Stories/Stories.js.map +0 -1
  321. package/build/main//321/201omponents/Stories/index.d.ts +0 -1
  322. package/build/main//321/201omponents/Stories/index.js +0 -2
  323. package/build/main//321/201omponents/Stories/index.js.map +0 -1
  324. package/build/main//321/201omponents/Stories/types.d.ts +0 -54
  325. package/build/main//321/201omponents/Stories/types.js +0 -11
  326. package/build/main//321/201omponents/Stories/types.js.map +0 -1
  327. package/build/main//321/201omponents/Switcher/Switcher.d.ts +0 -4
  328. package/build/main//321/201omponents/Switcher/Switcher.js +0 -34
  329. package/build/main//321/201omponents/Switcher/Switcher.js.map +0 -1
  330. package/build/main//321/201omponents/Switcher/index.d.ts +0 -1
  331. package/build/main//321/201omponents/Switcher/index.js +0 -2
  332. package/build/main//321/201omponents/Switcher/index.js.map +0 -1
  333. package/build/main//321/201omponents/Switcher/types.d.ts +0 -8
  334. package/build/main//321/201omponents/Switcher/types.js +0 -2
  335. package/build/main//321/201omponents/Switcher/types.js.map +0 -1
  336. package/build/main//321/201omponents/SyncLoader/SyncLoader.d.ts +0 -5
  337. package/build/main//321/201omponents/SyncLoader/SyncLoader.js +0 -65
  338. package/build/main//321/201omponents/SyncLoader/SyncLoader.js.map +0 -1
  339. package/build/main//321/201omponents/SyncLoader/index.d.ts +0 -1
  340. package/build/main//321/201omponents/SyncLoader/index.js +0 -2
  341. package/build/main//321/201omponents/SyncLoader/index.js.map +0 -1
  342. package/build/main//321/201omponents/SyncLoader/types.d.ts +0 -7
  343. package/build/main//321/201omponents/SyncLoader/types.js +0 -2
  344. package/build/main//321/201omponents/SyncLoader/types.js.map +0 -1
  345. package/build/main//321/201omponents/Textarea/Textarea.d.ts +0 -4
  346. package/build/main//321/201omponents/Textarea/Textarea.js +0 -85
  347. package/build/main//321/201omponents/Textarea/Textarea.js.map +0 -1
  348. package/build/main//321/201omponents/Textarea/index.d.ts +0 -1
  349. package/build/main//321/201omponents/Textarea/index.js +0 -2
  350. package/build/main//321/201omponents/Textarea/index.js.map +0 -1
  351. package/build/main//321/201omponents/Textarea/types.d.ts +0 -13
  352. package/build/main//321/201omponents/Textarea/types.js +0 -2
  353. package/build/main//321/201omponents/Textarea/types.js.map +0 -1
  354. package/build/main//321/201omponents/Toggle/Toggle.d.ts +0 -4
  355. package/build/main//321/201omponents/Toggle/Toggle.js +0 -38
  356. package/build/main//321/201omponents/Toggle/Toggle.js.map +0 -1
  357. package/build/main//321/201omponents/Toggle/index.d.ts +0 -1
  358. package/build/main//321/201omponents/Toggle/index.js +0 -2
  359. package/build/main//321/201omponents/Toggle/index.js.map +0 -1
  360. package/build/main//321/201omponents/Toggle/types.d.ts +0 -9
  361. package/build/main//321/201omponents/Toggle/types.js +0 -2
  362. package/build/main//321/201omponents/Toggle/types.js.map +0 -1
  363. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.d.ts +0 -4
  364. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js +0 -31
  365. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js.map +0 -1
  366. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.d.ts +0 -4
  367. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js +0 -70
  368. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js.map +0 -1
  369. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.d.ts +0 -4
  370. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js +0 -23
  371. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js.map +0 -1
  372. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.d.ts +0 -3
  373. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js +0 -76
  374. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js.map +0 -1
  375. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.d.ts +0 -3
  376. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js +0 -40
  377. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js.map +0 -1
  378. package/build/main//321/201omponents/UserDropdown/Option/Option.d.ts +0 -4
  379. package/build/main//321/201omponents/UserDropdown/Option/Option.js +0 -55
  380. package/build/main//321/201omponents/UserDropdown/Option/Option.js.map +0 -1
  381. package/build/main//321/201omponents/UserDropdown/UserDropdown.d.ts +0 -4
  382. package/build/main//321/201omponents/UserDropdown/UserDropdown.js +0 -386
  383. package/build/main//321/201omponents/UserDropdown/UserDropdown.js.map +0 -1
  384. package/build/main//321/201omponents/UserDropdown/helpers.d.ts +0 -87
  385. package/build/main//321/201omponents/UserDropdown/helpers.js +0 -47
  386. package/build/main//321/201omponents/UserDropdown/helpers.js.map +0 -1
  387. package/build/main//321/201omponents/UserDropdown/index.d.ts +0 -1
  388. package/build/main//321/201omponents/UserDropdown/index.js +0 -2
  389. package/build/main//321/201omponents/UserDropdown/index.js.map +0 -1
  390. package/build/main//321/201omponents/UserDropdown/selectStyles.d.ts +0 -15
  391. package/build/main//321/201omponents/UserDropdown/selectStyles.js +0 -72
  392. package/build/main//321/201omponents/UserDropdown/selectStyles.js.map +0 -1
  393. package/build/main//321/201omponents/UserDropdown/types.d.ts +0 -183
  394. package/build/main//321/201omponents/UserDropdown/types.js +0 -2
  395. package/build/main//321/201omponents/UserDropdown/types.js.map +0 -1
  396. package/build/main//321/201omponents/index.d.ts +0 -32
  397. package/build/main//321/201omponents/index.js +0 -33
  398. package/build/main//321/201omponents/index.js.map +0 -1
  399. package/build/main//321/201omponents/types.d.ts +0 -2
  400. package/build/main//321/201omponents/types.js +0 -2
  401. package/build/main//321/201omponents/types.js.map +0 -1
@@ -1,40 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
- import { components } from 'react-select';
14
- import { isEqual } from 'lodash';
15
- import Chip from '../../Chip';
16
- import { getClassNames, isValueEqualToZero } from '../../../helpers';
17
- import '../../../styles/styles.scss';
18
- var MultiValueLabel = function (props) {
19
- var _a = props.data, value = _a.value, label = _a.label, avatar = _a.avatar, platform = _a.platform, isChipsCollapsable = _a.isChipsCollapsable, isError = _a.isError, isInputFocused = _a.isInputFocused.current, collapsableChipsCount = _a.collapsableChipsCount.current, lastVisibleChipIndex = _a.lastVisibleChipIndex.current, _b = props.selectProps, isDisabled = _b.isDisabled, selectedUsers = _b.value, onChange = _b.onChange;
20
- var noChipsCount = isValueEqualToZero(collapsableChipsCount);
21
- var userIndex = selectedUsers.findIndex(function (_a) {
22
- var selectedUserValue = _a.value, selectedUserLabel = _a.label;
23
- return selectedUserValue === value && selectedUserLabel === label;
24
- });
25
- var handleDelete = function () { return onChange(selectedUsers.filter(function (user) { return !isEqual(user, props.data); })); };
26
- var handleMouseDown = function (event) {
27
- event.preventDefault();
28
- event.stopPropagation();
29
- };
30
- var handleTouchEnd = function (event) { return event.stopPropagation(); };
31
- if (!isChipsCollapsable || isInputFocused || (!isInputFocused && userIndex < lastVisibleChipIndex) || noChipsCount) {
32
- return (_jsx(components.MultiValueLabel, __assign({}, props, { children: _jsx("div", __assign({ onMouseDown: handleMouseDown, onTouchEnd: handleTouchEnd }, { children: _jsx(Chip, { name: label, avatar: avatar, isError: isError, isDisabled: isDisabled, onDelete: handleDelete }) })) })));
33
- }
34
- if (isChipsCollapsable && !isInputFocused && userIndex === lastVisibleChipIndex && !noChipsCount) {
35
- return (_jsxs("div", __assign({ className: getClassNames({ className: 'multi-value-label-counter', delimiter: '__', additionalClassName: platform }), onTouchEnd: handleTouchEnd }, { children: ["+", collapsableChipsCount] })));
36
- }
37
- return null;
38
- };
39
- export default MultiValueLabel;
40
- //# sourceMappingURL=MultiValueLabel.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MultiValueLabel.js","sourceRoot":"","sources":["../../../../../src/сomponents/UserDropdown/MultiValueLabel/MultiValueLabel.tsx"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAA;AAChC,OAAO,IAAI,MAAM,YAAY,CAAA;AAC7B,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AAEpE,OAAO,6BAA6B,CAAA;AAEpC,IAAM,eAAe,GAAG,UAAC,KAAU;IAE/B,IAAA,KAYE,KAAK,KAFN,EATC,KAAK,WAAA,EACL,KAAK,WAAA,EACL,MAAM,YAAA,EACN,QAAQ,cAAA,EACR,kBAAkB,wBAAA,EAClB,OAAO,aAAA,EACoB,cAAc,4BAAA,EACP,qBAAqB,mCAAA,EACtB,oBAAoB,kCAAA,EAEvD,KACE,KAAK,YADoD,EAA5C,UAAU,gBAAA,EAAS,aAAa,WAAA,EAAE,QAAQ,cAAE,CACpD;IAET,IAAM,YAAY,GAAG,kBAAkB,CAAC,qBAAqB,CAAC,CAAA;IAC9D,IAAM,SAAS,GAAG,aAAa,CAAC,SAAS,CACvC,UAAC,EAAuE;YAA9D,iBAAiB,WAAA,EAAS,iBAAiB,WAAA;QAAwB,OAAA,iBAAiB,KAAK,KAAK,IAAI,iBAAiB,KAAK,KAAK;IAA1D,CAA0D,CACxI,CAAA;IAED,IAAM,YAAY,GAAG,cAAM,OAAA,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,UAAC,IAAqB,IAAK,OAAA,CAAC,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,EAA1B,CAA0B,CAAC,CAAC,EAArF,CAAqF,CAAA;IAEhH,IAAM,eAAe,GAAG,UAAC,KAAuC;QAC9D,KAAK,CAAC,cAAc,EAAE,CAAA;QACtB,KAAK,CAAC,eAAe,EAAE,CAAA;IACzB,CAAC,CAAA;IAED,IAAM,cAAc,GAAG,UAAC,KAAuC,IAAK,OAAA,KAAK,CAAC,eAAe,EAAE,EAAvB,CAAuB,CAAA;IAE3F,IAAI,CAAC,kBAAkB,IAAI,cAAc,IAAI,CAAC,CAAC,cAAc,IAAI,SAAS,GAAG,oBAAoB,CAAC,IAAI,YAAY,EAAE;QAClH,OAAO,CACL,KAAC,UAAU,CAAC,eAAe,eAAK,KAAK,cACnC,uBAAK,WAAW,EAAE,eAAe,EAAE,UAAU,EAAE,cAAc,gBAC3D,KAAC,IAAI,IAAC,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,YAAY,GAAI,IACnG,IACqB,CAC9B,CAAA;KACF;IAED,IAAI,kBAAkB,IAAI,CAAC,cAAc,IAAI,SAAS,KAAK,oBAAoB,IAAI,CAAC,YAAY,EAAE;QAChG,OAAO,CACL,wBACE,SAAS,EAAE,aAAa,CAAC,EAAE,SAAS,EAAE,2BAA2B,EAAE,SAAS,EAAE,IAAI,EAAE,mBAAmB,EAAE,QAAQ,EAAE,CAAC,EACpH,UAAU,EAAE,cAAc,sBAExB,qBAAqB,KACnB,CACP,CAAA;KACF;IAED,OAAO,IAAI,CAAA;AACb,CAAC,CAAA;AAED,eAAe,eAAe,CAAA"}
@@ -1,4 +0,0 @@
1
- import { IOptionProps } from '../types';
2
- import '../../../styles/styles.scss';
3
- declare const Option: (props: IOptionProps) => import("react/jsx-runtime").JSX.Element;
4
- export default Option;
@@ -1,55 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
- import { useEffect, useRef, useState } from 'react';
14
- import Popup from 'reactjs-popup';
15
- import { components } from 'react-select';
16
- import Avatar from '../../Avatar';
17
- import ContactInfo from '../ContactInfo/ContactInfo';
18
- import { isMobilePlatform, isWebPlatform } from '../../../helpers';
19
- import { ReactComponent as CorporateUserIcon } from '../../../assets/icons/corporate-user.svg';
20
- import { ReactComponent as MyContactUserIcon } from '../../../assets/icons/my-contact-user.svg';
21
- import { ReactComponent as ContactInfoIcon } from '../../../assets/icons/contact-info.svg';
22
- import '../../../styles/styles.scss';
23
- var POPUP_APPEARANCE_DELAY = 1000;
24
- var PADDING_LEFT = 8;
25
- var INDENTS = 50;
26
- var Option = function (props) {
27
- var _a;
28
- var _b = props.data, label = _b.label, avatar = _b.avatar, email = _b.email, serverName = _b.serverName, company = _b.company, department = _b.department, companyPosition = _b.companyPosition, isMyContacts = _b.isMyContacts, platform = _b.platform, language = _b.language, setIsSearchable = _b.setIsSearchable, setModalData = _b.setModalData;
29
- var ref = useRef(null);
30
- var _c = useState(0), left = _c[0], setLeft = _c[1];
31
- var _d = useState(0), maxWidth = _d[0], setMaxWidth = _d[1];
32
- var clientRect = (_a = ref.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
33
- var clientRectLeft = ((clientRect === null || clientRect === void 0 ? void 0 : clientRect.left) || 0) + PADDING_LEFT;
34
- var clientRectWidth = ((clientRect === null || clientRect === void 0 ? void 0 : clientRect.width) || INDENTS) - INDENTS;
35
- var handleContactInfoIconClick = function (event) {
36
- event.stopPropagation();
37
- setIsSearchable(false);
38
- setModalData({ avatar: avatar, name: label, email: email, serverName: serverName, company: company, department: department, companyPosition: companyPosition });
39
- };
40
- var renderUserIcon = function () { return (isMyContacts ? _jsx(MyContactUserIcon, { color: "var(--color-icon-secondary)" }) : _jsx(CorporateUserIcon, {})); };
41
- var renderContactInfoIcon = function () {
42
- var isIconVisible = !isMyContacts && isMobilePlatform(platform);
43
- return isIconVisible && _jsx(ContactInfoIcon, { className: "smartapp-option__container--icon", onClick: handleContactInfoIconClick });
44
- };
45
- useEffect(function () {
46
- setLeft(clientRectLeft);
47
- setMaxWidth(clientRectWidth);
48
- }, [clientRectLeft, clientRectWidth]);
49
- var renderContactInfoPopup = function () { return (_jsx(Popup, __assign({ className: "contact-info", position: "bottom center", contentStyle: { '--contact-info-content-left': "".concat(left, "px"), '--contact-info-content-max-width': "".concat(maxWidth, "px") }, on: ['hover'], mouseEnterDelay: POPUP_APPEARANCE_DELAY, trigger: function () { return (_jsx("div", { children: _jsx(Avatar, { username: label, avatar: avatar, size: 32 }) })); } }, { children: _jsx(ContactInfo, { language: language, serverName: serverName, company: company, department: department, companyPosition: companyPosition }) }))); };
50
- return (_jsx(components.Option, __assign({}, props, { innerRef: function (el) {
51
- ref.current = el;
52
- } }, { children: _jsxs("div", __assign({ className: "smartapp-option" }, { children: [!isMyContacts && isWebPlatform(platform) ? renderContactInfoPopup() : _jsx(Avatar, { username: label, avatar: avatar, size: 32 }), _jsxs("div", __assign({ className: "smartapp-option__container" }, { children: [_jsxs("div", __assign({ className: "smartapp-option__container--info" }, { children: [_jsxs("div", __assign({ className: "smartapp-option__container--info__name" }, { children: [renderUserIcon(), _jsx("div", { children: label })] })), _jsx("div", __assign({ className: "smartapp-option__container--info__email" }, { children: email }))] })), renderContactInfoIcon()] }))] })) })));
53
- };
54
- export default Option;
55
- //# sourceMappingURL=Option.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Option.js","sourceRoot":"","sources":["../../../../../src/сomponents/UserDropdown/Option/Option.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,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CAAkC,EAAE,UAAG,QAAQ,OAAI,EAAyB,EACxI,EAAE,EAAE,CAAC,OAAO,CAAC,EACb,eAAe,EAAE,sBAAsB,EACvC,OAAO,EAAE,cAAM,OAAA,CACb,wBACE,KAAC,MAAM,IAAC,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,GAAI,GACjD,CACP,EAJc,CAId,gBAED,KAAC,WAAW,IAAC,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,eAAe,EAAE,eAAe,GAAI,IACjI,CACT,EAfoC,CAepC,CAAA;IAED,OAAO,CACL,KAAC,UAAU,CAAC,MAAM,eACZ,KAAK,IACT,QAAQ,EAAE,UAAC,EAAE;YACX,GAAG,CAAC,OAAO,GAAG,EAAE,CAAA;QAClB,CAAC,gBAED,wBAAK,SAAS,EAAC,iBAAiB,iBAC7B,CAAC,YAAY,IAAI,aAAa,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,sBAAsB,EAAE,CAAC,CAAC,CAAC,KAAC,MAAM,IAAC,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,GAAI,EAC5H,wBAAK,SAAS,EAAC,4BAA4B,iBACzC,wBAAK,SAAS,EAAC,kCAAkC,iBAC/C,wBAAK,SAAS,EAAC,wCAAwC,iBACpD,cAAc,EAAE,EACjB,wBAAM,KAAK,GAAO,KACd,EACN,uBAAK,SAAS,EAAC,yCAAyC,gBAAE,KAAK,IAAO,KAClE,EACL,qBAAqB,EAAE,KACpB,KACF,IACY,CACrB,CAAA;AACH,CAAC,CAAA;AAED,eAAe,MAAM,CAAA"}
@@ -1,4 +0,0 @@
1
- import { IUserDropdownProps } from './types';
2
- import '../../styles/styles.scss';
3
- declare const UserDropdown: ({ theme, platform, isDisabled, isLoading, isChipsVisible, isChipsCollapsable, isMenuCloseOnSelect, isFilteringDisabled, hasNextPage, isNextPageLoading, language, layoutType, title, mask, placeholder, hint, noOptionsMessage, maxMembersCount, fillType, selectedEntries, corporateEntries, myContactsEntries, onInputChange, onChange, onMenuOpen, onMenuClose, onLoadNextPage, menuPosition, }: IUserDropdownProps) => import("react/jsx-runtime").JSX.Element;
4
- export default UserDropdown;
@@ -1,386 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- var __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, Fragment as _Fragment } from "react/jsx-runtime";
22
- import { useCallback, useEffect, useLayoutEffect, useRef, useState } from 'react';
23
- import Select, { components } from 'react-select';
24
- import { debounce, isNil, isNull, uniqBy, uniq, isEmpty, omit } from 'lodash';
25
- import classNames from 'classnames';
26
- import { v4 as uuidv4 } from 'uuid';
27
- import { transliterate as tr } from 'transliteration';
28
- import { ru } from 'convert-layout';
29
- import LoadingMessage from './LoadingMessage/LoadingMessage';
30
- import MultiValueLabel from './MultiValueLabel/MultiValueLabel';
31
- import Option from './Option/Option';
32
- import MenuList from './MenuList/MenuList';
33
- import Modal from '../Modal';
34
- import ContactBottomSheet from './ContactBottomSheet/ContactBottomSheet';
35
- import { IndicatorSeparator, DropdownIndicator, LoadingIndicator, MultiValueRemove, generateCorporateOptionsToSelect, generateContactsOptionsToSelect, generateCorporateOption, generateContactsOption, generateEnteredByUserOption, } from './helpers';
36
- import { isIosPlatform, isMobilePlatform } from '../../helpers';
37
- import { DEFAULT_INPUT_PADDING, ENTER_KEY, FILL_TYPE, INPUT_COUNTER_TIMEOUT, LANGUAGES, LAYOUT_TYPE, MASK_INPUT_PL, MENU_POSITIONS, PLATFORM, THEME, } from '../../constants';
38
- import selectStyles from './selectStyles';
39
- import '../../styles/styles.scss';
40
- var MIN_INPUT_SYMBOLS = 3;
41
- var EMAIL_FIELD = 'email';
42
- var THREE_DIGIT_NUMBER_WIDTH = 48;
43
- var TWO_DIGIT_NUMBER_WIDTH = 40;
44
- var SINGLE_DIGIT_NUMBER_WIDTH = 32;
45
- var INPUT_SPACE_WIDTH = 46;
46
- var GAP = 8;
47
- var EXCLUDED_FIELDS;
48
- (function (EXCLUDED_FIELDS) {
49
- EXCLUDED_FIELDS["value"] = "value";
50
- EXCLUDED_FIELDS["label"] = "label";
51
- EXCLUDED_FIELDS["layoutType"] = "layoutType";
52
- EXCLUDED_FIELDS["platform"] = "platform";
53
- EXCLUDED_FIELDS["language"] = "language";
54
- EXCLUDED_FIELDS["isMyContacts"] = "isMyContacts";
55
- EXCLUDED_FIELDS["isEnteredByUser"] = "isEnteredByUser";
56
- EXCLUDED_FIELDS["isChipsCollapsable"] = "isChipsCollapsable";
57
- EXCLUDED_FIELDS["isInputFocused"] = "isInputFocused";
58
- EXCLUDED_FIELDS["setIsSearchable"] = "setIsSearchable";
59
- EXCLUDED_FIELDS["selectRef"] = "selectRef";
60
- EXCLUDED_FIELDS["setModalData"] = "setModalData";
61
- EXCLUDED_FIELDS["isError"] = "isError";
62
- EXCLUDED_FIELDS["collapsableChipsCount"] = "collapsableChipsCount";
63
- EXCLUDED_FIELDS["lastVisibleChipIndex"] = "lastVisibleChipIndex";
64
- })(EXCLUDED_FIELDS || (EXCLUDED_FIELDS = {}));
65
- var COMMON_FIELDS_TO_OMIT = Object.keys(omit(EXCLUDED_FIELDS, [EXCLUDED_FIELDS.language, EXCLUDED_FIELDS.isMyContacts, EXCLUDED_FIELDS.isEnteredByUser, EXCLUDED_FIELDS.isError]));
66
- var Input = function (props) { return _jsx(components.Input, __assign({}, props, { enterkeyhint: "done" })); };
67
- var UserDropdown = function (_a) {
68
- var _b = _a.theme, theme = _b === void 0 ? THEME.default : _b, _c = _a.platform, platform = _c === void 0 ? PLATFORM.web : _c, _d = _a.isDisabled, isDisabled = _d === void 0 ? false : _d, _e = _a.isLoading, isLoading = _e === void 0 ? false : _e, _f = _a.isChipsVisible, isChipsVisible = _f === void 0 ? true : _f, _g = _a.isChipsCollapsable, isChipsCollapsable = _g === void 0 ? false : _g, _h = _a.isMenuCloseOnSelect, isMenuCloseOnSelect = _h === void 0 ? true : _h, _j = _a.isFilteringDisabled, isFilteringDisabled = _j === void 0 ? false : _j, _k = _a.hasNextPage, hasNextPage = _k === void 0 ? false : _k, _l = _a.isNextPageLoading, isNextPageLoading = _l === void 0 ? false : _l, _m = _a.language, language = _m === void 0 ? LANGUAGES.ru : _m, _o = _a.layoutType, layoutType = _o === void 0 ? LAYOUT_TYPE.minimal : _o, title = _a.title, mask = _a.mask, placeholder = _a.placeholder, hint = _a.hint, noOptionsMessage = _a.noOptionsMessage, maxMembersCount = _a.maxMembersCount, _p = _a.fillType, fillType = _p === void 0 ? FILL_TYPE.primary : _p, _q = _a.selectedEntries, selectedEntries = _q === void 0 ? [] : _q, corporateEntries = _a.corporateEntries, myContactsEntries = _a.myContactsEntries, onInputChange = _a.onInputChange, onChange = _a.onChange, onMenuOpen = _a.onMenuOpen, onMenuClose = _a.onMenuClose, onLoadNextPage = _a.onLoadNextPage, _r = _a.menuPosition, menuPosition = _r === void 0 ? MENU_POSITIONS.top : _r;
69
- var _s = useState(''), userDropdownId = _s[0], setUserDropdownId = _s[1];
70
- var _t = useState([]), selectedUsers = _t[0], setSelectedUsers = _t[1];
71
- var _u = useState(null), timeoutId = _u[0], setTimeoutId = _u[1];
72
- var _v = useState(''), paddingLeft = _v[0], setPaddingLeft = _v[1];
73
- var _w = useState(0), maskWidth = _w[0], setMaskWidth = _w[1];
74
- var _x = useState(false), isError = _x[0], setIsError = _x[1];
75
- var _y = useState(true), isSearchable = _y[0], setIsSearchable = _y[1];
76
- var _z = useState(false), isUserTyping = _z[0], setIsUserTyping = _z[1];
77
- var _0 = useState(null), modalData = _0[0], setModalData = _0[1];
78
- var _1 = useState(''), chipLabelWithMaxWidth = _1[0], setChipLabelWithMaxWidth = _1[1];
79
- var isInputFocused = useRef(false);
80
- var selectRef = useRef(null);
81
- var maskRef = useRef(null);
82
- var menuScrollFromTop = useRef(0);
83
- var collapsableChipsCount = useRef(0);
84
- var lastVisibleChipIndex = useRef(-1);
85
- var generatePaddingLeft = function () {
86
- var _a, _b;
87
- var maskWidth = ((_b = (_a = maskRef.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect()) === null || _b === void 0 ? void 0 : _b.width) || null;
88
- maskWidth && setMaskWidth(maskWidth + GAP);
89
- return "".concat(maskWidth ? maskWidth + MASK_INPUT_PL : DEFAULT_INPUT_PADDING, "px");
90
- };
91
- var generateStyles = function () {
92
- return selectStyles({
93
- isChipsVisible: isChipsVisible,
94
- isMaxMembersAdded: maxMembersCount && isChipsVisible ? selectedUsers.length === maxMembersCount : false,
95
- isDisabled: isDisabled,
96
- isError: isError || selectedUsers.some(function (_a) {
97
- var isError = _a.isError;
98
- return isError;
99
- }),
100
- lastRowNumber: isChipsVisible ? Math.ceil(selectedUsers.length / 2) + 1 : 1,
101
- paddingLeft: paddingLeft,
102
- fillType: fillType,
103
- platform: platform,
104
- layoutType: layoutType,
105
- });
106
- };
107
- var generateNoOptionsMessage = function (_a) {
108
- var inputValue = _a.inputValue;
109
- return inputValue.length >= MIN_INPUT_SYMBOLS && !isNull(corporateEntries) && !isNull(myContactsEntries) && noOptionsMessage ? noOptionsMessage : null;
110
- };
111
- var generateOptions = function () {
112
- var commonFields = {
113
- platform: platform,
114
- layoutType: layoutType,
115
- isChipsCollapsable: isChipsCollapsable,
116
- isInputFocused: isInputFocused,
117
- selectRef: selectRef,
118
- setIsSearchable: setIsSearchable,
119
- setModalData: setModalData,
120
- collapsableChipsCount: collapsableChipsCount,
121
- lastVisibleChipIndex: lastVisibleChipIndex,
122
- };
123
- return __spreadArray(__spreadArray(__spreadArray([], generateCorporateOptionsToSelect(__assign({ language: language, options: (corporateEntries === null || corporateEntries === void 0 ? void 0 : corporateEntries.corpPhonebookEntries) || [] }, commonFields)), true), generateCorporateOptionsToSelect(__assign({ language: language, options: (corporateEntries === null || corporateEntries === void 0 ? void 0 : corporateEntries.trustSearchEntries) || [] }, commonFields)), true), generateContactsOptionsToSelect(__assign({ options: myContactsEntries || [] }, commonFields)), true);
124
- };
125
- var handleSetTimeoutForCounter = function () {
126
- var id = setTimeout(function () { return setTimeoutId(null); }, INPUT_COUNTER_TIMEOUT);
127
- setTimeoutId(id);
128
- };
129
- var requestDebounce = debounce(function (inputValue) {
130
- onInputChange(inputValue);
131
- setIsUserTyping(false);
132
- }, 300);
133
- var handleResetError = function () { return isError && setIsError(false); };
134
- var handleMenuClose = function () {
135
- menuScrollFromTop.current = 0;
136
- handleResetError();
137
- onMenuClose && onMenuClose();
138
- };
139
- var handleInputChange = function (inputValue) {
140
- setIsUserTyping(true);
141
- handleResetError();
142
- if (inputValue.length >= MIN_INPUT_SYMBOLS) {
143
- requestDebounce(inputValue);
144
- }
145
- else {
146
- debounce(function () {
147
- setIsUserTyping(false);
148
- }, 300);
149
- }
150
- };
151
- var handleAddUser = function (needToShowError) {
152
- if (needToShowError === void 0) { needToShowError = true; }
153
- var selectRefCurrent = selectRef.current;
154
- var _a = selectRefCurrent.props, options = _a.options, inputValue = _a.inputValue, onChange = _a.onChange, onInputChange = _a.onInputChange;
155
- var trimInputValue = inputValue.trim();
156
- var regex = new RegExp(/^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/);
157
- var optionProps = {
158
- email: trimInputValue,
159
- platform: platform,
160
- layoutType: layoutType,
161
- isChipsCollapsable: isChipsCollapsable,
162
- isInputFocused: isInputFocused,
163
- selectRef: selectRef,
164
- collapsableChipsCount: collapsableChipsCount,
165
- lastVisibleChipIndex: lastVisibleChipIndex,
166
- };
167
- if (regex.test(trimInputValue)) {
168
- var isUserAlreadySelected = selectedUsers.find(function (_a) {
169
- var email = _a.email;
170
- return email === trimInputValue;
171
- });
172
- var existingUser = options.find(function (_a) {
173
- var email = _a.email;
174
- return email === trimInputValue;
175
- });
176
- onChange(__spreadArray(__spreadArray([], selectedUsers, true), [existingUser || generateEnteredByUserOption(optionProps)], false));
177
- isUserAlreadySelected && needToShowError ? setIsError(true) : onInputChange('');
178
- }
179
- else if (trimInputValue) {
180
- onChange(__spreadArray(__spreadArray([], selectedUsers, true), [generateEnteredByUserOption(__assign(__assign({}, optionProps), { isError: true }))], false));
181
- onInputChange('');
182
- }
183
- return Promise.resolve();
184
- };
185
- var handleKeyDown = function (event) {
186
- if (event.code === ENTER_KEY || event.key === ENTER_KEY) {
187
- event.preventDefault();
188
- handleAddUser().then(function () { });
189
- }
190
- };
191
- var handleChange = function (newSelectedUsers) {
192
- var uniqNewSelectedUsers = uniqBy(newSelectedUsers, EMAIL_FIELD);
193
- var users = [];
194
- uniqNewSelectedUsers.forEach(function (user) {
195
- var isEnteredByUser = user.isEnteredByUser, isMyContacts = user.isMyContacts;
196
- var userToAdd = omit(user, COMMON_FIELDS_TO_OMIT);
197
- var entryFieldsToExclude = isMyContacts ? [EXCLUDED_FIELDS.isMyContacts] : [EXCLUDED_FIELDS.language];
198
- var fieldsToExclude = isEnteredByUser ? [EXCLUDED_FIELDS.isEnteredByUser, EXCLUDED_FIELDS.isError] : entryFieldsToExclude;
199
- users.push(omit(userToAdd, fieldsToExclude));
200
- });
201
- onChange(users);
202
- setSelectedUsers(uniqNewSelectedUsers);
203
- if (maxMembersCount) {
204
- var isMaxUsersAdded = uniqNewSelectedUsers.length === maxMembersCount;
205
- var remainingUsers = maxMembersCount - uniqNewSelectedUsers.length;
206
- if (isMaxUsersAdded) {
207
- !isNull(timeoutId) && clearTimeout(timeoutId);
208
- handleSetTimeoutForCounter();
209
- }
210
- if (remainingUsers && !isNull(timeoutId)) {
211
- clearTimeout(timeoutId);
212
- setTimeoutId(null);
213
- }
214
- }
215
- if (!isInputFocused.current && isChipsCollapsable) {
216
- handleFocus();
217
- }
218
- };
219
- var isContainsValue = function (_a) {
220
- var label = _a.label, email = _a.email, value = _a.value;
221
- return label.toLowerCase().includes(value) || email.toLowerCase().includes(value);
222
- };
223
- var handleFilterOption = function (_a, inputValue) {
224
- var _b = _a.data, label = _b.label, optionEmail = _b.email;
225
- var originInputValue = inputValue.toLowerCase();
226
- var transliteratedInputValue = tr(originInputValue);
227
- var toEngInputValue = ru.toEn(originInputValue);
228
- var fromEngInputValue = ru.fromEn(originInputValue);
229
- var isUserAlreadySelected = selectedUsers.find(function (_a) {
230
- var email = _a.email;
231
- return email === optionEmail;
232
- });
233
- var isContainsInputValue = [originInputValue, transliteratedInputValue, toEngInputValue, fromEngInputValue].some(function (value) {
234
- return isContainsValue({ label: label, email: optionEmail, value: value });
235
- });
236
- if (isFilteringDisabled)
237
- return !isEmpty(selectedUsers) ? !isUserAlreadySelected : true;
238
- return !isEmpty(selectedUsers) ? !isUserAlreadySelected && isContainsInputValue : isContainsInputValue;
239
- };
240
- var getTruncatedElementY = function (element) { return Math.trunc(element.getBoundingClientRect().y); };
241
- var getCounterWidth = function (counterNumber) {
242
- if (counterNumber >= 100)
243
- return THREE_DIGIT_NUMBER_WIDTH;
244
- if (counterNumber >= 10)
245
- return TWO_DIGIT_NUMBER_WIDTH;
246
- return SINGLE_DIGIT_NUMBER_WIDTH;
247
- };
248
- var handleCollapseChips = function () {
249
- var _a, _b;
250
- var collapsableChips = 0;
251
- var chipLabelWithMaxWidth = '';
252
- var chipsNodes = ((_a = document.querySelector("#".concat(userDropdownId))) === null || _a === void 0 ? void 0 : _a.querySelectorAll('.smartapp-chip')) || [];
253
- var chips = Array.from(chipsNodes);
254
- if (isEmpty(chips))
255
- return;
256
- var yRows = uniq(chips.map(function (chip) { return getTruncatedElementY(chip); }));
257
- var ySecondRow = yRows[1];
258
- var rowsToHide = yRows.slice(2);
259
- var secondRow = [];
260
- chips.forEach(function (chip) {
261
- var y = getTruncatedElementY(chip);
262
- if (rowsToHide.includes(y)) {
263
- collapsableChips += 1;
264
- }
265
- else {
266
- y === ySecondRow && secondRow.push(chip);
267
- }
268
- });
269
- var counterWidth = getCounterWidth(collapsableChips);
270
- var rowWidth = counterWidth + INPUT_SPACE_WIDTH;
271
- var dropdownWidth = ((_b = document.querySelector("#".concat(userDropdownId))) === null || _b === void 0 ? void 0 : _b.getBoundingClientRect().width) - maskWidth;
272
- secondRow.forEach(function (chip) {
273
- var _a;
274
- rowWidth += chip.getBoundingClientRect().width + GAP;
275
- if (rowWidth > dropdownWidth) {
276
- if (secondRow.length > 1) {
277
- collapsableChips += 1;
278
- }
279
- else {
280
- var emptySpaceWidth = collapsableChips > 0 ? counterWidth + INPUT_SPACE_WIDTH + GAP : INPUT_SPACE_WIDTH;
281
- chip.style.maxWidth = "".concat(dropdownWidth - emptySpaceWidth, "px");
282
- chipLabelWithMaxWidth = ((_a = chip.querySelector('.smartapp-chip__info--name')) === null || _a === void 0 ? void 0 : _a.innerHTML) || '';
283
- }
284
- }
285
- });
286
- collapsableChipsCount.current = collapsableChips;
287
- lastVisibleChipIndex.current = chips.length - collapsableChips;
288
- setChipLabelWithMaxWidth(chipLabelWithMaxWidth || uuidv4());
289
- };
290
- var handleUnCollapseChips = function () {
291
- var _a;
292
- var chipsNodes = ((_a = document.querySelector("#".concat(userDropdownId))) === null || _a === void 0 ? void 0 : _a.querySelectorAll('.smartapp-chip')) || [];
293
- var chips = Array.from(chipsNodes);
294
- chips.forEach(function (chip) {
295
- var _a;
296
- var chipLabel = ((_a = chip.querySelector('.smartapp-chip__info--name')) === null || _a === void 0 ? void 0 : _a.innerHTML) || '';
297
- chipLabel === chipLabelWithMaxWidth && (chip.style.maxWidth = '100%');
298
- });
299
- collapsableChipsCount.current = 0;
300
- lastVisibleChipIndex.current = -1;
301
- setChipLabelWithMaxWidth('');
302
- };
303
- var handleBlur = function () {
304
- handleAddUser(false).then(function () {
305
- isChipsCollapsable && handleCollapseChips();
306
- isInputFocused.current = false;
307
- });
308
- };
309
- var handleFocus = function () {
310
- if (isIosPlatform(platform)) {
311
- new Promise(function (resolve) { return resolve(); }).then(function () { var _a; return (_a = selectRef.current) === null || _a === void 0 ? void 0 : _a.focus(); });
312
- }
313
- else {
314
- setTimeout(function () { var _a; return (_a = selectRef.current) === null || _a === void 0 ? void 0 : _a.focus(); }, 100);
315
- }
316
- isInputFocused.current = true;
317
- isChipsCollapsable && handleUnCollapseChips();
318
- };
319
- var handleCloseModal = function () {
320
- setModalData(null);
321
- setIsSearchable(true);
322
- if (isMobilePlatform(platform)) {
323
- new Promise(function (resolve) { return resolve(); }).then(function () { var _a; return (_a = selectRef.current) === null || _a === void 0 ? void 0 : _a.focus(); });
324
- }
325
- };
326
- var renderCounter = function () {
327
- return !isNil(maxMembersCount) && (_jsx("div", __assign({ className: classNames('smartapp-user-dropdown__title--counter', { 'smartapp-user-dropdown__title--counter__error': !isNull(timeoutId) }) }, { children: "".concat(selectedUsers.length, "/").concat(maxMembersCount) })));
328
- };
329
- var renderTitle = function () {
330
- return title && (_jsxs("div", __assign({ className: "smartapp-user-dropdown__title" }, { children: [_jsx("p", __assign({ className: "smartapp-user-dropdown__title--text" }, { children: title })), renderCounter()] })));
331
- };
332
- var renderMask = function () {
333
- return mask && (_jsx("div", __assign({ ref: maskRef, className: "smartapp-user-dropdown__container--mask" }, { children: mask })));
334
- };
335
- var renderHint = function () { return hint && _jsx("div", __assign({ className: "smartapp-user-dropdown__hint" }, { children: hint })); };
336
- var modalContent = modalData ? (_jsx(ContactBottomSheet, { language: language, avatar: modalData.avatar, name: modalData.name, email: modalData.email, serverName: modalData.serverName, company: modalData.company, department: modalData.department, companyPosition: modalData.companyPosition })) : (_jsx(_Fragment, {}));
337
- useEffect(function () {
338
- !userDropdownId && setUserDropdownId("user_dropdown_".concat(uuidv4().replace(/-/g, '_')));
339
- }, [userDropdownId]);
340
- useLayoutEffect(function () {
341
- if (userDropdownId) {
342
- isChipsCollapsable ? handleCollapseChips() : handleUnCollapseChips();
343
- }
344
- // eslint-disable-next-line
345
- }, [isChipsCollapsable, userDropdownId]);
346
- useEffect(function () {
347
- setPaddingLeft(generatePaddingLeft());
348
- }, [mask]);
349
- useEffect(function () {
350
- setSelectedUsers(function (prevSelectedUsers) { return prevSelectedUsers.map(function (selectedUser) { return (__assign(__assign({}, selectedUser), { layoutType: layoutType, isChipsCollapsable: isChipsCollapsable })); }); });
351
- }, [layoutType, isChipsCollapsable]);
352
- useEffect(function () {
353
- if (!isEmpty(selectedEntries)) {
354
- setSelectedUsers(selectedEntries.map(function (entity) {
355
- var commonFields = {
356
- platform: platform,
357
- layoutType: layoutType,
358
- isChipsCollapsable: isChipsCollapsable,
359
- isInputFocused: isInputFocused,
360
- selectRef: selectRef,
361
- collapsableChipsCount: collapsableChipsCount,
362
- lastVisibleChipIndex: lastVisibleChipIndex,
363
- };
364
- var generatedNotCorporateEntity = Object.keys(entity).length === 1
365
- ? generateEnteredByUserOption(__assign({ email: entity.email }, commonFields))
366
- : generateContactsOption(__assign({ option: entity }, commonFields));
367
- return 'contacts' in entity ? generateCorporateOption(__assign({ option: entity }, commonFields)) : generatedNotCorporateEntity;
368
- }));
369
- }
370
- // eslint-disable-next-line
371
- }, [selectedEntries]);
372
- var OptionComponent = useCallback(function (props) { return _jsx(Option, __assign({}, props, { children: props.children })); }, []);
373
- var MenuListComponent = useCallback(function (props) { return (_jsx(MenuList, __assign({}, props, { children: props.children, appTheme: theme, selectRef: selectRef, scrollFromTop: menuScrollFromTop, hasNextPage: hasNextPage, isLoading: isLoading, isUserTyping: isUserTyping, isNextPageLoading: isNextPageLoading, onLoadNextPage: function (inputValue) { return onLoadNextPage && onLoadNextPage(inputValue); } }))); }, [hasNextPage, isLoading, isNextPageLoading, isUserTyping, onLoadNextPage, theme]);
374
- return (_jsxs("div", __assign({ id: userDropdownId, className: "smartapp-user-dropdown" }, { children: [renderTitle(), _jsxs("div", __assign({ className: "smartapp-user-dropdown__container" }, { children: [renderMask(), _jsx(Select, { ref: selectRef, isMulti: true, openMenuOnFocus: true, blurInputOnSelect: false, captureMenuScroll: false, isSearchable: isSearchable, menuPlacement: menuPosition, controlShouldRenderValue: isChipsVisible, backspaceRemovesValue: isChipsVisible, isDisabled: isDisabled, closeMenuOnSelect: isMenuCloseOnSelect, isLoading: isLoading, isClearable: false, styles: generateStyles(), placeholder: placeholder || '', noOptionsMessage: generateNoOptionsMessage, loadingMessage: function () { return _jsx(LoadingMessage, { theme: theme }); }, value: selectedUsers, options: !isNull(corporateEntries) || !isNull(myContactsEntries) ? generateOptions() : undefined, filterOption: handleFilterOption, onInputChange: handleInputChange, onChange: handleChange, onMenuClose: handleMenuClose, onMenuOpen: onMenuOpen, onKeyDown: handleKeyDown, onBlur: handleBlur, onFocus: handleFocus, components: {
375
- Input: Input,
376
- MultiValueLabel: MultiValueLabel,
377
- MultiValueRemove: MultiValueRemove,
378
- Option: OptionComponent,
379
- IndicatorSeparator: IndicatorSeparator,
380
- DropdownIndicator: DropdownIndicator,
381
- LoadingIndicator: LoadingIndicator,
382
- MenuList: MenuListComponent,
383
- } })] })), renderHint(), _jsx(Modal, { isModalOpen: !isNull(modalData), platform: platform, content: modalContent, contentStyles: { borderRadius: '28px 28px 0px 0px', paddingLeft: '16px', paddingRight: '16px' }, backgroundColor: "var(--color-bg-blackout-transparent)", handleCloseModal: handleCloseModal })] })));
384
- };
385
- export default UserDropdown;
386
- //# sourceMappingURL=UserDropdown.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UserDropdown.js","sourceRoot":"","sources":["../../../../src/сomponents/UserDropdown/UserDropdown.tsx"],"names":[],"m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AU,EAAE;4BACV,KAAK,OAAA;4BACL,eAAe,iBAAA;4BACf,gBAAgB,kBAAA;4BAChB,MAAM,EAAE,eAAe;4BACvB,kBAAkB,oBAAA;4BAClB,iBAAiB,mBAAA;4BACjB,gBAAgB,kBAAA;4BAChB,QAAQ,EAAE,iBAAiB;yBAC5B,GACD,KACE,EACL,UAAU,EAAE,EACb,KAAC,KAAK,IACJ,WAAW,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,EAC/B,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,YAAY,EACrB,aAAa,EAAE,EAAE,YAAY,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,EAC/F,eAAe,EAAC,sCAAsC,EACtD,gBAAgB,EAAE,gBAAgB,GAClC,KACE,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,YAAY,CAAA"}
@@ -1,87 +0,0 @@
1
- /// <reference types="react" />
2
- import { TGenerateContactsOption, TGenerateContactsOptionsToSelect, TGenerateCorporateOption, TGenerateCorporateOptionsToSelect, TGenerateEnteredByUserOption } from './types';
3
- export declare const generateCorporateOption: ({ option: { name, avatar, email, contacts, serverName, company, department, companyPosition }, ...remainingFields }: TGenerateCorporateOption) => {
4
- platform: string;
5
- layoutType: string;
6
- isChipsCollapsable: boolean;
7
- isInputFocused: import("react").RefObject<boolean>;
8
- selectRef: import("react").RefObject<any>;
9
- value: string;
10
- label: string;
11
- name: string;
12
- avatar: string | null;
13
- email: string;
14
- contacts: {
15
- userHuid: string;
16
- contact: string;
17
- }[];
18
- serverName: string | null;
19
- company: string | null;
20
- department: string | null;
21
- companyPosition: string | null;
22
- };
23
- export declare const generateCorporateOptionsToSelect: ({ language, options, setIsSearchable, setModalData, ...remainingFields }: TGenerateCorporateOptionsToSelect) => {
24
- language: string;
25
- setIsSearchable: (isSearchable: boolean) => void;
26
- setModalData: (modalData: import("./types").TModalData | null) => void;
27
- platform: string;
28
- layoutType: string;
29
- isChipsCollapsable: boolean;
30
- isInputFocused: import("react").RefObject<boolean>;
31
- selectRef: import("react").RefObject<any>;
32
- value: string;
33
- label: string;
34
- name: string;
35
- avatar: string | null;
36
- email: string;
37
- contacts: {
38
- userHuid: string;
39
- contact: string;
40
- }[];
41
- serverName: string | null;
42
- company: string | null;
43
- department: string | null;
44
- companyPosition: string | null;
45
- }[];
46
- export declare const generateContactsOption: ({ option: { name, avatar, email }, ...remainingFields }: TGenerateContactsOption) => {
47
- platform: string;
48
- layoutType: string;
49
- isChipsCollapsable: boolean;
50
- isInputFocused: import("react").RefObject<boolean>;
51
- selectRef: import("react").RefObject<any>;
52
- value: string;
53
- label: string;
54
- name: string | null;
55
- avatar: string | null;
56
- email: string;
57
- isMyContacts: boolean;
58
- };
59
- export declare const generateContactsOptionsToSelect: ({ options, ...remainingFields }: TGenerateContactsOptionsToSelect) => {
60
- platform: string;
61
- layoutType: string;
62
- isChipsCollapsable: boolean;
63
- isInputFocused: import("react").RefObject<boolean>;
64
- selectRef: import("react").RefObject<any>;
65
- value: string;
66
- label: string;
67
- name: string | null;
68
- avatar: string | null;
69
- email: string;
70
- isMyContacts: boolean;
71
- }[];
72
- export declare const generateEnteredByUserOption: ({ email, ...remainingFields }: TGenerateEnteredByUserOption) => {
73
- platform: string;
74
- layoutType: string;
75
- isChipsCollapsable: boolean;
76
- isInputFocused: import("react").RefObject<boolean>;
77
- selectRef: import("react").RefObject<any>;
78
- isError?: boolean | undefined;
79
- value: string;
80
- label: string;
81
- email: string;
82
- isEnteredByUser: boolean;
83
- };
84
- export declare const IndicatorSeparator: () => null;
85
- export declare const DropdownIndicator: () => null;
86
- export declare const MultiValueRemove: () => null;
87
- export declare const LoadingIndicator: () => null;