@mui/x-date-pickers 9.8.0 → 9.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +230 -0
- package/DateCalendar/DayCalendar.d.mts +1 -1
- package/DateCalendar/DayCalendar.d.ts +1 -1
- package/DateCalendar/PickersFadeTransitionGroup.d.mts +1 -1
- package/DateCalendar/PickersFadeTransitionGroup.d.ts +1 -1
- package/DateCalendar/PickersSlideTransition.d.mts +1 -1
- package/DateCalendar/PickersSlideTransition.d.ts +1 -1
- package/DateCalendar/useIsDateDisabled.d.mts +1 -1
- package/DateCalendar/useIsDateDisabled.d.ts +1 -1
- package/DatePicker/shared.d.mts +2 -1
- package/DatePicker/shared.d.ts +2 -1
- package/DateTimePicker/DateTimePickerTabs.d.mts +4 -14
- package/DateTimePicker/DateTimePickerTabs.d.ts +4 -14
- package/DateTimePicker/DateTimePickerTabs.js +13 -9
- package/DateTimePicker/DateTimePickerTabs.mjs +13 -9
- package/DateTimePicker/DateTimePickerToolbar.d.mts +1 -1
- package/DateTimePicker/DateTimePickerToolbar.d.ts +1 -1
- package/DateTimePicker/shared.d.mts +3 -2
- package/DateTimePicker/shared.d.ts +3 -2
- package/DayCalendarSkeleton/DayCalendarSkeleton.d.mts +1 -1
- package/DayCalendarSkeleton/DayCalendarSkeleton.d.ts +1 -1
- package/DigitalClock/DigitalClock.d.mts +1 -1
- package/DigitalClock/DigitalClock.d.ts +1 -1
- package/MonthCalendar/MonthCalendarButton.d.mts +1 -1
- package/MonthCalendar/MonthCalendarButton.d.ts +1 -1
- package/PickersActionBar/PickersActionBar.d.mts +1 -4
- package/PickersActionBar/PickersActionBar.d.ts +1 -4
- package/PickersLayout/PickersLayout.d.mts +2 -2
- package/PickersLayout/PickersLayout.d.ts +2 -2
- package/PickersLayout/PickersLayout.types.d.mts +4 -4
- package/PickersLayout/PickersLayout.types.d.ts +4 -4
- package/PickersSectionList/PickersSectionList.d.mts +1 -1
- package/PickersSectionList/PickersSectionList.d.ts +1 -1
- package/PickersShortcuts/PickersShortcuts.d.mts +1 -1
- package/PickersShortcuts/PickersShortcuts.d.ts +1 -1
- package/PickersTextField/PickersFilledInput/pickersFilledInputClasses.d.mts +11 -11
- package/PickersTextField/PickersFilledInput/pickersFilledInputClasses.d.ts +11 -11
- package/PickersTextField/PickersInput/pickersInputClasses.d.mts +11 -11
- package/PickersTextField/PickersInput/pickersInputClasses.d.ts +11 -11
- package/PickersTextField/PickersInputBase/PickersInputBase.d.mts +2 -2
- package/PickersTextField/PickersInputBase/PickersInputBase.d.ts +2 -2
- package/PickersTextField/PickersOutlinedInput/Outline.d.mts +1 -1
- package/PickersTextField/PickersOutlinedInput/Outline.d.ts +1 -1
- package/PickersTextField/PickersOutlinedInput/pickersOutlinedInputClasses.d.mts +11 -11
- package/PickersTextField/PickersOutlinedInput/pickersOutlinedInputClasses.d.ts +11 -11
- package/PickersTextField/PickersTextField.d.mts +1 -1
- package/PickersTextField/PickersTextField.d.ts +1 -1
- package/PickersTextField/PickersTextField.types.d.mts +6 -5
- package/PickersTextField/PickersTextField.types.d.ts +6 -5
- package/TimeClock/Clock.d.mts +1 -1
- package/TimeClock/Clock.d.ts +1 -1
- package/TimeClock/ClockNumber.d.mts +1 -1
- package/TimeClock/ClockNumber.d.ts +1 -1
- package/TimeClock/ClockNumbers.d.mts +2 -2
- package/TimeClock/ClockNumbers.d.ts +2 -2
- package/TimeClock/ClockPointer.d.mts +1 -1
- package/TimeClock/ClockPointer.d.ts +1 -1
- package/TimePicker/TimePickerToolbar.d.mts +1 -1
- package/TimePicker/TimePickerToolbar.d.ts +1 -1
- package/TimePicker/shared.d.mts +2 -1
- package/TimePicker/shared.d.ts +2 -1
- package/YearCalendar/YearCalendarButton.d.mts +1 -1
- package/YearCalendar/YearCalendarButton.d.ts +1 -1
- package/YearCalendar/yearCalendarClasses.d.mts +1 -1
- package/YearCalendar/yearCalendarClasses.d.ts +1 -1
- package/dateViewRenderers/dateViewRenderers.d.mts +1 -1
- package/dateViewRenderers/dateViewRenderers.d.ts +1 -1
- package/hooks/useSplitFieldProps.d.mts +1 -1
- package/hooks/useSplitFieldProps.d.ts +1 -1
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/internals/components/PickerFieldUI.d.mts +3 -3
- package/internals/components/PickerFieldUI.d.ts +3 -3
- package/internals/components/PickerPopper/PickerPopper.d.mts +3 -2
- package/internals/components/PickerPopper/PickerPopper.d.ts +3 -2
- package/internals/components/PickerPopper/pickerPopperClasses.d.mts +1 -1
- package/internals/components/PickerPopper/pickerPopperClasses.d.ts +1 -1
- package/internals/components/PickerProvider.d.mts +1 -1
- package/internals/components/PickerProvider.d.ts +1 -1
- package/internals/components/PickerViewRoot/PickerViewRoot.d.mts +1 -1
- package/internals/components/PickerViewRoot/PickerViewRoot.d.ts +1 -1
- package/internals/components/PickersArrowSwitcher/pickersArrowSwitcherClasses.d.mts +1 -1
- package/internals/components/PickersArrowSwitcher/pickersArrowSwitcherClasses.d.ts +1 -1
- package/internals/components/PickersModalDialog.d.mts +5 -4
- package/internals/components/PickersModalDialog.d.ts +5 -4
- package/internals/components/pickersToolbarClasses.d.mts +1 -1
- package/internals/components/pickersToolbarClasses.d.ts +1 -1
- package/internals/demo/DemoContainer.d.mts +2 -2
- package/internals/demo/DemoContainer.d.ts +2 -2
- package/internals/hooks/date-helpers-hooks.d.mts +1 -1
- package/internals/hooks/date-helpers-hooks.d.ts +1 -1
- package/internals/hooks/useDesktopPicker/useDesktopPicker.d.mts +1 -1
- package/internals/hooks/useDesktopPicker/useDesktopPicker.d.ts +1 -1
- package/internals/hooks/useField/useField.utils.d.mts +3 -3
- package/internals/hooks/useField/useField.utils.d.ts +3 -3
- package/internals/hooks/useMobilePicker/useMobilePicker.d.mts +1 -1
- package/internals/hooks/useMobilePicker/useMobilePicker.d.ts +1 -1
- package/internals/hooks/useStaticPicker/useStaticPicker.d.mts +1 -1
- package/internals/hooks/useStaticPicker/useStaticPicker.d.ts +1 -1
- package/internals/utils/date-utils.d.mts +2 -2
- package/internals/utils/date-utils.d.ts +2 -2
- package/internals/utils/time-utils.d.mts +2 -2
- package/internals/utils/time-utils.d.ts +2 -2
- package/locales/beBY.d.mts +5 -5
- package/locales/beBY.d.ts +5 -5
- package/locales/bgBG.d.mts +5 -5
- package/locales/bgBG.d.ts +5 -5
- package/locales/bnBD.d.mts +5 -5
- package/locales/bnBD.d.ts +5 -5
- package/locales/caES.d.mts +5 -5
- package/locales/caES.d.ts +5 -5
- package/locales/csCZ.d.mts +5 -5
- package/locales/csCZ.d.ts +5 -5
- package/locales/daDK.d.mts +5 -5
- package/locales/daDK.d.ts +5 -5
- package/locales/deDE.d.mts +5 -5
- package/locales/deDE.d.ts +5 -5
- package/locales/elGR.d.mts +5 -5
- package/locales/elGR.d.ts +5 -5
- package/locales/enUS.d.mts +5 -5
- package/locales/enUS.d.ts +5 -5
- package/locales/esES.d.mts +5 -5
- package/locales/esES.d.ts +5 -5
- package/locales/eu.d.mts +5 -5
- package/locales/eu.d.ts +5 -5
- package/locales/faIR.d.mts +5 -5
- package/locales/faIR.d.ts +5 -5
- package/locales/fiFI.d.mts +5 -5
- package/locales/fiFI.d.ts +5 -5
- package/locales/frFR.d.mts +5 -5
- package/locales/frFR.d.ts +5 -5
- package/locales/heIL.d.mts +5 -5
- package/locales/heIL.d.ts +5 -5
- package/locales/hrHR.d.mts +5 -5
- package/locales/hrHR.d.ts +5 -5
- package/locales/huHU.d.mts +5 -5
- package/locales/huHU.d.ts +5 -5
- package/locales/isIS.d.mts +5 -5
- package/locales/isIS.d.ts +5 -5
- package/locales/itIT.d.mts +5 -5
- package/locales/itIT.d.ts +5 -5
- package/locales/jaJP.d.mts +5 -5
- package/locales/jaJP.d.ts +5 -5
- package/locales/koKR.d.mts +5 -5
- package/locales/koKR.d.ts +5 -5
- package/locales/kzKZ.d.mts +5 -5
- package/locales/kzKZ.d.ts +5 -5
- package/locales/mk.d.mts +5 -5
- package/locales/mk.d.ts +5 -5
- package/locales/nbNO.d.mts +5 -5
- package/locales/nbNO.d.ts +5 -5
- package/locales/nlNL.d.mts +5 -5
- package/locales/nlNL.d.ts +5 -5
- package/locales/nnNO.d.mts +5 -5
- package/locales/nnNO.d.ts +5 -5
- package/locales/plPL.d.mts +5 -5
- package/locales/plPL.d.ts +5 -5
- package/locales/ptBR.d.mts +5 -5
- package/locales/ptBR.d.ts +5 -5
- package/locales/ptPT.d.mts +5 -5
- package/locales/ptPT.d.ts +5 -5
- package/locales/roRO.d.mts +5 -5
- package/locales/roRO.d.ts +5 -5
- package/locales/ruRU.d.mts +5 -5
- package/locales/ruRU.d.ts +5 -5
- package/locales/skSK.d.mts +5 -5
- package/locales/skSK.d.ts +5 -5
- package/locales/svSE.d.mts +5 -5
- package/locales/svSE.d.ts +5 -5
- package/locales/thTH.d.mts +5 -5
- package/locales/thTH.d.ts +5 -5
- package/locales/trTR.d.mts +5 -5
- package/locales/trTR.d.ts +5 -5
- package/locales/ukUA.d.mts +5 -5
- package/locales/ukUA.d.ts +5 -5
- package/locales/urPK.d.mts +5 -5
- package/locales/urPK.d.ts +5 -5
- package/locales/utils/getPickersLocalization.d.mts +5 -5
- package/locales/utils/getPickersLocalization.d.ts +5 -5
- package/locales/viVN.d.mts +5 -5
- package/locales/viVN.d.ts +5 -5
- package/locales/zhCN.d.mts +5 -5
- package/locales/zhCN.d.ts +5 -5
- package/locales/zhHK.d.mts +5 -5
- package/locales/zhHK.d.ts +5 -5
- package/locales/zhTW.d.mts +5 -5
- package/locales/zhTW.d.ts +5 -5
- package/package.json +3 -3
- package/timeViewRenderers/timeViewRenderers.d.mts +3 -3
- package/timeViewRenderers/timeViewRenderers.d.ts +3 -3
- package/validation/extractValidationProps.d.mts +1 -1
- package/validation/extractValidationProps.d.ts +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DATE_TIME_VALIDATION_PROP_NAMES, DATE_VALIDATION_PROP_NAMES, TIME_VALIDATION_PROP_NAMES } from "../validation/extractValidationProps.mjs";
|
|
2
2
|
import type { PickerValueType } from "../models/common.mjs";
|
|
3
|
-
declare const SHARED_FIELD_INTERNAL_PROP_NAMES: readonly [
|
|
3
|
+
declare const SHARED_FIELD_INTERNAL_PROP_NAMES: readonly ['value', 'defaultValue', 'referenceDate', 'format', 'formatDensity', 'onChange', 'timezone', 'onError', 'shouldRespectLeadingZeros', 'selectedSections', 'onSelectedSectionsChange', 'fieldRef', 'startFieldRef', 'endFieldRef', 'disabled', 'readOnly', 'dateSeparator', 'autoFocus', 'focused'];
|
|
4
4
|
export type InternalPropNames<TValueType extends PickerValueType> = (typeof SHARED_FIELD_INTERNAL_PROP_NAMES)[number] | (TValueType extends 'date' | 'date-time' ? (typeof DATE_VALIDATION_PROP_NAMES)[number] : never) | (TValueType extends 'time' | 'date-time' ? (typeof TIME_VALIDATION_PROP_NAMES)[number] : never) | (TValueType extends 'date-time' ? (typeof DATE_TIME_VALIDATION_PROP_NAMES)[number] : never);
|
|
5
5
|
/**
|
|
6
6
|
* Split the props received by the field component into:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DATE_TIME_VALIDATION_PROP_NAMES, DATE_VALIDATION_PROP_NAMES, TIME_VALIDATION_PROP_NAMES } from "../validation/extractValidationProps.js";
|
|
2
2
|
import type { PickerValueType } from "../models/common.js";
|
|
3
|
-
declare const SHARED_FIELD_INTERNAL_PROP_NAMES: readonly [
|
|
3
|
+
declare const SHARED_FIELD_INTERNAL_PROP_NAMES: readonly ['value', 'defaultValue', 'referenceDate', 'format', 'formatDensity', 'onChange', 'timezone', 'onError', 'shouldRespectLeadingZeros', 'selectedSections', 'onSelectedSectionsChange', 'fieldRef', 'startFieldRef', 'endFieldRef', 'disabled', 'readOnly', 'dateSeparator', 'autoFocus', 'focused'];
|
|
4
4
|
export type InternalPropNames<TValueType extends PickerValueType> = (typeof SHARED_FIELD_INTERNAL_PROP_NAMES)[number] | (TValueType extends 'date' | 'date-time' ? (typeof DATE_VALIDATION_PROP_NAMES)[number] : never) | (TValueType extends 'time' | 'date-time' ? (typeof TIME_VALIDATION_PROP_NAMES)[number] : never) | (TValueType extends 'date-time' ? (typeof DATE_TIME_VALIDATION_PROP_NAMES)[number] : never);
|
|
5
5
|
/**
|
|
6
6
|
* Split the props received by the field component into:
|
package/index.js
CHANGED
package/index.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import type { UseFieldReturnValue, UseFieldProps } from "../hooks/useField/index
|
|
|
9
9
|
import type { PickersTextFieldProps } from "../../PickersTextField/index.mjs";
|
|
10
10
|
export declare const cleanFieldResponse: <TFieldResponse extends MakeOptional<UseFieldReturnValue<ExportedPickerFieldUIProps & {
|
|
11
11
|
[key: string]: any;
|
|
12
|
-
}>,
|
|
12
|
+
}>, 'onClear' | 'clearable'>>(fieldResponse: TFieldResponse) => ExportedPickerFieldUIProps & {
|
|
13
13
|
openPickerAriaLabel: string;
|
|
14
14
|
textFieldProps: Partial<PickersTextFieldProps>;
|
|
15
15
|
};
|
|
@@ -18,7 +18,7 @@ export declare const PickerFieldUIContext: React.Context<PickerFieldUIContextVal
|
|
|
18
18
|
* Adds the button to open the Picker and the button to clear the value of the field.
|
|
19
19
|
* @ignore - internal component.
|
|
20
20
|
*/
|
|
21
|
-
export declare function PickerFieldUI<TProps extends UseFieldProps>(props: PickerFieldUIProps<TProps>):
|
|
21
|
+
export declare function PickerFieldUI<TProps extends UseFieldProps>(props: PickerFieldUIProps<TProps>): React.JSX.Element;
|
|
22
22
|
export interface ExportedPickerFieldUIProps {
|
|
23
23
|
/**
|
|
24
24
|
* If `true`, a clear button will be shown in the field allowing value clearing.
|
|
@@ -116,7 +116,7 @@ interface UseFieldTextFieldPropsParameters {
|
|
|
116
116
|
ref: React.Ref<HTMLDivElement>;
|
|
117
117
|
externalForwardedProps: any;
|
|
118
118
|
}
|
|
119
|
-
export declare function PickerFieldUIContextProvider(props: PickerFieldUIContextProviderProps):
|
|
119
|
+
export declare function PickerFieldUIContextProvider(props: PickerFieldUIContextProviderProps): React.JSX.Element;
|
|
120
120
|
interface PickerFieldUIContextProviderProps {
|
|
121
121
|
children: React.ReactNode;
|
|
122
122
|
inputRef: React.Ref<HTMLInputElement> | undefined;
|
|
@@ -9,7 +9,7 @@ import type { UseFieldReturnValue, UseFieldProps } from "../hooks/useField/index
|
|
|
9
9
|
import type { PickersTextFieldProps } from "../../PickersTextField/index.js";
|
|
10
10
|
export declare const cleanFieldResponse: <TFieldResponse extends MakeOptional<UseFieldReturnValue<ExportedPickerFieldUIProps & {
|
|
11
11
|
[key: string]: any;
|
|
12
|
-
}>,
|
|
12
|
+
}>, 'onClear' | 'clearable'>>(fieldResponse: TFieldResponse) => ExportedPickerFieldUIProps & {
|
|
13
13
|
openPickerAriaLabel: string;
|
|
14
14
|
textFieldProps: Partial<PickersTextFieldProps>;
|
|
15
15
|
};
|
|
@@ -18,7 +18,7 @@ export declare const PickerFieldUIContext: React.Context<PickerFieldUIContextVal
|
|
|
18
18
|
* Adds the button to open the Picker and the button to clear the value of the field.
|
|
19
19
|
* @ignore - internal component.
|
|
20
20
|
*/
|
|
21
|
-
export declare function PickerFieldUI<TProps extends UseFieldProps>(props: PickerFieldUIProps<TProps>):
|
|
21
|
+
export declare function PickerFieldUI<TProps extends UseFieldProps>(props: PickerFieldUIProps<TProps>): React.JSX.Element;
|
|
22
22
|
export interface ExportedPickerFieldUIProps {
|
|
23
23
|
/**
|
|
24
24
|
* If `true`, a clear button will be shown in the field allowing value clearing.
|
|
@@ -116,7 +116,7 @@ interface UseFieldTextFieldPropsParameters {
|
|
|
116
116
|
ref: React.Ref<HTMLDivElement>;
|
|
117
117
|
externalForwardedProps: any;
|
|
118
118
|
}
|
|
119
|
-
export declare function PickerFieldUIContextProvider(props: PickerFieldUIContextProviderProps):
|
|
119
|
+
export declare function PickerFieldUIContextProvider(props: PickerFieldUIContextProviderProps): React.JSX.Element;
|
|
120
120
|
interface PickerFieldUIContextProviderProps {
|
|
121
121
|
children: React.ReactNode;
|
|
122
122
|
inputRef: React.Ref<HTMLInputElement> | undefined;
|
|
@@ -4,6 +4,7 @@ import type { PopperProps as MuiPopperProps, PopperPlacementType, PopperProps }
|
|
|
4
4
|
import type { TrapFocusProps as MuiTrapFocusProps } from '@mui/material/Unstable_TrapFocus';
|
|
5
5
|
import type { TransitionProps as MuiTransitionProps } from '@mui/material/transitions';
|
|
6
6
|
import type { SlotComponentPropsFromProps } from '@mui/x-internals/types';
|
|
7
|
+
import type { WithDataAttributes } from '@mui/utils/types';
|
|
7
8
|
import type { PickerPopperClasses } from "./pickerPopperClasses.mjs";
|
|
8
9
|
import type { PickerOwnerState } from "../../../models/index.mjs";
|
|
9
10
|
export interface PickerPopperOwnerState extends PickerOwnerState {
|
|
@@ -39,7 +40,7 @@ export interface PickerPopperSlotProps {
|
|
|
39
40
|
/**
|
|
40
41
|
* Props passed down to the desktop [Transition](https://mui.com/material-ui/transitions/) component.
|
|
41
42
|
*/
|
|
42
|
-
desktopTransition?: Partial<MuiTransitionProps
|
|
43
|
+
desktopTransition?: WithDataAttributes<Partial<MuiTransitionProps>>;
|
|
43
44
|
/**
|
|
44
45
|
* Props passed down to the [FocusTrap](https://mui.com/base-ui/react-focus-trap/) component on desktop.
|
|
45
46
|
*/
|
|
@@ -64,4 +65,4 @@ export interface PickerPopperProps extends ExportedPickerPopperProps {
|
|
|
64
65
|
slots?: PickerPopperSlots;
|
|
65
66
|
slotProps?: PickerPopperSlotProps;
|
|
66
67
|
}
|
|
67
|
-
export declare function PickerPopper(inProps: PickerPopperProps):
|
|
68
|
+
export declare function PickerPopper(inProps: PickerPopperProps): React.JSX.Element;
|
|
@@ -4,6 +4,7 @@ import type { PopperProps as MuiPopperProps, PopperPlacementType, PopperProps }
|
|
|
4
4
|
import type { TrapFocusProps as MuiTrapFocusProps } from '@mui/material/Unstable_TrapFocus';
|
|
5
5
|
import type { TransitionProps as MuiTransitionProps } from '@mui/material/transitions';
|
|
6
6
|
import type { SlotComponentPropsFromProps } from '@mui/x-internals/types';
|
|
7
|
+
import type { WithDataAttributes } from '@mui/utils/types';
|
|
7
8
|
import type { PickerPopperClasses } from "./pickerPopperClasses.js";
|
|
8
9
|
import type { PickerOwnerState } from "../../../models/index.js";
|
|
9
10
|
export interface PickerPopperOwnerState extends PickerOwnerState {
|
|
@@ -39,7 +40,7 @@ export interface PickerPopperSlotProps {
|
|
|
39
40
|
/**
|
|
40
41
|
* Props passed down to the desktop [Transition](https://mui.com/material-ui/transitions/) component.
|
|
41
42
|
*/
|
|
42
|
-
desktopTransition?: Partial<MuiTransitionProps
|
|
43
|
+
desktopTransition?: WithDataAttributes<Partial<MuiTransitionProps>>;
|
|
43
44
|
/**
|
|
44
45
|
* Props passed down to the [FocusTrap](https://mui.com/base-ui/react-focus-trap/) component on desktop.
|
|
45
46
|
*/
|
|
@@ -64,4 +65,4 @@ export interface PickerPopperProps extends ExportedPickerPopperProps {
|
|
|
64
65
|
slots?: PickerPopperSlots;
|
|
65
66
|
slotProps?: PickerPopperSlotProps;
|
|
66
67
|
}
|
|
67
|
-
export declare function PickerPopper(inProps: PickerPopperProps):
|
|
68
|
+
export declare function PickerPopper(inProps: PickerPopperProps): React.JSX.Element;
|
|
@@ -6,4 +6,4 @@ export interface PickerPopperClasses {
|
|
|
6
6
|
}
|
|
7
7
|
export type PickerPopperClassKey = keyof PickerPopperClasses;
|
|
8
8
|
export declare function getPickerPopperUtilityClass(slot: string): string;
|
|
9
|
-
export declare const pickerPopperClasses: Record<"
|
|
9
|
+
export declare const pickerPopperClasses: Record<"paper" | "root", string>;
|
|
@@ -6,4 +6,4 @@ export interface PickerPopperClasses {
|
|
|
6
6
|
}
|
|
7
7
|
export type PickerPopperClassKey = keyof PickerPopperClasses;
|
|
8
8
|
export declare function getPickerPopperUtilityClass(slot: string): string;
|
|
9
|
-
export declare const pickerPopperClasses: Record<"
|
|
9
|
+
export declare const pickerPopperClasses: Record<"paper" | "root", string>;
|
|
@@ -16,7 +16,7 @@ export declare const PickerPrivateContext: React.Context<PickerPrivateContextVal
|
|
|
16
16
|
*
|
|
17
17
|
* @ignore - do not document.
|
|
18
18
|
*/
|
|
19
|
-
export declare function PickerProvider<TValue extends PickerValidValue>(props: PickerProviderProps<TValue>):
|
|
19
|
+
export declare function PickerProvider<TValue extends PickerValidValue>(props: PickerProviderProps<TValue>): React.JSX.Element;
|
|
20
20
|
export interface PickerProviderProps<TValue extends PickerValidValue> {
|
|
21
21
|
contextValue: PickerContextValue<any, any, any>;
|
|
22
22
|
actionsContextValue: PickerActionsContextValue<any, any, any>;
|
|
@@ -16,7 +16,7 @@ export declare const PickerPrivateContext: React.Context<PickerPrivateContextVal
|
|
|
16
16
|
*
|
|
17
17
|
* @ignore - do not document.
|
|
18
18
|
*/
|
|
19
|
-
export declare function PickerProvider<TValue extends PickerValidValue>(props: PickerProviderProps<TValue>):
|
|
19
|
+
export declare function PickerProvider<TValue extends PickerValidValue>(props: PickerProviderProps<TValue>): React.JSX.Element;
|
|
20
20
|
export interface PickerProviderProps<TValue extends PickerValidValue> {
|
|
21
21
|
contextValue: PickerContextValue<any, any, any>;
|
|
22
22
|
actionsContextValue: PickerActionsContextValue<any, any, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const PickerViewRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("react").
|
|
1
|
+
export declare const PickerViewRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("react").ClassAttributes<HTMLDivElement> | keyof import("react").HTMLAttributes<HTMLDivElement>>, {}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const PickerViewRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("react").
|
|
1
|
+
export declare const PickerViewRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("react").ClassAttributes<HTMLDivElement> | keyof import("react").HTMLAttributes<HTMLDivElement>>, {}>;
|
|
@@ -16,4 +16,4 @@ export interface PickersArrowSwitcherClasses {
|
|
|
16
16
|
}
|
|
17
17
|
export type PickersArrowSwitcherClassKey = keyof PickersArrowSwitcherClasses;
|
|
18
18
|
export declare function getPickersArrowSwitcherUtilityClass(slot: string): string;
|
|
19
|
-
export declare const pickersArrowSwitcherClasses: Record<"
|
|
19
|
+
export declare const pickersArrowSwitcherClasses: Record<"button" | "leftArrowIcon" | "nextIconButton" | "previousIconButton" | "rightArrowIcon" | "root" | "spacer", string>;
|
|
@@ -16,4 +16,4 @@ export interface PickersArrowSwitcherClasses {
|
|
|
16
16
|
}
|
|
17
17
|
export type PickersArrowSwitcherClassKey = keyof PickersArrowSwitcherClasses;
|
|
18
18
|
export declare function getPickersArrowSwitcherUtilityClass(slot: string): string;
|
|
19
|
-
export declare const pickersArrowSwitcherClasses: Record<"
|
|
19
|
+
export declare const pickersArrowSwitcherClasses: Record<"button" | "leftArrowIcon" | "nextIconButton" | "previousIconButton" | "rightArrowIcon" | "root" | "spacer", string>;
|
|
@@ -2,6 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import type { DialogProps as MuiDialogProps } from '@mui/material/Dialog';
|
|
3
3
|
import type { PaperProps as MuiPaperProps } from '@mui/material/Paper';
|
|
4
4
|
import type { TransitionProps as MuiTransitionProps } from '@mui/material/transitions';
|
|
5
|
+
import type { WithDataAttributes } from '@mui/utils/types';
|
|
5
6
|
export interface PickersModalDialogSlots {
|
|
6
7
|
/**
|
|
7
8
|
* Custom component for the dialog inside which the views are rendered on mobile.
|
|
@@ -23,15 +24,15 @@ export interface PickersModalDialogSlotProps {
|
|
|
23
24
|
/**
|
|
24
25
|
* Props passed down to the [`Dialog`](https://mui.com/material-ui/api/dialog/) component.
|
|
25
26
|
*/
|
|
26
|
-
dialog?: Partial<MuiDialogProps
|
|
27
|
+
dialog?: WithDataAttributes<Partial<MuiDialogProps>>;
|
|
27
28
|
/**
|
|
28
29
|
* Props passed down to the mobile [Paper](https://mui.com/material-ui/api/paper/) component.
|
|
29
30
|
*/
|
|
30
|
-
mobilePaper?: Partial<MuiPaperProps
|
|
31
|
+
mobilePaper?: WithDataAttributes<Partial<MuiPaperProps>>;
|
|
31
32
|
/**
|
|
32
33
|
* Props passed down to the mobile [Transition](https://mui.com/material-ui/transitions/) component.
|
|
33
34
|
*/
|
|
34
|
-
mobileTransition?: Partial<MuiTransitionProps
|
|
35
|
+
mobileTransition?: WithDataAttributes<Partial<MuiTransitionProps>>;
|
|
35
36
|
}
|
|
36
37
|
export interface PickersModalDialogProps {
|
|
37
38
|
/**
|
|
@@ -45,4 +46,4 @@ export interface PickersModalDialogProps {
|
|
|
45
46
|
*/
|
|
46
47
|
slotProps?: PickersModalDialogSlotProps;
|
|
47
48
|
}
|
|
48
|
-
export declare function PickersModalDialog(props: React.PropsWithChildren<PickersModalDialogProps>):
|
|
49
|
+
export declare function PickersModalDialog(props: React.PropsWithChildren<PickersModalDialogProps>): React.JSX.Element;
|
|
@@ -2,6 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import type { DialogProps as MuiDialogProps } from '@mui/material/Dialog';
|
|
3
3
|
import type { PaperProps as MuiPaperProps } from '@mui/material/Paper';
|
|
4
4
|
import type { TransitionProps as MuiTransitionProps } from '@mui/material/transitions';
|
|
5
|
+
import type { WithDataAttributes } from '@mui/utils/types';
|
|
5
6
|
export interface PickersModalDialogSlots {
|
|
6
7
|
/**
|
|
7
8
|
* Custom component for the dialog inside which the views are rendered on mobile.
|
|
@@ -23,15 +24,15 @@ export interface PickersModalDialogSlotProps {
|
|
|
23
24
|
/**
|
|
24
25
|
* Props passed down to the [`Dialog`](https://mui.com/material-ui/api/dialog/) component.
|
|
25
26
|
*/
|
|
26
|
-
dialog?: Partial<MuiDialogProps
|
|
27
|
+
dialog?: WithDataAttributes<Partial<MuiDialogProps>>;
|
|
27
28
|
/**
|
|
28
29
|
* Props passed down to the mobile [Paper](https://mui.com/material-ui/api/paper/) component.
|
|
29
30
|
*/
|
|
30
|
-
mobilePaper?: Partial<MuiPaperProps
|
|
31
|
+
mobilePaper?: WithDataAttributes<Partial<MuiPaperProps>>;
|
|
31
32
|
/**
|
|
32
33
|
* Props passed down to the mobile [Transition](https://mui.com/material-ui/transitions/) component.
|
|
33
34
|
*/
|
|
34
|
-
mobileTransition?: Partial<MuiTransitionProps
|
|
35
|
+
mobileTransition?: WithDataAttributes<Partial<MuiTransitionProps>>;
|
|
35
36
|
}
|
|
36
37
|
export interface PickersModalDialogProps {
|
|
37
38
|
/**
|
|
@@ -45,4 +46,4 @@ export interface PickersModalDialogProps {
|
|
|
45
46
|
*/
|
|
46
47
|
slotProps?: PickersModalDialogSlotProps;
|
|
47
48
|
}
|
|
48
|
-
export declare function PickersModalDialog(props: React.PropsWithChildren<PickersModalDialogProps>):
|
|
49
|
+
export declare function PickersModalDialog(props: React.PropsWithChildren<PickersModalDialogProps>): React.JSX.Element;
|
|
@@ -8,4 +8,4 @@ export interface PickersToolbarClasses {
|
|
|
8
8
|
}
|
|
9
9
|
export type PickersToolbarClassKey = keyof PickersToolbarClasses;
|
|
10
10
|
export declare function getPickersToolbarUtilityClass(slot: string): string;
|
|
11
|
-
export declare const pickersToolbarClasses: Record<"
|
|
11
|
+
export declare const pickersToolbarClasses: Record<"content" | "root" | "title", string>;
|
|
@@ -8,4 +8,4 @@ export interface PickersToolbarClasses {
|
|
|
8
8
|
}
|
|
9
9
|
export type PickersToolbarClassKey = keyof PickersToolbarClasses;
|
|
10
10
|
export declare function getPickersToolbarUtilityClass(slot: string): string;
|
|
11
|
-
export declare const pickersToolbarClasses: Record<"
|
|
11
|
+
export declare const pickersToolbarClasses: Record<"content" | "root" | "title", string>;
|
|
@@ -14,7 +14,7 @@ interface DemoItemProps extends Omit<StackProps, 'component'> {
|
|
|
14
14
|
* WARNING: This is an internal component used in documentation to achieve a desired layout.
|
|
15
15
|
* Please do not use it in your application.
|
|
16
16
|
*/
|
|
17
|
-
export declare function DemoItem(props: DemoItemProps):
|
|
17
|
+
export declare function DemoItem(props: DemoItemProps): React.JSX.Element;
|
|
18
18
|
export declare namespace DemoItem {
|
|
19
19
|
var displayName: string;
|
|
20
20
|
}
|
|
@@ -22,5 +22,5 @@ export declare namespace DemoItem {
|
|
|
22
22
|
* WARNING: This is an internal component used in documentation to achieve a desired layout.
|
|
23
23
|
* Please do not use it in your application.
|
|
24
24
|
*/
|
|
25
|
-
export declare function DemoContainer(props: DemoGridProps):
|
|
25
|
+
export declare function DemoContainer(props: DemoGridProps): React.JSX.Element;
|
|
26
26
|
export {};
|
|
@@ -14,7 +14,7 @@ interface DemoItemProps extends Omit<StackProps, 'component'> {
|
|
|
14
14
|
* WARNING: This is an internal component used in documentation to achieve a desired layout.
|
|
15
15
|
* Please do not use it in your application.
|
|
16
16
|
*/
|
|
17
|
-
export declare function DemoItem(props: DemoItemProps):
|
|
17
|
+
export declare function DemoItem(props: DemoItemProps): React.JSX.Element;
|
|
18
18
|
export declare namespace DemoItem {
|
|
19
19
|
var displayName: string;
|
|
20
20
|
}
|
|
@@ -22,5 +22,5 @@ export declare namespace DemoItem {
|
|
|
22
22
|
* WARNING: This is an internal component used in documentation to achieve a desired layout.
|
|
23
23
|
* Please do not use it in your application.
|
|
24
24
|
*/
|
|
25
|
-
export declare function DemoContainer(props: DemoGridProps):
|
|
25
|
+
export declare function DemoContainer(props: DemoGridProps): React.JSX.Element;
|
|
26
26
|
export {};
|
|
@@ -20,5 +20,5 @@ export declare function usePreviousMonthDisabled(month: PickerValidDate, {
|
|
|
20
20
|
}: Pick<MonthValidationOptions, 'disablePast' | 'minDate' | 'timezone'>): boolean;
|
|
21
21
|
export declare function useMeridiemMode(date: PickerValidDate | null, ampm: boolean | undefined, onChange: PickerOnChangeFn, selectionState?: PickerSelectionState): {
|
|
22
22
|
meridiemMode: import("../utils/time-utils.mjs").Meridiem | null;
|
|
23
|
-
handleMeridiemChange: (mode:
|
|
23
|
+
handleMeridiemChange: (mode: 'am' | 'pm') => void;
|
|
24
24
|
};
|
|
@@ -20,5 +20,5 @@ export declare function usePreviousMonthDisabled(month: PickerValidDate, {
|
|
|
20
20
|
}: Pick<MonthValidationOptions, 'disablePast' | 'minDate' | 'timezone'>): boolean;
|
|
21
21
|
export declare function useMeridiemMode(date: PickerValidDate | null, ampm: boolean | undefined, onChange: PickerOnChangeFn, selectionState?: PickerSelectionState): {
|
|
22
22
|
meridiemMode: import("../utils/time-utils.js").Meridiem | null;
|
|
23
|
-
handleMeridiemChange: (mode:
|
|
23
|
+
handleMeridiemChange: (mode: 'am' | 'pm') => void;
|
|
24
24
|
};
|
|
@@ -11,5 +11,5 @@ export declare const useDesktopPicker: <TView extends DateOrTimeViewWithMeridiem
|
|
|
11
11
|
steps,
|
|
12
12
|
...pickerParams
|
|
13
13
|
}: UseDesktopPickerParams<TView, TExternalProps>) => {
|
|
14
|
-
renderPicker: () => import("react
|
|
14
|
+
renderPicker: () => import("react").JSX.Element;
|
|
15
15
|
};
|
|
@@ -11,5 +11,5 @@ export declare const useDesktopPicker: <TView extends DateOrTimeViewWithMeridiem
|
|
|
11
11
|
steps,
|
|
12
12
|
...pickerParams
|
|
13
13
|
}: UseDesktopPickerParams<TView, TExternalProps>) => {
|
|
14
|
-
renderPicker: () => import("react
|
|
14
|
+
renderPicker: () => import("react").JSX.Element;
|
|
15
15
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { FieldSectionsValueBoundaries, SectionOrdering, FieldSectionValueBoundaries, FieldParsedSelectedSections } from "./useField.types.mjs";
|
|
2
2
|
import type { FieldSectionType, FieldSection, MuiPickersAdapter, FieldSectionContentType, PickersTimezone, PickerValidDate, FieldSelectedSections, PickerValueType, InferFieldSection } from "../../../models/index.mjs";
|
|
3
3
|
import type { PickerValidValue } from "../../models/index.mjs";
|
|
4
|
-
export declare const getDateSectionConfigFromFormatToken: (adapter: MuiPickersAdapter, formatToken: string) => Pick<FieldSection,
|
|
4
|
+
export declare const getDateSectionConfigFromFormatToken: (adapter: MuiPickersAdapter, formatToken: string) => Pick<FieldSection, 'type' | 'contentType'> & {
|
|
5
5
|
maxLength: number | undefined;
|
|
6
6
|
};
|
|
7
7
|
export declare const getDaysInWeekStr: (adapter: MuiPickersAdapter, format: string) => string[];
|
|
@@ -16,8 +16,8 @@ export declare const isStringNumber: (valueStr: string, localizedDigits: string[
|
|
|
16
16
|
* Warning: Should only be called with non-localized digits. Call `removeLocalizedDigits` with your value if needed.
|
|
17
17
|
*/
|
|
18
18
|
export declare const cleanLeadingZeros: (valueStr: string, size: number) => string;
|
|
19
|
-
export declare const cleanDigitSectionValue: (adapter: MuiPickersAdapter, value: number, sectionBoundaries: FieldSectionValueBoundaries<any>, localizedDigits: string[], section: Pick<FieldSection,
|
|
20
|
-
export declare const getSectionVisibleValue: (section: FieldSection, target:
|
|
19
|
+
export declare const cleanDigitSectionValue: (adapter: MuiPickersAdapter, value: number, sectionBoundaries: FieldSectionValueBoundaries<any>, localizedDigits: string[], section: Pick<FieldSection, 'format' | 'type' | 'contentType' | 'hasLeadingZerosInFormat' | 'hasLeadingZerosInInput' | 'maxLength'>) => string;
|
|
20
|
+
export declare const getSectionVisibleValue: (section: FieldSection, target: 'input-rtl' | 'input-ltr' | 'non-input', localizedDigits: string[]) => string;
|
|
21
21
|
export declare const changeSectionValueFormat: (adapter: MuiPickersAdapter, valueStr: string, currentFormat: string, newFormat: string) => string;
|
|
22
22
|
export declare const doesSectionFormatHaveLeadingZeros: (adapter: MuiPickersAdapter, contentType: FieldSectionContentType, sectionType: FieldSectionType, format: string) => boolean;
|
|
23
23
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { FieldSectionsValueBoundaries, SectionOrdering, FieldSectionValueBoundaries, FieldParsedSelectedSections } from "./useField.types.js";
|
|
2
2
|
import type { FieldSectionType, FieldSection, MuiPickersAdapter, FieldSectionContentType, PickersTimezone, PickerValidDate, FieldSelectedSections, PickerValueType, InferFieldSection } from "../../../models/index.js";
|
|
3
3
|
import type { PickerValidValue } from "../../models/index.js";
|
|
4
|
-
export declare const getDateSectionConfigFromFormatToken: (adapter: MuiPickersAdapter, formatToken: string) => Pick<FieldSection,
|
|
4
|
+
export declare const getDateSectionConfigFromFormatToken: (adapter: MuiPickersAdapter, formatToken: string) => Pick<FieldSection, 'type' | 'contentType'> & {
|
|
5
5
|
maxLength: number | undefined;
|
|
6
6
|
};
|
|
7
7
|
export declare const getDaysInWeekStr: (adapter: MuiPickersAdapter, format: string) => string[];
|
|
@@ -16,8 +16,8 @@ export declare const isStringNumber: (valueStr: string, localizedDigits: string[
|
|
|
16
16
|
* Warning: Should only be called with non-localized digits. Call `removeLocalizedDigits` with your value if needed.
|
|
17
17
|
*/
|
|
18
18
|
export declare const cleanLeadingZeros: (valueStr: string, size: number) => string;
|
|
19
|
-
export declare const cleanDigitSectionValue: (adapter: MuiPickersAdapter, value: number, sectionBoundaries: FieldSectionValueBoundaries<any>, localizedDigits: string[], section: Pick<FieldSection,
|
|
20
|
-
export declare const getSectionVisibleValue: (section: FieldSection, target:
|
|
19
|
+
export declare const cleanDigitSectionValue: (adapter: MuiPickersAdapter, value: number, sectionBoundaries: FieldSectionValueBoundaries<any>, localizedDigits: string[], section: Pick<FieldSection, 'format' | 'type' | 'contentType' | 'hasLeadingZerosInFormat' | 'hasLeadingZerosInInput' | 'maxLength'>) => string;
|
|
20
|
+
export declare const getSectionVisibleValue: (section: FieldSection, target: 'input-rtl' | 'input-ltr' | 'non-input', localizedDigits: string[]) => string;
|
|
21
21
|
export declare const changeSectionValueFormat: (adapter: MuiPickersAdapter, valueStr: string, currentFormat: string, newFormat: string) => string;
|
|
22
22
|
export declare const doesSectionFormatHaveLeadingZeros: (adapter: MuiPickersAdapter, contentType: FieldSectionContentType, sectionType: FieldSectionType, format: string) => boolean;
|
|
23
23
|
/**
|
|
@@ -11,5 +11,5 @@ export declare const useMobilePicker: <TView extends DateOrTimeViewWithMeridiem,
|
|
|
11
11
|
steps,
|
|
12
12
|
...pickerParams
|
|
13
13
|
}: UseMobilePickerParams<TView, TExternalProps>) => {
|
|
14
|
-
renderPicker: () => import("react
|
|
14
|
+
renderPicker: () => import("react").JSX.Element;
|
|
15
15
|
};
|
|
@@ -11,5 +11,5 @@ export declare const useMobilePicker: <TView extends DateOrTimeViewWithMeridiem,
|
|
|
11
11
|
steps,
|
|
12
12
|
...pickerParams
|
|
13
13
|
}: UseMobilePickerParams<TView, TExternalProps>) => {
|
|
14
|
-
renderPicker: () => import("react
|
|
14
|
+
renderPicker: () => import("react").JSX.Element;
|
|
15
15
|
};
|
|
@@ -11,5 +11,5 @@ export declare const useStaticPicker: <TView extends DateOrTimeViewWithMeridiem,
|
|
|
11
11
|
steps,
|
|
12
12
|
...pickerParams
|
|
13
13
|
}: UseStaticPickerParams<TView, TExternalProps>) => {
|
|
14
|
-
renderPicker: () => import("react
|
|
14
|
+
renderPicker: () => import("react").JSX.Element;
|
|
15
15
|
};
|
|
@@ -11,5 +11,5 @@ export declare const useStaticPicker: <TView extends DateOrTimeViewWithMeridiem,
|
|
|
11
11
|
steps,
|
|
12
12
|
...pickerParams
|
|
13
13
|
}: UseStaticPickerParams<TView, TExternalProps>) => {
|
|
14
|
-
renderPicker: () => import("react
|
|
14
|
+
renderPicker: () => import("react").JSX.Element;
|
|
15
15
|
};
|
|
@@ -26,8 +26,8 @@ export declare const applyDefaultDate: (adapter: MuiPickersAdapter, value: Picke
|
|
|
26
26
|
export declare const areDatesEqual: (adapter: MuiPickersAdapter, a: PickerValidDate | null, b: PickerValidDate | null) => boolean;
|
|
27
27
|
export declare const getMonthsInYear: (adapter: MuiPickersAdapter, year: PickerValidDate) => PickerValidDate[];
|
|
28
28
|
export declare const getTodayDate: (adapter: MuiPickersAdapter, timezone: PickersTimezone, valueType?: PickerValueType) => PickerValidDate;
|
|
29
|
-
export declare const formatMeridiem: (adapter: MuiPickersAdapter, meridiem:
|
|
30
|
-
export declare const DATE_VIEWS: readonly [
|
|
29
|
+
export declare const formatMeridiem: (adapter: MuiPickersAdapter, meridiem: 'am' | 'pm') => string;
|
|
30
|
+
export declare const DATE_VIEWS: readonly ['year', 'month', 'day'];
|
|
31
31
|
export declare const isDatePickerView: (view: DateOrTimeViewWithMeridiem) => view is DateView;
|
|
32
32
|
export declare const resolveDateFormat: (adapter: MuiPickersAdapter, {
|
|
33
33
|
format,
|
|
@@ -26,8 +26,8 @@ export declare const applyDefaultDate: (adapter: MuiPickersAdapter, value: Picke
|
|
|
26
26
|
export declare const areDatesEqual: (adapter: MuiPickersAdapter, a: PickerValidDate | null, b: PickerValidDate | null) => boolean;
|
|
27
27
|
export declare const getMonthsInYear: (adapter: MuiPickersAdapter, year: PickerValidDate) => PickerValidDate[];
|
|
28
28
|
export declare const getTodayDate: (adapter: MuiPickersAdapter, timezone: PickersTimezone, valueType?: PickerValueType) => PickerValidDate;
|
|
29
|
-
export declare const formatMeridiem: (adapter: MuiPickersAdapter, meridiem:
|
|
30
|
-
export declare const DATE_VIEWS: readonly [
|
|
29
|
+
export declare const formatMeridiem: (adapter: MuiPickersAdapter, meridiem: 'am' | 'pm') => string;
|
|
30
|
+
export declare const DATE_VIEWS: readonly ['year', 'month', 'day'];
|
|
31
31
|
export declare const isDatePickerView: (view: DateOrTimeViewWithMeridiem) => view is DateView;
|
|
32
32
|
export declare const resolveDateFormat: (adapter: MuiPickersAdapter, {
|
|
33
33
|
format,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { MuiPickersAdapter, PickerValidDate } from "../../models/index.mjs";
|
|
2
2
|
import type { DateOrTimeViewWithMeridiem, TimeViewWithMeridiem } from "../models/index.mjs";
|
|
3
|
-
export declare const EXPORTED_TIME_VIEWS: readonly [
|
|
4
|
-
export declare const TIME_VIEWS: readonly [
|
|
3
|
+
export declare const EXPORTED_TIME_VIEWS: readonly ['hours', 'minutes', 'seconds'];
|
|
4
|
+
export declare const TIME_VIEWS: readonly ['hours', 'minutes', 'seconds', 'meridiem'];
|
|
5
5
|
export declare const isTimeView: (view: DateOrTimeViewWithMeridiem) => boolean;
|
|
6
6
|
export declare const isInternalTimeView: (view: DateOrTimeViewWithMeridiem) => view is TimeViewWithMeridiem;
|
|
7
7
|
export type Meridiem = 'am' | 'pm';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { MuiPickersAdapter, PickerValidDate } from "../../models/index.js";
|
|
2
2
|
import type { DateOrTimeViewWithMeridiem, TimeViewWithMeridiem } from "../models/index.js";
|
|
3
|
-
export declare const EXPORTED_TIME_VIEWS: readonly [
|
|
4
|
-
export declare const TIME_VIEWS: readonly [
|
|
3
|
+
export declare const EXPORTED_TIME_VIEWS: readonly ['hours', 'minutes', 'seconds'];
|
|
4
|
+
export declare const TIME_VIEWS: readonly ['hours', 'minutes', 'seconds', 'meridiem'];
|
|
5
5
|
export declare const isTimeView: (view: DateOrTimeViewWithMeridiem) => boolean;
|
|
6
6
|
export declare const isInternalTimeView: (view: DateOrTimeViewWithMeridiem) => view is TimeViewWithMeridiem;
|
|
7
7
|
export type Meridiem = 'am' | 'pm';
|
package/locales/beBY.d.mts
CHANGED
|
@@ -4,6 +4,11 @@ export declare const beBY: {
|
|
|
4
4
|
MuiLocalizationProvider: {
|
|
5
5
|
defaultProps: {
|
|
6
6
|
localeText: {
|
|
7
|
+
datePickerToolbarTitle?: string | undefined;
|
|
8
|
+
timePickerToolbarTitle?: string | undefined;
|
|
9
|
+
dateTimePickerToolbarTitle?: string | undefined;
|
|
10
|
+
dateRangePickerToolbarTitle?: string | undefined;
|
|
11
|
+
timeRangePickerToolbarTitle?: string | undefined;
|
|
7
12
|
previousMonth?: string | undefined;
|
|
8
13
|
nextMonth?: string | undefined;
|
|
9
14
|
calendarWeekNumberHeaderLabel?: string | undefined;
|
|
@@ -71,11 +76,6 @@ export declare const beBY: {
|
|
|
71
76
|
seconds?: string | undefined;
|
|
72
77
|
meridiem?: string | undefined;
|
|
73
78
|
empty?: string | undefined;
|
|
74
|
-
datePickerToolbarTitle?: string | undefined;
|
|
75
|
-
timePickerToolbarTitle?: string | undefined;
|
|
76
|
-
dateTimePickerToolbarTitle?: string | undefined;
|
|
77
|
-
dateRangePickerToolbarTitle?: string | undefined;
|
|
78
|
-
timeRangePickerToolbarTitle?: string | undefined;
|
|
79
79
|
};
|
|
80
80
|
};
|
|
81
81
|
};
|
package/locales/beBY.d.ts
CHANGED
|
@@ -4,6 +4,11 @@ export declare const beBY: {
|
|
|
4
4
|
MuiLocalizationProvider: {
|
|
5
5
|
defaultProps: {
|
|
6
6
|
localeText: {
|
|
7
|
+
datePickerToolbarTitle?: string | undefined;
|
|
8
|
+
timePickerToolbarTitle?: string | undefined;
|
|
9
|
+
dateTimePickerToolbarTitle?: string | undefined;
|
|
10
|
+
dateRangePickerToolbarTitle?: string | undefined;
|
|
11
|
+
timeRangePickerToolbarTitle?: string | undefined;
|
|
7
12
|
previousMonth?: string | undefined;
|
|
8
13
|
nextMonth?: string | undefined;
|
|
9
14
|
calendarWeekNumberHeaderLabel?: string | undefined;
|
|
@@ -71,11 +76,6 @@ export declare const beBY: {
|
|
|
71
76
|
seconds?: string | undefined;
|
|
72
77
|
meridiem?: string | undefined;
|
|
73
78
|
empty?: string | undefined;
|
|
74
|
-
datePickerToolbarTitle?: string | undefined;
|
|
75
|
-
timePickerToolbarTitle?: string | undefined;
|
|
76
|
-
dateTimePickerToolbarTitle?: string | undefined;
|
|
77
|
-
dateRangePickerToolbarTitle?: string | undefined;
|
|
78
|
-
timeRangePickerToolbarTitle?: string | undefined;
|
|
79
79
|
};
|
|
80
80
|
};
|
|
81
81
|
};
|
package/locales/bgBG.d.mts
CHANGED
|
@@ -4,6 +4,11 @@ export declare const bgBG: {
|
|
|
4
4
|
MuiLocalizationProvider: {
|
|
5
5
|
defaultProps: {
|
|
6
6
|
localeText: {
|
|
7
|
+
datePickerToolbarTitle?: string | undefined;
|
|
8
|
+
timePickerToolbarTitle?: string | undefined;
|
|
9
|
+
dateTimePickerToolbarTitle?: string | undefined;
|
|
10
|
+
dateRangePickerToolbarTitle?: string | undefined;
|
|
11
|
+
timeRangePickerToolbarTitle?: string | undefined;
|
|
7
12
|
previousMonth?: string | undefined;
|
|
8
13
|
nextMonth?: string | undefined;
|
|
9
14
|
calendarWeekNumberHeaderLabel?: string | undefined;
|
|
@@ -71,11 +76,6 @@ export declare const bgBG: {
|
|
|
71
76
|
seconds?: string | undefined;
|
|
72
77
|
meridiem?: string | undefined;
|
|
73
78
|
empty?: string | undefined;
|
|
74
|
-
datePickerToolbarTitle?: string | undefined;
|
|
75
|
-
timePickerToolbarTitle?: string | undefined;
|
|
76
|
-
dateTimePickerToolbarTitle?: string | undefined;
|
|
77
|
-
dateRangePickerToolbarTitle?: string | undefined;
|
|
78
|
-
timeRangePickerToolbarTitle?: string | undefined;
|
|
79
79
|
};
|
|
80
80
|
};
|
|
81
81
|
};
|
package/locales/bgBG.d.ts
CHANGED
|
@@ -4,6 +4,11 @@ export declare const bgBG: {
|
|
|
4
4
|
MuiLocalizationProvider: {
|
|
5
5
|
defaultProps: {
|
|
6
6
|
localeText: {
|
|
7
|
+
datePickerToolbarTitle?: string | undefined;
|
|
8
|
+
timePickerToolbarTitle?: string | undefined;
|
|
9
|
+
dateTimePickerToolbarTitle?: string | undefined;
|
|
10
|
+
dateRangePickerToolbarTitle?: string | undefined;
|
|
11
|
+
timeRangePickerToolbarTitle?: string | undefined;
|
|
7
12
|
previousMonth?: string | undefined;
|
|
8
13
|
nextMonth?: string | undefined;
|
|
9
14
|
calendarWeekNumberHeaderLabel?: string | undefined;
|
|
@@ -71,11 +76,6 @@ export declare const bgBG: {
|
|
|
71
76
|
seconds?: string | undefined;
|
|
72
77
|
meridiem?: string | undefined;
|
|
73
78
|
empty?: string | undefined;
|
|
74
|
-
datePickerToolbarTitle?: string | undefined;
|
|
75
|
-
timePickerToolbarTitle?: string | undefined;
|
|
76
|
-
dateTimePickerToolbarTitle?: string | undefined;
|
|
77
|
-
dateRangePickerToolbarTitle?: string | undefined;
|
|
78
|
-
timeRangePickerToolbarTitle?: string | undefined;
|
|
79
79
|
};
|
|
80
80
|
};
|
|
81
81
|
};
|
package/locales/bnBD.d.mts
CHANGED
|
@@ -4,6 +4,11 @@ export declare const bnBD: {
|
|
|
4
4
|
MuiLocalizationProvider: {
|
|
5
5
|
defaultProps: {
|
|
6
6
|
localeText: {
|
|
7
|
+
datePickerToolbarTitle?: string | undefined;
|
|
8
|
+
timePickerToolbarTitle?: string | undefined;
|
|
9
|
+
dateTimePickerToolbarTitle?: string | undefined;
|
|
10
|
+
dateRangePickerToolbarTitle?: string | undefined;
|
|
11
|
+
timeRangePickerToolbarTitle?: string | undefined;
|
|
7
12
|
previousMonth?: string | undefined;
|
|
8
13
|
nextMonth?: string | undefined;
|
|
9
14
|
calendarWeekNumberHeaderLabel?: string | undefined;
|
|
@@ -71,11 +76,6 @@ export declare const bnBD: {
|
|
|
71
76
|
seconds?: string | undefined;
|
|
72
77
|
meridiem?: string | undefined;
|
|
73
78
|
empty?: string | undefined;
|
|
74
|
-
datePickerToolbarTitle?: string | undefined;
|
|
75
|
-
timePickerToolbarTitle?: string | undefined;
|
|
76
|
-
dateTimePickerToolbarTitle?: string | undefined;
|
|
77
|
-
dateRangePickerToolbarTitle?: string | undefined;
|
|
78
|
-
timeRangePickerToolbarTitle?: string | undefined;
|
|
79
79
|
};
|
|
80
80
|
};
|
|
81
81
|
};
|