optimized-react-component-library-xyz123 2.6.1 → 2.7.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.d.mts CHANGED
@@ -356,6 +356,7 @@ interface LanguageEntry {
356
356
  backButton: string;
357
357
  forwardButton: string;
358
358
  sendButton: string;
359
+ restartButton: string;
359
360
  }
360
361
  interface LanguageSupportConfig {
361
362
  activatedLanguage: string;
@@ -368,6 +369,7 @@ interface LanguageState {
368
369
  backButton: string;
369
370
  forwardButton: string;
370
371
  sendButton: string;
372
+ restartButton: string;
371
373
  }
372
374
  declare const createGlobalLanguageSlice: (initialConfig: LanguageSupportConfig, options?: {
373
375
  name?: string;
@@ -386,6 +388,7 @@ declare const makeglobalLanguageSelectors: <TState>(selectSlice: (state: TState)
386
388
  backButton: string;
387
389
  forwardButton: string;
388
390
  sendButton: string;
391
+ restartButton: string;
389
392
  }) & {
390
393
  clearCache: () => void;
391
394
  resultsCount: () => number;
@@ -398,6 +401,7 @@ declare const makeglobalLanguageSelectors: <TState>(selectSlice: (state: TState)
398
401
  backButton: string;
399
402
  forwardButton: string;
400
403
  sendButton: string;
404
+ restartButton: string;
401
405
  };
402
406
  memoizedResultFunc: ((resultFuncArgs_0: LanguageState, resultFuncArgs_1: string) => {
403
407
  activatedLanguage: string;
@@ -406,6 +410,7 @@ declare const makeglobalLanguageSelectors: <TState>(selectSlice: (state: TState)
406
410
  backButton: string;
407
411
  forwardButton: string;
408
412
  sendButton: string;
413
+ restartButton: string;
409
414
  }) & {
410
415
  clearCache: () => void;
411
416
  resultsCount: () => number;
@@ -418,6 +423,7 @@ declare const makeglobalLanguageSelectors: <TState>(selectSlice: (state: TState)
418
423
  backButton: string;
419
424
  forwardButton: string;
420
425
  sendButton: string;
426
+ restartButton: string;
421
427
  };
422
428
  dependencies: [(state: TState) => LanguageState, (_: TState, activatedLanguage: string) => string];
423
429
  recomputations: () => number;
@@ -973,6 +979,40 @@ interface StepperProps {
973
979
 
974
980
  declare const Stepper: FC<StepperProps>;
975
981
 
982
+ interface StepperButtonsNoApiProps {
983
+ globalLanguageState?: any;
984
+ changeStepHandler: (activeStep: number) => void;
985
+ nextStepButtonHandler?: (e: any) => void;
986
+ onSubmitHandler?: (e: any) => void;
987
+ steps?: any[];
988
+ activeStep: number;
989
+ appUsesResetButton?: boolean;
990
+ }
991
+
992
+ /**
993
+ * Renderar navigationsknappar för steg-navigering i ett flerstegsformulär.
994
+ *
995
+ * Funktionalitet:
996
+ * Visar en "Tillbaka"-knapp när activeStep > 0.
997
+ * Visar "Nästa"-knappen fram tills sista steget.
998
+ * Byter "Nästa"-knappen till "Skicka" vid sista steget.
999
+ *
1000
+ * @param {Object} globalLanguageState Objekt med språksträngar för knapparna.
1001
+ * Förväntas innehålla: backButton, forwardButton, sendButton.
1002
+ *
1003
+ * @param {Function} changeStepHandler Callback när användaren går bakåt i stegen.
1004
+ *
1005
+ * @param {Function} nextStepButtonHandler Callback när användaren går till nästa steg.
1006
+ *
1007
+ * @param {Function} onSubmitHandler Callback när sista steget nås och formuläret ska skickas in.
1008
+ *
1009
+ * @param {Array} steps Lista över alla steg i formuläret.
1010
+ * Används för att räkna ut sista stegnumret.
1011
+ *
1012
+ * @param {number} activeStep Det aktuella steget i flerstegsformuläret.
1013
+ */
1014
+ declare const StepperButtonsNoApi: FC<StepperButtonsNoApiProps>;
1015
+
976
1016
  interface ValidationErrorSummaryListProps {
977
1017
  questions: any[];
978
1018
  activatedLanguage: string;
@@ -1002,4 +1042,4 @@ interface FormStatusMessagesProps {
1002
1042
  */
1003
1043
  declare const FormStatusMessagesScreenReader: React$1.FC<FormStatusMessagesProps>;
1004
1044
 
1005
- 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 };
1045
+ 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
@@ -356,6 +356,7 @@ interface LanguageEntry {
356
356
  backButton: string;
357
357
  forwardButton: string;
358
358
  sendButton: string;
359
+ restartButton: string;
359
360
  }
360
361
  interface LanguageSupportConfig {
361
362
  activatedLanguage: string;
@@ -368,6 +369,7 @@ interface LanguageState {
368
369
  backButton: string;
369
370
  forwardButton: string;
370
371
  sendButton: string;
372
+ restartButton: string;
371
373
  }
372
374
  declare const createGlobalLanguageSlice: (initialConfig: LanguageSupportConfig, options?: {
373
375
  name?: string;
@@ -386,6 +388,7 @@ declare const makeglobalLanguageSelectors: <TState>(selectSlice: (state: TState)
386
388
  backButton: string;
387
389
  forwardButton: string;
388
390
  sendButton: string;
391
+ restartButton: string;
389
392
  }) & {
390
393
  clearCache: () => void;
391
394
  resultsCount: () => number;
@@ -398,6 +401,7 @@ declare const makeglobalLanguageSelectors: <TState>(selectSlice: (state: TState)
398
401
  backButton: string;
399
402
  forwardButton: string;
400
403
  sendButton: string;
404
+ restartButton: string;
401
405
  };
402
406
  memoizedResultFunc: ((resultFuncArgs_0: LanguageState, resultFuncArgs_1: string) => {
403
407
  activatedLanguage: string;
@@ -406,6 +410,7 @@ declare const makeglobalLanguageSelectors: <TState>(selectSlice: (state: TState)
406
410
  backButton: string;
407
411
  forwardButton: string;
408
412
  sendButton: string;
413
+ restartButton: string;
409
414
  }) & {
410
415
  clearCache: () => void;
411
416
  resultsCount: () => number;
@@ -418,6 +423,7 @@ declare const makeglobalLanguageSelectors: <TState>(selectSlice: (state: TState)
418
423
  backButton: string;
419
424
  forwardButton: string;
420
425
  sendButton: string;
426
+ restartButton: string;
421
427
  };
422
428
  dependencies: [(state: TState) => LanguageState, (_: TState, activatedLanguage: string) => string];
423
429
  recomputations: () => number;
@@ -973,6 +979,40 @@ interface StepperProps {
973
979
 
974
980
  declare const Stepper: FC<StepperProps>;
975
981
 
982
+ interface StepperButtonsNoApiProps {
983
+ globalLanguageState?: any;
984
+ changeStepHandler: (activeStep: number) => void;
985
+ nextStepButtonHandler?: (e: any) => void;
986
+ onSubmitHandler?: (e: any) => void;
987
+ steps?: any[];
988
+ activeStep: number;
989
+ appUsesResetButton?: boolean;
990
+ }
991
+
992
+ /**
993
+ * Renderar navigationsknappar för steg-navigering i ett flerstegsformulär.
994
+ *
995
+ * Funktionalitet:
996
+ * Visar en "Tillbaka"-knapp när activeStep > 0.
997
+ * Visar "Nästa"-knappen fram tills sista steget.
998
+ * Byter "Nästa"-knappen till "Skicka" vid sista steget.
999
+ *
1000
+ * @param {Object} globalLanguageState Objekt med språksträngar för knapparna.
1001
+ * Förväntas innehålla: backButton, forwardButton, sendButton.
1002
+ *
1003
+ * @param {Function} changeStepHandler Callback när användaren går bakåt i stegen.
1004
+ *
1005
+ * @param {Function} nextStepButtonHandler Callback när användaren går till nästa steg.
1006
+ *
1007
+ * @param {Function} onSubmitHandler Callback när sista steget nås och formuläret ska skickas in.
1008
+ *
1009
+ * @param {Array} steps Lista över alla steg i formuläret.
1010
+ * Används för att räkna ut sista stegnumret.
1011
+ *
1012
+ * @param {number} activeStep Det aktuella steget i flerstegsformuläret.
1013
+ */
1014
+ declare const StepperButtonsNoApi: FC<StepperButtonsNoApiProps>;
1015
+
976
1016
  interface ValidationErrorSummaryListProps {
977
1017
  questions: any[];
978
1018
  activatedLanguage: string;
@@ -1002,4 +1042,4 @@ interface FormStatusMessagesProps {
1002
1042
  */
1003
1043
  declare const FormStatusMessagesScreenReader: React$1.FC<FormStatusMessagesProps>;
1004
1044
 
1005
- 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 };
1045
+ 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,
@@ -2334,7 +2335,8 @@ var createGlobalLanguageSlice = (initialConfig, options) => {
2334
2335
  languageSupportLoaded: true,
2335
2336
  backButton: initialLang.backButton,
2336
2337
  forwardButton: initialLang.forwardButton,
2337
- sendButton: initialLang.sendButton
2338
+ sendButton: initialLang.sendButton,
2339
+ restartButton: initialLang.restartButton
2338
2340
  };
2339
2341
  const slice = (0, import_toolkit.createSlice)({
2340
2342
  name,
@@ -2349,6 +2351,7 @@ var createGlobalLanguageSlice = (initialConfig, options) => {
2349
2351
  state.backButton = lang.backButton;
2350
2352
  state.forwardButton = lang.forwardButton;
2351
2353
  state.sendButton = lang.sendButton;
2354
+ state.restartButton = lang.restartButton;
2352
2355
  },
2353
2356
  setGlobalLangauage: (state, action) => {
2354
2357
  state.languageSupport = action.payload.languageSupport;
@@ -2357,6 +2360,7 @@ var createGlobalLanguageSlice = (initialConfig, options) => {
2357
2360
  state.backButton = lang.backButton;
2358
2361
  state.forwardButton = lang.forwardButton;
2359
2362
  state.sendButton = lang.sendButton;
2363
+ state.restartButton = lang.restartButton;
2360
2364
  state.languageSupportLoaded = true;
2361
2365
  }
2362
2366
  }
@@ -2379,7 +2383,8 @@ var makeglobalLanguageSelectors = (selectSlice) => {
2379
2383
  ...applicationContent,
2380
2384
  backButton: match.backButton,
2381
2385
  forwardButton: match.forwardButton,
2382
- sendButton: match.sendButton
2386
+ sendButton: match.sendButton,
2387
+ restartButton: match.restartButton
2383
2388
  };
2384
2389
  }
2385
2390
  );
@@ -4191,8 +4196,55 @@ var Stepper = ({ arraySteps = [], activeStep = 1 }) => {
4191
4196
  };
4192
4197
  var StepperStandard_default = Stepper;
4193
4198
 
4194
- // src/components/validation-and-status/ValidationErrorSummaryList/ValidationErrorSummaryList.tsx
4199
+ // src/components/stepper/StepperButtonsNoApiStandard/StepperButtonsNoApiStandard.tsx
4195
4200
  var import_jsx_runtime39 = require("react/jsx-runtime");
4201
+ var StepperButtonsNoApi = ({
4202
+ globalLanguageState,
4203
+ changeStepHandler,
4204
+ nextStepButtonHandler,
4205
+ onSubmitHandler,
4206
+ steps,
4207
+ activeStep,
4208
+ appUsesResetButton = true
4209
+ }) => {
4210
+ const totalSteps = steps ? steps.length : "";
4211
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "pts-stepperButtons-container", children: [
4212
+ activeStep === 0 && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_jsx_runtime39.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
4213
+ "button",
4214
+ {
4215
+ type: "button",
4216
+ className: "pts-forwardButton",
4217
+ onClick: activeStep !== totalSteps ? nextStepButtonHandler : onSubmitHandler,
4218
+ children: activeStep !== totalSteps && globalLanguageState ? globalLanguageState.forwardButton : ""
4219
+ }
4220
+ ) }),
4221
+ activeStep !== 0 && activeStep !== totalSteps && /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_jsx_runtime39.Fragment, { children: [
4222
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
4223
+ "button",
4224
+ {
4225
+ onClick: () => changeStepHandler(activeStep - 1),
4226
+ className: "pts-backButton",
4227
+ type: "button",
4228
+ children: globalLanguageState ? globalLanguageState.backButton : "<<"
4229
+ }
4230
+ ),
4231
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
4232
+ "button",
4233
+ {
4234
+ type: "button",
4235
+ className: "pts-forwardButton",
4236
+ onClick: activeStep !== totalSteps ? nextStepButtonHandler : onSubmitHandler,
4237
+ children: activeStep !== totalSteps && globalLanguageState ? globalLanguageState.forwardButton : ""
4238
+ }
4239
+ )
4240
+ ] }),
4241
+ appUsesResetButton && 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" })
4242
+ ] });
4243
+ };
4244
+ var StepperButtonsNoApiStandard_default = StepperButtonsNoApi;
4245
+
4246
+ // src/components/validation-and-status/ValidationErrorSummaryList/ValidationErrorSummaryList.tsx
4247
+ var import_jsx_runtime40 = require("react/jsx-runtime");
4196
4248
  var ValidationErrorSummaryList = ({
4197
4249
  validationErrorsList,
4198
4250
  questions,
@@ -4229,7 +4281,7 @@ var ValidationErrorSummaryList = ({
4229
4281
  }, 300);
4230
4282
  }
4231
4283
  }
4232
- if (!validationErrorsList.length) return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_jsx_runtime39.Fragment, {});
4284
+ if (!validationErrorsList.length) return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_jsx_runtime40.Fragment, {});
4233
4285
  const filteredIds = filterIdsByGroupCheck(validationErrorsList, questions);
4234
4286
  const count = filteredIds.length;
4235
4287
  const title = summaryText.replace("{count}", count.toString()).replace(
@@ -4241,11 +4293,11 @@ var ValidationErrorSummaryList = ({
4241
4293
  const found = questions.find((item) => item.id === id);
4242
4294
  return (_a = found == null ? void 0 : found.validationSummaryLabel) != null ? _a : found == null ? void 0 : found.questionLabel;
4243
4295
  }
4244
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: `pts-errorSummary-container pts-root-error ${validationErrorsList.length === 0 ? "cleanPadding" : ""}`, children: [
4245
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { "aria-hidden": "true", className: "errorDot", children: "!" }),
4246
- /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "errorSummary-content", id: "pts-errorSummary-content", children: [
4247
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("h2", { id: "errorSummary-headline", children: title }),
4248
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("ul", { id: "errorSummary-ul", children: filteredIds.map((questionId, i) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
4296
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: `pts-errorSummary-container pts-root-error ${validationErrorsList.length === 0 ? "cleanPadding" : ""}`, children: [
4297
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { "aria-hidden": "true", className: "errorDot", children: "!" }),
4298
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "errorSummary-content", id: "pts-errorSummary-content", children: [
4299
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("h2", { id: "errorSummary-headline", children: title }),
4300
+ /* @__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)(
4249
4301
  "a",
4250
4302
  {
4251
4303
  href: "#",
@@ -4263,11 +4315,11 @@ var ValidationErrorSummaryList = ({
4263
4315
  var ValidationErrorSummaryList_default = ValidationErrorSummaryList;
4264
4316
 
4265
4317
  // src/components/validation-and-status/FormStatusMessagesScreenReader/FormStatusMessagesScreenReader.tsx
4266
- var import_jsx_runtime40 = require("react/jsx-runtime");
4318
+ var import_jsx_runtime41 = require("react/jsx-runtime");
4267
4319
  var FormStatusMessagesScreenReader = ({ formStatus, activatedLanguage = "sv" }) => {
4268
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(import_jsx_runtime40.Fragment, { children: [
4269
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("p", { "aria-live": "assertive", children: formStatus === "failed" && /* @__PURE__ */ (0, import_jsx_runtime40.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!" }) }),
4270
- /* @__PURE__ */ (0, import_jsx_runtime40.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." : "" })
4320
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_jsx_runtime41.Fragment, { children: [
4321
+ /* @__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!" }) }),
4322
+ /* @__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." : "" })
4271
4323
  ] });
4272
4324
  };
4273
4325
  var FormStatusMessagesScreenReader_default = FormStatusMessagesScreenReader;
@@ -4297,6 +4349,7 @@ var FormStatusMessagesScreenReader_default = FormStatusMessagesScreenReader;
4297
4349
  SingleCheckboxStandard,
4298
4350
  SkipLinkStandard,
4299
4351
  StartApplicationButton,
4352
+ StepperButtonsNoApiStandard,
4300
4353
  StepperButtonsStandard,
4301
4354
  StepperStandard,
4302
4355
  TextAreaStandard,