Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pickers] Remove customization of internal components #26118

Merged
merged 1 commit into from
May 5, 2021

Conversation

eps1lon
Copy link
Member

@eps1lon eps1lon commented May 4, 2021

Doing this in a single PR instead of spreading it over the various emotion PRs.

BREAKING CHANGE

Removed customization of various internal picker components.

We're reworking customization over the next weeks. In its current form the customization story was sometimes missing, sometimes wrong and in all cases we don't know how this would be used. Since the pickers are subject to heavy refactoring it is likely that some of these components will be removed in the upcoming weeks.

Removed customization points:

  • MuiClock
  • MuiClockNumber
  • MuiClockPointer
  • MuiDatePickerToolbar
  • MuiPickersFadeTransition
  • MuiPickersModalDialog
  • MuiPickersMonth
  • MuiPickersPopper
  • MuiPickersSlideTransition
  • MuiPickersToolbar
  • MuiPickersToolbarButton
  • MuiPickersToolbarText
  • MuiPickersYear
  • MuiPicker
  • MuiPickersArrowSwitcher
  • MuiPickersCalendar
  • MuiPickersCalendarHeader

@eps1lon eps1lon added breaking change component: pickers This is the name of the generic UI component, not the React module! labels May 4, 2021
@mui-pr-bot
Copy link

mui-pr-bot commented May 4, 2021

Details of bundle changes

Generated by 🚫 dangerJS against 8671559

@eps1lon eps1lon marked this pull request as ready for review May 4, 2021 08:45
@eps1lon eps1lon merged commit b448cf3 into mui:next May 5, 2021
@eps1lon eps1lon deleted the feat/pickers/customization branch May 5, 2021 08:32
MuiPickersToolbar: PickersToolbarClassKey;
MuiPickersToolbarButton: PickersToolbarButtonClassKey;
MuiPickersToolbarText: PickersToolbarTextClassKey;
MuiPickersYear: PickersYearClassKey;
MuiTabList: TabListClassKey;
MuiTabPanel: TabPanelClassKey;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A side note.

@mnajdova Since we have changed the theme structure, should we drop this file? (and props.d.ts)

Copy link
Member

@mnajdova mnajdova May 5, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aren't they are still used in the theme augmentation, how can we drop them? As far as I can see in https://github.com/eps1lon/material-ui/blob/next/packages/material-ui-lab/src/themeAugmentation/components.d.ts we still depend on them extending the overrides.d.ts

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yes right. I wonder if having them under the same file could be clearer. It seems daunting to keep these 3 files in sync.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, let me see how it would look like if we change it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change component: pickers This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants