optimized-react-component-library-xyz123 2.3.2 → 2.5.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
@@ -1,4 +1,4 @@
1
- import React$1, { FC } from 'react';
1
+ import React$1, { ComponentType, SVGProps, FC, ElementType, RefObject, ReactNode } from 'react';
2
2
  import * as reselect from 'reselect';
3
3
  import * as _reduxjs_toolkit from '@reduxjs/toolkit';
4
4
  import { PayloadAction, ActionReducerMapBuilder } from '@reduxjs/toolkit';
@@ -49,6 +49,10 @@ interface IPTSLink {
49
49
  title: string;
50
50
  url: string;
51
51
  ariaLabel?: string;
52
+ activatedLanguage?: string;
53
+ openTarget?: string;
54
+ icon?: ComponentType<SVGProps<SVGSVGElement>>;
55
+ iconType?: string;
52
56
  }
53
57
  interface IStepObject {
54
58
  step: number;
@@ -140,7 +144,16 @@ interface IAppSettings {
140
144
  appUsesNavigation: boolean;
141
145
  appCookies?: IAppSettingsCookies;
142
146
  appUsesPreview?: boolean;
147
+ appUsesAsterisk?: boolean;
143
148
  }
149
+ type INavigationItem = {
150
+ label: {
151
+ sv: string;
152
+ en: string;
153
+ };
154
+ href: string;
155
+ children?: INavigationItem[];
156
+ };
144
157
 
145
158
  interface RadioProps {
146
159
  question: IQuestion;
@@ -792,6 +805,46 @@ interface HeaderProps {
792
805
 
793
806
  declare const Header: FC<HeaderProps>;
794
807
 
808
+ interface NavigationHeaderProps {
809
+ SetActivatedLanguage?: (language: string) => void;
810
+ headline?: string;
811
+ homelink?: string;
812
+ activatedLanguage?: string;
813
+ useLanguage?: boolean;
814
+ useNavigationMenu: boolean;
815
+ useSearch?: boolean;
816
+ menuLinks: INavigationItem[];
817
+ linkComponent?: ElementType;
818
+ noLogoLink?: boolean;
819
+ }
820
+
821
+ declare const NavigationHeader: FC<NavigationHeaderProps>;
822
+
823
+ interface NavigationProps {
824
+ setIsMenyOpen?: (open: boolean) => void;
825
+ activatedLanguage?: string;
826
+ menuLinks?: INavigationLink[];
827
+ isOpen: boolean;
828
+ openButtonRef: RefObject<HTMLButtonElement | null>;
829
+ linkComponent?: ElementType;
830
+ }
831
+ type Locale = 'sv' | 'en';
832
+ type Label = Record<Locale, string>;
833
+ interface INavigationLink {
834
+ label: Label;
835
+ href: string;
836
+ children?: INavigationLink[];
837
+ openInNewWindow?: boolean;
838
+ }
839
+
840
+ declare const Navigation: FC<NavigationProps>;
841
+
842
+ interface SearchBarProps {
843
+ activatedLanguage: string;
844
+ }
845
+
846
+ declare const SearchBar: FC<SearchBarProps>;
847
+
795
848
  interface ModalProps {
796
849
  showModal: boolean;
797
850
  activatedLanguage?: string;
@@ -804,6 +857,37 @@ type SkipLinkProps = {
804
857
  };
805
858
  declare const SkipLink: FC<SkipLinkProps>;
806
859
 
860
+ interface LinkProps extends IPTSLink {
861
+ customClass?: string;
862
+ openTarget?: string;
863
+ useDownLoad?: boolean;
864
+ linkComponent?: ElementType;
865
+ }
866
+
867
+ declare const LinkStandard: FC<LinkProps>;
868
+
869
+ interface LinkListProps {
870
+ linkArray: IPTSLink[];
871
+ activatedLanguage?: string;
872
+ customCss?: string;
873
+ linkComponent?: ElementType;
874
+ }
875
+
876
+ declare const LinkList: FC<LinkListProps>;
877
+
878
+ interface CollapseProps {
879
+ title: ReactNode;
880
+ children: ReactNode;
881
+ isOpen?: boolean;
882
+ defaultOpen?: boolean;
883
+ onToggle?: (open: boolean) => void;
884
+ id?: string;
885
+ activatedLanguage?: string;
886
+ customClass?: string;
887
+ }
888
+
889
+ declare const Collapse: FC<CollapseProps>;
890
+
807
891
  interface AlertInTextProps {
808
892
  content: string;
809
893
  }
@@ -916,4 +1000,4 @@ interface FormStatusMessagesProps {
916
1000
  */
917
1001
  declare const FormStatusMessagesScreenReader: React$1.FC<FormStatusMessagesProps>;
918
1002
 
919
- export { AddFiles as AddFilesStandard, AlertInTextStandard, CheckboxGroup as CheckboxGroupStandard, 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, Modal as ModalStandard, MultipleCheckboxes as MultipleCheckboxesStandard, PrincipleOfPublicity as PrincipleOfPublicityStandard, QuestionGroup, QuestionRenderer, InputRadio as RadioMultipleStandard, 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 };
1003
+ 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 };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import React$1, { FC } from 'react';
1
+ import React$1, { ComponentType, SVGProps, FC, ElementType, RefObject, ReactNode } from 'react';
2
2
  import * as reselect from 'reselect';
3
3
  import * as _reduxjs_toolkit from '@reduxjs/toolkit';
4
4
  import { PayloadAction, ActionReducerMapBuilder } from '@reduxjs/toolkit';
@@ -49,6 +49,10 @@ interface IPTSLink {
49
49
  title: string;
50
50
  url: string;
51
51
  ariaLabel?: string;
52
+ activatedLanguage?: string;
53
+ openTarget?: string;
54
+ icon?: ComponentType<SVGProps<SVGSVGElement>>;
55
+ iconType?: string;
52
56
  }
53
57
  interface IStepObject {
54
58
  step: number;
@@ -140,7 +144,16 @@ interface IAppSettings {
140
144
  appUsesNavigation: boolean;
141
145
  appCookies?: IAppSettingsCookies;
142
146
  appUsesPreview?: boolean;
147
+ appUsesAsterisk?: boolean;
143
148
  }
149
+ type INavigationItem = {
150
+ label: {
151
+ sv: string;
152
+ en: string;
153
+ };
154
+ href: string;
155
+ children?: INavigationItem[];
156
+ };
144
157
 
145
158
  interface RadioProps {
146
159
  question: IQuestion;
@@ -792,6 +805,46 @@ interface HeaderProps {
792
805
 
793
806
  declare const Header: FC<HeaderProps>;
794
807
 
808
+ interface NavigationHeaderProps {
809
+ SetActivatedLanguage?: (language: string) => void;
810
+ headline?: string;
811
+ homelink?: string;
812
+ activatedLanguage?: string;
813
+ useLanguage?: boolean;
814
+ useNavigationMenu: boolean;
815
+ useSearch?: boolean;
816
+ menuLinks: INavigationItem[];
817
+ linkComponent?: ElementType;
818
+ noLogoLink?: boolean;
819
+ }
820
+
821
+ declare const NavigationHeader: FC<NavigationHeaderProps>;
822
+
823
+ interface NavigationProps {
824
+ setIsMenyOpen?: (open: boolean) => void;
825
+ activatedLanguage?: string;
826
+ menuLinks?: INavigationLink[];
827
+ isOpen: boolean;
828
+ openButtonRef: RefObject<HTMLButtonElement | null>;
829
+ linkComponent?: ElementType;
830
+ }
831
+ type Locale = 'sv' | 'en';
832
+ type Label = Record<Locale, string>;
833
+ interface INavigationLink {
834
+ label: Label;
835
+ href: string;
836
+ children?: INavigationLink[];
837
+ openInNewWindow?: boolean;
838
+ }
839
+
840
+ declare const Navigation: FC<NavigationProps>;
841
+
842
+ interface SearchBarProps {
843
+ activatedLanguage: string;
844
+ }
845
+
846
+ declare const SearchBar: FC<SearchBarProps>;
847
+
795
848
  interface ModalProps {
796
849
  showModal: boolean;
797
850
  activatedLanguage?: string;
@@ -804,6 +857,37 @@ type SkipLinkProps = {
804
857
  };
805
858
  declare const SkipLink: FC<SkipLinkProps>;
806
859
 
860
+ interface LinkProps extends IPTSLink {
861
+ customClass?: string;
862
+ openTarget?: string;
863
+ useDownLoad?: boolean;
864
+ linkComponent?: ElementType;
865
+ }
866
+
867
+ declare const LinkStandard: FC<LinkProps>;
868
+
869
+ interface LinkListProps {
870
+ linkArray: IPTSLink[];
871
+ activatedLanguage?: string;
872
+ customCss?: string;
873
+ linkComponent?: ElementType;
874
+ }
875
+
876
+ declare const LinkList: FC<LinkListProps>;
877
+
878
+ interface CollapseProps {
879
+ title: ReactNode;
880
+ children: ReactNode;
881
+ isOpen?: boolean;
882
+ defaultOpen?: boolean;
883
+ onToggle?: (open: boolean) => void;
884
+ id?: string;
885
+ activatedLanguage?: string;
886
+ customClass?: string;
887
+ }
888
+
889
+ declare const Collapse: FC<CollapseProps>;
890
+
807
891
  interface AlertInTextProps {
808
892
  content: string;
809
893
  }
@@ -916,4 +1000,4 @@ interface FormStatusMessagesProps {
916
1000
  */
917
1001
  declare const FormStatusMessagesScreenReader: React$1.FC<FormStatusMessagesProps>;
918
1002
 
919
- export { AddFiles as AddFilesStandard, AlertInTextStandard, CheckboxGroup as CheckboxGroupStandard, 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, Modal as ModalStandard, MultipleCheckboxes as MultipleCheckboxesStandard, PrincipleOfPublicity as PrincipleOfPublicityStandard, QuestionGroup, QuestionRenderer, InputRadio as RadioMultipleStandard, 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 };
1003
+ 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 };