-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy pathindex.ts
More file actions
159 lines (156 loc) · 5.3 KB
/
index.ts
File metadata and controls
159 lines (156 loc) · 5.3 KB
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
export const COLORS = [
"blue",
"orange",
"yellow",
"red",
"purple",
"amber",
"lime",
"green",
"emerald",
"teal",
"cyan",
"sky",
"violet",
"indigo",
"purple",
"fuchsia",
"pink",
"rose"
];
export const DEFAULT_THEME = "blue";
export const DEFAULT_CLASSNAMES = {
searchContainer: "relative py-1 px-2.5",
searchIcon: "absolute w-5 h-5 mt-2.5 pb-0.5 ml-2 text-gray-500",
searchBox:
"w-full py-2 pl-8 text-sm text-gray-500 bg-gray-100 border border-gray-200 rounded focus:border-gray-200 focus:ring-0 focus:outline-none",
listDisabledItem: "px-2 py-2 cursor-not-allowed truncate text-gray-400 select-none",
listGroupLabel: "pr-2 py-2 cursor-default select-none truncate font-bold text-gray-700",
listItem: "block transition duration-200 px-2 py-2 cursor-pointer select-none truncate rounded",
list: "max-h-72 overflow-y-auto",
menuButton:
"flex text-sm text-gray-500 border border-gray-300 rounded shadow-sm transition-all duration-300 focus:outline-none",
tagItem: "bg-gray-200 border rounded-sm flex space-x-1",
tagItemText: "text-gray-600 truncate cursor-default select-none",
tagItemIconContainer:
"flex items-center px-1 cursor-pointer rounded-r-sm hover:bg-red-200 hover:text-red-600",
tagItemIcon: "w-3 h-3 mt-0.5",
closeIcon: "w-5 h-5 p-0.5",
menu: "absolute z-10 w-full bg-white shadow-lg border rounded py-1 mt-1.5 text-sm text-gray-700"
};
export const THEME_DATA = {
bg: {
blue: "bg-blue-500",
orange: "bg-orange-500",
yellow: "bg-yellow-500",
red: "bg-red-500",
purple: "bg-purple-500",
amber: "bg-amber-500",
lime: "bg-lime-500",
green: "bg-green-500",
emerald: "bg-emerald-500",
teal: "bg-teal-500",
cyan: "bg-cyan-500",
sky: "bg-sky-500",
indigo: "bg-indigo-500",
violet: "bg-violet-500",
fuchsia: "bg-fuchsia-500",
pink: "bg-pink-500",
rose: "bg-rose-500"
},
bgHover: {
blue: "hover:bg-blue-100",
orange: "hover:bg-orange-100",
yellow: "hover:bg-yellow-100",
red: "hover:bg-red-100",
purple: "hover:bg-purple-100",
amber: "hover:bg-amber-100",
lime: "hover:bg-lime-100",
green: "hover:bg-green-100",
emerald: "hover:bg-emerald-100",
teal: "hover:bg-teal-100",
cyan: "hover:bg-cyan-100",
sky: "hover:bg-sky-100",
indigo: "hover:bg-indigo-100",
violet: "hover:bg-violet-100",
fuchsia: "hover:bg-fuchsia-100",
pink: "hover:bg-pink-100",
rose: "hover:bg-rose-100"
},
ring: {
blue: "focus:ring-blue-500/20",
orange: "focus:ring-orange-500/20",
yellow: "focus:ring-yellow-500/20",
red: "focus:ring-red-500/20",
purple: "focus:ring-purple-500/20",
amber: "focus:ring-amber-500/20",
lime: "focus:ring-lime-500/20",
green: "focus:ring-green-500/20",
emerald: "focus:ring-emerald-500/20",
teal: "focus:ring-teal-500/20",
cyan: "focus:ring-cyan-500/20",
sky: "focus:ring-sky-500/20",
indigo: "focus:ring-indigo-500/20",
violet: "focus:ring-violet-500/20",
fuchsia: "focus:ring-fuchsia-500/20",
pink: "focus:ring-pink-500/20",
rose: "focus:ring-rose-500/20"
},
borderFocus: {
blue: "focus:border-blue-500",
orange: "focus:border-orange-500",
yellow: "focus:border-yellow-500",
red: "focus:border-red-500",
purple: "focus:border-purple-500",
amber: "focus:border-amber-500",
lime: "focus:border-lime-500",
green: "focus:border-green-500",
emerald: "focus:border-emerald-500",
teal: "focus:border-teal-500",
cyan: "focus:border-cyan-500",
sky: "focus:border-sky-500",
indigo: "focus:border-indigo-500",
violet: "focus:border-violet-500",
fuchsia: "focus:border-fuchsia-500",
pink: "focus:border-pink-500",
rose: "focus:border-rose-500"
},
text: {
blue: "text-blue-500",
orange: "text-orange-500",
yellow: "text-yellow-500",
red: "text-red-500",
purple: "text-purple-500",
amber: "text-amber-500",
lime: "text-lime-500",
green: "text-green-500",
emerald: "text-emerald-500",
teal: "text-teal-500",
cyan: "text-cyan-500",
sky: "text-sky-500",
indigo: "text-indigo-500",
violet: "text-violet-500",
fuchsia: "text-fuchsia-500",
pink: "text-pink-500",
rose: "text-rose-500"
},
textHover: {
blue: "hover:text-blue-500",
orange: "hover:text-orange-500",
yellow: "hover:text-yellow-500",
red: "hover:text-red-500",
purple: "hover:text-purple-500",
amber: "hover:text-amber-500",
lime: "hover:text-lime-500",
green: "hover:text-green-500",
emerald: "hover:text-emerald-500",
teal: "hover:text-teal-500",
cyan: "hover:text-cyan-500",
sky: "hover:text-sky-500",
indigo: "hover:text-indigo-500",
violet: "hover:text-violet-500",
fuchsia: "hover:text-fuchsia-500",
pink: "hover:text-pink-500",
rose: "hover:text-rose-500"
}
};