optimized-react-component-library-xyz123 2.0.3 → 2.2.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, { ComponentType, SVGProps, FC, ElementType, RefObject, ReactNode } from 'react';
1
+ import React$1, { FC } 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';
@@ -8,7 +8,6 @@ interface IApplicationContent {
8
8
  headline?: string;
9
9
  body?: string;
10
10
  linksForMoreInfo?: Array<IPTSLink>;
11
- alertInTextList?: Array<any>;
12
11
  pageTitle?: string;
13
12
  textblocks?: Array<ITextBlock>;
14
13
  textAboveStartButton?: string;
@@ -29,7 +28,6 @@ interface ITextBlock {
29
28
  headline?: string;
30
29
  body?: string;
31
30
  linksForMoreInfo?: Array<IPTSLink>;
32
- alertInTextList?: Array<any>;
33
31
  pageTitle?: string;
34
32
  textAboveStartButton?: string;
35
33
  }
@@ -48,11 +46,7 @@ interface IOption {
48
46
  interface IPTSLink {
49
47
  title: string;
50
48
  url: string;
51
- ariaLabel?: string;
52
- activatedLanguage?: string;
53
- openTarget?: string;
54
- icon?: ComponentType<SVGProps<SVGSVGElement>>;
55
- iconType?: string;
49
+ ariaLabel: string;
56
50
  }
57
51
  interface IStepObject {
58
52
  step: number;
@@ -144,14 +138,6 @@ interface IAppSettings {
144
138
  appCookies?: IAppSettingsCookies;
145
139
  appUsesPreview?: boolean;
146
140
  }
147
- type INavigationItem = {
148
- label: {
149
- sv: string;
150
- en: string;
151
- };
152
- href: string;
153
- children?: INavigationItem[];
154
- };
155
141
 
156
142
  interface RadioProps {
157
143
  question: IQuestion;
@@ -160,16 +146,7 @@ interface RadioProps {
160
146
  activatedLanguage?: string;
161
147
  }
162
148
 
163
- declare const InputRadio$1: FC<RadioProps>;
164
-
165
- interface RadioWithInfoProps {
166
- question: IQuestion;
167
- handleQuestionInputChange: any;
168
- showPreview?: boolean;
169
- activatedLanguage?: string;
170
- }
171
-
172
- declare const InputRadio: FC<RadioWithInfoProps>;
149
+ declare const InputRadio: FC<RadioProps>;
173
150
 
174
151
  interface MultipleCheckboxesProps {
175
152
  question: IQuestion;
@@ -229,15 +206,6 @@ interface SingleCheckboxProps {
229
206
 
230
207
  declare const SingleCheckbox: FC<SingleCheckboxProps>;
231
208
 
232
- interface InfoOnlyProps {
233
- question: IQuestion;
234
- handleQuestionInputChange: any;
235
- showPreview?: boolean;
236
- activatedLanguage?: string;
237
- }
238
-
239
- declare const InputInfoOnly: FC<InfoOnlyProps>;
240
-
241
209
  /**
242
210
  * Kontrollerar om en fråga har ett valideringsfel baserat på dess egenskaper och valideringstyper.
243
211
  *
@@ -812,55 +780,6 @@ interface HeaderProps {
812
780
 
813
781
  declare const Header: FC<HeaderProps>;
814
782
 
815
- interface NavigationHeaderProps {
816
- SetActivatedLanguage?: (language: string) => void;
817
- headline?: string;
818
- homelink?: string;
819
- activatedLanguage?: string;
820
- useLanguage?: boolean;
821
- useNavigationMenu: boolean;
822
- useSearch?: boolean;
823
- useBreadCrumbs?: boolean;
824
- showNavigationCloseButton?: boolean;
825
- menuLinks: INavigationItem[];
826
- linkComponent?: ElementType;
827
- }
828
-
829
- declare const NavigationHeader: FC<NavigationHeaderProps>;
830
-
831
- interface NavigationProps {
832
- setIsMenyOpen?: (open: boolean) => void;
833
- showCloseButton?: boolean;
834
- activatedLanguage?: string;
835
- menuLinks?: INavigationLink[];
836
- isOpen: boolean;
837
- openButtonRef: RefObject<HTMLButtonElement | null>;
838
- linkComponent?: ElementType;
839
- }
840
- type Locale = 'sv' | 'en';
841
- type Label = Record<Locale, string>;
842
- interface INavigationLink {
843
- label: Label;
844
- href: string;
845
- children?: INavigationLink[];
846
- openInNewWindow?: boolean;
847
- }
848
-
849
- declare const Navigation: FC<NavigationProps>;
850
-
851
- interface BreadCrumbsProps {
852
- activatedLanguage: string;
853
- onLinkClick?: (e: React.MouseEvent) => void;
854
- }
855
-
856
- declare const BreadCrumbs: FC<BreadCrumbsProps>;
857
-
858
- interface SearchBarProps {
859
- activatedLanguage: string;
860
- }
861
-
862
- declare const SearchBar: FC<SearchBarProps>;
863
-
864
783
  interface ModalProps {
865
784
  showModal: boolean;
866
785
  activatedLanguage?: string;
@@ -873,35 +792,6 @@ type SkipLinkProps = {
873
792
  };
874
793
  declare const SkipLink: FC<SkipLinkProps>;
875
794
 
876
- interface LinkProps extends IPTSLink {
877
- customClass?: string;
878
- openTarget?: string;
879
- useDownLoad?: boolean;
880
- linkComponent?: ElementType;
881
- }
882
-
883
- declare const LinkStandard: FC<LinkProps>;
884
-
885
- interface LinkListProps {
886
- linkArray: IPTSLink[];
887
- activatedLanguage?: string;
888
- customCss?: string;
889
- linkComponent?: ElementType;
890
- }
891
-
892
- declare const LinkList: FC<LinkListProps>;
893
-
894
- interface CollapseProps {
895
- title: ReactNode;
896
- children: ReactNode;
897
- isOpen?: boolean;
898
- defaultOpen?: boolean;
899
- onToggle?: (open: boolean) => void;
900
- id?: string;
901
- }
902
-
903
- declare const Collapse: FC<CollapseProps>;
904
-
905
795
  interface PrincipleOfPublicityProps {
906
796
  activatedLanguage?: string;
907
797
  }
@@ -1008,4 +898,4 @@ interface FormStatusMessagesProps {
1008
898
  */
1009
899
  declare const FormStatusMessagesScreenReader: React$1.FC<FormStatusMessagesProps>;
1010
900
 
1011
- export { AddFiles as AddFilesStandard, BreadCrumbs, BreadCrumbs as BreadcrumbsAdaptive, 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$1 as RadioMultipleStandard, InputRadio as RadioWithInfoStandard, 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 };
901
+ export { AddFiles as AddFilesStandard, 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, 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 };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import React$1, { ComponentType, SVGProps, FC, ElementType, RefObject, ReactNode } from 'react';
1
+ import React$1, { FC } 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';
@@ -8,7 +8,6 @@ interface IApplicationContent {
8
8
  headline?: string;
9
9
  body?: string;
10
10
  linksForMoreInfo?: Array<IPTSLink>;
11
- alertInTextList?: Array<any>;
12
11
  pageTitle?: string;
13
12
  textblocks?: Array<ITextBlock>;
14
13
  textAboveStartButton?: string;
@@ -29,7 +28,6 @@ interface ITextBlock {
29
28
  headline?: string;
30
29
  body?: string;
31
30
  linksForMoreInfo?: Array<IPTSLink>;
32
- alertInTextList?: Array<any>;
33
31
  pageTitle?: string;
34
32
  textAboveStartButton?: string;
35
33
  }
@@ -48,11 +46,7 @@ interface IOption {
48
46
  interface IPTSLink {
49
47
  title: string;
50
48
  url: string;
51
- ariaLabel?: string;
52
- activatedLanguage?: string;
53
- openTarget?: string;
54
- icon?: ComponentType<SVGProps<SVGSVGElement>>;
55
- iconType?: string;
49
+ ariaLabel: string;
56
50
  }
57
51
  interface IStepObject {
58
52
  step: number;
@@ -144,14 +138,6 @@ interface IAppSettings {
144
138
  appCookies?: IAppSettingsCookies;
145
139
  appUsesPreview?: boolean;
146
140
  }
147
- type INavigationItem = {
148
- label: {
149
- sv: string;
150
- en: string;
151
- };
152
- href: string;
153
- children?: INavigationItem[];
154
- };
155
141
 
156
142
  interface RadioProps {
157
143
  question: IQuestion;
@@ -160,16 +146,7 @@ interface RadioProps {
160
146
  activatedLanguage?: string;
161
147
  }
162
148
 
163
- declare const InputRadio$1: FC<RadioProps>;
164
-
165
- interface RadioWithInfoProps {
166
- question: IQuestion;
167
- handleQuestionInputChange: any;
168
- showPreview?: boolean;
169
- activatedLanguage?: string;
170
- }
171
-
172
- declare const InputRadio: FC<RadioWithInfoProps>;
149
+ declare const InputRadio: FC<RadioProps>;
173
150
 
174
151
  interface MultipleCheckboxesProps {
175
152
  question: IQuestion;
@@ -229,15 +206,6 @@ interface SingleCheckboxProps {
229
206
 
230
207
  declare const SingleCheckbox: FC<SingleCheckboxProps>;
231
208
 
232
- interface InfoOnlyProps {
233
- question: IQuestion;
234
- handleQuestionInputChange: any;
235
- showPreview?: boolean;
236
- activatedLanguage?: string;
237
- }
238
-
239
- declare const InputInfoOnly: FC<InfoOnlyProps>;
240
-
241
209
  /**
242
210
  * Kontrollerar om en fråga har ett valideringsfel baserat på dess egenskaper och valideringstyper.
243
211
  *
@@ -812,55 +780,6 @@ interface HeaderProps {
812
780
 
813
781
  declare const Header: FC<HeaderProps>;
814
782
 
815
- interface NavigationHeaderProps {
816
- SetActivatedLanguage?: (language: string) => void;
817
- headline?: string;
818
- homelink?: string;
819
- activatedLanguage?: string;
820
- useLanguage?: boolean;
821
- useNavigationMenu: boolean;
822
- useSearch?: boolean;
823
- useBreadCrumbs?: boolean;
824
- showNavigationCloseButton?: boolean;
825
- menuLinks: INavigationItem[];
826
- linkComponent?: ElementType;
827
- }
828
-
829
- declare const NavigationHeader: FC<NavigationHeaderProps>;
830
-
831
- interface NavigationProps {
832
- setIsMenyOpen?: (open: boolean) => void;
833
- showCloseButton?: boolean;
834
- activatedLanguage?: string;
835
- menuLinks?: INavigationLink[];
836
- isOpen: boolean;
837
- openButtonRef: RefObject<HTMLButtonElement | null>;
838
- linkComponent?: ElementType;
839
- }
840
- type Locale = 'sv' | 'en';
841
- type Label = Record<Locale, string>;
842
- interface INavigationLink {
843
- label: Label;
844
- href: string;
845
- children?: INavigationLink[];
846
- openInNewWindow?: boolean;
847
- }
848
-
849
- declare const Navigation: FC<NavigationProps>;
850
-
851
- interface BreadCrumbsProps {
852
- activatedLanguage: string;
853
- onLinkClick?: (e: React.MouseEvent) => void;
854
- }
855
-
856
- declare const BreadCrumbs: FC<BreadCrumbsProps>;
857
-
858
- interface SearchBarProps {
859
- activatedLanguage: string;
860
- }
861
-
862
- declare const SearchBar: FC<SearchBarProps>;
863
-
864
783
  interface ModalProps {
865
784
  showModal: boolean;
866
785
  activatedLanguage?: string;
@@ -873,35 +792,6 @@ type SkipLinkProps = {
873
792
  };
874
793
  declare const SkipLink: FC<SkipLinkProps>;
875
794
 
876
- interface LinkProps extends IPTSLink {
877
- customClass?: string;
878
- openTarget?: string;
879
- useDownLoad?: boolean;
880
- linkComponent?: ElementType;
881
- }
882
-
883
- declare const LinkStandard: FC<LinkProps>;
884
-
885
- interface LinkListProps {
886
- linkArray: IPTSLink[];
887
- activatedLanguage?: string;
888
- customCss?: string;
889
- linkComponent?: ElementType;
890
- }
891
-
892
- declare const LinkList: FC<LinkListProps>;
893
-
894
- interface CollapseProps {
895
- title: ReactNode;
896
- children: ReactNode;
897
- isOpen?: boolean;
898
- defaultOpen?: boolean;
899
- onToggle?: (open: boolean) => void;
900
- id?: string;
901
- }
902
-
903
- declare const Collapse: FC<CollapseProps>;
904
-
905
795
  interface PrincipleOfPublicityProps {
906
796
  activatedLanguage?: string;
907
797
  }
@@ -1008,4 +898,4 @@ interface FormStatusMessagesProps {
1008
898
  */
1009
899
  declare const FormStatusMessagesScreenReader: React$1.FC<FormStatusMessagesProps>;
1010
900
 
1011
- export { AddFiles as AddFilesStandard, BreadCrumbs, BreadCrumbs as BreadcrumbsAdaptive, 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$1 as RadioMultipleStandard, InputRadio as RadioWithInfoStandard, 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 };
901
+ export { AddFiles as AddFilesStandard, 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, 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 };