-
-
Notifications
You must be signed in to change notification settings - Fork 500
Expand file tree
/
Copy paththeme.ts
More file actions
88 lines (87 loc) · 3.19 KB
/
theme.ts
File metadata and controls
88 lines (87 loc) · 3.19 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
import { createTheme } from "../../helpers/create-theme";
import type { DatepickerTheme } from "./Datepicker";
export const datePickerTheme = createTheme<DatepickerTheme>({
root: {
base: "relative",
},
popup: {
root: {
base: "absolute top-10 z-50 block pt-2",
inline: "relative top-0 z-auto",
inner: "inline-block rounded-lg bg-white p-4 shadow-lg dark:bg-gray-700",
},
header: {
base: "",
title: "px-2 py-3 text-center font-semibold text-gray-900 dark:text-white",
selectors: {
base: "mb-2 flex justify-between",
button: {
base: "rounded-lg bg-white px-5 py-2.5 text-sm font-semibold text-gray-900 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-200 dark:bg-gray-700 dark:text-white dark:hover:bg-gray-600",
prev: "",
next: "",
view: "",
},
},
},
view: {
base: "p-1",
},
footer: {
base: "mt-2 flex space-x-2",
button: {
base: "w-full rounded-lg px-5 py-2 text-center text-sm font-medium focus:ring-4 focus:ring-primary-300",
today: "bg-primary-700 text-white hover:bg-primary-800 dark:bg-primary-600 dark:hover:bg-primary-700",
clear:
"border border-gray-300 bg-white text-gray-900 hover:bg-gray-100 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:hover:bg-gray-600",
},
},
},
views: {
days: {
header: {
base: "mb-1 grid grid-cols-7",
title: "h-6 text-center text-sm font-medium leading-6 text-gray-500 dark:text-gray-400",
},
items: {
base: "grid w-64 grid-cols-7",
item: {
base: "block flex-1 cursor-pointer rounded-lg border-0 text-center text-sm font-semibold leading-9 text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-600",
selected: "bg-primary-700 text-white hover:bg-primary-600",
disabled: "text-gray-500",
outside: "opacity-40 text-gray-500",
today: "",
},
},
},
months: {
items: {
base: "grid w-64 grid-cols-4",
item: {
base: "block flex-1 cursor-pointer rounded-lg border-0 text-center text-sm font-semibold leading-9 text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-600",
selected: "bg-primary-700 text-white hover:bg-primary-600",
disabled: "text-gray-500",
},
},
},
years: {
items: {
base: "grid w-64 grid-cols-4",
item: {
base: "block flex-1 cursor-pointer rounded-lg border-0 text-center text-sm font-semibold leading-9 text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-600",
selected: "bg-primary-700 text-white hover:bg-primary-600",
disabled: "text-gray-500",
},
},
},
decades: {
items: {
base: "grid w-64 grid-cols-4",
item: {
base: "block flex-1 cursor-pointer rounded-lg border-0 text-center text-sm font-semibold leading-9 text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-600",
selected: "bg-primary-700 text-white hover:bg-primary-600",
disabled: "text-gray-500",
},
},
},
},
});