@expressms/smartapp-ui 2.5.8 → 2.6.0

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 (401) hide show
  1. package/build/main/assets/icons/arrow-back.svg +3 -0
  2. package/build/main/assets/icons/arrow-down.svg +3 -0
  3. package/build/main/assets/icons/arrow-up.svg +3 -0
  4. package/build/main/assets/icons/attachment-loader.svg +3 -0
  5. package/build/main/assets/icons/button-loader.svg +3 -0
  6. package/build/main/assets/icons/cancel-cross.svg +3 -0
  7. package/build/main/assets/icons/check-mark.svg +4 -0
  8. package/build/main/assets/icons/clear.svg +3 -0
  9. package/build/main/assets/icons/close-stories.svg +4 -0
  10. package/build/main/assets/icons/close.svg +10 -0
  11. package/build/main/assets/icons/contact-info.svg +12 -0
  12. package/build/main/assets/icons/corporate-user.svg +10 -0
  13. package/build/main/assets/icons/crown.svg +5 -0
  14. package/build/main/assets/icons/delete-chip.svg +3 -0
  15. package/build/main/assets/icons/download.svg +4 -0
  16. package/build/main/assets/icons/error.svg +5 -0
  17. package/build/main/assets/icons/external-link.svg +3 -0
  18. package/build/main/assets/icons/eye-off.svg +10 -0
  19. package/build/main/assets/icons/eye.svg +10 -0
  20. package/build/main/assets/icons/file.svg +3 -0
  21. package/build/main/assets/icons/info.svg +5 -0
  22. package/build/main/assets/icons/loader.svg +3 -0
  23. package/build/main/assets/icons/logout.svg +4 -0
  24. package/build/main/assets/icons/magnifying-glass.svg +3 -0
  25. package/build/main/assets/icons/mail.svg +3 -0
  26. package/build/main/assets/icons/my-contact-user.svg +10 -0
  27. package/build/main/assets/icons/notification-close.svg +3 -0
  28. package/build/main/assets/icons/notification-error.svg +3 -0
  29. package/build/main/assets/icons/notification-failure.svg +3 -0
  30. package/build/main/assets/icons/notification-info.svg +5 -0
  31. package/build/main/assets/icons/notification-success.svg +4 -0
  32. package/build/main/assets/icons/notification-warning.svg +5 -0
  33. package/build/main/assets/icons/order.svg +6 -0
  34. package/build/main/assets/icons/plus.svg +4 -0
  35. package/build/main/assets/icons/refresh.svg +3 -0
  36. package/build/main/assets/icons/story-loader.svg +3 -0
  37. package/build/main/assets/icons/tick.svg +10 -0
  38. package/build/main/assets/icons/trash.svg +3 -0
  39. package/build/main/assets/storybook/index.d.ts +12 -0
  40. package/build/main/assets/storybook/index.js +13 -0
  41. package/build/main/assets/storybook/index.js.map +1 -0
  42. package/build/main/constants/constants.d.ts +136 -0
  43. package/build/main/constants/constants.js +152 -0
  44. package/build/main/constants/constants.js.map +1 -0
  45. package/build/main/constants/index.d.ts +2 -0
  46. package/build/main/constants/index.js +3 -0
  47. package/build/main/constants/index.js.map +1 -0
  48. package/build/main/constants/types.d.ts +28 -0
  49. package/build/main/constants/types.js +2 -0
  50. package/build/main/constants/types.js.map +1 -0
  51. package/build/main/helpers/index.d.ts +20 -0
  52. package/build/main/helpers/index.js +80 -0
  53. package/build/main/helpers/index.js.map +1 -0
  54. package/build/main/index.d.ts +3 -0
  55. package/build/main/index.js +4 -0
  56. package/build/main/index.js.map +1 -0
  57. package/build/main/styles/index.d.ts +1 -0
  58. package/build/main/styles/index.js +2 -0
  59. package/build/main/styles/index.js.map +1 -0
  60. package/build/main/styles/main.js +0 -0
  61. package/build/main/styles/styles.scss +14 -0
  62. package/build/main//321/201omponents/ActionModal/ActionModal.d.ts +4 -0
  63. package/build/main//321/201omponents/ActionModal/ActionModal.js +56 -0
  64. package/build/main//321/201omponents/ActionModal/ActionModal.js.map +1 -0
  65. package/build/main//321/201omponents/ActionModal/index.d.ts +1 -0
  66. package/build/main//321/201omponents/ActionModal/index.js +2 -0
  67. package/build/main//321/201omponents/ActionModal/index.js.map +1 -0
  68. package/build/main//321/201omponents/ActionModal/types.d.ts +20 -0
  69. package/build/main//321/201omponents/ActionModal/types.js +2 -0
  70. package/build/main//321/201omponents/ActionModal/types.js.map +1 -0
  71. package/build/main//321/201omponents/AttachedFile/AttachedFile.d.ts +8 -0
  72. package/build/main//321/201omponents/AttachedFile/AttachedFile.js +60 -0
  73. package/build/main//321/201omponents/AttachedFile/AttachedFile.js.map +1 -0
  74. package/build/main//321/201omponents/AttachedFile/index.d.ts +1 -0
  75. package/build/main//321/201omponents/AttachedFile/index.js +2 -0
  76. package/build/main//321/201omponents/AttachedFile/index.js.map +1 -0
  77. package/build/main//321/201omponents/AttachedFile/types.d.ts +23 -0
  78. package/build/main//321/201omponents/AttachedFile/types.js +2 -0
  79. package/build/main//321/201omponents/AttachedFile/types.js.map +1 -0
  80. package/build/main//321/201omponents/Avatar/Avatar.d.ts +4 -0
  81. package/build/main//321/201omponents/Avatar/Avatar.js +115 -0
  82. package/build/main//321/201omponents/Avatar/Avatar.js.map +1 -0
  83. package/build/main//321/201omponents/Avatar/index.d.ts +1 -0
  84. package/build/main//321/201omponents/Avatar/index.js +2 -0
  85. package/build/main//321/201omponents/Avatar/index.js.map +1 -0
  86. package/build/main//321/201omponents/Avatar/types.d.ts +36 -0
  87. package/build/main//321/201omponents/Avatar/types.js +9 -0
  88. package/build/main//321/201omponents/Avatar/types.js.map +1 -0
  89. package/build/main//321/201omponents/Button/Button.d.ts +4 -0
  90. package/build/main//321/201omponents/Button/Button.js +57 -0
  91. package/build/main//321/201omponents/Button/Button.js.map +1 -0
  92. package/build/main//321/201omponents/Button/index.d.ts +1 -0
  93. package/build/main//321/201omponents/Button/index.js +2 -0
  94. package/build/main//321/201omponents/Button/index.js.map +1 -0
  95. package/build/main//321/201omponents/Button/types.d.ts +23 -0
  96. package/build/main//321/201omponents/Button/types.js +11 -0
  97. package/build/main//321/201omponents/Button/types.js.map +1 -0
  98. package/build/main//321/201omponents/CachedImage/CachedImage.d.ts +4 -0
  99. package/build/main//321/201omponents/CachedImage/CachedImage.js +54 -0
  100. package/build/main//321/201omponents/CachedImage/CachedImage.js.map +1 -0
  101. package/build/main//321/201omponents/CachedImage/helpers.d.ts +3 -0
  102. package/build/main//321/201omponents/CachedImage/helpers.js +40 -0
  103. package/build/main//321/201omponents/CachedImage/helpers.js.map +1 -0
  104. package/build/main//321/201omponents/CachedImage/index.d.ts +1 -0
  105. package/build/main//321/201omponents/CachedImage/index.js +2 -0
  106. package/build/main//321/201omponents/CachedImage/index.js.map +1 -0
  107. package/build/main//321/201omponents/CachedImage/types.d.ts +8 -0
  108. package/build/main//321/201omponents/CachedImage/types.js +2 -0
  109. package/build/main//321/201omponents/CachedImage/types.js.map +1 -0
  110. package/build/main//321/201omponents/Calendar/Calendar.d.ts +4 -0
  111. package/build/main//321/201omponents/Calendar/Calendar.js +48 -0
  112. package/build/main//321/201omponents/Calendar/Calendar.js.map +1 -0
  113. package/build/main//321/201omponents/Calendar/index.d.ts +1 -0
  114. package/build/main//321/201omponents/Calendar/index.js +2 -0
  115. package/build/main//321/201omponents/Calendar/index.js.map +1 -0
  116. package/build/main//321/201omponents/Calendar/types.d.ts +14 -0
  117. package/build/main//321/201omponents/Calendar/types.js +2 -0
  118. package/build/main//321/201omponents/Calendar/types.js.map +1 -0
  119. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.d.ts +3 -0
  120. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js +39 -0
  121. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js.map +1 -0
  122. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.d.ts +3 -0
  123. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js +30 -0
  124. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js.map +1 -0
  125. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.d.ts +3 -0
  126. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js +64 -0
  127. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js.map +1 -0
  128. package/build/main//321/201omponents/Charts/colors.d.ts +2 -0
  129. package/build/main//321/201omponents/Charts/colors.js +3 -0
  130. package/build/main//321/201omponents/Charts/colors.js.map +1 -0
  131. package/build/main//321/201omponents/Charts/constants.d.ts +50 -0
  132. package/build/main//321/201omponents/Charts/constants.js +36 -0
  133. package/build/main//321/201omponents/Charts/constants.js.map +1 -0
  134. package/build/main//321/201omponents/Charts/helpers.d.ts +68 -0
  135. package/build/main//321/201omponents/Charts/helpers.js +91 -0
  136. package/build/main//321/201omponents/Charts/helpers.js.map +1 -0
  137. package/build/main//321/201omponents/Charts/index.d.ts +3 -0
  138. package/build/main//321/201omponents/Charts/index.js +4 -0
  139. package/build/main//321/201omponents/Charts/index.js.map +1 -0
  140. package/build/main//321/201omponents/Charts/types.d.ts +51 -0
  141. package/build/main//321/201omponents/Charts/types.js +2 -0
  142. package/build/main//321/201omponents/Charts/types.js.map +1 -0
  143. package/build/main//321/201omponents/Checkbox/Checkbox.d.ts +4 -0
  144. package/build/main//321/201omponents/Checkbox/Checkbox.js +36 -0
  145. package/build/main//321/201omponents/Checkbox/Checkbox.js.map +1 -0
  146. package/build/main//321/201omponents/Checkbox/index.d.ts +1 -0
  147. package/build/main//321/201omponents/Checkbox/index.js +2 -0
  148. package/build/main//321/201omponents/Checkbox/index.js.map +1 -0
  149. package/build/main//321/201omponents/Checkbox/types.d.ts +9 -0
  150. package/build/main//321/201omponents/Checkbox/types.js +2 -0
  151. package/build/main//321/201omponents/Checkbox/types.js.map +1 -0
  152. package/build/main//321/201omponents/Chip/Chip.d.ts +4 -0
  153. package/build/main//321/201omponents/Chip/Chip.js +40 -0
  154. package/build/main//321/201omponents/Chip/Chip.js.map +1 -0
  155. package/build/main//321/201omponents/Chip/index.d.ts +1 -0
  156. package/build/main//321/201omponents/Chip/index.js +2 -0
  157. package/build/main//321/201omponents/Chip/index.js.map +1 -0
  158. package/build/main//321/201omponents/Chip/types.d.ts +10 -0
  159. package/build/main//321/201omponents/Chip/types.js +2 -0
  160. package/build/main//321/201omponents/Chip/types.js.map +1 -0
  161. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.d.ts +4 -0
  162. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js +44 -0
  163. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js.map +1 -0
  164. package/build/main//321/201omponents/ConfirmationModal/index.d.ts +1 -0
  165. package/build/main//321/201omponents/ConfirmationModal/index.js +2 -0
  166. package/build/main//321/201omponents/ConfirmationModal/index.js.map +1 -0
  167. package/build/main//321/201omponents/ConfirmationModal/types.d.ts +16 -0
  168. package/build/main//321/201omponents/ConfirmationModal/types.js +2 -0
  169. package/build/main//321/201omponents/ConfirmationModal/types.js.map +1 -0
  170. package/build/main//321/201omponents/ContextMenu/ContextMenu.d.ts +4 -0
  171. package/build/main//321/201omponents/ContextMenu/ContextMenu.js +55 -0
  172. package/build/main//321/201omponents/ContextMenu/ContextMenu.js.map +1 -0
  173. package/build/main//321/201omponents/ContextMenu/index.d.ts +1 -0
  174. package/build/main//321/201omponents/ContextMenu/index.js +2 -0
  175. package/build/main//321/201omponents/ContextMenu/index.js.map +1 -0
  176. package/build/main//321/201omponents/ContextMenu/types.d.ts +24 -0
  177. package/build/main//321/201omponents/ContextMenu/types.js +2 -0
  178. package/build/main//321/201omponents/ContextMenu/types.js.map +1 -0
  179. package/build/main//321/201omponents/CustomSelect/CustomSelect.d.ts +4 -0
  180. package/build/main//321/201omponents/CustomSelect/CustomSelect.js +172 -0
  181. package/build/main//321/201omponents/CustomSelect/CustomSelect.js.map +1 -0
  182. package/build/main//321/201omponents/CustomSelect/index.d.ts +1 -0
  183. package/build/main//321/201omponents/CustomSelect/index.js +2 -0
  184. package/build/main//321/201omponents/CustomSelect/index.js.map +1 -0
  185. package/build/main//321/201omponents/CustomSelect/selectStyles.d.ts +16 -0
  186. package/build/main//321/201omponents/CustomSelect/selectStyles.js +61 -0
  187. package/build/main//321/201omponents/CustomSelect/selectStyles.js.map +1 -0
  188. package/build/main//321/201omponents/CustomSelect/types.d.ts +54 -0
  189. package/build/main//321/201omponents/CustomSelect/types.js +2 -0
  190. package/build/main//321/201omponents/CustomSelect/types.js.map +1 -0
  191. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.d.ts +4 -0
  192. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js +57 -0
  193. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js.map +1 -0
  194. package/build/main//321/201omponents/CustomSelectProfiles/index.d.ts +1 -0
  195. package/build/main//321/201omponents/CustomSelectProfiles/index.js +2 -0
  196. package/build/main//321/201omponents/CustomSelectProfiles/index.js.map +1 -0
  197. package/build/main//321/201omponents/CustomSelectProfiles/types.d.ts +12 -0
  198. package/build/main//321/201omponents/CustomSelectProfiles/types.js +2 -0
  199. package/build/main//321/201omponents/CustomSelectProfiles/types.js.map +1 -0
  200. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.d.ts +4 -0
  201. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js +57 -0
  202. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js.map +1 -0
  203. package/build/main//321/201omponents/DragAndDrop/index.d.ts +1 -0
  204. package/build/main//321/201omponents/DragAndDrop/index.js +2 -0
  205. package/build/main//321/201omponents/DragAndDrop/index.js.map +1 -0
  206. package/build/main//321/201omponents/DragAndDrop/types.d.ts +24 -0
  207. package/build/main//321/201omponents/DragAndDrop/types.js +2 -0
  208. package/build/main//321/201omponents/DragAndDrop/types.js.map +1 -0
  209. package/build/main//321/201omponents/Error/Error.d.ts +4 -0
  210. package/build/main//321/201omponents/Error/Error.js +22 -0
  211. package/build/main//321/201omponents/Error/Error.js.map +1 -0
  212. package/build/main//321/201omponents/Error/index.d.ts +1 -0
  213. package/build/main//321/201omponents/Error/index.js +2 -0
  214. package/build/main//321/201omponents/Error/index.js.map +1 -0
  215. package/build/main//321/201omponents/Error/types.d.ts +7 -0
  216. package/build/main//321/201omponents/Error/types.js +2 -0
  217. package/build/main//321/201omponents/Error/types.js.map +1 -0
  218. package/build/main//321/201omponents/Header/Header.d.ts +5 -0
  219. package/build/main//321/201omponents/Header/Header.js +124 -0
  220. package/build/main//321/201omponents/Header/Header.js.map +1 -0
  221. package/build/main//321/201omponents/Header/index.d.ts +1 -0
  222. package/build/main//321/201omponents/Header/index.js +2 -0
  223. package/build/main//321/201omponents/Header/index.js.map +1 -0
  224. package/build/main//321/201omponents/Header/types.d.ts +44 -0
  225. package/build/main//321/201omponents/Header/types.js +2 -0
  226. package/build/main//321/201omponents/Header/types.js.map +1 -0
  227. package/build/main//321/201omponents/Input/Input.d.ts +4 -0
  228. package/build/main//321/201omponents/Input/Input.js +210 -0
  229. package/build/main//321/201omponents/Input/Input.js.map +1 -0
  230. package/build/main//321/201omponents/Input/index.d.ts +1 -0
  231. package/build/main//321/201omponents/Input/index.js +2 -0
  232. package/build/main//321/201omponents/Input/index.js.map +1 -0
  233. package/build/main//321/201omponents/Input/types.d.ts +27 -0
  234. package/build/main//321/201omponents/Input/types.js +2 -0
  235. package/build/main//321/201omponents/Input/types.js.map +1 -0
  236. package/build/main//321/201omponents/ListItem/ListItem.d.ts +23 -0
  237. package/build/main//321/201omponents/ListItem/ListItem.js +195 -0
  238. package/build/main//321/201omponents/ListItem/ListItem.js.map +1 -0
  239. package/build/main//321/201omponents/ListItem/index.d.ts +1 -0
  240. package/build/main//321/201omponents/ListItem/index.js +2 -0
  241. package/build/main//321/201omponents/ListItem/index.js.map +1 -0
  242. package/build/main//321/201omponents/ListItem/types.d.ts +38 -0
  243. package/build/main//321/201omponents/ListItem/types.js +2 -0
  244. package/build/main//321/201omponents/ListItem/types.js.map +1 -0
  245. package/build/main//321/201omponents/Loader/Loader.d.ts +4 -0
  246. package/build/main//321/201omponents/Loader/Loader.js +40 -0
  247. package/build/main//321/201omponents/Loader/Loader.js.map +1 -0
  248. package/build/main//321/201omponents/Loader/index.d.ts +1 -0
  249. package/build/main//321/201omponents/Loader/index.js +2 -0
  250. package/build/main//321/201omponents/Loader/index.js.map +1 -0
  251. package/build/main//321/201omponents/Loader/types.d.ts +12 -0
  252. package/build/main//321/201omponents/Loader/types.js +2 -0
  253. package/build/main//321/201omponents/Loader/types.js.map +1 -0
  254. package/build/main//321/201omponents/Modal/Modal.d.ts +4 -0
  255. package/build/main//321/201omponents/Modal/Modal.js +53 -0
  256. package/build/main//321/201omponents/Modal/Modal.js.map +1 -0
  257. package/build/main//321/201omponents/Modal/index.d.ts +1 -0
  258. package/build/main//321/201omponents/Modal/index.js +2 -0
  259. package/build/main//321/201omponents/Modal/index.js.map +1 -0
  260. package/build/main//321/201omponents/Modal/types.d.ts +15 -0
  261. package/build/main//321/201omponents/Modal/types.js +2 -0
  262. package/build/main//321/201omponents/Modal/types.js.map +1 -0
  263. package/build/main//321/201omponents/Notification/Notification.d.ts +8 -0
  264. package/build/main//321/201omponents/Notification/Notification.js +178 -0
  265. package/build/main//321/201omponents/Notification/Notification.js.map +1 -0
  266. package/build/main//321/201omponents/Notification/index.d.ts +1 -0
  267. package/build/main//321/201omponents/Notification/index.js +2 -0
  268. package/build/main//321/201omponents/Notification/index.js.map +1 -0
  269. package/build/main//321/201omponents/Notification/types.d.ts +39 -0
  270. package/build/main//321/201omponents/Notification/types.js +2 -0
  271. package/build/main//321/201omponents/Notification/types.js.map +1 -0
  272. package/build/main//321/201omponents/Profile/Profile.d.ts +4 -0
  273. package/build/main//321/201omponents/Profile/Profile.js +42 -0
  274. package/build/main//321/201omponents/Profile/Profile.js.map +1 -0
  275. package/build/main//321/201omponents/Profile/index.d.ts +1 -0
  276. package/build/main//321/201omponents/Profile/index.js +2 -0
  277. package/build/main//321/201omponents/Profile/index.js.map +1 -0
  278. package/build/main//321/201omponents/Profile/types.d.ts +14 -0
  279. package/build/main//321/201omponents/Profile/types.js +2 -0
  280. package/build/main//321/201omponents/Profile/types.js.map +1 -0
  281. package/build/main//321/201omponents/ProgressBar/ProgressBar.d.ts +4 -0
  282. package/build/main//321/201omponents/ProgressBar/ProgressBar.js +66 -0
  283. package/build/main//321/201omponents/ProgressBar/ProgressBar.js.map +1 -0
  284. package/build/main//321/201omponents/ProgressBar/index.d.ts +1 -0
  285. package/build/main//321/201omponents/ProgressBar/index.js +2 -0
  286. package/build/main//321/201omponents/ProgressBar/index.js.map +1 -0
  287. package/build/main//321/201omponents/ProgressBar/types.d.ts +4 -0
  288. package/build/main//321/201omponents/ProgressBar/types.js +2 -0
  289. package/build/main//321/201omponents/ProgressBar/types.js.map +1 -0
  290. package/build/main//321/201omponents/RadioButton/RadioButton.d.ts +4 -0
  291. package/build/main//321/201omponents/RadioButton/RadioButton.js +36 -0
  292. package/build/main//321/201omponents/RadioButton/RadioButton.js.map +1 -0
  293. package/build/main//321/201omponents/RadioButton/index.d.ts +1 -0
  294. package/build/main//321/201omponents/RadioButton/index.js +2 -0
  295. package/build/main//321/201omponents/RadioButton/index.js.map +1 -0
  296. package/build/main//321/201omponents/RadioButton/types.d.ts +9 -0
  297. package/build/main//321/201omponents/RadioButton/types.js +2 -0
  298. package/build/main//321/201omponents/RadioButton/types.js.map +1 -0
  299. package/build/main//321/201omponents/ScrollBar/ScrollBar.d.ts +4 -0
  300. package/build/main//321/201omponents/ScrollBar/ScrollBar.js +50 -0
  301. package/build/main//321/201omponents/ScrollBar/ScrollBar.js.map +1 -0
  302. package/build/main//321/201omponents/ScrollBar/index.d.ts +1 -0
  303. package/build/main//321/201omponents/ScrollBar/index.js +2 -0
  304. package/build/main//321/201omponents/ScrollBar/index.js.map +1 -0
  305. package/build/main//321/201omponents/ScrollBar/types.d.ts +9 -0
  306. package/build/main//321/201omponents/ScrollBar/types.js +2 -0
  307. package/build/main//321/201omponents/ScrollBar/types.js.map +1 -0
  308. package/build/main//321/201omponents/Skeleton/Skeleton.d.ts +4 -0
  309. package/build/main//321/201omponents/Skeleton/Skeleton.js +66 -0
  310. package/build/main//321/201omponents/Skeleton/Skeleton.js.map +1 -0
  311. package/build/main//321/201omponents/Skeleton/index.d.ts +1 -0
  312. package/build/main//321/201omponents/Skeleton/index.js +2 -0
  313. package/build/main//321/201omponents/Skeleton/index.js.map +1 -0
  314. package/build/main//321/201omponents/Skeleton/types.d.ts +16 -0
  315. package/build/main//321/201omponents/Skeleton/types.js +2 -0
  316. package/build/main//321/201omponents/Skeleton/types.js.map +1 -0
  317. package/build/main//321/201omponents/Stories/Stories.d.ts +4 -0
  318. package/build/main//321/201omponents/Stories/Stories.js +281 -0
  319. package/build/main//321/201omponents/Stories/Stories.js.map +1 -0
  320. package/build/main//321/201omponents/Stories/index.d.ts +1 -0
  321. package/build/main//321/201omponents/Stories/index.js +2 -0
  322. package/build/main//321/201omponents/Stories/index.js.map +1 -0
  323. package/build/main//321/201omponents/Stories/types.d.ts +54 -0
  324. package/build/main//321/201omponents/Stories/types.js +11 -0
  325. package/build/main//321/201omponents/Stories/types.js.map +1 -0
  326. package/build/main//321/201omponents/Switcher/Switcher.d.ts +4 -0
  327. package/build/main//321/201omponents/Switcher/Switcher.js +34 -0
  328. package/build/main//321/201omponents/Switcher/Switcher.js.map +1 -0
  329. package/build/main//321/201omponents/Switcher/index.d.ts +1 -0
  330. package/build/main//321/201omponents/Switcher/index.js +2 -0
  331. package/build/main//321/201omponents/Switcher/index.js.map +1 -0
  332. package/build/main//321/201omponents/Switcher/types.d.ts +8 -0
  333. package/build/main//321/201omponents/Switcher/types.js +2 -0
  334. package/build/main//321/201omponents/Switcher/types.js.map +1 -0
  335. package/build/main//321/201omponents/SyncLoader/SyncLoader.d.ts +5 -0
  336. package/build/main//321/201omponents/SyncLoader/SyncLoader.js +65 -0
  337. package/build/main//321/201omponents/SyncLoader/SyncLoader.js.map +1 -0
  338. package/build/main//321/201omponents/SyncLoader/index.d.ts +1 -0
  339. package/build/main//321/201omponents/SyncLoader/index.js +2 -0
  340. package/build/main//321/201omponents/SyncLoader/index.js.map +1 -0
  341. package/build/main//321/201omponents/SyncLoader/types.d.ts +7 -0
  342. package/build/main//321/201omponents/SyncLoader/types.js +2 -0
  343. package/build/main//321/201omponents/SyncLoader/types.js.map +1 -0
  344. package/build/main//321/201omponents/Textarea/Textarea.d.ts +4 -0
  345. package/build/main//321/201omponents/Textarea/Textarea.js +96 -0
  346. package/build/main//321/201omponents/Textarea/Textarea.js.map +1 -0
  347. package/build/main//321/201omponents/Textarea/index.d.ts +1 -0
  348. package/build/main//321/201omponents/Textarea/index.js +2 -0
  349. package/build/main//321/201omponents/Textarea/index.js.map +1 -0
  350. package/build/main//321/201omponents/Textarea/types.d.ts +10 -0
  351. package/build/main//321/201omponents/Textarea/types.js +2 -0
  352. package/build/main//321/201omponents/Textarea/types.js.map +1 -0
  353. package/build/main//321/201omponents/Toggle/Toggle.d.ts +4 -0
  354. package/build/main//321/201omponents/Toggle/Toggle.js +38 -0
  355. package/build/main//321/201omponents/Toggle/Toggle.js.map +1 -0
  356. package/build/main//321/201omponents/Toggle/index.d.ts +1 -0
  357. package/build/main//321/201omponents/Toggle/index.js +2 -0
  358. package/build/main//321/201omponents/Toggle/index.js.map +1 -0
  359. package/build/main//321/201omponents/Toggle/types.d.ts +9 -0
  360. package/build/main//321/201omponents/Toggle/types.js +2 -0
  361. package/build/main//321/201omponents/Toggle/types.js.map +1 -0
  362. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.d.ts +4 -0
  363. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js +31 -0
  364. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js.map +1 -0
  365. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.d.ts +4 -0
  366. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js +70 -0
  367. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js.map +1 -0
  368. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.d.ts +4 -0
  369. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js +23 -0
  370. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js.map +1 -0
  371. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.d.ts +3 -0
  372. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js +76 -0
  373. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js.map +1 -0
  374. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.d.ts +3 -0
  375. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js +40 -0
  376. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js.map +1 -0
  377. package/build/main//321/201omponents/UserDropdown/Option/Option.d.ts +4 -0
  378. package/build/main//321/201omponents/UserDropdown/Option/Option.js +55 -0
  379. package/build/main//321/201omponents/UserDropdown/Option/Option.js.map +1 -0
  380. package/build/main//321/201omponents/UserDropdown/UserDropdown.d.ts +4 -0
  381. package/build/main//321/201omponents/UserDropdown/UserDropdown.js +396 -0
  382. package/build/main//321/201omponents/UserDropdown/UserDropdown.js.map +1 -0
  383. package/build/main//321/201omponents/UserDropdown/helpers.d.ts +90 -0
  384. package/build/main//321/201omponents/UserDropdown/helpers.js +93 -0
  385. package/build/main//321/201omponents/UserDropdown/helpers.js.map +1 -0
  386. package/build/main//321/201omponents/UserDropdown/index.d.ts +1 -0
  387. package/build/main//321/201omponents/UserDropdown/index.js +2 -0
  388. package/build/main//321/201omponents/UserDropdown/index.js.map +1 -0
  389. package/build/main//321/201omponents/UserDropdown/selectStyles.d.ts +15 -0
  390. package/build/main//321/201omponents/UserDropdown/selectStyles.js +72 -0
  391. package/build/main//321/201omponents/UserDropdown/selectStyles.js.map +1 -0
  392. package/build/main//321/201omponents/UserDropdown/types.d.ts +189 -0
  393. package/build/main//321/201omponents/UserDropdown/types.js +2 -0
  394. package/build/main//321/201omponents/UserDropdown/types.js.map +1 -0
  395. package/build/main//321/201omponents/index.d.ts +32 -0
  396. package/build/main//321/201omponents/index.js +33 -0
  397. package/build/main//321/201omponents/index.js.map +1 -0
  398. package/build/main//321/201omponents/types.d.ts +2 -0
  399. package/build/main//321/201omponents/types.js +2 -0
  400. package/build/main//321/201omponents/types.js.map +1 -0
  401. package/package.json +1 -1
