optimized-react-component-library-xyz123 0.9.2 → 0.9.3
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 +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +9 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/css/questions.css +1 -3
- package/src/css/styles.css +1 -27
package/dist/index.d.mts
CHANGED
|
@@ -775,8 +775,8 @@ interface EditPreviewLinkProps {
|
|
|
775
775
|
declare const EditPreviewLink: FC<EditPreviewLinkProps>;
|
|
776
776
|
|
|
777
777
|
interface StartApplicationButtonProps {
|
|
778
|
+
globalLanguageState?: any;
|
|
778
779
|
onClick: (event: React$1.MouseEvent<HTMLButtonElement>) => void;
|
|
779
|
-
label?: string;
|
|
780
780
|
className?: string;
|
|
781
781
|
}
|
|
782
782
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -775,8 +775,8 @@ interface EditPreviewLinkProps {
|
|
|
775
775
|
declare const EditPreviewLink: FC<EditPreviewLinkProps>;
|
|
776
776
|
|
|
777
777
|
interface StartApplicationButtonProps {
|
|
778
|
+
globalLanguageState?: any;
|
|
778
779
|
onClick: (event: React$1.MouseEvent<HTMLButtonElement>) => void;
|
|
779
|
-
label?: string;
|
|
780
780
|
className?: string;
|
|
781
781
|
}
|
|
782
782
|
/**
|
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
|
]
|
|
@@ -2928,8 +2928,8 @@ var EditPreviewLinkStandard_default = EditPreviewLink;
|
|
|
2928
2928
|
// src/components/stepper/StartApplicationButton/StartApplicationButton.tsx
|
|
2929
2929
|
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
2930
2930
|
var StartApplicationButton = ({
|
|
2931
|
+
globalLanguageState,
|
|
2931
2932
|
onClick,
|
|
2932
|
-
label = "Starta e-tj\xE4nsten",
|
|
2933
2933
|
className = ""
|
|
2934
2934
|
}) => {
|
|
2935
2935
|
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
@@ -2938,7 +2938,7 @@ var StartApplicationButton = ({
|
|
|
2938
2938
|
type: "button",
|
|
2939
2939
|
className: `pts-forwardButton pts-start-applicationButton ${className}`,
|
|
2940
2940
|
onClick,
|
|
2941
|
-
children:
|
|
2941
|
+
children: globalLanguageState && globalLanguageState.startButton ? globalLanguageState.startButton : ">>"
|
|
2942
2942
|
}
|
|
2943
2943
|
);
|
|
2944
2944
|
};
|