willba-component-library 0.3.8 → 0.3.10
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 +1 -1
- package/lib/components/FilterBar/utils/calculateDropdownPosition.d.ts +12 -0
- package/lib/index.esm.js +2 -2
- package/lib/index.js +2 -2
- package/lib/index.umd.js +2 -2
- package/package.json +1 -1
- package/src/locales/en/filterBar.json +1 -1
- package/src/locales/fi/filterBar.json +1 -1
package/README.md
CHANGED
|
@@ -119,7 +119,7 @@ ReactDOM.render(<App />, document.querySelector('#app'))
|
|
|
119
119
|
|
|
120
120
|
<script src="https://unpkg.com/react@18.3.1/umd/react.production.min.js"></script>
|
|
121
121
|
<script src="https://unpkg.com/react-dom@18.3.1/umd/react-dom.production.min.js"></script>
|
|
122
|
-
<script src="https://cdn.jsdelivr.net/npm/willba-component-library@0.3.
|
|
122
|
+
<script src="https://cdn.jsdelivr.net/npm/willba-component-library@0.3.10/lib/index.umd.js"></script>
|
|
123
123
|
|
|
124
124
|
<script>
|
|
125
125
|
const renderFilterBar = async () => {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CSSProperties, RefObject } from 'react';
|
|
2
|
+
import { FilterSections } from '../FilterBarTypes';
|
|
3
|
+
type CalculateDropdownPositionParams = {
|
|
4
|
+
filterSection: FilterSections;
|
|
5
|
+
headerRef: RefObject<HTMLDivElement>;
|
|
6
|
+
locationsButtonRef: RefObject<HTMLButtonElement>;
|
|
7
|
+
datesButtonRef: RefObject<HTMLButtonElement>;
|
|
8
|
+
guestsButtonRef: RefObject<HTMLButtonElement>;
|
|
9
|
+
isMobile: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare const calculateDropdownPosition: ({ filterSection, headerRef, locationsButtonRef, datesButtonRef, guestsButtonRef, isMobile, }: CalculateDropdownPositionParams) => CSSProperties;
|
|
12
|
+
export {};
|
package/lib/index.esm.js
CHANGED
|
@@ -2793,7 +2793,7 @@ instance.loadNamespaces;
|
|
|
2793
2793
|
instance.loadLanguages;
|
|
2794
2794
|
|
|
2795
2795
|
var locations$1 = {
|
|
2796
|
-
label: "
|
|
2796
|
+
label: "Location",
|
|
2797
2797
|
title: "Select location",
|
|
2798
2798
|
placeholder: "Add location",
|
|
2799
2799
|
selected: "locations"
|
|
@@ -2863,7 +2863,7 @@ var enCommon = {
|
|
|
2863
2863
|
};
|
|
2864
2864
|
|
|
2865
2865
|
var locations = {
|
|
2866
|
-
label: "
|
|
2866
|
+
label: "Sijainti",
|
|
2867
2867
|
title: "Valitse sijainti",
|
|
2868
2868
|
placeholder: "Lisää sijainti",
|
|
2869
2869
|
selected: "sijainnit"
|
package/lib/index.js
CHANGED
|
@@ -2813,7 +2813,7 @@ instance.loadNamespaces;
|
|
|
2813
2813
|
instance.loadLanguages;
|
|
2814
2814
|
|
|
2815
2815
|
var locations$1 = {
|
|
2816
|
-
label: "
|
|
2816
|
+
label: "Location",
|
|
2817
2817
|
title: "Select location",
|
|
2818
2818
|
placeholder: "Add location",
|
|
2819
2819
|
selected: "locations"
|
|
@@ -2883,7 +2883,7 @@ var enCommon = {
|
|
|
2883
2883
|
};
|
|
2884
2884
|
|
|
2885
2885
|
var locations = {
|
|
2886
|
-
label: "
|
|
2886
|
+
label: "Sijainti",
|
|
2887
2887
|
title: "Valitse sijainti",
|
|
2888
2888
|
placeholder: "Lisää sijainti",
|
|
2889
2889
|
selected: "sijainnit"
|
package/lib/index.umd.js
CHANGED
|
@@ -2815,7 +2815,7 @@
|
|
|
2815
2815
|
instance.loadLanguages;
|
|
2816
2816
|
|
|
2817
2817
|
var locations$1 = {
|
|
2818
|
-
label: "
|
|
2818
|
+
label: "Location",
|
|
2819
2819
|
title: "Select location",
|
|
2820
2820
|
placeholder: "Add location",
|
|
2821
2821
|
selected: "locations"
|
|
@@ -2885,7 +2885,7 @@
|
|
|
2885
2885
|
};
|
|
2886
2886
|
|
|
2887
2887
|
var locations = {
|
|
2888
|
-
label: "
|
|
2888
|
+
label: "Sijainti",
|
|
2889
2889
|
title: "Valitse sijainti",
|
|
2890
2890
|
placeholder: "Lisää sijainti",
|
|
2891
2891
|
selected: "sijainnit"
|
package/package.json
CHANGED