optimized-react-component-library-xyz123 2.12.4 → 2.12.7

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,22 +112,6 @@ 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
-
131
115
  // src/components/input-components/RadioMultipleStandard/RadioMultipleStandard.tsx
132
116
  var import_jsx_runtime2 = require("react/jsx-runtime");
133
117
  var InputRadio = ({
@@ -191,10 +175,9 @@ var RadioMultipleStandard_default = InputRadio;
191
175
  var PreviewRadio = ({ question, activatedLanguage }) => {
192
176
  var _a, _b;
193
177
  const previewId = `preview-${question.id}`;
194
- const questionAnswer = setPreviewAnswerLabel_default(question, activatedLanguage);
195
178
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
196
179
  /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("dt", { id: `question-${previewId}`, children: (_a = question.previewLabel) != null ? _a : question.questionLabel }),
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)(
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)(
198
181
  "dd",
199
182
  {
200
183
  className: "pts-radioMultiple-preview pts-root-answer no-answer-preview-page",
@@ -1410,6 +1393,7 @@ __export(icons_exports, {
1410
1393
  ChevronRightIcon: () => ChevronRightIcon,
1411
1394
  CloseIcon: () => CloseIcon,
1412
1395
  CollapseIcon: () => CollapseIcon,
1396
+ Cookie_icon: () => Cookie_icon,
1413
1397
  ExpandIcon: () => ExpandIcon,
1414
1398
  FileIcon: () => FileIcon,
1415
1399
  LanguageIcon: () => LanguageIcon,
@@ -1995,6 +1979,13 @@ var Logo_en = () => /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
1995
1979
  ]
1996
1980
  }
1997
1981
  );
1982
+ 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)(
1983
+ "path",
1984
+ {
1985
+ 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",
1986
+ fill: "white"
1987
+ }
1988
+ ) });
1998
1989
 
1999
1990
  // src/components/layout/AlertInTextStandard/AlertInTextStandard.tsx
2000
1991
  var import_dompurify5 = __toESM(require("dompurify"));
@@ -2283,14 +2274,13 @@ var RadioWithInfo = ({
2283
2274
  ]
2284
2275
  }
2285
2276
  ) }),
2286
- showPreview && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(PreviewRadio2, { question, activatedLanguage })
2277
+ showPreview && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(PreviewRadio2, { question })
2287
2278
  ] });
2288
2279
  };
2289
2280
  var RadioMultipleWithInfo2Standard_default = RadioWithInfo;
2290
- var PreviewRadio2 = ({ question, activatedLanguage }) => {
2281
+ var PreviewRadio2 = ({ question }) => {
2291
2282
  var _a, _b;
2292
2283
  const previewId = `preview-${question.id}`;
2293
- const questionAnswer = setPreviewAnswerLabel_default(question, activatedLanguage);
2294
2284
  return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_jsx_runtime21.Fragment, { children: [
2295
2285
  /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("dt", { id: `question-${previewId}`, children: (_a = question.previewLabel) != null ? _a : question.questionLabel }),
2296
2286
  ((_b = question.answer) == null ? void 0 : _b.trim()) ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
@@ -2298,7 +2288,7 @@ var PreviewRadio2 = ({ question, activatedLanguage }) => {
2298
2288
  {
2299
2289
  className: "pts-radioMultipleWithInfo2-preview pts-root-answer",
2300
2290
  id: `answer-${previewId}`,
2301
- children: questionAnswer.length > 0 ? questionAnswer : question.answer
2291
+ children: question.answer
2302
2292
  }
2303
2293
  ) : /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2304
2294
  "dd",
@@ -2437,17 +2427,16 @@ var CustomDropdownStandard = ({
2437
2427
  ),
2438
2428
  hasOptionInfoText && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(OptionTextBody_default, { ...optionTextProps })
2439
2429
  ] }),
2440
- showPreview && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(PreviewDropdown, { question, activatedLanguage })
2430
+ showPreview && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(PreviewDropdown, { question })
2441
2431
  ] });
2442
2432
  };
2443
2433
  var DropdownStandard_default = CustomDropdownStandard;
