Skip to content

Commit

Permalink
[pickers] Clean component interfaces and remove non-implemented props (
Browse files Browse the repository at this point in the history
  • Loading branch information
flaviendelangle authored May 5, 2022
1 parent 331911e commit 936655f
Show file tree
Hide file tree
Showing 73 changed files with 229 additions and 443 deletions.
3 changes: 1 addition & 2 deletions docs/pages/x/api/date-pickers/date-range-picker.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"props": {
"onChange": { "type": { "name": "func" }, "required": true },
"renderInput": { "type": { "name": "func" }, "required": true },
"value": { "type": { "name": "arrayOf", "description": "Array<any>" }, "required": true },
"acceptRegex": {
"type": { "name": "instanceOf", "description": "RegExp" },
"default": "/\\dap/gi"
Expand Down Expand Up @@ -78,9 +79,7 @@
"showToolbar": { "type": { "name": "bool" } },
"startText": { "type": { "name": "node" }, "default": "'Start'" },
"todayText": { "type": { "name": "node" }, "default": "'Today'" },
"ToolbarComponent": { "type": { "name": "elementType" } },
"toolbarFormat": { "type": { "name": "string" } },
"toolbarPlaceholder": { "type": { "name": "node" }, "default": "'–'" },
"toolbarTitle": { "type": { "name": "node" }, "default": "'Select date range'" },
"TransitionComponent": { "type": { "name": "elementType" } }
},
Expand Down
3 changes: 1 addition & 2 deletions docs/pages/x/api/date-pickers/desktop-date-range-picker.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"props": {
"onChange": { "type": { "name": "func" }, "required": true },
"renderInput": { "type": { "name": "func" }, "required": true },
"value": { "type": { "name": "arrayOf", "description": "Array<any>" }, "required": true },
"acceptRegex": {
"type": { "name": "instanceOf", "description": "RegExp" },
"default": "/\\dap/gi"
Expand Down Expand Up @@ -69,9 +70,7 @@
"showDaysOutsideCurrentMonth": { "type": { "name": "bool" } },
"showToolbar": { "type": { "name": "bool" } },
"startText": { "type": { "name": "node" }, "default": "'Start'" },
"ToolbarComponent": { "type": { "name": "elementType" } },
"toolbarFormat": { "type": { "name": "string" } },
"toolbarPlaceholder": { "type": { "name": "node" }, "default": "'–'" },
"toolbarTitle": { "type": { "name": "node" }, "default": "'Select date range'" },
"TransitionComponent": { "type": { "name": "elementType" } }
},
Expand Down
2 changes: 0 additions & 2 deletions docs/pages/x/api/date-pickers/desktop-time-picker.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@
"shouldDisableTime": { "type": { "name": "func" } },
"showToolbar": { "type": { "name": "bool" } },
"ToolbarComponent": { "type": { "name": "elementType" }, "default": "TimePickerToolbar" },
"toolbarFormat": { "type": { "name": "string" } },
"toolbarPlaceholder": { "type": { "name": "node" }, "default": "'–'" },
"toolbarTitle": { "type": { "name": "node" }, "default": "'Select time'" },
"TransitionComponent": { "type": { "name": "elementType" } },
"value": { "type": { "name": "any" } },
Expand Down
3 changes: 1 addition & 2 deletions docs/pages/x/api/date-pickers/mobile-date-range-picker.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"props": {
"onChange": { "type": { "name": "func" }, "required": true },
"renderInput": { "type": { "name": "func" }, "required": true },
"value": { "type": { "name": "arrayOf", "description": "Array<any>" }, "required": true },
"acceptRegex": {
"type": { "name": "instanceOf", "description": "RegExp" },
"default": "/\\dap/gi"
Expand Down Expand Up @@ -72,9 +73,7 @@
"showToolbar": { "type": { "name": "bool" } },
"startText": { "type": { "name": "node" }, "default": "'Start'" },
"todayText": { "type": { "name": "node" }, "default": "'Today'" },
"ToolbarComponent": { "type": { "name": "elementType" } },
"toolbarFormat": { "type": { "name": "string" } },
"toolbarPlaceholder": { "type": { "name": "node" }, "default": "'–'" },
"toolbarTitle": { "type": { "name": "node" }, "default": "'Select date range'" }
},
"slots": {},
Expand Down
2 changes: 0 additions & 2 deletions docs/pages/x/api/date-pickers/mobile-time-picker.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@
"showToolbar": { "type": { "name": "bool" } },
"todayText": { "type": { "name": "node" }, "default": "'Today'" },
"ToolbarComponent": { "type": { "name": "elementType" }, "default": "TimePickerToolbar" },
"toolbarFormat": { "type": { "name": "string" } },
"toolbarPlaceholder": { "type": { "name": "node" }, "default": "'–'" },
"toolbarTitle": { "type": { "name": "node" }, "default": "'Select time'" },
"value": { "type": { "name": "any" } },
"views": {
Expand Down
3 changes: 0 additions & 3 deletions docs/pages/x/api/date-pickers/static-date-picker.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,10 @@
"maxDate": { "type": { "name": "any" } },
"minDate": { "type": { "name": "any" } },
"onAccept": { "type": { "name": "func" } },
"onClose": { "type": { "name": "func" } },
"onError": { "type": { "name": "func" } },
"onMonthChange": { "type": { "name": "func" } },
"onOpen": { "type": { "name": "func" } },
"onViewChange": { "type": { "name": "func" } },
"onYearChange": { "type": { "name": "func" } },
"open": { "type": { "name": "bool" } },
"OpenPickerButtonProps": { "type": { "name": "object" } },
"openTo": {
"type": {
Expand Down
6 changes: 1 addition & 5 deletions docs/pages/x/api/date-pickers/static-date-range-picker.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"props": {
"onChange": { "type": { "name": "func" }, "required": true },
"renderInput": { "type": { "name": "func" }, "required": true },
"value": { "type": { "name": "arrayOf", "description": "Array<any>" }, "required": true },
"acceptRegex": {
"type": { "name": "instanceOf", "description": "RegExp" },
"default": "/\\dap/gi"
Expand Down Expand Up @@ -45,12 +46,9 @@
"maxDate": { "type": { "name": "any" } },
"minDate": { "type": { "name": "any" } },
"onAccept": { "type": { "name": "func" } },
"onClose": { "type": { "name": "func" } },
"onError": { "type": { "name": "func" } },
"onMonthChange": { "type": { "name": "func" } },
"onOpen": { "type": { "name": "func" } },
"onViewChange": { "type": { "name": "func" } },
"open": { "type": { "name": "bool" } },
"OpenPickerButtonProps": { "type": { "name": "object" } },
"readOnly": { "type": { "name": "bool" } },
"reduceAnimations": {
Expand All @@ -69,9 +67,7 @@
"showDaysOutsideCurrentMonth": { "type": { "name": "bool" } },
"showToolbar": { "type": { "name": "bool" } },
"startText": { "type": { "name": "node" }, "default": "'Start'" },
"ToolbarComponent": { "type": { "name": "elementType" } },
"toolbarFormat": { "type": { "name": "string" } },
"toolbarPlaceholder": { "type": { "name": "node" }, "default": "'–'" },
"toolbarTitle": { "type": { "name": "node" }, "default": "'Select date range'" }
},
"slots": {},
Expand Down
3 changes: 0 additions & 3 deletions docs/pages/x/api/date-pickers/static-date-time-picker.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,10 @@
"minTime": { "type": { "name": "any" } },
"minutesStep": { "type": { "name": "number" }, "default": "1" },
"onAccept": { "type": { "name": "func" } },
"onClose": { "type": { "name": "func" } },
"onError": { "type": { "name": "func" } },
"onMonthChange": { "type": { "name": "func" } },
"onOpen": { "type": { "name": "func" } },
"onViewChange": { "type": { "name": "func" } },
"onYearChange": { "type": { "name": "func" } },
"open": { "type": { "name": "bool" } },
"OpenPickerButtonProps": { "type": { "name": "object" } },
"openTo": {
"type": {
Expand Down
5 changes: 0 additions & 5 deletions docs/pages/x/api/date-pickers/static-time-picker.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,8 @@
"minTime": { "type": { "name": "any" } },
"minutesStep": { "type": { "name": "number" }, "default": "1" },
"onAccept": { "type": { "name": "func" } },
"onClose": { "type": { "name": "func" } },
"onError": { "type": { "name": "func" } },
"onOpen": { "type": { "name": "func" } },
"onViewChange": { "type": { "name": "func" } },
"open": { "type": { "name": "bool" } },
"OpenPickerButtonProps": { "type": { "name": "object" } },
"openTo": {
"type": {
Expand All @@ -60,8 +57,6 @@
"shouldDisableTime": { "type": { "name": "func" } },
"showToolbar": { "type": { "name": "bool" } },
"ToolbarComponent": { "type": { "name": "elementType" }, "default": "TimePickerToolbar" },
"toolbarFormat": { "type": { "name": "string" } },
"toolbarPlaceholder": { "type": { "name": "node" }, "default": "'–'" },
"toolbarTitle": { "type": { "name": "node" }, "default": "'Select time'" },
"value": { "type": { "name": "any" } },
"views": {
Expand Down
2 changes: 0 additions & 2 deletions docs/pages/x/api/date-pickers/time-picker.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@
"showToolbar": { "type": { "name": "bool" } },
"todayText": { "type": { "name": "node" }, "default": "'Today'" },
"ToolbarComponent": { "type": { "name": "elementType" }, "default": "TimePickerToolbar" },
"toolbarFormat": { "type": { "name": "string" } },
"toolbarPlaceholder": { "type": { "name": "node" }, "default": "'–'" },
"toolbarTitle": { "type": { "name": "node" }, "default": "'Select time'" },
"TransitionComponent": { "type": { "name": "elementType" } },
"value": { "type": { "name": "any" } },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,10 @@
"showToolbar": "If <code>true</code>, show the toolbar even in desktop mode.",
"startText": "Text for start input label and toolbar placeholder.",
"todayText": "Today text message.",
"ToolbarComponent": "Component that will replace default toolbar renderer.",
"toolbarFormat": "Date format, that is displaying in toolbar.",
"toolbarPlaceholder": "Mobile picker date value placeholder, displaying if <code>value</code> === <code>null</code>.",
"toolbarTitle": "Mobile picker title, displaying in the toolbar.",
"TransitionComponent": "Custom component for popper <a href=\"https://mui.com/material-ui/transitions/#transitioncomponent-prop\">Transition</a>."
"TransitionComponent": "Custom component for popper <a href=\"https://mui.com/material-ui/transitions/#transitioncomponent-prop\">Transition</a>.",
"value": "The value of the picker."
},
"classDescriptions": {},
"slotDescriptions": {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,10 @@
"showToolbar": "If <code>true</code>, show the toolbar even in desktop mode.",
"startText": "Text for start input label and toolbar placeholder.",
"todayText": "Today text message.",
"ToolbarComponent": "Component that will replace default toolbar renderer.",
"toolbarFormat": "Date format, that is displaying in toolbar.",
"toolbarPlaceholder": "Mobile picker date value placeholder, displaying if <code>value</code> === <code>null</code>.",
"toolbarTitle": "Mobile picker title, displaying in the toolbar.",
"TransitionComponent": "Custom component for popper <a href=\"https://mui.com/material-ui/transitions/#transitioncomponent-prop\">Transition</a>."
"TransitionComponent": "Custom component for popper <a href=\"https://mui.com/material-ui/transitions/#transitioncomponent-prop\">Transition</a>.",
"value": "The value of the picker."
},
"classDescriptions": {},
"slotDescriptions": {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,10 @@
"showToolbar": "If <code>true</code>, show the toolbar even in desktop mode.",
"startText": "Text for start input label and toolbar placeholder.",
"todayText": "Today text message.",
"ToolbarComponent": "Component that will replace default toolbar renderer.",
"toolbarFormat": "Date format, that is displaying in toolbar.",
"toolbarPlaceholder": "Mobile picker date value placeholder, displaying if <code>value</code> === <code>null</code>.",
"toolbarTitle": "Mobile picker title, displaying in the toolbar.",
"TransitionComponent": "Custom component for popper <a href=\"https://mui.com/material-ui/transitions/#transitioncomponent-prop\">Transition</a>."
"TransitionComponent": "Custom component for popper <a href=\"https://mui.com/material-ui/transitions/#transitioncomponent-prop\">Transition</a>.",
"value": "The value of the picker."
},
"classDescriptions": {},
"slotDescriptions": {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,10 @@
"showDaysOutsideCurrentMonth": "If <code>true</code>, days that have <code>outsideCurrentMonth={true}</code> are displayed.",
"showToolbar": "If <code>true</code>, show the toolbar even in desktop mode.",
"startText": "Text for start input label and toolbar placeholder.",
"ToolbarComponent": "Component that will replace default toolbar renderer.",
"toolbarFormat": "Date format, that is displaying in toolbar.",
"toolbarPlaceholder": "Mobile picker date value placeholder, displaying if <code>value</code> === <code>null</code>.",
"toolbarTitle": "Mobile picker title, displaying in the toolbar.",
"TransitionComponent": "Custom component for popper <a href=\"https://mui.com/material-ui/transitions/#transitioncomponent-prop\">Transition</a>."
"TransitionComponent": "Custom component for popper <a href=\"https://mui.com/material-ui/transitions/#transitioncomponent-prop\">Transition</a>.",
"value": "The value of the picker."
},
"classDescriptions": {},
"slotDescriptions": {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,10 @@
"showDaysOutsideCurrentMonth": "If <code>true</code>, days that have <code>outsideCurrentMonth={true}</code> are displayed.",
"showToolbar": "If <code>true</code>, show the toolbar even in desktop mode.",
"startText": "Text for start input label and toolbar placeholder.",
"ToolbarComponent": "Component that will replace default toolbar renderer.",
"toolbarFormat": "Date format, that is displaying in toolbar.",
"toolbarPlaceholder": "Mobile picker date value placeholder, displaying if <code>value</code> === <code>null</code>.",
"toolbarTitle": "Mobile picker title, displaying in the toolbar.",
"TransitionComponent": "Custom component for popper <a href=\"https://mui.com/material-ui/transitions/#transitioncomponent-prop\">Transition</a>."
"TransitionComponent": "Custom component for popper <a href=\"https://mui.com/material-ui/transitions/#transitioncomponent-prop\">Transition</a>.",
"value": "The value of the picker."
},
"classDescriptions": {},
"slotDescriptions": {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,10 @@
"showDaysOutsideCurrentMonth": "If <code>true</code>, days that have <code>outsideCurrentMonth={true}</code> are displayed.",
"showToolbar": "If <code>true</code>, show the toolbar even in desktop mode.",
"startText": "Text for start input label and toolbar placeholder.",
"ToolbarComponent": "Component that will replace default toolbar renderer.",
"toolbarFormat": "Date format, that is displaying in toolbar.",
"toolbarPlaceholder": "Mobile picker date value placeholder, displaying if <code>value</code> === <code>null</code>.",
"toolbarTitle": "Mobile picker title, displaying in the toolbar.",
"TransitionComponent": "Custom component for popper <a href=\"https://mui.com/material-ui/transitions/#transitioncomponent-prop\">Transition</a>."
"TransitionComponent": "Custom component for popper <a href=\"https://mui.com/material-ui/transitions/#transitioncomponent-prop\">Transition</a>.",
"value": "The value of the picker."
},
"classDescriptions": {},
"slotDescriptions": {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@
"shouldDisableTime": "Dynamically check if time is disabled or not. If returns <code>false</code> appropriate time point will ot be acceptable.<br><br><strong>Signature:</strong><br><code>function(timeValue: number, clockType: ClockPickerView) =&gt; boolean</code><br><em>timeValue:</em> The value to check.<br><em>clockType:</em> The clock type of the timeValue.<br> <em>returns</em> (boolean): Returns <code>true</code> if the time should be disabled",
"showToolbar": "If <code>true</code>, show the toolbar even in desktop mode.",
"ToolbarComponent": "Component that will replace default toolbar renderer.",
"toolbarFormat": "Date format, that is displaying in toolbar.",
"toolbarPlaceholder": "Mobile picker date value placeholder, displaying if <code>value</code> === <code>null</code>.",
"toolbarTitle": "Mobile picker title, displaying in the toolbar.",
"TransitionComponent": "Custom component for popper <a href=\"https://mui.com/material-ui/transitions/#transitioncomponent-prop\">Transition</a>.",
"value": "The value of the picker.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@
"shouldDisableTime": "Dynamically check if time is disabled or not. If returns <code>false</code> appropriate time point will ot be acceptable.<br><br><strong>Signature:</strong><br><code>function(timeValue: number, clockType: ClockPickerView) =&gt; boolean</code><br><em>timeValue:</em> The value to check.<br><em>clockType:</em> The clock type of the timeValue.<br> <em>returns</em> (boolean): Returns <code>true</code> if the time should be disabled",
"showToolbar": "If <code>true</code>, show the toolbar even in desktop mode.",
"ToolbarComponent": "Component that will replace default toolbar renderer.",
"toolbarFormat": "Date format, that is displaying in toolbar.",
"toolbarPlaceholder": "Mobile picker date value placeholder, displaying if <code>value</code> === <code>null</code>.",
"toolbarTitle": "Mobile picker title, displaying in the toolbar.",
"TransitionComponent": "Custom component for popper <a href=\"https://mui.com/material-ui/transitions/#transitioncomponent-prop\">Transition</a>.",
"value": "The value of the picker.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@
"shouldDisableTime": "Dynamically check if time is disabled or not. If returns <code>false</code> appropriate time point will ot be acceptable.<br><br><strong>Signature:</strong><br><code>function(timeValue: number, clockType: ClockPickerView) =&gt; boolean</code><br><em>timeValue:</em> The value to check.<br><em>clockType:</em> The clock type of the timeValue.<br> <em>returns</em> (boolean): Returns <code>true</code> if the time should be disabled",
"showToolbar": "If <code>true</code>, show the toolbar even in desktop mode.",
"ToolbarComponent": "Component that will replace default toolbar renderer.",
"toolbarFormat": "Date format, that is displaying in toolbar.",
"toolbarPlaceholder": "Mobile picker date value placeholder, displaying if <code>value</code> === <code>null</code>.",
"toolbarTitle": "Mobile picker title, displaying in the toolbar.",
"TransitionComponent": "Custom component for popper <a href=\"https://mui.com/material-ui/transitions/#transitioncomponent-prop\">Transition</a>.",
"value": "The value of the picker.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,9 @@
"showToolbar": "If <code>true</code>, show the toolbar even in desktop mode.",
"startText": "Text for start input label and toolbar placeholder.",
"todayText": "Today text message.",
"ToolbarComponent": "Component that will replace default toolbar renderer.",
"toolbarFormat": "Date format, that is displaying in toolbar.",
"toolbarPlaceholder": "Mobile picker date value placeholder, displaying if <code>value</code> === <code>null</code>.",
"toolbarTitle": "Mobile picker title, displaying in the toolbar."
"toolbarTitle": "Mobile picker title, displaying in the toolbar.",
"value": "The value of the picker."
},
"classDescriptions": {},
"slotDescriptions": {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,9 @@
"showToolbar": "If <code>true</code>, show the toolbar even in desktop mode.",
"startText": "Text for start input label and toolbar placeholder.",
"todayText": "Today text message.",
"ToolbarComponent": "Component that will replace default toolbar renderer.",
"toolbarFormat": "Date format, that is displaying in toolbar.",
"toolbarPlaceholder": "Mobile picker date value placeholder, displaying if <code>value</code> === <code>null</code>.",
"toolbarTitle": "Mobile picker title, displaying in the toolbar."
"toolbarTitle": "Mobile picker title, displaying in the toolbar.",
"value": "The value of the picker."
},
"classDescriptions": {},
"slotDescriptions": {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,9 @@
"showToolbar": "If <code>true</code>, show the toolbar even in desktop mode.",
"startText": "Text for start input label and toolbar placeholder.",
"todayText": "Today text message.",
"ToolbarComponent": "Component that will replace default toolbar renderer.",
"toolbarFormat": "Date format, that is displaying in toolbar.",
"toolbarPlaceholder": "Mobile picker date value placeholder, displaying if <code>value</code> === <code>null</code>.",
"toolbarTitle": "Mobile picker title, displaying in the toolbar."
"toolbarTitle": "Mobile picker title, displaying in the toolbar.",
"value": "The value of the picker."
},
"classDescriptions": {},
"slotDescriptions": {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@
"showToolbar": "If <code>true</code>, show the toolbar even in desktop mode.",
"todayText": "Today text message.",
"ToolbarComponent": "Component that will replace default toolbar renderer.",
"toolbarFormat": "Date format, that is displaying in toolbar.",
"toolbarPlaceholder": "Mobile picker date value placeholder, displaying if <code>value</code> === <code>null</code>.",
"toolbarTitle": "Mobile picker title, displaying in the toolbar.",
"value": "The value of the picker.",
"views": "Array of views to show."
Expand Down
Loading

0 comments on commit 936655f

Please sign in to comment.