Skip to content

Commit

Permalink
pnpm proptypes
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Aug 25, 2024
1 parent 2acef48 commit 6b6a620
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/pages/material-ui/api/loading-button.json
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,12 @@
"isGlobal": false,
"isDeprecated": true
},
{
"key": "label",
"className": "MuiLoadingButton-label",
"description": "Styles applied to the span element that wraps the children.",
"isGlobal": false
},
{
"key": "loading",
"className": "MuiLoadingButton-loading",
Expand Down
4 changes: 4 additions & 0 deletions docs/translations/api-docs/loading-button/loading-button.json
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,10 @@
"conditions": "supplied and <code>size=\"small\"</code>",
"deprecationInfo": "Combine the <a href=\"/material-ui/api/button/#button-classes-icon\">.MuiButton-icon</a> and <a href=\"/material-ui/api/button/#button-classes-sizeSmall\">.MuiButtonSizeSmall</a> classes instead. See <a href=\"/material-ui/migration/migrating-from-deprecated-apis/\">Migrating from deprecated APIs</a> for more details."
},
"label": {
"description": "Styles applied to {{nodeName}}.",
"nodeName": "the span element that wraps the children"
},
"loading": {
"description": "Styles applied to {{nodeName}} if {{conditions}}.",
"nodeName": "the root element",
Expand Down
2 changes: 2 additions & 0 deletions packages/mui-lab/src/LoadingButton/LoadingButton.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ export interface LoadingButtonOwnProps {
classes?: Partial<ButtonClasses> & {
/** Styles applied to the root element. */
root?: string;
/** Styles applied to the span element that wraps the children. */
label?: string;
/** Styles applied to the root element if `loading={true}`. */
loading?: string;
/** Styles applied to the loadingIndicator element. */
Expand Down
1 change: 1 addition & 0 deletions packages/mui-lab/src/LoadingButton/LoadingButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ const LoadingButton = React.forwardRef(function LoadingButton(inProps, ref) {
) : (
loadingButtonLoadingIndicator
)}

{ownerState.loadingPosition === 'end' ? (
loadingButtonLoadingIndicator
) : (
Expand Down

0 comments on commit 6b6a620

Please sign in to comment.