@lemonadejs/calendar 5.0.0 → 5.2.0

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/dist/style.css CHANGED
@@ -8,6 +8,12 @@
8
8
  position: relative;
9
9
  }
10
10
 
11
+ .lm-calendar[data-disabled] .lm-calendar-container[data-view="days"] .lm-calendar-content,
12
+ .lm-calendar[data-disabled] .lm-calendar-footer {
13
+ opacity: 0.5;
14
+ pointer-events: none;
15
+ }
16
+
11
17
  .lm-calendar button {
12
18
  cursor: pointer;
13
19
  }
@@ -53,7 +59,8 @@
53
59
  display: flex;
54
60
  flex: 1;
55
61
  cursor: pointer;
56
- padding-left: 5px;
62
+ padding: 5px;
63
+ margin: 10px 0;
57
64
  }
58
65
 
59
66
  .lm-calendar-header .lm-calendar-labels > button {
@@ -67,13 +74,7 @@
67
74
  .lm-calendar-navigation {
68
75
  display: grid;
69
76
  grid-template-columns: repeat(2, 1fr);
70
- gap: 6px;
71
- }
72
-
73
- .lm-calendar-navigation button {
74
- padding: 8px;
75
- border: 0;
76
- border-radius: 24px;
77
+ gap: 1px;
77
78
  }
78
79
 
79
80
  .lm-calendar-navigation i:hover {
@@ -86,11 +87,12 @@
86
87
  grid-template-columns: repeat(7, 1fr);
87
88
  padding: 0 8px 0 8px;
88
89
  font-size: 0.8em;
90
+ align-items: center;
91
+ justify-content: center;
89
92
  }
90
93
 
91
94
  .lm-calendar-container[data-view="days"] .lm-calendar-weekdays {
92
95
  display: grid;
93
- align-items: center;
94
96
  flex: 1;
95
97
  }
96
98
 
@@ -101,6 +103,7 @@
101
103
  text-align: center;
102
104
  font-weight: bold;
103
105
  line-height: 2em;
106
+ justify-content: center;
104
107
  }
105
108
 
106
109
  .lm-calendar-content {
@@ -125,6 +128,11 @@
125
128
  background-origin: padding-box;
126
129
  }
127
130
 
131
+ .lm-calendar-content > div[data-disabled="true"] {
132
+ pointer-events: none;
133
+ opacity: 0.3;
134
+ }
135
+
128
136
  .lm-calendar-container[data-view="months"] .lm-calendar-content {
129
137
  grid-template-columns: repeat(4, 1fr);
130
138
  }
@@ -189,11 +197,16 @@
189
197
  }
190
198
 
191
199
  .lm-calendar-content > div[data-start="true"]::before {
192
- left: 32px;
200
+ left: 5px;
201
+ border-top-left-radius: 20%;
202
+ border-bottom-left-radius: 20%;
193
203
  }
194
204
 
195
- .lm-calendar-content > div[data-end="true"]::before {
196
- right: 32px;
205
+ .lm-calendar-content > div[data-end="true"]::before,
206
+ .lm-calendar-content > div[data-last="true"]::before {
207
+ right: 5px;
208
+ border-top-right-radius: 20%;
209
+ border-bottom-right-radius: 20%;
197
210
  }
198
211
 
199
212
  .lm-calendar-footer > div {
@@ -212,7 +225,7 @@
212
225
  display: none;
213
226
  }
214
227
 
215
- .lm-calendar-footer select {
228
+ .lm-calendar-footer .lm-calendar-control {
216
229
  border: 0;
217
230
  background-color: transparent;
218
231
  padding: 6px;
@@ -246,6 +259,65 @@
246
259
  display: none;
247
260
  }
248
261
 
262
+ .lm-calendar .lm-calendar-icon {
263
+ font-family: "Material Symbols Outlined", "Material Icons", "FontAwesome";
264
+ font-size: 24px;
265
+ width: 40px;
266
+ height: 40px;
267
+ line-height: 24px;
268
+ box-sizing: border-box;
269
+ border-radius: 20px;
270
+ border: 0;
271
+ padding: 0;
272
+ margin: 0;
273
+ }
274
+
275
+ .lm-calendar[data-type="picker"] .lm-modal {
276
+ position: fixed;
277
+ left: 0;
278
+ bottom: 0;
279
+ min-width: 100%;
280
+ min-height: 40px;
281
+ }
282
+
283
+ .lm-calendar[data-type="picker"] .lm-calendar-content > div {
284
+ aspect-ratio: initial;
285
+ min-height: 60px;
286
+ border-radius: 4px;
287
+ }
288
+
289
+ .lm-calendar[data-type="picker"] .lm-calendar-weekdays > div {
290
+ min-height: 60px;
291
+ line-height: 60px;
292
+ }
293
+
294
+
295
+ /** Calendar with grid lines */
296
+
297
+ .lm-calendar[data-grid="true"] .lm-calendar-weekdays {
298
+ padding: 0;
299
+ }
300
+
301
+ .lm-calendar[data-grid="true"] .lm-calendar-content {
302
+ border-top: 1px solid transparent;
303
+ border-left: 1px solid transparent;
304
+ border-right: 1px solid #ccc;
305
+ border-bottom: 1px solid #ccc;
306
+ padding: 0;
307
+ }
308
+
309
+ .lm-calendar[data-grid="true"] .lm-calendar-content > div {
310
+ border-top: 1px solid #ccc;
311
+ border-left: 1px solid #ccc;
312
+ border-right: 1px solid transparent;
313
+ border-bottom: 1px solid transparent;
314
+ border-radius: 0;
315
+ justify-content: start;
316
+ align-items: end;
317
+ }
318
+
319
+ /** Other */
320
+
249
321
  .lm-ripple {
250
322
  background-position: center;
251
323
  transition: background 0.8s;
@@ -261,6 +333,8 @@
261
333
  transition: background 0s;
262
334
  }
263
335
 
336
+ /** Dark mode */
337
+
264
338
  .lm-dark-mode .lm-calendar-weekdays {
265
339
  color: #aaa;
266
340
  }
@@ -280,25 +354,3 @@
280
354
  .lm-dark-mode .lm-calendar-footer select:focus {
281
355
  background-color: #3a3a45;
282
356
  }
283
-
284
- .lm-calendar[data-grid="true"] .lm-calendar-weekdays {
285
- padding: 0;
286
- }
287
-
288
- .lm-calendar[data-grid="true"] .lm-calendar-content {
289
- border-top: 1px solid transparent;
290
- border-left: 1px solid transparent;
291
- border-right: 1px solid #ccc;
292
- border-bottom: 1px solid #ccc;
293
- padding: 0;
294
- }
295
-
296
- .lm-calendar[data-grid="true"] .lm-calendar-content > div {
297
- border-top: 1px solid #ccc;
298
- border-left: 1px solid #ccc;
299
- border-right: 1px solid transparent;
300
- border-bottom: 1px solid transparent;
301
- border-radius: 0;
302
- justify-content: start;
303
- align-items: end;
304
- }
package/package.json CHANGED
@@ -14,10 +14,10 @@
14
14
  "javascript plugins"
15
15
  ],
16
16
  "dependencies": {
17
- "lemonadejs": "^5.0.3",
18
- "@lemonadejs/modal": "^5.0.0"
17
+ "lemonadejs": "^5.2.0",
18
+ "@lemonadejs/modal": "^5.2.0"
19
19
  },
20
20
  "main": "dist/index.js",
21
21
  "types": "dist/index.d.ts",
22
- "version": "5.0.0"
22
+ "version": "5.2.0"
23
23
  }