react-native-resource-calendar 1.0.1 → 1.0.3

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.d.mts CHANGED
@@ -42,12 +42,11 @@ type CalendarTheme = {
42
42
  fontFamily?: string;
43
43
  };
44
44
  };
45
-
46
45
  type LayoutMode = "columns" | "stacked";
47
-
48
46
  type EventRenderContext = {
49
47
  hourHeight: number;
50
48
  };
49
+
51
50
  type EventSlots = {
52
51
  TopRight?: React$1.ComponentType<{
53
52
  event: Event;
@@ -120,4 +119,4 @@ declare const CalendarBindingProvider: React$1.FC<{
120
119
  children: React$1.ReactNode;
121
120
  }>;
122
121
 
123
- export { Calendar, CalendarBindingProvider, type CalendarTheme, type DisabledBlock, type DisabledInterval, type DraggedEventDraft, type Event, type Resource, useCalendarBinding };
122
+ export { Calendar, CalendarBindingProvider, type CalendarTheme, type DisabledBlock, type DisabledInterval, type DraggedEventDraft, type Event, type EventRenderContext, type LayoutMode, type Resource, useCalendarBinding };
package/dist/index.d.ts CHANGED
@@ -42,12 +42,11 @@ type CalendarTheme = {
42
42
  fontFamily?: string;
43
43
  };
44
44
  };
45
-
46
45
  type LayoutMode = "columns" | "stacked";
47
-
48
46
  type EventRenderContext = {
49
47
  hourHeight: number;
50
48
  };
49
+
51
50
  type EventSlots = {
52
51
  TopRight?: React$1.ComponentType<{
53
52
  event: Event;
@@ -120,4 +119,4 @@ declare const CalendarBindingProvider: React$1.FC<{
120
119
  children: React$1.ReactNode;
121
120
  }>;
122
121
 
123
- export { Calendar, CalendarBindingProvider, type CalendarTheme, type DisabledBlock, type DisabledInterval, type DraggedEventDraft, type Event, type Resource, useCalendarBinding };
122
+ export { Calendar, CalendarBindingProvider, type CalendarTheme, type DisabledBlock, type DisabledInterval, type DraggedEventDraft, type Event, type EventRenderContext, type LayoutMode, type Resource, useCalendarBinding };
package/dist/index.js CHANGED
@@ -389,14 +389,24 @@ var TimeLabels = React18__namespace.forwardRef(({
389
389
  reactNative.Text,
390
390
  {
391
391
  allowFontScaling: false,
392
- style: { textAlign: "center", fontFamily: titleFace, fontSize: getTextSize(hourHeight) }
392
+ style: {
393
+ textAlign: "center",
394
+ fontFamily: titleFace,
395
+ fontSize: getTextSize(hourHeight),
396
+ fontWeight: "700"
397
+ }
393
398
  },
394
399
  indexToDate(index).split(" ")[0]
395
400
  ), /* @__PURE__ */ React18__namespace.createElement(
396
401
  reactNative.Text,
397
402
  {
398
403
  allowFontScaling: false,
399
- style: { textAlign: "center", fontFamily: titleFace, fontSize: getTextSize(hourHeight) }
404
+ style: {
405
+ textAlign: "center",
406
+ fontFamily: titleFace,
407
+ fontSize: getTextSize(hourHeight),
408
+ fontWeight: "700"
409
+ }
400
410
  },
401
411
  indexToDate(index).split(" ")[1]
402
412
  ))), isToday && /* @__PURE__ */ React18__namespace.createElement(reactNative.View, { style: [styles.currentTime, {
@@ -409,6 +419,7 @@ var TimeLabels = React18__namespace.forwardRef(({
409
419
  style: {
410
420
  textAlign: "center",
411
421
  fontFamily: titleFace,
422
+ fontWeight: "700",
412
423
  fontSize: getTextSize(hourHeight),
413
424
  color: "red"
414
425
  }
@@ -482,7 +493,8 @@ var Badge = ({
482
493
  style: {
483
494
  color: textColor,
484
495
  fontSize,
485
- fontFamily: titleFace
496
+ fontFamily: titleFace,
497
+ fontWeight: "600"
486
498
  }
487
499
  },
488
500
  value
@@ -604,7 +616,8 @@ var ResourceComponent = ({ id, onResourcePress, APPOINTMENT_BLOCK_WIDTH }) => {
604
616
  {
605
617
  style: {
606
618
  fontSize: 14,
607
- fontFamily: titleFace
619
+ fontFamily: titleFace,
620
+ fontWeight: "700"
608
621
  },
609
622
  numberOfLines: 1,
610
623
  allowFontScaling: false
@@ -872,7 +885,8 @@ var DisabledBlockComponent = ({
872
885
  allowFontScaling: false,
873
886
  style: {
874
887
  fontFamily: titleFace,
875
- fontSize: getTextSize(hourHeight)
888
+ fontSize: getTextSize(hourHeight),
889
+ fontWeight: "600"
876
890
  }
877
891
  },
878
892
  minutesToTime(disabledBlock?.from),
@@ -884,7 +898,8 @@ var DisabledBlockComponent = ({
884
898
  allowFontScaling: false,
885
899
  style: {
886
900
  fontFamily: titleFace,
887
- fontSize: getTextSize(hourHeight)
901
+ fontSize: getTextSize(hourHeight),
902
+ fontWeight: "600"
888
903
  }
889
904
  },
890
905
  disabledBlock?.title
@@ -1127,7 +1142,8 @@ var DraggableEvent = ({
1127
1142
  allowFontScaling: false,
1128
1143
  style: [{
1129
1144
  fontFamily: titleFace,
1130
- fontSize: getTextSize(hourHeight)
1145
+ fontSize: getTextSize(hourHeight),
1146
+ fontWeight: "700"
1131
1147
  }, resolved?.title]
1132
1148
  },
1133
1149
  selectedEvent?.title
@@ -1137,7 +1153,8 @@ var DraggableEvent = ({
1137
1153
  allowFontScaling: false,
1138
1154
  style: [{
1139
1155
  fontFamily: timeFace,
1140
- fontSize: getTextSize(hourHeight)
1156
+ fontSize: getTextSize(hourHeight),
1157
+ fontWeight: "600"
1141
1158
  }, resolved?.desc]
1142
1159
  },
1143
1160
  selectedEvent?.description