@umriss-ui/core 0.41.1 → 0.42.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
@@ -2444,8 +2444,8 @@ export declare const useDensity: () => Density;
2444
2444
  */
2445
2445
  export declare function useDensityFor(own: "regular" | "compact" | undefined, fallback: "regular" | "compact"): "regular" | "compact";
2446
2446
 
2447
- /** Only the formatting. */
2448
- export declare const useFormats: () => Formats;
2447
+ /** Only the formatting. Dates and times are empty until the page has hydrated. */
2448
+ export declare function useFormats(): Formats;
2449
2449
 
2450
2450
  /** Used by Input, Select and Checkbox to wire up id and aria automatically. */
2451
2451
  export declare function useFormField(): FormFieldContextValue | null;
package/docs/llms-full.md CHANGED
@@ -1,4 +1,4 @@
1
- # @umriss-ui/core 0.41.1
1
+ # @umriss-ui/core 0.42.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
 
@@ -2418,7 +2418,7 @@ From `ButtonProps` — the full table stands on [Button](#button).
2418
2418
  - No font is loaded or bundled.
2419
2419
  - Chrome 123, Firefox 120 and Safari 17.5 or newer; an older browser discards the tokens and shows the components unstyled.
2420
2420
 
2421
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
2421
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
2422
2422
 
2423
2423
  ### UmrissProvider
2424
2424
 
@@ -2629,7 +2629,7 @@ type ToastPosition = "top-start" | "top-center" | "top-end" | "bottom-start" | "
2629
2629
 
2630
2630
  - No theme and no default variants for components: a component is configured by its own props.
2631
2631
 
2632
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
2632
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
2633
2633
 
2634
2634
  ## Customising
2635
2635
 
@@ -2639,7 +2639,7 @@ What every component shares and an application sets once: its colours, its size,
2639
2639
 
2640
2640
  Make the components look like your product (theme, colours, dark mode, CSS variables). Every colour, size, shadow and duration they draw with is a token, a `--u-…` custom property, and the tokens are the whole styling API: override one with ordinary CSS, for the application or for one region. The table lists each with its light and dark value.
2641
2641
 
2642
- The library writes its CSS in three cascade layers, `umriss.tokens`, `umriss.base` and `umriss.components`. CSS outside any layer wins over every layered rule, whatever its specificity and whatever order the stylesheets load in, so one unlayered `:root { --u-color-accent: … }` in your stylesheet is the whole override: no `!important`, no import order ([ADR-0021](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0021-the-styles-load-themselves-and-touch-nothing-else.md)). Inside a layer of your own it wins only if that layer was named after the library's.
2642
+ The library writes its CSS in three cascade layers, `umriss.tokens`, `umriss.base` and `umriss.components`. CSS outside any layer wins over every layered rule, whatever its specificity and whatever order the stylesheets load in, so one unlayered `:root { --u-color-accent: … }` in your stylesheet is the whole override: no `!important`, no import order ([ADR-0021](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0021-the-styles-load-themselves-and-touch-nothing-else.md)). Inside a layer of your own it wins only if that layer was named after the library's; the Styles section of core's README gives the declaration for Tailwind v4 and for a wrapper library.
2643
2643
 
2644
2644
  Every token with two values is written `light-dark(<light>, <dark>)` and resolves against the `color-scheme` the element inherits. The library sets `color-scheme` nowhere: your `html.dark { color-scheme: dark }`, or your theme library's, switches the components, nothing set means light, and an element with its own `color-scheme` is a region in the other mode. An override written `light-dark(…)` follows the mode; a single colour holds in both.
2645
2645
 
@@ -2649,22 +2649,14 @@ Style through tokens only. The tokens in the table are the styling API and chang
2649
2649
 
2650
2650
  ##### Accent for the application
2651
2651
 
2652
- One rule on `:root`, outside any cascade layer, gives the whole application its own accent: it wins over the library's tokens whatever order the stylesheets load in. Set the accent's seven tokens together, each with a light and a dark value.
2652
+ One rule on `:root`, outside any cascade layer, gives the whole application its own accent: it wins over the library's tokens whatever order the stylesheets load in. Set the accent's six tokens together, each with a light and a dark value.
2653
2653
 
2654
2654
  ```tsx
2655
2655
  import type { CSSProperties } from "react";
2656
2656
  import { Badge, Button, Card, CardBody, CardHeader, Checkbox, Link, Stack, Switch, Text } from "@umriss-ui/core";
2657
2657
 
2658
- /* In an application this is one rule in its own stylesheet:
2659
-
2660
- :root {
2661
- --u-color-accent: light-dark(#4338ca, #818cf8);
2662
- --u-color-accent-hover: light-dark(#3730a3, #a5b4fc);
2663
- --u-color-accent-subtle: light-dark(#eef0fb, #1e1f3d);
2664
- --u-color-accent-subtle-pressed: light-dark(#dfe2f7, #282a52);
2665
- --u-color-accent-text: light-dark(#4338ca, #a5b4fc);
2666
- --u-color-on-accent: light-dark(#ffffff, #1e1b4b);
2667
- }
2658
+ /* In an application these tokens stand in the brand file of core's README,
2659
+ in one rule in the application's own stylesheet.
2668
2660
 
2669
2661
  Here it is set on the example's root, so the rest of the page keeps the
2670
2662
  library's petrol. */
@@ -2872,6 +2864,7 @@ One look for every component. A soft glow would read as a second, shadowy border
2872
2864
  | `--u-text-xl` | `1.1875rem` | same | — |
2873
2865
  | `--u-text-2xl` | `1.5rem` | same | — |
2874
2866
  | `--u-text-mono` | `0.75rem` | same | Figures in Geist Mono inside a control or a cell, beside --u-text-sm set in Sans. The mono cut runs wider and taller, so one step down reads as the same size. It serves as a role: the date picker's value, days and time fields, the numeric field and input, the table's numeric cells. |
2867
+ | `--u-label-size` | `var(`--u-text-sm`)` | same | The size of a FormField's label. The controls keep their own text size (--u-text-sm), so a label can be set apart from the field's text. |
2875
2868
  | `--u-leading-none` | `1` | same | A box as tall as its type: a badge, a tag, a count, a glyph. The height comes from the control or the padding, and the line adds no leading. |
2876
2869
  | `--u-leading-tight` | `1.3` | same | — |
2877
2870
  | `--u-leading-normal` | `1.5` | same | — |
@@ -2879,6 +2872,7 @@ One look for every component. A soft glow would read as a second, shadowy border
2879
2872
  | `--u-weight-medium` | `500` | same | — |
2880
2873
  | `--u-weight-semibold` | `600` | same | — |
2881
2874
  | `--u-tracking-caps` | `0.07em` | same | — |
2875
+ | `--u-transform-caps` | `uppercase` | same | The case of eyebrows, table heads, divider labels, group headings and the dashboard's mode label - everything set in spaced capitals. `none` turns the capitals off across the library. |
2882
2876
  | `--u-tracking-display` | `-0.022em` | same | large titles: slightly compressed |
2883
2877
  | `--u-tracking-tight` | `-0.011em` | same | medium titles (cards, dialogs) |
2884
2878
  | `--u-tracking-figures` | `-0.01em` | same | figures set in the mono face |
@@ -2908,7 +2902,11 @@ One look for every component. A soft glow would read as a second, shadowy border
2908
2902
  | `--u-icon-size-sm` | `12px` | same | — |
2909
2903
  | `--u-button-padding` | `10px` | same | The room left and right of a button's label, one step per control height. What stands beside a quiet button and has to align with its word hangs out by exactly this much (the date pickers' foot, the MultiSelect's quick keys) - so they read it here instead of repeating the number. |
2910
2904
  | `--u-button-padding-sm` | `6px` | same | — |
2905
+ | `--u-button-press-scale` | `0.98` | same | How far a button gives way under the pointer or a finger. `1` turns the press off. |
2911
2906
  | `--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`. |
2907
+ | `--u-modal-width-sm` | `400px` | same | The width of a modal's sheet, one per `size`; the sheet is never wider than the window. |
2908
+ | `--u-modal-width-md` | `520px` | same | — |
2909
+ | `--u-modal-width-lg` | `720px` | same | — |
2912
2910
 
2913
2911
  ##### Toast
2914
2912
 
@@ -3104,7 +3102,7 @@ From `BadgeProps` — the full table stands on [Badge](#badge).
3104
3102
  - 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.
3105
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; 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`.
3106
3104
 
3107
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
3105
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
3108
3106
 
3109
3107
  ### Sizes
3110
3108
 
@@ -3522,7 +3520,7 @@ type ControlSize = "sm" | "md";
3522
3520
  - A field does not grow to fill a row: give it room with the row's own layout (`flex: 1` on its FormField, or a grid).
3523
3521
  - A place that sizes itself by its content and has no width to stop at - an `auto` grid track, an inline block, a row that does not wrap - gives a field at least its natural width, as it gives a native input its own; on a narrow screen let such a row wrap, or size the track with `minmax(0, auto)`.
3524
3522
 
3525
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
3523
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
3526
3524
 
3527
3525
  ### Language
3528
3526
 
@@ -4555,10 +4553,10 @@ Everything the library puts out as text.
4555
4553
 
4556
4554
  #### Known limits
4557
4555
 
4558
- - Two languages ship; a third is a `Wording` object of your own. No right-to-left ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/docs/adr/0032-what-umriss-is-not.md)).
4556
+ - Two languages ship; a third is a `Wording` object of your own. No right-to-left ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md)).
4559
4557
  - It holds only what the components say themselves; your labels, titles and data are yours to translate.
