@react-lgpd-consent/mui 0.5.1 → 0.6.1

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/dist/index.cjs CHANGED
@@ -264,7 +264,8 @@ function CookieBanner({
264
264
  bottom: 0,
265
265
  backgroundColor: resolveBackdropColor(theme),
266
266
  zIndex: 1299
267
- })
267
+ }),
268
+ "data-testid": "lgpd-cookie-banner-overlay"
268
269
  }
269
270
  ),
270
271
  /* @__PURE__ */ jsxRuntime.jsx(Box2__default.default, { sx: positionStyle, children: bannerContent })
@@ -301,7 +302,7 @@ function useThemeWithFallbacks() {
301
302
  }
302
303
  };
303
304
  }
304
- var FloatingPreferencesButton = React3__namespace.memo(function FloatingPreferencesButton2({
305
+ function FloatingPreferencesButtonComponent({
305
306
  position = "bottom-right",
306
307
  offset = 24,
307
308
  icon = /* @__PURE__ */ jsxRuntime.jsx(CookieOutlined__default.default, {}),
@@ -363,7 +364,9 @@ var FloatingPreferencesButton = React3__namespace.memo(function FloatingPreferen
363
364
  children: icon
364
365
  }
365
366
  ) });
366
- });
367
+ }
368
+ var FloatingPreferencesButton = React3__namespace.memo(FloatingPreferencesButtonComponent);
369
+ FloatingPreferencesButton.displayName = "FloatingPreferencesButton";
367
370
  function PreferencesModal({
368
371
  DialogProps: DialogProps2,
369
372
  hideBranding = false,
@@ -541,7 +544,7 @@ function ConsentProvider({
541
544
  disableDefaultFloatingButton = false,
542
545
  PreferencesModalComponent,
543
546
  CookieBannerComponent,
544
- FloatingPreferencesButtonComponent,
547
+ FloatingPreferencesButtonComponent: FloatingPreferencesButtonComponent2,
545
548
  theme,
546
549
  hideBranding,
547
550
  cookieBannerProps,
@@ -552,7 +555,7 @@ function ConsentProvider({
552
555
  }) {
553
556
  const modalComponent = disableDefaultModal ? PreferencesModalComponent : PreferencesModalComponent || PreferencesModal;
554
557
  const bannerComponent = disableDefaultBanner ? CookieBannerComponent : CookieBannerComponent || CookieBanner;
555
- const floatingButtonComponent = disableDefaultFloatingButton ? FloatingPreferencesButtonComponent : FloatingPreferencesButtonComponent || FloatingPreferencesButton;
558
+ const floatingButtonComponent = disableDefaultFloatingButton ? FloatingPreferencesButtonComponent2 : FloatingPreferencesButtonComponent2 || FloatingPreferencesButton;
556
559
  const mergedCookieBannerProps = {
557
560
  ...cookieBannerProps,
558
561
  hideBranding: cookieBannerProps?.hideBranding ?? hideBranding