willba-component-library 0.1.48 → 0.1.49

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.
@@ -21,7 +21,7 @@ export declare enum FilterSections {
21
21
  CATEGORIES = "categories"
22
22
  }
23
23
  export type Filters = {
24
- [key: string]: string | number;
24
+ [key: string]: string;
25
25
  };
26
26
  export declare enum ViewApply {
27
27
  ROOMS = "roomFilters"
package/lib/index.d.ts CHANGED
@@ -39,7 +39,7 @@ type AgeCategoryType = {
39
39
  sortOrder: number;
40
40
  };
41
41
  type Filters = {
42
- [key: string]: string | number;
42
+ [key: string]: string;
43
43
  };
44
44
 
45
45
  type FilterBarProps = {
package/lib/index.esm.js CHANGED
@@ -3970,7 +3970,7 @@ var useFilterBar = function (_a) {
3970
3970
  ? format(calendarRange.from, 'yyyy-MM-dd')
3971
3971
  : '',
3972
3972
  endDate: (calendarRange === null || calendarRange === void 0 ? void 0 : calendarRange.to) ? format(calendarRange.to, 'yyyy-MM-dd') : '',
3973
- categories: categories,
3973
+ categories: categories.toString(),
3974
3974
  ageCategoryCounts: handleAgeCategoryRules({
3975
3975
  ageCategoryCounts: ageCategoryCounts,
3976
3976
  ageCategories: ageCategories,
@@ -4016,9 +4016,9 @@ var useFilterBar = function (_a) {
4016
4016
  if (onSubmit) {
4017
4017
  var updatedParamsObject_1 = {};
4018
4018
  updatedParams.forEach(function (value, key) {
4019
- updatedParamsObject_1[key] = value;
4019
+ if (value)
4020
+ updatedParamsObject_1[key] = value;
4020
4021
  });
4021
- console.log('sdasdasdsad', updatedParamsObject_1);
4022
4022
  return onSubmit(updatedParamsObject_1);
4023
4023
  }
4024
4024
  return (window.location.href = updatedUrl);