@expressms/smartapp-ui 3.0.0-alpha.20 → 3.0.0-alpha.22

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 (478) hide show
  1. package/package.json +1 -1
  2. package/build/main/assets/icons/arrow-back.svg +0 -3
  3. package/build/main/assets/icons/arrow-down.svg +0 -3
  4. package/build/main/assets/icons/arrow-up.svg +0 -3
  5. package/build/main/assets/icons/attachment-loader.svg +0 -3
  6. package/build/main/assets/icons/avatar-arrow-down.svg +0 -3
  7. package/build/main/assets/icons/avatar-arrow-up.svg +0 -3
  8. package/build/main/assets/icons/avatar-loader.svg +0 -3
  9. package/build/main/assets/icons/button-loader.svg +0 -3
  10. package/build/main/assets/icons/calendar-arrow-next.svg +0 -3
  11. package/build/main/assets/icons/calendar-arrow-prev.svg +0 -3
  12. package/build/main/assets/icons/check-mark-square.svg +0 -4
  13. package/build/main/assets/icons/check-mark.svg +0 -4
  14. package/build/main/assets/icons/chip-info.svg +0 -5
  15. package/build/main/assets/icons/clear.svg +0 -3
  16. package/build/main/assets/icons/close-modal.svg +0 -3
  17. package/build/main/assets/icons/close-stories.svg +0 -4
  18. package/build/main/assets/icons/close.svg +0 -3
  19. package/build/main/assets/icons/contact-info.svg +0 -5
  20. package/build/main/assets/icons/corporate-user.svg +0 -3
  21. package/build/main/assets/icons/crown.svg +0 -5
  22. package/build/main/assets/icons/delete-chip.svg +0 -3
  23. package/build/main/assets/icons/distribution.svg +0 -12
  24. package/build/main/assets/icons/doc-small.svg +0 -11
  25. package/build/main/assets/icons/doc.svg +0 -11
  26. package/build/main/assets/icons/error.svg +0 -5
  27. package/build/main/assets/icons/external-link.svg +0 -3
  28. package/build/main/assets/icons/eye-off.svg +0 -5
  29. package/build/main/assets/icons/eye-on.svg +0 -4
  30. package/build/main/assets/icons/file-small.svg +0 -11
  31. package/build/main/assets/icons/file.svg +0 -11
  32. package/build/main/assets/icons/global-address-book-user.svg +0 -4
  33. package/build/main/assets/icons/group.svg +0 -3
  34. package/build/main/assets/icons/indeterminate-check-mark-square.svg +0 -4
  35. package/build/main/assets/icons/info.svg +0 -5
  36. package/build/main/assets/icons/input-arrow-down.svg +0 -3
  37. package/build/main/assets/icons/input-arrow-up.svg +0 -3
  38. package/build/main/assets/icons/loader.svg +0 -3
  39. package/build/main/assets/icons/logout.svg +0 -4
  40. package/build/main/assets/icons/magnifying-glass.svg +0 -3
  41. package/build/main/assets/icons/mail.svg +0 -3
  42. package/build/main/assets/icons/meeting-room.svg +0 -3
  43. package/build/main/assets/icons/more.svg +0 -3
  44. package/build/main/assets/icons/my-contacts-user.svg +0 -3
  45. package/build/main/assets/icons/notification-close.svg +0 -3
  46. package/build/main/assets/icons/notification-failure.svg +0 -3
  47. package/build/main/assets/icons/notification-info.svg +0 -5
  48. package/build/main/assets/icons/notification-success.svg +0 -4
  49. package/build/main/assets/icons/order.svg +0 -6
  50. package/build/main/assets/icons/pdf-small.svg +0 -11
  51. package/build/main/assets/icons/pdf.svg +0 -11
  52. package/build/main/assets/icons/play-small.svg +0 -3
  53. package/build/main/assets/icons/play.svg +0 -3
  54. package/build/main/assets/icons/plus.svg +0 -4
  55. package/build/main/assets/icons/ppt-small.svg +0 -11
  56. package/build/main/assets/icons/ppt.svg +0 -11
  57. package/build/main/assets/icons/private.svg +0 -12
  58. package/build/main/assets/icons/refresh.svg +0 -3
  59. package/build/main/assets/icons/search.svg +0 -3
  60. package/build/main/assets/icons/story-loader.svg +0 -3
  61. package/build/main/assets/icons/tick.svg +0 -10
  62. package/build/main/assets/icons/trash.svg +0 -3
  63. package/build/main/assets/icons/txt-small.svg +0 -11
  64. package/build/main/assets/icons/txt.svg +0 -11
  65. package/build/main/assets/icons/unread-mails.svg +0 -4
  66. package/build/main/assets/icons/warning-avatar.svg +0 -4
  67. package/build/main/assets/icons/xls-small.svg +0 -11
  68. package/build/main/assets/icons/xls.svg +0 -11
  69. package/build/main/assets/storybook/index.d.ts +0 -24
  70. package/build/main/assets/storybook/index.js +0 -25
  71. package/build/main/assets/storybook/index.js.map +0 -1
  72. package/build/main/constants/constants.d.ts +0 -197
  73. package/build/main/constants/constants.js +0 -217
  74. package/build/main/constants/constants.js.map +0 -1
  75. package/build/main/constants/index.d.ts +0 -2
  76. package/build/main/constants/index.js +0 -3
  77. package/build/main/constants/index.js.map +0 -1
  78. package/build/main/constants/types.d.ts +0 -58
  79. package/build/main/constants/types.js +0 -2
  80. package/build/main/constants/types.js.map +0 -1
  81. package/build/main/helpers/index.d.ts +0 -31
  82. package/build/main/helpers/index.js +0 -183
  83. package/build/main/helpers/index.js.map +0 -1
  84. package/build/main/hooks/useLongTap.d.ts +0 -12
  85. package/build/main/hooks/useLongTap.js +0 -29
  86. package/build/main/hooks/useLongTap.js.map +0 -1
  87. package/build/main/hooks/useModal.d.ts +0 -22
  88. package/build/main/hooks/useModal.js +0 -61
  89. package/build/main/hooks/useModal.js.map +0 -1
  90. package/build/main/index.d.ts +0 -36
  91. package/build/main/index.js +0 -37
  92. package/build/main/index.js.map +0 -1
  93. package/build/main/styles/index.d.ts +0 -1
  94. package/build/main/styles/index.js +0 -2
  95. package/build/main/styles/index.js.map +0 -1
  96. package/build/main/styles/main.js +0 -0
  97. package/build/main/styles/styles.scss +0 -14
  98. package/build/main//321/201omponents/ActionModal/ActionModal.d.ts +0 -4
  99. package/build/main//321/201omponents/ActionModal/ActionModal.js +0 -53
  100. package/build/main//321/201omponents/ActionModal/ActionModal.js.map +0 -1
  101. package/build/main//321/201omponents/ActionModal/index.d.ts +0 -1
  102. package/build/main//321/201omponents/ActionModal/index.js +0 -2
  103. package/build/main//321/201omponents/ActionModal/index.js.map +0 -1
  104. package/build/main//321/201omponents/ActionModal/types.d.ts +0 -23
  105. package/build/main//321/201omponents/ActionModal/types.js +0 -2
  106. package/build/main//321/201omponents/ActionModal/types.js.map +0 -1
  107. package/build/main//321/201omponents/AttachedFile/AttachedFile.d.ts +0 -8
  108. package/build/main//321/201omponents/AttachedFile/AttachedFile.js +0 -146
  109. package/build/main//321/201omponents/AttachedFile/AttachedFile.js.map +0 -1
  110. package/build/main//321/201omponents/AttachedFile/index.d.ts +0 -1
  111. package/build/main//321/201omponents/AttachedFile/index.js +0 -2
  112. package/build/main//321/201omponents/AttachedFile/index.js.map +0 -1
  113. package/build/main//321/201omponents/AttachedFile/types.d.ts +0 -22
  114. package/build/main//321/201omponents/AttachedFile/types.js +0 -2
  115. package/build/main//321/201omponents/AttachedFile/types.js.map +0 -1
  116. package/build/main//321/201omponents/Avatar/Avatar.d.ts +0 -4
  117. package/build/main//321/201omponents/Avatar/Avatar.js +0 -226
  118. package/build/main//321/201omponents/Avatar/Avatar.js.map +0 -1
  119. package/build/main//321/201omponents/Avatar/index.d.ts +0 -1
  120. package/build/main//321/201omponents/Avatar/index.js +0 -2
  121. package/build/main//321/201omponents/Avatar/index.js.map +0 -1
  122. package/build/main//321/201omponents/Avatar/types.d.ts +0 -60
  123. package/build/main//321/201omponents/Avatar/types.js +0 -29
  124. package/build/main//321/201omponents/Avatar/types.js.map +0 -1
  125. package/build/main//321/201omponents/Button/Button.d.ts +0 -4
  126. package/build/main//321/201omponents/Button/Button.js +0 -62
  127. package/build/main//321/201omponents/Button/Button.js.map +0 -1
  128. package/build/main//321/201omponents/Button/index.d.ts +0 -1
  129. package/build/main//321/201omponents/Button/index.js +0 -2
  130. package/build/main//321/201omponents/Button/index.js.map +0 -1
  131. package/build/main//321/201omponents/Button/types.d.ts +0 -24
  132. package/build/main//321/201omponents/Button/types.js +0 -12
  133. package/build/main//321/201omponents/Button/types.js.map +0 -1
  134. package/build/main//321/201omponents/CachedImage/CachedImage.d.ts +0 -4
  135. package/build/main//321/201omponents/CachedImage/CachedImage.js +0 -59
  136. package/build/main//321/201omponents/CachedImage/CachedImage.js.map +0 -1
  137. package/build/main//321/201omponents/CachedImage/helpers.d.ts +0 -3
  138. package/build/main//321/201omponents/CachedImage/helpers.js +0 -40
  139. package/build/main//321/201omponents/CachedImage/helpers.js.map +0 -1
  140. package/build/main//321/201omponents/CachedImage/index.d.ts +0 -1
  141. package/build/main//321/201omponents/CachedImage/index.js +0 -2
  142. package/build/main//321/201omponents/CachedImage/index.js.map +0 -1
  143. package/build/main//321/201omponents/CachedImage/types.d.ts +0 -10
  144. package/build/main//321/201omponents/CachedImage/types.js +0 -2
  145. package/build/main//321/201omponents/CachedImage/types.js.map +0 -1
  146. package/build/main//321/201omponents/Calendar/Calendar.d.ts +0 -4
  147. package/build/main//321/201omponents/Calendar/Calendar.js +0 -154
  148. package/build/main//321/201omponents/Calendar/Calendar.js.map +0 -1
  149. package/build/main//321/201omponents/Calendar/index.d.ts +0 -1
  150. package/build/main//321/201omponents/Calendar/index.js +0 -2
  151. package/build/main//321/201omponents/Calendar/index.js.map +0 -1
  152. package/build/main//321/201omponents/Calendar/types.d.ts +0 -15
  153. package/build/main//321/201omponents/Calendar/types.js +0 -2
  154. package/build/main//321/201omponents/Calendar/types.js.map +0 -1
  155. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.d.ts +0 -4
  156. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js +0 -47
  157. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js.map +0 -1
  158. package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.d.ts +0 -4
  159. package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.js +0 -71
  160. package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.js.map +0 -1
  161. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.d.ts +0 -4
  162. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js +0 -42
  163. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js.map +0 -1
  164. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.d.ts +0 -4
  165. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js +0 -64
  166. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js.map +0 -1
  167. package/build/main//321/201omponents/Charts/colors.d.ts +0 -3
  168. package/build/main//321/201omponents/Charts/colors.js +0 -4
  169. package/build/main//321/201omponents/Charts/colors.js.map +0 -1
  170. package/build/main//321/201omponents/Charts/constants.d.ts +0 -42
  171. package/build/main//321/201omponents/Charts/constants.js +0 -42
  172. package/build/main//321/201omponents/Charts/constants.js.map +0 -1
  173. package/build/main//321/201omponents/Charts/helpers.d.ts +0 -17
  174. package/build/main//321/201omponents/Charts/helpers.js +0 -73
  175. package/build/main//321/201omponents/Charts/helpers.js.map +0 -1
  176. package/build/main//321/201omponents/Charts/index.d.ts +0 -3
  177. package/build/main//321/201omponents/Charts/index.js +0 -4
  178. package/build/main//321/201omponents/Charts/index.js.map +0 -1
  179. package/build/main//321/201omponents/Charts/types.d.ts +0 -89
  180. package/build/main//321/201omponents/Charts/types.js +0 -2
  181. package/build/main//321/201omponents/Charts/types.js.map +0 -1
  182. package/build/main//321/201omponents/Charts/useEvents.d.ts +0 -5
  183. package/build/main//321/201omponents/Charts/useEvents.js +0 -45
  184. package/build/main//321/201omponents/Charts/useEvents.js.map +0 -1
  185. package/build/main//321/201omponents/Charts/usePieEvents.d.ts +0 -6
  186. package/build/main//321/201omponents/Charts/usePieEvents.js +0 -57
  187. package/build/main//321/201omponents/Charts/usePieEvents.js.map +0 -1
  188. package/build/main//321/201omponents/Checkbox/Checkbox.d.ts +0 -8
  189. package/build/main//321/201omponents/Checkbox/Checkbox.js +0 -48
  190. package/build/main//321/201omponents/Checkbox/Checkbox.js.map +0 -1
  191. package/build/main//321/201omponents/Checkbox/index.d.ts +0 -1
  192. package/build/main//321/201omponents/Checkbox/index.js +0 -2
  193. package/build/main//321/201omponents/Checkbox/index.js.map +0 -1
  194. package/build/main//321/201omponents/Checkbox/types.d.ts +0 -14
  195. package/build/main//321/201omponents/Checkbox/types.js +0 -2
  196. package/build/main//321/201omponents/Checkbox/types.js.map +0 -1
  197. package/build/main//321/201omponents/Chip/Chip.d.ts +0 -4
  198. package/build/main//321/201omponents/Chip/Chip.js +0 -118
  199. package/build/main//321/201omponents/Chip/Chip.js.map +0 -1
  200. package/build/main//321/201omponents/Chip/index.d.ts +0 -1
  201. package/build/main//321/201omponents/Chip/index.js +0 -2
  202. package/build/main//321/201omponents/Chip/index.js.map +0 -1
  203. package/build/main//321/201omponents/Chip/types.d.ts +0 -27
  204. package/build/main//321/201omponents/Chip/types.js +0 -2
  205. package/build/main//321/201omponents/Chip/types.js.map +0 -1
  206. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.d.ts +0 -4
  207. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js +0 -63
  208. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js.map +0 -1
  209. package/build/main//321/201omponents/ConfirmationModal/index.d.ts +0 -1
  210. package/build/main//321/201omponents/ConfirmationModal/index.js +0 -2
  211. package/build/main//321/201omponents/ConfirmationModal/index.js.map +0 -1
  212. package/build/main//321/201omponents/ConfirmationModal/types.d.ts +0 -28
  213. package/build/main//321/201omponents/ConfirmationModal/types.js +0 -2
  214. package/build/main//321/201omponents/ConfirmationModal/types.js.map +0 -1
  215. package/build/main//321/201omponents/ContextMenu/ContextMenu.d.ts +0 -4
  216. package/build/main//321/201omponents/ContextMenu/ContextMenu.js +0 -81
  217. package/build/main//321/201omponents/ContextMenu/ContextMenu.js.map +0 -1
  218. package/build/main//321/201omponents/ContextMenu/index.d.ts +0 -1
  219. package/build/main//321/201omponents/ContextMenu/index.js +0 -2
  220. package/build/main//321/201omponents/ContextMenu/index.js.map +0 -1
  221. package/build/main//321/201omponents/ContextMenu/types.d.ts +0 -34
  222. package/build/main//321/201omponents/ContextMenu/types.js +0 -2
  223. package/build/main//321/201omponents/ContextMenu/types.js.map +0 -1
  224. package/build/main//321/201omponents/CustomSelect/CustomSelect.d.ts +0 -12
  225. package/build/main//321/201omponents/CustomSelect/CustomSelect.js +0 -248
  226. package/build/main//321/201omponents/CustomSelect/CustomSelect.js.map +0 -1
  227. package/build/main//321/201omponents/CustomSelect/index.d.ts +0 -1
  228. package/build/main//321/201omponents/CustomSelect/index.js +0 -2
  229. package/build/main//321/201omponents/CustomSelect/index.js.map +0 -1
  230. package/build/main//321/201omponents/CustomSelect/selectStyles.d.ts +0 -16
  231. package/build/main//321/201omponents/CustomSelect/selectStyles.js +0 -70
  232. package/build/main//321/201omponents/CustomSelect/selectStyles.js.map +0 -1
  233. package/build/main//321/201omponents/CustomSelect/types.d.ts +0 -69
  234. package/build/main//321/201omponents/CustomSelect/types.js +0 -2
  235. package/build/main//321/201omponents/CustomSelect/types.js.map +0 -1
  236. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.d.ts +0 -4
  237. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js +0 -58
  238. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js.map +0 -1
  239. package/build/main//321/201omponents/CustomSelectProfiles/index.d.ts +0 -1
  240. package/build/main//321/201omponents/CustomSelectProfiles/index.js +0 -2
  241. package/build/main//321/201omponents/CustomSelectProfiles/index.js.map +0 -1
  242. package/build/main//321/201omponents/CustomSelectProfiles/types.d.ts +0 -12
  243. package/build/main//321/201omponents/CustomSelectProfiles/types.js +0 -2
  244. package/build/main//321/201omponents/CustomSelectProfiles/types.js.map +0 -1
  245. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.d.ts +0 -4
  246. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js +0 -57
  247. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js.map +0 -1
  248. package/build/main//321/201omponents/DragAndDrop/index.d.ts +0 -1
  249. package/build/main//321/201omponents/DragAndDrop/index.js +0 -2
  250. package/build/main//321/201omponents/DragAndDrop/index.js.map +0 -1
  251. package/build/main//321/201omponents/DragAndDrop/types.d.ts +0 -24
  252. package/build/main//321/201omponents/DragAndDrop/types.js +0 -2
  253. package/build/main//321/201omponents/DragAndDrop/types.js.map +0 -1
  254. package/build/main//321/201omponents/DraggablePopup/DraggablePopup.d.ts +0 -4
  255. package/build/main//321/201omponents/DraggablePopup/DraggablePopup.js +0 -222
  256. package/build/main//321/201omponents/DraggablePopup/DraggablePopup.js.map +0 -1
  257. package/build/main//321/201omponents/DraggablePopup/index.d.ts +0 -1
  258. package/build/main//321/201omponents/DraggablePopup/index.js +0 -2
  259. package/build/main//321/201omponents/DraggablePopup/index.js.map +0 -1
  260. package/build/main//321/201omponents/DraggablePopup/types.d.ts +0 -90
  261. package/build/main//321/201omponents/DraggablePopup/types.js +0 -2
  262. package/build/main//321/201omponents/DraggablePopup/types.js.map +0 -1
  263. package/build/main//321/201omponents/Error/Error.d.ts +0 -4
  264. package/build/main//321/201omponents/Error/Error.js +0 -23
  265. package/build/main//321/201omponents/Error/Error.js.map +0 -1
  266. package/build/main//321/201omponents/Error/index.d.ts +0 -1
  267. package/build/main//321/201omponents/Error/index.js +0 -2
  268. package/build/main//321/201omponents/Error/index.js.map +0 -1
  269. package/build/main//321/201omponents/Error/types.d.ts +0 -10
  270. package/build/main//321/201omponents/Error/types.js +0 -2
  271. package/build/main//321/201omponents/Error/types.js.map +0 -1
  272. package/build/main//321/201omponents/Flex/Flex.d.ts +0 -2
  273. package/build/main//321/201omponents/Flex/Flex.js +0 -35
  274. package/build/main//321/201omponents/Flex/Flex.js.map +0 -1
  275. package/build/main//321/201omponents/Flex/HFlex/HFlex.d.ts +0 -5
  276. package/build/main//321/201omponents/Flex/HFlex/HFlex.js +0 -16
  277. package/build/main//321/201omponents/Flex/HFlex/HFlex.js.map +0 -1
  278. package/build/main//321/201omponents/Flex/HFlex/index.d.ts +0 -1
  279. package/build/main//321/201omponents/Flex/HFlex/index.js +0 -2
  280. package/build/main//321/201omponents/Flex/HFlex/index.js.map +0 -1
  281. package/build/main//321/201omponents/Flex/VFlex/VFlex.d.ts +0 -5
  282. package/build/main//321/201omponents/Flex/VFlex/VFlex.js +0 -16
  283. package/build/main//321/201omponents/Flex/VFlex/VFlex.js.map +0 -1
  284. package/build/main//321/201omponents/Flex/VFlex/index.d.ts +0 -1
  285. package/build/main//321/201omponents/Flex/VFlex/index.js +0 -2
  286. package/build/main//321/201omponents/Flex/VFlex/index.js.map +0 -1
  287. package/build/main//321/201omponents/Flex/index.d.ts +0 -3
  288. package/build/main//321/201omponents/Flex/index.js +0 -4
  289. package/build/main//321/201omponents/Flex/index.js.map +0 -1
  290. package/build/main//321/201omponents/Flex/types.d.ts +0 -19
  291. package/build/main//321/201omponents/Flex/types.js +0 -2
  292. package/build/main//321/201omponents/Flex/types.js.map +0 -1
  293. package/build/main//321/201omponents/Header/Header.d.ts +0 -5
  294. package/build/main//321/201omponents/Header/Header.js +0 -125
  295. package/build/main//321/201omponents/Header/Header.js.map +0 -1
  296. package/build/main//321/201omponents/Header/index.d.ts +0 -1
  297. package/build/main//321/201omponents/Header/index.js +0 -2
  298. package/build/main//321/201omponents/Header/index.js.map +0 -1
  299. package/build/main//321/201omponents/Header/types.d.ts +0 -47
  300. package/build/main//321/201omponents/Header/types.js +0 -2
  301. package/build/main//321/201omponents/Header/types.js.map +0 -1
  302. package/build/main//321/201omponents/Input/Input.d.ts +0 -4
  303. package/build/main//321/201omponents/Input/Input.js +0 -182
  304. package/build/main//321/201omponents/Input/Input.js.map +0 -1
  305. package/build/main//321/201omponents/Input/index.d.ts +0 -1
  306. package/build/main//321/201omponents/Input/index.js +0 -2
  307. package/build/main//321/201omponents/Input/index.js.map +0 -1
  308. package/build/main//321/201omponents/Input/types.d.ts +0 -27
  309. package/build/main//321/201omponents/Input/types.js +0 -2
  310. package/build/main//321/201omponents/Input/types.js.map +0 -1
  311. package/build/main//321/201omponents/ListItem/ListItem.d.ts +0 -23
  312. package/build/main//321/201omponents/ListItem/ListItem.js +0 -203
  313. package/build/main//321/201omponents/ListItem/ListItem.js.map +0 -1
  314. package/build/main//321/201omponents/ListItem/index.d.ts +0 -1
  315. package/build/main//321/201omponents/ListItem/index.js +0 -2
  316. package/build/main//321/201omponents/ListItem/index.js.map +0 -1
  317. package/build/main//321/201omponents/ListItem/types.d.ts +0 -41
  318. package/build/main//321/201omponents/ListItem/types.js +0 -2
  319. package/build/main//321/201omponents/ListItem/types.js.map +0 -1
  320. package/build/main//321/201omponents/Loader/Loader.d.ts +0 -4
  321. package/build/main//321/201omponents/Loader/Loader.js +0 -44
  322. package/build/main//321/201omponents/Loader/Loader.js.map +0 -1
  323. package/build/main//321/201omponents/Loader/index.d.ts +0 -1
  324. package/build/main//321/201omponents/Loader/index.js +0 -2
  325. package/build/main//321/201omponents/Loader/index.js.map +0 -1
  326. package/build/main//321/201omponents/Loader/types.d.ts +0 -18
  327. package/build/main//321/201omponents/Loader/types.js +0 -2
  328. package/build/main//321/201omponents/Loader/types.js.map +0 -1
  329. package/build/main//321/201omponents/Modal/Modal.d.ts +0 -4
  330. package/build/main//321/201omponents/Modal/Modal.js +0 -259
  331. package/build/main//321/201omponents/Modal/Modal.js.map +0 -1
  332. package/build/main//321/201omponents/Modal/index.d.ts +0 -1
  333. package/build/main//321/201omponents/Modal/index.js +0 -2
  334. package/build/main//321/201omponents/Modal/index.js.map +0 -1
  335. package/build/main//321/201omponents/Modal/types.d.ts +0 -41
  336. package/build/main//321/201omponents/Modal/types.js +0 -2
  337. package/build/main//321/201omponents/Modal/types.js.map +0 -1
  338. package/build/main//321/201omponents/Notification/Notification.d.ts +0 -8
  339. package/build/main//321/201omponents/Notification/Notification.js +0 -199
  340. package/build/main//321/201omponents/Notification/Notification.js.map +0 -1
  341. package/build/main//321/201omponents/Notification/index.d.ts +0 -1
  342. package/build/main//321/201omponents/Notification/index.js +0 -2
  343. package/build/main//321/201omponents/Notification/index.js.map +0 -1
  344. package/build/main//321/201omponents/Notification/types.d.ts +0 -44
  345. package/build/main//321/201omponents/Notification/types.js +0 -2
  346. package/build/main//321/201omponents/Notification/types.js.map +0 -1
  347. package/build/main//321/201omponents/Profile/Profile.d.ts +0 -4
  348. package/build/main//321/201omponents/Profile/Profile.js +0 -42
  349. package/build/main//321/201omponents/Profile/Profile.js.map +0 -1
  350. package/build/main//321/201omponents/Profile/index.d.ts +0 -1
  351. package/build/main//321/201omponents/Profile/index.js +0 -2
  352. package/build/main//321/201omponents/Profile/index.js.map +0 -1
  353. package/build/main//321/201omponents/Profile/types.d.ts +0 -14
  354. package/build/main//321/201omponents/Profile/types.js +0 -2
  355. package/build/main//321/201omponents/Profile/types.js.map +0 -1
  356. package/build/main//321/201omponents/ProgressBar/ProgressBar.d.ts +0 -4
  357. package/build/main//321/201omponents/ProgressBar/ProgressBar.js +0 -66
  358. package/build/main//321/201omponents/ProgressBar/ProgressBar.js.map +0 -1
  359. package/build/main//321/201omponents/ProgressBar/index.d.ts +0 -1
  360. package/build/main//321/201omponents/ProgressBar/index.js +0 -2
  361. package/build/main//321/201omponents/ProgressBar/index.js.map +0 -1
  362. package/build/main//321/201omponents/ProgressBar/types.d.ts +0 -7
  363. package/build/main//321/201omponents/ProgressBar/types.js +0 -2
  364. package/build/main//321/201omponents/ProgressBar/types.js.map +0 -1
  365. package/build/main//321/201omponents/RadioButton/RadioButton.d.ts +0 -4
  366. package/build/main//321/201omponents/RadioButton/RadioButton.js +0 -33
  367. package/build/main//321/201omponents/RadioButton/RadioButton.js.map +0 -1
  368. package/build/main//321/201omponents/RadioButton/index.d.ts +0 -1
  369. package/build/main//321/201omponents/RadioButton/index.js +0 -2
  370. package/build/main//321/201omponents/RadioButton/index.js.map +0 -1
  371. package/build/main//321/201omponents/RadioButton/types.d.ts +0 -12
  372. package/build/main//321/201omponents/RadioButton/types.js +0 -2
  373. package/build/main//321/201omponents/RadioButton/types.js.map +0 -1
  374. package/build/main//321/201omponents/ScrollBar/ScrollBar.d.ts +0 -5
  375. package/build/main//321/201omponents/ScrollBar/ScrollBar.js +0 -140
  376. package/build/main//321/201omponents/ScrollBar/ScrollBar.js.map +0 -1
  377. package/build/main//321/201omponents/ScrollBar/index.d.ts +0 -1
  378. package/build/main//321/201omponents/ScrollBar/index.js +0 -2
  379. package/build/main//321/201omponents/ScrollBar/index.js.map +0 -1
  380. package/build/main//321/201omponents/ScrollBar/types.d.ts +0 -24
  381. package/build/main//321/201omponents/ScrollBar/types.js +0 -2
  382. package/build/main//321/201omponents/ScrollBar/types.js.map +0 -1
  383. package/build/main//321/201omponents/Skeleton/Skeleton.d.ts +0 -4
  384. package/build/main//321/201omponents/Skeleton/Skeleton.js +0 -59
  385. package/build/main//321/201omponents/Skeleton/Skeleton.js.map +0 -1
  386. package/build/main//321/201omponents/Skeleton/index.d.ts +0 -1
  387. package/build/main//321/201omponents/Skeleton/index.js +0 -2
  388. package/build/main//321/201omponents/Skeleton/index.js.map +0 -1
  389. package/build/main//321/201omponents/Skeleton/types.d.ts +0 -17
  390. package/build/main//321/201omponents/Skeleton/types.js +0 -2
  391. package/build/main//321/201omponents/Skeleton/types.js.map +0 -1
  392. package/build/main//321/201omponents/Stories/Stories.d.ts +0 -4
  393. package/build/main//321/201omponents/Stories/Stories.js +0 -338
  394. package/build/main//321/201omponents/Stories/Stories.js.map +0 -1
  395. package/build/main//321/201omponents/Stories/index.d.ts +0 -1
  396. package/build/main//321/201omponents/Stories/index.js +0 -2
  397. package/build/main//321/201omponents/Stories/index.js.map +0 -1
  398. package/build/main//321/201omponents/Stories/types.d.ts +0 -71
  399. package/build/main//321/201omponents/Stories/types.js +0 -16
  400. package/build/main//321/201omponents/Stories/types.js.map +0 -1
  401. package/build/main//321/201omponents/Switcher/Switcher.d.ts +0 -4
  402. package/build/main//321/201omponents/Switcher/Switcher.js +0 -34
  403. package/build/main//321/201omponents/Switcher/Switcher.js.map +0 -1
  404. package/build/main//321/201omponents/Switcher/index.d.ts +0 -1
  405. package/build/main//321/201omponents/Switcher/index.js +0 -2
  406. package/build/main//321/201omponents/Switcher/index.js.map +0 -1
  407. package/build/main//321/201omponents/Switcher/types.d.ts +0 -8
  408. package/build/main//321/201omponents/Switcher/types.js +0 -2
  409. package/build/main//321/201omponents/Switcher/types.js.map +0 -1
  410. package/build/main//321/201omponents/SyncLoader/SyncLoader.d.ts +0 -5
  411. package/build/main//321/201omponents/SyncLoader/SyncLoader.js +0 -65
  412. package/build/main//321/201omponents/SyncLoader/SyncLoader.js.map +0 -1
  413. package/build/main//321/201omponents/SyncLoader/index.d.ts +0 -1
  414. package/build/main//321/201omponents/SyncLoader/index.js +0 -2
  415. package/build/main//321/201omponents/SyncLoader/index.js.map +0 -1
  416. package/build/main//321/201omponents/SyncLoader/types.d.ts +0 -8
  417. package/build/main//321/201omponents/SyncLoader/types.js +0 -2
  418. package/build/main//321/201omponents/SyncLoader/types.js.map +0 -1
  419. package/build/main//321/201omponents/Textarea/Textarea.d.ts +0 -4
  420. package/build/main//321/201omponents/Textarea/Textarea.js +0 -59
  421. package/build/main//321/201omponents/Textarea/Textarea.js.map +0 -1
  422. package/build/main//321/201omponents/Textarea/index.d.ts +0 -1
  423. package/build/main//321/201omponents/Textarea/index.js +0 -2
  424. package/build/main//321/201omponents/Textarea/index.js.map +0 -1
  425. package/build/main//321/201omponents/Textarea/types.d.ts +0 -13
  426. package/build/main//321/201omponents/Textarea/types.js +0 -2
  427. package/build/main//321/201omponents/Textarea/types.js.map +0 -1
  428. package/build/main//321/201omponents/Toggle/Toggle.d.ts +0 -4
  429. package/build/main//321/201omponents/Toggle/Toggle.js +0 -35
  430. package/build/main//321/201omponents/Toggle/Toggle.js.map +0 -1
  431. package/build/main//321/201omponents/Toggle/index.d.ts +0 -1
  432. package/build/main//321/201omponents/Toggle/index.js +0 -2
  433. package/build/main//321/201omponents/Toggle/index.js.map +0 -1
  434. package/build/main//321/201omponents/Toggle/types.d.ts +0 -12
  435. package/build/main//321/201omponents/Toggle/types.js +0 -2
  436. package/build/main//321/201omponents/Toggle/types.js.map +0 -1
  437. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.d.ts +0 -4
  438. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js +0 -31
  439. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js.map +0 -1
  440. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.d.ts +0 -4
  441. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js +0 -88
  442. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js.map +0 -1
  443. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.d.ts +0 -4
  444. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js +0 -23
  445. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js.map +0 -1
  446. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.d.ts +0 -4
  447. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js +0 -129
  448. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js.map +0 -1
  449. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.d.ts +0 -3
  450. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js +0 -137
  451. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js.map +0 -1
  452. package/build/main//321/201omponents/UserDropdown/Option/Option.d.ts +0 -4
  453. package/build/main//321/201omponents/UserDropdown/Option/Option.js +0 -80
  454. package/build/main//321/201omponents/UserDropdown/Option/Option.js.map +0 -1
  455. package/build/main//321/201omponents/UserDropdown/SearchInCatalogButton/SearchInCatalogButton.d.ts +0 -4
  456. package/build/main//321/201omponents/UserDropdown/SearchInCatalogButton/SearchInCatalogButton.js +0 -44
  457. package/build/main//321/201omponents/UserDropdown/SearchInCatalogButton/SearchInCatalogButton.js.map +0 -1
  458. package/build/main//321/201omponents/UserDropdown/UserDropdown.d.ts +0 -5
  459. package/build/main//321/201omponents/UserDropdown/UserDropdown.js +0 -549
  460. package/build/main//321/201omponents/UserDropdown/UserDropdown.js.map +0 -1
  461. package/build/main//321/201omponents/UserDropdown/constants.d.ts +0 -8
  462. package/build/main//321/201omponents/UserDropdown/constants.js +0 -10
  463. package/build/main//321/201omponents/UserDropdown/constants.js.map +0 -1
  464. package/build/main//321/201omponents/UserDropdown/helpers.d.ts +0 -105
  465. package/build/main//321/201omponents/UserDropdown/helpers.js +0 -143
  466. package/build/main//321/201omponents/UserDropdown/helpers.js.map +0 -1
  467. package/build/main//321/201omponents/UserDropdown/index.d.ts +0 -1
  468. package/build/main//321/201omponents/UserDropdown/index.js +0 -2
  469. package/build/main//321/201omponents/UserDropdown/index.js.map +0 -1
  470. package/build/main//321/201omponents/UserDropdown/selectStyles.d.ts +0 -15
  471. package/build/main//321/201omponents/UserDropdown/selectStyles.js +0 -69
  472. package/build/main//321/201omponents/UserDropdown/selectStyles.js.map +0 -1
  473. package/build/main//321/201omponents/UserDropdown/types.d.ts +0 -269
  474. package/build/main//321/201omponents/UserDropdown/types.js +0 -9
  475. package/build/main//321/201omponents/UserDropdown/types.js.map +0 -1
  476. package/build/main//321/201omponents/types.d.ts +0 -2
  477. package/build/main//321/201omponents/types.js +0 -2
  478. package/build/main//321/201omponents/types.js.map +0 -1
