willba-component-library 0.1.22 → 0.1.23
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/FilterBarTypes.d.ts +0 -2
- package/lib/index.d.ts +0 -2
- package/lib/index.esm.js +2 -6
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +2 -6
- package/lib/index.js.map +1 -1
- package/lib/index.umd.js +2 -6
- package/lib/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/FilterBar/FilterBar.stories.tsx +0 -6
- package/src/components/FilterBar/FilterBar.tsx +1 -4
- package/src/components/FilterBar/FilterBarTypes.ts +0 -2
- package/src/components/FilterBar/hooks/useFilterBar.tsx +2 -2
package/lib/index.js
CHANGED
|
@@ -8051,7 +8051,7 @@ function useFilterBar(_a) {
|
|
|
8051
8051
|
var updateGuestsCount = function (id, newCount) {
|
|
8052
8052
|
setAgeCategoryCounts(function (prevCounts) {
|
|
8053
8053
|
var _a;
|
|
8054
|
-
return (__assign(__assign({}, prevCounts), (_a = {}, _a[id] = newCount, _a)));
|
|
8054
|
+
return (__assign(__assign({}, prevCounts), (_a = {}, _a["guests-".concat(id)] = newCount, _a)));
|
|
8055
8055
|
});
|
|
8056
8056
|
};
|
|
8057
8057
|
React__default.useEffect(function () {
|
|
@@ -8080,7 +8080,7 @@ function useFilterBar(_a) {
|
|
|
8080
8080
|
: '',
|
|
8081
8081
|
endDate: (calendarRange === null || calendarRange === void 0 ? void 0 : calendarRange.to) ? format(calendarRange.to, 'yyyy-MM-dd') : '',
|
|
8082
8082
|
categories: categories,
|
|
8083
|
-
|
|
8083
|
+
ageCategoryCounts: JSON.stringify(ageCategoryCounts),
|
|
8084
8084
|
};
|
|
8085
8085
|
for (var _i = 0, _a = Object.entries(params); _i < _a.length; _i++) {
|
|
8086
8086
|
var _b = _a[_i], key = _b[0], value = _b[1];
|
|
@@ -10561,16 +10561,12 @@ var AGE_CATEGORIES_FALLBACK = [
|
|
|
10561
10561
|
id: '1',
|
|
10562
10562
|
name: 'Adults',
|
|
10563
10563
|
sortOrder: 1,
|
|
10564
|
-
minAge: null,
|
|
10565
|
-
maxAge: 6,
|
|
10566
10564
|
minVal: 0,
|
|
10567
10565
|
},
|
|
10568
10566
|
{
|
|
10569
10567
|
id: '2',
|
|
10570
10568
|
name: 'Kids',
|
|
10571
10569
|
sortOrder: 2,
|
|
10572
|
-
minAge: 6,
|
|
10573
|
-
maxAge: 17,
|
|
10574
10570
|
minVal: 0,
|
|
10575
10571
|
},
|
|
10576
10572
|
];
|