/
cardOverflowClasses.ts
48 lines (43 loc) · 1.55 KB
/
cardOverflowClasses.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import { generateUtilityClass, generateUtilityClasses } from '../className';
export interface CardOverflowClasses {
/** Styles applied to the root element. */
root: string;
/** Styles applied to the root element if `color="primary"`. */
colorPrimary: string;
/** Styles applied to the root element if `color="neutral"`. */
colorNeutral: string;
/** Styles applied to the root element if `color="danger"`. */
colorDanger: string;
/** Styles applied to the root element if `color="info"`. */
colorInfo: string;
/** Styles applied to the root element if `color="success"`. */
colorSuccess: string;
/** Styles applied to the root element if `color="warning"`. */
colorWarning: string;
/** Styles applied to the root element if `variant="plain"`. */
variantPlain: string;
/** Styles applied to the root element if `variant="outlined"`. */
variantOutlined: string;
/** Styles applied to the root element if `variant="soft"`. */
variantSoft: string;
/** Styles applied to the root element if `variant="solid"`. */
variantSolid: string;
}
export type CardOverflowClassKey = keyof CardOverflowClasses;
export function getCardOverflowUtilityClass(slot: string): string {
return generateUtilityClass('JoyCardOverflow', slot);
}
const aspectRatioClasses: CardOverflowClasses = generateUtilityClasses('JoyCardOverflow', [
'root',
'colorPrimary',
'colorNeutral',
'colorDanger',
'colorInfo',
'colorSuccess',
'colorWarning',
'variantPlain',
'variantOutlined',
'variantSoft',
'variantSolid',
]);
export default aspectRatioClasses;