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

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 (311) hide show
  1. package/build/main/assets/icons/arrow-back.svg +3 -0
  2. package/build/main/assets/icons/arrow-down.svg +3 -0
  3. package/build/main/assets/icons/arrow-up.svg +3 -0
  4. package/build/main/assets/icons/attachment-loader.svg +3 -0
  5. package/build/main/assets/icons/button-loader.svg +3 -0
  6. package/build/main/assets/icons/cancel-cross.svg +3 -0
  7. package/build/main/assets/icons/check-mark.svg +4 -0
  8. package/build/main/assets/icons/clear.svg +3 -0
  9. package/build/main/assets/icons/close-stories.svg +4 -0
  10. package/build/main/assets/icons/close.svg +10 -0
  11. package/build/main/assets/icons/contact-info.svg +12 -0
  12. package/build/main/assets/icons/corporate-user.svg +10 -0
  13. package/build/main/assets/icons/crown.svg +5 -0
  14. package/build/main/assets/icons/delete-chip.svg +3 -0
  15. package/build/main/assets/icons/download.svg +4 -0
  16. package/build/main/assets/icons/error.svg +5 -0
  17. package/build/main/assets/icons/external-link.svg +3 -0
  18. package/build/main/assets/icons/eye-off.svg +10 -0
  19. package/build/main/assets/icons/eye.svg +10 -0
  20. package/build/main/assets/icons/file.svg +3 -0
  21. package/build/main/assets/icons/info.svg +5 -0
  22. package/build/main/assets/icons/loader.svg +3 -0
  23. package/build/main/assets/icons/logout.svg +4 -0
  24. package/build/main/assets/icons/magnifying-glass.svg +3 -0
  25. package/build/main/assets/icons/mail.svg +3 -0
  26. package/build/main/assets/icons/more.svg +3 -0
  27. package/build/main/assets/icons/my-contact-user.svg +10 -0
  28. package/build/main/assets/icons/notification-close.svg +3 -0
  29. package/build/main/assets/icons/notification-error.svg +3 -0
  30. package/build/main/assets/icons/notification-failure.svg +3 -0
  31. package/build/main/assets/icons/notification-info.svg +5 -0
  32. package/build/main/assets/icons/notification-success.svg +4 -0
  33. package/build/main/assets/icons/notification-warning.svg +5 -0
  34. package/build/main/assets/icons/order.svg +6 -0
  35. package/build/main/assets/icons/plus.svg +4 -0
  36. package/build/main/assets/icons/private.svg +12 -0
  37. package/build/main/assets/icons/refresh.svg +3 -0
  38. package/build/main/assets/icons/story-loader.svg +3 -0
  39. package/build/main/assets/icons/tick.svg +10 -0
  40. package/build/main/assets/icons/trash.svg +3 -0
  41. package/build/main/assets/icons/unread-mails.svg +4 -0
  42. package/build/main/assets/storybook/index.js +21 -0
  43. package/build/main/assets/storybook/index.js.map +1 -0
  44. package/build/main/components/ActionModal/ActionModal.js +55 -0
  45. package/build/main/components/ActionModal/ActionModal.js.map +1 -0
  46. package/build/main/components/ActionModal/index.js +2 -0
  47. package/build/main/components/ActionModal/index.js.map +1 -0
  48. package/build/main/components/ActionModal/types.js +2 -0
  49. package/build/main/components/ActionModal/types.js.map +1 -0
  50. package/build/main/components/AttachedFile/AttachedFile.js +60 -0
  51. package/build/main/components/AttachedFile/AttachedFile.js.map +1 -0
  52. package/build/main/components/AttachedFile/index.js +2 -0
  53. package/build/main/components/AttachedFile/index.js.map +1 -0
  54. package/build/main/components/AttachedFile/types.js +2 -0
  55. package/build/main/components/AttachedFile/types.js.map +1 -0
  56. package/build/main/components/Avatar/Avatar.js +131 -0
  57. package/build/main/components/Avatar/Avatar.js.map +1 -0
  58. package/build/main/components/Avatar/index.js +2 -0
  59. package/build/main/components/Avatar/index.js.map +1 -0
  60. package/build/main/components/Avatar/types.js +9 -0
  61. package/build/main/components/Avatar/types.js.map +1 -0
  62. package/build/main/components/Button/Button.js +57 -0
  63. package/build/main/components/Button/Button.js.map +1 -0
  64. package/build/main/components/Button/index.js +2 -0
  65. package/build/main/components/Button/index.js.map +1 -0
  66. package/build/main/components/Button/types.js +11 -0
  67. package/build/main/components/Button/types.js.map +1 -0
  68. package/build/main/components/CachedImage/CachedImage.js +59 -0
  69. package/build/main/components/CachedImage/CachedImage.js.map +1 -0
  70. package/build/main/components/CachedImage/helpers.js +40 -0
  71. package/build/main/components/CachedImage/helpers.js.map +1 -0
  72. package/build/main/components/CachedImage/index.js +2 -0
  73. package/build/main/components/CachedImage/index.js.map +1 -0
  74. package/build/main/components/CachedImage/types.js +2 -0
  75. package/build/main/components/CachedImage/types.js.map +1 -0
  76. package/build/main/components/Calendar/Calendar.js +48 -0
  77. package/build/main/components/Calendar/Calendar.js.map +1 -0
  78. package/build/main/components/Calendar/index.js +2 -0
  79. package/build/main/components/Calendar/index.js.map +1 -0
  80. package/build/main/components/Calendar/types.js +2 -0
  81. package/build/main/components/Calendar/types.js.map +1 -0
  82. package/build/main/components/Charts/ChartBar/ChartBar.js +46 -0
  83. package/build/main/components/Charts/ChartBar/ChartBar.js.map +1 -0
  84. package/build/main/components/Charts/ChartLegend/ChartLegend.js +71 -0
  85. package/build/main/components/Charts/ChartLegend/ChartLegend.js.map +1 -0
  86. package/build/main/components/Charts/ChartLine/ChartLine.js +41 -0
  87. package/build/main/components/Charts/ChartLine/ChartLine.js.map +1 -0
  88. package/build/main/components/Charts/ChartPie/ChartPie.js +63 -0
  89. package/build/main/components/Charts/ChartPie/ChartPie.js.map +1 -0
  90. package/build/main/components/Charts/colors.js +4 -0
  91. package/build/main/components/Charts/colors.js.map +1 -0
  92. package/build/main/components/Charts/constants.js +43 -0
  93. package/build/main/components/Charts/constants.js.map +1 -0
  94. package/build/main/components/Charts/helpers.js +73 -0
  95. package/build/main/components/Charts/helpers.js.map +1 -0
  96. package/build/main/components/Charts/index.js +4 -0
  97. package/build/main/components/Charts/index.js.map +1 -0
  98. package/build/main/components/Charts/types.js +2 -0
  99. package/build/main/components/Charts/types.js.map +1 -0
  100. package/build/main/components/Charts/useEvents.js +45 -0
  101. package/build/main/components/Charts/useEvents.js.map +1 -0
  102. package/build/main/components/Charts/usePieEvents.js +57 -0
  103. package/build/main/components/Charts/usePieEvents.js.map +1 -0
  104. package/build/main/components/Checkbox/Checkbox.js +38 -0
  105. package/build/main/components/Checkbox/Checkbox.js.map +1 -0
  106. package/build/main/components/Checkbox/index.js +2 -0
  107. package/build/main/components/Checkbox/index.js.map +1 -0
  108. package/build/main/components/Checkbox/types.js +2 -0
  109. package/build/main/components/Checkbox/types.js.map +1 -0
  110. package/build/main/components/Chip/Chip.js +35 -0
  111. package/build/main/components/Chip/Chip.js.map +1 -0
  112. package/build/main/components/Chip/index.js +2 -0
  113. package/build/main/components/Chip/index.js.map +1 -0
  114. package/build/main/components/Chip/types.js +2 -0
  115. package/build/main/components/Chip/types.js.map +1 -0
  116. package/build/main/components/ConfirmationModal/ConfirmationModal.js +70 -0
  117. package/build/main/components/ConfirmationModal/ConfirmationModal.js.map +1 -0
  118. package/build/main/components/ConfirmationModal/index.js +2 -0
  119. package/build/main/components/ConfirmationModal/index.js.map +1 -0
  120. package/build/main/components/ConfirmationModal/types.js +2 -0
  121. package/build/main/components/ConfirmationModal/types.js.map +1 -0
  122. package/build/main/components/ContextMenu/ContextMenu.js +82 -0
  123. package/build/main/components/ContextMenu/ContextMenu.js.map +1 -0
  124. package/build/main/components/ContextMenu/index.js +2 -0
  125. package/build/main/components/ContextMenu/index.js.map +1 -0
  126. package/build/main/components/ContextMenu/types.js +2 -0
  127. package/build/main/components/ContextMenu/types.js.map +1 -0
  128. package/build/main/components/CustomSelect/CustomSelect.js +220 -0
  129. package/build/main/components/CustomSelect/CustomSelect.js.map +1 -0
  130. package/build/main/components/CustomSelect/index.js +2 -0
  131. package/build/main/components/CustomSelect/index.js.map +1 -0
  132. package/build/main/components/CustomSelect/selectStyles.js +67 -0
  133. package/build/main/components/CustomSelect/selectStyles.js.map +1 -0
  134. package/build/main/components/CustomSelect/types.js +2 -0
  135. package/build/main/components/CustomSelect/types.js.map +1 -0
  136. package/build/main/components/CustomSelectProfiles/CustomSelectProfiles.js +57 -0
  137. package/build/main/components/CustomSelectProfiles/CustomSelectProfiles.js.map +1 -0
  138. package/build/main/components/CustomSelectProfiles/index.js +2 -0
  139. package/build/main/components/CustomSelectProfiles/index.js.map +1 -0
  140. package/build/main/components/CustomSelectProfiles/types.js +2 -0
  141. package/build/main/components/CustomSelectProfiles/types.js.map +1 -0
  142. package/build/main/components/DragAndDrop/DragAndDrop.js +57 -0
  143. package/build/main/components/DragAndDrop/DragAndDrop.js.map +1 -0
  144. package/build/main/components/DragAndDrop/index.js +2 -0
  145. package/build/main/components/DragAndDrop/index.js.map +1 -0
  146. package/build/main/components/DragAndDrop/types.js +2 -0
  147. package/build/main/components/DragAndDrop/types.js.map +1 -0
  148. package/build/main/components/DraggablePopup/DraggablePopup.js +124 -0
  149. package/build/main/components/DraggablePopup/DraggablePopup.js.map +1 -0
  150. package/build/main/components/DraggablePopup/index.js +2 -0
  151. package/build/main/components/DraggablePopup/index.js.map +1 -0
  152. package/build/main/components/DraggablePopup/types.js +2 -0
  153. package/build/main/components/DraggablePopup/types.js.map +1 -0
  154. package/build/main/components/Error/Error.js +23 -0
  155. package/build/main/components/Error/Error.js.map +1 -0
  156. package/build/main/components/Error/index.js +2 -0
  157. package/build/main/components/Error/index.js.map +1 -0
  158. package/build/main/components/Error/types.js +2 -0
  159. package/build/main/components/Error/types.js.map +1 -0
  160. package/build/main/components/Flex/Flex.js +49 -0
  161. package/build/main/components/Flex/Flex.js.map +1 -0
  162. package/build/main/components/Flex/HFlex/HFlex.js +16 -0
  163. package/build/main/components/Flex/HFlex/HFlex.js.map +1 -0
  164. package/build/main/components/Flex/HFlex/index.js +2 -0
  165. package/build/main/components/Flex/HFlex/index.js.map +1 -0
  166. package/build/main/components/Flex/VFlex/VFlex.js +16 -0
  167. package/build/main/components/Flex/VFlex/VFlex.js.map +1 -0
  168. package/build/main/components/Flex/VFlex/index.js +2 -0
  169. package/build/main/components/Flex/VFlex/index.js.map +1 -0
  170. package/build/main/components/Flex/index.js +4 -0
  171. package/build/main/components/Flex/index.js.map +1 -0
  172. package/build/main/components/Flex/types.js +2 -0
  173. package/build/main/components/Flex/types.js.map +1 -0
  174. package/build/main/components/Header/Header.js +124 -0
  175. package/build/main/components/Header/Header.js.map +1 -0
  176. package/build/main/components/Header/index.js +2 -0
  177. package/build/main/components/Header/index.js.map +1 -0
  178. package/build/main/components/Header/types.js +2 -0
  179. package/build/main/components/Header/types.js.map +1 -0
  180. package/build/main/components/Input/Input.js +207 -0
  181. package/build/main/components/Input/Input.js.map +1 -0
  182. package/build/main/components/Input/index.js +2 -0
  183. package/build/main/components/Input/index.js.map +1 -0
  184. package/build/main/components/Input/types.js +2 -0
  185. package/build/main/components/Input/types.js.map +1 -0
  186. package/build/main/components/ListItem/ListItem.js +208 -0
  187. package/build/main/components/ListItem/ListItem.js.map +1 -0
  188. package/build/main/components/ListItem/index.js +2 -0
  189. package/build/main/components/ListItem/index.js.map +1 -0
  190. package/build/main/components/ListItem/types.js +2 -0
  191. package/build/main/components/ListItem/types.js.map +1 -0
  192. package/build/main/components/Loader/Loader.js +44 -0
  193. package/build/main/components/Loader/Loader.js.map +1 -0
  194. package/build/main/components/Loader/index.js +2 -0
  195. package/build/main/components/Loader/index.js.map +1 -0
  196. package/build/main/components/Loader/types.js +2 -0
  197. package/build/main/components/Loader/types.js.map +1 -0
  198. package/build/main/components/Modal/Modal.js +125 -0
  199. package/build/main/components/Modal/Modal.js.map +1 -0
  200. package/build/main/components/Modal/index.js +2 -0
  201. package/build/main/components/Modal/index.js.map +1 -0
  202. package/build/main/components/Modal/types.js +2 -0
  203. package/build/main/components/Modal/types.js.map +1 -0
  204. package/build/main/components/Notification/Notification.js +197 -0
  205. package/build/main/components/Notification/Notification.js.map +1 -0
  206. package/build/main/components/Notification/index.js +2 -0
  207. package/build/main/components/Notification/index.js.map +1 -0
  208. package/build/main/components/Notification/types.js +2 -0
  209. package/build/main/components/Notification/types.js.map +1 -0
  210. package/build/main/components/Profile/Profile.js +42 -0
  211. package/build/main/components/Profile/Profile.js.map +1 -0
  212. package/build/main/components/Profile/index.js +2 -0
  213. package/build/main/components/Profile/index.js.map +1 -0
  214. package/build/main/components/Profile/types.js +2 -0
  215. package/build/main/components/Profile/types.js.map +1 -0
  216. package/build/main/components/ProgressBar/ProgressBar.js +66 -0
  217. package/build/main/components/ProgressBar/ProgressBar.js.map +1 -0
  218. package/build/main/components/ProgressBar/index.js +2 -0
  219. package/build/main/components/ProgressBar/index.js.map +1 -0
  220. package/build/main/components/ProgressBar/types.js +2 -0
  221. package/build/main/components/ProgressBar/types.js.map +1 -0
  222. package/build/main/components/RadioButton/RadioButton.js +37 -0
  223. package/build/main/components/RadioButton/RadioButton.js.map +1 -0
  224. package/build/main/components/RadioButton/index.js +2 -0
  225. package/build/main/components/RadioButton/index.js.map +1 -0
  226. package/build/main/components/RadioButton/types.js +2 -0
  227. package/build/main/components/RadioButton/types.js.map +1 -0
  228. package/build/main/components/ScrollBar/ScrollBar.js +63 -0
  229. package/build/main/components/ScrollBar/ScrollBar.js.map +1 -0
  230. package/build/main/components/ScrollBar/index.js +2 -0
  231. package/build/main/components/ScrollBar/index.js.map +1 -0
  232. package/build/main/components/ScrollBar/types.js +2 -0
  233. package/build/main/components/ScrollBar/types.js.map +1 -0
  234. package/build/main/components/Skeleton/Skeleton.js +59 -0
  235. package/build/main/components/Skeleton/Skeleton.js.map +1 -0
  236. package/build/main/components/Skeleton/index.js +2 -0
  237. package/build/main/components/Skeleton/index.js.map +1 -0
  238. package/build/main/components/Skeleton/types.js +2 -0
  239. package/build/main/components/Skeleton/types.js.map +1 -0
  240. package/build/main/components/Stories/Stories.js +296 -0
  241. package/build/main/components/Stories/Stories.js.map +1 -0
  242. package/build/main/components/Stories/index.js +2 -0
  243. package/build/main/components/Stories/index.js.map +1 -0
  244. package/build/main/components/Stories/types.js +11 -0
  245. package/build/main/components/Stories/types.js.map +1 -0
  246. package/build/main/components/Switcher/Switcher.js +34 -0
  247. package/build/main/components/Switcher/Switcher.js.map +1 -0
  248. package/build/main/components/Switcher/index.js +2 -0
  249. package/build/main/components/Switcher/index.js.map +1 -0
  250. package/build/main/components/Switcher/types.js +2 -0
  251. package/build/main/components/Switcher/types.js.map +1 -0
  252. package/build/main/components/SyncLoader/SyncLoader.js +65 -0
  253. package/build/main/components/SyncLoader/SyncLoader.js.map +1 -0
  254. package/build/main/components/SyncLoader/index.js +2 -0
  255. package/build/main/components/SyncLoader/index.js.map +1 -0
  256. package/build/main/components/SyncLoader/types.js +2 -0
  257. package/build/main/components/SyncLoader/types.js.map +1 -0
  258. package/build/main/components/Textarea/Textarea.js +96 -0
  259. package/build/main/components/Textarea/Textarea.js.map +1 -0
  260. package/build/main/components/Textarea/index.js +2 -0
  261. package/build/main/components/Textarea/index.js.map +1 -0
  262. package/build/main/components/Textarea/types.js +2 -0
  263. package/build/main/components/Textarea/types.js.map +1 -0
  264. package/build/main/components/Toggle/Toggle.js +38 -0
  265. package/build/main/components/Toggle/Toggle.js.map +1 -0
  266. package/build/main/components/Toggle/index.js +2 -0
  267. package/build/main/components/Toggle/index.js.map +1 -0
  268. package/build/main/components/Toggle/types.js +2 -0
  269. package/build/main/components/Toggle/types.js.map +1 -0
  270. package/build/main/components/UserDropdown/ContactBottomSheet/ContactBottomSheet.js +31 -0
  271. package/build/main/components/UserDropdown/ContactBottomSheet/ContactBottomSheet.js.map +1 -0
  272. package/build/main/components/UserDropdown/ContactInfo/ContactInfo.js +70 -0
  273. package/build/main/components/UserDropdown/ContactInfo/ContactInfo.js.map +1 -0
  274. package/build/main/components/UserDropdown/LoadingMessage/LoadingMessage.js +23 -0
  275. package/build/main/components/UserDropdown/LoadingMessage/LoadingMessage.js.map +1 -0
  276. package/build/main/components/UserDropdown/MenuList/MenuList.js +81 -0
  277. package/build/main/components/UserDropdown/MenuList/MenuList.js.map +1 -0
  278. package/build/main/components/UserDropdown/MultiValueLabel/MultiValueLabel.js +40 -0
  279. package/build/main/components/UserDropdown/MultiValueLabel/MultiValueLabel.js.map +1 -0
  280. package/build/main/components/UserDropdown/Option/Option.js +91 -0
  281. package/build/main/components/UserDropdown/Option/Option.js.map +1 -0
  282. package/build/main/components/UserDropdown/UserDropdown.js +434 -0
  283. package/build/main/components/UserDropdown/UserDropdown.js.map +1 -0
  284. package/build/main/components/UserDropdown/helpers.d.ts +1 -0
  285. package/build/main/components/UserDropdown/helpers.js +93 -0
  286. package/build/main/components/UserDropdown/helpers.js.map +1 -0
  287. package/build/main/components/UserDropdown/index.js +2 -0
  288. package/build/main/components/UserDropdown/index.js.map +1 -0
  289. package/build/main/components/UserDropdown/selectStyles.js +75 -0
  290. package/build/main/components/UserDropdown/selectStyles.js.map +1 -0
  291. package/build/main/components/UserDropdown/types.js +2 -0
  292. package/build/main/components/UserDropdown/types.js.map +1 -0
  293. package/build/main/components/types.js +2 -0
  294. package/build/main/components/types.js.map +1 -0
  295. package/build/main/constants/constants.js +161 -0
  296. package/build/main/constants/constants.js.map +1 -0
  297. package/build/main/constants/index.js +3 -0
  298. package/build/main/constants/index.js.map +1 -0
  299. package/build/main/constants/types.js +2 -0
  300. package/build/main/constants/types.js.map +1 -0
  301. package/build/main/helpers/index.js +89 -0
  302. package/build/main/helpers/index.js.map +1 -0
  303. package/build/main/hooks/useModal.js +60 -0
  304. package/build/main/hooks/useModal.js.map +1 -0
  305. package/build/main/index.js +37 -0
  306. package/build/main/index.js.map +1 -0
  307. package/build/main/styles/index.js +2 -0
  308. package/build/main/styles/index.js.map +1 -0
  309. package/build/main/styles/main.js +0 -0
  310. package/build/main/styles/styles.scss +14 -0
  311. package/package.json +4 -2
