@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 CHANGED
@@ -3281,6 +3281,7 @@ declare type ModalProps = {
3281
3281
  width?: string;
3282
3282
  initialTop?: string;
3283
3283
  countryRedirModalWithCoupon?: boolean;
3284
+ className?: string;
3284
3285
  };
3285
3286
  interface ContainerProps {
3286
3287
  maxFullScreen: boolean;
@@ -8563,7 +8563,9 @@ var Filters = function (_a) {
8563
8563
  }
8564
8564
  }
8565
8565
  return checked
8566
- ? __spreadArray(__spreadArray([], (currentFilter.isMultiselect ? prev : []), true), [
8566
+ ? __spreadArray(__spreadArray([], (currentFilter.isMultiselect
8567
+ ? prev
8568
+ : prev.filter(function (filter) { return filter.sectionIndex !== sectionIndex; })), true), [
8567
8569
  {
8568
8570
  sectionIndex: sectionIndex,
8569
8571
  itemIndex: itemIndex,
@@ -15132,7 +15134,7 @@ var Container$T = newStyled.div(templateObject_6$s || (templateObject_6$s = __ma
15132
15134
  }, visibleStyle, transformStyle);
15133
15135
  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);
15134
15136
  var Modal = function (_a) {
15135
- 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;
15137
+ 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;
15136
15138
  var _f = useModal(id), opened = _f.opened, close = _f.close;
15137
15139
  var onDismiss = function () {
15138
15140
  if (!dismissable) {
@@ -15140,7 +15142,7 @@ var Modal = function (_a) {
15140
15142
  }
15141
15143
  close();
15142
15144
  };
15143
- 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 () {
15145
+ 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 () {
15144
15146
  onClickOverlayHandler === null || onClickOverlayHandler === void 0 ? void 0 : onClickOverlayHandler();
15145
15147
  onDismiss();
15146
15148
  } }, void 0)] }), void 0));