optimized-react-component-library-xyz123 2.13.1 → 2.14.2

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 CHANGED
@@ -823,6 +823,8 @@ declare const CookieBanner: React$1.FC<CookieBannerProps>;
823
823
 
824
824
  interface FooterProps {
825
825
  activatedLanguage?: string;
826
+ appUsesCookies?: boolean;
827
+ openCookieBanner?: () => void;
826
828
  }
827
829
 
828
830
  declare const Footer: FC<FooterProps>;
package/dist/index.d.ts CHANGED
@@ -823,6 +823,8 @@ declare const CookieBanner: React$1.FC<CookieBannerProps>;
823
823
 
824
824
  interface FooterProps {
825
825
  activatedLanguage?: string;
826
+ appUsesCookies?: boolean;
827
+ openCookieBanner?: () => void;
826
828
  }
827
829
 
828
830
  declare const Footer: FC<FooterProps>;
package/dist/index.js CHANGED
@@ -112,6 +112,22 @@ var ValidationMessage = ({
112
112
  };
113
113
  var ValidationMessage_default = ValidationMessage;
114
114
 
115
+ // src/helpers/setPreviewAnswerLabel/setPreviewAnswerLabel.ts
116
+ var setPreviewAnswerLabel = (question, activatedLanguage) => {
117
+ var _a;
118
+ if ((question == null ? void 0 : question.answer) && question.answer.length > 0) {
119
+ const language = question.languageSupport.find((lang) => lang.language === activatedLanguage);
120
+ if (language && setPreviewAnswerLabel.length > 0) {
121
+ const answerOption = language.options.find(
122
+ (option) => option.value === question.answer
123
+ );
124
+ return (_a = answerOption.label) != null ? _a : "";
125
+ }
126
+ }
127
+ return "";
128
+ };
129
+ var setPreviewAnswerLabel_default = setPreviewAnswerLabel;
130
+
115
131
  // src/components/input-components/RadioMultipleStandard/RadioMultipleStandard.tsx
116
132
  var import_jsx_runtime2 = require("react/jsx-runtime");
117
133
  var InputRadio = ({
@@ -175,9 +191,10 @@ var RadioMultipleStandard_default = InputRadio;
175
191
  var PreviewRadio = ({ question, activatedLanguage }) => {
176
192
  var _a, _b;
177
193
  const previewId = `preview-${question.id}`;
194
+ const questionAnswer = setPreviewAnswerLabel_default(question, activatedLanguage);
178
195
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
179
196
  /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("dt", { id: `question-${previewId}`, children: (_a = question.previewLabel) != null ? _a : question.questionLabel }),
180
- ((_b = question.answer) == null ? void 0 : _b.trim()) ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("dd", { className: "pts-radioMultiple-preview pts-root-answer", id: `answer-${previewId}`, children: question.answer }) : /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
197
+ ((_b = question.answer) == null ? void 0 : _b.trim()) ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("dd", { className: "pts-radioMultiple-preview pts-root-answer", id: `answer-${previewId}`, children: questionAnswer.length > 0 ? questionAnswer : question.answer }) : /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
181
198
  "dd",
182
199
  {
183
200
  className: "pts-radioMultiple-preview pts-root-answer no-answer-preview-page",
@@ -1393,6 +1410,7 @@ __export(icons_exports, {
1393
1410
  ChevronRightIcon: () => ChevronRightIcon,
1394
1411
  CloseIcon: () => CloseIcon,
1395
1412
  CollapseIcon: () => CollapseIcon,
1413
+ Cookie_icon: () => Cookie_icon,
1396
1414
  ExpandIcon: () => ExpandIcon,
1397
1415
  FileIcon: () => FileIcon,
1398
1416
  LanguageIcon: () => LanguageIcon,
@@ -1978,6 +1996,13 @@ var Logo_en = () => /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
1978
1996
  ]
1979
1997
  }
1980
1998
  );
1999
+ var Cookie_icon = () => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "13", height: "16", viewBox: "0 0 13 16", fill: "none", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
2000
+ "path",
2001
+ {
2002
+ 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",
2003
+ fill: "white"
2004
+ }
2005
+ ) });
1981
2006
 
1982
2007
  // src/components/layout/AlertInTextStandard/AlertInTextStandard.tsx
1983
2008
  var import_dompurify5 = __toESM(require("dompurify"));
@@ -2273,13 +2298,14 @@ var RadioWithInfo = ({
2273
2298
  ]
2274
2299
  }
2275
2300
  ) }),
