Skip to content

Commit

Permalink
feat(types): Mark deprecated styles in LinearProgressClasses with mig…
Browse files Browse the repository at this point in the history
…ration instructions
  • Loading branch information
headironc committed Jan 4, 2025
1 parent 768b6c6 commit 16d3312
Showing 1 changed file with 27 additions and 9 deletions.
36 changes: 27 additions & 9 deletions packages/mui-material/src/LinearProgress/linearProgressClasses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,43 @@ export interface LinearProgressClasses {
query: string;
/** Styles applied to the additional bar element if `variant="buffer"`. */
dashed: string;
/** Styles applied to the additional bar element if `variant="buffer"` and `color="primary"`. */
/** Styles applied to the additional bar element if `variant="buffer"` and `color="primary"`.
* @deprecated Combine the [.MuiLinearProgress-dashed](/material-ui/api/linear-progress/#linear-progress-classes-dashed) and [.MuiChip-colorPrimary](/material-ui/api/linear-progress/#linear-progress-classes-colorPrimary) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
*/
dashedColorPrimary: string;
/** Styles applied to the additional bar element if `variant="buffer"` and `color="secondary"`. */
/** Styles applied to the additional bar element if `variant="buffer"` and `color="secondary"`.
* @deprecated Combine the [.MuiLinearProgress-dashed](/material-ui/api/linear-progress/#linear-progress-classes-dashed) and [.MuiChip-colorSecondary](/material-ui/api/linear-progress/#linear-progress-classes-colorSecondary) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
*/
dashedColorSecondary: string;
/** Styles applied to the layered bar1 and bar2 elements. */
bar: string;
/** Styles applied to the bar elements if `color="primary"`; bar2 if `variant` not "buffer". */
/** Styles applied to the bar elements if `color="primary"`; bar2 if `variant` not "buffer".
* @deprecated Use the [.MuiLinearProgress-bar](/material-ui/api/linear-progress/#linear-progress-classes-bar) and [.MuiLinearProgress-colorPrimary](/material-ui/api/linear-progress/#linear-progress-classes-colorPrimary) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
*/
barColorPrimary: string;
/** Styles applied to the bar elements if `color="secondary"`; bar2 if `variant` not "buffer". */
/** Styles applied to the bar elements if `color="secondary"`; bar2 if `variant` not "buffer".
* @deprecated Use the [.MuiLinearProgress-bar](/material-ui/api/linear-progress/#linear-progress-classes-bar) and [.MuiLinearProgress-colorSecondary](/material-ui/api/linear-progress/#linear-progress-classes-colorSecondary) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
*/
barColorSecondary: string;
/** Styles applied to the bar1 element if `variant="indeterminate or query"`. */
/** Styles applied to the bar1 element if `variant="indeterminate or query"`.
* @deprecated Use the [.MuiLinearProgress-bar1](/material-ui/api/linear-progress/#linear-progress-classes-bar1) and [.MuiLinearProgress-indeterminate](/material-ui/api/linear-progress/#linear-progress-classes-indeterminate) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
*/
bar1Indeterminate: string;
/** Styles applied to the bar1 element if `variant="determinate"`. */
/** Styles applied to the bar1 element if `variant="determinate"`.
* @deprecated Use the [.MuiLinearProgress-bar1](/material-ui/api/linear-progress/#linear-progress-classes-bar1) and [.MuiLinearProgress-determinate](/material-ui/api/linear-progress/#linear-progress-classes-determinate) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
*/
bar1Determinate: string;
/** Styles applied to the bar1 element if `variant="buffer"`. */
/** Styles applied to the bar1 element if `variant="buffer"`.
* @deprecated Use the [.MuiLinearProgress-bar1](/material-ui/api/linear-progress/#linear-progress-classes-bar1) and [.MuiLinearProgress-buffer](/material-ui/api/linear-progress/#linear-progress-classes-buffer) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
*/
bar1Buffer: string;
/** Styles applied to the bar2 element if `variant="indeterminate or query"`. */
/** Styles applied to the bar2 element if `variant="indeterminate or query"`.
* @deprecated Use the [.MuiLinearProgress-bar2](/material-ui/api/linear-progress/#linear-progress-classes-bar2) and [.MuiLinearProgress-indeterminate](/material-ui/api/linear-progress/#linear-progress-classes-indeterminate) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
*/
bar2Indeterminate: string;
/** Styles applied to the bar2 element if `variant="buffer"`. */
/** Styles applied to the bar2 element if `variant="buffer"`.
* @deprecated Use the [.MuiLinearProgress-bar2](/material-ui/api/linear-progress/#linear-progress-classes-bar2) and [.MuiLinearProgress-buffer](/material-ui/api/linear-progress/#linear-progress-classes-buffer) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
*/
bar2Buffer: string;
}

Expand Down

0 comments on commit 16d3312

Please sign in to comment.