@expressms/smartapp-ui 2.9.2 → 2.9.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (458) hide show
  1. package/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/distribution.svg +12 -0
  16. package/build/main/assets/icons/download.svg +4 -0
  17. package/build/main/assets/icons/error.svg +5 -0
  18. package/build/main/assets/icons/external-link.svg +3 -0
  19. package/build/main/assets/icons/eye-off.svg +10 -0
  20. package/build/main/assets/icons/eye.svg +10 -0
  21. package/build/main/assets/icons/file.svg +3 -0
  22. package/build/main/assets/icons/group.svg +3 -0
  23. package/build/main/assets/icons/info.svg +5 -0
  24. package/build/main/assets/icons/loader.svg +3 -0
  25. package/build/main/assets/icons/logout.svg +4 -0
  26. package/build/main/assets/icons/magnifying-glass.svg +3 -0
  27. package/build/main/assets/icons/mail.svg +3 -0
  28. package/build/main/assets/icons/meeting-room.svg +3 -0
  29. package/build/main/assets/icons/meeting-rooms-list.svg +5 -0
  30. package/build/main/assets/icons/more.svg +3 -0
  31. package/build/main/assets/icons/my-contact-user.svg +10 -0
  32. package/build/main/assets/icons/notification-close.svg +3 -0
  33. package/build/main/assets/icons/notification-error.svg +3 -0
  34. package/build/main/assets/icons/notification-failure.svg +3 -0
  35. package/build/main/assets/icons/notification-info.svg +5 -0
  36. package/build/main/assets/icons/notification-success.svg +4 -0
  37. package/build/main/assets/icons/notification-warning.svg +5 -0
  38. package/build/main/assets/icons/order.svg +6 -0
  39. package/build/main/assets/icons/plus.svg +4 -0
  40. package/build/main/assets/icons/private.svg +12 -0
  41. package/build/main/assets/icons/refresh.svg +3 -0
  42. package/build/main/assets/icons/search.svg +3 -0
  43. package/build/main/assets/icons/story-loader.svg +3 -0
  44. package/build/main/assets/icons/tick.svg +10 -0
  45. package/build/main/assets/icons/trash.svg +3 -0
  46. package/build/main/assets/icons/unread-mails.svg +4 -0
  47. package/build/main/assets/icons/warning-avatar.svg +4 -0
  48. package/build/main/assets/storybook/index.d.ts +21 -0
  49. package/build/main/assets/storybook/index.js +22 -0
  50. package/build/main/assets/storybook/index.js.map +1 -0
  51. package/build/main/constants/constants.d.ts +158 -0
  52. package/build/main/constants/constants.js +178 -0
  53. package/build/main/constants/constants.js.map +1 -0
  54. package/build/main/constants/index.d.ts +2 -0
  55. package/build/main/constants/index.js +3 -0
  56. package/build/main/constants/index.js.map +1 -0
  57. package/build/main/constants/types.d.ts +29 -0
  58. package/build/main/constants/types.js +2 -0
  59. package/build/main/constants/types.js.map +1 -0
  60. package/build/main/helpers/index.d.ts +25 -0
  61. package/build/main/helpers/index.js +113 -0
  62. package/build/main/helpers/index.js.map +1 -0
  63. package/build/main/hooks/useLongTap.d.ts +12 -0
  64. package/build/main/hooks/useLongTap.js +29 -0
  65. package/build/main/hooks/useLongTap.js.map +1 -0
  66. package/build/main/hooks/useModal.d.ts +21 -0
  67. package/build/main/hooks/useModal.js +60 -0
  68. package/build/main/hooks/useModal.js.map +1 -0
  69. package/build/main/index.d.ts +36 -0
  70. package/build/main/index.js +37 -0
  71. package/build/main/index.js.map +1 -0
  72. package/build/main/styles/index.d.ts +1 -0
  73. package/build/main/styles/index.js +2 -0
  74. package/build/main/styles/index.js.map +1 -0
  75. package/build/main/styles/main.js +0 -0
  76. package/build/main/styles/styles.scss +14 -0
  77. package/build/main//321/201omponents/ActionModal/ActionModal.d.ts +4 -0
  78. package/build/main//321/201omponents/ActionModal/ActionModal.js +55 -0
  79. package/build/main//321/201omponents/ActionModal/ActionModal.js.map +1 -0
  80. package/build/main//321/201omponents/ActionModal/index.d.ts +1 -0
  81. package/build/main//321/201omponents/ActionModal/index.js +2 -0
  82. package/build/main//321/201omponents/ActionModal/index.js.map +1 -0
  83. package/build/main//321/201omponents/ActionModal/types.d.ts +24 -0
  84. package/build/main//321/201omponents/ActionModal/types.js +2 -0
  85. package/build/main//321/201omponents/ActionModal/types.js.map +1 -0
  86. package/build/main//321/201omponents/AttachedFile/AttachedFile.d.ts +8 -0
  87. package/build/main//321/201omponents/AttachedFile/AttachedFile.js +60 -0
  88. package/build/main//321/201omponents/AttachedFile/AttachedFile.js.map +1 -0
  89. package/build/main//321/201omponents/AttachedFile/index.d.ts +1 -0
  90. package/build/main//321/201omponents/AttachedFile/index.js +2 -0
  91. package/build/main//321/201omponents/AttachedFile/index.js.map +1 -0
  92. package/build/main//321/201omponents/AttachedFile/types.d.ts +25 -0
  93. package/build/main//321/201omponents/AttachedFile/types.js +2 -0
  94. package/build/main//321/201omponents/AttachedFile/types.js.map +1 -0
  95. package/build/main//321/201omponents/Avatar/Avatar.d.ts +4 -0
  96. package/build/main//321/201omponents/Avatar/Avatar.js +150 -0
  97. package/build/main//321/201omponents/Avatar/Avatar.js.map +1 -0
  98. package/build/main//321/201omponents/Avatar/index.d.ts +1 -0
  99. package/build/main//321/201omponents/Avatar/index.js +2 -0
  100. package/build/main//321/201omponents/Avatar/index.js.map +1 -0
  101. package/build/main//321/201omponents/Avatar/types.d.ts +59 -0
  102. package/build/main//321/201omponents/Avatar/types.js +29 -0
  103. package/build/main//321/201omponents/Avatar/types.js.map +1 -0
  104. package/build/main//321/201omponents/Button/Button.d.ts +4 -0
  105. package/build/main//321/201omponents/Button/Button.js +63 -0
  106. package/build/main//321/201omponents/Button/Button.js.map +1 -0
  107. package/build/main//321/201omponents/Button/index.d.ts +1 -0
  108. package/build/main//321/201omponents/Button/index.js +2 -0
  109. package/build/main//321/201omponents/Button/index.js.map +1 -0
  110. package/build/main//321/201omponents/Button/types.d.ts +28 -0
  111. package/build/main//321/201omponents/Button/types.js +11 -0
  112. package/build/main//321/201omponents/Button/types.js.map +1 -0
  113. package/build/main//321/201omponents/CachedImage/CachedImage.d.ts +4 -0
  114. package/build/main//321/201omponents/CachedImage/CachedImage.js +59 -0
  115. package/build/main//321/201omponents/CachedImage/CachedImage.js.map +1 -0
  116. package/build/main//321/201omponents/CachedImage/helpers.d.ts +3 -0
  117. package/build/main//321/201omponents/CachedImage/helpers.js +40 -0
  118. package/build/main//321/201omponents/CachedImage/helpers.js.map +1 -0
  119. package/build/main//321/201omponents/CachedImage/index.d.ts +1 -0
  120. package/build/main//321/201omponents/CachedImage/index.js +2 -0
  121. package/build/main//321/201omponents/CachedImage/index.js.map +1 -0
  122. package/build/main//321/201omponents/CachedImage/types.d.ts +10 -0
  123. package/build/main//321/201omponents/CachedImage/types.js +2 -0
  124. package/build/main//321/201omponents/CachedImage/types.js.map +1 -0
  125. package/build/main//321/201omponents/Calendar/Calendar.d.ts +4 -0
  126. package/build/main//321/201omponents/Calendar/Calendar.js +97 -0
  127. package/build/main//321/201omponents/Calendar/Calendar.js.map +1 -0
  128. package/build/main//321/201omponents/Calendar/index.d.ts +1 -0
  129. package/build/main//321/201omponents/Calendar/index.js +2 -0
  130. package/build/main//321/201omponents/Calendar/index.js.map +1 -0
  131. package/build/main//321/201omponents/Calendar/types.d.ts +13 -0
  132. package/build/main//321/201omponents/Calendar/types.js +2 -0
  133. package/build/main//321/201omponents/Calendar/types.js.map +1 -0
  134. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.d.ts +4 -0
  135. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js +46 -0
  136. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js.map +1 -0
  137. package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.d.ts +4 -0
  138. package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.js +71 -0
  139. package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.js.map +1 -0
  140. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.d.ts +4 -0
  141. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js +41 -0
  142. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js.map +1 -0
  143. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.d.ts +4 -0
  144. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js +63 -0
  145. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js.map +1 -0
  146. package/build/main//321/201omponents/Charts/colors.d.ts +3 -0
  147. package/build/main//321/201omponents/Charts/colors.js +4 -0
  148. package/build/main//321/201omponents/Charts/colors.js.map +1 -0
  149. package/build/main//321/201omponents/Charts/constants.d.ts +46 -0
  150. package/build/main//321/201omponents/Charts/constants.js +43 -0
  151. package/build/main//321/201omponents/Charts/constants.js.map +1 -0
  152. package/build/main//321/201omponents/Charts/helpers.d.ts +17 -0
  153. package/build/main//321/201omponents/Charts/helpers.js +73 -0
  154. package/build/main//321/201omponents/Charts/helpers.js.map +1 -0
  155. package/build/main//321/201omponents/Charts/index.d.ts +3 -0
  156. package/build/main//321/201omponents/Charts/index.js +4 -0
  157. package/build/main//321/201omponents/Charts/index.js.map +1 -0
  158. package/build/main//321/201omponents/Charts/types.d.ts +88 -0
  159. package/build/main//321/201omponents/Charts/types.js +2 -0
  160. package/build/main//321/201omponents/Charts/types.js.map +1 -0
  161. package/build/main//321/201omponents/Charts/useEvents.d.ts +5 -0
  162. package/build/main//321/201omponents/Charts/useEvents.js +45 -0
  163. package/build/main//321/201omponents/Charts/useEvents.js.map +1 -0
  164. package/build/main//321/201omponents/Charts/usePieEvents.d.ts +6 -0
  165. package/build/main//321/201omponents/Charts/usePieEvents.js +57 -0
  166. package/build/main//321/201omponents/Charts/usePieEvents.js.map +1 -0
  167. package/build/main//321/201omponents/Checkbox/Checkbox.d.ts +4 -0
  168. package/build/main//321/201omponents/Checkbox/Checkbox.js +38 -0
  169. package/build/main//321/201omponents/Checkbox/Checkbox.js.map +1 -0
  170. package/build/main//321/201omponents/Checkbox/index.d.ts +1 -0
  171. package/build/main//321/201omponents/Checkbox/index.js +2 -0
  172. package/build/main//321/201omponents/Checkbox/index.js.map +1 -0
  173. package/build/main//321/201omponents/Checkbox/types.d.ts +12 -0
  174. package/build/main//321/201omponents/Checkbox/types.js +2 -0
  175. package/build/main//321/201omponents/Checkbox/types.js.map +1 -0
  176. package/build/main//321/201omponents/Chip/Chip.d.ts +4 -0
  177. package/build/main//321/201omponents/Chip/Chip.js +65 -0
  178. package/build/main//321/201omponents/Chip/Chip.js.map +1 -0
  179. package/build/main//321/201omponents/Chip/index.d.ts +1 -0
  180. package/build/main//321/201omponents/Chip/index.js +2 -0
  181. package/build/main//321/201omponents/Chip/index.js.map +1 -0
  182. package/build/main//321/201omponents/Chip/types.d.ts +21 -0
  183. package/build/main//321/201omponents/Chip/types.js +2 -0
  184. package/build/main//321/201omponents/Chip/types.js.map +1 -0
  185. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.d.ts +4 -0
  186. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js +70 -0
  187. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js.map +1 -0
  188. package/build/main//321/201omponents/ConfirmationModal/index.d.ts +1 -0
  189. package/build/main//321/201omponents/ConfirmationModal/index.js +2 -0
  190. package/build/main//321/201omponents/ConfirmationModal/index.js.map +1 -0
  191. package/build/main//321/201omponents/ConfirmationModal/types.d.ts +28 -0
  192. package/build/main//321/201omponents/ConfirmationModal/types.js +2 -0
  193. package/build/main//321/201omponents/ConfirmationModal/types.js.map +1 -0
  194. package/build/main//321/201omponents/ContextMenu/ContextMenu.d.ts +4 -0
  195. package/build/main//321/201omponents/ContextMenu/ContextMenu.js +81 -0
  196. package/build/main//321/201omponents/ContextMenu/ContextMenu.js.map +1 -0
  197. package/build/main//321/201omponents/ContextMenu/index.d.ts +1 -0
  198. package/build/main//321/201omponents/ContextMenu/index.js +2 -0
  199. package/build/main//321/201omponents/ContextMenu/index.js.map +1 -0
  200. package/build/main//321/201omponents/ContextMenu/types.d.ts +34 -0
  201. package/build/main//321/201omponents/ContextMenu/types.js +2 -0
  202. package/build/main//321/201omponents/ContextMenu/types.js.map +1 -0
  203. package/build/main//321/201omponents/CustomSelect/CustomSelect.d.ts +12 -0
  204. package/build/main//321/201omponents/CustomSelect/CustomSelect.js +243 -0
  205. package/build/main//321/201omponents/CustomSelect/CustomSelect.js.map +1 -0
  206. package/build/main//321/201omponents/CustomSelect/index.d.ts +1 -0
  207. package/build/main//321/201omponents/CustomSelect/index.js +2 -0
  208. package/build/main//321/201omponents/CustomSelect/index.js.map +1 -0
  209. package/build/main//321/201omponents/CustomSelect/selectStyles.d.ts +16 -0
  210. package/build/main//321/201omponents/CustomSelect/selectStyles.js +67 -0
  211. package/build/main//321/201omponents/CustomSelect/selectStyles.js.map +1 -0
  212. package/build/main//321/201omponents/CustomSelect/types.d.ts +64 -0
  213. package/build/main//321/201omponents/CustomSelect/types.js +2 -0
  214. package/build/main//321/201omponents/CustomSelect/types.js.map +1 -0
  215. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.d.ts +4 -0
  216. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js +58 -0
  217. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js.map +1 -0
  218. package/build/main//321/201omponents/CustomSelectProfiles/index.d.ts +1 -0
  219. package/build/main//321/201omponents/CustomSelectProfiles/index.js +2 -0
  220. package/build/main//321/201omponents/CustomSelectProfiles/index.js.map +1 -0
  221. package/build/main//321/201omponents/CustomSelectProfiles/types.d.ts +12 -0
  222. package/build/main//321/201omponents/CustomSelectProfiles/types.js +2 -0
  223. package/build/main//321/201omponents/CustomSelectProfiles/types.js.map +1 -0
  224. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.d.ts +4 -0
  225. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js +57 -0
  226. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js.map +1 -0
  227. package/build/main//321/201omponents/DragAndDrop/index.d.ts +1 -0
  228. package/build/main//321/201omponents/DragAndDrop/index.js +2 -0
  229. package/build/main//321/201omponents/DragAndDrop/index.js.map +1 -0
  230. package/build/main//321/201omponents/DragAndDrop/types.d.ts +24 -0
  231. package/build/main//321/201omponents/DragAndDrop/types.js +2 -0
  232. package/build/main//321/201omponents/DragAndDrop/types.js.map +1 -0
  233. package/build/main//321/201omponents/DraggablePopup/DraggablePopup.d.ts +4 -0
  234. package/build/main//321/201omponents/DraggablePopup/DraggablePopup.js +223 -0
  235. package/build/main//321/201omponents/DraggablePopup/DraggablePopup.js.map +1 -0
  236. package/build/main//321/201omponents/DraggablePopup/index.d.ts +1 -0
  237. package/build/main//321/201omponents/DraggablePopup/index.js +2 -0
  238. package/build/main//321/201omponents/DraggablePopup/index.js.map +1 -0
  239. package/build/main//321/201omponents/DraggablePopup/types.d.ts +87 -0
  240. package/build/main//321/201omponents/DraggablePopup/types.js +2 -0
  241. package/build/main//321/201omponents/DraggablePopup/types.js.map +1 -0
  242. package/build/main//321/201omponents/Error/Error.d.ts +4 -0
  243. package/build/main//321/201omponents/Error/Error.js +23 -0
  244. package/build/main//321/201omponents/Error/Error.js.map +1 -0
  245. package/build/main//321/201omponents/Error/index.d.ts +1 -0
  246. package/build/main//321/201omponents/Error/index.js +2 -0
  247. package/build/main//321/201omponents/Error/index.js.map +1 -0
  248. package/build/main//321/201omponents/Error/types.d.ts +10 -0
  249. package/build/main//321/201omponents/Error/types.js +2 -0
  250. package/build/main//321/201omponents/Error/types.js.map +1 -0
  251. package/build/main//321/201omponents/Flex/Flex.d.ts +2 -0
  252. package/build/main//321/201omponents/Flex/Flex.js +49 -0
  253. package/build/main//321/201omponents/Flex/Flex.js.map +1 -0
  254. package/build/main//321/201omponents/Flex/HFlex/HFlex.d.ts +5 -0
  255. package/build/main//321/201omponents/Flex/HFlex/HFlex.js +16 -0
  256. package/build/main//321/201omponents/Flex/HFlex/HFlex.js.map +1 -0
  257. package/build/main//321/201omponents/Flex/HFlex/index.d.ts +1 -0
  258. package/build/main//321/201omponents/Flex/HFlex/index.js +2 -0
  259. package/build/main//321/201omponents/Flex/HFlex/index.js.map +1 -0
  260. package/build/main//321/201omponents/Flex/VFlex/VFlex.d.ts +5 -0
  261. package/build/main//321/201omponents/Flex/VFlex/VFlex.js +16 -0
  262. package/build/main//321/201omponents/Flex/VFlex/VFlex.js.map +1 -0
  263. package/build/main//321/201omponents/Flex/VFlex/index.d.ts +1 -0
  264. package/build/main//321/201omponents/Flex/VFlex/index.js +2 -0
  265. package/build/main//321/201omponents/Flex/VFlex/index.js.map +1 -0
  266. package/build/main//321/201omponents/Flex/index.d.ts +3 -0
  267. package/build/main//321/201omponents/Flex/index.js +4 -0
  268. package/build/main//321/201omponents/Flex/index.js.map +1 -0
  269. package/build/main//321/201omponents/Flex/types.d.ts +15 -0
  270. package/build/main//321/201omponents/Flex/types.js +2 -0
  271. package/build/main//321/201omponents/Flex/types.js.map +1 -0
  272. package/build/main//321/201omponents/Header/Header.d.ts +5 -0
  273. package/build/main//321/201omponents/Header/Header.js +125 -0
  274. package/build/main//321/201omponents/Header/Header.js.map +1 -0
  275. package/build/main//321/201omponents/Header/index.d.ts +1 -0
  276. package/build/main//321/201omponents/Header/index.js +2 -0
  277. package/build/main//321/201omponents/Header/index.js.map +1 -0
  278. package/build/main//321/201omponents/Header/types.d.ts +46 -0
  279. package/build/main//321/201omponents/Header/types.js +2 -0
  280. package/build/main//321/201omponents/Header/types.js.map +1 -0
  281. package/build/main//321/201omponents/Input/Input.d.ts +4 -0
  282. package/build/main//321/201omponents/Input/Input.js +207 -0
  283. package/build/main//321/201omponents/Input/Input.js.map +1 -0
  284. package/build/main//321/201omponents/Input/index.d.ts +1 -0
  285. package/build/main//321/201omponents/Input/index.js +2 -0
  286. package/build/main//321/201omponents/Input/index.js.map +1 -0
  287. package/build/main//321/201omponents/Input/types.d.ts +29 -0
  288. package/build/main//321/201omponents/Input/types.js +2 -0
  289. package/build/main//321/201omponents/Input/types.js.map +1 -0
  290. package/build/main//321/201omponents/ListItem/ListItem.d.ts +23 -0
  291. package/build/main//321/201omponents/ListItem/ListItem.js +208 -0
  292. package/build/main//321/201omponents/ListItem/ListItem.js.map +1 -0
  293. package/build/main//321/201omponents/ListItem/index.d.ts +1 -0
  294. package/build/main//321/201omponents/ListItem/index.js +2 -0
  295. package/build/main//321/201omponents/ListItem/index.js.map +1 -0
  296. package/build/main//321/201omponents/ListItem/types.d.ts +42 -0
  297. package/build/main//321/201omponents/ListItem/types.js +2 -0
  298. package/build/main//321/201omponents/ListItem/types.js.map +1 -0
  299. package/build/main//321/201omponents/Loader/Loader.d.ts +4 -0
  300. package/build/main//321/201omponents/Loader/Loader.js +44 -0
  301. package/build/main//321/201omponents/Loader/Loader.js.map +1 -0
  302. package/build/main//321/201omponents/Loader/index.d.ts +1 -0
  303. package/build/main//321/201omponents/Loader/index.js +2 -0
  304. package/build/main//321/201omponents/Loader/index.js.map +1 -0
  305. package/build/main//321/201omponents/Loader/types.d.ts +18 -0
  306. package/build/main//321/201omponents/Loader/types.js +2 -0
  307. package/build/main//321/201omponents/Loader/types.js.map +1 -0
  308. package/build/main//321/201omponents/Modal/Modal.d.ts +4 -0
  309. package/build/main//321/201omponents/Modal/Modal.js +146 -0
  310. package/build/main//321/201omponents/Modal/Modal.js.map +1 -0
  311. package/build/main//321/201omponents/Modal/index.d.ts +1 -0
  312. package/build/main//321/201omponents/Modal/index.js +2 -0
  313. package/build/main//321/201omponents/Modal/index.js.map +1 -0
  314. package/build/main//321/201omponents/Modal/types.d.ts +35 -0
  315. package/build/main//321/201omponents/Modal/types.js +2 -0
  316. package/build/main//321/201omponents/Modal/types.js.map +1 -0
  317. package/build/main//321/201omponents/Notification/Notification.d.ts +8 -0
  318. package/build/main//321/201omponents/Notification/Notification.js +218 -0
  319. package/build/main//321/201omponents/Notification/Notification.js.map +1 -0
  320. package/build/main//321/201omponents/Notification/index.d.ts +1 -0
  321. package/build/main//321/201omponents/Notification/index.js +2 -0
  322. package/build/main//321/201omponents/Notification/index.js.map +1 -0
  323. package/build/main//321/201omponents/Notification/types.d.ts +45 -0
  324. package/build/main//321/201omponents/Notification/types.js +2 -0
  325. package/build/main//321/201omponents/Notification/types.js.map +1 -0
  326. package/build/main//321/201omponents/Profile/Profile.d.ts +4 -0
  327. package/build/main//321/201omponents/Profile/Profile.js +42 -0
  328. package/build/main//321/201omponents/Profile/Profile.js.map +1 -0
  329. package/build/main//321/201omponents/Profile/index.d.ts +1 -0
  330. package/build/main//321/201omponents/Profile/index.js +2 -0
  331. package/build/main//321/201omponents/Profile/index.js.map +1 -0
  332. package/build/main//321/201omponents/Profile/types.d.ts +14 -0
  333. package/build/main//321/201omponents/Profile/types.js +2 -0
  334. package/build/main//321/201omponents/Profile/types.js.map +1 -0
  335. package/build/main//321/201omponents/ProgressBar/ProgressBar.d.ts +4 -0
  336. package/build/main//321/201omponents/ProgressBar/ProgressBar.js +66 -0
  337. package/build/main//321/201omponents/ProgressBar/ProgressBar.js.map +1 -0
  338. package/build/main//321/201omponents/ProgressBar/index.d.ts +1 -0
  339. package/build/main//321/201omponents/ProgressBar/index.js +2 -0
  340. package/build/main//321/201omponents/ProgressBar/index.js.map +1 -0
  341. package/build/main//321/201omponents/ProgressBar/types.d.ts +7 -0
  342. package/build/main//321/201omponents/ProgressBar/types.js +2 -0
  343. package/build/main//321/201omponents/ProgressBar/types.js.map +1 -0
  344. package/build/main//321/201omponents/RadioButton/RadioButton.d.ts +4 -0
  345. package/build/main//321/201omponents/RadioButton/RadioButton.js +37 -0
  346. package/build/main//321/201omponents/RadioButton/RadioButton.js.map +1 -0
  347. package/build/main//321/201omponents/RadioButton/index.d.ts +1 -0
  348. package/build/main//321/201omponents/RadioButton/index.js +2 -0
  349. package/build/main//321/201omponents/RadioButton/index.js.map +1 -0
  350. package/build/main//321/201omponents/RadioButton/types.d.ts +12 -0
  351. package/build/main//321/201omponents/RadioButton/types.js +2 -0
  352. package/build/main//321/201omponents/RadioButton/types.js.map +1 -0
  353. package/build/main//321/201omponents/ScrollBar/ScrollBar.d.ts +5 -0
  354. package/build/main//321/201omponents/ScrollBar/ScrollBar.js +63 -0
  355. package/build/main//321/201omponents/ScrollBar/ScrollBar.js.map +1 -0
  356. package/build/main//321/201omponents/ScrollBar/index.d.ts +1 -0
  357. package/build/main//321/201omponents/ScrollBar/index.js +2 -0
  358. package/build/main//321/201omponents/ScrollBar/index.js.map +1 -0
  359. package/build/main//321/201omponents/ScrollBar/types.d.ts +20 -0
  360. package/build/main//321/201omponents/ScrollBar/types.js +2 -0
  361. package/build/main//321/201omponents/ScrollBar/types.js.map +1 -0
  362. package/build/main//321/201omponents/Skeleton/Skeleton.d.ts +4 -0
  363. package/build/main//321/201omponents/Skeleton/Skeleton.js +59 -0
  364. package/build/main//321/201omponents/Skeleton/Skeleton.js.map +1 -0
  365. package/build/main//321/201omponents/Skeleton/index.d.ts +1 -0
  366. package/build/main//321/201omponents/Skeleton/index.js +2 -0
  367. package/build/main//321/201omponents/Skeleton/index.js.map +1 -0
  368. package/build/main//321/201omponents/Skeleton/types.d.ts +17 -0
  369. package/build/main//321/201omponents/Skeleton/types.js +2 -0
  370. package/build/main//321/201omponents/Skeleton/types.js.map +1 -0
  371. package/build/main//321/201omponents/Stories/Stories.d.ts +4 -0
  372. package/build/main//321/201omponents/Stories/Stories.js +300 -0
  373. package/build/main//321/201omponents/Stories/Stories.js.map +1 -0
  374. package/build/main//321/201omponents/Stories/index.d.ts +1 -0
  375. package/build/main//321/201omponents/Stories/index.js +2 -0
  376. package/build/main//321/201omponents/Stories/index.js.map +1 -0
  377. package/build/main//321/201omponents/Stories/types.d.ts +70 -0
  378. package/build/main//321/201omponents/Stories/types.js +16 -0
  379. package/build/main//321/201omponents/Stories/types.js.map +1 -0
  380. package/build/main//321/201omponents/Switcher/Switcher.d.ts +4 -0
  381. package/build/main//321/201omponents/Switcher/Switcher.js +34 -0
  382. package/build/main//321/201omponents/Switcher/Switcher.js.map +1 -0
  383. package/build/main//321/201omponents/Switcher/index.d.ts +1 -0
  384. package/build/main//321/201omponents/Switcher/index.js +2 -0
  385. package/build/main//321/201omponents/Switcher/index.js.map +1 -0
  386. package/build/main//321/201omponents/Switcher/types.d.ts +8 -0
  387. package/build/main//321/201omponents/Switcher/types.js +2 -0
  388. package/build/main//321/201omponents/Switcher/types.js.map +1 -0
  389. package/build/main//321/201omponents/SyncLoader/SyncLoader.d.ts +5 -0
  390. package/build/main//321/201omponents/SyncLoader/SyncLoader.js +65 -0
  391. package/build/main//321/201omponents/SyncLoader/SyncLoader.js.map +1 -0
  392. package/build/main//321/201omponents/SyncLoader/index.d.ts +1 -0
  393. package/build/main//321/201omponents/SyncLoader/index.js +2 -0
  394. package/build/main//321/201omponents/SyncLoader/index.js.map +1 -0
  395. package/build/main//321/201omponents/SyncLoader/types.d.ts +9 -0
  396. package/build/main//321/201omponents/SyncLoader/types.js +2 -0
  397. package/build/main//321/201omponents/SyncLoader/types.js.map +1 -0
  398. package/build/main//321/201omponents/Textarea/Textarea.d.ts +4 -0
  399. package/build/main//321/201omponents/Textarea/Textarea.js +96 -0
  400. package/build/main//321/201omponents/Textarea/Textarea.js.map +1 -0
  401. package/build/main//321/201omponents/Textarea/index.d.ts +1 -0
  402. package/build/main//321/201omponents/Textarea/index.js +2 -0
  403. package/build/main//321/201omponents/Textarea/index.js.map +1 -0
  404. package/build/main//321/201omponents/Textarea/types.d.ts +12 -0
  405. package/build/main//321/201omponents/Textarea/types.js +2 -0
  406. package/build/main//321/201omponents/Textarea/types.js.map +1 -0
  407. package/build/main//321/201omponents/Toggle/Toggle.d.ts +4 -0
  408. package/build/main//321/201omponents/Toggle/Toggle.js +38 -0
  409. package/build/main//321/201omponents/Toggle/Toggle.js.map +1 -0
  410. package/build/main//321/201omponents/Toggle/index.d.ts +1 -0
  411. package/build/main//321/201omponents/Toggle/index.js +2 -0
  412. package/build/main//321/201omponents/Toggle/index.js.map +1 -0
  413. package/build/main//321/201omponents/Toggle/types.d.ts +12 -0
  414. package/build/main//321/201omponents/Toggle/types.js +2 -0
  415. package/build/main//321/201omponents/Toggle/types.js.map +1 -0
  416. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.d.ts +4 -0
  417. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js +32 -0
  418. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js.map +1 -0
  419. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.d.ts +4 -0
  420. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js +82 -0
  421. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js.map +1 -0
  422. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.d.ts +4 -0
  423. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js +23 -0
  424. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js.map +1 -0
  425. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.d.ts +4 -0
  426. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js +132 -0
  427. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js.map +1 -0
  428. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.d.ts +3 -0
  429. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js +97 -0
  430. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js.map +1 -0
  431. package/build/main//321/201omponents/UserDropdown/Option/Option.d.ts +4 -0
  432. package/build/main//321/201omponents/UserDropdown/Option/Option.js +93 -0
  433. package/build/main//321/201omponents/UserDropdown/Option/Option.js.map +1 -0
  434. package/build/main//321/201omponents/UserDropdown/SearchInCatalogButton/SearchInCatalogButton.d.ts +4 -0
  435. package/build/main//321/201omponents/UserDropdown/SearchInCatalogButton/SearchInCatalogButton.js +43 -0
  436. package/build/main//321/201omponents/UserDropdown/SearchInCatalogButton/SearchInCatalogButton.js.map +1 -0
  437. package/build/main//321/201omponents/UserDropdown/UserDropdown.d.ts +5 -0
  438. package/build/main//321/201omponents/UserDropdown/UserDropdown.js +484 -0
  439. package/build/main//321/201omponents/UserDropdown/UserDropdown.js.map +1 -0
  440. package/build/main//321/201omponents/UserDropdown/constants.d.ts +7 -0
  441. package/build/main//321/201omponents/UserDropdown/constants.js +9 -0
  442. package/build/main//321/201omponents/UserDropdown/constants.js.map +1 -0
  443. package/build/main//321/201omponents/UserDropdown/helpers.d.ts +98 -0
  444. package/build/main//321/201omponents/UserDropdown/helpers.js +146 -0
  445. package/build/main//321/201omponents/UserDropdown/helpers.js.map +1 -0
  446. package/build/main//321/201omponents/UserDropdown/index.d.ts +1 -0
  447. package/build/main//321/201omponents/UserDropdown/index.js +2 -0
  448. package/build/main//321/201omponents/UserDropdown/index.js.map +1 -0
  449. package/build/main//321/201omponents/UserDropdown/selectStyles.d.ts +15 -0
  450. package/build/main//321/201omponents/UserDropdown/selectStyles.js +80 -0
  451. package/build/main//321/201omponents/UserDropdown/selectStyles.js.map +1 -0
  452. package/build/main//321/201omponents/UserDropdown/types.d.ts +251 -0
  453. package/build/main//321/201omponents/UserDropdown/types.js +9 -0
  454. package/build/main//321/201omponents/UserDropdown/types.js.map +1 -0
  455. package/build/main//321/201omponents/types.d.ts +2 -0
  456. package/build/main//321/201omponents/types.js +2 -0
  457. package/build/main//321/201omponents/types.js.map +1 -0
  458. package/package.json +1 -1
