@expressms/smartapp-ui 2.8.6 → 2.8.7-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 (446) hide show
  1. package/package.json +63 -59
  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/more.svg +0 -3
  28. package/build/main/assets/icons/my-contact-user.svg +0 -10
  29. package/build/main/assets/icons/notification-close.svg +0 -3
  30. package/build/main/assets/icons/notification-error.svg +0 -3
  31. package/build/main/assets/icons/notification-failure.svg +0 -3
  32. package/build/main/assets/icons/notification-info.svg +0 -5
  33. package/build/main/assets/icons/notification-success.svg +0 -4
  34. package/build/main/assets/icons/notification-warning.svg +0 -5
  35. package/build/main/assets/icons/order.svg +0 -6
  36. package/build/main/assets/icons/plus.svg +0 -4
  37. package/build/main/assets/icons/private.svg +0 -12
  38. package/build/main/assets/icons/refresh.svg +0 -3
  39. package/build/main/assets/icons/story-loader.svg +0 -3
  40. package/build/main/assets/icons/tick.svg +0 -10
  41. package/build/main/assets/icons/trash.svg +0 -3
  42. package/build/main/assets/icons/unread-mails.svg +0 -4
  43. package/build/main/assets/storybook/index.d.ts +0 -21
  44. package/build/main/assets/storybook/index.js +0 -22
  45. package/build/main/assets/storybook/index.js.map +0 -1
  46. package/build/main/constants/constants.d.ts +0 -150
  47. package/build/main/constants/constants.js +0 -170
  48. package/build/main/constants/constants.js.map +0 -1
  49. package/build/main/constants/index.d.ts +0 -2
  50. package/build/main/constants/index.js +0 -3
  51. package/build/main/constants/index.js.map +0 -1
  52. package/build/main/constants/types.d.ts +0 -24
  53. package/build/main/constants/types.js +0 -2
  54. package/build/main/constants/types.js.map +0 -1
  55. package/build/main/helpers/index.d.ts +0 -22
  56. package/build/main/helpers/index.js +0 -89
  57. package/build/main/helpers/index.js.map +0 -1
  58. package/build/main/hooks/useModal.d.ts +0 -21
  59. package/build/main/hooks/useModal.js +0 -60
  60. package/build/main/hooks/useModal.js.map +0 -1
  61. package/build/main/index.d.ts +0 -3
  62. package/build/main/index.js +0 -4
  63. package/build/main/index.js.map +0 -1
  64. package/build/main/styles/index.d.ts +0 -1
  65. package/build/main/styles/index.js +0 -2
  66. package/build/main/styles/index.js.map +0 -1
  67. package/build/main/styles/main.js +0 -0
  68. package/build/main/styles/styles.scss +0 -14
  69. package/build/main//321/201omponents/ActionModal/ActionModal.d.ts +0 -4
  70. package/build/main//321/201omponents/ActionModal/ActionModal.js +0 -55
  71. package/build/main//321/201omponents/ActionModal/ActionModal.js.map +0 -1
  72. package/build/main//321/201omponents/ActionModal/index.d.ts +0 -1
  73. package/build/main//321/201omponents/ActionModal/index.js +0 -2
  74. package/build/main//321/201omponents/ActionModal/index.js.map +0 -1
  75. package/build/main//321/201omponents/ActionModal/types.d.ts +0 -24
  76. package/build/main//321/201omponents/ActionModal/types.js +0 -2
  77. package/build/main//321/201omponents/ActionModal/types.js.map +0 -1
  78. package/build/main//321/201omponents/AttachedFile/AttachedFile.d.ts +0 -8
  79. package/build/main//321/201omponents/AttachedFile/AttachedFile.js +0 -60
  80. package/build/main//321/201omponents/AttachedFile/AttachedFile.js.map +0 -1
  81. package/build/main//321/201omponents/AttachedFile/index.d.ts +0 -1
  82. package/build/main//321/201omponents/AttachedFile/index.js +0 -2
  83. package/build/main//321/201omponents/AttachedFile/index.js.map +0 -1
  84. package/build/main//321/201omponents/AttachedFile/types.d.ts +0 -25
  85. package/build/main//321/201omponents/AttachedFile/types.js +0 -2
  86. package/build/main//321/201omponents/AttachedFile/types.js.map +0 -1
  87. package/build/main//321/201omponents/Avatar/Avatar.d.ts +0 -4
  88. package/build/main//321/201omponents/Avatar/Avatar.js +0 -134
  89. package/build/main//321/201omponents/Avatar/Avatar.js.map +0 -1
  90. package/build/main//321/201omponents/Avatar/index.d.ts +0 -1
  91. package/build/main//321/201omponents/Avatar/index.js +0 -2
  92. package/build/main//321/201omponents/Avatar/index.js.map +0 -1
  93. package/build/main//321/201omponents/Avatar/types.d.ts +0 -57
  94. package/build/main//321/201omponents/Avatar/types.js +0 -28
  95. package/build/main//321/201omponents/Avatar/types.js.map +0 -1
  96. package/build/main//321/201omponents/Button/Button.d.ts +0 -4
  97. package/build/main//321/201omponents/Button/Button.js +0 -57
  98. package/build/main//321/201omponents/Button/Button.js.map +0 -1
  99. package/build/main//321/201omponents/Button/index.d.ts +0 -1
  100. package/build/main//321/201omponents/Button/index.js +0 -2
  101. package/build/main//321/201omponents/Button/index.js.map +0 -1
  102. package/build/main//321/201omponents/Button/types.d.ts +0 -22
  103. package/build/main//321/201omponents/Button/types.js +0 -11
  104. package/build/main//321/201omponents/Button/types.js.map +0 -1
  105. package/build/main//321/201omponents/CachedImage/CachedImage.d.ts +0 -4
  106. package/build/main//321/201omponents/CachedImage/CachedImage.js +0 -59
  107. package/build/main//321/201omponents/CachedImage/CachedImage.js.map +0 -1
  108. package/build/main//321/201omponents/CachedImage/helpers.d.ts +0 -3
  109. package/build/main//321/201omponents/CachedImage/helpers.js +0 -40
  110. package/build/main//321/201omponents/CachedImage/helpers.js.map +0 -1
  111. package/build/main//321/201omponents/CachedImage/index.d.ts +0 -1
  112. package/build/main//321/201omponents/CachedImage/index.js +0 -2
  113. package/build/main//321/201omponents/CachedImage/index.js.map +0 -1
  114. package/build/main//321/201omponents/CachedImage/types.d.ts +0 -10
  115. package/build/main//321/201omponents/CachedImage/types.js +0 -2
  116. package/build/main//321/201omponents/CachedImage/types.js.map +0 -1
  117. package/build/main//321/201omponents/Calendar/Calendar.d.ts +0 -4
  118. package/build/main//321/201omponents/Calendar/Calendar.js +0 -95
  119. package/build/main//321/201omponents/Calendar/Calendar.js.map +0 -1
  120. package/build/main//321/201omponents/Calendar/index.d.ts +0 -1
  121. package/build/main//321/201omponents/Calendar/index.js +0 -2
  122. package/build/main//321/201omponents/Calendar/index.js.map +0 -1
  123. package/build/main//321/201omponents/Calendar/types.d.ts +0 -13
  124. package/build/main//321/201omponents/Calendar/types.js +0 -2
  125. package/build/main//321/201omponents/Calendar/types.js.map +0 -1
  126. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.d.ts +0 -3
  127. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js +0 -45
  128. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js.map +0 -1
  129. package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.d.ts +0 -4
  130. package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.js +0 -71
  131. package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.js.map +0 -1
  132. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.d.ts +0 -3
  133. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js +0 -40
  134. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js.map +0 -1
  135. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.d.ts +0 -3
  136. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js +0 -62
  137. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js.map +0 -1
  138. package/build/main//321/201omponents/Charts/colors.d.ts +0 -3
  139. package/build/main//321/201omponents/Charts/colors.js +0 -4
  140. package/build/main//321/201omponents/Charts/colors.js.map +0 -1
  141. package/build/main//321/201omponents/Charts/constants.d.ts +0 -46
  142. package/build/main//321/201omponents/Charts/constants.js +0 -43
  143. package/build/main//321/201omponents/Charts/constants.js.map +0 -1
  144. package/build/main//321/201omponents/Charts/helpers.d.ts +0 -17
  145. package/build/main//321/201omponents/Charts/helpers.js +0 -73
  146. package/build/main//321/201omponents/Charts/helpers.js.map +0 -1
  147. package/build/main//321/201omponents/Charts/index.d.ts +0 -3
  148. package/build/main//321/201omponents/Charts/index.js +0 -4
  149. package/build/main//321/201omponents/Charts/index.js.map +0 -1
  150. package/build/main//321/201omponents/Charts/types.d.ts +0 -88
  151. package/build/main//321/201omponents/Charts/types.js +0 -2
  152. package/build/main//321/201omponents/Charts/types.js.map +0 -1
  153. package/build/main//321/201omponents/Charts/useEvents.d.ts +0 -5
  154. package/build/main//321/201omponents/Charts/useEvents.js +0 -45
  155. package/build/main//321/201omponents/Charts/useEvents.js.map +0 -1
  156. package/build/main//321/201omponents/Charts/usePieEvents.d.ts +0 -6
  157. package/build/main//321/201omponents/Charts/usePieEvents.js +0 -57
  158. package/build/main//321/201omponents/Charts/usePieEvents.js.map +0 -1
  159. package/build/main//321/201omponents/Checkbox/Checkbox.d.ts +0 -4
  160. package/build/main//321/201omponents/Checkbox/Checkbox.js +0 -38
  161. package/build/main//321/201omponents/Checkbox/Checkbox.js.map +0 -1
  162. package/build/main//321/201omponents/Checkbox/index.d.ts +0 -1
  163. package/build/main//321/201omponents/Checkbox/index.js +0 -2
  164. package/build/main//321/201omponents/Checkbox/index.js.map +0 -1
  165. package/build/main//321/201omponents/Checkbox/types.d.ts +0 -12
  166. package/build/main//321/201omponents/Checkbox/types.js +0 -2
  167. package/build/main//321/201omponents/Checkbox/types.js.map +0 -1
  168. package/build/main//321/201omponents/Chip/Chip.d.ts +0 -4
  169. package/build/main//321/201omponents/Chip/Chip.js +0 -35
  170. package/build/main//321/201omponents/Chip/Chip.js.map +0 -1
  171. package/build/main//321/201omponents/Chip/index.d.ts +0 -1
  172. package/build/main//321/201omponents/Chip/index.js +0 -2
  173. package/build/main//321/201omponents/Chip/index.js.map +0 -1
  174. package/build/main//321/201omponents/Chip/types.d.ts +0 -13
  175. package/build/main//321/201omponents/Chip/types.js +0 -2
  176. package/build/main//321/201omponents/Chip/types.js.map +0 -1
  177. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.d.ts +0 -4
  178. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js +0 -70
  179. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js.map +0 -1
  180. package/build/main//321/201omponents/ConfirmationModal/index.d.ts +0 -1
  181. package/build/main//321/201omponents/ConfirmationModal/index.js +0 -2
  182. package/build/main//321/201omponents/ConfirmationModal/index.js.map +0 -1
  183. package/build/main//321/201omponents/ConfirmationModal/types.d.ts +0 -28
  184. package/build/main//321/201omponents/ConfirmationModal/types.js +0 -2
  185. package/build/main//321/201omponents/ConfirmationModal/types.js.map +0 -1
  186. package/build/main//321/201omponents/ContextMenu/ContextMenu.d.ts +0 -4
  187. package/build/main//321/201omponents/ContextMenu/ContextMenu.js +0 -82
  188. package/build/main//321/201omponents/ContextMenu/ContextMenu.js.map +0 -1
  189. package/build/main//321/201omponents/ContextMenu/index.d.ts +0 -1
  190. package/build/main//321/201omponents/ContextMenu/index.js +0 -2
  191. package/build/main//321/201omponents/ContextMenu/index.js.map +0 -1
  192. package/build/main//321/201omponents/ContextMenu/types.d.ts +0 -32
  193. package/build/main//321/201omponents/ContextMenu/types.js +0 -2
  194. package/build/main//321/201omponents/ContextMenu/types.js.map +0 -1
  195. package/build/main//321/201omponents/CustomSelect/CustomSelect.d.ts +0 -12
  196. package/build/main//321/201omponents/CustomSelect/CustomSelect.js +0 -243
  197. package/build/main//321/201omponents/CustomSelect/CustomSelect.js.map +0 -1
  198. package/build/main//321/201omponents/CustomSelect/index.d.ts +0 -1
  199. package/build/main//321/201omponents/CustomSelect/index.js +0 -2
  200. package/build/main//321/201omponents/CustomSelect/index.js.map +0 -1
  201. package/build/main//321/201omponents/CustomSelect/selectStyles.d.ts +0 -16
  202. package/build/main//321/201omponents/CustomSelect/selectStyles.js +0 -67
  203. package/build/main//321/201omponents/CustomSelect/selectStyles.js.map +0 -1
  204. package/build/main//321/201omponents/CustomSelect/types.d.ts +0 -64
  205. package/build/main//321/201omponents/CustomSelect/types.js +0 -2
  206. package/build/main//321/201omponents/CustomSelect/types.js.map +0 -1
  207. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.d.ts +0 -4
  208. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js +0 -57
  209. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js.map +0 -1
  210. package/build/main//321/201omponents/CustomSelectProfiles/index.d.ts +0 -1
  211. package/build/main//321/201omponents/CustomSelectProfiles/index.js +0 -2
  212. package/build/main//321/201omponents/CustomSelectProfiles/index.js.map +0 -1
  213. package/build/main//321/201omponents/CustomSelectProfiles/types.d.ts +0 -12
  214. package/build/main//321/201omponents/CustomSelectProfiles/types.js +0 -2
  215. package/build/main//321/201omponents/CustomSelectProfiles/types.js.map +0 -1
  216. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.d.ts +0 -4
  217. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js +0 -57
  218. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js.map +0 -1
  219. package/build/main//321/201omponents/DragAndDrop/index.d.ts +0 -1
  220. package/build/main//321/201omponents/DragAndDrop/index.js +0 -2
  221. package/build/main//321/201omponents/DragAndDrop/index.js.map +0 -1
  222. package/build/main//321/201omponents/DragAndDrop/types.d.ts +0 -24
  223. package/build/main//321/201omponents/DragAndDrop/types.js +0 -2
  224. package/build/main//321/201omponents/DragAndDrop/types.js.map +0 -1
  225. package/build/main//321/201omponents/DraggablePopup/DraggablePopup.d.ts +0 -4
  226. package/build/main//321/201omponents/DraggablePopup/DraggablePopup.js +0 -127
  227. package/build/main//321/201omponents/DraggablePopup/DraggablePopup.js.map +0 -1
  228. package/build/main//321/201omponents/DraggablePopup/index.d.ts +0 -1
  229. package/build/main//321/201omponents/DraggablePopup/index.js +0 -2
  230. package/build/main//321/201omponents/DraggablePopup/index.js.map +0 -1
  231. package/build/main//321/201omponents/DraggablePopup/types.d.ts +0 -61
  232. package/build/main//321/201omponents/DraggablePopup/types.js +0 -2
  233. package/build/main//321/201omponents/DraggablePopup/types.js.map +0 -1
  234. package/build/main//321/201omponents/Error/Error.d.ts +0 -4
  235. package/build/main//321/201omponents/Error/Error.js +0 -23
  236. package/build/main//321/201omponents/Error/Error.js.map +0 -1
  237. package/build/main//321/201omponents/Error/index.d.ts +0 -1
  238. package/build/main//321/201omponents/Error/index.js +0 -2
  239. package/build/main//321/201omponents/Error/index.js.map +0 -1
  240. package/build/main//321/201omponents/Error/types.d.ts +0 -10
  241. package/build/main//321/201omponents/Error/types.js +0 -2
  242. package/build/main//321/201omponents/Error/types.js.map +0 -1
  243. package/build/main//321/201omponents/Flex/Flex.d.ts +0 -2
  244. package/build/main//321/201omponents/Flex/Flex.js +0 -49
  245. package/build/main//321/201omponents/Flex/Flex.js.map +0 -1
  246. package/build/main//321/201omponents/Flex/HFlex/HFlex.d.ts +0 -5
  247. package/build/main//321/201omponents/Flex/HFlex/HFlex.js +0 -16
  248. package/build/main//321/201omponents/Flex/HFlex/HFlex.js.map +0 -1
  249. package/build/main//321/201omponents/Flex/HFlex/index.d.ts +0 -1
  250. package/build/main//321/201omponents/Flex/HFlex/index.js +0 -2
  251. package/build/main//321/201omponents/Flex/HFlex/index.js.map +0 -1
  252. package/build/main//321/201omponents/Flex/VFlex/VFlex.d.ts +0 -5
  253. package/build/main//321/201omponents/Flex/VFlex/VFlex.js +0 -16
  254. package/build/main//321/201omponents/Flex/VFlex/VFlex.js.map +0 -1
  255. package/build/main//321/201omponents/Flex/VFlex/index.d.ts +0 -1
  256. package/build/main//321/201omponents/Flex/VFlex/index.js +0 -2
  257. package/build/main//321/201omponents/Flex/VFlex/index.js.map +0 -1
  258. package/build/main//321/201omponents/Flex/index.d.ts +0 -3
  259. package/build/main//321/201omponents/Flex/index.js +0 -4
  260. package/build/main//321/201omponents/Flex/index.js.map +0 -1
  261. package/build/main//321/201omponents/Flex/types.d.ts +0 -15
  262. package/build/main//321/201omponents/Flex/types.js +0 -2
  263. package/build/main//321/201omponents/Flex/types.js.map +0 -1
  264. package/build/main//321/201omponents/Header/Header.d.ts +0 -5
  265. package/build/main//321/201omponents/Header/Header.js +0 -124
  266. package/build/main//321/201omponents/Header/Header.js.map +0 -1
  267. package/build/main//321/201omponents/Header/index.d.ts +0 -1
  268. package/build/main//321/201omponents/Header/index.js +0 -2
  269. package/build/main//321/201omponents/Header/index.js.map +0 -1
  270. package/build/main//321/201omponents/Header/types.d.ts +0 -46
  271. package/build/main//321/201omponents/Header/types.js +0 -2
  272. package/build/main//321/201omponents/Header/types.js.map +0 -1
  273. package/build/main//321/201omponents/Input/Input.d.ts +0 -4
  274. package/build/main//321/201omponents/Input/Input.js +0 -207
  275. package/build/main//321/201omponents/Input/Input.js.map +0 -1
  276. package/build/main//321/201omponents/Input/index.d.ts +0 -1
  277. package/build/main//321/201omponents/Input/index.js +0 -2
  278. package/build/main//321/201omponents/Input/index.js.map +0 -1
  279. package/build/main//321/201omponents/Input/types.d.ts +0 -29
  280. package/build/main//321/201omponents/Input/types.js +0 -2
  281. package/build/main//321/201omponents/Input/types.js.map +0 -1
  282. package/build/main//321/201omponents/ListItem/ListItem.d.ts +0 -23
  283. package/build/main//321/201omponents/ListItem/ListItem.js +0 -208
  284. package/build/main//321/201omponents/ListItem/ListItem.js.map +0 -1
  285. package/build/main//321/201omponents/ListItem/index.d.ts +0 -1
  286. package/build/main//321/201omponents/ListItem/index.js +0 -2
  287. package/build/main//321/201omponents/ListItem/index.js.map +0 -1
  288. package/build/main//321/201omponents/ListItem/types.d.ts +0 -42
  289. package/build/main//321/201omponents/ListItem/types.js +0 -2
  290. package/build/main//321/201omponents/ListItem/types.js.map +0 -1
  291. package/build/main//321/201omponents/Loader/Loader.d.ts +0 -4
  292. package/build/main//321/201omponents/Loader/Loader.js +0 -44
  293. package/build/main//321/201omponents/Loader/Loader.js.map +0 -1
  294. package/build/main//321/201omponents/Loader/index.d.ts +0 -1
  295. package/build/main//321/201omponents/Loader/index.js +0 -2
  296. package/build/main//321/201omponents/Loader/index.js.map +0 -1
  297. package/build/main//321/201omponents/Loader/types.d.ts +0 -18
  298. package/build/main//321/201omponents/Loader/types.js +0 -2
  299. package/build/main//321/201omponents/Loader/types.js.map +0 -1
  300. package/build/main//321/201omponents/Modal/Modal.d.ts +0 -4
  301. package/build/main//321/201omponents/Modal/Modal.js +0 -125
  302. package/build/main//321/201omponents/Modal/Modal.js.map +0 -1
  303. package/build/main//321/201omponents/Modal/index.d.ts +0 -1
  304. package/build/main//321/201omponents/Modal/index.js +0 -2
  305. package/build/main//321/201omponents/Modal/index.js.map +0 -1
  306. package/build/main//321/201omponents/Modal/types.d.ts +0 -32
  307. package/build/main//321/201omponents/Modal/types.js +0 -2
  308. package/build/main//321/201omponents/Modal/types.js.map +0 -1
  309. package/build/main//321/201omponents/Notification/Notification.d.ts +0 -8
  310. package/build/main//321/201omponents/Notification/Notification.js +0 -217
  311. package/build/main//321/201omponents/Notification/Notification.js.map +0 -1
  312. package/build/main//321/201omponents/Notification/index.d.ts +0 -1
  313. package/build/main//321/201omponents/Notification/index.js +0 -2
  314. package/build/main//321/201omponents/Notification/index.js.map +0 -1
  315. package/build/main//321/201omponents/Notification/types.d.ts +0 -45
  316. package/build/main//321/201omponents/Notification/types.js +0 -2
  317. package/build/main//321/201omponents/Notification/types.js.map +0 -1
  318. package/build/main//321/201omponents/Profile/Profile.d.ts +0 -4
  319. package/build/main//321/201omponents/Profile/Profile.js +0 -42
  320. package/build/main//321/201omponents/Profile/Profile.js.map +0 -1
  321. package/build/main//321/201omponents/Profile/index.d.ts +0 -1
  322. package/build/main//321/201omponents/Profile/index.js +0 -2
  323. package/build/main//321/201omponents/Profile/index.js.map +0 -1
  324. package/build/main//321/201omponents/Profile/types.d.ts +0 -14
  325. package/build/main//321/201omponents/Profile/types.js +0 -2
  326. package/build/main//321/201omponents/Profile/types.js.map +0 -1
  327. package/build/main//321/201omponents/ProgressBar/ProgressBar.d.ts +0 -4
  328. package/build/main//321/201omponents/ProgressBar/ProgressBar.js +0 -66
  329. package/build/main//321/201omponents/ProgressBar/ProgressBar.js.map +0 -1
  330. package/build/main//321/201omponents/ProgressBar/index.d.ts +0 -1
  331. package/build/main//321/201omponents/ProgressBar/index.js +0 -2
  332. package/build/main//321/201omponents/ProgressBar/index.js.map +0 -1
  333. package/build/main//321/201omponents/ProgressBar/types.d.ts +0 -7
  334. package/build/main//321/201omponents/ProgressBar/types.js +0 -2
  335. package/build/main//321/201omponents/ProgressBar/types.js.map +0 -1
  336. package/build/main//321/201omponents/RadioButton/RadioButton.d.ts +0 -4
  337. package/build/main//321/201omponents/RadioButton/RadioButton.js +0 -37
  338. package/build/main//321/201omponents/RadioButton/RadioButton.js.map +0 -1
  339. package/build/main//321/201omponents/RadioButton/index.d.ts +0 -1
  340. package/build/main//321/201omponents/RadioButton/index.js +0 -2
  341. package/build/main//321/201omponents/RadioButton/index.js.map +0 -1
  342. package/build/main//321/201omponents/RadioButton/types.d.ts +0 -12
  343. package/build/main//321/201omponents/RadioButton/types.js +0 -2
  344. package/build/main//321/201omponents/RadioButton/types.js.map +0 -1
  345. package/build/main//321/201omponents/ScrollBar/ScrollBar.d.ts +0 -5
  346. package/build/main//321/201omponents/ScrollBar/ScrollBar.js +0 -63
  347. package/build/main//321/201omponents/ScrollBar/ScrollBar.js.map +0 -1
  348. package/build/main//321/201omponents/ScrollBar/index.d.ts +0 -1
  349. package/build/main//321/201omponents/ScrollBar/index.js +0 -2
  350. package/build/main//321/201omponents/ScrollBar/index.js.map +0 -1
  351. package/build/main//321/201omponents/ScrollBar/types.d.ts +0 -20
  352. package/build/main//321/201omponents/ScrollBar/types.js +0 -2
  353. package/build/main//321/201omponents/ScrollBar/types.js.map +0 -1
  354. package/build/main//321/201omponents/Skeleton/Skeleton.d.ts +0 -3
  355. package/build/main//321/201omponents/Skeleton/Skeleton.js +0 -58
  356. package/build/main//321/201omponents/Skeleton/Skeleton.js.map +0 -1
  357. package/build/main//321/201omponents/Skeleton/index.d.ts +0 -1
  358. package/build/main//321/201omponents/Skeleton/index.js +0 -2
  359. package/build/main//321/201omponents/Skeleton/index.js.map +0 -1
  360. package/build/main//321/201omponents/Skeleton/types.d.ts +0 -17
  361. package/build/main//321/201omponents/Skeleton/types.js +0 -2
  362. package/build/main//321/201omponents/Skeleton/types.js.map +0 -1
  363. package/build/main//321/201omponents/Stories/Stories.d.ts +0 -4
  364. package/build/main//321/201omponents/Stories/Stories.js +0 -300
  365. package/build/main//321/201omponents/Stories/Stories.js.map +0 -1
  366. package/build/main//321/201omponents/Stories/index.d.ts +0 -1
  367. package/build/main//321/201omponents/Stories/index.js +0 -2
  368. package/build/main//321/201omponents/Stories/index.js.map +0 -1
  369. package/build/main//321/201omponents/Stories/types.d.ts +0 -70
  370. package/build/main//321/201omponents/Stories/types.js +0 -16
  371. package/build/main//321/201omponents/Stories/types.js.map +0 -1
  372. package/build/main//321/201omponents/Switcher/Switcher.d.ts +0 -4
  373. package/build/main//321/201omponents/Switcher/Switcher.js +0 -34
  374. package/build/main//321/201omponents/Switcher/Switcher.js.map +0 -1
  375. package/build/main//321/201omponents/Switcher/index.d.ts +0 -1
  376. package/build/main//321/201omponents/Switcher/index.js +0 -2
  377. package/build/main//321/201omponents/Switcher/index.js.map +0 -1
  378. package/build/main//321/201omponents/Switcher/types.d.ts +0 -8
  379. package/build/main//321/201omponents/Switcher/types.js +0 -2
  380. package/build/main//321/201omponents/Switcher/types.js.map +0 -1
  381. package/build/main//321/201omponents/SyncLoader/SyncLoader.d.ts +0 -5
  382. package/build/main//321/201omponents/SyncLoader/SyncLoader.js +0 -65
  383. package/build/main//321/201omponents/SyncLoader/SyncLoader.js.map +0 -1
  384. package/build/main//321/201omponents/SyncLoader/index.d.ts +0 -1
  385. package/build/main//321/201omponents/SyncLoader/index.js +0 -2
  386. package/build/main//321/201omponents/SyncLoader/index.js.map +0 -1
  387. package/build/main//321/201omponents/SyncLoader/types.d.ts +0 -9
  388. package/build/main//321/201omponents/SyncLoader/types.js +0 -2
  389. package/build/main//321/201omponents/SyncLoader/types.js.map +0 -1
  390. package/build/main//321/201omponents/Textarea/Textarea.d.ts +0 -4
  391. package/build/main//321/201omponents/Textarea/Textarea.js +0 -96
  392. package/build/main//321/201omponents/Textarea/Textarea.js.map +0 -1
  393. package/build/main//321/201omponents/Textarea/index.d.ts +0 -1
  394. package/build/main//321/201omponents/Textarea/index.js +0 -2
  395. package/build/main//321/201omponents/Textarea/index.js.map +0 -1
  396. package/build/main//321/201omponents/Textarea/types.d.ts +0 -12
  397. package/build/main//321/201omponents/Textarea/types.js +0 -2
  398. package/build/main//321/201omponents/Textarea/types.js.map +0 -1
  399. package/build/main//321/201omponents/Toggle/Toggle.d.ts +0 -4
  400. package/build/main//321/201omponents/Toggle/Toggle.js +0 -38
  401. package/build/main//321/201omponents/Toggle/Toggle.js.map +0 -1
  402. package/build/main//321/201omponents/Toggle/index.d.ts +0 -1
  403. package/build/main//321/201omponents/Toggle/index.js +0 -2
  404. package/build/main//321/201omponents/Toggle/index.js.map +0 -1
  405. package/build/main//321/201omponents/Toggle/types.d.ts +0 -12
  406. package/build/main//321/201omponents/Toggle/types.js +0 -2
  407. package/build/main//321/201omponents/Toggle/types.js.map +0 -1
  408. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.d.ts +0 -4
  409. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js +0 -31
  410. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js.map +0 -1
  411. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.d.ts +0 -4
  412. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js +0 -76
  413. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js.map +0 -1
  414. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.d.ts +0 -4
  415. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js +0 -23
  416. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js.map +0 -1
  417. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.d.ts +0 -4
  418. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js +0 -81
  419. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js.map +0 -1
  420. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.d.ts +0 -3
  421. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js +0 -40
  422. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js.map +0 -1
  423. package/build/main//321/201omponents/UserDropdown/Option/Option.d.ts +0 -4
  424. package/build/main//321/201omponents/UserDropdown/Option/Option.js +0 -91
  425. package/build/main//321/201omponents/UserDropdown/Option/Option.js.map +0 -1
  426. package/build/main//321/201omponents/UserDropdown/UserDropdown.d.ts +0 -5
  427. package/build/main//321/201omponents/UserDropdown/UserDropdown.js +0 -434
  428. package/build/main//321/201omponents/UserDropdown/UserDropdown.js.map +0 -1
  429. package/build/main//321/201omponents/UserDropdown/helpers.d.ts +0 -94
  430. package/build/main//321/201omponents/UserDropdown/helpers.js +0 -93
  431. package/build/main//321/201omponents/UserDropdown/helpers.js.map +0 -1
  432. package/build/main//321/201omponents/UserDropdown/index.d.ts +0 -1
  433. package/build/main//321/201omponents/UserDropdown/index.js +0 -2
  434. package/build/main//321/201omponents/UserDropdown/index.js.map +0 -1
  435. package/build/main//321/201omponents/UserDropdown/selectStyles.d.ts +0 -15
  436. package/build/main//321/201omponents/UserDropdown/selectStyles.js +0 -75
  437. package/build/main//321/201omponents/UserDropdown/selectStyles.js.map +0 -1
  438. package/build/main//321/201omponents/UserDropdown/types.d.ts +0 -194
  439. package/build/main//321/201omponents/UserDropdown/types.js +0 -2
  440. package/build/main//321/201omponents/UserDropdown/types.js.map +0 -1
  441. package/build/main//321/201omponents/index.d.ts +0 -34
  442. package/build/main//321/201omponents/index.js +0 -35
  443. package/build/main//321/201omponents/index.js.map +0 -1
  444. package/build/main//321/201omponents/types.d.ts +0 -2
  445. package/build/main//321/201omponents/types.js +0 -2
  446. package/build/main//321/201omponents/types.js.map +0 -1
