monkey-style-guide 2.0.182 → 2.0.184

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,302 @@
1
+ /**************************
2
+ * Copyright Monkey Exchange. All Rights Reserved
3
+ * This style guide was developed by Monkey Exchange Team
4
+ * MIT Licence
5
+ **************************/
6
+ @import '../variables';
7
+ @import '../breakpoints.scss';
8
+
9
+ monkey-date-range-picker-v2 {
10
+ background: #fafafa;
11
+ border-radius: 8px;
12
+ display: flex;
13
+ justify-content: space-between;
14
+ width: 100%;
15
+
16
+ @include media-breakpoint('xs') {
17
+ padding: 8px;
18
+ }
19
+
20
+ mecx-date-range-picker-group {
21
+ display: flex;
22
+ flex-direction: column;
23
+ width: 100%;
24
+
25
+ mecx-date-range-picker-group-header {
26
+ width: 100%;
27
+ display: flex;
28
+ flex-direction: row;
29
+ justify-content: space-between;
30
+ align-items: center;
31
+ margin-bottom: 16px;
32
+
33
+ @include media-breakpoint('xs') {
34
+ display: none;
35
+ }
36
+
37
+ label {
38
+ color: #4b4a53;
39
+ font-size: 18px;
40
+ line-height: 21px;
41
+ font-weight: 500;
42
+ text-align: left;
43
+ }
44
+
45
+ helper {
46
+ color: #adadad;
47
+ font-size: 12px;
48
+ line-height: 14px;
49
+ font-weight: 400;
50
+ }
51
+ }
52
+
53
+ mecx-date-range-picker-group-body {
54
+ display: flex;
55
+ width: 100%;
56
+ justify-content: space-between;
57
+
58
+ .first-date-range {
59
+ .calendar-next {
60
+ display: none;
61
+ }
62
+ }
63
+
64
+ @include media-breakpoint('xs') {
65
+ flex-direction: column;
66
+
67
+ .first-date-range {
68
+ .calendar-next {
69
+ display: inline-block;
70
+ }
71
+ }
72
+
73
+ .second-date-range {
74
+ display: none;
75
+ }
76
+ }
77
+ }
78
+
79
+ mecx-date-range-picker-group-info {
80
+ width: 100%;
81
+ display: flex;
82
+ flex-direction: column;
83
+ justify-content: flex-start;
84
+ align-items: flex-start;
85
+ color: #4b4a53;
86
+ font-size: 12px;
87
+ line-height: 16px;
88
+ height: 30px;
89
+
90
+ info {
91
+ color: #4b4a53;
92
+ text-align: left;
93
+ }
94
+
95
+ error {
96
+ color: map-get($mecx-error, main);
97
+ text-align: left;
98
+ }
99
+ }
100
+
101
+ mecx-date-range-picker-group-action {
102
+ display: flex;
103
+ justify-content: space-between;
104
+ border-top: 1px solid #d6d6d6;
105
+ padding-top: 16px;
106
+ align-items: flex-end;
107
+
108
+ @include media-breakpoint('xs') {
109
+ flex-direction: column;
110
+ padding-top: 12px;
111
+ }
112
+
113
+ &.error {
114
+ border-top: 1px solid #fa3838;
115
+ }
116
+
117
+ .action-days > * {
118
+ margin-right: 24px;
119
+
120
+ @include media-breakpoint('xs') {
121
+ margin-right: 8px;
122
+ display: none;
123
+ }
124
+ }
125
+
126
+ .action-days > * :last-child {
127
+ margin-top: 8px;
128
+ }
129
+
130
+ .actions-date {
131
+ @include media-breakpoint('xs') {
132
+ width: 100%;
133
+ padding-top: 8px;
134
+
135
+ button {
136
+ width: 50%;
137
+ }
138
+ }
139
+ }
140
+ }
141
+ }
142
+
143
+ mecx-date-range-picker-selected-dates {
144
+ display: flex;
145
+ border-bottom: 1px solid #d6d6d6;
146
+ margin-bottom: 8px;
147
+
148
+ @include media-breakpoint('xs') {
149
+ display: none;
150
+ }
151
+
152
+ .from,
153
+ .to {
154
+ display: flex;
155
+ flex-direction: column;
156
+ cursor: pointer;
157
+
158
+ .title {
159
+ font-style: normal;
160
+ font-weight: 400;
161
+ font-size: 16px;
162
+ line-height: 24px;
163
+ color: #9c9ca6;
164
+
165
+ @include media-breakpoint('xs') {
166
+ font-size: 12px;
167
+ }
168
+ }
169
+
170
+ .data {
171
+ font-style: normal;
172
+ font-weight: 400;
173
+ font-size: 16px;
174
+ line-height: 24px;
175
+ min-height: 24px;
176
+ color: #4b4a53;
177
+ }
178
+
179
+ &:first-child {
180
+ margin-right: 48px;
181
+ }
182
+
183
+ &.actual {
184
+ border-bottom: 1px solid #ec7000;
185
+ }
186
+ }
187
+ }
188
+
189
+ mecx-date-range-picker-header {
190
+ display: flex;
191
+ flex-direction: column;
192
+
193
+ .calendar-title {
194
+ align-items: center;
195
+ color: #4b4a53;
196
+ display: flex;
197
+ font-size: 18px;
198
+ font-style: normal;
199
+ font-weight: 500;
200
+ line-height: 21px;
201
+ margin-bottom: 8px;
202
+ text-align: center;
203
+
204
+ .month-year-title {
205
+ width: 100%;
206
+ display: flex;
207
+ justify-content: center;
208
+ }
209
+ }
210
+
211
+ .week {
212
+ display: flex;
213
+ justify-content: center;
214
+
215
+ .week-day {
216
+ align-items: center;
217
+ color: #4b4a53;
218
+ display: flex;
219
+ font-size: 14px;
220
+ font-style: normal;
221
+ font-weight: normal;
222
+ justify-content: center;
223
+ line-height: 16px;
224
+ margin-bottom: 8px;
225
+ text-align: center;
226
+ height: 16px;
227
+ width: 40px;
228
+
229
+ @include media-breakpoint('xs') {
230
+ height: 20px;
231
+ width: 32px;
232
+ }
233
+ }
234
+ }
235
+ }
236
+
237
+ mecx-date-range-picker-body {
238
+ display: flex;
239
+ flex-direction: column;
240
+ justify-content: center;
241
+ align-items: center;
242
+
243
+ .month-week {
244
+ display: flex;
245
+ }
246
+
247
+ .month-day {
248
+ align-items: center;
249
+ color: #4b4a53;
250
+ cursor: pointer;
251
+ display: flex;
252
+ font-size: 14px;
253
+ font-style: normal;
254
+ font-weight: normal;
255
+ justify-content: center;
256
+ line-height: 16px;
257
+ margin-bottom: 8px;
258
+ text-align: center;
259
+ width: 40px;
260
+ height: 16px;
261
+
262
+ @include media-breakpoint('xs') {
263
+ font-size: 12px;
264
+
265
+ height: 20px;
266
+ width: 32px;
267
+ }
268
+
269
+ &.inactive {
270
+ cursor: not-allowed !important;
271
+ opacity: 0.5;
272
+ }
273
+
274
+ &.today {
275
+ color: map-get($mecx-theme, main);
276
+ font-weight: 700;
277
+ }
278
+ }
279
+
280
+ .selected {
281
+ background: #ebebeb;
282
+ color: map-get($mecx-theme, main);
283
+ }
284
+
285
+ .first-selected {
286
+ border-top-left-radius: 8px;
287
+ border-bottom-left-radius: 8px;
288
+ }
289
+
290
+ .last-selected {
291
+ border-top-right-radius: 8px;
292
+ border-bottom-right-radius: 8px;
293
+ }
294
+ }
295
+
296
+ monkey-button.calendar-previous,
297
+ monkey-button.calendar-next {
298
+ monkey-icon {
299
+ margin: 0;
300
+ }
301
+ }
302
+ }
@@ -1,7 +1,7 @@
1
1
  /**************************
2
2
  * Copyright Monkey Exchange. All Rights Reserved
3
3
  * This style guide was developed by Monkey Exchange Team
4
- * MIT Licence
4
+ * MIT Licence
5
5
  **************************/
6
6
  @import 'badge';
7
7
  @import 'input';
@@ -10,6 +10,7 @@
10
10
  @import 'buttons';
11
11
  @import 'checkbox';
12
12
  @import 'date-range-picker';
13
+ @import 'date-range-picker-v2';
13
14
  @import 'radiobutton';
14
15
  @import 'wizard';
15
16
  @import 'snackbar';