@lemonadejs/calendar 5.0.0 → 5.2.1

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 {
@@ -123,6 +126,12 @@
123
126
  cursor: pointer;
124
127
  border-radius: 100px;
125
128
  background-origin: padding-box;
129
+ min-width: 38px;
130
+ }
131
+
132
+ .lm-calendar-content > div[data-disabled="true"] {
133
+ pointer-events: none;
134
+ opacity: 0.3;
126
135
  }
127
136
 
128
137
  .lm-calendar-container[data-view="months"] .lm-calendar-content {
@@ -189,11 +198,16 @@
189
198
  }
190
199
 
191
200
  .lm-calendar-content > div[data-start="true"]::before {
192
- left: 32px;
201
+ left: 5px;
202
+ border-top-left-radius: 20%;
203
+ border-bottom-left-radius: 20%;
193
204
  }
194
205
 
195
- .lm-calendar-content > div[data-end="true"]::before {
196
- right: 32px;
206
+ .lm-calendar-content > div[data-end="true"]::before,
207
+ .lm-calendar-content > div[data-last="true"]::before {
208
+ right: 5px;
209
+ border-top-right-radius: 20%;
210
+ border-bottom-right-radius: 20%;
197
211
  }
198
212
 
199
213
  .lm-calendar-footer > div {
@@ -212,7 +226,7 @@
212
226
  display: none;
213
227
  }
214
228
 
215
- .lm-calendar-footer select {
229
+ .lm-calendar-footer .lm-calendar-control {
216
230
  border: 0;
217
231
  background-color: transparent;
218
232
  padding: 6px;
@@ -246,6 +260,65 @@
246
260
  display: none;
247
261
  }
248
262
 
263
+ .lm-calendar .lm-calendar-icon {
264
+ font-family: "Material Symbols Outlined", "Material Icons", "FontAwesome";
265
+ font-size: 24px;
266
+ width: 40px;
267
+ height: 40px;
268
+ line-height: 24px;
269
+ box-sizing: border-box;
270
+ border-radius: 20px;
271
+ border: 0;
272
+ padding: 0;
273
+ margin: 0;
274
+ }
275
+
276
+ .lm-calendar[data-type="picker"] .lm-modal {
277
+ position: fixed;
278
+ left: 0;
279
+ bottom: 0;
280
+ min-width: 100%;
281
+ min-height: 40px;
282
+ }
283
+
284
+ .lm-calendar[data-type="picker"] .lm-calendar-content > div {
285
+ aspect-ratio: initial;
286
+ min-height: 60px;
287
+ border-radius: 4px;
288
+ }
289
+
290
+ .lm-calendar[data-type="picker"] .lm-calendar-weekdays > div {
291
+ min-height: 60px;
292
+ line-height: 60px;
293
+ }
294
+
295
+
296
+ /** Calendar with grid lines */
297
+
298
+ .lm-calendar[data-grid="true"] .lm-calendar-weekdays {
299
+ padding: 0;
300
+ }
301
+
302
+ .lm-calendar[data-grid="true"] .lm-calendar-content {
303
+ border-top: 1px solid transparent;
304
+ border-left: 1px solid transparent;
305
+ border-right: 1px solid #ccc;
306
+ border-bottom: 1px solid #ccc;
307
+ padding: 0;
308
+ }
309
+
310
+ .lm-calendar[data-grid="true"] .lm-calendar-content > div {
311
+ border-top: 1px solid #ccc;
312
+ border-left: 1px solid #ccc;
313
+ border-right: 1px solid transparent;
314
+ border-bottom: 1px solid transparent;
315
+ border-radius: 0;
316
+ justify-content: start;
317
+ align-items: end;
318
+ }
319
+
320
+ /** Other */
321
+
249
322
  .lm-ripple {
250
323
  background-position: center;
251
324
  transition: background 0.8s;
@@ -261,6 +334,8 @@
261
334
  transition: background 0s;
262
335
  }
263
336
 
337
+ /** Dark mode */
338
+
264
339
  .lm-dark-mode .lm-calendar-weekdays {
265
340
  color: #aaa;
266
341
  }
@@ -280,25 +355,3 @@
280
355
  .lm-dark-mode .lm-calendar-footer select:focus {
281
356
  background-color: #3a3a45;
282
357
  }
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
@@ -1,23 +1,23 @@
1
- {
2
- "name": "@lemonadejs/calendar",
3
- "title": "LemonadeJS calendar",
4
- "description": "LemonadeJS reactive JavaScript calendar plugin",
5
- "author": {
6
- "name": "Contact <contact@lemonadejs.net>",
7
- "url": "https://lemonadejs.net"
8
- },
9
- "keywords": [
10
- "javascript calendar",
11
- "lemonadejs plugins",
12
- "js",
13
- "library",
14
- "javascript plugins"
15
- ],
16
- "dependencies": {
17
- "lemonadejs": "^5.0.3",
18
- "@lemonadejs/modal": "^5.0.0"
19
- },
20
- "main": "dist/index.js",
21
- "types": "dist/index.d.ts",
22
- "version": "5.0.0"
23
- }
1
+ {
2
+ "name": "@lemonadejs/calendar",
3
+ "title": "LemonadeJS calendar",
4
+ "description": "LemonadeJS reactive JavaScript calendar plugin",
5
+ "author": {
6
+ "name": "Contact <contact@lemonadejs.net>",
7
+ "url": "https://lemonadejs.net"
8
+ },
9
+ "keywords": [
10
+ "javascript calendar",
11
+ "lemonadejs plugins",
12
+ "js",
13
+ "library",
14
+ "javascript plugins"
15
+ ],
16
+ "dependencies": {
17
+ "lemonadejs": "^5.2.0",
18
+ "@lemonadejs/modal": "^5.2.0"
19
+ },
20
+ "main": "dist/index.js",
21
+ "types": "dist/index.d.ts",
22
+ "version": "5.2.1"
23
+ }