@@ -0,0 +1,223 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import { useEffect, useRef, useState } from 'react';
14
+ import 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 = 40;
29
+ var ADDITIONAL_CONTEXT_MENU_OFFSET_X = 60;
30
+ var ADDITIONAL_CONTEXT_MENU_OFFSET_Y = 40;
31
+ var DRAGGABLE_KEY = 'handle';
32
+ var calculateNewX = function (_a) {
33
+ var currentX = _a.currentX, leftPadding = _a.leftPadding, rightPadding = _a.rightPadding, zoneWidth = _a.zoneWidth, popupWidth = _a.popupWidth;
34
+ var maxPointX = zoneWidth - popupWidth - rightPadding;
35
+ if (currentX < leftPadding)
36
+ return leftPadding;
37
+ if (currentX > maxPointX)
38
+ return maxPointX;
39
+ return currentX;
40
+ };
41
+ var calculateNewY = function (_a) {
42
+ var currentY = _a.currentY, topPadding = _a.topPadding, bottomPadding = _a.bottomPadding, zoneHeight = _a.zoneHeight, popupHeight = _a.popupHeight;
43
+ var maxPointY = zoneHeight - popupHeight - bottomPadding;
44
+ if (currentY < topPadding)
45
+ return topPadding;
46
+ if (currentY > maxPointY)
47
+ return maxPointY;
48
+ return currentY;
49
+ };
50
+ var calculateNewAdditionalPopupX = function (_a) {
51
+ var currentX = _a.currentX, rightPadding = _a.rightPadding, zoneWidth = _a.zoneWidth, popupWidth = _a.popupWidth, _b = _a.additionalPopupWidth, additionalPopupWidth = _b === void 0 ? 0 : _b;
52
+ var rightOpenedPointX = currentX + popupWidth;
53
+ var offset = 0.2;
54
+ var leftOpenedPointX = currentX - additionalPopupWidth + offset;
55
+ var maxPointX = zoneWidth - rightOpenedPointX - additionalPopupWidth;
56
+ return maxPointX >= rightPadding ? rightOpenedPointX : leftOpenedPointX;
57
+ };
58
+ var calculateNewAdditionalPopupY = function (_a) {
59
+ var currentY = _a.currentY, minPointedY = _a.topPadding, bottomPadding = _a.bottomPadding, zoneHeight = _a.zoneHeight, popupHeight = _a.popupHeight, _b = _a.additionalPopupHeight, additionalPopupHeight = _b === void 0 ? 0 : _b;
60
+ var middleOpenedPointY = currentY + popupHeight / 2 - additionalPopupHeight / 2;
61
+ var bottomOpenedPointY = currentY + popupHeight - additionalPopupHeight;
62
+ var maxPointedY = zoneHeight - bottomPadding;
63
+ if (middleOpenedPointY + additionalPopupHeight <= maxPointedY && middleOpenedPointY >= minPointedY)
64
+ return middleOpenedPointY;
65
+ if (currentY + additionalPopupHeight <= maxPointedY)
66
+ return currentY;
67
+ if (bottomOpenedPointY >= minPointedY)
68
+ return bottomOpenedPointY;
69
+ return minPointedY;
70
+ };
71
+ var generateMaxWidth = function (maxPopupWidth) { return ({ maxWidth: maxPopupWidth ? "".concat(maxPopupWidth, "px") : 'auto' }); };
72
+ var renderAdditionalPopup = function (_a) {
73
+ var additionalPopup = _a.additionalPopup, handleCloseModal = _a.handleCloseModal, additionalPopupRef = _a.additionalPopupRef, additionalPopupPosition = _a.additionalPopupPosition, additionalContextMenuProps = _a.additionalContextMenuProps;
74
+ if (!additionalPopup)
75
+ return null;
76
+ var _b = additionalPopupPosition || {}, _c = _b.x, x = _c === void 0 ? 0 : _c, _d = _b.y, y = _d === void 0 ? 0 : _d;
77
+ var popupContent = additionalPopup.popupContent, maxPopupHeight = additionalPopup.maxPopupHeight, maxPopupWidth = additionalPopup.maxPopupWidth, popupClassName = additionalPopup.popupClassName, bottomContent = additionalPopup.bottomContent, title = additionalPopup.title, titleStyles = additionalPopup.titleStyles, isResetPaddingBottom = additionalPopup.isResetPaddingBottom;
78
+ var maxWidth = generateMaxWidth(maxPopupWidth);
79
+ return (_jsx("div", __assign({ ref: additionalPopupRef, className: classNames("smartapp-draggable-popup__popup smartapp-draggable-popup__additional-popup ".concat(popupClassName), {
80
+ 'invisible-content': !additionalPopupPosition,
81
+ }), style: __assign(__assign({}, maxWidth), { top: y, left: x }) }, { children: _jsx(Modal, { isModalOpen: true, content: popupContent, handleCloseModal: handleCloseModal, modalMaxHeight: maxPopupHeight, styles: maxWidth, title: title, titleStyles: titleStyles, className: "smartapp-draggable-popup__modal", isPopup: true, bottomContent: bottomContent, contextMenuProps: additionalContextMenuProps || undefined, isResetPaddingBottom: isResetPaddingBottom }) })));
82
+ };
83
+ var handleContextMenu = function (_a) {
84
+ var currentContextMenuProps = _a.currentContextMenuProps, setCurrentContextMenuProps = _a.setCurrentContextMenuProps, x = _a.x, y = _a.y, _b = _a.xOffset, xOffset = _b === void 0 ? 0 : _b, _c = _a.yOffset, yOffset = _c === void 0 ? 0 : _c, contextMenuProps = _a.contextMenuProps;
85
+ if (contextMenuProps) {
86
+ var _d = contextMenuProps.menuWidth, menuWidth = _d === void 0 ? 0 : _d;
87
+ return setCurrentContextMenuProps(__assign(__assign({}, contextMenuProps), { position: { x: x + xOffset - menuWidth, y: y + yOffset } }));
88
+ }
89
+ return currentContextMenuProps && setCurrentContextMenuProps(null);
90
+ };
91
+ var DraggablePopup = function (_a) {
92
+ 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, _g = _a.isClosableOutside, isClosableOutside = _g === void 0 ? true : _g, maxPopupWidth = _a.maxPopupWidth, _h = _a.isDisabled, isDisabled = _h === void 0 ? false : _h, additionalPopup = _a.additionalPopup, handleClickOutside = _a.handleClickOutside, titleStyles = _a.titleStyles, isResetPaddingBottom = _a.isResetPaddingBottom;
93
+ var _j = useState(null), draggableZoneInfo = _j[0], setDraggableZoneInfo = _j[1];
94
+ var _k = useState(null), popupPosition = _k[0], setPopupPosition = _k[1];
95
+ var _l = useState(false), wasDraggable = _l[0], setWasDraggable = _l[1];
96
+ var _m = useState(null), currentContextMenuProps = _m[0], setCurrentContextMenuProps = _m[1];
97
+ var _o = useState(false), isMousedownInside = _o[0], setIsMousedownInside = _o[1];
98
+ var _p = useState(null), additionalPopupPosition = _p[0], setAdditionalPopupPosition = _p[1];
99
+ var _q = useState(null), additionalContextMenuProps = _q[0], setAdditionalContextMenuProps = _q[1];
100
+ var _r = draggableZoneInfo || {}, width = _r.width, _s = _r.height, height = _s === void 0 ? 0 : _s, top = _r.top, bottom = _r.bottom, right = _r.right, left = _r.left;
101
+ var popupRef = useRef(null);
102
+ var additionalPopupRef = useRef(null);
103
+ useEffect(function () {
104
+ var topPadding = dropZonePadding.top, bottomPadding = dropZonePadding.bottom, leftPadding = dropZonePadding.left, rightPadding = dropZonePadding.right;
105
+ var draggableZoneRefCurrent = draggableZoneRef.current;
106
+ var popupRefCurrent = popupRef.current;
107
+ var additionalPopupRefCurrent = additionalPopupRef.current;
108
+ var updatePosition = function () {
109
+ if (!draggableZoneRefCurrent || !popupRefCurrent || !popupCoords)
110
+ return;
111
+ var _a = draggableZoneRefCurrent.getBoundingClientRect(), zoneWidth = _a.width, zoneHeight = _a.height, topOffsetByPage = _a.top, leftOffsetByPage = _a.left;
112
+ var _b = popupRefCurrent.getBoundingClientRect(), popupWidth = _b.width, popupHeight = _b.height;
113
+ var _c = (additionalPopupRefCurrent === null || additionalPopupRefCurrent === void 0 ? void 0 : additionalPopupRefCurrent.getBoundingClientRect()) || {}, _d = _c.width, additionalPopupWidth = _d === void 0 ? 0 : _d, _e = _c.height, additionalPopupHeight = _e === void 0 ? 0 : _e;
114
+ var x = popupCoords.x, y = popupCoords.y;
115
+ var offsetPopupXByClick = offsetPopupByClick.offsetPopupXByClick, offsetPopupYByClick = offsetPopupByClick.offsetPopupYByClick;
116
+ var currentOffsetY = wasDraggable ? 0 : offsetPopupYByClick - topOffsetByPage;
117
+ var currentOffsetX = wasDraggable ? 0 : offsetPopupXByClick - leftOffsetByPage;
118
+ var currentZoneHeight = zoneHeight + offsetScrollY;
119
+ var maxHeight = popupHeight;
120
+ var newX = calculateNewX({ currentX: x + currentOffsetX, leftPadding: leftPadding, rightPadding: rightPadding, zoneWidth: zoneWidth, popupWidth: popupWidth });
121
+ var newY = calculateNewY({ currentY: y + currentOffsetY, topPadding: topPadding, bottomPadding: bottomPadding, zoneHeight: zoneHeight, popupHeight: popupHeight });
122
+ setPopupPosition({ x: newX, y: newY });
123
+ if (additionalPopupRefCurrent) {
124
+ var contextMenuProps_1 = (additionalPopup || {}).contextMenuProps;
125
+ var newAdditionalPopupX = calculateNewAdditionalPopupX({
126
+ currentX: newX,
127
+ leftPadding: leftPadding,
128
+ rightPadding: rightPadding,
129
+ zoneWidth: zoneWidth,
130
+ popupWidth: popupWidth,
131
+ additionalPopupWidth: additionalPopupWidth,
132
+ });
133
+ var newAdditionalPopupY = calculateNewAdditionalPopupY({
134
+ currentY: newY,
135
+ topPadding: 0,
136
+ bottomPadding: bottomPadding,
137
+ zoneHeight: zoneHeight,
138
+ popupHeight: popupHeight,
139
+ additionalPopupHeight: additionalPopupHeight,
140
+ });
141
+ handleContextMenu({
142
+ contextMenuProps: contextMenuProps_1,
143
+ currentContextMenuProps: additionalContextMenuProps,
144
+ setCurrentContextMenuProps: setAdditionalContextMenuProps,
145
+ x: newAdditionalPopupX,
146
+ y: newAdditionalPopupY,
147
+ yOffset: topOffsetByPage + ADDITIONAL_CONTEXT_MENU_OFFSET_Y,
148
+ xOffset: additionalPopupWidth + ADDITIONAL_CONTEXT_MENU_OFFSET_X + popupWidth,
149
+ });
150
+ return setAdditionalPopupPosition({ x: newAdditionalPopupX, y: newAdditionalPopupY });
151
+ }
152
+ handleContextMenu({
153
+ contextMenuProps: contextMenuProps,
154
+ currentContextMenuProps: currentContextMenuProps,
155
+ setCurrentContextMenuProps: setCurrentContextMenuProps,
156
+ x: popupWidth - CONTEXT_MENU_OFFSET,
157
+ y: CONTEXT_MENU_OFFSET,
158
+ });
159
+ setDraggableZoneInfo({
160
+ width: zoneWidth,
161
+ height: currentZoneHeight,
162
+ top: topPadding,
163
+ right: zoneWidth - popupWidth - rightPadding,
164
+ left: leftPadding,
165
+ bottom: zoneHeight - maxHeight - bottomPadding,
166
+ });
167
+ };
168
+ var resizeObserver = new ResizeObserver(updatePosition);
169
+ if (popupRefCurrent)
170
+ resizeObserver.observe(popupRefCurrent);
171
+ if (additionalPopupRefCurrent)
172
+ resizeObserver.observe(additionalPopupRefCurrent);
173
+ return function () {
174
+ resizeObserver.disconnect();
175
+ };
176
+ /* eslint-disable-next-line */
177
+ }, [isPopupOpen, draggableZoneRef, popupRef, popupCoords, dropZonePadding, offsetScrollY, wasDraggable, contextMenuProps, additionalPopup]);
178
+ useEffect(function () {
179
+ var popupRefCurrent = popupRef.current;
180
+ var additionalPopupRefCurrent = additionalPopupRef.current;
181
+ var checkIfClickedOutside = function (e) {
182
+ var target = e.target;
183
+ if (isPopupOpen && isClosableOutside && popupRefCurrent && !popupRefCurrent.contains(target)) {
184
+ if (!(additionalPopupRefCurrent === null || additionalPopupRefCurrent === void 0 ? void 0 : additionalPopupRefCurrent.contains(target)) || !additionalPopupRefCurrent) {
185
+ handleClickOutside ? handleClickOutside() : handleClose();
186
+ }
187
+ }
188
+ };
189
+ var checkIfMousedownInside = function (e) {
190
+ var target = e.target;
191
+ var isInsidePopup = !!(popupRefCurrent === null || popupRefCurrent === void 0 ? void 0 : popupRefCurrent.contains(target));
192
+ var isInsideAdditionalPopup = !!(additionalPopupRefCurrent === null || additionalPopupRefCurrent === void 0 ? void 0 : additionalPopupRefCurrent.contains(target));
193
+ setIsMousedownInside(isInsidePopup || isInsideAdditionalPopup);
194
+ };
195
+ var handleClick = function (e) { return !isMousedownInside && checkIfClickedOutside(e); };
196
+ document === null || document === void 0 ? void 0 : document.addEventListener(EVENT_LISTENER_TYPES.click, handleClick, true);
197
+ document === null || document === void 0 ? void 0 : document.addEventListener(EVENT_LISTENER_TYPES.mousedown, checkIfMousedownInside, true);
198
+ return function () {
199
+ document === null || document === void 0 ? void 0 : document.removeEventListener(EVENT_LISTENER_TYPES.click, handleClick, true);
200
+ document === null || document === void 0 ? void 0 : document.removeEventListener(EVENT_LISTENER_TYPES.mousedown, checkIfMousedownInside, true);
201
+ };
202
+ }, [isPopupOpen, handleClose, isClosableOutside, handleClickOutside, isMousedownInside]);
203
+ if (!isPopupOpen || !draggableZoneRef)
204
+ return null;
205
+ var handleDragStop = function (_a) {
206
+ var x = _a.x, y = _a.y;
207
+ !wasDraggable && setWasDraggable(true);
208
+ handleChangeCoords({ x: x, y: y });
209
+ setPopupPosition({ x: x, y: y });
210
+ };
211
+ var maxWidth = generateMaxWidth(maxPopupWidth);
212
+ var isDisabledDraggable = isDisabled || !!additionalPopup;
213
+ return (_jsxs("div", __assign({ style: { width: width, height: height }, className: "smartapp-draggable-popup" }, { children: [_jsx(Draggable, __assign({ handle: ".".concat(DRAGGABLE_KEY), onStop: function (_, data) { return handleDragStop(data); }, position: popupPosition || DEFAULT_POPUP_POSITION, bounds: { top: top, right: right, left: left, bottom: bottom }, disabled: isDisabledDraggable }, { children: _jsx("div", __assign({ className: classNames("smartapp-draggable-popup__popup-container", { 'invisible-content': !popupPosition }) }, { children: _jsx("div", __assign({ className: "smartapp-draggable-popup__popup ".concat(popupClassName), ref: popupRef, style: maxWidth }, { children: _jsx(Modal, { isModalOpen: isPopupOpen, content: popupContent, isPopup: true, handleCloseModal: handleClose, title: title, bottomContent: bottomContent, className: "smartapp-draggable-popup__modal", modalMaxHeight: maxPopupHeight, titleStyles: titleStyles, contextMenuProps: currentContextMenuProps || undefined, titleClassName: "".concat(DRAGGABLE_KEY, " ").concat(!isDisabledDraggable && 'cm'), styles: maxWidth, isResetPaddingBottom: isResetPaddingBottom }) })) })) })), additionalPopup &&
214
+ renderAdditionalPopup({
215
+ additionalPopup: additionalPopup,
216
+ handleCloseModal: handleClose,
217
+ additionalPopupRef: additionalPopupRef,
218
+ additionalPopupPosition: additionalPopupPosition,
219
+ additionalContextMenuProps: additionalContextMenuProps,
220
+ })] })));
221
+ };
222
+ export default DraggablePopup;
223
+ //# sourceMappingURL=DraggablePopup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DraggablePopup.js","sourceRoot":"","sources":["../../../../src/сomponents/DraggablePopup/DraggablePopup.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC1D,OAAO,SAA4B,MAAM,iBAAiB,CAAA;AAC1D,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,MAAM,UAAU,CAAA;AAC5B,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAA;AAWtD,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,u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,IAAI,IAAI,CAAE,EAClE,MAAM,EAAE,QAAQ,EAChB,oBAAoB,EAAE,oBAAoB,GAC1C,IACE,IACF,IACI,EACX,eAAe;gBACd,qBAAqB,CAAC;oBACpB,eAAe,iBAAA;oBACf,gBAAgB,EAAE,WAAW;oBAC7B,kBAAkB,oBAAA;oBAClB,uBAAuB,yBAAA;oBACvB,0BAA0B,4BAAA;iBAC3B,CAAC,KACA,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,cAAc,CAAA"}
@@ -0,0 +1 @@
1
+ export { default } from './DraggablePopup';
@@ -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/сomponents/DraggablePopup/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA"}
@@ -0,0 +1,87 @@
1
+ import React, { ReactElement, RefObject } from 'react';
2
+ import { IContextMenuProps } from '../ContextMenu/types';
3
+ import { TStyles } from '../../constants';
4
+ export type TPopupPosition = {
5
+ x: number;
6
+ y: number;
7
+ };
8
+ export type TDraggablePadding = {
9
+ top: number;
10
+ bottom: number;
11
+ left: number;
12
+ right: number;
13
+ };
14
+ export type TOffsetPopupByClick = {
15
+ offsetPopupXByClick: number;
16
+ offsetPopupYByClick: number;
17
+ };
18
+ export type TDraggableZoneInfo = {
19
+ width: number;
20
+ height: number;
21
+ top: number;
22
+ right: number;
23
+ bottom: number;
24
+ left: number;
25
+ };
26
+ export type TCalculateNewX = {
27
+ currentX: number;
28
+ leftPadding: number;
29
+ rightPadding: number;
30
+ zoneWidth: number;
31
+ popupWidth: number;
32
+ additionalPopupWidth?: number;
33
+ };
34
+ export type TCalculateNewY = {
35
+ currentY: number;
36
+ topPadding: number;
37
+ bottomPadding: number;
38
+ zoneHeight: number;
39
+ popupHeight: number;
40
+ additionalPopupHeight?: number;
41
+ };
42
+ export type TCurrentContextMenu = IContextMenuProps & {
43
+ openMenu: () => void;
44
+ };
45
+ export type TAdditionalPopup = Omit<IDraggablePopup, 'additionalPopup' | 'isDisabled' | 'isClosableOutside' | 'handleChangeCoords' | 'offsetPopupByClick' | 'offsetScrollY' | 'dropZonePadding' | 'handleClose' | 'isPopupOpen' | 'popupCoords' | 'draggableZoneRef' | 'handleClickOutside'>;
46
+ export type TContextMenuProps = Omit<IContextMenuProps, 'position'> & {
47
+ openMenu: (event?: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
48
+ };
49
+ export type THandleContextMenu = {
50
+ currentContextMenuProps: TCurrentContextMenu | null;
51
+ setCurrentContextMenuProps: (contextMenuProps: TCurrentContextMenu | null) => void;
52
+ x: number;
53
+ y: number;
54
+ xOffset?: number;
55
+ yOffset?: number;
56
+ contextMenuProps: TContextMenuProps | undefined;
57
+ };
58
+ export type TRenderAdditionalPopup = {
59
+ additionalPopup: TAdditionalPopup;
60
+ handleCloseModal: () => void;
61
+ additionalPopupRef: RefObject<HTMLDivElement | null>;
62
+ additionalPopupPosition: TPopupPosition | null;
63
+ additionalContextMenuProps?: TCurrentContextMenu | null;
64
+ };
65
+ export interface IDraggablePopup {
66
+ draggableZoneRef: RefObject<HTMLDivElement | null>;
67
+ popupCoords: TPopupPosition;
68
+ popupContent: ReactElement;
69
+ isPopupOpen: boolean;
70
+ handleClose: () => void;
71
+ title?: string;
72
+ bottomContent?: ReactElement;
73
+ dropZonePadding?: TDraggablePadding;
74
+ offsetScrollY?: number;
75
+ offsetPopupByClick?: TOffsetPopupByClick;
76
+ handleChangeCoords: (coords: TPopupPosition) => void;
77
+ maxPopupHeight?: number;
78
+ popupClassName?: string;
79
+ contextMenuProps?: TContextMenuProps;
80
+ isClosableOutside?: boolean;
81
+ maxPopupWidth?: number;
82
+ isDisabled?: boolean;
83
+ additionalPopup?: TAdditionalPopup;
84
+ handleClickOutside?: () => void;
85
+ titleStyles?: TStyles;
86
+ isResetPaddingBottom?: boolean;
87
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/DraggablePopup/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { IErrorProps } from './types';
2
+ import '../../styles/styles.scss';
3
+ declare const Error: ({ title, text, width, className, styles, iconColor }: IErrorProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default Error;
@@ -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/сomponents/Error/Error.tsx"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,UAAU,MAAM,YAAY,CAAA;AAEnC,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AACxC,OAAO,EAAE,cAAc,IAAI,SAAS,EAAE,MAAM,8BAA8B,CAAA;AAC1E,OAAO,0BAA0B,CAAA;AAEjC,IAAM,KAAK,GAAG,UAAC,EAAyG;QAAvG,aAAgB,EAAhB,KAAK,mBAAG,QAAQ,KAAA,EAAE,YAA2B,EAA3B,IAAI,mBAAG,oBAAoB,KAAA,EAAE,aAAW,EAAX,KAAK,mBAAG,GAAG,KAAA,EAAE,SAAS,eAAA,EAAE,MAAM,YAAA,EAAE,SAAS,eAAA;IAAoB,OAAA,CAC3H,wBAAK,SAAS,EAAE,UAAU,CAAC,gBAAgB,EAAE,SAAS,CAAC,EAAE,KAAK,aAAI,KAAK,EAAE,UAAG,KAAK,MAAG,IAAK,MAAM,kBAC7F,uBAAK,SAAS,EAAC,sBAAsB,gBACnC,KAAC,SAAS,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,aAAa,CAAC,SAAS,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE,GAAI,IAClE,EACN,qBAAG,SAAS,EAAC,uBAAuB,gBAAE,KAAK,IAAK,EAChD,qBAAG,SAAS,EAAC,sBAAsB,gBAAE,IAAI,IAAK,KAC1C,CACP;AAR4H,CAQ5H,CAAA;AAED,eAAe,KAAK,CAAA"}
@@ -0,0 +1 @@
1
+ export { default } from './Error';
@@ -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/сomponents/Error/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA"}
@@ -0,0 +1,10 @@
1
+ import { IntRange } from '../types';
2
+ import { TStyles } from '../../constants';
3
+ export interface IErrorProps {
4
+ title?: string;
5
+ text?: string;
6
+ width?: IntRange<1, 101>;
7
+ className?: string;
8
+ styles?: TStyles;
9
+ iconColor?: string;
10
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/Error/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import { TFlex } from './types';
2
+ export declare const Flex: ({ className, children, justify, direction, align, gap, wrap, fullWidth, ...props }: TFlex) => import("react/jsx-runtime").JSX.Element;
@@ -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/сomponents/Flex/Flex.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,UAAU,MAAM,YAAY,CAAA;AAGnC,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAA;AAErC,IAAM,aAAa,GAA+B;IAChD,KAAK,EAAE,aAAa;IACpB,GAAG,EAAE,WAAW;IAChB,MAAM,EAAE,cAAc;CACvB,CAAA;AAED,IAAM,eAAe,GAAiC;IACpD,KAAK,EAAE,eAAe;IACtB,GAAG,EAAE,aAAa;IAClB,MAAM,EAAE,gBAAgB;IACxB,OAAO,EAAE,iBAAiB;CAC3B,CAAA;AAED,IAAM,iBAAiB,GAAmC;IACxD,GAAG,EAAE,eAAe;IACpB,MAAM,EAAE,kBAAkB;CAC3B,CAAA;AAED,IAAM,KAAK,GAAG,OAAO,CAAA;AACrB,IAAM,aAAa,GAAG,eAAe,CAAA;AAErC,MAAM,CAAC,IAAM,IAAI,GAAG,UAAC,EAUb;IATN,IAAA,SAAS,eAAA,EACT,QAAQ,cAAA,EACR,eAAe,EAAf,OAAO,mBAAG,KAAK,KAAA,EACf,iBAAe,EAAf,SAAS,mBAAG,GAAG,KAAA,EACf,aAAa,EAAb,KAAK,mBAAG,KAAK,KAAA,EACb,GAAG,SAAA,EACH,YAAY,EAAZ,IAAI,mBAAG,KAAK,KAAA,EACZ,iBAAiB,EAAjB,SAAS,mBAAG,KAAK,KAAA,EACd,KAAK,cATW,sFAUpB,CADS;IAER,IAAM,IAAI,GAAG,EAAE,IAAI,MAAA,EAAE,YAAY,EAAE,SAAS,EAAE,CAAA;IAC9C,IAAM,OAAO,GAAG,CAAC,SAAS,EAAE,eAAe,CAAC,OAAO,CAAC,EAAE,aAAa,CAAC,KAAK,CAAC,EAAE,iBAAiB,CAAC,SAAS,CAAC,CAAC,CAAA;IAEzG,OAAO,CACL,uBAAK,KAAK,EAAE,EAAE,GAAG,EAAE,UAAG,GAAG,OAAI,EAAE,EAAE,SAAS,EAAE,UAAU,CAAC,aAAa,EAAE,IAAI,EAAE,OAAO,CAAC,IAAM,KAAK,cAC5F,QAAQ,IACL,CACP,CAAA;AACH,CAAC,CAAA"}
@@ -0,0 +1,5 @@
1
+ import { TFlex } from '../types';
2
+ import { DIRECTION } from '../../../constants';
3
+ type THFlex = Omit<TFlex, typeof DIRECTION>;
4
+ export declare const HFlex: (props: THFlex) => import("react/jsx-runtime").JSX.Element;
5
+ export {};
@@ -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/сomponents/Flex/HFlex/HFlex.tsx"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,EAAE,IAAI,EAAE,MAAM,IAAI,CAAA;AAEzB,OAAO,EAAa,GAAG,EAAE,MAAM,oBAAoB,CAAA;AAInD,MAAM,CAAC,IAAM,KAAK,GAAG,UAAC,KAAa,IAAK,OAAA,KAAC,IAAI,eAAK,KAAK,IAAE,SAAS,EAAE,GAAG,IAAI,EAAnC,CAAmC,CAAA"}
@@ -0,0 +1 @@
1
+ export { HFlex } from './HFlex';
@@ -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/сomponents/Flex/HFlex/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA"}
@@ -0,0 +1,5 @@
1
+ import { TFlex } from '../types';
2
+ import { DIRECTION } from '../../../constants';
3
+ type TVFlex = Omit<TFlex, typeof DIRECTION>;
4
+ export declare const VFlex: (props: TVFlex) => import("react/jsx-runtime").JSX.Element;
5
+ export {};
@@ -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/сomponents/Flex/VFlex/VFlex.tsx"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,EAAE,IAAI,EAAE,MAAM,IAAI,CAAA;AAMzB,IAAM,MAAM,GAAG,QAAQ,CAAA;AAEvB,MAAM,CAAC,IAAM,KAAK,GAAG,UAAC,KAAa,IAAK,OAAA,KAAC,IAAI,eAAK,KAAK,IAAE,SAAS,EAAE,MAAM,IAAI,EAAtC,CAAsC,CAAA"}
@@ -0,0 +1 @@
1
+ export { VFlex } from './VFlex';
@@ -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/сomponents/Flex/VFlex/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA"}
@@ -0,0 +1,3 @@
1
+ export { Flex } from './Flex';
2
+ export { VFlex } from './VFlex';
3
+ export { HFlex } from './HFlex';
@@ -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/сomponents/Flex/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA"}
@@ -0,0 +1,15 @@
1
+ import { DetailedHTMLProps, HTMLAttributes, ReactNode } from 'react';
2
+ export type TFlexJustify = 'start' | 'center' | 'end' | 'between';
3
+ export type TFlexAlign = 'start' | 'center' | 'end';
4
+ export type TFlexDirection = 'row' | 'column';
5
+ type TDivProps = DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
6
+ export type TFlex = TDivProps & {
7
+ children: ReactNode;
8
+ justify?: TFlexJustify;
9
+ align?: TFlexAlign;
10
+ direction?: TFlexDirection;
11
+ gap?: number;
12
+ fullWidth?: boolean;
13
+ wrap?: boolean;
14
+ };
15
+ export {};
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/Flex/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import { IHeaderProps } from './types';
2
+ import '../../styles/styles.scss';
3
+ export declare const DEFAULT_HEADER_HEIGHT = 48;
4
+ declare const Header: ({ title, counter, isBack, isRemove, titleIcon, refreshIcon, customIcon, avatar, onClickBack, onClickRemove, arrowColor, trashColor, platform, headerHeight, className, styles, textSize, backgroundColor, removeIconOrder, }: IHeaderProps) => import("react/jsx-runtime").JSX.Element;
5
+ export default Header;