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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (535) hide show
  1. package/build/main/assets/icons/accepted-invite-status.svg +4 -0
  2. package/build/main/assets/icons/arrow-back.svg +3 -0
  3. package/build/main/assets/icons/arrow-down.svg +3 -0
  4. package/build/main/assets/icons/arrow-up.svg +3 -0
  5. package/build/main/assets/icons/attachment-loader.svg +3 -0
  6. package/build/main/assets/icons/avatar-loader.svg +3 -0
  7. package/build/main/assets/icons/button-loader.svg +3 -0
  8. package/build/main/assets/icons/calendar-arrow-next.svg +3 -0
  9. package/build/main/assets/icons/calendar-arrow-prev.svg +3 -0
  10. package/build/main/assets/icons/check-mark-square.svg +4 -0
  11. package/build/main/assets/icons/check-mark.svg +4 -0
  12. package/build/main/assets/icons/chevron.svg +3 -0
  13. package/build/main/assets/icons/chip-info.svg +5 -0
  14. package/build/main/assets/icons/clear.svg +3 -0
  15. package/build/main/assets/icons/close-modal.svg +3 -0
  16. package/build/main/assets/icons/close-stories.svg +4 -0
  17. package/build/main/assets/icons/close.svg +3 -0
  18. package/build/main/assets/icons/contact-info.svg +5 -0
  19. package/build/main/assets/icons/copy.svg +3 -0
  20. package/build/main/assets/icons/corporate-user.svg +3 -0
  21. package/build/main/assets/icons/crown.svg +5 -0
  22. package/build/main/assets/icons/declined-invite-status.svg +4 -0
  23. package/build/main/assets/icons/delete-chip.svg +3 -0
  24. package/build/main/assets/icons/department.svg +3 -0
  25. package/build/main/assets/icons/distribution.svg +12 -0
  26. package/build/main/assets/icons/doc-small.svg +11 -0
  27. package/build/main/assets/icons/doc.svg +11 -0
  28. package/build/main/assets/icons/download.svg +3 -0
  29. package/build/main/assets/icons/error.svg +5 -0
  30. package/build/main/assets/icons/external-link.svg +3 -0
  31. package/build/main/assets/icons/eye-off.svg +5 -0
  32. package/build/main/assets/icons/eye-on.svg +4 -0
  33. package/build/main/assets/icons/file-small.svg +11 -0
  34. package/build/main/assets/icons/file.svg +11 -0
  35. package/build/main/assets/icons/global-address-book-user.svg +4 -0
  36. package/build/main/assets/icons/group.svg +3 -0
  37. package/build/main/assets/icons/image-no-preview-small.svg +11 -0
  38. package/build/main/assets/icons/image-no-preview.svg +11 -0
  39. package/build/main/assets/icons/indeterminate-check-mark-square.svg +4 -0
  40. package/build/main/assets/icons/info.svg +5 -0
  41. package/build/main/assets/icons/input-arrow-down.svg +3 -0
  42. package/build/main/assets/icons/input-arrow-up.svg +3 -0
  43. package/build/main/assets/icons/job-position.svg +3 -0
  44. package/build/main/assets/icons/loader.svg +3 -0
  45. package/build/main/assets/icons/logout.svg +4 -0
  46. package/build/main/assets/icons/magnifying-glass.svg +3 -0
  47. package/build/main/assets/icons/mail.svg +3 -0
  48. package/build/main/assets/icons/meeting-room.svg +3 -0
  49. package/build/main/assets/icons/more.svg +3 -0
  50. package/build/main/assets/icons/my-contacts-user.svg +3 -0
  51. package/build/main/assets/icons/needs-action-invite-status.svg +4 -0
  52. package/build/main/assets/icons/notification-close.svg +3 -0
  53. package/build/main/assets/icons/notification-error.svg +5 -0
  54. package/build/main/assets/icons/notification-failure-filled.svg +3 -0
  55. package/build/main/assets/icons/notification-failure.svg +3 -0
  56. package/build/main/assets/icons/notification-info-filled.svg +5 -0
  57. package/build/main/assets/icons/notification-info.svg +5 -0
  58. package/build/main/assets/icons/notification-success-filled.svg +4 -0
  59. package/build/main/assets/icons/notification-success.svg +4 -0
  60. package/build/main/assets/icons/office.svg +3 -0
  61. package/build/main/assets/icons/order.svg +6 -0
  62. package/build/main/assets/icons/pdf-small.svg +11 -0
  63. package/build/main/assets/icons/pdf.svg +11 -0
  64. package/build/main/assets/icons/play-small.svg +3 -0
  65. package/build/main/assets/icons/play.svg +3 -0
  66. package/build/main/assets/icons/plus.svg +4 -0
  67. package/build/main/assets/icons/ppt-small.svg +11 -0
  68. package/build/main/assets/icons/ppt.svg +11 -0
  69. package/build/main/assets/icons/private.svg +5 -0
  70. package/build/main/assets/icons/refresh.svg +3 -0
  71. package/build/main/assets/icons/remove.svg +3 -0
  72. package/build/main/assets/icons/search.svg +3 -0
  73. package/build/main/assets/icons/select-arrow-down.svg +3 -0
  74. package/build/main/assets/icons/select-arrow-up.svg +3 -0
  75. package/build/main/assets/icons/server.svg +3 -0
  76. package/build/main/assets/icons/story-loader.svg +3 -0
  77. package/build/main/assets/icons/tick.svg +10 -0
  78. package/build/main/assets/icons/trash.svg +3 -0
  79. package/build/main/assets/icons/txt-small.svg +11 -0
  80. package/build/main/assets/icons/txt.svg +11 -0
  81. package/build/main/assets/icons/video-no-preview-small.svg +11 -0
  82. package/build/main/assets/icons/video-no-preview.svg +11 -0
  83. package/build/main/assets/icons/warning-avatar.svg +4 -0
  84. package/build/main/assets/icons/xls-small.svg +11 -0
  85. package/build/main/assets/icons/xls.svg +11 -0
  86. package/build/main/assets/storybook/index.d.ts +27 -0
  87. package/build/main/assets/storybook/index.js +28 -0
  88. package/build/main/assets/storybook/index.js.map +1 -0
  89. package/build/main/constants/constants.d.ts +243 -0
  90. package/build/main/constants/constants.js +301 -0
  91. package/build/main/constants/constants.js.map +1 -0
  92. package/build/main/constants/index.d.ts +2 -0
  93. package/build/main/constants/index.js +3 -0
  94. package/build/main/constants/index.js.map +1 -0
  95. package/build/main/constants/types.d.ts +69 -0
  96. package/build/main/constants/types.js +2 -0
  97. package/build/main/constants/types.js.map +1 -0
  98. package/build/main/helpers/index.d.ts +33 -0
  99. package/build/main/helpers/index.js +204 -0
  100. package/build/main/helpers/index.js.map +1 -0
  101. package/build/main/hooks/useCharHintDisplay.d.ts +10 -0
  102. package/build/main/hooks/useCharHintDisplay.js +57 -0
  103. package/build/main/hooks/useCharHintDisplay.js.map +1 -0
  104. package/build/main/hooks/useMobileLongTap.d.ts +16 -0
  105. package/build/main/hooks/useMobileLongTap.js +65 -0
  106. package/build/main/hooks/useMobileLongTap.js.map +1 -0
  107. package/build/main/hooks/useModal.d.ts +30 -0
  108. package/build/main/hooks/useModal.js +275 -0
  109. package/build/main/hooks/useModal.js.map +1 -0
  110. package/build/main/index.d.ts +38 -0
  111. package/build/main/index.js +39 -0
  112. package/build/main/index.js.map +1 -0
  113. package/build/main/styles/index.d.ts +1 -0
  114. package/build/main/styles/index.js +2 -0
  115. package/build/main/styles/index.js.map +1 -0
  116. package/build/main/styles/main.js +0 -0
  117. package/build/main/styles/styles.scss +14 -0
  118. package/build/main//321/201omponents/ActionModal/ActionModal.d.ts +4 -0
  119. package/build/main//321/201omponents/ActionModal/ActionModal.js +53 -0
  120. package/build/main//321/201omponents/ActionModal/ActionModal.js.map +1 -0
  121. package/build/main//321/201omponents/ActionModal/index.d.ts +1 -0
  122. package/build/main//321/201omponents/ActionModal/index.js +2 -0
  123. package/build/main//321/201omponents/ActionModal/index.js.map +1 -0
  124. package/build/main//321/201omponents/ActionModal/types.d.ts +23 -0
  125. package/build/main//321/201omponents/ActionModal/types.js +2 -0
  126. package/build/main//321/201omponents/ActionModal/types.js.map +1 -0
  127. package/build/main//321/201omponents/AttachedFile/AttachedFile.d.ts +8 -0
  128. package/build/main//321/201omponents/AttachedFile/AttachedFile.js +201 -0
  129. package/build/main//321/201omponents/AttachedFile/AttachedFile.js.map +1 -0
  130. package/build/main//321/201omponents/AttachedFile/index.d.ts +1 -0
  131. package/build/main//321/201omponents/AttachedFile/index.js +2 -0
  132. package/build/main//321/201omponents/AttachedFile/index.js.map +1 -0
  133. package/build/main//321/201omponents/AttachedFile/types.d.ts +23 -0
  134. package/build/main//321/201omponents/AttachedFile/types.js +2 -0
  135. package/build/main//321/201omponents/AttachedFile/types.js.map +1 -0
  136. package/build/main//321/201omponents/Avatar/Avatar.d.ts +5 -0
  137. package/build/main//321/201omponents/Avatar/Avatar.js +254 -0
  138. package/build/main//321/201omponents/Avatar/Avatar.js.map +1 -0
  139. package/build/main//321/201omponents/Avatar/index.d.ts +1 -0
  140. package/build/main//321/201omponents/Avatar/index.js +2 -0
  141. package/build/main//321/201omponents/Avatar/index.js.map +1 -0
  142. package/build/main//321/201omponents/Avatar/types.d.ts +64 -0
  143. package/build/main//321/201omponents/Avatar/types.js +32 -0
  144. package/build/main//321/201omponents/Avatar/types.js.map +1 -0
  145. package/build/main//321/201omponents/Button/Button.d.ts +4 -0
  146. package/build/main//321/201omponents/Button/Button.js +68 -0
  147. package/build/main//321/201omponents/Button/Button.js.map +1 -0
  148. package/build/main//321/201omponents/Button/index.d.ts +1 -0
  149. package/build/main//321/201omponents/Button/index.js +2 -0
  150. package/build/main//321/201omponents/Button/index.js.map +1 -0
  151. package/build/main//321/201omponents/Button/types.d.ts +31 -0
  152. package/build/main//321/201omponents/Button/types.js +15 -0
  153. package/build/main//321/201omponents/Button/types.js.map +1 -0
  154. package/build/main//321/201omponents/CachedImage/CachedImage.d.ts +4 -0
  155. package/build/main//321/201omponents/CachedImage/CachedImage.js +59 -0
  156. package/build/main//321/201omponents/CachedImage/CachedImage.js.map +1 -0
  157. package/build/main//321/201omponents/CachedImage/helpers.d.ts +3 -0
  158. package/build/main//321/201omponents/CachedImage/helpers.js +40 -0
  159. package/build/main//321/201omponents/CachedImage/helpers.js.map +1 -0
  160. package/build/main//321/201omponents/CachedImage/index.d.ts +1 -0
  161. package/build/main//321/201omponents/CachedImage/index.js +2 -0
  162. package/build/main//321/201omponents/CachedImage/index.js.map +1 -0
  163. package/build/main//321/201omponents/CachedImage/types.d.ts +10 -0
  164. package/build/main//321/201omponents/CachedImage/types.js +2 -0
  165. package/build/main//321/201omponents/CachedImage/types.js.map +1 -0
  166. package/build/main//321/201omponents/Calendar/Calendar.d.ts +16 -0
  167. package/build/main//321/201omponents/Calendar/Calendar.js +294 -0
  168. package/build/main//321/201omponents/Calendar/Calendar.js.map +1 -0
  169. package/build/main//321/201omponents/Calendar/index.d.ts +1 -0
  170. package/build/main//321/201omponents/Calendar/index.js +2 -0
  171. package/build/main//321/201omponents/Calendar/index.js.map +1 -0
  172. package/build/main//321/201omponents/Calendar/types.d.ts +28 -0
  173. package/build/main//321/201omponents/Calendar/types.js +2 -0
  174. package/build/main//321/201omponents/Calendar/types.js.map +1 -0
  175. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.d.ts +4 -0
  176. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js +47 -0
  177. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js.map +1 -0
  178. package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.d.ts +4 -0
  179. package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.js +71 -0
  180. package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.js.map +1 -0
  181. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.d.ts +4 -0
  182. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js +42 -0
  183. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js.map +1 -0
  184. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.d.ts +4 -0
  185. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js +64 -0
  186. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js.map +1 -0
  187. package/build/main//321/201omponents/Charts/colors.d.ts +3 -0
  188. package/build/main//321/201omponents/Charts/colors.js +4 -0
  189. package/build/main//321/201omponents/Charts/colors.js.map +1 -0
  190. package/build/main//321/201omponents/Charts/constants.d.ts +42 -0
  191. package/build/main//321/201omponents/Charts/constants.js +42 -0
  192. package/build/main//321/201omponents/Charts/constants.js.map +1 -0
  193. package/build/main//321/201omponents/Charts/helpers.d.ts +17 -0
  194. package/build/main//321/201omponents/Charts/helpers.js +73 -0
  195. package/build/main//321/201omponents/Charts/helpers.js.map +1 -0
  196. package/build/main//321/201omponents/Charts/index.d.ts +3 -0
  197. package/build/main//321/201omponents/Charts/index.js +4 -0
  198. package/build/main//321/201omponents/Charts/index.js.map +1 -0
  199. package/build/main//321/201omponents/Charts/types.d.ts +89 -0
  200. package/build/main//321/201omponents/Charts/types.js +2 -0
  201. package/build/main//321/201omponents/Charts/types.js.map +1 -0
  202. package/build/main//321/201omponents/Charts/useEvents.d.ts +5 -0
  203. package/build/main//321/201omponents/Charts/useEvents.js +45 -0
  204. package/build/main//321/201omponents/Charts/useEvents.js.map +1 -0
  205. package/build/main//321/201omponents/Charts/usePieEvents.d.ts +6 -0
  206. package/build/main//321/201omponents/Charts/usePieEvents.js +57 -0
  207. package/build/main//321/201omponents/Charts/usePieEvents.js.map +1 -0
  208. package/build/main//321/201omponents/Checkbox/Checkbox.d.ts +8 -0
  209. package/build/main//321/201omponents/Checkbox/Checkbox.js +48 -0
  210. package/build/main//321/201omponents/Checkbox/Checkbox.js.map +1 -0
  211. package/build/main//321/201omponents/Checkbox/index.d.ts +1 -0
  212. package/build/main//321/201omponents/Checkbox/index.js +2 -0
  213. package/build/main//321/201omponents/Checkbox/index.js.map +1 -0
  214. package/build/main//321/201omponents/Checkbox/types.d.ts +14 -0
  215. package/build/main//321/201omponents/Checkbox/types.js +2 -0
  216. package/build/main//321/201omponents/Checkbox/types.js.map +1 -0
  217. package/build/main//321/201omponents/Chip/Chip.d.ts +5 -0
  218. package/build/main//321/201omponents/Chip/Chip.js +288 -0
  219. package/build/main//321/201omponents/Chip/Chip.js.map +1 -0
  220. package/build/main//321/201omponents/Chip/index.d.ts +1 -0
  221. package/build/main//321/201omponents/Chip/index.js +2 -0
  222. package/build/main//321/201omponents/Chip/index.js.map +1 -0
  223. package/build/main//321/201omponents/Chip/types.d.ts +39 -0
  224. package/build/main//321/201omponents/Chip/types.js +2 -0
  225. package/build/main//321/201omponents/Chip/types.js.map +1 -0
  226. package/build/main//321/201omponents/ChipDndContext/ChipDndContext.d.ts +13 -0
  227. package/build/main//321/201omponents/ChipDndContext/ChipDndContext.js +76 -0
  228. package/build/main//321/201omponents/ChipDndContext/ChipDndContext.js.map +1 -0
  229. package/build/main//321/201omponents/ChipDndContext/index.d.ts +1 -0
  230. package/build/main//321/201omponents/ChipDndContext/index.js +2 -0
  231. package/build/main//321/201omponents/ChipDndContext/index.js.map +1 -0
  232. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.d.ts +4 -0
  233. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js +64 -0
  234. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js.map +1 -0
  235. package/build/main//321/201omponents/ConfirmationModal/index.d.ts +1 -0
  236. package/build/main//321/201omponents/ConfirmationModal/index.js +2 -0
  237. package/build/main//321/201omponents/ConfirmationModal/index.js.map +1 -0
  238. package/build/main//321/201omponents/ConfirmationModal/types.d.ts +31 -0
  239. package/build/main//321/201omponents/ConfirmationModal/types.js +2 -0
  240. package/build/main//321/201omponents/ConfirmationModal/types.js.map +1 -0
  241. package/build/main//321/201omponents/ContextMenu/ContextMenu.d.ts +4 -0
  242. package/build/main//321/201omponents/ContextMenu/ContextMenu.js +122 -0
  243. package/build/main//321/201omponents/ContextMenu/ContextMenu.js.map +1 -0
  244. package/build/main//321/201omponents/ContextMenu/index.d.ts +1 -0
  245. package/build/main//321/201omponents/ContextMenu/index.js +2 -0
  246. package/build/main//321/201omponents/ContextMenu/index.js.map +1 -0
  247. package/build/main//321/201omponents/ContextMenu/types.d.ts +41 -0
  248. package/build/main//321/201omponents/ContextMenu/types.js +2 -0
  249. package/build/main//321/201omponents/ContextMenu/types.js.map +1 -0
  250. package/build/main//321/201omponents/ContextMenuItem/ContextMenuItem.d.ts +4 -0
  251. package/build/main//321/201omponents/ContextMenuItem/ContextMenuItem.js +49 -0
  252. package/build/main//321/201omponents/ContextMenuItem/ContextMenuItem.js.map +1 -0
  253. package/build/main//321/201omponents/ContextMenuItem/index.d.ts +1 -0
  254. package/build/main//321/201omponents/ContextMenuItem/index.js +2 -0
  255. package/build/main//321/201omponents/ContextMenuItem/index.js.map +1 -0
  256. package/build/main//321/201omponents/ContextMenuItem/types.d.ts +28 -0
  257. package/build/main//321/201omponents/ContextMenuItem/types.js +6 -0
  258. package/build/main//321/201omponents/ContextMenuItem/types.js.map +1 -0
  259. package/build/main//321/201omponents/CustomSelect/CustomSelect.d.ts +12 -0
  260. package/build/main//321/201omponents/CustomSelect/CustomSelect.js +281 -0
  261. package/build/main//321/201omponents/CustomSelect/CustomSelect.js.map +1 -0
  262. package/build/main//321/201omponents/CustomSelect/index.d.ts +1 -0
  263. package/build/main//321/201omponents/CustomSelect/index.js +2 -0
  264. package/build/main//321/201omponents/CustomSelect/index.js.map +1 -0
  265. package/build/main//321/201omponents/CustomSelect/selectStyles.d.ts +16 -0
  266. package/build/main//321/201omponents/CustomSelect/selectStyles.js +77 -0
  267. package/build/main//321/201omponents/CustomSelect/selectStyles.js.map +1 -0
  268. package/build/main//321/201omponents/CustomSelect/types.d.ts +86 -0
  269. package/build/main//321/201omponents/CustomSelect/types.js +2 -0
  270. package/build/main//321/201omponents/CustomSelect/types.js.map +1 -0
  271. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.d.ts +4 -0
  272. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js +67 -0
  273. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js.map +1 -0
  274. package/build/main//321/201omponents/CustomSelectProfiles/index.d.ts +1 -0
  275. package/build/main//321/201omponents/CustomSelectProfiles/index.js +2 -0
  276. package/build/main//321/201omponents/CustomSelectProfiles/index.js.map +1 -0
  277. package/build/main//321/201omponents/CustomSelectProfiles/selectStyles.d.ts +12 -0
  278. package/build/main//321/201omponents/CustomSelectProfiles/selectStyles.js +41 -0
  279. package/build/main//321/201omponents/CustomSelectProfiles/selectStyles.js.map +1 -0
  280. package/build/main//321/201omponents/CustomSelectProfiles/types.d.ts +13 -0
  281. package/build/main//321/201omponents/CustomSelectProfiles/types.js +2 -0
  282. package/build/main//321/201omponents/CustomSelectProfiles/types.js.map +1 -0
  283. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.d.ts +4 -0
  284. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js +57 -0
  285. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js.map +1 -0
  286. package/build/main//321/201omponents/DragAndDrop/index.d.ts +1 -0
  287. package/build/main//321/201omponents/DragAndDrop/index.js +2 -0
  288. package/build/main//321/201omponents/DragAndDrop/index.js.map +1 -0
  289. package/build/main//321/201omponents/DragAndDrop/types.d.ts +24 -0
  290. package/build/main//321/201omponents/DragAndDrop/types.js +2 -0
  291. package/build/main//321/201omponents/DragAndDrop/types.js.map +1 -0
  292. package/build/main//321/201omponents/DraggablePopup/DraggablePopup.d.ts +4 -0
  293. package/build/main//321/201omponents/DraggablePopup/DraggablePopup.js +228 -0
  294. package/build/main//321/201omponents/DraggablePopup/DraggablePopup.js.map +1 -0
  295. package/build/main//321/201omponents/DraggablePopup/index.d.ts +1 -0
  296. package/build/main//321/201omponents/DraggablePopup/index.js +2 -0
  297. package/build/main//321/201omponents/DraggablePopup/index.js.map +1 -0
  298. package/build/main//321/201omponents/DraggablePopup/types.d.ts +90 -0
  299. package/build/main//321/201omponents/DraggablePopup/types.js +2 -0
  300. package/build/main//321/201omponents/DraggablePopup/types.js.map +1 -0
  301. package/build/main//321/201omponents/Error/Error.d.ts +4 -0
  302. package/build/main//321/201omponents/Error/Error.js +23 -0
  303. package/build/main//321/201omponents/Error/Error.js.map +1 -0
  304. package/build/main//321/201omponents/Error/index.d.ts +1 -0
  305. package/build/main//321/201omponents/Error/index.js +2 -0
  306. package/build/main//321/201omponents/Error/index.js.map +1 -0
  307. package/build/main//321/201omponents/Error/types.d.ts +10 -0
  308. package/build/main//321/201omponents/Error/types.js +2 -0
  309. package/build/main//321/201omponents/Error/types.js.map +1 -0
  310. package/build/main//321/201omponents/Flex/Flex.d.ts +2 -0
  311. package/build/main//321/201omponents/Flex/Flex.js +35 -0
  312. package/build/main//321/201omponents/Flex/Flex.js.map +1 -0
  313. package/build/main//321/201omponents/Flex/HFlex/HFlex.d.ts +5 -0
  314. package/build/main//321/201omponents/Flex/HFlex/HFlex.js +16 -0
  315. package/build/main//321/201omponents/Flex/HFlex/HFlex.js.map +1 -0
  316. package/build/main//321/201omponents/Flex/HFlex/index.d.ts +1 -0
  317. package/build/main//321/201omponents/Flex/HFlex/index.js +2 -0
  318. package/build/main//321/201omponents/Flex/HFlex/index.js.map +1 -0
  319. package/build/main//321/201omponents/Flex/VFlex/VFlex.d.ts +5 -0
  320. package/build/main//321/201omponents/Flex/VFlex/VFlex.js +16 -0
  321. package/build/main//321/201omponents/Flex/VFlex/VFlex.js.map +1 -0
  322. package/build/main//321/201omponents/Flex/VFlex/index.d.ts +1 -0
  323. package/build/main//321/201omponents/Flex/VFlex/index.js +2 -0
  324. package/build/main//321/201omponents/Flex/VFlex/index.js.map +1 -0
  325. package/build/main//321/201omponents/Flex/index.d.ts +3 -0
  326. package/build/main//321/201omponents/Flex/index.js +4 -0
  327. package/build/main//321/201omponents/Flex/index.js.map +1 -0
  328. package/build/main//321/201omponents/Flex/types.d.ts +21 -0
  329. package/build/main//321/201omponents/Flex/types.js +2 -0
  330. package/build/main//321/201omponents/Flex/types.js.map +1 -0
  331. package/build/main//321/201omponents/Header/Header.d.ts +5 -0
  332. package/build/main//321/201omponents/Header/Header.js +125 -0
  333. package/build/main//321/201omponents/Header/Header.js.map +1 -0
  334. package/build/main//321/201omponents/Header/index.d.ts +1 -0
  335. package/build/main//321/201omponents/Header/index.js +2 -0
  336. package/build/main//321/201omponents/Header/index.js.map +1 -0
  337. package/build/main//321/201omponents/Header/types.d.ts +47 -0
  338. package/build/main//321/201omponents/Header/types.js +2 -0
  339. package/build/main//321/201omponents/Header/types.js.map +1 -0
  340. package/build/main//321/201omponents/Input/Input.d.ts +4 -0
  341. package/build/main//321/201omponents/Input/Input.js +256 -0
  342. package/build/main//321/201omponents/Input/Input.js.map +1 -0
  343. package/build/main//321/201omponents/Input/index.d.ts +1 -0
  344. package/build/main//321/201omponents/Input/index.js +2 -0
  345. package/build/main//321/201omponents/Input/index.js.map +1 -0
  346. package/build/main//321/201omponents/Input/types.d.ts +37 -0
  347. package/build/main//321/201omponents/Input/types.js +2 -0
  348. package/build/main//321/201omponents/Input/types.js.map +1 -0
  349. package/build/main//321/201omponents/ListItem/ListItem.d.ts +23 -0
  350. package/build/main//321/201omponents/ListItem/ListItem.js +214 -0
  351. package/build/main//321/201omponents/ListItem/ListItem.js.map +1 -0
  352. package/build/main//321/201omponents/ListItem/index.d.ts +1 -0
  353. package/build/main//321/201omponents/ListItem/index.js +2 -0
  354. package/build/main//321/201omponents/ListItem/index.js.map +1 -0
  355. package/build/main//321/201omponents/ListItem/types.d.ts +47 -0
  356. package/build/main//321/201omponents/ListItem/types.js +2 -0
  357. package/build/main//321/201omponents/ListItem/types.js.map +1 -0
  358. package/build/main//321/201omponents/Loader/Loader.d.ts +4 -0
  359. package/build/main//321/201omponents/Loader/Loader.js +44 -0
  360. package/build/main//321/201omponents/Loader/Loader.js.map +1 -0
  361. package/build/main//321/201omponents/Loader/index.d.ts +1 -0
  362. package/build/main//321/201omponents/Loader/index.js +2 -0
  363. package/build/main//321/201omponents/Loader/index.js.map +1 -0
  364. package/build/main//321/201omponents/Loader/types.d.ts +18 -0
  365. package/build/main//321/201omponents/Loader/types.js +2 -0
  366. package/build/main//321/201omponents/Loader/types.js.map +1 -0
  367. package/build/main//321/201omponents/Modal/Modal.d.ts +5 -0
  368. package/build/main//321/201omponents/Modal/Modal.js +397 -0
  369. package/build/main//321/201omponents/Modal/Modal.js.map +1 -0
  370. package/build/main//321/201omponents/Modal/index.d.ts +1 -0
  371. package/build/main//321/201omponents/Modal/index.js +2 -0
  372. package/build/main//321/201omponents/Modal/index.js.map +1 -0
  373. package/build/main//321/201omponents/Modal/types.d.ts +77 -0
  374. package/build/main//321/201omponents/Modal/types.js +2 -0
  375. package/build/main//321/201omponents/Modal/types.js.map +1 -0
  376. package/build/main//321/201omponents/Notification/Notification.d.ts +4 -0
  377. package/build/main//321/201omponents/Notification/Notification.js +208 -0
  378. package/build/main//321/201omponents/Notification/Notification.js.map +1 -0
  379. package/build/main//321/201omponents/Notification/constants.d.ts +34 -0
  380. package/build/main//321/201omponents/Notification/constants.js +59 -0
  381. package/build/main//321/201omponents/Notification/constants.js.map +1 -0
  382. package/build/main//321/201omponents/Notification/index.d.ts +1 -0
  383. package/build/main//321/201omponents/Notification/index.js +2 -0
  384. package/build/main//321/201omponents/Notification/index.js.map +1 -0
  385. package/build/main//321/201omponents/Notification/types.d.ts +64 -0
  386. package/build/main//321/201omponents/Notification/types.js +2 -0
  387. package/build/main//321/201omponents/Notification/types.js.map +1 -0
  388. package/build/main//321/201omponents/Profile/Profile.d.ts +4 -0
  389. package/build/main//321/201omponents/Profile/Profile.js +42 -0
  390. package/build/main//321/201omponents/Profile/Profile.js.map +1 -0
  391. package/build/main//321/201omponents/Profile/index.d.ts +1 -0
  392. package/build/main//321/201omponents/Profile/index.js +2 -0
  393. package/build/main//321/201omponents/Profile/index.js.map +1 -0
  394. package/build/main//321/201omponents/Profile/types.d.ts +14 -0
  395. package/build/main//321/201omponents/Profile/types.js +2 -0
  396. package/build/main//321/201omponents/Profile/types.js.map +1 -0
  397. package/build/main//321/201omponents/ProgressBar/ProgressBar.d.ts +4 -0
  398. package/build/main//321/201omponents/ProgressBar/ProgressBar.js +66 -0
  399. package/build/main//321/201omponents/ProgressBar/ProgressBar.js.map +1 -0
  400. package/build/main//321/201omponents/ProgressBar/index.d.ts +1 -0
  401. package/build/main//321/201omponents/ProgressBar/index.js +2 -0
  402. package/build/main//321/201omponents/ProgressBar/index.js.map +1 -0
  403. package/build/main//321/201omponents/ProgressBar/types.d.ts +7 -0
  404. package/build/main//321/201omponents/ProgressBar/types.js +2 -0
  405. package/build/main//321/201omponents/ProgressBar/types.js.map +1 -0
  406. package/build/main//321/201omponents/RadioButton/RadioButton.d.ts +4 -0
  407. package/build/main//321/201omponents/RadioButton/RadioButton.js +33 -0
  408. package/build/main//321/201omponents/RadioButton/RadioButton.js.map +1 -0
  409. package/build/main//321/201omponents/RadioButton/index.d.ts +1 -0
  410. package/build/main//321/201omponents/RadioButton/index.js +2 -0
  411. package/build/main//321/201omponents/RadioButton/index.js.map +1 -0
  412. package/build/main//321/201omponents/RadioButton/types.d.ts +12 -0
  413. package/build/main//321/201omponents/RadioButton/types.js +2 -0
  414. package/build/main//321/201omponents/RadioButton/types.js.map +1 -0
  415. package/build/main//321/201omponents/ScrollBar/ScrollBar.d.ts +5 -0
  416. package/build/main//321/201omponents/ScrollBar/ScrollBar.js +140 -0
  417. package/build/main//321/201omponents/ScrollBar/ScrollBar.js.map +1 -0
  418. package/build/main//321/201omponents/ScrollBar/index.d.ts +1 -0
  419. package/build/main//321/201omponents/ScrollBar/index.js +2 -0
  420. package/build/main//321/201omponents/ScrollBar/index.js.map +1 -0
  421. package/build/main//321/201omponents/ScrollBar/types.d.ts +24 -0
  422. package/build/main//321/201omponents/ScrollBar/types.js +2 -0
  423. package/build/main//321/201omponents/ScrollBar/types.js.map +1 -0
  424. package/build/main//321/201omponents/Skeleton/Skeleton.d.ts +4 -0
  425. package/build/main//321/201omponents/Skeleton/Skeleton.js +59 -0
  426. package/build/main//321/201omponents/Skeleton/Skeleton.js.map +1 -0
  427. package/build/main//321/201omponents/Skeleton/index.d.ts +1 -0
  428. package/build/main//321/201omponents/Skeleton/index.js +2 -0
  429. package/build/main//321/201omponents/Skeleton/index.js.map +1 -0
  430. package/build/main//321/201omponents/Skeleton/types.d.ts +17 -0
  431. package/build/main//321/201omponents/Skeleton/types.js +2 -0
  432. package/build/main//321/201omponents/Skeleton/types.js.map +1 -0
  433. package/build/main//321/201omponents/Stories/Stories.d.ts +4 -0
  434. package/build/main//321/201omponents/Stories/Stories.js +406 -0
  435. package/build/main//321/201omponents/Stories/Stories.js.map +1 -0
  436. package/build/main//321/201omponents/Stories/index.d.ts +1 -0
  437. package/build/main//321/201omponents/Stories/index.js +2 -0
  438. package/build/main//321/201omponents/Stories/index.js.map +1 -0
  439. package/build/main//321/201omponents/Stories/types.d.ts +71 -0
  440. package/build/main//321/201omponents/Stories/types.js +16 -0
  441. package/build/main//321/201omponents/Stories/types.js.map +1 -0
  442. package/build/main//321/201omponents/Switcher/Switcher.d.ts +4 -0
  443. package/build/main//321/201omponents/Switcher/Switcher.js +34 -0
  444. package/build/main//321/201omponents/Switcher/Switcher.js.map +1 -0
  445. package/build/main//321/201omponents/Switcher/index.d.ts +1 -0
  446. package/build/main//321/201omponents/Switcher/index.js +2 -0
  447. package/build/main//321/201omponents/Switcher/index.js.map +1 -0
  448. package/build/main//321/201omponents/Switcher/types.d.ts +8 -0
  449. package/build/main//321/201omponents/Switcher/types.js +2 -0
  450. package/build/main//321/201omponents/Switcher/types.js.map +1 -0
  451. package/build/main//321/201omponents/SyncLoader/SyncLoader.d.ts +5 -0
  452. package/build/main//321/201omponents/SyncLoader/SyncLoader.js +65 -0
  453. package/build/main//321/201omponents/SyncLoader/SyncLoader.js.map +1 -0
  454. package/build/main//321/201omponents/SyncLoader/index.d.ts +1 -0
  455. package/build/main//321/201omponents/SyncLoader/index.js +2 -0
  456. package/build/main//321/201omponents/SyncLoader/index.js.map +1 -0
  457. package/build/main//321/201omponents/SyncLoader/types.d.ts +8 -0
  458. package/build/main//321/201omponents/SyncLoader/types.js +2 -0
  459. package/build/main//321/201omponents/SyncLoader/types.js.map +1 -0
  460. package/build/main//321/201omponents/Textarea/Textarea.d.ts +4 -0
  461. package/build/main//321/201omponents/Textarea/Textarea.js +59 -0
  462. package/build/main//321/201omponents/Textarea/Textarea.js.map +1 -0
  463. package/build/main//321/201omponents/Textarea/index.d.ts +1 -0
  464. package/build/main//321/201omponents/Textarea/index.js +2 -0
  465. package/build/main//321/201omponents/Textarea/index.js.map +1 -0
  466. package/build/main//321/201omponents/Textarea/types.d.ts +13 -0
  467. package/build/main//321/201omponents/Textarea/types.js +2 -0
  468. package/build/main//321/201omponents/Textarea/types.js.map +1 -0
  469. package/build/main//321/201omponents/Toggle/Toggle.d.ts +4 -0
  470. package/build/main//321/201omponents/Toggle/Toggle.js +35 -0
  471. package/build/main//321/201omponents/Toggle/Toggle.js.map +1 -0
  472. package/build/main//321/201omponents/Toggle/index.d.ts +1 -0
  473. package/build/main//321/201omponents/Toggle/index.js +2 -0
  474. package/build/main//321/201omponents/Toggle/index.js.map +1 -0
  475. package/build/main//321/201omponents/Toggle/types.d.ts +12 -0
  476. package/build/main//321/201omponents/Toggle/types.js +2 -0
  477. package/build/main//321/201omponents/Toggle/types.js.map +1 -0
  478. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.d.ts +4 -0
  479. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js +40 -0
  480. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js.map +1 -0
  481. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.d.ts +4 -0
  482. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js +98 -0
  483. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js.map +1 -0
  484. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.d.ts +5 -0
  485. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js +24 -0
  486. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js.map +1 -0
  487. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.d.ts +4 -0
  488. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js +104 -0
  489. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js.map +1 -0
  490. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.d.ts +4 -0
  491. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js +133 -0
  492. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js.map +1 -0
  493. package/build/main//321/201omponents/UserDropdown/Option/Option.d.ts +4 -0
  494. package/build/main//321/201omponents/UserDropdown/Option/Option.js +85 -0
  495. package/build/main//321/201omponents/UserDropdown/Option/Option.js.map +1 -0
  496. package/build/main//321/201omponents/UserDropdown/SearchInCatalogButton/SearchInCatalogButton.d.ts +4 -0
  497. package/build/main//321/201omponents/UserDropdown/SearchInCatalogButton/SearchInCatalogButton.js +41 -0
  498. package/build/main//321/201omponents/UserDropdown/SearchInCatalogButton/SearchInCatalogButton.js.map +1 -0
  499. package/build/main//321/201omponents/UserDropdown/UserDropdown.d.ts +5 -0
  500. package/build/main//321/201omponents/UserDropdown/UserDropdown.js +527 -0
  501. package/build/main//321/201omponents/UserDropdown/UserDropdown.js.map +1 -0
  502. package/build/main//321/201omponents/UserDropdown/components/Delimiter.d.ts +8 -0
  503. package/build/main//321/201omponents/UserDropdown/components/Delimiter.js +10 -0
  504. package/build/main//321/201omponents/UserDropdown/components/Delimiter.js.map +1 -0
  505. package/build/main//321/201omponents/UserDropdown/components/Hint.d.ts +6 -0
  506. package/build/main//321/201omponents/UserDropdown/components/Hint.js +21 -0
  507. package/build/main//321/201omponents/UserDropdown/components/Hint.js.map +1 -0
  508. package/build/main//321/201omponents/UserDropdown/components/Input.d.ts +2 -0
  509. package/build/main//321/201omponents/UserDropdown/components/Input.js +24 -0
  510. package/build/main//321/201omponents/UserDropdown/components/Input.js.map +1 -0
  511. package/build/main//321/201omponents/UserDropdown/components/Mask.d.ts +8 -0
  512. package/build/main//321/201omponents/UserDropdown/components/Mask.js +19 -0
  513. package/build/main//321/201omponents/UserDropdown/components/Mask.js.map +1 -0
  514. package/build/main//321/201omponents/UserDropdown/components/Title.d.ts +5 -0
  515. package/build/main//321/201omponents/UserDropdown/components/Title.js +18 -0
  516. package/build/main//321/201omponents/UserDropdown/components/Title.js.map +1 -0
  517. package/build/main//321/201omponents/UserDropdown/constants.d.ts +65 -0
  518. package/build/main//321/201omponents/UserDropdown/constants.js +83 -0
  519. package/build/main//321/201omponents/UserDropdown/constants.js.map +1 -0
  520. package/build/main//321/201omponents/UserDropdown/helpers.d.ts +148 -0
  521. package/build/main//321/201omponents/UserDropdown/helpers.js +313 -0
  522. package/build/main//321/201omponents/UserDropdown/helpers.js.map +1 -0
  523. package/build/main//321/201omponents/UserDropdown/index.d.ts +1 -0
  524. package/build/main//321/201omponents/UserDropdown/index.js +2 -0
  525. package/build/main//321/201omponents/UserDropdown/index.js.map +1 -0
  526. package/build/main//321/201omponents/UserDropdown/selectStyles.d.ts +15 -0
  527. package/build/main//321/201omponents/UserDropdown/selectStyles.js +99 -0
  528. package/build/main//321/201omponents/UserDropdown/selectStyles.js.map +1 -0
  529. package/build/main//321/201omponents/UserDropdown/types.d.ts +356 -0
  530. package/build/main//321/201omponents/UserDropdown/types.js +2 -0
  531. package/build/main//321/201omponents/UserDropdown/types.js.map +1 -0
  532. package/build/main//321/201omponents/types.d.ts +2 -0
  533. package/build/main//321/201omponents/types.js +2 -0
  534. package/build/main//321/201omponents/types.js.map +1 -0
  535. package/package.json +13 -8
