wca-designsystem 1.0.78 → 1.0.80
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.
package/package.json
CHANGED
|
@@ -97,6 +97,11 @@ const Calendario = ({
|
|
|
97
97
|
weekends={true}
|
|
98
98
|
events={events}
|
|
99
99
|
eventContent={renderEventContent}
|
|
100
|
+
headerToolbar={{
|
|
101
|
+
left: 'prev',
|
|
102
|
+
center: 'title',
|
|
103
|
+
right: 'next',
|
|
104
|
+
}}
|
|
100
105
|
{...calendarProps} // Passa todas as propriedades adicionais para o FullCalendar
|
|
101
106
|
/>
|
|
102
107
|
</S.CalendarioWrapper>
|
|
@@ -7,45 +7,69 @@ type StylesProps = {
|
|
|
7
7
|
export const CalendarioWrapper = styled.div<StylesProps>`
|
|
8
8
|
${({ color, theme }) => css`
|
|
9
9
|
.fc-header-toolbar {
|
|
10
|
-
max-width:
|
|
10
|
+
max-width: 100%;
|
|
11
|
+
display: flex;
|
|
12
|
+
justify-content: center;
|
|
11
13
|
|
|
12
14
|
h2 {
|
|
13
15
|
color: ${color};
|
|
14
16
|
font-size: ${theme.sizes.meddium};
|
|
15
17
|
font-weight: 600;
|
|
18
|
+
text-transform: capitalize;
|
|
19
|
+
margin: 0 !important;
|
|
20
|
+
padding: 0 12px;
|
|
16
21
|
}
|
|
17
22
|
}
|
|
18
23
|
|
|
19
|
-
.fc .fc-toolbar {
|
|
20
|
-
justify-content: start;
|
|
21
|
-
position: relative;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
24
|
.fc-toolbar-chunk {
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
justify-content: center;
|
|
28
|
+
gap: 65px !important;
|
|
29
|
+
|
|
25
30
|
.fc-today-button {
|
|
26
31
|
display: none;
|
|
27
32
|
}
|
|
28
33
|
|
|
29
|
-
.fc-button
|
|
34
|
+
.fc-button {
|
|
35
|
+
width: 25px;
|
|
36
|
+
height: 25px;
|
|
37
|
+
border-radius: 4px;
|
|
38
|
+
background-color: transparent;
|
|
39
|
+
border: none;
|
|
30
40
|
display: flex;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
justify-content: center;
|
|
42
|
-
align-items: center;
|
|
41
|
+
justify-content: center;
|
|
42
|
+
align-items: center;
|
|
43
|
+
cursor: pointer;
|
|
44
|
+
outline: none;
|
|
45
|
+
box-shadow: none;
|
|
46
|
+
transition: all 0.2s ease;
|
|
47
|
+
background-color: #eeeeee;
|
|
48
|
+
|
|
49
|
+
&:hover {
|
|
50
|
+
outline: none !important;
|
|
43
51
|
}
|
|
44
|
-
|
|
52
|
+
|
|
53
|
+
.fc-icon {
|
|
45
54
|
color: ${color};
|
|
55
|
+
font-size: 1rem;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&:hover {
|
|
59
|
+
opacity: 0.7;
|
|
60
|
+
transform: scale(1.05);
|
|
46
61
|
}
|
|
47
62
|
}
|
|
63
|
+
|
|
64
|
+
.fc-prev-button {
|
|
65
|
+
box-shadow: -2px 0 0 0 #353535;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.fc-next-button {
|
|
69
|
+
box-shadow: 2px 0 0 0 #353535;
|
|
70
|
+
}
|
|
48
71
|
}
|
|
72
|
+
|
|
49
73
|
|
|
50
74
|
.fc-col-header-cell {
|
|
51
75
|
background-color: ${color};
|
|
@@ -63,7 +87,7 @@ export const CalendarioWrapper = styled.div<StylesProps>`
|
|
|
63
87
|
color: ${theme.colors.gray['700']};
|
|
64
88
|
}
|
|
65
89
|
`}
|
|
66
|
-
|
|
90
|
+
`
|
|
67
91
|
|
|
68
92
|
export const EventosWrapper = styled.div`
|
|
69
93
|
${({ theme }) => css`
|