@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.
- package/LICENSE-lucide.txt +43 -0
- package/README.md +19 -2
- package/fesm2022/vadem-ui-accordion.mjs +139 -0
- package/fesm2022/vadem-ui-accordion.mjs.map +1 -0
- package/fesm2022/vadem-ui-active-filters.mjs +355 -0
- package/fesm2022/vadem-ui-active-filters.mjs.map +1 -0
- package/fesm2022/vadem-ui-alert-dialog.mjs +433 -0
- package/fesm2022/vadem-ui-alert-dialog.mjs.map +1 -0
- package/fesm2022/vadem-ui-alert.mjs +266 -0
- package/fesm2022/vadem-ui-alert.mjs.map +1 -0
- package/fesm2022/vadem-ui-autocomplete.mjs +715 -0
- package/fesm2022/vadem-ui-autocomplete.mjs.map +1 -0
- package/fesm2022/vadem-ui-avatar.mjs +219 -0
- package/fesm2022/vadem-ui-avatar.mjs.map +1 -0
- package/fesm2022/vadem-ui-badge.mjs +86 -0
- package/fesm2022/vadem-ui-badge.mjs.map +1 -0
- package/fesm2022/vadem-ui-breadcrumbs.mjs +61 -0
- package/fesm2022/vadem-ui-breadcrumbs.mjs.map +1 -0
- package/fesm2022/vadem-ui-button.mjs +220 -0
- package/fesm2022/vadem-ui-button.mjs.map +1 -0
- package/fesm2022/vadem-ui-calendar.mjs +1314 -0
- package/fesm2022/vadem-ui-calendar.mjs.map +1 -0
- package/fesm2022/vadem-ui-card.mjs +271 -0
- package/fesm2022/vadem-ui-card.mjs.map +1 -0
- package/fesm2022/vadem-ui-character-count.mjs +269 -0
- package/fesm2022/vadem-ui-character-count.mjs.map +1 -0
- package/fesm2022/vadem-ui-chart.mjs +1984 -0
- package/fesm2022/vadem-ui-chart.mjs.map +1 -0
- package/fesm2022/vadem-ui-checkbox.mjs +67 -0
- package/fesm2022/vadem-ui-checkbox.mjs.map +1 -0
- package/fesm2022/vadem-ui-color-picker.mjs +815 -0
- package/fesm2022/vadem-ui-color-picker.mjs.map +1 -0
- package/fesm2022/vadem-ui-command.mjs +735 -0
- package/fesm2022/vadem-ui-command.mjs.map +1 -0
- package/fesm2022/vadem-ui-copy-button.mjs +375 -0
- package/fesm2022/vadem-ui-copy-button.mjs.map +1 -0
- package/fesm2022/vadem-ui-date-range-picker.mjs +1011 -0
- package/fesm2022/vadem-ui-date-range-picker.mjs.map +1 -0
- package/fesm2022/vadem-ui-description-list.mjs +59 -0
- package/fesm2022/vadem-ui-description-list.mjs.map +1 -0
- package/fesm2022/vadem-ui-dialog.mjs +587 -0
- package/fesm2022/vadem-ui-dialog.mjs.map +1 -0
- package/fesm2022/vadem-ui-dropzone.mjs +176 -0
- package/fesm2022/vadem-ui-dropzone.mjs.map +1 -0
- package/fesm2022/vadem-ui-editable-text.mjs +641 -0
- package/fesm2022/vadem-ui-editable-text.mjs.map +1 -0
- package/fesm2022/vadem-ui-empty-state.mjs +175 -0
- package/fesm2022/vadem-ui-empty-state.mjs.map +1 -0
- package/fesm2022/vadem-ui-expandable-text.mjs +244 -0
- package/fesm2022/vadem-ui-expandable-text.mjs.map +1 -0
- package/fesm2022/vadem-ui-field.mjs +583 -0
- package/fesm2022/vadem-ui-field.mjs.map +1 -0
- package/fesm2022/vadem-ui-file-preview.mjs +532 -0
- package/fesm2022/vadem-ui-file-preview.mjs.map +1 -0
- package/fesm2022/vadem-ui-file-size.mjs +83 -0
- package/fesm2022/vadem-ui-file-size.mjs.map +1 -0
- package/fesm2022/vadem-ui-form-error-summary.mjs +201 -0
- package/fesm2022/vadem-ui-form-error-summary.mjs.map +1 -0
- package/fesm2022/vadem-ui-icon.mjs +303 -0
- package/fesm2022/vadem-ui-icon.mjs.map +1 -0
- package/fesm2022/vadem-ui-input.mjs +120 -0
- package/fesm2022/vadem-ui-input.mjs.map +1 -0
- package/fesm2022/vadem-ui-kbd.mjs +286 -0
- package/fesm2022/vadem-ui-kbd.mjs.map +1 -0
- package/fesm2022/vadem-ui-keyboard.mjs +105 -0
- package/fesm2022/vadem-ui-keyboard.mjs.map +1 -0
- package/fesm2022/vadem-ui-locale.mjs +443 -0
- package/fesm2022/vadem-ui-locale.mjs.map +1 -0
- package/fesm2022/vadem-ui-menu.mjs +637 -0
- package/fesm2022/vadem-ui-menu.mjs.map +1 -0
- package/fesm2022/vadem-ui-navigation-list.mjs +130 -0
- package/fesm2022/vadem-ui-navigation-list.mjs.map +1 -0
- package/fesm2022/vadem-ui-number-input.mjs +264 -0
- package/fesm2022/vadem-ui-number-input.mjs.map +1 -0
- package/fesm2022/vadem-ui-otp-input.mjs +86 -0
- package/fesm2022/vadem-ui-otp-input.mjs.map +1 -0
- package/fesm2022/vadem-ui-pagination.mjs +353 -0
- package/fesm2022/vadem-ui-pagination.mjs.map +1 -0
- package/fesm2022/vadem-ui-password-input.mjs +213 -0
- package/fesm2022/vadem-ui-password-input.mjs.map +1 -0
- package/fesm2022/vadem-ui-popover.mjs +178 -0
- package/fesm2022/vadem-ui-popover.mjs.map +1 -0
- package/fesm2022/vadem-ui-progress.mjs +331 -0
- package/fesm2022/vadem-ui-progress.mjs.map +1 -0
- package/fesm2022/vadem-ui-radio.mjs +39 -0
- package/fesm2022/vadem-ui-radio.mjs.map +1 -0
- package/fesm2022/vadem-ui-range-slider.mjs +561 -0
- package/fesm2022/vadem-ui-range-slider.mjs.map +1 -0
- package/fesm2022/vadem-ui-rating.mjs +404 -0
- package/fesm2022/vadem-ui-rating.mjs.map +1 -0
- package/fesm2022/vadem-ui-relative-time.mjs +217 -0
- package/fesm2022/vadem-ui-relative-time.mjs.map +1 -0
- package/fesm2022/vadem-ui-reorder-list.mjs +601 -0
- package/fesm2022/vadem-ui-reorder-list.mjs.map +1 -0
- package/fesm2022/vadem-ui-scroll-area.mjs +65 -0
- package/fesm2022/vadem-ui-scroll-area.mjs.map +1 -0
- package/fesm2022/vadem-ui-search-input.mjs +307 -0
- package/fesm2022/vadem-ui-search-input.mjs.map +1 -0
- package/fesm2022/vadem-ui-segmented.mjs +297 -0
- package/fesm2022/vadem-ui-segmented.mjs.map +1 -0
- package/fesm2022/vadem-ui-select.mjs +1462 -0
- package/fesm2022/vadem-ui-select.mjs.map +1 -0
- package/fesm2022/vadem-ui-sidebar.mjs +493 -0
- package/fesm2022/vadem-ui-sidebar.mjs.map +1 -0
- package/fesm2022/vadem-ui-skeleton.mjs +106 -0
- package/fesm2022/vadem-ui-skeleton.mjs.map +1 -0
- package/fesm2022/vadem-ui-slider.mjs +60 -0
- package/fesm2022/vadem-ui-slider.mjs.map +1 -0
- package/fesm2022/vadem-ui-splitter.mjs +438 -0
- package/fesm2022/vadem-ui-splitter.mjs.map +1 -0
- package/fesm2022/vadem-ui-stat.mjs +369 -0
- package/fesm2022/vadem-ui-stat.mjs.map +1 -0
- package/fesm2022/vadem-ui-stepper.mjs +483 -0
- package/fesm2022/vadem-ui-stepper.mjs.map +1 -0
- package/fesm2022/vadem-ui-switch.mjs +45 -0
- package/fesm2022/vadem-ui-switch.mjs.map +1 -0
- package/fesm2022/vadem-ui-table.mjs +593 -0
- package/fesm2022/vadem-ui-table.mjs.map +1 -0
- package/fesm2022/vadem-ui-tabs.mjs +405 -0
- package/fesm2022/vadem-ui-tabs.mjs.map +1 -0
- package/fesm2022/vadem-ui-tag-input.mjs +685 -0
- package/fesm2022/vadem-ui-tag-input.mjs.map +1 -0
- package/fesm2022/vadem-ui-text-highlight.mjs +126 -0
- package/fesm2022/vadem-ui-text-highlight.mjs.map +1 -0
- package/fesm2022/vadem-ui-time-input.mjs +430 -0
- package/fesm2022/vadem-ui-time-input.mjs.map +1 -0
- package/fesm2022/vadem-ui-timeline.mjs +313 -0
- package/fesm2022/vadem-ui-timeline.mjs.map +1 -0
- package/fesm2022/vadem-ui-toast.mjs +397 -0
- package/fesm2022/vadem-ui-toast.mjs.map +1 -0
- package/fesm2022/vadem-ui-toolbar.mjs +396 -0
- package/fesm2022/vadem-ui-toolbar.mjs.map +1 -0
- package/fesm2022/vadem-ui-tooltip.mjs +218 -0
- package/fesm2022/vadem-ui-tooltip.mjs.map +1 -0
- package/fesm2022/vadem-ui-tree.mjs +551 -0
- package/fesm2022/vadem-ui-tree.mjs.map +1 -0
- package/fesm2022/vadem-ui-upload-list.mjs +408 -0
- package/fesm2022/vadem-ui-upload-list.mjs.map +1 -0
- package/fesm2022/vadem-ui.mjs +4 -0
- package/fesm2022/vadem-ui.mjs.map +1 -0
- package/fonts/jetbrains-mono/OFL.txt +93 -0
- package/fonts/jetbrains-mono/jetbrains-mono-cyrillic.woff2 +0 -0
- package/fonts/jetbrains-mono/jetbrains-mono-latin.woff2 +0 -0
- package/fonts/manrope/OFL.txt +93 -0
- package/fonts/manrope/manrope-cyrillic.woff2 +0 -0
- package/fonts/manrope/manrope-latin.woff2 +0 -0
- package/package.json +306 -3
- package/styles/base.css +160 -0
- package/styles/components/accordion.css +130 -0
- package/styles/components/active-filters.css +42 -0
- package/styles/components/alert-dialog.css +34 -0
- package/styles/components/alert.css +159 -0
- package/styles/components/autocomplete.css +97 -0
- package/styles/components/avatar.css +90 -0
- package/styles/components/badge.css +91 -0
- package/styles/components/breadcrumbs.css +94 -0
- package/styles/components/button.css +174 -0
- package/styles/components/calendar.css +186 -0
- package/styles/components/card.css +206 -0
- package/styles/components/character-count.css +41 -0
- package/styles/components/chart.css +308 -0
- package/styles/components/checkbox.css +115 -0
- package/styles/components/color-picker.css +158 -0
- package/styles/components/command.css +175 -0
- package/styles/components/copy-button.css +58 -0
- package/styles/components/date-range-picker.css +153 -0
- package/styles/components/description-list.css +69 -0
- package/styles/components/dialog.css +334 -0
- package/styles/components/dropzone.css +89 -0
- package/styles/components/editable-text.css +58 -0
- package/styles/components/empty-state.css +72 -0
- package/styles/components/expandable-text.css +24 -0
- package/styles/components/field.css +148 -0
- package/styles/components/file-preview.css +65 -0
- package/styles/components/form-error-summary.css +71 -0
- package/styles/components/icon.css +38 -0
- package/styles/components/index.css +80 -0
- package/styles/components/input.css +171 -0
- package/styles/components/kbd.css +42 -0
- package/styles/components/menu.css +168 -0
- package/styles/components/multi-select.css +156 -0
- package/styles/components/navigation-list.css +147 -0
- package/styles/components/number-input.css +33 -0
- package/styles/components/otp-input.css +26 -0
- package/styles/components/pagination.css +127 -0
- package/styles/components/password-input.css +20 -0
- package/styles/components/popover.css +93 -0
- package/styles/components/progress-ring.css +112 -0
- package/styles/components/progress.css +162 -0
- package/styles/components/radio.css +117 -0
- package/styles/components/range-slider.css +158 -0
- package/styles/components/rating.css +100 -0
- package/styles/components/reorder-list.css +143 -0
- package/styles/components/scroll-area.css +39 -0
- package/styles/components/search-input.css +25 -0
- package/styles/components/segmented.css +136 -0
- package/styles/components/select.css +257 -0
- package/styles/components/sidebar.css +105 -0
- package/styles/components/skeleton.css +83 -0
- package/styles/components/slider.css +132 -0
- package/styles/components/splitter.css +83 -0
- package/styles/components/stat.css +62 -0
- package/styles/components/stepper.css +236 -0
- package/styles/components/switch.css +107 -0
- package/styles/components/table.css +195 -0
- package/styles/components/tabs.css +198 -0
- package/styles/components/tag-input.css +138 -0
- package/styles/components/text-highlight.css +22 -0
- package/styles/components/time-input.css +96 -0
- package/styles/components/timeline.css +182 -0
- package/styles/components/toast.css +146 -0
- package/styles/components/toolbar.css +72 -0
- package/styles/components/tooltip.css +93 -0
- package/styles/components/tree.css +88 -0
- package/styles/components/upload-list.css +113 -0
- package/styles/fonts.css +67 -0
- package/styles/index.css +14 -0
- package/styles/reset.css +57 -0
- package/styles/tokens/primitives.css +364 -0
- package/styles/tokens/semantic.css +233 -0
- package/types/vadem-ui-accordion.d.ts +43 -0
- package/types/vadem-ui-active-filters.d.ts +73 -0
- package/types/vadem-ui-alert-dialog.d.ts +87 -0
- package/types/vadem-ui-alert.d.ts +64 -0
- package/types/vadem-ui-autocomplete.d.ts +156 -0
- package/types/vadem-ui-avatar.d.ts +59 -0
- package/types/vadem-ui-badge.d.ts +25 -0
- package/types/vadem-ui-breadcrumbs.d.ts +22 -0
- package/types/vadem-ui-button.d.ts +52 -0
- package/types/vadem-ui-calendar.d.ts +327 -0
- package/types/vadem-ui-card.d.ts +58 -0
- package/types/vadem-ui-character-count.d.ts +71 -0
- package/types/vadem-ui-chart.d.ts +452 -0
- package/types/vadem-ui-checkbox.d.ts +20 -0
- package/types/vadem-ui-color-picker.d.ts +171 -0
- package/types/vadem-ui-command.d.ts +145 -0
- package/types/vadem-ui-copy-button.d.ts +90 -0
- package/types/vadem-ui-date-range-picker.d.ts +216 -0
- package/types/vadem-ui-description-list.d.ts +15 -0
- package/types/vadem-ui-dialog.d.ts +174 -0
- package/types/vadem-ui-dropzone.d.ts +73 -0
- package/types/vadem-ui-editable-text.d.ts +141 -0
- package/types/vadem-ui-empty-state.d.ts +34 -0
- package/types/vadem-ui-expandable-text.d.ts +52 -0
- package/types/vadem-ui-field.d.ts +180 -0
- package/types/vadem-ui-file-preview.d.ts +108 -0
- package/types/vadem-ui-file-size.d.ts +18 -0
- package/types/vadem-ui-form-error-summary.d.ts +46 -0
- package/types/vadem-ui-icon.d.ts +152 -0
- package/types/vadem-ui-input.d.ts +31 -0
- package/types/vadem-ui-kbd.d.ts +66 -0
- package/types/vadem-ui-keyboard.d.ts +61 -0
- package/types/vadem-ui-locale.d.ts +241 -0
- package/types/vadem-ui-menu.d.ts +132 -0
- package/types/vadem-ui-navigation-list.d.ts +28 -0
- package/types/vadem-ui-number-input.d.ts +39 -0
- package/types/vadem-ui-otp-input.d.ts +15 -0
- package/types/vadem-ui-pagination.d.ts +96 -0
- package/types/vadem-ui-password-input.d.ts +36 -0
- package/types/vadem-ui-popover.d.ts +48 -0
- package/types/vadem-ui-progress.d.ts +95 -0
- package/types/vadem-ui-radio.d.ts +11 -0
- package/types/vadem-ui-range-slider.d.ts +136 -0
- package/types/vadem-ui-rating.d.ts +95 -0
- package/types/vadem-ui-relative-time.d.ts +58 -0
- package/types/vadem-ui-reorder-list.d.ts +120 -0
- package/types/vadem-ui-scroll-area.d.ts +13 -0
- package/types/vadem-ui-search-input.d.ts +58 -0
- package/types/vadem-ui-segmented.d.ts +76 -0
- package/types/vadem-ui-select.d.ts +303 -0
- package/types/vadem-ui-sidebar.d.ts +70 -0
- package/types/vadem-ui-skeleton.d.ts +28 -0
- package/types/vadem-ui-slider.d.ts +17 -0
- package/types/vadem-ui-splitter.d.ts +99 -0
- package/types/vadem-ui-stat.d.ts +101 -0
- package/types/vadem-ui-stepper.d.ts +108 -0
- package/types/vadem-ui-switch.d.ts +10 -0
- package/types/vadem-ui-table.d.ts +172 -0
- package/types/vadem-ui-tabs.d.ts +101 -0
- package/types/vadem-ui-tag-input.d.ts +170 -0
- package/types/vadem-ui-text-highlight.d.ts +27 -0
- package/types/vadem-ui-time-input.d.ts +47 -0
- package/types/vadem-ui-timeline.d.ts +54 -0
- package/types/vadem-ui-toast.d.ts +104 -0
- package/types/vadem-ui-toolbar.d.ts +80 -0
- package/types/vadem-ui-tooltip.d.ts +71 -0
- package/types/vadem-ui-tree.d.ts +123 -0
- package/types/vadem-ui-upload-list.d.ts +70 -0
- 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
|
+
}
|