adata-ui 2.1.41-beta.0 → 2.1.41-beta.10

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 (63) hide show
  1. package/-error.vue +1 -1
  2. package/CLAUDE.md +3 -2
  3. package/assets/styles/main.css +4 -3
  4. package/assets/styles/theme.css +20 -6
  5. package/assets/styles/ui.css +77 -0
  6. package/components/elements/button/AButtonV2.vue +60 -15
  7. package/components/elements/count-up/ACountUp.vue +54 -0
  8. package/components/elements/curve-block-v2/ACurveBlockV2.vue +56 -18
  9. package/components/elements/empty-box/empty-box-V2.vue +1 -1
  10. package/components/elements/error-template/index.vue +8 -3
  11. package/components/elements/infinite-carousel/AInfiniteCarousel.vue +46 -8
  12. package/components/elements/section-heading/ASectionHeading.vue +35 -0
  13. package/components/elements/select/ACascadeSelectV2.vue +710 -0
  14. package/components/elements/select/ASelectV2.vue +70 -143
  15. package/components/elements/select/cascade-utils.ts +115 -0
  16. package/components/elements/select/types.ts +27 -0
  17. package/components/elements/select/ui/cascade-drawer.vue +146 -0
  18. package/components/elements/select/ui/cascade-panel.vue +237 -0
  19. package/components/elements/select/ui/select-trigger.vue +167 -0
  20. package/components/elements/step-slider/AStepSliderColCard.vue +75 -42
  21. package/components/elements/step-slider/AStepSliderColNumber.vue +74 -53
  22. package/components/features/color-mode/AColorMode.client.vue +1 -23
  23. package/components/features/go-top/GoTop.vue +4 -0
  24. package/components/forms/feedback-form/FeedbackFormV2.vue +18 -18
  25. package/components/forms/input/AInputV2.vue +69 -47
  26. package/components/forms/input/textarea/ATextareaV2.vue +10 -5
  27. package/components/modals/ReportBugModal.vue +1 -1
  28. package/components/modals/id/IdModals.vue +14 -10
  29. package/components/navigation/bottom-navigation/ABottomNavigation.vue +1 -1
  30. package/components/navigation/footer/AFooter.vue +2 -2
  31. package/components/navigation/header/AHeader.vue +8 -4
  32. package/components/navigation/pill-tabs/APillTabsV2.vue +29 -14
  33. package/components/overlays/drawer/ADrawerV2.vue +9 -2
  34. package/components/overlays/modal/AModalV2.vue +1 -0
  35. package/icons/ai/ai-diamond-unfilled.vue +26 -0
  36. package/icons/ai/ai-diamond.vue +11 -0
  37. package/icons/arrow/arrow-down-left.vue +6 -0
  38. package/icons/arrow/arrow-up-right.vue +6 -0
  39. package/icons/clock-rotate-ccw.vue +7 -0
  40. package/icons/crown.vue +6 -0
  41. package/icons/letter/letter-a.vue +4 -2
  42. package/icons/letter/letter-b.vue +2 -2
  43. package/icons/letter/letter-c.vue +2 -2
  44. package/icons/letter/letter-d.vue +2 -2
  45. package/icons/letter/letter-e.vue +2 -2
  46. package/icons/list-checks.vue +3 -0
  47. package/icons/log-out.vue +21 -0
  48. package/icons/main-filter.vue +6 -1
  49. package/icons/refresh-cw.vue +8 -0
  50. package/icons/shield-check.vue +20 -0
  51. package/icons/shuffle.vue +3 -0
  52. package/icons/user-plus.vue +3 -0
  53. package/icons/wallet.vue +6 -0
  54. package/illustrations/notes-search.vue +20 -0
  55. package/illustrations/notes-sticky.vue +20 -0
  56. package/illustrations/scheme-notes.vue +21 -0
  57. package/illustrations/scheme-waypoints.vue +25 -0
  58. package/lang/en.ts +2 -1
  59. package/lang/kk.ts +3 -2
  60. package/lang/ru.ts +2 -1
  61. package/nuxt.config.ts +7 -4
  62. package/package.json +2 -2
  63. package/utils/toCssSize.ts +11 -0
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Нормализует размер из props в CSS-значение: число трактуем как пиксели,
3
+ * строку отдаём как есть (`70dvh`, `min(320px, 50vw)`), пустое — как «не задано».
4
+ *
5
+ * Общая для селектов и дроверов: и `ASelectV2`, и `ACascadeSelectV2` принимают
6
+ * размеры выпадашки в виде `number | string`.
7
+ */
8
+ export function toCssSize(value?: number | string | null): string | undefined {
9
+ if (value == null || value === '') return undefined
10
+ return typeof value === 'number' ? `${value}px` : value
11
+ }