optimized-react-component-library-xyz123 2.2.4 → 2.2.6
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 +14 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -13
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/css/mobileView.css +2 -2
- package/src/css/styles.css +11 -0
package/dist/index.mjs
CHANGED
|
@@ -774,8 +774,8 @@ var SelectedFiles = ({
|
|
|
774
774
|
{
|
|
775
775
|
d: "M1 4.65913L2.8 6.45913L7 1.35913",
|
|
776
776
|
stroke: "white",
|
|
777
|
-
|
|
778
|
-
|
|
777
|
+
strokeWidth: "1.5",
|
|
778
|
+
strokeLinecap: "round"
|
|
779
779
|
}
|
|
780
780
|
)
|
|
781
781
|
}
|
|
@@ -2865,7 +2865,7 @@ var Logo_sv2 = () => /* @__PURE__ */ jsxs18("svg", { xmlns: "http://www.w3.org/2
|
|
|
2865
2865
|
/* @__PURE__ */ jsx20("path", { d: "M168.8 40.2001V44.0001H167.733V40.2668C167.733 39.5334 167.6 39.0001 167.267 38.6668C166.933 38.2668 166.467 38.1334 165.867 38.1334C165.267 38.1334 164.733 38.3334 164.333 38.8001C164 39.2668 163.8 39.8668 163.8 40.6001V44.0001H162.733V37.2001H163.667L163.8 38.1334C164.333 37.4668 165.067 37.1334 166.067 37.1334C167.067 37.1334 167.533 37.4001 168.067 37.8668C168.6 38.3334 168.8 39.1334 168.8 40.2001Z", fill: "#141414" }),
|
|
2866
2866
|
/* @__PURE__ */ jsx20("path", { d: "M26.6667 28.0001C26.6667 30.8001 25 33.4001 22.4 34.2001C21.2 34.5334 20 34.6667 18 34.6667H7C4.93333 34.6667 4.66667 35.0001 4.66667 37.0001V41.3334C4.66667 42.9334 3.66667 44.0001 2.33333 44.0001C1 44.0001 0 42.9334 0 41.3334V38.3334C0 37.0001 -1.29143e-07 35.8667 0.133333 35.2667C0.533333 33.0001 1.86667 31.2667 4.06667 30.4667C4.93333 30.1334 6.4 29.9334 9.26667 29.9334H18.6667C19.4667 29.9334 20.2667 29.8667 20.6 29.7334C21.6 29.3334 21.9333 28.6667 21.9333 27.9334C21.9333 27.2001 21.6667 26.4667 20.6 26.1334C20.2667 26.0001 19.4667 25.9334 18.6667 25.9334H3.6C3 25.9334 2.46667 25.9334 2.2 25.8001C1.2 25.4667 0.6 24.5334 0.6 23.6001C0.6 22.6667 1.2 21.7334 2.2 21.4001C2.53333 21.2667 2.86667 21.2667 3.53333 21.2667H17.9333C20 21.2667 21.6 21.4001 22.6 21.8001C25.2 22.8001 26.6 24.9334 26.6 27.9334L26.6667 28.0001ZM54.4667 21.5334C54.1333 21.4001 53.6 21.3334 52.8667 21.3334H31.7333C31.2 21.3334 30.7333 21.3334 30.4667 21.4667C29.3333 21.8001 28.6667 22.6667 28.6667 23.6667C28.6667 24.6667 29.2 25.4667 30.2667 25.8001C30.6 25.9334 31.1333 26.0001 31.7333 26.0001H40V41.6001C40 43.2001 41.0667 44.0001 42.3333 44.0001C43.6 44.0001 44.6667 43.2001 44.6667 41.6001V26.0001H52.8667C53.6667 26.0001 54.0667 26.0001 54.3333 25.8667C55.4 25.5334 56 24.6667 56 23.6667C56 22.6667 55.4667 21.8667 54.4667 21.5334ZM79.6667 30.9334C78.5333 30.3334 77.0667 30.0001 73.4 30.0001H66.3333C65.2 30.0001 64.6 29.9334 64.2 29.8001C63.0667 29.4001 62.6667 28.6667 62.6667 28.0001C62.6667 27.3334 62.9333 26.5334 64.1333 26.1334C64.4667 26.0001 65.0667 26.0001 65.6667 26.0001H78.6667C78.9333 26.0001 79.6667 26.0001 79.8667 26.0001C81.0667 25.8001 82 25.0667 82 23.7334C82 22.4001 81.0667 21.7334 79.9333 21.4667C79.7333 21.4667 79.2667 21.4001 78.6667 21.4001H66.3333C64.1333 21.4001 62.5333 21.6667 61.4667 22.1334C59.2667 23.2001 58 25.4667 58 28.0667C58 30.6667 59.2 33.0001 61.6 34.0667C62.6667 34.5334 64.2667 34.7334 66.3333 34.7334H75.3333C76.4667 34.7334 77.0667 34.8667 77.4667 35.0001C78.4 35.3334 78.6667 36.2667 78.6667 37.0667C78.6667 37.8667 78.4 38.8667 77.2667 39.2001C76.8667 39.3334 76.0667 39.4001 74.7333 39.4001H61.6667C61.1333 39.4001 60.6 39.4001 60.3333 39.5334C59.2667 39.8001 58.6667 40.6667 58.6667 41.7334C58.6667 42.8001 59.3333 43.4667 60.2 43.8001C60.5333 43.9334 61.2667 44.0667 61.8 44.0667H73.3333C75.8 44.0667 77.8 43.9334 79 43.5334C81.7333 42.7334 83.2667 40.1334 83.2667 37.0667C83.2667 34.0001 81.8667 32.1334 79.6 31.0001L79.6667 30.9334Z", fill: "#141414" }),
|
|
2867
2867
|
/* @__PURE__ */ jsx20("path", { d: "M52.0667 9.8L52.3334 9.33333C50.6667 7.06667 46.7334 5.46667 42.7334 5.33333H41.9334C37.9334 5.46667 34 7.06667 32.3334 9.33333L32.6 9.8C31.8667 9.8 31.3334 10.2667 31.3334 10.8667L32.8667 17.3333C33 17.7333 33.1334 17.9333 33.6667 17.9333H51C51.4667 17.9333 51.6667 17.6667 51.7334 17.3333L53.2667 10.8667C53.2667 10.2667 52.7334 9.8 52 9.8H52.0667ZM36.8667 11.8667C36.7334 11.8667 36.5334 11.8 36.4 11.8C35.7334 11.8 35.2667 12.2667 35.2667 12.8667C35.2667 13.4667 35.7334 13.8667 36.3334 13.8667C36.9334 13.8667 36.8667 13.8 37 13.6C37 14.1333 36.4 15.3333 35.6 15.3333H33.9334C32.8 15.3333 32.6667 13.8 32.6667 13.6667C32.8 13.8 33.1334 13.8667 33.4 13.8667C33.9334 13.8667 34.4 13.4667 34.4 12.8667C34.4 12.2667 33.9334 11.8 33.2667 11.8C32.6 11.8 33 11.8 32.9334 11.8C33.2 11.6 33.4667 11.2667 33.4667 10.8667C33.4667 10.4667 33.2667 10.2667 33 10.0667L34.5334 9.33333C35.5334 7.66667 37.3334 6.46667 39.5334 6C38.3334 6.86667 37.3334 7.93333 36.5334 9.33333L37.0667 9.8C36.5334 9.86667 36.1334 10.3333 36.1334 10.8667C36.1334 11.4 36.4 11.6667 36.8 11.8667H36.8667ZM41.8667 11.9333C41.7334 11.8667 41.4667 11.8 41.3334 11.8C40.6667 11.8 40.2 12.2667 40.2 12.8667C40.2 13.4667 40.6667 13.8667 41.2667 13.8667C41.8667 13.8667 41.8 13.8 42 13.6667C42 14.2 41.6 15.3333 40.6667 15.3333H39C37.9334 15.3333 37.6667 14 37.6667 13.6C37.8 13.7333 38.0667 13.8667 38.4 13.8667C38.9334 13.8667 39.4667 13.4667 39.4667 12.8667C39.4667 12.2667 39 11.8 38.3334 11.8C37.6667 11.8 37.9334 11.8 37.8667 11.8667C38.2667 11.6667 38.5334 11.3333 38.5334 10.8667C38.5334 10.4 38.2667 10.0667 37.8667 9.93333L39.0667 9.33333C39.4 8.13333 40.4667 6.4 41.6 5.8C41.4667 6.4 41.4 7.66667 41.4 9.33333C41.4 9.33333 41.7334 9.66667 42.0667 9.86667C41.6 10 41.2667 10.4 41.2667 10.8667C41.2667 11.3333 41.5334 11.6667 41.9334 11.8667L41.8667 11.9333ZM45.6667 15.3333H44C43.0667 15.3333 42.6667 14.2 42.6667 13.6667C42.8 13.8 43.0667 13.8667 43.4 13.8667C44 13.8667 44.4667 13.4667 44.4667 12.8667C44.4667 12.2667 44 11.8 43.3334 11.8C42.6667 11.8 42.9334 11.8 42.8 11.9333C43.2 11.8 43.5334 11.4 43.5334 10.9333C43.5334 10.4667 43.2 10.0667 42.7334 9.93333C43.0667 9.73333 43.4 9.4 43.4 9.4C43.4 7.73333 43.3334 6.46667 43.1334 5.86667C44.3334 6.46667 45.4 8.13333 45.7334 9.4L46.9334 10C46.6 10.1333 46.2667 10.5333 46.2667 10.9333C46.2667 11.3333 46.5334 11.7333 46.9334 11.9333C46.8 11.9333 46.6 11.8667 46.4667 11.8667C45.8 11.8667 45.3334 12.3333 45.3334 12.9333C45.3334 13.5333 45.8 13.9333 46.4 13.9333C47 13.9333 46.9334 13.8667 47.1334 13.6667C47.1334 14 46.8667 15.4 45.8 15.4L45.6667 15.3333ZM50.6667 15.3333H49C48.1334 15.3333 47.6 14.2 47.6 13.6C47.7334 13.8 48 13.8667 48.3334 13.8667C48.8667 13.8667 49.3334 13.4667 49.3334 12.8667C49.3334 12.2667 48.8667 11.8 48.2 11.8C47.5334 11.8 47.8 11.8 47.7334 11.8667C48.1334 11.6667 48.4 11.3333 48.4 10.8667C48.4 10.4 48 9.86667 47.4 9.8L48 9.33333C47.2 7.93333 46.2 6.93333 45 6C47.1334 6.46667 49 7.6 50 9.33333L51.6 10.0667C51.3334 10.2667 51.1334 10.5333 51.1334 10.9333C51.1334 11.3333 51.4 11.7333 51.7334 11.9333C51.6667 11.9333 51.4667 11.8667 51.3334 11.8667C50.6667 11.8667 50.2 12.3333 50.2 12.9333C50.2 13.5333 50.6667 13.9333 51.2 13.9333C51.7334 13.9333 51.8 13.8667 51.9334 13.7333C51.9334 13.8667 51.7334 15.4 50.6667 15.4V15.3333ZM42.3334 5.33333C41.4 5.33333 40.6667 4.6 40.6667 3.66667C40.6667 2.73333 41.2667 2.2 42 2.06667V1.33333H41.3334V0.666667H42V0H42.6667V0.666667H43.3334V1.33333H42.6667V2.06667C43.4 2.2 44 2.86667 44 3.73333C44 4.6 43.2667 5.4 42.3334 5.4V5.33333Z", fill: "#F0AA1E" }),
|
|
2868
|
-
/* @__PURE__ */ jsx20("path", { d: "M89.3334 21.3334V44", stroke: "black",
|
|
2868
|
+
/* @__PURE__ */ jsx20("path", { d: "M89.3334 21.3334V44", stroke: "black", strokeWidth: "0.8", strokeMiterlimit: "10" })
|
|
2869
2869
|
] });
|
|
2870
2870
|
var Logo_en2 = () => /* @__PURE__ */ jsxs18("svg", { width: "189.0", height: "40", viewBox: "0 0 189 40", fill: "none", xmlns: "http://www.w3.org/2000/svg", role: "img", children: [
|
|
2871
2871
|
/* @__PURE__ */ jsx20(
|
|
@@ -3156,7 +3156,7 @@ var Navigation = ({
|
|
|
3156
3156
|
return "\xD6ppna undermeny f\xF6r " + label["sv"];
|
|
3157
3157
|
};
|
|
3158
3158
|
return /* @__PURE__ */ jsxs19(Fragment16, { children: [
|
|
3159
|
-
/* @__PURE__ */ jsx21("div", { "aria-live": "polite", className: "sr-only", children: isOpen
|
|
3159
|
+
/* @__PURE__ */ jsx21("div", { "aria-live": "polite", className: "sr-only", children: isOpen ? activatedLanguage === "sv" ? "Navigationsmenyn \xF6ppnades" : "Navigation menu opened" : activatedLanguage === "sv" ? "Navigationsmenyn st\xE4ngdes" : "Navigation menu closed" }),
|
|
3160
3160
|
/* @__PURE__ */ jsxs19(
|
|
3161
3161
|
"nav",
|
|
3162
3162
|
{
|
|
@@ -3165,7 +3165,6 @@ var Navigation = ({
|
|
|
3165
3165
|
"aria-label": activatedLanguage === "sv" ? "Huvudnavigation" : "Main navigation",
|
|
3166
3166
|
className: `pts-navigation-menu-container ${isOpen ? "open" : ""}`,
|
|
3167
3167
|
inert: !isOpen,
|
|
3168
|
-
"aria-hidden": !isOpen,
|
|
3169
3168
|
children: [
|
|
3170
3169
|
/* @__PURE__ */ jsx21("div", { className: "pts-navigation-close-container ", id: "menu-close", children: /* @__PURE__ */ jsxs19(
|
|
3171
3170
|
"button",
|
|
@@ -3179,10 +3178,11 @@ var Navigation = ({
|
|
|
3179
3178
|
]
|
|
3180
3179
|
}
|
|
3181
3180
|
) }),
|
|
3182
|
-
/* @__PURE__ */ jsx21("ul", { className: "pts-navigation-link-list", children: menuLinks && menuLinks.map(({ label, href, children }, index) => /* @__PURE__ */ jsxs19(
|
|
3181
|
+
/* @__PURE__ */ jsx21("ul", { className: "pts-navigation-link-list", lang: activatedLanguage, children: menuLinks && menuLinks.map(({ label, href, children }, index) => /* @__PURE__ */ jsxs19(
|
|
3183
3182
|
"li",
|
|
3184
3183
|
{
|
|
3185
3184
|
className: `pts-navigation-link ${openSubMenu === label[activatedLanguage] ? "open" : ""}`,
|
|
3185
|
+
lang: activatedLanguage,
|
|
3186
3186
|
children: [
|
|
3187
3187
|
/* @__PURE__ */ jsx21("div", { children: /* @__PURE__ */ jsxs19("div", { className: "pts-navigation-button", children: [
|
|
3188
3188
|
/* @__PURE__ */ jsx21("span", { children: href && href.length === 0 ? /* @__PURE__ */ jsx21("span", { children: label[activatedLanguage] }) : /* @__PURE__ */ jsx21(LinkComponent, { onClick: handleCloseButton, href, children: label[activatedLanguage] }) }),
|
|
@@ -3204,11 +3204,12 @@ var Navigation = ({
|
|
|
3204
3204
|
"div",
|
|
3205
3205
|
{
|
|
3206
3206
|
hidden: openSubMenu !== label[activatedLanguage],
|
|
3207
|
+
"aria-hidden": openSubMenu !== label[activatedLanguage],
|
|
3207
3208
|
className: "pts-sub-navigation-container",
|
|
3208
3209
|
id: "sub-menu-" + index,
|
|
3209
3210
|
role: "region",
|
|
3210
3211
|
"aria-labelledby": "menu-button-" + index,
|
|
3211
|
-
children: /* @__PURE__ */ jsx21("ul", { className: "pts-sub-navigation-list", children: children.map(({ label: label2, href: href2 }, index2) => /* @__PURE__ */ jsx21("li", { className: "pts-sub-navigation-item", children: /* @__PURE__ */ jsx21(LinkComponent, { onClick: handleCloseButton, href: href2, children: label2[activatedLanguage] }) }, "nav-child-" + index2)) })
|
|
3212
|
+
children: /* @__PURE__ */ jsx21("ul", { className: "pts-sub-navigation-list", lang: activatedLanguage, children: children.map(({ label: label2, href: href2 }, index2) => /* @__PURE__ */ jsx21("li", { className: "pts-sub-navigation-item", lang: activatedLanguage, children: /* @__PURE__ */ jsx21(LinkComponent, { onClick: handleCloseButton, href: href2, children: label2[activatedLanguage] }) }, "nav-child-" + index2)) })
|
|
3212
3213
|
}
|
|
3213
3214
|
)
|
|
3214
3215
|
]
|
|
@@ -3533,10 +3534,10 @@ var LinkStandard = ({
|
|
|
3533
3534
|
href: url,
|
|
3534
3535
|
to: url,
|
|
3535
3536
|
target: openTarget,
|
|
3536
|
-
rel: openTarget === "_blank" ? "noopener" : void 0,
|
|
3537
|
-
"aria-label": openTarget === "_blank" ? ariaLabel
|
|
3537
|
+
rel: openTarget === "_blank" ? "noopener noreferrer" : void 0,
|
|
3538
|
+
"aria-label": openTarget === "_blank" ? `${ariaLabel || title} (${activatedLanguage === "sv" ? "\xF6ppnas i ny flik" : "opens in new tab"})` : ariaLabel || title,
|
|
3538
3539
|
children: [
|
|
3539
|
-
IconComponent && /* @__PURE__ */ jsx29("span", { className: `pts-icon-circle ${iconClass} ${customClass}`, children: /* @__PURE__ */ jsx29(IconComponent, {}) }),
|
|
3540
|
+
IconComponent && /* @__PURE__ */ jsx29("span", { className: `pts-icon-circle ${iconClass} ${customClass}`, "aria-hidden": "true", children: /* @__PURE__ */ jsx29(IconComponent, {}) }),
|
|
3540
3541
|
/* @__PURE__ */ jsxs26("span", { className: "pts-standard-link-text", children: [
|
|
3541
3542
|
title,
|
|
3542
3543
|
fileExtension !== null && ` (${fileExtension})`
|
|
@@ -3565,7 +3566,7 @@ var LinkList = ({
|
|
|
3565
3566
|
url: link.url,
|
|
3566
3567
|
title: link.title,
|
|
3567
3568
|
activatedLanguage: activatedLanguage != null ? activatedLanguage : "sv",
|
|
3568
|
-
ariaLabel: (_a = link.ariaLabel) != null ? _a :
|
|
3569
|
+
ariaLabel: (_a = link.ariaLabel) != null ? _a : void 0,
|
|
3569
3570
|
openTarget: (_b = link.openTarget) != null ? _b : "_blank",
|
|
3570
3571
|
linkComponent: LinkComponent
|
|
3571
3572
|
}
|
|
@@ -3613,12 +3614,12 @@ var Collapse = ({
|
|
|
3613
3614
|
className: `pts-collapse-body ${isOpen ? "open" : ""}`,
|
|
3614
3615
|
id: contentId,
|
|
3615
3616
|
"aria-labelledby": buttonId,
|
|
3616
|
-
"aria-hidden": !isOpen,
|
|
3617
3617
|
role: "region",
|
|
3618
|
+
inert: !isOpen,
|
|
3618
3619
|
children: /* @__PURE__ */ jsx31("div", { className: `pts-collapse-content ${customClass}`, children })
|
|
3619
3620
|
}
|
|
3620
3621
|
)
|
|
3621
|
-
] }
|
|
3622
|
+
] });
|
|
3622
3623
|
};
|
|
3623
3624
|
var CollapseStandard_default = Collapse;
|
|
3624
3625
|
|