forked from mui/material-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdividerClasses.ts
More file actions
57 lines (52 loc) · 2.1 KB
/
dividerClasses.ts
File metadata and controls
57 lines (52 loc) · 2.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
import generateUtilityClass from '@mui/utils/generateUtilityClass';
export interface DividerClasses {
/** Styles applied to the root element. */
root: string;
/** Styles applied to the root element if `absolute={true}`. */
absolute: string;
/** Styles applied to the root element if `variant="inset"`. */
inset: string;
/** Styles applied to the root element if `variant="fullWidth"`. */
fullWidth: string;
/** Styles applied to the root element if `variant="middle"`. */
middle: string;
/** Styles applied to the root element if `orientation="vertical"`. */
vertical: string;
/** Styles applied to the root element if `flexItem={true}`. */
flexItem: string;
/** Styles applied to the root element if divider have text. */
withChildren: string;
/** Styles applied to the root element if divider have text and `orientation="vertical"`.
* @deprecated Combine the [.MuiDivider-withChildren](/material-ui/api/divider/#divider-classes-MuiDivider-withChildren) and [.MuiDivider-vertical](/material-ui/api/divider/#divider-classes-MuiDivider-vertical) classes instead.
*/
withChildrenVertical: string;
/** Styles applied to the root element if `textAlign="right" orientation="horizontal"`. */
textAlignRight: string;
/** Styles applied to the root element if `textAlign="left" orientation="horizontal"`. */
textAlignLeft: string;
/** Styles applied to the span children element if `orientation="horizontal"`. */
wrapper: string;
/** Styles applied to the span children element if `orientation="vertical"`. */
wrapperVertical: string;
}
export type DividerClassKey = keyof DividerClasses;
export function getDividerUtilityClass(slot: string): string {
return generateUtilityClass('MuiDivider', slot);
}
const dividerClasses: DividerClasses = generateUtilityClasses('MuiDivider', [
'root',
'absolute',
'fullWidth',
'inset',
'middle',
'flexItem',
'vertical',
'withChildren',
'withChildrenVertical',
'textAlignRight',
'textAlignLeft',
'wrapper',
'wrapperVertical',
]);
export default dividerClasses;