Repository navigation
Release 0.13.0: HeroUI's date and time components, made headless - #17
Merged
Merged
Conversation
Date and time widgets were the gap applications on the stack felt most, and Kobalte has none but a time field. HeroUI's DateField, Calendar, RangeCalendar, DatePicker and DateRangePicker are React Aria's, so each is made headless first, as React Stately keeps its state and React Aria names its parts, and the ports add HeroUI's classes, composed part for part as HeroUI's are, each held to React's by a twin test. A field's locale is a provider's, else en-GB, never the browser's: day before month as most of the world writes a date, and the same on the server as in the browser, so an island hydrates without a mismatch. The time field follows it, so a picker's date and time read one clock. Where React's does worse the port does better and says so: a press on a day that cannot be chosen focuses it, and a range ending before it starts is invalid at once. A resizable virtualized table now scrolls across its columns, as found while testing the data grid beside it.
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
Date and time widgets were the gap applications on the stack felt most, and Kobalte has none but a time field. HeroUI's DateField, Calendar, RangeCalendar, DatePicker and DateRangePicker are React Aria's, so each is made headless first, as React Stately keeps its state and React Aria names its parts, and the ports add HeroUI's classes, composed part for part as HeroUI's are.
A field's locale is a provider's, else en-GB, never the browser's: day before month as most of the world writes a date, and the same on the server as in the browser, so an island hydrates without a mismatch.
Changes
skills/solidtype, is no longer installed; the documentation for an agent isllms.txtand every page in Markdown (from Write agents/ with starlight-hypha-agents #16).DateField,Calendar,RangeCalendar,DatePickerandDateRangePicker, each with its page of HeroUI's examples, its React comparison, and its parts in the attributes test.Solidtype_headlessgainsDate_field(a date, a date with a time, one in a zone, or a range of them),Calendar(one date, several, or a range; anchored, hovered, dragged) andDate_picker(a field and a calendar in a popover, a time kept as a day is chosen).Time_fieldtakes its locale asDate_fielddoes, so a picker's date and time read one clock.CHANGES.mdnames 0.13.0, and the docs install its plugin.Verified
make lintandmake test: 1132 vitest tests in 185 files and 40 plugin tests pass; each port's twin test compares every part against HeroUI's React component in every state.