@progressive-development/pd-calendar 0.1.18 → 0.1.20

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
@@ -3,7 +3,7 @@
3
3
  "description": "progressive development calendar web component",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "author": "PD Progressive Development",
6
- "version": "0.1.18",
6
+ "version": "0.1.20",
7
7
  "main": "index.js",
8
8
  "module": "index.js",
9
9
  "scripts": {
package/src/PdCalendar.js CHANGED
@@ -158,7 +158,7 @@ export class PdCalendar extends LitElement {
158
158
  align-items: center;
159
159
  justify-content: center;
160
160
  background-color: var(--pd-calendar-week-title-bg-col, var(--pd-default-dark-col));
161
- font-size: var(--pd-calendar-title-font-size, 1em);
161
+ font-size: var(--pd-calendar-weekday-title-font-size, 1em);
162
162
  font-weight: bold;
163
163
  color: var(--pd-calendar-week-title-font-col, var(--pd-default-bg-col));
164
164
  font-family: var(--pd-default-font-title-family);
@@ -169,6 +169,13 @@ export class PdCalendar extends LitElement {
169
169
  font-weight: bold;
170
170
  }
171
171
 
172
+ .icon-container {
173
+ display: flex;
174
+ align-items: center;
175
+ justify-content: center;
176
+ gap: 5px;
177
+ }
178
+
172
179
  .arrow {
173
180
  cursor: pointer;
174
181
  --pd-icon-size: var(--pd-calendar-title-icon-size, 1.2em);
@@ -282,7 +289,7 @@ export class PdCalendar extends LitElement {
282
289
 
283
290
  <div class="header-main">
284
291
 
285
- <div>
292
+ <div class="icon-container">
286
293
  <pd-icon
287
294
  @click="${this._previousMonth}"
288
295
  class="arrow"
@@ -29,6 +29,12 @@ function CalendarSmallTemplate({ hideWeekend, width, cellHeight, prevMonthConstr
29
29
  --pd-calendar-cell-selectable-shadow: 0;
30
30
  --pd-calendar-cell-day-free-bg-col: white;
31
31
  --pd-calendar-cell-day-info-free-col: #0A3A48;
32
+ --pd-default-font-title-family: Oswald;
33
+ --pd-calendar-title-font-size: 20px;
34
+ --pd-calendar-title-icon-size: 20px;
35
+ --pd-calendar-weekday-title-font-size: 15px;
36
+ --pd-calendar-number-font-size: 15px;
37
+
32
38
  }
33
39
  </style>
34
40
  <pd-calendar selectableDates ?hideWeekend="${hideWeekend}" class="calendar-small" prevMonthConstraint="${prevMonthConstraint}"