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.mjs CHANGED
@@ -190,11 +190,11 @@ var minutesToTime = (totalMinutes) => {
190
190
  return `${hours12}:${paddedMins}`;
191
191
  };
192
192
  function computeStackedEventLayout(events, containerWidthPx, {
193
- indentPx = 12,
193
+ indentPx = 6,
194
194
  // how much to nudge each overlap to the right
195
195
  rightPadPx = 0,
196
196
  // visual breathing room on the right
197
- minWidthPx = 30,
197
+ minWidthPx = 25,
198
198
  // never let an event become thinner than this
199
199
  capIndentLevels = 4
200
200
  // after N levels, stop indenting (just stack via z-index)
@@ -992,7 +992,7 @@ var EventBlock = React19__default.memo(({
992
992
  left: frame.leftPx + 1,
993
993
  width: frame.widthPx - 3,
994
994
  zIndex: frame.zIndex,
995
- opacity: selectedAppointment ? 0.5 : 1,
995
+ opacity: selectedAppointment || disabled ? 0.5 : 1,
996
996
  borderWidth: selected ? 2 : 1,
997
997
  borderColor: selected ? "#4d959c" : "rgba(0,0,0,0.12)"
998
998
  };
@@ -1015,14 +1015,6 @@ var EventBlock = React19__default.memo(({
1015
1015
  onLongPress && onLongPress(event);
1016
1016
  }
1017
1017
  },
1018
- /* @__PURE__ */ React19__default.createElement(Hidden_default, { isHidden: !disabled }, /* @__PURE__ */ React19__default.createElement(View, { style: {
1019
- position: "absolute",
1020
- top: 0,
1021
- width: "150%",
1022
- height: "150%",
1023
- zIndex: 1,
1024
- backgroundColor: "rgba(255, 255, 255, 0.5)"
1025
- } })),
1026
1018
  /* @__PURE__ */ React19__default.createElement(Col_default, { style: [{ position: "relative" }, resolved?.content] }, /* @__PURE__ */ React19__default.createElement(
1027
1019
  TextInput,
1028
1020
  {