willba-component-library 0.2.92 → 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.
- package/lib/components/FilterBar/FilterBar.d.ts +2 -2
- package/lib/components/FilterBar/FilterBarTypes.d.ts +1 -1
- package/lib/index.d.ts +3 -3
- package/package.json +1 -1
- package/src/components/FilterBar/FilterBar.tsx +2 -2
- package/src/components/FilterBar/FilterBarTypes.ts +1 -1
- package/src/index.ts +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import '../../themes/Default.css';
|
|
3
|
-
import {
|
|
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, }:
|
|
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
|
|
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
|
|
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, }:
|
|
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
|
|
126
|
+
export { Button, FilterBar, FilterBarTypes, FilterCalendar, FilterCalendarTypes };
|
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@ import { Calendar, SubmitButton, CloseButton } from '../../core/components'
|
|
|
13
13
|
import { parseDates } from '../../core/components/calendar/utils'
|
|
14
14
|
|
|
15
15
|
import { parseGuests } from './utils'
|
|
16
|
-
import {
|
|
16
|
+
import { FilterBarTypes, FilterSections, Pages } from './FilterBarTypes'
|
|
17
17
|
import { useFilterBar, useScrollInToView } from './hooks'
|
|
18
18
|
import {
|
|
19
19
|
TabButton,
|
|
@@ -36,7 +36,7 @@ export default function FilterBar({
|
|
|
36
36
|
mode,
|
|
37
37
|
tabs,
|
|
38
38
|
outerLoading,
|
|
39
|
-
}:
|
|
39
|
+
}: FilterBarTypes) {
|
|
40
40
|
const themePalette = useTheme({ palette })
|
|
41
41
|
|
|
42
42
|
// Translations
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DisableCalendarDates } from '../../core/components/calendar/CalendarTypes'
|
|
2
2
|
import { Palette } from '../../themes/useTheme'
|
|
3
3
|
|
|
4
|
-
export type
|
|
4
|
+
export type FilterBarTypes = {
|
|
5
5
|
language?: string
|
|
6
6
|
ageCategories?: AgeCategoryType[]
|
|
7
7
|
redirectUrl?: string
|
package/src/index.ts
CHANGED
|
@@ -4,5 +4,5 @@ import FilterCalendar from './components/FilterCalendar'
|
|
|
4
4
|
|
|
5
5
|
export { Button, FilterBar, FilterCalendar }
|
|
6
6
|
|
|
7
|
-
export type {
|
|
7
|
+
export type { FilterBarTypes } from './components/FilterBar/FilterBarTypes'
|
|
8
8
|
export type { FilterCalendarTypes } from './components/FilterCalendar/FilterCalendarTypes'
|