mui / material-ui-pickers

Date & Time pickers for Material UI (support from v1 to v4)
https://github.com/mui/material-ui-pickers/issues/2157
MIT License
2.32k stars 832 forks source link

Cannot import DateRangeDay in 4.0.0-alpha.12 #2188

Closed tondi closed 3 years ago

tondi commented 3 years ago

Current Behavior 😯

Im trying to use MobileDateRangePicker with renderDay in 4.0.0-alpha.12

import { DateRangeDay } from '@material-ui/pickers/DateRangePicker/DateRangePickerDay';

<MobileDateRangePicker
  renderDay={(date, DateRangeDayProps) => <DateRangeDay {...DateRangeDayProps} />}
   {/* ...otherProps /*}
/>

Getting Module not found: Can't resolve '@material-ui/pickers/DateRangePicker/DateRangePickerDay'

  1. The DateRangeDay component is neither exported from @material-ui/pickers
  2. Documentation for renderDay in https://v4-0-0-alpha-12.material-ui-pickers.dev/api/DateRangePicker shows @example (date, DateRangeDayProps) => <DateRangePickerDay {...DateRangeDayProps} /> mentioning DateRangePickerDay which is also not exported

Why is this component not available publicly?

oliviertassinari commented 3 years ago

Closing as it's available in v5 https://next.material-ui.com/api/date-range-picker-day/