optimized-react-component-library-xyz123 2.0.2 → 2.1.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 +4 -115
- package/dist/index.d.ts +4 -115
- package/dist/index.js +515 -1767
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +513 -1761
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -5
- package/src/css/darkMode.css +2 -95
- package/src/css/e-tjanst-root.css +117 -0
- package/src/css/mobileView.css +0 -65
- package/src/css/questions.css +0 -5
- package/src/css/styles.css +2 -482
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React$1, {
|
|
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
|
|
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;
|
|
@@ -142,16 +136,7 @@ interface IAppSettings {
|
|
|
142
136
|
appUsesLanguage: boolean;
|
|
143
137
|
appUsesNavigation: boolean;
|
|
144
138
|
appCookies?: IAppSettingsCookies;
|
|
145
|
-
appUsesPreview?: boolean;
|
|
146
139
|
}
|
|
147
|
-
type INavigationItem = {
|
|
148
|
-
label: {
|
|
149
|
-
sv: string;
|
|
150
|
-
en: string;
|
|
151
|
-
};
|
|
152
|
-
href: string;
|
|
153
|
-
children?: INavigationItem[];
|
|
154
|
-
};
|
|
155
140
|
|
|
156
141
|
interface RadioProps {
|
|
157
142
|
question: IQuestion;
|
|
@@ -160,16 +145,7 @@ interface RadioProps {
|
|
|
160
145
|
activatedLanguage?: string;
|
|
161
146
|
}
|
|
162
147
|
|
|
163
|
-
declare const InputRadio
|
|
164
|
-
|
|
165
|
-
interface RadioWithInfoProps {
|
|
166
|
-
question: IQuestion;
|
|
167
|
-
handleQuestionInputChange: any;
|
|
168
|
-
showPreview?: boolean;
|
|
169
|
-
activatedLanguage?: string;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
declare const InputRadio: FC<RadioWithInfoProps>;
|
|
148
|
+
declare const InputRadio: FC<RadioProps>;
|
|
173
149
|
|
|
174
150
|
interface MultipleCheckboxesProps {
|
|
175
151
|
question: IQuestion;
|
|
@@ -229,15 +205,6 @@ interface SingleCheckboxProps {
|
|
|
229
205
|
|
|
230
206
|
declare const SingleCheckbox: FC<SingleCheckboxProps>;
|
|
231
207
|
|
|
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
208
|
/**
|
|
242
209
|
* Kontrollerar om en fråga har ett valideringsfel baserat på dess egenskaper och valideringstyper.
|
|
243
210
|
*
|
|
@@ -812,55 +779,6 @@ interface HeaderProps {
|
|
|
812
779
|
|
|
813
780
|
declare const Header: FC<HeaderProps>;
|
|
814
781
|
|
|
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
782
|
interface ModalProps {
|
|
865
783
|
showModal: boolean;
|
|
866
784
|
activatedLanguage?: string;
|
|
@@ -873,35 +791,6 @@ type SkipLinkProps = {
|
|
|
873
791
|
};
|
|
874
792
|
declare const SkipLink: FC<SkipLinkProps>;
|
|
875
793
|
|
|
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
794
|
interface PrincipleOfPublicityProps {
|
|
906
795
|
activatedLanguage?: string;
|
|
907
796
|
}
|
|
@@ -1008,4 +897,4 @@ interface FormStatusMessagesProps {
|
|
|
1008
897
|
*/
|
|
1009
898
|
declare const FormStatusMessagesScreenReader: React$1.FC<FormStatusMessagesProps>;
|
|
1010
899
|
|
|
1011
|
-
export { AddFiles as AddFilesStandard,
|
|
900
|
+
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, {
|
|
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
|
|
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;
|
|
@@ -142,16 +136,7 @@ interface IAppSettings {
|
|
|
142
136
|
appUsesLanguage: boolean;
|
|
143
137
|
appUsesNavigation: boolean;
|
|
144
138
|
appCookies?: IAppSettingsCookies;
|
|
145
|
-
appUsesPreview?: boolean;
|
|
146
139
|
}
|
|
147
|
-
type INavigationItem = {
|
|
148
|
-
label: {
|
|
149
|
-
sv: string;
|
|
150
|
-
en: string;
|
|
151
|
-
};
|
|
152
|
-
href: string;
|
|
153
|
-
children?: INavigationItem[];
|
|
154
|
-
};
|
|
155
140
|
|
|
156
141
|
interface RadioProps {
|
|
157
142
|
question: IQuestion;
|
|
@@ -160,16 +145,7 @@ interface RadioProps {
|
|
|
160
145
|
activatedLanguage?: string;
|
|
161
146
|
}
|
|
162
147
|
|
|
163
|
-
declare const InputRadio
|
|
164
|
-
|
|
165
|
-
interface RadioWithInfoProps {
|
|
166
|
-
question: IQuestion;
|
|
167
|
-
handleQuestionInputChange: any;
|
|
168
|
-
showPreview?: boolean;
|
|
169
|
-
activatedLanguage?: string;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
declare const InputRadio: FC<RadioWithInfoProps>;
|
|
148
|
+
declare const InputRadio: FC<RadioProps>;
|
|
173
149
|
|
|
174
150
|
interface MultipleCheckboxesProps {
|
|
175
151
|
question: IQuestion;
|
|
@@ -229,15 +205,6 @@ interface SingleCheckboxProps {
|
|
|
229
205
|
|
|
230
206
|
declare const SingleCheckbox: FC<SingleCheckboxProps>;
|
|
231
207
|
|
|
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
208
|
/**
|
|
242
209
|
* Kontrollerar om en fråga har ett valideringsfel baserat på dess egenskaper och valideringstyper.
|
|
243
210
|
*
|
|
@@ -812,55 +779,6 @@ interface HeaderProps {
|
|
|
812
779
|
|
|
813
780
|
declare const Header: FC<HeaderProps>;
|
|
814
781
|
|
|
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
782
|
interface ModalProps {
|
|
865
783
|
showModal: boolean;
|
|
866
784
|
activatedLanguage?: string;
|
|
@@ -873,35 +791,6 @@ type SkipLinkProps = {
|
|
|
873
791
|
};
|
|
874
792
|
declare const SkipLink: FC<SkipLinkProps>;
|
|
875
793
|
|
|
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
794
|
interface PrincipleOfPublicityProps {
|
|
906
795
|
activatedLanguage?: string;
|
|
907
796
|
}
|
|
@@ -1008,4 +897,4 @@ interface FormStatusMessagesProps {
|
|
|
1008
897
|
*/
|
|
1009
898
|
declare const FormStatusMessagesScreenReader: React$1.FC<FormStatusMessagesProps>;
|
|
1010
899
|
|
|
1011
|
-
export { AddFiles as AddFilesStandard,
|
|
900
|
+
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 };
|