@@ -1,94 +0,0 @@
1
- /// <reference types="react" />
2
- import { TCorporateEntity, TGenerateContactsOption, TGenerateContactsOptionsToSelect, TGenerateCorporateOption, TGenerateCorporateOptionsToSelect, TGenerateEnteredByUserOption } from './types';
3
- export declare const generateCorporateOption: ({ option: { name, avatar, email, contacts, serverName, company, department, companyPosition, isPrivateSchedule }, ...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
- contactType: string;
18
- }[];
19
- serverName: string | null;
20
- company: string | null;
21
- department: string | null;
22
- companyPosition: string | null;
23
- isPrivateSchedule: boolean | undefined;
24
- };
25
- export declare const generateCorporateOptionsToSelect: ({ language, options, setIsSearchable, setModalData, ...remainingFields }: TGenerateCorporateOptionsToSelect) => {
26
- language: string;
27
- setIsSearchable: (isSearchable: boolean) => void;
28
- setModalData: (modalData: import("./types").TModalData | null) => void;
29
- platform: string;
30
- layoutType: string;
31
- isChipsCollapsable: boolean;
32
- isInputFocused: import("react").RefObject<boolean>;
33
- selectRef: import("react").RefObject<any>;
34
- value: string;
35
- label: string;
36
- name: string;
37
- avatar: string | null;
38
- email: string;
39
- contacts: {
40
- userHuid: string;
41
- contact: string;
42
- contactType: string;
43
- }[];
44
- serverName: string | null;
45
- company: string | null;
46
- department: string | null;
47
- companyPosition: string | null;
48
- isPrivateSchedule: boolean | undefined;
49
- }[];
50
- export declare const generateContactsOption: ({ option: { name, avatar, email, isPrivateSchedule }, ...remainingFields }: TGenerateContactsOption) => {
51
- platform: string;
52
- layoutType: string;
53
- isChipsCollapsable: boolean;
54
- isInputFocused: import("react").RefObject<boolean>;
55
- selectRef: import("react").RefObject<any>;
56
- value: string;
57
- label: string;
58
- name: string | null;
59
- avatar: string | null;
60
- email: string;
61
- isMyContacts: boolean;
62
- isPrivateSchedule: boolean | undefined;
63
- };
64
- export declare const generateContactsOptionsToSelect: ({ options, ...remainingFields }: TGenerateContactsOptionsToSelect) => {
65
- platform: string;
66
- layoutType: string;
67
- isChipsCollapsable: boolean;
68
- isInputFocused: import("react").RefObject<boolean>;
69
- selectRef: import("react").RefObject<any>;
70
- value: string;
71
- label: string;
72
- name: string | null;
73
- avatar: string | null;
74
- email: string;
75
- isMyContacts: boolean;
76
- isPrivateSchedule: boolean | undefined;
77
- }[];
78
- export declare const generateEnteredByUserOption: ({ email, ...remainingFields }: TGenerateEnteredByUserOption) => {
79
- platform: string;
80
- layoutType: string;
81
- isChipsCollapsable: boolean;
82
- isInputFocused: import("react").RefObject<boolean>;
83
- selectRef: import("react").RefObject<any>;
84
- isError?: boolean | undefined;
85
- value: string;
86
- label: string;
87
- email: string;
88
- isEnteredByUser: boolean;
89
- };
90
- export declare const IndicatorSeparator: () => null;
91
- export declare const DropdownIndicator: () => null;
92
- export declare const MultiValueRemove: () => null;
93
- export declare const LoadingIndicator: () => null;
94
- export declare const sortCorporateContacts: (contacts: TCorporateEntity[], query: string) => TCorporateEntity[];
@@ -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
- var __rest = (this && this.__rest) || function (s, e) {
13
- var t = {};
14
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
- t[p] = s[p];
16
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
- t[p[i]] = s[p[i]];
20
- }
21
- return t;
22
- };
23
- import { transliterate as tr } from 'transliteration';
24
- import ru from 'convert-layout/ru';
25
- export var generateCorporateOption = function (_a) {
26
- var _b = _a.option, name = _b.name, avatar = _b.avatar, email = _b.email, contacts = _b.contacts, serverName = _b.serverName, company = _b.company, department = _b.department, companyPosition = _b.companyPosition, isPrivateSchedule = _b.isPrivateSchedule, remainingFields = __rest(_a, ["option"]);
27
- return (__assign({ value: contacts[0].userHuid, label: name, name: name, avatar: avatar, email: email || contacts[0].contact, contacts: contacts, serverName: serverName, company: company, department: department, companyPosition: companyPosition, isPrivateSchedule: isPrivateSchedule }, remainingFields));
28
- };
29
- export var generateCorporateOptionsToSelect = function (_a) {
30
- var language = _a.language, options = _a.options, setIsSearchable = _a.setIsSearchable, setModalData = _a.setModalData, remainingFields = __rest(_a, ["language", "options", "setIsSearchable", "setModalData"]);
31
- return options.map(function (option) { return (__assign(__assign({}, generateCorporateOption(__assign({ option: option }, remainingFields))), { language: language, setIsSearchable: setIsSearchable, setModalData: setModalData })); });
32
- };
33
- export var generateContactsOption = function (_a) {
34
- var _b = _a.option, name = _b.name, avatar = _b.avatar, email = _b.email, isPrivateSchedule = _b.isPrivateSchedule, remainingFields = __rest(_a, ["option"]);
35
- return (__assign({ value: email, label: name || email, name: name, avatar: avatar, email: email, isMyContacts: true, isPrivateSchedule: isPrivateSchedule }, remainingFields));
36
- };
37
- export var generateContactsOptionsToSelect = function (_a) {
38
- var options = _a.options, remainingFields = __rest(_a, ["options"]);
39
- return options.map(function (option) { return generateContactsOption(__assign({ option: option }, remainingFields)); });
40
- };
41
- export var generateEnteredByUserOption = function (_a) {
42
- var email = _a.email, remainingFields = __rest(_a, ["email"]);
43
- return (__assign({ value: email, label: email, email: email, isEnteredByUser: true }, remainingFields));
44
- };
45
- export var IndicatorSeparator = function () { return null; };
46
- export var DropdownIndicator = function () { return null; };
47
- export var MultiValueRemove = function () { return null; };
48
- export var LoadingIndicator = function () { return null; };
49
- var generateQueryVariants = function (query) { return ({
50
- origin: query,
51
- translit: tr(query),
52
- toEng: ru.toEn(query),
53
- fromEng: ru.fromEn(query),
54
- }); };
55
- var generateNameFromContact = function (name) { return name.split(' ')[0].split('.')[0].toLowerCase(); };
56
- var sortedContacts = function (_a) {
57
- var contactA = _a.contactA, contactB = _a.contactB, query = _a.query;
58
- var nameA = generateNameFromContact(contactA);
59
- var nameB = generateNameFromContact(contactB);
60
- var lowerQuery = query.toLowerCase();
61
- var _b = generateQueryVariants(lowerQuery), origin = _b.origin, translit = _b.translit, toEng = _b.toEng, fromEng = _b.fromEng;
62
- var isStartsWithValue = function (str) {
63
- return str.startsWith(origin, 0) || str.startsWith(translit, 0) || str.startsWith(toEng, 0) || str.startsWith(fromEng, 0);
64
- };
65
- var isNameAStartsWithValue = isStartsWithValue(tr(nameA));
66
- var isNameBStartsWithValue = isStartsWithValue(tr(nameB));
67
- if (isNameAStartsWithValue && !isNameBStartsWithValue)
68
- return -1;
69
- if (isNameBStartsWithValue && !isNameAStartsWithValue)
70
- return 1;
71
- return 0;
72
- };
73
- // после объединения корпоративных и трастовых контактов в один массив сортируем по алфавиту, а затем поднимаем наверх те, чье имя начинается с квери
74
- export var sortCorporateContacts = function (contacts, query) {
75
- return contacts
76
- .sort(function (_a, _b) {
77
- var nameA = _a.name;
78
- var nameB = _b.name;
79
- var contactA = generateNameFromContact(nameA);
80
- var contactB = generateNameFromContact(nameB);
81
- if (contactA < contactB)
82
- return -1;
83
- if (contactA > contactB)
84
- return 1;
85
- return 0;
86
- })
87
- .sort(function (_a, _b) {
88
- var contactA = _a.name;
89
- var contactB = _b.name;
90
- return sortedContacts({ contactA: contactA, contactB: contactB, query: query });
91
- });
92
- };
93
- //# sourceMappingURL=helpers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../src/сomponents/UserDropdown/helpers.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,aAAa,IAAI,EAAE,EAAE,MAAM,iBAAiB,CAAA;AACrD,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAWlC,MAAM,CAAC,IAAM,uBAAuB,GAAG,UAAC,EAGb;IAFzB,IAAA,cAA8G,EAApG,IAAI,UAAA,EAAE,MAAM,YAAA,EAAE,KAAK,WAAA,EAAE,QAAQ,cAAA,EAAE,UAAU,gBAAA,EAAE,OAAO,aAAA,EAAE,UAAU,gBAAA,EAAE,eAAe,qBAAA,EAAE,iBAAiB,uBAAA,EACzG,eAAe,cAFoB,UAGvC,CADmB;IACY,OAAA,YAC9B,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,EAC3B,KAAK,EAAE,IAAI,EACX,IAAI,MAAA,EACJ,MAAM,QAAA,EACN,KAAK,EAAE,KAAK,IAAI,QAAQ,CAAC,CAAC,CAAC,CAAC,OAAO,EACnC,QAAQ,UAAA,EACR,UAAU,YAAA,EACV,OAAO,SAAA,EACP,UAAU,YAAA,EACV,eAAe,iBAAA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UAAA,EAAE,KAAK,OAAA,EAAE,CAAC;IAA7C,CAA6C,CAAC;AARlG,CAQkG,CAAA"}
@@ -1 +0,0 @@
1
- export { default } from './UserDropdown';
@@ -1,2 +0,0 @@
1
- export { default } from './UserDropdown';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/UserDropdown/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA"}
@@ -1,15 +0,0 @@
1
- import { TSelectStyles } from './types';
2
- declare const _default: ({ isChipsVisible, isMaxMembersAdded, isDisabled, isError, lastRowNumber, paddingLeft, fillType, platform, layoutType, }: TSelectStyles) => {
3
- control: (provided: any, { isFocused }: any) => any;
4
- menu: (provided: any) => any;
5
- menuList: (provided: any) => any;
6
- valueContainer: (provided: any, { hasValue }: any) => any;
7
- placeholder: (provided: any) => any;
8
- input: (provided: any) => any;
9
- multiValue: (provided: any) => any;
10
- multiValueLabel: (provided: any) => any;
11
- noOptionsMessage: (provided: any) => any;
12
- loadingMessage: (provided: any) => any;
13
- option: (provided: any) => any;
14
- };
15
- export default _default;
@@ -1,75 +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 { isFullScreen, isPrimaryFillType, isWebPlatform } from '../../helpers';
13
- import { COLORS } from '../../constants';
14
- // eslint-disable-next-line import/no-anonymous-default-export
15
- export default (function (_a) {
16
- var isChipsVisible = _a.isChipsVisible, isMaxMembersAdded = _a.isMaxMembersAdded, isDisabled = _a.isDisabled, isError = _a.isError, lastRowNumber = _a.lastRowNumber, paddingLeft = _a.paddingLeft, fillType = _a.fillType, platform = _a.platform, layoutType = _a.layoutType;
17
- return ({
18
- control: function (provided, _a) {
19
- var isFocused = _a.isFocused;
20
- var borderColor = isFocused ? 'var(--color-border-focused)' : 'var(--color-border)';
21
- var hoverBorderColor = isFocused ? 'var(--color-border-focused)' : 'var(--color-border-hover)';
22
- var background = isPrimaryFillType(fillType) ? 'var(--color-input-secondary)' : 'var(--color-input-tertiary)';
23
- var disabledBackground = 'var(--color-bg-tertiary)';
24
- return __assign(__assign({}, provided), { background: isDisabled ? disabledBackground : background, borderRadius: '10px', borderColor: isError ? 'var(--color-border-error)' : isDisabled ? disabledBackground : borderColor, boxShadow: 'none', cursor: 'text', transition: 'border-color 250ms ease-in-out, background 250ms ease-in-out', '&:hover': {
25
- borderColor: isWebPlatform(platform) && (isError ? 'var(--color-border-error)' : hoverBorderColor),
26
- } });
27
- },
28
- menu: function (provided) { return (__assign(__assign({}, provided), { width: isFullScreen(layoutType) ? '384px' : '100%', left: isFullScreen(layoutType) ? '55px' : 0, background: COLORS.transparent, borderRadius: '10px', boxShadow: "0 3px 17px 0 ".concat(COLORS.selectBoxShadow), margin: '4px 0', zIndex: 2, '& > div:last-child > div:first-child > div:last-child > div:last-child > div:last-child > div:last-child': {
29
- '.smartapp-option__container': {
30
- borderBottom: 'none',
31
- },
32
- }, '[role=option]:has(+[role=option]:hover)': {
33
- '.smartapp-option__container': {
34
- borderBottomColor: isWebPlatform(platform) && COLORS.transparent,
35
- },
36
- } })); },
37
- menuList: function (provided) { return (__assign(__assign({}, provided), { maxHeight: '292px', background: 'var(--color-item)', borderRadius: '10px', padding: '0', scrollbarColor: "var(--color-scrollbar-thumb) ".concat(COLORS.transparent), '::-webkit-scrollbar-thumb': {
38
- background: 'var(--color-scrollbar-thumb)',
39
- }, '::-webkit-scrollbar-track': {
40
- background: COLORS.transparent,
41
- } })); },
42
- valueContainer: function (provided, _a) {
43
- var hasValue = _a.hasValue;
44
- var padding = lastRowNumber === 1 ? "12.5px 16px 12.5px ".concat(paddingLeft) : "6px 16px 6px ".concat(paddingLeft);
45
- return hasValue && isChipsVisible ? __assign(__assign({}, provided), { display: 'flex', gap: '8px', padding: padding }) : __assign(__assign({}, provided), { padding: padding });
46
- },
47
- placeholder: function (provided) { return (__assign(__assign({}, provided), { fontFamily: "Open Sans, 'sans-serif'", fontSize: '14px', fontWeight: '400', lineHeight: '19px', color: 'var(--color-text-tertiary)', margin: 0 })); },
48
- input: function (provided) { return (__assign(__assign({}, provided), { display: isMaxMembersAdded || isDisabled ? 'none' : 'grid', fontSize: '14px', fontWeight: '400', lineHeight: '19px', color: 'var(--color-text-primary)', caretColor: 'var(--color-icon-accent)', padding: 0, margin: 0, overflow: 'auto' })); },
49
- multiValue: function (provided) { return (__assign(__assign({}, provided), { width: 'auto', background: 'unset', borderRadius: '20px', margin: 0, '&:has(.multi-value-label-counter)': {
50
- width: 'fit-content',
51
- cursor: 'default',
52
- }, '&:empty': {
53
- display: 'none',
54
- } })); },
55
- multiValueLabel: function (provided) { return (__assign(__assign({}, provided), { width: '100%', padding: '0 !important', '.smartapp-chip': {
56
- maxWidth: '100%',
57
- } })); },
58
- noOptionsMessage: function (provided) { return (__assign(__assign({}, provided), { fontSize: '12px', fontWeight: 400, color: 'var(--color-text-secondary)', background: 'var(--color-item)', borderRadius: '10px', padding: '8px 16px' })); },
59
- loadingMessage: function (provided) { return (__assign(__assign({}, provided), { maxHeight: '292px', borderRadius: '10px', padding: 0, overflow: 'hidden' })); },
60
- option: function (provided) { return (__assign(__assign({}, provided), { height: '54px', background: 'var(--color-item)', padding: '0 0 0 16px', cursor: isWebPlatform(platform) && 'pointer', '&:hover': {
61
- background: isWebPlatform(platform) && 'var(--color-item-transparent-hover)',
62
- '.smartapp-option__container::before': {
63
- borderBottomColor: isWebPlatform(platform) && COLORS.transparent,
64
- },
65
- '.smartapp-option__container::after': {
66
- borderBottomColor: isWebPlatform(platform) && 'var(--color-item)',
67
- },
68
- }, '&:active': {
69
- background: COLORS.transparent,
70
- }, '&:focus-visible': {
71
- outline: 'none',
72
- } })); },
73
- });
74
- });
75
- //# sourceMappingURL=selectStyles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"selectStyles.js","sourceRoot":"","sources":["../../../../src/сomponents/UserDropdown/selectStyles.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAE9E,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAExC,8DAA8D;AAC9D,gBAAe,UAAC,EAUA;QATd,cAAc,oBAAA,EACd,iBAAiB,uBAAA,EACjB,UAAU,gBAAA,EACV,OAAO,aAAA,EACP,aAAa,mBAAA,EACb,WAAW,iBAAA,EACX,QAAQ,cAAA,EACR,QAAQ,cAAA,EACR,UAAU,gBAAA;IACS,OAAA,CAAC;QACpB,OAAO,EAAE,UAAC,QAAa,EAAE,EAAkB;gBAAhB,SAAS,eAAA;YAClC,IAAM,WAAW,GAAG,SAAS,CAAC,CAAC,CAAC,6BAA6B,CAAC,CAAC,CAAC,qBAAqB,CAAA;YACrF,IAAM,gBAAgB,GAAG,SAAS,CAAC,CAAC,CAAC,6BAA6B,CAAC,CAAC,CAAC,2BAA2B,CAAA;YAChG,IAAM,UAAU,GAAG,iBAAiB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,8BAA8B,CAAC,CAAC,CAAC,6BAA6B,CAAA;YAC/G,IAAM,kBAAkB,GAAG,0BAA0B,CAAA;YAErD,6BACK,QAAQ,KACX,UAAU,EAAE,UAAU,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,UAAU,EACxD,YAAY,EAAE,MAAM,EACpB,WAAW,EAAE,OAAO,CAAC,CAAC,CAAC,2BAA2B,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,WAAW,EAClG,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,8DA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AK,EAAE,MAAM,EACb,OAAO,EAAE,cAAc,EAEvB,gBAAgB,EAAE;gBAChB,QAAQ,EAAE,MAAM;aACjB,IACD,EARkC,CAQlC;QAEF,gBAAgB,EAAE,UAAC,QAAa,IAAK,OAAA,uBAChC,QAAQ,KACX,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,GAAG,EACf,KAAK,EAAE,6BAA6B,EACpC,UAAU,EAAE,mBAAmB,EAC/B,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE,UAAU,IACnB,EARmC,CAQnC;QAEF,cAAc,EAAE,UAAC,QAAa,IAAK,OAAA,uBAC9B,QAAQ,KACX,SAAS,EAAE,OAAO,EAClB,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE,CAAC,EACV,QAAQ,EAAE,QAAQ,IAClB,EANiC,CAMjC;QAEF,MAAM,EAAE,UAAC,QAAa,IAAK,OAAA,uBACtB,QAAQ,KACX,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,mBAAmB,EAC/B,OAAO,EAAE,YAAY,EACrB,MAAM,EAAE,aAAa,CAAC,QAAQ,CAAC,IAAI,SAAS,EAE5C,SAAS,EAAE;gBACT,UAAU,EAAE,aAAa,CAAC,QAAQ,CAAC,IAAI,qCAAqC;gBAE5E,qCAAqC,EAAE;oBACrC,iBAAiB,EAAE,aAAa,CAAC,QAAQ,CAAC,IAAI,MAAM,CAAC,WAAW;iBACjE;gBAED,oCAAoC,EAAE;oBACpC,iBAAiB,EAAE,aAAa,CAAC,QAAQ,CAAC,IAAI,mBAAmB;iBAClE;aACF,EAED,UAAU,EAAE;gBACV,UAAU,EAAE,MAAM,CAAC,WAAW;aAC/B,EAED,iBAAiB,EAAE;gBACjB,OAAO,EAAE,MAAM;aAChB,IACD,EA1ByB,CA0BzB;KACH,CAAC;AAlKmB,CAkKnB,EAAA"}
@@ -1,194 +0,0 @@
1
- import { RefObject } from 'react';
2
- import { MenuListProps, OptionProps } from 'react-select';
3
- import { ICommonProps, ILayoutTypeProps, TStyles } from '../../constants';
4
- export interface IContactBottomSheet {
5
- language: string;
6
- avatar: string | null;
7
- name: string;
8
- email: string;
9
- serverName: string | null;
10
- company: string | null;
11
- department: string | null;
12
- companyPosition: string | null;
13
- }
14
- export interface IContactInfo {
15
- elementRef?: RefObject<HTMLDivElement | null>;
16
- language: string;
17
- serverName: string | null;
18
- company: string | null;
19
- department: string | null;
20
- companyPosition: string | null;
21
- }
22
- export type TRenderInfoItem = {
23
- title: string;
24
- info: string;
25
- };
26
- export interface ILoadingMessage {
27
- skeletonRowsCount?: number;
28
- }
29
- export interface IMenuListProps extends MenuListProps {
30
- selectRef: RefObject<any>;
31
- scrollFromTop: RefObject<number>;
32
- hasNextPage: boolean;
33
- isLoading: boolean;
34
- isUserTyping: boolean;
35
- isNextPageLoading: boolean;
36
- onLoadNextPage: (inputValue: string) => void;
37
- }
38
- type TData = {
39
- label: string;
40
- avatar: string | null;
41
- email: string;
42
- serverName: string | null;
43
- company: string | null;
44
- department: string | null;
45
- companyPosition: string | null;
46
- isMyContacts: boolean;
47
- platform: 'web' | 'ios' | 'android';
48
- language: 'ru' | 'en' | 'de' | 'es' | 'fr' | 'ar' | 'mal' | 'tr';
49
- setIsSearchable: (isSearchable: boolean) => void;
50
- setModalData: (modalData: TModalData | null) => void;
51
- };
52
- export interface IOptionProps extends OptionProps {
53
- data: TData;
54
- }
55
- export type TModalData = {
56
- avatar: string | null;
57
- name: string;
58
- email: string;
59
- serverName: string | null;
60
- company: string | null;
61
- department: string | null;
62
- companyPosition: string | null;
63
- };
64
- type TGenerateCommonOption = {
65
- platform: string;
66
- layoutType: string;
67
- isChipsCollapsable: boolean;
68
- isInputFocused: RefObject<boolean>;
69
- selectRef: RefObject<any>;
70
- };
71
- export type TGenerateCorporateOption = TGenerateCommonOption & {
72
- option: TCorporateEntity;
73
- };
74
- export type TGenerateCorporateOptionsToSelect = TGenerateCommonOption & {
75
- language: string;
76
- options: TCorporateEntity[];
77
- setIsSearchable: (isSearchable: boolean) => void;
78
- setModalData: (modalData: TModalData | null) => void;
79
- };
80
- export type TGenerateContactsOption = TGenerateCommonOption & {
81
- option: TMyContactsEntries;
82
- };
83
- export type TGenerateContactsOptionsToSelect = TGenerateCommonOption & {
84
- options: TMyContactsEntries[];
85
- };
86
- export type TGenerateEnteredByUserOption = TGenerateCommonOption & {
87
- email: string;
88
- isError?: boolean;
89
- };
90
- export type TSortedContacts = {
91
- contactA: string;
92
- contactB: string;
93
- query: string;
94
- };
95
- export type TSelectStyles = {
96
- isChipsVisible: boolean;
97
- isMaxMembersAdded: boolean;
98
- isDisabled: boolean;
99
- isError: boolean;
100
- lastRowNumber: number;
101
- paddingLeft: string;
102
- fillType: string;
103
- platform: string;
104
- layoutType: string;
105
- };
106
- export type TGenerateNoOptionsMessage = {
107
- inputValue: string;
108
- };
109
- export type THandleFilterOption = {
110
- data: MultiOptionType;
111
- };
112
- export type TSelectProps = {
113
- options: MultiOptionType[];
114
- inputValue: string;
115
- onChange: (value: MultiOptionType[]) => void;
116
- onInputChange: (value: string) => void;
117
- };
118
- export interface MultiOptionType {
119
- value: string;
120
- label: string;
121
- avatar?: string | null;
122
- email: string;
123
- layoutType: string;
124
- isChipsCollapsable: boolean;
125
- platform?: string;
126
- serverName?: string | null;
127
- company?: string | null;
128
- department?: string | null;
129
- companyPosition?: string | null;
130
- isMyContacts?: boolean;
131
- isEnteredByUser?: boolean;
132
- isError?: boolean;
133
- }
134
- export type TMyContactsEntries = {
135
- isPrivateSchedule?: boolean;
136
- name: string | null;
137
- email: string;
138
- avatar: string | null;
139
- };
140
- type TContacts = {
141
- userHuid: string;
142
- contact: string;
143
- contactType: string;
144
- };
145
- export type TCorporateEntity = {
146
- isPrivateSchedule?: boolean;
147
- avatar: string | null;
148
- name: string;
149
- email: string | null;
150
- serverName: string | null;
151
- company: string | null;
152
- department: string | null;
153
- companyPosition: string | null;
154
- contacts: TContacts[];
155
- };
156
- type TCorporateEntries = {
157
- corpPhonebookEntries: TCorporateEntity[];
158
- trustSearchEntries: TCorporateEntity[];
159
- };
160
- export type TUser = TCorporateEntity | TMyContactsEntries | {
161
- email: string;
162
- isPrivateSchedule?: boolean;
163
- };
164
- export interface IUserDropdownProps extends ICommonProps, ILayoutTypeProps {
165
- isDisabled?: boolean;
166
- isLoading?: boolean;
167
- isChipsVisible?: boolean;
168
- isChipsCollapsable?: boolean;
169
- isMenuCloseOnSelect?: boolean;
170
- isFilteringDisabled?: boolean;
171
- hasNextPage?: boolean;
172
- isNextPageLoading?: boolean;
173
- language?: 'ru' | 'en' | 'de' | 'es' | 'fr' | 'ar' | 'mal' | 'tr';
174
- title?: string;
175
- mask?: string;
176
- placeholder?: string;
177
- hint?: string;
178
- noOptionsMessage?: string;
179
- maxMembersCount?: number;
180
- fillType?: 'primary' | 'secondary';
181
- menuPosition?: 'bottom' | 'auto' | 'top';
182
- autoFocus?: boolean;
183
- containerClassName?: string;
184
- containerStyles?: TStyles;
185
- selectedEntries?: TUser[];
186
- corporateEntries: TCorporateEntries | null;
187
- myContactsEntries: TMyContactsEntries[] | null;
188
- onInputChange: (inputValue: string) => void;
189
- onChange: (users: TUser[]) => void;
190
- onMenuOpen?: () => void;
191
- onMenuClose?: () => void;
192
- onLoadNextPage?: (inputValue: string) => void;
193
- }
194
- export {};
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/UserDropdown/types.ts"],"names":[],"mappings":""}
@@ -1,34 +0,0 @@
1
- export { default as Button } from './Button';
2
- export { default as Header } from './Header';
3
- export { default as ActionModal } from './ActionModal';
4
- export { default as AttachedFile } from './AttachedFile';
5
- export { default as Avatar } from './Avatar';
6
- export { default as Calendar } from './Calendar';
7
- export { default as Checkbox } from './Checkbox';
8
- export { default as Chip } from './Chip';
9
- export { default as ConfirmationModal } from './ConfirmationModal';
10
- export { default as CustomSelect } from './CustomSelect';
11
- export { default as CustomSelectProfiles } from './CustomSelectProfiles';
12
- export { default as DragAndDrop } from './DragAndDrop';
13
- export { default as DraggablePopup } from './DraggablePopup';
14
- export { default as Error } from './Error';
15
- export { default as Input } from './Input';
16
- export { default as Loader } from './Loader';
17
- export { default as Profile } from './Profile';
18
- export { default as Switcher } from './Switcher';
19
- export { default as ScrollBar } from './ScrollBar';
20
- export { default as Toggle } from './Toggle';
21
- export { default as Stories } from './Stories';
22
- export { default as SyncLoader } from './SyncLoader';
23
- export { default as Modal } from './Modal';
24
- export { default as Notification } from './Notification';
25
- export { default as RadioButton } from './RadioButton';
26
- export { default as Textarea } from './Textarea';
27
- export { default as ContextMenu } from './ContextMenu';
28
- export { default as UserDropdown } from './UserDropdown';
29
- export { Skeleton } from './Skeleton';
30
- export { default as ListItem } from './ListItem';
31
- export { default as CachedImage } from './CachedImage';
32
- export { default as ProgressBar } from './ProgressBar';
33
- export { ChartBar, ChartLine, ChartPie } from './Charts';
34
- export { Flex, VFlex, HFlex } from './Flex';
@@ -1,35 +0,0 @@
1
- export { default as Button } from './Button';
2
- export { default as Header } from './Header';
3
- export { default as ActionModal } from './ActionModal';
4
- export { default as AttachedFile } from './AttachedFile';
5
- export { default as Avatar } from './Avatar';
6
- export { default as Calendar } from './Calendar';
7
- export { default as Checkbox } from './Checkbox';
8
- export { default as Chip } from './Chip';
9
- export { default as ConfirmationModal } from './ConfirmationModal';
10
- export { default as CustomSelect } from './CustomSelect';
11
- export { default as CustomSelectProfiles } from './CustomSelectProfiles';
12
- export { default as DragAndDrop } from './DragAndDrop';
13
- export { default as DraggablePopup } from './DraggablePopup';
14
- export { default as Error } from './Error';
15
- export { default as Input } from './Input';
16
- export { default as Loader } from './Loader';
17
- export { default as Profile } from './Profile';
18
- export { default as Switcher } from './Switcher';
19
- export { default as ScrollBar } from './ScrollBar';
20
- export { default as Toggle } from './Toggle';
21
- export { default as Stories } from './Stories';
22
- export { default as SyncLoader } from './SyncLoader';
23
- export { default as Modal } from './Modal';
24
- export { default as Notification } from './Notification';
25
- export { default as RadioButton } from './RadioButton';
26
- export { default as Textarea } from './Textarea';
27
- export { default as ContextMenu } from './ContextMenu';
28
- export { default as UserDropdown } from './UserDropdown';
29
- export { Skeleton } from './Skeleton';
30
- export { default as ListItem } from './ListItem';
31
- export { default as CachedImage } from './CachedImage';
32
- export { default as ProgressBar } from './ProgressBar';
33
- export { ChartBar, ChartLine, ChartPie } from './Charts';
34
- export { Flex, VFlex, HFlex } from './Flex';
35
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/сomponents/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAA;AAC5C,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAA;AAC5C,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAA;AACtD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAA;AACxD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAA;AAC5C,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAA;AAChD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAA;AAChD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAA;AACxC,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAClE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAA;AACxD,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AACxE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAA;AACtD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAC5D,OAAO,EAAE,OAAO,IAAI,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AE,KAAK,EAAE,MAAM,QAAQ,CAAA"}
@@ -1,2 +0,0 @@
1
- export type Enumerate<N extends number, Acc extends number[] = []> = Acc['length'] extends N ? Acc[number] : Enumerate<N, [...Acc, Acc['length']]>;
2
- export type IntRange<F extends number, T extends number> = Exclude<Enumerate<T>, Enumerate<F>>;
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/сomponents/types.ts"],"names":[],"mappings":""}