@expressms/smartapp-ui 2.9.3 → 2.9.4-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (458) hide show
  1. package/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/distribution.svg +0 -12
  17. package/build/main/assets/icons/download.svg +0 -4
  18. package/build/main/assets/icons/error.svg +0 -5
  19. package/build/main/assets/icons/external-link.svg +0 -3
  20. package/build/main/assets/icons/eye-off.svg +0 -10
  21. package/build/main/assets/icons/eye.svg +0 -10
  22. package/build/main/assets/icons/file.svg +0 -3
  23. package/build/main/assets/icons/group.svg +0 -3
  24. package/build/main/assets/icons/info.svg +0 -5
  25. package/build/main/assets/icons/loader.svg +0 -3
  26. package/build/main/assets/icons/logout.svg +0 -4
  27. package/build/main/assets/icons/magnifying-glass.svg +0 -3
  28. package/build/main/assets/icons/mail.svg +0 -3
  29. package/build/main/assets/icons/meeting-room.svg +0 -3
  30. package/build/main/assets/icons/meeting-rooms-list.svg +0 -5
  31. package/build/main/assets/icons/more.svg +0 -3
  32. package/build/main/assets/icons/my-contact-user.svg +0 -10
  33. package/build/main/assets/icons/notification-close.svg +0 -3
  34. package/build/main/assets/icons/notification-error.svg +0 -3
  35. package/build/main/assets/icons/notification-failure.svg +0 -3
  36. package/build/main/assets/icons/notification-info.svg +0 -5
  37. package/build/main/assets/icons/notification-success.svg +0 -4
  38. package/build/main/assets/icons/notification-warning.svg +0 -5
  39. package/build/main/assets/icons/order.svg +0 -6
  40. package/build/main/assets/icons/plus.svg +0 -4
  41. package/build/main/assets/icons/private.svg +0 -12
  42. package/build/main/assets/icons/refresh.svg +0 -3
  43. package/build/main/assets/icons/search.svg +0 -3
  44. package/build/main/assets/icons/story-loader.svg +0 -3
  45. package/build/main/assets/icons/tick.svg +0 -10
  46. package/build/main/assets/icons/trash.svg +0 -3
  47. package/build/main/assets/icons/unread-mails.svg +0 -4
  48. package/build/main/assets/icons/warning-avatar.svg +0 -4
  49. package/build/main/assets/storybook/index.d.ts +0 -21
  50. package/build/main/assets/storybook/index.js +0 -22
  51. package/build/main/assets/storybook/index.js.map +0 -1
  52. package/build/main/constants/constants.d.ts +0 -158
  53. package/build/main/constants/constants.js +0 -178
  54. package/build/main/constants/constants.js.map +0 -1
  55. package/build/main/constants/index.d.ts +0 -2
  56. package/build/main/constants/index.js +0 -3
  57. package/build/main/constants/index.js.map +0 -1
  58. package/build/main/constants/types.d.ts +0 -29
  59. package/build/main/constants/types.js +0 -2
  60. package/build/main/constants/types.js.map +0 -1
  61. package/build/main/helpers/index.d.ts +0 -25
  62. package/build/main/helpers/index.js +0 -113
  63. package/build/main/helpers/index.js.map +0 -1
  64. package/build/main/hooks/useLongTap.d.ts +0 -12
  65. package/build/main/hooks/useLongTap.js +0 -29
  66. package/build/main/hooks/useLongTap.js.map +0 -1
  67. package/build/main/hooks/useModal.d.ts +0 -21
  68. package/build/main/hooks/useModal.js +0 -60
  69. package/build/main/hooks/useModal.js.map +0 -1
  70. package/build/main/index.d.ts +0 -36
  71. package/build/main/index.js +0 -37
  72. package/build/main/index.js.map +0 -1
  73. package/build/main/styles/index.d.ts +0 -1
  74. package/build/main/styles/index.js +0 -2
  75. package/build/main/styles/index.js.map +0 -1
  76. package/build/main/styles/main.js +0 -0
  77. package/build/main/styles/styles.scss +0 -14
  78. package/build/main//321/201omponents/ActionModal/ActionModal.d.ts +0 -4
  79. package/build/main//321/201omponents/ActionModal/ActionModal.js +0 -55
  80. package/build/main//321/201omponents/ActionModal/ActionModal.js.map +0 -1
  81. package/build/main//321/201omponents/ActionModal/index.d.ts +0 -1
  82. package/build/main//321/201omponents/ActionModal/index.js +0 -2
  83. package/build/main//321/201omponents/ActionModal/index.js.map +0 -1
  84. package/build/main//321/201omponents/ActionModal/types.d.ts +0 -24
  85. package/build/main//321/201omponents/ActionModal/types.js +0 -2
  86. package/build/main//321/201omponents/ActionModal/types.js.map +0 -1
  87. package/build/main//321/201omponents/AttachedFile/AttachedFile.d.ts +0 -8
  88. package/build/main//321/201omponents/AttachedFile/AttachedFile.js +0 -60
  89. package/build/main//321/201omponents/AttachedFile/AttachedFile.js.map +0 -1
  90. package/build/main//321/201omponents/AttachedFile/index.d.ts +0 -1
  91. package/build/main//321/201omponents/AttachedFile/index.js +0 -2
  92. package/build/main//321/201omponents/AttachedFile/index.js.map +0 -1
  93. package/build/main//321/201omponents/AttachedFile/types.d.ts +0 -25
  94. package/build/main//321/201omponents/AttachedFile/types.js +0 -2
  95. package/build/main//321/201omponents/AttachedFile/types.js.map +0 -1
  96. package/build/main//321/201omponents/Avatar/Avatar.d.ts +0 -4
  97. package/build/main//321/201omponents/Avatar/Avatar.js +0 -150
  98. package/build/main//321/201omponents/Avatar/Avatar.js.map +0 -1
  99. package/build/main//321/201omponents/Avatar/index.d.ts +0 -1
  100. package/build/main//321/201omponents/Avatar/index.js +0 -2
  101. package/build/main//321/201omponents/Avatar/index.js.map +0 -1
  102. package/build/main//321/201omponents/Avatar/types.d.ts +0 -59
  103. package/build/main//321/201omponents/Avatar/types.js +0 -29
  104. package/build/main//321/201omponents/Avatar/types.js.map +0 -1
  105. package/build/main//321/201omponents/Button/Button.d.ts +0 -4
  106. package/build/main//321/201omponents/Button/Button.js +0 -63
  107. package/build/main//321/201omponents/Button/Button.js.map +0 -1
  108. package/build/main//321/201omponents/Button/index.d.ts +0 -1
  109. package/build/main//321/201omponents/Button/index.js +0 -2
  110. package/build/main//321/201omponents/Button/index.js.map +0 -1
  111. package/build/main//321/201omponents/Button/types.d.ts +0 -28
  112. package/build/main//321/201omponents/Button/types.js +0 -11
  113. package/build/main//321/201omponents/Button/types.js.map +0 -1
  114. package/build/main//321/201omponents/CachedImage/CachedImage.d.ts +0 -4
  115. package/build/main//321/201omponents/CachedImage/CachedImage.js +0 -59
  116. package/build/main//321/201omponents/CachedImage/CachedImage.js.map +0 -1
  117. package/build/main//321/201omponents/CachedImage/helpers.d.ts +0 -3
  118. package/build/main//321/201omponents/CachedImage/helpers.js +0 -40
  119. package/build/main//321/201omponents/CachedImage/helpers.js.map +0 -1
  120. package/build/main//321/201omponents/CachedImage/index.d.ts +0 -1
  121. package/build/main//321/201omponents/CachedImage/index.js +0 -2
  122. package/build/main//321/201omponents/CachedImage/index.js.map +0 -1
  123. package/build/main//321/201omponents/CachedImage/types.d.ts +0 -10
  124. package/build/main//321/201omponents/CachedImage/types.js +0 -2
  125. package/build/main//321/201omponents/CachedImage/types.js.map +0 -1
  126. package/build/main//321/201omponents/Calendar/Calendar.d.ts +0 -4
  127. package/build/main//321/201omponents/Calendar/Calendar.js +0 -97
  128. package/build/main//321/201omponents/Calendar/Calendar.js.map +0 -1
  129. package/build/main//321/201omponents/Calendar/index.d.ts +0 -1
  130. package/build/main//321/201omponents/Calendar/index.js +0 -2
  131. package/build/main//321/201omponents/Calendar/index.js.map +0 -1
  132. package/build/main//321/201omponents/Calendar/types.d.ts +0 -13
  133. package/build/main//321/201omponents/Calendar/types.js +0 -2
  134. package/build/main//321/201omponents/Calendar/types.js.map +0 -1
  135. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.d.ts +0 -4
  136. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js +0 -46
  137. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js.map +0 -1
  138. package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.d.ts +0 -4
  139. package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.js +0 -71
  140. package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.js.map +0 -1
  141. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.d.ts +0 -4
  142. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js +0 -41
  143. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js.map +0 -1
  144. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.d.ts +0 -4
  145. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js +0 -63
  146. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js.map +0 -1
  147. package/build/main//321/201omponents/Charts/colors.d.ts +0 -3
  148. package/build/main//321/201omponents/Charts/colors.js +0 -4
  149. package/build/main//321/201omponents/Charts/colors.js.map +0 -1
  150. package/build/main//321/201omponents/Charts/constants.d.ts +0 -46
  151. package/build/main//321/201omponents/Charts/constants.js +0 -43
  152. package/build/main//321/201omponents/Charts/constants.js.map +0 -1
  153. package/build/main//321/201omponents/Charts/helpers.d.ts +0 -17
  154. package/build/main//321/201omponents/Charts/helpers.js +0 -73
  155. package/build/main//321/201omponents/Charts/helpers.js.map +0 -1
  156. package/build/main//321/201omponents/Charts/index.d.ts +0 -3
  157. package/build/main//321/201omponents/Charts/index.js +0 -4
  158. package/build/main//321/201omponents/Charts/index.js.map +0 -1
  159. package/build/main//321/201omponents/Charts/types.d.ts +0 -88
  160. package/build/main//321/201omponents/Charts/types.js +0 -2
  161. package/build/main//321/201omponents/Charts/types.js.map +0 -1
  162. package/build/main//321/201omponents/Charts/useEvents.d.ts +0 -5
  163. package/build/main//321/201omponents/Charts/useEvents.js +0 -45
  164. package/build/main//321/201omponents/Charts/useEvents.js.map +0 -1
  165. package/build/main//321/201omponents/Charts/usePieEvents.d.ts +0 -6
  166. package/build/main//321/201omponents/Charts/usePieEvents.js +0 -57
  167. package/build/main//321/201omponents/Charts/usePieEvents.js.map +0 -1
  168. package/build/main//321/201omponents/Checkbox/Checkbox.d.ts +0 -4
  169. package/build/main//321/201omponents/Checkbox/Checkbox.js +0 -38
  170. package/build/main//321/201omponents/Checkbox/Checkbox.js.map +0 -1
  171. package/build/main//321/201omponents/Checkbox/index.d.ts +0 -1
  172. package/build/main//321/201omponents/Checkbox/index.js +0 -2
  173. package/build/main//321/201omponents/Checkbox/index.js.map +0 -1
  174. package/build/main//321/201omponents/Checkbox/types.d.ts +0 -12
  175. package/build/main//321/201omponents/Checkbox/types.js +0 -2
  176. package/build/main//321/201omponents/Checkbox/types.js.map +0 -1
  177. package/build/main//321/201omponents/Chip/Chip.d.ts +0 -4
  178. package/build/main//321/201omponents/Chip/Chip.js +0 -65
  179. package/build/main//321/201omponents/Chip/Chip.js.map +0 -1
  180. package/build/main//321/201omponents/Chip/index.d.ts +0 -1
  181. package/build/main//321/201omponents/Chip/index.js +0 -2
  182. package/build/main//321/201omponents/Chip/index.js.map +0 -1
  183. package/build/main//321/201omponents/Chip/types.d.ts +0 -21
  184. package/build/main//321/201omponents/Chip/types.js +0 -2
  185. package/build/main//321/201omponents/Chip/types.js.map +0 -1
  186. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.d.ts +0 -4
  187. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js +0 -70
  188. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js.map +0 -1
  189. package/build/main//321/201omponents/ConfirmationModal/index.d.ts +0 -1
  190. package/build/main//321/201omponents/ConfirmationModal/index.js +0 -2
  191. package/build/main//321/201omponents/ConfirmationModal/index.js.map +0 -1
  192. package/build/main//321/201omponents/ConfirmationModal/types.d.ts +0 -28
  193. package/build/main//321/201omponents/ConfirmationModal/types.js +0 -2
  194. package/build/main//321/201omponents/ConfirmationModal/types.js.map +0 -1
  195. package/build/main//321/201omponents/ContextMenu/ContextMenu.d.ts +0 -4
  196. package/build/main//321/201omponents/ContextMenu/ContextMenu.js +0 -81
  197. package/build/main//321/201omponents/ContextMenu/ContextMenu.js.map +0 -1
  198. package/build/main//321/201omponents/ContextMenu/index.d.ts +0 -1
  199. package/build/main//321/201omponents/ContextMenu/index.js +0 -2
  200. package/build/main//321/201omponents/ContextMenu/index.js.map +0 -1
  201. package/build/main//321/201omponents/ContextMenu/types.d.ts +0 -34
  202. package/build/main//321/201omponents/ContextMenu/types.js +0 -2
  203. package/build/main//321/201omponents/ContextMenu/types.js.map +0 -1
  204. package/build/main//321/201omponents/CustomSelect/CustomSelect.d.ts +0 -12
  205. package/build/main//321/201omponents/CustomSelect/CustomSelect.js +0 -243
  206. package/build/main//321/201omponents/CustomSelect/CustomSelect.js.map +0 -1
  207. package/build/main//321/201omponents/CustomSelect/index.d.ts +0 -1
  208. package/build/main//321/201omponents/CustomSelect/index.js +0 -2
  209. package/build/main//321/201omponents/CustomSelect/index.js.map +0 -1
  210. package/build/main//321/201omponents/CustomSelect/selectStyles.d.ts +0 -16
  211. package/build/main//321/201omponents/CustomSelect/selectStyles.js +0 -67
  212. package/build/main//321/201omponents/CustomSelect/selectStyles.js.map +0 -1
  213. package/build/main//321/201omponents/CustomSelect/types.d.ts +0 -64
  214. package/build/main//321/201omponents/CustomSelect/types.js +0 -2
  215. package/build/main//321/201omponents/CustomSelect/types.js.map +0 -1
  216. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.d.ts +0 -4
  217. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js +0 -58
  218. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js.map +0 -1
  219. package/build/main//321/201omponents/CustomSelectProfiles/index.d.ts +0 -1
  220. package/build/main//321/201omponents/CustomSelectProfiles/index.js +0 -2
  221. package/build/main//321/201omponents/CustomSelectProfiles/index.js.map +0 -1
  222. package/build/main//321/201omponents/CustomSelectProfiles/types.d.ts +0 -12
  223. package/build/main//321/201omponents/CustomSelectProfiles/types.js +0 -2
  224. package/build/main//321/201omponents/CustomSelectProfiles/types.js.map +0 -1
  225. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.d.ts +0 -4
  226. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js +0 -57
  227. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js.map +0 -1
  228. package/build/main//321/201omponents/DragAndDrop/index.d.ts +0 -1
  229. package/build/main//321/201omponents/DragAndDrop/index.js +0 -2
  230. package/build/main//321/201omponents/DragAndDrop/index.js.map +0 -1
  231. package/build/main//321/201omponents/DragAndDrop/types.d.ts +0 -24
  232. package/build/main//321/201omponents/DragAndDrop/types.js +0 -2
  233. package/build/main//321/201omponents/DragAndDrop/types.js.map +0 -1
  234. package/build/main//321/201omponents/DraggablePopup/DraggablePopup.d.ts +0 -4
  235. package/build/main//321/201omponents/DraggablePopup/DraggablePopup.js +0 -223
  236. package/build/main//321/201omponents/DraggablePopup/DraggablePopup.js.map +0 -1
  237. package/build/main//321/201omponents/DraggablePopup/index.d.ts +0 -1
  238. package/build/main//321/201omponents/DraggablePopup/index.js +0 -2
  239. package/build/main//321/201omponents/DraggablePopup/index.js.map +0 -1
  240. package/build/main//321/201omponents/DraggablePopup/types.d.ts +0 -87
  241. package/build/main//321/201omponents/DraggablePopup/types.js +0 -2
  242. package/build/main//321/201omponents/DraggablePopup/types.js.map +0 -1
  243. package/build/main//321/201omponents/Error/Error.d.ts +0 -4
  244. package/build/main//321/201omponents/Error/Error.js +0 -23
  245. package/build/main//321/201omponents/Error/Error.js.map +0 -1
  246. package/build/main//321/201omponents/Error/index.d.ts +0 -1
  247. package/build/main//321/201omponents/Error/index.js +0 -2
  248. package/build/main//321/201omponents/Error/index.js.map +0 -1
  249. package/build/main//321/201omponents/Error/types.d.ts +0 -10
  250. package/build/main//321/201omponents/Error/types.js +0 -2
  251. package/build/main//321/201omponents/Error/types.js.map +0 -1
  252. package/build/main//321/201omponents/Flex/Flex.d.ts +0 -2
  253. package/build/main//321/201omponents/Flex/Flex.js +0 -49
  254. package/build/main//321/201omponents/Flex/Flex.js.map +0 -1
  255. package/build/main//321/201omponents/Flex/HFlex/HFlex.d.ts +0 -5
  256. package/build/main//321/201omponents/Flex/HFlex/HFlex.js +0 -16
  257. package/build/main//321/201omponents/Flex/HFlex/HFlex.js.map +0 -1
  258. package/build/main//321/201omponents/Flex/HFlex/index.d.ts +0 -1
  259. package/build/main//321/201omponents/Flex/HFlex/index.js +0 -2
  260. package/build/main//321/201omponents/Flex/HFlex/index.js.map +0 -1
  261. package/build/main//321/201omponents/Flex/VFlex/VFlex.d.ts +0 -5
  262. package/build/main//321/201omponents/Flex/VFlex/VFlex.js +0 -16
  263. package/build/main//321/201omponents/Flex/VFlex/VFlex.js.map +0 -1
  264. package/build/main//321/201omponents/Flex/VFlex/index.d.ts +0 -1
  265. package/build/main//321/201omponents/Flex/VFlex/index.js +0 -2
  266. package/build/main//321/201omponents/Flex/VFlex/index.js.map +0 -1
  267. package/build/main//321/201omponents/Flex/index.d.ts +0 -3
  268. package/build/main//321/201omponents/Flex/index.js +0 -4
  269. package/build/main//321/201omponents/Flex/index.js.map +0 -1
  270. package/build/main//321/201omponents/Flex/types.d.ts +0 -15
  271. package/build/main//321/201omponents/Flex/types.js +0 -2
  272. package/build/main//321/201omponents/Flex/types.js.map +0 -1
  273. package/build/main//321/201omponents/Header/Header.d.ts +0 -5
  274. package/build/main//321/201omponents/Header/Header.js +0 -125
  275. package/build/main//321/201omponents/Header/Header.js.map +0 -1
  276. package/build/main//321/201omponents/Header/index.d.ts +0 -1
  277. package/build/main//321/201omponents/Header/index.js +0 -2
  278. package/build/main//321/201omponents/Header/index.js.map +0 -1
  279. package/build/main//321/201omponents/Header/types.d.ts +0 -46
  280. package/build/main//321/201omponents/Header/types.js +0 -2
  281. package/build/main//321/201omponents/Header/types.js.map +0 -1
  282. package/build/main//321/201omponents/Input/Input.d.ts +0 -4
  283. package/build/main//321/201omponents/Input/Input.js +0 -207
  284. package/build/main//321/201omponents/Input/Input.js.map +0 -1
  285. package/build/main//321/201omponents/Input/index.d.ts +0 -1
  286. package/build/main//321/201omponents/Input/index.js +0 -2
  287. package/build/main//321/201omponents/Input/index.js.map +0 -1
  288. package/build/main//321/201omponents/Input/types.d.ts +0 -29
  289. package/build/main//321/201omponents/Input/types.js +0 -2
  290. package/build/main//321/201omponents/Input/types.js.map +0 -1
  291. package/build/main//321/201omponents/ListItem/ListItem.d.ts +0 -23
  292. package/build/main//321/201omponents/ListItem/ListItem.js +0 -208
  293. package/build/main//321/201omponents/ListItem/ListItem.js.map +0 -1
  294. package/build/main//321/201omponents/ListItem/index.d.ts +0 -1
  295. package/build/main//321/201omponents/ListItem/index.js +0 -2
  296. package/build/main//321/201omponents/ListItem/index.js.map +0 -1
  297. package/build/main//321/201omponents/ListItem/types.d.ts +0 -42
  298. package/build/main//321/201omponents/ListItem/types.js +0 -2
  299. package/build/main//321/201omponents/ListItem/types.js.map +0 -1
  300. package/build/main//321/201omponents/Loader/Loader.d.ts +0 -4
  301. package/build/main//321/201omponents/Loader/Loader.js +0 -44
  302. package/build/main//321/201omponents/Loader/Loader.js.map +0 -1
  303. package/build/main//321/201omponents/Loader/index.d.ts +0 -1
  304. package/build/main//321/201omponents/Loader/index.js +0 -2
  305. package/build/main//321/201omponents/Loader/index.js.map +0 -1
  306. package/build/main//321/201omponents/Loader/types.d.ts +0 -18
  307. package/build/main//321/201omponents/Loader/types.js +0 -2
  308. package/build/main//321/201omponents/Loader/types.js.map +0 -1
  309. package/build/main//321/201omponents/Modal/Modal.d.ts +0 -4
  310. package/build/main//321/201omponents/Modal/Modal.js +0 -146
  311. package/build/main//321/201omponents/Modal/Modal.js.map +0 -1
  312. package/build/main//321/201omponents/Modal/index.d.ts +0 -1
  313. package/build/main//321/201omponents/Modal/index.js +0 -2
  314. package/build/main//321/201omponents/Modal/index.js.map +0 -1
  315. package/build/main//321/201omponents/Modal/types.d.ts +0 -35
  316. package/build/main//321/201omponents/Modal/types.js +0 -2
  317. package/build/main//321/201omponents/Modal/types.js.map +0 -1
  318. package/build/main//321/201omponents/Notification/Notification.d.ts +0 -8
  319. package/build/main//321/201omponents/Notification/Notification.js +0 -218
  320. package/build/main//321/201omponents/Notification/Notification.js.map +0 -1
  321. package/build/main//321/201omponents/Notification/index.d.ts +0 -1
  322. package/build/main//321/201omponents/Notification/index.js +0 -2
  323. package/build/main//321/201omponents/Notification/index.js.map +0 -1
  324. package/build/main//321/201omponents/Notification/types.d.ts +0 -45
  325. package/build/main//321/201omponents/Notification/types.js +0 -2
  326. package/build/main//321/201omponents/Notification/types.js.map +0 -1
  327. package/build/main//321/201omponents/Profile/Profile.d.ts +0 -4
  328. package/build/main//321/201omponents/Profile/Profile.js +0 -42
  329. package/build/main//321/201omponents/Profile/Profile.js.map +0 -1
  330. package/build/main//321/201omponents/Profile/index.d.ts +0 -1
  331. package/build/main//321/201omponents/Profile/index.js +0 -2
  332. package/build/main//321/201omponents/Profile/index.js.map +0 -1
  333. package/build/main//321/201omponents/Profile/types.d.ts +0 -14
  334. package/build/main//321/201omponents/Profile/types.js +0 -2
  335. package/build/main//321/201omponents/Profile/types.js.map +0 -1
  336. package/build/main//321/201omponents/ProgressBar/ProgressBar.d.ts +0 -4
  337. package/build/main//321/201omponents/ProgressBar/ProgressBar.js +0 -66
  338. package/build/main//321/201omponents/ProgressBar/ProgressBar.js.map +0 -1
  339. package/build/main//321/201omponents/ProgressBar/index.d.ts +0 -1
  340. package/build/main//321/201omponents/ProgressBar/index.js +0 -2
  341. package/build/main//321/201omponents/ProgressBar/index.js.map +0 -1
  342. package/build/main//321/201omponents/ProgressBar/types.d.ts +0 -7
  343. package/build/main//321/201omponents/ProgressBar/types.js +0 -2
  344. package/build/main//321/201omponents/ProgressBar/types.js.map +0 -1
  345. package/build/main//321/201omponents/RadioButton/RadioButton.d.ts +0 -4
  346. package/build/main//321/201omponents/RadioButton/RadioButton.js +0 -37
  347. package/build/main//321/201omponents/RadioButton/RadioButton.js.map +0 -1
  348. package/build/main//321/201omponents/RadioButton/index.d.ts +0 -1
  349. package/build/main//321/201omponents/RadioButton/index.js +0 -2
  350. package/build/main//321/201omponents/RadioButton/index.js.map +0 -1
  351. package/build/main//321/201omponents/RadioButton/types.d.ts +0 -12
  352. package/build/main//321/201omponents/RadioButton/types.js +0 -2
  353. package/build/main//321/201omponents/RadioButton/types.js.map +0 -1
  354. package/build/main//321/201omponents/ScrollBar/ScrollBar.d.ts +0 -5
  355. package/build/main//321/201omponents/ScrollBar/ScrollBar.js +0 -63
  356. package/build/main//321/201omponents/ScrollBar/ScrollBar.js.map +0 -1
  357. package/build/main//321/201omponents/ScrollBar/index.d.ts +0 -1
  358. package/build/main//321/201omponents/ScrollBar/index.js +0 -2
  359. package/build/main//321/201omponents/ScrollBar/index.js.map +0 -1
  360. package/build/main//321/201omponents/ScrollBar/types.d.ts +0 -20
  361. package/build/main//321/201omponents/ScrollBar/types.js +0 -2
  362. package/build/main//321/201omponents/ScrollBar/types.js.map +0 -1
  363. package/build/main//321/201omponents/Skeleton/Skeleton.d.ts +0 -4
  364. package/build/main//321/201omponents/Skeleton/Skeleton.js +0 -59
  365. package/build/main//321/201omponents/Skeleton/Skeleton.js.map +0 -1
  366. package/build/main//321/201omponents/Skeleton/index.d.ts +0 -1
  367. package/build/main//321/201omponents/Skeleton/index.js +0 -2
  368. package/build/main//321/201omponents/Skeleton/index.js.map +0 -1
  369. package/build/main//321/201omponents/Skeleton/types.d.ts +0 -17
  370. package/build/main//321/201omponents/Skeleton/types.js +0 -2
  371. package/build/main//321/201omponents/Skeleton/types.js.map +0 -1
  372. package/build/main//321/201omponents/Stories/Stories.d.ts +0 -4
  373. package/build/main//321/201omponents/Stories/Stories.js +0 -300
  374. package/build/main//321/201omponents/Stories/Stories.js.map +0 -1
  375. package/build/main//321/201omponents/Stories/index.d.ts +0 -1
  376. package/build/main//321/201omponents/Stories/index.js +0 -2
  377. package/build/main//321/201omponents/Stories/index.js.map +0 -1
  378. package/build/main//321/201omponents/Stories/types.d.ts +0 -70
  379. package/build/main//321/201omponents/Stories/types.js +0 -16
  380. package/build/main//321/201omponents/Stories/types.js.map +0 -1
  381. package/build/main//321/201omponents/Switcher/Switcher.d.ts +0 -4
  382. package/build/main//321/201omponents/Switcher/Switcher.js +0 -34
  383. package/build/main//321/201omponents/Switcher/Switcher.js.map +0 -1
  384. package/build/main//321/201omponents/Switcher/index.d.ts +0 -1
  385. package/build/main//321/201omponents/Switcher/index.js +0 -2
  386. package/build/main//321/201omponents/Switcher/index.js.map +0 -1
  387. package/build/main//321/201omponents/Switcher/types.d.ts +0 -8
  388. package/build/main//321/201omponents/Switcher/types.js +0 -2
  389. package/build/main//321/201omponents/Switcher/types.js.map +0 -1
  390. package/build/main//321/201omponents/SyncLoader/SyncLoader.d.ts +0 -5
  391. package/build/main//321/201omponents/SyncLoader/SyncLoader.js +0 -65
  392. package/build/main//321/201omponents/SyncLoader/SyncLoader.js.map +0 -1
  393. package/build/main//321/201omponents/SyncLoader/index.d.ts +0 -1
  394. package/build/main//321/201omponents/SyncLoader/index.js +0 -2
  395. package/build/main//321/201omponents/SyncLoader/index.js.map +0 -1
  396. package/build/main//321/201omponents/SyncLoader/types.d.ts +0 -9
  397. package/build/main//321/201omponents/SyncLoader/types.js +0 -2
  398. package/build/main//321/201omponents/SyncLoader/types.js.map +0 -1
  399. package/build/main//321/201omponents/Textarea/Textarea.d.ts +0 -4
  400. package/build/main//321/201omponents/Textarea/Textarea.js +0 -96
  401. package/build/main//321/201omponents/Textarea/Textarea.js.map +0 -1
  402. package/build/main//321/201omponents/Textarea/index.d.ts +0 -1
  403. package/build/main//321/201omponents/Textarea/index.js +0 -2
  404. package/build/main//321/201omponents/Textarea/index.js.map +0 -1
  405. package/build/main//321/201omponents/Textarea/types.d.ts +0 -12
  406. package/build/main//321/201omponents/Textarea/types.js +0 -2
  407. package/build/main//321/201omponents/Textarea/types.js.map +0 -1
  408. package/build/main//321/201omponents/Toggle/Toggle.d.ts +0 -4
  409. package/build/main//321/201omponents/Toggle/Toggle.js +0 -38
  410. package/build/main//321/201omponents/Toggle/Toggle.js.map +0 -1
  411. package/build/main//321/201omponents/Toggle/index.d.ts +0 -1
  412. package/build/main//321/201omponents/Toggle/index.js +0 -2
  413. package/build/main//321/201omponents/Toggle/index.js.map +0 -1
  414. package/build/main//321/201omponents/Toggle/types.d.ts +0 -12
  415. package/build/main//321/201omponents/Toggle/types.js +0 -2
  416. package/build/main//321/201omponents/Toggle/types.js.map +0 -1
  417. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.d.ts +0 -4
  418. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js +0 -32
  419. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js.map +0 -1
  420. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.d.ts +0 -4
  421. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js +0 -82
  422. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js.map +0 -1
  423. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.d.ts +0 -4
  424. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js +0 -23
  425. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js.map +0 -1
  426. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.d.ts +0 -4
  427. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js +0 -132
  428. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js.map +0 -1
  429. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.d.ts +0 -3
  430. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js +0 -97
  431. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js.map +0 -1
  432. package/build/main//321/201omponents/UserDropdown/Option/Option.d.ts +0 -4
  433. package/build/main//321/201omponents/UserDropdown/Option/Option.js +0 -93
  434. package/build/main//321/201omponents/UserDropdown/Option/Option.js.map +0 -1
  435. package/build/main//321/201omponents/UserDropdown/SearchInCatalogButton/SearchInCatalogButton.d.ts +0 -4
  436. package/build/main//321/201omponents/UserDropdown/SearchInCatalogButton/SearchInCatalogButton.js +0 -43
  437. package/build/main//321/201omponents/UserDropdown/SearchInCatalogButton/SearchInCatalogButton.js.map +0 -1
  438. package/build/main//321/201omponents/UserDropdown/UserDropdown.d.ts +0 -5
  439. package/build/main//321/201omponents/UserDropdown/UserDropdown.js +0 -484
  440. package/build/main//321/201omponents/UserDropdown/UserDropdown.js.map +0 -1
  441. package/build/main//321/201omponents/UserDropdown/constants.d.ts +0 -7
  442. package/build/main//321/201omponents/UserDropdown/constants.js +0 -9
  443. package/build/main//321/201omponents/UserDropdown/constants.js.map +0 -1
  444. package/build/main//321/201omponents/UserDropdown/helpers.d.ts +0 -98
  445. package/build/main//321/201omponents/UserDropdown/helpers.js +0 -146
  446. package/build/main//321/201omponents/UserDropdown/helpers.js.map +0 -1
  447. package/build/main//321/201omponents/UserDropdown/index.d.ts +0 -1
  448. package/build/main//321/201omponents/UserDropdown/index.js +0 -2
  449. package/build/main//321/201omponents/UserDropdown/index.js.map +0 -1
  450. package/build/main//321/201omponents/UserDropdown/selectStyles.d.ts +0 -15
  451. package/build/main//321/201omponents/UserDropdown/selectStyles.js +0 -80
  452. package/build/main//321/201omponents/UserDropdown/selectStyles.js.map +0 -1
  453. package/build/main//321/201omponents/UserDropdown/types.d.ts +0 -251
  454. package/build/main//321/201omponents/UserDropdown/types.js +0 -9
  455. package/build/main//321/201omponents/UserDropdown/types.js.map +0 -1
  456. package/build/main//321/201omponents/types.d.ts +0 -2
  457. package/build/main//321/201omponents/types.js +0 -2
  458. package/build/main//321/201omponents/types.js.map +0 -1
