willba-component-library 0.2.91 → 0.2.93

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.
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import '../../themes/Default.css';
3
- import { FilterBarProps } from './FilterBarTypes';
3
+ import { FilterBarTypes } from './FilterBarTypes';
4
4
  import './FilterBar.css';
5
- export default function FilterBar({ language, ageCategories, redirectUrl, palette, onSubmit, fullWidth, disableCalendarDates, mode, tabs, outerLoading, }: FilterBarProps): React.JSX.Element;
5
+ export default function FilterBar({ language, ageCategories, redirectUrl, palette, onSubmit, fullWidth, disableCalendarDates, mode, tabs, outerLoading, }: FilterBarTypes): React.JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { DisableCalendarDates } from '../../core/components/calendar/CalendarTypes';
2
2
  import { Palette } from '../../themes/useTheme';
3
- export type FilterBarProps = {
3
+ export type FilterBarTypes = {
4
4
  language?: string;
5
5
  ageCategories?: AgeCategoryType[];
6
6
  redirectUrl?: string;
package/lib/index.d.ts CHANGED
@@ -79,7 +79,7 @@ type CalendarTypes = {
79
79
  calendarHasError?: boolean;
80
80
  };
81
81
 
82
- type FilterBarProps = {
82
+ type FilterBarTypes = {
83
83
  language?: string;
84
84
  ageCategories?: AgeCategoryType[];
85
85
  redirectUrl?: string;
@@ -112,7 +112,7 @@ type Tab = {
112
112
  label?: Translations;
113
113
  };
114
114
 
115
- declare function FilterBar({ language, ageCategories, redirectUrl, palette, onSubmit, fullWidth, disableCalendarDates, mode, tabs, outerLoading, }: FilterBarProps): React.JSX.Element;
115
+ declare function FilterBar({ language, ageCategories, redirectUrl, palette, onSubmit, fullWidth, disableCalendarDates, mode, tabs, outerLoading, }: FilterBarTypes): React.JSX.Element;
116
116
 
117
117
  interface FilterCalendarTypes extends Partial<CalendarTypes> {
118
118
  palette: Palette;
@@ -123,4 +123,4 @@ interface FilterCalendarTypes extends Partial<CalendarTypes> {
123
123
 
124
124
  declare function FilterCalendar({ calendarOffset, language, palette, onSubmit, disableCalendarDates: outerDisableCalendarDates, toggleCalendar, loadingData, setToggleCalendar, requestDates, showFeedback, noActiveSelection, rangeContext: outerRangeContext, }: FilterCalendarTypes): React.JSX.Element;
125
125
 
126
- export { Button, FilterBar, FilterCalendar, FilterCalendarTypes, Tab };
126
+ export { Button, FilterBar, FilterBarTypes, FilterCalendar, FilterCalendarTypes };
package/lib/index.esm.js CHANGED
@@ -11191,9 +11191,7 @@ var disabledDatesByPage = function (_a) {
11191
11191
  return daysToOffsetCalendar.length
11192
11192
  ? [
11193
11193
  {
11194
- from: addDays(today, daysToOffsetCalendar.length && ((_c = daysToOffsetCalendar[0]) === null || _c === void 0 ? void 0 : _c.offset)
11195
- ? (_d = daysToOffsetCalendar[0]) === null || _d === void 0 ? void 0 : _d.offset
11196
- : -2),
11194
+ from: addDays(today, (_d = (_c = daysToOffsetCalendar[0]) === null || _c === void 0 ? void 0 : _c.offset) !== null && _d !== void 0 ? _d : -1),
11197
11195
  to: addDays(today, -100),
11198
11196
  },
11199
11197
  ]