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.umd.js
CHANGED
|
@@ -8053,7 +8053,7 @@
|
|
|
8053
8053
|
var updateGuestsCount = function (id, newCount) {
|
|
8054
8054
|
setAgeCategoryCounts(function (prevCounts) {
|
|
8055
8055
|
var _a;
|
|
8056
|
-
return (__assign(__assign({}, prevCounts), (_a = {}, _a[id] = newCount, _a)));
|
|
8056
|
+
return (__assign(__assign({}, prevCounts), (_a = {}, _a["guests-".concat(id)] = newCount, _a)));
|
|
8057
8057
|
});
|
|
8058
8058
|
};
|
|
8059
8059
|
React__default.useEffect(function () {
|
|
@@ -8082,7 +8082,7 @@
|
|
|
8082
8082
|
: '',
|
|
8083
8083
|
endDate: (calendarRange === null || calendarRange === void 0 ? void 0 : calendarRange.to) ? format(calendarRange.to, 'yyyy-MM-dd') : '',
|
|
8084
8084
|
categories: categories,
|
|
8085
|
-
|
|
8085
|
+
ageCategoryCounts: JSON.stringify(ageCategoryCounts),
|
|
8086
8086
|
};
|
|
8087
8087
|
for (var _i = 0, _a = Object.entries(params); _i < _a.length; _i++) {
|
|
8088
8088
|
var _b = _a[_i], key = _b[0], value = _b[1];
|
|
@@ -10563,16 +10563,12 @@
|
|
|
10563
10563
|
id: '1',
|
|
10564
10564
|
name: 'Adults',
|
|
10565
10565
|
sortOrder: 1,
|
|
10566
|
-
minAge: null,
|
|
10567
|
-
maxAge: 6,
|
|
10568
10566
|
minVal: 0,
|
|
10569
10567
|
},
|
|
10570
10568
|
{
|
|
10571
10569
|
id: '2',
|
|
10572
10570
|
name: 'Kids',
|
|
10573
10571
|
sortOrder: 2,
|
|
10574
|
-
minAge: 6,
|
|
10575
|
-
maxAge: 17,
|
|
10576
10572
|
minVal: 0,
|
|
10577
10573
|
},
|
|
10578
10574
|
];
|