@expressms/smartapp-ui 2.8.2-alpha.1 → 2.8.2-alpha.10

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 (447) hide show
  1. package/build/main/components/Charts/ChartBar/ChartBar.d.ts +4 -0
  2. package/build/main/components/Charts/ChartLine/ChartLine.d.ts +4 -0
  3. package/build/main/components/Charts/ChartPie/ChartPie.d.ts +4 -0
  4. package/build/main/components/Charts/index.d.ts +3 -0
  5. package/build/main/components/Skeleton/Skeleton.d.ts +4 -0
  6. package/build/main/components/Skeleton/index.d.ts +1 -0
  7. package/build/main/{/321/201omponents → components}/UserDropdown/helpers.d.ts +0 -1
  8. package/build/main/constants/constants.d.ts +0 -1
  9. package/build/main/hooks/useModal.d.ts +0 -1
  10. package/build/main/index.d.ts +34 -3
  11. package/package.json +65 -58
  12. package/build/main/assets/icons/arrow-back.svg +0 -3
  13. package/build/main/assets/icons/arrow-down.svg +0 -3
  14. package/build/main/assets/icons/arrow-up.svg +0 -3
  15. package/build/main/assets/icons/attachment-loader.svg +0 -3
  16. package/build/main/assets/icons/button-loader.svg +0 -3
  17. package/build/main/assets/icons/cancel-cross.svg +0 -3
  18. package/build/main/assets/icons/check-mark.svg +0 -4
  19. package/build/main/assets/icons/clear.svg +0 -3
  20. package/build/main/assets/icons/close-stories.svg +0 -4
  21. package/build/main/assets/icons/close.svg +0 -10
  22. package/build/main/assets/icons/contact-info.svg +0 -12
  23. package/build/main/assets/icons/corporate-user.svg +0 -10
  24. package/build/main/assets/icons/crown.svg +0 -5
  25. package/build/main/assets/icons/delete-chip.svg +0 -3
  26. package/build/main/assets/icons/download.svg +0 -4
  27. package/build/main/assets/icons/error.svg +0 -5
  28. package/build/main/assets/icons/external-link.svg +0 -3
  29. package/build/main/assets/icons/eye-off.svg +0 -10
  30. package/build/main/assets/icons/eye.svg +0 -10
  31. package/build/main/assets/icons/file.svg +0 -3
  32. package/build/main/assets/icons/info.svg +0 -5
  33. package/build/main/assets/icons/loader.svg +0 -3
  34. package/build/main/assets/icons/logout.svg +0 -4
  35. package/build/main/assets/icons/magnifying-glass.svg +0 -3
  36. package/build/main/assets/icons/mail.svg +0 -3
  37. package/build/main/assets/icons/more.svg +0 -3
  38. package/build/main/assets/icons/my-contact-user.svg +0 -10
  39. package/build/main/assets/icons/notification-close.svg +0 -3
  40. package/build/main/assets/icons/notification-error.svg +0 -3
  41. package/build/main/assets/icons/notification-failure.svg +0 -3
  42. package/build/main/assets/icons/notification-info.svg +0 -5
  43. package/build/main/assets/icons/notification-success.svg +0 -4
  44. package/build/main/assets/icons/notification-warning.svg +0 -5
  45. package/build/main/assets/icons/order.svg +0 -6
  46. package/build/main/assets/icons/plus.svg +0 -4
  47. package/build/main/assets/icons/private.svg +0 -12
  48. package/build/main/assets/icons/refresh.svg +0 -3
  49. package/build/main/assets/icons/story-loader.svg +0 -3
  50. package/build/main/assets/icons/tick.svg +0 -10
  51. package/build/main/assets/icons/trash.svg +0 -3
  52. package/build/main/assets/icons/unread-mails.svg +0 -4
  53. package/build/main/assets/storybook/index.js +0 -21
  54. package/build/main/assets/storybook/index.js.map +0 -1
  55. package/build/main/constants/constants.js +0 -162
  56. package/build/main/constants/constants.js.map +0 -1
  57. package/build/main/constants/index.js +0 -3
  58. package/build/main/constants/index.js.map +0 -1
  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.js +0 -89
  62. package/build/main/helpers/index.js.map +0 -1
  63. package/build/main/hooks/useModal.js +0 -60
  64. package/build/main/hooks/useModal.js.map +0 -1
  65. package/build/main/index.js +0 -4
  66. package/build/main/index.js.map +0 -1
  67. package/build/main/styles/index.js +0 -2
  68. package/build/main/styles/index.js.map +0 -1
  69. package/build/main/styles/main.js +0 -0
  70. package/build/main/styles/styles.scss +0 -14
  71. package/build/main//321/201omponents/ActionModal/ActionModal.js +0 -55
  72. package/build/main//321/201omponents/ActionModal/ActionModal.js.map +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.js +0 -2
  76. package/build/main//321/201omponents/ActionModal/types.js.map +0 -1
  77. package/build/main//321/201omponents/AttachedFile/AttachedFile.js +0 -60
  78. package/build/main//321/201omponents/AttachedFile/AttachedFile.js.map +0 -1
  79. package/build/main//321/201omponents/AttachedFile/index.js +0 -2
  80. package/build/main//321/201omponents/AttachedFile/index.js.map +0 -1
  81. package/build/main//321/201omponents/AttachedFile/types.js +0 -2
  82. package/build/main//321/201omponents/AttachedFile/types.js.map +0 -1
  83. package/build/main//321/201omponents/Avatar/Avatar.js +0 -131
  84. package/build/main//321/201omponents/Avatar/Avatar.js.map +0 -1
  85. package/build/main//321/201omponents/Avatar/index.js +0 -2
  86. package/build/main//321/201omponents/Avatar/index.js.map +0 -1
  87. package/build/main//321/201omponents/Avatar/types.js +0 -9
  88. package/build/main//321/201omponents/Avatar/types.js.map +0 -1
  89. package/build/main//321/201omponents/Button/Button.js +0 -57
  90. package/build/main//321/201omponents/Button/Button.js.map +0 -1
  91. package/build/main//321/201omponents/Button/index.js +0 -2
  92. package/build/main//321/201omponents/Button/index.js.map +0 -1
  93. package/build/main//321/201omponents/Button/types.js +0 -11
  94. package/build/main//321/201omponents/Button/types.js.map +0 -1
  95. package/build/main//321/201omponents/CachedImage/CachedImage.js +0 -59
  96. package/build/main//321/201omponents/CachedImage/CachedImage.js.map +0 -1
  97. package/build/main//321/201omponents/CachedImage/helpers.js +0 -40
  98. package/build/main//321/201omponents/CachedImage/helpers.js.map +0 -1
  99. package/build/main//321/201omponents/CachedImage/index.js +0 -2
  100. package/build/main//321/201omponents/CachedImage/index.js.map +0 -1
  101. package/build/main//321/201omponents/CachedImage/types.js +0 -2
  102. package/build/main//321/201omponents/CachedImage/types.js.map +0 -1
  103. package/build/main//321/201omponents/Calendar/Calendar.js +0 -48
  104. package/build/main//321/201omponents/Calendar/Calendar.js.map +0 -1
  105. package/build/main//321/201omponents/Calendar/index.js +0 -2
  106. package/build/main//321/201omponents/Calendar/index.js.map +0 -1
  107. package/build/main//321/201omponents/Calendar/types.js +0 -2
  108. package/build/main//321/201omponents/Calendar/types.js.map +0 -1
  109. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.d.ts +0 -3
  110. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js +0 -45
  111. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js.map +0 -1
  112. package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.js +0 -71
  113. package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.js.map +0 -1
  114. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.d.ts +0 -3
  115. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js +0 -40
  116. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js.map +0 -1
  117. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.d.ts +0 -3
  118. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js +0 -62
  119. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js.map +0 -1
  120. package/build/main//321/201omponents/Charts/colors.js +0 -4
  121. package/build/main//321/201omponents/Charts/colors.js.map +0 -1
  122. package/build/main//321/201omponents/Charts/constants.js +0 -43
  123. package/build/main//321/201omponents/Charts/constants.js.map +0 -1
  124. package/build/main//321/201omponents/Charts/helpers.js +0 -73
  125. package/build/main//321/201omponents/Charts/helpers.js.map +0 -1
  126. package/build/main//321/201omponents/Charts/index.d.ts +0 -3
  127. package/build/main//321/201omponents/Charts/index.js +0 -4
  128. package/build/main//321/201omponents/Charts/index.js.map +0 -1
  129. package/build/main//321/201omponents/Charts/types.js +0 -2
  130. package/build/main//321/201omponents/Charts/types.js.map +0 -1
  131. package/build/main//321/201omponents/Charts/useEvents.js +0 -45
  132. package/build/main//321/201omponents/Charts/useEvents.js.map +0 -1
  133. package/build/main//321/201omponents/Charts/usePieEvents.js +0 -57
  134. package/build/main//321/201omponents/Charts/usePieEvents.js.map +0 -1
  135. package/build/main//321/201omponents/Checkbox/Checkbox.js +0 -38
  136. package/build/main//321/201omponents/Checkbox/Checkbox.js.map +0 -1
  137. package/build/main//321/201omponents/Checkbox/index.js +0 -2
  138. package/build/main//321/201omponents/Checkbox/index.js.map +0 -1
  139. package/build/main//321/201omponents/Checkbox/types.js +0 -2
  140. package/build/main//321/201omponents/Checkbox/types.js.map +0 -1
  141. package/build/main//321/201omponents/Chip/Chip.js +0 -35
  142. package/build/main//321/201omponents/Chip/Chip.js.map +0 -1
  143. package/build/main//321/201omponents/Chip/index.js +0 -2
  144. package/build/main//321/201omponents/Chip/index.js.map +0 -1
  145. package/build/main//321/201omponents/Chip/types.js +0 -2
  146. package/build/main//321/201omponents/Chip/types.js.map +0 -1
  147. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js +0 -70
  148. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js.map +0 -1
  149. package/build/main//321/201omponents/ConfirmationModal/index.js +0 -2
  150. package/build/main//321/201omponents/ConfirmationModal/index.js.map +0 -1
  151. package/build/main//321/201omponents/ConfirmationModal/types.js +0 -2
  152. package/build/main//321/201omponents/ConfirmationModal/types.js.map +0 -1
  153. package/build/main//321/201omponents/ContextMenu/ContextMenu.js +0 -75
  154. package/build/main//321/201omponents/ContextMenu/ContextMenu.js.map +0 -1
  155. package/build/main//321/201omponents/ContextMenu/index.js +0 -2
  156. package/build/main//321/201omponents/ContextMenu/index.js.map +0 -1
  157. package/build/main//321/201omponents/ContextMenu/types.js +0 -2
  158. package/build/main//321/201omponents/ContextMenu/types.js.map +0 -1
  159. package/build/main//321/201omponents/CustomSelect/CustomSelect.js +0 -220
  160. package/build/main//321/201omponents/CustomSelect/CustomSelect.js.map +0 -1
  161. package/build/main//321/201omponents/CustomSelect/index.js +0 -2
  162. package/build/main//321/201omponents/CustomSelect/index.js.map +0 -1
  163. package/build/main//321/201omponents/CustomSelect/selectStyles.js +0 -67
  164. package/build/main//321/201omponents/CustomSelect/selectStyles.js.map +0 -1
  165. package/build/main//321/201omponents/CustomSelect/types.js +0 -2
  166. package/build/main//321/201omponents/CustomSelect/types.js.map +0 -1
  167. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js +0 -57
  168. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js.map +0 -1
  169. package/build/main//321/201omponents/CustomSelectProfiles/index.js +0 -2
  170. package/build/main//321/201omponents/CustomSelectProfiles/index.js.map +0 -1
  171. package/build/main//321/201omponents/CustomSelectProfiles/types.js +0 -2
  172. package/build/main//321/201omponents/CustomSelectProfiles/types.js.map +0 -1
  173. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js +0 -57
  174. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js.map +0 -1
  175. package/build/main//321/201omponents/DragAndDrop/index.js +0 -2
  176. package/build/main//321/201omponents/DragAndDrop/index.js.map +0 -1
  177. package/build/main//321/201omponents/DragAndDrop/types.js +0 -2
  178. package/build/main//321/201omponents/DragAndDrop/types.js.map +0 -1
  179. package/build/main//321/201omponents/DraggablePopup/DraggablePopup.js +0 -124
  180. package/build/main//321/201omponents/DraggablePopup/DraggablePopup.js.map +0 -1
  181. package/build/main//321/201omponents/DraggablePopup/index.js +0 -2
  182. package/build/main//321/201omponents/DraggablePopup/index.js.map +0 -1
  183. package/build/main//321/201omponents/DraggablePopup/types.js +0 -2
  184. package/build/main//321/201omponents/DraggablePopup/types.js.map +0 -1
  185. package/build/main//321/201omponents/Error/Error.js +0 -23
  186. package/build/main//321/201omponents/Error/Error.js.map +0 -1
  187. package/build/main//321/201omponents/Error/index.js +0 -2
  188. package/build/main//321/201omponents/Error/index.js.map +0 -1
  189. package/build/main//321/201omponents/Error/types.js +0 -2
  190. package/build/main//321/201omponents/Error/types.js.map +0 -1
  191. package/build/main//321/201omponents/Flex/Flex.js +0 -49
  192. package/build/main//321/201omponents/Flex/Flex.js.map +0 -1
  193. package/build/main//321/201omponents/Flex/HFlex/HFlex.js +0 -16
  194. package/build/main//321/201omponents/Flex/HFlex/HFlex.js.map +0 -1
  195. package/build/main//321/201omponents/Flex/HFlex/index.js +0 -2
  196. package/build/main//321/201omponents/Flex/HFlex/index.js.map +0 -1
  197. package/build/main//321/201omponents/Flex/VFlex/VFlex.js +0 -16
  198. package/build/main//321/201omponents/Flex/VFlex/VFlex.js.map +0 -1
  199. package/build/main//321/201omponents/Flex/VFlex/index.js +0 -2
  200. package/build/main//321/201omponents/Flex/VFlex/index.js.map +0 -1
  201. package/build/main//321/201omponents/Flex/index.js +0 -4
  202. package/build/main//321/201omponents/Flex/index.js.map +0 -1
  203. package/build/main//321/201omponents/Flex/types.js +0 -2
  204. package/build/main//321/201omponents/Flex/types.js.map +0 -1
  205. package/build/main//321/201omponents/Header/Header.js +0 -124
  206. package/build/main//321/201omponents/Header/Header.js.map +0 -1
  207. package/build/main//321/201omponents/Header/index.js +0 -2
  208. package/build/main//321/201omponents/Header/index.js.map +0 -1
  209. package/build/main//321/201omponents/Header/types.js +0 -2
  210. package/build/main//321/201omponents/Header/types.js.map +0 -1
  211. package/build/main//321/201omponents/Input/Input.js +0 -207
  212. package/build/main//321/201omponents/Input/Input.js.map +0 -1
  213. package/build/main//321/201omponents/Input/index.js +0 -2
  214. package/build/main//321/201omponents/Input/index.js.map +0 -1
  215. package/build/main//321/201omponents/Input/types.js +0 -2
  216. package/build/main//321/201omponents/Input/types.js.map +0 -1
  217. package/build/main//321/201omponents/ListItem/ListItem.js +0 -208
  218. package/build/main//321/201omponents/ListItem/ListItem.js.map +0 -1
  219. package/build/main//321/201omponents/ListItem/index.js +0 -2
  220. package/build/main//321/201omponents/ListItem/index.js.map +0 -1
  221. package/build/main//321/201omponents/ListItem/types.js +0 -2
  222. package/build/main//321/201omponents/ListItem/types.js.map +0 -1
  223. package/build/main//321/201omponents/Loader/Loader.js +0 -44
  224. package/build/main//321/201omponents/Loader/Loader.js.map +0 -1
  225. package/build/main//321/201omponents/Loader/index.js +0 -2
  226. package/build/main//321/201omponents/Loader/index.js.map +0 -1
  227. package/build/main//321/201omponents/Loader/types.js +0 -2
  228. package/build/main//321/201omponents/Loader/types.js.map +0 -1
  229. package/build/main//321/201omponents/Modal/Modal.js +0 -125
  230. package/build/main//321/201omponents/Modal/Modal.js.map +0 -1
  231. package/build/main//321/201omponents/Modal/index.js +0 -2
  232. package/build/main//321/201omponents/Modal/index.js.map +0 -1
  233. package/build/main//321/201omponents/Modal/types.js +0 -2
  234. package/build/main//321/201omponents/Modal/types.js.map +0 -1
  235. package/build/main//321/201omponents/Notification/Notification.js +0 -197
  236. package/build/main//321/201omponents/Notification/Notification.js.map +0 -1
  237. package/build/main//321/201omponents/Notification/index.js +0 -2
  238. package/build/main//321/201omponents/Notification/index.js.map +0 -1
  239. package/build/main//321/201omponents/Notification/types.js +0 -2
  240. package/build/main//321/201omponents/Notification/types.js.map +0 -1
  241. package/build/main//321/201omponents/Profile/Profile.js +0 -42
  242. package/build/main//321/201omponents/Profile/Profile.js.map +0 -1
  243. package/build/main//321/201omponents/Profile/index.js +0 -2
  244. package/build/main//321/201omponents/Profile/index.js.map +0 -1
  245. package/build/main//321/201omponents/Profile/types.js +0 -2
  246. package/build/main//321/201omponents/Profile/types.js.map +0 -1
  247. package/build/main//321/201omponents/ProgressBar/ProgressBar.js +0 -66
  248. package/build/main//321/201omponents/ProgressBar/ProgressBar.js.map +0 -1
  249. package/build/main//321/201omponents/ProgressBar/index.js +0 -2
  250. package/build/main//321/201omponents/ProgressBar/index.js.map +0 -1
  251. package/build/main//321/201omponents/ProgressBar/types.js +0 -2
  252. package/build/main//321/201omponents/ProgressBar/types.js.map +0 -1
  253. package/build/main//321/201omponents/RadioButton/RadioButton.js +0 -37
  254. package/build/main//321/201omponents/RadioButton/RadioButton.js.map +0 -1
  255. package/build/main//321/201omponents/RadioButton/index.js +0 -2
  256. package/build/main//321/201omponents/RadioButton/index.js.map +0 -1
  257. package/build/main//321/201omponents/RadioButton/types.js +0 -2
  258. package/build/main//321/201omponents/RadioButton/types.js.map +0 -1
  259. package/build/main//321/201omponents/ScrollBar/ScrollBar.js +0 -63
  260. package/build/main//321/201omponents/ScrollBar/ScrollBar.js.map +0 -1
  261. package/build/main//321/201omponents/ScrollBar/index.js +0 -2
  262. package/build/main//321/201omponents/ScrollBar/index.js.map +0 -1
  263. package/build/main//321/201omponents/ScrollBar/types.js +0 -2
  264. package/build/main//321/201omponents/ScrollBar/types.js.map +0 -1
  265. package/build/main//321/201omponents/Skeleton/Skeleton.d.ts +0 -3
  266. package/build/main//321/201omponents/Skeleton/Skeleton.js +0 -58
  267. package/build/main//321/201omponents/Skeleton/Skeleton.js.map +0 -1
  268. package/build/main//321/201omponents/Skeleton/index.d.ts +0 -1
  269. package/build/main//321/201omponents/Skeleton/index.js +0 -2
  270. package/build/main//321/201omponents/Skeleton/index.js.map +0 -1
  271. package/build/main//321/201omponents/Skeleton/types.js +0 -2
  272. package/build/main//321/201omponents/Skeleton/types.js.map +0 -1
  273. package/build/main//321/201omponents/Stories/Stories.js +0 -296
  274. package/build/main//321/201omponents/Stories/Stories.js.map +0 -1
  275. package/build/main//321/201omponents/Stories/index.js +0 -2
  276. package/build/main//321/201omponents/Stories/index.js.map +0 -1
  277. package/build/main//321/201omponents/Stories/types.js +0 -11
  278. package/build/main//321/201omponents/Stories/types.js.map +0 -1
  279. package/build/main//321/201omponents/Switcher/Switcher.js +0 -34
  280. package/build/main//321/201omponents/Switcher/Switcher.js.map +0 -1
  281. package/build/main//321/201omponents/Switcher/index.js +0 -2
  282. package/build/main//321/201omponents/Switcher/index.js.map +0 -1
  283. package/build/main//321/201omponents/Switcher/types.js +0 -2
  284. package/build/main//321/201omponents/Switcher/types.js.map +0 -1
  285. package/build/main//321/201omponents/SyncLoader/SyncLoader.js +0 -65
  286. package/build/main//321/201omponents/SyncLoader/SyncLoader.js.map +0 -1
  287. package/build/main//321/201omponents/SyncLoader/index.js +0 -2
  288. package/build/main//321/201omponents/SyncLoader/index.js.map +0 -1
  289. package/build/main//321/201omponents/SyncLoader/types.js +0 -2
  290. package/build/main//321/201omponents/SyncLoader/types.js.map +0 -1
  291. package/build/main//321/201omponents/Textarea/Textarea.js +0 -96
  292. package/build/main//321/201omponents/Textarea/Textarea.js.map +0 -1
  293. package/build/main//321/201omponents/Textarea/index.js +0 -2
  294. package/build/main//321/201omponents/Textarea/index.js.map +0 -1
  295. package/build/main//321/201omponents/Textarea/types.js +0 -2
  296. package/build/main//321/201omponents/Textarea/types.js.map +0 -1
  297. package/build/main//321/201omponents/Toggle/Toggle.js +0 -38
  298. package/build/main//321/201omponents/Toggle/Toggle.js.map +0 -1
  299. package/build/main//321/201omponents/Toggle/index.js +0 -2
  300. package/build/main//321/201omponents/Toggle/index.js.map +0 -1
  301. package/build/main//321/201omponents/Toggle/types.js +0 -2
  302. package/build/main//321/201omponents/Toggle/types.js.map +0 -1
  303. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js +0 -31
  304. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js.map +0 -1
  305. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js +0 -70
  306. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js.map +0 -1
  307. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js +0 -23
  308. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js.map +0 -1
  309. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js +0 -81
  310. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js.map +0 -1
  311. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js +0 -40
  312. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js.map +0 -1
  313. package/build/main//321/201omponents/UserDropdown/Option/Option.js +0 -91
  314. package/build/main//321/201omponents/UserDropdown/Option/Option.js.map +0 -1
  315. package/build/main//321/201omponents/UserDropdown/UserDropdown.js +0 -434
  316. package/build/main//321/201omponents/UserDropdown/UserDropdown.js.map +0 -1
  317. package/build/main//321/201omponents/UserDropdown/helpers.js +0 -93
  318. package/build/main//321/201omponents/UserDropdown/helpers.js.map +0 -1
  319. package/build/main//321/201omponents/UserDropdown/index.js +0 -2
  320. package/build/main//321/201omponents/UserDropdown/index.js.map +0 -1
  321. package/build/main//321/201omponents/UserDropdown/selectStyles.js +0 -75
  322. package/build/main//321/201omponents/UserDropdown/selectStyles.js.map +0 -1
  323. package/build/main//321/201omponents/UserDropdown/types.js +0 -2
  324. package/build/main//321/201omponents/UserDropdown/types.js.map +0 -1
  325. package/build/main//321/201omponents/index.d.ts +0 -34
  326. package/build/main//321/201omponents/index.js +0 -35
  327. package/build/main//321/201omponents/index.js.map +0 -1
  328. package/build/main//321/201omponents/types.js +0 -2
  329. package/build/main//321/201omponents/types.js.map +0 -1
  330. /package/build/main/{/321/201omponents/ActionModal/ActionModal.d.ts" → components/ActionModal/ActionModal.d.ts} +0 -0
  331. /package/build/main/{/321/201omponents/ActionModal/index.d.ts" → components/ActionModal/index.d.ts} +0 -0
  332. /package/build/main/{/321/201omponents/ActionModal/types.d.ts" → components/ActionModal/types.d.ts} +0 -0
  333. /package/build/main/{/321/201omponents/AttachedFile/AttachedFile.d.ts" → components/AttachedFile/AttachedFile.d.ts} +0 -0
  334. /package/build/main/{/321/201omponents/AttachedFile/index.d.ts" → components/AttachedFile/index.d.ts} +0 -0
  335. /package/build/main/{/321/201omponents/AttachedFile/types.d.ts" → components/AttachedFile/types.d.ts} +0 -0
  336. /package/build/main/{/321/201omponents/Avatar/Avatar.d.ts" → components/Avatar/Avatar.d.ts} +0 -0
  337. /package/build/main/{/321/201omponents/Avatar/index.d.ts" → components/Avatar/index.d.ts} +0 -0
  338. /package/build/main/{/321/201omponents/Avatar/types.d.ts" → components/Avatar/types.d.ts} +0 -0
  339. /package/build/main/{/321/201omponents/Button/Button.d.ts" → components/Button/Button.d.ts} +0 -0
  340. /package/build/main/{/321/201omponents/Button/index.d.ts" → components/Button/index.d.ts} +0 -0
  341. /package/build/main/{/321/201omponents/Button/types.d.ts" → components/Button/types.d.ts} +0 -0
  342. /package/build/main/{/321/201omponents/CachedImage/CachedImage.d.ts" → components/CachedImage/CachedImage.d.ts} +0 -0
  343. /package/build/main/{/321/201omponents/CachedImage/helpers.d.ts" → components/CachedImage/helpers.d.ts} +0 -0
  344. /package/build/main/{/321/201omponents/CachedImage/index.d.ts" → components/CachedImage/index.d.ts} +0 -0
  345. /package/build/main/{/321/201omponents/CachedImage/types.d.ts" → components/CachedImage/types.d.ts} +0 -0
  346. /package/build/main/{/321/201omponents/Calendar/Calendar.d.ts" → components/Calendar/Calendar.d.ts} +0 -0
  347. /package/build/main/{/321/201omponents/Calendar/index.d.ts" → components/Calendar/index.d.ts} +0 -0
  348. /package/build/main/{/321/201omponents/Calendar/types.d.ts" → components/Calendar/types.d.ts} +0 -0
  349. /package/build/main/{/321/201omponents/Charts/ChartLegend/ChartLegend.d.ts" → components/Charts/ChartLegend/ChartLegend.d.ts} +0 -0
  350. /package/build/main/{/321/201omponents/Charts/colors.d.ts" → components/Charts/colors.d.ts} +0 -0
  351. /package/build/main/{/321/201omponents/Charts/constants.d.ts" → components/Charts/constants.d.ts} +0 -0
  352. /package/build/main/{/321/201omponents/Charts/helpers.d.ts" → components/Charts/helpers.d.ts} +0 -0
  353. /package/build/main/{/321/201omponents/Charts/types.d.ts" → components/Charts/types.d.ts} +0 -0
  354. /package/build/main/{/321/201omponents/Charts/useEvents.d.ts" → components/Charts/useEvents.d.ts} +0 -0
  355. /package/build/main/{/321/201omponents/Charts/usePieEvents.d.ts" → components/Charts/usePieEvents.d.ts} +0 -0
  356. /package/build/main/{/321/201omponents/Checkbox/Checkbox.d.ts" → components/Checkbox/Checkbox.d.ts} +0 -0
  357. /package/build/main/{/321/201omponents/Checkbox/index.d.ts" → components/Checkbox/index.d.ts} +0 -0
  358. /package/build/main/{/321/201omponents/Checkbox/types.d.ts" → components/Checkbox/types.d.ts} +0 -0
  359. /package/build/main/{/321/201omponents/Chip/Chip.d.ts" → components/Chip/Chip.d.ts} +0 -0
  360. /package/build/main/{/321/201omponents/Chip/index.d.ts" → components/Chip/index.d.ts} +0 -0
  361. /package/build/main/{/321/201omponents/Chip/types.d.ts" → components/Chip/types.d.ts} +0 -0
  362. /package/build/main/{/321/201omponents/ConfirmationModal/ConfirmationModal.d.ts" → components/ConfirmationModal/ConfirmationModal.d.ts} +0 -0
  363. /package/build/main/{/321/201omponents/ConfirmationModal/index.d.ts" → components/ConfirmationModal/index.d.ts} +0 -0
  364. /package/build/main/{/321/201omponents/ConfirmationModal/types.d.ts" → components/ConfirmationModal/types.d.ts} +0 -0
  365. /package/build/main/{/321/201omponents/ContextMenu/ContextMenu.d.ts" → components/ContextMenu/ContextMenu.d.ts} +0 -0
  366. /package/build/main/{/321/201omponents/ContextMenu/index.d.ts" → components/ContextMenu/index.d.ts} +0 -0
  367. /package/build/main/{/321/201omponents/ContextMenu/types.d.ts" → components/ContextMenu/types.d.ts} +0 -0
  368. /package/build/main/{/321/201omponents/CustomSelect/CustomSelect.d.ts" → components/CustomSelect/CustomSelect.d.ts} +0 -0
  369. /package/build/main/{/321/201omponents/CustomSelect/index.d.ts" → components/CustomSelect/index.d.ts} +0 -0
  370. /package/build/main/{/321/201omponents/CustomSelect/selectStyles.d.ts" → components/CustomSelect/selectStyles.d.ts} +0 -0
  371. /package/build/main/{/321/201omponents/CustomSelect/types.d.ts" → components/CustomSelect/types.d.ts} +0 -0
  372. /package/build/main/{/321/201omponents/CustomSelectProfiles/CustomSelectProfiles.d.ts" → components/CustomSelectProfiles/CustomSelectProfiles.d.ts} +0 -0
  373. /package/build/main/{/321/201omponents/CustomSelectProfiles/index.d.ts" → components/CustomSelectProfiles/index.d.ts} +0 -0
  374. /package/build/main/{/321/201omponents/CustomSelectProfiles/types.d.ts" → components/CustomSelectProfiles/types.d.ts} +0 -0
  375. /package/build/main/{/321/201omponents/DragAndDrop/DragAndDrop.d.ts" → components/DragAndDrop/DragAndDrop.d.ts} +0 -0
  376. /package/build/main/{/321/201omponents/DragAndDrop/index.d.ts" → components/DragAndDrop/index.d.ts} +0 -0
  377. /package/build/main/{/321/201omponents/DragAndDrop/types.d.ts" → components/DragAndDrop/types.d.ts} +0 -0
  378. /package/build/main/{/321/201omponents/DraggablePopup/DraggablePopup.d.ts" → components/DraggablePopup/DraggablePopup.d.ts} +0 -0
  379. /package/build/main/{/321/201omponents/DraggablePopup/index.d.ts" → components/DraggablePopup/index.d.ts} +0 -0
  380. /package/build/main/{/321/201omponents/DraggablePopup/types.d.ts" → components/DraggablePopup/types.d.ts} +0 -0
  381. /package/build/main/{/321/201omponents/Error/Error.d.ts" → components/Error/Error.d.ts} +0 -0
  382. /package/build/main/{/321/201omponents/Error/index.d.ts" → components/Error/index.d.ts} +0 -0
  383. /package/build/main/{/321/201omponents/Error/types.d.ts" → components/Error/types.d.ts} +0 -0
  384. /package/build/main/{/321/201omponents/Flex/Flex.d.ts" → components/Flex/Flex.d.ts} +0 -0
  385. /package/build/main/{/321/201omponents/Flex/HFlex/HFlex.d.ts" → components/Flex/HFlex/HFlex.d.ts} +0 -0
  386. /package/build/main/{/321/201omponents/Flex/HFlex/index.d.ts" → components/Flex/HFlex/index.d.ts} +0 -0
  387. /package/build/main/{/321/201omponents/Flex/VFlex/VFlex.d.ts" → components/Flex/VFlex/VFlex.d.ts} +0 -0
  388. /package/build/main/{/321/201omponents/Flex/VFlex/index.d.ts" → components/Flex/VFlex/index.d.ts} +0 -0
  389. /package/build/main/{/321/201omponents/Flex/index.d.ts" → components/Flex/index.d.ts} +0 -0
  390. /package/build/main/{/321/201omponents/Flex/types.d.ts" → components/Flex/types.d.ts} +0 -0
  391. /package/build/main/{/321/201omponents/Header/Header.d.ts" → components/Header/Header.d.ts} +0 -0
  392. /package/build/main/{/321/201omponents/Header/index.d.ts" → components/Header/index.d.ts} +0 -0
  393. /package/build/main/{/321/201omponents/Header/types.d.ts" → components/Header/types.d.ts} +0 -0
  394. /package/build/main/{/321/201omponents/Input/Input.d.ts" → components/Input/Input.d.ts} +0 -0
  395. /package/build/main/{/321/201omponents/Input/index.d.ts" → components/Input/index.d.ts} +0 -0
  396. /package/build/main/{/321/201omponents/Input/types.d.ts" → components/Input/types.d.ts} +0 -0
  397. /package/build/main/{/321/201omponents/ListItem/ListItem.d.ts" → components/ListItem/ListItem.d.ts} +0 -0
  398. /package/build/main/{/321/201omponents/ListItem/index.d.ts" → components/ListItem/index.d.ts} +0 -0
  399. /package/build/main/{/321/201omponents/ListItem/types.d.ts" → components/ListItem/types.d.ts} +0 -0
  400. /package/build/main/{/321/201omponents/Loader/Loader.d.ts" → components/Loader/Loader.d.ts} +0 -0
  401. /package/build/main/{/321/201omponents/Loader/index.d.ts" → components/Loader/index.d.ts} +0 -0
  402. /package/build/main/{/321/201omponents/Loader/types.d.ts" → components/Loader/types.d.ts} +0 -0
  403. /package/build/main/{/321/201omponents/Modal/Modal.d.ts" → components/Modal/Modal.d.ts} +0 -0
  404. /package/build/main/{/321/201omponents/Modal/index.d.ts" → components/Modal/index.d.ts} +0 -0
  405. /package/build/main/{/321/201omponents/Modal/types.d.ts" → components/Modal/types.d.ts} +0 -0
  406. /package/build/main/{/321/201omponents/Notification/Notification.d.ts" → components/Notification/Notification.d.ts} +0 -0
  407. /package/build/main/{/321/201omponents/Notification/index.d.ts" → components/Notification/index.d.ts} +0 -0
  408. /package/build/main/{/321/201omponents/Notification/types.d.ts" → components/Notification/types.d.ts} +0 -0
  409. /package/build/main/{/321/201omponents/Profile/Profile.d.ts" → components/Profile/Profile.d.ts} +0 -0
  410. /package/build/main/{/321/201omponents/Profile/index.d.ts" → components/Profile/index.d.ts} +0 -0
  411. /package/build/main/{/321/201omponents/Profile/types.d.ts" → components/Profile/types.d.ts} +0 -0
  412. /package/build/main/{/321/201omponents/ProgressBar/ProgressBar.d.ts" → components/ProgressBar/ProgressBar.d.ts} +0 -0
  413. /package/build/main/{/321/201omponents/ProgressBar/index.d.ts" → components/ProgressBar/index.d.ts} +0 -0
  414. /package/build/main/{/321/201omponents/ProgressBar/types.d.ts" → components/ProgressBar/types.d.ts} +0 -0
  415. /package/build/main/{/321/201omponents/RadioButton/RadioButton.d.ts" → components/RadioButton/RadioButton.d.ts} +0 -0
  416. /package/build/main/{/321/201omponents/RadioButton/index.d.ts" → components/RadioButton/index.d.ts} +0 -0
  417. /package/build/main/{/321/201omponents/RadioButton/types.d.ts" → components/RadioButton/types.d.ts} +0 -0
  418. /package/build/main/{/321/201omponents/ScrollBar/ScrollBar.d.ts" → components/ScrollBar/ScrollBar.d.ts} +0 -0
  419. /package/build/main/{/321/201omponents/ScrollBar/index.d.ts" → components/ScrollBar/index.d.ts} +0 -0
  420. /package/build/main/{/321/201omponents/ScrollBar/types.d.ts" → components/ScrollBar/types.d.ts} +0 -0
  421. /package/build/main/{/321/201omponents/Skeleton/types.d.ts" → components/Skeleton/types.d.ts} +0 -0
  422. /package/build/main/{/321/201omponents/Stories/Stories.d.ts" → components/Stories/Stories.d.ts} +0 -0
  423. /package/build/main/{/321/201omponents/Stories/index.d.ts" → components/Stories/index.d.ts} +0 -0
  424. /package/build/main/{/321/201omponents/Stories/types.d.ts" → components/Stories/types.d.ts} +0 -0
  425. /package/build/main/{/321/201omponents/Switcher/Switcher.d.ts" → components/Switcher/Switcher.d.ts} +0 -0
  426. /package/build/main/{/321/201omponents/Switcher/index.d.ts" → components/Switcher/index.d.ts} +0 -0
  427. /package/build/main/{/321/201omponents/Switcher/types.d.ts" → components/Switcher/types.d.ts} +0 -0
  428. /package/build/main/{/321/201omponents/SyncLoader/SyncLoader.d.ts" → components/SyncLoader/SyncLoader.d.ts} +0 -0
  429. /package/build/main/{/321/201omponents/SyncLoader/index.d.ts" → components/SyncLoader/index.d.ts} +0 -0
  430. /package/build/main/{/321/201omponents/SyncLoader/types.d.ts" → components/SyncLoader/types.d.ts} +0 -0
  431. /package/build/main/{/321/201omponents/Textarea/Textarea.d.ts" → components/Textarea/Textarea.d.ts} +0 -0
  432. /package/build/main/{/321/201omponents/Textarea/index.d.ts" → components/Textarea/index.d.ts} +0 -0
  433. /package/build/main/{/321/201omponents/Textarea/types.d.ts" → components/Textarea/types.d.ts} +0 -0
  434. /package/build/main/{/321/201omponents/Toggle/Toggle.d.ts" → components/Toggle/Toggle.d.ts} +0 -0
  435. /package/build/main/{/321/201omponents/Toggle/index.d.ts" → components/Toggle/index.d.ts} +0 -0
  436. /package/build/main/{/321/201omponents/Toggle/types.d.ts" → components/Toggle/types.d.ts} +0 -0
  437. /package/build/main/{/321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.d.ts" → components/UserDropdown/ContactBottomSheet/ContactBottomSheet.d.ts} +0 -0
  438. /package/build/main/{/321/201omponents/UserDropdown/ContactInfo/ContactInfo.d.ts" → components/UserDropdown/ContactInfo/ContactInfo.d.ts} +0 -0
  439. /package/build/main/{/321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.d.ts" → components/UserDropdown/LoadingMessage/LoadingMessage.d.ts} +0 -0
  440. /package/build/main/{/321/201omponents/UserDropdown/MenuList/MenuList.d.ts" → components/UserDropdown/MenuList/MenuList.d.ts} +0 -0
  441. /package/build/main/{/321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.d.ts" → components/UserDropdown/MultiValueLabel/MultiValueLabel.d.ts} +0 -0
  442. /package/build/main/{/321/201omponents/UserDropdown/Option/Option.d.ts" → components/UserDropdown/Option/Option.d.ts} +0 -0
  443. /package/build/main/{/321/201omponents/UserDropdown/UserDropdown.d.ts" → components/UserDropdown/UserDropdown.d.ts} +0 -0
  444. /package/build/main/{/321/201omponents/UserDropdown/index.d.ts" → components/UserDropdown/index.d.ts} +0 -0
  445. /package/build/main/{/321/201omponents/UserDropdown/selectStyles.d.ts" → components/UserDropdown/selectStyles.d.ts} +0 -0
  446. /package/build/main/{/321/201omponents/UserDropdown/types.d.ts" → components/UserDropdown/types.d.ts} +0 -0
  447. /package/build/main/{/321/201omponents/types.d.ts" → components/types.d.ts} +0 -0
@@ -1,67 +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 { isEmpty } from 'lodash';
13
- import { isPrimaryFillType } from '../../helpers';
14
- import { COLORS } from '../../constants';
15
- // eslint-disable-next-line import/no-anonymous-default-export
16
- export default (function (_a) {
17
- var isDisabled = _a.isDisabled, isError = _a.isError, fillType = _a.fillType, menuListMaxHeight = _a.menuListMaxHeight, optionHeight = _a.optionHeight;
18
- return ({
19
- control: function (provided, _a) {
20
- var menuIsOpen = _a.menuIsOpen;
21
- var borderColor = menuIsOpen ? 'var(--color-border-focused)' : 'var(--color-border)';
22
- var hoverBorderColor = menuIsOpen ? 'var(--color-border-focused)' : 'var(--color-border-hover)';
23
- var background = isPrimaryFillType(fillType) ? 'var(--color-input-secondary)' : 'var(--color-input-tertiary)';
24
- var disabledBackground = 'var(--color-bg-tertiary)';
25
- return __assign(__assign({}, provided), { background: isDisabled ? disabledBackground : background, borderRadius: '10px', borderColor: isError ? 'var(--color-border-error)' : isDisabled ? disabledBackground : borderColor, boxShadow: 'none', cursor: 'pointer', transition: 'border-color 250ms ease-in-out, background 250ms ease-in-out', '&:hover': {
26
- borderColor: isError ? 'var(--color-border-error)' : hoverBorderColor,
27
- } });
28
- },
29
- menu: function (provided) { return (__assign(__assign({}, provided), { background: COLORS.transparent, border: '1px solid var(--color-item)', borderRadius: '8px', boxShadow: "0 3px 17px 0 ".concat(COLORS.selectBoxShadow), margin: '4px 0', zIndex: 2, '&:has(> div:first-child:empty)': {
30
- display: 'none',
31
- } })); },
32
- menuList: function (provided, _a) {
33
- var isLoading = _a.isLoading, options = _a.options;
34
- var isLoadingState = isLoading && isEmpty(options);
35
- var paddingBottom = isLoadingState ? '0' : '4px';
36
- return __assign(__assign({}, provided), { maxHeight: isLoadingState ? '240px' : "".concat(menuListMaxHeight, "px"), display: 'flex', flexDirection: 'column', gap: '4px', background: 'var(--color-item)', borderRadius: '8px', padding: "4px 4px ".concat(paddingBottom, " 4px"), scrollbarColor: "var(--color-scrollbar-thumb) ".concat(COLORS.transparent), '::-webkit-scrollbar-thumb': {
37
- background: 'var(--color-scrollbar-thumb)',
38
- }, '::-webkit-scrollbar-track': {
39
- background: COLORS.transparent,
40
- } });
41
- },
42
- valueContainer: function (provided) { return (__assign(__assign({}, provided), { padding: '12.5px 8px 12.5px 16px' })); },
43
- dropdownIndicator: function (provided) { return (__assign(__assign({}, provided), { color: 'var(--color-icon-complementary) !important', padding: '14px 16px 14px 0', opacity: isDisabled && '0.5' })); },
44
- clearIndicator: function (provided) { return (__assign(__assign({}, provided), { color: 'var(--color-icon-secondary) !important', marginRight: '8px' })); },
45
- loadingMessage: function (provided) { return (__assign(__assign({}, provided), { padding: '2px', overflowY: 'hidden' })); },
46
- 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 })); },
47
- input: function (provided) { return (__assign(__assign({}, provided), { fontSize: '14px', fontWeight: '400', lineHeight: '19px', color: 'var(--color-text-primary)', caretColor: 'var(--color-icon-accent)', padding: 0, margin: 0, overflow: 'auto' })); },
48
- noOptionsMessage: function (provided) { return (__assign(__assign({}, provided), { fontSize: '14px', fontWeight: 400, lineHeight: '20px', color: 'var(--color-text-secondary)', padding: '14px' })); },
49
- singleValue: function (provided) { return (__assign(__assign({}, provided), { display: 'flex', alignItems: 'center', gap: '8px', fontFamily: "Open Sans, 'sans-serif'", fontSize: '14px', fontWeight: 400, lineHeight: '19px', color: isDisabled ? 'var(--color-text-secondary)' : 'var(--color-text-primary)', margin: 0 })); },
50
- option: function (provided) { return (__assign(__assign({}, provided), { display: 'flex', alignItems: 'center', minHeight: optionHeight ? "".concat(optionHeight, "px") : 'auto', height: optionHeight ? "".concat(optionHeight, "px") : 'auto', background: "".concat(COLORS.transparent, " !important"), padding: '0', cursor: 'pointer', '.smartapp-list-item__not-interactive': {
51
- whiteSpace: 'normal',
52
- }, '&.smartapp-option-with-tooltip': {
53
- '.smartapp-list-item__text > div:nth-child(1)': {
54
- textOverflow: 'ellipsis',
55
- whiteSpace: 'nowrap',
56
- overflow: 'hidden',
57
- },
58
- }, '.smartapp-list-item__text': {
59
- gap: 0,
60
- '& > div:nth-child(2)': {
61
- fontSize: '12px',
62
- lineHeight: '16px',
63
- },
64
- } })); },
65
- });
66
- });
67
- //# sourceMappingURL=selectStyles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"selectStyles.js","sourceRoot":"","sources":["../../../../src/сomponents/CustomSelect/selectStyles.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAA;AAChC,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAExC,8DAA8D;AAC9D,gBAAe,UAAC,EAAiF;QAA/E,UAAU,gBAAA,EAAE,OAAO,aAAA,EAAE,QAAQ,cAAA,EAAE,iBAAiB,uBAAA,EAAE,YAAY,kBAAA;IAAsB,OAAA,CAAC;QACrG,OAAO,EAAE,UAAC,QAAa,EAAE,EAAmB;gBAAjB,UAAU,gBAAA;YACnC,IAAM,WAAW,GAAG,UAAU,CAAC,CAAC,CAAC,6BAA6B,CAAC,CAAC,CAAC,qBAAqB,CAAA;YACtF,IAAM,gBAAgB,GAAG,UAAU,CAAC,CAAC,CAAC,6BAA6B,CAAC,CAAC,CAAC,2BAA2B,CAAA;YACjG,IAAM,UAAU,GAAG,iBAAiB,CAAC,QAAQ,CAAC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,GAAG,EAAE,CAAC;gBAEN,sBAAsB,EAAE;oBACtB,QAAQ,EAAE,MAAM;oBAChB,UAAU,EAAE,MAAM;iBACnB;aACF,IACD,EA9ByB,CA8BzB;KACH,CAAC;AA7JoG,CA6JpG,EAAA"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/CustomSelect/types.ts"],"names":[],"mappings":""}
@@ -1,57 +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 { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
- import Select, { components } from 'react-select';
25
- import Avatar from '../Avatar';
26
- import '../../styles/styles.scss';
27
- var Control = function (_a) {
28
- var _b, _c, _d;
29
- var children = _a.children, props = __rest(_a, ["children"]);
30
- return (_jsxs(components.Control, __assign({}, props, { children: [((_b = props.selectProps) === null || _b === void 0 ? void 0 : _b.value) && (_jsx("div", __assign({ className: "smartapp-custom-select-profiles__control" }, { children: _jsx("span", { children: _jsx(Avatar, { size: 32, username: (_d = (_c = props === null || props === void 0 ? void 0 : props.selectProps) === null || _c === void 0 ? void 0 : _c.value) === null || _d === void 0 ? void 0 : _d.username }) }) }))), children] })));
31
- };
32
- var Option = function (_a) {
33
- var _b, _c, _d;
34
- var props = __rest(_a, []);
35
- return (_jsx(components.Option, __assign({}, props, { children: _jsxs("div", __assign({ className: "smartapp-custom-select-profiles__option" }, { children: [_jsx("div", __assign({ className: "smartapp-custom-select-profiles__option--avatar" }, { children: _jsx(Avatar, { size: 32, username: (_b = props === null || props === void 0 ? void 0 : props.data) === null || _b === void 0 ? void 0 : _b.username }) })), _jsxs("div", __assign({ className: "smartapp-custom-select-profiles__option--info" }, { children: [_jsxs("p", __assign({ className: "smartapp-custom-select-profiles__option--info__title" }, { children: [(_c = props === null || props === void 0 ? void 0 : props.data) === null || _c === void 0 ? void 0 : _c.username, " "] })), _jsxs("p", __assign({ className: "smartapp-custom-select-profiles__option--info__email" }, { children: [(_d = props === null || props === void 0 ? void 0 : props.data) === null || _d === void 0 ? void 0 : _d.email, " "] }))] }))] })) })));
36
- };
37
- var DropdownIndicator = function (props) { return _jsx(components.DropdownIndicator, __assign({}, props)); };
38
- var IndicatorSeparator = function () { return null; };
39
- var CustomSelectProfiles = function (_a) {
40
- var options = _a.options, defaultValue = _a.defaultValue, placeholder = _a.placeholder, onChange = _a.onChange, _b = _a.width, width = _b === void 0 ? 100 : _b;
41
- var customStyles = {
42
- option: function (provided, state) { return (__assign(__assign({}, provided), { cursor: 'pointer', color: '#000000', background: state.isSelected ? 'rgba(71, 153, 227, 0.1)' : '#ffffff', display: 'flex', textOverflow: 'ellipsis', width: "".concat(width, "%"), padding: '10px 0', '&:focus': {
43
- background: '#ffffff',
44
- color: 'none',
45
- }, '&:hover': {
46
- background: 'rgba(71, 153, 227, 0.1)',
47
- } })); },
48
- control: function (provided) { return (__assign(__assign({}, provided), { width: "".concat(width, "%"), textOverflow: 'ellipsis', padding: '5px 0 5px 5px' })); },
49
- };
50
- return (_jsx("div", __assign({ className: "smartapp-custom-select-profiles" }, { children: _jsx(Select
51
- /* @ts-ignore */
52
- , {
53
- /* @ts-ignore */
54
- onChange: function (option) { return onChange(option); }, options: options, defaultValue: defaultValue, styles: customStyles, getOptionLabel: function (option) { return option.username; }, getOptionValue: function (option) { return option.email; }, placeholder: _jsx("div", __assign({ className: "smartapp-custom-select-profiles__placeholder" }, { children: placeholder })), components: { Option: Option, Control: Control, DropdownIndicator: DropdownIndicator, IndicatorSeparator: IndicatorSeparator } }) })));
55
- };
56
- export default CustomSelectProfiles;
57
- //# sourceMappingURL=CustomSelectProfiles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CustomSelectProfiles.js","sourceRoot":"","sources":["../../../../src/сomponents/CustomSelectProfiles/CustomSelectProfiles.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,MAAM,EAAE,EAAE,UAAU,EAA0B,MAAM,cAAc,CAAA;AACzE,OAAO,MAAM,MAAM,WAAW,CAAA;AAE9B,OAAO,0BAA0B,CAAA;AAEjC,IAAM,OAAO,GAAG,UAAC,EAA2B;;IAAzB,IAAA,QAAQ,cAAA,EAAK,KAAK,cAApB,YAAsB,CAAF;IAAY,OAAA,CAC/C,MAAC,UAAU,CAAC,OAAO,eAAK,KAAK,eAC1B,CAAA,MAAA,KAAK,CAAC,WAAW,0CAAE,KAAK,KAAI,CAC3B,uBAAK,SAAS,EAAC,0CAA0C,gBACvD,yBACE,KAAC,MAAM,IAAC,IAAI,EAAE,EAAE,EAAE,QAAQ,EAAE,MAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,WAAW,0CAAE,KAAK,0CAAE,QAAQ,GAAI,GAC9D,IACH,CACP,EACA,QAAQ,KACU,CACtB,CAAA;CAAA,CAAA;AAED,IAAM,MAAM,GAAG,UAAC,EAAiB;;QAAZ,KAAK,cAAV,EAAY,CAAF;IAAY,OAAA,CACpC,KAAC,UAAU,CAAC,MAAM,eAAK,KAAK,cAC1B,wBAAK,SAAS,EAAC,yCAAyC,iBACtD,uBAAK,SAAS,EAAC,iD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ACtC,IACD,EAlBqC,CAkBrC;QACF,OAAO,EAAE,UAAC,QAAa,IAAK,OAAA,uBACvB,QAAQ,KACX,KAAK,EAAE,UAAG,KAAK,MAAG,EAClB,YAAY,EAAE,UAAU,EACxB,OAAO,EAAE,eAAe,IACxB,EAL0B,CAK1B;KACH,CAAA;IAED,OAAO,CACL,uBAAK,SAAS,EAAC,iCAAiC,gBAC9C,KAAC,MAAM;QACL,gBAAgB;;YAAhB,gBAAgB;YAChB,QAAQ,EAAE,UAAC,MAAM,IAAK,OAAA,QAAQ,CAAC,MAAM,CAAC,EAAhB,CAAgB,EACtC,OAAO,EAAE,OAAO,EAChB,YAAY,EAAE,YAAY,EAC1B,MAAM,EAAE,YAAY,EACpB,cAAc,EAAE,UAAC,MAAM,IAAK,OAAA,MAAM,CAAC,QAAQ,EAAf,CAAe,EAC3C,cAAc,EAAE,UAAC,MAAM,IAAK,OAAA,MAAM,CAAC,KAAK,EAAZ,CAAY,EACxC,WAAW,EAAE,uBAAK,SAAS,EAAC,8CAA8C,gBAAE,WAAW,IAAO,EAC9F,UAAU,EAAE,EAAE,MAAM,QAAA,EAAE,OAAO,SAAA,EAAE,iBAAiB,mBAAA,EAAE,kBAAkB,oBAAA,EAAE,GACtE,IACE,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,oBAAoB,CAAA"}
@@ -1,2 +0,0 @@
1
- export { default } from './CustomSelectProfiles';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/CustomSelectProfiles/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/CustomSelectProfiles/types.ts"],"names":[],"mappings":""}
@@ -1,57 +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 { useState } from 'react';
14
- import { DragDropContext, Droppable, Draggable } from 'react-beautiful-dnd';
15
- import { ReactComponent as OrderIcon } from '../../assets/icons/order.svg';
16
- import { ReactComponent as DeleteIcon } from '../../assets/icons/close.svg';
17
- import CheckBox from '../Checkbox';
18
- import { generateColor } from '../../helpers';
19
- import { COLORS } from '../../constants';
20
- import '../../styles/styles.scss';
21
- var DragAndDrop = function (_a) {
22
- var placeholder = _a.placeholder, options = _a.options, onDragEndFunction = _a.onDragEndFunction, onChangeIsCompletedOption = _a.onChangeIsCompletedOption, onChangeOption = _a.onChangeOption, onClickDeleteOption = _a.onClickDeleteOption, width = _a.width, checkboxColor = _a.checkboxColor, orderColor = _a.orderColor, deleteColor = _a.deleteColor;
23
- var _b = useState(false), isOnDragStart = _b[0], setIsOnDragStart = _b[1];
24
- var isCheckbox = function (option) { return (option === null || option === void 0 ? void 0 : option.isCompleted) !== undefined; };
25
- var reorderOptions = function (_a) {
26
- var options = _a.options, startIndex = _a.startIndex, endIndex = _a.endIndex;
27
- var result = Array.from(options);
28
- result.forEach(function (item, index) {
29
- if (startIndex > endIndex && index < startIndex && index >= endIndex) {
30
- item.orderId = item.orderId + 1;
31
- }
32
- else if (startIndex < endIndex && index > startIndex && index <= endIndex) {
33
- item.orderId = item.orderId - 1;
34
- }
35
- });
36
- var removed = result.splice(startIndex, 1)[0];
37
- removed.orderId = endIndex + 1;
38
- result.splice(endIndex, 0, removed);
39
- return result;
40
- };
41
- var handleDragStart = function () {
42
- if (!isOnDragStart) {
43
- setIsOnDragStart(true);
44
- }
45
- };
46
- var handleDragEnd = function (result) {
47
- setIsOnDragStart(false);
48
- if (!(result === null || result === void 0 ? void 0 : result.destination)) {
49
- return;
50
- }
51
- var newOptions = reorderOptions({ options: options, startIndex: result.source.index, endIndex: result.destination.index });
52
- onDragEndFunction(newOptions);
53
- };
54
- return (_jsx("div", __assign({ style: { width: "".concat(width, "%") }, className: "smartapp-drag-drop" }, { children: _jsx(DragDropContext, __assign({ onDragStart: handleDragStart, onDragEnd: handleDragEnd }, { children: _jsx(Droppable, __assign({ droppableId: "droppable" }, { children: function (provided) { return (_jsx("div", __assign({}, provided.droppableProps, { ref: provided.innerRef, className: "smartapp-drag-drop__container" }, { children: options === null || options === void 0 ? void 0 : options.map(function (instanceOption, index) { return (_jsx(Draggable, __assign({ draggableId: instanceOption.id, index: index }, { children: function (provided) { return (_jsxs("div", __assign({ ref: provided.innerRef }, provided.draggableProps, provided.dragHandleProps, { className: "smartapp-drag-drop__container--instance" }, { children: [_jsxs("div", __assign({ className: "smartapp-drag-drop__container--instance__info" }, { children: [isCheckbox(instanceOption) && onChangeIsCompletedOption && (_jsx(CheckBox, { id: instanceOption.id, isChecked: instanceOption.isCompleted, checkedColor: checkboxColor, onChange: function () { return onChangeIsCompletedOption(instanceOption); } })), onChangeOption ? (_jsx("input", { onChange: function (e) { return onChangeOption && onChangeOption(e, instanceOption); }, defaultValue: instanceOption.defaultValue, className: "smartapp-drag-drop__container--instance__info--name", type: "text", enterKeyHint: "enter", placeholder: placeholder }, instanceOption === null || instanceOption === void 0 ? void 0 : instanceOption.id)) : (_jsx("p", __assign({ className: "smartapp-drag-drop__container--instance__info--name" }, { children: instanceOption.defaultValue })))] })), _jsxs("div", __assign({ className: "smartapp-drag-drop__container--instance__icons" }, { children: [_jsx(OrderIcon, { style: { color: generateColor(orderColor, COLORS.gray) } }), onClickDeleteOption && (_jsx(DeleteIcon, { className: "cp", style: { color: generateColor(deleteColor, COLORS.blue) }, onClick: function () { return onClickDeleteOption(instanceOption); } }))] }))] }))); } }), instanceOption.id)); }) }))); } })) })) })));
55
- };
56
- export default DragAndDrop;
57
- //# sourceMappingURL=DragAndDrop.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DragAndDrop.js","sourceRoot":"","sources":["../../../../src/сomponents/DragAndDrop/DragAndDrop.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AACvC,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC3E,OAAO,EAAE,cAAc,IAAI,SAAS,EAAE,MAAM,8BAA8B,CAAA;AAC1E,OAAO,EAAE,cAAc,IAAI,UAAU,EAAE,MAAM,8BAA8B,CAAA;AAC3E,OAAO,QAAQ,MAAM,aAAa,CAAA;AAElC,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AACxC,OAAO,0BAA0B,CAAA;AAEjC,IAAM,WAAW,GAAG,UAAC,EAWD;QAVlB,WAAW,iBAAA,EACX,OAAO,aAAA,EACP,iBAAiB,uBAAA,EACjB,yBAAyB,+BAAA,EACzB,cAAc,oBAAA,EACd,mBAAmB,yBAAA,EACnB,KAAK,WAAA,EACL,aAAa,mBAAA,EACb,UAAU,gBAAA,EACV,WAAW,iBAAA;IAEL,IAAA,KAAoC,QAAQ,CAAU,KAAK,CAAC,EAA3D,aAAa,QAAA,EAAE,gBAAgB,QAA4B,CAAA;IAElE,IAAM,UAAU,GAAG,UAAC,MAA0B,IAAK,OAAA,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,WAAW,MAAK,SAAS,EAAjC,CAAiC,CAAA;IAEpF,IAAM,cAAc,GAAG,UAAC,EAAkD;YAAhD,OAAO,aAAA,EAAE,UAAU,gBAAA,EAAE,QAAQ,cAAA;QACrD,IAAM,MAAM,GAAG,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;QAElC,MA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AAC,CAAC,CAAC,CACF,qBAAG,SAAS,EAAC,qDAAqD,gBAAE,cAAc,CAAC,YAAY,IAAK,CACrG,KACG,EACN,wBAAK,SAAS,EAAC,gDAAgD,iBAC7D,KAAC,SAAS,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,aAAa,CAAC,UAAU,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE,GAAI,EACtE,mBAAmB,IAAI,CACtB,KAAC,UAAU,IACT,SAAS,EAAC,IAAI,EACd,KAAK,EAAE,EAAE,KAAK,EAAE,aAAa,CAAC,WAAW,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE,EACzD,OAAO,EAAE,cAAM,OAAA,mBAAmB,CAAC,cAAc,CAAC,EAAnC,CAAmC,GAClD,CACH,KACG,KACF,CACP,EAzCc,CAyCd,KA1Ca,cAAc,CAAC,EAAE,CA2CrB,CACb,EA7CgD,CA6ChD,CAAC,IACE,CACP,EAjDc,CAiDd,IACS,IACI,IACd,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,WAAW,CAAA"}
@@ -1,2 +0,0 @@
1
- export { default } from './DragAndDrop';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/DragAndDrop/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/DragAndDrop/types.ts"],"names":[],"mappings":""}
@@ -1,124 +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 } from "react/jsx-runtime";
13
- import { useEffect, useRef, useState } from 'react';
14
- import Draggable from 'react-draggable';
15
- import classNames from 'classnames';
16
- import Modal from '../Modal';
17
- import { EVENT_LISTENER_TYPES } from '../../constants';
18
- import '../../styles/styles.scss';
19
- var DEFAULT_DRAGGABLE_PADDING = {
20
- top: 20,
21
- bottom: 20,
22
- right: 20,
23
- left: 20,
24
- };
25
- var OFFSET_POPUP_X_BY_CLICK = 30;
26
- var OFFSET_POPUP_Y_BY_CLICK = 10;
27
- var DEFAULT_POPUP_POSITION = { x: 40, y: 40 };
28
- var CONTEXT_MENU_OFFSET = 41;
29
- var calculateNewX = function (_a) {
30
- var currentX = _a.currentX, leftPadding = _a.leftPadding, rightPadding = _a.rightPadding, zoneWidth = _a.zoneWidth, popupWidth = _a.popupWidth;
31
- var maxPointX = zoneWidth - popupWidth - rightPadding;
32
- if (currentX < leftPadding) {
33
- return leftPadding;
34
- }
35
- else if (currentX > maxPointX) {
36
- return maxPointX;
37
- }
38
- return currentX;
39
- };
40
- var calculateNewY = function (_a) {
41
- var currentY = _a.currentY, topPadding = _a.topPadding, bottomPadding = _a.bottomPadding, zoneHeight = _a.zoneHeight, popupHeight = _a.popupHeight;
42
- var maxPointY = zoneHeight - popupHeight - bottomPadding;
43
- if (currentY < topPadding) {
44
- return topPadding;
45
- }
46
- else if (currentY > maxPointY) {
47
- return maxPointY;
48
- }
49
- return currentY;
50
- };
51
- var DraggablePopup = function (_a) {
52
- var draggableZoneRef = _a.draggableZoneRef, popupContent = _a.popupContent, isPopupOpen = _a.isPopupOpen, handleClose = _a.handleClose, popupCoords = _a.popupCoords, _b = _a.title, title = _b === void 0 ? '' : _b, bottomContent = _a.bottomContent, _c = _a.dropZonePadding, dropZonePadding = _c === void 0 ? DEFAULT_DRAGGABLE_PADDING : _c, _d = _a.offsetScrollY, offsetScrollY = _d === void 0 ? 0 : _d, handleChangeCoords = _a.handleChangeCoords, _e = _a.offsetPopupByClick, offsetPopupByClick = _e === void 0 ? { offsetPopupXByClick: OFFSET_POPUP_X_BY_CLICK, offsetPopupYByClick: OFFSET_POPUP_Y_BY_CLICK } : _e, maxPopupHeight = _a.maxPopupHeight, contextMenuProps = _a.contextMenuProps, _f = _a.popupClassName, popupClassName = _f === void 0 ? '' : _f;
53
- var _g = useState(null), draggableZoneInfo = _g[0], setDraggableZoneInfo = _g[1];
54
- var _h = useState(null), popupPosition = _h[0], setPopupPosition = _h[1];
55
- var _j = useState(false), isDraggable = _j[0], setIsDraggable = _j[1];
56
- var _k = useState(false), isOutside = _k[0], setIsOutside = _k[1];
57
- var _l = useState(false), wasDraggable = _l[0], setWasDraggable = _l[1];
58
- var _m = useState(null), currentContextMenuProps = _m[0], setCurrentContextMenuProps = _m[1];
59
- var _o = draggableZoneInfo || {}, width = _o.width, height = _o.height, top = _o.top, bottom = _o.bottom, right = _o.right, left = _o.left;
60
- var popupRef = useRef(null);
61
- useEffect(function () {
62
- var topPadding = dropZonePadding.top, bottomPadding = dropZonePadding.bottom, leftPadding = dropZonePadding.left, rightPadding = dropZonePadding.right;
63
- var draggableZoneRefCurrent = draggableZoneRef.current;
64
- var popupRefCurrent = popupRef.current;
65
- var updatePosition = function () {
66
- if (!draggableZoneRefCurrent || !popupRefCurrent || !popupCoords)
67
- return;
68
- var _a = draggableZoneRefCurrent.getBoundingClientRect(), zoneWidth = _a.width, zoneHeight = _a.height, topOffsetByPage = _a.top, leftOffsetByPage = _a.left;
69
- var _b = popupRefCurrent.getBoundingClientRect(), popupWidth = _b.width, popupHeight = _b.height;
70
- var x = popupCoords.x, y = popupCoords.y;
71
- var offsetPopupXByClick = offsetPopupByClick.offsetPopupXByClick, offsetPopupYByClick = offsetPopupByClick.offsetPopupYByClick;
72
- var currentOffsetY = wasDraggable ? 0 : offsetPopupYByClick - topOffsetByPage;
73
- var currentOffsetX = wasDraggable ? 0 : offsetPopupXByClick - leftOffsetByPage;
74
- var currentZoneHeight = zoneHeight + offsetScrollY;
75
- var newX = calculateNewX({ currentX: x + currentOffsetX, leftPadding: leftPadding, rightPadding: rightPadding, zoneWidth: zoneWidth, popupWidth: popupWidth });
76
- var newY = calculateNewY({ currentY: y + currentOffsetY, topPadding: topPadding, bottomPadding: bottomPadding, zoneHeight: zoneHeight, popupHeight: popupHeight });
77
- setPopupPosition({ x: newX, y: newY });
78
- if (contextMenuProps) {
79
- var _c = contextMenuProps.menuWidth, menuWidth = _c === void 0 ? 0 : _c;
80
- setCurrentContextMenuProps(__assign(__assign({}, contextMenuProps), { position: { x: popupWidth - CONTEXT_MENU_OFFSET - menuWidth, y: CONTEXT_MENU_OFFSET } }));
81
- }
82
- setDraggableZoneInfo({
83
- width: zoneWidth,
84
- height: currentZoneHeight,
85
- top: topPadding,
86
- right: zoneWidth - popupWidth - rightPadding,
87
- left: leftPadding,
88
- bottom: zoneHeight - popupHeight - bottomPadding,
89
- });
90
- };
91
- var resizeObserver = new ResizeObserver(updatePosition);
92
- if (popupRefCurrent)
93
- resizeObserver.observe(popupRefCurrent);
94
- return function () {
95
- resizeObserver.disconnect();
96
- };
97
- /* eslint-disable-next-line */
98
- }, [isPopupOpen, draggableZoneRef, popupRef, popupCoords, dropZonePadding, offsetScrollY, wasDraggable, contextMenuProps]);
99
- useEffect(function () {
100
- var checkIfClickedOutside = function (e) {
101
- if (isPopupOpen && popupRef.current && !popupRef.current.contains(e.target) && !isOutside)
102
- handleClose();
103
- };
104
- document === null || document === void 0 ? void 0 : document.addEventListener(EVENT_LISTENER_TYPES.click, checkIfClickedOutside, true);
105
- return function () {
106
- document === null || document === void 0 ? void 0 : document.removeEventListener(EVENT_LISTENER_TYPES.click, checkIfClickedOutside, true);
107
- };
108
- }, [isPopupOpen, handleClose, isOutside]);
109
- if (!isPopupOpen || !draggableZoneRef)
110
- return null;
111
- var handleDragStop = function (_a) {
112
- var x = _a.x, y = _a.y;
113
- setIsDraggable(false);
114
- !wasDraggable && setWasDraggable(true);
115
- handleChangeCoords({ x: x, y: y });
116
- setPopupPosition({ x: x, y: y });
117
- };
118
- var handleDragStart = function () { return setIsDraggable(true); };
119
- var handleMouseLeave = function () { return isDraggable && setIsOutside(true); };
120
- var handleMouseEnter = function () { return setIsOutside(false); };
121
- return (_jsx("div", __assign({ onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, style: { width: width, height: height }, className: "smartapp-draggable-popup" }, { children: _jsx(Draggable, __assign({ onStart: handleDragStart, onStop: function (_, data) { return handleDragStop(data); }, position: popupPosition || DEFAULT_POPUP_POSITION, bounds: { top: top, right: right, left: left, bottom: bottom } }, { children: _jsx("div", __assign({ ref: popupRef, className: classNames("smartapp-draggable-popup__popup-container ".concat(popupClassName), { 'invisible-content': !popupPosition }) }, { children: _jsx(Modal, { isModalOpen: isPopupOpen, content: popupContent, isPopup: true, handleCloseModal: handleClose, title: title, bottomContent: bottomContent, className: "smartapp-draggable-popup__popup-container--modal", modalMaxHeight: maxPopupHeight, contextMenuProps: currentContextMenuProps || undefined }) })) })) })));
122
- };
123
- export default DraggablePopup;
124
- //# sourceMappingURL=DraggablePopup.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DraggablePopup.js","sourceRoot":"","sources":["../../../../src/сomponents/DraggablePopup/DraggablePopup.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC1D,OAAO,SAA4B,MAAM,iBAAiB,CAAA;AAC1D,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,MAAM,UAAU,CAAA;AAC5B,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAA;AAEtD,OAAO,0BAA0B,CAAA;AAEjC,IAAM,yBAAyB,GAAG;IAChC,GAAG,EAAE,EAAE;IACP,MAAM,EAAE,EAAE;IACV,KAAK,EAAE,EAAE;IACT,IAAI,EAAE,EAAE;CACT,CAAA;AAED,IAAM,uBAAuB,GAAG,EAA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AE,QAAQ,EACb,SAAS,EAAE,UAAU,CAAC,oDAA6C,cAAc,CAAE,EAAE,EAAE,mBAAmB,EAAE,CAAC,aAAa,EAAE,CAAC,gBAE7H,KAAC,KAAK,IACJ,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,YAAY,EACrB,OAAO,QACP,gBAAgB,EAAE,WAAW,EAC7B,KAAK,EAAE,KAAK,EACZ,aAAa,EAAE,aAAa,EAC5B,SAAS,EAAC,kDAAkD,EAC5D,cAAc,EAAE,cAAc,EAC9B,gBAAgB,EAAE,uBAAuB,IAAI,SAAS,GACtD,IACE,IACI,IACR,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,cAAc,CAAA"}
@@ -1,2 +0,0 @@
1
- export { default } from './DraggablePopup';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/DraggablePopup/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/DraggablePopup/types.ts"],"names":[],"mappings":""}
@@ -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 classNames from 'classnames';
14
- import { generateColor } from '../../helpers';
15
- import { COLORS } from '../../constants';
16
- import { ReactComponent as ErrorIcon } from '../../assets/icons/error.svg';
17
- import '../../styles/styles.scss';
18
- var Error = function (_a) {
19
- var _b = _a.title, title = _b === void 0 ? 'Ошибка' : _b, _c = _a.text, text = _c === void 0 ? 'Попробуйте еще раз' : _c, _d = _a.width, width = _d === void 0 ? 100 : _d, className = _a.className, styles = _a.styles, iconColor = _a.iconColor;
20
- return (_jsxs("div", __assign({ className: classNames('smartapp-error', className), style: __assign({ width: "".concat(width, "%") }, styles) }, { children: [_jsx("div", __assign({ className: "smartapp-error__icon" }, { children: _jsx(ErrorIcon, { style: { color: generateColor(iconColor, COLORS.gray) } }) })), _jsx("p", __assign({ className: "smartapp-error__title" }, { children: title })), _jsx("p", __assign({ className: "smartapp-error__text" }, { children: text }))] })));
21
- };
22
- export default Error;
23
- //# sourceMappingURL=Error.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Error.js","sourceRoot":"","sources":["../../../../src/сomponents/Error/Error.tsx"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,UAAU,MAAM,YAAY,CAAA;AAEnC,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AACxC,OAAO,EAAE,cAAc,IAAI,SAAS,EAAE,MAAM,8BAA8B,CAAA;AAC1E,OAAO,0BAA0B,CAAA;AAEjC,IAAM,KAAK,GAAG,UAAC,EAAyG;QAAvG,aAAgB,EAAhB,KAAK,mBAAG,QAAQ,KAAA,EAAE,YAA2B,EAA3B,IAAI,mBAAG,oBAAoB,KAAA,EAAE,aAAW,EAAX,KAAK,mBAAG,GAAG,KAAA,EAAE,SAAS,eAAA,EAAE,MAAM,YAAA,EAAE,SAAS,eAAA;IAAoB,OAAA,CAC3H,wBAAK,SAAS,EAAE,UAAU,CAAC,gBAAgB,EAAE,SAAS,CAAC,EAAE,KAAK,aAAI,KAAK,EAAE,UAAG,KAAK,MAAG,IAAK,MAAM,kBAC7F,uBAAK,SAAS,EAAC,sBAAsB,gBACnC,KAAC,SAAS,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,aAAa,CAAC,SAAS,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE,GAAI,IAClE,EACN,qBAAG,SAAS,EAAC,uBAAuB,gBAAE,KAAK,IAAK,EAChD,qBAAG,SAAS,EAAC,sBAAsB,gBAAE,IAAI,IAAK,KAC1C,CACP;AAR4H,CAQ5H,CAAA;AAED,eAAe,KAAK,CAAA"}
@@ -1,2 +0,0 @@
1
- export { default } from './Error';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/Error/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/Error/types.ts"],"names":[],"mappings":""}
@@ -1,49 +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 { jsx as _jsx } from "react/jsx-runtime";
24
- import classNames from 'classnames';
25
- import { ROW } from '../../constants';
26
- var ALIGN_CLASSES = {
27
- start: 'align-start',
28
- end: 'align-end',
29
- center: 'align-center',
30
- };
31
- var JUSTIFY_CLASSES = {
32
- start: 'justify-start',
33
- end: 'justify-end',
34
- center: 'justify-center',
35
- between: 'justify-between',
36
- };
37
- var DIRECTION_CLASSES = {
38
- row: 'direction-row',
39
- column: 'direction-column',
40
- };
41
- var START = 'start';
42
- var SMARTAPP_FLEX = 'smartapp-flex';
43
- export var Flex = function (_a) {
44
- var className = _a.className, children = _a.children, _b = _a.justify, justify = _b === void 0 ? START : _b, _c = _a.direction, direction = _c === void 0 ? ROW : _c, _d = _a.align, align = _d === void 0 ? START : _d, gap = _a.gap, _e = _a.wrap, wrap = _e === void 0 ? false : _e, _f = _a.fullWidth, fullWidth = _f === void 0 ? false : _f, props = __rest(_a, ["className", "children", "justify", "direction", "align", "gap", "wrap", "fullWidth"]);
45
- var mods = { wrap: wrap, 'full-width': fullWidth };
46
- var classes = [className, JUSTIFY_CLASSES[justify], ALIGN_CLASSES[align], DIRECTION_CLASSES[direction]];
47
- return (_jsx("div", __assign({ style: { gap: "".concat(gap, "px") }, className: classNames(SMARTAPP_FLEX, mods, classes) }, props, { children: children })));
48
- };
49
- //# sourceMappingURL=Flex.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Flex.js","sourceRoot":"","sources":["../../../../src/сomponents/Flex/Flex.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,UAAU,MAAM,YAAY,CAAA;AAGnC,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAA;AAErC,IAAM,aAAa,GAA+B;IAChD,KAAK,EAAE,aAAa;IACpB,GAAG,EAAE,WAAW;IAChB,MAAM,EAAE,cAAc;CACvB,CAAA;AAED,IAAM,eAAe,GAAiC;IACpD,KAAK,EAAE,eAAe;IACtB,GAAG,EAAE,aAAa;IAClB,MAAM,EAAE,gBAAgB;IACxB,OAAO,EAAE,iBAAiB;CAC3B,CAAA;AAED,IAAM,iBAAiB,GAAmC;IACxD,GAAG,EAAE,eAAe;IACpB,MAAM,EAAE,kBAAkB;CAC3B,CAAA;AAED,IAAM,KAAK,GAAG,OAAO,CAAA;AACrB,IAAM,aAAa,GAAG,eAAe,CAAA;AAErC,MAAM,CAAC,IAAM,IAAI,GAAG,UAAC,EAUb;IATN,IAAA,SAAS,eAAA,EACT,QAAQ,cAAA,EACR,eAAe,EAAf,OAAO,mBAAG,KAAK,KAAA,EACf,iBAAe,EAAf,SAAS,mBAAG,GAAG,KAAA,EACf,aAAa,EAAb,KAAK,mBAAG,KAAK,KAAA,EACb,GAAG,SAAA,EACH,YAAY,EAAZ,IAAI,mBAAG,KAAK,KAAA,EACZ,iBAAiB,EAAjB,SAAS,mBAAG,KAAK,KAAA,EACd,KAAK,cATW,sFAUpB,CADS;IAER,IAAM,IAAI,GAAG,EAAE,IAAI,MAAA,EAAE,YAAY,EAAE,SAAS,EAAE,CAAA;IAC9C,IAAM,OAAO,GAAG,CAAC,SAAS,EAAE,eAAe,CAAC,OAAO,CAAC,EAAE,aAAa,CAAC,KAAK,CAAC,EAAE,iBAAiB,CAAC,SAAS,CAAC,CAAC,CAAA;IAEzG,OAAO,CACL,uBAAK,KAAK,EAAE,EAAE,GAAG,EAAE,UAAG,GAAG,OAAI,EAAE,EAAE,SAAS,EAAE,UAAU,CAAC,aAAa,EAAE,IAAI,EAAE,OAAO,CAAC,IAAM,KAAK,cAC5F,QAAQ,IACL,CACP,CAAA;AACH,CAAC,CAAA"}
@@ -1,16 +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 } from "react/jsx-runtime";
13
- import { Flex } from '..';
14
- import { ROW } from '../../../constants';
15
- export var HFlex = function (props) { return _jsx(Flex, __assign({}, props, { direction: ROW })); };
16
- //# sourceMappingURL=HFlex.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HFlex.js","sourceRoot":"","sources":["../../../../../src/сomponents/Flex/HFlex/HFlex.tsx"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,EAAE,IAAI,EAAE,MAAM,IAAI,CAAA;AAEzB,OAAO,EAAa,GAAG,EAAE,MAAM,oBAAoB,CAAA;AAInD,MAAM,CAAC,IAAM,KAAK,GAAG,UAAC,KAAa,IAAK,OAAA,KAAC,IAAI,eAAK,KAAK,IAAE,SAAS,EAAE,GAAG,IAAI,EAAnC,CAAmC,CAAA"}
@@ -1,2 +0,0 @@
1
- export { HFlex } from './HFlex';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/сomponents/Flex/HFlex/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA"}
@@ -1,16 +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 } from "react/jsx-runtime";
13
- import { Flex } from '..';
14
- var COLUMN = 'column';
15
- export var VFlex = function (props) { return _jsx(Flex, __assign({}, props, { direction: COLUMN })); };
16
- //# sourceMappingURL=VFlex.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"VFlex.js","sourceRoot":"","sources":["../../../../../src/сomponents/Flex/VFlex/VFlex.tsx"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,EAAE,IAAI,EAAE,MAAM,IAAI,CAAA;AAMzB,IAAM,MAAM,GAAG,QAAQ,CAAA;AAEvB,MAAM,CAAC,IAAM,KAAK,GAAG,UAAC,KAAa,IAAK,OAAA,KAAC,IAAI,eAAK,KAAK,IAAE,SAAS,EAAE,MAAM,IAAI,EAAtC,CAAsC,CAAA"}
@@ -1,2 +0,0 @@
1
- export { VFlex } from './VFlex';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/сomponents/Flex/VFlex/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA"}
@@ -1,4 +0,0 @@
1
- export { Flex } from './Flex';
2
- export { VFlex } from './VFlex';
3
- export { HFlex } from './HFlex';
4
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/Flex/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/Flex/types.ts"],"names":[],"mappings":""}