willba-component-library 0.4.4 → 0.4.5

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  ## Description
2
2
 
3
- Willba Filter Bar is a search component for booking and event sites. Drop it onto any website with two lines of HTML it pulls its settings from the provided domain and renders ready to use.
3
+ An embeddable search component for company homepages that handle direct bookings. Visitors search availability, pick dates, and reserve stays or enroll into events.
4
4
 
5
5
  <div style="display: flex; gap: 20px;">
6
6
  <img src="https://lh3.googleusercontent.com/d/1n5U0vBMseBci4xV5wH8vApeAcRjcyos_" alt="Filter Bar Calendar" style="width: auto; max-width: 50%;">
@@ -16,7 +16,7 @@ Paste these two lines into any page — WordPress, plain HTML, anywhere. Set `do
16
16
  domain="customer.willba.store"
17
17
  mode="dark"
18
18
  ></willba-filter-bar>
19
- <script src="https://cdn.jsdelivr.net/npm/willba-component-library@0.4.4/lib/embed.umd.js"></script>
19
+ <script src="https://cdn.jsdelivr.net/npm/willba-component-library@0.4.5/lib/embed.umd.js"></script>
20
20
  ```
21
21
 
22
22
  The filter bar is fully self-contained and runs isolated from the rest of the page — your theme, plugins, and other scripts won't interfere with it, and it won't affect them.
@@ -1,4 +1,4 @@
1
- export { useScrollInToView } from './useScrollInToView';
1
+ export { useIsMobile } from './useIsMobile';
2
2
  export { useFilterState } from './useFilterState';
3
3
  export { useFilterActions } from './useFilterActions';
4
4
  export { useFilterRefs } from './useFilterRefs';
@@ -1,7 +1,6 @@
1
- export declare const useFilterRefs: (selectedFilter: string | boolean) => {
1
+ export declare const useFilterRefs: () => {
2
2
  previouslyFocusedButtonRef: import("react").MutableRefObject<HTMLButtonElement | null>;
3
3
  isMobile: boolean;
4
- tabsRef: import("react").MutableRefObject<HTMLDivElement | null>;
5
4
  panelRef: import("react").MutableRefObject<HTMLDivElement | null>;
6
5
  buttonRefs: import("react").MutableRefObject<Record<string, HTMLButtonElement | null>>;
7
6
  filtersRef: import("react").MutableRefObject<HTMLDivElement | null>;
@@ -0,0 +1 @@
1
+ export declare const useIsMobile: () => boolean;
@@ -5,10 +5,9 @@ type Props = {
5
5
  filtersRef: RefObject<HTMLDivElement | null>;
6
6
  buttonRefs: MutableRefObject<Record<string, HTMLButtonElement | null>>;
7
7
  isMobile: boolean;
8
- tabs?: unknown[];
9
8
  };
10
- export declare const usePanelPosition: ({ selectedFilter, panelRef, filtersRef, buttonRefs, isMobile, tabs, }: Props) => {
11
- top: number;
9
+ export declare const usePanelPosition: ({ selectedFilter, panelRef, filtersRef, buttonRefs, isMobile, }: Props) => {
10
+ top: number | undefined;
12
11
  left: number | undefined;
13
12
  };
14
13
  export {};
@@ -25,7 +25,6 @@ type FilterBarContextType = FilterBarTypes & {
25
25
  buttonRefs: MutableRefObject<Record<string, HTMLButtonElement | null>>;
26
26
  filtersRef: MutableRefObject<HTMLDivElement | null>;
27
27
  isMobile: boolean;
28
- tabsRef: MutableRefObject<HTMLDivElement | null>;
29
28
  };
30
29
  export declare const FilterBarProvider: ({ children, language, ageCategories, redirectUrl, palette, onSubmit, fullWidth, disableCalendarDates, mode, tabs, outerLoading, locations, }: FilterBarProviderProps) => React.JSX.Element;
31
30
  export declare const useFilterBar: () => FilterBarContextType;