Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* - Add support for horizontally connected LaballedTextInput. - Started working on new calendar. * - Working on TravelDateInput. * - Working on TravelDateInput. * - Some hover highlight improvements. * - Working on input mask and localized date format in inputs. * - Update date-fns to 3.6.0. * - Add dependency on input-mask. * - Fix eslint warnings. * - Fix errors. * - Create input masks from date format. * - Localized inputs now working. * - Add input label props. * - Refactor to use Date for state instead of custom date data objects. - Localize month picker button. * - Some styling fixes when invalid range is selected. - Do not parse text input until length matches date format. * - Improved keyboard usage. * - Remove invalid prop. * - Align width of inputs with the rest of the calendar. * - Add story with all locales. * StoryFn. * - Update visible month properly when typing date in input fields. * - Esc now closes month picker. * - Add aria-label to prev/next month buttons, with default values in english if omitted. * - Hovered cell has white background, except when part of selected range. * - Set aria-live polite on month picker button. * - Fix better outline. * - Add abbr prop to th with full length week day names. - Add aria-selected to td days. * - Cursor is pointer only on days in current month. * - Highlight todays date. * - When selecting month, focus goes back to month picker button. - When opening month picker, selected month is autofocused. * - TabIndex is set to first day of month if neither today nor selected date is in visible month. - MonthPicker uses Date as model instead of custom. This makes it easier to use date-fns to mutate it. - Add keyboard navigation in MonthPicker, based on rows and columns. This data is precalculated. * - Add support for PageUp, PageDown, Home and End. * - Improve keyboard navigation in month picker. Can now go to next and previous row with arrow left and right. - Can also navigate past empty cells. * - Hide first year in month picker, if it is same as current year. * - Use globally unique DOM id's for td elements. * - Fix space. ev.key === "Space" was wrong, checking ev.code instead. * - Dates before today are now disabled. - Previous month stepper button is disabled if showing today's month. * - Entering invalid date (such as feb 30) no longer crashes the calendar. * - Remove heading, should be part of app (or parent container), not the calendar. * - Apply prettier. * - Visible calendar can be today's month at the earliest. Manually entering an earlier month will focus on today's month. - Entering a date with missing zeroes will now be reformatted to correct date format (if valid) on blur. - getDefaultLocaleForFormatting() can now return undefined, if no matching locale is found, instead of default sv. - parseLocalizedDateString() returns undefined if parse fails, instead of "Invalid date". This should be less error prone since type system will enforce null checks. * - Working on popover. * - Refactor and extract into hooks and components, so that we can have multiple variants. * - More refactoring to enable external input component and calendar component. * - Working on calendar with overlay. Not working yet. * - Add animation to TravelDateInput popover. - TravelDateInput now takes up correct in-line size in DOM, even though the inputs are absolute positioned. * - Rename to "date range calendar" instead of "date calendar". - Fix styling of table. - Change order of absolute positioned elements, so that tabbing works correctly again. - Add zIndex prop, since zIndex is now needed when DOM element order is correct for tabbing, but not for rendering order. - Reduce animation time, is now "fast". * - Use props spread for internal components, to decrease the amount of code that is just noise. * - Use props spread for internal components, to decrease the amount of code that is just noise. * - Update .gitignore to include IntelliJ log files. * - Add heading to calendar component as well, for consistency. - Make heading optional, and align absolute positioning properly when heading is missing. - Add separate z-index when calendar popover is not visible, so that z-index doesn't interfere when having multiple inputs. - Change selection highlight as per design. * - Add stories to show how to parse localized date. * - Add render prop for rendering custom content below calendar in popover. - Add stories with render prop examples. - Add `onHideCalendar` callback. - Fix comment typo. - Add `firstMonthInMonthPicker` and `numMonthsInMonthPicker` props.
- Loading branch information