@expressms/smartapp-ui 2.5.6 → 2.5.8

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/package.json +1 -1
  2. package/build/main/assets/icons/arrow-back.svg +0 -3
  3. package/build/main/assets/icons/arrow-down.svg +0 -3
  4. package/build/main/assets/icons/arrow-up.svg +0 -3
  5. package/build/main/assets/icons/attachment-loader.svg +0 -3
  6. package/build/main/assets/icons/button-loader.svg +0 -3
  7. package/build/main/assets/icons/cancel-cross.svg +0 -3
  8. package/build/main/assets/icons/check-mark.svg +0 -4
  9. package/build/main/assets/icons/clear.svg +0 -3
  10. package/build/main/assets/icons/close-stories.svg +0 -4
  11. package/build/main/assets/icons/close.svg +0 -10
  12. package/build/main/assets/icons/contact-info.svg +0 -12
  13. package/build/main/assets/icons/corporate-user.svg +0 -10
  14. package/build/main/assets/icons/crown.svg +0 -5
  15. package/build/main/assets/icons/delete-chip.svg +0 -3
  16. package/build/main/assets/icons/download.svg +0 -4
  17. package/build/main/assets/icons/error.svg +0 -5
  18. package/build/main/assets/icons/external-link.svg +0 -3
  19. package/build/main/assets/icons/eye-off.svg +0 -10
  20. package/build/main/assets/icons/eye.svg +0 -10
  21. package/build/main/assets/icons/file.svg +0 -3
  22. package/build/main/assets/icons/info.svg +0 -5
  23. package/build/main/assets/icons/loader.svg +0 -3
  24. package/build/main/assets/icons/logout.svg +0 -4
  25. package/build/main/assets/icons/magnifying-glass.svg +0 -3
  26. package/build/main/assets/icons/mail.svg +0 -3
  27. package/build/main/assets/icons/my-contact-user.svg +0 -10
  28. package/build/main/assets/icons/notification-close.svg +0 -3
  29. package/build/main/assets/icons/notification-error.svg +0 -3
  30. package/build/main/assets/icons/notification-failure.svg +0 -3
  31. package/build/main/assets/icons/notification-info.svg +0 -5
  32. package/build/main/assets/icons/notification-success.svg +0 -4
  33. package/build/main/assets/icons/notification-warning.svg +0 -5
  34. package/build/main/assets/icons/order.svg +0 -6
  35. package/build/main/assets/icons/plus.svg +0 -4
  36. package/build/main/assets/icons/refresh.svg +0 -3
  37. package/build/main/assets/icons/story-loader.svg +0 -3
  38. package/build/main/assets/icons/tick.svg +0 -10
  39. package/build/main/assets/icons/trash.svg +0 -3
  40. package/build/main/assets/storybook/index.d.ts +0 -12
  41. package/build/main/assets/storybook/index.js +0 -13
  42. package/build/main/assets/storybook/index.js.map +0 -1
  43. package/build/main/constants/constants.d.ts +0 -132
  44. package/build/main/constants/constants.js +0 -147
  45. package/build/main/constants/constants.js.map +0 -1
  46. package/build/main/constants/index.d.ts +0 -2
  47. package/build/main/constants/index.js +0 -3
  48. package/build/main/constants/index.js.map +0 -1
  49. package/build/main/constants/types.d.ts +0 -28
  50. package/build/main/constants/types.js +0 -2
  51. package/build/main/constants/types.js.map +0 -1
  52. package/build/main/helpers/index.d.ts +0 -20
  53. package/build/main/helpers/index.js +0 -80
  54. package/build/main/helpers/index.js.map +0 -1
  55. package/build/main/index.d.ts +0 -3
  56. package/build/main/index.js +0 -4
  57. package/build/main/index.js.map +0 -1
  58. package/build/main/styles/index.d.ts +0 -1
  59. package/build/main/styles/index.js +0 -2
  60. package/build/main/styles/index.js.map +0 -1
  61. package/build/main/styles/main.js +0 -0
  62. package/build/main/styles/styles.scss +0 -14
  63. package/build/main//321/201omponents/ActionModal/ActionModal.d.ts +0 -4
  64. package/build/main//321/201omponents/ActionModal/ActionModal.js +0 -56
  65. package/build/main//321/201omponents/ActionModal/ActionModal.js.map +0 -1
  66. package/build/main//321/201omponents/ActionModal/index.d.ts +0 -1
  67. package/build/main//321/201omponents/ActionModal/index.js +0 -2
  68. package/build/main//321/201omponents/ActionModal/index.js.map +0 -1
  69. package/build/main//321/201omponents/ActionModal/types.d.ts +0 -20
  70. package/build/main//321/201omponents/ActionModal/types.js +0 -2
  71. package/build/main//321/201omponents/ActionModal/types.js.map +0 -1
  72. package/build/main//321/201omponents/AttachedFile/AttachedFile.d.ts +0 -8
  73. package/build/main//321/201omponents/AttachedFile/AttachedFile.js +0 -60
  74. package/build/main//321/201omponents/AttachedFile/AttachedFile.js.map +0 -1
  75. package/build/main//321/201omponents/AttachedFile/index.d.ts +0 -1
  76. package/build/main//321/201omponents/AttachedFile/index.js +0 -2
  77. package/build/main//321/201omponents/AttachedFile/index.js.map +0 -1
  78. package/build/main//321/201omponents/AttachedFile/types.d.ts +0 -23
  79. package/build/main//321/201omponents/AttachedFile/types.js +0 -2
  80. package/build/main//321/201omponents/AttachedFile/types.js.map +0 -1
  81. package/build/main//321/201omponents/Avatar/Avatar.d.ts +0 -4
  82. package/build/main//321/201omponents/Avatar/Avatar.js +0 -115
  83. package/build/main//321/201omponents/Avatar/Avatar.js.map +0 -1
  84. package/build/main//321/201omponents/Avatar/index.d.ts +0 -1
  85. package/build/main//321/201omponents/Avatar/index.js +0 -2
  86. package/build/main//321/201omponents/Avatar/index.js.map +0 -1
  87. package/build/main//321/201omponents/Avatar/types.d.ts +0 -36
  88. package/build/main//321/201omponents/Avatar/types.js +0 -9
  89. package/build/main//321/201omponents/Avatar/types.js.map +0 -1
  90. package/build/main//321/201omponents/Button/Button.d.ts +0 -4
  91. package/build/main//321/201omponents/Button/Button.js +0 -46
  92. package/build/main//321/201omponents/Button/Button.js.map +0 -1
  93. package/build/main//321/201omponents/Button/index.d.ts +0 -1
  94. package/build/main//321/201omponents/Button/index.js +0 -2
  95. package/build/main//321/201omponents/Button/index.js.map +0 -1
  96. package/build/main//321/201omponents/Button/types.d.ts +0 -23
  97. package/build/main//321/201omponents/Button/types.js +0 -11
  98. package/build/main//321/201omponents/Button/types.js.map +0 -1
  99. package/build/main//321/201omponents/CachedImage/CachedImage.d.ts +0 -4
  100. package/build/main//321/201omponents/CachedImage/CachedImage.js +0 -54
  101. package/build/main//321/201omponents/CachedImage/CachedImage.js.map +0 -1
  102. package/build/main//321/201omponents/CachedImage/helpers.d.ts +0 -3
  103. package/build/main//321/201omponents/CachedImage/helpers.js +0 -40
  104. package/build/main//321/201omponents/CachedImage/helpers.js.map +0 -1
  105. package/build/main//321/201omponents/CachedImage/index.d.ts +0 -1
  106. package/build/main//321/201omponents/CachedImage/index.js +0 -2
  107. package/build/main//321/201omponents/CachedImage/index.js.map +0 -1
  108. package/build/main//321/201omponents/CachedImage/types.d.ts +0 -8
  109. package/build/main//321/201omponents/CachedImage/types.js +0 -2
  110. package/build/main//321/201omponents/CachedImage/types.js.map +0 -1
  111. package/build/main//321/201omponents/Calendar/Calendar.d.ts +0 -4
  112. package/build/main//321/201omponents/Calendar/Calendar.js +0 -48
  113. package/build/main//321/201omponents/Calendar/Calendar.js.map +0 -1
  114. package/build/main//321/201omponents/Calendar/index.d.ts +0 -1
  115. package/build/main//321/201omponents/Calendar/index.js +0 -2
  116. package/build/main//321/201omponents/Calendar/index.js.map +0 -1
  117. package/build/main//321/201omponents/Calendar/types.d.ts +0 -14
  118. package/build/main//321/201omponents/Calendar/types.js +0 -2
  119. package/build/main//321/201omponents/Calendar/types.js.map +0 -1
  120. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.d.ts +0 -3
  121. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js +0 -39
  122. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js.map +0 -1
  123. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.d.ts +0 -3
  124. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js +0 -30
  125. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js.map +0 -1
  126. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.d.ts +0 -3
  127. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js +0 -64
  128. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js.map +0 -1
  129. package/build/main//321/201omponents/Charts/colors.d.ts +0 -2
  130. package/build/main//321/201omponents/Charts/colors.js +0 -3
  131. package/build/main//321/201omponents/Charts/colors.js.map +0 -1
  132. package/build/main//321/201omponents/Charts/constants.d.ts +0 -50
  133. package/build/main//321/201omponents/Charts/constants.js +0 -36
  134. package/build/main//321/201omponents/Charts/constants.js.map +0 -1
  135. package/build/main//321/201omponents/Charts/helpers.d.ts +0 -68
  136. package/build/main//321/201omponents/Charts/helpers.js +0 -91
  137. package/build/main//321/201omponents/Charts/helpers.js.map +0 -1
  138. package/build/main//321/201omponents/Charts/index.d.ts +0 -3
  139. package/build/main//321/201omponents/Charts/index.js +0 -4
  140. package/build/main//321/201omponents/Charts/index.js.map +0 -1
  141. package/build/main//321/201omponents/Charts/types.d.ts +0 -51
  142. package/build/main//321/201omponents/Charts/types.js +0 -2
  143. package/build/main//321/201omponents/Charts/types.js.map +0 -1
  144. package/build/main//321/201omponents/Checkbox/Checkbox.d.ts +0 -4
  145. package/build/main//321/201omponents/Checkbox/Checkbox.js +0 -36
  146. package/build/main//321/201omponents/Checkbox/Checkbox.js.map +0 -1
  147. package/build/main//321/201omponents/Checkbox/index.d.ts +0 -1
  148. package/build/main//321/201omponents/Checkbox/index.js +0 -2
  149. package/build/main//321/201omponents/Checkbox/index.js.map +0 -1
  150. package/build/main//321/201omponents/Checkbox/types.d.ts +0 -9
  151. package/build/main//321/201omponents/Checkbox/types.js +0 -2
  152. package/build/main//321/201omponents/Checkbox/types.js.map +0 -1
  153. package/build/main//321/201omponents/Chip/Chip.d.ts +0 -4
  154. package/build/main//321/201omponents/Chip/Chip.js +0 -40
  155. package/build/main//321/201omponents/Chip/Chip.js.map +0 -1
  156. package/build/main//321/201omponents/Chip/index.d.ts +0 -1
  157. package/build/main//321/201omponents/Chip/index.js +0 -2
  158. package/build/main//321/201omponents/Chip/index.js.map +0 -1
  159. package/build/main//321/201omponents/Chip/types.d.ts +0 -10
  160. package/build/main//321/201omponents/Chip/types.js +0 -2
  161. package/build/main//321/201omponents/Chip/types.js.map +0 -1
  162. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.d.ts +0 -4
  163. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js +0 -44
  164. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js.map +0 -1
  165. package/build/main//321/201omponents/ConfirmationModal/index.d.ts +0 -1
  166. package/build/main//321/201omponents/ConfirmationModal/index.js +0 -2
  167. package/build/main//321/201omponents/ConfirmationModal/index.js.map +0 -1
  168. package/build/main//321/201omponents/ConfirmationModal/types.d.ts +0 -16
  169. package/build/main//321/201omponents/ConfirmationModal/types.js +0 -2
  170. package/build/main//321/201omponents/ConfirmationModal/types.js.map +0 -1
  171. package/build/main//321/201omponents/ContextMenu/ContextMenu.d.ts +0 -4
  172. package/build/main//321/201omponents/ContextMenu/ContextMenu.js +0 -55
  173. package/build/main//321/201omponents/ContextMenu/ContextMenu.js.map +0 -1
  174. package/build/main//321/201omponents/ContextMenu/index.d.ts +0 -1
  175. package/build/main//321/201omponents/ContextMenu/index.js +0 -2
  176. package/build/main//321/201omponents/ContextMenu/index.js.map +0 -1
  177. package/build/main//321/201omponents/ContextMenu/types.d.ts +0 -24
  178. package/build/main//321/201omponents/ContextMenu/types.js +0 -2
  179. package/build/main//321/201omponents/ContextMenu/types.js.map +0 -1
  180. package/build/main//321/201omponents/CustomSelect/CustomSelect.d.ts +0 -4
  181. package/build/main//321/201omponents/CustomSelect/CustomSelect.js +0 -172
  182. package/build/main//321/201omponents/CustomSelect/CustomSelect.js.map +0 -1
  183. package/build/main//321/201omponents/CustomSelect/index.d.ts +0 -1
  184. package/build/main//321/201omponents/CustomSelect/index.js +0 -2
  185. package/build/main//321/201omponents/CustomSelect/index.js.map +0 -1
  186. package/build/main//321/201omponents/CustomSelect/selectStyles.d.ts +0 -16
  187. package/build/main//321/201omponents/CustomSelect/selectStyles.js +0 -61
  188. package/build/main//321/201omponents/CustomSelect/selectStyles.js.map +0 -1
  189. package/build/main//321/201omponents/CustomSelect/types.d.ts +0 -53
  190. package/build/main//321/201omponents/CustomSelect/types.js +0 -2
  191. package/build/main//321/201omponents/CustomSelect/types.js.map +0 -1
  192. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.d.ts +0 -4
  193. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js +0 -57
  194. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js.map +0 -1
  195. package/build/main//321/201omponents/CustomSelectProfiles/index.d.ts +0 -1
  196. package/build/main//321/201omponents/CustomSelectProfiles/index.js +0 -2
  197. package/build/main//321/201omponents/CustomSelectProfiles/index.js.map +0 -1
  198. package/build/main//321/201omponents/CustomSelectProfiles/types.d.ts +0 -12
  199. package/build/main//321/201omponents/CustomSelectProfiles/types.js +0 -2
  200. package/build/main//321/201omponents/CustomSelectProfiles/types.js.map +0 -1
  201. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.d.ts +0 -4
  202. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js +0 -57
  203. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js.map +0 -1
  204. package/build/main//321/201omponents/DragAndDrop/index.d.ts +0 -1
  205. package/build/main//321/201omponents/DragAndDrop/index.js +0 -2
  206. package/build/main//321/201omponents/DragAndDrop/index.js.map +0 -1
  207. package/build/main//321/201omponents/DragAndDrop/types.d.ts +0 -24
  208. package/build/main//321/201omponents/DragAndDrop/types.js +0 -2
  209. package/build/main//321/201omponents/DragAndDrop/types.js.map +0 -1
  210. package/build/main//321/201omponents/Error/Error.d.ts +0 -4
  211. package/build/main//321/201omponents/Error/Error.js +0 -22
  212. package/build/main//321/201omponents/Error/Error.js.map +0 -1
  213. package/build/main//321/201omponents/Error/index.d.ts +0 -1
  214. package/build/main//321/201omponents/Error/index.js +0 -2
  215. package/build/main//321/201omponents/Error/index.js.map +0 -1
  216. package/build/main//321/201omponents/Error/types.d.ts +0 -7
  217. package/build/main//321/201omponents/Error/types.js +0 -2
  218. package/build/main//321/201omponents/Error/types.js.map +0 -1
  219. package/build/main//321/201omponents/Header/Header.d.ts +0 -5
  220. package/build/main//321/201omponents/Header/Header.js +0 -124
  221. package/build/main//321/201omponents/Header/Header.js.map +0 -1
  222. package/build/main//321/201omponents/Header/index.d.ts +0 -1
  223. package/build/main//321/201omponents/Header/index.js +0 -2
  224. package/build/main//321/201omponents/Header/index.js.map +0 -1
  225. package/build/main//321/201omponents/Header/types.d.ts +0 -44
  226. package/build/main//321/201omponents/Header/types.js +0 -2
  227. package/build/main//321/201omponents/Header/types.js.map +0 -1
  228. package/build/main//321/201omponents/Input/Input.d.ts +0 -4
  229. package/build/main//321/201omponents/Input/Input.js +0 -195
  230. package/build/main//321/201omponents/Input/Input.js.map +0 -1
  231. package/build/main//321/201omponents/Input/index.d.ts +0 -1
  232. package/build/main//321/201omponents/Input/index.js +0 -2
  233. package/build/main//321/201omponents/Input/index.js.map +0 -1
  234. package/build/main//321/201omponents/Input/types.d.ts +0 -35
  235. package/build/main//321/201omponents/Input/types.js +0 -2
  236. package/build/main//321/201omponents/Input/types.js.map +0 -1
  237. package/build/main//321/201omponents/ListItem/ListItem.d.ts +0 -23
  238. package/build/main//321/201omponents/ListItem/ListItem.js +0 -195
  239. package/build/main//321/201omponents/ListItem/ListItem.js.map +0 -1
  240. package/build/main//321/201omponents/ListItem/index.d.ts +0 -1
  241. package/build/main//321/201omponents/ListItem/index.js +0 -2
  242. package/build/main//321/201omponents/ListItem/index.js.map +0 -1
  243. package/build/main//321/201omponents/ListItem/types.d.ts +0 -38
  244. package/build/main//321/201omponents/ListItem/types.js +0 -2
  245. package/build/main//321/201omponents/ListItem/types.js.map +0 -1
  246. package/build/main//321/201omponents/Loader/Loader.d.ts +0 -4
  247. package/build/main//321/201omponents/Loader/Loader.js +0 -40
  248. package/build/main//321/201omponents/Loader/Loader.js.map +0 -1
  249. package/build/main//321/201omponents/Loader/index.d.ts +0 -1
  250. package/build/main//321/201omponents/Loader/index.js +0 -2
  251. package/build/main//321/201omponents/Loader/index.js.map +0 -1
  252. package/build/main//321/201omponents/Loader/types.d.ts +0 -12
  253. package/build/main//321/201omponents/Loader/types.js +0 -2
  254. package/build/main//321/201omponents/Loader/types.js.map +0 -1
  255. package/build/main//321/201omponents/Modal/Modal.d.ts +0 -4
  256. package/build/main//321/201omponents/Modal/Modal.js +0 -53
  257. package/build/main//321/201omponents/Modal/Modal.js.map +0 -1
  258. package/build/main//321/201omponents/Modal/index.d.ts +0 -1
  259. package/build/main//321/201omponents/Modal/index.js +0 -2
  260. package/build/main//321/201omponents/Modal/index.js.map +0 -1
  261. package/build/main//321/201omponents/Modal/types.d.ts +0 -15
  262. package/build/main//321/201omponents/Modal/types.js +0 -2
  263. package/build/main//321/201omponents/Modal/types.js.map +0 -1
  264. package/build/main//321/201omponents/Notification/Notification.d.ts +0 -8
  265. package/build/main//321/201omponents/Notification/Notification.js +0 -178
  266. package/build/main//321/201omponents/Notification/Notification.js.map +0 -1
  267. package/build/main//321/201omponents/Notification/index.d.ts +0 -1
  268. package/build/main//321/201omponents/Notification/index.js +0 -2
  269. package/build/main//321/201omponents/Notification/index.js.map +0 -1
  270. package/build/main//321/201omponents/Notification/types.d.ts +0 -39
  271. package/build/main//321/201omponents/Notification/types.js +0 -2
  272. package/build/main//321/201omponents/Notification/types.js.map +0 -1
  273. package/build/main//321/201omponents/Profile/Profile.d.ts +0 -4
  274. package/build/main//321/201omponents/Profile/Profile.js +0 -42
  275. package/build/main//321/201omponents/Profile/Profile.js.map +0 -1
  276. package/build/main//321/201omponents/Profile/index.d.ts +0 -1
  277. package/build/main//321/201omponents/Profile/index.js +0 -2
  278. package/build/main//321/201omponents/Profile/index.js.map +0 -1
  279. package/build/main//321/201omponents/Profile/types.d.ts +0 -14
  280. package/build/main//321/201omponents/Profile/types.js +0 -2
  281. package/build/main//321/201omponents/Profile/types.js.map +0 -1
  282. package/build/main//321/201omponents/ProgressBar/ProgressBar.d.ts +0 -4
  283. package/build/main//321/201omponents/ProgressBar/ProgressBar.js +0 -66
  284. package/build/main//321/201omponents/ProgressBar/ProgressBar.js.map +0 -1
  285. package/build/main//321/201omponents/ProgressBar/index.d.ts +0 -1
  286. package/build/main//321/201omponents/ProgressBar/index.js +0 -2
  287. package/build/main//321/201omponents/ProgressBar/index.js.map +0 -1
  288. package/build/main//321/201omponents/ProgressBar/types.d.ts +0 -4
  289. package/build/main//321/201omponents/ProgressBar/types.js +0 -2
  290. package/build/main//321/201omponents/ProgressBar/types.js.map +0 -1
  291. package/build/main//321/201omponents/RadioButton/RadioButton.d.ts +0 -4
  292. package/build/main//321/201omponents/RadioButton/RadioButton.js +0 -36
  293. package/build/main//321/201omponents/RadioButton/RadioButton.js.map +0 -1
  294. package/build/main//321/201omponents/RadioButton/index.d.ts +0 -1
  295. package/build/main//321/201omponents/RadioButton/index.js +0 -2
  296. package/build/main//321/201omponents/RadioButton/index.js.map +0 -1
  297. package/build/main//321/201omponents/RadioButton/types.d.ts +0 -9
  298. package/build/main//321/201omponents/RadioButton/types.js +0 -2
  299. package/build/main//321/201omponents/RadioButton/types.js.map +0 -1
  300. package/build/main//321/201omponents/ScrollBar/ScrollBar.d.ts +0 -4
  301. package/build/main//321/201omponents/ScrollBar/ScrollBar.js +0 -50
  302. package/build/main//321/201omponents/ScrollBar/ScrollBar.js.map +0 -1
  303. package/build/main//321/201omponents/ScrollBar/index.d.ts +0 -1
  304. package/build/main//321/201omponents/ScrollBar/index.js +0 -2
  305. package/build/main//321/201omponents/ScrollBar/index.js.map +0 -1
  306. package/build/main//321/201omponents/ScrollBar/types.d.ts +0 -9
  307. package/build/main//321/201omponents/ScrollBar/types.js +0 -2
  308. package/build/main//321/201omponents/ScrollBar/types.js.map +0 -1
  309. package/build/main//321/201omponents/Skeleton/Skeleton.d.ts +0 -4
  310. package/build/main//321/201omponents/Skeleton/Skeleton.js +0 -66
  311. package/build/main//321/201omponents/Skeleton/Skeleton.js.map +0 -1
  312. package/build/main//321/201omponents/Skeleton/index.d.ts +0 -1
  313. package/build/main//321/201omponents/Skeleton/index.js +0 -2
  314. package/build/main//321/201omponents/Skeleton/index.js.map +0 -1
  315. package/build/main//321/201omponents/Skeleton/types.d.ts +0 -16
  316. package/build/main//321/201omponents/Skeleton/types.js +0 -2
  317. package/build/main//321/201omponents/Skeleton/types.js.map +0 -1
  318. package/build/main//321/201omponents/Stories/Stories.d.ts +0 -4
  319. package/build/main//321/201omponents/Stories/Stories.js +0 -281
  320. package/build/main//321/201omponents/Stories/Stories.js.map +0 -1
  321. package/build/main//321/201omponents/Stories/index.d.ts +0 -1
  322. package/build/main//321/201omponents/Stories/index.js +0 -2
  323. package/build/main//321/201omponents/Stories/index.js.map +0 -1
  324. package/build/main//321/201omponents/Stories/types.d.ts +0 -54
  325. package/build/main//321/201omponents/Stories/types.js +0 -11
  326. package/build/main//321/201omponents/Stories/types.js.map +0 -1
  327. package/build/main//321/201omponents/Switcher/Switcher.d.ts +0 -4
  328. package/build/main//321/201omponents/Switcher/Switcher.js +0 -34
  329. package/build/main//321/201omponents/Switcher/Switcher.js.map +0 -1
  330. package/build/main//321/201omponents/Switcher/index.d.ts +0 -1
  331. package/build/main//321/201omponents/Switcher/index.js +0 -2
  332. package/build/main//321/201omponents/Switcher/index.js.map +0 -1
  333. package/build/main//321/201omponents/Switcher/types.d.ts +0 -8
  334. package/build/main//321/201omponents/Switcher/types.js +0 -2
  335. package/build/main//321/201omponents/Switcher/types.js.map +0 -1
  336. package/build/main//321/201omponents/SyncLoader/SyncLoader.d.ts +0 -5
  337. package/build/main//321/201omponents/SyncLoader/SyncLoader.js +0 -65
  338. package/build/main//321/201omponents/SyncLoader/SyncLoader.js.map +0 -1
  339. package/build/main//321/201omponents/SyncLoader/index.d.ts +0 -1
  340. package/build/main//321/201omponents/SyncLoader/index.js +0 -2
  341. package/build/main//321/201omponents/SyncLoader/index.js.map +0 -1
  342. package/build/main//321/201omponents/SyncLoader/types.d.ts +0 -7
  343. package/build/main//321/201omponents/SyncLoader/types.js +0 -2
  344. package/build/main//321/201omponents/SyncLoader/types.js.map +0 -1
  345. package/build/main//321/201omponents/Textarea/Textarea.d.ts +0 -4
  346. package/build/main//321/201omponents/Textarea/Textarea.js +0 -85
  347. package/build/main//321/201omponents/Textarea/Textarea.js.map +0 -1
  348. package/build/main//321/201omponents/Textarea/index.d.ts +0 -1
  349. package/build/main//321/201omponents/Textarea/index.js +0 -2
  350. package/build/main//321/201omponents/Textarea/index.js.map +0 -1
  351. package/build/main//321/201omponents/Textarea/types.d.ts +0 -13
  352. package/build/main//321/201omponents/Textarea/types.js +0 -2
  353. package/build/main//321/201omponents/Textarea/types.js.map +0 -1
  354. package/build/main//321/201omponents/Toggle/Toggle.d.ts +0 -4
  355. package/build/main//321/201omponents/Toggle/Toggle.js +0 -38
  356. package/build/main//321/201omponents/Toggle/Toggle.js.map +0 -1
  357. package/build/main//321/201omponents/Toggle/index.d.ts +0 -1
  358. package/build/main//321/201omponents/Toggle/index.js +0 -2
  359. package/build/main//321/201omponents/Toggle/index.js.map +0 -1
  360. package/build/main//321/201omponents/Toggle/types.d.ts +0 -9
  361. package/build/main//321/201omponents/Toggle/types.js +0 -2
  362. package/build/main//321/201omponents/Toggle/types.js.map +0 -1
  363. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.d.ts +0 -4
  364. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js +0 -31
  365. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js.map +0 -1
  366. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.d.ts +0 -4
  367. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js +0 -70
  368. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js.map +0 -1
  369. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.d.ts +0 -4
  370. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js +0 -23
  371. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js.map +0 -1
  372. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.d.ts +0 -3
  373. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js +0 -76
  374. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js.map +0 -1
  375. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.d.ts +0 -3
  376. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js +0 -40
  377. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js.map +0 -1
  378. package/build/main//321/201omponents/UserDropdown/Option/Option.d.ts +0 -4
  379. package/build/main//321/201omponents/UserDropdown/Option/Option.js +0 -55
  380. package/build/main//321/201omponents/UserDropdown/Option/Option.js.map +0 -1
  381. package/build/main//321/201omponents/UserDropdown/UserDropdown.d.ts +0 -4
  382. package/build/main//321/201omponents/UserDropdown/UserDropdown.js +0 -386
  383. package/build/main//321/201omponents/UserDropdown/UserDropdown.js.map +0 -1
  384. package/build/main//321/201omponents/UserDropdown/helpers.d.ts +0 -87
  385. package/build/main//321/201omponents/UserDropdown/helpers.js +0 -47
  386. package/build/main//321/201omponents/UserDropdown/helpers.js.map +0 -1
  387. package/build/main//321/201omponents/UserDropdown/index.d.ts +0 -1
  388. package/build/main//321/201omponents/UserDropdown/index.js +0 -2
  389. package/build/main//321/201omponents/UserDropdown/index.js.map +0 -1
  390. package/build/main//321/201omponents/UserDropdown/selectStyles.d.ts +0 -15
  391. package/build/main//321/201omponents/UserDropdown/selectStyles.js +0 -72
  392. package/build/main//321/201omponents/UserDropdown/selectStyles.js.map +0 -1
  393. package/build/main//321/201omponents/UserDropdown/types.d.ts +0 -183
  394. package/build/main//321/201omponents/UserDropdown/types.js +0 -2
  395. package/build/main//321/201omponents/UserDropdown/types.js.map +0 -1
  396. package/build/main//321/201omponents/index.d.ts +0 -32
  397. package/build/main//321/201omponents/index.js +0 -33
  398. package/build/main//321/201omponents/index.js.map +0 -1
  399. package/build/main//321/201omponents/types.d.ts +0 -2
  400. package/build/main//321/201omponents/types.js +0 -2
  401. package/build/main//321/201omponents/types.js.map +0 -1
