@knitui/dates 0.5.0 → 0.6.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.
Files changed (161) hide show
  1. package/lib/commonjs/DatesProvider/DatesProvider.js +33 -4
  2. package/lib/commonjs/DatesProvider/DatesProvider.js.map +1 -1
  3. package/lib/commonjs/Day/Day.js +45 -7
  4. package/lib/commonjs/Day/Day.js.map +1 -1
  5. package/lib/commonjs/Month/Month.js +266 -80
  6. package/lib/commonjs/Month/Month.js.map +1 -1
  7. package/lib/commonjs/MonthLevel/MonthLevel.js +19 -3
  8. package/lib/commonjs/MonthLevel/MonthLevel.js.map +1 -1
  9. package/lib/commonjs/MonthsList/MonthsList.js +160 -60
  10. package/lib/commonjs/MonthsList/MonthsList.js.map +1 -1
  11. package/lib/commonjs/MonthsList/get-month-in-tab-order/get-month-in-tab-order.js +7 -1
  12. package/lib/commonjs/MonthsList/get-month-in-tab-order/get-month-in-tab-order.js.map +1 -1
  13. package/lib/commonjs/TimeControlsList/TimeControl.js +15 -1
  14. package/lib/commonjs/TimeControlsList/TimeControl.js.map +1 -1
  15. package/lib/commonjs/TimeControlsList/TimeControlsList.js +16 -3
  16. package/lib/commonjs/TimeControlsList/TimeControlsList.js.map +1 -1
  17. package/lib/commonjs/WeekdaysRow/WeekdaysRow.js +23 -4
  18. package/lib/commonjs/WeekdaysRow/WeekdaysRow.js.map +1 -1
  19. package/lib/commonjs/YearsList/YearsList.js +155 -60
  20. package/lib/commonjs/YearsList/YearsList.js.map +1 -1
  21. package/lib/commonjs/YearsList/get-year-in-tab-order/get-year-in-tab-order.js +7 -1
  22. package/lib/commonjs/YearsList/get-year-in-tab-order/get-year-in-tab-order.js.map +1 -1
  23. package/lib/commonjs/hooks/use-dates-state/is-in-range/is-in-range.js +20 -0
  24. package/lib/commonjs/hooks/use-dates-state/is-in-range/is-in-range.js.map +1 -1
  25. package/lib/commonjs/hooks/use-dates-state/use-dates-state.js +25 -7
  26. package/lib/commonjs/hooks/use-dates-state/use-dates-state.js.map +1 -1
  27. package/lib/commonjs/internal/are-cell-props-equal.js +64 -0
  28. package/lib/commonjs/internal/are-cell-props-equal.js.map +1 -0
  29. package/lib/commonjs/internal/date-string-fast-path.js +98 -0
  30. package/lib/commonjs/internal/date-string-fast-path.js.map +1 -0
  31. package/lib/commonjs/internal/memoize-control-props.js +54 -0
  32. package/lib/commonjs/internal/memoize-control-props.js.map +1 -0
  33. package/lib/commonjs/internal/month-days-cache.js +71 -0
  34. package/lib/commonjs/internal/month-days-cache.js.map +1 -0
  35. package/lib/commonjs/utils/get-date-in-tab-order/get-date-in-tab-order.js +9 -1
  36. package/lib/commonjs/utils/get-date-in-tab-order/get-date-in-tab-order.js.map +1 -1
  37. package/lib/commonjs/utils/is-after-min-date/is-after-min-date.js +14 -1
  38. package/lib/commonjs/utils/is-after-min-date/is-after-min-date.js.map +1 -1
  39. package/lib/commonjs/utils/is-before-max-date/is-before-max-date.js +14 -1
  40. package/lib/commonjs/utils/is-before-max-date/is-before-max-date.js.map +1 -1
  41. package/lib/commonjs/utils/is-same-month/is-same-month.js +17 -1
  42. package/lib/commonjs/utils/is-same-month/is-same-month.js.map +1 -1
  43. package/lib/module/DatesProvider/DatesProvider.js +34 -5
  44. package/lib/module/DatesProvider/DatesProvider.js.map +1 -1
  45. package/lib/module/Day/Day.js +46 -8
  46. package/lib/module/Day/Day.js.map +1 -1
  47. package/lib/module/Month/Month.js +267 -82
  48. package/lib/module/Month/Month.js.map +1 -1
  49. package/lib/module/MonthLevel/MonthLevel.js +19 -3
  50. package/lib/module/MonthLevel/MonthLevel.js.map +1 -1
  51. package/lib/module/MonthsList/MonthsList.js +159 -60
  52. package/lib/module/MonthsList/MonthsList.js.map +1 -1
  53. package/lib/module/MonthsList/get-month-in-tab-order/get-month-in-tab-order.js +7 -1
  54. package/lib/module/MonthsList/get-month-in-tab-order/get-month-in-tab-order.js.map +1 -1
  55. package/lib/module/TimeControlsList/TimeControl.js +15 -1
  56. package/lib/module/TimeControlsList/TimeControl.js.map +1 -1
  57. package/lib/module/TimeControlsList/TimeControlsList.js +16 -3
  58. package/lib/module/TimeControlsList/TimeControlsList.js.map +1 -1
  59. package/lib/module/WeekdaysRow/WeekdaysRow.js +23 -4
  60. package/lib/module/WeekdaysRow/WeekdaysRow.js.map +1 -1
  61. package/lib/module/YearsList/YearsList.js +154 -60
  62. package/lib/module/YearsList/YearsList.js.map +1 -1
  63. package/lib/module/YearsList/get-year-in-tab-order/get-year-in-tab-order.js +7 -1
  64. package/lib/module/YearsList/get-year-in-tab-order/get-year-in-tab-order.js.map +1 -1
  65. package/lib/module/hooks/use-dates-state/is-in-range/is-in-range.js +20 -0
  66. package/lib/module/hooks/use-dates-state/is-in-range/is-in-range.js.map +1 -1
  67. package/lib/module/hooks/use-dates-state/use-dates-state.js +25 -7
  68. package/lib/module/hooks/use-dates-state/use-dates-state.js.map +1 -1
  69. package/lib/module/internal/are-cell-props-equal.js +60 -0
  70. package/lib/module/internal/are-cell-props-equal.js.map +1 -0
  71. package/lib/module/internal/date-string-fast-path.js +91 -0
  72. package/lib/module/internal/date-string-fast-path.js.map +1 -0
  73. package/lib/module/internal/memoize-control-props.js +50 -0
  74. package/lib/module/internal/memoize-control-props.js.map +1 -0
  75. package/lib/module/internal/month-days-cache.js +68 -0
  76. package/lib/module/internal/month-days-cache.js.map +1 -0
  77. package/lib/module/utils/get-date-in-tab-order/get-date-in-tab-order.js +9 -1
  78. package/lib/module/utils/get-date-in-tab-order/get-date-in-tab-order.js.map +1 -1
  79. package/lib/module/utils/is-after-min-date/is-after-min-date.js +14 -1
  80. package/lib/module/utils/is-after-min-date/is-after-min-date.js.map +1 -1
  81. package/lib/module/utils/is-before-max-date/is-before-max-date.js +14 -1
  82. package/lib/module/utils/is-before-max-date/is-before-max-date.js.map +1 -1
  83. package/lib/module/utils/is-same-month/is-same-month.js +17 -1
  84. package/lib/module/utils/is-same-month/is-same-month.js.map +1 -1
  85. package/lib/typescript/Calendar/pick-calendar-props/pick-calendar-props.d.ts +1 -1
  86. package/lib/typescript/CalendarHeader/CalendarHeader.d.ts +14 -14
  87. package/lib/typescript/DatesProvider/DatesProvider.d.ts.map +1 -1
  88. package/lib/typescript/Day/Day.d.ts +31 -31
  89. package/lib/typescript/Day/Day.d.ts.map +1 -1
  90. package/lib/typescript/DecadeLevel/DecadeLevel.d.ts +7 -7
  91. package/lib/typescript/DecadeLevelGroup/DecadeLevelGroup.d.ts +7 -7
  92. package/lib/typescript/InlineDateTimePicker/InlineDateTimePicker.d.ts +4 -4
  93. package/lib/typescript/MiniCalendar/MiniCalendar.d.ts +18 -18
  94. package/lib/typescript/Month/Month.d.ts +9 -8
  95. package/lib/typescript/Month/Month.d.ts.map +1 -1
  96. package/lib/typescript/MonthLevel/MonthLevel.d.ts +10 -10
  97. package/lib/typescript/MonthLevel/MonthLevel.d.ts.map +1 -1
  98. package/lib/typescript/MonthLevelGroup/MonthLevelGroup.d.ts +10 -10
  99. package/lib/typescript/MonthsList/MonthsList.d.ts +3 -2
  100. package/lib/typescript/MonthsList/MonthsList.d.ts.map +1 -1
  101. package/lib/typescript/MonthsList/get-month-in-tab-order/get-month-in-tab-order.d.ts +6 -0
  102. package/lib/typescript/MonthsList/get-month-in-tab-order/get-month-in-tab-order.d.ts.map +1 -1
  103. package/lib/typescript/PickerControl/PickerControl.d.ts +10 -10
  104. package/lib/typescript/TimeControlsList/TimeControl.d.ts +13 -0
  105. package/lib/typescript/TimeControlsList/TimeControl.d.ts.map +1 -1
  106. package/lib/typescript/TimeControlsList/TimeControlsList.d.ts.map +1 -1
  107. package/lib/typescript/TimeGrid/TimeGrid.d.ts +7 -7
  108. package/lib/typescript/TimePicker/TimePicker.d.ts +4 -4
  109. package/lib/typescript/TimePresets/TimePresetGroup.d.ts +4 -4
  110. package/lib/typescript/TimePresets/TimePresets.d.ts +6 -4
  111. package/lib/typescript/TimePresets/TimePresets.d.ts.map +1 -1
  112. package/lib/typescript/WeekdaysRow/WeekdaysRow.d.ts +6 -6
  113. package/lib/typescript/WeekdaysRow/WeekdaysRow.d.ts.map +1 -1
  114. package/lib/typescript/YearLevel/YearLevel.d.ts +7 -7
  115. package/lib/typescript/YearLevelGroup/YearLevelGroup.d.ts +7 -7
  116. package/lib/typescript/YearsList/YearsList.d.ts +3 -2
  117. package/lib/typescript/YearsList/YearsList.d.ts.map +1 -1
  118. package/lib/typescript/YearsList/get-year-in-tab-order/get-year-in-tab-order.d.ts +6 -0
  119. package/lib/typescript/YearsList/get-year-in-tab-order/get-year-in-tab-order.d.ts.map +1 -1
  120. package/lib/typescript/_reference/ExampleControl.d.ts +8 -8
  121. package/lib/typescript/hooks/use-dates-state/is-in-range/is-in-range.d.ts +12 -0
  122. package/lib/typescript/hooks/use-dates-state/is-in-range/is-in-range.d.ts.map +1 -1
  123. package/lib/typescript/hooks/use-dates-state/use-dates-state.d.ts.map +1 -1
  124. package/lib/typescript/internal/are-cell-props-equal.d.ts +21 -0
  125. package/lib/typescript/internal/are-cell-props-equal.d.ts.map +1 -0
  126. package/lib/typescript/internal/date-string-fast-path.d.ts +35 -0
  127. package/lib/typescript/internal/date-string-fast-path.d.ts.map +1 -0
  128. package/lib/typescript/internal/memoize-control-props.d.ts +12 -0
  129. package/lib/typescript/internal/memoize-control-props.d.ts.map +1 -0
  130. package/lib/typescript/internal/month-days-cache.d.ts +19 -0
  131. package/lib/typescript/internal/month-days-cache.d.ts.map +1 -0
  132. package/lib/typescript/utils/get-date-in-tab-order/get-date-in-tab-order.d.ts +9 -1
  133. package/lib/typescript/utils/get-date-in-tab-order/get-date-in-tab-order.d.ts.map +1 -1
  134. package/lib/typescript/utils/is-after-min-date/is-after-min-date.d.ts +6 -0
  135. package/lib/typescript/utils/is-after-min-date/is-after-min-date.d.ts.map +1 -1
  136. package/lib/typescript/utils/is-before-max-date/is-before-max-date.d.ts +6 -0
  137. package/lib/typescript/utils/is-before-max-date/is-before-max-date.d.ts.map +1 -1
  138. package/lib/typescript/utils/is-same-month/is-same-month.d.ts +13 -1
  139. package/lib/typescript/utils/is-same-month/is-same-month.d.ts.map +1 -1
  140. package/package.json +6 -6
  141. package/src/DatesProvider/DatesProvider.tsx +27 -5
  142. package/src/Day/Day.tsx +51 -10
  143. package/src/Month/Month.tsx +357 -80
  144. package/src/MonthLevel/MonthLevel.tsx +35 -16
  145. package/src/MonthsList/MonthsList.tsx +201 -55
  146. package/src/MonthsList/get-month-in-tab-order/get-month-in-tab-order.ts +12 -1
  147. package/src/TimeControlsList/TimeControl.tsx +16 -1
  148. package/src/TimeControlsList/TimeControlsList.tsx +15 -3
  149. package/src/WeekdaysRow/WeekdaysRow.tsx +29 -5
  150. package/src/YearsList/YearsList.tsx +196 -55
  151. package/src/YearsList/get-year-in-tab-order/get-year-in-tab-order.ts +12 -1
  152. package/src/hooks/use-dates-state/is-in-range/is-in-range.ts +22 -0
  153. package/src/hooks/use-dates-state/use-dates-state.ts +27 -11
  154. package/src/internal/are-cell-props-equal.ts +63 -0
  155. package/src/internal/date-string-fast-path.ts +94 -0
  156. package/src/internal/memoize-control-props.ts +54 -0
  157. package/src/internal/month-days-cache.ts +77 -0
  158. package/src/utils/get-date-in-tab-order/get-date-in-tab-order.ts +17 -2
  159. package/src/utils/is-after-min-date/is-after-min-date.ts +16 -1
  160. package/src/utils/is-before-max-date/is-before-max-date.ts +16 -1
  161. package/src/utils/is-same-month/is-same-month.ts +18 -1
