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.js CHANGED
@@ -200,7 +200,7 @@ var PrevieMultipleCheckboxes = ({
200
200
  const previewId = `preview-${question.id}`;
201
201
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
202
202
  /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("dt", { id: `question-${previewId}`, children: (_a = question.previewLabel) != null ? _a : question.questionLabel }),
203
- question.answer ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_jsx_runtime2.Fragment, { children: question.options && question.options.length === 1 ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("dd", { children: question.options[0].label }) : /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("ul", { className: "preview-answer-list", children: (_b = question.options) == null ? void 0 : _b.filter((option) => {
203
+ question.answer ? question.options && question.options.length === 1 ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("dd", { children: question.options[0].label }) : /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("dd", { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("ul", { className: "preview-answer-list", children: (_b = question.options) == null ? void 0 : _b.filter((option) => {
204
204
  var _a2;
205
205
  return (_a2 = question.answer) == null ? void 0 : _a2.includes(option.label);
206
206
  }).map((option, index) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("li", { children: option.label }, index)) }) }) : /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("dd", { className: "no-answer-preview-page", children: activatedLanguage === "en" ? "No Answer" : "Inget svar" }),
@@ -821,7 +821,7 @@ var DropFiles = ({ FilesSelected, DropFilesText = "Dra och sl\xE4pp dina filer h
821
821
  var DropFilesStandard_default = DropFiles;
822
822
 
823
823
  // src/NewInputComponentStandard/AddFilesStandard/ExploreFilesStandard.tsx
824
- var import_react4 = __toESM(require("react"));
824
+ var import_react4 = require("react");
825
825
  var import_clsx2 = __toESM(require("clsx"));
826
826
 
827
827
  // src/NewInputComponentStandard/AddFilesStandard/ScreenReaderErrors.tsx
@@ -829,11 +829,7 @@ var import_react3 = __toESM(require("react"));
829
829
  var import_jsx_runtime7 = require("react/jsx-runtime");
830
830
  var ScreenReaderErrors = ({
831
831
  errorMessageAddingFile,
832
- activatedLanguage,
833
- removeUploadErrors,
834
- putFocusOnButton = () => {
835
- alert("no function");
836
- }
832
+ activatedLanguage
837
833
  }) => {
838
834
  const [activateErrorMessagesForScreenReader, setActivateErrorMessagesForScreenReader] = import_react3.default.useState(false);
839
835
  const [errorMessagesForScreenReader, setErrorMessagesForScreenReader] = import_react3.default.useState("");
@@ -849,49 +845,7 @@ var ScreenReaderErrors = ({
849
845
  setActivateErrorMessagesForScreenReader(true);
850
846
  }
851
847
  }, [errorMessageAddingFile]);
852
- const handleRemoveErrors = () => {
853
- const errorMessages = activatedLanguage === "sv" ? `Felmeddelande raderat.` : `Error message deleted.`;
854
- setErrorMessagesForScreenReader(errorMessages);
855
- removeUploadErrors();
856
- putFocusOnButton();
857
- setTimeout(() => {
858
- setActivateErrorMessagesForScreenReader(false);
859
- }, 1e3);
860
- };
861
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_jsx_runtime7.Fragment, { children: [
862
- errorMessageAddingFile.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
863
- "button",
864
- {
865
- onClick: handleRemoveErrors,
866
- style: {
867
- marginRight: "8px",
868
- backgroundColor: "transparent",
869
- border: "none",
870
- textDecoration: "underline",
871
- cursor: "pointer"
872
- },
873
- className: "errorMessageAddingFile",
874
- "aria-label": activatedLanguage === "sv" ? "Ta bort felmeddelande f\xF6r uppladdning av filer" : "Remove error message for file uploads",
875
- children: "Ta bort fel! / Remove errors!"
876
- }
877
- ),
878
- activateErrorMessagesForScreenReader && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
879
- "p",
880
- {
881
- role: "alert",
882
- style: {
883
- position: "absolute",
884
- left: "-9999px",
885
- top: "auto",
886
- width: "1px",
887
- height: "1px",
888
- overflow: "hidden"
889
- },
890
- "aria-atomic": "true",
891
- children: errorMessagesForScreenReader
892
- }
893
- )
894
- ] });
848
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_jsx_runtime7.Fragment, { children: activateErrorMessagesForScreenReader && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("p", { role: "alert", className: "sr-only", "aria-atomic": "true", children: errorMessagesForScreenReader }) });
895
849
  };
896
850
  var ScreenReaderErrors_default = ScreenReaderErrors;
897
851
 
@@ -899,7 +853,6 @@ var ScreenReaderErrors_default = ScreenReaderErrors;
899
853
  var import_jsx_runtime8 = require("react/jsx-runtime");
900
854
  var ExploreFiles = ({
901
855
  FilesSelected,
902
- //UploadButtonText = 'upload files',
903
856
  numberOfFiles,
904
857
  allowedNumberOfFiles,
905
858
  activatedLanguage,
@@ -909,28 +862,10 @@ var ExploreFiles = ({
909
862
  errorId,
910
863
  questionObject,
911
864
  showErrors,
912
- errorMessageAddingFile,
913
- removeUploadErrors = () => {
914
- alert("finns ingen funktion");
915
- }
865
+ errorMessageAddingFile
916
866
  }) => {
917
867
  const fileInputRef = (0, import_react4.useRef)(null);
918
868
  const buttonInputRef = (0, import_react4.useRef)(null);
919
- const [showErrorMessagesForScreenReader, setShowErrorMessagesForScreenReader] = import_react4.default.useState(false);
920
- const [errorMessagesForScreenReader, setErrorMessagesForScreenReader] = import_react4.default.useState("");
921
- (0, import_react4.useEffect)(() => {
922
- const button = buttonInputRef.current;
923
- if (!button) return;
924
- const handleFocus = () => {
925
- setShowErrorMessagesForScreenReader(!showErrorMessagesForScreenReader);
926
- console.log("FOCUS!!");
927
- console.log("Error messages for screen reader: " + errorMessageAddingFile);
928
- };
929
- button.addEventListener("focus", handleFocus);
930
- return () => {
931
- button.removeEventListener("focus", handleFocus);
932
- };
933
- }, []);
934
869
  const handleFiles = (event) => {
935
870
  const files = Array.from(event.target.files || []);
936
871
  FilesSelected(files);
@@ -940,32 +875,17 @@ var ExploreFiles = ({
940
875
  var _a;
941
876
  (_a = fileInputRef.current) == null ? void 0 : _a.click();
942
877
  };
943
- const handleRemoveErrors = () => {
944
- const errorMessages = activatedLanguage === "sv" ? `Felmeddelande raderat.` : `Error message deleted.`;
945
- setErrorMessagesForScreenReader(errorMessages);
946
- removeUploadErrors();
947
- putFocusOnButton();
948
- setTimeout(() => {
949
- setShowErrorMessagesForScreenReader(false);
950
- }, 1e3);
951
- };
952
- const putFocusOnButton = () => {
953
- var _a;
954
- (_a = buttonInputRef.current) == null ? void 0 : _a.focus();
955
- };
956
878
  let addFilesInfoText = numberOfFiles > 0 ? activatedLanguage === "sv" ? `${numberOfFiles} filer valda (max ${allowedNumberOfFiles})` : `${numberOfFiles} files chosed (max ${allowedNumberOfFiles})` : activatedLanguage === "sv" ? "Ingen fil vald" : "No file chosen";
957
879
  return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_jsx_runtime8.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "inputContainer", children: [
958
880
  /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
959
- "label",
881
+ "div",
960
882
  {
961
- tabIndex: -1,
962
883
  className: (0, import_clsx2.default)(
963
884
  ["form-control"],
964
885
  "filePickLabel",
965
886
  showErrors && questionObject.error ? ["form-control error"] : ""
966
887
  ),
967
888
  id: labelId,
968
- htmlFor: inputId,
969
889
  children: [
970
890
  /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
971
891
  "button",
@@ -976,34 +896,32 @@ var ExploreFiles = ({
976
896
  "filePickButton",
977
897
  showErrors && questionObject.error ? "filePickButton error" : ""
978
898
  ),
979
- "aria-describedby": `${aboutId} ${showErrors && questionObject.error ? errorId : ""}`.trim(),
980
- "aria-label": `${activatedLanguage === "sv" ? "V\xE4lj fil" : "Choose file"} ${addFilesInfoText}`,
899
+ "aria-describedby": `${aboutId} ${questionObject.hasValidationError ? errorId : ""}`.trim(),
900
+ "aria-label": `${activatedLanguage === "sv" ? "Knap aria-label V\xE4lj fil" : "Choose file"} ${addFilesInfoText}`,
981
901
  children: activatedLanguage === "sv" ? "V\xE4lj fil" : "Choose file"
982
902
  }
983
903
  ),
984
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
985
- "input",
986
- {
987
- ref: fileInputRef,
988
- type: "file",
989
- className: "invisible",
990
- multiple: true,
991
- onChange: handleFiles,
992
- tabIndex: -1,
993
- id: inputId
994
- }
995
- ),
996
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "filePickText", children: addFilesInfoText })
904
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { "aria-hidden": true, className: "filePickText", children: addFilesInfoText + "span aria-hidden=true" })
997
905
  ]
998
906
  }
999
907
  ),
908
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
909
+ "input",
910
+ {
911
+ ref: fileInputRef,
912
+ type: "file",
913
+ className: "invisible",
914
+ multiple: true,
915
+ onChange: handleFiles,
916
+ tabIndex: -1,
917
+ id: inputId
918
+ }
919
+ ),
1000
920
  /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1001
921
  ScreenReaderErrors_default,
1002
922
  {
1003
923
  errorMessageAddingFile,
1004
- removeUploadErrors,
1005
- activatedLanguage,
1006
- putFocusOnButton
924
+ activatedLanguage
1007
925
  }
1008
926
  )
1009
927
  ] }) });
