react-native-resource-calendar 1.0.17 → 1.0.18

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.js CHANGED
@@ -216,11 +216,11 @@ var minutesToTime = (totalMinutes) => {
216
216
  return `${hours12}:${paddedMins}`;
217
217
  };
218
218
  function computeStackedEventLayout(events, containerWidthPx, {
219
- indentPx = 12,
219
+ indentPx = 6,
220
220
  // how much to nudge each overlap to the right
221
221
  rightPadPx = 0,
222
222
  // visual breathing room on the right
223
- minWidthPx = 30,
223
+ minWidthPx = 25,
224
224
  // never let an event become thinner than this
225
225
  capIndentLevels = 4
226
226
  // after N levels, stop indenting (just stack via z-index)
@@ -1018,7 +1018,7 @@ var EventBlock = React19__namespace.default.memo(({
1018
1018
  left: frame.leftPx + 1,
1019
1019
  width: frame.widthPx - 3,
1020
1020
  zIndex: frame.zIndex,
1021
- opacity: selectedAppointment ? 0.5 : 1,
1021
+ opacity: selectedAppointment || disabled ? 0.5 : 1,
1022
1022
  borderWidth: selected ? 2 : 1,
1023
1023
  borderColor: selected ? "#4d959c" : "rgba(0,0,0,0.12)"
1024
1024
  };
@@ -1041,14 +1041,6 @@ var EventBlock = React19__namespace.default.memo(({
1041
1041
  onLongPress && onLongPress(event);
1042
1042
  }
1043
1043
  },
1044
- /* @__PURE__ */ React19__namespace.default.createElement(Hidden_default, { isHidden: !disabled }, /* @__PURE__ */ React19__namespace.default.createElement(reactNative.View, { style: {
1045
- position: "absolute",
1046
- top: 0,
1047
- width: "150%",
1048
- height: "150%",
1049
- zIndex: 1,
1050
- backgroundColor: "rgba(255, 255, 255, 0.5)"
1051
- } })),
1052
1044
  /* @__PURE__ */ React19__namespace.default.createElement(Col_default, { style: [{ position: "relative" }, resolved?.content] }, /* @__PURE__ */ React19__namespace.default.createElement(
1053
1045
  reactNative.TextInput,
1054
1046
  {