-
Notifications
You must be signed in to change notification settings - Fork 888
/
index.ts
94 lines (87 loc) · 2.11 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
import { Global as GlobalCSS } from "@emotion/react";
import { useWindowSize } from "react-use";
import { Badge } from "./Badge";
import { Button } from "./Button";
import { Checkbox } from "./Checkbox";
import { Checkered } from "./Checkered";
import { Common } from "./Common";
import { Divider } from "./Divider";
import { Dropdown } from "./Dropdown";
import { Icon } from "./Icon";
import { Input } from "./Input";
import { Label } from "./Label";
import { Loading } from "./Loading";
import { Logo } from "./Logo";
import { Modal } from "./Modal";
import { Mode } from "./Mode";
import { New } from "./New";
import { NumberInput } from "./NumberInput";
import { Page } from "./Page";
import { Popout } from "./Popout";
import { Skeleton } from "./Skeleton";
import { Slider } from "./Slider";
import * as Snackbar from "./Snackbar";
import { Soon } from "./Soon";
import { Stars } from "./Stars";
import { Tooltip } from "./Tooltip";
export declare namespace Theme {
/** Utilities */
export { Common, GlobalCSS, Mode };
/** Components */
export {
Badge,
Divider,
Icon,
Loading,
Logo,
Page,
Checkered,
Slider,
Skeleton,
Button,
Checkbox,
Dropdown,
New,
Input,
NumberInput,
Popout,
Modal,
Tooltip,
Soon,
Stars,
Snackbar,
Label,
};
}
export namespace Theme {
Theme.Common = Common;
Theme.GlobalCSS = GlobalCSS;
Theme.Mode = Mode;
Theme.Badge = Badge;
Theme.Divider = Divider;
Theme.Icon = Icon;
Theme.Loading = Loading;
Theme.Logo = Logo;
Theme.Checkered = Checkered;
Theme.New = New;
Theme.Page = Page;
Theme.Slider = Slider;
Theme.Skeleton = Skeleton;
Theme.Button = Button;
Theme.Checkbox = Checkbox;
Theme.Dropdown = Dropdown;
Theme.Input = Input;
Theme.NumberInput = NumberInput;
Theme.Stars = Stars;
Theme.Popout = Popout;
Theme.Modal = Modal;
Theme.Soon = Soon;
Theme.Tooltip = Tooltip;
Theme.Snackbar = Snackbar;
Theme.Label = Label;
export const useDark = () => Mode.use().dark;
export const useIsMobileDevice = () => {
const size = useWindowSize();
return size.width < 768;
};
}