@@ -0,0 +1,91 @@
1
+ "use strict";
2
+
3
+ // Internal cross-platform helper — NOT exported from the public `src/index.ts`
4
+ // barrel.
5
+ //
6
+ // Most date comparisons in this package run over values that are ALREADY
7
+ // zero-padded `YYYY-MM-DD` strings — that is the package's canonical value shape
8
+ // (`DateStringValue`), and `getMonthDays` / `toDateString` emit nothing else. For
9
+ // those inputs a lexicographic string compare is EXACT: fixed-width, zero-padded,
10
+ // big-endian date strings sort in chronological order, so `a <= b` on the
11
+ // `YYYY-MM-DD` prefix is equivalent to a day-granularity dayjs comparison, and
12
+ // equality on the `YYYY-MM` prefix is equivalent to a month-granularity one.
13
+ //
14
+ // The dayjs spellings cost 2+ instances (each a `new Date` plus an object) and,
15
+ // for the month case, 2 `format()` calls that hit the locale table and run a
16
+ // regex replace — 42+ times per month grid render. The string spellings allocate
17
+ // nothing.
18
+ //
19
+ // The comparisons that use this all keep their dayjs path as a fallback for
20
+ // non-canonical input (`Date` objects, unpadded strings, other formats), so the
21
+ // fast path is a pure optimisation and never a narrowing of the accepted input.
22
+
23
+ /**
24
+ * Matches a leading zero-padded `YYYY-MM-DD`, the package's canonical date
25
+ * string. Anchored at the start and tolerant of a trailing time component, so
26
+ * `DateTimeStringValue` (`YYYY-MM-DD HH:mm:ss`) also qualifies — its date part
27
+ * is what every day-granularity comparison looks at.
28
+ */
29
+ const CANONICAL_DATE = /^\d{4}-\d{2}-\d{2}/;
30
+
31
+ /**
32
+ * Matches a leading zero-padded `YYYY-MM`. Accepts a bare year-month as well as
33
+ * a full date, since month-granularity comparisons only read that prefix. An
34
+ * UNPADDED month (`2026-6-15`) fails to match — `\d{2}` cannot consume `6-` — and
35
+ * so falls through to the dayjs path, which is the point of the guard.
36
+ */
37
+ const CANONICAL_YEAR_MONTH = /^\d{4}-\d{2}/;
38
+
39
+ /** Whether `value` is a canonical `YYYY-MM-DD…` string safe to compare as text. */
40
+ export function isCanonicalDateString(value) {
41
+ return typeof value === "string" && CANONICAL_DATE.test(value);
42
+ }
43
+
44
+ /** Whether `value` starts with a canonical zero-padded `YYYY-MM`. */
45
+ export function isCanonicalYearMonthString(value) {
46
+ return typeof value === "string" && CANONICAL_YEAR_MONTH.test(value);
47
+ }
48
+
49
+ /** Prefix length of a canonical date string that carries each granularity. */
50
+ const PREFIX_LENGTH = {
51
+ year: 4,
52
+ month: 7,
53
+ day: 10
54
+ };
55
+
56
+ /** The comparison granularities the pickers use (`useDatesState`'s `level`). */
57
+
58
+ /**
59
+ * `dayjs(a).isSame(b, level)` for canonical date strings, as a prefix compare.
60
+ *
61
+ * Returns `null` when either side is NOT canonical, so callers can fall back to
62
+ * the dayjs comparison rather than silently changing semantics — the same
63
+ * belt-and-braces shape as the predicates above.
64
+ *
65
+ * This is the single hottest comparison in a range picker: `getControlProps`
66
+ * runs it for `selected`, `firstInRange` and `lastInRange` on EVERY cell, so a
67
+ * 42-cell grid pays for it well over a hundred times per render — and a web
68
+ * hover move triggers a full re-render.
69
+ */
70
+ export function isSameByPrefix(a, b, level) {
71
+ if (!isCanonicalDateString(a) || !isCanonicalDateString(b)) {
72
+ return null;
73
+ }
74
+ const length = PREFIX_LENGTH[level];
75
+ return a.slice(0, length) === b.slice(0, length);
76
+ }
77
+
78
+ /**
79
+ * `dayjs(a).isBefore(b)` for canonical date strings, as a prefix compare.
80
+ *
81
+ * Both sides parse to local midnight, so comparing the `YYYY-MM-DD` prefix
82
+ * lexicographically is equivalent to dayjs' millisecond comparison. Returns
83
+ * `null` when either side is not canonical.
84
+ */
85
+ export function isBeforeByPrefix(a, b) {
86
+ if (!isCanonicalDateString(a) || !isCanonicalDateString(b)) {
87
+ return null;
88
+ }
89
+ return a.slice(0, 10) < b.slice(0, 10);
90
+ }
91
+ //# sourceMappingURL=date-string-fast-path.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["CANONICAL_DATE","CANONICAL_YEAR_MONTH","isCanonicalDateString","value","test","isCanonicalYearMonthString","PREFIX_LENGTH","year","month","day","isSameByPrefix","a","b","level","length","slice","isBeforeByPrefix"],"sourceRoot":"../../../src","sources":["internal/date-string-fast-path.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMA,cAAc,GAAG,oBAAoB;;AAE3C;AACA;AACA;AACA;AACA;AACA;AACA,MAAMC,oBAAoB,GAAG,cAAc;;AAE3C;AACA,OAAO,SAASC,qBAAqBA,CAACC,KAAc,EAAmB;EACrE,OAAO,OAAOA,KAAK,KAAK,QAAQ,IAAIH,cAAc,CAACI,IAAI,CAACD,KAAK,CAAC;AAChE;;AAEA;AACA,OAAO,SAASE,0BAA0BA,CAACF,KAAc,EAAmB;EAC1E,OAAO,OAAOA,KAAK,KAAK,QAAQ,IAAIF,oBAAoB,CAACG,IAAI,CAACD,KAAK,CAAC;AACtE;;AAEA;AACA,MAAMG,aAAa,GAAG;EAAEC,IAAI,EAAE,CAAC;EAAEC,KAAK,EAAE,CAAC;EAAEC,GAAG,EAAE;AAAG,CAAU;;AAE7D;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,cAAcA,CAC5BC,CAA4B,EAC5BC,CAA4B,EAC5BC,KAAsB,EACN;EAChB,IAAI,CAACX,qBAAqB,CAACS,CAAC,CAAC,IAAI,CAACT,qBAAqB,CAACU,CAAC,CAAC,EAAE;IAC1D,OAAO,IAAI;EACb;EAEA,MAAME,MAAM,GAAGR,aAAa,CAACO,KAAK,CAAC;EACnC,OAAOF,CAAC,CAACI,KAAK,CAAC,CAAC,EAAED,MAAM,CAAC,KAAKF,CAAC,CAACG,KAAK,CAAC,CAAC,EAAED,MAAM,CAAC;AAClD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASE,gBAAgBA,CAC9BL,CAA4B,EAC5BC,CAA4B,EACZ;EAChB,IAAI,CAACV,qBAAqB,CAACS,CAAC,CAAC,IAAI,CAACT,qBAAqB,CAACU,CAAC,CAAC,EAAE;IAC1D,OAAO,IAAI;EACb;EAEA,OAAOD,CAAC,CAACI,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,GAAGH,CAAC,CAACG,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC;AACxC","ignoreList":[]}
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+
3
+ // Internal cross-platform helper — NOT exported from the public `src/index.ts`
4
+ // barrel.
5
+ //
6
+ // The grid components (`Month`, `MonthsList`, `YearsList`) each consult their
7
+ // per-item prop getter (`getDayProps` / `getMonthControlProps` /
8
+ // `getYearControlProps`) from MORE THAN ONE place in a single render: once from
9
+ // the `…InTabOrder` helper's "which cell is enabled" filter, again from its
10
+ // "which cell is selected" scan, and a third time in the cell loop itself.
11
+ //
12
+ // Those getters are NOT cheap. `DatePicker` wires `getDayProps` to
13
+ // `useDatesState`'s `getControlProps`, which for `type="range"` runs
14
+ // `rangeView.some(isSame)` + `isDateInRange` + `isFirstInRange` +
15
+ // `isLastInRange` — on the order of 20 dayjs instances and 2 array allocations
16
+ // per call. Three calls × 42 cells is ~2,500 dayjs instances spent re-deriving
17
+ // the SAME answer.
18
+ //
19
+ // Wrapping the getter in a per-render `Map` collapses that to one real call per
20
+ // date. The cache MUST be per render (created during render, discarded with it):
21
+ // the getters close over live selection/hover state and their identity changes
22
+ // every render, so a cache that outlived the render would serve stale props.
23
+
24
+ /**
25
+ * Wrap a per-date prop getter so each distinct date is resolved at most once.
26
+ *
27
+ * Returns `undefined` when `getter` is `undefined`, preserving the optionality
28
+ * of the original prop so call sites keep their `getter?.(date)` shape and their
29
+ * result stays `T | undefined`. Call this ONCE PER RENDER and share the result
30
+ * with every consumer in that render — see the note above on why the cache must
31
+ * not be memoized across renders.
32
+ */
33
+ export function memoizeByDate(getter) {
34
+ if (!getter) {
35
+ return undefined;
36
+ }
37
+ const cache = new Map();
38
+ return date => {
39
+ const cached = cache.get(date);
40
+ // `has` (not a truthiness test) so a getter legitimately returning
41
+ // `undefined`/`false` is still cached rather than recomputed every hit.
42
+ if (cached !== undefined || cache.has(date)) {
43
+ return cached;
44
+ }
45
+ const value = getter(date);
46
+ cache.set(date, value);
47
+ return value;
48
+ };
49
+ }
50
+ //# sourceMappingURL=memoize-control-props.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["memoizeByDate","getter","undefined","cache","Map","date","cached","get","has","value","set"],"sourceRoot":"../../../src","sources":["internal/memoize-control-props.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASA,aAAaA,CAC3BC,MAAkD,EACN;EAC5C,IAAI,CAACA,MAAM,EAAE;IACX,OAAOC,SAAS;EAClB;EAEA,MAAMC,KAAK,GAAG,IAAIC,GAAG,CAAqB,CAAC;EAE3C,OAAQC,IAAqB,IAAQ;IACnC,MAAMC,MAAM,GAAGH,KAAK,CAACI,GAAG,CAACF,IAAI,CAAC;IAC9B;IACA;IACA,IAAIC,MAAM,KAAKJ,SAAS,IAAIC,KAAK,CAACK,GAAG,CAACH,IAAI,CAAC,EAAE;MAC3C,OAAOC,MAAM;IACf;IAEA,MAAMG,KAAK,GAAGR,MAAM,CAACI,IAAI,CAAC;IAC1BF,KAAK,CAACO,GAAG,CAACL,IAAI,EAAEI,KAAK,CAAC;IACtB,OAAOA,KAAK;EACd,CAAC;AACH","ignoreList":[]}
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+
3
+ // Internal cross-platform helper — NOT exported from the public `src/index.ts`
4
+ // barrel.
5
+ //
6
+ // `getMonthDays` is the grid's enumerator, and it is not cheap: it walks the
7
+ // month day by day, so a 5-week grid costs ~70 dayjs instances (the running
8
+ // cursor plus dayjs' internal clones) and 35 `format("YYYY-MM-DD")` calls. The
9
+ // answer, though, is a PURE function of three primitives — the month, the first
10
+ // weekday, and whether the grid is padded to 6 weeks — and it is re-derived on
11
+ // every single `Month` render, including the ones triggered by nothing but a web
12
+ // hover moving one cell over.
13
+ //
14
+ // A small module-level LRU makes month navigation free after the first visit:
15
+ // stepping back and forth across a few months (or re-rendering the same month
16
+ // for any other reason) replays cached arrays instead of re-walking the calendar.
17
+ // The cap is generous enough to hold a couple of years of browsing yet bounded so
18
+ // a long-lived app cannot grow the map without limit.
19
+ //
20
+ // This deliberately wraps the public `getMonthDays` rather than caching inside
21
+ // it: the public util keeps returning a FRESH array per call, so an external
22
+ // consumer that mutates the result cannot corrupt a shared cache entry. Inside
23
+ // this package the arrays are only read (`.flat()`, `.filter()`, `.find()`,
24
+ // `.map()`), so sharing them is safe — and it additionally gives the grid a
25
+ // STABLE array identity per month, which is what lets `Month` use it directly as
26
+ // a `useMemo` dependency.
27
+
28
+ import { getMonthDays } from "../utils";
29
+
30
+ /** How many distinct month grids to retain (~2 years of navigation). */
31
+ const MAX_ENTRIES = 32;
32
+ const cache = new Map();
33
+ /**
34
+ * `getMonthDays` memoized on its three primitive inputs.
35
+ *
36
+ * The returned weeks array is SHARED — treat it as read-only. Callers also get a
37
+ * stable identity for a given key, so it can be passed straight to `useMemo` as a
38
+ * dependency.
39
+ */
40
+ export function getCachedMonthDays({
41
+ month,
42
+ firstDayOfWeek,
43
+ consistentWeeks
44
+ }) {
45
+ const key = `${month}|${firstDayOfWeek}|${consistentWeeks ? 1 : 0}`;
46
+ const cached = cache.get(key);
47
+ if (cached) {
48
+ // Re-insert so the most recently used key is last, making the first map key
49
+ // the least recently used one for eviction below.
50
+ cache.delete(key);
51
+ cache.set(key, cached);
52
+ return cached;
53
+ }
54
+ const weeks = getMonthDays({
55
+ month,
56
+ firstDayOfWeek,
57
+ consistentWeeks
58
+ });
59
+ cache.set(key, weeks);
60
+ if (cache.size > MAX_ENTRIES) {
61
+ const oldest = cache.keys().next();
62
+ if (!oldest.done) {
63
+ cache.delete(oldest.value);
64
+ }
65
+ }
66
+ return weeks;
67
+ }
68
+ //# sourceMappingURL=month-days-cache.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["getMonthDays","MAX_ENTRIES","cache","Map","getCachedMonthDays","month","firstDayOfWeek","consistentWeeks","key","cached","get","delete","set","weeks","size","oldest","keys","next","done","value"],"sourceRoot":"../../../src","sources":["internal/month-days-cache.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA,SAASA,YAAY,QAAQ,UAAU;;AAEvC;AACA,MAAMC,WAAW,GAAG,EAAE;AAEtB,MAAMC,KAAK,GAAG,IAAIC,GAAG,CAA8B,CAAC;AAWpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,kBAAkBA,CAAC;EACjCC,KAAK;EACLC,cAAc;EACdC;AACoB,CAAC,EAAuB;EAC5C,MAAMC,GAAG,GAAG,GAAGH,KAAK,IAAIC,cAAc,IAAIC,eAAe,GAAG,CAAC,GAAG,CAAC,EAAE;EACnE,MAAME,MAAM,GAAGP,KAAK,CAACQ,GAAG,CAACF,GAAG,CAAC;EAE7B,IAAIC,MAAM,EAAE;IACV;IACA;IACAP,KAAK,CAACS,MAAM,CAACH,GAAG,CAAC;IACjBN,KAAK,CAACU,GAAG,CAACJ,GAAG,EAAEC,MAAM,CAAC;IACtB,OAAOA,MAAM;EACf;EAEA,MAAMI,KAAK,GAAGb,YAAY,CAAC;IAAEK,KAAK;IAAEC,cAAc;IAAEC;EAAgB,CAAC,CAAC;EACtEL,KAAK,CAACU,GAAG,CAACJ,GAAG,EAAEK,KAAK,CAAC;EAErB,IAAIX,KAAK,CAACY,IAAI,GAAGb,WAAW,EAAE;IAC5B,MAAMc,MAAM,GAAGb,KAAK,CAACc,IAAI,CAAC,CAAC,CAACC,IAAI,CAAC,CAAC;IAClC,IAAI,CAACF,MAAM,CAACG,IAAI,EAAE;MAChBhB,KAAK,CAACS,MAAM,CAACI,MAAM,CAACI,KAAK,CAAC;IAC5B;EACF;EAEA,OAAON,KAAK;AACd","ignoreList":[]}
@@ -23,7 +23,15 @@ export function getDateInTabOrder({
23
23
  if (selectedDate) {
24
24
  return selectedDate;
25
25
  }
26
- const currentDate = enabledDates.find(date => dayjs().isSame(date, "date"));
26
+
27
+ // `dayjs().isSame(date, "date")` inside the predicate built a FRESH "now"
28
+ // instance (plus dayjs' internal `startOf`/`endOf` clones) for every candidate
29
+ // — ~4 allocations × up to 42 dates, to answer a question whose left-hand side
30
+ // never changes. One formatted "today" string compares exactly instead:
31
+ // `dates` always comes from `getMonthDays`, which emits zero-padded
32
+ // `YYYY-MM-DD`, so string equality is equivalent to a day-granularity `isSame`.
33
+ const today = dayjs().format("YYYY-MM-DD");
34
+ const currentDate = enabledDates.find(date => date.slice(0, 10) === today);
27
35
  if (currentDate) {
28
36
  return currentDate;
29
37
  }
@@ -1 +1 @@
1
- {"version":3,"names":["dayjs","isAfterMinDate","isBeforeMaxDate","isSameMonth","getDateInTabOrder","dates","minDate","maxDate","getDayProps","excludeDate","hideOutsideDates","month","enabledDates","flat","filter","date","disabled","selectedDate","find","selected","currentDate","isSame"],"sourceRoot":"../../../../src","sources":["utils/get-date-in-tab-order/get-date-in-tab-order.ts"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AAIzB,SAASC,cAAc,QAAQ,wCAAwC;AACvE,SAASC,eAAe,QAAQ,0CAA0C;AAC1E,SAASC,WAAW,QAAQ,gCAAgC;AAmB5D;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,iBAAiBA,CAAC;EAChCC,KAAK;EACLC,OAAO;EACPC,OAAO;EACPC,WAAW;EACXC,WAAW;EACXC,gBAAgB;EAChBC;AACsB,CAAC,EAA+B;EACtD,MAAMC,YAAY,GAAGP,KAAK,CACvBQ,IAAI,CAAC,CAAC,CACNC,MAAM,CACJC,IAAI,IACHb,eAAe,CAACa,IAAI,EAAER,OAAO,CAAC,IAC9BN,cAAc,CAACc,IAAI,EAAET,OAAO,CAAC,IAC7B,CAACG,WAAW,GAAGM,IAAI,CAAC,IACpB,CAACP,WAAW,GAAGO,IAAI,CAAC,EAAEC,QAAQ,KAC7B,CAACN,gBAAgB,IAAIP,WAAW,CAACY,IAAI,EAAEJ,KAAK,CAAC,CAClD,CAAC;EAEH,MAAMM,YAAY,GAAGL,YAAY,CAACM,IAAI,CAAEH,IAAI,IAAKP,WAAW,GAAGO,IAAI,CAAC,EAAEI,QAAQ,CAAC;EAE/E,IAAIF,YAAY,EAAE;IAChB,OAAOA,YAAY;EACrB;EAEA,MAAMG,WAAW,GAAGR,YAAY,CAACM,IAAI,CAAEH,IAAI,IAAKf,KAAK,CAAC,CAAC,CAACqB,MAAM,CAACN,IAAI,EAAE,MAAM,CAAC,CAAC;EAE7E,IAAIK,WAAW,EAAE;IACf,OAAOA,WAAW;EACpB;EAEA,OAAOR,YAAY,CAAC,CAAC,CAAC;AACxB","ignoreList":[]}
1
+ {"version":3,"names":["dayjs","isAfterMinDate","isBeforeMaxDate","isSameMonth","getDateInTabOrder","dates","minDate","maxDate","getDayProps","excludeDate","hideOutsideDates","month","enabledDates","flat","filter","date","disabled","selectedDate","find","selected","today","format","currentDate","slice"],"sourceRoot":"../../../../src","sources":["utils/get-date-in-tab-order/get-date-in-tab-order.ts"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AAIzB,SAASC,cAAc,QAAQ,wCAAwC;AACvE,SAASC,eAAe,QAAQ,0CAA0C;AAC1E,SAASC,WAAW,QAAQ,gCAAgC;AA2B5D;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,iBAAiBA,CAAC;EAChCC,KAAK;EACLC,OAAO;EACPC,OAAO;EACPC,WAAW;EACXC,WAAW;EACXC,gBAAgB;EAChBC;AACsB,CAAC,EAA+B;EACtD,MAAMC,YAAY,GAAGP,KAAK,CACvBQ,IAAI,CAAC,CAAC,CACNC,MAAM,CACJC,IAAI,IACHb,eAAe,CAACa,IAAI,EAAER,OAAO,CAAC,IAC9BN,cAAc,CAACc,IAAI,EAAET,OAAO,CAAC,IAC7B,CAACG,WAAW,GAAGM,IAAI,CAAC,IACpB,CAACP,WAAW,GAAGO,IAAI,CAAC,EAAEC,QAAQ,KAC7B,CAACN,gBAAgB,IAAIP,WAAW,CAACY,IAAI,EAAEJ,KAAK,CAAC,CAClD,CAAC;EAEH,MAAMM,YAAY,GAAGL,YAAY,CAACM,IAAI,CAAEH,IAAI,IAAKP,WAAW,GAAGO,IAAI,CAAC,EAAEI,QAAQ,CAAC;EAE/E,IAAIF,YAAY,EAAE;IAChB,OAAOA,YAAY;EACrB;;EAEA;EACA;EACA;EACA;EACA;EACA;EACA,MAAMG,KAAK,GAAGpB,KAAK,CAAC,CAAC,CAACqB,MAAM,CAAC,YAAY,CAAC;EAC1C,MAAMC,WAAW,GAAGV,YAAY,CAACM,IAAI,CAAEH,IAAI,IAAKA,IAAI,CAACQ,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,KAAKH,KAAK,CAAC;EAE5E,IAAIE,WAAW,EAAE;IACf,OAAOA,WAAW;EACpB;EAEA,OAAOV,YAAY,CAAC,CAAC,CAAC;AACxB","ignoreList":[]}
@@ -1,11 +1,24 @@
1
1
  "use strict";
2
2
 
3
3
  import dayjs from "dayjs";
4
+ import { isCanonicalDateString } from "../../internal/date-string-fast-path";
4
5
  /**
5
6
  * Whether `date` is on or after `minDate` (no lower bound when `minDate` is
6
7
  * absent). Mirrors @mantine/dates `isAfterMinDate`.
8
+ *
9
+ * The lower-bound twin of `isBeforeMaxDate` — the dayjs spelling
10
+ * (`isAfter(minDate - 1 day, "day")`) is a day-granularity `>=`, exactly a
11
+ * lexicographic `>=` for canonical zero-padded `YYYY-MM-DD` strings. Same hot
12
+ * path (once per cell in `Month`, again in `getDateInTabOrder`), same fallback
13
+ * for non-canonical input.
7
14
  */
8
15
  export function isAfterMinDate(date, minDate) {
9
- return minDate ? dayjs(date).isAfter(dayjs(minDate).subtract(1, "day"), "day") : true;
16
+ if (!minDate) {
17
+ return true;
18
+ }
19
+ if (isCanonicalDateString(date) && isCanonicalDateString(minDate)) {
20
+ return date.slice(0, 10) >= minDate.slice(0, 10);
21
+ }
22
+ return dayjs(date).isAfter(dayjs(minDate).subtract(1, "day"), "day");
10
23
  }
11
24
  //# sourceMappingURL=is-after-min-date.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["dayjs","isAfterMinDate","date","minDate","isAfter","subtract"],"sourceRoot":"../../../../src","sources":["utils/is-after-min-date/is-after-min-date.ts"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AAIzB;AACA;AACA;AACA;AACA,OAAO,SAASC,cAAcA,CAC5BC,IAAqB,EACrBC,OAAoC,EAC3B;EACT,OAAOA,OAAO,GAAGH,KAAK,CAACE,IAAI,CAAC,CAACE,OAAO,CAACJ,KAAK,CAACG,OAAO,CAAC,CAACE,QAAQ,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,KAAK,CAAC,GAAG,IAAI;AACvF","ignoreList":[]}
1
+ {"version":3,"names":["dayjs","isCanonicalDateString","isAfterMinDate","date","minDate","slice","isAfter","subtract"],"sourceRoot":"../../../../src","sources":["utils/is-after-min-date/is-after-min-date.ts"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,qBAAqB,QAAQ,sCAAsC;AAG5E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,cAAcA,CAC5BC,IAAqB,EACrBC,OAAoC,EAC3B;EACT,IAAI,CAACA,OAAO,EAAE;IACZ,OAAO,IAAI;EACb;EAEA,IAAIH,qBAAqB,CAACE,IAAI,CAAC,IAAIF,qBAAqB,CAACG,OAAO,CAAC,EAAE;IACjE,OAAOD,IAAI,CAACE,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,IAAID,OAAO,CAACC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC;EAClD;EAEA,OAAOL,KAAK,CAACG,IAAI,CAAC,CAACG,OAAO,CAACN,KAAK,CAACI,OAAO,CAAC,CAACG,QAAQ,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,KAAK,CAAC;AACtE","ignoreList":[]}
@@ -1,11 +1,24 @@
1
1
  "use strict";
2
2
 
3
3
  import dayjs from "dayjs";
4
+ import { isCanonicalDateString } from "../../internal/date-string-fast-path";
4
5
  /**
5
6
  * Whether `date` is on or before `maxDate` (no upper bound when `maxDate` is
6
7
  * absent). Mirrors @mantine/dates `isBeforeMaxDate`.
8
+ *
9
+ * Called once per cell by `Month` and again by `getDateInTabOrder`. The dayjs
10
+ * spelling (`isBefore(maxDate + 1 day, "day")`) is a day-granularity `<=`, which
11
+ * for canonical zero-padded `YYYY-MM-DD` strings is exactly a lexicographic
12
+ * `<=` — same answer, no `add`, no clones, no allocations. Non-canonical input
13
+ * falls back to the original path.
7
14
  */
8
15
  export function isBeforeMaxDate(date, maxDate) {
9
- return maxDate ? dayjs(date).isBefore(dayjs(maxDate).add(1, "day"), "day") : true;
16
+ if (!maxDate) {
17
+ return true;
18
+ }
19
+ if (isCanonicalDateString(date) && isCanonicalDateString(maxDate)) {
20
+ return date.slice(0, 10) <= maxDate.slice(0, 10);
21
+ }
22
+ return dayjs(date).isBefore(dayjs(maxDate).add(1, "day"), "day");
10
23
  }
11
24
  //# sourceMappingURL=is-before-max-date.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["dayjs","isBeforeMaxDate","date","maxDate","isBefore","add"],"sourceRoot":"../../../../src","sources":["utils/is-before-max-date/is-before-max-date.ts"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AAIzB;AACA;AACA;AACA;AACA,OAAO,SAASC,eAAeA,CAC7BC,IAAqB,EACrBC,OAAoC,EAC3B;EACT,OAAOA,OAAO,GAAGH,KAAK,CAACE,IAAI,CAAC,CAACE,QAAQ,CAACJ,KAAK,CAACG,OAAO,CAAC,CAACE,GAAG,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,KAAK,CAAC,GAAG,IAAI;AACnF","ignoreList":[]}
1
+ {"version":3,"names":["dayjs","isCanonicalDateString","isBeforeMaxDate","date","maxDate","slice","isBefore","add"],"sourceRoot":"../../../../src","sources":["utils/is-before-max-date/is-before-max-date.ts"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,qBAAqB,QAAQ,sCAAsC;AAG5E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,eAAeA,CAC7BC,IAAqB,EACrBC,OAAoC,EAC3B;EACT,IAAI,CAACA,OAAO,EAAE;IACZ,OAAO,IAAI;EACb;EAEA,IAAIH,qBAAqB,CAACE,IAAI,CAAC,IAAIF,qBAAqB,CAACG,OAAO,CAAC,EAAE;IACjE,OAAOD,IAAI,CAACE,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,IAAID,OAAO,CAACC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC;EAClD;EAEA,OAAOL,KAAK,CAACG,IAAI,CAAC,CAACG,QAAQ,CAACN,KAAK,CAACI,OAAO,CAAC,CAACG,GAAG,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,KAAK,CAAC;AAClE","ignoreList":[]}
@@ -1,8 +1,24 @@
1
1
  "use strict";
2
2
 
3
3
  import dayjs from "dayjs";
4
- /** Whether two dates fall in the same calendar month. Mirrors @mantine/dates `isSameMonth`. */
4
+ import { isCanonicalYearMonthString } from "../../internal/date-string-fast-path";
5
+ /**
6
+ * Whether two dates fall in the same calendar month. Mirrors @mantine/dates
7
+ * `isSameMonth`.
8
+ *
9
+ * This is one of the hottest comparisons in the package — `Month` calls it once
10
+ * per cell (42×) to decide `outside`, and `getDateInTabOrder` calls it again per
11
+ * cell whenever `hideOutsideDates` is on (which `DatePicker` enables
12
+ * automatically for multiple columns). The dayjs spelling cost 2 instances plus
13
+ * 2 `format("YYYY-MM")` calls (locale lookup + regex replace) EACH TIME; for the
14
+ * canonical `YYYY-MM-DD` strings that are the actual inputs, comparing the
15
+ * `YYYY-MM` prefix is exact and allocates nothing. `Date` inputs (and any
16
+ * non-canonical string) keep the original dayjs path.
17
+ */
5
18
  export function isSameMonth(date, comparison) {
19
+ if (isCanonicalYearMonthString(date) && isCanonicalYearMonthString(comparison)) {
20
+ return date.slice(0, 7) === comparison.slice(0, 7);
21
+ }
6
22
  return dayjs(date).format("YYYY-MM") === dayjs(comparison).format("YYYY-MM");
7
23
  }
8
24
  //# sourceMappingURL=is-same-month.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["dayjs","isSameMonth","date","comparison","format"],"sourceRoot":"../../../../src","sources":["utils/is-same-month/is-same-month.ts"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AAIzB;AACA,OAAO,SAASC,WAAWA,CACzBC,IAA4B,EAC5BC,UAAkC,EACzB;EACT,OAAOH,KAAK,CAACE,IAAI,CAAC,CAACE,MAAM,CAAC,SAAS,CAAC,KAAKJ,KAAK,CAACG,UAAU,CAAC,CAACC,MAAM,CAAC,SAAS,CAAC;AAC9E","ignoreList":[]}
1
+ {"version":3,"names":["dayjs","isCanonicalYearMonthString","isSameMonth","date","comparison","slice","format"],"sourceRoot":"../../../../src","sources":["utils/is-same-month/is-same-month.ts"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,0BAA0B,QAAQ,sCAAsC;AAGjF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,WAAWA,CACzBC,IAA4B,EAC5BC,UAAkC,EACzB;EACT,IAAIH,0BAA0B,CAACE,IAAI,CAAC,IAAIF,0BAA0B,CAACG,UAAU,CAAC,EAAE;IAC9E,OAAOD,IAAI,CAACE,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,KAAKD,UAAU,CAACC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC;EACpD;EAEA,OAAOL,KAAK,CAACG,IAAI,CAAC,CAACG,MAAM,CAAC,SAAS,CAAC,KAAKN,KAAK,CAACI,UAAU,CAAC,CAACE,MAAM,CAAC,SAAS,CAAC;AAC9E","ignoreList":[]}
@@ -69,6 +69,6 @@ export declare function pickCalendarProps<T extends Partial<CalendarProps>>(prop
69
69
  maxDate: string | Date | undefined;
70
70
  locale: string | undefined;
71
71
  };
72
- others: Omit<T, "date" | "level" | "nextIcon" | "previousIcon" | "locale" | "firstDayOfWeek" | "weekendDays" | "renderDay" | "highlightToday" | "minDate" | "maxDate" | "getDayProps" | "excludeDate" | "hideOutsideDates" | "nextLabel" | "previousLabel" | "headerControlsOrder" | "getYearControlProps" | "yearsListFormat" | "withCellSpacing" | "decadeLabelFormat" | "numberOfColumns" | "weekdayFormat" | "withWeekNumbers" | "hideWeekdays" | "getDayAriaLabel" | "monthLabelFormat" | "getMonthControlProps" | "monthsListFormat" | "yearLabelFormat" | "defaultLevel" | "onLevelChange" | "onYearSelect" | "onMonthSelect" | "onYearMouseEnter" | "onMonthMouseEnter" | "maxLevel" | "minLevel" | "__updateDateOnYearSelect" | "__updateDateOnMonthSelect" | "__setDateRef" | "__setLevelRef" | "defaultDate" | "onDateChange" | "columnsToScroll" | "ariaLabels" | "onNextDecade" | "onPreviousDecade" | "onNextYear" | "onPreviousYear" | "onNextMonth" | "onPreviousMonth">;
72
+ others: Omit<T, "date" | "locale" | "firstDayOfWeek" | "weekendDays" | "renderDay" | "highlightToday" | "minDate" | "maxDate" | "getDayProps" | "excludeDate" | "hideOutsideDates" | "level" | "nextIcon" | "previousIcon" | "nextLabel" | "previousLabel" | "headerControlsOrder" | "getYearControlProps" | "yearsListFormat" | "withCellSpacing" | "decadeLabelFormat" | "numberOfColumns" | "weekdayFormat" | "withWeekNumbers" | "hideWeekdays" | "getDayAriaLabel" | "monthLabelFormat" | "getMonthControlProps" | "monthsListFormat" | "yearLabelFormat" | "defaultLevel" | "onLevelChange" | "onYearSelect" | "onMonthSelect" | "onYearMouseEnter" | "onMonthMouseEnter" | "maxLevel" | "minLevel" | "__updateDateOnYearSelect" | "__updateDateOnMonthSelect" | "__setDateRef" | "__setLevelRef" | "defaultDate" | "onDateChange" | "columnsToScroll" | "ariaLabels" | "onNextDecade" | "onPreviousDecade" | "onNextYear" | "onPreviousYear" | "onNextMonth" | "onPreviousMonth">;
73
73
  };
74
74
  //# sourceMappingURL=pick-calendar-props.d.ts.map
@@ -8,34 +8,34 @@ declare const CalendarHeaderFrame: import("@tamagui/web").TamaguiComponent<impor
8
8
  }, import("@tamagui/web").StaticConfigPublic>;
9
9
  /** Prev/next square control — chevron button. */
10
10
  declare const CalendarHeaderControl: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
11
- size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
12
11
  disabled?: boolean | undefined;
13
12
  shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
13
+ size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
14
14
  }, import("@tamagui/web").StaticConfigPublic>;
15
15
  /** Level (label) control — flexes to fill, switches to a static `div` at the top level. */
16
16
  declare const CalendarHeaderLevel: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
17
- size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
18
- static?: boolean | undefined;
19
17
  disabled?: boolean | undefined;
20
18
  shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
19
+ size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
20
+ static?: boolean | undefined;
21
21
  }, import("@tamagui/web").StaticConfigPublic>;
22
22
  /** Level label text — capitalized, shares `size` via context. */
23
23
  declare const CalendarHeaderLevelLabel: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/core").RNTamaguiTextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
24
24
  size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
25
- inline?: boolean | undefined;
26
- inherit?: boolean | undefined;
27
25
  span?: boolean | undefined;
26
+ inherit?: boolean | undefined;
28
27
  lineClamp?: number | undefined;
29
28
  truncate?: boolean | "end" | "start" | undefined;
29
+ inline?: boolean | undefined;
30
30
  }, import("@tamagui/web").StaticConfigPublic>;
31
31
  /** Default chevron glyph — shares `size` via context. */
32
32
  declare const CalendarHeaderIcon: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/core").RNTamaguiTextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
33
33
  size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
34
- inline?: boolean | undefined;
35
- inherit?: boolean | undefined;
36
34
  span?: boolean | undefined;
35
+ inherit?: boolean | undefined;
37
36
  lineClamp?: number | undefined;
38
37
  truncate?: boolean | "end" | "start" | undefined;
38
+ inline?: boolean | undefined;
39
39
  }, import("@tamagui/web").StaticConfigPublic>;
40
40
  type CalendarHeaderFrameProps = GetProps<typeof CalendarHeaderFrame>;
41
41
  /** Which header controls to render, and in what order. */
@@ -122,34 +122,34 @@ export declare const CalendarHeader: React.ForwardRefExoticComponent<Omit<import
122
122
  }, import("@tamagui/web").StaticConfigPublic>;
123
123
  /** A prev/next square chevron control. */
124
124
  Control: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
125
- size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
126
125
  disabled?: boolean | undefined;
127
126
  shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
127
+ size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
128
128
  }, import("@tamagui/web").StaticConfigPublic>;
129
129
  /** The level (label) control. */
130
130
  Level: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
131
- size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
132
- static?: boolean | undefined;
133
131
  disabled?: boolean | undefined;
134
132
  shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
133
+ size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
134
+ static?: boolean | undefined;
135
135
  }, import("@tamagui/web").StaticConfigPublic>;
136
136
  /** The level label text. */
137
137
  LevelLabel: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/core").RNTamaguiTextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
138
138
  size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
139
- inline?: boolean | undefined;
140
- inherit?: boolean | undefined;
141
139
  span?: boolean | undefined;
140
+ inherit?: boolean | undefined;
142
141
  lineClamp?: number | undefined;
143
142
  truncate?: boolean | "end" | "start" | undefined;
143
+ inline?: boolean | undefined;
144
144
  }, import("@tamagui/web").StaticConfigPublic>;
145
145
  /** The default chevron glyph. */
146
146
  Icon: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/core").RNTamaguiTextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
147
147
  size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
148
- inline?: boolean | undefined;
149
- inherit?: boolean | undefined;
150
148
  span?: boolean | undefined;
149
+ inherit?: boolean | undefined;
151
150
  lineClamp?: number | undefined;
152
151
  truncate?: boolean | "end" | "start" | undefined;
152
+ inline?: boolean | undefined;
153
153
  }, import("@tamagui/web").StaticConfigPublic>;
154
154
  };
