@lazerlen/legend-calendar 1.2.0 → 1.3.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.
- package/.turbo/turbo-build.log +9 -9
- package/.turbo/turbo-test.log +87 -87
- package/dist/index.d.mts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +52 -16
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +52 -16
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/CalendarItemDay.tsx +22 -0
package/dist/index.mjs
CHANGED
|
@@ -759,7 +759,7 @@ var CalendarItemDay = /* @__PURE__ */ memo(function CalendarItemDay2(t0) {
|
|
|
759
759
|
return t7;
|
|
760
760
|
});
|
|
761
761
|
var CalendarItemDayContainer = /* @__PURE__ */ memo(function CalendarItemDayContainer2(t0) {
|
|
762
|
-
const $ = _c3(
|
|
762
|
+
const $ = _c3(29);
|
|
763
763
|
const {
|
|
764
764
|
children,
|
|
765
765
|
isStartOfWeek,
|
|
@@ -826,29 +826,65 @@ var CalendarItemDayContainer = /* @__PURE__ */ memo(function CalendarItemDayCont
|
|
|
826
826
|
}
|
|
827
827
|
const activeDayFiller = t5;
|
|
828
828
|
let t6;
|
|
829
|
-
if ($[15] !==
|
|
830
|
-
t6 =
|
|
829
|
+
if ($[15] !== metadata || $[16] !== theme) {
|
|
830
|
+
t6 = typeof (theme == null ? void 0 : theme.activeDayRangeBackground) === "function" && metadata ? theme.activeDayRangeBackground(metadata) : theme == null ? void 0 : theme.activeDayRangeBackground;
|
|
831
|
+
$[15] = metadata;
|
|
832
|
+
$[16] = theme;
|
|
833
|
+
$[17] = t6;
|
|
834
|
+
} else {
|
|
835
|
+
t6 = $[17];
|
|
836
|
+
}
|
|
837
|
+
const rangeBackgroundTheme = t6;
|
|
838
|
+
let t7;
|
|
839
|
+
if ($[18] !== rangeBackgroundTheme) {
|
|
840
|
+
t7 = rangeBackgroundTheme ? __spreadValues({
|
|
841
|
+
position: "absolute",
|
|
842
|
+
top: 0,
|
|
843
|
+
bottom: 0,
|
|
844
|
+
left: 0,
|
|
845
|
+
right: 0
|
|
846
|
+
}, rangeBackgroundTheme) : null;
|
|
847
|
+
$[18] = rangeBackgroundTheme;
|
|
848
|
+
$[19] = t7;
|
|
849
|
+
} else {
|
|
850
|
+
t7 = $[19];
|
|
851
|
+
}
|
|
852
|
+
const rangeBackground = t7;
|
|
853
|
+
let t8;
|
|
854
|
+
if ($[20] !== rangeBackground) {
|
|
855
|
+
t8 = rangeBackground ? /* @__PURE__ */ _jsx2(View, {
|
|
856
|
+
style: rangeBackground
|
|
857
|
+
}) : null;
|
|
858
|
+
$[20] = rangeBackground;
|
|
859
|
+
$[21] = t8;
|
|
860
|
+
} else {
|
|
861
|
+
t8 = $[21];
|
|
862
|
+
}
|
|
863
|
+
let t9;
|
|
864
|
+
if ($[22] !== activeDayFiller) {
|
|
865
|
+
t9 = activeDayFiller ? /* @__PURE__ */ _jsx2(View, {
|
|
831
866
|
style: activeDayFiller
|
|
832
867
|
}) : null;
|
|
833
|
-
$[
|
|
834
|
-
$[
|
|
868
|
+
$[22] = activeDayFiller;
|
|
869
|
+
$[23] = t9;
|
|
835
870
|
} else {
|
|
836
|
-
|
|
871
|
+
t9 = $[23];
|
|
837
872
|
}
|
|
838
|
-
let
|
|
839
|
-
if ($[
|
|
840
|
-
|
|
873
|
+
let t10;
|
|
874
|
+
if ($[24] !== children || $[25] !== spacerStyles || $[26] !== t8 || $[27] !== t9) {
|
|
875
|
+
t10 = /* @__PURE__ */ _jsxs(View, {
|
|
841
876
|
style: spacerStyles,
|
|
842
|
-
children: [
|
|
877
|
+
children: [t8, t9, children]
|
|
843
878
|
});
|
|
844
|
-
$[
|
|
845
|
-
$[
|
|
846
|
-
$[
|
|
847
|
-
$[
|
|
879
|
+
$[24] = children;
|
|
880
|
+
$[25] = spacerStyles;
|
|
881
|
+
$[26] = t8;
|
|
882
|
+
$[27] = t9;
|
|
883
|
+
$[28] = t10;
|
|
848
884
|
} else {
|
|
849
|
-
|
|
885
|
+
t10 = $[28];
|
|
850
886
|
}
|
|
851
|
-
return
|
|
887
|
+
return t10;
|
|
852
888
|
});
|
|
853
889
|
var CalendarItemDayWithContainer = /* @__PURE__ */ memo(function CalendarItemDayWithContainer2(t0) {
|
|
854
890
|
const $ = _c3(14);
|