Repository navigation
Release 0.15.1: a list view, a rating and a toolbar - #20
Merged
Merged
Conversation
HeroUI's set had gaps an application meets at once: a list of rows to choose and act on, a toolbar, an action bar for what is chosen, a rating, and a select drawn as text. Each is made headless first where Kobalte lacks it, of Kobalte's hooks, and dressed in HeroUI's look, so its behaviour is tested once whoever styles it; none patches Kobalte or copies React Aria. The data grid's header, its own columns and its demos now match HeroUI's, a press inside any control in a cell stays the control's, and a virtualized table prerendered on the server tells a reader its size. A virtualized list makes an item's children only as its row is drawn, since a row made but never drawn has no HTML to hydrate.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
HeroUI's set had gaps an application meets at once: a list of rows to choose and act on, a toolbar, an action bar for what is chosen, a rating, and a select drawn as text. Each is made headless first where Kobalte lacks it, of Kobalte's hooks, and dressed in HeroUI's look, so its behaviour is tested once whoever styles it; none patches Kobalte or copies React Aria.
The data grid's header, its own columns and its demos did not match HeroUI's, a press on a control inside a cell could run the row's action, and a virtualized table prerendered on the server told a reader one row and no column.
Changes
List_view, on a headlessGrid_list: rows chosen by a checkbox, the keys or a press, actions and links, disabled rows, an empty state, two variants, andvirtualizedwithrow_height.Rating, Kobalte's rating in HeroUI's look: sizes, colours, icons, a render function, disabled, and read only with fractional values; the items up to its value are active in the prerendered HTML.Toolbar, on a headlessToolbar, andAction_bar, a toolbar floating at the foot of the page while open.Inline_select,Switch.Icon, and every placement forSelect.Popover.Field_errorinside aCheckbox_grouporRadio_groupshows while the group is invalid.Table's,Data_grid's orAutocomplete's trigger is the control's.Table's header hides the rows beneath it and tells its size from the server; aData_grid's own columns are 40px and 32px wide.Verified
make test,make lintandmake docspass, with no warnings in any build log.List_viewrendered on the server hydrates the rows it drew and chooses them, in a new hydration test; it failed before items made their children only as their rows are drawn.