optimized-react-component-library-xyz123 0.31.3 → 0.31.4
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 +24 -2
- package/dist/index.d.ts +24 -2
- package/dist/index.js +475 -411
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +475 -411
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -13
- package/src/css/darkMode.css +394 -380
- package/src/css/questions.css +27 -23
- package/src/css/styles.css +51 -68
package/dist/index.d.mts
CHANGED
|
@@ -10,6 +10,7 @@ interface IApplicationContent {
|
|
|
10
10
|
linksForMoreInfo?: Array<IPTSLink>;
|
|
11
11
|
pageTitle?: string;
|
|
12
12
|
textblocks?: Array<ITextBlock>;
|
|
13
|
+
textAboveStartButton?: string;
|
|
13
14
|
languageSupport: [
|
|
14
15
|
{
|
|
15
16
|
language: string;
|
|
@@ -18,6 +19,7 @@ interface IApplicationContent {
|
|
|
18
19
|
linksForMoreInfo: Array<IPTSLink>;
|
|
19
20
|
pageTitle: string;
|
|
20
21
|
textblocks: Array<ITextBlock>;
|
|
22
|
+
textAboveStartButton?: string;
|
|
21
23
|
}
|
|
22
24
|
];
|
|
23
25
|
}
|
|
@@ -27,6 +29,7 @@ interface ITextBlock {
|
|
|
27
29
|
body?: string;
|
|
28
30
|
linksForMoreInfo?: Array<IPTSLink>;
|
|
29
31
|
pageTitle?: string;
|
|
32
|
+
textAboveStartButton?: string;
|
|
30
33
|
}
|
|
31
34
|
interface IFormState {
|
|
32
35
|
applicationContent: IApplicationContent;
|
|
@@ -113,11 +116,22 @@ interface IStepQuestionData {
|
|
|
113
116
|
}[];
|
|
114
117
|
}[];
|
|
115
118
|
}
|
|
119
|
+
interface IAppSettingsCookies {
|
|
120
|
+
useCookies: boolean;
|
|
121
|
+
cookieName: string;
|
|
122
|
+
cookieChoiseKey: string;
|
|
123
|
+
}
|
|
124
|
+
interface IAppSettings {
|
|
125
|
+
appUsesLanguage: boolean;
|
|
126
|
+
appUsesNavigation: boolean;
|
|
127
|
+
appCookies?: IAppSettingsCookies;
|
|
128
|
+
}
|
|
116
129
|
|
|
117
130
|
interface RadioProps {
|
|
118
131
|
question: IQuestion;
|
|
119
132
|
handleQuestionInputChange: any;
|
|
120
133
|
showPreview?: boolean;
|
|
134
|
+
activatedLanguage?: string;
|
|
121
135
|
}
|
|
122
136
|
|
|
123
137
|
declare const InputRadio: FC<RadioProps>;
|
|
@@ -727,6 +741,7 @@ interface CookieBannerProps {
|
|
|
727
741
|
onClose?: () => void;
|
|
728
742
|
acceptCookies: () => void;
|
|
729
743
|
rejectCookies: () => void;
|
|
744
|
+
activatedLanguage?: string;
|
|
730
745
|
}
|
|
731
746
|
|
|
732
747
|
declare const CookieBanner: React$1.FC<CookieBannerProps>;
|
|
@@ -752,7 +767,10 @@ interface ModalProps {
|
|
|
752
767
|
|
|
753
768
|
declare const Modal: FC<ModalProps>;
|
|
754
769
|
|
|
755
|
-
|
|
770
|
+
type SkipLinkProps = {
|
|
771
|
+
activatedLanguage?: string;
|
|
772
|
+
};
|
|
773
|
+
declare const SkipLink: FC<SkipLinkProps>;
|
|
756
774
|
|
|
757
775
|
interface PrincipleOfPublicityProps {
|
|
758
776
|
activatedLanguage?: string;
|
|
@@ -778,6 +796,7 @@ interface StartApplicationButtonProps {
|
|
|
778
796
|
onClick: (event: React$1.MouseEvent<HTMLButtonElement>) => void;
|
|
779
797
|
label?: string;
|
|
780
798
|
className?: string;
|
|
799
|
+
activatedLanguage?: string;
|
|
781
800
|
}
|
|
782
801
|
/**
|
|
783
802
|
* En standardiserad knapp för att starta e-tjänsten.
|
|
@@ -785,6 +804,7 @@ interface StartApplicationButtonProps {
|
|
|
785
804
|
* @param {Function} onClick - Funktion som körs när användaren klickar på knappen.
|
|
786
805
|
* @param {string} label - Text som visas på knappen.
|
|
787
806
|
* @param {string} className - Extra CSS-klasser för knappen.
|
|
807
|
+
* @param {string} activatedLanguage - Aktiverat språk.
|
|
788
808
|
*/
|
|
789
809
|
declare const StartApplicationButton: React$1.FC<StartApplicationButtonProps>;
|
|
790
810
|
|
|
@@ -845,14 +865,16 @@ declare const ValidationErrorSummaryList: React$1.FC<ValidationErrorSummaryListP
|
|
|
845
865
|
|
|
846
866
|
interface FormStatusMessagesProps {
|
|
847
867
|
formStatus: string;
|
|
868
|
+
activatedLanguage?: string;
|
|
848
869
|
}
|
|
849
870
|
/**
|
|
850
871
|
* Visar ett error-meddelande om formuläret misslyckas att skicka in, dvs. status är
|
|
851
872
|
* failed. Läser upp att formuläret laddas för skärmläsare när status är loading.
|
|
852
873
|
*
|
|
853
874
|
* @param {string} formStatus Nuvarande status för formuläret.
|
|
875
|
+
* @param {string} [activatedLanguage='sv'] Den aktiverade språkkoden (default är svenska).
|
|
854
876
|
*
|
|
855
877
|
*/
|
|
856
878
|
declare const FormStatusMessagesScreenReader: React$1.FC<FormStatusMessagesProps>;
|
|
857
879
|
|
|
858
|
-
export { AddFiles as AddFilesStandard, CheckboxGroup as CheckboxGroupStandard, CookieBanner, type CookieConsentConfig, EditPreviewLink as EditPreviewLinkStandard, Footer as FooterStandard, FormStatusMessagesScreenReader, Header as HeaderStandard, 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 };
|
|
880
|
+
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
|
@@ -10,6 +10,7 @@ interface IApplicationContent {
|
|
|
10
10
|
linksForMoreInfo?: Array<IPTSLink>;
|
|
11
11
|
pageTitle?: string;
|
|
12
12
|
textblocks?: Array<ITextBlock>;
|
|
13
|
+
textAboveStartButton?: string;
|
|
13
14
|
languageSupport: [
|
|
14
15
|
{
|
|
15
16
|
language: string;
|
|
@@ -18,6 +19,7 @@ interface IApplicationContent {
|
|
|
18
19
|
linksForMoreInfo: Array<IPTSLink>;
|
|
19
20
|
pageTitle: string;
|
|
20
21
|
textblocks: Array<ITextBlock>;
|
|
22
|
+
textAboveStartButton?: string;
|
|
21
23
|
}
|
|
22
24
|
];
|
|
23
25
|
}
|
|
@@ -27,6 +29,7 @@ interface ITextBlock {
|
|
|
27
29
|
body?: string;
|
|
28
30
|
linksForMoreInfo?: Array<IPTSLink>;
|
|
29
31
|
pageTitle?: string;
|
|
32
|
+
textAboveStartButton?: string;
|
|
30
33
|
}
|
|
31
34
|
interface IFormState {
|
|
32
35
|
applicationContent: IApplicationContent;
|
|
@@ -113,11 +116,22 @@ interface IStepQuestionData {
|
|
|
113
116
|
}[];
|
|
114
117
|
}[];
|
|
115
118
|
}
|
|
119
|
+
interface IAppSettingsCookies {
|
|
120
|
+
useCookies: boolean;
|
|
121
|
+
cookieName: string;
|
|
122
|
+
cookieChoiseKey: string;
|
|
123
|
+
}
|
|
124
|
+
interface IAppSettings {
|
|
125
|
+
appUsesLanguage: boolean;
|
|
126
|
+
appUsesNavigation: boolean;
|
|
127
|
+
appCookies?: IAppSettingsCookies;
|
|
128
|
+
}
|
|
116
129
|
|
|
117
130
|
interface RadioProps {
|
|
118
131
|
question: IQuestion;
|
|
119
132
|
handleQuestionInputChange: any;
|
|
120
133
|
showPreview?: boolean;
|
|
134
|
+
activatedLanguage?: string;
|
|
121
135
|
}
|
|
122
136
|
|
|
123
137
|
declare const InputRadio: FC<RadioProps>;
|
|
@@ -727,6 +741,7 @@ interface CookieBannerProps {
|
|
|
727
741
|
onClose?: () => void;
|
|
728
742
|
acceptCookies: () => void;
|
|
729
743
|
rejectCookies: () => void;
|
|
744
|
+
activatedLanguage?: string;
|
|
730
745
|
}
|
|
731
746
|
|
|
732
747
|
declare const CookieBanner: React$1.FC<CookieBannerProps>;
|
|
@@ -752,7 +767,10 @@ interface ModalProps {
|
|
|
752
767
|
|
|
753
768
|
declare const Modal: FC<ModalProps>;
|
|
754
769
|
|
|
755
|
-
|
|
770
|
+
type SkipLinkProps = {
|
|
771
|
+
activatedLanguage?: string;
|
|
772
|
+
};
|
|
773
|
+
declare const SkipLink: FC<SkipLinkProps>;
|
|
756
774
|
|
|
757
775
|
interface PrincipleOfPublicityProps {
|
|
758
776
|
activatedLanguage?: string;
|
|
@@ -778,6 +796,7 @@ interface StartApplicationButtonProps {
|
|
|
778
796
|
onClick: (event: React$1.MouseEvent<HTMLButtonElement>) => void;
|
|
779
797
|
label?: string;
|
|
780
798
|
className?: string;
|
|
799
|
+
activatedLanguage?: string;
|
|
781
800
|
}
|
|
782
801
|
/**
|
|
783
802
|
* En standardiserad knapp för att starta e-tjänsten.
|
|
@@ -785,6 +804,7 @@ interface StartApplicationButtonProps {
|
|
|
785
804
|
* @param {Function} onClick - Funktion som körs när användaren klickar på knappen.
|
|
786
805
|
* @param {string} label - Text som visas på knappen.
|
|
787
806
|
* @param {string} className - Extra CSS-klasser för knappen.
|
|
807
|
+
* @param {string} activatedLanguage - Aktiverat språk.
|
|
788
808
|
*/
|
|
789
809
|
declare const StartApplicationButton: React$1.FC<StartApplicationButtonProps>;
|
|
790
810
|
|
|
@@ -845,14 +865,16 @@ declare const ValidationErrorSummaryList: React$1.FC<ValidationErrorSummaryListP
|
|
|
845
865
|
|
|
846
866
|
interface FormStatusMessagesProps {
|
|
847
867
|
formStatus: string;
|
|
868
|
+
activatedLanguage?: string;
|
|
848
869
|
}
|
|
849
870
|
/**
|
|
850
871
|
* Visar ett error-meddelande om formuläret misslyckas att skicka in, dvs. status är
|
|
851
872
|
* failed. Läser upp att formuläret laddas för skärmläsare när status är loading.
|
|
852
873
|
*
|
|
853
874
|
* @param {string} formStatus Nuvarande status för formuläret.
|
|
875
|
+
* @param {string} [activatedLanguage='sv'] Den aktiverade språkkoden (default är svenska).
|
|
854
876
|
*
|
|
855
877
|
*/
|
|
856
878
|
declare const FormStatusMessagesScreenReader: React$1.FC<FormStatusMessagesProps>;
|
|
857
879
|
|
|
858
|
-
export { AddFiles as AddFilesStandard, CheckboxGroup as CheckboxGroupStandard, CookieBanner, type CookieConsentConfig, EditPreviewLink as EditPreviewLinkStandard, Footer as FooterStandard, FormStatusMessagesScreenReader, Header as HeaderStandard, 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 };
|
|
880
|
+
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 };
|