@@ -0,0 +1,91 @@
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 { OPTIONS } from './constants';
13
+ var series = OPTIONS.series, line = OPTIONS.line, bar = OPTIONS.bar;
14
+ export var calculateValue = function (data) { return data.reduce(function (acc, val) { return acc + val; }, 0); };
15
+ export var calculatePieValue = function (data) { return data.reduce(function (acc, _a) {
16
+ var value = _a.value;
17
+ return acc + value;
18
+ }, 0); };
19
+ var generateSumText = function (itemName, value) {
20
+ var sumText = "{value|".concat(value, "}");
21
+ return "{Name|".concat(itemName, "}\n\n").concat(sumText);
22
+ };
23
+ export var generateLegendItemValue = function (itemName, data) {
24
+ var item = data.find(function (_a) {
25
+ var name = _a.name;
26
+ return name === itemName;
27
+ });
28
+ var value = calculateValue((item === null || item === void 0 ? void 0 : item.data) || []);
29
+ return generateSumText(itemName, value);
30
+ };
31
+ export var generatePieLegendItemValue = function (itemName, data) {
32
+ var item = data.find(function (_a) {
33
+ var name = _a.name;
34
+ return name === itemName;
35
+ });
36
+ var value = (item === null || item === void 0 ? void 0 : item.value) || 0;
37
+ return generateSumText(itemName, value);
38
+ };
39
+ export var generateLineItem = function (data) {
40
+ return data.map(function (_a) {
41
+ var name = _a.name, color = _a.color, data = _a.data;
42
+ return ({
43
+ name: name,
44
+ data: data,
45
+ type: line,
46
+ itemStyle: { color: color },
47
+ lineStyle: { width: 1 },
48
+ smooth: true,
49
+ showSymbol: false,
50
+ emphasis: { focus: series },
51
+ });
52
+ });
53
+ };
54
+ export var generateBarItem = function (data) { return data.map(function (_a) {
55
+ var name = _a.name, color = _a.color, data = _a.data;
56
+ return ({ name: name, data: data, type: bar, itemStyle: { color: color } });
57
+ }); };
58
+ export var generateLegend = function (_a) {
59
+ var data = _a.data, chartType = _a.chartType;
60
+ var isLineChart = chartType === OPTIONS.line;
61
+ var isBarChart = chartType === OPTIONS.bar;
62
+ var isPieChart = chartType === OPTIONS.pie;
63
+ var commonSettings = {
64
+ bottom: 5,
65
+ icon: OPTIONS.circle,
66
+ textStyle: {
67
+ rich: {
68
+ Name: { fontSize: 14, align: OPTIONS.center },
69
+ value: { fontSize: 24, align: OPTIONS.center },
70
+ },
71
+ },
72
+ };
73
+ if (isLineChart || isBarChart) {
74
+ var chartData_1 = data;
75
+ commonSettings = __assign(__assign({}, commonSettings), { data: chartData_1.map(function (_a) {
76
+ var name = _a.name;
77
+ return name;
78
+ }), formatter: function (name) { return generateLegendItemValue(name, chartData_1); } });
79
+ }
80
+ if (isLineChart)
81
+ return __assign(__assign({}, commonSettings), { itemGap: 70 });
82
+ if (isBarChart)
83
+ return __assign(__assign({}, commonSettings), { itemGap: 45 });
84
+ if (isPieChart) {
85
+ var chartPieData_1 = data;
86
+ return __assign(__assign({}, commonSettings), { bottom: 0, itemGap: 20, formatter: function (name) { return generatePieLegendItemValue(name, chartPieData_1); }, textStyle: {
87
+ rich: __assign(__assign({}, commonSettings.textStyle.rich), { Name: __assign(__assign({}, commonSettings.textStyle.rich.Name), { width: 100 }) }),
88
+ } });
89
+ }
90
+ };
91
+ //# sourceMappingURL=helpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../src/сomponents/Charts/helpers.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAG7B,IAAA,MAAM,GAAgB,OAAO,OAAvB,EAAE,IAAI,GAAU,OAAO,KAAjB,EAAE,GAAG,GAAK,OAAO,IAAZ,CAAY;AAErC,MAAM,CAAC,IAAM,cAAc,GAAG,UAAC,IAAc,IAAK,OAAA,IAAI,CAAC,MAAM,CAAC,UAAC,GAAG,EAAE,GAAG,IAAK,OAAA,GAAG,GAAG,GAAG,EAAT,CAAS,EAAE,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AE,EAAE,QAAQ,EAAE,EAAE,EAAE,KAAK,EAAE,OAAO,CAAC,MAAM,EAAE;aAC/C;SACF;KACF,CAAA;IAED,IAAI,WAAW,IAAI,UAAU,EAAE;QAC7B,IAAM,WAAS,GAAG,IAAoB,CAAA;QACtC,cAAc,yBACT,cAAc,KACjB,IAAI,EAAE,WAAS,CAAC,GAAG,CAAC,UAAC,EAAQ;oBAAN,IAAI,UAAA;gBAAO,OAAA,IAAI;YAAJ,CAAI,CAAC,EACvC,SAAS,EAAE,UAAC,IAAY,IAAK,OAAA,uBAAuB,CAAC,IAAI,EAAE,WAAS,CAAC,EAAxC,CAAwC,GACtE,CAAA;KACF;IAED,IAAI,WAAW;QAAE,6BAAY,cAAc,KAAE,OAAO,EAAE,EAAE,IAAE;IAC1D,IAAI,UAAU;QAAE,6BAAY,cAAc,KAAE,OAAO,EAAE,EAAE,IAAE;IAEzD,IAAI,UAAU,EAAE;QACd,IAAM,cAAY,GAAG,IAAuB,CAAA;QAC5C,6BACK,cAAc,KACjB,MAAM,EAAE,CAAC,EACT,OAAO,EAAE,EAAE,EACX,SAAS,EAAE,UAAC,IAAY,IAAK,OAAA,0BAA0B,CAAC,IAAI,EAAE,cAAY,CAAC,EAA9C,CAA8C,EAC3E,SAAS,EAAE;gBACT,IAAI,wBACC,cAAc,CAAC,SAAS,CAAC,IAAI,KAChC,IAAI,wBAAO,cAAc,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,KAAE,KAAK,EAAE,GAAG,MAC1D;aACF,IACF;KACF;AACH,CAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ export { ChartBar } from './ChartBar/ChartBar';
2
+ export { ChartLine } from './ChartLine/ChartLine';
3
+ export { ChartPie } from './ChartPie/ChartPie';
@@ -0,0 +1,4 @@
1
+ export { ChartBar } from './ChartBar/ChartBar';
2
+ export { ChartLine } from './ChartLine/ChartLine';
3
+ export { ChartPie } from './ChartPie/ChartPie';
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/Charts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA"}
@@ -0,0 +1,51 @@
1
+ import { OPTIONS } from './constants';
2
+ export type TChartData = {
3
+ name: string;
4
+ color: string;
5
+ data: number[];
6
+ };
7
+ export interface IChartProps {
8
+ title?: string;
9
+ xAxis: string[];
10
+ data: TChartData[];
11
+ }
12
+ export type TChartPieData = {
13
+ name: string;
14
+ color: string;
15
+ value: number;
16
+ };
17
+ export interface IChartPieProps {
18
+ title?: string;
19
+ subtitle: string;
20
+ data: TChartPieData[];
21
+ }
22
+ export type TLegendVisibility = {
23
+ [name: string]: boolean;
24
+ };
25
+ export type TLegendsChanged = {
26
+ name: string;
27
+ selected: TLegendVisibility;
28
+ };
29
+ export type TCommonChartSettings = {
30
+ bottom: number;
31
+ icon: OPTIONS.circle;
32
+ textStyle: {
33
+ rich: {
34
+ Name: {
35
+ fontSize: number;
36
+ align: OPTIONS.center;
37
+ };
38
+ value: {
39
+ fontSize: number;
40
+ align: OPTIONS.center;
41
+ };
42
+ };
43
+ };
44
+ data?: string[];
45
+ formatter?: (name: string) => string;
46
+ itemGap?: number;
47
+ };
48
+ export type TGenerateLegendProps = {
49
+ data: TChartData[] | TChartPieData[];
50
+ chartType: string;
51
+ };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/Charts/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { ICheckBoxProps } from './types';
2
+ import '../../styles/styles.scss';
3
+ declare const CheckBox: ({ id, isDisabled, isChecked, checkedColor, checkedHoverColor, checkedPressedColor, onChange, }: ICheckBoxProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default CheckBox;
@@ -0,0 +1,36 @@
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 { ReactComponent as CheckIcon } from '../../assets/icons/check-mark.svg';
15
+ import { getColor } from '../../helpers';
16
+ import { COLORS } from '../../constants';
17
+ import '../../styles/styles.scss';
18
+ var CheckBox = function (_a) {
19
+ var id = _a.id, _b = _a.isDisabled, isDisabled = _b === void 0 ? false : _b, _c = _a.isChecked, isChecked = _c === void 0 ? false : _c, checkedColor = _a.checkedColor, checkedHoverColor = _a.checkedHoverColor, checkedPressedColor = _a.checkedPressedColor, _d = _a.onChange, onChange = _d === void 0 ? function () { return undefined; } : _d;
20
+ var checkBoxRef = useRef(null);
21
+ useEffect(function () {
22
+ document.documentElement.style.setProperty('--checkbox-hover-color', getColor(checkedHoverColor, COLORS.darkBlue));
23
+ document.documentElement.style.setProperty('--checkbox-pressed-color', getColor(checkedPressedColor, COLORS.darkerBlue));
24
+ }, [checkedHoverColor, checkedPressedColor]);
25
+ useEffect(function () {
26
+ window.addEventListener('mouseup', handleMouseUp);
27
+ return function () {
28
+ window.removeEventListener('mouseup', handleMouseUp);
29
+ };
30
+ }, []);
31
+ var handleMouseDown = function () { var _a; return (_a = checkBoxRef.current) === null || _a === void 0 ? void 0 : _a.classList.add('smartapp-check-box__pressed'); };
32
+ var handleMouseUp = function () { var _a; return (_a = checkBoxRef.current) === null || _a === void 0 ? void 0 : _a.classList.remove('smartapp-check-box__pressed'); };
33
+ return (_jsx("div", __assign({ ref: checkBoxRef, className: "smartapp-check-box" }, { children: _jsxs("label", __assign({ htmlFor: "cb-".concat(id) }, { children: [_jsx("input", { id: "cb-".concat(id), type: "checkbox", className: "smartapp-check-box__custom-check-box", disabled: isDisabled, checked: isChecked, onChange: onChange }), isChecked ? (_jsx(CheckIcon, { style: { color: getColor(checkedColor, COLORS.blue) }, onMouseDown: handleMouseDown })) : (_jsx("span", { className: "checkmark", onMouseDown: handleMouseDown }))] })) })));
34
+ };
35
+ export default CheckBox;
36
+ //# sourceMappingURL=Checkbox.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Checkbox.js","sourceRoot":"","sources":["../../../../src/сomponents/Checkbox/Checkbox.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAChD,OAAO,EAAE,cAAc,IAAI,SAAS,EAAE,MAAM,mCAAmC,CAAA;AAE/E,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AACxC,OAAO,0BAA0B,CAAA;AAEjC,IAAM,QAAQ,GAAG,UAAC,EAQD;QAPf,EAAE,QAAA,EACF,kBAAkB,EAAlB,UAAU,mBAAG,KAAK,KAAA,EAClB,iBAAiB,EAAjB,SAAS,mBAAG,KAAK,KAAA,EACjB,YAAY,kBAAA,EACZ,iBAAiB,uBAAA,EACjB,mBAAmB,yBAAA,EACnB,gBAAgC,EAAhC,QAAQ,mBAAG,cAAY,OAAA,SAAS,EAAT,CAAS,KAAA;IAEhC,IAAM,WAAW,GAAG,MAAM,CAAwB,IAAI,CAAC,CAAA;IAEvD,SAAS,CAAC;QACR,QAAQ,CAAC,eAAe,CAAC,KAAK,CAAC,WAAW,CAAC,wBAAwB,EAAE,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAA;QAClH,QAAQ,CAAC,e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,QAAQ,CAAA"}
@@ -0,0 +1 @@
1
+ export { 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,9 @@
1
+ export interface ICheckBoxProps {
2
+ id: string;
3
+ isDisabled?: boolean;
4
+ isChecked?: boolean;
5
+ checkedColor?: string;
6
+ checkedHoverColor?: string;
7
+ checkedPressedColor?: string;
8
+ onChange?: () => void;
9
+ }
@@ -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,4 @@
1
+ import { IChipProps } from './types';
2
+ import '../../styles/styles.scss';
3
+ declare const Chip: ({ name, avatar, isAvatarHidden, isDisabled, isError, iconColor, onDelete }: IChipProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default Chip;
@@ -0,0 +1,40 @@
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 Avatar from '../Avatar';
15
+ import { getClassNames, getColor } from '../../helpers';
16
+ import { COLORS, DISABLED_CLASSNAME, ERROR_CLASSNAME } from '../../constants';
17
+ import { ReactComponent as DeleteIcon } from '../../assets/icons/delete-chip.svg';
18
+ import '../../styles/styles.scss';
19
+ var Chip = function (_a) {
20
+ var name = _a.name, avatar = _a.avatar, _b = _a.isAvatarHidden, isAvatarHidden = _b === void 0 ? false : _b, _c = _a.isDisabled, isDisabled = _c === void 0 ? false : _c, _d = _a.isError, isError = _d === void 0 ? false : _d, iconColor = _a.iconColor, onDelete = _a.onDelete;
21
+ var isChipDisabled = isError ? false : isDisabled;
22
+ var chipRef = useRef(null);
23
+ var generateAdditionalClassName = function () {
24
+ var classNames = [];
25
+ isError && classNames.push(ERROR_CLASSNAME);
26
+ isChipDisabled && classNames.push(DISABLED_CLASSNAME);
27
+ return classNames;
28
+ };
29
+ useEffect(function () {
30
+ window.addEventListener('mouseup', handleMouseUp);
31
+ return function () {
32
+ window.removeEventListener('mouseup', handleMouseUp);
33
+ };
34
+ }, []);
35
+ var handleMouseDown = function () { var _a; return (_a = chipRef.current) === null || _a === void 0 ? void 0 : _a.classList.add('smartapp-chip__pressed'); };
36
+ var handleMouseUp = function () { var _a; return (_a = chipRef.current) === null || _a === void 0 ? void 0 : _a.classList.remove('smartapp-chip__pressed'); };
37
+ return (_jsxs("div", __assign({ ref: chipRef, className: getClassNames({ className: 'smartapp-chip', delimiter: '__', additionalClassName: generateAdditionalClassName() }) }, { children: [_jsxs("div", __assign({ className: "smartapp-chip__info" }, { children: [!isAvatarHidden && !isError && _jsx(Avatar, { username: name, avatar: avatar, size: 24 }), _jsx("p", __assign({ className: "smartapp-chip__info--name" }, { children: name }))] })), !isChipDisabled && onDelete && (_jsx("div", __assign({ className: "smartapp-chip__delete-icon", onClick: function () { return onDelete(name); }, onMouseDown: handleMouseDown }, { children: _jsx(DeleteIcon, { style: { color: getColor(iconColor, isError ? COLORS.red : COLORS.darkerGray) } }) })))] })));
38
+ };
39
+ export default Chip;
40
+ //# sourceMappingURL=Chip.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Chip.js","sourceRoot":"","sources":["../../../../src/сomponents/Chip/Chip.tsx"],"names":[],"mappings":";;;;;;;;;;;;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,GAAG,CAAC,wBAAwB,CAAC,CAAA,EAAA,CAAA;IACtF,IAAM,aAAa,GAAG,sBAAM,OAAA,MAAA,OAAO,CAAC,OAAO,0CAAE,SAAS,CAAC,MAAM,CAAC,wBAAwB,CAAC,CAAA,EAAA,CAAA;IAEvF,OAAO,CACL,wBAAK,GAAG,EAAE,OAAO,EAAE,SAAS,EAAE,aAAa,CAAC,EAAE,SAAS,EAAE,eAAe,EAAE,SAAS,EAAE,IAAI,EAAE,mBAAmB,EAAE,2BAA2B,EAAE,EAAE,CAAC,iBAC9I,wBAAK,SAAS,EAAC,qBAAqB,iBACjC,CAAC,cAAc,IAAI,CAAC,OAAO,IAAI,KAAC,MAAM,IAAC,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,GAAI,EACpF,qBAAG,SAAS,EAAC,2BAA2B,gBAAE,IAAI,IAAK,KAC/C,EACL,CAAC,cAAc,IAAI,QAAQ,IAAI,CAC9B,uBAAK,SAAS,EAAC,4BAA4B,EAAC,OAAO,EAAE,cAAM,OAAA,QAAQ,CAAC,IAAI,CAAC,EAAd,CAAc,EAAE,WAAW,EAAE,eAAe,gBACrG,KAAC,UAAU,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE,GAAI,IAC3F,CACP,KACG,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,IAAI,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,10 @@
1
+ import { IThemeProps } from '../../constants';
2
+ export interface IChipProps extends IThemeProps {
3
+ name: string;
4
+ avatar?: string;
5
+ isAvatarHidden?: boolean;
6
+ isDisabled?: boolean;
7
+ isError?: boolean;
8
+ iconColor?: string;
9
+ onDelete?: (name?: string) => void;
10
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/Chip/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { IConfirmationModalProps } from './types';
2
+ import '../../styles/styles.scss';
3
+ declare const ConfirmationModal: ({ isModalOpen, isClosableOutside, isCloseIconHidden, isWaitingResponse, layoutType, title, text, cancelButtonName, confirmButtonName, cancelButtonFunction, confirmButtonFunction, platform, titleStyles, iconColor, backgroundColor, }: IConfirmationModalProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default ConfirmationModal;
@@ -0,0 +1,44 @@
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 Popup from 'reactjs-popup';
15
+ import { ReactComponent as CloseIcon } from '../../assets/icons/cancel-cross.svg';
16
+ import Button from '../Button';
17
+ import { TButtonVariant } from '../Button/types';
18
+ import { CLOSABLE_CLASS_NAME, FIXED_WIDTH_CLASS_NAME, LAYOUT_TYPE, PLATFORM } from '../../constants';
19
+ import { getClassNames, getColor, isMobilePlatform, isModalHasFixedWidth } from '../../helpers';
20
+ import '../../styles/styles.scss';
21
+ var ConfirmationModal = function (_a) {
22
+ var isModalOpen = _a.isModalOpen, _b = _a.isClosableOutside, isClosableOutside = _b === void 0 ? false : _b, _c = _a.isCloseIconHidden, isCloseIconHidden = _c === void 0 ? false : _c, isWaitingResponse = _a.isWaitingResponse, _d = _a.layoutType, layoutType = _d === void 0 ? LAYOUT_TYPE.minimal : _d, title = _a.title, text = _a.text, cancelButtonName = _a.cancelButtonName, confirmButtonName = _a.confirmButtonName, cancelButtonFunction = _a.cancelButtonFunction, confirmButtonFunction = _a.confirmButtonFunction, _e = _a.platform, platform = _e === void 0 ? PLATFORM.web : _e, titleStyles = _a.titleStyles, iconColor = _a.iconColor, backgroundColor = _a.backgroundColor;
23
+ var additionalClassName = isModalHasFixedWidth({ layoutType: layoutType, platform: platform }) ? [platform, FIXED_WIDTH_CLASS_NAME] : [platform];
24
+ var popupAdditionalClassName = isClosableOutside ? [platform, CLOSABLE_CLASS_NAME] : [platform];
25
+ var confirmButtonWidth = cancelButtonName ? 50 : 100;
26
+ var ref = useRef(null);
27
+ useEffect(function () {
28
+ document.documentElement.style.setProperty('--confirmation-modal-background', getColor(backgroundColor));
29
+ }, [backgroundColor]);
30
+ useEffect(function () {
31
+ var checkIfClickedOutside = function (e) {
32
+ if (isModalOpen && isClosableOutside && ref.current && !ref.current.contains(e.target)) {
33
+ cancelButtonFunction();
34
+ }
35
+ };
36
+ document === null || document === void 0 ? void 0 : document.addEventListener('click', checkIfClickedOutside, true);
37
+ return function () {
38
+ document === null || document === void 0 ? void 0 : document.removeEventListener('click', checkIfClickedOutside, true);
39
+ };
40
+ }, [isModalOpen, isClosableOutside, cancelButtonFunction]);
41
+ return (_jsx(Popup, __assign({ className: getClassNames({ className: 'confirmation-modal', delimiter: '-', additionalClassName: popupAdditionalClassName }), closeOnDocumentClick: isClosableOutside, modal: true, open: isModalOpen }, { children: _jsx("div", __assign({ ref: ref, className: getClassNames({ className: 'smartapp-confirmation-modal', delimiter: '__', additionalClassName: additionalClassName }) }, { children: _jsxs("div", __assign({ className: getClassNames({ className: 'smartapp-confirmation-modal__content', delimiter: '--', additionalClassName: platform }) }, { children: [title && (_jsx("p", __assign({ className: "smartapp-confirmation-modal__content--title", style: titleStyles }, { children: title }))), isClosableOutside && !isCloseIconHidden && (_jsx("div", __assign({ onClick: cancelButtonFunction, className: "smartapp-confirmation-modal__content--close-icon" }, { children: _jsx(CloseIcon, { style: { color: getColor(iconColor) } }) }))), _jsx("p", __assign({ className: "smartapp-confirmation-modal__content--text" }, { children: text })), isMobilePlatform(platform) && _jsx("div", { className: "smartapp-confirmation-modal__content--delimiter" }), _jsxs("div", __assign({ className: "smartapp-confirmation-modal__content--buttons" }, { children: [cancelButtonName && _jsx(Button, { width: 50, title: cancelButtonName, variant: TButtonVariant.secondary, onClick: cancelButtonFunction }), _jsx(Button, { width: confirmButtonWidth, isWaitingResponse: isWaitingResponse, title: confirmButtonName, onClick: confirmButtonFunction })] }))] })) })) })));
42
+ };
43
+ export default ConfirmationModal;
44
+ //# sourceMappingURL=ConfirmationModal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConfirmationModal.js","sourceRoot":"","sources":["../../../../src/сomponents/ConfirmationModal/ConfirmationModal.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAChD,OAAO,KAAK,MAAM,eAAe,CAAA;AACjC,OAAO,EAAE,cAAc,IAAI,SAAS,EAAE,MAAM,qCAAqC,CAAA;AACjF,OAAO,MAAM,MAAM,WAAW,CAAA;AAC9B,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAEhD,OAAO,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AACpG,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAA;AAC/F,OAAO,0BAA0B,CAAA;AAEjC,IAAM,iBAAiB,GAAG,U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AC,4CAA4C,gBAAE,IAAI,IAAK,EACnE,gBAAgB,CAAC,QAAQ,CAAC,IAAI,cAAK,SAAS,EAAC,iDAAiD,GAAG,EAClG,wBAAK,SAAS,EAAC,+CAA+C,iBAC3D,gBAAgB,IAAI,KAAC,MAAM,IAAC,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,gBAAgB,EAAE,OAAO,EAAE,cAAc,CAAC,SAAS,EAAE,OAAO,EAAE,oBAAoB,GAAI,EACrI,KAAC,MAAM,IAAC,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,KAAK,EAAE,iBAAiB,EAAE,OAAO,EAAE,qBAAqB,GAAI,KACjI,KACF,IACF,IACA,CACT,CAAA;AACH,CAAC,CAAA;AAED,eAAe,iBAAiB,CAAA"}
@@ -0,0 +1 @@
1
+ export { default } from './ConfirmationModal';
@@ -0,0 +1,2 @@
1
+ export { default } from './ConfirmationModal';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/ConfirmationModal/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA"}
@@ -0,0 +1,16 @@
1
+ import { ICommonProps, ILayoutTypeProps, TStyles } from '../../constants';
2
+ export interface IConfirmationModalProps extends ICommonProps, ILayoutTypeProps {
3
+ isModalOpen: boolean;
4
+ isClosableOutside?: boolean;
5
+ isCloseIconHidden?: boolean;
6
+ isWaitingResponse?: boolean;
7
+ title?: string;
8
+ text: string;
9
+ cancelButtonName?: string;
10
+ confirmButtonName: string;
11
+ cancelButtonFunction: () => void;
12
+ confirmButtonFunction: (option?: any) => void;
13
+ titleStyles?: TStyles;
14
+ iconColor?: string;
15
+ backgroundColor?: string;
16
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/ConfirmationModal/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { IContextMenuProps } from './types';
2
+ import '../../styles/styles.scss';
3
+ declare const ContextMenu: ({ theme, isMenuOpen, isClickForbidden, position: { x, y }, menuWidth, menuStyles, itemStyles, items, closeMenu, }: IContextMenuProps) => import("react/jsx-runtime").JSX.Element | null;
4
+ export default ContextMenu;
@@ -0,0 +1,55 @@
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 { useLayoutEffect, useRef, useState } from 'react';
14
+ import classNames from 'classnames';
15
+ import { getClassNames } from '../../helpers';
16
+ import { CONTEXT_MENU_SAFE_SPACE, CONTEXT_MENU_WIDTH, THEME } from '../../constants';
17
+ import '../../styles/styles.scss';
18
+ var ContextMenu = function (_a) {
19
+ var _b;
20
+ var _c = _a.theme, theme = _c === void 0 ? THEME.default : _c, isMenuOpen = _a.isMenuOpen, _d = _a.isClickForbidden, isClickForbidden = _d === void 0 ? false : _d, _e = _a.position, x = _e.x, y = _e.y, _f = _a.menuWidth, menuWidth = _f === void 0 ? CONTEXT_MENU_WIDTH : _f, _g = _a.menuStyles, menuStyles = _g === void 0 ? {} : _g, _h = _a.itemStyles, itemStyles = _h === void 0 ? {} : _h, items = _a.items, closeMenu = _a.closeMenu;
21
+ var elementRef = useRef(null);
22
+ var _j = useState(((_b = elementRef === null || elementRef === void 0 ? void 0 : elementRef.current) === null || _b === void 0 ? void 0 : _b.offsetHeight) || 0), contextMenuHeight = _j[0], setContextMenuHeight = _j[1];
23
+ var clientHeight = document.documentElement.clientHeight;
24
+ var clientWidth = document.documentElement.clientWidth;
25
+ var handleContextMenu = function (event) {
26
+ event.preventDefault();
27
+ !isClickForbidden && closeMenu();
28
+ };
29
+ useLayoutEffect(function () {
30
+ var _a;
31
+ setContextMenuHeight(((_a = elementRef.current) === null || _a === void 0 ? void 0 : _a.offsetHeight) || 0);
32
+ }, [isMenuOpen]);
33
+ var handleMenuItemClick = function (action) { return !isClickForbidden && action(); };
34
+ var handleMenuClose = function (event) {
35
+ if (!isClickForbidden) {
36
+ event.stopPropagation();
37
+ closeMenu();
38
+ }
39
+ };
40
+ var contextMenuItems = items.map(function (_a) {
41
+ var _b = _a.isNegativeAction, isNegativeAction = _b === void 0 ? false : _b, _c = _a.isSelected, isSelected = _c === void 0 ? false : _c, _d = _a.isDisabled, isDisabled = _d === void 0 ? false : _d, title = _a.title, icon = _a.icon, action = _a.action;
42
+ return (_jsxs("button", __assign({ className: classNames({
43
+ 'smartapp-context-menu__items--negative': isNegativeAction,
44
+ 'smartapp-context-menu__items--selected': isSelected,
45
+ 'smartapp-context-menu__items--disabled': isDisabled,
46
+ }), disabled: isDisabled, style: itemStyles, onClick: function () { return handleMenuItemClick(action); } }, { children: [icon && _jsx("div", { children: icon }), _jsx("span", { children: title })] }), title));
47
+ });
48
+ var contextMenuStyles = __assign({ top: y + contextMenuHeight > clientHeight ? clientHeight - contextMenuHeight - CONTEXT_MENU_SAFE_SPACE : y, left: x + menuWidth > clientWidth ? clientWidth - menuWidth - CONTEXT_MENU_SAFE_SPACE : x, width: menuWidth }, menuStyles);
49
+ if (!isMenuOpen) {
50
+ return null;
51
+ }
52
+ return (_jsx("div", __assign({ className: "smartapp-context-menu", onClick: handleMenuClose, onContextMenu: handleContextMenu }, { children: _jsx("div", __assign({ ref: elementRef, className: getClassNames({ className: 'smartapp-context-menu__items', delimiter: '--', additionalClassName: theme }), style: contextMenuStyles }, { children: contextMenuItems })) })));
53
+ };
54
+ export default ContextMenu;
55
+ //# sourceMappingURL=ContextMenu.js.map
@@ -0,0 +1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AAI,EAAE,CAAC,GAAG,SAAS,GAAG,WAAW,CAAC,CAAC,CAAC,WAAW,GAAG,SAAS,GAAG,uBAAuB,CAAC,CAAC,CAAC,CAAC,EACzF,KAAK,EAAE,SAAS,IACb,UAAU,CACd,CAAA;IAED,IAAI,CAAC,UAAU,EAAE;QACf,OAAO,IAAI,CAAA;KACZ;IAED,OAAO,CACL,uBAAK,SAAS,EAAC,uBAAuB,EAAC,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,iBAAiB,gBAC/F,uBACE,GAAG,EAAE,UAAU,EACf,SAAS,EAAE,aAAa,CAAC,EAAE,SAAS,EAAE,8BAA8B,EAAE,SAAS,EAAE,IAAI,EAAE,mBAAmB,EAAE,KAAK,EAAE,CAAC,EACpH,KAAK,EAAE,iBAAiB,gBAEvB,gBAAgB,IACb,IACF,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,WAAW,CAAA"}
@@ -0,0 +1 @@
1
+ export { default } from './ContextMenu';
@@ -0,0 +1,2 @@
1
+ export { default } from './ContextMenu';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/ContextMenu/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA"}
@@ -0,0 +1,24 @@
1
+ import { ReactElement } from 'react';
2
+ import { IThemeProps, TStyles } from '../../constants';
3
+ type MenuItem = {
4
+ isNegativeAction?: boolean;
5
+ isSelected?: boolean;
6
+ isDisabled?: boolean;
7
+ title: string;
8
+ action: () => void;
9
+ icon?: ReactElement;
10
+ };
11
+ export interface IContextMenuProps extends IThemeProps {
12
+ isMenuOpen: boolean;
13
+ isClickForbidden?: boolean;
14
+ position: {
15
+ x: number;
16
+ y: number;
17
+ };
18
+ menuWidth?: number;
19
+ menuStyles?: TStyles;
20
+ itemStyles?: TStyles;
21
+ items: MenuItem[];
22
+ closeMenu: () => void;
23
+ }
24
+ export {};
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/ContextMenu/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { ICustomSelectProps } from './types';
2
+ import '../../styles/styles.scss';
3
+ declare const CustomSelect: ({ theme, isLoading, isSearchable, isCreatable, isDisabled, fillType, width, menuListMaxHeight, title, placeholder, hint, noOptionsMessage, error, menuPosition, menuLocation, defaultValue, options, onChange, onDisabledOptionClick, onMenuOpen, }: ICustomSelectProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default CustomSelect;