UNPKG

13.2 kBTypeScriptView Raw
1export interface ChipClasses {
2 /** Styles applied to the root element. */
3 root: string;
4 /** Styles applied to the root element if `size="small"`. */
5 sizeSmall: string;
6 /** Styles applied to the root element if `size="medium"`. */
7 sizeMedium: string;
8 /** Styles applied to the root element if `color="default"`. */
9 colorDefault: string;
10 /** Styles applied to the root element if `color="error"`. */
11 colorError: string;
12 /** Styles applied to the root element if `color="info"`. */
13 colorInfo: string;
14 /** Styles applied to the root element if `color="primary"`. */
15 colorPrimary: string;
16 /** Styles applied to the root element if `color="secondary"`. */
17 colorSecondary: string;
18 /** Styles applied to the root element if `color="success"`. */
19 colorSuccess: string;
20 /** Styles applied to the root element if `color="warning"`. */
21 colorWarning: string;
22 /** State class applied to the root element if `disabled={true}`. */
23 disabled: string;
24 /** Styles applied to the root element if `onClick` is defined or `clickable={true}`. */
25 clickable: string;
26 /** Styles applied to the root element if `onClick` and `color="primary"` is defined or `clickable={true}`.
27 * @deprecated Combine the [.MuiChip-clickable](/material-ui/api/chip/#chip-classes-clickable) and [.MuiChip-colorPrimary](/material-ui/api/chip/#chip-classes-colorPrimary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
28 */
29 clickableColorPrimary: string;
30 /** Styles applied to the root element if `onClick` and `color="secondary"` is defined or `clickable={true}`.
31 * @deprecated Combine the [.MuiChip-clickable](/material-ui/api/chip/#chip-classes-clickable) and [.MuiChip-colorSecondary](/material-ui/api/chip/#chip-classes-colorSecondary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
32 */
33 clickableColorSecondary: string;
34 /** Styles applied to the root element if `onDelete` is defined. */
35 deletable: string;
36 /** Styles applied to the root element if `onDelete` and `color="primary"` is defined.
37 * @deprecated Combine the [.MuiChip-deletable](/material-ui/api/chip/#chip-classes-deletable) and [.MuiChip-colorPrimary](/material-ui/api/chip/#chip-classes-colorPrimary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
38 */
39 deletableColorPrimary: string;
40 /** Styles applied to the root element if `onDelete` and `color="secondary"` is defined.
41 * @deprecated Combine the [.MuiChip-deletable](/material-ui/api/chip/#chip-classes-deletable) and [.MuiChip-colorSecondary](/material-ui/api/chip/#chip-classes-colorSecondary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
42 */
43 deletableColorSecondary: string;
44 /** Styles applied to the root element if `variant="outlined"`. */
45 outlined: string;
46 /** Styles applied to the root element if `variant="filled"`. */
47 filled: string;
48 /** Styles applied to the root element if `variant="outlined"` and `color="primary"`.
49 * @deprecated Combine the [.MuiChip-outlined](/material-ui/api/chip/#chip-classes-outlined) and [.MuiChip-colorPrimary](/material-ui/api/chip/#chip-classes-colorPrimary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
50 */
51 outlinedPrimary: string;
52 /** Styles applied to the root element if `variant="outlined"` and `color="secondary"`.
53 * @deprecated Combine the [.MuiChip-outlined](/material-ui/api/chip/#chip-classes-outlined) and [.MuiChip-colorSecondary](/material-ui/api/chip/#chip-classes-colorSecondary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
54 */
55 outlinedSecondary: string;
56 /** Styles applied to the root element if `variant="filled"` and `color="primary"`.
57 * @deprecated Combine the [.MuiChip-filled](/material-ui/api/chip/#chip-classes-filled) and [.MuiChip-colorPrimary](/material-ui/api/chip/#chip-classes-colorPrimary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
58 */
59 filledPrimary: string;
60 /** Styles applied to the root element if `variant="filled"` and `color="secondary"`.
61 * @deprecated Combine the [.MuiChip-filled](/material-ui/api/chip/#chip-classes-filled) and [.MuiChip-colorSecondary](/material-ui/api/chip/#chip-classes-colorSecondary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
62 */
63 filledSecondary: string;
64 /** Styles applied to the avatar element. */
65 avatar: string;
66 /** Styles applied to the avatar element if `size="small"`.
67 * @deprecated Combine the [.MuiChip-avatar](/material-ui/api/chip/#chip-classes-avatar) and [.MuiChip-sizeSmall](/material-ui/api/chip/#chip-classes-sizeSmall) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
68 */
69 avatarSmall: string;
70 /** Styles applied to the avatar element if `size="medium"`.
71 * @deprecated Combine the [.MuiChip-avatar](/material-ui/api/chip/#chip-classes-avatar) and [.MuiChip-sizeMedium](/material-ui/api/chip/#chip-classes-sizeMedium) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
72 */
73 avatarMedium: string;
74 /** Styles applied to the avatar element if `color="primary"`.
75 * @deprecated Combine the [.MuiChip-avatar](/material-ui/api/chip/#chip-classes-avatar) and [.MuiChip-colorPrimary](/material-ui/api/chip/#chip-classes-colorPrimary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
76 */
77 avatarColorPrimary: string;
78 /** Styles applied to the avatar element if `color="secondary"`.
79 * @deprecated Combine the [.MuiChip-avatar](/material-ui/api/chip/#chip-classes-avatar) and [.MuiChip-colorSecondary](/material-ui/api/chip/#chip-classes-colorSecondary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
80 */
81 avatarColorSecondary: string;
82 /** Styles applied to the icon element. */
83 icon: string;
84 /** Styles applied to the icon element if `size="small"`.
85 * @deprecated Combine the [.MuiChip-icon](/material-ui/api/chip/#chip-classes-icon) and [.MuiChip-sizeSmall](/material-ui/api/chip/#chip-classes-sizeSmall) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
86 */
87 iconSmall: string;
88 /** Styles applied to the icon element if `size="medium"`.
89 * @deprecated Combine the [.MuiChip-icon](/material-ui/api/chip/#chip-classes-icon) and [.MuiChip-sizeMedium](/material-ui/api/chip/#chip-classes-sizeMedium) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
90 */
91 iconMedium: string;
92 /** Styles applied to the icon element if `color="primary"`.
93 * @deprecated Combine the [.MuiChip-icon](/material-ui/api/chip/#chip-classes-icon) and [.MuiChip-colorPrimary](/material-ui/api/chip/#chip-classes-colorPrimary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
94 */
95 iconColorPrimary: string;
96 /** Styles applied to the icon element if `color="secondary"`.
97 * @deprecated Combine the [.MuiChip-icon](/material-ui/api/chip/#chip-classes-icon) and [.MuiChip-colorSecondary](/material-ui/api/chip/#chip-classes-colorSecondary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
98 */
99 iconColorSecondary: string;
100 /** Styles applied to the label `span` element. */
101 label: string;
102 /** Styles applied to the label `span` element if `size="small"`.
103 * @deprecated Combine the [.MuiChip-label](/material-ui/api/chip/#chip-classes-label) and [.MuiChip-sizeSmall](/material-ui/api/chip/#chip-classes-sizeSmall) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
104 */
105 labelSmall: string;
106 /** Styles applied to the label `span` element if `size="medium"`.
107 * @deprecated Combine the [.MuiChip-label](/material-ui/api/chip/#chip-classes-label) and [.MuiChip-sizeMedium](/material-ui/api/chip/#chip-classes-sizeMedium) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
108 */
109 labelMedium: string;
110 /** Styles applied to the deleteIcon element. */
111 deleteIcon: string;
112 /** Styles applied to the deleteIcon element if `size="small"`.
113 * @deprecated Combine the [.MuiChip-deleteIcon](/material-ui/api/chip/#chip-classes-deleteIcon) and [.MuiChip-sizeSmall](/material-ui/api/chip/#chip-classes-sizeSmall) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
114 */
115 deleteIconSmall: string;
116 /** Styles applied to the deleteIcon element if `size="medium"`.
117 * @deprecated Combine the [.MuiChip-deleteIcon](/material-ui/api/chip/#chip-classes-deleteIcon) and [.MuiChip-sizeMedium](/material-ui/api/chip/#chip-classes-sizeMedium) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
118 */
119 deleteIconMedium: string;
120 /** Styles applied to the deleteIcon element if `color="primary"`.
121 * @deprecated Combine the [.MuiChip-deleteIcon](/material-ui/api/chip/#chip-classes-deleteIcon) and [.MuiChip-colorPrimary](/material-ui/api/chip/#chip-classes-colorPrimary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
122 */
123 deleteIconColorPrimary: string;
124 /** Styles applied to the deleteIcon element if `color="secondary"`.
125 * @deprecated Combine the [.MuiChip-deleteIcon](/material-ui/api/chip/#chip-classes-deleteIcon) and [.MuiChip-colorSecondary](/material-ui/api/chip/#chip-classes-colorSecondary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
126 */
127 deleteIconColorSecondary: string;
128 /** Styles applied to the deleteIcon element if `color="primary"` and `variant="outlined"`.
129 * @deprecated Combine the [.MuiChip-deleteIcon](/material-ui/api/chip/#chip-classes-deleteIcon) , [.MuiChip-outlined](/material-ui/api/chip/#chip-classes-outlined) and [.MuiChip-colorPrimary](/material-ui/api/chip/#chip-classes-colorPrimary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
130 */
131 deleteIconOutlinedColorPrimary: string;
132 /** Styles applied to the deleteIcon element if `color="secondary"` and `variant="outlined"`.
133 * @deprecated Combine the [.MuiChip-deleteIcon](/material-ui/api/chip/#chip-classes-deleteIcon) , [.MuiChip-outlined](/material-ui/api/chip/#chip-classes-outlined) and [.MuiChip-colorSecondary](/material-ui/api/chip/#chip-classes-colorSecondary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
134 */
135 deleteIconOutlinedColorSecondary: string;
136 /** Styles applied to the deleteIcon element if `color="primary"` and `variant="filled"`.
137 * @deprecated Combine the [.MuiChip-deleteIcon](/material-ui/api/chip/#chip-classes-deleteIcon) , [.MuiChip-filled](/material-ui/api/chip/#chip-classes-filled) and [.MuiChip-colorPrimary](/material-ui/api/chip/#chip-classes-colorPrimary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
138 */
139 deleteIconFilledColorPrimary: string;
140 /** Styles applied to the deleteIcon element if `color="secondary"` and `variant="filled"`.
141 * @deprecated Combine the [.MuiChip-deleteIcon](/material-ui/api/chip/#chip-classes-deleteIcon) , [.MuiChip-filled](/material-ui/api/chip/#chip-classes-filled) and [.MuiChip-colorSecondary](/material-ui/api/chip/#chip-classes-colorSecondary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
142 */
143 deleteIconFilledColorSecondary: string;
144 /** State class applied to the root element if keyboard focused. */
145 focusVisible: string;
146}
147export type ChipClassKey = keyof ChipClasses;
148export declare function getChipUtilityClass(slot: string): string;
149declare const chipClasses: ChipClasses;
150export default chipClasses;