2276
- showPreview && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(PreviewRadio2, { question })
2301
+ showPreview && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(PreviewRadio2, { question, activatedLanguage })
2277
2302
  ] });
2278
2303
  };
2279
2304
  var RadioMultipleWithInfoStandard_default = RadioWithInfo;
2280
- var PreviewRadio2 = ({ question }) => {
2305
+ var PreviewRadio2 = ({ question, activatedLanguage }) => {
2281
2306
  var _a, _b;
2282
2307
  const previewId = `preview-${question.id}`;
2308
+ const questionAnswer = setPreviewAnswerLabel_default(question, activatedLanguage);
2283
2309
  return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_jsx_runtime21.Fragment, { children: [
2284
2310
  /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("dt", { id: `question-${previewId}`, children: (_a = question.previewLabel) != null ? _a : question.questionLabel }),
2285
2311
  ((_b = question.answer) == null ? void 0 : _b.trim()) ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
@@ -2287,7 +2313,7 @@ var PreviewRadio2 = ({ question }) => {
2287
2313
  {
2288
2314
  className: "pts-radioMultipleWithInfo2-preview pts-root-answer",
2289
2315
  id: `answer-${previewId}`,
2290
- children: question.answer
2316
+ children: questionAnswer.length > 0 ? questionAnswer : question.answer
2291
2317
  }
2292
2318
  ) : /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2293
2319
  "dd",
@@ -2426,16 +2452,17 @@ var CustomDropdownStandard = ({
2426
2452
  ),
2427
2453
  hasOptionInfoText && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(OptionTextBody_default, { ...optionTextProps })
2428
2454
  ] }),
2429
- showPreview && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(PreviewDropdown, { question })
2455
+ showPreview && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(PreviewDropdown, { question, activatedLanguage })
2430
2456
  ] });
2431
2457
  };
2432
2458
  var DropdownStandard_default = CustomDropdownStandard;
