Skip to content

Commit

Permalink
fix: deprecate date components
Browse files Browse the repository at this point in the history
In favor of components from @einride/ui-dates.
  • Loading branch information
filiptammergard committed Jun 27, 2023
1 parent 69ec335 commit abdaefd
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/calm-olives-warn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@einride/ui": patch
---

Deprecate date components in favor of components from @einride/ui-dates.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ export interface CalendarBaseProps {

export type CalendarProps = CalendarBaseProps

/**
* @deprecated Use `<DatePicker>` from `@einride/ui-dates` instead.
*/
export const Calendar = ({ wrapperProps, ...props }: CalendarProps): React.JSX.Element => {
return (
<Box {...wrapperProps}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ interface DatePickerWithoutLabelProps {
export type DatePickerProps = DatePickerBaseProps &
(DatePickerWithLabelProps | DatePickerWithoutLabelProps)

/**
* @deprecated Use `<DatePickerInput>` from `@einride/ui-dates` instead.
*/
export const DatePicker = ({
message,
messageProps,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ interface DateRangePickerWithoutLabelProps {
export type DateRangePickerProps = DateRangePickerBaseProps &
(DateRangePickerWithLabelProps | DateRangePickerWithoutLabelProps)

/**
* @deprecated Use `<DateRangePickerInput>` from `@einride/ui-dates` instead.
*/
export const DateRangePicker = ({
message,
messageProps,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ export interface RangeCalendarProps {
wrapperProps?: BoxProps
}

/**
* @deprecated Use `<DateRangePicker>` from `@einride/ui-dates` instead.
*/
export const RangeCalendar = ({
wrapperProps,
...props
Expand Down

0 comments on commit abdaefd

Please sign in to comment.