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

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 (541) 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 +245 -0
  90. package/build/main/constants/constants.js +303 -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/fontScale.d.ts +3 -0
  99. package/build/main/helpers/fontScale.js +17 -0
  100. package/build/main/helpers/fontScale.js.map +1 -0
  101. package/build/main/helpers/index.d.ts +34 -0
  102. package/build/main/helpers/index.js +205 -0
  103. package/build/main/helpers/index.js.map +1 -0
  104. package/build/main/hooks/useCharHintDisplay.d.ts +10 -0
  105. package/build/main/hooks/useCharHintDisplay.js +57 -0
  106. package/build/main/hooks/useCharHintDisplay.js.map +1 -0
  107. package/build/main/hooks/useFontScale.d.ts +1 -0
  108. package/build/main/hooks/useFontScale.js +19 -0
  109. package/build/main/hooks/useFontScale.js.map +1 -0
  110. package/build/main/hooks/useMobileLongTap.d.ts +16 -0
  111. package/build/main/hooks/useMobileLongTap.js +65 -0
  112. package/build/main/hooks/useMobileLongTap.js.map +1 -0
  113. package/build/main/hooks/useModal.d.ts +30 -0
  114. package/build/main/hooks/useModal.js +275 -0
  115. package/build/main/hooks/useModal.js.map +1 -0
  116. package/build/main/index.d.ts +40 -0
  117. package/build/main/index.js +41 -0
  118. package/build/main/index.js.map +1 -0
  119. package/build/main/styles/index.d.ts +1 -0
  120. package/build/main/styles/index.js +2 -0
  121. package/build/main/styles/index.js.map +1 -0
  122. package/build/main/styles/main.js +0 -0
  123. package/build/main/styles/styles.scss +14 -0
  124. package/build/main//321/201omponents/ActionModal/ActionModal.d.ts +4 -0
  125. package/build/main//321/201omponents/ActionModal/ActionModal.js +53 -0
  126. package/build/main//321/201omponents/ActionModal/ActionModal.js.map +1 -0
  127. package/build/main//321/201omponents/ActionModal/index.d.ts +1 -0
  128. package/build/main//321/201omponents/ActionModal/index.js +2 -0
  129. package/build/main//321/201omponents/ActionModal/index.js.map +1 -0
  130. package/build/main//321/201omponents/ActionModal/types.d.ts +23 -0
  131. package/build/main//321/201omponents/ActionModal/types.js +2 -0
  132. package/build/main//321/201omponents/ActionModal/types.js.map +1 -0
  133. package/build/main//321/201omponents/AttachedFile/AttachedFile.d.ts +8 -0
  134. package/build/main//321/201omponents/AttachedFile/AttachedFile.js +201 -0
  135. package/build/main//321/201omponents/AttachedFile/AttachedFile.js.map +1 -0
  136. package/build/main//321/201omponents/AttachedFile/index.d.ts +1 -0
  137. package/build/main//321/201omponents/AttachedFile/index.js +2 -0
  138. package/build/main//321/201omponents/AttachedFile/index.js.map +1 -0
  139. package/build/main//321/201omponents/AttachedFile/types.d.ts +23 -0
  140. package/build/main//321/201omponents/AttachedFile/types.js +2 -0
  141. package/build/main//321/201omponents/AttachedFile/types.js.map +1 -0
  142. package/build/main//321/201omponents/Avatar/Avatar.d.ts +5 -0
  143. package/build/main//321/201omponents/Avatar/Avatar.js +257 -0
  144. package/build/main//321/201omponents/Avatar/Avatar.js.map +1 -0
  145. package/build/main//321/201omponents/Avatar/index.d.ts +1 -0
  146. package/build/main//321/201omponents/Avatar/index.js +2 -0
  147. package/build/main//321/201omponents/Avatar/index.js.map +1 -0
  148. package/build/main//321/201omponents/Avatar/types.d.ts +64 -0
  149. package/build/main//321/201omponents/Avatar/types.js +32 -0
  150. package/build/main//321/201omponents/Avatar/types.js.map +1 -0
  151. package/build/main//321/201omponents/Button/Button.d.ts +4 -0
  152. package/build/main//321/201omponents/Button/Button.js +68 -0
  153. package/build/main//321/201omponents/Button/Button.js.map +1 -0
  154. package/build/main//321/201omponents/Button/index.d.ts +1 -0
  155. package/build/main//321/201omponents/Button/index.js +2 -0
  156. package/build/main//321/201omponents/Button/index.js.map +1 -0
  157. package/build/main//321/201omponents/Button/types.d.ts +31 -0
  158. package/build/main//321/201omponents/Button/types.js +15 -0
  159. package/build/main//321/201omponents/Button/types.js.map +1 -0
  160. package/build/main//321/201omponents/CachedImage/CachedImage.d.ts +4 -0
  161. package/build/main//321/201omponents/CachedImage/CachedImage.js +59 -0
  162. package/build/main//321/201omponents/CachedImage/CachedImage.js.map +1 -0
  163. package/build/main//321/201omponents/CachedImage/helpers.d.ts +3 -0
  164. package/build/main//321/201omponents/CachedImage/helpers.js +40 -0
  165. package/build/main//321/201omponents/CachedImage/helpers.js.map +1 -0
  166. package/build/main//321/201omponents/CachedImage/index.d.ts +1 -0
  167. package/build/main//321/201omponents/CachedImage/index.js +2 -0
  168. package/build/main//321/201omponents/CachedImage/index.js.map +1 -0
  169. package/build/main//321/201omponents/CachedImage/types.d.ts +10 -0
  170. package/build/main//321/201omponents/CachedImage/types.js +2 -0
  171. package/build/main//321/201omponents/CachedImage/types.js.map +1 -0
  172. package/build/main//321/201omponents/Calendar/Calendar.d.ts +16 -0
  173. package/build/main//321/201omponents/Calendar/Calendar.js +294 -0
  174. package/build/main//321/201omponents/Calendar/Calendar.js.map +1 -0
  175. package/build/main//321/201omponents/Calendar/index.d.ts +1 -0
  176. package/build/main//321/201omponents/Calendar/index.js +2 -0
  177. package/build/main//321/201omponents/Calendar/index.js.map +1 -0
  178. package/build/main//321/201omponents/Calendar/types.d.ts +28 -0
  179. package/build/main//321/201omponents/Calendar/types.js +2 -0
  180. package/build/main//321/201omponents/Calendar/types.js.map +1 -0
  181. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.d.ts +4 -0
  182. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js +49 -0
  183. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js.map +1 -0
  184. package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.d.ts +4 -0
  185. package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.js +71 -0
  186. package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.js.map +1 -0
  187. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.d.ts +4 -0
  188. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js +45 -0
  189. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js.map +1 -0
  190. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.d.ts +4 -0
  191. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js +66 -0
  192. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js.map +1 -0
  193. package/build/main//321/201omponents/Charts/colors.d.ts +3 -0
  194. package/build/main//321/201omponents/Charts/colors.js +4 -0
  195. package/build/main//321/201omponents/Charts/colors.js.map +1 -0
  196. package/build/main//321/201omponents/Charts/constants.d.ts +42 -0
  197. package/build/main//321/201omponents/Charts/constants.js +43 -0
  198. package/build/main//321/201omponents/Charts/constants.js.map +1 -0
  199. package/build/main//321/201omponents/Charts/helpers.d.ts +17 -0
  200. package/build/main//321/201omponents/Charts/helpers.js +74 -0
  201. package/build/main//321/201omponents/Charts/helpers.js.map +1 -0
  202. package/build/main//321/201omponents/Charts/index.d.ts +3 -0
  203. package/build/main//321/201omponents/Charts/index.js +4 -0
  204. package/build/main//321/201omponents/Charts/index.js.map +1 -0
  205. package/build/main//321/201omponents/Charts/types.d.ts +89 -0
  206. package/build/main//321/201omponents/Charts/types.js +2 -0
  207. package/build/main//321/201omponents/Charts/types.js.map +1 -0
  208. package/build/main//321/201omponents/Charts/useEvents.d.ts +5 -0
  209. package/build/main//321/201omponents/Charts/useEvents.js +45 -0
  210. package/build/main//321/201omponents/Charts/useEvents.js.map +1 -0
  211. package/build/main//321/201omponents/Charts/usePieEvents.d.ts +6 -0
  212. package/build/main//321/201omponents/Charts/usePieEvents.js +57 -0
  213. package/build/main//321/201omponents/Charts/usePieEvents.js.map +1 -0
  214. package/build/main//321/201omponents/Checkbox/Checkbox.d.ts +8 -0
  215. package/build/main//321/201omponents/Checkbox/Checkbox.js +48 -0
  216. package/build/main//321/201omponents/Checkbox/Checkbox.js.map +1 -0
  217. package/build/main//321/201omponents/Checkbox/index.d.ts +1 -0
  218. package/build/main//321/201omponents/Checkbox/index.js +2 -0
  219. package/build/main//321/201omponents/Checkbox/index.js.map +1 -0
  220. package/build/main//321/201omponents/Checkbox/types.d.ts +14 -0
  221. package/build/main//321/201omponents/Checkbox/types.js +2 -0
  222. package/build/main//321/201omponents/Checkbox/types.js.map +1 -0
  223. package/build/main//321/201omponents/Chip/Chip.d.ts +5 -0
  224. package/build/main//321/201omponents/Chip/Chip.js +288 -0
  225. package/build/main//321/201omponents/Chip/Chip.js.map +1 -0
  226. package/build/main//321/201omponents/Chip/index.d.ts +1 -0
  227. package/build/main//321/201omponents/Chip/index.js +2 -0
  228. package/build/main//321/201omponents/Chip/index.js.map +1 -0
  229. package/build/main//321/201omponents/Chip/types.d.ts +39 -0
  230. package/build/main//321/201omponents/Chip/types.js +2 -0
  231. package/build/main//321/201omponents/Chip/types.js.map +1 -0
  232. package/build/main//321/201omponents/ChipDndContext/ChipDndContext.d.ts +13 -0
  233. package/build/main//321/201omponents/ChipDndContext/ChipDndContext.js +76 -0
  234. package/build/main//321/201omponents/ChipDndContext/ChipDndContext.js.map +1 -0
  235. package/build/main//321/201omponents/ChipDndContext/index.d.ts +1 -0
  236. package/build/main//321/201omponents/ChipDndContext/index.js +2 -0
  237. package/build/main//321/201omponents/ChipDndContext/index.js.map +1 -0
  238. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.d.ts +4 -0
  239. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js +64 -0
  240. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js.map +1 -0
  241. package/build/main//321/201omponents/ConfirmationModal/index.d.ts +1 -0
  242. package/build/main//321/201omponents/ConfirmationModal/index.js +2 -0
  243. package/build/main//321/201omponents/ConfirmationModal/index.js.map +1 -0
  244. package/build/main//321/201omponents/ConfirmationModal/types.d.ts +31 -0
  245. package/build/main//321/201omponents/ConfirmationModal/types.js +2 -0
  246. package/build/main//321/201omponents/ConfirmationModal/types.js.map +1 -0
  247. package/build/main//321/201omponents/ContextMenu/ContextMenu.d.ts +4 -0
  248. package/build/main//321/201omponents/ContextMenu/ContextMenu.js +122 -0
  249. package/build/main//321/201omponents/ContextMenu/ContextMenu.js.map +1 -0
  250. package/build/main//321/201omponents/ContextMenu/index.d.ts +1 -0
  251. package/build/main//321/201omponents/ContextMenu/index.js +2 -0
  252. package/build/main//321/201omponents/ContextMenu/index.js.map +1 -0
  253. package/build/main//321/201omponents/ContextMenu/types.d.ts +41 -0
  254. package/build/main//321/201omponents/ContextMenu/types.js +2 -0
  255. package/build/main//321/201omponents/ContextMenu/types.js.map +1 -0
  256. package/build/main//321/201omponents/ContextMenuItem/ContextMenuItem.d.ts +4 -0
  257. package/build/main//321/201omponents/ContextMenuItem/ContextMenuItem.js +49 -0
  258. package/build/main//321/201omponents/ContextMenuItem/ContextMenuItem.js.map +1 -0
  259. package/build/main//321/201omponents/ContextMenuItem/index.d.ts +1 -0
  260. package/build/main//321/201omponents/ContextMenuItem/index.js +2 -0
  261. package/build/main//321/201omponents/ContextMenuItem/index.js.map +1 -0
  262. package/build/main//321/201omponents/ContextMenuItem/types.d.ts +28 -0
  263. package/build/main//321/201omponents/ContextMenuItem/types.js +6 -0
  264. package/build/main//321/201omponents/ContextMenuItem/types.js.map +1 -0
  265. package/build/main//321/201omponents/CustomSelect/CustomSelect.d.ts +12 -0
  266. package/build/main//321/201omponents/CustomSelect/CustomSelect.js +281 -0
  267. package/build/main//321/201omponents/CustomSelect/CustomSelect.js.map +1 -0
  268. package/build/main//321/201omponents/CustomSelect/index.d.ts +1 -0
  269. package/build/main//321/201omponents/CustomSelect/index.js +2 -0
  270. package/build/main//321/201omponents/CustomSelect/index.js.map +1 -0
  271. package/build/main//321/201omponents/CustomSelect/selectStyles.d.ts +16 -0
  272. package/build/main//321/201omponents/CustomSelect/selectStyles.js +78 -0
  273. package/build/main//321/201omponents/CustomSelect/selectStyles.js.map +1 -0
  274. package/build/main//321/201omponents/CustomSelect/types.d.ts +86 -0
  275. package/build/main//321/201omponents/CustomSelect/types.js +2 -0
  276. package/build/main//321/201omponents/CustomSelect/types.js.map +1 -0
  277. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.d.ts +4 -0
  278. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js +67 -0
  279. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js.map +1 -0
  280. package/build/main//321/201omponents/CustomSelectProfiles/index.d.ts +1 -0
  281. package/build/main//321/201omponents/CustomSelectProfiles/index.js +2 -0
  282. package/build/main//321/201omponents/CustomSelectProfiles/index.js.map +1 -0
  283. package/build/main//321/201omponents/CustomSelectProfiles/selectStyles.d.ts +12 -0
  284. package/build/main//321/201omponents/CustomSelectProfiles/selectStyles.js +42 -0
  285. package/build/main//321/201omponents/CustomSelectProfiles/selectStyles.js.map +1 -0
  286. package/build/main//321/201omponents/CustomSelectProfiles/types.d.ts +13 -0
  287. package/build/main//321/201omponents/CustomSelectProfiles/types.js +2 -0
  288. package/build/main//321/201omponents/CustomSelectProfiles/types.js.map +1 -0
  289. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.d.ts +4 -0
  290. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js +57 -0
  291. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js.map +1 -0
  292. package/build/main//321/201omponents/DragAndDrop/index.d.ts +1 -0
  293. package/build/main//321/201omponents/DragAndDrop/index.js +2 -0
  294. package/build/main//321/201omponents/DragAndDrop/index.js.map +1 -0
  295. package/build/main//321/201omponents/DragAndDrop/types.d.ts +24 -0
  296. package/build/main//321/201omponents/DragAndDrop/types.js +2 -0
  297. package/build/main//321/201omponents/DragAndDrop/types.js.map +1 -0
  298. package/build/main//321/201omponents/DraggablePopup/DraggablePopup.d.ts +4 -0
  299. package/build/main//321/201omponents/DraggablePopup/DraggablePopup.js +228 -0
  300. package/build/main//321/201omponents/DraggablePopup/DraggablePopup.js.map +1 -0
  301. package/build/main//321/201omponents/DraggablePopup/index.d.ts +1 -0
  302. package/build/main//321/201omponents/DraggablePopup/index.js +2 -0
  303. package/build/main//321/201omponents/DraggablePopup/index.js.map +1 -0
  304. package/build/main//321/201omponents/DraggablePopup/types.d.ts +90 -0
  305. package/build/main//321/201omponents/DraggablePopup/types.js +2 -0
  306. package/build/main//321/201omponents/DraggablePopup/types.js.map +1 -0
  307. package/build/main//321/201omponents/Error/Error.d.ts +4 -0
  308. package/build/main//321/201omponents/Error/Error.js +23 -0
  309. package/build/main//321/201omponents/Error/Error.js.map +1 -0
  310. package/build/main//321/201omponents/Error/index.d.ts +1 -0
  311. package/build/main//321/201omponents/Error/index.js +2 -0
  312. package/build/main//321/201omponents/Error/index.js.map +1 -0
  313. package/build/main//321/201omponents/Error/types.d.ts +10 -0
  314. package/build/main//321/201omponents/Error/types.js +2 -0
  315. package/build/main//321/201omponents/Error/types.js.map +1 -0
  316. package/build/main//321/201omponents/Flex/Flex.d.ts +2 -0
  317. package/build/main//321/201omponents/Flex/Flex.js +35 -0
  318. package/build/main//321/201omponents/Flex/Flex.js.map +1 -0
  319. package/build/main//321/201omponents/Flex/HFlex/HFlex.d.ts +5 -0
  320. package/build/main//321/201omponents/Flex/HFlex/HFlex.js +16 -0
  321. package/build/main//321/201omponents/Flex/HFlex/HFlex.js.map +1 -0
  322. package/build/main//321/201omponents/Flex/HFlex/index.d.ts +1 -0
  323. package/build/main//321/201omponents/Flex/HFlex/index.js +2 -0
  324. package/build/main//321/201omponents/Flex/HFlex/index.js.map +1 -0
  325. package/build/main//321/201omponents/Flex/VFlex/VFlex.d.ts +5 -0
  326. package/build/main//321/201omponents/Flex/VFlex/VFlex.js +16 -0
  327. package/build/main//321/201omponents/Flex/VFlex/VFlex.js.map +1 -0
  328. package/build/main//321/201omponents/Flex/VFlex/index.d.ts +1 -0
  329. package/build/main//321/201omponents/Flex/VFlex/index.js +2 -0
  330. package/build/main//321/201omponents/Flex/VFlex/index.js.map +1 -0
  331. package/build/main//321/201omponents/Flex/index.d.ts +3 -0
  332. package/build/main//321/201omponents/Flex/index.js +4 -0
  333. package/build/main//321/201omponents/Flex/index.js.map +1 -0
  334. package/build/main//321/201omponents/Flex/types.d.ts +21 -0
  335. package/build/main//321/201omponents/Flex/types.js +2 -0
  336. package/build/main//321/201omponents/Flex/types.js.map +1 -0
  337. package/build/main//321/201omponents/Header/Header.d.ts +5 -0
  338. package/build/main//321/201omponents/Header/Header.js +125 -0
  339. package/build/main//321/201omponents/Header/Header.js.map +1 -0
  340. package/build/main//321/201omponents/Header/index.d.ts +1 -0
  341. package/build/main//321/201omponents/Header/index.js +2 -0
  342. package/build/main//321/201omponents/Header/index.js.map +1 -0
  343. package/build/main//321/201omponents/Header/types.d.ts +47 -0
  344. package/build/main//321/201omponents/Header/types.js +2 -0
  345. package/build/main//321/201omponents/Header/types.js.map +1 -0
  346. package/build/main//321/201omponents/Input/Input.d.ts +4 -0
  347. package/build/main//321/201omponents/Input/Input.js +256 -0
  348. package/build/main//321/201omponents/Input/Input.js.map +1 -0
  349. package/build/main//321/201omponents/Input/index.d.ts +1 -0
  350. package/build/main//321/201omponents/Input/index.js +2 -0
  351. package/build/main//321/201omponents/Input/index.js.map +1 -0
  352. package/build/main//321/201omponents/Input/types.d.ts +37 -0
  353. package/build/main//321/201omponents/Input/types.js +2 -0
  354. package/build/main//321/201omponents/Input/types.js.map +1 -0
  355. package/build/main//321/201omponents/ListItem/ListItem.d.ts +23 -0
  356. package/build/main//321/201omponents/ListItem/ListItem.js +214 -0
  357. package/build/main//321/201omponents/ListItem/ListItem.js.map +1 -0
  358. package/build/main//321/201omponents/ListItem/index.d.ts +1 -0
  359. package/build/main//321/201omponents/ListItem/index.js +2 -0
  360. package/build/main//321/201omponents/ListItem/index.js.map +1 -0
  361. package/build/main//321/201omponents/ListItem/types.d.ts +47 -0
  362. package/build/main//321/201omponents/ListItem/types.js +2 -0
  363. package/build/main//321/201omponents/ListItem/types.js.map +1 -0
  364. package/build/main//321/201omponents/Loader/Loader.d.ts +4 -0
  365. package/build/main//321/201omponents/Loader/Loader.js +44 -0
  366. package/build/main//321/201omponents/Loader/Loader.js.map +1 -0
  367. package/build/main//321/201omponents/Loader/index.d.ts +1 -0
  368. package/build/main//321/201omponents/Loader/index.js +2 -0
  369. package/build/main//321/201omponents/Loader/index.js.map +1 -0
  370. package/build/main//321/201omponents/Loader/types.d.ts +18 -0
  371. package/build/main//321/201omponents/Loader/types.js +2 -0
  372. package/build/main//321/201omponents/Loader/types.js.map +1 -0
  373. package/build/main//321/201omponents/Modal/Modal.d.ts +5 -0
  374. package/build/main//321/201omponents/Modal/Modal.js +397 -0
  375. package/build/main//321/201omponents/Modal/Modal.js.map +1 -0
  376. package/build/main//321/201omponents/Modal/index.d.ts +1 -0
  377. package/build/main//321/201omponents/Modal/index.js +2 -0
  378. package/build/main//321/201omponents/Modal/index.js.map +1 -0
  379. package/build/main//321/201omponents/Modal/types.d.ts +77 -0
  380. package/build/main//321/201omponents/Modal/types.js +2 -0
  381. package/build/main//321/201omponents/Modal/types.js.map +1 -0
  382. package/build/main//321/201omponents/Notification/Notification.d.ts +4 -0
  383. package/build/main//321/201omponents/Notification/Notification.js +208 -0
  384. package/build/main//321/201omponents/Notification/Notification.js.map +1 -0
  385. package/build/main//321/201omponents/Notification/constants.d.ts +34 -0
  386. package/build/main//321/201omponents/Notification/constants.js +59 -0
  387. package/build/main//321/201omponents/Notification/constants.js.map +1 -0
  388. package/build/main//321/201omponents/Notification/index.d.ts +1 -0
  389. package/build/main//321/201omponents/Notification/index.js +2 -0
  390. package/build/main//321/201omponents/Notification/index.js.map +1 -0
  391. package/build/main//321/201omponents/Notification/types.d.ts +64 -0
  392. package/build/main//321/201omponents/Notification/types.js +2 -0
  393. package/build/main//321/201omponents/Notification/types.js.map +1 -0
  394. package/build/main//321/201omponents/Profile/Profile.d.ts +4 -0
  395. package/build/main//321/201omponents/Profile/Profile.js +42 -0
  396. package/build/main//321/201omponents/Profile/Profile.js.map +1 -0
  397. package/build/main//321/201omponents/Profile/index.d.ts +1 -0
  398. package/build/main//321/201omponents/Profile/index.js +2 -0
  399. package/build/main//321/201omponents/Profile/index.js.map +1 -0
  400. package/build/main//321/201omponents/Profile/types.d.ts +14 -0
  401. package/build/main//321/201omponents/Profile/types.js +2 -0
  402. package/build/main//321/201omponents/Profile/types.js.map +1 -0
  403. package/build/main//321/201omponents/ProgressBar/ProgressBar.d.ts +4 -0
  404. package/build/main//321/201omponents/ProgressBar/ProgressBar.js +66 -0
  405. package/build/main//321/201omponents/ProgressBar/ProgressBar.js.map +1 -0
  406. package/build/main//321/201omponents/ProgressBar/index.d.ts +1 -0
  407. package/build/main//321/201omponents/ProgressBar/index.js +2 -0
  408. package/build/main//321/201omponents/ProgressBar/index.js.map +1 -0
  409. package/build/main//321/201omponents/ProgressBar/types.d.ts +7 -0
  410. package/build/main//321/201omponents/ProgressBar/types.js +2 -0
  411. package/build/main//321/201omponents/ProgressBar/types.js.map +1 -0
  412. package/build/main//321/201omponents/RadioButton/RadioButton.d.ts +4 -0
  413. package/build/main//321/201omponents/RadioButton/RadioButton.js +33 -0
  414. package/build/main//321/201omponents/RadioButton/RadioButton.js.map +1 -0
  415. package/build/main//321/201omponents/RadioButton/index.d.ts +1 -0
  416. package/build/main//321/201omponents/RadioButton/index.js +2 -0
  417. package/build/main//321/201omponents/RadioButton/index.js.map +1 -0
  418. package/build/main//321/201omponents/RadioButton/types.d.ts +12 -0
  419. package/build/main//321/201omponents/RadioButton/types.js +2 -0
  420. package/build/main//321/201omponents/RadioButton/types.js.map +1 -0
  421. package/build/main//321/201omponents/ScrollBar/ScrollBar.d.ts +5 -0
  422. package/build/main//321/201omponents/ScrollBar/ScrollBar.js +140 -0
  423. package/build/main//321/201omponents/ScrollBar/ScrollBar.js.map +1 -0
  424. package/build/main//321/201omponents/ScrollBar/index.d.ts +1 -0
  425. package/build/main//321/201omponents/ScrollBar/index.js +2 -0
  426. package/build/main//321/201omponents/ScrollBar/index.js.map +1 -0
  427. package/build/main//321/201omponents/ScrollBar/types.d.ts +24 -0
  428. package/build/main//321/201omponents/ScrollBar/types.js +2 -0
  429. package/build/main//321/201omponents/ScrollBar/types.js.map +1 -0
  430. package/build/main//321/201omponents/Skeleton/Skeleton.d.ts +4 -0
  431. package/build/main//321/201omponents/Skeleton/Skeleton.js +59 -0
  432. package/build/main//321/201omponents/Skeleton/Skeleton.js.map +1 -0
  433. package/build/main//321/201omponents/Skeleton/index.d.ts +1 -0
  434. package/build/main//321/201omponents/Skeleton/index.js +2 -0
  435. package/build/main//321/201omponents/Skeleton/index.js.map +1 -0
  436. package/build/main//321/201omponents/Skeleton/types.d.ts +17 -0
  437. package/build/main//321/201omponents/Skeleton/types.js +2 -0
  438. package/build/main//321/201omponents/Skeleton/types.js.map +1 -0
  439. package/build/main//321/201omponents/Stories/Stories.d.ts +4 -0
  440. package/build/main//321/201omponents/Stories/Stories.js +406 -0
  441. package/build/main//321/201omponents/Stories/Stories.js.map +1 -0
  442. package/build/main//321/201omponents/Stories/index.d.ts +1 -0
  443. package/build/main//321/201omponents/Stories/index.js +2 -0
  444. package/build/main//321/201omponents/Stories/index.js.map +1 -0
  445. package/build/main//321/201omponents/Stories/types.d.ts +71 -0
  446. package/build/main//321/201omponents/Stories/types.js +16 -0
  447. package/build/main//321/201omponents/Stories/types.js.map +1 -0
  448. package/build/main//321/201omponents/Switcher/Switcher.d.ts +4 -0
  449. package/build/main//321/201omponents/Switcher/Switcher.js +34 -0
  450. package/build/main//321/201omponents/Switcher/Switcher.js.map +1 -0
  451. package/build/main//321/201omponents/Switcher/index.d.ts +1 -0
  452. package/build/main//321/201omponents/Switcher/index.js +2 -0
  453. package/build/main//321/201omponents/Switcher/index.js.map +1 -0
  454. package/build/main//321/201omponents/Switcher/types.d.ts +8 -0
  455. package/build/main//321/201omponents/Switcher/types.js +2 -0
  456. package/build/main//321/201omponents/Switcher/types.js.map +1 -0
  457. package/build/main//321/201omponents/SyncLoader/SyncLoader.d.ts +5 -0
  458. package/build/main//321/201omponents/SyncLoader/SyncLoader.js +65 -0
  459. package/build/main//321/201omponents/SyncLoader/SyncLoader.js.map +1 -0
  460. package/build/main//321/201omponents/SyncLoader/index.d.ts +1 -0
  461. package/build/main//321/201omponents/SyncLoader/index.js +2 -0
  462. package/build/main//321/201omponents/SyncLoader/index.js.map +1 -0
  463. package/build/main//321/201omponents/SyncLoader/types.d.ts +8 -0
  464. package/build/main//321/201omponents/SyncLoader/types.js +2 -0
  465. package/build/main//321/201omponents/SyncLoader/types.js.map +1 -0
  466. package/build/main//321/201omponents/Textarea/Textarea.d.ts +4 -0
  467. package/build/main//321/201omponents/Textarea/Textarea.js +59 -0
  468. package/build/main//321/201omponents/Textarea/Textarea.js.map +1 -0
  469. package/build/main//321/201omponents/Textarea/index.d.ts +1 -0
  470. package/build/main//321/201omponents/Textarea/index.js +2 -0
  471. package/build/main//321/201omponents/Textarea/index.js.map +1 -0
  472. package/build/main//321/201omponents/Textarea/types.d.ts +13 -0
  473. package/build/main//321/201omponents/Textarea/types.js +2 -0
  474. package/build/main//321/201omponents/Textarea/types.js.map +1 -0
  475. package/build/main//321/201omponents/Toggle/Toggle.d.ts +4 -0
  476. package/build/main//321/201omponents/Toggle/Toggle.js +35 -0
  477. package/build/main//321/201omponents/Toggle/Toggle.js.map +1 -0
  478. package/build/main//321/201omponents/Toggle/index.d.ts +1 -0
  479. package/build/main//321/201omponents/Toggle/index.js +2 -0
  480. package/build/main//321/201omponents/Toggle/index.js.map +1 -0
  481. package/build/main//321/201omponents/Toggle/types.d.ts +12 -0
  482. package/build/main//321/201omponents/Toggle/types.js +2 -0
  483. package/build/main//321/201omponents/Toggle/types.js.map +1 -0
  484. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.d.ts +4 -0
  485. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js +40 -0
  486. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js.map +1 -0
  487. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.d.ts +4 -0
  488. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js +98 -0
  489. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js.map +1 -0
  490. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.d.ts +5 -0
  491. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js +24 -0
  492. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js.map +1 -0
  493. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.d.ts +4 -0
  494. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js +104 -0
  495. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js.map +1 -0
  496. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.d.ts +4 -0
  497. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js +133 -0
  498. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js.map +1 -0
  499. package/build/main//321/201omponents/UserDropdown/Option/Option.d.ts +4 -0
  500. package/build/main//321/201omponents/UserDropdown/Option/Option.js +85 -0
  501. package/build/main//321/201omponents/UserDropdown/Option/Option.js.map +1 -0
  502. package/build/main//321/201omponents/UserDropdown/SearchInCatalogButton/SearchInCatalogButton.d.ts +4 -0
  503. package/build/main//321/201omponents/UserDropdown/SearchInCatalogButton/SearchInCatalogButton.js +41 -0
  504. package/build/main//321/201omponents/UserDropdown/SearchInCatalogButton/SearchInCatalogButton.js.map +1 -0
  505. package/build/main//321/201omponents/UserDropdown/UserDropdown.d.ts +5 -0
  506. package/build/main//321/201omponents/UserDropdown/UserDropdown.js +527 -0
  507. package/build/main//321/201omponents/UserDropdown/UserDropdown.js.map +1 -0
  508. package/build/main//321/201omponents/UserDropdown/components/Delimiter.d.ts +8 -0
  509. package/build/main//321/201omponents/UserDropdown/components/Delimiter.js +10 -0
  510. package/build/main//321/201omponents/UserDropdown/components/Delimiter.js.map +1 -0
  511. package/build/main//321/201omponents/UserDropdown/components/Hint.d.ts +6 -0
  512. package/build/main//321/201omponents/UserDropdown/components/Hint.js +21 -0
  513. package/build/main//321/201omponents/UserDropdown/components/Hint.js.map +1 -0
  514. package/build/main//321/201omponents/UserDropdown/components/Input.d.ts +2 -0
  515. package/build/main//321/201omponents/UserDropdown/components/Input.js +24 -0
  516. package/build/main//321/201omponents/UserDropdown/components/Input.js.map +1 -0
  517. package/build/main//321/201omponents/UserDropdown/components/Mask.d.ts +8 -0
  518. package/build/main//321/201omponents/UserDropdown/components/Mask.js +19 -0
  519. package/build/main//321/201omponents/UserDropdown/components/Mask.js.map +1 -0
  520. package/build/main//321/201omponents/UserDropdown/components/Title.d.ts +5 -0
  521. package/build/main//321/201omponents/UserDropdown/components/Title.js +18 -0
  522. package/build/main//321/201omponents/UserDropdown/components/Title.js.map +1 -0
  523. package/build/main//321/201omponents/UserDropdown/constants.d.ts +65 -0
  524. package/build/main//321/201omponents/UserDropdown/constants.js +83 -0
  525. package/build/main//321/201omponents/UserDropdown/constants.js.map +1 -0
  526. package/build/main//321/201omponents/UserDropdown/helpers.d.ts +148 -0
  527. package/build/main//321/201omponents/UserDropdown/helpers.js +313 -0
  528. package/build/main//321/201omponents/UserDropdown/helpers.js.map +1 -0
  529. package/build/main//321/201omponents/UserDropdown/index.d.ts +1 -0
  530. package/build/main//321/201omponents/UserDropdown/index.js +2 -0
  531. package/build/main//321/201omponents/UserDropdown/index.js.map +1 -0
  532. package/build/main//321/201omponents/UserDropdown/selectStyles.d.ts +15 -0
  533. package/build/main//321/201omponents/UserDropdown/selectStyles.js +99 -0
  534. package/build/main//321/201omponents/UserDropdown/selectStyles.js.map +1 -0
  535. package/build/main//321/201omponents/UserDropdown/types.d.ts +356 -0
  536. package/build/main//321/201omponents/UserDropdown/types.js +2 -0
  537. package/build/main//321/201omponents/UserDropdown/types.js.map +1 -0
  538. package/build/main//321/201omponents/types.d.ts +2 -0
  539. package/build/main//321/201omponents/types.js +2 -0
  540. package/build/main//321/201omponents/types.js.map +1 -0
  541. package/package.json +13 -8