155
155
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"DatesProvider.d.ts","sourceRoot":"","sources":["../../../src/DatesProvider/DatesProvider.tsx"],"names":[],"mappings":"A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AAE,MAAM,CAAC;IACvB,iEAAiE;IACjE,eAAe,EAAE,OAAO,CAAC;CAC1B;AAED,2DAA2D;AAC3D,MAAM,MAAM,qBAAqB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;AAEhE;;;;;GAKG;AACH,eAAO,MAAM,+BAA+B,EAAE,kBAM7C,CAAC;AAEF,eAAO,MAAM,oBAAoB,6CAEhC,CAAC;AAEF,MAAM,WAAW,kBAAkB;IACjC,qGAAqG;IACrG,QAAQ,EAAE,qBAAqB,CAAC;IAChC,sEAAsE;IACtE,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,kBAAkB,+BA4BvE;yBA5Be,aAAa"}
@@ -22,17 +22,17 @@ export type RenderDay = (date: DateStringValue) => React.ReactNode;
22
22
  * on background.
23
23
  */
24
24
  declare const DayFrame: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
25
- size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
26
- static?: boolean | undefined;
27
25
  disabled?: boolean | undefined;
28
26
  shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
29
- hidden?: boolean | undefined;
27
+ size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
30
28
  selected?: boolean | undefined;
