optimized-react-component-library-xyz123 0.1.73 → 0.1.74

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 CHANGED
@@ -876,6 +876,7 @@ var ExploreFiles = ({
876
876
  (_a = fileInputRef.current) == null ? void 0 : _a.click();
877
877
  };
878
878
  let addFilesInfoText = numberOfFiles > 0 ? activatedLanguage === "sv" ? `${numberOfFiles} filer valda (max ${allowedNumberOfFiles})` : `${numberOfFiles} files chosed (max ${allowedNumberOfFiles})` : activatedLanguage === "sv" ? "Ingen fil vald" : "No file chosen";
879
+ const ariaLabelText = `${activatedLanguage === "sv" ? "V\xE4lj fil" : "Choose file"} ${addFilesInfoText}`;
879
880
  return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_jsx_runtime8.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "inputContainer", children: [
880
881
  /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
881
882
  "div",
@@ -897,17 +898,19 @@ var ExploreFiles = ({
897
898
  showErrors && questionObject.error ? "filePickButton error" : ""
898
899
  ),
899
900
  "aria-describedby": `${aboutId} ${questionObject.hasValidationError ? errorId : ""}`.trim(),
900
- "aria-label": `${activatedLanguage === "sv" ? "V\xE4lj fil" : "Choose file"} ${addFilesInfoText}`,
901
+ "aria-label": ariaLabelText,
901
902
  children: activatedLanguage === "sv" ? "V\xE4lj fil" : "Choose file"
902
903
  }
903
904
  ),
904
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { "aria-hidden": true, className: "filePickText", children: addFilesInfoText })
905
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { "aria-hidden": true, className: "filePickText", children: addFilesInfoText }),
906
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("label", { htmlFor: inputId, "aria-hidden": true, className: "invisible" })
905
907
  ]
906
908
  }
907
909
  ),
908
910
  /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
909
911
  "input",
