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.mjs CHANGED
@@ -1787,7 +1787,6 @@ var useCookieConsent = ({
1787
1787
  if (onConsentChange) {
1788
1788
  onConsentChange(cookiesNowAccepted);
1789
1789
  }
1790
- console.log("handleCookieStateChange");
1791
1790
  setShowBanner(false);
1792
1791
  }, [areCookiesAccepted, onConsentChange]);
1793
1792
  useEffect10(() => {
@@ -1976,7 +1975,6 @@ var CookieBanner = ({
1976
1975
  }) => {
1977
1976
  if (!visible) return null;
1978
1977
  const handleCookieChoice = (accepted) => {
1979
- console.log(accepted);
1980
1978
  if (accepted) {
1981
1979
  acceptCookies();
1982
1980
  } else {
@@ -2118,12 +2116,11 @@ var Footer = ({ activatedLanguage = "sv", appUsesCookies = false, openCookieBann
2118
2116
  /* @__PURE__ */ jsx16("li", { children: appUsesCookies ? /* @__PURE__ */ jsxs14(
2119
2117
  "button",
2120
2118
  {
2121
- "aria-expanded": "false",
2122
- "aria-controls": "cookie-banner",
2119
+ "aria-controls": activatedLanguage === "en" ? "Kakbanner" : '"cookie-banner"',
2123
2120
  "aria-haspopup": "dialog",
2124
2121
  onClick: openCookieBanner,
2125
2122
  children: [
2126
- /* @__PURE__ */ jsx16("span", { className: "sr-only", children: activatedLanguage === "en" ? "PTS Cookies (opens)" : "PTS Kakor (\xF6ppnas)" }),
2123
+ /* @__PURE__ */ jsx16("span", { className: "sr-only", children: activatedLanguage === "en" ? "PTS Cookies (opens cookie banner)" : "PTS Kakor (\xF6ppnar kakbanner)" }),
2127
2124
  /* @__PURE__ */ jsx16("span", { "aria-hidden": "true", children: activatedLanguage === "en" ? "Cookies" : "Kakor" })
2128
2125
  ]
2129
2126
  }