@konstructio/ui 0.1.2-alpha.28 → 0.1.2-alpha.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/chevron-up-DrQr2Fwd.js +5 -0
  2. package/dist/components/Badge/Badge.variants.js +1 -1
  3. package/dist/components/Datepicker/DatePicker.js +124 -124
  4. package/dist/components/Divider/Divider.variants.js +1 -1
  5. package/dist/components/Dropdown/components/List/List.js +45 -39
  6. package/dist/components/Dropdown/components/Wrapper.js +81 -80
  7. package/dist/components/Dropdown/hooks/useDropdown.js +21 -21
  8. package/dist/components/Filter/Filter.variants.js +2 -2
  9. package/dist/components/Input/Input.variants.js +1 -1
  10. package/dist/components/PhoneNumberInput/PhoneNumberInput.js +8 -0
  11. package/dist/components/PhoneNumberInput/PhoneNumberInput.variants.js +45 -0
  12. package/dist/components/PhoneNumberInput/components/FlagContent/FlagContent.js +27 -0
  13. package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +629 -0
  14. package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +27 -0
  15. package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +45 -0
  16. package/dist/components/PhoneNumberInput/components/Wrapper.js +621 -0
  17. package/dist/components/PhoneNumberInput/components/index.js +6 -0
  18. package/dist/components/PhoneNumberInput/contexts/index.js +8 -0
  19. package/dist/components/PhoneNumberInput/contexts/phone-number.context.js +28 -0
  20. package/dist/components/PhoneNumberInput/contexts/phone-number.hook.js +13 -0
  21. package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +6137 -0
  22. package/dist/components/PhoneNumberInput/utils/index.js +11 -0
  23. package/dist/components/Sidebar/Sidebar.variants.js +2 -2
  24. package/dist/components/Switch/Switch.variants.js +4 -4
  25. package/dist/components/Tabs/Tabs.variants.js +1 -1
  26. package/dist/components/TimePicker/TimePicker.variants.js +2 -2
  27. package/dist/components/TimePicker/components/Wrapper/Wrapper.js +1 -1
  28. package/dist/components/Typography/Typography.variants.js +18 -23
  29. package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +1 -1
  30. package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +5 -5
  31. package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +22 -1886
  32. package/dist/components/index.js +72 -70
  33. package/dist/index-2hB40Iuc.js +1873 -0
  34. package/dist/index-C3tHPg8y.js +662 -0
  35. package/dist/index.d.ts +32 -13
  36. package/dist/index.js +82 -80
  37. package/dist/libphonenumber-_7ZyKWA7.js +11549 -0
  38. package/dist/package.json +7 -1
  39. package/dist/styles.css +1 -1
  40. package/package.json +7 -1
