mediacube-ui-v2 0.0.5 → 0.0.7

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 (713) hide show
  1. package/dist/components/elements/McSlideUpDown/McSlideUpDown.vue.d.ts +1 -1
  2. package/dist/components/patterns/McFilter/McFilter.vue.d.ts +3 -3
  3. package/dist/components/patterns/McFilter/McFilterTags/McFilterTags.vue.d.ts +1 -1
  4. package/dist/components/templates/McDrawer/McDrawer.vue.d.ts +2 -2
  5. package/dist/components/templates/McDrawer/McDrawerContainer.vue.d.ts +1 -1
  6. package/dist/components/templates/McModal/McModal.vue.d.ts +4 -4
  7. package/dist/components/templates/McModal/McModalContainer.vue.d.ts +1 -1
  8. package/dist/composables/useHelper.d.ts +2 -0
  9. package/dist/index.cjs +3 -3
  10. package/dist/index.js +1651 -1647
  11. package/dist/style.css +1 -1
  12. package/package.json +3 -11
  13. package/src/App.vue +0 -8
  14. package/src/assets/base.css +0 -0
  15. package/src/assets/fonts/inter/Inter-Bold.woff +0 -0
  16. package/src/assets/fonts/inter/Inter-Bold.woff2 +0 -0
  17. package/src/assets/fonts/inter/Inter-Italic.woff +0 -0
  18. package/src/assets/fonts/inter/Inter-Italic.woff2 +0 -0
  19. package/src/assets/fonts/inter/Inter-Medium.woff +0 -0
  20. package/src/assets/fonts/inter/Inter-Medium.woff2 +0 -0
  21. package/src/assets/fonts/inter/Inter-Regular.woff +0 -0
  22. package/src/assets/fonts/inter/Inter-Regular.woff2 +0 -0
  23. package/src/assets/fonts/inter/Inter-SemiBold.woff +0 -0
  24. package/src/assets/fonts/inter/Inter-SemiBold.woff2 +0 -0
  25. package/src/assets/fonts/inter/inter.css +0 -44
  26. package/src/assets/icons/a_circle.svg +0 -3
  27. package/src/assets/icons/access_time.svg +0 -5
  28. package/src/assets/icons/account_circle.svg +0 -1
  29. package/src/assets/icons/account_edit.svg +0 -3
  30. package/src/assets/icons/add.svg +0 -3
  31. package/src/assets/icons/add_circle.svg +0 -3
  32. package/src/assets/icons/address.svg +0 -6
  33. package/src/assets/icons/ads_banner.svg +0 -3
  34. package/src/assets/icons/album.svg +0 -1
  35. package/src/assets/icons/alert_solid.svg +0 -3
  36. package/src/assets/icons/alternate_email.svg +0 -1
  37. package/src/assets/icons/amocrm.svg +0 -4
  38. package/src/assets/icons/amper_music.svg +0 -4
  39. package/src/assets/icons/analytics.svg +0 -3
  40. package/src/assets/icons/animation_motion.svg +0 -4
  41. package/src/assets/icons/api.svg +0 -1
  42. package/src/assets/icons/apple_icon.svg +0 -3
  43. package/src/assets/icons/applications.svg +0 -3
  44. package/src/assets/icons/applications_new.svg +0 -3
  45. package/src/assets/icons/apps.svg +0 -3
  46. package/src/assets/icons/archive.svg +0 -1
  47. package/src/assets/icons/archive_in.svg +0 -3
  48. package/src/assets/icons/archive_out.svg +0 -3
  49. package/src/assets/icons/arrow-stats-down.svg +0 -3
  50. package/src/assets/icons/arrow-stats-up.svg +0 -3
  51. package/src/assets/icons/arrow_backward.svg +0 -3
  52. package/src/assets/icons/arrow_downward.svg +0 -3
  53. package/src/assets/icons/arrow_drop_down.svg +0 -3
  54. package/src/assets/icons/arrow_drop_up.svg +0 -3
  55. package/src/assets/icons/arrow_forward.svg +0 -3
  56. package/src/assets/icons/arrow_leftward.svg +0 -3
  57. package/src/assets/icons/arrow_rightward.svg +0 -3
  58. package/src/assets/icons/arrow_to_grow_circle.svg +0 -3
  59. package/src/assets/icons/arrow_up_down.svg +0 -3
  60. package/src/assets/icons/arrow_upward.svg +0 -3
  61. package/src/assets/icons/arrows.svg +0 -6
  62. package/src/assets/icons/artist.svg +0 -8
  63. package/src/assets/icons/assessment.svg +0 -1
  64. package/src/assets/icons/assets_unassigned.svg +0 -3
  65. package/src/assets/icons/assignment.svg +0 -9
  66. package/src/assets/icons/assignment_ind.svg +0 -1
  67. package/src/assets/icons/assist_icon.svg +0 -13
  68. package/src/assets/icons/attach_money.svg +0 -1
  69. package/src/assets/icons/audiotrack.svg +0 -1
  70. package/src/assets/icons/backspace.svg +0 -1
  71. package/src/assets/icons/bank.svg +0 -12
  72. package/src/assets/icons/bank_building.svg +0 -3
  73. package/src/assets/icons/bank_building_blue.svg +0 -4
  74. package/src/assets/icons/bank_card.svg +0 -3
  75. package/src/assets/icons/bank_card_arrow.svg +0 -3
  76. package/src/assets/icons/bank_card_clock.svg +0 -3
  77. package/src/assets/icons/bank_card_double.svg +0 -3
  78. package/src/assets/icons/bank_card_virtual_blue.svg +0 -7
  79. package/src/assets/icons/bank_money_colored.svg +0 -4
  80. package/src/assets/icons/bankwire.svg +0 -70
  81. package/src/assets/icons/bell.svg +0 -3
  82. package/src/assets/icons/binance_coin_colored.svg +0 -4
  83. package/src/assets/icons/biometrics.svg +0 -8
  84. package/src/assets/icons/bitcoin.svg +0 -6
  85. package/src/assets/icons/bitcoin_cash_colored.svg +0 -4
  86. package/src/assets/icons/bitcoin_colored.svg +0 -4
  87. package/src/assets/icons/bloggerhood.svg +0 -19
  88. package/src/assets/icons/board.svg +0 -7
  89. package/src/assets/icons/book.svg +0 -3
  90. package/src/assets/icons/broken_link.svg +0 -8
  91. package/src/assets/icons/bug.svg +0 -10
  92. package/src/assets/icons/bug_big.svg +0 -3
  93. package/src/assets/icons/bug_report.svg +0 -3
  94. package/src/assets/icons/building.svg +0 -17
  95. package/src/assets/icons/building_colored.svg +0 -18
  96. package/src/assets/icons/business_center.svg +0 -1
  97. package/src/assets/icons/calendar.svg +0 -3
  98. package/src/assets/icons/calendar_colored.svg +0 -7
  99. package/src/assets/icons/calendar_load.svg +0 -3
  100. package/src/assets/icons/calendar_sixteen.svg +0 -5
  101. package/src/assets/icons/calendar_two_weeks.svg +0 -3
  102. package/src/assets/icons/calendar_user.svg +0 -11
  103. package/src/assets/icons/camera_alt.svg +0 -1
  104. package/src/assets/icons/camera_plus.svg +0 -1
  105. package/src/assets/icons/camera_video.svg +0 -3
  106. package/src/assets/icons/cancel.svg +0 -4
  107. package/src/assets/icons/cancel_alt.svg +0 -1
  108. package/src/assets/icons/capitalist.svg +0 -23
  109. package/src/assets/icons/capitalist_colored.svg +0 -4
  110. package/src/assets/icons/card.svg +0 -1
  111. package/src/assets/icons/card_off.svg +0 -7
  112. package/src/assets/icons/card_off_circle.svg +0 -4
  113. package/src/assets/icons/card_to_card_blue.svg +0 -11
  114. package/src/assets/icons/card_to_card_colored.svg +0 -11
  115. package/src/assets/icons/cash-ad.svg +0 -7
  116. package/src/assets/icons/cash.svg +0 -7
  117. package/src/assets/icons/category.svg +0 -6
  118. package/src/assets/icons/cellphone.svg +0 -1
  119. package/src/assets/icons/change_sheet.svg +0 -3
  120. package/src/assets/icons/channels_icon.svg +0 -12
  121. package/src/assets/icons/chart_bar.svg +0 -3
  122. package/src/assets/icons/chart_line.svg +0 -3
  123. package/src/assets/icons/chat.svg +0 -3
  124. package/src/assets/icons/chat_add.svg +0 -6
  125. package/src/assets/icons/chat_forum.svg +0 -3
  126. package/src/assets/icons/chat_messages.svg +0 -3
  127. package/src/assets/icons/check-rhombus.svg +0 -3
  128. package/src/assets/icons/check.svg +0 -4
  129. package/src/assets/icons/check_all.svg +0 -6
  130. package/src/assets/icons/check_circle.svg +0 -4
  131. package/src/assets/icons/check_circle_second.svg +0 -4
  132. package/src/assets/icons/check_circle_solid.svg +0 -3
  133. package/src/assets/icons/check_polygonal.svg +0 -3
  134. package/src/assets/icons/checkbox--checked.svg +0 -3
  135. package/src/assets/icons/checkbox.svg +0 -3
  136. package/src/assets/icons/checkboxes.svg +0 -8
  137. package/src/assets/icons/circle.svg +0 -3
  138. package/src/assets/icons/circle_arrows.svg +0 -3
  139. package/src/assets/icons/click.svg +0 -3
  140. package/src/assets/icons/clickup.svg +0 -14
  141. package/src/assets/icons/clip.svg +0 -3
  142. package/src/assets/icons/clock_check.svg +0 -6
  143. package/src/assets/icons/clock_solid.svg +0 -5
  144. package/src/assets/icons/close.svg +0 -3
  145. package/src/assets/icons/close_circle_outline.svg +0 -5
  146. package/src/assets/icons/close_circle_solid.svg +0 -3
  147. package/src/assets/icons/cloud_upload.svg +0 -1
  148. package/src/assets/icons/coin_speed.svg +0 -7
  149. package/src/assets/icons/comment.svg +0 -4
  150. package/src/assets/icons/company.svg +0 -1
  151. package/src/assets/icons/confetti.svg +0 -18
  152. package/src/assets/icons/connection.svg +0 -3
  153. package/src/assets/icons/contacts.svg +0 -1
  154. package/src/assets/icons/contracts.svg +0 -3
  155. package/src/assets/icons/convert.svg +0 -6
  156. package/src/assets/icons/copy.svg +0 -3
  157. package/src/assets/icons/copyright.svg +0 -3
  158. package/src/assets/icons/credit-card.svg +0 -5
  159. package/src/assets/icons/credit_card_blink.svg +0 -4
  160. package/src/assets/icons/crypto.svg +0 -8
  161. package/src/assets/icons/crypto_blue.svg +0 -9
  162. package/src/assets/icons/crypto_colored.svg +0 -9
  163. package/src/assets/icons/cryptowallet.svg +0 -5
  164. package/src/assets/icons/cryptowallet_blue.svg +0 -6
  165. package/src/assets/icons/cryptowallet_colored.svg +0 -6
  166. package/src/assets/icons/cup.svg +0 -7
  167. package/src/assets/icons/dashboard.svg +0 -1
  168. package/src/assets/icons/date_range.svg +0 -1
  169. package/src/assets/icons/deeplinks.svg +0 -3
  170. package/src/assets/icons/delete-account.svg +0 -5
  171. package/src/assets/icons/delete.svg +0 -3
  172. package/src/assets/icons/delete_alt.svg +0 -1
  173. package/src/assets/icons/deprecated.svg +0 -1
  174. package/src/assets/icons/desktop_device.svg +0 -3
  175. package/src/assets/icons/dialog.svg +0 -3
  176. package/src/assets/icons/discord.svg +0 -9
  177. package/src/assets/icons/discord_colored.svg +0 -4
  178. package/src/assets/icons/dislike.svg +0 -3
  179. package/src/assets/icons/doc-export.svg +0 -10
  180. package/src/assets/icons/document.svg +0 -1
  181. package/src/assets/icons/dollar.svg +0 -3
  182. package/src/assets/icons/donate_blue.svg +0 -7
  183. package/src/assets/icons/donate_colored.svg +0 -7
  184. package/src/assets/icons/dot-status.svg +0 -3
  185. package/src/assets/icons/download.svg +0 -3
  186. package/src/assets/icons/drag.svg +0 -1
  187. package/src/assets/icons/eWallet.svg +0 -25
  188. package/src/assets/icons/e_wallet_blue.svg +0 -9
  189. package/src/assets/icons/e_wallet_colored.svg +0 -9
  190. package/src/assets/icons/edit.svg +0 -3
  191. package/src/assets/icons/edit_solid.svg +0 -4
  192. package/src/assets/icons/email.svg +0 -12
  193. package/src/assets/icons/email_circle.svg +0 -5
  194. package/src/assets/icons/email_colored.svg +0 -5
  195. package/src/assets/icons/enrollment.svg +0 -1
  196. package/src/assets/icons/epayments_colored.svg +0 -4
  197. package/src/assets/icons/epidemic-sound.svg +0 -66
  198. package/src/assets/icons/epidemic_sound_circle.svg +0 -4
  199. package/src/assets/icons/error.svg +0 -3
  200. package/src/assets/icons/ethereum_colored.svg +0 -8
  201. package/src/assets/icons/event.svg +0 -1
  202. package/src/assets/icons/event_alt.svg +0 -1
  203. package/src/assets/icons/exit_to_app.svg +0 -1
  204. package/src/assets/icons/explicit.svg +0 -1
  205. package/src/assets/icons/export.svg +0 -5
  206. package/src/assets/icons/export_all.svg +0 -6
  207. package/src/assets/icons/express_payment.svg +0 -3
  208. package/src/assets/icons/face.svg +0 -1
  209. package/src/assets/icons/face_alt.svg +0 -1
  210. package/src/assets/icons/facebook.svg +0 -3
  211. package/src/assets/icons/facebook_colored.svg +0 -4
  212. package/src/assets/icons/fast.svg +0 -10
  213. package/src/assets/icons/favorite.svg +0 -1
  214. package/src/assets/icons/file.svg +0 -1
  215. package/src/assets/icons/file_add.svg +0 -3
  216. package/src/assets/icons/file_copy.svg +0 -4
  217. package/src/assets/icons/file_download.svg +0 -1
  218. package/src/assets/icons/file_export.svg +0 -3
  219. package/src/assets/icons/file_eye.svg +0 -3
  220. package/src/assets/icons/file_import.svg +0 -7
  221. package/src/assets/icons/file_new.svg +0 -3
  222. package/src/assets/icons/filter_list.svg +0 -3
  223. package/src/assets/icons/find_in_page.svg +0 -1
  224. package/src/assets/icons/fire.svg +0 -3
  225. package/src/assets/icons/fire_colored.svg +0 -8
  226. package/src/assets/icons/fire_solid.svg +0 -3
  227. package/src/assets/icons/flag_ar.svg +0 -19
  228. package/src/assets/icons/flag_en.svg +0 -6
  229. package/src/assets/icons/flag_es.svg +0 -564
  230. package/src/assets/icons/flag_pt.svg +0 -43
  231. package/src/assets/icons/flag_ru.svg +0 -5
  232. package/src/assets/icons/flag_th.svg +0 -6
  233. package/src/assets/icons/flag_vi.svg +0 -5
  234. package/src/assets/icons/fly_dollar.svg +0 -13
  235. package/src/assets/icons/fly_euro.svg +0 -5
  236. package/src/assets/icons/freeze.svg +0 -3
  237. package/src/assets/icons/fullscreen.svg +0 -1
  238. package/src/assets/icons/get_app.svg +0 -4
  239. package/src/assets/icons/gift_solid.svg +0 -8
  240. package/src/assets/icons/glasses.svg +0 -3
  241. package/src/assets/icons/google_colored.svg +0 -6
  242. package/src/assets/icons/googleplus_colored.svg +0 -5
  243. package/src/assets/icons/graph-no-data.svg +0 -3
  244. package/src/assets/icons/group.svg +0 -3
  245. package/src/assets/icons/group_connection.svg +0 -9
  246. package/src/assets/icons/growth_arrow_circle.svg +0 -3
  247. package/src/assets/icons/hand_money.svg +0 -13
  248. package/src/assets/icons/help.svg +0 -1
  249. package/src/assets/icons/help_invert.svg +0 -1
  250. package/src/assets/icons/help_solid.svg +0 -4
  251. package/src/assets/icons/help_ukraine_colored.svg +0 -14
  252. package/src/assets/icons/home.svg +0 -3
  253. package/src/assets/icons/iban.svg +0 -9
  254. package/src/assets/icons/iban_blue.svg +0 -10
  255. package/src/assets/icons/id_square.svg +0 -3
  256. package/src/assets/icons/id_thin.svg +0 -5
  257. package/src/assets/icons/image.svg +0 -1
  258. package/src/assets/icons/infinity.svg +0 -3
  259. package/src/assets/icons/info.svg +0 -3
  260. package/src/assets/icons/info_rounded_square.svg +0 -5
  261. package/src/assets/icons/info_solid.svg +0 -4
  262. package/src/assets/icons/instagram.svg +0 -23
  263. package/src/assets/icons/instagram_colored.svg +0 -18
  264. package/src/assets/icons/keyboard.svg +0 -1
  265. package/src/assets/icons/keyboard_arrow_left.svg +0 -4
  266. package/src/assets/icons/keyboard_arrow_right.svg +0 -4
  267. package/src/assets/icons/keyboard_arrow_right_thin.svg +0 -3
  268. package/src/assets/icons/kraken.svg +0 -10
  269. package/src/assets/icons/language.svg +0 -3
  270. package/src/assets/icons/layers.svg +0 -3
  271. package/src/assets/icons/lightning.svg +0 -3
  272. package/src/assets/icons/lightning_circle.svg +0 -4
  273. package/src/assets/icons/lightning_circle_solid.svg +0 -4
  274. package/src/assets/icons/lightning_outlined.svg +0 -3
  275. package/src/assets/icons/like.svg +0 -3
  276. package/src/assets/icons/link.svg +0 -3
  277. package/src/assets/icons/link_broken.svg +0 -7
  278. package/src/assets/icons/link_colored.svg +0 -4
  279. package/src/assets/icons/link_external.svg +0 -3
  280. package/src/assets/icons/link_external_new.svg +0 -3
  281. package/src/assets/icons/linkedin.svg +0 -9
  282. package/src/assets/icons/linkedin_colored.svg +0 -6
  283. package/src/assets/icons/list.svg +0 -1
  284. package/src/assets/icons/litecoin_colored.svg +0 -4
  285. package/src/assets/icons/live_help.svg +0 -1
  286. package/src/assets/icons/loader.svg +0 -3
  287. package/src/assets/icons/location_city.svg +0 -1
  288. package/src/assets/icons/location_on.svg +0 -3
  289. package/src/assets/icons/lock.svg +0 -3
  290. package/src/assets/icons/lock_old.svg +0 -1
  291. package/src/assets/icons/logout.svg +0 -3
  292. package/src/assets/icons/magic_blink.svg +0 -3
  293. package/src/assets/icons/mail_outline.svg +0 -1
  294. package/src/assets/icons/mc_assist.svg +0 -4
  295. package/src/assets/icons/mc_dashboard.svg +0 -5
  296. package/src/assets/icons/mc_id.svg +0 -3
  297. package/src/assets/icons/mc_pay.svg +0 -10
  298. package/src/assets/icons/mc_pay_app.svg +0 -6
  299. package/src/assets/icons/mc_pay_compact.svg +0 -4
  300. package/src/assets/icons/mc_pay_menu.svg +0 -4
  301. package/src/assets/icons/mc_pay_menu_circle_colored.svg +0 -4
  302. package/src/assets/icons/mc_pay_mobile_app.svg +0 -21
  303. package/src/assets/icons/mc_studio.svg +0 -3
  304. package/src/assets/icons/mc_vidwide.svg +0 -11
  305. package/src/assets/icons/mcadslogo.svg +0 -37
  306. package/src/assets/icons/mediacube.svg +0 -1
  307. package/src/assets/icons/menu.svg +0 -3
  308. package/src/assets/icons/menu_new.svg +0 -3
  309. package/src/assets/icons/message.svg +0 -3
  310. package/src/assets/icons/messenger.svg +0 -6
  311. package/src/assets/icons/messenger_colored.svg +0 -10
  312. package/src/assets/icons/minus.svg +0 -5
  313. package/src/assets/icons/mobile_device.svg +0 -3
  314. package/src/assets/icons/money_clock.svg +0 -8
  315. package/src/assets/icons/money_input.svg +0 -8
  316. package/src/assets/icons/more_horiz.svg +0 -1
  317. package/src/assets/icons/music.svg +0 -1
  318. package/src/assets/icons/music_icon.svg +0 -8
  319. package/src/assets/icons/new.svg +0 -1
  320. package/src/assets/icons/notes.svg +0 -3
  321. package/src/assets/icons/objects.svg +0 -3
  322. package/src/assets/icons/obs.svg +0 -3
  323. package/src/assets/icons/okru.svg +0 -12
  324. package/src/assets/icons/okru_colored.svg +0 -4
  325. package/src/assets/icons/ondemand_video.svg +0 -1
  326. package/src/assets/icons/partners.svg +0 -3
  327. package/src/assets/icons/pause.svg +0 -1
  328. package/src/assets/icons/payment.svg +0 -1
  329. package/src/assets/icons/payoneer.svg +0 -13
  330. package/src/assets/icons/payoneer_colored.svg +0 -19
  331. package/src/assets/icons/payoneer_cy.svg +0 -13
  332. package/src/assets/icons/paypal.svg +0 -1
  333. package/src/assets/icons/paypal_colored.svg +0 -6
  334. package/src/assets/icons/percent.svg +0 -3
  335. package/src/assets/icons/personal_email_colored.svg +0 -11
  336. package/src/assets/icons/phone_colored.svg +0 -4
  337. package/src/assets/icons/photo_add.svg +0 -3
  338. package/src/assets/icons/picture.svg +0 -3
  339. package/src/assets/icons/picture_thin.svg +0 -3
  340. package/src/assets/icons/plane.svg +0 -3
  341. package/src/assets/icons/play-videos.svg +0 -4
  342. package/src/assets/icons/play.svg +0 -1
  343. package/src/assets/icons/print.svg +0 -1
  344. package/src/assets/icons/prototype.svg +0 -1
  345. package/src/assets/icons/public.svg +0 -1
  346. package/src/assets/icons/qiwi.svg +0 -11
  347. package/src/assets/icons/qiwi_colored.svg +0 -4
  348. package/src/assets/icons/radio--checked.svg +0 -4
  349. package/src/assets/icons/ready.svg +0 -1
  350. package/src/assets/icons/receipt.svg +0 -1
  351. package/src/assets/icons/receipt_thin.svg +0 -6
  352. package/src/assets/icons/recording_circle.svg +0 -3
  353. package/src/assets/icons/recruiters.svg +0 -3
  354. package/src/assets/icons/redo.svg +0 -3
  355. package/src/assets/icons/referral.svg +0 -10
  356. package/src/assets/icons/referral_solid.svg +0 -10
  357. package/src/assets/icons/reload.svg +0 -3
  358. package/src/assets/icons/reload_right.svg +0 -3
  359. package/src/assets/icons/remove_red_eye.svg +0 -1
  360. package/src/assets/icons/repair.svg +0 -6
  361. package/src/assets/icons/reply_arrow.svg +0 -3
  362. package/src/assets/icons/requisites.svg +0 -7
  363. package/src/assets/icons/reset.svg +0 -7
  364. package/src/assets/icons/resize_video.svg +0 -3
  365. package/src/assets/icons/revenue.svg +0 -3
  366. package/src/assets/icons/review.svg +0 -1
  367. package/src/assets/icons/ripple_colored.svg +0 -4
  368. package/src/assets/icons/rocket.svg +0 -7
  369. package/src/assets/icons/rocket_colored.svg +0 -6
  370. package/src/assets/icons/rocket_small.svg +0 -6
  371. package/src/assets/icons/role.svg +0 -3
  372. package/src/assets/icons/safety.svg +0 -5
  373. package/src/assets/icons/sand_clock.svg +0 -4
  374. package/src/assets/icons/save.svg +0 -1
  375. package/src/assets/icons/search.svg +0 -3
  376. package/src/assets/icons/send.svg +0 -1
  377. package/src/assets/icons/send_solid.svg +0 -3
  378. package/src/assets/icons/settings.svg +0 -4
  379. package/src/assets/icons/settings_solid.svg +0 -3
  380. package/src/assets/icons/settings_tools.svg +0 -3
  381. package/src/assets/icons/shield.svg +0 -4
  382. package/src/assets/icons/shield_blue.svg +0 -5
  383. package/src/assets/icons/shield_colored.svg +0 -5
  384. package/src/assets/icons/shield_usd.svg +0 -3
  385. package/src/assets/icons/shop.svg +0 -1
  386. package/src/assets/icons/shopping_cart.svg +0 -1
  387. package/src/assets/icons/shuffle.svg +0 -7
  388. package/src/assets/icons/sign_out.svg +0 -8
  389. package/src/assets/icons/skype.svg +0 -56
  390. package/src/assets/icons/skype_colored.svg +0 -4
  391. package/src/assets/icons/slack.svg +0 -6
  392. package/src/assets/icons/smile_star_eye.svg +0 -6
  393. package/src/assets/icons/sort_asc.svg +0 -4
  394. package/src/assets/icons/sort_az.svg +0 -4
  395. package/src/assets/icons/sort_desc.svg +0 -4
  396. package/src/assets/icons/sort_directions.svg +0 -3
  397. package/src/assets/icons/sort_list.svg +0 -1
  398. package/src/assets/icons/sort_za.svg +0 -4
  399. package/src/assets/icons/spy_colored.svg +0 -15
  400. package/src/assets/icons/staff.svg +0 -10
  401. package/src/assets/icons/star.svg +0 -1
  402. package/src/assets/icons/star_round.svg +0 -3
  403. package/src/assets/icons/star_round_solid.svg +0 -3
  404. package/src/assets/icons/stars.svg +0 -4
  405. package/src/assets/icons/stars_fill.svg +0 -4
  406. package/src/assets/icons/stats_icon.svg +0 -8
  407. package/src/assets/icons/steam.svg +0 -12
  408. package/src/assets/icons/steam_colored.svg +0 -15
  409. package/src/assets/icons/studio_icon.svg +0 -7
  410. package/src/assets/icons/subscriptions.svg +0 -1
  411. package/src/assets/icons/suitcase.svg +0 -4
  412. package/src/assets/icons/supervised_user_circle.svg +0 -1
  413. package/src/assets/icons/support.svg +0 -7
  414. package/src/assets/icons/swap_cubes.svg +0 -5
  415. package/src/assets/icons/swap_cubes_colored.svg +0 -6
  416. package/src/assets/icons/swap_horizontal_circle.svg +0 -3
  417. package/src/assets/icons/switches.svg +0 -3
  418. package/src/assets/icons/table.svg +0 -1
  419. package/src/assets/icons/telegram.svg +0 -40
  420. package/src/assets/icons/telegram_colored.svg +0 -12
  421. package/src/assets/icons/tether.svg +0 -8
  422. package/src/assets/icons/tether_colored.svg +0 -4
  423. package/src/assets/icons/three_dots.svg +0 -3
  424. package/src/assets/icons/thumb_down.svg +0 -4
  425. package/src/assets/icons/thumb_up.svg +0 -4
  426. package/src/assets/icons/tiktok.svg +0 -8
  427. package/src/assets/icons/time.svg +0 -3
  428. package/src/assets/icons/time_thin.svg +0 -3
  429. package/src/assets/icons/timelapse.svg +0 -4
  430. package/src/assets/icons/timeline.svg +0 -1
  431. package/src/assets/icons/tipalti.svg +0 -48
  432. package/src/assets/icons/transaction.svg +0 -1
  433. package/src/assets/icons/twitter_colored.svg +0 -4
  434. package/src/assets/icons/unarchive.svg +0 -1
  435. package/src/assets/icons/unfold_more.svg +0 -1
  436. package/src/assets/icons/unlock.svg +0 -3
  437. package/src/assets/icons/upload_img.svg +0 -1
  438. package/src/assets/icons/usd_coin_colored.svg +0 -5
  439. package/src/assets/icons/user.svg +0 -3
  440. package/src/assets/icons/user_edit.svg +0 -3
  441. package/src/assets/icons/user_kyc.svg +0 -8
  442. package/src/assets/icons/viber.svg +0 -17
  443. package/src/assets/icons/viber_colored.svg +0 -8
  444. package/src/assets/icons/videoblocks.svg +0 -8
  445. package/src/assets/icons/vidiq-logo-mono.svg +0 -10
  446. package/src/assets/icons/vidiq_circle.svg +0 -5
  447. package/src/assets/icons/visibility.svg +0 -4
  448. package/src/assets/icons/visibility_off.svg +0 -7
  449. package/src/assets/icons/vkontakte.svg +0 -1
  450. package/src/assets/icons/vkontakte_colored.svg +0 -4
  451. package/src/assets/icons/wallet.svg +0 -5
  452. package/src/assets/icons/warning.svg +0 -3
  453. package/src/assets/icons/webmoney.svg +0 -10
  454. package/src/assets/icons/webmoney_colored.svg +0 -4
  455. package/src/assets/icons/website_colored.svg +0 -4
  456. package/src/assets/icons/whatsapp.svg +0 -12
  457. package/src/assets/icons/whatsapp_colored.svg +0 -4
  458. package/src/assets/icons/wise_colored.svg +0 -4
  459. package/src/assets/icons/worldfirst.svg +0 -12
  460. package/src/assets/icons/x_network.svg +0 -4
  461. package/src/assets/icons/yandexmoney.svg +0 -1
  462. package/src/assets/icons/yoomoney_colored.svg +0 -4
  463. package/src/assets/icons/youtube.svg +0 -3
  464. package/src/assets/icons/youtube_circled.svg +0 -4
  465. package/src/assets/icons/youtube_circled_second.svg +0 -4
  466. package/src/assets/icons/youtube_colored.svg +0 -4
  467. package/src/assets/icons/youtube_outlined.svg +0 -4
  468. package/src/assets/icons/zcash_colored.svg +0 -4
  469. package/src/assets/iconsSprite.svg +0 -1
  470. package/src/assets/img/no_table_data.png +0 -0
  471. package/src/assets/img/no_user.png +0 -0
  472. package/src/assets/main.scss +0 -233
  473. package/src/assets/styles/_functions.scss +0 -187
  474. package/src/assets/styles/_mixins.scss +0 -664
  475. package/src/assets/styles/_spacing.scss +0 -33
  476. package/src/assets/styles/_tooltip.scss +0 -123
  477. package/src/assets/styles/_variables.scss +0 -23
  478. package/src/assets/styles/main.scss +0 -4
  479. package/src/assets/styles/table.scss +0 -10
  480. package/src/assets/styles/toast.scss +0 -57
  481. package/src/assets/tokens/animations.scss +0 -57
  482. package/src/assets/tokens/border-radius.scss +0 -23
  483. package/src/assets/tokens/box-shadows.scss +0 -22
  484. package/src/assets/tokens/colors.scss +0 -81
  485. package/src/assets/tokens/durations.scss +0 -13
  486. package/src/assets/tokens/easings.scss +0 -6
  487. package/src/assets/tokens/font-families.scss +0 -8
  488. package/src/assets/tokens/font-sizes.scss +0 -23
  489. package/src/assets/tokens/font-weights.scss +0 -16
  490. package/src/assets/tokens/gradients.scss +0 -18
  491. package/src/assets/tokens/json/animations.json +0 -6
  492. package/src/assets/tokens/json/border-radius.json +0 -24
  493. package/src/assets/tokens/json/box-shadows.json +0 -24
  494. package/src/assets/tokens/json/colors.json +0 -71
  495. package/src/assets/tokens/json/durations.json +0 -10
  496. package/src/assets/tokens/json/easings.json +0 -3
  497. package/src/assets/tokens/json/font-families.json +0 -4
  498. package/src/assets/tokens/json/font-sizes.json +0 -18
  499. package/src/assets/tokens/json/font-weights.json +0 -12
  500. package/src/assets/tokens/json/gradients.json +0 -13
  501. package/src/assets/tokens/json/index.ts +0 -37
  502. package/src/assets/tokens/json/letter-spacings.json +0 -4
  503. package/src/assets/tokens/json/line-heights.json +0 -18
  504. package/src/assets/tokens/json/media-queries.json +0 -26
  505. package/src/assets/tokens/json/opacities.json +0 -5
  506. package/src/assets/tokens/json/sizes.json +0 -42
  507. package/src/assets/tokens/json/spacings.json +0 -34
  508. package/src/assets/tokens/json/z-indexes.json +0 -12
  509. package/src/assets/tokens/letter-spacings.scss +0 -6
  510. package/src/assets/tokens/line-heights.scss +0 -22
  511. package/src/assets/tokens/media-queries.scss +0 -32
  512. package/src/assets/tokens/opacities.scss +0 -8
  513. package/src/assets/tokens/sizes.scss +0 -47
  514. package/src/assets/tokens/spacings.scss +0 -38
  515. package/src/assets/tokens/z-indexes.scss +0 -14
  516. package/src/components/elements/McAvatar/McAvatar.stories.ts +0 -71
  517. package/src/components/elements/McAvatar/McAvatar.vue +0 -252
  518. package/src/components/elements/McBadge/McBadge.stories.ts +0 -40
  519. package/src/components/elements/McBadge/McBadge.vue +0 -150
  520. package/src/components/elements/McBottomLoader/McBottomLoader.stories.ts +0 -47
  521. package/src/components/elements/McBottomLoader/McBottomLoader.vue +0 -79
  522. package/src/components/elements/McButton/McButton.stories.ts +0 -145
  523. package/src/components/elements/McButton/McButton.vue +0 -844
  524. package/src/components/elements/McChip/McChip.stories.ts +0 -102
  525. package/src/components/elements/McChip/McChip.vue +0 -309
  526. package/src/components/elements/McCropper/McCropper.stories.ts +0 -31
  527. package/src/components/elements/McCropper/McCropper.vue +0 -129
  528. package/src/components/elements/McDatepicker/McDatepicker.stories.ts +0 -440
  529. package/src/components/elements/McDatepicker/McDatepicker.vue +0 -832
  530. package/src/components/elements/McDraggable/McDraggable.stories.ts +0 -52
  531. package/src/components/elements/McDraggable/McDraggable.vue +0 -211
  532. package/src/components/elements/McFieldCheckbox/McFieldCheckbox.vue +0 -329
  533. package/src/components/elements/McFieldCheckbox/McFieldCheckox.stories.ts +0 -97
  534. package/src/components/elements/McFieldRadio/McFieldRadio.stories.ts +0 -91
  535. package/src/components/elements/McFieldRadio/McFieldRadio.vue +0 -258
  536. package/src/components/elements/McFieldRadioGroup/McFieldRadioGroup.stories.ts +0 -70
  537. package/src/components/elements/McFieldRadioGroup/McFieldRadioGroup.vue +0 -215
  538. package/src/components/elements/McFieldRange/McFieldRange.stories.ts +0 -93
  539. package/src/components/elements/McFieldRange/McFieldRange.vue +0 -279
  540. package/src/components/elements/McFieldSelect/McFieldSelect.stories.ts +0 -257
  541. package/src/components/elements/McFieldSelect/McFieldSelect.vue +0 -920
  542. package/src/components/elements/McFieldText/McFieldText.stories.ts +0 -258
  543. package/src/components/elements/McFieldText/McFieldText.vue +0 -898
  544. package/src/components/elements/McFieldToggle/McFieldToggle.stories.ts +0 -63
  545. package/src/components/elements/McFieldToggle/McFieldToggle.vue +0 -280
  546. package/src/components/elements/McInfinityLoadingTrigger/McInfinityLoadingTrigger.stories.ts +0 -49
  547. package/src/components/elements/McInfinityLoadingTrigger/McInfinityLoadingTrigger.vue +0 -95
  548. package/src/components/elements/McNodata/McNoData.stories.ts +0 -34
  549. package/src/components/elements/McNodata/McNoData.vue +0 -191
  550. package/src/components/elements/McNotification/McNotification.stories.ts +0 -43
  551. package/src/components/elements/McNotification/McNotification.vue +0 -219
  552. package/src/components/elements/McProgress/McProgress.stories.ts +0 -39
  553. package/src/components/elements/McProgress/McProgress.vue +0 -194
  554. package/src/components/elements/McSeparator/McSeparator.stories.ts +0 -35
  555. package/src/components/elements/McSeparator/McSeparator.vue +0 -131
  556. package/src/components/elements/McSlideUpDown/McSlideUpDown.stories.ts +0 -54
  557. package/src/components/elements/McSlideUpDown/McSlideUpDown.vue +0 -142
  558. package/src/components/elements/McStack/McStack.stories.ts +0 -108
  559. package/src/components/elements/McStack/McStack.vue +0 -147
  560. package/src/components/elements/McSvgIcon/McSvgIcon.stories.ts +0 -135
  561. package/src/components/elements/McSvgIcon/McSvgIcon.vue +0 -114
  562. package/src/components/elements/McTitle/McTitle.stories.ts +0 -73
  563. package/src/components/elements/McTitle/McTitle.vue +0 -368
  564. package/src/components/elements/McTooltip/McTooltip.stories.ts +0 -39
  565. package/src/components/elements/McTooltip/McTooltip.vue +0 -85
  566. package/src/components/index.ts +0 -136
  567. package/src/components/patterns/McAccordion/McAccordion.stories.ts +0 -99
  568. package/src/components/patterns/McAccordion/McAccordion.vue +0 -65
  569. package/src/components/patterns/McCell/McCell.stories.ts +0 -36
  570. package/src/components/patterns/McCell/McCell.vue +0 -96
  571. package/src/components/patterns/McCollapse/McCollapse.stories.ts +0 -100
  572. package/src/components/patterns/McCollapse/McCollapse.vue +0 -303
  573. package/src/components/patterns/McDropdown/McDropdown.stories.ts +0 -65
  574. package/src/components/patterns/McDropdown/McDropdown.vue +0 -297
  575. package/src/components/patterns/McDropdown/McDropdownPanel.vue +0 -65
  576. package/src/components/patterns/McFilter/McFilter.stories.ts +0 -76
  577. package/src/components/patterns/McFilter/McFilter.vue +0 -887
  578. package/src/components/patterns/McFilter/McFilterChip/McFilterChip.stories.ts +0 -37
  579. package/src/components/patterns/McFilter/McFilterChip/McFilterChip.vue +0 -98
  580. package/src/components/patterns/McFilter/McFilterTags/McFilterTags.stories.ts +0 -41
  581. package/src/components/patterns/McFilter/McFilterTags/McFilterTags.vue +0 -377
  582. package/src/components/patterns/McFilter/McFilterTypeDate/McFilterTypeDate.stories.ts +0 -29
  583. package/src/components/patterns/McFilter/McFilterTypeDate/McFilterTypeDate.vue +0 -69
  584. package/src/components/patterns/McFilter/McFilterTypeRange/McFilterTypeRange.stories.ts +0 -26
  585. package/src/components/patterns/McFilter/McFilterTypeRange/McFilterTypeRange.vue +0 -139
  586. package/src/components/patterns/McFilter/McFilterTypeRelation/McFilterTypeRelation.stories.ts +0 -26
  587. package/src/components/patterns/McFilter/McFilterTypeRelation/McFilterTypeRelation.vue +0 -247
  588. package/src/components/patterns/McFilter/McFilterTypeText/McFilterTypeText.stories.ts +0 -26
  589. package/src/components/patterns/McFilter/McFilterTypeText/McFilterTypeText.vue +0 -61
  590. package/src/components/patterns/McGridCol/McGridCol.stories.ts +0 -34
  591. package/src/components/patterns/McGridCol/McGridCol.vue +0 -159
  592. package/src/components/patterns/McGridRow/McGridRow.stories.ts +0 -74
  593. package/src/components/patterns/McGridRow/McGridRow.vue +0 -143
  594. package/src/components/patterns/McOverlay/McOverlay.stories.ts +0 -44
  595. package/src/components/patterns/McOverlay/McOverlay.vue +0 -77
  596. package/src/components/patterns/McPreview/McPreview.stories.ts +0 -45
  597. package/src/components/patterns/McPreview/McPreview.vue +0 -109
  598. package/src/components/patterns/McSideBar/McSideBar.stories.ts +0 -54
  599. package/src/components/patterns/McSideBar/McSideBar.vue +0 -378
  600. package/src/components/patterns/McSideBar/McSideBarBottom/McSideBarBottom.stories.ts +0 -32
  601. package/src/components/patterns/McSideBar/McSideBarBottom/McSideBarBottom.vue +0 -116
  602. package/src/components/patterns/McSideBar/McSideBarButton/McSideBarButton.stories.ts +0 -23
  603. package/src/components/patterns/McSideBar/McSideBarButton/McSideBarButton.vue +0 -232
  604. package/src/components/patterns/McSideBar/McSideBarCenter/McSideBarCenter.stories.ts +0 -34
  605. package/src/components/patterns/McSideBar/McSideBarCenter/McSideBarCenter.vue +0 -342
  606. package/src/components/patterns/McSideBar/McSideBarTop/McSideBarTop.stories.ts +0 -40
  607. package/src/components/patterns/McSideBar/McSideBarTop/McSideBarTop.vue +0 -211
  608. package/src/components/patterns/McTab/McTab.stories.ts +0 -23
  609. package/src/components/patterns/McTab/McTab.vue +0 -209
  610. package/src/components/patterns/McTabs/McTabs.stories.ts +0 -96
  611. package/src/components/patterns/McTabs/McTabs.vue +0 -387
  612. package/src/components/patterns/McWrapScroll/McWrapScroll.stories.ts +0 -56
  613. package/src/components/patterns/McWrapScroll/McWrapScroll.vue +0 -305
  614. package/src/components/templates/McDrawer/McDrawer.stories.ts +0 -88
  615. package/src/components/templates/McDrawer/McDrawer.vue +0 -217
  616. package/src/components/templates/McDrawer/McDrawerContainer.vue +0 -54
  617. package/src/components/templates/McDrawer/McDrawerContentTemplate/McDrawerContentTemplate.stories.ts +0 -33
  618. package/src/components/templates/McDrawer/McDrawerContentTemplate/McDrawerContentTemplate.vue +0 -88
  619. package/src/components/templates/McModal/McModal.stories.ts +0 -92
  620. package/src/components/templates/McModal/McModal.vue +0 -716
  621. package/src/components/templates/McModal/McModalContainer.vue +0 -51
  622. package/src/components/templates/McTable/McTable/McTable.stories.ts +0 -192
  623. package/src/components/templates/McTable/McTable/McTable.vue +0 -650
  624. package/src/components/templates/McTable/McTableCard/McTableCard.stories.ts +0 -94
  625. package/src/components/templates/McTable/McTableCard/McTableCard.vue +0 -239
  626. package/src/components/templates/McTable/McTableCard/McTableCardHeader/McTableCardHeader.vue +0 -74
  627. package/src/components/templates/McTable/McTableSkeletonLoading/McTableSkeletonLoading.vue +0 -155
  628. package/src/components/templates/McTable/McTableSort/McTableSort.vue +0 -66
  629. package/src/components/templates/McTopBar/McTopBar.stories.ts +0 -68
  630. package/src/components/templates/McTopBar/McTopBar.vue +0 -149
  631. package/src/components/templates/McVirtualScroll/McVirtualScroll.stories.ts +0 -59
  632. package/src/components/templates/McVirtualScroll/McVirtualScroll.vue +0 -124
  633. package/src/composables/index.ts +0 -9
  634. package/src/composables/useDrawer.ts +0 -90
  635. package/src/composables/useEncodeDecode.ts +0 -22
  636. package/src/composables/useFieldErrors.ts +0 -24
  637. package/src/composables/useHelper.ts +0 -85
  638. package/src/composables/useModal.ts +0 -88
  639. package/src/composables/useRandomNumber.ts +0 -10
  640. package/src/composables/useTooltip.ts +0 -174
  641. package/src/consts/table.ts +0 -6
  642. package/src/enums/Cell.ts +0 -5
  643. package/src/enums/Chip.ts +0 -10
  644. package/src/enums/Datepicker.ts +0 -38
  645. package/src/enums/Drawer.ts +0 -4
  646. package/src/enums/Dropdown.ts +0 -11
  647. package/src/enums/Filter.ts +0 -13
  648. package/src/enums/Grid.ts +0 -21
  649. package/src/enums/Input.ts +0 -19
  650. package/src/enums/Modal.ts +0 -4
  651. package/src/enums/Preview.ts +0 -5
  652. package/src/enums/Radio.ts +0 -4
  653. package/src/enums/RadioGroup.ts +0 -4
  654. package/src/enums/Select.ts +0 -10
  655. package/src/enums/Sidebar.ts +0 -4
  656. package/src/enums/Tab.ts +0 -5
  657. package/src/enums/Title.ts +0 -20
  658. package/src/enums/Tooltip.ts +0 -14
  659. package/src/enums/index.ts +0 -23
  660. package/src/enums/ui/Alignment.ts +0 -5
  661. package/src/enums/ui/Button.ts +0 -23
  662. package/src/enums/ui/Directions.ts +0 -4
  663. package/src/enums/ui/Weights.ts +0 -6
  664. package/src/index.js +0 -16
  665. package/src/main.ts +0 -9
  666. package/src/mocks/authUser.ts +0 -163
  667. package/src/mocks/categories.js +0 -107
  668. package/src/mocks/filterMocks.ts +0 -133
  669. package/src/mocks/icons.json +0 -1
  670. package/src/mocks/menuLangs.ts +0 -20
  671. package/src/mocks/selectOptions.json +0 -111
  672. package/src/mocks/sidebar.ts +0 -131
  673. package/src/mocks/tableData.ts +0 -8338
  674. package/src/types/IButton.ts +0 -48
  675. package/src/types/ICell.ts +0 -5
  676. package/src/types/IChip.ts +0 -13
  677. package/src/types/ICollapse.ts +0 -15
  678. package/src/types/IDatepicker.ts +0 -44
  679. package/src/types/IDirections.ts +0 -5
  680. package/src/types/IDrawer.ts +0 -29
  681. package/src/types/IDropdown.ts +0 -6
  682. package/src/types/IFilter.ts +0 -185
  683. package/src/types/IGrid.ts +0 -4
  684. package/src/types/IInput.ts +0 -6
  685. package/src/types/IModal.ts +0 -30
  686. package/src/types/IPreview.ts +0 -5
  687. package/src/types/IRadio.ts +0 -5
  688. package/src/types/IRadioGroup.ts +0 -12
  689. package/src/types/IRoute.ts +0 -14
  690. package/src/types/ISelect.ts +0 -19
  691. package/src/types/ISideBar.ts +0 -76
  692. package/src/types/ITable.ts +0 -76
  693. package/src/types/ITabs.ts +0 -33
  694. package/src/types/ITitle.ts +0 -6
  695. package/src/types/ITooltip.ts +0 -30
  696. package/src/types/index.ts +0 -39
  697. package/src/types/styles/Alignment.ts +0 -4
  698. package/src/types/styles/AvatarSizes.ts +0 -5
  699. package/src/types/styles/Colors.ts +0 -6
  700. package/src/types/styles/Durations.ts +0 -6
  701. package/src/types/styles/FontSizes.ts +0 -5
  702. package/src/types/styles/FontWeights.ts +0 -6
  703. package/src/types/styles/Grid.ts +0 -18
  704. package/src/types/styles/Icons.ts +0 -4
  705. package/src/types/styles/LineHeights.ts +0 -5
  706. package/src/types/styles/MediaQueries.ts +0 -5
  707. package/src/types/styles/Radiuses.ts +0 -5
  708. package/src/types/styles/Sizes.ts +0 -6
  709. package/src/types/styles/Spaces.ts +0 -6
  710. package/src/types/styles/Weights.ts +0 -3
  711. package/src/utils/dayjs.js +0 -22
  712. package/src/utils/mcGridColAdaptiveProps.ts +0 -15
  713. package/src/utils/mcTitleAdaptiveProps.ts +0 -15
