@umriss-ui/core 0.35.0 → 0.37.0

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/index.d.ts CHANGED
@@ -2386,11 +2386,13 @@ export declare interface UmrissProviderProps {
2386
2386
  */
2387
2387
  density?: Density;
2388
2388
  /**
2389
- * Where overlays portal to. A function is evaluated on every opening - a
2390
- * target that only enters the tree later cannot be given otherwise; `null`
2391
- * means "as before". The callers' own rules take precedence: the popover
2392
- * seam portals into the nearest `<dialog>` ancestor, because a portal at the
2393
- * body does not reach the top layer.
2389
+ * Where overlays portal to, unless an open dialog takes them. A function is
2390
+ * evaluated on every opening - a target that only enters the tree later
2391
+ * cannot be given otherwise; `null` means "as before".
2392
+ * The callers' own rules take precedence: the popover seam portals into the
2393
+ * nearest `<dialog>` ancestor, because a portal at the body does not reach
2394
+ * the top layer, and the toasts follow the topmost modal dialog, because a
2395
+ * toast outside it lies behind it and is inert.
2394
2396
  */
2395
2397
  portalTarget?: PortalTarget;
2396
2398
  /** The setting for toasts: the display duration where the individual toast
package/docs/llms-full.md CHANGED
@@ -1,4 +1,4 @@
1
- # @umriss-ui/core 0.35.0
1
+ # @umriss-ui/core 0.37.0
2
2
 
3
3
  > React component library for data-dense dashboards and tools - forms, date pickers, overlays, a tree view and a command palette. Precise, quiet, professional.
4
4
 
@@ -2572,6 +2572,10 @@ export default function EverythingAtOnce() {
2572
2572
 
2573
2573
  The keys of [Button](#/button/keyboard-button), [Menu](#/menu/keyboard-menu) and [DatePicker](#/datepicker/keyboard-datepicker) apply here.
2574
2574
 
2575
+ #### Accessibility
2576
+
2577
+ Where a `ToastProvider` stands inside it, the toasts' two live regions stand where the overlays go: in the `portalTarget` before the first message, so that it is heard there, and inside the topmost modal dialog while one is open. [Toast](#/toast) describes them.
2578
+
2575
2579
  #### API
2576
2580
 
2577
2581
  ##### `UmrissProviderProps`
@@ -2579,7 +2583,7 @@ The keys of [Button](#/button/keyboard-button), [Menu](#/menu/keyboard-menu) and
2579
2583
  | Prop | Type | Default | Description |
2580
2584
  |---|---|---|---|
2581
2585
  | `density` | [`Density`](#type-Density)<br>`"comfortable" \| "compact"` | none - a component keeps its own density | The default for the `density` of every component that reads it with `useDensityFor` - in `@umriss-ui/table` `Table`, in `@umriss-ui/calculation` `Calculation` ("comfortable" means "regular").<br>Shown in: [Set up an application](#/umrissprovider/everything-at-once) |
2582
- | `portalTarget` | [`PortalTarget`](#type-PortalTarget) | `null` | Where overlays portal to. A function is evaluated on every opening - a target that only enters the tree later cannot be given otherwise; `null` means "as before". The callers' own rules take precedence: the popover seam portals into the nearest `<dialog>` ancestor, because a portal at the body does not reach the top layer.<br>Shown in: [Open overlays inside a full-screen panel](#/umrissprovider/portal-target), [Set up an application](#/umrissprovider/everything-at-once) |
2586
+ | `portalTarget` | [`PortalTarget`](#type-PortalTarget) | `null` | Where overlays portal to, unless an open dialog takes them. A function is evaluated on every opening - a target that only enters the tree later cannot be given otherwise; `null` means "as before". The callers' own rules take precedence: the popover seam portals into the nearest `<dialog>` ancestor, because a portal at the body does not reach the top layer, and the toasts follow the topmost modal dialog, because a toast outside it lies behind it and is inert.<br>Shown in: [Open overlays inside a full-screen panel](#/umrissprovider/portal-target), [Set up an application](#/umrissprovider/everything-at-once) |
2583
2587
  | `toast` | [`ToastConfig`](#type-ToastConfig) | — | The setting for toasts: the display duration where the individual toast names none, where they stand, and how many stand at once.<br>Shown in: [At the root](#/umrissprovider/at-the-root), [Set up an application](#/umrissprovider/everything-at-once), [Where they stand (Toast)](#/toast/where-they-stand) and 1 more |
2584
2588
  | `language` | [`LanguageOptions`](#/language/type-LanguageOptions) | none - the surrounding language holds, English at the root | Formats and wording, entry by entry - see [Language](#/language).<br>Shown in: [Set up an application](#/umrissprovider/everything-at-once) |
2585
2589
  | `children` *required* | `ReactNode` | — | The subtree the settings apply to.<br>Shown in: [At the root](#/umrissprovider/at-the-root), [Open overlays inside a full-screen panel](#/umrissprovider/portal-target), [Set up an application](#/umrissprovider/everything-at-once) and 2 more |
@@ -2911,14 +2915,16 @@ One look for every component. A soft glow would read as a second, shadowy border
2911
2915
  | `--u-button-padding-sm` | `6px` | same | — |
2912
2916
  | `--u-drawer-width` | `400px` | same | The width of a drawer A token rather than a size prop: a detail beside a process picture wants one width across an application, and one drawer that needs another sets it in its `style`. |
2913
2917
 
2914
- ##### Toast (toast-inset-tokens)
2918
+ ##### Toast
2915
2919
 
2916
- How far the toasts stand from the window's top and bottom edge - set it to keep them clear of a fixed header or a toolbar at the bottom. The region hangs in `body`, so set them on `:root`; a media query of your own may set another value per width.
2920
+ How far the toasts stand from the window's top and bottom edge and from its sides - set it to keep them clear of a fixed header, a toolbar at the bottom or a navigation rail at the side. The region hangs in `body`, so set them on `:root`; a media query of your own may set another value per width. The center positions stand in the middle of the window whatever the side tokens are.
2917
2921
 
2918
2922
  | Token | Light | Dark | Description |
2919
2923
  |---|---|---|---|
2920
2924
  | `--u-toast-inset-top` | `var(`[--u-space-5](#token-u-space-5)`)` | same | for the three `top-*` positions; `var(--u-space-4)` up to 600 px wide |
2921
2925
  | `--u-toast-inset-bottom` | `var(`[--u-space-5](#token-u-space-5)`)` | same | for the three `bottom-*` positions; `var(--u-space-4)` up to 600 px wide |
2926
+ | `--u-toast-inset-start` | `var(`[--u-space-5](#token-u-space-5)`)` | same | for the `*-start` positions, and on a phone the room at the start side; `var(--u-space-4)` up to 600 px wide |
2927
+ | `--u-toast-inset-end` | `var(`[--u-space-5](#token-u-space-5)`)` | same | for the `*-end` positions, and on a phone the room at the end side; `var(--u-space-4)` up to 600 px wide |
2922
2928
 
2923
2929
  ##### Shadow stacks: every step has one job
2924
2930
 
@@ -2981,7 +2987,7 @@ Continuous process. A spinner or a shimmer has no start and no end; it runs stea
2981
2987
 
2982
2988
  ##### Stacking order
2983
2989
 
2984
- Popovers portal into the nearest <dialog> ancestor, and this scale orders the rest.
2990
+ Popovers portal into the nearest <dialog> ancestor, and this scale orders the rest. The toasts also move into the topmost modal dialog. Inside a dialog the toasts and the tooltips stand in the top layer, which orders by the moment of showing and not by these numbers: a tooltip is shown after the toasts and lies above them, as the scale has it; popovers stay under the toasts.
2985
2991
 
2986
2992
  | Token | Light | Dark | Description |
2987
2993
  |---|---|---|---|
@@ -3100,7 +3106,7 @@ From `BadgeProps` — the full table stands on [Badge](#/badge/type-BadgeProps).
3100
3106
 
3101
3107
  - No theme object, no theme provider and no theme switch: a theme is a set of token overrides in your stylesheet, the mode is the page's `color-scheme` ([ADR-0021](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0021-the-styles-load-themselves-and-touch-nothing-else.md)).
3102
3108
  - A token that names another resolves where it is declared: set `--u-color-accent` on a region, and `--u-focus-ring`, which names it on `:root`, still draws the application's accent there. Set the naming token in the region too.
3103
- - A panel opened in a portal - a popover, a tooltip, a toast - takes the tokens and the `color-scheme` of the place it lands, not of the region it was opened from. Give [UmrissProvider](#/umrissprovider) a `portalTarget` inside the region, or override on `:root` - as for the toasts' distance from the window's edge, `--u-toast-inset-top` and `--u-toast-inset-bottom`.
3109
+ - A panel opened in a portal - a popover, a tooltip, a toast - takes the tokens and the `color-scheme` of the place it lands, not of the region it was opened from; inside a dialog the toasts take the tokens of the dialog's place. Give [UmrissProvider](#/umrissprovider) a `portalTarget` inside the region, or override on `:root` - as for the toasts' distance from the window's edge and its sides, `--u-toast-inset-top`, `--u-toast-inset-bottom`, `--u-toast-inset-start` and `--u-toast-inset-end`.
3104
3110
 
3105
3111
  What umriss deliberately does not build, and why: [ADR-0032](https://romanhaendler.github.io/umriss-ui/what-umriss-ui-is-not/).
3106
3112
 
@@ -6004,9 +6010,9 @@ export default function IncidentSummary() {
6004
6010
  | Prop | Type | Default | Description |
6005
6011
  |---|---|---|---|
6006
6012
  | `as` | `ElementType` | `"p"` | Element to render as.<br>Shown in: [Tones and weights](#/typography/tones-and-weights), [Set an incident summary](#/typography/incident-summary), [Use the language in your own components (Language)](#/language/own-components) and 17 more |
6007
- | `size` | [`TextSize`](#type-TextSize)<br>`"xs" \| "sm" \| "md" \| "lg" \| "xl" \| "2xl"` | `"md"` | Type size from the token set. It is independent of the element: a `p` may be small without becoming a different element.<br>Shown in: [Configurator](#/typography/configurator-typography), [Sizes](#/typography/sizes), [Tones and weights](#/typography/tones-and-weights) and 128 more |
6013
+ | `size` | [`TextSize`](#type-TextSize)<br>`"xs" \| "sm" \| "md" \| "lg" \| "xl" \| "2xl"` | `"md"` | Type size from the token set. It is independent of the element: a `p` may be small without becoming a different element.<br>Shown in: [Configurator](#/typography/configurator-typography), [Sizes](#/typography/sizes), [Tones and weights](#/typography/tones-and-weights) and 129 more |
6008
6014
  | `weight` | [`TextWeight`](#type-TextWeight)<br>`"regular" \| "medium" \| "semibold"` | `"regular"` | Font weight from the token set.<br>Shown in: [Configurator](#/typography/configurator-typography), [Tones and weights](#/typography/tones-and-weights), [Tracking and leading](#/typography/tracking-and-leading) and 15 more |
6009
- | `tone` | [`TextTone`](#type-TextTone)<br>`"default" \| "secondary" \| "muted"` | `"default"` | How loud the text is. `secondary` and `muted` step back without falling below the contrast threshold.<br>Shown in: [Configurator](#/typography/configurator-typography), [Tones and weights](#/typography/tones-and-weights), [Tracking and leading](#/typography/tracking-and-leading) and 93 more |
6015
+ | `tone` | [`TextTone`](#type-TextTone)<br>`"default" \| "secondary" \| "muted"` | `"default"` | How loud the text is. `secondary` and `muted` step back without falling below the contrast threshold.<br>Shown in: [Configurator](#/typography/configurator-typography), [Tones and weights](#/typography/tones-and-weights), [Tracking and leading](#/typography/tracking-and-leading) and 94 more |
6010
6016
  | `mono` | `boolean` | `false` | Geist Mono with tabular figures – for numbers and identifiers.<br>Shown in: [Configurator](#/typography/configurator-typography), [Numbers and identifiers](#/typography/numbers), [Handle long values](#/typography/long-values) and 31 more |
6011
6017
  | `tracking` | [`TextTracking`](#type-TextTracking)<br>`"normal" \| "tight" \| "display" \| "caps"` | `"normal"` | Letter spacing from the token set. `caps` belongs with letterspaced capitals.<br>Shown in: [Configurator](#/typography/configurator-typography), [Tracking and leading](#/typography/tracking-and-leading), [Set an incident summary](#/typography/incident-summary) |
6012
6018
  | `leading` | [`TextLeading`](#type-TextLeading)<br>`"normal" \| "tight"` | `"normal"` | Line spacing. `tight` for multi-line headings and key figures, where the normal spacing lets the lines fall apart.<br>Shown in: [Configurator](#/typography/configurator-typography), [Tracking and leading](#/typography/tracking-and-leading) |
@@ -6499,8 +6505,8 @@ Under forced colours every variant keeps an outline where its edge would lie, an
6499
6505
 
6500
6506
  | Prop | Type | Default | Description |
6501
6507
  |---|---|---|---|
6502
- | `variant` | [`ButtonVariant`](#type-ButtonVariant)<br>`"primary" \| "secondary" \| "ghost" \| "plain" \| "danger"` | `"secondary"` | How loud the button is. `primary` exactly once per surface - two main actions side by side are no longer a main action. `ghost` is quiet in the accent, `plain` quiet and neutral.<br>Shown in: [Configurator](#/button/configurator-button), [Variants](#/button/variants), [Sizes](#/button/sizes) and 51 more |
6503
- | `size` | [`ButtonSize`](#type-ButtonSize)<br>`"sm" \| "md"` | the size of a `ControlSizeProvider` around it, else `"md"` | `sm` for buttons in header bars and table rows, `md` otherwise.<br>Shown in: [Configurator](#/button/configurator-button), [Sizes](#/button/sizes), [Add an icon](#/button/with-an-icon) and 56 more |
6508
+ | `variant` | [`ButtonVariant`](#type-ButtonVariant)<br>`"primary" \| "secondary" \| "ghost" \| "plain" \| "danger"` | `"secondary"` | How loud the button is. `primary` exactly once per surface - two main actions side by side are no longer a main action. `ghost` is quiet in the accent, `plain` quiet and neutral.<br>Shown in: [Configurator](#/button/configurator-button), [Variants](#/button/variants), [Sizes](#/button/sizes) and 52 more |
6509
+ | `size` | [`ButtonSize`](#type-ButtonSize)<br>`"sm" \| "md"` | the size of a `ControlSizeProvider` around it, else `"md"` | `sm` for buttons in header bars and table rows, `md` otherwise.<br>Shown in: [Configurator](#/button/configurator-button), [Sizes](#/button/sizes), [Add an icon](#/button/with-an-icon) and 57 more |
6504
6510
  | `loading` | `boolean` | `false` | Shows a loading indicator and locks the button.<br>Shown in: [Configurator](#/button/configurator-button), [Loading and disabled](#/button/loading-and-disabled), [Submit a form](#/button/submit-a-form) and 4 more |
6505
6511
  | `ref` | `Ref<HTMLButtonElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
6506
6512
 
@@ -6853,7 +6859,7 @@ export default function Toolbar() {
6853
6859
  |---|---|---|---|
6854
6860
  | `children` *required* | `ReactNode` | — | The icon: an SVG, a glyph of the set or an icon font's element. The button sets its size - `--u-icon-size`, `--u-icon-size-sm` at `sm`.<br>Shown in: [Configurator](#/iconbutton/configurator-iconbutton), [Name the icon](#/iconbutton/name-the-icon), [Variants](#/iconbutton/variants) and 5 more |
6855
6861
  | `variant` | [`ButtonVariant`](#type-ButtonVariant)<br>`"primary" \| "secondary" \| "ghost" \| "plain" \| "danger"` | `"plain"` | How loud the button is; `plain` is quiet and neutral, and the rest mean what they mean on a `Button`.<br>Shown in: [Configurator](#/iconbutton/configurator-iconbutton), [Variants](#/iconbutton/variants), [Sizes](#/iconbutton/sizes) and 3 more |
6856
- | `size` | [`ButtonSize`](#type-ButtonSize)<br>`"sm" \| "md"` | the size of a `ControlSizeProvider` around it, else `"md"` | `sm` for buttons in header bars and table rows, `md` otherwise. From `ButtonProps`.<br>Shown in: [Configurator](#/iconbutton/configurator-iconbutton), [Sizes](#/iconbutton/sizes), [Build a toolbar](#/iconbutton/a-toolbar) and 56 more |
6862
+ | `size` | [`ButtonSize`](#type-ButtonSize)<br>`"sm" \| "md"` | the size of a `ControlSizeProvider` around it, else `"md"` | `sm` for buttons in header bars and table rows, `md` otherwise. From `ButtonProps`.<br>Shown in: [Configurator](#/iconbutton/configurator-iconbutton), [Sizes](#/iconbutton/sizes), [Build a toolbar](#/iconbutton/a-toolbar) and 57 more |
6857
6863
  | `loading` | `boolean` | `false` | Shows a loading indicator and locks the button. From `ButtonProps`.<br>Shown in: [Configurator](#/iconbutton/configurator-iconbutton), [Loading and disabled](#/iconbutton/loading-and-disabled), [Configurator (Button)](#/button/configurator-button) and 4 more |
6858
6864
  | `ref` | `Ref<HTMLButtonElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
6859
6865
 
@@ -7728,7 +7734,7 @@ The keys of [Input](#/input/keyboard-input), [NumberInput](#/numberinput/keyboar
7728
7734
 
7729
7735
  | Prop | Type | Default | Description |
7730
7736
  |---|---|---|---|
7731
- | `label` *required* | `ReactNode` | — | The label of the field. It is mandatory: a field without a name is a field without a question for a screen reader.<br>Shown in: [Configurator](#/formfield/configurator-formfield), [Label and hint](#/formfield/label-and-hint), [Show an error](#/formfield/show-an-error) and 76 more |
7737
+ | `label` *required* | `ReactNode` | — | The label of the field. It is mandatory: a field without a name is a field without a question for a screen reader.<br>Shown in: [Configurator](#/formfield/configurator-formfield), [Label and hint](#/formfield/label-and-hint), [Show an error](#/formfield/show-an-error) and 77 more |
7732
7738
  | `hint` | `ReactNode` | — | Help text below the field. Replaced by `error`.<br>Shown in: [Configurator](#/formfield/configurator-formfield), [Label and hint](#/formfield/label-and-hint), [Show an error](#/formfield/show-an-error) and 33 more |
7733
7739
  | `error` | `ReactNode` | — | Error message; it marks the field as invalid at the same time.<br>Shown in: [Configurator](#/formfield/configurator-formfield), [Show an error](#/formfield/show-an-error), [Check an invoice on submit](#/formfield/check-an-invoice-on-submit) and 22 more |
7734
7740
  | `required` | `boolean` | `false` | Sets the required mark on the label and `aria-required` on the field - on Input, Select, Textarea, NumberInput, Combobox, RadioGroup and Checkbox. The triggers of the pickers and of the MultiSelect are buttons, on which `aria-required` is not a permitted attribute; there the mark carries it alone. It validates nothing - validation belongs to the caller ([ADR-0060](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0060-validation-and-a-layout-editor-are-never-time-zones-not-yet.md)).<br>Shown in: [Configurator](#/formfield/configurator-formfield), [Mark a field as required](#/formfield/mark-a-field-as-required), [Check an invoice on submit](#/formfield/check-an-invoice-on-submit) and 9 more |
@@ -11684,6 +11690,8 @@ Demo page: https://romanhaendler.github.io/umriss-ui/core/toast/
11684
11690
 
11685
11691
  [`useToast`](#/api/useToast) needs a `ToastProvider` around the application, once, at the root.
11686
11692
 
11693
+ Toasts stand above an open modal dialog and can be used there: they are seen, pressed and heard, and stay where they were while a dialog opens or closes.
11694
+
11687
11695
  A toast stays five seconds by default. Its clock stops while the deck is open – under the pointer, with the focus inside it – and runs on with the time that was left.
11688
11696
 
11689
11697
  The title says what has happened, in about one line: “Invoice not sent”. Why, and what to do next, go in the description.
@@ -11983,7 +11991,7 @@ export default function AfterAnAction() {
11983
11991
 
11984
11992
  ##### Where they stand
11985
11993
 
11986
- `toast.position` in the `UmrissProvider` puts every toast of the application at one edge and one place along it; the deck grows away from that edge. On a phone they take the window's width, and only the edge counts. How far they stand from the edge is `--u-toast-inset-top` and `--u-toast-inset-bottom` on `:root` - below a fixed header, above a toolbar at the bottom.
11994
+ `toast.position` in the `UmrissProvider` puts every toast of the application at one edge and one place along it; the deck grows away from that edge. On a phone they take the window's width, and only the edge counts. How far they stand from the edge is `--u-toast-inset-top` and `--u-toast-inset-bottom` on `:root` - below a fixed header, above a toolbar at the bottom; how far from the window's sides, `--u-toast-inset-start` and `--u-toast-inset-end` - beside a navigation rail, at the page's gutter.
11987
11995
 
11988
11996
  ```tsx
11989
11997
  import { useMemo, useState } from "react";
@@ -12070,6 +12078,74 @@ export default function HowManyStand() {
12070
12078
  }
12071
12079
  ```
12072
12080
 
12081
+ ##### Inside a modal
12082
+
12083
+ A toast stands above an open modal dialog and can be pressed there: the dialog's "Save" fails, and the toast carries "Retry" next to the form it belongs to.
12084
+
12085
+ ```tsx
12086
+ import { useState } from "react";
12087
+ import { Button, FormField, Input, Modal, ModalBody, ModalFooter, ModalHeader, Select, Text, ToastProvider, Tooltip, useToast } from "@umriss-ui/core";
12088
+
12089
+ function Content() {
12090
+ const { toast } = useToast();
12091
+ const [open, setOpen] = useState(false);
12092
+
12093
+ const save = () =>
12094
+ toast({
12095
+ title: "Profile not saved",
12096
+ description: "The server did not answer.",
12097
+ tone: "danger",
12098
+ /* A failure stays until it is read. */
12099
+ duration: 0,
12100
+ action: { label: "Retry", onClick: save },
12101
+ });
12102
+
12103
+ return (
12104
+ <>
12105
+ <Button onClick={() => setOpen(true)}>Edit the profile</Button>
12106
+ <Modal open={open} onClose={() => setOpen(false)} size="sm">
12107
+ <ModalHeader title="Edit the profile" description="Changes are saved to the account." />
12108
+ <ModalBody>
12109
+ <FormField label="Display name">
12110
+ <Input defaultValue="Maya Lindgren" />
12111
+ </FormField>
12112
+ <FormField label="Language">
12113
+ <Select defaultValue="en">
12114
+ <option value="en">English</option>
12115
+ <option value="de">Deutsch</option>
12116
+ <option value="fr">Français</option>
12117
+ <option value="es">Español</option>
12118
+ </Select>
12119
+ </FormField>
12120
+ <Tooltip content="Shows the profile as colleagues see it.">
12121
+ <Button size="sm" variant="secondary">
12122
+ Preview
12123
+ </Button>
12124
+ </Tooltip>
12125
+ <Text size="xs" tone="muted">
12126
+ Nothing is kept until it is saved.
12127
+ </Text>
12128
+ </ModalBody>
12129
+ <ModalFooter>
12130
+ <Button onClick={() => setOpen(false)}>Cancel</Button>
12131
+ <Button variant="primary" onClick={save}>
12132
+ Save
12133
+ </Button>
12134
+ </ModalFooter>
12135
+ </Modal>
12136
+ </>
12137
+ );
12138
+ }
12139
+
12140
+ export default function InsideAModal() {
12141
+ return (
12142
+ <ToastProvider>
12143
+ <Content />
12144
+ </ToastProvider>
12145
+ );
12146
+ }
12147
+ ```
12148
+
12073
12149
  #### When to use something else
12074
12150
 
12075
12151
  - The reader must see it, or it stays true until something is done → Alert
@@ -12094,17 +12170,19 @@ The count on a deck of several is out of the tab order, since a focus on it woul
12094
12170
 
12095
12171
  With reduced motion toasts appear, stack and leave without movement.
12096
12172
 
12173
+ Inside a modal dialog the live regions move with the toasts, so a message is heard there as well as outside.
12174
+
12097
12175
  #### API
12098
12176
 
12099
12177
  ##### `ToastOptions`
12100
12178
 
12101
12179
  | Prop | Type | Default | Description |
12102
12180
  |---|---|---|---|
12103
- | `title` *required* | `string` | — | What has happened – short, about one line (some 45 characters), in the perfect tense and not a request: "Invoice not sent". Why, and what to do next, belong in the description. A longer title wraps; it is never cut.<br>Shown in: [Show a toast](#/toast/show-a-toast), [Tones](#/toast/tones), [Undo](#/toast/undo) and 11 more |
12104
- | `description` | `string` | — | One more sentence where the title alone is too little. Nothing the reader MUST read: the toast goes away by itself.<br>Shown in: [Show a toast](#/toast/show-a-toast), [Tones](#/toast/tones), [Undo](#/toast/undo) and 9 more |
12105
- | `tone` | [`ToastTone`](#type-ToastTone)<br>`"neutral" \| "success" \| "warning" \| "danger" \| "loading"` | — | How the message turns out. The tone is never the only information – the glyph beside it and the text say the same thing once more. `loading` shows a spinner, has no close button and does not leave by itself: turn it into its outcome with `update`.<br>Shown in: [Tones](#/toast/tones), [Keep it until it is closed](#/toast/until-closed), [Save, and say how it went](#/toast/save-with-loading) and 8 more |
12106
- | `duration` | `number` | the provider's `duration`, else `5000` | Display duration in ms; 0 = stays until closed by hand.<br>Shown in: [Keep it until it is closed](#/toast/until-closed) |
12107
- | `action` | [`ToastAction`](#type-ToastAction) | — | One action - "Undo". Never the only way to do what it offers: the toast leaves by itself, and not everybody reaches it in time. More than one action is a dialog.<br>Shown in: [Undo](#/toast/undo), [Save, and say how it went](#/toast/save-with-loading) |
12181
+ | `title` *required* | `string` | — | What has happened – short, about one line (some 45 characters), in the perfect tense and not a request: "Invoice not sent". Why, and what to do next, belong in the description. A longer title wraps; it is never cut.<br>Shown in: [Show a toast](#/toast/show-a-toast), [Tones](#/toast/tones), [Undo](#/toast/undo) and 12 more |
12182
+ | `description` | `string` | — | One more sentence where the title alone is too little. Nothing the reader MUST read: the toast goes away by itself.<br>Shown in: [Show a toast](#/toast/show-a-toast), [Tones](#/toast/tones), [Undo](#/toast/undo) and 10 more |
12183
+ | `tone` | [`ToastTone`](#type-ToastTone)<br>`"neutral" \| "success" \| "warning" \| "danger" \| "loading"` | — | How the message turns out. The tone is never the only information – the glyph beside it and the text say the same thing once more. `loading` shows a spinner, has no close button and does not leave by itself: turn it into its outcome with `update`.<br>Shown in: [Tones](#/toast/tones), [Keep it until it is closed](#/toast/until-closed), [Save, and say how it went](#/toast/save-with-loading) and 9 more |
12184
+ | `duration` | `number` | the provider's `duration`, else `5000` | Display duration in ms; 0 = stays until closed by hand.<br>Shown in: [Keep it until it is closed](#/toast/until-closed), [Inside a modal](#/toast/inside-a-modal) |
12185
+ | `action` | [`ToastAction`](#type-ToastAction) | — | One action - "Undo". Never the only way to do what it offers: the toast leaves by itself, and not everybody reaches it in time. More than one action is a dialog.<br>Shown in: [Undo](#/toast/undo), [Save, and say how it went](#/toast/save-with-loading), [Inside a modal](#/toast/inside-a-modal) |
12108
12186
 
12109
12187
  ###### Events
12110
12188
 
@@ -12116,13 +12194,13 @@ With reduced motion toasts appear, stack and leave without movement.
12116
12194
 
12117
12195
  | Prop | Type | Default | Description |
12118
12196
  |---|---|---|---|
12119
- | `label` *required* | `string` | — | A verb for what it does - "Undo", "Show".<br>Shown in: [Undo](#/toast/undo), [Save, and say how it went](#/toast/save-with-loading) |
12197
+ | `label` *required* | `string` | — | A verb for what it does - "Undo", "Show".<br>Shown in: [Undo](#/toast/undo), [Save, and say how it went](#/toast/save-with-loading), [Inside a modal](#/toast/inside-a-modal) |
12120
12198
 
12121
12199
  ###### Events
12122
12200
 
12123
12201
  | Prop | Type | Default | Description |
12124
12202
  |---|---|---|---|
12125
- | `onClick` *required* | `() => void` | — | Runs, and the toast goes with the reason `action`.<br>Shown in: [Undo](#/toast/undo), [Save, and say how it went](#/toast/save-with-loading) |
12203
+ | `onClick` *required* | `() => void` | — | Runs, and the toast goes with the reason `action`.<br>Shown in: [Undo](#/toast/undo), [Save, and say how it went](#/toast/save-with-loading), [Inside a modal](#/toast/inside-a-modal) |
12126
12204
 
12127
12205
  ##### Types on this page
12128
12206
 
@@ -12148,6 +12226,7 @@ type ToastCloseReason = "timeout" | "dismiss" | "action";
12148
12226
  - One action at most, and never the only way to what it offers: the toast leaves by itself. What needs a decision needs an [Alert](#/alert) or a [ConfirmDialog](#/confirmdialog).
12149
12227
  - One position for the whole application, set in the [UmrissProvider](#/umrissprovider); none per toast.
12150
12228
  - No queue: a toast over the limit pushes the oldest out rather than waiting.
12229
+ - Without the Popover API the deck moves with a dialog that transforms itself: inside a dialog the toasts stand in the top layer only where the browser has it, and elsewhere they are a fixed box in the dialog.
12151
12230
 
12152
12231
  What umriss deliberately does not build, and why: [ADR-0032](https://romanhaendler.github.io/umriss-ui/what-umriss-ui-is-not/).
12153
12232
 
@@ -12452,8 +12531,8 @@ export default function ACalculation() {
12452
12531
 
12453
12532
  | Prop | Type | Default | Description |
12454
12533
  |---|---|---|---|
12455
- | `content` *required* | `ReactNode` | — | Short help text; no interaction, no long content.<br>Shown in: [A tooltip](#/tooltip/a-tooltip), [Delay](#/tooltip/delay), [Explain an abbreviation](#/tooltip/an-abbreviation) and 1 more |
12456
- | `children` *required* | `ReactElement<Record<string, unknown>>` | — | Exactly one element that triggers the tooltip (must accept refs). Its own ref keeps its element: the tooltip holds the same one beside it.<br>Shown in: [A tooltip](#/tooltip/a-tooltip), [Delay](#/tooltip/delay), [Explain an abbreviation](#/tooltip/an-abbreviation) and 1 more |
12534
+ | `content` *required* | `ReactNode` | — | Short help text; no interaction, no long content.<br>Shown in: [A tooltip](#/tooltip/a-tooltip), [Delay](#/tooltip/delay), [Explain an abbreviation](#/tooltip/an-abbreviation) and 2 more |
12535
+ | `children` *required* | `ReactElement<Record<string, unknown>>` | — | Exactly one element that triggers the tooltip (must accept refs). Its own ref keeps its element: the tooltip holds the same one beside it.<br>Shown in: [A tooltip](#/tooltip/a-tooltip), [Delay](#/tooltip/delay), [Explain an abbreviation](#/tooltip/an-abbreviation) and 2 more |
12457
12536
  | `delay` | `number` | `300` | Delay in ms before the tooltip appears.<br>Shown in: [Delay](#/tooltip/delay) |
12458
12537
 
12459
12538
  #### Known limits
@@ -13424,8 +13503,8 @@ export default function MustBeAnswered() {
13424
13503
 
13425
13504
  | Prop | Type | Default | Description |
13426
13505
  |---|---|---|---|
13427
- | `open` *required* | `boolean` | — | Whether the window stands. Controlled: the opening is the caller's decision, and only the caller knows whether something may be open.<br>Shown in: [A window that holds focus](#/modal/a-window), [Sizes](#/modal/sizes), [Scroll long content](#/modal/long-content) and 9 more |
13428
- | `size` | [`ModalSize`](#type-ModalSize)<br>`"sm" \| "md" \| "lg"` | `"md"` | The width of the window. The height comes from the content; only the body scrolls, header and footer stand fast.<br>Shown in: [Sizes](#/modal/sizes), [Scroll long content](#/modal/long-content), [Guard unsaved changes](#/modal/unsaved-changes) and 2 more |
13506
+ | `open` *required* | `boolean` | — | Whether the window stands. Controlled: the opening is the caller's decision, and only the caller knows whether something may be open.<br>Shown in: [A window that holds focus](#/modal/a-window), [Sizes](#/modal/sizes), [Scroll long content](#/modal/long-content) and 10 more |
13507
+ | `size` | [`ModalSize`](#type-ModalSize)<br>`"sm" \| "md" \| "lg"` | `"md"` | The width of the window. The height comes from the content; only the body scrolls, header and footer stand fast.<br>Shown in: [Sizes](#/modal/sizes), [Scroll long content](#/modal/long-content), [Guard unsaved changes](#/modal/unsaved-changes) and 3 more |
13429
13508
  | `closeOnBackdrop` | `boolean` | `true` | Closes on a click on the backdrop.<br>Shown in: [A window that must be answered](#/modal/must-be-answered) |
13430
13509
  | `ref` | `Ref<HTMLDialogElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
