@umriss-ui/core 0.56.0 → 0.57.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/API.md +63 -51
- package/CHANGELOG.md +20 -0
- package/README.md +14 -8
- package/dist/core.css +1 -1
- package/dist/core.js +194 -199
- package/dist/de.d.ts +12 -12
- package/dist/index.d.ts +45 -26
- package/docs/llms-full.md +336 -180
- package/package.json +6 -3
package/API.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @umriss-ui/core API
|
|
2
2
|
|
|
3
|
-
Generated by the props step (`pnpm --filter @umriss-ui/core props`); do not edit.
|
|
3
|
+
Generated by the props step (`pnpm --filter @umriss-ui/core props`); do not edit. Lists every export, and the props, options and returns of each component and hook, with first sentences only; the full text is `docs/llms-full.md`. What stands under `## Experimental`, or is marked `(experimental)`, may change in a minor release; everything else is the surface a break costs a major for (ADR-0083).
|
|
4
4
|
|
|
5
5
|
## Components
|
|
6
6
|
|
|
@@ -99,7 +99,7 @@ Generated by the props step (`pnpm --filter @umriss-ui/core props`); do not edit
|
|
|
99
99
|
- useContextMenuTrigger — Opens a `ContextMenu` the same way on every device: on a right-click (at the pointer), on the context-menu key or Shift+F10 (at the target's box) and on a long press with a finger (at the finger), which is the only way on iOS.
|
|
100
100
|
- useDensity — The configured density; without a provider, "comfortable".
|
|
101
101
|
- useDensityFor — A component's `density`: its own value, else the density the provider explicitly configured, else its own default.
|
|
102
|
-
- useFormField —
|
|
102
|
+
- useFormField — Reads the wiring of the surrounding FormField (id, label, description, invalid, required) so a field sets its id and aria attributes itself.
|
|
103
103
|
- useFormats — Only the formatting.
|
|
104
104
|
- useFreshness — Judges a value's as-of time continuously and causes a redraw when it changes state.
|
|
105
105
|
- useLanguage — Formatting and wording together; without a provider, the defaults.
|
|
@@ -152,19 +152,20 @@ Generated by the props step (`pnpm --filter @umriss-ui/core props`); do not edit
|
|
|
152
152
|
- AccordionItemProps — The props of `AccordionItem`: a div's attributes, with `title` taking the header's node instead of the HTML attribute.
|
|
153
153
|
- AccordionProps — The props of `Accordion`.
|
|
154
154
|
- AlertProps — The props of `Alert`: a div's attributes, with `title` taking a heading node instead of the HTML attribute.
|
|
155
|
-
- AlertTone — How urgent an alert is; it also decides whether a screen reader is interrupted.
|
|
156
|
-
- Align — Where the panel lines up with its anchor along the side it stands on.
|
|
155
|
+
- AlertTone — How urgent an alert is; it also decides whether a screen reader is interrupted. = "neutral" | "accent" | "success" | "warning" | "danger"
|
|
156
|
+
- Align — Where the panel lines up with its anchor along the side it stands on. = "start" | "end" | "center"
|
|
157
157
|
- Assessment — The verdict and what led to it. [verdict, limit, excess, deviation]
|
|
158
158
|
- AvatarProps — The props of `Avatar`.
|
|
159
|
-
- AvatarSize — The size of an avatar: `sm` for a table cell, `md` for a lane's header.
|
|
159
|
+
- AvatarSize — The size of an avatar: `sm` for a table cell, `md` for a lane's header. = "sm" | "md"
|
|
160
160
|
- BadgeProps — The props of `Badge`.
|
|
161
|
-
- BadgeTone — What a badge stands for - never the only statement, a word stands beside it.
|
|
161
|
+
- BadgeTone — What a badge stands for - never the only statement, a word stands beside it. = "neutral" | "accent" | "success" | "warning" | "danger"
|
|
162
162
|
- BreadcrumbEntry — One level of the trail. [label, href, onSelect]
|
|
163
163
|
- BreadcrumbProps — The props of `Breadcrumb`.
|
|
164
164
|
- ButtonGroupProps — The props of `ButtonGroup`.
|
|
165
165
|
- ButtonProps — The props of `Button`: a native button's attributes and its look.
|
|
166
166
|
- ButtonSize — A button's two heights - the controls' (`ControlSize`).
|
|
167
|
-
- ButtonVariant — How loud a button is: `primary` for the one main action, `secondary` by default, `ghost` quiet in the accent, `plain` quiet and neutral, `danger` for a destructive action.
|
|
167
|
+
- ButtonVariant — How loud a button is: `primary` for the one main action, `secondary` by default, `ghost` quiet in the accent, `plain` quiet and neutral, `danger` for a destructive action. = "primary" | "secondary" | "ghost" | "plain" | "danger"
|
|
168
|
+
- CalendarGlyphProps — The props of `CalendarGlyph`.
|
|
168
169
|
- CardBodyProps — The props of `CardBody`.
|
|
169
170
|
- CardHeaderProps — The props of `CardHeader`: a div's attributes, with `title` taking a node instead of the HTML attribute.
|
|
170
171
|
- CardProps — The props of `Card`.
|
|
@@ -179,61 +180,62 @@ Generated by the props step (`pnpm --filter @umriss-ui/core props`); do not edit
|
|
|
179
180
|
- ConfirmDialogProps — The props of `ConfirmDialog`.
|
|
180
181
|
- ContextMenuProps — The props of `ContextMenu`.
|
|
181
182
|
- ContextMenuTriggerProps — What `useContextMenuTrigger` returns: spread it on the target.
|
|
182
|
-
- ControlSize — The two heights of a control: `sm` for a toolbar and dense forms, `md` otherwise.
|
|
183
|
+
- ControlSize — The two heights of a control: `sm` for a toolbar and dense forms, `md` otherwise. = "sm" | "md"
|
|
183
184
|
- ControlSizeProviderProps — The props of `ControlSizeProvider`.
|
|
184
185
|
- DatePickerProps — The value contract: every way - the grid, "Today", clearing - hands out midnight in the formats' zone (the reader's, unless the application names one; resolution "day").
|
|
185
186
|
- DateRange — A span between two dates, both ends included - the value of `DateRangePicker` and `DateTimeRangePicker`. [from, to]
|
|
186
187
|
- DateRangePickerProps — The value contract: both ends on midnight in the formats' zone (resolution "day"), and `from` never lies after `to` - a range dragged backwards is silently turned around.
|
|
187
188
|
- DateTimePickerProps — The value contract: an exact instant (resolution "instant"), with seconds depending on `withSeconds`.
|
|
188
189
|
- DateTimeRangePickerProps — The props resemble the union of DateRangePickerProps and DateTimePickerProps - the promises expressly do NOT.
|
|
189
|
-
- Density — How densely the library builds.
|
|
190
|
-
- Direction — Where the active node moves: up and down the visible rows, in and out of a branch, to the first or the last row.
|
|
190
|
+
- Density — How densely the library builds. = "comfortable" | "compact"
|
|
191
|
+
- Direction — Where the active node moves: up and down the visible rows, in and out of a branch, to the first or the last row. = "up" | "down" | "in" | "out" | "start" | "end"
|
|
191
192
|
- DividerProps — The props of `Divider`.
|
|
192
193
|
- DrawerProps — The props of `Drawer`: a `Modal`'s, with `side` in place of `size`.
|
|
193
194
|
- EmptyStateProps — The props of `EmptyState`: a div's attributes, with `title` taking a node instead of the HTML attribute.
|
|
194
195
|
- FileInputProps — The props of `FileInput`: a native file input's attributes, with the files as the value.
|
|
195
196
|
- FlatteningEntry — One visible node of a tree, with everything a row needs to be drawn and read out: level, branch or leaf, check state, search state and position among its siblings. [node, key, level, label, branch, empty, disabled, unloaded, expanded, checked, indeterminate, active, matches, pathOnly, position, siblings]
|
|
197
|
+
- FormFieldBoundaryProps — The props of `FormFieldBoundary`.
|
|
196
198
|
- FormFieldContextValue — What `useFormField` returns: the wiring a field inside a FormField reads. [id, labelId, describedBy, invalid, required]
|
|
197
199
|
- FormFieldProps — The props of `FormField`.
|
|
198
200
|
- Formats — Everything the library knows about formatting. [locale, timeZone, timeZoneName, date, dateShort, month, monthName, dateLong, weekStart, time, dateTime, offset, number, numberWith, count, percent, compareText, relative]
|
|
199
|
-
- Freshness — How old a value is right now - independently of how it is judged and how far its source vouches for it.
|
|
201
|
+
- Freshness — How old a value is right now - independently of how it is judged and how far its source vouches for it. = "fresh" | "stale" | "lost"
|
|
200
202
|
- FreshnessAges — The two ages at which a value changes its state, in milliseconds. [stale, lost]
|
|
201
|
-
- FreshnessInstant — What may come in as an as-of time or a reference time.
|
|
203
|
+
- FreshnessInstant — What may come in as an as-of time or a reference time. = Date | number | null | undefined
|
|
202
204
|
- FreshnessReading — What `useFreshness` returns: how fresh the value is, how old, and the time the reading was taken at. [freshness, age, now]
|
|
203
205
|
- GlyphProps — The props of a glyph: an SVG's attributes and its edge length.
|
|
204
|
-
- GridColumnWidth — The width of one column in `Grid`'s list: a number in pixels, or `"fill"` for a share of what the other columns leave.
|
|
206
|
+
- GridColumnWidth — The width of one column in `Grid`'s list: a number in pixels, or `"fill"` for a share of what the other columns leave. = number | "fill"
|
|
205
207
|
- GridProps — The props of `Grid`.
|
|
206
208
|
- HeadingProps — The props of `Heading`.
|
|
207
209
|
- IconButtonProps — The props of `IconButton`: a `Button`'s, with a required `aria-label` and the icon as its only child.
|
|
208
210
|
- InputProps — The props of `Input`: a native input's attributes, with `size` meaning the control's height.
|
|
209
|
-
- Key — A node's key, as `reader.key` returns it.
|
|
211
|
+
- Key — A node's key, as `reader.key` returns it. = string | number
|
|
210
212
|
- Language — A complete language: the formats for numbers and dates, and the wording. [formats, wording]
|
|
211
213
|
- LanguageOptions — What an application can pass in for formatting and wording. [formats, wording]
|
|
212
214
|
- LanguageProviderProps — The props of `LanguageProvider`: the parts of the formats and the wording that differ from the default.
|
|
213
215
|
- Limit — A bound: a value, a side, a severity. [value, side, severity]
|
|
214
216
|
- LimitSet — The set a value is read against. [limits, target]
|
|
215
217
|
- LinkProps — The props of `Link`.
|
|
216
|
-
- LongPress — A press detector over pointer events; see `createLongPress`.
|
|
218
|
+
- LongPress — A press detector over pointer events; see `createLongPress`. [pointerDown(event: PressPointer): void, pointerMove(event: PressPointer): void, pointerUp(): void, pointerCancel(): void, swallows(): boolean, touching(): boolean, dispose(): void]
|
|
217
219
|
- MenuItemProps — The props of `MenuItem`: a button's attributes, with `onSelect` for what the entry does.
|
|
218
220
|
- MenuProps — The props of `Menu`.
|
|
219
221
|
- MeterProps — The props of `Meter`.
|
|
220
|
-
- MeterTone — The colour of a meter's bar - an assessment, never the only statement.
|
|
222
|
+
- MeterTone — The colour of a meter's bar - an assessment, never the only statement. = "neutral" | "accent" | "success" | "warning" | "danger"
|
|
221
223
|
- ModalHeaderProps — The props of `ModalHeader`: a div's attributes, with `title` taking a node instead of the HTML attribute; without it, the children are the heading.
|
|
222
224
|
- ModalProps — The props of `Modal`: a native dialog's attributes, controlled through `open` and `onClose`.
|
|
223
|
-
- ModalSize — The width of a `Modal`.
|
|
225
|
+
- ModalSize — The width of a `Modal`. = "sm" | "md" | "lg"
|
|
224
226
|
- MultiSelectOption — One possibility of a `MultiSelect`: the value it stands for and its label. [value, label, disabled]
|
|
225
227
|
- MultiSelectProps — The props of `MultiSelect`.
|
|
226
228
|
- NodeReader — How a node is read - handed over once, not per node. [key, children, label, disabled, unloaded, matches]
|
|
227
|
-
- NumberFormat — How a number is written: a share, a count, or Intl's options.
|
|
229
|
+
- NumberFormat — How a number is written: a share, a count, or Intl's options. = "percent" | "count" | NumberOptions
|
|
228
230
|
- NumberInputProps — The props of `NumberInput`: a native input's attributes, with the value a number or `null`.
|
|
229
|
-
- NumberOptions — Intl's number options, plus `decimals`: the shorthand for the minimum and the maximum fraction digits.
|
|
230
|
-
- PopoverCloseReason — Why a popover asks to close: Escape, a click outside, a scroll (`hideOnScroll`), the anchor clipped away by a scrolling container, a Tab out of the panel (`closeOnTabOut`).
|
|
231
|
+
- NumberOptions — Intl's number options, plus `decimals`: the shorthand for the minimum and the maximum fraction digits. [decimals]
|
|
232
|
+
- PopoverCloseReason — Why a popover asks to close: Escape, a click outside, a scroll (`hideOnScroll`), the anchor clipped away by a scrolling container, a Tab out of the panel (`closeOnTabOut`). = "escape" | "outside" | "scroll" | "clipped" | "tab"
|
|
231
233
|
- PopoverProps — The props of `Popover`.
|
|
232
|
-
- PortalTarget — Where overlays portal to.
|
|
234
|
+
- PortalTarget — Where overlays portal to. = HTMLElement | () => HTMLElement | null | null
|
|
233
235
|
- PressPoint — Where the finger stands, in client coordinates. [x, y]
|
|
234
236
|
- PressPointer — What the detector reads of a pointer event - a DOM or a React one fits. [pointerType, clientX, clientY]
|
|
235
237
|
- ProgressBarProps — The props of `ProgressBar`.
|
|
236
|
-
- Quality — How far a value's source vouches for it - independently of how the value is judged and how old it is.
|
|
238
|
+
- Quality — How far a value's source vouches for it - independently of how the value is judged and how old it is. = "good" | "uncertain" | "bad"
|
|
237
239
|
- RadioGroupProps — The props of `RadioGroup`.
|
|
238
240
|
- RadioOption — One possibility of a `RadioGroup`: its value, its label and an optional line of explanation. [value, label, description, disabled]
|
|
239
241
|
- RangePreset — A shortcut in a range picker's panel: its label, and a function that computes the range when it is chosen - so that "Last 7 days" is counted from the moment of the click. [label, range]
|
|
@@ -246,12 +248,12 @@ Generated by the props step (`pnpm --filter @umriss-ui/core props`); do not edit
|
|
|
246
248
|
- SegmentedOption — One possibility of a `SegmentedControl`: its value and its short label. [value, label, icon, disabled]
|
|
247
249
|
- SelectProps — The props of `Select`: a native select's attributes, with `size` meaning the control's height.
|
|
248
250
|
- Separators — The two characters a notation separates with. [group, decimal]
|
|
249
|
-
- Severity — How seriously a violation weighs: one severity that advises and one that calls for action.
|
|
250
|
-
- Side — Whether a limit is an upper or a lower bound.
|
|
251
|
+
- Severity — How seriously a violation weighs: one severity that advises and one that calls for action. = "warning" | "alarm"
|
|
252
|
+
- Side — Whether a limit is an upper or a lower bound. = "upper" | "lower"
|
|
251
253
|
- SkeletonProps — The props of `Skeleton`.
|
|
252
|
-
- SliderMark — A mark on the track: a value, or a value with the word beneath it.
|
|
254
|
+
- SliderMark — A mark on the track: a value, or a value with the word beneath it. = number | { value, label }
|
|
253
255
|
- SliderProps — The props of `Slider`.
|
|
254
|
-
- SpaceStep — A step of the spacing scale, from 1 (4 px) to 8 (40 px) - the tokens `--u-space-1` to `--u-space-8`.
|
|
256
|
+
- SpaceStep — A step of the spacing scale, from 1 (4 px) to 8 (40 px) - the tokens `--u-space-1` to `--u-space-8`. = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8
|
|
255
257
|
- SparklineProps — The props of `Sparkline`.
|
|
256
258
|
- SpinnerProps — The props of `Spinner`.
|
|
257
259
|
- SplitButtonProps — The props of `SplitButton`: a `Button`'s for the main action, plus the menu's entries.
|
|
@@ -266,32 +268,34 @@ Generated by the props step (`pnpm --filter @umriss-ui/core props`); do not edit
|
|
|
266
268
|
- TabsProps — The props of `Tabs`.
|
|
267
269
|
- TagGroupProps — The props of `TagGroup`: a div's attributes, with a required name.
|
|
268
270
|
- TagProps — The props of `Tag`.
|
|
269
|
-
- TagTone — What a tag stands for - never the only statement, its text says it too.
|
|
270
|
-
- TextLeading — The line height of the token set.
|
|
271
|
+
- TagTone — What a tag stands for - never the only statement, its text says it too. = "neutral" | "accent" | "success" | "warning" | "danger"
|
|
272
|
+
- TextLeading — The line height of the token set. = "normal" | "tight"
|
|
271
273
|
- TextProps — The props of `Text`.
|
|
272
|
-
- TextSize — A type size of the token set.
|
|
273
|
-
- TextTone — How loud a text is; `secondary` and `muted` step back without falling below the contrast threshold.
|
|
274
|
-
- TextTracking — The letter spacing of the token set.
|
|
275
|
-
- TextWeight — A font weight of the token set.
|
|
274
|
+
- TextSize — A type size of the token set. = "xs" | "sm" | "md" | "lg" | "xl" | "2xl"
|
|
275
|
+
- TextTone — How loud a text is; `secondary` and `muted` step back without falling below the contrast threshold. = "default" | "secondary" | "muted"
|
|
276
|
+
- TextTracking — The letter spacing of the token set. = "normal" | "tight" | "display" | "caps"
|
|
277
|
+
- TextWeight — A font weight of the token set. = "regular" | "medium" | "semibold"
|
|
276
278
|
- TextareaProps — The props of `Textarea`: a native textarea's attributes, with `chars` in place of `cols`.
|
|
277
279
|
- TimeInputProps — The props of `TimeInput`.
|
|
278
280
|
- ToastAction — The one action a toast may carry, e.g. "Undo". [label, onClick]
|
|
279
|
-
- ToastCloseReason — Why a toast went: its time ran out, it was closed (or gave way to a newer one), or its action was taken.
|
|
281
|
+
- ToastCloseReason — Why a toast went: its time ran out, it was closed (or gave way to a newer one), or its action was taken. = "timeout" | "dismiss" | "action"
|
|
280
282
|
- ToastConfig — The defaults for every toast, set on `UmrissProvider`'s `toast`. [duration, position, limit]
|
|
281
283
|
- ToastContextValue — What `useToast` returns: the functions that show, change and close toasts. [toast, update, dismiss]
|
|
282
284
|
- ToastOptions — What a toast says and how - what `toast()` and `update()` from `useToast` take. [title, description, tone, duration, action, onClose]
|
|
283
|
-
- ToastPosition — Where the toasts stand: an edge of the window and a place along it.
|
|
285
|
+
- ToastPosition — Where the toasts stand: an edge of the window and a place along it. = "top-start" | "top-center" | "top-end" | "bottom-start" | "bottom-center" | "bottom-end"
|
|
284
286
|
- ToastProviderProps — The props of `ToastProvider`.
|
|
285
|
-
- ToastTone — How the message turns out; `loading` is a toast still at work.
|
|
287
|
+
- ToastTone — How the message turns out; `loading` is a toast still at work. = "neutral" | "success" | "warning" | "danger" | "loading"
|
|
288
|
+
- Tone — The five tones a component can take, as the tone components name them. = "neutral" | "accent" | "success" | "warning" | "danger"
|
|
289
|
+
- ToneGlyphProps — The props of `ToneGlyph`.
|
|
286
290
|
- TooltipProps — The props of `Tooltip`.
|
|
287
291
|
- Tree — What `useTree` returns: the visible nodes and the gestures on them. [flattening, active, search, toggleExpanded, toggleCheck, activate, move, setSearch, revealNode, revealPath, expandAll, collapseAll, typeahead, checkTo, moveAndCheck, toggleAll, revealCount, virtual]
|
|
288
292
|
- TreeOptions — The options of `useTree`: how a node is read, and each of its values either uncontrolled (`default…`) or controlled with its `on…` handler. [reader, defaultExpanded, defaultChecked, defaultActive, defaultSearch, expanded, checked, active, anchor, search, onExpandedChange, onCheckedChange, onActiveChange, onAnchorChange, onSearchChange, onActivate, onLoadChildren, virtual]
|
|
289
293
|
- TreeSearchProps — The props of `TreeSearch`: an `Input`'s, with the tree in place of `value` and `onChange`.
|
|
290
294
|
- TreeSnapshot — The whole state of a tree, as plain values: the open branches, the checked nodes, the active node, the anchor and the search text. [expanded, checked, active, anchor, search]
|
|
291
295
|
- TreeViewProps — The props of `TreeView`.
|
|
292
|
-
- UmrissConfig — The settings of `UmrissProvider` as the components read them
|
|
296
|
+
- UmrissConfig — The settings of `UmrissProvider` as the components read them. [density, portalTarget, toast]
|
|
293
297
|
- UmrissProviderProps — The props of `UmrissProvider`.
|
|
294
|
-
- Verdict — What a value is.
|
|
298
|
+
- Verdict — What a value is. = "ok" | "unknown" | "warning" | "alarm"
|
|
295
299
|
- VirtualOptions — The options of `useVirtual`. [rowHeight, overscan]
|
|
296
300
|
- VirtualRows — What `useVirtual` returns: the ref for the scroll area, the window of rows to render and the heights of the filler rows around it. [scrollRef, from, to, fillerBefore, fillerAfter, count, showRow, onScroll]
|
|
297
301
|
- VisuallyHiddenProps — The props of `VisuallyHidden`: those of the element `as` names, `span` by default.
|
|
@@ -342,7 +346,7 @@ Generated by the props step (`pnpm --filter @umriss-ui/core props`); do not edit
|
|
|
342
346
|
|
|
343
347
|
#### props (GlyphProps)
|
|
344
348
|
|
|
345
|
-
- size?: number — Edge length in pixels. (default:
|
|
349
|
+
- size?: number — Edge length in pixels. (default: 10)
|
|
346
350
|
- ref?: Ref<SVGSVGElement> | undefined — Receives the component's root element.
|
|
347
351
|
|
|
348
352
|
### Avatar
|
|
@@ -389,8 +393,9 @@ Generated by the props step (`pnpm --filter @umriss-ui/core props`); do not edit
|
|
|
389
393
|
|
|
390
394
|
### CalendarGlyph
|
|
391
395
|
|
|
392
|
-
#### props (
|
|
396
|
+
#### props (CalendarGlyphProps)
|
|
393
397
|
|
|
398
|
+
- range?: boolean — Draws a bar across the sheet for the span a range picker chooses. (default: false)
|
|
394
399
|
- size?: number — Edge length in pixels. (default: 12)
|
|
395
400
|
- ref?: Ref<SVGSVGElement> | undefined — Receives the component's root element.
|
|
396
401
|
|
|
@@ -529,7 +534,7 @@ Generated by the props step (`pnpm --filter @umriss-ui/core props`); do not edit
|
|
|
529
534
|
|
|
530
535
|
#### props (GlyphProps)
|
|
531
536
|
|
|
532
|
-
- size?: number — Edge length in pixels. (default:
|
|
537
|
+
- size?: number — Edge length in pixels. (default: 9)
|
|
533
538
|
- ref?: Ref<SVGSVGElement> | undefined — Receives the component's root element.
|
|
534
539
|
|
|
535
540
|
### DatePicker
|
|
@@ -564,7 +569,7 @@ Generated by the props step (`pnpm --filter @umriss-ui/core props`); do not edit
|
|
|
564
569
|
- size?: "sm" | "md" — `sm` for a toolbar and dense forms, `md` otherwise. (default: the size of a `ControlSizeProvider` around it, else `"md"`)
|
|
565
570
|
- chars?: number — The width in characters - room for the value; the field adds its own padding, glyph and cross.
|
|
566
571
|
- clearable?: boolean — Shows a cross where a value is set, which fades in on hover/focus and clears the value, and the open panel offers Clear. (default: false)
|
|
567
|
-
- presets?: RangePreset[] — The quick-select column in the panel. (default: `DEFAULT_PRESETS`, in the wording's labels)
|
|
572
|
+
- presets?: readonly RangePreset[] — The quick-select column in the panel. (default: `DEFAULT_PRESETS`, in the wording's labels)
|
|
568
573
|
- min?: Date — The earliest day the picker offers, inclusive.
|
|
569
574
|
- max?: Date — The latest day the picker offers, inclusive; read as `min` is.
|
|
570
575
|
- ref?: Ref<HTMLButtonElement> | undefined — Receives the component's root element.
|
|
@@ -607,7 +612,7 @@ Generated by the props step (`pnpm --filter @umriss-ui/core props`); do not edit
|
|
|
607
612
|
- size?: "sm" | "md" — `sm` for a toolbar and dense forms, `md` otherwise. (default: the size of a `ControlSizeProvider` around it, else `"md"`)
|
|
608
613
|
- chars?: number — The width in characters - room for the value; the field adds its own padding, glyph and cross.
|
|
609
614
|
- clearable?: boolean — Shows a cross where a value is set, which fades in on hover/focus and clears the value, and the open panel offers Clear. (default: false)
|
|
610
|
-
- presets?: RangePreset[] — The quick-select column in the panel; presets apply for the whole day and close immediately. (default: `DEFAULT_PRESETS`, in the wording's labels)
|
|
615
|
+
- presets?: readonly RangePreset[] — The quick-select column in the panel; presets apply for the whole day and close immediately. (default: `DEFAULT_PRESETS`, in the wording's labels)
|
|
611
616
|
- min?: Date — The earliest day the picker offers, inclusive.
|
|
612
617
|
- max?: Date — The latest day the picker offers, inclusive; read as `min` is.
|
|
613
618
|
- ref?: Ref<HTMLButtonElement> | undefined — Receives the component's root element.
|
|
@@ -639,7 +644,7 @@ Generated by the props step (`pnpm --filter @umriss-ui/core props`); do not edit
|
|
|
639
644
|
|
|
640
645
|
#### props (GlyphProps)
|
|
641
646
|
|
|
642
|
-
- size?: number — Edge length in pixels. (default:
|
|
647
|
+
- size?: number — Edge length in pixels. (default: 10)
|
|
643
648
|
- ref?: Ref<SVGSVGElement> | undefined — Receives the component's root element.
|
|
644
649
|
|
|
645
650
|
### EmptyState
|
|
@@ -656,7 +661,7 @@ Generated by the props step (`pnpm --filter @umriss-ui/core props`); do not edit
|
|
|
656
661
|
|
|
657
662
|
#### props (GlyphProps)
|
|
658
663
|
|
|
659
|
-
- size?: number — Edge length in pixels. (default:
|
|
664
|
+
- size?: number — Edge length in pixels. (default: 10)
|
|
660
665
|
- ref?: Ref<SVGSVGElement> | undefined — Receives the component's root element.
|
|
661
666
|
|
|
662
667
|
### FileInput
|
|
@@ -681,6 +686,12 @@ Generated by the props step (`pnpm --filter @umriss-ui/core props`); do not edit
|
|
|
681
686
|
- labelPlacement?: "top" | "start" — Where the label stands: `"top"` above the field (the default) or `"start"` beside it, in a column as wide as `--u-label-width`, level on the first baseline. (default: "top")
|
|
682
687
|
- ref?: Ref<HTMLDivElement> | undefined — Receives the component's root element.
|
|
683
688
|
|
|
689
|
+
### FormFieldBoundary
|
|
690
|
+
|
|
691
|
+
#### props (FormFieldBoundaryProps)
|
|
692
|
+
|
|
693
|
+
- children: ReactNode — What stands outside the field's wiring.
|
|
694
|
+
|
|
684
695
|
### Grid
|
|
685
696
|
|
|
686
697
|
#### props (GridProps)
|
|
@@ -694,14 +705,14 @@ Generated by the props step (`pnpm --filter @umriss-ui/core props`); do not edit
|
|
|
694
705
|
|
|
695
706
|
#### props (GlyphProps)
|
|
696
707
|
|
|
697
|
-
- size?: number — Edge length in pixels. (default:
|
|
708
|
+
- size?: number — Edge length in pixels. (default: 10)
|
|
698
709
|
- ref?: Ref<SVGSVGElement> | undefined — Receives the component's root element.
|
|
699
710
|
|
|
700
711
|
### GripGlyph
|
|
701
712
|
|
|
702
713
|
#### props (GlyphProps)
|
|
703
714
|
|
|
704
|
-
- size?: number — Edge length in pixels. (default:
|
|
715
|
+
- size?: number — Edge length in pixels. (default: 10)
|
|
705
716
|
- ref?: Ref<SVGSVGElement> | undefined — Receives the component's root element.
|
|
706
717
|
|
|
707
718
|
### Heading
|
|
@@ -761,7 +772,7 @@ Generated by the props step (`pnpm --filter @umriss-ui/core props`); do not edit
|
|
|
761
772
|
|
|
762
773
|
#### props (GlyphProps)
|
|
763
774
|
|
|
764
|
-
- size?: number — Edge length in pixels. (default:
|
|
775
|
+
- size?: number — Edge length in pixels. (default: 10)
|
|
765
776
|
- ref?: Ref<SVGSVGElement> | undefined — Receives the component's root element.
|
|
766
777
|
|
|
767
778
|
### Menu
|
|
@@ -801,7 +812,7 @@ Generated by the props step (`pnpm --filter @umriss-ui/core props`); do not edit
|
|
|
801
812
|
|
|
802
813
|
#### props (GlyphProps)
|
|
803
814
|
|
|
804
|
-
- size?: number — Edge length in pixels. (default:
|
|
815
|
+
- size?: number — Edge length in pixels. (default: 10)
|
|
805
816
|
- ref?: Ref<SVGSVGElement> | undefined — Receives the component's root element.
|
|
806
817
|
|
|
807
818
|
### Modal
|
|
@@ -887,7 +898,7 @@ Generated by the props step (`pnpm --filter @umriss-ui/core props`); do not edit
|
|
|
887
898
|
|
|
888
899
|
#### props (GlyphProps)
|
|
889
900
|
|
|
890
|
-
- size?: number — Edge length in pixels. (default:
|
|
901
|
+
- size?: number — Edge length in pixels. (default: 10)
|
|
891
902
|
- ref?: Ref<SVGSVGElement> | undefined — Receives the component's root element.
|
|
892
903
|
|
|
893
904
|
### Popover
|
|
@@ -1196,9 +1207,10 @@ Generated by the props step (`pnpm --filter @umriss-ui/core props`); do not edit
|
|
|
1196
1207
|
|
|
1197
1208
|
### ToneGlyph
|
|
1198
1209
|
|
|
1199
|
-
#### props (
|
|
1210
|
+
#### props (ToneGlyphProps)
|
|
1200
1211
|
|
|
1201
|
-
-
|
|
1212
|
+
- tone: Tone — Which tone the glyph stands for.
|
|
1213
|
+
- size?: number — Edge length in pixels. (default: 16)
|
|
1202
1214
|
- ref?: Ref<SVGSVGElement> | undefined — Receives the component's root element.
|
|
1203
1215
|
|
|
1204
1216
|
### Tooltip
|
package/CHANGELOG.md
CHANGED
|
@@ -27,6 +27,26 @@ package stood at `0.1.0` the whole time, because it had exactly one caller and t
|
|
|
27
27
|
caller lay in the same repository — and are grouped by unit of delivery, not by
|
|
28
28
|
commit.
|
|
29
29
|
|
|
30
|
+
## 0.57.0 – `API.md` lists the whole surface; `Tone` and three props types (Nov. 2026)
|
|
31
|
+
|
|
32
|
+
### Added
|
|
33
|
+
|
|
34
|
+
- **`API.md` lists the whole surface:** a member written as a method, and the members of a union beside its name. What is marked `@experimental` will stand under a heading of its own, and a deprecated member last in its table.
|
|
35
|
+
- **`Tone`,** the five tones as one exported type, and the props types `ToneGlyphProps`, `CalendarGlyphProps` and `FormFieldBoundaryProps`.
|
|
36
|
+
- **`presets` of `DateRangePicker` and `DateTimeRangePicker` takes a `readonly` array.**
|
|
37
|
+
- **Examples** for `defaultValue` on `FileInput`, `DateTimePicker` and `DateTimeRangePicker`, and for `ToneGlyph`, `CalendarGlyph` and `FormFieldBoundary`.
|
|
38
|
+
|
|
39
|
+
### Changed
|
|
40
|
+
|
|
41
|
+
- **The package names Node 22 in `engines` and peers `react` and `react-dom` as `^19`** (was `>=19`), so that a later React is not promised before it has run (ADR-0083).
|
|
42
|
+
- Migration: nothing on Node 22 and React 19.
|
|
43
|
+
|
|
44
|
+
### Fixed
|
|
45
|
+
|
|
46
|
+
- **The browser floors are the ones the source needs: Chrome 125, Firefox 121, Safari 17.5.** The documents named Chrome 123 and Firefox 120, though `round()` and `:has()` were in use; nothing changes in a browser. A test now derives the three numbers from the source. A build that pins `cssTarget` or `browserslist` to `chrome123` or `firefox120` raises them to `chrome125` and `firefox121`.
|
|
47
|
+
- **`API.md` prints each glyph's own default size** (9, 10, 12 or 16), not 12 for all.
|
|
48
|
+
- **The doc sentences of `UmrissConfig` and `useFormField`** say what the code does; the parameter names in `Wording` are English.
|
|
49
|
+
|
|
30
50
|
## 0.56.0 – Released in step with the table (Nov. 2026)
|
|
31
51
|
|
|
32
52
|
No change of its own; the number moves with the table, whose columns now take `align` and stand at the start, centred or at the end.
|
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ Guiding idea: **precise and quiet, with palpable quality** – depth comes from
|
|
|
6
6
|
soft shadows and fine light edges, not from hard outlines or effects.
|
|
7
7
|
|
|
8
8
|
The design language — "Ink & Paper", the dark theme, motion — is written down
|
|
9
|
-
once for all
|
|
9
|
+
once for all seven packages in [`../../docs/design-language.md`](https://github.com/romanhaendler/umriss-ui/blob/main/docs/design-language.md).
|
|
10
10
|
|
|
11
11
|
## Use
|
|
12
12
|
|
|
@@ -15,9 +15,9 @@ pnpm add @umriss-ui/core
|
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
The demo is the documentation.
|
|
18
|
-
Every prop of a props table is linked to the examples that show it,
|
|
19
|
-
open with a configurator,
|
|
20
|
-
across all
|
|
18
|
+
Every prop of a props table is linked to the examples that show it, some pages
|
|
19
|
+
open with a configurator, every export is listed in [API.md](https://github.com/romanhaendler/umriss-ui/blob/main/packages/core/API.md), one search finds
|
|
20
|
+
across all seven packages, and the header switches the examples to German.
|
|
21
21
|
For a coding agent the same material stands as one Markdown file inside the
|
|
22
22
|
installed package, `docs/llms-full.md`, pinned to that version — every page
|
|
23
23
|
with its examples' source, its props tables and why it is built as it is, and
|
|
@@ -266,16 +266,16 @@ Where a build lowers `light-dark()` (Vite 8 and Next 16 by default), a mode set
|
|
|
266
266
|
only from JavaScript or through a variable - next-themes, MUI, Mantine, an
|
|
267
267
|
inline `style` - stays light. Then write one rule such as
|
|
268
268
|
`[data-theme="dark"] { color-scheme: dark; }`, or raise the CSS target to the
|
|
269
|
-
browser floor: Vite `build: { cssTarget: ["
|
|
269
|
+
browser floor: Vite `build: { cssTarget: ["chrome125", "firefox121", "safari17.5"] }`,
|
|
270
270
|
Next a `browserslist` in `package.json`
|
|
271
|
-
(`"chrome >=
|
|
271
|
+
(`"chrome >= 125", "firefox >= 121", "safari >= 17.5"`).
|
|
272
272
|
|
|
273
273
|
**Fonts are the application's.** The tokens name Geist first and end in the
|
|
274
274
|
system fonts; nothing is loaded. Geist is recommended — `@fontsource/geist-sans`
|
|
275
275
|
(400, 500, 600) and `@fontsource/geist-mono` (400) — and any other face is one
|
|
276
276
|
token away.
|
|
277
277
|
|
|
278
|
-
**Browsers:** Chrome
|
|
278
|
+
**Browsers:** Chrome 125, Firefox 121, Safari 17.5 or newer. `light-dark()` is
|
|
279
279
|
older nowhere; an older browser discards the tokens and shows the interface
|
|
280
280
|
unstyled. An application checks the floor itself with
|
|
281
281
|
`CSS.supports("color", "light-dark(red, red)")`.
|
|
@@ -558,7 +558,13 @@ The table is not part of this package. It lives in
|
|
|
558
558
|
a layer (ADR-0021; the guards in `tests-unit/stylesheets.test.ts` hold it).
|
|
559
559
|
6. Everything is English – identifiers, props and prose (ADR-0018, which
|
|
560
560
|
reversed ADR-0015). The accessible name is spelled `aria-label` everywhere
|
|
561
|
-
(ADR-0068).
|
|
561
|
+
(ADR-0068). It is required where a component shows no text of its own
|
|
562
|
+
(`IconButton`, `TagGroup`, `TreeView`) and optional where it names a group
|
|
563
|
+
or a surface (`ButtonGroup`, `ContextMenu`, `Popover`); `Menu` and
|
|
564
|
+
`Breadcrumb` take it through the rest of their props.
|
|
565
|
+
`size` is `"sm" | "md"` on a control (`Avatar` has a scale of its own,
|
|
566
|
+
`Modal` is `"sm" | "md" | "lg"`), a `TextSize` on `Text`, `Heading` and
|
|
567
|
+
`Link`, and a number of pixels on a glyph and the `Spinner`.
|
|
562
568
|
7. A field's root composes `extent` from `#own-styles`: it fills the place
|
|
563
569
|
that gives it a width, is its natural width where the place asks, and is
|
|
564
570
|
never wider than its place; what it shows never moves it (ADR-0041). A field
|