@dashspec/renderer 0.1.28 → 0.1.30
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 +27 -0
- package/dist/{chunk-DHZPR7K7.js → chunk-76OGTPVF.js} +8 -3
- package/dist/chunk-76OGTPVF.js.map +1 -0
- package/dist/{core-CwFVyxKt.d.ts → core-CtA4jk0f.d.ts} +20 -1
- package/dist/core.d.ts +1 -1
- package/dist/core.js +1 -1
- package/dist/index.d.ts +17 -5
- package/dist/index.js +69 -46
- package/dist/index.js.map +1 -1
- package/dist/schema.json +3 -0
- package/docs/json-format.md +1 -0
- package/docs/styling-hooks.md +1 -1
- package/docs/theming.md +7 -1
- package/package.json +1 -1
- package/dist/chunk-DHZPR7K7.js.map +0 -1
package/dist/schema.json
CHANGED
package/docs/json-format.md
CHANGED
|
@@ -107,6 +107,7 @@ named `t` would hide it.
|
|
|
107
107
|
| `columns` | `12` | `12`, `24` or `60` (60 splits evenly into rows of 2, 3, 4, 5 or 6 cards) |
|
|
108
108
|
| `rowHeight` | `28` | px, 8–200 |
|
|
109
109
|
| `gap` | `12` | px, 0–48 |
|
|
110
|
+
| `exactHeights` | `false` | viewers only: `fit` panels are exactly their content's height (not whole rows); `gap` stays below every panel |
|
|
110
111
|
|
|
111
112
|
## `spec.connections`
|
|
112
113
|
|
package/docs/styling-hooks.md
CHANGED
|
@@ -55,7 +55,7 @@ Prefer `theme.widgets` (scoped by kind/variant) over global selectors on these.
|
|
|
55
55
|
| Atoms (Text, Value, Progress, Icon, Divider, Button) | `.ds-atom-divider`, `.ds-atom-icon`, `.ds-atom-progress`, `.ds-atom-text`, `.ds-atom-value`, `.ds-button` |
|
|
56
56
|
| BarChart, LineChart, PieChart, Scatter, Gauge | `.ds-chart`, `.ds-chart-legend`, `.ds-swatch`, `.ds-swatch-line` |
|
|
57
57
|
| Card, Tabs, Repeater | `.ds-card-body`, `.ds-repeater`, `.ds-repeater-item`, `.ds-slot-hint`, `.ds-state`, `.ds-tabs`, `.ds-tabs-bar`, `.ds-tabs-panel` |
|
|
58
|
-
| Every panel (frame) | `.ds-badge`, `.ds-crumbs`, `.ds-live`, `.ds-loading`, `.ds-loading-text`, `.ds-panel`, `.ds-panel-addons`, `.ds-panel-body`, `.ds-panel-foot`, `.ds-panel-head`, `.ds-panel-meta`, `.ds-panel-title`, `.ds-panel-toolbar`, `.ds-panel-tools`, `.ds-part-selected`, `.ds-skeleton`, `.ds-state` |
|
|
58
|
+
| Every panel (frame) | `.ds-badge`, `.ds-crumbs`, `.ds-live`, `.ds-loading`, `.ds-loading-text`, `.ds-panel`, `.ds-panel-addons`, `.ds-panel-body`, `.ds-panel-foot`, `.ds-panel-head`, `.ds-panel-meta`, `.ds-panel-subtitle`, `.ds-panel-title`, `.ds-panel-toolbar`, `.ds-panel-tools`, `.ds-part-selected`, `.ds-skeleton`, `.ds-state` |
|
|
59
59
|
|
|
60
60
|
The dashboard root is `ds-root` (`data-ds-theme="light|dark"`). Colours, fonts and sizes are better changed
|
|
61
61
|
through tokens (`--ds-*` variables) than through these classes; use classes for layout and details tokens don't cover.
|
package/docs/theming.md
CHANGED
|
@@ -30,7 +30,7 @@ interface Theme {
|
|
|
30
30
|
| `scale.breakpoints` | `sm`, `md`, `lg`, `xl`, `tv` (px) |
|
|
31
31
|
| `scale.density` | `"compact"`, `"comfortable"` (default) or `"spacious"`. Scales every `--ds-space-*` (×0.75, ×1, ×1.25, rounded) and sets `--ds-control-height` (30, 36, 42 px) for filters, buttons and inputs; also emitted as `--ds-density`. Your own widgets can read it with `useThemeTokens` |
|
|
32
32
|
| `scale.chip` | Status chips ("On track", "Target un-defined"): `radius`, `border`, `weight`, `paddingX`, `height`, `fontSize` in px. Leave out for the default look; e.g. `{ "radius": 999, "border": 0, "weight": 700 }` for borderless pills |
|
|
33
|
-
| `scale.control` | Filter controls, menus and buttons: `fontSize` (px, default 13), `stepBackground` (the stepper arrows), `iconSize` (the filter bar icon, px) |
|
|
33
|
+
| `scale.control` | Filter controls, menus and buttons: `fontSize` (px, default 13), `stepBackground` (the stepper arrows), `iconSize` (the filter bar icon, px), `valueColor` and `valueWeight` (a select without a label) |
|
|
34
34
|
| `surface` | `page`, `card`, `sunken`, `overlay`, `selection`, `scrim`, `backdrop?` (page background, may be a gradient), `tableHeader?` |
|
|
35
35
|
| `text` | `primary`, `secondary`, `subtle`, `disabled`, `onFill` |
|
|
36
36
|
| `border` | `default`, `control`, `focus` |
|
|
@@ -270,3 +270,9 @@ you draw your own ECharts charts and want them to match. Inside a widget,
|
|
|
270
270
|
|
|
271
271
|
|
|
272
272
|
The class names and attributes you can target in `css` are listed in [styling-hooks.md](styling-hooks.md).
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
### Your icons
|
|
276
|
+
|
|
277
|
+
`ui.icons` replaces DashSpec's own icons: `filterBar` (the filter bar icon), `previous` and `next` (stepper arrows).
|
|
278
|
+
Define the object once, outside your components, so it stays the same between renders.
|