-
Notifications
You must be signed in to change notification settings - Fork 3k
/
Copy pathtypes.ts
116 lines (112 loc) Β· 2.98 KB
/
types.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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
import {ViewStyle, TextStyle} from 'react-native';
import {MarkingProps} from './calendar/day/marking';
import {CalendarContextProps} from './expandableCalendar/Context';
export type ContextProp = {
context?: CalendarContextProps;
}
export type MarkingTypes = 'dot' | 'multi-dot' | 'period' | 'multi-period' | 'custom';
export type MarkedDates = {
[key: string]: MarkingProps;
};
export type DayState = 'selected' | 'disabled' | 'inactive' | 'today' | '';
export type Direction = 'left' | 'right';
export type DateData = {
year: number;
month: number;
day: number;
timestamp: number;
dateString: string;
};
export interface Theme {
timelineContainer?: object;
contentStyle?: ViewStyle;
event?: object;
eventTitle?: object;
eventSummary?: object;
eventTimes?: object;
line?: object;
verticalLine?: object;
nowIndicatorLine?: object;
nowIndicatorKnob?: object;
timeLabel?: object;
todayTextColor?: string;
calendarBackground?: string;
indicatorColor?: string;
textSectionTitleColor?: string;
textSectionTitleDisabledColor?: string;
dayTextColor?: string;
selectedDayTextColor?: string;
monthTextColor?: string;
selectedDayBackgroundColor?: string;
arrowColor?: string;
textDisabledColor?: string;
textInactiveColor?: string;
backgroundColor?: string; //TODO: remove in V2
dotColor?: string;
selectedDotColor?: string;
disabledArrowColor?: string;
textDayFontFamily?: TextStyle['fontFamily'];
textMonthFontFamily?: TextStyle['fontFamily'];
textDayHeaderFontFamily?: TextStyle['fontFamily'];
textDayFontWeight?: TextStyle['fontWeight'];
textMonthFontWeight?: TextStyle['fontWeight'];
textDayHeaderFontWeight?: TextStyle['fontWeight'];
textDayFontSize?: number;
textMonthFontSize?: number;
textDayHeaderFontSize?: number;
agendaDayTextColor?: string;
agendaDayNumColor?: string;
agendaTodayColor?: string;
agendaKnobColor?: string;
todayButtonFontFamily?: TextStyle['fontFamily'];
todayButtonFontWeight?: TextStyle['fontWeight'];
todayButtonFontSize?: number;
textDayStyle?: TextStyle;
dotStyle?: object;
arrowStyle?: ViewStyle;
todayBackgroundColor?: string;
disabledDotColor?: string;
inactiveDotColor?: string;
todayDotColor?: string;
todayButtonTextColor?: string;
todayButtonPosition?: string;
arrowHeight?: number;
arrowWidth?: number;
weekVerticalMargin?: number;
reservationsBackgroundColor?: string;
eventPlaceholderStyle?: object;
stylesheet?: {
calendar?: {
main?: object;
header?: object;
};
day?: {
basic?: object;
period?: object;
};
dot?: object;
marking?: object;
'calendar-list'?: {
main?: object;
};
agenda?: {
main?: object;
list?: object;
};
expandable?: {
main?: object;
};
};
}
export type AgendaEntry = {
name: string;
height: number;
day: string;
}
export type AgendaSchedule = {
[date: string]: AgendaEntry[];
}
export interface DayAgenda {
reservation?: AgendaEntry;
date?: XDate;
}