react-native-resource-calendar 1.0.12 → 1.0.14

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
@@ -907,9 +907,9 @@ var DisabledBlockComponent = ({
907
907
  const dynamicStyle = {
908
908
  backgroundColor: "#d3d3d3",
909
909
  top: top + 2,
910
+ left: layout.leftPx + 1,
910
911
  height: height < hourHeight / 4 ? height : height - 4,
911
- width: layout.widthPx,
912
- left: layout.leftPx,
912
+ width: layout.widthPx - 3,
913
913
  borderWidth: 1,
914
914
  borderColor: "rgba(0,0,0,0.12)"
915
915
  };
@@ -1011,8 +1011,8 @@ var EventBlock = React19__namespace.default.memo(({
1011
1011
  const dynamicStyle = {
1012
1012
  top: eventTop + 2,
1013
1013
  height: eventHeight < hourHeight / 4 ? eventHeight : eventHeight - 4,
1014
- left: frame.leftPx,
1015
- width: frame.widthPx,
1014
+ left: frame.leftPx + 1,
1015
+ width: frame.widthPx - 3,
1016
1016
  zIndex: frame.zIndex,
1017
1017
  opacity: selectedAppointment ? 0.5 : 1,
1018
1018
  borderWidth: selected ? 2 : 1,
@@ -1116,7 +1116,7 @@ var DraggableEvent = ({
1116
1116
  const dynamicStyle = Animated2.useAnimatedStyle(() => {
1117
1117
  return {
1118
1118
  height: eventHeight.value < hourHeight / 4 ? eventHeight.value : eventHeight.value - 4,
1119
- width: APPOINTMENT_BLOCK_WIDTH,
1119
+ width: APPOINTMENT_BLOCK_WIDTH - 3,
1120
1120
  borderWidth: 1,
1121
1121
  borderColor: "rgba(0,0,0,0.12)"
1122
1122
  };
@@ -1142,7 +1142,7 @@ var DraggableEvent = ({
1142
1142
  translateY: panYAbs.value - eventHeight.value / 2 + 2
1143
1143
  },
1144
1144
  {
1145
- translateX: panXAbs.value - APPOINTMENT_BLOCK_WIDTH / 2
1145
+ translateX: panXAbs.value - APPOINTMENT_BLOCK_WIDTH / 2 + 1
1146
1146
  }
1147
1147
  ]
1148
1148
  };
@@ -1275,7 +1275,7 @@ var DaysComponent = ({ onResourcePress, activeResourceId, mode, date, APPOINTMEN
1275
1275
  () => Array.from({ length: visibleDayCount }, (_, i) => dateFns.addDays(date, i)),
1276
1276
  [date, visibleDayCount]
1277
1277
  );
1278
- return /* @__PURE__ */ React19__namespace.createElement(Row_default, null, /* @__PURE__ */ React19__namespace.createElement(Col_default, { style: { width: TIME_LABEL_WIDTH, alignItems: "center", paddingVertical: 4 } }, /* @__PURE__ */ React19__namespace.createElement(
1278
+ return /* @__PURE__ */ React19__namespace.createElement(Row_default, { style: { paddingVertical: 4 } }, /* @__PURE__ */ React19__namespace.createElement(Col_default, { style: { width: TIME_LABEL_WIDTH, alignItems: "center", justifyContent: "center" } }, /* @__PURE__ */ React19__namespace.createElement(
1279
1279
  StaffAvatar,
1280
1280
  {
1281
1281
  onPress: () => {
@@ -1302,8 +1302,8 @@ var DaysComponent = ({ onResourcePress, activeResourceId, mode, date, APPOINTMEN
1302
1302
  },
1303
1303
  /* @__PURE__ */ React19__namespace.createElement(Center_default, { style: {
1304
1304
  backgroundColor: selected ? "#4d959c" : void 0,
1305
- width: 30,
1306
- height: 30,
1305
+ width: Math.min(30, APPOINTMENT_BLOCK_WIDTH - 8),
1306
+ height: Math.min(30, APPOINTMENT_BLOCK_WIDTH - 8),
1307
1307
  borderRadius: 999
1308
1308
  } }, /* @__PURE__ */ React19__namespace.createElement(
1309
1309
  reactNative.Text,