UNPKG

2.09 kBTypeScriptView Raw
1/**
2 * Copyright 2020 Inrupt Inc.
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a copy
5 * of this software and associated documentation files (the "Software"), to deal in
6 * the Software without restriction, including without limitation the rights to use,
7 * copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
8 * Software, and to permit persons to whom the Software is furnished to do so,
9 * subject to the following conditions:
10 *
11 * The above copyright notice and this permission notice shall be included in
12 * all copies or substantial portions of the Software.
13 *
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
15 * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
16 * PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
17 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
18 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
19 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20 */
21import { StyleRules } from "@material-ui/core";
22import makeStyles from "./make-styles";
23import createStyles from "./create-styles";
24export { createStyles, makeStyles };
25export type { StyleRules };
26declare type Modifier = string | Record<string, boolean | undefined | null> | undefined | null;
27export declare function bem(classes: Record<string, string>, base: string, ...modifiers: Array<Modifier>): string;
28export declare const normalizedButton: {
29 background: string;
30 border: number;
31 cursor: string;
32 display: string;
33 fontFamily: string;
34 fontSize: string;
35 margin: number;
36 lineHeight: number;
37 overflow: string;
38 padding: number;
39 textAlign: string;
40 textDecoration: string;
41 textTransform: string;
42 width: string;
43};
44export declare function useBem(classes: Record<string, string>): (base: string, ...modifiers: Array<Modifier>) => string;
45export declare function useCss(): (base: string, ...modifiers: Array<Modifier>) => string;