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

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 (535) hide show
  1. package/build/main/assets/icons/accepted-invite-status.svg +4 -0
  2. package/build/main/assets/icons/arrow-back.svg +3 -0
  3. package/build/main/assets/icons/arrow-down.svg +3 -0
  4. package/build/main/assets/icons/arrow-up.svg +3 -0
  5. package/build/main/assets/icons/attachment-loader.svg +3 -0
  6. package/build/main/assets/icons/avatar-loader.svg +3 -0
  7. package/build/main/assets/icons/button-loader.svg +3 -0
  8. package/build/main/assets/icons/calendar-arrow-next.svg +3 -0
  9. package/build/main/assets/icons/calendar-arrow-prev.svg +3 -0
  10. package/build/main/assets/icons/check-mark-square.svg +4 -0
  11. package/build/main/assets/icons/check-mark.svg +4 -0
  12. package/build/main/assets/icons/chevron.svg +3 -0
  13. package/build/main/assets/icons/chip-info.svg +5 -0
  14. package/build/main/assets/icons/clear.svg +3 -0
  15. package/build/main/assets/icons/close-modal.svg +3 -0
  16. package/build/main/assets/icons/close-stories.svg +4 -0
  17. package/build/main/assets/icons/close.svg +3 -0
  18. package/build/main/assets/icons/contact-info.svg +5 -0
  19. package/build/main/assets/icons/copy.svg +3 -0
  20. package/build/main/assets/icons/corporate-user.svg +3 -0
  21. package/build/main/assets/icons/crown.svg +5 -0
  22. package/build/main/assets/icons/declined-invite-status.svg +4 -0
  23. package/build/main/assets/icons/delete-chip.svg +3 -0
  24. package/build/main/assets/icons/department.svg +3 -0
  25. package/build/main/assets/icons/distribution.svg +12 -0
  26. package/build/main/assets/icons/doc-small.svg +11 -0
  27. package/build/main/assets/icons/doc.svg +11 -0
  28. package/build/main/assets/icons/download.svg +3 -0
  29. package/build/main/assets/icons/error.svg +5 -0
  30. package/build/main/assets/icons/external-link.svg +3 -0
  31. package/build/main/assets/icons/eye-off.svg +5 -0
  32. package/build/main/assets/icons/eye-on.svg +4 -0
  33. package/build/main/assets/icons/file-small.svg +11 -0
  34. package/build/main/assets/icons/file.svg +11 -0
  35. package/build/main/assets/icons/global-address-book-user.svg +4 -0
  36. package/build/main/assets/icons/group.svg +3 -0
  37. package/build/main/assets/icons/image-no-preview-small.svg +11 -0
  38. package/build/main/assets/icons/image-no-preview.svg +11 -0
  39. package/build/main/assets/icons/indeterminate-check-mark-square.svg +4 -0
  40. package/build/main/assets/icons/info.svg +5 -0
  41. package/build/main/assets/icons/input-arrow-down.svg +3 -0
  42. package/build/main/assets/icons/input-arrow-up.svg +3 -0
  43. package/build/main/assets/icons/job-position.svg +3 -0
  44. package/build/main/assets/icons/loader.svg +3 -0
  45. package/build/main/assets/icons/logout.svg +4 -0
  46. package/build/main/assets/icons/magnifying-glass.svg +3 -0
  47. package/build/main/assets/icons/mail.svg +3 -0
  48. package/build/main/assets/icons/meeting-room.svg +3 -0
  49. package/build/main/assets/icons/more.svg +3 -0
  50. package/build/main/assets/icons/my-contacts-user.svg +3 -0
  51. package/build/main/assets/icons/needs-action-invite-status.svg +4 -0
  52. package/build/main/assets/icons/notification-close.svg +3 -0
  53. package/build/main/assets/icons/notification-error.svg +5 -0
  54. package/build/main/assets/icons/notification-failure-filled.svg +3 -0
  55. package/build/main/assets/icons/notification-failure.svg +3 -0
  56. package/build/main/assets/icons/notification-info-filled.svg +5 -0
  57. package/build/main/assets/icons/notification-info.svg +5 -0
  58. package/build/main/assets/icons/notification-success-filled.svg +4 -0
  59. package/build/main/assets/icons/notification-success.svg +4 -0
  60. package/build/main/assets/icons/office.svg +3 -0
  61. package/build/main/assets/icons/order.svg +6 -0
  62. package/build/main/assets/icons/pdf-small.svg +11 -0
  63. package/build/main/assets/icons/pdf.svg +11 -0
  64. package/build/main/assets/icons/play-small.svg +3 -0
  65. package/build/main/assets/icons/play.svg +3 -0
  66. package/build/main/assets/icons/plus.svg +4 -0
  67. package/build/main/assets/icons/ppt-small.svg +11 -0
  68. package/build/main/assets/icons/ppt.svg +11 -0
  69. package/build/main/assets/icons/private.svg +5 -0
  70. package/build/main/assets/icons/refresh.svg +3 -0
  71. package/build/main/assets/icons/remove.svg +3 -0
  72. package/build/main/assets/icons/search.svg +3 -0
  73. package/build/main/assets/icons/select-arrow-down.svg +3 -0
  74. package/build/main/assets/icons/select-arrow-up.svg +3 -0
  75. package/build/main/assets/icons/server.svg +3 -0
  76. package/build/main/assets/icons/story-loader.svg +3 -0
  77. package/build/main/assets/icons/tick.svg +10 -0
  78. package/build/main/assets/icons/trash.svg +3 -0
  79. package/build/main/assets/icons/txt-small.svg +11 -0
  80. package/build/main/assets/icons/txt.svg +11 -0
  81. package/build/main/assets/icons/video-no-preview-small.svg +11 -0
  82. package/build/main/assets/icons/video-no-preview.svg +11 -0
  83. package/build/main/assets/icons/warning-avatar.svg +4 -0
  84. package/build/main/assets/icons/xls-small.svg +11 -0
  85. package/build/main/assets/icons/xls.svg +11 -0
  86. package/build/main/assets/storybook/index.d.ts +27 -0
  87. package/build/main/assets/storybook/index.js +28 -0
  88. package/build/main/assets/storybook/index.js.map +1 -0
  89. package/build/main/constants/constants.d.ts +243 -0
  90. package/build/main/constants/constants.js +301 -0
  91. package/build/main/constants/constants.js.map +1 -0
  92. package/build/main/constants/index.d.ts +2 -0
  93. package/build/main/constants/index.js +3 -0
  94. package/build/main/constants/index.js.map +1 -0
  95. package/build/main/constants/types.d.ts +69 -0
  96. package/build/main/constants/types.js +2 -0
  97. package/build/main/constants/types.js.map +1 -0
  98. package/build/main/helpers/index.d.ts +33 -0
  99. package/build/main/helpers/index.js +204 -0
  100. package/build/main/helpers/index.js.map +1 -0
  101. package/build/main/hooks/useCharHintDisplay.d.ts +10 -0
  102. package/build/main/hooks/useCharHintDisplay.js +57 -0
  103. package/build/main/hooks/useCharHintDisplay.js.map +1 -0
  104. package/build/main/hooks/useMobileLongTap.d.ts +16 -0
  105. package/build/main/hooks/useMobileLongTap.js +65 -0
  106. package/build/main/hooks/useMobileLongTap.js.map +1 -0
  107. package/build/main/hooks/useModal.d.ts +30 -0
  108. package/build/main/hooks/useModal.js +275 -0
  109. package/build/main/hooks/useModal.js.map +1 -0
  110. package/build/main/index.d.ts +38 -0
  111. package/build/main/index.js +39 -0
  112. package/build/main/index.js.map +1 -0
  113. package/build/main/styles/index.d.ts +1 -0
  114. package/build/main/styles/index.js +2 -0
  115. package/build/main/styles/index.js.map +1 -0
  116. package/build/main/styles/main.js +0 -0
  117. package/build/main/styles/styles.scss +14 -0
  118. package/build/main//321/201omponents/ActionModal/ActionModal.d.ts +4 -0
  119. package/build/main//321/201omponents/ActionModal/ActionModal.js +53 -0
  120. package/build/main//321/201omponents/ActionModal/ActionModal.js.map +1 -0
  121. package/build/main//321/201omponents/ActionModal/index.d.ts +1 -0
  122. package/build/main//321/201omponents/ActionModal/index.js +2 -0
  123. package/build/main//321/201omponents/ActionModal/index.js.map +1 -0
  124. package/build/main//321/201omponents/ActionModal/types.d.ts +23 -0
  125. package/build/main//321/201omponents/ActionModal/types.js +2 -0
  126. package/build/main//321/201omponents/ActionModal/types.js.map +1 -0
  127. package/build/main//321/201omponents/AttachedFile/AttachedFile.d.ts +8 -0
  128. package/build/main//321/201omponents/AttachedFile/AttachedFile.js +201 -0
  129. package/build/main//321/201omponents/AttachedFile/AttachedFile.js.map +1 -0
  130. package/build/main//321/201omponents/AttachedFile/index.d.ts +1 -0
  131. package/build/main//321/201omponents/AttachedFile/index.js +2 -0
  132. package/build/main//321/201omponents/AttachedFile/index.js.map +1 -0
  133. package/build/main//321/201omponents/AttachedFile/types.d.ts +23 -0
  134. package/build/main//321/201omponents/AttachedFile/types.js +2 -0
  135. package/build/main//321/201omponents/AttachedFile/types.js.map +1 -0
  136. package/build/main//321/201omponents/Avatar/Avatar.d.ts +5 -0
  137. package/build/main//321/201omponents/Avatar/Avatar.js +254 -0
  138. package/build/main//321/201omponents/Avatar/Avatar.js.map +1 -0
  139. package/build/main//321/201omponents/Avatar/index.d.ts +1 -0
  140. package/build/main//321/201omponents/Avatar/index.js +2 -0
  141. package/build/main//321/201omponents/Avatar/index.js.map +1 -0
  142. package/build/main//321/201omponents/Avatar/types.d.ts +64 -0
  143. package/build/main//321/201omponents/Avatar/types.js +32 -0
  144. package/build/main//321/201omponents/Avatar/types.js.map +1 -0
  145. package/build/main//321/201omponents/Button/Button.d.ts +4 -0
  146. package/build/main//321/201omponents/Button/Button.js +68 -0
  147. package/build/main//321/201omponents/Button/Button.js.map +1 -0
  148. package/build/main//321/201omponents/Button/index.d.ts +1 -0
  149. package/build/main//321/201omponents/Button/index.js +2 -0
  150. package/build/main//321/201omponents/Button/index.js.map +1 -0
  151. package/build/main//321/201omponents/Button/types.d.ts +31 -0
  152. package/build/main//321/201omponents/Button/types.js +15 -0
  153. package/build/main//321/201omponents/Button/types.js.map +1 -0
  154. package/build/main//321/201omponents/CachedImage/CachedImage.d.ts +4 -0
  155. package/build/main//321/201omponents/CachedImage/CachedImage.js +59 -0
  156. package/build/main//321/201omponents/CachedImage/CachedImage.js.map +1 -0
  157. package/build/main//321/201omponents/CachedImage/helpers.d.ts +3 -0
  158. package/build/main//321/201omponents/CachedImage/helpers.js +40 -0
  159. package/build/main//321/201omponents/CachedImage/helpers.js.map +1 -0
  160. package/build/main//321/201omponents/CachedImage/index.d.ts +1 -0
  161. package/build/main//321/201omponents/CachedImage/index.js +2 -0
  162. package/build/main//321/201omponents/CachedImage/index.js.map +1 -0
  163. package/build/main//321/201omponents/CachedImage/types.d.ts +10 -0
  164. package/build/main//321/201omponents/CachedImage/types.js +2 -0
  165. package/build/main//321/201omponents/CachedImage/types.js.map +1 -0
  166. package/build/main//321/201omponents/Calendar/Calendar.d.ts +16 -0
  167. package/build/main//321/201omponents/Calendar/Calendar.js +294 -0
  168. package/build/main//321/201omponents/Calendar/Calendar.js.map +1 -0
  169. package/build/main//321/201omponents/Calendar/index.d.ts +1 -0
  170. package/build/main//321/201omponents/Calendar/index.js +2 -0
  171. package/build/main//321/201omponents/Calendar/index.js.map +1 -0
  172. package/build/main//321/201omponents/Calendar/types.d.ts +28 -0
  173. package/build/main//321/201omponents/Calendar/types.js +2 -0
  174. package/build/main//321/201omponents/Calendar/types.js.map +1 -0
  175. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.d.ts +4 -0
  176. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js +47 -0
  177. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js.map +1 -0
  178. package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.d.ts +4 -0
  179. package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.js +71 -0
  180. package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.js.map +1 -0
  181. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.d.ts +4 -0
  182. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js +42 -0
  183. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js.map +1 -0
  184. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.d.ts +4 -0
  185. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js +64 -0
  186. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js.map +1 -0
  187. package/build/main//321/201omponents/Charts/colors.d.ts +3 -0
  188. package/build/main//321/201omponents/Charts/colors.js +4 -0
  189. package/build/main//321/201omponents/Charts/colors.js.map +1 -0
  190. package/build/main//321/201omponents/Charts/constants.d.ts +42 -0
  191. package/build/main//321/201omponents/Charts/constants.js +42 -0
  192. package/build/main//321/201omponents/Charts/constants.js.map +1 -0
  193. package/build/main//321/201omponents/Charts/helpers.d.ts +17 -0
  194. package/build/main//321/201omponents/Charts/helpers.js +73 -0
  195. package/build/main//321/201omponents/Charts/helpers.js.map +1 -0
  196. package/build/main//321/201omponents/Charts/index.d.ts +3 -0
  197. package/build/main//321/201omponents/Charts/index.js +4 -0
  198. package/build/main//321/201omponents/Charts/index.js.map +1 -0
  199. package/build/main//321/201omponents/Charts/types.d.ts +89 -0
  200. package/build/main//321/201omponents/Charts/types.js +2 -0
  201. package/build/main//321/201omponents/Charts/types.js.map +1 -0
  202. package/build/main//321/201omponents/Charts/useEvents.d.ts +5 -0
  203. package/build/main//321/201omponents/Charts/useEvents.js +45 -0
  204. package/build/main//321/201omponents/Charts/useEvents.js.map +1 -0
  205. package/build/main//321/201omponents/Charts/usePieEvents.d.ts +6 -0
  206. package/build/main//321/201omponents/Charts/usePieEvents.js +57 -0
  207. package/build/main//321/201omponents/Charts/usePieEvents.js.map +1 -0
  208. package/build/main//321/201omponents/Checkbox/Checkbox.d.ts +8 -0
  209. package/build/main//321/201omponents/Checkbox/Checkbox.js +48 -0
  210. package/build/main//321/201omponents/Checkbox/Checkbox.js.map +1 -0
  211. package/build/main//321/201omponents/Checkbox/index.d.ts +1 -0
  212. package/build/main//321/201omponents/Checkbox/index.js +2 -0
  213. package/build/main//321/201omponents/Checkbox/index.js.map +1 -0
  214. package/build/main//321/201omponents/Checkbox/types.d.ts +14 -0
  215. package/build/main//321/201omponents/Checkbox/types.js +2 -0
  216. package/build/main//321/201omponents/Checkbox/types.js.map +1 -0
  217. package/build/main//321/201omponents/Chip/Chip.d.ts +5 -0
  218. package/build/main//321/201omponents/Chip/Chip.js +288 -0
  219. package/build/main//321/201omponents/Chip/Chip.js.map +1 -0
  220. package/build/main//321/201omponents/Chip/index.d.ts +1 -0
  221. package/build/main//321/201omponents/Chip/index.js +2 -0
  222. package/build/main//321/201omponents/Chip/index.js.map +1 -0
  223. package/build/main//321/201omponents/Chip/types.d.ts +39 -0
  224. package/build/main//321/201omponents/Chip/types.js +2 -0
  225. package/build/main//321/201omponents/Chip/types.js.map +1 -0
  226. package/build/main//321/201omponents/ChipDndContext/ChipDndContext.d.ts +13 -0
  227. package/build/main//321/201omponents/ChipDndContext/ChipDndContext.js +76 -0
  228. package/build/main//321/201omponents/ChipDndContext/ChipDndContext.js.map +1 -0
  229. package/build/main//321/201omponents/ChipDndContext/index.d.ts +1 -0
  230. package/build/main//321/201omponents/ChipDndContext/index.js +2 -0
  231. package/build/main//321/201omponents/ChipDndContext/index.js.map +1 -0
  232. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.d.ts +4 -0
  233. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js +64 -0
  234. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js.map +1 -0
  235. package/build/main//321/201omponents/ConfirmationModal/index.d.ts +1 -0
  236. package/build/main//321/201omponents/ConfirmationModal/index.js +2 -0
  237. package/build/main//321/201omponents/ConfirmationModal/index.js.map +1 -0
  238. package/build/main//321/201omponents/ConfirmationModal/types.d.ts +31 -0
  239. package/build/main//321/201omponents/ConfirmationModal/types.js +2 -0
  240. package/build/main//321/201omponents/ConfirmationModal/types.js.map +1 -0
  241. package/build/main//321/201omponents/ContextMenu/ContextMenu.d.ts +4 -0
  242. package/build/main//321/201omponents/ContextMenu/ContextMenu.js +122 -0
  243. package/build/main//321/201omponents/ContextMenu/ContextMenu.js.map +1 -0
  244. package/build/main//321/201omponents/ContextMenu/index.d.ts +1 -0
  245. package/build/main//321/201omponents/ContextMenu/index.js +2 -0
  246. package/build/main//321/201omponents/ContextMenu/index.js.map +1 -0
  247. package/build/main//321/201omponents/ContextMenu/types.d.ts +41 -0
  248. package/build/main//321/201omponents/ContextMenu/types.js +2 -0
  249. package/build/main//321/201omponents/ContextMenu/types.js.map +1 -0
  250. package/build/main//321/201omponents/ContextMenuItem/ContextMenuItem.d.ts +4 -0
  251. package/build/main//321/201omponents/ContextMenuItem/ContextMenuItem.js +49 -0
  252. package/build/main//321/201omponents/ContextMenuItem/ContextMenuItem.js.map +1 -0
  253. package/build/main//321/201omponents/ContextMenuItem/index.d.ts +1 -0
  254. package/build/main//321/201omponents/ContextMenuItem/index.js +2 -0
  255. package/build/main//321/201omponents/ContextMenuItem/index.js.map +1 -0
  256. package/build/main//321/201omponents/ContextMenuItem/types.d.ts +28 -0
  257. package/build/main//321/201omponents/ContextMenuItem/types.js +6 -0
  258. package/build/main//321/201omponents/ContextMenuItem/types.js.map +1 -0
  259. package/build/main//321/201omponents/CustomSelect/CustomSelect.d.ts +12 -0
  260. package/build/main//321/201omponents/CustomSelect/CustomSelect.js +281 -0
  261. package/build/main//321/201omponents/CustomSelect/CustomSelect.js.map +1 -0
  262. package/build/main//321/201omponents/CustomSelect/index.d.ts +1 -0
  263. package/build/main//321/201omponents/CustomSelect/index.js +2 -0
  264. package/build/main//321/201omponents/CustomSelect/index.js.map +1 -0
  265. package/build/main//321/201omponents/CustomSelect/selectStyles.d.ts +16 -0
  266. package/build/main//321/201omponents/CustomSelect/selectStyles.js +77 -0
  267. package/build/main//321/201omponents/CustomSelect/selectStyles.js.map +1 -0
  268. package/build/main//321/201omponents/CustomSelect/types.d.ts +86 -0
  269. package/build/main//321/201omponents/CustomSelect/types.js +2 -0
  270. package/build/main//321/201omponents/CustomSelect/types.js.map +1 -0
  271. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.d.ts +4 -0
  272. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js +67 -0
  273. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js.map +1 -0
  274. package/build/main//321/201omponents/CustomSelectProfiles/index.d.ts +1 -0
  275. package/build/main//321/201omponents/CustomSelectProfiles/index.js +2 -0
  276. package/build/main//321/201omponents/CustomSelectProfiles/index.js.map +1 -0
  277. package/build/main//321/201omponents/CustomSelectProfiles/selectStyles.d.ts +12 -0
  278. package/build/main//321/201omponents/CustomSelectProfiles/selectStyles.js +41 -0
  279. package/build/main//321/201omponents/CustomSelectProfiles/selectStyles.js.map +1 -0
  280. package/build/main//321/201omponents/CustomSelectProfiles/types.d.ts +13 -0
  281. package/build/main//321/201omponents/CustomSelectProfiles/types.js +2 -0
  282. package/build/main//321/201omponents/CustomSelectProfiles/types.js.map +1 -0
  283. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.d.ts +4 -0
  284. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js +57 -0
  285. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js.map +1 -0
  286. package/build/main//321/201omponents/DragAndDrop/index.d.ts +1 -0
  287. package/build/main//321/201omponents/DragAndDrop/index.js +2 -0
  288. package/build/main//321/201omponents/DragAndDrop/index.js.map +1 -0
  289. package/build/main//321/201omponents/DragAndDrop/types.d.ts +24 -0
  290. package/build/main//321/201omponents/DragAndDrop/types.js +2 -0
  291. package/build/main//321/201omponents/DragAndDrop/types.js.map +1 -0
  292. package/build/main//321/201omponents/DraggablePopup/DraggablePopup.d.ts +4 -0
  293. package/build/main//321/201omponents/DraggablePopup/DraggablePopup.js +228 -0
  294. package/build/main//321/201omponents/DraggablePopup/DraggablePopup.js.map +1 -0
  295. package/build/main//321/201omponents/DraggablePopup/index.d.ts +1 -0
  296. package/build/main//321/201omponents/DraggablePopup/index.js +2 -0
  297. package/build/main//321/201omponents/DraggablePopup/index.js.map +1 -0
  298. package/build/main//321/201omponents/DraggablePopup/types.d.ts +90 -0
  299. package/build/main//321/201omponents/DraggablePopup/types.js +2 -0
  300. package/build/main//321/201omponents/DraggablePopup/types.js.map +1 -0
  301. package/build/main//321/201omponents/Error/Error.d.ts +4 -0
  302. package/build/main//321/201omponents/Error/Error.js +23 -0
  303. package/build/main//321/201omponents/Error/Error.js.map +1 -0
  304. package/build/main//321/201omponents/Error/index.d.ts +1 -0
  305. package/build/main//321/201omponents/Error/index.js +2 -0
  306. package/build/main//321/201omponents/Error/index.js.map +1 -0
  307. package/build/main//321/201omponents/Error/types.d.ts +10 -0
  308. package/build/main//321/201omponents/Error/types.js +2 -0
  309. package/build/main//321/201omponents/Error/types.js.map +1 -0
  310. package/build/main//321/201omponents/Flex/Flex.d.ts +2 -0
  311. package/build/main//321/201omponents/Flex/Flex.js +35 -0
  312. package/build/main//321/201omponents/Flex/Flex.js.map +1 -0
  313. package/build/main//321/201omponents/Flex/HFlex/HFlex.d.ts +5 -0
  314. package/build/main//321/201omponents/Flex/HFlex/HFlex.js +16 -0
  315. package/build/main//321/201omponents/Flex/HFlex/HFlex.js.map +1 -0
  316. package/build/main//321/201omponents/Flex/HFlex/index.d.ts +1 -0
  317. package/build/main//321/201omponents/Flex/HFlex/index.js +2 -0
  318. package/build/main//321/201omponents/Flex/HFlex/index.js.map +1 -0
  319. package/build/main//321/201omponents/Flex/VFlex/VFlex.d.ts +5 -0
  320. package/build/main//321/201omponents/Flex/VFlex/VFlex.js +16 -0
  321. package/build/main//321/201omponents/Flex/VFlex/VFlex.js.map +1 -0
  322. package/build/main//321/201omponents/Flex/VFlex/index.d.ts +1 -0
  323. package/build/main//321/201omponents/Flex/VFlex/index.js +2 -0
  324. package/build/main//321/201omponents/Flex/VFlex/index.js.map +1 -0
  325. package/build/main//321/201omponents/Flex/index.d.ts +3 -0
  326. package/build/main//321/201omponents/Flex/index.js +4 -0
  327. package/build/main//321/201omponents/Flex/index.js.map +1 -0
  328. package/build/main//321/201omponents/Flex/types.d.ts +21 -0
  329. package/build/main//321/201omponents/Flex/types.js +2 -0
  330. package/build/main//321/201omponents/Flex/types.js.map +1 -0
  331. package/build/main//321/201omponents/Header/Header.d.ts +5 -0
  332. package/build/main//321/201omponents/Header/Header.js +125 -0
  333. package/build/main//321/201omponents/Header/Header.js.map +1 -0
  334. package/build/main//321/201omponents/Header/index.d.ts +1 -0
  335. package/build/main//321/201omponents/Header/index.js +2 -0
  336. package/build/main//321/201omponents/Header/index.js.map +1 -0
  337. package/build/main//321/201omponents/Header/types.d.ts +47 -0
  338. package/build/main//321/201omponents/Header/types.js +2 -0
  339. package/build/main//321/201omponents/Header/types.js.map +1 -0
  340. package/build/main//321/201omponents/Input/Input.d.ts +4 -0
  341. package/build/main//321/201omponents/Input/Input.js +256 -0
  342. package/build/main//321/201omponents/Input/Input.js.map +1 -0
  343. package/build/main//321/201omponents/Input/index.d.ts +1 -0
  344. package/build/main//321/201omponents/Input/index.js +2 -0
  345. package/build/main//321/201omponents/Input/index.js.map +1 -0
  346. package/build/main//321/201omponents/Input/types.d.ts +37 -0
  347. package/build/main//321/201omponents/Input/types.js +2 -0
  348. package/build/main//321/201omponents/Input/types.js.map +1 -0
  349. package/build/main//321/201omponents/ListItem/ListItem.d.ts +23 -0
  350. package/build/main//321/201omponents/ListItem/ListItem.js +214 -0
  351. package/build/main//321/201omponents/ListItem/ListItem.js.map +1 -0
  352. package/build/main//321/201omponents/ListItem/index.d.ts +1 -0
  353. package/build/main//321/201omponents/ListItem/index.js +2 -0
  354. package/build/main//321/201omponents/ListItem/index.js.map +1 -0
  355. package/build/main//321/201omponents/ListItem/types.d.ts +47 -0
  356. package/build/main//321/201omponents/ListItem/types.js +2 -0
  357. package/build/main//321/201omponents/ListItem/types.js.map +1 -0
  358. package/build/main//321/201omponents/Loader/Loader.d.ts +4 -0
  359. package/build/main//321/201omponents/Loader/Loader.js +44 -0
  360. package/build/main//321/201omponents/Loader/Loader.js.map +1 -0
  361. package/build/main//321/201omponents/Loader/index.d.ts +1 -0
  362. package/build/main//321/201omponents/Loader/index.js +2 -0
  363. package/build/main//321/201omponents/Loader/index.js.map +1 -0
  364. package/build/main//321/201omponents/Loader/types.d.ts +18 -0
  365. package/build/main//321/201omponents/Loader/types.js +2 -0
  366. package/build/main//321/201omponents/Loader/types.js.map +1 -0
  367. package/build/main//321/201omponents/Modal/Modal.d.ts +5 -0
  368. package/build/main//321/201omponents/Modal/Modal.js +397 -0
  369. package/build/main//321/201omponents/Modal/Modal.js.map +1 -0
  370. package/build/main//321/201omponents/Modal/index.d.ts +1 -0
  371. package/build/main//321/201omponents/Modal/index.js +2 -0
  372. package/build/main//321/201omponents/Modal/index.js.map +1 -0
  373. package/build/main//321/201omponents/Modal/types.d.ts +77 -0
  374. package/build/main//321/201omponents/Modal/types.js +2 -0
  375. package/build/main//321/201omponents/Modal/types.js.map +1 -0
  376. package/build/main//321/201omponents/Notification/Notification.d.ts +4 -0
  377. package/build/main//321/201omponents/Notification/Notification.js +208 -0
  378. package/build/main//321/201omponents/Notification/Notification.js.map +1 -0
  379. package/build/main//321/201omponents/Notification/constants.d.ts +34 -0
  380. package/build/main//321/201omponents/Notification/constants.js +59 -0
  381. package/build/main//321/201omponents/Notification/constants.js.map +1 -0
  382. package/build/main//321/201omponents/Notification/index.d.ts +1 -0
  383. package/build/main//321/201omponents/Notification/index.js +2 -0
  384. package/build/main//321/201omponents/Notification/index.js.map +1 -0
  385. package/build/main//321/201omponents/Notification/types.d.ts +64 -0
  386. package/build/main//321/201omponents/Notification/types.js +2 -0
  387. package/build/main//321/201omponents/Notification/types.js.map +1 -0
  388. package/build/main//321/201omponents/Profile/Profile.d.ts +4 -0
  389. package/build/main//321/201omponents/Profile/Profile.js +42 -0
  390. package/build/main//321/201omponents/Profile/Profile.js.map +1 -0
  391. package/build/main//321/201omponents/Profile/index.d.ts +1 -0
  392. package/build/main//321/201omponents/Profile/index.js +2 -0
  393. package/build/main//321/201omponents/Profile/index.js.map +1 -0
  394. package/build/main//321/201omponents/Profile/types.d.ts +14 -0
  395. package/build/main//321/201omponents/Profile/types.js +2 -0
  396. package/build/main//321/201omponents/Profile/types.js.map +1 -0
  397. package/build/main//321/201omponents/ProgressBar/ProgressBar.d.ts +4 -0
  398. package/build/main//321/201omponents/ProgressBar/ProgressBar.js +66 -0
  399. package/build/main//321/201omponents/ProgressBar/ProgressBar.js.map +1 -0
  400. package/build/main//321/201omponents/ProgressBar/index.d.ts +1 -0
  401. package/build/main//321/201omponents/ProgressBar/index.js +2 -0
  402. package/build/main//321/201omponents/ProgressBar/index.js.map +1 -0
  403. package/build/main//321/201omponents/ProgressBar/types.d.ts +7 -0
  404. package/build/main//321/201omponents/ProgressBar/types.js +2 -0
  405. package/build/main//321/201omponents/ProgressBar/types.js.map +1 -0
  406. package/build/main//321/201omponents/RadioButton/RadioButton.d.ts +4 -0
  407. package/build/main//321/201omponents/RadioButton/RadioButton.js +33 -0
  408. package/build/main//321/201omponents/RadioButton/RadioButton.js.map +1 -0
  409. package/build/main//321/201omponents/RadioButton/index.d.ts +1 -0
  410. package/build/main//321/201omponents/RadioButton/index.js +2 -0
  411. package/build/main//321/201omponents/RadioButton/index.js.map +1 -0
  412. package/build/main//321/201omponents/RadioButton/types.d.ts +12 -0
  413. package/build/main//321/201omponents/RadioButton/types.js +2 -0
  414. package/build/main//321/201omponents/RadioButton/types.js.map +1 -0
  415. package/build/main//321/201omponents/ScrollBar/ScrollBar.d.ts +5 -0
  416. package/build/main//321/201omponents/ScrollBar/ScrollBar.js +140 -0
  417. package/build/main//321/201omponents/ScrollBar/ScrollBar.js.map +1 -0
  418. package/build/main//321/201omponents/ScrollBar/index.d.ts +1 -0
  419. package/build/main//321/201omponents/ScrollBar/index.js +2 -0
  420. package/build/main//321/201omponents/ScrollBar/index.js.map +1 -0
  421. package/build/main//321/201omponents/ScrollBar/types.d.ts +24 -0
  422. package/build/main//321/201omponents/ScrollBar/types.js +2 -0
  423. package/build/main//321/201omponents/ScrollBar/types.js.map +1 -0
  424. package/build/main//321/201omponents/Skeleton/Skeleton.d.ts +4 -0
  425. package/build/main//321/201omponents/Skeleton/Skeleton.js +59 -0
  426. package/build/main//321/201omponents/Skeleton/Skeleton.js.map +1 -0
  427. package/build/main//321/201omponents/Skeleton/index.d.ts +1 -0
  428. package/build/main//321/201omponents/Skeleton/index.js +2 -0
  429. package/build/main//321/201omponents/Skeleton/index.js.map +1 -0
  430. package/build/main//321/201omponents/Skeleton/types.d.ts +17 -0
  431. package/build/main//321/201omponents/Skeleton/types.js +2 -0
  432. package/build/main//321/201omponents/Skeleton/types.js.map +1 -0
  433. package/build/main//321/201omponents/Stories/Stories.d.ts +4 -0
  434. package/build/main//321/201omponents/Stories/Stories.js +406 -0
  435. package/build/main//321/201omponents/Stories/Stories.js.map +1 -0
  436. package/build/main//321/201omponents/Stories/index.d.ts +1 -0
  437. package/build/main//321/201omponents/Stories/index.js +2 -0
  438. package/build/main//321/201omponents/Stories/index.js.map +1 -0
  439. package/build/main//321/201omponents/Stories/types.d.ts +71 -0
  440. package/build/main//321/201omponents/Stories/types.js +16 -0
  441. package/build/main//321/201omponents/Stories/types.js.map +1 -0
  442. package/build/main//321/201omponents/Switcher/Switcher.d.ts +4 -0
  443. package/build/main//321/201omponents/Switcher/Switcher.js +34 -0
  444. package/build/main//321/201omponents/Switcher/Switcher.js.map +1 -0
  445. package/build/main//321/201omponents/Switcher/index.d.ts +1 -0
  446. package/build/main//321/201omponents/Switcher/index.js +2 -0
  447. package/build/main//321/201omponents/Switcher/index.js.map +1 -0
  448. package/build/main//321/201omponents/Switcher/types.d.ts +8 -0
  449. package/build/main//321/201omponents/Switcher/types.js +2 -0
  450. package/build/main//321/201omponents/Switcher/types.js.map +1 -0
  451. package/build/main//321/201omponents/SyncLoader/SyncLoader.d.ts +5 -0
  452. package/build/main//321/201omponents/SyncLoader/SyncLoader.js +65 -0
  453. package/build/main//321/201omponents/SyncLoader/SyncLoader.js.map +1 -0
  454. package/build/main//321/201omponents/SyncLoader/index.d.ts +1 -0
  455. package/build/main//321/201omponents/SyncLoader/index.js +2 -0
  456. package/build/main//321/201omponents/SyncLoader/index.js.map +1 -0
  457. package/build/main//321/201omponents/SyncLoader/types.d.ts +8 -0
  458. package/build/main//321/201omponents/SyncLoader/types.js +2 -0
  459. package/build/main//321/201omponents/SyncLoader/types.js.map +1 -0
  460. package/build/main//321/201omponents/Textarea/Textarea.d.ts +4 -0
  461. package/build/main//321/201omponents/Textarea/Textarea.js +59 -0
  462. package/build/main//321/201omponents/Textarea/Textarea.js.map +1 -0
  463. package/build/main//321/201omponents/Textarea/index.d.ts +1 -0
  464. package/build/main//321/201omponents/Textarea/index.js +2 -0
  465. package/build/main//321/201omponents/Textarea/index.js.map +1 -0
  466. package/build/main//321/201omponents/Textarea/types.d.ts +13 -0
  467. package/build/main//321/201omponents/Textarea/types.js +2 -0
  468. package/build/main//321/201omponents/Textarea/types.js.map +1 -0
  469. package/build/main//321/201omponents/Toggle/Toggle.d.ts +4 -0
  470. package/build/main//321/201omponents/Toggle/Toggle.js +35 -0
  471. package/build/main//321/201omponents/Toggle/Toggle.js.map +1 -0
  472. package/build/main//321/201omponents/Toggle/index.d.ts +1 -0
  473. package/build/main//321/201omponents/Toggle/index.js +2 -0
  474. package/build/main//321/201omponents/Toggle/index.js.map +1 -0
  475. package/build/main//321/201omponents/Toggle/types.d.ts +12 -0
  476. package/build/main//321/201omponents/Toggle/types.js +2 -0
  477. package/build/main//321/201omponents/Toggle/types.js.map +1 -0
  478. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.d.ts +4 -0
  479. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js +40 -0
  480. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js.map +1 -0
  481. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.d.ts +4 -0
  482. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js +98 -0
  483. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js.map +1 -0
  484. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.d.ts +5 -0
  485. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js +24 -0
  486. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js.map +1 -0
  487. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.d.ts +4 -0
  488. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js +104 -0
  489. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js.map +1 -0
  490. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.d.ts +4 -0
  491. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js +133 -0
  492. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js.map +1 -0
  493. package/build/main//321/201omponents/UserDropdown/Option/Option.d.ts +4 -0
  494. package/build/main//321/201omponents/UserDropdown/Option/Option.js +85 -0
  495. package/build/main//321/201omponents/UserDropdown/Option/Option.js.map +1 -0
  496. package/build/main//321/201omponents/UserDropdown/SearchInCatalogButton/SearchInCatalogButton.d.ts +4 -0
  497. package/build/main//321/201omponents/UserDropdown/SearchInCatalogButton/SearchInCatalogButton.js +41 -0
  498. package/build/main//321/201omponents/UserDropdown/SearchInCatalogButton/SearchInCatalogButton.js.map +1 -0
  499. package/build/main//321/201omponents/UserDropdown/UserDropdown.d.ts +5 -0
  500. package/build/main//321/201omponents/UserDropdown/UserDropdown.js +527 -0
  501. package/build/main//321/201omponents/UserDropdown/UserDropdown.js.map +1 -0
  502. package/build/main//321/201omponents/UserDropdown/components/Delimiter.d.ts +8 -0
  503. package/build/main//321/201omponents/UserDropdown/components/Delimiter.js +10 -0
  504. package/build/main//321/201omponents/UserDropdown/components/Delimiter.js.map +1 -0
  505. package/build/main//321/201omponents/UserDropdown/components/Hint.d.ts +6 -0
  506. package/build/main//321/201omponents/UserDropdown/components/Hint.js +21 -0
  507. package/build/main//321/201omponents/UserDropdown/components/Hint.js.map +1 -0
  508. package/build/main//321/201omponents/UserDropdown/components/Input.d.ts +2 -0
  509. package/build/main//321/201omponents/UserDropdown/components/Input.js +24 -0
  510. package/build/main//321/201omponents/UserDropdown/components/Input.js.map +1 -0
  511. package/build/main//321/201omponents/UserDropdown/components/Mask.d.ts +8 -0
  512. package/build/main//321/201omponents/UserDropdown/components/Mask.js +19 -0
  513. package/build/main//321/201omponents/UserDropdown/components/Mask.js.map +1 -0
  514. package/build/main//321/201omponents/UserDropdown/components/Title.d.ts +5 -0
  515. package/build/main//321/201omponents/UserDropdown/components/Title.js +18 -0
  516. package/build/main//321/201omponents/UserDropdown/components/Title.js.map +1 -0
  517. package/build/main//321/201omponents/UserDropdown/constants.d.ts +65 -0
  518. package/build/main//321/201omponents/UserDropdown/constants.js +83 -0
  519. package/build/main//321/201omponents/UserDropdown/constants.js.map +1 -0
  520. package/build/main//321/201omponents/UserDropdown/helpers.d.ts +148 -0
  521. package/build/main//321/201omponents/UserDropdown/helpers.js +313 -0
  522. package/build/main//321/201omponents/UserDropdown/helpers.js.map +1 -0
  523. package/build/main//321/201omponents/UserDropdown/index.d.ts +1 -0
  524. package/build/main//321/201omponents/UserDropdown/index.js +2 -0
  525. package/build/main//321/201omponents/UserDropdown/index.js.map +1 -0
  526. package/build/main//321/201omponents/UserDropdown/selectStyles.d.ts +15 -0
  527. package/build/main//321/201omponents/UserDropdown/selectStyles.js +99 -0
  528. package/build/main//321/201omponents/UserDropdown/selectStyles.js.map +1 -0
  529. package/build/main//321/201omponents/UserDropdown/types.d.ts +356 -0
  530. package/build/main//321/201omponents/UserDropdown/types.js +2 -0
  531. package/build/main//321/201omponents/UserDropdown/types.js.map +1 -0
  532. package/build/main//321/201omponents/types.d.ts +2 -0
  533. package/build/main//321/201omponents/types.js +2 -0
  534. package/build/main//321/201omponents/types.js.map +1 -0
  535. package/package.json +13 -8