@@ -3,7 +3,7 @@ import l, { createContext as fn, useContext as dn, useCallback as q, useRef as D
3
3
  import { cn as ue } from "../../utils/index.js";
4
4
  import { datePickerVariants as mn } from "./DatePicker.variants.js";
5
5
  import { C as yn, a as gn } from "../../chevron-right-DYvXLeql.js";
6
- import '../../DatePicker.css';function pn(e, t, r = "long") {
6
+ import '../../DatePicker.css';function bn(e, t, r = "long") {
7
7
  return new Intl.DateTimeFormat("en-US", {
8
8
  // Enforces engine to render the time. Without the option JavaScriptCore omits it.
9
9
  hour: "numeric",
@@ -11,21 +11,21 @@ import '../../DatePicker.css';function pn(e, t, r = "long") {
11
11
  timeZoneName: r
12
12
  }).format(t).split(/\s/g).slice(2).join(" ");
13
13
  }
14
- const bn = {}, le = {};
14
+ const wn = {}, le = {};
15
15
  function oe(e, t) {
16
16
  try {
17
- const n = (bn[e] ||= new Intl.DateTimeFormat("en-US", {
17
+ const n = (wn[e] ||= new Intl.DateTimeFormat("en-US", {
18
18
  timeZone: e,
19
19
  timeZoneName: "longOffset"
20
20
  }).format)(t).split("GMT")[1];
21
21
  return n in le ? le[n] : Je(n, n.split(":"));
22
22
  } catch {
23
23
  if (e in le) return le[e];
24
- const r = e?.match(wn);
24
+ const r = e?.match(pn);
25
25
  return r ? Je(e, r.slice(1)) : NaN;
26
26
  }
27
27
  }
28
- const wn = /([+-]\d\d):?(\d\d)?/;
28
+ const pn = /([+-]\d\d):?(\d\d)?/;
29
29
  function Je(e, t) {
30
30
  const r = +(t[0] || 0), n = +(t[1] || 0), o = +(t[2] || 0) / 60;
31
31
  return le[e] = r * 60 + n > 0 ? r * 60 + n + o : r * 60 - n - o;
@@ -88,10 +88,10 @@ function lt(e) {
88
88
  f.setUTCSeconds(0);
89
89
  const d = o > 0 ? f.getSeconds() : (f.getSeconds() - 60) % 60, u = Math.round(-(oe(e.timeZone, e) * 60)) % 60;
90
90
  (u || d) && (e.internal.setUTCSeconds(e.internal.getUTCSeconds() + u), Date.prototype.setUTCSeconds.call(e, Date.prototype.getUTCSeconds.call(e) + u + d));
91
- const h = oe(e.timeZone, e), p = h > 0 ? Math.floor(h) : Math.ceil(h), C = -(/* @__PURE__ */ new Date(+e)).getTimezoneOffset() - p, M = p !== r, O = C - c;
91
+ const h = oe(e.timeZone, e), b = h > 0 ? Math.floor(h) : Math.ceil(h), C = -(/* @__PURE__ */ new Date(+e)).getTimezoneOffset() - b, M = b !== r, O = C - c;
92
92
  if (M && O) {
93
93
  Date.prototype.setUTCMinutes.call(e, Date.prototype.getUTCMinutes.call(e) + O);
94
- const x = oe(e.timeZone, e), w = x > 0 ? Math.floor(x) : Math.ceil(x), D = p - w;
94
+ const x = oe(e.timeZone, e), p = x > 0 ? Math.floor(x) : Math.ceil(x), D = b - p;
95
95
  D && (e.internal.setUTCMinutes(e.internal.getUTCMinutes() + D), Date.prototype.setUTCMinutes.call(e, Date.prototype.getUTCMinutes.call(e) + D));
96
96
  }
97
97
  }
@@ -115,7 +115,7 @@ class K extends U {
115
115
  }
116
116
  toTimeString() {
117
117
  const t = this.internal.toUTCString().split(" ")[4], [r, n, o] = this.tzComponents();
118
- return `${t} GMT${r}${n}${o} (${pn(this.timeZone, this)})`;
118
+ return `${t} GMT${r}${n}${o} (${bn(this.timeZone, this)})`;
119
119
  }
120
120
  toLocaleString(t, r) {
121
121
  return Date.prototype.toLocaleString.call(this, t, {
@@ -220,7 +220,7 @@ function me(e, t) {
220
220
  const r = E(e, t?.in);
221
221
  return r.setHours(0, 0, 0, 0), r;
222
222
  }
223
- function pt(e, t, r) {
223
+ function bt(e, t, r) {
224
224
  const [n, o] = ie(
225
225
  r?.in,
226
226
  e,
@@ -262,11 +262,11 @@ function Nn(e, t, r) {
262
262
  );
263
263
  return +me(n) == +me(o);
264
264
  }
265
- function bt(e) {
265
+ function wt(e) {
266
266
  return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
267
267
  }
268
268
  function xn(e) {
269
- return !(!bt(e) && typeof e != "number" || isNaN(+E(e)));
269
+ return !(!wt(e) && typeof e != "number" || isNaN(+E(e)));
270
270
  }
271
271
  function Tn(e, t, r) {
272
272
  const [n, o] = ie(
@@ -280,12 +280,12 @@ function Yn(e, t) {
280
280
  const r = E(e, t?.in), n = r.getMonth();
281
281
  return r.setFullYear(r.getFullYear(), n + 1, 0), r.setHours(23, 59, 59, 999), r;
282
282
  }
283
- function wt(e, t) {
283
+ function pt(e, t) {
284
284
  const [r, n] = ie(e, t.start, t.end);
285
285
  return { start: r, end: n };
286
286
  }
287
287
  function En(e, t) {
288
- const { start: r, end: n } = wt(t?.in, e);
288
+ const { start: r, end: n } = pt(t?.in, e);
289
289
  let o = +r > +n;
290
290
  const a = o ? +r : +n, s = o ? n : r;
291
291
  s.setHours(0, 0, 0, 0), s.setDate(1);
@@ -308,7 +308,7 @@ function Mt(e, t) {
308
308
  return r.setFullYear(r.getFullYear(), 0, 1), r.setHours(0, 0, 0, 0), r;
309
309
  }
310
310
  function Fn(e, t) {
311
- const { start: r, end: n } = wt(t?.in, e);
311
+ const { start: r, end: n } = pt(t?.in, e);
312
312
  let o = +r > +n;
313
313
  const a = o ? +r : +n, s = o ? n : r;
314
314
  s.setHours(0, 0, 0, 0), s.setMonth(0, 1);
@@ -758,7 +758,7 @@ const nr = /^(\d+)(th|st|nd|rd)?/i, rr = /\d+/i, or = {
758
758
  };
759
759
  function yr(e, t) {
760
760
  const r = E(e, t?.in);
761
- return pt(r, Mt(r)) + 1;
761
+ return bt(r, Mt(r)) + 1;
762
762
  }
763
763
  function Dt(e, t) {
764
764
  const r = E(e, t?.in), n = +he(r) - +vn(r);
@@ -1435,7 +1435,7 @@ const at = (e, t) => {
1435
1435
  default:
1436
1436
  return t.time({ width: "full" });
1437
1437
  }
1438
- }, pr = (e, t) => {
1438
+ }, br = (e, t) => {
1439
1439
  const r = e.match(/(P+)(p+)?/) || [], n = r[1], o = r[2];
1440
1440
  if (!o)
1441
1441
  return at(e, t);
@@ -1456,12 +1456,12 @@ const at = (e, t) => {
1456
1456
  break;
1457
1457
  }
1458
1458
  return a.replace("{{date}}", at(n, t)).replace("{{time}}", Wt(o, t));
1459
- }, br = {
1459
+ }, wr = {
1460
1460
  p: Wt,
1461
- P: pr
1462
- }, wr = /^D+$/, Mr = /^Y+$/, kr = ["D", "DD", "YY", "YYYY"];
1461
+ P: br
1462
+ }, pr = /^D+$/, Mr = /^Y+$/, kr = ["D", "DD", "YY", "YYYY"];
1463
1463
  function Dr(e) {
1464
- return wr.test(e);
1464
+ return pr.test(e);
1465
1465
  }
1466
1466
  function vr(e) {
1467
1467
  return Mr.test(e);
@@ -1482,7 +1482,7 @@ function Yr(e, t, r) {
1482
1482
  let c = t.match(Cr).map((d) => {
1483
1483
  const u = d[0];
1484
1484
  if (u === "p" || u === "P") {
1485
- const h = br[u];
1485
+ const h = wr[u];
1486
1486
  return h(d, o.formatLong);
1487
1487
  }
1488
1488
  return d;
@@ -1581,7 +1581,7 @@ class R {
1581
1581
  * @param overrides Custom overrides for the date library functions.
1582
1582
  */
1583
1583
  constructor(t, r) {
1584
- this.Date = Date, this.today = () => this.overrides?.today ? this.overrides.today() : this.options.timeZone ? K.tz(this.options.timeZone) : new this.Date(), this.newDate = (n, o, a) => this.overrides?.newDate ? this.overrides.newDate(n, o, a) : this.options.timeZone ? new K(n, o, a, this.options.timeZone) : new Date(n, o, a), this.addDays = (n, o) => this.overrides?.addDays ? this.overrides.addDays(n, o) : mt(n, o), this.addMonths = (n, o) => this.overrides?.addMonths ? this.overrides.addMonths(n, o) : yt(n, o), this.addWeeks = (n, o) => this.overrides?.addWeeks ? this.overrides.addWeeks(n, o) : On(n, o), this.addYears = (n, o) => this.overrides?.addYears ? this.overrides.addYears(n, o) : Wn(n, o), this.differenceInCalendarDays = (n, o) => this.overrides?.differenceInCalendarDays ? this.overrides.differenceInCalendarDays(n, o) : pt(n, o), this.differenceInCalendarMonths = (n, o) => this.overrides?.differenceInCalendarMonths ? this.overrides.differenceInCalendarMonths(n, o) : Tn(n, o), this.eachMonthOfInterval = (n) => this.overrides?.eachMonthOfInterval ? this.overrides.eachMonthOfInterval(n) : En(n), this.eachYearOfInterval = (n) => {
1584
+ this.Date = Date, this.today = () => this.overrides?.today ? this.overrides.today() : this.options.timeZone ? K.tz(this.options.timeZone) : new this.Date(), this.newDate = (n, o, a) => this.overrides?.newDate ? this.overrides.newDate(n, o, a) : this.options.timeZone ? new K(n, o, a, this.options.timeZone) : new Date(n, o, a), this.addDays = (n, o) => this.overrides?.addDays ? this.overrides.addDays(n, o) : mt(n, o), this.addMonths = (n, o) => this.overrides?.addMonths ? this.overrides.addMonths(n, o) : yt(n, o), this.addWeeks = (n, o) => this.overrides?.addWeeks ? this.overrides.addWeeks(n, o) : On(n, o), this.addYears = (n, o) => this.overrides?.addYears ? this.overrides.addYears(n, o) : Wn(n, o), this.differenceInCalendarDays = (n, o) => this.overrides?.differenceInCalendarDays ? this.overrides.differenceInCalendarDays(n, o) : bt(n, o), this.differenceInCalendarMonths = (n, o) => this.overrides?.differenceInCalendarMonths ? this.overrides.differenceInCalendarMonths(n, o) : Tn(n, o), this.eachMonthOfInterval = (n) => this.overrides?.eachMonthOfInterval ? this.overrides.eachMonthOfInterval(n) : En(n), this.eachYearOfInterval = (n) => {
1585
1585
  const o = this.overrides?.eachYearOfInterval ? this.overrides.eachYearOfInterval(n) : Fn(n), a = new Set(o.map((i) => this.getYear(i)));
1586
1586
  if (a.size === o.length)
1587
1587
  return o;
@@ -1592,7 +1592,7 @@ class R {
1592
1592
  }, this.endOfBroadcastWeek = (n) => this.overrides?.endOfBroadcastWeek ? this.overrides.endOfBroadcastWeek(n) : Gr(n, this), this.endOfISOWeek = (n) => this.overrides?.endOfISOWeek ? this.overrides.endOfISOWeek(n) : Bn(n), this.endOfMonth = (n) => this.overrides?.endOfMonth ? this.overrides.endOfMonth(n) : Yn(n), this.endOfWeek = (n, o) => this.overrides?.endOfWeek ? this.overrides.endOfWeek(n, o) : kt(n, this.options), this.endOfYear = (n) => this.overrides?.endOfYear ? this.overrides.endOfYear(n) : _n(n), this.format = (n, o, a) => {
1593
1593
  const s = this.overrides?.format ? this.overrides.format(n, o, this.options) : Yr(n, o, this.options);
1594
1594
  return this.options.numerals && this.options.numerals !== "latn" ? this.replaceDigits(s) : s;
1595
- }, this.getISOWeek = (n) => this.overrides?.getISOWeek ? this.overrides.getISOWeek(n) : Dt(n), this.getMonth = (n, o) => this.overrides?.getMonth ? this.overrides.getMonth(n, this.options) : _r(n, this.options), this.getYear = (n, o) => this.overrides?.getYear ? this.overrides.getYear(n, this.options) : Fr(n, this.options), this.getWeek = (n, o) => this.overrides?.getWeek ? this.overrides.getWeek(n, this.options) : Ot(n, this.options), this.isAfter = (n, o) => this.overrides?.isAfter ? this.overrides.isAfter(n, o) : Br(n, o), this.isBefore = (n, o) => this.overrides?.isBefore ? this.overrides.isBefore(n, o) : Ir(n, o), this.isDate = (n) => this.overrides?.isDate ? this.overrides.isDate(n) : bt(n), this.isSameDay = (n, o) => this.overrides?.isSameDay ? this.overrides.isSameDay(n, o) : Nn(n, o), this.isSameMonth = (n, o) => this.overrides?.isSameMonth ? this.overrides.isSameMonth(n, o) : Ar(n, o), this.isSameYear = (n, o) => this.overrides?.isSameYear ? this.overrides.isSameYear(n, o) : Hr(n, o), this.max = (n) => this.overrides?.max ? this.overrides.max(n) : Sn(n), this.min = (n) => this.overrides?.min ? this.overrides.min(n) : Cn(n), this.setMonth = (n, o) => this.overrides?.setMonth ? this.overrides.setMonth(n, o) : qr(n, o), this.setYear = (n, o) => this.overrides?.setYear ? this.overrides.setYear(n, o) : jr(n, o), this.startOfBroadcastWeek = (n, o) => this.overrides?.startOfBroadcastWeek ? this.overrides.startOfBroadcastWeek(n, this) : St(n, this), this.startOfDay = (n) => this.overrides?.startOfDay ? this.overrides.startOfDay(n) : me(n), this.startOfISOWeek = (n) => this.overrides?.startOfISOWeek ? this.overrides.startOfISOWeek(n) : he(n), this.startOfMonth = (n) => this.overrides?.startOfMonth ? this.overrides.startOfMonth(n) : Pn(n), this.startOfWeek = (n, o) => this.overrides?.startOfWeek ? this.overrides.startOfWeek(n, this.options) : ae(n, this.options), this.startOfYear = (n) => this.overrides?.startOfYear ? this.overrides.startOfYear(n) : Mt(n), this.options = { locale: $e, ...t }, this.overrides = r;
1595
+ }, this.getISOWeek = (n) => this.overrides?.getISOWeek ? this.overrides.getISOWeek(n) : Dt(n), this.getMonth = (n, o) => this.overrides?.getMonth ? this.overrides.getMonth(n, this.options) : _r(n, this.options), this.getYear = (n, o) => this.overrides?.getYear ? this.overrides.getYear(n, this.options) : Fr(n, this.options), this.getWeek = (n, o) => this.overrides?.getWeek ? this.overrides.getWeek(n, this.options) : Ot(n, this.options), this.isAfter = (n, o) => this.overrides?.isAfter ? this.overrides.isAfter(n, o) : Br(n, o), this.isBefore = (n, o) => this.overrides?.isBefore ? this.overrides.isBefore(n, o) : Ir(n, o), this.isDate = (n) => this.overrides?.isDate ? this.overrides.isDate(n) : wt(n), this.isSameDay = (n, o) => this.overrides?.isSameDay ? this.overrides.isSameDay(n, o) : Nn(n, o), this.isSameMonth = (n, o) => this.overrides?.isSameMonth ? this.overrides.isSameMonth(n, o) : Ar(n, o), this.isSameYear = (n, o) => this.overrides?.isSameYear ? this.overrides.isSameYear(n, o) : Hr(n, o), this.max = (n) => this.overrides?.max ? this.overrides.max(n) : Sn(n), this.min = (n) => this.overrides?.min ? this.overrides.min(n) : Cn(n), this.setMonth = (n, o) => this.overrides?.setMonth ? this.overrides.setMonth(n, o) : qr(n, o), this.setYear = (n, o) => this.overrides?.setYear ? this.overrides.setYear(n, o) : jr(n, o), this.startOfBroadcastWeek = (n, o) => this.overrides?.startOfBroadcastWeek ? this.overrides.startOfBroadcastWeek(n, this) : St(n, this), this.startOfDay = (n) => this.overrides?.startOfDay ? this.overrides.startOfDay(n) : me(n), this.startOfISOWeek = (n) => this.overrides?.startOfISOWeek ? this.overrides.startOfISOWeek(n) : he(n), this.startOfMonth = (n) => this.overrides?.startOfMonth ? this.overrides.startOfMonth(n) : Pn(n), this.startOfWeek = (n, o) => this.overrides?.startOfWeek ? this.overrides.startOfWeek(n, this.options) : ae(n, this.options), this.startOfYear = (n) => this.overrides?.startOfYear ? this.overrides.startOfYear(n) : Mt(n), this.options = { locale: $e, ...t }, this.overrides = r;
1596
1596
  }
1597
1597
  /**
1598
1598
  * Generates a mapping of Arabic digits (0-9) to the target numbering system
@@ -1852,17 +1852,17 @@ function go(e) {
1852
1852
  const { week: t, ...r } = e;
1853
1853
  return l.createElement("th", { ...r });
1854
1854
  }
1855
- function po(e) {
1855
+ function bo(e) {
1856
1856
  return l.createElement("th", { ...e });
1857
1857
  }
1858
- function bo(e) {
1858
+ function wo(e) {
1859
1859
  return l.createElement("tbody", { ...e });
1860
1860
  }
1861
- function wo(e) {
1861
+ function po(e) {
1862
1862
  const { components: t } = ge();
1863
1863
  return l.createElement(t.Dropdown, { ...e });
1864
1864
  }
1865
- const Mo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, Button: Xr, CaptionLabel: Zr, Chevron: Ur, Day: Vr, DayButton: Lr, Dropdown: Kr, DropdownNav: Jr, Footer: eo, Month: to, MonthCaption: no, MonthGrid: ro, Months: oo, MonthsDropdown: so, Nav: ao, NextMonthButton: io, Option: co, PreviousMonthButton: uo, Root: fo, Select: lo, Week: ho, WeekNumber: go, WeekNumberHeader: po, Weekday: mo, Weekdays: yo, Weeks: bo, YearsDropdown: wo }, Symbol.toStringTag, { value: "Module" }));
1865
+ const Mo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, Button: Xr, CaptionLabel: Zr, Chevron: Ur, Day: Vr, DayButton: Lr, Dropdown: Kr, DropdownNav: Jr, Footer: eo, Month: to, MonthCaption: no, MonthGrid: ro, Months: oo, MonthsDropdown: so, Nav: ao, NextMonthButton: io, Option: co, PreviousMonthButton: uo, Root: fo, Select: lo, Week: ho, WeekNumber: go, WeekNumberHeader: bo, Weekday: mo, Weekdays: yo, Weeks: wo, YearsDropdown: po }, Symbol.toStringTag, { value: "Module" }));
1866
1866
  function J(e, t, r = !1, n = V) {
1867
1867
  let { from: o, to: a } = e;
1868
1868
  const { differenceInCalendarDays: s, isSameDay: i } = n;
@@ -1907,7 +1907,7 @@ function ee(e, t, r = V) {
1907
1907
  });
1908
1908
  }
1909
1909
  function ko(e, t, r, n, o) {
1910
- const { disabled: a, hidden: s, modifiers: i, showOutsideDays: c, broadcastCalendar: f, today: d = o.today() } = t, { isSameDay: u, isSameMonth: h, startOfMonth: p, isBefore: v, endOfMonth: C, isAfter: M } = o, O = r && p(r), x = n && C(n), w = {
1910
+ const { disabled: a, hidden: s, modifiers: i, showOutsideDays: c, broadcastCalendar: f, today: d = o.today() } = t, { isSameDay: u, isSameMonth: h, startOfMonth: b, isBefore: v, endOfMonth: C, isAfter: M } = o, O = r && b(r), x = n && C(n), p = {
1911
1911
  [_.focused]: [],
1912
1912
  [_.outside]: [],
1913
1913
  [_.disabled]: [],
@@ -1917,9 +1917,9 @@ function ko(e, t, r, n, o) {
1917
1917
  for (const g of e) {
1918
1918
  const { date: m, displayMonth: W } = g, N = !!(W && !h(m, W)), B = !!(O && v(m, O)), I = !!(x && M(m, x)), H = !!(a && ee(m, a, o)), $ = !!(s && ee(m, s, o)) || B || I || // Broadcast calendar will show outside days as default
1919
1919
  !f && !c && N || f && c === !1 && N, ce = u(m, d);
1920
- N && w.outside.push(g), H && w.disabled.push(g), $ && w.hidden.push(g), ce && w.today.push(g), i && Object.keys(i).forEach((ne) => {
1921
- const be = i?.[ne];
1922
- be && ee(m, be, o) && (D[ne] ? D[ne].push(g) : D[ne] = [g]);
1920
+ N && p.outside.push(g), H && p.disabled.push(g), $ && p.hidden.push(g), ce && p.today.push(g), i && Object.keys(i).forEach((ne) => {
1921
+ const we = i?.[ne];
1922
+ we && ee(m, we, o) && (D[ne] ? D[ne].push(g) : D[ne] = [g]);
1923
1923
  });
1924
1924
  }
1925
1925
  return (g) => {
@@ -1930,8 +1930,8 @@ function ko(e, t, r, n, o) {
1930
1930
  [_.outside]: !1,
1931
1931
  [_.today]: !1
1932
1932
  }, W = {};
1933
- for (const N in w) {
1934
- const B = w[N];
1933
+ for (const N in p) {
1934
+ const B = p[N];
1935
1935
  m[N] = B.some((I) => I === g);
1936
1936
  }
1937
1937
  for (const N in D)
@@ -2012,8 +2012,8 @@ function Fo(e, t, r, n, o) {
2012
2012
  start: s(e),
2013
2013
  end: i(e)
2014
2014
  }).map((h) => {
2015
- const p = n.formatMonthDropdown(h, o), v = f(h), C = t && h < a(t) || r && h > a(r) || !1;
2016
- return { value: v, label: p, disabled: C };
2015
+ const b = n.formatMonthDropdown(h, o), v = f(h), C = t && h < a(t) || r && h > a(r) || !1;
2016
+ return { value: v, label: b, disabled: C };
2017
2017
  });
2018
2018
  }
2019
2019
  function Bo(e, t = {}, r = {}) {
@@ -2038,10 +2038,10 @@ function Ao(e, t, r, n, o = !1) {
2038
2038
  return;
2039
2039
  const { startOfYear: a, endOfYear: s, eachYearOfInterval: i, getYear: c } = n, f = a(e), d = s(t), u = i({ start: f, end: d });
2040
2040
  return o && u.reverse(), u.map((h) => {
2041
- const p = r.formatYearDropdown(h, n);
2041
+ const b = r.formatYearDropdown(h, n);
2042
2042
  return {
2043
2043
  value: c(h),
2044
- label: p,
2044
+ label: b,
2045
2045
  disabled: !1
2046
2046
  };
2047
2047
  });
@@ -2083,9 +2083,9 @@ function Zo(e) {
2083
2083
  function Uo(e) {
2084
2084
  return "Choose the Year";
2085
2085
  }
2086
- const Vo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, labelCaption: qo, labelDay: Ho, labelDayButton: Pt, labelGrid: _t, labelGridcell: jo, labelMonthDropdown: Ro, labelNav: $o, labelNext: Go, labelPrevious: zo, labelWeekNumber: Xo, labelWeekNumberHeader: Zo, labelWeekday: Qo, labelYearDropdown: Uo }, Symbol.toStringTag, { value: "Module" })), pe = (e) => e instanceof HTMLElement ? e : null, Ae = (e) => [
2086
+ const Vo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, labelCaption: qo, labelDay: Ho, labelDayButton: Pt, labelGrid: _t, labelGridcell: jo, labelMonthDropdown: Ro, labelNav: $o, labelNext: Go, labelPrevious: zo, labelWeekNumber: Xo, labelWeekNumberHeader: Zo, labelWeekday: Qo, labelYearDropdown: Uo }, Symbol.toStringTag, { value: "Module" })), be = (e) => e instanceof HTMLElement ? e : null, Ae = (e) => [
2087
2087
  ...e.querySelectorAll("[data-animated-month]") ?? []
2088
- ], Lo = (e) => pe(e.querySelector("[data-animated-month]")), He = (e) => pe(e.querySelector("[data-animated-caption]")), qe = (e) => pe(e.querySelector("[data-animated-weeks]")), Ko = (e) => pe(e.querySelector("[data-animated-nav]")), Jo = (e) => pe(e.querySelector("[data-animated-weekdays]"));
2088
+ ], Lo = (e) => be(e.querySelector("[data-animated-month]")), He = (e) => be(e.querySelector("[data-animated-caption]")), qe = (e) => be(e.querySelector("[data-animated-weeks]")), Ko = (e) => be(e.querySelector("[data-animated-nav]")), Jo = (e) => be(e.querySelector("[data-animated-weekdays]"));
2089
2089
  function es(e, t, { classNames: r, months: n, focused: o, dateLib: a }) {
2090
2090
  const s = De(null), i = De(n), c = De(!1);
2091
2091
  ln(() => {
@@ -2094,16 +2094,16 @@ function es(e, t, { classNames: r, months: n, focused: o, dateLib: a }) {
2094
2094
  !(e.current instanceof HTMLElement) || // validation required for the animation to work as expected
2095
2095
  n.length === 0 || f.length === 0 || n.length !== f.length)
2096
2096
  return;
2097
- const d = a.isSameMonth(n[0].date, f[0].date), u = a.isAfter(n[0].date, f[0].date), h = u ? r[j.caption_after_enter] : r[j.caption_before_enter], p = u ? r[j.weeks_after_enter] : r[j.weeks_before_enter], v = s.current, C = e.current.cloneNode(!0);
2098
- if (C instanceof HTMLElement ? (Ae(C).forEach((w) => {
2099
- if (!(w instanceof HTMLElement))
2097
+ const d = a.isSameMonth(n[0].date, f[0].date), u = a.isAfter(n[0].date, f[0].date), h = u ? r[j.caption_after_enter] : r[j.caption_before_enter], b = u ? r[j.weeks_after_enter] : r[j.weeks_before_enter], v = s.current, C = e.current.cloneNode(!0);
2098
+ if (C instanceof HTMLElement ? (Ae(C).forEach((p) => {
2099
+ if (!(p instanceof HTMLElement))
2100
2100
  return;
2101
- const D = Lo(w);
2102
- D && w.contains(D) && w.removeChild(D);
2103
- const g = He(w);
2101
+ const D = Lo(p);
2102
+ D && p.contains(D) && p.removeChild(D);
2103
+ const g = He(p);
2104
2104
  g && g.classList.remove(h);
2105
- const m = qe(w);
2106
- m && m.classList.remove(p);
2105
+ const m = qe(p);
2106
+ m && m.classList.remove(b);
2107
2107
  }), s.current = C) : s.current = null, c.current || d || // skip animation if a day is focused because it can cause issues to the animation and is better for a11y
2108
2108
  o)
2109
2109
  return;
@@ -2111,17 +2111,17 @@ function es(e, t, { classNames: r, months: n, focused: o, dateLib: a }) {
2111
2111
  if (O?.every((x) => x instanceof HTMLElement) && M && M.every((x) => x instanceof HTMLElement)) {
2112
2112
  c.current = !0, e.current.style.isolation = "isolate";
2113
2113
  const x = Ko(e.current);
2114
- x && (x.style.zIndex = "1"), O.forEach((w, D) => {
2114
+ x && (x.style.zIndex = "1"), O.forEach((p, D) => {
2115
2115
  const g = M[D];
2116
2116
  if (!g)
2117
2117
  return;
2118
- w.style.position = "relative", w.style.overflow = "hidden";
2119
- const m = He(w);
2118
+ p.style.position = "relative", p.style.overflow = "hidden";
2119
+ const m = He(p);
2120
2120
  m && m.classList.add(h);
2121
- const W = qe(w);
2122
- W && W.classList.add(p);
2121
+ const W = qe(p);
2122
+ W && W.classList.add(b);
2123
2123
  const N = () => {
2124
- c.current = !1, e.current && (e.current.style.isolation = ""), x && (x.style.zIndex = ""), m && m.classList.remove(h), W && W.classList.remove(p), w.style.position = "", w.style.overflow = "", w.contains(g) && w.removeChild(g);
2124
+ c.current = !1, e.current && (e.current.style.isolation = ""), x && (x.style.zIndex = ""), m && m.classList.remove(h), W && W.classList.remove(b), p.style.position = "", p.style.overflow = "", p.contains(g) && p.removeChild(g);
2125
2125
  };
2126
2126
  g.style.pointerEvents = "none", g.style.position = "absolute", g.style.overflow = "hidden", g.setAttribute("aria-hidden", "true");
2127
2127
  const B = Jo(g);
@@ -2129,13 +2129,13 @@ function es(e, t, { classNames: r, months: n, focused: o, dateLib: a }) {
2129
2129
  const I = He(g);
2130
2130
  I && (I.classList.add(u ? r[j.caption_before_exit] : r[j.caption_after_exit]), I.addEventListener("animationend", N));
2131
2131
  const H = qe(g);
2132
- H && H.classList.add(u ? r[j.weeks_before_exit] : r[j.weeks_after_exit]), w.insertBefore(g, w.firstChild);
2132
+ H && H.classList.add(u ? r[j.weeks_before_exit] : r[j.weeks_after_exit]), p.insertBefore(g, p.firstChild);
2133
2133
  });
2134
2134
  }
2135
2135
  });
2136
2136
  }
2137
2137
  function ts(e, t, r, n) {
2138
- const o = e[0], a = e[e.length - 1], { ISOWeek: s, fixedWeeks: i, broadcastCalendar: c } = r ?? {}, { addDays: f, differenceInCalendarDays: d, differenceInCalendarMonths: u, endOfBroadcastWeek: h, endOfISOWeek: p, endOfMonth: v, endOfWeek: C, isAfter: M, startOfBroadcastWeek: O, startOfISOWeek: x, startOfWeek: w } = n, D = c ? O(o, n) : s ? x(o) : w(o), g = c ? h(a) : s ? p(v(a)) : C(v(a)), m = d(g, D), W = u(a, o) + 1, N = [];
2138
+ const o = e[0], a = e[e.length - 1], { ISOWeek: s, fixedWeeks: i, broadcastCalendar: c } = r ?? {}, { addDays: f, differenceInCalendarDays: d, differenceInCalendarMonths: u, endOfBroadcastWeek: h, endOfISOWeek: b, endOfMonth: v, endOfWeek: C, isAfter: M, startOfBroadcastWeek: O, startOfISOWeek: x, startOfWeek: p } = n, D = c ? O(o, n) : s ? x(o) : p(o), g = c ? h(a) : s ? b(v(a)) : C(v(a)), m = d(g, D), W = u(a, o) + 1, N = [];
2139
2139
  for (let H = 0; H <= m; H++) {
2140
2140
  const $ = f(D, H);
2141
2141
  if (t && M($, t))
@@ -2180,16 +2180,16 @@ function ct(e, t, r, n) {
2180
2180
  return t && f(c, t) < 0 && (c = t), u(c);
2181
2181
  }
2182
2182
  function os(e, t, r, n) {
2183
- const { addDays: o, endOfBroadcastWeek: a, endOfISOWeek: s, endOfMonth: i, endOfWeek: c, getISOWeek: f, getWeek: d, startOfBroadcastWeek: u, startOfISOWeek: h, startOfWeek: p } = n, v = e.reduce((C, M) => {
2184
- const O = r.broadcastCalendar ? u(M, n) : r.ISOWeek ? h(M) : p(M), x = r.broadcastCalendar ? a(M) : r.ISOWeek ? s(i(M)) : c(i(M)), w = t.filter((W) => W >= O && W <= x), D = r.broadcastCalendar ? 35 : 42;
2185
- if (r.fixedWeeks && w.length < D) {
2183
+ const { addDays: o, endOfBroadcastWeek: a, endOfISOWeek: s, endOfMonth: i, endOfWeek: c, getISOWeek: f, getWeek: d, startOfBroadcastWeek: u, startOfISOWeek: h, startOfWeek: b } = n, v = e.reduce((C, M) => {
2184
+ const O = r.broadcastCalendar ? u(M, n) : r.ISOWeek ? h(M) : b(M), x = r.broadcastCalendar ? a(M) : r.ISOWeek ? s(i(M)) : c(i(M)), p = t.filter((W) => W >= O && W <= x), D = r.broadcastCalendar ? 35 : 42;
2185
+ if (r.fixedWeeks && p.length < D) {
2186
2186
  const W = t.filter((N) => {
2187
- const B = D - w.length;
2187
+ const B = D - p.length;
2188
2188
  return N > x && N <= o(x, B);
2189
2189
  });
2190
- w.push(...W);
2190
+ p.push(...W);
2191
2191
  }
2192
- const g = w.reduce((W, N) => {
2192
+ const g = p.reduce((W, N) => {
2193
2193
  const B = r.ISOWeek ? f(N) : d(N), I = W.find(($) => $.weekNumber === B), H = new Ct(N, M, n);
2194
2194
  return I ? I.days.push(H) : W.push(new Qr(B, [H])), W;
2195
2195
  }, []), m = new zr(M, g);
@@ -2199,10 +2199,10 @@ function os(e, t, r, n) {
2199
2199
  }
2200
2200
  function ss(e, t) {
2201
2201
  let { startMonth: r, endMonth: n } = e;
2202
- const { startOfYear: o, startOfDay: a, startOfMonth: s, endOfMonth: i, addYears: c, endOfYear: f, newDate: d, today: u } = t, { fromYear: h, toYear: p, fromMonth: v, toMonth: C } = e;
2203
- !r && v && (r = v), !r && h && (r = t.newDate(h, 0, 1)), !n && C && (n = C), !n && p && (n = d(p, 11, 31));
2202
+ const { startOfYear: o, startOfDay: a, startOfMonth: s, endOfMonth: i, addYears: c, endOfYear: f, newDate: d, today: u } = t, { fromYear: h, toYear: b, fromMonth: v, toMonth: C } = e;
2203
+ !r && v && (r = v), !r && h && (r = t.newDate(h, 0, 1)), !n && C && (n = C), !n && b && (n = d(b, 11, 31));
2204
2204
  const M = e.captionLayout === "dropdown" || e.captionLayout === "dropdown-years";
2205
- return r ? r = s(r) : h ? r = d(h, 0, 1) : !r && M && (r = o(c(e.today ?? u(), -100))), n ? n = i(n) : p ? n = d(p, 11, 31) : !n && M && (n = f(e.today ?? u())), [
2205
+ return r ? r = s(r) : h ? r = d(h, 0, 1) : !r && M && (r = o(c(e.today ?? u(), -100))), n ? n = i(n) : b ? n = d(b, 11, 31) : !n && M && (n = f(e.today ?? u())), [
2206
2206
  r && a(r),
2207
2207
  n && a(n)
2208
2208
  ];
@@ -2243,7 +2243,7 @@ function us(e, t) {
2243
2243
  const D = ct(e, r, n, t);
2244
2244
  c(D);
2245
2245
  }, [e.timeZone]);
2246
- const { months: f, weeks: d, days: u, previousMonth: h, nextMonth: p } = ve(() => {
2246
+ const { months: f, weeks: d, days: u, previousMonth: h, nextMonth: b } = ve(() => {
2247
2247
  const D = rs(i, n, { numberOfMonths: e.numberOfMonths }, t), g = ts(D, e.endMonth ? a(e.endMonth) : void 0, {
2248
2248
  ISOWeek: e.ISOWeek,
2249
2249
  fixedWeeks: e.fixedWeeks,
@@ -2287,7 +2287,7 @@ function us(e, t) {
2287
2287
  navStart: r,
2288
2288
  navEnd: n,
2289
2289
  previousMonth: h,
2290
- nextMonth: p,
2290
+ nextMonth: b,
2291
2291
  goToMonth: O,
2292
2292
  goToDay: (D) => {
2293
2293
  M(D) || O(D.date);
@@ -2310,14 +2310,14 @@ function fs(e, t, r, n) {
2310
2310
  return o || (o = e.find((s) => ut(t(s)))), o;
2311
2311
  }
2312
2312
  function ds(e, t, r, n, o, a, s) {
2313
- const { ISOWeek: i, broadcastCalendar: c } = a, { addDays: f, addMonths: d, addWeeks: u, addYears: h, endOfBroadcastWeek: p, endOfISOWeek: v, endOfWeek: C, max: M, min: O, startOfBroadcastWeek: x, startOfISOWeek: w, startOfWeek: D } = s;
2313
+ const { ISOWeek: i, broadcastCalendar: c } = a, { addDays: f, addMonths: d, addWeeks: u, addYears: h, endOfBroadcastWeek: b, endOfISOWeek: v, endOfWeek: C, max: M, min: O, startOfBroadcastWeek: x, startOfISOWeek: p, startOfWeek: D } = s;
2314
2314
  let m = {
2315
2315
  day: f,
2316
2316
  week: u,
2317
2317
  month: d,
2318
2318
  year: h,
2319
- startOfWeek: (W) => c ? x(W, s) : i ? w(W) : D(W),
2320
- endOfWeek: (W) => c ? p(W) : i ? v(W) : C(W)
2319
+ startOfWeek: (W) => c ? x(W, s) : i ? p(W) : D(W),
2320
+ endOfWeek: (W) => c ? b(W) : i ? v(W) : C(W)
2321
2321
  }[e](r, t === "after" ? 1 : -1);
2322
2322
  return t === "before" && n ? m = M([n, m]) : t === "after" && o && (m = O([o, m])), m;
2323
2323
  }
@@ -2340,23 +2340,23 @@ function ls(e, t, r, n, o) {
2340
2340
  if (!f)
2341
2341
  return;
2342
2342
  const O = Ft(C, M, f, t.navStart, t.navEnd, e, o);
2343
- O && (e.disableNavigation && !t.days.some((w) => w.isEqualTo(O)) || (t.goToDay(O), d(O)));
2343
+ O && (e.disableNavigation && !t.days.some((p) => p.isEqualTo(O)) || (t.goToDay(O), d(O)));
2344
2344
  }
2345
2345
  };
2346
2346
  }
2347
2347
  function hs(e, t) {
2348
- const { selected: r, required: n, onSelect: o } = e, [a, s] = Se(r, o ? r : void 0), i = o ? r : a, { isSameDay: c } = t, f = (p) => i?.some((v) => c(v, p)) ?? !1, { min: d, max: u } = e;
2348
+ const { selected: r, required: n, onSelect: o } = e, [a, s] = Se(r, o ? r : void 0), i = o ? r : a, { isSameDay: c } = t, f = (b) => i?.some((v) => c(v, b)) ?? !1, { min: d, max: u } = e;
2349
2349
  return {
2350
2350
  selected: i,
2351
- select: (p, v, C) => {
2351
+ select: (b, v, C) => {
2352
2352
  let M = [...i ?? []];
2353
- if (f(p)) {
2353
+ if (f(b)) {
2354
2354
  if (i?.length === d || n && i?.length === 1)
2355
2355
  return;
2356
- M = i?.filter((O) => !c(O, p));
2356
+ M = i?.filter((O) => !c(O, b));
2357
2357
  } else
2358
- i?.length === u ? M = [p] : M = [...M, p];
2359
- return o || s(M), o?.(M, p, v, C), M;
2358
+ i?.length === u ? M = [b] : M = [...M, b];
2359
+ return o || s(M), o?.(M, b, v, C), M;
2360
2360
  },
2361
2361
  isSelected: f
2362
2362
  };
@@ -2422,30 +2422,30 @@ function gs(e, t, r = V) {
2422
2422
  }
2423
2423
  return !1;
2424
2424
  }
2425
- function ps(e, t) {
2425
+ function bs(e, t) {
2426
2426
  const { disabled: r, excludeDisabled: n, selected: o, required: a, onSelect: s } = e, [i, c] = Se(o, s ? o : void 0), f = s ? o : i;
2427
2427
  return {
2428
2428
  selected: f,
2429
- select: (h, p, v) => {
2429
+ select: (h, b, v) => {
2430
2430
  const { min: C, max: M } = e, O = h ? ms(h, f, C, M, a, t) : void 0;
2431
- return n && r && O?.from && O.to && gs({ from: O.from, to: O.to }, r, t) && (O.from = h, O.to = void 0), s || c(O), s?.(O, h, p, v), O;
2431
+ return n && r && O?.from && O.to && gs({ from: O.from, to: O.to }, r, t) && (O.from = h, O.to = void 0), s || c(O), s?.(O, h, b, v), O;
2432
2432
  },
2433
2433
  isSelected: (h) => f && J(f, h, !1, t)
2434
2434
  };
2435
2435
  }
2436
- function bs(e, t) {
2436
+ function ws(e, t) {
2437
2437
  const { selected: r, required: n, onSelect: o } = e, [a, s] = Se(r, o ? r : void 0), i = o ? r : a, { isSameDay: c } = t;
2438
2438
  return {
2439
2439
  selected: i,
2440
- select: (u, h, p) => {
2440
+ select: (u, h, b) => {
2441
2441
  let v = u;
2442
- return !n && i && i && c(u, i) && (v = void 0), o || s(v), o?.(v, u, h, p), v;
2442
+ return !n && i && i && c(u, i) && (v = void 0), o || s(v), o?.(v, u, h, b), v;
2443
2443
  },
2444
2444
  isSelected: (u) => i ? c(i, u) : !1
2445
2445
  };
2446
2446
  }
2447
- function ws(e, t) {
2448
- const r = bs(e, t), n = hs(e, t), o = ps(e, t);
2447
+ function ps(e, t) {
2448
+ const r = ws(e, t), n = hs(e, t), o = bs(e, t);
2449
2449
  switch (e.mode) {
2450
2450
  case "single":
2451
2451
  return r;
@@ -2526,48 +2526,48 @@ function Ms(e) {
2526
2526
  t.classNames
2527
2527
  ]);
2528
2528
  t.today || (t = { ...t, today: s.today() });
2529
- const { captionLayout: f, mode: d, navLayout: u, numberOfMonths: h = 1, onDayBlur: p, onDayClick: v, onDayFocus: C, onDayKeyDown: M, onDayMouseEnter: O, onDayMouseLeave: x, onNextClick: w, onPrevClick: D, showWeekNumber: g, styles: m } = t, { formatCaption: W, formatDay: N, formatMonthDropdown: B, formatWeekNumber: I, formatWeekNumberHeader: H, formatWeekdayName: $, formatYearDropdown: ce } = o, ne = us(t, s), { days: be, months: we, navStart: Ce, navEnd: Ne, previousMonth: G, nextMonth: z, goToMonth: L } = ne, xe = ko(be, t, Ce, Ne, s), { isSelected: Te, select: Ye, selected: Me } = ws(t, s) ?? {}, { blur: Xe, focused: Ze, isFocusTarget: Bt, moveFocus: Ue, setFocused: ke } = ls(t, ne, xe, Te ?? (() => !1), s), { labelDayButton: It, labelGridcell: At, labelGrid: Ht, labelMonthDropdown: qt, labelNav: Ve, labelPrevious: jt, labelNext: Rt, labelWeekday: $t, labelWeekNumber: Gt, labelWeekNumberHeader: zt, labelYearDropdown: Qt } = a, Xt = ve(() => Io(s, t.ISOWeek, t.broadcastCalendar, t.today), [s, t.ISOWeek, t.broadcastCalendar, t.today]), Le = d !== void 0 || v !== void 0, Ee = q(() => {
2529
+ const { captionLayout: f, mode: d, navLayout: u, numberOfMonths: h = 1, onDayBlur: b, onDayClick: v, onDayFocus: C, onDayKeyDown: M, onDayMouseEnter: O, onDayMouseLeave: x, onNextClick: p, onPrevClick: D, showWeekNumber: g, styles: m } = t, { formatCaption: W, formatDay: N, formatMonthDropdown: B, formatWeekNumber: I, formatWeekNumberHeader: H, formatWeekdayName: $, formatYearDropdown: ce } = o, ne = us(t, s), { days: we, months: pe, navStart: Ce, navEnd: Ne, previousMonth: G, nextMonth: z, goToMonth: L } = ne, xe = ko(we, t, Ce, Ne, s), { isSelected: Te, select: Ye, selected: Me } = ps(t, s) ?? {}, { blur: Xe, focused: Ze, isFocusTarget: Bt, moveFocus: Ue, setFocused: ke } = ls(t, ne, xe, Te ?? (() => !1), s), { labelDayButton: It, labelGridcell: At, labelGrid: Ht, labelMonthDropdown: qt, labelNav: Ve, labelPrevious: jt, labelNext: Rt, labelWeekday: $t, labelWeekNumber: Gt, labelWeekNumberHeader: zt, labelYearDropdown: Qt } = a, Xt = ve(() => Io(s, t.ISOWeek, t.broadcastCalendar, t.today), [s, t.ISOWeek, t.broadcastCalendar, t.today]), Le = d !== void 0 || v !== void 0, Ee = q(() => {
2530
2530
  G && (L(G), D?.(G));
2531
2531
  }, [G, L, D]), Pe = q(() => {
2532
- z && (L(z), w?.(z));
2533
- }, [L, z, w]), Zt = q((k, P) => (b) => {
2534
- b.preventDefault(), b.stopPropagation(), ke(k), Ye?.(k.date, P, b), v?.(k.date, P, b);
2535
- }, [Ye, v, ke]), Ut = q((k, P) => (b) => {
2536
- ke(k), C?.(k.date, P, b);
2537
- }, [C, ke]), Vt = q((k, P) => (b) => {
2538
- Xe(), p?.(k.date, P, b);
2539
- }, [Xe, p]), Lt = q((k, P) => (b) => {
2532
+ z && (L(z), p?.(z));
2533
+ }, [L, z, p]), Zt = q((k, P) => (w) => {
2534
+ w.preventDefault(), w.stopPropagation(), ke(k), Ye?.(k.date, P, w), v?.(k.date, P, w);
2535
+ }, [Ye, v, ke]), Ut = q((k, P) => (w) => {
2536
+ ke(k), C?.(k.date, P, w);
2537
+ }, [C, ke]), Vt = q((k, P) => (w) => {
2538
+ Xe(), b?.(k.date, P, w);
2539
+ }, [Xe, b]), Lt = q((k, P) => (w) => {
2540
2540
  const T = {
2541
2541
  ArrowLeft: [
2542
- b.shiftKey ? "month" : "day",
2542
+ w.shiftKey ? "month" : "day",
2543
2543
  t.dir === "rtl" ? "after" : "before"
2544
2544
  ],
2545
2545
  ArrowRight: [
2546
- b.shiftKey ? "month" : "day",
2546
+ w.shiftKey ? "month" : "day",
2547
2547
  t.dir === "rtl" ? "before" : "after"
2548
2548
  ],
2549
- ArrowDown: [b.shiftKey ? "year" : "week", "after"],
2550
- ArrowUp: [b.shiftKey ? "year" : "week", "before"],
2551
- PageUp: [b.shiftKey ? "year" : "month", "before"],
2552
- PageDown: [b.shiftKey ? "year" : "month", "after"],
2549
+ ArrowDown: [w.shiftKey ? "year" : "week", "after"],
2550
+ ArrowUp: [w.shiftKey ? "year" : "week", "before"],
2551
+ PageUp: [w.shiftKey ? "year" : "month", "before"],
2552
+ PageDown: [w.shiftKey ? "year" : "month", "after"],
2553
2553
  Home: ["startOfWeek", "before"],
2554
2554
  End: ["endOfWeek", "after"]
2555
2555
  };
2556
- if (T[b.key]) {
2557
- b.preventDefault(), b.stopPropagation();
2558
- const [X, S] = T[b.key];
2556
+ if (T[w.key]) {
2557
+ w.preventDefault(), w.stopPropagation();
2558
+ const [X, S] = T[w.key];
2559
2559
  Ue(X, S);
2560
2560
  }
2561
- M?.(k.date, P, b);
2562
- }, [Ue, M, t.dir]), Kt = q((k, P) => (b) => {
2563
- O?.(k.date, P, b);
2564
- }, [O]), Jt = q((k, P) => (b) => {
2565
- x?.(k.date, P, b);
2561
+ M?.(k.date, P, w);
2562
+ }, [Ue, M, t.dir]), Kt = q((k, P) => (w) => {
2563
+ O?.(k.date, P, w);
2564
+ }, [O]), Jt = q((k, P) => (w) => {
2565
+ x?.(k.date, P, w);
2566
2566
  }, [x]), en = q((k) => (P) => {
2567
- const b = Number(P.target.value), T = s.setMonth(s.startOfMonth(k), b);
2567
+ const w = Number(P.target.value), T = s.setMonth(s.startOfMonth(k), w);
2568
2568
  L(T);
2569
2569
  }, [s, L]), tn = q((k) => (P) => {
2570
- const b = Number(P.target.value), T = s.setYear(s.startOfMonth(k), b);
2570
+ const w = Number(P.target.value), T = s.setYear(s.startOfMonth(k), w);
2571
2571
  L(T);
2572
2572
  }, [s, L]), { className: nn, style: rn } = ve(() => ({
2573
2573
  className: [c[y.Root], t.className].filter(Boolean).join(" "),
@@ -2575,7 +2575,7 @@ function Ms(e) {
2575
2575
  }), [c, t.className, t.style, m]), on = Oo(t), Ke = De(null);
2576
2576
  es(Ke, !!t.animate, {
2577
2577
  classNames: c,
2578
- months: we,
2578
+ months: pe,
2579
2579
  focused: Ze,
2580
2580
  dateLib: s
2581
2581
  });
@@ -2584,7 +2584,7 @@ function Ms(e) {
2584
2584
  selected: Me,
2585
2585
  select: Ye,
2586
2586
  isSelected: Te,
2587
- months: we,
2587
+ months: pe,
2588
2588
  nextMonth: z,
2589
2589
  previousMonth: G,
2590
2590
  goToMonth: L,
@@ -2605,7 +2605,7 @@ function Ms(e) {
2605
2605
  n.Months,
2606
2606
  { className: c[y.Months], style: m?.[y.Months] },
2607
2607
  !t.hideNavigation && !u && l.createElement(n.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: c[y.Nav], style: m?.[y.Nav], "aria-label": Ve(), onPreviousClick: Ee, onNextClick: Pe, previousMonth: G, nextMonth: z }),
2608
- we.map((k, P) => l.createElement(
2608
+ pe.map((k, P) => l.createElement(
2609
2609
  n.Month,
2610
2610
  {
2611
2611
  "data-animated-month": t.animate ? "true" : void 0,
@@ -2625,8 +2625,8 @@ function Ms(e) {
2625
2625
  n.DropdownNav,
2626
2626
  { className: c[y.Dropdowns], style: m?.[y.Dropdowns] },
2627
2627
  (() => {
2628
- const b = f === "dropdown" || f === "dropdown-months" ? l.createElement(n.MonthsDropdown, { key: "month", className: c[y.MonthsDropdown], "aria-label": qt(), classNames: c, components: n, disabled: !!t.disableNavigation, onChange: en(k.date), options: Fo(k.date, Ce, Ne, o, s), style: m?.[y.Dropdown], value: s.getMonth(k.date) }) : l.createElement("span", { key: "month" }, B(k.date, s)), T = f === "dropdown" || f === "dropdown-years" ? l.createElement(n.YearsDropdown, { key: "year", className: c[y.YearsDropdown], "aria-label": Qt(s.options), classNames: c, components: n, disabled: !!t.disableNavigation, onChange: tn(k.date), options: Ao(Ce, Ne, o, s, !!t.reverseYears), style: m?.[y.Dropdown], value: s.getYear(k.date) }) : l.createElement("span", { key: "year" }, ce(k.date, s));
2629
- return s.getMonthYearOrder() === "year-first" ? [T, b] : [b, T];
2628
+ const w = f === "dropdown" || f === "dropdown-months" ? l.createElement(n.MonthsDropdown, { key: "month", className: c[y.MonthsDropdown], "aria-label": qt(), classNames: c, components: n, disabled: !!t.disableNavigation, onChange: en(k.date), options: Fo(k.date, Ce, Ne, o, s), style: m?.[y.Dropdown], value: s.getMonth(k.date) }) : l.createElement("span", { key: "month" }, B(k.date, s)), T = f === "dropdown" || f === "dropdown-years" ? l.createElement(n.YearsDropdown, { key: "year", className: c[y.YearsDropdown], "aria-label": Qt(s.options), classNames: c, components: n, disabled: !!t.disableNavigation, onChange: tn(k.date), options: Ao(Ce, Ne, o, s, !!t.reverseYears), style: m?.[y.Dropdown], value: s.getYear(k.date) }) : l.createElement("span", { key: "year" }, ce(k.date, s));
2629
+ return s.getMonthYearOrder() === "year-first" ? [T, w] : [w, T];
2630
2630
  })(),
2631
2631
  l.createElement("span", { role: "status", "aria-live": "polite", style: {
2632
2632
  border: 0,
@@ -2657,16 +2657,16 @@ function Ms(e) {
2657
2657
  n.Weekdays,
2658
2658
  { "data-animated-weekdays": t.animate ? "true" : void 0, className: c[y.Weekdays], style: m?.[y.Weekdays] },
2659
2659
  g && l.createElement(n.WeekNumberHeader, { "aria-label": zt(s.options), className: c[y.WeekNumberHeader], style: m?.[y.WeekNumberHeader], scope: "col" }, H()),
2660
- Xt.map((b) => l.createElement(n.Weekday, { "aria-label": $t(b, s.options, s), className: c[y.Weekday], key: String(b), style: m?.[y.Weekday], scope: "col" }, $(b, s.options, s)))
2660
+ Xt.map((w) => l.createElement(n.Weekday, { "aria-label": $t(w, s.options, s), className: c[y.Weekday], key: String(w), style: m?.[y.Weekday], scope: "col" }, $(w, s.options, s)))
2661
2661
  ),
2662
- l.createElement(n.Weeks, { "data-animated-weeks": t.animate ? "true" : void 0, className: c[y.Weeks], style: m?.[y.Weeks] }, k.weeks.map((b) => l.createElement(
2662
+ l.createElement(n.Weeks, { "data-animated-weeks": t.animate ? "true" : void 0, className: c[y.Weeks], style: m?.[y.Weeks] }, k.weeks.map((w) => l.createElement(
2663
2663
  n.Week,
2664
- { className: c[y.Week], key: b.weekNumber, style: m?.[y.Week], week: b },
2664
+ { className: c[y.Week], key: w.weekNumber, style: m?.[y.Week], week: w },
2665
2665
  g && // biome-ignore lint/a11y/useSemanticElements: react component
2666
- l.createElement(n.WeekNumber, { week: b, style: m?.[y.WeekNumber], "aria-label": Gt(b.weekNumber, {
2666
+ l.createElement(n.WeekNumber, { week: w, style: m?.[y.WeekNumber], "aria-label": Gt(w.weekNumber, {
2667
2667
  locale: i
2668
- }), className: c[y.WeekNumber], scope: "row", role: "rowheader" }, I(b.weekNumber, s)),
2669
- b.days.map((T) => {
2668
+ }), className: c[y.WeekNumber], scope: "row", role: "rowheader" }, I(w.weekNumber, s)),
2669
+ w.days.map((T) => {
2670
2670
  const { date: X } = T, S = xe(T);
2671
2671
  if (S[_.focused] = !S.hidden && !!Ze?.isEqualTo(T), S[Q.selected] = Te?.(X) || S.selected, We(Me)) {
2672
2672
  const { from: _e, to: Fe } = Me;
@@ -2717,17 +2717,17 @@ const ks = ({
2717
2717
  role: "dialog",
2718
2718
  "aria-label": "Datepicker",
2719
2719
  classNames: {
2720
- chevron: "cursor-pointer text-slate-500 w-[20px] h-[20px] text-slate-500 w-4 h-4",
2720
+ chevron: "cursor-pointer text-slate-500 w-5 h-5 text-slate-500 w-4 h-4",
2721
2721
  day_button: "h-[30px] aria-selected:opacity-100 font-semibold hover:rounded-full cursor-pointer rounded-full w-[30px]",
2722
- day: "text-center text-[14px] leading-[20px]",
2723
- month_caption: "text-slate-700 font-semibold text-sm pl-1 h-[32px] flex items-center",
2722
+ day: "text-center text-sm leading-5",
2723
+ month_caption: "text-slate-700 font-semibold text-sm pl-1 h-8 flex items-center",
2724
2724
  months: ue(
2725
2725
  "flex flex-col relative px-5 py-4 rounded-lg shadow-md px-6 py-4 w-[307px] justify-center items-center",
2726
2726
  o
2727
2727
  ),
2728
2728
  month: "flex flex-col gap-4",
2729
2729
  nav: ue(
2730
- "absolute right-4 top-3.5 flex justify-center items-center gap-[4px]",
2730
+ "absolute right-4 top-3.5 flex justify-center items-center gap-1",
2731
2731
  n
2732
2732
  ),
2733
2733
  outside: "text-slate-400",
@@ -1,5 +1,5 @@
1
1
  import { c as a } from "../../index-D29mdTf5.js";
2
- const i = a(["h-[1px]", "bg-zinc-200", "w-full"], {
2
+ const i = a(["h-px", "bg-zinc-200", "w-full"], {
3
3
  variants: {
4
4
  variant: {
5
5
  default: ""