[ENG-46317] feat(webkit): evolve Calendar into a date-range picker#707
Draft
HerbertJulio wants to merge 2 commits into
Draft
[ENG-46317] feat(webkit): evolve Calendar into a date-range picker#707HerbertJulio wants to merge 2 commits into
HerbertJulio wants to merge 2 commits into
Conversation
Replace the inline month grid with a full date-range picker (composition, spec_version 3): a trigger that opens a CSS-positioned popover with a multi-month grid, Start/End date + time fields, a timezone selector, an Apply action, a presets rail, a clearable/split trigger, size variants, a horizontal layout, and a Select Period relative-time mode (parses 45m, last month, 1/1 - 1/2). Native Date + Intl only; no positioning or date libraries.
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.
Summary
Evolves the
calendarcomponent (ENG-46317) from the inline month grid into a full date-range picker (composition,spec_version3), aligned to the Figma handoff.A trigger opens a CSS-positioned popover (
usePlacement+<Teleport>, no positioning lib) containing:Local (UTC ±hh:mm (ABBR)), derived viaIntl)v-modelonly on Apply (or immediately whenshow-applyis false)45m,last month,1/1 - 1/2small | medium | largesizes, and a horizontal layoutPublic import stays
@aziontech/webkit/calendar(compound API withCalendar.Preset/Calendar.Clear); standalonecalendar-root,calendar-preset,calendar-clearexports were added for tree-shaking.Date math uses native
Date+Intlonly — no date or positioning libraries.Notes
vue-tsctype-check,eslint(--max-warnings 0),type-coverage(99.96%), andstorybook:build— all green.Dateobjects across zones (native-Datetimezone arithmetic is intentionally avoided per the no-date-library rule).@aziontech/webkit/calendarpublic surface changed from the always-inline grid to the picker (new props,modenow defaults torange). Left asfeat(minor) for now — flag if a major bump is preferred and I'll add the!+BREAKING CHANGEfooter.