@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 +8 -5
- package/dist/index.d.cts +817 -74
- package/dist/index.d.ts +817 -74
- package/dist/index.js +8 -5
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -225,7 +225,8 @@ function CookieBanner({
|
|
|
225
225
|
bottom: 0,
|
|
226
226
|
backgroundColor: resolveBackdropColor(theme),
|
|
227
227
|
zIndex: 1299
|
|
228
|
-
})
|
|
228
|
+
}),
|
|
229
|
+
"data-testid": "lgpd-cookie-banner-overlay"
|
|
229
230
|
}
|
|
230
231
|
),
|
|
231
232
|
/* @__PURE__ */ jsx(Box2, { sx: positionStyle, children: bannerContent })
|
|
@@ -262,7 +263,7 @@ function useThemeWithFallbacks() {
|
|
|
262
263
|
}
|
|
263
264
|
};
|
|
264
265
|
}
|
|
265
|
-
|
|
266
|
+
function FloatingPreferencesButtonComponent({
|
|
266
267
|
position = "bottom-right",
|
|
267
268
|
offset = 24,
|
|
268
269
|
icon = /* @__PURE__ */ jsx(CookieOutlined, {}),
|
|
@@ -324,7 +325,9 @@ var FloatingPreferencesButton = React3.memo(function FloatingPreferencesButton2(
|
|
|
324
325
|
children: icon
|
|
325
326
|
}
|
|
326
327
|
) });
|
|
327
|
-
}
|
|
328
|
+
}
|
|
329
|
+
var FloatingPreferencesButton = React3.memo(FloatingPreferencesButtonComponent);
|
|
330
|
+
FloatingPreferencesButton.displayName = "FloatingPreferencesButton";
|
|
328
331
|
function PreferencesModal({
|
|
329
332
|
DialogProps: DialogProps2,
|
|
330
333
|
hideBranding = false,
|
|
@@ -502,7 +505,7 @@ function ConsentProvider({
|
|
|
502
505
|
disableDefaultFloatingButton = false,
|
|
503
506
|
PreferencesModalComponent,
|
|
504
507
|
CookieBannerComponent,
|
|
505
|
-
FloatingPreferencesButtonComponent,
|
|
508
|
+
FloatingPreferencesButtonComponent: FloatingPreferencesButtonComponent2,
|
|
506
509
|
theme,
|
|
507
510
|
hideBranding,
|
|
508
511
|
cookieBannerProps,
|
|
@@ -513,7 +516,7 @@ function ConsentProvider({
|
|
|
513
516
|
}) {
|
|
514
517
|
const modalComponent = disableDefaultModal ? PreferencesModalComponent : PreferencesModalComponent || PreferencesModal;
|
|
515
518
|
const bannerComponent = disableDefaultBanner ? CookieBannerComponent : CookieBannerComponent || CookieBanner;
|
|
516
|
-
const floatingButtonComponent = disableDefaultFloatingButton ?
|
|
519
|
+
const floatingButtonComponent = disableDefaultFloatingButton ? FloatingPreferencesButtonComponent2 : FloatingPreferencesButtonComponent2 || FloatingPreferencesButton;
|
|
517
520
|
const mergedCookieBannerProps = {
|
|
518
521
|
...cookieBannerProps,
|
|
519
522
|
hideBranding: cookieBannerProps?.hideBranding ?? hideBranding
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-lgpd-consent/mui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "Componentes Material-UI prontos para gerenciamento de consentimento LGPD/ANPD",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lgpd",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
}
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@react-lgpd-consent/core": "^0.
|
|
61
|
+
"@react-lgpd-consent/core": "^0.6.1"
|
|
62
62
|
},
|
|
63
63
|
"scripts": {
|
|
64
64
|
"clean": "rimraf dist",
|