@prefecthq/prefab-ui 0.10.1 → 0.11.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.
@@ -1,22 +1,22 @@
1
- import { j as A, c as Y, b as lt, B as St, P as En, d as Fn, e as In } from "./embed-DEzwqwWv.mjs";
2
- import { R as m, a as x, h as Bn, f as Hn, i as jn, k as An } from "./icons-9tLoEEsf.mjs";
3
- const Ct = 6048e5, qn = 864e5, pt = 6e4, xt = 36e5, ht = Symbol.for("constructDateFrom");
4
- function H(e, t) {
1
+ import { j as A, c as Y, b as lt, B as En, P as Fn, d as In, e as Bn } from "./embed-B1s8dKzJ.mjs";
2
+ import { R as m, a as x, f as jn, e as Hn, h as St, j as An } from "./icons-CImNZgDa.mjs";
3
+ const pt = 6048e5, qn = 864e5, Ct = 6e4, xt = 36e5, ht = Symbol.for("constructDateFrom");
4
+ function j(e, t) {
5
5
  return typeof e == "function" ? e(t) : e && typeof e == "object" && ht in e ? e[ht](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
6
6
  }
7
7
  function P(e, t) {
8
- return H(t || e, e);
8
+ return j(t || e, e);
9
9
  }
10
10
  function Yt(e, t, n) {
11
11
  const r = P(e, n == null ? void 0 : n.in);
12
- return isNaN(t) ? H(e, NaN) : (t && r.setDate(r.getDate() + t), r);
12
+ return isNaN(t) ? j(e, NaN) : (t && r.setDate(r.getDate() + t), r);
13
13
  }
14
14
  function Tt(e, t, n) {
15
15
  const r = P(e, n == null ? void 0 : n.in);
16
- if (isNaN(t)) return H(e, NaN);
16
+ if (isNaN(t)) return j(e, NaN);
17
17
  if (!t)
18
18
  return r;
19
- const a = r.getDate(), o = H(e, r.getTime());
19
+ const a = r.getDate(), o = j(e, r.getTime());
20
20
  o.setMonth(r.getMonth() + t + 1, 0);
21
21
  const s = o.getDate();
22
22
  return a >= s ? o : (r.setFullYear(
@@ -38,9 +38,9 @@ function ve(e, t) {
38
38
  return me(e, { ...t, weekStartsOn: 1 });
39
39
  }
40
40
  function _t(e, t) {
41
- const n = P(e, t == null ? void 0 : t.in), r = n.getFullYear(), a = H(n, 0);
41
+ const n = P(e, t == null ? void 0 : t.in), r = n.getFullYear(), a = j(n, 0);
42
42
  a.setFullYear(r + 1, 0, 4), a.setHours(0, 0, 0, 0);
43
- const o = ve(a), s = H(n, 0);
43
+ const o = ve(a), s = j(n, 0);
44
44
  s.setFullYear(r, 0, 4), s.setHours(0, 0, 0, 0);
45
45
  const c = ve(s);
46
46
  return n.getTime() >= o.getTime() ? r + 1 : n.getTime() >= c.getTime() ? r : r - 1;
@@ -60,7 +60,7 @@ function mt(e) {
60
60
  return n.setUTCFullYear(t.getFullYear()), +e - +n;
61
61
  }
62
62
  function ye(e, ...t) {
63
- const n = H.bind(
63
+ const n = j.bind(
64
64
  null,
65
65
  t.find((r) => typeof r == "object")
66
66
  );
@@ -79,7 +79,7 @@ function Ze(e, t, n) {
79
79
  return Math.round((c - i) / qn);
80
80
  }
81
81
  function $n(e, t) {
82
- const n = _t(e, t), r = H(e, 0);
82
+ const n = _t(e, t), r = j(e, 0);
83
83
  return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), ve(r);
84
84
  }
85
85
  function Rn(e, t, n) {
@@ -91,18 +91,18 @@ function Gn(e, t, n) {
91
91
  function Un(e, t) {
92
92
  let n, r = t == null ? void 0 : t.in;
93
93
  return e.forEach((a) => {
94
- !r && typeof a == "object" && (r = H.bind(null, a));
94
+ !r && typeof a == "object" && (r = j.bind(null, a));
95
95
  const o = P(a, r);
96
96
  (!n || n < o || isNaN(+o)) && (n = o);
97
- }), H(r, n || NaN);
97
+ }), j(r, n || NaN);
98
98
  }
99
99
  function Qn(e, t) {
100
100
  let n, r = t == null ? void 0 : t.in;
101
101
  return e.forEach((a) => {
102
- !r && typeof a == "object" && (r = H.bind(null, a));
102
+ !r && typeof a == "object" && (r = j.bind(null, a));
103
103
  const o = P(a, r);
104
104
  (!n || n > o || isNaN(+o)) && (n = o);
105
- }), H(r, n || NaN);
105
+ }), j(r, n || NaN);
106
106
  }
107
107
  function Xn(e, t, n) {
108
108
  const [r, a] = ye(
@@ -142,7 +142,7 @@ function Zn(e, t) {
142
142
  let c = 1;
143
143
  const i = [];
144
144
  for (; +s <= o; )
145
- i.push(H(n, s)), s.setMonth(s.getMonth() + c);
145
+ i.push(j(n, s)), s.setMonth(s.getMonth() + c);
146
146
  return a ? i.reverse() : i;
147
147
  }
148
148
  function Kn(e, t) {
@@ -165,7 +165,7 @@ function er(e, t) {
165
165
  let c = 1;
166
166
  const i = [];
167
167
  for (; +s <= o; )
168
- i.push(H(n, s)), s.setFullYear(s.getFullYear() + c);
168
+ i.push(j(n, s)), s.setFullYear(s.getFullYear() + c);
169
169
  return a ? i.reverse() : i;
170
170
  }
171
171
  function Bt(e, t) {
@@ -503,11 +503,11 @@ const kr = /^(\d+)(th|st|nd|rd)?/i, Or = /\d+/i, vr = {
503
503
  wide: /^[1234](th|st|nd|rd)? quarter/i
504
504
  }, Sr = {
505
505
  any: [/1/i, /2/i, /3/i, /4/i]
506
- }, Cr = {
506
+ }, pr = {
507
507
  narrow: /^[jfmasond]/i,
508
508
  abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
509
509
  wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
510
- }, pr = {
510
+ }, Cr = {
511
511
  narrow: [
512
512
  /^j/i,
513
513
  /^f/i,
@@ -578,9 +578,9 @@ const kr = /^(\d+)(th|st|nd|rd)?/i, Or = /\d+/i, vr = {
578
578
  valueCallback: (e) => e + 1
579
579
  }),
580
580
  month: Me({
581
- matchPatterns: Cr,
581
+ matchPatterns: pr,
582
582
  defaultMatchWidth: "wide",
583
- parsePatterns: pr,
583
+ parsePatterns: Cr,
584
584
  defaultParseWidth: "any"
585
585
  }),
586
586
  day: Me({
@@ -613,25 +613,25 @@ function Er(e, t) {
613
613
  }
614
614
  function Ke(e, t) {
615
615
  const n = P(e, t == null ? void 0 : t.in), r = +ve(n) - +$n(n);
616
- return Math.round(r / Ct) + 1;
616
+ return Math.round(r / pt) + 1;
617
617
  }
618
- function Ht(e, t) {
618
+ function jt(e, t) {
619
619
  var d, f, h, g;
620
- const n = P(e, t == null ? void 0 : t.in), r = n.getFullYear(), a = Ne(), o = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((f = (d = t == null ? void 0 : t.locale) == null ? void 0 : d.options) == null ? void 0 : f.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((g = (h = a.locale) == null ? void 0 : h.options) == null ? void 0 : g.firstWeekContainsDate) ?? 1, s = H((t == null ? void 0 : t.in) || e, 0);
620
+ const n = P(e, t == null ? void 0 : t.in), r = n.getFullYear(), a = Ne(), o = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((f = (d = t == null ? void 0 : t.locale) == null ? void 0 : d.options) == null ? void 0 : f.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((g = (h = a.locale) == null ? void 0 : h.options) == null ? void 0 : g.firstWeekContainsDate) ?? 1, s = j((t == null ? void 0 : t.in) || e, 0);
621
621
  s.setFullYear(r + 1, 0, o), s.setHours(0, 0, 0, 0);
622
- const c = me(s, t), i = H((t == null ? void 0 : t.in) || e, 0);
622
+ const c = me(s, t), i = j((t == null ? void 0 : t.in) || e, 0);
623
623
  i.setFullYear(r, 0, o), i.setHours(0, 0, 0, 0);
624
624
  const u = me(i, t);
625
625
  return +n >= +c ? r + 1 : +n >= +u ? r : r - 1;
626
626
  }
627
627
  function Fr(e, t) {
628
628
  var c, i, u, d;
629
- const n = Ne(), r = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((i = (c = t == null ? void 0 : t.locale) == null ? void 0 : c.options) == null ? void 0 : i.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((d = (u = n.locale) == null ? void 0 : u.options) == null ? void 0 : d.firstWeekContainsDate) ?? 1, a = Ht(e, t), o = H((t == null ? void 0 : t.in) || e, 0);
629
+ const n = Ne(), r = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((i = (c = t == null ? void 0 : t.locale) == null ? void 0 : c.options) == null ? void 0 : i.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((d = (u = n.locale) == null ? void 0 : u.options) == null ? void 0 : d.firstWeekContainsDate) ?? 1, a = jt(e, t), o = j((t == null ? void 0 : t.in) || e, 0);
630
630
  return o.setFullYear(a, 0, r), o.setHours(0, 0, 0, 0), me(o, t);
631
631
  }
632
632
  function Le(e, t) {
633
633
  const n = P(e, t == null ? void 0 : t.in), r = +me(n, t) - +Fr(n, t);
634
- return Math.round(r / Ct) + 1;
634
+ return Math.round(r / pt) + 1;
635
635
  }
636
636
  function E(e, t) {
637
637
  const n = e < 0 ? "-" : "", r = Math.abs(e).toString().padStart(t, "0");
@@ -727,7 +727,7 @@ const se = {
727
727
  },
728
728
  // Local week-numbering year
729
729
  Y: function(e, t, n, r) {
730
- const a = Ht(e, r), o = a > 0 ? a : 1 - a;
730
+ const a = jt(e, r), o = a > 0 ? a : 1 - a;
731
731
  if (t === "YY") {
732
732
  const s = o % 100;
733
733
  return E(s, 2);
@@ -1276,7 +1276,7 @@ const bt = (e, t) => {
1276
1276
  default:
1277
1277
  return t.date({ width: "full" });
1278
1278
  }
1279
- }, jt = (e, t) => {
1279
+ }, Ht = (e, t) => {
1280
1280
  switch (e) {
1281
1281
  case "p":
1282
1282
  return t.time({ width: "short" });
@@ -1308,16 +1308,16 @@ const bt = (e, t) => {
1308
1308
  o = t.dateTime({ width: "full" });
1309
1309
  break;
1310
1310
  }
1311
- return o.replace("{{date}}", bt(r, t)).replace("{{time}}", jt(a, t));
1311
+ return o.replace("{{date}}", bt(r, t)).replace("{{time}}", Ht(a, t));
1312
1312
  }, Br = {
1313
- p: jt,
1313
+ p: Ht,
1314
1314
  P: Ir
1315
- }, Hr = /^D+$/, jr = /^Y+$/, Ar = ["D", "DD", "YY", "YYYY"];
1315
+ }, jr = /^D+$/, Hr = /^Y+$/, Ar = ["D", "DD", "YY", "YYYY"];
1316
1316
  function qr(e) {
1317
- return Hr.test(e);
1317
+ return jr.test(e);
1318
1318
  }
1319
1319
  function zr(e) {
1320
- return jr.test(e);
1320
+ return Hr.test(e);
1321
1321
  }
1322
1322
  function $r(e, t, n) {
1323
1323
  const r = Rr(e, t, n);
@@ -1336,8 +1336,8 @@ function he(e, t, n) {
1336
1336
  let i = t.match(Ur).map((O) => {
1337
1337
  const y = O[0];
1338
1338
  if (y === "p" || y === "P") {
1339
- const C = Br[y];
1340
- return C(O, a.formatLong);
1339
+ const p = Br[y];
1340
+ return p(O, a.formatLong);
1341
1341
  }
1342
1342
  return O;
1343
1343
  }).join("").match(Gr).map((O) => {
@@ -1364,8 +1364,8 @@ function he(e, t, n) {
1364
1364
  if (!O.isToken) return O.value;
1365
1365
  const y = O.value;
1366
1366
  (!(n != null && n.useAdditionalWeekYearTokens) && zr(y) || !(n != null && n.useAdditionalDayOfYearTokens) && qr(y)) && $r(y, t, String(e));
1367
- const C = yt[y[0]];
1368
- return C(c, y, a.localize, u);
1367
+ const p = yt[y[0]];
1368
+ return p(c, y, a.localize, u);
1369
1369
  }).join("");
1370
1370
  }
1371
1371
  function Jr(e) {
@@ -1373,7 +1373,7 @@ function Jr(e) {
1373
1373
  return t ? t[1].replace(Xr, "'") : e;
1374
1374
  }
1375
1375
  function Zr(e, t) {
1376
- const n = P(e, t == null ? void 0 : t.in), r = n.getFullYear(), a = n.getMonth(), o = H(n, 0);
1376
+ const n = P(e, t == null ? void 0 : t.in), r = n.getFullYear(), a = n.getMonth(), o = j(n, 0);
1377
1377
  return o.setFullYear(r, a + 1, 0), o.setHours(0, 0, 0, 0), o.getDate();
1378
1378
  }
1379
1379
  function Kr(e, t) {
@@ -1405,7 +1405,7 @@ function ra(e, t, n) {
1405
1405
  return r.getFullYear() === a.getFullYear();
1406
1406
  }
1407
1407
  function ke(e, t) {
1408
- const n = () => H(t == null ? void 0 : t.in, NaN), a = ia(e);
1408
+ const n = () => j(t == null ? void 0 : t.in, NaN), a = ia(e);
1409
1409
  let o;
1410
1410
  if (a.date) {
1411
1411
  const u = ca(a.date, 2);
@@ -1482,7 +1482,7 @@ function da(e) {
1482
1482
  const t = e.match(oa);
1483
1483
  if (!t) return NaN;
1484
1484
  const n = Re(t[1]), r = Re(t[2]), a = Re(t[3]);
1485
- return wa(n, r, a) ? n * xt + r * pt + a * 1e3 : NaN;
1485
+ return wa(n, r, a) ? n * xt + r * Ct + a * 1e3 : NaN;
1486
1486
  }
1487
1487
  function Re(e) {
1488
1488
  return e && parseFloat(e.replace(",", ".")) || 0;
@@ -1492,7 +1492,7 @@ function fa(e) {
1492
1492
  const t = e.match(sa);
1493
1493
  if (!t) return 0;
1494
1494
  const n = t[1] === "+" ? -1 : 1, r = parseInt(t[2]), a = t[3] && parseInt(t[3]) || 0;
1495
- return ba(r, a) ? n * (r * xt + a * pt) : NaN;
1495
+ return ba(r, a) ? n * (r * xt + a * Ct) : NaN;
1496
1496
  }
1497
1497
  function la(e, t, n) {
1498
1498
  const r = /* @__PURE__ */ new Date(0);
@@ -1520,14 +1520,14 @@ function ba(e, t) {
1520
1520
  return t >= 0 && t <= 59;
1521
1521
  }
1522
1522
  function Ma(e, t, n) {
1523
- const r = P(e, n == null ? void 0 : n.in), a = r.getFullYear(), o = r.getDate(), s = H(e, 0);
1523
+ const r = P(e, n == null ? void 0 : n.in), a = r.getFullYear(), o = r.getDate(), s = j(e, 0);
1524
1524
  s.setFullYear(a, t, 15), s.setHours(0, 0, 0, 0);
1525
1525
  const c = Zr(s);
1526
1526
  return r.setMonth(t, Math.min(o, c)), r;
1527
1527
  }
1528
1528
  function Da(e, t, n) {
1529
1529
  const r = P(e, n == null ? void 0 : n.in);
1530
- return isNaN(+r) ? H(e, NaN) : (r.setFullYear(t), r);
1530
+ return isNaN(+r) ? j(e, NaN) : (r.setFullYear(t), r);
1531
1531
  }
1532
1532
  function ka(e, t, n = "long") {
1533
1533
  return new Intl.DateTimeFormat("en-US", {
@@ -1617,8 +1617,8 @@ function qt(e) {
1617
1617
  const h = ce(e.timeZone, e), g = h > 0 ? Math.floor(h) : Math.ceil(h), N = -(/* @__PURE__ */ new Date(+e)).getTimezoneOffset() - g, k = g !== n, M = N - i;
1618
1618
  if (k && M) {
1619
1619
  Date.prototype.setUTCMinutes.call(e, Date.prototype.getUTCMinutes.call(e) + M);
1620
- const O = ce(e.timeZone, e), y = O > 0 ? Math.floor(O) : Math.ceil(O), C = g - y;
1621
- C && (e.internal.setUTCMinutes(e.internal.getUTCMinutes() + C), Date.prototype.setUTCMinutes.call(e, Date.prototype.getUTCMinutes.call(e) + C));
1620
+ const O = ce(e.timeZone, e), y = O > 0 ? Math.floor(O) : Math.ceil(O), p = g - y;
1621
+ p && (e.internal.setUTCMinutes(e.internal.getUTCMinutes() + p), Date.prototype.setUTCMinutes.call(e, Date.prototype.getUTCMinutes.call(e) + p));
1622
1622
  }
1623
1623
  }
1624
1624
  class q extends L {
@@ -1948,12 +1948,12 @@ class Rt {
1948
1948
  return this.dateLib.isSameDay(t.date, this.date) && this.dateLib.isSameMonth(t.displayMonth, this.displayMonth);
1949
1949
  }
1950
1950
  }
1951
- class Ca {
1951
+ class pa {
1952
1952
  constructor(t, n) {
1953
1953
  this.date = t, this.weeks = n;
1954
1954
  }
1955
1955
  }
1956
- class pa {
1956
+ class Ca {
1957
1957
  constructor(t, n) {
1958
1958
  this.days = n, this.weekNumber = t;
1959
1959
  }
@@ -2029,11 +2029,11 @@ function Ba(e) {
2029
2029
  const { calendarMonth: t, displayIndex: n, ...r } = e;
2030
2030
  return m.createElement("div", { ...r }, e.children);
2031
2031
  }
2032
- function Ha(e) {
2032
+ function ja(e) {
2033
2033
  const { calendarMonth: t, displayIndex: n, ...r } = e;
2034
2034
  return m.createElement("div", { ...r });
2035
2035
  }
2036
- function ja(e) {
2036
+ function Ha(e) {
2037
2037
  return m.createElement("table", { ...e });
2038
2038
  }
2039
2039
  function Aa(e) {
@@ -2128,8 +2128,8 @@ const to = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2128
2128
  DropdownNav: Fa,
2129
2129
  Footer: Ia,
2130
2130
  Month: Ba,
2131
- MonthCaption: Ha,
2132
- MonthGrid: ja,
2131
+ MonthCaption: ja,
2132
+ MonthGrid: Ha,
2133
2133
  Months: Aa,
2134
2134
  MonthsDropdown: qa,
2135
2135
  Nav: za,
@@ -2196,13 +2196,13 @@ function no(e, t, n, r, a) {
2196
2196
  [I.disabled]: [],
2197
2197
  [I.hidden]: [],
2198
2198
  [I.today]: []
2199
- }, C = {};
2199
+ }, p = {};
2200
2200
  for (const D of e) {
2201
- const { date: l, displayMonth: S } = D, F = !!(S && !h(l, S)), j = !!(M && v(l, M)), B = !!(O && k(l, O)), G = !!(o && ae(l, o, a)), oe = !!(s && ae(l, s, a)) || j || B || // Broadcast calendar will show outside days as default
2201
+ const { date: l, displayMonth: S } = D, F = !!(S && !h(l, S)), H = !!(M && v(l, M)), B = !!(O && k(l, O)), G = !!(o && ae(l, o, a)), oe = !!(s && ae(l, s, a)) || H || B || // Broadcast calendar will show outside days as default
2202
2202
  !u && !i && F || u && i === !1 && F, te = f(l, d);
2203
2203
  F && y.outside.push(D), G && y.disabled.push(D), oe && y.hidden.push(D), te && y.today.push(D), c && Object.keys(c).forEach((U) => {
2204
2204
  const ue = c == null ? void 0 : c[U];
2205
- ue && ae(l, ue, a) && (C[U] ? C[U].push(D) : C[U] = [D]);
2205
+ ue && ae(l, ue, a) && (p[U] ? p[U].push(D) : p[U] = [D]);
2206
2206
  });
2207
2207
  }
2208
2208
  return (D) => {
@@ -2214,11 +2214,11 @@ function no(e, t, n, r, a) {
2214
2214
  [I.today]: !1
2215
2215
  }, S = {};
2216
2216
  for (const F in y) {
2217
- const j = y[F];
2218
- l[F] = j.some((B) => B === D);
2217
+ const H = y[F];
2218
+ l[F] = H.some((B) => B === D);
2219
2219
  }
2220
- for (const F in C)
2221
- S[F] = C[F].some((j) => j === D);
2220
+ for (const F in p)
2221
+ S[F] = p[F].some((H) => H === D);
2222
2222
  return {
2223
2223
  ...l,
2224
2224
  // custom modifiers should override all the previous ones
@@ -2510,9 +2510,9 @@ function No(e, t = {}) {
2510
2510
  }
2511
2511
  };
2512
2512
  }
2513
- const Ce = (e) => e instanceof HTMLElement ? e : null, Ue = (e) => [
2513
+ const pe = (e) => e instanceof HTMLElement ? e : null, Ue = (e) => [
2514
2514
  ...e.querySelectorAll("[data-animated-month]") ?? []
2515
- ], So = (e) => Ce(e.querySelector("[data-animated-month]")), Qe = (e) => Ce(e.querySelector("[data-animated-caption]")), Xe = (e) => Ce(e.querySelector("[data-animated-weeks]")), Co = (e) => Ce(e.querySelector("[data-animated-nav]")), po = (e) => Ce(e.querySelector("[data-animated-weekdays]"));
2515
+ ], So = (e) => pe(e.querySelector("[data-animated-month]")), Qe = (e) => pe(e.querySelector("[data-animated-caption]")), Xe = (e) => pe(e.querySelector("[data-animated-weeks]")), po = (e) => pe(e.querySelector("[data-animated-nav]")), Co = (e) => pe(e.querySelector("[data-animated-weekdays]"));
2516
2516
  function xo(e, t, { classNames: n, months: r, focused: a, dateLib: o }) {
2517
2517
  const s = x.useRef(null), c = x.useRef(r), i = x.useRef(!1);
2518
2518
  x.useLayoutEffect(() => {
@@ -2525,8 +2525,8 @@ function xo(e, t, { classNames: n, months: r, focused: a, dateLib: o }) {
2525
2525
  if (N instanceof HTMLElement ? (Ue(N).forEach((y) => {
2526
2526
  if (!(y instanceof HTMLElement))
2527
2527
  return;
2528
- const C = So(y);
2529
- C && y.contains(C) && y.removeChild(C);
2528
+ const p = So(y);
2529
+ p && y.contains(p) && y.removeChild(p);
2530
2530
  const D = Qe(y);
2531
2531
  D && D.classList.remove(h);
2532
2532
  const l = Xe(y);
@@ -2537,9 +2537,9 @@ function xo(e, t, { classNames: n, months: r, focused: a, dateLib: o }) {
2537
2537
  const k = v instanceof HTMLElement ? Ue(v) : [], M = Ue(e.current);
2538
2538
  if (M != null && M.every((O) => O instanceof HTMLElement) && k && k.every((O) => O instanceof HTMLElement)) {
2539
2539
  i.current = !0, e.current.style.isolation = "isolate";
2540
- const O = Co(e.current);
2541
- O && (O.style.zIndex = "1"), M.forEach((y, C) => {
2542
- const D = k[C];
2540
+ const O = po(e.current);
2541
+ O && (O.style.zIndex = "1"), M.forEach((y, p) => {
2542
+ const D = k[p];
2543
2543
  if (!D)
2544
2544
  return;
2545
2545
  y.style.position = "relative", y.style.overflow = "hidden";
@@ -2551,8 +2551,8 @@ function xo(e, t, { classNames: n, months: r, focused: a, dateLib: o }) {
2551
2551
  i.current = !1, e.current && (e.current.style.isolation = ""), O && (O.style.zIndex = ""), l && l.classList.remove(h), S && S.classList.remove(g), y.style.position = "", y.style.overflow = "", y.contains(D) && y.removeChild(D);
2552
2552
  };
2553
2553
  D.style.pointerEvents = "none", D.style.position = "absolute", D.style.overflow = "hidden", D.setAttribute("aria-hidden", "true");
2554
- const j = po(D);
2555
- j && (j.style.opacity = "0");
2554
+ const H = Co(D);
2555
+ H && (H.style.opacity = "0");
2556
2556
  const B = Qe(D);
2557
2557
  B && (B.classList.add(f ? n[$.caption_before_exit] : n[$.caption_after_exit]), B.addEventListener("animationend", F));
2558
2558
  const G = Xe(D);
@@ -2562,12 +2562,12 @@ function xo(e, t, { classNames: n, months: r, focused: a, dateLib: o }) {
2562
2562
  });
2563
2563
  }
2564
2564
  function Yo(e, t, n, r) {
2565
- const a = e[0], o = e[e.length - 1], { ISOWeek: s, fixedWeeks: c, broadcastCalendar: i } = n ?? {}, { addDays: u, differenceInCalendarDays: d, differenceInCalendarMonths: f, endOfBroadcastWeek: h, endOfISOWeek: g, endOfMonth: v, endOfWeek: N, isAfter: k, startOfBroadcastWeek: M, startOfISOWeek: O, startOfWeek: y } = r, C = i ? M(a, r) : s ? O(a) : y(a), D = i ? h(o) : s ? g(v(o)) : N(v(o)), l = t && (i ? h(t) : s ? g(t) : N(t)), S = l && k(D, l) ? l : D, F = d(S, C), j = f(o, a) + 1, B = [];
2565
+ const a = e[0], o = e[e.length - 1], { ISOWeek: s, fixedWeeks: c, broadcastCalendar: i } = n ?? {}, { addDays: u, differenceInCalendarDays: d, differenceInCalendarMonths: f, endOfBroadcastWeek: h, endOfISOWeek: g, endOfMonth: v, endOfWeek: N, isAfter: k, startOfBroadcastWeek: M, startOfISOWeek: O, startOfWeek: y } = r, p = i ? M(a, r) : s ? O(a) : y(a), D = i ? h(o) : s ? g(v(o)) : N(v(o)), l = t && (i ? h(t) : s ? g(t) : N(t)), S = l && k(D, l) ? l : D, F = d(S, p), H = f(o, a) + 1, B = [];
2566
2566
  for (let te = 0; te <= F; te++) {
2567
- const U = u(C, te);
2567
+ const U = u(p, te);
2568
2568
  B.push(U);
2569
2569
  }
2570
- const oe = (i ? 35 : 42) * j;
2570
+ const oe = (i ? 35 : 42) * H;
2571
2571
  if (c && B.length < oe) {
2572
2572
  const te = oe - B.length;
2573
2573
  for (let U = 0; U < te; U++) {
@@ -2606,18 +2606,18 @@ function Ot(e, t, n, r) {
2606
2606
  }
2607
2607
  function Po(e, t, n, r) {
2608
2608
  const { addDays: a, endOfBroadcastWeek: o, endOfISOWeek: s, endOfMonth: c, endOfWeek: i, getISOWeek: u, getWeek: d, startOfBroadcastWeek: f, startOfISOWeek: h, startOfWeek: g } = r, v = e.reduce((N, k) => {
2609
- const M = n.broadcastCalendar ? f(k, r) : n.ISOWeek ? h(k) : g(k), O = n.broadcastCalendar ? o(k) : n.ISOWeek ? s(c(k)) : i(c(k)), y = t.filter((S) => S >= M && S <= O), C = n.broadcastCalendar ? 35 : 42;
2610
- if (n.fixedWeeks && y.length < C) {
2609
+ const M = n.broadcastCalendar ? f(k, r) : n.ISOWeek ? h(k) : g(k), O = n.broadcastCalendar ? o(k) : n.ISOWeek ? s(c(k)) : i(c(k)), y = t.filter((S) => S >= M && S <= O), p = n.broadcastCalendar ? 35 : 42;
2610
+ if (n.fixedWeeks && y.length < p) {
2611
2611
  const S = t.filter((F) => {
2612
- const j = C - y.length;
2613
- return F > O && F <= a(O, j);
2612
+ const H = p - y.length;
2613
+ return F > O && F <= a(O, H);
2614
2614
  });
2615
2615
  y.push(...S);
2616
2616
  }
2617
2617
  const D = y.reduce((S, F) => {
2618
- const j = n.ISOWeek ? u(F) : d(F), B = S.find((oe) => oe.weekNumber === j), G = new Rt(F, k, r);
2619
- return B ? B.days.push(G) : S.push(new pa(j, [G])), S;
2620
- }, []), l = new Ca(k, D);
2618
+ const H = n.ISOWeek ? u(F) : d(F), B = S.find((oe) => oe.weekNumber === H), G = new Rt(F, k, r);
2619
+ return B ? B.days.push(G) : S.push(new Ca(H, [G])), S;
2620
+ }, []), l = new pa(k, D);
2621
2621
  return N.push(l), N;
2622
2622
  }, []);
2623
2623
  return n.reverseMonths ? v.reverse() : v;
@@ -2658,8 +2658,8 @@ function Fe(e, t) {
2658
2658
  const [n, r] = x.useState(e);
2659
2659
  return [t === void 0 ? n : t, r];
2660
2660
  }
2661
- function Ho(e, t) {
2662
- var C;
2661
+ function jo(e, t) {
2662
+ var p;
2663
2663
  const [n, r] = Eo(e, t), { startOfMonth: a, endOfMonth: o } = t, s = Ot(e, n, r, t), [c, i] = Fe(
2664
2664
  s,
2665
2665
  // initialMonth is always computed from props.month if provided
@@ -2679,11 +2679,11 @@ function Ho(e, t) {
2679
2679
  fixedWeeks: e.fixedWeeks,
2680
2680
  ISOWeek: e.ISOWeek,
2681
2681
  reverseMonths: e.reverseMonths
2682
- }, t), F = Bo(S), j = To(S), B = Io(c, n, e, t), G = Fo(c, r, e, t);
2682
+ }, t), F = Bo(S), H = To(S), B = Io(c, n, e, t), G = Fo(c, r, e, t);
2683
2683
  return {
2684
2684
  months: S,
2685
2685
  weeks: F,
2686
- days: j,
2686
+ days: H,
2687
2687
  previousMonth: B,
2688
2688
  nextMonth: G
2689
2689
  };
@@ -2694,7 +2694,7 @@ function Ho(e, t) {
2694
2694
  n == null ? void 0 : n.getTime(),
2695
2695
  e.disableNavigation,
2696
2696
  e.broadcastCalendar,
2697
- (C = e.endMonth) == null ? void 0 : C.getTime(),
2697
+ (p = e.endMonth) == null ? void 0 : p.getTime(),
2698
2698
  e.fixedWeeks,
2699
2699
  e.ISOWeek,
2700
2700
  e.numberOfMonths,
@@ -2727,7 +2727,7 @@ var K;
2727
2727
  function vt(e) {
2728
2728
  return !e[I.disabled] && !e[I.hidden] && !e[I.outside];
2729
2729
  }
2730
- function jo(e, t, n, r) {
2730
+ function Ho(e, t, n, r) {
2731
2731
  let a, o = -1;
2732
2732
  for (const s of e) {
2733
2733
  const c = t(s);
@@ -2736,13 +2736,13 @@ function jo(e, t, n, r) {
2736
2736
  return a || (a = e.find((s) => vt(t(s)))), a;
2737
2737
  }
2738
2738
  function Ao(e, t, n, r, a, o, s) {
2739
- const { ISOWeek: c, broadcastCalendar: i } = o, { addDays: u, addMonths: d, addWeeks: f, addYears: h, endOfBroadcastWeek: g, endOfISOWeek: v, endOfWeek: N, max: k, min: M, startOfBroadcastWeek: O, startOfISOWeek: y, startOfWeek: C } = s;
2739
+ const { ISOWeek: c, broadcastCalendar: i } = o, { addDays: u, addMonths: d, addWeeks: f, addYears: h, endOfBroadcastWeek: g, endOfISOWeek: v, endOfWeek: N, max: k, min: M, startOfBroadcastWeek: O, startOfISOWeek: y, startOfWeek: p } = s;
2740
2740
  let l = {
2741
2741
  day: u,
2742
2742
  week: f,
2743
2743
  month: d,
2744
2744
  year: h,
2745
- startOfWeek: (S) => i ? O(S, s) : c ? y(S) : C(S),
2745
+ startOfWeek: (S) => i ? O(S, s) : c ? y(S) : p(S),
2746
2746
  endOfWeek: (S) => i ? g(S) : c ? v(S) : N(S)
2747
2747
  }[e](n, t === "after" ? 1 : -1);
2748
2748
  return t === "before" && r ? l = k([r, l]) : t === "after" && a && (l = M([a, l])), l;
@@ -2754,7 +2754,7 @@ function on(e, t, n, r, a, o, s, c = 0) {
2754
2754
  return !u && !d ? h : on(e, t, h, r, a, o, s, c + 1);
2755
2755
  }
2756
2756
  function qo(e, t, n, r, a) {
2757
- const { autoFocus: o } = e, [s, c] = x.useState(), i = jo(t.days, n, r || (() => !1), s), [u, d] = x.useState(o ? i : void 0);
2757
+ const { autoFocus: o } = e, [s, c] = x.useState(), i = Ho(t.days, n, r || (() => !1), s), [u, d] = x.useState(o ? i : void 0);
2758
2758
  return {
2759
2759
  isFocusTarget: (N) => !!(i != null && i.isEqualTo(N)),
2760
2760
  setFocused: d,
@@ -2961,9 +2961,9 @@ function Vo(e) {
2961
2961
  t.classNames
2962
2962
  ]);
2963
2963
  t.today || (t = { ...t, today: s.today() });
2964
- const { captionLayout: u, mode: d, navLayout: f, numberOfMonths: h = 1, onDayBlur: g, onDayClick: v, onDayFocus: N, onDayKeyDown: k, onDayMouseEnter: M, onDayMouseLeave: O, onNextClick: y, onPrevClick: C, showWeekNumber: D, styles: l } = t, { formatCaption: S, formatDay: F, formatMonthDropdown: j, formatWeekNumber: B, formatWeekNumberHeader: G, formatWeekdayName: oe, formatYearDropdown: te } = a, U = Ho(t, s), { days: ue, months: pe, navStart: Ie, navEnd: Be, previousMonth: X, nextMonth: V, goToMonth: ne } = U, He = no(ue, t, Ie, Be, s), { isSelected: ge, select: we, selected: xe } = Xo(t, s) ?? {}, { blur: st, focused: Ye, isFocusTarget: sn, moveFocus: it, setFocused: Te } = qo(t, U, He, ge ?? (() => !1), s), { labelDayButton: cn, labelGridcell: un, labelGrid: dn, labelMonthDropdown: fn, labelNav: ct, labelPrevious: ln, labelNext: hn, labelWeekday: mn, labelWeekNumber: yn, labelWeekNumberHeader: gn, labelYearDropdown: wn } = o, bn = x.useMemo(() => vo(s, t.ISOWeek, t.broadcastCalendar, t.today), [s, t.ISOWeek, t.broadcastCalendar, t.today]), ut = d !== void 0 || v !== void 0, je = x.useCallback(() => {
2965
- X && (ne(X), C == null || C(X));
2966
- }, [X, ne, C]), Ae = x.useCallback(() => {
2964
+ const { captionLayout: u, mode: d, navLayout: f, numberOfMonths: h = 1, onDayBlur: g, onDayClick: v, onDayFocus: N, onDayKeyDown: k, onDayMouseEnter: M, onDayMouseLeave: O, onNextClick: y, onPrevClick: p, showWeekNumber: D, styles: l } = t, { formatCaption: S, formatDay: F, formatMonthDropdown: H, formatWeekNumber: B, formatWeekNumberHeader: G, formatWeekdayName: oe, formatYearDropdown: te } = a, U = jo(t, s), { days: ue, months: Ce, navStart: Ie, navEnd: Be, previousMonth: X, nextMonth: V, goToMonth: ne } = U, je = no(ue, t, Ie, Be, s), { isSelected: ge, select: we, selected: xe } = Xo(t, s) ?? {}, { blur: st, focused: Ye, isFocusTarget: sn, moveFocus: it, setFocused: Te } = qo(t, U, je, ge ?? (() => !1), s), { labelDayButton: cn, labelGridcell: un, labelGrid: dn, labelMonthDropdown: fn, labelNav: ct, labelPrevious: ln, labelNext: hn, labelWeekday: mn, labelWeekNumber: yn, labelWeekNumberHeader: gn, labelYearDropdown: wn } = o, bn = x.useMemo(() => vo(s, t.ISOWeek, t.broadcastCalendar, t.today), [s, t.ISOWeek, t.broadcastCalendar, t.today]), ut = d !== void 0 || v !== void 0, He = x.useCallback(() => {
2965
+ X && (ne(X), p == null || p(X));
2966
+ }, [X, ne, p]), Ae = x.useCallback(() => {
2967
2967
  V && (ne(V), y == null || y(V));
2968
2968
  }, [ne, V, y]), Mn = x.useCallback((W, _) => (b) => {
2969
2969
  b.preventDefault(), b.stopPropagation(), Te(W), !_.disabled && (we == null || we(W.date, _, b), v == null || v(W.date, _, b));
@@ -2990,8 +2990,8 @@ function Vo(e) {
2990
2990
  };
2991
2991
  if (T[b.key]) {
2992
2992
  b.preventDefault(), b.stopPropagation();
2993
- const [z, p] = T[b.key];
2994
- it(z, p);
2993
+ const [z, C] = T[b.key];
2994
+ it(z, C);
2995
2995
  }
2996
2996
  k == null || k(W.date, _, b);
2997
2997
  }, [it, k, t.dir]), vn = x.useCallback((W, _) => (b) => {
@@ -3004,13 +3004,13 @@ function Vo(e) {
3004
3004
  }, [s, ne]), Sn = x.useCallback((W) => (_) => {
3005
3005
  const b = Number(_.target.value), T = s.setYear(s.startOfMonth(W), b);
3006
3006
  ne(T);
3007
- }, [s, ne]), { className: Cn, style: pn } = x.useMemo(() => ({
3007
+ }, [s, ne]), { className: pn, style: Cn } = x.useMemo(() => ({
3008
3008
  className: [i[w.Root], t.className].filter(Boolean).join(" "),
3009
3009
  style: { ...l == null ? void 0 : l[w.Root], ...t.style }
3010
3010
  }), [i, t.className, t.style, l]), xn = oo(t), dt = x.useRef(null);
3011
3011
  xo(dt, !!t.animate, {
3012
3012
  classNames: i,
3013
- months: pe,
3013
+ months: Ce,
3014
3014
  focused: Ye,
3015
3015
  dateLib: s
3016
3016
  });
@@ -3019,11 +3019,11 @@ function Vo(e) {
3019
3019
  selected: xe,
3020
3020
  select: we,
3021
3021
  isSelected: ge,
3022
- months: pe,
3022
+ months: Ce,
3023
3023
  nextMonth: V,
3024
3024
  previousMonth: X,
3025
3025
  goToMonth: ne,
3026
- getModifiers: He,
3026
+ getModifiers: je,
3027
3027
  components: r,
3028
3028
  classNames: i,
3029
3029
  styles: l,
@@ -3035,12 +3035,12 @@ function Vo(e) {
3035
3035
  { value: Yn },
3036
3036
  m.createElement(
3037
3037
  r.Root,
3038
- { rootRef: t.animate ? dt : void 0, className: Cn, style: pn, dir: t.dir, id: t.id, lang: t.lang, nonce: t.nonce, title: t.title, role: t.role, "aria-label": t["aria-label"], "aria-labelledby": t["aria-labelledby"], ...xn },
3038
+ { rootRef: t.animate ? dt : void 0, className: pn, style: Cn, dir: t.dir, id: t.id, lang: t.lang, nonce: t.nonce, title: t.title, role: t.role, "aria-label": t["aria-label"], "aria-labelledby": t["aria-labelledby"], ...xn },
3039
3039
  m.createElement(
3040
3040
  r.Months,
3041
3041
  { className: i[w.Months], style: l == null ? void 0 : l[w.Months] },
3042
- !t.hideNavigation && !f && m.createElement(r.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: i[w.Nav], style: l == null ? void 0 : l[w.Nav], "aria-label": ct(), onPreviousClick: je, onNextClick: Ae, previousMonth: X, nextMonth: V }),
3043
- pe.map((W, _) => m.createElement(
3042
+ !t.hideNavigation && !f && m.createElement(r.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: i[w.Nav], style: l == null ? void 0 : l[w.Nav], "aria-label": ct(), onPreviousClick: He, onNextClick: Ae, previousMonth: X, nextMonth: V }),
3043
+ Ce.map((W, _) => m.createElement(
3044
3044
  r.Month,
3045
3045
  {
3046
3046
  "data-animated-month": t.animate ? "true" : void 0,
@@ -3053,14 +3053,14 @@ function Vo(e) {
3053
3053
  },
3054
3054
  f === "around" && !t.hideNavigation && _ === 0 && m.createElement(
3055
3055
  r.PreviousMonthButton,
3056
- { type: "button", className: i[w.PreviousMonthButton], tabIndex: X ? void 0 : -1, "aria-disabled": X ? void 0 : !0, "aria-label": ln(X), onClick: je, "data-animated-button": t.animate ? "true" : void 0 },
3056
+ { type: "button", className: i[w.PreviousMonthButton], tabIndex: X ? void 0 : -1, "aria-disabled": X ? void 0 : !0, "aria-label": ln(X), onClick: He, "data-animated-button": t.animate ? "true" : void 0 },
3057
3057
  m.createElement(r.Chevron, { disabled: X ? void 0 : !0, className: i[w.Chevron], orientation: t.dir === "rtl" ? "right" : "left" })
3058
3058
  ),
3059
3059
  m.createElement(r.MonthCaption, { "data-animated-caption": t.animate ? "true" : void 0, className: i[w.MonthCaption], style: l == null ? void 0 : l[w.MonthCaption], calendarMonth: W, displayIndex: _ }, u != null && u.startsWith("dropdown") ? m.createElement(
3060
3060
  r.DropdownNav,
3061
3061
  { className: i[w.Dropdowns], style: l == null ? void 0 : l[w.Dropdowns] },
3062
3062
  (() => {
3063
- const b = u === "dropdown" || u === "dropdown-months" ? m.createElement(r.MonthsDropdown, { key: "month", className: i[w.MonthsDropdown], "aria-label": fn(), classNames: i, components: r, disabled: !!t.disableNavigation, onChange: Nn(W.date), options: ko(W.date, Ie, Be, a, s), style: l == null ? void 0 : l[w.Dropdown], value: s.getMonth(W.date) }) : m.createElement("span", { key: "month" }, j(W.date, s)), T = u === "dropdown" || u === "dropdown-years" ? m.createElement(r.YearsDropdown, { key: "year", className: i[w.YearsDropdown], "aria-label": wn(s.options), classNames: i, components: r, disabled: !!t.disableNavigation, onChange: Sn(W.date), options: Wo(Ie, Be, a, s, !!t.reverseYears), style: l == null ? void 0 : l[w.Dropdown], value: s.getYear(W.date) }) : m.createElement("span", { key: "year" }, te(W.date, s));
3063
+ const b = u === "dropdown" || u === "dropdown-months" ? m.createElement(r.MonthsDropdown, { key: "month", className: i[w.MonthsDropdown], "aria-label": fn(), classNames: i, components: r, disabled: !!t.disableNavigation, onChange: Nn(W.date), options: ko(W.date, Ie, Be, a, s), style: l == null ? void 0 : l[w.Dropdown], value: s.getMonth(W.date) }) : m.createElement("span", { key: "month" }, H(W.date, s)), T = u === "dropdown" || u === "dropdown-years" ? m.createElement(r.YearsDropdown, { key: "year", className: i[w.YearsDropdown], "aria-label": wn(s.options), classNames: i, components: r, disabled: !!t.disableNavigation, onChange: Sn(W.date), options: Wo(Ie, Be, a, s, !!t.reverseYears), style: l == null ? void 0 : l[w.Dropdown], value: s.getYear(W.date) }) : m.createElement("span", { key: "year" }, te(W.date, s));
3064
3064
  return s.getMonthYearOrder() === "year-first" ? [T, b] : [b, T];
3065
3065
  })(),
3066
3066
  m.createElement("span", { role: "status", "aria-live": "polite", style: {
@@ -3081,7 +3081,7 @@ function Vo(e) {
3081
3081
  { type: "button", className: i[w.NextMonthButton], tabIndex: V ? void 0 : -1, "aria-disabled": V ? void 0 : !0, "aria-label": hn(V), onClick: Ae, "data-animated-button": t.animate ? "true" : void 0 },
3082
3082
  m.createElement(r.Chevron, { disabled: V ? void 0 : !0, className: i[w.Chevron], orientation: t.dir === "rtl" ? "left" : "right" })
3083
3083
  ),
3084
- _ === h - 1 && f === "after" && !t.hideNavigation && m.createElement(r.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: i[w.Nav], style: l == null ? void 0 : l[w.Nav], "aria-label": ct(), onPreviousClick: je, onNextClick: Ae, previousMonth: X, nextMonth: V }),
3084
+ _ === h - 1 && f === "after" && !t.hideNavigation && m.createElement(r.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: i[w.Nav], style: l == null ? void 0 : l[w.Nav], "aria-label": ct(), onPreviousClick: He, onNextClick: Ae, previousMonth: X, nextMonth: V }),
3085
3085
  m.createElement(
3086
3086
  r.MonthGrid,
3087
3087
  { role: "grid", "aria-multiselectable": d === "multiple" || d === "range", "aria-label": dn(W.date, s.options, s) || void 0, className: i[w.MonthGrid], style: l == null ? void 0 : l[w.MonthGrid] },
@@ -3098,13 +3098,13 @@ function Vo(e) {
3098
3098
  locale: c
3099
3099
  }), className: i[w.WeekNumber], scope: "row", role: "rowheader" }, B(b.weekNumber, s)),
3100
3100
  b.days.map((T) => {
3101
- const { date: z } = T, p = He(T);
3102
- if (p[I.focused] = !p.hidden && !!(Ye != null && Ye.isEqualTo(T)), p[Z.selected] = (ge == null ? void 0 : ge(z)) || p.selected, Ee(xe)) {
3101
+ const { date: z } = T, C = je(T);
3102
+ if (C[I.focused] = !C.hidden && !!(Ye != null && Ye.isEqualTo(T)), C[Z.selected] = (ge == null ? void 0 : ge(z)) || C.selected, Ee(xe)) {
3103
3103
  const { from: qe, to: ze } = xe;
3104
- p[Z.range_start] = !!(qe && ze && s.isSameDay(z, qe)), p[Z.range_end] = !!(qe && ze && s.isSameDay(z, ze)), p[Z.range_middle] = re(xe, z, !0, s);
3104
+ C[Z.range_start] = !!(qe && ze && s.isSameDay(z, qe)), C[Z.range_end] = !!(qe && ze && s.isSameDay(z, ze)), C[Z.range_middle] = re(xe, z, !0, s);
3105
3105
  }
3106
- const Tn = Oo(p, l, t.modifiersStyles), _n = ro(p, i, t.modifiersClassNames), Pn = !ut && !p.hidden ? un(z, p, s.options, s) : void 0;
3107
- return m.createElement(r.Day, { key: `${T.isoDate}_${T.displayMonthId}`, day: T, modifiers: p, className: _n.join(" "), style: Tn, role: "gridcell", "aria-selected": p.selected || void 0, "aria-label": Pn, "data-day": T.isoDate, "data-month": T.outside ? T.dateMonthId : void 0, "data-selected": p.selected || void 0, "data-disabled": p.disabled || void 0, "data-hidden": p.hidden || void 0, "data-outside": T.outside || void 0, "data-focused": p.focused || void 0, "data-today": p.today || void 0 }, !p.hidden && ut ? m.createElement(r.DayButton, { className: i[w.DayButton], style: l == null ? void 0 : l[w.DayButton], type: "button", day: T, modifiers: p, disabled: !p.focused && p.disabled || void 0, "aria-disabled": p.focused && p.disabled || void 0, tabIndex: sn(T) ? 0 : -1, "aria-label": cn(z, p, s.options, s), onClick: Mn(T, p), onBlur: kn(T, p), onFocus: Dn(T, p), onKeyDown: On(T, p), onMouseEnter: vn(T, p), onMouseLeave: Wn(T, p) }, F(z, s.options, s)) : !p.hidden && F(T.date, s.options, s));
3106
+ const Tn = Oo(C, l, t.modifiersStyles), _n = ro(C, i, t.modifiersClassNames), Pn = !ut && !C.hidden ? un(z, C, s.options, s) : void 0;
3107
+ return m.createElement(r.Day, { key: `${T.isoDate}_${T.displayMonthId}`, day: T, modifiers: C, className: _n.join(" "), style: Tn, role: "gridcell", "aria-selected": C.selected || void 0, "aria-label": Pn, "data-day": T.isoDate, "data-month": T.outside ? T.dateMonthId : void 0, "data-selected": C.selected || void 0, "data-disabled": C.disabled || void 0, "data-hidden": C.hidden || void 0, "data-outside": T.outside || void 0, "data-focused": C.focused || void 0, "data-today": C.today || void 0 }, !C.hidden && ut ? m.createElement(r.DayButton, { className: i[w.DayButton], style: l == null ? void 0 : l[w.DayButton], type: "button", day: T, modifiers: C, disabled: !C.focused && C.disabled || void 0, "aria-disabled": C.focused && C.disabled || void 0, tabIndex: sn(T) ? 0 : -1, "aria-label": cn(z, C, s.options, s), onClick: Mn(T, C), onBlur: kn(T, C), onFocus: Dn(T, C), onKeyDown: On(T, C), onMouseEnter: vn(T, C), onMouseLeave: Wn(T, C) }, F(z, s.options, s)) : !C.hidden && F(T.date, s.options, s));
3108
3108
  })
3109
3109
  )))
3110
3110
  )
@@ -3232,13 +3232,13 @@ function Pe({
3232
3232
  ...f
3233
3233
  }
3234
3234
  ),
3235
- Chevron: ({ className: u, orientation: d, ...f }) => d === "left" ? /* @__PURE__ */ A.jsx(Bn, { className: Y("size-4", u), ...f }) : d === "right" ? /* @__PURE__ */ A.jsx(
3235
+ Chevron: ({ className: u, orientation: d, ...f }) => d === "left" ? /* @__PURE__ */ A.jsx(jn, { className: Y("size-4", u), ...f }) : d === "right" ? /* @__PURE__ */ A.jsx(
3236
3236
  Hn,
3237
3237
  {
3238
3238
  className: Y("size-4", u),
3239
3239
  ...f
3240
3240
  }
3241
- ) : /* @__PURE__ */ A.jsx(jn, { className: Y("size-4", u), ...f }),
3241
+ ) : /* @__PURE__ */ A.jsx(St, { className: Y("size-4", u), ...f }),
3242
3242
  DayButton: Jo,
3243
3243
  WeekNumber: ({ children: u, ...d }) => /* @__PURE__ */ A.jsx("td", { ...d, children: /* @__PURE__ */ A.jsx("div", { className: "flex size-[var(--cell-size)] items-center justify-center text-center", children: u }) }),
3244
3244
  ...s
@@ -3258,7 +3258,7 @@ function Jo({
3258
3258
  var s;
3259
3259
  n.focused && ((s = o.current) == null || s.focus());
3260
3260
  }, [n.focused]), /* @__PURE__ */ A.jsx(
3261
- St,
3261
+ En,
3262
3262
  {
3263
3263
  ref: o,
3264
3264
  variant: "ghost",
@@ -3372,23 +3372,25 @@ function es({
3372
3372
  const u = i;
3373
3373
  u && n && n(u.toISOString()), o(!1);
3374
3374
  };
3375
- return /* @__PURE__ */ A.jsxs(En, { open: a, onOpenChange: o, children: [
3376
- /* @__PURE__ */ A.jsx(Fn, { asChild: !0, children: /* @__PURE__ */ A.jsxs(
3377
- St,
3375
+ return /* @__PURE__ */ A.jsxs(Fn, { open: a, onOpenChange: o, children: [
3376
+ /* @__PURE__ */ A.jsxs(
3377
+ In,
3378
3378
  {
3379
- variant: "outline",
3380
3379
  className: Y(
3381
- "w-full justify-start text-left font-normal",
3380
+ "cn-button cn-button-variant-outline cn-button-size-default w-full justify-between text-left font-normal",
3382
3381
  !s && "text-muted-foreground",
3383
3382
  r
3384
3383
  ),
3385
3384
  children: [
3386
- /* @__PURE__ */ A.jsx(An, { className: "size-4" }),
3387
- s ? he(s, "PPP") : e
3385
+ /* @__PURE__ */ A.jsxs("span", { className: "flex items-center gap-1.5", children: [
3386
+ /* @__PURE__ */ A.jsx(An, { className: "size-4" }),
3387
+ s ? he(s, "PPP") : e
3388
+ ] }),
3389
+ /* @__PURE__ */ A.jsx(St, { className: "size-4 opacity-50" })
3388
3390
  ]
3389
3391
  }
3390
- ) }),
3391
- /* @__PURE__ */ A.jsx(In, { className: "w-auto p-0", align: "start", children: /* @__PURE__ */ A.jsx(
3392
+ ),
3393
+ /* @__PURE__ */ A.jsx(Bn, { className: "w-auto p-0", align: "start", children: /* @__PURE__ */ A.jsx(
3392
3394
  Pe,
3393
3395
  {
3394
3396
  mode: "single",