@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/CHANGELOG.md +24 -0
- package/README.md +1 -1
- package/dist/core.css +1 -1
- package/dist/core.js +3499 -3341
- package/dist/index.d.ts +4 -3
- package/docs/llms-full.md +13 -7
- package/package.json +1 -1
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
|
-
*
|
|
1558
|
-
*
|
|
1559
|
-
*
|
|
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.
|
|
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)
|
|
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
|
|
7860
|
-
| `
|
|
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
|
|
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
|
|
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.
|
|
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",
|