@@ -0,0 +1,64 @@
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, bottomSheetDetent = _a.bottomSheetDetent, bottomSheetStyles = _a.bottomSheetStyles;
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
+ bottomSheetDetent: bottomSheetDetent,
43
+ bottomSheetStyles: bottomSheetStyles,
44
+ bottomSheetProps: bottomSheetProps,
45
+ }), shouldUseBottomSheet = _j.shouldUseBottomSheet, renderModal = _j.renderModal;
46
+ var additionalClassName = generateBottomSheetClassName(platform, shouldUseBottomSheet);
47
+ useEffect(function () {
48
+ var checkIfClickedOutside = function (_a) {
49
+ var target = _a.target;
50
+ var refCurrent = ref.current;
51
+ if (isModalOpen && isClosableOutside && refCurrent && !refCurrent.contains(target))
52
+ cancelFunction();
53
+ };
54
+ document === null || document === void 0 ? void 0 : document.addEventListener(EVENT_LISTENER_TYPES.click, checkIfClickedOutside, true);
55
+ return function () { return document === null || document === void 0 ? void 0 : document.removeEventListener(EVENT_LISTENER_TYPES.click, checkIfClickedOutside, true); };
56
+ // eslint-disable-next-line react-hooks/exhaustive-deps
57
+ }, [isModalOpen, isClosableOutside]);
58
+ 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), {
59
+ 'smartapp-confirmation-modal__content--buttons__column-reverse': buttonsDirection === MODAL_BUTTONS_DIRECTION.column,
60
+ }) }, { 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 })] }))] })) })));
61
+ return renderModal(modalContent);
62
+ };
63
+ export default ConfirmationModal;
64
+ //# sourceMappingURL=ConfirmationModal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConfirmationModal.js","sourceRoot":"","sources":["../../../../src/сomponents/ConfirmationModal/ConfirmationModal.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAiB,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAC/D,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAC/C,OAAO,MAAM,MAAM,WAAW,CAAA;AAC9B,OAAO,EACL,4BAA4B,EAC5B,kBAAkB,EAClB,aAAa,EACb,uBAAuB,EACvB,yBAAyB,EACzB,oBAAoB,GACrB,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,MAAM,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,QAAQ,EAAW,MAAM,iBAAiB,CAAA;AAC1G,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAEhD,OAAO,EAAE,cAAc,IAAI,SAAS,EAAE,MAAM,oCAAoC,CAAA;AAChF,OAAO,0BAA0B,CAAA;AAEjC,IAAM,iBAAiB,GAAG,UAAC,EA4BD;QA3BxB,WAAW,iBAAA,EACX,yBAAwB,EAAxB,iBAAiB,mBAAG,IAAI,KAAA,EACxB,wBAAwB,EAAxB,gBAAgB,mBAAG,KAAK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AAO,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"}
@@ -0,0 +1 @@
1
+ export { default } from './ConfirmationModal';
@@ -0,0 +1,2 @@
1
+ export { default } from './ConfirmationModal';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/ConfirmationModal/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA"}
@@ -0,0 +1,31 @@
1
+ import { ReactNode } from 'react';
2
+ import { SheetDetent } from 'react-modal-sheet';
3
+ import { IFontFamilyProps, IPlatformProps, TStyles } from '../../constants';
4
+ import { TBottomSheetProps, TBottomSheetStyles } from '../Modal/types';
5
+ export interface IConfirmationModalProps extends IPlatformProps, IFontFamilyProps {
6
+ isModalOpen: boolean;
7
+ isClosableOutside?: boolean;
8
+ isCloseIconHidden?: boolean;
9
+ isConfirmLoading?: boolean;
10
+ isCancelLoading?: boolean;
11
+ title?: string;
12
+ text: ReactNode;
13
+ cancelButtonName?: string;
14
+ confirmButtonName: string;
15
+ cancelButtonFunction: () => void;
16
+ confirmButtonFunction: (option?: any) => void;
17
+ handleCloseModal?: () => void;
18
+ popupClassName?: string;
19
+ className?: string;
20
+ popupStyles?: TStyles;
21
+ styles?: TStyles;
22
+ titleStyles?: TStyles;
23
+ iconColor?: string;
24
+ backgroundColor?: string;
25
+ buttonsDirection?: 'row' | 'column';
26
+ isBottomSheet?: boolean;
27
+ isDisabledBottomSheet?: boolean;
28
+ bottomSheetProps?: TBottomSheetProps;
29
+ bottomSheetStyles?: TBottomSheetStyles;
30
+ bottomSheetDetent?: SheetDetent;
31
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/ConfirmationModal/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
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, isTopSlotFixed, maxHeight, isMenuOverflowAuto, }: IContextMenuProps<T>) => import("react/jsx-runtime").JSX.Element | null;
4
+ export default ContextMenu;
@@ -0,0 +1,122 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
23
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
+ import { useLayoutEffect, useRef, useState } from 'react';
25
+ import classNames from 'classnames';
26
+ import ContextMenuItem from '../ContextMenuItem';
27
+ import { checkIsWebPlatform, generateFontFamilyStyle } from '../../helpers';
28
+ import { CONTEXT_MENU_SAFE_SPACE, FIT_CONTENT, PLATFORM } from '../../constants';
29
+ import '../../styles/styles.scss';
30
+ var AUTO_OVERFLOW_VALUE = 'auto';
31
+ var MAX_CONTENT = 'max-content';
32
+ var ContextMenu = function (_a) {
33
+ var _b, _c;
34
+ var fontFamily = _a.fontFamily, isMenuOpen = _a.isMenuOpen, _d = _a.isClickForbidden, isClickForbidden = _d === void 0 ? false : _d, _e = _a.isCloseOnItemClick, isCloseOnItemClick = _e === void 0 ? true : _e, _f = _a.position, x = _f.x, y = _f.y, menuWidth = _a.menuWidth, containerClassName = _a.containerClassName, menuClassName = _a.menuClassName, itemClassName = _a.itemClassName, containerStyles = _a.containerStyles, _g = _a.menuStyles, menuStyles = _g === void 0 ? {} : _g, _h = _a.itemStyles, itemStyles = _h === void 0 ? {} : _h, items = _a.items, closeMenu = _a.closeMenu, _j = _a.platform, platform = _j === void 0 ? PLATFORM.web : _j, actionData = _a.actionData, topSlot = _a.topSlot, isTopSlotFixed = _a.isTopSlotFixed, maxHeight = _a.maxHeight, _k = _a.isMenuOverflowAuto, isMenuOverflowAuto = _k === void 0 ? true : _k;
35
+ var elementRef = useRef(null);
36
+ var topSlotRef = useRef(null);
37
+ var _l = useState(((_b = elementRef === null || elementRef === void 0 ? void 0 : elementRef.current) === null || _b === void 0 ? void 0 : _b.offsetWidth) || 0), contextMenuWidth = _l[0], setContextMenuWidth = _l[1];
38
+ var _m = useState(((_c = elementRef === null || elementRef === void 0 ? void 0 : elementRef.current) === null || _c === void 0 ? void 0 : _c.offsetHeight) || 0), contextMenuHeight = _m[0], setContextMenuHeight = _m[1];
39
+ var clientHeight = document.documentElement.clientHeight;
40
+ var clientWidth = document.documentElement.clientWidth;
41
+ var handleContextMenu = function (event) {
42
+ event.preventDefault();
43
+ event.stopPropagation();
44
+ if (!checkIsWebPlatform(platform))
45
+ return;
46
+ !isClickForbidden && closeMenu(true);
47
+ };
48
+ var handleMenuItemClick = function (_a) {
49
+ var isCloseMenuOnCurrentItemClick = _a.isCloseMenuOnCurrentItemClick, event = _a.event, action = _a.action;
50
+ event.stopPropagation();
51
+ event.preventDefault();
52
+ !isClickForbidden && action(actionData);
53
+ handleMenuClose({ event: event, shouldCloseDropdown: false, isCloseMenuOnCurrentItemClick: isCloseMenuOnCurrentItemClick });
54
+ };
55
+ var handleMenuClose = function (_a) {
56
+ var event = _a.event, _b = _a.isItemClick, isItemClick = _b === void 0 ? true : _b, _c = _a.isCloseMenuOnCurrentItemClick, isCloseMenuOnCurrentItemClick = _c === void 0 ? true : _c, _d = _a.shouldCloseDropdown, shouldCloseDropdown = _d === void 0 ? true : _d;
57
+ event.stopPropagation();
58
+ event.preventDefault();
59
+ if (isItemClick && (!isCloseOnItemClick || !isCloseMenuOnCurrentItemClick))
60
+ return;
61
+ var closeDropdown = isItemClick ? false : shouldCloseDropdown;
62
+ if (!isClickForbidden)
63
+ closeMenu(closeDropdown);
64
+ };
65
+ var handleSortItems = function (_a, _b) {
66
+ var isFixedA = _a.isFixedUnderLine;
67
+ var isFixedB = _b.isFixedUnderLine;
68
+ return Number(!!isFixedA) - Number(!!isFixedB);
69
+ };
70
+ useLayoutEffect(function () {
71
+ var elementRefCurrent = elementRef.current;
72
+ if (elementRefCurrent) {
73
+ var offsetHeight = elementRefCurrent.offsetHeight;
74
+ var width = elementRefCurrent.getBoundingClientRect().width;
75
+ setContextMenuHeight(offsetHeight);
76
+ setContextMenuWidth(menuWidth || width);
77
+ }
78
+ }, [isMenuOpen, menuWidth]);
79
+ useLayoutEffect(function () {
80
+ var elementRefCurrent = elementRef.current;
81
+ if (!isMenuOpen || !elementRefCurrent)
82
+ return;
83
+ var previousElementWidth = elementRefCurrent.style.width;
84
+ if (!menuWidth)
85
+ elementRefCurrent.style.width = MAX_CONTENT;
86
+ var nextElementWidth = Math.ceil(elementRefCurrent.getBoundingClientRect().width);
87
+ elementRefCurrent.style.width = previousElementWidth;
88
+ setContextMenuWidth(function (prevContextMenuWidth) { return (Math.abs(prevContextMenuWidth - nextElementWidth) >= 1 ? nextElementWidth : prevContextMenuWidth); });
89
+ }, [isMenuOpen, menuWidth, items, topSlot, isTopSlotFixed]);
90
+ var sortedContextMenuItems = items.sort(handleSortItems);
91
+ var firstIndexUnderLine = sortedContextMenuItems.findIndex(function (_a) {
92
+ var isFixedUnderLine = _a.isFixedUnderLine;
93
+ return isFixedUnderLine;
94
+ });
95
+ var contextMenuItems = sortedContextMenuItems.map(function (_a, index) {
96
+ var _b = _a.isCloseMenuOnClick, isCloseMenuOnClick = _b === void 0 ? true : _b, title = _a.title, className = _a.className, action = _a.action, onMouseEnter = _a.onMouseEnter, onMouseLeave = _a.onMouseLeave, contextMenuItem = __rest(_a, ["isCloseMenuOnClick", "title", "className", "action", "onMouseEnter", "onMouseLeave"]);
97
+ return (_jsx(ContextMenuItem, __assign({ index: index, platform: platform, fontFamily: fontFamily, title: title, firstIndexUnderLine: firstIndexUnderLine, className: classNames(itemClassName, className), styles: itemStyles, onClick: function (event) { return handleMenuItemClick({ isCloseMenuOnCurrentItemClick: isCloseMenuOnClick, event: event, action: action }); }, onTouchEnd: function (event) { return handleMenuItemClick({ isCloseMenuOnCurrentItemClick: isCloseMenuOnClick, event: event, action: action }); }, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave }, contextMenuItem), title));
98
+ });
99
+ var calculateContextMenuHeight = function () {
100
+ var elementRefCurrent = elementRef.current;
101
+ if (!elementRefCurrent)
102
+ return FIT_CONTENT;
103
+ var currentElementHeight = elementRefCurrent.scrollHeight;
104
+ return maxHeight ? Math.min(currentElementHeight, maxHeight) : currentElementHeight;
105
+ };
106
+ var contextMenuStyles = __assign(__assign(__assign(__assign({ top: y + contextMenuHeight > clientHeight ? clientHeight - contextMenuHeight - CONTEXT_MENU_SAFE_SPACE : y, left: x + contextMenuWidth > clientWidth ? clientWidth - contextMenuWidth - CONTEXT_MENU_SAFE_SPACE : x }, (menuWidth ? { width: menuWidth } : { width: contextMenuWidth })), { height: calculateContextMenuHeight() }), (isMenuOverflowAuto ? { overflow: AUTO_OVERFLOW_VALUE } : {})), menuStyles);
107
+ var generateContextMenuItemsClassname = function () {
108
+ return classNames('smartapp-context-menu__items', {
109
+ 'smartapp-context-menu__items--with-fixed-top-slot': isTopSlotFixed && topSlot,
110
+ }, menuClassName);
111
+ };
112
+ var generateTopSlotClassname = function () {
113
+ return classNames('smartapp-context-menu__items--top-slot', {
114
+ 'smartapp-context-menu__items--top-slot__fixed': isTopSlotFixed,
115
+ });
116
+ };
117
+ if (!isMenuOpen)
118
+ return null;
119
+ return (_jsx("div", __assign({ className: classNames('smartapp-context-menu', containerClassName), style: __assign(__assign({}, generateFontFamilyStyle(fontFamily)), containerStyles), onClick: function (event) { return handleMenuClose({ event: event, isItemClick: false }); }, onContextMenu: handleContextMenu, onTouchEnd: function (event) { return handleMenuClose({ event: event, isItemClick: false }); } }, { children: _jsxs("div", __assign({ ref: elementRef, className: generateContextMenuItemsClassname(), style: contextMenuStyles, onClick: function (event) { return handleMenuClose({ event: event }); } }, { children: [topSlot && (_jsx("div", __assign({ ref: topSlotRef, className: generateTopSlotClassname() }, { children: topSlot }))), _jsx("div", __assign({ className: "smartapp-context-menu__items--list" }, { children: contextMenuItems }))] })) })));
120
+ };
121
+ export default ContextMenu;
122
+ //# sourceMappingURL=ContextMenu.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContextMenu.js","sourceRoot":"","sources":["../../../../src/сomponents/ContextMenu/ContextMenu.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAc,EAAkB,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChF,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,eAAe,MAAM,oBAAoB,CAAA;AAChD,OAAO,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAA;AAC3E,OAAO,EAAE,uBAAuB,EAAE,WAAW,EAAE,QAAQ,EAAe,MAAM,iBAAiB,CAAA;AAE7F,OAAO,0BAA0B,CAAA;AAEjC,IAAM,mBAAmB,GAAG,MAAM,CAAA;AACl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AAE,CAAC,EAA9C,CAA8C,EAClE,aAAa,EAAE,iBAAiB,EAChC,UAAU,EAAE,UAAC,KAAK,IAAK,OAAA,eAAe,CAAC,EAAE,KAAK,OAAA,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC,EAA9C,CAA8C,gBAErE,wBAAK,GAAG,EAAE,UAAU,EAAE,SAAS,EAAE,iCAAiC,EAAE,EAAE,KAAK,EAAE,iBAAiB,EAAE,OAAO,EAAE,UAAC,KAAK,IAAK,OAAA,eAAe,CAAC,EAAE,KAAK,OAAA,EAAE,CAAC,EAA1B,CAA0B,iBAC3I,OAAO,IAAI,CACV,uBAAK,GAAG,EAAE,UAAU,EAAE,SAAS,EAAE,wBAAwB,EAAE,gBACxD,OAAO,IACJ,CACP,EACD,uBAAK,SAAS,EAAC,oCAAoC,gBAAE,gBAAgB,IAAO,KACxE,IACF,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,WAAW,CAAA"}
@@ -0,0 +1 @@
1
+ export { default } from './ContextMenu';
@@ -0,0 +1,2 @@
1
+ export { default } from './ContextMenu';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/ContextMenu/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA"}
@@ -0,0 +1,41 @@
1
+ import { ReactElement, ReactNode } from 'react';
2
+ import { IFontFamilyProps, IPlatformProps, TCoords, TStyles } from '../../constants';
3
+ import { ICON_POSITION, TContextMenuItemMouseEventHandler } from '../ContextMenuItem/types';
4
+ export type MenuItem<T extends unknown = any> = {
5
+ isNegativeAction?: boolean;
6
+ isSelected?: boolean;
7
+ isDisabled?: boolean;
8
+ isWithCheckbox?: boolean;
9
+ isChecked?: boolean;
10
+ isFixedUnderLine?: boolean;
11
+ isShowArrow?: boolean;
12
+ isCloseMenuOnClick?: boolean;
13
+ className?: string;
14
+ title: string;
15
+ secondaryText?: string;
16
+ icon?: ReactElement;
17
+ iconPosition?: ICON_POSITION;
18
+ onMouseEnter?: TContextMenuItemMouseEventHandler;
19
+ onMouseLeave?: TContextMenuItemMouseEventHandler;
20
+ action: (actionData?: T) => void;
21
+ };
22
+ export interface IContextMenuProps<T extends unknown = any> extends IPlatformProps, IFontFamilyProps {
23
+ isMenuOpen: boolean;
24
+ isCloseOnItemClick?: boolean;
25
+ isClickForbidden?: boolean;
26
+ isMenuOverflowAuto?: boolean;
27
+ position: TCoords;
28
+ menuWidth?: number;
29
+ containerClassName?: string;
30
+ menuClassName?: string;
31
+ itemClassName?: string;
32
+ containerStyles?: TStyles;
33
+ menuStyles?: TStyles;
34
+ itemStyles?: TStyles;
35
+ items: MenuItem[];
36
+ actionData?: T;
37
+ topSlot?: ReactNode;
38
+ isTopSlotFixed?: boolean;
39
+ maxHeight?: number;
40
+ closeMenu: (shouldCloseDropdown?: boolean) => void;
41
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/ContextMenu/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { IContextMenuItemProps } from './types';
2
+ import '../../styles/styles.scss';
3
+ declare const ContextMenuItem: ({ platform, fontFamily, isNegativeAction, isSelected, isDisabled, isWithCheckbox, isChecked, isFixedUnderLine, index, firstIndexUnderLine, title, icon, iconPosition, className, styles, onClick, onTouchEnd, secondaryText, isShowArrow, onMouseEnter, onMouseLeave, }: IContextMenuItemProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default ContextMenuItem;
@@ -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
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
13
+ import classNames from 'classnames';
14
+ import { isNil } from 'lodash';
15
+ import Checkbox from '../Checkbox/Checkbox';
16
+ import { checkIsWebPlatform, generateFontFamilyStyle, generateId } from '../../helpers';
17
+ import { COLORS, PLATFORM } from '../../constants';
18
+ import { ICON_POSITION } from './types';
19
+ import { ReactComponent as ChevronIcon } from '../../assets/icons/chevron.svg';
20
+ import '../../styles/styles.scss';
21
+ var checkIconPosition = function (isFixedUnderLine, iconPosition) {
22
+ var isLeftIconPosition = iconPosition === ICON_POSITION.left;
23
+ var isLeftIconLocation = iconPosition ? isLeftIconPosition : !isFixedUnderLine;
24
+ var isRightIconLocation = iconPosition ? iconPosition === ICON_POSITION.right : isFixedUnderLine;
25
+ return { isLeftIconPosition: isLeftIconPosition, isLeftIconLocation: isLeftIconLocation, isRightIconLocation: isRightIconLocation };
26
+ };
27
+ var ContextMenuItem = function (_a) {
28
+ var _b = _a.platform, platform = _b === void 0 ? PLATFORM.web : _b, fontFamily = _a.fontFamily, _c = _a.isNegativeAction, isNegativeAction = _c === void 0 ? false : _c, _d = _a.isSelected, isSelected = _d === void 0 ? false : _d, _e = _a.isDisabled, isDisabled = _e === void 0 ? false : _e, _f = _a.isWithCheckbox, isWithCheckbox = _f === void 0 ? false : _f, _g = _a.isChecked, isChecked = _g === void 0 ? false : _g, _h = _a.isFixedUnderLine, isFixedUnderLine = _h === void 0 ? false : _h, index = _a.index, firstIndexUnderLine = _a.firstIndexUnderLine, title = _a.title, icon = _a.icon, iconPosition = _a.iconPosition, className = _a.className, styles = _a.styles, onClick = _a.onClick, onTouchEnd = _a.onTouchEnd, secondaryText = _a.secondaryText, _j = _a.isShowArrow, isShowArrow = _j === void 0 ? false : _j, onMouseEnter = _a.onMouseEnter, onMouseLeave = _a.onMouseLeave;
29
+ var _k = checkIconPosition(isFixedUnderLine, iconPosition), isLeftIconPosition = _k.isLeftIconPosition, isLeftIconLocation = _k.isLeftIconLocation, isRightIconLocation = _k.isRightIconLocation;
30
+ var renderContextMenuItemIcon = function (icon) { return icon && _jsx("div", __assign({ className: "smartapp-context-menu-item__content--icon" }, { children: icon })); };
31
+ var renderContextMenuItemText = function (title, secondaryText) {
32
+ return secondaryText ? (_jsxs("div", __assign({ className: "smartapp-context-menu-item__content--text" }, { children: [_jsx("span", __assign({ className: "smartapp-context-menu-item__content--text__title" }, { children: title })), _jsx("span", __assign({ className: "smartapp-context-menu-item__content--text__secondary-text" }, { children: secondaryText }))] }))) : (_jsx("span", { children: title }));
33
+ };
34
+ return (_jsxs(_Fragment, { children: [isFixedUnderLine && index === firstIndexUnderLine && _jsx("div", { className: "smartapp-context-menu-item__fixed-under-line" }), _jsxs("button", __assign({ className: classNames('smartapp-context-menu-item', {
35
+ 'smartapp-context-menu-item__checkbox': isWithCheckbox,
36
+ 'smartapp-context-menu-item__checkbox-with-arrow': isWithCheckbox && isShowArrow,
37
+ 'smartapp-context-menu-item__negative': isNegativeAction,
38
+ 'smartapp-context-menu-item__selected': isSelected,
39
+ 'smartapp-context-menu-item__disabled': isDisabled,
40
+ 'smartapp-context-menu-item__hover': checkIsWebPlatform(platform) && !isWithCheckbox,
41
+ }, className), disabled: isDisabled, style: __assign(__assign({}, styles), generateFontFamilyStyle(fontFamily)), onClick: onClick, onTouchEnd: onTouchEnd, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave }, { children: [_jsxs("div", __assign({ className: classNames('smartapp-context-menu-item__content', {
42
+ 'smartapp-context-menu-item__content--fixed-under-line': isFixedUnderLine,
43
+ 'smartapp-context-menu-item__content--fixed-under-line__reduced-gap': isFixedUnderLine && isLeftIconPosition,
44
+ 'smartapp-context-menu-item__checkbox--content': isWithCheckbox && !isNil(icon),
45
+ 'smartapp-context-menu-item__disabled--content': isDisabled,
46
+ }) }, { children: [isLeftIconLocation && renderContextMenuItemIcon(icon), renderContextMenuItemText(title, secondaryText), isRightIconLocation && renderContextMenuItemIcon(icon)] })), isWithCheckbox && _jsx(Checkbox, { id: generateId(), isChecked: isChecked, isDisabled: isDisabled }), isShowArrow && (_jsx("div", __assign({ className: "smartapp-context-menu-item__arrow" }, { children: _jsx(ChevronIcon, { color: COLORS.iconPrimary }) })))] }))] }));
47
+ };
48
+ export default ContextMenuItem;
49
+ //# sourceMappingURL=ContextMenuItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContextMenuItem.js","sourceRoot":"","sources":["../../../../src/сomponents/ContextMenuItem/ContextMenuItem.tsx"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAA;AAC9B,OAAO,QAAQ,MAAM,sBAAsB,CAAA;AAC3C,OAAO,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AACvF,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAClD,OAAO,EAAE,aAAa,EAAyB,MAAM,SAAS,CAAA;AAC9D,OAAO,EAAE,cAAc,IAAI,WAAW,EAAE,MAAM,gCAAgC,CAAA;AAC9E,OAAO,0BAA0B,CAAA;AAEjC,IAAM,iBAAiB,GAAG,UAAC,gBAAyB,EAAE,YAA4B;IAChF,IAAM,kBAAkB,GAAG,YAAY,KAAK,aAAa,CAAC,IAAI,CAAA;IAC9D,IAAM,kBAAkB,GAAG,YAAY,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAA;IAChF,IAAM,mBAAmB,GAAG,YAAY,CAAC,CAAC,CAAC,YAAY,KAAK,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC,gBAAgB,CAAA;IAElG,OAAO,EAAE,kBAAkB,oBAAA,EAAE,kBAAkB,oBAAA,EAAE,mBAAmB,qBAAA,EAAE,CAAA;AACxE,CAAC,C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H,CAAC,CAAA;AAED,eAAe,eAAe,CAAA"}
@@ -0,0 +1 @@
1
+ export { default } from './ContextMenuItem';
@@ -0,0 +1,2 @@
1
+ export { default } from './ContextMenuItem';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/ContextMenuItem/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA"}
@@ -0,0 +1,28 @@
1
+ import { MouseEventHandler, ReactElement } from 'react';
2
+ import { IFontFamilyProps, IPlatformProps, TClickEvent, TStyles } from '../../constants';
3
+ export declare enum ICON_POSITION {
4
+ left = "left",
5
+ right = "right"
6
+ }
7
+ export type TContextMenuItemMouseEventHandler = MouseEventHandler<HTMLButtonElement>;
8
+ export interface IContextMenuItemProps extends IPlatformProps, IFontFamilyProps {
9
+ isNegativeAction?: boolean;
10
+ isSelected?: boolean;
11
+ isDisabled?: boolean;
12
+ isWithCheckbox?: boolean;
13
+ isChecked?: boolean;
14
+ isFixedUnderLine?: boolean;
15
+ index?: number;
16
+ firstIndexUnderLine?: number;
17
+ title: string;
18
+ icon?: ReactElement;
19
+ iconPosition?: ICON_POSITION;
20
+ className?: string;
21
+ secondaryText?: string;
22
+ isShowArrow?: boolean;
23
+ styles?: TStyles;
24
+ onClick?: (event: TClickEvent) => void;
25
+ onTouchEnd?: (event: TClickEvent) => void;
26
+ onMouseEnter?: TContextMenuItemMouseEventHandler;
27
+ onMouseLeave?: TContextMenuItemMouseEventHandler;
28
+ }
@@ -0,0 +1,6 @@
1
+ export var ICON_POSITION;
2
+ (function (ICON_POSITION) {
3
+ ICON_POSITION["left"] = "left";
4
+ ICON_POSITION["right"] = "right";
5
+ })(ICON_POSITION || (ICON_POSITION = {}));
6
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/ContextMenuItem/types.ts"],"names":[],"mappings":"AAGA,MAAM,CAAN,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,8BAAa,CAAA;IACb,gCAAe,CAAA;AACjB,CAAC,EAHW,aAAa,KAAb,aAAa,QAGxB"}
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { ICustomSelectProps } from './types';
3
+ import '../../styles/styles.scss';
4
+ export declare const generateListItemTextRect: (menuListRef: React.RefObject<HTMLDivElement | null>, listItemTextRef: React.RefObject<HTMLDivElement | null>) => {
5
+ scrollWidth: number;
6
+ clientWidth: number;
7
+ left: number;
8
+ top: number;
9
+ maxWidth: number;
10
+ };
11
+ declare const CustomSelect: ({ platform, fontFamily, isLoading, isSearchable, isCreatable, isDisabled, isOptionsWithTooltip, isOptionsTextTruncated, isMenuAutoWidth, isInteractionDisabled, width, menuListMaxHeight, containerClassName, containerPadding, containerStyles, title, placeholder, hint, noOptionsMessage, noOptionsMessageClassName, error, menuPosition, menuLocation, defaultValue, options, selectProps, creatableSelectProps, onChange, onDisabledOptionClick, onMenuOpen, }: ICustomSelectProps) => import("react/jsx-runtime").JSX.Element;
12
+ export default CustomSelect;