willba-component-library 0.2.89 → 0.2.91
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 +9 -15
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +9 -15
- package/lib/index.js.map +1 -1
- package/lib/index.umd.js +9 -15
- package/lib/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/FilterBar/FilterBar.css +1 -1
- package/src/components/FilterBar/components/buttons/select-button/SelectButton.css +3 -4
- package/src/components/FilterBar/components/guests/GuestCount/GuestCount.css +6 -2
- package/src/components/FilterBar/components/guests/GuestCount/GuestCount.tsx +28 -2
- package/src/components/FilterBar/hooks/useFilterBar.tsx +0 -12
package/package.json
CHANGED
|
@@ -23,14 +23,13 @@
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
.will-filter-bar-select-button .select-button-label {
|
|
26
|
-
|
|
27
|
-
appearance: none;
|
|
26
|
+
color: var(--will-black);
|
|
28
27
|
font-weight: 600;
|
|
29
28
|
}
|
|
30
29
|
|
|
31
30
|
.will-filter-bar-select-button .select-button-description {
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
|
|
32
|
+
color: var(--will-black);
|
|
34
33
|
font-weight: 400;
|
|
35
34
|
opacity: 0.5;
|
|
36
35
|
white-space: nowrap;
|
|
@@ -29,8 +29,7 @@
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
.will-guests-filter-counter-button {
|
|
32
|
-
|
|
33
|
-
appearance: none;
|
|
32
|
+
|
|
34
33
|
border-radius: 50%;
|
|
35
34
|
background-color: transparent;
|
|
36
35
|
border: 1px solid var(--will-grey);
|
|
@@ -42,6 +41,11 @@
|
|
|
42
41
|
font-size: 20px;
|
|
43
42
|
cursor: pointer;
|
|
44
43
|
color: var(--will-black);
|
|
44
|
+
|
|
45
|
+
padding: 0;
|
|
46
|
+
margin: 0;
|
|
47
|
+
-webkit-appearance: none;
|
|
48
|
+
appearance: none;
|
|
45
49
|
}
|
|
46
50
|
|
|
47
51
|
.will-guests-filter-counter-button:hover {
|
|
@@ -44,14 +44,40 @@ export default function GuestCount({
|
|
|
44
44
|
opacity: (minVal && count <= minVal) || !count ? 0.4 : 1,
|
|
45
45
|
}}
|
|
46
46
|
>
|
|
47
|
-
|
|
47
|
+
<svg
|
|
48
|
+
width="10"
|
|
49
|
+
height="10"
|
|
50
|
+
viewBox="0 0 15 15"
|
|
51
|
+
fill="none"
|
|
52
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
53
|
+
>
|
|
54
|
+
<path
|
|
55
|
+
d="M4 10H16"
|
|
56
|
+
stroke="currentColor"
|
|
57
|
+
stroke-width="2"
|
|
58
|
+
stroke-linecap="round"
|
|
59
|
+
/>
|
|
60
|
+
</svg>
|
|
48
61
|
</button>
|
|
49
62
|
<span className="will-guests-filter-count">{count}</span>
|
|
50
63
|
<button
|
|
51
64
|
className="will-guests-filter-counter-button"
|
|
52
65
|
onClick={handleIncrement}
|
|
53
66
|
>
|
|
54
|
-
|
|
67
|
+
<svg
|
|
68
|
+
width="15"
|
|
69
|
+
height="15"
|
|
70
|
+
viewBox="0 0 20 20"
|
|
71
|
+
fill="none"
|
|
72
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
73
|
+
>
|
|
74
|
+
<path
|
|
75
|
+
d="M10 4V16M4 10H16"
|
|
76
|
+
stroke="currentColor"
|
|
77
|
+
stroke-width="2"
|
|
78
|
+
stroke-linecap="round"
|
|
79
|
+
/>
|
|
80
|
+
</svg>
|
|
55
81
|
</button>
|
|
56
82
|
</div>
|
|
57
83
|
</div>
|
|
@@ -56,18 +56,6 @@ export const useFilterBar = ({
|
|
|
56
56
|
setCategories(parsedCategories)
|
|
57
57
|
}, [])
|
|
58
58
|
|
|
59
|
-
useEffect(() => {
|
|
60
|
-
// Handle hide scroll bar on mobile
|
|
61
|
-
if (typeof window === 'undefined') return
|
|
62
|
-
|
|
63
|
-
document.body.style.overflow =
|
|
64
|
-
selectedFilter && window.innerWidth < 960 ? 'hidden' : 'visible'
|
|
65
|
-
|
|
66
|
-
return () => {
|
|
67
|
-
document.body.style.overflow = 'visible'
|
|
68
|
-
}
|
|
69
|
-
}, [selectedFilter])
|
|
70
|
-
|
|
71
59
|
useEffect(() => {
|
|
72
60
|
if (typeof window === 'undefined') return
|
|
73
61
|
|