@blaze-cms/react-page-builder 0.115.0-alpha.1 → 0.116.0
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/CHANGELOG.md +32 -0
- package/lib/components/CarouselWrapper.js +4 -6
- package/lib/components/CarouselWrapper.js.map +1 -1
- package/lib/components/Image/GlobalLightbox/GlobalLightbox.js +3 -3
- package/lib/components/Image/GlobalLightbox/GlobalLightbox.js.map +1 -1
- package/lib/components/Menu/Menu.js +3 -3
- package/lib/components/Menu/Menu.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilter/CloseMobileForm.js +3 -2
- package/lib/components/SearchFilter/SearchFilter/CloseMobileForm.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilter/ResetDesktopForm.js +3 -3
- package/lib/components/SearchFilter/SearchFilter/ResetDesktopForm.js.map +1 -1
- package/lib/components/SearchFilter/components/Checkbox.js +7 -13
- package/lib/components/SearchFilter/components/Checkbox.js.map +1 -1
- package/lib/components/SearchFilter/components/TextSearch.js +3 -3
- package/lib/components/SearchFilter/components/TextSearch.js.map +1 -1
- package/lib/components/SearchFilter/constants.js +1 -5
- package/lib/components/SearchFilter/constants.js.map +1 -1
- package/lib/components/SocialFollow/SFItem.js +2 -4
- package/lib/components/SocialFollow/SFItem.js.map +1 -1
- package/lib/components/SocialFollow/sf.config.js +9 -6
- package/lib/components/SocialFollow/sf.config.js.map +1 -1
- package/lib-es/components/CarouselWrapper.js +3 -6
- package/lib-es/components/CarouselWrapper.js.map +1 -1
- package/lib-es/components/Image/GlobalLightbox/GlobalLightbox.js +2 -3
- package/lib-es/components/Image/GlobalLightbox/GlobalLightbox.js.map +1 -1
- package/lib-es/components/Menu/Menu.js +2 -3
- package/lib-es/components/Menu/Menu.js.map +1 -1
- package/lib-es/components/SearchFilter/SearchFilter/CloseMobileForm.js +2 -2
- package/lib-es/components/SearchFilter/SearchFilter/CloseMobileForm.js.map +1 -1
- package/lib-es/components/SearchFilter/SearchFilter/ResetDesktopForm.js +2 -3
- package/lib-es/components/SearchFilter/SearchFilter/ResetDesktopForm.js.map +1 -1
- package/lib-es/components/SearchFilter/components/Checkbox.js +7 -12
- package/lib-es/components/SearchFilter/components/Checkbox.js.map +1 -1
- package/lib-es/components/SearchFilter/components/TextSearch.js +2 -3
- package/lib-es/components/SearchFilter/components/TextSearch.js.map +1 -1
- package/lib-es/components/SearchFilter/constants.js +1 -3
- package/lib-es/components/SearchFilter/constants.js.map +1 -1
- package/lib-es/components/SocialFollow/SFItem.js +2 -4
- package/lib-es/components/SocialFollow/SFItem.js.map +1 -1
- package/lib-es/components/SocialFollow/sf.config.js +7 -6
- package/lib-es/components/SocialFollow/sf.config.js.map +1 -1
- package/package.json +4 -3
- package/src/components/CarouselWrapper.js +7 -2
- package/src/components/Image/GlobalLightbox/GlobalLightbox.js +4 -1
- package/src/components/Menu/Menu.js +4 -1
- package/src/components/SearchFilter/SearchFilter/CloseMobileForm.js +3 -2
- package/src/components/SearchFilter/SearchFilter/ResetDesktopForm.js +4 -1
- package/src/components/SearchFilter/components/Checkbox.js +17 -5
- package/src/components/SearchFilter/components/TextSearch.js +4 -1
- package/src/components/SearchFilter/constants.js +0 -4
- package/src/components/SocialFollow/SFItem.js +4 -2
- package/src/components/SocialFollow/sf.config.js +15 -6
- package/tests/unit/src/components/Image/GlobalLightbox/__snapshots__/GlobalLightbox.test.js.snap +15 -3
- package/tests/unit/src/components/SearchFilter/SearchFilter/__snapshots__/CloseMobileForm.test.js.snap +17 -2
- package/tests/unit/src/components/SearchFilter/SearchFilter/__snapshots__/ResetDesktopForm.test.js.snap +15 -3
- package/tests/unit/src/components/SearchFilter/SearchFilter/__snapshots__/SearchFilter.test.js.snap +196 -49
- package/tests/unit/src/components/SearchFilter/components/__snapshots__/TextSearch.test.js.snap +18 -4
- package/tests/unit/src/components/SocialFollow/__snapshots__/SFItem.test.js.snap +15 -3
- package/tests/unit/src/components/SocialFollow/__snapshots__/SocialFollow.test.js.snap +30 -6
|
@@ -2,11 +2,10 @@ import React, { useState } from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import upperFirst from 'lodash.upperfirst';
|
|
4
4
|
import { Checkboxes } from '@blaze-react/checkboxes';
|
|
5
|
+
import { FaChevronDown, FaChevronUp } from 'react-icons/fa';
|
|
5
6
|
import { withTitle } from '../../../HOC';
|
|
6
7
|
import { decodeValue } from '../helpers';
|
|
7
|
-
import { LIMIT_MIN, LIMIT_MAX, MORE, LESS
|
|
8
|
-
|
|
9
|
-
const getButtonInfo = isMore => (isMore ? { icon: DOWN, text: MORE } : { icon: UP, text: LESS });
|
|
8
|
+
import { LIMIT_MIN, LIMIT_MAX, MORE, LESS } from '../constants';
|
|
10
9
|
|
|
11
10
|
const Checkbox = ({ data, prop, updateFilterValues, filterValues, label, shouldSearch }) => {
|
|
12
11
|
const [checkboxLimit, setCheckboxLimit] = useState(null);
|
|
@@ -69,8 +68,21 @@ const Checkbox = ({ data, prop, updateFilterValues, filterValues, label, shouldS
|
|
|
69
68
|
/>
|
|
70
69
|
{data[prop].buckets.length > LIMIT_MIN && (
|
|
71
70
|
<div role="button" className="see-more" onClick={handleCheckboxOptions}>
|
|
72
|
-
|
|
73
|
-
|
|
71
|
+
{shouldDisplayMore ? (
|
|
72
|
+
<>
|
|
73
|
+
<i>
|
|
74
|
+
<FaChevronDown className="inline-icon" />
|
|
75
|
+
</i>
|
|
76
|
+
{` See ${MORE}`}
|
|
77
|
+
</>
|
|
78
|
+
) : (
|
|
79
|
+
<>
|
|
80
|
+
<i>
|
|
81
|
+
<FaChevronUp className="inline-icon" />
|
|
82
|
+
</i>
|
|
83
|
+
{` See ${LESS}`}
|
|
84
|
+
</>
|
|
85
|
+
)}
|
|
74
86
|
</div>
|
|
75
87
|
)}
|
|
76
88
|
</>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import Input from '@blaze-react/input';
|
|
4
|
+
import { MdSearch } from 'react-icons/md';
|
|
4
5
|
import { withTitle } from '../../../HOC';
|
|
5
6
|
import { SEARCH_TERM } from '../constants';
|
|
6
7
|
|
|
@@ -24,7 +25,9 @@ const TextSearch = ({ label, searchValue, updateFilterValues, handleSubmit, filt
|
|
|
24
25
|
e.preventDefault();
|
|
25
26
|
updateFilterValues({ [SEARCH_TERM]: searchValue }, true);
|
|
26
27
|
}}>
|
|
27
|
-
<i
|
|
28
|
+
<i>
|
|
29
|
+
<MdSearch />
|
|
30
|
+
</i>
|
|
28
31
|
</button>
|
|
29
32
|
</div>
|
|
30
33
|
</div>
|
|
@@ -13,8 +13,6 @@ const LIMIT_MIN = 5;
|
|
|
13
13
|
const LIMIT_MAX = 1000;
|
|
14
14
|
const MORE = 'more';
|
|
15
15
|
const LESS = 'less';
|
|
16
|
-
const DOWN = 'down';
|
|
17
|
-
const UP = 'up';
|
|
18
16
|
const UPDATED_RANGES = 'updated_ranges';
|
|
19
17
|
const MIN_VALUE = 'min-value';
|
|
20
18
|
const MAX_VALUE = 'max-value';
|
|
@@ -52,8 +50,6 @@ export {
|
|
|
52
50
|
LIMIT_MAX,
|
|
53
51
|
MORE,
|
|
54
52
|
LESS,
|
|
55
|
-
DOWN,
|
|
56
|
-
UP,
|
|
57
53
|
UPDATED_RANGES,
|
|
58
54
|
MIN_VALUE,
|
|
59
55
|
MAX_VALUE,
|
|
@@ -4,12 +4,14 @@ import PropTypes from 'prop-types';
|
|
|
4
4
|
import { SOCIAL_NETWORKS, BASE_CLASS_NAME_FOLLOW } from './sf.config';
|
|
5
5
|
|
|
6
6
|
const SFItem = ({ url, id }) => {
|
|
7
|
-
const { name, className,
|
|
7
|
+
const { name, className, Icon, spanClassName } = SOCIAL_NETWORKS[id];
|
|
8
8
|
|
|
9
9
|
return (
|
|
10
10
|
<li className={BASE_CLASS_NAME_FOLLOW}>
|
|
11
11
|
<a title={name} href={url} className={className} rel="noopener nofollow" target="_blank">
|
|
12
|
-
<i
|
|
12
|
+
<i>
|
|
13
|
+
<Icon />
|
|
14
|
+
</i>
|
|
13
15
|
<span className={`social__network ${spanClassName}`}>{name}</span>
|
|
14
16
|
</a>
|
|
15
17
|
</li>
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
FaFacebookF,
|
|
3
|
+
FaTwitter,
|
|
4
|
+
FaPinterestP,
|
|
5
|
+
FaInstagram,
|
|
6
|
+
FaLinkedinIn,
|
|
7
|
+
FaYoutube
|
|
8
|
+
} from 'react-icons/fa';
|
|
9
|
+
|
|
1
10
|
export const BASE_CLASS_NAME_FOLLOW = 'social__list-item social__list-item--follow';
|
|
2
11
|
export const PORTRAIT = 'portrait';
|
|
3
12
|
export const LANDSCAPE = 'landscape';
|
|
@@ -6,37 +15,37 @@ export const SOCIAL_NETWORKS = {
|
|
|
6
15
|
facebook: {
|
|
7
16
|
name: 'Facebook',
|
|
8
17
|
className: 'facebook',
|
|
9
|
-
|
|
18
|
+
Icon: FaFacebookF,
|
|
10
19
|
spanClassName: 'hidden'
|
|
11
20
|
},
|
|
12
21
|
twitter: {
|
|
13
22
|
name: 'Twitter',
|
|
14
23
|
className: 'twitter',
|
|
15
|
-
|
|
24
|
+
Icon: FaTwitter,
|
|
16
25
|
spanClassName: 'hidden'
|
|
17
26
|
},
|
|
18
27
|
pinterest: {
|
|
19
28
|
name: 'Pinterest',
|
|
20
29
|
className: 'pinterest',
|
|
21
|
-
|
|
30
|
+
Icon: FaPinterestP,
|
|
22
31
|
spanClassName: 'hidden'
|
|
23
32
|
},
|
|
24
33
|
instagram: {
|
|
25
34
|
name: 'Instagram',
|
|
26
35
|
className: 'instagram',
|
|
27
|
-
|
|
36
|
+
Icon: FaInstagram,
|
|
28
37
|
spanClassName: 'hidden'
|
|
29
38
|
},
|
|
30
39
|
linkedin: {
|
|
31
40
|
name: 'Linkedin',
|
|
32
41
|
className: 'linkedin',
|
|
33
|
-
|
|
42
|
+
Icon: FaLinkedinIn,
|
|
34
43
|
spanClassName: 'hidden'
|
|
35
44
|
},
|
|
36
45
|
youtube: {
|
|
37
46
|
name: 'YouTube',
|
|
38
47
|
className: 'youtube',
|
|
39
|
-
|
|
48
|
+
Icon: FaYoutube,
|
|
40
49
|
spanClassName: 'hidden'
|
|
41
50
|
}
|
|
42
51
|
};
|
package/tests/unit/src/components/Image/GlobalLightbox/__snapshots__/GlobalLightbox.test.js.snap
CHANGED
|
@@ -19,9 +19,21 @@ exports[`GlobalLightbox component should match snapshot 1`] = `
|
|
|
19
19
|
class="modal__close"
|
|
20
20
|
role="button"
|
|
21
21
|
>
|
|
22
|
-
<i
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
<i>
|
|
23
|
+
<svg
|
|
24
|
+
fill="currentColor"
|
|
25
|
+
height="1em"
|
|
26
|
+
stroke="currentColor"
|
|
27
|
+
stroke-width="0"
|
|
28
|
+
viewBox="0 0 352 512"
|
|
29
|
+
width="1em"
|
|
30
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
31
|
+
>
|
|
32
|
+
<path
|
|
33
|
+
d="M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"
|
|
34
|
+
/>
|
|
35
|
+
</svg>
|
|
36
|
+
</i>
|
|
25
37
|
</div>
|
|
26
38
|
</header>
|
|
27
39
|
<div
|
|
@@ -9,10 +9,25 @@ exports[`CloseMobileForm component should render without throwing error and matc
|
|
|
9
9
|
Search refinement
|
|
10
10
|
</p>
|
|
11
11
|
<i
|
|
12
|
-
class="material-icons"
|
|
13
12
|
role="button"
|
|
14
13
|
>
|
|
15
|
-
|
|
14
|
+
<svg
|
|
15
|
+
fill="currentColor"
|
|
16
|
+
height="1em"
|
|
17
|
+
stroke="currentColor"
|
|
18
|
+
stroke-width="0"
|
|
19
|
+
viewBox="0 0 24 24"
|
|
20
|
+
width="1em"
|
|
21
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
22
|
+
>
|
|
23
|
+
<path
|
|
24
|
+
d="M0 0h24v24H0z"
|
|
25
|
+
fill="none"
|
|
26
|
+
/>
|
|
27
|
+
<path
|
|
28
|
+
d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
|
|
29
|
+
/>
|
|
30
|
+
</svg>
|
|
16
31
|
</i>
|
|
17
32
|
</div>
|
|
18
33
|
</DocumentFragment>
|
|
@@ -11,9 +11,21 @@ exports[`ResetDesktopForm component should render without throwing error and mat
|
|
|
11
11
|
title="reset--button"
|
|
12
12
|
type="button"
|
|
13
13
|
>
|
|
14
|
-
<i
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
<i>
|
|
15
|
+
<svg
|
|
16
|
+
fill="currentColor"
|
|
17
|
+
height="1em"
|
|
18
|
+
stroke="currentColor"
|
|
19
|
+
stroke-width="0"
|
|
20
|
+
viewBox="0 0 512 512"
|
|
21
|
+
width="1em"
|
|
22
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
23
|
+
>
|
|
24
|
+
<path
|
|
25
|
+
d="M256.455 8c66.269.119 126.437 26.233 170.859 68.685l35.715-35.715C478.149 25.851 504 36.559 504 57.941V192c0 13.255-10.745 24-24 24H345.941c-21.382 0-32.09-25.851-16.971-40.971l41.75-41.75c-30.864-28.899-70.801-44.907-113.23-45.273-92.398-.798-170.283 73.977-169.484 169.442C88.764 348.009 162.184 424 256 424c41.127 0 79.997-14.678 110.629-41.556 4.743-4.161 11.906-3.908 16.368.553l39.662 39.662c4.872 4.872 4.631 12.815-.482 17.433C378.202 479.813 319.926 504 256 504 119.034 504 8.001 392.967 8 256.002 7.999 119.193 119.646 7.755 256.455 8z"
|
|
26
|
+
/>
|
|
27
|
+
</svg>
|
|
28
|
+
</i>
|
|
17
29
|
</button>
|
|
18
30
|
<div
|
|
19
31
|
data-testid="reset-button"
|
package/tests/unit/src/components/SearchFilter/SearchFilter/__snapshots__/SearchFilter.test.js.snap
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`SearchFilter component when groupAfterMobile
|
|
3
|
+
exports[`SearchFilter component when groupAfterMobile = 0 and groupAfterDesktop > 0 should render without throwing error and match snapshot 1`] = `
|
|
4
4
|
<DocumentFragment>
|
|
5
5
|
<form
|
|
6
6
|
class=""
|
|
@@ -19,9 +19,21 @@ exports[`SearchFilter component when groupAfterMobile > 0 and groupAfterDesktop
|
|
|
19
19
|
title="reset--button"
|
|
20
20
|
type="button"
|
|
21
21
|
>
|
|
22
|
-
<i
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
<i>
|
|
23
|
+
<svg
|
|
24
|
+
fill="currentColor"
|
|
25
|
+
height="1em"
|
|
26
|
+
stroke="currentColor"
|
|
27
|
+
stroke-width="0"
|
|
28
|
+
viewBox="0 0 512 512"
|
|
29
|
+
width="1em"
|
|
30
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
31
|
+
>
|
|
32
|
+
<path
|
|
33
|
+
d="M256.455 8c66.269.119 126.437 26.233 170.859 68.685l35.715-35.715C478.149 25.851 504 36.559 504 57.941V192c0 13.255-10.745 24-24 24H345.941c-21.382 0-32.09-25.851-16.971-40.971l41.75-41.75c-30.864-28.899-70.801-44.907-113.23-45.273-92.398-.798-170.283 73.977-169.484 169.442C88.764 348.009 162.184 424 256 424c41.127 0 79.997-14.678 110.629-41.556 4.743-4.161 11.906-3.908 16.368.553l39.662 39.662c4.872 4.872 4.631 12.815-.482 17.433C378.202 479.813 319.926 504 256 504 119.034 504 8.001 392.967 8 256.002 7.999 119.193 119.646 7.755 256.455 8z"
|
|
34
|
+
/>
|
|
35
|
+
</svg>
|
|
36
|
+
</i>
|
|
25
37
|
</button>
|
|
26
38
|
<div
|
|
27
39
|
data-testid="reset-button"
|
|
@@ -33,18 +45,18 @@ exports[`SearchFilter component when groupAfterMobile > 0 and groupAfterDesktop
|
|
|
33
45
|
<div
|
|
34
46
|
class="filter__wrapper filter__wrapper--search-refine"
|
|
35
47
|
>
|
|
36
|
-
<button
|
|
37
|
-
class="filter__more-filters-mobile-toggler"
|
|
38
|
-
type="button"
|
|
39
|
-
>
|
|
40
|
-
Filters
|
|
41
|
-
</button>
|
|
42
48
|
<div
|
|
43
49
|
class="filter__more-filters-mobile-wrapper"
|
|
44
50
|
>
|
|
45
51
|
<div
|
|
46
52
|
class="filter__more-filters-mobile-content"
|
|
47
53
|
>
|
|
54
|
+
<button
|
|
55
|
+
class="filter__more-filters-desktop-toggler"
|
|
56
|
+
type="button"
|
|
57
|
+
>
|
|
58
|
+
More filters
|
|
59
|
+
</button>
|
|
48
60
|
<div
|
|
49
61
|
class="filter__more-filters-desktop-wrapper"
|
|
50
62
|
>
|
|
@@ -63,9 +75,21 @@ exports[`SearchFilter component when groupAfterMobile > 0 and groupAfterDesktop
|
|
|
63
75
|
title="reset--button"
|
|
64
76
|
type="button"
|
|
65
77
|
>
|
|
66
|
-
<i
|
|
67
|
-
|
|
68
|
-
|
|
78
|
+
<i>
|
|
79
|
+
<svg
|
|
80
|
+
fill="currentColor"
|
|
81
|
+
height="1em"
|
|
82
|
+
stroke="currentColor"
|
|
83
|
+
stroke-width="0"
|
|
84
|
+
viewBox="0 0 512 512"
|
|
85
|
+
width="1em"
|
|
86
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
87
|
+
>
|
|
88
|
+
<path
|
|
89
|
+
d="M256.455 8c66.269.119 126.437 26.233 170.859 68.685l35.715-35.715C478.149 25.851 504 36.559 504 57.941V192c0 13.255-10.745 24-24 24H345.941c-21.382 0-32.09-25.851-16.971-40.971l41.75-41.75c-30.864-28.899-70.801-44.907-113.23-45.273-92.398-.798-170.283 73.977-169.484 169.442C88.764 348.009 162.184 424 256 424c41.127 0 79.997-14.678 110.629-41.556 4.743-4.161 11.906-3.908 16.368.553l39.662 39.662c4.872 4.872 4.631 12.815-.482 17.433C378.202 479.813 319.926 504 256 504 119.034 504 8.001 392.967 8 256.002 7.999 119.193 119.646 7.755 256.455 8z"
|
|
90
|
+
/>
|
|
91
|
+
</svg>
|
|
92
|
+
</i>
|
|
69
93
|
</button>
|
|
70
94
|
<div
|
|
71
95
|
data-testid="reset-button"
|
|
@@ -95,9 +119,21 @@ exports[`SearchFilter component when groupAfterMobile > 0 and groupAfterDesktop
|
|
|
95
119
|
title="reset--button"
|
|
96
120
|
type="button"
|
|
97
121
|
>
|
|
98
|
-
<i
|
|
99
|
-
|
|
100
|
-
|
|
122
|
+
<i>
|
|
123
|
+
<svg
|
|
124
|
+
fill="currentColor"
|
|
125
|
+
height="1em"
|
|
126
|
+
stroke="currentColor"
|
|
127
|
+
stroke-width="0"
|
|
128
|
+
viewBox="0 0 512 512"
|
|
129
|
+
width="1em"
|
|
130
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
131
|
+
>
|
|
132
|
+
<path
|
|
133
|
+
d="M256.455 8c66.269.119 126.437 26.233 170.859 68.685l35.715-35.715C478.149 25.851 504 36.559 504 57.941V192c0 13.255-10.745 24-24 24H345.941c-21.382 0-32.09-25.851-16.971-40.971l41.75-41.75c-30.864-28.899-70.801-44.907-113.23-45.273-92.398-.798-170.283 73.977-169.484 169.442C88.764 348.009 162.184 424 256 424c41.127 0 79.997-14.678 110.629-41.556 4.743-4.161 11.906-3.908 16.368.553l39.662 39.662c4.872 4.872 4.631 12.815-.482 17.433C378.202 479.813 319.926 504 256 504 119.034 504 8.001 392.967 8 256.002 7.999 119.193 119.646 7.755 256.455 8z"
|
|
134
|
+
/>
|
|
135
|
+
</svg>
|
|
136
|
+
</i>
|
|
101
137
|
</button>
|
|
102
138
|
<div
|
|
103
139
|
data-testid="reset-button"
|
|
@@ -127,7 +163,7 @@ exports[`SearchFilter component when groupAfterMobile > 0 and groupAfterDesktop
|
|
|
127
163
|
</DocumentFragment>
|
|
128
164
|
`;
|
|
129
165
|
|
|
130
|
-
exports[`SearchFilter component when groupAfterMobile
|
|
166
|
+
exports[`SearchFilter component when groupAfterMobile > 0 and groupAfterDesktop = 0 should render without throwing error and match snapshot 1`] = `
|
|
131
167
|
<DocumentFragment>
|
|
132
168
|
<form
|
|
133
169
|
class=""
|
|
@@ -146,9 +182,21 @@ exports[`SearchFilter component when groupAfterMobile = 0 and groupAfterDesktop
|
|
|
146
182
|
title="reset--button"
|
|
147
183
|
type="button"
|
|
148
184
|
>
|
|
149
|
-
<i
|
|
150
|
-
|
|
151
|
-
|
|
185
|
+
<i>
|
|
186
|
+
<svg
|
|
187
|
+
fill="currentColor"
|
|
188
|
+
height="1em"
|
|
189
|
+
stroke="currentColor"
|
|
190
|
+
stroke-width="0"
|
|
191
|
+
viewBox="0 0 512 512"
|
|
192
|
+
width="1em"
|
|
193
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
194
|
+
>
|
|
195
|
+
<path
|
|
196
|
+
d="M256.455 8c66.269.119 126.437 26.233 170.859 68.685l35.715-35.715C478.149 25.851 504 36.559 504 57.941V192c0 13.255-10.745 24-24 24H345.941c-21.382 0-32.09-25.851-16.971-40.971l41.75-41.75c-30.864-28.899-70.801-44.907-113.23-45.273-92.398-.798-170.283 73.977-169.484 169.442C88.764 348.009 162.184 424 256 424c41.127 0 79.997-14.678 110.629-41.556 4.743-4.161 11.906-3.908 16.368.553l39.662 39.662c4.872 4.872 4.631 12.815-.482 17.433C378.202 479.813 319.926 504 256 504 119.034 504 8.001 392.967 8 256.002 7.999 119.193 119.646 7.755 256.455 8z"
|
|
197
|
+
/>
|
|
198
|
+
</svg>
|
|
199
|
+
</i>
|
|
152
200
|
</button>
|
|
153
201
|
<div
|
|
154
202
|
data-testid="reset-button"
|
|
@@ -160,18 +208,18 @@ exports[`SearchFilter component when groupAfterMobile = 0 and groupAfterDesktop
|
|
|
160
208
|
<div
|
|
161
209
|
class="filter__wrapper filter__wrapper--search-refine"
|
|
162
210
|
>
|
|
211
|
+
<button
|
|
212
|
+
class="filter__more-filters-mobile-toggler"
|
|
213
|
+
type="button"
|
|
214
|
+
>
|
|
215
|
+
Filters
|
|
216
|
+
</button>
|
|
163
217
|
<div
|
|
164
218
|
class="filter__more-filters-mobile-wrapper"
|
|
165
219
|
>
|
|
166
220
|
<div
|
|
167
221
|
class="filter__more-filters-mobile-content"
|
|
168
222
|
>
|
|
169
|
-
<button
|
|
170
|
-
class="filter__more-filters-desktop-toggler"
|
|
171
|
-
type="button"
|
|
172
|
-
>
|
|
173
|
-
More filters
|
|
174
|
-
</button>
|
|
175
223
|
<div
|
|
176
224
|
class="filter__more-filters-desktop-wrapper"
|
|
177
225
|
>
|
|
@@ -190,9 +238,21 @@ exports[`SearchFilter component when groupAfterMobile = 0 and groupAfterDesktop
|
|
|
190
238
|
title="reset--button"
|
|
191
239
|
type="button"
|
|
192
240
|
>
|
|
193
|
-
<i
|
|
194
|
-
|
|
195
|
-
|
|
241
|
+
<i>
|
|
242
|
+
<svg
|
|
243
|
+
fill="currentColor"
|
|
244
|
+
height="1em"
|
|
245
|
+
stroke="currentColor"
|
|
246
|
+
stroke-width="0"
|
|
247
|
+
viewBox="0 0 512 512"
|
|
248
|
+
width="1em"
|
|
249
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
250
|
+
>
|
|
251
|
+
<path
|
|
252
|
+
d="M256.455 8c66.269.119 126.437 26.233 170.859 68.685l35.715-35.715C478.149 25.851 504 36.559 504 57.941V192c0 13.255-10.745 24-24 24H345.941c-21.382 0-32.09-25.851-16.971-40.971l41.75-41.75c-30.864-28.899-70.801-44.907-113.23-45.273-92.398-.798-170.283 73.977-169.484 169.442C88.764 348.009 162.184 424 256 424c41.127 0 79.997-14.678 110.629-41.556 4.743-4.161 11.906-3.908 16.368.553l39.662 39.662c4.872 4.872 4.631 12.815-.482 17.433C378.202 479.813 319.926 504 256 504 119.034 504 8.001 392.967 8 256.002 7.999 119.193 119.646 7.755 256.455 8z"
|
|
253
|
+
/>
|
|
254
|
+
</svg>
|
|
255
|
+
</i>
|
|
196
256
|
</button>
|
|
197
257
|
<div
|
|
198
258
|
data-testid="reset-button"
|
|
@@ -222,9 +282,21 @@ exports[`SearchFilter component when groupAfterMobile = 0 and groupAfterDesktop
|
|
|
222
282
|
title="reset--button"
|
|
223
283
|
type="button"
|
|
224
284
|
>
|
|
225
|
-
<i
|
|
226
|
-
|
|
227
|
-
|
|
285
|
+
<i>
|
|
286
|
+
<svg
|
|
287
|
+
fill="currentColor"
|
|
288
|
+
height="1em"
|
|
289
|
+
stroke="currentColor"
|
|
290
|
+
stroke-width="0"
|
|
291
|
+
viewBox="0 0 512 512"
|
|
292
|
+
width="1em"
|
|
293
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
294
|
+
>
|
|
295
|
+
<path
|
|
296
|
+
d="M256.455 8c66.269.119 126.437 26.233 170.859 68.685l35.715-35.715C478.149 25.851 504 36.559 504 57.941V192c0 13.255-10.745 24-24 24H345.941c-21.382 0-32.09-25.851-16.971-40.971l41.75-41.75c-30.864-28.899-70.801-44.907-113.23-45.273-92.398-.798-170.283 73.977-169.484 169.442C88.764 348.009 162.184 424 256 424c41.127 0 79.997-14.678 110.629-41.556 4.743-4.161 11.906-3.908 16.368.553l39.662 39.662c4.872 4.872 4.631 12.815-.482 17.433C378.202 479.813 319.926 504 256 504 119.034 504 8.001 392.967 8 256.002 7.999 119.193 119.646 7.755 256.455 8z"
|
|
297
|
+
/>
|
|
298
|
+
</svg>
|
|
299
|
+
</i>
|
|
228
300
|
</button>
|
|
229
301
|
<div
|
|
230
302
|
data-testid="reset-button"
|
|
@@ -273,9 +345,21 @@ exports[`SearchFilter component when groupAfterMobile > 0 and groupAfterDesktop
|
|
|
273
345
|
title="reset--button"
|
|
274
346
|
type="button"
|
|
275
347
|
>
|
|
276
|
-
<i
|
|
277
|
-
|
|
278
|
-
|
|
348
|
+
<i>
|
|
349
|
+
<svg
|
|
350
|
+
fill="currentColor"
|
|
351
|
+
height="1em"
|
|
352
|
+
stroke="currentColor"
|
|
353
|
+
stroke-width="0"
|
|
354
|
+
viewBox="0 0 512 512"
|
|
355
|
+
width="1em"
|
|
356
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
357
|
+
>
|
|
358
|
+
<path
|
|
359
|
+
d="M256.455 8c66.269.119 126.437 26.233 170.859 68.685l35.715-35.715C478.149 25.851 504 36.559 504 57.941V192c0 13.255-10.745 24-24 24H345.941c-21.382 0-32.09-25.851-16.971-40.971l41.75-41.75c-30.864-28.899-70.801-44.907-113.23-45.273-92.398-.798-170.283 73.977-169.484 169.442C88.764 348.009 162.184 424 256 424c41.127 0 79.997-14.678 110.629-41.556 4.743-4.161 11.906-3.908 16.368.553l39.662 39.662c4.872 4.872 4.631 12.815-.482 17.433C378.202 479.813 319.926 504 256 504 119.034 504 8.001 392.967 8 256.002 7.999 119.193 119.646 7.755 256.455 8z"
|
|
360
|
+
/>
|
|
361
|
+
</svg>
|
|
362
|
+
</i>
|
|
279
363
|
</button>
|
|
280
364
|
<div
|
|
281
365
|
data-testid="reset-button"
|
|
@@ -323,9 +407,21 @@ exports[`SearchFilter component when groupAfterMobile > 0 and groupAfterDesktop
|
|
|
323
407
|
title="reset--button"
|
|
324
408
|
type="button"
|
|
325
409
|
>
|
|
326
|
-
<i
|
|
327
|
-
|
|
328
|
-
|
|
410
|
+
<i>
|
|
411
|
+
<svg
|
|
412
|
+
fill="currentColor"
|
|
413
|
+
height="1em"
|
|
414
|
+
stroke="currentColor"
|
|
415
|
+
stroke-width="0"
|
|
416
|
+
viewBox="0 0 512 512"
|
|
417
|
+
width="1em"
|
|
418
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
419
|
+
>
|
|
420
|
+
<path
|
|
421
|
+
d="M256.455 8c66.269.119 126.437 26.233 170.859 68.685l35.715-35.715C478.149 25.851 504 36.559 504 57.941V192c0 13.255-10.745 24-24 24H345.941c-21.382 0-32.09-25.851-16.971-40.971l41.75-41.75c-30.864-28.899-70.801-44.907-113.23-45.273-92.398-.798-170.283 73.977-169.484 169.442C88.764 348.009 162.184 424 256 424c41.127 0 79.997-14.678 110.629-41.556 4.743-4.161 11.906-3.908 16.368.553l39.662 39.662c4.872 4.872 4.631 12.815-.482 17.433C378.202 479.813 319.926 504 256 504 119.034 504 8.001 392.967 8 256.002 7.999 119.193 119.646 7.755 256.455 8z"
|
|
422
|
+
/>
|
|
423
|
+
</svg>
|
|
424
|
+
</i>
|
|
329
425
|
</button>
|
|
330
426
|
<div
|
|
331
427
|
data-testid="reset-button"
|
|
@@ -355,9 +451,21 @@ exports[`SearchFilter component when groupAfterMobile > 0 and groupAfterDesktop
|
|
|
355
451
|
title="reset--button"
|
|
356
452
|
type="button"
|
|
357
453
|
>
|
|
358
|
-
<i
|
|
359
|
-
|
|
360
|
-
|
|
454
|
+
<i>
|
|
455
|
+
<svg
|
|
456
|
+
fill="currentColor"
|
|
457
|
+
height="1em"
|
|
458
|
+
stroke="currentColor"
|
|
459
|
+
stroke-width="0"
|
|
460
|
+
viewBox="0 0 512 512"
|
|
461
|
+
width="1em"
|
|
462
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
463
|
+
>
|
|
464
|
+
<path
|
|
465
|
+
d="M256.455 8c66.269.119 126.437 26.233 170.859 68.685l35.715-35.715C478.149 25.851 504 36.559 504 57.941V192c0 13.255-10.745 24-24 24H345.941c-21.382 0-32.09-25.851-16.971-40.971l41.75-41.75c-30.864-28.899-70.801-44.907-113.23-45.273-92.398-.798-170.283 73.977-169.484 169.442C88.764 348.009 162.184 424 256 424c41.127 0 79.997-14.678 110.629-41.556 4.743-4.161 11.906-3.908 16.368.553l39.662 39.662c4.872 4.872 4.631 12.815-.482 17.433C378.202 479.813 319.926 504 256 504 119.034 504 8.001 392.967 8 256.002 7.999 119.193 119.646 7.755 256.455 8z"
|
|
466
|
+
/>
|
|
467
|
+
</svg>
|
|
468
|
+
</i>
|
|
361
469
|
</button>
|
|
362
470
|
<div
|
|
363
471
|
data-testid="reset-button"
|
|
@@ -406,9 +514,21 @@ exports[`SearchFilter component when the device is desktop should render without
|
|
|
406
514
|
title="reset--button"
|
|
407
515
|
type="button"
|
|
408
516
|
>
|
|
409
|
-
<i
|
|
410
|
-
|
|
411
|
-
|
|
517
|
+
<i>
|
|
518
|
+
<svg
|
|
519
|
+
fill="currentColor"
|
|
520
|
+
height="1em"
|
|
521
|
+
stroke="currentColor"
|
|
522
|
+
stroke-width="0"
|
|
523
|
+
viewBox="0 0 512 512"
|
|
524
|
+
width="1em"
|
|
525
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
526
|
+
>
|
|
527
|
+
<path
|
|
528
|
+
d="M256.455 8c66.269.119 126.437 26.233 170.859 68.685l35.715-35.715C478.149 25.851 504 36.559 504 57.941V192c0 13.255-10.745 24-24 24H345.941c-21.382 0-32.09-25.851-16.971-40.971l41.75-41.75c-30.864-28.899-70.801-44.907-113.23-45.273-92.398-.798-170.283 73.977-169.484 169.442C88.764 348.009 162.184 424 256 424c41.127 0 79.997-14.678 110.629-41.556 4.743-4.161 11.906-3.908 16.368.553l39.662 39.662c4.872 4.872 4.631 12.815-.482 17.433C378.202 479.813 319.926 504 256 504 119.034 504 8.001 392.967 8 256.002 7.999 119.193 119.646 7.755 256.455 8z"
|
|
529
|
+
/>
|
|
530
|
+
</svg>
|
|
531
|
+
</i>
|
|
412
532
|
</button>
|
|
413
533
|
<div
|
|
414
534
|
data-testid="reset-button"
|
|
@@ -452,9 +572,21 @@ exports[`SearchFilter component when the device is mobile when isCollapsedOnResp
|
|
|
452
572
|
title="reset--button"
|
|
453
573
|
type="button"
|
|
454
574
|
>
|
|
455
|
-
<i
|
|
456
|
-
|
|
457
|
-
|
|
575
|
+
<i>
|
|
576
|
+
<svg
|
|
577
|
+
fill="currentColor"
|
|
578
|
+
height="1em"
|
|
579
|
+
stroke="currentColor"
|
|
580
|
+
stroke-width="0"
|
|
581
|
+
viewBox="0 0 512 512"
|
|
582
|
+
width="1em"
|
|
583
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
584
|
+
>
|
|
585
|
+
<path
|
|
586
|
+
d="M256.455 8c66.269.119 126.437 26.233 170.859 68.685l35.715-35.715C478.149 25.851 504 36.559 504 57.941V192c0 13.255-10.745 24-24 24H345.941c-21.382 0-32.09-25.851-16.971-40.971l41.75-41.75c-30.864-28.899-70.801-44.907-113.23-45.273-92.398-.798-170.283 73.977-169.484 169.442C88.764 348.009 162.184 424 256 424c41.127 0 79.997-14.678 110.629-41.556 4.743-4.161 11.906-3.908 16.368.553l39.662 39.662c4.872 4.872 4.631 12.815-.482 17.433C378.202 479.813 319.926 504 256 504 119.034 504 8.001 392.967 8 256.002 7.999 119.193 119.646 7.755 256.455 8z"
|
|
587
|
+
/>
|
|
588
|
+
</svg>
|
|
589
|
+
</i>
|
|
458
590
|
</button>
|
|
459
591
|
<div
|
|
460
592
|
data-testid="reset-button"
|
|
@@ -493,10 +625,25 @@ exports[`SearchFilter component when the device is mobile when isCollapsedOnResp
|
|
|
493
625
|
Search refinement
|
|
494
626
|
</p>
|
|
495
627
|
<i
|
|
496
|
-
class="material-icons"
|
|
497
628
|
role="button"
|
|
498
629
|
>
|
|
499
|
-
|
|
630
|
+
<svg
|
|
631
|
+
fill="currentColor"
|
|
632
|
+
height="1em"
|
|
633
|
+
stroke="currentColor"
|
|
634
|
+
stroke-width="0"
|
|
635
|
+
viewBox="0 0 24 24"
|
|
636
|
+
width="1em"
|
|
637
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
638
|
+
>
|
|
639
|
+
<path
|
|
640
|
+
d="M0 0h24v24H0z"
|
|
641
|
+
fill="none"
|
|
642
|
+
/>
|
|
643
|
+
<path
|
|
644
|
+
d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
|
|
645
|
+
/>
|
|
646
|
+
</svg>
|
|
500
647
|
</i>
|
|
501
648
|
</div>
|
|
502
649
|
<div
|
package/tests/unit/src/components/SearchFilter/components/__snapshots__/TextSearch.test.js.snap
CHANGED
|
@@ -31,10 +31,24 @@ exports[`TextSearch component should render without throwing an error and match
|
|
|
31
31
|
class="icon-button icon-button--search"
|
|
32
32
|
type="button"
|
|
33
33
|
>
|
|
34
|
-
<i
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
<i>
|
|
35
|
+
<svg
|
|
36
|
+
fill="currentColor"
|
|
37
|
+
height="1em"
|
|
38
|
+
stroke="currentColor"
|
|
39
|
+
stroke-width="0"
|
|
40
|
+
viewBox="0 0 24 24"
|
|
41
|
+
width="1em"
|
|
42
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
43
|
+
>
|
|
44
|
+
<path
|
|
45
|
+
d="M0 0h24v24H0z"
|
|
46
|
+
fill="none"
|
|
47
|
+
/>
|
|
48
|
+
<path
|
|
49
|
+
d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"
|
|
50
|
+
/>
|
|
51
|
+
</svg>
|
|
38
52
|
</i>
|
|
39
53
|
</button>
|
|
40
54
|
</div>
|
|
@@ -12,9 +12,21 @@ exports[`SFItem component should match snapshot and render without throwing an e
|
|
|
12
12
|
target="_blank"
|
|
13
13
|
title="Facebook"
|
|
14
14
|
>
|
|
15
|
-
<i
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
<i>
|
|
16
|
+
<svg
|
|
17
|
+
fill="currentColor"
|
|
18
|
+
height="1em"
|
|
19
|
+
stroke="currentColor"
|
|
20
|
+
stroke-width="0"
|
|
21
|
+
viewBox="0 0 320 512"
|
|
22
|
+
width="1em"
|
|
23
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
24
|
+
>
|
|
25
|
+
<path
|
|
26
|
+
d="M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z"
|
|
27
|
+
/>
|
|
28
|
+
</svg>
|
|
29
|
+
</i>
|
|
18
30
|
<span
|
|
19
31
|
class="social__network hidden"
|
|
20
32
|
>
|