optimized-react-component-library-xyz123 0.8.2 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/css/questions.css +1 -3
- package/src/css/styles.css +0 -5
package/dist/index.js
CHANGED
|
@@ -911,8 +911,8 @@ var AddFiles = ({
|
|
|
911
911
|
acceptedFiles.forEach((file) => {
|
|
912
912
|
validationErrors.push({
|
|
913
913
|
FileName: file.name,
|
|
914
|
-
svMessage: `Du kan ladda upp maximalt ${allowedNumberOfFiles} filer med
|
|
915
|
-
enMessage: `You can upload a maximum of ${allowedNumberOfFiles} files with a total file size of ${maxSizeMB}MB`
|
|
914
|
+
svMessage: `Du kan ladda upp maximalt ${allowedNumberOfFiles} filer med total filstorlek p\xE5 ${maxSizeMB} MB`,
|
|
915
|
+
enMessage: `You can upload a maximum of ${allowedNumberOfFiles} files with a total file size of ${maxSizeMB} MB`
|
|
916
916
|
});
|
|
917
917
|
});
|
|
918
918
|
setErrorMessageAddingFile((prev) => [...prev, ...validationErrors]);
|
|
@@ -932,8 +932,8 @@ var AddFiles = ({
|
|
|
932
932
|
if ((((_c = questionObject.files) == null ? void 0 : _c.length) || 0) + validFiles.length >= allowedNumberOfFiles) {
|
|
933
933
|
validationErrors.push({
|
|
934
934
|
FileName: file.name,
|
|
935
|
-
svMessage: `Du kan ladda upp maximalt ${allowedNumberOfFiles} filer med
|
|
936
|
-
enMessage: `You can upload a maximum of ${allowedNumberOfFiles} files with a total file size of ${maxSizeMB}MB`
|
|
935
|
+
svMessage: `Du kan ladda upp maximalt ${allowedNumberOfFiles} filer med total filstorlek p\xE5 ${maxSizeMB} MB`,
|
|
936
|
+
enMessage: `You can upload a maximum of ${allowedNumberOfFiles} files with a total file size of ${maxSizeMB} MB`
|
|
937
937
|
});
|
|
938
938
|
continue;
|
|
939
939
|
}
|
|
@@ -941,8 +941,8 @@ var AddFiles = ({
|
|
|
941
941
|
if (projectedTotalSize > allowedTotalFileSize) {
|
|
942
942
|
validationErrors.push({
|
|
943
943
|
FileName: file.name,
|
|
944
|
-
svMessage: `Du kan ladda upp maximalt ${allowedNumberOfFiles} filer med
|
|
945
|
-
enMessage: `You can upload a maximum of ${allowedNumberOfFiles} files with a total file size of ${maxSizeMB}MB`
|
|
944
|
+
svMessage: `Du kan ladda upp maximalt ${allowedNumberOfFiles} filer med total filstorlek p\xE5 ${maxSizeMB} MB`,
|
|
945
|
+
enMessage: `You can upload a maximum of ${allowedNumberOfFiles} files with a total file size of ${maxSizeMB} MB`
|
|
946
946
|
});
|
|
947
947
|
continue;
|
|
948
948
|
}
|
|
@@ -2623,7 +2623,7 @@ var Header = ({
|
|
|
2623
2623
|
onClick: handleLanguageClick,
|
|
2624
2624
|
children: [
|
|
2625
2625
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "languageIcon", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(LanguageIcon, {}) }) }),
|
|
2626
|
-
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { "aria-hidden": "true", className: "pts-languageButton
|
|
2626
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { "aria-hidden": "true", className: "pts-languageButton", children: getLanguageLabel() }),
|
|
2627
2627
|
activatedLanguage === "en" && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "sr-only", children: "\xC4ndra spr\xE5k till svenska" }),
|
|
2628
2628
|
activatedLanguage === "sv" && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "sr-only", children: "Change language to English" })
|
|
2629
2629
|
]
|