@slotted/react 0.1.0-beta.15 → 0.1.0-beta.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{action-sheet-Klu-YxIk.js → action-sheet-dNnB26br.js} +20 -20
- package/dist/action-sheet.js +1 -1
- package/dist/{attachment-DKKiNUKe.js → attachment-C1wBuup6.js} +2 -0
- package/dist/attachment.js +1 -1
- package/dist/calendar-wqDIW4Z8.js +469 -0
- package/dist/calendar.js +1 -1
- package/dist/{column-manager-e234Ey_u.js → column-manager-C8fN_mDy.js} +6 -6
- package/dist/column-manager.js +1 -1
- package/dist/dashboard-grid-z3nKqvN8.js +1149 -0
- package/dist/dashboard-grid.js +1 -1
- package/dist/{data-grid-B5feiNsE.js → data-grid-aHlR2FHu.js} +4 -4
- package/dist/data-grid.js +1 -1
- package/dist/{data-list-CUvUS2AX.js → data-list-Cu6LtnDX.js} +1 -1
- package/dist/data-list.js +1 -1
- package/dist/{date-picker-Dys-z9mZ.js → date-picker-B5V8NZCT.js} +1 -1
- package/dist/date-picker.js +1 -1
- package/dist/{date-range-picker-Cu95hHyO.js → date-range-picker-B89Q973N.js} +1 -1
- package/dist/date-range-picker.js +1 -1
- package/dist/{datetime-picker-B7eWKoN3.js → datetime-picker-Cx6Z52Ka.js} +1 -1
- package/dist/datetime-picker.js +1 -1
- package/dist/{datetime-range-picker-Cm42pY3M.js → datetime-range-picker-DYshAlgq.js} +1 -1
- package/dist/datetime-range-picker.js +1 -1
- package/dist/{detail-panel-BNfYQJfv.js → detail-panel-DYe_D46K.js} +2 -2
- package/dist/detail-panel.js +1 -1
- package/dist/docs/calendar.json +19 -1
- package/dist/docs/calendar.md +3 -1
- package/dist/docs/dashboard-grid.json +30 -8
- package/dist/docs/dashboard-grid.md +8 -5
- package/dist/docs/drawer.json +13 -4
- package/dist/docs/drawer.md +5 -4
- package/dist/docs/guidelines/index.md +2 -0
- package/dist/docs/guidelines/layout-alignment.md +2 -2
- package/dist/docs/guidelines/overviews.md +21 -1
- package/dist/docs/link.json +16 -0
- package/dist/docs/link.md +3 -1
- package/dist/docs/list-item.json +10 -2
- package/dist/docs/list-item.md +20 -13
- package/dist/docs/markdown.json +7 -0
- package/dist/docs/markdown.md +1 -0
- package/dist/docs/message-scroller.json +1 -1
- package/dist/docs/page.json +2 -2
- package/dist/docs/page.md +1 -1
- package/dist/docs/prompt-composer.json +9 -2
- package/dist/docs/prompt-composer.md +3 -1
- package/dist/docs/skills/compose-screen/SKILL.md +10 -1
- package/dist/docs/skills/review-screen/SKILL.md +22 -20
- package/dist/docs/stat-card.json +7 -4
- package/dist/docs/stat-card.md +4 -4
- package/dist/{drawer-CFpBsLG6.js → drawer-Du1aC1px.js} +17 -4
- package/dist/drawer.js +2 -2
- package/dist/{event-calendar-liaKOKOH.js → event-calendar-CEIyV-fW.js} +520 -520
- package/dist/event-calendar.js +1 -1
- package/dist/{filter-bar-vJzwcDZj.js → filter-bar-BHzy0o7n.js} +8 -8
- package/dist/filter-bar.js +1 -1
- package/dist/{import-export-center-BIB7sRCl.js → import-export-center-BX1Bhj8c.js} +1 -1
- package/dist/import-export-center.js +1 -1
- package/dist/index.js +124 -124
- package/dist/{link-rGL3Lr2t.js → link-YvD_Wov8.js} +23 -22
- package/dist/link.js +1 -1
- package/dist/list-item-2z75VYyp.js +160 -0
- package/dist/list-item.js +1 -1
- package/dist/markdown-gfrgwq6-.js +311 -0
- package/dist/markdown.js +1 -1
- package/dist/{page-CwYmBoZQ.js → page-CzqbnTnU.js} +56 -56
- package/dist/{page-header-BgYXPEbd.js → page-header-TejJ-BTC.js} +1 -1
- package/dist/page-header.js +1 -1
- package/dist/page.js +2 -2
- package/dist/{prompt-composer-BDOi4rVK.js → prompt-composer-C57BzYrn.js} +109 -77
- package/dist/prompt-composer.js +2 -2
- package/dist/stat-card-Dv9oJAbF.js +252 -0
- package/dist/stat-card.js +1 -1
- package/dist/styles/action-sheet.css +1 -1
- package/dist/styles/calendar.css +3 -1
- package/dist/styles/chart.css +1 -1
- package/dist/styles/column-manager.css +1 -1
- package/dist/styles/command-palette.css +1 -1
- package/dist/styles/dashboard-grid.css +3 -1
- package/dist/styles/data-grid.css +1 -1
- package/dist/styles/date-picker.css +3 -1
- package/dist/styles/date-range-picker.css +3 -1
- package/dist/styles/datetime-picker.css +3 -1
- package/dist/styles/datetime-range-picker.css +3 -1
- package/dist/styles/detail-panel.css +1 -1
- package/dist/styles/dialog.css +1 -1
- package/dist/styles/drawer.css +1 -1
- package/dist/styles/event-calendar.css +1 -1
- package/dist/styles/filter-bar.css +4 -2
- package/dist/styles/import-export-center.css +2 -2
- package/dist/styles/index.css +11 -11
- package/dist/styles/link.css +1 -1
- package/dist/styles/markdown.css +1 -1
- package/dist/styles/message.css +1 -1
- package/dist/styles/prompt-composer.css +1 -1
- package/dist/styles/section.css +1 -1
- package/dist/styles/stat-card.css +3 -1
- package/dist/styles/table.css +2 -2
- package/dist/styles/upload.css +1 -1
- package/dist/styles.css +1 -1
- package/dist/{table-_xX87qua.js → table-BHuKvsgJ.js} +4 -4
- package/dist/table.js +1 -1
- package/dist/types/calendar/calendar.d.ts +2 -1
- package/dist/types/calendar/calendar.d.ts.map +1 -1
- package/dist/types/calendar/calendar.types.d.ts +11 -0
- package/dist/types/calendar/calendar.types.d.ts.map +1 -1
- package/dist/types/calendar/index.d.ts +1 -1
- package/dist/types/calendar/index.d.ts.map +1 -1
- package/dist/types/chart/chart.d.ts +2 -2
- package/dist/types/chart/chart.d.ts.map +1 -1
- package/dist/types/chart/chart.types.d.ts +10 -6
- package/dist/types/chart/chart.types.d.ts.map +1 -1
- package/dist/types/dashboard-grid/dashboard-grid-context.d.ts +14 -1
- package/dist/types/dashboard-grid/dashboard-grid-context.d.ts.map +1 -1
- package/dist/types/dashboard-grid/dashboard-grid.d.ts +1 -1
- package/dist/types/dashboard-grid/dashboard-grid.d.ts.map +1 -1
- package/dist/types/dashboard-grid/dashboard-grid.types.d.ts +27 -3
- package/dist/types/dashboard-grid/dashboard-grid.types.d.ts.map +1 -1
- package/dist/types/dashboard-grid/dashboard-widget.d.ts +1 -1
- package/dist/types/dashboard-grid/dashboard-widget.d.ts.map +1 -1
- package/dist/types/dashboard-grid/index.d.ts +1 -1
- package/dist/types/dashboard-grid/index.d.ts.map +1 -1
- package/dist/types/dashboard-grid/use-persisted-dashboard-layout.d.ts +2 -1
- package/dist/types/dashboard-grid/use-persisted-dashboard-layout.d.ts.map +1 -1
- package/dist/types/drawer/drawer-parts.d.ts +3 -1
- package/dist/types/drawer/drawer-parts.d.ts.map +1 -1
- package/dist/types/drawer/drawer.types.d.ts +2 -0
- package/dist/types/drawer/drawer.types.d.ts.map +1 -1
- package/dist/types/drawer/index.d.ts +2 -2
- package/dist/types/drawer/index.d.ts.map +1 -1
- package/dist/types/link/index.d.ts +1 -1
- package/dist/types/link/index.d.ts.map +1 -1
- package/dist/types/link/link.d.ts +1 -1
- package/dist/types/link/link.d.ts.map +1 -1
- package/dist/types/link/link.types.d.ts +7 -0
- package/dist/types/link/link.types.d.ts.map +1 -1
- package/dist/types/list-item/list-item-content.d.ts +3 -3
- package/dist/types/list-item/list-item-content.d.ts.map +1 -1
- package/dist/types/list-item/list-item-nesting.d.ts +15 -0
- package/dist/types/list-item/list-item-nesting.d.ts.map +1 -0
- package/dist/types/list-item/list-item-parts.d.ts +3 -3
- package/dist/types/list-item/list-item-parts.d.ts.map +1 -1
- package/dist/types/markdown/markdown.d.ts +1 -1
- package/dist/types/markdown/markdown.d.ts.map +1 -1
- package/dist/types/markdown/markdown.types.d.ts +6 -1
- package/dist/types/markdown/markdown.types.d.ts.map +1 -1
- package/dist/types/page/index.d.ts +1 -1
- package/dist/types/page/index.d.ts.map +1 -1
- package/dist/types/page/page.d.ts +6 -0
- package/dist/types/page/page.d.ts.map +1 -1
- package/dist/types/prompt-composer/index.d.ts +2 -2
- package/dist/types/prompt-composer/index.d.ts.map +1 -1
- package/dist/types/prompt-composer/prompt-composer.d.ts +8 -1
- package/dist/types/prompt-composer/prompt-composer.d.ts.map +1 -1
- package/dist/types/prompt-composer/prompt-composer.types.d.ts +7 -1
- package/dist/types/prompt-composer/prompt-composer.types.d.ts.map +1 -1
- package/dist/types/stat-card/stat-card-parts.d.ts +7 -3
- package/dist/types/stat-card/stat-card-parts.d.ts.map +1 -1
- package/package.json +6 -6
- package/dist/calendar-DZx00W81.js +0 -457
- package/dist/dashboard-grid-B9-_lwn6.js +0 -1048
- package/dist/list-item-CHaJYl5r.js +0 -125
- package/dist/markdown-B_lMpWz0.js +0 -306
- package/dist/stat-card-CUISfM36.js +0 -247
package/dist/docs/list-item.json
CHANGED
|
@@ -83,48 +83,56 @@
|
|
|
83
83
|
},
|
|
84
84
|
{
|
|
85
85
|
"part": "marker",
|
|
86
|
+
"parent": "root",
|
|
86
87
|
"element": "span",
|
|
87
88
|
"required": false,
|
|
88
89
|
"purpose": "The bullet, rendered only when marker is bullet: the dot Glyph in the marker column, before content and hidden from assistive technology. A numbered marker is a counter the stylesheet writes, because it is text."
|
|
89
90
|
},
|
|
90
91
|
{
|
|
91
92
|
"part": "content",
|
|
93
|
+
"parent": "root",
|
|
92
94
|
"element": "div, button or a",
|
|
93
95
|
"required": true,
|
|
94
96
|
"purpose": "The box that is read, hovered, focused and — for two of the three — activated. Three elements rather than one as prop, because the three are three different accessibility trees."
|
|
95
97
|
},
|
|
96
98
|
{
|
|
97
99
|
"part": "start",
|
|
100
|
+
"parent": "content",
|
|
98
101
|
"element": "div",
|
|
99
102
|
"required": false,
|
|
100
103
|
"purpose": "The leading column: an icon, an avatar, a Checkbox. It is the slot and not the control, and the chooser here is also what announces a selection the row only paints."
|
|
101
104
|
},
|
|
102
105
|
{
|
|
103
106
|
"part": "body",
|
|
107
|
+
"parent": "content",
|
|
104
108
|
"element": "div",
|
|
105
109
|
"required": false,
|
|
106
110
|
"purpose": "The text column, and the one box in the row that may shrink — which is what lets an unbroken token break instead of pushing the metadata out of the row."
|
|
107
111
|
},
|
|
108
112
|
{
|
|
109
113
|
"part": "label",
|
|
114
|
+
"parent": "body",
|
|
110
115
|
"element": "div",
|
|
111
116
|
"required": false,
|
|
112
117
|
"purpose": "The title. It clips under truncate, isolates its own direction so another script does not reorder the row, and breaks a single unbroken token."
|
|
113
118
|
},
|
|
114
119
|
{
|
|
115
120
|
"part": "description",
|
|
121
|
+
"parent": "body",
|
|
116
122
|
"element": "div",
|
|
117
123
|
"required": false,
|
|
118
124
|
"purpose": "The lines under the title. They clip with it, never instead of it."
|
|
119
125
|
},
|
|
120
126
|
{
|
|
121
127
|
"part": "end",
|
|
128
|
+
"parent": "content",
|
|
122
129
|
"element": "div",
|
|
123
130
|
"required": false,
|
|
124
131
|
"purpose": "Trailing metadata that is part of what the row says — a timestamp, a count, a Badge. Below 22rem it leaves the inline axis and sits under the title."
|
|
125
132
|
},
|
|
126
133
|
{
|
|
127
134
|
"part": "actions",
|
|
135
|
+
"parent": "root",
|
|
128
136
|
"element": "div",
|
|
129
137
|
"required": false,
|
|
130
138
|
"purpose": "Independent targets, and a sibling of the box rather than its child: interactive content may not nest inside an a or a button."
|
|
@@ -410,9 +418,9 @@
|
|
|
410
418
|
{
|
|
411
419
|
"id": "anatomy",
|
|
412
420
|
"title": "Every part, and a row with almost none",
|
|
413
|
-
"note": "Every part but the box is optional, and an absent one leaves no column behind: each gap is a margin on the part rather than a track on the grid.",
|
|
421
|
+
"note": "Every part but the box is optional, and an absent one leaves no column behind: each gap is a margin on the part rather than a track on the grid. ListItemEnd takes metadata, inside the box; ListItemActions takes controls, beside it.",
|
|
414
422
|
"language": "tsx",
|
|
415
|
-
"source": "<ListItem>\n <ListItemContent>\n <ListItemStart>{icon}</ListItemStart>\n <ListItemBody>\n <ListItemLabel>Photos</ListItemLabel>\n <ListItemDescription>128 files</ListItemDescription>\n </ListItemBody>\n <ListItemEnd>Yesterday</ListItemEnd>\n </ListItemContent>\n <ListItemActions
|
|
423
|
+
"source": "<ListItem>\n <ListItemContent>\n <ListItemStart>{icon}</ListItemStart>\n <ListItemBody>\n <ListItemLabel>Photos</ListItemLabel>\n <ListItemDescription>128 files</ListItemDescription>\n </ListItemBody>\n <ListItemEnd>Yesterday</ListItemEnd>\n </ListItemContent>\n <ListItemActions>\n <Button size=\"sm\" variant=\"ghost\" onClick={rename}>\n Rename\n </Button>\n <Button size=\"sm\" variant=\"ghost\" onClick={remove}>\n Remove\n </Button>\n </ListItemActions>\n</ListItem>;\n",
|
|
416
424
|
"verdict": "excerpt"
|
|
417
425
|
},
|
|
418
426
|
{
|
package/dist/docs/list-item.md
CHANGED
|
@@ -26,17 +26,17 @@ Excerpt — not a complete module
|
|
|
26
26
|
|
|
27
27
|
## Anatomy
|
|
28
28
|
|
|
29
|
-
| Part | Element | Required |
|
|
30
|
-
| --- | --- | --- |
|
|
31
|
-
| `root` | li, or the element render returns | yes |
|
|
32
|
-
| `marker` | span | no |
|
|
33
|
-
| `content` | div, button or a | yes |
|
|
34
|
-
| `start` | div | no |
|
|
35
|
-
| `body` | div | no |
|
|
36
|
-
| `label` | div | no |
|
|
37
|
-
| `description` | div | no |
|
|
38
|
-
| `end` | div | no |
|
|
39
|
-
| `actions` | div | no |
|
|
29
|
+
| Part | Parent | Element | Required |
|
|
30
|
+
| --- | --- | --- | --- |
|
|
31
|
+
| `root` | — | li, or the element render returns | yes |
|
|
32
|
+
| `marker` | `root` | span | no |
|
|
33
|
+
| `content` | `root` | div, button or a | yes |
|
|
34
|
+
| `start` | `content` | div | no |
|
|
35
|
+
| `body` | `content` | div | no |
|
|
36
|
+
| `label` | `body` | div | no |
|
|
37
|
+
| `description` | `body` | div | no |
|
|
38
|
+
| `end` | `content` | div | no |
|
|
39
|
+
| `actions` | `root` | div | no |
|
|
40
40
|
|
|
41
41
|
## Props
|
|
42
42
|
|
|
@@ -103,7 +103,7 @@ Excerpt — not a complete module
|
|
|
103
103
|
|
|
104
104
|
### Every part, and a row with almost none
|
|
105
105
|
|
|
106
|
-
Every part but the box is optional, and an absent one leaves no column behind: each gap is a margin on the part rather than a track on the grid.
|
|
106
|
+
Every part but the box is optional, and an absent one leaves no column behind: each gap is a margin on the part rather than a track on the grid. ListItemEnd takes metadata, inside the box; ListItemActions takes controls, beside it.
|
|
107
107
|
|
|
108
108
|
Excerpt — not a complete module
|
|
109
109
|
|
|
@@ -117,7 +117,14 @@ Excerpt — not a complete module
|
|
|
117
117
|
</ListItemBody>
|
|
118
118
|
<ListItemEnd>Yesterday</ListItemEnd>
|
|
119
119
|
</ListItemContent>
|
|
120
|
-
<ListItemActions>
|
|
120
|
+
<ListItemActions>
|
|
121
|
+
<Button size="sm" variant="ghost" onClick={rename}>
|
|
122
|
+
Rename
|
|
123
|
+
</Button>
|
|
124
|
+
<Button size="sm" variant="ghost" onClick={remove}>
|
|
125
|
+
Remove
|
|
126
|
+
</Button>
|
|
127
|
+
</ListItemActions>
|
|
121
128
|
</ListItem>;
|
|
122
129
|
```
|
|
123
130
|
|
package/dist/docs/markdown.json
CHANGED
|
@@ -118,6 +118,13 @@
|
|
|
118
118
|
"appliesTo": "Markdown",
|
|
119
119
|
"description": "The document in mdast; never HTML"
|
|
120
120
|
},
|
|
121
|
+
{
|
|
122
|
+
"name": "source",
|
|
123
|
+
"type": "string",
|
|
124
|
+
"defaultValue": "—",
|
|
125
|
+
"appliesTo": "Markdown",
|
|
126
|
+
"description": "The document as CommonMark text, read by parseMarkdown in place of tree: the syntax of the types in allow is read and any other stays text. Paragraphs, ATX headings, fenced code, quotes, rules, nested lists, code spans, strong, emphasis, links, escapes and hard breaks; tables, images and HTML need an adapter"
|
|
127
|
+
},
|
|
121
128
|
{
|
|
122
129
|
"name": "size",
|
|
123
130
|
"type": "'md' | 'lg' | 'xl'",
|
package/dist/docs/markdown.md
CHANGED
|
@@ -41,6 +41,7 @@ const tree = fromMarkedTokens(marked.lexer(source));
|
|
|
41
41
|
| Name | Type | Default | Applies to | Description |
|
|
42
42
|
| --- | --- | --- | --- | --- |
|
|
43
43
|
| `tree` | `MarkdownNode \| null` | — | Markdown | The document in mdast; never HTML |
|
|
44
|
+
| `source` | `string` | — | Markdown | The document as CommonMark text, read by parseMarkdown in place of tree: the syntax of the types in allow is read and any other stays text. Paragraphs, ATX headings, fenced code, quotes, rules, nested lists, code spans, strong, emphasis, links, escapes and hard breaks; tables, images and HTML need an adapter |
|
|
44
45
|
| `size` | `'md' \| 'lg' \| 'xl'` | lg | Markdown | The region’s type step, from prose |
|
|
45
46
|
| `flow` | `'tight' \| 'normal' \| 'loose'` | normal | Markdown | The space between blocks, from prose |
|
|
46
47
|
| `status` | `'ready' \| 'error'` | ready | Markdown | error replaces the document with the error part |
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"part": "root",
|
|
67
67
|
"element": "div",
|
|
68
68
|
"required": true,
|
|
69
|
-
"purpose": "The frame. Fills a bounded parent; the engine writes data-scrollable, data-following and data-pending on it while the reader scrolls."
|
|
69
|
+
"purpose": "The frame. Fills a bounded parent; the engine writes data-scrollable, data-following and data-pending on it while the reader scrolls. data-pending hides the content until the opening position is applied, and content that holds no item is never pending."
|
|
70
70
|
},
|
|
71
71
|
{
|
|
72
72
|
"part": "viewport",
|
package/dist/docs/page.json
CHANGED
|
@@ -208,11 +208,11 @@
|
|
|
208
208
|
"description": "The five decisions an application takes once. A page that states any of them itself still wins"
|
|
209
209
|
},
|
|
210
210
|
{
|
|
211
|
-
"name": "--slotted-page-sticky-top, --slotted-page-sticky-bottom",
|
|
211
|
+
"name": "--slotted-page-sticky-top, --slotted-page-sticky-bottom, --slotted-page-scrollport-block-size",
|
|
212
212
|
"type": "runtime properties on the scroller",
|
|
213
213
|
"defaultValue": "—",
|
|
214
214
|
"appliesTo": "every family under the page, and the consumer’s own sticky elements inside it",
|
|
215
|
-
"description": "The height of the chrome that stays at the top, written by the header, and of the
|
|
215
|
+
"description": "The height of the chrome that stays at the top, written by the header, of the footer, and of the scroller itself, written by the page. A section’s sticky header reads the first; a table with stickyTo=\"page\" reads both through the bridge the page writes on its root. A consumer’s own position: sticky element reads the first as well: inset-block-start: calc(var(--slotted-page-sticky-top, 0px) + gap) stops it under the chrome instead of behind the stuck header, and max-block-size: calc(var(--slotted-page-scrollport-block-size, 100dvh) - var(--slotted-page-sticky-top, 0px) - var(--slotted-page-sticky-bottom, 0px) - 2 * gap) bounds one that may be taller than the scroller. The third is the scroller’s visible height, written by the page; under an inset canvas the scroller is shorter than the viewport"
|
|
216
216
|
}
|
|
217
217
|
],
|
|
218
218
|
"events": [],
|
package/dist/docs/page.md
CHANGED
|
@@ -47,7 +47,7 @@ Excerpt — not a complete module
|
|
|
47
47
|
| `ref` | `Ref<HTMLElement>` | — | Page, PageBody, PageFooter | Reaches the element itself. Under scroll="self" the scroller is the scroll part inside it: root.querySelector("[data-part=scroll]") |
|
|
48
48
|
| `usePage()` | `() => PageContextValue \| undefined` | — | inside Page | What the header and the footer read: width, inset, scroll, ground, loading and the translator t. Undefined outside a page, so a header standing alone is complete |
|
|
49
49
|
| `PageDefaultsProvider` | `{ width, inset, scroll, ground, landmark }` | — | a subtree | The five decisions an application takes once. A page that states any of them itself still wins |
|
|
50
|
-
| `--slotted-page-sticky-top, --slotted-page-sticky-bottom` | `runtime properties on the scroller` | — | every family under the page, and the consumer’s own sticky elements inside it | The height of the chrome that stays at the top, written by the header, and of the
|
|
50
|
+
| `--slotted-page-sticky-top, --slotted-page-sticky-bottom, --slotted-page-scrollport-block-size` | `runtime properties on the scroller` | — | every family under the page, and the consumer’s own sticky elements inside it | The height of the chrome that stays at the top, written by the header, of the footer, and of the scroller itself, written by the page. A section’s sticky header reads the first; a table with stickyTo="page" reads both through the bridge the page writes on its root. A consumer’s own position: sticky element reads the first as well: inset-block-start: calc(var(--slotted-page-sticky-top, 0px) + gap) stops it under the chrome instead of behind the stuck header, and max-block-size: calc(var(--slotted-page-scrollport-block-size, 100dvh) - var(--slotted-page-sticky-top, 0px) - var(--slotted-page-sticky-bottom, 0px) - 2 * gap) bounds one that may be taller than the scroller. The third is the scroller’s visible height, written by the page; under an inset canvas the scroller is shorter than the viewport |
|
|
51
51
|
|
|
52
52
|
## Axes and defaults
|
|
53
53
|
|
|
@@ -75,6 +75,7 @@
|
|
|
75
75
|
"footer",
|
|
76
76
|
"action",
|
|
77
77
|
"attach",
|
|
78
|
+
"dictate",
|
|
78
79
|
"submit",
|
|
79
80
|
"ring",
|
|
80
81
|
"glow"
|
|
@@ -84,7 +85,7 @@
|
|
|
84
85
|
"docs": {
|
|
85
86
|
"promptComposer": {
|
|
86
87
|
"imports": {
|
|
87
|
-
"source": "import {\n PromptComposer,\n PromptComposerAction,\n PromptComposerAttach,\n PromptComposerFooter,\n PromptComposerHeader,\n PromptComposerInput,\n PromptComposerSubmit,\n} from '@slotted/react';"
|
|
88
|
+
"source": "import {\n PromptComposer,\n PromptComposerAction,\n PromptComposerAttach,\n PromptComposerDictate,\n PromptComposerFooter,\n PromptComposerHeader,\n PromptComposerInput,\n PromptComposerSubmit,\n} from '@slotted/react';"
|
|
88
89
|
},
|
|
89
90
|
"anatomy": [
|
|
90
91
|
{
|
|
@@ -123,6 +124,12 @@
|
|
|
123
124
|
"required": false,
|
|
124
125
|
"purpose": "Opens the file chooser with the composer’s accept and multiple, and hands the choice to onAttach with reason \"pointer\"."
|
|
125
126
|
},
|
|
127
|
+
{
|
|
128
|
+
"part": "dictate",
|
|
129
|
+
"element": "button (PromptComposerDictate)",
|
|
130
|
+
"required": false,
|
|
131
|
+
"purpose": "The microphone: dictation through the platform’s SpeechRecognition, in the lang input or the nearest lang attribute. Each final phrase is written at the end of the value through onValueChange with reason \"dictation\"; the button is aria-pressed while the engine listens, a second press stops it, and “Listening” is announced as it starts. Without a recognition engine the button renders nothing."
|
|
132
|
+
},
|
|
126
133
|
{
|
|
127
134
|
"part": "submit",
|
|
128
135
|
"element": "button (PromptComposerSubmit)",
|
|
@@ -304,7 +311,7 @@
|
|
|
304
311
|
{
|
|
305
312
|
"name": "onValueChange",
|
|
306
313
|
"payload": "(value: string, request: ChangeRequest<string>)",
|
|
307
|
-
"when": "Before the value moves: reason \"keyboard\" for an edit, \"submit\" for the clearing after an accepted send. cancel() refuses the move."
|
|
314
|
+
"when": "Before the value moves: reason \"keyboard\" for an edit, \"dictation\" for a phrase PromptComposerDictate wrote, \"submit\" for the clearing after an accepted send. cancel() refuses the move."
|
|
308
315
|
},
|
|
309
316
|
{
|
|
310
317
|
"name": "onValueSubmit",
|
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
PromptComposer,
|
|
11
11
|
PromptComposerAction,
|
|
12
12
|
PromptComposerAttach,
|
|
13
|
+
PromptComposerDictate,
|
|
13
14
|
PromptComposerFooter,
|
|
14
15
|
PromptComposerHeader,
|
|
15
16
|
PromptComposerInput,
|
|
@@ -41,6 +42,7 @@ Excerpt — not a complete module
|
|
|
41
42
|
| `footer` | div (PromptComposerFooter) | no |
|
|
42
43
|
| `action` | button (PromptComposerAction) | no |
|
|
43
44
|
| `attach` | button (PromptComposerAttach), with a hidden file input beside it | no |
|
|
45
|
+
| `dictate` | button (PromptComposerDictate) | no |
|
|
44
46
|
| `submit` | button (PromptComposerSubmit) | no |
|
|
45
47
|
| `ring` | span, aria-hidden | no |
|
|
46
48
|
| `glow` | span, aria-hidden | no |
|
|
@@ -76,7 +78,7 @@ Excerpt — not a complete module
|
|
|
76
78
|
|
|
77
79
|
| Name | Payload | When |
|
|
78
80
|
| --- | --- | --- |
|
|
79
|
-
| `onValueChange` | `(value: string, request: ChangeRequest<string>)` | Before the value moves: reason "keyboard" for an edit, "submit" for the clearing after an accepted send. cancel() refuses the move. |
|
|
81
|
+
| `onValueChange` | `(value: string, request: ChangeRequest<string>)` | Before the value moves: reason "keyboard" for an edit, "dictation" for a phrase PromptComposerDictate wrote, "submit" for the clearing after an accepted send. cancel() refuses the move. |
|
|
80
82
|
| `onValueSubmit` | `(value: string, request: ChangeRequest<string>)` | Before the message is sent, from Enter, Mod+Enter or the send button — reason "keyboard" or "pointer". cancel() keeps the value where it is; otherwise an uncontrolled composer clears it. |
|
|
81
83
|
| `onStop` | `({ reason, source })` | The stop button, while status is "streaming". “Stopped” is announced. |
|
|
82
84
|
| `onAttach` | `(files: File[], { reason, rejected, source })` | Files from the paperclip ("pointer"), a paste ("paste") or a drop ("drop"), after accept, maxSize, maxFiles and multiple. rejected lists what the rules refused, with the reason. |
|
|
@@ -41,7 +41,9 @@ topics.
|
|
|
41
41
|
1. `../../guidelines/index.md`.
|
|
42
42
|
2. `../../guidelines/composition.md`, always.
|
|
43
43
|
3. The topic of step 2. Add `layout-alignment.md` and `shell-composition.md`
|
|
44
|
-
when the screen places controls in a row
|
|
44
|
+
when the screen places controls in a row, makes an element of its own
|
|
45
|
+
`position: sticky` (a summary or a preview beside a form or a list), or
|
|
46
|
+
works in the application frame.
|
|
45
47
|
4. Add `errors-and-conflicts.md` and `reading-permissions.md` when the screen
|
|
46
48
|
writes data or reads under a role.
|
|
47
49
|
5. When the screen writes an element of its own, follow
|
|
@@ -74,6 +76,10 @@ element stands in that slot.
|
|
|
74
76
|
useDeferredValue or startTransition) (CP-09). A list longer than a hundred
|
|
75
77
|
rows is a `data-grid`, which windows its rows where it has a height of its
|
|
76
78
|
own and is served in pages below 600 pixels (LP-12, LP-14). Its columns, its disabled keys and a function row key are module constants or memoised: a new one on a render of the screen renders every mounted row again. Its renderers, its messages and its tree may be written inline.
|
|
79
|
+
- An element of the screen's own made `position: sticky` stops under the
|
|
80
|
+
page's chrome: its offset starts at `--slotted-page-sticky-top`, and its
|
|
81
|
+
height cap subtracts it (LA-06). An offset from the scroller's edge alone
|
|
82
|
+
sticks it behind the stuck header.
|
|
77
83
|
- Where no anatomy answers the problem, the screen writes an element of its
|
|
78
84
|
own instead of bending a family into a shape it does not have (CP-04). That
|
|
79
85
|
element is built with `../../skills/build-own-element/SKILL.md`.
|
|
@@ -101,3 +107,6 @@ Every region filled by a request and every control that starts one follow
|
|
|
101
107
|
against the task, and the reason is written beside it.
|
|
102
108
|
6. At 360 pixels with a coarse pointer, the header's actions and the footer's
|
|
103
109
|
actions each occupy one row (LA-03, LA-07).
|
|
110
|
+
7. Each element of the screen's own made sticky: scroll until the page header
|
|
111
|
+
sticks, at two positions; its top stands at or below the header's title
|
|
112
|
+
area (LA-06 Check).
|
|
@@ -32,26 +32,28 @@ A review answers one question per rule read: does the screen pass the rule's
|
|
|
32
32
|
|
|
33
33
|
Each search below finds a defect without running the screen.
|
|
34
34
|
|
|
35
|
-
| Search the screen's files for
|
|
36
|
-
|
|
|
37
|
-
| A colour literal (hex, rgb, hsl, oklch), a length in pixels or rem other than zero, or a font size, in the screen's CSS
|
|
38
|
-
| A rule of the application's CSS that sets colour, border, radius, padding or type on a family's `data-ui` or `data-part`
|
|
39
|
-
| A control that starts a request and is not in its `loading` state until the answer, except a Refresh of the whole page
|
|
40
|
-
| A Refresh of the whole page drawing a spinner on its button, or a refetch of data on screen with no `page-header` progress bar
|
|
41
|
-
| An empty state drawn from the initial value of the data, before the first answer
|
|
42
|
-
| A spinner standing in a region that has no items yet
|
|
43
|
-
| Siblings of the page's own spaced by margins, or text with a font size of its own
|
|
44
|
-
| A grid or flex track around a family that scrolls, with no zero minimum
|
|
45
|
-
| A badge, a tag or a colour beside a family that already draws the same state
|
|
46
|
-
| An element of the screen's own that takes focus with no ring in its `focus-visible` state
|
|
47
|
-
| A `data-grid` or `table` with no `variant` on a page whose `width` is not `bleed`
|
|
48
|
-
| A list page's `page-header` with a heading and no subheading, no figures and no solid primary action
|
|
49
|
-
| A grid whose column state unpins its `actions` column
|
|
50
|
-
| A row of `stat-card`s where a label has more than three words, or one card has a comparison the others lack
|
|
51
|
-
|
|
|
52
|
-
| A
|
|
53
|
-
| Two
|
|
54
|
-
| A
|
|
35
|
+
| Search the screen's files for | Defect | Rule |
|
|
36
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------- | ------------ |
|
|
37
|
+
| A colour literal (hex, rgb, hsl, oklch), a length in pixels or rem other than zero, or a font size, in the screen's CSS | a value the theme has a token for | CP-05, OE-01 |
|
|
38
|
+
| A rule of the application's CSS that sets colour, border, radius, padding or type on a family's `data-ui` or `data-part` | the screen restyles a family instead of setting its axes | OE-08 |
|
|
39
|
+
| A control that starts a request and is not in its `loading` state until the answer, except a Refresh of the whole page | a control that fires twice | AF-03 |
|
|
40
|
+
| A Refresh of the whole page drawing a spinner on its button, or a refetch of data on screen with no `page-header` progress bar | a wait in the wrong place, and no wait shown for the page | AF-07 |
|
|
41
|
+
| An empty state drawn from the initial value of the data, before the first answer | a wait shown as nothing | AF-01 |
|
|
42
|
+
| A spinner standing in a region that has no items yet | placeholders missing | AF-02 |
|
|
43
|
+
| Siblings of the page's own spaced by margins, or text with a font size of its own | layout outside the primitives | CP-02 |
|
|
44
|
+
| A grid or flex track around a family that scrolls, with no zero minimum | the page scrolls, not the family | CP-03 |
|
|
45
|
+
| A badge, a tag or a colour beside a family that already draws the same state | a state stated twice | CP-06 |
|
|
46
|
+
| An element of the screen's own that takes focus with no ring in its `focus-visible` state | focus not drawn | OE-03 |
|
|
47
|
+
| A `data-grid` or `table` with no `variant` on a page whose `width` is not `bleed` | a grid with no frame on the page's surface | LP-15 |
|
|
48
|
+
| A list page's `page-header` with a heading and no subheading, no figures and no solid primary action | a header that does not say what the list covers | LP-16 |
|
|
49
|
+
| A grid whose column state unpins its `actions` column | the row's actions leave the frame | LP-17 |
|
|
50
|
+
| A row of `stat-card`s where a label has more than three words, or one card has a comparison the others lack | a row of cards with no shared structure | OV-06 |
|
|
51
|
+
| A `stat-card` without the `plain` `fill`, or a `chart` with the `card` `variant`, inside a widget of the `dashboard-grid`, a `section` with the `surface` `ground` or a `card` | a frame inside a frame | OV-08 |
|
|
52
|
+
| A menu, a toggle or a state of the application's own that hides, orders or resizes the blocks of an overview | an arranged overview built outside `dashboard-grid` | OV-07 |
|
|
53
|
+
| Two destinations of the navigation whose `page`s state different `width`s | the column's edges move between destinations | CP-10 |
|
|
54
|
+
| A write whose success handler refreshes only the region of the control that wrote | figures elsewhere stay stale after the write | AF-08 |
|
|
55
|
+
| Two or more actions in a `page-header`'s `actions` outside a `toolbar` that folds into its menu, or toolbar items with no counterpart beside the primary one | a header whose actions wrap on a phone | LA-03 |
|
|
56
|
+
| A footer `action-bar` of three or more actions with no overflow control, or a secondary action with no counterpart | a footer that stacks into a column on a phone | LA-07 |
|
|
55
57
|
|
|
56
58
|
A rule whose `Check` needs the screen running — a size class, a throttled
|
|
57
59
|
network, the accessibility tree — is run when the environment can run it, and
|
package/dist/docs/stat-card.json
CHANGED
|
@@ -176,7 +176,7 @@
|
|
|
176
176
|
"part": "trend",
|
|
177
177
|
"element": "div",
|
|
178
178
|
"required": false,
|
|
179
|
-
"purpose": "Where a Sparkline goes: beside the figure, or under it when stacked or under 220 pixels. Hands the sparkline the card’s tone and
|
|
179
|
+
"purpose": "Where a Sparkline goes: beside the figure, or under it when stacked or under 220 pixels. Hands the sparkline the card’s tone, ground and box, and draws a line smoothed and washed unless the application or the sparkline says otherwise; a block placeholder in the same box while loading; hidden under forty pixels."
|
|
180
180
|
},
|
|
181
181
|
{
|
|
182
182
|
"part": "message",
|
|
@@ -305,7 +305,7 @@
|
|
|
305
305
|
"type": "children",
|
|
306
306
|
"defaultValue": "—",
|
|
307
307
|
"appliesTo": "StatCard",
|
|
308
|
-
"description": "Takes a Sparkline and hands it the card’s tone through --slotted-sparkline-color
|
|
308
|
+
"description": "Takes a Sparkline and hands it the card’s tone through --slotted-sparkline-color, its ground for the marker’s ring, and curve=\"monotone\" with area unless sparkline defaults or the sparkline state otherwise; a tone or series on the sparkline still wins"
|
|
309
309
|
},
|
|
310
310
|
{
|
|
311
311
|
"name": "StatCardStatus, StatCardAction",
|
|
@@ -414,6 +414,9 @@
|
|
|
414
414
|
"--slotted-stat-card-region-gap-sm",
|
|
415
415
|
"--slotted-stat-card-shadow",
|
|
416
416
|
"--slotted-stat-card-shadow-elevated",
|
|
417
|
+
"--slotted-stat-card-trend-block-size",
|
|
418
|
+
"--slotted-stat-card-trend-block-size-lg",
|
|
419
|
+
"--slotted-stat-card-trend-block-size-sm",
|
|
417
420
|
"--slotted-stat-card-trend-gap",
|
|
418
421
|
"--slotted-stat-card-trend-gap-lg",
|
|
419
422
|
"--slotted-stat-card-trend-gap-sm",
|
|
@@ -482,7 +485,7 @@
|
|
|
482
485
|
{
|
|
483
486
|
"id": "layout",
|
|
484
487
|
"title": "The trend beside the figure, or under it",
|
|
485
|
-
"note": "inline puts the sparkline in a column beside the value,
|
|
488
|
+
"note": "inline puts the sparkline in a column beside the value, as tall as the figure; stacked runs it to the card’s edges on the last row, level with the bottom of every card in the row. Under 220 pixels a card stacks on its own and drops the value one step.",
|
|
486
489
|
"language": "tsx",
|
|
487
490
|
"source": "<StatCard layout=\"inline\">…</StatCard>;\n<StatCard layout=\"stacked\">…</StatCard>;\n",
|
|
488
491
|
"verdict": "excerpt"
|
|
@@ -490,7 +493,7 @@
|
|
|
490
493
|
{
|
|
491
494
|
"id": "loading",
|
|
492
495
|
"title": "The layout is kept while the value is on its way",
|
|
493
|
-
"note": "Every text part stands in with a placeholder of its own line height and the trend with a block the
|
|
496
|
+
"note": "Every text part stands in with a placeholder of its own line height and the trend with a block in the trend’s own box, so nothing moves when the numbers arrive; the previous value is not shown as if it were current.",
|
|
494
497
|
"language": "tsx",
|
|
495
498
|
"source": "<StatCard loading={pending}>\n <StatCardHeader>\n <StatCardLabel>Open orders</StatCardLabel>\n </StatCardHeader>\n <StatCardFigure>\n <StatCardValue value={orders.total} />\n <StatCardDelta value={orders.delta} />\n </StatCardFigure>\n <StatCardTrend>\n <Sparkline data={orders.series} />\n </StatCardTrend>\n</StatCard>;\n",
|
|
496
499
|
"verdict": "excerpt"
|
package/dist/docs/stat-card.md
CHANGED
|
@@ -86,7 +86,7 @@ Excerpt — not a complete module
|
|
|
86
86
|
| `children` | `ReactNode` | — | StatCardValue, StatCardDelta | Your own rendering of the number, unit and all; wins over value |
|
|
87
87
|
| `render` | `(props) => ReactNode` | — | every part | Substitutes the rendered element: a heading for the label, a link for the action, a figure for the root |
|
|
88
88
|
| `ref` | `Ref<HTMLElement>` | — | every part | Reaches the native element; each part’s props are that element’s, extended |
|
|
89
|
-
| `StatCardTrend` | `children` | — | StatCard | Takes a Sparkline and hands it the card’s tone through --slotted-sparkline-color
|
|
89
|
+
| `StatCardTrend` | `children` | — | StatCard | Takes a Sparkline and hands it the card’s tone through --slotted-sparkline-color, its ground for the marker’s ring, and curve="monotone" with area unless sparkline defaults or the sparkline state otherwise; a tone or series on the sparkline still wins |
|
|
90
90
|
| `StatCardStatus, StatCardAction` | `children` | — | StatCardHeader | Slots for a Badge or StatusIndicator, and for a Link or Button, kept as you wrote them |
|
|
91
91
|
| `trendOf, toneOf` | `function` | — | Application | The two derivations, exported for a delta you format yourself |
|
|
92
92
|
| `StatCardDefaultsProvider` | `StatCardDefaults` | — | Application | Sets goodWhen, size, fill, layout and formatOptions once for everything below it; a prop still wins |
|
|
@@ -114,7 +114,7 @@ Excerpt — not a complete module
|
|
|
114
114
|
|
|
115
115
|
## Tokens
|
|
116
116
|
|
|
117
|
-
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-font-family-sans`, `--slotted-font-size-2xl`, `--slotted-font-size-3xl`, `--slotted-font-size-4xl`, `--slotted-font-size-md`, `--slotted-font-size-sm`, `--slotted-font-size-xl`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-semibold`, `--slotted-letter-spacing-tighter`, `--slotted-line-height-2xl`, `--slotted-line-height-3xl`, `--slotted-line-height-4xl`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-line-height-xl`, `--slotted-line-height-xs`, `--slotted-radius-lg`, `--slotted-radius-none`, `--slotted-shadow-md`, `--slotted-space-1`, `--slotted-space-11`, `--slotted-space-12`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-space-7`, `--slotted-space-8`, `--slotted-space-9`, `--slotted-sparkline-block-size`, `--slotted-sparkline-block-size-lg`, `--slotted-sparkline-block-size-sm`, `--slotted-stat-card-background`, `--slotted-stat-card-background-subtle`, `--slotted-stat-card-border-color`, `--slotted-stat-card-border-width`, `--slotted-stat-card-color`, `--slotted-stat-card-color-muted`, `--slotted-stat-card-delta-font-size`, `--slotted-stat-card-delta-font-size-lg`, `--slotted-stat-card-delta-font-size-sm`, `--slotted-stat-card-indicator-size`, `--slotted-stat-card-indicator-size-lg`, `--slotted-stat-card-label-font-size`, `--slotted-stat-card-label-font-size-lg`, `--slotted-stat-card-label-font-size-sm`, `--slotted-stat-card-label-line-height`, `--slotted-stat-card-label-line-height-lg`, `--slotted-stat-card-label-line-height-sm`, `--slotted-stat-card-min-inline-size`, `--slotted-stat-card-padding-block`, `--slotted-stat-card-padding-block-lg`, `--slotted-stat-card-padding-block-sm`, `--slotted-stat-card-padding-inline`, `--slotted-stat-card-padding-inline-lg`, `--slotted-stat-card-padding-inline-sm`, `--slotted-stat-card-prose-font-size`, `--slotted-stat-card-prose-font-size-lg`, `--slotted-stat-card-prose-line-height`, `--slotted-stat-card-prose-line-height-lg`, `--slotted-stat-card-radius`, `--slotted-stat-card-region-gap`, `--slotted-stat-card-region-gap-lg`, `--slotted-stat-card-region-gap-sm`, `--slotted-stat-card-shadow`, `--slotted-stat-card-shadow-elevated`, `--slotted-stat-card-trend-gap`, `--slotted-stat-card-trend-gap-lg`, `--slotted-stat-card-trend-gap-sm`, `--slotted-stat-card-trend-inline-size`, `--slotted-stat-card-trend-inline-size-lg`, `--slotted-stat-card-trend-inline-size-sm`, `--slotted-stat-card-value-font-size`, `--slotted-stat-card-value-font-size-lg`, `--slotted-stat-card-value-font-size-sm`, `--slotted-stat-card-value-line-height`, `--slotted-stat-card-value-line-height-lg`, `--slotted-stat-card-value-line-height-sm`, `--slotted-surface-raised`, `--slotted-surface-sunken`, `--slotted-target-comfortable`, `--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`
|
|
117
|
+
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-font-family-sans`, `--slotted-font-size-2xl`, `--slotted-font-size-3xl`, `--slotted-font-size-4xl`, `--slotted-font-size-md`, `--slotted-font-size-sm`, `--slotted-font-size-xl`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-semibold`, `--slotted-letter-spacing-tighter`, `--slotted-line-height-2xl`, `--slotted-line-height-3xl`, `--slotted-line-height-4xl`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-line-height-xl`, `--slotted-line-height-xs`, `--slotted-radius-lg`, `--slotted-radius-none`, `--slotted-shadow-md`, `--slotted-space-1`, `--slotted-space-11`, `--slotted-space-12`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-space-7`, `--slotted-space-8`, `--slotted-space-9`, `--slotted-sparkline-block-size`, `--slotted-sparkline-block-size-lg`, `--slotted-sparkline-block-size-sm`, `--slotted-stat-card-background`, `--slotted-stat-card-background-subtle`, `--slotted-stat-card-border-color`, `--slotted-stat-card-border-width`, `--slotted-stat-card-color`, `--slotted-stat-card-color-muted`, `--slotted-stat-card-delta-font-size`, `--slotted-stat-card-delta-font-size-lg`, `--slotted-stat-card-delta-font-size-sm`, `--slotted-stat-card-indicator-size`, `--slotted-stat-card-indicator-size-lg`, `--slotted-stat-card-label-font-size`, `--slotted-stat-card-label-font-size-lg`, `--slotted-stat-card-label-font-size-sm`, `--slotted-stat-card-label-line-height`, `--slotted-stat-card-label-line-height-lg`, `--slotted-stat-card-label-line-height-sm`, `--slotted-stat-card-min-inline-size`, `--slotted-stat-card-padding-block`, `--slotted-stat-card-padding-block-lg`, `--slotted-stat-card-padding-block-sm`, `--slotted-stat-card-padding-inline`, `--slotted-stat-card-padding-inline-lg`, `--slotted-stat-card-padding-inline-sm`, `--slotted-stat-card-prose-font-size`, `--slotted-stat-card-prose-font-size-lg`, `--slotted-stat-card-prose-line-height`, `--slotted-stat-card-prose-line-height-lg`, `--slotted-stat-card-radius`, `--slotted-stat-card-region-gap`, `--slotted-stat-card-region-gap-lg`, `--slotted-stat-card-region-gap-sm`, `--slotted-stat-card-shadow`, `--slotted-stat-card-shadow-elevated`, `--slotted-stat-card-trend-block-size`, `--slotted-stat-card-trend-block-size-lg`, `--slotted-stat-card-trend-block-size-sm`, `--slotted-stat-card-trend-gap`, `--slotted-stat-card-trend-gap-lg`, `--slotted-stat-card-trend-gap-sm`, `--slotted-stat-card-trend-inline-size`, `--slotted-stat-card-trend-inline-size-lg`, `--slotted-stat-card-trend-inline-size-sm`, `--slotted-stat-card-value-font-size`, `--slotted-stat-card-value-font-size-lg`, `--slotted-stat-card-value-font-size-sm`, `--slotted-stat-card-value-line-height`, `--slotted-stat-card-value-line-height-lg`, `--slotted-stat-card-value-line-height-sm`, `--slotted-surface-raised`, `--slotted-surface-sunken`, `--slotted-target-comfortable`, `--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`
|
|
118
118
|
|
|
119
119
|
## Examples
|
|
120
120
|
|
|
@@ -205,7 +205,7 @@ Excerpt — not a complete module
|
|
|
205
205
|
|
|
206
206
|
### The trend beside the figure, or under it
|
|
207
207
|
|
|
208
|
-
inline puts the sparkline in a column beside the value,
|
|
208
|
+
inline puts the sparkline in a column beside the value, as tall as the figure; stacked runs it to the card’s edges on the last row, level with the bottom of every card in the row. Under 220 pixels a card stacks on its own and drops the value one step.
|
|
209
209
|
|
|
210
210
|
Excerpt — not a complete module
|
|
211
211
|
|
|
@@ -216,7 +216,7 @@ Excerpt — not a complete module
|
|
|
216
216
|
|
|
217
217
|
### The layout is kept while the value is on its way
|
|
218
218
|
|
|
219
|
-
Every text part stands in with a placeholder of its own line height and the trend with a block the
|
|
219
|
+
Every text part stands in with a placeholder of its own line height and the trend with a block in the trend’s own box, so nothing moves when the numbers arrive; the previous value is not shown as if it were current.
|
|
220
220
|
|
|
221
221
|
Excerpt — not a complete module
|
|
222
222
|
|
|
@@ -752,6 +752,19 @@ function ye({ children: e, className: t, ref: n, render: i, style: a, ...o }) {
|
|
|
752
752
|
}) : i(c);
|
|
753
753
|
}
|
|
754
754
|
function be({ children: e, className: t, ref: n, render: i, style: a, ...o }) {
|
|
755
|
+
let s = r({
|
|
756
|
+
...o,
|
|
757
|
+
children: e,
|
|
758
|
+
className: t,
|
|
759
|
+
"data-part": "actions",
|
|
760
|
+
style: a
|
|
761
|
+
});
|
|
762
|
+
return i === void 0 ? /* @__PURE__ */ _("div", {
|
|
763
|
+
...s,
|
|
764
|
+
ref: n
|
|
765
|
+
}) : i(s);
|
|
766
|
+
}
|
|
767
|
+
function xe({ children: e, className: t, ref: n, render: i, style: a, ...o }) {
|
|
755
768
|
let s = B();
|
|
756
769
|
l(() => s.announce("description"), [s]);
|
|
757
770
|
let c = r({
|
|
@@ -767,7 +780,7 @@ function be({ children: e, className: t, ref: n, render: i, style: a, ...o }) {
|
|
|
767
780
|
ref: n
|
|
768
781
|
}) : i(c);
|
|
769
782
|
}
|
|
770
|
-
function
|
|
783
|
+
function Se({ children: e, className: t, inset: n, ref: i, render: a, style: o, ...s }) {
|
|
771
784
|
let c = B(), l = r({
|
|
772
785
|
...s,
|
|
773
786
|
...c.loading ? { "aria-busy": !0 } : {},
|
|
@@ -782,7 +795,7 @@ function xe({ children: e, className: t, inset: n, ref: i, render: a, style: o,
|
|
|
782
795
|
ref: i
|
|
783
796
|
}) : a(l);
|
|
784
797
|
}
|
|
785
|
-
function
|
|
798
|
+
function Ce({ children: e, className: t, ref: n, render: i, style: a, ...o }) {
|
|
786
799
|
let s = r({
|
|
787
800
|
...o,
|
|
788
801
|
children: e,
|
|
@@ -795,7 +808,7 @@ function Se({ children: e, className: t, ref: n, render: i, style: a, ...o }) {
|
|
|
795
808
|
ref: n
|
|
796
809
|
}) : i(s);
|
|
797
810
|
}
|
|
798
|
-
function
|
|
811
|
+
function we({ children: e, className: i, onClick: a, ref: o, render: s, style: c, value: l, ...u }) {
|
|
799
812
|
let d = B(), f = r({
|
|
800
813
|
"aria-label": d.t("close"),
|
|
801
814
|
...u,
|
|
@@ -814,4 +827,4 @@ function Ce({ children: e, className: i, onClick: a, ref: o, render: s, style: c
|
|
|
814
827
|
}) : s(f);
|
|
815
828
|
}
|
|
816
829
|
//#endregion
|
|
817
|
-
export {
|
|
830
|
+
export { Ce as a, ve as c, H as d, B as f, xe as i, ye as l, L as m, Se as n, Q as o, R as p, we as r, _e as s, be as t, K as u };
|
package/dist/drawer.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, c as t, d as n, f as r, i, l as a,
|
|
2
|
-
export {
|
|
1
|
+
import { a as e, c as t, d as n, f as r, i, l as a, m as o, n as s, o as c, p as l, r as u, s as d, t as f, u as p } from "./drawer-Du1aC1px.js";
|
|
2
|
+
export { n as Drawer, f as DrawerActions, s as DrawerBody, u as DrawerClose, l as DrawerDefaultsProvider, i as DrawerDescription, e as DrawerFooter, c as DrawerHeader, d as DrawerPanel, t as DrawerResizer, a as DrawerTitle, p as DrawerTrigger, r as useDrawer, o as useDrawerDefaults };
|