UNPKG

1.73 kBTypeScriptView Raw
1export interface RatingClasses {
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 `size="large"`. */
9 sizeLarge: string;
10 /** Styles applied to the root element if `readOnly={true}`. */
11 readOnly: string;
12 /** State class applied to the root element if `disabled={true}`. */
13 disabled: string;
14 /** State class applied to the root element if keyboard focused. */
15 focusVisible: string;
16 /** Visually hide an element. */
17 visuallyHidden: string;
18 /** Styles applied to the label elements. */
19 label: string;
20 /** Styles applied to the label of the "no value" input when it is active. */
21 labelEmptyValueActive: string;
22 /** Styles applied to the icon wrapping elements. */
23 icon: string;
24 /** Styles applied to the icon wrapping elements when empty. */
25 iconEmpty: string;
26 /** Styles applied to the icon wrapping elements when filled. */
27 iconFilled: string;
28 /** Styles applied to the icon wrapping elements when hover. */
29 iconHover: string;
30 /** Styles applied to the icon wrapping elements when focus. */
31 iconFocus: string;
32 /** Styles applied to the icon wrapping elements when active. */
33 iconActive: string;
34 /** Styles applied to the icon wrapping elements when decimals are necessary. */
35 decimal: string;
36}
37export type RatingClassKey = keyof RatingClasses;
38export declare function getRatingUtilityClass(slot: string): string;
39declare const ratingClasses: RatingClasses;
40export default ratingClasses;