github hashintel/hash @hashintel/ds-components@0.4.0

latest releases: @blockprotocol/graph@0.5.1, @hashintel/refractive@0.0.5, @blockprotocol/type-system@0.2.3...
3 hours ago

Minor Changes

  • clearable on Select, TextInput and NumberInput is now boolean | { onClear }, and searchable on Select is boolean | { onSearch?, hideCount?, hideSelectAllToggle? }. Banner's dismissible is now false | { onDismiss }, and removeable on Chip and Filter is false | { onRemove }. These replace the previous object shapes with an inner enabled flag. (@alex-e-leon, #9646)

  • Per-component subpaths (@hashintel/ds-components/<name>) export only components: import iconNames, ChipSize and useFieldId from the root, and FieldIdProvider from /field-id-provider instead of /field-id-context. (@CiaranMn, #9966)

  • renderSelectedItem now renders one selected value inside the multi select's trigger, and a string result also supplies that value's summary text. The new renderSelectedAll renders the whole selection, as renderSelectedItem did before, and Filter multi-select inputs accept both. (@alex-e-leon, #9684)

  • Button no longer shows a pressed state for aria-expanded or emits aria-pressed: the pressed prop is visual-only, and Menu passes pressed state to Button through context. (@alex-e-leon, #10024)

  • Remove the style prop from TextInput and NumberInput. (@alex-e-leon, #10031)

Patch Changes

  • Fix OverflowRow measurement inside fit-content containers, so Filter and the naked and multi variants of Select and Combobox show summary views more consistently. (@alex-e-leon, #10040)

  • Add Combobox component (@alex-e-leon, #9806)

  • Add multiple support to Combobox (@alex-e-leon, #9866)

  • Add IconProvider, which overrides named icons within a component tree and keeps the defaults for icons it omits. (@kube, #9695)

  • Dialog accepts content refs and inline styles, for movable and resizable layouts. (@kube)

  • Drawer accepts initialFocusRef and returnFocusRef refs that start null, as Popover does. (@kube, #9607)

  • Filter operators can declare select inputs, Select + Inputs handles overflowing content better, and Select keyboard navigation follows the APG guidelines more closely. (@alex-e-leon, #9646)

  • Menu and SelectableList items with subItems accept a menuClassName. (@CiaranMn, #9739)

  • Slider accepts disabled, which dims the control and turns its input off. (@kube, #9516)

  • Slider gains a plain variant with a small fixed-size thumb for dense rows, and its rail spans the slider's root however the root aligns its children. (@kube, #9607)

  • Slider treats 0 as a value, and useElementSize tracks an element that mounts after the first render. (@kube, #9421)

  • Slider accepts step and onChangeEnd. (@kube, #9398)

  • Add resolvePandaBuildInfoPath to @hashintel/ds-components/preset, which turns a shipped panda.buildinfo.json into a path Panda's include accepts on every platform. (@aacarcrash, #9834)

  • Add header and footer options to SelectableList, with minor UI improvements. (@alex-e-leon, #9584)

  • Add a Breadcrumb component. (@alex-e-leon, #9502)

Don't miss a new hash release

NewReleases is sending notifications on new releases.