Skip to content

1.18.1

Choose a tag to compare

@github-actions github-actions released this 07 Oct 04:13
· 126 commits to main since this release

Added

  • CheckboxGroup: a set of checkboxes that answer one question, any number at once. The set has one value, an array of the ticked checkboxes' values, through value, defaultValue and onValueChange. It is named by its label, and its error is shown under the set and turns every option to danger. Options stand RadioGroup's distance apart, which spacing and orientation change. allValues with a Checkbox that has parent adds a select-all box that draws itself indeterminate while only some options are ticked. size, color, readOnly and name reach every Checkbox that does not set its own, and disabled reaches all of them. A native submit sends one entry per ticked box under name, and a Form's onSubmit gets them as an array.
  • spacing on Form, Fieldset, RadioGroup and List: the gap between what they hold, as an exact length. It is on Tailwind's spacing scale, as on Flex and GridContainer, so spacing={5} is 1.25rem. On a Form or a Fieldset it takes over from the gap size picks, and a Fieldset's legend keeps its type scale. On a RadioGroup it is the gap between the options, on both axes when a horizontal group wraps. On a List it is the gap between the rows, which otherwise touch, and it is ignored with dividers.
  • NebaProvider takes spacing in defaults, for the gap between fields across a product. It reaches every Form and Fieldset, and a spacing written on one of them still wins. RadioGroup and CheckboxGroup options, List rows, Flex and GridContainer do not read it, so a product that spreads its fields apart does not spread every set of options and every layout with them.

Changed

  • A RadioGroup's options stand as far apart as a Form's fields, and follow size. A column of options was 0.5rem apart at every size. It is now 0.75rem at md, the gap a Form and a Fieldset put between fields, and 0.375rem, 0.5rem, 0.875rem and 1rem at xs, sm, lg and xl. A horizontal group keeps 1.25rem along the row and puts its wrapped lines on the same steps. Pass spacing={2} to keep the old column gap.

Fixed

  • A toast raised while a modal Dialog or Drawer is open is drawn above its scrim, and its buttons take the click. The toast stack read the same --neba-z-portal as every other portalled surface, and on equal z-index the later portal is on top. The stack mounts with ToastProvider, so a dialog opened after it covered the toast. The stack now reads --neba-z-toast, which is one above --neba-z-portal unless you set it, so the order holds on a page that raises --neba-z-portal. Menus, tooltips and popovers keep their z-index; where one overlaps a toast, the toast is now the one on top.

Documentation

  • Getting started warns against importing neba/styles.css in a project that runs Tailwind v4. Its rules sit outside any cascade layer and Tailwind's utilities sit inside one, so a component's own rule beats a class passed in className for the same property, and only an important class such as px-10! gets through. Such a project imports neba/tailwind.css instead.

Every release is in the changelog on the docs site and in CHANGELOG.md at this tag.