optimized-react-component-library-xyz123 2.5.7 → 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
  *
@@ -973,39 +982,6 @@ interface StepperProps {
973
982
 
974
983
  declare const Stepper: FC<StepperProps>;
975
984
 
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
-
1009
985
  interface ValidationErrorSummaryListProps {
1010
986
  questions: any[];
1011
987
  activatedLanguage: string;
@@ -1035,4 +1011,4 @@ interface FormStatusMessagesProps {
1035
1011
  */
1036
1012
  declare const FormStatusMessagesScreenReader: React$1.FC<FormStatusMessagesProps>;
1037
1013
 
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 };
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
  *
@@ -973,39 +982,6 @@ interface StepperProps {
973
982
 
974
983
  declare const Stepper: FC<StepperProps>;
975
984
 
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
-
1009
985
  interface ValidationErrorSummaryListProps {
1010
986
  questions: any[];
1011
987
  activatedLanguage: string;
@@ -1035,4 +1011,4 @@ interface FormStatusMessagesProps {
1035
1011
  */
1036
1012
  declare const FormStatusMessagesScreenReader: React$1.FC<FormStatusMessagesProps>;
1037
1013
 
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 };
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 };