-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[pickers] Migrate MonthPicker to emotion (#26025)
* migrate to emotion * add sx props * Inline classes * styleProps will be needed for the component API * simplify changes * revert the change since this is not internal component * use generic for convention * run docs:api * Update packages/material-ui-lab/src/MonthPicker/MonthPicker.tsx Co-authored-by: eps1lon <silbermann.sebastian@gmail.com> Co-authored-by: Olivier Tassinari <olivier.tassinari@gmail.com> Co-authored-by: Marija Najdova <mnajdova@gmail.com>
- Loading branch information
1 parent
68ea9e5
commit 2351cfa
Showing
5 changed files
with
105 additions
and
38 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 |
---|---|---|
@@ -1,12 +1,15 @@ | ||
{ | ||
"componentDescription": "", | ||
"propDescriptions": { | ||
"classes": "Override or extend the styles applied to the component. See <a href=\"#css\">CSS API</a> below for more details.", | ||
"className": "className applied to the root element.", | ||
"date": "Date value for the MonthPicker", | ||
"disableFuture": "If <code>true</code> future days are disabled.", | ||
"disablePast": "If <code>true</code> past days are disabled.", | ||
"maxDate": "Maximal selectable date.", | ||
"minDate": "Minimal selectable date.", | ||
"onChange": "Callback fired on date change." | ||
"onChange": "Callback fired on date change.", | ||
"sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the <a href=\"/system/basics/#the-sx-prop\">`sx` page</a> for more details." | ||
}, | ||
"classDescriptions": {} | ||
"classDescriptions": { "root": { "description": "Styles applied to the root element." } } | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export { default } from './MonthPicker'; | ||
export { default, getMonthPickerUtilityClass, monthPickerClasses } from './MonthPicker'; | ||
|
||
export type MonthPickerClassKey = import('./MonthPicker').MonthPickerClassKey; | ||
export type MonthPickerProps<TDate> = import('./MonthPicker').MonthPickerProps<TDate>; |