optimized-react-component-library-xyz123 1.1.18 → 1.1.19

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
@@ -3351,7 +3351,7 @@ var Navigation = ({
3351
3351
  className: `pts-navigation-link ${openSubMenu === label[activatedLanguage] ? "open" : ""}`,
3352
3352
  children: [
3353
3353
  /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "pts-navigation-button", children: [
3354
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { children: href.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { children: label[activatedLanguage] }) : /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(LinkComponent, { onClick: handleCloseButton, href, children: label[activatedLanguage] }) }),
3354
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { children: href.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { children: label[activatedLanguage] }) : /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(LinkComponent, { onClick: handleCloseButton, to: href, href, children: label[activatedLanguage] }) }),
3355
3355
  children && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
3356
3356
  "button",
3357
3357
  {
@@ -3370,7 +3370,7 @@ var Navigation = ({
3370
3370
  hidden: openSubMenu !== label[activatedLanguage],
3371
3371
  className: "pts-sub-navigation-container",
3372
3372
  id: "sub-menu-" + index,
3373
- children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("ul", { className: "pts-sub-navigation-list", children: children.map(({ label: label2, href: href2 }, index2) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("li", { className: "pts-sub-navigation-item", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(LinkComponent, { onClick: handleCloseButton, href: href2, children: label2[activatedLanguage] }) }, "nav-child-" + index2)) })
3373
+ children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("ul", { className: "pts-sub-navigation-list", children: children.map(({ label: label2, href: href2 }, index2) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("li", { className: "pts-sub-navigation-item", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(LinkComponent, { onClick: handleCloseButton, href: href2, to: href2, children: label2[activatedLanguage] }) }, "nav-child-" + index2)) })
3374
3374
  }
3375
3375
  )
3376
3376
  ]
@@ -3533,6 +3533,7 @@ var NavigationHeader = ({
3533
3533
  {
3534
3534
  className: "pts-navigation-header-logo",
3535
3535
  href: logoLink,
3536
+ to: logoLink,
3536
3537
  target: "_blank",
3537
3538
  rel: "noopener",
3538
3539
  "aria-label": activatedLanguage === "en" ? "PTS logotype (to the homepage on pts.se, opens in new tab)" : "PTS logotyp (till startsidan p\xE5 pts.se, \xF6ppnas i ny flik)",
@@ -3679,6 +3680,7 @@ var LinkStandard = ({
3679
3680
  {
3680
3681
  download: useDownLoad ? true : void 0,
3681
3682
  href: url,
3683
+ to: url,
3682
3684
  target: openTarget,
3683
3685
  rel: openTarget === "_blank" ? "noopener" : void 0,
3684
3686
  "aria-label": openTarget === "_blank" ? ariaLabel && activatedLanguage === "sv" ? "L\xE4nk (\xF6ppnas i ny flik)" : "Link (opens in new tab)" : ariaLabel,