Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/.link-check-errors.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
Broken links found by `docs:link-check` that exist:

- https://mui.com/material-ui/customization/css-theme-variables/configuration/#advanced-configuration
- https://mui.com/material-ui/customization/css-theme-variables/configuration/#changing-variable-prefixes
- https://mui.com/material-ui/customization/theme-components/#creating-new-component-variants
- https://mui.com/material-ui/customization/theme-components/#overrides-based-on-props
- https://mui.com/material-ui/react-grid2/#whats-changed
4 changes: 2 additions & 2 deletions docs/data/date-pickers/lifecycle/lifecycle.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ You can find more information [in the dedicated doc section](/x/react-date-picke

The `onChange` callback is called whenever the current value changes.

If you don't want to listen to the intermediary steps, consider using the [`onAccept` prop](/x/react-date-pickers/lifecycle/#lifecycle-on-pickers-onaccept) instead.
If you don't want to listen to the intermediary steps, consider using the [`onAccept` prop](/x/react-date-pickers/lifecycle/#lifecycle-on-pickers-quot-onaccept-quot) instead.

```tsx
<DatePicker onChange={(value) => setValue(value)} />
Expand Down Expand Up @@ -392,6 +392,6 @@ In such a case, the recommended UI is to add a button for validating the form.
If for some reason, you need to send the data to the server without having the user pressing a validation button, you can debounce the `onChange` as follows.

The following demo shows how to extend the Date Field component by adding an `onAccept` prop, which is a debounced version of `onChange`.
You can find more information about the `onAccept` prop [in the dedicated doc section](/x/react-date-pickers/lifecycle/#lifecycle-on-pickers-onaccept).
You can find more information about the `onAccept` prop [in the dedicated doc section](/x/react-date-pickers/lifecycle/#lifecycle-on-pickers-quot-onaccept-quot).

{{"demo": "ServerInteraction.js"}}
2 changes: 1 addition & 1 deletion docs/pages/_document.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import MyDocument from '@mui/monorepo/docs/pages/_document';
import MyDocument from 'docs/pages/_document';

export default MyDocument;
1 change: 1 addition & 0 deletions docs/src/modules/components/PickersPlayground.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import MenuItem from '@mui/material/MenuItem';
import Divider from '@mui/material/Divider';
import Tooltip from '@mui/material/Tooltip';
import Typography from '@mui/material/Typography';
// eslint-disable-next-line no-restricted-imports
import { DemoContainer } from '@mui/x-date-pickers/internals/demo';
import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs';
import { LocalizationProvider } from '@mui/x-date-pickers/LocalizationProvider';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
} from '@mui/x-date-pickers/PickersLayout';
import { renderMultiSectionDigitalClockTimeView } from '@mui/x-date-pickers/timeViewRenderers';
import { TimeView } from '@mui/x-date-pickers/models';
import { TimePickerViewRenderers } from '@mui/x-date-pickers/TimePicker/shared';
import { TimePickerViewRenderers } from '@mui/x-date-pickers/TimePicker';

const StyledLayout = styled(PickersLayoutRoot)({
overflow: 'auto',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
"@mui/internal-markdown": "^1.0.9",
"@mui/internal-test-utils": "^1.0.7",
"@mui/material": "^5.16.5",
"@mui/monorepo": "github:mui/material-ui#4a82b6b0e0395db8fa0a0d49b6b76de4516b1579",
"@mui/monorepo": "github:mui/material-ui#c6c0b463405be88a843e3a152f6c975c55d81c5f",
"@mui/utils": "^5.16.5",
"@next/eslint-plugin-next": "14.2.5",
"@octokit/plugin-retry": "^7.1.1",
Expand Down
1 change: 1 addition & 0 deletions packages/x-date-pickers/src/TimePicker/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ export type {
TimePickerToolbarClassKey,
TimePickerToolbarClasses,
} from './timePickerToolbarClasses';
export type { TimePickerViewRenderers } from './shared';
24 changes: 12 additions & 12 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions scripts/x-date-pickers-pro.exports.json
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,7 @@
{ "name": "TimePickerToolbarClasses", "kind": "Interface" },
{ "name": "TimePickerToolbarClassKey", "kind": "TypeAlias" },
{ "name": "TimePickerToolbarProps", "kind": "Interface" },
{ "name": "TimePickerViewRenderers", "kind": "TypeAlias" },
{ "name": "TimeRangeValidationError", "kind": "TypeAlias" },
{ "name": "TimeStepOptions", "kind": "Interface" },
{ "name": "TimeValidationError", "kind": "TypeAlias" },
Expand Down
1 change: 1 addition & 0 deletions scripts/x-date-pickers.exports.json
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@
{ "name": "TimePickerToolbarClasses", "kind": "Interface" },
{ "name": "TimePickerToolbarClassKey", "kind": "TypeAlias" },
{ "name": "TimePickerToolbarProps", "kind": "Interface" },
{ "name": "TimePickerViewRenderers", "kind": "TypeAlias" },
{ "name": "TimeStepOptions", "kind": "Interface" },
{ "name": "TimeValidationError", "kind": "TypeAlias" },
{ "name": "TimeView", "kind": "TypeAlias" },
Expand Down