mediacube-ui-v2 0.0.2 → 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,149 @@
1
+ <script setup lang="ts">
2
+ import McAvatar from '@/components/elements/McAvatar/McAvatar.vue'
3
+ import McButton from '@/components/elements/McButton/McButton.vue'
4
+ import McSvgIcon from '@/components/elements/McSvgIcon/McSvgIcon.vue'
5
+ import McSeparator from '@/components/elements/McSeparator/McSeparator.vue'
6
+ import McDropdown from '@/components/patterns/McDropdown/McDropdown.vue'
7
+ import { type PropType, ref } from 'vue'
8
+ import { ButtonSize, DropdownPositions, HorizontalAlignment } from '@/enums'
9
+ import type { IconsListUnion } from '@/types'
10
+
11
+ const props = defineProps({
12
+ /**
13
+ * Данные пользователя
14
+ *
15
+ */
16
+ user: {
17
+ type: Object as PropType<Record<string, any>>,
18
+ default: () => ({})
19
+ },
20
+ /**
21
+ * Меню языков
22
+ *
23
+ */
24
+ menuLangs: {
25
+ type: Array,
26
+ default: () => []
27
+ },
28
+ /**
29
+ * Локализация или текст по умолчанию
30
+ *
31
+ */
32
+ defaultLang: {
33
+ type: String as PropType<string>,
34
+ default: 'Выберите язык'
35
+ },
36
+ /**
37
+ * Текущая локализация
38
+ *
39
+ */
40
+ currentLang: {
41
+ type: String as PropType<string>,
42
+ default: null
43
+ }
44
+ })
45
+
46
+ const menuLangsDD = ref<HTMLElement | null>(null)
47
+ const localesDropdownOpen = ref(false)
48
+ const userDropdownOpen = ref(false)
49
+ </script>
50
+
51
+ <template>
52
+ <div class="mc-top-bar">
53
+ <div class="mc-top-bar__inner">
54
+ <div v-if="$slots.left" class="mc-top-bar__left">
55
+ <slot name="left" />
56
+ </div>
57
+ <div class="mc-top-bar__right">
58
+ <slot name="right" />
59
+ <mc-dropdown
60
+ v-if="menuLangs && menuLangs.length"
61
+ ref="menuLangsDD"
62
+ :items="menuLangs"
63
+ v-model="localesDropdownOpen"
64
+ list-min-width="auto"
65
+ class="mc-top-bar__menu-langs"
66
+ >
67
+ <template #activator>
68
+ <mc-button variation="black-link" uppercase>
69
+ {{ currentLang || defaultLang }}
70
+ <template #icon-append>
71
+ <mc-svg-icon class="rotate" name="arrow_drop_down" />
72
+ </template>
73
+ </mc-button>
74
+ </template>
75
+ <template #item="{ item }">
76
+ <mc-button
77
+ :to="item.to || item.href"
78
+ :exact="item.exact"
79
+ variation="black-flat"
80
+ :text-align="HorizontalAlignment.Left"
81
+ full-width
82
+ >
83
+ <template #icon-prepend>
84
+ <mc-svg-icon :name="`flag_${item.name.toLowerCase()}` as IconsListUnion" />
85
+ </template>
86
+ {{ item.name }}
87
+ </mc-button>
88
+ </template>
89
+ </mc-dropdown>
90
+ <slot name="user">
91
+ <mc-dropdown v-if="props.user" v-model="userDropdownOpen" :position="DropdownPositions.Right">
92
+ <template #activator>
93
+ <mc-button variation="white-flat" :size="ButtonSize.MCompact">
94
+ <template #icon-prepend>
95
+ <mc-avatar :src="props.user.avatar" rounded size="400" />
96
+ </template>
97
+ </mc-button>
98
+ </template>
99
+ <slot name="user-dropdown-panel" />
100
+ </mc-dropdown>
101
+ </slot>
102
+ </div>
103
+ </div>
104
+ <mc-separator color="hover-gray" indent-top="100" />
105
+ <slot name="bottom" />
106
+ </div>
107
+ </template>
108
+
109
+ <style lang="scss">
110
+ @use '../../../assets/styles/mixins' as *;
111
+ @use '../../../assets/tokens/spacings' as *;
112
+ @use '../../../assets/tokens/colors' as *;
113
+ .mc-top-bar {
114
+ $block-name: &;
115
+
116
+ width: 100%;
117
+
118
+ &__inner {
119
+ display: flex;
120
+ justify-content: space-between;
121
+ align-items: center;
122
+ padding: $space-100 $space-150 0 $space-150;
123
+ @include child-indent-right($space-100);
124
+ }
125
+
126
+ &__left,
127
+ &__right {
128
+ display: flex;
129
+ flex-wrap: nowrap;
130
+ align-items: center;
131
+ @include child-indent-right($space-100);
132
+ }
133
+
134
+ &__right {
135
+ min-width: 0;
136
+ flex: 1 1 auto;
137
+ justify-content: flex-end;
138
+ }
139
+ &__menu-langs {
140
+ .mc-svg-icon {
141
+ svg {
142
+ rect {
143
+ stroke: $color-hover-gray;
144
+ }
145
+ }
146
+ }
147
+ }
148
+ }
149
+ </style>
@@ -0,0 +1,59 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3'
2
+ import McVirtualScroll from '@/components/templates/McVirtualScroll/McVirtualScroll.vue'
3
+ import McPreview from '@/components/patterns/McPreview/McPreview.vue'
4
+ import McSvgIcon from '@/components/elements/McSvgIcon/McSvgIcon.vue'
5
+ import selectOptions from '@/mocks/selectOptions.json'
6
+
7
+ const meta = {
8
+ title: 'McVirtualScroll',
9
+ component: McVirtualScroll,
10
+ tags: ['autodocs'],
11
+ argTypes: {
12
+ containerHeight: { control: 'number' },
13
+ itemHeight: { control: 'number' },
14
+ buffer: { control: 'number' },
15
+ },
16
+ args: {
17
+ containerHeight: 500,
18
+ itemHeight: 40,
19
+ buffer: 1,
20
+ },
21
+ parameters: {
22
+ componentSubtitle: 'Status: Ready',
23
+ design: {
24
+ type: 'figma',
25
+ url: ''
26
+ }
27
+ }
28
+ } satisfies Meta<typeof McVirtualScroll>
29
+ export default meta
30
+ type Story = StoryObj<typeof meta>
31
+
32
+ export const Default: Story = {
33
+ render() {
34
+ return {
35
+ components: {
36
+ McVirtualScroll,
37
+ McPreview,
38
+ McSvgIcon,
39
+ },
40
+ computed: {
41
+ items() {
42
+ return [...selectOptions,...selectOptions,...selectOptions,...selectOptions,...selectOptions,...selectOptions]
43
+ },
44
+ },
45
+ template: `
46
+ <mc-virtual-scroll :items="items" :item-height="40" :container-height="500">
47
+ <template #item="{ item, index }">
48
+ <mc-preview>
49
+ <template #left>
50
+ <mc-svg-icon name="mc_pay_app" size="400" />
51
+ </template>
52
+ <template #top>{{ item.title }}</template>
53
+ </mc-preview>
54
+ </template>
55
+ </mc-virtual-scroll>
56
+ `
57
+ }
58
+ },
59
+ }
@@ -0,0 +1,124 @@
1
+ <script lang="ts" setup>
2
+ import { ref, onMounted, nextTick, watch, type PropType, computed } from 'vue'
3
+
4
+ interface VisibleItem {
5
+ key: number
6
+ data: any
7
+ index: number
8
+ top: number
9
+ }
10
+
11
+ const props = defineProps({
12
+ /**
13
+ * Массив данных для рендеринга
14
+ * */
15
+ items: {
16
+ type: Array as PropType<any[]>,
17
+ default: () => [],
18
+ required: true
19
+ },
20
+ /**
21
+ * Высота контейнера скролла
22
+ * */
23
+ containerHeight: {
24
+ type: Number as PropType<number>,
25
+ required: true
26
+ },
27
+ /**
28
+ * Высота 1 элемента списка
29
+ * */
30
+ itemHeight: {
31
+ type: Number as PropType<number>,
32
+ default: 20,
33
+ required: true
34
+ },
35
+ /**
36
+ * Буфер для подгрузки дополнительных элементов вне видимой области
37
+ * */
38
+ buffer: {
39
+ type: Number as PropType<number>,
40
+ default: 1
41
+ }
42
+ })
43
+
44
+ const containerRef = ref<HTMLDivElement | null>(null)
45
+ const scrollTop = ref<number>(0)
46
+ const visibleItems = ref<VisibleItem[]>([])
47
+ const totalHeight = ref<number>(0)
48
+
49
+ const styles = computed((): { [key: string]: string } => {
50
+ return {
51
+ height: `${props.containerHeight}px`,
52
+ overflowY: 'auto',
53
+ position: 'relative'
54
+ }
55
+ })
56
+
57
+ const calculateTotalHeight = (): void => {
58
+ totalHeight.value = props.items.length * props.itemHeight
59
+ }
60
+
61
+ const calculateVisibleItems = (): void => {
62
+ const containerHeight = containerRef.value?.clientHeight || 0
63
+ const startIndex = Math.floor(scrollTop.value / props.itemHeight)
64
+ const endIndex = Math.min(props.items.length - 1, Math.floor((scrollTop.value + containerHeight) / props.itemHeight))
65
+ const buffer = props.buffer || 5
66
+
67
+ const result: VisibleItem[] = []
68
+ for (let i = Math.max(0, startIndex - buffer); i <= Math.min(endIndex + buffer, props.items.length - 1); i++) {
69
+ result.push({
70
+ key: i,
71
+ data: props.items[i],
72
+ index: i,
73
+ top: i * props.itemHeight
74
+ } as VisibleItem)
75
+ }
76
+ visibleItems.value = result
77
+ }
78
+
79
+ const onScroll = (): void => {
80
+ scrollTop.value = containerRef.value?.scrollTop || 0
81
+ requestAnimationFrame(calculateVisibleItems)
82
+ }
83
+
84
+ onMounted((): void => {
85
+ calculateTotalHeight()
86
+ nextTick(calculateVisibleItems)
87
+ })
88
+
89
+ watch(
90
+ () => props.items,
91
+ (): void => {
92
+ calculateTotalHeight()
93
+ nextTick(calculateVisibleItems)
94
+ }
95
+ )
96
+ </script>
97
+
98
+ <template>
99
+ <div class="mc-virtual-scroll" ref="containerRef" @scroll="onScroll" :style="styles">
100
+ <div
101
+ v-for="item in visibleItems"
102
+ :key="`mc-virtual-scroll__item-${item.key}`"
103
+ class="mc-virtual-scroll__item"
104
+ :style="{ top: `${item.top}px` }"
105
+ >
106
+ <slot name="item" :item="item.data" :index="item.index"></slot>
107
+ </div>
108
+
109
+ <!-- Пустое пространство для скролла -->
110
+ <div :style="{ height: `${totalHeight}px` }"></div>
111
+ </div>
112
+ </template>
113
+
114
+ <style lang="scss">
115
+ .mc-virtual-scroll {
116
+ position: relative;
117
+ overflow-y: auto;
118
+ &__item {
119
+ position: absolute;
120
+ transition: all 0.3s ease;
121
+ width: 100%;
122
+ }
123
+ }
124
+ </style>
@@ -0,0 +1,9 @@
1
+ import { useModal } from './useModal'
2
+ import { useDrawer } from './useDrawer'
3
+ import { useTooltip } from './useTooltip'
4
+ import { useRandomNumber } from './useRandomNumber'
5
+ import { useFieldErrors } from './useFieldErrors'
6
+ import { useHelper } from './useHelper'
7
+ import { UseEncodeDecode } from '@/composables/useEncodeDecode'
8
+
9
+ export { useModal, useDrawer, useTooltip, useRandomNumber, useFieldErrors, useHelper, UseEncodeDecode }
@@ -0,0 +1,90 @@
1
+ import { reactive, ref, h, render, getCurrentInstance, shallowRef, markRaw } from 'vue'
2
+ import DrawerContainer from '@/components/templates/McDrawer/McDrawerContainer.vue'
3
+ import type { IDrawerServiceState, IDrawerProps, IDrawerState } from '@/types/IDrawer'
4
+
5
+ const closeServiceState = () => {
6
+ drawerServiceState.isOpen = false
7
+ reactiveProps.drawers = []
8
+ }
9
+
10
+ const drawerServiceState = reactive<IDrawerServiceState>({
11
+ isOpen: false,
12
+ closeServiceState: closeServiceState
13
+ })
14
+
15
+ const drawerComponents = shallowRef({})
16
+ const reactiveProps = reactive<{ drawers: IDrawerState[] }>({ drawers: [] })
17
+
18
+ const createDrawerContainer = () => {
19
+ const drawerContainerElement = document.createElement('div')
20
+ drawerContainerElement.id = 'drawer-container'
21
+ document.body.appendChild(drawerContainerElement)
22
+
23
+ const vnode = h(DrawerContainer, { drawerServiceState, reactiveProps })
24
+ render(vnode, drawerContainerElement)
25
+ }
26
+
27
+ // Если компонент DrawerContainer ещё не был добавлен в DOM, создаем его
28
+ const ensureDrawerContainerExists = () => {
29
+ if (!document.getElementById('drawer-container')) {
30
+ createDrawerContainer()
31
+ }
32
+ }
33
+
34
+ const showDrawer = (
35
+ componentName: string, // Component name from drawerComponents: {...}
36
+ drawerProps: Partial<IDrawerProps> = {},
37
+ componentProps = {}
38
+ ) => {
39
+ //@ts-ignore
40
+ if (!drawerComponents.value[componentName]) {
41
+ return console.warn(
42
+ 'The component is not provided in Mediacube-ui DS\n' +
43
+ 'Check and add to app.use(MediacubeUI, { drawerComponents: {...} })'
44
+ )
45
+ }
46
+ ensureDrawerContainerExists()
47
+
48
+ const id = Date.now()
49
+ const newDrawer: IDrawerState = {
50
+ //@ts-ignore
51
+ component: markRaw(drawerComponents.value[componentName]),
52
+ componentName: componentName,
53
+ drawerProps: drawerProps,
54
+ componentProps: componentProps,
55
+ modelValue: true,
56
+ id,
57
+ close: () => {
58
+ //@ts-ignore
59
+ const drawerToClose = reactiveProps.drawers.findLast((d) => d.id === id)
60
+ drawerToClose && (drawerToClose.modelValue = false)
61
+ setTimeout(() => {
62
+ reactiveProps.drawers = reactiveProps.drawers.filter((d) => d.id !== drawerToClose?.id)
63
+ }, drawerProps?.duration || 300)
64
+ }
65
+ }
66
+ reactiveProps.drawers.push(newDrawer)
67
+ drawerServiceState.isOpen = true
68
+ }
69
+
70
+ const closeDrawer = (componentName: string) => {
71
+ //@ts-ignore
72
+ const drawerToClose = reactiveProps.drawers.findLast((d) => d.componentName === componentName)
73
+ drawerToClose && drawerToClose.close()
74
+ }
75
+
76
+ const closeAllDrawers = () => {
77
+ reactiveProps.drawers.forEach((d) => {
78
+ d.close()
79
+ })
80
+ }
81
+
82
+ export function useDrawer() {
83
+ //@ts-ignore
84
+ const { proxy } = getCurrentInstance()
85
+ if (proxy.$dsOptions?.drawerComponents) {
86
+ drawerComponents.value = proxy.$dsOptions.drawerComponents
87
+ }
88
+
89
+ return { showDrawer, closeDrawer, closeAllDrawers }
90
+ }
@@ -0,0 +1,22 @@
1
+ class UseEncodeDecode {
2
+ static encode(value: object) {
3
+ if (value.constructor !== Object) return value
4
+ try {
5
+ return btoa(encodeURI(JSON.stringify(value)))
6
+ } catch (e) {
7
+ console.error(e)
8
+ return value
9
+ }
10
+ }
11
+ static decode(value: string | null) {
12
+ if (!value) return value
13
+ try {
14
+ return JSON.parse(decodeURI(atob(value)))
15
+ } catch (e) {
16
+ console.error(e)
17
+ return value
18
+ }
19
+ }
20
+ }
21
+
22
+ export { UseEncodeDecode }
@@ -0,0 +1,24 @@
1
+ import { computed, ref, watch } from 'vue'
2
+
3
+ export function useFieldErrors(errors: string[]) {
4
+ const is_error_visible = ref<boolean>(true)
5
+ const errorText = computed<string | null>(() => {
6
+ if (errors === null || !errors?.length || !is_error_visible.value) return null
7
+ return errors.join(', ')?.replace(/-/gm, '&#x2011;')
8
+ })
9
+ watch(
10
+ () => errors,
11
+ (): void => {
12
+ is_error_visible.value = false
13
+ }
14
+ )
15
+ const toggleErrorVisible = (): void => {
16
+ is_error_visible.value = false
17
+ }
18
+
19
+ return {
20
+ is_error_visible,
21
+ errorText,
22
+ toggleErrorVisible
23
+ }
24
+ }
@@ -0,0 +1,85 @@
1
+ function isEmpty(value: any): boolean {
2
+ if (value == null) return true
3
+ if (Array.isArray(value) || typeof value === 'string') {
4
+ return value.length === 0
5
+ }
6
+ if (typeof value === 'object') {
7
+ return Object.keys(value).length === 0
8
+ }
9
+ return false
10
+ }
11
+
12
+ function isEqual(value1: any, value2: any) {
13
+ if (value1 === value2) {
14
+ return true
15
+ }
16
+ if (
17
+ typeof value1 !== 'object' ||
18
+ typeof value2 !== 'object' ||
19
+ value1 === null ||
20
+ value2 === null
21
+ ) {
22
+ return false
23
+ }
24
+ if (Array.isArray(value1) !== Array.isArray(value2)) {
25
+ return false
26
+ }
27
+ const keys1 = Object.keys(value1)
28
+ const keys2 = Object.keys(value2)
29
+
30
+ if (keys1.length !== keys2.length) {
31
+ return false
32
+ }
33
+ for (const key of keys1) {
34
+ if (!isEqual(value1[key], value2[key])) {
35
+ return false
36
+ }
37
+ }
38
+ return true
39
+ }
40
+
41
+ function cloneDeep(value: any): any {
42
+ if (value === null || typeof value !== 'object') {
43
+ return value
44
+ }
45
+ if (Array.isArray(value)) {
46
+ return value.map(cloneDeep)
47
+ }
48
+ const clonedObj: any = {}
49
+ for (const key in value) {
50
+ if (hasProperty(value, key)) {
51
+ clonedObj[key] = cloneDeep(value[key])
52
+ }
53
+ }
54
+ return clonedObj
55
+ }
56
+
57
+ function uniqWith<T>(array: T[], comparator: (a: T, b: T) => boolean): T[] {
58
+ return array.reduce<T[]>((acc, current) => {
59
+ if (!acc.some((item) => comparator(item, current))) {
60
+ acc.push(current)
61
+ }
62
+ return acc
63
+ }, [])
64
+ }
65
+
66
+ function deepMerge(target: any, source: any) {
67
+ for (const key in source) {
68
+ if (source[key] instanceof Object && key in target) {
69
+ Object.assign(source[key], deepMerge(target[key], source[key]))
70
+ }
71
+ }
72
+ Object.assign(target || {}, source)
73
+ return target
74
+ }
75
+
76
+ function hasProperty(object: object, prop: string) {
77
+ return Object.prototype.hasOwnProperty.call(object, prop)
78
+ }
79
+ function isNumber(payload: any) {
80
+ return typeof payload === 'number'
81
+ }
82
+
83
+ export function useHelper() {
84
+ return { isEmpty, isEqual, cloneDeep, uniqWith, deepMerge, hasProperty, isNumber }
85
+ }
@@ -0,0 +1,88 @@
1
+ import { reactive, h, render, getCurrentInstance, shallowRef, markRaw } from 'vue'
2
+ import ModalContainer from '@/components/templates/McModal/McModalContainer.vue'
3
+ import type { IModalServiceState, IModalState } from '@/types/IModal'
4
+
5
+ const closeServiceState = () => {
6
+ modalServiceState.isOpen = false
7
+ reactiveProps.modals = []
8
+ }
9
+
10
+ const modalServiceState = reactive<IModalServiceState>({
11
+ isOpen: false,
12
+ closeServiceState: closeServiceState
13
+ })
14
+
15
+ const modalComponents = shallowRef({})
16
+ const reactiveProps = reactive<{ modals: IModalState[] }>({ modals: [] })
17
+
18
+ const createModalContainer = () => {
19
+ const modalContainerElement = document.createElement('div')
20
+ modalContainerElement.id = 'modal-container'
21
+ document.body.appendChild(modalContainerElement)
22
+
23
+ const vnode = h(ModalContainer, { modalServiceState, reactiveProps })
24
+ render(vnode, modalContainerElement)
25
+ }
26
+
27
+ // Если компонент ModalContainer ещё не был добавлен в DOM, создаем его
28
+ const ensureModalContainerExists = () => {
29
+ if (!document.getElementById('modal-container')) {
30
+ createModalContainer()
31
+ }
32
+ }
33
+
34
+ const showModal = (
35
+ componentName: string, // Component name from modalComponents: {...}
36
+ componentProps = {}
37
+ ) => {
38
+ //@ts-ignore
39
+ if (!modalComponents.value[componentName]) {
40
+ return console.warn(
41
+ 'The component is not provided in Mediacube-ui DS\n' +
42
+ 'Check and add to app.use(MediacubeUI, { modalComponents: {...} })'
43
+ )
44
+ }
45
+ ensureModalContainerExists()
46
+
47
+ const id = Date.now()
48
+ const newModal: IModalState = {
49
+ //@ts-ignore
50
+ component: markRaw(modalComponents.value[componentName]),
51
+ componentName: componentName,
52
+ componentProps: componentProps,
53
+ modelValue: true,
54
+ id,
55
+ close: () => {
56
+ //@ts-ignore
57
+ const modalToClose = reactiveProps.modals.findLast((d) => d.id === id)
58
+ modalToClose && (modalToClose.modelValue = false)
59
+ setTimeout(() => {
60
+ reactiveProps.modals = reactiveProps.modals.filter((d) => d.id !== modalToClose?.id)
61
+ }, 300)
62
+ }
63
+ }
64
+ reactiveProps.modals.push(newModal)
65
+ modalServiceState.isOpen = true
66
+ }
67
+
68
+ const closeModal = (componentName: string) => {
69
+ //@ts-ignore
70
+ const modalToClose = reactiveProps.modals.findLast((d) => d.componentName === componentName)
71
+ modalToClose && modalToClose.close()
72
+ }
73
+
74
+ const closeAllModals = () => {
75
+ reactiveProps.modals.forEach((d) => {
76
+ d.close()
77
+ })
78
+ }
79
+
80
+ export function useModal() {
81
+ //@ts-ignore
82
+ const { proxy } = getCurrentInstance()
83
+ if (proxy.$dsOptions?.modalComponents) {
84
+ modalComponents.value = proxy.$dsOptions.modalComponents
85
+ }
86
+
87
+ return { showModal, closeModal, closeAllModals }
88
+ }
@@ -0,0 +1,10 @@
1
+ export function timestamp(postfixLength: number = 0): number {
2
+ if (!postfixLength) return Date.now()
3
+ const min = Math.pow(10, postfixLength - 1)
4
+ const max = Math.pow(10, postfixLength) - 1
5
+ return +(String(Date.now()) + String(Math.floor(Math.random() * (max - min + 1)) + min))
6
+ }
7
+
8
+ export function useRandomNumber() {
9
+ return { timestamp }
10
+ }