@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,96 @@
|
|
|
1
|
+
/* Native time editor: specs/time-input.md. */
|
|
2
|
+
@layer vd.components {
|
|
3
|
+
.vd-time-input {
|
|
4
|
+
--vd-time-input-font: var(--vd-font-mono);
|
|
5
|
+
|
|
6
|
+
min-inline-size: 0;
|
|
7
|
+
font-family: var(--vd-time-input-font);
|
|
8
|
+
font-variant-numeric: tabular-nums;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@layer vd.components {
|
|
13
|
+
vd-time-picker {
|
|
14
|
+
display: contents;
|
|
15
|
+
}
|
|
16
|
+
.vd-time-picker {
|
|
17
|
+
--vd-time-picker-width: 14rem;
|
|
18
|
+
--vd-time-picker-height: 16rem;
|
|
19
|
+
--vd-popover-width: var(--vd-time-picker-width);
|
|
20
|
+
--vd-popover-padding: var(--vd-space-2);
|
|
21
|
+
font-family: var(--vd-font-sans);
|
|
22
|
+
direction: inherit;
|
|
23
|
+
}
|
|
24
|
+
.vd-time-picker__heading {
|
|
25
|
+
padding: var(--vd-space-2) var(--vd-space-3);
|
|
26
|
+
font-weight: var(--vd-weight-semibold);
|
|
27
|
+
overflow-wrap: anywhere;
|
|
28
|
+
}
|
|
29
|
+
.vd-time-picker__columns {
|
|
30
|
+
display: grid;
|
|
31
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
32
|
+
gap: var(--vd-space-2);
|
|
33
|
+
}
|
|
34
|
+
.vd-time-picker__column {
|
|
35
|
+
min-inline-size: 0;
|
|
36
|
+
}
|
|
37
|
+
.vd-time-picker__column-label {
|
|
38
|
+
padding: var(--vd-space-2) var(--vd-space-3);
|
|
39
|
+
color: var(--vd-color-text-muted);
|
|
40
|
+
font-size: var(--vd-text-sm);
|
|
41
|
+
}
|
|
42
|
+
.vd-time-picker__list {
|
|
43
|
+
max-block-size: min(var(--vd-time-picker-height), 50dvh);
|
|
44
|
+
overflow: auto;
|
|
45
|
+
overscroll-behavior: contain;
|
|
46
|
+
scrollbar-color: var(--vd-color-border-control) var(--vd-color-surface-overlay);
|
|
47
|
+
padding: var(--vd-space-1);
|
|
48
|
+
}
|
|
49
|
+
.vd-time-picker__option {
|
|
50
|
+
display: flex;
|
|
51
|
+
align-items: center;
|
|
52
|
+
justify-content: space-between;
|
|
53
|
+
gap: var(--vd-space-1);
|
|
54
|
+
min-block-size: var(--vd-control-height-md);
|
|
55
|
+
padding-inline: var(--vd-space-1);
|
|
56
|
+
border-radius: var(--vd-radius-control);
|
|
57
|
+
font-family: var(--vd-time-input-font, var(--vd-font-mono));
|
|
58
|
+
font-variant-numeric: tabular-nums;
|
|
59
|
+
cursor: pointer;
|
|
60
|
+
}
|
|
61
|
+
.vd-time-picker__option > span {
|
|
62
|
+
white-space: nowrap;
|
|
63
|
+
flex-shrink: 0;
|
|
64
|
+
}
|
|
65
|
+
.vd-time-picker__option:hover {
|
|
66
|
+
background: var(--vd-color-fill-hover);
|
|
67
|
+
}
|
|
68
|
+
.vd-time-picker__option[aria-selected='true'] {
|
|
69
|
+
background: var(--vd-color-action-subtle);
|
|
70
|
+
color: var(--vd-color-action-text);
|
|
71
|
+
}
|
|
72
|
+
.vd-time-picker__option:focus-visible {
|
|
73
|
+
outline: var(--vd-focus-ring-width) solid var(--vd-color-focus);
|
|
74
|
+
outline-offset: calc(-1 * var(--vd-focus-ring-width));
|
|
75
|
+
}
|
|
76
|
+
.vd-time-picker__mark {
|
|
77
|
+
--vd-icon-size: var(--vd-space-3);
|
|
78
|
+
visibility: hidden;
|
|
79
|
+
}
|
|
80
|
+
.vd-time-picker__option[aria-selected='true'] .vd-time-picker__mark {
|
|
81
|
+
visibility: visible;
|
|
82
|
+
}
|
|
83
|
+
.vd-time-picker__empty {
|
|
84
|
+
padding: var(--vd-space-3);
|
|
85
|
+
}
|
|
86
|
+
@media (forced-colors: active) {
|
|
87
|
+
.vd-time-picker__option[aria-selected='true'] {
|
|
88
|
+
color: HighlightText;
|
|
89
|
+
background: Highlight;
|
|
90
|
+
forced-color-adjust: none;
|
|
91
|
+
}
|
|
92
|
+
.vd-time-picker__option:focus-visible {
|
|
93
|
+
outline-color: Highlight;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
/* Informational history. Native actions retain their own control behavior. */
|
|
2
|
+
@layer vd.components {
|
|
3
|
+
.vd-timeline {
|
|
4
|
+
--vd-timeline-gap: var(--vd-space-4);
|
|
5
|
+
--vd-timeline-item-gap: var(--vd-space-6);
|
|
6
|
+
--vd-timeline-marker-size: var(--vd-space-8);
|
|
7
|
+
--vd-timeline-marker-radius: var(--vd-radius-full);
|
|
8
|
+
--vd-timeline-connector: var(--vd-color-border-control);
|
|
9
|
+
--vd-timeline-title-size: var(--vd-text-sm);
|
|
10
|
+
--vd-timeline-description-size: var(--vd-text-sm);
|
|
11
|
+
--vd-timeline-meta-size: var(--vd-text-xs);
|
|
12
|
+
--vd-timeline-marker-bg: var(--vd-color-surface-raised);
|
|
13
|
+
--vd-timeline-marker-fg: var(--vd-color-text-muted);
|
|
14
|
+
--vd-timeline-marker-border: var(--vd-color-border-control);
|
|
15
|
+
--vd-timeline-success-bg: var(--vd-color-success-subtle);
|
|
16
|
+
--vd-timeline-success-fg: var(--vd-color-success-text);
|
|
17
|
+
--vd-timeline-warning-bg: var(--vd-color-warning-subtle);
|
|
18
|
+
--vd-timeline-warning-fg: var(--vd-color-warning-text);
|
|
19
|
+
--vd-timeline-danger-bg: var(--vd-color-danger-subtle);
|
|
20
|
+
--vd-timeline-danger-fg: var(--vd-color-danger-text);
|
|
21
|
+
--vd-timeline-info-bg: var(--vd-color-info-subtle);
|
|
22
|
+
--vd-timeline-info-fg: var(--vd-color-info-text);
|
|
23
|
+
|
|
24
|
+
display: block;
|
|
25
|
+
container: vd-timeline / inline-size;
|
|
26
|
+
min-inline-size: 0;
|
|
27
|
+
margin: 0;
|
|
28
|
+
padding: 0;
|
|
29
|
+
list-style: none;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.vd-timeline-item {
|
|
33
|
+
position: relative;
|
|
34
|
+
display: grid;
|
|
35
|
+
grid-template-columns: var(--vd-timeline-marker-size) minmax(0, 1fr);
|
|
36
|
+
column-gap: var(--vd-timeline-gap);
|
|
37
|
+
min-inline-size: 0;
|
|
38
|
+
padding-block-end: var(--vd-timeline-item-gap);
|
|
39
|
+
color: var(--vd-color-text);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.vd-timeline-item:last-child {
|
|
43
|
+
padding-block-end: 0;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.vd-timeline-item:not(:last-child)::after {
|
|
47
|
+
content: '';
|
|
48
|
+
position: absolute;
|
|
49
|
+
inset-inline-start: calc(var(--vd-timeline-marker-size) / 2);
|
|
50
|
+
inset-block-start: calc(var(--vd-timeline-marker-size) + var(--vd-space-1));
|
|
51
|
+
inset-block-end: var(--vd-space-1);
|
|
52
|
+
inline-size: var(--vd-border-width);
|
|
53
|
+
background: var(--vd-timeline-connector);
|
|
54
|
+
pointer-events: none;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.vd-timeline-item__marker {
|
|
58
|
+
display: grid;
|
|
59
|
+
place-items: center;
|
|
60
|
+
inline-size: var(--vd-timeline-marker-size);
|
|
61
|
+
block-size: var(--vd-timeline-marker-size);
|
|
62
|
+
border: var(--vd-border-width) solid var(--vd-timeline-marker-border);
|
|
63
|
+
border-radius: var(--vd-timeline-marker-radius);
|
|
64
|
+
background: var(--vd-timeline-marker-bg);
|
|
65
|
+
color: var(--vd-timeline-marker-fg);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.vd-timeline-item__marker .vd-icon {
|
|
69
|
+
--vd-icon-size: var(--vd-space-4);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.vd-timeline-item__dot {
|
|
73
|
+
inline-size: var(--vd-space-1-5);
|
|
74
|
+
block-size: var(--vd-space-1-5);
|
|
75
|
+
border-radius: var(--vd-radius-full);
|
|
76
|
+
background: currentColor;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.vd-timeline-item__content {
|
|
80
|
+
display: grid;
|
|
81
|
+
grid-template-columns: minmax(0, 1fr);
|
|
82
|
+
align-content: start;
|
|
83
|
+
min-inline-size: 0;
|
|
84
|
+
gap: var(--vd-space-2);
|
|
85
|
+
padding-block-start: var(--vd-space-1);
|
|
86
|
+
overflow-wrap: anywhere;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.vd-timeline-item__meta {
|
|
90
|
+
display: flex;
|
|
91
|
+
flex-wrap: wrap;
|
|
92
|
+
align-items: baseline;
|
|
93
|
+
gap: var(--vd-space-1) var(--vd-space-3);
|
|
94
|
+
font-size: var(--vd-timeline-meta-size);
|
|
95
|
+
line-height: var(--vd-leading-normal);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.vd-timeline-item__time {
|
|
99
|
+
color: var(--vd-color-text-muted);
|
|
100
|
+
font-family: var(--vd-font-mono);
|
|
101
|
+
font-variant-numeric: tabular-nums;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.vd-timeline-item__status {
|
|
105
|
+
color: var(--vd-timeline-marker-fg);
|
|
106
|
+
font-weight: var(--vd-weight-medium);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.vd-timeline-item__title {
|
|
110
|
+
min-inline-size: 0;
|
|
111
|
+
overflow-wrap: anywhere;
|
|
112
|
+
margin: 0;
|
|
113
|
+
font-size: var(--vd-timeline-title-size);
|
|
114
|
+
font-weight: var(--vd-weight-semibold);
|
|
115
|
+
line-height: var(--vd-leading-snug);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.vd-timeline-item__description {
|
|
119
|
+
min-inline-size: 0;
|
|
120
|
+
overflow-wrap: anywhere;
|
|
121
|
+
margin: 0;
|
|
122
|
+
color: var(--vd-color-text-muted);
|
|
123
|
+
font-size: var(--vd-timeline-description-size);
|
|
124
|
+
line-height: var(--vd-leading-normal);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.vd-timeline-item[data-status='success'] {
|
|
128
|
+
--vd-timeline-marker-bg: var(--vd-timeline-success-bg);
|
|
129
|
+
--vd-timeline-marker-fg: var(--vd-timeline-success-fg);
|
|
130
|
+
--vd-timeline-marker-border: var(--vd-timeline-success-fg);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.vd-timeline-item[data-status='warning'] {
|
|
134
|
+
--vd-timeline-marker-bg: var(--vd-timeline-warning-bg);
|
|
135
|
+
--vd-timeline-marker-fg: var(--vd-timeline-warning-fg);
|
|
136
|
+
--vd-timeline-marker-border: var(--vd-timeline-warning-fg);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.vd-timeline-item[data-status='danger'] {
|
|
140
|
+
--vd-timeline-marker-bg: var(--vd-timeline-danger-bg);
|
|
141
|
+
--vd-timeline-marker-fg: var(--vd-timeline-danger-fg);
|
|
142
|
+
--vd-timeline-marker-border: var(--vd-timeline-danger-fg);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.vd-timeline-item[data-status='info'] {
|
|
146
|
+
--vd-timeline-marker-bg: var(--vd-timeline-info-bg);
|
|
147
|
+
--vd-timeline-marker-fg: var(--vd-timeline-info-fg);
|
|
148
|
+
--vd-timeline-marker-border: var(--vd-timeline-info-fg);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/* Structural breakpoint: retain reading width when a narrow container enlarges text. */
|
|
152
|
+
@container vd-timeline (width < 12rem) {
|
|
153
|
+
.vd-timeline-item {
|
|
154
|
+
grid-template-columns: minmax(0, 1fr);
|
|
155
|
+
row-gap: var(--vd-space-2);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.vd-timeline-item::after {
|
|
159
|
+
display: none;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
@media (forced-colors: active) {
|
|
164
|
+
.vd-timeline-item__dot {
|
|
165
|
+
forced-color-adjust: none;
|
|
166
|
+
background: CanvasText;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.vd-timeline-item__marker {
|
|
170
|
+
border-color: CanvasText;
|
|
171
|
+
color: CanvasText;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.vd-timeline-item__status {
|
|
175
|
+
color: CanvasText;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.vd-timeline-item::after {
|
|
179
|
+
background: CanvasText;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
/* Toast - spec: specs/toast.md */
|
|
2
|
+
@layer vd.components {
|
|
3
|
+
.vd-toaster {
|
|
4
|
+
--vd-toaster-gap: var(--vd-space-2);
|
|
5
|
+
--vd-toaster-margin: var(--vd-space-4);
|
|
6
|
+
--vd-toaster-width: 24rem;
|
|
7
|
+
|
|
8
|
+
/* Geometry on the base rule (D45); popover UA styles are replaced, not relied on. */
|
|
9
|
+
position: fixed;
|
|
10
|
+
inset: auto;
|
|
11
|
+
inset-block-end: max(var(--vd-toaster-margin), env(safe-area-inset-bottom));
|
|
12
|
+
inset-inline-end: var(--vd-toaster-margin);
|
|
13
|
+
inline-size: min(var(--vd-toaster-width), 100vw - var(--vd-toaster-margin) * 2);
|
|
14
|
+
margin: 0;
|
|
15
|
+
padding: 0;
|
|
16
|
+
border: 0;
|
|
17
|
+
background: transparent;
|
|
18
|
+
overflow: visible;
|
|
19
|
+
color: var(--vd-color-text);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.vd-toaster__list {
|
|
23
|
+
display: flex;
|
|
24
|
+
flex-direction: column;
|
|
25
|
+
gap: var(--vd-toaster-gap);
|
|
26
|
+
margin: 0;
|
|
27
|
+
padding: 0;
|
|
28
|
+
list-style: none;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.vd-toast {
|
|
32
|
+
--vd-toast-icon: var(--vd-color-text-muted);
|
|
33
|
+
|
|
34
|
+
display: flex;
|
|
35
|
+
align-items: flex-start;
|
|
36
|
+
gap: var(--vd-space-3);
|
|
37
|
+
padding: var(--vd-space-3) var(--vd-space-3) var(--vd-space-3) var(--vd-space-4);
|
|
38
|
+
border: var(--vd-border-width) solid var(--vd-color-border-strong);
|
|
39
|
+
border-radius: var(--vd-radius-surface);
|
|
40
|
+
background-color: var(--vd-color-surface-overlay);
|
|
41
|
+
box-shadow: var(--vd-highlight-top), var(--vd-shadow-lg);
|
|
42
|
+
|
|
43
|
+
opacity: 1;
|
|
44
|
+
translate: 0 0;
|
|
45
|
+
scale: 1;
|
|
46
|
+
transition:
|
|
47
|
+
opacity var(--vd-duration-base) var(--vd-ease-out),
|
|
48
|
+
translate var(--vd-duration-slow) var(--vd-ease-spring),
|
|
49
|
+
scale var(--vd-duration-slow) var(--vd-ease-spring);
|
|
50
|
+
|
|
51
|
+
@starting-style {
|
|
52
|
+
opacity: 0;
|
|
53
|
+
translate: 0 var(--vd-space-4);
|
|
54
|
+
scale: 0.98;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.vd-toast[data-state='leaving'] {
|
|
59
|
+
opacity: 0;
|
|
60
|
+
translate: var(--vd-space-6) 0;
|
|
61
|
+
pointer-events: none;
|
|
62
|
+
transition:
|
|
63
|
+
opacity var(--vd-duration-base) var(--vd-ease-in),
|
|
64
|
+
translate var(--vd-duration-base) var(--vd-ease-in);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.vd-toast[data-state='leaving']:dir(rtl) {
|
|
68
|
+
translate: calc(var(--vd-space-6) * -1) 0;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.vd-toast[data-variant='success'] {
|
|
72
|
+
--vd-toast-icon: var(--vd-color-success-text);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.vd-toast[data-variant='warning'] {
|
|
76
|
+
--vd-toast-icon: var(--vd-color-warning-text);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.vd-toast[data-variant='danger'] {
|
|
80
|
+
--vd-toast-icon: var(--vd-color-danger-text);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.vd-toast[data-variant='info'] {
|
|
84
|
+
--vd-toast-icon: var(--vd-color-info-text);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.vd-toast__icon {
|
|
88
|
+
--vd-icon-size: var(--vd-space-5);
|
|
89
|
+
|
|
90
|
+
margin-block-start: var(--vd-space-1-5);
|
|
91
|
+
color: var(--vd-toast-icon);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.vd-toast__content {
|
|
95
|
+
display: grid;
|
|
96
|
+
flex: 1;
|
|
97
|
+
gap: var(--vd-space-0-5);
|
|
98
|
+
min-inline-size: 0;
|
|
99
|
+
padding-block: var(--vd-space-1-5);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.vd-toast__title {
|
|
103
|
+
margin: 0;
|
|
104
|
+
font-size: var(--vd-text-sm);
|
|
105
|
+
font-weight: var(--vd-weight-semibold);
|
|
106
|
+
line-height: var(--vd-leading-snug);
|
|
107
|
+
text-wrap: pretty;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.vd-toast__description {
|
|
111
|
+
margin: 0;
|
|
112
|
+
color: var(--vd-color-text-muted);
|
|
113
|
+
font-size: var(--vd-text-sm);
|
|
114
|
+
line-height: var(--vd-leading-snug);
|
|
115
|
+
text-wrap: pretty;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.vd-toast__action {
|
|
119
|
+
flex: none;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.vd-toast__close {
|
|
123
|
+
flex: none;
|
|
124
|
+
color: var(--vd-color-text-subtle);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/* Phones: full width at the bottom, newest closest to the thumb. */
|
|
128
|
+
@media (width < 40rem) {
|
|
129
|
+
.vd-toaster {
|
|
130
|
+
--vd-toaster-margin: var(--vd-space-3);
|
|
131
|
+
|
|
132
|
+
inset-inline: var(--vd-toaster-margin);
|
|
133
|
+
inline-size: auto;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.vd-toast[data-state='leaving'] {
|
|
137
|
+
translate: 0 var(--vd-space-6);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
@media (forced-colors: active) {
|
|
142
|
+
.vd-toast {
|
|
143
|
+
border-color: CanvasText;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
@layer vd.components {
|
|
2
|
+
.vd-toolbar {
|
|
3
|
+
--vd-toolbar-gap: var(--vd-space-2);
|
|
4
|
+
--vd-toolbar-padding: var(--vd-space-2);
|
|
5
|
+
--vd-toolbar-radius: var(--vd-radius-lg);
|
|
6
|
+
--vd-toolbar-bg: var(--vd-color-surface);
|
|
7
|
+
--vd-toolbar-border: var(--vd-color-border);
|
|
8
|
+
--vd-toolbar-separator: var(--vd-color-border-strong);
|
|
9
|
+
--vd-toolbar-pressed-bg: var(--vd-color-fill);
|
|
10
|
+
--vd-toolbar-pressed-fg: var(--vd-color-text);
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-wrap: wrap;
|
|
13
|
+
align-items: center;
|
|
14
|
+
gap: var(--vd-toolbar-gap);
|
|
15
|
+
min-inline-size: 0;
|
|
16
|
+
max-inline-size: 100%;
|
|
17
|
+
padding: var(--vd-toolbar-padding);
|
|
18
|
+
padding-inline: min(var(--vd-toolbar-padding), 3%);
|
|
19
|
+
border: var(--vd-border-width) solid var(--vd-toolbar-border);
|
|
20
|
+
border-radius: var(--vd-toolbar-radius);
|
|
21
|
+
background: var(--vd-toolbar-bg);
|
|
22
|
+
}
|
|
23
|
+
.vd-toolbar__group {
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-wrap: wrap;
|
|
26
|
+
align-items: center;
|
|
27
|
+
gap: var(--vd-toolbar-gap);
|
|
28
|
+
min-inline-size: 0;
|
|
29
|
+
max-inline-size: 100%;
|
|
30
|
+
}
|
|
31
|
+
.vd-toolbar__item {
|
|
32
|
+
max-inline-size: 100%;
|
|
33
|
+
min-inline-size: 0;
|
|
34
|
+
overflow-wrap: anywhere;
|
|
35
|
+
}
|
|
36
|
+
@media (width < 30rem) {
|
|
37
|
+
.vd-toolbar__item:not([data-icon-only]) {
|
|
38
|
+
padding-inline: min(var(--vd-button-padding-inline), 5%);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
.vd-toolbar__item[aria-pressed='true'] {
|
|
42
|
+
--vd-button-bg: var(--vd-toolbar-pressed-bg);
|
|
43
|
+
--vd-button-fg: var(--vd-toolbar-pressed-fg);
|
|
44
|
+
--vd-button-border: var(--vd-toolbar-separator);
|
|
45
|
+
}
|
|
46
|
+
.vd-toolbar__separator {
|
|
47
|
+
flex: none;
|
|
48
|
+
inline-size: var(--vd-border-width);
|
|
49
|
+
block-size: var(--vd-space-6);
|
|
50
|
+
background: var(--vd-toolbar-separator);
|
|
51
|
+
}
|
|
52
|
+
.vd-toolbar[data-orientation='vertical'],
|
|
53
|
+
.vd-toolbar__group[data-orientation='vertical'] {
|
|
54
|
+
flex-direction: column;
|
|
55
|
+
align-items: stretch;
|
|
56
|
+
}
|
|
57
|
+
.vd-toolbar__separator[data-orientation='vertical'] {
|
|
58
|
+
inline-size: 100%;
|
|
59
|
+
block-size: var(--vd-border-width);
|
|
60
|
+
}
|
|
61
|
+
@media (forced-colors: active) {
|
|
62
|
+
.vd-toolbar {
|
|
63
|
+
border-color: CanvasText;
|
|
64
|
+
}
|
|
65
|
+
.vd-toolbar__separator {
|
|
66
|
+
background: CanvasText;
|
|
67
|
+
}
|
|
68
|
+
.vd-toolbar__item[aria-pressed='true'] {
|
|
69
|
+
border-color: Highlight;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/* Tooltip - spec: specs/tooltip.md */
|
|
2
|
+
@layer vd.components {
|
|
3
|
+
.vd-tooltip {
|
|
4
|
+
--vd-tooltip-bg: var(--vd-color-surface-strong);
|
|
5
|
+
--vd-tooltip-fg: var(--vd-color-text-on-strong);
|
|
6
|
+
--vd-tooltip-offset: var(--vd-space-2);
|
|
7
|
+
--vd-tooltip-shift: var(--vd-space-1);
|
|
8
|
+
--vd-tooltip-max-width: 18rem;
|
|
9
|
+
/* Where it slides in from: a little away from the anchor. */
|
|
10
|
+
--vd-tooltip-from: 0 var(--vd-tooltip-shift);
|
|
11
|
+
|
|
12
|
+
/* Geometry on the base rule (never on :popover-open) - see DECISIONS D45. */
|
|
13
|
+
position: fixed;
|
|
14
|
+
inset: auto;
|
|
15
|
+
margin: 0;
|
|
16
|
+
position-area: block-start;
|
|
17
|
+
margin-block-end: var(--vd-tooltip-offset);
|
|
18
|
+
position-try-fallbacks: flip-block;
|
|
19
|
+
max-inline-size: min(var(--vd-tooltip-max-width), 100vw - var(--vd-space-4) * 2);
|
|
20
|
+
padding: var(--vd-space-1-5) var(--vd-space-2);
|
|
21
|
+
border: var(--vd-border-width) solid var(--vd-color-border);
|
|
22
|
+
border-radius: var(--vd-radius-sm);
|
|
23
|
+
background-color: var(--vd-tooltip-bg);
|
|
24
|
+
box-shadow: var(--vd-shadow-md);
|
|
25
|
+
color: var(--vd-tooltip-fg);
|
|
26
|
+
font-family: var(--vd-font-sans);
|
|
27
|
+
font-size: var(--vd-text-xs);
|
|
28
|
+
font-weight: var(--vd-weight-medium);
|
|
29
|
+
line-height: var(--vd-leading-snug);
|
|
30
|
+
text-align: center;
|
|
31
|
+
text-wrap: balance;
|
|
32
|
+
overflow-wrap: break-word;
|
|
33
|
+
|
|
34
|
+
opacity: 0;
|
|
35
|
+
translate: var(--vd-tooltip-from);
|
|
36
|
+
transition:
|
|
37
|
+
opacity var(--vd-duration-fast) var(--vd-ease-out),
|
|
38
|
+
translate var(--vd-duration-base) var(--vd-ease-out),
|
|
39
|
+
display var(--vd-duration-fast) allow-discrete,
|
|
40
|
+
overlay var(--vd-duration-fast) allow-discrete;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.vd-tooltip[data-placement='bottom'] {
|
|
44
|
+
position-area: block-end;
|
|
45
|
+
margin-block: var(--vd-tooltip-offset) 0;
|
|
46
|
+
--vd-tooltip-from: 0 calc(var(--vd-tooltip-shift) * -1);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.vd-tooltip[data-placement='start'] {
|
|
50
|
+
position-area: inline-start;
|
|
51
|
+
margin: 0;
|
|
52
|
+
margin-inline-end: var(--vd-tooltip-offset);
|
|
53
|
+
position-try-fallbacks: flip-inline;
|
|
54
|
+
--vd-tooltip-from: var(--vd-tooltip-shift) 0;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.vd-tooltip[data-placement='end'] {
|
|
58
|
+
position-area: inline-end;
|
|
59
|
+
margin: 0;
|
|
60
|
+
margin-inline-start: var(--vd-tooltip-offset);
|
|
61
|
+
position-try-fallbacks: flip-inline;
|
|
62
|
+
--vd-tooltip-from: calc(var(--vd-tooltip-shift) * -1) 0;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.vd-tooltip:popover-open {
|
|
66
|
+
opacity: 1;
|
|
67
|
+
translate: 0 0;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
@starting-style {
|
|
71
|
+
.vd-tooltip:popover-open {
|
|
72
|
+
opacity: 0;
|
|
73
|
+
translate: var(--vd-tooltip-from);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
@media (forced-colors: active) {
|
|
78
|
+
.vd-tooltip {
|
|
79
|
+
border-color: CanvasText;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/* RTL: start/end sides swap, so the slide-in direction does too. */
|
|
85
|
+
@layer vd.components {
|
|
86
|
+
.vd-tooltip[data-placement='start']:dir(rtl) {
|
|
87
|
+
--vd-tooltip-from: calc(var(--vd-tooltip-shift) * -1) 0;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.vd-tooltip[data-placement='end']:dir(rtl) {
|
|
91
|
+
--vd-tooltip-from: var(--vd-tooltip-shift) 0;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
@layer vd.components {
|
|
2
|
+
.vd-tree {
|
|
3
|
+
--vd-tree-gap: var(--vd-space-1);
|
|
4
|
+
--vd-tree-indent: var(--vd-space-4);
|
|
5
|
+
--vd-tree-padding: var(--vd-space-2);
|
|
6
|
+
--vd-tree-radius: var(--vd-radius-sm);
|
|
7
|
+
--vd-tree-height: var(--vd-control-height-md);
|
|
8
|
+
--vd-tree-bg-hover: var(--vd-color-fill-hover);
|
|
9
|
+
--vd-tree-bg-selected: var(--vd-color-fill);
|
|
10
|
+
--vd-tree-fg: var(--vd-color-text);
|
|
11
|
+
--vd-tree-muted: var(--vd-color-text-muted);
|
|
12
|
+
--vd-tree-ring: var(--vd-color-focus);
|
|
13
|
+
margin: 0;
|
|
14
|
+
padding: 0;
|
|
15
|
+
list-style: none;
|
|
16
|
+
color: var(--vd-tree-fg);
|
|
17
|
+
min-inline-size: 0;
|
|
18
|
+
}
|
|
19
|
+
.vd-tree__group {
|
|
20
|
+
margin: 0;
|
|
21
|
+
padding: 0;
|
|
22
|
+
padding-inline-start: min(var(--vd-tree-indent), 10%);
|
|
23
|
+
list-style: none;
|
|
24
|
+
}
|
|
25
|
+
.vd-tree-item {
|
|
26
|
+
min-inline-size: 0;
|
|
27
|
+
outline: none;
|
|
28
|
+
}
|
|
29
|
+
.vd-tree-item__row {
|
|
30
|
+
display: flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
gap: var(--vd-tree-gap);
|
|
33
|
+
min-block-size: var(--vd-tree-height);
|
|
34
|
+
padding: var(--vd-tree-padding);
|
|
35
|
+
border-radius: var(--vd-tree-radius);
|
|
36
|
+
cursor: pointer;
|
|
37
|
+
transition: var(--vd-transition-colors);
|
|
38
|
+
}
|
|
39
|
+
.vd-tree-item__label {
|
|
40
|
+
min-inline-size: 0;
|
|
41
|
+
flex: 1;
|
|
42
|
+
overflow-wrap: anywhere;
|
|
43
|
+
}
|
|
44
|
+
.vd-tree-item__toggle,
|
|
45
|
+
.vd-tree-item__check {
|
|
46
|
+
display: inline-grid;
|
|
47
|
+
place-items: center;
|
|
48
|
+
flex: none;
|
|
49
|
+
inline-size: var(--vd-space-6);
|
|
50
|
+
block-size: var(--vd-space-6);
|
|
51
|
+
color: var(--vd-tree-muted);
|
|
52
|
+
}
|
|
53
|
+
.vd-tree-item__check {
|
|
54
|
+
inline-size: var(--vd-space-4);
|
|
55
|
+
}
|
|
56
|
+
.vd-tree-item:not([data-selected]) > .vd-tree-item__row > .vd-tree-item__check {
|
|
57
|
+
display: none;
|
|
58
|
+
}
|
|
59
|
+
.vd-tree-item[data-selected] > .vd-tree-item__row {
|
|
60
|
+
background: var(--vd-tree-bg-selected);
|
|
61
|
+
}
|
|
62
|
+
.vd-tree-item:focus-visible > .vd-tree-item__row,
|
|
63
|
+
.vd-tree:focus-visible {
|
|
64
|
+
outline: var(--vd-focus-ring-width) solid var(--vd-tree-ring);
|
|
65
|
+
outline-offset: calc(var(--vd-border-width) * -1);
|
|
66
|
+
}
|
|
67
|
+
.vd-tree-item[data-disabled] > .vd-tree-item__row {
|
|
68
|
+
color: var(--vd-tree-muted);
|
|
69
|
+
cursor: not-allowed;
|
|
70
|
+
}
|
|
71
|
+
@media (hover: hover) {
|
|
72
|
+
.vd-tree-item:not([data-disabled]) > .vd-tree-item__row:hover {
|
|
73
|
+
background: var(--vd-tree-bg-hover);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
@media (forced-colors: active) {
|
|
77
|
+
.vd-tree-item[data-selected] > .vd-tree-item__row {
|
|
78
|
+
outline: var(--vd-border-width) solid Highlight;
|
|
79
|
+
}
|
|
80
|
+
.vd-tree-item:focus-visible > .vd-tree-item__row,
|
|
81
|
+
.vd-tree:focus-visible {
|
|
82
|
+
outline-color: Highlight;
|
|
83
|
+
}
|
|
84
|
+
.vd-tree-item[data-disabled] > .vd-tree-item__row {
|
|
85
|
+
color: GrayText;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|