4560
4558
 
4561
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
4559
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
4562
4560
 
4563
4561
  ## Layout
4564
4562
 
@@ -4905,7 +4903,7 @@ type GridColumnWidth = number | "fill";
4905
4903
  - No breakpoints and no responsive props: a grid follows the width through `minItemWidth`, anything else is your stylesheet's.
4906
4904
  - Tiles are not arranged by the user: for a dashboard the reader arranges, see `@umriss-ui/dashboard` ([ADR-0064](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0064-a-dashboard-a-user-arranges-is-a-sequence-on-fixed-columns.md)).
4907
4905
 
4908
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
4906
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
4909
4907
 
4910
4908
  ### Divider
4911
4909
 
@@ -5730,7 +5728,7 @@ Also takes every attribute of `<div>` – without `children`, `defaultValue`, `o
5730
5728
  - Two panes per splitter, no more. Tiles are not arranged by the user: for a dashboard the reader arranges, see `@umriss-ui/dashboard` ([ADR-0064](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0064-a-dashboard-a-user-arranges-is-a-sequence-on-fixed-columns.md)).
5731
5729
  - It does not remember the share beyond its own life; keep it in the user's settings through `value` and `onChange`.
5732
5730
 
5733
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
5731
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
5734
5732
 
5735
5733
  ## Typography
5736
5734
 
@@ -6166,10 +6164,10 @@ type TextLeading = "normal" | "tight";
6166
6164
  #### Known limits
6167
6165
 
6168
6166
  - No truncation and no line length: both depend on the column, which only the application knows.
6169
- - No prose styles for lists, quotes or rich text ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/docs/adr/0032-what-umriss-is-not.md)).
6167
+ - No prose styles for lists, quotes or rich text ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md)).
6170
6168
  - `Link` renders a plain `a` and knows no router; pass it the address your router resolves.
6171
6169
 
6172
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
6170
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
6173
6171
 
6174
6172
  ### VisuallyHidden
6175
6173
 
@@ -6293,7 +6291,7 @@ Also takes every attribute of the chosen element – without `as`, `ref`.
6293
6291
 
6294
6292
  - It hides from the eye only; to hide something from everyone, do not render it.
6295
6293
 
6296
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
6294
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
6297
6295
 
6298
6296
  ## Actions
6299
6297
 
@@ -6622,7 +6620,7 @@ type ControlSize = "sm" | "md";
6622
6620
  - The label stays on one line; keep it short rather than let it wrap.
6623
6621
  - No icon slot: an icon goes among the children, before the label, and the button sets its size.
6624
6622
 
6625
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
6623
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
6626
6624
 
6627
6625
  ### IconButton
6628
6626
 
@@ -6979,7 +6977,7 @@ type ControlSize = "sm" | "md";
6979
6977
  - The tooltip always shows the name; a hint that says more than the name is a `Tooltip` around a `Button`.
6980
6978
  - A touch screen shows no tooltip: choose icons whose meaning is common, or a `Button` with a label.
6981
6979
 
6982
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
6980
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
6983
6981
 
6984
6982
  ### ButtonGroup
6985
6983
 
@@ -7339,7 +7337,7 @@ type ControlSize = "sm" | "md";
7339
7337
 
7340
7338
  - No toggle or segmented state; a choice that stays is a radio group.
7341
7339
 
7342
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
7340
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
7343
7341
 
7344
7342
  ## Forms
7345
7343
 
@@ -7623,7 +7621,7 @@ Also takes every attribute of `<input>` – without `size`.
7623
7621
  - No input masks or formatting while typing; check the value on leave or on submit.
7624
7622
  - No validation of its own: the error is the application's, handed to the `FormField`.
7625
7623
 
7626
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
7624
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
7627
7625
 
7628
7626
  ### FormField
7629
7627
 
@@ -7814,7 +7812,7 @@ Also takes every attribute of `<div>`.
7814
7812
  - No validation: the caller's form library decides; pass `error` ([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)). No form state and no submit handling either.
7815
7813
  - One field per `FormField`; a group of fields that share one label is a fieldset of your own.
7816
7814
 
7817
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
7815
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
7818
7816
 
7819
7817
  ### Textarea
7820
7818
 
@@ -8002,7 +8000,7 @@ Also takes every attribute of `<textarea>` – without `cols`.
8002
8000
 
8003
8001
  - Plain text only: no formatting, mentions or rich text.
8004
8002
 
8005
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
8003
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
8006
8004
 
8007
8005
  ### NumberInput
8008
8006
 
@@ -8244,7 +8242,7 @@ Also takes every attribute of `<input>` – without `onChange`, `prefix`, `size`
8244
8242
  - No expressions: “12*4” is not calculated.
8245
8243
  - No currency conversion; the unit is a label.
8246
8244
 
8247
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
8245
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
8248
8246
 
8249
8247
  ### Slider
8250
8248
 
@@ -8437,7 +8435,7 @@ type SliderMark = number | { value: number; label?: ReactNode };
8437
8435
  - One thumb: no range with two ends.
8438
8436
  - Marks show values; they do not catch the thumb.
8439
8437
 
8440
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
8438
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
8441
8439
 
8442
8440
  ### Checkbox
8443
8441
 
@@ -8765,7 +8763,7 @@ Also takes every attribute of `<input>` – without `role`, `size`, `type`.
8765
8763
 
8766
8764
  - No pending or loading state; while your application applies the change, disable the switch or say so beside it.
8767
8765
 
8768
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
8766
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
8769
8767
 
8770
8768
  ### RadioGroup
8771
8769
 
@@ -9229,7 +9227,7 @@ Also takes every attribute of `<div>` – without `defaultValue`, `onChange`.
9229
9227
  - Two to four short possibilities: a word that does not fit its place ends in an ellipsis.
9230
9228
  - No icons and no line of explanation in a segment; several chosen at once is not this control.
9231
9229
 
9232
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
9230
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
9233
9231
 
9234
9232
  ### FileInput
9235
9233
 
@@ -9478,7 +9476,7 @@ Also takes every attribute of `<input>` – without `defaultValue`, `onChange`,
9478
9476
 
9479
9477
  - No upload, no progress and no size limit of its own; those belong to the application sending the files.
9480
9478
 
9481
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
9479
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
9482
9480
 
9483
9481
  ## Choosing
9484
9482
 
@@ -9674,7 +9672,7 @@ Also takes every attribute of `<select>` – without `size`.
9674
9672
 
9675
9673
  - The list shows the options' text: no icons, descriptions or search inside it - the Combobox searches.
9676
9674
 
9677
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
9675
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
9678
9676
 
9679
9677
  ### Combobox
9680
9678
 
@@ -9940,7 +9938,7 @@ Also takes every attribute of `<div>` – without `defaultValue`, `onChange`.
9940
9938
  - No free text as a value: only an option can be chosen.
9941
9939
  - No loading of options from a server; filter your own list and pass it in.
9942
9940
 
9943
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
9941
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
9944
9942
 
9945
9943
  ### MultiSelect
9946
9944
 
@@ -10395,7 +10393,7 @@ Also takes every attribute of `<span>` – without `defaultValue`, `onChange`.
10395
10393
  - No typing of a date into the field.
10396
10394
  - umriss shows the reader's time ([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)).
10397
10395
 
10398
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
10396
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
10399
10397
 
10400
10398
  ### DateTimePicker
10401
10399
 
@@ -10564,7 +10562,7 @@ Also takes every attribute of `<span>` – without `defaultValue`, `onChange`.
10564
10562
 
10565
10563
  - umriss shows the reader's time ([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)).
10566
10564
 
10567
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
10565
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
10568
10566
 
10569
10567
  ### DateRangePicker
10570
10568
 
@@ -10782,7 +10780,7 @@ the moment of the click.
10782
10780
 
10783
10781
  - One span; no list of separate days.
10784
10782
 
10785
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
10783
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
10786
10784
 
10787
10785
  ### DateTimeRangePicker
10788
10786
 
@@ -10996,7 +10994,7 @@ the moment of the click.
10996
10994
  - umriss shows the reader's time ([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)).
10997
10995
  - No recurring windows.
10998
10996
 
10999
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
10997
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
11000
10998
 
11001
10999
  ## Feedback
11002
11000
 
@@ -11146,7 +11144,7 @@ Also takes every attribute of `<svg>`.
11146
11144
 
11147
11145
  - One shape and no figure: for how far a job has come, use a [ProgressBar](#progressbar).
11148
11146
 
11149
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
11147
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
11150
11148
 
11151
11149
  ### ProgressBar
11152
11150
 
@@ -11329,7 +11327,7 @@ Also takes every attribute of `<div>`.
11329
11327
 
11330
11328
  - No colour of verdict and no steps of its own; for a job in steps, stack one bar per step.
11331
11329
 
11332
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
11330
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
11333
11331
 
11334
11332
  ### Skeleton
11335
11333
 
@@ -11486,7 +11484,7 @@ Also takes every attribute of `<span>`.
11486
11484
 
11487
11485
  - It draws a shape and nothing else; the rows, cards and layout it stands in for are yours.
11488
11486
 
11489
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
11487
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
11490
11488
 
11491
11489
  ### Alert
11492
11490
 
@@ -11704,7 +11702,7 @@ type AlertTone = "neutral" | "accent" | "success" | "warning" | "danger";
11704
11702
  - No timer: an alert stays until you remove it. A message that goes by itself is a toast.
11705
11703
  - No stack or queue of messages; place each alert where its matter is.
11706
11704
 
11707
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
11705
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
11708
11706
 
11709
11707
  ### Toast
11710
11708
 
@@ -12262,7 +12260,7 @@ type ToastCloseReason = "timeout" | "dismiss" | "action";
12262
12260
  - No queue: a toast over the limit pushes the oldest timed one out rather than waiting. Lasting and `loading` toasts are not capped: the deck holds every one of them beside the timed ones.
12263
12261
  - 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.
12264
12262
 
12265
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
12263
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
12266
12264
 
12267
12265
  ### EmptyState
12268
12266
 
@@ -12570,7 +12568,7 @@ export default function ACalculation() {
12570
12568
  - No interactive content and no rich layout inside: it is read, never used.
12571
12569
  - No placement option: it stands above its element and flips below where there is no room.
12572
12570
 
12573
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
12571
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
12574
12572
 
12575
12573
  ### Popover
12576
12574
 
@@ -12825,7 +12823,7 @@ type Align = "start" | "end" | "center";
12825
12823
  - No padding and no inner layout: it brings the overlay's surface - ground, corners, shadow - and the rest is yours. A `className` restates the surface where one needs another.
12826
12824
  - It does not trap focus; a surface the user must answer is a [Modal](#modal).
12827
12825
 
12828
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
12826
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
12829
12827
 
12830
12828
  ### Menu
12831
12829
 
@@ -13026,7 +13024,7 @@ Also takes every attribute of `<button>` – without `onSelect`.
13026
13024
 
13027
13025
  - No submenus, no checkable entries and no type-ahead.
13028
13026
 
13029
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
13027
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
13030
13028
 
13031
13029
  ### ContextMenu
13032
13030
 
@@ -13233,7 +13231,7 @@ export default function OnARow() {
13233
13231
  - It listens to no right-click itself: the element that is clicked is yours, and so is the point.
13234
13232
  - No submenus, no checkable entries and no type-ahead, as in the menu.
13235
13233
 
13236
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
13234
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
13237
13235
 
13238
13236
  ### Modal
13239
13237
 
@@ -13563,7 +13561,7 @@ type ModalSize = "sm" | "md" | "lg";
13563
13561
 
13564
13562
  - No non-modal window and no dragging or resizing: a panel that leaves the page usable is layout – a [Splitter](#splitter).
13565
13563
 
13566
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
13564
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
13567
13565
 
13568
13566
  ### Drawer
13569
13567
 
@@ -13878,7 +13876,7 @@ Also takes every attribute of `<dialog>` – without `onClose`.
13878
13876
  - Modal on purpose, with no non-modal mode: a panel beside a page the user keeps working in is layout, not an overlay.
13879
13877
  - Only the left and right edges; nothing slides in from the top or bottom.
13880
13878
 
13881
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
13879
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
13882
13880
 
13883
13881
  ### ConfirmDialog
13884
13882
 
@@ -14055,7 +14053,7 @@ Also takes every attribute of `<dialog>` – without `children`, `onClose`, `ope
14055
14053
 
