optimized-react-component-library-xyz123 2.12.8 → 2.13.1
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.d.mts +3 -5
- package/dist/index.d.ts +3 -5
- package/dist/index.js +57 -84
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +56 -83
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/css/darkMode.css +10 -14
- package/src/css/e-tjanst-root.css +2 -2
- package/src/css/mobileView.css +4 -62
- package/src/css/questions.css +28 -5
- package/src/css/styles.css +51 -58
package/dist/index.mjs
CHANGED
|
@@ -1305,7 +1305,6 @@ __export(icons_exports, {
|
|
|
1305
1305
|
ChevronRightIcon: () => ChevronRightIcon,
|
|
1306
1306
|
CloseIcon: () => CloseIcon,
|
|
1307
1307
|
CollapseIcon: () => CollapseIcon,
|
|
1308
|
-
Cookie_icon: () => Cookie_icon,
|
|
1309
1308
|
ExpandIcon: () => ExpandIcon,
|
|
1310
1309
|
FileIcon: () => FileIcon,
|
|
1311
1310
|
LanguageIcon: () => LanguageIcon,
|
|
@@ -1891,13 +1890,6 @@ var Logo_en = () => /* @__PURE__ */ jsxs13(
|
|
|
1891
1890
|
]
|
|
1892
1891
|
}
|
|
1893
1892
|
);
|
|
1894
|
-
var Cookie_icon = () => /* @__PURE__ */ jsx16("svg", { xmlns: "http://www.w3.org/2000/svg", width: "13", height: "16", viewBox: "0 0 13 16", fill: "none", children: /* @__PURE__ */ jsx16(
|
|
1895
|
-
"path",
|
|
1896
|
-
{
|
|
1897
|
-
d: "M4.67907 11.2981H8.32186C8.53419 11.2981 8.71217 11.228 8.85579 11.0878C8.9994 10.9476 9.07121 10.7736 9.07121 10.5658V7.91662C9.07121 7.70938 8.9994 7.53567 8.85579 7.39549C8.71217 7.25532 8.53388 7.18523 8.32093 7.18523H8.16029V6.27892C8.16029 5.82637 8.00243 5.44572 7.68671 5.13697C7.371 4.82882 6.98131 4.67475 6.51764 4.67475C6.05398 4.67475 5.66429 4.82882 5.34857 5.13697C5.03286 5.44511 4.875 5.82576 4.875 6.27892V7.18523H4.67814C4.46581 7.18523 4.28783 7.25532 4.14421 7.39549C4.0006 7.53567 3.92879 7.70938 3.92879 7.91662V10.5658C3.92879 10.7736 4.0006 10.9476 4.14421 11.0878C4.28783 11.228 4.46612 11.2981 4.67907 11.2981ZM5.58907 7.18523V6.27892C5.58907 6.02213 5.67821 5.80673 5.8565 5.63272C6.03479 5.45871 6.25517 5.3717 6.51764 5.3717C6.78012 5.3717 7.00081 5.45871 7.17971 5.63272C7.35862 5.80673 7.44745 6.02213 7.44621 6.27892V7.18523H5.58907ZM6.2335 15.9773C6.14064 15.9622 6.05398 15.9396 5.9735 15.9094C4.14607 15.2296 2.69379 14.0768 1.61664 12.4509C0.5395 10.825 0.000619048 9.06491 0 7.17073V3.289C0 2.97844 0.0906907 2.69869 0.272072 2.44976C0.452834 2.20082 0.687143 2.02047 0.975 1.90869L5.97536 0.0960688C6.15612 0.0320229 6.331 0 6.5 0C6.669 0 6.84419 0.0320229 7.02557 0.0960688L12.025 1.90869C12.3122 2.02107 12.5465 2.20143 12.7279 2.44976C12.9093 2.69869 13 2.97844 13 3.289V7.17073C13 9.06491 12.4614 10.825 11.3843 12.4509C10.3071 14.0768 8.85486 15.2296 7.02743 15.9094C6.94633 15.9396 6.85936 15.9622 6.7665 15.9773C6.67364 15.9924 6.58481 16 6.5 16C6.41519 16 6.32636 15.9924 6.2335 15.9773ZM6.5 15.1463C8.10952 14.6478 9.44048 13.6508 10.4929 12.1554C11.5452 10.66 12.0714 8.99845 12.0714 7.17073V3.27178C12.0714 3.15577 12.0386 3.05124 11.973 2.9582C11.908 2.86515 11.8158 2.79567 11.6963 2.74975L6.69686 0.937125C6.63743 0.912957 6.57181 0.900873 6.5 0.900873C6.42819 0.900873 6.36257 0.912957 6.30314 0.937125L1.30371 2.74975C1.18424 2.79567 1.092 2.86515 1.027 2.9582C0.961381 3.05124 0.928571 3.15577 0.928571 3.27178V7.17073C0.928571 8.99845 1.45476 10.66 2.50714 12.1554C3.55952 13.6508 4.89048 14.6478 6.5 15.1463Z",
|
|
1898
|
-
fill: "white"
|
|
1899
|
-
}
|
|
1900
|
-
) });
|
|
1901
1893
|
|
|
1902
1894
|
// src/components/layout/AlertInTextStandard/AlertInTextStandard.tsx
|
|
1903
1895
|
import DOMPurify5 from "dompurify";
|
|
@@ -1920,7 +1912,9 @@ import { jsx as jsx18, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
|
1920
1912
|
var TextBody = ({ data }) => {
|
|
1921
1913
|
return /* @__PURE__ */ jsxs15("div", { className: "pts-textBody-container", children: [
|
|
1922
1914
|
/* @__PURE__ */ jsxs15("div", { className: `${!data.body || !data.linksForMoreInfo || !data.alertInText ? "" : "pts-textbody-createspace"}`, children: [
|
|
1923
|
-
data.body && /* @__PURE__ */ jsx18("div", { dangerouslySetInnerHTML: { __html: DOMPurify6.sanitize(data.body
|
|
1915
|
+
data.body && /* @__PURE__ */ jsx18("div", { dangerouslySetInnerHTML: { __html: DOMPurify6.sanitize(data.body, {
|
|
1916
|
+
ALLOWED_ATTR: ["target", "href", "style"]
|
|
1917
|
+
}) } }),
|
|
1924
1918
|
data.linksForMoreInfo && data.linksForMoreInfo.length > 1 && /* @__PURE__ */ jsx18("ul", { className: "pts-moreinfo-list", children: data.linksForMoreInfo.map((link, index) => /* @__PURE__ */ jsx18("li", { className: index > 0 ? "notFirstInList" : "", children: /* @__PURE__ */ jsxs15(
|
|
1925
1919
|
"a",
|
|
1926
1920
|
{
|
|
@@ -2019,10 +2013,10 @@ var InputInfoOnly = ({
|
|
|
2019
2013
|
};
|
|
2020
2014
|
var InfoOnlyStandard_default = InputInfoOnly;
|
|
2021
2015
|
|
|
2022
|
-
// src/components/input-components/
|
|
2016
|
+
// src/components/input-components/RadioMultipleWithInfoStandard/RadioMultipleWithInfoStandard.tsx
|
|
2023
2017
|
import React7 from "react";
|
|
2024
2018
|
|
|
2025
|
-
// src/components/input-components/
|
|
2019
|
+
// src/components/input-components/RadioMultipleWithInfoStandard/RadioCollapseItem.tsx
|
|
2026
2020
|
import { useEffect as useEffect7, useState as useState7 } from "react";
|
|
2027
2021
|
import DOMPurify7 from "dompurify";
|
|
2028
2022
|
import { jsx as jsx20, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
@@ -2048,6 +2042,8 @@ var RadioCollapseItem = ({
|
|
|
2048
2042
|
useEffect7(() => {
|
|
2049
2043
|
if (questionAnswer === value) {
|
|
2050
2044
|
setIsOpen(true);
|
|
2045
|
+
} else {
|
|
2046
|
+
setIsOpen(false);
|
|
2051
2047
|
}
|
|
2052
2048
|
}, [questionAnswer, value]);
|
|
2053
2049
|
return /* @__PURE__ */ jsx20("div", { className: "pts-radio-option", children: /* @__PURE__ */ jsxs16("div", { className: "pts-radio-collapse", children: [
|
|
@@ -2066,7 +2062,7 @@ var RadioCollapseItem = ({
|
|
|
2066
2062
|
}
|
|
2067
2063
|
),
|
|
2068
2064
|
/* @__PURE__ */ jsx20("label", { htmlFor: `${groupId}-option-${index}`, id: `${groupId}-label-${index}`, children: label }),
|
|
2069
|
-
optionText && optionText.length > 0 && /* @__PURE__ */ jsx20(
|
|
2065
|
+
optionText && optionText.length > 0 && questionAnswer === value && /* @__PURE__ */ jsx20(
|
|
2070
2066
|
"button",
|
|
2071
2067
|
{
|
|
2072
2068
|
className: `pts-radio-collapse-button ${isOpen ? "open" : ""}`,
|
|
@@ -2077,7 +2073,7 @@ var RadioCollapseItem = ({
|
|
|
2077
2073
|
"aria-controls": contentId,
|
|
2078
2074
|
"aria-label": buttonLabel,
|
|
2079
2075
|
"aria-describedby": isOpen ? contentId : void 0,
|
|
2080
|
-
|
|
2076
|
+
tabIndex: questionAnswer === value ? 0 : -1
|
|
2081
2077
|
}
|
|
2082
2078
|
)
|
|
2083
2079
|
] }),
|
|
@@ -2086,15 +2082,23 @@ var RadioCollapseItem = ({
|
|
|
2086
2082
|
{
|
|
2087
2083
|
className: `pts-radio-collapse-body ${isOpen ? "open" : "hidden"}`,
|
|
2088
2084
|
id: contentId,
|
|
2085
|
+
hidden: !isOpen,
|
|
2089
2086
|
role: "region",
|
|
2090
2087
|
"aria-labelledby": `${groupId}-label-${index}`,
|
|
2091
2088
|
inert: !isOpen,
|
|
2092
2089
|
children: /* @__PURE__ */ jsxs16("div", { className: `pts-radio-collapse-content `, children: [
|
|
2093
2090
|
isOpen && //TODO??
|
|
2094
2091
|
/* @__PURE__ */ jsx20("span", { className: "sr-only", children: activatedLanguage === "sv" ? `Visar informationstext om svarsalternativet ${label}` : `Displays informational text about the answer option ${label}` }),
|
|
2095
|
-
/* @__PURE__ */ jsx20(
|
|
2096
|
-
|
|
2097
|
-
|
|
2092
|
+
/* @__PURE__ */ jsx20(
|
|
2093
|
+
"div",
|
|
2094
|
+
{
|
|
2095
|
+
dangerouslySetInnerHTML: {
|
|
2096
|
+
__html: DOMPurify7.sanitize(optionText != null ? optionText : "", {
|
|
2097
|
+
ADD_ATTR: ["target", "style"]
|
|
2098
|
+
})
|
|
2099
|
+
}
|
|
2100
|
+
}
|
|
2101
|
+
)
|
|
2098
2102
|
] })
|
|
2099
2103
|
}
|
|
2100
2104
|
)
|
|
@@ -2102,7 +2106,7 @@ var RadioCollapseItem = ({
|
|
|
2102
2106
|
};
|
|
2103
2107
|
var RadioCollapseItem_default = RadioCollapseItem;
|
|
2104
2108
|
|
|
2105
|
-
// src/components/input-components/
|
|
2109
|
+
// src/components/input-components/RadioMultipleWithInfoStandard/RadioMultipleWithInfoStandard.tsx
|
|
2106
2110
|
import { Fragment as Fragment14, jsx as jsx21, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2107
2111
|
var RadioWithInfo = ({
|
|
2108
2112
|
question,
|
|
@@ -2142,16 +2146,11 @@ var RadioWithInfo = ({
|
|
|
2142
2146
|
"aria-invalid": question.hasValidationError ? question.hasValidationError : void 0,
|
|
2143
2147
|
"aria-describedby": question.hasValidationError ? errorId : void 0,
|
|
2144
2148
|
children: [
|
|
2145
|
-
/* @__PURE__ */ jsxs17("legend", { id: `label-${groupId}`, children: [
|
|
2146
|
-
question.questionLabel,
|
|
2147
|
-
" ",
|
|
2148
|
-
question.isQuestionMandatory && /* @__PURE__ */ jsx21("span", { "aria-hidden": true, className: "pts-root-mandatoryAsterisk", children: "*" })
|
|
2149
|
-
] }),
|
|
2150
2149
|
groupedOptionArray.map((group, g_index) => {
|
|
2151
2150
|
var _a2;
|
|
2152
2151
|
let subId = "subheading-" + g_index;
|
|
2153
2152
|
return /* @__PURE__ */ jsxs17(React7.Fragment, { children: [
|
|
2154
|
-
/* @__PURE__ */ jsx21("
|
|
2153
|
+
/* @__PURE__ */ jsx21("legend", { className: "pts-radioWithInfo-sub-headline", id: subId, children: group.category }),
|
|
2155
2154
|
/* @__PURE__ */ jsx21("div", { role: "group", "aria-labelledby": subId, children: (_a2 = group.items) == null ? void 0 : _a2.map((option, o_index) => {
|
|
2156
2155
|
var _a3, _b2, _c2, _d, _e;
|
|
2157
2156
|
index++;
|
|
@@ -2189,7 +2188,7 @@ var RadioWithInfo = ({
|
|
|
2189
2188
|
showPreview && /* @__PURE__ */ jsx21(PreviewRadio2, { question })
|
|
2190
2189
|
] });
|
|
2191
2190
|
};
|
|
2192
|
-
var
|
|
2191
|
+
var RadioMultipleWithInfoStandard_default = RadioWithInfo;
|
|
2193
2192
|
var PreviewRadio2 = ({ question }) => {
|
|
2194
2193
|
var _a, _b;
|
|
2195
2194
|
const previewId = `preview-${question.id}`;
|
|
@@ -3111,7 +3110,7 @@ var QuestionRenderer = ({
|
|
|
3111
3110
|
}
|
|
3112
3111
|
),
|
|
3113
3112
|
question.questionType === "RadioWithInfo" && /* @__PURE__ */ jsx24(
|
|
3114
|
-
|
|
3113
|
+
RadioMultipleWithInfoStandard_default,
|
|
3115
3114
|
{
|
|
3116
3115
|
question,
|
|
3117
3116
|
handleQuestionInputChange,
|
|
@@ -3363,11 +3362,7 @@ var CookieBanner_default = CookieBanner;
|
|
|
3363
3362
|
|
|
3364
3363
|
// src/components/layout/FooterStandard/FooterStandard.tsx
|
|
3365
3364
|
import { jsx as jsx27, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
3366
|
-
var Footer = ({
|
|
3367
|
-
activatedLanguage = "sv",
|
|
3368
|
-
appUsesCookies = false,
|
|
3369
|
-
openCookieBanner
|
|
3370
|
-
}) => {
|
|
3365
|
+
var Footer = ({ activatedLanguage = "sv" }) => {
|
|
3371
3366
|
return /* @__PURE__ */ jsxs23("footer", { className: "pts-footer-container", children: [
|
|
3372
3367
|
/* @__PURE__ */ jsx27("div", { className: "pts-footer-slogan-text-container", children: /* @__PURE__ */ jsx27("p", { className: "pts-footer-slogan-text", children: activatedLanguage === "sv" ? "S\xE4ker och tillg\xE4nglig kommunikation f\xF6r Sverige" : "Secure and accessible communication for Sweden" }) }),
|
|
3373
3368
|
/* @__PURE__ */ jsxs23("div", { className: "pts-footer-content", children: [
|
|
@@ -3436,20 +3431,7 @@ var Footer = ({
|
|
|
3436
3431
|
]
|
|
3437
3432
|
}
|
|
3438
3433
|
) }),
|
|
3439
|
-
/* @__PURE__ */ jsx27("li", { children:
|
|
3440
|
-
"button",
|
|
3441
|
-
{
|
|
3442
|
-
type: "button",
|
|
3443
|
-
"aria-controls": "cookie-banner",
|
|
3444
|
-
onClick: openCookieBanner,
|
|
3445
|
-
className: "pts-footer-button pts-secondary-button",
|
|
3446
|
-
children: [
|
|
3447
|
-
/* @__PURE__ */ jsx27("span", { className: "sr-only", children: activatedLanguage === "en" ? "PTS Cookies (opens cookie banner)" : "PTS Kakor (\xF6ppnar kakbanner)" }),
|
|
3448
|
-
/* @__PURE__ */ jsx27("span", { "aria-hidden": "true", className: "secondary_icon", children: /* @__PURE__ */ jsx27(Cookie_icon, {}) }),
|
|
3449
|
-
/* @__PURE__ */ jsx27("span", { "aria-hidden": "true", children: activatedLanguage === "en" ? "Cookies" : "Kakor" })
|
|
3450
|
-
]
|
|
3451
|
-
}
|
|
3452
|
-
) : /* @__PURE__ */ jsxs23(
|
|
3434
|
+
/* @__PURE__ */ jsx27("li", { children: /* @__PURE__ */ jsxs23(
|
|
3453
3435
|
"a",
|
|
3454
3436
|
{
|
|
3455
3437
|
href: activatedLanguage === "en" ? "https://pts.se/en/cookies-eservices" : "https://www.pts.se/kakor-etjanster",
|
|
@@ -3879,7 +3861,7 @@ var Header = ({
|
|
|
3879
3861
|
"button",
|
|
3880
3862
|
{
|
|
3881
3863
|
lang: activatedLanguage === "en" ? "en" : "sv",
|
|
3882
|
-
className: "pts-languageButton
|
|
3864
|
+
className: "pts-languageButton",
|
|
3883
3865
|
onClick: handleLanguageClick,
|
|
3884
3866
|
children: [
|
|
3885
3867
|
/* @__PURE__ */ jsx29("div", { className: "languageIcon", children: /* @__PURE__ */ jsx29("span", { "aria-hidden": "true", children: /* @__PURE__ */ jsx29(LanguageIcon2, {}) }) }),
|
|
@@ -3927,10 +3909,12 @@ var Navigation = ({
|
|
|
3927
3909
|
setOpenSubMenu(null);
|
|
3928
3910
|
return;
|
|
3929
3911
|
}
|
|
3930
|
-
const defaultOpenSubMenu = activePath == null ? null : (_b = (_a = menuLinks.find(
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
|
|
3912
|
+
const defaultOpenSubMenu = activePath == null ? null : (_b = (_a = menuLinks.find(
|
|
3913
|
+
(link) => {
|
|
3914
|
+
var _a2;
|
|
3915
|
+
return (_a2 = link.children) == null ? void 0 : _a2.some((child) => child.href.includes(activePath));
|
|
3916
|
+
}
|
|
3917
|
+
)) == null ? void 0 : _a.label[activatedLanguage]) != null ? _b : null;
|
|
3934
3918
|
setOpenSubMenu(defaultOpenSubMenu);
|
|
3935
3919
|
}, [isOpen, activePath, menuLinks, activatedLanguage]);
|
|
3936
3920
|
useEffect13(() => {
|
|
@@ -4011,7 +3995,7 @@ var Navigation = ({
|
|
|
4011
3995
|
/* @__PURE__ */ jsx30("div", { className: "pts-navigation-close-container ", id: "menu-close", children: /* @__PURE__ */ jsxs26(
|
|
4012
3996
|
"button",
|
|
4013
3997
|
{
|
|
4014
|
-
className: "pts-navigation-close-button
|
|
3998
|
+
className: "pts-navigation-close-button",
|
|
4015
3999
|
onClick: () => handleMenuClick("close"),
|
|
4016
4000
|
type: "button",
|
|
4017
4001
|
children: [
|
|
@@ -4027,7 +4011,14 @@ var Navigation = ({
|
|
|
4027
4011
|
lang: activatedLanguage,
|
|
4028
4012
|
children: [
|
|
4029
4013
|
/* @__PURE__ */ jsx30("div", { children: /* @__PURE__ */ jsxs26("div", { className: "pts-navigation-button", children: [
|
|
4030
|
-
/* @__PURE__ */ jsx30("span", { children: href && href.length === 0 ? /* @__PURE__ */ jsx30("span", { children: label[activatedLanguage] }) : /* @__PURE__ */ jsx30(
|
|
4014
|
+
/* @__PURE__ */ jsx30("span", { children: href && href.length === 0 ? /* @__PURE__ */ jsx30("span", { children: label[activatedLanguage] }) : /* @__PURE__ */ jsx30(
|
|
4015
|
+
LinkComponent,
|
|
4016
|
+
{
|
|
4017
|
+
onClick: () => handleMenuClick("link"),
|
|
4018
|
+
href,
|
|
4019
|
+
children: label[activatedLanguage]
|
|
4020
|
+
}
|
|
4021
|
+
) }),
|
|
4031
4022
|
children && /* @__PURE__ */ jsx30(
|
|
4032
4023
|
"button",
|
|
4033
4024
|
{
|
|
@@ -4050,15 +4041,14 @@ var Navigation = ({
|
|
|
4050
4041
|
className: "pts-sub-navigation-container",
|
|
4051
4042
|
id: "sub-menu-" + index,
|
|
4052
4043
|
role: "region",
|
|
4053
|
-
children: /* @__PURE__ */ jsx30("ul", { className: "pts-sub-navigation-list", lang: activatedLanguage, children: children.map(({ label: label2, href: href2 }, index2) => /* @__PURE__ */ jsx30(
|
|
4054
|
-
|
|
4044
|
+
children: /* @__PURE__ */ jsx30("ul", { className: "pts-sub-navigation-list", lang: activatedLanguage, children: children.map(({ label: label2, href: href2 }, index2) => /* @__PURE__ */ jsx30("li", { className: "pts-sub-navigation-item", lang: activatedLanguage, children: /* @__PURE__ */ jsx30(
|
|
4045
|
+
LinkComponent,
|
|
4055
4046
|
{
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
-
children:
|
|
4059
|
-
}
|
|
4060
|
-
|
|
4061
|
-
)) })
|
|
4047
|
+
onClick: () => handleMenuClick("link"),
|
|
4048
|
+
href: href2,
|
|
4049
|
+
children: label2[activatedLanguage]
|
|
4050
|
+
}
|
|
4051
|
+
) }, "nav-child-" + index2)) })
|
|
4062
4052
|
}
|
|
4063
4053
|
)
|
|
4064
4054
|
]
|
|
@@ -4125,7 +4115,7 @@ import { Fragment as Fragment21, jsx as jsx33, jsxs as jsxs29 } from "react/jsx-
|
|
|
4125
4115
|
var NavigationHeader = ({
|
|
4126
4116
|
headline = void 0,
|
|
4127
4117
|
homelink = "",
|
|
4128
|
-
//??
|
|
4118
|
+
//??
|
|
4129
4119
|
activatedLanguage = "sv",
|
|
4130
4120
|
useLanguage = false,
|
|
4131
4121
|
useNavigationMenu = true,
|
|
@@ -4199,23 +4189,14 @@ var NavigationHeader = ({
|
|
|
4199
4189
|
) }),
|
|
4200
4190
|
/* @__PURE__ */ jsx33("div", { className: `${hasHeadline ? "pts-navigation-header-headline-container" : ""}`, children: hasHeadline && /* @__PURE__ */ jsx33("div", { className: "pts-site-headline", children: headline }) }),
|
|
4201
4191
|
/* @__PURE__ */ jsx33("div", { className: "pts-navigation-header-nav-container", children: (useLanguage || useNavigationMenu || useSearch) && /* @__PURE__ */ jsxs29(Fragment21, { children: [
|
|
4202
|
-
useSearch && !isMenuOpen && /* @__PURE__ */ jsx33(Fragment21, { children: /* @__PURE__ */ jsxs29(
|
|
4203
|
-
"
|
|
4204
|
-
{
|
|
4205
|
-
|
|
4206
|
-
className: "pts-secondary-button",
|
|
4207
|
-
onClick: handleSearchClick,
|
|
4208
|
-
children: [
|
|
4209
|
-
/* @__PURE__ */ jsx33("span", { "aria-hidden": "true", className: "pts-navigation-header-icons", children: getSearchIcon() }),
|
|
4210
|
-
/* @__PURE__ */ jsx33("span", { className: "pts-navigation-header-button-label", children: getSearchLabel() })
|
|
4211
|
-
]
|
|
4212
|
-
}
|
|
4213
|
-
) }),
|
|
4192
|
+
useSearch && !isMenuOpen && /* @__PURE__ */ jsx33(Fragment21, { children: /* @__PURE__ */ jsxs29("button", { type: "button", onClick: handleSearchClick, children: [
|
|
4193
|
+
/* @__PURE__ */ jsx33("span", { "aria-hidden": "true", className: "pts-navigation-header-icons", children: getSearchIcon() }),
|
|
4194
|
+
/* @__PURE__ */ jsx33("span", { className: "pts-navigation-header-button-label", children: getSearchLabel() })
|
|
4195
|
+
] }) }),
|
|
4214
4196
|
useLanguage && !isMenuOpen && /* @__PURE__ */ jsxs29(
|
|
4215
4197
|
"button",
|
|
4216
4198
|
{
|
|
4217
4199
|
type: "button",
|
|
4218
|
-
className: "pts-secondary-button",
|
|
4219
4200
|
lang: activatedLanguage === "en" ? "en" : "sv",
|
|
4220
4201
|
onClick: handleLanguageClick,
|
|
4221
4202
|
"aria-label": activatedLanguage === "sv" ? "Change language to English" : "\xC4ndra spr\xE5k till svenska",
|
|
@@ -4229,20 +4210,12 @@ var NavigationHeader = ({
|
|
|
4229
4210
|
"button",
|
|
4230
4211
|
{
|
|
4231
4212
|
type: "button",
|
|
4232
|
-
className: "pts-secondary-button",
|
|
4233
4213
|
onClick: handleMenuClick,
|
|
4234
4214
|
"aria-expanded": isMenuOpen,
|
|
4235
4215
|
"aria-controls": "main-navigation",
|
|
4236
4216
|
ref: menuButtonFocusRef,
|
|
4237
4217
|
children: [
|
|
4238
|
-
/* @__PURE__ */ jsx33(
|
|
4239
|
-
"span",
|
|
4240
|
-
{
|
|
4241
|
-
"aria-hidden": "true",
|
|
4242
|
-
className: isMenuOpen ? "pts-close-icon" : "pts-open-icon",
|
|
4243
|
-
children: getMenuIcon()
|
|
4244
|
-
}
|
|
4245
|
-
),
|
|
4218
|
+
/* @__PURE__ */ jsx33("span", { "aria-hidden": "true", className: isMenuOpen ? "pts-close-icon" : "pts-open-icon", children: getMenuIcon() }),
|
|
4246
4219
|
/* @__PURE__ */ jsx33("span", { className: "pts-navigation-header-button-label", children: getMenuLabel() })
|
|
4247
4220
|
]
|
|
4248
4221
|
}
|
|
@@ -4708,7 +4681,7 @@ export {
|
|
|
4708
4681
|
QuestionGroup_default as QuestionGroup,
|
|
4709
4682
|
QuestionRenderer_default as QuestionRenderer,
|
|
4710
4683
|
RadioMultipleStandard_default as RadioMultipleStandard,
|
|
4711
|
-
|
|
4684
|
+
RadioMultipleWithInfoStandard_default as RadioMultipleWithInfoStandard,
|
|
4712
4685
|
SearchBarStandard_default as SearchBar,
|
|
4713
4686
|
SingleCheckboxStandard_default as SingleCheckboxStandard,
|
|
4714
4687
|
SkipLinkStandard_default as SkipLinkStandard,
|