-
-
Notifications
You must be signed in to change notification settings - Fork 282
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Date): improve date components (#761)
* feat(Calendar): replace library with Vue-compatible library * refactor: use flat-internationalized-date for reference consistency * refactor: add temporalToString instead of toString * docs: update docs with new package * docs: update locale prop docs * docs: added localized calendar stories * fix: return the day as the default * fix: use locale string for default day in calendars * refactor: remove default date from context * chore: update date in calendar locales story * chore: bump date package version * chore: bump date package * fix: add extra day to formatter for edge cases with other calendars * refactor: use exposed getDaysInMonth function from updated package * refactor: bump date package with new persian calendar calculations * fix: convert date parsed to string to reference value calendar * docs: replace reference to old package * feat(Calendar): memoize getYears function * feat(RangeCalendar): memoize getYears function * chore(RangeCalendar): update popover story with today marker * fix(Calendar): update calendar on locale change * fix(RangeCalendar): fix locale change not updating placeholder * refactor(DateField): refactor segment updates to prevent watcher inconsistent updates * refactor(DatePicker/DateRangePicker): refactor updating logic to account for calendar changes * fix(RangeCalendar): fix test referencing old DOM node * fix(Calendar): fix flaky tests * fix(RangeCalendar): fix story import * fix: only update model value on modifier keys * fix(DateField/DateRangeField): return granularity if placeholder/modelValue has time * chore: update lock * chore: update peer deps * fix: passive property on DateField modelValue * fix(Calendar): set placeholder on model value undefined * chore(useCalendar): remove unused prop * chore(CalendarCell): bind props * fix(RangeCalendar): remove unused grid prop * fix(RangeCalendarCell): fix props * chore: use DateRange Type * chore: generate docs with updated DateRange type * refactor: revert to @internationalized/date * chore: update docs * chore(DateRangeField): fix typo in docs * refactor: revert stories to @internationalized/date methods
- Loading branch information
Showing
66 changed files
with
885 additions
and
609 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,7 @@ import { | |
DatePickerTrigger, | ||
Label, | ||
} from 'radix-vue' | ||
import './styles.css' | ||
</script> | ||
|
||
|
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 |
---|---|---|
|
@@ -21,6 +21,7 @@ import { | |
DateRangePickerTrigger, | ||
Label, | ||
} from 'radix-vue' | ||
import './styles.css' | ||
</script> | ||
|
||
|
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.