31
- outside?: boolean | undefined;
32
29
  fullWidth?: boolean | undefined;
33
30
  inRange?: boolean | undefined;
34
31
  firstInRange?: boolean | undefined;
35
32
  lastInRange?: boolean | undefined;
33
+ static?: boolean | undefined;
34
+ hidden?: boolean | undefined;
35
+ outside?: boolean | undefined;
36
36
  weekend?: boolean | undefined;
37
37
  today?: boolean | undefined;
38
38
  }, import("@tamagui/web").StaticConfigPublic>;
@@ -70,101 +70,101 @@ export interface DayProps extends Omit<DayFrameProps, "size" | "outside" | "week
70
70
  locale?: string;
71
71
  }
72
72
  export declare const Day: React.ForwardRefExoticComponent<Omit<import("@tamagui/web").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
73
- size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
74
- static?: boolean | undefined;
75
73
  disabled?: boolean | undefined;
76
74
  shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
77
- hidden?: boolean | undefined;
75
+ size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
78
76
  selected?: boolean | undefined;
79
- outside?: boolean | undefined;
80
77
  fullWidth?: boolean | undefined;
81
78
  inRange?: boolean | undefined;
82
79
  firstInRange?: boolean | undefined;
83
80
  lastInRange?: boolean | undefined;