@@ -1,37 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/vue3'
2
- import McFilterChip from './McFilterChip.vue'
3
-
4
- const meta = {
5
- title: 'McFilterChip',
6
- component: McFilterChip,
7
- tags: ['autodocs'],
8
- argTypes: {
9
- tag: { control: 'object' },
10
- closable: { control: 'boolean' },
11
- isActive: { control: 'boolean' }
12
- },
13
- args: {
14
- tag: {
15
- id: 172958897132595070,
16
- categoryName: 'Поиск',
17
- title: 'McPay',
18
- value: 'McPay',
19
- category: 'email'
20
- },
21
- closable: true,
22
- isActive: true
23
- },
24
- parameters: {
25
- componentSubtitle: 'Status: Ready',
26
- design: {
27
- type: 'figma',
28
- url: ''
29
- }
30
- }
31
- } satisfies Meta<typeof McFilterChip>
32
- export default meta
33
- type Story = StoryObj<typeof meta>
34
-
35
- export const Default: Story = {
36
- args: {}
37
- }
@@ -1,98 +0,0 @@
1
- <script setup lang="ts">
2
- import McTitle from '@/components/elements/McTitle/McTitle.vue'
3
- import McChip from '@/components/elements/McChip/McChip.vue'
4
- import { computed, type PropType } from 'vue'
5
- import type { ChipVariationUnion } from '@/types'
6
- import { ChipSize, Weights } from '@/enums'
7
- import { type IFilterTag } from '@/types/IFilter'
8
-
9
- const emit = defineEmits<{
10
- (e: 'close'): void
11
- }>()
12
-
13
- const props = defineProps({
14
- /**
15
- * Объект тэга
16
- */
17
- tag: {
18
- type: Object as PropType<IFilterTag>,
19
- required: true
20
- },
21
- /**
22
- * Закрывающийся
23
- */
24
- closable: {
25
- type: Boolean as PropType<boolean>,
26
- default: false
27
- },
28
- /**
29
- * Активный
30
- */
31
- isActive: {
32
- type: Boolean as PropType<boolean>,
33
- default: false
34
- }
35
- })
36
-
37
- const computedCategory = computed((): string => {
38
- const append = props.tag.title ? ':' : ''
39
- return `${props.tag.categoryName}${append}`
40
- })
41
-
42
- const computedVariation = computed((): ChipVariationUnion => {
43
- return props.closable ? 'purple-invert' : 'hover-gray'
44
- })
45
-
46
- const classes = computed((): { [key: string]: boolean } => {
47
- return {
48
- 'mc-filter-chip': true,
49
- 'mc-filter-chip--closable': props.closable,
50
- 'mc-filter-chip--is-active': props.isActive
51
- }
52
- })
53
-
54
- const handleChipClick = (e: Event): void => {
55
- e.stopPropagation()
56
- /**
57
- * Событие по закрытию тэга
58
- */
59
- emit('close')
60
- }
61
- </script>
62
-
63
- <template>
64
- <mc-chip
65
- :closable="closable"
66
- :variation="computedVariation"
67
- :class="classes"
68
- :size="ChipSize.S"
69
- @close="handleChipClick"
70
- >
71
- <mc-title v-if="tag.categoryName" :weight="Weights.SemiBold">{{ computedCategory }}</mc-title
72
- >&nbsp;
73
- <mc-title v-if="tag.title">{{ tag.title }}</mc-title>
74
- </mc-chip>
75
- </template>
76
-
77
- <style lang="scss">
78
- @use 'sass:color' as sasscolor;
79
- @use '../../../../assets/tokens/spacings' as *;
80
- @use '../../../../assets/tokens/colors' as *;
81
- .mc-filter-chip {
82
- $block-name: &;
83
- border-radius: $space-50;
84
- &--closable {
85
- border-radius: $space-150;
86
- &:hover {
87
- cursor: pointer;
88
- background-color: sasscolor.scale($color-purple, $lightness: 60%);
89
- }
90
- }
91
- &--is-active {
92
- background-color: sasscolor.scale($color-purple, $lightness: 60%);
93
- }
94
- .mc-title {
95
- width: auto;
96
- }
97
- }
98
- </style>
@@ -1,41 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/vue3'
2
- import McFilterTags from './McFilterTags.vue'
3
- import { defaultPlaceholders, filters } from '@/mocks/filterMocks'
4
-
5
- const meta = {
6
- title: 'McFilterTags',
7
- component: McFilterTags,
8
- tags: ['autodocs'],
9
- argTypes: {},
10
- args: {
11
- modelValue: {
12
- email: 'McPay',
13
- countries: { is: { '1': 'Беларусь', '3': 'Украина' } },
14
- views_count: { more: 1, less: 10000 },
15
- created_at: { more: '2024-10-01', less: '2024-11-30' },
16
- tags: { is: { Piece: 'Piece' } }
17
- },
18
- activeTag: {
19
- id: 172959013349119550,
20
- categoryName: 'Поиск',
21
- title: 'McPay',
22
- value: 'McPay',
23
- category: 'email'
24
- },
25
- filters: filters,
26
- placeholders: defaultPlaceholders
27
- },
28
- parameters: {
29
- componentSubtitle: 'Status: Ready',
30
- design: {
31
- type: 'figma',
32
- url: ''
33
- }
34
- }
35
- } satisfies Meta<typeof McFilterTags>
36
- export default meta
37
- type Story = StoryObj<typeof meta>
38
-
39
- export const Default: Story = {
40
- args: {}
41
- }
@@ -1,377 +0,0 @@
1
- <script setup lang="ts">
2
- //@ts-ignore
3
- import { dayjs } from '@/utils/dayjs'
4
-
5
- import McButton from '@/components/elements/McButton/McButton.vue'
6
- import McTooltip from '@/components/elements/McTooltip/McTooltip.vue'
7
- import McTitle from '@/components/elements/McTitle/McTitle.vue'
8
- import McGridRow from '@/components/patterns/McGridRow/McGridRow.vue'
9
- import McGridCol from '@/components/patterns/McGridCol/McGridCol.vue'
10
- import McFilterChip from '@/components/patterns/McFilter/McFilterChip/McFilterChip.vue'
11
- import { computed, type PropType, ref, watch } from 'vue'
12
- import { useRandomNumber } from '@/composables/useRandomNumber'
13
- import { TooltipPositions, TooltipSizes } from '@/enums'
14
- import { useHelper } from '@/composables/useHelper'
15
- import { FilterRelations, FilterTypes } from '@/enums/Filter'
16
- import type {
17
- FilterConditionName,
18
- IFilter,
19
- IFilterTag,
20
- IFilterPlaceholders,
21
- IFilterParsedValueFilterName,
22
- FilterMoreLessConditionName,
23
- RangeFilterValue,
24
- DateFilterValue
25
- } from '@/types/IFilter'
26
-
27
- const helper = useHelper()
28
- const randomNumber = useRandomNumber()
29
-
30
- const emit = defineEmits<{
31
- (e: 'tag-click', value: IFilterTag): void
32
- (e: 'tag-change', value: IFilterParsedValueFilterName): void
33
- (e: 'clear'): void
34
- }>()
35
- const props = defineProps({
36
- /**
37
- * Данные фильтра
38
- */
39
- modelValue: {
40
- type: Object as PropType<IFilterParsedValueFilterName>,
41
- default: () => ({})
42
- },
43
- /**
44
- * Типы фильтров
45
- */
46
- filters: {
47
- type: Array as PropType<IFilter[]>,
48
- required: true,
49
- default: () => []
50
- },
51
- /**
52
- * Переводы локализаций
53
- */
54
- placeholders: {
55
- type: Object as PropType<IFilterPlaceholders>,
56
- required: true
57
- },
58
- /**
59
- * Активный тэг
60
- */
61
- activeTag: {
62
- type: Object as PropType<IFilterTag | null>,
63
- default: () => ({})
64
- },
65
- useTimezone: {
66
- type: Boolean as PropType<boolean>,
67
- default: true
68
- }
69
- })
70
-
71
- const simpleValues = ref<IFilterParsedValueFilterName>({})
72
- const relationValues = ref<IFilterParsedValueFilterName>({})
73
- const prettyActiveTag = ref<IFilterTag | null>(null)
74
-
75
- const fastFilterTags = computed((): IFilterTag[] => {
76
- return simpleTags.value.filter((st) => st && st.type === FilterTypes.Fast)
77
- })
78
-
79
- const tagsWithoutFast = computed(() => {
80
- return simpleTags.value.filter((st) => st && st.type !== FilterTypes.Fast)
81
- })
82
-
83
- const simpleTags = computed((): IFilterTag[] => {
84
- const tags: IFilterTag[] = []
85
- !helper.isEmpty(simpleValues.value) &&
86
- Object.entries(simpleValues.value).forEach(([key, value]) => {
87
- const _key = key as string
88
- let _value = value as FilterConditionName
89
-
90
- const filter: IFilter = props.filters.find((f) => f.value === _key) || ({} as IFilter)
91
- if (filter && filter.type === FilterTypes.Fast) {
92
- tags.push({
93
- id: randomNumber.timestamp(5),
94
- categoryName: filter?.name,
95
- category: _key,
96
- type: FilterTypes.Fast
97
- } as IFilterTag)
98
- } else if (filter) {
99
- _value = value as FilterMoreLessConditionName
100
- const from = _value.more ? `${props.placeholders.from} ${getFormattedVal(_value.more, filter)}` : ''
101
-
102
- const to = _value.less
103
- ? `${props.placeholders.to} ${getFormattedVal(
104
- filter.type === FilterTypes.Date
105
- ? props.useTimezone
106
- ? dayjs(_value.less).subtract(1, 'days').format()
107
- : dayjs(_value.less).format()
108
- : _value.less,
109
- filter
110
- )}`
111
- : ''
112
- const space = from && to ? ' ' : ''
113
- const title = typeof value === 'object' ? `${from}${space}${to}`.toLowerCase() : value
114
- tags.push({
115
- id: randomNumber.timestamp(5),
116
- categoryName: filter?.name,
117
- title,
118
- value,
119
- category: _key
120
- } as IFilterTag)
121
- }
122
- })
123
- return tags
124
- })
125
-
126
- const relationRows = computed((): IFilterTag[][] => {
127
- let tags: IFilterTag[][] = []
128
-
129
- if (!helper.isEmpty(relationValues.value)) {
130
- tags = Object.entries(relationValues.value).map(([relationKey, relationVal]) => {
131
- const _relationKey = relationKey as string
132
- const _relationVal = relationVal as IFilterParsedValueFilterName
133
-
134
- if (relationKey === FilterRelations.Exists) {
135
- const empties: IFilterTag[] = Object.keys(_relationVal).map((key) => {
136
- const filter = props.filters.find((f) => f.value === key)
137
- return {
138
- id: randomNumber.timestamp(5),
139
- categoryName: filter?.name,
140
- value: key,
141
- category: key,
142
- relationKey,
143
- closable: true
144
- } as IFilterTag
145
- })
146
- const head = {
147
- id: randomNumber.timestamp(5),
148
- categoryName: props.placeholders.actions.empty,
149
- relationKey: FilterRelations.Exists
150
- } as IFilterTag
151
-
152
- return [head, ...empties]
153
- }
154
- const values: IFilterTag[] = []
155
- Object.entries(_relationVal).forEach(([categoryKey, categoryVal]) => {
156
- const _categoryKey = categoryKey as string
157
- const _categoryVal = categoryVal as FilterConditionName
158
-
159
- const filter: IFilter = props.filters.find((f) => f.value === _categoryKey) || ({} as IFilter)
160
- Object.entries(_categoryVal).forEach(([key, val]) => {
161
- values.push({
162
- id: randomNumber.timestamp(5),
163
- categoryName: filter?.name,
164
- title: val,
165
- value: key,
166
- category: _categoryKey,
167
- relationKey,
168
- closable: true
169
- } as IFilterTag)
170
- })
171
- })
172
- const head = {
173
- id: randomNumber.timestamp(5),
174
- //@ts-ignore
175
- categoryName: props.placeholders.actions?.[_relationKey],
176
- relationKey
177
- } as IFilterTag
178
-
179
- return [head, ...values]
180
- })
181
- }
182
- return tags.filter((t) => t.length > 1)
183
- })
184
-
185
- const hasButtonClear = computed(() => {
186
- return relationRows.value.length || simpleTags.value.length
187
- })
188
-
189
- const splitTags = (value: FilterConditionName) => {
190
- simpleValues.value = {}
191
- relationValues.value = {}
192
- if (helper.isEmpty(value)) return
193
- addInitTags(value)
194
- }
195
-
196
- const addInitTags = (parentVal: FilterConditionName, parentKey?: string) => {
197
- const relationKeys = [FilterRelations.Is, FilterRelations.IsNot, FilterRelations.Exists]
198
-
199
- for (let [key, val] of Object.entries(parentVal)) {
200
- if (relationKeys.includes(key as FilterRelations)) {
201
- relationValues.value[key] = {
202
- ...((relationValues.value[key] || {}) as object),
203
- ...(parentKey ? { [parentKey]: val } : {})
204
- } as FilterConditionName
205
- continue
206
- }
207
- if (val.constructor !== Object && parentKey) {
208
- simpleValues.value[parentKey] = parentVal
209
- continue
210
- }
211
- const filter = props.filters.find((f) => f.value === key)
212
- if (filter && filter.type === FilterTypes.Fast) {
213
- simpleValues.value[key] = { value: key } as FilterConditionName
214
- continue
215
- }
216
- val && addInitTags(val, key)
217
- }
218
- }
219
-
220
- const onTagClick = (tag: IFilterTag) => {
221
- prettyActiveTag.value = helper.isEqual(prettyActiveTag.value, tag) ? null : tag
222
- /**
223
- * Событие по клику на тэг
224
- */
225
- emit('tag-click', tag)
226
- }
227
- const onTagClose = (tag: IFilterTag, relationKey?: FilterRelations) => {
228
- const value = helper.cloneDeep(props.modelValue)
229
- switch (relationKey) {
230
- case FilterRelations.Exists:
231
- delete value[tag.category][relationKey]
232
- break
233
- case FilterRelations.Is:
234
- case FilterRelations.IsNot:
235
- //@ts-ignore
236
- delete value[tag.category][relationKey][tag.value]
237
- if (helper.isEmpty(value[tag.category][relationKey])) {
238
- delete value[tag.category][relationKey]
239
- }
240
- break
241
- default:
242
- delete value[tag.category]
243
- break
244
- }
245
-
246
- if (helper.isEmpty(value[tag.category])) {
247
- delete value[tag.category]
248
- }
249
- /**
250
- * Событие по изменению набора тэгов
251
- */
252
- emit('tag-change', value as IFilterParsedValueFilterName)
253
- }
254
-
255
- const handleClear = () => {
256
- /**
257
- * Событие по очистке всех тэгов
258
- */
259
- emit('clear')
260
- }
261
-
262
- const getFormattedVal = (val: RangeFilterValue | DateFilterValue, filter: IFilter) => {
263
- switch (filter.type) {
264
- case FilterTypes.Date:
265
- return dayjs(val).format('DD.MM.YYYY')
266
- case FilterTypes.Range:
267
- return getFormattedNum(val)
268
- default:
269
- return val
270
- }
271
- }
272
-
273
- const getFormattedNum = (num: RangeFilterValue) => {
274
- return num
275
- }
276
-
277
- const checkTagIsActive = (tag: IFilterTag) => {
278
- return helper.isEqual(prettyActiveTag.value, tag)
279
- }
280
-
281
- watch(
282
- () => props.modelValue,
283
- (val) => {
284
- splitTags(val)
285
- },
286
- { deep: true, immediate: true }
287
- )
288
-
289
- watch(
290
- () => props.activeTag,
291
- (val) => {
292
- prettyActiveTag.value = val
293
- },
294
- { immediate: true }
295
- )
296
- </script>
297
-
298
- <template>
299
- <div class="mc-filter-tags">
300
- <mc-title>{{ props.placeholders.added_filters }}</mc-title>
301
- <div class="mc-filter-tags__body">
302
- <div class="mc-filter-tags__body-left">
303
- <mc-grid-row v-if="tagsWithoutFast.length" :gutter-x="4" :gutter-y="8">
304
- <mc-grid-col v-for="tag in tagsWithoutFast" :key="tag.id">
305
- <mc-filter-chip
306
- :tag="tag"
307
- :is-active="checkTagIsActive(tag)"
308
- closable
309
- @click="() => onTagClick(tag)"
310
- @close="() => onTagClose(tag)"
311
- />
312
- </mc-grid-col>
313
- </mc-grid-row>
314
- <template v-if="relationRows.length">
315
- <mc-grid-row v-for="(row, index) in relationRows" :key="index" :gutter-x="4" :gutter-y="8">
316
- <mc-grid-col v-for="tag in row" :key="tag.id">
317
- <mc-filter-chip
318
- :tag="tag"
319
- :is-active="checkTagIsActive(tag)"
320
- :closable="tag.closable"
321
- @click="() => onTagClick(tag)"
322
- @close="() => onTagClose(tag, row[0].relationKey)"
323
- />
324
- </mc-grid-col>
325
- </mc-grid-row>
326
- </template>
327
- <mc-grid-row v-if="fastFilterTags.length" :gutter-x="4" :gutter-y="8">
328
- <mc-grid-col v-for="tag in fastFilterTags" :key="tag.id">
329
- <mc-tooltip :content="tag.description || ''" :placement="TooltipPositions.Top" :size="TooltipSizes.S">
330
- <mc-filter-chip :tag="tag" closable @close="() => onTagClose(tag)" />
331
- </mc-tooltip>
332
- </mc-grid-col>
333
- </mc-grid-row>
334
- </div>
335
- <div class="mc-filter-tags__body-right">
336
- <mc-button v-if="hasButtonClear" variation="dark-gray-outline" @click="handleClear">
337
- {{ placeholders.actions.clear }}
338
- </mc-button>
339
- </div>
340
- </div>
341
- </div>
342
- </template>
343
-
344
- <style lang="scss">
345
- @use '../../../../assets/styles/mixins' as *;
346
- @use '../../../../assets/tokens/spacings' as *;
347
- @use '../../../../assets/tokens/colors' as *;
348
- @use '../../../../assets/tokens/border-radius' as *;
349
- .mc-filter-tags {
350
- $block-name: &;
351
- @include child-indent-bottom($space-100);
352
- &__body {
353
- display: flex;
354
- justify-content: space-between;
355
- padding: $space-100;
356
- border: 1px solid $color-outline-gray;
357
- border-radius: $radius-100;
358
- background-color: $color-white;
359
- min-height: $space-500;
360
- &-left {
361
- flex-grow: 1;
362
- }
363
- &-right {
364
- margin-inline-start: $space-100;
365
- .mc-button {
366
- padding: $space-50 $space-150;
367
- height: $space-300;
368
- }
369
- }
370
- .mc-grid-row {
371
- &:not(:last-child) {
372
- margin-bottom: $space-50 !important;
373
- }
374
- }
375
- }
376
- }
377
- </style>
@@ -1,29 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/vue3'
2
- import McFilterTypeDate from '@/components/patterns/McFilter/McFilterTypeDate/McFilterTypeDate.vue'
3
- import { defaultPlaceholders } from '@/mocks/filterMocks'
4
-
5
- const meta = {
6
- title: 'McFilterTypeDate',
7
- component: McFilterTypeDate,
8
- tags: ['autodocs'],
9
- argTypes: {
10
- useTimezone: { control: 'boolean' },
11
- },
12
- args: {
13
- placeholders: defaultPlaceholders,
14
- useTimezone: false,
15
- },
16
- parameters: {
17
- componentSubtitle: 'Status: Ready',
18
- design: {
19
- type: 'figma',
20
- url: '',
21
- },
22
- },
23
- } satisfies Meta<typeof McFilterTypeDate>;
24
- export default meta;
25
- type Story = StoryObj<typeof meta>;
26
-
27
- export const Default: Story = {
28
- args: {}
29
- };
@@ -1,69 +0,0 @@
1
- <script setup lang="ts">
2
- import McDatepicker from '@/components/elements/McDatepicker/McDatepicker.vue'
3
- import { computed, type PropType } from 'vue'
4
- import type { IBaseFilter, IFilterCondition, IFilterDateValue } from '@/types/IFilter'
5
-
6
- const emit = defineEmits<{
7
- (e: 'update:modelValue', value: IFilterCondition): void
8
- }>()
9
- const props = defineProps({
10
- /**
11
- * Значение
12
- */
13
- modelValue: {
14
- type: Object as PropType<IFilterDateValue>,
15
- default: () => ({}) as IFilterDateValue
16
- },
17
- /**
18
- * Объект выбранного
19
- * фильтра
20
- */
21
- filter: {
22
- type: Object as PropType<IBaseFilter>,
23
- default: () => ({})
24
- },
25
- /**
26
- * Переводы локализаций
27
- */
28
- placeholders: {
29
- type: Object,
30
- required: true
31
- },
32
- useTimezone: {
33
- type: Boolean as PropType<boolean>,
34
- default: true
35
- }
36
- })
37
-
38
- const period = computed({
39
- get() {
40
- return props.modelValue ? [props.modelValue.more, props.modelValue.less] : []
41
- },
42
- set(val) {
43
- const period: IFilterDateValue = { more: val?.[0], less: val?.[1] }
44
- /**
45
- * Событие по изменению периода
46
- */
47
- emit('update:modelValue', { value: period })
48
- }
49
- })
50
- </script>
51
-
52
- <template>
53
- <mc-datepicker
54
- v-model="period"
55
- :placeholders="placeholders.calendar"
56
- :placeholder="filter.placeholder || placeholders.choose"
57
- :use-timezone="props.useTimezone"
58
- name="condition_dates"
59
- class="mc-filter-type-date"
60
- range
61
- />
62
- </template>
63
-
64
- <style lang="scss">
65
- .mc-filter-type-date {
66
- $block-name: &;
67
- width: 300px;
68
- }
69
- </style>
@@ -1,26 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/vue3'
2
- import McFilterTypeRange from './McFilterTypeRange.vue'
3
- import { defaultPlaceholders } from '@/mocks/filterMocks'
4
-
5
- const meta = {
6
- title: 'McFilterTypeRange',
7
- component: McFilterTypeRange,
8
- tags: ['autodocs'],
9
- argTypes: {},
10
- args: {
11
- placeholders: defaultPlaceholders,
12
- },
13
- parameters: {
14
- componentSubtitle: 'Status: Ready',
15
- design: {
16
- type: 'figma',
17
- url: '',
18
- },
19
- },
20
- } satisfies Meta<typeof McFilterTypeRange>;
21
- export default meta;
22
- type Story = StoryObj<typeof meta>;
23
-
24
- export const Default: Story = {
25
- args: {}
26
- };