generated from garronej/ts-ci
-
-
Notifications
You must be signed in to change notification settings - Fork 37
/
index.ts
36 lines (32 loc) · 1.17 KB
/
index.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
import { CSSObject } from "./types";
export { CSSObject };
export type { CSSInterpolation, Css, Cx, CxArg } from "./types";
/** @see <https://docs.tss-react.dev/api-references> */
export { useCssAndCx } from "./cssAndCx";
export { useMergedClasses } from "./mergeClasses";
import { createMakeStyles } from "./makeStyles";
export { createMakeStyles };
import { createWithStyles } from "./withStyles";
export { createWithStyles };
/** @see <https://docs.tss-react.dev/api-references/keyframes> */
export { keyframes } from "@emotion/react";
/** @see <https://docs.tss-react.dev/api-references/globalstyles> */
export { GlobalStyles } from "./GlobalStyles";
/** @see <https://docs.tss-react.dev/cache> */
export { getTssDefaultEmotionCache, TssCacheProvider } from "./cache";
/** @see <https://docs.tss-react.dev/api-references/makestyles-usestyles> */
export function createMakeAndWithStyles<
Theme,
CustomObject = CSSObject,
>(params: {
useTheme: () => Theme;
customObjectToCSSObject?: (params: {
customObject: CustomObject;
theme: Theme;
}) => CSSObject;
}) {
return {
...createMakeStyles(params),
...createWithStyles(params),
};
}