willba-component-library 0.0.81 → 0.0.82
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/index.esm.js +19 -3
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +19 -3
- package/lib/index.js.map +1 -1
- package/lib/index.umd.js +19 -3
- package/lib/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/FilterBar/FilterBar.tsx +18 -1
package/package.json
CHANGED
|
@@ -25,7 +25,7 @@ interface FilterBarProps {
|
|
|
25
25
|
export default function FilterBar({
|
|
26
26
|
vendor,
|
|
27
27
|
language,
|
|
28
|
-
ageCategories,
|
|
28
|
+
ageCategories = ageCategoriesFallback,
|
|
29
29
|
}: FilterBarProps) {
|
|
30
30
|
const themeClass = useTheme({ vendor })
|
|
31
31
|
const [rerenderKey, setRerenderKey] = useState(0)
|
|
@@ -121,3 +121,20 @@ export default function FilterBar({
|
|
|
121
121
|
const fontWigthBold = (input: boolean) => {
|
|
122
122
|
return { fontWeight: input ? 'bold' : 'initial' }
|
|
123
123
|
}
|
|
124
|
+
|
|
125
|
+
const ageCategoriesFallback = [
|
|
126
|
+
{
|
|
127
|
+
id: '1',
|
|
128
|
+
name: 'Adults',
|
|
129
|
+
minAge: null,
|
|
130
|
+
maxAge: 6,
|
|
131
|
+
minVal: 1,
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
id: '2',
|
|
135
|
+
name: 'Kids',
|
|
136
|
+
minAge: 6,
|
|
137
|
+
maxAge: 17,
|
|
138
|
+
minVal: 0,
|
|
139
|
+
},
|
|
140
|
+
]
|