@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 +0,0 @@
1
- {"version":3,"file":"Checkbox.js","sourceRoot":"","sources":["../../../../src/сomponents/Checkbox/Checkbox.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAChD,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,cAAc,IAAI,SAAS,EAAE,MAAM,mCAAmC,CAAA;AAE/E,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AACxC,OAAO,0BAA0B,CAAA;AAEjC,IAAM,QAAQ,GAAG,UAAC,EAUD;QATf,EAAE,QAAA,EACF,kBAAkB,EAAlB,UAAU,mBAAG,KAAK,KAAA,EAClB,iBAAiB,EAAjB,SAAS,mBAAG,KAAK,KAAA,EACjB,SAAS,eAAA,EACT,MAAM,YAAA,EACN,YAAY,kBAAA,EACZ,iBAAiB,uBAAA,EACjB,mBAAmB,yBAAA,EACnB,gBAAgC,EAAhC,QAAQ,mBAAG,cAAY,OAAA,SAAS,EAAT,CAAS,KAAA;IAEhC,IAAM,WAAW,GAAG,MAAM,CAAwB,IAAI,CAAC,CAAA;IAEvD,SAAS,CAAC;QACR,QAAQ,CAAC,eAAe,CAAC,KAAK,CAAC,WAAW,CAAC,wBAAwB,EAAE,aAAa,CAAC,iBAAiB,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAA;QACvH,QAAQ,CAAC,eAAe,CAAC,KAAK,CAAC,WAAW,CAAC,0BAA0B,EAAE,aAAa,CAAC,mBAAmB,EAAE,MAAM,CAAC,UAAU,CAAC,CAAC,CAAA;IAC/H,CAAC,EAAE,CAAC,iBAAiB,EAAE,mBAAmB,CAAC,CAAC,CAAA;IAE5C,SAAS,CAAC;QACR,MAAM,C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
- export { default } from './Checkbox';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/Checkbox/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,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/Checkbox/types.ts"],"names":[],"mappings":""}
@@ -1,35 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
- import { useEffect, useRef } from 'react';
14
- import classNames from 'classnames';
15
- import Avatar from '../Avatar';
16
- import { generateColor } from '../../helpers';
17
- import { COLORS } from '../../constants';
18
- import { ReactComponent as DeleteIcon } from '../../assets/icons/delete-chip.svg';
19
- import '../../styles/styles.scss';
20
- var Chip = function (_a) {
21
- var name = _a.name, avatar = _a.avatar, _b = _a.isAvatarHidden, isAvatarHidden = _b === void 0 ? false : _b, _c = _a.isDisabled, isDisabled = _c === void 0 ? false : _c, _d = _a.isError, isError = _d === void 0 ? false : _d, _e = _a.isEye, isEye = _e === void 0 ? false : _e, className = _a.className, styles = _a.styles, iconColor = _a.iconColor, onDelete = _a.onDelete;
22
- var isChipDisabled = isError ? false : isDisabled;
23
- var chipRef = useRef(null);
24
- useEffect(function () {
25
- window.addEventListener('mouseup', handleMouseUp);
26
- return function () {
27
- window.removeEventListener('mouseup', handleMouseUp);
28
- };
29
- }, []);
30
- var handleMouseDown = function () { var _a; return (_a = chipRef.current) === null || _a === void 0 ? void 0 : _a.classList.add('smartapp-chip__pressed'); };
31
- var handleMouseUp = function () { var _a; return (_a = chipRef.current) === null || _a === void 0 ? void 0 : _a.classList.remove('smartapp-chip__pressed'); };
32
- return (_jsxs("div", __assign({ ref: chipRef, className: classNames('smartapp-chip', { 'smartapp-chip__error': isError, 'smartapp-chip__disabled': isChipDisabled }, className), style: styles }, { children: [_jsxs("div", __assign({ className: "smartapp-chip__info" }, { children: [!isAvatarHidden && !isError && (_jsx(Avatar, { username: name, avatar: avatar, size: 24, isEye: isEye, outlineDefaultBackground: "var(--color-chip)" })), _jsx("p", __assign({ className: "smartapp-chip__info--name" }, { children: name }))] })), !isChipDisabled && onDelete && (_jsx("div", __assign({ className: "smartapp-chip__delete-icon", onClick: function () { return onDelete(name); }, onMouseDown: handleMouseDown }, { children: _jsx(DeleteIcon, { style: { color: generateColor(iconColor, isError ? COLORS.red : COLORS.darkerGray) } }) })))] })));
33
- };
34
- export default Chip;
35
- //# sourceMappingURL=Chip.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Chip.js","sourceRoot":"","sources":["../../../../src/сomponents/Chip/Chip.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAChD,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,MAAM,MAAM,WAAW,CAAA;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAExC,OAAO,EAAE,cAAc,IAAI,UAAU,EAAE,MAAM,oCAAoC,CAAA;AACjF,OAAO,0BAA0B,CAAA;AAEjC,IAAM,IAAI,GAAG,UAAC,EAWD;QAVX,IAAI,UAAA,EACJ,MAAM,YAAA,EACN,sBAAsB,EAAtB,cAAc,mBAAG,KAAK,KAAA,EACtB,kBAAkB,EAAlB,UAAU,mBAAG,KAAK,KAAA,EAClB,eAAe,EAAf,OA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,QAAQ,IAAI,CAC9B,uBAAK,SAAS,EAAC,4BAA4B,EAAC,OAAO,EAAE,cAAM,OAAA,QAAQ,CAAC,IAAI,CAAC,EAAd,CAAc,EAAE,WAAW,EAAE,eAAe,gBACrG,KAAC,UAAU,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,aAAa,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE,GAAI,IAChG,CACP,KACG,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,IAAI,CAAA"}
@@ -1,2 +0,0 @@
1
- export { default } from './Chip';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/Chip/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,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/Chip/types.ts"],"names":[],"mappings":""}
@@ -1,70 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
- import { useEffect, useRef } from 'react';
14
- import classNames from 'classnames';
15
- import Button from '../Button';
16
- import { TButtonVariant } from '../Button/types';
17
- import { PLATFORM, MODAL_BUTTONS_DIRECTION, ROW } from '../../constants';
18
- import { checkIfContentIsCentered, generateClassNames, generateColor, generateIsCloseIconHidden, generateBottomSheetClassName } from '../../helpers';
19
- import { ReactComponent as CloseIcon } from '../../assets/icons/cancel-cross.svg';
20
- import { useModal } from '../../hooks/useModal';
21
- import '../../styles/styles.scss';
22
- var COLUMN_REVERSE = 'column-reverse';
23
- var ConfirmationModal = function (_a) {
24
- var isModalOpen = _a.isModalOpen, _b = _a.isClosableOutside, isClosableOutside = _b === void 0 ? true : _b, _c = _a.isConfirmLoading, isConfirmLoading = _c === void 0 ? false : _c, _d = _a.isCancelLoading, isCancelLoading = _d === void 0 ? false : _d, isCloseIconHidden = _a.isCloseIconHidden, title = _a.title, text = _a.text, cancelButtonName = _a.cancelButtonName, confirmButtonName = _a.confirmButtonName, cancelButtonFunction = _a.cancelButtonFunction, confirmButtonFunction = _a.confirmButtonFunction, handleCloseModal = _a.handleCloseModal, _e = _a.platform, platform = _e === void 0 ? PLATFORM.web : _e, popupClassName = _a.popupClassName, className = _a.className, popupStyles = _a.popupStyles, styles = _a.styles, titleStyles = _a.titleStyles, iconColor = _a.iconColor, backgroundColor = _a.backgroundColor, _f = _a.buttonsDirection, buttonsDirection = _f === void 0 ? MODAL_BUTTONS_DIRECTION.row : _f, _g = _a.isBottomSheet, isBottomSheet = _g === void 0 ? false : _g, _h = _a.isDisabledBottomSheet, isDisabledBottomSheet = _h === void 0 ? false : _h, bottomSheetProps = _a.bottomSheetProps;
25
- var ref = useRef(null);
26
- var titleRef = useRef(null);
27
- var textRef = useRef(null);
28
- var btnsContainerDirection = buttonsDirection === MODAL_BUTTONS_DIRECTION.row ? ROW : COLUMN_REVERSE;
29
- var isCloseIconInvisible = generateIsCloseIconHidden(platform, isCloseIconHidden);
30
- var cancelFunction = handleCloseModal || cancelButtonFunction;
31
- var _j = useModal({
32
- isModalOpen: isModalOpen,
33
- platform: platform,
34
- isDisabledBottomSheet: isDisabledBottomSheet,
35
- initialIsBottomSheet: isBottomSheet,
36
- modalRef: ref,
37
- isClosableOutside: isClosableOutside,
38
- handleCloseModal: cancelFunction,
39
- popupClassName: classNames('confirmation-modal', popupClassName),
40
- popupStyles: popupStyles,
41
- bottomSheetProps: bottomSheetProps,
42
- }), shouldUseBottomSheet = _j.shouldUseBottomSheet, renderModal = _j.renderModal;
43
- var additionalClassName = generateBottomSheetClassName(platform, shouldUseBottomSheet);
44
- useEffect(function () {
45
- document.documentElement.style.setProperty('--confirmation-modal-background', generateColor(backgroundColor));
46
- }, [backgroundColor]);
47
- useEffect(function () {
48
- var checkIfClickedOutside = function (e) {
49
- if (isModalOpen && isClosableOutside && ref.current && !ref.current.contains(e.target)) {
50
- cancelFunction();
51
- }
52
- };
53
- document === null || document === void 0 ? void 0 : document.addEventListener('click', checkIfClickedOutside, true);
54
- return function () {
55
- document === null || document === void 0 ? void 0 : document.removeEventListener('click', checkIfClickedOutside, true);
56
- };
57
- // eslint-disable-next-line react-hooks/exhaustive-deps
58
- }, [isModalOpen, isClosableOutside]);
59
- var renderCloseIconSpace = function (_a) {
60
- var elementRef = _a.elementRef, _b = _a.isContent, isContent = _b === void 0 ? false : _b;
61
- return (_jsx("div", { className: classNames('close-icon-space', {
62
- 'close-icon-space__content': isContent,
63
- 'close-icon-space__centered': checkIfContentIsCentered(elementRef),
64
- }) }));
65
- };
66
- var modalContent = (_jsx("div", __assign({ ref: ref, className: classNames('smartapp-confirmation-modal', { 'smartapp-confirmation-modal__bottom-sheet': shouldUseBottomSheet }, className), style: styles }, { children: _jsxs("div", __assign({ className: generateClassNames({ className: 'smartapp-confirmation-modal__content', delimiter: '--', additionalClassName: additionalClassName }) }, { children: [title && (_jsxs("div", { children: [!isCloseIconInvisible && renderCloseIconSpace({ elementRef: titleRef }), _jsx("p", __assign({ ref: titleRef, className: "smartapp-confirmation-modal__content--title", style: titleStyles }, { children: title }))] })), !isCloseIconInvisible && (_jsx("div", __assign({ onClick: cancelFunction, className: "smartapp-confirmation-modal__content--close-icon" }, { children: _jsx(CloseIcon, { style: { color: generateColor(iconColor) } }) }))), _jsxs("div", { children: [!title && !isCloseIconInvisible && renderCloseIconSpace({ elementRef: textRef, isContent: true }), _jsx("span", __assign({ ref: textRef, className: "smartapp-confirmation-modal__content--text" }, { children: text }))] }), _jsxs("div", __assign({ style: { flexDirection: btnsContainerDirection }, className: "smartapp-confirmation-modal__content--buttons" }, { children: [cancelButtonName && (_jsx(Button, { title: cancelButtonName, isWaitingResponse: isCancelLoading, variant: TButtonVariant.secondary, onClick: cancelButtonFunction, disabled: isConfirmLoading })), _jsx(Button, { isWaitingResponse: isConfirmLoading, title: confirmButtonName, onClick: confirmButtonFunction, disabled: isCancelLoading })] }))] })) })));
67
- return renderModal(modalContent);
68
- };
69
- export default ConfirmationModal;
70
- //# sourceMappingURL=ConfirmationModal.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ConfirmationModal.js","sourceRoot":"","sources":["../../../../src/сomponents/ConfirmationModal/ConfirmationModal.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAa,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAC3D,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,MAAM,MAAM,WAAW,CAAA;AAC9B,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAEhD,OAAO,EAAE,QAAQ,EAAE,uBAAuB,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAA;AACxE,OAAO,EAAE,wBAAwB,EAAE,kBAAkB,EAAE,aAAa,EAAE,yBAAyB,EAAE,4BAA4B,EAAE,MAAM,eAAe,CAAA;AACpJ,OAAO,EAAE,cAAc,IAAI,SAAS,EAAE,MAAM,qCAAqC,CAAA;AACjF,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAC/C,OAAO,0BAA0B,CAAA;AAEjC,IAAM,cAAc,GAAG,gBAAgB,CAAA;AAIvC,IAAM,iBAAiB,GAAG,UAAC,EAyBD;QAxBxB,WAAW,iBAAA,EACX,yBAAwB,EAAxB,iBAAiB,mBAAG,IAAI,KAAA,EACxB,wBAAwB,EAAxB,gBAAgB,mBAAG,KAAK,KAAA,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EAAE,qBAAqB,EAAE,QAAQ,EAAE,eAAe,GAAI,KAChI,KACF,IACF,CACP,CAAA;IAED,OAAO,WAAW,CAAC,YAAY,CAAC,CAAA;AAClC,CAAC,CAAA;AAED,eAAe,iBAAiB,CAAA"}
@@ -1,2 +0,0 @@
1
- export { default } from './ConfirmationModal';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/ConfirmationModal/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,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/ConfirmationModal/types.ts"],"names":[],"mappings":""}
@@ -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 { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
- import { useLayoutEffect, useRef, useState } from 'react';
14
- import classNames from 'classnames';
15
- import Checkbox from '../Checkbox';
16
- import { generateId, isWebPlatform } from '../../helpers';
17
- import { CONTEXT_MENU_SAFE_SPACE, CONTEXT_MENU_WIDTH, PLATFORM } from '../../constants';
18
- import '../../styles/styles.scss';
19
- var ContextMenu = function (_a) {
20
- var _b;
21
- var isMenuOpen = _a.isMenuOpen, _c = _a.isClickForbidden, isClickForbidden = _c === void 0 ? false : _c, _d = _a.isCloseOnItemClick, isCloseOnItemClick = _d === void 0 ? true : _d, _e = _a.position, x = _e.x, y = _e.y, _f = _a.menuWidth, menuWidth = _f === void 0 ? CONTEXT_MENU_WIDTH : _f, containerClassName = _a.containerClassName, menuClassName = _a.menuClassName, itemClassName = _a.itemClassName, containerStyles = _a.containerStyles, _g = _a.menuStyles, menuStyles = _g === void 0 ? {} : _g, _h = _a.itemStyles, itemStyles = _h === void 0 ? {} : _h, items = _a.items, closeMenu = _a.closeMenu, _j = _a.platform, platform = _j === void 0 ? PLATFORM.web : _j;
22
- var elementRef = useRef(null);
23
- var _k = useState(((_b = elementRef === null || elementRef === void 0 ? void 0 : elementRef.current) === null || _b === void 0 ? void 0 : _b.offsetHeight) || 0), contextMenuHeight = _k[0], setContextMenuHeight = _k[1];
24
- var clientHeight = document.documentElement.clientHeight;
25
- var clientWidth = document.documentElement.clientWidth;
26
- var handleContextMenu = function (event) {
27
- event.preventDefault();
28
- !isClickForbidden && closeMenu();
29
- };
30
- var handleMenuItemClick = function (action) { return !isClickForbidden && action(); };
31
- var handleMenuClose = function (_a) {
32
- var event = _a.event, _b = _a.isItemClick, isItemClick = _b === void 0 ? true : _b;
33
- event.stopPropagation();
34
- if (isItemClick && !isCloseOnItemClick)
35
- return;
36
- if (!isClickForbidden)
37
- closeMenu();
38
- };
39
- var handleSortItems = function (_a, _b) {
40
- var isFixedA = _a.isFixedUnderLine;
41
- var isFixedB = _b.isFixedUnderLine;
42
- return Number(!!isFixedA) - Number(!!isFixedB);
43
- };
44
- useLayoutEffect(function () {
45
- var _a;
46
- setContextMenuHeight(((_a = elementRef.current) === null || _a === void 0 ? void 0 : _a.offsetHeight) || 0);
47
- }, [isMenuOpen]);
48
- var renderMenuItemIcon = function (icon) { return icon && _jsx("div", __assign({ className: "smartapp-context-menu__item--content__icon" }, { children: icon })); };
49
- var sortedContextMenuItems = items.sort(handleSortItems);
50
- var firstIndexUnderLine = sortedContextMenuItems.findIndex(function (_a) {
51
- var isFixedUnderLine = _a.isFixedUnderLine;
52
- return isFixedUnderLine;
53
- });
54
- var contextMenuItems = sortedContextMenuItems.map(function (_a, index) {
55
- var _b = _a.isNegativeAction, isNegativeAction = _b === void 0 ? false : _b, _c = _a.isSelected, isSelected = _c === void 0 ? false : _c, _d = _a.isDisabled, isDisabled = _d === void 0 ? false : _d, _e = _a.isWithCheckbox, isWithCheckbox = _e === void 0 ? false : _e, _f = _a.isChecked, isChecked = _f === void 0 ? false : _f, _g = _a.isFixedUnderLine, isFixedUnderLine = _g === void 0 ? false : _g, title = _a.title, icon = _a.icon, action = _a.action;
56
- return (_jsxs("button", __assign({ className: classNames('smartapp-context-menu__item', {
57
- 'smartapp-context-menu__item--checkbox': isWithCheckbox,
58
- 'smartapp-context-menu__item--negative': isNegativeAction,
59
- 'smartapp-context-menu__item--selected': isSelected,
60
- 'smartapp-context-menu__item--disabled': isDisabled,
61
- 'smartapp-context-menu__item--fixed-under-line': isFixedUnderLine && index === firstIndexUnderLine,
62
- 'smartapp-context-menu__item--hover': isWebPlatform(platform) && !isWithCheckbox,
63
- }, itemClassName), disabled: isDisabled, style: itemStyles, onClick: function () { return handleMenuItemClick(action); } }, { children: [_jsxs("div", __assign({ className: classNames('smartapp-context-menu__item--content', {
64
- 'smartapp-context-menu__item--content__fixed-under-line': isFixedUnderLine,
65
- 'smartapp-context-menu__item--checkbox__content': isWithCheckbox,
66
- 'smartapp-context-menu__item--disabled__content': isDisabled,
67
- }) }, { children: [!isFixedUnderLine && renderMenuItemIcon(icon), _jsx("span", { children: title }), isFixedUnderLine && renderMenuItemIcon(icon)] })), isWithCheckbox && _jsx(Checkbox, { id: generateId(), isChecked: isChecked, isDisabled: isDisabled })] }), title));
68
- });
69
- var contextMenuStyles = __assign({ top: y + contextMenuHeight > clientHeight ? clientHeight - contextMenuHeight - CONTEXT_MENU_SAFE_SPACE : y, left: x + menuWidth > clientWidth ? clientWidth - menuWidth - CONTEXT_MENU_SAFE_SPACE : x, width: menuWidth }, menuStyles);
70
- if (!isMenuOpen)
71
- return null;
72
- return (_jsx("div", __assign({ className: classNames('smartapp-context-menu', containerClassName), style: containerStyles, onClick: function (event) { return handleMenuClose({ event: event, isItemClick: false }); }, onContextMenu: handleContextMenu }, { children: _jsx("div", __assign({ ref: elementRef, className: classNames('smartapp-context-menu__items', menuClassName), style: contextMenuStyles, onClick: function (event) { return handleMenuClose({ event: event }); } }, { children: contextMenuItems })) })));
73
- };
74
- export default ContextMenu;
75
- //# sourceMappingURL=ContextMenu.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ContextMenu.js","sourceRoot":"","sources":["../../../../src/сomponents/ContextMenu/ContextMenu.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAgB,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC9E,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,QAAQ,MAAM,aAAa,CAAA;AAClC,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AACzD,OAAO,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAEvF,OAAO,0BAA0B,CAAA;AAOjC,IAAM,WAAW,GAAG,UAAC,EAeD;;QAdlB,UAAU,gBAAA,EACV,wBAAwB,EAAxB,gBAAgB,mBAAG,KAAK,KAAA,EACxB,0BAAyB,EAAzB,kBAAkB,mBAAG,IAAI,KAAA,EACzB,gBAAkB,EAAN,CAAC,OAAA,EAAE,CAAC,OAAA,EAChB,iBAA8B,EAA9B,SAAS,mBAAG,kBAAkB,KAAA,EAC9B,kBAAkB,wBAAA,EAClB,aAAa,mBAAA,EACb,aAAa,mBAAA,EACb,eAAe,qBAAA,EACf,kBAAe,EAAf,UAAU,mBAAG,EAAE,KAAA,EACf,kBAAe,EAAf,UAAU,mBAAG,EAAE,KAAA,EACf,KAAK,WAAA,EACL,SAAS,eAAA,EACT,gBAAuB,EAAvB,QAAQ,mBAAG,QAAQ,CAAC,GAAG,KAAA;IAEvB,IAAM,UAAU,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAA;IAEzC,IAAA,KAA4C,QAAQ,CAAC,CAA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1
- export { default } from './ContextMenu';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/ContextMenu/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/ContextMenu/types.ts"],"names":[],"mappings":""}
@@ -1,220 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
- import { useEffect, useLayoutEffect, useRef, useState } from 'react';
14
- import Select, { components } from 'react-select';
15
- import CreatableSelect from 'react-select/creatable';
16
- import Popup from 'reactjs-popup';
17
- import { isEmpty, max, omit } from 'lodash';
18
- import classNames from 'classnames';
19
- import ListItem from '../ListItem';
20
- import { Skeleton } from '../Skeleton';
21
- import { isValueEqualToZero } from '../../helpers';
22
- import { CREATABLE_MENU_LIST_MAX_HEIGHT, ENTER_KEY, FILL_TYPE, MENU_LIST_MAX_HEIGHT, MENU_POSITIONS, POPUP_ON_EVENT_TYPE } from '../../constants';
23
- import { DEFAULT_INDICATOR_COLOR, NOT_INTERACTIVE_ELEMENT } from '../ListItem/ListItem';
24
- import selectStyles from './selectStyles';
25
- import { ReactComponent as ArrowUpIcon } from '../../assets/icons/arrow-up.svg';
26
- import { ReactComponent as ArrowDownIcon } from '../../assets/icons/arrow-down.svg';
27
- import { ReactComponent as ClearIcon } from '../../assets/icons/clear.svg';
28
- import '../../styles/styles.scss';
29
- var DropdownIndicator = function (props) {
30
- var isHidden = props.isHidden, menuIsOpen = props.selectProps.menuIsOpen;
31
- return !isHidden ? _jsx(components.DropdownIndicator, __assign({}, props, { children: menuIsOpen ? _jsx(ArrowUpIcon, {}) : _jsx(ArrowDownIcon, {}) })) : null;
32
- };
33
- var ClearIndicator = function (props) { return (_jsx(components.ClearIndicator, __assign({}, props, { children: _jsx(ClearIcon, {}) }))); };
34
- export var generateListItemTextRect = function (listItemTextRef) {
35
- var listItemTextRefCurrent = listItemTextRef.current;
36
- var listItemTextRect = listItemTextRefCurrent === null || listItemTextRefCurrent === void 0 ? void 0 : listItemTextRefCurrent.getBoundingClientRect();
37
- var _a = listItemTextRefCurrent || {}, _b = _a.scrollWidth, scrollWidth = _b === void 0 ? 0 : _b, _c = _a.clientWidth, clientWidth = _c === void 0 ? 0 : _c;
38
- var _d = listItemTextRect || {}, _e = _d.left, left = _e === void 0 ? 0 : _e, _f = _d.top, top = _f === void 0 ? 0 : _f, _g = _d.right, right = _g === void 0 ? 0 : _g;
39
- return {
40
- scrollWidth: scrollWidth,
41
- clientWidth: clientWidth,
42
- left: left + POPUP_LEFT_INDENT,
43
- top: top + POPUP_TOP_INDENT,
44
- maxWidth: right - left - POPUP_LEFT_INDENT - OPTION_INDENTS,
45
- };
46
- };
47
- var Option = function (props) {
48
- var label = props.label, isSelected = props.isSelected, isOptionsWithTooltip = props.isOptionsWithTooltip, _a = props.data, isCreatable = _a.isCreatable, isDisabled = _a.isDisabled, _b = _a.element, element = _b === void 0 ? NOT_INTERACTIVE_ELEMENT.noElement : _b, secondaryText = _a.secondaryText, secondaryTextColor = _a.secondaryTextColor, color = _a.color, styles = _a.styles, onDisabledOptionClick = props.onDisabledOptionClick;
49
- var optionComponentRef = useRef(null);
50
- var listItemTextRef = useRef(null);
51
- var _c = useState(''), listItemTextWidth = _c[0], setListItemTextWidth = _c[1];
52
- var _d = useState(0), popupLeft = _d[0], setPopupLeft = _d[1];
53
- var _e = useState(0), popupTop = _e[0], setPopupTop = _e[1];
54
- var _f = useState(0), popupMaxWidth = _f[0], setPopupMaxWidth = _f[1];
55
- var _g = generateListItemTextRect(listItemTextRef), scrollWidth = _g.scrollWidth, clientWidth = _g.clientWidth, left = _g.left, top = _g.top, maxWidth = _g.maxWidth;
56
- var isTooltipAvailable = scrollWidth > clientWidth;
57
- var generateListItemTextWidth = function () {
58
- var _a;
59
- var listItemTextElement = (_a = optionComponentRef.current) === null || _a === void 0 ? void 0 : _a.querySelector('.smartapp-list-item__text');
60
- if (!listItemTextElement)
61
- return '';
62
- var _b = window.getComputedStyle(listItemTextElement), paddingLeft = _b.paddingLeft, paddingRight = _b.paddingRight;
63
- return paddingLeft || paddingRight ? "calc(100% - ".concat(paddingLeft, " - ").concat(paddingRight, ")") : '';
64
- };
65
- useEffect(function () {
66
- setPopupLeft(left);
67
- setPopupTop(top);
68
- setPopupMaxWidth(maxWidth);
69
- }, [left, top, maxWidth]);
70
- useLayoutEffect(function () {
71
- setListItemTextWidth(generateListItemTextWidth());
72
- }, []);
73
- var handleOptionClick = function () { return isDisabled && onDisabledOptionClick(); };
74
- var renderListItem = function () { return (_jsx(ListItem, { textRef: listItemTextRef, type: "not-interactive", element: element, text: label, secondaryText: secondaryText, secondaryTextColor: secondaryTextColor, color: color, isSelected: isSelected && !isCreatable, isDisabled: isDisabled, textStyles: __assign(__assign({}, styles), { width: listItemTextWidth }) })); };
75
- return (_jsx("div", __assign({ onClick: handleOptionClick }, { children: _jsx(components.Option, __assign({}, props, { innerRef: optionComponentRef, className: classNames({ 'smartapp-option-with-tooltip': isOptionsWithTooltip }) }, { children: isTooltipAvailable ? (_jsx(Popup, __assign({ className: "select-label", contentStyle: {
76
- '--select-label-content-left': "".concat(popupLeft, "px"),
77
- '--select-label-content-top': "".concat(popupTop, "px"),
78
- '--select-label-content-max-width': "".concat(popupMaxWidth, "px"),
79
- }, on: [POPUP_ON_EVENT_TYPE.hover], mouseEnterDelay: POPUP_APPEARANCE_DELAY, trigger: function () { return _jsx("div", __assign({ className: "w-100" }, { children: renderListItem() })); } }, { children: _jsx("div", { children: label }) }))) : (renderListItem()) })) })));
80
- };
81
- var SingleValueComponent = function (props) {
82
- var isDisabled = props.isDisabled, _a = props.data, _b = _a.element, element = _b === void 0 ? NOT_INTERACTIVE_ELEMENT.noElement : _b, _c = _a.color, color = _c === void 0 ? DEFAULT_INDICATOR_COLOR : _c, children = props.children;
83
- var renderIndicatorElement = function () {
84
- var _a;
85
- var indicatorColorClassName = "smartapp-list-item__indicator--".concat(color);
86
- var className = classNames('smartapp-list-item__indicator', indicatorColorClassName, (_a = {},
87
- _a["".concat(indicatorColorClassName, "__disabled")] = isDisabled,
88
- _a));
89
- return element === NOT_INTERACTIVE_ELEMENT.indicator ? _jsx("div", { className: className }) : null;
90
- };
91
- return (_jsxs(components.SingleValue, __assign({}, props, { children: [renderIndicatorElement(), _jsx("div", __assign({ className: "smartapp-custom-select__selected-value" }, { children: children }))] })));
92
- };
93
- var MenuList = function (props) {
94
- var selectWidth = props.selectWidth, optionHeight = props.optionHeight, setOptionHeight = props.setOptionHeight, children = props.children;
95
- var menuListRef = useRef(null);
96
- useLayoutEffect(function () {
97
- var _a;
98
- if (menuListRef.current && isValueEqualToZero(optionHeight)) {
99
- var options = (_a = menuListRef.current) === null || _a === void 0 ? void 0 : _a.querySelectorAll('[role="option"]');
100
- var optionsHeights = Array.from(options).map(function (option) { return option.getBoundingClientRect().height; });
101
- !isEmpty(optionsHeights) && setOptionHeight(max(optionsHeights));
102
- }
103
- }, [optionHeight, setOptionHeight, selectWidth]);
104
- return (_jsx(components.MenuList, __assign({}, props, { innerRef: menuListRef }, { children: children })));
105
- };
106
- var LoadingMessage = function (_a) {
107
- var _b = _a.isCreatableSelect, isCreatableSelect = _b === void 0 ? false : _b;
108
- var ref = useRef(null);
109
- return (_jsx("div", __assign({ ref: ref, className: classNames('smartapp-custom-select__loading-message', { 'smartapp-custom-select__loading-message--creatable': isCreatableSelect }) }, { children: Array.from({ length: LOADING_MESSAGE_ITEMS }, function (_, index) { return (_jsxs("div", __assign({ className: classNames('smartapp-custom-select__loading-message--item', {
110
- 'smartapp-custom-select__loading-message--item__creatable': isCreatableSelect,
111
- }) }, { children: [_jsx(Skeleton, { containerRef: ref, className: "smartapp-custom-select__loading-message--item__first", borderRadius: 8 }), isCreatableSelect && _jsx(Skeleton, { containerRef: ref, className: "smartapp-custom-select__loading-message--item__second", borderRadius: 8 })] }), index)); }) })));
112
- };
113
- var NoOptionsMessage = function (props) {
114
- var noOptionsMessage = props.noOptionsMessage, children = props.children;
115
- return noOptionsMessage ? _jsx(components.NoOptionsMessage, __assign({}, props, { children: children })) : null;
116
- };
117
- var Input = function (props) { return _jsx(components.Input, __assign({}, props, { isHidden: false })); };
118
- var IndicatorSeparator = function () { return null; };
119
- var LoadingIndicator = function () { return null; };
120
- var POPUP_LEFT_INDENT = 13;
121
- var POPUP_TOP_INDENT = 26;
122
- var OPTION_INDENTS = 24;
123
- var POPUP_APPEARANCE_DELAY = 1000;
124
- var LOADING_MESSAGE_ITEMS = 6;
125
- var IS_CREATABLE_FIELD_NAME = 'isCreatable';
126
- var EMPTY_SELECTED_VALUE = { value: '', label: '' };
127
- var ACTIONS = {
128
- clear: 'clear',
129
- inputChange: 'input-change',
130
- };
131
- var CustomSelect = function (_a) {
132
- var _b = _a.isLoading, isLoading = _b === void 0 ? false : _b, _c = _a.isSearchable, isSearchable = _c === void 0 ? false : _c, _d = _a.isCreatable, isCreatable = _d === void 0 ? false : _d, _e = _a.isDisabled, isDisabled = _e === void 0 ? false : _e, _f = _a.isOptionsWithTooltip, isOptionsWithTooltip = _f === void 0 ? false : _f, _g = _a.fillType, fillType = _g === void 0 ? FILL_TYPE.primary : _g, _h = _a.width, width = _h === void 0 ? 100 : _h, menuListMaxHeight = _a.menuListMaxHeight, containerClassName = _a.containerClassName, containerStyles = _a.containerStyles, title = _a.title, placeholder = _a.placeholder, hint = _a.hint, noOptionsMessage = _a.noOptionsMessage, error = _a.error, _j = _a.menuPosition, menuPosition = _j === void 0 ? MENU_POSITIONS.bottom : _j, menuLocation = _a.menuLocation, defaultValue = _a.defaultValue, options = _a.options, onChange = _a.onChange, _k = _a.onDisabledOptionClick, onDisabledOptionClick = _k === void 0 ? function () { } : _k, _l = _a.onMenuOpen, onMenuOpen = _l === void 0 ? function () { } : _l;
133
- var selectRef = useRef(null);
134
- var _m = useState(), value = _m[0], setValue = _m[1];
135
- var _o = useState(''), inputValue = _o[0], setInputValue = _o[1];
136
- var _p = useState(false), isInputFocused = _p[0], setIsInputFocused = _p[1];
137
- var _q = useState(0), optionHeight = _q[0], setOptionHeight = _q[1];
138
- var selectRefCurrent = selectRef.current;
139
- var isSelectClearable = isInputFocused && !isEmpty(inputValue);
140
- useLayoutEffect(function () { return setOptionHeight(0); }, [width]);
141
- useEffect(function () {
142
- if (defaultValue) {
143
- setValue(defaultValue);
144
- setInputValue(defaultValue.label);
145
- }
146
- // eslint-disable-next-line
147
- }, [defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.value, defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.label]);
148
- var generateMenuListMaxHeight = function () {
149
- var defaultMenuListMaxHeight = isCreatable ? CREATABLE_MENU_LIST_MAX_HEIGHT : MENU_LIST_MAX_HEIGHT;
150
- return menuListMaxHeight || defaultMenuListMaxHeight;
151
- };
152
- var renderTitle = function () {
153
- return title && (_jsx("div", __assign({ className: "smartapp-custom-select__title" }, { children: _jsx("div", __assign({ className: "smartapp-custom-select__title--text" }, { children: title })) })));
154
- };
155
- var renderHint = function () { return hint && _jsx("div", __assign({ className: "smartapp-custom-select__hint" }, { children: hint })); };
156
- var renderError = function () { return error && _jsx("div", __assign({ className: "smartapp-custom-select__error" }, { children: error })); };
157
- var OptionComponent = function (props) { return (_jsx(Option, __assign({}, props, { isOptionsWithTooltip: isOptionsWithTooltip, onDisabledOptionClick: onDisabledOptionClick }))); };
158
- var MenuListComponent = function (props) { return _jsx(MenuList, __assign({}, props, { selectWidth: width, optionHeight: optionHeight, setOptionHeight: setOptionHeight })); };
159
- var generateStyles = function () {
160
- return selectStyles({ isDisabled: isDisabled, isError: !isEmpty(error), fillType: fillType, menuListMaxHeight: generateMenuListMaxHeight(), optionHeight: optionHeight });
161
- };
162
- var creatableFilterOption = function () { return !(value === null || value === void 0 ? void 0 : value.isCreatable); };
163
- var handleChange = function (option, _a) {
164
- var action = _a.action;
165
- var isClearAction = action === ACTIONS.clear;
166
- var nextSelectedValue = isClearAction ? EMPTY_SELECTED_VALUE : option;
167
- onChange(nextSelectedValue);
168
- setValue(nextSelectedValue);
169
- setInputValue(nextSelectedValue.label);
170
- isClearAction ? selectRefCurrent === null || selectRefCurrent === void 0 ? void 0 : selectRefCurrent.focus() : selectRefCurrent === null || selectRefCurrent === void 0 ? void 0 : selectRefCurrent.blur();
171
- };
172
- var handleInputChange = function (inputValue, _a) {
173
- var action = _a.action;
174
- if (action === ACTIONS.inputChange) {
175
- var nextSelectedValue = { value: inputValue, label: inputValue, isCreatable: !isEmpty(inputValue) };
176
- setInputValue(inputValue);
177
- setValue(nextSelectedValue);
178
- onChange(isCreatable ? omit(nextSelectedValue, [IS_CREATABLE_FIELD_NAME]) : EMPTY_SELECTED_VALUE);
179
- }
180
- };
181
- var handleFocus = function () {
182
- setTimeout(function () {
183
- var _a;
184
- var inputValueLength = inputValue.length;
185
- (_a = selectRefCurrent === null || selectRefCurrent === void 0 ? void 0 : selectRefCurrent.inputRef) === null || _a === void 0 ? void 0 : _a.setSelectionRange(inputValueLength, inputValueLength);
186
- }, 0);
187
- setIsInputFocused(true);
188
- };
189
- var handleBlur = function () { return setIsInputFocused(false); };
190
- var handleCreatableKeyDown = function (event) {
191
- var key = event.key, code = event.code;
192
- if (code === ENTER_KEY || key === ENTER_KEY) {
193
- event.preventDefault();
194
- selectRefCurrent === null || selectRefCurrent === void 0 ? void 0 : selectRefCurrent.blur();
195
- }
196
- };
197
- return (_jsxs("div", __assign({ className: classNames('smartapp-custom-select', containerClassName), style: __assign({ width: "".concat(width, "%") }, containerStyles) }, { children: [renderTitle(), isCreatable ? (_jsx(CreatableSelect, { ref: selectRef, menuPlacement: menuPosition, menuPosition: menuLocation, isLoading: isLoading, isDisabled: isDisabled, isClearable: isSelectClearable, controlShouldRenderValue: isDisabled, filterOption: creatableFilterOption, options: options, value: (value === null || value === void 0 ? void 0 : value.label) ? value : null, styles: generateStyles(), placeholder: placeholder, inputValue: isDisabled ? '' : inputValue, onInputChange: handleInputChange, onChange: handleChange, onFocus: handleFocus, onBlur: handleBlur, onKeyDown: handleCreatableKeyDown, onMenuOpen: onMenuOpen, loadingMessage: function () { return _jsx(LoadingMessage, { isCreatableSelect: true }); }, components: {
198
- Input: Input,
199
- Option: OptionComponent,
200
- IndicatorSeparator: IndicatorSeparator,
201
- DropdownIndicator: function (props) { return _jsx(DropdownIndicator, __assign({}, props, { isHidden: isSelectClearable })); },
202
- MenuList: MenuListComponent,
203
- LoadingIndicator: LoadingIndicator,
204
- NoOptionsMessage: function () { return null; },
205
- ClearIndicator: ClearIndicator,
206
- SingleValue: SingleValueComponent,
207
- } })) : (_jsx(Select, { ref: selectRef, menuPlacement: menuPosition, menuPosition: menuLocation, isLoading: isLoading, isDisabled: isDisabled, isSearchable: isSearchable, isClearable: isSearchable && isSelectClearable, controlShouldRenderValue: isDisabled || !isSearchable, options: options, value: (value === null || value === void 0 ? void 0 : value.label) ? value : null, styles: generateStyles(), placeholder: placeholder, inputValue: isDisabled || !isSearchable ? '' : inputValue, onInputChange: handleInputChange, onChange: handleChange, onFocus: handleFocus, onBlur: handleBlur, onMenuOpen: onMenuOpen, noOptionsMessage: function () { return noOptionsMessage; }, loadingMessage: function () { return _jsx(LoadingMessage, {}); }, components: {
208
- Input: Input,
209
- Option: OptionComponent,
210
- IndicatorSeparator: IndicatorSeparator,
211
- DropdownIndicator: function (props) { return _jsx(DropdownIndicator, __assign({}, props, { isHidden: isSearchable && isSelectClearable })); },
212
- SingleValue: SingleValueComponent,
213
- MenuList: MenuListComponent,
214
- LoadingIndicator: LoadingIndicator,
215
- ClearIndicator: ClearIndicator,
216
- NoOptionsMessage: function (props) { return _jsx(NoOptionsMessage, __assign({}, props, { noOptionsMessage: noOptionsMessage })); },
217
- } })), renderHint(), renderError()] })));
218
- };
219
- export default CustomSelect;
220
- //# sourceMappingURL=CustomSelect.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CustomSelect.js","sourceRoot":"","sources":["../../../../src/сomponents/CustomSelect/CustomSelect.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC3E,OAAO,MAAM,EAAE,EAAc,UAAU,EAAgC,MAAM,cAAc,CAAA;AAC3F,OAAO,eAAe,MAAM,wBAAwB,CAAA;AACpD,OAAO,KAAK,MAAM,eAAe,CAAA;AACjC,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC3C,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,QAAQ,MAAM,aAAa,CAAA;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;AAClD,OAAO,EAAE,8BAA8B,EAAE,SAAS,EAAE,SAAS,EAAE,oBAAoB,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AACjJ,OAAO,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAA;AAEvF,OAAO,YAAY,MAAM,gBAAgB,CAAA;AACzC,OAAO,EAAE,cAAc,IAAI,WAAW,EAAE,MAAM,iCAAiC,CAAA;AAC/E,OAAO,EAAE,cAAc,IAAI,aAAa,EAAE,MAAM,mCAAmC,CAAA;AACnF,OAAO,EAAE,cAAc,IAAI,SAAS,EAAE,MAAM,8BAA8B,CAAA;AAC1E,OAA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ustomSelect';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/CustomSelect/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA"}