@@ -0,0 +1,281 @@
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
+ /* eslint-disable max-lines */
14
+ import { useEffect, useLayoutEffect, useRef, useState } from 'react';
15
+ import Select, { components, } from 'react-select';
16
+ import CreatableSelect from 'react-select/creatable';
17
+ import Popup from 'reactjs-popup';
18
+ import classNames from 'classnames';
19
+ import { isArray, isEmpty, isNull, max, omit } from 'lodash';
20
+ import ListItem from '../ListItem';
21
+ import { DEFAULT_INDICATOR_COLOR, NOT_INTERACTIVE_ELEMENT } from '../ListItem/ListItem';
22
+ import ScrollBar from '../ScrollBar';
23
+ import { DEFAULT_SCROLL_BAR_SIZE } from '../ScrollBar/ScrollBar';
24
+ import { Skeleton } from '../Skeleton';
25
+ import selectStyles from './selectStyles';
26
+ import { generateFontFamilyStyle, isValueEqualToZero } from '../../helpers';
27
+ import { CREATABLE_MENU_LIST_MAX_HEIGHT, ENTER_KEY, MENU_LIST_MAX_HEIGHT, MENU_POSITIONS, POPUP_ON_EVENT_TYPE } from '../../constants';
28
+ import { ReactComponent as ArrowDownIcon } from '../../assets/icons/arrow-down.svg';
29
+ import { ReactComponent as ArrowUpIcon } from '../../assets/icons/arrow-up.svg';
30
+ import { ReactComponent as ClearIcon } from '../../assets/icons/clear.svg';
31
+ import '../../styles/styles.scss';
32
+ var DropdownIndicator = function (props) {
33
+ var isHidden = props.isHidden, menuIsOpen = props.selectProps.menuIsOpen;
34
+ return !isHidden ? (_jsx(components.DropdownIndicator, __assign({}, props, { className: "smartapp-custom-select__dropdown-indicator" }, { children: menuIsOpen ? _jsx(ArrowUpIcon, {}) : _jsx(ArrowDownIcon, {}) }))) : null;
35
+ };
36
+ var ClearIndicator = function (props) { return (_jsx(components.ClearIndicator, __assign({}, props, { children: _jsx(ClearIcon, {}) }))); };
37
+ export var generateListItemTextRect = function (menuListRef, listItemTextRef) {
38
+ var menuListRefCurrent = menuListRef.current;
39
+ var listItemTextRefCurrent = listItemTextRef.current;
40
+ var _a = listItemTextRefCurrent || {}, _b = _a.scrollWidth, scrollWidth = _b === void 0 ? 0 : _b, _c = _a.clientWidth, clientWidth = _c === void 0 ? 0 : _c;
41
+ var _d = ((listItemTextRefCurrent === null || listItemTextRefCurrent === void 0 ? void 0 : listItemTextRefCurrent.getBoundingClientRect()) || {}).top, top = _d === void 0 ? 0 : _d;
42
+ var _e = (menuListRefCurrent === null || menuListRefCurrent === void 0 ? void 0 : menuListRefCurrent.getBoundingClientRect()) || {}, _f = _e.width, width = _f === void 0 ? 0 : _f, _g = _e.left, left = _g === void 0 ? 0 : _g;
43
+ return {
44
+ scrollWidth: scrollWidth,
45
+ clientWidth: clientWidth,
46
+ left: left + MENU_LIST_INDENT,
47
+ top: top + POPUP_TOP_INDENT,
48
+ maxWidth: width - 2 * MENU_LIST_INDENT - TOOLTIP_CONTENT_INDENTS,
49
+ };
50
+ };
51
+ var Option = function (props) {
52
+ var label = props.label, isSelected = props.isSelected, isOptionsWithTooltip = props.isOptionsWithTooltip, isOptionsTextTruncated = props.isOptionsTextTruncated, _a = props.data, isCreatable = _a.isCreatable, isDisabled = _a.isDisabled, _b = _a.element, element = _b === void 0 ? NOT_INTERACTIVE_ELEMENT.noElement : _b, primaryTextStyles = _a.primaryTextStyles, primaryTextClassName = _a.primaryTextClassName, secondaryText = _a.secondaryText, secondaryTextColor = _a.secondaryTextColor, secondaryTextStyles = _a.secondaryTextStyles, secondaryTextClassName = _a.secondaryTextClassName, color = _a.color, styles = _a.styles, containerClassName = _a.containerClassName, avatar = _a.avatar, onDisabledSpecialOptionClick = _a.onDisabledSpecialOptionClick, menuListRef = props.menuListRef, platform = props.platform, fontFamily = props.fontFamily, onDisabledOptionClick = props.onDisabledOptionClick;
53
+ var optionComponentRef = useRef(null);
54
+ var listItemTextRef = useRef(null);
55
+ var popupRef = useRef(null);
56
+ var popupSpanRef = useRef(null);
57
+ var _c = useState(''), listItemTextWidth = _c[0], setListItemTextWidth = _c[1];
58
+ var _d = useState(0), popupLeft = _d[0], setPopupLeft = _d[1];
59
+ var _e = useState(0), popupTop = _e[0], setPopupTop = _e[1];
60
+ var _f = useState(0), popupMaxWidth = _f[0], setPopupMaxWidth = _f[1];
61
+ var _g = useState(POPUP_HIDDEN_CLASSNAME), hiddenClassName = _g[0], setHiddenClassName = _g[1];
62
+ var _h = useState(null), timeoutId = _h[0], setTimeoutId = _h[1];
63
+ var _j = generateListItemTextRect(menuListRef, listItemTextRef), scrollWidth = _j.scrollWidth, clientWidth = _j.clientWidth, left = _j.left, top = _j.top, maxWidth = _j.maxWidth;
64
+ var isTooltipAvailable = isOptionsWithTooltip && scrollWidth > clientWidth;
65
+ var generateListItemTextWidth = function () {
66
+ var _a;
67
+ var listItemTextElement = (_a = optionComponentRef.current) === null || _a === void 0 ? void 0 : _a.querySelector('.smartapp-list-item__text');
68
+ if (!listItemTextElement)
69
+ return '';
70
+ var _b = window.getComputedStyle(listItemTextElement), paddingLeft = _b.paddingLeft, paddingRight = _b.paddingRight;
71
+ return paddingLeft || paddingRight ? "calc(100% - ".concat(paddingLeft, " - ").concat(paddingRight, ")") : '';
72
+ };
73
+ useEffect(function () {
74
+ setPopupLeft(left);
75
+ setPopupTop(top);
76
+ setPopupMaxWidth(maxWidth);
77
+ }, [left, top, maxWidth]);
78
+ useLayoutEffect(function () {
79
+ setListItemTextWidth(generateListItemTextWidth());
80
+ }, []);
81
+ var handleDisabledOptionClick = onDisabledSpecialOptionClick || onDisabledOptionClick;
82
+ var handleOptionClick = function () { return isDisabled && handleDisabledOptionClick(); };
83
+ var recalculatePopupMaxWidth = function () {
84
+ var popupRefCurrent = popupRef.current;
85
+ var popupSpanRefCurrent = popupSpanRef.current;
86
+ if (popupRefCurrent && popupSpanRefCurrent) {
87
+ var width = popupSpanRefCurrent.getBoundingClientRect().width;
88
+ if (width < popupMaxWidth) {
89
+ setPopupLeft(popupLeft + (popupMaxWidth - width));
90
+ setPopupMaxWidth(width);
91
+ popupRefCurrent.close();
92
+ var nextTimeoutId = setTimeout(function () { var _a; return (_a = popupRef.current) === null || _a === void 0 ? void 0 : _a.open(); }, 0);
93
+ setTimeoutId(nextTimeoutId);
94
+ }
95
+ setHiddenClassName('');
96
+ }
97
+ };
98
+ var handleClosePopup = function () { return timeoutId && clearTimeout(timeoutId); };
99
+ var renderListItem = function () { return (_jsx(ListItem, { platform: platform, fontFamily: fontFamily, textRef: listItemTextRef, type: "not-interactive", element: element, text: label, primaryTextClassName: primaryTextClassName, primaryTextStyles: primaryTextStyles, secondaryText: secondaryText, secondaryTextColor: secondaryTextColor, secondaryTextStyles: secondaryTextStyles, secondaryTextClassName: secondaryTextClassName, color: color, isSelected: isSelected && !isCreatable, isDisabled: isDisabled, isTextTruncated: isOptionsTextTruncated, textStyles: __assign(__assign({}, styles), { width: listItemTextWidth }), avatar: avatar })); };
100
+ return (_jsx("div", __assign({ className: containerClassName, onClick: handleOptionClick }, { children: _jsx(components.Option, __assign({}, props, { innerRef: optionComponentRef, className: classNames({ 'smartapp-option-with-tooltip': isOptionsWithTooltip }) }, { children: isTooltipAvailable ? (_jsx(Popup, __assign({ ref: popupRef, arrow: false, className: classNames('select-label', hiddenClassName), contentStyle: __assign({ '--select-label-content-left': "".concat(popupLeft, "px"), '--select-label-content-top': "".concat(popupTop, "px"), '--select-label-content-max-width': "".concat(popupMaxWidth, "px") }, generateFontFamilyStyle(fontFamily)), on: [POPUP_ON_EVENT_TYPE.hover], mouseEnterDelay: POPUP_APPEARANCE_DELAY, onOpen: recalculatePopupMaxWidth, onClose: handleClosePopup, trigger: function () { return _jsx("div", __assign({ className: "w-100" }, { children: renderListItem() })); } }, { children: _jsx("span", __assign({ ref: popupSpanRef }, { children: label })) }))) : (renderListItem()) })) })));
101
+ };
102
+ var SingleValueComponent = function (props) {
103
+ 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;
104
+ var renderIndicatorElement = function () {
105
+ var _a;
106
+ var indicatorColorClassName = "smartapp-list-item__indicator--".concat(color);
107
+ var className = classNames('smartapp-list-item__indicator', indicatorColorClassName, (_a = {},
108
+ _a["".concat(indicatorColorClassName, "__disabled")] = isDisabled,
109
+ _a));
110
+ return element === NOT_INTERACTIVE_ELEMENT.indicator ? _jsx("div", { className: className }) : null;
111
+ };
112
+ return (_jsxs(components.SingleValue, __assign({}, props, { children: [renderIndicatorElement(), _jsx("div", __assign({ className: "smartapp-custom-select__selected-value" }, { children: children }))] })));
113
+ };
114
+ var MenuList = function (props) {
115
+ var platform = props.platform, menuListRef = props.menuListRef, isMenuAutoWidth = props.isMenuAutoWidth, menuListWidth = props.menuListWidth, menuListMaxHeight = props.menuListMaxHeight, selectWidth = props.selectWidth, optionHeight = props.optionHeight, setOptionHeight = props.setOptionHeight, children = props.children;
116
+ // Определяем количество элементов: если это список доступных для выбора элементов, берем его длину.
117
+ // Если это не массив, значит в меню отображается "Loading" или "No Options" компонент.
118
+ var optionsLength = isArray(children) ? children.length : 1;
119
+ // Рассчитываем итоговую высоту контейнера меню:
120
+ // 1. Общая высота всех элементов (высота одного элемента * количество);
121
+ // 2. Суммарная высота промежутков между элементами (количество промежутков всегда на 1 меньше, чем элементов);
122
+ // 3. Внутренние отступы (padding) контейнера сверху и снизу.
123
+ var menuListHeight = optionHeight * optionsLength + OPTIONS_GAP * (optionsLength - 1) + PADDING;
124
+ var containerHeight = Math.min(menuListHeight, menuListMaxHeight);
125
+ useLayoutEffect(function () {
126
+ var _a;
127
+ if (menuListRef.current && isValueEqualToZero(optionHeight)) {
128
+ var options = (_a = menuListRef.current) === null || _a === void 0 ? void 0 : _a.querySelectorAll('[role="option"]');
129
+ var optionsHeights = Array.from(options).map(function (option) { return option.getBoundingClientRect().height; });
130
+ !isEmpty(optionsHeights) && setOptionHeight(max(optionsHeights) || 0);
131
+ }
132
+ }, [optionHeight, setOptionHeight, selectWidth, menuListRef]);
133
+ return (_jsx(components.MenuList, __assign({}, props, { innerRef: menuListRef }, { children: isArray(children) ? (_jsx(ScrollBar, { platform: platform, content: children, containerHeight: "".concat(containerHeight, "px"), containerWidth: isMenuAutoWidth ? "".concat(menuListWidth, "px") : DEFAULT_SCROLL_BAR_SIZE, trackYHeight: TRACK_Y_HEIGHT })) : (children) })));
134
+ };
135
+ var LoadingMessage = function (_a) {
136
+ var _b = _a.isCreatableSelect, isCreatableSelect = _b === void 0 ? false : _b;
137
+ var ref = useRef(null);
138
+ 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', {
139
+ 'smartapp-custom-select__loading-message--item__creatable': isCreatableSelect,
140
+ }) }, { children: [_jsx(Skeleton, { containerRef: ref, className: "smartapp-custom-select__loading-message--item__first", borderRadius: 8 }), isCreatableSelect && _jsx(Skeleton, { containerRef: ref, className: "smartapp-custom-select__loading-message--item__second", borderRadius: 8 })] }), index)); }) })));
141
+ };
142
+ var NoOptionsMessage = function (props) {
143
+ var noOptionsMessage = props.noOptionsMessage, children = props.children;
144
+ return noOptionsMessage ? (_jsx(components.NoOptionsMessage, __assign({}, props, { className: "smartapp-custom-select__no-options" }, { children: children }))) : null;
145
+ };
146
+ var Input = function (props) { return _jsx(components.Input, __assign({}, props, { isHidden: false })); };
147
+ var IndicatorSeparator = function () { return null; };
148
+ var LoadingIndicator = function () { return null; };
149
+ var MENU_LIST_INDENT = 14;
150
+ var POPUP_TOP_INDENT = 20;
151
+ var TOOLTIP_CONTENT_INDENTS = 24;
152
+ var POPUP_APPEARANCE_DELAY = 500;
153
+ var POPUP_HIDDEN_CLASSNAME = 'select-label-hidden';
154
+ var LOADING_MESSAGE_ITEMS = 6;
155
+ var IS_CREATABLE_FIELD_NAME = 'isCreatable';
156
+ var EMPTY_SELECTED_VALUE = { value: '', label: '' };
157
+ var OPTIONS_GAP = 2;
158
+ var PADDING = 12;
159
+ var TRACK_Y_HEIGHT = 'calc(100% - 16px)';
160
+ var ACTIONS = {
161
+ clear: 'clear',
162
+ inputChange: 'input-change',
163
+ };
164
+ var CustomSelect = function (_a) {
165
+ var _b;
166
+ var platform = _a.platform, fontFamily = _a.fontFamily, _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.isOptionsWithTooltip, isOptionsWithTooltip = _g === void 0 ? false : _g, _h = _a.isOptionsTextTruncated, isOptionsTextTruncated = _h === void 0 ? false : _h, _j = _a.isMenuAutoWidth, isMenuAutoWidth = _j === void 0 ? false : _j, _k = _a.isInteractionDisabled, isInteractionDisabled = _k === void 0 ? false : _k, _l = _a.width, width = _l === void 0 ? 100 : _l, menuListMaxHeight = _a.menuListMaxHeight, containerClassName = _a.containerClassName, containerPadding = _a.containerPadding, containerStyles = _a.containerStyles, title = _a.title, placeholder = _a.placeholder, hint = _a.hint, noOptionsMessage = _a.noOptionsMessage, noOptionsMessageClassName = _a.noOptionsMessageClassName, error = _a.error, _m = _a.menuPosition, menuPosition = _m === void 0 ? MENU_POSITIONS.bottom : _m, menuLocation = _a.menuLocation, defaultValue = _a.defaultValue, options = _a.options, selectProps = _a.selectProps, creatableSelectProps = _a.creatableSelectProps, onChange = _a.onChange, _o = _a.onDisabledOptionClick, onDisabledOptionClick = _o === void 0 ? function () { } : _o, _p = _a.onMenuOpen, onMenuOpen = _p === void 0 ? function () { } : _p;
167
+ var selectRef = useRef(null);
168
+ var menuListRef = useRef(null);
169
+ var _q = useState(), value = _q[0], setValue = _q[1];
170
+ var _r = useState(''), inputValue = _r[0], setInputValue = _r[1];
171
+ var _s = useState(false), isInputFocused = _s[0], setIsInputFocused = _s[1];
172
+ var _t = useState(0), optionHeight = _t[0], setOptionHeight = _t[1];
173
+ var _u = useState(0), menuListWidth = _u[0], setMenuListWidth = _u[1];
174
+ var selectRefCurrent = selectRef.current;
175
+ var isSelectClearable = isInputFocused && !isEmpty(inputValue);
176
+ var fontFamilyStyle = generateFontFamilyStyle(fontFamily);
177
+ var isActionless = isInteractionDisabled && options.length === 1;
178
+ var isMenuOpen = isActionless ? false : undefined;
179
+ var isSelectMenuOpen = (_b = selectRefCurrent === null || selectRefCurrent === void 0 ? void 0 : selectRefCurrent.props) === null || _b === void 0 ? void 0 : _b.menuIsOpen;
180
+ useLayoutEffect(function () {
181
+ setOptionHeight(0);
182
+ setMenuListWidth(0);
183
+ }, [width, fontFamily, isMenuAutoWidth]);
184
+ useLayoutEffect(function () {
185
+ var _a;
186
+ var menuListRefCurrent = menuListRef.current;
187
+ if (isSelectMenuOpen && !isNull(menuListRefCurrent)) {
188
+ var _b = menuListRefCurrent.getBoundingClientRect().width, menuListWidth_1 = _b === void 0 ? 0 : _b;
189
+ var _c = (((_a = menuListRefCurrent.querySelector('[role="option"]')) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect()) || {}).width, optionWidth = _c === void 0 ? 0 : _c;
190
+ setMenuListWidth(Math.max(optionWidth, menuListWidth_1 - PADDING));
191
+ }
192
+ }, [isMenuAutoWidth, isSelectMenuOpen]);
193
+ useEffect(function () {
194
+ if (defaultValue) {
195
+ setValue(defaultValue);
196
+ setInputValue(defaultValue.label);
197
+ }
198
+ // eslint-disable-next-line
199
+ }, [defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.value, defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.label]);
200
+ var generateMenuListMaxHeight = function () {
201
+ var defaultMenuListMaxHeight = isCreatable ? CREATABLE_MENU_LIST_MAX_HEIGHT : MENU_LIST_MAX_HEIGHT;
202
+ return menuListMaxHeight || defaultMenuListMaxHeight;
203
+ };
204
+ var renderTitle = function () {
205
+ return title && (_jsx("div", __assign({ className: "smartapp-custom-select__title" }, { children: _jsx("div", __assign({ className: "smartapp-custom-select__title--text" }, { children: title })) })));
206
+ };
207
+ var renderHint = function () { return hint && _jsx("div", __assign({ className: "smartapp-custom-select__hint" }, { children: hint })); };
208
+ var renderError = function () { return error && _jsx("div", __assign({ className: "smartapp-custom-select__error" }, { children: error })); };
209
+ var OptionComponent = function (props) { return (_jsx(Option, __assign({}, props, { menuListRef: menuListRef, platform: platform, fontFamily: fontFamily, isOptionsWithTooltip: isOptionsWithTooltip, isOptionsTextTruncated: isOptionsTextTruncated, onDisabledOptionClick: onDisabledOptionClick }))); };
210
+ var MenuListComponent = function (props) { return (_jsx(MenuList, __assign({}, props, { children: props.children, platform: platform, menuListRef: menuListRef, isMenuAutoWidth: isMenuAutoWidth, menuListWidth: menuListWidth, menuListMaxHeight: generateMenuListMaxHeight(), selectWidth: width, optionHeight: optionHeight, setOptionHeight: setOptionHeight }))); };
211
+ var generateStyles = function () {
212
+ return selectStyles({
213
+ isDisabled: isDisabled,
214
+ isError: !isEmpty(error),
215
+ isMenuAutoWidth: isMenuAutoWidth,
216
+ fontFamilyStyle: fontFamilyStyle,
217
+ menuListMaxHeight: generateMenuListMaxHeight(),
218
+ optionHeight: optionHeight,
219
+ containerPadding: containerPadding,
220
+ });
221
+ };
222
+ var creatableFilterOption = function () { return !(value === null || value === void 0 ? void 0 : value.isCreatable); };
223
+ var handleChange = function (option, _a) {
224
+ var action = _a.action;
225
+ var isClearAction = action === ACTIONS.clear;
226
+ var nextSelectedValue = isClearAction ? EMPTY_SELECTED_VALUE : option;
227
+ onChange(nextSelectedValue);
228
+ setValue(nextSelectedValue);
229
+ setInputValue(nextSelectedValue.label);
230
+ isClearAction ? selectRefCurrent === null || selectRefCurrent === void 0 ? void 0 : selectRefCurrent.focus() : selectRefCurrent === null || selectRefCurrent === void 0 ? void 0 : selectRefCurrent.blur();
231
+ };
232
+ var handleInputChange = function (inputValue, _a) {
233
+ var action = _a.action;
234
+ if (action === ACTIONS.inputChange) {
235
+ var nextSelectedValue = { value: inputValue, label: inputValue, isCreatable: !isEmpty(inputValue) };
236
+ setInputValue(inputValue);
237
+ setValue(nextSelectedValue);
238
+ onChange(isCreatable ? omit(nextSelectedValue, [IS_CREATABLE_FIELD_NAME]) : EMPTY_SELECTED_VALUE);
239
+ }
240
+ };
241
+ var handleFocus = function () {
242
+ setTimeout(function () {
243
+ var _a;
244
+ var inputValueLength = inputValue.length;
245
+ (_a = selectRefCurrent === null || selectRefCurrent === void 0 ? void 0 : selectRefCurrent.inputRef) === null || _a === void 0 ? void 0 : _a.setSelectionRange(inputValueLength, inputValueLength);
246
+ }, 0);
247
+ setIsInputFocused(true);
248
+ };
249
+ var handleBlur = function () { return setIsInputFocused(false); };
250
+ var handleMenuOpen = function () { return !isActionless && (onMenuOpen === null || onMenuOpen === void 0 ? void 0 : onMenuOpen()); };
251
+ var handleCreatableKeyDown = function (event) {
252
+ var key = event.key, code = event.code;
253
+ if (code === ENTER_KEY || key === ENTER_KEY) {
254
+ event.preventDefault();
255
+ selectRefCurrent === null || selectRefCurrent === void 0 ? void 0 : selectRefCurrent.blur();
256
+ }
257
+ };
258
+ return (_jsxs("div", __assign({ className: classNames('smartapp-custom-select', containerClassName), style: __assign(__assign({ width: "".concat(width, "%") }, fontFamilyStyle), containerStyles) }, { children: [renderTitle(), isCreatable ? (_jsx(CreatableSelect, __assign({ ref: selectRef, menuIsOpen: isMenuOpen, 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: handleMenuOpen, loadingMessage: function () { return _jsx(LoadingMessage, { isCreatableSelect: true }); }, components: {
259
+ Input: Input,
260
+ Option: OptionComponent,
261
+ IndicatorSeparator: IndicatorSeparator,
262
+ DropdownIndicator: function (props) { return _jsx(DropdownIndicator, __assign({}, props, { isHidden: isSelectClearable || isActionless })); },
263
+ MenuList: MenuListComponent,
264
+ LoadingIndicator: LoadingIndicator,
265
+ NoOptionsMessage: function () { return null; },
266
+ ClearIndicator: ClearIndicator,
267
+ SingleValue: SingleValueComponent,
268
+ } }, creatableSelectProps))) : (_jsx(Select, __assign({ ref: selectRef, menuIsOpen: isMenuOpen, 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: handleMenuOpen, noOptionsMessage: function () { return noOptionsMessage; }, loadingMessage: function () { return _jsx(LoadingMessage, {}); }, components: {
269
+ Input: Input,
270
+ Option: OptionComponent,
271
+ IndicatorSeparator: IndicatorSeparator,
272
+ DropdownIndicator: function (props) { return _jsx(DropdownIndicator, __assign({}, props, { isHidden: (isSearchable && isSelectClearable) || isActionless })); },
273
+ SingleValue: SingleValueComponent,
274
+ MenuList: MenuListComponent,
275
+ LoadingIndicator: LoadingIndicator,
276
+ ClearIndicator: ClearIndicator,
277
+ NoOptionsMessage: function (props) { return _jsx(NoOptionsMessage, __assign({}, props, { className: noOptionsMessageClassName, noOptionsMessage: noOptionsMessage })); },
278
+ } }, selectProps))), renderHint(), renderError()] })));
279
+ };
280
+ export default CustomSelect;
281
+ //# sourceMappingURL=CustomSelect.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomSelect.js","sourceRoot":"","sources":["../../../../src/сomponents/CustomSelect/CustomSelect.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8BAA8B;AAC9B,OAAc,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC3E,OAAO,MAAM,EAAE,EAQb,UAAU,GACX,MAAM,cAAc,CAAA;AACrB,OAAO,eAAe,MAAM,wBAAwB,CAAA;AACpD,OAAO,KAAK,MAAM,eAAe,CAAA;AAEjC,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC5D,OAAO,QAAQ,MAAM,aAAa,CAAA;AAClC,OAAO,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAA;AACvF,OAAO,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UAAC,KAAK,IAAK,OAAA,KAAC,iBAAiB,eAAK,KAAK,IAAE,QAAQ,EAAE,CAAC,YAAY,IAAI,iBAAiB,CAAC,IAAI,YAAY,IAAI,EAA/F,CAA+F;oBAC7H,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,SAAS,EAAE,yBAAyB,EAAE,gBAAgB,EAAE,gBAAgB,IAAI,EAAzG,CAAyG;iBACvI,IACG,WAAW,EACf,CACH,EACA,UAAU,EAAE,EACZ,WAAW,EAAE,KACV,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,YAAY,CAAA"}
@@ -0,0 +1 @@
1
+ export { default } from './CustomSelect';
@@ -0,0 +1,2 @@
1
+ export { default } from './CustomSelect';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/CustomSelect/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA"}
@@ -0,0 +1,16 @@
1
+ import { TSelectStyles } from './types';
2
+ declare const _default: ({ isDisabled, isError, isMenuAutoWidth, fontFamilyStyle: { fontFamily }, menuListMaxHeight, optionHeight, containerPadding, }: 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, { selectProps: { menuIsOpen } }: 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;
@@ -0,0 +1,77 @@
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 { COLORS } from '../../constants';
14
+ var borderFocused = COLORS.borderFocused, borderError = COLORS.borderError, borderPrimary = COLORS.borderPrimary, borderPrimaryHover = COLORS.borderPrimaryHover, bgLightTransparent = COLORS.bgLightTransparent, transparent = COLORS.transparent, mShadowClick = COLORS.mShadowClick, bgElementOnTop = COLORS.bgElementOnTop, iconAccent = COLORS.iconAccent, iconPrimary = COLORS.iconPrimary, textPrimary = COLORS.textPrimary, textSecondary = COLORS.textSecondary, textTertiary = COLORS.textTertiary;
15
+ // eslint-disable-next-line import/no-anonymous-default-export
16
+ export default (function (_a) {
17
+ var isDisabled = _a.isDisabled, isError = _a.isError, isMenuAutoWidth = _a.isMenuAutoWidth, fontFamily = _a.fontFamilyStyle.fontFamily, menuListMaxHeight = _a.menuListMaxHeight, optionHeight = _a.optionHeight, containerPadding = _a.containerPadding;
18
+ return ({
19
+ control: function (provided, _a) {
20
+ var menuIsOpen = _a.menuIsOpen;
21
+ var borderColor = menuIsOpen ? borderFocused : borderPrimary;
22
+ var hoverBorderColor = menuIsOpen ? borderFocused : borderPrimaryHover;
23
+ return __assign(__assign({}, provided), { background: isDisabled ? bgLightTransparent : transparent, borderRadius: '10px', borderColor: isError ? borderError : borderColor, boxShadow: 'none', cursor: 'pointer', transition: 'border-color 250ms ease-in-out, background 250ms ease-in-out', '&:hover': {
24
+ borderColor: isError ? borderError : hoverBorderColor,
25
+ } });
26
+ },
27
+ menu: function (provided) { return (__assign(__assign({}, provided), { minWidth: isMenuAutoWidth && 'max-content', background: transparent, borderRadius: '10px', boxShadow: mShadowClick, margin: '4px 0', zIndex: 2, '&:has(> div:first-child:empty)': {
28
+ display: 'none',
29
+ } })); },
30
+ menuList: function (provided, _a) {
31
+ var isLoading = _a.isLoading, options = _a.options;
32
+ var isLoadingState = isLoading && isEmpty(options);
33
+ return __assign(__assign({}, provided), { maxHeight: isLoadingState ? '256px' : "".concat(menuListMaxHeight, "px"), background: bgElementOnTop, borderRadius: '10px', padding: '0 6px', overflow: 'hidden', '.ScrollbarsCustom-Content': {
34
+ display: 'flex',
35
+ flexDirection: 'column',
36
+ gap: '2px',
37
+ minWidth: isMenuAutoWidth && 'max-content !important',
38
+ padding: '6px 0 !important',
39
+ }, '.smartapp-scroll__scroller-y': {
40
+ right: '-2px !important',
41
+ top: '8px !important',
42
+ bottom: '8px !important',
43
+ }, '&:has(> .smartapp-custom-select__no-options)': {
44
+ paddingBlock: '6px',
45
+ }, '&:has(.smartapp-custom-select__loading-message)': {
46
+ paddingTop: '6px',
47
+ } });
48
+ },
49
+ valueContainer: function (provided) { return (__assign(__assign({}, provided), { padding: containerPadding || '9.5px 8px 9.5px 12px' })); },
50
+ dropdownIndicator: function (provided, _a) {
51
+ var menuIsOpen = _a.selectProps.menuIsOpen;
52
+ return (__assign(__assign({}, provided), { color: "".concat(menuIsOpen && !isError ? iconAccent : iconPrimary, " !important"), padding: '7px 12px 7px 0', opacity: isDisabled && '0.5' }));
53
+ },
54
+ clearIndicator: function (provided) { return (__assign(__assign({}, provided), { color: "".concat(iconPrimary, " !important"), padding: '9px 14px 9px 0' })); },
55
+ loadingMessage: function (provided) { return (__assign(__assign({}, provided), { padding: 0, overflowY: 'hidden' })); },
56
+ placeholder: function (provided) { return (__assign(__assign({}, provided), { fontFamily: fontFamily, fontSize: '14px', fontWeight: '400', lineHeight: '17px', color: textTertiary, margin: 0 })); },
57
+ input: function (provided) { return (__assign(__assign({}, provided), { fontSize: '14px', fontWeight: '400', lineHeight: '17px', color: textPrimary, caretColor: iconAccent, padding: 0, margin: 0, overflow: 'auto' })); },
58
+ noOptionsMessage: function (provided) { return (__assign(__assign({}, provided), { fontSize: '14px', fontWeight: 400, lineHeight: '18px', color: textSecondary, padding: '10px 6px' })); },
59
+ singleValue: function (provided) { return (__assign(__assign({}, provided), { display: 'flex', alignItems: 'center', gap: '8px', fontFamily: fontFamily, fontSize: '14px', fontWeight: 400, lineHeight: '17px', color: isDisabled ? textSecondary : textPrimary, margin: 0 })); },
60
+ 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(transparent, " !important"), padding: '0', cursor: 'pointer', boxSizing: 'content-box', '.smartapp-list-item__not-interactive': {
61
+ whiteSpace: 'normal',
62
+ }, '&.smartapp-option-with-tooltip': {
63
+ '.smartapp-list-item__text > div:nth-child(1)': {
64
+ textOverflow: 'ellipsis',
65
+ whiteSpace: 'nowrap',
66
+ overflow: 'hidden',
67
+ },
68
+ }, '.smartapp-list-item__text': {
69
+ gap: '4px',
70
+ }, '&:has(> .smartapp-list-item > .smartapp-list-item__avatar)': {
71
+ '.smartapp-list-item__text': {
72
+ gap: 0,
73
+ },
74
+ } })); },
75
+ });
76
+ });
77
+ //# sourceMappingURL=selectStyles.js.map
@@ -0,0 +1 @@
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,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAItC,IAAA,aAAa,GAaX,MAAM,cAbK,EACb,WAAW,GAYT,MAAM,YAZG,EACX,aAAa,GAWX,MAAM,cAXK,EACb,kBAAkB,GAUhB,MAAM,mBAVU,EAClB,kBAAkB,GAShB,MAAM,mBATU,EAClB,WAAW,GAQT,MAAM,YARG,EACX,YAAY,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AM,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,WAAW,gBAAa,EACvC,OAAO,EAAE,GAAG,EACZ,MAAM,EAAE,SAAS,EACjB,SAAS,EAAE,aAAa,EAExB,sCAAsC,EAAE;gBACtC,UAAU,EAAE,QAAQ;aACrB,EAED,gCAAgC,EAAE;gBAChC,8CAA8C,EAAE;oBAC9C,YAAY,EAAE,UAAU;oBACxB,UAAU,EAAE,QAAQ;oBACpB,QAAQ,EAAE,QAAQ;iBACnB;aACF,EAED,2BAA2B,EAAE;gBAC3B,GAAG,EAAE,KAAK;aACX,EAED,4DAA4D,EAAE;gBAC5D,2BAA2B,EAAE;oBAC3B,GAAG,EAAE,CAAC;iBACP;aACF,IACD,EAhCyB,CAgCzB;KACH,CAAC;AAvKmB,CAuKnB,EAAA"}
@@ -0,0 +1,86 @@
1
+ import React from 'react';
2
+ import { GroupBase, MenuListProps } from 'react-select';
3
+ import { Props as TReactSelectProps } from 'react-select';
4
+ import { CreatableProps as TReactCreatableSelectProps } from 'react-select/creatable';
5
+ import { IFontFamilyProps, IPlatformProps, TAvatar, TFontFamilyStyle, TStyles } from '../../constants';
6
+ import { TIndicatorColor } from '../ListItem/types';
7
+ import { IntRange } from '../types';
8
+ export type TMenuList = MenuListProps & IPlatformProps & {
9
+ menuListRef: React.RefObject<HTMLDivElement | null>;
10
+ isMenuAutoWidth: boolean;
11
+ menuListWidth: number;
12
+ menuListMaxHeight: number;
13
+ selectWidth: number;
14
+ optionHeight: number;
15
+ setOptionHeight: React.Dispatch<React.SetStateAction<number>>;
16
+ };
17
+ export type TSelectStyles = {
18
+ isDisabled: boolean;
19
+ isError: boolean;
20
+ isMenuAutoWidth: boolean;
21
+ fontFamilyStyle: TFontFamilyStyle;
22
+ menuListMaxHeight: number;
23
+ optionHeight: number;
24
+ containerPadding?: string;
25
+ };
26
+ export interface ILoadingMessage {
27
+ isCreatableSelect?: boolean;
28
+ }
29
+ interface IndicatorCustomSelectOption {
30
+ element: 'indicator';
31
+ color?: TIndicatorColor;
32
+ }
33
+ interface NoElementCustomSelectOption {
34
+ element: 'no-element';
35
+ secondaryText?: string;
36
+ secondaryTextColor?: string;
37
+ secondaryTextStyles?: TStyles;
38
+ secondaryTextClassName?: string;
39
+ }
40
+ interface SimpleCustomSelectOption {
41
+ }
42
+ export type TCustomSelectOption = (NoElementCustomSelectOption | IndicatorCustomSelectOption | SimpleCustomSelectOption) & {
43
+ label: string;
44
+ value: string;
45
+ isDisabled?: boolean;
46
+ isCreatable?: boolean;
47
+ styles?: TStyles;
48
+ primaryTextStyles?: TStyles;
49
+ primaryTextClassName?: string;
50
+ containerClassName?: string;
51
+ avatar?: TAvatar;
52
+ onDisabledSpecialOptionClick?: () => void;
53
+ };
54
+ type TSelectProps = Omit<TReactSelectProps<TCustomSelectOption, false>, 'isDisabled' | 'isLoading' | 'isSearchable' | 'menuPlacement' | 'menuPosition' | 'noOptionsMessage' | 'onChange' | 'onMenuOpen' | 'options' | 'placeholder'>;
55
+ type TCreatableSelectProps = Omit<TReactCreatableSelectProps<TCustomSelectOption, false, GroupBase<TCustomSelectOption>>, 'isDisabled' | 'isLoading' | 'menuPlacement' | 'menuPosition' | 'noOptionsMessage' | 'onChange' | 'onMenuOpen' | 'options' | 'placeholder'>;
56
+ export interface ICustomSelectProps extends IFontFamilyProps, IPlatformProps {
57
+ isLoading?: boolean;
58
+ isSearchable?: boolean;
59
+ isCreatable?: boolean;
60
+ isDisabled?: boolean;
61
+ isOptionsWithTooltip?: boolean;
62
+ isOptionsTextTruncated?: boolean;
63
+ isMenuAutoWidth?: boolean;
64
+ isInteractionDisabled?: boolean;
65
+ width?: IntRange<1, 101>;
66
+ menuListMaxHeight?: number;
67
+ containerClassName?: string;
68
+ containerPadding?: string;
69
+ containerStyles?: TStyles;
70
+ title?: string;
71
+ placeholder: string;
72
+ hint?: string;
73
+ noOptionsMessage?: string;
74
+ noOptionsMessageClassName?: string;
75
+ error?: string;
76
+ menuPosition?: 'bottom' | 'auto' | 'top';
77
+ menuLocation?: 'absolute' | 'fixed';
78
+ defaultValue?: TCustomSelectOption;
79
+ options: TCustomSelectOption[];
80
+ selectProps?: TSelectProps;
81
+ creatableSelectProps?: TCreatableSelectProps;
82
+ onChange: (option: TCustomSelectOption) => void;
83
+ onDisabledOptionClick?: () => void;
84
+ onMenuOpen?: () => void;
85
+ }
86
+ export {};
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/CustomSelect/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { ICustomSelectProfilesProps } from './types';
2
+ import '../../styles/styles.scss';
3
+ declare const CustomSelectProfiles: ({ isDisabled, fontFamily, placeholder, defaultValue, options, onChange }: ICustomSelectProfilesProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default CustomSelectProfiles;
@@ -0,0 +1,67 @@
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 Chip from '../Chip';
27
+ import selectStyles from './selectStyles';
28
+ import { AVATAR_SIZES } from '../Avatar/types';
29
+ import { ReactComponent as ArrowDownIcon } from '../../assets/icons/select-arrow-down.svg';
30
+ import { ReactComponent as ArrowUpIcon } from '../../assets/icons/select-arrow-up.svg';
31
+ import '../../styles/styles.scss';
32
+ var SingleValue = function (props) {
33
+ var fontFamily = props.fontFamily, _a = props.data, avatar = _a.avatar, username = _a.username, email = _a.email;
34
+ return (_jsx(components.SingleValue, __assign({}, props, { children: _jsx(Chip, { isUserIconHidden: true, isEmailMode: true, fontFamily: fontFamily, avatar: avatar, name: username || email, email: email }) })));
35
+ };
36
+ var Option = function (props) {
37
+ var fontFamily = props.fontFamily, _a = props.data, avatar = _a.avatar, username = _a.username, email = _a.email;
38
+ return (_jsx(components.Option, __assign({}, props, { children: _jsxs("div", __assign({ className: "smartapp-custom-select-profiles__option" }, { children: [_jsx(Avatar, { fontFamily: fontFamily, size: AVATAR_SIZES.size_32, avatar: avatar, username: username || email }), _jsxs("div", __assign({ className: "smartapp-custom-select-profiles__option--info" }, { children: [_jsx("div", __assign({ className: "smartapp-custom-select-profiles__option--info__username" }, { children: username })), _jsx("div", __assign({ className: "smartapp-custom-select-profiles__option--info__email" }, { children: email }))] }))] })) })));
39
+ };
40
+ var DropdownIndicator = function (props) {
41
+ var menuIsOpen = props.selectProps.menuIsOpen;
42
+ return (_jsx(components.DropdownIndicator, __assign({}, props, { className: "smartapp-custom-select__dropdown-indicator" }, { children: menuIsOpen ? _jsx(ArrowUpIcon, {}) : _jsx(ArrowDownIcon, {}) })));
43
+ };
44
+ var IndicatorSeparator = function () { return null; };
45
+ var CustomSelectProfiles = function (_a) {
46
+ var _b = _a.isDisabled, isDisabled = _b === void 0 ? false : _b, fontFamily = _a.fontFamily, placeholder = _a.placeholder, defaultValue = _a.defaultValue, options = _a.options, onChange = _a.onChange;
47
+ return (_jsx("div", __assign({ className: "smartapp-custom-select-profiles" }, { children: _jsx(Select, { isSearchable: false, isDisabled: isDisabled, placeholder: placeholder, defaultValue: defaultValue, options: options, styles: selectStyles(isDisabled, fontFamily), onChange: onChange, getOptionLabel: function (_a) {
48
+ var username = _a.username;
49
+ return username;
50
+ }, getOptionValue: function (_a) {
51
+ var email = _a.email;
52
+ return email;
53
+ }, components: {
54
+ Option: function (_a) {
55
+ var children = _a.children, props = __rest(_a, ["children"]);
56
+ return _jsx(Option, __assign({}, props, { fontFamily: fontFamily, children: children }));
57
+ },
58
+ SingleValue: function (_a) {
59
+ var children = _a.children, props = __rest(_a, ["children"]);
60
+ return _jsx(SingleValue, __assign({}, props, { fontFamily: fontFamily, children: children }));
61
+ },
62
+ DropdownIndicator: DropdownIndicator,
63
+ IndicatorSeparator: IndicatorSeparator,
64
+ } }) })));
65
+ };
66
+ export default CustomSelectProfiles;
67
+ //# sourceMappingURL=CustomSelectProfiles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomSelectProfiles.js","sourceRoot":"","sources":["../../../../src/сomponents/CustomSelectProfiles/CustomSelectProfiles.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,MAAM,EAAE,EAAoE,UAAU,EAAE,MAAM,cAAc,CAAA;AACnH,OAAO,MAAM,MAAM,WAAW,CAAA;AAC9B,OAAO,IAAI,MAAM,SAAS,CAAA;AAC1B,OAAO,YAAY,MAAM,gBAAgB,CAAA;AAEzC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAE9C,OAAO,EAAE,cAAc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