910
912
  {
913
+ "aria-hidden": true,
911
914
  ref: fileInputRef,
912
915
  type: "file",
913
916
  className: "invisible",
@@ -1804,7 +1807,6 @@ var Footer = ({ activatedLanguage = "sv" }) => {
1804
1807
  /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
1805
1808
  "svg",
1806
1809
  {
1807
- role: "img",
1808
1810
  "aria-label": activatedLanguage === "en" ? "PTS logotype" : "PTS logotyp",
1809
1811
  className: "pts-footer-logo",
1810
1812
  xmlns: "http://www.w3.org/2000/svg",
@@ -1830,63 +1832,56 @@ var Footer = ({ activatedLanguage = "sv" }) => {
1830
1832
  ]
1831
1833
  }
1832
1834
  ),
1833
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1834
- "nav",
1835
- {
1836
- className: "pts-footer-linkList",
1837
- "aria-label": activatedLanguage === "en" ? "Footer navigation" : "Sidfotsnavigering",
1838
- children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("ul", { children: [
1839
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
1840
- "a",
1841
- {
1842
- href: activatedLanguage === "en" ? "https://pts.se/en/contact/" : "https://www.pts.se/kontakt/",
1843
- target: "_blank",
1844
- rel: "noopener noreferrer",
1845
- children: [
1846
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "sr-only", children: activatedLanguage === "en" ? "PTS Contact (opens in new tab)" : "PTS Kontakt (\xF6ppnas i ny flik)" }),
1847
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { "aria-hidden": "true", children: activatedLanguage === "en" ? "Contact" : "Kontakt" })
1848
- ]
1849
- }
1850
- ) }),
1851
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
1852
- "a",
1853
- {
1854
- href: activatedLanguage === "en" ? "https://pts.se/en/gdpr" : "https://www.pts.se/gdpr/",
1855
- target: "_blank",
1856
- rel: "noopener noreferrer",
1857
- children: [
1858
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "sr-only", children: activatedLanguage === "en" ? "PTS Processing of personal data (opens in new tab)" : "PTS Behandling av personuppgifter (\xF6ppnas i ny flik)" }),
1859
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { "aria-hidden": "true", children: activatedLanguage === "en" ? "Processing of personal data" : "Behandling av personuppgifter" })
1860
- ]
1861
- }
1862
- ) }),
1863
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
1864
- "a",
1865
- {
1866
- href: activatedLanguage === "en" ? "https://pts.se/en/accessibility-eservices" : "https://www.pts.se/tillganglighet-etjanster",
1867
- target: "_blank",
1868
- rel: "noopener noreferrer",
1869
- children: [
1870
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "sr-only", children: activatedLanguage === "en" ? "PTS Accessibility (opens in new tab)" : "PTS Tillg\xE4nglighetsredog\xF6relse (\xF6ppnas i ny flik)" }),
1871
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { "aria-hidden": "true", children: activatedLanguage === "en" ? "Accessibility" : "Tillg\xE4nglighetsredog\xF6relse" })
1872
- ]
1873
- }
1874
- ) }),
1875
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
1876
- "a",
1877
- {
1878
- href: activatedLanguage === "en" ? "https://pts.se/en/cookies-eservices" : "https://www.pts.se/kakor-etjanster",
1879
- target: "_blank",
1880
- rel: "noopener noreferrer",
1881
- children: [
1882
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "sr-only", children: activatedLanguage === "en" ? "PTS Cookies (opens in new tab)" : "PTS Kakor (\xF6ppnas i ny flik)" }),
1883
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { "aria-hidden": "true", children: activatedLanguage === "en" ? "Cookies" : "Kakor" })
1884
- ]
1885
- }
1886
- ) })
1887
- ] })
1888
- }
1889
- )
1835
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("nav", { className: "pts-footer-linkList", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("ul", { children: [
1836
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
1837
+ "a",
1838
+ {
1839
+ href: activatedLanguage === "en" ? "https://pts.se/en/contact/" : "https://www.pts.se/kontakt/",
1840
+ target: "_blank",
1841
+ rel: "noopener noreferrer",
1842
+ children: [
1843
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "sr-only", children: activatedLanguage === "en" ? "PTS Contact (opens in new tab)" : "PTS Kontakt (\xF6ppnas i ny flik)" }),
1844
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { "aria-hidden": "true", children: activatedLanguage === "en" ? "Contact" : "Kontakt" })
1845
+ ]
1846
+ }
1847
+ ) }),
1848
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
1849
+ "a",
1850
+ {
1851
+ href: activatedLanguage === "en" ? "https://pts.se/en/gdpr" : "https://www.pts.se/gdpr/",
1852
+ target: "_blank",
1853
+ rel: "noopener noreferrer",
1854
+ children: [
1855
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "sr-only", children: activatedLanguage === "en" ? "PTS Processing of personal data (opens in new tab)" : "PTS Behandling av personuppgifter (\xF6ppnas i ny flik)" }),
1856
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { "aria-hidden": "true", children: activatedLanguage === "en" ? "Processing of personal data" : "Behandling av personuppgifter" })
1857
+ ]
1858
+ }
1859
+ ) }),
1860
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
1861
+ "a",
1862
+ {
1863
+ href: activatedLanguage === "en" ? "https://pts.se/en/accessibility-eservices" : "https://www.pts.se/tillganglighet-etjanster",
1864
+ target: "_blank",
1865
+ rel: "noopener noreferrer",
1866
+ children: [
1867
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "sr-only", children: activatedLanguage === "en" ? "PTS Accessibility (opens in new tab)" : "PTS Tillg\xE4nglighetsredog\xF6relse (\xF6ppnas i ny flik)" }),
1868
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { "aria-hidden": "true", children: activatedLanguage === "en" ? "Accessibility" : "Tillg\xE4nglighetsredog\xF6relse" })
1869
+ ]
1870
+ }
1871
+ ) }),
1872
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
1873
+ "a",
1874
+ {
1875
+ href: activatedLanguage === "en" ? "https://pts.se/en/cookies-eservices" : "https://www.pts.se/kakor-etjanster",
1876
+ target: "_blank",
1877
+ rel: "noopener noreferrer",
1878
+ children: [
1879
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "sr-only", children: activatedLanguage === "en" ? "PTS Cookies (opens in new tab)" : "PTS Kakor (\xF6ppnas i ny flik)" }),
1880
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { "aria-hidden": "true", children: activatedLanguage === "en" ? "Cookies" : "Kakor" })
1881
+ ]
1882
+ }
1883
+ ) })
1884
+ ] }) })
1890
1885
  ] });