@@ -0,0 +1,4 @@
1
+ import { IActionModalProps } from './types';
2
+ import '../../styles/styles.scss';
3
+ declare const ActionModal: ({ isModalOpen, isClosableOutside, isCloseIconHidden, title, buttonName, confirmButtonFunction, cancelButtonFunction, platform, fontFamily, placeholder, defaultValue, isWaitingResponse, isButtonDisabled, popupClassName, className, popupStyles, styles, titleStyles, iconColor, buttonWidth, backgroundColor, }: IActionModalProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default ActionModal;
@@ -0,0 +1,53 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import { useEffect, useRef, useState } from 'react';
14
+ import Popup from 'reactjs-popup';
15
+ import classNames from 'classnames';
16
+ import Button from '../Button';
17
+ import Input from '../Input';
18
+ import { generateClassNames, generateColor, generateFontFamilyStyle, generateIsCloseIconHidden, renderCloseIconSpace } from '../../helpers';
19
+ import { COLORS, EVENT_LISTENER_TYPES, PLATFORM } from '../../constants';
20
+ import { ReactComponent as CloseIcon } from '../../assets/icons/close-modal.svg';
21
+ import '../../styles/styles.scss';
22
+ var ActionModal = function (_a) {
23
+ var isModalOpen = _a.isModalOpen, _b = _a.isClosableOutside, isClosableOutside = _b === void 0 ? true : _b, isCloseIconHidden = _a.isCloseIconHidden, title = _a.title, buttonName = _a.buttonName, confirmButtonFunction = _a.confirmButtonFunction, cancelButtonFunction = _a.cancelButtonFunction, _c = _a.platform, platform = _c === void 0 ? PLATFORM.web : _c, fontFamily = _a.fontFamily, placeholder = _a.placeholder, _d = _a.defaultValue, defaultValue = _d === void 0 ? '' : _d, isWaitingResponse = _a.isWaitingResponse, isButtonDisabled = _a.isButtonDisabled, popupClassName = _a.popupClassName, className = _a.className, popupStyles = _a.popupStyles, styles = _a.styles, titleStyles = _a.titleStyles, iconColor = _a.iconColor, _e = _a.buttonWidth, buttonWidth = _e === void 0 ? 100 : _e, backgroundColor = _a.backgroundColor;
24
+ var isCloseIconInvisible = generateIsCloseIconHidden(platform, isCloseIconHidden);
25
+ var ref = useRef(null);
26
+ var titleRef = useRef(null);
27
+ var closeIconRef = useRef(null);
28
+ var _f = useState(defaultValue), value = _f[0], setValue = _f[1];
29
+ var popupOverlayStyle = __assign({ '--action-modal-background': generateColor(backgroundColor, COLORS.colorBgBlackoutTransparent) }, popupStyles);
30
+ var handleConfirmClick = function () {
31
+ confirmButtonFunction(value);
32
+ setValue('');
33
+ };
34
+ var handleCloseModal = function () {
35
+ setValue('');
36
+ cancelButtonFunction();
37
+ };
38
+ var handleChange = function (value) { return setValue(value); };
39
+ useEffect(function () {
40
+ var checkIfClickedOutside = function (_a) {
41
+ var target = _a.target;
42
+ var refCurrent = ref.current;
43
+ if (isModalOpen && isClosableOutside && refCurrent && !refCurrent.contains(target) && !(value === null || value === void 0 ? void 0 : value.length))
44
+ handleCloseModal();
45
+ };
46
+ document === null || document === void 0 ? void 0 : document.addEventListener(EVENT_LISTENER_TYPES.click, checkIfClickedOutside, true);
47
+ return function () { return document === null || document === void 0 ? void 0 : document.removeEventListener(EVENT_LISTENER_TYPES.click, checkIfClickedOutside, true); };
48
+ // eslint-disable-next-line
49
+ }, [isModalOpen, isClosableOutside, cancelButtonFunction, value]);
50
+ return (_jsx(Popup, __assign({ className: classNames('action-modal', popupClassName), overlayStyle: popupOverlayStyle, closeOnDocumentClick: isClosableOutside, modal: true, open: isModalOpen, closeOnEscape: isClosableOutside, onClose: handleCloseModal }, { children: _jsx("div", __assign({ ref: ref, className: classNames('smartapp-action-modal', className), style: __assign(__assign({}, generateFontFamilyStyle(fontFamily)), styles) }, { children: _jsxs("div", __assign({ className: "smartapp-action-modal__content" }, { children: [_jsxs("div", { children: [!isCloseIconInvisible && renderCloseIconSpace({ elementRef: titleRef, closeIconRef: closeIconRef }), _jsx("p", __assign({ ref: titleRef, className: generateClassNames({ className: 'smartapp-action-modal__content--title', delimiter: '__', additionalClassName: platform }), style: titleStyles }, { children: title }))] }), !isCloseIconInvisible && (_jsx("div", __assign({ ref: closeIconRef, onClick: handleCloseModal, className: "smartapp-close-modal-icon" }, { children: _jsx(CloseIcon, { style: { color: generateColor(iconColor) } }) }))), _jsx("div", __assign({ className: "smartapp-action-modal__content--input" }, { children: _jsx(Input, { autoFocus: true, fontFamily: fontFamily, defaultValue: value, placeholder: placeholder, disabled: isWaitingResponse, onChange: handleChange }) })), _jsx("div", __assign({ className: "smartapp-action-modal__content--buttons" }, { children: _jsx(Button, { fontFamily: fontFamily, width: buttonWidth, isWaitingResponse: isWaitingResponse, disabled: isButtonDisabled, title: buttonName, onClick: handleConfirmClick }) }))] })) })) })));
51
+ };
52
+ export default ActionModal;
53
+ //# sourceMappingURL=ActionModal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ActionModal.js","sourceRoot":"","sources":["../../../../src/сomponents/ActionModal/ActionModal.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAiB,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AACzE,OAAO,KAAK,MAAM,eAAe,CAAA;AACjC,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,MAAM,MAAM,WAAW,CAAA;AAC9B,OAAO,KAAK,MAAM,UAAU,CAAA;AAC5B,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,uBAAuB,EAAE,yBAAyB,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAA;AAC3I,OAAO,EAAE,MAAM,EAAE,oBAAoB,EAAE,QAAQ,EAAW,MAAM,iBAAiB,CAAA;AAEjF,OAAO,EAAE,cAAc,IAAI,SAAS,EAAE,MAAM,oCAAoC,CAAA;AAChF,OAAO,0BAA0B,CAAA;AAEjC,IAAM,WAAW,GAAG,UAAC,EAsBD;QArBlB,WAAW,iBAAA,EACX,yBAAwB,EAAxB,iBAAiB,mBAAG,IAAI,KAAA,EACxB,iBAAiB,uBAAA,EACjB,KAAK,WAAA,EACL,UAAU,gBAAA,EACV,qBAAqB,2BAAA,EACrB,oBAAoB,0BAAA,EACpB,gBAAuB,EAAvB,QAAQ,mBAAG,QAAQ,CAAC,GAAG,KAAA,EACvB,UAAU,gBAAA,EACV,WAAW,iBAAA,EACX,oBAAiB,EAAjB,YAAY,mBAAG,EAAE,KAAA,EACjB,iBAAiB,uBAAA,EACjB,gBAAgB,sBAAA,EAChB,cAAc,oBAAA,EACd,SAAS,eAAA,EACT,WAAW,iBAAA,EACX,MAAM,YAAA,EACN,WAAW,iBAAA,EACX,SAAS,eAAA,EACT,mBAAi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D,CACP,EACD,uBAAK,SAAS,EAAC,uCAAuC,gBACpD,KAAC,KAAK,IACJ,SAAS,QACT,UAAU,EAAE,UAAU,EACtB,YAAY,EAAE,KAAK,EACnB,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,iBAAiB,EAC3B,QAAQ,EAAE,YAAY,GACtB,IACE,EACN,uBAAK,SAAS,EAAC,yCAAyC,gBACtD,KAAC,MAAM,IACL,UAAU,EAAE,UAAU,EACtB,KAAK,EAAE,WAAW,EAClB,iBAAiB,EAAE,iBAAiB,EACpC,QAAQ,EAAE,gBAAgB,EAC1B,KAAK,EAAE,UAAU,EACjB,OAAO,EAAE,kBAAkB,GAC3B,IACE,KACF,IACF,IACA,CACT,CAAA;AACH,CAAC,CAAA;AAED,eAAe,WAAW,CAAA"}
@@ -0,0 +1 @@
1
+ export { default } from './ActionModal';
@@ -0,0 +1,2 @@
1
+ export { default } from './ActionModal';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/ActionModal/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA"}
@@ -0,0 +1,23 @@
1
+ import { IFontFamilyProps, IPlatformProps, TStyles } from '../../constants';
2
+ import { IntRange } from '../types';
3
+ export interface IActionModalProps extends IPlatformProps, IFontFamilyProps {
4
+ isModalOpen: boolean;
5
+ isClosableOutside?: boolean;
6
+ isCloseIconHidden?: boolean;
7
+ title: string;
8
+ buttonName: string;
9
+ confirmButtonFunction: (str: string) => void;
10
+ cancelButtonFunction: () => void;
11
+ placeholder?: string;
12
+ defaultValue?: string;
13
+ isWaitingResponse?: boolean;
14
+ isButtonDisabled?: boolean;
15
+ popupClassName?: string;
16
+ className?: string;
17
+ popupStyles?: TStyles;
18
+ styles?: TStyles;
19
+ titleStyles?: TStyles;
20
+ iconColor?: string;
21
+ buttonWidth?: IntRange<1, 101>;
22
+ backgroundColor?: string;
23
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/ActionModal/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ import { IAttachedFileProps } from './types';
2
+ import '../../styles/styles.scss';
3
+ export declare enum DISPLAY_SIZE {
4
+ small = "small",
5
+ normal = "normal"
6
+ }
7
+ declare const AttachedFile: ({ id, fontFamily, language, fileName, weight, weightType, isSpaceBetween, isRemovable, isDisabled, isLoading, isDownloadable, width, displaySize, className, styles, removeColor, fileIcon, mediaFilePreview, onClick, onRemove, }: IAttachedFileProps) => import("react/jsx-runtime").JSX.Element;
8
+ export default AttachedFile;
@@ -0,0 +1,201 @@
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, _c;
13
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
+ import { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from 'react';
15
+ import classNames from 'classnames';
16
+ import { isEmpty } from 'lodash';
17
+ import { extractFileExtensionRegex, generateColor, generateFileIcon, generateFontFamilyStyle } from '../../helpers';
18
+ import { EVENT_LISTENER_TYPES, FIT_CONTENT, LANGUAGES, SPACE, VIDEO_FORMATS } from '../../constants';
19
+ import { ReactComponent as LoaderIcon } from '../../assets/icons/attachment-loader.svg';
20
+ import { ReactComponent as RemoveIcon } from '../../assets/icons/close.svg';
21
+ import { ReactComponent as DownloadIcon } from '../../assets/icons/download.svg';
22
+ import { ReactComponent as PlaySmallIcon } from '../../assets/icons/play-small.svg';
23
+ import { ReactComponent as PlayIcon } from '../../assets/icons/play.svg';
24
+ import '../../styles/styles.scss';
25
+ export var DISPLAY_SIZE;
26
+ (function (DISPLAY_SIZE) {
27
+ DISPLAY_SIZE["small"] = "small";
28
+ DISPLAY_SIZE["normal"] = "normal";
29
+ })(DISPLAY_SIZE || (DISPLAY_SIZE = {}));
30
+ var ATTACHED_FILE_PADDINGS = '20px';
31
+ var SMALL_ATTACHED_FILE_PADDINGS = '16px';
32
+ var NAME_DEFAULT_LINE_HEIGHT = '17';
33
+ var SIZE_DEFAULT_LINE_HEIGHT = '14';
34
+ var ELLIPSIS = '...';
35
+ var PRESSED_CLASS_NAME = 'smartapp-attached-file__pressed';
36
+ var SCROLL_HEIGHT_OFFSET = 2;
37
+ var BYTES_TEXT = (_a = {},
38
+ _a[LANGUAGES.ru] = 'байт',
39
+ _a[LANGUAGES.en] = 'bytes',
40
+ _a[LANGUAGES.de] = 'Byte',
41
+ _a[LANGUAGES.es] = 'byte',
42
+ _a[LANGUAGES.fr] = 'Octet',
43
+ _a[LANGUAGES.ar] = 'bytes',
44
+ _a[LANGUAGES.ms] = 'bait',
45
+ _a[LANGUAGES.tr] = 'bayt',
46
+ _a[LANGUAGES.id] = 'bytes',
47
+ _a[LANGUAGES.uz] = 'bayt',
48
+ _a[LANGUAGES.kk] = 'байт',
49
+ _a);
50
+ var KB_TEXT = (_b = {},
51
+ _b[LANGUAGES.ru] = 'КБ',
52
+ _b[LANGUAGES.en] = 'KB',
53
+ _b[LANGUAGES.de] = 'kB',
54
+ _b[LANGUAGES.es] = 'KB',
55
+ _b[LANGUAGES.fr] = 'Ko',
56
+ _b[LANGUAGES.ar] = 'KB',
57
+ _b[LANGUAGES.ms] = 'KB',
58
+ _b[LANGUAGES.tr] = 'KB',
59
+ _b[LANGUAGES.id] = 'KB',
60
+ _b[LANGUAGES.uz] = 'KB',
61
+ _b[LANGUAGES.kk] = 'КБ',
62
+ _b);
63
+ var MB_TEXT = (_c = {},
64
+ _c[LANGUAGES.ru] = 'МБ',
65
+ _c[LANGUAGES.en] = 'MB',
66
+ _c[LANGUAGES.de] = 'MB',
67
+ _c[LANGUAGES.es] = 'MB',
68
+ _c[LANGUAGES.fr] = 'Mo',
69
+ _c[LANGUAGES.ar] = 'MB',
70
+ _c[LANGUAGES.ms] = 'MB',
71
+ _c[LANGUAGES.tr] = 'MB',
72
+ _c[LANGUAGES.id] = 'MB',
73
+ _c[LANGUAGES.uz] = 'MB',
74
+ _c[LANGUAGES.kk] = 'МБ',
75
+ _c);
76
+ var generateFileSize = function (_a) {
77
+ var weight = _a.weight, weightType = _a.weightType, language = _a.language;
78
+ var KB = 1024;
79
+ var MB = 1024 * 1024;
80
+ if (weightType)
81
+ return "".concat(weight, " ").concat(weightType);
82
+ if (weight < KB)
83
+ return "".concat(Math.round(weight), " ").concat(BYTES_TEXT[language]);
84
+ if (weight < MB)
85
+ return "".concat(Math.round(weight / KB), " ").concat(KB_TEXT[language]);
86
+ return "".concat((weight / MB).toFixed(1), " ").concat(MB_TEXT[language]);
87
+ };
88
+ var AttachedFile = function (_a) {
89
+ var id = _a.id, fontFamily = _a.fontFamily, _b = _a.language, language = _b === void 0 ? LANGUAGES.ru : _b, fileName = _a.fileName, weight = _a.weight, weightType = _a.weightType, _c = _a.isSpaceBetween, isSpaceBetween = _c === void 0 ? false : _c, _d = _a.isRemovable, isRemovable = _d === void 0 ? false : _d, _e = _a.isDisabled, isDisabled = _e === void 0 ? false : _e, _f = _a.isLoading, isLoading = _f === void 0 ? false : _f, _g = _a.isDownloadable, isDownloadable = _g === void 0 ? false : _g, width = _a.width, _h = _a.displaySize, displaySize = _h === void 0 ? DISPLAY_SIZE.normal : _h, className = _a.className, styles = _a.styles, removeColor = _a.removeColor, fileIcon = _a.fileIcon, mediaFilePreview = _a.mediaFilePreview, onClick = _a.onClick, onRemove = _a.onRemove;
90
+ var attachedFileRef = useRef(null);
91
+ var fileNameRef = useRef(null);
92
+ var fileSizeRef = useRef(null);
93
+ var _j = useState(false), isDownloadIconVisible = _j[0], setIsDownloadIconVisible = _j[1];
94
+ var _k = useState(0), containerWidth = _k[0], setContainerWidth = _k[1];
95
+ var fileSize = generateFileSize({ weight: weight, weightType: weightType, language: language });
96
+ var fileExtension = extractFileExtensionRegex(fileName);
97
+ var isMediaFilePreview = !isEmpty(mediaFilePreview);
98
+ var isVideoFilePreview = VIDEO_FORMATS.includes(fileExtension);
99
+ var isNormalDisplaySize = displaySize === DISPLAY_SIZE.normal;
100
+ var attachedFilePaddings = isNormalDisplaySize ? ATTACHED_FILE_PADDINGS : SMALL_ATTACHED_FILE_PADDINGS;
101
+ var attachedFileWidth = useMemo(function () { return (width ? "calc(".concat(width, "% - ").concat(attachedFilePaddings, ")") : FIT_CONTENT); }, [attachedFilePaddings, width]);
102
+ var attachedFileClassName = classNames('smartapp-attached-file', "smartapp-attached-file__".concat(displaySize), {
103
+ 'smartapp-attached-file__clickable': onClick,
104
+ 'smartapp-attached-file__disabled': isDisabled,
105
+ 'smartapp-attached-file__loading': isLoading,
106
+ 'smartapp-attached-file__downloadable': isDownloadable,
107
+ }, className);
108
+ var attachedFileStyles = __assign(__assign({}, generateFontFamilyStyle(fontFamily)), styles);
109
+ var truncateValue = function (_a) {
110
+ var value = _a.value, units = _a.units, defaultLineHeight = _a.defaultLineHeight, valueRef = _a.valueRef;
111
+ var unitsLength = units.length;
112
+ var endIndex = unitsLength ? -unitsLength : value.length;
113
+ var valueLineHeight = parseFloat(getComputedStyle(valueRef).lineHeight || defaultLineHeight);
114
+ var truncatedValue = value.slice(0, endIndex);
115
+ valueRef.textContent = value;
116
+ var checkIsMultiline = function () {
117
+ var scrollHeight = valueRef.scrollHeight, scrollWidth = valueRef.scrollWidth, clientWidth = valueRef.clientWidth;
118
+ return Math.round(scrollHeight) - SCROLL_HEIGHT_OFFSET > valueLineHeight || scrollWidth > clientWidth;
119
+ };
120
+ while (checkIsMultiline() && truncatedValue.length > 0) {
121
+ truncatedValue = truncatedValue.slice(0, -1);
122
+ var truncatedValueWithoutLastSpace = truncatedValue.replace(/\s+$/, '');
123
+ valueRef.textContent = "".concat(truncatedValueWithoutLastSpace).concat(ELLIPSIS).concat(units);
124
+ }
125
+ };
126
+ var truncateFileMeta = useCallback(function () {
127
+ var fileNameRefCurrent = fileNameRef.current;
128
+ var fileSizeRefCurrent = fileSizeRef.current;
129
+ if (!fileNameRefCurrent || !fileSizeRefCurrent)
130
+ return;
131
+ var _a = fileSize.split(SPACE), fileWeightType = _a[1];
132
+ truncateValue({ value: fileName, units: fileExtension, valueRef: fileNameRefCurrent, defaultLineHeight: NAME_DEFAULT_LINE_HEIGHT });
133
+ truncateValue({ value: fileSize, units: fileWeightType, valueRef: fileSizeRefCurrent, defaultLineHeight: SIZE_DEFAULT_LINE_HEIGHT });
134
+ }, [fileExtension, fileName, fileSize]);
135
+ var handleMouseEnter = function () { return isDownloadable && setIsDownloadIconVisible(true); };
136
+ var handleMouseLeave = function () { return setIsDownloadIconVisible(false); };
137
+ var handleMouseDown = function () { var _a; return (_a = attachedFileRef.current) === null || _a === void 0 ? void 0 : _a.classList.add(PRESSED_CLASS_NAME); };
138
+ var handleMouseUp = function () { var _a; return (_a = attachedFileRef.current) === null || _a === void 0 ? void 0 : _a.classList.remove(PRESSED_CLASS_NAME); };
139
+ var handleAttachmentClick = function () { return !isDownloadable && !isLoading && !isDisabled && (onClick === null || onClick === void 0 ? void 0 : onClick(id)); };
140
+ var handleDownloadIconClick = function () { return onClick === null || onClick === void 0 ? void 0 : onClick(id); };
141
+ var handleAttachmentRemove = function (event) {
142
+ event.stopPropagation();
143
+ onRemove === null || onRemove === void 0 ? void 0 : onRemove(id);
144
+ };
145
+ var renderFileIcon = function () { return (mediaFilePreview ? _jsx("img", { src: mediaFilePreview, alt: "preview" }) : generateFileIcon(fileName, displaySize)); };
146
+ var renderLoaderIcon = function () {
147
+ return isLoading && (_jsx("div", __assign({ className: classNames('smartapp-attached-file__icon--loader', {
148
+ 'smartapp-attached-file__icon--loader__image-preview': isMediaFilePreview && !isVideoFilePreview,
149
+ }) }, { children: _jsx(LoaderIcon, {}) })));
150
+ };
151
+ var renderRemoveIcon = function () {
152
+ return isRemovable && (_jsx("div", __assign({ onClick: handleAttachmentRemove, className: "smartapp-attached-file__value--close-icon" }, { children: _jsx(RemoveIcon, { style: { color: generateColor(removeColor) } }) })));
153
+ };
154
+ var renderDownloadIcon = function () {
155
+ return isDownloadIconVisible && (_jsx("button", __assign({ onClick: handleDownloadIconClick, className: "smartapp-attached-file__value--download-icon" }, { children: _jsx(DownloadIcon, {}) })));
156
+ };
157
+ var renderPlayIcon = function () { return !isLoading && (isNormalDisplaySize ? _jsx(PlayIcon, {}) : _jsx(PlaySmallIcon, {})); };
158
+ useEffect(function () {
159
+ window.addEventListener(EVENT_LISTENER_TYPES.mouseup, handleMouseUp);
160
+ return function () { return window.removeEventListener(EVENT_LISTENER_TYPES.mouseup, handleMouseUp); };
161
+ }, []);
162
+ useEffect(function () {
163
+ var attachedFileRefCurrent = attachedFileRef.current;
164
+ if (!attachedFileRefCurrent)
165
+ return;
166
+ attachedFileRefCurrent.style.removeProperty('--initial-attached-file-width');
167
+ attachedFileRefCurrent.style.setProperty('--attached-file-width', attachedFileWidth);
168
+ setContainerWidth(0);
169
+ }, [attachedFileWidth, displaySize, isRemovable, fileName, fileSize, fontFamily]);
170
+ useLayoutEffect(function () {
171
+ if (containerWidth > 0)
172
+ truncateFileMeta();
173
+ }, [containerWidth, isDownloadIconVisible, truncateFileMeta]);
174
+ useLayoutEffect(function () {
175
+ var attachedFileRefCurrent = attachedFileRef.current;
176
+ if (!attachedFileRefCurrent)
177
+ return;
178
+ var resizeObserver = new ResizeObserver(function (_a) {
179
+ var entry = _a[0];
180
+ var width = entry.contentRect.width;
181
+ if (!isEmpty(attachedFileRefCurrent.style.getPropertyValue('--initial-attached-file-width')))
182
+ return;
183
+ attachedFileRefCurrent.style.setProperty('--initial-attached-file-width', "".concat(width, "px"));
184
+ attachedFileRefCurrent.style.setProperty('--attached-file-width', "".concat(width, "px"));
185
+ setContainerWidth(width);
186
+ });
187
+ var handleResize = function () {
188
+ attachedFileRefCurrent.style.setProperty('--attached-file-width', attachedFileWidth);
189
+ truncateFileMeta();
190
+ };
191
+ resizeObserver.observe(attachedFileRefCurrent);
192
+ window.addEventListener(EVENT_LISTENER_TYPES.resize, handleResize);
193
+ return function () {
194
+ resizeObserver.disconnect();
195
+ window.removeEventListener(EVENT_LISTENER_TYPES.resize, handleResize);
196
+ };
197
+ }, [attachedFileWidth, truncateFileMeta]);
198
+ return (_jsxs("div", __assign({ ref: attachedFileRef, style: attachedFileStyles, className: attachedFileClassName, onClick: handleAttachmentClick, onMouseDown: handleMouseDown, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave }, { children: [_jsxs("div", __assign({ className: classNames('smartapp-attached-file__icon', { 'smartapp-attached-file__icon--preview': isMediaFilePreview }) }, { children: [fileIcon || renderFileIcon(), isMediaFilePreview && isVideoFilePreview && _jsx("div", __assign({ className: "smartapp-attached-file__icon--play" }, { children: renderPlayIcon() })), renderLoaderIcon()] })), _jsxs("div", __assign({ className: classNames('smartapp-attached-file__value', { 'smartapp-attached-file__value--justify-space-between': isSpaceBetween }) }, { children: [_jsxs("div", __assign({ className: "smartapp-attached-file__value--info" }, { children: [_jsx("p", __assign({ ref: fileNameRef, className: "smartapp-attached-file__value--info__name" }, { children: fileName })), _jsx("p", __assign({ ref: fileSizeRef, className: "smartapp-attached-file__value--info__weight" }, { children: fileSize }))] })), renderRemoveIcon(), renderDownloadIcon()] }))] }), id));
199
+ };
200
+ export default AttachedFile;
201
+ //# sourceMappingURL=AttachedFile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AttachedFile.js","sourceRoot":"","sources":["../../../../src/сomponents/AttachedFile/AttachedFile.tsx"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,OAAc,EAAiB,WAAW,EAAE,SAAS,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA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rI,wBAAK,SAAS,EAAC,qCAAqC,iBAClD,qBAAG,GAAG,EAAE,WAAW,EAAE,SAAS,EAAC,2CAA2C,gBACvE,QAAQ,IACP,EACJ,qBAAG,GAAG,EAAE,WAAW,EAAE,SAAS,EAAC,6CAA6C,gBACzE,QAAQ,IACP,KACA,EACL,gBAAgB,EAAE,EAClB,kBAAkB,EAAE,KACjB,MAzBD,EAAE,CA0BH,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,YAAY,CAAA"}
@@ -0,0 +1 @@
1
+ export { default } from './AttachedFile';
@@ -0,0 +1,2 @@
1
+ export { default } from './AttachedFile';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/AttachedFile/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA"}
@@ -0,0 +1,23 @@
1
+ import { ReactElement } from 'react';
2
+ import { IFontFamilyProps, ILanguageProps, TStyles } from '../../constants';
3
+ import { IntRange } from '../types';
4
+ export interface IAttachedFileProps extends IFontFamilyProps, ILanguageProps {
5
+ id: string;
6
+ fileName: string;
7
+ weight: number;
8
+ weightType?: string;
9
+ isSpaceBetween?: boolean;
10
+ isRemovable?: boolean;
11
+ isDisabled?: boolean;
12
+ isLoading?: boolean;
13
+ isDownloadable?: boolean;
14
+ width?: IntRange<1, 101>;
15
+ displaySize?: 'small' | 'normal';
16
+ className?: string;
17
+ styles?: TStyles;
18
+ removeColor?: string;
19
+ fileIcon?: ReactElement;
20
+ mediaFilePreview?: string;
21
+ onClick?: (fileId: string) => void;
22
+ onRemove?: (fileId: string) => void;
23
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/AttachedFile/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { IAvatarProps } from './types';
3
+ import '../../styles/styles.scss';
4
+ declare const _default: React.MemoExoticComponent<({ theme, language, fontFamily, className, styles, avatarRef, isSelected, isHighlighted, isInactive, isSpam, isWarning, isCrown, isEye, isTooltipAvailableOnEye, size, username, initials, avatar, counter, inviteStatus, icon, outlineDefaultBackground, outlineDarkBackground, onClick, onMouseDown, }: IAvatarProps) => import("react/jsx-runtime").JSX.Element>;
5
+ export default _default;