Skip to content

v3.31.0

Choose a tag to compare

@tjloong tjloong released this 02 Oct 10:17
· 27 commits to main since this release
13b3d1a

Table and caption fixes reported from firmhive.

Fixed

  • <atom:caption> now prints the attributes you pass (id, x-show, class="mt-2"). Closes #58. Overriding its colour or making it text-base still needs ! (Tailwind's compiled order).
  • <atom:table> prints its attributes on the root, so class, id and x-* apply. A non-prop you pass (e.g. total="7") now shows up as a DOM attribute — harmless.
  • Table cells and headers can wrap: the whitespace-nowrap default is now zero-specificity, so whitespace-normal (and md:whitespace-normal) wins. A global td { white-space: normal } in a host app now also wins.

Added

  • <atom:table.cell truncate> — one long value ends in an ellipsis instead of stretching the table past its container. Don't add w-full to the table for this: forcing fixed layout squeezes wide tables.

Changed

  • A <atom:table.search> bound with wire:model (or data-filter-key) inside <atom:table.filters> now shows a search chip, and "Clear all" / the chip's ✕ empties it and refreshes the list. The chip appears on Enter or when leaving the box; with wire:model.live it follows as you type. An unbound search is unchanged.
  • The inert table-fixed class is removed from the table (no visual change).

Known limits

  • Two searches bound to the same name on one page (e.g. both filters.search) share a chip, and "Clear all" clears both — same as the select filters today.
  • A server-side reset while the cursor is still in a deferred search box leaves the old chip until the box loses focus. A reset button is not affected.