@bigpixelrocket/uiok 0.1.4 → 0.2.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.
Files changed (146) hide show
  1. package/CHANGELOG.md +88 -1
  2. package/README.md +1 -1
  3. package/dist/activity/ActivityBar.d.ts +21 -8
  4. package/dist/activity/ActivityBar.js +15 -5
  5. package/dist/activity/activity.css +53 -6
  6. package/dist/button/Button.d.ts +10 -6
  7. package/dist/button/Button.js +6 -1
  8. package/dist/button/button.css +201 -33
  9. package/dist/charts/Line.logic.d.ts +6 -0
  10. package/dist/charts/Line.logic.js +9 -0
  11. package/dist/charts/LineChart.js +11 -4
  12. package/dist/charts/Pie.logic.d.ts +89 -1
  13. package/dist/charts/Pie.logic.js +272 -2
  14. package/dist/charts/PieChart.d.ts +2 -1
  15. package/dist/charts/PieChart.js +12 -5
  16. package/dist/charts/PieFill.d.ts +15 -0
  17. package/dist/charts/PieFill.js +33 -0
  18. package/dist/charts/ResultChart.d.ts +2 -2
  19. package/dist/charts/ResultChart.js +173 -47
  20. package/dist/charts/ResultChart.logic.d.ts +60 -4
  21. package/dist/charts/ResultChart.logic.js +105 -6
  22. package/dist/charts/Scatter.logic.d.ts +18 -4
  23. package/dist/charts/Scatter.logic.js +98 -22
  24. package/dist/charts/ScatterChart.js +19 -5
  25. package/dist/charts/charts.css +233 -116
  26. package/dist/charts/seriesColour.d.ts +2 -0
  27. package/dist/charts/seriesColour.js +1 -1
  28. package/dist/datetime/DateTimePicker.d.ts +12 -2
  29. package/dist/datetime/DateTimePicker.js +61 -16
  30. package/dist/datetime/DateTimePicker.logic.d.ts +29 -0
  31. package/dist/datetime/DateTimePicker.logic.js +25 -0
  32. package/dist/datetime/datetime.css +89 -49
  33. package/dist/dialog/ConfirmDialog.d.ts +69 -20
  34. package/dist/dialog/ConfirmDialog.js +39 -12
  35. package/dist/dialog/DialogLayer.d.ts +25 -0
  36. package/dist/dialog/DialogLayer.js +24 -0
  37. package/dist/dialog/DialogLegend.d.ts +2 -1
  38. package/dist/dialog/DialogLegend.js +10 -5
  39. package/dist/dialog/DialogLegend.logic.d.ts +15 -3
  40. package/dist/dialog/DialogLegend.logic.js +8 -4
  41. package/dist/dialog/DialogLists.d.ts +157 -0
  42. package/dist/dialog/DialogLists.js +137 -0
  43. package/dist/dialog/ModalDialog.d.ts +20 -15
  44. package/dist/dialog/ModalDialog.js +22 -7
  45. package/dist/dialog/dialog.css +570 -127
  46. package/dist/dialog/index.d.ts +7 -1
  47. package/dist/dialog/index.js +7 -1
  48. package/dist/field/Check.d.ts +15 -0
  49. package/dist/field/Check.js +23 -0
  50. package/dist/field/field.css +812 -0
  51. package/dist/field/index.d.ts +10 -0
  52. package/dist/field/index.js +10 -0
  53. package/dist/field/labelHelp.d.ts +33 -0
  54. package/dist/field/labelHelp.js +22 -0
  55. package/dist/filter/FilterIcon.js +2 -1
  56. package/dist/filter/filter.css +72 -20
  57. package/dist/grid/DataGrid.d.ts +8 -1
  58. package/dist/grid/DataGrid.js +115 -40
  59. package/dist/grid/DataGrid.logic.d.ts +15 -3
  60. package/dist/grid/DataGrid.logic.js +18 -5
  61. package/dist/grid/grid.css +481 -56
  62. package/dist/icon/Spinner.d.ts +16 -0
  63. package/dist/icon/Spinner.js +13 -0
  64. package/dist/icon/index.d.ts +5 -0
  65. package/dist/icon/index.js +5 -0
  66. package/dist/icon/sizes.d.ts +19 -0
  67. package/dist/icon/sizes.js +19 -0
  68. package/dist/index.d.ts +2 -0
  69. package/dist/index.js +2 -0
  70. package/dist/keychord/KeyChord.d.ts +12 -1
  71. package/dist/keychord/KeyChord.js +2 -2
  72. package/dist/keychord/index.d.ts +1 -1
  73. package/dist/keychord/keychord.css +87 -9
  74. package/dist/labels/dialog.d.ts +12 -1
  75. package/dist/labels/dialog.js +3 -1
  76. package/dist/labels/selectAll.d.ts +4 -4
  77. package/dist/labels/selectAll.js +1 -1
  78. package/dist/legend/KeyLegendStrip.js +1 -1
  79. package/dist/legend/legend.css +82 -57
  80. package/dist/listing/Listing.d.ts +17 -10
  81. package/dist/listing/Listing.js +33 -26
  82. package/dist/listing/listing.css +1665 -237
  83. package/dist/menu/menu.css +227 -67
  84. package/dist/menu/useBellBeat.js +2 -2
  85. package/dist/namecut/NameCut.d.ts +3 -1
  86. package/dist/namecut/NameCut.js +152 -5
  87. package/dist/namecut/NameCut.logic.d.ts +5 -3
  88. package/dist/namecut/NameCut.logic.js +20 -5
  89. package/dist/namecut/namecut.css +27 -7
  90. package/dist/pager/Pager.d.ts +12 -4
  91. package/dist/pager/Pager.js +21 -7
  92. package/dist/pager/pager.css +41 -30
  93. package/dist/palette/Palette.js +2 -1
  94. package/dist/palette/palette.css +121 -60
  95. package/dist/pane/PaneActions.d.ts +56 -14
  96. package/dist/pane/PaneActions.js +64 -16
  97. package/dist/pane/PaneFrame.d.ts +37 -5
  98. package/dist/pane/PaneFrame.js +246 -11
  99. package/dist/pane/index.d.ts +4 -2
  100. package/dist/pane/index.js +4 -2
  101. package/dist/pane/toolWords.d.ts +14 -0
  102. package/dist/pane/toolWords.js +26 -0
  103. package/dist/pane/useToolbarFit.d.ts +25 -0
  104. package/dist/pane/useToolbarFit.js +95 -0
  105. package/dist/run/RunHeader.d.ts +5 -3
  106. package/dist/run/RunHeader.js +11 -8
  107. package/dist/run/run.css +64 -79
  108. package/dist/segmented/SegmentedChoice.d.ts +18 -2
  109. package/dist/segmented/SegmentedChoice.js +18 -7
  110. package/dist/segmented/segmented.css +62 -22
  111. package/dist/selectall/SelectAllBar.d.ts +4 -3
  112. package/dist/selectall/SelectAllBar.js +4 -3
  113. package/dist/selectall/selectall.css +17 -12
  114. package/dist/shell/shell.css +1073 -0
  115. package/dist/styles.css +620 -22
  116. package/dist/surface/surface.css +154 -0
  117. package/dist/tabs/PageTabs.d.ts +10 -5
  118. package/dist/tabs/PageTabs.js +126 -37
  119. package/dist/tabs/tabs.css +131 -51
  120. package/dist/terminal/Terminal.js +3 -1
  121. package/dist/terminal/Terminal.logic.d.ts +5 -4
  122. package/dist/terminal/Terminal.logic.js +9 -4
  123. package/dist/terminal/TerminalMenu.d.ts +4 -1
  124. package/dist/terminal/TerminalMenu.js +12 -5
  125. package/dist/terminal/ghostty/contrast.logic.d.ts +45 -0
  126. package/dist/terminal/ghostty/contrast.logic.js +130 -0
  127. package/dist/terminal/ghostty/core.d.ts +6 -0
  128. package/dist/terminal/ghostty/renderer.d.ts +9 -2
  129. package/dist/terminal/ghostty/renderer.js +91 -14
  130. package/dist/terminal/ghostty/surface.d.ts +8 -0
  131. package/dist/terminal/ghostty/surface.js +27 -1
  132. package/dist/terminal/terminal.css +87 -61
  133. package/dist/text/text.css +16 -7
  134. package/dist/themes/catalog.js +4 -3
  135. package/dist/themes/themes.generated.css +1307 -264
  136. package/dist/themes/tokens.d.ts +69 -14
  137. package/dist/themes/tokens.js +920 -97
  138. package/dist/tokens.css +239 -0
  139. package/dist/tooltip/Tooltip.d.ts +6 -0
  140. package/dist/tooltip/Tooltip.js +48 -6
  141. package/dist/tooltip/Tooltip.logic.d.ts +89 -12
  142. package/dist/tooltip/Tooltip.logic.js +142 -20
  143. package/dist/tooltip/index.d.ts +1 -1
  144. package/dist/tooltip/index.js +1 -1
  145. package/dist/tooltip/tooltip.css +39 -9
  146. package/package.json +3 -3
