-
Notifications
You must be signed in to change notification settings - Fork 700
/
clarity.ts
72 lines (68 loc) · 1.5 KB
/
clarity.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
// Code from: https://stackblitz.com/edit/react-ts-wrapper-5w8nhf
import { CdsButton as Button } from "@clr/core/button";
import { CdsIcon as Icon, ClarityIcons as ClrIcons } from "@clr/core/icon-shapes";
import {
angleIcon,
applicationsIcon,
backupRestoreIcon,
bundleIcon,
checkCircleIcon,
circleArrowIcon,
ClarityIcons as Icons,
clusterIcon,
copyToClipboardIcon,
deployIcon,
exclamationCircleIcon,
exclamationTriangleIcon,
eyeHideIcon,
eyeIcon,
fileGroupIcon,
fileIcon,
heartIcon,
helpIcon,
infoCircleIcon,
plusCircleIcon,
refreshIcon,
rewindIcon,
searchIcon,
timesCircleIcon,
timesIcon,
trashIcon,
uploadCloudIcon,
} from "@clr/core/icon-shapes";
import "@clr/core/button";
import "@clr/core/icon";
import { createReactComponent } from "./converter/reactWrapper";
type CdsIconType = Icon;
export const CdsIcon = createReactComponent<CdsIconType>("cds-icon");
export const ClarityIcons = ClrIcons;
type CdsButtonType = Button & HTMLButtonElement;
export const CdsButton = createReactComponent<CdsButtonType>("cds-button");
Icons.addIcons(
angleIcon,
bundleIcon,
checkCircleIcon,
circleArrowIcon,
clusterIcon,
exclamationTriangleIcon,
eyeHideIcon,
eyeIcon,
fileGroupIcon,
helpIcon,
infoCircleIcon,
rewindIcon,
searchIcon,
trashIcon,
uploadCloudIcon,
applicationsIcon,
heartIcon,
exclamationCircleIcon,
timesIcon,
deployIcon,
fileIcon,
copyToClipboardIcon,
backupRestoreIcon,
refreshIcon,
plusCircleIcon,
timesCircleIcon,
);