@progress/kendo-themes-html 14.7.0-dev.6 → 14.7.0-dev.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,100 @@
1
+ import { SchedulerEvent } from "..";
2
+
3
+ const styles = `
4
+ #test-area {
5
+ padding: 20px;
6
+ gap: 25px;
7
+ }
8
+ `;
9
+
10
+ const customEvents = [
11
+ { label: "Red", color: "#f44336" },
12
+ { label: "Orange", color: "#ff9800" },
13
+ { label: "Green", color: "#4caf50" },
14
+ { label: "Teal", color: "#009688" },
15
+ { label: "Purple", color: "#9c27b0" },
16
+ { label: "Yellow", color: "#ffeb3b" },
17
+ ];
18
+
19
+ export default () => (
20
+ <>
21
+ <style>{styles}</style>
22
+ <div id="test-area" className="k-d-grid k-grid-cols-7">
23
+ <span>Default</span>
24
+
25
+ {customEvents.map(({ label }) => (
26
+ <>
27
+ <span>{label}</span>
28
+ </>
29
+ ))}
30
+
31
+ <div></div>
32
+ {customEvents.map(({ color }) => (
33
+ <>
34
+ <div
35
+ style={
36
+ {
37
+ background: color,
38
+ width: "25px",
39
+ height: "25px",
40
+ } as React.CSSProperties
41
+ }
42
+ />
43
+ </>
44
+ ))}
45
+
46
+ <SchedulerEvent style={{ position: "relative", height: "71px" }} title="Event Title" time="10:00 AM – 10:30 AM" />
47
+ {customEvents.map(({ color }) => (
48
+ <>
49
+ <SchedulerEvent
50
+ style={
51
+ {
52
+ position: "relative",
53
+ height: "71px",
54
+ "--kendo-scheduler-event-color": color,
55
+ } as React.CSSProperties
56
+ }
57
+ title="Normal"
58
+ time="10:00 AM – 10:30 AM"
59
+ />
60
+ </>
61
+ ))}
62
+
63
+ <SchedulerEvent hover style={{ position: "relative", height: "71px" }} title="Event Title" time="10:00 AM – 10:30 AM" />
64
+ {customEvents.map(({ color }) => (
65
+ <>
66
+ <SchedulerEvent
67
+ hover
68
+ style={
69
+ {
70
+ position: "relative",
71
+ height: "71px",
72
+ "--kendo-scheduler-event-color": color,
73
+ } as React.CSSProperties
74
+ }
75
+ title="Hover"
76
+ time="10:00 AM – 10:30 AM"
77
+ />
78
+ </>
79
+ ))}
80
+
81
+ <SchedulerEvent selected style={{ position: "relative", height: "71px" }} title="Event Title" time="10:00 AM – 10:30 AM" />
82
+ {customEvents.map(({ color }) => (
83
+ <>
84
+ <SchedulerEvent
85
+ selected
86
+ style={
87
+ {
88
+ position: "relative",
89
+ height: "71px",
90
+ "--kendo-scheduler-event-color": color,
91
+ } as React.CSSProperties
92
+ }
93
+ title="Selected"
94
+ time="10:00 AM – 10:30 AM"
95
+ />
96
+ </>
97
+ ))}
98
+ </div>
99
+ </>
100
+ );