react-spectrum
82a4de5b - feat(Calendar): Add `firstDayOfWeek` prop (#7363)

Commit
1 year ago
feat(Calendar): Add `firstDayOfWeek` prop (#7363) * add firstDayOfWeek prop * pass to DatePicker/DateRangePicker * add storybook controls * add to RAC * add docs * add v3 tests * add hook tests * lint * add chromatic stories * update v3 RangeCalendar styles for first and last day of week * lint * lint * use number instead of enum for type * update type to enum * update tests * fix v3 cell style * use lowercase and update docs * update to use firstDayOfWeek day regardless of locale * lint * fix cell style * more tests * update test * update getDatesInWeek logic * fix test * fix null dates * fix minimum dates case * add offset logic to startOfWeek * lint * pass firstDayOfWeek into getWeeksInMonth * add firstDayOfWeek param to endOfWeek * add firstDayOfWeek to getDayOfWeek * pass firstDayOfWeek to getDayOfWeek * slight simplification and add tests * add docs --------- Co-authored-by: Devon Govett <devongovett@gmail.com>
Author
Parents
Loading