-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e68f224
commit cd8c9a9
Showing
19 changed files
with
618 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 './pickers-filled-input.json'; | ||
|
||
export default function Page(props) { | ||
const { descriptions, pageContent } = props; | ||
return <ApiPage descriptions={descriptions} pageContent={pageContent} />; | ||
} | ||
|
||
Page.getInitialProps = () => { | ||
const req = require.context( | ||
'docsx/translations/api-docs/date-pickers', | ||
false, | ||
/\.\/pickers-filled-input(-[a-z]{2})?\.json$/, | ||
); | ||
const descriptions = mapApiPageTranslations(req); | ||
|
||
return { | ||
descriptions, | ||
pageContent: jsonPageContent, | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"props": { | ||
"areAllSectionsEmpty": { "type": { "name": "bool" }, "required": true }, | ||
"contentEditable": { "type": { "name": "bool" }, "required": true }, | ||
"elements": { | ||
"type": { | ||
"name": "arrayOf", | ||
"description": "Array<{ after: object, before: object, container: object, content: object }>" | ||
}, | ||
"required": true | ||
}, | ||
"component": { "type": { "name": "elementType" } }, | ||
"slots": { "type": { "name": "object" }, "default": "{}" }, | ||
"sx": { | ||
"type": { | ||
"name": "union", | ||
"description": "Array<func<br>| object<br>| bool><br>| func<br>| object" | ||
}, | ||
"additionalInfo": { "sx": true } | ||
} | ||
}, | ||
"slots": [ | ||
{ "class": null, "name": "input", "description": "" }, | ||
{ "class": null, "name": "root", "description": "" } | ||
], | ||
"name": "PickersFilledInput", | ||
"imports": [ | ||
"import { PickersFilledInput } from '@mui/x-date-pickers/PickersTextField';", | ||
"import { PickersFilledInput } from '@mui/x-date-pickers';", | ||
"import { PickersFilledInput } from '@mui/x-date-pickers-pro';" | ||
], | ||
"styles": { "classes": [], "globalClasses": {}, "name": "MuiPickersFilledInput" }, | ||
"filename": "/packages/x-date-pickers/src/PickersTextField/PickersFilledInput/PickersFilledInput.tsx", | ||
"demos": "<ul></ul>" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 './pickers-input-base.json'; | ||
|
||
export default function Page(props) { | ||
const { descriptions, pageContent } = props; | ||
return <ApiPage descriptions={descriptions} pageContent={pageContent} />; | ||
} | ||
|
||
Page.getInitialProps = () => { | ||
const req = require.context( | ||
'docsx/translations/api-docs/date-pickers', | ||
false, | ||
/\.\/pickers-input-base(-[a-z]{2})?\.json$/, | ||
); | ||
const descriptions = mapApiPageTranslations(req); | ||
|
||
return { | ||
descriptions, | ||
pageContent: jsonPageContent, | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"props": { | ||
"areAllSectionsEmpty": { "type": { "name": "bool" }, "required": true }, | ||
"contentEditable": { "type": { "name": "bool" }, "required": true }, | ||
"elements": { | ||
"type": { | ||
"name": "arrayOf", | ||
"description": "Array<{ after: object, before: object, container: object, content: object }>" | ||
}, | ||
"required": true | ||
}, | ||
"component": { "type": { "name": "elementType" } }, | ||
"slots": { "type": { "name": "object" }, "default": "{}" }, | ||
"sx": { | ||
"type": { | ||
"name": "union", | ||
"description": "Array<func<br>| object<br>| bool><br>| func<br>| object" | ||
}, | ||
"additionalInfo": { "sx": true } | ||
} | ||
}, | ||
"slots": [ | ||
{ "class": null, "name": "input", "description": "" }, | ||
{ "class": null, "name": "root", "description": "" } | ||
], | ||
"name": "PickersInputBase", | ||
"imports": [ | ||
"import { PickersInputBase } from '@mui/x-date-pickers/PickersTextField';", | ||
"import { PickersInputBase } from '@mui/x-date-pickers';", | ||
"import { PickersInputBase } from '@mui/x-date-pickers-pro';" | ||
], | ||
"styles": { "classes": [], "globalClasses": {}, "name": "MuiPickersInputBase" }, | ||
"filename": "/packages/x-date-pickers/src/PickersTextField/PickersInputBase/PickersInputBase.tsx", | ||
"demos": "<ul></ul>" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 './pickers-input.json'; | ||
|
||
export default function Page(props) { | ||
const { descriptions, pageContent } = props; | ||
return <ApiPage descriptions={descriptions} pageContent={pageContent} />; | ||
} | ||
|
||
Page.getInitialProps = () => { | ||
const req = require.context( | ||
'docsx/translations/api-docs/date-pickers', | ||
false, | ||
/\.\/pickers-input(-[a-z]{2})?\.json$/, | ||
); | ||
const descriptions = mapApiPageTranslations(req); | ||
|
||
return { | ||
descriptions, | ||
pageContent: jsonPageContent, | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"props": { | ||
"areAllSectionsEmpty": { "type": { "name": "bool" }, "required": true }, | ||
"contentEditable": { "type": { "name": "bool" }, "required": true }, | ||
"elements": { | ||
"type": { | ||
"name": "arrayOf", | ||
"description": "Array<{ after: object, before: object, container: object, content: object }>" | ||
}, | ||
"required": true | ||
}, | ||
"component": { "type": { "name": "elementType" } }, | ||
"slots": { "type": { "name": "object" }, "default": "{}" }, | ||
"sx": { | ||
"type": { | ||
"name": "union", | ||
"description": "Array<func<br>| object<br>| bool><br>| func<br>| object" | ||
}, | ||
"additionalInfo": { "sx": true } | ||
} | ||
}, | ||
"slots": [ | ||
{ "class": null, "name": "input", "description": "" }, | ||
{ "class": null, "name": "root", "description": "" } | ||
], | ||
"name": "PickersInput", | ||
"imports": [ | ||
"import { PickersInput } from '@mui/x-date-pickers/PickersTextField';", | ||
"import { PickersInput } from '@mui/x-date-pickers';", | ||
"import { PickersInput } from '@mui/x-date-pickers-pro';" | ||
], | ||
"styles": { "classes": [], "globalClasses": {}, "name": "MuiPickersInput" }, | ||
"filename": "/packages/x-date-pickers/src/PickersTextField/PickersInput/PickersInput.tsx", | ||
"demos": "<ul></ul>" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 './pickers-outlined-input.json'; | ||
|
||
export default function Page(props) { | ||
const { descriptions, pageContent } = props; | ||
return <ApiPage descriptions={descriptions} pageContent={pageContent} />; | ||
} | ||
|
||
Page.getInitialProps = () => { | ||
const req = require.context( | ||
'docsx/translations/api-docs/date-pickers', | ||
false, | ||
/\.\/pickers-outlined-input(-[a-z]{2})?\.json$/, | ||
); | ||
const descriptions = mapApiPageTranslations(req); | ||
|
||
return { | ||
descriptions, | ||
pageContent: jsonPageContent, | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"props": { | ||
"areAllSectionsEmpty": { "type": { "name": "bool" }, "required": true }, | ||
"contentEditable": { "type": { "name": "bool" }, "required": true }, | ||
"elements": { | ||
"type": { | ||
"name": "arrayOf", | ||
"description": "Array<{ after: object, before: object, container: object, content: object }>" | ||
}, | ||
"required": true | ||
}, | ||
"component": { "type": { "name": "elementType" } }, | ||
"slots": { "type": { "name": "object" }, "default": "{}" }, | ||
"sx": { | ||
"type": { | ||
"name": "union", | ||
"description": "Array<func<br>| object<br>| bool><br>| func<br>| object" | ||
}, | ||
"additionalInfo": { "sx": true } | ||
} | ||
}, | ||
"slots": [ | ||
{ "class": null, "name": "input", "description": "" }, | ||
{ "class": null, "name": "root", "description": "" } | ||
], | ||
"name": "PickersOutlinedInput", | ||
"imports": [ | ||
"import { PickersOutlinedInput } from '@mui/x-date-pickers/PickersTextField';", | ||
"import { PickersOutlinedInput } from '@mui/x-date-pickers';", | ||
"import { PickersOutlinedInput } from '@mui/x-date-pickers-pro';" | ||
], | ||
"styles": { "classes": [], "globalClasses": {}, "name": "MuiPickersOutlinedInput" }, | ||
"filename": "/packages/x-date-pickers/src/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.tsx", | ||
"demos": "<ul></ul>" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 './pickers-text-field.json'; | ||
|
||
export default function Page(props) { | ||
const { descriptions, pageContent } = props; | ||
return <ApiPage descriptions={descriptions} pageContent={pageContent} />; | ||
} | ||
|
||
Page.getInitialProps = () => { | ||
const req = require.context( | ||
'docsx/translations/api-docs/date-pickers', | ||
false, | ||
/\.\/pickers-text-field(-[a-z]{2})?\.json$/, | ||
); | ||
const descriptions = mapApiPageTranslations(req); | ||
|
||
return { | ||
descriptions, | ||
pageContent: jsonPageContent, | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
{ | ||
"props": { | ||
"areAllSectionsEmpty": { "type": { "name": "bool" }, "required": true }, | ||
"contentEditable": { "type": { "name": "bool" }, "required": true }, | ||
"elements": { | ||
"type": { | ||
"name": "arrayOf", | ||
"description": "Array<{ after: object, before: object, container: object, content: object }>" | ||
}, | ||
"required": true | ||
}, | ||
"color": { | ||
"type": { | ||
"name": "enum", | ||
"description": "'error'<br>| 'info'<br>| 'primary'<br>| 'secondary'<br>| 'success'<br>| 'warning'" | ||
}, | ||
"default": "'primary'" | ||
}, | ||
"focused": { "type": { "name": "bool" } }, | ||
"helperText": { "type": { "name": "node" } }, | ||
"hiddenLabel": { "type": { "name": "bool" }, "default": "false" }, | ||
"InputProps": { "type": { "name": "object" } }, | ||
"margin": { | ||
"type": { | ||
"name": "enum", | ||
"description": "'dense'<br>| 'none'<br>| 'normal'" | ||
}, | ||
"default": "'none'" | ||
}, | ||
"required": { "type": { "name": "bool" }, "default": "false" }, | ||
"size": { | ||
"type": { "name": "enum", "description": "'medium'<br>| 'small'" }, | ||
"default": "'medium'" | ||
}, | ||
"sx": { | ||
"type": { | ||
"name": "union", | ||
"description": "Array<func<br>| object<br>| bool><br>| func<br>| object" | ||
}, | ||
"additionalInfo": { "sx": true } | ||
}, | ||
"variant": { | ||
"type": { | ||
"name": "enum", | ||
"description": "'filled'<br>| 'outlined'<br>| 'standard'" | ||
}, | ||
"default": "'outlined'" | ||
} | ||
}, | ||
"slots": [], | ||
"name": "PickersTextField", | ||
"imports": [ | ||
"import { PickersTextField } from '@mui/x-date-pickers/PickersTextField';", | ||
"import { PickersTextField } from '@mui/x-date-pickers';", | ||
"import { PickersTextField } from '@mui/x-date-pickers-pro';" | ||
], | ||
"styles": { | ||
"classes": ["root", "marginNormal", "marginDense", "fullWidth"], | ||
"globalClasses": {}, | ||
"name": "MuiPickersTextField" | ||
}, | ||
"filename": "/packages/x-date-pickers/src/PickersTextField/PickersTextField.tsx", | ||
"demos": "<ul></ul>" | ||
} |
37 changes: 37 additions & 0 deletions
37
docs/translations/api-docs/date-pickers/pickers-filled-input.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"componentDescription": "", | ||
"propDescriptions": { | ||
"areAllSectionsEmpty": { | ||
"description": "Is <code>true</code> if the current values equals the empty value. For a single item value, it means that <code>value === null</code> For a range value, it means that <code>value === [null, null]</code>", | ||
"deprecated": "", | ||
"typeDescriptions": {} | ||
}, | ||
"component": { | ||
"description": "The component used for the root node. Either a string to use a HTML element or a component.", | ||
"deprecated": "", | ||
"typeDescriptions": {} | ||
}, | ||
"contentEditable": { | ||
"description": "If true, the whole element is editable. Useful when all the sections are selected.", | ||
"deprecated": "", | ||
"typeDescriptions": {} | ||
}, | ||
"elements": { | ||
"description": "The elements to render. Each element contains the prop to edit a section of the value.", | ||
"deprecated": "", | ||
"typeDescriptions": {} | ||
}, | ||
"slots": { | ||
"description": "The components used for each slot inside.", | ||
"deprecated": "", | ||
"typeDescriptions": {} | ||
}, | ||
"sx": { | ||
"description": "The system prop that allows defining system overrides as well as additional CSS styles.", | ||
"deprecated": "", | ||
"typeDescriptions": {} | ||
} | ||
}, | ||
"classDescriptions": {}, | ||
"slotDescriptions": { "input": "", "root": "" } | ||
} |
Oops, something went wrong.