@dashspec/renderer 0.1.28 → 0.1.29
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 +10 -0
- package/dist/{chunk-DHZPR7K7.js → chunk-5QEL4G7I.js} +2 -2
- package/dist/{chunk-DHZPR7K7.js.map → chunk-5QEL4G7I.js.map} +1 -1
- package/dist/{core-CwFVyxKt.d.ts → core-DXB9suSF.d.ts} +1 -1
- package/dist/core.d.ts +1 -1
- package/dist/core.js +1 -1
- package/dist/index.d.ts +7 -4
- package/dist/index.js +11 -3
- package/dist/index.js.map +1 -1
- package/docs/styling-hooks.md +1 -1
- package/docs/theming.md +1 -1
- package/package.json +1 -1
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` |
|