@nomideusz/svelte-calendar 1.4.0 → 1.4.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.
@@ -21,7 +21,7 @@ import { createClock } from "../../core/clock.svelte.js";
21
21
  import { fitParts } from "../../text-fit.js";
22
22
  import { HOUR_MS, sod, addDaysMs, diffDays } from "../../core/time.js";
23
23
  import { startOfWeek as sowFn, isAllDay, segmentForDay } from "../../core/time.js";
24
- import { fmtHParts, fmtTime, fmtDuration, fmtWeekRange, weekdayShort, weekdayLong } from "../../core/locale.js";
24
+ import { fmtHParts, fmtTime, fmtDayNum, fmtDuration, fmtWeekRange, weekdayShort, weekdayLong } from "../../core/locale.js";
25
25
  import { dateLong } from "../shared/format.js";
26
26
  let { mode = "week", mondayStart = true, locale, height = 520, events = [], style = "", focusDate, oneventclick, oneventcreate, onexternaldrop, selectedEventId = null, readOnly = false, visibleHours } = $props();
27
27
  // ── Context ────────────────────────────────────────
@@ -948,7 +948,7 @@ function onWindowKeydown(e) {
948
948
  >
949
949
  <span class="tw-hd-wd">{singleDay ? weekdayLong(day.ms, locale) : weekdayShort(day.ms, locale)}</span>
950
950
  {#if showDates}
951
- <span class="tw-hd-num" class:tw-hd-num--today={day.markToday}>{day.dayNum}</span>
951
+ <span class="tw-hd-num" class:tw-hd-num--today={day.markToday}>{fmtDayNum(day.ms, locale)}</span>
952
952
  {/if}
953
953
  {#if dayHeaderSnippet}
954
954
  <div class="tw-hd-custom">
@@ -1424,7 +1424,7 @@ function onWindowKeydown(e) {
1424
1424
  .tw-ad-more:hover { color: var(--dt-text, rgba(15, 15, 15, 0.87)); }
1425
1425
  .tw-ad-more:focus-visible {
1426
1426
  outline: none;
1427
- box-shadow: 0 0 0 2px var(--dt-accent, #1d4fd7);
1427
+ box-shadow: 0 0 0 2px var(--dt-text, #0f0f0f);
1428
1428
  }
1429
1429
 
1430
1430
  /* ─── Grid body ──────────────────────────────────── */
@@ -1545,7 +1545,7 @@ function onWindowKeydown(e) {
1545
1545
  box-sizing: border-box;
1546
1546
  }
1547
1547
  .tw-col:focus-visible {
1548
- outline: 2px solid var(--dt-accent, #1d4fd7);
1548
+ outline: 2px solid var(--dt-text, #0f0f0f);
1549
1549
  outline-offset: -2px;
1550
1550
  }
1551
1551
  /* The gutter's right border already bounds the first column */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nomideusz/svelte-calendar",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "A themeable Svelte 5 calendar: day, week, scrolling-week and month views, agenda lists, touch-first mobile layouts, drag-and-drop, timezones, a headless API and an embeddable web component.",
5
5
  "type": "module",
6
6
  "sideEffects": [