14056
14054
  - A title, a description and two buttons, nothing more: fields belong in a [Modal](#modal).
14057
14055
 
14058
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
14056
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
14059
14057
 
14060
14058
  ### CommandPalette
14061
14059
 
@@ -14355,7 +14353,7 @@ Also takes every attribute of `<dialog>` – without `children`, `onClose`, `ope
14355
14353
  - No memory of past choices and no ranking of its own beyond the match: recency and frequency are weights you keep.
14356
14354
  - No nested steps or arguments: a command that needs input opens your own form after it is chosen.
14357
14355
 
14358
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
14356
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
14359
14357
 
14360
14358
  ## Navigation
14361
14359
 
@@ -14675,7 +14673,7 @@ Also takes every attribute of the rendered element.
14675
14673
 
14676
14674
  - It neither routes nor reads the address: the trail is what you pass.
14677
14675
 
14678
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
14676
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
14679
14677
 
14680
14678
  ### Tabs
14681
14679
 
@@ -15014,7 +15012,7 @@ Also takes every attribute of `<div>`.
15014
15012
 
15015
15013
  - No scrolling or overflow menu for more tabs than fit, and no closing or reordering of tabs: keep the list short and fixed.
15016
15014
 
15017
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
15015
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
15018
15016
 
15019
15017
  ### Accordion
15020
15018
 
@@ -15263,7 +15261,7 @@ Also takes every attribute of `<div>` – without `title`.
15263
15261
 
15264
15262
  - A folded section's content stays rendered; for heavy content, render it only while its section is open.
15265
15263
 
15266
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
15264
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
15267
15265
 
15268
15266
  ### Stepper
15269
15267
 
@@ -15473,7 +15471,7 @@ Also takes every attribute of the rendered element.
15473
15471
  - The steps are read, not navigated: no keys, no clicks, and no next or back of its own. Moving on is your application's decision.
15474
15472
  - No branching or optional steps; pass the steps that apply.
15475
15473
 
15476
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
15474
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
15477
15475
 
15478
15476
  ### TreeView
15479
15477
 
@@ -16151,7 +16149,7 @@ to render and the heights of the filler rows around it.
16151
16149
  - No dragging nodes to rearrange them.
16152
16150
  - It fetches nothing and handles no loading errors: retries and messages stay in your application ([ADR-0005](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0005-what-cannot-be-checked.md)).
16153
16151
 
16154
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
16152
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
16155
16153
 
16156
16154
  ### Benchmark
16157
16155
 
@@ -16628,7 +16626,7 @@ type BadgeTone = "neutral" | "accent" | "success" | "warning" | "danger";
16628
16626
  - It cannot be clicked or removed; a label the user acts on is a [Tag](#tag).
16629
16627
  - It counts nothing itself: capping at “99+” is yours.
16630
16628
 
16631
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
16629
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
16632
16630
 
16633
16631
  ### Tag
16634
16632
 
@@ -16895,7 +16893,7 @@ type TagTone = "neutral" | "accent" | "success" | "warning" | "danger";
16895
16893
  - No field for typing new tags: a tag input is a [MultiSelect](#multiselect).
16896
16894
  - Tags are not toggles: a set of choices to switch on and off is a group of [Checkbox](#checkbox) or a [ButtonGroup](#buttongroup).
16897
16895
 
16898
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
16896
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
16899
16897
 
16900
16898
  ### Stat
16901
16899
 
@@ -17731,7 +17729,7 @@ type Severity = "warning" | "alarm";
17731
17729
  - No trend arrow: a direction from two noisy points is read as information it does not carry; the history line shows the shape.
17732
17730
  - It fetches and polls nothing: freshness is judged from the `asOf` you give it.
17733
17731
 
17734
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
17732
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
17735
17733
 
17736
17734
  ### Meter
17737
17735
 
@@ -17901,7 +17899,7 @@ type MeterTone = "neutral" | "accent" | "success" | "warning" | "danger";
17901
17899
 
17902
17900
  - No limit marks, target tick or scale on the bar; for a value against limits use a [Stat](#stat).
17903
17901
 
17904
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
17902
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
17905
17903
 
17906
17904
  ### Sparkline
17907
17905
 
@@ -18159,7 +18157,7 @@ Also takes every attribute of `<span>`.
18159
18157
 
18160
18158
  - No axes, labels, tooltip or points to hover: the value stands beside it.
18161
18159
 
18162
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/docs/adr/0032-what-umriss-is-not.md).
18160
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
18163
18161
 
18164
18162
  ## API index
18165
18163
 
@@ -18778,10 +18776,10 @@ function useDensityFor(own: "regular" | "compact" | undefined, fallback: "regula
18778
18776
 
18779
18777
  ##### `useFormats`
18780
18778
 
18781
- Only the formatting.
18779
+ Only the formatting. Dates and times are empty until the page has hydrated.
18782
18780
 
18783
18781
  ```ts
18784
- const useFormats: () => Formats;
18782
+ function useFormats(): Formats;
18785
18783
  ```
18786
18784
 
18787
18785
  Used on [Language](#language), [NumberInput](#numberinput), [Slider](#slider), [DatePicker](#datepicker), [DateTimePicker](#datetimepicker), [DateRangePicker](#daterangepicker) and [DateTimeRangePicker](#datetimerangepicker).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umriss-ui/core",
3
- "version": "0.41.1",
3
+ "version": "0.42.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",
@@ -54,11 +54,13 @@
54
54
  "exports": {
55
55
  ".": {
56
56
  "types": "./dist/index.d.ts",
57
- "import": "./dist/core.js"
57
+ "import": "./dist/core.js",
58
+ "default": "./dist/core.js"
58
59
  },
59
60
  "./wording/de": {
60
61
  "types": "./dist/de.d.ts",
61
- "import": "./dist/wording/de.js"
62
+ "import": "./dist/wording/de.js",
63
+ "default": "./dist/wording/de.js"
62
64
  },
63
65
  "./styles.css": {
64
66
  "types": "./dist/styles.d.ts",