13431
13510
 
@@ -13433,7 +13512,7 @@ export default function MustBeAnswered() {
13433
13512
 
13434
13513
  | Prop | Type | Default | Description |
13435
13514
  |---|---|---|---|
13436
- | `onClose` *required* | `() => void` | — | Reports every wish to close – Escape, cross, backdrop click.<br>Shown in: [A window that holds focus](#/modal/a-window), [Sizes](#/modal/sizes), [Scroll long content](#/modal/long-content) and 9 more |
13515
+ | `onClose` *required* | `() => void` | — | Reports every wish to close – Escape, cross, backdrop click.<br>Shown in: [A window that holds focus](#/modal/a-window), [Sizes](#/modal/sizes), [Scroll long content](#/modal/long-content) and 10 more |
13437
13516
 
13438
13517
  Also takes every attribute of `<dialog>` – without `onClose`.
13439
13518
 
@@ -13441,8 +13520,8 @@ Also takes every attribute of `<dialog>` – without `onClose`.
13441
13520
 
13442
13521
  | Prop | Type | Default | Description |
13443
13522
  |---|---|---|---|
13444
- | `title` *required* | `ReactNode` | — | The heading of the window. It names it for the screen reader at the same time – a dialog without a name says only "dialog".<br>Shown in: [A window that holds focus](#/modal/a-window), [Sizes](#/modal/sizes), [Scroll long content](#/modal/long-content) and 9 more |
13445
- | `description` | `ReactNode` | — | One sentence below the heading: what is to be decided here.<br>Shown in: [A window that holds focus](#/modal/a-window), [Scroll long content](#/modal/long-content), [Guard unsaved changes](#/modal/unsaved-changes) and 7 more |
13523
+ | `title` *required* | `ReactNode` | — | The heading of the window. It names it for the screen reader at the same time – a dialog without a name says only "dialog".<br>Shown in: [A window that holds focus](#/modal/a-window), [Sizes](#/modal/sizes), [Scroll long content](#/modal/long-content) and 10 more |
13524
+ | `description` | `ReactNode` | — | One sentence below the heading: what is to be decided here.<br>Shown in: [A window that holds focus](#/modal/a-window), [Scroll long content](#/modal/long-content), [Guard unsaved changes](#/modal/unsaved-changes) and 8 more |
13446
13525
  | `hideClose` | `boolean` | `false` | Hides the close button.<br>Shown in: [A window that must be answered](#/modal/must-be-answered) |
13447
13526
  | `ref` | `Ref<HTMLDivElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
13448
13527
 
@@ -13762,7 +13841,7 @@ export default function BesideAServiceList() {
13762
13841
  | Prop | Type | Default | Description |
13763
13842
  |---|---|---|---|
13764
13843
  | `side` | `"right" \| "left"` | `"right"` | The edge the drawer stands at and enters from.<br>Shown in: [From the left, and wider](#/drawer/left-and-wider) |
13765
- | `open` *required* | `boolean` | — | Whether the window stands. Controlled: the opening is the caller's decision, and only the caller knows whether something may be open. From `ModalProps`.<br>Shown in: [A detail from the edge](#/drawer/a-detail-from-the-edge), [From the left, and wider](#/drawer/left-and-wider), [Open a service's detail from its list](#/drawer/beside-a-service-list) and 9 more |
13844
+ | `open` *required* | `boolean` | — | Whether the window stands. Controlled: the opening is the caller's decision, and only the caller knows whether something may be open. From `ModalProps`.<br>Shown in: [A detail from the edge](#/drawer/a-detail-from-the-edge), [From the left, and wider](#/drawer/left-and-wider), [Open a service's detail from its list](#/drawer/beside-a-service-list) and 10 more |
13766
13845
  | `closeOnBackdrop` | `boolean` | `true` | Closes on a click on the backdrop. From `ModalProps`.<br>Shown in: [A window that must be answered (Modal)](#/modal/must-be-answered) |
13767
13846
  | `ref` | `Ref<HTMLDialogElement>` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#/sizes/a-row-that-holds-still), [An anchored surface (Popover)](#/popover/anchored-surface), [Take the width of the trigger (Popover)](#/popover/width-from-anchor) and 2 more |
13768
13847
 
@@ -13770,7 +13849,7 @@ export default function BesideAServiceList() {
13770
13849
 
13771
13850
  | Prop | Type | Default | Description |
13772
13851
  |---|---|---|---|
13773
- | `onClose` *required* | `() => void` | — | Reports every wish to close – Escape, cross, backdrop click. From `ModalProps`.<br>Shown in: [A detail from the edge](#/drawer/a-detail-from-the-edge), [From the left, and wider](#/drawer/left-and-wider), [Open a service's detail from its list](#/drawer/beside-a-service-list) and 9 more |
13852
+ | `onClose` *required* | `() => void` | — | Reports every wish to close – Escape, cross, backdrop click. From `ModalProps`.<br>Shown in: [A detail from the edge](#/drawer/a-detail-from-the-edge), [From the left, and wider](#/drawer/left-and-wider), [Open a service's detail from its list](#/drawer/beside-a-service-list) and 10 more |
13774
13853
 
13775
13854
  Also takes every attribute of `<dialog>` – without `onClose`.
13776
13855
 
@@ -18293,7 +18372,7 @@ Used on [Sizes](#/sizes) and [FileInput](#/fileinput).
18293
18372
 
18294
18373
  [FormField](#/formfield) – The frame around a field: its label, a hint below it and the error that replaces the hint. Wrap every field in one, so the question, the help and the problem are read out together.
18295
18374
 
18296
- Used on [Scenarios](#/), [UmrissProvider](#/umrissprovider), [Sizes](#/sizes), [Language](#/language), [Button](#/button), [Input](#/input), [FormField](#/formfield), [Textarea](#/textarea), [NumberInput](#/numberinput), [Slider](#/slider), [Checkbox](#/checkbox), [Switch](#/switch), [RadioGroup](#/radiogroup), [SegmentedControl](#/segmentedcontrol), [FileInput](#/fileinput), [Select](#/select), [Combobox](#/combobox), [MultiSelect](#/multiselect), [DatePicker](#/datepicker), [DateTimePicker](#/datetimepicker), [DateRangePicker](#/daterangepicker), [DateTimeRangePicker](#/datetimerangepicker), [Alert](#/alert), [Modal](#/modal), [Breadcrumb](#/breadcrumb), [Accordion](#/accordion) and [TreeView](#/treeview).
18375
+ Used on [Scenarios](#/), [UmrissProvider](#/umrissprovider), [Sizes](#/sizes), [Language](#/language), [Button](#/button), [Input](#/input), [FormField](#/formfield), [Textarea](#/textarea), [NumberInput](#/numberinput), [Slider](#/slider), [Checkbox](#/checkbox), [Switch](#/switch), [RadioGroup](#/radiogroup), [SegmentedControl](#/segmentedcontrol), [FileInput](#/fileinput), [Select](#/select), [Combobox](#/combobox), [MultiSelect](#/multiselect), [DatePicker](#/datepicker), [DateTimePicker](#/datetimepicker), [DateRangePicker](#/daterangepicker), [DateTimeRangePicker](#/datetimerangepicker), [Alert](#/alert), [Toast](#/toast), [Modal](#/modal), [Breadcrumb](#/breadcrumb), [Accordion](#/accordion) and [TreeView](#/treeview).
18297
18376
 
18298
18377
  ##### `FormFieldBoundary`
18299
18378
 
@@ -18353,7 +18432,7 @@ Used on [Button](#/button), [IconButton](#/iconbutton) and [Menu](#/menu).
18353
18432
 
18354
18433
  [Input](#/input) – A single line of text (text field, text box): names, references, addresses, search terms. Reach for it whenever the answer is short free text; for numbers take a [NumberInput](#/numberinput).
18355
18434
 
18356
- Used on [Sizes](#/sizes), [Button](#/button), [Input](#/input), [FormField](#/formfield), [Alert](#/alert), [Modal](#/modal), [CommandPalette](#/commandpalette) and [Accordion](#/accordion).
18435
+ Used on [Sizes](#/sizes), [Button](#/button), [Input](#/input), [FormField](#/formfield), [Alert](#/alert), [Toast](#/toast), [Modal](#/modal), [CommandPalette](#/commandpalette) and [Accordion](#/accordion).
18357
18436
 
18358
18437
  ##### `LanguageProvider`
18359
18438
 
@@ -18425,7 +18504,7 @@ Used on [IconButton](#/iconbutton).
18425
18504
 
18426
18505
  [Modal](#/modal) – A window above the page that holds the focus until it is answered or closed (also called a dialog). Reach for it for a short task that interrupts the page: create an item, edit its settings, read a policy.
18427
18506
 
18428
- Used on [Scenarios](#/), [Sizes](#/sizes), [Modal](#/modal), [Drawer](#/drawer) and [CommandPalette](#/commandpalette).
18507
+ Used on [Scenarios](#/), [Sizes](#/sizes), [Toast](#/toast), [Modal](#/modal), [Drawer](#/drawer) and [CommandPalette](#/commandpalette).
18429
18508
 
18430
18509
  ##### `ModalBody`
18431
18510
 
@@ -18436,7 +18515,7 @@ foot stand fast.
18436
18515
  function ModalBody({ ref, className, children, ...rest }: HTMLAttributes<HTMLDivElement> & RefProp<HTMLDivElement>): import("react").JSX.Element;
18437
18516
  ```
18438
18517
 
18439
- Used on [Scenarios](#/), [Sizes](#/sizes), [Modal](#/modal) and [Drawer](#/drawer).
18518
+ Used on [Scenarios](#/), [Sizes](#/sizes), [Toast](#/toast), [Modal](#/modal) and [Drawer](#/drawer).
18440
18519
 
18441
18520
  ##### `ModalFooter`
18442
18521
 
@@ -18446,14 +18525,14 @@ The foot of a `Modal` or `Drawer`, for its buttons; they stand at the end.
18446
18525
  function ModalFooter({ ref, className, children, ...rest }: HTMLAttributes<HTMLDivElement> & RefProp<HTMLDivElement>): import("react").JSX.Element;
18447
18526
  ```
18448
18527
 
18449
- Used on [Scenarios](#/), [Sizes](#/sizes), [Modal](#/modal) and [Drawer](#/drawer).
18528
+ Used on [Scenarios](#/), [Sizes](#/sizes), [Toast](#/toast), [Modal](#/modal) and [Drawer](#/drawer).
18450
18529
 
18451
18530
  ##### `ModalHeader`
18452
18531
 
18453
18532
  [Modal](#/modal) – The head of a `Modal` or `Drawer`: its title, which names the dialog for a
18454
18533
  screen reader, an optional sentence below it, and the close cross.
18455
18534
 
18456
- Used on [Scenarios](#/), [Sizes](#/sizes), [Modal](#/modal) and [Drawer](#/drawer).
18535
+ Used on [Scenarios](#/), [Sizes](#/sizes), [Toast](#/toast), [Modal](#/modal) and [Drawer](#/drawer).
18457
18536
 
18458
18537
  ##### `MultiSelect`
18459
18538
 
@@ -18505,7 +18584,7 @@ Used on [Sizes](#/sizes) and [SegmentedControl](#/segmentedcontrol).
18505
18584
 
18506
18585
  [Select](#/select) – One choice from a short, known list (dropdown). Under a mouse and the keys it opens the Combobox's list; under a finger the system's picker, a wheel on the phone.
18507
18586
 
18508
- Used on [Scenarios](#/), [Sizes](#/sizes), [FormField](#/formfield), [SegmentedControl](#/segmentedcontrol), [Select](#/select), [Popover](#/popover), [Modal](#/modal), [CommandPalette](#/commandpalette), [Accordion](#/accordion) and [Tag](#/tag).
18587
+ Used on [Scenarios](#/), [Sizes](#/sizes), [FormField](#/formfield), [SegmentedControl](#/segmentedcontrol), [Select](#/select), [Toast](#/toast), [Popover](#/popover), [Modal](#/modal), [CommandPalette](#/commandpalette), [Accordion](#/accordion) and [Tag](#/tag).
18509
18588
 
18510
18589
  ##### `Skeleton`
18511
18590
 
@@ -18645,7 +18724,7 @@ Used on [Scenarios](#/), [UmrissProvider](#/umrissprovider) and [Toast](#/toast)
18645
18724
 
18646
18725
  [Tooltip](#/tooltip) – A sentence of explanation that appears while the pointer rests on an element or the keyboard focus is on it (also called a hint). Reach for it to explain an abbreviation or a control; an icon button names itself as an [IconButton](#/iconbutton).
18647
18726
 
18648
- Used on [Scenarios](#/), [IconButton](#/iconbutton), [Tooltip](#/tooltip), [Popover](#/popover) and [CommandPalette](#/commandpalette).
18727
+ Used on [Scenarios](#/), [IconButton](#/iconbutton), [Toast](#/toast), [Tooltip](#/tooltip), [Popover](#/popover) and [CommandPalette](#/commandpalette).
18649
18728
 
18650
18729
  ##### `TreeSearch`
18651
18730
 
@@ -19433,6 +19512,8 @@ A complete language: the formats for numbers and dates, and the wording.
19433
19512
  | `formats` *required* | [`Formats`](#type-Formats) | — | |
19434
19513
  | `wording` *required* | [`Wording`](#type-Wording) | — | |
19435
19514
 
19515
+ Used on [Toast](#/toast).
19516
+
19436
19517
  ##### `LanguageOptions`
19437
19518
 
19438
19519
  Its table stands on [Language](#/language/type-LanguageOptions).
@@ -20314,7 +20395,7 @@ Used on [UmrissProvider](#/umrissprovider) and [Language](#/language).
20314
20395
 
20315
20396
  | Prop | Type | Default | Description |
20316
20397
  |---|---|---|---|
20317
- | `toast` *required* | `(options: `[`ToastOptions`](#/toast/type-ToastOptions)`) => number` | — | Shows a toast and returns its id.<br>Shown in: [At the root (UmrissProvider)](#/umrissprovider/at-the-root), [Set up an application (UmrissProvider)](#/umrissprovider/everything-at-once), [Show a toast (Toast)](#/toast/show-a-toast) and 11 more |
20398
+ | `toast` *required* | `(options: `[`ToastOptions`](#/toast/type-ToastOptions)`) => number` | — | Shows a toast and returns its id.<br>Shown in: [At the root (UmrissProvider)](#/umrissprovider/at-the-root), [Set up an application (UmrissProvider)](#/umrissprovider/everything-at-once), [Show a toast (Toast)](#/toast/show-a-toast) and 12 more |
20318
20399
  | `update` *required* | `(id: number, options: Partial<`[`ToastOptions`](#/toast/type-ToastOptions)`>) => void` | — | Changes a standing toast. A new tone or a new `duration` starts its time afresh - so a `loading` toast turned into `success` begins to count then. An id that no longer stands is ignored: a toast that gave way to newer ones - a `loading` one too - has said so through `onClose`.<br>Shown in: [Save, and say how it went (Toast)](#/toast/save-with-loading) |
20319
20400
  | `dismiss` *required* | `(id: number) => void` | — | Closes a toast, with the reason `dismiss`. |
20320
20401
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umriss-ui/core",
3
- "version": "0.35.0",
3
+ "version": "0.37.0",
4
4
  "description": "React component library for data-dense dashboards and tools - forms, date pickers, overlays, a tree view and a command palette. Precise, quiet, professional.",
5
5
  "license": "MIT",
6
6
  "author": "Roman Händler",