2444
- var PreviewDropdown = ({ question, activatedLanguage }) => {
2434
+ var PreviewDropdown = ({ question, activatedLanguage = "sv" }) => {
2445
2435
  var _a, _b;
2446
2436
  const previewId = `preview-${question.id}`;
2447
- const questionAnswer = setPreviewAnswerLabel_default(question, activatedLanguage);
2448
2437
  return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_jsx_runtime23.Fragment, { children: [
2449
2438
  /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("dt", { id: `question-${previewId}`, children: (_a = question.previewLabel) != null ? _a : question.questionLabel }),
2450
- ((_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
+ ((_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)(
2451
2440
  "dd",
2452
2441
  {
2453
2442
  className: "pts-dropdown-preview pts-root-answer no-answer-preview-page",
@@ -3203,8 +3192,7 @@ var QuestionRenderer = ({
3203
3192
  {
3204
3193
  question,
3205
3194
  handleQuestionInputChange,
3206
- showPreview,
3207
- activatedLanguage
3195
+ showPreview
3208
3196
  }
3209
3197
  ),
3210
3198
  question.questionType === "RadioWithInfo" && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
@@ -3212,8 +3200,7 @@ var QuestionRenderer = ({
3212
3200
  {
3213
3201
  question,
3214
3202
  handleQuestionInputChange,
3215
- showPreview,
3216
- activatedLanguage
3203
+ showPreview
3217
3204
  }
3218
3205
  ),
3219
3206
  question.questionType === "TextField" && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
@@ -3267,8 +3254,7 @@ var QuestionRenderer = ({
3267
3254
  {
3268
3255
  question,
3269
3256
  handleQuestionInputChange,
3270
- showPreview,
3271
- activatedLanguage
3257
+ showPreview
3272
3258
  }
3273
3259
  ),
3274
3260
  question.questionType === "InfoOnly" && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
@@ -3462,7 +3448,11 @@ var CookieBanner_default = CookieBanner;
3462
3448
 
3463
3449
  // src/components/layout/FooterStandard/FooterStandard.tsx
3464
3450
  var import_jsx_runtime27 = require("react/jsx-runtime");
3465
- var Footer = ({ activatedLanguage = "sv" }) => {
3451
+ var Footer = ({
3452
+ activatedLanguage = "sv",
3453
+ appUsesCookies = false,
3454
+ openCookieBanner
3455
+ }) => {
3466
3456
  return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("footer", { className: "pts-footer-container", children: [
3467
3457
  /* @__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" }) }),
3468
3458
  /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "pts-footer-content", children: [
@@ -3531,7 +3521,20 @@ var Footer = ({ activatedLanguage = "sv" }) => {
3531
3521
  ]
3532
3522
  }
3533
3523
  ) }),
3534
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
3524
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("li", { children: appUsesCookies ? /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
3525
+ "button",
3526
+ {
3527
+ type: "button",
3528
+ "aria-controls": "cookie-banner",
3529
+ onClick: openCookieBanner,
3530
+ className: "pts-footer-button pts-secondary-button",
3531
+ children: [
3532
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "sr-only", children: activatedLanguage === "en" ? "PTS Cookies (opens cookie banner)" : "PTS Kakor (\xF6ppnar kakbanner)" }),
3533
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { "aria-hidden": "true", className: "secondary_icon", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Cookie_icon, {}) }),
3534
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { "aria-hidden": "true", children: activatedLanguage === "en" ? "Cookies" : "Kakor" })
3535
+ ]
3536
+ }
3537
+ ) : /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
3535
3538
  "a",
3536
3539
  {
3537
3540
  href: activatedLanguage === "en" ? "https://pts.se/en/cookies-eservices" : "https://www.pts.se/kakor-etjanster",
@@ -3961,7 +3964,7 @@ var Header = ({
3961
3964
  "button",
3962
3965
  {
3963
3966
  lang: activatedLanguage === "en" ? "en" : "sv",
3964
- className: "pts-languageButton",
3967
+ className: "pts-languageButton pts-secondary-button",
3965
3968
  onClick: handleLanguageClick,
3966
3969
  children: [
3967
3970
  /* @__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, {}) }) }),
@@ -4009,12 +4012,10 @@ var Navigation = ({
4009
4012
  setOpenSubMenu(null);
4010
4013
  return;
4011
4014
  }
4012
- const defaultOpenSubMenu = activePath == null ? null : (_b = (_a = menuLinks.find(
4013
- (link) => {
4014
- var _a2;
4015
- return (_a2 = link.children) == null ? void 0 : _a2.some((child) => child.href.includes(activePath));
4016
- }
4017
- )) == null ? void 0 : _a.label[activatedLanguage]) != null ? _b : null;
4015
+ const defaultOpenSubMenu = activePath == null ? null : (_b = (_a = menuLinks.find((link) => {
4016
+ var _a2;
4017
+ return (_a2 = link.children) == null ? void 0 : _a2.some((child) => child.href.includes(activePath));
4018
+ })) == null ? void 0 : _a.label[activatedLanguage]) != null ? _b : null;
4018
4019
  setOpenSubMenu(defaultOpenSubMenu);
4019
4020
  }, [isOpen, activePath, menuLinks, activatedLanguage]);
4020
4021
  (0, import_react16.useEffect)(() => {
@@ -4095,7 +4096,7 @@ var Navigation = ({
4095
4096
  /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "pts-navigation-close-container ", id: "menu-close", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
4096
4097
  "button",
4097
4098
  {
4098
- className: "pts-navigation-close-button",
4099
+ className: "pts-navigation-close-button pts-secondary-button",
4099
4100
  onClick: () => handleMenuClick("close"),
4100
4101
  type: "button",
4101
4102
  children: [
@@ -4111,14 +4112,7 @@ var Navigation = ({
4111
4112
  lang: activatedLanguage,
4112
4113
  children: [
4113
4114
  /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "pts-navigation-button", children: [
4114
- /* @__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)(
4115
- LinkComponent,
4116
- {
4117
- onClick: () => handleMenuClick("link"),
4118
- href,
4119
- children: label[activatedLanguage]
4120
- }
4121
- ) }),
4115
+ /* @__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] }) }),
4122
4116
  children && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
4123
4117
  "button",
4124
4118
  {
@@ -4141,14 +4135,15 @@ var Navigation = ({
4141
4135
  className: "pts-sub-navigation-container",
4142
4136
  id: "sub-menu-" + index,
4143
4137
  role: "region",
4144
- 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)(
4145
- LinkComponent,
4138
+ 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)(
4139
+ "li",
4146
4140
  {
4147
- onClick: () => handleMenuClick("link"),
4148
- href: href2,
4149
- children: label2[activatedLanguage]
4150
- }
4151
- ) }, "nav-child-" + index2)) })
4141
+ className: "pts-sub-navigation-item",
4142
+ lang: activatedLanguage,
4143
+ children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(LinkComponent, { onClick: () => handleMenuClick("link"), href: href2, children: label2[activatedLanguage] })
4144
+ },
4145
+ "nav-child-" + index2
4146
+ )) })
4152
4147
  }
4153
4148
  )
4154
4149
  ]
@@ -4215,7 +4210,7 @@ var import_jsx_runtime33 = require("react/jsx-runtime");
4215
4210
  var NavigationHeader = ({
4216
4211
  headline = void 0,
4217
4212
  homelink = "",
4218
- //??
4213
+ //??
4219
4214
  activatedLanguage = "sv",
4220
4215
  useLanguage = false,
4221
4216
  useNavigationMenu = true,
@@ -4289,14 +4284,23 @@ var NavigationHeader = ({
4289
4284
  ) }),
4290
4285
  /* @__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 }) }),
4291
4286
  /* @__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: [
4292
- 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: [
4293
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { "aria-hidden": "true", className: "pts-navigation-header-icons", children: getSearchIcon() }),
4294
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "pts-navigation-header-button-label", children: getSearchLabel() })
4295
- ] }) }),
4287
+ useSearch && !isMenuOpen && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_jsx_runtime33.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
4288
+ "button",
4289
+ {
4290
+ type: "button",
4291
+ className: "pts-secondary-button",
4292
+ onClick: handleSearchClick,
4293
+ children: [
4294
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { "aria-hidden": "true", className: "pts-navigation-header-icons", children: getSearchIcon() }),
4295
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "pts-navigation-header-button-label", children: getSearchLabel() })
4296
+ ]
4297
+ }
4298
+ ) }),
4296
4299
  useLanguage && !isMenuOpen && /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
4297
4300
  "button",
4298
4301
  {
4299
4302
  type: "button",
4303
+ className: "pts-secondary-button",
4300
4304
  lang: activatedLanguage === "en" ? "en" : "sv",
4301
4305
  onClick: handleLanguageClick,
4302
4306
  "aria-label": activatedLanguage === "sv" ? "Change language to English" : "\xC4ndra spr\xE5k till svenska",
@@ -4310,12 +4314,20 @@ var NavigationHeader = ({
4310
4314
  "button",
4311
4315
  {
4312
4316
  type: "button",
4317
+ className: "pts-secondary-button",
4313
4318
  onClick: handleMenuClick,
4314
4319
  "aria-expanded": isMenuOpen,
4315
4320
  "aria-controls": "main-navigation",
4316
4321
  ref: menuButtonFocusRef,
4317
4322
  children: [
4318
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { "aria-hidden": "true", className: isMenuOpen ? "pts-close-icon" : "pts-open-icon", children: getMenuIcon() }),
4323
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
4324
+ "span",
4325
+ {
4326
+ "aria-hidden": "true",
4327
+ className: isMenuOpen ? "pts-close-icon" : "pts-open-icon",
4328
+ children: getMenuIcon()
4329
+ }
4330
+ ),
4319
4331
  /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "pts-navigation-header-button-label", children: getMenuLabel() })
4320
4332
  ]
4321
4333
  }