@prefecthq/prefab-ui 0.10.0 → 0.10.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.
@@ -1,4 +1,4 @@
1
- import { c as Y, j as q, a as jt } from "./embed-D3uJNX5r.mjs";
1
+ import { a as Y, j as q, c as jt } from "./embed-DEzwqwWv.mjs";
2
2
  import { n as ca, g as ce, a as R, R as _ } from "./icons-9tLoEEsf.mjs";
3
3
  var pu, Qh;
4
4
  function Ke() {
@@ -1,6 +1,6 @@
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";
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
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 pt = 6048e5, qn = 864e5, Ct = 6e4, xt = 36e5, ht = Symbol.for("constructDateFrom");
3
+ const Ct = 6048e5, qn = 864e5, pt = 6e4, xt = 36e5, ht = Symbol.for("constructDateFrom");
4
4
  function H(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
  }
@@ -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
- }, pr = {
506
+ }, Cr = {
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
- }, Cr = {
510
+ }, pr = {
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: pr,
581
+ matchPatterns: Cr,
582
582
  defaultMatchWidth: "wide",
583
- parsePatterns: Cr,
583
+ parsePatterns: pr,
584
584
  defaultParseWidth: "any"
585
585
  }),
586
586
  day: Me({
@@ -613,7 +613,7 @@ 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 / pt) + 1;
616
+ return Math.round(r / Ct) + 1;
617
617
  }
618
618
  function Ht(e, t) {
619
619
  var d, f, h, g;
@@ -631,7 +631,7 @@ function Fr(e, 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 / pt) + 1;
634
+ return Math.round(r / Ct) + 1;
635
635
  }
636
636
  function E(e, t) {
637
637
  const n = e < 0 ? "-" : "", r = Math.abs(e).toString().padStart(t, "0");
@@ -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 p = Br[y];
1340
- return p(O, a.formatLong);
1339
+ const C = Br[y];
1340
+ return C(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 p = yt[y[0]];
1368
- return p(c, y, a.localize, u);
1367
+ const C = yt[y[0]];
1368
+ return C(c, y, a.localize, u);
1369
1369
  }).join("");
1370
1370
  }
1371
1371
  function Jr(e) {
@@ -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 * Ct + a * 1e3 : NaN;
1485
+ return wa(n, r, a) ? n * xt + r * pt + 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 * Ct) : NaN;
1495
+ return ba(r, a) ? n * (r * xt + a * pt) : NaN;
1496
1496
  }
1497
1497
  function la(e, t, n) {
1498
1498
  const r = /* @__PURE__ */ new Date(0);
@@ -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), p = g - y;
1621
- p && (e.internal.setUTCMinutes(e.internal.getUTCMinutes() + p), Date.prototype.setUTCMinutes.call(e, Date.prototype.getUTCMinutes.call(e) + p));
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));
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 pa {
1951
+ class Ca {
1952
1952
  constructor(t, n) {
1953
1953
  this.date = t, this.weeks = n;
1954
1954
  }
1955
1955
  }
1956
- class Ca {
1956
+ class pa {
1957
1957
  constructor(t, n) {
1958
1958
  this.days = n, this.weekNumber = t;
1959
1959
  }
@@ -2196,13 +2196,13 @@ function no(e, t, n, r, a) {
2196
2196
  [I.disabled]: [],
2197
2197
  [I.hidden]: [],
2198
2198
  [I.today]: []
2199
- }, p = {};
2199
+ }, C = {};
2200
2200
  for (const D of e) {
2201
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
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) && (p[U] ? p[U].push(D) : p[U] = [D]);
2205
+ ue && ae(l, ue, a) && (C[U] ? C[U].push(D) : C[U] = [D]);
2206
2206
  });
2207
2207
  }
