@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,48 @@
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
@@ -0,0 +1 @@
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,E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default } from './Checkbox';
@@ -0,0 +1,2 @@
1
+ export { default } from './Checkbox';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/Checkbox/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA"}
@@ -0,0 +1,14 @@
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
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/Checkbox/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { IChipProps } from './types';
3
+ import '../../styles/styles.scss';
4
+ declare const _default: React.MemoExoticComponent<({ fontFamily, platform, language, name, initials, organizerName, email, uid, avatar, isAvatarHidden, isUserIconHidden, isEmailMode, isDisabled, isError, isLoading, isWarning, isEye, isMyContacts, isLocalContact, isCachedContact, isOrganizerShort, isOutline, isDraggableLayer, userType, inviteStatus, outlineInviteStatusBackground, contextMenuItems, className, styles, iconColor, draggableData, dropdownId, onDelete, setIsOpenContextMenu, }: IChipProps) => import("react/jsx-runtime").JSX.Element>;
5
+ export default _default;
@@ -0,0 +1,288 @@
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, _b;
13
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
14
+ /* eslint-disable max-lines */
15
+ import { memo, useCallback, useEffect, useMemo, useRef, useState } from 'react';
16
+ import { createPortal } from 'react-dom';
17
+ import classNames from 'classnames';
18
+ import { isEmpty, isEqual } from 'lodash';
19
+ import { useDraggable } from '@dnd-kit/core';
20
+ import { useMobileLongTap } from '../../hooks/useMobileLongTap';
21
+ import Avatar from '../Avatar';
22
+ import { setDragBlocked } from '../ChipDndContext/ChipDndContext';
23
+ import ContextMenu from '../ContextMenu';
24
+ import Loader from '../Loader';
25
+ import { checkIsWebPlatform, createSanitizedHtml, generateAvatarIcon, generateColor, generateFontFamilyStyle, renderUserIcon } from '../../helpers';
26
+ import { COLORS, EVENT_LISTENER_TYPES, FIT_CONTENT, LANGUAGES, OVERLAYS, PLATFORM, RENDER_DELAY } from '../../constants';
27
+ import { AVATAR_SIZES } from '../Avatar/types';
28
+ import { ReactComponent as LoaderIcon } from '../../assets/icons/avatar-loader.svg';
29
+ import { ReactComponent as InfoIcon } from '../../assets/icons/chip-info.svg';
30
+ import { ReactComponent as DeleteIcon } from '../../assets/icons/delete-chip.svg';
31
+ import '../../styles/styles.scss';
32
+ var CHIP_HEIGHT = 32;
33
+ var CONTEXT_MENU_INDENT_TOP = 4;
34
+ var CONTEXT_MENU_INDENT = CHIP_HEIGHT + CONTEXT_MENU_INDENT_TOP;
35
+ var CHIP_PRESSED_CLASSNAME = 'smartapp-chip__pressed';
36
+ var DELETE_ICON_PRESSED_CLASSNAME = 'smartapp-chip__right-icons--delete-icon__pressed';
37
+ var ICON_TRANSITION = 'opacity 150ms ease-in-out';
38
+ var BIG_RENDER_DELAY = 2 * RENDER_DELAY;
39
+ var REDUCED_PADDING_CLASSNAME = 'smartapp-chip__reduced-padding';
40
+ var NO_BORDERS = '0px';
41
+ var OPACITY_VALUES;
42
+ (function (OPACITY_VALUES) {
43
+ OPACITY_VALUES[OPACITY_VALUES["default"] = 1] = "default";
44
+ OPACITY_VALUES[OPACITY_VALUES["loading"] = 0.5] = "loading";
45
+ })(OPACITY_VALUES || (OPACITY_VALUES = {}));
46
+ var YOU = (_a = {},
47
+ _a[LANGUAGES.ru] = 'Вы',
48
+ _a[LANGUAGES.en] = 'You',
49
+ _a[LANGUAGES.de] = 'Sie',
50
+ _a[LANGUAGES.es] = 'Usted',
51
+ _a[LANGUAGES.fr] = 'Vous',
52
+ _a[LANGUAGES.ar] = 'ﺃﻧﺖ',
53
+ _a[LANGUAGES.ms] = 'Anda',
54
+ _a[LANGUAGES.tr] = 'Siz',
55
+ _a[LANGUAGES.id] = 'Anda',
56
+ _a[LANGUAGES.uz] = 'Siz',
57
+ _a[LANGUAGES.kk] = 'Сіз',
58
+ _a);
59
+ var ORGANIZER = (_b = {},
60
+ _b[LANGUAGES.ru] = 'организатор',
61
+ _b[LANGUAGES.en] = 'organizer',
62
+ _b[LANGUAGES.de] = 'veranstalter',
63
+ _b[LANGUAGES.es] = 'organizador',
64
+ _b[LANGUAGES.fr] = 'organisateur',
65
+ _b[LANGUAGES.ar] = 'منظم',
66
+ _b[LANGUAGES.ms] = 'pengurus',
67
+ _b[LANGUAGES.tr] = 'düzenleyici',
68
+ _b[LANGUAGES.id] = 'penyelenggara',
69
+ _b[LANGUAGES.uz] = 'tashkilotchi',
70
+ _b[LANGUAGES.kk] = 'ұйымдастырушы',
71
+ _b);
72
+ var generateLoaderContainerStyles = function () { return ({ background: 'none' }); };
73
+ var generateLoaderStyles = function () { return ({ width: 'fit-content', padding: 0 }); };
74
+ var stopEvent = function (event) {
75
+ event.stopPropagation();
76
+ event.preventDefault();
77
+ };
78
+ var Chip = function (_a) {
79
+ var fontFamily = _a.fontFamily, _b = _a.platform, platform = _b === void 0 ? PLATFORM.web : _b, _c = _a.language, language = _c === void 0 ? LANGUAGES.ru : _c, name = _a.name, initials = _a.initials, organizerName = _a.organizerName, email = _a.email, uid = _a.uid, avatar = _a.avatar, _d = _a.isAvatarHidden, isAvatarHidden = _d === void 0 ? false : _d, _e = _a.isUserIconHidden, isUserIconHidden = _e === void 0 ? false : _e, _f = _a.isEmailMode, isEmailMode = _f === void 0 ? false : _f, _g = _a.isDisabled, isDisabled = _g === void 0 ? false : _g, _h = _a.isError, isError = _h === void 0 ? false : _h, _j = _a.isLoading, isLoading = _j === void 0 ? false : _j, _k = _a.isWarning, isWarning = _k === void 0 ? false : _k, _l = _a.isEye, isEye = _l === void 0 ? false : _l, isMyContacts = _a.isMyContacts, isLocalContact = _a.isLocalContact, isCachedContact = _a.isCachedContact, isOrganizerShort = _a.isOrganizerShort, isOutline = _a.isOutline, _m = _a.isDraggableLayer, isDraggableLayer = _m === void 0 ? false : _m, userType = _a.userType, inviteStatus = _a.inviteStatus, outlineInviteStatusBackground = _a.outlineInviteStatusBackground, contextMenuItems = _a.contextMenuItems, className = _a.className, styles = _a.styles, iconColor = _a.iconColor, draggableData = _a.draggableData, dropdownId = _a.dropdownId, onDelete = _a.onDelete, setIsOpenContextMenu = _a.setIsOpenContextMenu;
80
+ var chipRef = useRef(null);
81
+ var deleteIconRef = useRef(null);
82
+ var iconOpacity = useMemo(function () { return (isLoading ? OPACITY_VALUES.loading : OPACITY_VALUES.default); }, [isLoading]);
83
+ var iconStyles = { opacity: iconOpacity, transition: ICON_TRANSITION };
84
+ var userIcon = renderUserIcon({ userType: userType, isMyContacts: isMyContacts, isLocalContact: isLocalContact, isCachedContact: isCachedContact, style: iconStyles });
85
+ var isContextMenuAvailable = !isEmpty(contextMenuItems);
86
+ var isDeleteIconAvailable = !isDisabled && onDelete;
87
+ var isIdenticallyFilled = name === email;
88
+ var chipId = "".concat(name, "-").concat(dropdownId);
89
+ var elementForRenderPortal = document.getElementById(OVERLAYS);
90
+ var selectRef = useRef(null);
91
+ var contextMenuJustOpened = useRef(false);
92
+ var _o = useState(false), isOpenContextMenuLocal = _o[0], setIsOpenContextMenuLocal = _o[1];
93
+ var handleCloseContextMenu = useCallback(function (shouldCloseDropdown) {
94
+ if (contextMenuJustOpened.current)
95
+ return;
96
+ setDragBlocked(false);
97
+ setIsOpenContextMenuLocal(false);
98
+ if (selectRef.current) {
99
+ selectRef.current._contextMenuOpen = false;
100
+ if (shouldCloseDropdown)
101
+ selectRef.current.blur();
102
+ else {
103
+ selectRef.current._preventBlur = true;
104
+ setTimeout(function () { return selectRef.current && (selectRef.current._preventBlur = false); }, BIG_RENDER_DELAY);
105
+ }
106
+ }
107
+ setIsOpenContextMenu === null || setIsOpenContextMenu === void 0 ? void 0 : setIsOpenContextMenu(false, !shouldCloseDropdown);
108
+ }, [setIsOpenContextMenu]);
109
+ useEffect(function () {
110
+ setDragBlocked(isOpenContextMenuLocal);
111
+ }, [isOpenContextMenuLocal]);
112
+ useEffect(function () {
113
+ var _a;
114
+ var selectRefCurrent = (_a = draggableData === null || draggableData === void 0 ? void 0 : draggableData.selectRef) === null || _a === void 0 ? void 0 : _a.current;
115
+ if (selectRefCurrent)
116
+ selectRef.current = selectRefCurrent;
117
+ }, [draggableData]);
118
+ useEffect(function () {
119
+ window.addEventListener(EVENT_LISTENER_TYPES.mouseup, handleMouseUp);
120
+ return function () { return window.removeEventListener(EVENT_LISTENER_TYPES.mouseup, handleMouseUp); };
121
+ }, []);
122
+ useEffect(function () {
123
+ var handleClickOutside = function (_a) {
124
+ var target = _a.target;
125
+ var chipRefCurrent = chipRef.current;
126
+ if (isOpenContextMenuLocal && chipRefCurrent && !chipRefCurrent.contains(target))
127
+ handleCloseContextMenu(true);
128
+ };
129
+ document.addEventListener(EVENT_LISTENER_TYPES.mousedown, handleClickOutside);
130
+ document.addEventListener(EVENT_LISTENER_TYPES.touchend, handleClickOutside, { passive: true });
131
+ return function () {
132
+ document.removeEventListener(EVENT_LISTENER_TYPES.mousedown, handleClickOutside);
133
+ document.removeEventListener(EVENT_LISTENER_TYPES.touchend, handleClickOutside);
134
+ };
135
+ }, [isOpenContextMenuLocal, handleCloseContextMenu]);
136
+ useEffect(function () {
137
+ var chipRefCurrent = chipRef.current;
138
+ if (!chipRefCurrent || isOutline)
139
+ return;
140
+ window.getComputedStyle(chipRefCurrent).borderWidth !== NO_BORDERS
141
+ ? chipRefCurrent.classList.add(REDUCED_PADDING_CLASSNAME)
142
+ : chipRefCurrent.classList.remove(REDUCED_PADDING_CLASSNAME);
143
+ }, [className, isOutline, styles]);
144
+ var _p = useDraggable({
145
+ id: chipId,
146
+ data: { user: __assign(__assign({}, draggableData), { dropdownId: dropdownId }) },
147
+ disabled: isOpenContextMenuLocal,
148
+ }), attributes = _p.attributes, listeners = _p.listeners, setNodeRef = _p.setNodeRef, isDragging = _p.isDragging, setActivatorNodeRef = _p.setActivatorNodeRef;
149
+ var generateName = function () {
150
+ if (organizerName)
151
+ return isOrganizerShort ? organizerName : "<span>".concat(organizerName, "&nbsp;</span><span>(").concat(ORGANIZER[language], ")</span>");
152
+ if (isEmailMode && email)
153
+ return email;
154
+ return name;
155
+ };
156
+ var handleMouseDown = function (event) {
157
+ var _a;
158
+ stopEvent(event);
159
+ !isLoading && isContextMenuAvailable && ((_a = chipRef.current) === null || _a === void 0 ? void 0 : _a.classList.add(CHIP_PRESSED_CLASSNAME));
160
+ };
161
+ var handleDeleteIconMouseDown = function (event) {
162
+ var _a;
163
+ if (isLoading)
164
+ return;
165
+ stopEvent(event);
166
+ (_a = deleteIconRef.current) === null || _a === void 0 ? void 0 : _a.classList.add(DELETE_ICON_PRESSED_CLASSNAME);
167
+ };
168
+ var handleMouseUp = function () {
169
+ var _a, _b;
170
+ (_a = chipRef.current) === null || _a === void 0 ? void 0 : _a.classList.remove(CHIP_PRESSED_CLASSNAME);
171
+ (_b = deleteIconRef.current) === null || _b === void 0 ? void 0 : _b.classList.remove(DELETE_ICON_PRESSED_CLASSNAME);
172
+ };
173
+ var handleRemoveClick = function (event) {
174
+ var type = event.type;
175
+ event.stopPropagation();
176
+ type !== EVENT_LISTENER_TYPES.touchend && event.preventDefault();
177
+ !isLoading && (onDelete === null || onDelete === void 0 ? void 0 : onDelete(name));
178
+ };
179
+ var handleOpenContextMenu = useCallback(function () {
180
+ if (!isContextMenuAvailable || isLoading)
181
+ return;
182
+ contextMenuJustOpened.current = true;
183
+ setDragBlocked(true);
184
+ setIsOpenContextMenuLocal(true);
185
+ var selectElement = selectRef.current;
186
+ if (selectElement) {
187
+ var menuIsOpen = selectElement.state.menuIsOpen;
188
+ selectElement._preventBlur = true;
189
+ selectElement._contextMenuOpen = true;
190
+ if (!menuIsOpen)
191
+ setTimeout(function () { return selectElement.onMenuOpen(); }, RENDER_DELAY);
192
+ setTimeout(function () { return (selectElement._preventBlur = false); }, BIG_RENDER_DELAY);
193
+ }
194
+ setIsOpenContextMenu === null || setIsOpenContextMenu === void 0 ? void 0 : setIsOpenContextMenu(true);
195
+ setTimeout(function () { return (contextMenuJustOpened.current = false); }, BIG_RENDER_DELAY);
196
+ }, [isContextMenuAvailable, isLoading, setIsOpenContextMenu]);
197
+ var setContextMenuPosition = useCallback(function () {
198
+ var _a;
199
+ 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;
200
+ return { x: left, y: top + CONTEXT_MENU_INDENT };
201
+ }, [chipRef]);
202
+ var handleShortTap = useCallback(function () {
203
+ if (!checkIsWebPlatform(platform) && !isOpenContextMenuLocal)
204
+ handleOpenContextMenu();
205
+ }, [isOpenContextMenuLocal, handleOpenContextMenu, platform]);
206
+ var handleDragStart = useCallback(function () { return setIsOpenContextMenuLocal(false); }, []);
207
+ var handlePressStart = useCallback(function () {
208
+ if (selectRef.current)
209
+ selectRef.current._preventBlur = true;
210
+ }, []);
211
+ var handlePressEnd = useCallback(function () {
212
+ if (selectRef.current)
213
+ setTimeout(function () { return (selectRef.current._preventBlur = false); }, BIG_RENDER_DELAY);
214
+ }, []);
215
+ var _q = useMobileLongTap({
216
+ onShortTap: handleShortTap,
217
+ onDragStart: handleDragStart,
218
+ onPressStart: handlePressStart,
219
+ onPressEnd: handlePressEnd,
220
+ }), startPressTimer = _q.startPressTimer, handleTouchMove = _q.handleTouchMove, handleTouchEnd = _q.handleTouchEnd, handleTouchCancel = _q.handleTouchCancel;
221
+ var handleClick = useCallback(function (event) {
222
+ if (!checkIsWebPlatform(platform) || !isContextMenuAvailable || isLoading)
223
+ return;
224
+ event.stopPropagation();
225
+ isOpenContextMenuLocal ? handleCloseContextMenu(false) : handleOpenContextMenu();
226
+ }, [platform, isContextMenuAvailable, isLoading, isOpenContextMenuLocal, handleCloseContextMenu, handleOpenContextMenu]);
227
+ var setChipRef = useCallback(function (node) {
228
+ setNodeRef(node);
229
+ chipRef.current = node;
230
+ }, [setNodeRef]);
231
+ var handleTouchStart = useCallback(function (event) {
232
+ if (!isOpenContextMenuLocal) {
233
+ event.stopPropagation();
234
+ startPressTimer(event);
235
+ }
236
+ }, [startPressTimer, isOpenContextMenuLocal]);
237
+ var handleTouchEndInternal = useCallback(function (event) {
238
+ event.stopPropagation();
239
+ handleTouchEnd();
240
+ }, [handleTouchEnd]);
241
+ var handleTouchMoveInternal = useCallback(function (event) {
242
+ if (!isOpenContextMenuLocal)
243
+ event.stopPropagation();
244
+ handleTouchMove(event);
245
+ }, [handleTouchMove, isOpenContextMenuLocal]);
246
+ var dragAttributes = !isOpenContextMenuLocal ? attributes : {};
247
+ var dragListeners = !isOpenContextMenuLocal ? listeners : {};
248
+ var contextMenuHeader = useMemo(function () { return (_jsxs(_Fragment, { children: [_jsxs("div", __assign({ className: "smartapp-chip__context-menu-header" }, { children: [_jsx(Avatar, { className: "smartapp-chip__context-menu-header__avatar", fontFamily: fontFamily, username: name, initials: initials, icon: generateAvatarIcon(userType), avatar: avatar, size: AVATAR_SIZES.size_32, isEye: isEye, outlineDefaultBackground: COLORS.chip }), _jsxs("div", __assign({ className: classNames('smartapp-chip__context-menu-header__content', {
249
+ 'smartapp-chip__context-menu-header__content--identically': isIdenticallyFilled,
250
+ }) }, { children: [_jsxs("div", { children: [userIcon && _jsx("div", __assign({ className: "smartapp-chip__context-menu-header__content__icon" }, { children: userIcon })), _jsx("span", { children: name })] }), !isIdenticallyFilled && email && _jsx("div", { children: email })] }))] })), _jsx("div", { className: "smartapp-chip__context-menu-header__separator" })] })); }, [fontFamily, name, initials, userType, avatar, isEye, isIdenticallyFilled, userIcon, email]);
251
+ var contextMenuElement = useMemo(function () {
252
+ if (!contextMenuItems || !isOpenContextMenuLocal || !elementForRenderPortal)
253
+ return null;
254
+ return createPortal(_jsx(ContextMenu, { isMenuOpen: isOpenContextMenuLocal, fontFamily: fontFamily, position: setContextMenuPosition(), closeMenu: handleCloseContextMenu, items: contextMenuItems, actionData: uid || email || name, topSlot: contextMenuHeader, menuStyles: { width: FIT_CONTENT }, platform: platform, isMenuOverflowAuto: false }), elementForRenderPortal);
255
+ }, [
256
+ contextMenuItems,
257
+ isOpenContextMenuLocal,
258
+ elementForRenderPortal,
259
+ fontFamily,
260
+ setContextMenuPosition,
261
+ handleCloseContextMenu,
262
+ uid,
263
+ email,
264
+ name,
265
+ contextMenuHeader,
266
+ platform,
267
+ ]);
268
+ var generateAvatarOutlineDefaultBackground = function () {
269
+ var outlineDefaultBackground = isOutline ? COLORS.bgPopUp : COLORS.chip;
270
+ if (!isEmpty(inviteStatus))
271
+ return outlineInviteStatusBackground || outlineDefaultBackground;
272
+ return outlineDefaultBackground;
273
+ };
274
+ return (_jsxs("div", __assign({ className: classNames('smartapp-chip', {
275
+ 'smartapp-chip__outline': isOutline,
276
+ 'smartapp-chip__loading': isLoading,
277
+ 'smartapp-chip__layer': isDraggableLayer,
278
+ 'smartapp-chip__dragging': isDragging,
279
+ }, className), ref: setChipRef }, dragAttributes, { style: __assign(__assign({}, generateFontFamilyStyle(fontFamily)), styles), onClick: handleClick, onTouchStart: handleTouchStart, onTouchEnd: handleTouchEndInternal, onTouchMove: handleTouchMoveInternal, onTouchCancel: handleTouchCancel, onMouseDown: handleMouseDown }, { children: [_jsxs("div", __assign({ className: classNames('smartapp-chip__info', { 'smartapp-chip__info--increased-gap': isUserIconHidden }) }, dragListeners, { ref: !isOpenContextMenuLocal ? setActivatorNodeRef : undefined }, { 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: generateAvatarIcon(userType), username: name, initials: initials, isWarning: isWarning, avatar: avatar, size: AVATAR_SIZES.size_24, isEye: isEye, inviteStatus: inviteStatus, outlineDefaultBackground: generateAvatarOutlineDefaultBackground() })) }))), !isUserIconHidden && userIcon, _jsx("p", { className: classNames('smartapp-chip__info--name', {
280
+ 'smartapp-chip__info--name__organizer-without-ellipsis': !isOrganizerShort && isEqual(organizerName, YOU[language]),
281
+ 'smartapp-chip__info--name__loading': isLoading,
282
+ 'smartapp-chip__info--name__without-avatar': isAvatarHidden,
283
+ 'smartapp-chip__info--name__without-user-icon': isUserIconHidden,
284
+ 'smartapp-chip__info--name__without-profile-identity': isAvatarHidden && isUserIconHidden,
285
+ }), 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: handleRemoveClick, onTouchEnd: handleRemoveClick, onMouseDown: handleDeleteIconMouseDown }, { children: _jsx(DeleteIcon, { style: __assign({ color: generateColor(iconColor) }, iconStyles) }) })))] }))), contextMenuElement] })));
286
+ };
287
+ export default memo(Chip);
288
+ //# sourceMappingURL=Chip.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Chip.js","sourceRoot":"","sources":["../../../../src/сomponents/Chip/Chip.tsx"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,8BAA8B;AAC9B,OAAc,EAAgE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AACpJ,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AACxC,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAA;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAA;AAC/D,OAAO,MAAM,MAAM,WAAW,CAAA;AAC9B,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAA;AACjE,OAAO,WAAW,MAAM,gBAAgB,CAAA;AACxC,OAAO,MAAM,MAAM,WAAW,CAAA;AAC9B,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,aAAa,EAAE,uBAAuB,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AACnJ,OAAO,EAAE,MAAM,EAAE,oBAAoB,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,YAAY,EAAgC,MAAM,iBAAiB,CAAA;AACtJ,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAE9C,OAAO,EAAE,cAAc,IAAI,UAAU,EAAE,MAAM,sCAAsC,CAAA;AACnF,OAAO,EAAE,cAAc,IAAI,QAAQ,EAAE,MAAM,kCAAkC,CAAA;AAC7E,OAAO,EAAE,cAAc,IAAI,UAAU,EAAE,MAAM,oCAAoC,CAAA;AACjF,OAAO,0BAA0B,CAAA;AAIjC,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B,CAAC,YAAY,EAAE,CAAC,GAC5D,KACE,EACL,CAAC,OAAO,IAAI,qBAAqB,CAAC,IAAI,CACrC,wBAAK,SAAS,EAAC,4BAA4B,iBACxC,OAAO,IAAI,KAAC,QAAQ,IAAC,KAAK,EAAE,MAAM,CAAC,YAAY,GAAI,EACnD,qBAAqB,IAAI,CACxB,uBACE,GAAG,EAAE,aAAa,EAClB,SAAS,EAAE,UAAU,CAAC,yCAAyC,EAAE,EAAE,kDAAkD,EAAE,SAAS,EAAE,CAAC,EACnI,OAAO,EAAE,iBAAiB,EAC1B,UAAU,EAAE,iBAAiB,EAC7B,WAAW,EAAE,yBAAyB,gBAEtC,KAAC,UAAU,IAAC,KAAK,aAAI,KAAK,EAAE,aAAa,CAAC,SAAS,CAAC,IAAK,UAAU,IAAM,IACrE,CACP,KACG,CACP,EACA,kBAAkB,KACf,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,IAAI,CAAC,IAAI,CAAC,CAAA"}
@@ -0,0 +1 @@
1
+ export { default } from './Chip';
@@ -0,0 +1,2 @@
1
+ export { default } from './Chip';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/Chip/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAA"}
@@ -0,0 +1,39 @@
1
+ import { IFontFamilyProps, ILanguageProps, IPlatformProps, TStyles } from '../../constants';
2
+ import { CONTACT_TYPES } from '../UserDropdown/constants';
3
+ import { MenuItem } from '../ContextMenu/types';
4
+ import { TUser } from '../UserDropdown/types';
5
+ export interface IChipProps extends IFontFamilyProps, IPlatformProps, ILanguageProps {
6
+ name: string;
7
+ initials?: string;
8
+ organizerName?: string | null;
9
+ email?: string | null;
10
+ uid?: string;
11
+ avatar?: string | null;
12
+ isAvatarHidden?: boolean;
13
+ isUserIconHidden?: boolean;
14
+ isEmailMode?: boolean;
15
+ isDisabled?: boolean;
16
+ isError?: boolean;
17
+ isWarning?: boolean;
18
+ isLoading?: boolean;
19
+ isEye?: boolean;
20
+ isMyContacts?: boolean;
21
+ isLocalContact?: boolean;
22
+ isCachedContact?: boolean;
23
+ isOrganizerShort?: boolean;
24
+ isOutline?: boolean;
25
+ userType?: CONTACT_TYPES;
26
+ inviteStatus?: 'accepted' | 'declined' | 'needsAction';
27
+ outlineInviteStatusBackground?: string;
28
+ className?: string;
29
+ styles?: TStyles;
30
+ iconColor?: string;
31
+ contextMenuItems?: MenuItem[];
32
+ isDraggableLayer?: boolean;
33
+ draggableData?: TUser & {
34
+ selectRef?: any;
35
+ };
36
+ dropdownId?: string;
37
+ onDelete?: (name?: string) => void;
38
+ setIsOpenContextMenu?: (isOpen: boolean, shouldFocusDropdown?: boolean) => void;
39
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/Chip/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,13 @@
1
+ import { ReactNode } from 'react';
2
+ import { DndContextProps, UniqueIdentifier } from '@dnd-kit/core';
3
+ import { TDragUser } from '../UserDropdown/types';
4
+ type TDndContextProps = Omit<DndContextProps, 'onDragStart' | 'onDragEnd'>;
5
+ type TChipDndContext = TDndContextProps & {
6
+ children: ReactNode;
7
+ containerClassName?: string;
8
+ onDragStart?: (user: TDragUser) => void;
9
+ onDragEnd?: (user: TDragUser, dropdownId?: UniqueIdentifier) => void;
10
+ };
11
+ export declare const setDragBlocked: (isBlocked: boolean) => boolean;
12
+ export declare const ChipDndContext: ({ children, containerClassName, onDragStart, onDragEnd, ...props }: TChipDndContext) => import("react/jsx-runtime").JSX.Element;
13
+ export {};
@@ -0,0 +1,76 @@
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 { useCallback, useState } from 'react';
25
+ import { DndContext, DragOverlay, MouseSensor, TouchSensor, rectIntersection, useSensor, useSensors, } from '@dnd-kit/core';
26
+ import Chip from '../Chip';
27
+ var isDragBlocked = false;
28
+ var CHIP_DELETE_ICON_CLASSNAME = '.smartapp-chip__delete-icon';
29
+ export var setDragBlocked = function (isBlocked) { return (isDragBlocked = isBlocked); };
30
+ var checkIsClickDelete = function (target) { var _a; return (_a = target === null || target === void 0 ? void 0 : target.closest) === null || _a === void 0 ? void 0 : _a.call(target, CHIP_DELETE_ICON_CLASSNAME); };
31
+ export var ChipDndContext = function (_a) {
32
+ var children = _a.children, containerClassName = _a.containerClassName, onDragStart = _a.onDragStart, onDragEnd = _a.onDragEnd, props = __rest(_a, ["children", "containerClassName", "onDragStart", "onDragEnd"]);
33
+ var _b = useState(null), activeChip = _b[0], setActiveChip = _b[1];
34
+ var sensors = useSensors(useSensor(MouseSensor, { activationConstraint: { distance: 8 } }), useSensor(TouchSensor, { activationConstraint: { delay: 250, tolerance: 8 } }));
35
+ var handleDragStart = useCallback(function (_a) {
36
+ var current = _a.active.data.current;
37
+ if (isDragBlocked)
38
+ return;
39
+ var user = current === null || current === void 0 ? void 0 : current.user;
40
+ onDragStart === null || onDragStart === void 0 ? void 0 : onDragStart(user);
41
+ setActiveChip(user);
42
+ }, [onDragStart]);
43
+ var handleDragEnd = useCallback(function (_a) {
44
+ var current = _a.active.data.current, over = _a.over;
45
+ if (isDragBlocked)
46
+ return setActiveChip(null);
47
+ var draggedUser = (current === null || current === void 0 ? void 0 : current.user) || activeChip;
48
+ if (!draggedUser)
49
+ return;
50
+ onDragEnd === null || onDragEnd === void 0 ? void 0 : onDragEnd(draggedUser, over === null || over === void 0 ? void 0 : over.id);
51
+ setActiveChip(null);
52
+ }, [onDragEnd, activeChip]);
53
+ var handleDragCancel = useCallback(function () { return setActiveChip(null); }, []);
54
+ var ChipLayer = useCallback(function () {
55
+ if (!activeChip || isDragBlocked)
56
+ return null;
57
+ var label = activeChip.label, isPrivateSchedule = activeChip.isPrivateSchedule, rest = __rest(activeChip, ["label", "isPrivateSchedule"]);
58
+ return _jsx(Chip, __assign({}, rest, { name: label, isEye: isPrivateSchedule, onDelete: function () { }, isDraggableLayer: true }));
59
+ }, [activeChip]);
60
+ var handleMouseDown = useCallback(function (event) {
61
+ var target = event.target, button = event.button;
62
+ if (isDragBlocked)
63
+ return event.stopPropagation();
64
+ if (button !== 0)
65
+ return;
66
+ if (checkIsClickDelete(target))
67
+ return event.stopPropagation();
68
+ }, []);
69
+ var handleTouchStart = useCallback(function (event) {
70
+ var target = event.target, touches = event.touches;
71
+ if (isDragBlocked || touches.length > 1 || checkIsClickDelete(target))
72
+ return event.stopPropagation();
73
+ }, []);
74
+ return (_jsx("div", __assign({ onMouseDown: handleMouseDown, onTouchStart: handleTouchStart, className: containerClassName }, { children: _jsxs(DndContext, __assign({}, props, { sensors: sensors, onDragStart: handleDragStart, onDragEnd: handleDragEnd, onDragCancel: handleDragCancel, collisionDetection: rectIntersection, onDragMove: function () { return isDragBlocked && setActiveChip(null); } }, { children: [children, _jsx(DragOverlay, __assign({ dropAnimation: null }, { children: _jsx(ChipLayer, {}) }))] })) })));
75
+ };
76
+ //# sourceMappingURL=ChipDndContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChipDndContext.js","sourceRoot":"","sources":["../../../../src/сomponents/ChipDndContext/ChipDndContext.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAc,EAAqC,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AACvF,OAAO,EACL,UAAU,EAGV,WAAW,EAEX,WAAW,EACX,WAAW,EAEX,gBAAgB,EAChB,SAAS,EACT,UAAU,GACX,MAAM,eAAe,CAAA;AACtB,OAAO,IAAI,MAAM,SAAS,CAAA;AAY1B,IAAI,aAAa,GAAG,KAAK,CAAA;AACzB,IAAM,0BAA0B,GAAG,6BAA6B,CAAA;AAEhE,MAAM,CAAC,IAAM,cAAc,GAAG,UAAC,SAAkB,IAAK,OAAA,CAAC,aAAa,GAAG,SAAS,CAAC,EAA3B,CAA2B,CAAA;AACjF,IAAM,kBAAkB,GAAG,UAAC,MAAgB,YAAK,OAAA,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,OAAO,uDAAG,0BAA0B,CAAC,CAAA,EAAA,CAAA;AAE9F,MAAM,CAAC,IAAM,cAAc,GAAG,UAAC,EAAmF;IAAjF,IAAA,QAAQ,cAAA,EAAE,kBAAkB,wBAAA,EAAE,WAAW,iBAAA,EAAE,SAAS,eAAA,EAAK,KAAK,cAAhE,8DAAkE,CAAF;IACvF,IAAA,KAA8B,QAAQ,CAAmB,IAAI,CAAC,EAA7D,UAAU,QAAA,EAAE,aAAa,QAAoC,CAAA;IAEpE,IAAM,OAAO,GAAG,UAAU,CACxB,SAAS,CAAC,WAAW,EAAE,EAAE,oBAAoB,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE,EAAE,CAAC,EACjE,SAAS,CAAC,WAAW,EAAE,EAAE,oBAAoB,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC,EAAE,EAAE,CAAC,CAC/E,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ChipDndContext } from './ChipDndContext';
@@ -0,0 +1,2 @@
1
+ export { ChipDndContext } from './ChipDndContext';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/ChipDndContext/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA"}
@@ -0,0 +1,4 @@
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, bottomSheetDetent, bottomSheetStyles, }: IConfirmationModalProps) => import("react/jsx-runtime").JSX.Element | null;
4
+ export default ConfirmationModal;