@vadem/ui 0.0.0-stage → 0.0.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 (289) hide show
  1. package/LICENSE-lucide.txt +43 -0
  2. package/README.md +19 -2
  3. package/fesm2022/vadem-ui-accordion.mjs +139 -0
  4. package/fesm2022/vadem-ui-accordion.mjs.map +1 -0
  5. package/fesm2022/vadem-ui-active-filters.mjs +355 -0
  6. package/fesm2022/vadem-ui-active-filters.mjs.map +1 -0
  7. package/fesm2022/vadem-ui-alert-dialog.mjs +433 -0
  8. package/fesm2022/vadem-ui-alert-dialog.mjs.map +1 -0
  9. package/fesm2022/vadem-ui-alert.mjs +266 -0
  10. package/fesm2022/vadem-ui-alert.mjs.map +1 -0
  11. package/fesm2022/vadem-ui-autocomplete.mjs +715 -0
  12. package/fesm2022/vadem-ui-autocomplete.mjs.map +1 -0
  13. package/fesm2022/vadem-ui-avatar.mjs +219 -0
  14. package/fesm2022/vadem-ui-avatar.mjs.map +1 -0
  15. package/fesm2022/vadem-ui-badge.mjs +86 -0
  16. package/fesm2022/vadem-ui-badge.mjs.map +1 -0
  17. package/fesm2022/vadem-ui-breadcrumbs.mjs +61 -0
  18. package/fesm2022/vadem-ui-breadcrumbs.mjs.map +1 -0
  19. package/fesm2022/vadem-ui-button.mjs +220 -0
  20. package/fesm2022/vadem-ui-button.mjs.map +1 -0
  21. package/fesm2022/vadem-ui-calendar.mjs +1314 -0
  22. package/fesm2022/vadem-ui-calendar.mjs.map +1 -0
  23. package/fesm2022/vadem-ui-card.mjs +271 -0
  24. package/fesm2022/vadem-ui-card.mjs.map +1 -0
  25. package/fesm2022/vadem-ui-character-count.mjs +269 -0
  26. package/fesm2022/vadem-ui-character-count.mjs.map +1 -0
  27. package/fesm2022/vadem-ui-chart.mjs +1984 -0
  28. package/fesm2022/vadem-ui-chart.mjs.map +1 -0
  29. package/fesm2022/vadem-ui-checkbox.mjs +67 -0
  30. package/fesm2022/vadem-ui-checkbox.mjs.map +1 -0
  31. package/fesm2022/vadem-ui-color-picker.mjs +815 -0
  32. package/fesm2022/vadem-ui-color-picker.mjs.map +1 -0
  33. package/fesm2022/vadem-ui-command.mjs +735 -0
  34. package/fesm2022/vadem-ui-command.mjs.map +1 -0
  35. package/fesm2022/vadem-ui-copy-button.mjs +375 -0
  36. package/fesm2022/vadem-ui-copy-button.mjs.map +1 -0
  37. package/fesm2022/vadem-ui-date-range-picker.mjs +1011 -0
  38. package/fesm2022/vadem-ui-date-range-picker.mjs.map +1 -0
  39. package/fesm2022/vadem-ui-description-list.mjs +59 -0
  40. package/fesm2022/vadem-ui-description-list.mjs.map +1 -0
  41. package/fesm2022/vadem-ui-dialog.mjs +587 -0
  42. package/fesm2022/vadem-ui-dialog.mjs.map +1 -0
  43. package/fesm2022/vadem-ui-dropzone.mjs +176 -0
  44. package/fesm2022/vadem-ui-dropzone.mjs.map +1 -0
  45. package/fesm2022/vadem-ui-editable-text.mjs +641 -0
  46. package/fesm2022/vadem-ui-editable-text.mjs.map +1 -0
  47. package/fesm2022/vadem-ui-empty-state.mjs +175 -0
  48. package/fesm2022/vadem-ui-empty-state.mjs.map +1 -0
  49. package/fesm2022/vadem-ui-expandable-text.mjs +244 -0
  50. package/fesm2022/vadem-ui-expandable-text.mjs.map +1 -0
  51. package/fesm2022/vadem-ui-field.mjs +583 -0
  52. package/fesm2022/vadem-ui-field.mjs.map +1 -0
  53. package/fesm2022/vadem-ui-file-preview.mjs +532 -0
  54. package/fesm2022/vadem-ui-file-preview.mjs.map +1 -0
  55. package/fesm2022/vadem-ui-file-size.mjs +83 -0
  56. package/fesm2022/vadem-ui-file-size.mjs.map +1 -0
  57. package/fesm2022/vadem-ui-form-error-summary.mjs +201 -0
  58. package/fesm2022/vadem-ui-form-error-summary.mjs.map +1 -0
  59. package/fesm2022/vadem-ui-icon.mjs +303 -0
  60. package/fesm2022/vadem-ui-icon.mjs.map +1 -0
  61. package/fesm2022/vadem-ui-input.mjs +120 -0
  62. package/fesm2022/vadem-ui-input.mjs.map +1 -0
  63. package/fesm2022/vadem-ui-kbd.mjs +286 -0
  64. package/fesm2022/vadem-ui-kbd.mjs.map +1 -0
  65. package/fesm2022/vadem-ui-keyboard.mjs +105 -0
  66. package/fesm2022/vadem-ui-keyboard.mjs.map +1 -0
  67. package/fesm2022/vadem-ui-locale.mjs +443 -0
  68. package/fesm2022/vadem-ui-locale.mjs.map +1 -0
  69. package/fesm2022/vadem-ui-menu.mjs +637 -0
  70. package/fesm2022/vadem-ui-menu.mjs.map +1 -0
  71. package/fesm2022/vadem-ui-navigation-list.mjs +130 -0
  72. package/fesm2022/vadem-ui-navigation-list.mjs.map +1 -0
  73. package/fesm2022/vadem-ui-number-input.mjs +264 -0
  74. package/fesm2022/vadem-ui-number-input.mjs.map +1 -0
  75. package/fesm2022/vadem-ui-otp-input.mjs +86 -0
  76. package/fesm2022/vadem-ui-otp-input.mjs.map +1 -0
  77. package/fesm2022/vadem-ui-pagination.mjs +353 -0
  78. package/fesm2022/vadem-ui-pagination.mjs.map +1 -0
  79. package/fesm2022/vadem-ui-password-input.mjs +213 -0
  80. package/fesm2022/vadem-ui-password-input.mjs.map +1 -0
  81. package/fesm2022/vadem-ui-popover.mjs +178 -0
  82. package/fesm2022/vadem-ui-popover.mjs.map +1 -0
  83. package/fesm2022/vadem-ui-progress.mjs +331 -0
  84. package/fesm2022/vadem-ui-progress.mjs.map +1 -0
  85. package/fesm2022/vadem-ui-radio.mjs +39 -0
  86. package/fesm2022/vadem-ui-radio.mjs.map +1 -0
  87. package/fesm2022/vadem-ui-range-slider.mjs +561 -0
  88. package/fesm2022/vadem-ui-range-slider.mjs.map +1 -0
  89. package/fesm2022/vadem-ui-rating.mjs +404 -0
  90. package/fesm2022/vadem-ui-rating.mjs.map +1 -0
  91. package/fesm2022/vadem-ui-relative-time.mjs +217 -0
  92. package/fesm2022/vadem-ui-relative-time.mjs.map +1 -0
  93. package/fesm2022/vadem-ui-reorder-list.mjs +601 -0
  94. package/fesm2022/vadem-ui-reorder-list.mjs.map +1 -0
  95. package/fesm2022/vadem-ui-scroll-area.mjs +65 -0
  96. package/fesm2022/vadem-ui-scroll-area.mjs.map +1 -0
  97. package/fesm2022/vadem-ui-search-input.mjs +307 -0
  98. package/fesm2022/vadem-ui-search-input.mjs.map +1 -0
  99. package/fesm2022/vadem-ui-segmented.mjs +297 -0
  100. package/fesm2022/vadem-ui-segmented.mjs.map +1 -0
  101. package/fesm2022/vadem-ui-select.mjs +1462 -0
  102. package/fesm2022/vadem-ui-select.mjs.map +1 -0
  103. package/fesm2022/vadem-ui-sidebar.mjs +493 -0
  104. package/fesm2022/vadem-ui-sidebar.mjs.map +1 -0
  105. package/fesm2022/vadem-ui-skeleton.mjs +106 -0
  106. package/fesm2022/vadem-ui-skeleton.mjs.map +1 -0
  107. package/fesm2022/vadem-ui-slider.mjs +60 -0
  108. package/fesm2022/vadem-ui-slider.mjs.map +1 -0
  109. package/fesm2022/vadem-ui-splitter.mjs +438 -0
  110. package/fesm2022/vadem-ui-splitter.mjs.map +1 -0
  111. package/fesm2022/vadem-ui-stat.mjs +369 -0
  112. package/fesm2022/vadem-ui-stat.mjs.map +1 -0
  113. package/fesm2022/vadem-ui-stepper.mjs +483 -0
  114. package/fesm2022/vadem-ui-stepper.mjs.map +1 -0
  115. package/fesm2022/vadem-ui-switch.mjs +45 -0
  116. package/fesm2022/vadem-ui-switch.mjs.map +1 -0
  117. package/fesm2022/vadem-ui-table.mjs +593 -0
  118. package/fesm2022/vadem-ui-table.mjs.map +1 -0
  119. package/fesm2022/vadem-ui-tabs.mjs +405 -0
  120. package/fesm2022/vadem-ui-tabs.mjs.map +1 -0
  121. package/fesm2022/vadem-ui-tag-input.mjs +685 -0
  122. package/fesm2022/vadem-ui-tag-input.mjs.map +1 -0
  123. package/fesm2022/vadem-ui-text-highlight.mjs +126 -0
  124. package/fesm2022/vadem-ui-text-highlight.mjs.map +1 -0
  125. package/fesm2022/vadem-ui-time-input.mjs +430 -0
  126. package/fesm2022/vadem-ui-time-input.mjs.map +1 -0
  127. package/fesm2022/vadem-ui-timeline.mjs +313 -0
  128. package/fesm2022/vadem-ui-timeline.mjs.map +1 -0
  129. package/fesm2022/vadem-ui-toast.mjs +397 -0
  130. package/fesm2022/vadem-ui-toast.mjs.map +1 -0
  131. package/fesm2022/vadem-ui-toolbar.mjs +396 -0
  132. package/fesm2022/vadem-ui-toolbar.mjs.map +1 -0
  133. package/fesm2022/vadem-ui-tooltip.mjs +218 -0
  134. package/fesm2022/vadem-ui-tooltip.mjs.map +1 -0
  135. package/fesm2022/vadem-ui-tree.mjs +551 -0
  136. package/fesm2022/vadem-ui-tree.mjs.map +1 -0
  137. package/fesm2022/vadem-ui-upload-list.mjs +408 -0
  138. package/fesm2022/vadem-ui-upload-list.mjs.map +1 -0
  139. package/fesm2022/vadem-ui.mjs +4 -0
  140. package/fesm2022/vadem-ui.mjs.map +1 -0
  141. package/fonts/jetbrains-mono/OFL.txt +93 -0
  142. package/fonts/jetbrains-mono/jetbrains-mono-cyrillic.woff2 +0 -0
  143. package/fonts/jetbrains-mono/jetbrains-mono-latin.woff2 +0 -0
  144. package/fonts/manrope/OFL.txt +93 -0
  145. package/fonts/manrope/manrope-cyrillic.woff2 +0 -0
  146. package/fonts/manrope/manrope-latin.woff2 +0 -0
  147. package/package.json +306 -3
  148. package/styles/base.css +160 -0
  149. package/styles/components/accordion.css +130 -0
  150. package/styles/components/active-filters.css +42 -0
  151. package/styles/components/alert-dialog.css +34 -0
  152. package/styles/components/alert.css +159 -0
  153. package/styles/components/autocomplete.css +97 -0
  154. package/styles/components/avatar.css +90 -0
  155. package/styles/components/badge.css +91 -0
  156. package/styles/components/breadcrumbs.css +94 -0
  157. package/styles/components/button.css +174 -0
  158. package/styles/components/calendar.css +186 -0
  159. package/styles/components/card.css +206 -0
  160. package/styles/components/character-count.css +41 -0
  161. package/styles/components/chart.css +308 -0
  162. package/styles/components/checkbox.css +115 -0
  163. package/styles/components/color-picker.css +158 -0
  164. package/styles/components/command.css +175 -0
  165. package/styles/components/copy-button.css +58 -0
  166. package/styles/components/date-range-picker.css +153 -0
  167. package/styles/components/description-list.css +69 -0
  168. package/styles/components/dialog.css +334 -0
  169. package/styles/components/dropzone.css +89 -0
  170. package/styles/components/editable-text.css +58 -0
  171. package/styles/components/empty-state.css +72 -0
  172. package/styles/components/expandable-text.css +24 -0
  173. package/styles/components/field.css +148 -0
  174. package/styles/components/file-preview.css +65 -0
  175. package/styles/components/form-error-summary.css +71 -0
  176. package/styles/components/icon.css +38 -0
  177. package/styles/components/index.css +80 -0
  178. package/styles/components/input.css +171 -0
  179. package/styles/components/kbd.css +42 -0
  180. package/styles/components/menu.css +168 -0
  181. package/styles/components/multi-select.css +156 -0
  182. package/styles/components/navigation-list.css +147 -0
  183. package/styles/components/number-input.css +33 -0
  184. package/styles/components/otp-input.css +26 -0
  185. package/styles/components/pagination.css +127 -0
  186. package/styles/components/password-input.css +20 -0
  187. package/styles/components/popover.css +93 -0
  188. package/styles/components/progress-ring.css +112 -0
  189. package/styles/components/progress.css +162 -0
  190. package/styles/components/radio.css +117 -0
  191. package/styles/components/range-slider.css +158 -0
  192. package/styles/components/rating.css +100 -0
  193. package/styles/components/reorder-list.css +143 -0
  194. package/styles/components/scroll-area.css +39 -0
  195. package/styles/components/search-input.css +25 -0
  196. package/styles/components/segmented.css +136 -0
  197. package/styles/components/select.css +257 -0
  198. package/styles/components/sidebar.css +105 -0
  199. package/styles/components/skeleton.css +83 -0
  200. package/styles/components/slider.css +132 -0
  201. package/styles/components/splitter.css +83 -0
  202. package/styles/components/stat.css +62 -0
  203. package/styles/components/stepper.css +236 -0
  204. package/styles/components/switch.css +107 -0
  205. package/styles/components/table.css +195 -0
  206. package/styles/components/tabs.css +198 -0
  207. package/styles/components/tag-input.css +138 -0
  208. package/styles/components/text-highlight.css +22 -0
  209. package/styles/components/time-input.css +96 -0
  210. package/styles/components/timeline.css +182 -0
  211. package/styles/components/toast.css +146 -0
  212. package/styles/components/toolbar.css +72 -0
  213. package/styles/components/tooltip.css +93 -0
  214. package/styles/components/tree.css +88 -0
  215. package/styles/components/upload-list.css +113 -0
  216. package/styles/fonts.css +67 -0
  217. package/styles/index.css +14 -0
  218. package/styles/reset.css +57 -0
  219. package/styles/tokens/primitives.css +364 -0
  220. package/styles/tokens/semantic.css +233 -0
  221. package/types/vadem-ui-accordion.d.ts +43 -0
  222. package/types/vadem-ui-active-filters.d.ts +73 -0
  223. package/types/vadem-ui-alert-dialog.d.ts +87 -0
  224. package/types/vadem-ui-alert.d.ts +64 -0
  225. package/types/vadem-ui-autocomplete.d.ts +156 -0
  226. package/types/vadem-ui-avatar.d.ts +59 -0
  227. package/types/vadem-ui-badge.d.ts +25 -0
  228. package/types/vadem-ui-breadcrumbs.d.ts +22 -0
  229. package/types/vadem-ui-button.d.ts +52 -0
  230. package/types/vadem-ui-calendar.d.ts +327 -0
  231. package/types/vadem-ui-card.d.ts +58 -0
  232. package/types/vadem-ui-character-count.d.ts +71 -0
  233. package/types/vadem-ui-chart.d.ts +452 -0
  234. package/types/vadem-ui-checkbox.d.ts +20 -0
  235. package/types/vadem-ui-color-picker.d.ts +171 -0
  236. package/types/vadem-ui-command.d.ts +145 -0
  237. package/types/vadem-ui-copy-button.d.ts +90 -0
  238. package/types/vadem-ui-date-range-picker.d.ts +216 -0
  239. package/types/vadem-ui-description-list.d.ts +15 -0
  240. package/types/vadem-ui-dialog.d.ts +174 -0
  241. package/types/vadem-ui-dropzone.d.ts +73 -0
  242. package/types/vadem-ui-editable-text.d.ts +141 -0
  243. package/types/vadem-ui-empty-state.d.ts +34 -0
  244. package/types/vadem-ui-expandable-text.d.ts +52 -0
  245. package/types/vadem-ui-field.d.ts +180 -0
  246. package/types/vadem-ui-file-preview.d.ts +108 -0
  247. package/types/vadem-ui-file-size.d.ts +18 -0
  248. package/types/vadem-ui-form-error-summary.d.ts +46 -0
  249. package/types/vadem-ui-icon.d.ts +152 -0
  250. package/types/vadem-ui-input.d.ts +31 -0
  251. package/types/vadem-ui-kbd.d.ts +66 -0
  252. package/types/vadem-ui-keyboard.d.ts +61 -0
  253. package/types/vadem-ui-locale.d.ts +241 -0
  254. package/types/vadem-ui-menu.d.ts +132 -0
  255. package/types/vadem-ui-navigation-list.d.ts +28 -0
  256. package/types/vadem-ui-number-input.d.ts +39 -0
  257. package/types/vadem-ui-otp-input.d.ts +15 -0
  258. package/types/vadem-ui-pagination.d.ts +96 -0
  259. package/types/vadem-ui-password-input.d.ts +36 -0
  260. package/types/vadem-ui-popover.d.ts +48 -0
  261. package/types/vadem-ui-progress.d.ts +95 -0
  262. package/types/vadem-ui-radio.d.ts +11 -0
  263. package/types/vadem-ui-range-slider.d.ts +136 -0
  264. package/types/vadem-ui-rating.d.ts +95 -0
  265. package/types/vadem-ui-relative-time.d.ts +58 -0
  266. package/types/vadem-ui-reorder-list.d.ts +120 -0
  267. package/types/vadem-ui-scroll-area.d.ts +13 -0
  268. package/types/vadem-ui-search-input.d.ts +58 -0
  269. package/types/vadem-ui-segmented.d.ts +76 -0
  270. package/types/vadem-ui-select.d.ts +303 -0
  271. package/types/vadem-ui-sidebar.d.ts +70 -0
  272. package/types/vadem-ui-skeleton.d.ts +28 -0
  273. package/types/vadem-ui-slider.d.ts +17 -0
  274. package/types/vadem-ui-splitter.d.ts +99 -0
  275. package/types/vadem-ui-stat.d.ts +101 -0
  276. package/types/vadem-ui-stepper.d.ts +108 -0
  277. package/types/vadem-ui-switch.d.ts +10 -0
  278. package/types/vadem-ui-table.d.ts +172 -0
  279. package/types/vadem-ui-tabs.d.ts +101 -0
  280. package/types/vadem-ui-tag-input.d.ts +170 -0
  281. package/types/vadem-ui-text-highlight.d.ts +27 -0
  282. package/types/vadem-ui-time-input.d.ts +47 -0
  283. package/types/vadem-ui-timeline.d.ts +54 -0
  284. package/types/vadem-ui-toast.d.ts +104 -0
  285. package/types/vadem-ui-toolbar.d.ts +80 -0
  286. package/types/vadem-ui-tooltip.d.ts +71 -0
  287. package/types/vadem-ui-tree.d.ts +123 -0
  288. package/types/vadem-ui-upload-list.d.ts +70 -0
  289. package/types/vadem-ui.d.ts +1 -0
