adata-ui 2.1.40 → 2.1.41-beta.1

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 (258) hide show
  1. package/-error.vue +2 -2
  2. package/.playground/app.vue +13 -13
  3. package/.playground/nuxt.config.ts +1 -1
  4. package/CLAUDE.md +63 -0
  5. package/assets/styles/main.css +12 -0
  6. package/assets/styles/theme.css +583 -0
  7. package/assets/styles/ui.css +247 -0
  8. package/components/elements/a-select-row/ASelectRowV2.vue +13 -17
  9. package/components/elements/a-select-row/index.vue +13 -12
  10. package/components/elements/accordion/AAccordion.vue +2 -2
  11. package/components/elements/accordion/AAccordionGroup/AAccordionGroup.vue +1 -1
  12. package/components/elements/accordion/AAccordionGroup/ui.config.ts +4 -4
  13. package/components/elements/accordion/ui.config.ts +4 -4
  14. package/components/elements/alert/AAlert.vue +5 -5
  15. package/components/elements/bg-block/ABgBlock.vue +1 -1
  16. package/components/elements/button/AButton.vue +48 -45
  17. package/components/elements/button/AButtonV2.vue +74 -30
  18. package/components/elements/button-login/index.vue +2 -1
  19. package/components/elements/carousel/config.ui.ts +2 -2
  20. package/components/elements/chip-wrapper/AChipWrapper.vue +4 -3
  21. package/components/elements/chips/AChips.vue +4 -3
  22. package/components/elements/companies/AOurClients.vue +1 -1
  23. package/components/elements/count-up/ACountUp.vue +54 -0
  24. package/components/elements/curve-block/ACurveBlock.vue +15 -48
  25. package/components/elements/curve-block-v2/ACurveBlockV2.vue +60 -25
  26. package/components/elements/digit-badge/ADigitBadge.vue +17 -16
  27. package/components/elements/empty-box/empty-box-V2.vue +92 -0
  28. package/components/elements/error-template/index.vue +99 -31
  29. package/components/elements/feature-description/AFeatureDescription.vue +8 -8
  30. package/components/elements/illustrations/noAccess.vue +1 -1
  31. package/components/elements/infinite-carousel/AInfiniteCarousel.vue +44 -16
  32. package/components/elements/leave-note/ALeaveNote.vue +2 -2
  33. package/components/elements/pagination/APagination.vue +8 -8
  34. package/components/elements/section-heading/ASectionHeading.vue +35 -0
  35. package/components/elements/segmented/ASegmentedV2.vue +24 -21
  36. package/components/elements/select/ASelect.vue +28 -27
  37. package/components/elements/select/ASelectMobile.vue +5 -5
  38. package/components/elements/select/ASelectV2.vue +20 -28
  39. package/components/elements/select/ui/select-button.vue +8 -8
  40. package/components/elements/select/ui/select-list.vue +2 -2
  41. package/components/elements/show-more/AShowMore.vue +2 -2
  42. package/components/elements/show-more/AShowMoreV2.vue +3 -3
  43. package/components/elements/skeleton/ASkeleton.vue +1 -1
  44. package/components/elements/slider/ASlider.vue +3 -2
  45. package/components/elements/slider/ASliderV2.vue +182 -0
  46. package/components/elements/star-rating/AStarRating.vue +2 -2
  47. package/components/elements/status-badge/AStatusBadge.vue +40 -36
  48. package/components/elements/step-slider/AStepSliderColCard.vue +77 -39
  49. package/components/elements/step-slider/AStepSliderColNumber.vue +74 -53
  50. package/components/elements/table/table.config.ts +8 -8
  51. package/components/elements/tree-select/components/ATreeSelectNode.vue +4 -4
  52. package/components/elements/tree-select-mobile/components/ATreeSelectNodesMobile.vue +3 -3
  53. package/components/elements/tree-select-modal/ATreeSelectModal.vue +4 -4
  54. package/components/features/color-mode/AColorMode.client.vue +2 -24
  55. package/components/features/dropdown/ADropdownV2.vue +1 -1
  56. package/components/features/lang-switcher/lang-switcher.vue +6 -6
  57. package/components/features/payment/banner/BasicPlusLimitBanner.vue +3 -23
  58. package/components/features/payment/banner/PaymentBanner.vue +3 -23
  59. package/components/features/payment/banner/UpSellBanner.vue +1 -21
  60. package/components/features/payment/process/PaymentKaspiQrSidePanel.vue +8 -7
  61. package/components/features/payment/process/PaymentKaspiRedirectSidePanel.vue +5 -5
  62. package/components/features/payment/process/PaymentMethodSidePanel.vue +12 -12
  63. package/components/features/payment/process/PaymentTopUpSidePanel.vue +6 -6
  64. package/components/features/pk-mobile-services/APkMobileServices.vue +14 -43
  65. package/components/features//321/201hange-version/AChangeVersion.vue +1 -1
  66. package/components/forms/checkbox/ACheckbox.vue +8 -8
  67. package/components/forms/checkbox/ACheckboxV2.vue +8 -8
  68. package/components/forms/feedback-form/FeedbackForm.vue +8 -8
  69. package/components/forms/feedback-form/FeedbackFormV2.vue +9 -8
  70. package/components/forms/input/AInputV2.vue +39 -25
  71. package/components/forms/input/button/AInputButton.vue +1 -1
  72. package/components/forms/input/date/AInputDate.vue +13 -9
  73. package/components/forms/input/password/AInputPassword.vue +1 -1
  74. package/components/forms/input/standard/AInputStandard.vue +23 -14
  75. package/components/forms/input/textarea/ATextarea.vue +15 -11
  76. package/components/forms/input/textarea/ATextareaV2.vue +18 -13
  77. package/components/forms/radio-button/ARadioButton.vue +4 -4
  78. package/components/forms/request-demo/ARequestDemo.vue +5 -5
  79. package/components/forms/toggle/AToggle.vue +8 -7
  80. package/components/forms/toggle/AToggleV2.vue +7 -6
  81. package/components/modals/AConfirmationEmail.vue +3 -3
  82. package/components/modals/AboutTariffModal.vue +10 -9
  83. package/components/modals/AnotherDeviceModal.vue +11 -10
  84. package/components/modals/ApplicationAcceptedModal.vue +3 -2
  85. package/components/modals/ConnectingTariffModal.vue +1 -1
  86. package/components/modals/ContactsMobileModel.vue +5 -5
  87. package/components/modals/ContentNavigationModal.vue +8 -7
  88. package/components/modals/Insufficient-funds-modal.vue +4 -4
  89. package/components/modals/LimitReachedModal.vue +18 -7
  90. package/components/modals/NoAccessModal.vue +7 -3
  91. package/components/modals/PaymentMethodModal.vue +4 -4
  92. package/components/modals/RedirectsBanksModal.vue +4 -4
  93. package/components/modals/ReplenishModal.vue +2 -2
  94. package/components/modals/ReportBugConfirmModal.vue +2 -2
  95. package/components/modals/ReportBugModal.vue +2 -2
  96. package/components/modals/Resend.vue +4 -4
  97. package/components/modals/SubmitApplicationModal.vue +1 -5
  98. package/components/modals/id/AuthModal.vue +27 -47
  99. package/components/modals/id/IdAutoLogoutModal.vue +23 -24
  100. package/components/modals/id/IdBanner.vue +4 -24
  101. package/components/modals/id/IdConfirmAccountOtpModal.vue +5 -4
  102. package/components/modals/id/IdConfirmSuccessfulModal.vue +3 -3
  103. package/components/modals/id/IdLoginModal.vue +8 -8
  104. package/components/modals/id/IdModals.vue +1 -3
  105. package/components/modals/id/IdNewPasswordModal.vue +3 -3
  106. package/components/modals/id/IdOtpInput.vue +3 -3
  107. package/components/modals/id/IdPasswordSuccessfulModal.vue +3 -3
  108. package/components/modals/id/IdRecoveryModal.vue +3 -3
  109. package/components/modals/id/IdRegistrationModal.vue +4 -4
  110. package/components/modals/id/IdResetPasswordOtpModal.vue +5 -4
  111. package/components/modals/id/IdTwoFactorModal.vue +3 -2
  112. package/components/navigation/bottom-navigation/ABottomNavigation.vue +7 -7
  113. package/components/navigation/breadcrumbs/ABreadcrumbs.vue +4 -4
  114. package/components/navigation/footer/AFooter.vue +2 -2
  115. package/components/navigation/footer/ui/a-footer-accordion.vue +1 -1
  116. package/components/navigation/header/AHeader.vue +11 -11
  117. package/components/navigation/header/AlmatyContacts.vue +7 -7
  118. package/components/navigation/header/AstanaContacts.vue +4 -4
  119. package/components/navigation/header/CardGallery.vue +8 -7
  120. package/components/navigation/header/ContactMenu.vue +1 -1
  121. package/components/navigation/header/HeaderLink.vue +5 -5
  122. package/components/navigation/header/HeaderUsage.vue +14 -14
  123. package/components/navigation/header/ListItem.vue +4 -3
  124. package/components/navigation/header/NavCard.vue +6 -5
  125. package/components/navigation/header/NavList.vue +9 -8
  126. package/components/navigation/header/NotificationsMenu.vue +10 -10
  127. package/components/navigation/header/ProductMenu.vue +10 -9
  128. package/components/navigation/header/ProfileMenu.vue +13 -12
  129. package/components/navigation/header/SystemNotification.vue +4 -4
  130. package/components/navigation/line-tabs/ALineTabs.vue +10 -9
  131. package/components/navigation/pill-tabs/APillTabs.vue +18 -16
  132. package/components/navigation/pill-tabs/APillTabsV2.vue +40 -25
  133. package/components/navigation/side-navigation/ASideNavigation.vue +3 -3
  134. package/components/overlays/drawer/ADrawerV2.vue +12 -11
  135. package/components/overlays/modal/AModal.vue +4 -4
  136. package/components/overlays/modal/AModalV2.vue +17 -13
  137. package/components/overlays/side-panel/ASidePanel.vue +7 -7
  138. package/components/overlays/sideover/ASlideover.vue +4 -4
  139. package/components/overlays/tooltip/ATooltip.vue +3 -2
  140. package/components/overlays/tooltip/ATooltipV2.vue +2 -2
  141. package/composables/highlight.ts +2 -1
  142. package/eslint.config.mjs +14 -1
  143. package/icons/arrow/arrow-left.vue +14 -0
  144. package/icons/arrow-currency-gray.vue +1 -1
  145. package/icons/arrow-currency-green.vue +1 -1
  146. package/icons/arrow-currency-red.vue +1 -1
  147. package/icons/avatar.vue +1 -1
  148. package/icons/bar-chart-3.vue +3 -0
  149. package/icons/book-open.vue +3 -0
  150. package/icons/bookmark/bookmark-filled.vue +1 -0
  151. package/icons/braces.vue +3 -0
  152. package/icons/check/check-outline.vue +3 -0
  153. package/icons/chevron/chevron-down-outline.vue +3 -0
  154. package/icons/clipboard-list.vue +3 -0
  155. package/icons/clock-outline.vue +3 -0
  156. package/icons/company-egov-small.vue +1 -1
  157. package/icons/database.vue +3 -0
  158. package/icons/download-outline.vue +3 -0
  159. package/icons/download.vue +1 -1
  160. package/icons/egov.vue +1 -1
  161. package/icons/elicense.vue +1 -1
  162. package/icons/file-json.vue +3 -0
  163. package/icons/file-search.vue +3 -0
  164. package/icons/file-text.vue +3 -0
  165. package/icons/flask-conical.vue +3 -0
  166. package/icons/folder-open.vue +3 -0
  167. package/icons/gift-outline.vue +3 -0
  168. package/icons/globe-2.vue +3 -0
  169. package/icons/graph-loading.vue +2 -2
  170. package/icons/hand/hand-thumb-up-filled.vue +1 -1
  171. package/icons/home.vue +14 -0
  172. package/icons/invoice.vue +1 -0
  173. package/icons/key-round.vue +3 -0
  174. package/icons/letter/letter-a.vue +4 -2
  175. package/icons/letter/letter-b.vue +2 -2
  176. package/icons/letter/letter-c.vue +2 -2
  177. package/icons/letter/letter-d.vue +2 -2
  178. package/icons/letter/letter-e.vue +2 -2
  179. package/icons/logo.vue +1 -1
  180. package/icons/main-filter.vue +1 -1
  181. package/icons/menu.vue +4 -4
  182. package/icons/message/message.vue +1 -1
  183. package/icons/messages-square.vue +3 -0
  184. package/icons/more.vue +1 -1
  185. package/icons/payment/payment-card.vue +2 -2
  186. package/icons/radio/radio-check.vue +1 -1
  187. package/icons/robot-outline.vue +3 -0
  188. package/icons/scales/scale-outline.vue +3 -0
  189. package/icons/search-outline.vue +3 -0
  190. package/icons/send.vue +3 -0
  191. package/icons/star/star-filled.vue +1 -0
  192. package/icons/star/star-half-filled.vue +1 -0
  193. package/icons/sun.vue +1 -0
  194. package/icons/terminal.vue +3 -0
  195. package/icons/toasts/warning-triangle-toast.vue +1 -0
  196. package/icons/triangle-alert.vue +3 -0
  197. package/icons/users-outline.vue +3 -0
  198. package/icons/webhook.vue +3 -0
  199. package/icons/x-outline.vue +3 -0
  200. package/icons/yandex.vue +2 -1
  201. package/illustrations/address-location.vue +2 -2
  202. package/illustrations/award-badge.vue +105 -0
  203. package/illustrations/ball-with-chain.vue +7 -7
  204. package/illustrations/bill.vue +5 -5
  205. package/illustrations/buildings.vue +4 -4
  206. package/illustrations/calendar.vue +11 -11
  207. package/illustrations/chains.vue +12 -12
  208. package/illustrations/coin-percent.vue +3 -3
  209. package/illustrations/coins-stack.vue +4 -4
  210. package/illustrations/delete-dark.vue +1 -0
  211. package/illustrations/delete.vue +1 -0
  212. package/illustrations/doc-with-stamp.vue +5 -5
  213. package/illustrations/document.vue +3 -3
  214. package/illustrations/door.vue +79 -68
  215. package/illustrations/empty-badge-check.vue +20 -0
  216. package/illustrations/empty-ban.vue +18 -0
  217. package/illustrations/empty-box.vue +5 -5
  218. package/illustrations/empty-filter.vue +20 -0
  219. package/illustrations/empty-inbox.vue +19 -0
  220. package/illustrations/empty-scale.vue +22 -0
  221. package/illustrations/empty-search-x.vue +21 -0
  222. package/illustrations/empty-shopping-cart.vue +21 -0
  223. package/illustrations/empty-users-round.vue +20 -0
  224. package/illustrations/empty-wallet.vue +121 -155
  225. package/illustrations/graph-in-coin.vue +2 -2
  226. package/illustrations/hammer.vue +5 -5
  227. package/illustrations/hand-cash.vue +1 -1
  228. package/illustrations/info.vue +49 -36
  229. package/illustrations/mail-active.vue +86 -0
  230. package/illustrations/mail.vue +4 -4
  231. package/illustrations/no-access.vue +92 -0
  232. package/illustrations/ok.vue +86 -58
  233. package/illustrations/people-group.vue +1 -1
  234. package/illustrations/person-with-phone.vue +5 -5
  235. package/illustrations/person.vue +3 -3
  236. package/illustrations/phone-check.vue +104 -84
  237. package/illustrations/phone-payment-method.vue +1 -1
  238. package/illustrations/shield-user.vue +94 -0
  239. package/illustrations/stop-hand.vue +78 -71
  240. package/illustrations/stop-sign.vue +1 -1
  241. package/illustrations/suit.vue +93 -107
  242. package/illustrations/suitcase.vue +6 -6
  243. package/illustrations/terminal.vue +94 -228
  244. package/illustrations/trash-can.vue +60 -102
  245. package/illustrations/turn-on-tariff.vue +2 -2
  246. package/illustrations/two-persons.vue +2 -2
  247. package/lang/en.ts +25 -29
  248. package/lang/kk.ts +24 -28
  249. package/lang/ru.ts +24 -29
  250. package/nuxt.config.ts +11 -4
  251. package/package.json +7 -12
  252. package/assets/styles/index.scss +0 -166
  253. package/assets/styles/modules/_base.scss +0 -5
  254. package/assets/styles/modules/_typography.scss +0 -152
  255. package/components/elements/error-template/types.ts +0 -23
  256. package/illustrations/terminal-dark.vue +0 -48
  257. package/tailwind.config.ts +0 -194
  258. package/tests/AButton.test.ts +0 -81
