@trafilea/afrodita-components 5.0.0-beta.107 → 5.0.0-beta.108
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/build/index.esm.js +5 -8
- package/build/index.esm.js.map +1 -1
- package/build/index.js +5 -8
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.esm.js
CHANGED
|
@@ -17468,7 +17468,7 @@ var Filters = function (_a) {
|
|
|
17468
17468
|
var checkedItems = [];
|
|
17469
17469
|
values.forEach(function (filter, sectionIndex) {
|
|
17470
17470
|
filter.items.forEach(function (item, itemIndex) {
|
|
17471
|
-
if (item.checked) {
|
|
17471
|
+
if (item.checked && !item.blockUncheck) {
|
|
17472
17472
|
checkedItems.push({
|
|
17473
17473
|
sectionIndex: sectionIndex,
|
|
17474
17474
|
itemIndex: itemIndex,
|
|
@@ -17536,18 +17536,15 @@ var Filters = function (_a) {
|
|
|
17536
17536
|
setFilter(function (prev) {
|
|
17537
17537
|
return prev.map(function (filter) {
|
|
17538
17538
|
return __assign$1(__assign$1({}, filter), { items: filter.items.map(function (value) {
|
|
17539
|
-
return {
|
|
17540
|
-
label: value.label,
|
|
17541
|
-
checked: false,
|
|
17542
|
-
};
|
|
17539
|
+
return __assign$1(__assign$1({}, value), { checked: !value.blockUncheck ? false : value.checked });
|
|
17543
17540
|
}) });
|
|
17544
17541
|
});
|
|
17545
17542
|
});
|
|
17546
17543
|
onResetValues();
|
|
17547
17544
|
};
|
|
17548
|
-
return (jsxs$1(Fragment$1, { children: [!isMobile ? (
|
|
17549
|
-
|
|
17550
|
-
|
|
17545
|
+
return (jsxs$1(Fragment$1, { children: [!isMobile ? (jsx$1("div", __assign$1({ "data-testid": "DesktopHeader" }, { children: !!checkedItems.length && (jsxs$1(Fragment$1, { children: [jsxs$1(Header, { children: [jsxs$1(H4, __assign$1({ color: theme.colors.shades['700'].color }, { children: [filterByText, " (", checkedItems.length, ")"] }), void 0), jsx$1(ClearAll, __assign$1({ onClick: handleClearAllClick, color: theme.colors.shades['700'].color, "data-testid": "desktop-clear-all" }, { children: clearAllText }), void 0)] }, void 0), jsx$1(Tags, { color: tagsColor, items: checkedItems.map(function (item) {
|
|
17546
|
+
return item.label === '$75 And Above' ? '+$75' : item.label;
|
|
17547
|
+
}), onCloseClick: function (index) { return handleCloseClick(checkedItems[index]); } }, void 0)] }, void 0)) }), void 0)) : (jsxs$1(MobileHeader, __assign$1({ "data-testid": "MobileHeader" }, { children: [jsx$1(MobileIconsContainer, __assign$1({ onClick: mobileBackArrowClick, "data-testid": "mobileBackArrow" }, { children: jsx$1(Icon.Arrows.ChevronRightVariant, { fill: theme.colors.shades['700'].color }, void 0) }), void 0), !!checkedItems.length && (jsxs$1(H4, __assign$1({ color: theme.colors.shades['700'].color }, { children: [filtersSelectText, " (", checkedItems.length, ")"] }), void 0))] }), void 0)), filters
|
|
17551
17548
|
.filter(function (filter) { return filter.isLinkOption; })
|
|
17552
17549
|
.map(function (option, index) { return (jsx$1(OptionContainer, { children: jsx$1(FilterLink, __assign$1({ color: option.color || theme.colors.shades['550'].color, href: option.link }, { children: option.title }), void 0) }, index)); }), filters
|
|
17553
17550
|
.filter(function (filter) { return !filter.isLinkOption; })
|