@reachweb/alpine-calendar 0.4.0 → 0.6.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.
@@ -49,6 +49,8 @@ export interface CalendarConfig {
49
49
  format?: string;
50
50
  /** Number of months to show. 1 = single, 2 = side-by-side dual, 3+ = scrollable. Default: 1. */
51
51
  months?: number;
52
+ /** Number of months to show on mobile viewports (<640px). Only used when months === 2. Default: same as months. */
53
+ mobileMonths?: number;
52
54
  /** Max height of the scrollable container in px (only used when months >= 3). Default: 400. */
53
55
  scrollHeight?: number;
54
56
  /** First day of the week (0=Sun, 1=Mon, …, 6=Sat). Default: 1. */
@@ -159,6 +161,7 @@ export declare function createCalendarData(config?: CalendarConfig, Alpine?: {
159
161
  showWeekNumbers: boolean;
160
162
  presets: RangePreset[];
161
163
  inputName: string;
164
+ _mediaQueryCleanup: (() => void) | null;
162
165
  month: number;
163
166
  year: number;
164
167
  view: "days" | "months" | "years";
@@ -191,6 +194,7 @@ export declare function createCalendarData(config?: CalendarConfig, Alpine?: {
191
194
  initTree: (el: HTMLElement) => void;
192
195
  } | null;
193
196
  _autoRendered: boolean;
197
+ _popupOverlayEl: HTMLElement | null;
194
198
  isScrollable: boolean;
195
199
  _scrollHeight: number;
196
200
  _scrollContainerEl: HTMLElement | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reachweb/alpine-calendar",
3
- "version": "0.4.0",
3
+ "version": "0.6.0",
4
4
  "type": "module",
5
5
  "description": "A lightweight, AlpineJS-native calendar component with inline/popup display, input binding with masking, and CSS custom property theming.",
6
6
  "main": "dist/alpine-calendar.umd.js",