UNPKG

6.49 kBTypeScriptView Raw
1export interface AlertClasses {
2 /** Styles applied to the root element. */
3 root: string;
4 /** Styles applied to the root element if `variant="filled"`. */
5 filled: string;
6 /** Styles applied to the root element if `variant="outlined"`. */
7 outlined: string;
8 /** Styles applied to the root element if `variant="standard"`. */
9 standard: string;
10 /** Styles applied to the root element if `color="success"`. */
11 colorSuccess: string;
12 /** Styles applied to the root element if `color="info"`. */
13 colorInfo: string;
14 /** Styles applied to the root element if `color="warning"`. */
15 colorWarning: string;
16 /** Styles applied to the root element if `color="error"`. */
17 colorError: string;
18 /** Styles applied to the root element if `variant="standard"` and `color="success"`.
19 * @deprecated Combine the [.MuiAlert-standard](/material-ui/api/alert/#alert-classes-standard)
20 * and [.MuiAlert-colorSuccess](/material-ui/api/alert/#alert-classes-colorSuccess) classes instead.
21 * See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
22 */
23 standardSuccess: string;
24 /** Styles applied to the root element if `variant="standard"` and `color="info"`.
25 * @deprecated Combine the [.MuiAlert-standard](/material-ui/api/alert/#alert-classes-standard)
26 * and [.MuiAlert-colorInfo](/material-ui/api/alert/#alert-classes-colorInfo) classes instead.
27 * See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
28 */
29 standardInfo: string;
30 /** Styles applied to the root element if `variant="standard"` and `color="warning"`.
31 * @deprecated Combine the [.MuiAlert-standard](/material-ui/api/alert/#alert-classes-standard)
32 * and [.MuiAlert-colorWarning](/material-ui/api/alert/#alert-classes-colorWarning) classes instead.
33 * See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
34 */
35 standardWarning: string;
36 /** Styles applied to the root element if `variant="standard"` and `color="error"`.
37 * @deprecated Combine the [.MuiAlert-standard](/material-ui/api/alert/#alert-classes-standard)
38 * and [.MuiAlert-colorError](/material-ui/api/alert/#alert-classes-colorError) classes instead.
39 * See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
40 */
41 standardError: string;
42 /** Styles applied to the root element if `variant="outlined"` and `color="success"`.
43 * @deprecated Combine the [.MuiAlert-outlined](/material-ui/api/alert/#alert-classes-outlined)
44 * and [.MuiAlert-colorSuccess](/material-ui/api/alert/#alert-classes-colorSuccess) classes instead.
45 * See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
46 */
47 outlinedSuccess: string;
48 /** Styles applied to the root element if `variant="outlined"` and `color="info"`.
49 * @deprecated Combine the [.MuiAlert-outlined](/material-ui/api/alert/#alert-classes-outlined)
50 * and [.MuiAlert-colorInfo](/material-ui/api/alert/#alert-classes-colorInfo) classes instead.
51 * See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
52 */
53 outlinedInfo: string;
54 /** Styles applied to the root element if `variant="outlined"` and `color="warning"`.
55 * @deprecated Combine the [.MuiAlert-outlined](/material-ui/api/alert/#alert-classes-outlined)
56 * and [.MuiAlert-colorWarning](/material-ui/api/alert/#alert-classes-colorWarning) classes instead.
57 * See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
58 */
59 outlinedWarning: string;
60 /** Styles applied to the root element if `variant="outlined"` and `color="error"`.
61 * @deprecated Combine the [.MuiAlert-outlined](/material-ui/api/alert/#alert-classes-outlined)
62 * and [.MuiAlert-colorError](/material-ui/api/alert/#alert-classes-colorError) classes instead.
63 * See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
64 */
65 outlinedError: string;
66 /** Styles applied to the root element if `variant="filled"` and `color="success"`.
67 * @deprecated Combine the [.MuiAlert-filled](/material-ui/api/alert/#alert-classes-filled)
68 * and [.MuiAlert-colorSuccess](/material-ui/api/alert/#alert-classes-colorSuccess) classes instead.
69 * See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
70 */
71 filledSuccess: string;
72 /** Styles applied to the root element if `variant="filled"` and `color="info"`.
73 * @deprecated Combine the [.MuiAlert-filled](/material-ui/api/alert/#alert-classes-filled)
74 * and [.MuiAlert-colorInfo](/material-ui/api/alert/#alert-classes-colorInfo) classes instead.
75 * See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
76 */
77 filledInfo: string;
78 /** Styles applied to the root element if `variant="filled"` and `color="warning"`
79 * @deprecated Combine the [.MuiAlert-filled](/material-ui/api/alert/#alert-classes-filled)
80 * and [.MuiAlert-colorWarning](/material-ui/api/alert/#alert-classes-colorWarning) classes instead.
81 * See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
82 */
83 filledWarning: string;
84 /** Styles applied to the root element if `variant="filled"` and `color="error"`.
85 * @deprecated Combine the [.MuiAlert-filled](/material-ui/api/alert/#alert-classes-filled)
86 * and [.MuiAlert-colorError](/material-ui/api/alert/#alert-classes-colorError) classes instead.
87 * See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
88 */
89 filledError: string;
90 /** Styles applied to the icon wrapper element. */
91 icon: string;
92 /** Styles applied to the message wrapper element. */
93 message: string;
94 /** Styles applied to the action wrapper element if `action` is provided. */
95 action: string;
96}
97export type AlertClassKey = keyof AlertClasses;
98export declare function getAlertUtilityClass(slot: string): string;
99declare const alertClasses: AlertClasses;
100export default alertClasses;