@prefecthq/prefab-ui 0.10.0 → 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,5 +1,5 @@
1
- import { c as Y, j as q, a as jt } from "./embed-D3uJNX5r.mjs";
2
- import { n as ca, g as ce, a as R, R as _ } from "./icons-9tLoEEsf.mjs";
1
+ import { a as Y, j as q, c as jt } from "./embed-B1s8dKzJ.mjs";
2
+ import { n as ca, g as ce, a as R, R as _ } from "./icons-CImNZgDa.mjs";
3
3
  var pu, Qh;
4
4
  function Ke() {
5
5
  if (Qh) return pu;
@@ -1,22 +1,22 @@
1
- import { j as A, a as Y, b as lt, B as St, P as En, d as Fn, e as In } from "./embed-D3uJNX5r.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";
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
3
  const pt = 6048e5, qn = 864e5, Ct = 6e4, xt = 36e5, ht = Symbol.for("constructDateFrom");
4
- function H(e, t) {
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) {
@@ -615,18 +615,18 @@ function Ke(e, t) {
615
615
  const n = P(e, t == null ? void 0 : t.in), r = +ve(n) - +$n(n);
616
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) {
@@ -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);
@@ -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);
@@ -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", {
@@ -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,
@@ -2198,7 +2198,7 @@ function no(e, t, n, r, a) {
2198
2198
  [I.today]: []
2199
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];
@@ -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
2220
  for (const F in p)
2221
- S[F] = p[F].some((j) => j === D);
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
@@ -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 = Co(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, 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), 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
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++) {
@@ -2609,14 +2609,14 @@ function Po(e, t, n, r) {
2609
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
2610
  if (n.fixedWeeks && y.length < p) {
2611
2611
  const S = t.filter((F) => {
2612
- const j = p - 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 Ca(j, [G])), S;
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
2620
  }, []), l = new pa(k, D);
2621
2621
  return N.push(l), N;
2622
2622
  }, []);
@@ -2658,7 +2658,7 @@ 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) {
2661
+ function jo(e, t) {
2662
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,
@@ -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
  };
@@ -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);
@@ -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,7 +2961,7 @@ 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: p, 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: Ce, 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(() => {
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
2965
  X && (ne(X), p == null || p(X));
2966
2966
  }, [X, ne, p]), Ae = x.useCallback(() => {
2967
2967
  V && (ne(V), y == null || y(V));
@@ -3023,7 +3023,7 @@ function Vo(e) {
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,
@@ -3039,7 +3039,7 @@ function Vo(e) {
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 }),
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
3043
  Ce.map((W, _) => m.createElement(
3044
3044
  r.Month,
3045
3045
  {
@@ -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,7 +3098,7 @@ 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, C = He(T);
3101
+ const { date: z } = T, C = je(T);
3102
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
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);
@@ -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-[240px] 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",
@@ -1,5 +1,5 @@
1
- import { j as ce, a as bi } from "./embed-D3uJNX5r.mjs";
2
- import { g as Zt, a as il } from "./icons-9tLoEEsf.mjs";
1
+ import { j as ce, c as bi } from "./embed-B1s8dKzJ.mjs";
2
+ import { g as Zt, a as il } from "./icons-CImNZgDa.mjs";
3
3
  var kt, Cr;
4
4
  function ol() {
5
5
  if (Cr) return kt;