-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
1 parent
d87cc44
commit 82a4de5
Showing
35 changed files
with
484 additions
and
58 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
82a4de5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Verdaccio builds:
CRA Test App
NextJS Test App
RAC Tailwind Example
RAC Spectrum + Tailwind Example
S2 Parcel Example
S2 Webpack Example
CRA Test App Size
NextJS App Size
Publish stats
Size diff since last release
Docs
Storybook
S2 Storybook