@bigpixelrocket/uiok 0.1.3 → 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.
- package/CHANGELOG.md +95 -1
- package/README.md +1 -1
- package/dist/activity/ActivityBar.d.ts +21 -8
- package/dist/activity/ActivityBar.js +15 -5
- package/dist/activity/activity.css +53 -6
- package/dist/button/Button.d.ts +10 -6
- package/dist/button/Button.js +6 -1
- package/dist/button/button.css +201 -33
- package/dist/charts/Line.logic.d.ts +6 -0
- package/dist/charts/Line.logic.js +9 -0
- package/dist/charts/LineChart.js +11 -4
- package/dist/charts/Pie.logic.d.ts +89 -1
- package/dist/charts/Pie.logic.js +272 -2
- package/dist/charts/PieChart.d.ts +2 -1
- package/dist/charts/PieChart.js +12 -5
- package/dist/charts/PieFill.d.ts +15 -0
- package/dist/charts/PieFill.js +33 -0
- package/dist/charts/ResultChart.d.ts +2 -2
- package/dist/charts/ResultChart.js +173 -47
- package/dist/charts/ResultChart.logic.d.ts +60 -4
- package/dist/charts/ResultChart.logic.js +105 -6
- package/dist/charts/Scatter.logic.d.ts +18 -4
- package/dist/charts/Scatter.logic.js +98 -22
- package/dist/charts/ScatterChart.js +19 -5
- package/dist/charts/charts.css +233 -116
- package/dist/charts/seriesColour.d.ts +2 -0
- package/dist/charts/seriesColour.js +1 -1
- package/dist/datetime/DateTimePicker.d.ts +12 -2
- package/dist/datetime/DateTimePicker.js +61 -16
- package/dist/datetime/DateTimePicker.logic.d.ts +29 -0
- package/dist/datetime/DateTimePicker.logic.js +25 -0
- package/dist/datetime/datetime.css +89 -49
- package/dist/dialog/ConfirmDialog.d.ts +69 -20
- package/dist/dialog/ConfirmDialog.js +39 -12
- package/dist/dialog/DialogLayer.d.ts +25 -0
- package/dist/dialog/DialogLayer.js +24 -0
- package/dist/dialog/DialogLegend.d.ts +2 -1
- package/dist/dialog/DialogLegend.js +10 -5
- package/dist/dialog/DialogLegend.logic.d.ts +15 -3
- package/dist/dialog/DialogLegend.logic.js +8 -4
- package/dist/dialog/DialogLists.d.ts +157 -0
- package/dist/dialog/DialogLists.js +137 -0
- package/dist/dialog/ModalDialog.d.ts +20 -15
- package/dist/dialog/ModalDialog.js +22 -7
- package/dist/dialog/dialog.css +570 -127
- package/dist/dialog/index.d.ts +7 -1
- package/dist/dialog/index.js +7 -1
- package/dist/field/Check.d.ts +15 -0
- package/dist/field/Check.js +23 -0
- package/dist/field/field.css +812 -0
- package/dist/field/index.d.ts +10 -0
- package/dist/field/index.js +10 -0
- package/dist/field/labelHelp.d.ts +33 -0
- package/dist/field/labelHelp.js +22 -0
- package/dist/filter/FilterIcon.js +2 -1
- package/dist/filter/filter.css +72 -20
- package/dist/grid/DataGrid.d.ts +8 -1
- package/dist/grid/DataGrid.js +115 -40
- package/dist/grid/DataGrid.logic.d.ts +15 -3
- package/dist/grid/DataGrid.logic.js +18 -5
- package/dist/grid/grid.css +481 -56
- package/dist/icon/Spinner.d.ts +16 -0
- package/dist/icon/Spinner.js +13 -0
- package/dist/icon/index.d.ts +5 -0
- package/dist/icon/index.js +5 -0
- package/dist/icon/sizes.d.ts +19 -0
- package/dist/icon/sizes.js +19 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/keychord/KeyChord.d.ts +12 -1
- package/dist/keychord/KeyChord.js +2 -2
- package/dist/keychord/index.d.ts +1 -1
- package/dist/keychord/keychord.css +87 -9
- package/dist/labels/dialog.d.ts +12 -1
- package/dist/labels/dialog.js +3 -1
- package/dist/labels/selectAll.d.ts +4 -4
- package/dist/labels/selectAll.js +1 -1
- package/dist/legend/KeyLegendStrip.js +1 -1
- package/dist/legend/legend.css +82 -57
- package/dist/listing/Listing.d.ts +17 -10
- package/dist/listing/Listing.js +33 -26
- package/dist/listing/listing.css +1665 -237
- package/dist/menu/menu.css +227 -67
- package/dist/menu/useBellBeat.js +2 -2
- package/dist/namecut/NameCut.d.ts +3 -1
- package/dist/namecut/NameCut.js +152 -5
- package/dist/namecut/NameCut.logic.d.ts +5 -3
- package/dist/namecut/NameCut.logic.js +20 -5
- package/dist/namecut/namecut.css +27 -7
- package/dist/pager/Pager.d.ts +12 -4
- package/dist/pager/Pager.js +21 -7
- package/dist/pager/pager.css +41 -30
- package/dist/palette/Palette.js +2 -1
- package/dist/palette/palette.css +121 -60
- package/dist/pane/PaneActions.d.ts +56 -14
- package/dist/pane/PaneActions.js +64 -16
- package/dist/pane/PaneFrame.d.ts +37 -5
- package/dist/pane/PaneFrame.js +246 -11
- package/dist/pane/index.d.ts +4 -2
- package/dist/pane/index.js +4 -2
- package/dist/pane/toolWords.d.ts +14 -0
- package/dist/pane/toolWords.js +26 -0
- package/dist/pane/useToolbarFit.d.ts +25 -0
- package/dist/pane/useToolbarFit.js +95 -0
- package/dist/run/RunHeader.d.ts +5 -3
- package/dist/run/RunHeader.js +11 -8
- package/dist/run/run.css +64 -79
- package/dist/segmented/SegmentedChoice.d.ts +18 -2
- package/dist/segmented/SegmentedChoice.js +18 -7
- package/dist/segmented/segmented.css +62 -22
- package/dist/selectall/SelectAllBar.d.ts +4 -3
- package/dist/selectall/SelectAllBar.js +4 -3
- package/dist/selectall/selectall.css +17 -12
- package/dist/shell/shell.css +1073 -0
- package/dist/styles.css +620 -22
- package/dist/surface/surface.css +154 -0
- package/dist/tabs/PageTabs.d.ts +10 -5
- package/dist/tabs/PageTabs.js +126 -37
- package/dist/tabs/tabs.css +131 -51
- package/dist/terminal/Terminal.js +3 -1
- package/dist/terminal/Terminal.logic.d.ts +5 -4
- package/dist/terminal/Terminal.logic.js +9 -4
- package/dist/terminal/TerminalMenu.d.ts +4 -1
- package/dist/terminal/TerminalMenu.js +12 -5
- package/dist/terminal/ghostty/contrast.logic.d.ts +45 -0
- package/dist/terminal/ghostty/contrast.logic.js +130 -0
- package/dist/terminal/ghostty/core.d.ts +6 -0
- package/dist/terminal/ghostty/renderer.d.ts +9 -2
- package/dist/terminal/ghostty/renderer.js +91 -14
- package/dist/terminal/ghostty/surface.d.ts +8 -0
- package/dist/terminal/ghostty/surface.js +27 -1
- package/dist/terminal/terminal.css +87 -61
- package/dist/text/text.css +16 -7
- package/dist/themes/catalog.js +4 -3
- package/dist/themes/themes.generated.css +1307 -264
- package/dist/themes/tokens.d.ts +69 -14
- package/dist/themes/tokens.js +920 -97
- package/dist/tokens.css +239 -0
- package/dist/tooltip/Tooltip.d.ts +6 -0
- package/dist/tooltip/Tooltip.js +48 -6
- package/dist/tooltip/Tooltip.logic.d.ts +89 -12
- package/dist/tooltip/Tooltip.logic.js +142 -20
- package/dist/tooltip/index.d.ts +1 -1
- package/dist/tooltip/index.js +1 -1
- package/dist/tooltip/tooltip.css +39 -9
- package/package.json +9 -3
package/dist/charts/charts.css
CHANGED
|
@@ -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
|
-
|
|
6
|
-
|
|
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:
|
|
10
|
-
gap:
|
|
60
|
+
align-items: center;
|
|
61
|
+
gap: var(--space-8);
|
|
11
62
|
margin: 0;
|
|
12
63
|
color: var(--text);
|
|
13
|
-
font:
|
|
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
|
-
|
|
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:
|
|
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:
|
|
40
|
-
|
|
41
|
-
|
|
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(--
|
|
116
|
+
background: var(--cursor-row);
|
|
117
|
+
box-shadow: inset var(--line-strong) 0 0 var(--cursor-bar);
|
|
46
118
|
}
|
|
47
119
|
|
|
48
|
-
.pie-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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
|
-
|
|
62
|
-
|
|
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:
|
|
160
|
+
gap: var(--space-2);
|
|
68
161
|
min-width: 0;
|
|
69
162
|
margin: 0;
|
|
70
163
|
color: var(--text);
|
|
71
|
-
font:
|
|
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
|
-
|
|
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
|
-
|
|
111
|
-
|
|
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
|
-
|
|
115
|
-
|
|
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
|
-
|
|
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:
|
|
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:
|
|
243
|
+
gap: var(--space-3);
|
|
153
244
|
}
|
|
154
245
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
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:
|
|
253
|
+
gap: var(--space-3);
|
|
170
254
|
margin: 0;
|
|
171
255
|
color: var(--text);
|
|
172
|
-
font:
|
|
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
|
-
|
|
195
|
-
|
|
196
|
-
|
|
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-
|
|
200
|
-
|
|
201
|
-
|
|
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:
|
|
291
|
+
cursor: default;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.scatter-point:hover {
|
|
295
|
+
fill-opacity: 1;
|
|
296
|
+
stroke: var(--text);
|
|
221
297
|
}
|
|
222
298
|
|
|
223
|
-
|
|
224
|
-
.
|
|
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:
|
|
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:
|
|
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
|
|
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:
|
|
345
|
+
gap: var(--space-2);
|
|
250
346
|
margin: 0;
|
|
251
347
|
color: var(--text);
|
|
252
|
-
font:
|
|
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:
|
|
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:
|
|
263
|
-
font-weight:
|
|
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-
|
|
273
|
-
|
|
274
|
-
|
|
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-
|
|
278
|
-
stroke:
|
|
372
|
+
.result-chart-line {
|
|
373
|
+
stroke-width: 2;
|
|
374
|
+
stroke-linejoin: round;
|
|
279
375
|
}
|
|
280
376
|
|
|
281
|
-
|
|
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-
|
|
286
|
-
|
|
287
|
-
|
|
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:
|
|
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:
|
|
414
|
+
stroke-width: var(--line-strong);
|
|
303
415
|
}
|
|
304
416
|
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
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;
|