mediacube-ui-v2 0.0.3 → 0.0.4

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 (704) hide show
  1. package/package.json +21 -5
  2. package/src/App.vue +8 -0
  3. package/src/assets/base.css +0 -0
  4. package/src/assets/fonts/inter/Inter-Bold.woff +0 -0
  5. package/src/assets/fonts/inter/Inter-Bold.woff2 +0 -0
  6. package/src/assets/fonts/inter/Inter-Italic.woff +0 -0
  7. package/src/assets/fonts/inter/Inter-Italic.woff2 +0 -0
  8. package/src/assets/fonts/inter/Inter-Medium.woff +0 -0
  9. package/src/assets/fonts/inter/Inter-Medium.woff2 +0 -0
  10. package/src/assets/fonts/inter/Inter-Regular.woff +0 -0
  11. package/src/assets/fonts/inter/Inter-Regular.woff2 +0 -0
  12. package/src/assets/fonts/inter/Inter-SemiBold.woff +0 -0
  13. package/src/assets/fonts/inter/Inter-SemiBold.woff2 +0 -0
  14. package/src/assets/fonts/inter/inter.css +44 -0
  15. package/src/assets/icons/a_circle.svg +3 -0
  16. package/src/assets/icons/access_time.svg +5 -0
  17. package/src/assets/icons/account_circle.svg +1 -0
  18. package/src/assets/icons/account_edit.svg +3 -0
  19. package/src/assets/icons/add.svg +3 -0
  20. package/src/assets/icons/add_circle.svg +3 -0
  21. package/src/assets/icons/address.svg +6 -0
  22. package/src/assets/icons/ads_banner.svg +3 -0
  23. package/src/assets/icons/album.svg +1 -0
  24. package/src/assets/icons/alert_solid.svg +3 -0
  25. package/src/assets/icons/alternate_email.svg +1 -0
  26. package/src/assets/icons/amocrm.svg +4 -0
  27. package/src/assets/icons/amper_music.svg +4 -0
  28. package/src/assets/icons/analytics.svg +3 -0
  29. package/src/assets/icons/animation_motion.svg +4 -0
  30. package/src/assets/icons/api.svg +1 -0
  31. package/src/assets/icons/apple_icon.svg +3 -0
  32. package/src/assets/icons/applications.svg +3 -0
  33. package/src/assets/icons/applications_new.svg +3 -0
  34. package/src/assets/icons/apps.svg +3 -0
  35. package/src/assets/icons/archive.svg +1 -0
  36. package/src/assets/icons/archive_in.svg +3 -0
  37. package/src/assets/icons/archive_out.svg +3 -0
  38. package/src/assets/icons/arrow-stats-down.svg +3 -0
  39. package/src/assets/icons/arrow-stats-up.svg +3 -0
  40. package/src/assets/icons/arrow_backward.svg +3 -0
  41. package/src/assets/icons/arrow_downward.svg +3 -0
  42. package/src/assets/icons/arrow_drop_down.svg +3 -0
  43. package/src/assets/icons/arrow_drop_up.svg +3 -0
  44. package/src/assets/icons/arrow_forward.svg +3 -0
  45. package/src/assets/icons/arrow_leftward.svg +3 -0
  46. package/src/assets/icons/arrow_rightward.svg +3 -0
  47. package/src/assets/icons/arrow_to_grow_circle.svg +3 -0
  48. package/src/assets/icons/arrow_up_down.svg +3 -0
  49. package/src/assets/icons/arrow_upward.svg +3 -0
  50. package/src/assets/icons/arrows.svg +6 -0
  51. package/src/assets/icons/artist.svg +8 -0
  52. package/src/assets/icons/assessment.svg +1 -0
  53. package/src/assets/icons/assets_unassigned.svg +3 -0
  54. package/src/assets/icons/assignment.svg +9 -0
  55. package/src/assets/icons/assignment_ind.svg +1 -0
  56. package/src/assets/icons/assist_icon.svg +13 -0
  57. package/src/assets/icons/attach_money.svg +1 -0
  58. package/src/assets/icons/audiotrack.svg +1 -0
  59. package/src/assets/icons/backspace.svg +1 -0
  60. package/src/assets/icons/bank.svg +12 -0
  61. package/src/assets/icons/bank_building.svg +3 -0
  62. package/src/assets/icons/bank_building_blue.svg +4 -0
  63. package/src/assets/icons/bank_card.svg +3 -0
  64. package/src/assets/icons/bank_card_arrow.svg +3 -0
  65. package/src/assets/icons/bank_card_clock.svg +3 -0
  66. package/src/assets/icons/bank_card_double.svg +3 -0
  67. package/src/assets/icons/bank_card_virtual_blue.svg +7 -0
  68. package/src/assets/icons/bank_money_colored.svg +4 -0
  69. package/src/assets/icons/bankwire.svg +70 -0
  70. package/src/assets/icons/bell.svg +3 -0
  71. package/src/assets/icons/binance_coin_colored.svg +4 -0
  72. package/src/assets/icons/biometrics.svg +8 -0
  73. package/src/assets/icons/bitcoin.svg +6 -0
  74. package/src/assets/icons/bitcoin_cash_colored.svg +4 -0
  75. package/src/assets/icons/bitcoin_colored.svg +4 -0
  76. package/src/assets/icons/bloggerhood.svg +19 -0
  77. package/src/assets/icons/board.svg +7 -0
  78. package/src/assets/icons/book.svg +3 -0
  79. package/src/assets/icons/broken_link.svg +8 -0
  80. package/src/assets/icons/bug.svg +10 -0
  81. package/src/assets/icons/bug_big.svg +3 -0
  82. package/src/assets/icons/bug_report.svg +3 -0
  83. package/src/assets/icons/building.svg +17 -0
  84. package/src/assets/icons/building_colored.svg +18 -0
  85. package/src/assets/icons/business_center.svg +1 -0
  86. package/src/assets/icons/calendar.svg +3 -0
  87. package/src/assets/icons/calendar_colored.svg +7 -0
  88. package/src/assets/icons/calendar_load.svg +3 -0
  89. package/src/assets/icons/calendar_sixteen.svg +5 -0
  90. package/src/assets/icons/calendar_two_weeks.svg +3 -0
  91. package/src/assets/icons/calendar_user.svg +11 -0
  92. package/src/assets/icons/camera_alt.svg +1 -0
  93. package/src/assets/icons/camera_plus.svg +1 -0
  94. package/src/assets/icons/camera_video.svg +3 -0
  95. package/src/assets/icons/cancel.svg +4 -0
  96. package/src/assets/icons/cancel_alt.svg +1 -0
  97. package/src/assets/icons/capitalist.svg +23 -0
  98. package/src/assets/icons/capitalist_colored.svg +4 -0
  99. package/src/assets/icons/card.svg +1 -0
  100. package/src/assets/icons/card_off.svg +7 -0
  101. package/src/assets/icons/card_off_circle.svg +4 -0
  102. package/src/assets/icons/card_to_card_blue.svg +11 -0
  103. package/src/assets/icons/card_to_card_colored.svg +11 -0
  104. package/src/assets/icons/cash-ad.svg +7 -0
  105. package/src/assets/icons/cash.svg +7 -0
  106. package/src/assets/icons/category.svg +6 -0
  107. package/src/assets/icons/cellphone.svg +1 -0
  108. package/src/assets/icons/change_sheet.svg +3 -0
  109. package/src/assets/icons/channels_icon.svg +12 -0
  110. package/src/assets/icons/chart_bar.svg +3 -0
  111. package/src/assets/icons/chart_line.svg +3 -0
  112. package/src/assets/icons/chat.svg +3 -0
  113. package/src/assets/icons/chat_add.svg +6 -0
  114. package/src/assets/icons/chat_forum.svg +3 -0
  115. package/src/assets/icons/chat_messages.svg +3 -0
  116. package/src/assets/icons/check-rhombus.svg +3 -0
  117. package/src/assets/icons/check.svg +4 -0
  118. package/src/assets/icons/check_all.svg +6 -0
  119. package/src/assets/icons/check_circle.svg +4 -0
  120. package/src/assets/icons/check_circle_second.svg +4 -0
  121. package/src/assets/icons/check_circle_solid.svg +3 -0
  122. package/src/assets/icons/check_polygonal.svg +3 -0
  123. package/src/assets/icons/checkbox--checked.svg +3 -0
  124. package/src/assets/icons/checkbox.svg +3 -0
  125. package/src/assets/icons/checkboxes.svg +8 -0
  126. package/src/assets/icons/circle.svg +3 -0
  127. package/src/assets/icons/circle_arrows.svg +3 -0
  128. package/src/assets/icons/click.svg +3 -0
  129. package/src/assets/icons/clickup.svg +14 -0
  130. package/src/assets/icons/clip.svg +3 -0
  131. package/src/assets/icons/clock_check.svg +6 -0
  132. package/src/assets/icons/clock_solid.svg +5 -0
  133. package/src/assets/icons/close.svg +3 -0
  134. package/src/assets/icons/close_circle_outline.svg +5 -0
  135. package/src/assets/icons/close_circle_solid.svg +3 -0
  136. package/src/assets/icons/cloud_upload.svg +1 -0
  137. package/src/assets/icons/coin_speed.svg +7 -0
  138. package/src/assets/icons/comment.svg +4 -0
  139. package/src/assets/icons/company.svg +1 -0
  140. package/src/assets/icons/confetti.svg +18 -0
  141. package/src/assets/icons/connection.svg +3 -0
  142. package/src/assets/icons/contacts.svg +1 -0
  143. package/src/assets/icons/contracts.svg +3 -0
  144. package/src/assets/icons/convert.svg +6 -0
  145. package/src/assets/icons/copy.svg +3 -0
  146. package/src/assets/icons/copyright.svg +3 -0
  147. package/src/assets/icons/credit-card.svg +5 -0
  148. package/src/assets/icons/credit_card_blink.svg +4 -0
  149. package/src/assets/icons/crypto.svg +8 -0
  150. package/src/assets/icons/crypto_blue.svg +9 -0
  151. package/src/assets/icons/crypto_colored.svg +9 -0
  152. package/src/assets/icons/cryptowallet.svg +5 -0
  153. package/src/assets/icons/cryptowallet_blue.svg +6 -0
  154. package/src/assets/icons/cryptowallet_colored.svg +6 -0
  155. package/src/assets/icons/cup.svg +7 -0
  156. package/src/assets/icons/dashboard.svg +1 -0
  157. package/src/assets/icons/date_range.svg +1 -0
  158. package/src/assets/icons/deeplinks.svg +3 -0
  159. package/src/assets/icons/delete-account.svg +5 -0
  160. package/src/assets/icons/delete.svg +3 -0
  161. package/src/assets/icons/delete_alt.svg +1 -0
  162. package/src/assets/icons/deprecated.svg +1 -0
  163. package/src/assets/icons/desktop_device.svg +3 -0
  164. package/src/assets/icons/dialog.svg +3 -0
  165. package/src/assets/icons/discord.svg +9 -0
  166. package/src/assets/icons/discord_colored.svg +4 -0
  167. package/src/assets/icons/dislike.svg +3 -0
  168. package/src/assets/icons/doc-export.svg +10 -0
  169. package/src/assets/icons/document.svg +1 -0
  170. package/src/assets/icons/dollar.svg +3 -0
  171. package/src/assets/icons/donate_blue.svg +7 -0
  172. package/src/assets/icons/donate_colored.svg +7 -0
  173. package/src/assets/icons/dot-status.svg +3 -0
  174. package/src/assets/icons/download.svg +3 -0
  175. package/src/assets/icons/drag.svg +1 -0
  176. package/src/assets/icons/eWallet.svg +25 -0
  177. package/src/assets/icons/e_wallet_blue.svg +9 -0
  178. package/src/assets/icons/e_wallet_colored.svg +9 -0
  179. package/src/assets/icons/edit.svg +3 -0
  180. package/src/assets/icons/edit_solid.svg +4 -0
  181. package/src/assets/icons/email.svg +12 -0
  182. package/src/assets/icons/email_circle.svg +5 -0
  183. package/src/assets/icons/email_colored.svg +5 -0
  184. package/src/assets/icons/enrollment.svg +1 -0
  185. package/src/assets/icons/epayments_colored.svg +4 -0
  186. package/src/assets/icons/epidemic-sound.svg +66 -0
  187. package/src/assets/icons/epidemic_sound_circle.svg +4 -0
  188. package/src/assets/icons/error.svg +3 -0
  189. package/src/assets/icons/ethereum_colored.svg +8 -0
  190. package/src/assets/icons/event.svg +1 -0
  191. package/src/assets/icons/event_alt.svg +1 -0
  192. package/src/assets/icons/exit_to_app.svg +1 -0
  193. package/src/assets/icons/explicit.svg +1 -0
  194. package/src/assets/icons/export.svg +5 -0
  195. package/src/assets/icons/export_all.svg +6 -0
  196. package/src/assets/icons/express_payment.svg +3 -0
  197. package/src/assets/icons/face.svg +1 -0
  198. package/src/assets/icons/face_alt.svg +1 -0
  199. package/src/assets/icons/facebook.svg +3 -0
  200. package/src/assets/icons/facebook_colored.svg +4 -0
  201. package/src/assets/icons/fast.svg +10 -0
  202. package/src/assets/icons/favorite.svg +1 -0
  203. package/src/assets/icons/file.svg +1 -0
  204. package/src/assets/icons/file_add.svg +3 -0
  205. package/src/assets/icons/file_copy.svg +4 -0
  206. package/src/assets/icons/file_download.svg +1 -0
  207. package/src/assets/icons/file_export.svg +3 -0
  208. package/src/assets/icons/file_eye.svg +3 -0
  209. package/src/assets/icons/file_import.svg +7 -0
  210. package/src/assets/icons/file_new.svg +3 -0
  211. package/src/assets/icons/filter_list.svg +3 -0
  212. package/src/assets/icons/find_in_page.svg +1 -0
  213. package/src/assets/icons/fire.svg +3 -0
  214. package/src/assets/icons/fire_colored.svg +8 -0
  215. package/src/assets/icons/fire_solid.svg +3 -0
  216. package/src/assets/icons/flag_ar.svg +19 -0
  217. package/src/assets/icons/flag_en.svg +6 -0
  218. package/src/assets/icons/flag_es.svg +564 -0
  219. package/src/assets/icons/flag_pt.svg +43 -0
  220. package/src/assets/icons/flag_ru.svg +5 -0
  221. package/src/assets/icons/flag_th.svg +6 -0
  222. package/src/assets/icons/flag_vi.svg +5 -0
  223. package/src/assets/icons/fly_dollar.svg +13 -0
  224. package/src/assets/icons/fly_euro.svg +5 -0
  225. package/src/assets/icons/freeze.svg +3 -0
  226. package/src/assets/icons/fullscreen.svg +1 -0
  227. package/src/assets/icons/get_app.svg +4 -0
  228. package/src/assets/icons/gift_solid.svg +8 -0
  229. package/src/assets/icons/glasses.svg +3 -0
  230. package/src/assets/icons/google_colored.svg +6 -0
  231. package/src/assets/icons/googleplus_colored.svg +5 -0
  232. package/src/assets/icons/graph-no-data.svg +3 -0
  233. package/src/assets/icons/group.svg +3 -0
  234. package/src/assets/icons/group_connection.svg +9 -0
  235. package/src/assets/icons/growth_arrow_circle.svg +3 -0
  236. package/src/assets/icons/hand_money.svg +13 -0
  237. package/src/assets/icons/help.svg +1 -0
  238. package/src/assets/icons/help_invert.svg +1 -0
  239. package/src/assets/icons/help_solid.svg +4 -0
  240. package/src/assets/icons/help_ukraine_colored.svg +14 -0
  241. package/src/assets/icons/home.svg +3 -0
  242. package/src/assets/icons/iban.svg +9 -0
  243. package/src/assets/icons/iban_blue.svg +10 -0
  244. package/src/assets/icons/id_square.svg +3 -0
  245. package/src/assets/icons/id_thin.svg +5 -0
  246. package/src/assets/icons/image.svg +1 -0
  247. package/src/assets/icons/infinity.svg +3 -0
  248. package/src/assets/icons/info.svg +3 -0
  249. package/src/assets/icons/info_rounded_square.svg +5 -0
  250. package/src/assets/icons/info_solid.svg +4 -0
  251. package/src/assets/icons/instagram.svg +23 -0
  252. package/src/assets/icons/instagram_colored.svg +18 -0
  253. package/src/assets/icons/keyboard.svg +1 -0
  254. package/src/assets/icons/keyboard_arrow_left.svg +4 -0
  255. package/src/assets/icons/keyboard_arrow_right.svg +4 -0
  256. package/src/assets/icons/keyboard_arrow_right_thin.svg +3 -0
  257. package/src/assets/icons/kraken.svg +10 -0
  258. package/src/assets/icons/language.svg +3 -0
  259. package/src/assets/icons/layers.svg +3 -0
  260. package/src/assets/icons/lightning.svg +3 -0
  261. package/src/assets/icons/lightning_circle.svg +4 -0
  262. package/src/assets/icons/lightning_circle_solid.svg +4 -0
  263. package/src/assets/icons/lightning_outlined.svg +3 -0
  264. package/src/assets/icons/like.svg +3 -0
  265. package/src/assets/icons/link.svg +3 -0
  266. package/src/assets/icons/link_broken.svg +7 -0
  267. package/src/assets/icons/link_colored.svg +4 -0
  268. package/src/assets/icons/link_external.svg +3 -0
  269. package/src/assets/icons/link_external_new.svg +3 -0
  270. package/src/assets/icons/linkedin.svg +9 -0
  271. package/src/assets/icons/linkedin_colored.svg +6 -0
  272. package/src/assets/icons/list.svg +1 -0
  273. package/src/assets/icons/litecoin_colored.svg +4 -0
  274. package/src/assets/icons/live_help.svg +1 -0
  275. package/src/assets/icons/loader.svg +3 -0
  276. package/src/assets/icons/location_city.svg +1 -0
  277. package/src/assets/icons/location_on.svg +3 -0
  278. package/src/assets/icons/lock.svg +3 -0
  279. package/src/assets/icons/lock_old.svg +1 -0
  280. package/src/assets/icons/logout.svg +3 -0
  281. package/src/assets/icons/magic_blink.svg +3 -0
  282. package/src/assets/icons/mail_outline.svg +1 -0
  283. package/src/assets/icons/mc_assist.svg +4 -0
  284. package/src/assets/icons/mc_dashboard.svg +5 -0
  285. package/src/assets/icons/mc_id.svg +3 -0
  286. package/src/assets/icons/mc_pay.svg +10 -0
  287. package/src/assets/icons/mc_pay_app.svg +6 -0
  288. package/src/assets/icons/mc_pay_compact.svg +4 -0
  289. package/src/assets/icons/mc_pay_menu.svg +4 -0
  290. package/src/assets/icons/mc_pay_menu_circle_colored.svg +4 -0
  291. package/src/assets/icons/mc_pay_mobile_app.svg +21 -0
  292. package/src/assets/icons/mc_studio.svg +3 -0
  293. package/src/assets/icons/mc_vidwide.svg +11 -0
  294. package/src/assets/icons/mcadslogo.svg +37 -0
  295. package/src/assets/icons/mediacube.svg +1 -0
  296. package/src/assets/icons/menu.svg +3 -0
  297. package/src/assets/icons/menu_new.svg +3 -0
  298. package/src/assets/icons/message.svg +3 -0
  299. package/src/assets/icons/messenger.svg +6 -0
  300. package/src/assets/icons/messenger_colored.svg +10 -0
  301. package/src/assets/icons/minus.svg +5 -0
  302. package/src/assets/icons/mobile_device.svg +3 -0
  303. package/src/assets/icons/money_clock.svg +8 -0
  304. package/src/assets/icons/money_input.svg +8 -0
  305. package/src/assets/icons/more_horiz.svg +1 -0
  306. package/src/assets/icons/music.svg +1 -0
  307. package/src/assets/icons/music_icon.svg +8 -0
  308. package/src/assets/icons/new.svg +1 -0
  309. package/src/assets/icons/notes.svg +3 -0
  310. package/src/assets/icons/objects.svg +3 -0
  311. package/src/assets/icons/obs.svg +3 -0
  312. package/src/assets/icons/okru.svg +12 -0
  313. package/src/assets/icons/okru_colored.svg +4 -0
  314. package/src/assets/icons/ondemand_video.svg +1 -0
  315. package/src/assets/icons/partners.svg +3 -0
  316. package/src/assets/icons/pause.svg +1 -0
  317. package/src/assets/icons/payment.svg +1 -0
  318. package/src/assets/icons/payoneer.svg +13 -0
  319. package/src/assets/icons/payoneer_colored.svg +19 -0
  320. package/src/assets/icons/payoneer_cy.svg +13 -0
  321. package/src/assets/icons/paypal.svg +1 -0
  322. package/src/assets/icons/paypal_colored.svg +6 -0
  323. package/src/assets/icons/percent.svg +3 -0
  324. package/src/assets/icons/personal_email_colored.svg +11 -0
  325. package/src/assets/icons/phone_colored.svg +4 -0
  326. package/src/assets/icons/photo_add.svg +3 -0
  327. package/src/assets/icons/picture.svg +3 -0
  328. package/src/assets/icons/picture_thin.svg +3 -0
  329. package/src/assets/icons/plane.svg +3 -0
  330. package/src/assets/icons/play-videos.svg +4 -0
  331. package/src/assets/icons/play.svg +1 -0
  332. package/src/assets/icons/print.svg +1 -0
  333. package/src/assets/icons/prototype.svg +1 -0
  334. package/src/assets/icons/public.svg +1 -0
  335. package/src/assets/icons/qiwi.svg +11 -0
  336. package/src/assets/icons/qiwi_colored.svg +4 -0
  337. package/src/assets/icons/radio--checked.svg +4 -0
  338. package/src/assets/icons/ready.svg +1 -0
  339. package/src/assets/icons/receipt.svg +1 -0
  340. package/src/assets/icons/receipt_thin.svg +6 -0
  341. package/src/assets/icons/recording_circle.svg +3 -0
  342. package/src/assets/icons/recruiters.svg +3 -0
  343. package/src/assets/icons/redo.svg +3 -0
  344. package/src/assets/icons/referral.svg +10 -0
  345. package/src/assets/icons/referral_solid.svg +10 -0
  346. package/src/assets/icons/reload.svg +3 -0
  347. package/src/assets/icons/reload_right.svg +3 -0
  348. package/src/assets/icons/remove_red_eye.svg +1 -0
  349. package/src/assets/icons/repair.svg +6 -0
  350. package/src/assets/icons/reply_arrow.svg +3 -0
  351. package/src/assets/icons/requisites.svg +7 -0
  352. package/src/assets/icons/reset.svg +7 -0
  353. package/src/assets/icons/resize_video.svg +3 -0
  354. package/src/assets/icons/revenue.svg +3 -0
  355. package/src/assets/icons/review.svg +1 -0
  356. package/src/assets/icons/ripple_colored.svg +4 -0
  357. package/src/assets/icons/rocket.svg +7 -0
  358. package/src/assets/icons/rocket_colored.svg +6 -0
  359. package/src/assets/icons/rocket_small.svg +6 -0
  360. package/src/assets/icons/role.svg +3 -0
  361. package/src/assets/icons/safety.svg +5 -0
  362. package/src/assets/icons/sand_clock.svg +4 -0
  363. package/src/assets/icons/save.svg +1 -0
  364. package/src/assets/icons/search.svg +3 -0
  365. package/src/assets/icons/send.svg +1 -0
  366. package/src/assets/icons/send_solid.svg +3 -0
  367. package/src/assets/icons/settings.svg +4 -0
  368. package/src/assets/icons/settings_solid.svg +3 -0
  369. package/src/assets/icons/settings_tools.svg +3 -0
  370. package/src/assets/icons/shield.svg +4 -0
  371. package/src/assets/icons/shield_blue.svg +5 -0
  372. package/src/assets/icons/shield_colored.svg +5 -0
  373. package/src/assets/icons/shield_usd.svg +3 -0
  374. package/src/assets/icons/shop.svg +1 -0
  375. package/src/assets/icons/shopping_cart.svg +1 -0
  376. package/src/assets/icons/shuffle.svg +7 -0
  377. package/src/assets/icons/sign_out.svg +8 -0
  378. package/src/assets/icons/skype.svg +56 -0
  379. package/src/assets/icons/skype_colored.svg +4 -0
  380. package/src/assets/icons/slack.svg +6 -0
  381. package/src/assets/icons/smile_star_eye.svg +6 -0
  382. package/src/assets/icons/sort_asc.svg +4 -0
  383. package/src/assets/icons/sort_az.svg +4 -0
  384. package/src/assets/icons/sort_desc.svg +4 -0
  385. package/src/assets/icons/sort_directions.svg +3 -0
  386. package/src/assets/icons/sort_list.svg +1 -0
  387. package/src/assets/icons/sort_za.svg +4 -0
  388. package/src/assets/icons/spy_colored.svg +15 -0
  389. package/src/assets/icons/staff.svg +10 -0
  390. package/src/assets/icons/star.svg +1 -0
  391. package/src/assets/icons/star_round.svg +3 -0
  392. package/src/assets/icons/star_round_solid.svg +3 -0
  393. package/src/assets/icons/stars.svg +4 -0
  394. package/src/assets/icons/stars_fill.svg +4 -0
  395. package/src/assets/icons/stats_icon.svg +8 -0
  396. package/src/assets/icons/steam.svg +12 -0
  397. package/src/assets/icons/steam_colored.svg +15 -0
  398. package/src/assets/icons/studio_icon.svg +7 -0
  399. package/src/assets/icons/subscriptions.svg +1 -0
  400. package/src/assets/icons/suitcase.svg +4 -0
  401. package/src/assets/icons/supervised_user_circle.svg +1 -0
  402. package/src/assets/icons/support.svg +7 -0
  403. package/src/assets/icons/swap_cubes.svg +5 -0
  404. package/src/assets/icons/swap_cubes_colored.svg +6 -0
  405. package/src/assets/icons/swap_horizontal_circle.svg +3 -0
  406. package/src/assets/icons/switches.svg +3 -0
  407. package/src/assets/icons/table.svg +1 -0
  408. package/src/assets/icons/telegram.svg +40 -0
  409. package/src/assets/icons/telegram_colored.svg +12 -0
  410. package/src/assets/icons/tether.svg +8 -0
  411. package/src/assets/icons/tether_colored.svg +4 -0
  412. package/src/assets/icons/three_dots.svg +3 -0
  413. package/src/assets/icons/thumb_down.svg +4 -0
  414. package/src/assets/icons/thumb_up.svg +4 -0
  415. package/src/assets/icons/tiktok.svg +8 -0
  416. package/src/assets/icons/time.svg +3 -0
  417. package/src/assets/icons/time_thin.svg +3 -0
  418. package/src/assets/icons/timelapse.svg +4 -0
  419. package/src/assets/icons/timeline.svg +1 -0
  420. package/src/assets/icons/tipalti.svg +48 -0
  421. package/src/assets/icons/transaction.svg +1 -0
  422. package/src/assets/icons/twitter_colored.svg +4 -0
  423. package/src/assets/icons/unarchive.svg +1 -0
  424. package/src/assets/icons/unfold_more.svg +1 -0
  425. package/src/assets/icons/unlock.svg +3 -0
  426. package/src/assets/icons/upload_img.svg +1 -0
  427. package/src/assets/icons/usd_coin_colored.svg +5 -0
  428. package/src/assets/icons/user.svg +3 -0
  429. package/src/assets/icons/user_edit.svg +3 -0
  430. package/src/assets/icons/user_kyc.svg +8 -0
  431. package/src/assets/icons/viber.svg +17 -0
  432. package/src/assets/icons/viber_colored.svg +8 -0
  433. package/src/assets/icons/videoblocks.svg +8 -0
  434. package/src/assets/icons/vidiq-logo-mono.svg +10 -0
  435. package/src/assets/icons/vidiq_circle.svg +5 -0
  436. package/src/assets/icons/visibility.svg +4 -0
  437. package/src/assets/icons/visibility_off.svg +7 -0
  438. package/src/assets/icons/vkontakte.svg +1 -0
  439. package/src/assets/icons/vkontakte_colored.svg +4 -0
  440. package/src/assets/icons/wallet.svg +5 -0
  441. package/src/assets/icons/warning.svg +3 -0
  442. package/src/assets/icons/webmoney.svg +10 -0
  443. package/src/assets/icons/webmoney_colored.svg +4 -0
  444. package/src/assets/icons/website_colored.svg +4 -0
  445. package/src/assets/icons/whatsapp.svg +12 -0
  446. package/src/assets/icons/whatsapp_colored.svg +4 -0
  447. package/src/assets/icons/wise_colored.svg +4 -0
  448. package/src/assets/icons/worldfirst.svg +12 -0
  449. package/src/assets/icons/x_network.svg +4 -0
  450. package/src/assets/icons/yandexmoney.svg +1 -0
  451. package/src/assets/icons/yoomoney_colored.svg +4 -0
  452. package/src/assets/icons/youtube.svg +3 -0
  453. package/src/assets/icons/youtube_circled.svg +4 -0
  454. package/src/assets/icons/youtube_circled_second.svg +4 -0
  455. package/src/assets/icons/youtube_colored.svg +4 -0
  456. package/src/assets/icons/youtube_outlined.svg +4 -0
  457. package/src/assets/icons/zcash_colored.svg +4 -0
  458. package/src/assets/iconsSprite.svg +1 -0
  459. package/src/assets/img/no_table_data.png +0 -0
  460. package/src/assets/img/no_user.png +0 -0
  461. package/src/assets/main.scss +233 -0
  462. package/src/assets/styles/_functions.scss +187 -0
  463. package/src/assets/styles/_mixins.scss +664 -0
  464. package/src/assets/styles/_spacing.scss +33 -0
  465. package/src/assets/styles/_tooltip.scss +123 -0
  466. package/src/assets/styles/_variables.scss +23 -0
  467. package/src/assets/styles/main.scss +4 -0
  468. package/src/assets/styles/table.scss +10 -0
  469. package/src/assets/styles/toast.scss +57 -0
  470. package/src/assets/tokens/animations.scss +57 -0
  471. package/src/assets/tokens/border-radius.scss +23 -0
  472. package/src/assets/tokens/box-shadows.scss +22 -0
  473. package/src/assets/tokens/colors.scss +81 -0
  474. package/src/assets/tokens/durations.scss +13 -0
  475. package/src/assets/tokens/easings.scss +6 -0
  476. package/src/assets/tokens/font-families.scss +8 -0
  477. package/src/assets/tokens/font-sizes.scss +23 -0
  478. package/src/assets/tokens/font-weights.scss +16 -0
  479. package/src/assets/tokens/gradients.scss +18 -0
  480. package/src/assets/tokens/json/animations.json +6 -0
  481. package/src/assets/tokens/json/border-radius.json +24 -0
  482. package/src/assets/tokens/json/box-shadows.json +24 -0
  483. package/src/assets/tokens/json/colors.json +71 -0
  484. package/src/assets/tokens/json/durations.json +10 -0
  485. package/src/assets/tokens/json/easings.json +3 -0
  486. package/src/assets/tokens/json/font-families.json +4 -0
  487. package/src/assets/tokens/json/font-sizes.json +18 -0
  488. package/src/assets/tokens/json/font-weights.json +12 -0
  489. package/src/assets/tokens/json/gradients.json +13 -0
  490. package/src/assets/tokens/json/index.ts +37 -0
  491. package/src/assets/tokens/json/letter-spacings.json +4 -0
  492. package/src/assets/tokens/json/line-heights.json +18 -0
  493. package/src/assets/tokens/json/media-queries.json +26 -0
  494. package/src/assets/tokens/json/opacities.json +5 -0
  495. package/src/assets/tokens/json/sizes.json +42 -0
  496. package/src/assets/tokens/json/spacings.json +34 -0
  497. package/src/assets/tokens/json/z-indexes.json +12 -0
  498. package/src/assets/tokens/letter-spacings.scss +6 -0
  499. package/src/assets/tokens/line-heights.scss +22 -0
  500. package/src/assets/tokens/media-queries.scss +32 -0
  501. package/src/assets/tokens/opacities.scss +8 -0
  502. package/src/assets/tokens/sizes.scss +47 -0
  503. package/src/assets/tokens/spacings.scss +38 -0
  504. package/src/assets/tokens/z-indexes.scss +14 -0
  505. package/src/components/elements/McAvatar/McAvatar.stories.ts +71 -0
  506. package/src/components/elements/McAvatar/McAvatar.vue +253 -0
  507. package/src/components/elements/McBadge/McBadge.stories.ts +40 -0
  508. package/src/components/elements/McBadge/McBadge.vue +150 -0
  509. package/src/components/elements/McBottomLoader/McBottomLoader.stories.ts +47 -0
  510. package/src/components/elements/McBottomLoader/McBottomLoader.vue +79 -0
  511. package/src/components/elements/McButton/McButton.stories.ts +145 -0
  512. package/src/components/elements/McButton/McButton.vue +844 -0
  513. package/src/components/elements/McChip/McChip.stories.ts +102 -0
  514. package/src/components/elements/McChip/McChip.vue +309 -0
  515. package/src/components/elements/McCropper/McCropper.stories.ts +31 -0
  516. package/src/components/elements/McCropper/McCropper.vue +129 -0
  517. package/src/components/elements/McDatepicker/McDatepicker.stories.ts +440 -0
  518. package/src/components/elements/McDatepicker/McDatepicker.vue +832 -0
  519. package/src/components/elements/McDraggable/McDraggable.stories.ts +52 -0
  520. package/src/components/elements/McDraggable/McDraggable.vue +211 -0
  521. package/src/components/elements/McFieldCheckbox/McFieldCheckbox.vue +329 -0
  522. package/src/components/elements/McFieldCheckbox/McFieldCheckox.stories.ts +97 -0
  523. package/src/components/elements/McFieldRadio/McFieldRadio.stories.ts +91 -0
  524. package/src/components/elements/McFieldRadio/McFieldRadio.vue +258 -0
  525. package/src/components/elements/McFieldRadioGroup/McFieldRadioGroup.stories.ts +70 -0
  526. package/src/components/elements/McFieldRadioGroup/McFieldRadioGroup.vue +215 -0
  527. package/src/components/elements/McFieldRange/McFieldRange.stories.ts +93 -0
  528. package/src/components/elements/McFieldRange/McFieldRange.vue +279 -0
  529. package/src/components/elements/McFieldSelect/McFieldSelect.stories.ts +257 -0
  530. package/src/components/elements/McFieldSelect/McFieldSelect.vue +920 -0
  531. package/src/components/elements/McFieldText/McFieldText.stories.ts +258 -0
  532. package/src/components/elements/McFieldText/McFieldText.vue +898 -0
  533. package/src/components/elements/McFieldToggle/McFieldToggle.stories.ts +63 -0
  534. package/src/components/elements/McFieldToggle/McFieldToggle.vue +280 -0
  535. package/src/components/elements/McInfinityLoadingTrigger/McInfinityLoadingTrigger.stories.ts +49 -0
  536. package/src/components/elements/McInfinityLoadingTrigger/McInfinityLoadingTrigger.vue +95 -0
  537. package/src/components/elements/McNodata/McNoData.stories.ts +34 -0
  538. package/src/components/elements/McNodata/McNoData.vue +191 -0
  539. package/src/components/elements/McNotification/McNotification.stories.ts +43 -0
  540. package/src/components/elements/McNotification/McNotification.vue +219 -0
  541. package/src/components/elements/McProgress/McProgress.stories.ts +39 -0
  542. package/src/components/elements/McProgress/McProgress.vue +194 -0
  543. package/src/components/elements/McSeparator/McSeparator.stories.ts +35 -0
  544. package/src/components/elements/McSeparator/McSeparator.vue +131 -0
  545. package/src/components/elements/McSlideUpDown/McSlideUpDown.stories.ts +54 -0
  546. package/src/components/elements/McSlideUpDown/McSlideUpDown.vue +142 -0
  547. package/src/components/elements/McStack/McStack.stories.ts +108 -0
  548. package/src/components/elements/McStack/McStack.vue +147 -0
  549. package/src/components/elements/McSvgIcon/McSvgIcon.stories.ts +135 -0
  550. package/src/components/elements/McSvgIcon/McSvgIcon.vue +114 -0
  551. package/src/components/elements/McTitle/McTitle.stories.ts +73 -0
  552. package/src/components/elements/McTitle/McTitle.vue +368 -0
  553. package/src/components/elements/McTooltip/McTooltip.stories.ts +39 -0
  554. package/src/components/elements/McTooltip/McTooltip.vue +85 -0
  555. package/src/components/index.ts +136 -0
  556. package/src/components/patterns/McAccordion/McAccordion.stories.ts +99 -0
  557. package/src/components/patterns/McAccordion/McAccordion.vue +65 -0
  558. package/src/components/patterns/McCell/McCell.stories.ts +36 -0
  559. package/src/components/patterns/McCell/McCell.vue +96 -0
  560. package/src/components/patterns/McCollapse/McCollapse.stories.ts +100 -0
  561. package/src/components/patterns/McCollapse/McCollapse.vue +303 -0
  562. package/src/components/patterns/McDropdown/McDropdown.stories.ts +65 -0
  563. package/src/components/patterns/McDropdown/McDropdown.vue +297 -0
  564. package/src/components/patterns/McDropdown/McDropdownPanel.vue +65 -0
  565. package/src/components/patterns/McFilter/McFilter.stories.ts +76 -0
  566. package/src/components/patterns/McFilter/McFilter.vue +887 -0
  567. package/src/components/patterns/McFilter/McFilterChip/McFilterChip.stories.ts +37 -0
  568. package/src/components/patterns/McFilter/McFilterChip/McFilterChip.vue +98 -0
  569. package/src/components/patterns/McFilter/McFilterTags/McFilterTags.stories.ts +41 -0
  570. package/src/components/patterns/McFilter/McFilterTags/McFilterTags.vue +377 -0
  571. package/src/components/patterns/McFilter/McFilterTypeDate/McFilterTypeDate.stories.ts +29 -0
  572. package/src/components/patterns/McFilter/McFilterTypeDate/McFilterTypeDate.vue +69 -0
  573. package/src/components/patterns/McFilter/McFilterTypeRange/McFilterTypeRange.stories.ts +26 -0
  574. package/src/components/patterns/McFilter/McFilterTypeRange/McFilterTypeRange.vue +139 -0
  575. package/src/components/patterns/McFilter/McFilterTypeRelation/McFilterTypeRelation.stories.ts +26 -0
  576. package/src/components/patterns/McFilter/McFilterTypeRelation/McFilterTypeRelation.vue +247 -0
  577. package/src/components/patterns/McFilter/McFilterTypeText/McFilterTypeText.stories.ts +26 -0
  578. package/src/components/patterns/McFilter/McFilterTypeText/McFilterTypeText.vue +61 -0
  579. package/src/components/patterns/McGridCol/McGridCol.stories.ts +34 -0
  580. package/src/components/patterns/McGridCol/McGridCol.vue +159 -0
  581. package/src/components/patterns/McGridRow/McGridRow.stories.ts +74 -0
  582. package/src/components/patterns/McGridRow/McGridRow.vue +143 -0
  583. package/src/components/patterns/McOverlay/McOverlay.stories.ts +44 -0
  584. package/src/components/patterns/McOverlay/McOverlay.vue +77 -0
  585. package/src/components/patterns/McPreview/McPreview.stories.ts +45 -0
  586. package/src/components/patterns/McPreview/McPreview.vue +109 -0
  587. package/src/components/patterns/McSideBar/McSideBar.stories.ts +54 -0
  588. package/src/components/patterns/McSideBar/McSideBar.vue +378 -0
  589. package/src/components/patterns/McSideBar/McSideBarBottom/McSideBarBottom.stories.ts +32 -0
  590. package/src/components/patterns/McSideBar/McSideBarBottom/McSideBarBottom.vue +116 -0
  591. package/src/components/patterns/McSideBar/McSideBarButton/McSideBarButton.stories.ts +23 -0
  592. package/src/components/patterns/McSideBar/McSideBarButton/McSideBarButton.vue +232 -0
  593. package/src/components/patterns/McSideBar/McSideBarCenter/McSideBarCenter.stories.ts +34 -0
  594. package/src/components/patterns/McSideBar/McSideBarCenter/McSideBarCenter.vue +342 -0
  595. package/src/components/patterns/McSideBar/McSideBarTop/McSideBarTop.stories.ts +40 -0
  596. package/src/components/patterns/McSideBar/McSideBarTop/McSideBarTop.vue +211 -0
  597. package/src/components/patterns/McTab/McTab.stories.ts +23 -0
  598. package/src/components/patterns/McTab/McTab.vue +209 -0
  599. package/src/components/patterns/McTabs/McTabs.stories.ts +96 -0
  600. package/src/components/patterns/McTabs/McTabs.vue +387 -0
  601. package/src/components/patterns/McWrapScroll/McWrapScroll.stories.ts +56 -0
  602. package/src/components/patterns/McWrapScroll/McWrapScroll.vue +305 -0
  603. package/src/components/templates/McDrawer/McDrawer.stories.ts +88 -0
  604. package/src/components/templates/McDrawer/McDrawer.vue +217 -0
  605. package/src/components/templates/McDrawer/McDrawerContainer.vue +54 -0
  606. package/src/components/templates/McDrawer/McDrawerContentTemplate/McDrawerContentTemplate.stories.ts +33 -0
  607. package/src/components/templates/McDrawer/McDrawerContentTemplate/McDrawerContentTemplate.vue +88 -0
  608. package/src/components/templates/McModal/McModal.stories.ts +92 -0
  609. package/src/components/templates/McModal/McModal.vue +716 -0
  610. package/src/components/templates/McModal/McModalContainer.vue +51 -0
  611. package/src/components/templates/McTable/McTable/McTable.stories.ts +192 -0
  612. package/src/components/templates/McTable/McTable/McTable.vue +650 -0
  613. package/src/components/templates/McTable/McTableCard/McTableCard.stories.ts +94 -0
  614. package/src/components/templates/McTable/McTableCard/McTableCard.vue +239 -0
  615. package/src/components/templates/McTable/McTableCard/McTableCardHeader/McTableCardHeader.vue +74 -0
  616. package/src/components/templates/McTable/McTableSkeletonLoading/McTableSkeletonLoading.vue +155 -0
  617. package/src/components/templates/McTable/McTableSort/McTableSort.vue +66 -0
  618. package/src/components/templates/McTopBar/McTopBar.stories.ts +68 -0
  619. package/src/components/templates/McTopBar/McTopBar.vue +149 -0
  620. package/src/components/templates/McVirtualScroll/McVirtualScroll.stories.ts +59 -0
  621. package/src/components/templates/McVirtualScroll/McVirtualScroll.vue +124 -0
  622. package/src/composables/index.ts +9 -0
  623. package/src/composables/useDrawer.ts +90 -0
  624. package/src/composables/useEncodeDecode.ts +22 -0
  625. package/src/composables/useFieldErrors.ts +24 -0
  626. package/src/composables/useHelper.ts +85 -0
  627. package/src/composables/useModal.ts +88 -0
  628. package/src/composables/useRandomNumber.ts +10 -0
  629. package/src/composables/useTooltip.ts +174 -0
  630. package/src/consts/table.ts +6 -0
  631. package/src/enums/Cell.ts +5 -0
  632. package/src/enums/Chip.ts +10 -0
  633. package/src/enums/Datepicker.ts +38 -0
  634. package/src/enums/Drawer.ts +4 -0
  635. package/src/enums/Dropdown.ts +11 -0
  636. package/src/enums/Filter.ts +13 -0
  637. package/src/enums/Grid.ts +21 -0
  638. package/src/enums/Input.ts +19 -0
  639. package/src/enums/Modal.ts +4 -0
  640. package/src/enums/Preview.ts +5 -0
  641. package/src/enums/Radio.ts +4 -0
  642. package/src/enums/RadioGroup.ts +4 -0
  643. package/src/enums/Select.ts +10 -0
  644. package/src/enums/Sidebar.ts +4 -0
  645. package/src/enums/Tab.ts +5 -0
  646. package/src/enums/Title.ts +20 -0
  647. package/src/enums/Tooltip.ts +14 -0
  648. package/src/enums/index.ts +23 -0
  649. package/src/enums/ui/Alignment.ts +5 -0
  650. package/src/enums/ui/Button.ts +23 -0
  651. package/src/enums/ui/Directions.ts +4 -0
  652. package/src/enums/ui/Weights.ts +6 -0
  653. package/src/index.js +16 -0
  654. package/src/main.ts +9 -0
  655. package/src/mocks/authUser.ts +163 -0
  656. package/src/mocks/categories.js +107 -0
  657. package/src/mocks/filterMocks.ts +133 -0
  658. package/src/mocks/icons.json +1 -0
  659. package/src/mocks/menuLangs.ts +20 -0
  660. package/src/mocks/selectOptions.json +111 -0
  661. package/src/mocks/sidebar.ts +131 -0
  662. package/src/mocks/tableData.ts +8338 -0
  663. package/src/types/IButton.ts +48 -0
  664. package/src/types/ICell.ts +5 -0
  665. package/src/types/IChip.ts +13 -0
  666. package/src/types/ICollapse.ts +15 -0
  667. package/src/types/IDatepicker.ts +44 -0
  668. package/src/types/IDirections.ts +5 -0
  669. package/src/types/IDrawer.ts +29 -0
  670. package/src/types/IDropdown.ts +6 -0
  671. package/src/types/IFilter.ts +185 -0
  672. package/src/types/IGrid.ts +4 -0
  673. package/src/types/IInput.ts +6 -0
  674. package/src/types/IModal.ts +30 -0
  675. package/src/types/IPreview.ts +5 -0
  676. package/src/types/IRadio.ts +5 -0
  677. package/src/types/IRadioGroup.ts +12 -0
  678. package/src/types/IRoute.ts +14 -0
  679. package/src/types/ISelect.ts +19 -0
  680. package/src/types/ISideBar.ts +76 -0
  681. package/src/types/ITable.ts +76 -0
  682. package/src/types/ITabs.ts +33 -0
  683. package/src/types/ITitle.ts +6 -0
  684. package/src/types/ITooltip.ts +30 -0
  685. package/src/types/index.ts +39 -0
  686. package/src/types/styles/Alignment.ts +4 -0
  687. package/src/types/styles/AvatarSizes.ts +5 -0
  688. package/src/types/styles/Colors.ts +6 -0
  689. package/src/types/styles/Durations.ts +6 -0
  690. package/src/types/styles/FontSizes.ts +5 -0
  691. package/src/types/styles/FontWeights.ts +6 -0
  692. package/src/types/styles/Grid.ts +18 -0
  693. package/src/types/styles/Icons.ts +4 -0
  694. package/src/types/styles/LineHeights.ts +5 -0
  695. package/src/types/styles/MediaQueries.ts +5 -0
  696. package/src/types/styles/Radiuses.ts +5 -0
  697. package/src/types/styles/Sizes.ts +6 -0
  698. package/src/types/styles/Spaces.ts +6 -0
  699. package/src/types/styles/Weights.ts +3 -0
  700. package/src/utils/dayjs.js +22 -0
  701. package/src/utils/mcGridColAdaptiveProps.ts +15 -0
  702. package/src/utils/mcTitleAdaptiveProps.ts +15 -0
  703. /package/dist/{index.es.js → mediacube-ui-v2.js} +0 -0
  704. /package/dist/{index.umd.js → mediacube-ui-v2.umd.cjs} +0 -0
