-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(date-input, date-range): upgrade react-day-picker to v9
Upgrades react-day-picker to remove the dependency on React 18
- Loading branch information
1 parent
6ac1a35
commit bc2830b
Showing
23 changed files
with
838 additions
and
476 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
import type { Page } from "@playwright/test"; | ||
|
||
import { DAY_PICKER_WRAPPER, DAY_PICKER_HEADING } from "./locators"; | ||
|
||
// component preview locators | ||
|
||
export const dayPickerWrapper = (page: Page) => | ||
page.locator(DAY_PICKER_WRAPPER); | ||
export const dayPickerHeading = (page: Page) => | ||
page.locator(DAY_PICKER_HEADING).locator("div"); | ||
page.locator(DAY_PICKER_HEADING); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
// component preview locators | ||
export const DAY_PICKER_WRAPPER = 'div[class="DayPicker-wrapper"]'; | ||
export const DAY_PICKER_HEADING = ".DayPicker-Caption"; | ||
export const DAY_PICKER_WRAPPER = 'div[class="rdp-root"]'; | ||
export const DAY_PICKER_HEADING = 'span[class="rdp-caption_label"]'; |
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.