@slotted/angular 0.1.0-beta.35 → 0.1.0-beta.37
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/button.json +10 -7
- package/docs/button.md +2 -91
- package/docs/button.props.md +97 -0
- package/docs/calendar.json +22 -0
- package/docs/calendar.md +4 -1
- package/docs/chart.json +1 -1
- package/docs/chart.md +1 -1
- package/docs/collapsible.json +2 -1
- package/docs/collapsible.md +1 -1
- package/docs/command-palette.json +2 -1
- package/docs/command-palette.md +1 -1
- package/docs/dashboard-grid.json +2 -1
- package/docs/dashboard-grid.md +1 -1
- package/docs/entity-picker.json +2 -1
- package/docs/entity-picker.md +1 -1
- package/docs/field-group.json +1 -1
- package/docs/field-group.md +1 -1
- package/docs/floating-panel.json +22 -4
- package/docs/floating-panel.md +6 -4
- package/docs/guidelines/index.md +2 -0
- package/docs/guidelines/own-elements.md +20 -0
- package/docs/index.md +1 -1
- package/docs/list.json +2 -1
- package/docs/list.md +2 -2
- package/docs/message.json +7 -0
- package/docs/message.md +1 -0
- package/docs/page.json +8 -1
- package/docs/page.md +2 -1
- package/docs/progress-indicator.json +1 -39
- package/docs/progress-indicator.md +1 -6
- package/docs/radio-group.json +1 -18
- package/docs/radio-group.md +1 -3
- package/docs/section.json +10 -2
- package/docs/section.md +2 -1
- package/docs/skills/build-own-element/SKILL.md +42 -2
- package/docs/skills/theme-app/SKILL.md +1 -1
- package/docs/sparkline.json +1 -416
- package/docs/sparkline.md +2 -186
- package/docs/table.json +15 -3
- package/docs/table.md +4 -3
- package/docs/tokens.md +12 -0
- package/fesm2022/slotted-angular-app-shell.mjs +2 -2
- package/fesm2022/slotted-angular-app-shell.mjs.map +1 -1
- package/fesm2022/slotted-angular-button.mjs +50 -41
- package/fesm2022/slotted-angular-button.mjs.map +1 -1
- package/fesm2022/slotted-angular-calendar.mjs +249 -137
- package/fesm2022/slotted-angular-calendar.mjs.map +1 -1
- package/fesm2022/slotted-angular-chart.mjs +11 -5
- package/fesm2022/slotted-angular-chart.mjs.map +1 -1
- package/fesm2022/slotted-angular-collapsible.mjs +10 -6
- package/fesm2022/slotted-angular-collapsible.mjs.map +1 -1
- package/fesm2022/slotted-angular-command-palette.mjs +2 -2
- package/fesm2022/slotted-angular-command-palette.mjs.map +1 -1
- package/fesm2022/slotted-angular-dashboard-grid.mjs +2 -2
- package/fesm2022/slotted-angular-dashboard-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-entity-picker.mjs +2 -2
- package/fesm2022/slotted-angular-entity-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-field-group.mjs +2 -2
- package/fesm2022/slotted-angular-field-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-floating-panel.mjs +33 -30
- package/fesm2022/slotted-angular-floating-panel.mjs.map +1 -1
- package/fesm2022/slotted-angular-list-item.mjs +2 -2
- package/fesm2022/slotted-angular-list-item.mjs.map +1 -1
- package/fesm2022/slotted-angular-list.mjs +3 -3
- package/fesm2022/slotted-angular-list.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-message.mjs +18 -8
- package/fesm2022/slotted-angular-message.mjs.map +1 -1
- package/fesm2022/slotted-angular-page.mjs +8 -4
- package/fesm2022/slotted-angular-page.mjs.map +1 -1
- package/fesm2022/slotted-angular-progress-indicator.mjs +7 -106
- package/fesm2022/slotted-angular-progress-indicator.mjs.map +1 -1
- package/fesm2022/slotted-angular-radio-group.mjs +12 -45
- package/fesm2022/slotted-angular-radio-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-section.mjs +20 -3
- package/fesm2022/slotted-angular-section.mjs.map +1 -1
- package/fesm2022/slotted-angular-sparkline.mjs +4 -295
- 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-table.mjs +39 -10
- package/fesm2022/slotted-angular-table.mjs.map +1 -1
- package/fesm2022/slotted-angular-tooltip.mjs +2 -2
- package/fesm2022/slotted-angular-tooltip.mjs.map +1 -1
- package/fesm2022/slotted-angular-upload.mjs +2 -2
- package/fesm2022/slotted-angular-upload.mjs.map +1 -1
- package/package.json +3 -3
- package/types/slotted-angular-button.d.ts +22 -11
- package/types/slotted-angular-button.d.ts.map +1 -1
- package/types/slotted-angular-calendar.d.ts +26 -2
- package/types/slotted-angular-calendar.d.ts.map +1 -1
- package/types/slotted-angular-chart.d.ts.map +1 -1
- package/types/slotted-angular-collapsible.d.ts +4 -1
- package/types/slotted-angular-collapsible.d.ts.map +1 -1
- package/types/slotted-angular-floating-panel.d.ts +27 -22
- package/types/slotted-angular-floating-panel.d.ts.map +1 -1
- package/types/slotted-angular-list.d.ts +6 -4
- package/types/slotted-angular-list.d.ts.map +1 -1
- package/types/slotted-angular-message.d.ts +9 -3
- package/types/slotted-angular-message.d.ts.map +1 -1
- package/types/slotted-angular-page.d.ts.map +1 -1
- package/types/slotted-angular-progress-indicator.d.ts +2 -46
- package/types/slotted-angular-progress-indicator.d.ts.map +1 -1
- package/types/slotted-angular-radio-group.d.ts +4 -22
- package/types/slotted-angular-radio-group.d.ts.map +1 -1
- package/types/slotted-angular-section.d.ts +10 -1
- package/types/slotted-angular-section.d.ts.map +1 -1
- package/types/slotted-angular-sparkline.d.ts +4 -86
- package/types/slotted-angular-sparkline.d.ts.map +1 -1
- package/types/slotted-angular-table.d.ts +21 -7
- package/types/slotted-angular-table.d.ts.map +1 -1
package/docs/button.json
CHANGED
|
@@ -306,7 +306,7 @@
|
|
|
306
306
|
"type": "boolean",
|
|
307
307
|
"defaultValue": "false",
|
|
308
308
|
"appliesTo": "SlButton",
|
|
309
|
-
"description": "A word of the surrounding text, for an action inside a sentence or a dense cell: no box in any variant, the font, line height and baseline of the text around it, underlined in the tone. A row of small text keeps its height."
|
|
309
|
+
"description": "A word of the surrounding text, for an action inside a sentence or a dense cell: no box in any variant, the font, line height and baseline of the text around it, underlined in the tone. A stated size sets the step of the text scale (--slotted-font-size-sm, -md, -lg); without one the font is the one around it, whatever a provider states. A row of small text keeps its height."
|
|
310
310
|
},
|
|
311
311
|
{
|
|
312
312
|
"name": "justify",
|
|
@@ -320,7 +320,7 @@
|
|
|
320
320
|
"type": "readonly string[]",
|
|
321
321
|
"defaultValue": "—",
|
|
322
322
|
"appliesTo": "SlButton",
|
|
323
|
-
"description": "Every text the label can take, for a label that changes under the pointer (the month of a stepper): the
|
|
323
|
+
"description": "Every text the label can take, for a label that changes under the pointer (the month of a stepper): the control reserves the width of its whole content with the widest of them, in tabular figures, and centers what is visible. A start that renders nothing keeps its room in the reservation and takes none beside the label, so a mark comes and goes at one width; --slotted-button-widest-start states the width reserved for a start narrower than an icon. The entries stay out of the accessible name; no effect under fullWidth."
|
|
324
324
|
},
|
|
325
325
|
{
|
|
326
326
|
"name": "disabled",
|
|
@@ -479,7 +479,7 @@
|
|
|
479
479
|
"type": "readonly string[]",
|
|
480
480
|
"defaultValue": "—",
|
|
481
481
|
"appliesTo": "SlButtonLink",
|
|
482
|
-
"description": "Every text the label can take, for a label that changes under the pointer (the month of a stepper): the
|
|
482
|
+
"description": "Every text the label can take, for a label that changes under the pointer (the month of a stepper): the control reserves the width of its whole content with the widest of them, in tabular figures, and centers what is visible. A start that renders nothing keeps its room in the reservation and takes none beside the label, so a mark comes and goes at one width; --slotted-button-widest-start states the width reserved for a start narrower than an icon. The entries stay out of the accessible name; no effect under fullWidth."
|
|
483
483
|
},
|
|
484
484
|
{
|
|
485
485
|
"name": "disabled",
|
|
@@ -565,7 +565,7 @@
|
|
|
565
565
|
"type": "boolean",
|
|
566
566
|
"defaultValue": "false",
|
|
567
567
|
"appliesTo": "SlIconButton",
|
|
568
|
-
"description": "One line of the surrounding text tall, for a help trigger inside a sentence or a term: the line does not grow, the
|
|
568
|
+
"description": "One line of the surrounding text tall, for a help trigger inside a sentence or a term: the line does not grow, and a 24px target stays around it. The icon is drawn from the capital height of the text, centered on the capital beside it, and the size of the Icon has no effect; in a flex row, align-items: baseline puts it on the first line. In ghost it draws no ground under the pointer; in the secondary tone it is muted at rest and takes the text color on hover, on keyboard focus and while its tooltip or popover is open."
|
|
569
569
|
},
|
|
570
570
|
{
|
|
571
571
|
"name": "disabled",
|
|
@@ -815,7 +815,7 @@
|
|
|
815
815
|
"type": "readonly string[]",
|
|
816
816
|
"defaultValue": "—",
|
|
817
817
|
"appliesTo": "SlToggleButton",
|
|
818
|
-
"description": "Every text the label can take, for a label that changes under the pointer (the month of a stepper): the
|
|
818
|
+
"description": "Every text the label can take, for a label that changes under the pointer (the month of a stepper): the control reserves the width of its whole content with the widest of them, in tabular figures, and centers what is visible. A start that renders nothing keeps its room in the reservation and takes none beside the label, so a mark comes and goes at one width; --slotted-button-widest-start states the width reserved for a start narrower than an icon. The entries stay out of the accessible name; no effect under fullWidth."
|
|
819
819
|
},
|
|
820
820
|
{
|
|
821
821
|
"name": "disabled",
|
|
@@ -896,6 +896,7 @@
|
|
|
896
896
|
"tokens": [
|
|
897
897
|
"--slotted-border-subtle",
|
|
898
898
|
"--slotted-border-width-thin",
|
|
899
|
+
"--slotted-button-widest-start",
|
|
899
900
|
"--slotted-control-border-color",
|
|
900
901
|
"--slotted-control-border-width",
|
|
901
902
|
"--slotted-control-font-family",
|
|
@@ -929,11 +930,15 @@
|
|
|
929
930
|
"--slotted-focus-ring-color",
|
|
930
931
|
"--slotted-focus-ring-offset",
|
|
931
932
|
"--slotted-focus-ring-width",
|
|
933
|
+
"--slotted-font-size-lg",
|
|
934
|
+
"--slotted-font-size-md",
|
|
935
|
+
"--slotted-font-size-sm",
|
|
932
936
|
"--slotted-line-height-sm",
|
|
933
937
|
"--slotted-radius-full",
|
|
934
938
|
"--slotted-radius-sm",
|
|
935
939
|
"--slotted-space-2",
|
|
936
940
|
"--slotted-target-min",
|
|
941
|
+
"--slotted-text",
|
|
937
942
|
"--slotted-text-box-edge",
|
|
938
943
|
"--slotted-text-muted",
|
|
939
944
|
"--slotted-tone-accent-border",
|
|
@@ -949,8 +954,6 @@
|
|
|
949
954
|
"--slotted-tone-danger-solid",
|
|
950
955
|
"--slotted-tone-danger-solid-active",
|
|
951
956
|
"--slotted-tone-danger-solid-hover",
|
|
952
|
-
"--slotted-tone-danger-subtle-active",
|
|
953
|
-
"--slotted-tone-danger-subtle-hover",
|
|
954
957
|
"--slotted-tone-danger-text",
|
|
955
958
|
"--slotted-tone-info-on-solid",
|
|
956
959
|
"--slotted-tone-info-solid",
|
package/docs/button.md
CHANGED
|
@@ -95,96 +95,7 @@ export class ButtonBasic {
|
|
|
95
95
|
|
|
96
96
|
## Props
|
|
97
97
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
| Name | Type | Default | Applies to | Description |
|
|
101
|
-
| --- | --- | --- | --- | --- |
|
|
102
|
-
| `tone` | `accent \| secondary \| neutral \| info \| success \| warning \| danger` | accent | SlButton | The semantic color: accent for the primary action, secondary for a neutral one, neutral for a primary action drawn in ink where the accent is kept for data, and success, warning or danger for what the action does. |
|
|
103
|
-
| `variant` | `solid \| outline \| ghost` | solid | SlButton | How the tone is painted: solid, outline or ghost. |
|
|
104
|
-
| `size` | `sm \| md \| lg` | md | SlButton | The step of the control scale. Each step reads the --slotted-control-* tokens, so the density of the theme sets the height. |
|
|
105
|
-
| `start` | `[slButtonStart]` | — | SlButton | Content projected before the label, such as an icon, on the element you mark with slButtonStart. It mirrors in a right-to-left document. |
|
|
106
|
-
| `end` | `[slButtonEnd]` | — | SlButton | Content projected after the label, on the element you mark with slButtonEnd. It mirrors in a right-to-left document. |
|
|
107
|
-
| `fullWidth` | `boolean` | false | SlButton | Fills the inline size of the container. |
|
|
108
|
-
| `flush` | `'start' \| 'end' \| 'both'` | — | SlButton | Stands the label on the edge of the text around it: the button is pulled out by its own inset on the stated side, and the hover ground, the target and the focus ring extend past that edge. For a ghost button as the first line of a stacked cell. It has no effect on an inline button, which has no inset. |
|
|
109
|
-
| `inline` | `boolean` | false | SlButton | A word of the surrounding text, for an action inside a sentence or a dense cell: no box in any variant, the font, line height and baseline of the text around it, underlined in the tone. A row of small text keeps its height. |
|
|
110
|
-
| `justify` | `center \| between` | center | SlButton | Where the content sits along the inline axis: center keeps the label and end together in the middle; between sets the label at the start and end at the inline end, as a field trigger reads, with start beside the label. It mirrors in a right-to-left document. |
|
|
111
|
-
| `widest` | `readonly string[]` | — | SlButton | Every text the label can take, for a label that changes under the pointer (the month of a stepper): the label reserves the width of the widest and centers the visible text in it, in tabular figures. The entries stay out of the accessible name; no effect under fullWidth. |
|
|
112
|
-
| `disabled` | `boolean` | false | SlButton | Refuses the action and marks the control unavailable. On its own, it sets the native disabled property, which also removes the control from the tab sequence. |
|
|
113
|
-
| `focusableWhenDisabled` | `boolean` | false | SlButton | Keeps a disabled control in the tab sequence: aria-disabled replaces the native property, and activation is still refused. |
|
|
114
|
-
| `loading` | `boolean` | false | SlButton | Refuses activation, keeps focus, and shows a progress indicator named by messages.loading. |
|
|
115
|
-
| `loadingDelay` | `number` | 0 | SlButton | Milliseconds before the indicator appears. Activation is refused from the start of the wait. |
|
|
116
|
-
| `messages` | `Partial<ButtonMessages>` | — | SlButton | Overrides for the strings of the active locale, key by key. loading names the progress indicator. |
|
|
117
|
-
| `type` | `button \| submit \| reset` | button | SlButton | The native button type. Set submit only for a button that submits its form. |
|
|
118
|
-
| `provideButtonDefaults` | `(defaults: ButtonDefaults) => Provider` | — | SlButton | Sets the default size, tone and variant of every button under the injector, SlButtonLink, SlIconButton and SlToggleButton included. An explicit input wins, and an axis left unset keeps each member’s own default. |
|
|
119
|
-
|
|
120
|
-
### buttonLink
|
|
121
|
-
|
|
122
|
-
| Name | Type | Default | Applies to | Description |
|
|
123
|
-
| --- | --- | --- | --- | --- |
|
|
124
|
-
| `href` | `string` | — | SlButtonLink | The destination. A disabled SlButtonLink does not render it. |
|
|
125
|
-
| `tone` | `accent \| secondary \| neutral \| info \| success \| warning \| danger` | accent | SlButtonLink | The semantic color: accent for the primary action, secondary for a neutral one, neutral for a primary action drawn in ink where the accent is kept for data, and success, warning or danger for what the action does. |
|
|
126
|
-
| `variant` | `solid \| outline \| ghost` | solid | SlButtonLink | How the tone is painted: solid, outline or ghost. |
|
|
127
|
-
| `size` | `sm \| md \| lg` | md | SlButtonLink | The step of the control scale. Each step reads the --slotted-control-* tokens, so the density of the theme sets the height. |
|
|
128
|
-
| `start` | `[slButtonStart]` | — | SlButtonLink | Content projected before the label, such as an icon, on the element you mark with slButtonStart. It mirrors in a right-to-left document. |
|
|
129
|
-
| `end` | `[slButtonEnd]` | — | SlButtonLink | Content projected after the label, on the element you mark with slButtonEnd. It mirrors in a right-to-left document. |
|
|
130
|
-
| `fullWidth` | `boolean` | false | SlButtonLink | Fills the inline size of the container. |
|
|
131
|
-
| `justify` | `center \| between` | center | SlButtonLink | Where the content sits along the inline axis: center keeps the label and end together in the middle; between sets the label at the start and end at the inline end, as a field trigger reads, with start beside the label. It mirrors in a right-to-left document. |
|
|
132
|
-
| `widest` | `readonly string[]` | — | SlButtonLink | Every text the label can take, for a label that changes under the pointer (the month of a stepper): the label reserves the width of the widest and centers the visible text in it, in tabular figures. The entries stay out of the accessible name; no effect under fullWidth. |
|
|
133
|
-
| `disabled` | `boolean` | false | SlButtonLink | Removes the href and refuses activation. The link stays focusable with role="link" and aria-disabled. |
|
|
134
|
-
|
|
135
|
-
### iconButton
|
|
136
|
-
|
|
137
|
-
| Name | Type | Default | Applies to | Description |
|
|
138
|
-
| --- | --- | --- | --- | --- |
|
|
139
|
-
| `aria-label \| aria-labelledby` | `string` | required | SlIconButton | The accessible name. Required, because an icon supplies no text. |
|
|
140
|
-
| `tone` | `accent \| secondary \| neutral \| info \| success \| warning \| danger` | secondary | SlIconButton | The semantic color: accent for the primary action, secondary for a neutral one, neutral for a primary action drawn in ink where the accent is kept for data, and success, warning or danger for what the action does. |
|
|
141
|
-
| `variant` | `solid \| outline \| ghost` | ghost | SlIconButton | How the tone is painted: solid, outline or ghost. |
|
|
142
|
-
| `size` | `sm \| md \| lg` | md | SlIconButton | The step of the control scale. Each step reads the --slotted-control-* tokens, so the density of the theme sets the height. |
|
|
143
|
-
| `shape` | `square \| circle` | square | SlIconButton | The corners of the control: square keeps the radius of the control scale, circle rounds it fully. Both are as wide as they are tall. |
|
|
144
|
-
| `inline` | `boolean` | false | SlIconButton | One line of the surrounding text tall, for a help trigger inside a sentence or a term: the line does not grow, the control takes the text's font size, and a 24px target stays around it. |
|
|
145
|
-
| `disabled` | `boolean` | false | SlIconButton | Refuses the action and marks the control unavailable. On its own, it sets the native disabled property, which also removes the control from the tab sequence. |
|
|
146
|
-
| `focusableWhenDisabled` | `boolean` | false | SlIconButton | Keeps a disabled control in the tab sequence: aria-disabled replaces the native property, and activation is still refused. |
|
|
147
|
-
| `loading` | `boolean` | false | SlIconButton | Refuses activation, keeps focus, and shows a progress indicator named by messages.loading. |
|
|
148
|
-
| `loadingDelay` | `number` | 0 | SlIconButton | Milliseconds before the indicator appears. Activation is refused from the start of the wait. |
|
|
149
|
-
| `messages` | `Partial<ButtonMessages>` | — | SlIconButton | Overrides for the strings of the active locale, key by key. loading names the progress indicator. |
|
|
150
|
-
| `pressed` | `boolean` | — | SlIconButton | The pressed state, controlled. Binding it makes the button a toggle whose value you own. |
|
|
151
|
-
| `defaultPressed` | `boolean` | — | SlIconButton | The initial pressed state when the button owns it. Binding it makes the button a toggle. |
|
|
152
|
-
| `pressedChange` | `ChangeRequest<boolean>` | — | SlIconButton | Emits the request: value, previous value, reason (pointer or keyboard), event and cancel(). |
|
|
153
|
-
| `type` | `button \| submit \| reset` | button | SlIconButton | The native button type. Set submit only for a button that submits its form. |
|
|
154
|
-
|
|
155
|
-
### iconButtonLink
|
|
156
|
-
|
|
157
|
-
| Name | Type | Default | Applies to | Description |
|
|
158
|
-
| --- | --- | --- | --- | --- |
|
|
159
|
-
| `aria-label \| aria-labelledby` | `string` | required | SlIconButtonLink | The accessible name. Required, because an icon supplies no text; a missing name throws in development. When both are present, aria-labelledby names the link. |
|
|
160
|
-
| `href` | `string` | — | SlIconButtonLink | The destination. A disabled SlIconButtonLink does not render it. |
|
|
161
|
-
| `tone` | `accent \| secondary \| neutral \| info \| success \| warning \| danger` | secondary | SlIconButtonLink | The semantic color: accent for the primary action, secondary for a neutral one, neutral for a primary action drawn in ink where the accent is kept for data, and success, warning or danger for what the action does. |
|
|
162
|
-
| `variant` | `solid \| outline \| ghost` | ghost | SlIconButtonLink | How the tone is painted: solid, outline or ghost. |
|
|
163
|
-
| `size` | `sm \| md \| lg` | md | SlIconButtonLink | The step of the control scale. Each step reads the --slotted-control-* tokens, so the density of the theme sets the height. |
|
|
164
|
-
| `shape` | `square \| circle` | square | SlIconButtonLink | The corners of the control: square keeps the radius of the control scale, circle rounds it fully. Both are as wide as they are tall. |
|
|
165
|
-
| `disabled` | `boolean` | false | SlIconButtonLink | Removes the href and refuses activation. The link stays focusable with role="link" and aria-disabled. |
|
|
166
|
-
|
|
167
|
-
### toggleButton
|
|
168
|
-
|
|
169
|
-
| Name | Type | Default | Applies to | Description |
|
|
170
|
-
| --- | --- | --- | --- | --- |
|
|
171
|
-
| `tone` | `accent \| secondary \| neutral \| info \| success \| warning \| danger` | secondary | SlToggleButton | The semantic color: accent for the primary action, secondary for a neutral one, neutral for a primary action drawn in ink where the accent is kept for data, and success, warning or danger for what the action does. |
|
|
172
|
-
| `variant` | `solid \| outline \| ghost` | outline | SlToggleButton | How the tone is painted: solid, outline or ghost. |
|
|
173
|
-
| `size` | `sm \| md \| lg` | md | SlToggleButton | The step of the control scale. Each step reads the --slotted-control-* tokens, so the density of the theme sets the height. |
|
|
174
|
-
| `start` | `[slButtonStart]` | — | SlToggleButton | Content projected before the label, such as an icon, on the element you mark with slButtonStart. It mirrors in a right-to-left document. |
|
|
175
|
-
| `end` | `[slButtonEnd]` | — | SlToggleButton | Content projected after the label, on the element you mark with slButtonEnd. It mirrors in a right-to-left document. |
|
|
176
|
-
| `fullWidth` | `boolean` | false | SlToggleButton | Fills the inline size of the container. |
|
|
177
|
-
| `justify` | `center \| between` | center | SlToggleButton | Where the content sits along the inline axis: center keeps the label and end together in the middle; between sets the label at the start and end at the inline end, as a field trigger reads, with start beside the label. It mirrors in a right-to-left document. |
|
|
178
|
-
| `widest` | `readonly string[]` | — | SlToggleButton | Every text the label can take, for a label that changes under the pointer (the month of a stepper): the label reserves the width of the widest and centers the visible text in it, in tabular figures. The entries stay out of the accessible name; no effect under fullWidth. |
|
|
179
|
-
| `disabled` | `boolean` | false | SlToggleButton | Refuses the action and marks the control unavailable. On its own, it sets the native disabled property, which also removes the control from the tab sequence. |
|
|
180
|
-
| `focusableWhenDisabled` | `boolean` | false | SlToggleButton | Keeps a disabled control in the tab sequence: aria-disabled replaces the native property, and activation is still refused. |
|
|
181
|
-
| `loading` | `boolean` | false | SlToggleButton | Refuses activation, keeps focus, and shows a progress indicator named by messages.loading. |
|
|
182
|
-
| `loadingDelay` | `number` | 0 | SlToggleButton | Milliseconds before the indicator appears. Activation is refused from the start of the wait. |
|
|
183
|
-
| `messages` | `Partial<ButtonMessages>` | — | SlToggleButton | Overrides for the strings of the active locale, key by key. loading names the progress indicator. |
|
|
184
|
-
| `pressed` | `boolean` | — | SlToggleButton | The pressed state, controlled. Binding it makes you the owner of the value. |
|
|
185
|
-
| `defaultPressed` | `boolean` | false | SlToggleButton | The initial pressed state when the button owns it, read once. |
|
|
186
|
-
| `pressedChange` | `ChangeRequest<boolean>` | — | SlToggleButton | Emits the request: value, previous value, reason (pointer or keyboard), event and cancel(). |
|
|
187
|
-
| `type` | `button \| submit \| reset` | button | SlToggleButton | The native button type. Set submit only for a button that submits its form. |
|
|
98
|
+
See [button.props.md](./button.props.md).
|
|
188
99
|
|
|
189
100
|
## Axes and defaults
|
|
190
101
|
|
|
@@ -228,7 +139,7 @@ export class ButtonBasic {
|
|
|
228
139
|
|
|
229
140
|
## Tokens
|
|
230
141
|
|
|
231
|
-
`--slotted-border-subtle`, `--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-font-weight`, `--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-letter-spacing`, `--slotted-control-line-height`, `--slotted-control-padding-inline-lg`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-control-radius`, `--slotted-control-shadow`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-background`, `--slotted-disabled-border`, `--slotted-disabled-foreground`, `--slotted-duration-instant`, `--slotted-duration-loop`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-line-height-sm`, `--slotted-radius-full`, `--slotted-radius-sm`, `--slotted-space-2`, `--slotted-target-min`, `--slotted-text-box-edge`, `--slotted-text-muted`, `--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-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-
|
|
142
|
+
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-button-widest-start`, `--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-font-weight`, `--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-letter-spacing`, `--slotted-control-line-height`, `--slotted-control-padding-inline-lg`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-control-radius`, `--slotted-control-shadow`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-background`, `--slotted-disabled-border`, `--slotted-disabled-foreground`, `--slotted-duration-instant`, `--slotted-duration-loop`, `--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-line-height-sm`, `--slotted-radius-full`, `--slotted-radius-sm`, `--slotted-space-2`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-box-edge`, `--slotted-text-muted`, `--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-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-text`, `--slotted-tone-info-on-solid`, `--slotted-tone-info-solid`, `--slotted-tone-info-solid-active`, `--slotted-tone-info-solid-hover`, `--slotted-tone-info-text`, `--slotted-tone-neutral-on-solid`, `--slotted-tone-neutral-solid`, `--slotted-tone-neutral-solid-active`, `--slotted-tone-neutral-solid-hover`, `--slotted-tone-neutral-text`, `--slotted-tone-secondary-on-solid`, `--slotted-tone-secondary-solid`, `--slotted-tone-secondary-solid-active`, `--slotted-tone-secondary-solid-hover`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-tone-secondary-text`, `--slotted-tone-success-on-solid`, `--slotted-tone-success-solid`, `--slotted-tone-success-solid-active`, `--slotted-tone-success-solid-hover`, `--slotted-tone-success-text`, `--slotted-tone-warning-on-solid`, `--slotted-tone-warning-solid`, `--slotted-tone-warning-solid-active`, `--slotted-tone-warning-solid-hover`, `--slotted-tone-warning-text`
|
|
232
143
|
|
|
233
144
|
## Examples
|
|
234
145
|
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
<!-- index: ./index.md -->
|
|
2
|
+
# button
|
|
3
|
+
|
|
4
|
+
`data-ui="button"` · Button, link button, icon button and toggle button.
|
|
5
|
+
|
|
6
|
+
## Props
|
|
7
|
+
|
|
8
|
+
### button
|
|
9
|
+
|
|
10
|
+
| Name | Type | Default | Applies to | Description |
|
|
11
|
+
| --- | --- | --- | --- | --- |
|
|
12
|
+
| `tone` | `accent \| secondary \| neutral \| info \| success \| warning \| danger` | accent | SlButton | The semantic color: accent for the primary action, secondary for a neutral one, neutral for a primary action drawn in ink where the accent is kept for data, and success, warning or danger for what the action does. |
|
|
13
|
+
| `variant` | `solid \| outline \| ghost` | solid | SlButton | How the tone is painted: solid, outline or ghost. |
|
|
14
|
+
| `size` | `sm \| md \| lg` | md | SlButton | The step of the control scale. Each step reads the --slotted-control-* tokens, so the density of the theme sets the height. |
|
|
15
|
+
| `start` | `[slButtonStart]` | — | SlButton | Content projected before the label, such as an icon, on the element you mark with slButtonStart. It mirrors in a right-to-left document. |
|
|
16
|
+
| `end` | `[slButtonEnd]` | — | SlButton | Content projected after the label, on the element you mark with slButtonEnd. It mirrors in a right-to-left document. |
|
|
17
|
+
| `fullWidth` | `boolean` | false | SlButton | Fills the inline size of the container. |
|
|
18
|
+
| `flush` | `'start' \| 'end' \| 'both'` | — | SlButton | Stands the label on the edge of the text around it: the button is pulled out by its own inset on the stated side, and the hover ground, the target and the focus ring extend past that edge. For a ghost button as the first line of a stacked cell. It has no effect on an inline button, which has no inset. |
|
|
19
|
+
| `inline` | `boolean` | false | SlButton | A word of the surrounding text, for an action inside a sentence or a dense cell: no box in any variant, the font, line height and baseline of the text around it, underlined in the tone. A stated size sets the step of the text scale (--slotted-font-size-sm, -md, -lg); without one the font is the one around it, whatever a provider states. A row of small text keeps its height. |
|
|
20
|
+
| `justify` | `center \| between` | center | SlButton | Where the content sits along the inline axis: center keeps the label and end together in the middle; between sets the label at the start and end at the inline end, as a field trigger reads, with start beside the label. It mirrors in a right-to-left document. |
|
|
21
|
+
| `widest` | `readonly string[]` | — | SlButton | Every text the label can take, for a label that changes under the pointer (the month of a stepper): the control reserves the width of its whole content with the widest of them, in tabular figures, and centers what is visible. A start that renders nothing keeps its room in the reservation and takes none beside the label, so a mark comes and goes at one width; --slotted-button-widest-start states the width reserved for a start narrower than an icon. The entries stay out of the accessible name; no effect under fullWidth. |
|
|
22
|
+
| `disabled` | `boolean` | false | SlButton | Refuses the action and marks the control unavailable. On its own, it sets the native disabled property, which also removes the control from the tab sequence. |
|
|
23
|
+
| `focusableWhenDisabled` | `boolean` | false | SlButton | Keeps a disabled control in the tab sequence: aria-disabled replaces the native property, and activation is still refused. |
|
|
24
|
+
| `loading` | `boolean` | false | SlButton | Refuses activation, keeps focus, and shows a progress indicator named by messages.loading. |
|
|
25
|
+
| `loadingDelay` | `number` | 0 | SlButton | Milliseconds before the indicator appears. Activation is refused from the start of the wait. |
|
|
26
|
+
| `messages` | `Partial<ButtonMessages>` | — | SlButton | Overrides for the strings of the active locale, key by key. loading names the progress indicator. |
|
|
27
|
+
| `type` | `button \| submit \| reset` | button | SlButton | The native button type. Set submit only for a button that submits its form. |
|
|
28
|
+
| `provideButtonDefaults` | `(defaults: ButtonDefaults) => Provider` | — | SlButton | Sets the default size, tone and variant of every button under the injector, SlButtonLink, SlIconButton and SlToggleButton included. An explicit input wins, and an axis left unset keeps each member’s own default. |
|
|
29
|
+
|
|
30
|
+
### buttonLink
|
|
31
|
+
|
|
32
|
+
| Name | Type | Default | Applies to | Description |
|
|
33
|
+
| --- | --- | --- | --- | --- |
|
|
34
|
+
| `href` | `string` | — | SlButtonLink | The destination. A disabled SlButtonLink does not render it. |
|
|
35
|
+
| `tone` | `accent \| secondary \| neutral \| info \| success \| warning \| danger` | accent | SlButtonLink | The semantic color: accent for the primary action, secondary for a neutral one, neutral for a primary action drawn in ink where the accent is kept for data, and success, warning or danger for what the action does. |
|
|
36
|
+
| `variant` | `solid \| outline \| ghost` | solid | SlButtonLink | How the tone is painted: solid, outline or ghost. |
|
|
37
|
+
| `size` | `sm \| md \| lg` | md | SlButtonLink | The step of the control scale. Each step reads the --slotted-control-* tokens, so the density of the theme sets the height. |
|
|
38
|
+
| `start` | `[slButtonStart]` | — | SlButtonLink | Content projected before the label, such as an icon, on the element you mark with slButtonStart. It mirrors in a right-to-left document. |
|
|
39
|
+
| `end` | `[slButtonEnd]` | — | SlButtonLink | Content projected after the label, on the element you mark with slButtonEnd. It mirrors in a right-to-left document. |
|
|
40
|
+
| `fullWidth` | `boolean` | false | SlButtonLink | Fills the inline size of the container. |
|
|
41
|
+
| `justify` | `center \| between` | center | SlButtonLink | Where the content sits along the inline axis: center keeps the label and end together in the middle; between sets the label at the start and end at the inline end, as a field trigger reads, with start beside the label. It mirrors in a right-to-left document. |
|
|
42
|
+
| `widest` | `readonly string[]` | — | SlButtonLink | Every text the label can take, for a label that changes under the pointer (the month of a stepper): the control reserves the width of its whole content with the widest of them, in tabular figures, and centers what is visible. A start that renders nothing keeps its room in the reservation and takes none beside the label, so a mark comes and goes at one width; --slotted-button-widest-start states the width reserved for a start narrower than an icon. The entries stay out of the accessible name; no effect under fullWidth. |
|
|
43
|
+
| `disabled` | `boolean` | false | SlButtonLink | Removes the href and refuses activation. The link stays focusable with role="link" and aria-disabled. |
|
|
44
|
+
|
|
45
|
+
### iconButton
|
|
46
|
+
|
|
47
|
+
| Name | Type | Default | Applies to | Description |
|
|
48
|
+
| --- | --- | --- | --- | --- |
|
|
49
|
+
| `aria-label \| aria-labelledby` | `string` | required | SlIconButton | The accessible name. Required, because an icon supplies no text. |
|
|
50
|
+
| `tone` | `accent \| secondary \| neutral \| info \| success \| warning \| danger` | secondary | SlIconButton | The semantic color: accent for the primary action, secondary for a neutral one, neutral for a primary action drawn in ink where the accent is kept for data, and success, warning or danger for what the action does. |
|
|
51
|
+
| `variant` | `solid \| outline \| ghost` | ghost | SlIconButton | How the tone is painted: solid, outline or ghost. |
|
|
52
|
+
| `size` | `sm \| md \| lg` | md | SlIconButton | The step of the control scale. Each step reads the --slotted-control-* tokens, so the density of the theme sets the height. |
|
|
53
|
+
| `shape` | `square \| circle` | square | SlIconButton | The corners of the control: square keeps the radius of the control scale, circle rounds it fully. Both are as wide as they are tall. |
|
|
54
|
+
| `inline` | `boolean` | false | SlIconButton | One line of the surrounding text tall, for a help trigger inside a sentence or a term: the line does not grow, and a 24px target stays around it. The icon is drawn from the capital height of the text, centered on the capital beside it, and the size of the Icon has no effect; in a flex row, align-items: baseline puts it on the first line. In ghost it draws no ground under the pointer; in the secondary tone it is muted at rest and takes the text color on hover, on keyboard focus and while its tooltip or popover is open. |
|
|
55
|
+
| `disabled` | `boolean` | false | SlIconButton | Refuses the action and marks the control unavailable. On its own, it sets the native disabled property, which also removes the control from the tab sequence. |
|
|
56
|
+
| `focusableWhenDisabled` | `boolean` | false | SlIconButton | Keeps a disabled control in the tab sequence: aria-disabled replaces the native property, and activation is still refused. |
|
|
57
|
+
| `loading` | `boolean` | false | SlIconButton | Refuses activation, keeps focus, and shows a progress indicator named by messages.loading. |
|
|
58
|
+
| `loadingDelay` | `number` | 0 | SlIconButton | Milliseconds before the indicator appears. Activation is refused from the start of the wait. |
|
|
59
|
+
| `messages` | `Partial<ButtonMessages>` | — | SlIconButton | Overrides for the strings of the active locale, key by key. loading names the progress indicator. |
|
|
60
|
+
| `pressed` | `boolean` | — | SlIconButton | The pressed state, controlled. Binding it makes the button a toggle whose value you own. |
|
|
61
|
+
| `defaultPressed` | `boolean` | — | SlIconButton | The initial pressed state when the button owns it. Binding it makes the button a toggle. |
|
|
62
|
+
| `pressedChange` | `ChangeRequest<boolean>` | — | SlIconButton | Emits the request: value, previous value, reason (pointer or keyboard), event and cancel(). |
|
|
63
|
+
| `type` | `button \| submit \| reset` | button | SlIconButton | The native button type. Set submit only for a button that submits its form. |
|
|
64
|
+
|
|
65
|
+
### iconButtonLink
|
|
66
|
+
|
|
67
|
+
| Name | Type | Default | Applies to | Description |
|
|
68
|
+
| --- | --- | --- | --- | --- |
|
|
69
|
+
| `aria-label \| aria-labelledby` | `string` | required | SlIconButtonLink | The accessible name. Required, because an icon supplies no text; a missing name throws in development. When both are present, aria-labelledby names the link. |
|
|
70
|
+
| `href` | `string` | — | SlIconButtonLink | The destination. A disabled SlIconButtonLink does not render it. |
|
|
71
|
+
| `tone` | `accent \| secondary \| neutral \| info \| success \| warning \| danger` | secondary | SlIconButtonLink | The semantic color: accent for the primary action, secondary for a neutral one, neutral for a primary action drawn in ink where the accent is kept for data, and success, warning or danger for what the action does. |
|
|
72
|
+
| `variant` | `solid \| outline \| ghost` | ghost | SlIconButtonLink | How the tone is painted: solid, outline or ghost. |
|
|
73
|
+
| `size` | `sm \| md \| lg` | md | SlIconButtonLink | The step of the control scale. Each step reads the --slotted-control-* tokens, so the density of the theme sets the height. |
|
|
74
|
+
| `shape` | `square \| circle` | square | SlIconButtonLink | The corners of the control: square keeps the radius of the control scale, circle rounds it fully. Both are as wide as they are tall. |
|
|
75
|
+
| `disabled` | `boolean` | false | SlIconButtonLink | Removes the href and refuses activation. The link stays focusable with role="link" and aria-disabled. |
|
|
76
|
+
|
|
77
|
+
### toggleButton
|
|
78
|
+
|
|
79
|
+
| Name | Type | Default | Applies to | Description |
|
|
80
|
+
| --- | --- | --- | --- | --- |
|
|
81
|
+
| `tone` | `accent \| secondary \| neutral \| info \| success \| warning \| danger` | secondary | SlToggleButton | The semantic color: accent for the primary action, secondary for a neutral one, neutral for a primary action drawn in ink where the accent is kept for data, and success, warning or danger for what the action does. |
|
|
82
|
+
| `variant` | `solid \| outline \| ghost` | outline | SlToggleButton | How the tone is painted: solid, outline or ghost. |
|
|
83
|
+
| `size` | `sm \| md \| lg` | md | SlToggleButton | The step of the control scale. Each step reads the --slotted-control-* tokens, so the density of the theme sets the height. |
|
|
84
|
+
| `start` | `[slButtonStart]` | — | SlToggleButton | Content projected before the label, such as an icon, on the element you mark with slButtonStart. It mirrors in a right-to-left document. |
|
|
85
|
+
| `end` | `[slButtonEnd]` | — | SlToggleButton | Content projected after the label, on the element you mark with slButtonEnd. It mirrors in a right-to-left document. |
|
|
86
|
+
| `fullWidth` | `boolean` | false | SlToggleButton | Fills the inline size of the container. |
|
|
87
|
+
| `justify` | `center \| between` | center | SlToggleButton | Where the content sits along the inline axis: center keeps the label and end together in the middle; between sets the label at the start and end at the inline end, as a field trigger reads, with start beside the label. It mirrors in a right-to-left document. |
|
|
88
|
+
| `widest` | `readonly string[]` | — | SlToggleButton | Every text the label can take, for a label that changes under the pointer (the month of a stepper): the control reserves the width of its whole content with the widest of them, in tabular figures, and centers what is visible. A start that renders nothing keeps its room in the reservation and takes none beside the label, so a mark comes and goes at one width; --slotted-button-widest-start states the width reserved for a start narrower than an icon. The entries stay out of the accessible name; no effect under fullWidth. |
|
|
89
|
+
| `disabled` | `boolean` | false | SlToggleButton | Refuses the action and marks the control unavailable. On its own, it sets the native disabled property, which also removes the control from the tab sequence. |
|
|
90
|
+
| `focusableWhenDisabled` | `boolean` | false | SlToggleButton | Keeps a disabled control in the tab sequence: aria-disabled replaces the native property, and activation is still refused. |
|
|
91
|
+
| `loading` | `boolean` | false | SlToggleButton | Refuses activation, keeps focus, and shows a progress indicator named by messages.loading. |
|
|
92
|
+
| `loadingDelay` | `number` | 0 | SlToggleButton | Milliseconds before the indicator appears. Activation is refused from the start of the wait. |
|
|
93
|
+
| `messages` | `Partial<ButtonMessages>` | — | SlToggleButton | Overrides for the strings of the active locale, key by key. loading names the progress indicator. |
|
|
94
|
+
| `pressed` | `boolean` | — | SlToggleButton | The pressed state, controlled. Binding it makes you the owner of the value. |
|
|
95
|
+
| `defaultPressed` | `boolean` | false | SlToggleButton | The initial pressed state when the button owns it, read once. |
|
|
96
|
+
| `pressedChange` | `ChangeRequest<boolean>` | — | SlToggleButton | Emits the request: value, previous value, reason (pointer or keyboard), event and cancel(). |
|
|
97
|
+
| `type` | `button \| submit \| reset` | button | SlToggleButton | The native button type. Set submit only for a button that submits its form. |
|
package/docs/calendar.json
CHANGED
|
@@ -358,6 +358,13 @@
|
|
|
358
358
|
"appliesTo": "SlCalendar",
|
|
359
359
|
"description": "What a day holds under its number: slCalendarDayMarks with one slCalendarDayMark per record (a tone or data-1 to data-8, hollow for an open record) and a one-line slCalendarDayValue. The family keeps the day’s button, focus, selection, today and outside-day states; state is outside, selected, today and unavailable."
|
|
360
360
|
},
|
|
361
|
+
{
|
|
362
|
+
"name": "ng-template[slCalendarDayTooltip]",
|
|
363
|
+
"type": "let-date, let-state, [when]",
|
|
364
|
+
"defaultValue": "—",
|
|
365
|
+
"appliesTo": "SlCalendar",
|
|
366
|
+
"description": "What a tooltip says of a day, with the day as its trigger: it opens on hover and on the keyboard focus, and describes the day. when answers which days have one; every day unless stated."
|
|
367
|
+
},
|
|
361
368
|
{
|
|
362
369
|
"name": "dayLabel",
|
|
363
370
|
"type": "(date) => string",
|
|
@@ -372,6 +379,20 @@
|
|
|
372
379
|
"appliesTo": "SlCalendar",
|
|
373
380
|
"description": "cells draws square cells of --slotted-calendar-cell-size; fill shares the inline size between the seven columns and takes the row height from --slotted-calendar-day-height."
|
|
374
381
|
},
|
|
382
|
+
{
|
|
383
|
+
"name": "lines",
|
|
384
|
+
"type": "boolean",
|
|
385
|
+
"defaultValue": "false",
|
|
386
|
+
"appliesTo": "SlCalendar",
|
|
387
|
+
"description": "Hairlines between the days of the fill layout, in --slotted-calendar-line-color."
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"name": "header",
|
|
391
|
+
"type": "boolean",
|
|
392
|
+
"defaultValue": "true",
|
|
393
|
+
"appliesTo": "SlCalendar",
|
|
394
|
+
"description": "The name of the page and the controls that turn it. false leaves them out, for a page with a month control of its own: the grid is named by its caption, and focusedDate turns the page."
|
|
395
|
+
},
|
|
375
396
|
{
|
|
376
397
|
"name": "locale",
|
|
377
398
|
"type": "string",
|
|
@@ -500,6 +521,7 @@
|
|
|
500
521
|
"--slotted-calendar-in-range-color",
|
|
501
522
|
"--slotted-calendar-invalid-edge-width",
|
|
502
523
|
"--slotted-calendar-invalid-focus-ring-color",
|
|
524
|
+
"--slotted-calendar-line-color",
|
|
503
525
|
"--slotted-calendar-outside-color",
|
|
504
526
|
"--slotted-calendar-preview-background",
|
|
505
527
|
"--slotted-calendar-preview-border-color",
|
package/docs/calendar.md
CHANGED
|
@@ -67,8 +67,11 @@ Excerpt — not a complete module
|
|
|
67
67
|
| `outsideDays` | `'shown' \| 'selectable' \| 'hidden'` | shown | SlCalendar | What a day of the month either side does: drawn and not pressable, drawn and pressable, or not drawn. |
|
|
68
68
|
| `marks` | `ReadonlyMap<string, CalendarMark>` | — | SlCalendar | What falls on each day, keyed by its ISO date: a dot under the number in the mark’s tone, and its count in the day’s accessible name (“12, 2 items”). Composes with every selection mode, min, max and outsideDays. |
|
|
69
69
|
| `ng-template[slCalendarDay]` | `let-date, let-state` | — | SlCalendar | What a day holds under its number: slCalendarDayMarks with one slCalendarDayMark per record (a tone or data-1 to data-8, hollow for an open record) and a one-line slCalendarDayValue. The family keeps the day’s button, focus, selection, today and outside-day states; state is outside, selected, today and unavailable. |
|
|
70
|
+
| `ng-template[slCalendarDayTooltip]` | `let-date, let-state, [when]` | — | SlCalendar | What a tooltip says of a day, with the day as its trigger: it opens on hover and on the keyboard focus, and describes the day. when answers which days have one; every day unless stated. |
|
|
70
71
|
| `dayLabel` | `(date) => string` | — | SlCalendar | Replaces the day’s generated accessible name, for a day whose content says more than a count. |
|
|
71
72
|
| `layout` | `'cells' \| 'fill'` | cells | SlCalendar | cells draws square cells of --slotted-calendar-cell-size; fill shares the inline size between the seven columns and takes the row height from --slotted-calendar-day-height. |
|
|
73
|
+
| `lines` | `boolean` | false | SlCalendar | Hairlines between the days of the fill layout, in --slotted-calendar-line-color. |
|
|
74
|
+
| `header` | `boolean` | true | SlCalendar | The name of the page and the controls that turn it. false leaves them out, for a page with a month control of its own: the grid is named by its caption, and focusedDate turns the page. |
|
|
72
75
|
| `locale` | `string` | the language in force | SlCalendar | BCP 47. Decides the month names, the weekday names and the day a week starts on. |
|
|
73
76
|
| `timeZone` | `string` | the runtime’s | SlCalendar | Which zone answers "what is today". |
|
|
74
77
|
| `firstDayOfWeek` | `number` | the locale’s | SlCalendar | 0 is Sunday. Overrides what the locale says, for a product that fixes one. |
|
|
@@ -113,7 +116,7 @@ Excerpt — not a complete module
|
|
|
113
116
|
|
|
114
117
|
## Tokens
|
|
115
118
|
|
|
116
|
-
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-calendar-active-background`, `--slotted-calendar-background`, `--slotted-calendar-cell-size`, `--slotted-calendar-color`, `--slotted-calendar-day-height`, `--slotted-calendar-day-radius`, `--slotted-calendar-disabled-color`, `--slotted-calendar-hover-background`, `--slotted-calendar-in-range-color`, `--slotted-calendar-invalid-edge-width`, `--slotted-calendar-invalid-focus-ring-color`, `--slotted-calendar-outside-color`, `--slotted-calendar-preview-background`, `--slotted-calendar-preview-border-color`, `--slotted-calendar-radius`, `--slotted-calendar-range-active-background`, `--slotted-calendar-range-background`, `--slotted-calendar-range-border-color`, `--slotted-calendar-range-hover-background`, `--slotted-calendar-selected-background`, `--slotted-calendar-selected-color`, `--slotted-calendar-today-color`, `--slotted-calendar-trigger-color`, `--slotted-calendar-unavailable-color`, `--slotted-calendar-week-number-border-color`, `--slotted-calendar-week-number-color`, `--slotted-calendar-weekday-color`, `--slotted-control-font-family`, `--slotted-control-font-size-md`, `--slotted-control-gap-md`, `--slotted-control-height-md`, `--slotted-control-icon-size-md`, `--slotted-control-invalid-edge-width`, `--slotted-control-radius`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--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-disabled-background`, `--slotted-disabled-foreground`, `--slotted-focus-ring-color`, `--slotted-focus-ring-color-invalid`, `--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-highlight-tint-opacity`, `--slotted-radius-full`, `--slotted-radius-sm`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-6`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-border`, `--slotted-tone-accent-on-solid`, `--slotted-tone-accent-solid`, `--slotted-tone-accent-subtle-active`, `--slotted-tone-accent-subtle-hover`, `--slotted-tone-accent-text`, `--slotted-tone-danger-solid`, `--slotted-tone-info-solid`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-tone-success-solid`, `--slotted-tone-warning-solid`
|
|
119
|
+
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-calendar-active-background`, `--slotted-calendar-background`, `--slotted-calendar-cell-size`, `--slotted-calendar-color`, `--slotted-calendar-day-height`, `--slotted-calendar-day-radius`, `--slotted-calendar-disabled-color`, `--slotted-calendar-hover-background`, `--slotted-calendar-in-range-color`, `--slotted-calendar-invalid-edge-width`, `--slotted-calendar-invalid-focus-ring-color`, `--slotted-calendar-line-color`, `--slotted-calendar-outside-color`, `--slotted-calendar-preview-background`, `--slotted-calendar-preview-border-color`, `--slotted-calendar-radius`, `--slotted-calendar-range-active-background`, `--slotted-calendar-range-background`, `--slotted-calendar-range-border-color`, `--slotted-calendar-range-hover-background`, `--slotted-calendar-selected-background`, `--slotted-calendar-selected-color`, `--slotted-calendar-today-color`, `--slotted-calendar-trigger-color`, `--slotted-calendar-unavailable-color`, `--slotted-calendar-week-number-border-color`, `--slotted-calendar-week-number-color`, `--slotted-calendar-weekday-color`, `--slotted-control-font-family`, `--slotted-control-font-size-md`, `--slotted-control-gap-md`, `--slotted-control-height-md`, `--slotted-control-icon-size-md`, `--slotted-control-invalid-edge-width`, `--slotted-control-radius`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--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-disabled-background`, `--slotted-disabled-foreground`, `--slotted-focus-ring-color`, `--slotted-focus-ring-color-invalid`, `--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-highlight-tint-opacity`, `--slotted-radius-full`, `--slotted-radius-sm`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-6`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-border`, `--slotted-tone-accent-on-solid`, `--slotted-tone-accent-solid`, `--slotted-tone-accent-subtle-active`, `--slotted-tone-accent-subtle-hover`, `--slotted-tone-accent-text`, `--slotted-tone-danger-solid`, `--slotted-tone-info-solid`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-tone-success-solid`, `--slotted-tone-warning-solid`
|
|
117
120
|
|
|
118
121
|
## Examples
|
|
119
122
|
|
package/docs/chart.json
CHANGED
|
@@ -939,7 +939,7 @@
|
|
|
939
939
|
{
|
|
940
940
|
"name": "rangeChange, rangeChangeRequest",
|
|
941
941
|
"payload": "ChartRange | null, ChangeRequest<ChartRange | null>",
|
|
942
|
-
"when": "With rangeSelectable, at each point a drag reaches, on Shift and an arrow, on a click without a drag and on Escape: pointer, keyboard, escape, programmatic."
|
|
942
|
+
"when": "With rangeSelectable, at each point a drag reaches, on Shift and an arrow, on a click or a tap without a drag and on Escape: pointer, keyboard, escape, programmatic."
|
|
943
943
|
},
|
|
944
944
|
{
|
|
945
945
|
"name": "zoomChange, zoomChangeRequest",
|
package/docs/chart.md
CHANGED
|
@@ -146,7 +146,7 @@ Excerpt — not a complete module
|
|
|
146
146
|
| `hiddenChange, hiddenChangeRequest` | `readonly string[], ChangeRequest<readonly string[]>` | The request before a series is hidden or shown from the legend, from “Show all”, or isolated with Shift; the model change after it commits. Reasons: pointer, keyboard, programmatic. cancel() refuses it. |
|
|
147
147
|
| `activePointChange, activePointChangeRequest` | `ChartPoint \| null, ChangeRequest<ChartPoint \| null>` | When the pointer or the arrows reach a point, and when it leaves: pointer, keyboard, blur, escape. The value two charts share to move together. |
|
|
148
148
|
| `selectionChange, selectionChangeRequest` | `ChartPoint \| null, ChangeRequest<ChartPoint \| null>` | With selectable, on a click or Enter on a point, and on Escape: pointer, keyboard, escape, programmatic. |
|
|
149
|
-
| `rangeChange, rangeChangeRequest` | `ChartRange \| null, ChangeRequest<ChartRange \| null>` | With rangeSelectable, at each point a drag reaches, on Shift and an arrow, on a click without a drag and on Escape: pointer, keyboard, escape, programmatic. |
|
|
149
|
+
| `rangeChange, rangeChangeRequest` | `ChartRange \| null, ChangeRequest<ChartRange \| null>` | With rangeSelectable, at each point a drag reaches, on Shift and an arrow, on a click or a tap without a drag and on Escape: pointer, keyboard, escape, programmatic. |
|
|
150
150
|
| `zoomChange, zoomChangeRequest` | `ChartZoom, ChangeRequest<ChartZoom>` | With zoomable, on a wheel with Ctrl, + or −, 0, the reset control or a drag that pans a zoomed chart: pointer, keyboard, clear, escape, programmatic. |
|
|
151
151
|
| `tableOpenChange, tableOpenChangeRequest` | `boolean, ChangeRequest<boolean>` | Before the plot switches between the drawing and the table: pointer, keyboard, escape, programmatic. |
|
|
152
152
|
| `fullscreenChange, fullscreenChangeRequest` | `boolean, ChangeRequest<boolean>` | Before the chart takes or gives back the screen, and when the browser leaves full screen on its own: pointer, keyboard, escape, programmatic. |
|
package/docs/collapsible.json
CHANGED
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
"part": "more",
|
|
162
162
|
"element": "button",
|
|
163
163
|
"required": false,
|
|
164
|
-
"purpose": "The control a peeking panel
|
|
164
|
+
"purpose": "The control at the end of a peeking panel, past the fade and --slotted-collapsible-more-overlap over the panel, where the content is masked whole; a Button takes its place. Present only while the panel is closed and peek is set, it opens the panel and names it through aria-controls, as the header trigger does."
|
|
165
165
|
}
|
|
166
166
|
],
|
|
167
167
|
"api": [
|
|
@@ -339,6 +339,7 @@
|
|
|
339
339
|
"--slotted-collapsible-hover-background",
|
|
340
340
|
"--slotted-collapsible-hover-color",
|
|
341
341
|
"--slotted-collapsible-indicator-color",
|
|
342
|
+
"--slotted-collapsible-more-overlap",
|
|
342
343
|
"--slotted-collapsible-padding-inline",
|
|
343
344
|
"--slotted-collapsible-panel-color",
|
|
344
345
|
"--slotted-collapsible-panel-padding-block-start",
|
package/docs/collapsible.md
CHANGED
|
@@ -94,7 +94,7 @@ Excerpt — not a complete module
|
|
|
94
94
|
|
|
95
95
|
## Tokens
|
|
96
96
|
|
|
97
|
-
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-collapsible-active-background`, `--slotted-collapsible-background`, `--slotted-collapsible-border-color`, `--slotted-collapsible-color`, `--slotted-collapsible-description-color`, `--slotted-collapsible-hover-background`, `--slotted-collapsible-hover-color`, `--slotted-collapsible-indicator-color`, `--slotted-collapsible-padding-inline`, `--slotted-collapsible-panel-color`, `--slotted-collapsible-panel-padding-block-start`, `--slotted-collapsible-peek-fade`, `--slotted-collapsible-radius`, `--slotted-collapsible-rule-color`, `--slotted-collapsible-shadow`, `--slotted-collapsible-surface`, `--slotted-control-font-family`, `--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-letter-spacing`, `--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-disabled-foreground`, `--slotted-duration-medium`, `--slotted-duration-short`, `--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-regular`, `--slotted-line-height-md`, `--slotted-radius-md`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-surface-raised`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`
|
|
97
|
+
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-collapsible-active-background`, `--slotted-collapsible-background`, `--slotted-collapsible-border-color`, `--slotted-collapsible-color`, `--slotted-collapsible-description-color`, `--slotted-collapsible-hover-background`, `--slotted-collapsible-hover-color`, `--slotted-collapsible-indicator-color`, `--slotted-collapsible-more-overlap`, `--slotted-collapsible-padding-inline`, `--slotted-collapsible-panel-color`, `--slotted-collapsible-panel-padding-block-start`, `--slotted-collapsible-peek-fade`, `--slotted-collapsible-radius`, `--slotted-collapsible-rule-color`, `--slotted-collapsible-shadow`, `--slotted-collapsible-surface`, `--slotted-control-font-family`, `--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-letter-spacing`, `--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-disabled-foreground`, `--slotted-duration-medium`, `--slotted-duration-short`, `--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-regular`, `--slotted-line-height-md`, `--slotted-radius-md`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-surface-raised`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`
|
|
98
98
|
|
|
99
99
|
## Examples
|
|
100
100
|
|
|
@@ -203,7 +203,7 @@
|
|
|
203
203
|
"part": "group-label",
|
|
204
204
|
"element": "div",
|
|
205
205
|
"required": false,
|
|
206
|
-
"purpose": "The heading of a group. It carries data-stuck while rows pass under it, and
|
|
206
|
+
"purpose": "The heading of a group. It carries data-stuck while rows pass under it. Where the engine times an animation by the scroll, the rows end at the label and it paints no ground of its own, so a material panel stays whole; elsewhere it paints --slotted-command-palette-group-label-stuck-surface, the panel surface by default, with --slotted-command-palette-group-label-stuck-backdrop-filter, the panel filter by default."
|
|
207
207
|
},
|
|
208
208
|
{
|
|
209
209
|
"part": "item",
|
|
@@ -568,6 +568,7 @@
|
|
|
568
568
|
"--slotted-command-palette-border-color",
|
|
569
569
|
"--slotted-command-palette-footer-surface",
|
|
570
570
|
"--slotted-command-palette-group-label-height",
|
|
571
|
+
"--slotted-command-palette-group-label-stuck-backdrop-filter",
|
|
571
572
|
"--slotted-command-palette-group-label-stuck-surface",
|
|
572
573
|
"--slotted-command-palette-highlight",
|
|
573
574
|
"--slotted-command-palette-highlight-ring",
|
package/docs/command-palette.md
CHANGED
|
@@ -131,7 +131,7 @@ Excerpt — not a complete module
|
|
|
131
131
|
|
|
132
132
|
## Tokens
|
|
133
133
|
|
|
134
|
-
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-command-palette-active`, `--slotted-command-palette-backdrop-filter`, `--slotted-command-palette-border-color`, `--slotted-command-palette-footer-surface`, `--slotted-command-palette-group-label-height`, `--slotted-command-palette-group-label-stuck-surface`, `--slotted-command-palette-highlight`, `--slotted-command-palette-highlight-ring`, `--slotted-command-palette-hover`, `--slotted-command-palette-item-radius`, `--slotted-command-palette-list-max-block-size`, `--slotted-command-palette-list-padding`, `--slotted-command-palette-measure`, `--slotted-command-palette-page-surface`, `--slotted-command-palette-placeholder-fade`, `--slotted-command-palette-radius`, `--slotted-command-palette-separator-color`, `--slotted-command-palette-shadow`, `--slotted-command-palette-surface`, `--slotted-command-palette-text`, `--slotted-command-palette-text-muted`, `--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-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-disabled-foreground`, `--slotted-duration-short`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-width`, `--slotted-font-family-sans`, `--slotted-font-size-lg`, `--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-lg`, `--slotted-radius-sm`, `--slotted-shadow-lg`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-6`, `--slotted-space-8`, `--slotted-surface-raised`, `--slotted-surface-sunken`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-border`, `--slotted-tone-accent-surface`, `--slotted-tone-accent-text`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`
|
|
134
|
+
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-command-palette-active`, `--slotted-command-palette-backdrop-filter`, `--slotted-command-palette-border-color`, `--slotted-command-palette-footer-surface`, `--slotted-command-palette-group-label-height`, `--slotted-command-palette-group-label-stuck-backdrop-filter`, `--slotted-command-palette-group-label-stuck-surface`, `--slotted-command-palette-highlight`, `--slotted-command-palette-highlight-ring`, `--slotted-command-palette-hover`, `--slotted-command-palette-item-radius`, `--slotted-command-palette-list-max-block-size`, `--slotted-command-palette-list-padding`, `--slotted-command-palette-measure`, `--slotted-command-palette-page-surface`, `--slotted-command-palette-placeholder-fade`, `--slotted-command-palette-radius`, `--slotted-command-palette-separator-color`, `--slotted-command-palette-shadow`, `--slotted-command-palette-surface`, `--slotted-command-palette-text`, `--slotted-command-palette-text-muted`, `--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-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-disabled-foreground`, `--slotted-duration-short`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-width`, `--slotted-font-family-sans`, `--slotted-font-size-lg`, `--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-lg`, `--slotted-radius-sm`, `--slotted-shadow-lg`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-6`, `--slotted-space-8`, `--slotted-surface-raised`, `--slotted-surface-sunken`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-border`, `--slotted-tone-accent-surface`, `--slotted-tone-accent-text`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`
|
|
135
135
|
|
|
136
136
|
## Examples
|
|
137
137
|
|
package/docs/dashboard-grid.json
CHANGED
package/docs/dashboard-grid.md
CHANGED
|
@@ -140,7 +140,7 @@ Excerpt — not a complete module
|
|
|
140
140
|
|
|
141
141
|
## Tokens
|
|
142
142
|
|
|
143
|
-
`--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-medium`, `--slotted-border-width-thick`, `--slotted-border-width-thin`, `--slotted-card-radius`, `--slotted-control-border-color`, `--slotted-control-height-sm`, `--slotted-control-shadow`, `--slotted-control-surface`, `--slotted-dashboard-grid-accent`, `--slotted-dashboard-grid-description-color`, `--slotted-dashboard-grid-edit-bar-background`, `--slotted-dashboard-grid-edit-bar-border`, `--slotted-dashboard-grid-gap`, `--slotted-dashboard-grid-handle-block-size`, `--slotted-dashboard-grid-handle-block-size-coarse`, `--slotted-dashboard-grid-handle-glyph-size`, `--slotted-dashboard-grid-handle-inline-size`, `--slotted-dashboard-grid-handle-inline-size-coarse`, `--slotted-dashboard-grid-help-measure`, `--slotted-dashboard-grid-lattice-color`, `--slotted-dashboard-grid-lattice-dot`, `--slotted-dashboard-grid-resize-hit`, `--slotted-dashboard-grid-resize-pill`, `--slotted-dashboard-grid-resize-pill-active`, `--slotted-dashboard-grid-row-size`, `--slotted-dashboard-grid-title-color`, `--slotted-dashboard-grid-title-font-family`, `--slotted-dashboard-grid-title-font-size`, `--slotted-duration-loop-slow`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-enter`, `--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-md`, `--slotted-font-size-sm`, `--slotted-font-size-xs`, `--slotted-font-weight-semibold`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-line-height-xs`, `--slotted-radius-full`, `--slotted-radius-lg`, `--slotted-shadow-lg`, `--slotted-shadow-md`, `--slotted-shadow-sm`, `--slotted-shadow-xs`, `--slotted-space-1`, `--slotted-space-12`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-surface-raised`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-on-solid`, `--slotted-tone-accent-solid`
|
|
143
|
+
`--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-medium`, `--slotted-border-width-thick`, `--slotted-border-width-thin`, `--slotted-card-radius`, `--slotted-control-border-color`, `--slotted-control-height-sm`, `--slotted-control-shadow`, `--slotted-control-surface`, `--slotted-dashboard-grid-accent`, `--slotted-dashboard-grid-description-color`, `--slotted-dashboard-grid-edit-bar-background`, `--slotted-dashboard-grid-edit-bar-border`, `--slotted-dashboard-grid-gap`, `--slotted-dashboard-grid-handle-block-size`, `--slotted-dashboard-grid-handle-block-size-coarse`, `--slotted-dashboard-grid-handle-glyph-size`, `--slotted-dashboard-grid-handle-inline-size`, `--slotted-dashboard-grid-handle-inline-size-coarse`, `--slotted-dashboard-grid-help-measure`, `--slotted-dashboard-grid-lattice-color`, `--slotted-dashboard-grid-lattice-dot`, `--slotted-dashboard-grid-resize-hit`, `--slotted-dashboard-grid-resize-pill`, `--slotted-dashboard-grid-resize-pill-active`, `--slotted-dashboard-grid-row-size`, `--slotted-dashboard-grid-title-color`, `--slotted-dashboard-grid-title-font-family`, `--slotted-dashboard-grid-title-font-size`, `--slotted-duration-loop-slow`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-enter`, `--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-md`, `--slotted-font-size-sm`, `--slotted-font-size-xs`, `--slotted-font-weight-semibold`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-line-height-xs`, `--slotted-radius-full`, `--slotted-radius-lg`, `--slotted-shadow-lg`, `--slotted-shadow-md`, `--slotted-shadow-sm`, `--slotted-shadow-xs`, `--slotted-space-1`, `--slotted-space-12`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-surface-raised`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-on-solid`, `--slotted-tone-accent-solid`, `--slotted-tone-secondary-subtle-hover`
|
|
144
144
|
|
|
145
145
|
## Examples
|
|
146
146
|
|
package/docs/entity-picker.json
CHANGED
|
@@ -275,7 +275,7 @@
|
|
|
275
275
|
"part": "group-label",
|
|
276
276
|
"element": "div",
|
|
277
277
|
"required": false,
|
|
278
|
-
"purpose": "The heading of a group, drawn only when more than one group shows. It carries data-stuck while rows pass under it, and
|
|
278
|
+
"purpose": "The heading of a group, drawn only when more than one group shows. It carries data-stuck while rows pass under it. Where the engine times an animation by the scroll, the rows end at the label and it paints no ground of its own, so a material panel stays whole; elsewhere it paints --slotted-entity-picker-group-label-stuck-surface, the panel surface by default, with --slotted-entity-picker-group-label-stuck-backdrop-filter, the panel filter by default."
|
|
279
279
|
},
|
|
280
280
|
{
|
|
281
281
|
"part": "item",
|
|
@@ -757,6 +757,7 @@
|
|
|
757
757
|
"--slotted-entity-picker-field-basis",
|
|
758
758
|
"--slotted-entity-picker-field-min",
|
|
759
759
|
"--slotted-entity-picker-group-label-height",
|
|
760
|
+
"--slotted-entity-picker-group-label-stuck-backdrop-filter",
|
|
760
761
|
"--slotted-entity-picker-group-label-stuck-surface",
|
|
761
762
|
"--slotted-entity-picker-highlight",
|
|
762
763
|
"--slotted-entity-picker-highlight-active",
|
package/docs/entity-picker.md
CHANGED
|
@@ -149,7 +149,7 @@ Excerpt — not a complete module
|
|
|
149
149
|
|
|
150
150
|
## Tokens
|
|
151
151
|
|
|
152
|
-
`--slotted-avatar-size-md`, `--slotted-avatar-size-sm`, `--slotted-avatar-size-xs`, `--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-border-color`, `--slotted-control-border-width`, `--slotted-control-focus-ring-offset`, `--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-invalid-edge-width`, `--slotted-control-padding-inline-lg`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-control-radius`, `--slotted-control-shadow`, `--slotted-control-shadow-focus-geometry`, `--slotted-control-surface`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-background`, `--slotted-disabled-border`, `--slotted-disabled-foreground`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-enter`, `--slotted-easing-exit`, `--slotted-easing-standard`, `--slotted-entity-picker-action-active-background`, `--slotted-entity-picker-action-color`, `--slotted-entity-picker-action-hover-background`, `--slotted-entity-picker-action-size`, `--slotted-entity-picker-autofill-background`, `--slotted-entity-picker-background`, `--slotted-entity-picker-border-color`, `--slotted-entity-picker-color`, `--slotted-entity-picker-content-backdrop-filter`, `--slotted-entity-picker-content-border-color`, `--slotted-entity-picker-content-radius`, `--slotted-entity-picker-content-shadow`, `--slotted-entity-picker-content-text`, `--slotted-entity-picker-content-text-muted`, `--slotted-entity-picker-disabled-background`, `--slotted-entity-picker-disabled-border-color`, `--slotted-entity-picker-disabled-color`, `--slotted-entity-picker-error-color`, `--slotted-entity-picker-field-basis`, `--slotted-entity-picker-field-min`, `--slotted-entity-picker-group-label-height`, `--slotted-entity-picker-group-label-stuck-surface`, `--slotted-entity-picker-highlight`, `--slotted-entity-picker-highlight-active`, `--slotted-entity-picker-highlight-ring`, `--slotted-entity-picker-hover-border-color`, `--slotted-entity-picker-icon-size-min`, `--slotted-entity-picker-invalid-border-color`, `--slotted-entity-picker-invalid-edge-width`, `--slotted-entity-picker-invalid-focus-ring-color`, `--slotted-entity-picker-item-radius`, `--slotted-entity-picker-measure`, `--slotted-entity-picker-meta-measure`, `--slotted-entity-picker-offer-color`, `--slotted-entity-picker-open-border-color`, `--slotted-entity-picker-placeholder-color`, `--slotted-entity-picker-plain-hover-background`, `--slotted-entity-picker-radius`, `--slotted-entity-picker-readonly-background`, `--slotted-entity-picker-scope-inline-size`, `--slotted-entity-picker-selected-color`, `--slotted-entity-picker-shadow`, `--slotted-entity-picker-subtle-background`, `--slotted-entity-picker-subtle-border-color`, `--slotted-entity-picker-subtle-hover-background`, `--slotted-entity-picker-surface`, `--slotted-focus-ring-color`, `--slotted-focus-ring-color-invalid`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-family-sans`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-semibold`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-overlay-max-block-size`, `--slotted-radius-lg`, `--slotted-radius-none`, `--slotted-shadow-md`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-surface-raised`, `--slotted-surface-sunken`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-border`, `--slotted-tone-accent-surface`, `--slotted-tone-accent-text`, `--slotted-tone-danger-border`, `--slotted-tone-danger-text`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-popover`
|
|
152
|
+
`--slotted-avatar-size-md`, `--slotted-avatar-size-sm`, `--slotted-avatar-size-xs`, `--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-border-color`, `--slotted-control-border-width`, `--slotted-control-focus-ring-offset`, `--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-invalid-edge-width`, `--slotted-control-padding-inline-lg`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-control-radius`, `--slotted-control-shadow`, `--slotted-control-shadow-focus-geometry`, `--slotted-control-surface`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-background`, `--slotted-disabled-border`, `--slotted-disabled-foreground`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-enter`, `--slotted-easing-exit`, `--slotted-easing-standard`, `--slotted-entity-picker-action-active-background`, `--slotted-entity-picker-action-color`, `--slotted-entity-picker-action-hover-background`, `--slotted-entity-picker-action-size`, `--slotted-entity-picker-autofill-background`, `--slotted-entity-picker-background`, `--slotted-entity-picker-border-color`, `--slotted-entity-picker-color`, `--slotted-entity-picker-content-backdrop-filter`, `--slotted-entity-picker-content-border-color`, `--slotted-entity-picker-content-radius`, `--slotted-entity-picker-content-shadow`, `--slotted-entity-picker-content-text`, `--slotted-entity-picker-content-text-muted`, `--slotted-entity-picker-disabled-background`, `--slotted-entity-picker-disabled-border-color`, `--slotted-entity-picker-disabled-color`, `--slotted-entity-picker-error-color`, `--slotted-entity-picker-field-basis`, `--slotted-entity-picker-field-min`, `--slotted-entity-picker-group-label-height`, `--slotted-entity-picker-group-label-stuck-backdrop-filter`, `--slotted-entity-picker-group-label-stuck-surface`, `--slotted-entity-picker-highlight`, `--slotted-entity-picker-highlight-active`, `--slotted-entity-picker-highlight-ring`, `--slotted-entity-picker-hover-border-color`, `--slotted-entity-picker-icon-size-min`, `--slotted-entity-picker-invalid-border-color`, `--slotted-entity-picker-invalid-edge-width`, `--slotted-entity-picker-invalid-focus-ring-color`, `--slotted-entity-picker-item-radius`, `--slotted-entity-picker-measure`, `--slotted-entity-picker-meta-measure`, `--slotted-entity-picker-offer-color`, `--slotted-entity-picker-open-border-color`, `--slotted-entity-picker-placeholder-color`, `--slotted-entity-picker-plain-hover-background`, `--slotted-entity-picker-radius`, `--slotted-entity-picker-readonly-background`, `--slotted-entity-picker-scope-inline-size`, `--slotted-entity-picker-selected-color`, `--slotted-entity-picker-shadow`, `--slotted-entity-picker-subtle-background`, `--slotted-entity-picker-subtle-border-color`, `--slotted-entity-picker-subtle-hover-background`, `--slotted-entity-picker-surface`, `--slotted-focus-ring-color`, `--slotted-focus-ring-color-invalid`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-family-sans`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-semibold`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-overlay-max-block-size`, `--slotted-radius-lg`, `--slotted-radius-none`, `--slotted-shadow-md`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-surface-raised`, `--slotted-surface-sunken`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-border`, `--slotted-tone-accent-surface`, `--slotted-tone-accent-text`, `--slotted-tone-danger-border`, `--slotted-tone-danger-text`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-popover`
|
|
153
153
|
|
|
154
154
|
## Examples
|
|
155
155
|
|
package/docs/field-group.json
CHANGED
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"type": "'sm' | 'md' | 'lg'",
|
|
102
102
|
"defaultValue": "md",
|
|
103
103
|
"appliesTo": "slFieldGroup",
|
|
104
|
-
"description": "The type step of the legend, and the step provided to every field inside. The legend
|
|
104
|
+
"description": "The type step of the legend, and the step provided to every field inside. The legend of a question takes the type of a field label; the legend of a section stands one step above the labels under it, so a group in a dense table shrinks with them"
|
|
105
105
|
},
|
|
106
106
|
{
|
|
107
107
|
"name": "orientation",
|
package/docs/field-group.md
CHANGED
|
@@ -44,7 +44,7 @@ Excerpt — not a complete module
|
|
|
44
44
|
|
|
45
45
|
| Name | Type | Default | Applies to | Description |
|
|
46
46
|
| --- | --- | --- | --- | --- |
|
|
47
|
-
| `size` | `'sm' \| 'md' \| 'lg'` | md | slFieldGroup | The type step of the legend, and the step provided to every field inside. The legend
|
|
47
|
+
| `size` | `'sm' \| 'md' \| 'lg'` | md | slFieldGroup | The type step of the legend, and the step provided to every field inside. The legend of a question takes the type of a field label; the legend of a section stands one step above the labels under it, so a group in a dense table shrinks with them |
|
|
48
48
|
| `orientation` | `'vertical' \| 'horizontal'` | vertical | slFieldGroup | How the fields inside flow. A row wraps rather than squeezing, so a field keeps enough width to hold what is being typed into it |
|
|
49
49
|
| `necessity` | `'mark' \| 'optional' \| 'words' \| 'none'` | mark | slFieldGroup | How the set’s necessity is said on its legend — an asterisk, (optional) on an optional set only, both words, or nothing — and the style provided to every field inside |
|
|
50
50
|
| `kind` | `'question' \| 'section'` | question | slFieldGroup | A section names a topic rather than asking something, so its legend draws no necessity, its fields keep the style the application set, and its first field stands --slotted-field-group-section-content-gap (1.25rem) below the legend; a question's choices stand --slotted-field-group-content-gap (the field row gap) below it |
|