@slotted/react 0.1.0-beta.26 → 0.1.0-beta.28
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-bar-DckD0Sug.js → action-bar-CAtXzym2.js} +1 -1
- package/dist/action-bar.js +1 -1
- package/dist/{cascader-47GYpojH.js → cascader-DUiUVxBt.js} +190 -190
- package/dist/cascader.js +1 -1
- package/dist/{checkbox-Dw9R1CGR.js → checkbox-D67PWyL0.js} +3 -3
- package/dist/{checkbox-group-DDlz-UF4.js → checkbox-group-DZZbowG-.js} +2 -2
- package/dist/checkbox-group.js +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/{color-picker-BbyW5ALf.js → color-picker-DP8MjvXk.js} +3 -3
- package/dist/color-picker.js +1 -1
- package/dist/{column-manager-Bz0bb4mq.js → column-manager-C3iL_I5T.js} +3 -3
- package/dist/column-manager.js +1 -1
- package/dist/{combobox-BA2nvbnA.js → combobox-BIi7grOR.js} +87 -87
- package/dist/combobox.js +1 -1
- package/dist/{command-palette-DEKWsUFR.js → command-palette-BxbhO044.js} +11 -11
- package/dist/command-palette.js +1 -1
- package/dist/{context-menu-CfEEqDKr.js → context-menu-BJyDD17g.js} +1 -1
- package/dist/context-menu.js +1 -1
- package/dist/{currency-field-CTzBMH8g.js → currency-field-CAO2ZolW.js} +1 -1
- package/dist/currency-field.js +1 -1
- package/dist/{dashboard-grid-WinSY-q3.js → dashboard-grid-De6al1Mj.js} +1 -1
- package/dist/dashboard-grid.js +1 -1
- package/dist/{data-grid-BWWvixwB.js → data-grid-BKOFLdSD.js} +46 -46
- package/dist/data-grid.js +1 -1
- package/dist/{data-list-iw9K_oiz.js → data-list-BDYbrO3V.js} +6 -6
- package/dist/data-list.js +1 -1
- package/dist/{date-field-B2WG_m4C.js → date-field-BEdt1xDF.js} +1 -1
- package/dist/date-field.js +1 -1
- package/dist/{date-picker-B2wqU3Mw.js → date-picker-DJMET62H.js} +2 -2
- package/dist/date-picker.js +1 -1
- package/dist/{date-range-picker-BhQwOKkE.js → date-range-picker-CinTpTme.js} +2 -2
- package/dist/date-range-picker.js +1 -1
- package/dist/{datetime-field-CvKPkvaE.js → datetime-field-2tsqzWVH.js} +1 -1
- package/dist/datetime-field.js +1 -1
- package/dist/{datetime-picker-C-PwlBW5.js → datetime-picker-COew4Y_B.js} +2 -2
- package/dist/datetime-picker.js +1 -1
- package/dist/{datetime-range-picker-0xs12Cf1.js → datetime-range-picker-DTT_CvkE.js} +2 -2
- package/dist/datetime-range-picker.js +1 -1
- package/dist/docs/chart.json +2 -0
- package/dist/docs/chart.md +1 -1
- package/dist/docs/combobox.json +1 -0
- package/dist/docs/combobox.md +1 -1
- package/dist/docs/dialog.json +23 -4
- package/dist/docs/dialog.md +2 -60
- package/dist/docs/dialog.props.md +68 -0
- package/dist/docs/drawer.json +2 -0
- package/dist/docs/drawer.md +1 -1
- package/dist/docs/field-group.json +8 -0
- package/dist/docs/field-group.md +1 -0
- package/dist/docs/guidelines/forms.md +1 -1
- package/dist/docs/menu.json +1 -0
- package/dist/docs/menu.md +1 -1
- package/dist/docs/multi-select.json +1 -0
- package/dist/docs/multi-select.md +1 -1
- package/dist/docs/select.json +1 -0
- package/dist/docs/select.md +1 -1
- package/dist/docs/skills/theme-app/SKILL.md +4 -1
- package/dist/{entity-picker-WkBLvR2T.js → entity-picker-DfoAxqaa.js} +26 -26
- package/dist/entity-picker.js +1 -1
- package/dist/{event-calendar-BaPllnNk.js → event-calendar-CFw9KKAm.js} +3 -3
- package/dist/event-calendar.js +1 -1
- package/dist/{field-CSSHwGq_.js → field-BjF0c0U9.js} +2 -2
- package/dist/{field-group-DeBTueJW.js → field-group-Ctwd3EUR.js} +38 -37
- package/dist/field-group.js +1 -1
- package/dist/field.js +1 -1
- package/dist/{filter-bar-DRQEl4-J.js → filter-bar-BJGqeIKl.js} +9 -9
- package/dist/filter-bar.js +1 -1
- package/dist/{import-export-center-C1t2tkzg.js → import-export-center-yxNcKfQX.js} +1 -1
- package/dist/import-export-center.js +1 -1
- package/dist/index.js +53 -53
- package/dist/{listbox-B9cBuitS.js → listbox-Df177k5C.js} +11 -11
- package/dist/listbox.js +1 -1
- package/dist/{markdown-DX-mBYVT.js → markdown-D2EB46zY.js} +1 -1
- package/dist/markdown.js +1 -1
- package/dist/{menu-parts-7F8syoFE.js → menu-parts-DNQDoJnd.js} +203 -204
- package/dist/menu.js +1 -1
- package/dist/{menubar-DzVGFn_I.js → menubar-CY8oxV0V.js} +1 -1
- package/dist/menubar.js +1 -1
- package/dist/{multi-select-DnOAXeuF.js → multi-select-DSSDlWVZ.js} +69 -69
- package/dist/multi-select.js +1 -1
- package/dist/{number-field-C20-8yda.js → number-field-DzOcs9uG.js} +1 -1
- package/dist/number-field.js +1 -1
- package/dist/{otp-input-YI-Emc5k.js → otp-input-ult9fNdj.js} +1 -1
- package/dist/otp-input.js +1 -1
- package/dist/{prompt-composer-DsnPcKa4.js → prompt-composer-D9oaFXDU.js} +1 -1
- package/dist/prompt-composer.js +1 -1
- package/dist/{radio-group-DA8_LbEz.js → radio-group-Dct1Kkuf.js} +2 -2
- package/dist/radio-group.js +1 -1
- package/dist/{rating-DSSqi85N.js → rating-Cjrwmxyw.js} +1 -1
- package/dist/rating.js +1 -1
- package/dist/{saved-views-CsVRZTwK.js → saved-views-BKOHI-Od.js} +3 -3
- package/dist/saved-views.js +1 -1
- package/dist/{segmented-control-Dae5wU9X.js → segmented-control-BINpaKhI.js} +2 -2
- package/dist/segmented-control.js +1 -1
- package/dist/{select-De77allF.js → select-jdqT8lFi.js} +264 -264
- package/dist/select.js +1 -1
- package/dist/{slider-DNRphJot.js → slider-DuJGh0pf.js} +1 -1
- package/dist/slider.js +1 -1
- package/dist/{split-button-DA1wcDJB.js → split-button-CgfY606Z.js} +1 -1
- package/dist/split-button.js +1 -1
- package/dist/styles/action-bar.css +1 -1
- package/dist/styles/action-sheet.css +1 -1
- package/dist/styles/card.css +1 -1
- package/dist/styles/cascader.css +2 -2
- package/dist/styles/chart.css +1 -1
- package/dist/styles/checkbox-group.css +3 -3
- package/dist/styles/checkbox.css +3 -3
- package/dist/styles/color-picker.css +4 -4
- package/dist/styles/column-manager.css +6 -6
- package/dist/styles/combobox.css +3 -3
- package/dist/styles/command-palette.css +1 -1
- package/dist/styles/context-menu.css +1 -1
- package/dist/styles/currency-field.css +2 -2
- package/dist/styles/dashboard-grid.css +2 -2
- package/dist/styles/data-grid.css +7 -7
- package/dist/styles/data-list.css +4 -4
- package/dist/styles/date-field.css +2 -2
- package/dist/styles/date-picker.css +2 -2
- package/dist/styles/date-range-picker.css +2 -2
- package/dist/styles/datetime-field.css +2 -2
- package/dist/styles/datetime-picker.css +2 -2
- package/dist/styles/datetime-range-picker.css +2 -2
- package/dist/styles/dialog.css +1 -1
- package/dist/styles/drawer.css +1 -1
- package/dist/styles/entity-picker.css +3 -3
- package/dist/styles/event-calendar.css +6 -6
- package/dist/styles/field-group.css +3 -3
- package/dist/styles/field.css +2 -2
- package/dist/styles/filter-bar.css +8 -8
- package/dist/styles/hover-card.css +1 -1
- package/dist/styles/import-export-center.css +5 -5
- package/dist/styles/index.css +12 -12
- package/dist/styles/listbox.css +2 -2
- package/dist/styles/markdown.css +3 -3
- package/dist/styles/menu.css +1 -1
- package/dist/styles/menubar.css +1 -1
- package/dist/styles/multi-select.css +3 -3
- 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/popover.css +1 -1
- package/dist/styles/prompt-composer.css +2 -2
- package/dist/styles/radio-group.css +3 -3
- package/dist/styles/rating.css +2 -2
- package/dist/styles/saved-views.css +4 -4
- package/dist/styles/segmented-control.css +3 -3
- package/dist/styles/select.css +3 -3
- 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 +5 -5
- 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/toolbar.css +1 -1
- package/dist/styles/tooltip.css +1 -1
- package/dist/styles/top-navigation.css +1 -1
- package/dist/styles/transfer.css +3 -3
- package/dist/styles/upload.css +3 -3
- package/dist/styles/wizard.css +1 -1
- package/dist/styles.css +1 -1
- package/dist/{switch-gR_OvGG8.js → switch-Tr3blHWc.js} +1 -1
- package/dist/switch.js +1 -1
- package/dist/{table-C3cjkzps.js → table-b7Wt5A88.js} +217 -217
- package/dist/table.js +1 -1
- package/dist/{tags-input-DEhtpizX.js → tags-input-_cYR2JSK.js} +10 -10
- package/dist/tags-input.js +1 -1
- package/dist/{text-field-RGXN7zNu.js → text-field-DEm3MEe2.js} +1 -1
- package/dist/text-field.js +1 -1
- package/dist/{textarea-AhpUmnMk.js → textarea-BRRn55L2.js} +1 -1
- package/dist/textarea.js +1 -1
- package/dist/{time-field-xkxX8JF6.js → time-field-C9dFaZOx.js} +1 -1
- package/dist/time-field.js +1 -1
- package/dist/{time-picker-Da_UhP9X.js → time-picker-VJegeX4j.js} +2 -2
- package/dist/time-picker.js +1 -1
- package/dist/{time-range-picker-CfVzD53N.js → time-range-picker-DFOxymH_.js} +2 -2
- package/dist/time-range-picker.js +1 -1
- package/dist/{toggle-group-DoxPLYJ3.js → toggle-group-DiKxYOwh.js} +1 -1
- package/dist/toggle-group.js +1 -1
- package/dist/{toolbar-CtSZ88HI.js → toolbar-CSiDqC8L.js} +1 -1
- package/dist/toolbar.js +1 -1
- package/dist/{transfer-BMRyopEw.js → transfer-BrYBBjaG.js} +9 -9
- package/dist/transfer.js +1 -1
- package/dist/{tree-DBirM2v9.js → tree-D-y-0TrL.js} +14 -14
- package/dist/tree.js +1 -1
- package/dist/types/field/field-parts.d.ts.map +1 -1
- package/dist/types/field-group/field-group-parts.d.ts.map +1 -1
- package/dist/types/field-group/field-group.d.ts +1 -1
- package/dist/types/field-group/field-group.d.ts.map +1 -1
- package/dist/types/field-group/field-group.types.d.ts +9 -0
- package/dist/types/field-group/field-group.types.d.ts.map +1 -1
- package/dist/types/field-group/index.d.ts +1 -1
- package/dist/types/field-group/index.d.ts.map +1 -1
- package/dist/types/menu/menu-parts.d.ts.map +1 -1
- package/dist/{upload-BqVBpYaZ.js → upload-BmRZHySQ.js} +1 -1
- package/dist/upload.js +1 -1
- package/package.json +6 -6
package/dist/docs/dialog.md
CHANGED
|
@@ -132,65 +132,7 @@ export default function DialogBasic() {
|
|
|
132
132
|
|
|
133
133
|
## Props
|
|
134
134
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
| Name | Type | Default | Applies to | Description |
|
|
138
|
-
| --- | --- | --- | --- | --- |
|
|
139
|
-
| `open` | `boolean` | — | Dialog, AlertDialog | Whether the dialog is open. Passing it makes the state controlled: the dialog asks through onOpenChange and waits for the new value. |
|
|
140
|
-
| `defaultOpen` | `boolean` | — | Dialog, AlertDialog | Whether an uncontrolled dialog starts open. Read once. |
|
|
141
|
-
| `size` | `'sm' \| 'md' \| 'lg' \| 'xl' \| 'full'` | md | Dialog, DialogDefaultsProvider | The maximum width of the panel: 24rem, 32rem, 42rem, 56rem, or the whole layer less its padding. For another width, set --slotted-dialog-measure. |
|
|
142
|
-
| `placement` | `'center' \| 'top'` | center | Dialog, AlertDialog, DialogDefaultsProvider | Where the panel sits in the layer. Use top for content that grows while the reader types, so the panel does not move with each new line. |
|
|
143
|
-
| `scroll` | `'content' \| 'viewport'` | content | Dialog, AlertDialog, DialogDefaultsProvider | What scrolls when the content is long. content keeps the panel inside the layer and scrolls the body, so the actions stay on screen; viewport lets the panel grow and scrolls the layer. With content, the layer still scrolls when the header and footer alone are taller than it. |
|
|
144
|
-
| `mount` | `'active' \| 'lazy' \| 'eager'` | active | Dialog, AlertDialog, DialogDefaultsProvider | When the layer is in the document. active renders it while open and removes it after the closing animation, lazy renders it on the first open and keeps it, eager renders it from the start and hides it with content-visibility and inert while closed. |
|
|
145
|
-
| `escape` | `'close' \| 'none'` | close | Dialog, AlertDialog, DialogDefaultsProvider | Whether Escape asks the dialog to close. Escape reaches the topmost dialog only. |
|
|
146
|
-
| `loading` | `boolean` | false | Dialog, AlertDialog | Marks the body with aria-busy and gives it a minimum height while the content is on its way. The header, the close button and Escape stay available. |
|
|
147
|
-
| `messages` | `Partial<DialogMessages>` | — | Dialog, AlertDialog | Replaces words of the language in force, key by key: the accessible names of the close and full-screen buttons (close, fullScreen). An aria-label on DialogClose takes precedence. |
|
|
148
|
-
| `initialFocus` | `'first' \| 'container' \| 'cancel' \| RefObject \| false` | first | Dialog | Where focus goes when the dialog opens: the first focusable element, the panel itself (container), the cancel part, the element of a ref, or nowhere (false). Use container for content that is read before it is used, such as a list or a table. |
|
|
149
|
-
| `finalFocus` | `RefObject \| false` | — | Dialog, AlertDialog | Where focus goes when the dialog closes. Unset, focus returns to the element that had it when the dialog opened, usually the trigger. false leaves focus where it is. |
|
|
150
|
-
| `value` | `string` | — | DialogClose, AlertDialogCancel, AlertDialogAction | The result this button closes the dialog with, read from request.result in onOpenChange. AlertDialogCancel defaults to "cancel" and AlertDialogAction to "confirm". |
|
|
151
|
-
| `modal` | `boolean` | true | Dialog, DialogDefaultsProvider | Whether the page behind is inert, its scroll locked and focus kept inside the panel. false does none of this, paints no scrim, lets the pointer reach the page and writes no aria-modal. |
|
|
152
|
-
| `outsidePress` | `'close' \| 'none'` | close | Dialog, DialogDefaultsProvider | Whether a press outside the panel asks the dialog to close. AlertDialog fixes it at none. |
|
|
153
|
-
| `back` | `'close' \| 'none'` | close | Dialog, DialogDefaultsProvider | Whether the browser’s way back, a back button or a phone’s back gesture, closes a modal dialog instead of leaving the page. Each open modal dialog holds one close watcher where the browser has CloseWatcher, and adds one history entry elsewhere; the close request carries the reason back. A dialog opened without a press shares the way back with the layer opened before it. |
|
|
154
|
-
| `surface` | `'panel' \| 'plain'` | panel | Dialog, DialogDefaultsProvider | Whether Dialog paints the panel. plain removes the background, border, radius, shadow, rows and padding, and keeps the portal, the scrim, focus handling and the dismissal policy, for a panel of your own such as a Card or an image viewer. A plain panel does not keep its footer on screen for a long body. |
|
|
155
|
-
| `fullScreen` | `'never' \| 'narrow' \| 'always'` | narrow | Dialog, DialogDefaultsProvider | When the panel fills the whole layer, without margins or radius. narrow does so while the layer is narrower than 480 pixels, measured with a container query on the layer. |
|
|
156
|
-
| `fullscreenToggle` | `boolean` | false | Dialog | Adds a button to the header that expands the panel to the whole layer and restores it, for content the reader wants more room for. |
|
|
157
|
-
| `fullscreen` | `boolean` | — | Dialog | Whether the panel is expanded by the toggle. Passing it makes the state controlled, with onFullscreenChange. |
|
|
158
|
-
| `defaultFullscreen` | `boolean` | false | Dialog | Whether an uncontrolled panel opens expanded. Read once. |
|
|
159
|
-
| `render` | `(props) => ReactNode` | — | every part | Replaces the element a part renders and passes it every attribute the part writes. Use it to make the trigger, the cancel and the action a Button. |
|
|
160
|
-
| `ref` | `Ref<DialogHandle> on Dialog, Ref<HTMLElement> on every part` | — | Dialog, AlertDialog, every part | On a part, the element. On Dialog and AlertDialog, a handle with open(), close(result), focus() and content, the panel element once it is rendered. |
|
|
161
|
-
| `--slotted-dialog-measure` | `length` | from size | the root part | The maximum width of the panel, for a width the five sizes do not hold, such as a two-column form at 46rem. Set it with a style attribute on one dialog, with a rule for a region, or once in the theme. It takes precedence over size. |
|
|
162
|
-
| `container` | `Element \| null` | — | Dialog, AlertDialog | The element this dialog is rendered into, instead of the shared portal root. To change the portal root for the whole document, call setPortalContainer from @slotted/core/portal. |
|
|
163
|
-
| `useDialog()` | `() => DialogContextValue` | — | inside Dialog or AlertDialog | What the parts read: the open state, the ids, the resolved axes and close(reason, result). It throws outside Dialog and AlertDialog. |
|
|
164
|
-
| `DialogDefaultsProvider` | `{ size, placement, scroll, surface, mount, fullScreen, modal, escape, outsidePress, back }` | — | a subtree | Sets these ten values once for every dialog under it. A value set on one dialog takes precedence. |
|
|
165
|
-
|
|
166
|
-
### alertDialog
|
|
167
|
-
|
|
168
|
-
| Name | Type | Default | Applies to | Description |
|
|
169
|
-
| --- | --- | --- | --- | --- |
|
|
170
|
-
| `open` | `boolean` | — | Dialog, AlertDialog | Whether the dialog is open. Passing it makes the state controlled: the dialog asks through onOpenChange and waits for the new value. |
|
|
171
|
-
| `defaultOpen` | `boolean` | — | Dialog, AlertDialog | Whether an uncontrolled dialog starts open. Read once. |
|
|
172
|
-
| `size` | `'sm' \| 'md' \| 'lg' \| 'xl' \| 'full'` | sm | AlertDialog | The maximum width of the panel. AlertDialog defaults to sm, 24rem. |
|
|
173
|
-
| `placement` | `'center' \| 'top'` | center | Dialog, AlertDialog, DialogDefaultsProvider | Where the panel sits in the layer. Use top for content that grows while the reader types, so the panel does not move with each new line. |
|
|
174
|
-
| `scroll` | `'content' \| 'viewport'` | content | Dialog, AlertDialog, DialogDefaultsProvider | What scrolls when the content is long. content keeps the panel inside the layer and scrolls the body, so the actions stay on screen; viewport lets the panel grow and scrolls the layer. With content, the layer still scrolls when the header and footer alone are taller than it. |
|
|
175
|
-
| `mount` | `'active' \| 'lazy' \| 'eager'` | active | Dialog, AlertDialog, DialogDefaultsProvider | When the layer is in the document. active renders it while open and removes it after the closing animation, lazy renders it on the first open and keeps it, eager renders it from the start and hides it with content-visibility and inert while closed. |
|
|
176
|
-
| `escape` | `'close' \| 'none'` | close | Dialog, AlertDialog, DialogDefaultsProvider | Whether Escape asks the dialog to close. Escape reaches the topmost dialog only. |
|
|
177
|
-
| `loading` | `boolean` | false | Dialog, AlertDialog | Marks the body with aria-busy and gives it a minimum height while the content is on its way. The header, the close button and Escape stay available. |
|
|
178
|
-
| `messages` | `Partial<DialogMessages>` | — | Dialog, AlertDialog | Replaces words of the language in force, key by key: the accessible names of the close and full-screen buttons (close, fullScreen). An aria-label on DialogClose takes precedence. |
|
|
179
|
-
| `initialFocus` | `'first' \| 'container' \| 'cancel' \| RefObject \| false` | cancel | AlertDialog | Where focus goes when the dialog opens. The default, cancel, is the least destructive answer. |
|
|
180
|
-
| `finalFocus` | `RefObject \| false` | — | Dialog, AlertDialog | Where focus goes when the dialog closes. Unset, focus returns to the element that had it when the dialog opened, usually the trigger. false leaves focus where it is. |
|
|
181
|
-
| `value` | `string` | — | DialogClose, AlertDialogCancel, AlertDialogAction | The result this button closes the dialog with, read from request.result in onOpenChange. AlertDialogCancel defaults to "cancel" and AlertDialogAction to "confirm". |
|
|
182
|
-
| `tone` | `'accent' \| 'secondary' \| 'info' \| 'success' \| 'warning' \| 'danger'` | danger | AlertDialog | The kind of decision. It sets the mark AlertDialogIcon draws and its colour. |
|
|
183
|
-
| `modal` | `boolean` | true | AlertDialog | Fixed: an alert dialog is always modal. |
|
|
184
|
-
| `outsidePress` | `'close' \| 'none'` | none | AlertDialog | Fixed: a press outside never closes an alert dialog. |
|
|
185
|
-
| `back` | `'close' \| 'none'` | close | AlertDialog | Whether the browser’s way back cancels the confirmation, as Escape does. The close request carries the reason back. |
|
|
186
|
-
| `surface` | `'panel' \| 'plain'` | panel | AlertDialog | Whether AlertDialog paints the panel. plain removes the paint and keeps the behaviour. |
|
|
187
|
-
| `fullScreen` | `'never' \| 'narrow' \| 'always'` | never | AlertDialog | When the panel fills the whole layer. AlertDialog keeps its margins at every width by default. |
|
|
188
|
-
| `render` | `(props) => ReactNode` | — | every part | Replaces the element a part renders and passes it every attribute the part writes. Use it to make the trigger, the cancel and the action a Button. |
|
|
189
|
-
| `ref` | `Ref<DialogHandle> on Dialog, Ref<HTMLElement> on every part` | — | Dialog, AlertDialog, every part | On a part, the element. On Dialog and AlertDialog, a handle with open(), close(result), focus() and content, the panel element once it is rendered. |
|
|
190
|
-
| `--slotted-dialog-measure` | `length` | from size | the root part | The maximum width of the panel, for a width the five sizes do not hold, such as a two-column form at 46rem. Set it with a style attribute on one dialog, with a rule for a region, or once in the theme. It takes precedence over size. |
|
|
191
|
-
| `container` | `Element \| null` | — | Dialog, AlertDialog | The element this dialog is rendered into, instead of the shared portal root. To change the portal root for the whole document, call setPortalContainer from @slotted/core/portal. |
|
|
192
|
-
| `useDialog()` | `() => DialogContextValue` | — | inside Dialog or AlertDialog | What the parts read: the open state, the ids, the resolved axes and close(reason, result). It throws outside Dialog and AlertDialog. |
|
|
193
|
-
| `DialogDefaultsProvider` | `{ size, placement, scroll, surface, mount, fullScreen, modal, escape, outsidePress, back }` | — | a subtree | Sets these ten values once for every dialog under it. A value set on one dialog takes precedence. |
|
|
135
|
+
See [dialog.props.md](./dialog.props.md).
|
|
194
136
|
|
|
195
137
|
## Events
|
|
196
138
|
|
|
@@ -247,7 +189,7 @@ export default function DialogBasic() {
|
|
|
247
189
|
|
|
248
190
|
## Tokens
|
|
249
191
|
|
|
250
|
-
`--slotted-border-subtle`, `--slotted-border-width-thick`, `--slotted-border-width-thin`, `--slotted-control-font-family`, `--slotted-control-icon-size-lg`, `--slotted-control-inner-size-lg`, `--slotted-control-radius`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-dialog-backdrop-filter`, `--slotted-dialog-body-color`, `--slotted-dialog-border-color`, `--slotted-dialog-close-active-background`, `--slotted-dialog-close-color`, `--slotted-dialog-close-hover-background`, `--slotted-dialog-color`, `--slotted-dialog-description-color`, `--slotted-dialog-footer-surface`, `--slotted-dialog-measure`, `--slotted-dialog-padding-block`, `--slotted-dialog-padding-block-sm`, `--slotted-dialog-padding-inline`, `--slotted-dialog-padding-inline-sm`, `--slotted-dialog-radius`, `--slotted-dialog-rule-color`, `--slotted-dialog-scrim`, `--slotted-dialog-surface`, `--slotted-dialog-title-color`, `--slotted-dialog-title-font-family`, `--slotted-duration-long`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-exit`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-family-heading`, `--slotted-font-family-sans`, `--slotted-font-size-lg`, `--slotted-font-size-md`, `--slotted-font-size-xl`, `--slotted-font-weight-semibold`, `--slotted-line-height-md`, `--slotted-radius-lg`, `--slotted-radius-sm`, `--slotted-scrim`, `--slotted-shadow-lg`, `--slotted-space-12`, `--slotted-space-2`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-space-7`, `--slotted-space-8`, `--slotted-surface-raised`, `--slotted-surface-sunken`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-text`, `--slotted-tone-danger-text`, `--slotted-tone-info-text`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-tone-secondary-text`, `--slotted-tone-success-text`, `--slotted-tone-warning-text`, `--slotted-z-index-overlay`
|
|
192
|
+
`--slotted-border-subtle`, `--slotted-border-width-thick`, `--slotted-border-width-thin`, `--slotted-control-font-family`, `--slotted-control-icon-size-lg`, `--slotted-control-inner-size-lg`, `--slotted-control-radius`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-dialog-backdrop-filter`, `--slotted-dialog-body-color`, `--slotted-dialog-border-color`, `--slotted-dialog-close-active-background`, `--slotted-dialog-close-color`, `--slotted-dialog-close-hover-background`, `--slotted-dialog-color`, `--slotted-dialog-description-color`, `--slotted-dialog-footer-surface`, `--slotted-dialog-measure`, `--slotted-dialog-measure-lg`, `--slotted-dialog-measure-md`, `--slotted-dialog-measure-sm`, `--slotted-dialog-measure-xl`, `--slotted-dialog-padding-block`, `--slotted-dialog-padding-block-sm`, `--slotted-dialog-padding-inline`, `--slotted-dialog-padding-inline-sm`, `--slotted-dialog-radius`, `--slotted-dialog-rule-color`, `--slotted-dialog-scrim`, `--slotted-dialog-surface`, `--slotted-dialog-title-color`, `--slotted-dialog-title-font-family`, `--slotted-duration-long`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-exit`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-family-heading`, `--slotted-font-family-sans`, `--slotted-font-size-lg`, `--slotted-font-size-md`, `--slotted-font-size-xl`, `--slotted-font-weight-semibold`, `--slotted-form-measure`, `--slotted-line-height-md`, `--slotted-radius-lg`, `--slotted-radius-sm`, `--slotted-scrim`, `--slotted-shadow-lg`, `--slotted-space-12`, `--slotted-space-2`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-space-7`, `--slotted-space-8`, `--slotted-surface-raised`, `--slotted-surface-sunken`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-text`, `--slotted-tone-danger-text`, `--slotted-tone-info-text`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-tone-secondary-text`, `--slotted-tone-success-text`, `--slotted-tone-warning-text`, `--slotted-z-index-overlay`
|
|
251
193
|
|
|
252
194
|
## Examples
|
|
253
195
|
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
<!-- index: ./index.md -->
|
|
2
|
+
# dialog
|
|
3
|
+
|
|
4
|
+
`data-ui="dialog"` · Modal dialog and alert dialog.
|
|
5
|
+
|
|
6
|
+
## Props
|
|
7
|
+
|
|
8
|
+
### dialog
|
|
9
|
+
|
|
10
|
+
| Name | Type | Default | Applies to | Description |
|
|
11
|
+
| --- | --- | --- | --- | --- |
|
|
12
|
+
| `open` | `boolean` | — | Dialog, AlertDialog | Whether the dialog is open. Passing it makes the state controlled: the dialog asks through onOpenChange and waits for the new value. |
|
|
13
|
+
| `defaultOpen` | `boolean` | — | Dialog, AlertDialog | Whether an uncontrolled dialog starts open. Read once. |
|
|
14
|
+
| `size` | `'sm' \| 'md' \| 'lg' \| 'xl' \| 'full'` | md | Dialog, DialogDefaultsProvider | The maximum width of the panel: 32rem, the form measure plus the panel padding (43rem by default), 48rem, 56rem, or the whole layer less its padding. For another width, set --slotted-dialog-measure, or --slotted-dialog-measure-sm, -md, -lg or -xl for one step. |
|
|
15
|
+
| `placement` | `'center' \| 'top'` | center | Dialog, AlertDialog, DialogDefaultsProvider | Where the panel sits in the layer. Use top for content that grows while the reader types, so the panel does not move with each new line. |
|
|
16
|
+
| `scroll` | `'content' \| 'viewport'` | content | Dialog, AlertDialog, DialogDefaultsProvider | What scrolls when the content is long. content keeps the panel inside the layer and scrolls the body, so the actions stay on screen; viewport lets the panel grow and scrolls the layer. With content, the layer still scrolls when the header and footer alone are taller than it. |
|
|
17
|
+
| `mount` | `'active' \| 'lazy' \| 'eager'` | active | Dialog, AlertDialog, DialogDefaultsProvider | When the layer is in the document. active renders it while open and removes it after the closing animation, lazy renders it on the first open and keeps it, eager renders it from the start and hides it with content-visibility and inert while closed. |
|
|
18
|
+
| `escape` | `'close' \| 'none'` | close | Dialog, AlertDialog, DialogDefaultsProvider | Whether Escape asks the dialog to close. Escape reaches the topmost dialog only. |
|
|
19
|
+
| `loading` | `boolean` | false | Dialog, AlertDialog | Marks the body with aria-busy and gives it a minimum height while the content is on its way. The header, the close button and Escape stay available. |
|
|
20
|
+
| `messages` | `Partial<DialogMessages>` | — | Dialog, AlertDialog | Replaces words of the language in force, key by key: the accessible names of the close and full-screen buttons (close, fullScreen). An aria-label on DialogClose takes precedence. |
|
|
21
|
+
| `initialFocus` | `'first' \| 'container' \| 'cancel' \| RefObject \| false` | first | Dialog | Where focus goes when the dialog opens: the first focusable element, the panel itself (container), the cancel part, the element of a ref, or nowhere (false). Use container for content that is read before it is used, such as a list or a table. |
|
|
22
|
+
| `finalFocus` | `RefObject \| false` | — | Dialog, AlertDialog | Where focus goes when the dialog closes. Unset, focus returns to the element that had it when the dialog opened, usually the trigger. false leaves focus where it is. |
|
|
23
|
+
| `value` | `string` | — | DialogClose, AlertDialogCancel, AlertDialogAction | The result this button closes the dialog with, read from request.result in onOpenChange. AlertDialogCancel defaults to "cancel" and AlertDialogAction to "confirm". |
|
|
24
|
+
| `modal` | `boolean` | true | Dialog, DialogDefaultsProvider | Whether the page behind is inert, its scroll locked and focus kept inside the panel. false does none of this, paints no scrim, lets the pointer reach the page and writes no aria-modal. |
|
|
25
|
+
| `outsidePress` | `'close' \| 'none'` | close | Dialog, DialogDefaultsProvider | Whether a press outside the panel asks the dialog to close. AlertDialog fixes it at none. |
|
|
26
|
+
| `back` | `'close' \| 'none'` | close | Dialog, DialogDefaultsProvider | Whether the browser’s way back, a back button or a phone’s back gesture, closes a modal dialog instead of leaving the page. Each open modal dialog holds one close watcher where the browser has CloseWatcher, and adds one history entry elsewhere; the close request carries the reason back. A dialog opened without a press shares the way back with the layer opened before it. |
|
|
27
|
+
| `surface` | `'panel' \| 'plain'` | panel | Dialog, DialogDefaultsProvider | Whether Dialog paints the panel. plain removes the background, border, radius, shadow, rows and padding, and keeps the portal, the scrim, focus handling and the dismissal policy, for a panel of your own such as a Card or an image viewer. A plain panel does not keep its footer on screen for a long body. |
|
|
28
|
+
| `fullScreen` | `'never' \| 'narrow' \| 'always'` | narrow | Dialog, DialogDefaultsProvider | When the panel fills the whole layer, without margins or radius. narrow does so while the layer is narrower than 480 pixels, measured with a container query on the layer. |
|
|
29
|
+
| `fullscreenToggle` | `boolean` | false | Dialog | Adds a button to the header that expands the panel to the whole layer and restores it, for content the reader wants more room for. |
|
|
30
|
+
| `fullscreen` | `boolean` | — | Dialog | Whether the panel is expanded by the toggle. Passing it makes the state controlled, with onFullscreenChange. |
|
|
31
|
+
| `defaultFullscreen` | `boolean` | false | Dialog | Whether an uncontrolled panel opens expanded. Read once. |
|
|
32
|
+
| `render` | `(props) => ReactNode` | — | every part | Replaces the element a part renders and passes it every attribute the part writes. Use it to make the trigger, the cancel and the action a Button. |
|
|
33
|
+
| `ref` | `Ref<DialogHandle> on Dialog, Ref<HTMLElement> on every part` | — | Dialog, AlertDialog, every part | On a part, the element. On Dialog and AlertDialog, a handle with open(), close(result), focus() and content, the panel element once it is rendered. |
|
|
34
|
+
| `--slotted-dialog-measure` | `length` | from size | the root part | The maximum width of the panel, for a width the five sizes do not hold, such as a two-column form at 46rem. Set it with a style attribute on one dialog, with a rule for a region, or once in the theme. It takes precedence over size, and a step token takes precedence over it. |
|
|
35
|
+
| `--slotted-dialog-measure-sm, -md, -lg, -xl` | `length` | from size | the root part | The maximum width of one size step, read before --slotted-dialog-measure, so a theme widens one step and keeps the others. |
|
|
36
|
+
| `container` | `Element \| null` | — | Dialog, AlertDialog | The element this dialog is rendered into, instead of the shared portal root. To change the portal root for the whole document, call setPortalContainer from @slotted/core/portal. |
|
|
37
|
+
| `useDialog()` | `() => DialogContextValue` | — | inside Dialog or AlertDialog | What the parts read: the open state, the ids, the resolved axes and close(reason, result). It throws outside Dialog and AlertDialog. |
|
|
38
|
+
| `DialogDefaultsProvider` | `{ size, placement, scroll, surface, mount, fullScreen, modal, escape, outsidePress, back }` | — | a subtree | Sets these ten values once for every dialog under it. A value set on one dialog takes precedence. |
|
|
39
|
+
|
|
40
|
+
### alertDialog
|
|
41
|
+
|
|
42
|
+
| Name | Type | Default | Applies to | Description |
|
|
43
|
+
| --- | --- | --- | --- | --- |
|
|
44
|
+
| `open` | `boolean` | — | Dialog, AlertDialog | Whether the dialog is open. Passing it makes the state controlled: the dialog asks through onOpenChange and waits for the new value. |
|
|
45
|
+
| `defaultOpen` | `boolean` | — | Dialog, AlertDialog | Whether an uncontrolled dialog starts open. Read once. |
|
|
46
|
+
| `size` | `'sm' \| 'md' \| 'lg' \| 'xl' \| 'full'` | sm | AlertDialog | The maximum width of the panel. AlertDialog defaults to sm, 32rem. |
|
|
47
|
+
| `placement` | `'center' \| 'top'` | center | Dialog, AlertDialog, DialogDefaultsProvider | Where the panel sits in the layer. Use top for content that grows while the reader types, so the panel does not move with each new line. |
|
|
48
|
+
| `scroll` | `'content' \| 'viewport'` | content | Dialog, AlertDialog, DialogDefaultsProvider | What scrolls when the content is long. content keeps the panel inside the layer and scrolls the body, so the actions stay on screen; viewport lets the panel grow and scrolls the layer. With content, the layer still scrolls when the header and footer alone are taller than it. |
|
|
49
|
+
| `mount` | `'active' \| 'lazy' \| 'eager'` | active | Dialog, AlertDialog, DialogDefaultsProvider | When the layer is in the document. active renders it while open and removes it after the closing animation, lazy renders it on the first open and keeps it, eager renders it from the start and hides it with content-visibility and inert while closed. |
|
|
50
|
+
| `escape` | `'close' \| 'none'` | close | Dialog, AlertDialog, DialogDefaultsProvider | Whether Escape asks the dialog to close. Escape reaches the topmost dialog only. |
|
|
51
|
+
| `loading` | `boolean` | false | Dialog, AlertDialog | Marks the body with aria-busy and gives it a minimum height while the content is on its way. The header, the close button and Escape stay available. |
|
|
52
|
+
| `messages` | `Partial<DialogMessages>` | — | Dialog, AlertDialog | Replaces words of the language in force, key by key: the accessible names of the close and full-screen buttons (close, fullScreen). An aria-label on DialogClose takes precedence. |
|
|
53
|
+
| `initialFocus` | `'first' \| 'container' \| 'cancel' \| RefObject \| false` | cancel | AlertDialog | Where focus goes when the dialog opens. The default, cancel, is the least destructive answer. |
|
|
54
|
+
| `finalFocus` | `RefObject \| false` | — | Dialog, AlertDialog | Where focus goes when the dialog closes. Unset, focus returns to the element that had it when the dialog opened, usually the trigger. false leaves focus where it is. |
|
|
55
|
+
| `value` | `string` | — | DialogClose, AlertDialogCancel, AlertDialogAction | The result this button closes the dialog with, read from request.result in onOpenChange. AlertDialogCancel defaults to "cancel" and AlertDialogAction to "confirm". |
|
|
56
|
+
| `tone` | `'accent' \| 'secondary' \| 'info' \| 'success' \| 'warning' \| 'danger'` | danger | AlertDialog | The kind of decision. It sets the mark AlertDialogIcon draws and its colour. |
|
|
57
|
+
| `modal` | `boolean` | true | AlertDialog | Fixed: an alert dialog is always modal. |
|
|
58
|
+
| `outsidePress` | `'close' \| 'none'` | none | AlertDialog | Fixed: a press outside never closes an alert dialog. |
|
|
59
|
+
| `back` | `'close' \| 'none'` | close | AlertDialog | Whether the browser’s way back cancels the confirmation, as Escape does. The close request carries the reason back. |
|
|
60
|
+
| `surface` | `'panel' \| 'plain'` | panel | AlertDialog | Whether AlertDialog paints the panel. plain removes the paint and keeps the behaviour. |
|
|
61
|
+
| `fullScreen` | `'never' \| 'narrow' \| 'always'` | never | AlertDialog | When the panel fills the whole layer. AlertDialog keeps its margins at every width by default. |
|
|
62
|
+
| `render` | `(props) => ReactNode` | — | every part | Replaces the element a part renders and passes it every attribute the part writes. Use it to make the trigger, the cancel and the action a Button. |
|
|
63
|
+
| `ref` | `Ref<DialogHandle> on Dialog, Ref<HTMLElement> on every part` | — | Dialog, AlertDialog, every part | On a part, the element. On Dialog and AlertDialog, a handle with open(), close(result), focus() and content, the panel element once it is rendered. |
|
|
64
|
+
| `--slotted-dialog-measure` | `length` | from size | the root part | The maximum width of the panel, for a width the five sizes do not hold, such as a two-column form at 46rem. Set it with a style attribute on one dialog, with a rule for a region, or once in the theme. It takes precedence over size, and a step token takes precedence over it. |
|
|
65
|
+
| `--slotted-dialog-measure-sm, -md, -lg, -xl` | `length` | from size | the root part | The maximum width of one size step, read before --slotted-dialog-measure, so a theme widens one step and keeps the others. |
|
|
66
|
+
| `container` | `Element \| null` | — | Dialog, AlertDialog | The element this dialog is rendered into, instead of the shared portal root. To change the portal root for the whole document, call setPortalContainer from @slotted/core/portal. |
|
|
67
|
+
| `useDialog()` | `() => DialogContextValue` | — | inside Dialog or AlertDialog | What the parts read: the open state, the ids, the resolved axes and close(reason, result). It throws outside Dialog and AlertDialog. |
|
|
68
|
+
| `DialogDefaultsProvider` | `{ size, placement, scroll, surface, mount, fullScreen, modal, escape, outsidePress, back }` | — | a subtree | Sets these ten values once for every dialog under it. A value set on one dialog takes precedence. |
|
package/dist/docs/drawer.json
CHANGED
|
@@ -481,9 +481,11 @@
|
|
|
481
481
|
"--slotted-drawer-resizer-line-color",
|
|
482
482
|
"--slotted-drawer-rule-color",
|
|
483
483
|
"--slotted-drawer-scrim",
|
|
484
|
+
"--slotted-drawer-sheet-dim",
|
|
484
485
|
"--slotted-drawer-sheet-floor",
|
|
485
486
|
"--slotted-drawer-sheet-height",
|
|
486
487
|
"--slotted-drawer-sheet-inline-size",
|
|
488
|
+
"--slotted-drawer-sheet-travel",
|
|
487
489
|
"--slotted-drawer-slide-duration",
|
|
488
490
|
"--slotted-drawer-slide-easing",
|
|
489
491
|
"--slotted-drawer-slide-exit-duration",
|
package/dist/docs/drawer.md
CHANGED
|
@@ -181,7 +181,7 @@ export default function DrawerBasic() {
|
|
|
181
181
|
|
|
182
182
|
## Tokens
|
|
183
183
|
|
|
184
|
-
`--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-thick`, `--slotted-border-width-thin`, `--slotted-control-font-family`, `--slotted-control-icon-size-md`, `--slotted-control-inner-size-md`, `--slotted-control-radius`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-drawer-backdrop-filter`, `--slotted-drawer-body-color`, `--slotted-drawer-border-color`, `--slotted-drawer-close-active-background`, `--slotted-drawer-close-color`, `--slotted-drawer-close-hover-background`, `--slotted-drawer-color`, `--slotted-drawer-description-color`, `--slotted-drawer-extent`, `--slotted-drawer-extent-lg`, `--slotted-drawer-extent-md`, `--slotted-drawer-extent-sm`, `--slotted-drawer-extent-xl`, `--slotted-drawer-footer-backdrop-filter`, `--slotted-drawer-footer-surface`, `--slotted-drawer-radius`, `--slotted-drawer-radius-expanded`, `--slotted-drawer-resizer-line-active-color`, `--slotted-drawer-resizer-line-color`, `--slotted-drawer-rule-color`, `--slotted-drawer-scrim`, `--slotted-drawer-sheet-floor`, `--slotted-drawer-sheet-height`, `--slotted-drawer-sheet-inline-size`, `--slotted-drawer-slide-duration`, `--slotted-drawer-slide-easing`, `--slotted-drawer-slide-exit-duration`, `--slotted-drawer-slide-exit-easing`, `--slotted-drawer-surface`, `--slotted-drawer-title-color`, `--slotted-drawer-title-font-family`, `--slotted-duration-instant`, `--slotted-duration-long`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-enter`, `--slotted-easing-exit`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-family-heading`, `--slotted-font-family-sans`, `--slotted-font-size-lg`, `--slotted-font-size-md`, `--slotted-font-size-xl`, `--slotted-font-weight-semibold`, `--slotted-line-height-lg`, `--slotted-line-height-md`, `--slotted-radius-full`, `--slotted-radius-lg`, `--slotted-radius-sm`, `--slotted-scrim`, `--slotted-shadow-lg`, `--slotted-space-11`, `--slotted-space-12`, `--slotted-space-2`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-space-7`, `--slotted-space-8`, `--slotted-space-9`, `--slotted-surface-raised`, `--slotted-surface-sunken`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-overlay`
|
|
184
|
+
`--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-thick`, `--slotted-border-width-thin`, `--slotted-control-font-family`, `--slotted-control-icon-size-md`, `--slotted-control-inner-size-md`, `--slotted-control-radius`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-drawer-backdrop-filter`, `--slotted-drawer-body-color`, `--slotted-drawer-border-color`, `--slotted-drawer-close-active-background`, `--slotted-drawer-close-color`, `--slotted-drawer-close-hover-background`, `--slotted-drawer-color`, `--slotted-drawer-description-color`, `--slotted-drawer-extent`, `--slotted-drawer-extent-lg`, `--slotted-drawer-extent-md`, `--slotted-drawer-extent-sm`, `--slotted-drawer-extent-xl`, `--slotted-drawer-footer-backdrop-filter`, `--slotted-drawer-footer-surface`, `--slotted-drawer-radius`, `--slotted-drawer-radius-expanded`, `--slotted-drawer-resizer-line-active-color`, `--slotted-drawer-resizer-line-color`, `--slotted-drawer-rule-color`, `--slotted-drawer-scrim`, `--slotted-drawer-sheet-dim`, `--slotted-drawer-sheet-floor`, `--slotted-drawer-sheet-height`, `--slotted-drawer-sheet-inline-size`, `--slotted-drawer-sheet-travel`, `--slotted-drawer-slide-duration`, `--slotted-drawer-slide-easing`, `--slotted-drawer-slide-exit-duration`, `--slotted-drawer-slide-exit-easing`, `--slotted-drawer-surface`, `--slotted-drawer-title-color`, `--slotted-drawer-title-font-family`, `--slotted-duration-instant`, `--slotted-duration-long`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-enter`, `--slotted-easing-exit`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-family-heading`, `--slotted-font-family-sans`, `--slotted-font-size-lg`, `--slotted-font-size-md`, `--slotted-font-size-xl`, `--slotted-font-weight-semibold`, `--slotted-line-height-lg`, `--slotted-line-height-md`, `--slotted-radius-full`, `--slotted-radius-lg`, `--slotted-radius-sm`, `--slotted-scrim`, `--slotted-shadow-lg`, `--slotted-space-11`, `--slotted-space-12`, `--slotted-space-2`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-space-7`, `--slotted-space-8`, `--slotted-space-9`, `--slotted-surface-raised`, `--slotted-surface-sunken`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-overlay`
|
|
185
185
|
|
|
186
186
|
## Examples
|
|
187
187
|
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
"fieldGroup": {
|
|
28
28
|
"nativeElement": "fieldset",
|
|
29
29
|
"defaults": {
|
|
30
|
+
"kind": "question",
|
|
30
31
|
"size": "md",
|
|
31
32
|
"orientation": "vertical",
|
|
32
33
|
"necessity": "mark"
|
|
@@ -110,6 +111,13 @@
|
|
|
110
111
|
"appliesTo": "FieldGroup",
|
|
111
112
|
"description": "How the set’s necessity is said on its legend — an asterisk, (optional) on an optional set only, both words, or nothing — and the style provided to every field inside"
|
|
112
113
|
},
|
|
114
|
+
{
|
|
115
|
+
"name": "kind",
|
|
116
|
+
"type": "'question' | 'section'",
|
|
117
|
+
"defaultValue": "question",
|
|
118
|
+
"appliesTo": "FieldGroup",
|
|
119
|
+
"description": "A section names a topic rather than asking something, so its legend draws no necessity and its fields keep the style the application set"
|
|
120
|
+
},
|
|
113
121
|
{
|
|
114
122
|
"name": "messages",
|
|
115
123
|
"type": "Partial<FieldMessages>",
|
package/dist/docs/field-group.md
CHANGED
|
@@ -48,6 +48,7 @@ Excerpt — not a complete module
|
|
|
48
48
|
| `size` | `'sm' \| 'md' \| 'lg'` | md | FieldGroup | The type step of the legend, and the step provided to every field inside. The legend reads the control type scale one step above the labels under it, so a group in a dense table shrinks with them |
|
|
49
49
|
| `orientation` | `'vertical' \| 'horizontal'` | vertical | FieldGroup | How the fields inside flow. A row wraps rather than squeezing, so a field keeps enough width to hold what is being typed into it |
|
|
50
50
|
| `necessity` | `'mark' \| 'optional' \| 'words' \| 'none'` | mark | FieldGroup | How the set’s necessity is said on its legend — an asterisk, (optional) on an optional set only, both words, or nothing — and the style provided to every field inside |
|
|
51
|
+
| `kind` | `'question' \| 'section'` | question | FieldGroup | A section names a topic rather than asking something, so its legend draws no necessity and its fields keep the style the application set |
|
|
51
52
|
| `messages` | `Partial<FieldMessages>` | — | FieldGroup | Words laid over the language in force for the legend’s necessity word (optional, required); a field inside states its own |
|
|
52
53
|
| `labelPlacement` | `'top' \| 'side'` | from the field provider | FieldGroup | Provided to every field inside. The group has no label of its own, so this is the one axis it carries only to pass on |
|
|
53
54
|
| `required` | `boolean` | — | FieldGroup | Draws the necessity marker on the legend. It is deliberately not provided to the fields: required is a fact about one value, and a section cannot know it |
|
|
@@ -255,7 +255,7 @@ Level: SHOULD
|
|
|
255
255
|
Applies to: a form with more than six fields, or with two or more topics
|
|
256
256
|
Rule: The fields are split by topic into `field-group`s, each with a legend that names the topic; consecutive groups stand apart by `--slotted-form-section-gap`, a step larger than the gap between two fields.
|
|
257
257
|
Why: A long form whose fields all stand at one distance shows no structure, and a reader cannot tell where one topic ends.
|
|
258
|
-
Do: Write each topic as a `field-group` with a `legend`, the groups as direct children of `form`; set `--slotted-form-section-gap` on the theme to change the step.
|
|
258
|
+
Do: Write each topic as a `field-group` whose `kind` is `section`, with a `legend`, the groups as direct children of `form`; set `--slotted-form-section-gap` on the theme to change the step.
|
|
259
259
|
Don't: Write a margin, a heading or a separator of the page's own between two groups, or hold seven fields in one run with no group.
|
|
260
260
|
Check: A form with more than six fields holds at least two `field-group`s, and two consecutive groups stand further apart than two fields of one group.
|
|
261
261
|
|
package/dist/docs/menu.json
CHANGED
package/dist/docs/menu.md
CHANGED
|
@@ -158,7 +158,7 @@ export default function MenuBasic() {
|
|
|
158
158
|
|
|
159
159
|
## Tokens
|
|
160
160
|
|
|
161
|
-
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-gap-lg`, `--slotted-control-gap-md`, `--slotted-control-gap-sm`, `--slotted-control-height-lg`, `--slotted-control-height-md`, `--slotted-control-height-sm`, `--slotted-control-icon-size-lg`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-control-padding-inline-lg`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-foreground`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-enter`, `--slotted-easing-exit`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-width`, `--slotted-font-family-sans`, `--slotted-font-size-xs`, `--slotted-font-weight-semibold`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-menu-backdrop-filter`, `--slotted-menu-border-color`, `--slotted-menu-gap`, `--slotted-menu-highlight`, `--slotted-menu-highlight-active`, `--slotted-menu-item-radius`, `--slotted-menu-measure`, `--slotted-menu-measure-lg`, `--slotted-menu-measure-sm`, `--slotted-menu-min-measure`, `--slotted-menu-padding-block`, `--slotted-menu-padding-inline`, `--slotted-menu-radius`, `--slotted-menu-separator-color`, `--slotted-menu-shadow`, `--slotted-menu-surface`, `--slotted-menu-text`, `--slotted-menu-text-muted`, `--slotted-radius-lg`, `--slotted-shadow-md`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-surface-raised`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-subtle-active`, `--slotted-tone-accent-surface`, `--slotted-tone-accent-text`, `--slotted-tone-danger-subtle-active`, `--slotted-tone-danger-surface`, `--slotted-tone-danger-text`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-tone-secondary-surface`, `--slotted-tone-secondary-text`, `--slotted-tone-success-subtle-active`, `--slotted-tone-success-surface`, `--slotted-tone-success-text`, `--slotted-tone-warning-subtle-active`, `--slotted-tone-warning-surface`, `--slotted-tone-warning-text`, `--slotted-z-index-popover`
|
|
161
|
+
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-gap-lg`, `--slotted-control-gap-md`, `--slotted-control-gap-sm`, `--slotted-control-height-lg`, `--slotted-control-height-md`, `--slotted-control-height-sm`, `--slotted-control-icon-size-lg`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-control-padding-inline-lg`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-foreground`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-enter`, `--slotted-easing-exit`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-width`, `--slotted-font-family-sans`, `--slotted-font-size-xs`, `--slotted-font-weight-semibold`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-menu-backdrop-filter`, `--slotted-menu-border-color`, `--slotted-menu-gap`, `--slotted-menu-group-label-height`, `--slotted-menu-highlight`, `--slotted-menu-highlight-active`, `--slotted-menu-item-radius`, `--slotted-menu-measure`, `--slotted-menu-measure-lg`, `--slotted-menu-measure-sm`, `--slotted-menu-min-measure`, `--slotted-menu-padding-block`, `--slotted-menu-padding-inline`, `--slotted-menu-radius`, `--slotted-menu-separator-color`, `--slotted-menu-shadow`, `--slotted-menu-surface`, `--slotted-menu-text`, `--slotted-menu-text-muted`, `--slotted-radius-lg`, `--slotted-shadow-md`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-surface-raised`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-subtle-active`, `--slotted-tone-accent-surface`, `--slotted-tone-accent-text`, `--slotted-tone-danger-subtle-active`, `--slotted-tone-danger-surface`, `--slotted-tone-danger-text`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-tone-secondary-surface`, `--slotted-tone-secondary-text`, `--slotted-tone-success-subtle-active`, `--slotted-tone-success-surface`, `--slotted-tone-success-text`, `--slotted-tone-warning-subtle-active`, `--slotted-tone-warning-surface`, `--slotted-tone-warning-text`, `--slotted-z-index-popover`
|
|
162
162
|
|
|
163
163
|
## Examples
|
|
164
164
|
|
|
@@ -1008,6 +1008,7 @@
|
|
|
1008
1008
|
"--slotted-multi-select-disabled-color",
|
|
1009
1009
|
"--slotted-multi-select-field-basis",
|
|
1010
1010
|
"--slotted-multi-select-field-min",
|
|
1011
|
+
"--slotted-multi-select-group-label-height",
|
|
1011
1012
|
"--slotted-multi-select-highlight",
|
|
1012
1013
|
"--slotted-multi-select-highlight-active",
|
|
1013
1014
|
"--slotted-multi-select-highlight-ring",
|
|
@@ -214,7 +214,7 @@ export default function MultiSelectBasic() {
|
|
|
214
214
|
|
|
215
215
|
## Tokens
|
|
216
216
|
|
|
217
|
-
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-border-color`, `--slotted-control-border-width`, `--slotted-control-focus-ring-offset`, `--slotted-control-font-family`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-gap-lg`, `--slotted-control-gap-md`, `--slotted-control-gap-sm`, `--slotted-control-height-lg`, `--slotted-control-height-md`, `--slotted-control-height-sm`, `--slotted-control-icon-size-lg`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-control-inner-size-lg`, `--slotted-control-inner-size-md`, `--slotted-control-inner-size-sm`, `--slotted-control-invalid-edge-width`, `--slotted-control-padding-inline-lg`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-control-radius`, `--slotted-control-shadow`, `--slotted-control-shadow-focus-geometry`, `--slotted-control-surface`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-background`, `--slotted-disabled-border`, `--slotted-disabled-foreground`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-enter`, `--slotted-easing-exit`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-color-invalid`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-family-sans`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-semibold`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-multi-select-action-active-background`, `--slotted-multi-select-action-color`, `--slotted-multi-select-action-hover-background`, `--slotted-multi-select-action-size`, `--slotted-multi-select-arrow-color`, `--slotted-multi-select-autofill-background`, `--slotted-multi-select-background`, `--slotted-multi-select-border-color`, `--slotted-multi-select-color`, `--slotted-multi-select-content-border-color`, `--slotted-multi-select-content-padding-block`, `--slotted-multi-select-content-padding-inline`, `--slotted-multi-select-content-radius`, `--slotted-multi-select-content-shadow`, `--slotted-multi-select-content-text`, `--slotted-multi-select-content-text-muted`, `--slotted-multi-select-counter-color`, `--slotted-multi-select-counter-complete-color`, `--slotted-multi-select-disabled-background`, `--slotted-multi-select-disabled-border-color`, `--slotted-multi-select-disabled-color`, `--slotted-multi-select-field-basis`, `--slotted-multi-select-field-min`, `--slotted-multi-select-highlight`, `--slotted-multi-select-highlight-active`, `--slotted-multi-select-highlight-ring`, `--slotted-multi-select-hover-border-color`, `--slotted-multi-select-icon-size-min`, `--slotted-multi-select-invalid-border-color`, `--slotted-multi-select-invalid-edge-width`, `--slotted-multi-select-invalid-focus-ring-color`, `--slotted-multi-select-item-radius`, `--slotted-multi-select-measure`, `--slotted-multi-select-open-border-color`, `--slotted-multi-select-placeholder-color`, `--slotted-multi-select-plain-hover-background`, `--slotted-multi-select-radius`, `--slotted-multi-select-readonly-background`, `--slotted-multi-select-selected-color`, `--slotted-multi-select-separator-color`, `--slotted-multi-select-shadow`, `--slotted-multi-select-subtle-background`, `--slotted-multi-select-subtle-border-color`, `--slotted-multi-select-subtle-hover-background`, `--slotted-multi-select-surface`, `--slotted-radius-lg`, `--slotted-radius-none`, `--slotted-shadow-md`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-5`, `--slotted-surface-raised`, `--slotted-surface-sunken`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-border`, `--slotted-tone-accent-surface`, `--slotted-tone-accent-text`, `--slotted-tone-danger-border`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-popover`
|
|
217
|
+
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-border-color`, `--slotted-control-border-width`, `--slotted-control-focus-ring-offset`, `--slotted-control-font-family`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-gap-lg`, `--slotted-control-gap-md`, `--slotted-control-gap-sm`, `--slotted-control-height-lg`, `--slotted-control-height-md`, `--slotted-control-height-sm`, `--slotted-control-icon-size-lg`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-control-inner-size-lg`, `--slotted-control-inner-size-md`, `--slotted-control-inner-size-sm`, `--slotted-control-invalid-edge-width`, `--slotted-control-padding-inline-lg`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-control-radius`, `--slotted-control-shadow`, `--slotted-control-shadow-focus-geometry`, `--slotted-control-surface`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-background`, `--slotted-disabled-border`, `--slotted-disabled-foreground`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-enter`, `--slotted-easing-exit`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-color-invalid`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-family-sans`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-semibold`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-multi-select-action-active-background`, `--slotted-multi-select-action-color`, `--slotted-multi-select-action-hover-background`, `--slotted-multi-select-action-size`, `--slotted-multi-select-arrow-color`, `--slotted-multi-select-autofill-background`, `--slotted-multi-select-background`, `--slotted-multi-select-border-color`, `--slotted-multi-select-color`, `--slotted-multi-select-content-border-color`, `--slotted-multi-select-content-padding-block`, `--slotted-multi-select-content-padding-inline`, `--slotted-multi-select-content-radius`, `--slotted-multi-select-content-shadow`, `--slotted-multi-select-content-text`, `--slotted-multi-select-content-text-muted`, `--slotted-multi-select-counter-color`, `--slotted-multi-select-counter-complete-color`, `--slotted-multi-select-disabled-background`, `--slotted-multi-select-disabled-border-color`, `--slotted-multi-select-disabled-color`, `--slotted-multi-select-field-basis`, `--slotted-multi-select-field-min`, `--slotted-multi-select-group-label-height`, `--slotted-multi-select-highlight`, `--slotted-multi-select-highlight-active`, `--slotted-multi-select-highlight-ring`, `--slotted-multi-select-hover-border-color`, `--slotted-multi-select-icon-size-min`, `--slotted-multi-select-invalid-border-color`, `--slotted-multi-select-invalid-edge-width`, `--slotted-multi-select-invalid-focus-ring-color`, `--slotted-multi-select-item-radius`, `--slotted-multi-select-measure`, `--slotted-multi-select-open-border-color`, `--slotted-multi-select-placeholder-color`, `--slotted-multi-select-plain-hover-background`, `--slotted-multi-select-radius`, `--slotted-multi-select-readonly-background`, `--slotted-multi-select-selected-color`, `--slotted-multi-select-separator-color`, `--slotted-multi-select-shadow`, `--slotted-multi-select-subtle-background`, `--slotted-multi-select-subtle-border-color`, `--slotted-multi-select-subtle-hover-background`, `--slotted-multi-select-surface`, `--slotted-radius-lg`, `--slotted-radius-none`, `--slotted-shadow-md`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-5`, `--slotted-surface-raised`, `--slotted-surface-sunken`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-border`, `--slotted-tone-accent-surface`, `--slotted-tone-accent-text`, `--slotted-tone-danger-border`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-popover`
|
|
218
218
|
|
|
219
219
|
## Examples
|
|
220
220
|
|
package/dist/docs/select.json
CHANGED
|
@@ -927,6 +927,7 @@
|
|
|
927
927
|
"--slotted-select-disabled-background",
|
|
928
928
|
"--slotted-select-disabled-border-color",
|
|
929
929
|
"--slotted-select-disabled-color",
|
|
930
|
+
"--slotted-select-group-label-height",
|
|
930
931
|
"--slotted-select-highlight",
|
|
931
932
|
"--slotted-select-highlight-active",
|
|
932
933
|
"--slotted-select-highlight-ring",
|
package/dist/docs/select.md
CHANGED
|
@@ -201,7 +201,7 @@ export default function SelectBasic() {
|
|
|
201
201
|
|
|
202
202
|
## Tokens
|
|
203
203
|
|
|
204
|
-
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-border-color`, `--slotted-control-border-width`, `--slotted-control-focus-ring-offset`, `--slotted-control-font-family`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-gap-lg`, `--slotted-control-gap-md`, `--slotted-control-gap-sm`, `--slotted-control-height-lg`, `--slotted-control-height-md`, `--slotted-control-height-sm`, `--slotted-control-icon-size-lg`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-control-inner-size-lg`, `--slotted-control-inner-size-md`, `--slotted-control-inner-size-sm`, `--slotted-control-invalid-edge-width`, `--slotted-control-padding-inline-lg`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-control-radius`, `--slotted-control-shadow`, `--slotted-control-shadow-focus-geometry`, `--slotted-control-surface`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-background`, `--slotted-disabled-border`, `--slotted-disabled-foreground`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-enter`, `--slotted-easing-exit`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-color-invalid`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-family-sans`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-semibold`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-radius-lg`, `--slotted-radius-none`, `--slotted-select-action-active-background`, `--slotted-select-action-color`, `--slotted-select-action-hover-background`, `--slotted-select-action-size`, `--slotted-select-arrow-color`, `--slotted-select-background`, `--slotted-select-border-color`, `--slotted-select-color`, `--slotted-select-content-backdrop-filter`, `--slotted-select-content-border-color`, `--slotted-select-content-padding-block`, `--slotted-select-content-padding-inline`, `--slotted-select-content-radius`, `--slotted-select-content-shadow`, `--slotted-select-content-text`, `--slotted-select-content-text-muted`, `--slotted-select-disabled-background`, `--slotted-select-disabled-border-color`, `--slotted-select-disabled-color`, `--slotted-select-highlight`, `--slotted-select-highlight-active`, `--slotted-select-highlight-ring`, `--slotted-select-hover-border-color`, `--slotted-select-icon-size-min`, `--slotted-select-invalid-border-color`, `--slotted-select-invalid-edge-width`, `--slotted-select-invalid-focus-ring-color`, `--slotted-select-item-radius`, `--slotted-select-measure`, `--slotted-select-open-border-color`, `--slotted-select-placeholder-color`, `--slotted-select-plain-hover-background`, `--slotted-select-radius`, `--slotted-select-readonly-background`, `--slotted-select-search-icon-color`, `--slotted-select-selected-color`, `--slotted-select-separator-color`, `--slotted-select-shadow`, `--slotted-select-subtle-background`, `--slotted-select-subtle-border-color`, `--slotted-select-subtle-hover-background`, `--slotted-select-surface`, `--slotted-shadow-md`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-5`, `--slotted-surface-raised`, `--slotted-surface-sunken`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-border`, `--slotted-tone-accent-surface`, `--slotted-tone-accent-text`, `--slotted-tone-danger-border`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-popover`
|
|
204
|
+
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-border-color`, `--slotted-control-border-width`, `--slotted-control-focus-ring-offset`, `--slotted-control-font-family`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-gap-lg`, `--slotted-control-gap-md`, `--slotted-control-gap-sm`, `--slotted-control-height-lg`, `--slotted-control-height-md`, `--slotted-control-height-sm`, `--slotted-control-icon-size-lg`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-control-inner-size-lg`, `--slotted-control-inner-size-md`, `--slotted-control-inner-size-sm`, `--slotted-control-invalid-edge-width`, `--slotted-control-padding-inline-lg`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-control-radius`, `--slotted-control-shadow`, `--slotted-control-shadow-focus-geometry`, `--slotted-control-surface`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-background`, `--slotted-disabled-border`, `--slotted-disabled-foreground`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-enter`, `--slotted-easing-exit`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-color-invalid`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-family-sans`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-semibold`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-radius-lg`, `--slotted-radius-none`, `--slotted-select-action-active-background`, `--slotted-select-action-color`, `--slotted-select-action-hover-background`, `--slotted-select-action-size`, `--slotted-select-arrow-color`, `--slotted-select-background`, `--slotted-select-border-color`, `--slotted-select-color`, `--slotted-select-content-backdrop-filter`, `--slotted-select-content-border-color`, `--slotted-select-content-padding-block`, `--slotted-select-content-padding-inline`, `--slotted-select-content-radius`, `--slotted-select-content-shadow`, `--slotted-select-content-text`, `--slotted-select-content-text-muted`, `--slotted-select-disabled-background`, `--slotted-select-disabled-border-color`, `--slotted-select-disabled-color`, `--slotted-select-group-label-height`, `--slotted-select-highlight`, `--slotted-select-highlight-active`, `--slotted-select-highlight-ring`, `--slotted-select-hover-border-color`, `--slotted-select-icon-size-min`, `--slotted-select-invalid-border-color`, `--slotted-select-invalid-edge-width`, `--slotted-select-invalid-focus-ring-color`, `--slotted-select-item-radius`, `--slotted-select-measure`, `--slotted-select-open-border-color`, `--slotted-select-placeholder-color`, `--slotted-select-plain-hover-background`, `--slotted-select-radius`, `--slotted-select-readonly-background`, `--slotted-select-search-icon-color`, `--slotted-select-selected-color`, `--slotted-select-separator-color`, `--slotted-select-shadow`, `--slotted-select-subtle-background`, `--slotted-select-subtle-border-color`, `--slotted-select-subtle-hover-background`, `--slotted-select-surface`, `--slotted-shadow-md`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-5`, `--slotted-surface-raised`, `--slotted-surface-sunken`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-border`, `--slotted-tone-accent-surface`, `--slotted-tone-accent-text`, `--slotted-tone-danger-border`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-popover`
|
|
205
205
|
|
|
206
206
|
## Examples
|
|
207
207
|
|
|
@@ -84,7 +84,10 @@ has.
|
|
|
84
84
|
`--slotted-drawer-footer-backdrop-filter`, and a dialog's panel
|
|
85
85
|
`--slotted-dialog-surface` with `--slotted-dialog-backdrop-filter`. The
|
|
86
86
|
chart's tooltip, menu and help read one filter,
|
|
87
|
-
`--slotted-chart-overlay-backdrop-filter`.
|
|
87
|
+
`--slotted-chart-overlay-backdrop-filter`. A chart's table view takes
|
|
88
|
+
`--slotted-chart-table-surface` and its sticky header
|
|
89
|
+
`--slotted-chart-table-header-surface`; `--slotted-chart-surface` stays
|
|
90
|
+
opaque, because the series colours mix with it.
|
|
88
91
|
|
|
89
92
|
## 4. Restyle a control
|
|
90
93
|
|
|
@@ -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-BjF0c0U9.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 u, s as te } from "./select-
|
|
10
|
+
import { c, i as l, n as ee, o as u, s as te } from "./select-jdqT8lFi.js";
|
|
11
11
|
import { keyedProps as d, selectorKeyProps as ne } from "@slotted/core/selector-key";
|
|
12
12
|
import { createArrowNavigation as re, createRemovalFocus as ie } from "@slotted/core/focus";
|
|
13
13
|
import { createControllable as f } from "@slotted/core/state";
|
|
@@ -17,11 +17,11 @@ import { createCollapse as ue } from "@slotted/core/overflow";
|
|
|
17
17
|
import { createPresence as de } from "@slotted/core/presence";
|
|
18
18
|
import { entityPickerMessages as fe } from "@slotted/core/i18n";
|
|
19
19
|
import { createPortalRoot as pe } from "@slotted/core/portal";
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
20
|
+
import { createRowMetrics as me, moveIndex as he, offsetForIndex as ge, virtualWindow as _e } from "@slotted/core/collection";
|
|
21
|
+
import { createDismissableLayer as ve, pressOrigin as ye } from "@slotted/core/dismissable-layer";
|
|
22
|
+
import { createPositioner as be } from "@slotted/core/positioner";
|
|
23
|
+
import { createPortal as xe } from "react-dom";
|
|
24
|
+
import { getLiveAnnouncer as x } from "@slotted/core/live-announcer";
|
|
25
25
|
import { CREATE_OPTION as S, CREATE_OPTION as C, RETRY_OPTION as Se, RETRY_OPTION as w, createEntityCache as Ce, createEntityResolver as we, createEntitySearch as Te, entityInitials as T, entityName as Ee, entityOptions as De, entityPickerKey as E, entitySections as Oe, localEntitySource as ke, localEntitySource as Ae, offersCreation as je, rememberRecent as D } from "@slotted/core/entity-picker";
|
|
26
26
|
//#region src/entity-picker/entity-picker-defaults.tsx
|
|
27
27
|
var O = {
|
|
@@ -91,12 +91,12 @@ function Pe({ entity: e, locale: t }) {
|
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
93
|
function Fe() {
|
|
94
|
-
let e = Ue(), t = o(), { props: a } = e, { "aria-describedby": s, "aria-label": d, form: f, id: ae, name: m, onBlur: oe, onClick: se, onFocus: ce, onKeyDown: de, placeholder: fe, ref: pe, render: me, source: ge, items: _e, entities: ve, favorites:
|
|
94
|
+
let e = Ue(), t = o(), { props: a } = e, { "aria-describedby": s, "aria-label": d, form: f, id: ae, name: m, onBlur: oe, onClick: se, onFocus: ce, onKeyDown: de, placeholder: fe, ref: pe, render: me, source: ge, items: _e, entities: ve, favorites: be, recent: xe, scopes: x, scope: S, defaultScope: C, onScopeChange: Se, inputValue: w, defaultInputValue: Ce, onInputValueChange: we, open: Te, defaultOpen: T, onOpenChange: Ee, highlightedValue: De, defaultHighlightedValue: Oe, onHighlightedValueChange: ke, onCreate: Ae, renderOption: je, renderChip: D, handleRef: O, locale: k, max: A, clearable: j, disabled: Fe, fullWidth: P, highlightMatch: Le, invalid: Re, messages: ze, loop: Be, media: Ve, minQueryLength: He, openOn: F, overflow: We, portal: Ge, readOnly: Ke, required: qe, searchDelay: Je, side: Ye, size: Xe, strategy: I, variant: Ze, width: Qe, selectionMode: $e, value: et, defaultValue: tt, onValueChange: nt, ...rt } = a, { t: L, multiple: R } = e, z = e.chosen, B = _(null), it = _(null), [at, ot] = v(0), st = p((t) => {
|
|
95
95
|
e.setInputNode(t), Me(t, pe);
|
|
96
96
|
}, [pe]), ct = (t, n) => {
|
|
97
97
|
e.entry.current = t, e.setOpen(!0, "keyboard", n);
|
|
98
98
|
}, lt = (t, n) => {
|
|
99
|
-
let r = e.options, i = r.findIndex((t) => t.key === e.highlighted), a =
|
|
99
|
+
let r = e.options, i = r.findIndex((t) => t.key === e.highlighted), a = he({
|
|
100
100
|
enabled: r.map((e) => !e.disabled),
|
|
101
101
|
from: i,
|
|
102
102
|
intent: t,
|
|
@@ -158,7 +158,7 @@ function Fe() {
|
|
|
158
158
|
}, V = (t) => {
|
|
159
159
|
let n = t.relatedTarget, r = e.inputNode?.ownerDocument.getElementById(e.contentId) ?? null;
|
|
160
160
|
if (e.controlNode?.parentElement, n instanceof Node && (r?.contains(n) || e.controlNode?.contains(n))) return;
|
|
161
|
-
let i =
|
|
161
|
+
let i = ye(e.inputNode?.ownerDocument);
|
|
162
162
|
i instanceof Node && r?.contains(i) === !0 || (e.settle(t), e.open && e.setOpen(!1, "blur"));
|
|
163
163
|
}, mt = (t) => {
|
|
164
164
|
e.disabled || e.readOnly || (e.entry.current = R ? "keep" : "selected", e.setOpen(!e.open, "pointer", t.nativeEvent), e.inputNode?.focus({ preventScroll: !0 }));
|
|
@@ -545,20 +545,20 @@ function Ve() {
|
|
|
545
545
|
e.inputNode,
|
|
546
546
|
e.portal
|
|
547
547
|
]);
|
|
548
|
-
let { side: fe, strategy: he, width:
|
|
548
|
+
let { side: fe, strategy: he, width: ye, controlNode: C } = e, w = _(null), Ce = p((e, t) => {
|
|
549
549
|
e.update().then(() => {
|
|
550
550
|
w.current === e && m.current.open && t.setAttribute("data-open", "");
|
|
551
551
|
});
|
|
552
552
|
}, []);
|
|
553
553
|
g(() => {
|
|
554
554
|
if (o === null || C === null) return;
|
|
555
|
-
let e =
|
|
555
|
+
let e = be(C, o, {
|
|
556
556
|
align: "start",
|
|
557
557
|
alignOffset: 0,
|
|
558
558
|
boundaryPadding: 8,
|
|
559
559
|
flip: !0,
|
|
560
560
|
hideWhenDetached: !0,
|
|
561
|
-
matchWidth:
|
|
561
|
+
matchWidth: ye === "anchor",
|
|
562
562
|
shift: !0,
|
|
563
563
|
side: fe,
|
|
564
564
|
sideOffset: 4,
|
|
@@ -573,7 +573,7 @@ function Ve() {
|
|
|
573
573
|
Ce,
|
|
574
574
|
fe,
|
|
575
575
|
he,
|
|
576
|
-
|
|
576
|
+
ye
|
|
577
577
|
]), g(() => {
|
|
578
578
|
let t = w.current;
|
|
579
579
|
t !== null && o !== null && (e.open ? Ce(t, o) : o.removeAttribute("data-open"));
|
|
@@ -583,7 +583,7 @@ function Ve() {
|
|
|
583
583
|
Ce
|
|
584
584
|
]), h(() => {
|
|
585
585
|
if (o === null || !e.open || C === null) return;
|
|
586
|
-
let t =
|
|
586
|
+
let t = ve(o, {
|
|
587
587
|
branches: [C],
|
|
588
588
|
escape: !0,
|
|
589
589
|
focusOutside: !1,
|
|
@@ -622,7 +622,7 @@ function Ve() {
|
|
|
622
622
|
]);
|
|
623
623
|
let Te = i.status === "error";
|
|
624
624
|
h(() => {
|
|
625
|
-
Te && m.current.open &&
|
|
625
|
+
Te && m.current.open && x(m.current.inputNode?.ownerDocument).announce(m.current.t("error"), { repeat: !0 });
|
|
626
626
|
}, [Te]), h(() => {
|
|
627
627
|
let e = ae.current, t = l;
|
|
628
628
|
if (e === null || t === null || !i.hasMore || typeof IntersectionObserver != "function") return;
|
|
@@ -662,13 +662,13 @@ function Ve() {
|
|
|
662
662
|
l,
|
|
663
663
|
Ee
|
|
664
664
|
]);
|
|
665
|
-
let O = ce(() => Ee && T !== null ?
|
|
665
|
+
let O = ce(() => Ee && T !== null ? me(T.map((e) => E.get(e.id) ?? De)) : void 0, [
|
|
666
666
|
De,
|
|
667
667
|
T,
|
|
668
668
|
E,
|
|
669
669
|
Oe,
|
|
670
670
|
Ee
|
|
671
|
-
]), k = O === void 0 || T === null ? null :
|
|
671
|
+
]), k = O === void 0 || T === null ? null : _e({
|
|
672
672
|
itemCount: T.length,
|
|
673
673
|
metrics: O,
|
|
674
674
|
overscan: Be,
|
|
@@ -676,7 +676,7 @@ function Ve() {
|
|
|
676
676
|
viewportSize: Ae.size
|
|
677
677
|
}), A = T === null || e.highlighted === null ? -1 : T.findIndex((t) => t.id === e.highlighted);
|
|
678
678
|
g(() => {
|
|
679
|
-
k === null || l === null || A < 0 || O === void 0 || A >= k.startIndex && A < k.endIndex || (l.scrollTop =
|
|
679
|
+
k === null || l === null || A < 0 || O === void 0 || A >= k.startIndex && A < k.endIndex || (l.scrollTop = ge({
|
|
680
680
|
index: A,
|
|
681
681
|
itemCount: T?.length ?? 0,
|
|
682
682
|
metrics: O,
|
|
@@ -878,7 +878,7 @@ function Ve() {
|
|
|
878
878
|
]
|
|
879
879
|
})
|
|
880
880
|
});
|
|
881
|
-
return u === null ? Ke :
|
|
881
|
+
return u === null ? Ke : xe(Ke, u);
|
|
882
882
|
}
|
|
883
883
|
//#endregion
|
|
884
884
|
//#region src/entity-picker/entity-picker.tsx
|
|
@@ -917,10 +917,10 @@ function Ke(e) {
|
|
|
917
917
|
return Array.isArray(e) ? e : typeof e == "string" ? [e] : [];
|
|
918
918
|
}
|
|
919
919
|
function qe(n) {
|
|
920
|
-
let { clearable: r, defaultHighlightedValue: i = null, defaultInputValue: a, defaultOpen: s = !1, defaultScope: c = null, disabled: l, entities: ee = F, favorites: u = F, fullWidth: te, handleRef: d, highlightMatch: ne, highlightedValue: re, inputValue: ie, invalid: ae, items: m, locale: g, messages: le, loop: ue, max: de, media: pe, minQueryLength: me, onCreate: he, open: ge, openOn: _e, overflow:
|
|
920
|
+
let { clearable: r, defaultHighlightedValue: i = null, defaultInputValue: a, defaultOpen: s = !1, defaultScope: c = null, disabled: l, entities: ee = F, favorites: u = F, fullWidth: te, handleRef: d, highlightMatch: ne, highlightedValue: re, inputValue: ie, invalid: ae, items: m, locale: g, messages: le, loop: ue, max: de, media: pe, minQueryLength: me, onCreate: he, open: ge, openOn: _e, overflow: ve, portal: ye, readOnly: be, recent: xe = F, required: C, scope: w, searchDelay: T, side: Ee, size: E, source: Ae, strategy: D, variant: O, width: k } = n, j = n.selectionMode === "multiple", M = A(), N = o(), Me = oe(), Ne = `${Me}listbox`, Pe = `${Me}input`, Ie = p((e) => `${Me}option-${encodeURIComponent(e)}`, [Me]), P = t(fe, le), Le = e(), Re = g ?? Le, ze = l ?? N?.disabled ?? M.disabled, Be = be ?? N?.readOnly ?? M.readOnly, Ue = me ?? M.minQueryLength, [qe, Je] = v(0), Ye = p(() => Je((e) => e + 1), []), Xe = _(null);
|
|
921
921
|
Xe.current === null && (Xe.current = Ce());
|
|
922
922
|
let I = Xe.current;
|
|
923
|
-
I.remember(ee), I.remember(u), I.remember(
|
|
923
|
+
I.remember(ee), I.remember(u), I.remember(xe);
|
|
924
924
|
let Ze = ce(() => Ae ?? ke(m ?? F, { locale: Re }), [
|
|
925
925
|
m,
|
|
926
926
|
Re,
|
|
@@ -984,7 +984,7 @@ function qe(n) {
|
|
|
984
984
|
typed: W
|
|
985
985
|
};
|
|
986
986
|
let Y = p((e) => {
|
|
987
|
-
|
|
987
|
+
x(q?.ownerDocument).announce(e, { repeat: !0 });
|
|
988
988
|
}, [q]), X = p((e, t, n) => {
|
|
989
989
|
let r = J.current, i = r.currentIds;
|
|
990
990
|
if (e.length === i.length && e.every((e, t) => e === i[t])) return !1;
|
|
@@ -1174,7 +1174,7 @@ function qe(n) {
|
|
|
1174
1174
|
scope: H,
|
|
1175
1175
|
chosen: j ? I.pick(V) : F,
|
|
1176
1176
|
favorites: u,
|
|
1177
|
-
recent:
|
|
1177
|
+
recent: xe,
|
|
1178
1178
|
results: $.status === "error" || $.status === "short" ? $.items : zt,
|
|
1179
1179
|
searchedEmpty: Ue === 0,
|
|
1180
1180
|
labels: {
|
|
@@ -1234,8 +1234,8 @@ function qe(n) {
|
|
|
1234
1234
|
openOn: _e ?? M.openOn,
|
|
1235
1235
|
optionId: Ie,
|
|
1236
1236
|
options: Wt,
|
|
1237
|
-
overflow:
|
|
1238
|
-
portal:
|
|
1237
|
+
overflow: ve ?? M.overflow,
|
|
1238
|
+
portal: ye ?? M.portal,
|
|
1239
1239
|
props: n,
|
|
1240
1240
|
query: K,
|
|
1241
1241
|
readOnly: Be,
|
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-DfoAxqaa.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 };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { n as e, r as t } from "./i18n-D7xXDd8-.js";
|
|
2
2
|
import { n, t as r } from "./icon-D04-_QFA.js";
|
|
3
|
-
import { _ as i, n as a, r as o, t as s } from "./menu-parts-
|
|
3
|
+
import { _ as i, n as a, r as o, t as s } from "./menu-parts-DNQDoJnd.js";
|
|
4
4
|
import { c, d as l, i as u, l as d, n as f, o as p, r as m, s as h } from "./drawer-Du1aC1px.js";
|
|
5
5
|
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
|
-
import { n as se, r as y, t as ce } from "./context-menu-
|
|
9
|
-
import { a as le, t as ue } from "./segmented-control-
|
|
8
|
+
import { n as se, r as y, t as ce } from "./context-menu-BJyDD17g.js";
|
|
9
|
+
import { a as le, t as ue } from "./segmented-control-BINpaKhI.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-CFw9KKAm.js";
|
|
2
2
|
export { t as EVENT_CALENDAR_FALLBACK, r as EventCalendar, n as EventCalendarDefaultsProvider, e as useEventCalendarDefaults };
|
|
@@ -112,10 +112,10 @@ function R(e, t) {
|
|
|
112
112
|
function z({ children: t, htmlFor: n, id: r, ref: i, render: a, ...o }) {
|
|
113
113
|
let s = E(), c = e(w), l = D(s?.necessity ?? "mark", s?.required === !0, s?.t ?? c), f = u({
|
|
114
114
|
...o,
|
|
115
|
-
children: /* @__PURE__ */ C(x, { children: [t, l === null ? null : /* @__PURE__ */ S("span", {
|
|
115
|
+
children: /* @__PURE__ */ C(x, { children: [t, l === null ? null : /* @__PURE__ */ C(x, { children: [" ", /* @__PURE__ */ S("span", {
|
|
116
116
|
...d(l.hidden ? { "aria-hidden": !0 } : {}, "part", "mark"),
|
|
117
117
|
children: l.text
|
|
118
|
-
})] }),
|
|
118
|
+
})] })] }),
|
|
119
119
|
"data-part": "label",
|
|
120
120
|
htmlFor: n ?? s?.ids.control,
|
|
121
121
|
id: r ?? s?.ids.label
|