Skip to content

v0.24.0

Choose a tag to compare

@github-actions github-actions released this 19 Oct 00:55
· 5 commits to main since this release

Themes: hard shadows and a relief for buttons and fields (Theme.hardShadows, Theme.relief),
type knobs (text-scale, heading-scale, leading, the heading's weight and tracking), a pill
control corner, and a Drawer docked to the bottom of the screen. foldkit-mixins 0.14.0 and
foldkit-mixins-ui 0.13.0 change, and foldkit-plus is 0.6.0. Packages that pin one of them, or
peer on it, republish with a patch so their ranges cover the new versions (foldkit-cms,
foldkit-cms-drizzle, foldkit-composition, foldkit-mixins-builder, foldkit-mixins-crud,
foldkit-mixins-data-grid, foldkit-mixins-form, foldkit-mixins-richtext,
foldkit-mixins-surface, foldkit-primitives). Nothing written for 0.23 needs changing; a
Typography display is set a hair tighter (below).

Added

  • foldkit-mixins/theme's Theme.hardShadows: the shadow scale drawn as solid offset copies
    with no blur, for retro and brutalist themes. Compose it over Theme.tokens;
    shadow-strength still fades it.
  • A control's relief: Theme.tokens gains shadow-raised, shadow-pressed and
    shadow-field, flat by default, and foldkit-mixins/theme's Theme.relief gives them depth
    (soft, hard, or bevel's lit and shaded edges). In foldkit-mixins-ui, a solid, outline
    or primary Button stands out by raised and is pressed in by pressed while held or on; ghost
    and icon buttons stay flat; and every field's chrome (Input, Textarea, Select, Listbox,
    Combobox, DatePicker, NumberField, TagsInput, OtpField, CascadeSelect, InputCopy, the
    pagination's page size, Checkbox and RadioGroup) sinks by field.
  • Type knobs in Theme.tokens: text-scale scales every size of the type scale,
    heading-scale how far the headings stand above the body, and leading the line heights;
    weight-heading and tracking-heading set what a heading is drawn in. At their shipped values
    every size, line height and weight draws as before. foldkit-mixins-ui's Typography headings and interface roles, the Dialog's title and
    the Empty title now read font-heading, weight-heading and tracking-heading, so a theme's
    heading font reaches them.
  • foldkit-mixins-ui's Drawer and Recipes.Drawer: a panel docked to the bottom of the
    screen that peeks or opens beside the page, not over it, as a tool tray. Its handle drags it
    (a flick or a quarter of the way settles it) and a click or Enter toggles it; the handle's bar
    bends into a chevron pointing up as it goes down, with the finger while dragged. dock: 'always',
    or below-lg / below-xl, above which it is the column it sits in.
  • radius-control and the control-round knob: a Button and a Segmented tray round to a pill at
    1, whatever the radius factor, while fields keep radius-md.

Changed

  • foldkit-mixins-ui: Typography's display takes the heading tracking (-0.01em by default),
    as the other headings already did.

Fixed

  • foldkit-composition and foldkit-mixins-surface declared their foldkit-mixins peer as
    ^0.11.0, which no release since 0.11 satisfies; they now peer on the version they ship with.
  • foldkit-mixins: an element holding several Mounts no longer logs "unhandled failure" for each
    as it is removed; a Mount that ends interrupted is torn down, not failing.