@@ -0,0 +1,898 @@
1
+ <script setup lang="ts">
2
+ import { IMaskComponent, IMask } from 'vue-imask'
3
+ import McTitle from '@/components/elements/McTitle/McTitle.vue'
4
+ import McButton from '@/components/elements/McButton/McButton.vue'
5
+ import McSvgIcon from '@/components/elements/McSvgIcon/McSvgIcon.vue'
6
+ import McTooltip from '@/components/elements/McTooltip/McTooltip.vue'
7
+ import { Spaces } from '@/types/styles/Spaces'
8
+ import { computed, onMounted, type PropType, ref, useAttrs, useSlots } from 'vue'
9
+ import type { DirectionsUnion } from '@/types/IDirections'
10
+ import { Directions } from '@/enums/ui/Directions'
11
+ import type { InputTypesUnion, InputValue } from '@/types/IInput'
12
+ import { useFieldErrors } from '@/composables/useFieldErrors'
13
+ import { InputTypes, Autocomplete } from '@/enums/Input'
14
+ import type { IconsListUnion } from '@/types/styles/Icons'
15
+ import { type ColorTypes } from '@/types/styles/Colors'
16
+ import { useTextareaAutosize } from '@vueuse/core'
17
+ import { ButtonSize, ButtonType, HorizontalAlignment, TitleVariations, Weights } from '@/enums'
18
+
19
+ const { textarea } = useTextareaAutosize()
20
+ const emit = defineEmits(['update:modelValue', 'keydown', 'copy'])
21
+ const slots = useSlots()
22
+ const attrs = useAttrs()
23
+ const props = defineProps({
24
+ /**
25
+ * Значение
26
+ *
27
+ */
28
+ modelValue: {
29
+ type: [String, Number] as PropType<InputValue>,
30
+ default: null
31
+ },
32
+ /**
33
+ * Тип:
34
+ * `textarea, textarea-autosize и
35
+ * нативные как text, password, email и т.д.`
36
+ *
37
+ * кастомный num - разрешает ввод только цифр и дробных чисел, без ислчений ввиде буквы 'E'
38
+ * кастомный int - разрешает ввод только целочисленных значений
39
+ * кастомный amount_format - форматирует ввод числовых данных разделяя на разряды(1 000 000)
40
+ * date - добавляет placeholder, маску и ограничения ввода
41
+ * uppercase\lowercase - форматирует текст согласну значению (верхний\нижний регистр)
42
+ * phone_number - добавляет '+' к номеру телефона при фокусе без возможности удалить его
43
+ */
44
+ type: {
45
+ type: String as () => InputTypesUnion,
46
+ default: InputTypes.Text
47
+ },
48
+
49
+ /**
50
+ * Заголовок поля:
51
+ *
52
+ */
53
+ title: {
54
+ type: String as PropType<string>,
55
+ default: null
56
+ },
57
+
58
+ /**
59
+ * Маска поля:
60
+ *
61
+ * tokens - https://imask.js.org/guide.html
62
+ *
63
+ */
64
+ mask: {
65
+ type: String as PropType<string>,
66
+ default: null
67
+ },
68
+
69
+ /**
70
+ * Вспомогательный текст под инпутом:
71
+ *
72
+ */
73
+ helpText: {
74
+ type: String as PropType<string>,
75
+ default: null
76
+ },
77
+
78
+ /**
79
+ * Отключенное состояние
80
+ *
81
+ */
82
+ disabled: {
83
+ type: Boolean as PropType<boolean>,
84
+ default: false
85
+ },
86
+
87
+ /**
88
+ * Ошибки
89
+ *
90
+ */
91
+ errors: {
92
+ type: Array as PropType<string[]>,
93
+ default: null
94
+ },
95
+
96
+ /**
97
+ * Placeholder
98
+ *
99
+ */
100
+ placeholder: {
101
+ type: String as PropType<string>,
102
+ default: null
103
+ },
104
+
105
+ /**
106
+ * Name
107
+ *
108
+ */
109
+ name: {
110
+ type: String as PropType<string>,
111
+ required: true
112
+ },
113
+ /**
114
+ * плейсхолдеры для короткого обозначения даты (для маски dd.mm.yyyy)
115
+ * {
116
+ * date: 'd',
117
+ * month: 'm',
118
+ * year: 'y',
119
+ * }
120
+ *
121
+ */
122
+ dateMaskPlaceholder: {
123
+ type: Object,
124
+ default: () => ({})
125
+ },
126
+ /**
127
+ * Максимальная длина строки в инпуте
128
+ *
129
+ */
130
+ maxLength: {
131
+ type: Number as PropType<number>,
132
+ default: null
133
+ },
134
+
135
+ /**
136
+ * Состояние копирования
137
+ *
138
+ */
139
+ copy: {
140
+ type: Boolean as PropType<boolean>,
141
+ default: false
142
+ },
143
+
144
+ /**
145
+ * Автокомплит введённого ранее текста: on, off
146
+ *
147
+ */
148
+ autocomplete: {
149
+ type: String as () => Autocomplete,
150
+ default: Autocomplete.On
151
+ },
152
+
153
+ /**
154
+ * только чтение текста
155
+ *
156
+ */
157
+ readOnly: {
158
+ type: Boolean as PropType<boolean>,
159
+ default: false
160
+ },
161
+
162
+ /**
163
+ * Атрибут tabindex для главного элемента
164
+ *
165
+ */
166
+ tabindex: {
167
+ type: [String, Number]
168
+ },
169
+
170
+ /**
171
+ * Tooltip для кнопка "показать пароль"
172
+ *
173
+ */
174
+ passwordTooltip: {
175
+ type: String as PropType<string>,
176
+ default: 'Show/Hide'
177
+ },
178
+
179
+ /**
180
+ * Tooltip для кнопка "Скрыть пароль", если не указывать, то будет аналогичен "показать"
181
+ *
182
+ */
183
+ passwordHideTooltip: {
184
+ type: String as PropType<string>,
185
+ default: null
186
+ },
187
+
188
+ /**
189
+ * Очищаем данные от маски на выходе
190
+ */
191
+ clearOutput: {
192
+ type: Boolean as PropType<boolean>,
193
+ default: false
194
+ },
195
+
196
+ /**
197
+ * Кастомные настройки для маски
198
+ * См. https://imask.js.org/guide.html
199
+ *
200
+ * Например:
201
+ * {
202
+ * autofix: true,
203
+ * blocks: {
204
+ * d: {mask: IMask.MaskedRange, placeholderChar: 'd', from: 1, to: 31, maxLength: 2},
205
+ * m: {mask: IMask.MaskedRange, placeholderChar: 'm', from: 1, to: 12, maxLength: 2},
206
+ * Y: {mask: IMask.MaskedRange, placeholderChar: 'y', from: 1900, to: 2999, maxLength: 4}
207
+ * }
208
+ * }
209
+ */
210
+ maskOptions: {
211
+ type: Object,
212
+ default: null
213
+ },
214
+ required: {
215
+ type: Boolean as PropType<boolean>,
216
+ default: false
217
+ },
218
+ /**
219
+ * Для какого языка поле ввода
220
+ */
221
+ locale: {
222
+ type: String as PropType<string>,
223
+ default: null
224
+ },
225
+ /**
226
+ * Мобильное ли разрешение
227
+ * (Используется для триггера тултипа в кнопке с паролем)
228
+ */
229
+ isMobile: {
230
+ type: Boolean as PropType<boolean>,
231
+ default: false
232
+ },
233
+ /**
234
+ * Свойство на ограничение количества символов после точки для числовых типов (num || amount_format)
235
+ */
236
+ maxDecimals: {
237
+ type: Number as PropType<number>,
238
+ default: 2
239
+ },
240
+ dir: {
241
+ type: String as () => DirectionsUnion,
242
+ default: Directions.Ltr
243
+ }
244
+ })
245
+
246
+ const prependWidth = ref<number>(0)
247
+ const appendWidth = ref<number>(0)
248
+ const prettyType = ref<string>(props.type)
249
+ const fieldErrors = useFieldErrors(props.errors)
250
+
251
+ const isRtl = computed((): boolean => {
252
+ return props.dir === Directions.Rtl
253
+ })
254
+
255
+ const classes = computed((): { [key: string]: boolean } => {
256
+ return {
257
+ 'mc-field-text': true,
258
+ 'mc-field-text--error': !!fieldErrors.errorText.value,
259
+ 'mc-field-text--textarea': isTextarea.value,
260
+ 'mc-field-text--textarea-autosize': isTextareaAutosize.value,
261
+ 'mc-field-text--disabled': props.disabled,
262
+ 'mc-field-text--copy': props.copy,
263
+ 'mc-field-text--rtl': isRtl.value
264
+ }
265
+ })
266
+ const computedTitle = computed((): string => {
267
+ return `${props.title}${props.required ? ' *' : ''}`
268
+ })
269
+ const isDate = computed((): boolean => {
270
+ return prettyType.value === InputTypes.Date
271
+ })
272
+ const isMaskVisible = computed((): boolean => {
273
+ return !!props.mask || !!props.maskOptions || isDate.value
274
+ })
275
+ const isTextarea = computed((): boolean => {
276
+ return props.type === InputTypes.Textarea
277
+ })
278
+ const isTextareaAutosize = computed((): boolean => {
279
+ return props.type === InputTypes.TextareaAutosize
280
+ })
281
+ const isPassword = computed((): boolean => {
282
+ return props.type === InputTypes.Password
283
+ })
284
+ const isAmountFormat = computed((): boolean => {
285
+ return props.type === InputTypes.AmountFormat
286
+ })
287
+ const hasCharCounter = computed((): boolean => {
288
+ return !!props.maxLength && (isTextarea.value || isTextareaAutosize.value)
289
+ })
290
+ const isPasswordType = computed((): boolean => {
291
+ return prettyType.value === InputTypes.Password
292
+ })
293
+ const passwordIcon = computed((): IconsListUnion => {
294
+ return isPasswordType.value ? 'visibility' : 'visibility_off'
295
+ })
296
+ const charCounter = computed((): string | number => {
297
+ return props.modelValue ? String(props.modelValue).length : 0
298
+ })
299
+ const charCounterTitle = computed((): string => {
300
+ return `${charCounter.value}/${props.maxLength}`
301
+ })
302
+ const charCounterColor = computed((): ColorTypes => {
303
+ return props.maxLength < +charCounter.value ? 'red' : 'dark-gray'
304
+ })
305
+ const dateMask = computed((): object => {
306
+ return {
307
+ mask: Date,
308
+ autofix: true,
309
+ blocks: {
310
+ d: {
311
+ mask: IMask.MaskedRange,
312
+ placeholderChar: props.dateMaskPlaceholder.date || 'd',
313
+ from: 1,
314
+ to: 31,
315
+ maxLength: 2
316
+ },
317
+ m: {
318
+ mask: IMask.MaskedRange,
319
+ placeholderChar: props.dateMaskPlaceholder.month || 'm',
320
+ from: 1,
321
+ to: 12,
322
+ maxLength: 2
323
+ },
324
+ Y: {
325
+ mask: IMask.MaskedRange,
326
+ placeholderChar: props.dateMaskPlaceholder.year || 'y',
327
+ from: 1900,
328
+ to: 2999,
329
+ maxLength: 4
330
+ }
331
+ }
332
+ }
333
+ })
334
+ const maskInputAttrs = computed((): object => {
335
+ return {
336
+ ...inputAttrs.value,
337
+ mask: props.mask,
338
+ lazy: false,
339
+ overwrite: false,
340
+ unmask: props.clearOutput,
341
+ definitions: {
342
+ '#': /./
343
+ },
344
+ readonly: props.readOnly,
345
+ maxlength: props.maxLength,
346
+ type: 'tel',
347
+ ...attrs,
348
+ ...(props.maskOptions ?? {}),
349
+ ...(isDate.value ? dateMask.value : {})
350
+ }
351
+ })
352
+
353
+ const computedValue = computed({
354
+ get() {
355
+ if (isAmountFormat.value && !isRtl.value) {
356
+ return getAmountFormat(String(props.modelValue))
357
+ } else return props.modelValue
358
+ },
359
+ set(value) {
360
+ fieldErrors.toggleErrorVisible()
361
+ emit('update:modelValue', value)
362
+ }
363
+ })
364
+
365
+ const handleInput = (e: Event): void => {
366
+ computedValue.value = getPreparedInputValue(e)
367
+ }
368
+ const inputAttrs = computed((): object => {
369
+ return {
370
+ style: inputStyles.value,
371
+ placeholder: props.placeholder,
372
+ disabled: props.disabled,
373
+ name: props.name,
374
+ id: props.name,
375
+ autocomplete: props.autocomplete,
376
+ tabindex: props.tabindex,
377
+ ...attrs,
378
+ class: ['mc-field-text__input', attrs.class || ''].join(' ')
379
+ }
380
+ })
381
+ const inputStyles = computed((): object => {
382
+ const space = parseInt(Spaces['150'])
383
+ let bottomStyle = {}
384
+ if (isTextarea.value || isTextareaAutosize.value) {
385
+ const spaceBottomToken = hasCharCounter.value ? '400' : '150'
386
+ const spaceBottomValue = Spaces[spaceBottomToken]
387
+ bottomStyle = { paddingBottom: `${+spaceBottomValue.replace('px', '') - 1}px` }
388
+ }
389
+ return {
390
+ paddingInlineStart: prependWidth.value && `${prependWidth.value + space}px`,
391
+ paddingInlineEnd: appendWidth.value && `${appendWidth.value + space}px`,
392
+ ...(!isTextarea.value && !isTextareaAutosize.value ? { boxSizing: 'border-box' } : {}),
393
+ ...bottomStyle
394
+ }
395
+ })
396
+
397
+ onMounted(() => {
398
+ calculatePadding()
399
+ })
400
+
401
+ const setDecimalsLimit = (val: string): string => {
402
+ if (val && props.maxDecimals) {
403
+ const [integerPart, decimalPart] = val.split('.')
404
+ if (decimalPart?.length > props.maxDecimals) {
405
+ return `${integerPart}.${decimalPart.slice(0, props.maxDecimals)}`
406
+ }
407
+ }
408
+ return val
409
+ }
410
+ /**
411
+ * Remove leading zero from input if length > 1 && number isn't decimal
412
+ * */
413
+ const removeLeadingZero = (val: string): string => {
414
+ let result = val
415
+ const [first_char] = val || []
416
+ if (val.length > 1 && +first_char === 0 && val.indexOf('.') === -1) result = val.slice(1)
417
+ return result
418
+ }
419
+ const getPreparedInputValue = (e: Event): InputValue => {
420
+ const target = e.target as HTMLInputElement
421
+ let value: InputValue = isDate.value && target && target.value ? target.value?.substring(0, 10) : target.value
422
+ let cursor_position: number = getCaretPos(target)?.start
423
+ let prepared_value = formattedToNumber(value)
424
+
425
+ switch (props.type) {
426
+ case InputTypes.Num: {
427
+ //eslint-disable-next-line
428
+ let [num] = /-?\d*[\.]?\d*/.exec(String(value)) || []
429
+ num = setDecimalsLimit(num as string)
430
+ num = removeLeadingZero(num)
431
+ value = num
432
+ target.value = num
433
+ break
434
+ }
435
+ case InputTypes.Int: {
436
+ let [int] = /-?\d*/.exec(String(target.value)) || []
437
+ int = removeLeadingZero(int as string)
438
+ value = int
439
+ target.value = int
440
+ break
441
+ }
442
+ case InputTypes.AmountFormat: {
443
+ value = setDecimalsLimit(value)
444
+ value = removeLeadingZero(value)
445
+ prepared_value = formattedToNumber(value)
446
+
447
+ const float_value = parseFloat(prepared_value)
448
+ const without_spaces_value = prepared_value.replace(/ /gm, '')
449
+
450
+ value = prepared_value
451
+ ? String(float_value) === without_spaces_value
452
+ ? float_value
453
+ : without_spaces_value || float_value || prepared_value
454
+ : null
455
+ const formatted_value = getAmountFormat(prepared_value)
456
+ target.value = isRtl.value ? formatted_value.replace(/ /gm, '') : formatted_value
457
+ const space_length = target.value?.slice(0, cursor_position).replace(/[^ ]/gm, '')?.length || 0
458
+ setCaretPos(target, cursor_position + space_length, cursor_position + space_length)
459
+ break
460
+ }
461
+ case InputTypes.Uppercase: {
462
+ value = value?.toUpperCase()
463
+ target.value = value
464
+ setCaretPos(target, cursor_position, cursor_position)
465
+ break
466
+ }
467
+ case InputTypes.Lowercase: {
468
+ value = value?.toLowerCase()
469
+ target.value = value
470
+ setCaretPos(target, cursor_position, cursor_position)
471
+ break
472
+ }
473
+ case InputTypes.Password:
474
+ value = value?.replace(/ /gm, '')
475
+ target.value = value
476
+ setCaretPos(target, cursor_position, cursor_position)
477
+ break
478
+ case InputTypes.PhoneNumber:
479
+ if (value.length === 0) value = '+'
480
+ if (value.charAt(0) !== '+') value = '+' + value
481
+ value = value.replace(/(?!^)\D/g, '')
482
+ target.value = value
483
+ break
484
+ }
485
+
486
+ return value
487
+ }
488
+
489
+ const prepareHandleKeyDown = (e: KeyboardEvent): void => {
490
+ switch (props.type) {
491
+ case InputTypes.AmountFormat:
492
+ case InputTypes.Num: {
493
+ if (e.key === '.' && typeof props.modelValue === 'string' && props.modelValue?.includes('.')) {
494
+ e.preventDefault()
495
+ }
496
+ break
497
+ }
498
+ }
499
+ emit('keydown', e)
500
+ }
501
+
502
+ const formattedToNumber = (value: string): string => {
503
+ if (!value) return value as string
504
+ //eslint-disable-next-line
505
+ const [first] = /-?\d*[\.]?\d*/.exec(String(value)?.replace(/ /gm, '')?.trim()) || []
506
+
507
+ return first as string
508
+ }
509
+
510
+ const setCaretPos = (ctrl: HTMLInputElement, start: number, end: number): void => {
511
+ if (ctrl.setSelectionRange) {
512
+ ctrl.focus()
513
+ ctrl.setSelectionRange(start, end)
514
+ }
515
+ }
516
+
517
+ const getCaretPos = (ctrl: HTMLInputElement) => {
518
+ if (ctrl.selectionStart || ctrl.selectionStart === 0) {
519
+ return { start: ctrl.selectionStart, end: ctrl.selectionEnd }
520
+ } else {
521
+ return { start: 0, end: 0 }
522
+ }
523
+ }
524
+
525
+ const getAmountFormat = (value: string): string => {
526
+ const formatted_number = formattedToNumber(value)
527
+ const has_fraction = !!String(formatted_number)?.match(/\./)
528
+
529
+ const [int, fraction] = String(formatted_number)
530
+ //eslint-disable-next-line
531
+ .replace(/[^\d\.-]/g, '')
532
+ .replace(/\B(?=(?:\d{3})+(?!\d))/g, ' ')
533
+ .split('.')
534
+
535
+ const formatted_values = [int, fraction?.replace(/ /gm, '') || '']
536
+ if (has_fraction) {
537
+ return formatted_values.join('.')
538
+ }
539
+ return formatted_values.filter((v) => !!v).join('.')
540
+ }
541
+
542
+ const calculatePadding = (): void => {
543
+ prependWidth.value = +calculateSlotPadding('prepend')
544
+ appendWidth.value = +calculateSlotPadding('append')
545
+ }
546
+
547
+ const calculateSlotPadding = (name: string): string => {
548
+ const tokenSpace = parseInt(Spaces['50'])
549
+
550
+ let result = slots[name]
551
+ //@ts-ignore
552
+ ? (slots[name] || []).reduce((acc) => {
553
+ return acc + tokenSpace
554
+ }, 0) + tokenSpace
555
+ : tokenSpace
556
+
557
+ if (name === 'prepend') return result
558
+
559
+ /**
560
+ * Также увеличиваем padding при наличии кнопки копирования и если тип password
561
+ */
562
+
563
+ const iconSpace = parseInt(Spaces['300'])
564
+
565
+ result = result ? result + tokenSpace : tokenSpace
566
+ props.copy && (result += iconSpace)
567
+ isPassword.value && (result += iconSpace)
568
+ return result
569
+ }
570
+
571
+ const handlerCopy = (): void => {
572
+ /**
573
+ * Событие по кнопке копирования
574
+ */
575
+ emit('copy', props.modelValue)
576
+ }
577
+
578
+ const togglePasswordVisibility = (): void => {
579
+ prettyType.value = isPasswordType.value ? InputTypes.Text : InputTypes.Password
580
+ }
581
+ </script>
582
+
583
+ <template>
584
+ <div ref="field" :dir="props.dir" :class="classes">
585
+ <label :for="name" class="mc-field-text__header">
586
+ <!-- @slot Слот заголовка -->
587
+ <slot name="header">
588
+ <mc-title v-if="title" max-width="100%" :weight="Weights.Medium">
589
+ {{ computedTitle }}
590
+ </mc-title>
591
+ </slot>
592
+ </label>
593
+ <div class="mc-field-text__inner">
594
+ <div class="mc-field-text__main">
595
+ <div v-if="$slots.prepend" class="mc-field-text__prepend">
596
+ <!-- @slot Слот в начале инпута -->
597
+ <slot name="prepend" />
598
+ </div>
599
+ <label class="mc-field-text__input-wrapper">
600
+ <textarea
601
+ v-if="isTextarea"
602
+ :value="computedValue"
603
+ v-bind="inputAttrs"
604
+ :maxlength="maxLength"
605
+ rows="1"
606
+ @input="handleInput"
607
+ />
608
+ <textarea
609
+ v-else-if="isTextareaAutosize"
610
+ :value="computedValue"
611
+ ref="textarea"
612
+ v-bind="inputAttrs"
613
+ @input="handleInput"
614
+ />
615
+ <template v-else>
616
+ <!-- When possible, prefer to use input type="tel" to avoid glitch on android devices -->
617
+ <i-mask-component
618
+ v-if="isMaskVisible"
619
+ :value="computedValue"
620
+ v-bind="maskInputAttrs"
621
+ @input="handleInput"
622
+ />
623
+ <input
624
+ v-else
625
+ :value="computedValue"
626
+ ref="input"
627
+ v-bind="inputAttrs"
628
+ :type="prettyType"
629
+ :readonly="props.readOnly"
630
+ :maxlength="maxLength"
631
+ @keydown="prepareHandleKeyDown"
632
+ @input="handleInput"
633
+ />
634
+ </template>
635
+ </label>
636
+ <div
637
+ v-if="$slots.append || copy || isPassword"
638
+ class="mc-field-text__append"
639
+ :class="{ 'mc-field-text__append--indent-bottom': hasCharCounter }"
640
+ >
641
+ <!-- @slot Слот в конце инпута -->
642
+ <slot name="append" />
643
+ <mc-button v-if="copy" variation="black-link" :size="ButtonSize.MCompact" @click.prevent="handlerCopy">
644
+ <template #icon-append>
645
+ <mc-svg-icon name="copy" />
646
+ </template>
647
+ </mc-button>
648
+ <mc-tooltip
649
+ v-if="isPassword"
650
+ :content="isPasswordType ? props.passwordTooltip : props.passwordHideTooltip || props.passwordTooltip"
651
+ >
652
+ <mc-button
653
+ variation="black-link"
654
+ :size="ButtonSize.MCompact"
655
+ tabindex="-1"
656
+ :type="ButtonType.Button"
657
+ @click.prevent="togglePasswordVisibility"
658
+ >
659
+ <template #icon-append>
660
+ <mc-svg-icon :name="passwordIcon" />
661
+ </template>
662
+ </mc-button>
663
+ </mc-tooltip>
664
+ </div>
665
+ <mc-title
666
+ v-if="hasCharCounter"
667
+ class="mc-field-text__char-counter"
668
+ :variation="TitleVariations.Overline"
669
+ :text-align="HorizontalAlignment.Right"
670
+ :color="charCounterColor"
671
+ >
672
+ {{ charCounterTitle }}
673
+ </mc-title>
674
+ </div>
675
+ <div v-if="$slots.right" class="mc-field-text__right">
676
+ <!-- @slot Слот справа инпута -->
677
+ <slot name="right" />
678
+ </div>
679
+ </div>
680
+ <div v-if="fieldErrors.errorText.value || props.helpText || $slots.footer" class="mc-field-text__footer">
681
+ <mc-title
682
+ v-if="fieldErrors.errorText.value"
683
+ tag-name="div"
684
+ color="red"
685
+ :variation="TitleVariations.Overline"
686
+ class="mc-field-text__error-text"
687
+ :html-data="fieldErrors.errorText.value"
688
+ />
689
+ <br v-if="fieldErrors.errorText.value" />
690
+ <!-- @slot Слот доп. текста под инпутом -->
691
+ <slot name="footer">
692
+ <mc-title
693
+ v-if="props.helpText"
694
+ tag-name="div"
695
+ :variation="TitleVariations.Overline"
696
+ color="gray"
697
+ max-width="100%"
698
+ >
699
+ {{ props.helpText }}
700
+ </mc-title>
701
+ </slot>
702
+ </div>
703
+ </div>
704
+ </template>
705
+
706
+ <style lang="scss">
707
+ @use '../../../assets/styles/mixins' as *;
708
+ @use '../../../assets/tokens/durations' as *;
709
+ @use '../../../assets/tokens/font-families' as *;
710
+ @use '../../../assets/tokens/spacings' as *;
711
+ @use '../../../assets/tokens/colors' as *;
712
+ @use '../../../assets/tokens/sizes' as *;
713
+ @use '../../../assets/tokens/font-sizes' as *;
714
+ @use '../../../assets/tokens/line-heights' as *;
715
+ @use '../../../assets/tokens/border-radius' as *;
716
+ .mc-field-text {
717
+ $block-name: &;
718
+ display: block;
719
+
720
+ &__header {
721
+ @include reset-text-indents();
722
+ display: block;
723
+ margin-bottom: $space-100;
724
+
725
+ &:empty {
726
+ display: none;
727
+ }
728
+ }
729
+
730
+ &__inner {
731
+ display: flex;
732
+ align-items: center;
733
+ }
734
+
735
+ &__right {
736
+ flex-shrink: 0;
737
+ }
738
+
739
+ &__main {
740
+ position: relative;
741
+ width: 100%;
742
+ @include custom-scroll($space-50);
743
+ }
744
+
745
+ &__prepend,
746
+ &__append {
747
+ @include reset-text-indents();
748
+ position: absolute;
749
+ top: 50%;
750
+ transform: translateY(-50%);
751
+ display: flex;
752
+ align-items: center;
753
+ justify-content: center;
754
+ height: 100%;
755
+
756
+ &:empty {
757
+ display: none;
758
+ }
759
+
760
+ @include child-indent-right($space-50);
761
+ }
762
+
763
+ &__prepend {
764
+ inset-inline-start: 0;
765
+ padding: $space-100 0;
766
+ padding-inline: $space-100 $space-50;
767
+ }
768
+
769
+ &__append {
770
+ inset-inline-end: $space-100;
771
+ &--indent-bottom {
772
+ padding-bottom: $space-400;
773
+ }
774
+ }
775
+
776
+ &__char-counter {
777
+ width: auto !important;
778
+ position: absolute;
779
+ inset-inline-end: $space-150;
780
+ bottom: $space-150;
781
+ background-color: $color-transparent;
782
+ }
783
+
784
+ &__input-wrapper {
785
+ display: block;
786
+ }
787
+
788
+ &__input {
789
+ font-family: $font-family-main;
790
+ display: inline-block;
791
+ vertical-align: middle;
792
+ width: 100%;
793
+ height: $size-500;
794
+ margin: 0;
795
+ border: 1px solid $color-outline-gray;
796
+ border-radius: $radius-100;
797
+ padding: $space-150 - 1px $space-150;
798
+ line-height: $line-height-200;
799
+ font-size: $font-size-200;
800
+ background-color: $color-white;
801
+ -moz-appearance: textfield;
802
+ transition:
803
+ background-color $duration-s ease,
804
+ border-color $duration-s ease;
805
+ color: $color-black;
806
+
807
+ &:focus,
808
+ &:hover {
809
+ outline: 0;
810
+ border-color: $color-purple;
811
+ }
812
+
813
+ &::-webkit-search-cancel-button,
814
+ &::-webkit-search-decoration,
815
+ &::-webkit-inner-spin-button,
816
+ &::-webkit-outer-spin-button {
817
+ -webkit-appearance: none;
818
+ }
819
+
820
+ @include input-placeholder() {
821
+ color: $color-gray;
822
+ }
823
+ }
824
+
825
+ &__footer {
826
+ margin-top: $space-50;
827
+ line-height: $line-height-150;
828
+
829
+ &:empty {
830
+ display: none;
831
+ }
832
+ }
833
+
834
+ &--error {
835
+ #{$block-name} {
836
+ &__input {
837
+ border-color: $color-red;
838
+ }
839
+ }
840
+ }
841
+
842
+ &--textarea {
843
+ #{$block-name} {
844
+ &__append,
845
+ &__prepend {
846
+ align-items: flex-start;
847
+ }
848
+
849
+ &__input {
850
+ height: auto;
851
+ min-height: 92px;
852
+ resize: vertical;
853
+ }
854
+ }
855
+ }
856
+
857
+ &--textarea-autosize {
858
+ #{$block-name} {
859
+ &__input {
860
+ height: auto;
861
+ resize: vertical;
862
+ }
863
+ }
864
+ }
865
+
866
+ &--disabled {
867
+ #{$block-name} {
868
+ &__input {
869
+ color: $color-gray;
870
+ cursor: not-allowed;
871
+ background-color: $color-hover-gray;
872
+ border-color: $color-outline-gray;
873
+ }
874
+ }
875
+ }
876
+
877
+ &--copy {
878
+ #{$block-name} {
879
+ &__input {
880
+ color: $color-dark-gray;
881
+ background-color: $color-hover-gray;
882
+ border-color: $color-outline-gray;
883
+ }
884
+ }
885
+ }
886
+
887
+ &--rtl {
888
+ direction: rtl;
889
+ input {
890
+ direction: rtl;
891
+ }
892
+ }
893
+
894
+ &__empty-tooltip {
895
+ display: contents;
896
+ }
897
+ }
898
+ </style>