2208
2208
  return (D) => {
@@ -2217,8 +2217,8 @@ function no(e, t, n, r, a) {
2217
2217
  const j = y[F];
2218
2218
  l[F] = j.some((B) => B === D);
2219
2219
  }
2220
- for (const F in p)
2221
- S[F] = p[F].some((j) => j === D);
2220
+ for (const F in C)
2221
+ S[F] = C[F].some((j) => j === 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 pe = (e) => e instanceof HTMLElement ? e : null, Ue = (e) => [
2513
+ const Ce = (e) => e instanceof HTMLElement ? e : null, Ue = (e) => [
2514
2514
  ...e.querySelectorAll("[data-animated-month]") ?? []
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]"));
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]"));
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 p = So(y);
2529
- p && y.contains(p) && y.removeChild(p);
2528
+ const C = So(y);
2529
+ C && y.contains(C) && y.removeChild(C);
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 = po(e.current);
2541
- O && (O.style.zIndex = "1"), M.forEach((y, p) => {
2542
- const D = k[p];
2540
+ const O = Co(e.current);
2541
+ O && (O.style.zIndex = "1"), M.forEach((y, C) => {
2542
+ const D = k[C];
2543
2543
  if (!D)
2544
2544
  return;
2545
2545
  y.style.position = "relative", y.style.overflow = "hidden";
@@ -2551,7 +2551,7 @@ 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);
2554
+ const j = po(D);
2555
2555
  j && (j.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));
@@ -2562,9 +2562,9 @@ 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, 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 = [];
2566
2566
  for (let te = 0; te <= F; te++) {
2567
- const U = u(p, te);
2567
+ const U = u(C, te);
2568
2568
  B.push(U);
2569
2569
  }
2570
2570
  const oe = (i ? 35 : 42) * j;
@@ -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), p = n.broadcastCalendar ? 35 : 42;
2610
- if (n.fixedWeeks && y.length < p) {
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) {
2611
2611
  const S = t.filter((F) => {
2612
- const j = p - y.length;
2612
+ const j = C - y.length;
2613
2613
  return F > O && F <= a(O, j);
2614
2614
  });
2615
2615
  y.push(...S);
2616
2616
  }
2617
2617
  const D = y.reduce((S, F) => {
2618
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;
2620
- }, []), l = new pa(k, D);
2619
+ return B ? B.days.push(G) : S.push(new pa(j, [G])), S;
2620
+ }, []), l = new Ca(k, D);
2621
2621
  return N.push(l), N;
2622
2622
  }, []);
2623
2623
  return n.reverseMonths ? v.reverse() : v;
@@ -2659,7 +2659,7 @@ function Fe(e, t) {
2659
2659
  return [t === void 0 ? n : t, r];
2660
2660
  }
2661
2661
  function Ho(e, t) {
2662
- var p;
2662
+ var C;
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
@@ -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
- (p = e.endMonth) == null ? void 0 : p.getTime(),
2697
+ (C = e.endMonth) == null ? void 0 : C.getTime(),
2698
2698
  e.fixedWeeks,
2699
2699
  e.ISOWeek,
2700
2700
  e.numberOfMonths,
@@ -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: p } = 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;
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) : p(S),
2745
+ startOfWeek: (S) => i ? O(S, s) : c ? y(S) : C(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;
@@ -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: 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(() => {
2965
- X && (ne(X), p == null || p(X));
2966
- }, [X, ne, p]), 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: 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(() => {
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, C] = T[b.key];
2994
- it(z, C);
2993
+ const [z, p] = T[b.key];
2994
+ it(z, p);
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: pn, style: Cn } = x.useMemo(() => ({
3007
+ }, [s, ne]), { className: Cn, style: pn } = 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: Ce,
3013
+ months: pe,
3014
3014
  focused: Ye,
3015
3015
  dateLib: s
3016
3016
  });
@@ -3019,7 +3019,7 @@ function Vo(e) {
3019
3019
  selected: xe,
3020
3020
  select: we,
3021
3021
  isSelected: ge,
3022
- months: Ce,
3022
+ months: pe,
3023
3023
  nextMonth: V,
3024
3024
  previousMonth: X,
3025
3025
  goToMonth: ne,
@@ -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: 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 },
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 },
3039
3039
  m.createElement(
3040
3040
  r.Months,
3041
3041
  { className: i[w.Months], style: l == null ? void 0 : l[w.Months] },
3042
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
- Ce.map((W, _) => m.createElement(
3043
+ pe.map((W, _) => m.createElement(
3044
3044
  r.Month,
3045
3045
  {
3046
3046
  "data-animated-month": t.animate ? "true" : void 0,
@@ -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, C = He(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)) {
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)) {
3103
3103
  const { from: qe, to: ze } = xe;
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);
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);
3105
3105
  }
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));
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));
3108
3108
  })
3109
3109
  )))
3110
3110
  )
@@ -3378,7 +3378,7 @@ function es({
3378
3378
  {
3379
3379
  variant: "outline",
3380
3380
  className: Y(
3381
- "w-[240px] justify-start text-left font-normal",
3381
+ "w-full justify-start text-left font-normal",
3382
3382
  !s && "text-muted-foreground",
3383
3383
  r
3384
3384
  ),
@@ -1,4 +1,4 @@
1
- import { j as ce, a as bi } from "./embed-D3uJNX5r.mjs";
1
+ import { j as ce, c as bi } from "./embed-DEzwqwWv.mjs";
2
2
  import { g as Zt, a as il } from "./icons-9tLoEEsf.mjs";
3
3
  var kt, Cr;
4
4
  function ol() {