@voidable/theme 0.7.0 → 0.8.0
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/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
package/src/components/gauge.css
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
/* ============================================================
|
|
2
2
|
void-gauge — light DOM SVG, theme-driven
|
|
3
3
|
============================================================ */
|
|
4
|
+
/* @tokens void-gauge
|
|
5
|
+
--void-gauge-size Setting: the largest width of the gauge. It fills its container up to this and shrinks with it below; the height follows from the arc. */
|
|
4
6
|
|
|
7
|
+
/* Fills its container up to a ceiling, like the donut; the height comes
|
|
8
|
+
from the SVG's own proportions (full, three-quarter or half circle). */
|
|
5
9
|
void-gauge {
|
|
6
|
-
display:
|
|
10
|
+
display: block;
|
|
11
|
+
box-sizing: border-box;
|
|
12
|
+
inline-size: 100%;
|
|
13
|
+
max-inline-size: var(--void-gauge-size, 13.75rem);
|
|
7
14
|
font-family: var(--void-font-mono);
|
|
8
15
|
color: var(--void-color-text);
|
|
9
16
|
}
|
|
@@ -11,12 +18,13 @@ void-gauge {
|
|
|
11
18
|
void-gauge svg {
|
|
12
19
|
display: block;
|
|
13
20
|
width: 100%;
|
|
14
|
-
height:
|
|
21
|
+
height: auto;
|
|
15
22
|
overflow: visible;
|
|
16
23
|
}
|
|
17
24
|
|
|
18
25
|
/* Background track — the empty arc */
|
|
19
26
|
void-gauge .void-gauge-track {
|
|
27
|
+
stroke-width: var(--gauge-stroke-width);
|
|
20
28
|
fill: none;
|
|
21
29
|
stroke: var(--void-chart-grid);
|
|
22
30
|
stroke-linecap: round;
|
|
@@ -26,6 +34,7 @@ void-gauge .void-gauge-track {
|
|
|
26
34
|
meet cleanly without overlapping rounded "blobs" at the boundaries.
|
|
27
35
|
This base rule covers the 'filled' variant (stroked centerline arcs). */
|
|
28
36
|
void-gauge .void-gauge-zone {
|
|
37
|
+
stroke-width: var(--gauge-stroke-width);
|
|
29
38
|
fill: none;
|
|
30
39
|
stroke: var(--zone-color, var(--void-color-text-muted));
|
|
31
40
|
stroke-linecap: butt;
|
|
@@ -57,6 +66,7 @@ void-gauge .void-gauge-zone-cap {
|
|
|
57
66
|
a soft leading and trailing edge. Segments overlay on top with butt
|
|
58
67
|
caps; the value-fill's round caps remain visible at the start/end. */
|
|
59
68
|
void-gauge .void-gauge-value {
|
|
69
|
+
stroke-width: var(--gauge-stroke-width);
|
|
60
70
|
fill: none;
|
|
61
71
|
stroke: var(--value-color, var(--void-color-accent));
|
|
62
72
|
stroke-linecap: round;
|
|
@@ -68,6 +78,7 @@ void-gauge .void-gauge-value {
|
|
|
68
78
|
(.void-gauge-segment-cap) painted underneath in the first/last
|
|
69
79
|
segment's color. */
|
|
70
80
|
void-gauge .void-gauge-segment {
|
|
81
|
+
stroke-width: var(--gauge-stroke-width);
|
|
71
82
|
fill: none;
|
|
72
83
|
stroke: var(--segment-color, var(--void-color-accent));
|
|
73
84
|
stroke-linecap: butt;
|
|
@@ -90,26 +101,26 @@ void-gauge .void-gauge-segment-cap {
|
|
|
90
101
|
void-gauge[variant="outline"] .void-gauge-value {
|
|
91
102
|
fill: color-mix(in srgb, var(--value-color, var(--void-color-accent)) 14%, transparent);
|
|
92
103
|
stroke: color-mix(in srgb, var(--value-color, var(--void-color-accent)) 36%, transparent);
|
|
93
|
-
stroke-width:
|
|
104
|
+
stroke-width: var(--void-chart-stroke-hairline) !important;
|
|
94
105
|
}
|
|
95
106
|
|
|
96
107
|
void-gauge[variant="outline"] .void-gauge-segment {
|
|
97
108
|
fill: color-mix(in srgb, var(--segment-color, var(--void-color-accent)) 14%, transparent);
|
|
98
109
|
stroke: color-mix(in srgb, var(--segment-color, var(--void-color-accent)) 36%, transparent);
|
|
99
|
-
stroke-width:
|
|
110
|
+
stroke-width: var(--void-chart-stroke-hairline) !important;
|
|
100
111
|
}
|
|
101
112
|
|
|
102
113
|
void-gauge[variant="outline"] .void-gauge-segment-cap {
|
|
103
114
|
fill: color-mix(in srgb, var(--segment-color, var(--void-color-accent)) 14%, transparent);
|
|
104
115
|
stroke: color-mix(in srgb, var(--segment-color, var(--void-color-accent)) 36%, transparent);
|
|
105
|
-
stroke-width:
|
|
116
|
+
stroke-width: var(--void-chart-stroke-hairline);
|
|
106
117
|
}
|
|
107
118
|
|
|
108
119
|
/* 'wireframe' variant — thin stroke, no opacity change */
|
|
109
120
|
void-gauge[variant="wireframe"] .void-gauge-track,
|
|
110
121
|
void-gauge[variant="wireframe"] .void-gauge-value,
|
|
111
122
|
void-gauge[variant="wireframe"] .void-gauge-segment {
|
|
112
|
-
stroke-width:
|
|
123
|
+
stroke-width: var(--void-chart-stroke-thin) !important;
|
|
113
124
|
}
|
|
114
125
|
|
|
115
126
|
/* Gauges are inherently arc shapes — sharp/curvy doesn't apply.
|
|
@@ -117,35 +128,36 @@ void-gauge[variant="wireframe"] .void-gauge-segment {
|
|
|
117
128
|
|
|
118
129
|
/* Tick marks — speedometer-style indicator lines outside the arc band */
|
|
119
130
|
void-gauge .void-gauge-tick {
|
|
120
|
-
stroke: var(--void-chart-axis
|
|
131
|
+
stroke: var(--void-chart-axis);
|
|
121
132
|
stroke-linecap: butt;
|
|
122
133
|
}
|
|
123
134
|
|
|
124
135
|
void-gauge .void-gauge-tick-minor {
|
|
125
|
-
stroke-width:
|
|
136
|
+
stroke-width: var(--void-chart-stroke-hairline);
|
|
126
137
|
opacity: 0.5;
|
|
127
138
|
}
|
|
128
139
|
|
|
129
140
|
void-gauge .void-gauge-tick-major {
|
|
130
|
-
stroke-width:
|
|
141
|
+
stroke-width: var(--void-chart-stroke-medium);
|
|
131
142
|
opacity: 1;
|
|
132
143
|
}
|
|
133
144
|
|
|
134
145
|
/* Center value label */
|
|
135
146
|
void-gauge .void-gauge-center-value {
|
|
136
|
-
font-family: var(--void-
|
|
147
|
+
font-family: var(--void-type-value-family);
|
|
137
148
|
font-size: var(--void-text-2xl);
|
|
138
|
-
font-weight: var(--void-weight
|
|
139
|
-
|
|
140
|
-
|
|
149
|
+
font-weight: var(--void-type-value-weight);
|
|
150
|
+
font-variant-numeric: var(--void-type-value-numeric);
|
|
151
|
+
fill: var(--void-type-value-color);
|
|
152
|
+
letter-spacing: var(--void-type-value-tracking);
|
|
141
153
|
}
|
|
142
154
|
|
|
143
155
|
/* Center unit suffix */
|
|
144
156
|
void-gauge .void-gauge-center-unit {
|
|
145
|
-
font-family: var(--void-
|
|
146
|
-
font-size: var(--void-
|
|
147
|
-
fill: var(--void-
|
|
148
|
-
letter-spacing: var(--void-tracking
|
|
157
|
+
font-family: var(--void-type-unit-family);
|
|
158
|
+
font-size: var(--void-type-unit-size);
|
|
159
|
+
fill: var(--void-type-unit-color);
|
|
160
|
+
letter-spacing: var(--void-type-unit-tracking);
|
|
149
161
|
}
|
|
150
162
|
|
|
151
163
|
/* ── Hover tooltip (segments only) ───────────────────────────── */
|
|
@@ -157,16 +169,16 @@ void-gauge .void-gauge-segment {
|
|
|
157
169
|
void-gauge .void-gauge-tooltip-bg {
|
|
158
170
|
fill: var(--void-color-bg-elevated);
|
|
159
171
|
stroke: var(--void-color-border);
|
|
160
|
-
stroke-width:
|
|
172
|
+
stroke-width: var(--void-chart-stroke-hairline);
|
|
161
173
|
}
|
|
162
174
|
|
|
163
175
|
void-gauge .void-gauge-tooltip-name {
|
|
164
|
-
font-family: var(--void-
|
|
165
|
-
font-size: var(--void-
|
|
166
|
-
font-weight: var(--void-weight
|
|
176
|
+
font-family: var(--void-type-label-family);
|
|
177
|
+
font-size: var(--void-type-label-size);
|
|
178
|
+
font-weight: var(--void-type-label-weight);
|
|
167
179
|
fill: var(--void-color-text);
|
|
168
|
-
text-transform:
|
|
169
|
-
letter-spacing: var(--void-tracking
|
|
180
|
+
text-transform: var(--void-type-label-case);
|
|
181
|
+
letter-spacing: var(--void-type-label-tracking);
|
|
170
182
|
}
|
|
171
183
|
|
|
172
184
|
void-gauge .void-gauge-tooltip-value {
|
|
@@ -4,7 +4,7 @@ void-hamburger {
|
|
|
4
4
|
justify-content: center;
|
|
5
5
|
cursor: pointer;
|
|
6
6
|
padding: var(--void-space-2);
|
|
7
|
-
border-radius: var(--void-radius
|
|
7
|
+
border-radius: var(--void-control-radius);
|
|
8
8
|
background: transparent;
|
|
9
9
|
border: none;
|
|
10
10
|
user-select: none;
|
|
@@ -15,8 +15,8 @@ void-hamburger:hover {
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
void-hamburger:focus-visible {
|
|
18
|
-
outline:
|
|
19
|
-
outline-offset:
|
|
18
|
+
outline: var(--void-focus-ring-width) solid var(--void-focus-ring-color);
|
|
19
|
+
outline-offset: var(--void-focus-ring-offset);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
.void-hamburger-lines {
|
|
@@ -36,15 +36,15 @@ void-hamburger:focus-visible {
|
|
|
36
36
|
opacity var(--void-duration-fast) var(--void-ease-in-out);
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
void-hamburger[
|
|
39
|
+
void-hamburger[open] .void-hamburger-line:nth-child(1) {
|
|
40
40
|
transform: rotate(45deg) translate(0.375rem, 0.375rem);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
void-hamburger[
|
|
43
|
+
void-hamburger[open] .void-hamburger-line:nth-child(2) {
|
|
44
44
|
opacity: 0;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
void-hamburger[
|
|
47
|
+
void-hamburger[open] .void-hamburger-line:nth-child(3) {
|
|
48
48
|
transform: rotate(-45deg) translate(0.375rem, -0.375rem);
|
|
49
49
|
}
|
|
50
50
|
|
|
@@ -53,11 +53,11 @@ void-hamburger[size="sm"] .void-hamburger-lines {
|
|
|
53
53
|
gap: 3px;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
void-hamburger[size="sm"][
|
|
56
|
+
void-hamburger[size="sm"][open] .void-hamburger-line:nth-child(1) {
|
|
57
57
|
transform: rotate(45deg) translate(0.3rem, 0.3rem);
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
void-hamburger[size="sm"][
|
|
60
|
+
void-hamburger[size="sm"][open] .void-hamburger-line:nth-child(3) {
|
|
61
61
|
transform: rotate(-45deg) translate(0.3rem, -0.3rem);
|
|
62
62
|
}
|
|
63
63
|
|
|
@@ -66,10 +66,10 @@ void-hamburger[size="lg"] .void-hamburger-lines {
|
|
|
66
66
|
gap: 5px;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
void-hamburger[size="lg"][
|
|
69
|
+
void-hamburger[size="lg"][open] .void-hamburger-line:nth-child(1) {
|
|
70
70
|
transform: rotate(45deg) translate(0.4375rem, 0.4375rem);
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
void-hamburger[size="lg"][
|
|
73
|
+
void-hamburger[size="lg"][open] .void-hamburger-line:nth-child(3) {
|
|
74
74
|
transform: rotate(-45deg) translate(0.4375rem, -0.4375rem);
|
|
75
75
|
}
|
|
@@ -1,124 +1,24 @@
|
|
|
1
1
|
void-hover-card {
|
|
2
|
-
position: relative;
|
|
3
2
|
display: inline-flex;
|
|
4
3
|
}
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
/* The trigger part wraps the control and draws nothing itself: the control is
|
|
6
|
+
the box (and the anchor's only in-flow content), before and after upgrade. */
|
|
7
|
+
void-hover-card-trigger {
|
|
8
|
+
display: contents;
|
|
8
9
|
}
|
|
9
10
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
/* A popover="manual" surface in the top layer; placement, gap, flipping and
|
|
12
|
+
transitions are shared (overlay.css). */
|
|
13
|
+
void-hover-card-content {
|
|
13
14
|
min-width: 16rem; /* token-ok: intrinsic card minimum width */
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
border
|
|
15
|
+
max-width: min(24rem, calc(100vw - 2 * var(--void-overlay-gap)));
|
|
16
|
+
background: var(--void-float-surface);
|
|
17
|
+
border: var(--void-float-border-width) solid var(--void-float-border);
|
|
18
|
+
border-radius: var(--void-float-radius);
|
|
17
19
|
padding: var(--void-space-4);
|
|
18
|
-
box-shadow:
|
|
20
|
+
box-shadow: var(--void-float-shadow);
|
|
19
21
|
font-family: var(--void-font-sans);
|
|
20
|
-
font-size: var(--void-
|
|
22
|
+
font-size: var(--void-type-body-size);
|
|
21
23
|
color: var(--void-color-text);
|
|
22
|
-
opacity: 0;
|
|
23
|
-
pointer-events: none;
|
|
24
|
-
transform: scale(0.96);
|
|
25
|
-
transition:
|
|
26
|
-
opacity var(--void-duration-fast) var(--void-ease-in-out),
|
|
27
|
-
transform var(--void-duration-fast) var(--void-ease-in-out);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
void-hover-card[open] .void-hover-card-body {
|
|
31
|
-
opacity: 1;
|
|
32
|
-
pointer-events: auto;
|
|
33
|
-
transform: scale(1);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/* Position: bottom (default) */
|
|
37
|
-
void-hover-card[position="bottom"] .void-hover-card-body,
|
|
38
|
-
void-hover-card:not([position]) .void-hover-card-body {
|
|
39
|
-
top: calc(100% + var(--void-space-2));
|
|
40
|
-
left: 50%;
|
|
41
|
-
transform: translateX(-50%) scale(0.96);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
void-hover-card[position="bottom"][open] .void-hover-card-body,
|
|
45
|
-
void-hover-card:not([position])[open] .void-hover-card-body {
|
|
46
|
-
transform: translateX(-50%) scale(1);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/* Position: top */
|
|
50
|
-
void-hover-card[position="top"] .void-hover-card-body {
|
|
51
|
-
bottom: calc(100% + var(--void-space-2));
|
|
52
|
-
left: 50%;
|
|
53
|
-
transform: translateX(-50%) scale(0.96);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
void-hover-card[position="top"][open] .void-hover-card-body {
|
|
57
|
-
transform: translateX(-50%) scale(1);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/* Position: left */
|
|
61
|
-
void-hover-card[position="left"] .void-hover-card-body {
|
|
62
|
-
right: calc(100% + var(--void-space-2));
|
|
63
|
-
top: 50%;
|
|
64
|
-
transform: translateY(-50%) scale(0.96);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
void-hover-card[position="left"][open] .void-hover-card-body {
|
|
68
|
-
transform: translateY(-50%) scale(1);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
/* Position: right */
|
|
72
|
-
void-hover-card[position="right"] .void-hover-card-body {
|
|
73
|
-
left: calc(100% + var(--void-space-2));
|
|
74
|
-
top: 50%;
|
|
75
|
-
transform: translateY(-50%) scale(0.96);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
void-hover-card[position="right"][open] .void-hover-card-body {
|
|
79
|
-
transform: translateY(-50%) scale(1);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
/* Arrow indicators */
|
|
83
|
-
.void-hover-card-body::before {
|
|
84
|
-
content: '';
|
|
85
|
-
position: absolute;
|
|
86
|
-
width: var(--void-space-2);
|
|
87
|
-
height: var(--void-space-2);
|
|
88
|
-
background: var(--void-color-bg-elevated);
|
|
89
|
-
border: 1px solid var(--void-color-border);
|
|
90
|
-
transform: rotate(45deg);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
void-hover-card[position="bottom"] .void-hover-card-body::before,
|
|
94
|
-
void-hover-card:not([position]) .void-hover-card-body::before {
|
|
95
|
-
top: calc(-1 * var(--void-space-1) - 1px);
|
|
96
|
-
left: 50%;
|
|
97
|
-
margin-left: calc(-1 * var(--void-space-1));
|
|
98
|
-
border-bottom: none;
|
|
99
|
-
border-right: none;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
void-hover-card[position="top"] .void-hover-card-body::before {
|
|
103
|
-
bottom: calc(-1 * var(--void-space-1) - 1px);
|
|
104
|
-
left: 50%;
|
|
105
|
-
margin-left: calc(-1 * var(--void-space-1));
|
|
106
|
-
border-top: none;
|
|
107
|
-
border-left: none;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
void-hover-card[position="left"] .void-hover-card-body::before {
|
|
111
|
-
right: calc(-1 * var(--void-space-1) - 1px);
|
|
112
|
-
top: 50%;
|
|
113
|
-
margin-top: calc(-1 * var(--void-space-1));
|
|
114
|
-
border-left: none;
|
|
115
|
-
border-bottom: none;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
void-hover-card[position="right"] .void-hover-card-body::before {
|
|
119
|
-
left: calc(-1 * var(--void-space-1) - 1px);
|
|
120
|
-
top: 50%;
|
|
121
|
-
margin-top: calc(-1 * var(--void-space-1));
|
|
122
|
-
border-right: none;
|
|
123
|
-
border-top: none;
|
|
124
24
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
void-indicator {
|
|
2
|
-
--tone: var(--void-color-accent);
|
|
2
|
+
--_void-tone: var(--void-color-accent);
|
|
3
3
|
position: relative;
|
|
4
4
|
display: inline-flex;
|
|
5
5
|
}
|
|
@@ -11,7 +11,7 @@ void-indicator {
|
|
|
11
11
|
min-width: 8px;
|
|
12
12
|
min-height: 8px;
|
|
13
13
|
border-radius: var(--void-radius-full);
|
|
14
|
-
background: var(--tone);
|
|
14
|
+
background: var(--_void-tone);
|
|
15
15
|
font-family: var(--void-font-sans);
|
|
16
16
|
font-size: var(--void-text-2xs);
|
|
17
17
|
font-weight: var(--void-weight-semibold);
|
|
@@ -26,24 +26,25 @@ void-indicator {
|
|
|
26
26
|
padding: 0 4px;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
void-indicator[
|
|
30
|
-
void-indicator[
|
|
31
|
-
void-indicator[
|
|
32
|
-
void-indicator[
|
|
29
|
+
void-indicator[placement="top-right"] .void-indicator-dot { top: -4px; right: -4px; }
|
|
30
|
+
void-indicator[placement="top-left"] .void-indicator-dot { top: -4px; left: -4px; }
|
|
31
|
+
void-indicator[placement="bottom-right"] .void-indicator-dot { bottom: -4px; right: -4px; }
|
|
32
|
+
void-indicator[placement="bottom-left"] .void-indicator-dot { bottom: -4px; left: -4px; }
|
|
33
33
|
|
|
34
|
-
void-indicator[color="error"] { --tone: var(--void-color-error); }
|
|
35
|
-
void-indicator[color="warning"] { --tone: var(--void-color-warning); }
|
|
36
|
-
void-indicator[color="caution"] { --tone: var(--void-color-caution); }
|
|
37
|
-
void-indicator[color="
|
|
38
|
-
void-indicator[color="
|
|
39
|
-
void-indicator[color="
|
|
34
|
+
void-indicator[color="error"] { --_void-tone: var(--void-color-error); }
|
|
35
|
+
void-indicator[color="warning"] { --_void-tone: var(--void-color-warning); }
|
|
36
|
+
void-indicator[color="caution"] { --_void-tone: var(--void-color-caution); }
|
|
37
|
+
void-indicator[color="highlight"] { --_void-tone: var(--void-color-highlight); }
|
|
38
|
+
void-indicator[color="success"] { --_void-tone: var(--void-color-success); }
|
|
39
|
+
void-indicator[color="info"] { --_void-tone: var(--void-color-info); }
|
|
40
|
+
void-indicator[color="notice"] { --_void-tone: var(--void-color-notice); }
|
|
40
41
|
|
|
41
42
|
void-indicator[ping] .void-indicator-dot::before {
|
|
42
43
|
content: '';
|
|
43
44
|
position: absolute;
|
|
44
45
|
inset: 0;
|
|
45
46
|
border-radius: var(--void-radius-full);
|
|
46
|
-
background: var(--tone);
|
|
47
|
+
background: var(--_void-tone);
|
|
47
48
|
animation: void-indicator-ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
|
|
48
49
|
}
|
|
49
50
|
|
|
@@ -55,9 +56,12 @@ void-indicator[size="sm"] .void-indicator-dot { min-width: 6px; min-height: 6px;
|
|
|
55
56
|
void-indicator[size="sm"] .void-indicator-dot:not(:empty) { min-width: 14px; min-height: 14px; }
|
|
56
57
|
void-indicator[size="lg"] .void-indicator-dot { min-width: 10px; min-height: 10px; }
|
|
57
58
|
void-indicator[size="lg"] .void-indicator-dot:not(:empty) { min-width: 20px; min-height: 20px; font-size: var(--void-text-xs); }
|
|
58
|
-
void-indicator[size="xl"] .void-indicator-dot { min-width: 12px; min-height: 12px; }
|
|
59
|
-
void-indicator[size="xl"] .void-indicator-dot:not(:empty) { min-width: 24px; min-height: 24px; font-size: var(--void-text-sm); }
|
|
60
|
-
void-indicator[size="xxl"] .void-indicator-dot { min-width: 14px; min-height: 14px; }
|
|
61
|
-
void-indicator[size="xxl"] .void-indicator-dot:not(:empty) { min-width: 28px; min-height: 28px; font-size: var(--void-text-base); }
|
|
62
59
|
|
|
63
|
-
|
|
60
|
+
|
|
61
|
+
/* Reduced motion: no expanding ping ring; the dot itself stays visible */
|
|
62
|
+
@media (prefers-reduced-motion: reduce) {
|
|
63
|
+
void-indicator[ping] .void-indicator-dot::before {
|
|
64
|
+
animation: none;
|
|
65
|
+
opacity: 0;
|
|
66
|
+
}
|
|
67
|
+
}
|
package/src/components/input.css
CHANGED
|
@@ -1,19 +1,23 @@
|
|
|
1
1
|
void-input {
|
|
2
|
+
--_void-field-height: var(--void-control-height);
|
|
3
|
+
--_void-field-padding: var(--void-control-padding);
|
|
4
|
+
--_void-field-text: var(--void-control-text);
|
|
2
5
|
display: flex;
|
|
3
6
|
flex-direction: column;
|
|
4
|
-
gap: var(--void-space-
|
|
7
|
+
gap: var(--void-space-1h);
|
|
5
8
|
font-family: var(--void-font-sans);
|
|
6
9
|
}
|
|
7
10
|
|
|
8
11
|
void-input input {
|
|
9
12
|
width: 100%;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
border
|
|
13
|
+
height: var(--_void-field-height);
|
|
14
|
+
padding: 0 var(--_void-field-padding);
|
|
15
|
+
background: var(--void-field-surface);
|
|
16
|
+
border: var(--void-control-border-width) solid var(--void-field-border);
|
|
17
|
+
border-radius: var(--void-control-radius);
|
|
14
18
|
color: var(--void-color-text);
|
|
15
19
|
font-family: inherit;
|
|
16
|
-
font-size: var(--
|
|
20
|
+
font-size: var(--_void-field-text);
|
|
17
21
|
line-height: var(--void-leading-normal);
|
|
18
22
|
outline: none;
|
|
19
23
|
transition: border-color var(--void-duration-fast) var(--void-ease-in-out),
|
|
@@ -25,7 +29,7 @@ void-input input::placeholder {
|
|
|
25
29
|
}
|
|
26
30
|
|
|
27
31
|
void-input input:hover {
|
|
28
|
-
border-color: var(--void-
|
|
32
|
+
border-color: var(--void-field-border);
|
|
29
33
|
}
|
|
30
34
|
|
|
31
35
|
void-input input:focus {
|
|
@@ -48,10 +52,9 @@ void-input[error]:not([error=""]) input:focus {
|
|
|
48
52
|
|
|
49
53
|
.void-input-error {
|
|
50
54
|
color: var(--void-color-error);
|
|
51
|
-
font-size: var(--void-
|
|
55
|
+
font-size: var(--void-type-caption-size);
|
|
56
|
+
line-height: var(--void-type-caption-leading);
|
|
52
57
|
}
|
|
53
58
|
|
|
54
|
-
void-input[size="sm"]
|
|
55
|
-
void-input[size="lg"]
|
|
56
|
-
void-input[size="xl"] input { padding: var(--void-space-4) var(--void-space-5); font-size: var(--void-text-lg); }
|
|
57
|
-
void-input[size="xxl"] input { padding: var(--void-space-5) var(--void-space-6); font-size: var(--void-text-xl); }
|
|
59
|
+
void-input[size="sm"] { --_void-field-height: var(--void-control-height-sm); --_void-field-padding: var(--void-control-padding-sm); --_void-field-text: var(--void-control-text-sm); }
|
|
60
|
+
void-input[size="lg"] { --_void-field-height: var(--void-control-height-lg); --_void-field-padding: var(--void-control-padding-lg); --_void-field-text: var(--void-control-text-lg); }
|
|
@@ -18,7 +18,7 @@ void-line-chart svg {
|
|
|
18
18
|
|
|
19
19
|
void-line-chart .void-line-chart-grid line {
|
|
20
20
|
stroke: var(--void-chart-grid);
|
|
21
|
-
stroke-width:
|
|
21
|
+
stroke-width: var(--void-chart-stroke-hairline);
|
|
22
22
|
shape-rendering: crispEdges;
|
|
23
23
|
}
|
|
24
24
|
|
|
@@ -40,7 +40,7 @@ void-line-chart .void-line-chart-series {
|
|
|
40
40
|
void-line-chart .void-line-chart-line {
|
|
41
41
|
fill: none;
|
|
42
42
|
stroke: var(--series-color, var(--void-color-accent));
|
|
43
|
-
stroke-width:
|
|
43
|
+
stroke-width: var(--void-chart-stroke-medium);
|
|
44
44
|
stroke-linejoin: round;
|
|
45
45
|
stroke-linecap: round;
|
|
46
46
|
}
|
|
@@ -79,7 +79,7 @@ void-line-chart .void-line-chart-values text {
|
|
|
79
79
|
/* Vertical hairline at the hovered x */
|
|
80
80
|
void-line-chart .void-line-chart-hairline {
|
|
81
81
|
stroke: var(--void-color-border-strong);
|
|
82
|
-
stroke-width:
|
|
82
|
+
stroke-width: var(--void-chart-stroke-hairline);
|
|
83
83
|
stroke-dasharray: 3 3;
|
|
84
84
|
pointer-events: none;
|
|
85
85
|
}
|
|
@@ -88,7 +88,7 @@ void-line-chart .void-line-chart-hairline {
|
|
|
88
88
|
void-line-chart .void-line-chart-marker {
|
|
89
89
|
fill: var(--void-color-bg);
|
|
90
90
|
stroke: var(--marker-color, var(--void-color-accent));
|
|
91
|
-
stroke-width:
|
|
91
|
+
stroke-width: var(--void-chart-stroke-medium);
|
|
92
92
|
rx: 2;
|
|
93
93
|
ry: 2;
|
|
94
94
|
pointer-events: none;
|
|
@@ -98,18 +98,18 @@ void-line-chart .void-line-chart-marker {
|
|
|
98
98
|
void-line-chart .void-line-chart-tooltip-bg {
|
|
99
99
|
fill: var(--void-color-bg-elevated);
|
|
100
100
|
stroke: var(--void-color-border);
|
|
101
|
-
stroke-width:
|
|
101
|
+
stroke-width: var(--void-chart-stroke-hairline);
|
|
102
102
|
pointer-events: none;
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
/* Tooltip label (the x-axis category at this index) */
|
|
106
106
|
void-line-chart .void-line-chart-tooltip-label {
|
|
107
|
-
font-family: var(--void-
|
|
108
|
-
font-size: var(--void-
|
|
109
|
-
font-weight: var(--void-weight
|
|
107
|
+
font-family: var(--void-type-label-family);
|
|
108
|
+
font-size: var(--void-type-label-size);
|
|
109
|
+
font-weight: var(--void-type-label-weight);
|
|
110
110
|
fill: var(--void-color-text);
|
|
111
|
-
text-transform:
|
|
112
|
-
letter-spacing: var(--void-tracking
|
|
111
|
+
text-transform: var(--void-type-label-case);
|
|
112
|
+
letter-spacing: var(--void-type-label-tracking);
|
|
113
113
|
pointer-events: none;
|
|
114
114
|
}
|
|
115
115
|
|
package/src/components/list.css
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/* @tokens void-list
|
|
2
|
+
--void-list-rule The line between the items of a list with dividers.
|
|
3
|
+
--void-list-item-surface-selected Fill of the selected item.
|
|
4
|
+
--void-list-item-ink-selected Text colour of the selected item. Set it with the surface: lint:contrast checks the pair. */
|
|
5
|
+
|
|
1
6
|
void-list {
|
|
2
7
|
display: flex;
|
|
3
8
|
flex-direction: column;
|
|
@@ -5,16 +10,18 @@ void-list {
|
|
|
5
10
|
}
|
|
6
11
|
|
|
7
12
|
void-list[dividers] void-list-item + void-list-item {
|
|
8
|
-
border-top:
|
|
13
|
+
border-top: var(--void-list-rule, var(--void-rule-between));
|
|
9
14
|
}
|
|
10
15
|
|
|
11
16
|
void-list-item {
|
|
12
17
|
display: flex;
|
|
13
18
|
align-items: center;
|
|
14
19
|
gap: var(--void-space-3);
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
20
|
+
min-height: var(--void-control-height);
|
|
21
|
+
padding: var(--void-space-1) var(--void-control-padding);
|
|
22
|
+
border-radius: var(--void-control-radius);
|
|
23
|
+
font-size: var(--void-control-text);
|
|
24
|
+
color: var(--void-color-text-secondary);
|
|
18
25
|
}
|
|
19
26
|
|
|
20
27
|
void-list-item[interactive] {
|
|
@@ -24,11 +31,25 @@ void-list-item[interactive] {
|
|
|
24
31
|
|
|
25
32
|
void-list-item[interactive]:hover {
|
|
26
33
|
background: var(--void-color-bg-hover);
|
|
34
|
+
color: var(--void-color-text);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
void-list-item[interactive]:focus-visible {
|
|
38
|
+
outline: var(--void-focus-ring-width) solid var(--void-focus-ring-color);
|
|
39
|
+
outline-offset: calc(-1 * var(--void-focus-ring-width));
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/* Divided lists are rows of content, not a menu: square, full-strength text. */
|
|
43
|
+
void-list[dividers] void-list-item {
|
|
44
|
+
border-radius: 0;
|
|
45
|
+
color: var(--void-color-text);
|
|
27
46
|
}
|
|
28
47
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
48
|
+
/* Also for a divided list, whose items set their own text colour. */
|
|
49
|
+
void-list-item[selected],
|
|
50
|
+
void-list[dividers] void-list-item[selected] {
|
|
51
|
+
background: var(--void-list-item-surface-selected, var(--void-item-surface-selected));
|
|
52
|
+
color: var(--void-list-item-ink-selected, var(--void-item-ink-selected));
|
|
32
53
|
}
|
|
33
54
|
|
|
34
55
|
void-list-item[disabled] {
|