@@ -0,0 +1,186 @@
1
+ /* Calendar and date picker - spec: specs/calendar.md */
2
+ @layer vd.components {
3
+ .vd-calendar {
4
+ --vd-calendar-cell: var(--vd-control-height-sm);
5
+ --vd-calendar-radius: var(--vd-radius-md);
6
+ --vd-calendar-selected-bg: var(--vd-color-action);
7
+ --vd-calendar-selected-fg: var(--vd-color-on-action);
8
+ --vd-calendar-hover: var(--vd-color-fill-hover);
9
+ --vd-calendar-today: var(--vd-color-text-accent);
10
+
11
+ display: inline-grid;
12
+ max-inline-size: 100%;
13
+ min-inline-size: 0;
14
+ overflow: auto;
15
+ padding: calc(var(--vd-focus-ring-width) + var(--vd-focus-ring-offset));
16
+ scroll-padding: calc(var(--vd-focus-ring-width) + var(--vd-focus-ring-offset));
17
+ gap: var(--vd-space-2);
18
+ font-size: var(--vd-text-sm);
19
+ font-variant-numeric: tabular-nums;
20
+ user-select: none;
21
+ }
22
+
23
+ .vd-calendar__header {
24
+ display: flex;
25
+ align-items: center;
26
+ justify-content: space-between;
27
+ gap: var(--vd-space-2);
28
+ }
29
+
30
+ .vd-calendar__title {
31
+ display: inline-block;
32
+ font-weight: var(--vd-weight-semibold);
33
+ }
34
+
35
+ /* "жовтень 2026 р." -> "Жовтень 2026 р.": only the first letter (capitalize would hit "р."). */
36
+ .vd-calendar__title::first-letter {
37
+ text-transform: uppercase;
38
+ }
39
+
40
+ .vd-calendar__nav {
41
+ display: inline-grid;
42
+ place-items: center;
43
+ inline-size: var(--vd-calendar-cell);
44
+ block-size: var(--vd-calendar-cell);
45
+ border: 0;
46
+ border-radius: var(--vd-calendar-radius);
47
+ background: transparent;
48
+ color: var(--vd-color-text-muted);
49
+ cursor: pointer;
50
+ transition: var(--vd-transition-colors);
51
+ }
52
+
53
+ @media (hover: hover) {
54
+ .vd-calendar__nav:not(:disabled):hover {
55
+ background-color: var(--vd-calendar-hover);
56
+ color: var(--vd-color-text);
57
+ }
58
+ }
59
+
60
+ .vd-calendar__nav:focus-visible {
61
+ outline: var(--vd-focus-ring-width) solid var(--vd-color-focus);
62
+ outline-offset: var(--vd-focus-ring-offset);
63
+ }
64
+
65
+ .vd-calendar__nav:disabled {
66
+ opacity: var(--vd-opacity-disabled);
67
+ cursor: not-allowed;
68
+ }
69
+
70
+ .vd-calendar__grid {
71
+ /* Equal columns whatever the weekday names or digits. */
72
+ table-layout: fixed;
73
+ inline-size: calc(var(--vd-calendar-cell) * 7 + var(--vd-space-0-5) * 8);
74
+ border-collapse: separate;
75
+ border-spacing: var(--vd-space-0-5);
76
+ margin: calc(var(--vd-space-0-5) * -1);
77
+ }
78
+
79
+ .vd-calendar__grid th {
80
+ block-size: var(--vd-space-6);
81
+ padding: 0;
82
+ overflow: hidden;
83
+ white-space: nowrap;
84
+ color: var(--vd-color-text-muted);
85
+ font-family: var(--vd-font-mono);
86
+ font-size: var(--vd-text-xs);
87
+ font-weight: var(--vd-weight-medium);
88
+ letter-spacing: var(--vd-tracking-caps);
89
+ text-transform: uppercase;
90
+ }
91
+
92
+ .vd-calendar__day {
93
+ position: relative;
94
+ inline-size: var(--vd-calendar-cell);
95
+ block-size: var(--vd-calendar-cell);
96
+ padding: 0;
97
+ border-radius: var(--vd-calendar-radius);
98
+ color: var(--vd-color-text);
99
+ text-align: center;
100
+ vertical-align: middle;
101
+ cursor: pointer;
102
+ transition:
103
+ var(--vd-transition-colors),
104
+ scale var(--vd-duration-fast) var(--vd-ease-out);
105
+ }
106
+
107
+ .vd-calendar__day[data-outside] {
108
+ color: var(--vd-color-text-muted);
109
+ }
110
+
111
+ @media (hover: hover) {
112
+ .vd-calendar__day:not([aria-selected='true'], [aria-disabled='true']):hover {
113
+ background-color: var(--vd-calendar-hover);
114
+ }
115
+ }
116
+
117
+ .vd-calendar__day:focus-visible {
118
+ outline: var(--vd-focus-ring-width) solid var(--vd-color-focus);
119
+ outline-offset: calc(var(--vd-focus-ring-width) * -1);
120
+ }
121
+
122
+ .vd-calendar__day:not([aria-disabled='true']):active {
123
+ scale: var(--vd-press-scale);
124
+ }
125
+
126
+ /* Today: a dot under the number (not color alone: also aria-current). */
127
+ .vd-calendar__day[aria-current='date'] {
128
+ color: var(--vd-calendar-today);
129
+ font-weight: var(--vd-weight-bold);
130
+ }
131
+
132
+ .vd-calendar__day[aria-current='date']::after {
133
+ content: '';
134
+ position: absolute;
135
+ inset-block-end: var(--vd-space-1);
136
+ inset-inline: 0;
137
+ inline-size: var(--vd-space-1);
138
+ block-size: var(--vd-space-1);
139
+ margin-inline: auto;
140
+ border-radius: var(--vd-radius-full);
141
+ background-color: currentColor;
142
+ }
143
+
144
+ .vd-calendar__day[aria-selected='true'] {
145
+ background-color: var(--vd-calendar-selected-bg);
146
+ box-shadow: var(--vd-highlight-top);
147
+ color: var(--vd-calendar-selected-fg);
148
+ font-weight: var(--vd-weight-semibold);
149
+ }
150
+
151
+ .vd-calendar__day[aria-disabled='true'] {
152
+ color: var(--vd-color-text-disabled);
153
+ text-decoration: line-through;
154
+ cursor: not-allowed;
155
+ }
156
+
157
+ @media (prefers-reduced-motion: reduce) {
158
+ .vd-calendar__day:active {
159
+ scale: none;
160
+ }
161
+ }
162
+
163
+ @media (forced-colors: active) {
164
+ .vd-calendar__day[aria-selected='true'] {
165
+ forced-color-adjust: none;
166
+ background-color: Highlight;
167
+ color: HighlightText;
168
+ }
169
+ }
170
+
171
+ /* ---------------------------------------------------------- date picker */
172
+
173
+ .vd-date-picker {
174
+ display: block;
175
+ inline-size: 100%;
176
+ max-inline-size: 16rem;
177
+ }
178
+
179
+ /* The panel reuses the popover surface; it sizes to the calendar. */
180
+ .vd-date-picker__panel {
181
+ --vd-popover-padding: var(--vd-space-3);
182
+
183
+ inline-size: max-content;
184
+ position-area: block-end span-inline-end;
185
+ }
186
+ }
@@ -0,0 +1,206 @@
1
+ /* Card - spec: specs/card.md. Signatures: top highlight, concentric radii, cursor glow. */
2
+ @layer vd.components {
3
+ .vd-card {
4
+ --vd-card-padding: var(--vd-space-6);
5
+ --vd-card-gap: var(--vd-space-4);
6
+ --vd-card-radius: var(--vd-radius-surface);
7
+ /* Concentric radius for anything nested edge-to-edge-minus-padding. */
8
+ --vd-card-inner-radius: max(
9
+ var(--vd-radius-xs),
10
+ calc(var(--vd-card-radius) - var(--vd-card-padding))
11
+ );
12
+ --vd-card-bg: var(--vd-color-surface);
13
+ --vd-card-border: var(--vd-color-border);
14
+ --vd-card-shadow: var(--vd-highlight-top);
15
+
16
+ position: relative;
17
+ isolation: isolate;
18
+ display: flex;
19
+ flex-direction: column;
20
+ gap: var(--vd-card-gap);
21
+ min-inline-size: 0;
22
+ padding: var(--vd-card-padding);
23
+ border: var(--vd-border-width) solid var(--vd-card-border);
24
+ border-radius: var(--vd-card-radius);
25
+ background-color: var(--vd-card-bg);
26
+ box-shadow: var(--vd-card-shadow);
27
+ color: var(--vd-color-text);
28
+ text-align: start;
29
+ text-decoration: none;
30
+ }
31
+
32
+ .vd-card[data-variant='raised'] {
33
+ --vd-card-bg: var(--vd-color-surface-raised);
34
+ --vd-card-shadow: var(--vd-highlight-top), var(--vd-shadow-md);
35
+ }
36
+
37
+ @container (width < 24rem) {
38
+ .vd-card {
39
+ --vd-card-padding: var(--vd-space-4);
40
+ }
41
+ }
42
+
43
+ /* ---------------------------------------------------------------- parts */
44
+
45
+ /* Title + extras (badge, actions) share the first row while the title has room (12rem);
46
+ otherwise extras wrap under it. The description always takes its own row. */
47
+ .vd-card__header {
48
+ display: flex;
49
+ flex-wrap: wrap;
50
+ align-items: flex-start;
51
+ gap: var(--vd-space-1) var(--vd-space-3);
52
+ }
53
+
54
+ .vd-card__header > :not(.vd-card__title, .vd-card__description) {
55
+ order: 1;
56
+ flex: none;
57
+ }
58
+
59
+ .vd-card__header > .vd-card__title {
60
+ flex: 1 1 12rem;
61
+ min-inline-size: 0;
62
+ }
63
+
64
+ .vd-card__header > .vd-card__description {
65
+ order: 2;
66
+ flex: 1 0 100%;
67
+ }
68
+
69
+ .vd-card__title {
70
+ margin: 0;
71
+ font-size: var(--vd-text-lg);
72
+ font-weight: var(--vd-weight-bold);
73
+ line-height: var(--vd-leading-snug);
74
+ letter-spacing: var(--vd-tracking-tight);
75
+ text-wrap: balance;
76
+ }
77
+
78
+ .vd-card__description {
79
+ margin: 0;
80
+ color: var(--vd-color-text-muted);
81
+ font-size: var(--vd-text-sm);
82
+ text-wrap: pretty;
83
+ }
84
+
85
+ .vd-card__footer {
86
+ display: flex;
87
+ flex-wrap: wrap;
88
+ align-items: center;
89
+ gap: var(--vd-space-2);
90
+ margin-block-start: auto;
91
+ }
92
+
93
+ /* Stretched primary link: one tab stop, whole card clickable. */
94
+ .vd-card__link {
95
+ color: inherit;
96
+ text-decoration: none;
97
+ }
98
+
99
+ .vd-card__link::after {
100
+ content: '';
101
+ position: absolute;
102
+ inset: 0;
103
+ z-index: 1;
104
+ border-radius: inherit;
105
+ }
106
+
107
+ .vd-card__link:focus-visible {
108
+ outline: none;
109
+ }
110
+
111
+ /* Other interactive content stays above the stretched link. */
112
+ .vd-card:has(.vd-card__link) :is(a, button, input, select, textarea):not(.vd-card__link) {
113
+ position: relative;
114
+ z-index: 2;
115
+ }
116
+
117
+ /* ---------------------------------------------------------- interactive */
118
+
119
+ .vd-card[data-interactive] {
120
+ cursor: pointer;
121
+ transition:
122
+ border-color var(--vd-duration-base) var(--vd-ease-out),
123
+ box-shadow var(--vd-duration-base) var(--vd-ease-out),
124
+ translate var(--vd-duration-base) var(--vd-ease-out),
125
+ scale var(--vd-duration-fast) var(--vd-ease-out);
126
+ }
127
+
128
+ /* Signature: cursor glow - a soft fill plus a brighter rim, both following --vd-x/--vd-y. */
129
+ .vd-card[data-interactive]::before,
130
+ .vd-card[data-interactive]::after {
131
+ content: '';
132
+ position: absolute;
133
+ inset: calc(var(--vd-border-width) * -1);
134
+ z-index: -1;
135
+ border-radius: inherit;
136
+ opacity: 0;
137
+ pointer-events: none;
138
+ transition: opacity var(--vd-duration-slow) var(--vd-ease-out);
139
+ }
140
+
141
+ .vd-card[data-interactive]::before {
142
+ background: radial-gradient(
143
+ var(--vd-glow-size) circle at var(--vd-x, 50%) var(--vd-y, 0%),
144
+ var(--vd-glow-color),
145
+ transparent 70%
146
+ );
147
+ }
148
+
149
+ .vd-card[data-interactive]::after {
150
+ z-index: 0;
151
+ padding: var(--vd-border-width);
152
+ background: radial-gradient(
153
+ calc(var(--vd-glow-size) * 0.6) circle at var(--vd-x, 50%) var(--vd-y, 0%),
154
+ var(--vd-glow-border),
155
+ transparent 70%
156
+ );
157
+ mask:
158
+ linear-gradient(#000 0 0) content-box exclude,
159
+ linear-gradient(#000 0 0);
160
+ }
161
+
162
+ @media (hover: hover) {
163
+ .vd-card[data-interactive]:hover {
164
+ --vd-card-border: var(--vd-color-border-strong);
165
+ --vd-card-shadow: var(--vd-highlight-top), var(--vd-shadow-md);
166
+ }
167
+
168
+ .vd-card[data-variant='raised'][data-interactive]:hover {
169
+ --vd-card-shadow: var(--vd-highlight-top), var(--vd-shadow-lg);
170
+ }
171
+
172
+ .vd-card[data-interactive]:hover::before,
173
+ .vd-card[data-interactive]:hover::after {
174
+ opacity: 1;
175
+ }
176
+ }
177
+
178
+ @media (prefers-reduced-motion: no-preference) {
179
+ @media (hover: hover) {
180
+ .vd-card[data-interactive]:hover {
181
+ translate: 0 calc(var(--vd-space-0-5) * -1);
182
+ }
183
+ }
184
+ }
185
+
186
+ .vd-card[data-interactive]:active {
187
+ scale: var(--vd-press-scale);
188
+ }
189
+
190
+ .vd-card:is(a, button):focus-visible,
191
+ .vd-card:has(.vd-card__link:focus-visible) {
192
+ outline: var(--vd-focus-ring-width) solid var(--vd-color-focus);
193
+ outline-offset: var(--vd-focus-ring-offset);
194
+ }
195
+
196
+ @media (forced-colors: active) {
197
+ .vd-card {
198
+ border-color: CanvasText;
199
+ }
200
+
201
+ .vd-card[data-interactive]::before,
202
+ .vd-card[data-interactive]::after {
203
+ display: none;
204
+ }
205
+ }
206
+ }
@@ -0,0 +1,41 @@
1
+ @layer vd.components {
2
+ .vd-character-count {
3
+ --vd-character-count-fg: var(--vd-color-text-muted);
4
+ --vd-character-count-danger: var(--vd-color-danger-text);
5
+ --vd-character-count-font-size: var(--vd-text-sm);
6
+ --vd-character-count-gap: var(--vd-space-2);
7
+
8
+ display: block;
9
+ min-inline-size: 0;
10
+ color: var(--vd-character-count-fg);
11
+ font-size: var(--vd-character-count-font-size);
12
+ line-height: var(--vd-leading-normal);
13
+ overflow-wrap: anywhere;
14
+ }
15
+ .vd-character-count__content {
16
+ display: flex;
17
+ flex-wrap: wrap;
18
+ justify-content: space-between;
19
+ align-items: start;
20
+ gap: var(--vd-space-1) var(--vd-character-count-gap);
21
+ }
22
+ .vd-character-count__used {
23
+ font-variant-numeric: tabular-nums;
24
+ }
25
+ .vd-character-count__message {
26
+ display: flex;
27
+ align-items: start;
28
+ gap: var(--vd-character-count-gap);
29
+ min-inline-size: 0;
30
+ }
31
+ .vd-character-count__message > span {
32
+ min-inline-size: 0;
33
+ }
34
+ .vd-character-count__message > .vd-icon {
35
+ flex: none;
36
+ block-size: 1lh;
37
+ }
38
+ .vd-character-count[data-state='over'] {
39
+ color: var(--vd-character-count-danger);
40
+ }
41
+ }