@@ -35,13 +35,13 @@ const props = withDefaults(defineProps<Props>(), {
35
35
  })
36
36
 
37
37
  const classes = computed(() => [
38
- 'text-body-md-strong rounded-sm cursor-pointer outline-none transition duration-200 select-none',
38
+ 'text-body-md-strong rounded-sm cursor-pointer outline-hidden transition duration-200 select-none',
39
39
  props.block ? 'w-full' : '',
40
40
  typeSwitchValues[props.view][props.variant],
41
41
  sizeSwitchValues[props.form][props.size]
42
42
  ])
43
43
  const disabledClasses = computed(() => [
44
- 'text-body-md-strong rounded-sm outline-none transition duration-200 select-none',
44
+ 'text-body-md-strong rounded-sm outline-hidden transition duration-200 select-none',
45
45
  props.block ? 'w-full' : '',
46
46
  disabledTypeSwitchValues[props.view],
47
47
  sizeSwitchValues[props.form][props.size]
@@ -49,91 +49,94 @@ const disabledClasses = computed(() => [
49
49
 
50
50
  const typeSwitchActiveValues: ViewSwitchValues = {
51
51
  default: {
52
- primary: 'bg-deepblue-900 text-white dark:bg-gray-200',
53
- success: 'bg-deepblue-900 text-white dark:bg-gray-200',
54
- danger: 'bg-deepblue-900 text-white dark:bg-gray-200 ',
55
- gray: 'bg-deepblue-900 text-white dark:bg-gray-200 dark:text-gray-900 hover:text-deepblue-900 dark:hover:text-gray-200',
52
+ primary: 'bg-secondary-500 text-white',
53
+ success: 'bg-secondary-500 text-white',
54
+ danger: 'bg-secondary-500 text-white ',
55
+ gray: 'bg-secondary-500 text-white hover:text-primary',
56
56
  ghost:
57
- 'bg-deepblue-900 text-white dark:bg-gray-200 dark:text-gray-900 hover:text-deepblue-900 dark:hover:text-gray-200'
57
+ 'bg-secondary-500 text-white hover:text-primary'
58
58
  },
59
59
  transparent: {
60
- primary: 'bg-blue-700 text-white dark:bg-blue-500 dark:text-gray-900',
61
- success: 'bg-green-500 text-white dark:bg-green-400 dark:text-gray-900',
62
- danger: 'bg-red-500 text-white dark:bg-red-400 dark:text-gray-900',
63
- gray: 'bg-deepblue-900 text-white dark:bg-gray-200 dark:text-gray-900 hover:text-deepblue-900 dark:hover:text-gray-200',
60
+ primary: 'bg-action-primary text-action-primary-fg',
61
+ success: 'bg-success text-white',
62
+ danger: 'bg-action-danger text-action-danger-fg',
63
+ gray: 'bg-secondary-500 text-white hover:text-primary',
64
64
  ghost:
65
- 'bg-white text-deepblue-900 dark:bg-gray-900 dark:text-gray-200 hover:text-deepblue-900 dark:hover:text-gray-200'
65
+ /* ghost на тёмной поверхности: активная «инверсия» — константный white */
66
+ 'bg-white text-secondary-500 hover:text-secondary-500'
66
67
  },
67
68
  outline: {
68
- primary: 'bg-blue-700 text-white dark:bg-blue-500 dark:text-gray-900',
69
- success: 'bg-green-500 text-white dark:bg-green-400 dark:text-gray-900',
70
- danger: 'bg-red-500 text-white dark:bg-red-400 dark:text-gray-900',
71
- gray: 'bg-deepblue-900 text-white dark:bg-gray-200 dark:text-gray-900 hover:text-deepblue-900 dark:hover:text-gray-200',
69
+ primary: 'bg-action-primary text-action-primary-fg',
70
+ success: 'bg-success text-white',
71
+ danger: 'bg-action-danger text-action-danger-fg',
72
+ gray: 'bg-secondary-500 text-white hover:text-primary',
72
73
  ghost:
73
- 'bg-gray-500 text-white dark:bg-gray-500 dark:text-gray-900 hover:text-deepblue-900 dark:hover:text-gray-200'
74
+ 'bg-gray-400 text-white hover:text-primary'
74
75
  },
75
76
  rounded: {
76
- primary: 'bg-deepblue-900 text-white dark:bg-gray-200',
77
- success: 'bg-deepblue-900 text-white dark:bg-gray-200',
78
- danger: 'bg-deepblue-900 text-white dark:bg-gray-200 ',
79
- gray: 'bg-deepblue-900 text-white dark:bg-gray-200 dark:text-gray-900 hover:text-deepblue-900 dark:hover:text-gray-200',
77
+ primary: 'bg-secondary-500 text-white',
78
+ success: 'bg-secondary-500 text-white',
79
+ danger: 'bg-secondary-500 text-white ',
80
+ gray: 'bg-secondary-500 text-white hover:text-primary',
80
81
  ghost:
81
- 'bg-deepblue-900 text-white dark:bg-gray-200 dark:text-gray-900 hover:text-deepblue-900 dark:hover:text-gray-200'
82
+ 'bg-secondary-500 text-white hover:text-primary'
82
83
  },
83
84
  }
84
85
 
86
+ /* осознанно константные инверсии: active:bg-secondary-500/белое-на-цветном — keep-лист ДС */
85
87
  const typeSwitchValues: ViewSwitchValues = {
86
88
  default: {
87
89
  primary:
88
- 'bg-blue-700 text-white hover:bg-blue-900 active:bg-deepblue-900 active:text-white dark:bg-blue-500 dark:text-gray-900 dark:hover:bg-blue-700 dark:active:bg-gray-200',
90
+ 'bg-action-primary text-action-primary-fg hover:bg-action-primary-hover active:bg-action-primary-active',
89
91
  success:
90
- 'bg-green-500 text-white hover:bg-green-900 active:bg-deepblue-900 active:text-white dark:bg-green dark:text-gray-900 dark:hover:bg-green-300 dark:active:bg-gray-200',
92
+ 'bg-success text-white hover:bg-green-700 active:bg-green-800 dark:hover:bg-green-800 dark:active:bg-green-900',
91
93
  danger:
92
- 'bg-red-500 text-white hover:bg-red-700 active:bg-deepblue-900 active:text-white dark:bg-red-400 dark:text-gray-900 dark:hover:bg-red-300 dark:active:bg-gray-200',
93
- gray: 'bg-deepblue-900/5 text-deepblue-900 hover:bg-deepblue-900/10 active:bg-deepblue-900 active:text-white dark:bg-gray-200/5 dark:hover:bg-gray-200/10 dark:active:bg-gray-200 dark:text-gray-200 dark:active:text-gray-900',
94
+ 'bg-action-danger text-action-danger-fg hover:bg-action-danger-hover active:bg-action-danger-hover',
95
+ gray: 'bg-muted text-primary hover:bg-action-secondary-hover active:bg-secondary-500 active:text-white',
94
96
  ghost:
95
- 'bg-white text-deepblue-900 hover:bg-deepblue-900/5 active:bg-deepblue-900 active:text-white dark:bg-gray-900 dark:text-gray-200 dark:bg-gray-900 dark:hover:bg-gray-200/5 dark:active:bg-gray-200 dark:active:text-gray-900'
97
+ 'bg-main text-primary hover:bg-action-secondary-hover active:bg-secondary-500 active:text-white'
96
98
  },
97
99
  transparent: {
98
100
  primary:
99
- 'text-blue-700 hover:bg-blue-100 active:bg-blue-700 active:text-white dark:text-blue-500 dark:hover:bg-blue-500/20 dark:active:bg-blue-500 dark:active:text-gray-900',
101
+ 'text-brand hover:bg-brand-subtle active:bg-action-primary-hover active:text-action-primary-fg',
100
102
  success:
101
- 'text-green-500 hover:bg-green-500/20 active:bg-green-500 active:text-white dark:text-green-400 dark:hover:bg-green-400/20 dark:active:bg-green-400 dark:active:text-gray-900',
103
+ 'text-success hover:bg-success-subtle active:bg-success active:text-white',
102
104
  danger:
103
- 'text-red-500 hover:bg-red-500/20 active:bg-red-500 active:text-white dark:text-red-400 dark:hover:bg-red-400/20 dark:active:bg-red-400 dark:active:text-gray-900',
104
- gray: 'text-deepblue-900 hover:bg-deepblue-900/10 active:bg-deepblue-900 active:text-white dark:text-gray-200 dark:hover:bg-gray-200/5 dark:active:bg-gray-200 dark:active:text-gray-900',
105
+ 'text-danger hover:bg-danger/20 active:bg-danger active:text-white',
106
+ gray: 'text-primary hover:bg-action-secondary-hover active:bg-secondary-500 active:text-white',
105
107
  ghost:
106
- 'text-white hover:bg-deepblue-900/10 active:bg-white active:text-deepblue-900 dark:text-gray-200 dark:hover:bg-gray-200/5 dark:active:bg-gray-900 dark:active:text-gray-200'
108
+ /* ghost на тёмной поверхности: активная «инверсия» — константный white */
109
+ 'text-white hover:bg-secondary-500/10 dark:hover:bg-white/10 active:bg-white active:text-secondary-500'
107
110
  },
108
111
  outline: {
109
112
  primary:
110
- 'border border-blue-700 text-blue-700 hover:bg-blue-100 active:bg-blue-700 active:text-white dark:border-blue-500 dark:text-blue-500 dark:hover:bg-blue-500/20 dark:active:bg-blue-500 dark:active:text-gray-900',
113
+ 'border border-brand text-brand hover:bg-brand-subtle active:bg-action-primary-hover active:text-action-primary-fg',
111
114
  success:
112
- 'border border-green-500 text-green-500 hover:bg-green-500/20 active:bg-green-500 active:text-white dark:border-green-400 dark:text-green-400 dark:hover:bg-green-400/20 dark:active:bg-green-400 dark:active:text-gray-900',
115
+ 'border border-success text-success hover:bg-success-subtle active:bg-success active:text-white',
113
116
  danger:
114
- 'border border-red-500 text-red-500 hover:bg-red-500/20 active:bg-red-500 active:text-white dark:text-red-400 dark:border-red-400 dark:hover:bg-red-400/20 dark:active:bg-red-400 dark:active:text-gray-900',
115
- gray: 'border border-gray-500/50 text-deepblue-900 hover:bg-deepblue-900/10 active:bg-deepblue-900 active:text-white dark:border-gray-500/50 dark:text-gray-200 dark:hover:bg-gray-200/5 dark:active:bg-gray-200 dark:active:text-gray-900',
117
+ 'border border-danger text-danger hover:bg-danger/20 active:bg-danger active:text-white',
118
+ gray: 'border border-strong text-primary hover:bg-action-secondary-hover active:bg-secondary-500 active:text-white',
116
119
  ghost:
117
- 'border border-white text-white hover:bg-deepblue-900 active:bg-gray-500 active:text-white dark:border-gray-200 dark:text-gray-200 dark:hover:bg-gray-200/5 dark:active:bg-gray-500 dark:active:text-gray-900'
120
+ 'border border-white text-white hover:bg-secondary-500 active:bg-gray-400 active:text-white'
118
121
  },
119
122
  rounded: {
120
123
  primary:
121
- 'rounded-[32px] bg-blue-700 text-white hover:bg-blue-900 active:bg-deepblue-900 active:text-white dark:bg-blue-500 dark:text-gray-900 dark:hover:bg-blue-700 dark:active:bg-gray-200',
124
+ 'rounded-[32px] bg-action-primary text-action-primary-fg hover:bg-action-primary-hover active:bg-action-primary-active',
122
125
  success:
123
- 'rounded-[32px] bg-green-500 text-white hover:bg-green-900 active:bg-deepblue-900 active:text-white dark:bg-green dark:text-gray-900 dark:hover:bg-green-300 dark:active:bg-gray-200',
126
+ 'rounded-[32px] bg-success text-white hover:bg-green-700 active:bg-green-800 dark:hover:bg-green-800 dark:active:bg-green-900',
124
127
  danger:
125
- 'rounded-[32px] bg-red-500 text-white hover:bg-red-700 active:bg-deepblue-900 active:text-white dark:bg-red-400 dark:text-gray-900 dark:hover:bg-red-300 dark:active:bg-gray-200',
126
- gray: 'rounded-[32px] bg-deepblue-900/5 text-deepblue-900 hover:bg-deepblue-900/10 active:bg-deepblue-900 active:text-white dark:bg-gray-200/5 dark:hover:bg-gray-200/10 dark:active:bg-gray-200 dark:text-gray-200 dark:active:text-gray-900',
128
+ 'rounded-[32px] bg-action-danger text-action-danger-fg hover:bg-action-danger-hover active:bg-action-danger-hover',
129
+ gray: 'rounded-[32px] bg-muted text-primary hover:bg-action-secondary-hover active:bg-secondary-500 active:text-white',
127
130
  ghost:
128
- 'rounded-[32px] bg-white text-deepblue-900 hover:bg-deepblue-900/5 active:bg-deepblue-900 active:text-white dark:bg-gray-900 dark:text-gray-200 dark:bg-gray-900 dark:hover:bg-gray-200/5 dark:active:bg-gray-200 dark:active:text-gray-900'
131
+ 'rounded-[32px] bg-main text-primary hover:bg-action-secondary-hover active:bg-secondary-500 active:text-white'
129
132
  },
130
133
  }
131
134
 
132
135
  const disabledTypeSwitchValues: DisabledViewSwitchValues = {
133
136
  default:
134
- 'bg-deepblue-900/5 text-deepblue-900/20 dark:bg-gray-200/5 dark:text-gray-200/20 pointer-events-none',
135
- transparent: 'text-gray-500/50 pointer-events-none',
136
- outline: 'border border-gray-500/50 text-gray-500/50 pointer-events-none'
137
+ 'pointer-events-none bg-action-disabled text-action-disabled-fg',
138
+ transparent: 'pointer-events-none text-disabled',
139
+ outline: 'pointer-events-none border border-default text-disabled'
137
140
  }
138
141
 
139
142
  const sizeSwitchValues: SizeSwitchValues = {
@@ -1,10 +1,10 @@
1
1
  <script setup lang="ts">
2
2
  import type { Component } from 'vue'
3
3
 
4
- type View = 'solid' | 'outline' | 'ghost' | 'soft'
4
+ type View = 'solid' | 'outline' | 'ghost' | 'soft' | 'gradient'
5
5
  type Size = 'xs' | 'sm' | 'md' | 'lg'
6
6
  type Color = 'blue' | 'green' | 'red' | 'gray' | 'white'
7
- type Rounded = 'none' | 'sm' | 'md' | 'lg' | 'xl' | 'full'
7
+ type Rounded = 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | 'full'
8
8
 
9
9
  const props = withDefaults(defineProps<{
10
10
  view?: View
@@ -16,6 +16,8 @@ const props = withDefaults(defineProps<{
16
16
  loading?: boolean
17
17
  disabled?: boolean
18
18
  block?: boolean
19
+ glow?: boolean
20
+ square?: boolean
19
21
  type?: 'button' | 'submit' | 'reset'
20
22
  }>(), {
21
23
  view: 'solid',
@@ -26,6 +28,8 @@ const props = withDefaults(defineProps<{
26
28
  loading: false,
27
29
  disabled: false,
28
30
  block: false,
31
+ glow: false,
32
+ square: false,
29
33
  type: 'button',
30
34
  })
31
35
 
@@ -33,37 +37,65 @@ const emit = defineEmits<{ click: [event: MouseEvent] }>()
33
37
 
34
38
  const VIEW_CLASS: Record<Color, Record<View, string>> = {
35
39
  blue: {
36
- solid: 'bg-blue-600 text-white shadow-sm hover:bg-blue-700 hover:shadow-md active:bg-blue-800 dark:bg-blue-500 dark:hover:bg-blue-400',
37
- outline: 'border border-blue-500 bg-white text-blue-700 hover:bg-blue-50 active:bg-blue-100 dark:border-blue-500 dark:bg-gray-900 dark:text-blue-300 dark:hover:bg-blue-950/40',
38
- ghost: 'text-deepblue-900 hover:bg-gray-100 active:bg-gray-200 dark:text-gray-100 dark:hover:bg-white/[0.06] dark:active:bg-white/[0.1]',
39
- soft: 'bg-blue-50 text-blue-700 hover:bg-blue-100 active:bg-blue-200/70 dark:bg-blue-950/40 dark:text-blue-300 dark:hover:bg-blue-900/40',
40
+ solid: 'bg-action-primary text-action-primary-fg hover:bg-action-primary-hover active:bg-action-primary-active',
41
+ gradient: 'bg-linear-to-r from-brand-500 to-brand-400 text-inverted hover:brightness-105',
42
+ outline: 'border border-brand bg-action-secondary text-brand hover:bg-brand-subtle active:bg-blue-subtle',
43
+ ghost: 'text-action-secondary-fg hover:bg-action-secondary-hover active:bg-badge',
44
+ soft: 'bg-brand-subtle text-brand hover:bg-blue-subtle active:bg-brand-200/70 dark:active:bg-brand-500/25',
40
45
  },
41
46
  green: {
42
- solid: 'bg-green-600 text-white shadow-sm hover:bg-green-700 hover:shadow-md active:bg-green-800 dark:bg-green-500 dark:hover:bg-green-400',
43
- outline: 'border border-green-500 bg-white text-green-700 hover:bg-green-50 active:bg-green-100 dark:border-green-500 dark:bg-gray-900 dark:text-green-300 dark:hover:bg-green-950/40',
44
- ghost: 'text-green-700 hover:bg-green-50 active:bg-green-100 dark:text-green-300 dark:hover:bg-green-950/40',
45
- soft: 'bg-green-50 text-green-700 hover:bg-green-100 active:bg-green-200/70 dark:bg-green-950/40 dark:text-green-300 dark:hover:bg-green-900/40',
47
+ solid: 'bg-success text-white hover:bg-green-700 active:bg-green-800 dark:hover:bg-green-800 dark:active:bg-green-900',
48
+ gradient: 'bg-linear-to-r from-green-600 to-green-500 text-inverted hover:brightness-105',
49
+ outline: 'border border-success bg-action-secondary text-success hover:bg-success-subtle active:bg-green-200/70 dark:active:bg-green-500/25',
50
+ ghost: 'text-success hover:bg-success-subtle active:bg-green-200/70 dark:active:bg-green-500/25',
51
+ soft: 'bg-success-subtle text-success hover:bg-green-subtle active:bg-green-200/70 dark:active:bg-green-500/25',
46
52
  },
47
53
  red: {
48
- solid: 'bg-red-600 text-white shadow-sm hover:bg-red-700 hover:shadow-md active:bg-red-800 dark:bg-red-500 dark:hover:bg-red-400',
49
- outline: 'border border-red-500 bg-white text-red-700 hover:bg-red-50 active:bg-red-100 dark:border-red-500 dark:bg-gray-900 dark:text-red-300 dark:hover:bg-red-950/40',
50
- ghost: 'text-red-700 hover:bg-red-50 active:bg-red-100 dark:text-red-300 dark:hover:bg-red-950/40',
51
- soft: 'bg-red-50 text-red-700 hover:bg-red-100 active:bg-red-200/70 dark:bg-red-950/40 dark:text-red-300 dark:hover:bg-red-900/40',
54
+ solid: 'bg-action-danger text-action-danger-fg hover:bg-action-danger-hover active:bg-action-danger-hover',
55
+ gradient: 'bg-linear-to-r from-red-600 to-red-500 text-inverted hover:brightness-105',
56
+ outline: 'border border-danger bg-action-secondary text-danger hover:bg-danger-subtle active:bg-red-subtle',
57
+ ghost: 'text-danger hover:bg-danger-subtle active:bg-red-subtle',
58
+ soft: 'bg-danger-subtle text-danger hover:bg-red-subtle active:bg-red-200/70 dark:active:bg-red-500/25',
52
59
  },
53
60
  gray: {
54
- solid: 'bg-gray-600 text-white shadow-sm hover:bg-gray-700 hover:shadow-md active:bg-gray-800 dark:bg-gray-500 dark:hover:bg-gray-400',
55
- outline: 'border border-gray-300 bg-white text-deepblue-900 hover:border-gray-400 hover:bg-gray-50 active:bg-gray-100 dark:border-gray-700 dark:bg-gray-900 dark:text-gray-100 dark:hover:border-gray-600 dark:hover:bg-white/[0.06]',
56
- ghost: 'text-deepblue-900 hover:bg-gray-100 active:bg-gray-200 dark:text-gray-100 dark:hover:bg-white/[0.06] dark:active:bg-white/[0.1]',
57
- soft: 'bg-gray-100 text-gray-700 hover:bg-gray-200 active:bg-gray-200/70 dark:bg-gray-800/60 dark:text-gray-200 dark:hover:bg-gray-700/60',
61
+ /* осознанно константный серый solid: action-gray триады нет в ДС */
62
+ solid: 'bg-gray-500 text-white hover:bg-gray-600 active:bg-gray-700',
63
+ gradient: 'bg-linear-to-r from-gray-600 to-gray-500 text-inverted hover:brightness-105',
64
+ outline: 'border border-strong bg-action-secondary text-primary hover:border-strong hover:bg-action-secondary-hover active:bg-badge',
65
+ ghost: 'text-action-secondary-fg hover:bg-action-secondary-hover active:bg-badge',
66
+ soft: 'bg-badge text-quaternary hover:bg-badge active:bg-badge/70',
58
67
  },
59
68
  white: {
60
- solid: 'bg-white text-blue-700 shadow-sm hover:bg-blue-50 hover:shadow-md active:bg-blue-100 dark:bg-gray-900 dark:hover:bg-gray-800',
61
- outline: 'border border-blue-500 bg-white text-blue-700 hover:bg-blue-50 active:bg-blue-100 dark:border-blue-500 dark:bg-gray-900 dark:text-blue-300 dark:hover:bg-blue-950/40',
62
- ghost: 'text-blue-700 hover:bg-blue-50 active:bg-blue-100 dark:text-blue-300 dark:hover:bg-blue-950/40',
63
- soft: 'bg-blue-50 text-blue-700 hover:bg-blue-100 active:bg-blue-200/70 dark:bg-blue-950/40 dark:text-blue-300 dark:hover:bg-blue-900/40',
69
+ solid: 'bg-main text-brand-600 hover:bg-brand-subtle active:bg-blue-subtle',
70
+ gradient: 'bg-linear-to-r from-white to-brand-50 text-brand-600 hover:brightness-105',
71
+ outline: 'border border-brand bg-main text-brand-600 hover:bg-brand-subtle active:bg-blue-subtle',
72
+ ghost: 'text-brand-600 hover:bg-brand-subtle active:bg-blue-subtle',
73
+ soft: 'bg-brand-subtle text-brand-600 hover:bg-blue-subtle active:bg-brand-200/70 dark:active:bg-brand-500/25',
64
74
  },
65
75
  }
66
76
 
77
+ /* Тень вынесена из VIEW_CLASS: конфликт shadow-утилит Tailwind решает порядком
78
+ в стилях, а не порядком классов, поэтому glow должен ЗАМЕНЯТЬ базовую тень. */
79
+ const RAISED_VIEWS: View[] = ['solid', 'gradient']
80
+
81
+ const BASE_ELEVATION = 'shadow-xs hover:shadow-md'
82
+
83
+ /* Цветная тень: форма и цвет раздельно. Тон берётся из примитивов, а не из
84
+ семантики — ореол не должен сам менять оттенок между темами; пара dark: —
85
+ осознанная подгонка плотности (на #161617 40% блюмит). */
86
+ const GLOW_CLASS: Record<Color, string> = {
87
+ blue: 'shadow-md shadow-brand-500/30 hover:shadow-lg hover:shadow-brand-500/40 dark:shadow-brand-400/25 dark:hover:shadow-brand-400/35',
88
+ green: 'shadow-md shadow-green-600/30 hover:shadow-lg hover:shadow-green-600/40 dark:shadow-green-500/25 dark:hover:shadow-green-500/35',
89
+ red: 'shadow-md shadow-red-600/30 hover:shadow-lg hover:shadow-red-600/40 dark:shadow-red-500/25 dark:hover:shadow-red-500/35',
90
+ gray: 'shadow-md shadow-gray-500/25 hover:shadow-lg hover:shadow-gray-500/35 dark:shadow-gray-400/20 dark:hover:shadow-gray-400/30',
91
+ white: 'shadow-md shadow-brand-500/25 hover:shadow-lg hover:shadow-brand-500/35 dark:shadow-brand-400/20 dark:hover:shadow-brand-400/30',
92
+ }
93
+
94
+ const elevationClass = computed(() => {
95
+ if (!RAISED_VIEWS.includes(props.view)) return ''
96
+ return props.glow ? GLOW_CLASS[props.color] : BASE_ELEVATION
97
+ })
98
+
67
99
  const SIZE_CLASS: Record<Size, string> = {
68
100
  xs: 'h-6 gap-1 px-2 text-body-sm',
69
101
  sm: 'h-8 gap-1.5 px-3 text-body-sm',
@@ -71,13 +103,24 @@ const SIZE_CLASS: Record<Size, string> = {
71
103
  lg: 'h-12 gap-2.5 px-5 text-body-lg',
72
104
  }
73
105
 
106
+ /* Квадрат под одну иконку: ЗАМЕНЯЕТ SIZE_CLASS, а не дописывается к нему —
107
+ `px-0` рядом с `px-4` проиграет (конфликт решает порядок в stylesheet), из-за
108
+ чего такие кнопки обычно лепят через `!w-10 !px-0`. */
109
+ const SQUARE_CLASS: Record<Size, string> = {
110
+ xs: 'size-6',
111
+ sm: 'size-8',
112
+ md: 'size-10',
113
+ lg: 'size-12',
114
+ }
115
+
74
116
  const ROUNDED_CLASS: Record<Rounded, string> = {
75
- none: 'rounded-none',
76
- sm: 'rounded-sm',
77
- md: 'rounded-md',
78
- lg: 'rounded-lg',
79
- xl: 'rounded-xl',
80
- full: 'rounded-full',
117
+ 'none': 'rounded-none',
118
+ 'sm': 'rounded-sm',
119
+ 'md': 'rounded-md',
120
+ 'lg': 'rounded-lg',
121
+ 'xl': 'rounded-xl',
122
+ '2xl': 'rounded-2xl',
123
+ 'full': 'rounded-full',
81
124
  }
82
125
 
83
126
  const ICON_SIZE: Record<Size, string> = {
@@ -97,10 +140,11 @@ function onClick(event: MouseEvent) {
97
140
  <button
98
141
  :type="type"
99
142
  :disabled="disabled || loading"
100
- class="button-v2 inline-flex select-none items-center justify-center font-semibold transition-all duration-150 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50"
143
+ class="button-v2 inline-flex items-center justify-center font-semibold transition-all duration-150 select-none focus:outline-hidden disabled:cursor-not-allowed disabled:opacity-50"
101
144
  :class="[
102
145
  VIEW_CLASS[color][view],
103
- SIZE_CLASS[size],
146
+ elevationClass,
147
+ square ? SQUARE_CLASS[size] : SIZE_CLASS[size],
104
148
  ROUNDED_CLASS[rounded],
105
149
  block ? 'w-full' : '',
106
150
  iconRight ? 'flex-row-reverse' : '',
@@ -5,9 +5,10 @@ const { t } = useI18n()
5
5
  </script>
6
6
 
7
7
  <template>
8
+ <!-- осознанно константный: фокус-кольцо ring-brand-500/50 — keep-лист ДС -->
8
9
  <button
9
10
  type="button"
10
- class="hidden h-8 cursor-pointer items-center rounded-lg bg-blue-700 px-3.5 text-sm font-semibold text-white transition-colors duration-150 hover:bg-blue-800 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500/50 focus-visible:ring-offset-1 dark:bg-blue-500 dark:text-gray-900 dark:hover:bg-blue-600 dark:focus-visible:ring-offset-gray-900 lg:inline-flex"
11
+ class="hidden h-8 cursor-pointer items-center rounded-lg bg-action-primary px-3.5 text-body-md-strong text-action-primary-fg transition-colors duration-150 hover:bg-action-primary-hover focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-brand-500/50 focus-visible:ring-offset-1 lg:inline-flex"
11
12
  data-test-id="header-login-button"
12
13
  @click="$emit('click')"
13
14
  >
@@ -8,8 +8,8 @@ export const ui = {
8
8
  indicators: {
9
9
  wrapper: 'absolute z-10 flex items-center justify-center gap-3 bottom-4 inset-x-0',
10
10
  base: 'rounded-full h-3 w-3',
11
- active: 'bg-primary-500 dark:bg-primary-400 bg-blue-700',
12
- inactive: 'bg-gray-200 dark:bg-gray-800 mix-blend-overlay',
11
+ active: 'bg-action-primary',
12
+ inactive: 'bg-badge mix-blend-overlay',
13
13
  },
14
14
  }
15
15
  export default {ui}
@@ -13,10 +13,11 @@ const props = withDefaults(defineProps<Props>(), {
13
13
  inset: false,
14
14
  })
15
15
  const ui = {
16
- wrapper: 'relative inline-flex items-center justify-center flex-shrink-0',
17
- base: 'absolute rounded-full ring-1 ring-white dark:ring-gray-900 flex items-center justify-center text-white dark:text-gray-900 font-medium whitespace-nowrap',
16
+ wrapper: 'relative inline-flex items-center justify-center shrink-0',
17
+ /* осознанно константный text-white: цифра на цветной плашке; ring — вырез под фон, флипается через var */
18
+ base: 'absolute rounded-full ring-1 ring-(--background-color-main) flex items-center justify-center text-white font-medium whitespace-nowrap',
18
19
  background: {
19
- green: 'bg-green-500 dark:bg-green-500'
20
+ green: 'bg-success'
20
21
  },
21
22
  position: {
22
23
  'top-right': 'top-0 right-0',
@@ -10,8 +10,8 @@ withDefaults(defineProps<Props>(), {view: 'outline', size: 'sm'})
10
10
 
11
11
 
12
12
  const chipView = {
13
- standard: 'text-deepblue border-gray focus-visible:outline-gray',
14
- outline: 'text-blue border-blue focus-visible:outline-blue'
13
+ standard: 'border-strong text-primary focus-visible:outline-(--border-color-strong)',
14
+ outline: 'border-brand text-brand focus-visible:outline-(--border-color-focus)'
15
15
  }
16
16
 
17
17
  const sizeOptions = {
@@ -22,8 +22,9 @@ const sizeOptions = {
22
22
  </script>
23
23
 
24
24
  <template>
25
+ <!-- осознанно константная тень фокуса #1B64B3: документированное исключение -->
25
26
  <button
26
- :class="twMerge(['flex items-center gap-2 rounded-2xl border border-solid px-2.5 text-xs hover:bg-deepblue-100 dark:hover:bg-[#E3E5E80D] focus-visible:shadow-[0_0_0_4px#1B64B3] active:bg-blue active:text-white disabled:border-deepblue-200 disabled:text-deepblue-200', chipView[view], sizeOptions[size]], $attrs.class)"
27
+ :class="twMerge(['flex items-center gap-2 rounded-2xl border border-solid px-2.5 text-body-sm hover:bg-action-secondary-hover focus-visible:shadow-[0_0_0_4px#1B64B3] active:bg-action-primary active:text-action-primary-fg disabled:border-default disabled:text-action-disabled-fg', chipView[view], sizeOptions[size]], $attrs.class)"
27
28
  >
28
29
  <slot/>
29
30
  </button>
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div class="flex flex-col gap-4 lg:gap-8">
3
3
  <slot name="title">
4
- <h2 class="md:heading-01 heading-02">{{ t('our_clients.title') }}</h2>
4
+ <h2 class="text-h2 md:text-display-sm">{{ t('our_clients.title') }}</h2>
5
5
  </slot>
6
6
  <a-infinite-carousel>
7
7
  <div class="flex items-center justify-center">
@@ -0,0 +1,54 @@
1
+ <script setup lang="ts">
2
+ // Декоративный счётчик: анимирует 0 → `to` при монтировании.
3
+ // С пропом `play` поведение другое: значение сразу стоит на `to`, а анимация
4
+ // играет заново на каждое изменение триггера (ховер карточки в лендингах).
5
+ const props = withDefaults(defineProps<{
6
+ to: number
7
+ duration?: number
8
+ suffix?: string
9
+ locale?: string
10
+ play?: number
11
+ }>(), {
12
+ duration: 1100,
13
+ suffix: '',
14
+ locale: 'ru-RU',
15
+ })
16
+
17
+ const isTriggered = computed(() => props.play !== undefined)
18
+
19
+ const value = ref(isTriggered.value ? props.to : 0)
20
+ const display = computed(() => `${Math.round(value.value).toLocaleString(props.locale)}${props.suffix}`)
21
+
22
+ let raf = 0
23
+
24
+ function run() {
25
+ cancelAnimationFrame(raf)
26
+ if (window.matchMedia('(prefers-reduced-motion: reduce)').matches) {
27
+ value.value = props.to
28
+ return
29
+ }
30
+ value.value = 0
31
+ let start = 0
32
+ const step = (ts: number) => {
33
+ if (!start) start = ts
34
+ const progress = Math.min(1, (ts - start) / props.duration)
35
+ value.value = props.to * (1 - (1 - progress) ** 3)
36
+ if (progress < 1) raf = requestAnimationFrame(step)
37
+ }
38
+ raf = requestAnimationFrame(step)
39
+ }
40
+
41
+ onMounted(() => {
42
+ if (!isTriggered.value) run()
43
+ })
44
+
45
+ watch(() => props.play, (next) => {
46
+ if (next) run()
47
+ })
48
+
49
+ onUnmounted(() => cancelAnimationFrame(raf))
50
+ </script>
51
+
52
+ <template>
53
+ <span>{{ display }}</span>
54
+ </template>
@@ -112,17 +112,17 @@ const props = defineProps<{
112
112
 
113
113
  <div class="absolute left-6 top-6 flex flex-col gap-4 pr-6">
114
114
  <div class="flex items-center gap-2 title">
115
- <div class="rounded-[4px] icon-item bg-deepblue-900/5 dark:bg-gray-200/5 p-1">
115
+ <div class="rounded-[4px] icon-item bg-muted p-1">
116
116
  <component
117
117
  :is="icon"
118
118
  class="size-6 shrink-0"
119
119
  />
120
120
  </div>
121
- <p class="text-base font-semibold">
121
+ <p class="text-body-lg-strong">
122
122
  {{ title }}
123
123
  </p>
124
124
  </div>
125
- <p class="text-left text-sm text-gray-600 dark:text-gray-200">
125
+ <p class="text-left text-body-md text-quaternary">
126
126
  {{ description }}
127
127
  </p>
128
128
  </div>
@@ -192,10 +192,13 @@ const props = defineProps<{
192
192
  </template>
193
193
 
194
194
  <style lang="scss" scoped>
195
+ /* Сплошные цвета — на токенах: сами переключаются в тёмной теме.
196
+ SVG-градиенты обводки — фирменные (те же стопы, что .bg-gradient-blue),
197
+ свапаются парой light/dark ассетов ниже. */
195
198
  .border-path {
196
199
  stroke-dasharray: 1200;
197
200
  stroke-dashoffset: 1200;
198
- fill: #F4F5F6;
201
+ fill: var(--background-color-muted);
199
202
  }
200
203
 
201
204
  .border-path--large {
@@ -206,29 +209,29 @@ const props = defineProps<{
206
209
  .animated-border {
207
210
  stroke-dasharray: 180;
208
211
  stroke-dashoffset: 180;
209
- fill: #F4F5F6;
212
+ fill: var(--background-color-muted);
210
213
  }
211
214
 
212
215
  .active-item .title {
213
- color: #0070EB;
216
+ color: var(--text-color-brand);
214
217
  }
215
218
  .active-item .border-path {
216
- fill: #0070EB1A;
219
+ fill: var(--background-color-brand-subtle);
217
220
  }
218
221
  .active-item .icon-item {
219
- background: #2C3E500D;
222
+ background: color-mix(in srgb, var(--text-color-primary) 5%, transparent);
220
223
  }
221
224
 
222
225
  .curve-block:hover .border-path,
223
226
  .curve-block:hover .animated-border {
224
227
  transition: stroke-dashoffset 2s ease, fill 2s ease;
225
228
  stroke-dashoffset: 0;
226
- fill: white;
229
+ fill: var(--background-color-main);
227
230
  }
228
231
 
229
232
  .curve-block:hover .icon-item {
230
- background-color: #E0EFFF;
231
- color: #0070EB;
233
+ background-color: var(--background-color-blue-subtle);
234
+ color: var(--text-color-brand);
232
235
  transition: all 2s ease, fill 2s ease;
233
236
  }
234
237
 
@@ -249,43 +252,7 @@ const props = defineProps<{
249
252
  }
250
253
 
251
254
  .arrow {
252
- fill: #0070EB;
253
- }
254
-
255
- .dark {
256
- .border-path,
257
- .animated-border {
258
- fill: #26282b;
259
- }
260
-
261
- .active-item .title {
262
- color: #1b98e2;
263
- }
264
-
265
- .active-item .border-path {
266
- fill: #1B98E21A;
267
- }
268
-
269
- .active-item .icon-item {
270
- background: #E3E5E80D;
271
- }
272
-
273
-
274
- .curve-block:hover .icon-item {
275
- background-color: rgba(30, 88, 156, 0.6);
276
- color: #1b98e2;
277
- transition: all 2s ease, fill 2s ease;
278
- }
279
-
280
-
281
- .curve-block:hover .border-path,
282
- .curve-block:hover .animated-border {
283
- fill: #131415;
284
-
285
- }
286
- .arrow {
287
- fill: #1b98e2;
288
- }
255
+ fill: var(--color-icon-brand);
289
256
  }
290
257
  </style>
291
258