@trafilea/afrodita-components 6.58.0 → 6.58.2
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.d.ts +1 -0
- package/build/index.esm.js +5 -3
- package/build/index.esm.js.map +1 -1
- package/build/index.js +5 -3
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -8589,7 +8589,9 @@ var Filters = function (_a) {
|
|
|
8589
8589
|
}
|
|
8590
8590
|
}
|
|
8591
8591
|
return checked
|
|
8592
|
-
? __spreadArray(__spreadArray([], (currentFilter.isMultiselect
|
|
8592
|
+
? __spreadArray(__spreadArray([], (currentFilter.isMultiselect
|
|
8593
|
+
? prev
|
|
8594
|
+
: prev.filter(function (filter) { return filter.sectionIndex !== sectionIndex; })), true), [
|
|
8593
8595
|
{
|
|
8594
8596
|
sectionIndex: sectionIndex,
|
|
8595
8597
|
itemIndex: itemIndex,
|
|
@@ -15158,7 +15160,7 @@ var Container$T = newStyled.div(templateObject_6$s || (templateObject_6$s = __ma
|
|
|
15158
15160
|
}, visibleStyle, transformStyle);
|
|
15159
15161
|
var Overlay = newStyled.div(templateObject_7$p || (templateObject_7$p = __makeTemplateObject(["\n position: fixed;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.75);\n z-index: var(--zIndex-overlay);\n transition: opacity 0.3s;\n ", "\n"], ["\n position: fixed;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.75);\n z-index: var(--zIndex-overlay);\n transition: opacity 0.3s;\n ", "\n"])), visibleStyle);
|
|
15160
15162
|
var Modal = function (_a) {
|
|
15161
|
-
var id = _a.id, children = _a.children, _b = _a.dismissable, dismissable = _b === void 0 ? true : _b, _c = _a.maxFullScreen, maxFullScreen = _c === void 0 ? false : _c, padding = _a.padding, onClickOverlayHandler = _a.onClickOverlayHandler, width = _a.width, _d = _a.initialTop, initialTop = _d === void 0 ? '50%' : _d, _e = _a.countryRedirModalWithCoupon, countryRedirModalWithCoupon = _e === void 0 ? false : _e;
|
|
15163
|
+
var id = _a.id, children = _a.children, _b = _a.dismissable, dismissable = _b === void 0 ? true : _b, _c = _a.maxFullScreen, maxFullScreen = _c === void 0 ? false : _c, padding = _a.padding, onClickOverlayHandler = _a.onClickOverlayHandler, width = _a.width, _d = _a.initialTop, initialTop = _d === void 0 ? '50%' : _d, _e = _a.countryRedirModalWithCoupon, countryRedirModalWithCoupon = _e === void 0 ? false : _e, className = _a.className;
|
|
15162
15164
|
var _f = useModal(id), opened = _f.opened, close = _f.close;
|
|
15163
15165
|
var onDismiss = function () {
|
|
15164
15166
|
if (!dismissable) {
|
|
@@ -15166,7 +15168,7 @@ var Modal = function (_a) {
|
|
|
15166
15168
|
}
|
|
15167
15169
|
close();
|
|
15168
15170
|
};
|
|
15169
|
-
return (jsxs(Portal, __assign$1({ id: id }, { children: [jsx(Container$T, __assign$1({ opened: opened, maxFullScreen: maxFullScreen, padding: padding, width: width, initialTop: initialTop, countryRedirModalWithCoupon: countryRedirModalWithCoupon }, { children: children }), void 0), jsx(Overlay, { "data-testid": "modal-overlay", opened: opened, onClick: function () {
|
|
15171
|
+
return (jsxs(Portal, __assign$1({ id: id, className: className }, { children: [jsx(Container$T, __assign$1({ opened: opened, maxFullScreen: maxFullScreen, padding: padding, width: width, initialTop: initialTop, countryRedirModalWithCoupon: countryRedirModalWithCoupon }, { children: children }), void 0), jsx(Overlay, { "data-testid": "modal-overlay", opened: opened, onClick: function () {
|
|
15170
15172
|
onClickOverlayHandler === null || onClickOverlayHandler === void 0 ? void 0 : onClickOverlayHandler();
|
|
15171
15173
|
onDismiss();
|
|
15172
15174
|
} }, void 0)] }), void 0));
|