@umriss-ui/core 0.23.0 → 0.24.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
@@ -1554,9 +1554,10 @@ export declare interface RowWindow {
1554
1554
  export declare function scrollForRow(index: number, { rowHeight, scrollTop, viewportHeight, headerHeight }: RowPlacement): number | null;
1555
1555
 
1556
1556
  /**
1557
- * Native select with the library's looks – maximum accessibility without
1558
- * building one ourselves. The arrow is drawn in CSS and therefore follows the
1559
- * theme tokens.
1557
+ * The select field. The `<select>` holds the value, the form and the keys;
1558
+ * under a mouse, a pen and the keyboard it opens the library's own list - the
1559
+ * Combobox's - and under a finger the system's picker (ADR-0043). The arrow is
1560
+ * drawn in CSS and therefore follows the theme tokens.
1560
1561
  */
1561
1562
  export declare const Select: ForwardRefExoticComponent<SelectProps & RefAttributes<HTMLSelectElement>>;
1562
1563
 
package/docs/llms-full.md CHANGED
@@ -1,4 +1,4 @@
1
- # @umriss-ui/core 0.23.0
1
+ # @umriss-ui/core 0.24.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
 
@@ -7737,7 +7737,7 @@ Also takes every attribute of `<div>` – without `defaultValue`, `onChange`.
7737
7737
 
7738
7738
  ### Select
7739
7739
 
7740
- One choice from a short, known list (dropdown), shown with the system's own control: a wheel on the phone, the keyboard on the desktop.
7740
+ 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.
7741
7741
 
7742
7742
  ```ts
7743
7743
  import { Select } from "@umriss-ui/core";
@@ -7745,6 +7745,10 @@ import { Select } from "@umriss-ui/core";
7745
7745
 
7746
7746
  Demo page: https://romanhaendler.github.io/umriss-ui/core/select/
7747
7747
 
7748
+ The field is a native `<select>`: it holds the value and the form, and `onChange` fires as it always did. Write the choices as `<option>` and `<optgroup>`; the list is drawn from them.
7749
+
7750
+ An option with the empty value is the placeholder: muted in the field, and never marked as the choice in the list.
7751
+
7748
7752
  #### Examples
7749
7753
 
7750
7754
  ##### Select
@@ -7856,9 +7860,11 @@ export default function ClearTheChoice() {
7856
7860
 
7857
7861
  | Key | Action |
7858
7862
  |---|---|
7859
- | `Arrow Up / Arrow Down` | Changes the choice, or moves in the open list. |
7860
- | `Space or Alt + Arrow Down` | Opens the list (as the system does). |
7861
- | `Typing a letter` | Jumps to the next option starting with it. |
7863
+ | `Arrow Down / Arrow Up, Space, Alt + Arrow, F4` | Opens the list on the chosen option. Enter in a closed field is passed on, to a form or a grid. |
7864
+ | `Arrow Up / Arrow Down, Home / End, Page Up / Page Down` | Moves in the open list. |
7865
+ | `Typing a letter` | Jumps to the next option starting with it; in a closed field it changes the choice. |
7866
+ | `Enter or Space` | Chooses the option the list stands on. |
7867
+ | `Escape or Tab` | Closes the list. |
7862
7868
 
7863
7869
  #### API
7864
7870
 
@@ -7876,7 +7882,7 @@ Also takes every attribute of `<select>` – without `size`.
7876
7882
 
7877
7883
  #### Known limits
7878
7884
 
7879
- - The open list is the system's: no icons, descriptions or search inside it.
7885
+ - The list shows the options' text: no icons, descriptions or search inside it - the Combobox searches.
7880
7886
 
7881
7887
  What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0032-what-umriss-is-not.md).
7882
7888
 
@@ -8057,7 +8063,7 @@ export default function AssignAnIncident() {
8057
8063
 
8058
8064
  #### When to use something else
8059
8065
 
8060
- - A short list, better served by the system's own control → Select
8066
+ - A short list that needs no search, with the system's picker under a finger → Select
8061
8067
  - Several values at once → MultiSelect
8062
8068
 
8063
8069
  #### Keyboard
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umriss-ui/core",
3
- "version": "0.23.0",
3
+ "version": "0.24.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",