Skip to content

Loui DS v0.3.0

Choose a tag to compare

@github-actions github-actions released this 03 Nov 16:52
· 55 commits to main since this release

Minor Changes

  • 5915564: Combobox gets selectFirstOnEnter (default false): Enter with no option highlighted selects the first enabled filtered option instead of dropping the typed text. The filter function now receives the whole option as a third argument, (label, query, option), so options can be searched by a code or meta; two-argument filters and the accent-insensitive default keep working (GAP-033).
  • 079f28b: Form now types and documents id, onKeyDown, onKeyUp, onFocus and onBlur, so a submit button elsewhere (such as a Sheet footer) can target it with form="id". New SheetForm recipe: a form in a Sheet submitted natively from the footer. (GAP-023)

Patch Changes

  • 811f947: Keep the Button label visible (dimmed with the new --ds-button-pending-label-opacity token) next to the spinner while isPending, instead of hiding it (GAP-014). The width is still stable.
  • 5915564: A consumer onKeyDown on Input, CurrencyInput, Textarea and SearchInput no longer swallows every key: unless the handler calls event.preventDefault(), the key keeps bubbling so useHotkeys(..., { allowInEditable: true }) shortcuts (F9, F2, N) still fire while the field has focus. Combobox follows the same rule. Documented in the field pages and docs/architecture/hotkeys.md, with a keyboard test (GAP-035).
  • 78c9e6e: Stack, Inline and Grid gap now accept the space key as a number (gap={4}) or as its string form (gap="4"), matching the generated docs and the AI manifest. The manifest generator prints numeric literal types bare (1 | 2 | 3) instead of quoting them, and a new test type-checks every documented prop value (GAP-021). New exported type SpaceValue.
  • 8f4c2e7: StatCard accepts a computed StatCardTone (for example tone={flag ? 'warning' : 'neutral'}) together with note or trend. A literal non-neutral tone without note or trend is still a type error. (GAP-032)

Install

pnpm add loui-ds@0.3.0 react react-dom