2433
- var PreviewDropdown = ({ question, activatedLanguage = "sv" }) => {
2459
+ var PreviewDropdown = ({ question, activatedLanguage }) => {
2434
2460
  var _a, _b;
2435
2461
  const previewId = `preview-${question.id}`;
2462
+ const questionAnswer = setPreviewAnswerLabel_default(question, activatedLanguage);
2436
2463
  return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_jsx_runtime23.Fragment, { children: [
2437
2464
  /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("dt", { id: `question-${previewId}`, children: (_a = question.previewLabel) != null ? _a : question.questionLabel }),
2438
- ((_b = question.answer) == null ? void 0 : _b.trim()) ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("dd", { className: "pts-dropdown-preview pts-root-answer", id: `answer-${previewId}`, children: question.answer }) : /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2465
+ ((_b = question.answer) == null ? void 0 : _b.trim()) ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("dd", { className: "pts-dropdown-preview pts-root-answer", id: `answer-${previewId}`, children: questionAnswer.length > 0 ? questionAnswer : question.answer }) : /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2439
2466
  "dd",
2440
2467
  {
2441
2468
  className: "pts-dropdown-preview pts-root-answer no-answer-preview-page",
@@ -3191,7 +3218,8 @@ var QuestionRenderer = ({
3191
3218
  {
3192
3219
  question,
3193
3220
  handleQuestionInputChange,
3194
- showPreview
3221
+ showPreview,
3222
+ activatedLanguage
3195
3223
  }
3196
3224
  ),
3197
3225
  question.questionType === "RadioWithInfo" && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
@@ -3199,7 +3227,8 @@ var QuestionRenderer = ({
3199
3227
  {
3200
3228
  question,
3201
3229
  handleQuestionInputChange,
3202
- showPreview
3230
+ showPreview,
3231
+ activatedLanguage
3203
3232
  }
3204
3233
  ),
3205
3234
  question.questionType === "TextField" && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
@@ -3253,7 +3282,8 @@ var QuestionRenderer = ({
3253
3282
  {
3254
3283
  question,
3255
3284
  handleQuestionInputChange,
3256
- showPreview
3285
+ showPreview,
3286
+ activatedLanguage
3257
3287
  }
3258
3288
  ),
3259
3289
  question.questionType === "InfoOnly" && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
@@ -3447,7 +3477,11 @@ var CookieBanner_default = CookieBanner;
3447
3477
 
3448
3478
  // src/components/layout/FooterStandard/FooterStandard.tsx
3449
3479
  var import_jsx_runtime27 = require("react/jsx-runtime");
3450
- var Footer = ({ activatedLanguage = "sv" }) => {
3480
+ var Footer = ({
3481
+ activatedLanguage = "sv",
3482
+ appUsesCookies = false,
3483
+ openCookieBanner
3484
+ }) => {
3451
3485
  return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("footer", { className: "pts-footer-container", children: [
3452
3486
  /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "pts-footer-slogan-text-container", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("p", { className: "pts-footer-slogan-text", children: activatedLanguage === "sv" ? "S\xE4ker och tillg\xE4nglig kommunikation f\xF6r Sverige" : "Secure and accessible communication for Sweden" }) }),
3453
3487
  /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "pts-footer-content", children: [
@@ -3516,7 +3550,20 @@ var Footer = ({ activatedLanguage = "sv" }) => {
3516
3550
  ]
3517
3551
  }
3518
3552
  ) }),
3519
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
3553
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("li", { children: appUsesCookies ? /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
3554
+ "button",
3555
+ {
3556
+ type: "button",
3557
+ "aria-controls": "cookie-banner",
3558
+ onClick: openCookieBanner,
3559
+ className: "pts-footer-button pts-secondary-button",
3560
+ children: [
3561
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "sr-only", children: activatedLanguage === "en" ? "PTS Cookies (opens cookie banner)" : "PTS Kakor (\xF6ppnar kakbanner)" }),
3562
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { "aria-hidden": "true", className: "secondary_icon", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Cookie_icon, {}) }),
3563
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { "aria-hidden": "true", children: activatedLanguage === "en" ? "Cookies" : "Kakor" })
3564
+ ]
3565
+ }
3566
+ ) : /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
3520
3567
  "a",
3521
3568
  {
3522
3569
  href: activatedLanguage === "en" ? "https://pts.se/en/cookies-eservices" : "https://www.pts.se/kakor-etjanster",
@@ -3946,7 +3993,7 @@ var Header = ({
3946
3993
  "button",
3947
3994
  {
3948
3995
  lang: activatedLanguage === "en" ? "en" : "sv",
3949
- className: "pts-languageButton",
3996
+ className: "pts-languageButton pts-secondary-button",
3950
3997
  onClick: handleLanguageClick,
3951
3998
  children: [
3952
3999
  /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "languageIcon", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(LanguageIcon2, {}) }) }),
@@ -3994,12 +4041,10 @@ var Navigation = ({
3994
4041
  setOpenSubMenu(null);
3995
4042
  return;
3996
4043
  }
3997
- const defaultOpenSubMenu = activePath == null ? null : (_b = (_a = menuLinks.find(
3998
- (link) => {
3999
- var _a2;
4000
- return (_a2 = link.children) == null ? void 0 : _a2.some((child) => child.href.includes(activePath));
4001
- }
4002
- )) == null ? void 0 : _a.label[activatedLanguage]) != null ? _b : null;
4044
+ const defaultOpenSubMenu = activePath == null ? null : (_b = (_a = menuLinks.find((link) => {
4045
+ var _a2;
4046
+ return (_a2 = link.children) == null ? void 0 : _a2.some((child) => child.href.includes(activePath));
4047
+ })) == null ? void 0 : _a.label[activatedLanguage]) != null ? _b : null;
4003
4048
  setOpenSubMenu(defaultOpenSubMenu);
4004
4049
  }, [isOpen, activePath, menuLinks, activatedLanguage]);
4005
4050
  (0, import_react16.useEffect)(() => {
@@ -4080,7 +4125,7 @@ var Navigation = ({
4080
4125
  /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "pts-navigation-close-container ", id: "menu-close", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
4081
4126
  "button",
4082
4127
  {
4083
- className: "pts-navigation-close-button",
4128
+ className: "pts-navigation-close-button pts-secondary-button",
4084
4129
  onClick: () => handleMenuClick("close"),
4085
4130
  type: "button",
4086
4131
  children: [
@@ -4096,14 +4141,7 @@ var Navigation = ({
4096
4141
  lang: activatedLanguage,
4097
4142
  children: [
4098
4143
  /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "pts-navigation-button", children: [
4099
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { children: href && href.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { children: label[activatedLanguage] }) : /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
4100
- LinkComponent,
4101
- {
4102
- onClick: () => handleMenuClick("link"),
4103
- href,
4104
- children: label[activatedLanguage]
4105
- }
4106
- ) }),
4144
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { children: href && href.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { children: label[activatedLanguage] }) : /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(LinkComponent, { onClick: () => handleMenuClick("link"), href, children: label[activatedLanguage] }) }),
4107
4145
  children && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
4108
4146
  "button",
4109
4147
  {
@@ -4126,14 +4164,15 @@ var Navigation = ({
4126
4164
  className: "pts-sub-navigation-container",
4127
4165
  id: "sub-menu-" + index,
4128
4166
  role: "region",
4129
- children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("ul", { className: "pts-sub-navigation-list", lang: activatedLanguage, children: children.map(({ label: label2, href: href2 }, index2) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("li", { className: "pts-sub-navigation-item", lang: activatedLanguage, children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
4130
- LinkComponent,
4167
+ children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("ul", { className: "pts-sub-navigation-list", lang: activatedLanguage, children: children.map(({ label: label2, href: href2 }, index2) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
4168
+ "li",
4131
4169
  {
4132
- onClick: () => handleMenuClick("link"),
4133
- href: href2,
4134
- children: label2[activatedLanguage]
4135
- }
4136
- ) }, "nav-child-" + index2)) })
4170
+ className: "pts-sub-navigation-item",
4171
+ lang: activatedLanguage,
4172
+ children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(LinkComponent, { onClick: () => handleMenuClick("link"), href: href2, children: label2[activatedLanguage] })
4173
+ },
4174
+ "nav-child-" + index2
4175
+ )) })
4137
4176
  }
4138
4177
  )
4139
4178
  ]
@@ -4200,7 +4239,7 @@ var import_jsx_runtime33 = require("react/jsx-runtime");
4200
4239
  var NavigationHeader = ({
4201
4240
  headline = void 0,
4202
4241
  homelink = "",
4203
- //??
4242
+ //??
4204
4243
  activatedLanguage = "sv",
4205
4244
  useLanguage = false,
4206
4245
  useNavigationMenu = true,
@@ -4274,14 +4313,23 @@ var NavigationHeader = ({
4274
4313
  ) }),
4275
4314
  /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: `${hasHeadline ? "pts-navigation-header-headline-container" : ""}`, children: hasHeadline && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "pts-site-headline", children: headline }) }),
4276
4315
  /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "pts-navigation-header-nav-container", children: (useLanguage || useNavigationMenu || useSearch) && /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_jsx_runtime33.Fragment, { children: [
4277
- useSearch && !isMenuOpen && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_jsx_runtime33.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("button", { type: "button", onClick: handleSearchClick, children: [
4278
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { "aria-hidden": "true", className: "pts-navigation-header-icons", children: getSearchIcon() }),
4279
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "pts-navigation-header-button-label", children: getSearchLabel() })
4280
- ] }) }),
4316
+ useSearch && !isMenuOpen && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_jsx_runtime33.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
4317
+ "button",
4318
+ {
4319
+ type: "button",
4320
+ className: "pts-secondary-button",
4321
+ onClick: handleSearchClick,
4322
+ children: [
4323
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { "aria-hidden": "true", className: "pts-navigation-header-icons", children: getSearchIcon() }),
4324
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "pts-navigation-header-button-label", children: getSearchLabel() })
4325
+ ]
4326
+ }
4327
+ ) }),
4281
4328
  useLanguage && !isMenuOpen && /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
