@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,334 @@
|
|
|
1
|
+
/* Dialog - spec: specs/dialog.md */
|
|
2
|
+
@layer vd.components {
|
|
3
|
+
.vd-dialog {
|
|
4
|
+
--vd-dialog-width: 32rem;
|
|
5
|
+
--vd-dialog-padding: var(--vd-space-6);
|
|
6
|
+
--vd-dialog-gap: var(--vd-space-5);
|
|
7
|
+
--vd-dialog-radius: var(--vd-radius-overlay);
|
|
8
|
+
--vd-dialog-bg: var(--vd-color-surface-overlay);
|
|
9
|
+
--vd-dialog-margin: var(--vd-space-4);
|
|
10
|
+
|
|
11
|
+
inline-size: min(var(--vd-dialog-width), 100% - var(--vd-dialog-margin) * 2);
|
|
12
|
+
max-inline-size: none;
|
|
13
|
+
max-block-size: calc(100dvh - var(--vd-dialog-margin) * 2);
|
|
14
|
+
/* Own the geometry instead of relying on UA :modal styles: they drop the moment close()
|
|
15
|
+
runs, which made the dialog jump during its exit transition. Resets also zero margins. */
|
|
16
|
+
position: fixed;
|
|
17
|
+
inset: 0;
|
|
18
|
+
margin: auto;
|
|
19
|
+
padding: 0;
|
|
20
|
+
border: var(--vd-border-width) solid var(--vd-color-border-strong);
|
|
21
|
+
border-radius: var(--vd-dialog-radius);
|
|
22
|
+
background-color: var(--vd-dialog-bg);
|
|
23
|
+
box-shadow: var(--vd-highlight-top), var(--vd-shadow-lg);
|
|
24
|
+
color: var(--vd-color-text);
|
|
25
|
+
overflow: hidden;
|
|
26
|
+
overscroll-behavior: contain;
|
|
27
|
+
/* Layout lives on the base rule, not on [open]: during the exit transition [open] is
|
|
28
|
+
already gone while display is still flex, and a row direction made the dialog jump. */
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
|
|
31
|
+
/* Exit state (and the state the entry animates from). */
|
|
32
|
+
opacity: 0;
|
|
33
|
+
scale: 0.96;
|
|
34
|
+
translate: 0 var(--vd-space-2);
|
|
35
|
+
transition:
|
|
36
|
+
opacity var(--vd-duration-base) var(--vd-ease-out),
|
|
37
|
+
scale var(--vd-duration-slow) var(--vd-ease-spring),
|
|
38
|
+
translate var(--vd-duration-slow) var(--vd-ease-spring),
|
|
39
|
+
display var(--vd-duration-base) allow-discrete,
|
|
40
|
+
overlay var(--vd-duration-base) allow-discrete;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.vd-dialog[data-size='sm'] {
|
|
44
|
+
--vd-dialog-width: 24rem;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.vd-dialog[data-size='lg'] {
|
|
48
|
+
--vd-dialog-width: 44rem;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.vd-dialog[open] {
|
|
52
|
+
display: flex;
|
|
53
|
+
opacity: 1;
|
|
54
|
+
scale: 1;
|
|
55
|
+
translate: 0 0;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@starting-style {
|
|
59
|
+
.vd-dialog[open] {
|
|
60
|
+
opacity: 0;
|
|
61
|
+
scale: 0.96;
|
|
62
|
+
translate: 0 var(--vd-space-2);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.vd-dialog::backdrop {
|
|
67
|
+
background-color: var(--vd-color-backdrop);
|
|
68
|
+
opacity: 0;
|
|
69
|
+
transition:
|
|
70
|
+
opacity var(--vd-duration-base) var(--vd-ease-out),
|
|
71
|
+
display var(--vd-duration-base) allow-discrete,
|
|
72
|
+
overlay var(--vd-duration-base) allow-discrete;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.vd-dialog[open]::backdrop {
|
|
76
|
+
opacity: 1;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
@starting-style {
|
|
80
|
+
.vd-dialog[open]::backdrop {
|
|
81
|
+
opacity: 0;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
@supports (backdrop-filter: blur(1px)) {
|
|
86
|
+
.vd-dialog::backdrop {
|
|
87
|
+
backdrop-filter: blur(var(--vd-space-1));
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/* Page doesn't scroll behind a modal. No layout shift as long as the root reserves its
|
|
92
|
+
scrollbar gutter permanently (base.css does); toggling the gutter here would jump the page. */
|
|
93
|
+
:root:has(.vd-dialog[open]:modal) {
|
|
94
|
+
overflow: hidden;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/* A form wrapping the parts (the usual submit pattern) doesn't add a layout box. */
|
|
98
|
+
.vd-dialog > form {
|
|
99
|
+
display: contents;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/* ---------------------------------------------------------------- parts */
|
|
103
|
+
|
|
104
|
+
.vd-dialog__header {
|
|
105
|
+
display: flex;
|
|
106
|
+
flex-wrap: wrap;
|
|
107
|
+
align-items: flex-start;
|
|
108
|
+
gap: var(--vd-space-1) var(--vd-space-3);
|
|
109
|
+
padding: var(--vd-dialog-padding) var(--vd-dialog-padding) 0;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.vd-dialog__header > :not(.vd-dialog__title, .vd-dialog__description) {
|
|
113
|
+
order: 1;
|
|
114
|
+
flex: none;
|
|
115
|
+
/* Optical: icon buttons in the corner sit closer to the edge. */
|
|
116
|
+
margin-block-start: calc(var(--vd-space-1) * -1);
|
|
117
|
+
margin-inline-end: calc(var(--vd-space-2) * -1);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.vd-dialog__title {
|
|
121
|
+
flex: 1 1 12rem;
|
|
122
|
+
margin: 0;
|
|
123
|
+
font-size: var(--vd-text-xl);
|
|
124
|
+
font-weight: var(--vd-weight-bold);
|
|
125
|
+
line-height: var(--vd-leading-snug);
|
|
126
|
+
letter-spacing: var(--vd-tracking-tight);
|
|
127
|
+
text-wrap: balance;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.vd-dialog__description {
|
|
131
|
+
order: 2;
|
|
132
|
+
flex: 1 0 100%;
|
|
133
|
+
margin: 0;
|
|
134
|
+
color: var(--vd-color-text-muted);
|
|
135
|
+
font-size: var(--vd-text-sm);
|
|
136
|
+
text-wrap: pretty;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.vd-dialog__body {
|
|
140
|
+
display: flex;
|
|
141
|
+
flex-direction: column;
|
|
142
|
+
gap: var(--vd-space-4);
|
|
143
|
+
min-block-size: 0;
|
|
144
|
+
padding: var(--vd-dialog-gap) var(--vd-dialog-padding);
|
|
145
|
+
overflow-y: auto;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.vd-dialog__header + .vd-dialog__footer {
|
|
149
|
+
margin-block-start: var(--vd-dialog-gap);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.vd-dialog__footer {
|
|
153
|
+
display: flex;
|
|
154
|
+
flex-wrap: wrap;
|
|
155
|
+
justify-content: flex-end;
|
|
156
|
+
gap: var(--vd-space-2);
|
|
157
|
+
padding: var(--vd-space-4) var(--vd-dialog-padding);
|
|
158
|
+
border-block-start: var(--vd-border-width) solid var(--vd-color-border);
|
|
159
|
+
background-color: color-mix(in oklch, var(--vd-color-surface-sunken) 40%, transparent);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/* ------------------------------------------------------------- drawer */
|
|
163
|
+
/* placement="start|end": full height, attached to that inline edge, slides in from it.
|
|
164
|
+
Same parts and behavior as the dialog; below the sheet breakpoint it is a bottom sheet. */
|
|
165
|
+
@media (width >= 40rem) {
|
|
166
|
+
.vd-dialog[data-placement] {
|
|
167
|
+
/* +1 slides toward the inline end, -1 toward the start; mirrored in RTL. */
|
|
168
|
+
--vd-drawer-from: 1;
|
|
169
|
+
--vd-dialog-width: 28rem;
|
|
170
|
+
|
|
171
|
+
/* Reach over the reserved scrollbar gutter (measured on open) to the real viewport edge.
|
|
172
|
+
Physical sides on purpose: the gutter is physical, its side depends on the engine. */
|
|
173
|
+
left: calc(var(--vd-viewport-gutter-left, 0px) * -1);
|
|
174
|
+
right: calc(var(--vd-viewport-gutter-right, 0px) * -1);
|
|
175
|
+
inline-size: min(var(--vd-dialog-width), 100% - var(--vd-space-12));
|
|
176
|
+
block-size: 100dvh;
|
|
177
|
+
max-block-size: none;
|
|
178
|
+
margin-block: 0;
|
|
179
|
+
margin-inline: auto 0;
|
|
180
|
+
border-block: 0;
|
|
181
|
+
border-inline-end: 0;
|
|
182
|
+
border-start-end-radius: 0;
|
|
183
|
+
border-end-end-radius: 0;
|
|
184
|
+
opacity: 1;
|
|
185
|
+
scale: 1;
|
|
186
|
+
translate: calc(100% * var(--vd-drawer-from)) 0;
|
|
187
|
+
/* Ease-out, no spring: an overshoot would pull the panel off its edge. */
|
|
188
|
+
transition:
|
|
189
|
+
translate var(--vd-duration-slow) var(--vd-ease-out),
|
|
190
|
+
display var(--vd-duration-slow) allow-discrete,
|
|
191
|
+
overlay var(--vd-duration-slow) allow-discrete;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.vd-dialog[data-placement='start'] {
|
|
195
|
+
--vd-drawer-from: -1;
|
|
196
|
+
|
|
197
|
+
margin-inline: 0 auto;
|
|
198
|
+
border-inline-start: 0;
|
|
199
|
+
border-inline-end: var(--vd-border-width) solid var(--vd-color-border-strong);
|
|
200
|
+
border-start-end-radius: var(--vd-dialog-radius);
|
|
201
|
+
border-end-end-radius: var(--vd-dialog-radius);
|
|
202
|
+
border-start-start-radius: 0;
|
|
203
|
+
border-end-start-radius: 0;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.vd-dialog[data-placement]:dir(rtl) {
|
|
207
|
+
--vd-drawer-from: -1;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.vd-dialog[data-placement='start']:dir(rtl) {
|
|
211
|
+
--vd-drawer-from: 1;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.vd-dialog[data-placement][data-size='sm'] {
|
|
215
|
+
--vd-dialog-width: 22rem;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.vd-dialog[data-placement][data-size='lg'] {
|
|
219
|
+
--vd-dialog-width: 40rem;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.vd-dialog[data-placement][open] {
|
|
223
|
+
translate: 0 0;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
@starting-style {
|
|
227
|
+
.vd-dialog[data-placement][open] {
|
|
228
|
+
opacity: 1;
|
|
229
|
+
scale: 1;
|
|
230
|
+
translate: calc(100% * var(--vd-drawer-from)) 0;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.vd-dialog[data-placement]::backdrop {
|
|
235
|
+
transition-duration: var(--vd-duration-slow);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
/* The body takes the height so the footer sits at the bottom edge. */
|
|
239
|
+
.vd-dialog[data-placement] .vd-dialog__body {
|
|
240
|
+
flex: 1;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
/* ------------------------------------------------------- bottom sheet */
|
|
245
|
+
/* Phones: the dialog becomes a sheet attached to the bottom edge and slides up. Plain ease-out
|
|
246
|
+
(no spring): an overshoot would lift the sheet off the edge for a few frames.
|
|
247
|
+
40rem is the sheet breakpoint (media queries can't read custom properties). */
|
|
248
|
+
@media (width < 40rem) {
|
|
249
|
+
.vd-dialog {
|
|
250
|
+
/* Read by the swipe controller: the single source of truth for "is a sheet". */
|
|
251
|
+
--vd-dialog-sheet: 1;
|
|
252
|
+
--vd-dialog-padding: var(--vd-space-5);
|
|
253
|
+
|
|
254
|
+
inline-size: 100%;
|
|
255
|
+
max-block-size: calc(100dvh - var(--vd-space-10));
|
|
256
|
+
margin: auto 0 0;
|
|
257
|
+
border-block-end: 0;
|
|
258
|
+
border-end-start-radius: 0;
|
|
259
|
+
border-end-end-radius: 0;
|
|
260
|
+
opacity: 1;
|
|
261
|
+
scale: 1;
|
|
262
|
+
translate: 0 100%;
|
|
263
|
+
transition:
|
|
264
|
+
translate var(--vd-duration-slow) var(--vd-ease-out),
|
|
265
|
+
display var(--vd-duration-slow) allow-discrete,
|
|
266
|
+
overlay var(--vd-duration-slow) allow-discrete;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.vd-dialog[open] {
|
|
270
|
+
translate: 0 var(--vd-sheet-offset, 0px);
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
@starting-style {
|
|
274
|
+
.vd-dialog[open] {
|
|
275
|
+
opacity: 1;
|
|
276
|
+
scale: 1;
|
|
277
|
+
translate: 0 100%;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.vd-dialog::backdrop {
|
|
282
|
+
transition-duration: var(--vd-duration-slow);
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
/* Backdrop fades as the sheet is dragged down (where ::backdrop inherits from the dialog). */
|
|
286
|
+
.vd-dialog[open]::backdrop {
|
|
287
|
+
opacity: calc(1 - var(--vd-sheet-progress, 0) * 0.8);
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
/* While the finger drives the sheet, nothing animates. */
|
|
291
|
+
.vd-dialog[data-dragging],
|
|
292
|
+
.vd-dialog[data-dragging]::backdrop {
|
|
293
|
+
transition: none;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
/* Grab handle: only when the sheet can be swiped away. The header is the drag zone. */
|
|
297
|
+
.vd-dialog[data-dismissible] > .vd-dialog__header,
|
|
298
|
+
.vd-dialog[data-dismissible] > form > .vd-dialog__header {
|
|
299
|
+
padding-block-start: calc(var(--vd-dialog-padding) + var(--vd-space-2));
|
|
300
|
+
touch-action: none;
|
|
301
|
+
cursor: grab;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.vd-dialog[data-dismissible] > .vd-dialog__header::before,
|
|
305
|
+
.vd-dialog[data-dismissible] > form > .vd-dialog__header::before {
|
|
306
|
+
content: '';
|
|
307
|
+
position: absolute;
|
|
308
|
+
inset-block-start: var(--vd-space-2);
|
|
309
|
+
inset-inline: 0;
|
|
310
|
+
inline-size: var(--vd-space-10);
|
|
311
|
+
block-size: var(--vd-space-1);
|
|
312
|
+
margin-inline: auto;
|
|
313
|
+
border-radius: var(--vd-radius-full);
|
|
314
|
+
background-color: var(--vd-color-border-strong);
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
.vd-dialog[data-dragging] > .vd-dialog__header,
|
|
318
|
+
.vd-dialog[data-dragging] > form > .vd-dialog__header {
|
|
319
|
+
cursor: grabbing;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
.vd-dialog__footer {
|
|
323
|
+
flex-direction: column-reverse;
|
|
324
|
+
align-items: stretch;
|
|
325
|
+
padding-block-end: max(var(--vd-space-4), env(safe-area-inset-bottom));
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
@media (forced-colors: active) {
|
|
330
|
+
.vd-dialog {
|
|
331
|
+
border-color: CanvasText;
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/* Dropzone (native file input) - spec: specs/dropzone.md */
|
|
2
|
+
@layer vd.components {
|
|
3
|
+
.vd-dropzone {
|
|
4
|
+
--vd-dropzone-padding: var(--vd-space-8) var(--vd-space-6);
|
|
5
|
+
--vd-dropzone-radius: var(--vd-radius-surface);
|
|
6
|
+
--vd-dropzone-border: var(--vd-color-border-control);
|
|
7
|
+
--vd-dropzone-bg: var(--vd-color-field);
|
|
8
|
+
--vd-dropzone-border-active: var(--vd-color-action);
|
|
9
|
+
--vd-dropzone-bg-active: var(--vd-color-action-subtle);
|
|
10
|
+
|
|
11
|
+
position: relative;
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
align-items: center;
|
|
15
|
+
gap: var(--vd-space-2);
|
|
16
|
+
padding: var(--vd-dropzone-padding);
|
|
17
|
+
border: var(--vd-border-width) dashed var(--vd-dropzone-border);
|
|
18
|
+
border-radius: var(--vd-dropzone-radius);
|
|
19
|
+
background-color: var(--vd-dropzone-bg);
|
|
20
|
+
color: var(--vd-color-text-muted);
|
|
21
|
+
font-size: var(--vd-text-sm);
|
|
22
|
+
text-align: center;
|
|
23
|
+
cursor: pointer;
|
|
24
|
+
transition:
|
|
25
|
+
var(--vd-transition-colors),
|
|
26
|
+
scale var(--vd-duration-fast) var(--vd-ease-out);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/* The input stays in the tab order and the accessibility tree; only its box is hidden. */
|
|
30
|
+
.vd-dropzone > input[type='file'] {
|
|
31
|
+
position: absolute;
|
|
32
|
+
inline-size: 1px;
|
|
33
|
+
block-size: 1px;
|
|
34
|
+
overflow: hidden;
|
|
35
|
+
clip-path: inset(50%);
|
|
36
|
+
white-space: nowrap;
|
|
37
|
+
opacity: 0;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.vd-dropzone > .vd-icon {
|
|
41
|
+
--vd-icon-size: var(--vd-space-6);
|
|
42
|
+
|
|
43
|
+
margin-block-end: var(--vd-space-1);
|
|
44
|
+
color: var(--vd-color-text-accent);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.vd-dropzone strong {
|
|
48
|
+
color: var(--vd-color-text);
|
|
49
|
+
font-weight: var(--vd-weight-semibold);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
@media (hover: hover) {
|
|
53
|
+
.vd-dropzone:not(:has(> input:disabled)):hover {
|
|
54
|
+
border-color: var(--vd-color-border-control-hover);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.vd-dropzone:has(> input:focus-visible) {
|
|
59
|
+
outline: var(--vd-focus-ring-width) solid var(--vd-color-focus);
|
|
60
|
+
outline-offset: var(--vd-focus-ring-offset);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.vd-dropzone[data-dragover] {
|
|
64
|
+
border-style: solid;
|
|
65
|
+
border-color: var(--vd-dropzone-border-active);
|
|
66
|
+
background-color: var(--vd-dropzone-bg-active);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
70
|
+
.vd-dropzone[data-dragover] {
|
|
71
|
+
scale: 1.01;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.vd-dropzone:has(> input:disabled) {
|
|
76
|
+
opacity: var(--vd-opacity-disabled);
|
|
77
|
+
cursor: not-allowed;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.vd-dropzone:has(> input[data-invalid]) {
|
|
81
|
+
--vd-dropzone-border: var(--vd-color-danger);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
@media (forced-colors: active) {
|
|
85
|
+
.vd-dropzone[data-dragover] {
|
|
86
|
+
border-color: Highlight;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
@layer vd.components {
|
|
2
|
+
.vd-editable-text {
|
|
3
|
+
--vd-editable-text-gap: var(--vd-space-3);
|
|
4
|
+
--vd-editable-text-label-size: var(--vd-text-sm);
|
|
5
|
+
--vd-editable-text-label-color: var(--vd-color-text);
|
|
6
|
+
--vd-editable-text-value-color: var(--vd-color-text);
|
|
7
|
+
--vd-editable-text-empty-color: var(--vd-color-text-muted);
|
|
8
|
+
--vd-editable-text-icon-color: var(--vd-color-text-muted);
|
|
9
|
+
|
|
10
|
+
display: grid;
|
|
11
|
+
grid-template-columns: minmax(0, 1fr);
|
|
12
|
+
gap: var(--vd-editable-text-gap);
|
|
13
|
+
min-inline-size: 0;
|
|
14
|
+
}
|
|
15
|
+
.vd-editable-text__label {
|
|
16
|
+
color: var(--vd-editable-text-label-color);
|
|
17
|
+
font-size: var(--vd-editable-text-label-size);
|
|
18
|
+
font-weight: var(--vd-weight-medium);
|
|
19
|
+
overflow-wrap: anywhere;
|
|
20
|
+
}
|
|
21
|
+
.vd-editable-text__trigger {
|
|
22
|
+
justify-content: space-between;
|
|
23
|
+
inline-size: 100%;
|
|
24
|
+
min-inline-size: 0;
|
|
25
|
+
text-align: start;
|
|
26
|
+
color: var(--vd-editable-text-value-color);
|
|
27
|
+
}
|
|
28
|
+
.vd-editable-text__trigger > .vd-button__label {
|
|
29
|
+
min-inline-size: 0;
|
|
30
|
+
white-space: normal;
|
|
31
|
+
overflow-wrap: anywhere;
|
|
32
|
+
}
|
|
33
|
+
.vd-editable-text__trigger > .vd-icon {
|
|
34
|
+
flex: none;
|
|
35
|
+
color: var(--vd-editable-text-icon-color);
|
|
36
|
+
}
|
|
37
|
+
.vd-editable-text__value[data-empty] {
|
|
38
|
+
color: var(--vd-editable-text-empty-color);
|
|
39
|
+
}
|
|
40
|
+
.vd-editable-text .vd-field__error > span {
|
|
41
|
+
min-inline-size: 0;
|
|
42
|
+
overflow-wrap: anywhere;
|
|
43
|
+
}
|
|
44
|
+
.vd-editable-text .vd-field__hint,
|
|
45
|
+
.vd-editable-text .vd-field__label {
|
|
46
|
+
overflow-wrap: anywhere;
|
|
47
|
+
}
|
|
48
|
+
.vd-editable-text__actions {
|
|
49
|
+
display: flex;
|
|
50
|
+
flex-wrap: wrap;
|
|
51
|
+
gap: var(--vd-editable-text-gap);
|
|
52
|
+
}
|
|
53
|
+
.vd-editable-text__actions > .vd-button {
|
|
54
|
+
--vd-button-padding-inline: var(--vd-space-1);
|
|
55
|
+
max-inline-size: 100%;
|
|
56
|
+
white-space: normal;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/* Empty state - spec: specs/empty-state.md */
|
|
2
|
+
@layer vd.components {
|
|
3
|
+
.vd-empty-state {
|
|
4
|
+
--vd-empty-state-padding: var(--vd-space-12) var(--vd-space-6);
|
|
5
|
+
--vd-empty-state-icon-size: var(--vd-space-12);
|
|
6
|
+
--vd-empty-state-icon-bg: var(--vd-color-action-subtle);
|
|
7
|
+
--vd-empty-state-icon-fg: var(--vd-color-text-accent);
|
|
8
|
+
--vd-empty-state-title-size: var(--vd-text-lg);
|
|
9
|
+
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
align-items: center;
|
|
13
|
+
gap: var(--vd-space-2);
|
|
14
|
+
padding: var(--vd-empty-state-padding);
|
|
15
|
+
text-align: center;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.vd-empty-state[data-size='sm'] {
|
|
19
|
+
--vd-empty-state-padding: var(--vd-space-8) var(--vd-space-4);
|
|
20
|
+
--vd-empty-state-icon-size: var(--vd-space-10);
|
|
21
|
+
--vd-empty-state-title-size: var(--vd-text-md);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.vd-empty-state__icon {
|
|
25
|
+
display: grid;
|
|
26
|
+
place-items: center;
|
|
27
|
+
inline-size: var(--vd-empty-state-icon-size);
|
|
28
|
+
block-size: var(--vd-empty-state-icon-size);
|
|
29
|
+
margin-block-end: var(--vd-space-2);
|
|
30
|
+
border-radius: var(--vd-radius-full);
|
|
31
|
+
background-color: var(--vd-empty-state-icon-bg);
|
|
32
|
+
color: var(--vd-empty-state-icon-fg);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.vd-empty-state__icon .vd-icon {
|
|
36
|
+
--vd-icon-size: calc(var(--vd-empty-state-icon-size) / 2);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.vd-empty-state__title {
|
|
40
|
+
margin: 0;
|
|
41
|
+
color: var(--vd-color-text);
|
|
42
|
+
font-size: var(--vd-empty-state-title-size);
|
|
43
|
+
font-weight: var(--vd-weight-bold);
|
|
44
|
+
letter-spacing: var(--vd-tracking-tight);
|
|
45
|
+
text-wrap: balance;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.vd-empty-state__description {
|
|
49
|
+
max-inline-size: 40ch;
|
|
50
|
+
margin: 0;
|
|
51
|
+
color: var(--vd-color-text-muted);
|
|
52
|
+
font-size: var(--vd-text-sm);
|
|
53
|
+
text-wrap: pretty;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.vd-empty-state > [slot='actions'] {
|
|
57
|
+
display: flex;
|
|
58
|
+
flex-wrap: wrap;
|
|
59
|
+
justify-content: center;
|
|
60
|
+
gap: var(--vd-space-2);
|
|
61
|
+
margin-block-start: var(--vd-space-3);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/* Inside an empty table cell the cell's own padding is enough. */
|
|
65
|
+
.vd-table__empty > .vd-empty-state {
|
|
66
|
+
padding: 0;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.vd-table__empty:has(> .vd-empty-state) {
|
|
70
|
+
padding-block: var(--vd-space-10);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
@layer vd.components {
|
|
2
|
+
.vd-expandable-text {
|
|
3
|
+
--vd-expandable-text-gap: var(--vd-space-2);
|
|
4
|
+
--vd-expandable-text-fg: var(--vd-color-text);
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
align-items: flex-start;
|
|
8
|
+
gap: var(--vd-expandable-text-gap);
|
|
9
|
+
min-inline-size: 0;
|
|
10
|
+
color: var(--vd-expandable-text-fg);
|
|
11
|
+
}
|
|
12
|
+
.vd-expandable-text__text {
|
|
13
|
+
margin: 0;
|
|
14
|
+
max-inline-size: 100%;
|
|
15
|
+
white-space: pre-wrap;
|
|
16
|
+
overflow-wrap: anywhere;
|
|
17
|
+
}
|
|
18
|
+
.vd-expandable-text__rest[hidden] {
|
|
19
|
+
display: none;
|
|
20
|
+
}
|
|
21
|
+
.vd-expandable-text__toggle {
|
|
22
|
+
max-inline-size: 100%;
|
|
23
|
+
}
|
|
24
|
+
}
|