@expressms/smartapp-ui 2.5.7 → 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 -136
  44. package/build/main/constants/constants.js +0 -152
  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 -54
  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,172 +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, useLayoutEffect, useRef, useState } from 'react';
14
- import Select, { components } from 'react-select';
15
- import CreatableSelect from 'react-select/creatable';
16
- import { isEmpty, max, omit } from 'lodash';
17
- import classNames from 'classnames';
18
- import ListItem from '../ListItem';
19
- import { Skeleton } from '../Skeleton';
20
- import { isValueEqualToZero } from '../../helpers';
21
- import { CREATABLE_MENU_LIST_MAX_HEIGHT, ENTER_KEY, FILL_TYPE, MENU_LIST_MAX_HEIGHT, MENU_POSITIONS, THEME } from '../../constants';
22
- import { DEFAULT_INDICATOR_COLOR, NOT_INTERACTIVE_ELEMENT } from '../ListItem/ListItem';
23
- import selectStyles from './selectStyles';
24
- import { ReactComponent as ArrowUpIcon } from '../../assets/icons/arrow-up.svg';
25
- import { ReactComponent as ArrowDownIcon } from '../../assets/icons/arrow-down.svg';
26
- import { ReactComponent as ClearIcon } from '../../assets/icons/clear.svg';
27
- import '../../styles/styles.scss';
28
- var DropdownIndicator = function (props) {
29
- var isHidden = props.isHidden, menuIsOpen = props.selectProps.menuIsOpen;
30
- return !isHidden ? _jsx(components.DropdownIndicator, __assign({}, props, { children: menuIsOpen ? _jsx(ArrowUpIcon, {}) : _jsx(ArrowDownIcon, {}) })) : null;
31
- };
32
- var ClearIndicator = function (props) { return (_jsx(components.ClearIndicator, __assign({}, props, { children: _jsx(ClearIcon, {}) }))); };
33
- var Option = function (props) {
34
- var label = props.label, isSelected = props.isSelected, _a = props.data, isCreatable = _a.isCreatable, isDisabled = _a.isDisabled, _b = _a.element, element = _b === void 0 ? NOT_INTERACTIVE_ELEMENT.noElement : _b, secondaryText = _a.secondaryText, secondaryTextColor = _a.secondaryTextColor, color = _a.color, styles = _a.styles, onDisabledOptionClick = props.onDisabledOptionClick;
35
- var handleOptionClick = function () { return isDisabled && onDisabledOptionClick(); };
36
- return (_jsx("div", __assign({ onClick: handleOptionClick }, { children: _jsx(components.Option, __assign({}, props, { children: _jsx(ListItem, { type: "not-interactive", element: element, text: label, secondaryText: secondaryText, secondaryTextColor: secondaryTextColor, color: color, isSelected: isSelected && !isCreatable, isDisabled: isDisabled, textStyles: styles }) })) })));
37
- };
38
- var SingleValueComponent = function (props) {
39
- var isDisabled = props.isDisabled, _a = props.data, _b = _a.element, element = _b === void 0 ? NOT_INTERACTIVE_ELEMENT.noElement : _b, _c = _a.color, color = _c === void 0 ? DEFAULT_INDICATOR_COLOR : _c, children = props.children;
40
- var renderIndicatorElement = function () {
41
- var _a;
42
- var indicatorColorClassName = "smartapp-list-item__indicator--".concat(color);
43
- var className = classNames('smartapp-list-item__indicator', indicatorColorClassName, (_a = {},
44
- _a["".concat(indicatorColorClassName, "__disabled")] = isDisabled,
45
- _a));
46
- return element === NOT_INTERACTIVE_ELEMENT.indicator ? _jsx("div", { className: className }) : null;
47
- };
48
- return (_jsxs(components.SingleValue, __assign({}, props, { children: [renderIndicatorElement(), children] })));
49
- };
50
- var MenuList = function (props) {
51
- var selectWidth = props.selectWidth, optionHeight = props.optionHeight, setOptionHeight = props.setOptionHeight, children = props.children;
52
- var menuListRef = useRef(null);
53
- useLayoutEffect(function () {
54
- var _a;
55
- if (menuListRef.current && isValueEqualToZero(optionHeight)) {
56
- var options = (_a = menuListRef.current) === null || _a === void 0 ? void 0 : _a.querySelectorAll('[role="option"]');
57
- var optionsHeights = Array.from(options).map(function (option) { return option.getBoundingClientRect().height; });
58
- !isEmpty(optionsHeights) && setOptionHeight(max(optionsHeights));
59
- }
60
- }, [optionHeight, setOptionHeight, selectWidth]);
61
- return (_jsx(components.MenuList, __assign({}, props, { innerRef: menuListRef }, { children: children })));
62
- };
63
- var LoadingMessage = function (_a) {
64
- var theme = _a.theme, _b = _a.isCreatableSelect, isCreatableSelect = _b === void 0 ? false : _b;
65
- var ref = useRef(null);
66
- return (_jsx("div", __assign({ ref: ref, className: classNames('smartapp-custom-select__loading-message', { 'smartapp-custom-select__loading-message--creatable': isCreatableSelect }) }, { children: Array.from({ length: LOADING_MESSAGE_ITEMS }, function (_, index) { return (_jsxs("div", __assign({ className: classNames('smartapp-custom-select__loading-message--item', {
67
- 'smartapp-custom-select__loading-message--item__creatable': isCreatableSelect,
68
- }) }, { children: [_jsx(Skeleton, { containerRef: ref, className: "smartapp-custom-select__loading-message--item__first", theme: theme, borderRadius: 8 }), isCreatableSelect && (_jsx(Skeleton, { containerRef: ref, className: "smartapp-custom-select__loading-message--item__second", theme: theme, borderRadius: 8 }))] }), index)); }) })));
69
- };
70
- var NoOptionsMessage = function (props) {
71
- var noOptionsMessage = props.noOptionsMessage, children = props.children;
72
- return noOptionsMessage ? _jsx(components.NoOptionsMessage, __assign({}, props, { children: children })) : null;
73
- };
74
- var Input = function (props) { return _jsx(components.Input, __assign({}, props, { isHidden: false })); };
75
- var IndicatorSeparator = function () { return null; };
76
- var LoadingIndicator = function () { return null; };
77
- var LOADING_MESSAGE_ITEMS = 6;
78
- var IS_CREATABLE_FIELD_NAME = 'isCreatable';
79
- var EMPTY_SELECTED_VALUE = { value: '', label: '' };
80
- var ACTIONS = {
81
- clear: 'clear',
82
- inputChange: 'input-change',
83
- };
84
- var CustomSelect = function (_a) {
85
- var _b = _a.theme, theme = _b === void 0 ? THEME.default : _b, _c = _a.isLoading, isLoading = _c === void 0 ? false : _c, _d = _a.isSearchable, isSearchable = _d === void 0 ? false : _d, _e = _a.isCreatable, isCreatable = _e === void 0 ? false : _e, _f = _a.isDisabled, isDisabled = _f === void 0 ? false : _f, _g = _a.fillType, fillType = _g === void 0 ? FILL_TYPE.primary : _g, _h = _a.width, width = _h === void 0 ? 100 : _h, menuListMaxHeight = _a.menuListMaxHeight, title = _a.title, placeholder = _a.placeholder, hint = _a.hint, noOptionsMessage = _a.noOptionsMessage, error = _a.error, _j = _a.menuPosition, menuPosition = _j === void 0 ? MENU_POSITIONS.bottom : _j, menuLocation = _a.menuLocation, defaultValue = _a.defaultValue, options = _a.options, onChange = _a.onChange, _k = _a.onDisabledOptionClick, onDisabledOptionClick = _k === void 0 ? function () { } : _k, _l = _a.onMenuOpen, onMenuOpen = _l === void 0 ? function () { } : _l;
86
- var selectRef = useRef(null);
87
- var _m = useState(), value = _m[0], setValue = _m[1];
88
- var _o = useState(''), inputValue = _o[0], setInputValue = _o[1];
89
- var _p = useState(false), isInputFocused = _p[0], setIsInputFocused = _p[1];
90
- var _q = useState(0), optionHeight = _q[0], setOptionHeight = _q[1];
91
- var selectRefCurrent = selectRef.current;
92
- var isSelectClearable = isInputFocused && !isEmpty(inputValue);
93
- useLayoutEffect(function () { return setOptionHeight(0); }, [width]);
94
- useEffect(function () {
95
- if (defaultValue) {
96
- setValue(defaultValue);
97
- setInputValue(defaultValue.label);
98
- }
99
- }, [defaultValue]);
100
- var generateMenuListMaxHeight = function () {
101
- var defaultMenuListMaxHeight = isCreatable ? CREATABLE_MENU_LIST_MAX_HEIGHT : MENU_LIST_MAX_HEIGHT;
102
- return menuListMaxHeight || defaultMenuListMaxHeight;
103
- };
104
- var renderTitle = function () {
105
- return title && (_jsx("div", __assign({ className: "smartapp-custom-select__title" }, { children: _jsx("div", __assign({ className: "smartapp-custom-select__title--text" }, { children: title })) })));
106
- };
107
- var renderHint = function () { return hint && _jsx("div", __assign({ className: "smartapp-custom-select__hint" }, { children: hint })); };
108
- var renderError = function () { return error && _jsx("div", __assign({ className: "smartapp-custom-select__error" }, { children: error })); };
109
- var OptionComponent = function (props) { return _jsx(Option, __assign({}, props, { onDisabledOptionClick: onDisabledOptionClick })); };
110
- var MenuListComponent = function (props) { return _jsx(MenuList, __assign({}, props, { selectWidth: width, optionHeight: optionHeight, setOptionHeight: setOptionHeight })); };
111
- var generateStyles = function () {
112
- return selectStyles({ isDisabled: isDisabled, isError: !isEmpty(error), fillType: fillType, menuListMaxHeight: generateMenuListMaxHeight(), optionHeight: optionHeight });
113
- };
114
- var creatableFilterOption = function () { return !(value === null || value === void 0 ? void 0 : value.isCreatable); };
115
- var handleChange = function (option, _a) {
116
- var action = _a.action;
117
- var isClearAction = action === ACTIONS.clear;
118
- var nextSelectedValue = isClearAction ? EMPTY_SELECTED_VALUE : option;
119
- onChange(nextSelectedValue);
120
- setValue(nextSelectedValue);
121
- setInputValue(nextSelectedValue.label);
122
- isClearAction ? selectRefCurrent === null || selectRefCurrent === void 0 ? void 0 : selectRefCurrent.focus() : selectRefCurrent === null || selectRefCurrent === void 0 ? void 0 : selectRefCurrent.blur();
123
- };
124
- var handleInputChange = function (inputValue, _a) {
125
- var action = _a.action;
126
- if (action === ACTIONS.inputChange) {
127
- var nextSelectedValue = { value: inputValue, label: inputValue, isCreatable: !isEmpty(inputValue) };
128
- setInputValue(inputValue);
129
- setValue(nextSelectedValue);
130
- onChange(isCreatable ? omit(nextSelectedValue, [IS_CREATABLE_FIELD_NAME]) : EMPTY_SELECTED_VALUE);
131
- }
132
- };
133
- var handleFocus = function () {
134
- setTimeout(function () {
135
- var _a;
136
- var inputValueLength = inputValue.length;
137
- (_a = selectRefCurrent === null || selectRefCurrent === void 0 ? void 0 : selectRefCurrent.inputRef) === null || _a === void 0 ? void 0 : _a.setSelectionRange(inputValueLength, inputValueLength);
138
- }, 0);
139
- setIsInputFocused(true);
140
- };
141
- var handleBlur = function () { return setIsInputFocused(false); };
142
- var handleCreatableKeyDown = function (event) {
143
- var key = event.key, code = event.code;
144
- if (code === ENTER_KEY || key === ENTER_KEY) {
145
- event.preventDefault();
146
- selectRefCurrent === null || selectRefCurrent === void 0 ? void 0 : selectRefCurrent.blur();
147
- }
148
- };
149
- return (_jsxs("div", __assign({ className: "smartapp-custom-select", style: { width: "".concat(width, "%") } }, { children: [renderTitle(), isCreatable ? (_jsx(CreatableSelect, { ref: selectRef, menuPlacement: menuPosition, menuPosition: menuLocation, isLoading: isLoading, isDisabled: isDisabled, isClearable: isSelectClearable, controlShouldRenderValue: isDisabled, filterOption: creatableFilterOption, options: options, value: (value === null || value === void 0 ? void 0 : value.label) ? value : null, styles: generateStyles(), placeholder: placeholder, inputValue: isDisabled ? '' : inputValue, onInputChange: handleInputChange, onChange: handleChange, onFocus: handleFocus, onBlur: handleBlur, onKeyDown: handleCreatableKeyDown, onMenuOpen: onMenuOpen, loadingMessage: function () { return _jsx(LoadingMessage, { theme: theme, isCreatableSelect: true }); }, components: {
150
- Input: Input,
151
- Option: OptionComponent,
152
- IndicatorSeparator: IndicatorSeparator,
153
- DropdownIndicator: function (props) { return _jsx(DropdownIndicator, __assign({}, props, { isHidden: isSelectClearable })); },
154
- MenuList: MenuListComponent,
155
- LoadingIndicator: LoadingIndicator,
156
- NoOptionsMessage: function () { return null; },
157
- ClearIndicator: ClearIndicator,
158
- SingleValue: SingleValueComponent,
159
- } })) : (_jsx(Select, { ref: selectRef, menuPlacement: menuPosition, menuPosition: menuLocation, isLoading: isLoading, isDisabled: isDisabled, isSearchable: isSearchable, isClearable: isSearchable && isSelectClearable, controlShouldRenderValue: isDisabled || !isSearchable, options: options, value: (value === null || value === void 0 ? void 0 : value.label) ? value : null, styles: generateStyles(), placeholder: placeholder, inputValue: isDisabled || !isSearchable ? '' : inputValue, onInputChange: handleInputChange, onChange: handleChange, onFocus: handleFocus, onBlur: handleBlur, onMenuOpen: onMenuOpen, noOptionsMessage: function () { return noOptionsMessage; }, loadingMessage: function () { return _jsx(LoadingMessage, { theme: theme }); }, components: {
160
- Input: Input,
161
- Option: OptionComponent,
162
- IndicatorSeparator: IndicatorSeparator,
163
- DropdownIndicator: function (props) { return _jsx(DropdownIndicator, __assign({}, props, { isHidden: isSearchable && isSelectClearable })); },
164
- SingleValue: SingleValueComponent,
165
- MenuList: MenuListComponent,
166
- LoadingIndicator: LoadingIndicator,
167
- ClearIndicator: ClearIndicator,
168
- NoOptionsMessage: function (props) { return _jsx(NoOptionsMessage, __assign({}, props, { noOptionsMessage: noOptionsMessage })); },
169
- } })), renderHint(), renderError()] })));
170
- };
171
- export default CustomSelect;
172
- //# sourceMappingURL=CustomSelect.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CustomSelect.js","sourceRoot":"","sources":["../../../../src/сomponents/CustomSelect/CustomSelect.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC3E,OAAO,MAAM,EAAE,EAAc,UAAU,EAAgC,MAAM,cAAc,CAAA;AAC3F,OAAO,eAAe,MAAM,wBAAwB,CAAA;AACpD,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC3C,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,QAAQ,MAAM,aAAa,CAAA;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;AAClD,OAAO,EAAE,8BAA8B,EAAE,SAAS,EAAE,SAAS,EAAE,oBAAoB,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AACnI,OAAO,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAA;AAEvF,OAAO,YAAY,MAAM,gBAAgB,CAAA;AACzC,OAAO,EAAE,cAAc,IAAI,WAAW,EAAE,MAAM,iCAAiC,CAAA;AAC/E,OAAO,EAAE,cAAc,IAAI,aAAa,EAAE,MAAM,mCAAmC,CAAA;AACnF,OAAO,EAAE,cAAc,IAAI,SAAS,EAAE,MAAM,8BAA8B,CAAA;AAC1E,OAAO,0BAA0B,CAAA;AAEjC,IAAM,iBAAiB,GAAG,UAAC,KAAU;IAEjC,IAAA,QAAQ,GAEN,KAAK,SAFC,EACO,UAAU,GACvB,KAAK,uBADkB,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KAAC,iBAAiB,eAAK,KAAK,IAAE,QAAQ,EAAE,YAAY,IAAI,iBAAiB,IAAI,EAA7E,CAA6E;oBAC3G,WAAW,EAAE,oBAAoB;oBACjC,QAAQ,EAAE,iBAAiB;oBAC3B,gBAAgB,kBAAA;oBAChB,cAAc,gBAAA;oBACd,gBAAgB,EAAE,UAAC,KAAK,IAAK,OAAA,KAAC,gBAAgB,eAAK,KAAK,IAAE,gBAAgB,EAAE,gBAAgB,IAAI,EAAnE,CAAmE;iBACjG,GACD,CACH,EACA,UAAU,EAAE,EACZ,WAAW,EAAE,KACV,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,YAAY,CAAA"}
@@ -1 +0,0 @@
1
- export { default } from './CustomSelect';
@@ -1,2 +0,0 @@
1
- export { default } from './CustomSelect';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/CustomSelect/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA"}
@@ -1,16 +0,0 @@
1
- import { TSelectStyles } from './types';
2
- declare const _default: ({ isDisabled, isError, fillType, menuListMaxHeight, optionHeight }: TSelectStyles) => {
3
- control: (provided: any, { menuIsOpen }: any) => any;
4
- menu: (provided: any) => any;
5
- menuList: (provided: any, { isLoading, options }: any) => any;
6
- valueContainer: (provided: any) => any;
7
- dropdownIndicator: (provided: any) => any;
8
- clearIndicator: (provided: any) => any;
9
- loadingMessage: (provided: any) => any;
10
- placeholder: (provided: any) => any;
11
- input: (provided: any) => any;
12
- noOptionsMessage: (provided: any) => any;
13
- singleValue: (provided: any) => any;
14
- option: (provided: any) => any;
15
- };
16
- export default _default;
@@ -1,61 +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 { isEmpty } from 'lodash';
13
- import { isPrimaryFillType } from '../../helpers';
14
- import { COLORS } from '../../constants';
15
- // eslint-disable-next-line import/no-anonymous-default-export
16
- export default (function (_a) {
17
- var isDisabled = _a.isDisabled, isError = _a.isError, fillType = _a.fillType, menuListMaxHeight = _a.menuListMaxHeight, optionHeight = _a.optionHeight;
18
- return ({
19
- control: function (provided, _a) {
20
- var menuIsOpen = _a.menuIsOpen;
21
- var borderColor = menuIsOpen ? 'var(--color-border-focused)' : 'var(--color-border)';
22
- var hoverBorderColor = menuIsOpen ? 'var(--color-border-focused)' : 'var(--color-border-hover)';
23
- var background = isPrimaryFillType(fillType) ? 'var(--color-input-secondary)' : 'var(--color-input-tertiary)';
24
- var disabledBackground = 'var(--color-input-secondary-disabled)';
25
- return __assign(__assign({}, provided), { background: isDisabled ? disabledBackground : background, borderRadius: '8px', borderColor: isError ? 'var(--color-border-error)' : isDisabled ? disabledBackground : borderColor, boxShadow: 'none', cursor: 'pointer', transition: 'border-color 250ms ease-in-out, background 250ms ease-in-out', '&:hover': {
26
- borderColor: isError ? 'var(--color-border-error)' : hoverBorderColor,
27
- } });
28
- },
29
- menu: function (provided) { return (__assign(__assign({}, provided), { background: COLORS.transparent, border: '1px solid var(--color-item)', borderRadius: '8px', boxShadow: "0 3px 17px 0 ".concat(COLORS.selectBoxShadow), margin: '4px 0', zIndex: 2, '&:has(> div:first-child:empty)': {
30
- display: 'none',
31
- } })); },
32
- menuList: function (provided, _a) {
33
- var isLoading = _a.isLoading, options = _a.options;
34
- var isLoadingState = isLoading && isEmpty(options);
35
- var paddingBottom = isLoadingState ? '0' : '4px';
36
- return __assign(__assign({}, provided), { maxHeight: isLoadingState ? '240px' : "".concat(menuListMaxHeight, "px"), display: 'flex', flexDirection: 'column', gap: '4px', background: 'var(--color-item)', borderRadius: '8px', padding: "4px 4px ".concat(paddingBottom, " 4px"), scrollbarColor: "var(--color-icon-blue-transparent) ".concat(COLORS.transparent), '::-webkit-scrollbar-thumb': {
37
- background: 'var(--color-icon-blue-transparent)',
38
- }, '::-webkit-scrollbar-track': {
39
- background: COLORS.transparent,
40
- } });
41
- },
42
- valueContainer: function (provided) { return (__assign(__assign({}, provided), { padding: '13px 8px 13px 16px' })); },
43
- dropdownIndicator: function (provided) { return (__assign(__assign({}, provided), { color: 'var(--color-icon-arrow) !important', padding: '14.5px 16px 14.5px 0' })); },
44
- clearIndicator: function (provided) { return (__assign(__assign({}, provided), { color: 'var(--color-icon-secondary) !important', marginRight: '8px' })); },
45
- loadingMessage: function (provided) { return (__assign(__assign({}, provided), { padding: '2px', overflowY: 'hidden' })); },
46
- placeholder: function (provided) { return (__assign(__assign({}, provided), { fontFamily: "Open Sans, 'sans-serif'", fontSize: '14px', fontWeight: '400', lineHeight: '19px', color: 'var(--color-text-tertiary)', margin: 0 })); },
47
- input: function (provided) { return (__assign(__assign({}, provided), { fontSize: '14px', fontWeight: '400', lineHeight: '19px', color: 'var(--color-text-primary)', caretColor: 'var(--color-icon-accent)', padding: 0, margin: 0, overflow: 'auto' })); },
48
- noOptionsMessage: function (provided) { return (__assign(__assign({}, provided), { fontSize: '14px', fontWeight: 400, lineHeight: '20px', color: 'var(--color-text-secondary)', padding: '14px' })); },
49
- singleValue: function (provided) { return (__assign(__assign({}, provided), { display: 'flex', alignItems: 'center', gap: '8px', fontFamily: "Open Sans, 'sans-serif'", fontSize: '14px', fontWeight: 400, lineHeight: '19px', color: isDisabled ? 'var(--color-text-secondary)' : 'var(--color-text-primary)', margin: 0 })); },
50
- option: function (provided) { return (__assign(__assign({}, provided), { display: 'flex', alignItems: 'center', minHeight: optionHeight ? "".concat(optionHeight, "px") : 'auto', height: optionHeight ? "".concat(optionHeight, "px") : 'auto', background: "".concat(COLORS.transparent, " !important"), padding: '0', cursor: 'pointer', '.smartapp-list-item__not-interactive': {
51
- whiteSpace: 'normal',
52
- }, '.smartapp-list-item__text': {
53
- gap: 0,
54
- '& > div:nth-child(2)': {
55
- fontSize: '12px',
56
- lineHeight: '16px',
57
- },
58
- } })); },
59
- });
60
- });
61
- //# sourceMappingURL=selectStyles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"selectStyles.js","sourceRoot":"","sources":["../../../../src/сomponents/CustomSelect/selectStyles.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAA;AAChC,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAExC,8DAA8D;AAC9D,gBAAe,UAAC,EAAiF;QAA/E,UAAU,gBAAA,EAAE,OAAO,aAAA,EAAE,QAAQ,cAAA,EAAE,iBAAiB,uBAAA,EAAE,YAAY,kBAAA;IAAsB,OAAA,CAAC;QACrG,OAAO,EAAE,UAAC,QAAa,EAAE,EAAmB;gBAAjB,UAAU,gBAAA;YACnC,IAAM,WAAW,GAAG,UAAU,CAAC,CAAC,CAAC,6BAA6B,CAAC,CAAC,CAAC,qBAAqB,CAAA;YACtF,IAAM,gBAAgB,GAAG,UAAU,CAAC,CAAC,CAAC,6BAA6B,CAAC,CAAC,CAAC,2BAA2B,CAAA;YACjG,IAAM,UAAU,GAAG,iBAAiB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,8BAA8B,CAAC,CAAC,CAAC,6BAA6B,CAAA;YAC/G,IAAM,kBAAkB,GAAG,uCAAuC,CAAA;YAElE,6BACK,QAAQ,KACX,UAAU,EAAE,UAAU,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,UAAU,EACxD,YAAY,EAAE,KAAK,EACnB,WAAW,EAAE,OAAO,CAAC,CAAC,CAAC,2BAA2B,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,WAAW,EAClG,SAAS,EAAE,MAAM,EACj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pB,GAAG,EAAE,KAAK,EACV,UAAU,EAAE,yBAAyB,EACrC,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,GAAG,EACf,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,6BAA6B,CAAC,CAAC,CAAC,2BAA2B,EAC/E,MAAM,EAAE,CAAC,IACT,EAX8B,CAW9B;QAEF,MAAM,EAAE,UAAC,QAAa,IAAK,OAAA,uBACtB,QAAQ,KACX,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,QAAQ,EACpB,SAAS,EAAE,YAAY,CAAC,CAAC,CAAC,UAAG,YAAY,OAAI,CAAC,CAAC,CAAC,MAAM,EACtD,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC,UAAG,YAAY,OAAI,CAAC,CAAC,CAAC,MAAM,EACnD,UAAU,EAAE,UAAG,MAAM,CAAC,WAAW,gBAAa,EAC9C,OAAO,EAAE,GAAG,EACZ,MAAM,EAAE,SAAS,EAEjB,sCAAsC,EAAE;gBACtC,UAAU,EAAE,QAAQ;aACrB,EAED,2BAA2B,EAAE;gBAC3B,GAAG,EAAE,CAAC;gBAEN,sBAAsB,EAAE;oBACtB,QAAQ,EAAE,MAAM;oBAChB,UAAU,EAAE,MAAM;iBACnB;aACF,IACD,EAtByB,CAsBzB;KACH,CAAC;AApJoG,CAoJpG,EAAA"}
@@ -1,54 +0,0 @@
1
- import { IntRange } from '../types';
2
- import { TIndicatorColor } from '../ListItem/types';
3
- import { IThemeProps, TStyles } from '../../constants';
4
- export type TSelectStyles = {
5
- isDisabled: boolean;
6
- isError: boolean;
7
- fillType: string;
8
- menuListMaxHeight: number;
9
- optionHeight: number;
10
- };
11
- export interface ILoadingMessage {
12
- theme: 'default' | 'dark';
13
- isCreatableSelect?: boolean;
14
- }
15
- interface IndicatorCustomSelectOption {
16
- element: 'indicator';
17
- color?: TIndicatorColor;
18
- }
19
- interface NoElementCustomSelectOption {
20
- element: 'no-element';
21
- secondaryText?: string;
22
- secondaryTextColor?: string;
23
- }
24
- interface SimpleCustomSelectOption {
25
- }
26
- export type TCustomSelectOption = (NoElementCustomSelectOption | IndicatorCustomSelectOption | SimpleCustomSelectOption) & {
27
- label: string;
28
- value: string;
29
- isDisabled?: boolean;
30
- isCreatable?: boolean;
31
- styles?: TStyles;
32
- };
33
- export interface ICustomSelectProps extends IThemeProps {
34
- isLoading?: boolean;
35
- isSearchable?: boolean;
36
- isCreatable?: boolean;
37
- isDisabled?: boolean;
38
- fillType?: 'primary' | 'secondary';
39
- width?: IntRange<1, 101>;
40
- menuListMaxHeight?: number;
41
- title?: string;
42
- placeholder: string;
43
- hint?: string;
44
- noOptionsMessage?: string;
45
- error?: string;
46
- menuPosition?: 'bottom' | 'auto' | 'top';
47
- menuLocation?: 'absolute' | 'fixed';
48
- defaultValue?: TCustomSelectOption;
49
- options: TCustomSelectOption[];
50
- onChange: (option: TCustomSelectOption) => void;
51
- onDisabledOptionClick?: () => void;
52
- onMenuOpen?: () => void;
53
- }
54
- 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/CustomSelect/types.ts"],"names":[],"mappings":""}
@@ -1,4 +0,0 @@
1
- import { ICustomSelectProfilesProps } from './types';
2
- import '../../styles/styles.scss';
3
- declare const CustomSelectProfiles: ({ options, defaultValue, placeholder, onChange, width }: ICustomSelectProfilesProps) => import("react/jsx-runtime").JSX.Element;
4
- export default CustomSelectProfiles;
@@ -1,57 +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
- var __rest = (this && this.__rest) || function (s, e) {
13
- var t = {};
14
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
- t[p] = s[p];
16
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
- t[p[i]] = s[p[i]];
20
- }
21
- return t;
22
- };
23
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
- import Select, { components } from 'react-select';
25
- import Avatar from '../Avatar';
26
- import '../../styles/styles.scss';
27
- var Control = function (_a) {
28
- var _b, _c, _d;
29
- var children = _a.children, props = __rest(_a, ["children"]);
30
- return (_jsxs(components.Control, __assign({}, props, { children: [((_b = props.selectProps) === null || _b === void 0 ? void 0 : _b.value) && (_jsx("div", __assign({ className: "smartapp-custom-select-profiles__control" }, { children: _jsx("span", { children: _jsx(Avatar, { size: 32, username: (_d = (_c = props === null || props === void 0 ? void 0 : props.selectProps) === null || _c === void 0 ? void 0 : _c.value) === null || _d === void 0 ? void 0 : _d.username }) }) }))), children] })));
31
- };
32
- var Option = function (_a) {
33
- var _b, _c, _d;
34
- var props = __rest(_a, []);
35
- return (_jsx(components.Option, __assign({}, props, { children: _jsxs("div", __assign({ className: "smartapp-custom-select-profiles__option" }, { children: [_jsx("div", __assign({ className: "smartapp-custom-select-profiles__option--avatar" }, { children: _jsx(Avatar, { size: 32, username: (_b = props === null || props === void 0 ? void 0 : props.data) === null || _b === void 0 ? void 0 : _b.username }) })), _jsxs("div", __assign({ className: "smartapp-custom-select-profiles__option--info" }, { children: [_jsxs("p", __assign({ className: "smartapp-custom-select-profiles__option--info__title" }, { children: [(_c = props === null || props === void 0 ? void 0 : props.data) === null || _c === void 0 ? void 0 : _c.username, " "] })), _jsxs("p", __assign({ className: "smartapp-custom-select-profiles__option--info__email" }, { children: [(_d = props === null || props === void 0 ? void 0 : props.data) === null || _d === void 0 ? void 0 : _d.email, " "] }))] }))] })) })));
36
- };
37
- var DropdownIndicator = function (props) { return _jsx(components.DropdownIndicator, __assign({}, props)); };
38
- var IndicatorSeparator = function () { return null; };
39
- var CustomSelectProfiles = function (_a) {
40
- var options = _a.options, defaultValue = _a.defaultValue, placeholder = _a.placeholder, onChange = _a.onChange, _b = _a.width, width = _b === void 0 ? 100 : _b;
41
- var customStyles = {
42
- option: function (provided, state) { return (__assign(__assign({}, provided), { cursor: 'pointer', color: '#000000', background: state.isSelected ? 'rgba(71, 153, 227, 0.1)' : '#ffffff', display: 'flex', textOverflow: 'ellipsis', width: "".concat(width, "%"), padding: '10px 0', '&:focus': {
43
- background: '#ffffff',
44
- color: 'none',
45
- }, '&:hover': {
46
- background: 'rgba(71, 153, 227, 0.1)',
47
- } })); },
48
- control: function (provided) { return (__assign(__assign({}, provided), { width: "".concat(width, "%"), textOverflow: 'ellipsis', padding: '5px 0 5px 5px' })); },
49
- };
50
- return (_jsx("div", __assign({ className: "smartapp-custom-select-profiles" }, { children: _jsx(Select
51
- /* @ts-ignore */
52
- , {
53
- /* @ts-ignore */
54
- onChange: function (option) { return onChange(option); }, options: options, defaultValue: defaultValue, styles: customStyles, getOptionLabel: function (option) { return option.username; }, getOptionValue: function (option) { return option.email; }, placeholder: _jsx("div", __assign({ className: "smartapp-custom-select-profiles__placeholder" }, { children: placeholder })), components: { Option: Option, Control: Control, DropdownIndicator: DropdownIndicator, IndicatorSeparator: IndicatorSeparator } }) })));
55
- };
56
- export default CustomSelectProfiles;
57
- //# sourceMappingURL=CustomSelectProfiles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CustomSelectProfiles.js","sourceRoot":"","sources":["../../../../src/сomponents/CustomSelectProfiles/CustomSelectProfiles.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,MAAM,EAAE,EAAE,UAAU,EAA0B,MAAM,cAAc,CAAA;AACzE,OAAO,MAAM,MAAM,WAAW,CAAA;AAE9B,OAAO,0BAA0B,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,EAAZ,CAAY,EACxC,WAAW,EAAE,uBAAK,SAAS,EAAC,8CAA8C,gBAAE,WAAW,IAAO,EAC9F,UAAU,EAAE,EAAE,MAAM,QAAA,EAAE,OAAO,SAAA,EAAE,iBAAiB,mBAAA,EAAE,kBAAkB,oBAAA,EAAE,GACtE,IACE,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,oBAAoB,CAAA"}
@@ -1 +0,0 @@
1
- export { default } from './CustomSelectProfiles';
@@ -1,2 +0,0 @@
1
- export { default } from './CustomSelectProfiles';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/CustomSelectProfiles/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA"}
@@ -1,12 +0,0 @@
1
- import { IntRange } from '../types';
2
- export type TCustomSelectOptionProfiles = {
3
- username: string;
4
- email: string;
5
- };
6
- export interface ICustomSelectProfilesProps {
7
- options: TCustomSelectOptionProfiles[];
8
- onChange: (option: TCustomSelectOptionProfiles) => void;
9
- placeholder?: string;
10
- defaultValue?: TCustomSelectOptionProfiles;
11
- width?: IntRange<1, 101>;
12
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/CustomSelectProfiles/types.ts"],"names":[],"mappings":""}
@@ -1,4 +0,0 @@
1
- import { IDragAndDropProps } from './types';
2
- import '../../styles/styles.scss';
3
- declare const DragAndDrop: ({ placeholder, options, onDragEndFunction, onChangeIsCompletedOption, onChangeOption, onClickDeleteOption, width, checkboxColor, orderColor, deleteColor, }: IDragAndDropProps) => import("react/jsx-runtime").JSX.Element;
4
- export default DragAndDrop;
@@ -1,57 +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 { useState } from 'react';
14
- import { DragDropContext, Droppable, Draggable } from 'react-beautiful-dnd';
15
- import { ReactComponent as OrderIcon } from '../../assets/icons/order.svg';
16
- import { ReactComponent as DeleteIcon } from '../../assets/icons/close.svg';
17
- import CheckBox from '../Checkbox';
18
- import { getColor } from '../../helpers';
19
- import { COLORS } from '../../constants';
20
- import '../../styles/styles.scss';
21
- var DragAndDrop = function (_a) {
22
- var placeholder = _a.placeholder, options = _a.options, onDragEndFunction = _a.onDragEndFunction, onChangeIsCompletedOption = _a.onChangeIsCompletedOption, onChangeOption = _a.onChangeOption, onClickDeleteOption = _a.onClickDeleteOption, width = _a.width, checkboxColor = _a.checkboxColor, orderColor = _a.orderColor, deleteColor = _a.deleteColor;
23
- var _b = useState(false), isOnDragStart = _b[0], setIsOnDragStart = _b[1];
24
- var isCheckbox = function (option) { return (option === null || option === void 0 ? void 0 : option.isCompleted) !== undefined; };
25
- var reorderOptions = function (_a) {
26
- var options = _a.options, startIndex = _a.startIndex, endIndex = _a.endIndex;
27
- var result = Array.from(options);
28
- result.forEach(function (item, index) {
29
- if (startIndex > endIndex && index < startIndex && index >= endIndex) {
30
- item.orderId = item.orderId + 1;
31
- }
32
- else if (startIndex < endIndex && index > startIndex && index <= endIndex) {
33
- item.orderId = item.orderId - 1;
34
- }
35
- });
36
- var removed = result.splice(startIndex, 1)[0];
37
- removed.orderId = endIndex + 1;
38
- result.splice(endIndex, 0, removed);
39
- return result;
40
- };
41
- var onDragStart = function () {
42
- if (!isOnDragStart) {
43
- setIsOnDragStart(true);
44
- }
45
- };
46
- var onDragEnd = function (result) {
47
- setIsOnDragStart(false);
48
- if (!(result === null || result === void 0 ? void 0 : result.destination)) {
49
- return;
50
- }
51
- var newOptions = reorderOptions({ options: options, startIndex: result.source.index, endIndex: result.destination.index });
52
- onDragEndFunction(newOptions);
53
- };
54
- return (_jsx("div", __assign({ style: { width: "".concat(width, "%") }, className: "smartapp-drag-drop" }, { children: _jsx(DragDropContext, __assign({ onDragStart: onDragStart, onDragEnd: onDragEnd }, { children: _jsx(Droppable, __assign({ droppableId: "droppable" }, { children: function (provided) { return (_jsx("div", __assign({}, provided.droppableProps, { ref: provided.innerRef, className: "smartapp-drag-drop__container" }, { children: options === null || options === void 0 ? void 0 : options.map(function (instanceOption, index) { return (_jsx(Draggable, __assign({ draggableId: instanceOption.id, index: index }, { children: function (provided) { return (_jsxs("div", __assign({ ref: provided.innerRef }, provided.draggableProps, provided.dragHandleProps, { className: "smartapp-drag-drop__container--instance" }, { children: [_jsxs("div", __assign({ className: "smartapp-drag-drop__container--instance__info" }, { children: [isCheckbox(instanceOption) && onChangeIsCompletedOption && (_jsx(CheckBox, { id: instanceOption.id, isChecked: instanceOption.isCompleted, checkedColor: checkboxColor, onChange: function () { return onChangeIsCompletedOption(instanceOption); } })), onChangeOption ? (_jsx("input", { onChange: function (e) { return onChangeOption && onChangeOption(e, instanceOption); }, defaultValue: instanceOption.defaultValue, className: "smartapp-drag-drop__container--instance__info--name", type: "text", enterKeyHint: "enter", placeholder: placeholder }, instanceOption === null || instanceOption === void 0 ? void 0 : instanceOption.id)) : (_jsx("p", __assign({ className: "smartapp-drag-drop__container--instance__info--name" }, { children: instanceOption.defaultValue })))] })), _jsxs("div", __assign({ className: "smartapp-drag-drop__container--instance__icons" }, { children: [_jsx(OrderIcon, { style: { color: getColor(orderColor, COLORS.gray) } }), onClickDeleteOption && (_jsx(DeleteIcon, { className: "cp", style: { color: getColor(deleteColor, COLORS.blue) }, onClick: function () { return onClickDeleteOption(instanceOption); } }))] }))] }))); } }), instanceOption.id)); }) }))); } })) })) })));
55
- };
56
- export default DragAndDrop;
57
- //# sourceMappingURL=DragAndDrop.js.map
@@ -1 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,IAAK,CACrG,KACG,EACN,wBAAK,SAAS,EAAC,gDAAgD,iBAC7D,KAAC,SAAS,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE,GAAI,EACjE,mBAAmB,IAAI,CACtB,KAAC,UAAU,IACT,SAAS,EAAC,IAAI,EACd,KAAK,EAAE,EAAE,KAAK,EAAE,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE,EACpD,OAAO,EAAE,cAAM,OAAA,mBAAmB,CAAC,cAAc,CAAC,EAAnC,CAAmC,GAClD,CACH,KACG,KACF,CACP,EAzCc,CAyCd,KA1Ca,cAAc,CAAC,EAAE,CA2CrB,CACb,EA7CgD,CA6ChD,CAAC,IACE,CACP,EAjDc,CAiDd,IACS,IACI,IACd,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,WAAW,CAAA"}
@@ -1 +0,0 @@
1
- export { default } from './DragAndDrop';
@@ -1,2 +0,0 @@
1
- export { default } from './DragAndDrop';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/DragAndDrop/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA"}
@@ -1,24 +0,0 @@
1
- import { IntRange } from '../types';
2
- export type TReorderOptions = {
3
- options: TDragAndDropOption[];
4
- startIndex: number;
5
- endIndex: number;
6
- };
7
- export type TDragAndDropOption = {
8
- id: string;
9
- defaultValue: string;
10
- isCompleted?: boolean;
11
- orderId: number;
12
- };
13
- export interface IDragAndDropProps {
14
- placeholder: string;
15
- options: TDragAndDropOption[];
16
- onDragEndFunction: (result: any) => void;
17
- onChangeIsCompletedOption?: (instanceOption: TDragAndDropOption) => void;
18
- onChangeOption?: (e: any, instanceOption: TDragAndDropOption) => void;
19
- onClickDeleteOption?: (instanceOption: TDragAndDropOption) => void;
20
- width?: IntRange<1, 101>;
21
- checkboxColor?: string;
22
- orderColor?: string;
23
- deleteColor?: string;
24
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/DragAndDrop/types.ts"],"names":[],"mappings":""}
@@ -1,4 +0,0 @@
1
- import { IErrorProps } from './types';
2
- import '../../styles/styles.scss';
3
- declare const Error: ({ title, text, width, iconColor }: IErrorProps) => import("react/jsx-runtime").JSX.Element;
4
- export default Error;