@@ -1,82 +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 _a;
13
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
- import { LANGUAGES } from '../../../constants';
15
- import '../../../styles/styles.scss';
16
- var INFO_TITLE_TEXT = (_a = {},
17
- _a[LANGUAGES.ru] = {
18
- server: 'Сервер',
19
- company: 'Компания',
20
- department: 'Отдел',
21
- companyPosition: 'Должность',
22
- },
23
- _a[LANGUAGES.en] = {
24
- server: 'Server',
25
- company: 'Company',
26
- department: 'Department',
27
- companyPosition: 'Position',
28
- },
29
- _a[LANGUAGES.de] = {
30
- server: 'Server',
31
- company: 'Firma',
32
- department: 'Abteilung',
33
- companyPosition: 'Position',
34
- },
35
- _a[LANGUAGES.es] = {
36
- server: 'Servidor',
37
- company: 'Empresa',
38
- department: 'Sección',
39
- companyPosition: 'Cargo',
40
- },
41
- _a[LANGUAGES.fr] = {
42
- server: 'Serveur',
43
- company: 'Société',
44
- department: 'Département',
45
- companyPosition: 'Poste',
46
- },
47
- _a[LANGUAGES.ar] = {
48
- server: 'جهاز الخادم',
49
- company: 'شركة',
50
- department: 'الإدارة',
51
- companyPosition: 'المنصب',
52
- },
53
- _a[LANGUAGES.ms] = {
54
- server: 'Pelayan',
55
- company: 'Syarikat',
56
- department: 'Jabatan',
57
- companyPosition: 'Kedudukan',
58
- },
59
- _a[LANGUAGES.tr] = {
60
- server: 'Sunucu',
61
- company: 'Şirket',
62
- department: 'Bölüm',
63
- companyPosition: 'Pozisyon',
64
- },
65
- _a[LANGUAGES.id] = {
66
- server: 'Server',
67
- company: 'Nama perusahaan',
68
- department: 'Departemen',
69
- companyPosition: 'Posisi',
70
- },
71
- _a);
72
- var ContactInfo = function (_a) {
73
- var elementRef = _a.elementRef, language = _a.language, serverName = _a.serverName, company = _a.company, department = _a.department, companyPosition = _a.companyPosition;
74
- var _b = INFO_TITLE_TEXT[language], serverTitle = _b.server, companyTitle = _b.company, departmentTitle = _b.department, companyPositionTitle = _b.companyPosition;
75
- var renderInfoItem = function (_a) {
76
- var title = _a.title, info = _a.info;
77
- return (_jsxs("div", __assign({ className: "smartapp-contact-info__item" }, { children: [_jsx("div", { children: title }), _jsx("div", { children: info })] })));
78
- };
79
- return (_jsxs("div", __assign({ ref: elementRef, className: "smartapp-contact-info" }, { children: [serverName && renderInfoItem({ title: serverTitle, info: serverName }), company && renderInfoItem({ title: companyTitle, info: company }), department && renderInfoItem({ title: departmentTitle, info: department }), companyPosition && renderInfoItem({ title: companyPositionTitle, info: companyPosition })] })));
80
- };
81
- export default ContactInfo;
82
- //# sourceMappingURL=ContactInfo.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ContactInfo.js","sourceRoot":"","sources":["../../../../../src/сomponents/UserDropdown/ContactInfo/ContactInfo.tsx"],"names":[],"mappings":";;;;;;;;;;;;;AACA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAE9C,OAAO,6BAA6B,CAAA;AAKpC,IAAM,eAAe;IACnB,GAAC,SAAS,CAAC,EAAE,IAAG;QACd,MAAM,EAAE,QAAQ;QAChB,OAAO,EAAE,UAAU;QACnB,UAAU,EAAE,OAAO;QACnB,eAAe,EAAE,WAAW;KAC7B;IACD,GAAC,SAAS,CAAC,EAAE,IAAG;QACd,MAAM,EAAE,QAAQ;QAChB,OAAO,EAAE,SAAS;QAClB,UAAU,EAAE,YAAY;QACxB,eAAe,EAAE,UAAU;KAC5B;IACD,GAAC,SAAS,CAAC,EAAE,IAAG;QACd,MAAM,EAAE,QAAQ;QAChB,OAAO,EAAE,OAAO;QAChB,UAAU,EAAE,WAAW;QACvB,eAAe,EAAE,UAAU;KAC5B;IACD,GAAC,SAAS,CAAC,EAAE,IAAG;QACd,MAAM,EAAE,UAAU;QAClB,OAAO,EAAE,SAAS;QAClB,UAAU,EAAE,SAAS;QACrB,eAAe,EAAE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,UAAU,EAAE,SAAS,EAAC,uBAAuB,iBACpD,UAAU,IAAI,cAAc,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,EACtE,OAAO,IAAI,cAAc,CAAC,EAAE,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EACjE,UAAU,IAAI,cAAc,CAAC,EAAE,KAAK,EAAE,eAAe,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,EAC1E,eAAe,IAAI,cAAc,CAAC,EAAE,KAAK,EAAE,oBAAoB,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC,KACtF,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,WAAW,CAAA"}
@@ -1,4 +0,0 @@
1
- import { ILoadingMessage } from '../types';
2
- import '../../../styles/styles.scss';
3
- declare const LoadingMessage: ({ skeletonRowsCount }: ILoadingMessage) => import("react/jsx-runtime").JSX.Element;
4
- export default LoadingMessage;
@@ -1,23 +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 { useRef } from 'react';
14
- import { Skeleton } from '../../Skeleton';
15
- import '../../../styles/styles.scss';
16
- var LOADING_MESSAGE_ITEMS = 6;
17
- var LoadingMessage = function (_a) {
18
- var _b = _a.skeletonRowsCount, skeletonRowsCount = _b === void 0 ? LOADING_MESSAGE_ITEMS : _b;
19
- var ref = useRef(null);
20
- return (_jsx("div", __assign({ ref: ref, className: "smartapp-loading-message" }, { children: Array.from({ length: skeletonRowsCount }, function (_, index) { return (_jsxs("div", __assign({ className: "smartapp-loading-message__item" }, { children: [_jsx(Skeleton, { containerRef: ref, circle: true, className: "smartapp-loading-message__item--circle" }), _jsxs("div", __assign({ className: "smartapp-loading-message__item--ellipse" }, { children: [_jsx(Skeleton, { containerRef: ref, className: "smartapp-loading-message__item--ellipse__first", borderRadius: 600 }), _jsx(Skeleton, { containerRef: ref, className: "smartapp-loading-message__item--ellipse__second", borderRadius: 600 })] }))] }), index)); }) })));
21
- };
22
- export default LoadingMessage;
23
- //# sourceMappingURL=LoadingMessage.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LoadingMessage.js","sourceRoot":"","sources":["../../../../../src/сomponents/UserDropdown/LoadingMessage/LoadingMessage.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAEzC,OAAO,6BAA6B,CAAA;AAEpC,IAAM,qBAAqB,GAAG,CAAC,CAAA;AAE/B,IAAM,cAAc,GAAG,UAAC,EAA8D;QAA5D,yBAAyC,EAAzC,iBAAiB,mBAAG,qBAAqB,KAAA;IACjE,IAAM,GAAG,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAA;IAExC,OAAO,CACL,uBAAK,GAAG,EAAE,GAAG,EAAE,SAAS,EAAC,0BAA0B,gBAChD,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,iBAAiB,EAAE,EAAE,UAAC,CAAC,EAAE,KAAK,IAAK,OAAA,CACvD,wBAAiB,SAAS,EAAC,gCAAgC,iBACzD,KAAC,QAAQ,IAAC,YAAY,EAAE,GAAG,EAAE,MAAM,QAAC,SAAS,EAAC,wCAAwC,GAAG,EACzF,wBAAK,SAAS,EAAC,yCAAyC,iBACtD,KAAC,QAAQ,IAAC,YAAY,EAAE,GAAG,EAAE,SAAS,EAAC,gDAAgD,EAAC,YAAY,EAAE,GAAG,GAAI,EAC7G,KAAC,QAAQ,IAAC,YAAY,EAAE,GAAG,EAAE,SAAS,EAAC,iDAAiD,EAAC,YAAY,EAAE,GAAG,GAAI,KAC1G,MALE,KAAK,CAMT,CACP,EARwD,CAQxD,CAAC,IACE,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,cAAc,CAAA"}
@@ -1,4 +0,0 @@
1
- import { IMenuListProps } from '../types';
2
- import '../../../styles/styles.scss';
3
- declare const MenuList: (props: IMenuListProps) => import("react/jsx-runtime").JSX.Element | null;
4
- export default MenuList;
@@ -1,132 +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 _a;
13
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
14
- import React, { useEffect, useRef, useState } from 'react';
15
- import { components } from 'react-select';
16
- import { FixedSizeList } from 'react-window';
17
- import { AutoSizer } from 'react-virtualized';
18
- import classNames from 'classnames';
19
- import SearchInCatalogButton from '../SearchInCatalogButton/SearchInCatalogButton';
20
- import LoadingMessage from '../LoadingMessage/LoadingMessage';
21
- import { LANGUAGES } from '../../../constants';
22
- import '../../../styles/styles.scss';
23
- var MIN_INPUT_SYMBOLS = 3;
24
- var SKELETON_ROWS_COUNT = 3;
25
- var MENU_ITEM_HEIGHT = 54;
26
- var MAX_MENU_HEIGHT = 292;
27
- var LIST_OVER_SCAN_COUNT = 5;
28
- var PADDING_SIZE = 12;
29
- var BUTTON_SIZE = 52;
30
- var CHAR_HINT_TIMEOUT = 1500;
31
- var ONE_CHARACTER = 1;
32
- var TWO_CHARACTERS = 2;
33
- var CHAR_HINT = (_a = {},
34
- _a[LANGUAGES.ru] = 'Запрос должен содержать не менее 3-х символов',
35
- _a[LANGUAGES.en] = 'The query must contain at least 3 characters',
36
- _a[LANGUAGES.de] = 'Die Anfrage muss mindestens 3 Zeichen enthalten',
37
- _a[LANGUAGES.es] = 'La consulta debe contener al menos 3 caracteres',
38
- _a[LANGUAGES.fr] = 'Il faut au moins 3 caractères pour la recherche',
39
- _a[LANGUAGES.ar] = 'الاستفسار يجب أن يحتوي على 3 حروف على الأقل',
40
- _a[LANGUAGES.ms] = 'Pertanyaan harus mengandungi sekurang-kurangnya 3 aksara',
41
- _a[LANGUAGES.tr] = 'Sorgu en az 3 karakter içermelidir',
42
- _a[LANGUAGES.id] = 'Kueri harus berisi minimal 3 karakter',
43
- _a);
44
- var MenuList = function (props) {
45
- var _a;
46
- var selectRef = props.selectRef, scrollFromTop = props.scrollFromTop, language = props.language, hasNextPage = props.hasNextPage, isLoading = props.isLoading, isUserTyping = props.isUserTyping, isNextPageLoading = props.isNextPageLoading, onLoadNextPage = props.onLoadNextPage, onShowCatalogSearchButtonClick = props.onShowCatalogSearchButtonClick, children = props.children, _b = props.isShowCatalogSearchButton, isShowCatalogSearchButton = _b === void 0 ? false : _b;
47
- var selectRefCurrent = selectRef.current;
48
- var inputValue = (_a = selectRefCurrent === null || selectRefCurrent === void 0 ? void 0 : selectRefCurrent.props) === null || _a === void 0 ? void 0 : _a.inputValue;
49
- var inputValueLength = inputValue === null || inputValue === void 0 ? void 0 : inputValue.length;
50
- var virtualizationListRef = useRef(null);
51
- var lastElement = useRef(null);
52
- var observer = useRef(new IntersectionObserver(function (entries) { return entries[0].isIntersecting && handleLoadNextPage(); }));
53
- var _c = useState(false), isCharHintVisible = _c[0], setIsCharHintVisible = _c[1];
54
- var _d = useState(null), timeoutId = _d[0], setTimeoutId = _d[1];
55
- useEffect(function () {
56
- if (timeoutId) {
57
- clearTimeout(timeoutId);
58
- setTimeoutId(null);
59
- }
60
- if (inputValueLength >= MIN_INPUT_SYMBOLS) {
61
- setIsCharHintVisible(false);
62
- }
63
- else if (inputValueLength === ONE_CHARACTER || inputValueLength === TWO_CHARACTERS) {
64
- if (!isCharHintVisible) {
65
- var nextTimeoutId = setTimeout(function () { return setIsCharHintVisible(true); }, CHAR_HINT_TIMEOUT);
66
- setTimeoutId(nextTimeoutId);
67
- }
68
- }
69
- else {
70
- setIsCharHintVisible(false);
71
- }
72
- return function () {
73
- timeoutId && clearTimeout(timeoutId);
74
- };
75
- // eslint-disable-next-line
76
- }, [inputValue]);
77
- useEffect(function () {
78
- var lastElementCurrent = lastElement.current;
79
- var observerCurrent = observer.current;
80
- lastElementCurrent && observerCurrent.observe(lastElementCurrent);
81
- return function () {
82
- lastElementCurrent && observerCurrent.unobserve(lastElementCurrent);
83
- };
84
- // eslint-disable-next-line
85
- }, [lastElement.current]);
86
- var handleLoadNextPage = function () {
87
- onLoadNextPage(inputValue);
88
- if (virtualizationListRef.current) {
89
- var scrollOffset = virtualizationListRef.current.state.scrollOffset;
90
- scrollFromTop.current = scrollOffset + MENU_ITEM_HEIGHT * SKELETON_ROWS_COUNT;
91
- }
92
- };
93
- if (inputValueLength < MIN_INPUT_SYMBOLS)
94
- return isCharHintVisible ? _jsx("div", __assign({ className: "smartapp-menu-list__char-hint" }, { children: CHAR_HINT[language] })) : null;
95
- // For children like: "Loading" or "No Options" provided by 'react-select'
96
- if (!Array.isArray(children))
97
- return _jsx(_Fragment, { children: children });
98
- var childrenLength = children.length;
99
- var paddingSize = isShowCatalogSearchButton ? 0 : PADDING_SIZE;
100
- var listChildrenHeight = childrenLength * MENU_ITEM_HEIGHT + paddingSize;
101
- var listChildrenHeightWithButton = listChildrenHeight + BUTTON_SIZE;
102
- var listChildrenFinalHeight = isShowCatalogSearchButton ? listChildrenHeightWithButton : listChildrenHeight;
103
- var listHeight = listChildrenFinalHeight > MAX_MENU_HEIGHT ? MAX_MENU_HEIGHT : listChildrenFinalHeight;
104
- var itemCount = hasNextPage ? childrenLength + SKELETON_ROWS_COUNT : childrenLength;
105
- var isNextPageSkeletonsVisible = hasNextPage && !isNextPageLoading && !isLoading && !isUserTyping;
106
- var isDataLoadingSkeletonsVisible = isNextPageLoading || isLoading || (isUserTyping && inputValueLength >= MIN_INPUT_SYMBOLS);
107
- var isSkeletonsVisible = isNextPageSkeletonsVisible || isDataLoadingSkeletonsVisible;
108
- var renderSkeletons = function () { return isSkeletonsVisible && _jsx(LoadingMessage, { skeletonRowsCount: SKELETON_ROWS_COUNT }); };
109
- var rowRenderer = function (_a) {
110
- var index = _a.index, style = _a.style;
111
- var isLastRow = index === childrenLength - 1;
112
- var rowRef = isNextPageSkeletonsVisible ? lastElement : null;
113
- return (_jsxs("div", __assign({ ref: rowRef, style: style, role: children[index] ? 'option' : '',
114
- // добавляем класс для последнего элемента, чтобы скрыть разделитель
115
- className: classNames({ 'smartapp-menu-list__item--last': isLastRow }) }, { children: [children[index], isLastRow && renderSkeletons()] }), index));
116
- };
117
- return (_jsx(components.MenuList, __assign({}, props, { children: _jsx(AutoSizer, __assign({ disableHeight: true }, { children: function (_a) {
118
- var width = _a.width;
119
- return (_jsxs("div", __assign({ style: {
120
- display: 'flex',
121
- flexDirection: 'column',
122
- height: isShowCatalogSearchButton ? listHeight + 1 : listHeight,
123
- } }, { children: [_jsx(FixedSizeList, __assign({ ref: virtualizationListRef, height: listHeight, itemCount: itemCount, itemSize: MENU_ITEM_HEIGHT, width: width, overscanCount: LIST_OVER_SCAN_COUNT, onScroll: function (_a) {
124
- var scrollOffset = _a.scrollOffset;
125
- return (scrollFromTop.current = scrollOffset);
126
- }, initialScrollOffset: scrollFromTop.current, className: "smartapp-menu-list", outerElementType: CustomOuterElement }, { children: rowRenderer })), isShowCatalogSearchButton && (_jsx(SearchInCatalogButton, { language: language, width: width, onShowCatalogSearchButtonClick: onShowCatalogSearchButtonClick }))] })));
127
- } })) })));
128
- };
129
- var CustomOuterElement = React.forwardRef(function (props, ref) { return _jsx("div", __assign({ ref: ref }, props, { style: __assign({}, props.style) })); });
130
- CustomOuterElement.displayName = 'CustomOuterElement';
131
- export default MenuList;
132
- //# sourceMappingURL=MenuList.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MenuList.js","source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9B,gBAAgB,EAAE,kBAAkB,gBAEnC,WAAW,IACE,EACf,yBAAyB,IAAI,CAC5B,KAAC,qBAAqB,IAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,8BAA8B,EAAE,8BAA8B,GAAI,CAC5H,KACG,CACP;YA1Be,CA0Bf,IACS,IACQ,CACvB,CAAA;AACH,CAAC,CAAA;AAED,IAAM,kBAAkB,GAAG,KAAK,CAAC,UAAU,CAAsB,UAAC,KAAK,EAAE,GAAG,IAAK,OAAA,uBAAK,GAAG,EAAE,GAAG,IAAM,KAAK,IAAE,KAAK,eAAO,KAAK,CAAC,KAAK,KAAM,EAAvD,CAAuD,CAAC,CAAA;AAEzI,kBAAkB,CAAC,WAAW,GAAG,oBAAoB,CAAA;AAErD,eAAe,QAAQ,CAAA"}
@@ -1,3 +0,0 @@
1
- import '../../../styles/styles.scss';
2
- declare const MultiValueLabel: (props: any) => import("react/jsx-runtime").JSX.Element | null;
3
- export default MultiValueLabel;
@@ -1,97 +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 { useRef, useState } from 'react';
14
- import Popup from 'reactjs-popup';
15
- import { components } from 'react-select';
16
- import { isEqual } from 'lodash';
17
- import classNames from 'classnames';
18
- import Chip from '../../Chip';
19
- import Avatar from '../../Avatar';
20
- import { generateClassNames, isValueEqualToZero, renderUserIcon } from '../../../helpers';
21
- import { COLOR_CHIP, POPUP_ON_EVENT_TYPE } from '../../../constants';
22
- import { AVATAR_SIZES } from '../../Avatar/types';
23
- import '../../../styles/styles.scss';
24
- var POPUP_APPEARANCE_DELAY = 1500;
25
- var POPUP_HIDDEN_CLASSNAME = 'multi-value-info-hidden';
26
- var POPUP_PADDINGS = 24;
27
- var POPUP_MARGINS = 32;
28
- var POPUP_MARGIN_TOP = 1;
29
- var MultiValueLabel = function (props) {
30
- var _a = props.data, value = _a.value, label = _a.label, name = _a.name, email = _a.email, avatar = _a.avatar, platform = _a.platform, isMyContacts = _a.isMyContacts, isPrivateSchedule = _a.isPrivateSchedule, isNotRemovable = _a.isNotRemovable, isChipsCollapsable = _a.isChipsCollapsable, isSelectedChipHasTooltip = _a.isSelectedChipHasTooltip, isError = _a.isError, isLoading = _a.isLoading, isWarning = _a.isWarning, userType = _a.userType, isInputFocused = _a.isInputFocused.current, collapsableChipsCount = _a.collapsableChipsCount.current, lastVisibleChipIndex = _a.lastVisibleChipIndex.current, _b = props.selectProps, isDisabled = _b.isDisabled, selectedUsers = _b.value, onChange = _b.onChange, chipsContextMenuItems = props.chipsContextMenuItems;
31
- var multiValueLabelRef = useRef(null);
32
- var popupRef = useRef(null);
33
- var popupContentRef = useRef(null);
34
- var _c = useState(-1), left = _c[0], setLeft = _c[1];
35
- var _d = useState(-1), top = _d[0], setTop = _d[1];
36
- var _e = useState(null), timeoutId = _e[0], setTimeoutId = _e[1];
37
- var _f = useState(POPUP_HIDDEN_CLASSNAME), hiddenClassName = _f[0], setHiddenClassName = _f[1];
38
- var windowInnerWidth = window.innerWidth;
39
- var popupContentMaxWidth = windowInnerWidth - POPUP_MARGINS - POPUP_PADDINGS;
40
- var noChipsCount = isValueEqualToZero(collapsableChipsCount);
41
- var userIndex = selectedUsers.findIndex(function (_a) {
42
- var selectedUserValue = _a.value, selectedUserLabel = _a.label;
43
- return selectedUserValue === value && selectedUserLabel === label;
44
- });
45
- var handleDelete = function () { return onChange(selectedUsers.filter(function (user) { return !isEqual(user, props.data); })); };
46
- var handleMouseDown = function (event) {
47
- event.preventDefault();
48
- event.stopPropagation();
49
- };
50
- var handleTouchEnd = function (event) { return event.stopPropagation(); };
51
- var renderPopupContent = function () { return (_jsxs("div", __assign({ ref: popupContentRef, className: "smartapp-multi-value-label" }, { children: [_jsx(Avatar, { username: label, avatar: avatar, size: AVATAR_SIZES.size_32, isEye: isPrivateSchedule, outlineDefaultBackground: COLOR_CHIP }), _jsxs("div", __assign({ className: "smartapp-multi-value-label__content" }, { children: [_jsxs("div", __assign({ className: "smartapp-multi-value-label__content--name" }, { children: [_jsx("div", __assign({ className: "smartapp-multi-value-label__content--name__icon" }, { children: renderUserIcon(isMyContacts) })), _jsx("span", { children: name })] })), _jsx("div", __assign({ className: "smartapp-multi-value-label__content--email" }, { children: email }))] }))] }))); };
52
- var handleOpenPopup = function () {
53
- var popupRefCurrent = popupRef.current;
54
- var popupContentRefCurrent = popupContentRef.current;
55
- var multiValueLabelRefCurrent = multiValueLabelRef.current;
56
- if (popupRefCurrent && popupContentRefCurrent && multiValueLabelRefCurrent) {
57
- var _a = multiValueLabelRefCurrent.getBoundingClientRect(), width = _a.width, multiValueLabelLeft = _a.left, top_1 = _a.top, height = _a.height;
58
- var popupContentWidth = popupContentRefCurrent.getBoundingClientRect().width;
59
- var popupContentWidthWithIndents_1 = popupContentWidth + POPUP_PADDINGS + POPUP_MARGINS;
60
- var nextLeft_1 = multiValueLabelLeft + width / 2 - popupContentWidthWithIndents_1 / 2;
61
- var generateNextLeftValue = function () {
62
- if (nextLeft_1 < 0)
63
- return 0;
64
- var popupContentRightmostPosition = nextLeft_1 + popupContentWidthWithIndents_1;
65
- var popupContentOutsideScreen = popupContentRightmostPosition - windowInnerWidth;
66
- return nextLeft_1 - Math.max(popupContentOutsideScreen, 0);
67
- };
68
- var nextLeftValue = generateNextLeftValue();
69
- if (left !== nextLeftValue) {
70
- popupRefCurrent.close();
71
- setLeft(nextLeftValue);
72
- setTop(top_1 + height - POPUP_MARGIN_TOP);
73
- var nextTimeoutId = setTimeout(function () { var _a; return (_a = popupRef.current) === null || _a === void 0 ? void 0 : _a.open(); }, 0);
74
- setTimeoutId(nextTimeoutId);
75
- }
76
- setHiddenClassName('');
77
- }
78
- };
79
- var handleClosePopup = function () { return timeoutId && clearTimeout(timeoutId); };
80
- if (!isChipsCollapsable || isInputFocused || (!isInputFocused && userIndex < lastVisibleChipIndex) || noChipsCount) {
81
- return (_jsx(components.MultiValueLabel, __assign({}, props, { innerProps: { ref: multiValueLabelRef } }, { children: _jsx(Popup, __assign({ ref: popupRef, onOpen: handleOpenPopup, onClose: handleClosePopup, arrow: false, disabled: !name || !email || !isSelectedChipHasTooltip, className: classNames('multi-value-info', hiddenClassName), contentStyle: {
82
- '--multi-value-label-content-left': "".concat(left, "px"),
83
- '--multi-value-label-content-top': "".concat(top, "px"),
84
- '--multi-value-label-content-max-width': "".concat(popupContentMaxWidth, "px"),
85
- }, on: [POPUP_ON_EVENT_TYPE.hover], mouseEnterDelay: POPUP_APPEARANCE_DELAY, trigger: function () { return (_jsx("div", __assign({ onMouseDown: handleMouseDown, onTouchEnd: handleTouchEnd }, { children: _jsx(Chip, { name: label, email: email, isWarning: isWarning, userType: userType, avatar: avatar, isLoading: isLoading, isError: isError, isDisabled: isDisabled || isNotRemovable, isEye: isPrivateSchedule, onDelete: handleDelete, contextMenuItems: chipsContextMenuItems, isMyContacts: isMyContacts, platform: platform }) }))); } }, { children: renderPopupContent() })) })));
86
- }
87
- if (isChipsCollapsable && !isInputFocused && userIndex === lastVisibleChipIndex && !noChipsCount) {
88
- return (_jsxs("div", __assign({ className: generateClassNames({
89
- className: 'multi-value-label-counter',
90
- delimiter: '__',
91
- additionalClassName: platform,
92
- }), onTouchEnd: handleTouchEnd }, { children: ["+", collapsableChipsCount] })));
93
- }
94
- return null;
95
- };
96
- export default MultiValueLabel;
97
- //# sourceMappingURL=MultiValueLabel.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MultiValueLabel.js","sourceRoot":"","sources":["../../../../../src/сomponents/UserDropdown/MultiValueLabel/MultiValueLabel.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAE,MAAM,EAAE,QAAQ,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ptionProps) => import("react/jsx-runtime").JSX.Element;
4
- export default Option;
@@ -1,93 +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 classNames from 'classnames';
17
- import Avatar from '../../Avatar';
18
- import ContactInfo from '../ContactInfo/ContactInfo';
19
- import { generateAvatarIcon, isMobilePlatform, isWebPlatform } from '../../../helpers';
20
- import { ReactComponent as CorporateUserIcon } from '../../../assets/icons/corporate-user.svg';
21
- import { ReactComponent as MyContactUserIcon } from '../../../assets/icons/my-contact-user.svg';
22
- import { ReactComponent as ContactInfoIcon } from '../../../assets/icons/contact-info.svg';
23
- import { POPUP_ON_EVENT_TYPE } from '../../../constants';
24
- import { USER_TYPES } from '../constants';
25
- import { AVATAR_SIZES } from '../../Avatar/types';
26
- import '../../../styles/styles.scss';
27
- var POPUP_APPEARANCE_DELAY = 1000;
28
- var PADDING_LEFT = 8;
29
- var INDENTS = 50;
30
- var POPUP_MARGIN_TOP = 3;
31
- var EMPTY_SPACE = 8;
32
- var POPUP_HIDDEN_CLASSNAME = 'contact-info-hidden';
33
- var POPUP_VERTICAL_POSITION;
34
- (function (POPUP_VERTICAL_POSITION) {
35
- POPUP_VERTICAL_POSITION["bottom"] = "bottom";
36
- POPUP_VERTICAL_POSITION["top"] = "top";
37
- })(POPUP_VERTICAL_POSITION || (POPUP_VERTICAL_POSITION = {}));
38
- var Option = function (props) {
39
- var _a;
40
- 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, _c = _b.userType, userType = _c === void 0 ? USER_TYPES.user : _c;
41
- var ref = useRef(null);
42
- var contactInfoRef = useRef(null);
43
- var popupRef = useRef(null);
44
- var _d = useState(0), left = _d[0], setLeft = _d[1];
45
- var _e = useState(0), maxWidth = _e[0], setMaxWidth = _e[1];
46
- var _f = useState(POPUP_VERTICAL_POSITION.bottom), popupVerticalPosition = _f[0], setPopupVerticalPosition = _f[1];
47
- var _g = useState(POPUP_HIDDEN_CLASSNAME), hiddenClassName = _g[0], setHiddenClassName = _g[1];
48
- var _h = useState(POPUP_MARGIN_TOP), popupMarginTop = _h[0], setPopupMarginTop = _h[1];
49
- var _j = useState(null), timeoutId = _j[0], setTimeoutId = _j[1];
50
- var clientRect = (_a = ref.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
51
- var clientRectLeft = ((clientRect === null || clientRect === void 0 ? void 0 : clientRect.left) || 0) + PADDING_LEFT;
52
- var clientRectWidth = ((clientRect === null || clientRect === void 0 ? void 0 : clientRect.width) || INDENTS) - INDENTS;
53
- var handleContactInfoIconClick = function (event) {
54
- event.stopPropagation();
55
- setIsSearchable(false);
56
- setModalData({ avatar: avatar, name: label, email: email, serverName: serverName, company: company, department: department, companyPosition: companyPosition });
57
- };
58
- var renderUserIcon = function () { return (isMyContacts ? _jsx(MyContactUserIcon, { color: "var(--color-icon-secondary)" }) : _jsx(CorporateUserIcon, {})); };
59
- var renderContactInfoIcon = function () {
60
- var isIconVisible = !isMyContacts && isMobilePlatform(platform);
61
- return isIconVisible && _jsx(ContactInfoIcon, { className: "smartapp-option__container--icon", onClick: handleContactInfoIconClick });
62
- };
63
- var calculatePopupVerticalPosition = function () {
64
- var popupRefCurrent = popupRef.current;
65
- var contactInfoRefCurrent = contactInfoRef.current;
66
- if (popupRefCurrent && contactInfoRefCurrent) {
67
- var _a = contactInfoRefCurrent.getBoundingClientRect(), height = _a.height, y = _a.y;
68
- if (window.innerHeight - y <= height + EMPTY_SPACE) {
69
- popupRefCurrent.close();
70
- setPopupVerticalPosition(POPUP_VERTICAL_POSITION.top);
71
- setPopupMarginTop(-POPUP_MARGIN_TOP);
72
- var nextTimeoutId = setTimeout(function () { var _a; return (_a = popupRef.current) === null || _a === void 0 ? void 0 : _a.open(); }, 0);
73
- setTimeoutId(nextTimeoutId);
74
- }
75
- setHiddenClassName('');
76
- }
77
- };
78
- var handleClosePopup = function () { return timeoutId && clearTimeout(timeoutId); };
79
- useEffect(function () {
80
- setLeft(clientRectLeft);
81
- setMaxWidth(clientRectWidth);
82
- }, [clientRectLeft, clientRectWidth]);
83
- var renderContactInfoPopup = function () { return (_jsx(Popup, __assign({ ref: popupRef, onOpen: calculatePopupVerticalPosition, onClose: handleClosePopup, className: classNames('contact-info', hiddenClassName), position: "".concat(popupVerticalPosition, " center"), contentStyle: {
84
- '--contact-info-content-margin-top': "".concat(popupMarginTop, "px"),
85
- '--contact-info-content-left': "".concat(left, "px"),
86
- '--contact-info-content-max-width': "".concat(maxWidth, "px"),
87
- }, on: [POPUP_ON_EVENT_TYPE.hover], mouseEnterDelay: POPUP_APPEARANCE_DELAY, trigger: function () { return (_jsx("div", { children: _jsx(Avatar, { icon: generateAvatarIcon(userType), username: label, avatar: avatar, size: AVATAR_SIZES.size_32 }) })); } }, { children: _jsx(ContactInfo, { elementRef: contactInfoRef, language: language, serverName: serverName, company: company, department: department, companyPosition: companyPosition }) }))); };
88
- return (_jsx(components.Option, __assign({}, props, { innerRef: function (el) {
89
- ref.current = el;
90
- } }, { children: _jsxs("div", __assign({ className: "smartapp-option" }, { children: [!isMyContacts && isWebPlatform(platform) ? (renderContactInfoPopup()) : (_jsx(Avatar, { username: label, avatar: avatar, size: AVATAR_SIZES.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()] }))] })) })));
91
- };
92
- export default Option;
93
- //# 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,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC1D,OAAO,KAAK,MAAM,eAAe,CAAA;AAEjC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,MAAM,MAAM,cAAc,CAAA;AACjC,OAAO,WAAW,MAAM,4BAA4B,CAAA;AACpD,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AACtF,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,0CAA0C,CAAA;AAC9F,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,2CAA2C,CAAA;AAC/F,OAAO,EAAE,cAAc,IAAI,eAAe,EAAE,MAAM,wCAAwC,CAAA;AAC1F,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACjD,OAAO,6BAA6B,CAAA;AAEpC,IAAM,sBAAsB,GAAG,IAAI,CAAA;AACnC,IAAM,YAAY,GAAG,CAAC,CAAA;AACtB,IAAM,OAAO,GAAG,EAAE,CAAA;AAClB,IAAM,gBAAgB,GAAG,CAAC,CAAA;AAC1B,IAAM,WAAW,GAAG,CAAC,CAAA;AACrB,IAAM,sBAAsB,GAAG,qBAAqB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AE,kBAAkB,CAAC,QAAQ,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,CAAC,OAAO,GAAI,GACvG,CACP,EAJc,CAId,gBAED,KAAC,WAAW,IACV,UAAU,EAAE,cAAc,EAC1B,QAAQ,EAAE,QAAQ,EAClB,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,UAAU,EACtB,eAAe,EAAE,eAAe,GAChC,IACI,CACT,EA/BoC,CA+BpC,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,CAC1C,sBAAsB,EAAE,CACzB,CAAC,CAAC,CAAC,CACF,KAAC,MAAM,IAAC,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,CAAC,OAAO,GAAI,CACxE,EACD,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 { ISearchInCatalogButtonProps } from '../types';
2
- import '../../../styles/styles.scss';
3
- declare const SearchInCatalogButton: ({ width, onShowCatalogSearchButtonClick, language, noOptionText, isOnlyButtonInList, }: ISearchInCatalogButtonProps) => import("react/jsx-runtime").JSX.Element;
4
- export default SearchInCatalogButton;
@@ -1,43 +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 _a;
13
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
- import classNames from 'classnames';
15
- import { LANGUAGES } from '../../../constants';
16
- import { ReactComponent as SearchIcon } from './../../../assets/icons/search.svg';
17
- import '../../../styles/styles.scss';
18
- var BUTTON_SIZE = 48;
19
- var NO_OPTIONS_BUTTON_SIZE = 16;
20
- var SINGLE_BUTTON_SIZE = 22;
21
- var SEARCH_BUTTON_TEXT = (_a = {},
22
- _a[LANGUAGES.ru] = 'Поиск в каталоге',
23
- _a[LANGUAGES.en] = 'Search in catalog',
24
- _a[LANGUAGES.de] = 'Im Katalog suchen',
25
- _a[LANGUAGES.es] = 'Buscar en el directorio',
26
- _a[LANGUAGES.fr] = 'Recherche dans le directoire',
27
- _a[LANGUAGES.ar] = 'البحث في الدليل',
28
- _a[LANGUAGES.ms] = 'Cari dalam katalog',
29
- _a[LANGUAGES.tr] = 'Katalogda ara',
30
- _a[LANGUAGES.id] = 'Cari di katalog',
31
- _a);
32
- var SearchInCatalogButton = function (_a) {
33
- var width = _a.width, onShowCatalogSearchButtonClick = _a.onShowCatalogSearchButtonClick, language = _a.language, noOptionText = _a.noOptionText, _b = _a.isOnlyButtonInList, isOnlyButtonInList = _b === void 0 ? false : _b;
34
- var defaultButtonHeight = isOnlyButtonInList ? SINGLE_BUTTON_SIZE : BUTTON_SIZE;
35
- var height = noOptionText ? NO_OPTIONS_BUTTON_SIZE : defaultButtonHeight;
36
- var generateButtonStyles = function () { return ({ width: width, height: height }); };
37
- return (_jsxs("div", __assign({ className: classNames('search-in-catalog-button', {
38
- 'search-in-catalog-button__single': isOnlyButtonInList,
39
- 'search-in-catalog-button__no-option-text': !!noOptionText,
40
- }), style: generateButtonStyles(), onClick: onShowCatalogSearchButtonClick }, { children: [!noOptionText && _jsx(SearchIcon, {}), _jsx("span", { children: noOptionText || SEARCH_BUTTON_TEXT[language] })] })));
41
- };
42
- export default SearchInCatalogButton;
43
- //# sourceMappingURL=SearchInCatalogButton.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SearchInCatalogButton.js","sourceRoot":"","sources":["../../../../../src/сomponents/UserDropdown/SearchInCatalogButton/SearchInCatalogButton.tsx"],"names":[],"mappings":";;;;;;;;;;;;;AACA,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,SAAS,EAAmB,MAAM,oBAAoB,CAAA;AAE/D,OAAO,EAAE,cAAc,IAAI,UAAU,EAAE,MAAM,oCAAoC,CAAA;AACjF,OAAO,6BAA6B,CAAA;AAEpC,IAAM,WAAW,GAAG,EAAE,CAAA;AACtB,IAAM,sBAAsB,GAAG,EAAE,CAAA;AACjC,IAAM,kBAAkB,GAAG,EAAE,CAAA;AAE7B,IAAM,kBAAkB;IACtB,GAAC,SAAS,CAAC,EAAE,IAAG,kBAAkB;IAClC,GAAC,SAAS,CAAC,EAAE,IAAG,mBAAmB;IACnC,GAAC,SAAS,CAAC,EAAE,IAAG,mBAAmB;IACnC,GAAC,SAAS,CAAC,EAAE,IAAG,yBAAyB;IACzC,GAAC,SAAS,CAAC,EAAE,IAAG,8BAA8B;IAC9C,GAAC,SAAS,CAAC,EAAE,IAAG,iBAAiB;IACjC,GAAC,SAAS,CAAC,EAAE,IAAG,oBAAoB;IACpC,GAAC,SAAS,CAAC,EAAE,IAAG,eAAe;IAC/B,GAAC,SAAS,CAAC,EAAE,IAAG,iBAAiB;OAClC,CAAA;AAED,IAAM,qBAAqB,GAAG,UAAC,EAMD;QAL5B,KAAK,WAAA,EACL,8BAA8B,oCAAA,EAC9B,QAAQ,cAAA,EACR,YAAY,kBAAA,EACZ,0BAA0B,EAA1B,kBAAkB,mBAAG,KAAK,KAAA;IAE1B,IAAM,mBAAmB,GAAG,kBAAkB,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,WAAW,CAAA;IACjF,IAAM,MAAM,GAAG,YAAY,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,mBAAmB,CAAA;IAE1E,IAAM,oBAAoB,GAAG,cAAM,OAAA,CAAC,EAAE,KAAK,OAAA,EAAE,MAAM,QAAA,EAAE,CAAC,EAAnB,CAAmB,CAAA;IAEtD,OAAO,CACL,wBACE,SAAS,EAAE,UAAU,CAAC,0BAA0B,EAAE;YAChD,kCAAkC,EAAE,kBAAkB;YACtD,0CAA0C,EAAE,CAAC,CAAC,YAAY;SAC3D,CAAC,EACF,KAAK,EAAE,oBAAoB,EAAE,EAC7B,OAAO,EAAE,8BAA8B,iBAEtC,CAAC,YAAY,IAAI,KAAC,UAAU,KAAG,EAChC,yBAAO,YAAY,IAAI,kBAAkB,CAAC,QAAQ,CAAC,GAAQ,KACvD,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,qBAAqB,CAAA"}
@@ -1,5 +0,0 @@
1
- import { IUserDropdownProps } from './types';
2
- import '../../styles/styles.scss';
3
- export declare const EMAIL_FIELD = "email";
4
- declare const UserDropdown: ({ platform, isDisabled, isLoading, isChipsVisible, isChipsCollapsable, isSelectedChipHasTooltip, isMenuCloseOnSelect, isFilteringDisabled, hasNextPage, isNextPageLoading, isInputHidden, isBackspaceChipToInput, language, layoutType, externalInputValue, title, mask, placeholder, hint, isShowCatalogSearchButton, onShowCatalogSearchButtonClick, noOptionsMessage, maxMembersCount, fillType, menuPosition, autoFocus, containerClassName, containerStyles, selectedEntries, corporateEntries, myContactsEntries, chipsContextMenuItems, onInputChange, onChange, onMenuOpen, onMenuClose, onLoadNextPage, }: IUserDropdownProps) => import("react/jsx-runtime").JSX.Element;
5
- export default UserDropdown;