81
+ static?: boolean | undefined;
82
+ hidden?: boolean | undefined;
83
+ outside?: boolean | undefined;
84
84
  weekend?: boolean | undefined;
85
85
  today?: boolean | undefined;
86
86
  }>, keyof DayProps> & DayProps & React.RefAttributes<import("@tamagui/web").TamaguiElement>> & import("@tamagui/web").StaticComponentObject<Omit<import("@tamagui/web").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
87
- size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
88
- static?: boolean | undefined;
89
87
  disabled?: boolean | undefined;
90
88
  shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
91
- hidden?: boolean | undefined;
89
+ size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
92
90
  selected?: boolean | undefined;
93
- outside?: boolean | undefined;
94
91
  fullWidth?: boolean | undefined;
95
92
  inRange?: boolean | undefined;
96
93
  firstInRange?: boolean | undefined;
97
94
  lastInRange?: boolean | undefined;
95
+ static?: boolean | undefined;
96
+ hidden?: boolean | undefined;
97
+ outside?: boolean | undefined;
98
98
  weekend?: boolean | undefined;
99
99
  today?: boolean | undefined;
100
100
  }>, keyof DayProps> & DayProps, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps & DayProps, import("@tamagui/web").StackStyleBase, {
101
- size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
102
- static?: boolean | undefined;
103
101
  disabled?: boolean | undefined;
104
102
  shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
105
- hidden?: boolean | undefined;
103
+ size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
106
104
  selected?: boolean | undefined;
107
- outside?: boolean | undefined;
108
105
  fullWidth?: boolean | undefined;
109
106
  inRange?: boolean | undefined;
110
107
  firstInRange?: boolean | undefined;
111
108
  lastInRange?: boolean | undefined;
109
+ static?: boolean | undefined;
110
+ hidden?: boolean | undefined;
111
+ outside?: boolean | undefined;
112
112
  weekend?: boolean | undefined;
113
113
  today?: boolean | undefined;
114
114
  }, import("@tamagui/web").StaticConfigPublic> & Omit<import("@tamagui/web").StaticConfigPublic, "staticConfig" | "styleable"> & {
115
115
  __tama: [Omit<import("@tamagui/web").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
116
- size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
117
- static?: boolean | undefined;
118
116
  disabled?: boolean | undefined;
119
117
  shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
120
- hidden?: boolean | undefined;
118
+ size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
121
119
  selected?: boolean | undefined;
122
- outside?: boolean | undefined;
123
120
  fullWidth?: boolean | undefined;
124
121
  inRange?: boolean | undefined;
125
122
  firstInRange?: boolean | undefined;
126
123
  lastInRange?: boolean | undefined;
124
+ static?: boolean | undefined;
125
+ hidden?: boolean | undefined;
126
+ outside?: boolean | undefined;
127
127
  weekend?: boolean | undefined;
128
128
  today?: boolean | undefined;
129
129
  }>, keyof DayProps> & DayProps, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps & DayProps, import("@tamagui/web").StackStyleBase, {
130
- size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
131
- static?: boolean | undefined;
132
130
  disabled?: boolean | undefined;
133
131
  shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
134
- hidden?: boolean | undefined;
132
+ size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
135
133
  selected?: boolean | undefined;
136
- outside?: boolean | undefined;
137
134
  fullWidth?: boolean | undefined;
138
135
  inRange?: boolean | undefined;
139
136
  firstInRange?: boolean | undefined;
140
137
  lastInRange?: boolean | undefined;
138
+ static?: boolean | undefined;
139
+ hidden?: boolean | undefined;
140
+ outside?: boolean | undefined;
141
141
  weekend?: boolean | undefined;
142
142
  today?: boolean | undefined;
143
143
  }, import("@tamagui/web").StaticConfigPublic];
