@voidable/theme 0.10.0 → 0.11.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voidable/theme",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "description": "CSS custom properties, design tokens, reset and component styles for Voidable UI",
5
5
  "keywords": [
6
6
  "css",
@@ -73,3 +73,53 @@ void-bar-chart .void-bar-chart-values text {
73
73
  fill: var(--void-color-text);
74
74
  letter-spacing: var(--void-tracking-wide);
75
75
  }
76
+
77
+ /* The data table: the values as text for assistive technology. Out of sight
78
+ (the drawing is hidden from it), but in the accessibility tree; show-table
79
+ puts it below the chart. */
80
+ void-bar-chart {
81
+ position: relative;
82
+ }
83
+
84
+ void-bar-chart .void-bar-chart-table {
85
+ position: absolute;
86
+ inline-size: 1px;
87
+ block-size: 1px;
88
+ margin: 0;
89
+ padding: 0;
90
+ border: 0;
91
+ overflow: hidden;
92
+ clip-path: inset(50%);
93
+ white-space: nowrap;
94
+ }
95
+
96
+ void-bar-chart[show-table] .void-bar-chart-table {
97
+ position: static;
98
+ inline-size: 100%;
99
+ block-size: auto;
100
+ margin-block-start: var(--void-space-3);
101
+ overflow: visible;
102
+ clip-path: none;
103
+ white-space: normal;
104
+ border-collapse: collapse;
105
+ font-size: var(--void-text-2xs);
106
+ font-variant-numeric: tabular-nums;
107
+ text-align: start;
108
+ }
109
+
110
+ void-bar-chart[show-table] .void-bar-chart-table caption {
111
+ padding-block-end: var(--void-space-1);
112
+ text-align: start;
113
+ color: var(--void-color-text-muted);
114
+ }
115
+
116
+ void-bar-chart[show-table] .void-bar-chart-table :is(th, td) {
117
+ padding: var(--void-space-1) var(--void-space-2);
118
+ border-block-end: 1px solid var(--void-color-border);
119
+ text-align: start;
120
+ }
121
+
122
+ void-bar-chart[show-table] .void-bar-chart-table thead th {
123
+ font-weight: var(--void-weight-medium);
124
+ color: var(--void-color-text-muted);
125
+ }
@@ -332,7 +332,7 @@ void-date-picker {
332
332
  font-size: var(--void-control-text);
333
333
  line-height: var(--void-leading-normal);
334
334
  outline: none;
335
- cursor: pointer;
335
+ cursor: text;
336
336
  transition: border-color var(--void-duration-fast) var(--void-ease-in-out),
337
337
  box-shadow var(--void-duration-fast) var(--void-ease-in-out);
338
338
  }
@@ -409,11 +409,20 @@ void-date-picker[open] .void-date-picker-input {
409
409
  padding: var(--void-space-2);
410
410
  }
411
411
 
412
+ /* The message for a date typed into the field that was not taken. */
413
+ .void-date-picker-error {
414
+ color: var(--void-color-error);
415
+ font-size: var(--void-type-caption-size);
416
+ line-height: var(--void-type-caption-leading);
417
+ }
418
+
412
419
  /* ── Color variants ── */
413
420
 
421
+ void-date-picker[error]:not([error=""]) .void-date-picker-input,
414
422
  void-date-picker[color="error"] .void-date-picker-input {
415
423
  border-color: var(--void-color-error);
416
424
  }
425
+ void-date-picker[error]:not([error=""]) .void-date-picker-input:focus,
417
426
  void-date-picker[color="error"] .void-date-picker-input:focus {
418
427
  box-shadow: 0 0 0 1px var(--void-color-error);
419
428
  }
@@ -103,3 +103,58 @@ void-donut-chart .void-donut-chart-tooltip-pct {
103
103
  fill: var(--void-color-text-secondary);
104
104
  font-weight: var(--void-weight-normal);
105
105
  }
106
+
107
+ /* The data table: the values as text for assistive technology. Out of sight
108
+ (the drawing is hidden from it), but in the accessibility tree; show-table
109
+ puts it below the chart. */
110
+ void-donut-chart {
111
+ position: relative;
112
+ }
113
+
114
+ void-donut-chart .void-donut-chart-table {
115
+ position: absolute;
116
+ inline-size: 1px;
117
+ block-size: 1px;
118
+ margin: 0;
119
+ padding: 0;
120
+ border: 0;
121
+ overflow: hidden;
122
+ clip-path: inset(50%);
123
+ white-space: nowrap;
124
+ }
125
+
126
+ void-donut-chart[show-table] .void-donut-chart-table {
127
+ position: static;
128
+ inline-size: 100%;
129
+ block-size: auto;
130
+ margin-block-start: var(--void-space-3);
131
+ overflow: visible;
132
+ clip-path: none;
133
+ white-space: normal;
134
+ border-collapse: collapse;
135
+ font-size: var(--void-text-2xs);
136
+ font-variant-numeric: tabular-nums;
137
+ text-align: start;
138
+ }
139
+
140
+ void-donut-chart[show-table] .void-donut-chart-table caption {
141
+ padding-block-end: var(--void-space-1);
142
+ text-align: start;
143
+ color: var(--void-color-text-muted);
144
+ }
145
+
146
+ void-donut-chart[show-table] .void-donut-chart-table :is(th, td) {
147
+ padding: var(--void-space-1) var(--void-space-2);
148
+ border-block-end: 1px solid var(--void-color-border);
149
+ text-align: start;
150
+ }
151
+
152
+ void-donut-chart[show-table] .void-donut-chart-table thead th {
153
+ font-weight: var(--void-weight-medium);
154
+ color: var(--void-color-text-muted);
155
+ }
156
+
157
+ /* A donut with its table shown is no longer a square. */
158
+ void-donut-chart[show-table] {
159
+ aspect-ratio: auto;
160
+ }
@@ -192,3 +192,53 @@ void-gauge .void-gauge-tooltip-pct {
192
192
  fill: var(--void-color-text-secondary);
193
193
  font-weight: var(--void-weight-normal);
194
194
  }
195
+
196
+ /* The data table: the values as text for assistive technology. Out of sight
197
+ (the drawing is hidden from it), but in the accessibility tree; show-table
198
+ puts it below the chart. */
199
+ void-gauge {
200
+ position: relative;
201
+ }
202
+
203
+ void-gauge .void-gauge-table {
204
+ position: absolute;
205
+ inline-size: 1px;
206
+ block-size: 1px;
207
+ margin: 0;
208
+ padding: 0;
209
+ border: 0;
210
+ overflow: hidden;
211
+ clip-path: inset(50%);
212
+ white-space: nowrap;
213
+ }
214
+
215
+ void-gauge[show-table] .void-gauge-table {
216
+ position: static;
217
+ inline-size: 100%;
218
+ block-size: auto;
219
+ margin-block-start: var(--void-space-3);
220
+ overflow: visible;
221
+ clip-path: none;
222
+ white-space: normal;
223
+ border-collapse: collapse;
224
+ font-size: var(--void-text-2xs);
225
+ font-variant-numeric: tabular-nums;
226
+ text-align: start;
227
+ }
228
+
229
+ void-gauge[show-table] .void-gauge-table caption {
230
+ padding-block-end: var(--void-space-1);
231
+ text-align: start;
232
+ color: var(--void-color-text-muted);
233
+ }
234
+
235
+ void-gauge[show-table] .void-gauge-table :is(th, td) {
236
+ padding: var(--void-space-1) var(--void-space-2);
237
+ border-block-end: 1px solid var(--void-color-border);
238
+ text-align: start;
239
+ }
240
+
241
+ void-gauge[show-table] .void-gauge-table thead th {
242
+ font-weight: var(--void-weight-medium);
243
+ color: var(--void-color-text-muted);
244
+ }
@@ -135,3 +135,53 @@ void-line-chart .void-line-chart-tooltip-value {
135
135
  fill: var(--void-color-text);
136
136
  pointer-events: none;
137
137
  }
138
+
139
+ /* The data table: the values as text for assistive technology. Out of sight
140
+ (the drawing is hidden from it), but in the accessibility tree; show-table
141
+ puts it below the chart. */
142
+ void-line-chart {
143
+ position: relative;
144
+ }
145
+
146
+ void-line-chart .void-line-chart-table {
147
+ position: absolute;
148
+ inline-size: 1px;
149
+ block-size: 1px;
150
+ margin: 0;
151
+ padding: 0;
152
+ border: 0;
153
+ overflow: hidden;
154
+ clip-path: inset(50%);
155
+ white-space: nowrap;
156
+ }
157
+
158
+ void-line-chart[show-table] .void-line-chart-table {
159
+ position: static;
160
+ inline-size: 100%;
161
+ block-size: auto;
162
+ margin-block-start: var(--void-space-3);
163
+ overflow: visible;
164
+ clip-path: none;
165
+ white-space: normal;
166
+ border-collapse: collapse;
167
+ font-size: var(--void-text-2xs);
168
+ font-variant-numeric: tabular-nums;
169
+ text-align: start;
170
+ }
171
+
172
+ void-line-chart[show-table] .void-line-chart-table caption {
173
+ padding-block-end: var(--void-space-1);
174
+ text-align: start;
175
+ color: var(--void-color-text-muted);
176
+ }
177
+
178
+ void-line-chart[show-table] .void-line-chart-table :is(th, td) {
179
+ padding: var(--void-space-1) var(--void-space-2);
180
+ border-block-end: 1px solid var(--void-color-border);
181
+ text-align: start;
182
+ }
183
+
184
+ void-line-chart[show-table] .void-line-chart-table thead th {
185
+ font-weight: var(--void-weight-medium);
186
+ color: var(--void-color-text-muted);
187
+ }