@slotted/angular 0.1.0-beta.34 → 0.1.0-beta.35
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/docs/accordion.json +2 -0
- package/docs/accordion.md +1 -1
- package/docs/avatar.json +1 -0
- package/docs/avatar.md +1 -1
- package/docs/badge.json +1 -0
- package/docs/badge.md +1 -1
- package/docs/button.json +56 -2
- package/docs/button.md +8 -1
- package/docs/calendar.json +59 -0
- package/docs/calendar.md +8 -1
- package/docs/card.json +7 -0
- package/docs/card.md +1 -0
- package/docs/chart.json +32 -4
- package/docs/chart.md +9 -5
- package/docs/checkbox.json +8 -3
- package/docs/checkbox.md +3 -3
- package/docs/collapsible.json +33 -1
- package/docs/collapsible.md +5 -1
- package/docs/command-palette.json +2 -1
- package/docs/command-palette.md +1 -1
- package/docs/dashboard-grid.json +11 -3
- package/docs/dashboard-grid.md +3 -2
- package/docs/description-list.json +9 -1
- package/docs/description-list.md +2 -1
- package/docs/entity-picker.json +3 -2
- package/docs/entity-picker.md +2 -2
- package/docs/floating-panel.json +203 -0
- package/docs/floating-panel.md +97 -0
- package/docs/index.md +3 -1
- package/docs/inline-message.json +1 -0
- package/docs/inline-message.md +1 -1
- package/docs/kbd.json +1 -0
- package/docs/kbd.md +1 -1
- package/docs/link.json +1 -1
- package/docs/link.md +1 -1
- package/docs/list-item.json +31 -8
- package/docs/list-item.md +19 -6
- package/docs/list.json +13 -0
- package/docs/list.md +3 -1
- package/docs/listbox.json +13 -0
- package/docs/listbox.md +2 -1
- package/docs/markdown.json +1 -1
- package/docs/markdown.md +1 -1
- package/docs/message.json +17 -2
- package/docs/message.md +4 -2
- package/docs/meter.json +248 -0
- package/docs/meter.md +121 -0
- package/docs/page.json +21 -0
- package/docs/page.md +3 -1
- package/docs/progress-indicator.json +39 -1
- package/docs/progress-indicator.md +6 -1
- package/docs/prompt-composer.json +1 -1
- package/docs/radio-group.json +18 -1
- package/docs/radio-group.md +3 -1
- package/docs/rating.json +1 -0
- package/docs/rating.md +1 -1
- package/docs/section.json +28 -3
- package/docs/section.md +6 -3
- package/docs/segmented-control.json +5 -4
- package/docs/segmented-control.md +3 -3
- package/docs/side-navigation.json +8 -0
- package/docs/side-navigation.md +2 -1
- package/docs/slider.json +8 -0
- package/docs/slider.md +2 -1
- package/docs/sparkline.json +416 -1
- package/docs/sparkline.md +186 -2
- package/docs/stat-card.json +7 -0
- package/docs/stat-card.md +1 -0
- package/docs/switch.json +16 -0
- package/docs/switch.md +3 -1
- package/docs/table.json +39 -1
- package/docs/table.md +6 -1
- package/docs/tag.json +1 -0
- package/docs/tag.md +1 -1
- package/docs/tokens.md +1 -1
- package/docs/toolbar.json +2 -1
- package/docs/toolbar.md +1 -1
- package/docs/top-navigation.json +1 -0
- package/docs/top-navigation.md +1 -1
- package/docs/typography.json +15 -0
- package/docs/typography.md +3 -1
- package/fesm2022/slotted-angular-accordion.mjs +2 -2
- package/fesm2022/slotted-angular-accordion.mjs.map +1 -1
- package/fesm2022/slotted-angular-avatar.mjs +2 -2
- package/fesm2022/slotted-angular-avatar.mjs.map +1 -1
- package/fesm2022/slotted-angular-badge.mjs +2 -2
- package/fesm2022/slotted-angular-badge.mjs.map +1 -1
- package/fesm2022/slotted-angular-button.mjs +84 -28
- package/fesm2022/slotted-angular-button.mjs.map +1 -1
- package/fesm2022/slotted-angular-calendar.mjs +114 -23
- package/fesm2022/slotted-angular-calendar.mjs.map +1 -1
- package/fesm2022/slotted-angular-card.mjs +15 -5
- package/fesm2022/slotted-angular-card.mjs.map +1 -1
- package/fesm2022/slotted-angular-cascader.mjs +5 -5
- package/fesm2022/slotted-angular-cascader.mjs.map +1 -1
- package/fesm2022/slotted-angular-chart.mjs +47 -5
- package/fesm2022/slotted-angular-chart.mjs.map +1 -1
- package/fesm2022/slotted-angular-checkbox.mjs +2 -2
- package/fesm2022/slotted-angular-checkbox.mjs.map +1 -1
- package/fesm2022/slotted-angular-collapsible.mjs +69 -8
- package/fesm2022/slotted-angular-collapsible.mjs.map +1 -1
- package/fesm2022/slotted-angular-column-manager.mjs +1 -1
- package/fesm2022/slotted-angular-column-manager.mjs.map +1 -1
- package/fesm2022/slotted-angular-combobox.mjs +2 -2
- package/fesm2022/slotted-angular-combobox.mjs.map +1 -1
- package/fesm2022/slotted-angular-command-palette.mjs +11 -2
- package/fesm2022/slotted-angular-command-palette.mjs.map +1 -1
- package/fesm2022/slotted-angular-dashboard-grid.mjs +19 -5
- package/fesm2022/slotted-angular-dashboard-grid.mjs.map +1 -1
- package/fesm2022/slotted-angular-data-grid.mjs +40 -15
- package/fesm2022/slotted-angular-data-grid.mjs.map +1 -1
- package/fesm2022/slotted-angular-data-list.mjs +2 -2
- package/fesm2022/slotted-angular-data-list.mjs.map +1 -1
- package/fesm2022/slotted-angular-date-picker.mjs +1 -1
- package/fesm2022/slotted-angular-date-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-date-range-picker.mjs +1 -1
- package/fesm2022/slotted-angular-date-range-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-datetime-picker.mjs +1 -1
- package/fesm2022/slotted-angular-datetime-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-datetime-range-picker.mjs +1 -1
- package/fesm2022/slotted-angular-datetime-range-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-description-list.mjs +13 -6
- package/fesm2022/slotted-angular-description-list.mjs.map +1 -1
- package/fesm2022/slotted-angular-detail-panel.mjs +1 -1
- package/fesm2022/slotted-angular-detail-panel.mjs.map +1 -1
- package/fesm2022/slotted-angular-entity-picker.mjs +14 -2
- package/fesm2022/slotted-angular-entity-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-filter-bar.mjs +4 -4
- package/fesm2022/slotted-angular-filter-bar.mjs.map +1 -1
- package/fesm2022/slotted-angular-floating-panel.mjs +257 -0
- package/fesm2022/slotted-angular-floating-panel.mjs.map +1 -0
- package/fesm2022/slotted-angular-import-export-center.mjs +1 -1
- package/fesm2022/slotted-angular-import-export-center.mjs.map +1 -1
- package/fesm2022/slotted-angular-inline-message.mjs +2 -2
- package/fesm2022/slotted-angular-inline-message.mjs.map +1 -1
- package/fesm2022/slotted-angular-kbd.mjs +4 -4
- package/fesm2022/slotted-angular-kbd.mjs.map +1 -1
- package/fesm2022/slotted-angular-list-item.mjs +41 -6
- package/fesm2022/slotted-angular-list-item.mjs.map +1 -1
- package/fesm2022/slotted-angular-list.mjs +20 -4
- package/fesm2022/slotted-angular-list.mjs.map +1 -1
- package/fesm2022/slotted-angular-listbox.mjs +63 -6
- package/fesm2022/slotted-angular-listbox.mjs.map +1 -1
- package/fesm2022/slotted-angular-loading-overlay.mjs +2 -2
- package/fesm2022/slotted-angular-loading-overlay.mjs.map +1 -1
- package/fesm2022/slotted-angular-markdown.mjs +1 -1
- package/fesm2022/slotted-angular-markdown.mjs.map +1 -1
- package/fesm2022/slotted-angular-message.mjs +78 -36
- package/fesm2022/slotted-angular-message.mjs.map +1 -1
- package/fesm2022/slotted-angular-meter.mjs +108 -0
- package/fesm2022/slotted-angular-meter.mjs.map +1 -0
- package/fesm2022/slotted-angular-multi-select.mjs +2 -2
- package/fesm2022/slotted-angular-multi-select.mjs.map +1 -1
- package/fesm2022/slotted-angular-notification-center.mjs +1 -1
- package/fesm2022/slotted-angular-notification-center.mjs.map +1 -1
- package/fesm2022/slotted-angular-page.mjs +49 -6
- package/fesm2022/slotted-angular-page.mjs.map +1 -1
- package/fesm2022/slotted-angular-progress-indicator.mjs +106 -7
- package/fesm2022/slotted-angular-progress-indicator.mjs.map +1 -1
- package/fesm2022/slotted-angular-prompt-composer.mjs +24 -6
- package/fesm2022/slotted-angular-prompt-composer.mjs.map +1 -1
- package/fesm2022/slotted-angular-radio-group.mjs +45 -12
- package/fesm2022/slotted-angular-radio-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-rating.mjs +6 -6
- package/fesm2022/slotted-angular-rating.mjs.map +1 -1
- package/fesm2022/slotted-angular-saved-views.mjs +1 -1
- package/fesm2022/slotted-angular-saved-views.mjs.map +1 -1
- package/fesm2022/slotted-angular-section.mjs +23 -6
- package/fesm2022/slotted-angular-section.mjs.map +1 -1
- package/fesm2022/slotted-angular-segmented-control.mjs +29 -7
- package/fesm2022/slotted-angular-segmented-control.mjs.map +1 -1
- package/fesm2022/slotted-angular-select.mjs +42 -18
- package/fesm2022/slotted-angular-select.mjs.map +1 -1
- package/fesm2022/slotted-angular-side-navigation.mjs +29 -7
- package/fesm2022/slotted-angular-side-navigation.mjs.map +1 -1
- package/fesm2022/slotted-angular-slider.mjs +26 -16
- package/fesm2022/slotted-angular-slider.mjs.map +1 -1
- package/fesm2022/slotted-angular-sparkline.mjs +295 -4
- package/fesm2022/slotted-angular-sparkline.mjs.map +1 -1
- package/fesm2022/slotted-angular-split-button.mjs +4 -4
- package/fesm2022/slotted-angular-split-button.mjs.map +1 -1
- package/fesm2022/slotted-angular-stat-card.mjs +82 -28
- package/fesm2022/slotted-angular-stat-card.mjs.map +1 -1
- package/fesm2022/slotted-angular-status-indicator.mjs +2 -2
- package/fesm2022/slotted-angular-status-indicator.mjs.map +1 -1
- package/fesm2022/slotted-angular-switch.mjs +14 -4
- package/fesm2022/slotted-angular-switch.mjs.map +1 -1
- package/fesm2022/slotted-angular-table.mjs +77 -16
- package/fesm2022/slotted-angular-table.mjs.map +1 -1
- package/fesm2022/slotted-angular-tag.mjs +2 -2
- package/fesm2022/slotted-angular-tag.mjs.map +1 -1
- package/fesm2022/slotted-angular-tags-input.mjs +2 -2
- package/fesm2022/slotted-angular-tags-input.mjs.map +1 -1
- package/fesm2022/slotted-angular-toolbar.mjs +2 -2
- package/fesm2022/slotted-angular-toolbar.mjs.map +1 -1
- package/fesm2022/slotted-angular-top-navigation.mjs +2 -2
- package/fesm2022/slotted-angular-top-navigation.mjs.map +1 -1
- package/fesm2022/slotted-angular-tour.mjs +1 -1
- package/fesm2022/slotted-angular-tour.mjs.map +1 -1
- package/fesm2022/slotted-angular-transfer.mjs +1 -1
- package/fesm2022/slotted-angular-transfer.mjs.map +1 -1
- package/fesm2022/slotted-angular-typography.mjs +31 -6
- package/fesm2022/slotted-angular-typography.mjs.map +1 -1
- package/fesm2022/slotted-angular-upload.mjs +2 -2
- package/fesm2022/slotted-angular-upload.mjs.map +1 -1
- package/fesm2022/slotted-angular-wizard.mjs +1 -1
- package/fesm2022/slotted-angular-wizard.mjs.map +1 -1
- package/package.json +11 -3
- package/types/slotted-angular-button.d.ts +47 -5
- package/types/slotted-angular-button.d.ts.map +1 -1
- package/types/slotted-angular-calendar.d.ts +62 -5
- package/types/slotted-angular-calendar.d.ts.map +1 -1
- package/types/slotted-angular-card.d.ts +7 -1
- package/types/slotted-angular-card.d.ts.map +1 -1
- package/types/slotted-angular-chart.d.ts +10 -2
- package/types/slotted-angular-chart.d.ts.map +1 -1
- package/types/slotted-angular-checkbox.d.ts +3 -1
- package/types/slotted-angular-checkbox.d.ts.map +1 -1
- package/types/slotted-angular-collapsible.d.ts +29 -3
- package/types/slotted-angular-collapsible.d.ts.map +1 -1
- package/types/slotted-angular-command-palette.d.ts.map +1 -1
- package/types/slotted-angular-dashboard-grid.d.ts +9 -1
- package/types/slotted-angular-dashboard-grid.d.ts.map +1 -1
- package/types/slotted-angular-data-grid.d.ts +5 -1
- package/types/slotted-angular-data-grid.d.ts.map +1 -1
- package/types/slotted-angular-description-list.d.ts +11 -3
- package/types/slotted-angular-description-list.d.ts.map +1 -1
- package/types/slotted-angular-entity-picker.d.ts +1 -0
- package/types/slotted-angular-entity-picker.d.ts.map +1 -1
- package/types/slotted-angular-floating-panel.d.ts +82 -0
- package/types/slotted-angular-floating-panel.d.ts.map +1 -0
- package/types/slotted-angular-list-item.d.ts +33 -6
- package/types/slotted-angular-list-item.d.ts.map +1 -1
- package/types/slotted-angular-list.d.ts +43 -29
- package/types/slotted-angular-list.d.ts.map +1 -1
- package/types/slotted-angular-listbox.d.ts +7 -1
- package/types/slotted-angular-listbox.d.ts.map +1 -1
- package/types/slotted-angular-message.d.ts +17 -3
- package/types/slotted-angular-message.d.ts.map +1 -1
- package/types/slotted-angular-meter.d.ts +67 -0
- package/types/slotted-angular-meter.d.ts.map +1 -0
- package/types/slotted-angular-page.d.ts +33 -10
- package/types/slotted-angular-page.d.ts.map +1 -1
- package/types/slotted-angular-progress-indicator.d.ts +46 -2
- package/types/slotted-angular-progress-indicator.d.ts.map +1 -1
- package/types/slotted-angular-prompt-composer.d.ts +2 -0
- package/types/slotted-angular-prompt-composer.d.ts.map +1 -1
- package/types/slotted-angular-radio-group.d.ts +22 -4
- package/types/slotted-angular-radio-group.d.ts.map +1 -1
- package/types/slotted-angular-section.d.ts +18 -3
- package/types/slotted-angular-section.d.ts.map +1 -1
- package/types/slotted-angular-segmented-control.d.ts +8 -2
- package/types/slotted-angular-segmented-control.d.ts.map +1 -1
- package/types/slotted-angular-select.d.ts.map +1 -1
- package/types/slotted-angular-side-navigation.d.ts +14 -2
- package/types/slotted-angular-side-navigation.d.ts.map +1 -1
- package/types/slotted-angular-slider.d.ts +7 -1
- package/types/slotted-angular-slider.d.ts.map +1 -1
- package/types/slotted-angular-sparkline.d.ts +86 -4
- package/types/slotted-angular-sparkline.d.ts.map +1 -1
- package/types/slotted-angular-stat-card.d.ts +20 -2
- package/types/slotted-angular-stat-card.d.ts.map +1 -1
- package/types/slotted-angular-switch.d.ts +16 -2
- package/types/slotted-angular-switch.d.ts.map +1 -1
- package/types/slotted-angular-table.d.ts +32 -3
- package/types/slotted-angular-table.d.ts.map +1 -1
- package/types/slotted-angular-typography.d.ts +21 -2
- package/types/slotted-angular-typography.d.ts.map +1 -1
package/docs/sparkline.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!-- index: ./index.md -->
|
|
2
2
|
# sparkline
|
|
3
3
|
|
|
4
|
-
`data-ui="sparkline"` ·
|
|
4
|
+
`data-ui="sparkline"` · Word-sized graphics: a trend, a position, a comparison.
|
|
5
5
|
|
|
6
6
|
## Import
|
|
7
7
|
|
|
@@ -11,6 +11,18 @@ import { SlSparkline, provideSparklineDefaults } from '@slotted/angular/sparklin
|
|
|
11
11
|
|
|
12
12
|
Selector: `[slSparkline]` · exportAs: `slSparkline`
|
|
13
13
|
|
|
14
|
+
```ts
|
|
15
|
+
import { SlPositionStrip } from '@slotted/angular/sparkline';
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Selector: `[slPositionStrip]` · exportAs: `slPositionStrip`
|
|
19
|
+
|
|
20
|
+
```ts
|
|
21
|
+
import { SlBarCompare } from '@slotted/angular/sparkline';
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Selector: `[slBarCompare]` · exportAs: `slBarCompare`
|
|
25
|
+
|
|
14
26
|
## Minimal example
|
|
15
27
|
|
|
16
28
|
Excerpt — not a complete module
|
|
@@ -21,6 +33,8 @@ Excerpt — not a complete module
|
|
|
21
33
|
|
|
22
34
|
## Anatomy
|
|
23
35
|
|
|
36
|
+
### sparkline
|
|
37
|
+
|
|
24
38
|
| Part | Element | Required |
|
|
25
39
|
| --- | --- | --- |
|
|
26
40
|
| `root` | span | yes |
|
|
@@ -32,8 +46,37 @@ Excerpt — not a complete module
|
|
|
32
46
|
| `ring` | path | no |
|
|
33
47
|
| `marker` | path | no |
|
|
34
48
|
|
|
49
|
+
### positionStrip
|
|
50
|
+
|
|
51
|
+
| Part | Element | Required |
|
|
52
|
+
| --- | --- | --- |
|
|
53
|
+
| `root` | span | yes |
|
|
54
|
+
| `track` | span | yes |
|
|
55
|
+
| `band` | span | no |
|
|
56
|
+
| `dot` | span | no |
|
|
57
|
+
| `value` | span | no |
|
|
58
|
+
| `reference` | span | no |
|
|
59
|
+
| `zero` | span | no |
|
|
60
|
+
| `start` | span | yes |
|
|
61
|
+
| `end` | span | yes |
|
|
62
|
+
|
|
63
|
+
### barCompare
|
|
64
|
+
|
|
65
|
+
| Part | Element | Required |
|
|
66
|
+
| --- | --- | --- |
|
|
67
|
+
| `root` | span | yes |
|
|
68
|
+
| `row` | span | yes |
|
|
69
|
+
| `label` | span | yes |
|
|
70
|
+
| `track` | span | yes |
|
|
71
|
+
| `bar` | span | yes |
|
|
72
|
+
| `value` | span | yes |
|
|
73
|
+
| `zero` | span | no |
|
|
74
|
+
| `tick` | span | no |
|
|
75
|
+
|
|
35
76
|
## Props
|
|
36
77
|
|
|
78
|
+
### sparkline
|
|
79
|
+
|
|
37
80
|
| Name | Type | Default | Applies to | Description |
|
|
38
81
|
| --- | --- | --- | --- | --- |
|
|
39
82
|
| `data` | `(number \| null)[]` | — | Sparkline | The series, oldest first. null is a gap: the line breaks, the bar is not drawn, the summary ignores it |
|
|
@@ -59,6 +102,38 @@ Excerpt — not a complete module
|
|
|
59
102
|
| `--slotted-sparkline-color` | `custom property` | — | a container | What a sparkline with no tone and no series is drawn in. stat-card writes it on its trend from the delta’s tone |
|
|
60
103
|
| `provideSparklineDefaults` | `SparklineDefaults` | — | Application | Sets curve, area, marker and formatOptions once, in a route or the application config; an input still wins |
|
|
61
104
|
|
|
105
|
+
### positionStrip
|
|
106
|
+
|
|
107
|
+
| Name | Type | Default | Applies to | Description |
|
|
108
|
+
| --- | --- | --- | --- | --- |
|
|
109
|
+
| `value` | `number \| null` | — | slPositionStrip | The current value |
|
|
110
|
+
| `values` | `(number \| null)[]` | — | slPositionStrip | The periods, oldest first; null is a gap |
|
|
111
|
+
| `reference` | `number` | — | slPositionStrip | A dashed tick, which widens the extent |
|
|
112
|
+
| `min` | `number` | — | slPositionStrip | Widens the extent, for rows that line up |
|
|
113
|
+
| `max` | `number` | — | slPositionStrip | Widens the extent, for rows that line up |
|
|
114
|
+
| `hideValue` | `boolean` | false | slPositionStrip | Leaves the value dot out, and says so |
|
|
115
|
+
| `size` | `'sm' \| 'md' \| 'lg'` | md | slPositionStrip | The height of the track |
|
|
116
|
+
| `label` | `string` | — | slPositionStrip | What the strip is, said first in the name |
|
|
117
|
+
| `formatOptions` | `Intl.NumberFormatOptions` | — | slPositionStrip | How a number is written, on the page and in the name |
|
|
118
|
+
| `valueFormatter` | `(value: number) => string` | — | slPositionStrip | Writes a number instead |
|
|
119
|
+
| `locale` | `string` | — | slPositionStrip | The locale; the language in force when absent |
|
|
120
|
+
| `description` | `string` | — | slPositionStrip | The whole accessible name |
|
|
121
|
+
| `tone` | `'neutral' \| 'accent' \| 'secondary' \| 'info' \| 'success' \| 'warning' \| 'danger'` | — | slPositionStrip | How the value is doing |
|
|
122
|
+
|
|
123
|
+
### barCompare
|
|
124
|
+
|
|
125
|
+
| Name | Type | Default | Applies to | Description |
|
|
126
|
+
| --- | --- | --- | --- | --- |
|
|
127
|
+
| `data` | `{ label: string; value: number; texture?: boolean }[]` | — | slBarCompare | One row per value |
|
|
128
|
+
| `min` | `number` | — | slBarCompare | The low end of the domain; zero and the data widen it |
|
|
129
|
+
| `max` | `number` | — | slBarCompare | The high end of the domain; zero and the data widen it |
|
|
130
|
+
| `step` | `number` | — | slBarCompare | The distance between two ticks |
|
|
131
|
+
| `formatOptions` | `Intl.NumberFormatOptions` | — | slBarCompare | How a number is written, on the page and in the name |
|
|
132
|
+
| `valueFormatter` | `(value: number) => string` | — | slBarCompare | Writes a number instead |
|
|
133
|
+
| `locale` | `string` | — | slBarCompare | The locale; the language in force when absent |
|
|
134
|
+
| `description` | `string` | — | slBarCompare | The whole accessible name |
|
|
135
|
+
| `tone` | `'neutral' \| 'accent' \| 'secondary' \| 'info' \| 'success' \| 'warning' \| 'danger'` | — | slBarCompare | How the value is doing |
|
|
136
|
+
|
|
62
137
|
## Axes and defaults
|
|
63
138
|
|
|
64
139
|
| Axis | Values | Default |
|
|
@@ -77,10 +152,16 @@ Excerpt — not a complete module
|
|
|
77
152
|
- Color never carries the reading alone: the direction is in the description, the current bar is the last one by position as well as by color, and a tone is a second encoding on top of the shape.
|
|
78
153
|
- Under forced colors the data scale and the tones map to CanvasText, the wash is withdrawn, earlier bars take GrayText and the current one CanvasText, so a series still reads as one.
|
|
79
154
|
- The eight slots of the data scale were chosen by measurement: adjacent slots separate by at least ΔE 16.8 under simulated protanopia and deuteranopia in every scheme, and every slot clears 3:1 against every surface.
|
|
155
|
+
- The root carries role="img" and a name built from the value, the smallest and largest period and the reference, because those are the numbers the strip exists to compare.
|
|
156
|
+
- Every mark is hidden from the tree by being inside the image: nothing is focusable and nothing answers a key, as for a sparkline.
|
|
157
|
+
- The value is told apart by size and a ring as well as by color, and the reference by its dash; under forced colors the dots and the band take GrayText and the value CanvasText.
|
|
158
|
+
- The root carries role="img" named by every row’s label and value, in order: the comparison is read as the list of numbers it draws.
|
|
159
|
+
- A negative value is written with its sign and drawn left of the zero line; the sign never depends on the color.
|
|
160
|
+
- texture tells a reference from the subject without color, and forced colors draw it as CanvasText stripes over Canvas.
|
|
80
161
|
|
|
81
162
|
## Tokens
|
|
82
163
|
|
|
83
|
-
`--slotted-border-strong`, `--slotted-border-width-medium`, `--slotted-border-width-thick`, `--slotted-border-width-thin`, `--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-medium`, `--slotted-duration-short`, `--slotted-easing-standard`, `--slotted-space-11`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-7`, `--slotted-space-9`, `--slotted-sparkline-area-opacity`, `--slotted-sparkline-bar-share`, `--slotted-sparkline-block-size`, `--slotted-sparkline-block-size-lg`, `--slotted-sparkline-block-size-sm`, `--slotted-sparkline-color`, `--slotted-sparkline-line-width`, `--slotted-sparkline-line-width-sm`, `--slotted-sparkline-marker-size`, `--slotted-sparkline-marker-size-lg`, `--slotted-sparkline-marker-size-sm`, `--slotted-sparkline-min-inline-size`, `--slotted-sparkline-reference-color`, `--slotted-sparkline-ring-color`, `--slotted-sparkline-ring-width`, `--slotted-sparkline-ring-width-sm`, `--slotted-surface-raised`, `--slotted-text-muted`, `--slotted-tone-accent-text`, `--slotted-tone-danger-text`, `--slotted-tone-info-text`, `--slotted-tone-secondary-text`, `--slotted-tone-success-text`, `--slotted-tone-warning-text`
|
|
164
|
+
`--slotted-border-strong`, `--slotted-border-width-medium`, `--slotted-border-width-thick`, `--slotted-border-width-thin`, `--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-medium`, `--slotted-duration-short`, `--slotted-easing-standard`, `--slotted-font-size-xs`, `--slotted-line-height-sm`, `--slotted-radius-full`, `--slotted-space-11`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-7`, `--slotted-space-9`, `--slotted-sparkline-area-opacity`, `--slotted-sparkline-bar-share`, `--slotted-sparkline-bar-thickness`, `--slotted-sparkline-block-size`, `--slotted-sparkline-block-size-lg`, `--slotted-sparkline-block-size-sm`, `--slotted-sparkline-color`, `--slotted-sparkline-end-size`, `--slotted-sparkline-label-size`, `--slotted-sparkline-line-width`, `--slotted-sparkline-line-width-sm`, `--slotted-sparkline-marker-size`, `--slotted-sparkline-marker-size-lg`, `--slotted-sparkline-marker-size-sm`, `--slotted-sparkline-min-inline-size`, `--slotted-sparkline-reference-color`, `--slotted-sparkline-ring-color`, `--slotted-sparkline-ring-width`, `--slotted-sparkline-ring-width-sm`, `--slotted-sparkline-value-size`, `--slotted-surface`, `--slotted-surface-raised`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-text`, `--slotted-tone-danger-text`, `--slotted-tone-info-text`, `--slotted-tone-secondary-text`, `--slotted-tone-success-text`, `--slotted-tone-warning-text`
|
|
84
165
|
|
|
85
166
|
## Examples
|
|
86
167
|
|
|
@@ -204,3 +285,106 @@ Excerpt — not a complete module
|
|
|
204
285
|
label="Fill rate"
|
|
205
286
|
></span>
|
|
206
287
|
```
|
|
288
|
+
|
|
289
|
+
### Playground
|
|
290
|
+
|
|
291
|
+
This month’s savings against the eight months before it: each small dot is a month, the band their span, the large dot this month, the dashed tick their mean.
|
|
292
|
+
|
|
293
|
+
Excerpt — not a complete module
|
|
294
|
+
|
|
295
|
+
```html
|
|
296
|
+
<span slPositionStrip label="Savings" [reference]="1200" [value]="800" [values]="periods"></span>
|
|
297
|
+
```
|
|
298
|
+
|
|
299
|
+
### Rows that line up
|
|
300
|
+
|
|
301
|
+
In a table, a value column writes the number and the strip shows where it stands. Every row states one min and max, so the rows write the same ends and their tracks line up.
|
|
302
|
+
|
|
303
|
+
Excerpt — not a complete module
|
|
304
|
+
|
|
305
|
+
```html
|
|
306
|
+
<span
|
|
307
|
+
slPositionStrip
|
|
308
|
+
label="Savings"
|
|
309
|
+
[max]="3000"
|
|
310
|
+
[min]="-1000"
|
|
311
|
+
[value]="800"
|
|
312
|
+
[values]="savings"
|
|
313
|
+
></span>
|
|
314
|
+
<span
|
|
315
|
+
slPositionStrip
|
|
316
|
+
label="Debt service"
|
|
317
|
+
[max]="3000"
|
|
318
|
+
[min]="-1000"
|
|
319
|
+
[value]="2200"
|
|
320
|
+
[values]="debt"
|
|
321
|
+
></span>
|
|
322
|
+
```
|
|
323
|
+
|
|
324
|
+
### A value not known yet
|
|
325
|
+
|
|
326
|
+
hideValue leaves the value dot out while the period is incomplete, and the name says the value is pending rather than reading the last one.
|
|
327
|
+
|
|
328
|
+
Excerpt — not a complete module
|
|
329
|
+
|
|
330
|
+
```html
|
|
331
|
+
<span slPositionStrip hideValue label="Savings" [values]="periods"></span>
|
|
332
|
+
```
|
|
333
|
+
|
|
334
|
+
### What a reader hears
|
|
335
|
+
|
|
336
|
+
The root is an image named “Savings: R$800.00, against a range of -R$500.00 to R$2,500.00, reference R$1,200.00”, every number in the locale and format given.
|
|
337
|
+
|
|
338
|
+
Excerpt — not a complete module
|
|
339
|
+
|
|
340
|
+
```html
|
|
341
|
+
<span
|
|
342
|
+
slPositionStrip
|
|
343
|
+
label="Savings"
|
|
344
|
+
[formatOptions]="currency"
|
|
345
|
+
[reference]="1200"
|
|
346
|
+
[value]="800"
|
|
347
|
+
[values]="periods"
|
|
348
|
+
></span>
|
|
349
|
+
```
|
|
350
|
+
|
|
351
|
+
### Playground
|
|
352
|
+
|
|
353
|
+
A result against a benchmark on one signed axis: the negative result hangs left of the zero line and each value is written at its bar’s end.
|
|
354
|
+
|
|
355
|
+
Excerpt — not a complete module
|
|
356
|
+
|
|
357
|
+
```html
|
|
358
|
+
<span slBarCompare [data]="pair"></span>
|
|
359
|
+
```
|
|
360
|
+
|
|
361
|
+
### One axis across sections
|
|
362
|
+
|
|
363
|
+
Roots that state the same min, max and step draw the same axis and the same ticks, so pairs in separate sections compare at a glance.
|
|
364
|
+
|
|
365
|
+
Excerpt — not a complete module
|
|
366
|
+
|
|
367
|
+
```html
|
|
368
|
+
<span slBarCompare [data]="march" [max]="800" [min]="-1600" [step]="800"></span>
|
|
369
|
+
<span slBarCompare [data]="april" [max]="800" [min]="-1600" [step]="800"></span>
|
|
370
|
+
```
|
|
371
|
+
|
|
372
|
+
### A reference told apart without color
|
|
373
|
+
|
|
374
|
+
texture hatches a row’s fill, so the reference reads as a reference in grayscale, in print and under forced colors.
|
|
375
|
+
|
|
376
|
+
Excerpt — not a complete module
|
|
377
|
+
|
|
378
|
+
```html
|
|
379
|
+
<span slBarCompare [data]="withIndex"></span>
|
|
380
|
+
```
|
|
381
|
+
|
|
382
|
+
### What a reader hears
|
|
383
|
+
|
|
384
|
+
The root is an image named by every row: “Result: -1,000; Benchmark: 33”, each value in the locale and format given; description replaces it.
|
|
385
|
+
|
|
386
|
+
Excerpt — not a complete module
|
|
387
|
+
|
|
388
|
+
```html
|
|
389
|
+
<span slBarCompare [data]="pair" [formatOptions]="currency"></span>
|
|
390
|
+
```
|
package/docs/stat-card.json
CHANGED
|
@@ -276,6 +276,13 @@
|
|
|
276
276
|
"appliesTo": "slStatCardValue",
|
|
277
277
|
"description": "whole draws the symbol, the decimals and the suffix of a numeric value in the unit part, so the whole units carry the figure; the text is the formatter’s either way"
|
|
278
278
|
},
|
|
279
|
+
{
|
|
280
|
+
"name": "transition",
|
|
281
|
+
"type": "'none' | 'count'",
|
|
282
|
+
"defaultValue": "'none'",
|
|
283
|
+
"appliesTo": "slStatCardValue",
|
|
284
|
+
"description": "count moves a changed numeric value from the number it showed over --slotted-duration-long with the standard easing, each frame drawn by the formatter; the moving figure is hidden from assistive technology and the final one is said. The first render, a loading or empty card and a 1ms duration show the value as it is"
|
|
285
|
+
},
|
|
279
286
|
{
|
|
280
287
|
"name": "messages",
|
|
281
288
|
"type": "Partial<StatCardMessages>",
|
package/docs/stat-card.md
CHANGED
|
@@ -78,6 +78,7 @@ Excerpt — not a complete module
|
|
|
78
78
|
| `locale` | `string` | — | slStatCard | BCP 47, for every number the card formats; the language in force when absent |
|
|
79
79
|
| `formatOptions` | `Intl.NumberFormatOptions` | — | slStatCard, slStatCardValue, slStatCardDelta | How a number is written. On the root, the default for the value and the delta |
|
|
80
80
|
| `emphasis` | `'none' \| 'whole'` | 'none' | slStatCardValue | whole draws the symbol, the decimals and the suffix of a numeric value in the unit part, so the whole units carry the figure; the text is the formatter’s either way |
|
|
81
|
+
| `transition` | `'none' \| 'count'` | 'none' | slStatCardValue | count moves a changed numeric value from the number it showed over --slotted-duration-long with the standard easing, each frame drawn by the formatter; the moving figure is hidden from assistive technology and the final one is said. The first render, a loading or empty card and a 1ms duration show the value as it is |
|
|
81
82
|
| `messages` | `Partial<StatCardMessages>` | — | slStatCard | Words laid over the language in force, key by key: up, down and flat, heard before the delta; empty, shown in place of a missing value |
|
|
82
83
|
| `value` | `number \| string` | — | slStatCardValue, slStatCardDelta | A number the card formats, or text as written. On a delta, unset means the root’s delta |
|
|
83
84
|
| `format` | `'percent' \| 'decimal'` | percent | slStatCardDelta | percent reads the value as a fraction; decimal reads it as it is. The sign is shown except on nought |
|
package/docs/switch.json
CHANGED
|
@@ -19,6 +19,10 @@
|
|
|
19
19
|
"labelPlacement": [
|
|
20
20
|
"end",
|
|
21
21
|
"start"
|
|
22
|
+
],
|
|
23
|
+
"variant": [
|
|
24
|
+
"plain",
|
|
25
|
+
"control"
|
|
22
26
|
]
|
|
23
27
|
},
|
|
24
28
|
"members": {
|
|
@@ -28,6 +32,7 @@
|
|
|
28
32
|
"size": "md",
|
|
29
33
|
"indicator": "mark",
|
|
30
34
|
"labelPlacement": "end",
|
|
35
|
+
"variant": "plain",
|
|
31
36
|
"loading": false
|
|
32
37
|
},
|
|
33
38
|
"capabilities": [
|
|
@@ -144,6 +149,13 @@
|
|
|
144
149
|
"appliesTo": "[slSwitch], provideSwitchDefaults",
|
|
145
150
|
"description": "Which side of the label the pill sits on. start is the settings row: the label takes the free width and the pill sits at the end of the row."
|
|
146
151
|
},
|
|
152
|
+
{
|
|
153
|
+
"name": "variant",
|
|
154
|
+
"type": "'plain' | 'control'",
|
|
155
|
+
"defaultValue": "plain",
|
|
156
|
+
"appliesTo": "[slSwitch], provideSwitchDefaults",
|
|
157
|
+
"description": "control stands the switch in a box one control tall, so in a row of fields aligned to their end the pill sits on the line of their controls. --slotted-switch-control-block-size names another step than the switch size"
|
|
158
|
+
},
|
|
147
159
|
{
|
|
148
160
|
"name": "loading",
|
|
149
161
|
"type": "boolean",
|
|
@@ -267,6 +279,9 @@
|
|
|
267
279
|
"--slotted-control-font-size-lg",
|
|
268
280
|
"--slotted-control-font-size-md",
|
|
269
281
|
"--slotted-control-font-size-sm",
|
|
282
|
+
"--slotted-control-height-lg",
|
|
283
|
+
"--slotted-control-height-md",
|
|
284
|
+
"--slotted-control-height-sm",
|
|
270
285
|
"--slotted-control-icon-size-lg",
|
|
271
286
|
"--slotted-control-icon-size-md",
|
|
272
287
|
"--slotted-control-icon-size-sm",
|
|
@@ -300,6 +315,7 @@
|
|
|
300
315
|
"--slotted-switch-checked-hover-background",
|
|
301
316
|
"--slotted-switch-checked-thumb-border-color",
|
|
302
317
|
"--slotted-switch-color",
|
|
318
|
+
"--slotted-switch-control-block-size",
|
|
303
319
|
"--slotted-switch-description-color",
|
|
304
320
|
"--slotted-switch-description-font-size",
|
|
305
321
|
"--slotted-switch-disabled-background",
|
package/docs/switch.md
CHANGED
|
@@ -56,6 +56,7 @@ export class SwitchBasic {}
|
|
|
56
56
|
| `size` | `'sm' \| 'md' \| 'lg'` | md | [slSwitch], provideSwitchDefaults | The control step. A field around the switch decides it first, then provideSwitchDefaults. The pill, the thumb, the check and the label read the control scales, which the theme restates per density. |
|
|
57
57
|
| `indicator` | `'mark' \| 'none'` | mark | [slSwitch], provideSwitchDefaults | What the thumb carries. mark draws a check when the switch is on and nothing when it is off. none draws nothing, and is correct only where text beside the switch states the value. |
|
|
58
58
|
| `labelPlacement` | `'end' \| 'start'` | end | [slSwitch], provideSwitchDefaults | Which side of the label the pill sits on. start is the settings row: the label takes the free width and the pill sits at the end of the row. |
|
|
59
|
+
| `variant` | `'plain' \| 'control'` | plain | [slSwitch], provideSwitchDefaults | control stands the switch in a box one control tall, so in a row of fields aligned to their end the pill sits on the line of their controls. --slotted-switch-control-block-size names another step than the switch size |
|
|
59
60
|
| `loading` | `boolean` | false | [slSwitch] | The value is not settled yet. The switch refuses every press, keeps its size, sets aria-busy, and announces the pending label politely once the wait passes two seconds. |
|
|
60
61
|
| `messages` | `Partial<SwitchMessages>` | — | [slSwitch] | Words that replace the active language’s, key by key: loading is what a screen reader hears while the switch is pending. The words reach a live region, not the control’s name, so the name never changes with the state. |
|
|
61
62
|
| `disabled` | `boolean` | from the field, or false | [slSwitch] | Unset rather than false, so the switch follows the field around it. A stated value wins. It is the native attribute, as is a disabled form control, which takes the switch out of the tab order and out of form submission. |
|
|
@@ -84,6 +85,7 @@ export class SwitchBasic {}
|
|
|
84
85
|
| `size` | `sm`, `md`, `lg` | `md` |
|
|
85
86
|
| `indicator` | `mark`, `none` | `mark` |
|
|
86
87
|
| `labelPlacement` | `end`, `start` | `end` |
|
|
88
|
+
| `variant` | `plain`, `control` | `plain` |
|
|
87
89
|
|
|
88
90
|
## Rules
|
|
89
91
|
|
|
@@ -97,7 +99,7 @@ export class SwitchBasic {}
|
|
|
97
99
|
|
|
98
100
|
## Tokens
|
|
99
101
|
|
|
100
|
-
`--slotted-border-width-thin`, `--slotted-control-border-color`, `--slotted-control-border-width`, `--slotted-control-font-family`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-icon-size-lg`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-control-invalid-edge-width`, `--slotted-control-label-gap-lg`, `--slotted-control-label-gap-md`, `--slotted-control-label-gap-sm`, `--slotted-control-shadow`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-background`, `--slotted-disabled-border`, `--slotted-disabled-foreground`, `--slotted-duration-loop`, `--slotted-focus-ring-color`, `--slotted-focus-ring-color-invalid`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-size-xs`, `--slotted-line-height-md`, `--slotted-line-height-xs`, `--slotted-radius-full`, `--slotted-space-1`, `--slotted-space-3`, `--slotted-surface`, `--slotted-switch-active-background`, `--slotted-switch-border-color`, `--slotted-switch-checked-active-background`, `--slotted-switch-checked-background`, `--slotted-switch-checked-border-color`, `--slotted-switch-checked-hover-background`, `--slotted-switch-checked-thumb-border-color`, `--slotted-switch-color`, `--slotted-switch-description-color`, `--slotted-switch-description-font-size`, `--slotted-switch-disabled-background`, `--slotted-switch-disabled-border-color`, `--slotted-switch-disabled-color`, `--slotted-switch-disabled-mark-color`, `--slotted-switch-disabled-thumb-background`, `--slotted-switch-hover-background`, `--slotted-switch-invalid-border-color`, `--slotted-switch-invalid-edge-width`, `--slotted-switch-invalid-focus-ring-color`, `--slotted-switch-line-height`, `--slotted-switch-mark-color`, `--slotted-switch-pending-color`, `--slotted-switch-radius`, `--slotted-switch-readonly-background`, `--slotted-switch-readonly-border-color`, `--slotted-switch-thumb-background`, `--slotted-switch-thumb-border-color`, `--slotted-switch-thumb-shadow`, `--slotted-switch-track-background`, `--slotted-switch-track-inline-size`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-on-solid`, `--slotted-tone-accent-solid`, `--slotted-tone-accent-solid-active`, `--slotted-tone-accent-solid-hover`, `--slotted-tone-danger-border`, `--slotted-tone-secondary-solid`, `--slotted-tone-secondary-solid-active`, `--slotted-tone-secondary-solid-hover`
|
|
102
|
+
`--slotted-border-width-thin`, `--slotted-control-border-color`, `--slotted-control-border-width`, `--slotted-control-font-family`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-height-lg`, `--slotted-control-height-md`, `--slotted-control-height-sm`, `--slotted-control-icon-size-lg`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-control-invalid-edge-width`, `--slotted-control-label-gap-lg`, `--slotted-control-label-gap-md`, `--slotted-control-label-gap-sm`, `--slotted-control-shadow`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-background`, `--slotted-disabled-border`, `--slotted-disabled-foreground`, `--slotted-duration-loop`, `--slotted-focus-ring-color`, `--slotted-focus-ring-color-invalid`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-size-xs`, `--slotted-line-height-md`, `--slotted-line-height-xs`, `--slotted-radius-full`, `--slotted-space-1`, `--slotted-space-3`, `--slotted-surface`, `--slotted-switch-active-background`, `--slotted-switch-border-color`, `--slotted-switch-checked-active-background`, `--slotted-switch-checked-background`, `--slotted-switch-checked-border-color`, `--slotted-switch-checked-hover-background`, `--slotted-switch-checked-thumb-border-color`, `--slotted-switch-color`, `--slotted-switch-control-block-size`, `--slotted-switch-description-color`, `--slotted-switch-description-font-size`, `--slotted-switch-disabled-background`, `--slotted-switch-disabled-border-color`, `--slotted-switch-disabled-color`, `--slotted-switch-disabled-mark-color`, `--slotted-switch-disabled-thumb-background`, `--slotted-switch-hover-background`, `--slotted-switch-invalid-border-color`, `--slotted-switch-invalid-edge-width`, `--slotted-switch-invalid-focus-ring-color`, `--slotted-switch-line-height`, `--slotted-switch-mark-color`, `--slotted-switch-pending-color`, `--slotted-switch-radius`, `--slotted-switch-readonly-background`, `--slotted-switch-readonly-border-color`, `--slotted-switch-thumb-background`, `--slotted-switch-thumb-border-color`, `--slotted-switch-thumb-shadow`, `--slotted-switch-track-background`, `--slotted-switch-track-inline-size`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-on-solid`, `--slotted-tone-accent-solid`, `--slotted-tone-accent-solid-active`, `--slotted-tone-accent-solid-hover`, `--slotted-tone-danger-border`, `--slotted-tone-secondary-solid`, `--slotted-tone-secondary-solid-active`, `--slotted-tone-secondary-solid-hover`
|
|
101
103
|
|
|
102
104
|
## Examples
|
|
103
105
|
|
package/docs/table.json
CHANGED
|
@@ -68,6 +68,10 @@
|
|
|
68
68
|
"start",
|
|
69
69
|
"center",
|
|
70
70
|
"end"
|
|
71
|
+
],
|
|
72
|
+
"guides": [
|
|
73
|
+
true,
|
|
74
|
+
false
|
|
71
75
|
]
|
|
72
76
|
},
|
|
73
77
|
"members": {
|
|
@@ -91,7 +95,8 @@
|
|
|
91
95
|
"cellAlign": "center",
|
|
92
96
|
"blockAlign": "center",
|
|
93
97
|
"stickyFooter": false,
|
|
94
|
-
"searchThreshold": 8
|
|
98
|
+
"searchThreshold": 8,
|
|
99
|
+
"guides": true
|
|
95
100
|
},
|
|
96
101
|
"capabilities": [
|
|
97
102
|
"sort",
|
|
@@ -439,6 +444,13 @@
|
|
|
439
444
|
"appliesTo": "slTable",
|
|
440
445
|
"description": "A tinted ground on every second record"
|
|
441
446
|
},
|
|
447
|
+
{
|
|
448
|
+
"name": "guides",
|
|
449
|
+
"type": "boolean",
|
|
450
|
+
"defaultValue": "true",
|
|
451
|
+
"appliesTo": "slTable",
|
|
452
|
+
"description": "A line per ancestor level beside the rows that name a parent, on the center of the expander one level up"
|
|
453
|
+
},
|
|
442
454
|
{
|
|
443
455
|
"name": "stickyHeader",
|
|
444
456
|
"type": "boolean",
|
|
@@ -600,6 +612,20 @@
|
|
|
600
612
|
"appliesTo": "slTableRow",
|
|
601
613
|
"description": "The record key the selection and the expansion are held by"
|
|
602
614
|
},
|
|
615
|
+
{
|
|
616
|
+
"name": "level",
|
|
617
|
+
"type": "number",
|
|
618
|
+
"defaultValue": "—",
|
|
619
|
+
"appliesTo": "slTableRow",
|
|
620
|
+
"description": "How deep the row sits under the rows that fold it, from 0. The first cell that is not the selection is indented by this many steps, and a cell without an expander keeps its box as space"
|
|
621
|
+
},
|
|
622
|
+
{
|
|
623
|
+
"name": "parent",
|
|
624
|
+
"type": "string",
|
|
625
|
+
"defaultValue": "—",
|
|
626
|
+
"appliesTo": "slTableRow",
|
|
627
|
+
"description": "The value of the row whose expander folds this one. The consumer writes the @if around it, table.isExpanded(parent), as for a detail row."
|
|
628
|
+
},
|
|
603
629
|
{
|
|
604
630
|
"name": "disabled",
|
|
605
631
|
"type": "boolean",
|
|
@@ -621,6 +647,13 @@
|
|
|
621
647
|
"appliesTo": "slTableRow",
|
|
622
648
|
"description": "The record open elsewhere on the page, a detail pane beside the table, written as aria-current"
|
|
623
649
|
},
|
|
650
|
+
{
|
|
651
|
+
"name": "visuallyHidden",
|
|
652
|
+
"type": "boolean",
|
|
653
|
+
"defaultValue": "false",
|
|
654
|
+
"appliesTo": "slTableCaption",
|
|
655
|
+
"description": "Keeps the caption as the accessible name of the table and draws nothing, for a table under a heading that already names it"
|
|
656
|
+
},
|
|
624
657
|
{
|
|
625
658
|
"name": "muted",
|
|
626
659
|
"type": "boolean",
|
|
@@ -816,12 +849,14 @@
|
|
|
816
849
|
"--slotted-radius-sm",
|
|
817
850
|
"--slotted-shadow-xs",
|
|
818
851
|
"--slotted-space-2",
|
|
852
|
+
"--slotted-space-4",
|
|
819
853
|
"--slotted-space-5",
|
|
820
854
|
"--slotted-space-9",
|
|
821
855
|
"--slotted-surface",
|
|
822
856
|
"--slotted-table-border-color",
|
|
823
857
|
"--slotted-table-border-color-strong",
|
|
824
858
|
"--slotted-table-border-width",
|
|
859
|
+
"--slotted-table-caption-surface",
|
|
825
860
|
"--slotted-table-cell-padding-block",
|
|
826
861
|
"--slotted-table-cell-padding-inline",
|
|
827
862
|
"--slotted-table-color",
|
|
@@ -835,6 +870,8 @@
|
|
|
835
870
|
"--slotted-table-group-color",
|
|
836
871
|
"--slotted-table-group-sticky-offset",
|
|
837
872
|
"--slotted-table-group-surface",
|
|
873
|
+
"--slotted-table-guide-color",
|
|
874
|
+
"--slotted-table-header-backdrop-filter",
|
|
838
875
|
"--slotted-table-header-surface",
|
|
839
876
|
"--slotted-table-header-surface-hover",
|
|
840
877
|
"--slotted-table-icon-size",
|
|
@@ -853,6 +890,7 @@
|
|
|
853
890
|
"--slotted-table-sticky-offset-end",
|
|
854
891
|
"--slotted-table-sticky-surface",
|
|
855
892
|
"--slotted-table-surface",
|
|
893
|
+
"--slotted-table-tree-indent",
|
|
856
894
|
"--slotted-target-comfortable",
|
|
857
895
|
"--slotted-target-min",
|
|
858
896
|
"--slotted-text",
|
package/docs/table.md
CHANGED
|
@@ -207,6 +207,7 @@ export class TableBasic {
|
|
|
207
207
|
| `variant` | `'plain' \| 'ruled' \| 'framed'` | ruled | slTable | How much of a frame the set is given |
|
|
208
208
|
| `edges` | `'inset' \| 'flush'` | inset | slTable | Whether the first and the last column keep the cell inset on their outer side. flush lines a plain or ruled table up with the heading around it, leaving the theme’s --slotted-table-edge-inset (0 unless set); a framed table ignores it. Sticky and selection columns keep their own offsets |
|
|
209
209
|
| `striped` | `boolean` | false | slTable | A tinted ground on every second record |
|
|
210
|
+
| `guides` | `boolean` | true | slTable | A line per ancestor level beside the rows that name a parent, on the center of the expander one level up |
|
|
210
211
|
| `stickyHeader` | `boolean` | false | slTable | Whether the header stays while the body scrolls |
|
|
211
212
|
| `stickyFooter` | `boolean` | false | slTable | Whether the summary rows stay while the body scrolls. It pins the tfoot and not the footer bar, which never scrolls. |
|
|
212
213
|
| `stickyTo` | `'scroll' \| 'page'` | scroll | slTable | What the header stays inside: this table own scroller, or whatever scrolls outside it. page releases the scroller, so the table stops scrolling sideways in its frame. |
|
|
@@ -230,9 +231,12 @@ export class TableBasic {
|
|
|
230
231
|
| `scrollLabel` | `string` | — | slTableContent | The name the scrolling region takes while it overflows, over the catalog’s |
|
|
231
232
|
| `scrollLabelledBy` | `string` | — | slTableContent | The element that names the region instead, usually the caption |
|
|
232
233
|
| `value` | `string` | — | slTableRow | The record key the selection and the expansion are held by |
|
|
234
|
+
| `level` | `number` | — | slTableRow | How deep the row sits under the rows that fold it, from 0. The first cell that is not the selection is indented by this many steps, and a cell without an expander keeps its box as space |
|
|
235
|
+
| `parent` | `string` | — | slTableRow | The value of the row whose expander folds this one. The consumer writes the @if around it, table.isExpanded(parent), as for a detail row. |
|
|
233
236
|
| `disabled` | `boolean` | false | slTableRow | A record the reader may not choose; it leaves the set the header covers |
|
|
234
237
|
| `rowIndex` | `number` | — | slTableRow | The record position in the whole set, written as aria-rowindex |
|
|
235
238
|
| `current` | `boolean` | false | slTableRow | The record open elsewhere on the page, a detail pane beside the table, written as aria-current |
|
|
239
|
+
| `visuallyHidden` | `boolean` | false | slTableCaption | Keeps the caption as the accessible name of the table and draws nothing, for a table under a heading that already names it |
|
|
236
240
|
| `muted` | `boolean` | false | slTableRow | Draws the row in the muted ink, for a record that is no longer active; the row stays selectable and pressable |
|
|
237
241
|
| `interactive` | `boolean` | false | slTableRow | Paints the row as a thing the pointer presses; stated beside (action) |
|
|
238
242
|
| `(action)` | `MouseEvent` | — | slTableRow | A click anywhere in the row that lands on no control of its own; the first link or button in the row is the keyboard way in |
|
|
@@ -280,6 +284,7 @@ export class TableBasic {
|
|
|
280
284
|
| `text` | `wrap`, `truncate`, `nowrap` | `wrap` |
|
|
281
285
|
| `sticky` | `start`, `end` | `start` |
|
|
282
286
|
| `blockAlign` | `start`, `center`, `end` | `center` |
|
|
287
|
+
| `guides` | `true`, `false` | `true` |
|
|
283
288
|
|
|
284
289
|
## Rules
|
|
285
290
|
|
|
@@ -295,7 +300,7 @@ export class TableBasic {
|
|
|
295
300
|
|
|
296
301
|
## Tokens
|
|
297
302
|
|
|
298
|
-
`--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-font-family`, `--slotted-control-font-size-md`, `--slotted-control-gap-md`, `--slotted-control-height-md`, `--slotted-control-icon-size-md`, `--slotted-control-padding-inline-md`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-foreground`, `--slotted-duration-short`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-regular`, `--slotted-font-weight-semibold`, `--slotted-ground`, `--slotted-line-height-md`, `--slotted-radius-md`, `--slotted-radius-sm`, `--slotted-shadow-xs`, `--slotted-space-2`, `--slotted-space-5`, `--slotted-space-9`, `--slotted-surface`, `--slotted-table-border-color`, `--slotted-table-border-color-strong`, `--slotted-table-border-width`, `--slotted-table-cell-padding-block`, `--slotted-table-cell-padding-inline`, `--slotted-table-color`, `--slotted-table-color-muted`, `--slotted-table-column-actions-size`, `--slotted-table-control-radius`, `--slotted-table-edge-inset`, `--slotted-table-font-family`, `--slotted-table-font-size`, `--slotted-table-gap`, `--slotted-table-group-color`, `--slotted-table-group-sticky-offset`, `--slotted-table-group-surface`, `--slotted-table-header-surface`, `--slotted-table-header-surface-hover`, `--slotted-table-icon-size`, `--slotted-table-radius`, `--slotted-table-row-color-selected`, `--slotted-table-row-min-block-size`, `--slotted-table-row-surface-current`, `--slotted-table-row-surface-hover`, `--slotted-table-row-surface-selected`, `--slotted-table-row-surface-selected-hover`, `--slotted-table-row-surface-stripe`, `--slotted-table-selection-size`, `--slotted-table-shadow`, `--slotted-table-sticky-inset`, `--slotted-table-sticky-offset`, `--slotted-table-sticky-offset-end`, `--slotted-table-sticky-surface`, `--slotted-table-surface`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-subtle-hover`, `--slotted-tone-accent-surface`, `--slotted-tone-accent-text`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-sticky`
|
|
303
|
+
`--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-font-family`, `--slotted-control-font-size-md`, `--slotted-control-gap-md`, `--slotted-control-height-md`, `--slotted-control-icon-size-md`, `--slotted-control-padding-inline-md`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-foreground`, `--slotted-duration-short`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-regular`, `--slotted-font-weight-semibold`, `--slotted-ground`, `--slotted-line-height-md`, `--slotted-radius-md`, `--slotted-radius-sm`, `--slotted-shadow-xs`, `--slotted-space-2`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-9`, `--slotted-surface`, `--slotted-table-border-color`, `--slotted-table-border-color-strong`, `--slotted-table-border-width`, `--slotted-table-caption-surface`, `--slotted-table-cell-padding-block`, `--slotted-table-cell-padding-inline`, `--slotted-table-color`, `--slotted-table-color-muted`, `--slotted-table-column-actions-size`, `--slotted-table-control-radius`, `--slotted-table-edge-inset`, `--slotted-table-font-family`, `--slotted-table-font-size`, `--slotted-table-gap`, `--slotted-table-group-color`, `--slotted-table-group-sticky-offset`, `--slotted-table-group-surface`, `--slotted-table-guide-color`, `--slotted-table-header-backdrop-filter`, `--slotted-table-header-surface`, `--slotted-table-header-surface-hover`, `--slotted-table-icon-size`, `--slotted-table-radius`, `--slotted-table-row-color-selected`, `--slotted-table-row-min-block-size`, `--slotted-table-row-surface-current`, `--slotted-table-row-surface-hover`, `--slotted-table-row-surface-selected`, `--slotted-table-row-surface-selected-hover`, `--slotted-table-row-surface-stripe`, `--slotted-table-selection-size`, `--slotted-table-shadow`, `--slotted-table-sticky-inset`, `--slotted-table-sticky-offset`, `--slotted-table-sticky-offset-end`, `--slotted-table-sticky-surface`, `--slotted-table-surface`, `--slotted-table-tree-indent`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-subtle-hover`, `--slotted-tone-accent-surface`, `--slotted-tone-accent-text`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-sticky`
|
|
299
304
|
|
|
300
305
|
## Examples
|
|
301
306
|
|
package/docs/tag.json
CHANGED
package/docs/tag.md
CHANGED
|
@@ -121,7 +121,7 @@ Excerpt — not a complete module
|
|
|
121
121
|
|
|
122
122
|
## Tokens
|
|
123
123
|
|
|
124
|
-
`--slotted-border-width-thin`, `--slotted-control-font-family`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-control-inner-size`, `--slotted-control-inner-size-md`, `--slotted-control-inner-size-sm`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-background`, `--slotted-disabled-border`, `--slotted-disabled-foreground`, `--slotted-duration-short`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-weight-medium`, `--slotted-line-height-xs`, `--slotted-radius-full`, `--slotted-radius-sm`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-tag-border-color`, `--slotted-tag-border-width`, `--slotted-tag-font-family`, `--slotted-tag-font-weight`, `--slotted-tag-group-gap`, `--slotted-tag-inset-block`, `--slotted-tag-inset-inline`, `--slotted-tag-state-layer-active`, `--slotted-tag-state-layer-hover`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-tone-accent-border`, `--slotted-tone-accent-on-solid`, `--slotted-tone-accent-solid`, `--slotted-tone-accent-solid-active`, `--slotted-tone-accent-solid-hover`, `--slotted-tone-accent-subtle-active`, `--slotted-tone-accent-subtle-hover`, `--slotted-tone-accent-surface`, `--slotted-tone-accent-text`, `--slotted-tone-danger-border`, `--slotted-tone-danger-on-solid`, `--slotted-tone-danger-solid`, `--slotted-tone-danger-solid-active`, `--slotted-tone-danger-solid-hover`, `--slotted-tone-danger-subtle-active`, `--slotted-tone-danger-subtle-hover`, `--slotted-tone-danger-surface`, `--slotted-tone-danger-text`, `--slotted-tone-info-border`, `--slotted-tone-info-on-solid`, `--slotted-tone-info-solid`, `--slotted-tone-info-solid-active`, `--slotted-tone-info-solid-hover`, `--slotted-tone-info-subtle-active`, `--slotted-tone-info-subtle-hover`, `--slotted-tone-info-surface`, `--slotted-tone-info-text`, `--slotted-tone-secondary-border`, `--slotted-tone-secondary-on-solid`, `--slotted-tone-secondary-solid-active`, `--slotted-tone-secondary-solid-hover`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-tone-secondary-surface`, `--slotted-tone-secondary-text`, `--slotted-tone-success-border`, `--slotted-tone-success-on-solid`, `--slotted-tone-success-solid`, `--slotted-tone-success-solid-active`, `--slotted-tone-success-solid-hover`, `--slotted-tone-success-subtle-active`, `--slotted-tone-success-subtle-hover`, `--slotted-tone-success-surface`, `--slotted-tone-success-text`, `--slotted-tone-warning-border`, `--slotted-tone-warning-on-solid`, `--slotted-tone-warning-solid`, `--slotted-tone-warning-solid-active`, `--slotted-tone-warning-solid-hover`, `--slotted-tone-warning-subtle-active`, `--slotted-tone-warning-subtle-hover`, `--slotted-tone-warning-surface`, `--slotted-tone-warning-text`
|
|
124
|
+
`--slotted-border-width-thin`, `--slotted-control-font-family`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-control-inner-size`, `--slotted-control-inner-size-md`, `--slotted-control-inner-size-sm`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-background`, `--slotted-disabled-border`, `--slotted-disabled-foreground`, `--slotted-duration-short`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-weight-medium`, `--slotted-line-height-xs`, `--slotted-radius-full`, `--slotted-radius-sm`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-tag-border-color`, `--slotted-tag-border-width`, `--slotted-tag-font-family`, `--slotted-tag-font-weight`, `--slotted-tag-group-gap`, `--slotted-tag-inset-block`, `--slotted-tag-inset-inline`, `--slotted-tag-state-layer-active`, `--slotted-tag-state-layer-hover`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text-box-edge`, `--slotted-tone-accent-border`, `--slotted-tone-accent-on-solid`, `--slotted-tone-accent-solid`, `--slotted-tone-accent-solid-active`, `--slotted-tone-accent-solid-hover`, `--slotted-tone-accent-subtle-active`, `--slotted-tone-accent-subtle-hover`, `--slotted-tone-accent-surface`, `--slotted-tone-accent-text`, `--slotted-tone-danger-border`, `--slotted-tone-danger-on-solid`, `--slotted-tone-danger-solid`, `--slotted-tone-danger-solid-active`, `--slotted-tone-danger-solid-hover`, `--slotted-tone-danger-subtle-active`, `--slotted-tone-danger-subtle-hover`, `--slotted-tone-danger-surface`, `--slotted-tone-danger-text`, `--slotted-tone-info-border`, `--slotted-tone-info-on-solid`, `--slotted-tone-info-solid`, `--slotted-tone-info-solid-active`, `--slotted-tone-info-solid-hover`, `--slotted-tone-info-subtle-active`, `--slotted-tone-info-subtle-hover`, `--slotted-tone-info-surface`, `--slotted-tone-info-text`, `--slotted-tone-secondary-border`, `--slotted-tone-secondary-on-solid`, `--slotted-tone-secondary-solid-active`, `--slotted-tone-secondary-solid-hover`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-tone-secondary-surface`, `--slotted-tone-secondary-text`, `--slotted-tone-success-border`, `--slotted-tone-success-on-solid`, `--slotted-tone-success-solid`, `--slotted-tone-success-solid-active`, `--slotted-tone-success-solid-hover`, `--slotted-tone-success-subtle-active`, `--slotted-tone-success-subtle-hover`, `--slotted-tone-success-surface`, `--slotted-tone-success-text`, `--slotted-tone-warning-border`, `--slotted-tone-warning-on-solid`, `--slotted-tone-warning-solid`, `--slotted-tone-warning-solid-active`, `--slotted-tone-warning-solid-hover`, `--slotted-tone-warning-subtle-active`, `--slotted-tone-warning-subtle-hover`, `--slotted-tone-warning-surface`, `--slotted-tone-warning-text`
|
|
125
125
|
|
|
126
126
|
## Examples
|
|
127
127
|
|
package/docs/tokens.md
CHANGED
|
@@ -428,7 +428,7 @@ The size of a selection control and of the halo behind it.
|
|
|
428
428
|
| `--slotted-selection-size-sm` | The box of a checkbox and the circle of a radio at the small step. | 14px |
|
|
429
429
|
| `--slotted-selection-size-md` | The box and the circle at the medium step. | 16px |
|
|
430
430
|
| `--slotted-selection-size-lg` | The box and the circle at the large step. | 18px |
|
|
431
|
-
| `--slotted-selection-halo-opacity` | The share of `--slotted-tone-accent-text` in the halo behind a selection control under the pointer. | 0.
|
|
431
|
+
| `--slotted-selection-halo-opacity` | The share of `--slotted-tone-accent-text` in the halo behind a selection control under the pointer. | 0.14 |
|
|
432
432
|
|
|
433
433
|
## highlight
|
|
434
434
|
|
package/docs/toolbar.json
CHANGED
|
@@ -285,7 +285,8 @@
|
|
|
285
285
|
"--slotted-toolbar-overflow-hover-background",
|
|
286
286
|
"--slotted-toolbar-overflow-hover-color",
|
|
287
287
|
"--slotted-toolbar-overflow-open-background",
|
|
288
|
-
"--slotted-toolbar-separator-color"
|
|
288
|
+
"--slotted-toolbar-separator-color",
|
|
289
|
+
"--slotted-toolbar-shadow"
|
|
289
290
|
],
|
|
290
291
|
"examples": [
|
|
291
292
|
{
|
package/docs/toolbar.md
CHANGED
|
@@ -77,7 +77,7 @@ Excerpt — not a complete module
|
|
|
77
77
|
|
|
78
78
|
## Tokens
|
|
79
79
|
|
|
80
|
-
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-border-color`, `--slotted-control-font-family`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-gap-lg`, `--slotted-control-gap-md`, `--slotted-control-gap-sm`, `--slotted-control-height-lg`, `--slotted-control-height-md`, `--slotted-control-height-sm`, `--slotted-control-icon-size-lg`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-control-inner-size-lg`, `--slotted-control-inner-size-md`, `--slotted-control-inner-size-sm`, `--slotted-control-radius`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-foreground`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-radius-md`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-surface-raised`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-toolbar-background`, `--slotted-toolbar-border-color`, `--slotted-toolbar-gap`, `--slotted-toolbar-inset`, `--slotted-toolbar-overflow-active-background`, `--slotted-toolbar-overflow-color`, `--slotted-toolbar-overflow-hover-background`, `--slotted-toolbar-overflow-hover-color`, `--slotted-toolbar-overflow-open-background`, `--slotted-toolbar-separator-color`
|
|
80
|
+
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-border-color`, `--slotted-control-font-family`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-gap-lg`, `--slotted-control-gap-md`, `--slotted-control-gap-sm`, `--slotted-control-height-lg`, `--slotted-control-height-md`, `--slotted-control-height-sm`, `--slotted-control-icon-size-lg`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-control-inner-size-lg`, `--slotted-control-inner-size-md`, `--slotted-control-inner-size-sm`, `--slotted-control-radius`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-foreground`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-radius-md`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-surface-raised`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-toolbar-background`, `--slotted-toolbar-border-color`, `--slotted-toolbar-gap`, `--slotted-toolbar-inset`, `--slotted-toolbar-overflow-active-background`, `--slotted-toolbar-overflow-color`, `--slotted-toolbar-overflow-hover-background`, `--slotted-toolbar-overflow-hover-color`, `--slotted-toolbar-overflow-open-background`, `--slotted-toolbar-separator-color`, `--slotted-toolbar-shadow`
|
|
81
81
|
|
|
82
82
|
## Examples
|
|
83
83
|
|
package/docs/top-navigation.json
CHANGED
package/docs/top-navigation.md
CHANGED
|
@@ -131,7 +131,7 @@ Excerpt — not a complete module
|
|
|
131
131
|
|
|
132
132
|
## Tokens
|
|
133
133
|
|
|
134
|
-
`--slotted-app-shell-row-font-size`, `--slotted-app-shell-row-height`, `--slotted-app-shell-row-inset`, `--slotted-app-shell-row-line-height`, `--slotted-border-subtle`, `--slotted-border-width-thick`, `--slotted-border-width-thin`, `--slotted-control-font-family`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-gap-lg`, `--slotted-control-gap-md`, `--slotted-control-gap-sm`, `--slotted-control-height-lg`, `--slotted-control-height-md`, `--slotted-control-height-sm`, `--slotted-control-icon-size-lg`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-control-line-height`, `--slotted-control-padding-inline-lg`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-control-radius`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-current-edge`, `--slotted-disabled-foreground`, `--slotted-duration-instant`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-enter`, `--slotted-easing-exit`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-size-lg`, `--slotted-font-size-md`, `--slotted-font-size-sm`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-semibold`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-line-height-xs`, `--slotted-radius-full`, `--slotted-radius-lg`, `--slotted-shadow-md`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-surface`, `--slotted-surface-raised`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-on-solid`, `--slotted-tone-accent-solid`, `--slotted-tone-accent-surface`, `--slotted-tone-accent-text`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-top-navigation-active-background`, `--slotted-top-navigation-block-size`, `--slotted-top-navigation-border-color`, `--slotted-top-navigation-color`, `--slotted-top-navigation-count-background`, `--slotted-top-navigation-count-color`, `--slotted-top-navigation-current-background`, `--slotted-top-navigation-current-color`, `--slotted-top-navigation-current-edge`, `--slotted-top-navigation-hover-background`, `--slotted-top-navigation-inset`, `--slotted-top-navigation-muted-color`, `--slotted-top-navigation-name-font-size`, `--slotted-top-navigation-name-max`, `--slotted-top-navigation-panel-radius`, `--slotted-top-navigation-panel-shadow`, `--slotted-top-navigation-panel-size`, `--slotted-top-navigation-panel-surface`, `--slotted-top-navigation-radius`, `--slotted-top-navigation-search-min`, `--slotted-top-navigation-search-size`, `--slotted-top-navigation-surface`, `--slotted-z-index-popover`
|
|
134
|
+
`--slotted-app-shell-row-font-size`, `--slotted-app-shell-row-height`, `--slotted-app-shell-row-inset`, `--slotted-app-shell-row-line-height`, `--slotted-border-subtle`, `--slotted-border-width-thick`, `--slotted-border-width-thin`, `--slotted-control-font-family`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-gap-lg`, `--slotted-control-gap-md`, `--slotted-control-gap-sm`, `--slotted-control-height-lg`, `--slotted-control-height-md`, `--slotted-control-height-sm`, `--slotted-control-icon-size-lg`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-control-line-height`, `--slotted-control-padding-inline-lg`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-control-radius`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-current-edge`, `--slotted-disabled-foreground`, `--slotted-duration-instant`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-enter`, `--slotted-easing-exit`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-size-lg`, `--slotted-font-size-md`, `--slotted-font-size-sm`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-semibold`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-line-height-xs`, `--slotted-radius-full`, `--slotted-radius-lg`, `--slotted-shadow-md`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-surface`, `--slotted-surface-raised`, `--slotted-text`, `--slotted-text-box-edge`, `--slotted-text-muted`, `--slotted-tone-accent-on-solid`, `--slotted-tone-accent-solid`, `--slotted-tone-accent-surface`, `--slotted-tone-accent-text`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-top-navigation-active-background`, `--slotted-top-navigation-block-size`, `--slotted-top-navigation-border-color`, `--slotted-top-navigation-color`, `--slotted-top-navigation-count-background`, `--slotted-top-navigation-count-color`, `--slotted-top-navigation-current-background`, `--slotted-top-navigation-current-color`, `--slotted-top-navigation-current-edge`, `--slotted-top-navigation-hover-background`, `--slotted-top-navigation-inset`, `--slotted-top-navigation-muted-color`, `--slotted-top-navigation-name-font-size`, `--slotted-top-navigation-name-max`, `--slotted-top-navigation-panel-radius`, `--slotted-top-navigation-panel-shadow`, `--slotted-top-navigation-panel-size`, `--slotted-top-navigation-panel-surface`, `--slotted-top-navigation-radius`, `--slotted-top-navigation-search-min`, `--slotted-top-navigation-search-size`, `--slotted-top-navigation-surface`, `--slotted-z-index-popover`
|
|
135
135
|
|
|
136
136
|
## Examples
|
|
137
137
|
|
package/docs/typography.json
CHANGED
|
@@ -158,6 +158,13 @@
|
|
|
158
158
|
"defaultValue": "—",
|
|
159
159
|
"appliesTo": "slText",
|
|
160
160
|
"description": "Keeps one line, or the given number; the string stays whole"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"name": "textBox",
|
|
164
|
+
"type": "'none' | 'start' | 'end' | 'both' | { trim, edge? }",
|
|
165
|
+
"defaultValue": "none",
|
|
166
|
+
"appliesTo": "slText",
|
|
167
|
+
"description": "Takes the half-leading off the start, the end or both edges, so the text shares a top edge, a bottom edge and an optical center with what stands beside it. edge is an over edge (text, cap, ex, ideographic, ideographic-ink) or an { over, under } pair, and defaults to --slotted-text-box-edge (cap alphabetic), which the families that trim their own labels read too. A trimmed box clips descenders under overflow hidden or a line clamp, a focus ring or a ground hugs the cap height, and only the first and last line of a wrapped text are trimmed"
|
|
161
168
|
}
|
|
162
169
|
],
|
|
163
170
|
"composition": [],
|
|
@@ -229,6 +236,13 @@
|
|
|
229
236
|
"defaultValue": "—",
|
|
230
237
|
"appliesTo": "slHeading",
|
|
231
238
|
"description": "Keeps the given number of lines; the string stays whole"
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"name": "textBox",
|
|
242
|
+
"type": "'none' | 'start' | 'end' | 'both' | { trim, edge? }",
|
|
243
|
+
"defaultValue": "none",
|
|
244
|
+
"appliesTo": "slHeading",
|
|
245
|
+
"description": "Takes the half-leading off the start, the end or both edges, so the text shares a top edge, a bottom edge and an optical center with what stands beside it. edge is an over edge (text, cap, ex, ideographic, ideographic-ink) or an { over, under } pair, and defaults to --slotted-text-box-edge (cap alphabetic), which the families that trim their own labels read too. A trimmed box clips descenders under overflow hidden or a line clamp, a focus ring or a ground hugs the cap height, and only the first and last line of a wrapped text are trimmed"
|
|
232
246
|
}
|
|
233
247
|
],
|
|
234
248
|
"composition": [],
|
|
@@ -263,6 +277,7 @@
|
|
|
263
277
|
"--slotted-line-height-xl",
|
|
264
278
|
"--slotted-line-height-xs",
|
|
265
279
|
"--slotted-text",
|
|
280
|
+
"--slotted-text-box-edge",
|
|
266
281
|
"--slotted-text-inverse",
|
|
267
282
|
"--slotted-text-muted",
|
|
268
283
|
"--slotted-tone-accent-text",
|