forked from mui/material-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
listClasses.ts
33 lines (28 loc) · 905 Bytes
/
listClasses.ts
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
import { generateUtilityClass, generateUtilityClasses } from '../className';
export interface ListClasses {
/** Styles applied to the root element. */
root: string;
/** Styles applied to the root element if wrapped with nested context. */
nested: string;
/** Styles applied to the root element if `row` is true. */
row: string;
/** Styles applied to the root element if `size="sm"`. */
sizeSm: string;
/** Styles applied to the root element if `size="md"`. */
sizeMd: string;
/** Styles applied to the root element if `size="lg"`. */
sizeLg: string;
}
export type ListClassKey = keyof ListClasses;
export function getListUtilityClass(slot: string): string {
return generateUtilityClass('JoyList', slot);
}
const listClasses: ListClasses = generateUtilityClasses('JoyList', [
'root',
'nested',
'row',
'sizeSm',
'sizeMd',
'sizeLg',
]);
export default listClasses;