144
144
  } & {
145
145
  Frame: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
146
- size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
147
- static?: boolean | undefined;
148
146
  disabled?: boolean | undefined;
149
147
  shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
150
- hidden?: boolean | undefined;
148
+ size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
151
149
  selected?: boolean | undefined;
152
- outside?: boolean | undefined;
153
150
  fullWidth?: boolean | undefined;
154
151
  inRange?: boolean | undefined;
155
152
  firstInRange?: boolean | undefined;
156
153
  lastInRange?: boolean | undefined;
154
+ static?: boolean | undefined;
155
+ hidden?: boolean | undefined;
156
+ outside?: boolean | undefined;
157
157
  weekend?: boolean | undefined;
158
158
  today?: boolean | undefined;
159
159
  }, import("@tamagui/web").StaticConfigPublic>;
160
160
  Label: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/core").RNTamaguiTextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
161
161
  size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
162
- inline?: boolean | undefined;
163
- inherit?: boolean | undefined;
164
162
  span?: boolean | undefined;
163
+ selected?: boolean | undefined;
164
+ inherit?: boolean | undefined;
165
165
  lineClamp?: number | undefined;
166
166
  truncate?: boolean | "end" | "start" | undefined;
167
- selected?: boolean | undefined;
167
+ inline?: boolean | undefined;
168
168
  weekend?: boolean | undefined;
169
169
  }, import("@tamagui/web").StaticConfigPublic>;
170
170
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Day.d.ts","sourceRoot":"","sources":["../../../src/Day/Day.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAuB,KAAK,QAAQ,EAAgC,MAAM,cAAc,CAAC;AAEhG,OAAO,EAAE,KAAK,YAAY,EAAyB,MAAM,iBAAiB,CAAC;AAI3E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEhD,2DAA2D;AAC3D,KAAK,OAAO,GAAG,YAAY,CAAC;AAE5B,sEAAsE;AACtE,MAAM,MAAM,SAAS,GAAG,CAAC,IAAI,EAAE,eAAe,KAAK,KAAK,CAAC,SAAS,CAAC;AAoCnE;;;;;;;;;;;;;;GAcG;AACH,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;6CAiGZ,CAAC;AAmCH,KAAK,aAAa,GAAG,QAAQ,CAAC,OAAO,QAAQ,CAAC,CAAC;AAE/C,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