1891
1886
  };
1892
1887
  var FooterStandard_default = Footer;
@@ -2299,12 +2294,20 @@ var Header = ({
2299
2294
  children: activatedLanguage === "en" ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Logo_en, {}) }) : /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Logo_sv, {}) })
2300
2295
  }
2301
2296
  ),
2302
- useLanguage && /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("button", { className: "pts-languageButton", onClick: handleLanguageClick, children: [
2303
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(LanguageIcon, {}) }),
2304
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { "aria-hidden": "true", className: "pts-languageButton", children: getLanguageLabel() }),
2305
- activatedLanguage === "en" && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { lang: "sv", className: "sr-only", children: "\xC4ndra spr\xE5k till svenska" }),
2306
- activatedLanguage === "sv" && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { lang: "en", className: "sr-only", children: "Change language to English" })
2307
- ] })
2297
+ useLanguage && /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
2298
+ "button",
2299
+ {
2300
+ lang: activatedLanguage === "en" ? "en" : "sv",
2301
+ className: "pts-languageButton",
2302
+ onClick: handleLanguageClick,
2303
+ children: [
2304
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(LanguageIcon, {}) }),
2305
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { "aria-hidden": "true", className: "pts-languageButton", children: getLanguageLabel() }),
2306
+ activatedLanguage === "en" && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "sr-only", children: "\xC4ndra spr\xE5k till svenska" }),
2307
+ activatedLanguage === "sv" && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "sr-only", children: "Change language to English" })
2308
+ ]
2309
+ }
2310
+ )
2308
2311
  ] });
2309
2312
  };
2310
2313
  var HeaderStandard_default = Header;
