@umriss-ui/core 0.22.0 → 0.23.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
@@ -1267,6 +1267,10 @@ export declare interface MultiSelectProps<T extends string = string> extends Omi
1267
1267
  /** Marks the field as invalid. `FormField` sets it itself as soon as it
1268
1268
  carries an `error` – by hand only necessary without `FormField`. */
1269
1269
  invalid?: boolean;
1270
+ /** Shows a cross beside the chips that empties the selection, as "Select
1271
+ none" does: a chosen value whose option is disabled stays. The field
1272
+ keeps room for it, chosen values or none, so that it never moves. */
1273
+ clearable?: boolean;
1270
1274
  }
1271
1275
 
1272
1276
  /** How a node is read - handed over once, not per node. The node's own type
package/docs/llms-full.md CHANGED
@@ -1,4 +1,4 @@
1
- # @umriss-ui/core 0.22.0
1
+ # @umriss-ui/core 0.23.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
 
@@ -6349,7 +6349,7 @@ export default function SizedToTheValue() {
6349
6349
 
6350
6350
  ##### A row that holds still
6351
6351
 
6352
- In a row a field is its natural width - a count of characters of its own type - and never what it shows. Choose carriers, clear them, pick the long status: nothing in the row moves. The chips that do not fit stand as "+N", and the figures below are the fields' widths, measured live.
6352
+ In a row a field is its natural width - a count of characters of its own type - and never what it shows. Choose carriers, clear them one by one or all at once, pick the long status: nothing in the row moves. The chips that do not fit stand as "+N", and the figures below are the fields' widths, measured live.
6353
6353
 
6354
6354
  ```tsx
6355
6355
  import { useLayoutEffect, useRef, useState } from "react";
@@ -6399,7 +6399,7 @@ export default function ARowThatHoldsStill() {
6399
6399
  <option>Out for delivery</option>
6400
6400
  <option>Held at customs until the papers of origin are checked</option>
6401
6401
  </Select>
6402
- <MultiSelect ref={carriersRef} aria-label="Carriers" placeholder="Every carrier" options={CARRIERS} value={carriers} onChange={setCarriers} />
6402
+ <MultiSelect ref={carriersRef} aria-label="Carriers" placeholder="Every carrier" options={CARRIERS} value={carriers} onChange={setCarriers} clearable />
6403
6403
  <DateRangePicker aria-label="Shipped" value={period} onChange={setPeriod} clearable />
6404
6404
  <Switch label="Late only" />
6405
6405
  </Stack>
@@ -8193,7 +8193,7 @@ export default function States() {
8193
8193
 
8194
8194
  ##### Filter incidents by service
8195
8195
 
8196
- An empty value means no filter; the panel's search, select-all and chosen view help once the list is long.
8196
+ An empty value means no filter, and the cross takes the field back there in one click; the panel's search, select-all and chosen view help once the list is long.
8197
8197
 
8198
8198
  ```tsx
8199
8199
  import { useState } from "react";
@@ -8261,6 +8261,7 @@ export default function FilterIncidentsByService() {
8261
8261
  placeholder="All services"
8262
8262
  searchPlaceholder="Search services"
8263
8263
  options={SERVICES.map((s) => ({ value: s.id, label: s.name }))}
8264
+ clearable
8264
8265
  />
8265
8266
  </FormField>
8266
8267
  <Stack gap={2}>
@@ -8316,6 +8317,7 @@ export default function FilterIncidentsByService() {
8316
8317
  | `chars` | `number` | — | The width in characters - room for the chips; the field adds its own padding and chevron. Given, the field is that wide wherever it stands, and never wider than its place. Without it the field fills its place, and is 20 characters wide where the place asks - in a toolbar or a row, room for two short chips and the counter. Either way, choosing and removing values never moves it: the chips that do not fit stand as "+N". |
8317
8318
  | `disabled` | `boolean` | `false` | Locks field and panel. |
8318
8319
  | `invalid` | `boolean` | — | Marks the field as invalid. `FormField` sets it itself as soon as it carries an `error` – by hand only necessary without `FormField`. |
8320
+ | `clearable` | `boolean` | `false` | Shows a cross beside the chips that empties the selection, as "Select none" does: a chosen value whose option is disabled stays. The field keeps room for it, chosen values or none, so that it never moves. |
8319
8321
 
8320
8322
  Also takes every attribute of `<div>` – without `defaultValue`, `onChange`.
8321
8323
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umriss-ui/core",
3
- "version": "0.22.0",
3
+ "version": "0.23.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",