From 23e861377465a8d3c1a48222a0203d1591f12b63 Mon Sep 17 00:00:00 2001 From: eps1lon Date: Wed, 27 Jan 2021 17:06:25 +0100 Subject: [PATCH 1/4] Unlock /api for *DatePicker --- packages/material-ui-lab/src/DatePicker/DatePicker.tsx | 5 +---- .../src/DesktopDatePicker/DesktopDatePicker.tsx | 5 +---- .../src/MobileDatePicker/MobileDatePicker.tsx | 5 +---- .../src/StaticDatePicker/StaticDatePicker.tsx | 5 +---- scripts/generateProptypes.ts | 4 ---- 5 files changed, 4 insertions(+), 20 deletions(-) diff --git a/packages/material-ui-lab/src/DatePicker/DatePicker.tsx b/packages/material-ui-lab/src/DatePicker/DatePicker.tsx index c78d4d02a12d24..e89f7c29b715f7 100644 --- a/packages/material-ui-lab/src/DatePicker/DatePicker.tsx +++ b/packages/material-ui-lab/src/DatePicker/DatePicker.tsx @@ -66,10 +66,7 @@ export type DatePickerGenericComponent = ( props: BaseDatePickerProps & SharedPickerProps, ) => JSX.Element; -/** - * @ignore - do not document. - */ -/* @typescript-to-proptypes-generate */ +// @typescript-to-proptypes-generate const DatePicker = makePickerWithStateAndWrapper>(ResponsiveWrapper, { name: 'MuiDatePicker', ...datePickerConfig, diff --git a/packages/material-ui-lab/src/DesktopDatePicker/DesktopDatePicker.tsx b/packages/material-ui-lab/src/DesktopDatePicker/DesktopDatePicker.tsx index 1be5a309235ee4..dc3b8f62f0ec29 100644 --- a/packages/material-ui-lab/src/DesktopDatePicker/DesktopDatePicker.tsx +++ b/packages/material-ui-lab/src/DesktopDatePicker/DesktopDatePicker.tsx @@ -7,10 +7,7 @@ import { import { DesktopWrapper } from '../internal/pickers/wrappers/Wrapper'; import { makePickerWithStateAndWrapper } from '../internal/pickers/Picker/makePickerWithState'; -/** - * @ignore - do not document. - */ -/* @typescript-to-proptypes-generate */ +// @typescript-to-proptypes-generate const DesktopDatePicker = makePickerWithStateAndWrapper>( DesktopWrapper, { diff --git a/packages/material-ui-lab/src/MobileDatePicker/MobileDatePicker.tsx b/packages/material-ui-lab/src/MobileDatePicker/MobileDatePicker.tsx index 48f692702aaec9..cdbdb5729d684a 100644 --- a/packages/material-ui-lab/src/MobileDatePicker/MobileDatePicker.tsx +++ b/packages/material-ui-lab/src/MobileDatePicker/MobileDatePicker.tsx @@ -7,10 +7,7 @@ import { } from '../DatePicker/DatePicker'; import { MobileWrapper } from '../internal/pickers/wrappers/Wrapper'; -/** - * @ignore - do not document. - */ -/* @typescript-to-proptypes-generate */ +// @typescript-to-proptypes-generate const MobileDatePicker = makePickerWithStateAndWrapper>( MobileWrapper, { diff --git a/packages/material-ui-lab/src/StaticDatePicker/StaticDatePicker.tsx b/packages/material-ui-lab/src/StaticDatePicker/StaticDatePicker.tsx index 27bcecf4e2f998..17ac8e3383fc54 100644 --- a/packages/material-ui-lab/src/StaticDatePicker/StaticDatePicker.tsx +++ b/packages/material-ui-lab/src/StaticDatePicker/StaticDatePicker.tsx @@ -7,10 +7,7 @@ import { } from '../DatePicker/DatePicker'; import { StaticWrapper } from '../internal/pickers/wrappers/Wrapper'; -/** - * @ignore - do not document. - */ -/* @typescript-to-proptypes-generate */ +// @typescript-to-proptypes-generate const StaticDatePicker = makePickerWithStateAndWrapper>( StaticWrapper, { diff --git a/scripts/generateProptypes.ts b/scripts/generateProptypes.ts index 418bb7c6f15bf6..021b60d69c6ecf 100644 --- a/scripts/generateProptypes.ts +++ b/scripts/generateProptypes.ts @@ -27,23 +27,19 @@ const todoComponents: string[] = []; const todoComponentsTs: string[] = [ 'ClockPicker', - 'DatePicker', 'DateRangePicker', 'DateRangePickerDay', 'DayPicker', - 'DesktopDatePicker', 'DesktopDateRangePicker', 'StaticDateRangePicker', 'MobileDateRangePicker', 'DateTimePicker', 'DesktopDateTimePicker', 'LocalizationProvider', - 'MobileDatePicker', 'MobileDateTimePicker', 'MonthPicker', 'PickersCalendarSkeleton', 'PickersDay', - 'StaticDatePicker', 'StaticDateTimePicker', 'YearPicker', ]; From 2914149b9005f31c99549b55a40028ead234855b Mon Sep 17 00:00:00 2001 From: eps1lon Date: Wed, 27 Jan 2021 17:10:55 +0100 Subject: [PATCH 2/4] yarn proptypes --- packages/material-ui-lab/src/DatePicker/DatePicker.tsx | 6 +++--- .../src/DesktopDatePicker/DesktopDatePicker.tsx | 2 +- .../src/MobileDatePicker/MobileDatePicker.tsx | 2 +- .../src/StaticDatePicker/StaticDatePicker.tsx | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/material-ui-lab/src/DatePicker/DatePicker.tsx b/packages/material-ui-lab/src/DatePicker/DatePicker.tsx index e89f7c29b715f7..6c9b4c9b17db12 100644 --- a/packages/material-ui-lab/src/DatePicker/DatePicker.tsx +++ b/packages/material-ui-lab/src/DatePicker/DatePicker.tsx @@ -62,9 +62,9 @@ export const datePickerConfig = { }, }; -export type DatePickerGenericComponent = ( +export type DatePickerGenericComponent = (( props: BaseDatePickerProps & SharedPickerProps, -) => JSX.Element; +) => JSX.Element) & { propTypes?: unknown }; // @typescript-to-proptypes-generate const DatePicker = makePickerWithStateAndWrapper>(ResponsiveWrapper, { @@ -72,7 +72,7 @@ const DatePicker = makePickerWithStateAndWrapper>(R ...datePickerConfig, }) as DatePickerGenericComponent; -(DatePicker as any).propTypes = { +DatePicker.propTypes = { // ----------------------------- Warning -------------------------------- // | These PropTypes are generated from the TypeScript type definitions | // | To update them edit TypeScript types and run "yarn proptypes" | diff --git a/packages/material-ui-lab/src/DesktopDatePicker/DesktopDatePicker.tsx b/packages/material-ui-lab/src/DesktopDatePicker/DesktopDatePicker.tsx index dc3b8f62f0ec29..366f1a483c73eb 100644 --- a/packages/material-ui-lab/src/DesktopDatePicker/DesktopDatePicker.tsx +++ b/packages/material-ui-lab/src/DesktopDatePicker/DesktopDatePicker.tsx @@ -16,7 +16,7 @@ const DesktopDatePicker = makePickerWithStateAndWrapper; -(DesktopDatePicker as any).propTypes = { +DesktopDatePicker.propTypes = { // ----------------------------- Warning -------------------------------- // | These PropTypes are generated from the TypeScript type definitions | // | To update them edit TypeScript types and run "yarn proptypes" | diff --git a/packages/material-ui-lab/src/MobileDatePicker/MobileDatePicker.tsx b/packages/material-ui-lab/src/MobileDatePicker/MobileDatePicker.tsx index cdbdb5729d684a..9846c636645400 100644 --- a/packages/material-ui-lab/src/MobileDatePicker/MobileDatePicker.tsx +++ b/packages/material-ui-lab/src/MobileDatePicker/MobileDatePicker.tsx @@ -16,7 +16,7 @@ const MobileDatePicker = makePickerWithStateAndWrapper; -(MobileDatePicker as any).propTypes = { +MobileDatePicker.propTypes = { // ----------------------------- Warning -------------------------------- // | These PropTypes are generated from the TypeScript type definitions | // | To update them edit TypeScript types and run "yarn proptypes" | diff --git a/packages/material-ui-lab/src/StaticDatePicker/StaticDatePicker.tsx b/packages/material-ui-lab/src/StaticDatePicker/StaticDatePicker.tsx index 17ac8e3383fc54..f6c6b1b3cb1e7b 100644 --- a/packages/material-ui-lab/src/StaticDatePicker/StaticDatePicker.tsx +++ b/packages/material-ui-lab/src/StaticDatePicker/StaticDatePicker.tsx @@ -16,7 +16,7 @@ const StaticDatePicker = makePickerWithStateAndWrapper; -(StaticDatePicker as any).propTypes = { +StaticDatePicker.propTypes = { // ----------------------------- Warning -------------------------------- // | These PropTypes are generated from the TypeScript type definitions | // | To update them edit TypeScript types and run "yarn proptypes" | From b43bf6415e7cda5f56ea125f3f19726e3b94ef3f Mon Sep 17 00:00:00 2001 From: eps1lon Date: Wed, 27 Jan 2021 17:13:22 +0100 Subject: [PATCH 3/4] yarn docs:api --- docs/pages/api-docs/date-picker.js | 23 ++++++++ docs/pages/api-docs/date-picker.json | 55 +++++++++++++++++++ docs/pages/api-docs/desktop-date-picker.js | 23 ++++++++ docs/pages/api-docs/desktop-date-picker.json | 50 +++++++++++++++++ docs/pages/api-docs/mobile-date-picker.js | 23 ++++++++ docs/pages/api-docs/mobile-date-picker.json | 55 +++++++++++++++++++ docs/pages/api-docs/static-date-picker.js | 23 ++++++++ docs/pages/api-docs/static-date-picker.json | 51 +++++++++++++++++ docs/src/pagesApi.js | 4 ++ .../api-docs/date-picker/date-picker-de.json | 42 ++++++++++++++ .../api-docs/date-picker/date-picker-es.json | 42 ++++++++++++++ .../api-docs/date-picker/date-picker-fr.json | 42 ++++++++++++++ .../api-docs/date-picker/date-picker-ja.json | 42 ++++++++++++++ .../api-docs/date-picker/date-picker-pt.json | 42 ++++++++++++++ .../api-docs/date-picker/date-picker-ru.json | 42 ++++++++++++++ .../api-docs/date-picker/date-picker-zh.json | 42 ++++++++++++++ .../api-docs/date-picker/date-picker.json | 42 ++++++++++++++ .../desktop-date-picker-de.json | 37 +++++++++++++ .../desktop-date-picker-es.json | 37 +++++++++++++ .../desktop-date-picker-fr.json | 37 +++++++++++++ .../desktop-date-picker-ja.json | 37 +++++++++++++ .../desktop-date-picker-pt.json | 37 +++++++++++++ .../desktop-date-picker-ru.json | 37 +++++++++++++ .../desktop-date-picker-zh.json | 37 +++++++++++++ .../desktop-date-picker.json | 37 +++++++++++++ .../mobile-date-picker-de.json | 42 ++++++++++++++ .../mobile-date-picker-es.json | 42 ++++++++++++++ .../mobile-date-picker-fr.json | 42 ++++++++++++++ .../mobile-date-picker-ja.json | 42 ++++++++++++++ .../mobile-date-picker-pt.json | 42 ++++++++++++++ .../mobile-date-picker-ru.json | 42 ++++++++++++++ .../mobile-date-picker-zh.json | 42 ++++++++++++++ .../mobile-date-picker.json | 42 ++++++++++++++ .../static-date-picker-de.json | 36 ++++++++++++ .../static-date-picker-es.json | 36 ++++++++++++ .../static-date-picker-fr.json | 36 ++++++++++++ .../static-date-picker-ja.json | 36 ++++++++++++ .../static-date-picker-pt.json | 36 ++++++++++++ .../static-date-picker-ru.json | 36 ++++++++++++ .../static-date-picker-zh.json | 36 ++++++++++++ .../static-date-picker.json | 36 ++++++++++++ .../src/DatePicker/DatePicker.tsx | 10 ++++ .../DesktopDatePicker/DesktopDatePicker.tsx | 6 ++ .../src/MobileDatePicker/MobileDatePicker.tsx | 6 ++ .../src/StaticDatePicker/StaticDatePicker.tsx | 6 ++ 45 files changed, 1591 insertions(+) create mode 100644 docs/pages/api-docs/date-picker.js create mode 100644 docs/pages/api-docs/date-picker.json create mode 100644 docs/pages/api-docs/desktop-date-picker.js create mode 100644 docs/pages/api-docs/desktop-date-picker.json create mode 100644 docs/pages/api-docs/mobile-date-picker.js create mode 100644 docs/pages/api-docs/mobile-date-picker.json create mode 100644 docs/pages/api-docs/static-date-picker.js create mode 100644 docs/pages/api-docs/static-date-picker.json create mode 100644 docs/translations/api-docs/date-picker/date-picker-de.json create mode 100644 docs/translations/api-docs/date-picker/date-picker-es.json create mode 100644 docs/translations/api-docs/date-picker/date-picker-fr.json create mode 100644 docs/translations/api-docs/date-picker/date-picker-ja.json create mode 100644 docs/translations/api-docs/date-picker/date-picker-pt.json create mode 100644 docs/translations/api-docs/date-picker/date-picker-ru.json create mode 100644 docs/translations/api-docs/date-picker/date-picker-zh.json create mode 100644 docs/translations/api-docs/date-picker/date-picker.json create mode 100644 docs/translations/api-docs/desktop-date-picker/desktop-date-picker-de.json create mode 100644 docs/translations/api-docs/desktop-date-picker/desktop-date-picker-es.json create mode 100644 docs/translations/api-docs/desktop-date-picker/desktop-date-picker-fr.json create mode 100644 docs/translations/api-docs/desktop-date-picker/desktop-date-picker-ja.json create mode 100644 docs/translations/api-docs/desktop-date-picker/desktop-date-picker-pt.json create mode 100644 docs/translations/api-docs/desktop-date-picker/desktop-date-picker-ru.json create mode 100644 docs/translations/api-docs/desktop-date-picker/desktop-date-picker-zh.json create mode 100644 docs/translations/api-docs/desktop-date-picker/desktop-date-picker.json create mode 100644 docs/translations/api-docs/mobile-date-picker/mobile-date-picker-de.json create mode 100644 docs/translations/api-docs/mobile-date-picker/mobile-date-picker-es.json create mode 100644 docs/translations/api-docs/mobile-date-picker/mobile-date-picker-fr.json create mode 100644 docs/translations/api-docs/mobile-date-picker/mobile-date-picker-ja.json create mode 100644 docs/translations/api-docs/mobile-date-picker/mobile-date-picker-pt.json create mode 100644 docs/translations/api-docs/mobile-date-picker/mobile-date-picker-ru.json create mode 100644 docs/translations/api-docs/mobile-date-picker/mobile-date-picker-zh.json create mode 100644 docs/translations/api-docs/mobile-date-picker/mobile-date-picker.json create mode 100644 docs/translations/api-docs/static-date-picker/static-date-picker-de.json create mode 100644 docs/translations/api-docs/static-date-picker/static-date-picker-es.json create mode 100644 docs/translations/api-docs/static-date-picker/static-date-picker-fr.json create mode 100644 docs/translations/api-docs/static-date-picker/static-date-picker-ja.json create mode 100644 docs/translations/api-docs/static-date-picker/static-date-picker-pt.json create mode 100644 docs/translations/api-docs/static-date-picker/static-date-picker-ru.json create mode 100644 docs/translations/api-docs/static-date-picker/static-date-picker-zh.json create mode 100644 docs/translations/api-docs/static-date-picker/static-date-picker.json diff --git a/docs/pages/api-docs/date-picker.js b/docs/pages/api-docs/date-picker.js new file mode 100644 index 00000000000000..497abcfb8b4000 --- /dev/null +++ b/docs/pages/api-docs/date-picker.js @@ -0,0 +1,23 @@ +import * as React from 'react'; +import ApiPage from 'docs/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './date-picker.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context( + 'docs/translations/api-docs/date-picker', + false, + /date-picker.*.json$/, + ); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/api-docs/date-picker.json b/docs/pages/api-docs/date-picker.json new file mode 100644 index 00000000000000..73e542adf3c2ee --- /dev/null +++ b/docs/pages/api-docs/date-picker.json @@ -0,0 +1,55 @@ +{ + "props": { + "onChange": { "type": { "name": "func" }, "required": true }, + "renderInput": { "type": { "name": "func" }, "required": true }, + "acceptRegex": { "type": { "name": "instanceOf", "description": "RegExp" } }, + "cancelText": { "type": { "name": "node" } }, + "className": { "type": { "name": "string" } }, + "clearable": { "type": { "name": "bool" } }, + "clearText": { "type": { "name": "node" } }, + "dateAdapter": { "type": { "name": "object" } }, + "DialogProps": { "type": { "name": "object" } }, + "disableCloseOnSelect": { "type": { "name": "bool" } }, + "disabled": { "type": { "name": "bool" } }, + "disableMaskedInput": { "type": { "name": "bool" } }, + "disableOpenPicker": { "type": { "name": "bool" } }, + "getOpenDialogAriaText": { "type": { "name": "func" } }, + "InputAdornmentProps": { "type": { "name": "object" } }, + "inputFormat": { "type": { "name": "string" } }, + "mask": { "type": { "name": "string" } }, + "okText": { "type": { "name": "node" } }, + "onAccept": { "type": { "name": "func" } }, + "onClose": { "type": { "name": "func" } }, + "onError": { "type": { "name": "func" } }, + "onOpen": { "type": { "name": "func" } }, + "open": { "type": { "name": "bool" } }, + "OpenPickerButtonProps": { "type": { "name": "object" } }, + "openPickerIcon": { "type": { "name": "node" } }, + "orientation": { + "type": { "name": "enum", "description": "'landscape'
| 'portrait'" } + }, + "readOnly": { "type": { "name": "bool" } }, + "rifmFormatter": { "type": { "name": "func" } }, + "showTodayButton": { "type": { "name": "bool" } }, + "showToolbar": { "type": { "name": "bool" } }, + "todayText": { "type": { "name": "node" } }, + "ToolbarComponent": { "type": { "name": "elementType" } }, + "toolbarFormat": { "type": { "name": "string" } }, + "toolbarPlaceholder": { "type": { "name": "node" } }, + "toolbarTitle": { "type": { "name": "node" } }, + "value": { + "type": { + "name": "union", + "description": "any
| Date
| number
| string" + } + } + }, + "name": "DatePicker", + "styles": { "classes": [], "globalClasses": {}, "name": null }, + "spread": true, + "filename": "/packages/material-ui-lab/src/DatePicker/DatePicker.tsx", + "inheritance": null, + "demos": "", + "styledComponent": true, + "cssComponent": false +} diff --git a/docs/pages/api-docs/desktop-date-picker.js b/docs/pages/api-docs/desktop-date-picker.js new file mode 100644 index 00000000000000..ef6b75255bbb27 --- /dev/null +++ b/docs/pages/api-docs/desktop-date-picker.js @@ -0,0 +1,23 @@ +import * as React from 'react'; +import ApiPage from 'docs/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './desktop-date-picker.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context( + 'docs/translations/api-docs/desktop-date-picker', + false, + /desktop-date-picker.*.json$/, + ); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/api-docs/desktop-date-picker.json b/docs/pages/api-docs/desktop-date-picker.json new file mode 100644 index 00000000000000..42ceaf39dbd691 --- /dev/null +++ b/docs/pages/api-docs/desktop-date-picker.json @@ -0,0 +1,50 @@ +{ + "props": { + "onChange": { "type": { "name": "func" }, "required": true }, + "renderInput": { "type": { "name": "func" }, "required": true }, + "acceptRegex": { "type": { "name": "instanceOf", "description": "RegExp" } }, + "className": { "type": { "name": "string" } }, + "dateAdapter": { "type": { "name": "object" } }, + "disableCloseOnSelect": { "type": { "name": "bool" } }, + "disabled": { "type": { "name": "bool" } }, + "disableMaskedInput": { "type": { "name": "bool" } }, + "disableOpenPicker": { "type": { "name": "bool" } }, + "getOpenDialogAriaText": { "type": { "name": "func" } }, + "InputAdornmentProps": { "type": { "name": "object" } }, + "inputFormat": { "type": { "name": "string" } }, + "mask": { "type": { "name": "string" } }, + "onAccept": { "type": { "name": "func" } }, + "onClose": { "type": { "name": "func" } }, + "onError": { "type": { "name": "func" } }, + "onOpen": { "type": { "name": "func" } }, + "open": { "type": { "name": "bool" } }, + "OpenPickerButtonProps": { "type": { "name": "object" } }, + "openPickerIcon": { "type": { "name": "node" } }, + "orientation": { + "type": { "name": "enum", "description": "'landscape'
| 'portrait'" } + }, + "PopperProps": { "type": { "name": "object" } }, + "readOnly": { "type": { "name": "bool" } }, + "rifmFormatter": { "type": { "name": "func" } }, + "showToolbar": { "type": { "name": "bool" } }, + "ToolbarComponent": { "type": { "name": "elementType" } }, + "toolbarFormat": { "type": { "name": "string" } }, + "toolbarPlaceholder": { "type": { "name": "node" } }, + "toolbarTitle": { "type": { "name": "node" } }, + "TransitionComponent": { "type": { "name": "elementType" } }, + "value": { + "type": { + "name": "union", + "description": "any
| Date
| number
| string" + } + } + }, + "name": "DesktopDatePicker", + "styles": { "classes": [], "globalClasses": {}, "name": null }, + "spread": true, + "filename": "/packages/material-ui-lab/src/DesktopDatePicker/DesktopDatePicker.tsx", + "inheritance": null, + "demos": "", + "styledComponent": true, + "cssComponent": false +} diff --git a/docs/pages/api-docs/mobile-date-picker.js b/docs/pages/api-docs/mobile-date-picker.js new file mode 100644 index 00000000000000..beb0c689697c2e --- /dev/null +++ b/docs/pages/api-docs/mobile-date-picker.js @@ -0,0 +1,23 @@ +import * as React from 'react'; +import ApiPage from 'docs/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './mobile-date-picker.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context( + 'docs/translations/api-docs/mobile-date-picker', + false, + /mobile-date-picker.*.json$/, + ); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/api-docs/mobile-date-picker.json b/docs/pages/api-docs/mobile-date-picker.json new file mode 100644 index 00000000000000..3d0b2fdfa77f12 --- /dev/null +++ b/docs/pages/api-docs/mobile-date-picker.json @@ -0,0 +1,55 @@ +{ + "props": { + "onChange": { "type": { "name": "func" }, "required": true }, + "renderInput": { "type": { "name": "func" }, "required": true }, + "acceptRegex": { "type": { "name": "instanceOf", "description": "RegExp" } }, + "cancelText": { "type": { "name": "node" } }, + "className": { "type": { "name": "string" } }, + "clearable": { "type": { "name": "bool" } }, + "clearText": { "type": { "name": "node" } }, + "dateAdapter": { "type": { "name": "object" } }, + "DialogProps": { "type": { "name": "object" } }, + "disableCloseOnSelect": { "type": { "name": "bool" } }, + "disabled": { "type": { "name": "bool" } }, + "disableMaskedInput": { "type": { "name": "bool" } }, + "disableOpenPicker": { "type": { "name": "bool" } }, + "getOpenDialogAriaText": { "type": { "name": "func" } }, + "InputAdornmentProps": { "type": { "name": "object" } }, + "inputFormat": { "type": { "name": "string" } }, + "mask": { "type": { "name": "string" } }, + "okText": { "type": { "name": "node" } }, + "onAccept": { "type": { "name": "func" } }, + "onClose": { "type": { "name": "func" } }, + "onError": { "type": { "name": "func" } }, + "onOpen": { "type": { "name": "func" } }, + "open": { "type": { "name": "bool" } }, + "OpenPickerButtonProps": { "type": { "name": "object" } }, + "openPickerIcon": { "type": { "name": "node" } }, + "orientation": { + "type": { "name": "enum", "description": "'landscape'
| 'portrait'" } + }, + "readOnly": { "type": { "name": "bool" } }, + "rifmFormatter": { "type": { "name": "func" } }, + "showTodayButton": { "type": { "name": "bool" } }, + "showToolbar": { "type": { "name": "bool" } }, + "todayText": { "type": { "name": "node" } }, + "ToolbarComponent": { "type": { "name": "elementType" } }, + "toolbarFormat": { "type": { "name": "string" } }, + "toolbarPlaceholder": { "type": { "name": "node" } }, + "toolbarTitle": { "type": { "name": "node" } }, + "value": { + "type": { + "name": "union", + "description": "any
| Date
| number
| string" + } + } + }, + "name": "MobileDatePicker", + "styles": { "classes": [], "globalClasses": {}, "name": null }, + "spread": true, + "filename": "/packages/material-ui-lab/src/MobileDatePicker/MobileDatePicker.tsx", + "inheritance": null, + "demos": "", + "styledComponent": true, + "cssComponent": false +} diff --git a/docs/pages/api-docs/static-date-picker.js b/docs/pages/api-docs/static-date-picker.js new file mode 100644 index 00000000000000..c7d13ab945f2fc --- /dev/null +++ b/docs/pages/api-docs/static-date-picker.js @@ -0,0 +1,23 @@ +import * as React from 'react'; +import ApiPage from 'docs/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './static-date-picker.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context( + 'docs/translations/api-docs/static-date-picker', + false, + /static-date-picker.*.json$/, + ); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/api-docs/static-date-picker.json b/docs/pages/api-docs/static-date-picker.json new file mode 100644 index 00000000000000..1ced57b8d3a6a2 --- /dev/null +++ b/docs/pages/api-docs/static-date-picker.json @@ -0,0 +1,51 @@ +{ + "props": { + "onChange": { "type": { "name": "func" }, "required": true }, + "renderInput": { "type": { "name": "func" }, "required": true }, + "acceptRegex": { "type": { "name": "instanceOf", "description": "RegExp" } }, + "className": { "type": { "name": "string" } }, + "dateAdapter": { "type": { "name": "object" } }, + "disableCloseOnSelect": { "type": { "name": "bool" } }, + "disabled": { "type": { "name": "bool" } }, + "disableMaskedInput": { "type": { "name": "bool" } }, + "disableOpenPicker": { "type": { "name": "bool" } }, + "displayStaticWrapperAs": { + "type": { "name": "enum", "description": "'desktop'
| 'mobile'" } + }, + "getOpenDialogAriaText": { "type": { "name": "func" } }, + "InputAdornmentProps": { "type": { "name": "object" } }, + "inputFormat": { "type": { "name": "string" } }, + "mask": { "type": { "name": "string" } }, + "onAccept": { "type": { "name": "func" } }, + "onClose": { "type": { "name": "func" } }, + "onError": { "type": { "name": "func" } }, + "onOpen": { "type": { "name": "func" } }, + "open": { "type": { "name": "bool" } }, + "OpenPickerButtonProps": { "type": { "name": "object" } }, + "openPickerIcon": { "type": { "name": "node" } }, + "orientation": { + "type": { "name": "enum", "description": "'landscape'
| 'portrait'" } + }, + "readOnly": { "type": { "name": "bool" } }, + "rifmFormatter": { "type": { "name": "func" } }, + "showToolbar": { "type": { "name": "bool" } }, + "ToolbarComponent": { "type": { "name": "elementType" } }, + "toolbarFormat": { "type": { "name": "string" } }, + "toolbarPlaceholder": { "type": { "name": "node" } }, + "toolbarTitle": { "type": { "name": "node" } }, + "value": { + "type": { + "name": "union", + "description": "any
| Date
| number
| string" + } + } + }, + "name": "StaticDatePicker", + "styles": { "classes": [], "globalClasses": {}, "name": null }, + "spread": true, + "filename": "/packages/material-ui-lab/src/StaticDatePicker/StaticDatePicker.tsx", + "inheritance": null, + "demos": "", + "styledComponent": true, + "cssComponent": false +} diff --git a/docs/src/pagesApi.js b/docs/src/pagesApi.js index 048c227e7f6996..8d5bb484127279 100644 --- a/docs/src/pagesApi.js +++ b/docs/src/pagesApi.js @@ -31,6 +31,8 @@ module.exports = [ { pathname: '/api-docs/collapse' }, { pathname: '/api-docs/container' }, { pathname: '/api-docs/css-baseline' }, + { pathname: '/api-docs/date-picker' }, + { pathname: '/api-docs/desktop-date-picker' }, { pathname: '/api-docs/desktop-time-picker' }, { pathname: '/api-docs/dialog' }, { pathname: '/api-docs/dialog-actions' }, @@ -72,6 +74,7 @@ module.exports = [ { pathname: '/api-docs/menu' }, { pathname: '/api-docs/menu-item' }, { pathname: '/api-docs/menu-list' }, + { pathname: '/api-docs/mobile-date-picker' }, { pathname: '/api-docs/mobile-stepper' }, { pathname: '/api-docs/mobile-time-picker' }, { pathname: '/api-docs/modal' }, @@ -98,6 +101,7 @@ module.exports = [ { pathname: '/api-docs/speed-dial' }, { pathname: '/api-docs/speed-dial-action' }, { pathname: '/api-docs/speed-dial-icon' }, + { pathname: '/api-docs/static-date-picker' }, { pathname: '/api-docs/static-time-picker' }, { pathname: '/api-docs/step' }, { pathname: '/api-docs/step-button' }, diff --git a/docs/translations/api-docs/date-picker/date-picker-de.json b/docs/translations/api-docs/date-picker/date-picker-de.json new file mode 100644 index 00000000000000..735376f4fcc0bd --- /dev/null +++ b/docs/translations/api-docs/date-picker/date-picker-de.json @@ -0,0 +1,42 @@ +{ + "componentDescription": "", + "propDescriptions": { + "acceptRegex": "Regular expression to detect "accepted" symbols.", + "cancelText": "Cancel text message", + "className": "className applied to the root component.", + "clearable": "If true, it shows the clear action in the picker dialog.", + "clearText": "Clear text message", + "dateAdapter": "Allows to pass configured date-io adapter directly. More info here jsx dateAdapter={new AdapterDateFns({ locale: ruLocale })} ", + "DialogProps": "Props applied to the Dialog element.", + "disableCloseOnSelect": "If true the popup or dialog will immediately close after submitting full date.", + "disabled": "If true, the picker and text field are disabled.", + "disableMaskedInput": "Disable mask on the keyboard, this should be used rarely. Consider passing proper mask for your format.", + "disableOpenPicker": "Do not render open picker button (renders only text field with validation).", + "getOpenDialogAriaText": "Get aria-label text for control that opens picker dialog. Aria-label text must include selected date. @DateIOType", + "InputAdornmentProps": "Props to pass to keyboard input adornment.", + "inputFormat": "Format string.", + "mask": "Custom mask. Can be used to override generate from format. (e.g. //__ __: or //__ __: _M)", + "okText": "Ok button text.", + "onAccept": "Callback fired when date is accepted @DateIOType.", + "onChange": "Callback fired when the value (the selected date) changes. @DateIOType.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback that fired when input value or new value prop validation returns new validation error (or value is valid after error). In case of validation error detected reason prop return non-null value and TextField must be displayed in error state. This can be used to render appropriate form error.
Read the guide about form integration and error displaying.", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "open": "Control the popup or dialog open state.", + "OpenPickerButtonProps": "Props to pass to keyboard adornment button.", + "openPickerIcon": "Icon displaying for open picker button.", + "orientation": "Force rendering in particular orientation.", + "readOnly": "Make picker read only.", + "renderInput": "The renderInput prop allows you to customize the rendered input. The props argument of this render prop contains props of TextField that you need to forward. Pay specific attention to the ref and inputProps keys.", + "rifmFormatter": "Custom formatter to be passed into Rifm component.", + "showTodayButton": "If true, the today button is displayed. Note that showClearButton has a higher priority.", + "showToolbar": "If true, show the toolbar even in desktop mode.", + "todayText": "Today text message", + "ToolbarComponent": "Component that will replace default toolbar renderer.", + "toolbarFormat": "Date format, that is displaying in toolbar.", + "toolbarPlaceholder": "Mobile picker date value placeholder, displaying if value === null.", + "toolbarTitle": "Mobile picker title, displaying in the toolbar.", + "value": "The value of the picker." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs/date-picker/date-picker-es.json b/docs/translations/api-docs/date-picker/date-picker-es.json new file mode 100644 index 00000000000000..735376f4fcc0bd --- /dev/null +++ b/docs/translations/api-docs/date-picker/date-picker-es.json @@ -0,0 +1,42 @@ +{ + "componentDescription": "", + "propDescriptions": { + "acceptRegex": "Regular expression to detect "accepted" symbols.", + "cancelText": "Cancel text message", + "className": "className applied to the root component.", + "clearable": "If true, it shows the clear action in the picker dialog.", + "clearText": "Clear text message", + "dateAdapter": "Allows to pass configured date-io adapter directly. More info here jsx dateAdapter={new AdapterDateFns({ locale: ruLocale })} ", + "DialogProps": "Props applied to the Dialog element.", + "disableCloseOnSelect": "If true the popup or dialog will immediately close after submitting full date.", + "disabled": "If true, the picker and text field are disabled.", + "disableMaskedInput": "Disable mask on the keyboard, this should be used rarely. Consider passing proper mask for your format.", + "disableOpenPicker": "Do not render open picker button (renders only text field with validation).", + "getOpenDialogAriaText": "Get aria-label text for control that opens picker dialog. Aria-label text must include selected date. @DateIOType", + "InputAdornmentProps": "Props to pass to keyboard input adornment.", + "inputFormat": "Format string.", + "mask": "Custom mask. Can be used to override generate from format. (e.g. //__ __: or //__ __: _M)", + "okText": "Ok button text.", + "onAccept": "Callback fired when date is accepted @DateIOType.", + "onChange": "Callback fired when the value (the selected date) changes. @DateIOType.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback that fired when input value or new value prop validation returns new validation error (or value is valid after error). In case of validation error detected reason prop return non-null value and TextField must be displayed in error state. This can be used to render appropriate form error.
Read the guide about form integration and error displaying.", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "open": "Control the popup or dialog open state.", + "OpenPickerButtonProps": "Props to pass to keyboard adornment button.", + "openPickerIcon": "Icon displaying for open picker button.", + "orientation": "Force rendering in particular orientation.", + "readOnly": "Make picker read only.", + "renderInput": "The renderInput prop allows you to customize the rendered input. The props argument of this render prop contains props of TextField that you need to forward. Pay specific attention to the ref and inputProps keys.", + "rifmFormatter": "Custom formatter to be passed into Rifm component.", + "showTodayButton": "If true, the today button is displayed. Note that showClearButton has a higher priority.", + "showToolbar": "If true, show the toolbar even in desktop mode.", + "todayText": "Today text message", + "ToolbarComponent": "Component that will replace default toolbar renderer.", + "toolbarFormat": "Date format, that is displaying in toolbar.", + "toolbarPlaceholder": "Mobile picker date value placeholder, displaying if value === null.", + "toolbarTitle": "Mobile picker title, displaying in the toolbar.", + "value": "The value of the picker." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs/date-picker/date-picker-fr.json b/docs/translations/api-docs/date-picker/date-picker-fr.json new file mode 100644 index 00000000000000..735376f4fcc0bd --- /dev/null +++ b/docs/translations/api-docs/date-picker/date-picker-fr.json @@ -0,0 +1,42 @@ +{ + "componentDescription": "", + "propDescriptions": { + "acceptRegex": "Regular expression to detect "accepted" symbols.", + "cancelText": "Cancel text message", + "className": "className applied to the root component.", + "clearable": "If true, it shows the clear action in the picker dialog.", + "clearText": "Clear text message", + "dateAdapter": "Allows to pass configured date-io adapter directly. More info here jsx dateAdapter={new AdapterDateFns({ locale: ruLocale })} ", + "DialogProps": "Props applied to the Dialog element.", + "disableCloseOnSelect": "If true the popup or dialog will immediately close after submitting full date.", + "disabled": "If true, the picker and text field are disabled.", + "disableMaskedInput": "Disable mask on the keyboard, this should be used rarely. Consider passing proper mask for your format.", + "disableOpenPicker": "Do not render open picker button (renders only text field with validation).", + "getOpenDialogAriaText": "Get aria-label text for control that opens picker dialog. Aria-label text must include selected date. @DateIOType", + "InputAdornmentProps": "Props to pass to keyboard input adornment.", + "inputFormat": "Format string.", + "mask": "Custom mask. Can be used to override generate from format. (e.g. //__ __: or //__ __: _M)", + "okText": "Ok button text.", + "onAccept": "Callback fired when date is accepted @DateIOType.", + "onChange": "Callback fired when the value (the selected date) changes. @DateIOType.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback that fired when input value or new value prop validation returns new validation error (or value is valid after error). In case of validation error detected reason prop return non-null value and TextField must be displayed in error state. This can be used to render appropriate form error.
Read the guide about form integration and error displaying.", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "open": "Control the popup or dialog open state.", + "OpenPickerButtonProps": "Props to pass to keyboard adornment button.", + "openPickerIcon": "Icon displaying for open picker button.", + "orientation": "Force rendering in particular orientation.", + "readOnly": "Make picker read only.", + "renderInput": "The renderInput prop allows you to customize the rendered input. The props argument of this render prop contains props of TextField that you need to forward. Pay specific attention to the ref and inputProps keys.", + "rifmFormatter": "Custom formatter to be passed into Rifm component.", + "showTodayButton": "If true, the today button is displayed. Note that showClearButton has a higher priority.", + "showToolbar": "If true, show the toolbar even in desktop mode.", + "todayText": "Today text message", + "ToolbarComponent": "Component that will replace default toolbar renderer.", + "toolbarFormat": "Date format, that is displaying in toolbar.", + "toolbarPlaceholder": "Mobile picker date value placeholder, displaying if value === null.", + "toolbarTitle": "Mobile picker title, displaying in the toolbar.", + "value": "The value of the picker." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs/date-picker/date-picker-ja.json b/docs/translations/api-docs/date-picker/date-picker-ja.json new file mode 100644 index 00000000000000..735376f4fcc0bd --- /dev/null +++ b/docs/translations/api-docs/date-picker/date-picker-ja.json @@ -0,0 +1,42 @@ +{ + "componentDescription": "", + "propDescriptions": { + "acceptRegex": "Regular expression to detect "accepted" symbols.", + "cancelText": "Cancel text message", + "className": "className applied to the root component.", + "clearable": "If true, it shows the clear action in the picker dialog.", + "clearText": "Clear text message", + "dateAdapter": "Allows to pass configured date-io adapter directly. More info here jsx dateAdapter={new AdapterDateFns({ locale: ruLocale })} ", + "DialogProps": "Props applied to the Dialog element.", + "disableCloseOnSelect": "If true the popup or dialog will immediately close after submitting full date.", + "disabled": "If true, the picker and text field are disabled.", + "disableMaskedInput": "Disable mask on the keyboard, this should be used rarely. Consider passing proper mask for your format.", + "disableOpenPicker": "Do not render open picker button (renders only text field with validation).", + "getOpenDialogAriaText": "Get aria-label text for control that opens picker dialog. Aria-label text must include selected date. @DateIOType", + "InputAdornmentProps": "Props to pass to keyboard input adornment.", + "inputFormat": "Format string.", + "mask": "Custom mask. Can be used to override generate from format. (e.g. //__ __: or //__ __: _M)", + "okText": "Ok button text.", + "onAccept": "Callback fired when date is accepted @DateIOType.", + "onChange": "Callback fired when the value (the selected date) changes. @DateIOType.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback that fired when input value or new value prop validation returns new validation error (or value is valid after error). In case of validation error detected reason prop return non-null value and TextField must be displayed in error state. This can be used to render appropriate form error.
Read the guide about form integration and error displaying.", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "open": "Control the popup or dialog open state.", + "OpenPickerButtonProps": "Props to pass to keyboard adornment button.", + "openPickerIcon": "Icon displaying for open picker button.", + "orientation": "Force rendering in particular orientation.", + "readOnly": "Make picker read only.", + "renderInput": "The renderInput prop allows you to customize the rendered input. The props argument of this render prop contains props of TextField that you need to forward. Pay specific attention to the ref and inputProps keys.", + "rifmFormatter": "Custom formatter to be passed into Rifm component.", + "showTodayButton": "If true, the today button is displayed. Note that showClearButton has a higher priority.", + "showToolbar": "If true, show the toolbar even in desktop mode.", + "todayText": "Today text message", + "ToolbarComponent": "Component that will replace default toolbar renderer.", + "toolbarFormat": "Date format, that is displaying in toolbar.", + "toolbarPlaceholder": "Mobile picker date value placeholder, displaying if value === null.", + "toolbarTitle": "Mobile picker title, displaying in the toolbar.", + "value": "The value of the picker." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs/date-picker/date-picker-pt.json b/docs/translations/api-docs/date-picker/date-picker-pt.json new file mode 100644 index 00000000000000..735376f4fcc0bd --- /dev/null +++ b/docs/translations/api-docs/date-picker/date-picker-pt.json @@ -0,0 +1,42 @@ +{ + "componentDescription": "", + "propDescriptions": { + "acceptRegex": "Regular expression to detect "accepted" symbols.", + "cancelText": "Cancel text message", + "className": "className applied to the root component.", + "clearable": "If true, it shows the clear action in the picker dialog.", + "clearText": "Clear text message", + "dateAdapter": "Allows to pass configured date-io adapter directly. More info here jsx dateAdapter={new AdapterDateFns({ locale: ruLocale })} ", + "DialogProps": "Props applied to the Dialog element.", + "disableCloseOnSelect": "If true the popup or dialog will immediately close after submitting full date.", + "disabled": "If true, the picker and text field are disabled.", + "disableMaskedInput": "Disable mask on the keyboard, this should be used rarely. Consider passing proper mask for your format.", + "disableOpenPicker": "Do not render open picker button (renders only text field with validation).", + "getOpenDialogAriaText": "Get aria-label text for control that opens picker dialog. Aria-label text must include selected date. @DateIOType", + "InputAdornmentProps": "Props to pass to keyboard input adornment.", + "inputFormat": "Format string.", + "mask": "Custom mask. Can be used to override generate from format. (e.g. //__ __: or //__ __: _M)", + "okText": "Ok button text.", + "onAccept": "Callback fired when date is accepted @DateIOType.", + "onChange": "Callback fired when the value (the selected date) changes. @DateIOType.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback that fired when input value or new value prop validation returns new validation error (or value is valid after error). In case of validation error detected reason prop return non-null value and TextField must be displayed in error state. This can be used to render appropriate form error.
Read the guide about form integration and error displaying.", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "open": "Control the popup or dialog open state.", + "OpenPickerButtonProps": "Props to pass to keyboard adornment button.", + "openPickerIcon": "Icon displaying for open picker button.", + "orientation": "Force rendering in particular orientation.", + "readOnly": "Make picker read only.", + "renderInput": "The renderInput prop allows you to customize the rendered input. The props argument of this render prop contains props of TextField that you need to forward. Pay specific attention to the ref and inputProps keys.", + "rifmFormatter": "Custom formatter to be passed into Rifm component.", + "showTodayButton": "If true, the today button is displayed. Note that showClearButton has a higher priority.", + "showToolbar": "If true, show the toolbar even in desktop mode.", + "todayText": "Today text message", + "ToolbarComponent": "Component that will replace default toolbar renderer.", + "toolbarFormat": "Date format, that is displaying in toolbar.", + "toolbarPlaceholder": "Mobile picker date value placeholder, displaying if value === null.", + "toolbarTitle": "Mobile picker title, displaying in the toolbar.", + "value": "The value of the picker." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs/date-picker/date-picker-ru.json b/docs/translations/api-docs/date-picker/date-picker-ru.json new file mode 100644 index 00000000000000..735376f4fcc0bd --- /dev/null +++ b/docs/translations/api-docs/date-picker/date-picker-ru.json @@ -0,0 +1,42 @@ +{ + "componentDescription": "", + "propDescriptions": { + "acceptRegex": "Regular expression to detect "accepted" symbols.", + "cancelText": "Cancel text message", + "className": "className applied to the root component.", + "clearable": "If true, it shows the clear action in the picker dialog.", + "clearText": "Clear text message", + "dateAdapter": "Allows to pass configured date-io adapter directly. More info here jsx dateAdapter={new AdapterDateFns({ locale: ruLocale })} ", + "DialogProps": "Props applied to the Dialog element.", + "disableCloseOnSelect": "If true the popup or dialog will immediately close after submitting full date.", + "disabled": "If true, the picker and text field are disabled.", + "disableMaskedInput": "Disable mask on the keyboard, this should be used rarely. Consider passing proper mask for your format.", + "disableOpenPicker": "Do not render open picker button (renders only text field with validation).", + "getOpenDialogAriaText": "Get aria-label text for control that opens picker dialog. Aria-label text must include selected date. @DateIOType", + "InputAdornmentProps": "Props to pass to keyboard input adornment.", + "inputFormat": "Format string.", + "mask": "Custom mask. Can be used to override generate from format. (e.g. //__ __: or //__ __: _M)", + "okText": "Ok button text.", + "onAccept": "Callback fired when date is accepted @DateIOType.", + "onChange": "Callback fired when the value (the selected date) changes. @DateIOType.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback that fired when input value or new value prop validation returns new validation error (or value is valid after error). In case of validation error detected reason prop return non-null value and TextField must be displayed in error state. This can be used to render appropriate form error.
Read the guide about form integration and error displaying.", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "open": "Control the popup or dialog open state.", + "OpenPickerButtonProps": "Props to pass to keyboard adornment button.", + "openPickerIcon": "Icon displaying for open picker button.", + "orientation": "Force rendering in particular orientation.", + "readOnly": "Make picker read only.", + "renderInput": "The renderInput prop allows you to customize the rendered input. The props argument of this render prop contains props of TextField that you need to forward. Pay specific attention to the ref and inputProps keys.", + "rifmFormatter": "Custom formatter to be passed into Rifm component.", + "showTodayButton": "If true, the today button is displayed. Note that showClearButton has a higher priority.", + "showToolbar": "If true, show the toolbar even in desktop mode.", + "todayText": "Today text message", + "ToolbarComponent": "Component that will replace default toolbar renderer.", + "toolbarFormat": "Date format, that is displaying in toolbar.", + "toolbarPlaceholder": "Mobile picker date value placeholder, displaying if value === null.", + "toolbarTitle": "Mobile picker title, displaying in the toolbar.", + "value": "The value of the picker." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs/date-picker/date-picker-zh.json b/docs/translations/api-docs/date-picker/date-picker-zh.json new file mode 100644 index 00000000000000..735376f4fcc0bd --- /dev/null +++ b/docs/translations/api-docs/date-picker/date-picker-zh.json @@ -0,0 +1,42 @@ +{ + "componentDescription": "", + "propDescriptions": { + "acceptRegex": "Regular expression to detect "accepted" symbols.", + "cancelText": "Cancel text message", + "className": "className applied to the root component.", + "clearable": "If true, it shows the clear action in the picker dialog.", + "clearText": "Clear text message", + "dateAdapter": "Allows to pass configured date-io adapter directly. More info here jsx dateAdapter={new AdapterDateFns({ locale: ruLocale })} ", + "DialogProps": "Props applied to the Dialog element.", + "disableCloseOnSelect": "If true the popup or dialog will immediately close after submitting full date.", + "disabled": "If true, the picker and text field are disabled.", + "disableMaskedInput": "Disable mask on the keyboard, this should be used rarely. Consider passing proper mask for your format.", + "disableOpenPicker": "Do not render open picker button (renders only text field with validation).", + "getOpenDialogAriaText": "Get aria-label text for control that opens picker dialog. Aria-label text must include selected date. @DateIOType", + "InputAdornmentProps": "Props to pass to keyboard input adornment.", + "inputFormat": "Format string.", + "mask": "Custom mask. Can be used to override generate from format. (e.g. //__ __: or //__ __: _M)", + "okText": "Ok button text.", + "onAccept": "Callback fired when date is accepted @DateIOType.", + "onChange": "Callback fired when the value (the selected date) changes. @DateIOType.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback that fired when input value or new value prop validation returns new validation error (or value is valid after error). In case of validation error detected reason prop return non-null value and TextField must be displayed in error state. This can be used to render appropriate form error.
Read the guide about form integration and error displaying.", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "open": "Control the popup or dialog open state.", + "OpenPickerButtonProps": "Props to pass to keyboard adornment button.", + "openPickerIcon": "Icon displaying for open picker button.", + "orientation": "Force rendering in particular orientation.", + "readOnly": "Make picker read only.", + "renderInput": "The renderInput prop allows you to customize the rendered input. The props argument of this render prop contains props of TextField that you need to forward. Pay specific attention to the ref and inputProps keys.", + "rifmFormatter": "Custom formatter to be passed into Rifm component.", + "showTodayButton": "If true, the today button is displayed. Note that showClearButton has a higher priority.", + "showToolbar": "If true, show the toolbar even in desktop mode.", + "todayText": "Today text message", + "ToolbarComponent": "Component that will replace default toolbar renderer.", + "toolbarFormat": "Date format, that is displaying in toolbar.", + "toolbarPlaceholder": "Mobile picker date value placeholder, displaying if value === null.", + "toolbarTitle": "Mobile picker title, displaying in the toolbar.", + "value": "The value of the picker." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs/date-picker/date-picker.json b/docs/translations/api-docs/date-picker/date-picker.json new file mode 100644 index 00000000000000..735376f4fcc0bd --- /dev/null +++ b/docs/translations/api-docs/date-picker/date-picker.json @@ -0,0 +1,42 @@ +{ + "componentDescription": "", + "propDescriptions": { + "acceptRegex": "Regular expression to detect "accepted" symbols.", + "cancelText": "Cancel text message", + "className": "className applied to the root component.", + "clearable": "If true, it shows the clear action in the picker dialog.", + "clearText": "Clear text message", + "dateAdapter": "Allows to pass configured date-io adapter directly. More info here jsx dateAdapter={new AdapterDateFns({ locale: ruLocale })} ", + "DialogProps": "Props applied to the Dialog element.", + "disableCloseOnSelect": "If true the popup or dialog will immediately close after submitting full date.", + "disabled": "If true, the picker and text field are disabled.", + "disableMaskedInput": "Disable mask on the keyboard, this should be used rarely. Consider passing proper mask for your format.", + "disableOpenPicker": "Do not render open picker button (renders only text field with validation).", + "getOpenDialogAriaText": "Get aria-label text for control that opens picker dialog. Aria-label text must include selected date. @DateIOType", + "InputAdornmentProps": "Props to pass to keyboard input adornment.", + "inputFormat": "Format string.", + "mask": "Custom mask. Can be used to override generate from format. (e.g. //__ __: or //__ __: _M)", + "okText": "Ok button text.", + "onAccept": "Callback fired when date is accepted @DateIOType.", + "onChange": "Callback fired when the value (the selected date) changes. @DateIOType.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback that fired when input value or new value prop validation returns new validation error (or value is valid after error). In case of validation error detected reason prop return non-null value and TextField must be displayed in error state. This can be used to render appropriate form error.
Read the guide about form integration and error displaying.", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "open": "Control the popup or dialog open state.", + "OpenPickerButtonProps": "Props to pass to keyboard adornment button.", + "openPickerIcon": "Icon displaying for open picker button.", + "orientation": "Force rendering in particular orientation.", + "readOnly": "Make picker read only.", + "renderInput": "The renderInput prop allows you to customize the rendered input. The props argument of this render prop contains props of TextField that you need to forward. Pay specific attention to the ref and inputProps keys.", + "rifmFormatter": "Custom formatter to be passed into Rifm component.", + "showTodayButton": "If true, the today button is displayed. Note that showClearButton has a higher priority.", + "showToolbar": "If true, show the toolbar even in desktop mode.", + "todayText": "Today text message", + "ToolbarComponent": "Component that will replace default toolbar renderer.", + "toolbarFormat": "Date format, that is displaying in toolbar.", + "toolbarPlaceholder": "Mobile picker date value placeholder, displaying if value === null.", + "toolbarTitle": "Mobile picker title, displaying in the toolbar.", + "value": "The value of the picker." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs/desktop-date-picker/desktop-date-picker-de.json b/docs/translations/api-docs/desktop-date-picker/desktop-date-picker-de.json new file mode 100644 index 00000000000000..486ae06a16e761 --- /dev/null +++ b/docs/translations/api-docs/desktop-date-picker/desktop-date-picker-de.json @@ -0,0 +1,37 @@ +{ + "componentDescription": "", + "propDescriptions": { + "acceptRegex": "Regular expression to detect "accepted" symbols.", + "className": "className applied to the root component.", + "dateAdapter": "Allows to pass configured date-io adapter directly. More info here jsx dateAdapter={new AdapterDateFns({ locale: ruLocale })} ", + "disableCloseOnSelect": "If true the popup or dialog will immediately close after submitting full date.", + "disabled": "If true, the picker and text field are disabled.", + "disableMaskedInput": "Disable mask on the keyboard, this should be used rarely. Consider passing proper mask for your format.", + "disableOpenPicker": "Do not render open picker button (renders only text field with validation).", + "getOpenDialogAriaText": "Get aria-label text for control that opens picker dialog. Aria-label text must include selected date. @DateIOType", + "InputAdornmentProps": "Props to pass to keyboard input adornment.", + "inputFormat": "Format string.", + "mask": "Custom mask. Can be used to override generate from format. (e.g. //__ __: or //__ __: _M)", + "onAccept": "Callback fired when date is accepted @DateIOType.", + "onChange": "Callback fired when the value (the selected date) changes. @DateIOType.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback that fired when input value or new value prop validation returns new validation error (or value is valid after error). In case of validation error detected reason prop return non-null value and TextField must be displayed in error state. This can be used to render appropriate form error.
Read the guide about form integration and error displaying.", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "open": "Control the popup or dialog open state.", + "OpenPickerButtonProps": "Props to pass to keyboard adornment button.", + "openPickerIcon": "Icon displaying for open picker button.", + "orientation": "Force rendering in particular orientation.", + "PopperProps": "Popper props passed down to Popper component.", + "readOnly": "Make picker read only.", + "renderInput": "The renderInput prop allows you to customize the rendered input. The props argument of this render prop contains props of TextField that you need to forward. Pay specific attention to the ref and inputProps keys.", + "rifmFormatter": "Custom formatter to be passed into Rifm component.", + "showToolbar": "If true, show the toolbar even in desktop mode.", + "ToolbarComponent": "Component that will replace default toolbar renderer.", + "toolbarFormat": "Date format, that is displaying in toolbar.", + "toolbarPlaceholder": "Mobile picker date value placeholder, displaying if value === null.", + "toolbarTitle": "Mobile picker title, displaying in the toolbar.", + "TransitionComponent": "Custom component for popper Transition.", + "value": "The value of the picker." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs/desktop-date-picker/desktop-date-picker-es.json b/docs/translations/api-docs/desktop-date-picker/desktop-date-picker-es.json new file mode 100644 index 00000000000000..486ae06a16e761 --- /dev/null +++ b/docs/translations/api-docs/desktop-date-picker/desktop-date-picker-es.json @@ -0,0 +1,37 @@ +{ + "componentDescription": "", + "propDescriptions": { + "acceptRegex": "Regular expression to detect "accepted" symbols.", + "className": "className applied to the root component.", + "dateAdapter": "Allows to pass configured date-io adapter directly. More info here jsx dateAdapter={new AdapterDateFns({ locale: ruLocale })} ", + "disableCloseOnSelect": "If true the popup or dialog will immediately close after submitting full date.", + "disabled": "If true, the picker and text field are disabled.", + "disableMaskedInput": "Disable mask on the keyboard, this should be used rarely. Consider passing proper mask for your format.", + "disableOpenPicker": "Do not render open picker button (renders only text field with validation).", + "getOpenDialogAriaText": "Get aria-label text for control that opens picker dialog. Aria-label text must include selected date. @DateIOType", + "InputAdornmentProps": "Props to pass to keyboard input adornment.", + "inputFormat": "Format string.", + "mask": "Custom mask. Can be used to override generate from format. (e.g. //__ __: or //__ __: _M)", + "onAccept": "Callback fired when date is accepted @DateIOType.", + "onChange": "Callback fired when the value (the selected date) changes. @DateIOType.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback that fired when input value or new value prop validation returns new validation error (or value is valid after error). In case of validation error detected reason prop return non-null value and TextField must be displayed in error state. This can be used to render appropriate form error.
Read the guide about form integration and error displaying.", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "open": "Control the popup or dialog open state.", + "OpenPickerButtonProps": "Props to pass to keyboard adornment button.", + "openPickerIcon": "Icon displaying for open picker button.", + "orientation": "Force rendering in particular orientation.", + "PopperProps": "Popper props passed down to Popper component.", + "readOnly": "Make picker read only.", + "renderInput": "The renderInput prop allows you to customize the rendered input. The props argument of this render prop contains props of TextField that you need to forward. Pay specific attention to the ref and inputProps keys.", + "rifmFormatter": "Custom formatter to be passed into Rifm component.", + "showToolbar": "If true, show the toolbar even in desktop mode.", + "ToolbarComponent": "Component that will replace default toolbar renderer.", + "toolbarFormat": "Date format, that is displaying in toolbar.", + "toolbarPlaceholder": "Mobile picker date value placeholder, displaying if value === null.", + "toolbarTitle": "Mobile picker title, displaying in the toolbar.", + "TransitionComponent": "Custom component for popper Transition.", + "value": "The value of the picker." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs/desktop-date-picker/desktop-date-picker-fr.json b/docs/translations/api-docs/desktop-date-picker/desktop-date-picker-fr.json new file mode 100644 index 00000000000000..486ae06a16e761 --- /dev/null +++ b/docs/translations/api-docs/desktop-date-picker/desktop-date-picker-fr.json @@ -0,0 +1,37 @@ +{ + "componentDescription": "", + "propDescriptions": { + "acceptRegex": "Regular expression to detect "accepted" symbols.", + "className": "className applied to the root component.", + "dateAdapter": "Allows to pass configured date-io adapter directly. More info here jsx dateAdapter={new AdapterDateFns({ locale: ruLocale })} ", + "disableCloseOnSelect": "If true the popup or dialog will immediately close after submitting full date.", + "disabled": "If true, the picker and text field are disabled.", + "disableMaskedInput": "Disable mask on the keyboard, this should be used rarely. Consider passing proper mask for your format.", + "disableOpenPicker": "Do not render open picker button (renders only text field with validation).", + "getOpenDialogAriaText": "Get aria-label text for control that opens picker dialog. Aria-label text must include selected date. @DateIOType", + "InputAdornmentProps": "Props to pass to keyboard input adornment.", + "inputFormat": "Format string.", + "mask": "Custom mask. Can be used to override generate from format. (e.g. //__ __: or //__ __: _M)", + "onAccept": "Callback fired when date is accepted @DateIOType.", + "onChange": "Callback fired when the value (the selected date) changes. @DateIOType.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback that fired when input value or new value prop validation returns new validation error (or value is valid after error). In case of validation error detected reason prop return non-null value and TextField must be displayed in error state. This can be used to render appropriate form error.
Read the guide about form integration and error displaying.", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "open": "Control the popup or dialog open state.", + "OpenPickerButtonProps": "Props to pass to keyboard adornment button.", + "openPickerIcon": "Icon displaying for open picker button.", + "orientation": "Force rendering in particular orientation.", + "PopperProps": "Popper props passed down to Popper component.", + "readOnly": "Make picker read only.", + "renderInput": "The renderInput prop allows you to customize the rendered input. The props argument of this render prop contains props of TextField that you need to forward. Pay specific attention to the ref and inputProps keys.", + "rifmFormatter": "Custom formatter to be passed into Rifm component.", + "showToolbar": "If true, show the toolbar even in desktop mode.", + "ToolbarComponent": "Component that will replace default toolbar renderer.", + "toolbarFormat": "Date format, that is displaying in toolbar.", + "toolbarPlaceholder": "Mobile picker date value placeholder, displaying if value === null.", + "toolbarTitle": "Mobile picker title, displaying in the toolbar.", + "TransitionComponent": "Custom component for popper Transition.", + "value": "The value of the picker." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs/desktop-date-picker/desktop-date-picker-ja.json b/docs/translations/api-docs/desktop-date-picker/desktop-date-picker-ja.json new file mode 100644 index 00000000000000..486ae06a16e761 --- /dev/null +++ b/docs/translations/api-docs/desktop-date-picker/desktop-date-picker-ja.json @@ -0,0 +1,37 @@ +{ + "componentDescription": "", + "propDescriptions": { + "acceptRegex": "Regular expression to detect "accepted" symbols.", + "className": "className applied to the root component.", + "dateAdapter": "Allows to pass configured date-io adapter directly. More info here jsx dateAdapter={new AdapterDateFns({ locale: ruLocale })} ", + "disableCloseOnSelect": "If true the popup or dialog will immediately close after submitting full date.", + "disabled": "If true, the picker and text field are disabled.", + "disableMaskedInput": "Disable mask on the keyboard, this should be used rarely. Consider passing proper mask for your format.", + "disableOpenPicker": "Do not render open picker button (renders only text field with validation).", + "getOpenDialogAriaText": "Get aria-label text for control that opens picker dialog. Aria-label text must include selected date. @DateIOType", + "InputAdornmentProps": "Props to pass to keyboard input adornment.", + "inputFormat": "Format string.", + "mask": "Custom mask. Can be used to override generate from format. (e.g. //__ __: or //__ __: _M)", + "onAccept": "Callback fired when date is accepted @DateIOType.", + "onChange": "Callback fired when the value (the selected date) changes. @DateIOType.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback that fired when input value or new value prop validation returns new validation error (or value is valid after error). In case of validation error detected reason prop return non-null value and TextField must be displayed in error state. This can be used to render appropriate form error.
Read the guide about form integration and error displaying.", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "open": "Control the popup or dialog open state.", + "OpenPickerButtonProps": "Props to pass to keyboard adornment button.", + "openPickerIcon": "Icon displaying for open picker button.", + "orientation": "Force rendering in particular orientation.", + "PopperProps": "Popper props passed down to Popper component.", + "readOnly": "Make picker read only.", + "renderInput": "The renderInput prop allows you to customize the rendered input. The props argument of this render prop contains props of TextField that you need to forward. Pay specific attention to the ref and inputProps keys.", + "rifmFormatter": "Custom formatter to be passed into Rifm component.", + "showToolbar": "If true, show the toolbar even in desktop mode.", + "ToolbarComponent": "Component that will replace default toolbar renderer.", + "toolbarFormat": "Date format, that is displaying in toolbar.", + "toolbarPlaceholder": "Mobile picker date value placeholder, displaying if value === null.", + "toolbarTitle": "Mobile picker title, displaying in the toolbar.", + "TransitionComponent": "Custom component for popper Transition.", + "value": "The value of the picker." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs/desktop-date-picker/desktop-date-picker-pt.json b/docs/translations/api-docs/desktop-date-picker/desktop-date-picker-pt.json new file mode 100644 index 00000000000000..486ae06a16e761 --- /dev/null +++ b/docs/translations/api-docs/desktop-date-picker/desktop-date-picker-pt.json @@ -0,0 +1,37 @@ +{ + "componentDescription": "", + "propDescriptions": { + "acceptRegex": "Regular expression to detect "accepted" symbols.", + "className": "className applied to the root component.", + "dateAdapter": "Allows to pass configured date-io adapter directly. More info here jsx dateAdapter={new AdapterDateFns({ locale: ruLocale })} ", + "disableCloseOnSelect": "If true the popup or dialog will immediately close after submitting full date.", + "disabled": "If true, the picker and text field are disabled.", + "disableMaskedInput": "Disable mask on the keyboard, this should be used rarely. Consider passing proper mask for your format.", + "disableOpenPicker": "Do not render open picker button (renders only text field with validation).", + "getOpenDialogAriaText": "Get aria-label text for control that opens picker dialog. Aria-label text must include selected date. @DateIOType", + "InputAdornmentProps": "Props to pass to keyboard input adornment.", + "inputFormat": "Format string.", + "mask": "Custom mask. Can be used to override generate from format. (e.g. //__ __: or //__ __: _M)", + "onAccept": "Callback fired when date is accepted @DateIOType.", + "onChange": "Callback fired when the value (the selected date) changes. @DateIOType.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback that fired when input value or new value prop validation returns new validation error (or value is valid after error). In case of validation error detected reason prop return non-null value and TextField must be displayed in error state. This can be used to render appropriate form error.
Read the guide about form integration and error displaying.", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "open": "Control the popup or dialog open state.", + "OpenPickerButtonProps": "Props to pass to keyboard adornment button.", + "openPickerIcon": "Icon displaying for open picker button.", + "orientation": "Force rendering in particular orientation.", + "PopperProps": "Popper props passed down to Popper component.", + "readOnly": "Make picker read only.", + "renderInput": "The renderInput prop allows you to customize the rendered input. The props argument of this render prop contains props of TextField that you need to forward. Pay specific attention to the ref and inputProps keys.", + "rifmFormatter": "Custom formatter to be passed into Rifm component.", + "showToolbar": "If true, show the toolbar even in desktop mode.", + "ToolbarComponent": "Component that will replace default toolbar renderer.", + "toolbarFormat": "Date format, that is displaying in toolbar.", + "toolbarPlaceholder": "Mobile picker date value placeholder, displaying if value === null.", + "toolbarTitle": "Mobile picker title, displaying in the toolbar.", + "TransitionComponent": "Custom component for popper Transition.", + "value": "The value of the picker." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs/desktop-date-picker/desktop-date-picker-ru.json b/docs/translations/api-docs/desktop-date-picker/desktop-date-picker-ru.json new file mode 100644 index 00000000000000..486ae06a16e761 --- /dev/null +++ b/docs/translations/api-docs/desktop-date-picker/desktop-date-picker-ru.json @@ -0,0 +1,37 @@ +{ + "componentDescription": "", + "propDescriptions": { + "acceptRegex": "Regular expression to detect "accepted" symbols.", + "className": "className applied to the root component.", + "dateAdapter": "Allows to pass configured date-io adapter directly. More info here jsx dateAdapter={new AdapterDateFns({ locale: ruLocale })} ", + "disableCloseOnSelect": "If true the popup or dialog will immediately close after submitting full date.", + "disabled": "If true, the picker and text field are disabled.", + "disableMaskedInput": "Disable mask on the keyboard, this should be used rarely. Consider passing proper mask for your format.", + "disableOpenPicker": "Do not render open picker button (renders only text field with validation).", + "getOpenDialogAriaText": "Get aria-label text for control that opens picker dialog. Aria-label text must include selected date. @DateIOType", + "InputAdornmentProps": "Props to pass to keyboard input adornment.", + "inputFormat": "Format string.", + "mask": "Custom mask. Can be used to override generate from format. (e.g. //__ __: or //__ __: _M)", + "onAccept": "Callback fired when date is accepted @DateIOType.", + "onChange": "Callback fired when the value (the selected date) changes. @DateIOType.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback that fired when input value or new value prop validation returns new validation error (or value is valid after error). In case of validation error detected reason prop return non-null value and TextField must be displayed in error state. This can be used to render appropriate form error.
Read the guide about form integration and error displaying.", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "open": "Control the popup or dialog open state.", + "OpenPickerButtonProps": "Props to pass to keyboard adornment button.", + "openPickerIcon": "Icon displaying for open picker button.", + "orientation": "Force rendering in particular orientation.", + "PopperProps": "Popper props passed down to Popper component.", + "readOnly": "Make picker read only.", + "renderInput": "The renderInput prop allows you to customize the rendered input. The props argument of this render prop contains props of TextField that you need to forward. Pay specific attention to the ref and inputProps keys.", + "rifmFormatter": "Custom formatter to be passed into Rifm component.", + "showToolbar": "If true, show the toolbar even in desktop mode.", + "ToolbarComponent": "Component that will replace default toolbar renderer.", + "toolbarFormat": "Date format, that is displaying in toolbar.", + "toolbarPlaceholder": "Mobile picker date value placeholder, displaying if value === null.", + "toolbarTitle": "Mobile picker title, displaying in the toolbar.", + "TransitionComponent": "Custom component for popper Transition.", + "value": "The value of the picker." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs/desktop-date-picker/desktop-date-picker-zh.json b/docs/translations/api-docs/desktop-date-picker/desktop-date-picker-zh.json new file mode 100644 index 00000000000000..486ae06a16e761 --- /dev/null +++ b/docs/translations/api-docs/desktop-date-picker/desktop-date-picker-zh.json @@ -0,0 +1,37 @@ +{ + "componentDescription": "", + "propDescriptions": { + "acceptRegex": "Regular expression to detect "accepted" symbols.", + "className": "className applied to the root component.", + "dateAdapter": "Allows to pass configured date-io adapter directly. More info here jsx dateAdapter={new AdapterDateFns({ locale: ruLocale })} ", + "disableCloseOnSelect": "If true the popup or dialog will immediately close after submitting full date.", + "disabled": "If true, the picker and text field are disabled.", + "disableMaskedInput": "Disable mask on the keyboard, this should be used rarely. Consider passing proper mask for your format.", + "disableOpenPicker": "Do not render open picker button (renders only text field with validation).", + "getOpenDialogAriaText": "Get aria-label text for control that opens picker dialog. Aria-label text must include selected date. @DateIOType", + "InputAdornmentProps": "Props to pass to keyboard input adornment.", + "inputFormat": "Format string.", + "mask": "Custom mask. Can be used to override generate from format. (e.g. //__ __: or //__ __: _M)", + "onAccept": "Callback fired when date is accepted @DateIOType.", + "onChange": "Callback fired when the value (the selected date) changes. @DateIOType.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback that fired when input value or new value prop validation returns new validation error (or value is valid after error). In case of validation error detected reason prop return non-null value and TextField must be displayed in error state. This can be used to render appropriate form error.
Read the guide about form integration and error displaying.", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "open": "Control the popup or dialog open state.", + "OpenPickerButtonProps": "Props to pass to keyboard adornment button.", + "openPickerIcon": "Icon displaying for open picker button.", + "orientation": "Force rendering in particular orientation.", + "PopperProps": "Popper props passed down to Popper component.", + "readOnly": "Make picker read only.", + "renderInput": "The renderInput prop allows you to customize the rendered input. The props argument of this render prop contains props of TextField that you need to forward. Pay specific attention to the ref and inputProps keys.", + "rifmFormatter": "Custom formatter to be passed into Rifm component.", + "showToolbar": "If true, show the toolbar even in desktop mode.", + "ToolbarComponent": "Component that will replace default toolbar renderer.", + "toolbarFormat": "Date format, that is displaying in toolbar.", + "toolbarPlaceholder": "Mobile picker date value placeholder, displaying if value === null.", + "toolbarTitle": "Mobile picker title, displaying in the toolbar.", + "TransitionComponent": "Custom component for popper Transition.", + "value": "The value of the picker." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs/desktop-date-picker/desktop-date-picker.json b/docs/translations/api-docs/desktop-date-picker/desktop-date-picker.json new file mode 100644 index 00000000000000..486ae06a16e761 --- /dev/null +++ b/docs/translations/api-docs/desktop-date-picker/desktop-date-picker.json @@ -0,0 +1,37 @@ +{ + "componentDescription": "", + "propDescriptions": { + "acceptRegex": "Regular expression to detect "accepted" symbols.", + "className": "className applied to the root component.", + "dateAdapter": "Allows to pass configured date-io adapter directly. More info here jsx dateAdapter={new AdapterDateFns({ locale: ruLocale })} ", + "disableCloseOnSelect": "If true the popup or dialog will immediately close after submitting full date.", + "disabled": "If true, the picker and text field are disabled.", + "disableMaskedInput": "Disable mask on the keyboard, this should be used rarely. Consider passing proper mask for your format.", + "disableOpenPicker": "Do not render open picker button (renders only text field with validation).", + "getOpenDialogAriaText": "Get aria-label text for control that opens picker dialog. Aria-label text must include selected date. @DateIOType", + "InputAdornmentProps": "Props to pass to keyboard input adornment.", + "inputFormat": "Format string.", + "mask": "Custom mask. Can be used to override generate from format. (e.g. //__ __: or //__ __: _M)", + "onAccept": "Callback fired when date is accepted @DateIOType.", + "onChange": "Callback fired when the value (the selected date) changes. @DateIOType.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback that fired when input value or new value prop validation returns new validation error (or value is valid after error). In case of validation error detected reason prop return non-null value and TextField must be displayed in error state. This can be used to render appropriate form error.
Read the guide about form integration and error displaying.", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "open": "Control the popup or dialog open state.", + "OpenPickerButtonProps": "Props to pass to keyboard adornment button.", + "openPickerIcon": "Icon displaying for open picker button.", + "orientation": "Force rendering in particular orientation.", + "PopperProps": "Popper props passed down to Popper component.", + "readOnly": "Make picker read only.", + "renderInput": "The renderInput prop allows you to customize the rendered input. The props argument of this render prop contains props of TextField that you need to forward. Pay specific attention to the ref and inputProps keys.", + "rifmFormatter": "Custom formatter to be passed into Rifm component.", + "showToolbar": "If true, show the toolbar even in desktop mode.", + "ToolbarComponent": "Component that will replace default toolbar renderer.", + "toolbarFormat": "Date format, that is displaying in toolbar.", + "toolbarPlaceholder": "Mobile picker date value placeholder, displaying if value === null.", + "toolbarTitle": "Mobile picker title, displaying in the toolbar.", + "TransitionComponent": "Custom component for popper Transition.", + "value": "The value of the picker." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs/mobile-date-picker/mobile-date-picker-de.json b/docs/translations/api-docs/mobile-date-picker/mobile-date-picker-de.json new file mode 100644 index 00000000000000..735376f4fcc0bd --- /dev/null +++ b/docs/translations/api-docs/mobile-date-picker/mobile-date-picker-de.json @@ -0,0 +1,42 @@ +{ + "componentDescription": "", + "propDescriptions": { + "acceptRegex": "Regular expression to detect "accepted" symbols.", + "cancelText": "Cancel text message", + "className": "className applied to the root component.", + "clearable": "If true, it shows the clear action in the picker dialog.", + "clearText": "Clear text message", + "dateAdapter": "Allows to pass configured date-io adapter directly. More info here jsx dateAdapter={new AdapterDateFns({ locale: ruLocale })} ", + "DialogProps": "Props applied to the Dialog element.", + "disableCloseOnSelect": "If true the popup or dialog will immediately close after submitting full date.", + "disabled": "If true, the picker and text field are disabled.", + "disableMaskedInput": "Disable mask on the keyboard, this should be used rarely. Consider passing proper mask for your format.", + "disableOpenPicker": "Do not render open picker button (renders only text field with validation).", + "getOpenDialogAriaText": "Get aria-label text for control that opens picker dialog. Aria-label text must include selected date. @DateIOType", + "InputAdornmentProps": "Props to pass to keyboard input adornment.", + "inputFormat": "Format string.", + "mask": "Custom mask. Can be used to override generate from format. (e.g. //__ __: or //__ __: _M)", + "okText": "Ok button text.", + "onAccept": "Callback fired when date is accepted @DateIOType.", + "onChange": "Callback fired when the value (the selected date) changes. @DateIOType.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback that fired when input value or new value prop validation returns new validation error (or value is valid after error). In case of validation error detected reason prop return non-null value and TextField must be displayed in error state. This can be used to render appropriate form error.
Read the guide about form integration and error displaying.", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "open": "Control the popup or dialog open state.", + "OpenPickerButtonProps": "Props to pass to keyboard adornment button.", + "openPickerIcon": "Icon displaying for open picker button.", + "orientation": "Force rendering in particular orientation.", + "readOnly": "Make picker read only.", + "renderInput": "The renderInput prop allows you to customize the rendered input. The props argument of this render prop contains props of TextField that you need to forward. Pay specific attention to the ref and inputProps keys.", + "rifmFormatter": "Custom formatter to be passed into Rifm component.", + "showTodayButton": "If true, the today button is displayed. Note that showClearButton has a higher priority.", + "showToolbar": "If true, show the toolbar even in desktop mode.", + "todayText": "Today text message", + "ToolbarComponent": "Component that will replace default toolbar renderer.", + "toolbarFormat": "Date format, that is displaying in toolbar.", + "toolbarPlaceholder": "Mobile picker date value placeholder, displaying if value === null.", + "toolbarTitle": "Mobile picker title, displaying in the toolbar.", + "value": "The value of the picker." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs/mobile-date-picker/mobile-date-picker-es.json b/docs/translations/api-docs/mobile-date-picker/mobile-date-picker-es.json new file mode 100644 index 00000000000000..735376f4fcc0bd --- /dev/null +++ b/docs/translations/api-docs/mobile-date-picker/mobile-date-picker-es.json @@ -0,0 +1,42 @@ +{ + "componentDescription": "", + "propDescriptions": { + "acceptRegex": "Regular expression to detect "accepted" symbols.", + "cancelText": "Cancel text message", + "className": "className applied to the root component.", + "clearable": "If true, it shows the clear action in the picker dialog.", + "clearText": "Clear text message", + "dateAdapter": "Allows to pass configured date-io adapter directly. More info here jsx dateAdapter={new AdapterDateFns({ locale: ruLocale })} ", + "DialogProps": "Props applied to the Dialog element.", + "disableCloseOnSelect": "If true the popup or dialog will immediately close after submitting full date.", + "disabled": "If true, the picker and text field are disabled.", + "disableMaskedInput": "Disable mask on the keyboard, this should be used rarely. Consider passing proper mask for your format.", + "disableOpenPicker": "Do not render open picker button (renders only text field with validation).", + "getOpenDialogAriaText": "Get aria-label text for control that opens picker dialog. Aria-label text must include selected date. @DateIOType", + "InputAdornmentProps": "Props to pass to keyboard input adornment.", + "inputFormat": "Format string.", + "mask": "Custom mask. Can be used to override generate from format. (e.g. //__ __: or //__ __: _M)", + "okText": "Ok button text.", + "onAccept": "Callback fired when date is accepted @DateIOType.", + "onChange": "Callback fired when the value (the selected date) changes. @DateIOType.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback that fired when input value or new value prop validation returns new validation error (or value is valid after error). In case of validation error detected reason prop return non-null value and TextField must be displayed in error state. This can be used to render appropriate form error.
Read the guide about form integration and error displaying.", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "open": "Control the popup or dialog open state.", + "OpenPickerButtonProps": "Props to pass to keyboard adornment button.", + "openPickerIcon": "Icon displaying for open picker button.", + "orientation": "Force rendering in particular orientation.", + "readOnly": "Make picker read only.", + "renderInput": "The renderInput prop allows you to customize the rendered input. The props argument of this render prop contains props of TextField that you need to forward. Pay specific attention to the ref and inputProps keys.", + "rifmFormatter": "Custom formatter to be passed into Rifm component.", + "showTodayButton": "If true, the today button is displayed. Note that showClearButton has a higher priority.", + "showToolbar": "If true, show the toolbar even in desktop mode.", + "todayText": "Today text message", + "ToolbarComponent": "Component that will replace default toolbar renderer.", + "toolbarFormat": "Date format, that is displaying in toolbar.", + "toolbarPlaceholder": "Mobile picker date value placeholder, displaying if value === null.", + "toolbarTitle": "Mobile picker title, displaying in the toolbar.", + "value": "The value of the picker." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs/mobile-date-picker/mobile-date-picker-fr.json b/docs/translations/api-docs/mobile-date-picker/mobile-date-picker-fr.json new file mode 100644 index 00000000000000..735376f4fcc0bd --- /dev/null +++ b/docs/translations/api-docs/mobile-date-picker/mobile-date-picker-fr.json @@ -0,0 +1,42 @@ +{ + "componentDescription": "", + "propDescriptions": { + "acceptRegex": "Regular expression to detect "accepted" symbols.", + "cancelText": "Cancel text message", + "className": "className applied to the root component.", + "clearable": "If true, it shows the clear action in the picker dialog.", + "clearText": "Clear text message", + "dateAdapter": "Allows to pass configured date-io adapter directly. More info here jsx dateAdapter={new AdapterDateFns({ locale: ruLocale })} ", + "DialogProps": "Props applied to the Dialog element.", + "disableCloseOnSelect": "If true the popup or dialog will immediately close after submitting full date.", + "disabled": "If true, the picker and text field are disabled.", + "disableMaskedInput": "Disable mask on the keyboard, this should be used rarely. Consider passing proper mask for your format.", + "disableOpenPicker": "Do not render open picker button (renders only text field with validation).", + "getOpenDialogAriaText": "Get aria-label text for control that opens picker dialog. Aria-label text must include selected date. @DateIOType", + "InputAdornmentProps": "Props to pass to keyboard input adornment.", + "inputFormat": "Format string.", + "mask": "Custom mask. Can be used to override generate from format. (e.g. //__ __: or //__ __: _M)", + "okText": "Ok button text.", + "onAccept": "Callback fired when date is accepted @DateIOType.", + "onChange": "Callback fired when the value (the selected date) changes. @DateIOType.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback that fired when input value or new value prop validation returns new validation error (or value is valid after error). In case of validation error detected reason prop return non-null value and TextField must be displayed in error state. This can be used to render appropriate form error.
Read the guide about form integration and error displaying.", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "open": "Control the popup or dialog open state.", + "OpenPickerButtonProps": "Props to pass to keyboard adornment button.", + "openPickerIcon": "Icon displaying for open picker button.", + "orientation": "Force rendering in particular orientation.", + "readOnly": "Make picker read only.", + "renderInput": "The renderInput prop allows you to customize the rendered input. The props argument of this render prop contains props of TextField that you need to forward. Pay specific attention to the ref and inputProps keys.", + "rifmFormatter": "Custom formatter to be passed into Rifm component.", + "showTodayButton": "If true, the today button is displayed. Note that showClearButton has a higher priority.", + "showToolbar": "If true, show the toolbar even in desktop mode.", + "todayText": "Today text message", + "ToolbarComponent": "Component that will replace default toolbar renderer.", + "toolbarFormat": "Date format, that is displaying in toolbar.", + "toolbarPlaceholder": "Mobile picker date value placeholder, displaying if value === null.", + "toolbarTitle": "Mobile picker title, displaying in the toolbar.", + "value": "The value of the picker." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs/mobile-date-picker/mobile-date-picker-ja.json b/docs/translations/api-docs/mobile-date-picker/mobile-date-picker-ja.json new file mode 100644 index 00000000000000..735376f4fcc0bd --- /dev/null +++ b/docs/translations/api-docs/mobile-date-picker/mobile-date-picker-ja.json @@ -0,0 +1,42 @@ +{ + "componentDescription": "", + "propDescriptions": { + "acceptRegex": "Regular expression to detect "accepted" symbols.", + "cancelText": "Cancel text message", + "className": "className applied to the root component.", + "clearable": "If true, it shows the clear action in the picker dialog.", + "clearText": "Clear text message", + "dateAdapter": "Allows to pass configured date-io adapter directly. More info here jsx dateAdapter={new AdapterDateFns({ locale: ruLocale })} ", + "DialogProps": "Props applied to the Dialog element.", + "disableCloseOnSelect": "If true the popup or dialog will immediately close after submitting full date.", + "disabled": "If true, the picker and text field are disabled.", + "disableMaskedInput": "Disable mask on the keyboard, this should be used rarely. Consider passing proper mask for your format.", + "disableOpenPicker": "Do not render open picker button (renders only text field with validation).", + "getOpenDialogAriaText": "Get aria-label text for control that opens picker dialog. Aria-label text must include selected date. @DateIOType", + "InputAdornmentProps": "Props to pass to keyboard input adornment.", + "inputFormat": "Format string.", + "mask": "Custom mask. Can be used to override generate from format. (e.g. //__ __: or //__ __: _M)", + "okText": "Ok button text.", + "onAccept": "Callback fired when date is accepted @DateIOType.", + "onChange": "Callback fired when the value (the selected date) changes. @DateIOType.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback that fired when input value or new value prop validation returns new validation error (or value is valid after error). In case of validation error detected reason prop return non-null value and TextField must be displayed in error state. This can be used to render appropriate form error.
Read the guide about form integration and error displaying.", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "open": "Control the popup or dialog open state.", + "OpenPickerButtonProps": "Props to pass to keyboard adornment button.", + "openPickerIcon": "Icon displaying for open picker button.", + "orientation": "Force rendering in particular orientation.", + "readOnly": "Make picker read only.", + "renderInput": "The renderInput prop allows you to customize the rendered input. The props argument of this render prop contains props of TextField that you need to forward. Pay specific attention to the ref and inputProps keys.", + "rifmFormatter": "Custom formatter to be passed into Rifm component.", + "showTodayButton": "If true, the today button is displayed. Note that showClearButton has a higher priority.", + "showToolbar": "If true, show the toolbar even in desktop mode.", + "todayText": "Today text message", + "ToolbarComponent": "Component that will replace default toolbar renderer.", + "toolbarFormat": "Date format, that is displaying in toolbar.", + "toolbarPlaceholder": "Mobile picker date value placeholder, displaying if value === null.", + "toolbarTitle": "Mobile picker title, displaying in the toolbar.", + "value": "The value of the picker." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs/mobile-date-picker/mobile-date-picker-pt.json b/docs/translations/api-docs/mobile-date-picker/mobile-date-picker-pt.json new file mode 100644 index 00000000000000..735376f4fcc0bd --- /dev/null +++ b/docs/translations/api-docs/mobile-date-picker/mobile-date-picker-pt.json @@ -0,0 +1,42 @@ +{ + "componentDescription": "", + "propDescriptions": { + "acceptRegex": "Regular expression to detect "accepted" symbols.", + "cancelText": "Cancel text message", + "className": "className applied to the root component.", + "clearable": "If true, it shows the clear action in the picker dialog.", + "clearText": "Clear text message", + "dateAdapter": "Allows to pass configured date-io adapter directly. More info here jsx dateAdapter={new AdapterDateFns({ locale: ruLocale })} ", + "DialogProps": "Props applied to the Dialog element.", + "disableCloseOnSelect": "If true the popup or dialog will immediately close after submitting full date.", + "disabled": "If true, the picker and text field are disabled.", + "disableMaskedInput": "Disable mask on the keyboard, this should be used rarely. Consider passing proper mask for your format.", + "disableOpenPicker": "Do not render open picker button (renders only text field with validation).", + "getOpenDialogAriaText": "Get aria-label text for control that opens picker dialog. Aria-label text must include selected date. @DateIOType", + "InputAdornmentProps": "Props to pass to keyboard input adornment.", + "inputFormat": "Format string.", + "mask": "Custom mask. Can be used to override generate from format. (e.g. //__ __: or //__ __: _M)", + "okText": "Ok button text.", + "onAccept": "Callback fired when date is accepted @DateIOType.", + "onChange": "Callback fired when the value (the selected date) changes. @DateIOType.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback that fired when input value or new value prop validation returns new validation error (or value is valid after error). In case of validation error detected reason prop return non-null value and TextField must be displayed in error state. This can be used to render appropriate form error.
Read the guide about form integration and error displaying.", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "open": "Control the popup or dialog open state.", + "OpenPickerButtonProps": "Props to pass to keyboard adornment button.", + "openPickerIcon": "Icon displaying for open picker button.", + "orientation": "Force rendering in particular orientation.", + "readOnly": "Make picker read only.", + "renderInput": "The renderInput prop allows you to customize the rendered input. The props argument of this render prop contains props of TextField that you need to forward. Pay specific attention to the ref and inputProps keys.", + "rifmFormatter": "Custom formatter to be passed into Rifm component.", + "showTodayButton": "If true, the today button is displayed. Note that showClearButton has a higher priority.", + "showToolbar": "If true, show the toolbar even in desktop mode.", + "todayText": "Today text message", + "ToolbarComponent": "Component that will replace default toolbar renderer.", + "toolbarFormat": "Date format, that is displaying in toolbar.", + "toolbarPlaceholder": "Mobile picker date value placeholder, displaying if value === null.", + "toolbarTitle": "Mobile picker title, displaying in the toolbar.", + "value": "The value of the picker." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs/mobile-date-picker/mobile-date-picker-ru.json b/docs/translations/api-docs/mobile-date-picker/mobile-date-picker-ru.json new file mode 100644 index 00000000000000..735376f4fcc0bd --- /dev/null +++ b/docs/translations/api-docs/mobile-date-picker/mobile-date-picker-ru.json @@ -0,0 +1,42 @@ +{ + "componentDescription": "", + "propDescriptions": { + "acceptRegex": "Regular expression to detect "accepted" symbols.", + "cancelText": "Cancel text message", + "className": "className applied to the root component.", + "clearable": "If true, it shows the clear action in the picker dialog.", + "clearText": "Clear text message", + "dateAdapter": "Allows to pass configured date-io adapter directly. More info here jsx dateAdapter={new AdapterDateFns({ locale: ruLocale })} ", + "DialogProps": "Props applied to the Dialog element.", + "disableCloseOnSelect": "If true the popup or dialog will immediately close after submitting full date.", + "disabled": "If true, the picker and text field are disabled.", + "disableMaskedInput": "Disable mask on the keyboard, this should be used rarely. Consider passing proper mask for your format.", + "disableOpenPicker": "Do not render open picker button (renders only text field with validation).", + "getOpenDialogAriaText": "Get aria-label text for control that opens picker dialog. Aria-label text must include selected date. @DateIOType", + "InputAdornmentProps": "Props to pass to keyboard input adornment.", + "inputFormat": "Format string.", + "mask": "Custom mask. Can be used to override generate from format. (e.g. //__ __: or //__ __: _M)", + "okText": "Ok button text.", + "onAccept": "Callback fired when date is accepted @DateIOType.", + "onChange": "Callback fired when the value (the selected date) changes. @DateIOType.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback that fired when input value or new value prop validation returns new validation error (or value is valid after error). In case of validation error detected reason prop return non-null value and TextField must be displayed in error state. This can be used to render appropriate form error.
Read the guide about form integration and error displaying.", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "open": "Control the popup or dialog open state.", + "OpenPickerButtonProps": "Props to pass to keyboard adornment button.", + "openPickerIcon": "Icon displaying for open picker button.", + "orientation": "Force rendering in particular orientation.", + "readOnly": "Make picker read only.", + "renderInput": "The renderInput prop allows you to customize the rendered input. The props argument of this render prop contains props of TextField that you need to forward. Pay specific attention to the ref and inputProps keys.", + "rifmFormatter": "Custom formatter to be passed into Rifm component.", + "showTodayButton": "If true, the today button is displayed. Note that showClearButton has a higher priority.", + "showToolbar": "If true, show the toolbar even in desktop mode.", + "todayText": "Today text message", + "ToolbarComponent": "Component that will replace default toolbar renderer.", + "toolbarFormat": "Date format, that is displaying in toolbar.", + "toolbarPlaceholder": "Mobile picker date value placeholder, displaying if value === null.", + "toolbarTitle": "Mobile picker title, displaying in the toolbar.", + "value": "The value of the picker." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs/mobile-date-picker/mobile-date-picker-zh.json b/docs/translations/api-docs/mobile-date-picker/mobile-date-picker-zh.json new file mode 100644 index 00000000000000..735376f4fcc0bd --- /dev/null +++ b/docs/translations/api-docs/mobile-date-picker/mobile-date-picker-zh.json @@ -0,0 +1,42 @@ +{ + "componentDescription": "", + "propDescriptions": { + "acceptRegex": "Regular expression to detect "accepted" symbols.", + "cancelText": "Cancel text message", + "className": "className applied to the root component.", + "clearable": "If true, it shows the clear action in the picker dialog.", + "clearText": "Clear text message", + "dateAdapter": "Allows to pass configured date-io adapter directly. More info here jsx dateAdapter={new AdapterDateFns({ locale: ruLocale })} ", + "DialogProps": "Props applied to the Dialog element.", + "disableCloseOnSelect": "If true the popup or dialog will immediately close after submitting full date.", + "disabled": "If true, the picker and text field are disabled.", + "disableMaskedInput": "Disable mask on the keyboard, this should be used rarely. Consider passing proper mask for your format.", + "disableOpenPicker": "Do not render open picker button (renders only text field with validation).", + "getOpenDialogAriaText": "Get aria-label text for control that opens picker dialog. Aria-label text must include selected date. @DateIOType", + "InputAdornmentProps": "Props to pass to keyboard input adornment.", + "inputFormat": "Format string.", + "mask": "Custom mask. Can be used to override generate from format. (e.g. //__ __: or //__ __: _M)", + "okText": "Ok button text.", + "onAccept": "Callback fired when date is accepted @DateIOType.", + "onChange": "Callback fired when the value (the selected date) changes. @DateIOType.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback that fired when input value or new value prop validation returns new validation error (or value is valid after error). In case of validation error detected reason prop return non-null value and TextField must be displayed in error state. This can be used to render appropriate form error.
Read the guide about form integration and error displaying.", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "open": "Control the popup or dialog open state.", + "OpenPickerButtonProps": "Props to pass to keyboard adornment button.", + "openPickerIcon": "Icon displaying for open picker button.", + "orientation": "Force rendering in particular orientation.", + "readOnly": "Make picker read only.", + "renderInput": "The renderInput prop allows you to customize the rendered input. The props argument of this render prop contains props of TextField that you need to forward. Pay specific attention to the ref and inputProps keys.", + "rifmFormatter": "Custom formatter to be passed into Rifm component.", + "showTodayButton": "If true, the today button is displayed. Note that showClearButton has a higher priority.", + "showToolbar": "If true, show the toolbar even in desktop mode.", + "todayText": "Today text message", + "ToolbarComponent": "Component that will replace default toolbar renderer.", + "toolbarFormat": "Date format, that is displaying in toolbar.", + "toolbarPlaceholder": "Mobile picker date value placeholder, displaying if value === null.", + "toolbarTitle": "Mobile picker title, displaying in the toolbar.", + "value": "The value of the picker." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs/mobile-date-picker/mobile-date-picker.json b/docs/translations/api-docs/mobile-date-picker/mobile-date-picker.json new file mode 100644 index 00000000000000..735376f4fcc0bd --- /dev/null +++ b/docs/translations/api-docs/mobile-date-picker/mobile-date-picker.json @@ -0,0 +1,42 @@ +{ + "componentDescription": "", + "propDescriptions": { + "acceptRegex": "Regular expression to detect "accepted" symbols.", + "cancelText": "Cancel text message", + "className": "className applied to the root component.", + "clearable": "If true, it shows the clear action in the picker dialog.", + "clearText": "Clear text message", + "dateAdapter": "Allows to pass configured date-io adapter directly. More info here jsx dateAdapter={new AdapterDateFns({ locale: ruLocale })} ", + "DialogProps": "Props applied to the Dialog element.", + "disableCloseOnSelect": "If true the popup or dialog will immediately close after submitting full date.", + "disabled": "If true, the picker and text field are disabled.", + "disableMaskedInput": "Disable mask on the keyboard, this should be used rarely. Consider passing proper mask for your format.", + "disableOpenPicker": "Do not render open picker button (renders only text field with validation).", + "getOpenDialogAriaText": "Get aria-label text for control that opens picker dialog. Aria-label text must include selected date. @DateIOType", + "InputAdornmentProps": "Props to pass to keyboard input adornment.", + "inputFormat": "Format string.", + "mask": "Custom mask. Can be used to override generate from format. (e.g. //__ __: or //__ __: _M)", + "okText": "Ok button text.", + "onAccept": "Callback fired when date is accepted @DateIOType.", + "onChange": "Callback fired when the value (the selected date) changes. @DateIOType.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback that fired when input value or new value prop validation returns new validation error (or value is valid after error). In case of validation error detected reason prop return non-null value and TextField must be displayed in error state. This can be used to render appropriate form error.
Read the guide about form integration and error displaying.", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "open": "Control the popup or dialog open state.", + "OpenPickerButtonProps": "Props to pass to keyboard adornment button.", + "openPickerIcon": "Icon displaying for open picker button.", + "orientation": "Force rendering in particular orientation.", + "readOnly": "Make picker read only.", + "renderInput": "The renderInput prop allows you to customize the rendered input. The props argument of this render prop contains props of TextField that you need to forward. Pay specific attention to the ref and inputProps keys.", + "rifmFormatter": "Custom formatter to be passed into Rifm component.", + "showTodayButton": "If true, the today button is displayed. Note that showClearButton has a higher priority.", + "showToolbar": "If true, show the toolbar even in desktop mode.", + "todayText": "Today text message", + "ToolbarComponent": "Component that will replace default toolbar renderer.", + "toolbarFormat": "Date format, that is displaying in toolbar.", + "toolbarPlaceholder": "Mobile picker date value placeholder, displaying if value === null.", + "toolbarTitle": "Mobile picker title, displaying in the toolbar.", + "value": "The value of the picker." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs/static-date-picker/static-date-picker-de.json b/docs/translations/api-docs/static-date-picker/static-date-picker-de.json new file mode 100644 index 00000000000000..b78a654ab3ea3a --- /dev/null +++ b/docs/translations/api-docs/static-date-picker/static-date-picker-de.json @@ -0,0 +1,36 @@ +{ + "componentDescription": "", + "propDescriptions": { + "acceptRegex": "Regular expression to detect "accepted" symbols.", + "className": "className applied to the root component.", + "dateAdapter": "Allows to pass configured date-io adapter directly. More info here jsx dateAdapter={new AdapterDateFns({ locale: ruLocale })} ", + "disableCloseOnSelect": "If true the popup or dialog will immediately close after submitting full date.", + "disabled": "If true, the picker and text field are disabled.", + "disableMaskedInput": "Disable mask on the keyboard, this should be used rarely. Consider passing proper mask for your format.", + "disableOpenPicker": "Do not render open picker button (renders only text field with validation).", + "displayStaticWrapperAs": "Force static wrapper inner components to be rendered in mobile or desktop mode", + "getOpenDialogAriaText": "Get aria-label text for control that opens picker dialog. Aria-label text must include selected date. @DateIOType", + "InputAdornmentProps": "Props to pass to keyboard input adornment.", + "inputFormat": "Format string.", + "mask": "Custom mask. Can be used to override generate from format. (e.g. //__ __: or //__ __: _M)", + "onAccept": "Callback fired when date is accepted @DateIOType.", + "onChange": "Callback fired when the value (the selected date) changes. @DateIOType.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback that fired when input value or new value prop validation returns new validation error (or value is valid after error). In case of validation error detected reason prop return non-null value and TextField must be displayed in error state. This can be used to render appropriate form error.
Read the guide about form integration and error displaying.", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "open": "Control the popup or dialog open state.", + "OpenPickerButtonProps": "Props to pass to keyboard adornment button.", + "openPickerIcon": "Icon displaying for open picker button.", + "orientation": "Force rendering in particular orientation.", + "readOnly": "Make picker read only.", + "renderInput": "The renderInput prop allows you to customize the rendered input. The props argument of this render prop contains props of TextField that you need to forward. Pay specific attention to the ref and inputProps keys.", + "rifmFormatter": "Custom formatter to be passed into Rifm component.", + "showToolbar": "If true, show the toolbar even in desktop mode.", + "ToolbarComponent": "Component that will replace default toolbar renderer.", + "toolbarFormat": "Date format, that is displaying in toolbar.", + "toolbarPlaceholder": "Mobile picker date value placeholder, displaying if value === null.", + "toolbarTitle": "Mobile picker title, displaying in the toolbar.", + "value": "The value of the picker." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs/static-date-picker/static-date-picker-es.json b/docs/translations/api-docs/static-date-picker/static-date-picker-es.json new file mode 100644 index 00000000000000..b78a654ab3ea3a --- /dev/null +++ b/docs/translations/api-docs/static-date-picker/static-date-picker-es.json @@ -0,0 +1,36 @@ +{ + "componentDescription": "", + "propDescriptions": { + "acceptRegex": "Regular expression to detect "accepted" symbols.", + "className": "className applied to the root component.", + "dateAdapter": "Allows to pass configured date-io adapter directly. More info here jsx dateAdapter={new AdapterDateFns({ locale: ruLocale })} ", + "disableCloseOnSelect": "If true the popup or dialog will immediately close after submitting full date.", + "disabled": "If true, the picker and text field are disabled.", + "disableMaskedInput": "Disable mask on the keyboard, this should be used rarely. Consider passing proper mask for your format.", + "disableOpenPicker": "Do not render open picker button (renders only text field with validation).", + "displayStaticWrapperAs": "Force static wrapper inner components to be rendered in mobile or desktop mode", + "getOpenDialogAriaText": "Get aria-label text for control that opens picker dialog. Aria-label text must include selected date. @DateIOType", + "InputAdornmentProps": "Props to pass to keyboard input adornment.", + "inputFormat": "Format string.", + "mask": "Custom mask. Can be used to override generate from format. (e.g. //__ __: or //__ __: _M)", + "onAccept": "Callback fired when date is accepted @DateIOType.", + "onChange": "Callback fired when the value (the selected date) changes. @DateIOType.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback that fired when input value or new value prop validation returns new validation error (or value is valid after error). In case of validation error detected reason prop return non-null value and TextField must be displayed in error state. This can be used to render appropriate form error.
Read the guide about form integration and error displaying.", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "open": "Control the popup or dialog open state.", + "OpenPickerButtonProps": "Props to pass to keyboard adornment button.", + "openPickerIcon": "Icon displaying for open picker button.", + "orientation": "Force rendering in particular orientation.", + "readOnly": "Make picker read only.", + "renderInput": "The renderInput prop allows you to customize the rendered input. The props argument of this render prop contains props of TextField that you need to forward. Pay specific attention to the ref and inputProps keys.", + "rifmFormatter": "Custom formatter to be passed into Rifm component.", + "showToolbar": "If true, show the toolbar even in desktop mode.", + "ToolbarComponent": "Component that will replace default toolbar renderer.", + "toolbarFormat": "Date format, that is displaying in toolbar.", + "toolbarPlaceholder": "Mobile picker date value placeholder, displaying if value === null.", + "toolbarTitle": "Mobile picker title, displaying in the toolbar.", + "value": "The value of the picker." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs/static-date-picker/static-date-picker-fr.json b/docs/translations/api-docs/static-date-picker/static-date-picker-fr.json new file mode 100644 index 00000000000000..b78a654ab3ea3a --- /dev/null +++ b/docs/translations/api-docs/static-date-picker/static-date-picker-fr.json @@ -0,0 +1,36 @@ +{ + "componentDescription": "", + "propDescriptions": { + "acceptRegex": "Regular expression to detect "accepted" symbols.", + "className": "className applied to the root component.", + "dateAdapter": "Allows to pass configured date-io adapter directly. More info here jsx dateAdapter={new AdapterDateFns({ locale: ruLocale })} ", + "disableCloseOnSelect": "If true the popup or dialog will immediately close after submitting full date.", + "disabled": "If true, the picker and text field are disabled.", + "disableMaskedInput": "Disable mask on the keyboard, this should be used rarely. Consider passing proper mask for your format.", + "disableOpenPicker": "Do not render open picker button (renders only text field with validation).", + "displayStaticWrapperAs": "Force static wrapper inner components to be rendered in mobile or desktop mode", + "getOpenDialogAriaText": "Get aria-label text for control that opens picker dialog. Aria-label text must include selected date. @DateIOType", + "InputAdornmentProps": "Props to pass to keyboard input adornment.", + "inputFormat": "Format string.", + "mask": "Custom mask. Can be used to override generate from format. (e.g. //__ __: or //__ __: _M)", + "onAccept": "Callback fired when date is accepted @DateIOType.", + "onChange": "Callback fired when the value (the selected date) changes. @DateIOType.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback that fired when input value or new value prop validation returns new validation error (or value is valid after error). In case of validation error detected reason prop return non-null value and TextField must be displayed in error state. This can be used to render appropriate form error.
Read the guide about form integration and error displaying.", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "open": "Control the popup or dialog open state.", + "OpenPickerButtonProps": "Props to pass to keyboard adornment button.", + "openPickerIcon": "Icon displaying for open picker button.", + "orientation": "Force rendering in particular orientation.", + "readOnly": "Make picker read only.", + "renderInput": "The renderInput prop allows you to customize the rendered input. The props argument of this render prop contains props of TextField that you need to forward. Pay specific attention to the ref and inputProps keys.", + "rifmFormatter": "Custom formatter to be passed into Rifm component.", + "showToolbar": "If true, show the toolbar even in desktop mode.", + "ToolbarComponent": "Component that will replace default toolbar renderer.", + "toolbarFormat": "Date format, that is displaying in toolbar.", + "toolbarPlaceholder": "Mobile picker date value placeholder, displaying if value === null.", + "toolbarTitle": "Mobile picker title, displaying in the toolbar.", + "value": "The value of the picker." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs/static-date-picker/static-date-picker-ja.json b/docs/translations/api-docs/static-date-picker/static-date-picker-ja.json new file mode 100644 index 00000000000000..b78a654ab3ea3a --- /dev/null +++ b/docs/translations/api-docs/static-date-picker/static-date-picker-ja.json @@ -0,0 +1,36 @@ +{ + "componentDescription": "", + "propDescriptions": { + "acceptRegex": "Regular expression to detect "accepted" symbols.", + "className": "className applied to the root component.", + "dateAdapter": "Allows to pass configured date-io adapter directly. More info here jsx dateAdapter={new AdapterDateFns({ locale: ruLocale })} ", + "disableCloseOnSelect": "If true the popup or dialog will immediately close after submitting full date.", + "disabled": "If true, the picker and text field are disabled.", + "disableMaskedInput": "Disable mask on the keyboard, this should be used rarely. Consider passing proper mask for your format.", + "disableOpenPicker": "Do not render open picker button (renders only text field with validation).", + "displayStaticWrapperAs": "Force static wrapper inner components to be rendered in mobile or desktop mode", + "getOpenDialogAriaText": "Get aria-label text for control that opens picker dialog. Aria-label text must include selected date. @DateIOType", + "InputAdornmentProps": "Props to pass to keyboard input adornment.", + "inputFormat": "Format string.", + "mask": "Custom mask. Can be used to override generate from format. (e.g. //__ __: or //__ __: _M)", + "onAccept": "Callback fired when date is accepted @DateIOType.", + "onChange": "Callback fired when the value (the selected date) changes. @DateIOType.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback that fired when input value or new value prop validation returns new validation error (or value is valid after error). In case of validation error detected reason prop return non-null value and TextField must be displayed in error state. This can be used to render appropriate form error.
Read the guide about form integration and error displaying.", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "open": "Control the popup or dialog open state.", + "OpenPickerButtonProps": "Props to pass to keyboard adornment button.", + "openPickerIcon": "Icon displaying for open picker button.", + "orientation": "Force rendering in particular orientation.", + "readOnly": "Make picker read only.", + "renderInput": "The renderInput prop allows you to customize the rendered input. The props argument of this render prop contains props of TextField that you need to forward. Pay specific attention to the ref and inputProps keys.", + "rifmFormatter": "Custom formatter to be passed into Rifm component.", + "showToolbar": "If true, show the toolbar even in desktop mode.", + "ToolbarComponent": "Component that will replace default toolbar renderer.", + "toolbarFormat": "Date format, that is displaying in toolbar.", + "toolbarPlaceholder": "Mobile picker date value placeholder, displaying if value === null.", + "toolbarTitle": "Mobile picker title, displaying in the toolbar.", + "value": "The value of the picker." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs/static-date-picker/static-date-picker-pt.json b/docs/translations/api-docs/static-date-picker/static-date-picker-pt.json new file mode 100644 index 00000000000000..b78a654ab3ea3a --- /dev/null +++ b/docs/translations/api-docs/static-date-picker/static-date-picker-pt.json @@ -0,0 +1,36 @@ +{ + "componentDescription": "", + "propDescriptions": { + "acceptRegex": "Regular expression to detect "accepted" symbols.", + "className": "className applied to the root component.", + "dateAdapter": "Allows to pass configured date-io adapter directly. More info here jsx dateAdapter={new AdapterDateFns({ locale: ruLocale })} ", + "disableCloseOnSelect": "If true the popup or dialog will immediately close after submitting full date.", + "disabled": "If true, the picker and text field are disabled.", + "disableMaskedInput": "Disable mask on the keyboard, this should be used rarely. Consider passing proper mask for your format.", + "disableOpenPicker": "Do not render open picker button (renders only text field with validation).", + "displayStaticWrapperAs": "Force static wrapper inner components to be rendered in mobile or desktop mode", + "getOpenDialogAriaText": "Get aria-label text for control that opens picker dialog. Aria-label text must include selected date. @DateIOType", + "InputAdornmentProps": "Props to pass to keyboard input adornment.", + "inputFormat": "Format string.", + "mask": "Custom mask. Can be used to override generate from format. (e.g. //__ __: or //__ __: _M)", + "onAccept": "Callback fired when date is accepted @DateIOType.", + "onChange": "Callback fired when the value (the selected date) changes. @DateIOType.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback that fired when input value or new value prop validation returns new validation error (or value is valid after error). In case of validation error detected reason prop return non-null value and TextField must be displayed in error state. This can be used to render appropriate form error.
Read the guide about form integration and error displaying.", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "open": "Control the popup or dialog open state.", + "OpenPickerButtonProps": "Props to pass to keyboard adornment button.", + "openPickerIcon": "Icon displaying for open picker button.", + "orientation": "Force rendering in particular orientation.", + "readOnly": "Make picker read only.", + "renderInput": "The renderInput prop allows you to customize the rendered input. The props argument of this render prop contains props of TextField that you need to forward. Pay specific attention to the ref and inputProps keys.", + "rifmFormatter": "Custom formatter to be passed into Rifm component.", + "showToolbar": "If true, show the toolbar even in desktop mode.", + "ToolbarComponent": "Component that will replace default toolbar renderer.", + "toolbarFormat": "Date format, that is displaying in toolbar.", + "toolbarPlaceholder": "Mobile picker date value placeholder, displaying if value === null.", + "toolbarTitle": "Mobile picker title, displaying in the toolbar.", + "value": "The value of the picker." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs/static-date-picker/static-date-picker-ru.json b/docs/translations/api-docs/static-date-picker/static-date-picker-ru.json new file mode 100644 index 00000000000000..b78a654ab3ea3a --- /dev/null +++ b/docs/translations/api-docs/static-date-picker/static-date-picker-ru.json @@ -0,0 +1,36 @@ +{ + "componentDescription": "", + "propDescriptions": { + "acceptRegex": "Regular expression to detect "accepted" symbols.", + "className": "className applied to the root component.", + "dateAdapter": "Allows to pass configured date-io adapter directly. More info here jsx dateAdapter={new AdapterDateFns({ locale: ruLocale })} ", + "disableCloseOnSelect": "If true the popup or dialog will immediately close after submitting full date.", + "disabled": "If true, the picker and text field are disabled.", + "disableMaskedInput": "Disable mask on the keyboard, this should be used rarely. Consider passing proper mask for your format.", + "disableOpenPicker": "Do not render open picker button (renders only text field with validation).", + "displayStaticWrapperAs": "Force static wrapper inner components to be rendered in mobile or desktop mode", + "getOpenDialogAriaText": "Get aria-label text for control that opens picker dialog. Aria-label text must include selected date. @DateIOType", + "InputAdornmentProps": "Props to pass to keyboard input adornment.", + "inputFormat": "Format string.", + "mask": "Custom mask. Can be used to override generate from format. (e.g. //__ __: or //__ __: _M)", + "onAccept": "Callback fired when date is accepted @DateIOType.", + "onChange": "Callback fired when the value (the selected date) changes. @DateIOType.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback that fired when input value or new value prop validation returns new validation error (or value is valid after error). In case of validation error detected reason prop return non-null value and TextField must be displayed in error state. This can be used to render appropriate form error.
Read the guide about form integration and error displaying.", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "open": "Control the popup or dialog open state.", + "OpenPickerButtonProps": "Props to pass to keyboard adornment button.", + "openPickerIcon": "Icon displaying for open picker button.", + "orientation": "Force rendering in particular orientation.", + "readOnly": "Make picker read only.", + "renderInput": "The renderInput prop allows you to customize the rendered input. The props argument of this render prop contains props of TextField that you need to forward. Pay specific attention to the ref and inputProps keys.", + "rifmFormatter": "Custom formatter to be passed into Rifm component.", + "showToolbar": "If true, show the toolbar even in desktop mode.", + "ToolbarComponent": "Component that will replace default toolbar renderer.", + "toolbarFormat": "Date format, that is displaying in toolbar.", + "toolbarPlaceholder": "Mobile picker date value placeholder, displaying if value === null.", + "toolbarTitle": "Mobile picker title, displaying in the toolbar.", + "value": "The value of the picker." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs/static-date-picker/static-date-picker-zh.json b/docs/translations/api-docs/static-date-picker/static-date-picker-zh.json new file mode 100644 index 00000000000000..b78a654ab3ea3a --- /dev/null +++ b/docs/translations/api-docs/static-date-picker/static-date-picker-zh.json @@ -0,0 +1,36 @@ +{ + "componentDescription": "", + "propDescriptions": { + "acceptRegex": "Regular expression to detect "accepted" symbols.", + "className": "className applied to the root component.", + "dateAdapter": "Allows to pass configured date-io adapter directly. More info here jsx dateAdapter={new AdapterDateFns({ locale: ruLocale })} ", + "disableCloseOnSelect": "If true the popup or dialog will immediately close after submitting full date.", + "disabled": "If true, the picker and text field are disabled.", + "disableMaskedInput": "Disable mask on the keyboard, this should be used rarely. Consider passing proper mask for your format.", + "disableOpenPicker": "Do not render open picker button (renders only text field with validation).", + "displayStaticWrapperAs": "Force static wrapper inner components to be rendered in mobile or desktop mode", + "getOpenDialogAriaText": "Get aria-label text for control that opens picker dialog. Aria-label text must include selected date. @DateIOType", + "InputAdornmentProps": "Props to pass to keyboard input adornment.", + "inputFormat": "Format string.", + "mask": "Custom mask. Can be used to override generate from format. (e.g. //__ __: or //__ __: _M)", + "onAccept": "Callback fired when date is accepted @DateIOType.", + "onChange": "Callback fired when the value (the selected date) changes. @DateIOType.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback that fired when input value or new value prop validation returns new validation error (or value is valid after error). In case of validation error detected reason prop return non-null value and TextField must be displayed in error state. This can be used to render appropriate form error.
Read the guide about form integration and error displaying.", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "open": "Control the popup or dialog open state.", + "OpenPickerButtonProps": "Props to pass to keyboard adornment button.", + "openPickerIcon": "Icon displaying for open picker button.", + "orientation": "Force rendering in particular orientation.", + "readOnly": "Make picker read only.", + "renderInput": "The renderInput prop allows you to customize the rendered input. The props argument of this render prop contains props of TextField that you need to forward. Pay specific attention to the ref and inputProps keys.", + "rifmFormatter": "Custom formatter to be passed into Rifm component.", + "showToolbar": "If true, show the toolbar even in desktop mode.", + "ToolbarComponent": "Component that will replace default toolbar renderer.", + "toolbarFormat": "Date format, that is displaying in toolbar.", + "toolbarPlaceholder": "Mobile picker date value placeholder, displaying if value === null.", + "toolbarTitle": "Mobile picker title, displaying in the toolbar.", + "value": "The value of the picker." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs/static-date-picker/static-date-picker.json b/docs/translations/api-docs/static-date-picker/static-date-picker.json new file mode 100644 index 00000000000000..b78a654ab3ea3a --- /dev/null +++ b/docs/translations/api-docs/static-date-picker/static-date-picker.json @@ -0,0 +1,36 @@ +{ + "componentDescription": "", + "propDescriptions": { + "acceptRegex": "Regular expression to detect "accepted" symbols.", + "className": "className applied to the root component.", + "dateAdapter": "Allows to pass configured date-io adapter directly. More info here jsx dateAdapter={new AdapterDateFns({ locale: ruLocale })} ", + "disableCloseOnSelect": "If true the popup or dialog will immediately close after submitting full date.", + "disabled": "If true, the picker and text field are disabled.", + "disableMaskedInput": "Disable mask on the keyboard, this should be used rarely. Consider passing proper mask for your format.", + "disableOpenPicker": "Do not render open picker button (renders only text field with validation).", + "displayStaticWrapperAs": "Force static wrapper inner components to be rendered in mobile or desktop mode", + "getOpenDialogAriaText": "Get aria-label text for control that opens picker dialog. Aria-label text must include selected date. @DateIOType", + "InputAdornmentProps": "Props to pass to keyboard input adornment.", + "inputFormat": "Format string.", + "mask": "Custom mask. Can be used to override generate from format. (e.g. //__ __: or //__ __: _M)", + "onAccept": "Callback fired when date is accepted @DateIOType.", + "onChange": "Callback fired when the value (the selected date) changes. @DateIOType.", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).", + "onError": "Callback that fired when input value or new value prop validation returns new validation error (or value is valid after error). In case of validation error detected reason prop return non-null value and TextField must be displayed in error state. This can be used to render appropriate form error.
Read the guide about form integration and error displaying.", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).", + "open": "Control the popup or dialog open state.", + "OpenPickerButtonProps": "Props to pass to keyboard adornment button.", + "openPickerIcon": "Icon displaying for open picker button.", + "orientation": "Force rendering in particular orientation.", + "readOnly": "Make picker read only.", + "renderInput": "The renderInput prop allows you to customize the rendered input. The props argument of this render prop contains props of TextField that you need to forward. Pay specific attention to the ref and inputProps keys.", + "rifmFormatter": "Custom formatter to be passed into Rifm component.", + "showToolbar": "If true, show the toolbar even in desktop mode.", + "ToolbarComponent": "Component that will replace default toolbar renderer.", + "toolbarFormat": "Date format, that is displaying in toolbar.", + "toolbarPlaceholder": "Mobile picker date value placeholder, displaying if value === null.", + "toolbarTitle": "Mobile picker title, displaying in the toolbar.", + "value": "The value of the picker." + }, + "classDescriptions": {} +} diff --git a/packages/material-ui-lab/src/DatePicker/DatePicker.tsx b/packages/material-ui-lab/src/DatePicker/DatePicker.tsx index 6c9b4c9b17db12..0a88663d269713 100644 --- a/packages/material-ui-lab/src/DatePicker/DatePicker.tsx +++ b/packages/material-ui-lab/src/DatePicker/DatePicker.tsx @@ -66,6 +66,16 @@ export type DatePickerGenericComponent = (( props: BaseDatePickerProps & SharedPickerProps, ) => JSX.Element) & { propTypes?: unknown }; +/** + * + * Demos: + * + * - [Date Picker](https://material-ui.com/components/date-picker/) + * + * API: + * + * - [DatePicker API](https://material-ui.com/api/date-picker/) + */ // @typescript-to-proptypes-generate const DatePicker = makePickerWithStateAndWrapper>(ResponsiveWrapper, { name: 'MuiDatePicker', diff --git a/packages/material-ui-lab/src/DesktopDatePicker/DesktopDatePicker.tsx b/packages/material-ui-lab/src/DesktopDatePicker/DesktopDatePicker.tsx index 366f1a483c73eb..6851aeb187fbaf 100644 --- a/packages/material-ui-lab/src/DesktopDatePicker/DesktopDatePicker.tsx +++ b/packages/material-ui-lab/src/DesktopDatePicker/DesktopDatePicker.tsx @@ -7,6 +7,12 @@ import { import { DesktopWrapper } from '../internal/pickers/wrappers/Wrapper'; import { makePickerWithStateAndWrapper } from '../internal/pickers/Picker/makePickerWithState'; +/** + * + * API: + * + * - [DesktopDatePicker API](https://material-ui.com/api/desktop-date-picker/) + */ // @typescript-to-proptypes-generate const DesktopDatePicker = makePickerWithStateAndWrapper>( DesktopWrapper, diff --git a/packages/material-ui-lab/src/MobileDatePicker/MobileDatePicker.tsx b/packages/material-ui-lab/src/MobileDatePicker/MobileDatePicker.tsx index 9846c636645400..43250c40313e0f 100644 --- a/packages/material-ui-lab/src/MobileDatePicker/MobileDatePicker.tsx +++ b/packages/material-ui-lab/src/MobileDatePicker/MobileDatePicker.tsx @@ -7,6 +7,12 @@ import { } from '../DatePicker/DatePicker'; import { MobileWrapper } from '../internal/pickers/wrappers/Wrapper'; +/** + * + * API: + * + * - [MobileDatePicker API](https://material-ui.com/api/mobile-date-picker/) + */ // @typescript-to-proptypes-generate const MobileDatePicker = makePickerWithStateAndWrapper>( MobileWrapper, diff --git a/packages/material-ui-lab/src/StaticDatePicker/StaticDatePicker.tsx b/packages/material-ui-lab/src/StaticDatePicker/StaticDatePicker.tsx index f6c6b1b3cb1e7b..1d1d128d100033 100644 --- a/packages/material-ui-lab/src/StaticDatePicker/StaticDatePicker.tsx +++ b/packages/material-ui-lab/src/StaticDatePicker/StaticDatePicker.tsx @@ -7,6 +7,12 @@ import { } from '../DatePicker/DatePicker'; import { StaticWrapper } from '../internal/pickers/wrappers/Wrapper'; +/** + * + * API: + * + * - [StaticDatePicker API](https://material-ui.com/api/static-date-picker/) + */ // @typescript-to-proptypes-generate const StaticDatePicker = makePickerWithStateAndWrapper>( StaticWrapper, From eca822d0eb328be07de656c1a666c1ee53bc15eb Mon Sep 17 00:00:00 2001 From: eps1lon Date: Wed, 27 Jan 2021 19:46:28 +0100 Subject: [PATCH 4/4] resolve assignability issues reading .propTypes is discouraged anyway. --- packages/material-ui-lab/src/DatePicker/DatePicker.tsx | 2 +- packages/material-ui-lab/src/TimePicker/TimePicker.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/material-ui-lab/src/DatePicker/DatePicker.tsx b/packages/material-ui-lab/src/DatePicker/DatePicker.tsx index 0a88663d269713..73674901ae2f00 100644 --- a/packages/material-ui-lab/src/DatePicker/DatePicker.tsx +++ b/packages/material-ui-lab/src/DatePicker/DatePicker.tsx @@ -64,7 +64,7 @@ export const datePickerConfig = { export type DatePickerGenericComponent = (( props: BaseDatePickerProps & SharedPickerProps, -) => JSX.Element) & { propTypes?: unknown }; +) => JSX.Element) & { propTypes?: any }; /** * diff --git a/packages/material-ui-lab/src/TimePicker/TimePicker.tsx b/packages/material-ui-lab/src/TimePicker/TimePicker.tsx index dda8f520c90dd0..8528b814e84524 100644 --- a/packages/material-ui-lab/src/TimePicker/TimePicker.tsx +++ b/packages/material-ui-lab/src/TimePicker/TimePicker.tsx @@ -76,7 +76,7 @@ export const timePickerConfig = { export type TimePickerGenericComponent = (( props: BaseTimePickerProps & SharedPickerProps, -) => JSX.Element) & { propTypes?: unknown }; +) => JSX.Element) & { propTypes?: any }; /** *