optimized-react-component-library-xyz123 0.1.66 → 0.1.68

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.mjs CHANGED
@@ -135,7 +135,7 @@ var PrevieMultipleCheckboxes = ({
135
135
  const previewId = `preview-${question.id}`;
136
136
  return /* @__PURE__ */ jsxs2(Fragment2, { children: [
137
137
  /* @__PURE__ */ jsx2("dt", { id: `question-${previewId}`, children: (_a = question.previewLabel) != null ? _a : question.questionLabel }),
138
- question.answer ? /* @__PURE__ */ jsx2(Fragment2, { children: question.options && question.options.length === 1 ? /* @__PURE__ */ jsx2("dd", { children: question.options[0].label }) : /* @__PURE__ */ jsx2("ul", { className: "preview-answer-list", children: (_b = question.options) == null ? void 0 : _b.filter((option) => {
138
+ question.answer ? question.options && question.options.length === 1 ? /* @__PURE__ */ jsx2("dd", { children: question.options[0].label }) : /* @__PURE__ */ jsx2("dd", { children: /* @__PURE__ */ jsx2("ul", { className: "preview-answer-list", children: (_b = question.options) == null ? void 0 : _b.filter((option) => {
139
139
  var _a2;
140
140
  return (_a2 = question.answer) == null ? void 0 : _a2.includes(option.label);
141
141
  }).map((option, index) => /* @__PURE__ */ jsx2("li", { children: option.label }, index)) }) }) : /* @__PURE__ */ jsx2("dd", { className: "no-answer-preview-page", children: activatedLanguage === "en" ? "No Answer" : "Inget svar" }),
@@ -756,19 +756,15 @@ var DropFiles = ({ FilesSelected, DropFilesText = "Dra och sl\xE4pp dina filer h
756
756
  var DropFilesStandard_default = DropFiles;
757
757
 
758
758
  // src/NewInputComponentStandard/AddFilesStandard/ExploreFilesStandard.tsx
759
- import React3, { useEffect as useEffect3, useRef as useRef2 } from "react";
759
+ import { useRef as useRef2 } from "react";
760
760
  import clsx2 from "clsx";
761
761
 
762
762
  // src/NewInputComponentStandard/AddFilesStandard/ScreenReaderErrors.tsx
763
763
  import React2 from "react";
764
- import { Fragment as Fragment7, jsx as jsx7, jsxs as jsxs7 } from "react/jsx-runtime";
764
+ import { Fragment as Fragment7, jsx as jsx7 } from "react/jsx-runtime";
765
765
  var ScreenReaderErrors = ({
766
766
  errorMessageAddingFile,
767
- activatedLanguage,
768
- removeUploadErrors,
769
- putFocusOnButton = () => {
770
- alert("no function");
771
- }
767
+ activatedLanguage
772
768
  }) => {
773
769
  const [activateErrorMessagesForScreenReader, setActivateErrorMessagesForScreenReader] = React2.useState(false);
774
770
  const [errorMessagesForScreenReader, setErrorMessagesForScreenReader] = React2.useState("");
@@ -784,57 +780,14 @@ var ScreenReaderErrors = ({
784
780
  setActivateErrorMessagesForScreenReader(true);
785
781
  }
786
782
  }, [errorMessageAddingFile]);
787
- const handleRemoveErrors = () => {
788
- const errorMessages = activatedLanguage === "sv" ? `Felmeddelande raderat.` : `Error message deleted.`;
789
- setErrorMessagesForScreenReader(errorMessages);
790
- removeUploadErrors();
791
- putFocusOnButton();
792
- setTimeout(() => {
793
- setActivateErrorMessagesForScreenReader(false);
794
- }, 1e3);
795
- };
796
- return /* @__PURE__ */ jsxs7(Fragment7, { children: [
797
- errorMessageAddingFile.length > 0 && /* @__PURE__ */ jsx7(
798
- "button",
799
- {
800
- onClick: handleRemoveErrors,
801
- style: {
802
- marginRight: "8px",
803
- backgroundColor: "transparent",
804
- border: "none",
805
- textDecoration: "underline",
806
- cursor: "pointer"
807
- },
808
- className: "errorMessageAddingFile",
809
- "aria-label": activatedLanguage === "sv" ? "Ta bort felmeddelande f\xF6r uppladdning av filer" : "Remove error message for file uploads",
810
- children: "Ta bort fel! / Remove errors!"
811
- }
812
- ),
813
- activateErrorMessagesForScreenReader && /* @__PURE__ */ jsx7(
814
- "p",
815
- {
816
- role: "alert",
817
- style: {
818
- position: "absolute",
819
- left: "-9999px",
820
- top: "auto",
821
- width: "1px",
822
- height: "1px",
823
- overflow: "hidden"
824
- },
825
- "aria-atomic": "true",
826
- children: errorMessagesForScreenReader
827
- }
828
- )
829
- ] });
783
+ return /* @__PURE__ */ jsx7(Fragment7, { children: activateErrorMessagesForScreenReader && /* @__PURE__ */ jsx7("p", { role: "alert", className: "sr-only", "aria-atomic": "true", children: errorMessagesForScreenReader }) });
830
784
  };
831
785
  var ScreenReaderErrors_default = ScreenReaderErrors;
832
786
 
833
787
  // src/NewInputComponentStandard/AddFilesStandard/ExploreFilesStandard.tsx
834
- import { Fragment as Fragment8, jsx as jsx8, jsxs as jsxs8 } from "react/jsx-runtime";
788
+ import { Fragment as Fragment8, jsx as jsx8, jsxs as jsxs7 } from "react/jsx-runtime";
835
789
  var ExploreFiles = ({
836
790
  FilesSelected,
837
- //UploadButtonText = 'upload files',
838
791
  numberOfFiles,
839
792
  allowedNumberOfFiles,
840
793
  activatedLanguage,
@@ -844,28 +797,10 @@ var ExploreFiles = ({
844
797
  errorId,
845
798
  questionObject,
846
799
  showErrors,
847
- errorMessageAddingFile,
848
- removeUploadErrors = () => {
849
- alert("finns ingen funktion");
850
- }
800
+ errorMessageAddingFile
851
801
  }) => {
852
802
  const fileInputRef = useRef2(null);
853
803
  const buttonInputRef = useRef2(null);
854
- const [showErrorMessagesForScreenReader, setShowErrorMessagesForScreenReader] = React3.useState(false);
855
- const [errorMessagesForScreenReader, setErrorMessagesForScreenReader] = React3.useState("");
856
- useEffect3(() => {
857
- const button = buttonInputRef.current;
858
- if (!button) return;
859
- const handleFocus = () => {
860
- setShowErrorMessagesForScreenReader(!showErrorMessagesForScreenReader);
861
- console.log("FOCUS!!");
862
- console.log("Error messages for screen reader: " + errorMessageAddingFile);
863
- };
864
- button.addEventListener("focus", handleFocus);
865
- return () => {
866
- button.removeEventListener("focus", handleFocus);
867
- };
868
- }, []);
869
804
  const handleFiles = (event) => {
870
805
  const files = Array.from(event.target.files || []);
871
806
  FilesSelected(files);
@@ -875,32 +810,17 @@ var ExploreFiles = ({
875
810
  var _a;
876
811
  (_a = fileInputRef.current) == null ? void 0 : _a.click();
877
812
  };
878
- const handleRemoveErrors = () => {
879
- const errorMessages = activatedLanguage === "sv" ? `Felmeddelande raderat.` : `Error message deleted.`;
880
- setErrorMessagesForScreenReader(errorMessages);
881
- removeUploadErrors();
882
- putFocusOnButton();
883
- setTimeout(() => {
884
- setShowErrorMessagesForScreenReader(false);
885
- }, 1e3);
886
- };
887
- const putFocusOnButton = () => {
888
- var _a;
889
- (_a = buttonInputRef.current) == null ? void 0 : _a.focus();
890
- };
891
813
  let addFilesInfoText = numberOfFiles > 0 ? activatedLanguage === "sv" ? `${numberOfFiles} filer valda (max ${allowedNumberOfFiles})` : `${numberOfFiles} files chosed (max ${allowedNumberOfFiles})` : activatedLanguage === "sv" ? "Ingen fil vald" : "No file chosen";
892
- return /* @__PURE__ */ jsx8(Fragment8, { children: /* @__PURE__ */ jsxs8("div", { className: "inputContainer", children: [
893
- /* @__PURE__ */ jsxs8(
894
- "label",
814
+ return /* @__PURE__ */ jsx8(Fragment8, { children: /* @__PURE__ */ jsxs7("div", { className: "inputContainer", children: [
815
+ /* @__PURE__ */ jsxs7(
816
+ "div",
895
817
  {
896
- tabIndex: -1,
897
818
  className: clsx2(
898
819
  ["form-control"],
899
820
  "filePickLabel",
900
821
  showErrors && questionObject.error ? ["form-control error"] : ""
901
822
  ),
902
823
  id: labelId,
903
- htmlFor: inputId,
904
824
  children: [
905
825
  /* @__PURE__ */ jsx8(
906
826
  "button",
@@ -911,34 +831,32 @@ var ExploreFiles = ({
911
831
  "filePickButton",
912
832
  showErrors && questionObject.error ? "filePickButton error" : ""
913
833
  ),
914
- "aria-describedby": `${aboutId} ${showErrors && questionObject.error ? errorId : ""}`.trim(),
915
- "aria-label": `${activatedLanguage === "sv" ? "V\xE4lj fil" : "Choose file"} ${addFilesInfoText}`,
834
+ "aria-describedby": `${aboutId} ${questionObject.hasValidationError ? errorId : ""}`.trim(),
835
+ "aria-label": `${activatedLanguage === "sv" ? "Knap aria-label V\xE4lj fil" : "Choose file"} ${addFilesInfoText}`,
916
836
  children: activatedLanguage === "sv" ? "V\xE4lj fil" : "Choose file"
917
837
  }
918
838
  ),
919
- /* @__PURE__ */ jsx8(
920
- "input",
921
- {
922
- ref: fileInputRef,
923
- type: "file",
924
- className: "invisible",
925
- multiple: true,
926
- onChange: handleFiles,
927
- tabIndex: -1,
928
- id: inputId
929
- }
930
- ),
931
- /* @__PURE__ */ jsx8("span", { className: "filePickText", children: addFilesInfoText })
839
+ /* @__PURE__ */ jsx8("span", { "aria-hidden": true, className: "filePickText", children: addFilesInfoText + "span aria-hidden=true" })
932
840
  ]
933
841
  }
934
842
  ),
843
+ /* @__PURE__ */ jsx8(
844
+ "input",
845
+ {
846
+ ref: fileInputRef,
847
+ type: "file",
848
+ className: "invisible",
849
+ multiple: true,
850
+ onChange: handleFiles,
851
+ tabIndex: -1,
852
+ id: inputId
853
+ }
854
+ ),
935
855
  /* @__PURE__ */ jsx8(
936
856
  ScreenReaderErrors_default,
937
857
  {
938
858
  errorMessageAddingFile,
939
- removeUploadErrors,
940
- activatedLanguage,
941
- putFocusOnButton
859
+ activatedLanguage
942
860
  }
943
861
  )
944
862
  ] }) });
@@ -962,7 +880,7 @@ var IndicatorStandard_default = Indicator;
962
880
 
963
881
  // src/NewInputComponentStandard/AddFilesStandard/SelectedFilesStandard.tsx
964
882
  import clsx4 from "clsx";
965
- import { Fragment as Fragment10, jsx as jsx10, jsxs as jsxs9 } from "react/jsx-runtime";
883
+ import { Fragment as Fragment10, jsx as jsx10, jsxs as jsxs8 } from "react/jsx-runtime";
966
884
  var SelectedFiles = ({
967
885
  questionObject,
968
886
  isTouched,
@@ -972,11 +890,12 @@ var SelectedFiles = ({
972
890
  errorMessageAddingFile,
973
891
  activatedLanguage,
974
892
  numberOfFiles,
975
- setNumberOfFiles
893
+ setNumberOfFiles,
894
+ removeUploadErrors
976
895
  }) => {
977
896
  const theDiv = useRef3(null);
978
897
  const remove = (file) => {
979
- let newFiles = questionObject.Files.filter((f) => f !== file);
898
+ let newFiles = questionObject.files.filter((f) => f !== file);
980
899
  const newCountOfFiles = newFiles.length;
981
900
  setNumberOfFiles(newCountOfFiles);
982
901
  const e = { target: { value: `${newCountOfFiles} files`, files: newFiles } };
@@ -1001,66 +920,62 @@ var SelectedFiles = ({
1001
920
  return windowWidth2;
1002
921
  };
1003
922
  const windowWidth = useWindowWidth();
1004
- return /* @__PURE__ */ jsxs9(Fragment10, { children: [
1005
- /* @__PURE__ */ jsx10("div", { children: errorMessageAddingFile.length > 0 && /* @__PURE__ */ jsxs9("ul", { className: "fileListUnorderedList", "aria-label": "Valideringsfelmeddelanden f\xF6r uppladdade filer", children: [
1006
- " ",
1007
- errorMessageAddingFile.map((errorObj, index) => {
1008
- const errorFileName = errorObj.FileName;
1009
- let mobileFirstFileName = errorObj.FileName.split(".").shift();
1010
- mobileFirstFileName = mobileFirstFileName.length > 8 ? mobileFirstFileName.substring(0, 8) + ".." : mobileFirstFileName;
1011
- const fileType = errorObj.FileName.split(".").pop();
1012
- mobileFirstFileName = mobileFirstFileName + "." + fileType;
1013
- return /* @__PURE__ */ jsx10("li", { children: /* @__PURE__ */ jsx10(React5.Fragment, { children: /* @__PURE__ */ jsx10("div", { children: /* @__PURE__ */ jsx10("div", { className: "fileInListContainer", role: "alert", children: /* @__PURE__ */ jsxs9("div", { className: "fileInList", children: [
1014
- /* @__PURE__ */ jsxs9(Row, { children: [
1015
- /* @__PURE__ */ jsx10(Col, { style: { maxWidth: "30px" }, children: /* @__PURE__ */ jsx10(
1016
- "span",
1017
- {
1018
- "aria-hidden": "true",
1019
- className: clsx4("uploadedDot", "uploadFailed"),
1020
- children: "!"
1021
- }
1022
- ) }),
1023
- /* @__PURE__ */ jsx10(Col, { children: windowWidth < 768 ? /* @__PURE__ */ jsx10("span", { className: "mobileFirstFileName", children: mobileFirstFileName }) : /* @__PURE__ */ jsx10("span", { className: "desktopFileName", children: errorObj.FileName }) }),
1024
- /* @__PURE__ */ jsx10(Col, { className: "lastCol", children: /* @__PURE__ */ jsx10(
1025
- "button",
923
+ return /* @__PURE__ */ jsxs8(Fragment10, { children: [
924
+ /* @__PURE__ */ jsxs8("div", { children: [
925
+ errorMessageAddingFile.length > 0 && /* @__PURE__ */ jsxs8("ul", { "aria-hidden": true, className: "fileListUnorderedList", children: [
926
+ " ",
927
+ errorMessageAddingFile.map((errorObj, index) => {
928
+ const errorFileName = errorObj.FileName;
929
+ let mobileFirstFileName = errorObj.FileName.split(".").shift();
930
+ mobileFirstFileName = mobileFirstFileName.length > 8 ? mobileFirstFileName.substring(0, 8) + ".." : mobileFirstFileName;
931
+ const fileType = errorObj.FileName.split(".").pop();
932
+ mobileFirstFileName = mobileFirstFileName + "." + fileType;
933
+ return /* @__PURE__ */ jsx10("li", { children: /* @__PURE__ */ jsx10(React5.Fragment, { children: /* @__PURE__ */ jsx10("div", { children: /* @__PURE__ */ jsx10("div", { className: "fileInListContainer", children: /* @__PURE__ */ jsxs8("div", { className: "fileInList", children: [
934
+ /* @__PURE__ */ jsxs8(Row, { children: [
935
+ /* @__PURE__ */ jsx10(Col, { style: { maxWidth: "30px" }, children: /* @__PURE__ */ jsx10(
936
+ "span",
937
+ {
938
+ "aria-hidden": "true",
939
+ className: clsx4("uploadedDot", "uploadFailed"),
940
+ children: "!"
941
+ }
942
+ ) }),
943
+ /* @__PURE__ */ jsx10(Col, { children: windowWidth < 768 ? /* @__PURE__ */ jsx10("span", { className: "mobileFirstFileName", children: mobileFirstFileName }) : /* @__PURE__ */ jsx10("span", { className: "desktopFileName", children: errorObj.FileName }) }),
944
+ /* @__PURE__ */ jsx10(Col, { className: "lastCol" })
945
+ ] }),
946
+ /* @__PURE__ */ jsx10(Row, { children: /* @__PURE__ */ jsx10(
947
+ Col,
1026
948
  {
1027
- className: "selectedFilesLinkButton",
1028
- onClick: () => {
1029
- removeError(index);
949
+ style: {
950
+ width: "100%",
951
+ color: "#8e0039"
1030
952
  },
1031
- "aria-label": activatedLanguage === "sv" ? `St\xE4ng felmeddelandet f\xF6r ${errorFileName}` : `Close error message for ${errorFileName}`,
1032
- children: activatedLanguage === "sv" ? "St\xE4ng" : "Close"
953
+ className: "errorMessageAddingFile",
954
+ ...activatedLanguage === "sv" ? {
955
+ "aria-label": `${errorFileName} ${errorObj.svMessage}`
956
+ } : {
957
+ "aria-label": `${errorFileName} ${errorObj.enMessage}`
958
+ },
959
+ children: activatedLanguage === "sv" ? errorObj.svMessage : errorObj.enMessage
1033
960
  }
1034
- ) })
1035
- ] }),
1036
- /* @__PURE__ */ jsx10(Row, { children: /* @__PURE__ */ jsx10(
1037
- Col,
1038
- {
1039
- style: {
1040
- width: "100%",
1041
- color: "#8e0039"
1042
- },
1043
- className: "errorMessageAddingFile",
1044
- ...activatedLanguage === "sv" ? {
1045
- "aria-label": `${errorFileName} ${errorObj.svMessage}`
1046
- } : {
1047
- "aria-label": `${errorFileName} ${errorObj.enMessage}`
1048
- },
1049
- children: activatedLanguage === "sv" ? errorObj.svMessage : errorObj.enMessage
1050
- }
1051
- ) }),
1052
- /* @__PURE__ */ jsx10(Row, { style: { marginTop: "12px", marginBottom: "12px" }, children: /* @__PURE__ */ jsx10(Col, { className: "makeSpace" }) })
1053
- ] }, index) }) }) }, `error-${errorObj.FileName}-${index}`) });
1054
- })
1055
- ] }) }),
1056
- questionObject.Files.length > 0 && /* @__PURE__ */ jsx10("ul", { className: "fileListUnorderedList", "aria-label": "Uppladdade filer", children: questionObject.Files.map((file, index) => {
961
+ ) }),
962
+ /* @__PURE__ */ jsx10(Row, { style: { marginTop: "12px", marginBottom: "12px" }, children: /* @__PURE__ */ jsx10(Col, { className: "makeSpace" }) })
963
+ ] }, index) }) }) }, `error-${errorObj.FileName}-${index}`) });
964
+ })
965
+ ] }),
966
+ errorMessageAddingFile.length > 0 && /* @__PURE__ */ jsxs8("button", { onClick: removeUploadErrors, className: "errorMessageAddingFile", children: [
967
+ /* @__PURE__ */ jsx10("span", { "aria-hidden": true, className: "errorDot", children: "X" }),
968
+ /* @__PURE__ */ jsx10("span", { className: "sr-only", children: "Ta bort felmeddelande f\xF6r uppladdning av filer" })
969
+ ] })
970
+ ] }),
971
+ questionObject.files.length > 0 && /* @__PURE__ */ jsx10("ul", { className: "fileListUnorderedList", "aria-label": "Uppladdade filer", children: questionObject.files.map((file, index) => {
1057
972
  const indicatorfileName = file.FileName;
1058
973
  let mobileFirstFileName = file.FileName.split(".").shift();
1059
974
  mobileFirstFileName = mobileFirstFileName.length > 8 ? mobileFirstFileName.substring(0, 8) + ".." : mobileFirstFileName;
1060
975
  const fileType = file.FileName.split(".").pop();
1061
976
  mobileFirstFileName = mobileFirstFileName + "." + fileType;
1062
- return /* @__PURE__ */ jsx10("li", { children: /* @__PURE__ */ jsx10(React5.Fragment, { children: /* @__PURE__ */ jsx10("div", { children: /* @__PURE__ */ jsx10("div", { className: "fileInListContainer", children: /* @__PURE__ */ jsxs9("div", { className: "fileInList", children: [
1063
- /* @__PURE__ */ jsxs9(Row, { children: [
977
+ return /* @__PURE__ */ jsx10("li", { children: /* @__PURE__ */ jsx10(React5.Fragment, { children: /* @__PURE__ */ jsx10("div", { children: /* @__PURE__ */ jsx10("div", { className: "fileInListContainer", children: /* @__PURE__ */ jsxs8("div", { className: "fileInList", children: [
978
+ /* @__PURE__ */ jsxs8(Row, { children: [
1064
979
  /* @__PURE__ */ jsx10(Col, { style: { maxWidth: "30px" }, children: /* @__PURE__ */ jsx10("span", { "aria-hidden": "true", className: "uploadedDot", children: /* @__PURE__ */ jsx10(
1065
980
  "svg",
1066
981
  {
@@ -1080,17 +995,16 @@ var SelectedFiles = ({
1080
995
  )
1081
996
  }
1082
997
  ) }) }),
1083
- /* @__PURE__ */ jsx10(Col, { children: windowWidth < 768 ? /* @__PURE__ */ jsxs9("span", { className: "mobileFirstFileName", children: [
998
+ /* @__PURE__ */ jsx10(Col, { children: windowWidth < 768 ? /* @__PURE__ */ jsxs8("span", { className: "mobileFirstFileName", children: [
1084
999
  mobileFirstFileName,
1085
1000
  " (",
1086
1001
  Math.ceil(file.FileSize / (1024 * 1024)),
1087
- " MB)"
1088
- ] }) : /* @__PURE__ */ jsxs9("span", { className: "desktopFileName", children: [
1002
+ " ",
1003
+ "MB)"
1004
+ ] }) : /* @__PURE__ */ jsxs8("span", { className: "desktopFileName", children: [
1089
1005
  file.FileName,
1090
1006
  " (",
1091
- file.FileSize < 1024 * 1024 ? `${Math.round(file.FileSize / 1024)} kB` : `${(file.FileSize / (1024 * 1024)).toFixed(
1092
- 1
1093
- )} MB`,
1007
+ file.FileSize < 1024 * 1024 ? `${Math.round(file.FileSize / 1024)} kB` : `${(file.FileSize / (1024 * 1024)).toFixed(1)} MB`,
1094
1008
  ")"
1095
1009
  ] }) }),
1096
1010
  /* @__PURE__ */ jsx10(Col, { className: "lastCol", children: /* @__PURE__ */ jsx10(
@@ -1113,7 +1027,7 @@ var SelectedFiles = ({
1113
1027
  var SelectedFilesStandard_default = SelectedFiles;
1114
1028
 
1115
1029
  // src/NewInputComponentStandard/AddFilesStandard/AddFilesStandard.tsx
1116
- import { Fragment as Fragment11, jsx as jsx11, jsxs as jsxs10 } from "react/jsx-runtime";
1030
+ import { Fragment as Fragment11, jsx as jsx11, jsxs as jsxs9 } from "react/jsx-runtime";
1117
1031
  var AddFiles = ({
1118
1032
  questionObject,
1119
1033
  isTouched = (e, questionObject2) => {
@@ -1282,10 +1196,9 @@ var AddFiles = ({
1282
1196
  const handleRemoveErrors = () => {
1283
1197
  setErrorMessageAddingFile([]);
1284
1198
  };
1285
- return /* @__PURE__ */ jsxs10(Fragment11, { children: [
1286
- !showPreview && visible && /* @__PURE__ */ jsx11("div", { children: /* @__PURE__ */ jsxs10("div", { role: "group", children: [
1287
- !questionObject.hideQuestion && questionObject.questionLabel,
1288
- questionObject.aboutText && /* @__PURE__ */ jsxs10(
1199
+ return /* @__PURE__ */ jsxs9(Fragment11, { children: [
1200
+ !showPreview && visible && /* @__PURE__ */ jsx11("div", { children: /* @__PURE__ */ jsxs9("div", { role: "group", children: [
1201
+ questionObject.aboutText && /* @__PURE__ */ jsxs9(
1289
1202
  "p",
1290
1203
  {
1291
1204
  id: aboutId,
@@ -1295,23 +1208,17 @@ var AddFiles = ({
1295
1208
  ),
1296
1209
  children: [
1297
1210
  questionObject.aboutText,
1298
- questionObject.isQuestionMandatory && /* @__PURE__ */ jsxs10("span", { className: "mandatoryAsterisk", "aria-hidden": "true", children: [
1211
+ questionObject.isQuestionMandatory && /* @__PURE__ */ jsxs9("span", { className: "mandatoryAsterisk", "aria-hidden": "true", children: [
1299
1212
  " ",
1300
1213
  "*"
1301
1214
  ] })
1302
1215
  ]
1303
1216
  }
1304
1217
  ),
1305
- questionObject.hasValidationError && /* @__PURE__ */ jsxs10("div", { className: "error addfileserror", id: errorId, children: [
1218
+ questionObject.hasValidationError && /* @__PURE__ */ jsxs9("div", { className: "error addfileserror", id: errorId, children: [
1306
1219
  /* @__PURE__ */ jsx11("span", { "aria-hidden": true, className: "errorDot", children: "!" }),
1307
- /* @__PURE__ */ jsx11(
1308
- "span",
1309
- {
1310
- "aria-label": `Felmeddelande. ${questionObject.validationDefaultMessesege}`,
1311
- className: "errorText",
1312
- children: questionObject.validationDefaultMessesege
1313
- }
1314
- )
1220
+ /* @__PURE__ */ jsx11("span", { className: "sr-only", children: "Valideringsfel" }),
1221
+ /* @__PURE__ */ jsx11("span", { className: "errorText", children: questionObject.validationDefaultMessesege })
1315
1222
  ] }),
1316
1223
  /* @__PURE__ */ jsx11(
1317
1224
  ExploreFilesStandard_default,
@@ -1340,7 +1247,8 @@ var AddFiles = ({
1340
1247
  errorMessageAddingFile,
1341
1248
  activatedLanguage,
1342
1249
  numberOfFiles,
1343
- setNumberOfFiles
1250
+ setNumberOfFiles,
1251
+ removeUploadErrors: handleRemoveErrors
1344
1252
  }
1345
1253
  )
1346
1254
  ] }) }),
@@ -1353,7 +1261,7 @@ var PreviewAddFiles = ({
1353
1261
  activatedLanguage
1354
1262
  }) => {
1355
1263
  const previewId = `preview-${questionObject.Id}`;
1356
- return /* @__PURE__ */ jsxs10("div", { className: "pts-question-preview pts-addFiles-preview", id: `question-${previewId}`, children: [
1264
+ return /* @__PURE__ */ jsxs9("div", { className: "pts-question-preview pts-addFiles-preview", id: `question-${previewId}`, children: [
1357
1265
  /* @__PURE__ */ jsx11("h3", { id: previewId, children: questionObject.Question }),
1358
1266
  /* @__PURE__ */ jsx11("div", { className: "pts-root-answer", children: questionObject.Files && questionObject.Files.length > 0 ? /* @__PURE__ */ jsx11("ul", { "aria-labelledby": previewId, children: questionObject.Files.map((file, index) => {
1359
1267
  return /* @__PURE__ */ jsx11("li", { children: file.FileName }, `file-${index}-${file.FileName}`);
@@ -1579,7 +1487,7 @@ function groupQuestionsByStepCategoryGroup(questions, steps, validationErrorsLis
1579
1487
  var GroupQuestionsByStepCategoryGroup_default = groupQuestionsByStepCategoryGroup;
1580
1488
 
1581
1489
  // src/NewRenderFormComponentStandard/RenderQuestion/RenderQuestion.tsx
1582
- import { Fragment as Fragment12, jsx as jsx12, jsxs as jsxs11 } from "react/jsx-runtime";
1490
+ import { Fragment as Fragment12, jsx as jsx12, jsxs as jsxs10 } from "react/jsx-runtime";
1583
1491
  var RenderQuestion = ({
1584
1492
  question,
1585
1493
  isTouched,
@@ -1587,7 +1495,7 @@ var RenderQuestion = ({
1587
1495
  showPreview = false,
1588
1496
  hideValidationMessage
1589
1497
  }) => {
1590
- return /* @__PURE__ */ jsxs11(Fragment12, { children: [
1498
+ return /* @__PURE__ */ jsxs10(Fragment12, { children: [
1591
1499
  question.questionType === "Radio" && /* @__PURE__ */ jsx12(
1592
1500
  RadioMultipleStandard_default,
1593
1501
  {
@@ -1631,7 +1539,7 @@ var RenderQuestion_default = RenderQuestion;
1631
1539
 
1632
1540
  // src/NewRenderFormComponentStandard/RenderQuestionGroup/RenderQuestionGroup.tsx
1633
1541
  import React7 from "react";
1634
- import { Fragment as Fragment13, jsx as jsx13, jsxs as jsxs12 } from "react/jsx-runtime";
1542
+ import { Fragment as Fragment13, jsx as jsx13, jsxs as jsxs11 } from "react/jsx-runtime";
1635
1543
  var RenderQuestionGroup = ({
1636
1544
  questionArray,
1637
1545
  wrapper,
@@ -1663,7 +1571,7 @@ var RenderQuestionGroup = ({
1663
1571
  }) });
1664
1572
  switch (wrapper) {
1665
1573
  case "fieldset":
1666
- return /* @__PURE__ */ jsxs12(
1574
+ return /* @__PURE__ */ jsxs11(
1667
1575
  "fieldset",
1668
1576
  {
1669
1577
  className: "pts-root-question-group-fieldset",
@@ -1672,14 +1580,14 @@ var RenderQuestionGroup = ({
1672
1580
  "aria-errormessage": questionArray[0].hasValidationError ? `${questionArray[0].id}-error` : void 0,
1673
1581
  "aria-describedby": questionArray[0].hasValidationError ? `${questionArray[0].id}-error` : void 0,
1674
1582
  children: [
1675
- legend && /* @__PURE__ */ jsxs12("legend", { children: [
1583
+ legend && /* @__PURE__ */ jsxs11("legend", { children: [
1676
1584
  /* @__PURE__ */ jsx13("span", { children: legend }),
1677
- questionArray[0].hasValidationError && /* @__PURE__ */ jsxs12("span", { className: "sr-only", children: [
1585
+ questionArray[0].hasValidationError && /* @__PURE__ */ jsxs11("span", { className: "sr-only", children: [
1678
1586
  "Valideringsfel. ",
1679
1587
  questionArray[0].validationDefaultMessesege
1680
1588
  ] })
1681
1589
  ] }),
1682
- questionArray[0].hasValidationError && /* @__PURE__ */ jsxs12("div", { className: "pts-root-error", id: questionArray[0].id + "-error", children: [
1590
+ questionArray[0].hasValidationError && /* @__PURE__ */ jsxs11("div", { className: "pts-root-error", id: questionArray[0].id + "-error", children: [
1683
1591
  /* @__PURE__ */ jsx13("span", { "aria-label": "Valideringsfel", className: "errorDot", children: "!" }),
1684
1592
  /* @__PURE__ */ jsx13("span", { className: "errorText", children: questionArray[0].validationDefaultMessesege })
1685
1593
  ] }),
@@ -1781,13 +1689,13 @@ var ILanguageSupportinitialState = {
1781
1689
  };
1782
1690
 
1783
1691
  // src/NewTextComponentStandard/EditPreviewLinkStandard/EditPreviewLinkStandard.tsx
1784
- import { jsx as jsx14, jsxs as jsxs13 } from "react/jsx-runtime";
1692
+ import { jsx as jsx14, jsxs as jsxs12 } from "react/jsx-runtime";
1785
1693
  var EditPreviewLink = ({
1786
1694
  step,
1787
1695
  changeStepHandler,
1788
1696
  activatedLanguage = "sv"
1789
1697
  }) => {
1790
- return /* @__PURE__ */ jsx14("div", { className: "pts-editPreviewLink-container", children: /* @__PURE__ */ jsxs13(
1698
+ return /* @__PURE__ */ jsx14("div", { className: "pts-editPreviewLink-container", children: /* @__PURE__ */ jsxs12(
1791
1699
  "a",
1792
1700
  {
1793
1701
  href: "#",
@@ -1825,10 +1733,10 @@ var EditPreviewLink = ({
1825
1733
  var EditPreviewLinkStandard_default = EditPreviewLink;
1826
1734
 
1827
1735
  // src/NewTextComponentStandard/FooterStandard/FooterStandard.tsx
1828
- import { jsx as jsx15, jsxs as jsxs14 } from "react/jsx-runtime";
1736
+ import { jsx as jsx15, jsxs as jsxs13 } from "react/jsx-runtime";
1829
1737
  var Footer = ({ activatedLanguage = "sv" }) => {
1830
- return /* @__PURE__ */ jsxs14("footer", { className: "pts-footer-container", children: [
1831
- /* @__PURE__ */ jsxs14(
1738
+ return /* @__PURE__ */ jsxs13("footer", { className: "pts-footer-container", children: [
1739
+ /* @__PURE__ */ jsxs13(
1832
1740
  "svg",
1833
1741
  {
1834
1742
  role: "img",
@@ -1862,8 +1770,8 @@ var Footer = ({ activatedLanguage = "sv" }) => {
1862
1770
  {
1863
1771
  className: "pts-footer-linkList",
1864
1772
  "aria-label": activatedLanguage === "en" ? "Footer navigation" : "Sidfotsnavigering",
1865
- children: /* @__PURE__ */ jsxs14("ul", { children: [
1866
- /* @__PURE__ */ jsx15("li", { children: /* @__PURE__ */ jsxs14(
1773
+ children: /* @__PURE__ */ jsxs13("ul", { children: [
1774
+ /* @__PURE__ */ jsx15("li", { children: /* @__PURE__ */ jsxs13(
1867
1775
  "a",
1868
1776
  {
1869
1777
  href: activatedLanguage === "en" ? "https://pts.se/en/contact/" : "https://www.pts.se/kontakt/",
@@ -1875,7 +1783,7 @@ var Footer = ({ activatedLanguage = "sv" }) => {
1875
1783
  ]
1876
1784
  }
1877
1785
  ) }),
1878
- /* @__PURE__ */ jsx15("li", { children: /* @__PURE__ */ jsxs14(
1786
+ /* @__PURE__ */ jsx15("li", { children: /* @__PURE__ */ jsxs13(
1879
1787
  "a",
1880
1788
  {
1881
1789
  href: activatedLanguage === "en" ? "https://pts.se/en/gdpr" : "https://www.pts.se/gdpr/",
@@ -1887,7 +1795,7 @@ var Footer = ({ activatedLanguage = "sv" }) => {
1887
1795
  ]
1888
1796
  }
1889
1797
  ) }),
1890
- /* @__PURE__ */ jsx15("li", { children: /* @__PURE__ */ jsxs14(
1798
+ /* @__PURE__ */ jsx15("li", { children: /* @__PURE__ */ jsxs13(
1891
1799
  "a",
1892
1800
  {
1893
1801
  href: activatedLanguage === "en" ? "https://pts.se/en/accessibility-eservices" : "https://www.pts.se/tillganglighet-etjanster",
@@ -1899,7 +1807,7 @@ var Footer = ({ activatedLanguage = "sv" }) => {
1899
1807
  ]
1900
1808
  }
1901
1809
  ) }),
1902
- /* @__PURE__ */ jsx15("li", { children: /* @__PURE__ */ jsxs14(
1810
+ /* @__PURE__ */ jsx15("li", { children: /* @__PURE__ */ jsxs13(
1903
1811
  "a",
1904
1812
  {
1905
1813
  href: activatedLanguage === "en" ? "https://pts.se/en/cookies-eservices" : "https://www.pts.se/kakor-etjanster",
@@ -1919,7 +1827,7 @@ var Footer = ({ activatedLanguage = "sv" }) => {
1919
1827
  var FooterStandard_default = Footer;
1920
1828
 
1921
1829
  // src/NewTextComponentStandard/HeaderStandard/Icons.tsx
1922
- import { jsx as jsx16, jsxs as jsxs15 } from "react/jsx-runtime";
1830
+ import { jsx as jsx16, jsxs as jsxs14 } from "react/jsx-runtime";
1923
1831
  var LanguageIcon = () => /* @__PURE__ */ jsx16("svg", { width: "15", height: "15", viewBox: "0 0 21 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx16(
1924
1832
  "path",
1925
1833
  {
@@ -1927,7 +1835,7 @@ var LanguageIcon = () => /* @__PURE__ */ jsx16("svg", { width: "15", height: "15
1927
1835
  fill: "#6E3282"
1928
1836
  }
1929
1837
  ) });
1930
- var Logo_sv = () => /* @__PURE__ */ jsxs15("svg", { width: "168.8", height: "46.67", viewBox: "0 0 168.8 46.67", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
1838
+ var Logo_sv = () => /* @__PURE__ */ jsxs14("svg", { width: "168.8", height: "46.67", viewBox: "0 0 168.8 46.67", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
1931
1839
  /* @__PURE__ */ jsx16(
1932
1840
  "path",
1933
1841
  {
@@ -2073,7 +1981,7 @@ var Logo_sv = () => /* @__PURE__ */ jsxs15("svg", { width: "168.8", height: "46.
2073
1981
  ),
2074
1982
  /* @__PURE__ */ jsx16("path", { d: "M82.2223 18.3335V37.2224", stroke: "black", strokeWidth: "0.8", strokeMiterlimit: "10" })
2075
1983
  ] });
2076
- var Logo_en = () => /* @__PURE__ */ jsxs15("svg", { width: "189.0", height: "46.67", viewBox: "0 0 189 46.67", fill: "none", xmlns: "http://www.w3.org/2000/svg", role: "img", children: [
1984
+ var Logo_en = () => /* @__PURE__ */ jsxs14("svg", { width: "189.0", height: "46.67", viewBox: "0 0 189 46.67", fill: "none", xmlns: "http://www.w3.org/2000/svg", role: "img", children: [
2077
1985
  /* @__PURE__ */ jsx16(
2078
1986
  "path",
2079
1987
  {
@@ -2296,7 +2204,7 @@ var Logo_en = () => /* @__PURE__ */ jsxs15("svg", { width: "189.0", height: "46.
2296
2204
  ] });
2297
2205
 
2298
2206
  // src/NewTextComponentStandard/HeaderStandard/HeaderStandard.tsx
2299
- import { jsx as jsx17, jsxs as jsxs16 } from "react/jsx-runtime";
2207
+ import { jsx as jsx17, jsxs as jsxs15 } from "react/jsx-runtime";
2300
2208
  var Header = ({
2301
2209
  activatedLanguage = "sv",
2302
2210
  useLanguage = true,
@@ -2315,7 +2223,7 @@ var Header = ({
2315
2223
  if (activatedLanguage === "sv") return "English";
2316
2224
  else return "Svenska";
2317
2225
  };
2318
- return /* @__PURE__ */ jsxs16("header", { className: "pts-header-container", children: [
2226
+ return /* @__PURE__ */ jsxs15("header", { className: "pts-header-container", children: [
2319
2227
  /* @__PURE__ */ jsx17(
2320
2228
  "a",
2321
2229
  {
@@ -2326,7 +2234,7 @@ var Header = ({
2326
2234
  children: activatedLanguage === "en" ? /* @__PURE__ */ jsx17("span", { "aria-hidden": "true", children: /* @__PURE__ */ jsx17(Logo_en, {}) }) : /* @__PURE__ */ jsx17("span", { "aria-hidden": "true", children: /* @__PURE__ */ jsx17(Logo_sv, {}) })
2327
2235
  }
2328
2236
  ),
2329
- useLanguage && /* @__PURE__ */ jsxs16(
2237
+ useLanguage && /* @__PURE__ */ jsxs15(
2330
2238
  "button",
2331
2239
  {
2332
2240
  "aria-label": activatedLanguage === "en" ? "Change language to Svenska" : "\xC4ndra spr\xE5k till English",
@@ -2345,7 +2253,7 @@ var HeaderStandard_default = Header;
2345
2253
  // src/NewTextComponentStandard/InfoOnlyStandard/InfoOnlyStandard.tsx
2346
2254
  import { useEffect as useEffect6 } from "react";
2347
2255
  import DOMPurify4 from "dompurify";
2348
- import { Fragment as Fragment14, jsx as jsx18, jsxs as jsxs17 } from "react/jsx-runtime";
2256
+ import { Fragment as Fragment14, jsx as jsx18, jsxs as jsxs16 } from "react/jsx-runtime";
2349
2257
  var cleanText = (text) => DOMPurify4.sanitize(text, { ADD_ATTR: ["target", "class"] });
2350
2258
  var InfoOnly = ({
2351
2259
  questionObject,
@@ -2365,7 +2273,7 @@ var InfoOnly = ({
2365
2273
  const e = { target: { value: questionObject2.questionLabel + avoidBugInRedux } };
2366
2274
  isTouched(e, questionObject2);
2367
2275
  };
2368
- return /* @__PURE__ */ jsxs17(Fragment14, { children: [
2276
+ return /* @__PURE__ */ jsxs16(Fragment14, { children: [
2369
2277
  showConfigure && visible && /* @__PURE__ */ jsx18("div", { className: "pts-infoOnly-container", children: /* @__PURE__ */ jsx18("div", { className: "InfoOnlyText", tabIndex, children: questionObject.questionLabel && /* @__PURE__ */ jsx18(
2370
2278
  "p",
2371
2279
  {
@@ -2390,7 +2298,7 @@ var PreviewInfoOnly = ({ questionObject }) => {
2390
2298
  };
2391
2299
 
2392
2300
  // src/NewTextComponentStandard/ModalStandard/ModalStandard.tsx
2393
- import { jsx as jsx19, jsxs as jsxs18 } from "react/jsx-runtime";
2301
+ import { jsx as jsx19, jsxs as jsxs17 } from "react/jsx-runtime";
2394
2302
  var CONTENT = {
2395
2303
  en: {
2396
2304
  heading: "Please wait",
@@ -2404,8 +2312,8 @@ var CONTENT = {
2404
2312
  var Modal = ({ showModal: isOpen, activatedLanguage = "" }) => {
2405
2313
  const currentContent = activatedLanguage === "en" ? CONTENT.en : CONTENT.sv;
2406
2314
  if (!isOpen) return null;
2407
- return /* @__PURE__ */ jsxs18("div", { className: "pts-modal-overlay", children: [
2408
- /* @__PURE__ */ jsxs18("div", { "aria-hidden": true, className: "pts-modal-content", children: [
2315
+ return /* @__PURE__ */ jsxs17("div", { className: "pts-modal-overlay", children: [
2316
+ /* @__PURE__ */ jsxs17("div", { "aria-hidden": true, className: "pts-modal-content", children: [
2409
2317
  /* @__PURE__ */ jsx19("h1", { children: currentContent.heading }),
2410
2318
  /* @__PURE__ */ jsx19("p", { children: currentContent.message }),
2411
2319
  /* @__PURE__ */ jsx19("div", { className: "pts-spinner-border" })
@@ -2418,9 +2326,9 @@ var ModalStandard_default = Modal;
2418
2326
  // src/NewTextComponentStandard/TextHeadlineAndBodyStandard/TextHeadlineAndBodyStandard.tsx
2419
2327
  import { createElement } from "react";
2420
2328
  import DOMPurify5 from "dompurify";
2421
- import { jsx as jsx20, jsxs as jsxs19 } from "react/jsx-runtime";
2329
+ import { jsx as jsx20, jsxs as jsxs18 } from "react/jsx-runtime";
2422
2330
  var TextHeadlineAndBody = ({ data, headlineType = "h2" }) => {
2423
- return /* @__PURE__ */ jsxs19(
2331
+ return /* @__PURE__ */ jsxs18(
2424
2332
  "section",
2425
2333
  {
2426
2334
  className: "pts-textHeadlineAndBody-container",
@@ -2428,7 +2336,7 @@ var TextHeadlineAndBody = ({ data, headlineType = "h2" }) => {
2428
2336
  children: [
2429
2337
  data.headline && createElement(headlineType, { id: "textHeadlineAndBody-headline" }, data.headline),
2430
2338
  data.body && /* @__PURE__ */ jsx20("div", { dangerouslySetInnerHTML: { __html: DOMPurify5.sanitize(data.body) } }),
2431
- data.linksForMoreInfo && data.linksForMoreInfo.length > 1 && /* @__PURE__ */ jsx20("ul", { className: "pts-moreinfo-list", children: data.linksForMoreInfo.map((link, index) => /* @__PURE__ */ jsx20("li", { className: index > 0 ? "notFirstInList" : "", children: /* @__PURE__ */ jsxs19(
2339
+ data.linksForMoreInfo && data.linksForMoreInfo.length > 1 && /* @__PURE__ */ jsx20("ul", { className: "pts-moreinfo-list", children: data.linksForMoreInfo.map((link, index) => /* @__PURE__ */ jsx20("li", { className: index > 0 ? "notFirstInList" : "", children: /* @__PURE__ */ jsxs18(
2432
2340
  "a",
2433
2341
  {
2434
2342
  href: link.url,
@@ -2458,7 +2366,7 @@ var TextHeadlineAndBody = ({ data, headlineType = "h2" }) => {
2458
2366
  ]
2459
2367
  }
2460
2368
  ) }, `more-info-${index}`)) }),
2461
- data.linksForMoreInfo && data.linksForMoreInfo.length === 1 && /* @__PURE__ */ jsxs19(
2369
+ data.linksForMoreInfo && data.linksForMoreInfo.length === 1 && /* @__PURE__ */ jsxs18(
2462
2370
  "a",
2463
2371
  {
2464
2372
  href: data.linksForMoreInfo[0].url,
@@ -2550,12 +2458,12 @@ var PrincipleOfPublicityStandard_default = PrincipleOfPublicity;
2550
2458
 
2551
2459
  // src/NewTextComponentStandard/ServiceHeadlineAndBodyStandard/ServiceHeadlineAndBodyStandard.tsx
2552
2460
  import DOMPurify6 from "dompurify";
2553
- import { jsx as jsx22, jsxs as jsxs20 } from "react/jsx-runtime";
2461
+ import { jsx as jsx22, jsxs as jsxs19 } from "react/jsx-runtime";
2554
2462
  var ServiceHeadlineAndBody = ({ data, activeStep = 1 }) => {
2555
- return /* @__PURE__ */ jsxs20("div", { className: "pts-serviceHeadlineAndBody-container", children: [
2463
+ return /* @__PURE__ */ jsxs19("div", { className: "pts-serviceHeadlineAndBody-container", children: [
2556
2464
  data.mainHeadline && /* @__PURE__ */ jsx22("h1", { id: "pts-main-service-headline", children: data.mainHeadline }),
2557
2465
  activeStep === 1 && data.ingressBody && /* @__PURE__ */ jsx22("div", { dangerouslySetInnerHTML: { __html: DOMPurify6.sanitize(data.ingressBody) } }),
2558
- activeStep === 1 && data.linksForMoreInfo && data.linksForMoreInfo.length > 1 && /* @__PURE__ */ jsx22("ul", { className: "pts-moreinfo-list", children: data.linksForMoreInfo.map((moreInfo, index) => /* @__PURE__ */ jsx22("li", { className: index > 0 ? "notFirstInList" : "", children: /* @__PURE__ */ jsxs20("a", { href: moreInfo.url, target: "_blank", rel: "noopener noreferrer", children: [
2466
+ activeStep === 1 && data.linksForMoreInfo && data.linksForMoreInfo.length > 1 && /* @__PURE__ */ jsx22("ul", { className: "pts-moreinfo-list", children: data.linksForMoreInfo.map((moreInfo, index) => /* @__PURE__ */ jsx22("li", { className: index > 0 ? "notFirstInList" : "", children: /* @__PURE__ */ jsxs19("a", { href: moreInfo.url, target: "_blank", rel: "noopener noreferrer", children: [
2559
2467
  /* @__PURE__ */ jsx22(
2560
2468
  "svg",
2561
2469
  {
@@ -2576,7 +2484,7 @@ var ServiceHeadlineAndBody = ({ data, activeStep = 1 }) => {
2576
2484
  ),
2577
2485
  /* @__PURE__ */ jsx22("span", { className: "pts-moreinfo-link-text", children: moreInfo.title })
2578
2486
  ] }) }, moreInfo.title + index)) }),
2579
- activeStep === 1 && data.linksForMoreInfo && data.linksForMoreInfo.length === 1 && /* @__PURE__ */ jsxs20("a", { href: data.linksForMoreInfo[0].url, target: "_blank", rel: "noopener noreferrer", children: [
2487
+ activeStep === 1 && data.linksForMoreInfo && data.linksForMoreInfo.length === 1 && /* @__PURE__ */ jsxs19("a", { href: data.linksForMoreInfo[0].url, target: "_blank", rel: "noopener noreferrer", children: [
2580
2488
  /* @__PURE__ */ jsx22(
2581
2489
  "svg",
2582
2490
  {
@@ -2609,7 +2517,7 @@ var SkipLink = () => {
2609
2517
  var SkipLinkStandard_default = SkipLink;
2610
2518
 
2611
2519
  // src/NewTextComponentStandard/StepperButtonsStandard/StepperButtonsStandard.tsx
2612
- import { jsx as jsx24, jsxs as jsxs21 } from "react/jsx-runtime";
2520
+ import { jsx as jsx24, jsxs as jsxs20 } from "react/jsx-runtime";
2613
2521
  var StepperButtons = ({
2614
2522
  languageSupported,
2615
2523
  handleActiveStep,
@@ -2619,7 +2527,7 @@ var StepperButtons = ({
2619
2527
  activeStep
2620
2528
  }) => {
2621
2529
  const totalSteps = arraySteps ? arraySteps.length : "";
2622
- return /* @__PURE__ */ jsxs21("div", { className: "pts-stepperButtons-container", children: [
2530
+ return /* @__PURE__ */ jsxs20("div", { className: "pts-stepperButtons-container", children: [
2623
2531
  activeStep !== 0 && /* @__PURE__ */ jsx24(
2624
2532
  "button",
2625
2533
  {
@@ -2629,7 +2537,7 @@ var StepperButtons = ({
2629
2537
  children: languageSupported ? languageSupported.backButton : "<<"
2630
2538
  }
2631
2539
  ),
2632
- /* @__PURE__ */ jsxs21(
2540
+ /* @__PURE__ */ jsxs20(
2633
2541
  "button",
2634
2542
  {
2635
2543
  type: activeStep === totalSteps ? "submit" : "button",
@@ -2647,14 +2555,14 @@ var StepperButtonsStandard_default = StepperButtons;
2647
2555
 
2648
2556
  // src/NewTextComponentStandard/StepperStandard/StepperStandard.tsx
2649
2557
  import React10 from "react";
2650
- import { jsx as jsx25, jsxs as jsxs22 } from "react/jsx-runtime";
2558
+ import { jsx as jsx25, jsxs as jsxs21 } from "react/jsx-runtime";
2651
2559
  var Stepper = ({ arraySteps = [], activeStep = 1 }) => {
2652
2560
  return /* @__PURE__ */ jsx25("div", { className: "pts-stepper-container", "aria-hidden": "true", children: arraySteps.map((step, index) => {
2653
2561
  const isActive = step.step === activeStep;
2654
2562
  const lastElement = arraySteps.length;
2655
2563
  const isDone = step.step < activeStep;
2656
- return /* @__PURE__ */ jsxs22(React10.Fragment, { children: [
2657
- /* @__PURE__ */ jsxs22("div", { className: "pts-stepper-step", children: [
2564
+ return /* @__PURE__ */ jsxs21(React10.Fragment, { children: [
2565
+ /* @__PURE__ */ jsxs21("div", { className: "pts-stepper-step", children: [
2658
2566
  /* @__PURE__ */ jsx25(
2659
2567
  "div",
2660
2568
  {
@@ -2689,7 +2597,7 @@ var Stepper = ({ arraySteps = [], activeStep = 1 }) => {
2689
2597
  var StepperStandard_default = Stepper;
2690
2598
 
2691
2599
  // src/NewTextComponentStandard/ValidationErrorSummaryList/ValidationErrorSummaryList.tsx
2692
- import { Fragment as Fragment15, jsx as jsx26, jsxs as jsxs23 } from "react/jsx-runtime";
2600
+ import { Fragment as Fragment15, jsx as jsx26, jsxs as jsxs22 } from "react/jsx-runtime";
2693
2601
  var ValidationErrorSummaryList = ({
2694
2602
  validationErrorsList,
2695
2603
  formQuestions,
@@ -2737,9 +2645,9 @@ var ValidationErrorSummaryList = ({
2737
2645
  const found = formQuestions.find((item) => item.id === id);
2738
2646
  return (_a = found == null ? void 0 : found.validationSummaryLabel) != null ? _a : found == null ? void 0 : found.questionLabel;
2739
2647
  }
2740
- return /* @__PURE__ */ jsxs23("div", { className: "pts-errorSummary-container pts-root-error", children: [
2648
+ return /* @__PURE__ */ jsxs22("div", { className: "pts-errorSummary-container pts-root-error", children: [
2741
2649
  /* @__PURE__ */ jsx26("span", { "aria-hidden": "true", className: "errorDot", children: "!" }),
2742
- /* @__PURE__ */ jsxs23("div", { className: "errorSummary-content", id: "pts-errorSummary-content", children: [
2650
+ /* @__PURE__ */ jsxs22("div", { className: "errorSummary-content", id: "pts-errorSummary-content", children: [
2743
2651
  /* @__PURE__ */ jsx26("h2", { id: "errorSummary-headline", children: title }),
2744
2652
  /* @__PURE__ */ jsx26("ul", { id: "errorSummary-ul", children: filteredIds.map((questionId, i) => /* @__PURE__ */ jsx26("li", { children: /* @__PURE__ */ jsx26(
2745
2653
  "a",
@@ -2759,7 +2667,7 @@ var ValidationErrorSummaryList = ({
2759
2667
  var ValidationErrorSummaryList_default = ValidationErrorSummaryList;
2760
2668
 
2761
2669
  // src/NewTextComponentStandard/CookieBanner/CookieBanner.tsx
2762
- import { jsx as jsx27, jsxs as jsxs24 } from "react/jsx-runtime";
2670
+ import { jsx as jsx27, jsxs as jsxs23 } from "react/jsx-runtime";
2763
2671
  var CookieBanner = ({
2764
2672
  visible = false,
2765
2673
  onCookieStateChange,
@@ -2791,11 +2699,11 @@ var CookieBanner = ({
2791
2699
  "aria-modal": "true",
2792
2700
  id: "cookie-banner",
2793
2701
  tabIndex: -1,
2794
- children: /* @__PURE__ */ jsxs24("div", { className: "content", children: [
2702
+ children: /* @__PURE__ */ jsxs23("div", { className: "content", children: [
2795
2703
  /* @__PURE__ */ jsx27("h3", { id: "cookie-banner-title", children: "Kakor (cookies)" }),
2796
2704
  /* @__PURE__ */ jsx27("p", { id: "cookie-banner-description", children: "PTS skulle vilja anv\xE4nda en statistikkaka i syfte att l\xF6pande f\xF6rb\xE4ttra webbplatsen. Samtycker du till det? Du kan n\xE4r som helst \xE4ndra ditt val. F\xF6r att \xE5terkalla ditt samtycke klickar du p\xE5 \u201DKakor\u201D i avsnittet l\xE4ngst ned p\xE5 webbplatsen." }),
2797
- /* @__PURE__ */ jsxs24("div", { className: "pts-cookieBanner-Links", children: [
2798
- /* @__PURE__ */ jsxs24(
2705
+ /* @__PURE__ */ jsxs23("div", { className: "pts-cookieBanner-Links", children: [
2706
+ /* @__PURE__ */ jsxs23(
2799
2707
  "svg",
2800
2708
  {
2801
2709
  width: "27",
@@ -2818,7 +2726,7 @@ var CookieBanner = ({
2818
2726
  ),
2819
2727
  /* @__PURE__ */ jsx27("a", { href: "www.pts.se", target: "_blank", rel: "noopener noreferrer", children: "Kakor (cookies) p\xE5 pts.se (\xD6ppnas i nytt f\xF6nster)" })
2820
2728
  ] }),
2821
- /* @__PURE__ */ jsxs24("div", { className: "pts-cookieBanner-Buttons", children: [
2729
+ /* @__PURE__ */ jsxs23("div", { className: "pts-cookieBanner-Buttons", children: [
2822
2730
  /* @__PURE__ */ jsx27("button", { onClick: () => handleCookieChoice(true), children: "Ja, jag samtycker" }),
2823
2731
  /* @__PURE__ */ jsx27("button", { onClick: () => handleCookieChoice(false), children: "Nej, jag samtycker inte" })
2824
2732
  ] })