From 891cea1809e44f71a270dc3f512528b5db7717d7 Mon Sep 17 00:00:00 2001 From: Flavien DELANGLE Date: Wed, 22 Nov 2023 09:23:19 +0100 Subject: [PATCH] [docs] Fix typos and grammar issues (#11049) --- docs/data/charts/areas-demo/areas-demo.md | 2 +- docs/data/charts/bars/bars.md | 2 +- docs/data/charts/components/components.md | 2 +- docs/data/charts/funnel/funnel.md | 2 +- docs/data/charts/gauge/gauge.md | 2 +- docs/data/charts/heat-map/heat-map.md | 2 +- docs/data/charts/legend/legend.md | 2 +- docs/data/charts/lines/lines.md | 4 ++-- docs/data/charts/stacking/StackOrderDemo.js | 2 +- docs/data/charts/stacking/StackOrderDemo.tsx | 2 +- docs/data/charts/styling/styling.md | 2 +- docs/data/charts/tooltip/Formatting.js | 4 ++-- docs/data/charts/tooltip/Formatting.tsx | 4 ++-- docs/data/charts/tooltip/Formatting.tsx.preview | 2 +- docs/data/charts/tooltip/tooltip.md | 4 ++-- docs/data/data-grid/accessibility/accessibility.md | 2 +- docs/data/data-grid/custom-columns/custom-columns.md | 2 +- docs/data/data-grid/filtering/header-filters.md | 2 +- docs/data/data-grid/row-definition/row-definition.md | 2 +- docs/data/date-pickers/calendar-systems/AdapterHijri.js | 2 +- docs/data/date-pickers/calendar-systems/AdapterHijri.tsx | 2 +- .../calendar-systems/AdapterHijri.tsx.preview | 2 +- .../date-pickers/custom-components/custom-components.md | 6 +++--- docs/data/date-pickers/date-calendar/date-calendar.md | 4 ++-- .../date-pickers/date-range-field/date-range-field.md | 2 +- .../date-pickers/date-range-picker/date-range-picker.md | 2 +- .../date-time-range-field/date-time-range-field.md | 2 +- .../date-time-range-picker/date-time-range-picker.md | 2 +- docs/data/date-pickers/digital-clock/digital-clock.md | 4 ++-- docs/data/date-pickers/lifecycle/ServerInteraction.js | 9 ++++++--- docs/data/date-pickers/lifecycle/ServerInteraction.tsx | 9 ++++++--- docs/data/date-pickers/shortcuts/BasicShortcuts.js | 3 ++- docs/data/date-pickers/shortcuts/BasicShortcuts.tsx | 3 ++- docs/data/date-pickers/shortcuts/ChangeImportance.js | 3 ++- docs/data/date-pickers/shortcuts/ChangeImportance.tsx | 3 ++- .../date-pickers/shortcuts/DisabledDatesShortcuts.js | 3 ++- .../date-pickers/shortcuts/DisabledDatesShortcuts.tsx | 3 ++- .../date-pickers/time-range-field/time-range-field.md | 2 +- .../date-pickers/time-range-picker/time-range-picker.md | 2 +- docs/data/date-pickers/validation/validation.md | 2 +- docs/data/introduction/licensing/licensing.md | 2 +- .../api-docs/date-pickers/date-calendar.json | 2 +- docs/translations/api-docs/date-pickers/date-field.json | 2 +- docs/translations/api-docs/date-pickers/date-picker.json | 2 +- .../api-docs/date-pickers/date-range-calendar.json | 2 +- .../api-docs/date-pickers/date-range-picker.json | 2 +- .../api-docs/date-pickers/date-time-field.json | 2 +- .../api-docs/date-pickers/date-time-picker.json | 2 +- .../api-docs/date-pickers/desktop-date-picker.json | 2 +- .../api-docs/date-pickers/desktop-date-range-picker.json | 2 +- .../api-docs/date-pickers/desktop-date-time-picker.json | 2 +- .../api-docs/date-pickers/desktop-time-picker.json | 2 +- .../api-docs/date-pickers/digital-clock.json | 2 +- .../api-docs/date-pickers/mobile-date-picker.json | 2 +- .../api-docs/date-pickers/mobile-date-range-picker.json | 2 +- .../api-docs/date-pickers/mobile-date-time-picker.json | 2 +- .../api-docs/date-pickers/mobile-time-picker.json | 2 +- .../api-docs/date-pickers/month-calendar.json | 2 +- .../date-pickers/multi-input-date-range-field.json | 2 +- .../date-pickers/multi-input-date-time-range-field.json | 2 +- .../date-pickers/multi-input-time-range-field.json | 2 +- .../date-pickers/multi-section-digital-clock.json | 2 +- .../date-pickers/single-input-date-range-field.json | 2 +- .../date-pickers/single-input-date-time-range-field.json | 2 +- .../date-pickers/single-input-time-range-field.json | 2 +- .../api-docs/date-pickers/static-date-picker.json | 2 +- .../api-docs/date-pickers/static-date-range-picker.json | 2 +- .../api-docs/date-pickers/static-date-time-picker.json | 2 +- .../api-docs/date-pickers/static-time-picker.json | 2 +- docs/translations/api-docs/date-pickers/time-clock.json | 2 +- docs/translations/api-docs/date-pickers/time-field.json | 2 +- docs/translations/api-docs/date-pickers/time-picker.json | 2 +- .../api-docs/date-pickers/year-calendar.json | 2 +- .../src/DateRangeCalendar/DateRangeCalendar.tsx | 2 +- .../src/DateRangePicker/DateRangePicker.tsx | 2 +- .../DesktopDateRangePicker/DesktopDateRangePicker.tsx | 2 +- .../src/MobileDateRangePicker/MobileDateRangePicker.tsx | 2 +- .../MultiInputDateRangeField.tsx | 2 +- .../MultiInputDateTimeRangeField.tsx | 2 +- .../MultiInputTimeRangeField.tsx | 2 +- .../SingleInputDateRangeField.tsx | 2 +- .../SingleInputDateTimeRangeField.tsx | 2 +- .../SingleInputTimeRangeField.tsx | 2 +- .../src/StaticDateRangePicker/StaticDateRangePicker.tsx | 2 +- .../x-date-pickers/src/DateCalendar/DateCalendar.tsx | 2 +- packages/x-date-pickers/src/DateField/DateField.tsx | 2 +- packages/x-date-pickers/src/DatePicker/DatePicker.tsx | 2 +- .../x-date-pickers/src/DateTimeField/DateTimeField.tsx | 2 +- .../x-date-pickers/src/DateTimePicker/DateTimePicker.tsx | 2 +- .../src/DesktopDatePicker/DesktopDatePicker.tsx | 2 +- .../src/DesktopDateTimePicker/DesktopDateTimePicker.tsx | 2 +- .../src/DesktopTimePicker/DesktopTimePicker.tsx | 2 +- .../x-date-pickers/src/DigitalClock/DigitalClock.tsx | 2 +- .../src/MobileDatePicker/MobileDatePicker.tsx | 2 +- .../src/MobileDatePicker/tests/MobileDatePicker.test.tsx | 4 ++-- .../src/MobileDateTimePicker/MobileDateTimePicker.tsx | 2 +- .../src/MobileTimePicker/MobileTimePicker.tsx | 2 +- .../x-date-pickers/src/MonthCalendar/MonthCalendar.tsx | 2 +- .../MultiSectionDigitalClock.tsx | 2 +- packages/x-date-pickers/src/PickersDay/PickersDay.tsx | 2 +- .../src/StaticDatePicker/StaticDatePicker.tsx | 2 +- .../src/StaticDateTimePicker/StaticDateTimePicker.tsx | 2 +- .../src/StaticTimePicker/StaticTimePicker.tsx | 2 +- packages/x-date-pickers/src/TimeClock/Clock.tsx | 2 +- packages/x-date-pickers/src/TimeClock/TimeClock.tsx | 2 +- packages/x-date-pickers/src/TimeField/TimeField.tsx | 2 +- .../src/TimeField/tests/editing.TimeField.test.tsx | 8 ++++---- packages/x-date-pickers/src/TimePicker/TimePicker.tsx | 2 +- .../x-date-pickers/src/YearCalendar/YearCalendar.tsx | 2 +- .../internals/hooks/usePicker/usePickerValue.types.ts | 2 +- packages/x-date-pickers/src/internals/hooks/useViews.tsx | 4 ++-- packages/x-date-pickers/src/models/timezone.ts | 2 +- 112 files changed, 141 insertions(+), 129 deletions(-) diff --git a/docs/data/charts/areas-demo/areas-demo.md b/docs/data/charts/areas-demo/areas-demo.md index 81c8db85b202..6b17e9089753 100644 --- a/docs/data/charts/areas-demo/areas-demo.md +++ b/docs/data/charts/areas-demo/areas-demo.md @@ -4,7 +4,7 @@ title: Charts - Areas demonstration # Charts - Areas demonstration -

This page groups demonstration using areas charts.

+

This page groups demonstration using area charts.

## SimpleAreaChart diff --git a/docs/data/charts/bars/bars.md b/docs/data/charts/bars/bars.md index d815f8a40d18..cfcf13135e6a 100644 --- a/docs/data/charts/bars/bars.md +++ b/docs/data/charts/bars/bars.md @@ -64,7 +64,7 @@ If you're using [composition](/x/react-charts/#multiple-charts), you should set ## Animation -To skip animation at the creation and update of your chart you can use the `skipAnimation` prop. +To skip animation at the creation and update of your chart, you can use the `skipAnimation` prop. When set to `true` it skips animation powered by `@react-spring/web`. Charts containers already use the `useReducedMotion` from `@react-spring/web` to skip animation [according to user preferences](https://react-spring.dev/docs/utilities/use-reduced-motion#why-is-it-important). diff --git a/docs/data/charts/components/components.md b/docs/data/charts/components/components.md index aaf107791dee..c600abf7b732 100644 --- a/docs/data/charts/components/components.md +++ b/docs/data/charts/components/components.md @@ -12,7 +12,7 @@ title: Charts - Custom components Charts dimensions are defined by a few props: -- `height` and `width` for the `` size. If not provided those values are derived from the container. +- `height` and `width` for the `` size. If not provided, those values are derived from the container. - `margin` for adding space between the `` border and the **drawing area**. The term **drawing area** refers to the space available to plot data (scatter points, lines, or pie arcs). diff --git a/docs/data/charts/funnel/funnel.md b/docs/data/charts/funnel/funnel.md index 28b5e4ee42fa..1a9a96a3845e 100644 --- a/docs/data/charts/funnel/funnel.md +++ b/docs/data/charts/funnel/funnel.md @@ -4,7 +4,7 @@ title: React Funnel chart # Charts - Funnel 🚧[](/x/introduction/licensing/#pro-plan 'Pro plan') -

Funnel charts allows to express quantity evolution along a process, such as audience engagement.

+

Funnel charts allow to express quantity evolution along a process, such as audience engagement.

:::warning This feature isn't implemented yet. It's coming. diff --git a/docs/data/charts/gauge/gauge.md b/docs/data/charts/gauge/gauge.md index 9c9d1f9fb299..e064b94bbeab 100644 --- a/docs/data/charts/gauge/gauge.md +++ b/docs/data/charts/gauge/gauge.md @@ -4,7 +4,7 @@ title: React Gauge chart # Charts - Gauge 🚧 -

Gauge chart allows to evaluate a metric.

+

Gauge charts let the user evaluate metrics.

:::warning This feature isn't implemented yet. It's coming. diff --git a/docs/data/charts/heat-map/heat-map.md b/docs/data/charts/heat-map/heat-map.md index bd78866ead1a..f162a4643164 100644 --- a/docs/data/charts/heat-map/heat-map.md +++ b/docs/data/charts/heat-map/heat-map.md @@ -4,7 +4,7 @@ title: React Heat map chart # Charts - Heat map 🚧 -

Heat map charts allows to highlight correlation between categories.

+

Heat map charts allow to highlight correlation between categories.

:::warning This feature isn't implemented yet. It's coming. diff --git a/docs/data/charts/legend/legend.md b/docs/data/charts/legend/legend.md index 063e315f53f0..7eb803f7b070 100644 --- a/docs/data/charts/legend/legend.md +++ b/docs/data/charts/legend/legend.md @@ -30,7 +30,7 @@ By default, the legend is placed above the charts. {{"demo": "LegendPositionNoSnap.js", "hideToolbar": true, "bg": "inline"}} -### Hidding +### Hiding You can hide the legend with the property `slotProps.legend.hidden`. diff --git a/docs/data/charts/lines/lines.md b/docs/data/charts/lines/lines.md index b2edf045f3e0..b3dc7850a9ae 100644 --- a/docs/data/charts/lines/lines.md +++ b/docs/data/charts/lines/lines.md @@ -56,7 +56,7 @@ For more information, see [stacking docs](/x/react-charts/stacking/). ### Skip missing points -Line series can have less data than the axis. +Line series can have fewer data points than the axis. You can handle lines with partial data or data starting at different points by providing `null` values. By default, the tooltip does not show series if they have no value. @@ -85,7 +85,7 @@ The following code plots a line for x between 2 and 4. Line series accepts a `connectNulls` property which will continue the interpolation across points with a `null` value. This property can link two sets of points, with `null` data between them. -However, it can not extrapolate the curve before the first non-null data point or after the last one. +However, it cannot extrapolate the curve before the first non-null data point or after the last one. {{"demo": "ConnectNulls.js"}} diff --git a/docs/data/charts/stacking/StackOrderDemo.js b/docs/data/charts/stacking/StackOrderDemo.js index 849e21d887f4..15834d849301 100644 --- a/docs/data/charts/stacking/StackOrderDemo.js +++ b/docs/data/charts/stacking/StackOrderDemo.js @@ -4,7 +4,7 @@ import TextField from '@mui/material/TextField'; import MenuItem from '@mui/material/MenuItem'; import { BarChart } from '@mui/x-charts/BarChart'; -// Data comming from https://www.insee.fr/fr/statistiques/5013868 +// Data coming from https://www.insee.fr/fr/statistiques/5013868 const commonTransportation = [ 6.5, 12.5, 17.2, 19.6, 20.1, 20.0, 19.5, 18.8, 18.2, 17.3, 16.4, 15.9, 15.2, 14.7, 14.3, 14.3, 14.3, 14.1, 14.2, 14.2, 14.0, 13.8, 13.8, 13.9, 13.6, 14.0, 14.9, 14.8, diff --git a/docs/data/charts/stacking/StackOrderDemo.tsx b/docs/data/charts/stacking/StackOrderDemo.tsx index 97449aeadfac..7bb2cd258ded 100644 --- a/docs/data/charts/stacking/StackOrderDemo.tsx +++ b/docs/data/charts/stacking/StackOrderDemo.tsx @@ -5,7 +5,7 @@ import MenuItem from '@mui/material/MenuItem'; import { BarChart } from '@mui/x-charts/BarChart'; import { StackOrderType } from '@mui/x-charts/models'; -// Data comming from https://www.insee.fr/fr/statistiques/5013868 +// Data coming from https://www.insee.fr/fr/statistiques/5013868 const commonTransportation = [ 6.5, 12.5, 17.2, 19.6, 20.1, 20.0, 19.5, 18.8, 18.2, 17.3, 16.4, 15.9, 15.2, 14.7, 14.3, 14.3, 14.3, 14.1, 14.2, 14.2, 14.0, 13.8, 13.8, 13.9, 13.6, 14.0, 14.9, 14.8, diff --git a/docs/data/charts/styling/styling.md b/docs/data/charts/styling/styling.md index 585be102da60..f5b4a220cd2e 100644 --- a/docs/data/charts/styling/styling.md +++ b/docs/data/charts/styling/styling.md @@ -4,7 +4,7 @@ title: Charts - Styling # Charts - Styling -

This page groups topics about charts customistion.

+

This page groups topics about charts customization.

## Colors diff --git a/docs/data/charts/tooltip/Formatting.js b/docs/data/charts/tooltip/Formatting.js index 759307e1c79f..10dc1544a795 100644 --- a/docs/data/charts/tooltip/Formatting.js +++ b/docs/data/charts/tooltip/Formatting.js @@ -76,7 +76,7 @@ const lineChartsParams = { height: 400, }; -const yearFormater = (date) => date.getFullYear().toString(); +const yearFormatter = (date) => date.getFullYear().toString(); const currencyFormatter = new Intl.NumberFormat('en-US', { style: 'currency', currency: 'USD', @@ -86,7 +86,7 @@ export default function Formatting() { return ( ({ ...s, valueFormatter: currencyFormatter, diff --git a/docs/data/charts/tooltip/Formatting.tsx b/docs/data/charts/tooltip/Formatting.tsx index ab975cdd909f..91c2e822604a 100644 --- a/docs/data/charts/tooltip/Formatting.tsx +++ b/docs/data/charts/tooltip/Formatting.tsx @@ -76,7 +76,7 @@ const lineChartsParams = { height: 400, }; -const yearFormater = (date: Date) => date.getFullYear().toString(); +const yearFormatter = (date: Date) => date.getFullYear().toString(); const currencyFormatter = new Intl.NumberFormat('en-US', { style: 'currency', currency: 'USD', @@ -86,7 +86,7 @@ export default function Formatting() { return ( ({ ...s, valueFormatter: currencyFormatter, diff --git a/docs/data/charts/tooltip/Formatting.tsx.preview b/docs/data/charts/tooltip/Formatting.tsx.preview index 9e2d3ca90568..78b79ddf0b6b 100644 --- a/docs/data/charts/tooltip/Formatting.tsx.preview +++ b/docs/data/charts/tooltip/Formatting.tsx.preview @@ -1,6 +1,6 @@ ({ ...s, valueFormatter: currencyFormatter, diff --git a/docs/data/charts/tooltip/tooltip.md b/docs/data/charts/tooltip/tooltip.md index 155711681a1b..e6fb6377fe27 100644 --- a/docs/data/charts/tooltip/tooltip.md +++ b/docs/data/charts/tooltip/tooltip.md @@ -81,10 +81,10 @@ It will remove the header showing the x-axis value from the tooltip. ## Composition -If you're using composition, by default the axis will be listening for mouse events to get its current x/y values. +If you're using composition, by default, the axis will be listening for mouse events to get its current x/y values. If you don't need it, you can disable those listeners with the `disableAxisListener` prop. -You need those listerne if you are using [axes highlight](/x/react-charts/tooltip/#highlighting-axis) or you have a tooltip [triggered by axis](/x/react-charts/tooltip/#interactions). +You need those listeners if you are using [axes highlight](/x/react-charts/tooltip/#highlighting-axis) or you have a tooltip [triggered by axis](/x/react-charts/tooltip/#interactions). ```jsx diff --git a/docs/data/data-grid/accessibility/accessibility.md b/docs/data/data-grid/accessibility/accessibility.md index b9fa979b5a01..231a49c35d53 100644 --- a/docs/data/data-grid/accessibility/accessibility.md +++ b/docs/data/data-grid/accessibility/accessibility.md @@ -13,7 +13,7 @@ The most commonly encountered conformance guidelines for accessibility are: - Europe: [EAA](https://ec.europa.eu/social/main.jsp?catId=1202) (European Accessibility Act) WCAG 2.1 has three levels of conformance: A, AA, and AAA. -Level AA meet the most commonly encountered conformance guidelines. +Level AA meets the most commonly encountered conformance guidelines. This is the most common target for organizations so what MUI aims to support very well. The [WAI-ARIA authoring practices](https://www.w3.org/WAI/ARIA/apg/patterns/grid/) provide valuable information on how to optimize the accessibility of a data grid. diff --git a/docs/data/data-grid/custom-columns/custom-columns.md b/docs/data/data-grid/custom-columns/custom-columns.md index b876943dcea2..7ac7098d1c33 100644 --- a/docs/data/data-grid/custom-columns/custom-columns.md +++ b/docs/data/data-grid/custom-columns/custom-columns.md @@ -40,7 +40,7 @@ The example below uses `@mui/x-date-pickers` for both `date` and `dateTime` colu {{"demo": "EditingWithDatePickers.js", "bg": "inline", "defaultCodeOpen": false }} :::warning -You can change date format by importing different locale (`en-US` locale is used in the example above). +You can change the date format by importing different locale (`en-US` locale is used in the example above). See [Localization](/x/react-date-pickers/localization/) for more information. ::: diff --git a/docs/data/data-grid/filtering/header-filters.md b/docs/data/data-grid/filtering/header-filters.md index 80f1f85ddb81..81664d4114b1 100644 --- a/docs/data/data-grid/filtering/header-filters.md +++ b/docs/data/data-grid/filtering/header-filters.md @@ -25,7 +25,7 @@ You can switch between different operators by clicking the operator button in th ## Simple header filters -You can disable default filter panel using `disableColumnFilter` prop and only show the default operator by passing `slots.headerFilterMenu` as `null`. +You can disable the default filter panel using `disableColumnFilter` prop and only show the default operator by passing `slots.headerFilterMenu` as `null`. {{"demo": "SimpleHeaderFilteringDataGridPro.js", "bg": "inline", "defaultCodeOpen": false}} diff --git a/docs/data/data-grid/row-definition/row-definition.md b/docs/data/data-grid/row-definition/row-definition.md index 76a844bb2643..191bbb4b2352 100644 --- a/docs/data/data-grid/row-definition/row-definition.md +++ b/docs/data/data-grid/row-definition/row-definition.md @@ -48,7 +48,7 @@ The data grid pulls this information directly from the data set itself, not from Just like the `rows` prop, the `getRowId` function should keep the same JavaScript reference between two renders. Otherwise, the data grid will re-apply heavy work like sorting and filtering. -It could be achieved by either defining the prop outside of the component scope or by memoizing using the `React.useCallback` hook if the function reuses something from the component scope. +It could be achieved by either defining the prop outside the component scope or by memoizing using the `React.useCallback` hook if the function reuses something from the component scope. ::: ## Styling rows diff --git a/docs/data/date-pickers/calendar-systems/AdapterHijri.js b/docs/data/date-pickers/calendar-systems/AdapterHijri.js index b51160c72b55..d867e75aa65e 100644 --- a/docs/data/date-pickers/calendar-systems/AdapterHijri.js +++ b/docs/data/date-pickers/calendar-systems/AdapterHijri.js @@ -20,7 +20,7 @@ export default function AdapterHijri() { diff --git a/docs/data/date-pickers/calendar-systems/AdapterHijri.tsx b/docs/data/date-pickers/calendar-systems/AdapterHijri.tsx index b51160c72b55..d867e75aa65e 100644 --- a/docs/data/date-pickers/calendar-systems/AdapterHijri.tsx +++ b/docs/data/date-pickers/calendar-systems/AdapterHijri.tsx @@ -20,7 +20,7 @@ export default function AdapterHijri() { diff --git a/docs/data/date-pickers/calendar-systems/AdapterHijri.tsx.preview b/docs/data/date-pickers/calendar-systems/AdapterHijri.tsx.preview index 5b1edf462eee..4c401c580fd9 100644 --- a/docs/data/date-pickers/calendar-systems/AdapterHijri.tsx.preview +++ b/docs/data/date-pickers/calendar-systems/AdapterHijri.tsx.preview @@ -4,7 +4,7 @@ diff --git a/docs/data/date-pickers/custom-components/custom-components.md b/docs/data/date-pickers/custom-components/custom-components.md index 55dde5af9d20..45ba9f00dacc 100644 --- a/docs/data/date-pickers/custom-components/custom-components.md +++ b/docs/data/date-pickers/custom-components/custom-components.md @@ -145,7 +145,7 @@ In the example below, the actions are the same as in the section above, but they ## Tabs The tabs are available on all date time picker components. -It allows to switch between date and time interfaces. +It allows switching between date and time interfaces. ### Component props @@ -192,7 +192,7 @@ It displays the current values and allows to switch between different views. ### Component props You can customize how the toolbar displays the current value with `toolbarFormat`. -By default empty values are replaced by `__`. +By default, empty values are replaced by `__`. This can be modified by using `toolbarPlaceholder` props. By default, the toolbar is `hidden` on desktop, and `visible` on mobile. @@ -238,5 +238,5 @@ You can pass custom components—to replace the icons, for example—as shown be ## Shortcuts -You can add shortcuts to every pickers. +You can add shortcuts to every Picker component. For more information, check the [dedicated page](/x/react-date-pickers/shortcuts/). diff --git a/docs/data/date-pickers/date-calendar/date-calendar.md b/docs/data/date-pickers/date-calendar/date-calendar.md index 7d3a1020e3ad..c4c43811e4a3 100644 --- a/docs/data/date-pickers/date-calendar/date-calendar.md +++ b/docs/data/date-pickers/date-calendar/date-calendar.md @@ -69,8 +69,8 @@ If you only need the `year` view or the `month` view, you can use the `YearCalen To show all days of displayed weeks, including those outside of the current month, use `showDaysOutsideCurrentMonth`. -By default, only weeks of the current month are displayed, but you can provide a total number of week to display with `fixedWeekNumber` prop. -This value is usually set to `6` for Gregorian calendars, because months display can vary between 4 and 6 weeks. +By default, only weeks of the current month are displayed, but you can provide a total number of weeks to display with `fixedWeekNumber` prop. +This value is usually set to `6` for Gregorian calendars, because month display can vary between 4 and 6 weeks. {{"demo": "CustomMonthLayout.js"}} diff --git a/docs/data/date-pickers/date-range-field/date-range-field.md b/docs/data/date-pickers/date-range-field/date-range-field.md index 46bd4570e06a..1ffd35d53c54 100644 --- a/docs/data/date-pickers/date-range-field/date-range-field.md +++ b/docs/data/date-pickers/date-range-field/date-range-field.md @@ -8,7 +8,7 @@ packageName: '@mui/x-date-pickers-pro' # Date Range Field [](/x/introduction/licensing/#pro-plan 'Pro plan') -

The Date Range Field components let the user select a date range with the keyboard.

+

The Date Range Field lets the user select a date range with the keyboard.

## Basic usage diff --git a/docs/data/date-pickers/date-range-picker/date-range-picker.md b/docs/data/date-pickers/date-range-picker/date-range-picker.md index ccbc5864cead..bfc5e905c507 100644 --- a/docs/data/date-pickers/date-range-picker/date-range-picker.md +++ b/docs/data/date-pickers/date-range-picker/date-range-picker.md @@ -9,7 +9,7 @@ materialDesign: https://m2.material.io/components/date-pickers # Date Range Picker [](/x/introduction/licensing/#pro-plan 'Pro plan') -

The Date Range Picker let the user select a range of dates.

+

The Date Range Picker lets the user select a range of dates.

## Basic usage diff --git a/docs/data/date-pickers/date-time-range-field/date-time-range-field.md b/docs/data/date-pickers/date-time-range-field/date-time-range-field.md index 08e1df655ccf..98a5a0c459f0 100644 --- a/docs/data/date-pickers/date-time-range-field/date-time-range-field.md +++ b/docs/data/date-pickers/date-time-range-field/date-time-range-field.md @@ -8,7 +8,7 @@ packageName: '@mui/x-date-pickers-pro' # Date Time Range Field [](/x/introduction/licensing/#pro-plan 'Pro plan') -

The Date Time Range Field let the user select a range of dates with an explicit starting and ending time with the keyboard.

+

The Date Time Range Field lets the user select a range of dates with an explicit starting and ending time with the keyboard.

## Basic usage diff --git a/docs/data/date-pickers/date-time-range-picker/date-time-range-picker.md b/docs/data/date-pickers/date-time-range-picker/date-time-range-picker.md index bbdd9f02eae4..fe8c42f4deec 100644 --- a/docs/data/date-pickers/date-time-range-picker/date-time-range-picker.md +++ b/docs/data/date-pickers/date-time-range-picker/date-time-range-picker.md @@ -8,7 +8,7 @@ materialDesign: https://m2.material.io/components/date-pickers # Date Time Range Picker [](/x/introduction/licensing/#pro-plan 'Pro plan')🚧 -

The Date Time Range Picker let the user select a range of dates with an explicit starting and ending time.

+

The Date Time Range Picker lets the user select a range of dates with an explicit starting and ending time.

:::warning This feature isn't implemented yet. It's coming. diff --git a/docs/data/date-pickers/digital-clock/digital-clock.md b/docs/data/date-pickers/digital-clock/digital-clock.md index 92acfa253308..d545babc4e7a 100644 --- a/docs/data/date-pickers/digital-clock/digital-clock.md +++ b/docs/data/date-pickers/digital-clock/digital-clock.md @@ -8,13 +8,13 @@ packageName: '@mui/x-date-pickers' # Digital Clock -

The Digital Clock components let the user select a time without any input or popper / modal.

+

The Digital Clock lets the user select a time without any input or popper / modal.

## Description There are two component versions for different cases. The `DigitalClock` handles selection of a single time instance in one step, just like a `select` component. The `MultiSectionDigitalClock` allows selecting time using separate sections for separate views. -The `DigitalClock` is more appropriate when there is a limited amount of time options needed, while the `MultiSectionDigitalClock` is suited for cases when a more granular time selection is needed. +The `DigitalClock` is more appropriate when there is a limited number of time options needed, while the `MultiSectionDigitalClock` is suited for cases when a more granular time selection is needed. ## Basic usage diff --git a/docs/data/date-pickers/lifecycle/ServerInteraction.js b/docs/data/date-pickers/lifecycle/ServerInteraction.js index 93d04830decb..86733860cc21 100644 --- a/docs/data/date-pickers/lifecycle/ServerInteraction.js +++ b/docs/data/date-pickers/lifecycle/ServerInteraction.js @@ -62,16 +62,19 @@ function DateFieldWithAccept(props) { default: null, }); - // Debounced function needs to be memoized to keep the same timeout beween each render. + // Debounced function needs to be memoized to keep the same timeout between each render. // For the same reason, the `onAccept` needs to be wrapped in useCallback. - const deboucedOnAccept = React.useMemo(() => debounce(onAccept, 1000), [onAccept]); + const debouncedOnAccept = React.useMemo( + () => debounce(onAccept, 1000), + [onAccept], + ); return ( { setValue(newValue); - deboucedOnAccept(newValue); + debouncedOnAccept(newValue); onChange?.(newValue, context); }} {...other} diff --git a/docs/data/date-pickers/lifecycle/ServerInteraction.tsx b/docs/data/date-pickers/lifecycle/ServerInteraction.tsx index c7e24ef58475..6a09f4fbb8a0 100644 --- a/docs/data/date-pickers/lifecycle/ServerInteraction.tsx +++ b/docs/data/date-pickers/lifecycle/ServerInteraction.tsx @@ -68,16 +68,19 @@ function DateFieldWithAccept( default: null, }); - // Debounced function needs to be memoized to keep the same timeout beween each render. + // Debounced function needs to be memoized to keep the same timeout between each render. // For the same reason, the `onAccept` needs to be wrapped in useCallback. - const deboucedOnAccept = React.useMemo(() => debounce(onAccept, 1000), [onAccept]); + const debouncedOnAccept = React.useMemo( + () => debounce(onAccept, 1000), + [onAccept], + ); return ( { setValue(newValue); - deboucedOnAccept(newValue); + debouncedOnAccept(newValue); onChange?.(newValue, context); }} {...other} diff --git a/docs/data/date-pickers/shortcuts/BasicShortcuts.js b/docs/data/date-pickers/shortcuts/BasicShortcuts.js index 8ba5aec2028f..03db0e0c9392 100644 --- a/docs/data/date-pickers/shortcuts/BasicShortcuts.js +++ b/docs/data/date-pickers/shortcuts/BasicShortcuts.js @@ -5,7 +5,8 @@ import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'; import { StaticDatePicker } from '@mui/x-date-pickers/StaticDatePicker'; const getMonthWeekday = (monthIndex, weekdayIndex, dayRank) => { - // Helper to find for example the 3rd monday in Jun + // Helper to find the nth weekday in a given month. + // For example, Find the 3rd Monday in January. const today = dayjs(); const firstDayOfMonth = today.month(monthIndex).startOf('month'); const weekDay = firstDayOfMonth.day(); // 0 (Sunday) to 6 (Saturday) diff --git a/docs/data/date-pickers/shortcuts/BasicShortcuts.tsx b/docs/data/date-pickers/shortcuts/BasicShortcuts.tsx index c94997c6e66d..3ce1d19e7966 100644 --- a/docs/data/date-pickers/shortcuts/BasicShortcuts.tsx +++ b/docs/data/date-pickers/shortcuts/BasicShortcuts.tsx @@ -10,7 +10,8 @@ const getMonthWeekday = ( weekdayIndex: number, dayRank: number, ) => { - // Helper to find for example the 3rd monday in Jun + // Helper to find the nth weekday in a given month. + // For example, Find the 3rd Monday in January. const today = dayjs(); const firstDayOfMonth = today.month(monthIndex).startOf('month'); const weekDay = firstDayOfMonth.day(); // 0 (Sunday) to 6 (Saturday) diff --git a/docs/data/date-pickers/shortcuts/ChangeImportance.js b/docs/data/date-pickers/shortcuts/ChangeImportance.js index 265d17e9bf28..8f0be416693c 100644 --- a/docs/data/date-pickers/shortcuts/ChangeImportance.js +++ b/docs/data/date-pickers/shortcuts/ChangeImportance.js @@ -9,7 +9,8 @@ import ToggleButtonGroup from '@mui/material/ToggleButtonGroup'; import ToggleButton from '@mui/material/ToggleButton'; const getMonthWeekday = (monthIndex, weekdayIndex, dayRank) => { - // Helper to find for example the 3rd monday in Jun + // Helper to find the nth weekday in a given month. + // For example, Find the 3rd Monday in January. const today = dayjs(); const firstDayOfMonth = today.month(monthIndex).startOf('month'); const weekDay = firstDayOfMonth.day(); // 0 (Sunday) to 6 (Saturday) diff --git a/docs/data/date-pickers/shortcuts/ChangeImportance.tsx b/docs/data/date-pickers/shortcuts/ChangeImportance.tsx index 8458ffdd8f2d..5ef6c1e18d3e 100644 --- a/docs/data/date-pickers/shortcuts/ChangeImportance.tsx +++ b/docs/data/date-pickers/shortcuts/ChangeImportance.tsx @@ -16,7 +16,8 @@ const getMonthWeekday = ( weekdayIndex: number, dayRank: number, ) => { - // Helper to find for example the 3rd monday in Jun + // Helper to find the nth weekday in a given month. + // For example, Find the 3rd Monday in January. const today = dayjs(); const firstDayOfMonth = today.month(monthIndex).startOf('month'); const weekDay = firstDayOfMonth.day(); // 0 (Sunday) to 6 (Saturday) diff --git a/docs/data/date-pickers/shortcuts/DisabledDatesShortcuts.js b/docs/data/date-pickers/shortcuts/DisabledDatesShortcuts.js index 6d8df5127866..a597416fb1c6 100644 --- a/docs/data/date-pickers/shortcuts/DisabledDatesShortcuts.js +++ b/docs/data/date-pickers/shortcuts/DisabledDatesShortcuts.js @@ -5,7 +5,8 @@ import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'; import { StaticDatePicker } from '@mui/x-date-pickers/StaticDatePicker'; const getMonthWeekday = (monthIndex, weekdayIndex, dayRank) => { - // Helper to find for example the 3rd monday in Jun + // Helper to find the nth weekday in a given month. + // For example, Find the 3rd Monday in January. const today = dayjs(); const firstDayOfMonth = today.month(monthIndex).startOf('month'); const weekDay = firstDayOfMonth.day(); // 0 (Sunday) to 6 (Saturday) diff --git a/docs/data/date-pickers/shortcuts/DisabledDatesShortcuts.tsx b/docs/data/date-pickers/shortcuts/DisabledDatesShortcuts.tsx index 660a4bc37e20..e6224b559851 100644 --- a/docs/data/date-pickers/shortcuts/DisabledDatesShortcuts.tsx +++ b/docs/data/date-pickers/shortcuts/DisabledDatesShortcuts.tsx @@ -10,7 +10,8 @@ const getMonthWeekday = ( weekdayIndex: number, dayRank: number, ) => { - // Helper to find for example the 3rd monday in Jun + // Helper to find the nth weekday in a given month. + // For example, Find the 3rd Monday in January. const today = dayjs(); const firstDayOfMonth = today.month(monthIndex).startOf('month'); const weekDay = firstDayOfMonth.day(); // 0 (Sunday) to 6 (Saturday) diff --git a/docs/data/date-pickers/time-range-field/time-range-field.md b/docs/data/date-pickers/time-range-field/time-range-field.md index 87921fe9ef2c..2ca2beb1a165 100644 --- a/docs/data/date-pickers/time-range-field/time-range-field.md +++ b/docs/data/date-pickers/time-range-field/time-range-field.md @@ -8,7 +8,7 @@ packageName: '@mui/x-date-pickers-pro' # Time Range Field [](/x/introduction/licensing/#pro-plan 'Pro plan') -

The Time Range Field let the user select a range of time with the keyboard.

+

The Time Range Field lets the user select a range of time with the keyboard.

## Basic usage diff --git a/docs/data/date-pickers/time-range-picker/time-range-picker.md b/docs/data/date-pickers/time-range-picker/time-range-picker.md index 87a3929b566f..cc962ee37e99 100644 --- a/docs/data/date-pickers/time-range-picker/time-range-picker.md +++ b/docs/data/date-pickers/time-range-picker/time-range-picker.md @@ -8,7 +8,7 @@ materialDesign: https://m2.material.io/components/date-pickers # Time Range Picker [](/x/introduction/licensing/#pro-plan 'Pro plan')🚧 -

The Time Range Picker let the user select a range of time.

+

The Time Range Picker lets the user select a range of time.

:::warning This feature isn't implemented yet. It's coming. diff --git a/docs/data/date-pickers/validation/validation.md b/docs/data/date-pickers/validation/validation.md index 1d16bec6a620..992461f58c09 100644 --- a/docs/data/date-pickers/validation/validation.md +++ b/docs/data/date-pickers/validation/validation.md @@ -201,7 +201,7 @@ The `maxDateTime` prop prevents the selection of all values after `props.maxDate :::warning If you want to put time boundaries independent of the date—use the [`time boundaries`](#set-time-boundaries) instead. -For now, you can not use `maxDateTime` and `maxTime` together. +For now, you cannot use `maxDateTime` and `maxTime` together. `maxDateTime` will override the `maxTime` behavior—Same for `minDateTime`/`minTime` ```tsx diff --git a/docs/data/introduction/licensing/licensing.md b/docs/data/introduction/licensing/licensing.md index 72d9f0bc7109..aa6b0463b141 100644 --- a/docs/data/introduction/licensing/licensing.md +++ b/docs/data/introduction/licensing/licensing.md @@ -304,7 +304,7 @@ Or if you didn\'t intend to use Premium features, you can replace the import of This error indicates that your MUI X license key format isn't valid. It could be because the license key is missing a character or has a typo. -To solve the issue, you need to double check that `setLicenseKey()` is called with the right argument. +To solve the issue, you need to double-check that `setLicenseKey()` is called with the right argument. Please check the [license key installation](#license-key-installation). ### 6. Invalid license key (`TypeError: extracting license expiry timestamp`) diff --git a/docs/translations/api-docs/date-pickers/date-calendar.json b/docs/translations/api-docs/date-pickers/date-calendar.json index bc905e0fd10e..ca13c8586f6e 100644 --- a/docs/translations/api-docs/date-pickers/date-calendar.json +++ b/docs/translations/api-docs/date-pickers/date-calendar.json @@ -180,7 +180,7 @@ "typeDescriptions": {} }, "timezone": { - "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documention for more details.", + "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documentation for more details.", "deprecated": "", "typeDescriptions": {} }, diff --git a/docs/translations/api-docs/date-pickers/date-field.json b/docs/translations/api-docs/date-pickers/date-field.json index b12cd7be0bb8..58eb1b385326 100644 --- a/docs/translations/api-docs/date-pickers/date-field.json +++ b/docs/translations/api-docs/date-pickers/date-field.json @@ -213,7 +213,7 @@ "typeDescriptions": {} }, "timezone": { - "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documention for more details.", + "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documentation for more details.", "deprecated": "", "typeDescriptions": {} }, diff --git a/docs/translations/api-docs/date-pickers/date-picker.json b/docs/translations/api-docs/date-pickers/date-picker.json index d099822bbc29..4a8064d5fbca 100644 --- a/docs/translations/api-docs/date-pickers/date-picker.json +++ b/docs/translations/api-docs/date-pickers/date-picker.json @@ -246,7 +246,7 @@ "typeDescriptions": {} }, "timezone": { - "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documention for more details.", + "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documentation for more details.", "deprecated": "", "typeDescriptions": {} }, diff --git a/docs/translations/api-docs/date-pickers/date-range-calendar.json b/docs/translations/api-docs/date-pickers/date-range-calendar.json index 4407fdc7c62e..4998657c7330 100644 --- a/docs/translations/api-docs/date-pickers/date-range-calendar.json +++ b/docs/translations/api-docs/date-pickers/date-range-calendar.json @@ -167,7 +167,7 @@ "typeDescriptions": {} }, "timezone": { - "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documention for more details.", + "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documentation for more details.", "deprecated": "", "typeDescriptions": {} }, diff --git a/docs/translations/api-docs/date-pickers/date-range-picker.json b/docs/translations/api-docs/date-pickers/date-range-picker.json index facb6000a2e8..945f05b212cc 100644 --- a/docs/translations/api-docs/date-pickers/date-range-picker.json +++ b/docs/translations/api-docs/date-pickers/date-range-picker.json @@ -245,7 +245,7 @@ "typeDescriptions": {} }, "timezone": { - "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documention for more details.", + "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documentation for more details.", "deprecated": "", "typeDescriptions": {} }, diff --git a/docs/translations/api-docs/date-pickers/date-time-field.json b/docs/translations/api-docs/date-pickers/date-time-field.json index 40b7c7760f99..8f0b333aade5 100644 --- a/docs/translations/api-docs/date-pickers/date-time-field.json +++ b/docs/translations/api-docs/date-pickers/date-time-field.json @@ -257,7 +257,7 @@ "typeDescriptions": {} }, "timezone": { - "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documention for more details.", + "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documentation for more details.", "deprecated": "", "typeDescriptions": {} }, diff --git a/docs/translations/api-docs/date-pickers/date-time-picker.json b/docs/translations/api-docs/date-pickers/date-time-picker.json index 7b644b659604..07cbd83287b0 100644 --- a/docs/translations/api-docs/date-pickers/date-time-picker.json +++ b/docs/translations/api-docs/date-pickers/date-time-picker.json @@ -310,7 +310,7 @@ "typeDescriptions": {} }, "timezone": { - "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documention for more details.", + "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documentation for more details.", "deprecated": "", "typeDescriptions": {} }, diff --git a/docs/translations/api-docs/date-pickers/desktop-date-picker.json b/docs/translations/api-docs/date-pickers/desktop-date-picker.json index a9466f46a9e4..d4ae92cd691a 100644 --- a/docs/translations/api-docs/date-pickers/desktop-date-picker.json +++ b/docs/translations/api-docs/date-pickers/desktop-date-picker.json @@ -241,7 +241,7 @@ "typeDescriptions": {} }, "timezone": { - "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documention for more details.", + "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documentation for more details.", "deprecated": "", "typeDescriptions": {} }, diff --git a/docs/translations/api-docs/date-pickers/desktop-date-range-picker.json b/docs/translations/api-docs/date-pickers/desktop-date-range-picker.json index c440dd04eafb..4b3c148d07e6 100644 --- a/docs/translations/api-docs/date-pickers/desktop-date-range-picker.json +++ b/docs/translations/api-docs/date-pickers/desktop-date-range-picker.json @@ -240,7 +240,7 @@ "typeDescriptions": {} }, "timezone": { - "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documention for more details.", + "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documentation for more details.", "deprecated": "", "typeDescriptions": {} }, diff --git a/docs/translations/api-docs/date-pickers/desktop-date-time-picker.json b/docs/translations/api-docs/date-pickers/desktop-date-time-picker.json index 42f5cd687846..50e1e0c9b11e 100644 --- a/docs/translations/api-docs/date-pickers/desktop-date-time-picker.json +++ b/docs/translations/api-docs/date-pickers/desktop-date-time-picker.json @@ -305,7 +305,7 @@ "typeDescriptions": {} }, "timezone": { - "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documention for more details.", + "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documentation for more details.", "deprecated": "", "typeDescriptions": {} }, diff --git a/docs/translations/api-docs/date-pickers/desktop-time-picker.json b/docs/translations/api-docs/date-pickers/desktop-time-picker.json index aac56b569859..95cbe686eb01 100644 --- a/docs/translations/api-docs/date-pickers/desktop-time-picker.json +++ b/docs/translations/api-docs/date-pickers/desktop-time-picker.json @@ -203,7 +203,7 @@ "typeDescriptions": {} }, "timezone": { - "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documention for more details.", + "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documentation for more details.", "deprecated": "", "typeDescriptions": {} }, diff --git a/docs/translations/api-docs/date-pickers/digital-clock.json b/docs/translations/api-docs/date-pickers/digital-clock.json index 5509b43523a9..6781888fcea3 100644 --- a/docs/translations/api-docs/date-pickers/digital-clock.json +++ b/docs/translations/api-docs/date-pickers/digital-clock.json @@ -133,7 +133,7 @@ "typeDescriptions": {} }, "timezone": { - "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documention for more details.", + "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documentation for more details.", "deprecated": "", "typeDescriptions": {} }, diff --git a/docs/translations/api-docs/date-pickers/mobile-date-picker.json b/docs/translations/api-docs/date-pickers/mobile-date-picker.json index 2153cb5daa0f..f88d3c5f5f9f 100644 --- a/docs/translations/api-docs/date-pickers/mobile-date-picker.json +++ b/docs/translations/api-docs/date-pickers/mobile-date-picker.json @@ -241,7 +241,7 @@ "typeDescriptions": {} }, "timezone": { - "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documention for more details.", + "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documentation for more details.", "deprecated": "", "typeDescriptions": {} }, diff --git a/docs/translations/api-docs/date-pickers/mobile-date-range-picker.json b/docs/translations/api-docs/date-pickers/mobile-date-range-picker.json index dddaa275f7fa..30b27241c2b4 100644 --- a/docs/translations/api-docs/date-pickers/mobile-date-range-picker.json +++ b/docs/translations/api-docs/date-pickers/mobile-date-range-picker.json @@ -240,7 +240,7 @@ "typeDescriptions": {} }, "timezone": { - "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documention for more details.", + "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documentation for more details.", "deprecated": "", "typeDescriptions": {} }, diff --git a/docs/translations/api-docs/date-pickers/mobile-date-time-picker.json b/docs/translations/api-docs/date-pickers/mobile-date-time-picker.json index d793e6ea4095..ef9de80a9513 100644 --- a/docs/translations/api-docs/date-pickers/mobile-date-time-picker.json +++ b/docs/translations/api-docs/date-pickers/mobile-date-time-picker.json @@ -290,7 +290,7 @@ "typeDescriptions": {} }, "timezone": { - "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documention for more details.", + "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documentation for more details.", "deprecated": "", "typeDescriptions": {} }, diff --git a/docs/translations/api-docs/date-pickers/mobile-time-picker.json b/docs/translations/api-docs/date-pickers/mobile-time-picker.json index 3e5f1af8b2b9..41dfea5fc128 100644 --- a/docs/translations/api-docs/date-pickers/mobile-time-picker.json +++ b/docs/translations/api-docs/date-pickers/mobile-time-picker.json @@ -188,7 +188,7 @@ "typeDescriptions": {} }, "timezone": { - "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documention for more details.", + "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documentation for more details.", "deprecated": "", "typeDescriptions": {} }, diff --git a/docs/translations/api-docs/date-pickers/month-calendar.json b/docs/translations/api-docs/date-pickers/month-calendar.json index ffe71fe0dbb5..2d49c649c231 100644 --- a/docs/translations/api-docs/date-pickers/month-calendar.json +++ b/docs/translations/api-docs/date-pickers/month-calendar.json @@ -80,7 +80,7 @@ "typeDescriptions": {} }, "timezone": { - "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documention for more details.", + "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documentation for more details.", "deprecated": "", "typeDescriptions": {} }, diff --git a/docs/translations/api-docs/date-pickers/multi-input-date-range-field.json b/docs/translations/api-docs/date-pickers/multi-input-date-range-field.json index 616108b1bce1..37995f6b1525 100644 --- a/docs/translations/api-docs/date-pickers/multi-input-date-range-field.json +++ b/docs/translations/api-docs/date-pickers/multi-input-date-range-field.json @@ -127,7 +127,7 @@ "typeDescriptions": {} }, "timezone": { - "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documention for more details.", + "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documentation for more details.", "deprecated": "", "typeDescriptions": {} }, diff --git a/docs/translations/api-docs/date-pickers/multi-input-date-time-range-field.json b/docs/translations/api-docs/date-pickers/multi-input-date-time-range-field.json index 8b3ff75bcd73..793132385320 100644 --- a/docs/translations/api-docs/date-pickers/multi-input-date-time-range-field.json +++ b/docs/translations/api-docs/date-pickers/multi-input-date-time-range-field.json @@ -171,7 +171,7 @@ "typeDescriptions": {} }, "timezone": { - "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documention for more details.", + "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documentation for more details.", "deprecated": "", "typeDescriptions": {} }, diff --git a/docs/translations/api-docs/date-pickers/multi-input-time-range-field.json b/docs/translations/api-docs/date-pickers/multi-input-time-range-field.json index f2d6e232fa4d..5c0aaa28cf50 100644 --- a/docs/translations/api-docs/date-pickers/multi-input-time-range-field.json +++ b/docs/translations/api-docs/date-pickers/multi-input-time-range-field.json @@ -138,7 +138,7 @@ "typeDescriptions": {} }, "timezone": { - "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documention for more details.", + "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documentation for more details.", "deprecated": "", "typeDescriptions": {} }, diff --git a/docs/translations/api-docs/date-pickers/multi-section-digital-clock.json b/docs/translations/api-docs/date-pickers/multi-section-digital-clock.json index a5e1a6f56d42..167e46b62c96 100644 --- a/docs/translations/api-docs/date-pickers/multi-section-digital-clock.json +++ b/docs/translations/api-docs/date-pickers/multi-section-digital-clock.json @@ -133,7 +133,7 @@ "typeDescriptions": {} }, "timezone": { - "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documention for more details.", + "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documentation for more details.", "deprecated": "", "typeDescriptions": {} }, diff --git a/docs/translations/api-docs/date-pickers/single-input-date-range-field.json b/docs/translations/api-docs/date-pickers/single-input-date-range-field.json index 540fc9eedced..3b65267aa68c 100644 --- a/docs/translations/api-docs/date-pickers/single-input-date-range-field.json +++ b/docs/translations/api-docs/date-pickers/single-input-date-range-field.json @@ -198,7 +198,7 @@ "typeDescriptions": {} }, "timezone": { - "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documention for more details.", + "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documentation for more details.", "deprecated": "", "typeDescriptions": {} }, diff --git a/docs/translations/api-docs/date-pickers/single-input-date-time-range-field.json b/docs/translations/api-docs/date-pickers/single-input-date-time-range-field.json index 7a3145225574..9be01725e2ef 100644 --- a/docs/translations/api-docs/date-pickers/single-input-date-time-range-field.json +++ b/docs/translations/api-docs/date-pickers/single-input-date-time-range-field.json @@ -242,7 +242,7 @@ "typeDescriptions": {} }, "timezone": { - "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documention for more details.", + "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documentation for more details.", "deprecated": "", "typeDescriptions": {} }, diff --git a/docs/translations/api-docs/date-pickers/single-input-time-range-field.json b/docs/translations/api-docs/date-pickers/single-input-time-range-field.json index 495f98411f14..d657b0d22ef6 100644 --- a/docs/translations/api-docs/date-pickers/single-input-time-range-field.json +++ b/docs/translations/api-docs/date-pickers/single-input-time-range-field.json @@ -213,7 +213,7 @@ "typeDescriptions": {} }, "timezone": { - "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documention for more details.", + "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documentation for more details.", "deprecated": "", "typeDescriptions": {} }, diff --git a/docs/translations/api-docs/date-pickers/static-date-picker.json b/docs/translations/api-docs/date-pickers/static-date-picker.json index f3348c23bcb4..70fbbfb3b025 100644 --- a/docs/translations/api-docs/date-pickers/static-date-picker.json +++ b/docs/translations/api-docs/date-pickers/static-date-picker.json @@ -200,7 +200,7 @@ "typeDescriptions": {} }, "timezone": { - "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documention for more details.", + "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documentation for more details.", "deprecated": "", "typeDescriptions": {} }, diff --git a/docs/translations/api-docs/date-pickers/static-date-range-picker.json b/docs/translations/api-docs/date-pickers/static-date-range-picker.json index 13293b8901a8..1c1bd82d93ad 100644 --- a/docs/translations/api-docs/date-pickers/static-date-range-picker.json +++ b/docs/translations/api-docs/date-pickers/static-date-range-picker.json @@ -195,7 +195,7 @@ "typeDescriptions": {} }, "timezone": { - "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documention for more details.", + "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documentation for more details.", "deprecated": "", "typeDescriptions": {} }, diff --git a/docs/translations/api-docs/date-pickers/static-date-time-picker.json b/docs/translations/api-docs/date-pickers/static-date-time-picker.json index a30d17ffb776..a20faff3cb00 100644 --- a/docs/translations/api-docs/date-pickers/static-date-time-picker.json +++ b/docs/translations/api-docs/date-pickers/static-date-time-picker.json @@ -249,7 +249,7 @@ "typeDescriptions": {} }, "timezone": { - "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documention for more details.", + "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documentation for more details.", "deprecated": "", "typeDescriptions": {} }, diff --git a/docs/translations/api-docs/date-pickers/static-time-picker.json b/docs/translations/api-docs/date-pickers/static-time-picker.json index 453fecb3e80f..4e5ad1159f1b 100644 --- a/docs/translations/api-docs/date-pickers/static-time-picker.json +++ b/docs/translations/api-docs/date-pickers/static-time-picker.json @@ -147,7 +147,7 @@ "typeDescriptions": {} }, "timezone": { - "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documention for more details.", + "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documentation for more details.", "deprecated": "", "typeDescriptions": {} }, diff --git a/docs/translations/api-docs/date-pickers/time-clock.json b/docs/translations/api-docs/date-pickers/time-clock.json index 315565655777..3eda1979a48e 100644 --- a/docs/translations/api-docs/date-pickers/time-clock.json +++ b/docs/translations/api-docs/date-pickers/time-clock.json @@ -128,7 +128,7 @@ "typeDescriptions": {} }, "timezone": { - "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documention for more details.", + "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documentation for more details.", "deprecated": "", "typeDescriptions": {} }, diff --git a/docs/translations/api-docs/date-pickers/time-field.json b/docs/translations/api-docs/date-pickers/time-field.json index 495f98411f14..d657b0d22ef6 100644 --- a/docs/translations/api-docs/date-pickers/time-field.json +++ b/docs/translations/api-docs/date-pickers/time-field.json @@ -213,7 +213,7 @@ "typeDescriptions": {} }, "timezone": { - "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documention for more details.", + "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documentation for more details.", "deprecated": "", "typeDescriptions": {} }, diff --git a/docs/translations/api-docs/date-pickers/time-picker.json b/docs/translations/api-docs/date-pickers/time-picker.json index d3b3b833b77f..79c5933ea371 100644 --- a/docs/translations/api-docs/date-pickers/time-picker.json +++ b/docs/translations/api-docs/date-pickers/time-picker.json @@ -208,7 +208,7 @@ "typeDescriptions": {} }, "timezone": { - "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documention for more details.", + "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documentation for more details.", "deprecated": "", "typeDescriptions": {} }, diff --git a/docs/translations/api-docs/date-pickers/year-calendar.json b/docs/translations/api-docs/date-pickers/year-calendar.json index 36d86c35d4d0..ae7f4c87fda8 100644 --- a/docs/translations/api-docs/date-pickers/year-calendar.json +++ b/docs/translations/api-docs/date-pickers/year-calendar.json @@ -75,7 +75,7 @@ "typeDescriptions": {} }, "timezone": { - "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documention for more details.", + "description": "Choose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documentation for more details.", "deprecated": "", "typeDescriptions": {} }, diff --git a/packages/x-date-pickers-pro/src/DateRangeCalendar/DateRangeCalendar.tsx b/packages/x-date-pickers-pro/src/DateRangeCalendar/DateRangeCalendar.tsx index 4d1620b41aee..3a7cd84458fc 100644 --- a/packages/x-date-pickers-pro/src/DateRangeCalendar/DateRangeCalendar.tsx +++ b/packages/x-date-pickers-pro/src/DateRangeCalendar/DateRangeCalendar.tsx @@ -799,7 +799,7 @@ DateRangeCalendar.propTypes = { * Choose which timezone to use for the value. * Example: "default", "system", "UTC", "America/New_York". * If you pass values from other timezones to some props, they will be converted to this timezone before being used. - * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details. + * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details. * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise. */ timezone: PropTypes.string, diff --git a/packages/x-date-pickers-pro/src/DateRangePicker/DateRangePicker.tsx b/packages/x-date-pickers-pro/src/DateRangePicker/DateRangePicker.tsx index 9dc7bf8b0f49..36205764c533 100644 --- a/packages/x-date-pickers-pro/src/DateRangePicker/DateRangePicker.tsx +++ b/packages/x-date-pickers-pro/src/DateRangePicker/DateRangePicker.tsx @@ -331,7 +331,7 @@ DateRangePicker.propTypes = { * Choose which timezone to use for the value. * Example: "default", "system", "UTC", "America/New_York". * If you pass values from other timezones to some props, they will be converted to this timezone before being used. - * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details. + * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details. * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise. */ timezone: PropTypes.string, diff --git a/packages/x-date-pickers-pro/src/DesktopDateRangePicker/DesktopDateRangePicker.tsx b/packages/x-date-pickers-pro/src/DesktopDateRangePicker/DesktopDateRangePicker.tsx index a95370d19e25..e528e5e4e35f 100644 --- a/packages/x-date-pickers-pro/src/DesktopDateRangePicker/DesktopDateRangePicker.tsx +++ b/packages/x-date-pickers-pro/src/DesktopDateRangePicker/DesktopDateRangePicker.tsx @@ -361,7 +361,7 @@ DesktopDateRangePicker.propTypes = { * Choose which timezone to use for the value. * Example: "default", "system", "UTC", "America/New_York". * If you pass values from other timezones to some props, they will be converted to this timezone before being used. - * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details. + * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details. * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise. */ timezone: PropTypes.string, diff --git a/packages/x-date-pickers-pro/src/MobileDateRangePicker/MobileDateRangePicker.tsx b/packages/x-date-pickers-pro/src/MobileDateRangePicker/MobileDateRangePicker.tsx index 32d5f3c961b6..39677cd85238 100644 --- a/packages/x-date-pickers-pro/src/MobileDateRangePicker/MobileDateRangePicker.tsx +++ b/packages/x-date-pickers-pro/src/MobileDateRangePicker/MobileDateRangePicker.tsx @@ -361,7 +361,7 @@ MobileDateRangePicker.propTypes = { * Choose which timezone to use for the value. * Example: "default", "system", "UTC", "America/New_York". * If you pass values from other timezones to some props, they will be converted to this timezone before being used. - * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details. + * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details. * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise. */ timezone: PropTypes.string, diff --git a/packages/x-date-pickers-pro/src/MultiInputDateRangeField/MultiInputDateRangeField.tsx b/packages/x-date-pickers-pro/src/MultiInputDateRangeField/MultiInputDateRangeField.tsx index a15d45baaf59..c45ea6bf0a38 100644 --- a/packages/x-date-pickers-pro/src/MultiInputDateRangeField/MultiInputDateRangeField.tsx +++ b/packages/x-date-pickers-pro/src/MultiInputDateRangeField/MultiInputDateRangeField.tsx @@ -380,7 +380,7 @@ MultiInputDateRangeField.propTypes = { * Choose which timezone to use for the value. * Example: "default", "system", "UTC", "America/New_York". * If you pass values from other timezones to some props, they will be converted to this timezone before being used. - * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details. + * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details. * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise. */ timezone: PropTypes.string, diff --git a/packages/x-date-pickers-pro/src/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.tsx b/packages/x-date-pickers-pro/src/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.tsx index 898268d73949..2fc0ef80b653 100644 --- a/packages/x-date-pickers-pro/src/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.tsx +++ b/packages/x-date-pickers-pro/src/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.tsx @@ -419,7 +419,7 @@ MultiInputDateTimeRangeField.propTypes = { * Choose which timezone to use for the value. * Example: "default", "system", "UTC", "America/New_York". * If you pass values from other timezones to some props, they will be converted to this timezone before being used. - * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details. + * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details. * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise. */ timezone: PropTypes.string, diff --git a/packages/x-date-pickers-pro/src/MultiInputTimeRangeField/MultiInputTimeRangeField.tsx b/packages/x-date-pickers-pro/src/MultiInputTimeRangeField/MultiInputTimeRangeField.tsx index e3119b09c579..82f822c057d5 100644 --- a/packages/x-date-pickers-pro/src/MultiInputTimeRangeField/MultiInputTimeRangeField.tsx +++ b/packages/x-date-pickers-pro/src/MultiInputTimeRangeField/MultiInputTimeRangeField.tsx @@ -395,7 +395,7 @@ MultiInputTimeRangeField.propTypes = { * Choose which timezone to use for the value. * Example: "default", "system", "UTC", "America/New_York". * If you pass values from other timezones to some props, they will be converted to this timezone before being used. - * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details. + * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details. * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise. */ timezone: PropTypes.string, diff --git a/packages/x-date-pickers-pro/src/SingleInputDateRangeField/SingleInputDateRangeField.tsx b/packages/x-date-pickers-pro/src/SingleInputDateRangeField/SingleInputDateRangeField.tsx index 642835ac3ba0..2d99e9bb941f 100644 --- a/packages/x-date-pickers-pro/src/SingleInputDateRangeField/SingleInputDateRangeField.tsx +++ b/packages/x-date-pickers-pro/src/SingleInputDateRangeField/SingleInputDateRangeField.tsx @@ -339,7 +339,7 @@ SingleInputDateRangeField.propTypes = { * Choose which timezone to use for the value. * Example: "default", "system", "UTC", "America/New_York". * If you pass values from other timezones to some props, they will be converted to this timezone before being used. - * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details. + * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details. * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise. */ timezone: PropTypes.string, diff --git a/packages/x-date-pickers-pro/src/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.tsx b/packages/x-date-pickers-pro/src/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.tsx index 7f593030672e..b11b9d3f7658 100644 --- a/packages/x-date-pickers-pro/src/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.tsx +++ b/packages/x-date-pickers-pro/src/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.tsx @@ -381,7 +381,7 @@ SingleInputDateTimeRangeField.propTypes = { * Choose which timezone to use for the value. * Example: "default", "system", "UTC", "America/New_York". * If you pass values from other timezones to some props, they will be converted to this timezone before being used. - * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details. + * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details. * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise. */ timezone: PropTypes.string, diff --git a/packages/x-date-pickers-pro/src/SingleInputTimeRangeField/SingleInputTimeRangeField.tsx b/packages/x-date-pickers-pro/src/SingleInputTimeRangeField/SingleInputTimeRangeField.tsx index 9be336fb8985..2cfd689d734b 100644 --- a/packages/x-date-pickers-pro/src/SingleInputTimeRangeField/SingleInputTimeRangeField.tsx +++ b/packages/x-date-pickers-pro/src/SingleInputTimeRangeField/SingleInputTimeRangeField.tsx @@ -353,7 +353,7 @@ SingleInputTimeRangeField.propTypes = { * Choose which timezone to use for the value. * Example: "default", "system", "UTC", "America/New_York". * If you pass values from other timezones to some props, they will be converted to this timezone before being used. - * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details. + * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details. * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise. */ timezone: PropTypes.string, diff --git a/packages/x-date-pickers-pro/src/StaticDateRangePicker/StaticDateRangePicker.tsx b/packages/x-date-pickers-pro/src/StaticDateRangePicker/StaticDateRangePicker.tsx index 500e8c656f3a..de70ab43c1f4 100644 --- a/packages/x-date-pickers-pro/src/StaticDateRangePicker/StaticDateRangePicker.tsx +++ b/packages/x-date-pickers-pro/src/StaticDateRangePicker/StaticDateRangePicker.tsx @@ -286,7 +286,7 @@ StaticDateRangePicker.propTypes = { * Choose which timezone to use for the value. * Example: "default", "system", "UTC", "America/New_York". * If you pass values from other timezones to some props, they will be converted to this timezone before being used. - * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details. + * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details. * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise. */ timezone: PropTypes.string, diff --git a/packages/x-date-pickers/src/DateCalendar/DateCalendar.tsx b/packages/x-date-pickers/src/DateCalendar/DateCalendar.tsx index a6dff187198b..a220dc7df329 100644 --- a/packages/x-date-pickers/src/DateCalendar/DateCalendar.tsx +++ b/packages/x-date-pickers/src/DateCalendar/DateCalendar.tsx @@ -600,7 +600,7 @@ DateCalendar.propTypes = { * Choose which timezone to use for the value. * Example: "default", "system", "UTC", "America/New_York". * If you pass values from other timezones to some props, they will be converted to this timezone before being used. - * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details. + * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details. * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise. */ timezone: PropTypes.string, diff --git a/packages/x-date-pickers/src/DateField/DateField.tsx b/packages/x-date-pickers/src/DateField/DateField.tsx index 5144dd840083..24d5d1fc7a1c 100644 --- a/packages/x-date-pickers/src/DateField/DateField.tsx +++ b/packages/x-date-pickers/src/DateField/DateField.tsx @@ -352,7 +352,7 @@ DateField.propTypes = { * Choose which timezone to use for the value. * Example: "default", "system", "UTC", "America/New_York". * If you pass values from other timezones to some props, they will be converted to this timezone before being used. - * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details. + * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details. * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise. */ timezone: PropTypes.string, diff --git a/packages/x-date-pickers/src/DatePicker/DatePicker.tsx b/packages/x-date-pickers/src/DatePicker/DatePicker.tsx index 7f37be406005..1995c1ea4c57 100644 --- a/packages/x-date-pickers/src/DatePicker/DatePicker.tsx +++ b/packages/x-date-pickers/src/DatePicker/DatePicker.tsx @@ -334,7 +334,7 @@ DatePicker.propTypes = { * Choose which timezone to use for the value. * Example: "default", "system", "UTC", "America/New_York". * If you pass values from other timezones to some props, they will be converted to this timezone before being used. - * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details. + * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details. * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise. */ timezone: PropTypes.string, diff --git a/packages/x-date-pickers/src/DateTimeField/DateTimeField.tsx b/packages/x-date-pickers/src/DateTimeField/DateTimeField.tsx index f884a55dfc68..8e289c4b20d4 100644 --- a/packages/x-date-pickers/src/DateTimeField/DateTimeField.tsx +++ b/packages/x-date-pickers/src/DateTimeField/DateTimeField.tsx @@ -391,7 +391,7 @@ DateTimeField.propTypes = { * Choose which timezone to use for the value. * Example: "default", "system", "UTC", "America/New_York". * If you pass values from other timezones to some props, they will be converted to this timezone before being used. - * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details. + * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details. * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise. */ timezone: PropTypes.string, diff --git a/packages/x-date-pickers/src/DateTimePicker/DateTimePicker.tsx b/packages/x-date-pickers/src/DateTimePicker/DateTimePicker.tsx index d5242a11e41a..bd1198d5feb4 100644 --- a/packages/x-date-pickers/src/DateTimePicker/DateTimePicker.tsx +++ b/packages/x-date-pickers/src/DateTimePicker/DateTimePicker.tsx @@ -401,7 +401,7 @@ DateTimePicker.propTypes = { * Choose which timezone to use for the value. * Example: "default", "system", "UTC", "America/New_York". * If you pass values from other timezones to some props, they will be converted to this timezone before being used. - * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details. + * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details. * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise. */ timezone: PropTypes.string, diff --git a/packages/x-date-pickers/src/DesktopDatePicker/DesktopDatePicker.tsx b/packages/x-date-pickers/src/DesktopDatePicker/DesktopDatePicker.tsx index b9e0d458b41c..ce39affebdac 100644 --- a/packages/x-date-pickers/src/DesktopDatePicker/DesktopDatePicker.tsx +++ b/packages/x-date-pickers/src/DesktopDatePicker/DesktopDatePicker.tsx @@ -374,7 +374,7 @@ DesktopDatePicker.propTypes = { * Choose which timezone to use for the value. * Example: "default", "system", "UTC", "America/New_York". * If you pass values from other timezones to some props, they will be converted to this timezone before being used. - * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details. + * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details. * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise. */ timezone: PropTypes.string, diff --git a/packages/x-date-pickers/src/DesktopDateTimePicker/DesktopDateTimePicker.tsx b/packages/x-date-pickers/src/DesktopDateTimePicker/DesktopDateTimePicker.tsx index c14e292c3d1e..843075195ae3 100644 --- a/packages/x-date-pickers/src/DesktopDateTimePicker/DesktopDateTimePicker.tsx +++ b/packages/x-date-pickers/src/DesktopDateTimePicker/DesktopDateTimePicker.tsx @@ -491,7 +491,7 @@ DesktopDateTimePicker.propTypes = { * Choose which timezone to use for the value. * Example: "default", "system", "UTC", "America/New_York". * If you pass values from other timezones to some props, they will be converted to this timezone before being used. - * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details. + * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details. * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise. */ timezone: PropTypes.string, diff --git a/packages/x-date-pickers/src/DesktopTimePicker/DesktopTimePicker.tsx b/packages/x-date-pickers/src/DesktopTimePicker/DesktopTimePicker.tsx index c8e82c44c935..99cf6e4d11d5 100644 --- a/packages/x-date-pickers/src/DesktopTimePicker/DesktopTimePicker.tsx +++ b/packages/x-date-pickers/src/DesktopTimePicker/DesktopTimePicker.tsx @@ -374,7 +374,7 @@ DesktopTimePicker.propTypes = { * Choose which timezone to use for the value. * Example: "default", "system", "UTC", "America/New_York". * If you pass values from other timezones to some props, they will be converted to this timezone before being used. - * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details. + * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details. * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise. */ timezone: PropTypes.string, diff --git a/packages/x-date-pickers/src/DigitalClock/DigitalClock.tsx b/packages/x-date-pickers/src/DigitalClock/DigitalClock.tsx index 55f4762641d8..71cd287abddf 100644 --- a/packages/x-date-pickers/src/DigitalClock/DigitalClock.tsx +++ b/packages/x-date-pickers/src/DigitalClock/DigitalClock.tsx @@ -470,7 +470,7 @@ DigitalClock.propTypes = { * Choose which timezone to use for the value. * Example: "default", "system", "UTC", "America/New_York". * If you pass values from other timezones to some props, they will be converted to this timezone before being used. - * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details. + * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details. * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise. */ timezone: PropTypes.string, diff --git a/packages/x-date-pickers/src/MobileDatePicker/MobileDatePicker.tsx b/packages/x-date-pickers/src/MobileDatePicker/MobileDatePicker.tsx index 9f9ee0965981..5cf6771c5ab7 100644 --- a/packages/x-date-pickers/src/MobileDatePicker/MobileDatePicker.tsx +++ b/packages/x-date-pickers/src/MobileDatePicker/MobileDatePicker.tsx @@ -370,7 +370,7 @@ MobileDatePicker.propTypes = { * Choose which timezone to use for the value. * Example: "default", "system", "UTC", "America/New_York". * If you pass values from other timezones to some props, they will be converted to this timezone before being used. - * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details. + * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details. * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise. */ timezone: PropTypes.string, diff --git a/packages/x-date-pickers/src/MobileDatePicker/tests/MobileDatePicker.test.tsx b/packages/x-date-pickers/src/MobileDatePicker/tests/MobileDatePicker.test.tsx index ed28deaf56f7..35b14a0b7439 100644 --- a/packages/x-date-pickers/src/MobileDatePicker/tests/MobileDatePicker.test.tsx +++ b/packages/x-date-pickers/src/MobileDatePicker/tests/MobileDatePicker.test.tsx @@ -145,13 +145,13 @@ describe('', () => { it('should call `onAccept` even if controlled', () => { const onAccept = spy(); - function ControledMobileDatePicker(props) { + function ControlledMobileDatePicker(props) { const [value, setValue] = React.useState(null); return ; } - render(); + render(); userEvent.mousePress(screen.getByRole('textbox')); diff --git a/packages/x-date-pickers/src/MobileDateTimePicker/MobileDateTimePicker.tsx b/packages/x-date-pickers/src/MobileDateTimePicker/MobileDateTimePicker.tsx index 5917fbed132d..80779fc63e00 100644 --- a/packages/x-date-pickers/src/MobileDateTimePicker/MobileDateTimePicker.tsx +++ b/packages/x-date-pickers/src/MobileDateTimePicker/MobileDateTimePicker.tsx @@ -430,7 +430,7 @@ MobileDateTimePicker.propTypes = { * Choose which timezone to use for the value. * Example: "default", "system", "UTC", "America/New_York". * If you pass values from other timezones to some props, they will be converted to this timezone before being used. - * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details. + * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details. * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise. */ timezone: PropTypes.string, diff --git a/packages/x-date-pickers/src/MobileTimePicker/MobileTimePicker.tsx b/packages/x-date-pickers/src/MobileTimePicker/MobileTimePicker.tsx index e6e0353e8ef4..57446f7bb817 100644 --- a/packages/x-date-pickers/src/MobileTimePicker/MobileTimePicker.tsx +++ b/packages/x-date-pickers/src/MobileTimePicker/MobileTimePicker.tsx @@ -316,7 +316,7 @@ MobileTimePicker.propTypes = { * Choose which timezone to use for the value. * Example: "default", "system", "UTC", "America/New_York". * If you pass values from other timezones to some props, they will be converted to this timezone before being used. - * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details. + * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details. * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise. */ timezone: PropTypes.string, diff --git a/packages/x-date-pickers/src/MonthCalendar/MonthCalendar.tsx b/packages/x-date-pickers/src/MonthCalendar/MonthCalendar.tsx index 2ee5130f4226..375d9de7fcf1 100644 --- a/packages/x-date-pickers/src/MonthCalendar/MonthCalendar.tsx +++ b/packages/x-date-pickers/src/MonthCalendar/MonthCalendar.tsx @@ -388,7 +388,7 @@ MonthCalendar.propTypes = { * Choose which timezone to use for the value. * Example: "default", "system", "UTC", "America/New_York". * If you pass values from other timezones to some props, they will be converted to this timezone before being used. - * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details. + * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details. * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise. */ timezone: PropTypes.string, diff --git a/packages/x-date-pickers/src/MultiSectionDigitalClock/MultiSectionDigitalClock.tsx b/packages/x-date-pickers/src/MultiSectionDigitalClock/MultiSectionDigitalClock.tsx index 24af9afc86ae..996ceafafcc1 100644 --- a/packages/x-date-pickers/src/MultiSectionDigitalClock/MultiSectionDigitalClock.tsx +++ b/packages/x-date-pickers/src/MultiSectionDigitalClock/MultiSectionDigitalClock.tsx @@ -565,7 +565,7 @@ MultiSectionDigitalClock.propTypes = { * Choose which timezone to use for the value. * Example: "default", "system", "UTC", "America/New_York". * If you pass values from other timezones to some props, they will be converted to this timezone before being used. - * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details. + * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details. * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise. */ timezone: PropTypes.string, diff --git a/packages/x-date-pickers/src/PickersDay/PickersDay.tsx b/packages/x-date-pickers/src/PickersDay/PickersDay.tsx index 4f33f91c31b5..b226938bc31d 100644 --- a/packages/x-date-pickers/src/PickersDay/PickersDay.tsx +++ b/packages/x-date-pickers/src/PickersDay/PickersDay.tsx @@ -286,7 +286,7 @@ const PickersDayRaw = React.forwardRef(function PickersDay( } }, [autoFocus, disabled, isAnimating, outsideCurrentMonth]); - // For day outside of current month, move focus from mouseDown to mouseUp + // For a day outside the current month, move the focus from mouseDown to mouseUp // Goal: have the onClick ends before sliding to the new month const handleMouseDown = (event: React.MouseEvent) => { onMouseDown(event); diff --git a/packages/x-date-pickers/src/StaticDatePicker/StaticDatePicker.tsx b/packages/x-date-pickers/src/StaticDatePicker/StaticDatePicker.tsx index c94adb20d763..d4d050480429 100644 --- a/packages/x-date-pickers/src/StaticDatePicker/StaticDatePicker.tsx +++ b/packages/x-date-pickers/src/StaticDatePicker/StaticDatePicker.tsx @@ -290,7 +290,7 @@ StaticDatePicker.propTypes = { * Choose which timezone to use for the value. * Example: "default", "system", "UTC", "America/New_York". * If you pass values from other timezones to some props, they will be converted to this timezone before being used. - * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details. + * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details. * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise. */ timezone: PropTypes.string, diff --git a/packages/x-date-pickers/src/StaticDateTimePicker/StaticDateTimePicker.tsx b/packages/x-date-pickers/src/StaticDateTimePicker/StaticDateTimePicker.tsx index 9f51343ace49..fdce48b2f084 100644 --- a/packages/x-date-pickers/src/StaticDateTimePicker/StaticDateTimePicker.tsx +++ b/packages/x-date-pickers/src/StaticDateTimePicker/StaticDateTimePicker.tsx @@ -348,7 +348,7 @@ StaticDateTimePicker.propTypes = { * Choose which timezone to use for the value. * Example: "default", "system", "UTC", "America/New_York". * If you pass values from other timezones to some props, they will be converted to this timezone before being used. - * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details. + * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details. * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise. */ timezone: PropTypes.string, diff --git a/packages/x-date-pickers/src/StaticTimePicker/StaticTimePicker.tsx b/packages/x-date-pickers/src/StaticTimePicker/StaticTimePicker.tsx index 36aa8f10f43c..be14b944084c 100644 --- a/packages/x-date-pickers/src/StaticTimePicker/StaticTimePicker.tsx +++ b/packages/x-date-pickers/src/StaticTimePicker/StaticTimePicker.tsx @@ -233,7 +233,7 @@ StaticTimePicker.propTypes = { * Choose which timezone to use for the value. * Example: "default", "system", "UTC", "America/New_York". * If you pass values from other timezones to some props, they will be converted to this timezone before being used. - * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details. + * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details. * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise. */ timezone: PropTypes.string, diff --git a/packages/x-date-pickers/src/TimeClock/Clock.tsx b/packages/x-date-pickers/src/TimeClock/Clock.tsx index 9535fa995329..b4080f100f6d 100644 --- a/packages/x-date-pickers/src/TimeClock/Clock.tsx +++ b/packages/x-date-pickers/src/TimeClock/Clock.tsx @@ -310,7 +310,7 @@ export function Clock(inProps: ClockProps) { switch (event.key) { case 'Home': - // annulate both hours and minutes + // reset both hours and minutes handleValueChange(0, 'partial'); event.preventDefault(); break; diff --git a/packages/x-date-pickers/src/TimeClock/TimeClock.tsx b/packages/x-date-pickers/src/TimeClock/TimeClock.tsx index 489757efb48f..937d948c76a3 100644 --- a/packages/x-date-pickers/src/TimeClock/TimeClock.tsx +++ b/packages/x-date-pickers/src/TimeClock/TimeClock.tsx @@ -516,7 +516,7 @@ TimeClock.propTypes = { * Choose which timezone to use for the value. * Example: "default", "system", "UTC", "America/New_York". * If you pass values from other timezones to some props, they will be converted to this timezone before being used. - * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details. + * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details. * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise. */ timezone: PropTypes.string, diff --git a/packages/x-date-pickers/src/TimeField/TimeField.tsx b/packages/x-date-pickers/src/TimeField/TimeField.tsx index 37855df35a4e..36ca503f7832 100644 --- a/packages/x-date-pickers/src/TimeField/TimeField.tsx +++ b/packages/x-date-pickers/src/TimeField/TimeField.tsx @@ -350,7 +350,7 @@ TimeField.propTypes = { * Choose which timezone to use for the value. * Example: "default", "system", "UTC", "America/New_York". * If you pass values from other timezones to some props, they will be converted to this timezone before being used. - * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details. + * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details. * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise. */ timezone: PropTypes.string, diff --git a/packages/x-date-pickers/src/TimeField/tests/editing.TimeField.test.tsx b/packages/x-date-pickers/src/TimeField/tests/editing.TimeField.test.tsx index c15548e059ac..c101bf9ba38f 100644 --- a/packages/x-date-pickers/src/TimeField/tests/editing.TimeField.test.tsx +++ b/packages/x-date-pickers/src/TimeField/tests/editing.TimeField.test.tsx @@ -395,7 +395,7 @@ describe(' - Editing', () => { ); describeAdapters('props: minutesStep', TimeField, ({ adapter, testFieldKeyPress }) => { - it('should use `minitesStep` to set initial minutes with ArrowUp', () => { + it('should use `minutesStep` to set initial minutes with ArrowUp', () => { testFieldKeyPress({ format: adapter.formats.minutes, key: 'ArrowUp', @@ -404,7 +404,7 @@ describe(' - Editing', () => { }); }); - it('should use `minitesStep` to set initial minutes with ArrowDown', () => { + it('should use `minutesStep` to set initial minutes with ArrowDown', () => { testFieldKeyPress({ format: adapter.formats.minutes, key: 'ArrowDown', @@ -413,7 +413,7 @@ describe(' - Editing', () => { }); }); - it('should use `minitesStep` to increase minutes', () => { + it('should use `minutesStep` to increase minutes', () => { testFieldKeyPress({ format: adapter.formats.minutes, defaultValue: adapter.date('2022-06-15T14:00:25'), @@ -423,7 +423,7 @@ describe(' - Editing', () => { }); }); - it('should use `minitesStep` to decrease minutes', () => { + it('should use `minutesStep` to decrease minutes', () => { testFieldKeyPress({ format: adapter.formats.minutes, defaultValue: adapter.date('2022-06-15T14:00:25'), diff --git a/packages/x-date-pickers/src/TimePicker/TimePicker.tsx b/packages/x-date-pickers/src/TimePicker/TimePicker.tsx index cddb3597b8e0..064fc92c7727 100644 --- a/packages/x-date-pickers/src/TimePicker/TimePicker.tsx +++ b/packages/x-date-pickers/src/TimePicker/TimePicker.tsx @@ -295,7 +295,7 @@ TimePicker.propTypes = { * Choose which timezone to use for the value. * Example: "default", "system", "UTC", "America/New_York". * If you pass values from other timezones to some props, they will be converted to this timezone before being used. - * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details. + * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details. * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise. */ timezone: PropTypes.string, diff --git a/packages/x-date-pickers/src/YearCalendar/YearCalendar.tsx b/packages/x-date-pickers/src/YearCalendar/YearCalendar.tsx index c71463ced822..f199d599cbfd 100644 --- a/packages/x-date-pickers/src/YearCalendar/YearCalendar.tsx +++ b/packages/x-date-pickers/src/YearCalendar/YearCalendar.tsx @@ -400,7 +400,7 @@ YearCalendar.propTypes = { * Choose which timezone to use for the value. * Example: "default", "system", "UTC", "America/New_York". * If you pass values from other timezones to some props, they will be converted to this timezone before being used. - * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details. + * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details. * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise. */ timezone: PropTypes.string, diff --git a/packages/x-date-pickers/src/internals/hooks/usePicker/usePickerValue.types.ts b/packages/x-date-pickers/src/internals/hooks/usePicker/usePickerValue.types.ts index 90ccbcf383a2..c7e1b7208e46 100644 --- a/packages/x-date-pickers/src/internals/hooks/usePicker/usePickerValue.types.ts +++ b/packages/x-date-pickers/src/internals/hooks/usePicker/usePickerValue.types.ts @@ -162,7 +162,7 @@ export interface UsePickerValueState { * Then we might want to apply some custom logic. * * For example, when the component is not controlled and `defaultValue` is defined. - * Then clicking on "Accept", "Today" or "Clear" should fire `onAccept` with `defaultValue`, but clicking on "Cancel" or dimissing the picker should not. + * Then clicking on "Accept", "Today" or "Clear" should fire `onAccept` with `defaultValue`, but clicking on "Cancel" or dismissing the picker should not. */ hasBeenModifiedSinceMount: boolean; } diff --git a/packages/x-date-pickers/src/internals/hooks/useViews.tsx b/packages/x-date-pickers/src/internals/hooks/useViews.tsx index 6292375a348d..f3428161e32e 100644 --- a/packages/x-date-pickers/src/internals/hooks/useViews.tsx +++ b/packages/x-date-pickers/src/internals/hooks/useViews.tsx @@ -184,7 +184,7 @@ export function useViews({ const isSelectionFinishedOnCurrentView = currentViewSelectionState === 'finish'; const hasMoreViews = selectedView ? // handles case like `DateTimePicker`, where a view might return a `finish` selection state - // but we it's not the final view given all `views` -> overall selection state should be `partial`. + // but when it's not the final view given all `views` -> overall selection state should be `partial`. views.indexOf(selectedView) < views.length - 1 : Boolean(nextView); const globalSelectionState = @@ -214,7 +214,7 @@ export function useViews({ setFocusedView: handleFocusedViewChange, nextView, previousView, - // Always return up to date default view instead of the initial one (i.e. defaultView.current) + // Always return up-to-date default view instead of the initial one (i.e. defaultView.current) defaultView: views.includes(openTo!) ? openTo! : views[0], goToNextView, setValueAndGoToNextView, diff --git a/packages/x-date-pickers/src/models/timezone.ts b/packages/x-date-pickers/src/models/timezone.ts index 736bd6bc7985..d54571f67c9e 100644 --- a/packages/x-date-pickers/src/models/timezone.ts +++ b/packages/x-date-pickers/src/models/timezone.ts @@ -5,7 +5,7 @@ export interface TimezoneProps { * Choose which timezone to use for the value. * Example: "default", "system", "UTC", "America/New_York". * If you pass values from other timezones to some props, they will be converted to this timezone before being used. - * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details. + * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details. * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise. */ timezone?: PickersTimezone;