@slotted/react 0.1.0-beta.45 → 0.1.0-beta.46
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/dist/{chart-C4uPgUW8.js → chart-sewqbbm-.js} +385 -383
- package/dist/chart.js +1 -1
- package/dist/dashboard-grid-CBqqgiKr.js +1238 -0
- package/dist/dashboard-grid.js +1 -1
- package/dist/{detail-panel-Czs05E_D.js → detail-panel-WW2-BwEP.js} +2 -2
- package/dist/detail-panel.js +1 -1
- package/dist/docs/chart.json +15 -1
- package/dist/docs/chart.md +4 -2
- package/dist/docs/dashboard-grid.json +9 -2
- package/dist/docs/dashboard-grid.md +2 -1
- package/dist/docs/field.json +1 -1
- package/dist/docs/field.md +1 -1
- package/dist/docs/guidelines/index.md +1 -1
- package/dist/docs/guidelines/overviews.md +1 -1
- package/dist/docs/guidelines/record-pages.md +3 -3
- package/dist/docs/menu.json +1 -1
- package/dist/docs/menu.md +1 -1
- package/dist/docs/page-header.examples.md +120 -76
- package/dist/docs/page-header.json +57 -5
- package/dist/docs/page-header.md +14 -1
- package/dist/docs/popover.json +1 -1
- package/dist/docs/popover.md +1 -1
- package/dist/docs/select.json +1 -1
- package/dist/docs/select.md +1 -1
- package/dist/docs/stat-card.examples.md +121 -0
- package/dist/docs/stat-card.json +205 -0
- package/dist/docs/stat-card.md +51 -1
- package/dist/index.js +64 -64
- package/dist/page-header-nMgl8RZu.js +395 -0
- package/dist/page-header.js +2 -2
- package/dist/page.js +1 -1
- package/dist/stat-card-Bt92l0qa.js +344 -0
- package/dist/stat-card.js +2 -2
- package/dist/styles/chart.css +1 -1
- package/dist/styles/dashboard-grid.css +1 -1
- package/dist/styles/detail-panel.css +1 -1
- package/dist/styles/index.css +4 -4
- package/dist/styles/page-header.css +1 -1
- package/dist/styles/stat-card.css +7 -1
- package/dist/styles.css +1 -1
- package/dist/types/chart/chart.d.ts.map +1 -1
- package/dist/types/chart/chart.types.d.ts +8 -0
- package/dist/types/chart/chart.types.d.ts.map +1 -1
- package/dist/types/chart/index.d.ts +1 -1
- package/dist/types/chart/index.d.ts.map +1 -1
- package/dist/types/dashboard-grid/dashboard-grid-context.d.ts +6 -0
- package/dist/types/dashboard-grid/dashboard-grid-context.d.ts.map +1 -1
- package/dist/types/dashboard-grid/dashboard-grid.d.ts +1 -1
- package/dist/types/dashboard-grid/dashboard-grid.d.ts.map +1 -1
- package/dist/types/dashboard-grid/dashboard-grid.types.d.ts +8 -0
- package/dist/types/dashboard-grid/dashboard-grid.types.d.ts.map +1 -1
- package/dist/types/dashboard-grid/index.d.ts +1 -1
- package/dist/types/dashboard-grid/index.d.ts.map +1 -1
- package/dist/types/dashboard-grid/use-edit-status.d.ts +8 -0
- package/dist/types/dashboard-grid/use-edit-status.d.ts.map +1 -0
- package/dist/types/page-header/index.d.ts +2 -1
- package/dist/types/page-header/index.d.ts.map +1 -1
- package/dist/types/page-header/page-header-notice.d.ts +10 -0
- package/dist/types/page-header/page-header-notice.d.ts.map +1 -0
- package/dist/types/page-header/page-header.types.d.ts +17 -0
- package/dist/types/page-header/page-header.types.d.ts.map +1 -1
- package/dist/types/select/use-select-sheet.d.ts +2 -2
- package/dist/types/stat-card/delta-run.d.ts +15 -0
- package/dist/types/stat-card/delta-run.d.ts.map +1 -0
- package/dist/types/stat-card/index.d.ts +3 -1
- package/dist/types/stat-card/index.d.ts.map +1 -1
- package/dist/types/stat-card/stat-card-delta.d.ts.map +1 -1
- package/dist/types/stat-card/stat-card-group.d.ts +10 -0
- package/dist/types/stat-card/stat-card-group.d.ts.map +1 -0
- package/dist/types/stat-card/stat-card.types.d.ts +38 -0
- package/dist/types/stat-card/stat-card.types.d.ts.map +1 -1
- package/dist/types/stat-card/stat-delta.d.ts +9 -0
- package/dist/types/stat-card/stat-delta.d.ts.map +1 -0
- package/package.json +6 -6
- package/dist/dashboard-grid-_3H4G0dP.js +0 -1207
- package/dist/page-header-DK896DGD.js +0 -367
- package/dist/stat-card-D6NMjkZM.js +0 -295
- /package/dist/{page-DT8L0iRT.js → use-page-size-class-Cv1DbtKx.js} +0 -0
package/dist/dashboard-grid.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, i as t, n, o as r, r as i, t as a } from "./dashboard-grid-
|
|
1
|
+
import { a as e, i as t, n, o as r, r as i, t as a } from "./dashboard-grid-CBqqgiKr.js";
|
|
2
2
|
export { t as DASHBOARD_GRID_FALLBACK, i as DashboardGrid, e as DashboardGridDefaultsProvider, n as DashboardWidget, r as useDashboardGridDefaults, a as usePersistedDashboardLayout };
|
|
@@ -2,8 +2,8 @@ import { r as e } from "./i18n-D7xXDd8-.js";
|
|
|
2
2
|
import { n as t } from "./badge-DFskjsxA.js";
|
|
3
3
|
import { t as n } from "./skeleton-DTqt2GEv.js";
|
|
4
4
|
import { n as r } from "./container-WoYiHo50.js";
|
|
5
|
-
import { s as i } from "./page-
|
|
6
|
-
import {
|
|
5
|
+
import { s as i } from "./use-page-size-class-Cv1DbtKx.js";
|
|
6
|
+
import { T as a } from "./page-header-nMgl8RZu.js";
|
|
7
7
|
import { d as o, f as s, i as c, l, n as u, o as d, u as f } from "./section-CVTQdWBl.js";
|
|
8
8
|
import { a as p, n as m, o as h, r as g, t as _ } from "./tabs-C-Bc7WmQ.js";
|
|
9
9
|
import { keyedProps as v } from "@slotted/core/selector-key";
|
package/dist/detail-panel.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./detail-panel-
|
|
1
|
+
import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./detail-panel-WW2-BwEP.js";
|
|
2
2
|
export { o as DetailPanel, i as DetailPanelBody, r as DetailPanelDefaultsProvider, t as DetailPanelSection, e as DetailPanelTabs, n as useDetailPanel, a as useDetailPanelDefaults };
|
package/dist/docs/chart.json
CHANGED
|
@@ -118,6 +118,11 @@
|
|
|
118
118
|
"legendOverflow": [
|
|
119
119
|
"collapse",
|
|
120
120
|
"wrap"
|
|
121
|
+
],
|
|
122
|
+
"actionsPlacement": [
|
|
123
|
+
"inline",
|
|
124
|
+
"below",
|
|
125
|
+
"auto"
|
|
121
126
|
]
|
|
122
127
|
},
|
|
123
128
|
"members": {
|
|
@@ -147,6 +152,7 @@
|
|
|
147
152
|
"toolbar": "visible",
|
|
148
153
|
"palette": "categorical",
|
|
149
154
|
"legendOverflow": "collapse",
|
|
155
|
+
"actionsPlacement": "inline",
|
|
150
156
|
"fullscreen": false
|
|
151
157
|
},
|
|
152
158
|
"capabilities": [
|
|
@@ -755,6 +761,13 @@
|
|
|
755
761
|
"appliesTo": "Chart",
|
|
756
762
|
"description": "Each item’s value at the active point, or its last"
|
|
757
763
|
},
|
|
764
|
+
{
|
|
765
|
+
"name": "actionsPlacement",
|
|
766
|
+
"type": "'inline' | 'below' | 'auto'",
|
|
767
|
+
"defaultValue": "inline",
|
|
768
|
+
"appliesTo": "Chart",
|
|
769
|
+
"description": "Where the header draws actions: on the title’s line; below, on a row of their own under the title and the toolbar across the header’s width, where a fullWidth control spans the card; auto, below in a chart 480 pixels wide or less and inline otherwise"
|
|
770
|
+
},
|
|
758
771
|
{
|
|
759
772
|
"name": "legendOverflow",
|
|
760
773
|
"type": "'collapse' | 'wrap'",
|
|
@@ -993,7 +1006,7 @@
|
|
|
993
1006
|
"type": "ChartDefaults",
|
|
994
1007
|
"defaultValue": "—",
|
|
995
1008
|
"appliesTo": "Application",
|
|
996
|
-
"description": "size, variant, palette, toolbar, renderer, grid, legendOverflow, tooltip and animate, once; a prop still wins"
|
|
1009
|
+
"description": "size, variant, palette, toolbar, renderer, grid, legendOverflow, actionsPlacement, tooltip and animate, once; a prop still wins"
|
|
997
1010
|
},
|
|
998
1011
|
{
|
|
999
1012
|
"name": "preloadChartEngine",
|
|
@@ -1099,6 +1112,7 @@
|
|
|
1099
1112
|
"--slotted-chart-table-surface",
|
|
1100
1113
|
"--slotted-chart-tooltip-surface",
|
|
1101
1114
|
"--slotted-control-border-color",
|
|
1115
|
+
"--slotted-control-fine-height-sm",
|
|
1102
1116
|
"--slotted-control-font-size-sm",
|
|
1103
1117
|
"--slotted-control-gap-md",
|
|
1104
1118
|
"--slotted-control-gap-sm",
|
package/dist/docs/chart.md
CHANGED
|
@@ -133,6 +133,7 @@ export default function ChartBasicExample() {
|
|
|
133
133
|
| `legend` | `boolean` | true | Chart | Whether the legend is drawn |
|
|
134
134
|
| `legendInteractive` | `boolean` | true | Chart | Legend items as toggles, or as a static key |
|
|
135
135
|
| `legendValues` | `boolean` | false | Chart | Each item’s value at the active point, or its last |
|
|
136
|
+
| `actionsPlacement` | `'inline' \| 'below' \| 'auto'` | inline | Chart | Where the header draws actions: on the title’s line; below, on a row of their own under the title and the toolbar across the header’s width, where a fullWidth control spans the card; auto, below in a chart 480 pixels wide or less and inline otherwise |
|
|
136
137
|
| `legendOverflow` | `'collapse' \| 'wrap'` | collapse | Chart | One line and +N, or as many lines as it takes |
|
|
137
138
|
| `trigger` | `'axis' \| 'item' \| 'none'` | axis | Chart | What the tooltip reads: the category, the point, or nothing. item for pie and scatter |
|
|
138
139
|
| `tooltip` | `ChartTooltipSettings` | — | Chart | sort, total and indicator for the default tooltip |
|
|
@@ -166,7 +167,7 @@ export default function ChartBasicExample() {
|
|
|
166
167
|
| `extendOption` | `(option) => option` | — | Chart | The engine’s option before it is drawn: the escape hatch for what the contract does not say |
|
|
167
168
|
| `handleRef` | `Ref<ChartHandle>` | — | Chart | focus(), resetZoom(), toDataURL() and toCsv() |
|
|
168
169
|
| `ref` | `Ref<HTMLElement>` | — | Chart | The figure. Native attributes pass through |
|
|
169
|
-
| `ChartDefaultsProvider` | `ChartDefaults` | — | Application | size, variant, palette, toolbar, renderer, grid, legendOverflow, tooltip and animate, once; a prop still wins |
|
|
170
|
+
| `ChartDefaultsProvider` | `ChartDefaults` | — | Application | size, variant, palette, toolbar, renderer, grid, legendOverflow, actionsPlacement, tooltip and animate, once; a prop still wins |
|
|
170
171
|
| `preloadChartEngine` | `(kinds?: ChartKind[]) => Promise<void>` | — | Application | Fetches the engine chunks ahead of the first chart, on a route’s loader |
|
|
171
172
|
|
|
172
173
|
## Events
|
|
@@ -207,6 +208,7 @@ export default function ChartBasicExample() {
|
|
|
207
208
|
| `toolbar` | `visible`, `hover`, `none` | `visible` |
|
|
208
209
|
| `palette` | `categorical`, `sequential`, `focus` | `categorical` |
|
|
209
210
|
| `legendOverflow` | `collapse`, `wrap` | `collapse` |
|
|
211
|
+
| `actionsPlacement` | `inline`, `below`, `auto` | `inline` |
|
|
210
212
|
|
|
211
213
|
## Rules
|
|
212
214
|
|
|
@@ -219,7 +221,7 @@ export default function ChartBasicExample() {
|
|
|
219
221
|
|
|
220
222
|
## Tokens
|
|
221
223
|
|
|
222
|
-
`--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-medium`, `--slotted-border-width-thick`, `--slotted-border-width-thin`, `--slotted-chart-area-opacity`, `--slotted-chart-axis-color`, `--slotted-chart-band-color`, `--slotted-chart-bar-radius`, `--slotted-chart-card-padding-block`, `--slotted-chart-card-padding-inline`, `--slotted-chart-card-radius`, `--slotted-chart-color-1`, `--slotted-chart-color-2`, `--slotted-chart-color-3`, `--slotted-chart-color-4`, `--slotted-chart-color-5`, `--slotted-chart-color-6`, `--slotted-chart-color-7`, `--slotted-chart-color-8`, `--slotted-chart-crosshair-color`, `--slotted-chart-focus-color`, `--slotted-chart-gap`, `--slotted-chart-grid-color`, `--slotted-chart-header-gap`, `--slotted-chart-inset`, `--slotted-chart-label-color`, `--slotted-chart-label-size`, `--slotted-chart-line-width`, `--slotted-chart-marker-size`, `--slotted-chart-overlay-backdrop-filter`, `--slotted-chart-plot-block-size`, `--slotted-chart-plot-block-size-lg`, `--slotted-chart-plot-block-size-sm`, `--slotted-chart-radius`, `--slotted-chart-reference-color`, `--slotted-chart-sequential-color`, `--slotted-chart-skeleton-hole`, `--slotted-chart-surface`, `--slotted-chart-table-header-surface`, `--slotted-chart-table-surface`, `--slotted-chart-tooltip-surface`, `--slotted-control-border-color`, `--slotted-control-font-size-sm`, `--slotted-control-gap-md`, `--slotted-control-gap-sm`, `--slotted-control-height-sm`, `--slotted-control-inner-size-sm`, `--slotted-control-radius`, `--slotted-data-1`, `--slotted-data-2`, `--slotted-data-3`, `--slotted-data-4`, `--slotted-data-5`, `--slotted-data-6`, `--slotted-data-7`, `--slotted-data-8`, `--slotted-duration-instant`, `--slotted-duration-long`, `--slotted-duration-short`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-family-heading`, `--slotted-font-family-sans`, `--slotted-font-size-2xl`, `--slotted-font-size-lg`, `--slotted-font-size-md`, `--slotted-font-size-sm`, `--slotted-font-size-xl`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-semibold`, `--slotted-line-height-2xl`, `--slotted-line-height-lg`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-line-height-xs`, `--slotted-radius-full`, `--slotted-radius-lg`, `--slotted-radius-md`, `--slotted-radius-sm`, `--slotted-radius-xs`, `--slotted-shadow-md`, `--slotted-space-1`, `--slotted-space-12`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-space-8`, `--slotted-space-9`, `--slotted-surface`, `--slotted-surface-raised`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-text`, `--slotted-tone-danger-text`, `--slotted-tone-info-text`, `--slotted-tone-secondary-subtle-hover`, `--slotted-tone-secondary-surface`, `--slotted-tone-secondary-text`, `--slotted-tone-success-text`, `--slotted-tone-warning-text`, `--slotted-z-index-overlay`, `--slotted-z-index-popover`
|
|
224
|
+
`--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-medium`, `--slotted-border-width-thick`, `--slotted-border-width-thin`, `--slotted-chart-area-opacity`, `--slotted-chart-axis-color`, `--slotted-chart-band-color`, `--slotted-chart-bar-radius`, `--slotted-chart-card-padding-block`, `--slotted-chart-card-padding-inline`, `--slotted-chart-card-radius`, `--slotted-chart-color-1`, `--slotted-chart-color-2`, `--slotted-chart-color-3`, `--slotted-chart-color-4`, `--slotted-chart-color-5`, `--slotted-chart-color-6`, `--slotted-chart-color-7`, `--slotted-chart-color-8`, `--slotted-chart-crosshair-color`, `--slotted-chart-focus-color`, `--slotted-chart-gap`, `--slotted-chart-grid-color`, `--slotted-chart-header-gap`, `--slotted-chart-inset`, `--slotted-chart-label-color`, `--slotted-chart-label-size`, `--slotted-chart-line-width`, `--slotted-chart-marker-size`, `--slotted-chart-overlay-backdrop-filter`, `--slotted-chart-plot-block-size`, `--slotted-chart-plot-block-size-lg`, `--slotted-chart-plot-block-size-sm`, `--slotted-chart-radius`, `--slotted-chart-reference-color`, `--slotted-chart-sequential-color`, `--slotted-chart-skeleton-hole`, `--slotted-chart-surface`, `--slotted-chart-table-header-surface`, `--slotted-chart-table-surface`, `--slotted-chart-tooltip-surface`, `--slotted-control-border-color`, `--slotted-control-fine-height-sm`, `--slotted-control-font-size-sm`, `--slotted-control-gap-md`, `--slotted-control-gap-sm`, `--slotted-control-height-sm`, `--slotted-control-inner-size-sm`, `--slotted-control-radius`, `--slotted-data-1`, `--slotted-data-2`, `--slotted-data-3`, `--slotted-data-4`, `--slotted-data-5`, `--slotted-data-6`, `--slotted-data-7`, `--slotted-data-8`, `--slotted-duration-instant`, `--slotted-duration-long`, `--slotted-duration-short`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-family-heading`, `--slotted-font-family-sans`, `--slotted-font-size-2xl`, `--slotted-font-size-lg`, `--slotted-font-size-md`, `--slotted-font-size-sm`, `--slotted-font-size-xl`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-semibold`, `--slotted-line-height-2xl`, `--slotted-line-height-lg`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-line-height-xs`, `--slotted-radius-full`, `--slotted-radius-lg`, `--slotted-radius-md`, `--slotted-radius-sm`, `--slotted-radius-xs`, `--slotted-shadow-md`, `--slotted-space-1`, `--slotted-space-12`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-space-8`, `--slotted-space-9`, `--slotted-surface`, `--slotted-surface-raised`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-text`, `--slotted-tone-danger-text`, `--slotted-tone-info-text`, `--slotted-tone-secondary-subtle-hover`, `--slotted-tone-secondary-surface`, `--slotted-tone-secondary-text`, `--slotted-tone-success-text`, `--slotted-tone-warning-text`, `--slotted-z-index-overlay`, `--slotted-z-index-popover`
|
|
223
225
|
|
|
224
226
|
## Examples
|
|
225
227
|
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
"part": "edit-status",
|
|
115
115
|
"element": "p",
|
|
116
116
|
"required": false,
|
|
117
|
-
"purpose": "The instructions every handle is described by. Visually hidden, and still referenced, when editBar is false."
|
|
117
|
+
"purpose": "The instructions every handle is described by: one sentence per gesture the grid offers in its size class, on its pointers and for its widgets. Under a finger alone it names the handle and no keys; in the compact class it names no edges. Visually hidden, and still referenced, when editBar is false."
|
|
118
118
|
},
|
|
119
119
|
{
|
|
120
120
|
"part": "edit-actions",
|
|
@@ -306,12 +306,19 @@
|
|
|
306
306
|
"appliesTo": "DashboardGrid",
|
|
307
307
|
"description": "The grid’s own width, in pixels, from which the expanded class applies; a grid beside a navigation rail keeps its layout with a lower value"
|
|
308
308
|
},
|
|
309
|
+
{
|
|
310
|
+
"name": "narrowOrder",
|
|
311
|
+
"type": "'layout' | 'children'",
|
|
312
|
+
"defaultValue": "'layout'",
|
|
313
|
+
"appliesTo": "DashboardGrid",
|
|
314
|
+
"description": "What the medium and compact classes flow: layout, the expanded layout’s rows and columns; children, the visible widgets in the order they are written, where a widget can be hidden and not moved or resized, and a hide or a show changes its own entry alone; a widget the layout does not hold is stored only while hidden, its entry marked auto: true"
|
|
315
|
+
},
|
|
309
316
|
{
|
|
310
317
|
"name": "messages",
|
|
311
318
|
"type": "Partial<DashboardGridMessages>",
|
|
312
319
|
"defaultValue": "—",
|
|
313
320
|
"appliesTo": "DashboardGrid",
|
|
314
|
-
"description": "Words laid over the language in force, key by key: editBar, editStatus, add, reset, cancel, done, handle, detail, retry, emptyTitle, errorTitle, empty, emptyEditing, the eight menu items, hide, size, moved, movedInOrder, resized, hidden, shown, resetDone, cancelled"
|
|
321
|
+
"description": "Words laid over the language in force, key by key: editBar, editStatusMove, editStatusResize, editStatusHandle, editStatusKeys, editStatus (empty by default; written, it replaces those four sentences whole), add, reset, cancel, done, handle, detail, retry, emptyTitle, errorTitle, empty, emptyEditing, the eight menu items, hide, size, moved, movedInOrder, resized, hidden, shown, resetDone, cancelled"
|
|
315
322
|
},
|
|
316
323
|
{
|
|
317
324
|
"name": "ref",
|
|
@@ -92,7 +92,8 @@ export default function DashboardGridBasicExample() {
|
|
|
92
92
|
| `editBar` | `boolean` | true | DashboardGrid, DashboardGridDefaultsProvider | Whether the grid draws Add, Reset, Cancel and Done while editing |
|
|
93
93
|
| `headingLevel` | `'auto' \| 2 \| 3 \| 4 \| 5 \| 6` | auto | DashboardGrid, DashboardWidget, DashboardGridDefaultsProvider | The level of each widget’s title; auto is one rank under the heading around the grid — h2 in a page body, one deeper inside a section — and never above h2 |
|
|
94
94
|
| `expandedFrom` | `number` | 1024 | DashboardGrid | The grid’s own width, in pixels, from which the expanded class applies; a grid beside a navigation rail keeps its layout with a lower value |
|
|
95
|
-
| `
|
|
95
|
+
| `narrowOrder` | `'layout' \| 'children'` | 'layout' | DashboardGrid | What the medium and compact classes flow: layout, the expanded layout’s rows and columns; children, the visible widgets in the order they are written, where a widget can be hidden and not moved or resized, and a hide or a show changes its own entry alone; a widget the layout does not hold is stored only while hidden, its entry marked auto: true |
|
|
96
|
+
| `messages` | `Partial<DashboardGridMessages>` | — | DashboardGrid | Words laid over the language in force, key by key: editBar, editStatusMove, editStatusResize, editStatusHandle, editStatusKeys, editStatus (empty by default; written, it replaces those four sentences whole), add, reset, cancel, done, handle, detail, retry, emptyTitle, errorTitle, empty, emptyEditing, the eight menu items, hide, size, moved, movedInOrder, resized, hidden, shown, resetDone, cancelled |
|
|
96
97
|
| `ref` | `Ref<DashboardGridHandle>` | — | DashboardGrid | element, focusWidget(key), commitEditing(), cancelEditing() |
|
|
97
98
|
| `render` | `(props: DashboardGridRootProps) => ReactElement` | a div | DashboardGrid | Substitutes the root element |
|
|
98
99
|
| `native props` | `ComponentPropsWithRef<"div">` | — | DashboardGrid | id, className, style, data-* and handlers reach the root; aria-label and aria-labelledby name the list |
|
package/dist/docs/field.json
CHANGED
|
@@ -231,7 +231,7 @@
|
|
|
231
231
|
"type": "'toggletip' | 'auto'",
|
|
232
232
|
"defaultValue": "toggletip",
|
|
233
233
|
"appliesTo": "FieldHelp",
|
|
234
|
-
"description": "auto draws the hint as a bottom sheet under (max-width: 480px) and (pointer: coarse): modal, headed by the field’s label beside a close control, dismissed by its grip, its scrim, Escape and the platform’s way back, with focus given back to the help button. Anywhere else it is the toggletip."
|
|
234
|
+
"description": "auto draws the hint as a bottom sheet under (max-width: 480px) and (pointer: coarse): modal, headed by the field’s label beside a close control, dismissed by a pull down on its grip or its body, its scrim, Escape and the platform’s way back, with focus given back to the help button. Anywhere else it is the toggletip."
|
|
235
235
|
},
|
|
236
236
|
{
|
|
237
237
|
"name": "helpPresentation",
|
package/dist/docs/field.md
CHANGED
|
@@ -71,7 +71,7 @@ export default function FieldBasic() {
|
|
|
71
71
|
| `children` | `ReactNode` | — | FieldHelp | The help text. Written once, it reaches the tooltip and the hidden node that describes the button and the control. |
|
|
72
72
|
| `open` | `boolean` | — | FieldHelp | Whether the hint is showing, controlled. Pair it with onOpenChange; leave both unset and FieldHelp owns the state. |
|
|
73
73
|
| `defaultOpen` | `boolean` | false | FieldHelp | Whether the hint starts open, read once when FieldHelp owns the state. |
|
|
74
|
-
| `presentation` | `'toggletip' \| 'auto'` | toggletip | FieldHelp | auto draws the hint as a bottom sheet under (max-width: 480px) and (pointer: coarse): modal, headed by the field’s label beside a close control, dismissed by its grip, its scrim, Escape and the platform’s way back, with focus given back to the help button. Anywhere else it is the toggletip. |
|
|
74
|
+
| `presentation` | `'toggletip' \| 'auto'` | toggletip | FieldHelp | auto draws the hint as a bottom sheet under (max-width: 480px) and (pointer: coarse): modal, headed by the field’s label beside a close control, dismissed by a pull down on its grip or its body, its scrim, Escape and the platform’s way back, with focus given back to the help button. Anywhere else it is the toggletip. |
|
|
75
75
|
| `helpPresentation` | `'toggletip' \| 'auto'` | toggletip | FieldDefaultsProvider | The presentation of every FieldHelp inside, unless a FieldHelp states its own. |
|
|
76
76
|
| `side` | `'top' \| 'bottom' \| 'inline-start' \| 'inline-end' \| 'left' \| 'right'` | top | FieldHelp | Where the hint opens. It flips to the opposite side when there is no room. |
|
|
77
77
|
| `aria-label` | `string` | messages.help | FieldHelp | The accessible name of the help button. Unset, it is the field’s help message; set, it applies to this button alone. |
|
|
@@ -113,7 +113,7 @@ Every active rule, one line each. Load this first; load a topic file when the ta
|
|
|
113
113
|
| PM-01 | MUST | The column, the figure and the section that would carry the value are not built for that reader; nothing is drawn for the value, and nothing is hidden in a place the reader can bring back. | `reading-permissions.md` |
|
|
114
114
|
| PM-02 | SHOULD | One statement names the permission the value needs and the roles that hold it; two missing permissions are one statement, not two. | `reading-permissions.md` |
|
|
115
115
|
| RP-01 | SHOULD | The title row holds the record's visual, its name as the heading, its lifecycle state and its health as two `tag` marks at the small size, and one subheading line with the identifier, the owner and the place; the way back to the list is the header's `back` part. | `record-pages.md` |
|
|
116
|
-
| RP-02 | SHOULD | The record's figures are `stat-card`s in a `
|
|
116
|
+
| RP-02 | SHOULD | The record's figures are `stat-card`s in a `stat-card` group at the top of the page body, before the section's content, and they stay while the section changes; the header's collapsible area does not hold them. | `record-pages.md` |
|
|
117
117
|
| RP-03 | SHOULD | Each kind of related record is a tab in the header's `tabs` slot with its count in the label; a tab's content is a `table` of that kind with a caption, or a `timeline` for activity; the empty state is the table's own `empty` part. | `record-pages.md` |
|
|
118
118
|
| RP-04 | MUST | The page keeps its header with the way back and shows a `result-state` in the body: `not-found` for an id that does not exist, `error` with Try again for a transport failure; the URL stays. | `record-pages.md` |
|
|
119
119
|
| RP-05 | SHOULD | While its tab is open, the action stands in the record header's `toolbar` beside the record's own actions, and the form it opens takes the place of the tab's listing. | `record-pages.md` |
|
|
@@ -31,7 +31,7 @@ Level: SHOULD
|
|
|
31
31
|
Applies to: an overview in the compact size class
|
|
32
32
|
Rule: Below 600 pixels the figures are one `list` of rows that are destinations — label, comparison, number — followed by the records to act on, the work in flight, the charts, and the history last.
|
|
33
33
|
Why: Five cards two by two fill a phone's first screen before a single record is named, and each card's door wraps under its label below the label's floor.
|
|
34
|
-
Do: Draw the same figures as `list-item` rows whose content is the link and whose `end` holds the number
|
|
34
|
+
Do: Draw the same figures as rows: a `stat-card` group draws them as one panel in the compact size class — the figure that asks for attention leads, every other figure is a row of label, number and comparison — and `list-item` rows whose content is the link and whose `end` holds the number do the same where each figure is a destination. Place the regions by one grid whose areas change at the expanded size class. RP-02 draws a record's figures in the same panel.
|
|
35
35
|
Don't: Keep the desk's card grid on a phone, or put the charts above the records a reader acts on.
|
|
36
36
|
Check: At 390 pixels with a coarse pointer, the first screen holds the four figures as rows at least a touch target tall and the heading of the records to act on.
|
|
37
37
|
|
|
@@ -61,11 +61,11 @@ Check: With the record loaded, the title row reads the visual, the name, two sma
|
|
|
61
61
|
|
|
62
62
|
Level: SHOULD
|
|
63
63
|
Applies to: the numeric facts a record page shows — exposure, balances, counts
|
|
64
|
-
Rule: The record's figures are `stat-card`s in a `
|
|
64
|
+
Rule: The record's figures are `stat-card`s in a `stat-card` group at the top of the page body, before the section's content, and they stay while the section changes; the header's collapsible area does not hold them.
|
|
65
65
|
Why: The header's content part is a column with a measure for prose; four figures in it stacked to one narrow column. In the body, above the switch, the figures read on every section and the header keeps only the title and the tabs.
|
|
66
|
-
Do: Four cards at the small size in a grid
|
|
66
|
+
Do: Four cards at the small size in the group, which draws a grid of four columns on a desk. In the compact size class the group draws the figures as one panel (OV-02): the first figure in `attention` (danger before warning), else the first figure, leads at the figure size; every other figure is a row with its label and value on one line and its comparison under them, across the row's width. Each card carries the figure, its unit and one comparison line ("of R$135,000", "3 of 4 open invoices"). A threshold the domain states is said in the card's comparison line once it is crossed ("above 90% of $500,000", "under 22%: Sales approval"), in words that keep the line to one: the family's `tone` is the tone it hands to its trend and paints nothing on a card without one.
|
|
67
67
|
Don't: Draw the figures in the header area, or under one section only.
|
|
68
|
-
Check: Switch sections: the figures stay; at 390 pixels
|
|
68
|
+
Check: Switch sections: the figures stay; at 390 pixels the figures stand as one panel, no comparison wraps and every row has one height. A figure past a threshold the domain states says so in its comparison line.
|
|
69
69
|
|
|
70
70
|
### RP-03 · Related records are the header's tabs, each a table
|
|
71
71
|
|
package/dist/docs/menu.json
CHANGED
|
@@ -474,7 +474,7 @@
|
|
|
474
474
|
"type": "'popover' | 'auto'",
|
|
475
475
|
"defaultValue": "popover",
|
|
476
476
|
"appliesTo": "Menu, MenuDefaultsProvider",
|
|
477
|
-
"description": "auto draws the menu as a bottom sheet under (max-width: 480px) and (pointer: coarse): modal, as ActionSheet draws its actions, every item at least --slotted-target-min tall, dismissed by its grip, its scrim, Escape and the platform’s way back, with focus given back to the trigger. A submenu opens as a second step of the same sheet. A menu on a bar stays anchored."
|
|
477
|
+
"description": "auto draws the menu as a bottom sheet under (max-width: 480px) and (pointer: coarse): modal, as ActionSheet draws its actions, every item at least --slotted-target-min tall, dismissed by a pull down on its grip or its body, its scrim, Escape and the platform’s way back, with focus given back to the trigger. A submenu opens as a second step of the same sheet. A menu on a bar stays anchored."
|
|
478
478
|
},
|
|
479
479
|
{
|
|
480
480
|
"name": "messages",
|
package/dist/docs/menu.md
CHANGED
|
@@ -96,7 +96,7 @@ export default function MenuBasic() {
|
|
|
96
96
|
| `shift` | `boolean` | true | Menu | Whether the surface slides along its edge to stay in the window. |
|
|
97
97
|
| `hideWhenDetached` | `boolean` | true | Menu | Whether the surface hides once its trigger has scrolled out of view. |
|
|
98
98
|
| `portal` | `boolean` | true | Menu | Whether the layer is rendered at the end of the document. |
|
|
99
|
-
| `presentation` | `'popover' \| 'auto'` | popover | Menu, MenuDefaultsProvider | auto draws the menu as a bottom sheet under (max-width: 480px) and (pointer: coarse): modal, as ActionSheet draws its actions, every item at least --slotted-target-min tall, dismissed by its grip, its scrim, Escape and the platform’s way back, with focus given back to the trigger. A submenu opens as a second step of the same sheet. A menu on a bar stays anchored. |
|
|
99
|
+
| `presentation` | `'popover' \| 'auto'` | popover | Menu, MenuDefaultsProvider | auto draws the menu as a bottom sheet under (max-width: 480px) and (pointer: coarse): modal, as ActionSheet draws its actions, every item at least --slotted-target-min tall, dismissed by a pull down on its grip or its body, its scrim, Escape and the platform’s way back, with focus given back to the trigger. A submenu opens as a second step of the same sheet. A menu on a bar stays anchored. |
|
|
100
100
|
| `messages` | `Partial<MenuMessages>` | — | Menu | Words laid over the catalog of the language in force: back, the name of the control that returns from a submenu step to the first step of a sheet. |
|
|
101
101
|
| `disabled` | `boolean` | false | Menu, MenuItem | A disabled menu never opens, and its trigger keeps aria-expanded="false". A disabled item stays focusable and runs nothing. |
|
|
102
102
|
| `loading` | `boolean` | false | MenuContent | Whether the items are on their way. The surface keeps its width, sets aria-busy and shows the MenuEmpty message. |
|
|
@@ -364,7 +364,7 @@ Excerpt — not a complete module
|
|
|
364
364
|
|
|
365
365
|
### Previous and next record
|
|
366
366
|
|
|
367
|
-
The two arrows at the far end of the title row move between orders without leaving the screen; the heading, the breadcrumb page and the facts follow. Below 600 pixels the pair
|
|
367
|
+
The two arrows at the far end of the title row move between orders without leaving the screen; the heading, the breadcrumb page and the facts follow. Below 600 pixels the pair stays at the row’s end, after the actions.
|
|
368
368
|
|
|
369
369
|
Excerpt — not a complete module
|
|
370
370
|
|
|
@@ -671,7 +671,7 @@ Excerpt — not a complete module
|
|
|
671
671
|
|
|
672
672
|
### Below 600 pixels
|
|
673
673
|
|
|
674
|
-
The family answers its own inline size: the header is not sticky and scrolls away with the page, nothing collapses it on scroll and the toggle still folds the area in place; the breadcrumbs go and the way back stays, the title steps down, the subheading
|
|
674
|
+
The family answers its own inline size: the header is not sticky and scrolls away with the page, nothing collapses it on scroll and the toggle still folds the area in place; the breadcrumbs go and the way back stays, the title steps down, the visual, the title and the actions share one row, the heading and the subheading take one line each, the marks are not drawn, and the figure takes a row above the content. Loose actions and the navigation stay on the row at their own width and never wrap; an action that does not fit belongs in an overflow menu. Actions written as Toolbar overflow="menu", each item with its counterpart, take what a plain title leaves on the row, and a full row of their own under a rich one (a visual, marks or a subheading); either way they fold what does not fit into the menu, where every action is still reachable.
|
|
675
675
|
|
|
676
676
|
Example
|
|
677
677
|
|
|
@@ -684,9 +684,9 @@ import {
|
|
|
684
684
|
BreadcrumbList,
|
|
685
685
|
BreadcrumbPage,
|
|
686
686
|
} from '@slotted/react/breadcrumb';
|
|
687
|
-
import {
|
|
687
|
+
import { IconButton } from '@slotted/react/button';
|
|
688
688
|
import { Glyph } from '@slotted/react/icon';
|
|
689
|
-
import { MenuItem } from '@slotted/react/menu';
|
|
689
|
+
import { Menu, MenuContent, MenuItem, MenuTrigger } from '@slotted/react/menu';
|
|
690
690
|
import {
|
|
691
691
|
PageHeader,
|
|
692
692
|
PageHeaderActions,
|
|
@@ -701,6 +701,7 @@ import {
|
|
|
701
701
|
PageHeaderMarks,
|
|
702
702
|
PageHeaderNav,
|
|
703
703
|
PageHeaderNavigation,
|
|
704
|
+
PageHeaderNotice,
|
|
704
705
|
PageHeaderPin,
|
|
705
706
|
PageHeaderSubheading,
|
|
706
707
|
PageHeaderTitle,
|
|
@@ -709,82 +710,125 @@ import {
|
|
|
709
710
|
PageHeaderToggle,
|
|
710
711
|
PageHeaderVisual,
|
|
711
712
|
} from '@slotted/react/page-header';
|
|
713
|
+
import { Stack } from '@slotted/react/stack';
|
|
712
714
|
import { Tag } from '@slotted/react/tag';
|
|
713
|
-
|
|
715
|
+
|
|
716
|
+
const ACTIONS = ['Track', 'Reschedule', 'Notify carrier'];
|
|
714
717
|
|
|
715
718
|
export default function PageHeaderNarrow() {
|
|
716
719
|
return (
|
|
717
|
-
<
|
|
718
|
-
<
|
|
719
|
-
<
|
|
720
|
-
<
|
|
721
|
-
|
|
722
|
-
<
|
|
723
|
-
<
|
|
724
|
-
<
|
|
725
|
-
<
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
<
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
<
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
<
|
|
739
|
-
<
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
<
|
|
743
|
-
|
|
744
|
-
<
|
|
745
|
-
</
|
|
746
|
-
<
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
<
|
|
750
|
-
<
|
|
751
|
-
<
|
|
752
|
-
</
|
|
753
|
-
<
|
|
754
|
-
<
|
|
755
|
-
</
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
<
|
|
774
|
-
<
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
720
|
+
<Stack gap={8}>
|
|
721
|
+
<PageHeader>
|
|
722
|
+
<PageHeaderTitleArea>
|
|
723
|
+
<PageHeaderNav>
|
|
724
|
+
<PageHeaderBack href="#">Shipments</PageHeaderBack>
|
|
725
|
+
<PageHeaderBreadcrumbs>
|
|
726
|
+
<Breadcrumb>
|
|
727
|
+
<BreadcrumbList>
|
|
728
|
+
<BreadcrumbItem>
|
|
729
|
+
<BreadcrumbLink href="#">Logistics</BreadcrumbLink>
|
|
730
|
+
</BreadcrumbItem>
|
|
731
|
+
<BreadcrumbItem>
|
|
732
|
+
<BreadcrumbLink href="#">Shipments</BreadcrumbLink>
|
|
733
|
+
</BreadcrumbItem>
|
|
734
|
+
<BreadcrumbItem>
|
|
735
|
+
<BreadcrumbPage>SH-88213</BreadcrumbPage>
|
|
736
|
+
</BreadcrumbItem>
|
|
737
|
+
</BreadcrumbList>
|
|
738
|
+
</Breadcrumb>
|
|
739
|
+
</PageHeaderBreadcrumbs>
|
|
740
|
+
</PageHeaderNav>
|
|
741
|
+
<PageHeaderTitleRow>
|
|
742
|
+
<PageHeaderVisual>
|
|
743
|
+
<Avatar name="Pacific Cold Chain" shape="square" size="lg" tone="info" />
|
|
744
|
+
</PageHeaderVisual>
|
|
745
|
+
<PageHeaderTitle>
|
|
746
|
+
<PageHeaderHeading>Shipment SH-88213</PageHeaderHeading>
|
|
747
|
+
<PageHeaderSubheading>Pacific Cold Chain · Seattle to Reno</PageHeaderSubheading>
|
|
748
|
+
</PageHeaderTitle>
|
|
749
|
+
<PageHeaderActions>
|
|
750
|
+
<OverflowMenu label="Shipment actions" />
|
|
751
|
+
</PageHeaderActions>
|
|
752
|
+
<PageHeaderNavigation>
|
|
753
|
+
<IconButton aria-label="Previous shipment" variant="ghost">
|
|
754
|
+
<Glyph name="chevron-left" />
|
|
755
|
+
</IconButton>
|
|
756
|
+
<IconButton aria-label="Next shipment" variant="ghost">
|
|
757
|
+
<Glyph name="chevron-right" />
|
|
758
|
+
</IconButton>
|
|
759
|
+
</PageHeaderNavigation>
|
|
760
|
+
</PageHeaderTitleRow>
|
|
761
|
+
<PageHeaderNotice tone="danger" value="06:40">
|
|
762
|
+
Held at the Portland cross-dock since
|
|
763
|
+
</PageHeaderNotice>
|
|
764
|
+
</PageHeaderTitleArea>
|
|
765
|
+
<PageHeaderArea>
|
|
766
|
+
<PageHeaderFigure>
|
|
767
|
+
<Avatar name="Refrigerated trailer" shape="square" size="xl" tone="secondary" />
|
|
768
|
+
</PageHeaderFigure>
|
|
769
|
+
<PageHeaderContent>
|
|
770
|
+
<PageHeaderDescription>
|
|
771
|
+
Refrigerated load of 18 pallets, held at the Portland cross-dock since 06:40 for a
|
|
772
|
+
carrier inspection.
|
|
773
|
+
</PageHeaderDescription>
|
|
774
|
+
</PageHeaderContent>
|
|
775
|
+
</PageHeaderArea>
|
|
776
|
+
<PageHeaderControls>
|
|
777
|
+
<PageHeaderToggle />
|
|
778
|
+
<PageHeaderPin />
|
|
779
|
+
</PageHeaderControls>
|
|
780
|
+
</PageHeader>
|
|
781
|
+
|
|
782
|
+
{/* The extreme content: one line each, no marks, no action on a line of its own. */}
|
|
783
|
+
<PageHeader>
|
|
784
|
+
<PageHeaderTitleArea>
|
|
785
|
+
<PageHeaderTitleRow>
|
|
786
|
+
<PageHeaderVisual>
|
|
787
|
+
<Avatar name="Northwind Freight" size="md" />
|
|
788
|
+
</PageHeaderVisual>
|
|
789
|
+
<PageHeaderTitle>
|
|
790
|
+
<PageHeaderHeading>
|
|
791
|
+
Carrier invoice INV-2026-118734 for the Pacific Northwest region
|
|
792
|
+
</PageHeaderHeading>
|
|
793
|
+
<PageHeaderMarks>
|
|
794
|
+
<Tag size="sm">Freight</Tag>
|
|
795
|
+
<Tag size="sm">Q4</Tag>
|
|
796
|
+
<Tag size="sm" tone="warning">
|
|
797
|
+
Under review
|
|
798
|
+
</Tag>
|
|
799
|
+
</PageHeaderMarks>
|
|
800
|
+
<PageHeaderSubheading>
|
|
801
|
+
Northwind Freight LLC · Net 45 · Tacoma, Portland and Boise fleets
|
|
802
|
+
</PageHeaderSubheading>
|
|
803
|
+
</PageHeaderTitle>
|
|
804
|
+
<PageHeaderActions>
|
|
805
|
+
<OverflowMenu label="Invoice actions" />
|
|
806
|
+
</PageHeaderActions>
|
|
807
|
+
</PageHeaderTitleRow>
|
|
808
|
+
<PageHeaderNotice value="$12,480.00">Difference to resolve</PageHeaderNotice>
|
|
809
|
+
</PageHeaderTitleArea>
|
|
810
|
+
</PageHeader>
|
|
811
|
+
</Stack>
|
|
812
|
+
);
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
/** Every labelled action of the record, behind one icon on a narrow header. */
|
|
816
|
+
function OverflowMenu({ label }: { label: string }) {
|
|
817
|
+
return (
|
|
818
|
+
<Menu>
|
|
819
|
+
<MenuTrigger
|
|
820
|
+
render={(props) => (
|
|
821
|
+
<IconButton {...props} aria-label={label} variant="ghost">
|
|
822
|
+
<Glyph name="ellipsis" />
|
|
823
|
+
</IconButton>
|
|
824
|
+
)}
|
|
825
|
+
/>
|
|
826
|
+
<MenuContent>
|
|
827
|
+
{ACTIONS.map((action) => (
|
|
828
|
+
<MenuItem key={action}>{action}</MenuItem>
|
|
829
|
+
))}
|
|
830
|
+
</MenuContent>
|
|
831
|
+
</Menu>
|
|
788
832
|
);
|
|
789
833
|
}
|
|
790
834
|
```
|