@theroutingcompany/components 0.0.66-alpha.0 → 0.0.66-alpha.3

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.
@@ -14221,15 +14221,16 @@ function nd({
14221
14221
  /* @__PURE__ */ x("th", { style: { textAlign: "center" }, children: m }, h)
14222
14222
  )) }) }),
14223
14223
  /* @__PURE__ */ x("tbody", { children: [...Array.from({ length: p }).keys()].map((m) => /* @__PURE__ */ x("tr", { children: e.getDatesInWeek(m, i).map((h, b) => {
14224
+ var g;
14224
14225
  if (h) {
14225
- const g = (
14226
+ const $ = (
14226
14227
  // lies, we have to check undefined too because CalendarState (single calendar view)
14227
14228
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
14228
14229
  e.anchorDate !== void 0 && e.anchorDate !== null ? X9({
14229
14230
  date: h,
14230
14231
  // @ts-expect-error we are checking for null in the ternary condition
14231
14232
  anchorDate: e.anchorDate
14232
- }) : !1
14233
+ }) || ((g = t.isDateUnavailable) == null ? void 0 : g.call(t, h)) : !1
14233
14234
  );
14234
14235
  return /* @__PURE__ */ x(
14235
14236
  Z9,
@@ -14237,7 +14238,7 @@ function nd({
14237
14238
  state: e,
14238
14239
  date: h,
14239
14240
  today: l,
14240
- disabled: g,
14241
+ disabled: $,
14241
14242
  currentMonth: i,
14242
14243
  single: o
14243
14244
  },
@@ -14829,7 +14830,9 @@ function VB({
14829
14830
  timeZone: e,
14830
14831
  ...t
14831
14832
  }) {
14832
- const { locale: r } = Ze(), n = t.width ?? "fit-content", o = gn(e), a = a8({
14833
+ const { locale: r } = Ze(), n = t.width ?? "fit-content";
14834
+ console.log("props: ", t);
14835
+ const o = gn(e), a = a8({
14833
14836
  ...t,
14834
14837
  visibleDuration: { months: 2 },
14835
14838
  locale: r,
@@ -14840,7 +14843,7 @@ function VB({
14840
14843
  a,
14841
14844
  i
14842
14845
  );
14843
- return console.log("calendarProps: ", s), /* @__PURE__ */ oe(
14846
+ return console.log("state: ", a), console.log("calendarProps: ", s), /* @__PURE__ */ oe(
14844
14847
  i8,
14845
14848
  {
14846
14849
  width: n,
@@ -14858,13 +14861,14 @@ function VB({
14858
14861
  }
14859
14862
  ),
14860
14863
  /* @__PURE__ */ oe(Ft, { gap: u.spacing_400, justifyContent: "space-between", children: [
14861
- /* @__PURE__ */ x(nd, { state: a, timeZone: e }),
14864
+ /* @__PURE__ */ x(nd, { state: a, timeZone: e, isDateUnavailable: t.isDateUnavailable }),
14862
14865
  /* @__PURE__ */ x(
14863
14866
  nd,
14864
14867
  {
14865
14868
  state: a,
14866
14869
  offset: { months: 1 },
14867
- timeZone: e
14870
+ timeZone: e,
14871
+ isDateUnavailable: t.isDateUnavailable
14868
14872
  }
14869
14873
  )
14870
14874
  ] })