@dashspec/renderer 0.1.29 → 0.1.31

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/schema.json CHANGED
@@ -193,6 +193,9 @@
193
193
  "minimum": 0,
194
194
  "maximum": 48,
195
195
  "default": 12
196
+ },
197
+ "exactHeights": {
198
+ "type": "boolean"
196
199
  }
197
200
  },
198
201
  "additionalProperties": false,
@@ -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/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), `valueColor` and `valueWeight` (a select without a label) |
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), `iconColor` (the filter bar icon) |
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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dashspec/renderer",
3
- "version": "0.1.29",
3
+ "version": "0.1.31",
4
4
  "description": "Draws a dashboard from DashSpec JSON: widgets, data, events, state.",
5
5
  "keywords": [
6
6
  "dashboard",