4282
4329
  "button",
4283
4330
  {
4284
4331
  type: "button",
4332
+ className: "pts-secondary-button",
4285
4333
  lang: activatedLanguage === "en" ? "en" : "sv",
4286
4334
  onClick: handleLanguageClick,
4287
4335
  "aria-label": activatedLanguage === "sv" ? "Change language to English" : "\xC4ndra spr\xE5k till svenska",
@@ -4295,12 +4343,20 @@ var NavigationHeader = ({
4295
4343
  "button",
4296
4344
  {
4297
4345
  type: "button",
4346
+ className: "pts-secondary-button",
4298
4347
  onClick: handleMenuClick,
4299
4348
  "aria-expanded": isMenuOpen,
4300
4349
  "aria-controls": "main-navigation",
4301
4350
  ref: menuButtonFocusRef,
4302
4351
  children: [
4303
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { "aria-hidden": "true", className: isMenuOpen ? "pts-close-icon" : "pts-open-icon", children: getMenuIcon() }),
4352
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
4353
+ "span",
4354
+ {
4355
+ "aria-hidden": "true",
4356
+ className: isMenuOpen ? "pts-close-icon" : "pts-open-icon",
4357
+ children: getMenuIcon()
4358
+ }
4359
+ ),
4304
4360
  /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "pts-navigation-header-button-label", children: getMenuLabel() })
4305
4361
  ]
4306
4362
  }