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.d.ts
CHANGED
package/lib/index.esm.js
CHANGED
|
@@ -8031,7 +8031,7 @@ function useFilterBar(_a) {
|
|
|
8031
8031
|
var updateGuestsCount = function (id, newCount) {
|
|
8032
8032
|
setAgeCategoryCounts(function (prevCounts) {
|
|
8033
8033
|
var _a;
|
|
8034
|
-
return (__assign(__assign({}, prevCounts), (_a = {}, _a[id] = newCount, _a)));
|
|
8034
|
+
return (__assign(__assign({}, prevCounts), (_a = {}, _a["guests-".concat(id)] = newCount, _a)));
|
|
8035
8035
|
});
|
|
8036
8036
|
};
|
|
8037
8037
|
useEffect(function () {
|
|
@@ -8060,7 +8060,7 @@ function useFilterBar(_a) {
|
|
|
8060
8060
|
: '',
|
|
8061
8061
|
endDate: (calendarRange === null || calendarRange === void 0 ? void 0 : calendarRange.to) ? format(calendarRange.to, 'yyyy-MM-dd') : '',
|
|
8062
8062
|
categories: categories,
|
|
8063
|
-
|
|
8063
|
+
ageCategoryCounts: JSON.stringify(ageCategoryCounts),
|
|
8064
8064
|
};
|
|
8065
8065
|
for (var _i = 0, _a = Object.entries(params); _i < _a.length; _i++) {
|
|
8066
8066
|
var _b = _a[_i], key = _b[0], value = _b[1];
|
|
@@ -10541,16 +10541,12 @@ var AGE_CATEGORIES_FALLBACK = [
|
|
|
10541
10541
|
id: '1',
|
|
10542
10542
|
name: 'Adults',
|
|
10543
10543
|
sortOrder: 1,
|
|
10544
|
-
minAge: null,
|
|
10545
|
-
maxAge: 6,
|
|
10546
10544
|
minVal: 0,
|
|
10547
10545
|
},
|
|
10548
10546
|
{
|
|
10549
10547
|
id: '2',
|
|
10550
10548
|
name: 'Kids',
|
|
10551
10549
|
sortOrder: 2,
|
|
10552
|
-
minAge: 6,
|
|
10553
|
-
maxAge: 17,
|
|
10554
10550
|
minVal: 0,
|
|
10555
10551
|
},
|
|
10556
10552
|
];
|