@umriss-ui/core 0.13.1 → 0.14.1
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 +25 -0
- package/README.md +2 -1
- package/dist/core.js +394 -387
- package/dist/de.d.ts +12 -0
- package/dist/index.d.ts +12 -0
- package/dist/wording/de.js +9 -2
- package/docs/llms-full.md +54 -54
- package/package.json +12 -5
package/dist/de.d.ts
CHANGED
|
@@ -273,6 +273,18 @@ declare interface Wording {
|
|
|
273
273
|
/** The editor of a cell in a table's grid mode, named after its column and
|
|
274
274
|
its row: "Edit Budget: Marketing". */
|
|
275
275
|
editCell: (column: string, row: string) => string;
|
|
276
|
+
/** The button above a grid that opens an empty row to fill in, and the name
|
|
277
|
+
of that row while it has none (ADR-0036). */
|
|
278
|
+
newRow: string;
|
|
279
|
+
/** A row draft's buttons, named with the row through `rowAction`. */
|
|
280
|
+
saveRow: string;
|
|
281
|
+
discardRow: string;
|
|
282
|
+
/** A row's delete button, and its question once pressed: Delete? Delete / Keep. */
|
|
283
|
+
deleteRow: string;
|
|
284
|
+
deleteRowAsk: string;
|
|
285
|
+
keepRow: string;
|
|
286
|
+
/** Said where someone tries to leave a row draft unsaved. */
|
|
287
|
+
saveOrDiscardFirst: string;
|
|
276
288
|
/** What the screen reader hears for an absent value. Visibly a muted dash
|
|
277
289
|
stands there. */
|
|
278
290
|
cellAbsentValue: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -2455,6 +2455,18 @@ export declare interface Wording {
|
|
|
2455
2455
|
/** The editor of a cell in a table's grid mode, named after its column and
|
|
2456
2456
|
its row: "Edit Budget: Marketing". */
|
|
2457
2457
|
editCell: (column: string, row: string) => string;
|
|
2458
|
+
/** The button above a grid that opens an empty row to fill in, and the name
|
|
2459
|
+
of that row while it has none (ADR-0036). */
|
|
2460
|
+
newRow: string;
|
|
2461
|
+
/** A row draft's buttons, named with the row through `rowAction`. */
|
|
2462
|
+
saveRow: string;
|
|
2463
|
+
discardRow: string;
|
|
2464
|
+
/** A row's delete button, and its question once pressed: Delete? Delete / Keep. */
|
|
2465
|
+
deleteRow: string;
|
|
2466
|
+
deleteRowAsk: string;
|
|
2467
|
+
keepRow: string;
|
|
2468
|
+
/** Said where someone tries to leave a row draft unsaved. */
|
|
2469
|
+
saveOrDiscardFirst: string;
|
|
2458
2470
|
/** What the screen reader hears for an absent value. Visibly a muted dash
|
|
2459
2471
|
stands there. */
|
|
2460
2472
|
cellAbsentValue: string;
|
package/dist/wording/de.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { f as o } from "../formats-DrB9TuzO.js";
|
|
2
|
-
const c = o("de-DE"),
|
|
2
|
+
const c = o("de-DE"), s = {
|
|
3
3
|
clearInput: "Eingabe leeren",
|
|
4
4
|
clearSelection: "Auswahl leeren",
|
|
5
5
|
decreaseValue: "Wert verringern",
|
|
@@ -137,6 +137,13 @@ const c = o("de-DE"), d = {
|
|
|
137
137
|
rowAction: (e, n) => `${e}: ${n}`,
|
|
138
138
|
rowActionsMenu: (e) => `Aktionen: ${e}`,
|
|
139
139
|
editCell: (e, n) => `${e} bearbeiten: ${n}`,
|
|
140
|
+
newRow: "Neue Zeile",
|
|
141
|
+
saveRow: "Speichern",
|
|
142
|
+
discardRow: "Verwerfen",
|
|
143
|
+
deleteRow: "Löschen",
|
|
144
|
+
deleteRowAsk: "Löschen?",
|
|
145
|
+
keepRow: "Behalten",
|
|
146
|
+
saveOrDiscardFirst: "Erst diese Zeile speichern oder verwerfen",
|
|
140
147
|
cellAbsentValue: "Kein Wert",
|
|
141
148
|
booleanYes: "Ja",
|
|
142
149
|
booleanNo: "Nein",
|
|
@@ -289,5 +296,5 @@ const c = o("de-DE"), d = {
|
|
|
289
296
|
};
|
|
290
297
|
export {
|
|
291
298
|
c as GERMAN_FORMATS,
|
|
292
|
-
|
|
299
|
+
s as GERMAN_WORDING
|
|
293
300
|
};
|
package/docs/llms-full.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# @umriss-ui/core 0.
|
|
1
|
+
# @umriss-ui/core 0.14.1
|
|
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
|
|
|
5
5
|
Install with `pnpm add @umriss-ui/core`. This text is generated from the package's demo (https://romanhaendler.github.io/umriss-ui/core/): every page with its import line, its examples - the source exactly as it runs, with the package name where the demo imports its own source - its props tables generated from the code, and what it deliberately does not do. The pages index stands in https://romanhaendler.github.io/umriss-ui/core/llms.txt.
|
|
6
6
|
|
|
@@ -1493,7 +1493,7 @@ What an application sets up once, before the first component.
|
|
|
1493
1493
|
|
|
1494
1494
|
What an application does once before its first component: install the package, choose the fonts and let light and dark follow the page. The styles load themselves, and no provider is needed.
|
|
1495
1495
|
|
|
1496
|
-
Demo page: https://romanhaendler.github.io/umriss-ui/core
|
|
1496
|
+
Demo page: https://romanhaendler.github.io/umriss-ui/core/installation/
|
|
1497
1497
|
|
|
1498
1498
|
Install with `pnpm add @umriss-ui/core` (React 18 or newer). Importing a component brings its stylesheet along; `@umriss-ui/core/styles.css` stays exported for setups that link stylesheets by hand. The styles touch nothing outside the components: no rule on `html`, `body` or `*` (ADR-0021).
|
|
1499
1499
|
|
|
@@ -1623,7 +1623,7 @@ Sets once, at the root, what an application shares: the density of its tables, w
|
|
|
1623
1623
|
import { UmrissProvider } from "@umriss-ui/core";
|
|
1624
1624
|
```
|
|
1625
1625
|
|
|
1626
|
-
Demo page: https://romanhaendler.github.io/umriss-ui/core
|
|
1626
|
+
Demo page: https://romanhaendler.github.io/umriss-ui/core/umrissprovider/
|
|
1627
1627
|
|
|
1628
1628
|
It holds these four settings and nothing else: no theme (see [Installation](#/installation)) and no defaults for a component's own props. It writes nothing onto the document.
|
|
1629
1629
|
|
|
@@ -1782,7 +1782,7 @@ The words and the number and date notation the components write themselves: Engl
|
|
|
1782
1782
|
import { LanguageProvider, useWording, useFormats } from "@umriss-ui/core";
|
|
1783
1783
|
```
|
|
1784
1784
|
|
|
1785
|
-
Demo page: https://romanhaendler.github.io/umriss-ui/core
|
|
1785
|
+
Demo page: https://romanhaendler.github.io/umriss-ui/core/language/
|
|
1786
1786
|
|
|
1787
1787
|
English needs nothing (ADR-0018). German ships as the subpath `@umriss-ui/core/wording/de` with `GERMAN_WORDING` and `GERMAN_FORMATS`, the two halves of a language; take both in one import (ADR-0019, ADR-0024).
|
|
1788
1788
|
|
|
@@ -2059,7 +2059,7 @@ Lay a screen's parts out in a column, a row or a grid, spaced by the library's s
|
|
|
2059
2059
|
import { Stack, Grid } from "@umriss-ui/core";
|
|
2060
2060
|
```
|
|
2061
2061
|
|
|
2062
|
-
Demo page: https://romanhaendler.github.io/umriss-ui/core
|
|
2062
|
+
Demo page: https://romanhaendler.github.io/umriss-ui/core/stack-and-grid/
|
|
2063
2063
|
|
|
2064
2064
|
A gap is a step of the 4 px scale from 1 to 8, the same steps every component spaces itself by, so a screen keeps its proportions. `align` and `justify` pass `alignItems` and `justifyContent` through unchanged; for the rest of flexbox and grid, set `style`.
|
|
2065
2065
|
|
|
@@ -2323,7 +2323,7 @@ A surface that holds one block of a screen together: a head with its title and a
|
|
|
2323
2323
|
import { Card, CardHeader, CardBody } from "@umriss-ui/core";
|
|
2324
2324
|
```
|
|
2325
2325
|
|
|
2326
|
-
Demo page: https://romanhaendler.github.io/umriss-ui/core
|
|
2326
|
+
Demo page: https://romanhaendler.github.io/umriss-ui/core/card/
|
|
2327
2327
|
|
|
2328
2328
|
The line under the head is not the normal case; whitespace carries the hierarchy. Set it where the body runs edge to edge, a table or a log, together with a flush body.
|
|
2329
2329
|
|
|
@@ -2604,7 +2604,7 @@ A line between two groups of content, across or upright, that may name the part
|
|
|
2604
2604
|
import { Divider } from "@umriss-ui/core";
|
|
2605
2605
|
```
|
|
2606
2606
|
|
|
2607
|
-
Demo page: https://romanhaendler.github.io/umriss-ui/core
|
|
2607
|
+
Demo page: https://romanhaendler.github.io/umriss-ui/core/divider/
|
|
2608
2608
|
|
|
2609
2609
|
#### Examples
|
|
2610
2610
|
|
|
@@ -2705,7 +2705,7 @@ Two panes with a draggable line between them (also called a split view or resiza
|
|
|
2705
2705
|
import { Splitter } from "@umriss-ui/core";
|
|
2706
2706
|
```
|
|
2707
2707
|
|
|
2708
|
-
Demo page: https://romanhaendler.github.io/umriss-ui/core
|
|
2708
|
+
Demo page: https://romanhaendler.github.io/umriss-ui/core/splitter/
|
|
2709
2709
|
|
|
2710
2710
|
A splitter divides the room it is given and does not size it: give its box a height. For three panes, nest a splitter in one of the two.
|
|
2711
2711
|
|
|
@@ -2935,7 +2935,7 @@ A strip of tools that floats above one surface, a chart or a map, and rests at t
|
|
|
2935
2935
|
import { Dock } from "@umriss-ui/core";
|
|
2936
2936
|
```
|
|
2937
2937
|
|
|
2938
|
-
Demo page: https://romanhaendler.github.io/umriss-ui/core
|
|
2938
|
+
Demo page: https://romanhaendler.github.io/umriss-ui/core/dock/
|
|
2939
2939
|
|
|
2940
2940
|
It snaps and does not follow: dragging moves the handle, and the dock jumps to the edge whose zone the pointer reaches. It always rests at one of four places, never in between and never in a corner (ADR-0013).
|
|
2941
2941
|
|
|
@@ -3236,7 +3236,7 @@ Sets paragraphs, headings and links on the library's type scale, so a screen of
|
|
|
3236
3236
|
import { Text, Heading, Link } from "@umriss-ui/core";
|
|
3237
3237
|
```
|
|
3238
3238
|
|
|
3239
|
-
Demo page: https://romanhaendler.github.io/umriss-ui/core
|
|
3239
|
+
Demo page: https://romanhaendler.github.io/umriss-ui/core/typography/
|
|
3240
3240
|
|
|
3241
3241
|
A heading's outline level and its size are independent: choose the level for the page's structure, the size for the eye.
|
|
3242
3242
|
|
|
@@ -3551,7 +3551,7 @@ Text a screen reader announces but the eye does not see (also called screen-read
|
|
|
3551
3551
|
import { VisuallyHidden } from "@umriss-ui/core";
|
|
3552
3552
|
```
|
|
3553
3553
|
|
|
3554
|
-
Demo page: https://romanhaendler.github.io/umriss-ui/core
|
|
3554
|
+
Demo page: https://romanhaendler.github.io/umriss-ui/core/visuallyhidden/
|
|
3555
3555
|
|
|
3556
3556
|
#### Examples
|
|
3557
3557
|
|
|
@@ -3662,7 +3662,7 @@ Starts one action when pressed: save, send, deploy, delete. Its variant says how
|
|
|
3662
3662
|
import { Button } from "@umriss-ui/core";
|
|
3663
3663
|
```
|
|
3664
3664
|
|
|
3665
|
-
Demo page: https://romanhaendler.github.io/umriss-ui/core
|
|
3665
|
+
Demo page: https://romanhaendler.github.io/umriss-ui/core/button/
|
|
3666
3666
|
|
|
3667
3667
|
Use the primary variant once per surface, and danger only for what cannot be undone.
|
|
3668
3668
|
|
|
@@ -3918,7 +3918,7 @@ Joins buttons that act on the same thing into one control. Its companion SplitBu
|
|
|
3918
3918
|
import { ButtonGroup, SplitButton } from "@umriss-ui/core";
|
|
3919
3919
|
```
|
|
3920
3920
|
|
|
3921
|
-
Demo page: https://romanhaendler.github.io/umriss-ui/core
|
|
3921
|
+
Demo page: https://romanhaendler.github.io/umriss-ui/core/buttongroup/
|
|
3922
3922
|
|
|
3923
3923
|
Name every group with an `aria-label`; a screen reader otherwise announces only "group". Each button in it stays its own Tab stop.
|
|
3924
3924
|
|
|
@@ -4185,7 +4185,7 @@ A single line of text (text field, text box): names, references, addresses, sear
|
|
|
4185
4185
|
import { Input } from "@umriss-ui/core";
|
|
4186
4186
|
```
|
|
4187
4187
|
|
|
4188
|
-
Demo page: https://romanhaendler.github.io/umriss-ui/core
|
|
4188
|
+
Demo page: https://romanhaendler.github.io/umriss-ui/core/input/
|
|
4189
4189
|
|
|
4190
4190
|
Put it in a [FormField](#/formfield): the field brings the label, the hint, the error and the wiring a screen reader needs. Every attribute of the native input passes through.
|
|
4191
4191
|
|
|
@@ -4417,7 +4417,7 @@ The frame around a field: its label, a hint below it and the error that replaces
|
|
|
4417
4417
|
import { FormField, useFormField } from "@umriss-ui/core";
|
|
4418
4418
|
```
|
|
4419
4419
|
|
|
4420
|
-
Demo page: https://romanhaendler.github.io/umriss-ui/core
|
|
4420
|
+
Demo page: https://romanhaendler.github.io/umriss-ui/core/formfield/
|
|
4421
4421
|
|
|
4422
4422
|
Every field of this rubric reads its id, description, invalid and required state from the surrounding `FormField`; an `error` marks the field invalid by itself. A control of your own gets the same through `useFormField`.
|
|
4423
4423
|
|
|
@@ -4605,7 +4605,7 @@ Text over several lines (multi-line text field): a comment, a summary, a note to
|
|
|
4605
4605
|
import { Textarea } from "@umriss-ui/core";
|
|
4606
4606
|
```
|
|
4607
4607
|
|
|
4608
|
-
Demo page: https://romanhaendler.github.io/umriss-ui/core
|
|
4608
|
+
Demo page: https://romanhaendler.github.io/umriss-ui/core/textarea/
|
|
4609
4609
|
|
|
4610
4610
|
#### Examples
|
|
4611
4611
|
|
|
@@ -4746,7 +4746,7 @@ A number typed exactly (numeric field, spin box): an amount, a weight, hours. It
|
|
|
4746
4746
|
import { NumberInput } from "@umriss-ui/core";
|
|
4747
4747
|
```
|
|
4748
4748
|
|
|
4749
|
-
Demo page: https://romanhaendler.github.io/umriss-ui/core
|
|
4749
|
+
Demo page: https://romanhaendler.github.io/umriss-ui/core/numberinput/
|
|
4750
4750
|
|
|
4751
4751
|
The value is a number or `null`. An empty field is `null`, not zero: a figure nobody gave is not a figure of zero.
|
|
4752
4752
|
|
|
@@ -4949,7 +4949,7 @@ A yes or no that counts when the form is saved (tick box). It also shows the mix
|
|
|
4949
4949
|
import { Checkbox } from "@umriss-ui/core";
|
|
4950
4950
|
```
|
|
4951
4951
|
|
|
4952
|
-
Demo page: https://romanhaendler.github.io/umriss-ui/core
|
|
4952
|
+
Demo page: https://romanhaendler.github.io/umriss-ui/core/checkbox/
|
|
4953
4953
|
|
|
4954
4954
|
The mixed state is derived, never stored: set it when some children are checked, and a click on the parent checks all or none.
|
|
4955
4955
|
|
|
@@ -5068,7 +5068,7 @@ On or off, taking effect at once (toggle): paging at night, autoscaling, a featu
|
|
|
5068
5068
|
import { Switch } from "@umriss-ui/core";
|
|
5069
5069
|
```
|
|
5070
5070
|
|
|
5071
|
-
Demo page: https://romanhaendler.github.io/umriss-ui/core
|
|
5071
|
+
Demo page: https://romanhaendler.github.io/umriss-ui/core/switch/
|
|
5072
5072
|
|
|
5073
5073
|
#### Examples
|
|
5074
5074
|
|
|
@@ -5247,7 +5247,7 @@ A value set roughly between two bounds (range slider): a share of traffic, an al
|
|
|
5247
5247
|
import { Slider } from "@umriss-ui/core";
|
|
5248
5248
|
```
|
|
5249
5249
|
|
|
5250
|
-
Demo page: https://romanhaendler.github.io/umriss-ui/core
|
|
5250
|
+
Demo page: https://romanhaendler.github.io/umriss-ui/core/slider/
|
|
5251
5251
|
|
|
5252
5252
|
`onChange` reports a number already on the step and inside the bounds, by pointer and by key alike. Pair it with a [NumberInput](#/numberinput) on the same state when the exact figure matters too.
|
|
5253
5253
|
|
|
@@ -5426,7 +5426,7 @@ Choose files from the system's dialog or drop them on the zone (file picker, upl
|
|
|
5426
5426
|
import { FileInput } from "@umriss-ui/core";
|
|
5427
5427
|
```
|
|
5428
5428
|
|
|
5429
|
-
Demo page: https://romanhaendler.github.io/umriss-ui/core
|
|
5429
|
+
Demo page: https://romanhaendler.github.io/umriss-ui/core/fileinput/
|
|
5430
5430
|
|
|
5431
5431
|
`accept` holds for the dialog and for a drop alike; a dropped file it refuses is named below the list instead of vanishing.
|
|
5432
5432
|
|
|
@@ -5638,7 +5638,7 @@ One choice out of a few that all stay in view (radio buttons, option group). Eac
|
|
|
5638
5638
|
import { RadioGroup } from "@umriss-ui/core";
|
|
5639
5639
|
```
|
|
5640
5640
|
|
|
5641
|
-
Demo page: https://romanhaendler.github.io/umriss-ui/core
|
|
5641
|
+
Demo page: https://romanhaendler.github.io/umriss-ui/core/radiogroup/
|
|
5642
5642
|
|
|
5643
5643
|
The group is one tab stop; the arrow keys move and choose at once, skipping disabled options, which stay visible.
|
|
5644
5644
|
|
|
@@ -5805,7 +5805,7 @@ One choice from a short, known list (dropdown), shown with the system's own cont
|
|
|
5805
5805
|
import { Select } from "@umriss-ui/core";
|
|
5806
5806
|
```
|
|
5807
5807
|
|
|
5808
|
-
Demo page: https://romanhaendler.github.io/umriss-ui/core
|
|
5808
|
+
Demo page: https://romanhaendler.github.io/umriss-ui/core/select/
|
|
5809
5809
|
|
|
5810
5810
|
#### Examples
|
|
5811
5811
|
|
|
@@ -5949,7 +5949,7 @@ One choice from a long list, found by typing (autocomplete, searchable select):
|
|
|
5949
5949
|
import { Combobox } from "@umriss-ui/core";
|
|
5950
5950
|
```
|
|
5951
5951
|
|
|
5952
|
-
Demo page: https://romanhaendler.github.io/umriss-ui/core
|
|
5952
|
+
Demo page: https://romanhaendler.github.io/umriss-ui/core/combobox/
|
|
5953
5953
|
|
|
5954
5954
|
What is typed is a search term, not a value: the value changes only when a row is chosen or the field is cleared, and it is one option or `null`.
|
|
5955
5955
|
|
|
@@ -6131,7 +6131,7 @@ Several values from a list (multi-select, tag picker): a project team, services
|
|
|
6131
6131
|
import { MultiSelect } from "@umriss-ui/core";
|
|
6132
6132
|
```
|
|
6133
6133
|
|
|
6134
|
-
Demo page: https://romanhaendler.github.io/umriss-ui/core
|
|
6134
|
+
Demo page: https://romanhaendler.github.io/umriss-ui/core/multiselect/
|
|
6135
6135
|
|
|
6136
6136
|
The field stays one line tall: as many chips as fit, the rest as a “+N” button that opens the panel on the chosen values.
|
|
6137
6137
|
|
|
@@ -6306,7 +6306,7 @@ One day, picked in a calendar (date field): a delivery date, a due date. Weeks b
|
|
|
6306
6306
|
import { DatePicker } from "@umriss-ui/core";
|
|
6307
6307
|
```
|
|
6308
6308
|
|
|
6309
|
-
Demo page: https://romanhaendler.github.io/umriss-ui/core
|
|
6309
|
+
Demo page: https://romanhaendler.github.io/umriss-ui/core/datepicker/
|
|
6310
6310
|
|
|
6311
6311
|
The value contract of the four pickers stands here. `DatePicker` hands out a `Date` at local midnight on every path and reports as soon as the day is chosen. [DateTimePicker](#/datetimepicker) hands out an instant and reports only on Apply, Now or Clear. [DateRangePicker](#/daterangepicker) gives both ends at local midnight, both inclusive. [DateTimeRangePicker](#/datetimerangepicker) sets an all-day end to the end of the day, not to its midnight.
|
|
6312
6312
|
|
|
@@ -6446,7 +6446,7 @@ One moment, day and time of day in one field (date-time field): when an incident
|
|
|
6446
6446
|
import { DateTimePicker } from "@umriss-ui/core";
|
|
6447
6447
|
```
|
|
6448
6448
|
|
|
6449
|
-
Demo page: https://romanhaendler.github.io/umriss-ui/core
|
|
6449
|
+
Demo page: https://romanhaendler.github.io/umriss-ui/core/datetimepicker/
|
|
6450
6450
|
|
|
6451
6451
|
It reports only on Apply, Now or Clear, never with a day that has no time yet. The value contract of the pickers stands on [DatePicker](#/datepicker).
|
|
6452
6452
|
|
|
@@ -6572,7 +6572,7 @@ A span of days, from one day to another (date range): leave, a sprint, a reporti
|
|
|
6572
6572
|
import { DateRangePicker } from "@umriss-ui/core";
|
|
6573
6573
|
```
|
|
6574
6574
|
|
|
6575
|
-
Demo page: https://romanhaendler.github.io/umriss-ui/core
|
|
6575
|
+
Demo page: https://romanhaendler.github.io/umriss-ui/core/daterangepicker/
|
|
6576
6576
|
|
|
6577
6577
|
Both ends lie at local midnight and both count. The value contract of the pickers stands on [DatePicker](#/datepicker).
|
|
6578
6578
|
|
|
@@ -6726,7 +6726,7 @@ A span with a time at each end (date-time range): a planned downtime, a release
|
|
|
6726
6726
|
import { DateTimeRangePicker } from "@umriss-ui/core";
|
|
6727
6727
|
```
|
|
6728
6728
|
|
|
6729
|
-
Demo page: https://romanhaendler.github.io/umriss-ui/core
|
|
6729
|
+
Demo page: https://romanhaendler.github.io/umriss-ui/core/datetimerangepicker/
|
|
6730
6730
|
|
|
6731
6731
|
It starts on All day: two clicks set the days, from 00:00 to the end of the last day. Untick All day to type the times. It reports only on Apply. The value contract of the pickers stands on [DatePicker](#/datepicker).
|
|
6732
6732
|
|
|
@@ -6873,7 +6873,7 @@ A message that stays in the page until its matter is settled (also called a bann
|
|
|
6873
6873
|
import { Alert } from "@umriss-ui/core";
|
|
6874
6874
|
```
|
|
6875
6875
|
|
|
6876
|
-
Demo page: https://romanhaendler.github.io/umriss-ui/core
|
|
6876
|
+
Demo page: https://romanhaendler.github.io/umriss-ui/core/alert/
|
|
6877
6877
|
|
|
6878
6878
|
`warning` and `danger` interrupt a screen reader at once; `neutral`, `accent` and `success` are read out politely when the reader is free. Choose the tone by what the reader has to do, not by the colour you want.
|
|
6879
6879
|
|
|
@@ -7061,7 +7061,7 @@ Short feedback in the corner of the window that interrupts nothing and goes away
|
|
|
7061
7061
|
import { ToastProvider, useToast } from "@umriss-ui/core";
|
|
7062
7062
|
```
|
|
7063
7063
|
|
|
7064
|
-
Demo page: https://romanhaendler.github.io/umriss-ui/core
|
|
7064
|
+
Demo page: https://romanhaendler.github.io/umriss-ui/core/toast/
|
|
7065
7065
|
|
|
7066
7066
|
`useToast` needs a `ToastProvider` around the application, once, at the root.
|
|
7067
7067
|
|
|
@@ -7226,7 +7226,7 @@ A turning circle that says something is running, without saying how far (also ca
|
|
|
7226
7226
|
import { Spinner } from "@umriss-ui/core";
|
|
7227
7227
|
```
|
|
7228
7228
|
|
|
7229
|
-
Demo page: https://romanhaendler.github.io/umriss-ui/core
|
|
7229
|
+
Demo page: https://romanhaendler.github.io/umriss-ui/core/spinner/
|
|
7230
7230
|
|
|
7231
7231
|
It takes the colour of the text around it and announces itself as “Loading”; name it better with `aria-label` where the word beside it is not enough.
|
|
7232
7232
|
|
|
@@ -7372,7 +7372,7 @@ A bar that shows how far a job has come, or that it runs while nobody knows how
|
|
|
7372
7372
|
import { ProgressBar } from "@umriss-ui/core";
|
|
7373
7373
|
```
|
|
7374
7374
|
|
|
7375
|
-
Demo page: https://romanhaendler.github.io/umriss-ui/core
|
|
7375
|
+
Demo page: https://romanhaendler.github.io/umriss-ui/core/progressbar/
|
|
7376
7376
|
|
|
7377
7377
|
`value` runs from 0 to 1; values outside are clamped. A screen reader hears the percentage, or `valueText` where a count says it better.
|
|
7378
7378
|
|
|
@@ -7544,7 +7544,7 @@ Grey shapes that stand where content is still loading and hold the height it wil
|
|
|
7544
7544
|
import { Skeleton } from "@umriss-ui/core";
|
|
7545
7545
|
```
|
|
7546
7546
|
|
|
7547
|
-
Demo page: https://romanhaendler.github.io/umriss-ui/core
|
|
7547
|
+
Demo page: https://romanhaendler.github.io/umriss-ui/core/skeleton/
|
|
7548
7548
|
|
|
7549
7549
|
A skeleton is hidden from screen readers. Mark the region that is loading with `aria-busy`, and say in words what loads where that matters.
|
|
7550
7550
|
|
|
@@ -7692,7 +7692,7 @@ What stands where a list or panel has nothing to show: what is missing, why, and
|
|
|
7692
7692
|
import { EmptyState } from "@umriss-ui/core";
|
|
7693
7693
|
```
|
|
7694
7694
|
|
|
7695
|
-
Demo page: https://romanhaendler.github.io/umriss-ui/core
|
|
7695
|
+
Demo page: https://romanhaendler.github.io/umriss-ui/core/emptystate/
|
|
7696
7696
|
|
|
7697
7697
|
#### Examples
|
|
7698
7698
|
|
|
@@ -7830,7 +7830,7 @@ A sentence of explanation that appears while the pointer rests on an element or
|
|
|
7830
7830
|
import { Tooltip } from "@umriss-ui/core";
|
|
7831
7831
|
```
|
|
7832
7832
|
|
|
7833
|
-
Demo page: https://romanhaendler.github.io/umriss-ui/core
|
|
7833
|
+
Demo page: https://romanhaendler.github.io/umriss-ui/core/tooltip/
|
|
7834
7834
|
|
|
7835
7835
|
It wraps exactly one element that can take focus and a ref; on text, give a `span` a `tabIndex` of 0.
|
|
7836
7836
|
|
|
@@ -7981,7 +7981,7 @@ A surface that hangs from a trigger and closes on Escape, an outside click or sc
|
|
|
7981
7981
|
import { Popover } from "@umriss-ui/core";
|
|
7982
7982
|
```
|
|
7983
7983
|
|
|
7984
|
-
Demo page: https://romanhaendler.github.io/umriss-ui/core
|
|
7984
|
+
Demo page: https://romanhaendler.github.io/umriss-ui/core/popover/
|
|
7985
7985
|
|
|
7986
7986
|
It is controlled: you hold `open`, and `onOpenChange` reports each wish to close. Only you know whether it may close now, for instance with a half-filled form in it.
|
|
7987
7987
|
|
|
@@ -8182,7 +8182,7 @@ A list of actions that opens under a button (also called a dropdown menu). Reach
|
|
|
8182
8182
|
import { Menu, MenuItem, MenuSeparator } from "@umriss-ui/core";
|
|
8183
8183
|
```
|
|
8184
8184
|
|
|
8185
|
-
Demo page: https://romanhaendler.github.io/umriss-ui/core
|
|
8185
|
+
Demo page: https://romanhaendler.github.io/umriss-ui/core/menu/
|
|
8186
8186
|
|
|
8187
8187
|
The entries are things that happen, not values that stay; choosing one runs it and closes the menu so the result is in view.
|
|
8188
8188
|
|
|
@@ -8379,7 +8379,7 @@ A menu that opens at a point, for a right-click on something that is not a butto
|
|
|
8379
8379
|
import { ContextMenu, MenuItem, MenuSeparator } from "@umriss-ui/core";
|
|
8380
8380
|
```
|
|
8381
8381
|
|
|
8382
|
-
Demo page: https://romanhaendler.github.io/umriss-ui/core
|
|
8382
|
+
Demo page: https://romanhaendler.github.io/umriss-ui/core/contextmenu/
|
|
8383
8383
|
|
|
8384
8384
|
It is controlled: on `contextmenu` you keep the point and open it there, and `onOpenChange` reports the wish to close. Focus goes to the first entry and back to where it was on closing.
|
|
8385
8385
|
|
|
@@ -8582,7 +8582,7 @@ A window above the page that holds the focus until it is answered or closed (als
|
|
|
8582
8582
|
import { Modal, ModalHeader, ModalBody, ModalFooter } from "@umriss-ui/core";
|
|
8583
8583
|
```
|
|
8584
8584
|
|
|
8585
|
-
Demo page: https://romanhaendler.github.io/umriss-ui/core
|
|
8585
|
+
Demo page: https://romanhaendler.github.io/umriss-ui/core/modal/
|
|
8586
8586
|
|
|
8587
8587
|
It is controlled: you hold `open`, and `onClose` reports Escape, the cross and a click on the backdrop. Whether it closes is yours, so a window with unsaved edits can ask first.
|
|
8588
8588
|
|
|
@@ -8857,7 +8857,7 @@ A modal window that slides in from the left or right edge of the screen (also ca
|
|
|
8857
8857
|
import { Drawer, ModalHeader, ModalBody, ModalFooter } from "@umriss-ui/core";
|
|
8858
8858
|
```
|
|
8859
8859
|
|
|
8860
|
-
Demo page: https://romanhaendler.github.io/umriss-ui/core
|
|
8860
|
+
Demo page: https://romanhaendler.github.io/umriss-ui/core/drawer/
|
|
8861
8861
|
|
|
8862
8862
|
Everything the modal promises holds: the focus stays inside, Escape and a click beside it ask to close, and the focus returns to the button that opened it. Header, body and footer are the modal's parts.
|
|
8863
8863
|
|
|
@@ -9075,7 +9075,7 @@ A small modal window with one question and two buttons, for the moment before so
|
|
|
9075
9075
|
import { ConfirmDialog } from "@umriss-ui/core";
|
|
9076
9076
|
```
|
|
9077
9077
|
|
|
9078
|
-
Demo page: https://romanhaendler.github.io/umriss-ui/core
|
|
9078
|
+
Demo page: https://romanhaendler.github.io/umriss-ui/core/confirmdialog/
|
|
9079
9079
|
|
|
9080
9080
|
Use it only where the step cannot be taken back: a question before every action gets clicked away, and then it no longer protects the one that mattered.
|
|
9081
9081
|
|
|
@@ -9248,7 +9248,7 @@ A search field above the page that finds commands and places as you type (also c
|
|
|
9248
9248
|
import { CommandPalette, useCommandPaletteShortcut } from "@umriss-ui/core";
|
|
9249
9249
|
```
|
|
9250
9250
|
|
|
9251
|
-
Demo page: https://romanhaendler.github.io/umriss-ui/core
|
|
9251
|
+
Demo page: https://romanhaendler.github.io/umriss-ui/core/commandpalette/
|
|
9252
9252
|
|
|
9253
9253
|
It matches by subsequence, not by substring: “ack” finds “Acknowledge the alert”, and the matched letters are marked so an unexpected find explains itself. A candidate's group is searched too.
|
|
9254
9254
|
|
|
@@ -9454,7 +9454,7 @@ Shows where the current page sits in a hierarchy and leads back up to any level
|
|
|
9454
9454
|
import { Breadcrumb } from "@umriss-ui/core";
|
|
9455
9455
|
```
|
|
9456
9456
|
|
|
9457
|
-
Demo page: https://romanhaendler.github.io/umriss-ui/core
|
|
9457
|
+
Demo page: https://romanhaendler.github.io/umriss-ui/core/breadcrumb/
|
|
9458
9458
|
|
|
9459
9459
|
The last level is the current page: marked as such and not a link. Routing is yours: a level with an `href` alone is followed by the browser, one with `onSelect` runs your router instead.
|
|
9460
9460
|
|
|
@@ -9683,7 +9683,7 @@ Shows how far a procedure has come: which steps are done, which one is being wor
|
|
|
9683
9683
|
import { Stepper } from "@umriss-ui/core";
|
|
9684
9684
|
```
|
|
9685
9685
|
|
|
9686
|
-
Demo page: https://romanhaendler.github.io/umriss-ui/core
|
|
9686
|
+
Demo page: https://romanhaendler.github.io/umriss-ui/core/stepper/
|
|
9687
9687
|
|
|
9688
9688
|
Each state is said as a word as well as drawn, so a screen reader hears "done", "current step", "upcoming" or "failed". A failed step stays failed when the procedure moves past it; past the last step, every step is done.
|
|
9689
9689
|
|
|
@@ -9882,7 +9882,7 @@ Several views of one thing in one place, exactly one of them visible (also calle
|
|
|
9882
9882
|
import { Tabs, TabList, Tab, TabPanel } from "@umriss-ui/core";
|
|
9883
9883
|
```
|
|
9884
9884
|
|
|
9885
|
-
Demo page: https://romanhaendler.github.io/umriss-ui/core
|
|
9885
|
+
Demo page: https://romanhaendler.github.io/umriss-ui/core/tabs/
|
|
9886
9886
|
|
|
9887
9887
|
Only the visible panel stands in the document; a hidden panel keeps no focus, scroll position or live region.
|
|
9888
9888
|
|
|
@@ -10132,7 +10132,7 @@ Long content in sections behind headers the user opens one or several at a time
|
|
|
10132
10132
|
import { Accordion, AccordionItem } from "@umriss-ui/core";
|
|
10133
10133
|
```
|
|
10134
10134
|
|
|
10135
|
-
Demo page: https://romanhaendler.github.io/umriss-ui/core
|
|
10135
|
+
Demo page: https://romanhaendler.github.io/umriss-ui/core/accordion/
|
|
10136
10136
|
|
|
10137
10137
|
Each header is a button inside a heading; set the heading level that fits the page's outline. A folded section keeps its content and its fields' values, hidden and inert.
|
|
10138
10138
|
|
|
@@ -10376,7 +10376,7 @@ A hierarchy the user expands, walks with the keys and optionally ticks (also cal
|
|
|
10376
10376
|
import { TreeView, TreeSearch, useTree } from "@umriss-ui/core";
|
|
10377
10377
|
```
|
|
10378
10378
|
|
|
10379
|
-
Demo page: https://romanhaendler.github.io/umriss-ui/core
|
|
10379
|
+
Demo page: https://romanhaendler.github.io/umriss-ui/core/treeview/
|
|
10380
10380
|
|
|
10381
10381
|
`useTree` takes your data and a reader that says how to get a key, a label and the children; the tree owns only the view state over your data.
|
|
10382
10382
|
|
|
@@ -10877,7 +10877,7 @@ A single figure with its verdict: read against limits, with the history before i
|
|
|
10877
10877
|
import { Stat, useFreshness } from "@umriss-ui/core";
|
|
10878
10878
|
```
|
|
10879
10879
|
|
|
10880
|
-
Demo page: https://romanhaendler.github.io/umriss-ui/core
|
|
10880
|
+
Demo page: https://romanhaendler.github.io/umriss-ui/core/stat/
|
|
10881
10881
|
|
|
10882
10882
|
The tile gets a rule, not a colour: `limits` are values with a side and a severity, and the colour and the verdict word follow from them. The same limit model drives the charts' limit lines (ADR-0006).
|
|
10883
10883
|
|
|
@@ -11274,7 +11274,7 @@ A bar that shows a measured share, such as capacity booked or budget used, colou
|
|
|
11274
11274
|
import { Meter } from "@umriss-ui/core";
|
|
11275
11275
|
```
|
|
11276
11276
|
|
|
11277
|
-
Demo page: https://romanhaendler.github.io/umriss-ui/core
|
|
11277
|
+
Demo page: https://romanhaendler.github.io/umriss-ui/core/meter/
|
|
11278
11278
|
|
|
11279
11279
|
`value` runs from 0 to 1 and is clamped outside; say the true figure beside the bar where it can pass 100 %.
|
|
11280
11280
|
|
|
@@ -11429,7 +11429,7 @@ A small line of a history, at the height of a line of text, without axes or labe
|
|
|
11429
11429
|
import { Sparkline } from "@umriss-ui/core";
|
|
11430
11430
|
```
|
|
11431
11431
|
|
|
11432
|
-
Demo page: https://romanhaendler.github.io/umriss-ui/core
|
|
11432
|
+
Demo page: https://romanhaendler.github.io/umriss-ui/core/sparkline/
|
|
11433
11433
|
|
|
11434
11434
|
It needs at least two values; with fewer it draws nothing. The line is ink, not meaning: the `accent` tone is for picking out one line among several, never for a verdict.
|
|
11435
11435
|
|
|
@@ -11608,7 +11608,7 @@ A small word or number at the edge of something else: a status, a count (also ca
|
|
|
11608
11608
|
import { Badge } from "@umriss-ui/core";
|
|
11609
11609
|
```
|
|
11610
11610
|
|
|
11611
|
-
Demo page: https://romanhaendler.github.io/umriss-ui/core
|
|
11611
|
+
Demo page: https://romanhaendler.github.io/umriss-ui/core/badge/
|
|
11612
11612
|
|
|
11613
11613
|
It is never the only place a state is said: the word inside carries the meaning, and the tone repeats it for the eye.
|
|
11614
11614
|
|
|
@@ -11747,7 +11747,7 @@ A short label on content that the user can remove where you allow it (also calle
|
|
|
11747
11747
|
import { Tag, TagGroup } from "@umriss-ui/core";
|
|
11748
11748
|
```
|
|
11749
11749
|
|
|
11750
|
-
Demo page: https://romanhaendler.github.io/umriss-ui/core
|
|
11750
|
+
Demo page: https://romanhaendler.github.io/umriss-ui/core/tag/
|
|
11751
11751
|
|
|
11752
11752
|
`onRemove` turns the label into a control. In a `TagGroup` the whole group is one tab stop, and focus moves to the neighbour after a removal instead of falling to the top of the page.
|
|
11753
11753
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umriss-ui/core",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.14.1",
|
|
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",
|
|
7
7
|
"homepage": "https://romanhaendler.github.io/umriss-ui/core/",
|
|
@@ -15,10 +15,17 @@
|
|
|
15
15
|
},
|
|
16
16
|
"keywords": [
|
|
17
17
|
"react",
|
|
18
|
-
"components",
|
|
18
|
+
"react-components",
|
|
19
|
+
"component-library",
|
|
19
20
|
"ui",
|
|
20
|
-
"
|
|
21
|
-
"design-system"
|
|
21
|
+
"ui-library",
|
|
22
|
+
"design-system",
|
|
23
|
+
"typescript",
|
|
24
|
+
"dashboard",
|
|
25
|
+
"date-picker",
|
|
26
|
+
"command-palette",
|
|
27
|
+
"tree-view",
|
|
28
|
+
"umriss"
|
|
22
29
|
],
|
|
23
30
|
"type": "module",
|
|
24
31
|
"files": [
|