UNPKG

1.31 kBTypeScriptView Raw
1import * as React from "react";
2
3export type Font = {
4 fontFamily: string;
5 fontWeight?:
6 | "normal"
7 | "bold"
8 | "100"
9 | "200"
10 | "300"
11 | "400"
12 | "500"
13 | "600"
14 | "700"
15 | "800"
16 | "900";
17};
18
19export type Fonts = {
20 regular: Font;
21 medium: Font;
22 light: Font;
23 thin: Font;
24};
25
26export type colorTypes =
27 | "primary"
28 | "secondary"
29 | "surface"
30 | "background"
31 | "error"
32 | "divider"
33 | "strong"
34 | "medium"
35 | "light"
36 | "strongInverse"
37 | "mediumInverse"
38 | "lightInverse";
39
40export type Theme = any;
41
42// export type Theme = {
43// dark: boolean;
44// mode?: "adaptive" | "exact";
45// roundness: number;
46// colors: {
47// primary: string;
48// background: string;
49// surface: string;
50// accent: string;
51// error: string;
52// text: string;
53// onSurface: string;
54// onBackground: string;
55// disabled: string;
56// placeholder: string;
57// backdrop: string;
58// notification: string;
59// };
60// fonts: Fonts;
61// animation: {
62// scale: number;
63// };
64// };
65
66export type $Omit<T, K> = Pick<T, Exclude<keyof T, K>>;
67export type $RemoveChildren<T extends React.ComponentType<any>> = $Omit<
68 React.ComponentPropsWithoutRef<T>,
69 "children"
70>;
71
72export type EllipsizeProp = "head" | "middle" | "tail" | "clip";