@@ -2,31 +2,100 @@
2
2
  mostly by the components on each mark; the rules here draw the chrome
3
3
  around them from the other theme tokens.
4
4
 
5
- PieChart: the pie, then a legend of each slice with its share; hovering
6
- one lights the other. */
5
+ One vocabulary for every chart: caption-size type in the interface face
6
+ with tabular figures; a 10px swatch with a 2px corner (a 10 by 3 dash for
7
+ a line series); a plot with a left axis and a baseline in --border-strong
8
+ and grid lines in --border-faint, never a box around it; the picked or
9
+ hovered mark ringed in --text; a dragged range in the accent wash; a
10
+ read-out in the tooltip's look; and, with nothing to draw, the plot's
11
+ place kept with one dim line centred in it. */
12
+
13
+ /* A chart with no values: the plot's box, its axes and grid left out, and
14
+ one dim line of words centred in it. */
15
+ .chart-empty {
16
+ display: grid;
17
+ place-items: center;
18
+ box-sizing: border-box;
19
+ min-height: 120px;
20
+ padding: var(--space-6);
21
+ border-bottom: var(--line) solid var(--border-strong);
22
+ border-left: var(--line) solid var(--border-strong);
23
+ color: var(--row-meta-text);
24
+ font: var(--font-size-caption)/var(--line-height-compact) var(--font-ui);
25
+ text-align: center;
26
+ }
27
+
28
+ /* The same line drawn inside an SVG drawing (ResultChart), so it saves with
29
+ the picture. */
30
+ .chart-empty-text {
31
+ fill: var(--row-meta-text);
32
+ }
33
+
34
+ /* The read-out a hover shows over a plot, in the tooltip's look: a floating
35
+ panel with the lit top edge. */
36
+ .line-readout {
37
+ position: absolute;
38
+ top: var(--space-4);
39
+ display: flex;
40
+ flex-direction: column;
41
+ gap: var(--space-1);
42
+ padding: var(--space-2) var(--space-4);
43
+ border: var(--line) solid var(--border-strong);
44
+ border-radius: var(--radius-md);
45
+ background: var(--surface);
46
+ box-shadow:
47
+ inset 0 1px 0 var(--glass-edge),
48
+ var(--shadow-popover);
49
+ color: var(--text);
50
+ font: var(--font-weight-medium) var(--font-size-small)/var(--line-height-prose) var(--font-ui);
51
+ font-variant-numeric: tabular-nums;
52
+ white-space: nowrap;
53
+ pointer-events: none;
54
+ }
55
+
56
+ /* PieChart: the pie, then a legend of each slice with its share beside it;
57
+ hovering one lights the other, and the other slices step back. */
7
58
  .pie-chart {
8
59
  display: flex;
9
- align-items: flex-start;
10
- gap: 16px;
60
+ align-items: center;
61
+ gap: var(--space-8);
11
62
  margin: 0;
12
63
  color: var(--text);
13
- font: 12px var(--font-ui);
64
+ font: var(--font-size-caption)/var(--line-height-compact) var(--font-ui);
14
65
  }
