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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (541) hide show
  1. package/build/main/assets/icons/accepted-invite-status.svg +4 -0
  2. package/build/main/assets/icons/arrow-back.svg +3 -0
  3. package/build/main/assets/icons/arrow-down.svg +3 -0
  4. package/build/main/assets/icons/arrow-up.svg +3 -0
  5. package/build/main/assets/icons/attachment-loader.svg +3 -0
  6. package/build/main/assets/icons/avatar-loader.svg +3 -0
  7. package/build/main/assets/icons/button-loader.svg +3 -0
  8. package/build/main/assets/icons/calendar-arrow-next.svg +3 -0
  9. package/build/main/assets/icons/calendar-arrow-prev.svg +3 -0
  10. package/build/main/assets/icons/check-mark-square.svg +4 -0
  11. package/build/main/assets/icons/check-mark.svg +4 -0
  12. package/build/main/assets/icons/chevron.svg +3 -0
  13. package/build/main/assets/icons/chip-info.svg +5 -0
  14. package/build/main/assets/icons/clear.svg +3 -0
  15. package/build/main/assets/icons/close-modal.svg +3 -0
  16. package/build/main/assets/icons/close-stories.svg +4 -0
  17. package/build/main/assets/icons/close.svg +3 -0
  18. package/build/main/assets/icons/contact-info.svg +5 -0
  19. package/build/main/assets/icons/copy.svg +3 -0
  20. package/build/main/assets/icons/corporate-user.svg +3 -0
  21. package/build/main/assets/icons/crown.svg +5 -0
  22. package/build/main/assets/icons/declined-invite-status.svg +4 -0
  23. package/build/main/assets/icons/delete-chip.svg +3 -0
  24. package/build/main/assets/icons/department.svg +3 -0
  25. package/build/main/assets/icons/distribution.svg +12 -0
  26. package/build/main/assets/icons/doc-small.svg +11 -0
  27. package/build/main/assets/icons/doc.svg +11 -0
  28. package/build/main/assets/icons/download.svg +3 -0
  29. package/build/main/assets/icons/error.svg +5 -0
  30. package/build/main/assets/icons/external-link.svg +3 -0
  31. package/build/main/assets/icons/eye-off.svg +5 -0
  32. package/build/main/assets/icons/eye-on.svg +4 -0
  33. package/build/main/assets/icons/file-small.svg +11 -0
  34. package/build/main/assets/icons/file.svg +11 -0
  35. package/build/main/assets/icons/global-address-book-user.svg +4 -0
  36. package/build/main/assets/icons/group.svg +3 -0
  37. package/build/main/assets/icons/image-no-preview-small.svg +11 -0
  38. package/build/main/assets/icons/image-no-preview.svg +11 -0
  39. package/build/main/assets/icons/indeterminate-check-mark-square.svg +4 -0
  40. package/build/main/assets/icons/info.svg +5 -0
  41. package/build/main/assets/icons/input-arrow-down.svg +3 -0
  42. package/build/main/assets/icons/input-arrow-up.svg +3 -0
  43. package/build/main/assets/icons/job-position.svg +3 -0
  44. package/build/main/assets/icons/loader.svg +3 -0
  45. package/build/main/assets/icons/logout.svg +4 -0
  46. package/build/main/assets/icons/magnifying-glass.svg +3 -0
  47. package/build/main/assets/icons/mail.svg +3 -0
  48. package/build/main/assets/icons/meeting-room.svg +3 -0
  49. package/build/main/assets/icons/more.svg +3 -0
  50. package/build/main/assets/icons/my-contacts-user.svg +3 -0
  51. package/build/main/assets/icons/needs-action-invite-status.svg +4 -0
  52. package/build/main/assets/icons/notification-close.svg +3 -0
  53. package/build/main/assets/icons/notification-error.svg +5 -0
  54. package/build/main/assets/icons/notification-failure-filled.svg +3 -0
  55. package/build/main/assets/icons/notification-failure.svg +3 -0
  56. package/build/main/assets/icons/notification-info-filled.svg +5 -0
  57. package/build/main/assets/icons/notification-info.svg +5 -0
  58. package/build/main/assets/icons/notification-success-filled.svg +4 -0
  59. package/build/main/assets/icons/notification-success.svg +4 -0
  60. package/build/main/assets/icons/office.svg +3 -0
  61. package/build/main/assets/icons/order.svg +6 -0
  62. package/build/main/assets/icons/pdf-small.svg +11 -0
  63. package/build/main/assets/icons/pdf.svg +11 -0
  64. package/build/main/assets/icons/play-small.svg +3 -0
  65. package/build/main/assets/icons/play.svg +3 -0
  66. package/build/main/assets/icons/plus.svg +4 -0
  67. package/build/main/assets/icons/ppt-small.svg +11 -0
  68. package/build/main/assets/icons/ppt.svg +11 -0
  69. package/build/main/assets/icons/private.svg +5 -0
  70. package/build/main/assets/icons/refresh.svg +3 -0
  71. package/build/main/assets/icons/remove.svg +3 -0
  72. package/build/main/assets/icons/search.svg +3 -0
  73. package/build/main/assets/icons/select-arrow-down.svg +3 -0
  74. package/build/main/assets/icons/select-arrow-up.svg +3 -0
  75. package/build/main/assets/icons/server.svg +3 -0
  76. package/build/main/assets/icons/story-loader.svg +3 -0
  77. package/build/main/assets/icons/tick.svg +10 -0
  78. package/build/main/assets/icons/trash.svg +3 -0
  79. package/build/main/assets/icons/txt-small.svg +11 -0
  80. package/build/main/assets/icons/txt.svg +11 -0
  81. package/build/main/assets/icons/video-no-preview-small.svg +11 -0
  82. package/build/main/assets/icons/video-no-preview.svg +11 -0
  83. package/build/main/assets/icons/warning-avatar.svg +4 -0
  84. package/build/main/assets/icons/xls-small.svg +11 -0
  85. package/build/main/assets/icons/xls.svg +11 -0
  86. package/build/main/assets/storybook/index.d.ts +27 -0
  87. package/build/main/assets/storybook/index.js +28 -0
  88. package/build/main/assets/storybook/index.js.map +1 -0
  89. package/build/main/constants/constants.d.ts +245 -0
  90. package/build/main/constants/constants.js +303 -0
  91. package/build/main/constants/constants.js.map +1 -0
  92. package/build/main/constants/index.d.ts +2 -0
  93. package/build/main/constants/index.js +3 -0
  94. package/build/main/constants/index.js.map +1 -0
  95. package/build/main/constants/types.d.ts +69 -0
  96. package/build/main/constants/types.js +2 -0
  97. package/build/main/constants/types.js.map +1 -0
  98. package/build/main/helpers/fontScale.d.ts +3 -0
  99. package/build/main/helpers/fontScale.js +17 -0
  100. package/build/main/helpers/fontScale.js.map +1 -0
  101. package/build/main/helpers/index.d.ts +34 -0
  102. package/build/main/helpers/index.js +205 -0
  103. package/build/main/helpers/index.js.map +1 -0
  104. package/build/main/hooks/useCharHintDisplay.d.ts +10 -0
  105. package/build/main/hooks/useCharHintDisplay.js +57 -0
  106. package/build/main/hooks/useCharHintDisplay.js.map +1 -0
  107. package/build/main/hooks/useFontScale.d.ts +1 -0
  108. package/build/main/hooks/useFontScale.js +19 -0
  109. package/build/main/hooks/useFontScale.js.map +1 -0
  110. package/build/main/hooks/useMobileLongTap.d.ts +16 -0
  111. package/build/main/hooks/useMobileLongTap.js +65 -0
  112. package/build/main/hooks/useMobileLongTap.js.map +1 -0
  113. package/build/main/hooks/useModal.d.ts +30 -0
  114. package/build/main/hooks/useModal.js +275 -0
  115. package/build/main/hooks/useModal.js.map +1 -0
  116. package/build/main/index.d.ts +40 -0
  117. package/build/main/index.js +41 -0
  118. package/build/main/index.js.map +1 -0
  119. package/build/main/styles/index.d.ts +1 -0
  120. package/build/main/styles/index.js +2 -0
  121. package/build/main/styles/index.js.map +1 -0
  122. package/build/main/styles/main.js +0 -0
  123. package/build/main/styles/styles.scss +14 -0
  124. package/build/main//321/201omponents/ActionModal/ActionModal.d.ts +4 -0
  125. package/build/main//321/201omponents/ActionModal/ActionModal.js +53 -0
  126. package/build/main//321/201omponents/ActionModal/ActionModal.js.map +1 -0
  127. package/build/main//321/201omponents/ActionModal/index.d.ts +1 -0
  128. package/build/main//321/201omponents/ActionModal/index.js +2 -0
  129. package/build/main//321/201omponents/ActionModal/index.js.map +1 -0
  130. package/build/main//321/201omponents/ActionModal/types.d.ts +23 -0
  131. package/build/main//321/201omponents/ActionModal/types.js +2 -0
  132. package/build/main//321/201omponents/ActionModal/types.js.map +1 -0
  133. package/build/main//321/201omponents/AttachedFile/AttachedFile.d.ts +8 -0
  134. package/build/main//321/201omponents/AttachedFile/AttachedFile.js +201 -0
  135. package/build/main//321/201omponents/AttachedFile/AttachedFile.js.map +1 -0
  136. package/build/main//321/201omponents/AttachedFile/index.d.ts +1 -0
  137. package/build/main//321/201omponents/AttachedFile/index.js +2 -0
  138. package/build/main//321/201omponents/AttachedFile/index.js.map +1 -0
  139. package/build/main//321/201omponents/AttachedFile/types.d.ts +23 -0
  140. package/build/main//321/201omponents/AttachedFile/types.js +2 -0
  141. package/build/main//321/201omponents/AttachedFile/types.js.map +1 -0
  142. package/build/main//321/201omponents/Avatar/Avatar.d.ts +5 -0
  143. package/build/main//321/201omponents/Avatar/Avatar.js +257 -0
  144. package/build/main//321/201omponents/Avatar/Avatar.js.map +1 -0
  145. package/build/main//321/201omponents/Avatar/index.d.ts +1 -0
  146. package/build/main//321/201omponents/Avatar/index.js +2 -0
  147. package/build/main//321/201omponents/Avatar/index.js.map +1 -0
  148. package/build/main//321/201omponents/Avatar/types.d.ts +64 -0
  149. package/build/main//321/201omponents/Avatar/types.js +32 -0
  150. package/build/main//321/201omponents/Avatar/types.js.map +1 -0
  151. package/build/main//321/201omponents/Button/Button.d.ts +4 -0
  152. package/build/main//321/201omponents/Button/Button.js +68 -0
  153. package/build/main//321/201omponents/Button/Button.js.map +1 -0
  154. package/build/main//321/201omponents/Button/index.d.ts +1 -0
  155. package/build/main//321/201omponents/Button/index.js +2 -0
  156. package/build/main//321/201omponents/Button/index.js.map +1 -0
  157. package/build/main//321/201omponents/Button/types.d.ts +31 -0
  158. package/build/main//321/201omponents/Button/types.js +15 -0
  159. package/build/main//321/201omponents/Button/types.js.map +1 -0
  160. package/build/main//321/201omponents/CachedImage/CachedImage.d.ts +4 -0
  161. package/build/main//321/201omponents/CachedImage/CachedImage.js +59 -0
  162. package/build/main//321/201omponents/CachedImage/CachedImage.js.map +1 -0
  163. package/build/main//321/201omponents/CachedImage/helpers.d.ts +3 -0
  164. package/build/main//321/201omponents/CachedImage/helpers.js +40 -0
  165. package/build/main//321/201omponents/CachedImage/helpers.js.map +1 -0
  166. package/build/main//321/201omponents/CachedImage/index.d.ts +1 -0
  167. package/build/main//321/201omponents/CachedImage/index.js +2 -0
  168. package/build/main//321/201omponents/CachedImage/index.js.map +1 -0
  169. package/build/main//321/201omponents/CachedImage/types.d.ts +10 -0
  170. package/build/main//321/201omponents/CachedImage/types.js +2 -0
  171. package/build/main//321/201omponents/CachedImage/types.js.map +1 -0
  172. package/build/main//321/201omponents/Calendar/Calendar.d.ts +16 -0
  173. package/build/main//321/201omponents/Calendar/Calendar.js +294 -0
  174. package/build/main//321/201omponents/Calendar/Calendar.js.map +1 -0
  175. package/build/main//321/201omponents/Calendar/index.d.ts +1 -0
  176. package/build/main//321/201omponents/Calendar/index.js +2 -0
  177. package/build/main//321/201omponents/Calendar/index.js.map +1 -0
  178. package/build/main//321/201omponents/Calendar/types.d.ts +28 -0
  179. package/build/main//321/201omponents/Calendar/types.js +2 -0
  180. package/build/main//321/201omponents/Calendar/types.js.map +1 -0
  181. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.d.ts +4 -0
  182. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js +49 -0
  183. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js.map +1 -0
  184. package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.d.ts +4 -0
  185. package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.js +71 -0
  186. package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.js.map +1 -0
  187. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.d.ts +4 -0
  188. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js +45 -0
  189. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js.map +1 -0
  190. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.d.ts +4 -0
  191. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js +66 -0
  192. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js.map +1 -0
  193. package/build/main//321/201omponents/Charts/colors.d.ts +3 -0
  194. package/build/main//321/201omponents/Charts/colors.js +4 -0
  195. package/build/main//321/201omponents/Charts/colors.js.map +1 -0
  196. package/build/main//321/201omponents/Charts/constants.d.ts +42 -0
  197. package/build/main//321/201omponents/Charts/constants.js +43 -0
  198. package/build/main//321/201omponents/Charts/constants.js.map +1 -0
  199. package/build/main//321/201omponents/Charts/helpers.d.ts +17 -0
  200. package/build/main//321/201omponents/Charts/helpers.js +74 -0
  201. package/build/main//321/201omponents/Charts/helpers.js.map +1 -0
  202. package/build/main//321/201omponents/Charts/index.d.ts +3 -0
  203. package/build/main//321/201omponents/Charts/index.js +4 -0
  204. package/build/main//321/201omponents/Charts/index.js.map +1 -0
  205. package/build/main//321/201omponents/Charts/types.d.ts +89 -0
  206. package/build/main//321/201omponents/Charts/types.js +2 -0
  207. package/build/main//321/201omponents/Charts/types.js.map +1 -0
  208. package/build/main//321/201omponents/Charts/useEvents.d.ts +5 -0
  209. package/build/main//321/201omponents/Charts/useEvents.js +45 -0
  210. package/build/main//321/201omponents/Charts/useEvents.js.map +1 -0
  211. package/build/main//321/201omponents/Charts/usePieEvents.d.ts +6 -0
  212. package/build/main//321/201omponents/Charts/usePieEvents.js +57 -0
  213. package/build/main//321/201omponents/Charts/usePieEvents.js.map +1 -0
  214. package/build/main//321/201omponents/Checkbox/Checkbox.d.ts +8 -0
  215. package/build/main//321/201omponents/Checkbox/Checkbox.js +48 -0
  216. package/build/main//321/201omponents/Checkbox/Checkbox.js.map +1 -0
  217. package/build/main//321/201omponents/Checkbox/index.d.ts +1 -0
  218. package/build/main//321/201omponents/Checkbox/index.js +2 -0
  219. package/build/main//321/201omponents/Checkbox/index.js.map +1 -0
  220. package/build/main//321/201omponents/Checkbox/types.d.ts +14 -0
  221. package/build/main//321/201omponents/Checkbox/types.js +2 -0
  222. package/build/main//321/201omponents/Checkbox/types.js.map +1 -0
  223. package/build/main//321/201omponents/Chip/Chip.d.ts +5 -0
  224. package/build/main//321/201omponents/Chip/Chip.js +288 -0
  225. package/build/main//321/201omponents/Chip/Chip.js.map +1 -0
  226. package/build/main//321/201omponents/Chip/index.d.ts +1 -0
  227. package/build/main//321/201omponents/Chip/index.js +2 -0
  228. package/build/main//321/201omponents/Chip/index.js.map +1 -0
  229. package/build/main//321/201omponents/Chip/types.d.ts +39 -0
  230. package/build/main//321/201omponents/Chip/types.js +2 -0
  231. package/build/main//321/201omponents/Chip/types.js.map +1 -0
  232. package/build/main//321/201omponents/ChipDndContext/ChipDndContext.d.ts +13 -0
  233. package/build/main//321/201omponents/ChipDndContext/ChipDndContext.js +76 -0
  234. package/build/main//321/201omponents/ChipDndContext/ChipDndContext.js.map +1 -0
  235. package/build/main//321/201omponents/ChipDndContext/index.d.ts +1 -0
  236. package/build/main//321/201omponents/ChipDndContext/index.js +2 -0
  237. package/build/main//321/201omponents/ChipDndContext/index.js.map +1 -0
  238. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.d.ts +4 -0
  239. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js +64 -0
  240. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js.map +1 -0
  241. package/build/main//321/201omponents/ConfirmationModal/index.d.ts +1 -0
  242. package/build/main//321/201omponents/ConfirmationModal/index.js +2 -0
  243. package/build/main//321/201omponents/ConfirmationModal/index.js.map +1 -0
  244. package/build/main//321/201omponents/ConfirmationModal/types.d.ts +31 -0
  245. package/build/main//321/201omponents/ConfirmationModal/types.js +2 -0
  246. package/build/main//321/201omponents/ConfirmationModal/types.js.map +1 -0
  247. package/build/main//321/201omponents/ContextMenu/ContextMenu.d.ts +4 -0
  248. package/build/main//321/201omponents/ContextMenu/ContextMenu.js +122 -0
  249. package/build/main//321/201omponents/ContextMenu/ContextMenu.js.map +1 -0
  250. package/build/main//321/201omponents/ContextMenu/index.d.ts +1 -0
  251. package/build/main//321/201omponents/ContextMenu/index.js +2 -0
  252. package/build/main//321/201omponents/ContextMenu/index.js.map +1 -0
  253. package/build/main//321/201omponents/ContextMenu/types.d.ts +41 -0
  254. package/build/main//321/201omponents/ContextMenu/types.js +2 -0
  255. package/build/main//321/201omponents/ContextMenu/types.js.map +1 -0
  256. package/build/main//321/201omponents/ContextMenuItem/ContextMenuItem.d.ts +4 -0
  257. package/build/main//321/201omponents/ContextMenuItem/ContextMenuItem.js +49 -0
  258. package/build/main//321/201omponents/ContextMenuItem/ContextMenuItem.js.map +1 -0
  259. package/build/main//321/201omponents/ContextMenuItem/index.d.ts +1 -0
  260. package/build/main//321/201omponents/ContextMenuItem/index.js +2 -0
  261. package/build/main//321/201omponents/ContextMenuItem/index.js.map +1 -0
  262. package/build/main//321/201omponents/ContextMenuItem/types.d.ts +28 -0
  263. package/build/main//321/201omponents/ContextMenuItem/types.js +6 -0
  264. package/build/main//321/201omponents/ContextMenuItem/types.js.map +1 -0
  265. package/build/main//321/201omponents/CustomSelect/CustomSelect.d.ts +12 -0
  266. package/build/main//321/201omponents/CustomSelect/CustomSelect.js +281 -0
  267. package/build/main//321/201omponents/CustomSelect/CustomSelect.js.map +1 -0
  268. package/build/main//321/201omponents/CustomSelect/index.d.ts +1 -0
  269. package/build/main//321/201omponents/CustomSelect/index.js +2 -0
  270. package/build/main//321/201omponents/CustomSelect/index.js.map +1 -0
  271. package/build/main//321/201omponents/CustomSelect/selectStyles.d.ts +16 -0
  272. package/build/main//321/201omponents/CustomSelect/selectStyles.js +78 -0
  273. package/build/main//321/201omponents/CustomSelect/selectStyles.js.map +1 -0
  274. package/build/main//321/201omponents/CustomSelect/types.d.ts +86 -0
  275. package/build/main//321/201omponents/CustomSelect/types.js +2 -0
  276. package/build/main//321/201omponents/CustomSelect/types.js.map +1 -0
  277. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.d.ts +4 -0
  278. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js +67 -0
  279. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js.map +1 -0
  280. package/build/main//321/201omponents/CustomSelectProfiles/index.d.ts +1 -0
  281. package/build/main//321/201omponents/CustomSelectProfiles/index.js +2 -0
  282. package/build/main//321/201omponents/CustomSelectProfiles/index.js.map +1 -0
  283. package/build/main//321/201omponents/CustomSelectProfiles/selectStyles.d.ts +12 -0
  284. package/build/main//321/201omponents/CustomSelectProfiles/selectStyles.js +42 -0
  285. package/build/main//321/201omponents/CustomSelectProfiles/selectStyles.js.map +1 -0
  286. package/build/main//321/201omponents/CustomSelectProfiles/types.d.ts +13 -0
  287. package/build/main//321/201omponents/CustomSelectProfiles/types.js +2 -0
  288. package/build/main//321/201omponents/CustomSelectProfiles/types.js.map +1 -0
  289. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.d.ts +4 -0
  290. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js +57 -0
  291. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js.map +1 -0
  292. package/build/main//321/201omponents/DragAndDrop/index.d.ts +1 -0
  293. package/build/main//321/201omponents/DragAndDrop/index.js +2 -0
  294. package/build/main//321/201omponents/DragAndDrop/index.js.map +1 -0
  295. package/build/main//321/201omponents/DragAndDrop/types.d.ts +24 -0
  296. package/build/main//321/201omponents/DragAndDrop/types.js +2 -0
  297. package/build/main//321/201omponents/DragAndDrop/types.js.map +1 -0
  298. package/build/main//321/201omponents/DraggablePopup/DraggablePopup.d.ts +4 -0
  299. package/build/main//321/201omponents/DraggablePopup/DraggablePopup.js +228 -0
  300. package/build/main//321/201omponents/DraggablePopup/DraggablePopup.js.map +1 -0
  301. package/build/main//321/201omponents/DraggablePopup/index.d.ts +1 -0
  302. package/build/main//321/201omponents/DraggablePopup/index.js +2 -0
  303. package/build/main//321/201omponents/DraggablePopup/index.js.map +1 -0
  304. package/build/main//321/201omponents/DraggablePopup/types.d.ts +90 -0
  305. package/build/main//321/201omponents/DraggablePopup/types.js +2 -0
  306. package/build/main//321/201omponents/DraggablePopup/types.js.map +1 -0
  307. package/build/main//321/201omponents/Error/Error.d.ts +4 -0
  308. package/build/main//321/201omponents/Error/Error.js +23 -0
  309. package/build/main//321/201omponents/Error/Error.js.map +1 -0
  310. package/build/main//321/201omponents/Error/index.d.ts +1 -0
  311. package/build/main//321/201omponents/Error/index.js +2 -0
  312. package/build/main//321/201omponents/Error/index.js.map +1 -0
  313. package/build/main//321/201omponents/Error/types.d.ts +10 -0
  314. package/build/main//321/201omponents/Error/types.js +2 -0
  315. package/build/main//321/201omponents/Error/types.js.map +1 -0
  316. package/build/main//321/201omponents/Flex/Flex.d.ts +2 -0
  317. package/build/main//321/201omponents/Flex/Flex.js +35 -0
  318. package/build/main//321/201omponents/Flex/Flex.js.map +1 -0
  319. package/build/main//321/201omponents/Flex/HFlex/HFlex.d.ts +5 -0
  320. package/build/main//321/201omponents/Flex/HFlex/HFlex.js +16 -0
  321. package/build/main//321/201omponents/Flex/HFlex/HFlex.js.map +1 -0
  322. package/build/main//321/201omponents/Flex/HFlex/index.d.ts +1 -0
  323. package/build/main//321/201omponents/Flex/HFlex/index.js +2 -0
  324. package/build/main//321/201omponents/Flex/HFlex/index.js.map +1 -0
  325. package/build/main//321/201omponents/Flex/VFlex/VFlex.d.ts +5 -0
  326. package/build/main//321/201omponents/Flex/VFlex/VFlex.js +16 -0
  327. package/build/main//321/201omponents/Flex/VFlex/VFlex.js.map +1 -0
  328. package/build/main//321/201omponents/Flex/VFlex/index.d.ts +1 -0
  329. package/build/main//321/201omponents/Flex/VFlex/index.js +2 -0
  330. package/build/main//321/201omponents/Flex/VFlex/index.js.map +1 -0
  331. package/build/main//321/201omponents/Flex/index.d.ts +3 -0
  332. package/build/main//321/201omponents/Flex/index.js +4 -0
  333. package/build/main//321/201omponents/Flex/index.js.map +1 -0
  334. package/build/main//321/201omponents/Flex/types.d.ts +21 -0
  335. package/build/main//321/201omponents/Flex/types.js +2 -0
  336. package/build/main//321/201omponents/Flex/types.js.map +1 -0
  337. package/build/main//321/201omponents/Header/Header.d.ts +5 -0
  338. package/build/main//321/201omponents/Header/Header.js +125 -0
  339. package/build/main//321/201omponents/Header/Header.js.map +1 -0
  340. package/build/main//321/201omponents/Header/index.d.ts +1 -0
  341. package/build/main//321/201omponents/Header/index.js +2 -0
  342. package/build/main//321/201omponents/Header/index.js.map +1 -0
  343. package/build/main//321/201omponents/Header/types.d.ts +47 -0
  344. package/build/main//321/201omponents/Header/types.js +2 -0
  345. package/build/main//321/201omponents/Header/types.js.map +1 -0
  346. package/build/main//321/201omponents/Input/Input.d.ts +4 -0
  347. package/build/main//321/201omponents/Input/Input.js +256 -0
  348. package/build/main//321/201omponents/Input/Input.js.map +1 -0
  349. package/build/main//321/201omponents/Input/index.d.ts +1 -0
  350. package/build/main//321/201omponents/Input/index.js +2 -0
  351. package/build/main//321/201omponents/Input/index.js.map +1 -0
  352. package/build/main//321/201omponents/Input/types.d.ts +37 -0
  353. package/build/main//321/201omponents/Input/types.js +2 -0
  354. package/build/main//321/201omponents/Input/types.js.map +1 -0
  355. package/build/main//321/201omponents/ListItem/ListItem.d.ts +23 -0
  356. package/build/main//321/201omponents/ListItem/ListItem.js +214 -0
  357. package/build/main//321/201omponents/ListItem/ListItem.js.map +1 -0
  358. package/build/main//321/201omponents/ListItem/index.d.ts +1 -0
  359. package/build/main//321/201omponents/ListItem/index.js +2 -0
  360. package/build/main//321/201omponents/ListItem/index.js.map +1 -0
  361. package/build/main//321/201omponents/ListItem/types.d.ts +47 -0
  362. package/build/main//321/201omponents/ListItem/types.js +2 -0
  363. package/build/main//321/201omponents/ListItem/types.js.map +1 -0
  364. package/build/main//321/201omponents/Loader/Loader.d.ts +4 -0
  365. package/build/main//321/201omponents/Loader/Loader.js +44 -0
  366. package/build/main//321/201omponents/Loader/Loader.js.map +1 -0
  367. package/build/main//321/201omponents/Loader/index.d.ts +1 -0
  368. package/build/main//321/201omponents/Loader/index.js +2 -0
  369. package/build/main//321/201omponents/Loader/index.js.map +1 -0
  370. package/build/main//321/201omponents/Loader/types.d.ts +18 -0
  371. package/build/main//321/201omponents/Loader/types.js +2 -0
  372. package/build/main//321/201omponents/Loader/types.js.map +1 -0
  373. package/build/main//321/201omponents/Modal/Modal.d.ts +5 -0
  374. package/build/main//321/201omponents/Modal/Modal.js +397 -0
  375. package/build/main//321/201omponents/Modal/Modal.js.map +1 -0
  376. package/build/main//321/201omponents/Modal/index.d.ts +1 -0
  377. package/build/main//321/201omponents/Modal/index.js +2 -0
  378. package/build/main//321/201omponents/Modal/index.js.map +1 -0
  379. package/build/main//321/201omponents/Modal/types.d.ts +77 -0
  380. package/build/main//321/201omponents/Modal/types.js +2 -0
  381. package/build/main//321/201omponents/Modal/types.js.map +1 -0
  382. package/build/main//321/201omponents/Notification/Notification.d.ts +4 -0
  383. package/build/main//321/201omponents/Notification/Notification.js +208 -0
  384. package/build/main//321/201omponents/Notification/Notification.js.map +1 -0
  385. package/build/main//321/201omponents/Notification/constants.d.ts +34 -0
  386. package/build/main//321/201omponents/Notification/constants.js +59 -0
  387. package/build/main//321/201omponents/Notification/constants.js.map +1 -0
  388. package/build/main//321/201omponents/Notification/index.d.ts +1 -0
  389. package/build/main//321/201omponents/Notification/index.js +2 -0
  390. package/build/main//321/201omponents/Notification/index.js.map +1 -0
  391. package/build/main//321/201omponents/Notification/types.d.ts +64 -0
  392. package/build/main//321/201omponents/Notification/types.js +2 -0
  393. package/build/main//321/201omponents/Notification/types.js.map +1 -0
  394. package/build/main//321/201omponents/Profile/Profile.d.ts +4 -0
  395. package/build/main//321/201omponents/Profile/Profile.js +42 -0
  396. package/build/main//321/201omponents/Profile/Profile.js.map +1 -0
  397. package/build/main//321/201omponents/Profile/index.d.ts +1 -0
  398. package/build/main//321/201omponents/Profile/index.js +2 -0
  399. package/build/main//321/201omponents/Profile/index.js.map +1 -0
  400. package/build/main//321/201omponents/Profile/types.d.ts +14 -0
  401. package/build/main//321/201omponents/Profile/types.js +2 -0
  402. package/build/main//321/201omponents/Profile/types.js.map +1 -0
  403. package/build/main//321/201omponents/ProgressBar/ProgressBar.d.ts +4 -0
  404. package/build/main//321/201omponents/ProgressBar/ProgressBar.js +66 -0
  405. package/build/main//321/201omponents/ProgressBar/ProgressBar.js.map +1 -0
  406. package/build/main//321/201omponents/ProgressBar/index.d.ts +1 -0
  407. package/build/main//321/201omponents/ProgressBar/index.js +2 -0
  408. package/build/main//321/201omponents/ProgressBar/index.js.map +1 -0
  409. package/build/main//321/201omponents/ProgressBar/types.d.ts +7 -0
  410. package/build/main//321/201omponents/ProgressBar/types.js +2 -0
  411. package/build/main//321/201omponents/ProgressBar/types.js.map +1 -0
  412. package/build/main//321/201omponents/RadioButton/RadioButton.d.ts +4 -0
  413. package/build/main//321/201omponents/RadioButton/RadioButton.js +33 -0
  414. package/build/main//321/201omponents/RadioButton/RadioButton.js.map +1 -0
  415. package/build/main//321/201omponents/RadioButton/index.d.ts +1 -0
  416. package/build/main//321/201omponents/RadioButton/index.js +2 -0
  417. package/build/main//321/201omponents/RadioButton/index.js.map +1 -0
  418. package/build/main//321/201omponents/RadioButton/types.d.ts +12 -0
  419. package/build/main//321/201omponents/RadioButton/types.js +2 -0
  420. package/build/main//321/201omponents/RadioButton/types.js.map +1 -0
  421. package/build/main//321/201omponents/ScrollBar/ScrollBar.d.ts +5 -0
  422. package/build/main//321/201omponents/ScrollBar/ScrollBar.js +140 -0
  423. package/build/main//321/201omponents/ScrollBar/ScrollBar.js.map +1 -0
  424. package/build/main//321/201omponents/ScrollBar/index.d.ts +1 -0
  425. package/build/main//321/201omponents/ScrollBar/index.js +2 -0
  426. package/build/main//321/201omponents/ScrollBar/index.js.map +1 -0
  427. package/build/main//321/201omponents/ScrollBar/types.d.ts +24 -0
  428. package/build/main//321/201omponents/ScrollBar/types.js +2 -0
  429. package/build/main//321/201omponents/ScrollBar/types.js.map +1 -0
  430. package/build/main//321/201omponents/Skeleton/Skeleton.d.ts +4 -0
  431. package/build/main//321/201omponents/Skeleton/Skeleton.js +59 -0
  432. package/build/main//321/201omponents/Skeleton/Skeleton.js.map +1 -0
  433. package/build/main//321/201omponents/Skeleton/index.d.ts +1 -0
  434. package/build/main//321/201omponents/Skeleton/index.js +2 -0
  435. package/build/main//321/201omponents/Skeleton/index.js.map +1 -0
  436. package/build/main//321/201omponents/Skeleton/types.d.ts +17 -0
  437. package/build/main//321/201omponents/Skeleton/types.js +2 -0
  438. package/build/main//321/201omponents/Skeleton/types.js.map +1 -0
  439. package/build/main//321/201omponents/Stories/Stories.d.ts +4 -0
  440. package/build/main//321/201omponents/Stories/Stories.js +406 -0
  441. package/build/main//321/201omponents/Stories/Stories.js.map +1 -0
  442. package/build/main//321/201omponents/Stories/index.d.ts +1 -0
  443. package/build/main//321/201omponents/Stories/index.js +2 -0
  444. package/build/main//321/201omponents/Stories/index.js.map +1 -0
  445. package/build/main//321/201omponents/Stories/types.d.ts +71 -0
  446. package/build/main//321/201omponents/Stories/types.js +16 -0
  447. package/build/main//321/201omponents/Stories/types.js.map +1 -0
  448. package/build/main//321/201omponents/Switcher/Switcher.d.ts +4 -0
  449. package/build/main//321/201omponents/Switcher/Switcher.js +34 -0
  450. package/build/main//321/201omponents/Switcher/Switcher.js.map +1 -0
  451. package/build/main//321/201omponents/Switcher/index.d.ts +1 -0
  452. package/build/main//321/201omponents/Switcher/index.js +2 -0
  453. package/build/main//321/201omponents/Switcher/index.js.map +1 -0
  454. package/build/main//321/201omponents/Switcher/types.d.ts +8 -0
  455. package/build/main//321/201omponents/Switcher/types.js +2 -0
  456. package/build/main//321/201omponents/Switcher/types.js.map +1 -0
  457. package/build/main//321/201omponents/SyncLoader/SyncLoader.d.ts +5 -0
  458. package/build/main//321/201omponents/SyncLoader/SyncLoader.js +65 -0
  459. package/build/main//321/201omponents/SyncLoader/SyncLoader.js.map +1 -0
  460. package/build/main//321/201omponents/SyncLoader/index.d.ts +1 -0
  461. package/build/main//321/201omponents/SyncLoader/index.js +2 -0
  462. package/build/main//321/201omponents/SyncLoader/index.js.map +1 -0
  463. package/build/main//321/201omponents/SyncLoader/types.d.ts +8 -0
  464. package/build/main//321/201omponents/SyncLoader/types.js +2 -0
  465. package/build/main//321/201omponents/SyncLoader/types.js.map +1 -0
  466. package/build/main//321/201omponents/Textarea/Textarea.d.ts +4 -0
  467. package/build/main//321/201omponents/Textarea/Textarea.js +59 -0
  468. package/build/main//321/201omponents/Textarea/Textarea.js.map +1 -0
  469. package/build/main//321/201omponents/Textarea/index.d.ts +1 -0
  470. package/build/main//321/201omponents/Textarea/index.js +2 -0
  471. package/build/main//321/201omponents/Textarea/index.js.map +1 -0
  472. package/build/main//321/201omponents/Textarea/types.d.ts +13 -0
  473. package/build/main//321/201omponents/Textarea/types.js +2 -0
  474. package/build/main//321/201omponents/Textarea/types.js.map +1 -0
  475. package/build/main//321/201omponents/Toggle/Toggle.d.ts +4 -0
  476. package/build/main//321/201omponents/Toggle/Toggle.js +35 -0
  477. package/build/main//321/201omponents/Toggle/Toggle.js.map +1 -0
  478. package/build/main//321/201omponents/Toggle/index.d.ts +1 -0
  479. package/build/main//321/201omponents/Toggle/index.js +2 -0
  480. package/build/main//321/201omponents/Toggle/index.js.map +1 -0
  481. package/build/main//321/201omponents/Toggle/types.d.ts +12 -0
  482. package/build/main//321/201omponents/Toggle/types.js +2 -0
  483. package/build/main//321/201omponents/Toggle/types.js.map +1 -0
  484. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.d.ts +4 -0
  485. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js +40 -0
  486. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js.map +1 -0
  487. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.d.ts +4 -0
  488. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js +98 -0
  489. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js.map +1 -0
  490. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.d.ts +5 -0
  491. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js +24 -0
  492. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js.map +1 -0
  493. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.d.ts +4 -0
  494. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js +104 -0
  495. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js.map +1 -0
  496. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.d.ts +4 -0
  497. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js +133 -0
  498. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js.map +1 -0
  499. package/build/main//321/201omponents/UserDropdown/Option/Option.d.ts +4 -0
  500. package/build/main//321/201omponents/UserDropdown/Option/Option.js +85 -0
  501. package/build/main//321/201omponents/UserDropdown/Option/Option.js.map +1 -0
  502. package/build/main//321/201omponents/UserDropdown/SearchInCatalogButton/SearchInCatalogButton.d.ts +4 -0
  503. package/build/main//321/201omponents/UserDropdown/SearchInCatalogButton/SearchInCatalogButton.js +41 -0
  504. package/build/main//321/201omponents/UserDropdown/SearchInCatalogButton/SearchInCatalogButton.js.map +1 -0
  505. package/build/main//321/201omponents/UserDropdown/UserDropdown.d.ts +5 -0
  506. package/build/main//321/201omponents/UserDropdown/UserDropdown.js +527 -0
  507. package/build/main//321/201omponents/UserDropdown/UserDropdown.js.map +1 -0
  508. package/build/main//321/201omponents/UserDropdown/components/Delimiter.d.ts +8 -0
  509. package/build/main//321/201omponents/UserDropdown/components/Delimiter.js +10 -0
  510. package/build/main//321/201omponents/UserDropdown/components/Delimiter.js.map +1 -0
  511. package/build/main//321/201omponents/UserDropdown/components/Hint.d.ts +6 -0
  512. package/build/main//321/201omponents/UserDropdown/components/Hint.js +21 -0
  513. package/build/main//321/201omponents/UserDropdown/components/Hint.js.map +1 -0
  514. package/build/main//321/201omponents/UserDropdown/components/Input.d.ts +2 -0
  515. package/build/main//321/201omponents/UserDropdown/components/Input.js +24 -0
  516. package/build/main//321/201omponents/UserDropdown/components/Input.js.map +1 -0
  517. package/build/main//321/201omponents/UserDropdown/components/Mask.d.ts +8 -0
  518. package/build/main//321/201omponents/UserDropdown/components/Mask.js +19 -0
  519. package/build/main//321/201omponents/UserDropdown/components/Mask.js.map +1 -0
  520. package/build/main//321/201omponents/UserDropdown/components/Title.d.ts +5 -0
  521. package/build/main//321/201omponents/UserDropdown/components/Title.js +18 -0
  522. package/build/main//321/201omponents/UserDropdown/components/Title.js.map +1 -0
  523. package/build/main//321/201omponents/UserDropdown/constants.d.ts +65 -0
  524. package/build/main//321/201omponents/UserDropdown/constants.js +83 -0
  525. package/build/main//321/201omponents/UserDropdown/constants.js.map +1 -0
  526. package/build/main//321/201omponents/UserDropdown/helpers.d.ts +148 -0
  527. package/build/main//321/201omponents/UserDropdown/helpers.js +313 -0
  528. package/build/main//321/201omponents/UserDropdown/helpers.js.map +1 -0
  529. package/build/main//321/201omponents/UserDropdown/index.d.ts +1 -0
  530. package/build/main//321/201omponents/UserDropdown/index.js +2 -0
  531. package/build/main//321/201omponents/UserDropdown/index.js.map +1 -0
  532. package/build/main//321/201omponents/UserDropdown/selectStyles.d.ts +15 -0
  533. package/build/main//321/201omponents/UserDropdown/selectStyles.js +99 -0
  534. package/build/main//321/201omponents/UserDropdown/selectStyles.js.map +1 -0
  535. package/build/main//321/201omponents/UserDropdown/types.d.ts +356 -0
  536. package/build/main//321/201omponents/UserDropdown/types.js +2 -0
  537. package/build/main//321/201omponents/UserDropdown/types.js.map +1 -0
  538. package/build/main//321/201omponents/types.d.ts +2 -0
  539. package/build/main//321/201omponents/types.js +2 -0
  540. package/build/main//321/201omponents/types.js.map +1 -0
  541. package/package.json +13 -8