@@ -1,22 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
- import { ReactComponent as ErrorIcon } from '../../assets/icons/error.svg';
14
- import { getColor } from '../../helpers';
15
- import { COLORS } from '../../constants';
16
- import '../../styles/styles.scss';
17
- var Error = function (_a) {
18
- var _b = _a.title, title = _b === void 0 ? 'Ошибка' : _b, _c = _a.text, text = _c === void 0 ? 'Попробуйте еще раз' : _c, _d = _a.width, width = _d === void 0 ? 100 : _d, iconColor = _a.iconColor;
19
- return (_jsxs("div", __assign({ className: "smartapp-error", style: { width: "".concat(width, "%") } }, { children: [_jsx("div", __assign({ className: "smartapp-error__icon" }, { children: _jsx(ErrorIcon, { style: { color: getColor(iconColor, COLORS.gray) } }) })), _jsx("p", __assign({ className: "smartapp-error__title" }, { children: title })), _jsx("p", __assign({ className: "smartapp-error__text" }, { children: text }))] })));
20
- };
21
- export default Error;
22
- //# sourceMappingURL=Error.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Error.js","sourceRoot":"","sources":["../../../../src/сomponents/Error/Error.tsx"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,EAAE,cAAc,IAAI,SAAS,EAAE,MAAM,8BAA8B,CAAA;AAE1E,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AACxC,OAAO,0BAA0B,CAAA;AAEjC,IAAM,KAAK,GAAG,UAAC,EAAsF;QAApF,aAAgB,EAAhB,KAAK,mBAAG,QAAQ,KAAA,EAAE,YAA2B,EAA3B,IAAI,mBAAG,oBAAoB,KAAA,EAAE,aAAW,EAAX,KAAK,mBAAG,GAAG,KAAA,EAAE,SAAS,eAAA;IAAoB,OAAA,CACxG,wBAAK,SAAS,EAAC,gBAAgB,EAAC,KAAK,EAAE,EAAE,KAAK,EAAE,UAAG,KAAK,MAAG,EAAE,iBAC3D,uBAAK,SAAS,EAAC,sBAAsB,gBACnC,KAAC,SAAS,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE,GAAI,IAC7D,EACN,qBAAG,SAAS,EAAC,uBAAuB,gBAAE,KAAK,IAAK,EAChD,qBAAG,SAAS,EAAC,sBAAsB,gBAAE,IAAI,IAAK,KAC1C,CACP;AARyG,CAQzG,CAAA;AAED,eAAe,KAAK,CAAA"}
@@ -1 +0,0 @@
1
- export { default } from './Error';
@@ -1,2 +0,0 @@
1
- export { default } from './Error';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/Error/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA"}
@@ -1,7 +0,0 @@
1
- import { IntRange } from '../types';
2
- export interface IErrorProps {
3
- title?: string;
4
- text?: string;
5
- width?: IntRange<1, 101>;
6
- iconColor?: string;
7
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/Error/types.ts"],"names":[],"mappings":""}
@@ -1,5 +0,0 @@
1
- import { IHeaderProps } from './types';
2
- import '../../styles/styles.scss';
3
- export declare const DEFAULT_HEADER_HEIGHT = 48;
4
- declare const Header: ({ title, counter, isBack, isRemove, titleIcon, refreshIcon, customIcon, avatar, onClickBack, onClickRemove, arrowColor, trashColor, platform, headerHeight, textSize, backgroundColor, removeIconOrder, }: IHeaderProps) => import("react/jsx-runtime").JSX.Element;
5
- export default Header;
@@ -1,124 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
- import { useEffect, useRef } from 'react';
14
- import classNames from 'classnames';
15
- import { isArray } from 'lodash';
16
- import Avatar from '../Avatar';
17
- import { ReactComponent as ArrowBackIcon } from '../../assets/icons/arrow-back.svg';
18
- import { ReactComponent as TrashIcon } from '../../assets/icons/trash.svg';
19
- import { ReactComponent as RefreshIcon } from '../../assets/icons/refresh.svg';
20
- import { ReactComponent as ArrowUpIcon } from '../../assets/icons/arrow-up.svg';
21
- import { ReactComponent as ArrowDownIcon } from '../../assets/icons/arrow-down.svg';
22
- import { getColor } from '../../helpers';
23
- import { HEADER_COLOR_BG, PLATFORM, TITLE_SIZE } from '../../constants';
24
- import '../../styles/styles.scss';
25
- export var DEFAULT_HEADER_HEIGHT = 48;
26
- var MIN_TWO_DIGIT_NUMBER = 10;
27
- var MAX_TWO_DIGIT_NUMBER = 99;
28
- var MIN_THREE_DIGIT_NUMBER = 100;
29
- var SMALL_TITLE_SIZE_PADDING = 16;
30
- var MAJOR_TITLE_SIZE_PADDING = 8;
31
- var THREE_DIGIT_TEXT_COUNTER = '99+';
32
- var TITLE_PRESSED_CLASSNAME = 'smartapp-header__info--title__pressed';
33
- var AVATAR_PRESSED_CLASSNAME = 'smartapp-header__icons--avatar-pressed';
34
- var ICON_PRESSED_CLASSNAME = 'smartapp-header-icon__pressed';
35
- var titleSizeSmall = TITLE_SIZE.small, titleSizeMajor = TITLE_SIZE.major;
36
- var HeaderIcon = function (_a) {
37
- var _b = _a.isDisabled, isDisabled = _b === void 0 ? false : _b, order = _a.order, titleBackground = _a.titleBackground, icon = _a.icon, onClick = _a.onClick;
38
- var iconRef = useRef(null);
39
- var handleClick = function () { return !isDisabled && (onClick === null || onClick === void 0 ? void 0 : onClick()); };
40
- var handleMouseDown = function () { var _a; return !isDisabled && ((_a = iconRef.current) === null || _a === void 0 ? void 0 : _a.classList.add(ICON_PRESSED_CLASSNAME)); };
41
- var handleMouseUp = function () { var _a; return (_a = iconRef.current) === null || _a === void 0 ? void 0 : _a.classList.remove(ICON_PRESSED_CLASSNAME); };
42
- useEffect(function () {
43
- !isDisabled && window.addEventListener('mouseup', handleMouseUp);
44
- return function () {
45
- !isDisabled && window.removeEventListener('mouseup', handleMouseUp);
46
- };
47
- }, [isDisabled]);
48
- return (_jsx("div", __assign({ ref: iconRef, className: classNames('smartapp-header-icon', {
49
- 'smartapp-header-icon__disabled': isDisabled,
50
- 'smartapp-header-icon__blue': titleBackground === HEADER_COLOR_BG.blue,
51
- }), style: { order: order }, onClick: handleClick, onMouseDown: handleMouseDown }, { children: icon })));
52
- };
53
- var Header = function (_a) {
54
- var _b = _a.title, title = _b === void 0 ? '' : _b, _c = _a.counter, counter = _c === void 0 ? 0 : _c, _d = _a.isBack, isBack = _d === void 0 ? false : _d, _e = _a.isRemove, isRemove = _e === void 0 ? false : _e, titleIcon = _a.titleIcon, refreshIcon = _a.refreshIcon, customIcon = _a.customIcon, avatar = _a.avatar, _f = _a.onClickBack, onClickBack = _f === void 0 ? function () { return undefined; } : _f, _g = _a.onClickRemove, onClickRemove = _g === void 0 ? function () { return undefined; } : _g, arrowColor = _a.arrowColor, trashColor = _a.trashColor, _h = _a.platform, platform = _h === void 0 ? PLATFORM.web : _h, _j = _a.headerHeight, headerHeight = _j === void 0 ? DEFAULT_HEADER_HEIGHT : _j, _k = _a.textSize, textSize = _k === void 0 ? titleSizeSmall : _k, _l = _a.backgroundColor, backgroundColor = _l === void 0 ? HEADER_COLOR_BG.grey : _l, _m = _a.removeIconOrder, removeIconOrder = _m === void 0 ? 1 : _m;
55
- var titleRef = useRef(null);
56
- var avatarRef = useRef(null);
57
- var isBlueBackgroundColor = backgroundColor === HEADER_COLOR_BG.blue;
58
- var isGreyBackgroundColor = backgroundColor === HEADER_COLOR_BG.grey;
59
- var isCustomBackgroundColor = !isBlueBackgroundColor && !isGreyBackgroundColor;
60
- useEffect(function () {
61
- window.addEventListener('mouseup', handleMouseUp);
62
- return function () {
63
- window.removeEventListener('mouseup', handleMouseUp);
64
- };
65
- }, []);
66
- var generateHeaderStyles = function () {
67
- var headerPadding = textSize === titleSizeMajor && title ? MAJOR_TITLE_SIZE_PADDING : SMALL_TITLE_SIZE_PADDING;
68
- var backgroundStyle = isCustomBackgroundColor ? { background: backgroundColor } : {};
69
- return __assign({ height: "".concat(headerHeight - headerPadding, "px") }, backgroundStyle);
70
- };
71
- var handleMouseDown = function (_a) {
72
- var _b;
73
- var ref = _a.ref, className = _a.className;
74
- return (_b = ref.current) === null || _b === void 0 ? void 0 : _b.classList.add(className);
75
- };
76
- var handleMouseUp = function () {
77
- var _a, _b;
78
- (_a = titleRef.current) === null || _a === void 0 ? void 0 : _a.classList.remove(TITLE_PRESSED_CLASSNAME);
79
- (_b = avatarRef.current) === null || _b === void 0 ? void 0 : _b.classList.remove(AVATAR_PRESSED_CLASSNAME);
80
- };
81
- var renderTitle = function () { return (_jsxs("p", __assign({ ref: titleRef, className: classNames('smartapp-header__info--title', {
82
- 'smartapp-header__info--title__blue': isBlueBackgroundColor,
83
- }), onMouseDown: function () { return handleMouseDown({ ref: titleRef, className: TITLE_PRESSED_CLASSNAME }); }, onClick: titleIcon && titleIcon.onClick }, { children: [_jsx("span", { children: title }), titleIcon && renderTitleIcon(titleIcon)] }))); };
84
- var renderCounter = function () {
85
- var isTwoDigitNumber = counter >= MIN_TWO_DIGIT_NUMBER && counter <= MAX_TWO_DIGIT_NUMBER;
86
- var isThreeDigitNumber = counter >= MIN_THREE_DIGIT_NUMBER;
87
- var textCounter = isThreeDigitNumber ? THREE_DIGIT_TEXT_COUNTER : counter;
88
- return (_jsx("div", __assign({ className: classNames('smartapp-header__info--counter', {
89
- 'smartapp-header__info--counter__two-digit': isTwoDigitNumber,
90
- 'smartapp-header__info--counter__three-digit': isThreeDigitNumber,
91
- }) }, { children: textCounter })));
92
- };
93
- var renderBackIcon = function () { return (_jsx(HeaderIcon, { titleBackground: backgroundColor, icon: _jsx(ArrowBackIcon, { className: "smartapp-header__info--arrow-back", style: { color: getColor(arrowColor) } }), onClick: onClickBack })); };
94
- var renderRemoveIcon = function () { return (_jsx(HeaderIcon, { titleBackground: backgroundColor, icon: _jsx(TrashIcon, { style: { color: getColor(trashColor) } }), onClick: onClickRemove })); };
95
- var renderTitleIcon = function (_a) {
96
- var isUpDirection = _a.isUpDirection;
97
- return isUpDirection ? _jsx(ArrowUpIcon, { className: "smartapp-header__info--title__icon" }) : _jsx(ArrowDownIcon, { className: "smartapp-header__info--title__icon" });
98
- };
99
- var renderRefreshIcon = function (_a) {
100
- var isEnabled = _a.isEnabled, color = _a.color, onClick = _a.onClick;
101
- return (_jsx(HeaderIcon, { titleBackground: backgroundColor, icon: _jsx(RefreshIcon, { className: classNames({ 'smartapp-header__icons--refresh': isEnabled }), style: { color: getColor(color) } }), onClick: !isEnabled ? onClick : function () { } }));
102
- };
103
- var renderAvatar = function () { return (_jsx(Avatar, __assign({}, avatar, { avatarRef: avatarRef, className: isRemove || refreshIcon || customIcon ? 'smartapp-avatar__ml' : '', size: 32, onMouseDown: function () { return handleMouseDown({ ref: avatarRef, className: AVATAR_PRESSED_CLASSNAME }); } }))); };
104
- var renderCustomIcons = function () {
105
- if (isArray(customIcon))
106
- return customIcon.map(function (_a, index) {
107
- var isDisabled = _a.isDisabled, icon = _a.icon, onClick = _a.onClick;
108
- var order = index + 1 < removeIconOrder ? -1 : 0;
109
- return _jsx(HeaderIcon, { isDisabled: isDisabled, order: order, titleBackground: backgroundColor, icon: icon, onClick: onClick }, index);
110
- });
111
- if (customIcon)
112
- return _jsx(HeaderIcon, { titleBackground: backgroundColor, icon: customIcon });
113
- };
114
- var generateHeaderClassNames = function () {
115
- var _a;
116
- return classNames('smartapp-header', "smartapp-header__".concat(platform), "smartapp-header__".concat(textSize), (_a = {},
117
- _a["smartapp-header__".concat(textSize, "--with-title")] = title,
118
- _a["smartapp-header__".concat(backgroundColor)] = !isCustomBackgroundColor,
119
- _a));
120
- };
121
- return (_jsxs("div", __assign({ className: generateHeaderClassNames(), style: generateHeaderStyles() }, { children: [_jsxs("div", __assign({ className: "smartapp-header__info" }, { children: [isBack && renderBackIcon(), title && renderTitle(), !!counter && renderCounter()] })), (isRemove || refreshIcon || customIcon || avatar) && (_jsxs("div", __assign({ className: classNames('smartapp-header__icons', "smartapp-header__icons--".concat(backgroundColor), { 'smartapp-header__icons--ml': !!counter }) }, { children: [isRemove && renderRemoveIcon(), refreshIcon && renderRefreshIcon(refreshIcon), renderCustomIcons(), avatar && renderAvatar()] })))] })));
122
- };
123
- export default Header;
124
- //# sourceMappingURL=Header.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Header.js","sourceRoot":"","sources":["../../../../src/сomponents/Header/Header.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAa,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAC3D,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAA;AAChC,OAAO,MAAM,MAAM,WAAW,CAAA;AAC9B,OAAO,EAAE,cAAc,IAAI,aAAa,EAAE,MAAM,mCAAmC,CAAA;AACnF,OAAO,EAAE,cAAc,IAAI,SAAS,EAAE,MAAM,8BAA8B,CAAA;AAC1E,OAAO,EAAE,cAAc,IAAI,WAAW,EAAE,MAAM,gCAAgC,CAAA;AAC9E,OAAO,EAAE,cAAc,IAAI,WAAW,EAAE,MAAM,iCAAiC,CAAA;AAC/E,OAAO,EAAE,cAAc,IAAI,aAAa,EAAE,MAAM,mCAAmC,CAAA;AACnF,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACxC,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AQ,IAAI,gBAAgB,EAAE,EAC9B,WAAW,IAAI,iBAAiB,CAAC,WAAW,CAAC,EAC7C,iBAAiB,EAAE,EACnB,MAAM,IAAI,YAAY,EAAE,KACrB,CACP,KACG,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,MAAM,CAAA"}
@@ -1 +0,0 @@
1
- export { default } from './Header';
@@ -1,2 +0,0 @@
1
- export { default } from './Header';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/Header/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA"}
@@ -1,44 +0,0 @@
1
- import { ReactElement } from 'react';
2
- import { IPlatformProps } from '../../constants';
3
- import { IAvatarProps } from '../Avatar/types';
4
- import { IntRange } from '../types';
5
- export type TTitleIcon = {
6
- isUpDirection: boolean;
7
- onClick: () => void;
8
- };
9
- export type TRefreshIcon = {
10
- isEnabled: boolean;
11
- color?: string;
12
- onClick: () => void;
13
- };
14
- type TCustomIcon = {
15
- isDisabled?: boolean;
16
- icon: ReactElement;
17
- onClick: () => void;
18
- };
19
- export interface IHeaderIconProps {
20
- isDisabled?: boolean;
21
- order?: number;
22
- titleBackground: string;
23
- icon: ReactElement;
24
- onClick?: () => void;
25
- }
26
- export interface IHeaderProps extends IPlatformProps {
27
- title?: string;
28
- counter?: number;
29
- isBack?: boolean;
30
- isRemove?: boolean;
31
- titleIcon?: TTitleIcon;
32
- refreshIcon?: TRefreshIcon;
33
- customIcon?: ReactElement | TCustomIcon[];
34
- avatar?: IAvatarProps;
35
- onClickBack?: () => void;
36
- onClickRemove?: () => void;
37
- arrowColor?: string;
38
- trashColor?: string;
39
- headerHeight?: number;
40
- textSize?: 'small' | 'major';
41
- backgroundColor?: 'grey' | 'blue' | string;
42
- removeIconOrder?: IntRange<1, 6>;
43
- }
44
- export {};
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/Header/types.ts"],"names":[],"mappings":""}
@@ -1,4 +0,0 @@
1
- import { IInputProps } from './types';
2
- import '../../styles/styles.scss';
3
- declare const Input: ({ isPassword, isDisabled, isClearable, isSearchable, autoFocus, title, mask, placeholder, additionalPlaceholder, defaultValue, additionalDefaultValue, maxCharacters, hint, error, inputType, additionalInputType, fieldType, fillType, counterType, width, iconColor, className, onChange, onFocus, onBlur, onAdditionalChange, onAdditionalFocus, onAdditionalBlur, onEnterPress, onClearClick, }: IInputProps) => import("react/jsx-runtime").JSX.Element;
4
- export default Input;
@@ -1,195 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
- import { useRef, useState, useEffect } from 'react';
14
- import classNames from 'classnames';
15
- import { isEmpty, isNil, isNull } from 'lodash';
16
- import { getColor, isSecondaryFillType } from '../../helpers';
17
- import { ADDITIONAL_INPUT_PR, ADDITIONAL_MAX_CHARACTERS, DEFAULT_INPUT_PADDING, ENTER_KEY, FILL_TYPE, INPUT_COUNTER_TIMEOUT, INPUT_COUNTER_TYPE, INPUT_FIELD_TYPE, INPUT_TYPE_PASSWORD, INPUT_TYPE_TEXT, MASK_INPUT_PL, } from '../../constants';
18
- import { ReactComponent as EyeIcon } from '../../assets/icons/eye.svg';
19
- import { ReactComponent as EyeOffIcon } from '../../assets/icons/eye-off.svg';
20
- import { ReactComponent as ClearIcon } from '../../assets/icons/clear.svg';
21
- import { ReactComponent as MagnifyingGlassIcon } from '../../assets/icons/magnifying-glass.svg';
22
- import '../../styles/styles.scss';
23
- var Input = function (_a) {
24
- var _b;
25
- var _c = _a.isPassword, isPassword = _c === void 0 ? false : _c, _d = _a.isDisabled, isDisabled = _d === void 0 ? false : _d, _e = _a.isClearable, isClearable = _e === void 0 ? false : _e, _f = _a.isSearchable, isSearchable = _f === void 0 ? false : _f, _g = _a.autoFocus, autoFocus = _g === void 0 ? false : _g, title = _a.title, mask = _a.mask, placeholder = _a.placeholder, additionalPlaceholder = _a.additionalPlaceholder, defaultValue = _a.defaultValue, additionalDefaultValue = _a.additionalDefaultValue, maxCharacters = _a.maxCharacters, hint = _a.hint, error = _a.error, inputType = _a.inputType, additionalInputType = _a.additionalInputType, _h = _a.fieldType, fieldType = _h === void 0 ? INPUT_FIELD_TYPE.text : _h, _j = _a.fillType, fillType = _j === void 0 ? FILL_TYPE.primary : _j, _k = _a.counterType, counterType = _k === void 0 ? INPUT_COUNTER_TYPE.text : _k, _l = _a.width, width = _l === void 0 ? 100 : _l, iconColor = _a.iconColor, _m = _a.className, className = _m === void 0 ? '' : _m, onChange = _a.onChange, onFocus = _a.onFocus, onBlur = _a.onBlur, onAdditionalChange = _a.onAdditionalChange, onAdditionalFocus = _a.onAdditionalFocus, onAdditionalBlur = _a.onAdditionalBlur, onEnterPress = _a.onEnterPress, onClearClick = _a.onClearClick;
26
- var inputRef = useRef(null);
27
- var maskRef = useRef(null);
28
- var additionalInputRef = useRef(null);
29
- var hiddenSpanRef = useRef(null);
30
- var _o = useState(0), inputLength = _o[0], setInputLength = _o[1];
31
- var _p = useState(maxCharacters || 0), remainingCharacters = _p[0], setRemainingCharacters = _p[1];
32
- var _q = useState(null), timeoutId = _q[0], setTimeoutId = _q[1];
33
- var _r = useState(false), isPasswordShown = _r[0], setIsPasswordShown = _r[1];
34
- var _s = useState(0), additionalWidth = _s[0], setAdditionalWidth = _s[1];
35
- var _t = useState(0), minAdditionalWidth = _t[0], setMinAdditionalWidth = _t[1];
36
- var _u = useState(false), isClearableIconVisible = _u[0], setIsClearableIconVisible = _u[1];
37
- var iconStyles = { color: getColor(iconColor) };
38
- useEffect(function () {
39
- var inputElement = inputRef.current;
40
- var setScrollLeftAsLeftByUser = function (event) {
41
- var scrollLeft = event.target.scrollLeft;
42
- setTimeout(function () {
43
- event.target.scrollLeft = scrollLeft;
44
- }, 0);
45
- };
46
- inputElement === null || inputElement === void 0 ? void 0 : inputElement.addEventListener('blur', setScrollLeftAsLeftByUser);
47
- return function () {
48
- inputElement === null || inputElement === void 0 ? void 0 : inputElement.removeEventListener('blur', setScrollLeftAsLeftByUser);
49
- };
50
- }, []);
51
- useEffect(function () {
52
- var inputElement = inputRef.current;
53
- if (inputElement && inputElement.value.length) {
54
- var textLength = inputElement.value.length;
55
- inputElement.selectionStart = textLength;
56
- inputElement.selectionEnd = textLength;
57
- inputElement.focus();
58
- }
59
- }, [isPasswordShown]);
60
- useEffect(function () {
61
- if (!remainingCharacters) {
62
- handleSetTimeoutForCounter();
63
- }
64
- }, [remainingCharacters]);
65
- useEffect(function () {
66
- var hiddenSpanRefCurrent = hiddenSpanRef.current;
67
- if (hiddenSpanRefCurrent && additionalPlaceholder) {
68
- hiddenSpanRefCurrent.innerText = additionalPlaceholder;
69
- var minAdditionalWidthValue = hiddenSpanRefCurrent.getBoundingClientRect().width;
70
- hiddenSpanRefCurrent.innerText = additionalDefaultValue || additionalPlaceholder;
71
- var additionalWidthValue = hiddenSpanRefCurrent.getBoundingClientRect().width;
72
- setAdditionalWidth(additionalWidthValue < minAdditionalWidthValue ? minAdditionalWidthValue : additionalWidthValue);
73
- setMinAdditionalWidth(minAdditionalWidthValue);
74
- }
75
- }, [additionalPlaceholder, additionalDefaultValue]);
76
- var getInputPaddingLeft = function () {
77
- var maskWidth = maskRef.current ? maskRef.current.getBoundingClientRect().width : null;
78
- return "".concat(maskWidth ? maskWidth + MASK_INPUT_PL : DEFAULT_INPUT_PADDING, "px");
79
- };
80
- var getInputPaddingRight = function () {
81
- var additionalInputWidth = additionalInputRef.current ? additionalInputRef.current.getBoundingClientRect().width : null;
82
- return "".concat(additionalInputWidth ? additionalInputWidth + ADDITIONAL_INPUT_PR : DEFAULT_INPUT_PADDING, "px");
83
- };
84
- var getInputType = function () {
85
- if (isPassword) {
86
- return isPasswordShown ? INPUT_TYPE_TEXT : INPUT_TYPE_PASSWORD;
87
- }
88
- return inputType || INPUT_TYPE_TEXT;
89
- };
90
- var isTitleCounterType = function () { return counterType === INPUT_COUNTER_TYPE.title; };
91
- var isTitleCounterVisible = function () { return isTitleCounterType() && !isNil(maxCharacters); };
92
- var isTextCounterVisible = function () {
93
- if (isNil(maxCharacters) || isTitleCounterType()) {
94
- return false;
95
- }
96
- // 30 percent of the maximum characters
97
- var charactersToCompare = (maxCharacters * 30) / 100;
98
- return remainingCharacters < charactersToCompare;
99
- };
100
- var handleSetTimeoutForCounter = function () {
101
- var id = setTimeout(function () { return setTimeoutId(null); }, INPUT_COUNTER_TIMEOUT);
102
- setTimeoutId(id);
103
- };
104
- var handleKeyDown = function (_a) {
105
- var key = _a.key;
106
- if (key === ENTER_KEY && onEnterPress) {
107
- onEnterPress();
108
- }
109
- if (!remainingCharacters) {
110
- !isNull(timeoutId) && clearTimeout(timeoutId);
111
- handleSetTimeoutForCounter();
112
- }
113
- };
114
- var isInputValueEmpty = function () { var _a; return isEmpty((_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.value); };
115
- var handleFocus = function () {
116
- setIsClearableIconVisible(!isInputValueEmpty());
117
- onFocus && onFocus();
118
- };
119
- var handleBlur = function () {
120
- setIsClearableIconVisible(fieldType === INPUT_FIELD_TYPE.search ? !isInputValueEmpty() : false);
121
- onBlur && onBlur();
122
- };
123
- var handleChange = function (_a) {
124
- var value = _a.target.value;
125
- var valueLength = value.length;
126
- onChange(value);
127
- setInputLength(valueLength);
128
- setIsClearableIconVisible(!!valueLength);
129
- if (maxCharacters) {
130
- var remainingCharacters_1 = maxCharacters - valueLength;
131
- setRemainingCharacters(remainingCharacters_1);
132
- if (!!remainingCharacters_1 && !isNull(timeoutId)) {
133
- clearTimeout(timeoutId);
134
- setTimeoutId(null);
135
- }
136
- }
137
- };
138
- var handleAdditionalChange = function (_a) {
139
- var value = _a.target.value;
140
- onAdditionalChange && onAdditionalChange(value);
141
- if (hiddenSpanRef.current) {
142
- hiddenSpanRef.current.innerText = value;
143
- var spanWidth = hiddenSpanRef.current.getBoundingClientRect().width;
144
- var width_1 = spanWidth < minAdditionalWidth ? minAdditionalWidth : spanWidth;
145
- setAdditionalWidth(width_1);
146
- }
147
- };
148
- var handleClickButton = function () {
149
- var _a, _b;
150
- setIsPasswordShown(!isPasswordShown);
151
- !((_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.value.length) && ((_b = inputRef.current) === null || _b === void 0 ? void 0 : _b.focus());
152
- };
153
- var handleClearClick = function (event) {
154
- event.preventDefault();
155
- if (inputRef.current && onClearClick) {
156
- inputRef.current.value = '';
157
- setIsClearableIconVisible(false);
158
- onClearClick();
159
- }
160
- };
161
- var renderInputTitle = function () {
162
- return title && (_jsxs("div", __assign({ className: "smartapp-input__title" }, { children: [_jsx("p", __assign({ className: "smartapp-input__title--text" }, { children: title })), renderTitleCounter()] })));
163
- };
164
- var renderMask = function () {
165
- return mask && (_jsx("div", __assign({ ref: maskRef, className: "smartapp-input__container--mask" }, { children: mask })));
166
- };
167
- var renderTitleCounter = function () {
168
- return isTitleCounterVisible() && (_jsx("div", __assign({ className: classNames('smartapp-input__title--counter', { 'smartapp-input__title--counter__error': !isNull(timeoutId) }) }, { children: "".concat(inputLength, "/").concat(maxCharacters) })));
169
- };
170
- var renderEyeIcon = function () {
171
- return isPassword && (_jsx("button", __assign({ type: "button", className: "smartapp-input__container--eye-button", onClick: handleClickButton }, { children: isPasswordShown ? _jsx(EyeIcon, { style: iconStyles }) : _jsx(EyeOffIcon, { style: iconStyles }) })));
172
- };
173
- var renderMagnifyingGlass = function () {
174
- return isSearchable && _jsx(MagnifyingGlassIcon, { className: "smartapp-input__container--magnifying-glass-icon", style: iconStyles });
175
- };
176
- var renderClearIcon = function () {
177
- return isClearable &&
178
- isClearableIconVisible && (_jsx(ClearIcon, { className: "smartapp-input__container--clear-icon", style: iconStyles, onMouseDown: handleClearClick, onTouchEnd: handleClearClick }));
179
- };
180
- var renderTextCounter = function () {
181
- return isTextCounterVisible() && (_jsx("div", __assign({ className: classNames('smartapp-input__container--counter', { 'smartapp-input__container--counter__error': !isNull(timeoutId) }) }, { children: remainingCharacters })));
182
- };
183
- var renderError = function () { return error && _jsx("div", __assign({ className: "smartapp-input__container--error" }, { children: error })); };
184
- var renderHint = function () { return hint && _jsx("div", __assign({ className: "smartapp-input__hint" }, { children: hint })); };
185
- return (_jsxs("div", __assign({ style: { width: "".concat(width, "%") }, className: classNames('smartapp-input', (_b = {}, _b[className] = className, _b)) }, { children: [renderInputTitle(), _jsxs("div", __assign({ className: "smartapp-input__container" }, { children: [renderMask(), _jsx("input", { ref: inputRef, className: classNames('smartapp-input__container--field', {
186
- 'smartapp-input__container--field__with-button': isPassword || isClearable || isSearchable,
187
- 'smartapp-input__container--field__disabled': isDisabled,
188
- 'smartapp-input__container--field__error': error,
189
- 'smartapp-input__container--field__secondary-fill-type': isSecondaryFillType(fillType),
190
- }), style: { paddingLeft: getInputPaddingLeft(), paddingRight: getInputPaddingRight() }, type: getInputType(), defaultValue: defaultValue, disabled: isDisabled, autoFocus: autoFocus, maxLength: maxCharacters, placeholder: placeholder, onKeyDown: handleKeyDown, onChange: handleChange, onFocus: handleFocus, onBlur: handleBlur }), onAdditionalChange && (_jsxs("div", __assign({ className: "smartapp-input__container--additional-field", style: { width: "".concat(additionalWidth, "px") } }, { children: [_jsx("input", { ref: additionalInputRef, className: classNames('smartapp-input__container--additional-field__input', {
191
- 'smartapp-input__container--additional-field__input--disabled': isDisabled,
192
- }), type: additionalInputType, defaultValue: additionalDefaultValue, disabled: isDisabled, maxLength: ADDITIONAL_MAX_CHARACTERS, placeholder: additionalPlaceholder, onChange: handleAdditionalChange, onFocus: onAdditionalFocus, onBlur: onAdditionalBlur }), _jsx("span", { ref: hiddenSpanRef, className: "smartapp-input__container--additional-field__hidden-span" })] }))), renderEyeIcon(), renderMagnifyingGlass(), renderClearIcon(), renderTextCounter(), renderError()] })), renderHint()] })));
193
- };
194
- export default Input;
195
- //# sourceMappingURL=Input.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Input.js","sourceRoot":"","sources":["../../../../src/сomponents/Input/Input.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAC1D,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/C,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAA;AAC7D,OAAO,EACL,mBAAmB,EACnB,yBAAyB,EACzB,qBAAqB,EACrB,SAAS,EACT,SAAS,EACT,qBAAqB,EACrB,kBAAkB,EAClB,gBAAgB,EAChB,mBAAmB,EACnB,eAAe,EACf,aAAa,GACd,MAAM,iBAAiB,CAAA;AAExB,OAAO,EAAE,cAAc,IAAI,OAAO,EAAE,MAAM,4BAA4B,CAAA;AACtE,OAAO,EAAE,cAAc,IAAI,UAAU,EAAE,MAAM,gCAAgC,CAAA;AAC7E,OAAO,EAAE,cAAc,IAAI,SAAS,EAAE,MAAM,8BAA8B,CAAA;AAC1E,OAAO,EAAE,cAAc,IAAI,mBAAmB,EAAE,MAAM,yCAAyC,CAAA;AAC/F,OAAO,0BAA0B,CAAA;AAEjC,IAAM,KAAK,GAAG,UAAC,EA+BD;;QA9BZ,kBAAkB,EAAlB,UAAU,mBAAG,KAAK,KAAA,EAClB,kBAAkB,EAAlB,UAAU,mBAAG,KAAK,KAAA,EAClB,mBAAmB,EAAnB,WAAW,mBAAG,KAAK,KAAA,EACnB,oBAAoB,EAApB,YAAY,mBAAG,KAAK,KAAA,E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,GACxB,EACF,eAAM,GAAG,EAAE,aAAa,EAAE,SAAS,EAAC,0DAA0D,GAAG,KAC7F,CACP,EACA,aAAa,EAAE,EACf,qBAAqB,EAAE,EACvB,eAAe,EAAE,EACjB,iBAAiB,EAAE,EACnB,WAAW,EAAE,KACV,EACL,UAAU,EAAE,KACT,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,KAAK,CAAA"}
@@ -1 +0,0 @@
1
- export { default } from './Input';
@@ -1,2 +0,0 @@
1
- export { default } from './Input';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/Input/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA"}
@@ -1,35 +0,0 @@
1
- import { HTMLInputTypeAttribute } from 'react';
2
- import { IntRange } from '../types';
3
- import { IThemeProps } from '../../constants';
4
- export interface IInputProps extends IThemeProps {
5
- isPassword?: boolean;
6
- isDisabled?: boolean;
7
- isClearable?: boolean;
8
- isSearchable?: boolean;
9
- autoFocus?: boolean;
10
- title?: string;
11
- mask?: string;
12
- placeholder?: string;
13
- additionalPlaceholder?: string;
14
- defaultValue?: string;
15
- additionalDefaultValue?: string;
16
- maxCharacters?: number;
17
- hint?: string;
18
- error?: string;
19
- inputType?: HTMLInputTypeAttribute;
20
- additionalInputType?: HTMLInputTypeAttribute;
21
- fieldType?: 'text' | 'search';
22
- fillType?: 'primary' | 'secondary';
23
- counterType?: 'title' | 'text';
24
- width?: IntRange<1, 101>;
25
- iconColor?: string;
26
- className?: string;
27
- onChange: (str: string) => void;
28
- onFocus?: () => void;
29
- onBlur?: () => void;
30
- onAdditionalChange?: (str: string) => void;
31
- onAdditionalFocus?: () => void;
32
- onAdditionalBlur?: () => void;
33
- onEnterPress?: () => void;
34
- onClearClick?: () => void;
35
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/Input/types.ts"],"names":[],"mappings":""}
@@ -1,23 +0,0 @@
1
- import { IListItemProps } from './types';
2
- import '../../styles/styles.scss';
3
- export declare const LIST_ITEM_TYPE: {
4
- interactive: string;
5
- notInteractive: string;
6
- };
7
- export declare const INTERACTIVE_ELEMENT: {
8
- radioButton: string;
9
- checkbox: string;
10
- toggle: string;
11
- };
12
- export declare const INTERACTIVE_POSITION: {
13
- left: string;
14
- right: string;
15
- };
16
- export declare const NOT_INTERACTIVE_ELEMENT: {
17
- icon: string;
18
- indicator: string;
19
- noElement: string;
20
- };
21
- export declare const DEFAULT_INDICATOR_COLOR = "blue";
22
- declare const ListItem: (props: IListItemProps) => import("react/jsx-runtime").JSX.Element;
23
- export default ListItem;