optimized-react-component-library-xyz123 0.19.6 → 0.19.8
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.js +2 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/css/mobileView.css +2 -1
- package/src/css/styles.css +33 -2
package/dist/index.js
CHANGED
|
@@ -1866,7 +1866,6 @@ var useCookieConsent = ({
|
|
|
1866
1866
|
if (onConsentChange) {
|
|
1867
1867
|
onConsentChange(cookiesNowAccepted);
|
|
1868
1868
|
}
|
|
1869
|
-
console.log("handleCookieStateChange");
|
|
1870
1869
|
setShowBanner(false);
|
|
1871
1870
|
}, [areCookiesAccepted, onConsentChange]);
|
|
1872
1871
|
(0, import_react11.useEffect)(() => {
|
|
@@ -2055,7 +2054,6 @@ var CookieBanner = ({
|
|
|
2055
2054
|
}) => {
|
|
2056
2055
|
if (!visible) return null;
|
|
2057
2056
|
const handleCookieChoice = (accepted) => {
|
|
2058
|
-
console.log(accepted);
|
|
2059
2057
|
if (accepted) {
|
|
2060
2058
|
acceptCookies();
|
|
2061
2059
|
} else {
|
|
@@ -2197,12 +2195,11 @@ var Footer = ({ activatedLanguage = "sv", appUsesCookies = false, openCookieBann
|
|
|
2197
2195
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("li", { children: appUsesCookies ? /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
|
|
2198
2196
|
"button",
|
|
2199
2197
|
{
|
|
2200
|
-
"aria-
|
|
2201
|
-
"aria-controls": "cookie-banner",
|
|
2198
|
+
"aria-controls": activatedLanguage === "en" ? "Kakbanner" : '"cookie-banner"',
|
|
2202
2199
|
"aria-haspopup": "dialog",
|
|
2203
2200
|
onClick: openCookieBanner,
|
|
2204
2201
|
children: [
|
|
2205
|
-
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "sr-only", children: activatedLanguage === "en" ? "PTS Cookies (opens)" : "PTS Kakor (\
|
|
2202
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "sr-only", children: activatedLanguage === "en" ? "PTS Cookies (opens cookie banner)" : "PTS Kakor (\xF6ppnar kakbanner)" }),
|
|
2206
2203
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { "aria-hidden": "true", children: activatedLanguage === "en" ? "Cookies" : "Kakor" })
|
|
2207
2204
|
]
|
|
2208
2205
|
}
|