react-native-resource-calendar 1.1.15 → 1.1.16

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/index.mjs CHANGED
@@ -914,7 +914,8 @@ var DisabledBlockComponent = ({
914
914
  layout,
915
915
  disabledBlock,
916
916
  hourHeight,
917
- onDisabledBlockPress
917
+ onDisabledBlockPress,
918
+ tapThrough
918
919
  }) => {
919
920
  const dynamicStyle = {
920
921
  backgroundColor: "#d3d3d3",
@@ -923,13 +924,17 @@ var DisabledBlockComponent = ({
923
924
  height: height < hourHeight / 4 ? height : height - 4,
924
925
  width: layout.widthPx - 3,
925
926
  borderWidth: 1,
926
- borderColor: "rgba(0,0,0,0.12)"
927
+ borderColor: "rgba(0,0,0,0.12)",
928
+ opacity: tapThrough ? 0.5 : 1,
929
+ // Let touches fall through to the grid blocks beneath when tap-through.
930
+ pointerEvents: tapThrough ? "none" : "auto"
927
931
  };
928
932
  const titleFace = useResolvedFont({ fontWeight: "600" });
929
933
  return /* @__PURE__ */ React19__default.createElement(
930
934
  TouchableOpacity,
931
935
  {
932
936
  style: [styles4.event, dynamicStyle],
937
+ disabled: tapThrough,
933
938
  onPress: () => {
934
939
  onDisabledBlockPress && onDisabledBlockPress(disabledBlock);
935
940
  }
@@ -966,6 +971,7 @@ var DisabledBlocks = React19__default.memo(({
966
971
  APPOINTMENT_BLOCK_WIDTH,
967
972
  hourHeight,
968
973
  onDisabledBlockPress,
974
+ tapThrough,
969
975
  date: dateProp
970
976
  }) => {
971
977
  const { useDisabledBlocksFor: useDisabledBlocksFor2, useGetDate: useGetDate2 } = useCalendarBinding();
@@ -986,7 +992,8 @@ var DisabledBlocks = React19__default.memo(({
986
992
  top: scalePosition(disabledBlock.from, hourHeight),
987
993
  height: scalePosition(disabledBlock.to - disabledBlock.from, hourHeight),
988
994
  layout: layoutMap.get(key),
989
- onDisabledBlockPress
995
+ onDisabledBlockPress,
996
+ tapThrough
990
997
  }
991
998
  );
992
999
  }
@@ -1792,7 +1799,8 @@ var CalendarInner = (props) => {
1792
1799
  date: dayDate,
1793
1800
  APPOINTMENT_BLOCK_WIDTH,
1794
1801
  hourHeight,
1795
- onDisabledBlockPress: stableOnDisabledBlockPress
1802
+ onDisabledBlockPress: stableOnDisabledBlockPress,
1803
+ tapThrough: props.disabledBlocksTapThrough
1796
1804
  }
1797
1805
  ), /* @__PURE__ */ React19__default.createElement(
1798
1806
  EventBlocks_default,
@@ -1823,7 +1831,8 @@ var CalendarInner = (props) => {
1823
1831
  internalStableOnLongPress,
1824
1832
  stableOnDisabledBlockPress,
1825
1833
  stableHandleBlockPress,
1826
- stableHandleBlockLongPress
1834
+ stableHandleBlockLongPress,
1835
+ props.disabledBlocksTapThrough
1827
1836
  ]);
1828
1837
  const listExtraData = useMemo(
1829
1838
  () => ({
@@ -1833,7 +1842,8 @@ var CalendarInner = (props) => {
1833
1842
  stacked: overLappingLayoutMode === "stacked",
1834
1843
  isEventSelectedStable,
1835
1844
  isEventDisabledStable,
1836
- effectiveRenderer
1845
+ effectiveRenderer,
1846
+ disabledBlocksTapThrough: props.disabledBlocksTapThrough
1837
1847
  }),
1838
1848
  [
1839
1849
  numberOfColumns,
@@ -1842,7 +1852,8 @@ var CalendarInner = (props) => {
1842
1852
  overLappingLayoutMode,
1843
1853
  isEventSelectedStable,
1844
1854
  isEventDisabledStable,
1845
- effectiveRenderer
1855
+ effectiveRenderer,
1856
+ props.disabledBlocksTapThrough
1846
1857
  ]
1847
1858
  );
1848
1859
  return /* @__PURE__ */ React19__default.createElement(React19__default.Fragment, null, /* @__PURE__ */ React19__default.createElement(StoreFeeder, { resources, store: binding, baseDate: date }), /* @__PURE__ */ React19__default.createElement(View, { style: { flex: 1 } }, !isMultiDay ? /* @__PURE__ */ React19__default.createElement(View, { key: `header-${numberOfColumns}-${width}` }, /* @__PURE__ */ React19__default.createElement(