react-lgpd-consent 0.3.2 → 0.3.3
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.
|
@@ -864,6 +864,7 @@ function CookieBanner({
|
|
|
864
864
|
width: designTokens?.layout?.width?.desktop ?? "100%",
|
|
865
865
|
p: 2
|
|
866
866
|
};
|
|
867
|
+
const backdropColor = designTokens?.layout?.backdrop === false ? "transparent" : typeof designTokens?.layout?.backdrop === "string" ? designTokens.layout.backdrop : "rgba(0, 0, 0, 0.4)";
|
|
867
868
|
if (blocking) {
|
|
868
869
|
return /* @__PURE__ */ jsxs2(Fragment, { children: [
|
|
869
870
|
/* @__PURE__ */ jsx5(
|
|
@@ -875,7 +876,7 @@ function CookieBanner({
|
|
|
875
876
|
left: 0,
|
|
876
877
|
right: 0,
|
|
877
878
|
bottom: 0,
|
|
878
|
-
backgroundColor:
|
|
879
|
+
backgroundColor: backdropColor,
|
|
879
880
|
zIndex: 1299
|
|
880
881
|
}
|
|
881
882
|
}
|
|
@@ -987,7 +988,7 @@ function FloatingPreferencesButton({
|
|
|
987
988
|
// src/context/ConsentContext.tsx
|
|
988
989
|
import { jsx as jsx7, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
989
990
|
var PreferencesModal = React5.lazy(
|
|
990
|
-
() => import("./PreferencesModal-
|
|
991
|
+
() => import("./PreferencesModal-HTTMUZND.js").then((m) => ({
|
|
991
992
|
default: m.PreferencesModal
|
|
992
993
|
}))
|
|
993
994
|
);
|
package/dist/index.cjs
CHANGED
|
@@ -923,6 +923,7 @@ function CookieBanner({
|
|
|
923
923
|
width: designTokens?.layout?.width?.desktop ?? "100%",
|
|
924
924
|
p: 2
|
|
925
925
|
};
|
|
926
|
+
const backdropColor = designTokens?.layout?.backdrop === false ? "transparent" : typeof designTokens?.layout?.backdrop === "string" ? designTokens.layout.backdrop : "rgba(0, 0, 0, 0.4)";
|
|
926
927
|
if (blocking) {
|
|
927
928
|
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [
|
|
928
929
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
@@ -934,7 +935,7 @@ function CookieBanner({
|
|
|
934
935
|
left: 0,
|
|
935
936
|
right: 0,
|
|
936
937
|
bottom: 0,
|
|
937
|
-
backgroundColor:
|
|
938
|
+
backgroundColor: backdropColor,
|
|
938
939
|
zIndex: 1299
|
|
939
940
|
}
|
|
940
941
|
}
|
package/dist/index.d.cts
CHANGED
|
@@ -1972,7 +1972,7 @@ interface CookieBannerProps {
|
|
|
1972
1972
|
* <ConsentProvider CookieBannerComponent={CustomBanner}>
|
|
1973
1973
|
* ```
|
|
1974
1974
|
*
|
|
1975
|
-
* @param props - Propriedades para customizar comportamento e aparência do banner
|
|
1975
|
+
* @param props - Propriedades para customizar comportamento e aparência do banner (tipado via CookieBannerProps)
|
|
1976
1976
|
* @returns Banner de consentimento ou `null` se não deve ser exibido
|
|
1977
1977
|
*
|
|
1978
1978
|
* @example Uso básico (renderizado automaticamente pelo ConsentProvider)
|
package/dist/index.d.ts
CHANGED
|
@@ -1972,7 +1972,7 @@ interface CookieBannerProps {
|
|
|
1972
1972
|
* <ConsentProvider CookieBannerComponent={CustomBanner}>
|
|
1973
1973
|
* ```
|
|
1974
1974
|
*
|
|
1975
|
-
* @param props - Propriedades para customizar comportamento e aparência do banner
|
|
1975
|
+
* @param props - Propriedades para customizar comportamento e aparência do banner (tipado via CookieBannerProps)
|
|
1976
1976
|
* @returns Banner de consentimento ou `null` se não deve ser exibido
|
|
1977
1977
|
*
|
|
1978
1978
|
* @example Uso básico (renderizado automaticamente pelo ConsentProvider)
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-lgpd-consent",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"description": "Biblioteca completa de consentimento LGPD com 6 categorias ANPD, integrações nativas e sistema extensível para React.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lgpd",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"bugs": {
|
|
73
73
|
"url": "https://github.com/lucianoedipo/react-lgpd-consent/issues"
|
|
74
74
|
},
|
|
75
|
-
"homepage": "https://github.
|
|
75
|
+
"homepage": "https://lucianoedipo.github.io/react-lgpd-consent/",
|
|
76
76
|
"peerDependencies": {
|
|
77
77
|
"@mui/icons-material": "^7.0.0 || ^6.0.0 || ^5.15.0",
|
|
78
78
|
"@mui/material": "^7.0.0 || ^6.0.0 || ^5.15.0",
|