@@ -2391,7 +2394,6 @@ var TextHeadlineAndBody = ({ data, headlineType = "h2" }) => {
2391
2394
  "section",
2392
2395
  {
2393
2396
  className: "pts-textHeadlineAndBody-container",
2394
- "aria-labelledby": "textHeadlineAndBody-headline",
2395
2397
  children: [
2396
2398
  data.headline && (0, import_react10.createElement)(headlineType, { id: "textHeadlineAndBody-headline" }, data.headline),
2397
2399
  data.body && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { dangerouslySetInnerHTML: { __html: import_dompurify5.default.sanitize(data.body) } }),
@@ -2401,7 +2403,6 @@ var TextHeadlineAndBody = ({ data, headlineType = "h2" }) => {
2401
2403
  href: link.url,
2402
2404
  target: "_blank",
2403
2405
  rel: "noopener noreferrer",
2404
- "aria-label": link.ariaLabel,
2405
2406
  children: [
2406
2407
  /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "MoreInfoIcon", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2407
2408
  "svg",
package/dist/index.mjs CHANGED
@@ -811,6 +811,7 @@ var ExploreFiles = ({
811
811
  (_a = fileInputRef.current) == null ? void 0 : _a.click();
812
812
  };
813
813
  let addFilesInfoText = numberOfFiles > 0 ? activatedLanguage === "sv" ? `${numberOfFiles} filer valda (max ${allowedNumberOfFiles})` : `${numberOfFiles} files chosed (max ${allowedNumberOfFiles})` : activatedLanguage === "sv" ? "Ingen fil vald" : "No file chosen";
814
+ const ariaLabelText = `${activatedLanguage === "sv" ? "V\xE4lj fil" : "Choose file"} ${addFilesInfoText}`;
814
815
  return /* @__PURE__ */ jsx8(Fragment8, { children: /* @__PURE__ */ jsxs7("div", { className: "inputContainer", children: [
815
816
  /* @__PURE__ */ jsxs7(
816
817
  "div",
@@ -832,17 +833,19 @@ var ExploreFiles = ({
832
833
  showErrors && questionObject.error ? "filePickButton error" : ""
833
834
  ),
834
835
  "aria-describedby": `${aboutId} ${questionObject.hasValidationError ? errorId : ""}`.trim(),
835
- "aria-label": `${activatedLanguage === "sv" ? "V\xE4lj fil" : "Choose file"} ${addFilesInfoText}`,
836
+ "aria-label": ariaLabelText,
836
837
  children: activatedLanguage === "sv" ? "V\xE4lj fil" : "Choose file"
837
838
  }
838
839
  ),
839
- /* @__PURE__ */ jsx8("span", { "aria-hidden": true, className: "filePickText", children: addFilesInfoText })
840
+ /* @__PURE__ */ jsx8("span", { "aria-hidden": true, className: "filePickText", children: addFilesInfoText }),
841
+ /* @__PURE__ */ jsx8("label", { htmlFor: inputId, "aria-hidden": true, className: "invisible" })
840
842
  ]
841
843
  }
842
844
  ),
843
845
  /* @__PURE__ */ jsx8(
844
846
  "input",
845
847
  {
848
+ "aria-hidden": true,
846
849
  ref: fileInputRef,
847
850
  type: "file",
848
851
  className: "invisible",
@@ -1739,7 +1742,6 @@ var Footer = ({ activatedLanguage = "sv" }) => {
1739
1742
  /* @__PURE__ */ jsxs13(
1740
1743
  "svg",
1741
1744
  {
1742
- role: "img",
1743
1745
  "aria-label": activatedLanguage === "en" ? "PTS logotype" : "PTS logotyp",
1744
1746
  className: "pts-footer-logo",
1745
1747
  xmlns: "http://www.w3.org/2000/svg",
@@ -1765,63 +1767,56 @@ var Footer = ({ activatedLanguage = "sv" }) => {
1765
1767
  ]
1766
1768
  }
1767
1769
  ),
1768
- /* @__PURE__ */ jsx15(
1769
- "nav",
1770
- {
1771
- className: "pts-footer-linkList",
1772
- "aria-label": activatedLanguage === "en" ? "Footer navigation" : "Sidfotsnavigering",
1773
- children: /* @__PURE__ */ jsxs13("ul", { children: [
1774
- /* @__PURE__ */ jsx15("li", { children: /* @__PURE__ */ jsxs13(
1775
- "a",
1776
- {
1777
- href: activatedLanguage === "en" ? "https://pts.se/en/contact/" : "https://www.pts.se/kontakt/",
1778
- target: "_blank",
1779
- rel: "noopener noreferrer",
1780
- children: [
1781
- /* @__PURE__ */ jsx15("span", { className: "sr-only", children: activatedLanguage === "en" ? "PTS Contact (opens in new tab)" : "PTS Kontakt (\xF6ppnas i ny flik)" }),
1782
- /* @__PURE__ */ jsx15("span", { "aria-hidden": "true", children: activatedLanguage === "en" ? "Contact" : "Kontakt" })
1783
- ]
1784
- }
1785
- ) }),
1786
- /* @__PURE__ */ jsx15("li", { children: /* @__PURE__ */ jsxs13(
1787
- "a",
1788
- {
1789
- href: activatedLanguage === "en" ? "https://pts.se/en/gdpr" : "https://www.pts.se/gdpr/",
1790
- target: "_blank",
1791
- rel: "noopener noreferrer",
1792
- children: [
1793
- /* @__PURE__ */ jsx15("span", { className: "sr-only", children: activatedLanguage === "en" ? "PTS Processing of personal data (opens in new tab)" : "PTS Behandling av personuppgifter (\xF6ppnas i ny flik)" }),
1794
- /* @__PURE__ */ jsx15("span", { "aria-hidden": "true", children: activatedLanguage === "en" ? "Processing of personal data" : "Behandling av personuppgifter" })
1795
- ]
1796
- }
1797
- ) }),
1798
- /* @__PURE__ */ jsx15("li", { children: /* @__PURE__ */ jsxs13(
1799
- "a",
1800
- {
1801
- href: activatedLanguage === "en" ? "https://pts.se/en/accessibility-eservices" : "https://www.pts.se/tillganglighet-etjanster",
1802
- target: "_blank",
1803
- rel: "noopener noreferrer",
1804
- children: [
1805
- /* @__PURE__ */ jsx15("span", { className: "sr-only", children: activatedLanguage === "en" ? "PTS Accessibility (opens in new tab)" : "PTS Tillg\xE4nglighetsredog\xF6relse (\xF6ppnas i ny flik)" }),
1806
- /* @__PURE__ */ jsx15("span", { "aria-hidden": "true", children: activatedLanguage === "en" ? "Accessibility" : "Tillg\xE4nglighetsredog\xF6relse" })
1807
- ]
1808
- }
1809
- ) }),
1810
- /* @__PURE__ */ jsx15("li", { children: /* @__PURE__ */ jsxs13(
1811
- "a",
1812
- {
1813
- href: activatedLanguage === "en" ? "https://pts.se/en/cookies-eservices" : "https://www.pts.se/kakor-etjanster",
1814
- target: "_blank",
1815
- rel: "noopener noreferrer",
1816
- children: [
1817
- /* @__PURE__ */ jsx15("span", { className: "sr-only", children: activatedLanguage === "en" ? "PTS Cookies (opens in new tab)" : "PTS Kakor (\xF6ppnas i ny flik)" }),
1818
- /* @__PURE__ */ jsx15("span", { "aria-hidden": "true", children: activatedLanguage === "en" ? "Cookies" : "Kakor" })
1819
- ]
1820
- }
1821
- ) })
1822
- ] })
1823
- }
1824
- )
1770
+ /* @__PURE__ */ jsx15("nav", { className: "pts-footer-linkList", children: /* @__PURE__ */ jsxs13("ul", { children: [
1771
+ /* @__PURE__ */ jsx15("li", { children: /* @__PURE__ */ jsxs13(
1772
+ "a",
1773
+ {
1774
+ href: activatedLanguage === "en" ? "https://pts.se/en/contact/" : "https://www.pts.se/kontakt/",
1775
+ target: "_blank",
1776
+ rel: "noopener noreferrer",
1777
+ children: [
1778
+ /* @__PURE__ */ jsx15("span", { className: "sr-only", children: activatedLanguage === "en" ? "PTS Contact (opens in new tab)" : "PTS Kontakt (\xF6ppnas i ny flik)" }),
1779
+ /* @__PURE__ */ jsx15("span", { "aria-hidden": "true", children: activatedLanguage === "en" ? "Contact" : "Kontakt" })
1780
+ ]
1781
+ }
1782
+ ) }),
1783
+ /* @__PURE__ */ jsx15("li", { children: /* @__PURE__ */ jsxs13(
1784
+ "a",
1785
+ {
1786
+ href: activatedLanguage === "en" ? "https://pts.se/en/gdpr" : "https://www.pts.se/gdpr/",
1787
+ target: "_blank",
1788
+ rel: "noopener noreferrer",
1789
+ children: [
1790
+ /* @__PURE__ */ jsx15("span", { className: "sr-only", children: activatedLanguage === "en" ? "PTS Processing of personal data (opens in new tab)" : "PTS Behandling av personuppgifter (\xF6ppnas i ny flik)" }),
1791
+ /* @__PURE__ */ jsx15("span", { "aria-hidden": "true", children: activatedLanguage === "en" ? "Processing of personal data" : "Behandling av personuppgifter" })
1792
+ ]
1793
+ }
1794
+ ) }),
1795
+ /* @__PURE__ */ jsx15("li", { children: /* @__PURE__ */ jsxs13(
1796
+ "a",
1797
+ {
1798
+ href: activatedLanguage === "en" ? "https://pts.se/en/accessibility-eservices" : "https://www.pts.se/tillganglighet-etjanster",
1799
+ target: "_blank",
1800
+ rel: "noopener noreferrer",
1801
+ children: [
1802
+ /* @__PURE__ */ jsx15("span", { className: "sr-only", children: activatedLanguage === "en" ? "PTS Accessibility (opens in new tab)" : "PTS Tillg\xE4nglighetsredog\xF6relse (\xF6ppnas i ny flik)" }),
1803
+ /* @__PURE__ */ jsx15("span", { "aria-hidden": "true", children: activatedLanguage === "en" ? "Accessibility" : "Tillg\xE4nglighetsredog\xF6relse" })
1804
+ ]
1805
+ }
1806
+ ) }),
1807
+ /* @__PURE__ */ jsx15("li", { children: /* @__PURE__ */ jsxs13(
1808
+ "a",
1809
+ {
1810
+ href: activatedLanguage === "en" ? "https://pts.se/en/cookies-eservices" : "https://www.pts.se/kakor-etjanster",
1811
+ target: "_blank",
1812
+ rel: "noopener noreferrer",
1813
+ children: [
1814
+ /* @__PURE__ */ jsx15("span", { className: "sr-only", children: activatedLanguage === "en" ? "PTS Cookies (opens in new tab)" : "PTS Kakor (\xF6ppnas i ny flik)" }),
1815
+ /* @__PURE__ */ jsx15("span", { "aria-hidden": "true", children: activatedLanguage === "en" ? "Cookies" : "Kakor" })
1816
+ ]
1817
+ }
1818
+ ) })
1819
+ ] }) })
1825
1820
  ] });
1826
1821
  };
1827
1822
  var FooterStandard_default = Footer;
@@ -2234,12 +2229,20 @@ var Header = ({
2234
2229
  children: activatedLanguage === "en" ? /* @__PURE__ */ jsx17("span", { "aria-hidden": "true", children: /* @__PURE__ */ jsx17(Logo_en, {}) }) : /* @__PURE__ */ jsx17("span", { "aria-hidden": "true", children: /* @__PURE__ */ jsx17(Logo_sv, {}) })
2235
2230
  }
2236
2231
  ),
2237
- useLanguage && /* @__PURE__ */ jsxs15("button", { className: "pts-languageButton", onClick: handleLanguageClick, children: [
2238
- /* @__PURE__ */ jsx17("span", { "aria-hidden": "true", children: /* @__PURE__ */ jsx17(LanguageIcon, {}) }),
2239
- /* @__PURE__ */ jsx17("span", { "aria-hidden": "true", className: "pts-languageButton", children: getLanguageLabel() }),
2240
- activatedLanguage === "en" && /* @__PURE__ */ jsx17("span", { lang: "sv", className: "sr-only", children: "\xC4ndra spr\xE5k till svenska" }),
2241
- activatedLanguage === "sv" && /* @__PURE__ */ jsx17("span", { lang: "en", className: "sr-only", children: "Change language to English" })
2242
- ] })
2232
+ useLanguage && /* @__PURE__ */ jsxs15(
2233
+ "button",
2234
+ {
2235
+ lang: activatedLanguage === "en" ? "en" : "sv",
2236
+ className: "pts-languageButton",
2237
+ onClick: handleLanguageClick,
2238
+ children: [
2239
+ /* @__PURE__ */ jsx17("span", { "aria-hidden": "true", children: /* @__PURE__ */ jsx17(LanguageIcon, {}) }),
2240
+ /* @__PURE__ */ jsx17("span", { "aria-hidden": "true", className: "pts-languageButton", children: getLanguageLabel() }),
2241
+ activatedLanguage === "en" && /* @__PURE__ */ jsx17("span", { className: "sr-only", children: "\xC4ndra spr\xE5k till svenska" }),
2242
+ activatedLanguage === "sv" && /* @__PURE__ */ jsx17("span", { className: "sr-only", children: "Change language to English" })
2243
+ ]
2244
+ }
2245
+ )
2243
2246
  ] });
2244
2247
  };
2245
2248
  var HeaderStandard_default = Header;
@@ -2326,7 +2329,6 @@ var TextHeadlineAndBody = ({ data, headlineType = "h2" }) => {
2326
2329
  "section",
2327
2330
  {
2328
2331
  className: "pts-textHeadlineAndBody-container",
2329
- "aria-labelledby": "textHeadlineAndBody-headline",
2330
2332
  children: [
2331
2333
  data.headline && createElement(headlineType, { id: "textHeadlineAndBody-headline" }, data.headline),
2332
2334
  data.body && /* @__PURE__ */ jsx20("div", { dangerouslySetInnerHTML: { __html: DOMPurify5.sanitize(data.body) } }),
@@ -2336,7 +2338,6 @@ var TextHeadlineAndBody = ({ data, headlineType = "h2" }) => {
2336
2338
  href: link.url,
2337
2339
  target: "_blank",
2338
2340
  rel: "noopener noreferrer",
2339
- "aria-label": link.ariaLabel,
2340
2341
  children: [
2341
2342
  /* @__PURE__ */ jsx20("span", { className: "MoreInfoIcon", children: /* @__PURE__ */ jsx20(
2342
2343
  "svg",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "optimized-react-component-library-xyz123",
3
- "version": "0.1.73",
3
+ "version": "0.1.74",
4
4
  "description": "A modern React component library using TypeScript with React 19 support.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",