@voidable/theme 0.7.0 → 0.8.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/README.md +133 -8
- package/dist/base.css +20 -0
- package/dist/base.min.css +1 -0
- package/dist/component-tokens.json +1015 -0
- package/dist/components/accordion.css +149 -0
- package/dist/components/accordion.min.css +1 -0
- package/dist/components/action-input.css +416 -0
- package/dist/components/action-input.min.css +1 -0
- package/dist/components/alert.css +151 -0
- package/dist/components/alert.min.css +1 -0
- package/dist/components/avatar.css +73 -0
- package/dist/components/avatar.min.css +1 -0
- package/dist/components/badge.css +108 -0
- package/dist/components/badge.min.css +1 -0
- package/dist/components/banner.css +149 -0
- package/dist/components/banner.min.css +1 -0
- package/dist/components/bar-chart.css +101 -0
- package/dist/components/bar-chart.min.css +1 -0
- package/dist/components/breadcrumbs.css +82 -0
- package/dist/components/breadcrumbs.min.css +1 -0
- package/dist/components/button.css +237 -0
- package/dist/components/button.min.css +1 -0
- package/dist/components/calendar.css +669 -0
- package/dist/components/calendar.min.css +1 -0
- package/dist/components/card.css +161 -0
- package/dist/components/card.min.css +1 -0
- package/dist/components/carousel.css +223 -0
- package/dist/components/carousel.min.css +1 -0
- package/dist/components/checkbox-group.css +68 -0
- package/dist/components/checkbox-group.min.css +1 -0
- package/dist/components/checkbox.css +169 -0
- package/dist/components/checkbox.min.css +1 -0
- package/dist/components/collapsible.css +152 -0
- package/dist/components/collapsible.min.css +1 -0
- package/dist/components/color-picker.css +364 -0
- package/dist/components/color-picker.min.css +1 -0
- package/dist/components/combobox.css +548 -0
- package/dist/components/combobox.min.css +1 -0
- package/dist/components/compose-input.css +117 -0
- package/dist/components/compose-input.min.css +1 -0
- package/dist/components/dialog.css +175 -0
- package/dist/components/dialog.min.css +1 -0
- package/dist/components/divider.css +84 -0
- package/dist/components/divider.min.css +1 -0
- package/dist/components/donut-chart.css +122 -0
- package/dist/components/donut-chart.min.css +1 -0
- package/dist/components/drawer.css +230 -0
- package/dist/components/drawer.min.css +1 -0
- package/dist/components/dropdown-menu.css +274 -0
- package/dist/components/dropdown-menu.min.css +1 -0
- package/dist/components/editable.css +141 -0
- package/dist/components/editable.min.css +1 -0
- package/dist/components/error-fallback.css +129 -0
- package/dist/components/error-fallback.min.css +1 -0
- package/dist/components/field.css +103 -0
- package/dist/components/field.min.css +1 -0
- package/dist/components/file-upload.css +156 -0
- package/dist/components/file-upload.min.css +1 -0
- package/dist/components/gauge.css +186 -0
- package/dist/components/gauge.min.css +1 -0
- package/dist/components/hamburger.css +114 -0
- package/dist/components/hamburger.min.css +1 -0
- package/dist/components/hover-card.css +220 -0
- package/dist/components/hover-card.min.css +1 -0
- package/dist/components/indicator.css +159 -0
- package/dist/components/indicator.min.css +1 -0
- package/dist/components/input.css +134 -0
- package/dist/components/input.min.css +1 -0
- package/dist/components/line-chart.css +157 -0
- package/dist/components/line-chart.min.css +1 -0
- package/dist/components/list.css +90 -0
- package/dist/components/list.min.css +1 -0
- package/dist/components/menu.css +208 -0
- package/dist/components/menu.min.css +1 -0
- package/dist/components/multiselect.css +397 -0
- package/dist/components/multiselect.min.css +1 -0
- package/dist/components/nav-bar.css +75 -0
- package/dist/components/nav-bar.min.css +1 -0
- package/dist/components/nav-menu.css +173 -0
- package/dist/components/nav-menu.min.css +1 -0
- package/dist/components/number-input.css +272 -0
- package/dist/components/number-input.min.css +1 -0
- package/dist/components/pagination.css +128 -0
- package/dist/components/pagination.min.css +1 -0
- package/dist/components/panel.css +96 -0
- package/dist/components/panel.min.css +1 -0
- package/dist/components/pin-input.css +185 -0
- package/dist/components/pin-input.min.css +1 -0
- package/dist/components/popover.css +227 -0
- package/dist/components/popover.min.css +1 -0
- package/dist/components/progress.css +148 -0
- package/dist/components/progress.min.css +1 -0
- package/dist/components/radio-group.css +64 -0
- package/dist/components/radio-group.min.css +1 -0
- package/dist/components/radio.css +174 -0
- package/dist/components/radio.min.css +1 -0
- package/dist/components/scroll-area.css +83 -0
- package/dist/components/scroll-area.min.css +1 -0
- package/dist/components/segmented-control.css +158 -0
- package/dist/components/segmented-control.min.css +1 -0
- package/dist/components/select.css +207 -0
- package/dist/components/select.min.css +1 -0
- package/dist/components/sidebar.css +62 -0
- package/dist/components/sidebar.min.css +1 -0
- package/dist/components/skeleton.css +85 -0
- package/dist/components/skeleton.min.css +1 -0
- package/dist/components/slider.css +193 -0
- package/dist/components/slider.min.css +1 -0
- package/dist/components/spinner.css +100 -0
- package/dist/components/spinner.min.css +1 -0
- package/dist/components/stat.css +177 -0
- package/dist/components/stat.min.css +1 -0
- package/dist/components/status-dot.css +60 -0
- package/dist/components/status-dot.min.css +1 -0
- package/dist/components/stepper.css +114 -0
- package/dist/components/stepper.min.css +1 -0
- package/dist/components/switch.css +175 -0
- package/dist/components/switch.min.css +1 -0
- package/dist/components/table.css +416 -0
- package/dist/components/table.min.css +1 -0
- package/dist/components/tabs.css +185 -0
- package/dist/components/tabs.min.css +1 -0
- package/dist/components/tag.css +134 -0
- package/dist/components/tag.min.css +1 -0
- package/dist/components/tags-input.css +267 -0
- package/dist/components/tags-input.min.css +1 -0
- package/dist/components/textarea.css +127 -0
- package/dist/components/textarea.min.css +1 -0
- package/dist/components/toast.css +200 -0
- package/dist/components/toast.min.css +1 -0
- package/dist/components/toggle-group.css +59 -0
- package/dist/components/toggle-group.min.css +1 -0
- package/dist/components/toggle.css +139 -0
- package/dist/components/toggle.min.css +1 -0
- package/dist/components/tooltip.css +221 -0
- package/dist/components/tooltip.min.css +1 -0
- package/dist/core.css +9657 -0
- package/dist/core.min.css +1 -0
- package/dist/dtcg/aurora.dark.tokens.json +4723 -0
- package/dist/dtcg/aurora.light.tokens.json +4723 -0
- package/dist/dtcg/capsule.dark.tokens.json +4723 -0
- package/dist/dtcg/capsule.light.tokens.json +4723 -0
- package/dist/dtcg/console.dark.tokens.json +4723 -0
- package/dist/dtcg/console.light.tokens.json +4723 -0
- package/dist/dtcg/dune.dark.tokens.json +4723 -0
- package/dist/dtcg/dune.light.tokens.json +4723 -0
- package/dist/dtcg/iris.dark.tokens.json +4723 -0
- package/dist/dtcg/iris.light.tokens.json +4723 -0
- package/dist/dtcg/loft.dark.tokens.json +5203 -0
- package/dist/dtcg/loft.light.tokens.json +5203 -0
- package/dist/dtcg/orbit.dark.tokens.json +4723 -0
- package/dist/dtcg/orbit.light.tokens.json +4723 -0
- package/dist/dtcg/paper.dark.tokens.json +4723 -0
- package/dist/dtcg/paper.light.tokens.json +4723 -0
- package/dist/dtcg/slab.dark.tokens.json +4969 -0
- package/dist/dtcg/slab.light.tokens.json +4969 -0
- package/dist/dtcg/void.dark.tokens.json +4723 -0
- package/dist/dtcg/void.light.tokens.json +4723 -0
- package/dist/dtcg/voidable.resolver.json +117 -0
- package/dist/exports.json +708 -0
- package/dist/json/aurora.dark.json +394 -0
- package/dist/json/aurora.light.json +394 -0
- package/dist/json/capsule.dark.json +394 -0
- package/dist/json/capsule.light.json +394 -0
- package/dist/json/console.dark.json +394 -0
- package/dist/json/console.light.json +394 -0
- package/dist/json/dune.dark.json +394 -0
- package/dist/json/dune.light.json +394 -0
- package/dist/json/iris.dark.json +394 -0
- package/dist/json/iris.light.json +394 -0
- package/dist/json/loft.dark.json +423 -0
- package/dist/json/loft.light.json +423 -0
- package/dist/json/orbit.dark.json +394 -0
- package/dist/json/orbit.light.json +394 -0
- package/dist/json/paper.dark.json +394 -0
- package/dist/json/paper.light.json +394 -0
- package/dist/json/slab.dark.json +412 -0
- package/dist/json/slab.light.json +412 -0
- package/dist/json/void.dark.json +394 -0
- package/dist/json/void.light.json +394 -0
- package/dist/knobs.css +21 -0
- package/dist/knobs.json +362 -0
- package/dist/knobs.min.css +1 -0
- package/dist/layers.css +2 -0
- package/dist/layers.min.css +1 -0
- package/dist/names.d.ts +519 -0
- package/dist/names.js +719 -0
- package/dist/patterns/app-shell.css +136 -0
- package/dist/patterns/app-shell.min.css +1 -0
- package/dist/patterns/data.css +430 -0
- package/dist/patterns/data.min.css +1 -0
- package/dist/patterns/media.css +288 -0
- package/dist/patterns/media.min.css +1 -0
- package/dist/patterns/page.css +323 -0
- package/dist/patterns/page.min.css +1 -0
- package/dist/patterns/shell.css +328 -0
- package/dist/patterns/shell.min.css +1 -0
- package/dist/primitives.css +175 -0
- package/dist/primitives.min.css +1 -0
- package/dist/reset.css +44 -0
- package/dist/reset.min.css +1 -0
- package/dist/skin.d.ts +14 -0
- package/dist/skin.js +158 -0
- package/dist/skins/loft.css +94 -0
- package/dist/skins/loft.min.css +1 -0
- package/dist/skins/slab.css +99 -0
- package/dist/skins/slab.min.css +1 -0
- package/dist/themes/aurora.css +18 -0
- package/dist/themes/aurora.min.css +1 -0
- package/dist/themes/capsule.css +18 -0
- package/dist/themes/capsule.min.css +1 -0
- package/dist/themes/console.css +18 -0
- package/dist/themes/console.min.css +1 -0
- package/dist/themes/dune.css +18 -0
- package/dist/themes/dune.min.css +1 -0
- package/dist/themes/iris.css +18 -0
- package/dist/themes/iris.min.css +1 -0
- package/dist/themes/orbit.css +18 -0
- package/dist/themes/orbit.min.css +1 -0
- package/dist/themes/paper.css +19 -0
- package/dist/themes/paper.min.css +1 -0
- package/dist/themes/void.css +18 -0
- package/dist/themes/void.min.css +1 -0
- package/dist/tokens.css +695 -0
- package/dist/tokens.min.css +1 -0
- package/dist/type.css +99 -0
- package/dist/type.min.css +1 -0
- package/dist/void.css +9673 -0
- package/dist/void.min.css +1 -0
- package/package.json +66 -8
- package/src/app-shell/detail.css +7 -5
- package/src/app-shell/subtable.css +7 -6
- package/src/base.css +28 -0
- package/src/components/accordion.css +96 -19
- package/src/components/action-input.css +51 -61
- package/src/components/alert.css +63 -23
- package/src/components/avatar.css +0 -2
- package/src/components/badge.css +35 -25
- package/src/components/banner.css +60 -19
- package/src/components/bar-chart.css +10 -3
- package/src/components/breadcrumbs.css +20 -16
- package/src/components/button.css +130 -55
- package/src/components/calendar.css +40 -17
- package/src/components/card.css +122 -23
- package/src/components/carousel.css +85 -118
- package/src/components/checkbox-group.css +3 -1
- package/src/components/checkbox.css +18 -23
- package/src/components/collapsible.css +95 -29
- package/src/components/color-picker.css +10 -10
- package/src/components/combobox.css +47 -29
- package/src/components/compose-input.css +3 -3
- package/src/components/dialog.css +115 -41
- package/src/components/divider.css +7 -4
- package/src/components/donut-chart.css +25 -15
- package/src/components/drawer.css +135 -68
- package/src/components/dropdown-menu.css +21 -43
- package/src/components/editable.css +7 -7
- package/src/components/error-fallback.css +48 -27
- package/src/components/field.css +12 -5
- package/src/components/file-upload.css +2 -1
- package/src/components/gauge.css +35 -23
- package/src/components/hamburger.css +10 -10
- package/src/components/hover-card.css +13 -113
- package/src/components/indicator.css +22 -18
- package/src/components/input.css +15 -12
- package/src/components/line-chart.css +10 -10
- package/src/components/list.css +28 -7
- package/src/components/menu.css +48 -33
- package/src/components/multiselect.css +57 -40
- package/src/components/nav-bar.css +23 -14
- package/src/components/nav-menu.css +31 -22
- package/src/components/number-input.css +56 -79
- package/src/components/overlay.css +215 -0
- package/src/components/pagination.css +42 -31
- package/src/components/panel.css +37 -11
- package/src/components/pin-input.css +23 -22
- package/src/components/popover.css +19 -35
- package/src/components/progress.css +19 -10
- package/src/components/radio-group.css +2 -1
- package/src/components/radio.css +15 -20
- package/src/components/scroll-area.css +3 -3
- package/src/components/segmented-control.css +46 -29
- package/src/components/select.css +99 -31
- package/src/components/sidebar.css +8 -4
- package/src/components/skeleton.css +8 -3
- package/src/components/slider.css +4 -2
- package/src/components/spinner.css +5 -4
- package/src/components/stat.css +59 -52
- package/src/components/status-dot.css +0 -1
- package/src/components/switch.css +18 -26
- package/src/components/table.css +443 -16
- package/src/components/tabs.css +92 -29
- package/src/components/tag.css +44 -20
- package/src/components/tags-input.css +43 -55
- package/src/components/textarea.css +15 -12
- package/src/components/toast.css +84 -22
- package/src/components/toggle.css +35 -42
- package/src/components/tooltip.css +19 -38
- package/src/core.css +98 -0
- package/src/forced-colors.css +134 -0
- package/src/index.css +4 -77
- package/src/knobs.css +101 -0
- package/src/layers.css +38 -0
- package/src/media/media.css +258 -0
- package/src/media/surface.css +143 -0
- package/src/patterns/data.css +461 -0
- package/src/patterns/page.css +348 -0
- package/src/patterns/shell.css +371 -0
- package/src/pre-upgrade.css +202 -0
- package/src/primitives.css +19 -97
- package/src/reset.css +45 -21
- package/src/skins/loft.css +114 -0
- package/src/skins/slab.css +107 -0
- package/src/themes/aurora.css +16 -0
- package/src/themes/capsule.css +16 -0
- package/src/themes/console.css +16 -0
- package/src/themes/dune.css +16 -0
- package/src/themes/iris.css +16 -0
- package/src/themes/orbit.css +16 -0
- package/src/themes/paper.css +18 -0
- package/src/themes/void.css +16 -0
- package/src/tokens.css +552 -98
- package/src/type.css +103 -0
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
@layer theme, base, components.void.reset, components.void.tokens, components.void.themes, components.void.type, components.void.components, components.void.patterns, components.void.skins, components.void.a11y, utilities;
|
|
2
|
+
|
|
3
|
+
@layer components.void.reset {
|
|
4
|
+
:where(:is(void-editable), :is(void-editable) *), :where(:is(void-editable), :is(void-editable) *):before, :where(:is(void-editable), :is(void-editable) *):after {
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
margin: 0;
|
|
7
|
+
padding: 0;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
:where(:is(void-editable), :is(void-editable) *)[hidden]:not([hidden="until-found"]) {
|
|
11
|
+
display: none !important;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:where(:is(void-editable)) {
|
|
15
|
+
color-scheme: var(--void-color-scheme);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
:where(:is(void-editable) :is(img, picture, video, canvas, svg)) {
|
|
19
|
+
max-width: 100%;
|
|
20
|
+
display: block;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
:where(:is(void-editable) :is(input, button, textarea, select)) {
|
|
24
|
+
font: inherit;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
:where(:is(void-editable) :is(a)) {
|
|
28
|
+
color: inherit;
|
|
29
|
+
text-underline-offset: .2em;
|
|
30
|
+
text-decoration-thickness: 1px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:where(:is(void-editable) :is(a[href])) {
|
|
34
|
+
text-decoration-line: underline;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@layer components.void.components {
|
|
39
|
+
void-editable {
|
|
40
|
+
font-family: var(--void-font-sans);
|
|
41
|
+
display: inline-flex;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.void-editable-preview {
|
|
45
|
+
padding: var(--void-space-0h) var(--void-space-1);
|
|
46
|
+
border-radius: var(--void-control-radius);
|
|
47
|
+
color: var(--void-color-text);
|
|
48
|
+
cursor: text;
|
|
49
|
+
text-decoration: underline dotted var(--void-color-border-focus);
|
|
50
|
+
text-underline-offset: var(--void-space-1);
|
|
51
|
+
transition: border-color var(--void-duration-fast) var(--void-ease-in-out),
|
|
52
|
+
background var(--void-duration-fast) var(--void-ease-in-out);
|
|
53
|
+
border: 1px solid #0000;
|
|
54
|
+
display: inline;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.void-editable-preview:hover {
|
|
58
|
+
border-color: var(--void-color-border-focus);
|
|
59
|
+
background: var(--void-color-surface);
|
|
60
|
+
border-style: dashed;
|
|
61
|
+
text-decoration: none;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.void-editable-preview:focus-visible {
|
|
65
|
+
border-color: var(--void-color-border-focus);
|
|
66
|
+
box-shadow: 0 0 0 1px var(--void-color-border-focus);
|
|
67
|
+
outline: none;
|
|
68
|
+
text-decoration: none;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.void-editable-placeholder {
|
|
72
|
+
color: var(--void-color-text-muted);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.void-editable-input {
|
|
76
|
+
padding: var(--void-space-1) var(--void-space-2);
|
|
77
|
+
background: var(--void-color-surface);
|
|
78
|
+
border: 1px solid var(--void-color-border);
|
|
79
|
+
border-radius: var(--void-control-radius);
|
|
80
|
+
color: var(--void-color-text);
|
|
81
|
+
font-family: inherit;
|
|
82
|
+
font-size: var(--void-text-sm);
|
|
83
|
+
line-height: var(--void-leading-normal);
|
|
84
|
+
transition: border-color var(--void-duration-fast) var(--void-ease-in-out),
|
|
85
|
+
box-shadow var(--void-duration-fast) var(--void-ease-in-out);
|
|
86
|
+
outline: none;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.void-editable-input:hover {
|
|
90
|
+
border-color: var(--void-color-border-strong);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.void-editable-input:focus {
|
|
94
|
+
border-color: var(--void-color-border-focus);
|
|
95
|
+
box-shadow: 0 0 0 1px var(--void-color-border-focus);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
void-editable:not([editing]) .void-editable-input {
|
|
99
|
+
display: none;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
void-editable:not([editing]) .void-editable-preview {
|
|
103
|
+
display: inline-flex;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
void-editable[editing] .void-editable-preview {
|
|
107
|
+
display: none;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
void-editable[editing] .void-editable-input {
|
|
111
|
+
display: inline-flex;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
void-editable[disabled] .void-editable-preview {
|
|
115
|
+
cursor: default;
|
|
116
|
+
opacity: .5;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
void-editable[disabled] .void-editable-preview:hover {
|
|
120
|
+
text-decoration: underline dotted var(--void-color-border-focus);
|
|
121
|
+
background: none;
|
|
122
|
+
border-color: #0000;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
void-editable[size="sm"] .void-editable-preview, void-editable[size="sm"] .void-editable-input {
|
|
126
|
+
font-size: var(--void-text-xs);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
void-editable[size="sm"] .void-editable-input {
|
|
130
|
+
padding: var(--void-space-0h) var(--void-space-1);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
void-editable[size="lg"] .void-editable-preview, void-editable[size="lg"] .void-editable-input {
|
|
134
|
+
font-size: var(--void-text-base);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
void-editable[size="lg"] .void-editable-input {
|
|
138
|
+
padding: var(--void-space-2) var(--void-space-3);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer theme,base,components.void.reset,components.void.tokens,components.void.themes,components.void.type,components.void.components,components.void.patterns,components.void.skins,components.void.a11y,utilities;@layer components.void.reset{:where(:is(void-editable),:is(void-editable) *),:where(:is(void-editable),:is(void-editable) *):before,:where(:is(void-editable),:is(void-editable) *):after{box-sizing:border-box;margin:0;padding:0}:where(:is(void-editable),:is(void-editable) *)[hidden]:not([hidden=until-found]){display:none!important}:where(:is(void-editable)){color-scheme:var(--void-color-scheme)}:where(:is(void-editable) :is(img,picture,video,canvas,svg)){max-width:100%;display:block}:where(:is(void-editable) :is(input,button,textarea,select)){font:inherit}:where(:is(void-editable) :is(a)){color:inherit;text-underline-offset:.2em;text-decoration-thickness:1px}:where(:is(void-editable) :is(a[href])){text-decoration-line:underline}}@layer components.void.components{void-editable{font-family:var(--void-font-sans);display:inline-flex}.void-editable-preview{padding:var(--void-space-0h) var(--void-space-1);border-radius:var(--void-control-radius);color:var(--void-color-text);cursor:text;text-decoration:underline dotted var(--void-color-border-focus);text-underline-offset:var(--void-space-1);transition:border-color var(--void-duration-fast) var(--void-ease-in-out), background var(--void-duration-fast) var(--void-ease-in-out);border:1px solid #0000;display:inline}.void-editable-preview:hover{border-color:var(--void-color-border-focus);background:var(--void-color-surface);border-style:dashed;text-decoration:none}.void-editable-preview:focus-visible{border-color:var(--void-color-border-focus);box-shadow:0 0 0 1px var(--void-color-border-focus);outline:none;text-decoration:none}.void-editable-placeholder{color:var(--void-color-text-muted)}.void-editable-input{padding:var(--void-space-1) var(--void-space-2);background:var(--void-color-surface);border:1px solid var(--void-color-border);border-radius:var(--void-control-radius);color:var(--void-color-text);font-family:inherit;font-size:var(--void-text-sm);line-height:var(--void-leading-normal);transition:border-color var(--void-duration-fast) var(--void-ease-in-out), box-shadow var(--void-duration-fast) var(--void-ease-in-out);outline:none}.void-editable-input:hover{border-color:var(--void-color-border-strong)}.void-editable-input:focus{border-color:var(--void-color-border-focus);box-shadow:0 0 0 1px var(--void-color-border-focus)}void-editable:not([editing]) .void-editable-input{display:none}void-editable:not([editing]) .void-editable-preview{display:inline-flex}void-editable[editing] .void-editable-preview{display:none}void-editable[editing] .void-editable-input{display:inline-flex}void-editable[disabled] .void-editable-preview{cursor:default;opacity:.5}void-editable[disabled] .void-editable-preview:hover{text-decoration:underline dotted var(--void-color-border-focus);background:0 0;border-color:#0000}void-editable[size=sm] .void-editable-preview,void-editable[size=sm] .void-editable-input{font-size:var(--void-text-xs)}void-editable[size=sm] .void-editable-input{padding:var(--void-space-0h) var(--void-space-1)}void-editable[size=lg] .void-editable-preview,void-editable[size=lg] .void-editable-input{font-size:var(--void-text-base)}void-editable[size=lg] .void-editable-input{padding:var(--void-space-2) var(--void-space-3)}}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
@layer theme, base, components.void.reset, components.void.tokens, components.void.themes, components.void.type, components.void.components, components.void.patterns, components.void.skins, components.void.a11y, utilities;
|
|
2
|
+
|
|
3
|
+
@layer components.void.reset {
|
|
4
|
+
:where(:is(void-error-fallback, void-error-fallback-actions, void-error-fallback-description, void-error-fallback-title), :is(void-error-fallback, void-error-fallback-actions, void-error-fallback-description, void-error-fallback-title) *), :where(:is(void-error-fallback, void-error-fallback-actions, void-error-fallback-description, void-error-fallback-title), :is(void-error-fallback, void-error-fallback-actions, void-error-fallback-description, void-error-fallback-title) *):before, :where(:is(void-error-fallback, void-error-fallback-actions, void-error-fallback-description, void-error-fallback-title), :is(void-error-fallback, void-error-fallback-actions, void-error-fallback-description, void-error-fallback-title) *):after {
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
margin: 0;
|
|
7
|
+
padding: 0;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
:where(:is(void-error-fallback, void-error-fallback-actions, void-error-fallback-description, void-error-fallback-title), :is(void-error-fallback, void-error-fallback-actions, void-error-fallback-description, void-error-fallback-title) *)[hidden]:not([hidden="until-found"]) {
|
|
11
|
+
display: none !important;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:where(:is(void-error-fallback, void-error-fallback-actions, void-error-fallback-description, void-error-fallback-title)) {
|
|
15
|
+
color-scheme: var(--void-color-scheme);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
:where(:is(void-error-fallback, void-error-fallback-actions, void-error-fallback-description, void-error-fallback-title) :is(img, picture, video, canvas, svg)) {
|
|
19
|
+
max-width: 100%;
|
|
20
|
+
display: block;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
:where(:is(void-error-fallback, void-error-fallback-actions, void-error-fallback-description, void-error-fallback-title) :is(input, button, textarea, select)) {
|
|
24
|
+
font: inherit;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
:where(:is(void-error-fallback, void-error-fallback-actions, void-error-fallback-description, void-error-fallback-title) :is(a)) {
|
|
28
|
+
color: inherit;
|
|
29
|
+
text-underline-offset: .2em;
|
|
30
|
+
text-decoration-thickness: 1px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:where(:is(void-error-fallback, void-error-fallback-actions, void-error-fallback-description, void-error-fallback-title) :is(a[href])) {
|
|
34
|
+
text-decoration-line: underline;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@layer components.void.components {
|
|
39
|
+
void-error-fallback {
|
|
40
|
+
justify-content: center;
|
|
41
|
+
align-items: center;
|
|
42
|
+
gap: var(--void-space-3);
|
|
43
|
+
padding: var(--void-space-8);
|
|
44
|
+
text-align: center;
|
|
45
|
+
font-family: var(--void-font-sans);
|
|
46
|
+
flex-direction: column;
|
|
47
|
+
display: flex;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
void-error-fallback:before {
|
|
51
|
+
content: "⚠";
|
|
52
|
+
content: "⚠" / "";
|
|
53
|
+
font-size: var(--void-text-3xl);
|
|
54
|
+
color: var(--void-color-error);
|
|
55
|
+
opacity: .7;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
void-error-fallback[hide-icon]:before {
|
|
59
|
+
display: none;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
void-error-fallback > * {
|
|
63
|
+
max-width: 24rem;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
void-error-fallback-title {
|
|
67
|
+
font-family: var(--void-type-heading-family);
|
|
68
|
+
font-size: var(--void-type-heading-size);
|
|
69
|
+
line-height: var(--void-type-heading-leading);
|
|
70
|
+
font-weight: var(--void-type-heading-weight);
|
|
71
|
+
letter-spacing: var(--void-type-heading-tracking);
|
|
72
|
+
color: var(--void-type-heading-color);
|
|
73
|
+
display: block;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
void-error-fallback-description {
|
|
77
|
+
font-size: var(--void-type-body-size);
|
|
78
|
+
color: var(--void-color-text-secondary);
|
|
79
|
+
display: block;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
void-error-fallback-actions {
|
|
83
|
+
justify-content: center;
|
|
84
|
+
align-items: center;
|
|
85
|
+
gap: var(--void-space-2);
|
|
86
|
+
flex-wrap: wrap;
|
|
87
|
+
display: flex;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
void-error-fallback-actions > button {
|
|
91
|
+
min-height: var(--void-control-height);
|
|
92
|
+
padding: 0 calc(var(--void-control-padding) * 1.25);
|
|
93
|
+
border: 1px solid var(--void-color-border-control);
|
|
94
|
+
border-radius: var(--void-radius-md);
|
|
95
|
+
font-size: var(--void-control-text);
|
|
96
|
+
font-weight: var(--void-weight-medium);
|
|
97
|
+
font-family: var(--void-font-sans);
|
|
98
|
+
color: var(--void-color-text);
|
|
99
|
+
cursor: pointer;
|
|
100
|
+
transition: background var(--void-duration-fast) var(--void-ease-in-out),
|
|
101
|
+
border-color var(--void-duration-fast) var(--void-ease-in-out);
|
|
102
|
+
background: none;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
void-error-fallback-actions > button:hover {
|
|
106
|
+
background: var(--void-color-bg-hover);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
void-error-fallback-actions > button:focus-visible {
|
|
110
|
+
outline: var(--void-focus-ring-width) solid var(--void-focus-ring-color);
|
|
111
|
+
outline-offset: var(--void-focus-ring-offset);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
void-error-fallback:not(:defined):empty:after {
|
|
115
|
+
content: attr(heading);
|
|
116
|
+
font-family: var(--void-type-heading-family);
|
|
117
|
+
font-size: var(--void-type-heading-size);
|
|
118
|
+
line-height: var(--void-type-heading-leading);
|
|
119
|
+
font-weight: var(--void-type-heading-weight);
|
|
120
|
+
letter-spacing: var(--void-type-heading-tracking);
|
|
121
|
+
color: var(--void-type-heading-color);
|
|
122
|
+
display: block;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
void-error-fallback:not(:defined):empty:not([heading]):after {
|
|
126
|
+
content: "Something went wrong";
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer theme,base,components.void.reset,components.void.tokens,components.void.themes,components.void.type,components.void.components,components.void.patterns,components.void.skins,components.void.a11y,utilities;@layer components.void.reset{:where(:is(void-error-fallback,void-error-fallback-actions,void-error-fallback-description,void-error-fallback-title),:is(void-error-fallback,void-error-fallback-actions,void-error-fallback-description,void-error-fallback-title) *),:where(:is(void-error-fallback,void-error-fallback-actions,void-error-fallback-description,void-error-fallback-title),:is(void-error-fallback,void-error-fallback-actions,void-error-fallback-description,void-error-fallback-title) *):before,:where(:is(void-error-fallback,void-error-fallback-actions,void-error-fallback-description,void-error-fallback-title),:is(void-error-fallback,void-error-fallback-actions,void-error-fallback-description,void-error-fallback-title) *):after{box-sizing:border-box;margin:0;padding:0}:where(:is(void-error-fallback,void-error-fallback-actions,void-error-fallback-description,void-error-fallback-title),:is(void-error-fallback,void-error-fallback-actions,void-error-fallback-description,void-error-fallback-title) *)[hidden]:not([hidden=until-found]){display:none!important}:where(:is(void-error-fallback,void-error-fallback-actions,void-error-fallback-description,void-error-fallback-title)){color-scheme:var(--void-color-scheme)}:where(:is(void-error-fallback,void-error-fallback-actions,void-error-fallback-description,void-error-fallback-title) :is(img,picture,video,canvas,svg)){max-width:100%;display:block}:where(:is(void-error-fallback,void-error-fallback-actions,void-error-fallback-description,void-error-fallback-title) :is(input,button,textarea,select)){font:inherit}:where(:is(void-error-fallback,void-error-fallback-actions,void-error-fallback-description,void-error-fallback-title) :is(a)){color:inherit;text-underline-offset:.2em;text-decoration-thickness:1px}:where(:is(void-error-fallback,void-error-fallback-actions,void-error-fallback-description,void-error-fallback-title) :is(a[href])){text-decoration-line:underline}}@layer components.void.components{void-error-fallback{justify-content:center;align-items:center;gap:var(--void-space-3);padding:var(--void-space-8);text-align:center;font-family:var(--void-font-sans);flex-direction:column;display:flex}void-error-fallback:before{content:"⚠";content:"⚠" / "";font-size:var(--void-text-3xl);color:var(--void-color-error);opacity:.7}void-error-fallback[hide-icon]:before{display:none}void-error-fallback>*{max-width:24rem}void-error-fallback-title{font-family:var(--void-type-heading-family);font-size:var(--void-type-heading-size);line-height:var(--void-type-heading-leading);font-weight:var(--void-type-heading-weight);letter-spacing:var(--void-type-heading-tracking);color:var(--void-type-heading-color);display:block}void-error-fallback-description{font-size:var(--void-type-body-size);color:var(--void-color-text-secondary);display:block}void-error-fallback-actions{justify-content:center;align-items:center;gap:var(--void-space-2);flex-wrap:wrap;display:flex}void-error-fallback-actions>button{min-height:var(--void-control-height);padding:0 calc(var(--void-control-padding) * 1.25);border:1px solid var(--void-color-border-control);border-radius:var(--void-radius-md);font-size:var(--void-control-text);font-weight:var(--void-weight-medium);font-family:var(--void-font-sans);color:var(--void-color-text);cursor:pointer;transition:background var(--void-duration-fast) var(--void-ease-in-out), border-color var(--void-duration-fast) var(--void-ease-in-out);background:0 0}void-error-fallback-actions>button:hover{background:var(--void-color-bg-hover)}void-error-fallback-actions>button:focus-visible{outline:var(--void-focus-ring-width) solid var(--void-focus-ring-color);outline-offset:var(--void-focus-ring-offset)}void-error-fallback:not(:defined):empty:after{content:attr(heading);font-family:var(--void-type-heading-family);font-size:var(--void-type-heading-size);line-height:var(--void-type-heading-leading);font-weight:var(--void-type-heading-weight);letter-spacing:var(--void-type-heading-tracking);color:var(--void-type-heading-color);display:block}void-error-fallback:not(:defined):empty:not([heading]):after{content:"Something went wrong"}}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
@layer theme, base, components.void.reset, components.void.tokens, components.void.themes, components.void.type, components.void.components, components.void.patterns, components.void.skins, components.void.a11y, utilities;
|
|
2
|
+
|
|
3
|
+
@layer components.void.reset {
|
|
4
|
+
:where(:is(void-field), :is(void-field) *), :where(:is(void-field), :is(void-field) *):before, :where(:is(void-field), :is(void-field) *):after {
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
margin: 0;
|
|
7
|
+
padding: 0;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
:where(:is(void-field), :is(void-field) *)[hidden]:not([hidden="until-found"]) {
|
|
11
|
+
display: none !important;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:where(:is(void-field)) {
|
|
15
|
+
color-scheme: var(--void-color-scheme);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
:where(:is(void-field) :is(img, picture, video, canvas, svg)) {
|
|
19
|
+
max-width: 100%;
|
|
20
|
+
display: block;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
:where(:is(void-field) :is(input, button, textarea, select)) {
|
|
24
|
+
font: inherit;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
:where(:is(void-field) :is(a)) {
|
|
28
|
+
color: inherit;
|
|
29
|
+
text-underline-offset: .2em;
|
|
30
|
+
text-decoration-thickness: 1px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:where(:is(void-field) :is(a[href])) {
|
|
34
|
+
text-decoration-line: underline;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@layer components.void.components {
|
|
39
|
+
void-field {
|
|
40
|
+
gap: var(--void-space-1h);
|
|
41
|
+
font-family: var(--void-font-sans);
|
|
42
|
+
flex-direction: column;
|
|
43
|
+
display: flex;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.void-field-label {
|
|
47
|
+
font-size: var(--void-control-text-sm);
|
|
48
|
+
line-height: var(--void-leading-normal);
|
|
49
|
+
font-weight: var(--void-weight-medium);
|
|
50
|
+
color: var(--void-color-text);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.void-field-required {
|
|
54
|
+
color: var(--void-color-error);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.void-field-control {
|
|
58
|
+
flex-direction: column;
|
|
59
|
+
display: flex;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.void-field-helper {
|
|
63
|
+
font-family: var(--void-type-caption-family);
|
|
64
|
+
font-size: var(--void-type-caption-size);
|
|
65
|
+
line-height: var(--void-type-caption-leading);
|
|
66
|
+
font-weight: var(--void-type-caption-weight);
|
|
67
|
+
color: var(--void-type-caption-color);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.void-field-error {
|
|
71
|
+
font-size: var(--void-type-caption-size);
|
|
72
|
+
line-height: var(--void-type-caption-leading);
|
|
73
|
+
color: var(--void-color-error);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
void-field[error]:not([error=""]) input, void-field[error]:not([error=""]) textarea, void-field[error]:not([error=""]) select {
|
|
77
|
+
border-color: var(--void-color-error);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
void-field[error]:not([error=""]) input:focus, void-field[error]:not([error=""]) textarea:focus, void-field[error]:not([error=""]) select:focus {
|
|
81
|
+
box-shadow: 0 0 0 1px var(--void-color-error);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
void-field:not(:defined)[label]:before {
|
|
85
|
+
content: attr(label);
|
|
86
|
+
font-size: var(--void-text-sm);
|
|
87
|
+
font-weight: var(--void-weight-medium);
|
|
88
|
+
color: var(--void-color-text);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
void-field:not(:defined)[helper]:not([error]:not([error=""])):after {
|
|
92
|
+
content: attr(helper);
|
|
93
|
+
font-size: var(--void-text-xs);
|
|
94
|
+
color: var(--void-color-text-muted);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
void-field:not(:defined)[error]:not([error=""]):after {
|
|
98
|
+
content: attr(error);
|
|
99
|
+
font-size: var(--void-text-xs);
|
|
100
|
+
color: var(--void-color-error);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer theme,base,components.void.reset,components.void.tokens,components.void.themes,components.void.type,components.void.components,components.void.patterns,components.void.skins,components.void.a11y,utilities;@layer components.void.reset{:where(:is(void-field),:is(void-field) *),:where(:is(void-field),:is(void-field) *):before,:where(:is(void-field),:is(void-field) *):after{box-sizing:border-box;margin:0;padding:0}:where(:is(void-field),:is(void-field) *)[hidden]:not([hidden=until-found]){display:none!important}:where(:is(void-field)){color-scheme:var(--void-color-scheme)}:where(:is(void-field) :is(img,picture,video,canvas,svg)){max-width:100%;display:block}:where(:is(void-field) :is(input,button,textarea,select)){font:inherit}:where(:is(void-field) :is(a)){color:inherit;text-underline-offset:.2em;text-decoration-thickness:1px}:where(:is(void-field) :is(a[href])){text-decoration-line:underline}}@layer components.void.components{void-field{gap:var(--void-space-1h);font-family:var(--void-font-sans);flex-direction:column;display:flex}.void-field-label{font-size:var(--void-control-text-sm);line-height:var(--void-leading-normal);font-weight:var(--void-weight-medium);color:var(--void-color-text)}.void-field-required{color:var(--void-color-error)}.void-field-control{flex-direction:column;display:flex}.void-field-helper{font-family:var(--void-type-caption-family);font-size:var(--void-type-caption-size);line-height:var(--void-type-caption-leading);font-weight:var(--void-type-caption-weight);color:var(--void-type-caption-color)}.void-field-error{font-size:var(--void-type-caption-size);line-height:var(--void-type-caption-leading);color:var(--void-color-error)}void-field[error]:not([error=""]) input,void-field[error]:not([error=""]) textarea,void-field[error]:not([error=""]) select{border-color:var(--void-color-error)}void-field[error]:not([error=""]) input:focus,void-field[error]:not([error=""]) textarea:focus,void-field[error]:not([error=""]) select:focus{box-shadow:0 0 0 1px var(--void-color-error)}void-field:not(:defined)[label]:before{content:attr(label);font-size:var(--void-text-sm);font-weight:var(--void-weight-medium);color:var(--void-color-text)}void-field:not(:defined)[helper]:not([error]:not([error=""])):after{content:attr(helper);font-size:var(--void-text-xs);color:var(--void-color-text-muted)}void-field:not(:defined)[error]:not([error=""]):after{content:attr(error);font-size:var(--void-text-xs);color:var(--void-color-error)}}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
@layer theme, base, components.void.reset, components.void.tokens, components.void.themes, components.void.type, components.void.components, components.void.patterns, components.void.skins, components.void.a11y, utilities;
|
|
2
|
+
|
|
3
|
+
@layer components.void.reset {
|
|
4
|
+
:where(:is(void-file-upload), :is(void-file-upload) *), :where(:is(void-file-upload), :is(void-file-upload) *):before, :where(:is(void-file-upload), :is(void-file-upload) *):after {
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
margin: 0;
|
|
7
|
+
padding: 0;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
:where(:is(void-file-upload), :is(void-file-upload) *)[hidden]:not([hidden="until-found"]) {
|
|
11
|
+
display: none !important;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:where(:is(void-file-upload)) {
|
|
15
|
+
color-scheme: var(--void-color-scheme);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
:where(:is(void-file-upload) :is(img, picture, video, canvas, svg)) {
|
|
19
|
+
max-width: 100%;
|
|
20
|
+
display: block;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
:where(:is(void-file-upload) :is(input, button, textarea, select)) {
|
|
24
|
+
font: inherit;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
:where(:is(void-file-upload) :is(a)) {
|
|
28
|
+
color: inherit;
|
|
29
|
+
text-underline-offset: .2em;
|
|
30
|
+
text-decoration-thickness: 1px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:where(:is(void-file-upload) :is(a[href])) {
|
|
34
|
+
text-decoration-line: underline;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@layer components.void.components {
|
|
39
|
+
void-file-upload {
|
|
40
|
+
gap: var(--void-space-2);
|
|
41
|
+
font-family: var(--void-font-sans);
|
|
42
|
+
flex-direction: column;
|
|
43
|
+
display: flex;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.void-file-upload-input {
|
|
47
|
+
display: none;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.void-file-upload-dropzone {
|
|
51
|
+
border: 2px dashed var(--void-color-border);
|
|
52
|
+
border-radius: var(--void-radius-lg);
|
|
53
|
+
padding: var(--void-space-6);
|
|
54
|
+
text-align: center;
|
|
55
|
+
cursor: pointer;
|
|
56
|
+
transition: border-color var(--void-duration-fast) var(--void-ease-in-out),
|
|
57
|
+
background-color var(--void-duration-fast) var(--void-ease-in-out);
|
|
58
|
+
outline: none;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.void-file-upload-dropzone:hover {
|
|
62
|
+
border-color: var(--void-color-border-strong);
|
|
63
|
+
background-color: var(--void-color-bg-hover);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.void-file-upload-dropzone:focus-visible {
|
|
67
|
+
border-color: var(--void-color-border-focus);
|
|
68
|
+
box-shadow: 0 0 0 1px var(--void-color-border-focus);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
void-file-upload[dragging] .void-file-upload-dropzone {
|
|
72
|
+
border-color: var(--void-color-accent);
|
|
73
|
+
background-color: color-mix(in srgb, var(--void-color-accent) 8%, transparent);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.void-file-upload-text {
|
|
77
|
+
font-size: var(--void-text-sm);
|
|
78
|
+
color: var(--void-color-text-muted);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.void-file-upload-browse {
|
|
82
|
+
color: var(--void-color-accent);
|
|
83
|
+
font-weight: var(--void-weight-medium);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.void-file-upload-files {
|
|
87
|
+
gap: var(--void-space-1);
|
|
88
|
+
flex-direction: column;
|
|
89
|
+
display: flex;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.void-file-upload-file {
|
|
93
|
+
padding: var(--void-space-2);
|
|
94
|
+
background-color: var(--void-color-bg-secondary);
|
|
95
|
+
border-radius: var(--void-radius-md);
|
|
96
|
+
font-size: var(--void-text-xs);
|
|
97
|
+
justify-content: space-between;
|
|
98
|
+
align-items: center;
|
|
99
|
+
display: flex;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.void-file-upload-filename {
|
|
103
|
+
color: var(--void-color-text-secondary);
|
|
104
|
+
text-overflow: ellipsis;
|
|
105
|
+
white-space: nowrap;
|
|
106
|
+
overflow: hidden;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.void-file-upload-remove {
|
|
110
|
+
appearance: none;
|
|
111
|
+
cursor: pointer;
|
|
112
|
+
color: var(--void-color-text-muted);
|
|
113
|
+
line-height: 1;
|
|
114
|
+
font-size: var(--void-text-sm);
|
|
115
|
+
transition: color var(--void-duration-fast) var(--void-ease-in-out);
|
|
116
|
+
background: none;
|
|
117
|
+
border: none;
|
|
118
|
+
flex-shrink: 0;
|
|
119
|
+
margin: 0;
|
|
120
|
+
padding: 0;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.void-file-upload-remove:hover {
|
|
124
|
+
color: var(--void-color-text);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.void-file-upload-remove:disabled {
|
|
128
|
+
cursor: not-allowed;
|
|
129
|
+
opacity: .5;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.void-file-upload-error {
|
|
133
|
+
color: var(--void-color-error);
|
|
134
|
+
font-size: var(--void-type-caption-size);
|
|
135
|
+
line-height: var(--void-type-caption-leading);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
void-file-upload[error]:not([error=""]) .void-file-upload-dropzone {
|
|
139
|
+
border-color: var(--void-color-error);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
void-file-upload[disabled] .void-file-upload-dropzone {
|
|
143
|
+
opacity: .5;
|
|
144
|
+
cursor: not-allowed;
|
|
145
|
+
pointer-events: none;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
void-file-upload:not(:defined) {
|
|
149
|
+
box-sizing: border-box;
|
|
150
|
+
border: 2px dashed var(--void-color-border);
|
|
151
|
+
border-radius: var(--void-radius-lg);
|
|
152
|
+
min-height: calc(var(--void-space-6) * 2 + var(--void-text-sm) * var(--void-leading-normal) + 4px);
|
|
153
|
+
display: block;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer theme,base,components.void.reset,components.void.tokens,components.void.themes,components.void.type,components.void.components,components.void.patterns,components.void.skins,components.void.a11y,utilities;@layer components.void.reset{:where(:is(void-file-upload),:is(void-file-upload) *),:where(:is(void-file-upload),:is(void-file-upload) *):before,:where(:is(void-file-upload),:is(void-file-upload) *):after{box-sizing:border-box;margin:0;padding:0}:where(:is(void-file-upload),:is(void-file-upload) *)[hidden]:not([hidden=until-found]){display:none!important}:where(:is(void-file-upload)){color-scheme:var(--void-color-scheme)}:where(:is(void-file-upload) :is(img,picture,video,canvas,svg)){max-width:100%;display:block}:where(:is(void-file-upload) :is(input,button,textarea,select)){font:inherit}:where(:is(void-file-upload) :is(a)){color:inherit;text-underline-offset:.2em;text-decoration-thickness:1px}:where(:is(void-file-upload) :is(a[href])){text-decoration-line:underline}}@layer components.void.components{void-file-upload{gap:var(--void-space-2);font-family:var(--void-font-sans);flex-direction:column;display:flex}.void-file-upload-input{display:none}.void-file-upload-dropzone{border:2px dashed var(--void-color-border);border-radius:var(--void-radius-lg);padding:var(--void-space-6);text-align:center;cursor:pointer;transition:border-color var(--void-duration-fast) var(--void-ease-in-out), background-color var(--void-duration-fast) var(--void-ease-in-out);outline:none}.void-file-upload-dropzone:hover{border-color:var(--void-color-border-strong);background-color:var(--void-color-bg-hover)}.void-file-upload-dropzone:focus-visible{border-color:var(--void-color-border-focus);box-shadow:0 0 0 1px var(--void-color-border-focus)}void-file-upload[dragging] .void-file-upload-dropzone{border-color:var(--void-color-accent);background-color:color-mix(in srgb, var(--void-color-accent) 8%, transparent)}.void-file-upload-text{font-size:var(--void-text-sm);color:var(--void-color-text-muted)}.void-file-upload-browse{color:var(--void-color-accent);font-weight:var(--void-weight-medium)}.void-file-upload-files{gap:var(--void-space-1);flex-direction:column;display:flex}.void-file-upload-file{padding:var(--void-space-2);background-color:var(--void-color-bg-secondary);border-radius:var(--void-radius-md);font-size:var(--void-text-xs);justify-content:space-between;align-items:center;display:flex}.void-file-upload-filename{color:var(--void-color-text-secondary);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.void-file-upload-remove{appearance:none;cursor:pointer;color:var(--void-color-text-muted);line-height:1;font-size:var(--void-text-sm);transition:color var(--void-duration-fast) var(--void-ease-in-out);background:0 0;border:none;flex-shrink:0;margin:0;padding:0}.void-file-upload-remove:hover{color:var(--void-color-text)}.void-file-upload-remove:disabled{cursor:not-allowed;opacity:.5}.void-file-upload-error{color:var(--void-color-error);font-size:var(--void-type-caption-size);line-height:var(--void-type-caption-leading)}void-file-upload[error]:not([error=""]) .void-file-upload-dropzone{border-color:var(--void-color-error)}void-file-upload[disabled] .void-file-upload-dropzone{opacity:.5;cursor:not-allowed;pointer-events:none}void-file-upload:not(:defined){box-sizing:border-box;border:2px dashed var(--void-color-border);border-radius:var(--void-radius-lg);min-height:calc(var(--void-space-6) * 2 + var(--void-text-sm) * var(--void-leading-normal) + 4px);display:block}}
|