@@ -0,0 +1,256 @@
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
+ /* eslint-disable max-lines */
25
+ import { useEffect, useRef, useState } from 'react';
26
+ import classNames from 'classnames';
27
+ import { isEmpty, isNil } from 'lodash';
28
+ import { useCharHintDisplay } from '../../hooks/useCharHintDisplay';
29
+ import { generateColor, generateFontFamilyStyle } from '../../helpers';
30
+ import { ADDITIONAL_INPUT_PR, ADDITIONAL_MAX_CHARACTERS, AFFIX_INPUT_PH, BUTTON, INPUT_CHAR_HINT as CHAR_HINT, DEFAULT_INPUT_PADDING, EMPTY_STRING, ENTER_KEY, EVENT_LISTENER_TYPES, INPUT_FIELD_TYPE, INPUT_TYPE_NUMBER, INPUT_TYPE_PASSWORD, INPUT_TYPE_TEXT, LANGUAGES, PLATFORM, SPACE, } from '../../constants';
31
+ import { ReactComponent as ClearIcon } from '../../assets/icons/clear.svg';
32
+ import { ReactComponent as EyeOffIcon } from '../../assets/icons/eye-off.svg';
33
+ import { ReactComponent as EyeOnIcon } from '../../assets/icons/eye-on.svg';
34
+ import { ReactComponent as InputArrowDownIcon } from '../../assets/icons/input-arrow-down.svg';
35
+ import { ReactComponent as InputArrowUpIcon } from '../../assets/icons/input-arrow-up.svg';
36
+ import { ReactComponent as MagnifyingGlassIcon } from '../../assets/icons/magnifying-glass.svg';
37
+ import '../../styles/styles.scss';
38
+ var CHAR_HINT_GAP = 4;
39
+ var CHAR_HINT_TIMEOUT = 3000;
40
+ var Input = function (_a) {
41
+ var _b, _c, _d;
42
+ var fontFamily = _a.fontFamily, _e = _a.language, language = _e === void 0 ? LANGUAGES.ru : _e, _f = _a.platform, platform = _f === void 0 ? PLATFORM.web : _f, _g = _a.isPassword, isPassword = _g === void 0 ? false : _g, _h = _a.isClearable, isClearable = _h === void 0 ? false : _h, _j = _a.isSearchable, isSearchable = _j === void 0 ? false : _j, _k = _a.isCharHintEnable, isCharHintEnable = _k === void 0 ? false : _k, _l = _a.isShowNumberArrows, isShowNumberArrows = _l === void 0 ? false : _l, _m = _a.autoFocus, autoFocus = _m === void 0 ? false : _m, _o = _a.disabled, disabled = _o === void 0 ? false : _o, _p = _a.disableErrorBorder, disableErrorBorder = _p === void 0 ? false : _p, placeholder = _a.placeholder, defaultValue = _a.defaultValue, value = _a.value, title = _a.title, mask = _a.mask, suffixIcon = _a.suffixIcon, hint = _a.hint, charHint = _a.charHint, _q = _a.charHintTimeout, charHintTimeout = _q === void 0 ? CHAR_HINT_TIMEOUT : _q, error = _a.error, inlineLabel = _a.inlineLabel, type = _a.type, _r = _a.fieldType, fieldType = _r === void 0 ? INPUT_FIELD_TYPE.text : _r, outerRef = _a.outerRef, additionalInputParams = _a.additionalInputParams, _s = _a.width, width = _s === void 0 ? 100 : _s, iconColor = _a.iconColor, containerClassName = _a.containerClassName, charHintClassName = _a.charHintClassName, className = _a.className, containerStyles = _a.containerStyles, style = _a.style, onChange = _a.onChange, onFocus = _a.onFocus, onBlur = _a.onBlur, onEnterPress = _a.onEnterPress, onClearClick = _a.onClearClick, props = __rest(_a, ["fontFamily", "language", "platform", "isPassword", "isClearable", "isSearchable", "isCharHintEnable", "isShowNumberArrows", "autoFocus", "disabled", "disableErrorBorder", "placeholder", "defaultValue", "value", "title", "mask", "suffixIcon", "hint", "charHint", "charHintTimeout", "error", "inlineLabel", "type", "fieldType", "outerRef", "additionalInputParams", "width", "iconColor", "containerClassName", "charHintClassName", "className", "containerStyles", "style", "onChange", "onFocus", "onBlur", "onEnterPress", "onClearClick"]);
43
+ var localRef = useRef(null);
44
+ var maskRef = useRef(null);
45
+ var inlineLabelRef = useRef(null);
46
+ var additionalInputRef = useRef(null);
47
+ var hiddenSpanRef = useRef(null);
48
+ var charHintRef = useRef(null);
49
+ var inputRef = outerRef || localRef;
50
+ var _t = useState(0), inputLength = _t[0], setInputLength = _t[1];
51
+ var _u = useState(false), isPasswordShown = _u[0], setIsPasswordShown = _u[1];
52
+ var _v = useState(0), additionalWidth = _v[0], setAdditionalWidth = _v[1];
53
+ var _w = useState(0), minAdditionalWidth = _w[0], setMinAdditionalWidth = _w[1];
54
+ var _x = useState(false), isClearableIconVisible = _x[0], setIsClearableIconVisible = _x[1];
55
+ var _y = useState(EMPTY_STRING), placeholderValue = _y[0], setPlaceholderValue = _y[1];
56
+ var _z = useState(autoFocus), isFocused = _z[0], setIsFocused = _z[1];
57
+ var calculateInputPaddingLeft = function () {
58
+ var _a;
59
+ var maskWidth = ((_a = maskRef.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().width) || null;
60
+ return "".concat(maskWidth ? maskWidth + AFFIX_INPUT_PH : DEFAULT_INPUT_PADDING, "px");
61
+ };
62
+ var calculateInputPaddingRight = function () {
63
+ var _a, _b;
64
+ var additionalInputWidth = ((_a = additionalInputRef.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().width) || null;
65
+ var inlineLabelWidth = ((_b = inlineLabelRef.current) === null || _b === void 0 ? void 0 : _b.getBoundingClientRect().width) || null;
66
+ if (additionalInputWidth)
67
+ return "".concat(additionalInputWidth + ADDITIONAL_INPUT_PR, "px");
68
+ return inlineLabelWidth ? "".concat(inlineLabelWidth + DEFAULT_INPUT_PADDING, "px") : "".concat(DEFAULT_INPUT_PADDING, "px");
69
+ };
70
+ var iconStyles = { color: generateColor(iconColor) };
71
+ var placeholderStyles = {
72
+ '--input-placeholder-margin-right': calculateInputPaddingRight(),
73
+ '--input-placeholder-margin-left': calculateInputPaddingLeft(),
74
+ };
75
+ var inputValue = ((_b = inputRef.current) === null || _b === void 0 ? void 0 : _b.value) || '';
76
+ var isClearIconVisible = isClearable && isClearableIconVisible;
77
+ var isInputWithButton = isPassword || isClearable || isSearchable;
78
+ var isInputWithSuffixIcon = !isNil(suffixIcon);
79
+ var isTypeNumber = type === INPUT_TYPE_NUMBER;
80
+ var _0 = ((_d = (_c = inputRef.current) === null || _c === void 0 ? void 0 : _c.getBoundingClientRect()) !== null && _d !== void 0 ? _d : {}).height, inputHeight = _0 === void 0 ? 0 : _0;
81
+ var _1 = additionalInputParams || {}, additionalClassName = _1.className, additionalPlaceholder = _1.placeholder, additionalDefaultValue = _1.defaultValue, onAdditionalChange = _1.onChange, additionalInputProps = __rest(_1, ["className", "placeholder", "defaultValue", "onChange"]);
82
+ var isCharHintVisible = useCharHintDisplay({ isCharHintEnable: isCharHintEnable, inputValue: inputValue, charHintTimeout: charHintTimeout, isFieldFocused: isFocused }).isCharHintVisible;
83
+ useEffect(function () {
84
+ if (!isNil(value))
85
+ setInputLength(value.toString().length);
86
+ }, [value]);
87
+ useEffect(function () {
88
+ if (defaultValue)
89
+ setInputLength(defaultValue.toString().length);
90
+ }, [defaultValue]);
91
+ useEffect(function () {
92
+ setPlaceholderValue(placeholder || EMPTY_STRING);
93
+ }, [placeholder]);
94
+ useEffect(function () {
95
+ var inputElement = inputRef.current;
96
+ var setScrollLeftAsLeftByUser = function (event) {
97
+ var scrollLeft = event.target.scrollLeft;
98
+ setTimeout(function () { return (event.target.scrollLeft = scrollLeft); }, 0);
99
+ };
100
+ inputElement === null || inputElement === void 0 ? void 0 : inputElement.addEventListener(EVENT_LISTENER_TYPES.blur, setScrollLeftAsLeftByUser);
101
+ return function () { return inputElement === null || inputElement === void 0 ? void 0 : inputElement.removeEventListener(EVENT_LISTENER_TYPES.blur, setScrollLeftAsLeftByUser); };
102
+ // eslint-disable-next-line react-hooks/exhaustive-deps
103
+ }, []);
104
+ useEffect(function () {
105
+ var inputElement = inputRef.current;
106
+ var textLength = inputElement === null || inputElement === void 0 ? void 0 : inputElement.value.length;
107
+ if (!inputElement)
108
+ return;
109
+ if (isPassword) {
110
+ if (!textLength)
111
+ return;
112
+ inputElement.selectionStart = textLength;
113
+ inputElement.selectionEnd = textLength;
114
+ return inputElement.focus();
115
+ }
116
+ if (!autoFocus)
117
+ inputElement.blur();
118
+ }, [autoFocus, inputRef, isPassword, isPasswordShown]);
119
+ useEffect(function () {
120
+ var hiddenSpanRefCurrent = hiddenSpanRef.current;
121
+ if (hiddenSpanRefCurrent && additionalPlaceholder) {
122
+ hiddenSpanRefCurrent.innerText = additionalPlaceholder;
123
+ var minAdditionalWidthValue = hiddenSpanRefCurrent.getBoundingClientRect().width;
124
+ hiddenSpanRefCurrent.innerText = (additionalDefaultValue === null || additionalDefaultValue === void 0 ? void 0 : additionalDefaultValue.toString()) || additionalPlaceholder;
125
+ var additionalWidthValue = hiddenSpanRefCurrent.getBoundingClientRect().width;
126
+ setAdditionalWidth(Math.max(additionalWidthValue, minAdditionalWidthValue));
127
+ setMinAdditionalWidth(minAdditionalWidthValue);
128
+ }
129
+ }, [additionalPlaceholder, additionalDefaultValue]);
130
+ useEffect(function () {
131
+ var charHintRefCurrent = charHintRef.current;
132
+ if (!charHintRefCurrent)
133
+ return;
134
+ var parentElement = charHintRefCurrent.parentElement;
135
+ var width = charHintRefCurrent.getBoundingClientRect().width;
136
+ if (parentElement)
137
+ parentElement.style.width = "".concat(width, "px");
138
+ }, [isCharHintVisible]);
139
+ var generateInputType = function () {
140
+ if (isPassword)
141
+ return isPasswordShown ? INPUT_TYPE_TEXT : INPUT_TYPE_PASSWORD;
142
+ return type || INPUT_TYPE_TEXT;
143
+ };
144
+ var handleKeyDown = function (_a) {
145
+ var key = _a.key;
146
+ return key === ENTER_KEY && (onEnterPress === null || onEnterPress === void 0 ? void 0 : onEnterPress());
147
+ };
148
+ var checkIsInputValueEmpty = function () { var _a; return isEmpty((_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.value); };
149
+ var handleFocus = function (e) {
150
+ setIsClearableIconVisible(!checkIsInputValueEmpty());
151
+ setIsFocused(true);
152
+ onFocus === null || onFocus === void 0 ? void 0 : onFocus(e);
153
+ };
154
+ var handleBlur = function (e) {
155
+ setIsClearableIconVisible(fieldType === INPUT_FIELD_TYPE.search ? !checkIsInputValueEmpty() : false);
156
+ setIsFocused(false);
157
+ onBlur === null || onBlur === void 0 ? void 0 : onBlur(e);
158
+ };
159
+ var handleChange = function (_a) {
160
+ var value = _a.target.value;
161
+ var valueLength = value.length;
162
+ onChange(value);
163
+ setInputLength(valueLength);
164
+ setIsClearableIconVisible(!!valueLength);
165
+ };
166
+ var handleAdditionalChange = function (_a) {
167
+ var value = _a.target.value;
168
+ var hiddenSpanRefCurrent = hiddenSpanRef.current;
169
+ onAdditionalChange === null || onAdditionalChange === void 0 ? void 0 : onAdditionalChange(value);
170
+ if (hiddenSpanRefCurrent) {
171
+ hiddenSpanRefCurrent.innerText = value;
172
+ var spanWidth = hiddenSpanRefCurrent.getBoundingClientRect().width;
173
+ setAdditionalWidth(Math.max(spanWidth, minAdditionalWidth));
174
+ }
175
+ };
176
+ var handleClickButton = function () {
177
+ var inputRefCurrent = inputRef.current;
178
+ if (disabled)
179
+ return;
180
+ setIsPasswordShown(!isPasswordShown);
181
+ !(inputRefCurrent === null || inputRefCurrent === void 0 ? void 0 : inputRefCurrent.value.length) && (inputRefCurrent === null || inputRefCurrent === void 0 ? void 0 : inputRefCurrent.focus());
182
+ };
183
+ var handleClearClick = function (event) {
184
+ var inputRefCurrent = inputRef.current;
185
+ if (disabled)
186
+ return;
187
+ event.preventDefault();
188
+ if (inputRefCurrent && onClearClick) {
189
+ inputRefCurrent.value = '';
190
+ setIsClearableIconVisible(false);
191
+ setInputLength(0);
192
+ onClearClick();
193
+ }
194
+ };
195
+ var handleArrowClick = function (event, isUpArrow) {
196
+ event.preventDefault();
197
+ var inputRefCurrent = inputRef.current;
198
+ if (disabled || !inputRefCurrent)
199
+ return;
200
+ inputRefCurrent.focus();
201
+ isUpArrow ? inputRefCurrent.stepUp() : inputRefCurrent.stepDown();
202
+ var inputRefCurrentValue = inputRefCurrent.value;
203
+ setInputLength(inputRefCurrentValue.toString().length);
204
+ onChange(inputRefCurrentValue);
205
+ };
206
+ var handleArrowUpClick = function (event) { return handleArrowClick(event, true); };
207
+ var handleArrowDownClick = function (event) { return handleArrowClick(event); };
208
+ var handleInlineLabelClick = function () {
209
+ var inputRefCurrent = inputRef.current;
210
+ if (disabled || !inputRefCurrent)
211
+ return;
212
+ inputRefCurrent.focus();
213
+ };
214
+ var renderInputTitle = function () {
215
+ return title && (_jsx("div", __assign({ className: "smartapp-input__title" }, { children: _jsx("p", __assign({ className: "smartapp-input__title--text" }, { children: title })) })));
216
+ };
217
+ var renderMask = function () {
218
+ return mask && (_jsx("div", __assign({ ref: maskRef, className: "smartapp-input__container--mask" }, { children: mask })));
219
+ };
220
+ var renderEyeIcon = function () {
221
+ return isPassword && (_jsx("button", __assign({ type: BUTTON, className: "smartapp-input__container--eye-button", onClick: handleClickButton }, { children: isPasswordShown ? _jsx(EyeOnIcon, { style: iconStyles }) : _jsx(EyeOffIcon, { style: iconStyles }) })));
222
+ };
223
+ var renderMagnifyingGlass = function () {
224
+ return isSearchable && _jsx(MagnifyingGlassIcon, { className: "smartapp-input__container--magnifying-glass-icon", style: iconStyles });
225
+ };
226
+ var renderClearIcon = function () {
227
+ return isClearIconVisible && (_jsx("div", __assign({ className: "smartapp-input__container--clear-icon", onMouseDown: handleClearClick, onTouchEnd: handleClearClick }, { children: _jsx(ClearIcon, { style: iconStyles }) })));
228
+ };
229
+ var renderSuffixIcon = function () {
230
+ return suffixIcon && (_jsx("div", __assign({ className: "smartapp-input__container--suffix-icon", style: iconStyles }, { children: suffixIcon })));
231
+ };
232
+ var renderArrowButton = function (_a) {
233
+ var onClick = _a.onClick, icon = _a.icon;
234
+ return (_jsx("button", __assign({ className: "smartapp-input__container--number-type__arrows--icon", onClick: onClick, disabled: disabled }, { children: icon })));
235
+ };
236
+ var renderInlineLabelWithArrows = function () {
237
+ return isTypeNumber && (_jsxs("div", __assign({ ref: inlineLabelRef, onClick: handleInlineLabelClick, className: "smartapp-input__container--number-type" }, { children: [_jsx("div", __assign({ className: "smartapp-input__container--number-type__label" }, { children: inlineLabel })), isShowNumberArrows ? (_jsxs("div", __assign({ className: "smartapp-input__container--number-type__arrows" }, { children: [renderArrowButton({ icon: _jsx(InputArrowUpIcon, { style: iconStyles }), onClick: handleArrowUpClick }), renderArrowButton({ icon: _jsx(InputArrowDownIcon, { style: iconStyles }), onClick: handleArrowDownClick })] }))) : (inlineLabel && _jsx("div", { className: "smartapp-input__container--number-type__arrows--empty" }))] })));
238
+ };
239
+ var renderError = function () { return error && _jsx("div", __assign({ className: "smartapp-input__container--error" }, { children: error })); };
240
+ var renderHint = function () { return hint && _jsx("div", __assign({ className: "smartapp-input__hint" }, { children: hint })); };
241
+ var renderPlaceholder = function () {
242
+ return !isEmpty(placeholderValue) &&
243
+ !inputLength && (_jsx("span", __assign({ style: placeholderStyles, className: classNames('smartapp-input__placeholder', {
244
+ 'smartapp-input__placeholder--with-button': isInputWithButton,
245
+ 'smartapp-input__placeholder--with-suffix-icon': isInputWithSuffixIcon,
246
+ }) }, { children: placeholderValue })));
247
+ };
248
+ return (_jsxs("div", __assign({ style: __assign(__assign({ width: "".concat(width, "%") }, generateFontFamilyStyle(fontFamily)), containerStyles), className: classNames('smartapp-input', containerClassName) }, { children: [renderInputTitle(), _jsxs("div", __assign({ className: "smartapp-input__container" }, { children: [renderMask(), _jsx("input", __assign({ ref: inputRef, className: classNames('smartapp-input__container--field', {
249
+ 'smartapp-input__container--field__with-button': isInputWithButton,
250
+ 'smartapp-input__container--field__with-suffix-icon': isInputWithSuffixIcon,
251
+ 'smartapp-input__container--field__disabled': disabled,
252
+ 'smartapp-input__container--field__error': error && !disableErrorBorder,
253
+ }, className), style: __assign({ paddingLeft: calculateInputPaddingLeft(), paddingRight: calculateInputPaddingRight() }, style), type: generateInputType(), autoFocus: autoFocus, disabled: disabled, onKeyDown: handleKeyDown, onChange: handleChange, defaultValue: defaultValue, value: value, onFocus: handleFocus, onBlur: handleBlur, placeholder: isTypeNumber ? placeholderValue : SPACE }, props)), isCharHintEnable && isCharHintVisible && (_jsx("div", __assign({ className: classNames('smartapp-input__container--char-hint', charHintClassName), style: { top: inputHeight + CHAR_HINT_GAP } }, { children: _jsx("span", __assign({ ref: charHintRef }, { children: charHint || CHAR_HINT[language] })) }))), !isTypeNumber && renderPlaceholder(), onAdditionalChange && (_jsxs("div", __assign({ className: "smartapp-input__container--additional-field", style: { width: "".concat(additionalWidth, "px") } }, { children: [_jsx("input", __assign({ ref: additionalInputRef, className: classNames('smartapp-input__container--additional-field__input', { 'smartapp-input__container--additional-field__input--disabled': disabled }, additionalClassName), defaultValue: additionalDefaultValue, disabled: disabled, maxLength: ADDITIONAL_MAX_CHARACTERS, placeholder: additionalPlaceholder, onChange: handleAdditionalChange }, additionalInputProps)), _jsx("span", { ref: hiddenSpanRef, className: "smartapp-input__container--additional-field__hidden-span" })] }))), renderEyeIcon(), renderMagnifyingGlass(), renderClearIcon(), renderSuffixIcon(), renderInlineLabelWithArrows(), renderError()] })), renderHint()] })));
254
+ };
255
+ export default Input;
256
+ //# sourceMappingURL=Input.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Input.js","sourceRoot":"","sources":["../../../../src/сomponents/Input/Input.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,8BAA8B;AAC9B,OAAc,EAAc,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AACtE,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAA;AACvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAA;AACnE,OAAO,EAAE,aAAa,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAA;AACtE,OAAO,EACL,mBAAmB,EACnB,yBAAyB,EACzB,cAAc,EACd,MAAM,EACN,eAAe,IAAI,SAAS,EAC5B,qBAAqB,EACrB,YAAY,EACZ,SAAS,EACT,oBAAoB,EACpB,gBAAgB,EAChB,iBAAiB,EACjB,mBAAmB,EACnB,eAAe,EACf,SAAS,EACT,QAAQ,EACR,KAAK,GACN,MAAM,iBAAiB,CAAA;AAExB,OAAO,EAAE,cAAc,IAAI,SAAS,EA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AAa,EAAE,gBAChI,wBAAM,GAAG,EAAE,WAAW,gBAAG,QAAQ,IAAI,SAAS,CAAC,QAAQ,CAAC,IAAQ,IAC5D,CACP,EACA,CAAC,YAAY,IAAI,iBAAiB,EAAE,EACpC,kBAAkB,IAAI,CACrB,wBAAK,SAAS,EAAC,6CAA6C,EAAC,KAAK,EAAE,EAAE,KAAK,EAAE,UAAG,eAAe,OAAI,EAAE,iBACnG,yBACE,GAAG,EAAE,kBAAkB,EACvB,SAAS,EAAE,UAAU,CACnB,oDAAoD,EACpD,EAAE,8DAA8D,EAAE,QAAQ,EAAE,EAC5E,mBAAmB,CACpB,EACD,YAAY,EAAE,sBAAsB,EACpC,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,yBAAyB,EACpC,WAAW,EAAE,qBAAqB,EAClC,QAAQ,EAAE,sBAAsB,IAC5B,oBAAoB,EACxB,EACF,eAAM,GAAG,EAAE,aAAa,EAAE,SAAS,EAAC,0DAA0D,GAAG,KAC7F,CACP,EACA,aAAa,EAAE,EACf,qBAAqB,EAAE,EACvB,eAAe,EAAE,EACjB,gBAAgB,EAAE,EAClB,2BAA2B,EAAE,EAC7B,WAAW,EAAE,KACV,EACL,UAAU,EAAE,KACT,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,KAAK,CAAA"}
@@ -0,0 +1 @@
1
+ export { default } from './Input';
@@ -0,0 +1,2 @@
1
+ export { default } from './Input';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/Input/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA"}
@@ -0,0 +1,37 @@
1
+ import { InputHTMLAttributes, MouseEvent, ReactElement, RefObject } from 'react';
2
+ import { IFontFamilyProps, ILanguageProps, IPlatformProps, TStyles } from '../../constants';
3
+ import { IntRange } from '../types';
4
+ interface IInputParams extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange'> {
5
+ onChange: (str: string) => void;
6
+ }
7
+ export type TRenderArrowButton = {
8
+ icon: ReactElement;
9
+ onClick: (event: MouseEvent<HTMLButtonElement>) => void;
10
+ };
11
+ export interface IInputProps extends ILanguageProps, IInputParams, IPlatformProps, IFontFamilyProps {
12
+ isPassword?: boolean;
13
+ isClearable?: boolean;
14
+ isSearchable?: boolean;
15
+ isCharHintEnable?: boolean;
16
+ isShowNumberArrows?: boolean;
17
+ disableErrorBorder?: boolean;
18
+ title?: string;
19
+ mask?: string;
20
+ suffixIcon?: ReactElement;
21
+ hint?: string;
22
+ charHint?: string;
23
+ charHintTimeout?: number;
24
+ error?: string;
25
+ inlineLabel?: string;
26
+ fieldType?: 'text' | 'search';
27
+ outerRef?: RefObject<HTMLInputElement | null>;
28
+ additionalInputParams?: IInputParams;
29
+ width?: IntRange<1, 101>;
30
+ iconColor?: string;
31
+ containerClassName?: string;
32
+ charHintClassName?: string;
33
+ containerStyles?: TStyles;
34
+ onEnterPress?: () => void;
35
+ onClearClick?: () => void;
36
+ }
37
+ 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/Input/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,23 @@
1
+ import { IListItemProps } from './types';
2
+ import '../../styles/styles.scss';
3
+ export declare const LIST_ITEM_TYPE: {
4
+ interactive: string;
5
+ notInteractive: string;
6
+ };
7
+ export declare const INTERACTIVE_ELEMENT: {
8
+ radioButton: string;
9
+ checkbox: string;
10
+ toggle: string;
11
+ };
12
+ export declare const INTERACTIVE_POSITION: {
13
+ left: string;
14
+ right: string;
15
+ };
16
+ export declare const NOT_INTERACTIVE_ELEMENT: {
17
+ icon: string;
18
+ indicator: string;
19
+ noElement: string;
20
+ };
21
+ export declare const DEFAULT_INDICATOR_COLOR = "blue";
22
+ declare const ListItem: (props: IListItemProps) => import("react/jsx-runtime").JSX.Element;
23
+ export default ListItem;
@@ -0,0 +1,214 @@
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 { useCallback, useEffect, useRef } from 'react';
14
+ import classNames from 'classnames';
15
+ import { isUndefined } from 'lodash';
16
+ import Avatar from '../Avatar';
17
+ import Checkbox from '../Checkbox';
18
+ import RadioButton from '../RadioButton';
19
+ import Toggle from '../Toggle';
20
+ import { generateFontFamilyStyle, generateId } from '../../helpers';
21
+ import { AVATAR_SIZES } from '../Avatar/types';
22
+ import '../../styles/styles.scss';
23
+ export var LIST_ITEM_TYPE = {
24
+ interactive: 'interactive',
25
+ notInteractive: 'not-interactive',
26
+ };
27
+ export var INTERACTIVE_ELEMENT = {
28
+ radioButton: 'radio-button',
29
+ checkbox: 'checkbox',
30
+ toggle: 'toggle',
31
+ };
32
+ export var INTERACTIVE_POSITION = {
33
+ left: 'left',
34
+ right: 'right',
35
+ };
36
+ export var NOT_INTERACTIVE_ELEMENT = {
37
+ icon: 'icon',
38
+ indicator: 'indicator',
39
+ noElement: 'no-element',
40
+ };
41
+ var MIN_LIST_ITEM_HEIGHT = 44;
42
+ export var DEFAULT_INDICATOR_COLOR = 'blue';
43
+ var DEFAULT_PRESSED_CLASSNAME = 'smartapp-list-item__not-interactive--pressed';
44
+ var SELECTED_PRESSED_CLASSNAME = 'smartapp-list-item__not-interactive--selected__pressed';
45
+ var TOP_ALIGN_CLASSNAME = 'smartapp-list-item__top-align';
46
+ var isType = function (type) {
47
+ var isInteractiveType = type === LIST_ITEM_TYPE.interactive;
48
+ var isNotInteractiveType = type === LIST_ITEM_TYPE.notInteractive;
49
+ return { isInteractiveType: isInteractiveType, isNotInteractiveType: isNotInteractiveType };
50
+ };
51
+ var isElement = function (element) {
52
+ var isIndicatorElement = element === NOT_INTERACTIVE_ELEMENT.indicator;
53
+ var isIconElement = element === NOT_INTERACTIVE_ELEMENT.icon;
54
+ var isNoElement = element === NOT_INTERACTIVE_ELEMENT.noElement;
55
+ return { isIndicatorElement: isIndicatorElement, isIconElement: isIconElement, isNoElement: isNoElement };
56
+ };
57
+ var ListItem = function (props) {
58
+ var platform = props.platform, fontFamily = props.fontFamily, textRef = props.textRef, type = props.type, text = props.text, element = props.element, isDisabled = props.isDisabled, isTextTruncated = props.isTextTruncated, className = props.className, styles = props.styles, textStyles = props.textStyles, primaryTextStyles = props.primaryTextStyles, primaryTextClassName = props.primaryTextClassName, interactiveElementStyles = props.interactiveElementStyles, avatar = props.avatar;
59
+ var listItemRef = useRef(null);
60
+ var isRadioButtonOrCheckbox = element === INTERACTIVE_ELEMENT.radioButton || element === INTERACTIVE_ELEMENT.checkbox;
61
+ var isUserListItem = !isUndefined(avatar);
62
+ var _a = isType(type), isInteractiveType = _a.isInteractiveType, isNotInteractiveType = _a.isNotInteractiveType;
63
+ var _b = isElement(element), isIndicatorElement = _b.isIndicatorElement, isIconElement = _b.isIconElement, isNoElement = _b.isNoElement;
64
+ var isLeftPosition = function (position) { return position === INTERACTIVE_POSITION.left; };
65
+ var isRightPosition = function (position) { return position === INTERACTIVE_POSITION.right; };
66
+ var generatePressedClassName = useCallback(function () {
67
+ if (isNotInteractiveType && !isDisabled) {
68
+ var isSelected = props.isSelected;
69
+ return isSelected ? SELECTED_PRESSED_CLASSNAME : DEFAULT_PRESSED_CLASSNAME;
70
+ }
71
+ return '';
72
+ }, [isDisabled, isNotInteractiveType, props]);
73
+ var handleMouseDown = useCallback(function () {
74
+ var _a;
75
+ var pressedClassName = generatePressedClassName();
76
+ pressedClassName && ((_a = listItemRef.current) === null || _a === void 0 ? void 0 : _a.classList.add(pressedClassName));
77
+ }, [generatePressedClassName]);
78
+ var handleMouseUp = useCallback(function () {
79
+ var _a;
80
+ var pressedClassName = generatePressedClassName();
81
+ pressedClassName && ((_a = listItemRef.current) === null || _a === void 0 ? void 0 : _a.classList.remove(pressedClassName));
82
+ }, [generatePressedClassName]);
83
+ var handleClick = useCallback(function (event) {
84
+ if (isDisabled || !isRadioButtonOrCheckbox)
85
+ return;
86
+ var target = event.target;
87
+ var isClickOnInteractiveElement = target.closest('.smartapp-radio-button') || target.closest('.smartapp-check-box');
88
+ if (isInteractiveType && !isClickOnInteractiveElement) {
89
+ var onChange = props.onChange;
90
+ onChange();
91
+ }
92
+ }, [isDisabled, isInteractiveType, isRadioButtonOrCheckbox, props]);
93
+ var renderInteractiveElement = function () {
94
+ var _a = props, _b = _a.isSelected, isSelected = _b === void 0 ? false : _b, onChange = _a.onChange;
95
+ var elementId = generateId();
96
+ switch (element) {
97
+ case INTERACTIVE_ELEMENT.radioButton:
98
+ return _jsx(RadioButton, { id: elementId, isChecked: isSelected, isDisabled: isDisabled, onChange: onChange, styles: interactiveElementStyles });
99
+ case INTERACTIVE_ELEMENT.checkbox:
100
+ return _jsx(Checkbox, { id: elementId, isChecked: isSelected, isDisabled: isDisabled, onChange: onChange, styles: interactiveElementStyles });
101
+ case INTERACTIVE_ELEMENT.toggle:
102
+ return _jsx(Toggle, { id: elementId, isChecked: isSelected, isDisabled: isDisabled, onClick: onChange, styles: interactiveElementStyles });
103
+ }
104
+ };
105
+ var renderNotInteractiveElement = function () {
106
+ switch (element) {
107
+ case NOT_INTERACTIVE_ELEMENT.icon:
108
+ var icon = props.icon;
109
+ return _jsx("div", __assign({ className: classNames('smartapp-list-item__icon', { 'smartapp-list-item__icon--disabled': isDisabled }) }, { children: icon }));
110
+ case NOT_INTERACTIVE_ELEMENT.indicator:
111
+ var color = props.color;
112
+ return renderIndicatorElement({ color: color });
113
+ case NOT_INTERACTIVE_ELEMENT.noElement:
114
+ return null;
115
+ }
116
+ };
117
+ var renderIndicatorElement = function (_a) {
118
+ var _b;
119
+ var _c = _a.isIndicator, isIndicator = _c === void 0 ? true : _c, _d = _a.color, color = _d === void 0 ? DEFAULT_INDICATOR_COLOR : _d;
120
+ if (isIndicator) {
121
+ var indicatorColorClassName = "smartapp-list-item__indicator--".concat(color);
122
+ var className_1 = classNames('smartapp-list-item__indicator', indicatorColorClassName, (_b = {},
123
+ _b["".concat(indicatorColorClassName, "__disabled")] = isDisabled,
124
+ _b));
125
+ return _jsx("div", { className: className_1 });
126
+ }
127
+ return null;
128
+ };
129
+ var renderLeftElement = function () {
130
+ if (isUserListItem) {
131
+ var secondaryText = props.secondaryText;
132
+ var username = secondaryText || text;
133
+ return _jsx(Avatar, { fontFamily: fontFamily, className: "smartapp-list-item__avatar", avatar: avatar, username: username, size: AVATAR_SIZES.size_32 });
134
+ }
135
+ if (isInteractiveType) {
136
+ var _a = props, _b = _a.position, position = _b === void 0 ? INTERACTIVE_POSITION.right : _b, _c = _a.isIndicator, isIndicator = _c === void 0 ? false : _c, color = _a.color;
137
+ return isLeftPosition(position) ? renderInteractiveElement() : renderIndicatorElement({ isIndicator: isIndicator, color: color });
138
+ }
139
+ if (isNotInteractiveType)
140
+ return renderNotInteractiveElement();
141
+ };
142
+ var renderRightElement = function () {
143
+ if (isInteractiveType) {
144
+ var _a = props.position, position = _a === void 0 ? INTERACTIVE_POSITION.right : _a;
145
+ return isRightPosition(position) ? renderInteractiveElement() : null;
146
+ }
147
+ };
148
+ var renderSecondaryText = function () {
149
+ if (isNotInteractiveType && isNoElement) {
150
+ var _a = props, secondaryText = _a.secondaryText, secondaryTextColor = _a.secondaryTextColor, _b = _a.secondaryTextStyles, secondaryTextStyles = _b === void 0 ? {} : _b, secondaryTextClassName = _a.secondaryTextClassName;
151
+ return secondaryText ? (_jsx("div", __assign({ className: secondaryTextClassName, style: __assign({ color: secondaryTextColor }, secondaryTextStyles) }, { children: secondaryText }))) : null;
152
+ }
153
+ };
154
+ var generateTextClassName = function () {
155
+ var defaultTextClassname = 'smartapp-list-item__text';
156
+ var classNames = isUserListItem || isTextTruncated ? [defaultTextClassname, "".concat(defaultTextClassname, "--wrap")] : [defaultTextClassname];
157
+ if (isInteractiveType) {
158
+ var _a = props, _b = _a.position, position = _b === void 0 ? INTERACTIVE_POSITION.right : _b, isIndicator = _a.isIndicator;
159
+ var isLeftClassNeeded = isLeftPosition(position) || isIndicator;
160
+ isLeftClassNeeded && classNames.push('smartapp-list-item__text--left');
161
+ isRightPosition(position) && classNames.push('smartapp-list-item__text--right');
162
+ isIndicator && isRightPosition(position) && classNames.push('smartapp-list-item__text--ellipse');
163
+ }
164
+ if (isNotInteractiveType && (isIconElement || isIndicatorElement)) {
165
+ classNames.push(isIconElement ? 'smartapp-list-item__text--increased-left' : 'smartapp-list-item__text--left');
166
+ }
167
+ isDisabled && classNames.push('smartapp-list-item__text--disabled');
168
+ return classNames;
169
+ };
170
+ var generateClassName = function () {
171
+ var typeClassName = "smartapp-list-item__".concat(type);
172
+ var selectedClassName = "".concat(typeClassName, "--selected");
173
+ var classNames = ['smartapp-list-item', typeClassName, "".concat(typeClassName, "--").concat(platform)];
174
+ if (isNotInteractiveType) {
175
+ var isSelected = props.isSelected;
176
+ isSelected && classNames.push.apply(classNames, [selectedClassName, "".concat(selectedClassName, "__").concat(platform)]);
177
+ }
178
+ if (isNoElement) {
179
+ var secondaryText = props.secondaryText;
180
+ secondaryText && classNames.push("".concat(typeClassName, "--with-secondary-text"));
181
+ }
182
+ isDisabled && classNames.push('smartapp-list-item__disabled');
183
+ className && classNames.push(className);
184
+ isRadioButtonOrCheckbox && classNames.push('smartapp-list-item__hover');
185
+ return classNames;
186
+ };
187
+ useEffect(function () {
188
+ var listItemRefCurrent = listItemRef.current;
189
+ var listItemRefClassList = listItemRefCurrent === null || listItemRefCurrent === void 0 ? void 0 : listItemRefCurrent.classList;
190
+ var resizeObserver = new ResizeObserver(function () {
191
+ var _a = props.position, position = _a === void 0 ? INTERACTIVE_POSITION.right : _a;
192
+ var height = (listItemRefCurrent === null || listItemRefCurrent === void 0 ? void 0 : listItemRefCurrent.getBoundingClientRect().height) || 0;
193
+ if (isLeftPosition(position)) {
194
+ height > MIN_LIST_ITEM_HEIGHT ? listItemRefClassList === null || listItemRefClassList === void 0 ? void 0 : listItemRefClassList.add(TOP_ALIGN_CLASSNAME) : listItemRefClassList === null || listItemRefClassList === void 0 ? void 0 : listItemRefClassList.remove(TOP_ALIGN_CLASSNAME);
195
+ }
196
+ else {
197
+ listItemRefClassList === null || listItemRefClassList === void 0 ? void 0 : listItemRefClassList.remove(TOP_ALIGN_CLASSNAME);
198
+ }
199
+ });
200
+ if (listItemRefCurrent && isInteractiveType) {
201
+ resizeObserver.observe(listItemRefCurrent);
202
+ }
203
+ return function () { return resizeObserver.disconnect(); };
204
+ }, [isInteractiveType, props]);
205
+ useEffect(function () {
206
+ window.addEventListener('mouseup', handleMouseUp);
207
+ return function () {
208
+ window.removeEventListener('mouseup', handleMouseUp);
209
+ };
210
+ }, [handleMouseUp]);
211
+ return (_jsxs("div", __assign({ ref: listItemRef, className: classNames(generateClassName()), style: __assign(__assign({}, generateFontFamilyStyle(fontFamily)), styles), onMouseDown: handleMouseDown, onClick: handleClick }, { children: [renderLeftElement(), _jsxs("div", __assign({ className: classNames(generateTextClassName()), style: textStyles }, { children: [_jsx("div", __assign({ ref: textRef, className: primaryTextClassName, style: primaryTextStyles }, { children: text })), renderSecondaryText()] })), renderRightElement()] })));
212
+ };
213
+ export default ListItem;
214
+ //# sourceMappingURL=ListItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListItem.js","sourceRoot":"","sources":["../../../../src/сomponents/ListItem/ListItem.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAC7D,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAA;AACp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AC;QACR,MAAM,CAAC,gBAAgB,CAAC,SAAS,EAAE,aAAa,CAAC,CAAA;QAEjD,OAAO;YACL,MAAM,CAAC,mBAAmB,CAAC,SAAS,EAAE,aAAa,CAAC,CAAA;QACtD,CAAC,CAAA;IACH,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC,CAAA;IAEnB,OAAO,CACL,wBACE,GAAG,EAAE,WAAW,EAChB,SAAS,EAAE,UAAU,CAAC,iBAAiB,EAAE,CAAC,EAC1C,KAAK,wBAAO,uBAAuB,CAAC,UAAU,CAAC,GAAK,MAAM,GAC1D,WAAW,EAAE,eAAe,EAC5B,OAAO,EAAE,WAAW,iBAEnB,iBAAiB,EAAE,EACpB,wBAAK,SAAS,EAAE,UAAU,CAAC,qBAAqB,EAAE,CAAC,EAAE,KAAK,EAAE,UAAU,iBACpE,uBAAK,GAAG,EAAE,OAAO,EAAE,SAAS,EAAE,oBAAoB,EAAE,KAAK,EAAE,iBAAiB,gBACzE,IAAI,IACD,EACL,mBAAmB,EAAE,KAClB,EACL,kBAAkB,EAAE,KACjB,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,QAAQ,CAAA"}
@@ -0,0 +1 @@
1
+ export { default } from './ListItem';
@@ -0,0 +1,2 @@
1
+ export { default } from './ListItem';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/ListItem/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA"}