@@ -0,0 +1,57 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DragAndDrop.js","sourceRoot":"","sources":["../../../../src/components/DragAndDrop/DragAndDrop.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AACvC,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,qBAAqB,CA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AAE,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"}
@@ -0,0 +1,2 @@
1
+ export { default } from './DragAndDrop';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/DragAndDrop/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/components/DragAndDrop/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,124 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DraggablePopup.js","sourceRoot":"","sources":["../../../../src/components/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,EAAE,CAAA;AAClC,IAAM,uBAAuB,GAAG,EAAE,CAAA;AAClC,IAAM,sBAAsB,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAA;AAC/C,IAAM,mBAAmB,GAAG,EAAE,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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"}
@@ -0,0 +1,2 @@
1
+ export { default } from './DraggablePopup';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/DraggablePopup/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/components/DraggablePopup/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,23 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Error.js","sourceRoot":"","sources":["../../../../src/components/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"}
@@ -0,0 +1,2 @@
1
+ export { default } from './Error';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Error/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/components/Error/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,49 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Flex.js","sourceRoot":"","sources":["../../../../src/components/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"}
@@ -0,0 +1,16 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HFlex.js","sourceRoot":"","sources":["../../../../../src/components/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"}
@@ -0,0 +1,2 @@
1
+ export { HFlex } from './HFlex';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/Flex/HFlex/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA"}
@@ -0,0 +1,16 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VFlex.js","sourceRoot":"","sources":["../../../../../src/components/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"}
@@ -0,0 +1,2 @@
1
+ export { VFlex } from './VFlex';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/Flex/VFlex/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA"}
@@ -0,0 +1,4 @@
1
+ export { Flex } from './Flex';
2
+ export { VFlex } from './VFlex';
3
+ export { HFlex } from './HFlex';
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/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"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/components/Flex/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,124 @@
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 { isArray } from 'lodash';
16
+ import Avatar from '../Avatar';
17
+ import { ReactComponent as ArrowBackIcon } from '../../assets/icons/arrow-back.svg';
18
+ import { ReactComponent as TrashIcon } from '../../assets/icons/trash.svg';
19
+ import { ReactComponent as RefreshIcon } from '../../assets/icons/refresh.svg';
20
+ import { ReactComponent as ArrowUpIcon } from '../../assets/icons/arrow-up.svg';
21
+ import { ReactComponent as ArrowDownIcon } from '../../assets/icons/arrow-down.svg';
22
+ import { generateColor } from '../../helpers';
23
+ import { HEADER_COLOR_BG, PLATFORM, TITLE_SIZE } from '../../constants';
24
+ import '../../styles/styles.scss';
25
+ export var DEFAULT_HEADER_HEIGHT = 48;
26
+ var MIN_TWO_DIGIT_NUMBER = 10;
27
+ var MAX_TWO_DIGIT_NUMBER = 99;
28
+ var MIN_THREE_DIGIT_NUMBER = 100;
29
+ var SMALL_TITLE_SIZE_PADDING = 16;
30
+ var MAJOR_TITLE_SIZE_PADDING = 8;
31
+ var THREE_DIGIT_TEXT_COUNTER = '99+';
32
+ var TITLE_PRESSED_CLASSNAME = 'smartapp-header__info--title__pressed';
33
+ var AVATAR_PRESSED_CLASSNAME = 'smartapp-header__icons--avatar-pressed';
34
+ var ICON_PRESSED_CLASSNAME = 'smartapp-header-icon__pressed';
35
+ var titleSizeSmall = TITLE_SIZE.small, titleSizeMajor = TITLE_SIZE.major;
36
+ var HeaderIcon = function (_a) {
37
+ var _b = _a.isDisabled, isDisabled = _b === void 0 ? false : _b, order = _a.order, titleBackground = _a.titleBackground, icon = _a.icon, onClick = _a.onClick;
38
+ var iconRef = useRef(null);
39
+ var handleClick = function () { return !isDisabled && (onClick === null || onClick === void 0 ? void 0 : onClick()); };
40
+ var handleMouseDown = function () { var _a; return !isDisabled && ((_a = iconRef.current) === null || _a === void 0 ? void 0 : _a.classList.add(ICON_PRESSED_CLASSNAME)); };
41
+ var handleMouseUp = function () { var _a; return (_a = iconRef.current) === null || _a === void 0 ? void 0 : _a.classList.remove(ICON_PRESSED_CLASSNAME); };
42
+ useEffect(function () {
43
+ !isDisabled && window.addEventListener('mouseup', handleMouseUp);
44
+ return function () {
45
+ !isDisabled && window.removeEventListener('mouseup', handleMouseUp);
46
+ };
47
+ }, [isDisabled]);
48
+ return (_jsx("div", __assign({ ref: iconRef, className: classNames('smartapp-header-icon', {
49
+ 'smartapp-header-icon__disabled': isDisabled,
50
+ 'smartapp-header-icon__blue': titleBackground === HEADER_COLOR_BG.blue,
51
+ }), style: { order: order }, onClick: handleClick, onMouseDown: handleMouseDown }, { children: icon })));
52
+ };
53
+ var Header = function (_a) {
54
+ var _b = _a.title, title = _b === void 0 ? '' : _b, _c = _a.counter, counter = _c === void 0 ? 0 : _c, _d = _a.isBack, isBack = _d === void 0 ? false : _d, _e = _a.isRemove, isRemove = _e === void 0 ? false : _e, titleIcon = _a.titleIcon, refreshIcon = _a.refreshIcon, customIcon = _a.customIcon, avatar = _a.avatar, _f = _a.onClickBack, onClickBack = _f === void 0 ? function () { return undefined; } : _f, _g = _a.onClickRemove, onClickRemove = _g === void 0 ? function () { return undefined; } : _g, arrowColor = _a.arrowColor, trashColor = _a.trashColor, _h = _a.platform, platform = _h === void 0 ? PLATFORM.web : _h, _j = _a.headerHeight, headerHeight = _j === void 0 ? DEFAULT_HEADER_HEIGHT : _j, className = _a.className, styles = _a.styles, _k = _a.textSize, textSize = _k === void 0 ? titleSizeSmall : _k, _l = _a.backgroundColor, backgroundColor = _l === void 0 ? HEADER_COLOR_BG.grey : _l, _m = _a.removeIconOrder, removeIconOrder = _m === void 0 ? 1 : _m;
55
+ var titleRef = useRef(null);
56
+ var avatarRef = useRef(null);
57
+ var isBlueBackgroundColor = backgroundColor === HEADER_COLOR_BG.blue;
58
+ var isGreyBackgroundColor = backgroundColor === HEADER_COLOR_BG.grey;
59
+ var isCustomBackgroundColor = !isBlueBackgroundColor && !isGreyBackgroundColor;
60
+ useEffect(function () {
61
+ window.addEventListener('mouseup', handleMouseUp);
62
+ return function () {
63
+ window.removeEventListener('mouseup', handleMouseUp);
64
+ };
65
+ }, []);
66
+ var generateHeaderStyles = function () {
67
+ var headerPadding = textSize === titleSizeMajor && title ? MAJOR_TITLE_SIZE_PADDING : SMALL_TITLE_SIZE_PADDING;
68
+ var backgroundStyle = isCustomBackgroundColor ? { background: backgroundColor } : {};
69
+ return __assign(__assign({ height: "".concat(headerHeight - headerPadding, "px") }, backgroundStyle), styles);
70
+ };
71
+ var handleMouseDown = function (_a) {
72
+ var _b;
73
+ var ref = _a.ref, className = _a.className;
74
+ return (_b = ref.current) === null || _b === void 0 ? void 0 : _b.classList.add(className);
75
+ };
76
+ var handleMouseUp = function () {
77
+ var _a, _b;
78
+ (_a = titleRef.current) === null || _a === void 0 ? void 0 : _a.classList.remove(TITLE_PRESSED_CLASSNAME);
79
+ (_b = avatarRef.current) === null || _b === void 0 ? void 0 : _b.classList.remove(AVATAR_PRESSED_CLASSNAME);
80
+ };
81
+ var renderTitle = function () { return (_jsxs("p", __assign({ ref: titleRef, className: classNames('smartapp-header__info--title', {
82
+ 'smartapp-header__info--title__blue': isBlueBackgroundColor,
83
+ }), onMouseDown: function () { return handleMouseDown({ ref: titleRef, className: TITLE_PRESSED_CLASSNAME }); }, onClick: titleIcon && titleIcon.onClick }, { children: [_jsx("span", { children: title }), titleIcon && renderTitleIcon(titleIcon)] }))); };
84
+ var renderCounter = function () {
85
+ var isTwoDigitNumber = counter >= MIN_TWO_DIGIT_NUMBER && counter <= MAX_TWO_DIGIT_NUMBER;
86
+ var isThreeDigitNumber = counter >= MIN_THREE_DIGIT_NUMBER;
87
+ var textCounter = isThreeDigitNumber ? THREE_DIGIT_TEXT_COUNTER : counter;
88
+ return (_jsx("div", __assign({ className: classNames('smartapp-header__info--counter', {
89
+ 'smartapp-header__info--counter__two-digit': isTwoDigitNumber,
90
+ 'smartapp-header__info--counter__three-digit': isThreeDigitNumber,
91
+ }) }, { children: textCounter })));
92
+ };
93
+ var renderBackIcon = function () { return (_jsx(HeaderIcon, { titleBackground: backgroundColor, icon: _jsx(ArrowBackIcon, { className: "smartapp-header__info--arrow-back", style: { color: generateColor(arrowColor) } }), onClick: onClickBack })); };
94
+ var renderRemoveIcon = function () { return (_jsx(HeaderIcon, { titleBackground: backgroundColor, icon: _jsx(TrashIcon, { style: { color: generateColor(trashColor) } }), onClick: onClickRemove })); };
95
+ var renderTitleIcon = function (_a) {
96
+ var isUpDirection = _a.isUpDirection;
97
+ return isUpDirection ? _jsx(ArrowUpIcon, { className: "smartapp-header__info--title__icon" }) : _jsx(ArrowDownIcon, { className: "smartapp-header__info--title__icon" });
98
+ };
99
+ var renderRefreshIcon = function (_a) {
100
+ var isEnabled = _a.isEnabled, color = _a.color, onClick = _a.onClick;
101
+ return (_jsx(HeaderIcon, { titleBackground: backgroundColor, icon: _jsx(RefreshIcon, { className: classNames({ 'smartapp-header__icons--refresh': isEnabled }), style: { color: generateColor(color) } }), onClick: !isEnabled ? onClick : function () { } }));
102
+ };
103
+ var renderAvatar = function () { return (_jsx(Avatar, __assign({}, avatar, { avatarRef: avatarRef, className: isRemove || refreshIcon || customIcon ? 'smartapp-avatar__ml' : '', size: 32, onMouseDown: function () { return handleMouseDown({ ref: avatarRef, className: AVATAR_PRESSED_CLASSNAME }); } }))); };
104
+ var renderCustomIcons = function () {
105
+ if (isArray(customIcon))
106
+ return customIcon.map(function (_a, index) {
107
+ var isDisabled = _a.isDisabled, icon = _a.icon, onClick = _a.onClick;
108
+ var order = index + 1 < removeIconOrder ? -1 : 0;
109
+ return _jsx(HeaderIcon, { isDisabled: isDisabled, order: order, titleBackground: backgroundColor, icon: icon, onClick: onClick }, index);
110
+ });
111
+ if (customIcon)
112
+ return _jsx(HeaderIcon, { titleBackground: backgroundColor, icon: customIcon });
113
+ };
114
+ var generateHeaderClassNames = function () {
115
+ var _a;
116
+ return classNames('smartapp-header', "smartapp-header__".concat(platform), "smartapp-header__".concat(textSize), (_a = {},
117
+ _a["smartapp-header__".concat(textSize, "--with-title")] = title,
118
+ _a["smartapp-header__".concat(backgroundColor)] = !isCustomBackgroundColor,
119
+ _a), className);
120
+ };
121
+ return (_jsxs("div", __assign({ className: generateHeaderClassNames(), style: generateHeaderStyles() }, { children: [_jsxs("div", __assign({ className: "smartapp-header__info" }, { children: [isBack && renderBackIcon(), title && renderTitle(), !!counter && renderCounter()] })), (isRemove || refreshIcon || customIcon || avatar) && (_jsxs("div", __assign({ className: classNames('smartapp-header__icons', "smartapp-header__icons--".concat(backgroundColor), { 'smartapp-header__icons--ml': !!counter }) }, { children: [isRemove && renderRemoveIcon(), refreshIcon && renderRefreshIcon(refreshIcon), renderCustomIcons(), avatar && renderAvatar()] })))] })));
122
+ };
123
+ export default Header;
124
+ //# sourceMappingURL=Header.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Header.js","sourceRoot":"","sources":["../../../../src/components/Header/Header.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAa,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAC3D,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAA;AAChC,OAAO,MAAM,MAAM,WAAW,CAAA;AAC9B,OAAO,EAAE,cAAc,IAAI,aAAa,EAAE,MAAM,mCAAmC,CAAA;AACnF,OAAO,EAAE,cAAc,IAAI,SAAS,EAAE,MAAM,8BAA8B,CAAA;AAC1E,OAAO,EAAE,cAAc,IAAI,WAAW,EAAE,MAAM,gCAAgC,CAAA;AAC9E,OAAO,EAAE,cAAc,IAAI,WAAW,EAAE,MAAM,iCAAiC,CAAA;AAC/E,OAAO,EAAE,cAAc,IAAI,aAAa,EAAE,MAAM,mCAAmC,CAAA;AACnF,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAC7C,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEvE,OAAO,0BAA0B,CAAA;AAEjC,MAAM,CAAC,IAAM,qBAAqB,GAAG,EAAE,CAAA;AACvC,IAAM,oBAAoB,GAAG,EAAE,CAAA;AAC/B,IAAM,oBAAoB,GAAG,EAAE,CAAA;AAC/B,IAAM,sBAAsB,GAAG,GAAG,CAAA;AAClC,IAAM,wBAAwB,GAAG,EAAE,CA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@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Header/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/components/Header/types.ts"],"names":[],"mappings":""}