willba-component-library 0.2.79 → 0.2.81

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.
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ export declare const SpinnerSVG: ({ fill, size, }: {
3
+ fill?: string | undefined;
4
+ size?: number | undefined;
5
+ }) => React.JSX.Element;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import './CloseButton.css';
3
+ interface CloseButtonPropsType {
4
+ handleClose: () => void;
5
+ }
6
+ export declare const CloseButton: ({ handleClose }: CloseButtonPropsType) => React.JSX.Element;
7
+ export {};
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import './SubmitButton.css';
3
+ export declare const SubmitButton: ({ onClick }: any) => React.JSX.Element;
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import { DateRange } from 'react-day-picker';
3
+ import { CalendarOffset } from '../../FilterBarTypes';
4
+ import 'react-day-picker/dist/style.css';
5
+ import './Calendar.css';
6
+ type Props = {
7
+ calendarRange: DateRange | undefined;
8
+ setCalendarRange: (range: DateRange | undefined) => void;
9
+ calendarOffset?: CalendarOffset;
10
+ selectedPath: string;
11
+ locale?: string;
12
+ };
13
+ export declare const Calendar: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
14
+ export {};
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ type Props = {
3
+ handleSelectedFilter: (arg: boolean) => void;
4
+ };
5
+ export declare const useCloseFilterSection: ({ handleSelectedFilter }: Props) => {
6
+ filtersRef: import("react").MutableRefObject<HTMLDivElement | null>;
7
+ };
8
+ export {};
@@ -0,0 +1,5 @@
1
+ type Props = {
2
+ language?: string;
3
+ };
4
+ export declare const useUpdateTranslations: ({ language }: Props) => void;
5
+ export {};
@@ -0,0 +1,6 @@
1
+ import { DateRange } from 'react-day-picker';
2
+ type Props = {
3
+ calendarRange?: DateRange;
4
+ };
5
+ export declare const parseDates: ({ calendarRange }: Props) => string | null;
6
+ export {};
@@ -0,0 +1 @@
1
+ export declare const handleOverlappingDates: () => void;
@@ -0,0 +1,3 @@
1
+ export { parseDates } from './parseDates';
2
+ export { parseDate } from './parseDate';
3
+ export { nightsCount } from './nightsCount';
@@ -0,0 +1,6 @@
1
+ import { DateRange } from 'react-day-picker';
2
+ type Props = {
3
+ calendarRange?: DateRange;
4
+ };
5
+ export declare const nightsCount: ({ calendarRange }: Props) => number | undefined;
6
+ export {};
@@ -0,0 +1,7 @@
1
+ type Props = {
2
+ date?: Date;
3
+ dateFormat?: string;
4
+ language?: string;
5
+ };
6
+ export declare const parseDate: ({ date, dateFormat, language, }: Props) => string | null;
7
+ export {};
@@ -0,0 +1,6 @@
1
+ import { DateRange } from 'react-day-picker';
2
+ type Props = {
3
+ calendarRange?: DateRange;
4
+ };
5
+ export declare const parseDates: ({ calendarRange }: Props) => string | null;
6
+ export {};
package/lib/index.esm.js CHANGED
@@ -11778,7 +11778,7 @@ var useFilterBar = function (_a) {
11778
11778
  finally { if (e_2) throw e_2.error; }
11779
11779
  }
11780
11780
  handleSelectedFilter(false);
11781
- if (onSubmit && selectedPath === Pages.ROOMS) {
11781
+ if (onSubmit && window.location.href.includes(selectedPath)) {
11782
11782
  onSubmit(newParams);
11783
11783
  }
11784
11784
  else {