15
66
 
16
67
  .pie-slice {
17
68
  stroke: var(--surface);
18
69
  stroke-width: 1;
19
- opacity: 0.9;
70
+ transition: opacity var(--duration-fast) var(--ease-out);
71
+ }
72
+
73
+ .pie-chart:has(.pie-slice.lit) .pie-slice:not(.lit) {
74
+ opacity: var(--dimmed-opacity);
20
75
  }
21
76
 
22
77
  .pie-slice.lit {
23
- opacity: 1;
24
78
  stroke: var(--text);
79
+ stroke-width: var(--line-strong);
80
+ }
81
+
82
+ /* A pie with no slices: a dashed ring where the pie would be, and the dim
83
+ line beside it where the legend would be. */
84
+ .pie-empty-ring {
85
+ fill: none;
86
+ stroke: var(--border-strong);
87
+ stroke-dasharray: 4 4;
88
+ }
89
+
90
+ .chart-empty-text-line {
91
+ margin: 0;
92
+ color: var(--row-meta-text);
25
93
  }
26
94
 
27
95
  .pie-legend {
28
96
  display: grid;
29
- gap: 2px;
97
+ gap: var(--space-1);
98
+ min-width: 0;
30
99
  margin: 0;
31
100
  padding: 0;
32
101
  list-style: none;
@@ -34,41 +103,65 @@
34
103
 
35
104
  .pie-legend li {
36
105
  display: flex;
37
- white-space: nowrap;
38
106
  align-items: center;
39
- gap: 6px;
40
- padding: 1px 4px;
41
- border-radius: 3px;
107
+ gap: var(--space-3);
108
+ min-width: 0;
109
+ height: var(--control-height-xs);
110
+ padding: 0 var(--space-2);
111
+ border-radius: var(--radius-sm);
112
+ white-space: nowrap;
42
113
  }
43
114
 
44
115
  .pie-legend li.lit {
45
- background: var(--hover-wash);
116
+ background: var(--cursor-row);
117
+ box-shadow: inset var(--line-strong) 0 0 var(--cursor-bar);
46
118
  }
47
119
 
48
- .pie-swatch {
49
- flex: none;
50
- width: 10px;
51
- height: 10px;
52
- border-radius: 2px;
120
+ .pie-label {
121
+ min-width: 0;
122
+ overflow: hidden;
123
+ text-overflow: ellipsis;
53
124
  }
54
125
 
55
126
  .pie-value {
56
127
  color: var(--row-meta-text);
57
128
  font-variant-numeric: tabular-nums;
129
+ /* A share is a value a user may copy; the legend's names are chrome. */
130
+ -webkit-user-select: text;
131
+ user-select: text;
132
+ }
133
+
134
+ .pie-legend li.lit .pie-value {
135
+ color: var(--text-on-surface);
136
+ }
137
+
138
+ /* Swatches: a square for a slice, a bar, a point; a dash for a line. */
139
+ .pie-swatch,
140
+ .chart-swatch {
141
+ flex: none;
142
+ width: 10px;
143
+ height: 10px;
144
+ border-radius: var(--radius-xs);
145
+ }
146
+
147
+ .line-swatch {
148
+ flex: none;
149
+ width: 10px;
150
+ height: 3px;
151
+ border-radius: var(--radius-xs);
58
152
  }
59
153
 
60
- /* LineChart: a frame as wide
61
- as its cell, the plot's grid and frame, a line per series in the series
62
- colours, the hover's guide and read-out, a dragged time range, and the
63
- legend under it. */
154
+ /* LineChart: a frame as wide as its cell, the plot's grid and axes, a line
155
+ per series in the series colours, the hover's guide with a dot on every
156
+ line and the read-out, a dragged time range, and the legend under it. */
64
157
  .line-chart {
65
158
  display: flex;
66
159
  flex-direction: column;
67
- gap: 4px;
160
+ gap: var(--space-2);
68
161
  min-width: 0;
69
162
  margin: 0;
70
163
  color: var(--text);
71
- font: 11px var(--font-ui);
164
+ font: var(--font-size-caption)/var(--line-height-compact) var(--font-ui);
72
165
  }
73
166
 
74
167
  .line-frame {
@@ -78,18 +171,24 @@
78
171
 
79
172
  .line-svg {
80
173
  display: block;
174
+ font: var(--font-size-caption) var(--font-ui);
81
175
  }
82
176
 
83
- .line-grid {
84
- stroke: color-mix(in srgb, var(--border) 70%, transparent);
177
+ .line-grid,
178
+ .scatter-grid,
179
+ .result-chart-grid {
180
+ stroke: var(--border-faint);
85
181
  }
86
182
 
87
- .line-tick text {
183
+ .line-tick text,
184
+ .scatter-tick text {
88
185
  fill: var(--row-meta-text);
89
186
  font-variant-numeric: tabular-nums;
90
187
  }
91
188
 
92
- .line-axes {
189
+ .line-axes,
190
+ .scatter-axes,
191
+ .result-chart-baseline {
93
192
  fill: none;
94
193
  stroke: var(--border-strong);
95
194
  }
@@ -107,39 +206,31 @@
107
206
  pointer-events: none;
108
207
  }
109
208
 
110
- .line-plot {
111
- fill: transparent;
209
+ /* Where the guide crosses a line: a dot in the series colour ringed in the
210
+ surface, so it stands off the line it marks. */
211
+ .line-dot {
212
+ stroke: var(--surface);
213
+ stroke-width: var(--line-strong);
214
+ pointer-events: none;
112
215
  }
113
216
 
114
- .line-plot.selectable {
115
- cursor: col-resize;
217
+ /* A plot that takes a range drag keeps the arrow: nothing is resized, and
218
+ the guide line and the dragged range show the gesture. */
219
+ .line-plot {
220
+ fill: transparent;
116
221
  }
117
222
 
118
- .line-selection {
119
- fill: color-mix(in srgb, var(--accent) 14%, transparent);
223
+ .line-selection,
224
+ .scatter-selection {
225
+ fill: var(--accent-wash);
120
226
  stroke: var(--accent);
121
227
  pointer-events: none;
122
228
  }
123
229
 
124
- .line-readout {
125
- position: absolute;
126
- top: 8px;
127
- display: flex;
128
- flex-direction: column;
129
- gap: 2px;
130
- padding: 4px 6px;
131
- border: 1px solid var(--border);
132
- border-radius: 4px;
133
- background: var(--surface);
134
- white-space: nowrap;
135
- pointer-events: none;
136
- font-variant-numeric: tabular-nums;
137
- }
138
-
139
230
  .line-legend {
140
231
  display: flex;
141
232
  flex-wrap: wrap;
142
- gap: 2px 10px;
233
+ gap: var(--space-1) var(--space-5);
143
234
  margin: 0;
144
235
  padding: 0;
145
236
  list-style: none;
@@ -149,27 +240,20 @@
149
240
  .line-readout span {
150
241
  display: flex;
151
242
  align-items: center;
152
- gap: 5px;
243
+ gap: var(--space-3);
153
244
  }
154
245
 
155
- .line-swatch {
156
- flex: none;
157
- width: 10px;
158
- height: 3px;
159
- border-radius: 1px;
160
- }
161
-
162
- /* ScatterChart: a frame the
163
- user resizes by its corner, the plot's grid and frame, the points in the
164
- first series colour, the dragged zoom rectangle, and a caption with the
165
- count and Reset zoom. */
246
+ /* ScatterChart: a frame the user resizes by its corner (no border of its
247
+ own; the plot's axes are its edges), the plot's grid and axes, the points
248
+ in the first series colour, the dragged zoom rectangle, and a caption with
249
+ the count and Reset zoom. */
166
250
  .scatter-chart {
167
251
  display: flex;
168
252
  flex-direction: column;
169
- gap: 6px;
253
+ gap: var(--space-3);
170
254
  margin: 0;
171
255
  color: var(--text);
172
- font: 11px var(--font-ui);
256
+ font: var(--font-size-caption)/var(--line-height-compact) var(--font-ui);
173
257
  }
174
258
 
175
259
  .scatter-frame {
@@ -179,37 +263,24 @@
179
263
  min-height: 180px;
180
264
  overflow: hidden;
181
265
  resize: both;
182
- border: 1px solid var(--border);
183
- border-radius: 6px;
184
- }
185
-
186
- .scatter-svg {
187
- display: block;
188
- }
189
-
190
- .scatter-grid {
191
- stroke: color-mix(in srgb, var(--border) 70%, transparent);
192
266
  }
193
267
 
194
- .scatter-tick text {
195
- fill: var(--row-meta-text);
196
- font-variant-numeric: tabular-nums;
268
+ /* The corner still resizes the frame, as a window's corner does: the
269
+ resize cursor shows over it, but the browser's striped grip is not
270
+ drawn, which no desktop pane wears. */
271
+ .scatter-frame::-webkit-resizer {
272
+ background: transparent;
197
273
  }
198
274
 
199
- .scatter-axes {
200
- fill: none;
201
- stroke: var(--border-strong);
275
+ .scatter-svg {
276
+ display: block;
277
+ font: var(--font-size-caption) var(--font-ui);
202
278
  }
203
279
 
280
+ /* The plot keeps the arrow, as a line plot's range drag does: the guide
281
+ line and the zoom rectangle show the gesture, and nothing here resizes. */
204
282
  .scatter-plot {
205
283
  fill: transparent;
206
- cursor: crosshair;
207
- }
208
-
209
- .scatter-selection {
210
- fill: color-mix(in srgb, var(--accent) 14%, transparent);
211
- stroke: var(--accent);
212
- pointer-events: none;
213
284
  }
214
285
 
215
286
  .scatter-point {
@@ -217,50 +288,75 @@
217
288
  fill-opacity: 0.8;
218
289
  stroke: var(--surface);
219
290
  stroke-width: 1;
220
- cursor: pointer;
291
+ cursor: default;
292
+ }
293
+
294
+ .scatter-point:hover {
295
+ fill-opacity: 1;
296
+ stroke: var(--text);
221
297
  }
222
298
 
223
- .scatter-point:hover,
224
- .scatter-point:focus-visible,
299
+ /* The picked point: full strength, a 2px ring in the text colour, and a
300
+ halo of its own colour behind it, so it is found among many. */
225
301
  .scatter-point.lit {
226
302
  fill-opacity: 1;
227
303
  stroke: var(--text);
304
+ stroke-width: var(--line-strong);
305
+ }
306
+
307
+ .scatter-halo {
308
+ fill: var(--chart-1);
309
+ fill-opacity: 0.25;
310
+ stroke: var(--chart-1);
311
+ stroke-width: 1;
312
+ pointer-events: none;
313
+ }
314
+
315
+ /* A point is a circle the outline cannot follow: the focus ring is its
316
+ stroke, in the ring's width and colour. */
317
+ .scatter-point:focus-visible {
318
+ fill-opacity: 1;
319
+ stroke: var(--accent);
320
+ stroke-width: var(--focus-ring-width);
228
321
  outline: none;
229
322
  }
230
323
 
231
- .scatter-title {
324
+ .scatter-title,
325
+ .result-chart-axis-title {
232
326
  fill: var(--text-dim);
233
- font-weight: 600;
327
+ font-weight: var(--font-weight-strong);
234
328
  }
235
329
 
236
330
  .scatter-caption {
237
331
  display: flex;
238
332
  align-items: center;
239
- gap: 12px;
333
+ gap: var(--space-6);
240
334
  color: var(--row-meta-text);
335
+ font-variant-numeric: tabular-nums;
241
336
  }
242
337
 
243
338
  /* ResultChart, the chart of a table: its title, legend, axes and their
244
339
  labels, grid, and marks in the chart tokens, drawn inside the SVG so its
245
- picture saves whole, and a read-out of the value under the pointer. */
340
+ picture saves whole, and the shared read-out beside the hovered mark. */
246
341
  .result-chart {
342
+ position: relative;
247
343
  display: flex;
248
344
  flex-direction: column;
249
- gap: 4px;
345
+ gap: var(--space-2);
250
346
  margin: 0;
251
347
  color: var(--text);
252
- font: 11px var(--font-ui);
348
+ font: var(--font-size-caption)/var(--line-height-compact) var(--font-ui);
253
349
  }
254
350
 
255
351
  .result-chart svg {
256
352
  display: block;
257
- font: 11px var(--font-ui);
353
+ font: var(--font-size-caption) var(--font-ui);
258
354
  }
259
355
 
260
356
  .result-chart-title {
261
357
  fill: var(--text);
262
- font-size: 13px;
263
- font-weight: 600;
358
+ font-size: var(--font-size-body);
359
+ font-weight: var(--font-weight-strong);
264
360
  }
265
361
 
266
362
  .result-chart-legend,
@@ -269,29 +365,45 @@
269
365
  font-variant-numeric: tabular-nums;
270
366
  }
271
367
 
272
- .result-chart-axis-title {
273
- fill: var(--text-dim);
274
- font-weight: 600;
275
- }
368
+ /* The count of entries a legend leaves out (.result-chart-legend-more) is a
369
+ quiet figure after the last one listed, with no swatch, in the legend's
370
+ own --row-meta-text. */
276
371
 
277
- .result-chart-grid {
278
- stroke: color-mix(in srgb, var(--border) 70%, transparent);
372
+ .result-chart-line {
373
+ stroke-width: 2;
374
+ stroke-linejoin: round;
279
375
  }
280
376
 
281
- .result-chart-baseline {
377
+ /* A slice's number on a pie whose colours repeat: a hairline leader from
378
+ the rim and the number in the text colour, matching its legend entry. */
379
+ .result-chart-slice-tag line {
282
380
  stroke: var(--border-strong);
283
381
  }
284
382
 
285
- .result-chart-line {
286
- stroke-width: 2;
287
- stroke-linejoin: round;
383
+ .result-chart-slice-tag text {
384
+ fill: var(--text);
385
+ font-variant-numeric: tabular-nums;
288
386
  }
289
387
 
388
+ /* An area's fill is a faint tint under the grid; the 2px line carries the
389
+ colour. Unstacked areas overlap, so each tint is masked out wherever a
390
+ series in front has a fill of its own (ResultChart.tsx): an overlap
391
+ shows the front series' tint alone, never a mix the legend lacks. */
290
392
  .result-chart-area {
291
- fill-opacity: 0.35;
393
+ fill-opacity: var(--chart-area-opacity);
292
394
  stroke: none;
293
395
  }
294
396
 
397
+ /* The mask's two values: luminance, not colours a theme paints. White
398
+ keeps a fill, black cuts it. */
399
+ .result-chart-mask-keep {
400
+ fill: white;
401
+ }
402
+
403
+ .result-chart-mask-cut {
404
+ fill: black;
405
+ }
406
+
295
407
  .result-chart-mark {
296
408
  stroke: var(--surface);
297
409
  stroke-width: 0.5;
@@ -299,12 +411,17 @@
299
411
 
300
412
  .result-chart-mark:hover {
301
413
  stroke: var(--text);
302
- stroke-width: 1.5;
414
+ stroke-width: var(--line-strong);
303
415
  }
304
416
 
305
- .result-chart-readout {
306
- min-height: 1.4em;
307
- margin: 0;
308
- color: var(--row-meta-text);
309
- font-variant-numeric: tabular-nums;
417
+ /* The read-out beside the hovered mark, centred on it; the words are also
418
+ in a hidden live line (.result-chart-readout) for assistive technology. */
419
+ .result-chart-float {
420
+ transform: translateY(-50%);
421
+ }
422
+
423
+ /* A hatched pie slice's stripes (PieFill.tsx): the surface the slices are
424
+ parted by, so the hue shows between them in every theme. */
425
+ .pie-hatch-stripe {
426
+ fill: var(--surface);
310
427
  }
@@ -1,3 +1,5 @@
1
+ /** How many series colours the theme defines (`--chart-1` to `--chart-8`). */
2
+ export declare const SERIES_COLOURS = 8;
1
3
  /**
2
4
  * The chart token the series at `index` (from zero) is drawn in, as a
3
5
  * `var()`: `--chart-1` for 0 through `--chart-8` for 7, starting over at 8.
@@ -3,7 +3,7 @@
3
3
  * theme's chart tokens in turn, starting over after the last.
4
4
  */
5
5
  /** How many series colours the theme defines (`--chart-1` to `--chart-8`). */
6
- const SERIES_COLOURS = 8;
6
+ export const SERIES_COLOURS = 8;
7
7
  /**
8
8
  * The chart token the series at `index` (from zero) is drawn in, as a
9
9
  * `var()`: `--chart-1` for 0 through `--chart-8` for 7, starting over at 8.
@@ -21,6 +21,12 @@ export interface DateTimePickerProps {
21
21
  readonly hint?: string;
22
22
  /** Whether the button is disabled. */
23
23
  readonly disabled?: boolean;
24
+ /**
25
+ * The button's height, to match the field beside it: `small` (24px) beside
26
+ * a page or toolbar field (`.field-sm`), the default; `regular` (28px)
27
+ * beside a dialog's field (`.field`).
28
+ */
29
+ readonly size?: 'regular' | 'small';
24
30
  /**
25
31
  * Writes picked parts as the field's value; `formatPicker` (ISO 8601,
26
32
  * date and time joined by `T`) unless given. A store that joins them with
@@ -45,6 +51,10 @@ export interface DateTimePickerProps {
45
51
  * `dateTime` labels' locale; the field words from the same group.
46
52
  *
47
53
  * The panel is an overlay (`data-overlay`), so a window key policy that
48
- * watches overlays holds its own keys while it is open.
54
+ * watches overlays holds its own keys while it is open. It stays beside its
55
+ * button in the document, so Tab reaches it next and a dialog keeps it, but
56
+ * is placed in the window (`position: fixed`): under the button, or above
57
+ * it when the room below is short, and always inside the window, so no
58
+ * scrolling pane or dialog cuts it. Today is marked in the month grid.
49
59
  */
50
- export declare function DateTimePicker({ kind, fraction, value, onChange, firstDay, label, hint, disabled, format, parse }: DateTimePickerProps): ReactElement;
60
+ export declare function DateTimePicker({ kind, fraction, value, onChange, firstDay, label, hint, disabled, size, format, parse }: DateTimePickerProps): ReactElement;