optimized-react-component-library-xyz123 2.5.8 → 2.5.9

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
@@ -44,6 +44,8 @@ interface IOption {
44
44
  label: string;
45
45
  value?: string;
46
46
  id?: string;
47
+ info?: string;
48
+ optionCategory?: string;
47
49
  }
48
50
  interface IPTSLink {
49
51
  title: string;
@@ -145,8 +147,6 @@ interface IAppSettings {
145
147
  appCookies?: IAppSettingsCookies;
146
148
  appUsesPreview?: boolean;
147
149
  appUsesAsterisk?: boolean;
148
- appUsesResetButton?: boolean;
149
- appUsesApi?: boolean;
150
150
  }
151
151
  type INavigationItem = {
152
152
  label: {
@@ -233,6 +233,15 @@ interface InfoOnlyProps {
233
233
 
234
234
  declare const InputInfoOnly: FC<InfoOnlyProps>;
235
235
 
236
+ interface RadioMultipleWithInfoProps {
237
+ question: IQuestion;
238
+ handleQuestionInputChange: any;
239
+ showPreview?: boolean;
240
+ activatedLanguage?: string;
241
+ }
242
+
243
+ declare const RadioWithInfo: FC<RadioMultipleWithInfoProps>;
244
+
236
245
  /**
237
246
  * Kontrollerar om en fråga har ett valideringsfel baserat på dess egenskaper och valideringstyper.
238
247
  *
@@ -356,7 +365,6 @@ interface LanguageEntry {
356
365
  backButton: string;
357
366
  forwardButton: string;
358
367
  sendButton: string;
359
- restartButton: string;
360
368
  }
361
369
  interface LanguageSupportConfig {
362
370
  activatedLanguage: string;
@@ -369,7 +377,6 @@ interface LanguageState {
369
377
  backButton: string;
370
378
  forwardButton: string;
371
379
  sendButton: string;
372
- restartButton: string;
373
380
  }
374
381
  declare const createGlobalLanguageSlice: (initialConfig: LanguageSupportConfig, options?: {
375
382
  name?: string;
@@ -388,7 +395,6 @@ declare const makeglobalLanguageSelectors: <TState>(selectSlice: (state: TState)
388
395
  backButton: string;
389
396
  forwardButton: string;
390
397
  sendButton: string;
391
- restartButton: string;
392
398
  }) & {
393
399
  clearCache: () => void;
394
400
  resultsCount: () => number;
@@ -401,7 +407,6 @@ declare const makeglobalLanguageSelectors: <TState>(selectSlice: (state: TState)
401
407
  backButton: string;
402
408
  forwardButton: string;
403
409
  sendButton: string;
404
- restartButton: string;
405
410
  };
406
411
  memoizedResultFunc: ((resultFuncArgs_0: LanguageState, resultFuncArgs_1: string) => {
407
412
  activatedLanguage: string;
@@ -410,7 +415,6 @@ declare const makeglobalLanguageSelectors: <TState>(selectSlice: (state: TState)
410
415
  backButton: string;
411
416
  forwardButton: string;
412
417
  sendButton: string;
413
- restartButton: string;
414
418
  }) & {
415
419
  clearCache: () => void;
416
420
  resultsCount: () => number;
@@ -423,7 +427,6 @@ declare const makeglobalLanguageSelectors: <TState>(selectSlice: (state: TState)
423
427
  backButton: string;
424
428
  forwardButton: string;
425
429
  sendButton: string;
426
- restartButton: string;
427
430
  };
428
431
  dependencies: [(state: TState) => LanguageState, (_: TState, activatedLanguage: string) => string];
429
432
  recomputations: () => number;
@@ -979,39 +982,6 @@ interface StepperProps {
979
982
 
980
983
  declare const Stepper: FC<StepperProps>;
981
984
 
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
- }
990
-
991
- /**
992
- * Renderar navigationsknappar för steg-navigering i ett flerstegsformulär.
993
- *
994
- * Funktionalitet:
995
- * Visar en "Tillbaka"-knapp när activeStep > 0.
996
- * Visar "Nästa"-knappen fram tills sista steget.
997
- * Byter "Nästa"-knappen till "Skicka" vid sista steget.
998
- *
999
- * @param {Object} globalLanguageState Objekt med språksträngar för knapparna.
1000
- * Förväntas innehålla: backButton, forwardButton, sendButton.
1001
- *
1002
- * @param {Function} changeStepHandler Callback när användaren går bakåt i stegen.
1003
- *
1004
- * @param {Function} nextStepButtonHandler Callback när användaren går till nästa steg.
1005
- *
1006
- * @param {Function} onSubmitHandler Callback när sista steget nås och formuläret ska skickas in.
1007
- *
1008
- * @param {Array} steps Lista över alla steg i formuläret.
1009
- * Används för att räkna ut sista stegnumret.
1010
- *
1011
- * @param {number} activeStep Det aktuella steget i flerstegsformuläret.
1012
- */
1013
- declare const StepperButtonsNoApi: FC<StepperButtonsNoApiProps>;
1014
-
1015
985
  interface ValidationErrorSummaryListProps {
1016
986
  questions: any[];
1017
987
  activatedLanguage: string;
@@ -1041,4 +1011,4 @@ interface FormStatusMessagesProps {
1041
1011
  */
1042
1012
  declare const FormStatusMessagesScreenReader: React$1.FC<FormStatusMessagesProps>;
1043
1013
 
1044
- 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 };
1014
+ 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, RadioWithInfo as RadioMultipleWithInfoStandard, 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 };
package/dist/index.d.ts CHANGED
@@ -44,6 +44,8 @@ interface IOption {
44
44
  label: string;
45
45
  value?: string;
46
46
  id?: string;
47
+ info?: string;
48
+ optionCategory?: string;
47
49
  }
48
50
  interface IPTSLink {
49
51
  title: string;
@@ -145,8 +147,6 @@ interface IAppSettings {
145
147
  appCookies?: IAppSettingsCookies;
146
148
  appUsesPreview?: boolean;
147
149
  appUsesAsterisk?: boolean;
148
- appUsesResetButton?: boolean;
149
- appUsesApi?: boolean;
150
150
  }
151
151
  type INavigationItem = {
152
152
  label: {
@@ -233,6 +233,15 @@ interface InfoOnlyProps {
233
233
 
234
234
  declare const InputInfoOnly: FC<InfoOnlyProps>;
235
235
 
236
+ interface RadioMultipleWithInfoProps {
237
+ question: IQuestion;
238
+ handleQuestionInputChange: any;
239
+ showPreview?: boolean;
240
+ activatedLanguage?: string;
241
+ }
242
+
243
+ declare const RadioWithInfo: FC<RadioMultipleWithInfoProps>;
244
+
236
245
  /**
237
246
  * Kontrollerar om en fråga har ett valideringsfel baserat på dess egenskaper och valideringstyper.
238
247
  *
@@ -356,7 +365,6 @@ interface LanguageEntry {
356
365
  backButton: string;
357
366
  forwardButton: string;
358
367
  sendButton: string;
359
- restartButton: string;
360
368
  }
361
369
  interface LanguageSupportConfig {
362
370
  activatedLanguage: string;
@@ -369,7 +377,6 @@ interface LanguageState {
369
377
  backButton: string;
370
378
  forwardButton: string;
371
379
  sendButton: string;
372
- restartButton: string;
373
380
  }
374
381
  declare const createGlobalLanguageSlice: (initialConfig: LanguageSupportConfig, options?: {
375
382
  name?: string;
@@ -388,7 +395,6 @@ declare const makeglobalLanguageSelectors: <TState>(selectSlice: (state: TState)
388
395
  backButton: string;
389
396
  forwardButton: string;
390
397
  sendButton: string;
391
- restartButton: string;
392
398
  }) & {
393
399
  clearCache: () => void;
394
400
  resultsCount: () => number;
@@ -401,7 +407,6 @@ declare const makeglobalLanguageSelectors: <TState>(selectSlice: (state: TState)
401
407
  backButton: string;
402
408
  forwardButton: string;
403
409
  sendButton: string;
404
- restartButton: string;
405
410
  };
406
411
  memoizedResultFunc: ((resultFuncArgs_0: LanguageState, resultFuncArgs_1: string) => {
407
412
  activatedLanguage: string;
@@ -410,7 +415,6 @@ declare const makeglobalLanguageSelectors: <TState>(selectSlice: (state: TState)
410
415
  backButton: string;
411
416
  forwardButton: string;
412
417
  sendButton: string;
413
- restartButton: string;
414
418
  }) & {
415
419
  clearCache: () => void;
416
420
  resultsCount: () => number;
@@ -423,7 +427,6 @@ declare const makeglobalLanguageSelectors: <TState>(selectSlice: (state: TState)
423
427
  backButton: string;
424
428
  forwardButton: string;
425
429
  sendButton: string;
426
- restartButton: string;
427
430
  };
428
431
  dependencies: [(state: TState) => LanguageState, (_: TState, activatedLanguage: string) => string];
429
432
  recomputations: () => number;
@@ -979,39 +982,6 @@ interface StepperProps {
979
982
 
980
983
  declare const Stepper: FC<StepperProps>;
981
984
 
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
- }
990
-
991
- /**
992
- * Renderar navigationsknappar för steg-navigering i ett flerstegsformulär.
993
- *
994
- * Funktionalitet:
995
- * Visar en "Tillbaka"-knapp när activeStep > 0.
996
- * Visar "Nästa"-knappen fram tills sista steget.
997
- * Byter "Nästa"-knappen till "Skicka" vid sista steget.
998
- *
999
- * @param {Object} globalLanguageState Objekt med språksträngar för knapparna.
1000
- * Förväntas innehålla: backButton, forwardButton, sendButton.
1001
- *
1002
- * @param {Function} changeStepHandler Callback när användaren går bakåt i stegen.
1003
- *
1004
- * @param {Function} nextStepButtonHandler Callback när användaren går till nästa steg.
1005
- *
1006
- * @param {Function} onSubmitHandler Callback när sista steget nås och formuläret ska skickas in.
1007
- *
1008
- * @param {Array} steps Lista över alla steg i formuläret.
1009
- * Används för att räkna ut sista stegnumret.
1010
- *
1011
- * @param {number} activeStep Det aktuella steget i flerstegsformuläret.
1012
- */
1013
- declare const StepperButtonsNoApi: FC<StepperButtonsNoApiProps>;
1014
-
1015
985
  interface ValidationErrorSummaryListProps {
1016
986
  questions: any[];
1017
987
  activatedLanguage: string;
@@ -1041,4 +1011,4 @@ interface FormStatusMessagesProps {
1041
1011
  */
1042
1012
  declare const FormStatusMessagesScreenReader: React$1.FC<FormStatusMessagesProps>;
1043
1013
 
1044
- 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 };
1014
+ 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, RadioWithInfo as RadioMultipleWithInfoStandard, 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 };