@slotted/react 0.1.0-beta.36 → 0.1.0-beta.38
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/calendar-CE3aMhdR.js +568 -0
- package/dist/calendar.js +1 -1
- package/dist/{cascader-DqrFX3Ob.js → cascader-CivJ76VR.js} +1 -1
- package/dist/cascader.js +1 -1
- package/dist/{chart-BaNN4AQj.js → chart-DwXqQZjQ.js} +234 -233
- package/dist/chart.js +1 -1
- package/dist/{checkbox-ruvmi9cK.js → checkbox-D3E4gzMe.js} +3 -3
- package/dist/{checkbox-group-Ben6o9Ze.js → checkbox-group-Dg5YN3fx.js} +2 -2
- package/dist/checkbox-group.js +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/{collapsible-D97FQrzs.js → collapsible-CT4_3aXm.js} +1 -0
- package/dist/collapsible.js +1 -1
- package/dist/{color-picker-DhKW6Uyc.js → color-picker-CaLcV-63.js} +2 -2
- package/dist/color-picker.js +1 -1
- package/dist/{column-manager-D2PXs80l.js → column-manager-BBGczWQe.js} +2 -2
- package/dist/column-manager.js +1 -1
- package/dist/{combobox-BIi7grOR.js → combobox-C2qlkTw6.js} +1 -1
- package/dist/combobox.js +1 -1
- package/dist/{currency-field-CAO2ZolW.js → currency-field-BO2P6FPd.js} +1 -1
- package/dist/currency-field.js +1 -1
- package/dist/{data-grid-DOMm7-ew.js → data-grid-BKuD1dvr.js} +15 -15
- package/dist/data-grid.js +1 -1
- package/dist/{data-list-DgXGmRQx.js → data-list-DovwQEMt.js} +1 -1
- package/dist/data-list.js +1 -1
- package/dist/{date-field-BEdt1xDF.js → date-field-CxubN_3u.js} +1 -1
- package/dist/date-field.js +1 -1
- package/dist/{date-picker-CQDvE1nB.js → date-picker-CF3WQxYe.js} +3 -3
- package/dist/date-picker.js +1 -1
- package/dist/{date-range-picker-B28tj1yV.js → date-range-picker-CvFs-nHN.js} +3 -3
- package/dist/date-range-picker.js +1 -1
- package/dist/{datetime-field-2tsqzWVH.js → datetime-field-GMIqBuTa.js} +1 -1
- package/dist/datetime-field.js +1 -1
- package/dist/{datetime-picker-CXLvcFxV.js → datetime-picker-lWc4HT6a.js} +3 -3
- package/dist/datetime-picker.js +1 -1
- package/dist/{datetime-range-picker-BAXiRa2S.js → datetime-range-picker-ynZUZreq.js} +3 -3
- package/dist/datetime-range-picker.js +1 -1
- package/dist/{detail-panel-DEZewVVV.js → detail-panel-DLgRhEFO.js} +3 -3
- package/dist/detail-panel.js +1 -1
- package/dist/docs/button.json +1 -1
- package/dist/docs/button.md +1 -1
- package/dist/docs/calendar.json +64 -2
- package/dist/docs/calendar.md +10 -1
- package/dist/docs/chart.json +1 -1
- package/dist/docs/chart.md +1 -1
- package/dist/docs/collapsible.json +2 -1
- package/dist/docs/collapsible.md +1 -1
- package/dist/docs/floating-panel.json +22 -4
- package/dist/docs/floating-panel.md +6 -4
- package/dist/docs/message.json +22 -0
- package/dist/docs/message.md +3 -1
- package/dist/docs/page.json +7 -0
- package/dist/docs/page.md +1 -0
- package/dist/docs/section.json +10 -2
- package/dist/docs/section.md +2 -1
- package/dist/docs/skills/theme-app/SKILL.md +1 -1
- package/dist/docs/table.json +28 -4
- package/dist/docs/table.md +7 -3
- package/dist/{entity-picker-D1MwJyvr.js → entity-picker-CwfA1wr_.js} +2 -2
- package/dist/entity-picker.js +1 -1
- package/dist/{event-calendar-CM302ec0.js → event-calendar-biSTH0yK.js} +1 -1
- package/dist/event-calendar.js +1 -1
- package/dist/{field-group-DQI8pfDT.js → field-group-7zV68b3d.js} +1 -1
- package/dist/field-group.js +1 -1
- package/dist/{field-BjF0c0U9.js → field-vOVzvq5t.js} +27 -27
- package/dist/field.js +1 -1
- package/dist/{filter-bar-CDEpYvq4.js → filter-bar-DUXtlPRn.js} +8 -8
- package/dist/filter-bar.js +1 -1
- package/dist/floating-panel-Dp6S4GgU.js +163 -0
- package/dist/floating-panel.js +1 -1
- package/dist/import-export-center-D0ckqmhq.js +867 -0
- package/dist/import-export-center.js +1 -1
- package/dist/index.js +94 -94
- package/dist/{listbox-BGJ2fEDO.js → listbox-CWU3DiEt.js} +1 -1
- package/dist/listbox.js +1 -1
- package/dist/{markdown-CfPMPahy.js → markdown-x59MHBAa.js} +1 -1
- package/dist/markdown.js +1 -1
- package/dist/{message-j4-apGnW.js → message-D1Dd6Y2k.js} +7 -5
- package/dist/message.js +1 -1
- package/dist/{multi-select-DSSDlWVZ.js → multi-select-DEd_92BC.js} +1 -1
- package/dist/multi-select.js +1 -1
- package/dist/{number-field-DzOcs9uG.js → number-field-BJKoidAE.js} +1 -1
- package/dist/number-field.js +1 -1
- package/dist/{otp-input-ult9fNdj.js → otp-input-Czz9Z6dQ.js} +1 -1
- package/dist/otp-input.js +1 -1
- package/dist/{prompt-composer-CUuAuR4h.js → prompt-composer-Lsfcz_i9.js} +1 -1
- package/dist/prompt-composer.js +1 -1
- package/dist/{radio-group-doL7tde1.js → radio-group-_ZRUgcI5.js} +2 -2
- package/dist/radio-group.js +1 -1
- package/dist/{rating-BtrkTAi0.js → rating-C6AkIIUi.js} +1 -1
- package/dist/rating.js +1 -1
- package/dist/roving-focus-BXshJYlW.js +149 -0
- package/dist/roving-focus.js +2 -2
- package/dist/{saved-views-fg5PoMgv.js → saved-views-BvRFgSdg.js} +2 -2
- package/dist/saved-views.js +1 -1
- package/dist/{section-OdQoVBnl.js → section-CQPQf6RU.js} +15 -2
- package/dist/section.js +2 -2
- package/dist/{segmented-control-CuwEdrZS.js → segmented-control-D52GeOlS.js} +2 -2
- package/dist/segmented-control.js +1 -1
- package/dist/{select-C85IKiKk.js → select-BkUuIVBK.js} +1 -1
- package/dist/select.js +1 -1
- package/dist/{slider-yhqotDtS.js → slider-DQqQ0skr.js} +1 -1
- package/dist/slider.js +1 -1
- package/dist/styles/app-shell.css +1 -1
- package/dist/styles/button.css +1 -1
- package/dist/styles/calendar.css +3 -1
- package/dist/styles/cascader.css +3 -3
- package/dist/styles/chart.css +2 -2
- package/dist/styles/checkbox-group.css +2 -2
- package/dist/styles/checkbox.css +2 -2
- package/dist/styles/collapsible.css +1 -1
- package/dist/styles/color-picker.css +2 -2
- package/dist/styles/column-manager.css +3 -3
- package/dist/styles/combobox.css +2 -2
- package/dist/styles/currency-field.css +2 -2
- package/dist/styles/dashboard-grid.css +2 -2
- package/dist/styles/data-grid.css +2 -2
- package/dist/styles/data-list.css +3 -3
- package/dist/styles/date-field.css +2 -2
- package/dist/styles/date-picker.css +3 -3
- package/dist/styles/date-range-picker.css +3 -3
- package/dist/styles/datetime-field.css +2 -2
- package/dist/styles/datetime-picker.css +3 -3
- package/dist/styles/datetime-range-picker.css +3 -3
- package/dist/styles/detail-panel.css +2 -2
- package/dist/styles/entity-picker.css +2 -2
- package/dist/styles/event-calendar.css +2 -2
- package/dist/styles/field-group.css +2 -2
- package/dist/styles/field.css +2 -2
- package/dist/styles/filter-bar.css +4 -4
- package/dist/styles/floating-panel.css +1 -1
- package/dist/styles/import-export-center.css +3 -3
- package/dist/styles/index.css +13 -13
- package/dist/styles/listbox.css +2 -2
- package/dist/styles/markdown.css +1 -1
- package/dist/styles/message.css +1 -1
- package/dist/styles/multi-select.css +2 -2
- package/dist/styles/notification-center.css +1 -1
- package/dist/styles/number-field.css +2 -2
- package/dist/styles/otp-input.css +2 -2
- package/dist/styles/page-header.css +1 -1
- package/dist/styles/page.css +1 -1
- package/dist/styles/prompt-composer.css +2 -2
- package/dist/styles/radio-group.css +2 -2
- package/dist/styles/rating.css +2 -2
- package/dist/styles/saved-views.css +3 -3
- package/dist/styles/section.css +1 -1
- package/dist/styles/segmented-control.css +2 -2
- package/dist/styles/select.css +2 -2
- package/dist/styles/side-navigation.css +1 -1
- package/dist/styles/slider.css +2 -2
- package/dist/styles/split-button.css +1 -1
- package/dist/styles/switch.css +2 -2
- package/dist/styles/table.css +3 -3
- package/dist/styles/tags-input.css +2 -2
- package/dist/styles/text-field.css +2 -2
- package/dist/styles/textarea.css +2 -2
- package/dist/styles/time-field.css +2 -2
- package/dist/styles/time-picker.css +2 -2
- package/dist/styles/time-range-picker.css +2 -2
- package/dist/styles/toggle-group.css +2 -2
- package/dist/styles/top-navigation.css +1 -1
- package/dist/styles/tour.css +1 -1
- package/dist/styles/transfer.css +3 -3
- package/dist/styles/upload.css +2 -2
- package/dist/styles/wizard.css +1 -1
- package/dist/styles.css +1 -1
- package/dist/{switch-C5WjteaS.js → switch-C2krbZHI.js} +1 -1
- package/dist/switch.js +1 -1
- package/dist/{table-D8-WlkFz.js → table-B04FiwYZ.js} +304 -289
- package/dist/table.js +2 -2
- package/dist/{tags-input-_cYR2JSK.js → tags-input-O87zTh7h.js} +1 -1
- package/dist/tags-input.js +1 -1
- package/dist/{text-field-DEm3MEe2.js → text-field-Cnjc7LB5.js} +1 -1
- package/dist/text-field.js +1 -1
- package/dist/{textarea-BRRn55L2.js → textarea-DcA7jwOM.js} +1 -1
- package/dist/textarea.js +1 -1
- package/dist/{time-field-C9dFaZOx.js → time-field-BanhrUvf.js} +1 -1
- package/dist/time-field.js +1 -1
- package/dist/{time-picker-Cw9NezUE.js → time-picker-B4-GsO24.js} +2 -2
- package/dist/time-picker.js +1 -1
- package/dist/{time-range-picker-DmmUqGjV.js → time-range-picker-DVOWN8PF.js} +2 -2
- package/dist/time-range-picker.js +1 -1
- package/dist/{toggle-group-DiKxYOwh.js → toggle-group-D7GQyNQP.js} +1 -1
- package/dist/toggle-group.js +1 -1
- package/dist/{transfer-CuNCXEoR.js → transfer-CuLlF_nY.js} +5 -5
- package/dist/transfer.js +1 -1
- package/dist/types/button/button.types.d.ts +2 -1
- package/dist/types/button/button.types.d.ts.map +1 -1
- package/dist/types/calendar/calendar-day-button.d.ts +12 -0
- package/dist/types/calendar/calendar-day-button.d.ts.map +1 -0
- package/dist/types/calendar/calendar-day-cell.d.ts +30 -0
- package/dist/types/calendar/calendar-day-cell.d.ts.map +1 -0
- package/dist/types/calendar/calendar-header.d.ts +20 -0
- package/dist/types/calendar/calendar-header.d.ts.map +1 -0
- package/dist/types/calendar/calendar-month-table.d.ts +18 -0
- package/dist/types/calendar/calendar-month-table.d.ts.map +1 -0
- package/dist/types/calendar/calendar-periods.d.ts +24 -0
- package/dist/types/calendar/calendar-periods.d.ts.map +1 -0
- package/dist/types/calendar/calendar.d.ts +1 -1
- package/dist/types/calendar/calendar.d.ts.map +1 -1
- package/dist/types/calendar/calendar.types.d.ts +37 -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.map +1 -1
- package/dist/types/collapsible/collapsible-parts.d.ts +1 -1
- package/dist/types/collapsible/collapsible-parts.d.ts.map +1 -1
- package/dist/types/collapsible/collapsible.types.d.ts +1 -0
- package/dist/types/collapsible/collapsible.types.d.ts.map +1 -1
- package/dist/types/floating-panel/floating-panel.d.ts +1 -1
- package/dist/types/floating-panel/floating-panel.d.ts.map +1 -1
- package/dist/types/floating-panel/floating-panel.types.d.ts +6 -2
- package/dist/types/floating-panel/floating-panel.types.d.ts.map +1 -1
- package/dist/types/message/message-parts.d.ts +4 -3
- package/dist/types/message/message-parts.d.ts.map +1 -1
- package/dist/types/message/message.types.d.ts +8 -0
- package/dist/types/message/message.types.d.ts.map +1 -1
- package/dist/types/roving-focus/index.d.ts +2 -0
- package/dist/types/roving-focus/index.d.ts.map +1 -1
- package/dist/types/roving-focus/roving-grid.d.ts +27 -0
- package/dist/types/roving-focus/roving-grid.d.ts.map +1 -0
- package/dist/types/section/index.d.ts +1 -1
- package/dist/types/section/index.d.ts.map +1 -1
- package/dist/types/section/section-parts.d.ts +6 -0
- package/dist/types/section/section-parts.d.ts.map +1 -1
- package/dist/types/table/index.d.ts +2 -2
- package/dist/types/table/index.d.ts.map +1 -1
- package/dist/types/table/table-defaults.d.ts.map +1 -1
- package/dist/types/table/table-parts.d.ts +7 -1
- package/dist/types/table/table-parts.d.ts.map +1 -1
- package/dist/types/table/table.d.ts +1 -1
- package/dist/types/table/table.d.ts.map +1 -1
- package/dist/types/table/table.types.d.ts +18 -3
- package/dist/types/table/table.types.d.ts.map +1 -1
- package/dist/{upload-Bpjlax3i.js → upload-DggJrkQ7.js} +1 -1
- package/dist/upload.js +1 -1
- package/package.json +6 -6
- package/dist/calendar-CjVx7amB.js +0 -511
- package/dist/floating-panel-84VLZdhL.js +0 -166
- package/dist/import-export-center-DdANj0_T.js +0 -867
- package/dist/roving-focus-C5-rVFzI.js +0 -89
|
@@ -11,7 +11,9 @@
|
|
|
11
11
|
"floatingPanel": {
|
|
12
12
|
"nativeElement": "section",
|
|
13
13
|
"defaults": {
|
|
14
|
-
"defaultPlace": "bottom-end"
|
|
14
|
+
"defaultPlace": "bottom-end",
|
|
15
|
+
"step": 8,
|
|
16
|
+
"largeStep": 32
|
|
15
17
|
},
|
|
16
18
|
"capabilities": [
|
|
17
19
|
"placement",
|
|
@@ -94,7 +96,7 @@
|
|
|
94
96
|
"type": "'top-start' | 'top-end' | 'bottom-start' | 'bottom-end'",
|
|
95
97
|
"defaultValue": "bottom-end",
|
|
96
98
|
"appliesTo": "FloatingPanel",
|
|
97
|
-
"description": "The corner the panel first
|
|
99
|
+
"description": "The corner the panel stands in until its first move, in the reading direction, --slotted-floating-panel-inset from the edges"
|
|
98
100
|
},
|
|
99
101
|
{
|
|
100
102
|
"name": "place",
|
|
@@ -103,12 +105,26 @@
|
|
|
103
105
|
"appliesTo": "FloatingPanel",
|
|
104
106
|
"description": "A controlled place, the top-left corner in viewport pixels, drawn inside the viewport"
|
|
105
107
|
},
|
|
108
|
+
{
|
|
109
|
+
"name": "step",
|
|
110
|
+
"type": "number",
|
|
111
|
+
"defaultValue": "8",
|
|
112
|
+
"appliesTo": "FloatingPanel",
|
|
113
|
+
"description": "Pixels an arrow key on the grip moves the panel"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"name": "largeStep",
|
|
117
|
+
"type": "number",
|
|
118
|
+
"defaultValue": "32",
|
|
119
|
+
"appliesTo": "FloatingPanel",
|
|
120
|
+
"description": "Pixels an arrow key with Shift moves it"
|
|
121
|
+
},
|
|
106
122
|
{
|
|
107
123
|
"name": "onPlaceChange",
|
|
108
124
|
"type": "(place) => void",
|
|
109
125
|
"defaultValue": "—",
|
|
110
126
|
"appliesTo": "FloatingPanel",
|
|
111
|
-
"description": "Fired at the end of a move, by pointer or by key, for the application to store"
|
|
127
|
+
"description": "Fired once at the end of a move, by pointer or by key, for the application to store"
|
|
112
128
|
},
|
|
113
129
|
{
|
|
114
130
|
"name": "messages",
|
|
@@ -142,6 +158,7 @@
|
|
|
142
158
|
"--slotted-control-inner-size-md",
|
|
143
159
|
"--slotted-floating-panel-backdrop-filter",
|
|
144
160
|
"--slotted-floating-panel-border-color",
|
|
161
|
+
"--slotted-floating-panel-inset",
|
|
145
162
|
"--slotted-floating-panel-radius",
|
|
146
163
|
"--slotted-floating-panel-rule-color",
|
|
147
164
|
"--slotted-floating-panel-shadow",
|
|
@@ -159,6 +176,7 @@
|
|
|
159
176
|
"--slotted-space-2",
|
|
160
177
|
"--slotted-space-3",
|
|
161
178
|
"--slotted-space-5",
|
|
179
|
+
"--slotted-space-6",
|
|
162
180
|
"--slotted-surface-raised",
|
|
163
181
|
"--slotted-text",
|
|
164
182
|
"--slotted-text-muted",
|
|
@@ -177,7 +195,7 @@
|
|
|
177
195
|
{
|
|
178
196
|
"id": "keyboard",
|
|
179
197
|
"title": "Moved by the keyboard, and stored where it was left",
|
|
180
|
-
"note": "The grip takes focus; an arrow key moves the panel eight pixels, thirty-two with Shift. onPlaceChange reports the end of every move, so the application stores the place and hands it back as place.",
|
|
198
|
+
"note": "The grip takes focus; an arrow key moves the panel by step, eight pixels, and by largeStep, thirty-two, with Shift. onPlaceChange reports the end of every move, so the application stores the place and hands it back as place.",
|
|
181
199
|
"language": "tsx",
|
|
182
200
|
"source": "<FloatingPanel onOpenChange={setOpen} onPlaceChange={setPlace} open={open} place={place}>\n …\n</FloatingPanel>;\n",
|
|
183
201
|
"verdict": "excerpt"
|
|
@@ -46,9 +46,11 @@ Excerpt — not a complete module
|
|
|
46
46
|
| --- | --- | --- | --- | --- |
|
|
47
47
|
| `open` | `boolean` | — | FloatingPanel | Whether the panel is drawn |
|
|
48
48
|
| `onOpenChange` | `(open: boolean) => void` | — | FloatingPanel | Asked with false on Escape inside the panel and on its close control |
|
|
49
|
-
| `defaultPlace` | `'top-start' \| 'top-end' \| 'bottom-start' \| 'bottom-end'` | bottom-end | FloatingPanel | The corner the panel first
|
|
49
|
+
| `defaultPlace` | `'top-start' \| 'top-end' \| 'bottom-start' \| 'bottom-end'` | bottom-end | FloatingPanel | The corner the panel stands in until its first move, in the reading direction, --slotted-floating-panel-inset from the edges |
|
|
50
50
|
| `place` | `{ x: number; y: number }` | — | FloatingPanel | A controlled place, the top-left corner in viewport pixels, drawn inside the viewport |
|
|
51
|
-
| `
|
|
51
|
+
| `step` | `number` | 8 | FloatingPanel | Pixels an arrow key on the grip moves the panel |
|
|
52
|
+
| `largeStep` | `number` | 32 | FloatingPanel | Pixels an arrow key with Shift moves it |
|
|
53
|
+
| `onPlaceChange` | `(place) => void` | — | FloatingPanel | Fired once at the end of a move, by pointer or by key, for the application to store |
|
|
52
54
|
| `messages` | `PartialMessages<FloatingPanelMessages>` | — | FloatingPanel | Words laid over the catalog of the language in force: close, move |
|
|
53
55
|
| `native props` | `section, div, h2, button attributes` | — | every part | Reach the element each part renders |
|
|
54
56
|
|
|
@@ -61,13 +63,13 @@ Excerpt — not a complete module
|
|
|
61
63
|
|
|
62
64
|
## Tokens
|
|
63
65
|
|
|
64
|
-
`--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-inner-size-md`, `--slotted-floating-panel-backdrop-filter`, `--slotted-floating-panel-border-color`, `--slotted-floating-panel-radius`, `--slotted-floating-panel-rule-color`, `--slotted-floating-panel-shadow`, `--slotted-floating-panel-surface`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-family-heading`, `--slotted-font-family-sans`, `--slotted-font-size-sm`, `--slotted-font-weight-semibold`, `--slotted-radius-lg`, `--slotted-radius-sm`, `--slotted-shadow-lg`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-5`, `--slotted-surface-raised`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-popover`
|
|
66
|
+
`--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-inner-size-md`, `--slotted-floating-panel-backdrop-filter`, `--slotted-floating-panel-border-color`, `--slotted-floating-panel-inset`, `--slotted-floating-panel-radius`, `--slotted-floating-panel-rule-color`, `--slotted-floating-panel-shadow`, `--slotted-floating-panel-surface`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-family-heading`, `--slotted-font-family-sans`, `--slotted-font-size-sm`, `--slotted-font-weight-semibold`, `--slotted-radius-lg`, `--slotted-radius-sm`, `--slotted-shadow-lg`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-surface-raised`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-popover`
|
|
65
67
|
|
|
66
68
|
## Examples
|
|
67
69
|
|
|
68
70
|
### Moved by the keyboard, and stored where it was left
|
|
69
71
|
|
|
70
|
-
The grip takes focus; an arrow key moves the panel eight pixels, thirty-two with Shift. onPlaceChange reports the end of every move, so the application stores the place and hands it back as place.
|
|
72
|
+
The grip takes focus; an arrow key moves the panel by step, eight pixels, and by largeStep, thirty-two, with Shift. onPlaceChange reports the end of every move, so the application stores the place and hands it back as place.
|
|
71
73
|
|
|
72
74
|
Excerpt — not a complete module
|
|
73
75
|
|
package/dist/docs/message.json
CHANGED
|
@@ -311,6 +311,20 @@
|
|
|
311
311
|
"appliesTo": "MessageReceipt",
|
|
312
312
|
"description": "The receipt’s own status"
|
|
313
313
|
},
|
|
314
|
+
{
|
|
315
|
+
"name": "variant",
|
|
316
|
+
"type": "'bubble' | 'plain'",
|
|
317
|
+
"defaultValue": "bubble",
|
|
318
|
+
"appliesTo": "MessageActivity",
|
|
319
|
+
"description": "bubble draws a raised frame around the steps; plain draws the steps alone, with no border, ground or inset, for a turn that stands on a rail"
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
"name": "shimmer",
|
|
323
|
+
"type": "boolean",
|
|
324
|
+
"defaultValue": "true",
|
|
325
|
+
"appliesTo": "MessageActivity",
|
|
326
|
+
"description": "Whether a band of light travels across the words of the current step; without it they stand in the plain ink, which the tile of an icon already sets apart"
|
|
327
|
+
},
|
|
314
328
|
{
|
|
315
329
|
"name": "status",
|
|
316
330
|
"type": "'complete' | 'current' | 'pending'",
|
|
@@ -675,7 +689,15 @@
|
|
|
675
689
|
"--slotted-font-weight-semibold",
|
|
676
690
|
"--slotted-line-height-md",
|
|
677
691
|
"--slotted-line-height-xs",
|
|
692
|
+
"--slotted-message-activity-color-complete",
|
|
693
|
+
"--slotted-message-activity-gap",
|
|
694
|
+
"--slotted-message-activity-icon-border-color-current",
|
|
695
|
+
"--slotted-message-activity-icon-glyph-size",
|
|
696
|
+
"--slotted-message-activity-icon-radius",
|
|
678
697
|
"--slotted-message-activity-icon-size",
|
|
698
|
+
"--slotted-message-activity-icon-surface",
|
|
699
|
+
"--slotted-message-activity-rise",
|
|
700
|
+
"--slotted-message-activity-step-gap",
|
|
679
701
|
"--slotted-message-avatar-size",
|
|
680
702
|
"--slotted-message-bubble-padding-block",
|
|
681
703
|
"--slotted-message-bubble-padding-inline",
|
package/dist/docs/message.md
CHANGED
|
@@ -82,6 +82,8 @@ Excerpt — not a complete module
|
|
|
82
82
|
| `onRetry` | `(request) => void` | — | Message | Asks to send the message again; BubbleRetry calls it |
|
|
83
83
|
| `messages` | `PartialMessages<MessageMessages>` | — | Message | Words laid over the language in force, key by key, for the row and every part and bubble inside it; a bubble outside a row speaks the language in force |
|
|
84
84
|
| `status` | `'sending' \| 'sent' \| 'delivered' \| 'read' \| 'failed'` | the row’s | MessageReceipt | The receipt’s own status |
|
|
85
|
+
| `variant` | `'bubble' \| 'plain'` | bubble | MessageActivity | bubble draws a raised frame around the steps; plain draws the steps alone, with no border, ground or inset, for a turn that stands on a rail |
|
|
86
|
+
| `shimmer` | `boolean` | true | MessageActivity | Whether a band of light travels across the words of the current step; without it they stand in the plain ink, which the tile of an icon already sets apart |
|
|
85
87
|
| `status` | `'complete' \| 'current' \| 'pending'` | current | MessageActivityStep | Done with a tick, in progress with the ring, or waiting |
|
|
86
88
|
| `icon` | `ReactNode` | — | MessageActivityStep | The icon of the step source, drawn in a tile before the words in place of the status mark. The tile is edged in the accent while the step is current and holds the tick once it is complete |
|
|
87
89
|
| `dateTime` | `string` | — | MessageTime | The time element’s own machine-readable value |
|
|
@@ -159,7 +161,7 @@ Excerpt — not a complete module
|
|
|
159
161
|
|
|
160
162
|
## Tokens
|
|
161
163
|
|
|
162
|
-
`--slotted-avatar-size-md`, `--slotted-avatar-size-sm`, `--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-gap-md`, `--slotted-control-icon-size-sm`, `--slotted-control-inner-size-md`, `--slotted-control-radius`, `--slotted-disabled-foreground`, `--slotted-duration-long`, `--slotted-duration-loop`, `--slotted-duration-loop-slow`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-emphasized`, `--slotted-easing-enter`, `--slotted-easing-exit`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-family-sans`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-regular`, `--slotted-font-weight-semibold`, `--slotted-line-height-md`, `--slotted-line-height-xs`, `--slotted-message-activity-icon-size`, `--slotted-message-avatar-size`, `--slotted-message-bubble-padding-block`, `--slotted-message-bubble-padding-inline`, `--slotted-message-bubble-radius`, `--slotted-message-bubble-radius-joined`, `--slotted-message-bubble-share`, `--slotted-message-column-gap`, `--slotted-message-retry-state-layer`, `--slotted-message-run-gap`, `--slotted-message-stack-gap`, `--slotted-message-state-layer-active`, `--slotted-message-state-layer-hover`, `--slotted-message-thread-avatar-size`, `--slotted-radius-full`, `--slotted-radius-md`, `--slotted-radius-sm`, `--slotted-shadow-sm`, `--slotted-shadow-xs`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-surface`, `--slotted-surface-raised`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-border`, `--slotted-tone-accent-on-solid`, `--slotted-tone-accent-solid`, `--slotted-tone-accent-surface`, `--slotted-tone-accent-text`, `--slotted-tone-danger-border`, `--slotted-tone-danger-on-solid`, `--slotted-tone-danger-solid`, `--slotted-tone-danger-solid-active`, `--slotted-tone-danger-surface`, `--slotted-tone-danger-text`, `--slotted-tone-info-border`, `--slotted-tone-info-on-solid`, `--slotted-tone-info-solid`, `--slotted-tone-info-surface`, `--slotted-tone-info-text`, `--slotted-tone-secondary-on-solid`, `--slotted-tone-secondary-solid`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-tone-secondary-surface`, `--slotted-tone-success-border`, `--slotted-tone-success-on-solid`, `--slotted-tone-success-solid`, `--slotted-tone-success-surface`, `--slotted-tone-success-text`, `--slotted-tone-warning-border`, `--slotted-tone-warning-on-solid`, `--slotted-tone-warning-solid`, `--slotted-tone-warning-surface`, `--slotted-tone-warning-text`
|
|
164
|
+
`--slotted-avatar-size-md`, `--slotted-avatar-size-sm`, `--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-gap-md`, `--slotted-control-icon-size-sm`, `--slotted-control-inner-size-md`, `--slotted-control-radius`, `--slotted-disabled-foreground`, `--slotted-duration-long`, `--slotted-duration-loop`, `--slotted-duration-loop-slow`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-emphasized`, `--slotted-easing-enter`, `--slotted-easing-exit`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-family-sans`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-regular`, `--slotted-font-weight-semibold`, `--slotted-line-height-md`, `--slotted-line-height-xs`, `--slotted-message-activity-color-complete`, `--slotted-message-activity-gap`, `--slotted-message-activity-icon-border-color-current`, `--slotted-message-activity-icon-glyph-size`, `--slotted-message-activity-icon-radius`, `--slotted-message-activity-icon-size`, `--slotted-message-activity-icon-surface`, `--slotted-message-activity-rise`, `--slotted-message-activity-step-gap`, `--slotted-message-avatar-size`, `--slotted-message-bubble-padding-block`, `--slotted-message-bubble-padding-inline`, `--slotted-message-bubble-radius`, `--slotted-message-bubble-radius-joined`, `--slotted-message-bubble-share`, `--slotted-message-column-gap`, `--slotted-message-retry-state-layer`, `--slotted-message-run-gap`, `--slotted-message-stack-gap`, `--slotted-message-state-layer-active`, `--slotted-message-state-layer-hover`, `--slotted-message-thread-avatar-size`, `--slotted-radius-full`, `--slotted-radius-md`, `--slotted-radius-sm`, `--slotted-shadow-sm`, `--slotted-shadow-xs`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-surface`, `--slotted-surface-raised`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-border`, `--slotted-tone-accent-on-solid`, `--slotted-tone-accent-solid`, `--slotted-tone-accent-surface`, `--slotted-tone-accent-text`, `--slotted-tone-danger-border`, `--slotted-tone-danger-on-solid`, `--slotted-tone-danger-solid`, `--slotted-tone-danger-solid-active`, `--slotted-tone-danger-surface`, `--slotted-tone-danger-text`, `--slotted-tone-info-border`, `--slotted-tone-info-on-solid`, `--slotted-tone-info-solid`, `--slotted-tone-info-surface`, `--slotted-tone-info-text`, `--slotted-tone-secondary-on-solid`, `--slotted-tone-secondary-solid`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-tone-secondary-surface`, `--slotted-tone-success-border`, `--slotted-tone-success-on-solid`, `--slotted-tone-success-solid`, `--slotted-tone-success-surface`, `--slotted-tone-success-text`, `--slotted-tone-warning-border`, `--slotted-tone-warning-on-solid`, `--slotted-tone-warning-solid`, `--slotted-tone-warning-surface`, `--slotted-tone-warning-text`
|
|
163
165
|
|
|
164
166
|
## Examples
|
|
165
167
|
|
package/dist/docs/page.json
CHANGED
|
@@ -221,6 +221,13 @@
|
|
|
221
221
|
"appliesTo": "a subtree",
|
|
222
222
|
"description": "The five decisions an application takes once. A page that states any of them itself still wins"
|
|
223
223
|
},
|
|
224
|
+
{
|
|
225
|
+
"name": "--slotted-page-gap, --slotted-page-section-space",
|
|
226
|
+
"type": "runtime properties on the body",
|
|
227
|
+
"defaultValue": "—",
|
|
228
|
+
"appliesTo": "a stack of blocks deeper in the page: a tab panel, a column beside an aside",
|
|
229
|
+
"description": "The distances between two blocks and above a section without a surface, as the page resolves them, the compact step below 600 pixels included: gap: var(--slotted-page-gap) stacks blocks as the body stacks its own"
|
|
230
|
+
},
|
|
224
231
|
{
|
|
225
232
|
"name": "--slotted-page-sticky-top, --slotted-page-sticky-bottom, --slotted-page-scrollport-block-size",
|
|
226
233
|
"type": "runtime properties on the scroller",
|
package/dist/docs/page.md
CHANGED
|
@@ -49,6 +49,7 @@ Excerpt — not a complete module
|
|
|
49
49
|
| `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]") |
|
|
50
50
|
| `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 |
|
|
51
51
|
| `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 |
|
|
52
|
+
| `--slotted-page-gap, --slotted-page-section-space` | `runtime properties on the body` | — | a stack of blocks deeper in the page: a tab panel, a column beside an aside | The distances between two blocks and above a section without a surface, as the page resolves them, the compact step below 600 pixels included: gap: var(--slotted-page-gap) stacks blocks as the body stacks its own |
|
|
52
53
|
| `--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 |
|
|
53
54
|
|
|
54
55
|
## Axes and defaults
|
package/dist/docs/section.json
CHANGED
|
@@ -66,14 +66,15 @@
|
|
|
66
66
|
"tags",
|
|
67
67
|
"description",
|
|
68
68
|
"actions",
|
|
69
|
-
"body"
|
|
69
|
+
"body",
|
|
70
|
+
"bleed"
|
|
70
71
|
]
|
|
71
72
|
}
|
|
72
73
|
},
|
|
73
74
|
"docs": {
|
|
74
75
|
"section": {
|
|
75
76
|
"imports": {
|
|
76
|
-
"source": "import { Section, SectionHeader, SectionTitle, SectionEyebrow, SectionHeading, SectionTags, SectionDescription, SectionActions, SectionBody, SectionDefaultsProvider } from '@slotted/react';"
|
|
77
|
+
"source": "import { Section, SectionHeader, SectionTitle, SectionEyebrow, SectionHeading, SectionTags, SectionDescription, SectionActions, SectionBody, SectionBleed, SectionDefaultsProvider } from '@slotted/react';"
|
|
77
78
|
},
|
|
78
79
|
"anatomy": [
|
|
79
80
|
{
|
|
@@ -137,6 +138,13 @@
|
|
|
137
138
|
"element": "div",
|
|
138
139
|
"required": true,
|
|
139
140
|
"purpose": "The content, wrapped one HeadingLevel deeper, so a section inside it takes the next rank without being told."
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"part": "bleed",
|
|
144
|
+
"parent": "body",
|
|
145
|
+
"element": "div",
|
|
146
|
+
"required": false,
|
|
147
|
+
"purpose": "A child of the body that bleeds alone, in the body or in the one stack the body holds: in a surface section it runs to the panel’s inline edges, and to its lower corners when it is the last of the panel, while the rest of the body keeps the inset."
|
|
140
148
|
}
|
|
141
149
|
],
|
|
142
150
|
"api": [
|
package/dist/docs/section.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
## Import
|
|
7
7
|
|
|
8
8
|
```tsx
|
|
9
|
-
import { Section, SectionHeader, SectionTitle, SectionEyebrow, SectionHeading, SectionTags, SectionDescription, SectionActions, SectionBody, SectionDefaultsProvider } from '@slotted/react';
|
|
9
|
+
import { Section, SectionHeader, SectionTitle, SectionEyebrow, SectionHeading, SectionTags, SectionDescription, SectionActions, SectionBody, SectionBleed, SectionDefaultsProvider } from '@slotted/react';
|
|
10
10
|
```
|
|
11
11
|
|
|
12
12
|
## Minimal example
|
|
@@ -37,6 +37,7 @@ Excerpt — not a complete module
|
|
|
37
37
|
| `description` | `title` | p | no |
|
|
38
38
|
| `actions` | `header` | div | no |
|
|
39
39
|
| `body` | `root` | div | yes |
|
|
40
|
+
| `bleed` | `body` | div | no |
|
|
40
41
|
|
|
41
42
|
## Props
|
|
42
43
|
|
|
@@ -19,7 +19,7 @@ Take the first row that reaches the change.
|
|
|
19
19
|
| How tight controls and rows are | the density: `comfortable`, `compact`, `dense` | `data-slotted-density`, or the density of the `ThemeScope` component from `@slotted/react/theme` |
|
|
20
20
|
| How round corners are, chosen by the reader | the corners: `square`, `soft`, `standard`, `round` | `data-slotted-corners`, or the corners of the `ThemeScope` component from `@slotted/react/theme`; the theme's `corners` holds each radius scale |
|
|
21
21
|
| How deep a scheme's grounds sit, or how far each layer steps from the one below | the recipe: one derivation per token per scheme | the theme's `recipe`, spread from the base theme's, as below; `themeConformance` still checks every contrast |
|
|
22
|
-
| A
|
|
22
|
+
| A scheme's values chosen by the reader: an OLED black page, flat shadows | a variant: per scheme, a derivation or a CSS value per token | the theme's `variants`; `data-slotted-variant-<axis>` set to the value; `themeConformance` checks each value |
|
|
23
23
|
| Spacing, corners, type, lines, shadows or motion | a token of a group in `../../tokens.md` | the theme's `base`; `schemes` for a value per scheme; `densities` per density |
|
|
24
24
|
| One family's look | a token the family's page lists under Tokens | the theme's `components` |
|
|
25
25
|
| What no token reaches | a theme rule | the theme's `rules` |
|
package/dist/docs/table.json
CHANGED
|
@@ -69,9 +69,14 @@
|
|
|
69
69
|
"center",
|
|
70
70
|
"end"
|
|
71
71
|
],
|
|
72
|
+
"expanderRoom": [
|
|
73
|
+
"auto",
|
|
74
|
+
"always"
|
|
75
|
+
],
|
|
72
76
|
"guides": [
|
|
73
77
|
true,
|
|
74
|
-
false
|
|
78
|
+
false,
|
|
79
|
+
"branch"
|
|
75
80
|
]
|
|
76
81
|
},
|
|
77
82
|
"members": {
|
|
@@ -96,6 +101,7 @@
|
|
|
96
101
|
"blockAlign": "center",
|
|
97
102
|
"stickyFooter": false,
|
|
98
103
|
"searchThreshold": 8,
|
|
104
|
+
"expanderRoom": "auto",
|
|
99
105
|
"guides": true
|
|
100
106
|
},
|
|
101
107
|
"capabilities": [
|
|
@@ -149,6 +155,7 @@
|
|
|
149
155
|
"filter-actions",
|
|
150
156
|
"selection",
|
|
151
157
|
"expander",
|
|
158
|
+
"mark",
|
|
152
159
|
"detail",
|
|
153
160
|
"group-row",
|
|
154
161
|
"group-header",
|
|
@@ -164,7 +171,7 @@
|
|
|
164
171
|
"docs": {
|
|
165
172
|
"table": {
|
|
166
173
|
"imports": {
|
|
167
|
-
"source": "import {\n Table,\n TableBody,\n TableCaption,\n TableCell,\n TableColumnActions,\n TableColumnHeader,\n TableContent,\n TableDefaultsProvider,\n TableDetail,\n TableEmpty,\n TableExpander,\n TableFooter,\n TableGroupRow,\n TableHead,\n TableLoader,\n TableRow,\n TableRowHeader,\n TableSelect,\n TableSelectAll,\n TableSort,\n TableSummary,\n} from '@slotted/react';"
|
|
174
|
+
"source": "import {\n Table,\n TableBody,\n TableCaption,\n TableCell,\n TableColumnActions,\n TableColumnHeader,\n TableContent,\n TableDefaultsProvider,\n TableDetail,\n TableEmpty,\n TableExpander,\n TableFooter,\n TableGroupRow,\n TableHead,\n TableLoader,\n TableMark,\n TableRow,\n TableRowHeader,\n TableSelect,\n TableSelectAll,\n TableSort,\n TableSummary,\n} from '@slotted/react';"
|
|
168
175
|
},
|
|
169
176
|
"anatomy": [
|
|
170
177
|
{
|
|
@@ -329,6 +336,12 @@
|
|
|
329
336
|
"required": false,
|
|
330
337
|
"purpose": "Opens and closes one row detail. It carries aria-expanded, and aria-controls naming the detail row while that row is open. It is the APG Disclosure pattern, borrowed whole."
|
|
331
338
|
},
|
|
339
|
+
{
|
|
340
|
+
"part": "mark",
|
|
341
|
+
"element": "span",
|
|
342
|
+
"required": false,
|
|
343
|
+
"purpose": "A record’s leading mark: an avatar, a logo, an icon. One box per level, --slotted-table-mark-size and a step smaller at a child, which the steps of an avatar up to md measure. Under guides=\"branch\" the rail of the children starts at its foot."
|
|
344
|
+
},
|
|
332
345
|
{
|
|
333
346
|
"part": "detail",
|
|
334
347
|
"element": "tr",
|
|
@@ -444,10 +457,17 @@
|
|
|
444
457
|
},
|
|
445
458
|
{
|
|
446
459
|
"name": "guides",
|
|
447
|
-
"type": "boolean",
|
|
460
|
+
"type": "boolean | 'branch'",
|
|
448
461
|
"defaultValue": "true",
|
|
449
462
|
"appliesTo": "Table",
|
|
450
|
-
"description": "A line per ancestor level beside the rows that name a parent, on the center of the expander one level up"
|
|
463
|
+
"description": "A line per ancestor level beside the rows that name a parent, on the center of the expander one level up. branch draws a rail from the foot of the parent’s mark (TableMark, or the expander), a branch to each child and an elbow at the last, and keeps the marks of a level in one column"
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
"name": "expanderRoom",
|
|
467
|
+
"type": "'auto' | 'always'",
|
|
468
|
+
"defaultValue": "auto",
|
|
469
|
+
"appliesTo": "Table",
|
|
470
|
+
"description": "Under guides=\"branch\", whether the marks of the top level keep the room of an expander before them. auto keeps it while a row of the table has one; always keeps it in a table where no row folds, so the marks of several tables, and of a table and its skeleton, stand in one column"
|
|
451
471
|
},
|
|
452
472
|
{
|
|
453
473
|
"name": "stickyHeader",
|
|
@@ -838,6 +858,7 @@
|
|
|
838
858
|
"--slotted-radius-md",
|
|
839
859
|
"--slotted-radius-sm",
|
|
840
860
|
"--slotted-shadow-xs",
|
|
861
|
+
"--slotted-space-1",
|
|
841
862
|
"--slotted-space-2",
|
|
842
863
|
"--slotted-space-4",
|
|
843
864
|
"--slotted-space-5",
|
|
@@ -846,6 +867,7 @@
|
|
|
846
867
|
"--slotted-table-border-color",
|
|
847
868
|
"--slotted-table-border-color-strong",
|
|
848
869
|
"--slotted-table-border-width",
|
|
870
|
+
"--slotted-table-branch-size",
|
|
849
871
|
"--slotted-table-caption-surface",
|
|
850
872
|
"--slotted-table-cell-padding-block",
|
|
851
873
|
"--slotted-table-cell-padding-inline",
|
|
@@ -865,6 +887,8 @@
|
|
|
865
887
|
"--slotted-table-header-surface",
|
|
866
888
|
"--slotted-table-header-surface-hover",
|
|
867
889
|
"--slotted-table-icon-size",
|
|
890
|
+
"--slotted-table-mark-child-size",
|
|
891
|
+
"--slotted-table-mark-size",
|
|
868
892
|
"--slotted-table-radius",
|
|
869
893
|
"--slotted-table-row-color-selected",
|
|
870
894
|
"--slotted-table-row-min-block-size",
|
package/dist/docs/table.md
CHANGED
|
@@ -22,6 +22,7 @@ import {
|
|
|
22
22
|
TableGroupRow,
|
|
23
23
|
TableHead,
|
|
24
24
|
TableLoader,
|
|
25
|
+
TableMark,
|
|
25
26
|
TableRow,
|
|
26
27
|
TableRowHeader,
|
|
27
28
|
TableSelect,
|
|
@@ -160,6 +161,7 @@ export default function TableBasic() {
|
|
|
160
161
|
| `filter-actions` | div | no |
|
|
161
162
|
| `selection` | th or td | no |
|
|
162
163
|
| `expander` | button | no |
|
|
164
|
+
| `mark` | span | no |
|
|
163
165
|
| `detail` | tr | no |
|
|
164
166
|
| `group-row` | tr | no |
|
|
165
167
|
| `group-header` | th | no |
|
|
@@ -182,7 +184,8 @@ export default function TableBasic() {
|
|
|
182
184
|
| `variant` | `'plain' \| 'ruled' \| 'framed'` | ruled | Table | How much of a frame the set is given |
|
|
183
185
|
| `edges` | `'inset' \| 'flush'` | inset | Table | Whether the first and the last column keep the cell inset on their outer side. flush lines a plain or ruled table up with the heading around it, leaving the theme’s --slotted-table-edge-inset (0 unless set); a framed table ignores it. Sticky and selection columns keep their own offsets |
|
|
184
186
|
| `striped` | `boolean` | false | Table | A tinted ground on every second record |
|
|
185
|
-
| `guides` | `boolean` | true | Table | A line per ancestor level beside the rows that name a parent, on the center of the expander one level up |
|
|
187
|
+
| `guides` | `boolean \| 'branch'` | true | Table | A line per ancestor level beside the rows that name a parent, on the center of the expander one level up. branch draws a rail from the foot of the parent’s mark (TableMark, or the expander), a branch to each child and an elbow at the last, and keeps the marks of a level in one column |
|
|
188
|
+
| `expanderRoom` | `'auto' \| 'always'` | auto | Table | Under guides="branch", whether the marks of the top level keep the room of an expander before them. auto keeps it while a row of the table has one; always keeps it in a table where no row folds, so the marks of several tables, and of a table and its skeleton, stand in one column |
|
|
186
189
|
| `stickyHeader` | `boolean` | false | Table | Whether the header stays while the body scrolls |
|
|
187
190
|
| `stickyFooter` | `boolean` | false | Table | Whether the summary rows stay while the body scrolls. It pins the tfoot and not the footer bar, which never scrolls. |
|
|
188
191
|
| `stickyTo` | `'scroll' \| 'page'` | scroll | Table | What the header stays inside: this table own scroller, or whatever scrolls outside it. page releases the scroller, so the table stops scrolling sideways in its frame. |
|
|
@@ -257,7 +260,8 @@ export default function TableBasic() {
|
|
|
257
260
|
| `text` | `wrap`, `truncate`, `nowrap` | `wrap` |
|
|
258
261
|
| `sticky` | `start`, `end` | `start` |
|
|
259
262
|
| `blockAlign` | `start`, `center`, `end` | `center` |
|
|
260
|
-
| `
|
|
263
|
+
| `expanderRoom` | `auto`, `always` | `auto` |
|
|
264
|
+
| `guides` | `true`, `false`, `branch` | `true` |
|
|
261
265
|
|
|
262
266
|
## Rules
|
|
263
267
|
|
|
@@ -273,7 +277,7 @@ export default function TableBasic() {
|
|
|
273
277
|
|
|
274
278
|
## Tokens
|
|
275
279
|
|
|
276
|
-
`--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-font-family`, `--slotted-control-font-size-md`, `--slotted-control-gap-md`, `--slotted-control-height-md`, `--slotted-control-icon-size-md`, `--slotted-control-padding-inline-md`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-foreground`, `--slotted-duration-short`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-regular`, `--slotted-font-weight-semibold`, `--slotted-ground`, `--slotted-line-height-md`, `--slotted-radius-md`, `--slotted-radius-sm`, `--slotted-shadow-xs`, `--slotted-space-2`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-9`, `--slotted-surface`, `--slotted-table-border-color`, `--slotted-table-border-color-strong`, `--slotted-table-border-width`, `--slotted-table-caption-surface`, `--slotted-table-cell-padding-block`, `--slotted-table-cell-padding-inline`, `--slotted-table-color`, `--slotted-table-color-muted`, `--slotted-table-column-actions-size`, `--slotted-table-control-radius`, `--slotted-table-edge-inset`, `--slotted-table-font-family`, `--slotted-table-font-size`, `--slotted-table-gap`, `--slotted-table-group-color`, `--slotted-table-group-sticky-offset`, `--slotted-table-group-surface`, `--slotted-table-guide-color`, `--slotted-table-header-backdrop-filter`, `--slotted-table-header-surface`, `--slotted-table-header-surface-hover`, `--slotted-table-icon-size`, `--slotted-table-radius`, `--slotted-table-row-color-selected`, `--slotted-table-row-min-block-size`, `--slotted-table-row-surface-current`, `--slotted-table-row-surface-hover`, `--slotted-table-row-surface-selected`, `--slotted-table-row-surface-selected-hover`, `--slotted-table-row-surface-stripe`, `--slotted-table-selection-size`, `--slotted-table-shadow`, `--slotted-table-sticky-inset`, `--slotted-table-sticky-offset`, `--slotted-table-sticky-offset-end`, `--slotted-table-sticky-surface`, `--slotted-table-surface`, `--slotted-table-tree-indent`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-subtle-hover`, `--slotted-tone-accent-surface`, `--slotted-tone-accent-text`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-sticky`
|
|
280
|
+
`--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-font-family`, `--slotted-control-font-size-md`, `--slotted-control-gap-md`, `--slotted-control-height-md`, `--slotted-control-icon-size-md`, `--slotted-control-padding-inline-md`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-foreground`, `--slotted-duration-short`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-regular`, `--slotted-font-weight-semibold`, `--slotted-ground`, `--slotted-line-height-md`, `--slotted-radius-md`, `--slotted-radius-sm`, `--slotted-shadow-xs`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-9`, `--slotted-surface`, `--slotted-table-border-color`, `--slotted-table-border-color-strong`, `--slotted-table-border-width`, `--slotted-table-branch-size`, `--slotted-table-caption-surface`, `--slotted-table-cell-padding-block`, `--slotted-table-cell-padding-inline`, `--slotted-table-color`, `--slotted-table-color-muted`, `--slotted-table-column-actions-size`, `--slotted-table-control-radius`, `--slotted-table-edge-inset`, `--slotted-table-font-family`, `--slotted-table-font-size`, `--slotted-table-gap`, `--slotted-table-group-color`, `--slotted-table-group-sticky-offset`, `--slotted-table-group-surface`, `--slotted-table-guide-color`, `--slotted-table-header-backdrop-filter`, `--slotted-table-header-surface`, `--slotted-table-header-surface-hover`, `--slotted-table-icon-size`, `--slotted-table-mark-child-size`, `--slotted-table-mark-size`, `--slotted-table-radius`, `--slotted-table-row-color-selected`, `--slotted-table-row-min-block-size`, `--slotted-table-row-surface-current`, `--slotted-table-row-surface-hover`, `--slotted-table-row-surface-selected`, `--slotted-table-row-surface-selected-hover`, `--slotted-table-row-surface-stripe`, `--slotted-table-selection-size`, `--slotted-table-shadow`, `--slotted-table-sticky-inset`, `--slotted-table-sticky-offset`, `--slotted-table-sticky-offset-end`, `--slotted-table-sticky-surface`, `--slotted-table-surface`, `--slotted-table-tree-indent`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-subtle-hover`, `--slotted-tone-accent-surface`, `--slotted-tone-accent-text`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-sticky`
|
|
277
281
|
|
|
278
282
|
## Examples
|
|
279
283
|
|
|
@@ -4,10 +4,10 @@ import { n, t as r } from "./icon-D04-_QFA.js";
|
|
|
4
4
|
import { t as i } from "./spinner-ring-DyfaYloA.js";
|
|
5
5
|
import { t as a } from "./avatar-DLWElrgg.js";
|
|
6
6
|
/* empty css */
|
|
7
|
-
import { b as o } from "./field-
|
|
7
|
+
import { b as o } from "./field-vOVzvq5t.js";
|
|
8
8
|
/* empty css */
|
|
9
9
|
import { t as s } from "./highlight-9lRPIZ9O.js";
|
|
10
|
-
import { c, i as l, n as ee, o as te, s as ne } from "./select-
|
|
10
|
+
import { c, i as l, n as ee, o as te, s as ne } from "./select-BkUuIVBK.js";
|
|
11
11
|
import { keyedProps as u, selectorKeyProps as re } from "@slotted/core/selector-key";
|
|
12
12
|
import { createArrowNavigation as ie, createRemovalFocus as ae } from "@slotted/core/focus";
|
|
13
13
|
import { createControllable as d } from "@slotted/core/state";
|
package/dist/entity-picker.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, r as c, s as l, t as u, u as d } from "./entity-picker-
|
|
1
|
+
import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, r as c, s as l, t as u, u as d } from "./entity-picker-CwfA1wr_.js";
|
|
2
2
|
export { u as CREATE_OPTION, d as ENTITY_PICKER_FALLBACK, a as EntityPicker, n as EntityPickerDefaultsProvider, e as EntityPickerOptionDescription, s as EntityPickerOptionLabel, l as EntityPickerOptionMedia, t as EntityPickerOptionMeta, o as RETRY_OPTION, c as localEntitySource, i as rememberRecent, r as useEntityPickerDefaults };
|
|
@@ -6,7 +6,7 @@ import { n as g } from "./progress-indicator-D0acshNn.js";
|
|
|
6
6
|
/* empty css */
|
|
7
7
|
import { a as _, c as v, f as ee, i as te, l as ne, o as re, p as ie, r as ae, u as oe } from "./popover-BfEn2wdZ.js";
|
|
8
8
|
import { n as se, r as y, t as ce } from "./context-menu-WiKS4Zwv.js";
|
|
9
|
-
import { a as le, t as ue } from "./segmented-control-
|
|
9
|
+
import { a as le, t as ue } from "./segmented-control-D52GeOlS.js";
|
|
10
10
|
import { keyedProps as de, selectorKeyProps as fe, withSelectorKey as pe } from "@slotted/core/selector-key";
|
|
11
11
|
import { createContext as me, createElement as he, useCallback as b, useContext as ge, useEffect as _e, useId as ve, useImperativeHandle as ye, useLayoutEffect as be, useMemo as xe, useRef as x, useState as S } from "react";
|
|
12
12
|
import { Fragment as C, jsx as w, jsxs as T } from "react/jsx-runtime";
|
package/dist/event-calendar.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as e, n as t, r as n, t as r } from "./event-calendar-
|
|
1
|
+
import { i as e, n as t, r as n, t as r } from "./event-calendar-biSTH0yK.js";
|
|
2
2
|
export { t as EVENT_CALENDAR_FALLBACK, r as EventCalendar, n as EventCalendarDefaultsProvider, e as useEventCalendarDefaults };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as e } from "./i18n-D7xXDd8-.js";
|
|
2
|
-
import { d as t, f as n, y as r } from "./field-
|
|
2
|
+
import { d as t, f as n, y as r } from "./field-vOVzvq5t.js";
|
|
3
3
|
import { t as i } from "./inline-message-DgEAUjar.js";
|
|
4
4
|
import { keyedProps as a, withSelectorKey as o } from "@slotted/core/selector-key";
|
|
5
5
|
import { createContext as s, isValidElement as c, useCallback as l, useContext as u, useEffect as d, useId as f, useMemo as p, useState as m } from "react";
|
package/dist/field-group.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./field-group-
|
|
1
|
+
import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./field-group-7zV68b3d.js";
|
|
2
2
|
export { o as FieldGroup, t as FieldGroupContent, e as FieldGroupDescription, r as FieldGroupError, a as FieldGroupLegend, n as deriveFieldGroupIds, i as useFieldGroup };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as e } from "./i18n-D7xXDd8-.js";
|
|
2
2
|
import { n as t, t as n } from "./icon-D04-_QFA.js";
|
|
3
|
+
import { a as r, i, n as a, o, r as s, t as c } from "./tooltip-DrFiRlH8.js";
|
|
3
4
|
/* empty css */
|
|
4
|
-
import { t as
|
|
5
|
-
import { a as i, i as a, n as o, o as s, r as c, t as l } from "./tooltip-DrFiRlH8.js";
|
|
5
|
+
import { t as l } from "./inline-message-DgEAUjar.js";
|
|
6
6
|
import { keyedProps as u, withSelectorKey as d } from "@slotted/core/selector-key";
|
|
7
7
|
import { Children as f, createContext as p, isValidElement as m, useCallback as h, useContext as g, useEffect as _, useId as v, useMemo as y, useRef as ee, useState as b } from "react";
|
|
8
8
|
import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
|
|
@@ -143,26 +143,26 @@ function B({ "aria-describedby": e, "aria-invalid": t, "aria-required": n, disab
|
|
|
143
143
|
ref: o
|
|
144
144
|
}) : s(p);
|
|
145
145
|
}
|
|
146
|
-
function V({ children: e, mark: t, tone: n, ...
|
|
147
|
-
let
|
|
148
|
-
return R("description", A(e)), /* @__PURE__ */ S(
|
|
149
|
-
...
|
|
150
|
-
disabled:
|
|
151
|
-
id:
|
|
146
|
+
function V({ children: e, mark: t, tone: n, ...r }) {
|
|
147
|
+
let i = E();
|
|
148
|
+
return R("description", A(e)), /* @__PURE__ */ S(l, {
|
|
149
|
+
...r,
|
|
150
|
+
disabled: i?.disabled,
|
|
151
|
+
id: i?.ids.description,
|
|
152
152
|
mark: t ?? "none",
|
|
153
|
-
size:
|
|
153
|
+
size: i?.messageSize,
|
|
154
154
|
tone: n ?? "secondary",
|
|
155
155
|
children: e
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
|
-
function H({ children: e, mark: t, tone: n, ...
|
|
159
|
-
let
|
|
160
|
-
return R("error", A(e)), /* @__PURE__ */ S(
|
|
161
|
-
...
|
|
162
|
-
disabled:
|
|
163
|
-
id:
|
|
158
|
+
function H({ children: e, mark: t, tone: n, ...r }) {
|
|
159
|
+
let i = E();
|
|
160
|
+
return R("error", A(e)), /* @__PURE__ */ S(l, {
|
|
161
|
+
...r,
|
|
162
|
+
disabled: i?.disabled,
|
|
163
|
+
id: i?.ids.error,
|
|
164
164
|
mark: t ?? "none",
|
|
165
|
-
size:
|
|
165
|
+
size: i?.messageSize,
|
|
166
166
|
tone: n ?? "danger",
|
|
167
167
|
children: e
|
|
168
168
|
});
|
|
@@ -230,16 +230,16 @@ function K({ ref: e, render: t, type: n, ...r }) {
|
|
|
230
230
|
type: n ?? "button"
|
|
231
231
|
}) : t(i);
|
|
232
232
|
}
|
|
233
|
-
function q({ children: t, defaultOpen: n, onOpenChange:
|
|
233
|
+
function q({ children: t, defaultOpen: n, onOpenChange: i, open: o, side: l, ...u }) {
|
|
234
234
|
let d = E(), f = e(w), p = v(), m = d?.ids.help ?? `slotted-field-help-${p}`;
|
|
235
|
-
return R("help", A(t)), /* @__PURE__ */ S(x, { children: /* @__PURE__ */ C(
|
|
235
|
+
return R("help", A(t)), /* @__PURE__ */ S(x, { children: /* @__PURE__ */ C(r, {
|
|
236
236
|
closeOnPress: !1,
|
|
237
237
|
defaultOpen: n,
|
|
238
238
|
describes: "none",
|
|
239
|
-
onOpenChange:
|
|
240
|
-
open:
|
|
239
|
+
onOpenChange: i,
|
|
240
|
+
open: o,
|
|
241
241
|
openOn: "manual",
|
|
242
|
-
side:
|
|
242
|
+
side: l,
|
|
243
243
|
children: [/* @__PURE__ */ S(J, {
|
|
244
244
|
...u,
|
|
245
245
|
"aria-describedby": u["aria-describedby"] ?? m,
|
|
@@ -251,11 +251,11 @@ function q({ children: t, defaultOpen: n, onOpenChange: r, open: a, side: s, ...
|
|
|
251
251
|
id: m,
|
|
252
252
|
children: t
|
|
253
253
|
})
|
|
254
|
-
}), /* @__PURE__ */ C(
|
|
254
|
+
}), /* @__PURE__ */ C(s, { children: [/* @__PURE__ */ S(a, { children: t }), /* @__PURE__ */ S(c, {})] })]
|
|
255
255
|
}) });
|
|
256
256
|
}
|
|
257
|
-
function J({ children: e, onBlur: r, onClick:
|
|
258
|
-
let p =
|
|
257
|
+
function J({ children: e, onBlur: r, onClick: a, onFocus: s, onPointerEnter: c, onPointerLeave: l, ref: u, ...f }) {
|
|
258
|
+
let p = o(), m = ee(!1);
|
|
259
259
|
_(() => {
|
|
260
260
|
p.open || (m.current = !1);
|
|
261
261
|
}, [p.open]);
|
|
@@ -275,11 +275,11 @@ function J({ children: e, onBlur: r, onClick: i, onFocus: o, onPointerEnter: c,
|
|
|
275
275
|
}
|
|
276
276
|
m.current = !0, p.toggle(!0, t, e.nativeEvent);
|
|
277
277
|
};
|
|
278
|
-
return /* @__PURE__ */ C(
|
|
278
|
+
return /* @__PURE__ */ C(i, {
|
|
279
279
|
...d(f, "part", "help"),
|
|
280
280
|
onBlur: L(r, y),
|
|
281
|
-
onClick: L(
|
|
282
|
-
onFocus: L(
|
|
281
|
+
onClick: L(a, b),
|
|
282
|
+
onFocus: L(s, v),
|
|
283
283
|
onPointerEnter: L(c, h),
|
|
284
284
|
onPointerLeave: L(l, g),
|
|
285
285
|
ref: u,
|
package/dist/field.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as e, a as t, b as n, c as r, d as i, f as a, g as o, i as s, l as c, n as l, o as u, p as d, r as f, s as p, t as m, u as h, v as g, y as _ } from "./field-
|
|
1
|
+
import { _ as e, a as t, b as n, c as r, d as i, f as a, g as o, i as s, l as c, n as l, o as u, p as d, r as f, s as p, t as m, u as h, v as g, y as _ } from "./field-vOVzvq5t.js";
|
|
2
2
|
export { d as FIELD_DESCRIBED_ORDER, m as Field, l as FieldAction, f as FieldControl, s as FieldCounter, i as FieldDefaultsProvider, t as FieldDescription, u as FieldError, p as FieldHeader, r as FieldHelp, c as FieldIndicator, h as FieldLabel, o as deriveFieldIds, e as formatFieldCount, g as isFieldCountOver, _ as necessityMark, n as useField, a as useFieldDefaults };
|
|
@@ -4,16 +4,16 @@ import { _ as r, a as i, c as a, d as o, h as s, m as c, n as l, t as u, u as d
|
|
|
4
4
|
import { a as f, d as p, l as m, n as h, o as g, r as ee, s as te } from "./drawer-Du1aC1px.js";
|
|
5
5
|
import { t as ne } from "./spinner-ring-DyfaYloA.js";
|
|
6
6
|
import { n as _, t as re } from "./icon-button-N8Madx6i.js";
|
|
7
|
-
import { t as ie } from "./text-field-
|
|
7
|
+
import { t as ie } from "./text-field-Cnjc7LB5.js";
|
|
8
8
|
import { a as ae, d as oe, f as se, l as ce, p as le, r as ue } from "./popover-BfEn2wdZ.js";
|
|
9
9
|
import { n as de } from "./kbd-dNz8QHfL.js";
|
|
10
|
-
import { t as fe } from "./date-picker-
|
|
11
|
-
import { t as pe } from "./datetime-picker-
|
|
12
|
-
import { a as me, i as he, n as ge, s as _e } from "./multi-select-
|
|
13
|
-
import { t as ve } from "./number-field-
|
|
14
|
-
import { a as ye, t as v } from "./segmented-control-
|
|
15
|
-
import { c as be, i as xe, n as Se, o as Ce, s as we } from "./select-
|
|
16
|
-
import { t as y } from "./time-picker-
|
|
10
|
+
import { t as fe } from "./date-picker-CF3WQxYe.js";
|
|
11
|
+
import { t as pe } from "./datetime-picker-lWc4HT6a.js";
|
|
12
|
+
import { a as me, i as he, n as ge, s as _e } from "./multi-select-DEd_92BC.js";
|
|
13
|
+
import { t as ve } from "./number-field-BJKoidAE.js";
|
|
14
|
+
import { a as ye, t as v } from "./segmented-control-D52GeOlS.js";
|
|
15
|
+
import { c as be, i as xe, n as Se, o as Ce, s as we } from "./select-BkUuIVBK.js";
|
|
16
|
+
import { t as y } from "./time-picker-B4-GsO24.js";
|
|
17
17
|
import { withSelectorKey as b } from "@slotted/core/selector-key";
|
|
18
18
|
import { createRemovalFocus as Te, createRovingTabindex as Ee } from "@slotted/core/focus";
|
|
19
19
|
import { createControllable as De } from "@slotted/core/state";
|
package/dist/filter-bar.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as e, n as t, r as n, t as r } from "./filter-bar-
|
|
1
|
+
import { i as e, n as t, r as n, t as r } from "./filter-bar-DUXtlPRn.js";
|
|
2
2
|
export { r as FILTER_BAR_FALLBACK, t as FilterBar, n as FilterBarDefaultsProvider, e as useFilterBarDefaults };
|