@olea-bps/components 1.0.10 → 1.0.12

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/AppBar/index.js CHANGED
@@ -48,6 +48,7 @@ function AppbarComponent({ settings, title, leftAction, rightAction, subtitle, s
48
48
  icon={(props) => <IconsOpenasist {...props} icon={'back'} color={colors.appbarIconColor} />}
49
49
  onPress={() => navigation.goBack(null)}
50
50
  accessible={true}
51
+ accessibilityLabel={t('accessibility:appbar.navigateBack')}
51
52
  accessibilityHint={t('accessibility:appbar.back')}
52
53
  />
53
54
  }
@@ -39,7 +39,7 @@ const daysTabDuration = Duration.fromISO('P6M');
39
39
  * @param {(DateTime) => void} props.onDateChanged Callback, welche aufgerufen wird, wenn der Tag in der Ansicht wechselt
40
40
  * @returns
41
41
  */
42
- function CalendarDay({ selectedDate, theme, settings, calendarScrollOffsetMinutes, onDateChanged, onCourseSelected }) {
42
+ function CalendarDay({ selectedDate, theme, settings, calendarScrollOffsetMinutes, calendarHeight, onDateChanged, onCourseSelected }) {
43
43
  const { appSettings: { modules: { timetable: { showDetails } } } } = theme;
44
44
  const today = DateTime.now().toISODate();
45
45
 
@@ -169,7 +169,7 @@ function CalendarDay({ selectedDate, theme, settings, calendarScrollOffsetMinute
169
169
  renderHeader={() => null}
170
170
  overlapOffset={95}
171
171
  mode={'day'}
172
- height={800}
172
+ height={calendarHeight}
173
173
  headerContentStyle={{ backgroundColor: 'transparent' }}
174
174
  weekStartsOn={1}
175
175
  date={route.key}
@@ -26,7 +26,7 @@ import CalendarStrip from 'react-native-calendar-strip';
26
26
  import { DateTime } from 'luxon';
27
27
 
28
28
  function CalendarMonth(props) {
29
- const { theme, setMonth, today, locale, onMonthChanged } = props;
29
+ const { theme, setMonth, today, locale, onMonthChanged, calendarHeight } = props;
30
30
  const styles = useMemo(
31
31
  () => StyleSheet.create(componentStyles(theme)),
32
32
  [theme]
@@ -121,7 +121,7 @@ function CalendarMonth(props) {
121
121
  renderEvent={renderEvent}
122
122
  renderHeaderForMonthView={renderHeader}
123
123
  date={selectedDate.current}
124
- height={800}
124
+ height={calendarHeight}
125
125
  mode={'month'}
126
126
  headerContentStyle={{ backgroundColor: 'transparent' }}
127
127
  weekStartsOn={1}
@@ -40,7 +40,7 @@ const daysTabDuration = Duration.fromISO('P6M');
40
40
  * @returns
41
41
  */
42
42
  function CalendarWeek(props) {
43
- const { selectedISOWeek, theme, settings, calendarScrollOffsetMinutes, onWeekChanged, onCourseSelected } = props;
43
+ const { selectedISOWeek, theme, settings, calendarScrollOffsetMinutes, calendarHeight, onWeekChanged, onCourseSelected } = props;
44
44
 
45
45
  const styles = useMemo(
46
46
  () => StyleSheet.create(componentStyles(theme)),
@@ -167,7 +167,7 @@ function CalendarWeek(props) {
167
167
  renderEvent={renderEvent}
168
168
  renderHeader={() => null}
169
169
  mode={'week'}
170
- height={800}
170
+ height={calendarHeight}
171
171
  headerContentStyle={{ backgroundColor: 'transparent' }}
172
172
  weekStartsOn={1}
173
173
  date={route.weekbeginISODate}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@olea-bps/components",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
4
4
  "description": "Consolidated components for OLEA",
5
5
  "main": "index.js",
6
6
  "repository": "https://github.com/tuc-urz/olea.git",