optimized-react-component-library-xyz123 2.5.4 → 2.5.6
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 +34 -2
- package/dist/index.d.ts +34 -2
- package/dist/index.js +62 -16
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +61 -16
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -940,7 +940,6 @@ interface StepperButtonsProps {
|
|
|
940
940
|
onSubmitHandler?: (e: any) => void;
|
|
941
941
|
steps?: any[];
|
|
942
942
|
activeStep: number;
|
|
943
|
-
appUsesApi?: boolean;
|
|
944
943
|
}
|
|
945
944
|
|
|
946
945
|
/**
|
|
@@ -974,6 +973,39 @@ interface StepperProps {
|
|
|
974
973
|
|
|
975
974
|
declare const Stepper: FC<StepperProps>;
|
|
976
975
|
|
|
976
|
+
interface StepperButtonsNoApiProps {
|
|
977
|
+
globalLanguageState?: any;
|
|
978
|
+
changeStepHandler: (activeStep: number) => void;
|
|
979
|
+
nextStepButtonHandler?: (e: any) => void;
|
|
980
|
+
onSubmitHandler?: (e: any) => void;
|
|
981
|
+
steps?: any[];
|
|
982
|
+
activeStep: number;
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
/**
|
|
986
|
+
* Renderar navigationsknappar för steg-navigering i ett flerstegsformulär.
|
|
987
|
+
*
|
|
988
|
+
* Funktionalitet:
|
|
989
|
+
* Visar en "Tillbaka"-knapp när activeStep > 0.
|
|
990
|
+
* Visar "Nästa"-knappen fram tills sista steget.
|
|
991
|
+
* Byter "Nästa"-knappen till "Skicka" vid sista steget.
|
|
992
|
+
*
|
|
993
|
+
* @param {Object} globalLanguageState Objekt med språksträngar för knapparna.
|
|
994
|
+
* Förväntas innehålla: backButton, forwardButton, sendButton.
|
|
995
|
+
*
|
|
996
|
+
* @param {Function} changeStepHandler Callback när användaren går bakåt i stegen.
|
|
997
|
+
*
|
|
998
|
+
* @param {Function} nextStepButtonHandler Callback när användaren går till nästa steg.
|
|
999
|
+
*
|
|
1000
|
+
* @param {Function} onSubmitHandler Callback när sista steget nås och formuläret ska skickas in.
|
|
1001
|
+
*
|
|
1002
|
+
* @param {Array} steps Lista över alla steg i formuläret.
|
|
1003
|
+
* Används för att räkna ut sista stegnumret.
|
|
1004
|
+
*
|
|
1005
|
+
* @param {number} activeStep Det aktuella steget i flerstegsformuläret.
|
|
1006
|
+
*/
|
|
1007
|
+
declare const StepperButtonsNoApi: FC<StepperButtonsNoApiProps>;
|
|
1008
|
+
|
|
977
1009
|
interface ValidationErrorSummaryListProps {
|
|
978
1010
|
questions: any[];
|
|
979
1011
|
activatedLanguage: string;
|
|
@@ -1003,4 +1035,4 @@ interface FormStatusMessagesProps {
|
|
|
1003
1035
|
*/
|
|
1004
1036
|
declare const FormStatusMessagesScreenReader: React$1.FC<FormStatusMessagesProps>;
|
|
1005
1037
|
|
|
1006
|
-
export { AddFiles as AddFilesStandard, AlertInTextStandard, CheckboxGroup as CheckboxGroupStandard, Collapse, CookieBanner, type CookieConsentConfig, EditPreviewLink as EditPreviewLinkStandard, Footer as FooterStandard, FormStatusMessagesScreenReader, Header as HeaderStandard, type IAppSettings, type IAppSettingsCookies, type IApplicationContent, type IFormState, type IOption, type IPTSLink, type IQuestion, type IQuestionExtraAttribute, type IStepObject, type IStepQuestionData, type ITextBlock, InputInfoOnly as InfoOnlyStandard, type LanguageSupportConfig, LinkList as LinkListStandard, LinkStandard, Modal as ModalStandard, MultipleCheckboxes as MultipleCheckboxesStandard, Navigation, NavigationHeader, PrincipleOfPublicity as PrincipleOfPublicityStandard, QuestionGroup, QuestionRenderer, InputRadio as RadioMultipleStandard, SearchBar, SingleCheckbox as SingleCheckboxStandard, SkipLink as SkipLinkStandard, StartApplicationButton, StepperButtons as StepperButtonsStandard, Stepper as StepperStandard, InputTextarea as TextAreaStandard, TextBody, TextFieldStandard, ValidationErrorSummaryList, buildStepCategoryGroupQuestionStructure, createApiDataObject, createCookieConsent, createFormSlice, createGlobalLanguageSlice, createGlobalLanguageSlice as createLanguageSlice, createFormSlice as createQuestionsSlice, findVisibleQuestionsWithValidationErrors, focusElement, getGroupCheckIds, hasQuestionValidationError, isQuestionDependencySatisfied, isScriptLoaded, makeFormSelectors, makeglobalLanguageSelectors as makeLanguageSelectors, makeFormSelectors as makeQuestionsSelectors, makeglobalLanguageSelectors, preparePreviewData, removeScriptById, toggleScriptByConsent, updateQuestionsAndCategoriesVisibilityAndErrors, useCookieConsent, useFormStatusModal, useInputMethodDetection, usePTSPageTitle };
|
|
1038
|
+
export { AddFiles as AddFilesStandard, AlertInTextStandard, CheckboxGroup as CheckboxGroupStandard, Collapse, CookieBanner, type CookieConsentConfig, EditPreviewLink as EditPreviewLinkStandard, Footer as FooterStandard, FormStatusMessagesScreenReader, Header as HeaderStandard, type IAppSettings, type IAppSettingsCookies, type IApplicationContent, type IFormState, type IOption, type IPTSLink, type IQuestion, type IQuestionExtraAttribute, type IStepObject, type IStepQuestionData, type ITextBlock, InputInfoOnly as InfoOnlyStandard, type LanguageSupportConfig, LinkList as LinkListStandard, LinkStandard, Modal as ModalStandard, MultipleCheckboxes as MultipleCheckboxesStandard, Navigation, NavigationHeader, PrincipleOfPublicity as PrincipleOfPublicityStandard, QuestionGroup, QuestionRenderer, InputRadio as RadioMultipleStandard, SearchBar, SingleCheckbox as SingleCheckboxStandard, SkipLink as SkipLinkStandard, StartApplicationButton, StepperButtonsNoApi as StepperButtonsNoApiStandard, StepperButtons as StepperButtonsStandard, Stepper as StepperStandard, InputTextarea as TextAreaStandard, TextBody, TextFieldStandard, ValidationErrorSummaryList, buildStepCategoryGroupQuestionStructure, createApiDataObject, createCookieConsent, createFormSlice, createGlobalLanguageSlice, createGlobalLanguageSlice as createLanguageSlice, createFormSlice as createQuestionsSlice, findVisibleQuestionsWithValidationErrors, focusElement, getGroupCheckIds, hasQuestionValidationError, isQuestionDependencySatisfied, isScriptLoaded, makeFormSelectors, makeglobalLanguageSelectors as makeLanguageSelectors, makeFormSelectors as makeQuestionsSelectors, makeglobalLanguageSelectors, preparePreviewData, removeScriptById, toggleScriptByConsent, updateQuestionsAndCategoriesVisibilityAndErrors, useCookieConsent, useFormStatusModal, useInputMethodDetection, usePTSPageTitle };
|
package/dist/index.d.ts
CHANGED
|
@@ -940,7 +940,6 @@ interface StepperButtonsProps {
|
|
|
940
940
|
onSubmitHandler?: (e: any) => void;
|
|
941
941
|
steps?: any[];
|
|
942
942
|
activeStep: number;
|
|
943
|
-
appUsesApi?: boolean;
|
|
944
943
|
}
|
|
945
944
|
|
|
946
945
|
/**
|
|
@@ -974,6 +973,39 @@ interface StepperProps {
|
|
|
974
973
|
|
|
975
974
|
declare const Stepper: FC<StepperProps>;
|
|
976
975
|
|
|
976
|
+
interface StepperButtonsNoApiProps {
|
|
977
|
+
globalLanguageState?: any;
|
|
978
|
+
changeStepHandler: (activeStep: number) => void;
|
|
979
|
+
nextStepButtonHandler?: (e: any) => void;
|
|
980
|
+
onSubmitHandler?: (e: any) => void;
|
|
981
|
+
steps?: any[];
|
|
982
|
+
activeStep: number;
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
/**
|
|
986
|
+
* Renderar navigationsknappar för steg-navigering i ett flerstegsformulär.
|
|
987
|
+
*
|
|
988
|
+
* Funktionalitet:
|
|
989
|
+
* Visar en "Tillbaka"-knapp när activeStep > 0.
|
|
990
|
+
* Visar "Nästa"-knappen fram tills sista steget.
|
|
991
|
+
* Byter "Nästa"-knappen till "Skicka" vid sista steget.
|
|
992
|
+
*
|
|
993
|
+
* @param {Object} globalLanguageState Objekt med språksträngar för knapparna.
|
|
994
|
+
* Förväntas innehålla: backButton, forwardButton, sendButton.
|
|
995
|
+
*
|
|
996
|
+
* @param {Function} changeStepHandler Callback när användaren går bakåt i stegen.
|
|
997
|
+
*
|
|
998
|
+
* @param {Function} nextStepButtonHandler Callback när användaren går till nästa steg.
|
|
999
|
+
*
|
|
1000
|
+
* @param {Function} onSubmitHandler Callback när sista steget nås och formuläret ska skickas in.
|
|
1001
|
+
*
|
|
1002
|
+
* @param {Array} steps Lista över alla steg i formuläret.
|
|
1003
|
+
* Används för att räkna ut sista stegnumret.
|
|
1004
|
+
*
|
|
1005
|
+
* @param {number} activeStep Det aktuella steget i flerstegsformuläret.
|
|
1006
|
+
*/
|
|
1007
|
+
declare const StepperButtonsNoApi: FC<StepperButtonsNoApiProps>;
|
|
1008
|
+
|
|
977
1009
|
interface ValidationErrorSummaryListProps {
|
|
978
1010
|
questions: any[];
|
|
979
1011
|
activatedLanguage: string;
|
|
@@ -1003,4 +1035,4 @@ interface FormStatusMessagesProps {
|
|
|
1003
1035
|
*/
|
|
1004
1036
|
declare const FormStatusMessagesScreenReader: React$1.FC<FormStatusMessagesProps>;
|
|
1005
1037
|
|
|
1006
|
-
export { AddFiles as AddFilesStandard, AlertInTextStandard, CheckboxGroup as CheckboxGroupStandard, Collapse, CookieBanner, type CookieConsentConfig, EditPreviewLink as EditPreviewLinkStandard, Footer as FooterStandard, FormStatusMessagesScreenReader, Header as HeaderStandard, type IAppSettings, type IAppSettingsCookies, type IApplicationContent, type IFormState, type IOption, type IPTSLink, type IQuestion, type IQuestionExtraAttribute, type IStepObject, type IStepQuestionData, type ITextBlock, InputInfoOnly as InfoOnlyStandard, type LanguageSupportConfig, LinkList as LinkListStandard, LinkStandard, Modal as ModalStandard, MultipleCheckboxes as MultipleCheckboxesStandard, Navigation, NavigationHeader, PrincipleOfPublicity as PrincipleOfPublicityStandard, QuestionGroup, QuestionRenderer, InputRadio as RadioMultipleStandard, SearchBar, SingleCheckbox as SingleCheckboxStandard, SkipLink as SkipLinkStandard, StartApplicationButton, StepperButtons as StepperButtonsStandard, Stepper as StepperStandard, InputTextarea as TextAreaStandard, TextBody, TextFieldStandard, ValidationErrorSummaryList, buildStepCategoryGroupQuestionStructure, createApiDataObject, createCookieConsent, createFormSlice, createGlobalLanguageSlice, createGlobalLanguageSlice as createLanguageSlice, createFormSlice as createQuestionsSlice, findVisibleQuestionsWithValidationErrors, focusElement, getGroupCheckIds, hasQuestionValidationError, isQuestionDependencySatisfied, isScriptLoaded, makeFormSelectors, makeglobalLanguageSelectors as makeLanguageSelectors, makeFormSelectors as makeQuestionsSelectors, makeglobalLanguageSelectors, preparePreviewData, removeScriptById, toggleScriptByConsent, updateQuestionsAndCategoriesVisibilityAndErrors, useCookieConsent, useFormStatusModal, useInputMethodDetection, usePTSPageTitle };
|
|
1038
|
+
export { AddFiles as AddFilesStandard, AlertInTextStandard, CheckboxGroup as CheckboxGroupStandard, Collapse, CookieBanner, type CookieConsentConfig, EditPreviewLink as EditPreviewLinkStandard, Footer as FooterStandard, FormStatusMessagesScreenReader, Header as HeaderStandard, type IAppSettings, type IAppSettingsCookies, type IApplicationContent, type IFormState, type IOption, type IPTSLink, type IQuestion, type IQuestionExtraAttribute, type IStepObject, type IStepQuestionData, type ITextBlock, InputInfoOnly as InfoOnlyStandard, type LanguageSupportConfig, LinkList as LinkListStandard, LinkStandard, Modal as ModalStandard, MultipleCheckboxes as MultipleCheckboxesStandard, Navigation, NavigationHeader, PrincipleOfPublicity as PrincipleOfPublicityStandard, QuestionGroup, QuestionRenderer, InputRadio as RadioMultipleStandard, SearchBar, SingleCheckbox as SingleCheckboxStandard, SkipLink as SkipLinkStandard, StartApplicationButton, StepperButtonsNoApi as StepperButtonsNoApiStandard, StepperButtons as StepperButtonsStandard, Stepper as StepperStandard, InputTextarea as TextAreaStandard, TextBody, TextFieldStandard, ValidationErrorSummaryList, buildStepCategoryGroupQuestionStructure, createApiDataObject, createCookieConsent, createFormSlice, createGlobalLanguageSlice, createGlobalLanguageSlice as createLanguageSlice, createFormSlice as createQuestionsSlice, findVisibleQuestionsWithValidationErrors, focusElement, getGroupCheckIds, hasQuestionValidationError, isQuestionDependencySatisfied, isScriptLoaded, makeFormSelectors, makeglobalLanguageSelectors as makeLanguageSelectors, makeFormSelectors as makeQuestionsSelectors, makeglobalLanguageSelectors, preparePreviewData, removeScriptById, toggleScriptByConsent, updateQuestionsAndCategoriesVisibilityAndErrors, useCookieConsent, useFormStatusModal, useInputMethodDetection, usePTSPageTitle };
|
package/dist/index.js
CHANGED
|
@@ -54,6 +54,7 @@ __export(index_exports, {
|
|
|
54
54
|
SingleCheckboxStandard: () => SingleCheckboxStandard_default,
|
|
55
55
|
SkipLinkStandard: () => SkipLinkStandard_default,
|
|
56
56
|
StartApplicationButton: () => StartApplicationButton_default,
|
|
57
|
+
StepperButtonsNoApiStandard: () => StepperButtonsNoApiStandard_default,
|
|
57
58
|
StepperButtonsStandard: () => StepperButtonsStandard_default,
|
|
58
59
|
StepperStandard: () => StepperStandard_default,
|
|
59
60
|
TextAreaStandard: () => TextAreaStandard_default,
|
|
@@ -3980,8 +3981,7 @@ var StepperButtons = ({
|
|
|
3980
3981
|
nextStepButtonHandler,
|
|
3981
3982
|
onSubmitHandler,
|
|
3982
3983
|
steps,
|
|
3983
|
-
activeStep
|
|
3984
|
-
appUsesApi = true
|
|
3984
|
+
activeStep
|
|
3985
3985
|
}) => {
|
|
3986
3986
|
const totalSteps = steps ? steps.length : "";
|
|
3987
3987
|
return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "pts-stepperButtons-container", children: [
|
|
@@ -4001,9 +4001,8 @@ var StepperButtons = ({
|
|
|
4001
4001
|
className: "pts-forwardButton",
|
|
4002
4002
|
onClick: activeStep !== totalSteps ? nextStepButtonHandler : onSubmitHandler,
|
|
4003
4003
|
children: [
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
!appUsesApi && activeStep === totalSteps && globalLanguageState ? globalLanguageState.restartButton : "Starta om"
|
|
4004
|
+
activeStep !== totalSteps && globalLanguageState ? globalLanguageState.forwardButton : "",
|
|
4005
|
+
activeStep === totalSteps && globalLanguageState ? globalLanguageState.sendButton : ""
|
|
4007
4006
|
]
|
|
4008
4007
|
}
|
|
4009
4008
|
)
|
|
@@ -4054,8 +4053,54 @@ var Stepper = ({ arraySteps = [], activeStep = 1 }) => {
|
|
|
4054
4053
|
};
|
|
4055
4054
|
var StepperStandard_default = Stepper;
|
|
4056
4055
|
|
|
4057
|
-
// src/components/
|
|
4056
|
+
// src/components/stepper/StepperButtonsNoApiStandard/StepperButtonsNoApiStandard.tsx
|
|
4058
4057
|
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
4058
|
+
var StepperButtonsNoApi = ({
|
|
4059
|
+
globalLanguageState,
|
|
4060
|
+
changeStepHandler,
|
|
4061
|
+
nextStepButtonHandler,
|
|
4062
|
+
onSubmitHandler,
|
|
4063
|
+
steps,
|
|
4064
|
+
activeStep
|
|
4065
|
+
}) => {
|
|
4066
|
+
const totalSteps = steps ? steps.length : "";
|
|
4067
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "pts-StepperButtonsNoApi-container", children: [
|
|
4068
|
+
activeStep === 0 && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_jsx_runtime39.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
4069
|
+
"button",
|
|
4070
|
+
{
|
|
4071
|
+
type: "button",
|
|
4072
|
+
className: "pts-forwardButton",
|
|
4073
|
+
onClick: activeStep !== totalSteps ? nextStepButtonHandler : onSubmitHandler,
|
|
4074
|
+
children: activeStep !== totalSteps && globalLanguageState ? globalLanguageState.forwardButton : ""
|
|
4075
|
+
}
|
|
4076
|
+
) }),
|
|
4077
|
+
activeStep !== 0 && activeStep !== totalSteps && /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_jsx_runtime39.Fragment, { children: [
|
|
4078
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
4079
|
+
"button",
|
|
4080
|
+
{
|
|
4081
|
+
onClick: () => changeStepHandler(activeStep - 1),
|
|
4082
|
+
className: "pts-backButton",
|
|
4083
|
+
type: "button",
|
|
4084
|
+
children: globalLanguageState ? globalLanguageState.backButton : "<<"
|
|
4085
|
+
}
|
|
4086
|
+
),
|
|
4087
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
4088
|
+
"button",
|
|
4089
|
+
{
|
|
4090
|
+
type: "button",
|
|
4091
|
+
className: "pts-forwardButton",
|
|
4092
|
+
onClick: activeStep !== totalSteps ? nextStepButtonHandler : onSubmitHandler,
|
|
4093
|
+
children: activeStep !== totalSteps && globalLanguageState ? globalLanguageState.forwardButton : ""
|
|
4094
|
+
}
|
|
4095
|
+
)
|
|
4096
|
+
] }),
|
|
4097
|
+
activeStep === totalSteps && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("button", { onClick: () => changeStepHandler(0), className: "pts-backButton", type: "button", children: globalLanguageState && globalLanguageState.restartButton ? globalLanguageState.restartButton : "Starta om" })
|
|
4098
|
+
] });
|
|
4099
|
+
};
|
|
4100
|
+
var StepperButtonsNoApiStandard_default = StepperButtonsNoApi;
|
|
4101
|
+
|
|
4102
|
+
// src/components/validation-and-status/ValidationErrorSummaryList/ValidationErrorSummaryList.tsx
|
|
4103
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
4059
4104
|
var ValidationErrorSummaryList = ({
|
|
4060
4105
|
validationErrorsList,
|
|
4061
4106
|
questions,
|
|
@@ -4092,7 +4137,7 @@ var ValidationErrorSummaryList = ({
|
|
|
4092
4137
|
}, 300);
|
|
4093
4138
|
}
|
|
4094
4139
|
}
|
|
4095
|
-
if (!validationErrorsList.length) return /* @__PURE__ */ (0,
|
|
4140
|
+
if (!validationErrorsList.length) return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_jsx_runtime40.Fragment, {});
|
|
4096
4141
|
const filteredIds = filterIdsByGroupCheck(validationErrorsList, questions);
|
|
4097
4142
|
const count = filteredIds.length;
|
|
4098
4143
|
const title = summaryText.replace("{count}", count.toString()).replace(
|
|
@@ -4104,11 +4149,11 @@ var ValidationErrorSummaryList = ({
|
|
|
4104
4149
|
const found = questions.find((item) => item.id === id);
|
|
4105
4150
|
return (_a = found == null ? void 0 : found.validationSummaryLabel) != null ? _a : found == null ? void 0 : found.questionLabel;
|
|
4106
4151
|
}
|
|
4107
|
-
return /* @__PURE__ */ (0,
|
|
4108
|
-
/* @__PURE__ */ (0,
|
|
4109
|
-
/* @__PURE__ */ (0,
|
|
4110
|
-
/* @__PURE__ */ (0,
|
|
4111
|
-
/* @__PURE__ */ (0,
|
|
4152
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: `pts-errorSummary-container pts-root-error ${validationErrorsList.length === 0 ? "cleanPadding" : ""}`, children: [
|
|
4153
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { "aria-hidden": "true", className: "errorDot", children: "!" }),
|
|
4154
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "errorSummary-content", id: "pts-errorSummary-content", children: [
|
|
4155
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("h2", { id: "errorSummary-headline", children: title }),
|
|
4156
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("ul", { id: "errorSummary-ul", children: filteredIds.map((questionId, i) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
4112
4157
|
"a",
|
|
4113
4158
|
{
|
|
4114
4159
|
href: "#",
|
|
@@ -4126,11 +4171,11 @@ var ValidationErrorSummaryList = ({
|
|
|
4126
4171
|
var ValidationErrorSummaryList_default = ValidationErrorSummaryList;
|
|
4127
4172
|
|
|
4128
4173
|
// src/components/validation-and-status/FormStatusMessagesScreenReader/FormStatusMessagesScreenReader.tsx
|
|
4129
|
-
var
|
|
4174
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
4130
4175
|
var FormStatusMessagesScreenReader = ({ formStatus, activatedLanguage = "sv" }) => {
|
|
4131
|
-
return /* @__PURE__ */ (0,
|
|
4132
|
-
/* @__PURE__ */ (0,
|
|
4133
|
-
/* @__PURE__ */ (0,
|
|
4176
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_jsx_runtime41.Fragment, { children: [
|
|
4177
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("p", { "aria-live": "assertive", children: formStatus === "failed" && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: "pts-root-mandatoryAsterisk", children: activatedLanguage === "en" ? "Something went wrong, please try again later or contact us!" : "N\xE5got gick fel, f\xF6rs\xF6k igen senare eller kontakta oss!" }) }),
|
|
4178
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { "aria-live": "polite", className: "visually-hidden", children: formStatus === "loading" ? activatedLanguage === "en" ? "Your case is being registered. Please do not refresh or close the page." : "Ditt \xE4rende registreras. Uppdatera eller st\xE4ng inte sidan." : "" })
|
|
4134
4179
|
] });
|
|
4135
4180
|
};
|
|
4136
4181
|
var FormStatusMessagesScreenReader_default = FormStatusMessagesScreenReader;
|
|
@@ -4160,6 +4205,7 @@ var FormStatusMessagesScreenReader_default = FormStatusMessagesScreenReader;
|
|
|
4160
4205
|
SingleCheckboxStandard,
|
|
4161
4206
|
SkipLinkStandard,
|
|
4162
4207
|
StartApplicationButton,
|
|
4208
|
+
StepperButtonsNoApiStandard,
|
|
4163
4209
|
StepperButtonsStandard,
|
|
4164
4210
|
StepperStandard,
|
|
4165
4211
|
TextAreaStandard,
|