@@ -1,45 +0,0 @@
1
- import { isArray, isEmpty } from 'lodash';
2
- import { isLineChart } from './helpers';
3
- import { COLORS } from '../../constants';
4
- import { DISPATCH_ACTION_TYPES } from './constants';
5
- var black = COLORS.black;
6
- export var useEvents = function (_a) {
7
- var chartRef = _a.chartRef, chartType = _a.chartType;
8
- var getChartInstance = function () { var _a; return (_a = chartRef.current) === null || _a === void 0 ? void 0 : _a.getEchartsInstance(); };
9
- var getChartOption = function () { var _a; return (_a = getChartInstance()) === null || _a === void 0 ? void 0 : _a.getOption(); };
10
- var generateAxisLabel = function (label) { return (typeof label === 'object' ? label.value : label); };
11
- var generateXAxisData = function () {
12
- var _a;
13
- var xAxis = (_a = getChartOption()) === null || _a === void 0 ? void 0 : _a.xAxis;
14
- return isArray(xAxis) && !isEmpty(xAxis) ? xAxis[0].data : [];
15
- };
16
- var highlight = function (_a) {
17
- var batch = _a.batch;
18
- var chartInstance = getChartInstance();
19
- var initialXAxisData = generateXAxisData();
20
- if (batch === null || batch === void 0 ? void 0 : batch.length) {
21
- var dataIndex_1 = batch[0].dataIndex;
22
- var xAxisData = initialXAxisData.map(function (label, index) {
23
- var value = generateAxisLabel(label);
24
- return index === dataIndex_1 ? { value: value, textStyle: { color: black } } : value;
25
- });
26
- chartInstance === null || chartInstance === void 0 ? void 0 : chartInstance.setOption({
27
- xAxis: [
28
- {
29
- data: xAxisData,
30
- formatter: function (label) { return generateAxisLabel(label); },
31
- },
32
- ],
33
- });
34
- isLineChart(chartType) && (chartInstance === null || chartInstance === void 0 ? void 0 : chartInstance.dispatchAction({ type: DISPATCH_ACTION_TYPES.highlight, dataIndex: dataIndex_1 }));
35
- }
36
- };
37
- var downplay = function () {
38
- var chartInstance = getChartInstance();
39
- var initialXAxisData = generateXAxisData();
40
- var xAxisData = initialXAxisData.map(function (label) { return generateAxisLabel(label); });
41
- chartInstance === null || chartInstance === void 0 ? void 0 : chartInstance.setOption({ xAxis: [{ data: xAxisData }] });
42
- };
43
- return { highlight: highlight, downplay: downplay };
44
- };
45
- //# sourceMappingURL=useEvents.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useEvents.js","sourceRoot":"","sources":["../../../../src/сomponents/Charts/useEvents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAA;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AACxC,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AAG3C,IAAA,KAAK,GAAK,MAAM,MAAX,CAAW;AAExB,MAAM,CAAC,IAAM,SAAS,GAAG,UAAC,EAAmC;QAAjC,QAAQ,cAAA,EAAE,SAAS,eAAA;IAC7C,IAAM,gBAAgB,GAAG,sBAAM,OAAA,MAAA,QAAQ,CAAC,OAAO,0CAAE,kBAAkB,EAAE,CAAA,EAAA,CAAA;IACrE,IAAM,cAAc,GAAG,sBAAM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AiB,CAAC,KAAK,CAAC,EAAxB,CAAwB;qBACpE;iBACF;aACF,CAAC,CAAA;YAEF,WAAW,CAAC,SAAS,CAAC,KAAI,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,cAAc,CAAC,EAAE,IAAI,EAAE,qBAAqB,CAAC,SAAS,EAAE,SAAS,aAAA,EAAE,CAAC,CAAA,CAAA;SAC9G;IACH,CAAC,CAAA;IAED,IAAM,QAAQ,GAAG;QACf,IAAM,aAAa,GAAG,gBAAgB,EAAE,CAAA;QACxC,IAAM,gBAAgB,GAAG,iBAAiB,EAAE,CAAA;QAC5C,IAAM,SAAS,GAAG,gBAAgB,CAAC,GAAG,CAAC,UAAC,KAAK,IAAK,OAAA,iBAAiB,CAAC,KAAK,CAAC,EAAxB,CAAwB,CAAC,CAAA;QAE3E,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,SAAS,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC,CAAA;IAC5D,CAAC,CAAA;IAED,OAAO,EAAE,SAAS,WAAA,EAAE,QAAQ,UAAA,EAAE,CAAA;AAChC,CAAC,CAAA"}
@@ -1,6 +0,0 @@
1
- import { TLegendsChanged, TMouseover, TUsePieEvents } from './types';
2
- export declare const usePieEvents: ({ chartRef, data }: TUsePieEvents) => {
3
- legendselectchanged: ({ selected }: TLegendsChanged) => void;
4
- mouseover: ({ name }: TMouseover) => void;
5
- mouseout: () => void;
6
- };
@@ -1,57 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- import Color from 'color';
13
- import { isArray, isEmpty } from 'lodash';
14
- import { calculatePieValue } from './helpers';
15
- export var usePieEvents = function (_a) {
16
- var chartRef = _a.chartRef, data = _a.data;
17
- var getChartInstance = function () { var _a; return (_a = chartRef.current) === null || _a === void 0 ? void 0 : _a.getEchartsInstance(); };
18
- var getChartOption = function () { var _a; return (_a = getChartInstance()) === null || _a === void 0 ? void 0 : _a.getOption(); };
19
- var getSeriesData = function () {
20
- var chartOption = getChartOption();
21
- var series = chartOption === null || chartOption === void 0 ? void 0 : chartOption.series;
22
- return isArray(series) && !isEmpty(series) ? series[0].data : [];
23
- };
24
- var legendselectchanged = function (_a) {
25
- var selected = _a.selected;
26
- var chartInstance = getChartInstance();
27
- var filteredData = data.filter(function (_a) {
28
- var name = _a.name;
29
- return selected[name];
30
- });
31
- var subtext = calculatePieValue(filteredData);
32
- chartInstance === null || chartInstance === void 0 ? void 0 : chartInstance.setOption({ title: { subtext: subtext } });
33
- };
34
- var mouseover = function (_a) {
35
- var name = _a.name;
36
- var chartInstance = getChartInstance();
37
- var series = getSeriesData();
38
- var data = series.map(function (dataItem) {
39
- var dataItemName = dataItem.name, color = dataItem.color;
40
- var _a = Color(color).rgb().object(), r = _a.r, g = _a.g, b = _a.b;
41
- var itemStyle = dataItemName === name ? { color: color } : { color: "rgba(".concat(r, ", ").concat(g, ", ").concat(b, ", ").concat(0.65, ")") };
42
- return __assign(__assign({}, dataItem), { itemStyle: itemStyle });
43
- });
44
- chartInstance === null || chartInstance === void 0 ? void 0 : chartInstance.setOption({ series: [{ data: data }] });
45
- };
46
- var mouseout = function () {
47
- var chartInstance = getChartInstance();
48
- var series = getSeriesData();
49
- var data = series.map(function (dataItem) {
50
- var color = dataItem.color;
51
- return __assign(__assign({}, dataItem), { itemStyle: { color: color } });
52
- });
53
- chartInstance === null || chartInstance === void 0 ? void 0 : chartInstance.setOption({ series: [{ data: data }] });
54
- };
55
- return { legendselectchanged: legendselectchanged, mouseover: mouseover, mouseout: mouseout };
56
- };
57
- //# sourceMappingURL=usePieEvents.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"usePieEv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AAM,EAAE,CAAC,EAAE,IAAI,MAAA,EAAE,CAAC,EAAE,CAAC,CAAA;IAClD,CAAC,CAAA;IAED,OAAO,EAAE,mBAAmB,qBAAA,EAAE,SAAS,WAAA,EAAE,QAAQ,UAAA,EAAE,CAAA;AACrD,CAAC,CAAA"}
@@ -1,8 +0,0 @@
1
- import { ICheckBoxProps } from './types';
2
- import '../../styles/styles.scss';
3
- export declare enum CHECK_BOX_SHAPE {
4
- square = "square",
5
- circle = "circle"
6
- }
7
- declare const CheckBox: ({ id, isDisabled, isChecked, isIndeterminate, className, styles, shape, checkedColor, checkedHoverColor, checkedPressedColor, onChange, }: ICheckBoxProps) => import("react/jsx-runtime").JSX.Element;
8
- export default CheckBox;
@@ -1,48 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
- import { useEffect, useRef } from 'react';
14
- import classNames from 'classnames';
15
- import { generateColor } from '../../helpers';
16
- import { COLORS, EVENT_LISTENER_TYPES } from '../../constants';
17
- import { ReactComponent as CheckSquareIcon } from '../../assets/icons/check-mark-square.svg';
18
- import { ReactComponent as CheckIcon } from '../../assets/icons/check-mark.svg';
19
- import { ReactComponent as IndeterminateCheckSquareIcon } from '../../assets/icons/indeterminate-check-mark-square.svg';
20
- import '../../styles/styles.scss';
21
- export var CHECK_BOX_SHAPE;
22
- (function (CHECK_BOX_SHAPE) {
23
- CHECK_BOX_SHAPE["square"] = "square";
24
- CHECK_BOX_SHAPE["circle"] = "circle";
25
- })(CHECK_BOX_SHAPE || (CHECK_BOX_SHAPE = {}));
26
- var PRESSED_CLASS_NAME = 'smartapp-check-box__pressed';
27
- var CheckBox = function (_a) {
28
- var id = _a.id, _b = _a.isDisabled, isDisabled = _b === void 0 ? false : _b, _c = _a.isChecked, isChecked = _c === void 0 ? false : _c, _d = _a.isIndeterminate, isIndeterminate = _d === void 0 ? false : _d, className = _a.className, _e = _a.styles, styles = _e === void 0 ? {} : _e, _f = _a.shape, shape = _f === void 0 ? CHECK_BOX_SHAPE.square : _f, checkedColor = _a.checkedColor, checkedHoverColor = _a.checkedHoverColor, checkedPressedColor = _a.checkedPressedColor, _g = _a.onChange, onChange = _g === void 0 ? function () { return undefined; } : _g;
29
- var checkBoxRef = useRef(null);
30
- var inputId = "cb-".concat(id);
31
- var iconColorStyle = { color: generateColor(checkedColor, COLORS.buttonPrimary) };
32
- var isSquareShape = shape === CHECK_BOX_SHAPE.square;
33
- var checkBoxStyles = __assign({ '--checkbox-hover-color': generateColor(checkedHoverColor, COLORS.buttonPrimaryHover), '--checkbox-pressed-color': generateColor(checkedPressedColor, COLORS.buttonPrimaryPressed) }, styles);
34
- useEffect(function () {
35
- window.addEventListener(EVENT_LISTENER_TYPES.mouseup, handleMouseUp);
36
- return function () { return window.removeEventListener(EVENT_LISTENER_TYPES.mouseup, handleMouseUp); };
37
- }, []);
38
- var handleMouseDown = function () { var _a; return (_a = checkBoxRef.current) === null || _a === void 0 ? void 0 : _a.classList.add(PRESSED_CLASS_NAME); };
39
- var handleMouseUp = function () { var _a; return (_a = checkBoxRef.current) === null || _a === void 0 ? void 0 : _a.classList.remove(PRESSED_CLASS_NAME); };
40
- var handleClick = function (event) { return event.stopPropagation(); };
41
- var renderSquareCheckIcon = function () {
42
- return isIndeterminate ? (_jsx(IndeterminateCheckSquareIcon, { style: iconColorStyle, onMouseDown: handleMouseDown })) : (_jsx(CheckSquareIcon, { style: iconColorStyle, onMouseDown: handleMouseDown }));
43
- };
44
- var renderCheckIcon = function () { return (isSquareShape ? renderSquareCheckIcon() : _jsx(CheckIcon, { style: iconColorStyle, onMouseDown: handleMouseDown })); };
45
- return (_jsx("div", __assign({ ref: checkBoxRef, className: classNames('smartapp-check-box', className), style: checkBoxStyles }, { children: _jsxs("label", __assign({ htmlFor: inputId }, { children: [_jsx("input", { id: inputId, type: "checkbox", className: "smartapp-check-box__custom-check-box", disabled: isDisabled, checked: isChecked, onChange: onChange, onClick: handleClick }), isChecked ? renderCheckIcon() : _jsx("span", { className: classNames('checkmark', "checkmark__".concat(shape)), onMouseDown: handleMouseDown })] })) })));
46
- };
47
- export default CheckBox;
48
- //# sourceMappingURL=Checkbox.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Checkbox.js","sourceRoot":"","sources":["../../../../src/сomponents/Checkbox/Checkbox.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAiB,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAC/D,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAC7C,OAAO,EAAE,MAAM,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAA;AAE9D,OAAO,EAAE,cAAc,IAAI,eAAe,EAAE,MAAM,0CAA0C,CAAA;AAC5F,OAAO,EAAE,cAAc,IAAI,SAAS,EAAE,MAAM,mCAAmC,CAAA;AAC/E,OAAO,EAAE,cAAc,IAAI,4BAA4B,EAAE,MAAM,wDAAwD,CAAA;AACvH,OAAO,0BAA0B,CAAA;AAEjC,MAAM,CAAN,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,oCAAiB,CAAA;IACjB,oCAAiB,CAAA;AACnB,CAAC,EAHW,eAAe,KAAf,eAAe,QAG1B;AAED,IAAM,kBAAkB,GAAG,6BAA6B,CAAA;AAExD,IAAM,QAAQ,GAAG,UAAC,EAYD;QAXf,EAAE,QAAA,EACF,kBAAkB,EAAlB,UAAU,mBAAG,KAAK,KAAA,EAClB,iBAAiB,EAAjB,SAAS,mBAAG,KAAK,KAAA,EACjB,uBAAuB,EAAvB,eAAe,mBAAG,KAAK,KAAA,EACv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KAAyC,IAAK,OAAA,KAAK,CAAC,eAAe,EAAE,EAAvB,CAAuB,CAAA;IAE1F,IAAM,qBAAqB,GAAG;QAC5B,OAAA,eAAe,CAAC,CAAC,CAAC,CAChB,KAAC,4BAA4B,IAAC,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,eAAe,GAAI,CACtF,CAAC,CAAC,CAAC,CACF,KAAC,eAAe,IAAC,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,eAAe,GAAI,CACzE;IAJD,CAIC,CAAA;IAEH,IAAM,eAAe,GAAG,cAAM,OAAA,CAAC,aAAa,CAAC,CAAC,CAAC,qBAAqB,EAAE,CAAC,CAAC,CAAC,KAAC,SAAS,IAAC,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,eAAe,GAAI,CAAC,EAA9G,CAA8G,CAAA;IAE5I,OAAO,CACL,uBAAK,GAAG,EAAE,WAAW,EAAE,SAAS,EAAE,UAAU,CAAC,oBAAoB,EAAE,SAAS,CAAC,EAAE,KAAK,EAAE,cAAc,gBAClG,0BAAO,OAAO,EAAE,OAAO,iBACrB,gBACE,EAAE,EAAE,OAAO,EACX,IAAI,EAAC,UAAU,EACf,SAAS,EAAC,sCAAsC,EAChD,QAAQ,EAAE,UAAU,EACpB,OAAO,EAAE,SAAS,EAClB,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,WAAW,GACpB,EACD,SAAS,CAAC,CAAC,CAAC,eAAe,EAAE,CAAC,CAAC,CAAC,eAAM,SAAS,EAAE,UAAU,CAAC,WAAW,EAAE,qBAAc,KAAK,CAAE,CAAC,EAAE,WAAW,EAAE,eAAe,GAAI,KAC5H,IACJ,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,QAAQ,CAAA"}
@@ -1 +0,0 @@
1
- export { default } from './Checkbox';
@@ -1,2 +0,0 @@
1
- export { default } from './Checkbox';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/Checkbox/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA"}
@@ -1,14 +0,0 @@
1
- import { TStyles } from '../../constants';
2
- export interface ICheckBoxProps {
3
- id: string;
4
- isDisabled?: boolean;
5
- isChecked?: boolean;
6
- isIndeterminate?: boolean;
7
- className?: string;
8
- styles?: TStyles;
9
- shape?: 'square' | 'circle';
10
- checkedColor?: string;
11
- checkedHoverColor?: string;
12
- checkedPressedColor?: string;
13
- onChange?: () => void;
14
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/Checkbox/types.ts"],"names":[],"mappings":""}
@@ -1,4 +0,0 @@
1
- import { IChipProps } from './types';
2
- import '../../styles/styles.scss';
3
- declare const Chip: ({ fontFamily, language, name, organizerName, email, uid, avatar, isAvatarHidden, isDisabled, isError, isLoading, isWarning, isEye, isMyContacts, isOrganizerShort, isOutline, isOpenContextMenu, userType, contextMenuItems, className, styles, iconColor, platform, onDelete, setIsOpenContextMenu, }: IChipProps) => import("react/jsx-runtime").JSX.Element;
4
- export default Chip;
@@ -1,118 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- var _a;
13
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
- import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
15
- import classNames from 'classnames';
16
- import { isEmpty } from 'lodash';
17
- import { useLongTap } from '../../hooks/useLongTap';
18
- import Avatar from '../Avatar';
19
- import ContextMenu from '../ContextMenu';
20
- import Loader from '../Loader';
21
- import { createSanitizedHtml, generateAvatarIcon, generateColor, generateFontFamilyStyle, isWebPlatform, renderUserIcon } from '../../helpers';
22
- import { COLORS, EVENT_LISTENER_TYPES, FIT_CONTENT, LANGUAGES, PLATFORM } from '../../constants';
23
- import { AVATAR_SIZES } from '../Avatar/types';
24
- import { ReactComponent as ArrowDownIcon } from '../../assets/icons/avatar-arrow-down.svg';
25
- import { ReactComponent as ArrowUpIcon } from '../../assets/icons/avatar-arrow-up.svg';
26
- import { ReactComponent as LoaderIcon } from '../../assets/icons/avatar-loader.svg';
27
- import { ReactComponent as InfoIcon } from '../../assets/icons/chip-info.svg';
28
- import { ReactComponent as DeleteIcon } from '../../assets/icons/delete-chip.svg';
29
- import '../../styles/styles.scss';
30
- var CHIP_HEIGHT = 32;
31
- var CONTEXT_MENU_INDENT_TOP = 4;
32
- var CONTEXT_MENU_INDENT = CHIP_HEIGHT + CONTEXT_MENU_INDENT_TOP;
33
- var CHIP_PRESSED_CLASSNAME = 'smartapp-chip__pressed';
34
- var DELETE_ICON_PRESSED_CLASSNAME = 'smartapp-chip__right-icons--delete-icon__pressed';
35
- var ICON_TRANSITION = 'opacity 150ms ease-in-out';
36
- var OPACITY_VALUES;
37
- (function (OPACITY_VALUES) {
38
- OPACITY_VALUES[OPACITY_VALUES["default"] = 1] = "default";
39
- OPACITY_VALUES[OPACITY_VALUES["loading"] = 0.5] = "loading";
40
- })(OPACITY_VALUES || (OPACITY_VALUES = {}));
41
- var ORGANIZER = (_a = {},
42
- _a[LANGUAGES.ru] = 'организатор',
43
- _a[LANGUAGES.en] = 'organizer',
44
- _a[LANGUAGES.de] = 'veranstalter',
45
- _a[LANGUAGES.es] = 'organizador',
46
- _a[LANGUAGES.fr] = 'organisateur',
47
- _a[LANGUAGES.ar] = 'منظم',
48
- _a[LANGUAGES.ms] = 'pengurus',
49
- _a[LANGUAGES.tr] = 'düzenleyici',
50
- _a[LANGUAGES.id] = 'penyelenggara',
51
- _a[LANGUAGES.uz] = 'tashkilotchi',
52
- _a);
53
- var generateLoaderContainerStyles = function () { return ({ background: 'none' }); };
54
- var generateLoaderStyles = function () { return ({ width: 'fit-content', padding: 0 }); };
55
- var Chip = function (_a) {
56
- var fontFamily = _a.fontFamily, _b = _a.language, language = _b === void 0 ? LANGUAGES.ru : _b, name = _a.name, organizerName = _a.organizerName, email = _a.email, uid = _a.uid, avatar = _a.avatar, _c = _a.isAvatarHidden, isAvatarHidden = _c === void 0 ? false : _c, _d = _a.isDisabled, isDisabled = _d === void 0 ? false : _d, _e = _a.isError, isError = _e === void 0 ? false : _e, _f = _a.isLoading, isLoading = _f === void 0 ? false : _f, _g = _a.isWarning, isWarning = _g === void 0 ? false : _g, _h = _a.isEye, isEye = _h === void 0 ? false : _h, isMyContacts = _a.isMyContacts, isOrganizerShort = _a.isOrganizerShort, isOutline = _a.isOutline, isOpenContextMenu = _a.isOpenContextMenu, userType = _a.userType, contextMenuItems = _a.contextMenuItems, className = _a.className, styles = _a.styles, iconColor = _a.iconColor, _j = _a.platform, platform = _j === void 0 ? PLATFORM.web : _j, onDelete = _a.onDelete, setIsOpenContextMenu = _a.setIsOpenContextMenu;
57
- var chipRef = useRef(null);
58
- var deleteIconRef = useRef(null);
59
- var _k = useState(false), isAvatarArrowVisible = _k[0], setIsAvatarArrowVisible = _k[1];
60
- var iconOpacity = useMemo(function () { return (isLoading ? OPACITY_VALUES.loading : OPACITY_VALUES.default); }, [isLoading]);
61
- var iconStyles = { opacity: iconOpacity, transition: ICON_TRANSITION };
62
- var userIcon = renderUserIcon({ userType: userType, isMyContacts: isMyContacts, style: iconStyles });
63
- var isContextMenuAvailable = !isEmpty(contextMenuItems);
64
- var isDeleteIconAvailable = !isDisabled && onDelete;
65
- useEffect(function () {
66
- window.addEventListener(EVENT_LISTENER_TYPES.mouseup, handleMouseUp);
67
- return function () { return window.removeEventListener(EVENT_LISTENER_TYPES.mouseup, handleMouseUp); };
68
- }, []);
69
- var generateName = function () {
70
- if (organizerName)
71
- return isOrganizerShort ? organizerName : "".concat(organizerName, " <span>(").concat(ORGANIZER[language], ")</span>");
72
- return name;
73
- };
74
- var handleMouseDown = function () { var _a; return !isLoading && isContextMenuAvailable && ((_a = chipRef.current) === null || _a === void 0 ? void 0 : _a.classList.add(CHIP_PRESSED_CLASSNAME)); };
75
- var handleMouseEnter = function () { return isContextMenuAvailable && setIsAvatarArrowVisible(true); };
76
- var handleMouseLeave = function () { return isContextMenuAvailable && setIsAvatarArrowVisible(false); };
77
- var handleDeleteIconMouseDown = function (event) {
78
- var _a;
79
- if (isLoading)
80
- return;
81
- event.stopPropagation();
82
- (_a = deleteIconRef.current) === null || _a === void 0 ? void 0 : _a.classList.add(DELETE_ICON_PRESSED_CLASSNAME);
83
- };
84
- var handleMouseUp = function () {
85
- var _a, _b;
86
- (_a = chipRef.current) === null || _a === void 0 ? void 0 : _a.classList.remove(CHIP_PRESSED_CLASSNAME);
87
- (_b = deleteIconRef.current) === null || _b === void 0 ? void 0 : _b.classList.remove(DELETE_ICON_PRESSED_CLASSNAME);
88
- };
89
- var handleDeleteClick = function (event) {
90
- event.stopPropagation();
91
- event.preventDefault();
92
- !isLoading && (onDelete === null || onDelete === void 0 ? void 0 : onDelete(name));
93
- };
94
- var handleOpenContextMenu = useCallback(function () { return isContextMenuAvailable && !isLoading && (setIsOpenContextMenu === null || setIsOpenContextMenu === void 0 ? void 0 : setIsOpenContextMenu(true)); }, [isContextMenuAvailable, isLoading, setIsOpenContextMenu]);
95
- var handleCloseContextMenu = function () {
96
- setIsOpenContextMenu === null || setIsOpenContextMenu === void 0 ? void 0 : setIsOpenContextMenu(false);
97
- setIsAvatarArrowVisible(false);
98
- };
99
- var setContextMenuPosition = useCallback(function () {
100
- var _a;
101
- var _b = ((_a = chipRef.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect()) || {}, _c = _b.left, left = _c === void 0 ? 0 : _c, _d = _b.top, top = _d === void 0 ? 0 : _d;
102
- return { x: left, y: top + CONTEXT_MENU_INDENT };
103
- }, [chipRef]);
104
- var _l = useLongTap({ onLongTap: handleOpenContextMenu }), cancelPressTimer = _l.cancelPressTimer, startPressTimer = _l.startPressTimer;
105
- var handleContextMenu = function (event) {
106
- if (!isWebPlatform(platform))
107
- return;
108
- event.preventDefault();
109
- handleOpenContextMenu();
110
- };
111
- var renderAvatar = function () {
112
- return isAvatarArrowVisible || isOpenContextMenu ? (_jsx("div", __assign({ className: classNames('smartapp-chip__info--avatar-arrow', { 'smartapp-chip__info--avatar-arrow__outline': isOutline }) }, { children: isOpenContextMenu ? _jsx(ArrowUpIcon, { color: COLORS.iconAccentPressed }) : _jsx(ArrowDownIcon, { color: COLORS.iconAccent }) }))) : (avatar);
113
- };
114
- var contextMenuHeader = (_jsxs("div", __assign({ className: "smartapp-chip__context-menu-header" }, { children: [_jsx(Avatar, { fontFamily: fontFamily, username: name, icon: generateAvatarIcon(userType), avatar: avatar, size: AVATAR_SIZES.size_32, isEye: isEye, outlineDefaultBackground: COLORS.chip }), _jsxs("div", __assign({ className: "smartapp-chip__context-menu-header__content" }, { children: [_jsxs("div", { children: [userIcon, _jsx("span", { children: name })] }), email && _jsx("div", { children: email })] }))] })));
115
- return (_jsxs("div", __assign({ ref: chipRef, className: classNames('smartapp-chip', { 'smartapp-chip__outline': isOutline, 'smartapp-chip__loading': isLoading }, className), style: __assign(__assign({}, generateFontFamilyStyle(fontFamily)), styles), onContextMenu: handleContextMenu, onTouchStart: !isOpenContextMenu ? startPressTimer : undefined, onTouchEnd: cancelPressTimer, onTouchMove: cancelPressTimer, onMouseDown: handleMouseDown, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave }, { children: [_jsxs("div", __assign({ className: "smartapp-chip__info" }, { children: [!isAvatarHidden && (_jsx("div", __assign({ className: "smartapp-chip__info--avatar" }, { children: isLoading ? (_jsx(Loader, { icon: _jsx(LoaderIcon, {}), color: COLORS.iconAccent, isLoader: true, iconSize: AVATAR_SIZES.size_20, styles: generateLoaderStyles(), containerStyles: generateLoaderContainerStyles(), isFullScreen: false })) : (_jsx(Avatar, { isTooltipAvailableOnEye: true, language: language, fontFamily: fontFamily, icon: !isAvatarArrowVisible && generateAvatarIcon(userType), username: name, isWarning: isWarning, avatar: renderAvatar(), size: AVATAR_SIZES.size_24, isEye: isEye, outlineDefaultBackground: COLORS.chip })) }))), userIcon, _jsx("p", { className: classNames('smartapp-chip__info--name', { 'smartapp-chip__info--name__loading': isLoading }), dangerouslySetInnerHTML: createSanitizedHtml(generateName()) })] })), (isError || isDeleteIconAvailable) && (_jsxs("div", __assign({ className: "smartapp-chip__right-icons" }, { children: [isError && _jsx(InfoIcon, { color: COLORS.iconNegative }), isDeleteIconAvailable && (_jsx("div", __assign({ ref: deleteIconRef, className: classNames('smartapp-chip__right-icons--delete-icon', { 'smartapp-chip__right-icons--delete-icon__loading': isLoading }), onClick: handleDeleteClick, onMouseDown: handleDeleteIconMouseDown }, { children: _jsx(DeleteIcon, { style: __assign({ color: generateColor(iconColor) }, iconStyles) }) })))] }))), contextMenuItems && (_jsx(ContextMenu, { isMenuOpen: !!isOpenContextMenu, fontFamily: fontFamily, position: setContextMenuPosition(), closeMenu: handleCloseContextMenu, items: contextMenuItems, actionData: uid || email || name, topSlot: contextMenuHeader, menuStyles: { width: FIT_CONTENT } }))] })));
116
- };
117
- export default Chip;
118
- //# sourceMappingURL=Chip.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Chip.js","sourceRoot":"","sources":["../../../../src/сomponents/Chip/Chip.tsx"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,OAAc,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChF,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAA;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AACnD,OAAO,MAAM,MAAM,WAAW,CAAA;AAC9B,OAAO,WAAW,MAAM,g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,CAAA;AACH,CAAC,CAAA;AAED,eAAe,IAAI,CAAA"}
@@ -1 +0,0 @@
1
- export { default } from './Chip';
@@ -1,2 +0,0 @@
1
- export { default } from './Chip';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/Chip/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAA"}
@@ -1,27 +0,0 @@
1
- import { IFontFamilyProps, ILanguageProps, IPlatformProps, TStyles } from '../../constants';
2
- import { CONTACT_TYPES } from '../UserDropdown/constants';
3
- import { MenuItem } from '../ContextMenu/types';
4
- export interface IChipProps extends IFontFamilyProps, IPlatformProps, ILanguageProps {
5
- name: string;
6
- organizerName?: string | null;
7
- email?: string;
8
- uid?: string;
9
- avatar?: string;
10
- isAvatarHidden?: boolean;
11
- isDisabled?: boolean;
12
- isError?: boolean;
13
- isWarning?: boolean;
14
- isLoading?: boolean;
15
- isEye?: boolean;
16
- isMyContacts?: boolean;
17
- isOrganizerShort?: boolean;
18
- isOutline?: boolean;
19
- isOpenContextMenu?: boolean;
20
- userType?: CONTACT_TYPES;
21
- className?: string;
22
- styles?: TStyles;
23
- iconColor?: string;
24
- contextMenuItems?: MenuItem[];
25
- onDelete?: (name?: string) => void;
26
- setIsOpenContextMenu?: (isOpen: boolean) => void;
27
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/Chip/types.ts"],"names":[],"mappings":""}
@@ -1,4 +0,0 @@
1
- import { IConfirmationModalProps } from './types';
2
- import '../../styles/styles.scss';
3
- declare const ConfirmationModal: ({ isModalOpen, isClosableOutside, isConfirmLoading, isCancelLoading, isCloseIconHidden, title, text, cancelButtonName, confirmButtonName, cancelButtonFunction, confirmButtonFunction, handleCloseModal, platform, fontFamily, popupClassName, className, popupStyles, styles, titleStyles, iconColor, backgroundColor, buttonsDirection, isBottomSheet, isDisabledBottomSheet, bottomSheetProps, }: IConfirmationModalProps) => import("react/jsx-runtime").JSX.Element | null;
4
- export default ConfirmationModal;
@@ -1,63 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
- import { useEffect, useRef } from 'react';
14
- import classNames from 'classnames';
15
- import { useModal } from '../../hooks/useModal';
16
- import Button from '../Button';
17
- import { generateBottomSheetClassName, generateClassNames, generateColor, generateFontFamilyStyle, generateIsCloseIconHidden, renderCloseIconSpace, } from '../../helpers';
18
- import { COLORS, EVENT_LISTENER_TYPES, MODAL_BUTTONS_DIRECTION, PLATFORM } from '../../constants';
19
- import { TButtonVariant } from '../Button/types';
20
- import { ReactComponent as CloseIcon } from '../../assets/icons/close-modal.svg';
21
- import '../../styles/styles.scss';
22
- var ConfirmationModal = function (_a) {
23
- var isModalOpen = _a.isModalOpen, _b = _a.isClosableOutside, isClosableOutside = _b === void 0 ? true : _b, _c = _a.isConfirmLoading, isConfirmLoading = _c === void 0 ? false : _c, _d = _a.isCancelLoading, isCancelLoading = _d === void 0 ? false : _d, isCloseIconHidden = _a.isCloseIconHidden, title = _a.title, text = _a.text, cancelButtonName = _a.cancelButtonName, confirmButtonName = _a.confirmButtonName, cancelButtonFunction = _a.cancelButtonFunction, confirmButtonFunction = _a.confirmButtonFunction, handleCloseModal = _a.handleCloseModal, _e = _a.platform, platform = _e === void 0 ? PLATFORM.web : _e, fontFamily = _a.fontFamily, popupClassName = _a.popupClassName, className = _a.className, popupStyles = _a.popupStyles, styles = _a.styles, titleStyles = _a.titleStyles, iconColor = _a.iconColor, backgroundColor = _a.backgroundColor, _f = _a.buttonsDirection, buttonsDirection = _f === void 0 ? MODAL_BUTTONS_DIRECTION.row : _f, _g = _a.isBottomSheet, isBottomSheet = _g === void 0 ? false : _g, _h = _a.isDisabledBottomSheet, isDisabledBottomSheet = _h === void 0 ? false : _h, bottomSheetProps = _a.bottomSheetProps;
24
- var ref = useRef(null);
25
- var titleRef = useRef(null);
26
- var textRef = useRef(null);
27
- var closeIconRef = useRef(null);
28
- var background = generateColor(backgroundColor, COLORS.colorBgBlackoutTransparent);
29
- var isCloseIconInvisible = generateIsCloseIconHidden(platform, isCloseIconHidden);
30
- var cancelFunction = handleCloseModal || cancelButtonFunction;
31
- var popupOverlayStyle = __assign({ '--confirmation-modal-background': background }, popupStyles);
32
- var _j = useModal({
33
- isModalOpen: isModalOpen,
34
- platform: platform,
35
- isDisabledBottomSheet: isDisabledBottomSheet,
36
- initialIsBottomSheet: isBottomSheet,
37
- modalRef: ref,
38
- isClosableOutside: isClosableOutside,
39
- handleCloseModal: cancelFunction,
40
- popupClassName: classNames('confirmation-modal', popupClassName),
41
- popupStyles: popupOverlayStyle,
42
- bottomSheetStyles: { '--rsbs-backdrop-bg': background },
43
- bottomSheetProps: bottomSheetProps,
44
- }), shouldUseBottomSheet = _j.shouldUseBottomSheet, renderModal = _j.renderModal;
45
- var additionalClassName = generateBottomSheetClassName(platform, shouldUseBottomSheet);
46
- useEffect(function () {
47
- var checkIfClickedOutside = function (_a) {
48
- var target = _a.target;
49
- var refCurrent = ref.current;
50
- if (isModalOpen && isClosableOutside && refCurrent && !refCurrent.contains(target))
51
- cancelFunction();
52
- };
53
- document === null || document === void 0 ? void 0 : document.addEventListener(EVENT_LISTENER_TYPES.click, checkIfClickedOutside, true);
54
- return function () { return document === null || document === void 0 ? void 0 : document.removeEventListener(EVENT_LISTENER_TYPES.click, checkIfClickedOutside, true); };
55
- // eslint-disable-next-line react-hooks/exhaustive-deps
56
- }, [isModalOpen, isClosableOutside]);
57
- var modalContent = (_jsx("div", __assign({ ref: ref, className: classNames('smartapp-confirmation-modal', { 'smartapp-confirmation-modal__bottom-sheet': shouldUseBottomSheet }, className), style: __assign(__assign({}, generateFontFamilyStyle(fontFamily)), styles) }, { children: _jsxs("div", __assign({ className: generateClassNames({ className: 'smartapp-confirmation-modal__content', delimiter: '--', additionalClassName: additionalClassName }) }, { children: [title && (_jsxs("div", { children: [!isCloseIconInvisible && renderCloseIconSpace({ elementRef: titleRef, closeIconRef: closeIconRef }), _jsx("p", __assign({ ref: titleRef, className: "smartapp-confirmation-modal__content--title", style: titleStyles }, { children: title }))] })), !isCloseIconInvisible && (_jsx("div", __assign({ ref: closeIconRef, onClick: cancelFunction, className: "smartapp-close-modal-icon" }, { children: _jsx(CloseIcon, { style: { color: generateColor(iconColor) } }) }))), _jsxs("div", { children: [!title && !isCloseIconInvisible && renderCloseIconSpace({ elementRef: textRef, closeIconRef: closeIconRef, isContent: true }), _jsx("span", __assign({ ref: textRef, className: "smartapp-confirmation-modal__content--text" }, { children: text }))] }), _jsxs("div", __assign({ className: classNames("smartapp-confirmation-modal__content--buttons smartapp-confirmation-modal__content--buttons__".concat(platform), {
58
- 'smartapp-confirmation-modal__content--buttons__column-reverse': buttonsDirection === MODAL_BUTTONS_DIRECTION.column,
59
- }) }, { children: [cancelButtonName && (_jsx(Button, { fontFamily: fontFamily, title: cancelButtonName, isWaitingResponse: isCancelLoading, variant: TButtonVariant.secondary, onClick: cancelButtonFunction, disabled: isConfirmLoading })), _jsx(Button, { fontFamily: fontFamily, isWaitingResponse: isConfirmLoading, title: confirmButtonName, onClick: confirmButtonFunction, disabled: isCancelLoading })] }))] })) })));
60
- return renderModal(modalContent);
61
- };
62
- export default ConfirmationModal;
63
- //# sourceMappingURL=ConfirmationModal.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ConfirmationModal.js","sourceRoot":"","sources":["../../../../src/сomponents/ConfirmationModal/ConfirmationModal.tsx"],"names":[],"mappings":";;;;;;;;;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ACG,CAAC,KAAK,IAAI,CAAC,oBAAoB,IAAI,oBAAoB,CAAC,EAAE,UAAU,EAAE,OAAO,EAAE,YAAY,cAAA,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAChH,wBAAM,GAAG,EAAE,OAAO,EAAE,SAAS,EAAC,4CAA4C,gBACvE,IAAI,IACA,IACH,EACN,wBACE,SAAS,EAAE,UAAU,CAAC,uGAAgG,QAAQ,CAAE,EAAE;wBAChI,+DAA+D,EAAE,gBAAgB,KAAK,uBAAuB,CAAC,MAAM;qBACrH,CAAC,iBAED,gBAAgB,IAAI,CACnB,KAAC,MAAM,IACL,UAAU,EAAE,UAAU,EACtB,KAAK,EAAE,gBAAgB,EACvB,iBAAiB,EAAE,eAAe,EAClC,OAAO,EAAE,cAAc,CAAC,SAAS,EACjC,OAAO,EAAE,oBAAoB,EAC7B,QAAQ,EAAE,gBAAgB,GAC1B,CACH,EACD,KAAC,MAAM,IACL,UAAU,EAAE,UAAU,EACtB,iBAAiB,EAAE,gBAAgB,EACnC,KAAK,EAAE,iBAAiB,EACxB,OAAO,EAAE,qBAAqB,EAC9B,QAAQ,EAAE,eAAe,GACzB,KACE,KACF,IACF,CACP,CAAA;IAED,OAAO,WAAW,CAAC,YAAY,CAAC,CAAA;AAClC,CAAC,CAAA;AAED,eAAe,iBAAiB,CAAA"}
@@ -1 +0,0 @@
1
- export { default } from './ConfirmationModal';
@@ -1,2 +0,0 @@
1
- export { default } from './ConfirmationModal';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/ConfirmationModal/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA"}
@@ -1,28 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { BottomSheetProps } from 'alex.chus-react-spring-bottom-sheet';
3
- import { IFontFamilyProps, IPlatformProps, TStyles } from '../../constants';
4
- export interface IConfirmationModalProps extends IPlatformProps, IFontFamilyProps {
5
- isModalOpen: boolean;
6
- isClosableOutside?: boolean;
7
- isCloseIconHidden?: boolean;
8
- isConfirmLoading?: boolean;
9
- isCancelLoading?: boolean;
10
- title?: string;
11
- text: ReactNode;
12
- cancelButtonName?: string;
13
- confirmButtonName: string;
14
- cancelButtonFunction: () => void;
15
- confirmButtonFunction: (option?: any) => void;
16
- handleCloseModal?: () => void;
17
- popupClassName?: string;
18
- className?: string;
19
- popupStyles?: TStyles;
20
- styles?: TStyles;
21
- titleStyles?: TStyles;
22
- iconColor?: string;
23
- backgroundColor?: string;
24
- buttonsDirection?: 'row' | 'column';
25
- isBottomSheet?: boolean;
26
- isDisabledBottomSheet?: boolean;
27
- bottomSheetProps?: Partial<BottomSheetProps>;
28
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/ConfirmationModal/types.ts"],"names":[],"mappings":""}
@@ -1,4 +0,0 @@
1
- import { IContextMenuProps } from './types';
2
- import '../../styles/styles.scss';
3
- declare const ContextMenu: <T>({ fontFamily, isMenuOpen, isClickForbidden, isCloseOnItemClick, position: { x, y }, menuWidth, containerClassName, menuClassName, itemClassName, containerStyles, menuStyles, itemStyles, items, closeMenu, platform, actionData, topSlot, }: IContextMenuProps<T>) => import("react/jsx-runtime").JSX.Element | null;
4
- export default ContextMenu;