@@ -1037,11 +955,12 @@ var SelectedFiles = ({
1037
955
  errorMessageAddingFile,
1038
956
  activatedLanguage,
1039
957
  numberOfFiles,
1040
- setNumberOfFiles
958
+ setNumberOfFiles,
959
+ removeUploadErrors
1041
960
  }) => {
1042
961
  const theDiv = (0, import_react6.useRef)(null);
1043
962
  const remove = (file) => {
1044
- let newFiles = questionObject.Files.filter((f) => f !== file);
963
+ let newFiles = questionObject.files.filter((f) => f !== file);
1045
964
  const newCountOfFiles = newFiles.length;
1046
965
  setNumberOfFiles(newCountOfFiles);
1047
966
  const e = { target: { value: `${newCountOfFiles} files`, files: newFiles } };
@@ -1067,58 +986,54 @@ var SelectedFiles = ({
1067
986
  };
1068
987
  const windowWidth = useWindowWidth();
1069
988
  return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_jsx_runtime10.Fragment, { children: [
1070
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { children: errorMessageAddingFile.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("ul", { className: "fileListUnorderedList", "aria-label": "Valideringsfelmeddelanden f\xF6r uppladdade filer", children: [
1071
- " ",
1072
- errorMessageAddingFile.map((errorObj, index) => {
1073
- const errorFileName = errorObj.FileName;
1074
- let mobileFirstFileName = errorObj.FileName.split(".").shift();
1075
- mobileFirstFileName = mobileFirstFileName.length > 8 ? mobileFirstFileName.substring(0, 8) + ".." : mobileFirstFileName;
1076
- const fileType = errorObj.FileName.split(".").pop();
1077
- mobileFirstFileName = mobileFirstFileName + "." + fileType;
1078
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_react6.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "fileInListContainer", role: "alert", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "fileInList", children: [
1079
- /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_react_bootstrap.Row, { children: [
1080
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_react_bootstrap.Col, { style: { maxWidth: "30px" }, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1081
- "span",
1082
- {
1083
- "aria-hidden": "true",
1084
- className: (0, import_clsx4.default)("uploadedDot", "uploadFailed"),
1085
- children: "!"
1086
- }
1087
- ) }),
1088
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_react_bootstrap.Col, { children: windowWidth < 768 ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "mobileFirstFileName", children: mobileFirstFileName }) : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "desktopFileName", children: errorObj.FileName }) }),
1089
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_react_bootstrap.Col, { className: "lastCol", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1090
- "button",
989
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { children: [
990
+ errorMessageAddingFile.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("ul", { "aria-hidden": true, className: "fileListUnorderedList", children: [
991
+ " ",
992
+ errorMessageAddingFile.map((errorObj, index) => {
993
+ const errorFileName = errorObj.FileName;
994
+ let mobileFirstFileName = errorObj.FileName.split(".").shift();
995
+ mobileFirstFileName = mobileFirstFileName.length > 8 ? mobileFirstFileName.substring(0, 8) + ".." : mobileFirstFileName;
996
+ const fileType = errorObj.FileName.split(".").pop();
997
+ mobileFirstFileName = mobileFirstFileName + "." + fileType;
998
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_react6.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "fileInListContainer", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "fileInList", children: [
999
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_react_bootstrap.Row, { children: [
1000
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_react_bootstrap.Col, { style: { maxWidth: "30px" }, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1001
+ "span",
1002
+ {
1003
+ "aria-hidden": "true",
1004
+ className: (0, import_clsx4.default)("uploadedDot", "uploadFailed"),
1005
+ children: "!"
1006
+ }
1007
+ ) }),
1008
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_react_bootstrap.Col, { children: windowWidth < 768 ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "mobileFirstFileName", children: mobileFirstFileName }) : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "desktopFileName", children: errorObj.FileName }) }),
1009
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_react_bootstrap.Col, { className: "lastCol" })
1010
+ ] }),
1011
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_react_bootstrap.Row, { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1012
+ import_react_bootstrap.Col,
1091
1013
  {
1092
- className: "selectedFilesLinkButton",
1093
- onClick: () => {
1094
- removeError(index);
1014
+ style: {
1015
+ width: "100%",
1016
+ color: "#8e0039"
1095
1017
  },
1096
- "aria-label": activatedLanguage === "sv" ? `St\xE4ng felmeddelandet f\xF6r ${errorFileName}` : `Close error message for ${errorFileName}`,
1097
- children: activatedLanguage === "sv" ? "St\xE4ng" : "Close"
1018
+ className: "errorMessageAddingFile",
1019
+ ...activatedLanguage === "sv" ? {
1020
+ "aria-label": `${errorFileName} ${errorObj.svMessage}`
1021
+ } : {
1022
+ "aria-label": `${errorFileName} ${errorObj.enMessage}`
1023
+ },
1024
+ children: activatedLanguage === "sv" ? errorObj.svMessage : errorObj.enMessage
1098
1025
  }
1099
- ) })
1100
- ] }),
1101
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_react_bootstrap.Row, { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1102
- import_react_bootstrap.Col,
1103
- {
1104
- style: {
1105
- width: "100%",
1106
- color: "#8e0039"
1107
- },
1108
- className: "errorMessageAddingFile",
1109
- ...activatedLanguage === "sv" ? {
1110
- "aria-label": `${errorFileName} ${errorObj.svMessage}`
1111
- } : {
1112
- "aria-label": `${errorFileName} ${errorObj.enMessage}`
1113
- },
1114
- children: activatedLanguage === "sv" ? errorObj.svMessage : errorObj.enMessage
1115
- }
1116
- ) }),
1117
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_react_bootstrap.Row, { style: { marginTop: "12px", marginBottom: "12px" }, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_react_bootstrap.Col, { className: "makeSpace" }) })
1118
- ] }, index) }) }) }, `error-${errorObj.FileName}-${index}`) });
1119
- })
1120
- ] }) }),
1121
- questionObject.Files.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("ul", { className: "fileListUnorderedList", "aria-label": "Uppladdade filer", children: questionObject.Files.map((file, index) => {
1026
+ ) }),
1027
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_react_bootstrap.Row, { style: { marginTop: "12px", marginBottom: "12px" }, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_react_bootstrap.Col, { className: "makeSpace" }) })
1028
+ ] }, index) }) }) }, `error-${errorObj.FileName}-${index}`) });
1029
+ })
1030
+ ] }),
1031
+ errorMessageAddingFile.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("button", { onClick: removeUploadErrors, className: "errorMessageAddingFile", children: [
1032
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { "aria-hidden": true, className: "errorDot", children: "X" }),
1033
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "sr-only", children: "Ta bort felmeddelande f\xF6r uppladdning av filer" })
1034
+ ] })
1035
+ ] }),
1036
+ questionObject.files.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("ul", { className: "fileListUnorderedList", "aria-label": "Uppladdade filer", children: questionObject.files.map((file, index) => {
1122
1037
  const indicatorfileName = file.FileName;
1123
1038
  let mobileFirstFileName = file.FileName.split(".").shift();
1124
1039
  mobileFirstFileName = mobileFirstFileName.length > 8 ? mobileFirstFileName.substring(0, 8) + ".." : mobileFirstFileName;
@@ -1149,13 +1064,12 @@ var SelectedFiles = ({
1149
1064
  mobileFirstFileName,
1150
1065
  " (",
1151
1066
  Math.ceil(file.FileSize / (1024 * 1024)),
1152
- " MB)"
1067
+ " ",
1068
+ "MB)"
1153
1069
  ] }) : /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("span", { className: "desktopFileName", children: [
1154
1070
  file.FileName,
1155
1071
  " (",
1156
- file.FileSize < 1024 * 1024 ? `${Math.round(file.FileSize / 1024)} kB` : `${(file.FileSize / (1024 * 1024)).toFixed(
1157
- 1
1158
- )} MB`,
1072
+ file.FileSize < 1024 * 1024 ? `${Math.round(file.FileSize / 1024)} kB` : `${(file.FileSize / (1024 * 1024)).toFixed(1)} MB`,
1159
1073
  ")"
1160
1074
  ] }) }),
1161
1075
  /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_react_bootstrap.Col, { className: "lastCol", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
@@ -1349,7 +1263,6 @@ var AddFiles = ({
1349
1263
  };
1350
1264
  return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_jsx_runtime11.Fragment, { children: [
1351
1265
  !showPreview && visible && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { role: "group", children: [
1352
- !questionObject.hideQuestion && questionObject.questionLabel,
1353
1266
  questionObject.aboutText && /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
1354
1267
  "p",
1355
1268
  {
@@ -1369,14 +1282,8 @@ var AddFiles = ({
1369
1282
  ),
1370
1283
  questionObject.hasValidationError && /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "error addfileserror", id: errorId, children: [
1371
1284
  /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { "aria-hidden": true, className: "errorDot", children: "!" }),
1372
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1373
- "span",
1374
- {
1375
- "aria-label": `Felmeddelande. ${questionObject.validationDefaultMessesege}`,
1376
- className: "errorText",
1377
- children: questionObject.validationDefaultMessesege
1378
- }
1379
- )
1285
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "sr-only", children: "Valideringsfel" }),
1286
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "errorText", children: questionObject.validationDefaultMessesege })
1380
1287
  ] }),
1381
1288
  /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1382
1289
  ExploreFilesStandard_default,
@@ -1405,7 +1312,8 @@ var AddFiles = ({
1405
1312
  errorMessageAddingFile,
1406
1313
  activatedLanguage,
1407
1314
  numberOfFiles,
1408
- setNumberOfFiles
1315
+ setNumberOfFiles,
1316
+ removeUploadErrors: handleRemoveErrors
1409
1317
  }
1410
1318
  )
1411
1319
  ] }) }),