optimized-react-component-library-xyz123 2.9.6 → 2.10.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
@@ -235,14 +235,23 @@ interface InfoOnlyProps {
235
235
 
236
236
  declare const InputInfoOnly: FC<InfoOnlyProps>;
237
237
 
238
- interface RadioMultipleWithInfoProps {
238
+ interface RadioMultipleWithInfo2Props {
239
239
  question: IQuestion;
240
240
  handleQuestionInputChange: any;
241
241
  showPreview?: boolean;
242
242
  activatedLanguage?: string;
243
243
  }
244
244
 
245
- declare const RadioWithInfo: FC<RadioMultipleWithInfoProps>;
245
+ declare const RadioWithInfo: FC<RadioMultipleWithInfo2Props>;
246
+
247
+ interface DropdownProps {
248
+ question: IQuestion;
249
+ handleQuestionInputChange: any;
250
+ showPreview?: boolean;
251
+ activatedLanguage?: string;
252
+ }
253
+
254
+ declare const CustomDropdownStandard: FC<DropdownProps>;
246
255
 
247
256
  /**
248
257
  * Kontrollerar om en fråga har ett valideringsfel baserat på dess egenskaper och valideringstyper.
@@ -837,6 +846,7 @@ interface NavigationHeaderProps {
837
846
  menuLinks: INavigationItem[];
838
847
  linkComponent?: ElementType;
839
848
  noLogoLink?: boolean;
849
+ navigationCloseFocusId?: string;
840
850
  }
841
851
 
842
852
  declare const NavigationHeader: FC<NavigationHeaderProps>;
@@ -848,6 +858,7 @@ interface NavigationProps {
848
858
  isOpen: boolean;
849
859
  openButtonRef: RefObject<HTMLButtonElement | null>;
850
860
  linkComponent?: ElementType;
861
+ navigationCloseFocusId?: string;
851
862
  }
852
863
  type Locale = 'sv' | 'en';
853
864
  type Label = Record<Locale, string>;
@@ -915,6 +926,17 @@ interface AlertInTextProps {
915
926
 
916
927
  declare const AlertInTextStandard: FC<AlertInTextProps>;
917
928
 
929
+ interface OptionTextBodyProps {
930
+ optionInfoText: string;
931
+ selectedLabel?: string;
932
+ activatedLanguage?: string;
933
+ questionOptionTextId: string;
934
+ hasOptionInfoText?: boolean;
935
+ hideStepperButtons?: boolean;
936
+ }
937
+
938
+ declare const OptionTextBody: FC<OptionTextBodyProps>;
939
+
918
940
  interface PrincipleOfPublicityProps {
919
941
  activatedLanguage?: string;
920
942
  }
@@ -1052,4 +1074,4 @@ interface FormStatusMessagesProps {
1052
1074
  */
1053
1075
  declare const FormStatusMessagesScreenReader: React$1.FC<FormStatusMessagesProps>;
1054
1076
 
1055
- 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, 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 };
1077
+ export { AddFiles as AddFilesStandard, AlertInTextStandard, CheckboxGroup as CheckboxGroupStandard, Collapse, CookieBanner, type CookieConsentConfig, CustomDropdownStandard as DropdownStandard, 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, OptionTextBody, PrincipleOfPublicity as PrincipleOfPublicityStandard, QuestionGroup, QuestionRenderer, InputRadio as RadioMultipleStandard, RadioWithInfo as RadioMultipleWithInfo2Standard, 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
@@ -235,14 +235,23 @@ interface InfoOnlyProps {
235
235
 
236
236
  declare const InputInfoOnly: FC<InfoOnlyProps>;
237
237
 
238
- interface RadioMultipleWithInfoProps {
238
+ interface RadioMultipleWithInfo2Props {
239
239
  question: IQuestion;
240
240
  handleQuestionInputChange: any;
241
241
  showPreview?: boolean;
242
242
  activatedLanguage?: string;
243
243
  }
244
244
 
245
- declare const RadioWithInfo: FC<RadioMultipleWithInfoProps>;
245
+ declare const RadioWithInfo: FC<RadioMultipleWithInfo2Props>;
246
+
247
+ interface DropdownProps {
248
+ question: IQuestion;
249
+ handleQuestionInputChange: any;
250
+ showPreview?: boolean;
251
+ activatedLanguage?: string;
252
+ }
253
+
254
+ declare const CustomDropdownStandard: FC<DropdownProps>;
246
255
 
247
256
  /**
248
257
  * Kontrollerar om en fråga har ett valideringsfel baserat på dess egenskaper och valideringstyper.
@@ -837,6 +846,7 @@ interface NavigationHeaderProps {
837
846
  menuLinks: INavigationItem[];
838
847
  linkComponent?: ElementType;
839
848
  noLogoLink?: boolean;
849
+ navigationCloseFocusId?: string;
840
850
  }
841
851
 
842
852
  declare const NavigationHeader: FC<NavigationHeaderProps>;
@@ -848,6 +858,7 @@ interface NavigationProps {
848
858
  isOpen: boolean;
849
859
  openButtonRef: RefObject<HTMLButtonElement | null>;
850
860
  linkComponent?: ElementType;
861
+ navigationCloseFocusId?: string;
851
862
  }
852
863
  type Locale = 'sv' | 'en';
853
864
  type Label = Record<Locale, string>;
@@ -915,6 +926,17 @@ interface AlertInTextProps {
915
926
 
916
927
  declare const AlertInTextStandard: FC<AlertInTextProps>;
917
928
 
929
+ interface OptionTextBodyProps {
930
+ optionInfoText: string;
931
+ selectedLabel?: string;
932
+ activatedLanguage?: string;
933
+ questionOptionTextId: string;
934
+ hasOptionInfoText?: boolean;
935
+ hideStepperButtons?: boolean;
936
+ }
937
+
938
+ declare const OptionTextBody: FC<OptionTextBodyProps>;
939
+
918
940
  interface PrincipleOfPublicityProps {
919
941
  activatedLanguage?: string;
920
942
  }
@@ -1052,4 +1074,4 @@ interface FormStatusMessagesProps {
1052
1074
  */
1053
1075
  declare const FormStatusMessagesScreenReader: React$1.FC<FormStatusMessagesProps>;
1054
1076
 
1055
- 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, 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 };
1077
+ export { AddFiles as AddFilesStandard, AlertInTextStandard, CheckboxGroup as CheckboxGroupStandard, Collapse, CookieBanner, type CookieConsentConfig, CustomDropdownStandard as DropdownStandard, 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, OptionTextBody, PrincipleOfPublicity as PrincipleOfPublicityStandard, QuestionGroup, QuestionRenderer, InputRadio as RadioMultipleStandard, RadioWithInfo as RadioMultipleWithInfo2Standard, 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 };