@theroutingcompany/components 0.0.66-alpha.4 → 0.0.66-alpha.5
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.
- package/dist/trc-components.es.js +19 -18
- package/dist/trc-components.es.js.map +1 -1
- package/dist/trc-components.umd.js +2 -2
- package/dist/trc-components.umd.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/types/components/Calendar/CalendarGrid.d.ts +1 -0
- package/types/components/Calendar/RangeCalendar.d.ts +1 -0
|
@@ -14232,7 +14232,9 @@ function nd({
|
|
|
14232
14232
|
e.anchorDate !== void 0 && e.anchorDate !== null ? X9({
|
|
14233
14233
|
date: h,
|
|
14234
14234
|
// @ts-expect-error we are checking for null in the ternary condition
|
|
14235
|
-
anchorDate: e.anchorDate
|
|
14235
|
+
anchorDate: e.anchorDate,
|
|
14236
|
+
min: t.maxDays,
|
|
14237
|
+
max: t.maxDays
|
|
14236
14238
|
}) || ((g = t.isDateUnavailable) == null ? void 0 : g.call(t, h)) : !1
|
|
14237
14239
|
);
|
|
14238
14240
|
return /* @__PURE__ */ x(
|
|
@@ -14833,45 +14835,44 @@ function VB({
|
|
|
14833
14835
|
timeZone: e,
|
|
14834
14836
|
...t
|
|
14835
14837
|
}) {
|
|
14836
|
-
const { locale: r } = Ze(), n = t.width ?? "fit-content"
|
|
14837
|
-
console.log("props: ", t);
|
|
14838
|
-
const o = gn(e), a = a8({
|
|
14838
|
+
const { locale: r } = Ze(), n = t.width ?? "fit-content", o = t.maxDays ?? 6, a = gn(e), i = a8({
|
|
14839
14839
|
...t,
|
|
14840
14840
|
visibleDuration: { months: 2 },
|
|
14841
14841
|
locale: r,
|
|
14842
14842
|
createCalendar: Q0,
|
|
14843
|
-
defaultFocusedValue:
|
|
14844
|
-
}),
|
|
14843
|
+
defaultFocusedValue: a
|
|
14844
|
+
}), s = K(null), { calendarProps: l, prevButtonProps: c, nextButtonProps: d } = j9(
|
|
14845
14845
|
t,
|
|
14846
|
-
|
|
14847
|
-
|
|
14846
|
+
i,
|
|
14847
|
+
s
|
|
14848
14848
|
);
|
|
14849
|
-
return
|
|
14849
|
+
return /* @__PURE__ */ oe(
|
|
14850
14850
|
i8,
|
|
14851
14851
|
{
|
|
14852
14852
|
width: n,
|
|
14853
14853
|
p: u.spacing_100,
|
|
14854
|
-
...
|
|
14855
|
-
ref:
|
|
14854
|
+
...l,
|
|
14855
|
+
ref: s,
|
|
14856
14856
|
children: [
|
|
14857
14857
|
/* @__PURE__ */ x(
|
|
14858
14858
|
o8,
|
|
14859
14859
|
{
|
|
14860
|
-
state:
|
|
14861
|
-
calendarProps:
|
|
14862
|
-
prevButtonProps:
|
|
14863
|
-
nextButtonProps:
|
|
14860
|
+
state: i,
|
|
14861
|
+
calendarProps: l,
|
|
14862
|
+
prevButtonProps: c,
|
|
14863
|
+
nextButtonProps: d
|
|
14864
14864
|
}
|
|
14865
14865
|
),
|
|
14866
14866
|
/* @__PURE__ */ oe(Ft, { gap: u.spacing_400, justifyContent: "space-between", children: [
|
|
14867
|
-
/* @__PURE__ */ x(nd, { state:
|
|
14867
|
+
/* @__PURE__ */ x(nd, { state: i, timeZone: e, isDateUnavailable: t.isDateUnavailable, maxDays: o }),
|
|
14868
14868
|
/* @__PURE__ */ x(
|
|
14869
14869
|
nd,
|
|
14870
14870
|
{
|
|
14871
|
-
state:
|
|
14871
|
+
state: i,
|
|
14872
14872
|
offset: { months: 1 },
|
|
14873
14873
|
timeZone: e,
|
|
14874
|
-
isDateUnavailable: t.isDateUnavailable
|
|
14874
|
+
isDateUnavailable: t.isDateUnavailable,
|
|
14875
|
+
maxDays: o
|
|
14875
14876
|
}
|
|
14876
14877
|
)
|
|
14877
14878
|
] })
|