basalt-ui 2.27.2 → 2.29.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 +466 -307
- package/MIGRATING.md +358 -12
- package/agent/rules/basalt-batteries.md +1 -1
- package/agent/rules/basalt-mantine.md +1 -1
- package/agent/rules/basalt-tokens.md +2 -2
- package/agent/skills/basalt-app/SKILL.md +3 -3
- package/agent/skills/basalt-charts/SKILL.md +1 -1
- package/agent/skills/basalt-design/SKILL.md +12 -6
- package/agent/skills/basalt-design/references/catalogue.md +42 -36
- package/agent/skills/basalt-design/references/recipes.md +47 -0
- package/agent/skills/basalt-design/references/states.md +1 -1
- package/configs/oxlint-basalt.json +2 -1
- package/configs/oxlint-plugin.js +112 -3
- package/configs/oxlint-plugin.test.ts +99 -4
- package/configs/oxlint.json +1 -0
- package/dist/agent/chat/thread-message.d.ts +1 -160
- package/dist/agent/chat/thread-message.d.ts.map +1 -1
- package/dist/agent/chat/thread-message.js +7 -162
- package/dist/agent/chat/virtualize.d.ts +5 -5
- package/dist/charts/ChartCard.d.ts +14 -7
- package/dist/charts/ChartCard.d.ts.map +1 -1
- package/dist/charts/ChartCard.js +112 -23
- package/dist/charts/Lines.d.ts.map +1 -1
- package/dist/charts/Lines.js +11 -4
- package/dist/charts/Sparkline.d.ts +14 -2
- package/dist/charts/Sparkline.d.ts.map +1 -1
- package/dist/charts/Sparkline.js +155 -44
- package/dist/charts/chart-box.module.css +59 -2
- package/dist/charts/chart-box.module.css.d.ts +5 -0
- package/dist/charts/chart-card.module.css +28 -17
- package/dist/charts/chart-card.module.css.d.ts +3 -0
- package/dist/charts/compile.d.ts +1 -1
- package/dist/charts/compile.d.ts.map +1 -1
- package/dist/charts/compile.js +38 -27
- package/dist/charts/labels.d.ts +13 -3
- package/dist/charts/labels.d.ts.map +1 -1
- package/dist/charts/labels.js +131 -20
- package/dist/charts/legend.d.ts.map +1 -1
- package/dist/charts/legend.js +1 -1
- package/dist/charts/ref-label.d.ts +37 -8
- package/dist/charts/ref-label.d.ts.map +1 -1
- package/dist/charts/ref-label.js +55 -10
- package/dist/charts/sparkline.module.css +50 -0
- package/dist/charts/sparkline.module.css.d.ts +3 -0
- package/dist/charts/state.d.ts +4 -4
- package/dist/charts/state.d.ts.map +1 -1
- package/dist/charts/state.js +23 -5
- package/dist/cli/doctor-upgrade.d.ts +11 -0
- package/dist/cli/doctor-upgrade.d.ts.map +1 -1
- package/dist/cli/doctor-upgrade.js +54 -0
- package/dist/cli/doctor.d.ts.map +1 -1
- package/dist/cli/doctor.js +32 -0
- package/dist/cli/help.d.ts.map +1 -1
- package/dist/cli/help.js +8 -3
- package/dist/cli/index.d.ts +13 -13
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +36 -2
- package/dist/cli/init.d.ts +6 -0
- package/dist/cli/init.d.ts.map +1 -1
- package/dist/cli/init.js +118 -27
- package/dist/cli/router-wiring.d.ts +3 -0
- package/dist/cli/router-wiring.d.ts.map +1 -1
- package/dist/cli/router-wiring.js +2 -0
- package/dist/cli/shot/capture.d.ts +34 -2
- package/dist/cli/shot/capture.d.ts.map +1 -1
- package/dist/cli/shot/capture.js +95 -12
- package/dist/cli/shot/detect.d.ts +4 -1
- package/dist/cli/shot/detect.d.ts.map +1 -1
- package/dist/cli/shot/detect.js +38 -16
- package/dist/cli/shot/index.d.ts.map +1 -1
- package/dist/cli/shot/index.js +9 -2
- package/dist/cli/shot/measure.d.ts.map +1 -1
- package/dist/cli/shot/measure.js +11 -2
- package/dist/cli/shot/types.d.ts +4 -1
- package/dist/cli/shot/types.d.ts.map +1 -1
- package/dist/cli/sync.d.ts.map +1 -1
- package/dist/cli/sync.js +10 -2
- package/dist/common/could-not-load.d.ts +13 -0
- package/dist/common/could-not-load.d.ts.map +1 -0
- package/dist/common/could-not-load.js +14 -0
- package/dist/common/empty-copy.d.ts +16 -0
- package/dist/common/empty-copy.d.ts.map +1 -0
- package/dist/common/empty-copy.js +9 -0
- package/dist/common/index.d.ts +1 -0
- package/dist/common/index.d.ts.map +1 -1
- package/dist/common/index.js +3 -0
- package/dist/common/props.d.ts +20 -0
- package/dist/common/props.d.ts.map +1 -1
- package/dist/common/props.js +13 -1
- package/dist/common/retry-button.module.css +7 -3
- package/dist/common/virtual-rows.d.ts +196 -0
- package/dist/common/virtual-rows.d.ts.map +1 -0
- package/dist/common/virtual-rows.js +290 -0
- package/dist/controls/controls.module.css +33 -1
- package/dist/controls/controls.module.css.d.ts +2 -0
- package/dist/controls/enum-filter.d.ts.map +1 -1
- package/dist/controls/enum-filter.js +8 -2
- package/dist/controls/filter-pill.d.ts +27 -3
- package/dist/controls/filter-pill.d.ts.map +1 -1
- package/dist/controls/filter-pill.js +15 -4
- package/dist/controls/form-layout.d.ts +9 -3
- package/dist/controls/form-layout.d.ts.map +1 -1
- package/dist/controls/form-layout.js +74 -12
- package/dist/controls/form-layout.module.css +112 -7
- package/dist/controls/form-layout.module.css.d.ts +1 -0
- package/dist/controls/multi-select-filter.d.ts +2 -2
- package/dist/controls/multi-select-filter.d.ts.map +1 -1
- package/dist/controls/multi-select-filter.js +12 -6
- package/dist/controls/range-filter.d.ts +1 -1
- package/dist/controls/range-filter.d.ts.map +1 -1
- package/dist/controls/range-filter.js +8 -2
- package/dist/dashboard/bar-list.d.ts +5 -5
- package/dist/dashboard/bar-list.d.ts.map +1 -1
- package/dist/dashboard/bar-list.js +15 -8
- package/dist/dashboard/bar-list.module.css +21 -5
- package/dist/dashboard/board-nav.d.ts +22 -0
- package/dist/dashboard/board-nav.d.ts.map +1 -0
- package/dist/dashboard/board-nav.js +49 -0
- package/dist/dashboard/board.d.ts +52 -0
- package/dist/dashboard/board.d.ts.map +1 -0
- package/dist/dashboard/board.js +247 -0
- package/dist/dashboard/board.module.css +179 -0
- package/dist/dashboard/board.module.css.d.ts +28 -0
- package/dist/dashboard/empty-state.d.ts +6 -6
- package/dist/dashboard/empty-state.d.ts.map +1 -1
- package/dist/dashboard/empty-state.js +17 -8
- package/dist/dashboard/event-list-model.d.ts +54 -0
- package/dist/dashboard/event-list-model.d.ts.map +1 -0
- package/dist/dashboard/event-list-model.js +76 -0
- package/dist/dashboard/event-list-rows.d.ts +23 -0
- package/dist/dashboard/event-list-rows.d.ts.map +1 -0
- package/dist/dashboard/event-list-rows.js +89 -0
- package/dist/dashboard/event-list-scroll.d.ts +55 -0
- package/dist/dashboard/event-list-scroll.d.ts.map +1 -0
- package/dist/dashboard/event-list-scroll.js +216 -0
- package/dist/dashboard/event-list-skeleton.d.ts +10 -0
- package/dist/dashboard/event-list-skeleton.d.ts.map +1 -0
- package/dist/dashboard/event-list-skeleton.js +34 -0
- package/dist/dashboard/event-list.d.ts +65 -0
- package/dist/dashboard/event-list.d.ts.map +1 -0
- package/dist/dashboard/event-list.js +208 -0
- package/dist/dashboard/event-list.module.css +336 -0
- package/dist/dashboard/event-list.module.css.d.ts +34 -0
- package/dist/dashboard/index.d.ts +2 -0
- package/dist/dashboard/index.d.ts.map +1 -1
- package/dist/dashboard/index.js +4 -0
- package/dist/dashboard/meter-model.d.ts +6 -3
- package/dist/dashboard/meter-model.d.ts.map +1 -1
- package/dist/dashboard/meter-model.js +9 -4
- package/dist/dashboard/meter-parts.d.ts +3 -0
- package/dist/dashboard/meter-parts.d.ts.map +1 -1
- package/dist/dashboard/meter-parts.js +36 -6
- package/dist/dashboard/meter.d.ts +3 -3
- package/dist/dashboard/meter.d.ts.map +1 -1
- package/dist/dashboard/meter.js +10 -2
- package/dist/dashboard/meter.module.css +20 -12
- package/dist/dashboard/meter.module.css.d.ts +0 -1
- package/dist/dashboard/page-summary.d.ts +3 -3
- package/dist/dashboard/page-summary.d.ts.map +1 -1
- package/dist/dashboard/page-summary.js +7 -2
- package/dist/dashboard/page-summary.module.css +5 -2
- package/dist/dashboard/query-state.d.ts +9 -8
- package/dist/dashboard/query-state.d.ts.map +1 -1
- package/dist/dashboard/query-state.js +29 -11
- package/dist/dashboard/section.d.ts +11 -3
- package/dist/dashboard/section.d.ts.map +1 -1
- package/dist/dashboard/section.js +34 -7
- package/dist/dashboard/settings-section.d.ts +8 -5
- package/dist/dashboard/settings-section.d.ts.map +1 -1
- package/dist/dashboard/settings-section.js +12 -8
- package/dist/dashboard/settings-section.module.css +25 -4
- package/dist/dashboard/settings-section.module.css.d.ts +1 -0
- package/dist/dashboard/stat-card-parts.d.ts +5 -1
- package/dist/dashboard/stat-card-parts.d.ts.map +1 -1
- package/dist/dashboard/stat-card-parts.js +8 -3
- package/dist/dashboard/stat-card.d.ts +3 -3
- package/dist/dashboard/stat-card.d.ts.map +1 -1
- package/dist/dashboard/stat-card.js +47 -12
- package/dist/dashboard/stat-card.module.css +42 -7
- package/dist/dashboard/stat-card.module.css.d.ts +3 -0
- package/dist/dashboard/stat-group.d.ts +2 -2
- package/dist/dashboard/stat-group.d.ts.map +1 -1
- package/dist/dashboard/stat-group.js +10 -3
- package/dist/dashboard/stat-strip.d.ts +5 -4
- package/dist/dashboard/stat-strip.d.ts.map +1 -1
- package/dist/dashboard/stat-strip.js +41 -31
- package/dist/dashboard/stat-strip.module.css +8 -6
- package/dist/dashboard/visual-slot.d.ts +4 -0
- package/dist/dashboard/visual-slot.d.ts.map +1 -1
- package/dist/dashboard/visual-slot.js +2 -0
- package/dist/dashboard/widget-header.d.ts +6 -6
- package/dist/dashboard/widget-header.d.ts.map +1 -1
- package/dist/dashboard/widget-header.js +4 -2
- package/dist/dashboard/widget-header.module.css +12 -15
- package/dist/format/shared.d.ts.map +1 -1
- package/dist/format/shared.js +24 -1
- package/dist/guard/index.d.ts +1 -1
- package/dist/guard/index.d.ts.map +1 -1
- package/dist/guard/index.js +4 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/shell/app-main.module.css +18 -0
- package/dist/styles.css +69 -0
- package/dist/surfaces.d.ts +2 -2
- package/dist/surfaces.d.ts.map +1 -1
- package/dist/surfaces.js +8 -2
- package/dist/table/cell-kinds.d.ts +47 -0
- package/dist/table/cell-kinds.d.ts.map +1 -0
- package/dist/table/cell-kinds.js +180 -0
- package/dist/table/cell-kinds.module.css +55 -0
- package/dist/table/cell-kinds.module.css.d.ts +15 -0
- package/dist/table/data-table-fold.d.ts +155 -0
- package/dist/table/data-table-fold.d.ts.map +1 -0
- package/dist/table/data-table-fold.js +320 -0
- package/dist/table/data-table-state.d.ts +10 -3
- package/dist/table/data-table-state.d.ts.map +1 -1
- package/dist/table/data-table-state.js +11 -6
- package/dist/table/data-table.d.ts +13 -28
- package/dist/table/data-table.d.ts.map +1 -1
- package/dist/table/data-table.js +362 -255
- package/dist/table/data-table.module.css +282 -3
- package/dist/table/data-table.module.css.d.ts +16 -0
- package/dist/table/table-features.d.ts +34 -4
- package/dist/table/table-features.d.ts.map +1 -1
- package/dist/table/table-features.js +10 -0
- package/dist/theme/card-inset.module.css +35 -0
- package/dist/theme/controls.module.css +55 -2
- package/dist/theme/ctl-theme.d.ts.map +1 -1
- package/dist/theme/ctl-theme.js +5 -0
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/theme/index.js +14 -10
- package/dist/tokens/core.d.ts +1 -0
- package/dist/tokens/core.d.ts.map +1 -1
- package/dist/tokens/core.js +1 -0
- package/dist/tokens/derive.js +1 -1
- package/dist/tokens/palette.d.ts +2 -1
- package/dist/tokens/palette.d.ts.map +1 -1
- package/llms.txt +295 -5
- package/package.json +1 -1
- package/src/agent/chat/thread-message.tsx +10 -403
- package/src/agent/chat/virtualize.ts +5 -5
- package/src/charts/ChartCard.tsx +175 -31
- package/src/charts/Lines.tsx +13 -4
- package/src/charts/Sparkline.tsx +213 -48
- package/src/charts/chart-box.module.css +59 -2
- package/src/charts/chart-box.module.css.d.ts +5 -0
- package/src/charts/chart-card.module.css +28 -17
- package/src/charts/chart-card.module.css.d.ts +3 -0
- package/src/charts/compile.ts +59 -33
- package/src/charts/labels.ts +175 -24
- package/src/charts/legend.tsx +3 -2
- package/src/charts/ref-label.ts +114 -18
- package/src/charts/sparkline.module.css +50 -0
- package/src/charts/sparkline.module.css.d.ts +3 -0
- package/src/charts/state.tsx +40 -10
- package/src/cli/doctor-upgrade.ts +75 -0
- package/src/cli/doctor.ts +36 -0
- package/src/cli/help.ts +16 -6
- package/src/cli/index.ts +73 -67
- package/src/cli/init.ts +157 -36
- package/src/cli/router-wiring.ts +2 -2
- package/src/cli/shot/capture.ts +138 -16
- package/src/cli/shot/detect.ts +46 -22
- package/src/cli/shot/index.ts +8 -2
- package/src/cli/shot/measure.ts +11 -2
- package/src/cli/shot/types.ts +4 -1
- package/src/cli/sync.ts +12 -2
- package/src/common/could-not-load.ts +22 -0
- package/src/common/empty-copy.ts +17 -0
- package/src/common/index.ts +1 -0
- package/src/common/props.ts +30 -0
- package/src/common/retry-button.module.css +7 -3
- package/src/common/virtual-rows.tsx +682 -0
- package/src/controls/controls.module.css +33 -1
- package/src/controls/controls.module.css.d.ts +2 -0
- package/src/controls/enum-filter.tsx +8 -2
- package/src/controls/filter-pill.tsx +80 -27
- package/src/controls/form-layout.module.css +112 -7
- package/src/controls/form-layout.module.css.d.ts +1 -0
- package/src/controls/form-layout.tsx +115 -22
- package/src/controls/multi-select-filter.tsx +22 -11
- package/src/controls/range-filter.tsx +9 -3
- package/src/dashboard/bar-list.module.css +21 -5
- package/src/dashboard/bar-list.tsx +53 -45
- package/src/dashboard/board-nav.ts +67 -0
- package/src/dashboard/board.module.css +179 -0
- package/src/dashboard/board.module.css.d.ts +28 -0
- package/src/dashboard/board.tsx +415 -0
- package/src/dashboard/empty-state.tsx +21 -11
- package/src/dashboard/event-list-model.ts +125 -0
- package/src/dashboard/event-list-rows.tsx +117 -0
- package/src/dashboard/event-list-scroll.ts +291 -0
- package/src/dashboard/event-list-skeleton.tsx +62 -0
- package/src/dashboard/event-list.module.css +336 -0
- package/src/dashboard/event-list.module.css.d.ts +34 -0
- package/src/dashboard/event-list.tsx +336 -0
- package/src/dashboard/index.ts +2 -0
- package/src/dashboard/meter-model.ts +16 -7
- package/src/dashboard/meter-parts.tsx +53 -14
- package/src/dashboard/meter.module.css +20 -12
- package/src/dashboard/meter.module.css.d.ts +0 -1
- package/src/dashboard/meter.tsx +36 -18
- package/src/dashboard/page-summary.module.css +5 -2
- package/src/dashboard/page-summary.tsx +13 -6
- package/src/dashboard/query-state.tsx +55 -30
- package/src/dashboard/section.tsx +83 -41
- package/src/dashboard/settings-section.module.css +25 -4
- package/src/dashboard/settings-section.module.css.d.ts +1 -0
- package/src/dashboard/settings-section.tsx +18 -8
- package/src/dashboard/stat-card-parts.tsx +20 -3
- package/src/dashboard/stat-card.module.css +42 -7
- package/src/dashboard/stat-card.module.css.d.ts +3 -0
- package/src/dashboard/stat-card.tsx +55 -13
- package/src/dashboard/stat-group.tsx +22 -14
- package/src/dashboard/stat-strip.module.css +8 -6
- package/src/dashboard/stat-strip.tsx +29 -20
- package/src/dashboard/visual-slot.ts +5 -0
- package/src/dashboard/widget-header.module.css +12 -15
- package/src/dashboard/widget-header.tsx +8 -5
- package/src/format/shared.ts +30 -1
- package/src/guard/index.ts +7 -1
- package/src/index.ts +4 -0
- package/src/shell/app-main.module.css +18 -0
- package/src/styles.css +69 -0
- package/src/surfaces.ts +7 -1
- package/src/table/cell-kinds.module.css +55 -0
- package/src/table/cell-kinds.module.css.d.ts +15 -0
- package/src/table/cell-kinds.tsx +263 -0
- package/src/table/data-table-fold.tsx +567 -0
- package/src/table/data-table-state.ts +24 -13
- package/src/table/data-table.module.css +282 -3
- package/src/table/data-table.module.css.d.ts +16 -0
- package/src/table/data-table.tsx +430 -362
- package/src/table/table-features.ts +44 -4
- package/src/theme/__snapshots__/plain-theme.test.ts.snap +2 -66
- package/src/theme/card-inset.module.css +35 -0
- package/src/theme/controls.module.css +55 -2
- package/src/theme/ctl-theme.tsx +8 -0
- package/src/theme/index.ts +12 -8
- package/src/tokens/core.ts +1 -0
- package/src/tokens/derive.ts +1 -1
- package/src/tokens/palette.ts +4 -1
|
@@ -130,6 +130,7 @@
|
|
|
130
130
|
* wrapper sized by its own min-content would never read a shrunken `clientWidth` back.
|
|
131
131
|
*/
|
|
132
132
|
.foldWrapper {
|
|
133
|
+
position: relative;
|
|
133
134
|
min-width: 0;
|
|
134
135
|
}
|
|
135
136
|
|
|
@@ -139,25 +140,109 @@
|
|
|
139
140
|
* button cell line up under one another regardless of how many columns folded.
|
|
140
141
|
*/
|
|
141
142
|
.foldToggleCell {
|
|
142
|
-
|
|
143
|
+
box-sizing: border-box;
|
|
144
|
+
/* The 28px toggle sits inside the 40px row; the cell's own block padding added 3px to it. */
|
|
145
|
+
padding-block: 0;
|
|
146
|
+
padding-inline: 0;
|
|
143
147
|
text-align: center;
|
|
144
148
|
}
|
|
145
149
|
|
|
150
|
+
/* A ghost chevron: no box at rest (eight bordered squares down a column read as clutter), muted, ink
|
|
151
|
+
on hover and focus, the focus ring on keyboard focus. It is 28px so the 40px row holds it;
|
|
152
|
+
`data-basalt-hit` carries the tap target to the pointer tier's floor (`--vx-hit`) without growing
|
|
153
|
+
the row. */
|
|
146
154
|
.foldToggle {
|
|
147
155
|
display: inline-flex;
|
|
148
156
|
align-items: center;
|
|
149
157
|
justify-content: center;
|
|
158
|
+
box-sizing: border-box;
|
|
159
|
+
width: 1.75rem;
|
|
160
|
+
height: 1.75rem;
|
|
150
161
|
border: none;
|
|
162
|
+
border-radius: var(--vx-radius-ctrl);
|
|
151
163
|
background: none;
|
|
152
164
|
padding: 0;
|
|
153
165
|
color: var(--vx-muted);
|
|
154
166
|
cursor: pointer;
|
|
155
167
|
}
|
|
156
168
|
|
|
157
|
-
.foldToggle:hover
|
|
169
|
+
.foldToggle:hover,
|
|
170
|
+
.foldToggle:focus-visible {
|
|
171
|
+
color: var(--vx-ink);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.foldToggle:focus-visible {
|
|
175
|
+
outline: 2px solid var(--vx-accent);
|
|
176
|
+
outline-offset: 1px;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/* The header above the toggles: a micro count of the folded columns, the word included ("+4 cols"). */
|
|
180
|
+
.foldCount {
|
|
181
|
+
/* The header cell is mono caps with tracking; "+4 COLS" in it is 51px, wider than the 44px cell. */
|
|
182
|
+
font-family: var(--mantine-font-family);
|
|
183
|
+
letter-spacing: normal;
|
|
184
|
+
text-transform: none;
|
|
185
|
+
font-size: var(--vx-text-micro);
|
|
186
|
+
color: var(--vx-muted);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/* The first folded name under the count: one ellipsised line the width of the 44px toggle cell. */
|
|
190
|
+
.foldCountHint {
|
|
191
|
+
display: block;
|
|
192
|
+
inline-size: calc(2.75rem * var(--mantine-scale, 1));
|
|
193
|
+
overflow: hidden;
|
|
194
|
+
text-overflow: ellipsis;
|
|
195
|
+
white-space: nowrap;
|
|
196
|
+
opacity: 0.8;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
/* The count is a button: bare, inheriting the micro face, `help` for the mouse's title hint. */
|
|
200
|
+
.foldCountButton {
|
|
201
|
+
padding: 0;
|
|
202
|
+
border: none;
|
|
203
|
+
background: none;
|
|
204
|
+
font: inherit;
|
|
205
|
+
color: inherit;
|
|
206
|
+
cursor: help;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.foldCountButton:hover,
|
|
210
|
+
.foldCountButton:focus-visible {
|
|
211
|
+
color: var(--vx-ink);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.foldCountButton:focus-visible {
|
|
215
|
+
outline: 2px solid var(--vx-accent);
|
|
216
|
+
outline-offset: 2px;
|
|
217
|
+
border-radius: var(--vx-radius-ctrl);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
/* The popover naming the folded columns: a quiet list in the table's own sans. */
|
|
221
|
+
.foldNames {
|
|
222
|
+
font-size: var(--vx-text-sm);
|
|
158
223
|
color: var(--vx-ink);
|
|
159
224
|
}
|
|
160
225
|
|
|
226
|
+
.foldNameList {
|
|
227
|
+
margin: 0;
|
|
228
|
+
padding: 0;
|
|
229
|
+
list-style: none;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.foldChevron {
|
|
233
|
+
width: 0.875rem;
|
|
234
|
+
height: 0.875rem;
|
|
235
|
+
fill: none;
|
|
236
|
+
stroke: currentColor;
|
|
237
|
+
stroke-width: 1.5;
|
|
238
|
+
stroke-linecap: round;
|
|
239
|
+
stroke-linejoin: round;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.foldChevron[data-expanded='true'] {
|
|
243
|
+
transform: rotate(90deg);
|
|
244
|
+
}
|
|
245
|
+
|
|
161
246
|
/* The disclosure row itself carries no border of its own — it reads as part of the row above it,
|
|
162
247
|
not a new one. */
|
|
163
248
|
.foldDisclosureRowTr {
|
|
@@ -166,14 +251,22 @@
|
|
|
166
251
|
|
|
167
252
|
.foldDisclosureCell {
|
|
168
253
|
padding-top: 0;
|
|
254
|
+
padding-inline: 0;
|
|
169
255
|
background: var(--vx-surface-subtle);
|
|
170
256
|
}
|
|
171
257
|
|
|
172
258
|
.foldDisclosure {
|
|
259
|
+
/* The disclosure row spans every column, so it would scroll away with them: the content box is as
|
|
260
|
+
wide as the container and sticks at its start edge. */
|
|
261
|
+
position: sticky;
|
|
262
|
+
inset-inline-start: 0;
|
|
263
|
+
box-sizing: border-box;
|
|
264
|
+
width: var(--basalt-table-room, 100%);
|
|
265
|
+
padding-inline: var(--vx-space-row-inset-x, 0.5rem);
|
|
173
266
|
display: flex;
|
|
174
267
|
flex-direction: column;
|
|
175
268
|
gap: var(--vx-space-row-inset-y, 0.375rem);
|
|
176
|
-
padding: var(--vx-space-row-inset-y, 0.375rem)
|
|
269
|
+
padding-block: var(--vx-space-row-inset-y, 0.375rem);
|
|
177
270
|
}
|
|
178
271
|
|
|
179
272
|
.foldDisclosureRow {
|
|
@@ -193,3 +286,189 @@
|
|
|
193
286
|
color: var(--vx-ink);
|
|
194
287
|
text-align: right;
|
|
195
288
|
}
|
|
289
|
+
|
|
290
|
+
/*
|
|
291
|
+
* The header row's toolbar (`docs/waves/design-parity/SPEC.md` § 6.6): search, facet chips and the
|
|
292
|
+
* `actions` slot on ONE line from the `compact` container class (240px, `CONTAINER_CLASSES`) up.
|
|
293
|
+
* The header row is the container, so the table reads its own width and never the viewport; below
|
|
294
|
+
* 240px the row may wrap. The base `flex-wrap: wrap` is Mantine `Group`'s own; this module is
|
|
295
|
+
* unlayered, so it outranks `@layer mantine` regardless of specificity.
|
|
296
|
+
*/
|
|
297
|
+
.tableHeader {
|
|
298
|
+
container-type: inline-size;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
@container (min-width: 240px) {
|
|
302
|
+
.toolbar {
|
|
303
|
+
flex-wrap: nowrap;
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
/* The actions sit at the row's right edge even when no facet row is there to push them. */
|
|
308
|
+
.toolbarActions {
|
|
309
|
+
flex: 0 1 auto;
|
|
310
|
+
min-width: 0;
|
|
311
|
+
margin-inline-start: auto;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
/*
|
|
315
|
+
* The toolbar search and the footer's rows-per-page Select are the SAME height as the controls beside
|
|
316
|
+
* them at every pointer tier. At a coarse pointer the theme gives an input a real 44px floor
|
|
317
|
+
* (`min-height: var(--vx-hit)` — an input cannot host the `[data-basalt-hit]` overlay), which made the
|
|
318
|
+
* search ~12px taller than the 32px chips next to it. Here the visible box is the `ctl` height (the
|
|
319
|
+
* floor is lifted) and the wrapper hosts the 44px overlay instead, capped at the toolbar gap exactly
|
|
320
|
+
* like a pill. The input keeps its 16px type.
|
|
321
|
+
*/
|
|
322
|
+
.toolbarWrapper {
|
|
323
|
+
--vx-hit-gap: var(--vx-space-control-gap);
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
@media (pointer: coarse) {
|
|
327
|
+
.toolbarInput.toolbarInput {
|
|
328
|
+
min-height: 0;
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
/*
|
|
333
|
+
* Headers never wrap (SPEC § 6.6 / § 9.1): a two-line label doubles the header row and, at a compact
|
|
334
|
+
* container, was the first thing to give — the fold and the pin-and-scroll take the room instead.
|
|
335
|
+
*/
|
|
336
|
+
.table th {
|
|
337
|
+
white-space: nowrap;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
/*
|
|
341
|
+
* The table's own scroll box, a keyboard tab stop only while it overflows (`data-table.tsx`
|
|
342
|
+
* `scrollerProps`). The ring sits INSIDE the box: its edges are the container's, and an outset
|
|
343
|
+
* outline would be clipped by the page's own overflow.
|
|
344
|
+
*/
|
|
345
|
+
.scroller:focus-visible {
|
|
346
|
+
outline: 2px solid var(--vx-accent);
|
|
347
|
+
outline-offset: -2px;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
/*
|
|
351
|
+
* Inside the fold wrapper the ring is an overlay instead: an outline paints UNDER the sticky cells
|
|
352
|
+
* (pinned column, toggle, header), so at 390 it was open along the top and start edge. The overlay
|
|
353
|
+
* sits over them, on the wrapper — the scroller's own box, which never scrolls — closed on all four.
|
|
354
|
+
*/
|
|
355
|
+
@supports selector(:has(*)) {
|
|
356
|
+
.foldWrapper .scroller:focus-visible {
|
|
357
|
+
outline: none;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
.foldWrapper:has(.scroller:focus-visible)::after {
|
|
361
|
+
content: '';
|
|
362
|
+
position: absolute;
|
|
363
|
+
inset: 0;
|
|
364
|
+
z-index: 5;
|
|
365
|
+
border: 2px solid var(--vx-accent);
|
|
366
|
+
pointer-events: none;
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
/*
|
|
371
|
+
* A pinned cell is opaque in EVERY row state (TanStack issue 5392 — the cell under it bled through).
|
|
372
|
+
* Its inline `background-color` is the panel; the row's own state tint is layered over it as an image,
|
|
373
|
+
* so a translucent tint composes on the panel exactly as it does on the row. The selectors mirror
|
|
374
|
+
* Mantine's `Table.css` tint rules (hover on a pointer, `:active` on touch; striped by `nth-of-type`).
|
|
375
|
+
*/
|
|
376
|
+
.pinnedLayer {
|
|
377
|
+
--pinned-tint: transparent;
|
|
378
|
+
background-image: linear-gradient(var(--pinned-tint), var(--pinned-tint));
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
/* A sticky header paints `--mantine-color-body` on every `th`; its pinned cells must not read the
|
|
382
|
+
table's surface instead, or the pinned name is a different shade from the rest of the header. */
|
|
383
|
+
.table thead[data-sticky] {
|
|
384
|
+
--basalt-pin-fill: var(--mantine-color-body);
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
/* Body rows only: Mantine stamps `data-striped` / `data-hover` on the header's `<tr>` too, and an
|
|
388
|
+
unscoped rule tinted the pinned `<th>` of an odd first row — a grey block in the header. */
|
|
389
|
+
tbody > tr[data-striped='odd']:nth-of-type(odd) > .pinnedLayer,
|
|
390
|
+
tbody > tr[data-striped='even']:nth-of-type(even) > .pinnedLayer {
|
|
391
|
+
--pinned-tint: var(--table-striped-color);
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
@media (hover: hover) {
|
|
395
|
+
tbody > tr[data-hover]:hover > .pinnedLayer {
|
|
396
|
+
--pinned-tint: var(--tr-hover-bg);
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
@media (hover: none) {
|
|
401
|
+
tbody > tr[data-hover]:active > .pinnedLayer {
|
|
402
|
+
--pinned-tint: var(--tr-hover-bg);
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
/*
|
|
407
|
+
* The auto-pinned identifier: one line, ellipsized past 45% of the container (`--basalt-table-room`,
|
|
408
|
+
* written by the fold measurement; the title attribute carries the full text). Its min width is the
|
|
409
|
+
* inline `minWidth` from `columnDef.minSize`.
|
|
410
|
+
*/
|
|
411
|
+
th.pinnedFluid,
|
|
412
|
+
td.pinnedFluid {
|
|
413
|
+
overflow: hidden;
|
|
414
|
+
max-width: calc(var(--basalt-table-room, 24rem) * 0.45);
|
|
415
|
+
text-overflow: ellipsis;
|
|
416
|
+
white-space: nowrap;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
/* A hovered row takes the row-hover token on a fine pointer (Mantine's `highlightOnHover` paints it). */
|
|
420
|
+
.table {
|
|
421
|
+
--table-highlight-on-hover-color: var(--vx-surface-row-hover);
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
/*
|
|
425
|
+
* Rows hold one line (SPEC § 6.6, 40 px): a body cell never wraps, so the fold measures natural
|
|
426
|
+
* one-line widths and folds or pins instead of "fitting" by wrapping. Only an explicit `text` kind
|
|
427
|
+
* may wrap — never a pinned one. A full-row cell (empty and error bodies, the fold
|
|
428
|
+
* disclosure) holds prose and wraps inside the table width.
|
|
429
|
+
*/
|
|
430
|
+
.table td {
|
|
431
|
+
white-space: nowrap;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
.table td[data-kind='text']:not(.pinnedLayer),
|
|
435
|
+
.table td[colspan] {
|
|
436
|
+
white-space: normal;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
/*
|
|
440
|
+
* Column sizing (SPEC § 6.6): `data-fit` columns take their content width — `1px` plus a no-wrap
|
|
441
|
+
* cell is "as narrow as the content allows" in the auto table layout — and the one slack column (or
|
|
442
|
+
* the trailing spacer) takes everything else, so a value sits next to its name at any width. The
|
|
443
|
+
* fold reads these natural `<th>` widths; the pinned identifier keeps its own cap.
|
|
444
|
+
*/
|
|
445
|
+
.table [data-fit] {
|
|
446
|
+
width: 1px;
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
/* A fitted `text` column (all cells short) is as wide as its longest cell, so it holds one line: at
|
|
450
|
+
`width: 1px` the wrapping law would break "Payment failed" onto two. */
|
|
451
|
+
.table td[data-fit][data-kind='text']:not(.pinnedLayer) {
|
|
452
|
+
white-space: nowrap;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
.spacer {
|
|
456
|
+
padding: 0;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
/*
|
|
460
|
+
* A lone `danger` row action. Repeated once per row, a red icon at rest is a status hue on chrome,
|
|
461
|
+
* so it rests as the same neutral as any row action and takes the danger colour (the menu's red
|
|
462
|
+
* item) on the control's OWN hover or keyboard focus only — never the row's, which would light a
|
|
463
|
+
* column of red icons as the pointer moves down. A disabled or loading control stays neutral.
|
|
464
|
+
*/
|
|
465
|
+
.dangerAction:not(:disabled, [data-disabled], [data-loading]):focus-visible {
|
|
466
|
+
color: var(--mantine-color-red-light-color);
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
/* Hover only where a pointer can hover: a tap on a phone must not leave a sticky red icon. */
|
|
470
|
+
@media (hover: hover) {
|
|
471
|
+
.dangerAction:not(:disabled, [data-disabled], [data-loading]):hover {
|
|
472
|
+
color: var(--mantine-color-red-light-color);
|
|
473
|
+
}
|
|
474
|
+
}
|
|
@@ -7,18 +7,34 @@ declare const classes: {
|
|
|
7
7
|
readonly bulkBar: string
|
|
8
8
|
readonly bulkCount: string
|
|
9
9
|
readonly containment: string
|
|
10
|
+
readonly dangerAction: string
|
|
11
|
+
readonly foldChevron: string
|
|
12
|
+
readonly foldCount: string
|
|
13
|
+
readonly foldCountButton: string
|
|
14
|
+
readonly foldCountHint: string
|
|
10
15
|
readonly foldDisclosure: string
|
|
11
16
|
readonly foldDisclosureCell: string
|
|
12
17
|
readonly foldDisclosureLabel: string
|
|
13
18
|
readonly foldDisclosureRow: string
|
|
14
19
|
readonly foldDisclosureRowTr: string
|
|
15
20
|
readonly foldDisclosureValue: string
|
|
21
|
+
readonly foldNameList: string
|
|
22
|
+
readonly foldNames: string
|
|
16
23
|
readonly foldToggle: string
|
|
17
24
|
readonly foldToggleCell: string
|
|
18
25
|
readonly foldWrapper: string
|
|
19
26
|
readonly pageSticky: string
|
|
27
|
+
readonly toolbarInput: string
|
|
28
|
+
readonly toolbarWrapper: string
|
|
29
|
+
readonly tableHeader: string
|
|
30
|
+
readonly toolbar: string
|
|
31
|
+
readonly toolbarActions: string
|
|
32
|
+
readonly pinnedFluid: string
|
|
33
|
+
readonly pinnedLayer: string
|
|
34
|
+
readonly scroller: string
|
|
20
35
|
readonly selectCell: string
|
|
21
36
|
readonly selectHit: string
|
|
37
|
+
readonly spacer: string
|
|
22
38
|
readonly srOnly: string
|
|
23
39
|
readonly table: string
|
|
24
40
|
}
|